@seele00/seele-work 0.1.124 → 0.1.126
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/libexec/seele-server +0 -0
- package/libexec/seele-worker +0 -0
- package/libexec/seele-workspace-observe +0 -0
- package/package.json +1 -1
- package/release-manifest.json +128 -128
- package/web/dist/assets/{abnfDiagram-VRR7QNED-B_kH1nIm.js → abnfDiagram-VRR7QNED-b9CUZTNF.js} +1 -1
- package/web/dist/assets/{arc-xa0iHFjk.js → arc-BgEEMH2r.js} +1 -1
- package/web/dist/assets/{architectureDiagram-ZJ3FMSHR-CzU_g4So.js → architectureDiagram-ZJ3FMSHR-D5z5BYQf.js} +1 -1
- package/web/dist/assets/{blockDiagram-677ZJIJ3-CSC15fYc.js → blockDiagram-677ZJIJ3-BIxHFpfd.js} +1 -1
- package/web/dist/assets/{c4Diagram-LMCZKHZV-B1DIXX6j.js → c4Diagram-LMCZKHZV-B_ysPhw7.js} +1 -1
- package/web/dist/assets/channel-BjZvzBDe.js +1 -0
- package/web/dist/assets/{chunk-2Q5K7J3B-BFAdDgdu.js → chunk-2Q5K7J3B-XCy3tQvC.js} +1 -1
- package/web/dist/assets/{chunk-32BRIVSS-D0UwF4QZ.js → chunk-32BRIVSS-BoNDhh-3.js} +1 -1
- package/web/dist/assets/{chunk-5VM5RSS4-B7D1rhlx.js → chunk-5VM5RSS4-CF3IABfK.js} +1 -1
- package/web/dist/assets/{chunk-EX3LRPZG-Dng2T9Dy.js → chunk-EX3LRPZG-dHY2m87M.js} +1 -1
- package/web/dist/assets/{chunk-JWPE2WC7-BHLKsg82.js → chunk-JWPE2WC7-DEZn4RfC.js} +1 -1
- package/web/dist/assets/{chunk-MOJQB5TN-Bbq8g_7P.js → chunk-MOJQB5TN-CRpf3PFX.js} +1 -1
- package/web/dist/assets/{chunk-RYQCIY6F-Dok8Mg9c.js → chunk-RYQCIY6F-BDJrUXJI.js} +1 -1
- package/web/dist/assets/{chunk-V7JOEXUC-BA8n3gfC.js → chunk-V7JOEXUC-JdkiZ8Jk.js} +1 -1
- package/web/dist/assets/{chunk-VR4S4FIN-DPkZvuV1.js → chunk-VR4S4FIN-BjUQXVs8.js} +1 -1
- package/web/dist/assets/{chunk-XXDRQBXY-ZhJsKF0o.js → chunk-XXDRQBXY-B-Uv9vau.js} +1 -1
- package/web/dist/assets/classDiagram-OUVF2IWQ-iVAk5arR.js +1 -0
- package/web/dist/assets/classDiagram-v2-EOCWNBFH-iVAk5arR.js +1 -0
- package/web/dist/assets/{core-0O0cuLx6.js → core-C2VKixna.js} +1 -1
- package/web/dist/assets/{cose-bilkent-JH36ORCC-DQy3Yb5d.js → cose-bilkent-JH36ORCC-CDh3iGfD.js} +1 -1
- package/web/dist/assets/{cynefin-VYW2F7L2-Bb63cxSQ.js → cynefin-VYW2F7L2-Ce0nGVoK.js} +1 -1
- package/web/dist/assets/{cynefinDiagram-TSTJHNR4-DT0il-Hv.js → cynefinDiagram-TSTJHNR4-CyhVWM6M.js} +1 -1
- package/web/dist/assets/{dagre-VKFMJZFB-Cbm5v8ii.js → dagre-VKFMJZFB-BeW_sC_T.js} +1 -1
- package/web/dist/assets/{diagram-FQU43EPY-BYmehC-M.js → diagram-FQU43EPY-DYP8y3JI.js} +1 -1
- package/web/dist/assets/{diagram-G47NLZAW-00YJ-fw3.js → diagram-G47NLZAW-DwqJRUVp.js} +1 -1
- package/web/dist/assets/{diagram-NH7WQ7WH-CXX1aQw_.js → diagram-NH7WQ7WH-BBR65F01.js} +1 -1
- package/web/dist/assets/{diagram-OA4YK3LP-BUaaV2d6.js → diagram-OA4YK3LP-DagZ8lbQ.js} +1 -1
- package/web/dist/assets/{diagram-WEI45ONY-CCXemssm.js → diagram-WEI45ONY-BimX6TYg.js} +1 -1
- package/web/dist/assets/{ebnfDiagram-CCIWWBDH-DKXmEp94.js → ebnfDiagram-CCIWWBDH-CDcvKJIz.js} +1 -1
- package/web/dist/assets/{erDiagram-Q63AITRT-qRlFwmjq.js → erDiagram-Q63AITRT-nXWzBRc0.js} +1 -1
- package/web/dist/assets/{flowDiagram-23GEKE2U-u85oZ5y3.js → flowDiagram-23GEKE2U-DwoRKkOE.js} +1 -1
- package/web/dist/assets/{ganttDiagram-NO4QXBWP-BTqL8gws.js → ganttDiagram-NO4QXBWP-BJPQaWW-.js} +1 -1
- package/web/dist/assets/{gitGraphDiagram-IHSO6WYX-BB78idDL.js → gitGraphDiagram-IHSO6WYX-DTTnCthG.js} +1 -1
- package/web/dist/assets/index-BEVIbAa-.js +399 -0
- package/web/dist/assets/{infoDiagram-FWYZ7A6U-RCDOO8-Y.js → infoDiagram-FWYZ7A6U-CF_zfdgl.js} +1 -1
- package/web/dist/assets/{ishikawaDiagram-FXEZZL3T-Cc5anuA2.js → ishikawaDiagram-FXEZZL3T-CUzSNE79.js} +1 -1
- package/web/dist/assets/{journeyDiagram-5HDEW3XC-DMfSxZkr.js → journeyDiagram-5HDEW3XC-npejTjJm.js} +1 -1
- package/web/dist/assets/{kanban-definition-HUTT4EX6-BKNNPh1_.js → kanban-definition-HUTT4EX6-B1DQQ1qN.js} +1 -1
- package/web/dist/assets/{linear-CY1Ns8No.js → linear-BucyCItc.js} +1 -1
- package/web/dist/assets/{mermaid.core-BjW4FHdg.js → mermaid.core-D1J4TCt-.js} +5 -5
- package/web/dist/assets/{mindmap-definition-LN4V7U3C-D4MLQkUJ.js → mindmap-definition-LN4V7U3C-DXZnLzhT.js} +1 -1
- package/web/dist/assets/{pegDiagram-2B236MQR-BhVIK92R.js → pegDiagram-2B236MQR-BCZE_DgA.js} +1 -1
- package/web/dist/assets/{pieDiagram-ENE6RG2P-LsDzJ8Oi.js → pieDiagram-ENE6RG2P-DJH4el3g.js} +1 -1
- package/web/dist/assets/{quadrantDiagram-ABIIQ3AL-s6oqf7fB.js → quadrantDiagram-ABIIQ3AL-D-6LYIcR.js} +1 -1
- package/web/dist/assets/{railroadDiagram-RFXS5EU6-IG4o-XZB.js → railroadDiagram-RFXS5EU6-BAWYU2PW.js} +1 -1
- package/web/dist/assets/{requirementDiagram-TGXJPOKE-DvLbxvsb.js → requirementDiagram-TGXJPOKE-DT2_ExB2.js} +1 -1
- package/web/dist/assets/{sankeyDiagram-HTMAVEWB-_7O_GQD4.js → sankeyDiagram-HTMAVEWB-BraoSvks.js} +1 -1
- package/web/dist/assets/{sequenceDiagram-DBY2YBRQ-BXW3IBO0.js → sequenceDiagram-DBY2YBRQ-ChxC2T7O.js} +1 -1
- package/web/dist/assets/{sizeCapture-X5ZJPWSS-DAsC92Ze.js → sizeCapture-X5ZJPWSS-CRTMZILs.js} +1 -1
- package/web/dist/assets/{stateDiagram-2N3HPSRC-ChyEmtfL.js → stateDiagram-2N3HPSRC-BdJCDaSM.js} +1 -1
- package/web/dist/assets/stateDiagram-v2-6OUMAXLB-CW1oCk_C.js +1 -0
- package/web/dist/assets/{swimlanes-5IMT3BWC-De2ERjbQ.js → swimlanes-5IMT3BWC-rUKnSeOv.js} +2 -2
- package/web/dist/assets/swimlanesDiagram-G3AALYLV-BYCjIvlp.js +8 -0
- package/web/dist/assets/{timeline-definition-FHXFAJF6-wqXKnO2p.js → timeline-definition-FHXFAJF6-BwEFAX6m.js} +1 -1
- package/web/dist/assets/{vennDiagram-L72KCM5P-ULwPLZpm.js → vennDiagram-L72KCM5P-BkpFkmWx.js} +1 -1
- package/web/dist/assets/{wardleyDiagram-EHGQE667-DVyXj8Yg.js → wardleyDiagram-EHGQE667-DUDSlELR.js} +1 -1
- package/web/dist/assets/{xychartDiagram-FW5EYKEG-CX-UN5E8.js → xychartDiagram-FW5EYKEG-DLCexGoy.js} +1 -1
- package/web/dist/index.html +1 -1
- package/web/dist/assets/channel-6KggRmb9.js +0 -1
- package/web/dist/assets/classDiagram-OUVF2IWQ-bTPjN3A-.js +0 -1
- package/web/dist/assets/classDiagram-v2-EOCWNBFH-bTPjN3A-.js +0 -1
- package/web/dist/assets/index-DaRSfH2B.js +0 -393
- package/web/dist/assets/stateDiagram-v2-6OUMAXLB-BYhqyZA9.js +0 -1
- package/web/dist/assets/swimlanesDiagram-G3AALYLV-Cc99IGaA.js +0 -8
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./html-pp8916En.js","./javascript-wDzz0qaB.js","./css-CLj8gQPS.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var nb=Object.defineProperty;var rb=(e,t,n)=>t in e?nb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xd=(e,t,n)=>rb(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();const ab="modulepreload",ib=function(e,t){return new URL(e,t).href},R2={},en=function(t,n,i){let l=Promise.resolve();if(n&&n.length>0){let c=function(y){return Promise.all(y.map(v=>Promise.resolve(v).then(k=>({status:"fulfilled",value:k}),k=>({status:"rejected",reason:k}))))};const f=document.getElementsByTagName("link"),h=document.querySelector("meta[property=csp-nonce]"),m=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));l=c(n.map(y=>{if(y=ib(y,i),y in R2)return;R2[y]=!0;const v=y.endsWith(".css"),k=v?'[rel="stylesheet"]':"";if(!!i)for(let E=f.length-1;E>=0;E--){const q=f[E];if(q.href===y&&(!v||q.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${y}"]${k}`))return;const T=document.createElement("link");if(T.rel=v?"stylesheet":ab,v||(T.as="script"),T.crossOrigin="",T.href=y,m&&T.setAttribute("nonce",m),document.head.appendChild(T),v)return new Promise((E,q)=>{T.addEventListener("load",E),T.addEventListener("error",()=>q(new Error(`Unable to preload CSS for ${y}`)))})}))}function o(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return l.then(c=>{for(const f of c||[])f.status==="rejected"&&o(f.reason);return t().catch(o)})};function A5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lm={exports:{}},mc={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var O2;function lb(){if(O2)return mc;O2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,l,o){var c=null;if(o!==void 0&&(c=""+o),l.key!==void 0&&(c=""+l.key),"key"in l){o={};for(var f in l)f!=="key"&&(o[f]=l[f])}else o=l;return l=o.ref,{$$typeof:e,type:i,key:c,ref:l!==void 0?l:null,props:o}}return mc.Fragment=t,mc.jsx=n,mc.jsxs=n,mc}var _2;function sb(){return _2||(_2=1,lm.exports=lb()),lm.exports}var u=sb(),sm={exports:{}},it={};/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react.production.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var B2;function ob(){if(B2)return it;B2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),k=Symbol.iterator;function w(O){return O===null||typeof O!="object"?null:(O=k&&O[k]||O["@@iterator"],typeof O=="function"?O:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,q={};function R(O,Q,z){this.props=O,this.context=Q,this.refs=q,this.updater=z||T}R.prototype.isReactComponent={},R.prototype.setState=function(O,Q){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,Q,"setState")},R.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function B(){}B.prototype=R.prototype;function F(O,Q,z){this.props=O,this.context=Q,this.refs=q,this.updater=z||T}var Y=F.prototype=new B;Y.constructor=F,E(Y,R.prototype),Y.isPureReactComponent=!0;var te=Array.isArray;function _(){}var K={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function J(O,Q,z){var de=z.ref;return{$$typeof:e,type:O,key:Q,ref:de!==void 0?de:null,props:z}}function G(O,Q){return J(O.type,Q,O.props)}function ce(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function fe(O){var Q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(z){return Q[z]})}var Be=/\/+/g;function Ce(O,Q){return typeof O=="object"&&O!==null&&O.key!=null?fe(""+O.key):Q.toString(36)}function ve(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(_,_):(O.status="pending",O.then(function(Q){O.status==="pending"&&(O.status="fulfilled",O.value=Q)},function(Q){O.status==="pending"&&(O.status="rejected",O.reason=Q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function ee(O,Q,z,de,Re){var ne=typeof O;(ne==="undefined"||ne==="boolean")&&(O=null);var xe=!1;if(O===null)xe=!0;else switch(ne){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(O.$$typeof){case e:case t:xe=!0;break;case y:return xe=O._init,ee(xe(O._payload),Q,z,de,Re)}}if(xe)return Re=Re(O),xe=de===""?"."+Ce(O,0):de,te(Re)?(z="",xe!=null&&(z=xe.replace(Be,"$&/")+"/"),ee(Re,Q,z,"",function(st){return st})):Re!=null&&(ce(Re)&&(Re=G(Re,z+(Re.key==null||O&&O.key===Re.key?"":(""+Re.key).replace(Be,"$&/")+"/")+xe)),Q.push(Re)),1;xe=0;var oe=de===""?".":de+":";if(te(O))for(var Oe=0;Oe<O.length;Oe++)de=O[Oe],ne=oe+Ce(de,Oe),xe+=ee(de,Q,z,ne,Re);else if(Oe=w(O),typeof Oe=="function")for(O=Oe.call(O),Oe=0;!(de=O.next()).done;)de=de.value,ne=oe+Ce(de,Oe++),xe+=ee(de,Q,z,ne,Re);else if(ne==="object"){if(typeof O.then=="function")return ee(ve(O),Q,z,de,Re);throw Q=String(O),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return xe}function pe(O,Q,z){if(O==null)return O;var de=[],Re=0;return ee(O,de,"","",function(ne){return Q.call(z,ne,Re++)}),de}function De(O){if(O._status===-1){var Q=O._result;Q=Q(),Q.then(function(z){(O._status===0||O._status===-1)&&(O._status=1,O._result=z)},function(z){(O._status===0||O._status===-1)&&(O._status=2,O._result=z)}),O._status===-1&&(O._status=0,O._result=Q)}if(O._status===1)return O._result.default;throw O._result}var Ye=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},U={map:pe,forEach:function(O,Q,z){pe(O,function(){Q.apply(this,arguments)},z)},count:function(O){var Q=0;return pe(O,function(){Q++}),Q},toArray:function(O){return pe(O,function(Q){return Q})||[]},only:function(O){if(!ce(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return it.Activity=v,it.Children=U,it.Component=R,it.Fragment=n,it.Profiler=l,it.PureComponent=F,it.StrictMode=i,it.Suspense=h,it.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,it.__COMPILER_RUNTIME={__proto__:null,c:function(O){return K.H.useMemoCache(O)}},it.cache=function(O){return function(){return O.apply(null,arguments)}},it.cacheSignal=function(){return null},it.cloneElement=function(O,Q,z){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var de=E({},O.props),Re=O.key;if(Q!=null)for(ne in Q.key!==void 0&&(Re=""+Q.key),Q)!le.call(Q,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&Q.ref===void 0||(de[ne]=Q[ne]);var ne=arguments.length-2;if(ne===1)de.children=z;else if(1<ne){for(var xe=Array(ne),oe=0;oe<ne;oe++)xe[oe]=arguments[oe+2];de.children=xe}return J(O.type,Re,de)},it.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:o,_context:O},O},it.createElement=function(O,Q,z){var de,Re={},ne=null;if(Q!=null)for(de in Q.key!==void 0&&(ne=""+Q.key),Q)le.call(Q,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(Re[de]=Q[de]);var xe=arguments.length-2;if(xe===1)Re.children=z;else if(1<xe){for(var oe=Array(xe),Oe=0;Oe<xe;Oe++)oe[Oe]=arguments[Oe+2];Re.children=oe}if(O&&O.defaultProps)for(de in xe=O.defaultProps,xe)Re[de]===void 0&&(Re[de]=xe[de]);return J(O,ne,Re)},it.createRef=function(){return{current:null}},it.forwardRef=function(O){return{$$typeof:f,render:O}},it.isValidElement=ce,it.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:De}},it.memo=function(O,Q){return{$$typeof:m,type:O,compare:Q===void 0?null:Q}},it.startTransition=function(O){var Q=K.T,z={};K.T=z;try{var de=O(),Re=K.S;Re!==null&&Re(z,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(_,Ye)}catch(ne){Ye(ne)}finally{Q!==null&&z.types!==null&&(Q.types=z.types),K.T=Q}},it.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},it.use=function(O){return K.H.use(O)},it.useActionState=function(O,Q,z){return K.H.useActionState(O,Q,z)},it.useCallback=function(O,Q){return K.H.useCallback(O,Q)},it.useContext=function(O){return K.H.useContext(O)},it.useDebugValue=function(){},it.useDeferredValue=function(O,Q){return K.H.useDeferredValue(O,Q)},it.useEffect=function(O,Q){return K.H.useEffect(O,Q)},it.useEffectEvent=function(O){return K.H.useEffectEvent(O)},it.useId=function(){return K.H.useId()},it.useImperativeHandle=function(O,Q,z){return K.H.useImperativeHandle(O,Q,z)},it.useInsertionEffect=function(O,Q){return K.H.useInsertionEffect(O,Q)},it.useLayoutEffect=function(O,Q){return K.H.useLayoutEffect(O,Q)},it.useMemo=function(O,Q){return K.H.useMemo(O,Q)},it.useOptimistic=function(O,Q){return K.H.useOptimistic(O,Q)},it.useReducer=function(O,Q,z){return K.H.useReducer(O,Q,z)},it.useRef=function(O){return K.H.useRef(O)},it.useState=function(O){return K.H.useState(O)},it.useSyncExternalStore=function(O,Q,z){return K.H.useSyncExternalStore(O,Q,z)},it.useTransition=function(){return K.H.useTransition()},it.version="19.2.7",it}var I2;function e1(){return I2||(I2=1,sm.exports=ob()),sm.exports}var I=e1(),om={exports:{}},pc={},um={exports:{}},cm={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* scheduler.production.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var L2;function ub(){return L2||(L2=1,(function(e){function t(ee,pe){var De=ee.length;ee.push(pe);e:for(;0<De;){var Ye=De-1>>>1,U=ee[Ye];if(0<l(U,pe))ee[Ye]=pe,ee[De]=U,De=Ye;else break e}}function n(ee){return ee.length===0?null:ee[0]}function i(ee){if(ee.length===0)return null;var pe=ee[0],De=ee.pop();if(De!==pe){ee[0]=De;e:for(var Ye=0,U=ee.length,O=U>>>1;Ye<O;){var Q=2*(Ye+1)-1,z=ee[Q],de=Q+1,Re=ee[de];if(0>l(z,De))de<U&&0>l(Re,z)?(ee[Ye]=Re,ee[de]=De,Ye=de):(ee[Ye]=z,ee[Q]=De,Ye=Q);else if(de<U&&0>l(Re,De))ee[Ye]=Re,ee[de]=De,Ye=de;else break e}}return pe}function l(ee,pe){var De=ee.sortIndex-pe.sortIndex;return De!==0?De:ee.id-pe.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],m=[],y=1,v=null,k=3,w=!1,T=!1,E=!1,q=!1,R=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function Y(ee){for(var pe=n(m);pe!==null;){if(pe.callback===null)i(m);else if(pe.startTime<=ee)i(m),pe.sortIndex=pe.expirationTime,t(h,pe);else break;pe=n(m)}}function te(ee){if(E=!1,Y(ee),!T)if(n(h)!==null)T=!0,_||(_=!0,fe());else{var pe=n(m);pe!==null&&ve(te,pe.startTime-ee)}}var _=!1,K=-1,le=5,J=-1;function G(){return q?!0:!(e.unstable_now()-J<le)}function ce(){if(q=!1,_){var ee=e.unstable_now();J=ee;var pe=!0;try{e:{T=!1,E&&(E=!1,B(K),K=-1),w=!0;var De=k;try{t:{for(Y(ee),v=n(h);v!==null&&!(v.expirationTime>ee&&G());){var Ye=v.callback;if(typeof Ye=="function"){v.callback=null,k=v.priorityLevel;var U=Ye(v.expirationTime<=ee);if(ee=e.unstable_now(),typeof U=="function"){v.callback=U,Y(ee),pe=!0;break t}v===n(h)&&i(h),Y(ee)}else i(h);v=n(h)}if(v!==null)pe=!0;else{var O=n(m);O!==null&&ve(te,O.startTime-ee),pe=!1}}break e}finally{v=null,k=De,w=!1}pe=void 0}}finally{pe?fe():_=!1}}}var fe;if(typeof F=="function")fe=function(){F(ce)};else if(typeof MessageChannel<"u"){var Be=new MessageChannel,Ce=Be.port2;Be.port1.onmessage=ce,fe=function(){Ce.postMessage(null)}}else fe=function(){R(ce,0)};function ve(ee,pe){K=R(function(){ee(e.unstable_now())},pe)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ee){ee.callback=null},e.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<ee?Math.floor(1e3/ee):5},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_next=function(ee){switch(k){case 1:case 2:case 3:var pe=3;break;default:pe=k}var De=k;k=pe;try{return ee()}finally{k=De}},e.unstable_requestPaint=function(){q=!0},e.unstable_runWithPriority=function(ee,pe){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var De=k;k=ee;try{return pe()}finally{k=De}},e.unstable_scheduleCallback=function(ee,pe,De){var Ye=e.unstable_now();switch(typeof De=="object"&&De!==null?(De=De.delay,De=typeof De=="number"&&0<De?Ye+De:Ye):De=Ye,ee){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=De+U,ee={id:y++,callback:pe,priorityLevel:ee,startTime:De,expirationTime:U,sortIndex:-1},De>Ye?(ee.sortIndex=De,t(m,ee),n(h)===null&&ee===n(m)&&(E?(B(K),K=-1):E=!0,ve(te,De-Ye))):(ee.sortIndex=U,t(h,ee),T||w||(T=!0,_||(_=!0,fe()))),ee},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(ee){var pe=k;return function(){var De=k;k=pe;try{return ee.apply(this,arguments)}finally{k=De}}}})(cm)),cm}var q2;function cb(){return q2||(q2=1,um.exports=ub()),um.exports}var dm={exports:{}},Hn={};/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var U2;function db(){if(U2)return Hn;U2=1;var e=e1();function t(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},l=Symbol.for("react.portal");function o(h,m,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:v==null?null:""+v,children:h,containerInfo:m,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Hn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Hn.createPortal=function(h,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return o(h,m,null,y)},Hn.flushSync=function(h){var m=c.T,y=i.p;try{if(c.T=null,i.p=2,h)return h()}finally{c.T=m,i.p=y,i.d.f()}},Hn.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(h,m))},Hn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},Hn.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var y=m.as,v=f(y,m.crossOrigin),k=typeof m.integrity=="string"?m.integrity:void 0,w=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?i.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:k,fetchPriority:w}):y==="script"&&i.d.X(h,{crossOrigin:v,integrity:k,fetchPriority:w,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Hn.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=f(m.as,m.crossOrigin);i.d.M(h,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(h)},Hn.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,v=f(y,m.crossOrigin);i.d.L(h,y,{crossOrigin:v,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})}},Hn.preloadModule=function(h,m){if(typeof h=="string")if(m){var y=f(m.as,m.crossOrigin);i.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(h)},Hn.requestFormReset=function(h){i.d.r(h)},Hn.unstable_batchedUpdates=function(h,m){return h(m)},Hn.useFormState=function(h,m,y){return c.H.useFormState(h,m,y)},Hn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Hn.version="19.2.7",Hn}var H2;function fb(){if(H2)return dm.exports;H2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),dm.exports=db(),dm.exports}/**
|
|
35
|
-
* @license React
|
|
36
|
-
* react-dom-client.production.js
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var F2;function hb(){if(F2)return pc;F2=1;var e=cb(),t=e1(),n=fb();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function o(r){var a=r,s=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(s=a.return),r=a.return;while(r)}return a.tag===3?s:null}function c(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function h(r){if(o(r)!==r)throw Error(i(188))}function m(r){var a=r.alternate;if(!a){if(a=o(r),a===null)throw Error(i(188));return a!==r?null:r}for(var s=r,d=a;;){var p=s.return;if(p===null)break;var g=p.alternate;if(g===null){if(d=p.return,d!==null){s=d;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===s)return h(p),r;if(g===d)return h(p),a;g=g.sibling}throw Error(i(188))}if(s.return!==d.return)s=p,d=g;else{for(var C=!1,M=p.child;M;){if(M===s){C=!0,s=p,d=g;break}if(M===d){C=!0,d=p,s=g;break}M=M.sibling}if(!C){for(M=g.child;M;){if(M===s){C=!0,s=g,d=p;break}if(M===d){C=!0,d=g,s=p;break}M=M.sibling}if(!C)throw Error(i(189))}}if(s.alternate!==d)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?r:a}function y(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=y(r),a!==null)return a;r=r.sibling}return null}var v=Object.assign,k=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),F=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function fe(r){return r===null||typeof r!="object"?null:(r=ce&&r[ce]||r["@@iterator"],typeof r=="function"?r:null)}var Be=Symbol.for("react.client.reference");function Ce(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===Be?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case E:return"Fragment";case R:return"Profiler";case q:return"StrictMode";case te:return"Suspense";case _:return"SuspenseList";case J:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case T:return"Portal";case F:return r.displayName||"Context";case B:return(r._context.displayName||"Context")+".Consumer";case Y:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case K:return a=r.displayName||null,a!==null?a:Ce(r.type)||"Memo";case le:a=r._payload,r=r._init;try{return Ce(r(a))}catch{}}return null}var ve=Array.isArray,ee=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De={pending:!1,data:null,method:null,action:null},Ye=[],U=-1;function O(r){return{current:r}}function Q(r){0>U||(r.current=Ye[U],Ye[U]=null,U--)}function z(r,a){U++,Ye[U]=r.current,r.current=a}var de=O(null),Re=O(null),ne=O(null),xe=O(null);function oe(r,a){switch(z(ne,a),z(Re,r),z(de,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?n2(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=n2(a),r=r2(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Q(de),z(de,r)}function Oe(){Q(de),Q(Re),Q(ne)}function st(r){r.memoizedState!==null&&z(xe,r);var a=de.current,s=r2(a,r.type);a!==s&&(z(Re,r),z(de,s))}function Ct(r){Re.current===r&&(Q(de),Q(Re)),xe.current===r&&(Q(xe),cc._currentValue=De)}var lt,Je;function ut(r){if(lt===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);lt=a&&a[1]||"",Je=-1<s.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+lt+r+Je}var At=!1;function jn(r,a){if(!r||At)return"";At=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(a){var ye=function(){throw Error()};if(Object.defineProperty(ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ye,[])}catch(ue){var se=ue}Reflect.construct(r,[],ye)}else{try{ye.call()}catch(ue){se=ue}r.call(ye.prototype)}}else{try{throw Error()}catch(ue){se=ue}(ye=r())&&typeof ye.catch=="function"&&ye.catch(function(){})}}catch(ue){if(ue&&se&&typeof ue.stack=="string")return[ue.stack,se.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=d.DetermineComponentFrameRoot(),C=g[0],M=g[1];if(C&&M){var P=C.split(`
|
|
45
|
-
`),ae=M.split(`
|
|
46
|
-
`);for(p=d=0;d<P.length&&!P[d].includes("DetermineComponentFrameRoot");)d++;for(;p<ae.length&&!ae[p].includes("DetermineComponentFrameRoot");)p++;if(d===P.length||p===ae.length)for(d=P.length-1,p=ae.length-1;1<=d&&0<=p&&P[d]!==ae[p];)p--;for(;1<=d&&0<=p;d--,p--)if(P[d]!==ae[p]){if(d!==1||p!==1)do if(d--,p--,0>p||P[d]!==ae[p]){var me=`
|
|
47
|
-
`+P[d].replace(" at new "," at ");return r.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",r.displayName)),me}while(1<=d&&0<=p);break}}}finally{At=!1,Error.prepareStackTrace=s}return(s=r?r.displayName||r.name:"")?ut(s):""}function Qe(r,a){switch(r.tag){case 26:case 27:case 5:return ut(r.type);case 16:return ut("Lazy");case 13:return r.child!==a&&a!==null?ut("Suspense Fallback"):ut("Suspense");case 19:return ut("SuspenseList");case 0:case 15:return jn(r.type,!1);case 11:return jn(r.type.render,!1);case 1:return jn(r.type,!0);case 31:return ut("Activity");default:return""}}function Zt(r){try{var a="",s=null;do a+=Qe(r,s),s=r,r=r.return;while(r);return a}catch(d){return`
|
|
48
|
-
Error generating stack: `+d.message+`
|
|
49
|
-
`+d.stack}}var Pt=Object.prototype.hasOwnProperty,Wt=e.unstable_scheduleCallback,qr=e.unstable_cancelCallback,Sr=e.unstable_shouldYield,ua=e.unstable_requestPaint,Vt=e.unstable_now,Ur=e.unstable_getCurrentPriorityLevel,he=e.unstable_ImmediatePriority,we=e.unstable_UserBlockingPriority,Ue=e.unstable_NormalPriority,et=e.unstable_LowPriority,vt=e.unstable_IdlePriority,Tn=e.log,Hr=e.unstable_setDisableYieldValue,zn=null,rn=null;function Dn(r){if(typeof Tn=="function"&&Hr(r),rn&&typeof rn.setStrictMode=="function")try{rn.setStrictMode(zn,r)}catch{}}var Dt=Math.clz32?Math.clz32:zf,an=Math.log,tr=Math.LN2;function zf(r){return r>>>=0,r===0?32:31-(an(r)/tr|0)|0}var Zl=256,Ks=262144,Qs=4194304;function ai(r){var a=r&42;if(a!==0)return a;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Jl(r,a,s){var d=r.pendingLanes;if(d===0)return 0;var p=0,g=r.suspendedLanes,C=r.pingedLanes;r=r.warmLanes;var M=d&134217727;return M!==0?(d=M&~g,d!==0?p=ai(d):(C&=M,C!==0?p=ai(C):s||(s=M&~r,s!==0&&(p=ai(s))))):(M=d&~g,M!==0?p=ai(M):C!==0?p=ai(C):s||(s=d&~r,s!==0&&(p=ai(s)))),p===0?0:a!==0&&a!==p&&(a&g)===0&&(g=p&-p,s=a&-a,g>=s||g===32&&(s&4194048)!==0)?a:p}function Pi(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function cu(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 nr(){var r=Qs;return Qs<<=1,(Qs&62914560)===0&&(Qs=4194304),r}function Na(r){for(var a=[],s=0;31>s;s++)a.push(r);return a}function Bt(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function es(r,a,s,d,p,g){var C=r.pendingLanes;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=s,r.entangledLanes&=s,r.errorRecoveryDisabledLanes&=s,r.shellSuspendCounter=0;var M=r.entanglements,P=r.expirationTimes,ae=r.hiddenUpdates;for(s=C&~s;0<s;){var me=31-Dt(s),ye=1<<me;M[me]=0,P[me]=-1;var se=ae[me];if(se!==null)for(ae[me]=null,me=0;me<se.length;me++){var ue=se[me];ue!==null&&(ue.lane&=-536870913)}s&=~ye}d!==0&&du(r,d,0),g!==0&&p===0&&r.tag!==0&&(r.suspendedLanes|=g&~(C&~a))}function du(r,a,s){r.pendingLanes|=a,r.suspendedLanes&=~a;var d=31-Dt(a);r.entangledLanes|=a,r.entanglements[d]=r.entanglements[d]|1073741824|s&261930}function Vi(r,a){var s=r.entangledLanes|=a;for(r=r.entanglements;s;){var d=31-Dt(s),p=1<<d;p&a|r[d]&a&&(r[d]|=a),s&=~p}}function fu(r,a){var s=a&-a;return s=(s&42)!==0?1:ii(s),(s&(r.suspendedLanes|a))!==0?0:s}function ii(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function hu(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function mu(){var r=pe.p;return r!==0?r:(r=window.event,r===void 0?32:T2(r.type))}function Kc(r,a){var s=pe.p;try{return pe.p=r,a()}finally{pe.p=s}}var ca=Math.random().toString(36).slice(2),An="__reactFiber$"+ca,Rn="__reactProps$"+ca,Yi="__reactContainer$"+ca,li="__reactEvents$"+ca,Wi="__reactListeners$"+ca,Xi="__reactHandles$"+ca,si="__reactResources$"+ca,Fr="__reactMarker$"+ca;function ts(r){delete r[An],delete r[Rn],delete r[li],delete r[Wi],delete r[Xi]}function da(r){var a=r[An];if(a)return a;for(var s=r.parentNode;s;){if(a=s[Yi]||s[An]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(r=c2(r);r!==null;){if(s=r[An])return s;r=c2(r)}return a}r=s,s=r.parentNode}return null}function Ki(r){if(r=r[An]||r[Yi]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function fa(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function Ma(r){var a=r[si];return a||(a=r[si]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function ln(r){r[Fr]=!0}var Zs=new Set,Js={};function oi(r,a){ui(r,a),ui(r+"Capture",a)}function ui(r,a){for(Js[r]=a,r=0;r<a.length;r++)Zs.add(a[r])}var za=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]*$"),eo={},pu={};function Df(r){return Pt.call(pu,r)?!0:Pt.call(eo,r)?!1:za.test(r)?pu[r]=!0:(eo[r]=!0,!1)}function to(r,a,s){if(Df(a))if(s===null)r.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var d=a.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+s)}}function ci(r,a,s){if(s===null)r.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+s)}}function $r(r,a,s,d){if(d===null)r.removeAttribute(s);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttributeNS(a,s,""+d)}}function Bn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Qc(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Zc(r,a,s){var d=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var p=d.get,g=d.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return p.call(this)},set:function(C){s=""+C,g.call(this,C)}}),Object.defineProperty(r,a,{enumerable:d.enumerable}),{getValue:function(){return s},setValue:function(C){s=""+C},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function Gr(r){if(!r._valueTracker){var a=Qc(r)?"checked":"value";r._valueTracker=Zc(r,a,""+r[a])}}function Da(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var s=a.getValue(),d="";return r&&(d=Qc(r)?r.checked?"true":"false":r.value),r=d,r!==s?(a.setValue(r),!0):!1}function no(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var Ra=/[\n"\\]/g;function On(r){return r.replace(Ra,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function ro(r,a,s,d,p,g,C,M){r.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?r.type=C:r.removeAttribute("type"),a!=null?C==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Bn(a)):r.value!==""+Bn(a)&&(r.value=""+Bn(a)):C!=="submit"&&C!=="reset"||r.removeAttribute("value"),a!=null?Cr(r,C,Bn(a)):s!=null?Cr(r,C,Bn(s)):d!=null&&r.removeAttribute("value"),p==null&&g!=null&&(r.defaultChecked=!!g),p!=null&&(r.checked=p&&typeof p!="function"&&typeof p!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?r.name=""+Bn(M):r.removeAttribute("name")}function Pr(r,a,s,d,p,g,C,M){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(r.type=g),a!=null||s!=null){if(!(g!=="submit"&&g!=="reset"||a!=null)){Gr(r);return}s=s!=null?""+Bn(s):"",a=a!=null?""+Bn(a):s,M||a===r.value||(r.value=a),r.defaultValue=a}d=d??p,d=typeof d!="function"&&typeof d!="symbol"&&!!d,r.checked=M?r.checked:!!d,r.defaultChecked=!!d,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(r.name=C),Gr(r)}function Cr(r,a,s){a==="number"&&no(r.ownerDocument)===r||r.defaultValue===""+s||(r.defaultValue=""+s)}function rr(r,a,s,d){if(r=r.options,a){a={};for(var p=0;p<s.length;p++)a["$"+s[p]]=!0;for(s=0;s<r.length;s++)p=a.hasOwnProperty("$"+r[s].value),r[s].selected!==p&&(r[s].selected=p),p&&d&&(r[s].defaultSelected=!0)}else{for(s=""+Bn(s),a=null,p=0;p<r.length;p++){if(r[p].value===s){r[p].selected=!0,d&&(r[p].defaultSelected=!0);return}a!==null||r[p].disabled||(a=r[p])}a!==null&&(a.selected=!0)}}function gu(r,a,s){if(a!=null&&(a=""+Bn(a),a!==r.value&&(r.value=a),s==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=s!=null?""+Bn(s):""}function Qi(r,a,s,d){if(a==null){if(d!=null){if(s!=null)throw Error(i(92));if(ve(d)){if(1<d.length)throw Error(i(93));d=d[0]}s=d}s==null&&(s=""),a=s}s=Bn(a),r.defaultValue=s,d=r.textContent,d===s&&d!==""&&d!==null&&(r.value=d),Gr(r)}function di(r,a){if(a){var s=r.firstChild;if(s&&s===r.lastChild&&s.nodeType===3){s.nodeValue=a;return}}r.textContent=a}var ao=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 Jc(r,a,s){var d=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?d?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":d?r.setProperty(a,s):typeof s!="number"||s===0||ao.has(a)?a==="float"?r.cssFloat=s:r[a]=(""+s).trim():r[a]=s+"px"}function ns(r,a,s){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,s!=null){for(var d in s)!s.hasOwnProperty(d)||a!=null&&a.hasOwnProperty(d)||(d.indexOf("--")===0?r.setProperty(d,""):d==="float"?r.cssFloat="":r[d]="");for(var p in a)d=a[p],a.hasOwnProperty(p)&&s[p]!==d&&Jc(r,p,d)}else for(var g in a)a.hasOwnProperty(g)&&Jc(r,g,a[g])}function fi(r){if(r.indexOf("-")===-1)return!1;switch(r){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 yu=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"]]),vu=/^[\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 rs(r){return vu.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function ar(){}var ir=null;function Vr(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Oa=null,Yr=null;function Zi(r){var a=Ki(r);if(a&&(r=a.stateNode)){var s=r[Rn]||null;e:switch(r=a.stateNode,a.type){case"input":if(ro(r,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=r;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+On(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var d=s[a];if(d!==r&&d.form===r.form){var p=d[Rn]||null;if(!p)throw Error(i(90));ro(d,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(a=0;a<s.length;a++)d=s[a],d.form===r.form&&Da(d)}break e;case"textarea":gu(r,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&rr(r,!!s.multiple,a,!1)}}}var as=!1;function Jt(r,a,s){if(as)return r(a,s);as=!0;try{var d=r(a);return d}finally{if(as=!1,(Oa!==null||Yr!==null)&&(Q0(),Oa&&(a=Oa,r=Yr,Yr=Oa=null,Zi(a),r)))for(a=0;a<r.length;a++)Zi(r[a])}}function ha(r,a){var s=r.stateNode;if(s===null)return null;var d=s[Rn]||null;if(d===null)return null;s=d[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(s&&typeof s!="function")throw Error(i(231,a,typeof s));return s}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),is=!1;if(ma)try{var Ji={};Object.defineProperty(Ji,"passive",{get:function(){is=!0}}),window.addEventListener("test",Ji,Ji),window.removeEventListener("test",Ji,Ji)}catch{is=!1}var _a=null,pa=null,io=null;function e0(){if(io)return io;var r,a=pa,s=a.length,d,p="value"in _a?_a.value:_a.textContent,g=p.length;for(r=0;r<s&&a[r]===p[r];r++);var C=s-r;for(d=1;d<=C&&a[s-d]===p[g-d];d++);return io=p.slice(r,1<d?1-d:void 0)}function lo(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function ls(){return!0}function ss(){return!1}function In(r){function a(s,d,p,g,C){this._reactName=s,this._targetInst=p,this.type=d,this.nativeEvent=g,this.target=C,this.currentTarget=null;for(var M in r)r.hasOwnProperty(M)&&(s=r[M],this[M]=s?s(g):g[M]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?ls:ss,this.isPropagationStopped=ss,this}return v(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=ls)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=ls)},persist:function(){},isPersistent:ls}),a}var ga={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ya=In(ga),Ba=v({},ga,{view:0,detail:0}),t0=In(Ba),hi,os,mi,el=v({},Ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:al,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==mi&&(mi&&r.type==="mousemove"?(hi=r.screenX-mi.screenX,os=r.screenY-mi.screenY):os=hi=0,mi=r),hi)},movementY:function(r){return"movementY"in r?r.movementY:os}}),so=In(el),us=v({},el,{dataTransfer:0}),n0=In(us),cs=v({},Ba,{relatedTarget:0}),pi=In(cs),oo=v({},ga,{animationName:0,elapsedTime:0,pseudoElement:0}),uo=In(oo),ds=v({},ga,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),tl=In(ds),nl=v({},ga,{data:0}),va=In(nl),lr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sr={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"},rl={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fs(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=rl[r])?!!a[r]:!1}function al(){return fs}var co=v({},Ba,{key:function(r){if(r.key){var a=lr[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=lo(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?sr[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:al,charCode:function(r){return r.type==="keypress"?lo(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?lo(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),xu=In(co),bu=v({},el,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hs=In(bu),We=v({},Ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:al}),r0=In(We),Wr=v({},ga,{propertyName:0,elapsedTime:0,pseudoElement:0}),dn=In(Wr),wu=v({},el,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),gi=In(wu),fo=v({},ga,{newState:0,oldState:0}),Et=In(fo),il=[9,13,27,32],ll=ma&&"CompositionEvent"in window,xa=null;ma&&"documentMode"in document&&(xa=document.documentMode);var ms=ma&&"TextEvent"in window&&!xa,ho=ma&&(!ll||xa&&8<xa&&11>=xa),Ia=" ",a0=!1;function i0(r,a){switch(r){case"keyup":return il.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sl(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var yi=!1;function ku(r,a){switch(r){case"compositionend":return sl(a);case"keypress":return a.which!==32?null:(a0=!0,Ia);case"textInput":return r=a.data,r===Ia&&a0?null:r;default:return null}}function Su(r,a){if(yi)return r==="compositionend"||!ll&&i0(r,a)?(r=e0(),io=pa=_a=null,yi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return ho&&a.locale!=="ko"?null:a.data;default:return null}}var mo={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 l0(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!mo[r.type]:a==="textarea"}function Cu(r,a,s,d){Oa?Yr?Yr.push(d):Yr=[d]:Oa=d,a=ad(a,"onChange"),0<a.length&&(s=new ya("onChange","change",null,s,d),r.push({event:s,listeners:a}))}var vi=null,La=null;function Rf(r){Kg(r,0)}function qa(r){var a=fa(r);if(Da(a))return r}function s0(r,a){if(r==="change")return a}var o0=!1;if(ma){var ju;if(ma){var ps="oninput"in document;if(!ps){var Ua=document.createElement("div");Ua.setAttribute("oninput","return;"),ps=typeof Ua.oninput=="function"}ju=ps}else ju=!1;o0=ju&&(!document.documentMode||9<document.documentMode)}function ol(){vi&&(vi.detachEvent("onpropertychange",Le),La=vi=null)}function Le(r){if(r.propertyName==="value"&&qa(La)){var a=[];Cu(a,La,r,Vr(r)),Jt(Rf,a)}}function po(r,a,s){r==="focusin"?(ol(),vi=a,La=s,vi.attachEvent("onpropertychange",Le)):r==="focusout"&&ol()}function gs(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return qa(La)}function u0(r,a){if(r==="click")return qa(a)}function Tu(r,a){if(r==="input"||r==="change")return qa(a)}function Au(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var Vn=typeof Object.is=="function"?Object.is:Au;function fn(r,a){if(Vn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var s=Object.keys(r),d=Object.keys(a);if(s.length!==d.length)return!1;for(d=0;d<s.length;d++){var p=s[d];if(!Pt.call(a,p)||!Vn(r[p],a[p]))return!1}return!0}function c0(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function d0(r,a){var s=c0(r);r=0;for(var d;s;){if(s.nodeType===3){if(d=r+s.textContent.length,r<=a&&d>=a)return{node:s,offset:a-r};r=d}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=c0(s)}}function ys(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?ys(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function f0(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=no(r.document);a instanceof r.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)r=a.contentWindow;else break;a=no(r.document)}return a}function go(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var Eu=ma&&"documentMode"in document&&11>=document.documentMode,ul=null,Nu=null,Ha=null,vs=!1;function yo(r,a,s){var d=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;vs||ul==null||ul!==no(d)||(d=ul,"selectionStart"in d&&go(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Ha&&fn(Ha,d)||(Ha=d,d=ad(Nu,"onSelect"),0<d.length&&(a=new ya("onSelect","select",null,a,s),r.push({event:a,listeners:d}),a.target=ul)))}function xi(r,a){var s={};return s[r.toLowerCase()]=a.toLowerCase(),s["Webkit"+r]="webkit"+a,s["Moz"+r]="moz"+a,s}var Fa={animationend:xi("Animation","AnimationEnd"),animationiteration:xi("Animation","AnimationIteration"),animationstart:xi("Animation","AnimationStart"),transitionrun:xi("Transition","TransitionRun"),transitionstart:xi("Transition","TransitionStart"),transitioncancel:xi("Transition","TransitionCancel"),transitionend:xi("Transition","TransitionEnd")},Mu={},h0={};ma&&(h0=document.createElement("div").style,"AnimationEvent"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),"TransitionEvent"in window||delete Fa.transitionend.transition);function ba(r){if(Mu[r])return Mu[r];if(!Fa[r])return r;var a=Fa[r],s;for(s in a)if(a.hasOwnProperty(s)&&s in h0)return Mu[r]=a[s];return r}var zu=ba("animationend"),m0=ba("animationiteration"),p0=ba("animationstart"),g0=ba("transitionrun"),Of=ba("transitionstart"),_f=ba("transitioncancel"),y0=ba("transitionend"),v0=new Map,Du="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(" ");Du.push("scrollEnd");function jr(r,a){v0.set(r,a),oi(a,[r])}var vo=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},or=[],cl=0,Ru=0;function xo(){for(var r=cl,a=Ru=cl=0;a<r;){var s=or[a];or[a++]=null;var d=or[a];or[a++]=null;var p=or[a];or[a++]=null;var g=or[a];if(or[a++]=null,d!==null&&p!==null){var C=d.pending;C===null?p.next=p:(p.next=C.next,C.next=p),d.pending=p}g!==0&&x0(s,p,g)}}function bo(r,a,s,d){or[cl++]=r,or[cl++]=a,or[cl++]=s,or[cl++]=d,Ru|=d,r.lanes|=d,r=r.alternate,r!==null&&(r.lanes|=d)}function Ou(r,a,s,d){return bo(r,a,s,d),wo(r)}function bi(r,a){return bo(r,null,null,a),wo(r)}function x0(r,a,s){r.lanes|=s;var d=r.alternate;d!==null&&(d.lanes|=s);for(var p=!1,g=r.return;g!==null;)g.childLanes|=s,d=g.alternate,d!==null&&(d.childLanes|=s),g.tag===22&&(r=g.stateNode,r===null||r._visibility&1||(p=!0)),r=g,g=g.return;return r.tag===3?(g=r.stateNode,p&&a!==null&&(p=31-Dt(s),r=g.hiddenUpdates,d=r[p],d===null?r[p]=[a]:d.push(a),a.lane=s|536870912),g):null}function wo(r){if(50<rc)throw rc=0,Mh=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var dl={};function Bf(r,a,s,d){this.tag=r,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yn(r,a,s,d){return new Bf(r,a,s,d)}function ko(r){return r=r.prototype,!(!r||!r.isReactComponent)}function hn(r,a){var s=r.alternate;return s===null?(s=Yn(r.tag,a,r.key,r.mode),s.elementType=r.elementType,s.type=r.type,s.stateNode=r.stateNode,s.alternate=r,r.alternate=s):(s.pendingProps=a,s.type=r.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=r.flags&65011712,s.childLanes=r.childLanes,s.lanes=r.lanes,s.child=r.child,s.memoizedProps=r.memoizedProps,s.memoizedState=r.memoizedState,s.updateQueue=r.updateQueue,a=r.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=r.sibling,s.index=r.index,s.ref=r.ref,s.refCleanup=r.refCleanup,s}function _u(r,a){r.flags&=65011714;var s=r.alternate;return s===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=s.childLanes,r.lanes=s.lanes,r.child=s.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=s.memoizedProps,r.memoizedState=s.memoizedState,r.updateQueue=s.updateQueue,r.type=s.type,a=s.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function xs(r,a,s,d,p,g){var C=0;if(d=r,typeof r=="function")ko(r)&&(C=1);else if(typeof r=="string")C=Gx(r,s,de.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case J:return r=Yn(31,s,a,p),r.elementType=J,r.lanes=g,r;case E:return Tr(s.children,p,g,a);case q:C=8,p|=24;break;case R:return r=Yn(12,s,a,p|2),r.elementType=R,r.lanes=g,r;case te:return r=Yn(13,s,a,p),r.elementType=te,r.lanes=g,r;case _:return r=Yn(19,s,a,p),r.elementType=_,r.lanes=g,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case F:C=10;break e;case B:C=9;break e;case Y:C=11;break e;case K:C=14;break e;case le:C=16,d=null;break e}C=29,s=Error(i(130,r===null?"null":typeof r,"")),d=null}return a=Yn(C,s,a,p),a.elementType=r,a.type=d,a.lanes=g,a}function Tr(r,a,s,d){return r=Yn(7,r,d,a),r.lanes=s,r}function wa(r,a,s){return r=Yn(6,r,null,a),r.lanes=s,r}function b0(r){var a=Yn(18,null,null,0);return a.stateNode=r,a}function Bu(r,a,s){return a=Yn(4,r.children!==null?r.children:[],r.key,a),a.lanes=s,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var w0=new WeakMap;function ur(r,a){if(typeof r=="object"&&r!==null){var s=w0.get(r);return s!==void 0?s:(a={value:r,source:a,stack:Zt(a)},w0.set(r,a),a)}return{value:r,source:a,stack:Zt(a)}}var fl=[],$a=0,So=null,hl=0,Wn=[],cr=0,Ga=null,Xr=1,Ln="";function dr(r,a){fl[$a++]=hl,fl[$a++]=So,So=r,hl=a}function k0(r,a,s){Wn[cr++]=Xr,Wn[cr++]=Ln,Wn[cr++]=Ga,Ga=r;var d=Xr;r=Ln;var p=32-Dt(d)-1;d&=~(1<<p),s+=1;var g=32-Dt(a)+p;if(30<g){var C=p-p%5;g=(d&(1<<C)-1).toString(32),d>>=C,p-=C,Xr=1<<32-Dt(a)+p|s<<p|d,Ln=g+r}else Xr=1<<g|s<<p|d,Ln=r}function Co(r){r.return!==null&&(dr(r,1),k0(r,1,0))}function jo(r){for(;r===So;)So=fl[--$a],fl[$a]=null,hl=fl[--$a],fl[$a]=null;for(;r===Ga;)Ga=Wn[--cr],Wn[cr]=null,Ln=Wn[--cr],Wn[cr]=null,Xr=Wn[--cr],Wn[cr]=null}function S0(r,a){Wn[cr++]=Xr,Wn[cr++]=Ln,Wn[cr++]=Ga,Xr=a.id,Ln=a.overflow,Ga=r}var gn=null,Ut=null,mt=!1,Pa=null,fr=!1,Iu=Error(i(519));function Va(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bs(ur(a,r)),Iu}function C0(r){var a=r.stateNode,s=r.type,d=r.memoizedProps;switch(a[An]=r,a[Rn]=d,s){case"dialog":gt("cancel",a),gt("close",a);break;case"iframe":case"object":case"embed":gt("load",a);break;case"video":case"audio":for(s=0;s<ic.length;s++)gt(ic[s],a);break;case"source":gt("error",a);break;case"img":case"image":case"link":gt("error",a),gt("load",a);break;case"details":gt("toggle",a);break;case"input":gt("invalid",a),Pr(a,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":gt("invalid",a);break;case"textarea":gt("invalid",a),Qi(a,d.value,d.defaultValue,d.children)}s=d.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||d.suppressHydrationWarning===!0||e2(a.textContent,s)?(d.popover!=null&&(gt("beforetoggle",a),gt("toggle",a)),d.onScroll!=null&>("scroll",a),d.onScrollEnd!=null&>("scrollend",a),d.onClick!=null&&(a.onclick=ar),a=!0):a=!1,a||Va(r,!0)}function j0(r){for(gn=r.return;gn;)switch(gn.tag){case 5:case 31:case 13:fr=!1;return;case 27:case 3:fr=!0;return;default:gn=gn.return}}function ml(r){if(r!==gn)return!1;if(!mt)return j0(r),mt=!0,!1;var a=r.tag,s;if((s=a!==3&&a!==27)&&((s=a===5)&&(s=r.type,s=!(s!=="form"&&s!=="button")||Ph(r.type,r.memoizedProps)),s=!s),s&&Ut&&Va(r),j0(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Ut=u2(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Ut=u2(r)}else a===27?(a=Ut,zl(r.type)?(r=Kh,Kh=null,Ut=r):Ut=a):Ut=gn?ra(r.stateNode.nextSibling):null;return!0}function wi(){Ut=gn=null,mt=!1}function Lu(){var r=Pa;return r!==null&&(yr===null?yr=r:yr.push.apply(yr,r),Pa=null),r}function bs(r){Pa===null?Pa=[r]:Pa.push(r)}var qu=O(null),Kr=null,ka=null;function Qr(r,a,s){z(qu,a._currentValue),a._currentValue=s}function Sa(r){r._currentValue=qu.current,Q(qu)}function Uu(r,a,s){for(;r!==null;){var d=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,d!==null&&(d.childLanes|=a)):d!==null&&(d.childLanes&a)!==a&&(d.childLanes|=a),r===s)break;r=r.return}}function pl(r,a,s,d){var p=r.child;for(p!==null&&(p.return=r);p!==null;){var g=p.dependencies;if(g!==null){var C=p.child;g=g.firstContext;e:for(;g!==null;){var M=g;g=p;for(var P=0;P<a.length;P++)if(M.context===a[P]){g.lanes|=s,M=g.alternate,M!==null&&(M.lanes|=s),Uu(g.return,s,r),d||(C=null);break e}g=M.next}}else if(p.tag===18){if(C=p.return,C===null)throw Error(i(341));C.lanes|=s,g=C.alternate,g!==null&&(g.lanes|=s),Uu(C,s,r),C=null}else C=p.child;if(C!==null)C.return=p;else for(C=p;C!==null;){if(C===r){C=null;break}if(p=C.sibling,p!==null){p.return=C.return,C=p;break}C=C.return}p=C}}function gl(r,a,s,d){r=null;for(var p=a,g=!1;p!==null;){if(!g){if((p.flags&524288)!==0)g=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var C=p.alternate;if(C===null)throw Error(i(387));if(C=C.memoizedProps,C!==null){var M=p.type;Vn(p.pendingProps.value,C.value)||(r!==null?r.push(M):r=[M])}}else if(p===xe.current){if(C=p.alternate,C===null)throw Error(i(387));C.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(r!==null?r.push(cc):r=[cc])}p=p.return}r!==null&&pl(a,r,s,d),a.flags|=262144}function Ca(r){for(r=r.firstContext;r!==null;){if(!Vn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ja(r){Kr=r,ka=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function yn(r){return Hu(Kr,r)}function ws(r,a){return Kr===null&&ja(r),Hu(r,a)}function Hu(r,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},ka===null){if(r===null)throw Error(i(308));ka=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else ka=ka.next=a;return s}var ks=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(s,d){r.push(d)}};this.abort=function(){a.aborted=!0,r.forEach(function(s){return s()})}},If=e.unstable_scheduleCallback,Lf=e.unstable_NormalPriority,sn={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yl(){return{controller:new ks,data:new Map,refCount:0}}function Ss(r){r.refCount--,r.refCount===0&&If(Lf,function(){r.controller.abort()})}var vl=null,Fu=0,Zr=0,Jr=null;function Cs(r,a){if(vl===null){var s=vl=[];Fu=0,Zr=Bh(),Jr={status:"pending",value:void 0,then:function(d){s.push(d)}}}return Fu++,a.then(T0,T0),a}function T0(){if(--Fu===0&&vl!==null){Jr!==null&&(Jr.status="fulfilled");var r=vl;vl=null,Zr=0,Jr=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function qf(r,a){var s=[],d={status:"pending",value:null,reason:null,then:function(p){s.push(p)}};return r.then(function(){d.status="fulfilled",d.value=a;for(var p=0;p<s.length;p++)(0,s[p])(a)},function(p){for(d.status="rejected",d.reason=p,p=0;p<s.length;p++)(0,s[p])(void 0)}),d}var A0=ee.S;ee.S=function(r,a){Cg=Vt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&Cs(r,a),A0!==null&&A0(r,a)};var kt=O(null);function ea(){var r=kt.current;return r!==null?r:Ht.pooledCache}function To(r,a){a===null?z(kt,kt.current):z(kt,a.pool)}function hr(){var r=ea();return r===null?null:{parent:sn._currentValue,pool:r}}var xl=Error(i(460)),ta=Error(i(474)),Ao=Error(i(542)),js={then:function(){}};function E0(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Eo(r,a,s){switch(s=r[s],s===void 0?r.push(a):s!==a&&(a.then(ar,ar),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,$u(r),r;default:if(typeof a.status=="string")a.then(ar,ar);else{if(r=Ht,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(d){if(a.status==="pending"){var p=a;p.status="fulfilled",p.value=d}},function(d){if(a.status==="pending"){var p=a;p.status="rejected",p.reason=d}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,$u(r),r}throw Si=a,xl}}function ki(r){try{var a=r._init;return a(r._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Si=s,xl):s}}var Si=null;function N0(){if(Si===null)throw Error(i(459));var r=Si;return Si=null,r}function $u(r){if(r===xl||r===Ao)throw Error(i(483))}var Ci=null,bl=0;function Ts(r){var a=bl;return bl+=1,Ci===null&&(Ci=[]),Eo(Ci,r,a)}function x(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function j(r,a){throw a.$$typeof===k?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function N(r){function a(Z,W){if(r){var re=Z.deletions;re===null?(Z.deletions=[W],Z.flags|=16):re.push(W)}}function s(Z,W){if(!r)return null;for(;W!==null;)a(Z,W),W=W.sibling;return null}function d(Z){for(var W=new Map;Z!==null;)Z.key!==null?W.set(Z.key,Z):W.set(Z.index,Z),Z=Z.sibling;return W}function p(Z,W){return Z=hn(Z,W),Z.index=0,Z.sibling=null,Z}function g(Z,W,re){return Z.index=re,r?(re=Z.alternate,re!==null?(re=re.index,re<W?(Z.flags|=67108866,W):re):(Z.flags|=67108866,W)):(Z.flags|=1048576,W)}function C(Z){return r&&Z.alternate===null&&(Z.flags|=67108866),Z}function M(Z,W,re,ge){return W===null||W.tag!==6?(W=wa(re,Z.mode,ge),W.return=Z,W):(W=p(W,re),W.return=Z,W)}function P(Z,W,re,ge){var Xe=re.type;return Xe===E?me(Z,W,re.props.children,ge,re.key):W!==null&&(W.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===le&&ki(Xe)===W.type)?(W=p(W,re.props),x(W,re),W.return=Z,W):(W=xs(re.type,re.key,re.props,null,Z.mode,ge),x(W,re),W.return=Z,W)}function ae(Z,W,re,ge){return W===null||W.tag!==4||W.stateNode.containerInfo!==re.containerInfo||W.stateNode.implementation!==re.implementation?(W=Bu(re,Z.mode,ge),W.return=Z,W):(W=p(W,re.children||[]),W.return=Z,W)}function me(Z,W,re,ge,Xe){return W===null||W.tag!==7?(W=Tr(re,Z.mode,ge,Xe),W.return=Z,W):(W=p(W,re),W.return=Z,W)}function ye(Z,W,re){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return W=wa(""+W,Z.mode,re),W.return=Z,W;if(typeof W=="object"&&W!==null){switch(W.$$typeof){case w:return re=xs(W.type,W.key,W.props,null,Z.mode,re),x(re,W),re.return=Z,re;case T:return W=Bu(W,Z.mode,re),W.return=Z,W;case le:return W=ki(W),ye(Z,W,re)}if(ve(W)||fe(W))return W=Tr(W,Z.mode,re,null),W.return=Z,W;if(typeof W.then=="function")return ye(Z,Ts(W),re);if(W.$$typeof===F)return ye(Z,ws(Z,W),re);j(Z,W)}return null}function se(Z,W,re,ge){var Xe=W!==null?W.key:null;if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return Xe!==null?null:M(Z,W,""+re,ge);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case w:return re.key===Xe?P(Z,W,re,ge):null;case T:return re.key===Xe?ae(Z,W,re,ge):null;case le:return re=ki(re),se(Z,W,re,ge)}if(ve(re)||fe(re))return Xe!==null?null:me(Z,W,re,ge,null);if(typeof re.then=="function")return se(Z,W,Ts(re),ge);if(re.$$typeof===F)return se(Z,W,ws(Z,re),ge);j(Z,re)}return null}function ue(Z,W,re,ge,Xe){if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return Z=Z.get(re)||null,M(W,Z,""+ge,Xe);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case w:return Z=Z.get(ge.key===null?re:ge.key)||null,P(W,Z,ge,Xe);case T:return Z=Z.get(ge.key===null?re:ge.key)||null,ae(W,Z,ge,Xe);case le:return ge=ki(ge),ue(Z,W,re,ge,Xe)}if(ve(ge)||fe(ge))return Z=Z.get(re)||null,me(W,Z,ge,Xe,null);if(typeof ge.then=="function")return ue(Z,W,re,Ts(ge),Xe);if(ge.$$typeof===F)return ue(Z,W,re,ws(W,ge),Xe);j(W,ge)}return null}function Fe(Z,W,re,ge){for(var Xe=null,jt=null,Pe=W,ct=W=0,bt=null;Pe!==null&&ct<re.length;ct++){Pe.index>ct?(bt=Pe,Pe=null):bt=Pe.sibling;var Tt=se(Z,Pe,re[ct],ge);if(Tt===null){Pe===null&&(Pe=bt);break}r&&Pe&&Tt.alternate===null&&a(Z,Pe),W=g(Tt,W,ct),jt===null?Xe=Tt:jt.sibling=Tt,jt=Tt,Pe=bt}if(ct===re.length)return s(Z,Pe),mt&&dr(Z,ct),Xe;if(Pe===null){for(;ct<re.length;ct++)Pe=ye(Z,re[ct],ge),Pe!==null&&(W=g(Pe,W,ct),jt===null?Xe=Pe:jt.sibling=Pe,jt=Pe);return mt&&dr(Z,ct),Xe}for(Pe=d(Pe);ct<re.length;ct++)bt=ue(Pe,Z,ct,re[ct],ge),bt!==null&&(r&&bt.alternate!==null&&Pe.delete(bt.key===null?ct:bt.key),W=g(bt,W,ct),jt===null?Xe=bt:jt.sibling=bt,jt=bt);return r&&Pe.forEach(function(Bl){return a(Z,Bl)}),mt&&dr(Z,ct),Xe}function Ze(Z,W,re,ge){if(re==null)throw Error(i(151));for(var Xe=null,jt=null,Pe=W,ct=W=0,bt=null,Tt=re.next();Pe!==null&&!Tt.done;ct++,Tt=re.next()){Pe.index>ct?(bt=Pe,Pe=null):bt=Pe.sibling;var Bl=se(Z,Pe,Tt.value,ge);if(Bl===null){Pe===null&&(Pe=bt);break}r&&Pe&&Bl.alternate===null&&a(Z,Pe),W=g(Bl,W,ct),jt===null?Xe=Bl:jt.sibling=Bl,jt=Bl,Pe=bt}if(Tt.done)return s(Z,Pe),mt&&dr(Z,ct),Xe;if(Pe===null){for(;!Tt.done;ct++,Tt=re.next())Tt=ye(Z,Tt.value,ge),Tt!==null&&(W=g(Tt,W,ct),jt===null?Xe=Tt:jt.sibling=Tt,jt=Tt);return mt&&dr(Z,ct),Xe}for(Pe=d(Pe);!Tt.done;ct++,Tt=re.next())Tt=ue(Pe,Z,ct,Tt.value,ge),Tt!==null&&(r&&Tt.alternate!==null&&Pe.delete(Tt.key===null?ct:Tt.key),W=g(Tt,W,ct),jt===null?Xe=Tt:jt.sibling=Tt,jt=Tt);return r&&Pe.forEach(function(tb){return a(Z,tb)}),mt&&dr(Z,ct),Xe}function qt(Z,W,re,ge){if(typeof re=="object"&&re!==null&&re.type===E&&re.key===null&&(re=re.props.children),typeof re=="object"&&re!==null){switch(re.$$typeof){case w:e:{for(var Xe=re.key;W!==null;){if(W.key===Xe){if(Xe=re.type,Xe===E){if(W.tag===7){s(Z,W.sibling),ge=p(W,re.props.children),ge.return=Z,Z=ge;break e}}else if(W.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===le&&ki(Xe)===W.type){s(Z,W.sibling),ge=p(W,re.props),x(ge,re),ge.return=Z,Z=ge;break e}s(Z,W);break}else a(Z,W);W=W.sibling}re.type===E?(ge=Tr(re.props.children,Z.mode,ge,re.key),ge.return=Z,Z=ge):(ge=xs(re.type,re.key,re.props,null,Z.mode,ge),x(ge,re),ge.return=Z,Z=ge)}return C(Z);case T:e:{for(Xe=re.key;W!==null;){if(W.key===Xe)if(W.tag===4&&W.stateNode.containerInfo===re.containerInfo&&W.stateNode.implementation===re.implementation){s(Z,W.sibling),ge=p(W,re.children||[]),ge.return=Z,Z=ge;break e}else{s(Z,W);break}else a(Z,W);W=W.sibling}ge=Bu(re,Z.mode,ge),ge.return=Z,Z=ge}return C(Z);case le:return re=ki(re),qt(Z,W,re,ge)}if(ve(re))return Fe(Z,W,re,ge);if(fe(re)){if(Xe=fe(re),typeof Xe!="function")throw Error(i(150));return re=Xe.call(re),Ze(Z,W,re,ge)}if(typeof re.then=="function")return qt(Z,W,Ts(re),ge);if(re.$$typeof===F)return qt(Z,W,ws(Z,re),ge);j(Z,re)}return typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint"?(re=""+re,W!==null&&W.tag===6?(s(Z,W.sibling),ge=p(W,re),ge.return=Z,Z=ge):(s(Z,W),ge=wa(re,Z.mode,ge),ge.return=Z,Z=ge),C(Z)):s(Z,W)}return function(Z,W,re,ge){try{bl=0;var Xe=qt(Z,W,re,ge);return Ci=null,Xe}catch(Pe){if(Pe===xl||Pe===Ao)throw Pe;var jt=Yn(29,Pe,null,Z.mode);return jt.lanes=ge,jt.return=Z,jt}finally{}}}var L=N(!0),V=N(!1),ie=!1;function Se(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ge(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ze(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function _e(r,a,s){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(Nt&2)!==0){var p=d.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),d.pending=a,a=wo(r),x0(r,null,s),a}return bo(r,d,a,s),wo(r)}function Rt(r,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194048)!==0)){var d=a.lanes;d&=r.pendingLanes,s|=d,a.lanes=s,Vi(r,s)}}function St(r,a){var s=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,s===d)){var p=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var C={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};g===null?p=g=C:g=g.next=C,s=s.next}while(s!==null);g===null?p=g=a:g=g.next=a}else p=g=a;s={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:d.shared,callbacks:d.callbacks},r.updateQueue=s;return}r=s.lastBaseUpdate,r===null?s.firstBaseUpdate=a:r.next=a,s.lastBaseUpdate=a}var As=!1;function wl(){if(As){var r=Jr;if(r!==null)throw r}}function Gu(r,a,s,d){As=!1;var p=r.updateQueue;ie=!1;var g=p.firstBaseUpdate,C=p.lastBaseUpdate,M=p.shared.pending;if(M!==null){p.shared.pending=null;var P=M,ae=P.next;P.next=null,C===null?g=ae:C.next=ae,C=P;var me=r.alternate;me!==null&&(me=me.updateQueue,M=me.lastBaseUpdate,M!==C&&(M===null?me.firstBaseUpdate=ae:M.next=ae,me.lastBaseUpdate=P))}if(g!==null){var ye=p.baseState;C=0,me=ae=P=null,M=g;do{var se=M.lane&-536870913,ue=se!==M.lane;if(ue?(xt&se)===se:(d&se)===se){se!==0&&se===Zr&&(As=!0),me!==null&&(me=me.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var Fe=r,Ze=M;se=a;var qt=s;switch(Ze.tag){case 1:if(Fe=Ze.payload,typeof Fe=="function"){ye=Fe.call(qt,ye,se);break e}ye=Fe;break e;case 3:Fe.flags=Fe.flags&-65537|128;case 0:if(Fe=Ze.payload,se=typeof Fe=="function"?Fe.call(qt,ye,se):Fe,se==null)break e;ye=v({},ye,se);break e;case 2:ie=!0}}se=M.callback,se!==null&&(r.flags|=64,ue&&(r.flags|=8192),ue=p.callbacks,ue===null?p.callbacks=[se]:ue.push(se))}else ue={lane:se,tag:M.tag,payload:M.payload,callback:M.callback,next:null},me===null?(ae=me=ue,P=ye):me=me.next=ue,C|=se;if(M=M.next,M===null){if(M=p.shared.pending,M===null)break;ue=M,M=ue.next,ue.next=null,p.lastBaseUpdate=ue,p.shared.pending=null}}while(!0);me===null&&(P=ye),p.baseState=P,p.firstBaseUpdate=ae,p.lastBaseUpdate=me,g===null&&(p.shared.lanes=0),Tl|=C,r.lanes=C,r.memoizedState=ye}}function X1(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function K1(r,a){var s=r.callbacks;if(s!==null)for(r.callbacks=null,r=0;r<s.length;r++)X1(s[r],a)}var No=O(null),M0=O(0);function Q1(r,a){r=Ri,z(M0,r),z(No,a),Ri=r|a.baseLanes}function Uf(){z(M0,Ri),z(No,No.current)}function Hf(){Ri=M0.current,Q(No),Q(M0)}var Ar=O(null),na=null;function kl(r){var a=r.alternate;z(mn,mn.current&1),z(Ar,r),na===null&&(a===null||No.current!==null||a.memoizedState!==null)&&(na=r)}function Ff(r){z(mn,mn.current),z(Ar,r),na===null&&(na=r)}function Z1(r){r.tag===22?(z(mn,mn.current),z(Ar,r),na===null&&(na=r)):Sl()}function Sl(){z(mn,mn.current),z(Ar,Ar.current)}function Er(r){Q(Ar),na===r&&(na=null),Q(mn)}var mn=O(0);function z0(r){for(var a=r;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Wh(s)||Xh(s)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var ji=0,ot=null,It=null,vn=null,D0=!1,Mo=!1,Es=!1,R0=0,Pu=0,zo=null,P7=0;function on(){throw Error(i(321))}function $f(r,a){if(a===null)return!1;for(var s=0;s<a.length&&s<r.length;s++)if(!Vn(r[s],a[s]))return!1;return!0}function Gf(r,a,s,d,p,g){return ji=g,ot=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,ee.H=r===null||r.memoizedState===null?_4:ih,Es=!1,g=s(d,p),Es=!1,Mo&&(g=e4(a,s,d,p)),J1(r),g}function J1(r){ee.H=Wu;var a=It!==null&&It.next!==null;if(ji=0,vn=It=ot=null,D0=!1,Pu=0,zo=null,a)throw Error(i(300));r===null||xn||(r=r.dependencies,r!==null&&Ca(r)&&(xn=!0))}function e4(r,a,s,d){ot=r;var p=0;do{if(Mo&&(zo=null),Pu=0,Mo=!1,25<=p)throw Error(i(301));if(p+=1,vn=It=null,r.updateQueue!=null){var g=r.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}ee.H=B4,g=a(s,d)}while(Mo);return g}function V7(){var r=ee.H,a=r.useState()[0];return a=typeof a.then=="function"?Vu(a):a,r=r.useState()[0],(It!==null?It.memoizedState:null)!==r&&(ot.flags|=1024),a}function Pf(){var r=R0!==0;return R0=0,r}function Vf(r,a,s){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~s}function Yf(r){if(D0){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}D0=!1}ji=0,vn=It=ot=null,Mo=!1,Pu=R0=0,zo=null}function Xn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vn===null?ot.memoizedState=vn=r:vn=vn.next=r,vn}function pn(){if(It===null){var r=ot.alternate;r=r!==null?r.memoizedState:null}else r=It.next;var a=vn===null?ot.memoizedState:vn.next;if(a!==null)vn=a,It=r;else{if(r===null)throw ot.alternate===null?Error(i(467)):Error(i(310));It=r,r={memoizedState:It.memoizedState,baseState:It.baseState,baseQueue:It.baseQueue,queue:It.queue,next:null},vn===null?ot.memoizedState=vn=r:vn=vn.next=r}return vn}function O0(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vu(r){var a=Pu;return Pu+=1,zo===null&&(zo=[]),r=Eo(zo,r,a),a=ot,(vn===null?a.memoizedState:vn.next)===null&&(a=a.alternate,ee.H=a===null||a.memoizedState===null?_4:ih),r}function _0(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Vu(r);if(r.$$typeof===F)return yn(r)}throw Error(i(438,String(r)))}function Wf(r){var a=null,s=ot.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var d=ot.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(a={data:d.data.map(function(p){return p.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=O0(),ot.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(r),d=0;d<r;d++)s[d]=G;return a.index++,s}function Ti(r,a){return typeof a=="function"?a(r):a}function B0(r){var a=pn();return Xf(a,It,r)}function Xf(r,a,s){var d=r.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=s;var p=r.baseQueue,g=d.pending;if(g!==null){if(p!==null){var C=p.next;p.next=g.next,g.next=C}a.baseQueue=p=g,d.pending=null}if(g=r.baseState,p===null)r.memoizedState=g;else{a=p.next;var M=C=null,P=null,ae=a,me=!1;do{var ye=ae.lane&-536870913;if(ye!==ae.lane?(xt&ye)===ye:(ji&ye)===ye){var se=ae.revertLane;if(se===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),ye===Zr&&(me=!0);else if((ji&se)===se){ae=ae.next,se===Zr&&(me=!0);continue}else ye={lane:0,revertLane:ae.revertLane,gesture:null,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},P===null?(M=P=ye,C=g):P=P.next=ye,ot.lanes|=se,Tl|=se;ye=ae.action,Es&&s(g,ye),g=ae.hasEagerState?ae.eagerState:s(g,ye)}else se={lane:ye,revertLane:ae.revertLane,gesture:ae.gesture,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},P===null?(M=P=se,C=g):P=P.next=se,ot.lanes|=ye,Tl|=ye;ae=ae.next}while(ae!==null&&ae!==a);if(P===null?C=g:P.next=M,!Vn(g,r.memoizedState)&&(xn=!0,me&&(s=Jr,s!==null)))throw s;r.memoizedState=g,r.baseState=C,r.baseQueue=P,d.lastRenderedState=g}return p===null&&(d.lanes=0),[r.memoizedState,d.dispatch]}function Kf(r){var a=pn(),s=a.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=r;var d=s.dispatch,p=s.pending,g=a.memoizedState;if(p!==null){s.pending=null;var C=p=p.next;do g=r(g,C.action),C=C.next;while(C!==p);Vn(g,a.memoizedState)||(xn=!0),a.memoizedState=g,a.baseQueue===null&&(a.baseState=g),s.lastRenderedState=g}return[g,d]}function t4(r,a,s){var d=ot,p=pn(),g=mt;if(g){if(s===void 0)throw Error(i(407));s=s()}else s=a();var C=!Vn((It||p).memoizedState,s);if(C&&(p.memoizedState=s,xn=!0),p=p.queue,Jf(a4.bind(null,d,p,r),[r]),p.getSnapshot!==a||C||vn!==null&&vn.memoizedState.tag&1){if(d.flags|=2048,Do(9,{destroy:void 0},r4.bind(null,d,p,s,a),null),Ht===null)throw Error(i(349));g||(ji&127)!==0||n4(d,a,s)}return s}function n4(r,a,s){r.flags|=16384,r={getSnapshot:a,value:s},a=ot.updateQueue,a===null?(a=O0(),ot.updateQueue=a,a.stores=[r]):(s=a.stores,s===null?a.stores=[r]:s.push(r))}function r4(r,a,s,d){a.value=s,a.getSnapshot=d,i4(a)&&l4(r)}function a4(r,a,s){return s(function(){i4(a)&&l4(r)})}function i4(r){var a=r.getSnapshot;r=r.value;try{var s=a();return!Vn(r,s)}catch{return!0}}function l4(r){var a=bi(r,2);a!==null&&vr(a,r,2)}function Qf(r){var a=Xn();if(typeof r=="function"){var s=r;if(r=s(),Es){Dn(!0);try{s()}finally{Dn(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:r},a}function s4(r,a,s,d){return r.baseState=s,Xf(r,It,typeof d=="function"?d:Ti)}function Y7(r,a,s,d,p){if(q0(r))throw Error(i(485));if(r=a.action,r!==null){var g={payload:p,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){g.listeners.push(C)}};ee.T!==null?s(!0):g.isTransition=!1,d(g),s=a.pending,s===null?(g.next=a.pending=g,o4(a,g)):(g.next=s.next,a.pending=s.next=g)}}function o4(r,a){var s=a.action,d=a.payload,p=r.state;if(a.isTransition){var g=ee.T,C={};ee.T=C;try{var M=s(p,d),P=ee.S;P!==null&&P(C,M),u4(r,a,M)}catch(ae){Zf(r,a,ae)}finally{g!==null&&C.types!==null&&(g.types=C.types),ee.T=g}}else try{g=s(p,d),u4(r,a,g)}catch(ae){Zf(r,a,ae)}}function u4(r,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(d){c4(r,a,d)},function(d){return Zf(r,a,d)}):c4(r,a,s)}function c4(r,a,s){a.status="fulfilled",a.value=s,d4(a),r.state=s,a=r.pending,a!==null&&(s=a.next,s===a?r.pending=null:(s=s.next,a.next=s,o4(r,s)))}function Zf(r,a,s){var d=r.pending;if(r.pending=null,d!==null){d=d.next;do a.status="rejected",a.reason=s,d4(a),a=a.next;while(a!==d)}r.action=null}function d4(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function f4(r,a){return a}function h4(r,a){if(mt){var s=Ht.formState;if(s!==null){e:{var d=ot;if(mt){if(Ut){t:{for(var p=Ut,g=fr;p.nodeType!==8;){if(!g){p=null;break t}if(p=ra(p.nextSibling),p===null){p=null;break t}}g=p.data,p=g==="F!"||g==="F"?p:null}if(p){Ut=ra(p.nextSibling),d=p.data==="F!";break e}}Va(d)}d=!1}d&&(a=s[0])}}return s=Xn(),s.memoizedState=s.baseState=a,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f4,lastRenderedState:a},s.queue=d,s=D4.bind(null,ot,d),d.dispatch=s,d=Qf(!1),g=ah.bind(null,ot,!1,d.queue),d=Xn(),p={state:a,dispatch:null,action:r,pending:null},d.queue=p,s=Y7.bind(null,ot,p,g,s),p.dispatch=s,d.memoizedState=r,[a,s,!1]}function m4(r){var a=pn();return p4(a,It,r)}function p4(r,a,s){if(a=Xf(r,a,f4)[0],r=B0(Ti)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var d=Vu(a)}catch(C){throw C===xl?Ao:C}else d=a;a=pn();var p=a.queue,g=p.dispatch;return s!==a.memoizedState&&(ot.flags|=2048,Do(9,{destroy:void 0},W7.bind(null,p,s),null)),[d,g,r]}function W7(r,a){r.action=a}function g4(r){var a=pn(),s=It;if(s!==null)return p4(a,s,r);pn(),a=a.memoizedState,s=pn();var d=s.queue.dispatch;return s.memoizedState=r,[a,d,!1]}function Do(r,a,s,d){return r={tag:r,create:s,deps:d,inst:a,next:null},a=ot.updateQueue,a===null&&(a=O0(),ot.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=r.next=r:(d=s.next,s.next=r,r.next=d,a.lastEffect=r),r}function y4(){return pn().memoizedState}function I0(r,a,s,d){var p=Xn();ot.flags|=r,p.memoizedState=Do(1|a,{destroy:void 0},s,d===void 0?null:d)}function L0(r,a,s,d){var p=pn();d=d===void 0?null:d;var g=p.memoizedState.inst;It!==null&&d!==null&&$f(d,It.memoizedState.deps)?p.memoizedState=Do(a,g,s,d):(ot.flags|=r,p.memoizedState=Do(1|a,g,s,d))}function v4(r,a){I0(8390656,8,r,a)}function Jf(r,a){L0(2048,8,r,a)}function X7(r){ot.flags|=4;var a=ot.updateQueue;if(a===null)a=O0(),ot.updateQueue=a,a.events=[r];else{var s=a.events;s===null?a.events=[r]:s.push(r)}}function x4(r){var a=pn().memoizedState;return X7({ref:a,nextImpl:r}),function(){if((Nt&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function b4(r,a){return L0(4,2,r,a)}function w4(r,a){return L0(4,4,r,a)}function k4(r,a){if(typeof a=="function"){r=r();var s=a(r);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function S4(r,a,s){s=s!=null?s.concat([r]):null,L0(4,4,k4.bind(null,a,r),s)}function eh(){}function C4(r,a){var s=pn();a=a===void 0?null:a;var d=s.memoizedState;return a!==null&&$f(a,d[1])?d[0]:(s.memoizedState=[r,a],r)}function j4(r,a){var s=pn();a=a===void 0?null:a;var d=s.memoizedState;if(a!==null&&$f(a,d[1]))return d[0];if(d=r(),Es){Dn(!0);try{r()}finally{Dn(!1)}}return s.memoizedState=[d,a],d}function th(r,a,s){return s===void 0||(ji&1073741824)!==0&&(xt&261930)===0?r.memoizedState=a:(r.memoizedState=s,r=Tg(),ot.lanes|=r,Tl|=r,s)}function T4(r,a,s,d){return Vn(s,a)?s:No.current!==null?(r=th(r,s,d),Vn(r,a)||(xn=!0),r):(ji&42)===0||(ji&1073741824)!==0&&(xt&261930)===0?(xn=!0,r.memoizedState=s):(r=Tg(),ot.lanes|=r,Tl|=r,a)}function A4(r,a,s,d,p){var g=pe.p;pe.p=g!==0&&8>g?g:8;var C=ee.T,M={};ee.T=M,ah(r,!1,a,s);try{var P=p(),ae=ee.S;if(ae!==null&&ae(M,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var me=qf(P,d);Yu(r,a,me,zr(r))}else Yu(r,a,d,zr(r))}catch(ye){Yu(r,a,{then:function(){},status:"rejected",reason:ye},zr())}finally{pe.p=g,C!==null&&M.types!==null&&(C.types=M.types),ee.T=C}}function K7(){}function nh(r,a,s,d){if(r.tag!==5)throw Error(i(476));var p=E4(r).queue;A4(r,p,a,De,s===null?K7:function(){return N4(r),s(d)})}function E4(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:De,baseState:De,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:De},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:s},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function N4(r){var a=E4(r);a.next===null&&(a=r.alternate.memoizedState),Yu(r,a.next.queue,{},zr())}function rh(){return yn(cc)}function M4(){return pn().memoizedState}function z4(){return pn().memoizedState}function Q7(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var s=zr();r=ze(s);var d=_e(a,r,s);d!==null&&(vr(d,a,s),Rt(d,a,s)),a={cache:yl()},r.payload=a;return}a=a.return}}function Z7(r,a,s){var d=zr();s={lane:d,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},q0(r)?R4(a,s):(s=Ou(r,a,s,d),s!==null&&(vr(s,r,d),O4(s,a,d)))}function D4(r,a,s){var d=zr();Yu(r,a,s,d)}function Yu(r,a,s,d){var p={lane:d,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(q0(r))R4(a,p);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=a.lastRenderedReducer,g!==null))try{var C=a.lastRenderedState,M=g(C,s);if(p.hasEagerState=!0,p.eagerState=M,Vn(M,C))return bo(r,a,p,0),Ht===null&&xo(),!1}catch{}finally{}if(s=Ou(r,a,p,d),s!==null)return vr(s,r,d),O4(s,a,d),!0}return!1}function ah(r,a,s,d){if(d={lane:2,revertLane:Bh(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},q0(r)){if(a)throw Error(i(479))}else a=Ou(r,s,d,2),a!==null&&vr(a,r,2)}function q0(r){var a=r.alternate;return r===ot||a!==null&&a===ot}function R4(r,a){Mo=D0=!0;var s=r.pending;s===null?a.next=a:(a.next=s.next,s.next=a),r.pending=a}function O4(r,a,s){if((s&4194048)!==0){var d=a.lanes;d&=r.pendingLanes,s|=d,a.lanes=s,Vi(r,s)}}var Wu={readContext:yn,use:_0,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useLayoutEffect:on,useInsertionEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useSyncExternalStore:on,useId:on,useHostTransitionStatus:on,useFormState:on,useActionState:on,useOptimistic:on,useMemoCache:on,useCacheRefresh:on};Wu.useEffectEvent=on;var _4={readContext:yn,use:_0,useCallback:function(r,a){return Xn().memoizedState=[r,a===void 0?null:a],r},useContext:yn,useEffect:v4,useImperativeHandle:function(r,a,s){s=s!=null?s.concat([r]):null,I0(4194308,4,k4.bind(null,a,r),s)},useLayoutEffect:function(r,a){return I0(4194308,4,r,a)},useInsertionEffect:function(r,a){I0(4,2,r,a)},useMemo:function(r,a){var s=Xn();a=a===void 0?null:a;var d=r();if(Es){Dn(!0);try{r()}finally{Dn(!1)}}return s.memoizedState=[d,a],d},useReducer:function(r,a,s){var d=Xn();if(s!==void 0){var p=s(a);if(Es){Dn(!0);try{s(a)}finally{Dn(!1)}}}else p=a;return d.memoizedState=d.baseState=p,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:p},d.queue=r,r=r.dispatch=Z7.bind(null,ot,r),[d.memoizedState,r]},useRef:function(r){var a=Xn();return r={current:r},a.memoizedState=r},useState:function(r){r=Qf(r);var a=r.queue,s=D4.bind(null,ot,a);return a.dispatch=s,[r.memoizedState,s]},useDebugValue:eh,useDeferredValue:function(r,a){var s=Xn();return th(s,r,a)},useTransition:function(){var r=Qf(!1);return r=A4.bind(null,ot,r.queue,!0,!1),Xn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,s){var d=ot,p=Xn();if(mt){if(s===void 0)throw Error(i(407));s=s()}else{if(s=a(),Ht===null)throw Error(i(349));(xt&127)!==0||n4(d,a,s)}p.memoizedState=s;var g={value:s,getSnapshot:a};return p.queue=g,v4(a4.bind(null,d,g,r),[r]),d.flags|=2048,Do(9,{destroy:void 0},r4.bind(null,d,g,s,a),null),s},useId:function(){var r=Xn(),a=Ht.identifierPrefix;if(mt){var s=Ln,d=Xr;s=(d&~(1<<32-Dt(d)-1)).toString(32)+s,a="_"+a+"R_"+s,s=R0++,0<s&&(a+="H"+s.toString(32)),a+="_"}else s=P7++,a="_"+a+"r_"+s.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:rh,useFormState:h4,useActionState:h4,useOptimistic:function(r){var a=Xn();a.memoizedState=a.baseState=r;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=ah.bind(null,ot,!0,s),s.dispatch=a,[r,a]},useMemoCache:Wf,useCacheRefresh:function(){return Xn().memoizedState=Q7.bind(null,ot)},useEffectEvent:function(r){var a=Xn(),s={impl:r};return a.memoizedState=s,function(){if((Nt&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}},ih={readContext:yn,use:_0,useCallback:C4,useContext:yn,useEffect:Jf,useImperativeHandle:S4,useInsertionEffect:b4,useLayoutEffect:w4,useMemo:j4,useReducer:B0,useRef:y4,useState:function(){return B0(Ti)},useDebugValue:eh,useDeferredValue:function(r,a){var s=pn();return T4(s,It.memoizedState,r,a)},useTransition:function(){var r=B0(Ti)[0],a=pn().memoizedState;return[typeof r=="boolean"?r:Vu(r),a]},useSyncExternalStore:t4,useId:M4,useHostTransitionStatus:rh,useFormState:m4,useActionState:m4,useOptimistic:function(r,a){var s=pn();return s4(s,It,r,a)},useMemoCache:Wf,useCacheRefresh:z4};ih.useEffectEvent=x4;var B4={readContext:yn,use:_0,useCallback:C4,useContext:yn,useEffect:Jf,useImperativeHandle:S4,useInsertionEffect:b4,useLayoutEffect:w4,useMemo:j4,useReducer:Kf,useRef:y4,useState:function(){return Kf(Ti)},useDebugValue:eh,useDeferredValue:function(r,a){var s=pn();return It===null?th(s,r,a):T4(s,It.memoizedState,r,a)},useTransition:function(){var r=Kf(Ti)[0],a=pn().memoizedState;return[typeof r=="boolean"?r:Vu(r),a]},useSyncExternalStore:t4,useId:M4,useHostTransitionStatus:rh,useFormState:g4,useActionState:g4,useOptimistic:function(r,a){var s=pn();return It!==null?s4(s,It,r,a):(s.baseState=r,[r,s.queue.dispatch])},useMemoCache:Wf,useCacheRefresh:z4};B4.useEffectEvent=x4;function lh(r,a,s,d){a=r.memoizedState,s=s(d,a),s=s==null?a:v({},a,s),r.memoizedState=s,r.lanes===0&&(r.updateQueue.baseState=s)}var sh={enqueueSetState:function(r,a,s){r=r._reactInternals;var d=zr(),p=ze(d);p.payload=a,s!=null&&(p.callback=s),a=_e(r,p,d),a!==null&&(vr(a,r,d),Rt(a,r,d))},enqueueReplaceState:function(r,a,s){r=r._reactInternals;var d=zr(),p=ze(d);p.tag=1,p.payload=a,s!=null&&(p.callback=s),a=_e(r,p,d),a!==null&&(vr(a,r,d),Rt(a,r,d))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var s=zr(),d=ze(s);d.tag=2,a!=null&&(d.callback=a),a=_e(r,d,s),a!==null&&(vr(a,r,s),Rt(a,r,s))}};function I4(r,a,s,d,p,g,C){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,g,C):a.prototype&&a.prototype.isPureReactComponent?!fn(s,d)||!fn(p,g):!0}function L4(r,a,s,d){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,d),a.state!==r&&sh.enqueueReplaceState(a,a.state,null)}function Ns(r,a){var s=a;if("ref"in a){s={};for(var d in a)d!=="ref"&&(s[d]=a[d])}if(r=r.defaultProps){s===a&&(s=v({},s));for(var p in r)s[p]===void 0&&(s[p]=r[p])}return s}function q4(r){vo(r)}function U4(r){console.error(r)}function H4(r){vo(r)}function U0(r,a){try{var s=r.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(d){setTimeout(function(){throw d})}}function F4(r,a,s){try{var d=r.onCaughtError;d(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function oh(r,a,s){return s=ze(s),s.tag=3,s.payload={element:null},s.callback=function(){U0(r,a)},s}function $4(r){return r=ze(r),r.tag=3,r}function G4(r,a,s,d){var p=s.type.getDerivedStateFromError;if(typeof p=="function"){var g=d.value;r.payload=function(){return p(g)},r.callback=function(){F4(a,s,d)}}var C=s.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(r.callback=function(){F4(a,s,d),typeof p!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var M=d.stack;this.componentDidCatch(d.value,{componentStack:M!==null?M:""})})}function J7(r,a,s,d,p){if(s.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(a=s.alternate,a!==null&&gl(a,s,p,!0),s=Ar.current,s!==null){switch(s.tag){case 31:case 13:return na===null?Z0():s.alternate===null&&un===0&&(un=3),s.flags&=-257,s.flags|=65536,s.lanes=p,d===js?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([d]):a.add(d),Rh(r,d,p)),!1;case 22:return s.flags|=65536,d===js?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([d])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([d]):s.add(d)),Rh(r,d,p)),!1}throw Error(i(435,s.tag))}return Rh(r,d,p),Z0(),!1}if(mt)return a=Ar.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=p,d!==Iu&&(r=Error(i(422),{cause:d}),bs(ur(r,s)))):(d!==Iu&&(a=Error(i(423),{cause:d}),bs(ur(a,s))),r=r.current.alternate,r.flags|=65536,p&=-p,r.lanes|=p,d=ur(d,s),p=oh(r.stateNode,d,p),St(r,p),un!==4&&(un=2)),!1;var g=Error(i(520),{cause:d});if(g=ur(g,s),nc===null?nc=[g]:nc.push(g),un!==4&&(un=2),a===null)return!0;d=ur(d,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,r=p&-p,s.lanes|=r,r=oh(s.stateNode,d,r),St(s,r),!1;case 1:if(a=s.type,g=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Al===null||!Al.has(g))))return s.flags|=65536,p&=-p,s.lanes|=p,p=$4(p),G4(p,r,s,d),St(s,p),!1}s=s.return}while(s!==null);return!1}var uh=Error(i(461)),xn=!1;function qn(r,a,s,d){a.child=r===null?V(a,null,s,d):L(a,r.child,s,d)}function P4(r,a,s,d,p){s=s.render;var g=a.ref;if("ref"in d){var C={};for(var M in d)M!=="ref"&&(C[M]=d[M])}else C=d;return ja(a),d=Gf(r,a,s,C,g,p),M=Pf(),r!==null&&!xn?(Vf(r,a,p),Ai(r,a,p)):(mt&&M&&Co(a),a.flags|=1,qn(r,a,d,p),a.child)}function V4(r,a,s,d,p){if(r===null){var g=s.type;return typeof g=="function"&&!ko(g)&&g.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=g,Y4(r,a,g,d,p)):(r=xs(s.type,null,d,a,a.mode,p),r.ref=a.ref,r.return=a,a.child=r)}if(g=r.child,!yh(r,p)){var C=g.memoizedProps;if(s=s.compare,s=s!==null?s:fn,s(C,d)&&r.ref===a.ref)return Ai(r,a,p)}return a.flags|=1,r=hn(g,d),r.ref=a.ref,r.return=a,a.child=r}function Y4(r,a,s,d,p){if(r!==null){var g=r.memoizedProps;if(fn(g,d)&&r.ref===a.ref)if(xn=!1,a.pendingProps=d=g,yh(r,p))(r.flags&131072)!==0&&(xn=!0);else return a.lanes=r.lanes,Ai(r,a,p)}return ch(r,a,s,d,p)}function W4(r,a,s,d){var p=d.children,g=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((a.flags&128)!==0){if(g=g!==null?g.baseLanes|s:s,r!==null){for(d=a.child=r.child,p=0;d!==null;)p=p|d.lanes|d.childLanes,d=d.sibling;d=p&~g}else d=0,a.child=null;return X4(r,a,g,s,d)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&To(a,g!==null?g.cachePool:null),g!==null?Q1(a,g):Uf(),Z1(a);else return d=a.lanes=536870912,X4(r,a,g!==null?g.baseLanes|s:s,s,d)}else g!==null?(To(a,g.cachePool),Q1(a,g),Sl(),a.memoizedState=null):(r!==null&&To(a,null),Uf(),Sl());return qn(r,a,p,s),a.child}function Xu(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function X4(r,a,s,d,p){var g=ea();return g=g===null?null:{parent:sn._currentValue,pool:g},a.memoizedState={baseLanes:s,cachePool:g},r!==null&&To(a,null),Uf(),Z1(a),r!==null&&gl(r,a,d,!0),a.childLanes=p,null}function H0(r,a){return a=$0({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function K4(r,a,s){return L(a,r.child,null,s),r=H0(a,a.pendingProps),r.flags|=2,Er(a),a.memoizedState=null,r}function ex(r,a,s){var d=a.pendingProps,p=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(mt){if(d.mode==="hidden")return r=H0(a,d),a.lanes=536870912,Xu(null,r);if(Ff(a),(r=Ut)?(r=o2(r,fr),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Ga!==null?{id:Xr,overflow:Ln}:null,retryLane:536870912,hydrationErrors:null},s=b0(r),s.return=a,a.child=s,gn=a,Ut=null)):r=null,r===null)throw Va(a);return a.lanes=536870912,null}return H0(a,d)}var g=r.memoizedState;if(g!==null){var C=g.dehydrated;if(Ff(a),p)if(a.flags&256)a.flags&=-257,a=K4(r,a,s);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(xn||gl(r,a,s,!1),p=(s&r.childLanes)!==0,xn||p){if(d=Ht,d!==null&&(C=fu(d,s),C!==0&&C!==g.retryLane))throw g.retryLane=C,bi(r,C),vr(d,r,C),uh;Z0(),a=K4(r,a,s)}else r=g.treeContext,Ut=ra(C.nextSibling),gn=a,mt=!0,Pa=null,fr=!1,r!==null&&S0(a,r),a=H0(a,d),a.flags|=4096;return a}return r=hn(r.child,{mode:d.mode,children:d.children}),r.ref=a.ref,a.child=r,r.return=a,r}function F0(r,a){var s=a.ref;if(s===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(r===null||r.ref!==s)&&(a.flags|=4194816)}}function ch(r,a,s,d,p){return ja(a),s=Gf(r,a,s,d,void 0,p),d=Pf(),r!==null&&!xn?(Vf(r,a,p),Ai(r,a,p)):(mt&&d&&Co(a),a.flags|=1,qn(r,a,s,p),a.child)}function Q4(r,a,s,d,p,g){return ja(a),a.updateQueue=null,s=e4(a,d,s,p),J1(r),d=Pf(),r!==null&&!xn?(Vf(r,a,g),Ai(r,a,g)):(mt&&d&&Co(a),a.flags|=1,qn(r,a,s,g),a.child)}function Z4(r,a,s,d,p){if(ja(a),a.stateNode===null){var g=dl,C=s.contextType;typeof C=="object"&&C!==null&&(g=yn(C)),g=new s(d,g),a.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=sh,a.stateNode=g,g._reactInternals=a,g=a.stateNode,g.props=d,g.state=a.memoizedState,g.refs={},Se(a),C=s.contextType,g.context=typeof C=="object"&&C!==null?yn(C):dl,g.state=a.memoizedState,C=s.getDerivedStateFromProps,typeof C=="function"&&(lh(a,s,C,d),g.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(C=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),C!==g.state&&sh.enqueueReplaceState(g,g.state,null),Gu(a,d,g,p),wl(),g.state=a.memoizedState),typeof g.componentDidMount=="function"&&(a.flags|=4194308),d=!0}else if(r===null){g=a.stateNode;var M=a.memoizedProps,P=Ns(s,M);g.props=P;var ae=g.context,me=s.contextType;C=dl,typeof me=="object"&&me!==null&&(C=yn(me));var ye=s.getDerivedStateFromProps;me=typeof ye=="function"||typeof g.getSnapshotBeforeUpdate=="function",M=a.pendingProps!==M,me||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(M||ae!==C)&&L4(a,g,d,C),ie=!1;var se=a.memoizedState;g.state=se,Gu(a,d,g,p),wl(),ae=a.memoizedState,M||se!==ae||ie?(typeof ye=="function"&&(lh(a,s,ye,d),ae=a.memoizedState),(P=ie||I4(a,s,P,d,se,ae,C))?(me||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(a.flags|=4194308)):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=d,a.memoizedState=ae),g.props=d,g.state=ae,g.context=C,d=P):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{g=a.stateNode,Ge(r,a),C=a.memoizedProps,me=Ns(s,C),g.props=me,ye=a.pendingProps,se=g.context,ae=s.contextType,P=dl,typeof ae=="object"&&ae!==null&&(P=yn(ae)),M=s.getDerivedStateFromProps,(ae=typeof M=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==ye||se!==P)&&L4(a,g,d,P),ie=!1,se=a.memoizedState,g.state=se,Gu(a,d,g,p),wl();var ue=a.memoizedState;C!==ye||se!==ue||ie||r!==null&&r.dependencies!==null&&Ca(r.dependencies)?(typeof M=="function"&&(lh(a,s,M,d),ue=a.memoizedState),(me=ie||I4(a,s,me,d,se,ue,P)||r!==null&&r.dependencies!==null&&Ca(r.dependencies))?(ae||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(d,ue,P),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(d,ue,P)),typeof g.componentDidUpdate=="function"&&(a.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof g.componentDidUpdate!="function"||C===r.memoizedProps&&se===r.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===r.memoizedProps&&se===r.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=ue),g.props=d,g.state=ue,g.context=P,d=me):(typeof g.componentDidUpdate!="function"||C===r.memoizedProps&&se===r.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===r.memoizedProps&&se===r.memoizedState||(a.flags|=1024),d=!1)}return g=d,F0(r,a),d=(a.flags&128)!==0,g||d?(g=a.stateNode,s=d&&typeof s.getDerivedStateFromError!="function"?null:g.render(),a.flags|=1,r!==null&&d?(a.child=L(a,r.child,null,p),a.child=L(a,null,s,p)):qn(r,a,s,p),a.memoizedState=g.state,r=a.child):r=Ai(r,a,p),r}function J4(r,a,s,d){return wi(),a.flags|=256,qn(r,a,s,d),a.child}var dh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fh(r){return{baseLanes:r,cachePool:hr()}}function hh(r,a,s){return r=r!==null?r.childLanes&~s:0,a&&(r|=Mr),r}function eg(r,a,s){var d=a.pendingProps,p=!1,g=(a.flags&128)!==0,C;if((C=g)||(C=r!==null&&r.memoizedState===null?!1:(mn.current&2)!==0),C&&(p=!0,a.flags&=-129),C=(a.flags&32)!==0,a.flags&=-33,r===null){if(mt){if(p?kl(a):Sl(),(r=Ut)?(r=o2(r,fr),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Ga!==null?{id:Xr,overflow:Ln}:null,retryLane:536870912,hydrationErrors:null},s=b0(r),s.return=a,a.child=s,gn=a,Ut=null)):r=null,r===null)throw Va(a);return Xh(r)?a.lanes=32:a.lanes=536870912,null}var M=d.children;return d=d.fallback,p?(Sl(),p=a.mode,M=$0({mode:"hidden",children:M},p),d=Tr(d,p,s,null),M.return=a,d.return=a,M.sibling=d,a.child=M,d=a.child,d.memoizedState=fh(s),d.childLanes=hh(r,C,s),a.memoizedState=dh,Xu(null,d)):(kl(a),mh(a,M))}var P=r.memoizedState;if(P!==null&&(M=P.dehydrated,M!==null)){if(g)a.flags&256?(kl(a),a.flags&=-257,a=ph(r,a,s)):a.memoizedState!==null?(Sl(),a.child=r.child,a.flags|=128,a=null):(Sl(),M=d.fallback,p=a.mode,d=$0({mode:"visible",children:d.children},p),M=Tr(M,p,s,null),M.flags|=2,d.return=a,M.return=a,d.sibling=M,a.child=d,L(a,r.child,null,s),d=a.child,d.memoizedState=fh(s),d.childLanes=hh(r,C,s),a.memoizedState=dh,a=Xu(null,d));else if(kl(a),Xh(M)){if(C=M.nextSibling&&M.nextSibling.dataset,C)var ae=C.dgst;C=ae,d=Error(i(419)),d.stack="",d.digest=C,bs({value:d,source:null,stack:null}),a=ph(r,a,s)}else if(xn||gl(r,a,s,!1),C=(s&r.childLanes)!==0,xn||C){if(C=Ht,C!==null&&(d=fu(C,s),d!==0&&d!==P.retryLane))throw P.retryLane=d,bi(r,d),vr(C,r,d),uh;Wh(M)||Z0(),a=ph(r,a,s)}else Wh(M)?(a.flags|=192,a.child=r.child,a=null):(r=P.treeContext,Ut=ra(M.nextSibling),gn=a,mt=!0,Pa=null,fr=!1,r!==null&&S0(a,r),a=mh(a,d.children),a.flags|=4096);return a}return p?(Sl(),M=d.fallback,p=a.mode,P=r.child,ae=P.sibling,d=hn(P,{mode:"hidden",children:d.children}),d.subtreeFlags=P.subtreeFlags&65011712,ae!==null?M=hn(ae,M):(M=Tr(M,p,s,null),M.flags|=2),M.return=a,d.return=a,d.sibling=M,a.child=d,Xu(null,d),d=a.child,M=r.child.memoizedState,M===null?M=fh(s):(p=M.cachePool,p!==null?(P=sn._currentValue,p=p.parent!==P?{parent:P,pool:P}:p):p=hr(),M={baseLanes:M.baseLanes|s,cachePool:p}),d.memoizedState=M,d.childLanes=hh(r,C,s),a.memoizedState=dh,Xu(r.child,d)):(kl(a),s=r.child,r=s.sibling,s=hn(s,{mode:"visible",children:d.children}),s.return=a,s.sibling=null,r!==null&&(C=a.deletions,C===null?(a.deletions=[r],a.flags|=16):C.push(r)),a.child=s,a.memoizedState=null,s)}function mh(r,a){return a=$0({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function $0(r,a){return r=Yn(22,r,null,a),r.lanes=0,r}function ph(r,a,s){return L(a,r.child,null,s),r=mh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function tg(r,a,s){r.lanes|=a;var d=r.alternate;d!==null&&(d.lanes|=a),Uu(r.return,a,s)}function gh(r,a,s,d,p,g){var C=r.memoizedState;C===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:s,tailMode:p,treeForkCount:g}:(C.isBackwards=a,C.rendering=null,C.renderingStartTime=0,C.last=d,C.tail=s,C.tailMode=p,C.treeForkCount=g)}function ng(r,a,s){var d=a.pendingProps,p=d.revealOrder,g=d.tail;d=d.children;var C=mn.current,M=(C&2)!==0;if(M?(C=C&1|2,a.flags|=128):C&=1,z(mn,C),qn(r,a,d,s),d=mt?hl:0,!M&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&tg(r,s,a);else if(r.tag===19)tg(r,s,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(p){case"forwards":for(s=a.child,p=null;s!==null;)r=s.alternate,r!==null&&z0(r)===null&&(p=s),s=s.sibling;s=p,s===null?(p=a.child,a.child=null):(p=s.sibling,s.sibling=null),gh(a,!1,p,s,g,d);break;case"backwards":case"unstable_legacy-backwards":for(s=null,p=a.child,a.child=null;p!==null;){if(r=p.alternate,r!==null&&z0(r)===null){a.child=p;break}r=p.sibling,p.sibling=s,s=p,p=r}gh(a,!0,s,null,g,d);break;case"together":gh(a,!1,null,null,void 0,d);break;default:a.memoizedState=null}return a.child}function Ai(r,a,s){if(r!==null&&(a.dependencies=r.dependencies),Tl|=a.lanes,(s&a.childLanes)===0)if(r!==null){if(gl(r,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,s=hn(r,r.pendingProps),a.child=s,s.return=a;r.sibling!==null;)r=r.sibling,s=s.sibling=hn(r,r.pendingProps),s.return=a;s.sibling=null}return a.child}function yh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Ca(r)))}function tx(r,a,s){switch(a.tag){case 3:oe(a,a.stateNode.containerInfo),Qr(a,sn,r.memoizedState.cache),wi();break;case 27:case 5:st(a);break;case 4:oe(a,a.stateNode.containerInfo);break;case 10:Qr(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Ff(a),null;break;case 13:var d=a.memoizedState;if(d!==null)return d.dehydrated!==null?(kl(a),a.flags|=128,null):(s&a.child.childLanes)!==0?eg(r,a,s):(kl(a),r=Ai(r,a,s),r!==null?r.sibling:null);kl(a);break;case 19:var p=(r.flags&128)!==0;if(d=(s&a.childLanes)!==0,d||(gl(r,a,s,!1),d=(s&a.childLanes)!==0),p){if(d)return ng(r,a,s);a.flags|=128}if(p=a.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),z(mn,mn.current),d)break;return null;case 22:return a.lanes=0,W4(r,a,s,a.pendingProps);case 24:Qr(a,sn,r.memoizedState.cache)}return Ai(r,a,s)}function rg(r,a,s){if(r!==null)if(r.memoizedProps!==a.pendingProps)xn=!0;else{if(!yh(r,s)&&(a.flags&128)===0)return xn=!1,tx(r,a,s);xn=(r.flags&131072)!==0}else xn=!1,mt&&(a.flags&1048576)!==0&&k0(a,hl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var d=a.pendingProps;if(r=ki(a.elementType),a.type=r,typeof r=="function")ko(r)?(d=Ns(r,d),a.tag=1,a=Z4(null,a,r,d,s)):(a.tag=0,a=ch(null,a,r,d,s));else{if(r!=null){var p=r.$$typeof;if(p===Y){a.tag=11,a=P4(null,a,r,d,s);break e}else if(p===K){a.tag=14,a=V4(null,a,r,d,s);break e}}throw a=Ce(r)||r,Error(i(306,a,""))}}return a;case 0:return ch(r,a,a.type,a.pendingProps,s);case 1:return d=a.type,p=Ns(d,a.pendingProps),Z4(r,a,d,p,s);case 3:e:{if(oe(a,a.stateNode.containerInfo),r===null)throw Error(i(387));d=a.pendingProps;var g=a.memoizedState;p=g.element,Ge(r,a),Gu(a,d,null,s);var C=a.memoizedState;if(d=C.cache,Qr(a,sn,d),d!==g.cache&&pl(a,[sn],s,!0),wl(),d=C.element,g.isDehydrated)if(g={element:d,isDehydrated:!1,cache:C.cache},a.updateQueue.baseState=g,a.memoizedState=g,a.flags&256){a=J4(r,a,d,s);break e}else if(d!==p){p=ur(Error(i(424)),a),bs(p),a=J4(r,a,d,s);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(Ut=ra(r.firstChild),gn=a,mt=!0,Pa=null,fr=!0,s=V(a,null,d,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(wi(),d===p){a=Ai(r,a,s);break e}qn(r,a,d,s)}a=a.child}return a;case 26:return F0(r,a),r===null?(s=m2(a.type,null,a.pendingProps,null))?a.memoizedState=s:mt||(s=a.type,r=a.pendingProps,d=id(ne.current).createElement(s),d[An]=a,d[Rn]=r,Un(d,s,r),ln(d),a.stateNode=d):a.memoizedState=m2(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return st(a),r===null&&mt&&(d=a.stateNode=d2(a.type,a.pendingProps,ne.current),gn=a,fr=!0,p=Ut,zl(a.type)?(Kh=p,Ut=ra(d.firstChild)):Ut=p),qn(r,a,a.pendingProps.children,s),F0(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&mt&&((p=d=Ut)&&(d=zx(d,a.type,a.pendingProps,fr),d!==null?(a.stateNode=d,gn=a,Ut=ra(d.firstChild),fr=!1,p=!0):p=!1),p||Va(a)),st(a),p=a.type,g=a.pendingProps,C=r!==null?r.memoizedProps:null,d=g.children,Ph(p,g)?d=null:C!==null&&Ph(p,C)&&(a.flags|=32),a.memoizedState!==null&&(p=Gf(r,a,V7,null,null,s),cc._currentValue=p),F0(r,a),qn(r,a,d,s),a.child;case 6:return r===null&&mt&&((r=s=Ut)&&(s=Dx(s,a.pendingProps,fr),s!==null?(a.stateNode=s,gn=a,Ut=null,r=!0):r=!1),r||Va(a)),null;case 13:return eg(r,a,s);case 4:return oe(a,a.stateNode.containerInfo),d=a.pendingProps,r===null?a.child=L(a,null,d,s):qn(r,a,d,s),a.child;case 11:return P4(r,a,a.type,a.pendingProps,s);case 7:return qn(r,a,a.pendingProps,s),a.child;case 8:return qn(r,a,a.pendingProps.children,s),a.child;case 12:return qn(r,a,a.pendingProps.children,s),a.child;case 10:return d=a.pendingProps,Qr(a,a.type,d.value),qn(r,a,d.children,s),a.child;case 9:return p=a.type._context,d=a.pendingProps.children,ja(a),p=yn(p),d=d(p),a.flags|=1,qn(r,a,d,s),a.child;case 14:return V4(r,a,a.type,a.pendingProps,s);case 15:return Y4(r,a,a.type,a.pendingProps,s);case 19:return ng(r,a,s);case 31:return ex(r,a,s);case 22:return W4(r,a,s,a.pendingProps);case 24:return ja(a),d=yn(sn),r===null?(p=ea(),p===null&&(p=Ht,g=yl(),p.pooledCache=g,g.refCount++,g!==null&&(p.pooledCacheLanes|=s),p=g),a.memoizedState={parent:d,cache:p},Se(a),Qr(a,sn,p)):((r.lanes&s)!==0&&(Ge(r,a),Gu(a,null,null,s),wl()),p=r.memoizedState,g=a.memoizedState,p.parent!==d?(p={parent:d,cache:d},a.memoizedState=p,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=p),Qr(a,sn,d)):(d=g.cache,Qr(a,sn,d),d!==p.cache&&pl(a,[sn],s,!0))),qn(r,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Ei(r){r.flags|=4}function vh(r,a,s,d,p){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(p&335544128)===p)if(r.stateNode.complete)r.flags|=8192;else if(Mg())r.flags|=8192;else throw Si=js,ta}else r.flags&=-16777217}function ag(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!x2(a))if(Mg())r.flags|=8192;else throw Si=js,ta}function G0(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?nr():536870912,r.lanes|=a,Bo|=a)}function Ku(r,a){if(!mt)switch(r.tailMode){case"hidden":a=r.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?r.tail=null:s.sibling=null;break;case"collapsed":s=r.tail;for(var d=null;s!==null;)s.alternate!==null&&(d=s),s=s.sibling;d===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function Yt(r){var a=r.alternate!==null&&r.alternate.child===r.child,s=0,d=0;if(a)for(var p=r.child;p!==null;)s|=p.lanes|p.childLanes,d|=p.subtreeFlags&65011712,d|=p.flags&65011712,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)s|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=d,r.childLanes=s,a}function nx(r,a,s){var d=a.pendingProps;switch(jo(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(a),null;case 1:return Yt(a),null;case 3:return s=a.stateNode,d=null,r!==null&&(d=r.memoizedState.cache),a.memoizedState.cache!==d&&(a.flags|=2048),Sa(sn),Oe(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(r===null||r.child===null)&&(ml(a)?Ei(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Lu())),Yt(a),null;case 26:var p=a.type,g=a.memoizedState;return r===null?(Ei(a),g!==null?(Yt(a),ag(a,g)):(Yt(a),vh(a,p,null,d,s))):g?g!==r.memoizedState?(Ei(a),Yt(a),ag(a,g)):(Yt(a),a.flags&=-16777217):(r=r.memoizedProps,r!==d&&Ei(a),Yt(a),vh(a,p,r,d,s)),null;case 27:if(Ct(a),s=ne.current,p=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==d&&Ei(a);else{if(!d){if(a.stateNode===null)throw Error(i(166));return Yt(a),null}r=de.current,ml(a)?C0(a):(r=d2(p,d,s),a.stateNode=r,Ei(a))}return Yt(a),null;case 5:if(Ct(a),p=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==d&&Ei(a);else{if(!d){if(a.stateNode===null)throw Error(i(166));return Yt(a),null}if(g=de.current,ml(a))C0(a);else{var C=id(ne.current);switch(g){case 1:g=C.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:g=C.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":g=C.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":g=C.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":g=C.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof d.is=="string"?C.createElement("select",{is:d.is}):C.createElement("select"),d.multiple?g.multiple=!0:d.size&&(g.size=d.size);break;default:g=typeof d.is=="string"?C.createElement(p,{is:d.is}):C.createElement(p)}}g[An]=a,g[Rn]=d;e:for(C=a.child;C!==null;){if(C.tag===5||C.tag===6)g.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===a)break e;for(;C.sibling===null;){if(C.return===null||C.return===a)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}a.stateNode=g;e:switch(Un(g,p,d),p){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Ei(a)}}return Yt(a),vh(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,s),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==d&&Ei(a);else{if(typeof d!="string"&&a.stateNode===null)throw Error(i(166));if(r=ne.current,ml(a)){if(r=a.stateNode,s=a.memoizedProps,d=null,p=gn,p!==null)switch(p.tag){case 27:case 5:d=p.memoizedProps}r[An]=a,r=!!(r.nodeValue===s||d!==null&&d.suppressHydrationWarning===!0||e2(r.nodeValue,s)),r||Va(a,!0)}else r=id(r).createTextNode(d),r[An]=a,a.stateNode=r}return Yt(a),null;case 31:if(s=a.memoizedState,r===null||r.memoizedState!==null){if(d=ml(a),s!==null){if(r===null){if(!d)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[An]=a}else wi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Yt(a),r=!1}else s=Lu(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=s),r=!0;if(!r)return a.flags&256?(Er(a),a):(Er(a),null);if((a.flags&128)!==0)throw Error(i(558))}return Yt(a),null;case 13:if(d=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(p=ml(a),d!==null&&d.dehydrated!==null){if(r===null){if(!p)throw Error(i(318));if(p=a.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[An]=a}else wi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Yt(a),p=!1}else p=Lu(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(Er(a),a):(Er(a),null)}return Er(a),(a.flags&128)!==0?(a.lanes=s,a):(s=d!==null,r=r!==null&&r.memoizedState!==null,s&&(d=a.child,p=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(p=d.alternate.memoizedState.cachePool.pool),g=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(g=d.memoizedState.cachePool.pool),g!==p&&(d.flags|=2048)),s!==r&&s&&(a.child.flags|=8192),G0(a,a.updateQueue),Yt(a),null);case 4:return Oe(),r===null&&Uh(a.stateNode.containerInfo),Yt(a),null;case 10:return Sa(a.type),Yt(a),null;case 19:if(Q(mn),d=a.memoizedState,d===null)return Yt(a),null;if(p=(a.flags&128)!==0,g=d.rendering,g===null)if(p)Ku(d,!1);else{if(un!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(g=z0(r),g!==null){for(a.flags|=128,Ku(d,!1),r=g.updateQueue,a.updateQueue=r,G0(a,r),a.subtreeFlags=0,r=s,s=a.child;s!==null;)_u(s,r),s=s.sibling;return z(mn,mn.current&1|2),mt&&dr(a,d.treeForkCount),a.child}r=r.sibling}d.tail!==null&&Vt()>X0&&(a.flags|=128,p=!0,Ku(d,!1),a.lanes=4194304)}else{if(!p)if(r=z0(g),r!==null){if(a.flags|=128,p=!0,r=r.updateQueue,a.updateQueue=r,G0(a,r),Ku(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!mt)return Yt(a),null}else 2*Vt()-d.renderingStartTime>X0&&s!==536870912&&(a.flags|=128,p=!0,Ku(d,!1),a.lanes=4194304);d.isBackwards?(g.sibling=a.child,a.child=g):(r=d.last,r!==null?r.sibling=g:a.child=g,d.last=g)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=Vt(),r.sibling=null,s=mn.current,z(mn,p?s&1|2:s&1),mt&&dr(a,d.treeForkCount),r):(Yt(a),null);case 22:case 23:return Er(a),Hf(),d=a.memoizedState!==null,r!==null?r.memoizedState!==null!==d&&(a.flags|=8192):d&&(a.flags|=8192),d?(s&536870912)!==0&&(a.flags&128)===0&&(Yt(a),a.subtreeFlags&6&&(a.flags|=8192)):Yt(a),s=a.updateQueue,s!==null&&G0(a,s.retryQueue),s=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),d=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),d!==s&&(a.flags|=2048),r!==null&&Q(kt),null;case 24:return s=null,r!==null&&(s=r.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),Sa(sn),Yt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function rx(r,a){switch(jo(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Sa(sn),Oe(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Ct(a),null;case 31:if(a.memoizedState!==null){if(Er(a),a.alternate===null)throw Error(i(340));wi()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(Er(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));wi()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return Q(mn),null;case 4:return Oe(),null;case 10:return Sa(a.type),null;case 22:case 23:return Er(a),Hf(),r!==null&&Q(kt),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return Sa(sn),null;case 25:return null;default:return null}}function ig(r,a){switch(jo(a),a.tag){case 3:Sa(sn),Oe();break;case 26:case 27:case 5:Ct(a);break;case 4:Oe();break;case 31:a.memoizedState!==null&&Er(a);break;case 13:Er(a);break;case 19:Q(mn);break;case 10:Sa(a.type);break;case 22:case 23:Er(a),Hf(),r!==null&&Q(kt);break;case 24:Sa(sn)}}function Qu(r,a){try{var s=a.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var p=d.next;s=p;do{if((s.tag&r)===r){d=void 0;var g=s.create,C=s.inst;d=g(),C.destroy=d}s=s.next}while(s!==p)}}catch(M){_t(a,a.return,M)}}function Cl(r,a,s){try{var d=a.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var g=p.next;d=g;do{if((d.tag&r)===r){var C=d.inst,M=C.destroy;if(M!==void 0){C.destroy=void 0,p=a;var P=s,ae=M;try{ae()}catch(me){_t(p,P,me)}}}d=d.next}while(d!==g)}}catch(me){_t(a,a.return,me)}}function lg(r){var a=r.updateQueue;if(a!==null){var s=r.stateNode;try{K1(a,s)}catch(d){_t(r,r.return,d)}}}function sg(r,a,s){s.props=Ns(r.type,r.memoizedProps),s.state=r.memoizedState;try{s.componentWillUnmount()}catch(d){_t(r,a,d)}}function Zu(r,a){try{var s=r.ref;if(s!==null){switch(r.tag){case 26:case 27:case 5:var d=r.stateNode;break;case 30:d=r.stateNode;break;default:d=r.stateNode}typeof s=="function"?r.refCleanup=s(d):s.current=d}}catch(p){_t(r,a,p)}}function Ya(r,a){var s=r.ref,d=r.refCleanup;if(s!==null)if(typeof d=="function")try{d()}catch(p){_t(r,a,p)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(p){_t(r,a,p)}else s.current=null}function og(r){var a=r.type,s=r.memoizedProps,d=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&d.focus();break e;case"img":s.src?d.src=s.src:s.srcSet&&(d.srcset=s.srcSet)}}catch(p){_t(r,r.return,p)}}function xh(r,a,s){try{var d=r.stateNode;jx(d,r.type,s,a),d[Rn]=a}catch(p){_t(r,r.return,p)}}function ug(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&zl(r.type)||r.tag===4}function bh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||ug(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&zl(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function wh(r,a,s){var d=r.tag;if(d===5||d===6)r=r.stateNode,a?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(r,a):(a=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,a.appendChild(r),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=ar));else if(d!==4&&(d===27&&zl(r.type)&&(s=r.stateNode,a=null),r=r.child,r!==null))for(wh(r,a,s),r=r.sibling;r!==null;)wh(r,a,s),r=r.sibling}function P0(r,a,s){var d=r.tag;if(d===5||d===6)r=r.stateNode,a?s.insertBefore(r,a):s.appendChild(r);else if(d!==4&&(d===27&&zl(r.type)&&(s=r.stateNode),r=r.child,r!==null))for(P0(r,a,s),r=r.sibling;r!==null;)P0(r,a,s),r=r.sibling}function cg(r){var a=r.stateNode,s=r.memoizedProps;try{for(var d=r.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);Un(a,d,s),a[An]=r,a[Rn]=s}catch(g){_t(r,r.return,g)}}var Ni=!1,bn=!1,kh=!1,dg=typeof WeakSet=="function"?WeakSet:Set,_n=null;function ax(r,a){if(r=r.containerInfo,$h=fd,r=f0(r),go(r)){if("selectionStart"in r)var s={start:r.selectionStart,end:r.selectionEnd};else e:{s=(s=r.ownerDocument)&&s.defaultView||window;var d=s.getSelection&&s.getSelection();if(d&&d.rangeCount!==0){s=d.anchorNode;var p=d.anchorOffset,g=d.focusNode;d=d.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var C=0,M=-1,P=-1,ae=0,me=0,ye=r,se=null;t:for(;;){for(var ue;ye!==s||p!==0&&ye.nodeType!==3||(M=C+p),ye!==g||d!==0&&ye.nodeType!==3||(P=C+d),ye.nodeType===3&&(C+=ye.nodeValue.length),(ue=ye.firstChild)!==null;)se=ye,ye=ue;for(;;){if(ye===r)break t;if(se===s&&++ae===p&&(M=C),se===g&&++me===d&&(P=C),(ue=ye.nextSibling)!==null)break;ye=se,se=ye.parentNode}ye=ue}s=M===-1||P===-1?null:{start:M,end:P}}else s=null}s=s||{start:0,end:0}}else s=null;for(Gh={focusedElem:r,selectionRange:s},fd=!1,_n=a;_n!==null;)if(a=_n,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,_n=r;else for(;_n!==null;){switch(a=_n,g=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(s=0;s<r.length;s++)p=r[s],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&g!==null){r=void 0,s=a,p=g.memoizedProps,g=g.memoizedState,d=s.stateNode;try{var Fe=Ns(s.type,p);r=d.getSnapshotBeforeUpdate(Fe,g),d.__reactInternalSnapshotBeforeUpdate=r}catch(Ze){_t(s,s.return,Ze)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,s=r.nodeType,s===9)Yh(r);else if(s===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Yh(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,_n=r;break}_n=a.return}}function fg(r,a,s){var d=s.flags;switch(s.tag){case 0:case 11:case 15:zi(r,s),d&4&&Qu(5,s);break;case 1:if(zi(r,s),d&4)if(r=s.stateNode,a===null)try{r.componentDidMount()}catch(C){_t(s,s.return,C)}else{var p=Ns(s.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(p,a,r.__reactInternalSnapshotBeforeUpdate)}catch(C){_t(s,s.return,C)}}d&64&&lg(s),d&512&&Zu(s,s.return);break;case 3:if(zi(r,s),d&64&&(r=s.updateQueue,r!==null)){if(a=null,s.child!==null)switch(s.child.tag){case 27:case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}try{K1(r,a)}catch(C){_t(s,s.return,C)}}break;case 27:a===null&&d&4&&cg(s);case 26:case 5:zi(r,s),a===null&&d&4&&og(s),d&512&&Zu(s,s.return);break;case 12:zi(r,s);break;case 31:zi(r,s),d&4&&pg(r,s);break;case 13:zi(r,s),d&4&&gg(r,s),d&64&&(r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(s=hx.bind(null,s),Rx(r,s))));break;case 22:if(d=s.memoizedState!==null||Ni,!d){a=a!==null&&a.memoizedState!==null||bn,p=Ni;var g=bn;Ni=d,(bn=a)&&!g?Di(r,s,(s.subtreeFlags&8772)!==0):zi(r,s),Ni=p,bn=g}break;case 30:break;default:zi(r,s)}}function hg(r){var a=r.alternate;a!==null&&(r.alternate=null,hg(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&ts(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Xt=null,mr=!1;function Mi(r,a,s){for(s=s.child;s!==null;)mg(r,a,s),s=s.sibling}function mg(r,a,s){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(zn,s)}catch{}switch(s.tag){case 26:bn||Ya(s,a),Mi(r,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:bn||Ya(s,a);var d=Xt,p=mr;zl(s.type)&&(Xt=s.stateNode,mr=!1),Mi(r,a,s),sc(s.stateNode),Xt=d,mr=p;break;case 5:bn||Ya(s,a);case 6:if(d=Xt,p=mr,Xt=null,Mi(r,a,s),Xt=d,mr=p,Xt!==null)if(mr)try{(Xt.nodeType===9?Xt.body:Xt.nodeName==="HTML"?Xt.ownerDocument.body:Xt).removeChild(s.stateNode)}catch(g){_t(s,a,g)}else try{Xt.removeChild(s.stateNode)}catch(g){_t(s,a,g)}break;case 18:Xt!==null&&(mr?(r=Xt,l2(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,s.stateNode),Go(r)):l2(Xt,s.stateNode));break;case 4:d=Xt,p=mr,Xt=s.stateNode.containerInfo,mr=!0,Mi(r,a,s),Xt=d,mr=p;break;case 0:case 11:case 14:case 15:Cl(2,s,a),bn||Cl(4,s,a),Mi(r,a,s);break;case 1:bn||(Ya(s,a),d=s.stateNode,typeof d.componentWillUnmount=="function"&&sg(s,a,d)),Mi(r,a,s);break;case 21:Mi(r,a,s);break;case 22:bn=(d=bn)||s.memoizedState!==null,Mi(r,a,s),bn=d;break;default:Mi(r,a,s)}}function pg(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Go(r)}catch(s){_t(a,a.return,s)}}}function gg(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Go(r)}catch(s){_t(a,a.return,s)}}function ix(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new dg),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new dg),a;default:throw Error(i(435,r.tag))}}function V0(r,a){var s=ix(r);a.forEach(function(d){if(!s.has(d)){s.add(d);var p=mx.bind(null,r,d);d.then(p,p)}})}function pr(r,a){var s=a.deletions;if(s!==null)for(var d=0;d<s.length;d++){var p=s[d],g=r,C=a,M=C;e:for(;M!==null;){switch(M.tag){case 27:if(zl(M.type)){Xt=M.stateNode,mr=!1;break e}break;case 5:Xt=M.stateNode,mr=!1;break e;case 3:case 4:Xt=M.stateNode.containerInfo,mr=!0;break e}M=M.return}if(Xt===null)throw Error(i(160));mg(g,C,p),Xt=null,mr=!1,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)yg(a,r),a=a.sibling}var Ta=null;function yg(r,a){var s=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:pr(a,r),gr(r),d&4&&(Cl(3,r,r.return),Qu(3,r),Cl(5,r,r.return));break;case 1:pr(a,r),gr(r),d&512&&(bn||s===null||Ya(s,s.return)),d&64&&Ni&&(r=r.updateQueue,r!==null&&(d=r.callbacks,d!==null&&(s=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=s===null?d:s.concat(d))));break;case 26:var p=Ta;if(pr(a,r),gr(r),d&512&&(bn||s===null||Ya(s,s.return)),d&4){var g=s!==null?s.memoizedState:null;if(d=r.memoizedState,s===null)if(d===null)if(r.stateNode===null){e:{d=r.type,s=r.memoizedProps,p=p.ownerDocument||p;t:switch(d){case"title":g=p.getElementsByTagName("title")[0],(!g||g[Fr]||g[An]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=p.createElement(d),p.head.insertBefore(g,p.querySelector("head > title"))),Un(g,d,s),g[An]=r,ln(g),d=g;break e;case"link":var C=y2("link","href",p).get(d+(s.href||""));if(C){for(var M=0;M<C.length;M++)if(g=C[M],g.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&g.getAttribute("rel")===(s.rel==null?null:s.rel)&&g.getAttribute("title")===(s.title==null?null:s.title)&&g.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){C.splice(M,1);break t}}g=p.createElement(d),Un(g,d,s),p.head.appendChild(g);break;case"meta":if(C=y2("meta","content",p).get(d+(s.content||""))){for(M=0;M<C.length;M++)if(g=C[M],g.getAttribute("content")===(s.content==null?null:""+s.content)&&g.getAttribute("name")===(s.name==null?null:s.name)&&g.getAttribute("property")===(s.property==null?null:s.property)&&g.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&g.getAttribute("charset")===(s.charSet==null?null:s.charSet)){C.splice(M,1);break t}}g=p.createElement(d),Un(g,d,s),p.head.appendChild(g);break;default:throw Error(i(468,d))}g[An]=r,ln(g),d=g}r.stateNode=d}else v2(p,r.type,r.stateNode);else r.stateNode=g2(p,d,r.memoizedProps);else g!==d?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,d===null?v2(p,r.type,r.stateNode):g2(p,d,r.memoizedProps)):d===null&&r.stateNode!==null&&xh(r,r.memoizedProps,s.memoizedProps)}break;case 27:pr(a,r),gr(r),d&512&&(bn||s===null||Ya(s,s.return)),s!==null&&d&4&&xh(r,r.memoizedProps,s.memoizedProps);break;case 5:if(pr(a,r),gr(r),d&512&&(bn||s===null||Ya(s,s.return)),r.flags&32){p=r.stateNode;try{di(p,"")}catch(Fe){_t(r,r.return,Fe)}}d&4&&r.stateNode!=null&&(p=r.memoizedProps,xh(r,p,s!==null?s.memoizedProps:p)),d&1024&&(kh=!0);break;case 6:if(pr(a,r),gr(r),d&4){if(r.stateNode===null)throw Error(i(162));d=r.memoizedProps,s=r.stateNode;try{s.nodeValue=d}catch(Fe){_t(r,r.return,Fe)}}break;case 3:if(od=null,p=Ta,Ta=ld(a.containerInfo),pr(a,r),Ta=p,gr(r),d&4&&s!==null&&s.memoizedState.isDehydrated)try{Go(a.containerInfo)}catch(Fe){_t(r,r.return,Fe)}kh&&(kh=!1,vg(r));break;case 4:d=Ta,Ta=ld(r.stateNode.containerInfo),pr(a,r),gr(r),Ta=d;break;case 12:pr(a,r),gr(r);break;case 31:pr(a,r),gr(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,V0(r,d)));break;case 13:pr(a,r),gr(r),r.child.flags&8192&&r.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(W0=Vt()),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,V0(r,d)));break;case 22:p=r.memoizedState!==null;var P=s!==null&&s.memoizedState!==null,ae=Ni,me=bn;if(Ni=ae||p,bn=me||P,pr(a,r),bn=me,Ni=ae,gr(r),d&8192)e:for(a=r.stateNode,a._visibility=p?a._visibility&-2:a._visibility|1,p&&(s===null||P||Ni||bn||Ms(r)),s=null,a=r;;){if(a.tag===5||a.tag===26){if(s===null){P=s=a;try{if(g=P.stateNode,p)C=g.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{M=P.stateNode;var ye=P.memoizedProps.style,se=ye!=null&&ye.hasOwnProperty("display")?ye.display:null;M.style.display=se==null||typeof se=="boolean"?"":(""+se).trim()}}catch(Fe){_t(P,P.return,Fe)}}}else if(a.tag===6){if(s===null){P=a;try{P.stateNode.nodeValue=p?"":P.memoizedProps}catch(Fe){_t(P,P.return,Fe)}}}else if(a.tag===18){if(s===null){P=a;try{var ue=P.stateNode;p?s2(ue,!0):s2(P.stateNode,!1)}catch(Fe){_t(P,P.return,Fe)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}d&4&&(d=r.updateQueue,d!==null&&(s=d.retryQueue,s!==null&&(d.retryQueue=null,V0(r,s))));break;case 19:pr(a,r),gr(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,V0(r,d)));break;case 30:break;case 21:break;default:pr(a,r),gr(r)}}function gr(r){var a=r.flags;if(a&2){try{for(var s,d=r.return;d!==null;){if(ug(d)){s=d;break}d=d.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var p=s.stateNode,g=bh(r);P0(r,g,p);break;case 5:var C=s.stateNode;s.flags&32&&(di(C,""),s.flags&=-33);var M=bh(r);P0(r,M,C);break;case 3:case 4:var P=s.stateNode.containerInfo,ae=bh(r);wh(r,ae,P);break;default:throw Error(i(161))}}catch(me){_t(r,r.return,me)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function vg(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;vg(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function zi(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)fg(r,a.alternate,a),a=a.sibling}function Ms(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:Cl(4,a,a.return),Ms(a);break;case 1:Ya(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&sg(a,a.return,s),Ms(a);break;case 27:sc(a.stateNode);case 26:case 5:Ya(a,a.return),Ms(a);break;case 22:a.memoizedState===null&&Ms(a);break;case 30:Ms(a);break;default:Ms(a)}r=r.sibling}}function Di(r,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var d=a.alternate,p=r,g=a,C=g.flags;switch(g.tag){case 0:case 11:case 15:Di(p,g,s),Qu(4,g);break;case 1:if(Di(p,g,s),d=g,p=d.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(ae){_t(d,d.return,ae)}if(d=g,p=d.updateQueue,p!==null){var M=d.stateNode;try{var P=p.shared.hiddenCallbacks;if(P!==null)for(p.shared.hiddenCallbacks=null,p=0;p<P.length;p++)X1(P[p],M)}catch(ae){_t(d,d.return,ae)}}s&&C&64&&lg(g),Zu(g,g.return);break;case 27:cg(g);case 26:case 5:Di(p,g,s),s&&d===null&&C&4&&og(g),Zu(g,g.return);break;case 12:Di(p,g,s);break;case 31:Di(p,g,s),s&&C&4&&pg(p,g);break;case 13:Di(p,g,s),s&&C&4&&gg(p,g);break;case 22:g.memoizedState===null&&Di(p,g,s),Zu(g,g.return);break;case 30:break;default:Di(p,g,s)}a=a.sibling}}function Sh(r,a){var s=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==s&&(r!=null&&r.refCount++,s!=null&&Ss(s))}function Ch(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Ss(r))}function Aa(r,a,s,d){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)xg(r,a,s,d),a=a.sibling}function xg(r,a,s,d){var p=a.flags;switch(a.tag){case 0:case 11:case 15:Aa(r,a,s,d),p&2048&&Qu(9,a);break;case 1:Aa(r,a,s,d);break;case 3:Aa(r,a,s,d),p&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Ss(r)));break;case 12:if(p&2048){Aa(r,a,s,d),r=a.stateNode;try{var g=a.memoizedProps,C=g.id,M=g.onPostCommit;typeof M=="function"&&M(C,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(P){_t(a,a.return,P)}}else Aa(r,a,s,d);break;case 31:Aa(r,a,s,d);break;case 13:Aa(r,a,s,d);break;case 23:break;case 22:g=a.stateNode,C=a.alternate,a.memoizedState!==null?g._visibility&2?Aa(r,a,s,d):Ju(r,a):g._visibility&2?Aa(r,a,s,d):(g._visibility|=2,Ro(r,a,s,d,(a.subtreeFlags&10256)!==0||!1)),p&2048&&Sh(C,a);break;case 24:Aa(r,a,s,d),p&2048&&Ch(a.alternate,a);break;default:Aa(r,a,s,d)}}function Ro(r,a,s,d,p){for(p=p&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var g=r,C=a,M=s,P=d,ae=C.flags;switch(C.tag){case 0:case 11:case 15:Ro(g,C,M,P,p),Qu(8,C);break;case 23:break;case 22:var me=C.stateNode;C.memoizedState!==null?me._visibility&2?Ro(g,C,M,P,p):Ju(g,C):(me._visibility|=2,Ro(g,C,M,P,p)),p&&ae&2048&&Sh(C.alternate,C);break;case 24:Ro(g,C,M,P,p),p&&ae&2048&&Ch(C.alternate,C);break;default:Ro(g,C,M,P,p)}a=a.sibling}}function Ju(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=r,d=a,p=d.flags;switch(d.tag){case 22:Ju(s,d),p&2048&&Sh(d.alternate,d);break;case 24:Ju(s,d),p&2048&&Ch(d.alternate,d);break;default:Ju(s,d)}a=a.sibling}}var ec=8192;function Oo(r,a,s){if(r.subtreeFlags&ec)for(r=r.child;r!==null;)bg(r,a,s),r=r.sibling}function bg(r,a,s){switch(r.tag){case 26:Oo(r,a,s),r.flags&ec&&r.memoizedState!==null&&Px(s,Ta,r.memoizedState,r.memoizedProps);break;case 5:Oo(r,a,s);break;case 3:case 4:var d=Ta;Ta=ld(r.stateNode.containerInfo),Oo(r,a,s),Ta=d;break;case 22:r.memoizedState===null&&(d=r.alternate,d!==null&&d.memoizedState!==null?(d=ec,ec=16777216,Oo(r,a,s),ec=d):Oo(r,a,s));break;default:Oo(r,a,s)}}function wg(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function tc(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var d=a[s];_n=d,Sg(d,r)}wg(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)kg(r),r=r.sibling}function kg(r){switch(r.tag){case 0:case 11:case 15:tc(r),r.flags&2048&&Cl(9,r,r.return);break;case 3:tc(r);break;case 12:tc(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Y0(r)):tc(r);break;default:tc(r)}}function Y0(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var d=a[s];_n=d,Sg(d,r)}wg(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:Cl(8,a,a.return),Y0(a);break;case 22:s=a.stateNode,s._visibility&2&&(s._visibility&=-3,Y0(a));break;default:Y0(a)}r=r.sibling}}function Sg(r,a){for(;_n!==null;){var s=_n;switch(s.tag){case 0:case 11:case 15:Cl(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var d=s.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Ss(s.memoizedState.cache)}if(d=s.child,d!==null)d.return=s,_n=d;else e:for(s=r;_n!==null;){d=_n;var p=d.sibling,g=d.return;if(hg(d),d===s){_n=null;break e}if(p!==null){p.return=g,_n=p;break e}_n=g}}}var lx={getCacheForType:function(r){var a=yn(sn),s=a.data.get(r);return s===void 0&&(s=r(),a.data.set(r,s)),s},cacheSignal:function(){return yn(sn).controller.signal}},sx=typeof WeakMap=="function"?WeakMap:Map,Nt=0,Ht=null,pt=null,xt=0,Ot=0,Nr=null,jl=!1,_o=!1,jh=!1,Ri=0,un=0,Tl=0,zs=0,Th=0,Mr=0,Bo=0,nc=null,yr=null,Ah=!1,W0=0,Cg=0,X0=1/0,K0=null,Al=null,En=0,El=null,Io=null,Oi=0,Eh=0,Nh=null,jg=null,rc=0,Mh=null;function zr(){return(Nt&2)!==0&&xt!==0?xt&-xt:ee.T!==null?Bh():mu()}function Tg(){if(Mr===0)if((xt&536870912)===0||mt){var r=Ks;Ks<<=1,(Ks&3932160)===0&&(Ks=262144),Mr=r}else Mr=536870912;return r=Ar.current,r!==null&&(r.flags|=32),Mr}function vr(r,a,s){(r===Ht&&(Ot===2||Ot===9)||r.cancelPendingCommit!==null)&&(Lo(r,0),Nl(r,xt,Mr,!1)),Bt(r,s),((Nt&2)===0||r!==Ht)&&(r===Ht&&((Nt&2)===0&&(zs|=s),un===4&&Nl(r,xt,Mr,!1)),Wa(r))}function Ag(r,a,s){if((Nt&6)!==0)throw Error(i(327));var d=!s&&(a&127)===0&&(a&r.expiredLanes)===0||Pi(r,a),p=d?cx(r,a):Dh(r,a,!0),g=d;do{if(p===0){_o&&!d&&Nl(r,a,0,!1);break}else{if(s=r.current.alternate,g&&!ox(s)){p=Dh(r,a,!1),g=!1;continue}if(p===2){if(g=a,r.errorRecoveryDisabledLanes&g)var C=0;else C=r.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){a=C;e:{var M=r;p=nc;var P=M.current.memoizedState.isDehydrated;if(P&&(Lo(M,C).flags|=256),C=Dh(M,C,!1),C!==2){if(jh&&!P){M.errorRecoveryDisabledLanes|=g,zs|=g,p=4;break e}g=yr,yr=p,g!==null&&(yr===null?yr=g:yr.push.apply(yr,g))}p=C}if(g=!1,p!==2)continue}}if(p===1){Lo(r,0),Nl(r,a,0,!0);break}e:{switch(d=r,g=p,g){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Nl(d,a,Mr,!jl);break e;case 2:yr=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(p=W0+300-Vt(),10<p)){if(Nl(d,a,Mr,!jl),Jl(d,0,!0)!==0)break e;Oi=a,d.timeoutHandle=a2(Eg.bind(null,d,s,yr,K0,Ah,a,Mr,zs,Bo,jl,g,"Throttled",-0,0),p);break e}Eg(d,s,yr,K0,Ah,a,Mr,zs,Bo,jl,g,null,-0,0)}}break}while(!0);Wa(r)}function Eg(r,a,s,d,p,g,C,M,P,ae,me,ye,se,ue){if(r.timeoutHandle=-1,ye=a.subtreeFlags,ye&8192||(ye&16785408)===16785408){ye={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ar},bg(a,g,ye);var Fe=(g&62914560)===g?W0-Vt():(g&4194048)===g?Cg-Vt():0;if(Fe=Vx(ye,Fe),Fe!==null){Oi=g,r.cancelPendingCommit=Fe(Bg.bind(null,r,a,g,s,d,p,C,M,P,me,ye,null,se,ue)),Nl(r,g,C,!ae);return}}Bg(r,a,g,s,d,p,C,M,P)}function ox(r){for(var a=r;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var d=0;d<s.length;d++){var p=s[d],g=p.getSnapshot;p=p.value;try{if(!Vn(g(),p))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Nl(r,a,s,d){a&=~Th,a&=~zs,r.suspendedLanes|=a,r.pingedLanes&=~a,d&&(r.warmLanes|=a),d=r.expirationTimes;for(var p=a;0<p;){var g=31-Dt(p),C=1<<g;d[g]=-1,p&=~C}s!==0&&du(r,s,a)}function Q0(){return(Nt&6)===0?(ac(0),!1):!0}function zh(){if(pt!==null){if(Ot===0)var r=pt.return;else r=pt,ka=Kr=null,Yf(r),Ci=null,bl=0,r=pt;for(;r!==null;)ig(r.alternate,r),r=r.return;pt=null}}function Lo(r,a){var s=r.timeoutHandle;s!==-1&&(r.timeoutHandle=-1,Ex(s)),s=r.cancelPendingCommit,s!==null&&(r.cancelPendingCommit=null,s()),Oi=0,zh(),Ht=r,pt=s=hn(r.current,null),xt=a,Ot=0,Nr=null,jl=!1,_o=Pi(r,a),jh=!1,Bo=Mr=Th=zs=Tl=un=0,yr=nc=null,Ah=!1,(a&8)!==0&&(a|=a&32);var d=r.entangledLanes;if(d!==0)for(r=r.entanglements,d&=a;0<d;){var p=31-Dt(d),g=1<<p;a|=r[p],d&=~g}return Ri=a,xo(),s}function Ng(r,a){ot=null,ee.H=Wu,a===xl||a===Ao?(a=N0(),Ot=3):a===ta?(a=N0(),Ot=4):Ot=a===uh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Nr=a,pt===null&&(un=1,U0(r,ur(a,r.current)))}function Mg(){var r=Ar.current;return r===null?!0:(xt&4194048)===xt?na===null:(xt&62914560)===xt||(xt&536870912)!==0?r===na:!1}function zg(){var r=ee.H;return ee.H=Wu,r===null?Wu:r}function Dg(){var r=ee.A;return ee.A=lx,r}function Z0(){un=4,jl||(xt&4194048)!==xt&&Ar.current!==null||(_o=!0),(Tl&134217727)===0&&(zs&134217727)===0||Ht===null||Nl(Ht,xt,Mr,!1)}function Dh(r,a,s){var d=Nt;Nt|=2;var p=zg(),g=Dg();(Ht!==r||xt!==a)&&(K0=null,Lo(r,a)),a=!1;var C=un;e:do try{if(Ot!==0&&pt!==null){var M=pt,P=Nr;switch(Ot){case 8:zh(),C=6;break e;case 3:case 2:case 9:case 6:Ar.current===null&&(a=!0);var ae=Ot;if(Ot=0,Nr=null,qo(r,M,P,ae),s&&_o){C=0;break e}break;default:ae=Ot,Ot=0,Nr=null,qo(r,M,P,ae)}}ux(),C=un;break}catch(me){Ng(r,me)}while(!0);return a&&r.shellSuspendCounter++,ka=Kr=null,Nt=d,ee.H=p,ee.A=g,pt===null&&(Ht=null,xt=0,xo()),C}function ux(){for(;pt!==null;)Rg(pt)}function cx(r,a){var s=Nt;Nt|=2;var d=zg(),p=Dg();Ht!==r||xt!==a?(K0=null,X0=Vt()+500,Lo(r,a)):_o=Pi(r,a);e:do try{if(Ot!==0&&pt!==null){a=pt;var g=Nr;t:switch(Ot){case 1:Ot=0,Nr=null,qo(r,a,g,1);break;case 2:case 9:if(E0(g)){Ot=0,Nr=null,Og(a);break}a=function(){Ot!==2&&Ot!==9||Ht!==r||(Ot=7),Wa(r)},g.then(a,a);break e;case 3:Ot=7;break e;case 4:Ot=5;break e;case 7:E0(g)?(Ot=0,Nr=null,Og(a)):(Ot=0,Nr=null,qo(r,a,g,7));break;case 5:var C=null;switch(pt.tag){case 26:C=pt.memoizedState;case 5:case 27:var M=pt;if(C?x2(C):M.stateNode.complete){Ot=0,Nr=null;var P=M.sibling;if(P!==null)pt=P;else{var ae=M.return;ae!==null?(pt=ae,J0(ae)):pt=null}break t}}Ot=0,Nr=null,qo(r,a,g,5);break;case 6:Ot=0,Nr=null,qo(r,a,g,6);break;case 8:zh(),un=6;break e;default:throw Error(i(462))}}dx();break}catch(me){Ng(r,me)}while(!0);return ka=Kr=null,ee.H=d,ee.A=p,Nt=s,pt!==null?0:(Ht=null,xt=0,xo(),un)}function dx(){for(;pt!==null&&!Sr();)Rg(pt)}function Rg(r){var a=rg(r.alternate,r,Ri);r.memoizedProps=r.pendingProps,a===null?J0(r):pt=a}function Og(r){var a=r,s=a.alternate;switch(a.tag){case 15:case 0:a=Q4(s,a,a.pendingProps,a.type,void 0,xt);break;case 11:a=Q4(s,a,a.pendingProps,a.type.render,a.ref,xt);break;case 5:Yf(a);default:ig(s,a),a=pt=_u(a,Ri),a=rg(s,a,Ri)}r.memoizedProps=r.pendingProps,a===null?J0(r):pt=a}function qo(r,a,s,d){ka=Kr=null,Yf(a),Ci=null,bl=0;var p=a.return;try{if(J7(r,p,a,s,xt)){un=1,U0(r,ur(s,r.current)),pt=null;return}}catch(g){if(p!==null)throw pt=p,g;un=1,U0(r,ur(s,r.current)),pt=null;return}a.flags&32768?(mt||d===1?r=!0:_o||(xt&536870912)!==0?r=!1:(jl=r=!0,(d===2||d===9||d===3||d===6)&&(d=Ar.current,d!==null&&d.tag===13&&(d.flags|=16384))),_g(a,r)):J0(a)}function J0(r){var a=r;do{if((a.flags&32768)!==0){_g(a,jl);return}r=a.return;var s=nx(a.alternate,a,Ri);if(s!==null){pt=s;return}if(a=a.sibling,a!==null){pt=a;return}pt=a=r}while(a!==null);un===0&&(un=5)}function _g(r,a){do{var s=rx(r.alternate,r);if(s!==null){s.flags&=32767,pt=s;return}if(s=r.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(r=r.sibling,r!==null)){pt=r;return}pt=r=s}while(r!==null);un=6,pt=null}function Bg(r,a,s,d,p,g,C,M,P){r.cancelPendingCommit=null;do ed();while(En!==0);if((Nt&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(g=a.lanes|a.childLanes,g|=Ru,es(r,s,g,C,M,P),r===Ht&&(pt=Ht=null,xt=0),Io=a,El=r,Oi=s,Eh=g,Nh=p,jg=d,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,px(Ue,function(){return Hg(),null})):(r.callbackNode=null,r.callbackPriority=0),d=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||d){d=ee.T,ee.T=null,p=pe.p,pe.p=2,C=Nt,Nt|=4;try{ax(r,a,s)}finally{Nt=C,pe.p=p,ee.T=d}}En=1,Ig(),Lg(),qg()}}function Ig(){if(En===1){En=0;var r=El,a=Io,s=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||s){s=ee.T,ee.T=null;var d=pe.p;pe.p=2;var p=Nt;Nt|=4;try{yg(a,r);var g=Gh,C=f0(r.containerInfo),M=g.focusedElem,P=g.selectionRange;if(C!==M&&M&&M.ownerDocument&&ys(M.ownerDocument.documentElement,M)){if(P!==null&&go(M)){var ae=P.start,me=P.end;if(me===void 0&&(me=ae),"selectionStart"in M)M.selectionStart=ae,M.selectionEnd=Math.min(me,M.value.length);else{var ye=M.ownerDocument||document,se=ye&&ye.defaultView||window;if(se.getSelection){var ue=se.getSelection(),Fe=M.textContent.length,Ze=Math.min(P.start,Fe),qt=P.end===void 0?Ze:Math.min(P.end,Fe);!ue.extend&&Ze>qt&&(C=qt,qt=Ze,Ze=C);var Z=d0(M,Ze),W=d0(M,qt);if(Z&&W&&(ue.rangeCount!==1||ue.anchorNode!==Z.node||ue.anchorOffset!==Z.offset||ue.focusNode!==W.node||ue.focusOffset!==W.offset)){var re=ye.createRange();re.setStart(Z.node,Z.offset),ue.removeAllRanges(),Ze>qt?(ue.addRange(re),ue.extend(W.node,W.offset)):(re.setEnd(W.node,W.offset),ue.addRange(re))}}}}for(ye=[],ue=M;ue=ue.parentNode;)ue.nodeType===1&&ye.push({element:ue,left:ue.scrollLeft,top:ue.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<ye.length;M++){var ge=ye[M];ge.element.scrollLeft=ge.left,ge.element.scrollTop=ge.top}}fd=!!$h,Gh=$h=null}finally{Nt=p,pe.p=d,ee.T=s}}r.current=a,En=2}}function Lg(){if(En===2){En=0;var r=El,a=Io,s=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||s){s=ee.T,ee.T=null;var d=pe.p;pe.p=2;var p=Nt;Nt|=4;try{fg(r,a.alternate,a)}finally{Nt=p,pe.p=d,ee.T=s}}En=3}}function qg(){if(En===4||En===3){En=0,ua();var r=El,a=Io,s=Oi,d=jg;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?En=5:(En=0,Io=El=null,Ug(r,r.pendingLanes));var p=r.pendingLanes;if(p===0&&(Al=null),hu(s),a=a.stateNode,rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(zn,a,void 0,(a.current.flags&128)===128)}catch{}if(d!==null){a=ee.T,p=pe.p,pe.p=2,ee.T=null;try{for(var g=r.onRecoverableError,C=0;C<d.length;C++){var M=d[C];g(M.value,{componentStack:M.stack})}}finally{ee.T=a,pe.p=p}}(Oi&3)!==0&&ed(),Wa(r),p=r.pendingLanes,(s&261930)!==0&&(p&42)!==0?r===Mh?rc++:(rc=0,Mh=r):rc=0,ac(0)}}function Ug(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Ss(a)))}function ed(){return Ig(),Lg(),qg(),Hg()}function Hg(){if(En!==5)return!1;var r=El,a=Eh;Eh=0;var s=hu(Oi),d=ee.T,p=pe.p;try{pe.p=32>s?32:s,ee.T=null,s=Nh,Nh=null;var g=El,C=Oi;if(En=0,Io=El=null,Oi=0,(Nt&6)!==0)throw Error(i(331));var M=Nt;if(Nt|=4,kg(g.current),xg(g,g.current,C,s),Nt=M,ac(0,!1),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(zn,g)}catch{}return!0}finally{pe.p=p,ee.T=d,Ug(r,a)}}function Fg(r,a,s){a=ur(s,a),a=oh(r.stateNode,a,2),r=_e(r,a,2),r!==null&&(Bt(r,2),Wa(r))}function _t(r,a,s){if(r.tag===3)Fg(r,r,s);else for(;a!==null;){if(a.tag===3){Fg(a,r,s);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Al===null||!Al.has(d))){r=ur(s,r),s=$4(2),d=_e(a,s,2),d!==null&&(G4(s,d,a,r),Bt(d,2),Wa(d));break}}a=a.return}}function Rh(r,a,s){var d=r.pingCache;if(d===null){d=r.pingCache=new sx;var p=new Set;d.set(a,p)}else p=d.get(a),p===void 0&&(p=new Set,d.set(a,p));p.has(s)||(jh=!0,p.add(s),r=fx.bind(null,r,a,s),a.then(r,r))}function fx(r,a,s){var d=r.pingCache;d!==null&&d.delete(a),r.pingedLanes|=r.suspendedLanes&s,r.warmLanes&=~s,Ht===r&&(xt&s)===s&&(un===4||un===3&&(xt&62914560)===xt&&300>Vt()-W0?(Nt&2)===0&&Lo(r,0):Th|=s,Bo===xt&&(Bo=0)),Wa(r)}function $g(r,a){a===0&&(a=nr()),r=bi(r,a),r!==null&&(Bt(r,a),Wa(r))}function hx(r){var a=r.memoizedState,s=0;a!==null&&(s=a.retryLane),$g(r,s)}function mx(r,a){var s=0;switch(r.tag){case 31:case 13:var d=r.stateNode,p=r.memoizedState;p!==null&&(s=p.retryLane);break;case 19:d=r.stateNode;break;case 22:d=r.stateNode._retryCache;break;default:throw Error(i(314))}d!==null&&d.delete(a),$g(r,s)}function px(r,a){return Wt(r,a)}var td=null,Uo=null,Oh=!1,nd=!1,_h=!1,Ml=0;function Wa(r){r!==Uo&&r.next===null&&(Uo===null?td=Uo=r:Uo=Uo.next=r),nd=!0,Oh||(Oh=!0,yx())}function ac(r,a){if(!_h&&nd){_h=!0;do for(var s=!1,d=td;d!==null;){if(r!==0){var p=d.pendingLanes;if(p===0)var g=0;else{var C=d.suspendedLanes,M=d.pingedLanes;g=(1<<31-Dt(42|r)+1)-1,g&=p&~(C&~M),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(s=!0,Yg(d,g))}else g=xt,g=Jl(d,d===Ht?g:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(g&3)===0||Pi(d,g)||(s=!0,Yg(d,g));d=d.next}while(s);_h=!1}}function gx(){Gg()}function Gg(){nd=Oh=!1;var r=0;Ml!==0&&Ax()&&(r=Ml);for(var a=Vt(),s=null,d=td;d!==null;){var p=d.next,g=Pg(d,a);g===0?(d.next=null,s===null?td=p:s.next=p,p===null&&(Uo=s)):(s=d,(r!==0||(g&3)!==0)&&(nd=!0)),d=p}En!==0&&En!==5||ac(r),Ml!==0&&(Ml=0)}function Pg(r,a){for(var s=r.suspendedLanes,d=r.pingedLanes,p=r.expirationTimes,g=r.pendingLanes&-62914561;0<g;){var C=31-Dt(g),M=1<<C,P=p[C];P===-1?((M&s)===0||(M&d)!==0)&&(p[C]=cu(M,a)):P<=a&&(r.expiredLanes|=M),g&=~M}if(a=Ht,s=xt,s=Jl(r,r===a?s:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d=r.callbackNode,s===0||r===a&&(Ot===2||Ot===9)||r.cancelPendingCommit!==null)return d!==null&&d!==null&&qr(d),r.callbackNode=null,r.callbackPriority=0;if((s&3)===0||Pi(r,s)){if(a=s&-s,a===r.callbackPriority)return a;switch(d!==null&&qr(d),hu(s)){case 2:case 8:s=we;break;case 32:s=Ue;break;case 268435456:s=vt;break;default:s=Ue}return d=Vg.bind(null,r),s=Wt(s,d),r.callbackPriority=a,r.callbackNode=s,a}return d!==null&&d!==null&&qr(d),r.callbackPriority=2,r.callbackNode=null,2}function Vg(r,a){if(En!==0&&En!==5)return r.callbackNode=null,r.callbackPriority=0,null;var s=r.callbackNode;if(ed()&&r.callbackNode!==s)return null;var d=xt;return d=Jl(r,r===Ht?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d===0?null:(Ag(r,d,a),Pg(r,Vt()),r.callbackNode!=null&&r.callbackNode===s?Vg.bind(null,r):null)}function Yg(r,a){if(ed())return null;Ag(r,a,!0)}function yx(){Nx(function(){(Nt&6)!==0?Wt(he,gx):Gg()})}function Bh(){if(Ml===0){var r=Zr;r===0&&(r=Zl,Zl<<=1,(Zl&261888)===0&&(Zl=256)),Ml=r}return Ml}function Wg(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:rs(""+r)}function Xg(r,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,r.id&&s.setAttribute("form",r.id),a.parentNode.insertBefore(s,a),r=new FormData(r),s.parentNode.removeChild(s),r}function vx(r,a,s,d,p){if(a==="submit"&&s&&s.stateNode===p){var g=Wg((p[Rn]||null).action),C=d.submitter;C&&(a=(a=C[Rn]||null)?Wg(a.formAction):C.getAttribute("formAction"),a!==null&&(g=a,C=null));var M=new ya("action","action",null,d,p);r.push({event:M,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Ml!==0){var P=C?Xg(p,C):new FormData(p);nh(s,{pending:!0,data:P,method:p.method,action:g},null,P)}}else typeof g=="function"&&(M.preventDefault(),P=C?Xg(p,C):new FormData(p),nh(s,{pending:!0,data:P,method:p.method,action:g},g,P))},currentTarget:p}]})}}for(var Ih=0;Ih<Du.length;Ih++){var Lh=Du[Ih],xx=Lh.toLowerCase(),bx=Lh[0].toUpperCase()+Lh.slice(1);jr(xx,"on"+bx)}jr(zu,"onAnimationEnd"),jr(m0,"onAnimationIteration"),jr(p0,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(g0,"onTransitionRun"),jr(Of,"onTransitionStart"),jr(_f,"onTransitionCancel"),jr(y0,"onTransitionEnd"),ui("onMouseEnter",["mouseout","mouseover"]),ui("onMouseLeave",["mouseout","mouseover"]),ui("onPointerEnter",["pointerout","pointerover"]),ui("onPointerLeave",["pointerout","pointerover"]),oi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),oi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),oi("onBeforeInput",["compositionend","keypress","textInput","paste"]),oi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),oi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),oi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ic="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(" "),wx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ic));function Kg(r,a){a=(a&4)!==0;for(var s=0;s<r.length;s++){var d=r[s],p=d.event;d=d.listeners;e:{var g=void 0;if(a)for(var C=d.length-1;0<=C;C--){var M=d[C],P=M.instance,ae=M.currentTarget;if(M=M.listener,P!==g&&p.isPropagationStopped())break e;g=M,p.currentTarget=ae;try{g(p)}catch(me){vo(me)}p.currentTarget=null,g=P}else for(C=0;C<d.length;C++){if(M=d[C],P=M.instance,ae=M.currentTarget,M=M.listener,P!==g&&p.isPropagationStopped())break e;g=M,p.currentTarget=ae;try{g(p)}catch(me){vo(me)}p.currentTarget=null,g=P}}}}function gt(r,a){var s=a[li];s===void 0&&(s=a[li]=new Set);var d=r+"__bubble";s.has(d)||(Qg(a,r,2,!1),s.add(d))}function qh(r,a,s){var d=0;a&&(d|=4),Qg(s,r,d,a)}var rd="_reactListening"+Math.random().toString(36).slice(2);function Uh(r){if(!r[rd]){r[rd]=!0,Zs.forEach(function(s){s!=="selectionchange"&&(wx.has(s)||qh(s,!1,r),qh(s,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[rd]||(a[rd]=!0,qh("selectionchange",!1,a))}}function Qg(r,a,s,d){switch(T2(a)){case 2:var p=Xx;break;case 8:p=Kx;break;default:p=tm}s=p.bind(null,a,s,r),p=void 0,!is||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(p=!0),d?p!==void 0?r.addEventListener(a,s,{capture:!0,passive:p}):r.addEventListener(a,s,!0):p!==void 0?r.addEventListener(a,s,{passive:p}):r.addEventListener(a,s,!1)}function Hh(r,a,s,d,p){var g=d;if((a&1)===0&&(a&2)===0&&d!==null)e:for(;;){if(d===null)return;var C=d.tag;if(C===3||C===4){var M=d.stateNode.containerInfo;if(M===p)break;if(C===4)for(C=d.return;C!==null;){var P=C.tag;if((P===3||P===4)&&C.stateNode.containerInfo===p)return;C=C.return}for(;M!==null;){if(C=da(M),C===null)return;if(P=C.tag,P===5||P===6||P===26||P===27){d=g=C;continue e}M=M.parentNode}}d=d.return}Jt(function(){var ae=g,me=Vr(s),ye=[];e:{var se=v0.get(r);if(se!==void 0){var ue=ya,Fe=r;switch(r){case"keypress":if(lo(s)===0)break e;case"keydown":case"keyup":ue=xu;break;case"focusin":Fe="focus",ue=pi;break;case"focusout":Fe="blur",ue=pi;break;case"beforeblur":case"afterblur":ue=pi;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=so;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=n0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=r0;break;case zu:case m0:case p0:ue=uo;break;case y0:ue=dn;break;case"scroll":case"scrollend":ue=t0;break;case"wheel":ue=gi;break;case"copy":case"cut":case"paste":ue=tl;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=hs;break;case"toggle":case"beforetoggle":ue=Et}var Ze=(a&4)!==0,qt=!Ze&&(r==="scroll"||r==="scrollend"),Z=Ze?se!==null?se+"Capture":null:se;Ze=[];for(var W=ae,re;W!==null;){var ge=W;if(re=ge.stateNode,ge=ge.tag,ge!==5&&ge!==26&&ge!==27||re===null||Z===null||(ge=ha(W,Z),ge!=null&&Ze.push(lc(W,ge,re))),qt)break;W=W.return}0<Ze.length&&(se=new ue(se,Fe,null,s,me),ye.push({event:se,listeners:Ze}))}}if((a&7)===0){e:{if(se=r==="mouseover"||r==="pointerover",ue=r==="mouseout"||r==="pointerout",se&&s!==ir&&(Fe=s.relatedTarget||s.fromElement)&&(da(Fe)||Fe[Yi]))break e;if((ue||se)&&(se=me.window===me?me:(se=me.ownerDocument)?se.defaultView||se.parentWindow:window,ue?(Fe=s.relatedTarget||s.toElement,ue=ae,Fe=Fe?da(Fe):null,Fe!==null&&(qt=o(Fe),Ze=Fe.tag,Fe!==qt||Ze!==5&&Ze!==27&&Ze!==6)&&(Fe=null)):(ue=null,Fe=ae),ue!==Fe)){if(Ze=so,ge="onMouseLeave",Z="onMouseEnter",W="mouse",(r==="pointerout"||r==="pointerover")&&(Ze=hs,ge="onPointerLeave",Z="onPointerEnter",W="pointer"),qt=ue==null?se:fa(ue),re=Fe==null?se:fa(Fe),se=new Ze(ge,W+"leave",ue,s,me),se.target=qt,se.relatedTarget=re,ge=null,da(me)===ae&&(Ze=new Ze(Z,W+"enter",Fe,s,me),Ze.target=re,Ze.relatedTarget=qt,ge=Ze),qt=ge,ue&&Fe)t:{for(Ze=kx,Z=ue,W=Fe,re=0,ge=Z;ge;ge=Ze(ge))re++;ge=0;for(var Xe=W;Xe;Xe=Ze(Xe))ge++;for(;0<re-ge;)Z=Ze(Z),re--;for(;0<ge-re;)W=Ze(W),ge--;for(;re--;){if(Z===W||W!==null&&Z===W.alternate){Ze=Z;break t}Z=Ze(Z),W=Ze(W)}Ze=null}else Ze=null;ue!==null&&Zg(ye,se,ue,Ze,!1),Fe!==null&&qt!==null&&Zg(ye,qt,Fe,Ze,!0)}}e:{if(se=ae?fa(ae):window,ue=se.nodeName&&se.nodeName.toLowerCase(),ue==="select"||ue==="input"&&se.type==="file")var jt=s0;else if(l0(se))if(o0)jt=Tu;else{jt=gs;var Pe=po}else ue=se.nodeName,!ue||ue.toLowerCase()!=="input"||se.type!=="checkbox"&&se.type!=="radio"?ae&&fi(ae.elementType)&&(jt=s0):jt=u0;if(jt&&(jt=jt(r,ae))){Cu(ye,jt,s,me);break e}Pe&&Pe(r,se,ae),r==="focusout"&&ae&&se.type==="number"&&ae.memoizedProps.value!=null&&Cr(se,"number",se.value)}switch(Pe=ae?fa(ae):window,r){case"focusin":(l0(Pe)||Pe.contentEditable==="true")&&(ul=Pe,Nu=ae,Ha=null);break;case"focusout":Ha=Nu=ul=null;break;case"mousedown":vs=!0;break;case"contextmenu":case"mouseup":case"dragend":vs=!1,yo(ye,s,me);break;case"selectionchange":if(Eu)break;case"keydown":case"keyup":yo(ye,s,me)}var ct;if(ll)e:{switch(r){case"compositionstart":var bt="onCompositionStart";break e;case"compositionend":bt="onCompositionEnd";break e;case"compositionupdate":bt="onCompositionUpdate";break e}bt=void 0}else yi?i0(r,s)&&(bt="onCompositionEnd"):r==="keydown"&&s.keyCode===229&&(bt="onCompositionStart");bt&&(ho&&s.locale!=="ko"&&(yi||bt!=="onCompositionStart"?bt==="onCompositionEnd"&&yi&&(ct=e0()):(_a=me,pa="value"in _a?_a.value:_a.textContent,yi=!0)),Pe=ad(ae,bt),0<Pe.length&&(bt=new va(bt,r,null,s,me),ye.push({event:bt,listeners:Pe}),ct?bt.data=ct:(ct=sl(s),ct!==null&&(bt.data=ct)))),(ct=ms?ku(r,s):Su(r,s))&&(bt=ad(ae,"onBeforeInput"),0<bt.length&&(Pe=new va("onBeforeInput","beforeinput",null,s,me),ye.push({event:Pe,listeners:bt}),Pe.data=ct)),vx(ye,r,ae,s,me)}Kg(ye,a)})}function lc(r,a,s){return{instance:r,listener:a,currentTarget:s}}function ad(r,a){for(var s=a+"Capture",d=[];r!==null;){var p=r,g=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||g===null||(p=ha(r,s),p!=null&&d.unshift(lc(r,p,g)),p=ha(r,a),p!=null&&d.push(lc(r,p,g))),r.tag===3)return d;r=r.return}return[]}function kx(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function Zg(r,a,s,d,p){for(var g=a._reactName,C=[];s!==null&&s!==d;){var M=s,P=M.alternate,ae=M.stateNode;if(M=M.tag,P!==null&&P===d)break;M!==5&&M!==26&&M!==27||ae===null||(P=ae,p?(ae=ha(s,g),ae!=null&&C.unshift(lc(s,ae,P))):p||(ae=ha(s,g),ae!=null&&C.push(lc(s,ae,P)))),s=s.return}C.length!==0&&r.push({event:a,listeners:C})}var Sx=/\r\n?/g,Cx=/\u0000|\uFFFD/g;function Jg(r){return(typeof r=="string"?r:""+r).replace(Sx,`
|
|
50
|
-
`).replace(Cx,"")}function e2(r,a){return a=Jg(a),Jg(r)===a}function Lt(r,a,s,d,p,g){switch(s){case"children":typeof d=="string"?a==="body"||a==="textarea"&&d===""||di(r,d):(typeof d=="number"||typeof d=="bigint")&&a!=="body"&&di(r,""+d);break;case"className":ci(r,"class",d);break;case"tabIndex":ci(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":ci(r,s,d);break;case"style":ns(r,d,g);break;case"data":if(a!=="object"){ci(r,"data",d);break}case"src":case"href":if(d===""&&(a!=="a"||s!=="href")){r.removeAttribute(s);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(s);break}d=rs(""+d),r.setAttribute(s,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(s,"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 g=="function"&&(s==="formAction"?(a!=="input"&&Lt(r,a,"name",p.name,p,null),Lt(r,a,"formEncType",p.formEncType,p,null),Lt(r,a,"formMethod",p.formMethod,p,null),Lt(r,a,"formTarget",p.formTarget,p,null)):(Lt(r,a,"encType",p.encType,p,null),Lt(r,a,"method",p.method,p,null),Lt(r,a,"target",p.target,p,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(s);break}d=rs(""+d),r.setAttribute(s,d);break;case"onClick":d!=null&&(r.onclick=ar);break;case"onScroll":d!=null&>("scroll",r);break;case"onScrollEnd":d!=null&>("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(s=d.__html,s!=null){if(p.children!=null)throw Error(i(60));r.innerHTML=s}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}s=rs(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(s,""+d):r.removeAttribute(s);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":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(s,""):r.removeAttribute(s);break;case"capture":case"download":d===!0?r.setAttribute(s,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(s,d):r.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(s,d):r.removeAttribute(s);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(s):r.setAttribute(s,d);break;case"popover":gt("beforetoggle",r),gt("toggle",r),to(r,"popover",d);break;case"xlinkActuate":$r(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":$r(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":$r(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":$r(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":$r(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":$r(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":$r(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":$r(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":$r(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":to(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=yu.get(s)||s,to(r,s,d))}}function Fh(r,a,s,d,p,g){switch(s){case"style":ns(r,d,g);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(s=d.__html,s!=null){if(p.children!=null)throw Error(i(60));r.innerHTML=s}}break;case"children":typeof d=="string"?di(r,d):(typeof d=="number"||typeof d=="bigint")&&di(r,""+d);break;case"onScroll":d!=null&>("scroll",r);break;case"onScrollEnd":d!=null&>("scrollend",r);break;case"onClick":d!=null&&(r.onclick=ar);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Js.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(p=s.endsWith("Capture"),a=s.slice(2,p?s.length-7:void 0),g=r[Rn]||null,g=g!=null?g[s]:null,typeof g=="function"&&r.removeEventListener(a,g,p),typeof d=="function")){typeof g!="function"&&g!==null&&(s in r?r[s]=null:r.hasAttribute(s)&&r.removeAttribute(s)),r.addEventListener(a,d,p);break e}s in r?r[s]=d:d===!0?r.setAttribute(s,""):to(r,s,d)}}}function Un(r,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":gt("error",r),gt("load",r);var d=!1,p=!1,g;for(g in s)if(s.hasOwnProperty(g)){var C=s[g];if(C!=null)switch(g){case"src":d=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Lt(r,a,g,C,s,null)}}p&&Lt(r,a,"srcSet",s.srcSet,s,null),d&&Lt(r,a,"src",s.src,s,null);return;case"input":gt("invalid",r);var M=g=C=p=null,P=null,ae=null;for(d in s)if(s.hasOwnProperty(d)){var me=s[d];if(me!=null)switch(d){case"name":p=me;break;case"type":C=me;break;case"checked":P=me;break;case"defaultChecked":ae=me;break;case"value":g=me;break;case"defaultValue":M=me;break;case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(i(137,a));break;default:Lt(r,a,d,me,s,null)}}Pr(r,g,M,P,ae,C,p,!1);return;case"select":gt("invalid",r),d=C=g=null;for(p in s)if(s.hasOwnProperty(p)&&(M=s[p],M!=null))switch(p){case"value":g=M;break;case"defaultValue":C=M;break;case"multiple":d=M;default:Lt(r,a,p,M,s,null)}a=g,s=C,r.multiple=!!d,a!=null?rr(r,!!d,a,!1):s!=null&&rr(r,!!d,s,!0);return;case"textarea":gt("invalid",r),g=p=d=null;for(C in s)if(s.hasOwnProperty(C)&&(M=s[C],M!=null))switch(C){case"value":d=M;break;case"defaultValue":p=M;break;case"children":g=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(i(91));break;default:Lt(r,a,C,M,s,null)}Qi(r,d,p,g);return;case"option":for(P in s)if(s.hasOwnProperty(P)&&(d=s[P],d!=null))switch(P){case"selected":r.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Lt(r,a,P,d,s,null)}return;case"dialog":gt("beforetoggle",r),gt("toggle",r),gt("cancel",r),gt("close",r);break;case"iframe":case"object":gt("load",r);break;case"video":case"audio":for(d=0;d<ic.length;d++)gt(ic[d],r);break;case"image":gt("error",r),gt("load",r);break;case"details":gt("toggle",r);break;case"embed":case"source":case"link":gt("error",r),gt("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ae in s)if(s.hasOwnProperty(ae)&&(d=s[ae],d!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Lt(r,a,ae,d,s,null)}return;default:if(fi(a)){for(me in s)s.hasOwnProperty(me)&&(d=s[me],d!==void 0&&Fh(r,a,me,d,s,void 0));return}}for(M in s)s.hasOwnProperty(M)&&(d=s[M],d!=null&&Lt(r,a,M,d,s,null))}function jx(r,a,s,d){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,g=null,C=null,M=null,P=null,ae=null,me=null;for(ue in s){var ye=s[ue];if(s.hasOwnProperty(ue)&&ye!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":P=ye;default:d.hasOwnProperty(ue)||Lt(r,a,ue,null,d,ye)}}for(var se in d){var ue=d[se];if(ye=s[se],d.hasOwnProperty(se)&&(ue!=null||ye!=null))switch(se){case"type":g=ue;break;case"name":p=ue;break;case"checked":ae=ue;break;case"defaultChecked":me=ue;break;case"value":C=ue;break;case"defaultValue":M=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(i(137,a));break;default:ue!==ye&&Lt(r,a,se,ue,d,ye)}}ro(r,C,M,P,ae,me,g,p);return;case"select":ue=C=M=se=null;for(g in s)if(P=s[g],s.hasOwnProperty(g)&&P!=null)switch(g){case"value":break;case"multiple":ue=P;default:d.hasOwnProperty(g)||Lt(r,a,g,null,d,P)}for(p in d)if(g=d[p],P=s[p],d.hasOwnProperty(p)&&(g!=null||P!=null))switch(p){case"value":se=g;break;case"defaultValue":M=g;break;case"multiple":C=g;default:g!==P&&Lt(r,a,p,g,d,P)}a=M,s=C,d=ue,se!=null?rr(r,!!s,se,!1):!!d!=!!s&&(a!=null?rr(r,!!s,a,!0):rr(r,!!s,s?[]:"",!1));return;case"textarea":ue=se=null;for(M in s)if(p=s[M],s.hasOwnProperty(M)&&p!=null&&!d.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:Lt(r,a,M,null,d,p)}for(C in d)if(p=d[C],g=s[C],d.hasOwnProperty(C)&&(p!=null||g!=null))switch(C){case"value":se=p;break;case"defaultValue":ue=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==g&&Lt(r,a,C,p,d,g)}gu(r,se,ue);return;case"option":for(var Fe in s)if(se=s[Fe],s.hasOwnProperty(Fe)&&se!=null&&!d.hasOwnProperty(Fe))switch(Fe){case"selected":r.selected=!1;break;default:Lt(r,a,Fe,null,d,se)}for(P in d)if(se=d[P],ue=s[P],d.hasOwnProperty(P)&&se!==ue&&(se!=null||ue!=null))switch(P){case"selected":r.selected=se&&typeof se!="function"&&typeof se!="symbol";break;default:Lt(r,a,P,se,d,ue)}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 Ze in s)se=s[Ze],s.hasOwnProperty(Ze)&&se!=null&&!d.hasOwnProperty(Ze)&&Lt(r,a,Ze,null,d,se);for(ae in d)if(se=d[ae],ue=s[ae],d.hasOwnProperty(ae)&&se!==ue&&(se!=null||ue!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,a));break;default:Lt(r,a,ae,se,d,ue)}return;default:if(fi(a)){for(var qt in s)se=s[qt],s.hasOwnProperty(qt)&&se!==void 0&&!d.hasOwnProperty(qt)&&Fh(r,a,qt,void 0,d,se);for(me in d)se=d[me],ue=s[me],!d.hasOwnProperty(me)||se===ue||se===void 0&&ue===void 0||Fh(r,a,me,se,d,ue);return}}for(var Z in s)se=s[Z],s.hasOwnProperty(Z)&&se!=null&&!d.hasOwnProperty(Z)&&Lt(r,a,Z,null,d,se);for(ye in d)se=d[ye],ue=s[ye],!d.hasOwnProperty(ye)||se===ue||se==null&&ue==null||Lt(r,a,ye,se,d,ue)}function t2(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tx(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,s=performance.getEntriesByType("resource"),d=0;d<s.length;d++){var p=s[d],g=p.transferSize,C=p.initiatorType,M=p.duration;if(g&&M&&t2(C)){for(C=0,M=p.responseEnd,d+=1;d<s.length;d++){var P=s[d],ae=P.startTime;if(ae>M)break;var me=P.transferSize,ye=P.initiatorType;me&&t2(ye)&&(P=P.responseEnd,C+=me*(P<M?1:(M-ae)/(P-ae)))}if(--d,a+=8*(g+C)/(p.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var $h=null,Gh=null;function id(r){return r.nodeType===9?r:r.ownerDocument}function n2(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function r2(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function Ph(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Vh=null;function Ax(){var r=window.event;return r&&r.type==="popstate"?r===Vh?!1:(Vh=r,!0):(Vh=null,!1)}var a2=typeof setTimeout=="function"?setTimeout:void 0,Ex=typeof clearTimeout=="function"?clearTimeout:void 0,i2=typeof Promise=="function"?Promise:void 0,Nx=typeof queueMicrotask=="function"?queueMicrotask:typeof i2<"u"?function(r){return i2.resolve(null).then(r).catch(Mx)}:a2;function Mx(r){setTimeout(function(){throw r})}function zl(r){return r==="head"}function l2(r,a){var s=a,d=0;do{var p=s.nextSibling;if(r.removeChild(s),p&&p.nodeType===8)if(s=p.data,s==="/$"||s==="/&"){if(d===0){r.removeChild(p),Go(a);return}d--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")d++;else if(s==="html")sc(r.ownerDocument.documentElement);else if(s==="head"){s=r.ownerDocument.head,sc(s);for(var g=s.firstChild;g;){var C=g.nextSibling,M=g.nodeName;g[Fr]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&g.rel.toLowerCase()==="stylesheet"||s.removeChild(g),g=C}}else s==="body"&&sc(r.ownerDocument.body);s=p}while(s);Go(a)}function s2(r,a){var s=r;r=0;do{var d=s.nextSibling;if(s.nodeType===1?a?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(a?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),d&&d.nodeType===8)if(s=d.data,s==="/$"){if(r===0)break;r--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||r++;s=d}while(s)}function Yh(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Yh(s),ts(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}r.removeChild(s)}}function zx(r,a,s,d){for(;r.nodeType===1;){var p=s;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!d&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(d){if(!r[Fr])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(g=r.getAttribute("rel"),g==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(g!==p.rel||r.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||r.getAttribute("title")!==(p.title==null?null:p.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(g=r.getAttribute("src"),(g!==(p.src==null?null:p.src)||r.getAttribute("type")!==(p.type==null?null:p.type)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&g&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var g=p.name==null?null:""+p.name;if(p.type==="hidden"&&r.getAttribute("name")===g)return r}else return r;if(r=ra(r.nextSibling),r===null)break}return null}function Dx(r,a,s){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=ra(r.nextSibling),r===null))return null;return r}function o2(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=ra(r.nextSibling),r===null))return null;return r}function Wh(r){return r.data==="$?"||r.data==="$~"}function Xh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function Rx(r,a){var s=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||s.readyState!=="loading")a();else{var d=function(){a(),s.removeEventListener("DOMContentLoaded",d)};s.addEventListener("DOMContentLoaded",d),r._reactRetry=d}}function ra(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var Kh=null;function u2(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var s=r.data;if(s==="/$"||s==="/&"){if(a===0)return ra(r.nextSibling);a--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||a++}r=r.nextSibling}return null}function c2(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var s=r.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(a===0)return r;a--}else s!=="/$"&&s!=="/&"||a++}r=r.previousSibling}return null}function d2(r,a,s){switch(a=id(s),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function sc(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);ts(r)}var aa=new Map,f2=new Set;function ld(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var _i=pe.d;pe.d={f:Ox,r:_x,D:Bx,C:Ix,L:Lx,m:qx,X:Hx,S:Ux,M:Fx};function Ox(){var r=_i.f(),a=Q0();return r||a}function _x(r){var a=Ki(r);a!==null&&a.tag===5&&a.type==="form"?N4(a):_i.r(r)}var Ho=typeof document>"u"?null:document;function h2(r,a,s){var d=Ho;if(d&&typeof a=="string"&&a){var p=On(a);p='link[rel="'+r+'"][href="'+p+'"]',typeof s=="string"&&(p+='[crossorigin="'+s+'"]'),f2.has(p)||(f2.add(p),r={rel:r,crossOrigin:s,href:a},d.querySelector(p)===null&&(a=d.createElement("link"),Un(a,"link",r),ln(a),d.head.appendChild(a)))}}function Bx(r){_i.D(r),h2("dns-prefetch",r,null)}function Ix(r,a){_i.C(r,a),h2("preconnect",r,a)}function Lx(r,a,s){_i.L(r,a,s);var d=Ho;if(d&&r&&a){var p='link[rel="preload"][as="'+On(a)+'"]';a==="image"&&s&&s.imageSrcSet?(p+='[imagesrcset="'+On(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(p+='[imagesizes="'+On(s.imageSizes)+'"]')):p+='[href="'+On(r)+'"]';var g=p;switch(a){case"style":g=Fo(r);break;case"script":g=$o(r)}aa.has(g)||(r=v({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:r,as:a},s),aa.set(g,r),d.querySelector(p)!==null||a==="style"&&d.querySelector(oc(g))||a==="script"&&d.querySelector(uc(g))||(a=d.createElement("link"),Un(a,"link",r),ln(a),d.head.appendChild(a)))}}function qx(r,a){_i.m(r,a);var s=Ho;if(s&&r){var d=a&&typeof a.as=="string"?a.as:"script",p='link[rel="modulepreload"][as="'+On(d)+'"][href="'+On(r)+'"]',g=p;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=$o(r)}if(!aa.has(g)&&(r=v({rel:"modulepreload",href:r},a),aa.set(g,r),s.querySelector(p)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(uc(g)))return}d=s.createElement("link"),Un(d,"link",r),ln(d),s.head.appendChild(d)}}}function Ux(r,a,s){_i.S(r,a,s);var d=Ho;if(d&&r){var p=Ma(d).hoistableStyles,g=Fo(r);a=a||"default";var C=p.get(g);if(!C){var M={loading:0,preload:null};if(C=d.querySelector(oc(g)))M.loading=5;else{r=v({rel:"stylesheet",href:r,"data-precedence":a},s),(s=aa.get(g))&&Qh(r,s);var P=C=d.createElement("link");ln(P),Un(P,"link",r),P._p=new Promise(function(ae,me){P.onload=ae,P.onerror=me}),P.addEventListener("load",function(){M.loading|=1}),P.addEventListener("error",function(){M.loading|=2}),M.loading|=4,sd(C,a,d)}C={type:"stylesheet",instance:C,count:1,state:M},p.set(g,C)}}}function Hx(r,a){_i.X(r,a);var s=Ho;if(s&&r){var d=Ma(s).hoistableScripts,p=$o(r),g=d.get(p);g||(g=s.querySelector(uc(p)),g||(r=v({src:r,async:!0},a),(a=aa.get(p))&&Zh(r,a),g=s.createElement("script"),ln(g),Un(g,"link",r),s.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},d.set(p,g))}}function Fx(r,a){_i.M(r,a);var s=Ho;if(s&&r){var d=Ma(s).hoistableScripts,p=$o(r),g=d.get(p);g||(g=s.querySelector(uc(p)),g||(r=v({src:r,async:!0,type:"module"},a),(a=aa.get(p))&&Zh(r,a),g=s.createElement("script"),ln(g),Un(g,"link",r),s.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},d.set(p,g))}}function m2(r,a,s,d){var p=(p=ne.current)?ld(p):null;if(!p)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=Fo(s.href),s=Ma(p).hoistableStyles,d=s.get(a),d||(d={type:"style",instance:null,count:0,state:null},s.set(a,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){r=Fo(s.href);var g=Ma(p).hoistableStyles,C=g.get(r);if(C||(p=p.ownerDocument||p,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(r,C),(g=p.querySelector(oc(r)))&&!g._p&&(C.instance=g,C.state.loading=5),aa.has(r)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},aa.set(r,s),g||$x(p,r,s,C.state))),a&&d===null)throw Error(i(528,""));return C}if(a&&d!==null)throw Error(i(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=$o(s),s=Ma(p).hoistableScripts,d=s.get(a),d||(d={type:"script",instance:null,count:0,state:null},s.set(a,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function Fo(r){return'href="'+On(r)+'"'}function oc(r){return'link[rel="stylesheet"]['+r+"]"}function p2(r){return v({},r,{"data-precedence":r.precedence,precedence:null})}function $x(r,a,s,d){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?d.loading=1:(a=r.createElement("link"),d.preload=a,a.addEventListener("load",function(){return d.loading|=1}),a.addEventListener("error",function(){return d.loading|=2}),Un(a,"link",s),ln(a),r.head.appendChild(a))}function $o(r){return'[src="'+On(r)+'"]'}function uc(r){return"script[async]"+r}function g2(r,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var d=r.querySelector('style[data-href~="'+On(s.href)+'"]');if(d)return a.instance=d,ln(d),d;var p=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return d=(r.ownerDocument||r).createElement("style"),ln(d),Un(d,"style",p),sd(d,s.precedence,r),a.instance=d;case"stylesheet":p=Fo(s.href);var g=r.querySelector(oc(p));if(g)return a.state.loading|=4,a.instance=g,ln(g),g;d=p2(s),(p=aa.get(p))&&Qh(d,p),g=(r.ownerDocument||r).createElement("link"),ln(g);var C=g;return C._p=new Promise(function(M,P){C.onload=M,C.onerror=P}),Un(g,"link",d),a.state.loading|=4,sd(g,s.precedence,r),a.instance=g;case"script":return g=$o(s.src),(p=r.querySelector(uc(g)))?(a.instance=p,ln(p),p):(d=s,(p=aa.get(g))&&(d=v({},s),Zh(d,p)),r=r.ownerDocument||r,p=r.createElement("script"),ln(p),Un(p,"link",d),r.head.appendChild(p),a.instance=p);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(d=a.instance,a.state.loading|=4,sd(d,s.precedence,r));return a.instance}function sd(r,a,s){for(var d=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=d.length?d[d.length-1]:null,g=p,C=0;C<d.length;C++){var M=d[C];if(M.dataset.precedence===a)g=M;else if(g!==p)break}g?g.parentNode.insertBefore(r,g.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(r,a.firstChild))}function Qh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Zh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var od=null;function y2(r,a,s){if(od===null){var d=new Map,p=od=new Map;p.set(s,d)}else p=od,d=p.get(s),d||(d=new Map,p.set(s,d));if(d.has(r))return d;for(d.set(r,null),s=s.getElementsByTagName(r),p=0;p<s.length;p++){var g=s[p];if(!(g[Fr]||g[An]||r==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var C=g.getAttribute(a)||"";C=r+C;var M=d.get(C);M?M.push(g):d.set(C,[g])}}return d}function v2(r,a,s){r=r.ownerDocument||r,r.head.insertBefore(s,a==="title"?r.querySelector("head > title"):null)}function Gx(r,a,s){if(s===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function x2(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function Px(r,a,s,d){if(s.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var p=Fo(d.href),g=a.querySelector(oc(p));if(g){a=g._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=ud.bind(r),a.then(r,r)),s.state.loading|=4,s.instance=g,ln(g);return}g=a.ownerDocument||a,d=p2(d),(p=aa.get(p))&&Qh(d,p),g=g.createElement("link"),ln(g);var C=g;C._p=new Promise(function(M,P){C.onload=M,C.onerror=P}),Un(g,"link",d),s.instance=g}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(r.count++,s=ud.bind(r),a.addEventListener("load",s),a.addEventListener("error",s))}}var Jh=0;function Vx(r,a){return r.stylesheets&&r.count===0&&dd(r,r.stylesheets),0<r.count||0<r.imgCount?function(s){var d=setTimeout(function(){if(r.stylesheets&&dd(r,r.stylesheets),r.unsuspend){var g=r.unsuspend;r.unsuspend=null,g()}},6e4+a);0<r.imgBytes&&Jh===0&&(Jh=62500*Tx());var p=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&dd(r,r.stylesheets),r.unsuspend)){var g=r.unsuspend;r.unsuspend=null,g()}},(r.imgBytes>Jh?50:800)+a);return r.unsuspend=s,function(){r.unsuspend=null,clearTimeout(d),clearTimeout(p)}}:null}function ud(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)dd(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var cd=null;function dd(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,cd=new Map,a.forEach(Yx,r),cd=null,ud.call(r))}function Yx(r,a){if(!(a.state.loading&4)){var s=cd.get(r);if(s)var d=s.get(null);else{s=new Map,cd.set(r,s);for(var p=r.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<p.length;g++){var C=p[g];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(s.set(C.dataset.precedence,C),d=C)}d&&s.set(null,d)}p=a.instance,C=p.getAttribute("data-precedence"),g=s.get(C)||d,g===d&&s.set(null,p),s.set(C,p),this.count++,d=ud.bind(this),p.addEventListener("load",d),p.addEventListener("error",d),g?g.parentNode.insertBefore(p,g.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(p,r.firstChild)),a.state.loading|=4}}var cc={$$typeof:F,Provider:null,Consumer:null,_currentValue:De,_currentValue2:De,_threadCount:0};function Wx(r,a,s,d,p,g,C,M,P){this.tag=1,this.containerInfo=r,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=Na(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Na(0),this.hiddenUpdates=Na(null),this.identifierPrefix=d,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function b2(r,a,s,d,p,g,C,M,P,ae,me,ye){return r=new Wx(r,a,s,C,P,ae,me,ye,M),a=1,g===!0&&(a|=24),g=Yn(3,null,null,a),r.current=g,g.stateNode=r,a=yl(),a.refCount++,r.pooledCache=a,a.refCount++,g.memoizedState={element:d,isDehydrated:s,cache:a},Se(g),r}function w2(r){return r?(r=dl,r):dl}function k2(r,a,s,d,p,g){p=w2(p),d.context===null?d.context=p:d.pendingContext=p,d=ze(a),d.payload={element:s},g=g===void 0?null:g,g!==null&&(d.callback=g),s=_e(r,d,a),s!==null&&(vr(s,r,a),Rt(s,r,a))}function S2(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var s=r.retryLane;r.retryLane=s!==0&&s<a?s:a}}function em(r,a){S2(r,a),(r=r.alternate)&&S2(r,a)}function C2(r){if(r.tag===13||r.tag===31){var a=bi(r,67108864);a!==null&&vr(a,r,67108864),em(r,67108864)}}function j2(r){if(r.tag===13||r.tag===31){var a=zr();a=ii(a);var s=bi(r,a);s!==null&&vr(s,r,a),em(r,a)}}var fd=!0;function Xx(r,a,s,d){var p=ee.T;ee.T=null;var g=pe.p;try{pe.p=2,tm(r,a,s,d)}finally{pe.p=g,ee.T=p}}function Kx(r,a,s,d){var p=ee.T;ee.T=null;var g=pe.p;try{pe.p=8,tm(r,a,s,d)}finally{pe.p=g,ee.T=p}}function tm(r,a,s,d){if(fd){var p=nm(d);if(p===null)Hh(r,a,d,hd,s),A2(r,d);else if(Zx(p,r,a,s,d))d.stopPropagation();else if(A2(r,d),a&4&&-1<Qx.indexOf(r)){for(;p!==null;){var g=Ki(p);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var C=ai(g.pendingLanes);if(C!==0){var M=g;for(M.pendingLanes|=2,M.entangledLanes|=2;C;){var P=1<<31-Dt(C);M.entanglements[1]|=P,C&=~P}Wa(g),(Nt&6)===0&&(X0=Vt()+500,ac(0))}}break;case 31:case 13:M=bi(g,2),M!==null&&vr(M,g,2),Q0(),em(g,2)}if(g=nm(d),g===null&&Hh(r,a,d,hd,s),g===p)break;p=g}p!==null&&d.stopPropagation()}else Hh(r,a,d,null,s)}}function nm(r){return r=Vr(r),rm(r)}var hd=null;function rm(r){if(hd=null,r=da(r),r!==null){var a=o(r);if(a===null)r=null;else{var s=a.tag;if(s===13){if(r=c(a),r!==null)return r;r=null}else if(s===31){if(r=f(a),r!==null)return r;r=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return hd=r,null}function T2(r){switch(r){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(Ur()){case he:return 2;case we:return 8;case Ue:case et:return 32;case vt:return 268435456;default:return 32}default:return 32}}var am=!1,Dl=null,Rl=null,Ol=null,dc=new Map,fc=new Map,_l=[],Qx="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 A2(r,a){switch(r){case"focusin":case"focusout":Dl=null;break;case"dragenter":case"dragleave":Rl=null;break;case"mouseover":case"mouseout":Ol=null;break;case"pointerover":case"pointerout":dc.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":fc.delete(a.pointerId)}}function hc(r,a,s,d,p,g){return r===null||r.nativeEvent!==g?(r={blockedOn:a,domEventName:s,eventSystemFlags:d,nativeEvent:g,targetContainers:[p]},a!==null&&(a=Ki(a),a!==null&&C2(a)),r):(r.eventSystemFlags|=d,a=r.targetContainers,p!==null&&a.indexOf(p)===-1&&a.push(p),r)}function Zx(r,a,s,d,p){switch(a){case"focusin":return Dl=hc(Dl,r,a,s,d,p),!0;case"dragenter":return Rl=hc(Rl,r,a,s,d,p),!0;case"mouseover":return Ol=hc(Ol,r,a,s,d,p),!0;case"pointerover":var g=p.pointerId;return dc.set(g,hc(dc.get(g)||null,r,a,s,d,p)),!0;case"gotpointercapture":return g=p.pointerId,fc.set(g,hc(fc.get(g)||null,r,a,s,d,p)),!0}return!1}function E2(r){var a=da(r.target);if(a!==null){var s=o(a);if(s!==null){if(a=s.tag,a===13){if(a=c(s),a!==null){r.blockedOn=a,Kc(r.priority,function(){j2(s)});return}}else if(a===31){if(a=f(s),a!==null){r.blockedOn=a,Kc(r.priority,function(){j2(s)});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){r.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}r.blockedOn=null}function md(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var s=nm(r.nativeEvent);if(s===null){s=r.nativeEvent;var d=new s.constructor(s.type,s);ir=d,s.target.dispatchEvent(d),ir=null}else return a=Ki(s),a!==null&&C2(a),r.blockedOn=s,!1;a.shift()}return!0}function N2(r,a,s){md(r)&&s.delete(a)}function Jx(){am=!1,Dl!==null&&md(Dl)&&(Dl=null),Rl!==null&&md(Rl)&&(Rl=null),Ol!==null&&md(Ol)&&(Ol=null),dc.forEach(N2),fc.forEach(N2)}function pd(r,a){r.blockedOn===a&&(r.blockedOn=null,am||(am=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Jx)))}var gd=null;function M2(r){gd!==r&&(gd=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){gd===r&&(gd=null);for(var a=0;a<r.length;a+=3){var s=r[a],d=r[a+1],p=r[a+2];if(typeof d!="function"){if(rm(d||s)===null)continue;break}var g=Ki(s);g!==null&&(r.splice(a,3),a-=3,nh(g,{pending:!0,data:p,method:s.method,action:d},d,p))}}))}function Go(r){function a(P){return pd(P,r)}Dl!==null&&pd(Dl,r),Rl!==null&&pd(Rl,r),Ol!==null&&pd(Ol,r),dc.forEach(a),fc.forEach(a);for(var s=0;s<_l.length;s++){var d=_l[s];d.blockedOn===r&&(d.blockedOn=null)}for(;0<_l.length&&(s=_l[0],s.blockedOn===null);)E2(s),s.blockedOn===null&&_l.shift();if(s=(r.ownerDocument||r).$$reactFormReplay,s!=null)for(d=0;d<s.length;d+=3){var p=s[d],g=s[d+1],C=p[Rn]||null;if(typeof g=="function")C||M2(s);else if(C){var M=null;if(g&&g.hasAttribute("formAction")){if(p=g,C=g[Rn]||null)M=C.formAction;else if(rm(p)!==null)continue}else M=C.action;typeof M=="function"?s[d+1]=M:(s.splice(d,3),d-=3),M2(s)}}}function z2(){function r(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(C){return p=C})},focusReset:"manual",scroll:"manual"})}function a(){p!==null&&(p(),p=null),d||setTimeout(s,20)}function s(){if(!d&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,p=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(s,100),function(){d=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),p!==null&&(p(),p=null)}}}function im(r){this._internalRoot=r}yd.prototype.render=im.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var s=a.current,d=zr();k2(s,d,r,a,null,null)},yd.prototype.unmount=im.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;k2(r.current,2,null,r,null,null),Q0(),a[Yi]=null}};function yd(r){this._internalRoot=r}yd.prototype.unstable_scheduleHydration=function(r){if(r){var a=mu();r={blockedOn:null,target:r,priority:a};for(var s=0;s<_l.length&&a!==0&&a<_l[s].priority;s++);_l.splice(s,0,r),s===0&&E2(r)}};var D2=t.version;if(D2!=="19.2.7")throw Error(i(527,D2,"19.2.7"));pe.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=m(a),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var eb={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:ee,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vd.isDisabled&&vd.supportsFiber)try{zn=vd.inject(eb),rn=vd}catch{}}return pc.createRoot=function(r,a){if(!l(r))throw Error(i(299));var s=!1,d="",p=q4,g=U4,C=H4;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(C=a.onRecoverableError)),a=b2(r,1,!1,null,null,s,d,null,p,g,C,z2),r[Yi]=a.current,Uh(r),new im(a)},pc.hydrateRoot=function(r,a,s){if(!l(r))throw Error(i(299));var d=!1,p="",g=q4,C=U4,M=H4,P=null;return s!=null&&(s.unstable_strictMode===!0&&(d=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onUncaughtError!==void 0&&(g=s.onUncaughtError),s.onCaughtError!==void 0&&(C=s.onCaughtError),s.onRecoverableError!==void 0&&(M=s.onRecoverableError),s.formState!==void 0&&(P=s.formState)),a=b2(r,1,!0,a,s??null,d,p,P,g,C,M,z2),a.context=w2(null),s=a.current,d=zr(),d=ii(d),p=ze(d),p.callback=null,_e(s,p,d),s=d,a.current.lanes=s,Bt(a,s),Wa(a),r[Yi]=a.current,Uh(r),new yd(a)},pc.version="19.2.7",pc}var $2;function mb(){if($2)return om.exports;$2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),om.exports=hb(),om.exports}var pb=mb();function G2(e){const t=[],n=String(e||"");let i=n.indexOf(","),l=0,o=!1;for(;!o;){i===-1&&(i=n.length,o=!0);const c=n.slice(l,i).trim();(c||!o)&&t.push(c),l=i+1,i=n.indexOf(",",l)}return t}function gb(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const yb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xb={};function P2(e,t){return(xb.jsx?vb:yb).test(e)}const bb=/[ \t\n\f\r]/g;function wb(e){return typeof e=="object"?e.type==="text"?V2(e.value):!1:V2(e)}function V2(e){return e.replace(bb,"")===""}class Gc{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Gc.prototype.normal={};Gc.prototype.property={};Gc.prototype.space=void 0;function E5(e,t){const n={},i={};for(const l of e)Object.assign(n,l.property),Object.assign(i,l.normal);return new Gc(n,i,t)}function qc(e){return e.toLowerCase()}class kr{constructor(t,n){this.attribute=n,this.property=t}}kr.prototype.attribute="";kr.prototype.booleanish=!1;kr.prototype.boolean=!1;kr.prototype.commaOrSpaceSeparated=!1;kr.prototype.commaSeparated=!1;kr.prototype.defined=!1;kr.prototype.mustUseProperty=!1;kr.prototype.number=!1;kr.prototype.overloadedBoolean=!1;kr.prototype.property="";kr.prototype.spaceSeparated=!1;kr.prototype.space=void 0;let kb=0;const nt=Vs(),wn=Vs(),cp=Vs(),Te=Vs(),Ft=Vs(),Hs=Vs(),Dr=Vs();function Vs(){return 2**++kb}const dp=Object.freeze(Object.defineProperty({__proto__:null,boolean:nt,booleanish:wn,commaOrSpaceSeparated:Dr,commaSeparated:Hs,number:Te,overloadedBoolean:cp,spaceSeparated:Ft},Symbol.toStringTag,{value:"Module"})),fm=Object.keys(dp);class t1 extends kr{constructor(t,n,i,l){let o=-1;if(super(t,n),Y2(this,"space",l),typeof i=="number")for(;++o<fm.length;){const c=fm[o];Y2(this,fm[o],(i&dp[c])===dp[c])}}}t1.prototype.defined=!0;function Y2(e,t,n){n&&(e[t]=n)}function au(e){const t={},n={};for(const[i,l]of Object.entries(e.properties)){const o=new t1(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[qc(i)]=i,n[qc(o.attribute)]=i}return new Gc(t,n,e.space)}const N5=au({properties:{ariaActiveDescendant:null,ariaAtomic:wn,ariaAutoComplete:null,ariaBusy:wn,ariaChecked:wn,ariaColCount:Te,ariaColIndex:Te,ariaColSpan:Te,ariaControls:Ft,ariaCurrent:null,ariaDescribedBy:Ft,ariaDetails:null,ariaDisabled:wn,ariaDropEffect:Ft,ariaErrorMessage:null,ariaExpanded:wn,ariaFlowTo:Ft,ariaGrabbed:wn,ariaHasPopup:null,ariaHidden:wn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ft,ariaLevel:Te,ariaLive:null,ariaModal:wn,ariaMultiLine:wn,ariaMultiSelectable:wn,ariaOrientation:null,ariaOwns:Ft,ariaPlaceholder:null,ariaPosInSet:Te,ariaPressed:wn,ariaReadOnly:wn,ariaRelevant:null,ariaRequired:wn,ariaRoleDescription:Ft,ariaRowCount:Te,ariaRowIndex:Te,ariaRowSpan:Te,ariaSelected:wn,ariaSetSize:Te,ariaSort:null,ariaValueMax:Te,ariaValueMin:Te,ariaValueNow:Te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function M5(e,t){return t in e?e[t]:t}function z5(e,t){return M5(e,t.toLowerCase())}const Sb=au({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hs,acceptCharset:Ft,accessKey:Ft,action:null,allow:null,allowFullScreen:nt,allowPaymentRequest:nt,allowUserMedia:nt,alpha:nt,alt:null,as:null,async:nt,autoCapitalize:null,autoComplete:Ft,autoFocus:nt,autoPlay:nt,blocking:Ft,capture:null,charSet:null,checked:nt,cite:null,className:Ft,closedBy:null,colorSpace:null,cols:Te,colSpan:Te,command:null,commandFor:null,content:null,contentEditable:wn,controls:nt,controlsList:Ft,coords:Te|Hs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:nt,defer:nt,dir:null,dirName:null,disabled:nt,download:cp,draggable:wn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:nt,formTarget:null,headers:Ft,height:Te,hidden:cp,high:Te,href:null,hrefLang:null,htmlFor:Ft,httpEquiv:Ft,id:null,imageSizes:null,imageSrcSet:null,inert:nt,inputMode:null,integrity:null,is:null,isMap:nt,itemId:null,itemProp:Ft,itemRef:Ft,itemScope:nt,itemType:Ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:nt,low:Te,manifest:null,max:null,maxLength:Te,media:null,method:null,min:null,minLength:Te,multiple:nt,muted:nt,name:null,nonce:null,noModule:nt,noValidate:nt,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:nt,optimum:Te,pattern:null,ping:Ft,placeholder:null,playsInline:nt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:nt,referrerPolicy:null,rel:Ft,required:nt,reversed:nt,rows:Te,rowSpan:Te,sandbox:Ft,scope:null,scoped:nt,seamless:nt,selected:nt,shadowRootClonable:nt,shadowRootCustomElementRegistry:nt,shadowRootDelegatesFocus:nt,shadowRootMode:null,shadowRootSerializable:nt,shape:null,size:Te,sizes:null,slot:null,span:Te,spellCheck:wn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Te,step:null,style:null,tabIndex:Te,target:null,title:null,translate:null,type:null,typeMustMatch:nt,useMap:null,value:wn,width:Te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ft,axis:null,background:null,bgColor:null,border:Te,borderColor:null,bottomMargin:Te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:nt,declare:nt,event:null,face:null,frame:null,frameBorder:null,hSpace:Te,leftMargin:Te,link:null,longDesc:null,lowSrc:null,marginHeight:Te,marginWidth:Te,noResize:nt,noHref:nt,noShade:nt,noWrap:nt,object:null,profile:null,prompt:null,rev:null,rightMargin:Te,rules:null,scheme:null,scrolling:wn,standby:null,summary:null,text:null,topMargin:Te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Te,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:nt,disablePictureInPicture:nt,disableRemotePlayback:nt,exportParts:Hs,part:Ft,prefix:null,property:null,results:Te,security:null,unselectable:null},space:"html",transform:z5}),Cb=au({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:Dr,accentHeight:Te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Te,amplitude:Te,arabicForm:null,ascent:Te,attributeName:null,attributeType:null,azimuth:Te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Te,by:null,calcMode:null,capHeight:Te,className:Ft,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:Te,diffuseConstant:Te,direction:null,display:null,dur:null,divisor:Te,dominantBaseline:null,download:nt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te,enableBackground:null,end:null,event:null,exponent:Te,externalResourcesRequired:null,fill:null,fillOpacity:Te,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:Hs,g2:Hs,glyphName:Hs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Te,horizOriginX:Te,horizOriginY:Te,id:null,ideographic:Te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Te,k:Te,k1:Te,k2:Te,k3:Te,k4:Te,kernelMatrix:Dr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Te,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:Te,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:Te,overlineThickness:Te,paintOrder:null,panose1:null,path:null,pathLength:Te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Te,pointsAtY:Te,pointsAtZ:Te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Dr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Dr,rev:Dr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Dr,requiredFeatures:Dr,requiredFonts:Dr,requiredFormats:Dr,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:Te,specularExponent:Te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Te,strikethroughThickness:Te,string:null,stroke:null,strokeDashArray:Dr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Te,strokeOpacity:Te,strokeWidth:null,style:null,surfaceScale:Te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Dr,tabIndex:Te,tableValues:null,target:null,targetX:Te,targetY:Te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Dr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Te,underlineThickness:Te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Te,values:null,vAlphabetic:Te,vMathematical:Te,vectorEffect:null,vHanging:Te,vIdeographic:Te,version:null,vertAdvY:Te,vertOriginX:Te,vertOriginY:Te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:M5}),D5=au({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),R5=au({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:z5}),O5=au({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),jb={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"},Tb=/[A-Z]/g,W2=/-[a-z]/g,Ab=/^data[-\w.:]+$/i;function _5(e,t){const n=qc(t);let i=t,l=kr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ab.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(W2,Nb);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!W2.test(o)){let c=o.replace(Tb,Eb);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=t1}return new l(i,t)}function Eb(e){return"-"+e.toLowerCase()}function Nb(e){return e.charAt(1).toUpperCase()}const B5=E5([N5,Sb,D5,R5,O5],"html"),uf=E5([N5,Cb,D5,R5,O5],"svg");function X2(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Mb(e){return e.join(" ").trim()}var Po={},hm,K2;function zb(){if(K2)return hm;K2=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
|
|
51
|
-
`,m="/",y="*",v="",k="comment",w="declaration";function T(q,R){if(typeof q!="string")throw new TypeError("First argument must be a string");if(!q)return[];R=R||{};var B=1,F=1;function Y(Ce){var ve=Ce.match(t);ve&&(B+=ve.length);var ee=Ce.lastIndexOf(h);F=~ee?Ce.length-ee:F+Ce.length}function te(){var Ce={line:B,column:F};return function(ve){return ve.position=new _(Ce),J(),ve}}function _(Ce){this.start=Ce,this.end={line:B,column:F},this.source=R.source}_.prototype.content=q;function K(Ce){var ve=new Error(R.source+":"+B+":"+F+": "+Ce);if(ve.reason=Ce,ve.filename=R.source,ve.line=B,ve.column=F,ve.source=q,!R.silent)throw ve}function le(Ce){var ve=Ce.exec(q);if(ve){var ee=ve[0];return Y(ee),q=q.slice(ee.length),ve}}function J(){le(n)}function G(Ce){var ve;for(Ce=Ce||[];ve=ce();)ve!==!1&&Ce.push(ve);return Ce}function ce(){var Ce=te();if(!(m!=q.charAt(0)||y!=q.charAt(1))){for(var ve=2;v!=q.charAt(ve)&&(y!=q.charAt(ve)||m!=q.charAt(ve+1));)++ve;if(ve+=2,v===q.charAt(ve-1))return K("End of comment missing");var ee=q.slice(2,ve-2);return F+=2,Y(ee),q=q.slice(ve),F+=2,Ce({type:k,comment:ee})}}function fe(){var Ce=te(),ve=le(i);if(ve){if(ce(),!le(l))return K("property missing ':'");var ee=le(o),pe=Ce({type:w,property:E(ve[0].replace(e,v)),value:ee?E(ee[0].replace(e,v)):v});return le(c),pe}}function Be(){var Ce=[];G(Ce);for(var ve;ve=fe();)ve!==!1&&(Ce.push(ve),G(Ce));return Ce}return J(),Be()}function E(q){return q?q.replace(f,v):v}return hm=T,hm}var Q2;function Db(){if(Q2)return Po;Q2=1;var e=Po&&Po.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Po,"__esModule",{value:!0}),Po.default=n;const t=e(zb());function n(i,l){let o=null;if(!i||typeof i!="string")return o;const c=(0,t.default)(i),f=typeof l=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:m,value:y}=h;f?l(m,y,h):y&&(o=o||{},o[m]=y)}),o}return Po}var gc={},Z2;function Rb(){if(Z2)return gc;Z2=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,o=function(m){return!m||n.test(m)||e.test(m)},c=function(m,y){return y.toUpperCase()},f=function(m,y){return"".concat(y,"-")},h=function(m,y){return y===void 0&&(y={}),o(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(l,f):m=m.replace(i,f),m.replace(t,c))};return gc.camelCase=h,gc}var yc,J2;function Ob(){if(J2)return yc;J2=1;var e=yc&&yc.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(Db()),n=Rb();function i(l,o){var c={};return!l||typeof l!="string"||(0,t.default)(l,function(f,h){f&&h&&(c[(0,n.camelCase)(f,o)]=h)}),c}return i.default=i,yc=i,yc}var _b=Ob();const Bb=A5(_b),I5=L5("end"),n1=L5("start");function L5(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Ib(e){const t=n1(e),n=I5(e);if(t&&n)return{start:t,end:n}}function Mc(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ey(e.position):"start"in e||"end"in e?ey(e):"line"in e||"column"in e?fp(e):""}function fp(e){return ty(e&&e.line)+":"+ty(e&&e.column)}function ey(e){return fp(e&&e.start)+"-"+fp(e&&e.end)}function ty(e){return e&&typeof e=="number"?e:1}class Pn extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let l="",o={},c=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?l=t:!o.cause&&t&&(c=!0,l=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?o.ruleId=i:(o.source=i.slice(0,h),o.ruleId=i.slice(h+1))}if(!o.place&&o.ancestors&&o.ancestors){const h=o.ancestors[o.ancestors.length-1];h&&(o.place=h.position)}const f=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=f?f.line:void 0,this.name=Mc(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Pn.prototype.file="";Pn.prototype.name="";Pn.prototype.reason="";Pn.prototype.message="";Pn.prototype.stack="";Pn.prototype.column=void 0;Pn.prototype.line=void 0;Pn.prototype.ancestors=void 0;Pn.prototype.cause=void 0;Pn.prototype.fatal=void 0;Pn.prototype.place=void 0;Pn.prototype.ruleId=void 0;Pn.prototype.source=void 0;const r1={}.hasOwnProperty,Lb=new Map,qb=/[A-Z]/g,Ub=new Set(["table","tbody","thead","tfoot","tr"]),Hb=new Set(["td","th"]),q5="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Fb(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Kb(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Xb(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?uf:B5,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=U5(l,e,void 0);return o&&typeof o!="string"?o:l.create(e,l.Fragment,{children:o||void 0},void 0)}function U5(e,t,n){if(t.type==="element")return $b(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Gb(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Vb(e,t,n);if(t.type==="mdxjsEsm")return Pb(e,t);if(t.type==="root")return Yb(e,t,n);if(t.type==="text")return Wb(e,t)}function $b(e,t,n){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=uf,e.schema=l),e.ancestors.push(t);const o=F5(e,t.tagName,!1),c=Qb(e,t);let f=i1(e,t);return Ub.has(t.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!wb(h):!0})),H5(e,c,o,t),a1(c,f),e.ancestors.pop(),e.schema=i,e.create(t,o,c,n)}function Gb(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Uc(e,t.position)}function Pb(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Uc(e,t.position)}function Vb(e,t,n){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=uf,e.schema=l),e.ancestors.push(t);const o=t.name===null?e.Fragment:F5(e,t.name,!0),c=Zb(e,t),f=i1(e,t);return H5(e,c,o,t),a1(c,f),e.ancestors.pop(),e.schema=i,e.create(t,o,c,n)}function Yb(e,t,n){const i={};return a1(i,i1(e,t)),e.create(t,e.Fragment,i,n)}function Wb(e,t){return t.value}function H5(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function a1(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Xb(e,t,n){return i;function i(l,o,c,f){const m=Array.isArray(c.children)?n:t;return f?m(o,c,f):m(o,c)}}function Kb(e,t){return n;function n(i,l,o,c){const f=Array.isArray(o.children),h=n1(i);return t(l,o,c,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function Qb(e,t){const n={};let i,l;for(l in t.properties)if(l!=="children"&&r1.call(t.properties,l)){const o=Jb(e,l,t.properties[l]);if(o){const[c,f]=o;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&Hb.has(t.tagName)?i=f:n[c]=f}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Zb(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const c=o.expression;c.type;const f=c.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else Uc(e,t.position);else{const l=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,o=e.evaluater.evaluateExpression(f.expression)}else Uc(e,t.position);else o=i.value===null?!0:i.value;n[l]=o}return n}function i1(e,t){const n=[];let i=-1;const l=e.passKeys?new Map:Lb;for(;++i<t.children.length;){const o=t.children[i];let c;if(e.passKeys){const h=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(h){const m=l.get(h)||0;c=h+"-"+m,l.set(h,m+1)}}const f=U5(e,o,c);f!==void 0&&n.push(f)}return n}function Jb(e,t,n){const i=_5(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?gb(n):Mb(n)),i.property==="style"){let l=typeof n=="object"?n:e8(e,String(n));return e.stylePropertyNameCase==="css"&&(l=t8(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?jb[i.property]||i.property:i.attribute,n]}}function e8(e,t){try{return Bb(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,l=new Pn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=q5+"#cannot-parse-style-attribute",l}}function F5(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let o=-1,c;for(;++o<l.length;){const f=P2(l[o])?{type:"Identifier",name:l[o]}:{type:"Literal",value:l[o]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(o&&f.type==="Literal"),optional:!1}:f}i=c}else i=P2(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const l=i.value;return r1.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);Uc(e)}function Uc(e,t){const n=new Pn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=q5+"#cannot-handle-mdx-estrees-without-createevaluater",n}function t8(e){const t={};let n;for(n in e)r1.call(e,n)&&(t[n8(n)]=e[n]);return t}function n8(e){let t=e.replace(qb,r8);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function r8(e){return"-"+e.toLowerCase()}const mm={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"]},a8={};function l1(e,t){const n=a8,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return $5(e,i,l)}function $5(e,t,n){if(i8(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ny(e.children,t,n)}return Array.isArray(e)?ny(e,t,n):""}function ny(e,t,n){const i=[];let l=-1;for(;++l<e.length;)i[l]=$5(e[l],t,n);return i.join("")}function i8(e){return!!(e&&typeof e=="object")}const ry=document.createElement("i");function s1(e){const t="&"+e+";";ry.innerHTML=t;const n=ry.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Rr(e,t,n,i){const l=e.length;let o=0,c;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,i.length<1e4)c=Array.from(i),c.unshift(t,n),e.splice(...c);else for(n&&e.splice(t,n);o<i.length;)c=i.slice(o,o+1e4),c.unshift(t,0),e.splice(...c),o+=1e4,t+=1e4}function ia(e,t){return e.length>0?(Rr(e,e.length,0,t),e):t}const ay={}.hasOwnProperty;function G5(e){const t={};let n=-1;for(;++n<e.length;)l8(t,e[n]);return t}function l8(e,t){let n;for(n in t){const l=(ay.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let c;if(o)for(c in o){ay.call(l,c)||(l[c]=[]);const f=o[c];s8(l[c],Array.isArray(f)?f:f?[f]:[])}}}function s8(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Rr(e,0,0,i)}function P5(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ea(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Zn=Kl(/[A-Za-z]/),$n=Kl(/[\dA-Za-z]/),o8=Kl(/[#-'*+\--9=?A-Z^-~]/);function Wd(e){return e!==null&&(e<32||e===127)}const hp=Kl(/\d/),u8=Kl(/[\dA-Fa-f]/),c8=Kl(/[!-/:-@[-`{-~]/);function Ve(e){return e!==null&&e<-2}function $t(e){return e!==null&&(e<0||e===32)}function yt(e){return e===-2||e===-1||e===32}const cf=Kl(new RegExp("\\p{P}|\\p{S}","u")),Fs=Kl(/\s/);function Kl(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function iu(e){const t=[];let n=-1,i=0,l=0;for(;++n<e.length;){const o=e.charCodeAt(n);let c="";if(o===37&&$n(e.charCodeAt(n+1))&&$n(e.charCodeAt(n+2)))l=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const f=e.charCodeAt(n+1);o<56320&&f>56319&&f<57344?(c=String.fromCharCode(o,f),l=1):c="�"}else c=String.fromCharCode(o);c&&(t.push(e.slice(i,n),encodeURIComponent(c)),i=n+l+1,c=""),l&&(n+=l,l=0)}return t.join("")+e.slice(i)}function ht(e,t,n,i){const l=i?i-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(h){return yt(h)?(e.enter(n),f(h)):t(h)}function f(h){return yt(h)&&o++<l?(e.consume(h),f):(e.exit(n),t(h))}}const d8={tokenize:f8};function f8(e){const t=e.attempt(this.parser.constructs.contentInitial,i,l);let n;return t;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ht(e,t,"linePrefix")}function l(f){return e.enter("paragraph"),o(f)}function o(f){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Ve(f)?(e.consume(f),e.exit("chunkText"),o):(e.consume(f),c)}}const h8={tokenize:m8},iy={tokenize:p8};function m8(e){const t=this,n=[];let i=0,l,o,c;return f;function f(F){if(i<n.length){const Y=n[i];return t.containerState=Y[1],e.attempt(Y[0].continuation,h,m)(F)}return m(F)}function h(F){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&B();const Y=t.events.length;let te=Y,_;for(;te--;)if(t.events[te][0]==="exit"&&t.events[te][1].type==="chunkFlow"){_=t.events[te][1].end;break}R(i);let K=Y;for(;K<t.events.length;)t.events[K][1].end={..._},K++;return Rr(t.events,te+1,0,t.events.slice(Y)),t.events.length=K,m(F)}return f(F)}function m(F){if(i===n.length){if(!l)return k(F);if(l.currentConstruct&&l.currentConstruct.concrete)return T(F);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(iy,y,v)(F)}function y(F){return l&&B(),R(i),k(F)}function v(F){return t.parser.lazy[t.now().line]=i!==n.length,c=t.now().offset,T(F)}function k(F){return t.containerState={},e.attempt(iy,w,T)(F)}function w(F){return i++,n.push([t.currentConstruct,t.containerState]),k(F)}function T(F){if(F===null){l&&B(),R(0),e.consume(F);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:o}),E(F)}function E(F){if(F===null){q(e.exit("chunkFlow"),!0),R(0),e.consume(F);return}return Ve(F)?(e.consume(F),q(e.exit("chunkFlow")),i=0,t.interrupt=void 0,f):(e.consume(F),E)}function q(F,Y){const te=t.sliceStream(F);if(Y&&te.push(null),F.previous=o,o&&(o.next=F),o=F,l.defineSkip(F.start),l.write(te),t.parser.lazy[F.start.line]){let _=l.events.length;for(;_--;)if(l.events[_][1].start.offset<c&&(!l.events[_][1].end||l.events[_][1].end.offset>c))return;const K=t.events.length;let le=K,J,G;for(;le--;)if(t.events[le][0]==="exit"&&t.events[le][1].type==="chunkFlow"){if(J){G=t.events[le][1].end;break}J=!0}for(R(i),_=K;_<t.events.length;)t.events[_][1].end={...G},_++;Rr(t.events,le+1,0,t.events.slice(K)),t.events.length=_}}function R(F){let Y=n.length;for(;Y-- >F;){const te=n[Y];t.containerState=te[1],te[0].exit.call(t,e)}n.length=F}function B(){l.write([null]),o=void 0,l=void 0,t.containerState._closeFlow=void 0}}function p8(e,t,n){return ht(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Jo(e){if(e===null||$t(e)||Fs(e))return 1;if(cf(e))return 2}function df(e,t,n){const i=[];let l=-1;for(;++l<e.length;){const o=e[l].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const mp={name:"attention",resolveAll:g8,tokenize:y8};function g8(e,t){let n=-1,i,l,o,c,f,h,m,y;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const v={...e[i][1].end},k={...e[n][1].start};ly(v,-h),ly(k,h),c={type:h>1?"strongSequence":"emphasisSequence",start:v,end:{...e[i][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:k},o={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},l={type:h>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[i][1].end={...c.start},e[n][1].start={...f.end},m=[],e[i][1].end.offset-e[i][1].start.offset&&(m=ia(m,[["enter",e[i][1],t],["exit",e[i][1],t]])),m=ia(m,[["enter",l,t],["enter",c,t],["exit",c,t],["enter",o,t]]),m=ia(m,df(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),m=ia(m,[["exit",o,t],["enter",f,t],["exit",f,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(y=2,m=ia(m,[["enter",e[n][1],t],["exit",e[n][1],t]])):y=0,Rr(e,i-1,n-i+3,m),n=i+m.length-y-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function y8(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,l=Jo(i);let o;return c;function c(h){return o=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===o)return e.consume(h),f;const m=e.exit("attentionSequence"),y=Jo(h),v=!y||y===2&&l||n.includes(h),k=!l||l===2&&y||n.includes(i);return m._open=!!(o===42?v:v&&(l||!k)),m._close=!!(o===42?k:k&&(y||!v)),t(h)}}function ly(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const v8={name:"autolink",tokenize:x8};function x8(e,t,n){let i=0;return l;function l(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(w){return Zn(w)?(e.consume(w),c):w===64?n(w):m(w)}function c(w){return w===43||w===45||w===46||$n(w)?(i=1,f(w)):m(w)}function f(w){return w===58?(e.consume(w),i=0,h):(w===43||w===45||w===46||$n(w))&&i++<32?(e.consume(w),f):(i=0,m(w))}function h(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||Wd(w)?n(w):(e.consume(w),h)}function m(w){return w===64?(e.consume(w),y):o8(w)?(e.consume(w),m):n(w)}function y(w){return $n(w)?v(w):n(w)}function v(w){return w===46?(e.consume(w),i=0,y):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):k(w)}function k(w){if((w===45||$n(w))&&i++<63){const T=w===45?k:v;return e.consume(w),T}return n(w)}}const Pc={partial:!0,tokenize:b8};function b8(e,t,n){return i;function i(o){return yt(o)?ht(e,l,"linePrefix")(o):l(o)}function l(o){return o===null||Ve(o)?t(o):n(o)}}const V5={continuation:{tokenize:k8},exit:S8,name:"blockQuote",tokenize:w8};function w8(e,t,n){const i=this;return l;function l(c){if(c===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),o}return n(c)}function o(c){return yt(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function k8(e,t,n){const i=this;return l;function l(c){return yt(c)?ht(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return e.attempt(V5,t,n)(c)}}function S8(e){e.exit("blockQuote")}const Y5={name:"characterEscape",tokenize:C8};function C8(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),l}function l(o){return c8(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const W5={name:"characterReference",tokenize:j8};function j8(e,t,n){const i=this;let l=0,o,c;return f;function f(v){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(v),e.exit("characterReferenceMarker"),h}function h(v){return v===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(v),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),o=31,c=$n,y(v))}function m(v){return v===88||v===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(v),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,c=u8,y):(e.enter("characterReferenceValue"),o=7,c=hp,y(v))}function y(v){if(v===59&&l){const k=e.exit("characterReferenceValue");return c===$n&&!s1(i.sliceSerialize(k))?n(v):(e.enter("characterReferenceMarker"),e.consume(v),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(v)&&l++<o?(e.consume(v),y):n(v)}}const sy={partial:!0,tokenize:A8},oy={concrete:!0,name:"codeFenced",tokenize:T8};function T8(e,t,n){const i=this,l={partial:!0,tokenize:te};let o=0,c=0,f;return h;function h(_){return m(_)}function m(_){const K=i.events[i.events.length-1];return o=K&&K[1].type==="linePrefix"?K[2].sliceSerialize(K[1],!0).length:0,f=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(_)}function y(_){return _===f?(c++,e.consume(_),y):c<3?n(_):(e.exit("codeFencedFenceSequence"),yt(_)?ht(e,v,"whitespace")(_):v(_))}function v(_){return _===null||Ve(_)?(e.exit("codeFencedFence"),i.interrupt?t(_):e.check(sy,E,Y)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),k(_))}function k(_){return _===null||Ve(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),v(_)):yt(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ht(e,w,"whitespace")(_)):_===96&&_===f?n(_):(e.consume(_),k)}function w(_){return _===null||Ve(_)?v(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(_))}function T(_){return _===null||Ve(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),v(_)):_===96&&_===f?n(_):(e.consume(_),T)}function E(_){return e.attempt(l,Y,q)(_)}function q(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),R}function R(_){return o>0&&yt(_)?ht(e,B,"linePrefix",o+1)(_):B(_)}function B(_){return _===null||Ve(_)?e.check(sy,E,Y)(_):(e.enter("codeFlowValue"),F(_))}function F(_){return _===null||Ve(_)?(e.exit("codeFlowValue"),B(_)):(e.consume(_),F)}function Y(_){return e.exit("codeFenced"),t(_)}function te(_,K,le){let J=0;return G;function G(ve){return _.enter("lineEnding"),_.consume(ve),_.exit("lineEnding"),ce}function ce(ve){return _.enter("codeFencedFence"),yt(ve)?ht(_,fe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ve):fe(ve)}function fe(ve){return ve===f?(_.enter("codeFencedFenceSequence"),Be(ve)):le(ve)}function Be(ve){return ve===f?(J++,_.consume(ve),Be):J>=c?(_.exit("codeFencedFenceSequence"),yt(ve)?ht(_,Ce,"whitespace")(ve):Ce(ve)):le(ve)}function Ce(ve){return ve===null||Ve(ve)?(_.exit("codeFencedFence"),K(ve)):le(ve)}}}function A8(e,t,n){const i=this;return l;function l(c){return c===null?n(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o)}function o(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}const pm={name:"codeIndented",tokenize:N8},E8={partial:!0,tokenize:M8};function N8(e,t,n){const i=this;return l;function l(m){return e.enter("codeIndented"),ht(e,o,"linePrefix",5)(m)}function o(m){const y=i.events[i.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(m):n(m)}function c(m){return m===null?h(m):Ve(m)?e.attempt(E8,c,h)(m):(e.enter("codeFlowValue"),f(m))}function f(m){return m===null||Ve(m)?(e.exit("codeFlowValue"),c(m)):(e.consume(m),f)}function h(m){return e.exit("codeIndented"),t(m)}}function M8(e,t,n){const i=this;return l;function l(c){return i.parser.lazy[i.now().line]?n(c):Ve(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):ht(e,o,"linePrefix",5)(c)}function o(c){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(c):Ve(c)?l(c):n(c)}}const z8={name:"codeText",previous:R8,resolve:D8,tokenize:O8};function D8(e){let t=e.length-4,n=3,i,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)l===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(l=i):(i===t||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function R8(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function O8(e,t,n){let i=0,l,o;return c;function c(v){return e.enter("codeText"),e.enter("codeTextSequence"),f(v)}function f(v){return v===96?(e.consume(v),i++,f):(e.exit("codeTextSequence"),h(v))}function h(v){return v===null?n(v):v===32?(e.enter("space"),e.consume(v),e.exit("space"),h):v===96?(o=e.enter("codeTextSequence"),l=0,y(v)):Ve(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),h):(e.enter("codeTextData"),m(v))}function m(v){return v===null||v===32||v===96||Ve(v)?(e.exit("codeTextData"),h(v)):(e.consume(v),m)}function y(v){return v===96?(e.consume(v),l++,y):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(v)):(o.type="codeTextData",m(v))}}class _8{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const l=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&vc(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),vc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),vc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);vc(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);vc(this.left,n.reverse())}}}function vc(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function X5(e){const t={};let n=-1,i,l,o,c,f,h,m;const y=new _8(e);for(;++n<y.length;){for(;n in t;)n=t[n];if(i=y.get(n),n&&i[1].type==="chunkFlow"&&y.get(n-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,o=0,o<h.length&&h[o][1].type==="lineEndingBlank"&&(o+=2),o<h.length&&h[o][1].type==="content"))for(;++o<h.length&&h[o][1].type!=="content";)h[o][1].type==="chunkText"&&(h[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,B8(y,n)),n=t[n],m=!0);else if(i[1]._container){for(o=n,l=void 0;o--;)if(c=y.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(y.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(i[1].end={...y.get(l)[1].start},f=y.slice(l,n),f.unshift(i),y.splice(l,n-l+1,f))}}return Rr(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function B8(e,t){const n=e.get(t)[1],i=e.get(t)[2];let l=t-1;const o=[];let c=n._tokenizer;c||(c=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,h=[],m={};let y,v,k=-1,w=n,T=0,E=0;const q=[E];for(;w;){for(;e.get(++l)[1]!==w;);o.push(l),w._tokenizer||(y=i.sliceStream(w),w.next||y.push(null),v&&c.defineSkip(w.start),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),v=w,w=w.next}for(w=n;++k<f.length;)f[k][0]==="exit"&&f[k-1][0]==="enter"&&f[k][1].type===f[k-1][1].type&&f[k][1].start.line!==f[k][1].end.line&&(E=k+1,q.push(E),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(c.events=[],w?(w._tokenizer=void 0,w.previous=void 0):q.pop(),k=q.length;k--;){const R=f.slice(q[k],q[k+1]),B=o.pop();h.push([B,B+R.length-1]),e.splice(B,2,R)}for(h.reverse(),k=-1;++k<h.length;)m[T+h[k][0]]=T+h[k][1],T+=h[k][1]-h[k][0]-1;return m}const I8={resolve:q8,tokenize:U8},L8={partial:!0,tokenize:H8};function q8(e){return X5(e),e}function U8(e,t){let n;return i;function i(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(f)}function l(f){return f===null?o(f):Ve(f)?e.check(L8,c,o)(f):(e.consume(f),l)}function o(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function c(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function H8(e,t,n){const i=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ht(e,o,"linePrefix")}function o(c){if(c===null||Ve(c))return n(c);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,n,t)(c)}}function K5(e,t,n,i,l,o,c,f,h){const m=h||Number.POSITIVE_INFINITY;let y=0;return v;function v(R){return R===60?(e.enter(i),e.enter(l),e.enter(o),e.consume(R),e.exit(o),k):R===null||R===32||R===41||Wd(R)?n(R):(e.enter(i),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),E(R))}function k(R){return R===62?(e.enter(o),e.consume(R),e.exit(o),e.exit(l),e.exit(i),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),w(R))}function w(R){return R===62?(e.exit("chunkString"),e.exit(f),k(R)):R===null||R===60||Ve(R)?n(R):(e.consume(R),R===92?T:w)}function T(R){return R===60||R===62||R===92?(e.consume(R),w):w(R)}function E(R){return!y&&(R===null||R===41||$t(R))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(i),t(R)):y<m&&R===40?(e.consume(R),y++,E):R===41?(e.consume(R),y--,E):R===null||R===32||R===40||Wd(R)?n(R):(e.consume(R),R===92?q:E)}function q(R){return R===40||R===41||R===92?(e.consume(R),E):E(R)}}function Q5(e,t,n,i,l,o){const c=this;let f=0,h;return m;function m(w){return e.enter(i),e.enter(l),e.consume(w),e.exit(l),e.enter(o),y}function y(w){return f>999||w===null||w===91||w===93&&!h||w===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?n(w):w===93?(e.exit(o),e.enter(l),e.consume(w),e.exit(l),e.exit(i),t):Ve(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),v(w))}function v(w){return w===null||w===91||w===93||Ve(w)||f++>999?(e.exit("chunkString"),y(w)):(e.consume(w),h||(h=!yt(w)),w===92?k:v)}function k(w){return w===91||w===92||w===93?(e.consume(w),f++,v):v(w)}}function Z5(e,t,n,i,l,o){let c;return f;function f(k){return k===34||k===39||k===40?(e.enter(i),e.enter(l),e.consume(k),e.exit(l),c=k===40?41:k,h):n(k)}function h(k){return k===c?(e.enter(l),e.consume(k),e.exit(l),e.exit(i),t):(e.enter(o),m(k))}function m(k){return k===c?(e.exit(o),h(c)):k===null?n(k):Ve(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),ht(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(k))}function y(k){return k===c||k===null||Ve(k)?(e.exit("chunkString"),m(k)):(e.consume(k),k===92?v:y)}function v(k){return k===c||k===92?(e.consume(k),y):y(k)}}function zc(e,t){let n;return i;function i(l){return Ve(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,i):yt(l)?ht(e,i,n?"linePrefix":"lineSuffix")(l):t(l)}}const F8={name:"definition",tokenize:G8},$8={partial:!0,tokenize:P8};function G8(e,t,n){const i=this;let l;return o;function o(w){return e.enter("definition"),c(w)}function c(w){return Q5.call(i,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function f(w){return l=Ea(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),h):n(w)}function h(w){return $t(w)?zc(e,m)(w):m(w)}function m(w){return K5(e,y,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function y(w){return e.attempt($8,v,v)(w)}function v(w){return yt(w)?ht(e,k,"whitespace")(w):k(w)}function k(w){return w===null||Ve(w)?(e.exit("definition"),i.parser.defined.push(l),t(w)):n(w)}}function P8(e,t,n){return i;function i(f){return $t(f)?zc(e,l)(f):n(f)}function l(f){return Z5(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function o(f){return yt(f)?ht(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Ve(f)?t(f):n(f)}}const V8={name:"hardBreakEscape",tokenize:Y8};function Y8(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),l}function l(o){return Ve(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const W8={name:"headingAtx",resolve:X8,tokenize:K8};function X8(e,t){let n=e.length-2,i=3,l,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Rr(e,i,n-i+1,[["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t]])),e}function K8(e,t,n){let i=0;return l;function l(y){return e.enter("atxHeading"),o(y)}function o(y){return e.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&i++<6?(e.consume(y),c):y===null||$t(y)?(e.exit("atxHeadingSequence"),f(y)):n(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),h(y)):y===null||Ve(y)?(e.exit("atxHeading"),t(y)):yt(y)?ht(e,f,"whitespace")(y):(e.enter("atxHeadingText"),m(y))}function h(y){return y===35?(e.consume(y),h):(e.exit("atxHeadingSequence"),f(y))}function m(y){return y===null||y===35||$t(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),m)}}const Q8=["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"],uy=["pre","script","style","textarea"],Z8={concrete:!0,name:"htmlFlow",resolveTo:t9,tokenize:n9},J8={partial:!0,tokenize:a9},e9={partial:!0,tokenize:r9};function t9(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function n9(e,t,n){const i=this;let l,o,c,f,h;return m;function m(z){return y(z)}function y(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),v}function v(z){return z===33?(e.consume(z),k):z===47?(e.consume(z),o=!0,E):z===63?(e.consume(z),l=3,i.interrupt?t:U):Zn(z)?(e.consume(z),c=String.fromCharCode(z),q):n(z)}function k(z){return z===45?(e.consume(z),l=2,w):z===91?(e.consume(z),l=5,f=0,T):Zn(z)?(e.consume(z),l=4,i.interrupt?t:U):n(z)}function w(z){return z===45?(e.consume(z),i.interrupt?t:U):n(z)}function T(z){const de="CDATA[";return z===de.charCodeAt(f++)?(e.consume(z),f===de.length?i.interrupt?t:fe:T):n(z)}function E(z){return Zn(z)?(e.consume(z),c=String.fromCharCode(z),q):n(z)}function q(z){if(z===null||z===47||z===62||$t(z)){const de=z===47,Re=c.toLowerCase();return!de&&!o&&uy.includes(Re)?(l=1,i.interrupt?t(z):fe(z)):Q8.includes(c.toLowerCase())?(l=6,de?(e.consume(z),R):i.interrupt?t(z):fe(z)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(z):o?B(z):F(z))}return z===45||$n(z)?(e.consume(z),c+=String.fromCharCode(z),q):n(z)}function R(z){return z===62?(e.consume(z),i.interrupt?t:fe):n(z)}function B(z){return yt(z)?(e.consume(z),B):G(z)}function F(z){return z===47?(e.consume(z),G):z===58||z===95||Zn(z)?(e.consume(z),Y):yt(z)?(e.consume(z),F):G(z)}function Y(z){return z===45||z===46||z===58||z===95||$n(z)?(e.consume(z),Y):te(z)}function te(z){return z===61?(e.consume(z),_):yt(z)?(e.consume(z),te):F(z)}function _(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),h=z,K):yt(z)?(e.consume(z),_):le(z)}function K(z){return z===h?(e.consume(z),h=null,J):z===null||Ve(z)?n(z):(e.consume(z),K)}function le(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||$t(z)?te(z):(e.consume(z),le)}function J(z){return z===47||z===62||yt(z)?F(z):n(z)}function G(z){return z===62?(e.consume(z),ce):n(z)}function ce(z){return z===null||Ve(z)?fe(z):yt(z)?(e.consume(z),ce):n(z)}function fe(z){return z===45&&l===2?(e.consume(z),ee):z===60&&l===1?(e.consume(z),pe):z===62&&l===4?(e.consume(z),O):z===63&&l===3?(e.consume(z),U):z===93&&l===5?(e.consume(z),Ye):Ve(z)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(J8,Q,Be)(z)):z===null||Ve(z)?(e.exit("htmlFlowData"),Be(z)):(e.consume(z),fe)}function Be(z){return e.check(e9,Ce,Q)(z)}function Ce(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),ve}function ve(z){return z===null||Ve(z)?Be(z):(e.enter("htmlFlowData"),fe(z))}function ee(z){return z===45?(e.consume(z),U):fe(z)}function pe(z){return z===47?(e.consume(z),c="",De):fe(z)}function De(z){if(z===62){const de=c.toLowerCase();return uy.includes(de)?(e.consume(z),O):fe(z)}return Zn(z)&&c.length<8?(e.consume(z),c+=String.fromCharCode(z),De):fe(z)}function Ye(z){return z===93?(e.consume(z),U):fe(z)}function U(z){return z===62?(e.consume(z),O):z===45&&l===2?(e.consume(z),U):fe(z)}function O(z){return z===null||Ve(z)?(e.exit("htmlFlowData"),Q(z)):(e.consume(z),O)}function Q(z){return e.exit("htmlFlow"),t(z)}}function r9(e,t,n){const i=this;return l;function l(c){return Ve(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):n(c)}function o(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function a9(e,t,n){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(Pc,t,n)}}const i9={name:"htmlText",tokenize:l9};function l9(e,t,n){const i=this;let l,o,c;return f;function f(U){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(U),h}function h(U){return U===33?(e.consume(U),m):U===47?(e.consume(U),te):U===63?(e.consume(U),F):Zn(U)?(e.consume(U),le):n(U)}function m(U){return U===45?(e.consume(U),y):U===91?(e.consume(U),o=0,T):Zn(U)?(e.consume(U),B):n(U)}function y(U){return U===45?(e.consume(U),w):n(U)}function v(U){return U===null?n(U):U===45?(e.consume(U),k):Ve(U)?(c=v,pe(U)):(e.consume(U),v)}function k(U){return U===45?(e.consume(U),w):v(U)}function w(U){return U===62?ee(U):U===45?k(U):v(U)}function T(U){const O="CDATA[";return U===O.charCodeAt(o++)?(e.consume(U),o===O.length?E:T):n(U)}function E(U){return U===null?n(U):U===93?(e.consume(U),q):Ve(U)?(c=E,pe(U)):(e.consume(U),E)}function q(U){return U===93?(e.consume(U),R):E(U)}function R(U){return U===62?ee(U):U===93?(e.consume(U),R):E(U)}function B(U){return U===null||U===62?ee(U):Ve(U)?(c=B,pe(U)):(e.consume(U),B)}function F(U){return U===null?n(U):U===63?(e.consume(U),Y):Ve(U)?(c=F,pe(U)):(e.consume(U),F)}function Y(U){return U===62?ee(U):F(U)}function te(U){return Zn(U)?(e.consume(U),_):n(U)}function _(U){return U===45||$n(U)?(e.consume(U),_):K(U)}function K(U){return Ve(U)?(c=K,pe(U)):yt(U)?(e.consume(U),K):ee(U)}function le(U){return U===45||$n(U)?(e.consume(U),le):U===47||U===62||$t(U)?J(U):n(U)}function J(U){return U===47?(e.consume(U),ee):U===58||U===95||Zn(U)?(e.consume(U),G):Ve(U)?(c=J,pe(U)):yt(U)?(e.consume(U),J):ee(U)}function G(U){return U===45||U===46||U===58||U===95||$n(U)?(e.consume(U),G):ce(U)}function ce(U){return U===61?(e.consume(U),fe):Ve(U)?(c=ce,pe(U)):yt(U)?(e.consume(U),ce):J(U)}function fe(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(e.consume(U),l=U,Be):Ve(U)?(c=fe,pe(U)):yt(U)?(e.consume(U),fe):(e.consume(U),Ce)}function Be(U){return U===l?(e.consume(U),l=void 0,ve):U===null?n(U):Ve(U)?(c=Be,pe(U)):(e.consume(U),Be)}function Ce(U){return U===null||U===34||U===39||U===60||U===61||U===96?n(U):U===47||U===62||$t(U)?J(U):(e.consume(U),Ce)}function ve(U){return U===47||U===62||$t(U)?J(U):n(U)}function ee(U){return U===62?(e.consume(U),e.exit("htmlTextData"),e.exit("htmlText"),t):n(U)}function pe(U){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),De}function De(U){return yt(U)?ht(e,Ye,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):Ye(U)}function Ye(U){return e.enter("htmlTextData"),c(U)}}const o1={name:"labelEnd",resolveAll:c9,resolveTo:d9,tokenize:f9},s9={tokenize:h9},o9={tokenize:m9},u9={tokenize:p9};function c9(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",t+=l}}return e.length!==n.length&&Rr(e,0,e.length,n),e}function d9(e,t){let n=e.length,i=0,l,o,c,f;for(;n--;)if(l=e[n][1],o){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(o=n,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(c=n);const h={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[o][1].start},end:{...e[c][1].end}},y={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",h,t],["enter",m,t]],f=ia(f,e.slice(o+1,o+i+3)),f=ia(f,[["enter",y,t]]),f=ia(f,df(t.parser.constructs.insideSpan.null,e.slice(o+i+4,c-3),t)),f=ia(f,[["exit",y,t],e[c-2],e[c-1],["exit",m,t]]),f=ia(f,e.slice(c+1)),f=ia(f,[["exit",h,t]]),Rr(e,o,e.length,f),e}function f9(e,t,n){const i=this;let l=i.events.length,o,c;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){o=i.events[l][1];break}return f;function f(k){return o?o._inactive?v(k):(c=i.parser.defined.includes(Ea(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(k),e.exit("labelMarker"),e.exit("labelEnd"),h):n(k)}function h(k){return k===40?e.attempt(s9,y,c?y:v)(k):k===91?e.attempt(o9,y,c?m:v)(k):c?y(k):v(k)}function m(k){return e.attempt(u9,y,v)(k)}function y(k){return t(k)}function v(k){return o._balanced=!0,n(k)}}function h9(e,t,n){return i;function i(v){return e.enter("resource"),e.enter("resourceMarker"),e.consume(v),e.exit("resourceMarker"),l}function l(v){return $t(v)?zc(e,o)(v):o(v)}function o(v){return v===41?y(v):K5(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(v)}function c(v){return $t(v)?zc(e,h)(v):y(v)}function f(v){return n(v)}function h(v){return v===34||v===39||v===40?Z5(e,m,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(v):y(v)}function m(v){return $t(v)?zc(e,y)(v):y(v)}function y(v){return v===41?(e.enter("resourceMarker"),e.consume(v),e.exit("resourceMarker"),e.exit("resource"),t):n(v)}}function m9(e,t,n){const i=this;return l;function l(f){return Q5.call(i,e,o,c,"reference","referenceMarker","referenceString")(f)}function o(f){return i.parser.defined.includes(Ea(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function c(f){return n(f)}}function p9(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),l}function l(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const g9={name:"labelStartImage",resolveAll:o1.resolveAll,tokenize:y9};function y9(e,t,n){const i=this;return l;function l(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),o}function o(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):n(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):t(f)}}const v9={name:"labelStartLink",resolveAll:o1.resolveAll,tokenize:x9};function x9(e,t,n){const i=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const gm={name:"lineEnding",tokenize:b9};function b9(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ht(e,t,"linePrefix")}}const Hd={name:"thematicBreak",tokenize:w9};function w9(e,t,n){let i=0,l;return o;function o(m){return e.enter("thematicBreak"),c(m)}function c(m){return l=m,f(m)}function f(m){return m===l?(e.enter("thematicBreakSequence"),h(m)):i>=3&&(m===null||Ve(m))?(e.exit("thematicBreak"),t(m)):n(m)}function h(m){return m===l?(e.consume(m),i++,h):(e.exit("thematicBreakSequence"),yt(m)?ht(e,f,"whitespace")(m):f(m))}}const xr={continuation:{tokenize:j9},exit:A9,name:"list",tokenize:C9},k9={partial:!0,tokenize:E9},S9={partial:!0,tokenize:T9};function C9(e,t,n){const i=this,l=i.events[i.events.length-1];let o=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return f;function f(w){const T=i.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!i.containerState.marker||w===i.containerState.marker:hp(w)){if(i.containerState.type||(i.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Hd,n,m)(w):m(w);if(!i.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(w)}return n(w)}function h(w){return hp(w)&&++c<10?(e.consume(w),h):(!i.interrupt||c<2)&&(i.containerState.marker?w===i.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),m(w)):n(w)}function m(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||w,e.check(Pc,i.interrupt?n:y,e.attempt(k9,k,v))}function y(w){return i.containerState.initialBlankLine=!0,o++,k(w)}function v(w){return yt(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),k):n(w)}function k(w){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function j9(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Pc,l,o);function l(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ht(e,t,"listItemIndent",i.containerState.size+1)(f)}function o(f){return i.containerState.furtherBlankLines||!yt(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(S9,t,c)(f))}function c(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,ht(e,e.attempt(xr,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function T9(e,t,n){const i=this;return ht(e,l,"listItemIndent",i.containerState.size+1);function l(o){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(o):n(o)}}function A9(e){e.exit(this.containerState.type)}function E9(e,t,n){const i=this;return ht(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(o){const c=i.events[i.events.length-1];return!yt(o)&&c&&c[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const cy={name:"setextUnderline",resolveTo:N9,tokenize:M9};function N9(e,t){let n=e.length,i,l,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",o?(e.splice(l,0,["enter",c,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function M9(e,t,n){const i=this;let l;return o;function o(m){let y=i.events.length,v;for(;y--;)if(i.events[y][1].type!=="lineEnding"&&i.events[y][1].type!=="linePrefix"&&i.events[y][1].type!=="content"){v=i.events[y][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||v)?(e.enter("setextHeadingLine"),l=m,c(m)):n(m)}function c(m){return e.enter("setextHeadingLineSequence"),f(m)}function f(m){return m===l?(e.consume(m),f):(e.exit("setextHeadingLineSequence"),yt(m)?ht(e,h,"lineSuffix")(m):h(m))}function h(m){return m===null||Ve(m)?(e.exit("setextHeadingLine"),t(m)):n(m)}}const z9={tokenize:D9};function D9(e){const t=this,n=e.attempt(Pc,i,e.attempt(this.parser.constructs.flowInitial,l,ht(e,e.attempt(this.parser.constructs.flow,l,e.attempt(I8,l)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const R9={resolveAll:e6()},O9=J5("string"),_9=J5("text");function J5(e){return{resolveAll:e6(e==="text"?B9:void 0),tokenize:t};function t(n){const i=this,l=this.parser.constructs[e],o=n.attempt(l,c,f);return c;function c(y){return m(y)?o(y):f(y)}function f(y){if(y===null){n.consume(y);return}return n.enter("data"),n.consume(y),h}function h(y){return m(y)?(n.exit("data"),o(y)):(n.consume(y),h)}function m(y){if(y===null)return!0;const v=l[y];let k=-1;if(v)for(;++k<v.length;){const w=v[k];if(!w.previous||w.previous.call(i,i.previous))return!0}return!1}}}function e6(e){return t;function t(n,i){let l=-1,o;for(;++l<=n.length;)o===void 0?n[l]&&n[l][1].type==="data"&&(o=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==o+2&&(n[o][1].end=n[l-1][1].end,n.splice(o+2,l-o-2),l=o+2),o=void 0);return e?e(n,i):n}}function B9(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],l=t.sliceStream(i);let o=l.length,c=-1,f=0,h;for(;o--;){const m=l[o];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(m===-2)h=!0,f++;else if(m!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const m={type:n===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:i.start._bufferIndex+c,_index:i.start._index+o,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...m.start},i.start.offset===i.end.offset?Object.assign(i,m):(e.splice(n,0,["enter",m,t],["exit",m,t]),n+=2)}n++}return e}const I9={42:xr,43:xr,45:xr,48:xr,49:xr,50:xr,51:xr,52:xr,53:xr,54:xr,55:xr,56:xr,57:xr,62:V5},L9={91:F8},q9={[-2]:pm,[-1]:pm,32:pm},U9={35:W8,42:Hd,45:[cy,Hd],60:Z8,61:cy,95:Hd,96:oy,126:oy},H9={38:W5,92:Y5},F9={[-5]:gm,[-4]:gm,[-3]:gm,33:g9,38:W5,42:mp,60:[v8,i9],91:v9,92:[V8,Y5],93:o1,95:mp,96:z8},$9={null:[mp,R9]},G9={null:[42,95]},P9={null:[]},V9=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:G9,contentInitial:L9,disable:P9,document:I9,flow:U9,flowInitial:q9,insideSpan:$9,string:H9,text:F9},Symbol.toStringTag,{value:"Module"}));function Y9(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const l={},o=[];let c=[],f=[];const h={attempt:K(te),check:K(_),consume:B,enter:F,exit:Y,interrupt:K(_,{interrupt:!0})},m={code:null,containerState:{},defineSkip:E,events:[],now:T,parser:e,previous:null,sliceSerialize:k,sliceStream:w,write:v};let y=t.tokenize.call(m,h);return t.resolveAll&&o.push(t),m;function v(ce){return c=ia(c,ce),q(),c[c.length-1]!==null?[]:(le(t,0),m.events=df(o,m.events,m),m.events)}function k(ce,fe){return X9(w(ce),fe)}function w(ce){return W9(c,ce)}function T(){const{_bufferIndex:ce,_index:fe,line:Be,column:Ce,offset:ve}=i;return{_bufferIndex:ce,_index:fe,line:Be,column:Ce,offset:ve}}function E(ce){l[ce.line]=ce.column,G()}function q(){let ce;for(;i._index<c.length;){const fe=c[i._index];if(typeof fe=="string")for(ce=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===ce&&i._bufferIndex<fe.length;)R(fe.charCodeAt(i._bufferIndex));else R(fe)}}function R(ce){y=y(ce)}function B(ce){Ve(ce)?(i.line++,i.column=1,i.offset+=ce===-3?2:1,G()):ce!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),m.previous=ce}function F(ce,fe){const Be=fe||{};return Be.type=ce,Be.start=T(),m.events.push(["enter",Be,m]),f.push(Be),Be}function Y(ce){const fe=f.pop();return fe.end=T(),m.events.push(["exit",fe,m]),fe}function te(ce,fe){le(ce,fe.from)}function _(ce,fe){fe.restore()}function K(ce,fe){return Be;function Be(Ce,ve,ee){let pe,De,Ye,U;return Array.isArray(Ce)?Q(Ce):"tokenize"in Ce?Q([Ce]):O(Ce);function O(ne){return xe;function xe(oe){const Oe=oe!==null&&ne[oe],st=oe!==null&&ne.null,Ct=[...Array.isArray(Oe)?Oe:Oe?[Oe]:[],...Array.isArray(st)?st:st?[st]:[]];return Q(Ct)(oe)}}function Q(ne){return pe=ne,De=0,ne.length===0?ee:z(ne[De])}function z(ne){return xe;function xe(oe){return U=J(),Ye=ne,ne.partial||(m.currentConstruct=ne),ne.name&&m.parser.constructs.disable.null.includes(ne.name)?Re():ne.tokenize.call(fe?Object.assign(Object.create(m),fe):m,h,de,Re)(oe)}}function de(ne){return ce(Ye,U),ve}function Re(ne){return U.restore(),++De<pe.length?z(pe[De]):ee}}}function le(ce,fe){ce.resolveAll&&!o.includes(ce)&&o.push(ce),ce.resolve&&Rr(m.events,fe,m.events.length-fe,ce.resolve(m.events.slice(fe),m)),ce.resolveTo&&(m.events=ce.resolveTo(m.events,m))}function J(){const ce=T(),fe=m.previous,Be=m.currentConstruct,Ce=m.events.length,ve=Array.from(f);return{from:Ce,restore:ee};function ee(){i=ce,m.previous=fe,m.currentConstruct=Be,m.events.length=Ce,f=ve,G()}}function G(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function W9(e,t){const n=t.start._index,i=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;let c;if(n===l)c=[e[n].slice(i,o)];else{if(c=e.slice(n,l),i>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(i):c.shift()}o>0&&c.push(e[l].slice(0,o))}return c}function X9(e,t){let n=-1;const i=[];let l;for(;++n<e.length;){const o=e[n];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
|
|
52
|
-
`;break}case-3:{c=`\r
|
|
53
|
-
`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&l)continue;c=" ";break}default:c=String.fromCharCode(o)}l=o===-2,i.push(c)}return i.join("")}function K9(e){const i={constructs:G5([V9,...(e||{}).extensions||[]]),content:l(d8),defined:[],document:l(h8),flow:l(z9),lazy:{},string:l(O9),text:l(_9)};return i;function l(o){return c;function c(f){return Y9(i,o,f)}}}function Q9(e){for(;!X5(e););return e}const dy=/[\0\t\n\r]/g;function Z9(){let e=1,t="",n=!0,i;return l;function l(o,c,f){const h=[];let m,y,v,k,w;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),v=0,t="",n&&(o.charCodeAt(0)===65279&&v++,n=void 0);v<o.length;){if(dy.lastIndex=v,m=dy.exec(o),k=m&&m.index!==void 0?m.index:o.length,w=o.charCodeAt(k),!m){t=o.slice(v);break}if(w===10&&v===k&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),v<k&&(h.push(o.slice(v,k)),e+=k-v),w){case 0:{h.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,h.push(-2);e++<y;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}v=k+1}return f&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const J9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ew(e){return e.replace(J9,tw)}function tw(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),o=l===120||l===88;return P5(n.slice(o?2:1),o?16:10)}return s1(n)||e}const t6={}.hasOwnProperty;function nw(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),rw(n)(Q9(K9(n).document().write(Z9()(e,t,!0))))}function rw(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Pt),autolinkProtocol:J,autolinkEmail:J,atxHeading:o(At),blockQuote:o(st),characterEscape:J,characterReference:J,codeFenced:o(Ct),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(Ct,c),codeText:o(lt,c),codeTextData:J,data:J,codeFlowValue:J,definition:o(Je),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(ut),hardBreakEscape:o(jn),hardBreakTrailing:o(jn),htmlFlow:o(Qe,c),htmlFlowData:J,htmlText:o(Qe,c),htmlTextData:J,image:o(Zt),label:c,link:o(Pt),listItem:o(qr),listItemValue:k,listOrdered:o(Wt,v),listUnordered:o(Wt),paragraph:o(Sr),reference:z,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(At),strong:o(ua),thematicBreak:o(Ur)},exit:{atxHeading:h(),atxHeadingSequence:te,autolink:h(),autolinkEmail:Oe,autolinkProtocol:oe,blockQuote:h(),characterEscapeValue:G,characterReferenceMarkerHexadecimal:Re,characterReferenceMarkerNumeric:Re,characterReferenceValue:ne,characterReference:xe,codeFenced:h(q),codeFencedFence:E,codeFencedFenceInfo:w,codeFencedFenceMeta:T,codeFlowValue:G,codeIndented:h(R),codeText:h(ve),codeTextData:G,data:G,definition:h(),definitionDestinationString:Y,definitionLabelString:B,definitionTitleString:F,emphasis:h(),hardBreakEscape:h(fe),hardBreakTrailing:h(fe),htmlFlow:h(Be),htmlFlowData:G,htmlText:h(Ce),htmlTextData:G,image:h(pe),label:Ye,labelText:De,lineEnding:ce,link:h(ee),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:de,resourceDestinationString:U,resourceTitleString:O,resource:Q,setextHeading:h(le),setextHeadingLineSequence:K,setextHeadingText:_,strong:h(),thematicBreak:h()}};n6(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(he){let we={type:"root",children:[]};const Ue={stack:[we],tokenStack:[],config:t,enter:f,exit:m,buffer:c,resume:y,data:n},et=[];let vt=-1;for(;++vt<he.length;)if(he[vt][1].type==="listOrdered"||he[vt][1].type==="listUnordered")if(he[vt][0]==="enter")et.push(vt);else{const Tn=et.pop();vt=l(he,Tn,vt)}for(vt=-1;++vt<he.length;){const Tn=t[he[vt][0]];t6.call(Tn,he[vt][1].type)&&Tn[he[vt][1].type].call(Object.assign({sliceSerialize:he[vt][2].sliceSerialize},Ue),he[vt][1])}if(Ue.tokenStack.length>0){const Tn=Ue.tokenStack[Ue.tokenStack.length-1];(Tn[1]||fy).call(Ue,void 0,Tn[0])}for(we.position={start:Il(he.length>0?he[0][1].start:{line:1,column:1,offset:0}),end:Il(he.length>0?he[he.length-2][1].end:{line:1,column:1,offset:0})},vt=-1;++vt<t.transforms.length;)we=t.transforms[vt](we)||we;return we}function l(he,we,Ue){let et=we-1,vt=-1,Tn=!1,Hr,zn,rn,Dn;for(;++et<=Ue;){const Dt=he[et];switch(Dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Dt[0]==="enter"?vt++:vt--,Dn=void 0;break}case"lineEndingBlank":{Dt[0]==="enter"&&(Hr&&!Dn&&!vt&&!rn&&(rn=et),Dn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Dn=void 0}if(!vt&&Dt[0]==="enter"&&Dt[1].type==="listItemPrefix"||vt===-1&&Dt[0]==="exit"&&(Dt[1].type==="listUnordered"||Dt[1].type==="listOrdered")){if(Hr){let an=et;for(zn=void 0;an--;){const tr=he[an];if(tr[1].type==="lineEnding"||tr[1].type==="lineEndingBlank"){if(tr[0]==="exit")continue;zn&&(he[zn][1].type="lineEndingBlank",Tn=!0),tr[1].type="lineEnding",zn=an}else if(!(tr[1].type==="linePrefix"||tr[1].type==="blockQuotePrefix"||tr[1].type==="blockQuotePrefixWhitespace"||tr[1].type==="blockQuoteMarker"||tr[1].type==="listItemIndent"))break}rn&&(!zn||rn<zn)&&(Hr._spread=!0),Hr.end=Object.assign({},zn?he[zn][1].start:Dt[1].end),he.splice(zn||et,0,["exit",Hr,Dt[2]]),et++,Ue++}if(Dt[1].type==="listItemPrefix"){const an={type:"listItem",_spread:!1,start:Object.assign({},Dt[1].start),end:void 0};Hr=an,he.splice(et,0,["enter",an,Dt[2]]),et++,Ue++,rn=void 0,Dn=!0}}}return he[we][1]._spread=Tn,Ue}function o(he,we){return Ue;function Ue(et){f.call(this,he(et),et),we&&we.call(this,et)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(he,we,Ue){this.stack[this.stack.length-1].children.push(he),this.stack.push(he),this.tokenStack.push([we,Ue||void 0]),he.position={start:Il(we.start),end:void 0}}function h(he){return we;function we(Ue){he&&he.call(this,Ue),m.call(this,Ue)}}function m(he,we){const Ue=this.stack.pop(),et=this.tokenStack.pop();if(et)et[0].type!==he.type&&(we?we.call(this,he,et[0]):(et[1]||fy).call(this,he,et[0]));else throw new Error("Cannot close `"+he.type+"` ("+Mc({start:he.start,end:he.end})+"): it’s not open");Ue.position.end=Il(he.end)}function y(){return l1(this.stack.pop())}function v(){this.data.expectingFirstListItemValue=!0}function k(he){if(this.data.expectingFirstListItemValue){const we=this.stack[this.stack.length-2];we.start=Number.parseInt(this.sliceSerialize(he),10),this.data.expectingFirstListItemValue=void 0}}function w(){const he=this.resume(),we=this.stack[this.stack.length-1];we.lang=he}function T(){const he=this.resume(),we=this.stack[this.stack.length-1];we.meta=he}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function q(){const he=this.resume(),we=this.stack[this.stack.length-1];we.value=he.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function R(){const he=this.resume(),we=this.stack[this.stack.length-1];we.value=he.replace(/(\r?\n|\r)$/g,"")}function B(he){const we=this.resume(),Ue=this.stack[this.stack.length-1];Ue.label=we,Ue.identifier=Ea(this.sliceSerialize(he)).toLowerCase()}function F(){const he=this.resume(),we=this.stack[this.stack.length-1];we.title=he}function Y(){const he=this.resume(),we=this.stack[this.stack.length-1];we.url=he}function te(he){const we=this.stack[this.stack.length-1];if(!we.depth){const Ue=this.sliceSerialize(he).length;we.depth=Ue}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function K(he){const we=this.stack[this.stack.length-1];we.depth=this.sliceSerialize(he).codePointAt(0)===61?1:2}function le(){this.data.setextHeadingSlurpLineEnding=void 0}function J(he){const Ue=this.stack[this.stack.length-1].children;let et=Ue[Ue.length-1];(!et||et.type!=="text")&&(et=Vt(),et.position={start:Il(he.start),end:void 0},Ue.push(et)),this.stack.push(et)}function G(he){const we=this.stack.pop();we.value+=this.sliceSerialize(he),we.position.end=Il(he.end)}function ce(he){const we=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ue=we.children[we.children.length-1];Ue.position.end=Il(he.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(we.type)&&(J.call(this,he),G.call(this,he))}function fe(){this.data.atHardBreak=!0}function Be(){const he=this.resume(),we=this.stack[this.stack.length-1];we.value=he}function Ce(){const he=this.resume(),we=this.stack[this.stack.length-1];we.value=he}function ve(){const he=this.resume(),we=this.stack[this.stack.length-1];we.value=he}function ee(){const he=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";he.type+="Reference",he.referenceType=we,delete he.url,delete he.title}else delete he.identifier,delete he.label;this.data.referenceType=void 0}function pe(){const he=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";he.type+="Reference",he.referenceType=we,delete he.url,delete he.title}else delete he.identifier,delete he.label;this.data.referenceType=void 0}function De(he){const we=this.sliceSerialize(he),Ue=this.stack[this.stack.length-2];Ue.label=ew(we),Ue.identifier=Ea(we).toLowerCase()}function Ye(){const he=this.stack[this.stack.length-1],we=this.resume(),Ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ue.type==="link"){const et=he.children;Ue.children=et}else Ue.alt=we}function U(){const he=this.resume(),we=this.stack[this.stack.length-1];we.url=he}function O(){const he=this.resume(),we=this.stack[this.stack.length-1];we.title=he}function Q(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function de(he){const we=this.resume(),Ue=this.stack[this.stack.length-1];Ue.label=we,Ue.identifier=Ea(this.sliceSerialize(he)).toLowerCase(),this.data.referenceType="full"}function Re(he){this.data.characterReferenceType=he.type}function ne(he){const we=this.sliceSerialize(he),Ue=this.data.characterReferenceType;let et;Ue?(et=P5(we,Ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):et=s1(we);const vt=this.stack[this.stack.length-1];vt.value+=et}function xe(he){const we=this.stack.pop();we.position.end=Il(he.end)}function oe(he){G.call(this,he);const we=this.stack[this.stack.length-1];we.url=this.sliceSerialize(he)}function Oe(he){G.call(this,he);const we=this.stack[this.stack.length-1];we.url="mailto:"+this.sliceSerialize(he)}function st(){return{type:"blockquote",children:[]}}function Ct(){return{type:"code",lang:null,meta:null,value:""}}function lt(){return{type:"inlineCode",value:""}}function Je(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ut(){return{type:"emphasis",children:[]}}function At(){return{type:"heading",depth:0,children:[]}}function jn(){return{type:"break"}}function Qe(){return{type:"html",value:""}}function Zt(){return{type:"image",title:null,url:"",alt:null}}function Pt(){return{type:"link",title:null,url:"",children:[]}}function Wt(he){return{type:"list",ordered:he.type==="listOrdered",start:null,spread:he._spread,children:[]}}function qr(he){return{type:"listItem",spread:he._spread,checked:null,children:[]}}function Sr(){return{type:"paragraph",children:[]}}function ua(){return{type:"strong",children:[]}}function Vt(){return{type:"text",value:""}}function Ur(){return{type:"thematicBreak"}}}function Il(e){return{line:e.line,column:e.column,offset:e.offset}}function n6(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?n6(e,i):aw(e,i)}}function aw(e,t){let n;for(n in t)if(t6.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function fy(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Mc({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Mc({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Mc({start:t.start,end:t.end})+") is still open")}function iw(e){const t=this;t.parser=n;function n(i){return nw(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function lw(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function sw(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
54
|
-
`}]}function ow(e,t){const n=t.value?t.value+`
|
|
55
|
-
`:"",i={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(i.className=["language-"+l[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function uw(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cw(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dw(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=iu(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let c,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=o+1,f+=1,e.footnoteCounts.set(i,f);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,h);const m={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,m),e.applyData(t,m)}function fw(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hw(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function r6(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const l=e.all(t),o=l[0];o&&o.type==="text"?o.value="["+o.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=i:l.push({type:"text",value:i}),l}function mw(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return r6(e,t);const l={src:iu(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const o={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,o),e.applyData(t,o)}function pw(e,t){const n={src:iu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function gw(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function yw(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return r6(e,t);const l={href:iu(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const o={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function vw(e,t){const n={href:iu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function xw(e,t,n){const i=e.all(t),l=n?bw(n):a6(t),o={},c=[];if(typeof t.checked=="boolean"){const y=i[0];let v;y&&y.type==="element"&&y.tagName==="p"?v=y:(v={type:"element",tagName:"p",properties:{},children:[]},i.unshift(v)),v.children.length>0&&v.children.unshift({type:"text",value:" "}),v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const y=i[f];(l||f!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
|
|
56
|
-
`}),y.type==="element"&&y.tagName==="p"&&!l?c.push(...y.children):c.push(y)}const h=i[i.length-1];h&&(l||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
|
|
57
|
-
`});const m={type:"element",tagName:"li",properties:o,children:c};return e.patch(t,m),e.applyData(t,m)}function bw(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=a6(n[i])}return t}function a6(e){const t=e.spread;return t??e.children.length>1}function ww(e,t){const n={},i=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<i.length;){const c=i[l];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function kw(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sw(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Cw(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jw(e,t){const n=e.all(t),i=n.shift(),l=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),l.push(c)}if(n.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=n1(t.children[1]),h=I5(t.children[t.children.length-1]);f&&h&&(c.position={start:f,end:h}),l.push(c)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,o),e.applyData(t,o)}function Tw(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",c=n&&n.type==="table"?n.align:void 0,f=c?c.length:t.children.length;let h=-1;const m=[];for(;++h<f;){const v=t.children[h],k={},w=c?c[h]:void 0;w&&(k.align=w);let T={type:"element",tagName:o,properties:k,children:[]};v&&(T.children=e.all(v),e.patch(v,T),T=e.applyData(v,T)),m.push(T)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(t,y),e.applyData(t,y)}function Aw(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const hy=9,my=32;function Ew(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),l=0;const o=[];for(;i;)o.push(py(t.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=n.exec(t);return o.push(py(t.slice(l),l>0,!1)),o.join("")}function py(e,t,n){let i=0,l=e.length;if(t){let o=e.codePointAt(i);for(;o===hy||o===my;)i++,o=e.codePointAt(i)}if(n){let o=e.codePointAt(l-1);for(;o===hy||o===my;)l--,o=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function Nw(e,t){const n={type:"text",value:Ew(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Mw(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const zw={blockquote:lw,break:sw,code:ow,delete:uw,emphasis:cw,footnoteReference:dw,heading:fw,html:hw,imageReference:mw,image:pw,inlineCode:gw,linkReference:yw,link:vw,listItem:xw,list:ww,paragraph:kw,root:Sw,strong:Cw,table:jw,tableCell:Aw,tableRow:Tw,text:Nw,thematicBreak:Mw,toml:bd,yaml:bd,definition:bd,footnoteDefinition:bd};function bd(){}const i6=-1,ff=0,Dc=1,Xd=2,u1=3,c1=4,d1=5,f1=6,l6=7,s6=8,Dw=typeof self=="object"?self:globalThis,gy=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Dw[e](t)},Rw=(e,t)=>{const n=(l,o)=>(e.set(o,l),l),i=l=>{if(e.has(l))return e.get(l);const[o,c]=t[l];switch(o){case ff:case i6:return n(c,l);case Dc:{const f=n([],l);for(const h of c)f.push(i(h));return f}case Xd:{const f=n({},l);for(const[h,m]of c)f[i(h)]=i(m);return f}case u1:return n(new Date(c),l);case c1:{const{source:f,flags:h}=c;return n(new RegExp(f,h),l)}case d1:{const f=n(new Map,l);for(const[h,m]of c)f.set(i(h),i(m));return f}case f1:{const f=n(new Set,l);for(const h of c)f.add(i(h));return f}case l6:{const{name:f,message:h}=c;return n(gy(f,h),l)}case s6:return n(BigInt(c),l);case"BigInt":return n(Object(BigInt(c)),l);case"ArrayBuffer":return n(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return n(new DataView(f),c)}}return n(gy(o,c),l)};return i},yy=e=>Rw(new Map,e)(0),Bs="",{toString:Ow}={},{keys:_w}=Object,xc=e=>{const t=typeof e;if(t!=="object"||!e)return[ff,t];const n=Ow.call(e).slice(8,-1);switch(n){case"Array":return[Dc,Bs];case"Object":return[Xd,Bs];case"Date":return[u1,Bs];case"RegExp":return[c1,Bs];case"Map":return[d1,Bs];case"Set":return[f1,Bs];case"DataView":return[Dc,n]}return n.includes("Array")?[Dc,n]:n.includes("Error")?[l6,n]:[Xd,n]},wd=([e,t])=>e===ff&&(t==="function"||t==="symbol"),Bw=(e,t,n,i)=>{const l=(c,f)=>{const h=i.push(c)-1;return n.set(f,h),h},o=c=>{if(n.has(c))return n.get(c);let[f,h]=xc(c);switch(f){case ff:{let y=c;switch(h){case"bigint":f=s6,y=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return l([i6],c)}return l([f,y],c)}case Dc:{if(h){let k=c;return h==="DataView"?k=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(k=new Uint8Array(c)),l([h,[...k]],c)}const y=[],v=l([f,y],c);for(const k of c)y.push(o(k));return v}case Xd:{if(h)switch(h){case"BigInt":return l([h,c.toString()],c);case"Boolean":case"Number":case"String":return l([h,c.valueOf()],c)}if(t&&"toJSON"in c)return o(c.toJSON());const y=[],v=l([f,y],c);for(const k of _w(c))(e||!wd(xc(c[k])))&&y.push([o(k),o(c[k])]);return v}case u1:return l([f,isNaN(c.getTime())?Bs:c.toISOString()],c);case c1:{const{source:y,flags:v}=c;return l([f,{source:y,flags:v}],c)}case d1:{const y=[],v=l([f,y],c);for(const[k,w]of c)(e||!(wd(xc(k))||wd(xc(w))))&&y.push([o(k),o(w)]);return v}case f1:{const y=[],v=l([f,y],c);for(const k of c)(e||!wd(xc(k)))&&y.push(o(k));return v}}const{message:m}=c;return l([f,{name:h,message:m}],c)};return o},vy=(e,{json:t,lossy:n}={})=>{const i=[];return Bw(!(t||n),!!t,new Map,i)(e),i},Kd=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?yy(vy(e,t)):structuredClone(e):(e,t)=>yy(vy(e,t));function Iw(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Lw(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function qw(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Iw,i=e.options.footnoteBackLabel||Lw,l=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[h]);if(!m)continue;const y=e.all(m),v=String(m.identifier).toUpperCase(),k=iu(v.toLowerCase());let w=0;const T=[],E=e.footnoteCounts.get(v);for(;E!==void 0&&++w<=E;){T.length>0&&T.push({type:"text",value:" "});let B=typeof n=="string"?n:n(h,w);typeof B=="string"&&(B={type:"text",value:B}),T.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+k+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,w),className:["data-footnote-backref"]},children:Array.isArray(B)?B:[B]})}const q=y[y.length-1];if(q&&q.type==="element"&&q.tagName==="p"){const B=q.children[q.children.length-1];B&&B.type==="text"?B.value+=" ":q.children.push({type:"text",value:" "}),q.children.push(...T)}else y.push(...T);const R={type:"element",tagName:"li",properties:{id:t+"fn-"+k},children:e.wrap(y,!0)};e.patch(m,R),f.push(R)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Kd(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
58
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
59
|
-
`}]}}const Vc=(function(e){if(e==null)return $w;if(typeof e=="function")return hf(e);if(typeof e=="object")return Array.isArray(e)?Uw(e):Hw(e);if(typeof e=="string")return Fw(e);throw new Error("Expected function, string, or object as test")});function Uw(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Vc(e[n]);return hf(i);function i(...l){let o=-1;for(;++o<t.length;)if(t[o].apply(this,l))return!0;return!1}}function Hw(e){const t=e;return hf(n);function n(i){const l=i;let o;for(o in e)if(l[o]!==t[o])return!1;return!0}}function Fw(e){return hf(t);function t(n){return n&&n.type===e}}function hf(e){return t;function t(n,i,l){return!!(Gw(n)&&e.call(this,n,typeof i=="number"?i:void 0,l||void 0))}}function $w(){return!0}function Gw(e){return e!==null&&typeof e=="object"&&"type"in e}const o6=[],Pw=!0,pp=!1,u6="skip";function h1(e,t,n,i){let l;typeof t=="function"&&typeof n!="function"?(i=n,n=t):l=t;const o=Vc(l),c=i?-1:1;f(e,void 0,[])();function f(h,m,y){const v=h&&typeof h=="object"?h:{};if(typeof v.type=="string"){const w=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(h.type+(w?"<"+w+">":""))+")"})}return k;function k(){let w=o6,T,E,q;if((!t||o(h,m,y[y.length-1]||void 0))&&(w=Vw(n(h,y)),w[0]===pp))return w;if("children"in h&&h.children){const R=h;if(R.children&&w[0]!==u6)for(E=(i?R.children.length:-1)+c,q=y.concat(R);E>-1&&E<R.children.length;){const B=R.children[E];if(T=f(B,E,q)(),T[0]===pp)return T;E=typeof T[1]=="number"?T[1]:E+c}}return w}}}function Vw(e){return Array.isArray(e)?e:typeof e=="number"?[Pw,e]:e==null?o6:[e]}function m1(e,t,n,i){let l,o,c;typeof t=="function"&&typeof n!="function"?(o=void 0,c=t,l=n):(o=t,c=n,l=i),h1(e,o,f,l);function f(h,m){const y=m[m.length-1],v=y?y.children.indexOf(h):void 0;return c(h,v,y)}}const gp={}.hasOwnProperty,Yw={};function Ww(e,t){const n=t||Yw,i=new Map,l=new Map,o=new Map,c={...zw,...n.handlers},f={all:m,applyData:Kw,definitionById:i,footnoteById:l,footnoteCounts:o,footnoteOrder:[],handlers:c,one:h,options:n,patch:Xw,wrap:Zw};return m1(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const v=y.type==="definition"?i:l,k=String(y.identifier).toUpperCase();v.has(k)||v.set(k,y)}}),f;function h(y,v){const k=y.type,w=f.handlers[k];if(gp.call(f.handlers,k)&&w)return w(f,y,v);if(f.options.passThrough&&f.options.passThrough.includes(k)){if("children"in y){const{children:E,...q}=y,R=Kd(q);return R.children=f.all(y),R}return Kd(y)}return(f.options.unknownHandler||Qw)(f,y,v)}function m(y){const v=[];if("children"in y){const k=y.children;let w=-1;for(;++w<k.length;){const T=f.one(k[w],y);if(T){if(w&&k[w-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=xy(T.value)),!Array.isArray(T)&&T.type==="element")){const E=T.children[0];E&&E.type==="text"&&(E.value=xy(E.value))}Array.isArray(T)?v.push(...T):v.push(T)}}}return v}}function Xw(e,t){e.position&&(t.position=Ib(e))}function Kw(e,t){let n=t;if(e&&e.data){const i=e.data.hName,l=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const c="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:c}}n.type==="element"&&o&&Object.assign(n.properties,Kd(o)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function Qw(e,t){const n=t.data||{},i="value"in t&&!(gp.call(n,"hProperties")||gp.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Zw(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
60
|
-
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
61
|
-
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
62
|
-
`}),n}function xy(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function by(e,t){const n=Ww(e,t),i=n.one(e,void 0),l=qw(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&o.children.push({type:"text",value:`
|
|
63
|
-
`},l),o}function Jw(e,t){return e&&"run"in e?async function(n,i){const l=by(n,{file:i,...t});await e.run(l,i)}:function(n,i){return by(n,{file:i,...e||t})}}function wy(e){if(e)throw e}var ym,ky;function ek(){if(ky)return ym;ky=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(m){return typeof Array.isArray=="function"?Array.isArray(m):t.call(m)==="[object Array]"},o=function(m){if(!m||t.call(m)!=="[object Object]")return!1;var y=e.call(m,"constructor"),v=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!v)return!1;var k;for(k in m);return typeof k>"u"||e.call(m,k)},c=function(m,y){n&&y.name==="__proto__"?n(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},f=function(m,y){if(y==="__proto__")if(e.call(m,y)){if(i)return i(m,y).value}else return;return m[y]};return ym=function h(){var m,y,v,k,w,T,E=arguments[0],q=1,R=arguments.length,B=!1;for(typeof E=="boolean"&&(B=E,E=arguments[1]||{},q=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});q<R;++q)if(m=arguments[q],m!=null)for(y in m)v=f(E,y),k=f(m,y),E!==k&&(B&&k&&(o(k)||(w=l(k)))?(w?(w=!1,T=v&&l(v)?v:[]):T=v&&o(v)?v:{},c(E,{name:y,newValue:h(B,T,k)})):typeof k<"u"&&c(E,{name:y,newValue:k}));return E},ym}var tk=ek();const vm=A5(tk);function yp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function nk(){const e=[],t={run:n,use:i};return t;function n(...l){let o=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...l);function f(h,...m){const y=e[++o];let v=-1;if(h){c(h);return}for(;++v<l.length;)(m[v]===null||m[v]===void 0)&&(m[v]=l[v]);l=m,y?rk(y,f)(...m):c(null,...m)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function rk(e,t){let n;return i;function i(...c){const f=e.length>c.length;let h;f&&c.push(l);try{h=e.apply(this,c)}catch(m){const y=m;if(f&&n)throw y;return l(y)}f||(h&&h.then&&typeof h.then=="function"?h.then(o,l):h instanceof Error?l(h):o(h))}function l(c,...f){n||(n=!0,t(c,...f))}function o(c){l(null,c)}}const Xa={basename:ak,dirname:ik,extname:lk,join:sk,sep:"/"};function ak(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Yc(e);let n=0,i=-1,l=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(o){n=l+1;break}}else i<0&&(o=!0,i=l+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let c=-1,f=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(o){n=l+1;break}}else c<0&&(o=!0,c=l+1),f>-1&&(e.codePointAt(l)===t.codePointAt(f--)?f<0&&(i=l):(f=-1,i=c));return n===i?i=c:i<0&&(i=e.length),e.slice(n,i)}function ik(e){if(Yc(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function lk(e){Yc(e);let t=e.length,n=-1,i=0,l=-1,o=0,c;for(;t--;){const f=e.codePointAt(t);if(f===47){if(c){i=t+1;break}continue}n<0&&(c=!0,n=t+1),f===46?l<0?l=t:o!==1&&(o=1):l>-1&&(o=-1)}return l<0||n<0||o===0||o===1&&l===n-1&&l===i+1?"":e.slice(l,n)}function sk(...e){let t=-1,n;for(;++t<e.length;)Yc(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":ok(n)}function ok(e){Yc(e);const t=e.codePointAt(0)===47;let n=uk(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function uk(e,t){let n="",i=0,l=-1,o=0,c=-1,f,h;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(l===c-1||o===1))if(l!==c-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){h<0?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),l=c,o=0;continue}}else if(n.length>0){n="",i=0,l=c,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(l+1,c):n=e.slice(l+1,c),i=c-l-1;l=c,o=0}else f===46&&o>-1?o++:o=-1}return n}function Yc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ck={cwd:dk};function dk(){return"/"}function vp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function fk(e){if(typeof e=="string")e=new URL(e);else if(!vp(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return hk(e)}function hk(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const xm=["history","path","basename","stem","extname","dirname"];class c6{constructor(t){let n;t?vp(t)?n={path:t}:typeof t=="string"||mk(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":ck.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<xm.length;){const o=xm[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let l;for(l in n)xm.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?Xa.basename(this.path):void 0}set basename(t){wm(t,"basename"),bm(t,"basename"),this.path=Xa.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Xa.dirname(this.path):void 0}set dirname(t){Sy(this.basename,"dirname"),this.path=Xa.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Xa.extname(this.path):void 0}set extname(t){if(bm(t,"extname"),Sy(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xa.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){vp(t)&&(t=fk(t)),wm(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Xa.basename(this.path,this.extname):void 0}set stem(t){wm(t,"stem"),bm(t,"stem"),this.path=Xa.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const l=this.message(t,n,i);throw l.fatal=!0,l}info(t,n,i){const l=this.message(t,n,i);return l.fatal=void 0,l}message(t,n,i){const l=new Pn(t,n,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function bm(e,t){if(e&&e.includes(Xa.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Xa.sep+"`")}function wm(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Sy(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function mk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pk=(function(e){const i=this.constructor.prototype,l=i[e],o=function(){return l.apply(o,arguments)};return Object.setPrototypeOf(o,i),o}),gk={}.hasOwnProperty;class p1 extends pk{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=nk()}copy(){const t=new p1;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(vm(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Cm("data",this.frozen),this.namespace[t]=n,this):gk.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Cm("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=n.call(t,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=kd(t),i=this.parser||this.Parser;return km("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),km("process",this.parser||this.Parser),Sm("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(o,c){const f=kd(t),h=i.parse(f);i.run(h,f,function(y,v,k){if(y||!v||!k)return m(y);const w=v,T=i.stringify(w,k);xk(T)?k.value=T:k.result=T,m(y,k)});function m(y,v){y||!v?c(y):o?o(v):n(void 0,v)}}}processSync(t){let n=!1,i;return this.freeze(),km("processSync",this.parser||this.Parser),Sm("processSync",this.compiler||this.Compiler),this.process(t,l),jy("processSync","process",n),i;function l(o,c){n=!0,wy(o),i=c}}run(t,n,i){Cy(t),this.freeze();const l=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(c,f){const h=kd(n);l.run(t,h,m);function m(y,v,k){const w=v||t;y?f(y):c?c(w):i(void 0,w,k)}}}runSync(t,n){let i=!1,l;return this.run(t,n,o),jy("runSync","run",i),l;function o(c,f){wy(c),l=f,i=!0}}stringify(t,n){this.freeze();const i=kd(n),l=this.compiler||this.Compiler;return Sm("stringify",l),Cy(t),l(t,i)}use(t,...n){const i=this.attachers,l=this.namespace;if(Cm("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(m){if(typeof m=="function")h(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...v]=m;h(y,v)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(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");f(m.plugins),m.settings&&(l.settings=vm(!0,l.settings,m.settings))}function f(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const v=m[y];o(v)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function h(m,y){let v=-1,k=-1;for(;++v<i.length;)if(i[v][0]===m){k=v;break}if(k===-1)i.push([m,...y]);else if(y.length>0){let[w,...T]=y;const E=i[k][1];yp(E)&&yp(w)&&(w=vm(!0,E,w)),i[k]=[m,w,...T]}}}}const yk=new p1().freeze();function km(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Sm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Cm(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Cy(e){if(!yp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function jy(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function kd(e){return vk(e)?e:new c6(e)}function vk(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function xk(e){return typeof e=="string"||bk(e)}function bk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wk="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ty=[],Ay={allowDangerousHtml:!0},kk=/^(https?|ircs?|mailto|xmpp)$/i,Sk=[{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 Ck(e){const t=jk(e),n=Tk(e);return Ak(t.runSync(t.parse(n),n),e)}function jk(e){const t=e.rehypePlugins||Ty,n=e.remarkPlugins||Ty,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ay}:Ay;return yk().use(iw).use(n).use(Jw,i).use(t)}function Tk(e){const t=e.children||"",n=new c6;return typeof t=="string"&&(n.value=t),n}function Ak(e,t){const n=t.allowedElements,i=t.allowElement,l=t.components,o=t.disallowedElements,c=t.skipHtml,f=t.unwrapDisallowed,h=t.urlTransform||Ek;for(const y of Sk)Object.hasOwn(t,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+wk+y.id,void 0);return m1(e,m),Fb(e,{Fragment:u.Fragment,components:l,ignoreInvalidStyle:!0,jsx:u.jsx,jsxs:u.jsxs,passKeys:!0,passNode:!0});function m(y,v,k){if(y.type==="raw"&&k&&typeof v=="number")return c?k.children.splice(v,1):k.children[v]={type:"text",value:y.value},v;if(y.type==="element"){let w;for(w in mm)if(Object.hasOwn(mm,w)&&Object.hasOwn(y.properties,w)){const T=y.properties[w],E=mm[w];(E===null||E.includes(y.tagName))&&(y.properties[w]=h(String(T||""),w,y))}}if(y.type==="element"){let w=n?!n.includes(y.tagName):o?o.includes(y.tagName):!1;if(!w&&i&&typeof v=="number"&&(w=!i(y,v,k)),w&&k&&typeof v=="number")return f&&y.children?k.children.splice(v,1,...y.children):k.children.splice(v,1),v}}}function Ek(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||i!==-1&&t>i||kk.test(e.slice(0,t))?e:""}function Ey(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,l=n.indexOf(t);for(;l!==-1;)i++,l=n.indexOf(t,l+t.length);return i}function Nk(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Mk(e,t,n){const l=Vc((n||{}).ignore||[]),o=zk(t);let c=-1;for(;++c<o.length;)h1(e,"text",f);function f(m,y){let v=-1,k;for(;++v<y.length;){const w=y[v],T=k?k.children:void 0;if(l(w,T?T.indexOf(w):void 0,k))return;k=w}if(k)return h(m,y)}function h(m,y){const v=y[y.length-1],k=o[c][0],w=o[c][1];let T=0;const q=v.children.indexOf(m);let R=!1,B=[];k.lastIndex=0;let F=k.exec(m.value);for(;F;){const Y=F.index,te={index:F.index,input:F.input,stack:[...y,m]};let _=w(...F,te);if(typeof _=="string"&&(_=_.length>0?{type:"text",value:_}:void 0),_===!1?k.lastIndex=Y+1:(T!==Y&&B.push({type:"text",value:m.value.slice(T,Y)}),Array.isArray(_)?B.push(..._):_&&B.push(_),T=Y+F[0].length,R=!0),!k.global)break;F=k.exec(m.value)}return R?(T<m.value.length&&B.push({type:"text",value:m.value.slice(T)}),v.children.splice(q,1,...B)):B=[m],q+B.length}}function zk(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const l=n[i];t.push([Dk(l[0]),Rk(l[1])])}return t}function Dk(e){return typeof e=="string"?new RegExp(Nk(e),"g"):e}function Rk(e){return typeof e=="function"?e:function(){return e}}const jm="phrasing",Tm=["autolink","link","image","label"];function Ok(){return{transforms:[Hk],enter:{literalAutolink:Bk,literalAutolinkEmail:Am,literalAutolinkHttp:Am,literalAutolinkWww:Am},exit:{literalAutolink:Uk,literalAutolinkEmail:qk,literalAutolinkHttp:Ik,literalAutolinkWww:Lk}}}function _k(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:jm,notInConstruct:Tm},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:jm,notInConstruct:Tm},{character:":",before:"[ps]",after:"\\/",inConstruct:jm,notInConstruct:Tm}]}}function Bk(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Am(e){this.config.enter.autolinkProtocol.call(this,e)}function Ik(e){this.config.exit.autolinkProtocol.call(this,e)}function Lk(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function qk(e){this.config.exit.autolinkEmail.call(this,e)}function Uk(e){this.exit(e)}function Hk(e){Mk(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Fk],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),$k]],{ignore:["link","linkReference"]})}function Fk(e,t,n,i,l){let o="";if(!d6(l)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!Gk(n)))return!1;const c=Pk(n+i);if(!c[0])return!1;const f={type:"link",title:null,url:o+t+c[0],children:[{type:"text",value:t+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function $k(e,t,n,i){return!d6(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Gk(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Pk(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const l=Ey(e,"(");let o=Ey(e,")");for(;i!==-1&&l>o;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),o++;return[e,n]}function d6(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Fs(n)||cf(n))&&(!t||n!==47)}f6.peek=eS;function Vk(){this.buffer()}function Yk(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Wk(){this.buffer()}function Xk(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Kk(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ea(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Qk(e){this.exit(e)}function Zk(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ea(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Jk(e){this.exit(e)}function eS(){return"["}function f6(e,t,n,i){const l=n.createTracker(i);let o=l.move("[^");const c=n.enter("footnoteReference"),f=n.enter("reference");return o+=l.move(n.safe(n.associationId(e),{after:"]",before:o})),f(),c(),o+=l.move("]"),o}function tS(){return{enter:{gfmFootnoteCallString:Vk,gfmFootnoteCall:Yk,gfmFootnoteDefinitionLabelString:Wk,gfmFootnoteDefinition:Xk},exit:{gfmFootnoteCallString:Kk,gfmFootnoteCall:Qk,gfmFootnoteDefinitionLabelString:Zk,gfmFootnoteDefinition:Jk}}}function nS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:f6},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,l,o,c){const f=o.createTracker(c);let h=f.move("[^");const m=o.enter("footnoteDefinition"),y=o.enter("label");return h+=f.move(o.safe(o.associationId(i),{before:h,after:"]"})),y(),h+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),h+=f.move((t?`
|
|
64
|
-
`:" ")+o.indentLines(o.containerFlow(i,f.current()),t?h6:rS))),m(),h}}function rS(e,t,n){return t===0?e:h6(e,t,n)}function h6(e,t,n){return(n?"":" ")+e}const aS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];m6.peek=uS;function iS(){return{canContainEols:["delete"],enter:{strikethrough:sS},exit:{strikethrough:oS}}}function lS(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:aS}],handlers:{delete:m6}}}function sS(e){this.enter({type:"delete",children:[]},e)}function oS(e){this.exit(e)}function m6(e,t,n,i){const l=n.createTracker(i),o=n.enter("strikethrough");let c=l.move("~~");return c+=n.containerPhrasing(e,{...l.current(),before:c,after:"~"}),c+=l.move("~~"),o(),c}function uS(){return"~"}function cS(e){return e.length}function dS(e,t){const n=t||{},i=(n.align||[]).concat(),l=n.stringLength||cS,o=[],c=[],f=[],h=[];let m=0,y=-1;for(;++y<e.length;){const E=[],q=[];let R=-1;for(e[y].length>m&&(m=e[y].length);++R<e[y].length;){const B=fS(e[y][R]);if(n.alignDelimiters!==!1){const F=l(B);q[R]=F,(h[R]===void 0||F>h[R])&&(h[R]=F)}E.push(B)}c[y]=E,f[y]=q}let v=-1;if(typeof i=="object"&&"length"in i)for(;++v<m;)o[v]=Ny(i[v]);else{const E=Ny(i);for(;++v<m;)o[v]=E}v=-1;const k=[],w=[];for(;++v<m;){const E=o[v];let q="",R="";E===99?(q=":",R=":"):E===108?q=":":E===114&&(R=":");let B=n.alignDelimiters===!1?1:Math.max(1,h[v]-q.length-R.length);const F=q+"-".repeat(B)+R;n.alignDelimiters!==!1&&(B=q.length+B+R.length,B>h[v]&&(h[v]=B),w[v]=B),k[v]=F}c.splice(1,0,k),f.splice(1,0,w),y=-1;const T=[];for(;++y<c.length;){const E=c[y],q=f[y];v=-1;const R=[];for(;++v<m;){const B=E[v]||"";let F="",Y="";if(n.alignDelimiters!==!1){const te=h[v]-(q[v]||0),_=o[v];_===114?F=" ".repeat(te):_===99?te%2?(F=" ".repeat(te/2+.5),Y=" ".repeat(te/2-.5)):(F=" ".repeat(te/2),Y=F):Y=" ".repeat(te)}n.delimiterStart!==!1&&!v&&R.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&B==="")&&(n.delimiterStart!==!1||v)&&R.push(" "),n.alignDelimiters!==!1&&R.push(F),R.push(B),n.alignDelimiters!==!1&&R.push(Y),n.padding!==!1&&R.push(" "),(n.delimiterEnd!==!1||v!==m-1)&&R.push("|")}T.push(n.delimiterEnd===!1?R.join("").replace(/ +$/,""):R.join(""))}return T.join(`
|
|
65
|
-
`)}function fS(e){return e==null?"":String(e)}function Ny(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function hS(e,t,n,i){const l=n.enter("blockquote"),o=n.createTracker(i);o.move("> "),o.shift(2);const c=n.indentLines(n.containerFlow(e,o.current()),mS);return l(),c}function mS(e,t,n){return">"+(n?"":" ")+e}function pS(e,t){return My(e,t.inConstruct,!0)&&!My(e,t.notInConstruct,!1)}function My(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function zy(e,t,n,i){let l=-1;for(;++l<n.unsafe.length;)if(n.unsafe[l].character===`
|
|
66
|
-
`&&pS(n.stack,n.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
67
|
-
`}function p6(e,t){const n=String(e);let i=n.indexOf(t),l=i,o=0,c=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===l?++o>c&&(c=o):o=1,l=i+t.length,i=n.indexOf(t,l);return c}function gS(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function yS(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function vS(e,t,n,i){const l=yS(n),o=e.value||"",c=l==="`"?"GraveAccent":"Tilde";if(gS(e,n)){const v=n.enter("codeIndented"),k=n.indentLines(o,xS);return v(),k}const f=n.createTracker(i),h=l.repeat(Math.max(p6(o,l)+1,3)),m=n.enter("codeFenced");let y=f.move(h);if(e.lang){const v=n.enter(`codeFencedLang${c}`);y+=f.move(n.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),v()}if(e.lang&&e.meta){const v=n.enter(`codeFencedMeta${c}`);y+=f.move(" "),y+=f.move(n.safe(e.meta,{before:y,after:`
|
|
68
|
-
`,encode:["`"],...f.current()})),v()}return y+=f.move(`
|
|
69
|
-
`),o&&(y+=f.move(o+`
|
|
70
|
-
`)),y+=f.move(h),m(),y}function xS(e,t,n){return(n?"":" ")+e}function g1(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function bS(e,t,n,i){const l=g1(n),o=l==='"'?"Quote":"Apostrophe",c=n.enter("definition");let f=n.enter("label");const h=n.createTracker(i);let m=h.move("[");return m+=h.move(n.safe(n.associationId(e),{before:m,after:"]",...h.current()})),m+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(n.safe(e.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(f=n.enter("destinationRaw"),m+=h.move(n.safe(e.url,{before:m,after:e.title?" ":`
|
|
71
|
-
`,...h.current()}))),f(),e.title&&(f=n.enter(`title${o}`),m+=h.move(" "+l),m+=h.move(n.safe(e.title,{before:m,after:l,...h.current()})),m+=h.move(l),f()),c(),m}function wS(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Hc(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Qd(e,t,n){const i=Jo(e),l=Jo(t);return i===void 0?l===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}g6.peek=kS;function g6(e,t,n,i){const l=wS(n),o=n.enter("emphasis"),c=n.createTracker(i),f=c.move(l);let h=c.move(n.containerPhrasing(e,{after:l,before:f,...c.current()}));const m=h.charCodeAt(0),y=Qd(i.before.charCodeAt(i.before.length-1),m,l);y.inside&&(h=Hc(m)+h.slice(1));const v=h.charCodeAt(h.length-1),k=Qd(i.after.charCodeAt(0),v,l);k.inside&&(h=h.slice(0,-1)+Hc(v));const w=c.move(l);return o(),n.attentionEncodeSurroundingInfo={after:k.outside,before:y.outside},f+h+w}function kS(e,t,n){return n.options.emphasis||"*"}function SS(e,t){let n=!1;return m1(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,pp}),!!((!e.depth||e.depth<3)&&l1(e)&&(t.options.setext||n))}function CS(e,t,n,i){const l=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(i);if(SS(e,n)){const y=n.enter("headingSetext"),v=n.enter("phrasing"),k=n.containerPhrasing(e,{...o.current(),before:`
|
|
72
|
-
`,after:`
|
|
73
|
-
`});return v(),y(),k+`
|
|
74
|
-
`+(l===1?"=":"-").repeat(k.length-(Math.max(k.lastIndexOf("\r"),k.lastIndexOf(`
|
|
75
|
-
`))+1))}const c="#".repeat(l),f=n.enter("headingAtx"),h=n.enter("phrasing");o.move(c+" ");let m=n.containerPhrasing(e,{before:"# ",after:`
|
|
76
|
-
`,...o.current()});return/^[\t ]/.test(m)&&(m=Hc(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,n.options.closeAtx&&(m+=" "+c),h(),f(),m}y6.peek=jS;function y6(e){return e.value||""}function jS(){return"<"}v6.peek=TS;function v6(e,t,n,i){const l=g1(n),o=l==='"'?"Quote":"Apostrophe",c=n.enter("image");let f=n.enter("label");const h=n.createTracker(i);let m=h.move("![");return m+=h.move(n.safe(e.alt,{before:m,after:"]",...h.current()})),m+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),m+=h.move("<"),m+=h.move(n.safe(e.url,{before:m,after:">",...h.current()})),m+=h.move(">")):(f=n.enter("destinationRaw"),m+=h.move(n.safe(e.url,{before:m,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=n.enter(`title${o}`),m+=h.move(" "+l),m+=h.move(n.safe(e.title,{before:m,after:l,...h.current()})),m+=h.move(l),f()),m+=h.move(")"),c(),m}function TS(){return"!"}x6.peek=AS;function x6(e,t,n,i){const l=e.referenceType,o=n.enter("imageReference");let c=n.enter("label");const f=n.createTracker(i);let h=f.move("![");const m=n.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(m+"]["),c();const y=n.stack;n.stack=[],c=n.enter("reference");const v=n.safe(n.associationId(e),{before:h,after:"]",...f.current()});return c(),n.stack=y,o(),l==="full"||!m||m!==v?h+=f.move(v+"]"):l==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function AS(){return"!"}b6.peek=ES;function b6(e,t,n){let i=e.value||"",l="`",o=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(i);)l+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o<n.unsafe.length;){const c=n.unsafe[o],f=n.compilePattern(c);let h;if(c.atBreak)for(;h=f.exec(i);){let m=h.index;i.charCodeAt(m)===10&&i.charCodeAt(m-1)===13&&m--,i=i.slice(0,m)+" "+i.slice(h.index+1)}}return l+i+l}function ES(){return"`"}function w6(e,t){const n=l1(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}k6.peek=NS;function k6(e,t,n,i){const l=g1(n),o=l==='"'?"Quote":"Apostrophe",c=n.createTracker(i);let f,h;if(w6(e,n)){const y=n.stack;n.stack=[],f=n.enter("autolink");let v=c.move("<");return v+=c.move(n.containerPhrasing(e,{before:v,after:">",...c.current()})),v+=c.move(">"),f(),n.stack=y,v}f=n.enter("link"),h=n.enter("label");let m=c.move("[");return m+=c.move(n.containerPhrasing(e,{before:m,after:"](",...c.current()})),m+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=n.enter("destinationLiteral"),m+=c.move("<"),m+=c.move(n.safe(e.url,{before:m,after:">",...c.current()})),m+=c.move(">")):(h=n.enter("destinationRaw"),m+=c.move(n.safe(e.url,{before:m,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=n.enter(`title${o}`),m+=c.move(" "+l),m+=c.move(n.safe(e.title,{before:m,after:l,...c.current()})),m+=c.move(l),h()),m+=c.move(")"),f(),m}function NS(e,t,n){return w6(e,n)?"<":"["}S6.peek=MS;function S6(e,t,n,i){const l=e.referenceType,o=n.enter("linkReference");let c=n.enter("label");const f=n.createTracker(i);let h=f.move("[");const m=n.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(m+"]["),c();const y=n.stack;n.stack=[],c=n.enter("reference");const v=n.safe(n.associationId(e),{before:h,after:"]",...f.current()});return c(),n.stack=y,o(),l==="full"||!m||m!==v?h+=f.move(v+"]"):l==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function MS(){return"["}function y1(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function zS(e){const t=y1(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function DS(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function C6(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function RS(e,t,n,i){const l=n.enter("list"),o=n.bulletCurrent;let c=e.ordered?DS(n):y1(n);const f=e.ordered?c==="."?")":".":zS(n);let h=t&&n.bulletLastUsed?c===n.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(h=!0),C6(n)===c&&y){let v=-1;for(;++v<e.children.length;){const k=e.children[v];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=f),n.bulletCurrent=c;const m=n.containerFlow(e,i);return n.bulletLastUsed=c,n.bulletCurrent=o,l(),m}function OS(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function _S(e,t,n,i){const l=OS(n);let o=n.bulletCurrent||y1(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let c=o.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=n.createTracker(i);f.move(o+" ".repeat(c-o.length)),f.shift(c);const h=n.enter("listItem"),m=n.indentLines(n.containerFlow(e,f.current()),y);return h(),m;function y(v,k,w){return k?(w?"":" ".repeat(c))+v:(w?o:o+" ".repeat(c-o.length))+v}}function BS(e,t,n,i){const l=n.enter("paragraph"),o=n.enter("phrasing"),c=n.containerPhrasing(e,i);return o(),l(),c}const IS=Vc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function LS(e,t,n,i){return(e.children.some(function(c){return IS(c)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function qS(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}j6.peek=US;function j6(e,t,n,i){const l=qS(n),o=n.enter("strong"),c=n.createTracker(i),f=c.move(l+l);let h=c.move(n.containerPhrasing(e,{after:l,before:f,...c.current()}));const m=h.charCodeAt(0),y=Qd(i.before.charCodeAt(i.before.length-1),m,l);y.inside&&(h=Hc(m)+h.slice(1));const v=h.charCodeAt(h.length-1),k=Qd(i.after.charCodeAt(0),v,l);k.inside&&(h=h.slice(0,-1)+Hc(v));const w=c.move(l+l);return o(),n.attentionEncodeSurroundingInfo={after:k.outside,before:y.outside},f+h+w}function US(e,t,n){return n.options.strong||"*"}function HS(e,t,n,i){return n.safe(e.value,i)}function FS(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function $S(e,t,n){const i=(C6(n)+(n.options.ruleSpaces?" ":"")).repeat(FS(n));return n.options.ruleSpaces?i.slice(0,-1):i}const T6={blockquote:hS,break:zy,code:vS,definition:bS,emphasis:g6,hardBreak:zy,heading:CS,html:y6,image:v6,imageReference:x6,inlineCode:b6,link:k6,linkReference:S6,list:RS,listItem:_S,paragraph:BS,root:LS,strong:j6,text:HS,thematicBreak:$S};function GS(){return{enter:{table:PS,tableData:Dy,tableHeader:Dy,tableRow:YS},exit:{codeText:WS,table:VS,tableData:Em,tableHeader:Em,tableRow:Em}}}function PS(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function VS(e){this.exit(e),this.data.inTable=void 0}function YS(e){this.enter({type:"tableRow",children:[]},e)}function Em(e){this.exit(e)}function Dy(e){this.enter({type:"tableCell",children:[]},e)}function WS(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,XS));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function XS(e,t){return t==="|"?t:e}function KS(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,l=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
77
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:c,tableCell:h,tableRow:f}};function c(w,T,E,q){return m(y(w,E,q),w.align)}function f(w,T,E,q){const R=v(w,E,q),B=m([R]);return B.slice(0,B.indexOf(`
|
|
78
|
-
`))}function h(w,T,E,q){const R=E.enter("tableCell"),B=E.enter("phrasing"),F=E.containerPhrasing(w,{...q,before:o,after:o});return B(),R(),F}function m(w,T){return dS(w,{align:T,alignDelimiters:i,padding:n,stringLength:l})}function y(w,T,E){const q=w.children;let R=-1;const B=[],F=T.enter("table");for(;++R<q.length;)B[R]=v(q[R],T,E);return F(),B}function v(w,T,E){const q=w.children;let R=-1;const B=[],F=T.enter("tableRow");for(;++R<q.length;)B[R]=h(q[R],w,T,E);return F(),B}function k(w,T,E){let q=T6.inlineCode(w,T,E);return E.stack.includes("tableCell")&&(q=q.replace(/\|/g,"\\$&")),q}}function QS(){return{exit:{taskListCheckValueChecked:Ry,taskListCheckValueUnchecked:Ry,paragraph:JS}}}function ZS(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:eC}}}function Ry(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function JS(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const l=t.children;let o=-1,c;for(;++o<l.length;){const f=l[o];if(f.type==="paragraph"){c=f;break}}c===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function eC(e,t,n,i){const l=e.children[0],o=typeof e.checked=="boolean"&&l&&l.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=n.createTracker(i);o&&f.move(c);let h=T6.listItem(e,t,n,{...i,...f.current()});return o&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),h;function m(y){return y+c}}function tC(){return[Ok(),tS(),iS(),GS(),QS()]}function nC(e){return{extensions:[_k(),nS(e),lS(),KS(e),ZS()]}}const rC={tokenize:uC,partial:!0},A6={tokenize:cC,partial:!0},E6={tokenize:dC,partial:!0},N6={tokenize:fC,partial:!0},aC={tokenize:hC,partial:!0},M6={name:"wwwAutolink",tokenize:sC,previous:D6},z6={name:"protocolAutolink",tokenize:oC,previous:R6},Hi={name:"emailAutolink",tokenize:lC,previous:O6},ei={};function iC(){return{text:ei}}let Ds=48;for(;Ds<123;)ei[Ds]=Hi,Ds++,Ds===58?Ds=65:Ds===91&&(Ds=97);ei[43]=Hi;ei[45]=Hi;ei[46]=Hi;ei[95]=Hi;ei[72]=[Hi,z6];ei[104]=[Hi,z6];ei[87]=[Hi,M6];ei[119]=[Hi,M6];function lC(e,t,n){const i=this;let l,o;return c;function c(v){return!xp(v)||!O6.call(i,i.previous)||v1(i.events)?n(v):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(v))}function f(v){return xp(v)?(e.consume(v),f):v===64?(e.consume(v),h):n(v)}function h(v){return v===46?e.check(aC,y,m)(v):v===45||v===95||$n(v)?(o=!0,e.consume(v),h):y(v)}function m(v){return e.consume(v),l=!0,h}function y(v){return o&&l&&Zn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(v)):n(v)}}function sC(e,t,n){const i=this;return l;function l(c){return c!==87&&c!==119||!D6.call(i,i.previous)||v1(i.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rC,e.attempt(A6,e.attempt(E6,o),n),n)(c))}function o(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(c)}}function oC(e,t,n){const i=this;let l="",o=!1;return c;function c(v){return(v===72||v===104)&&R6.call(i,i.previous)&&!v1(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(v),e.consume(v),f):n(v)}function f(v){if(Zn(v)&&l.length<5)return l+=String.fromCodePoint(v),e.consume(v),f;if(v===58){const k=l.toLowerCase();if(k==="http"||k==="https")return e.consume(v),h}return n(v)}function h(v){return v===47?(e.consume(v),o?m:(o=!0,h)):n(v)}function m(v){return v===null||Wd(v)||$t(v)||Fs(v)||cf(v)?n(v):e.attempt(A6,e.attempt(E6,y),n)(v)}function y(v){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(v)}}function uC(e,t,n){let i=0;return l;function l(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),l):c===46&&i===3?(e.consume(c),o):n(c)}function o(c){return c===null?n(c):t(c)}}function cC(e,t,n){let i,l,o;return c;function c(m){return m===46||m===95?e.check(N6,h,f)(m):m===null||$t(m)||Fs(m)||m!==45&&cf(m)?h(m):(o=!0,e.consume(m),c)}function f(m){return m===95?i=!0:(l=i,i=void 0),e.consume(m),c}function h(m){return l||i||!o?n(m):t(m)}}function dC(e,t){let n=0,i=0;return l;function l(c){return c===40?(n++,e.consume(c),l):c===41&&i<n?o(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(N6,t,o)(c):c===null||$t(c)||Fs(c)?t(c):(e.consume(c),l)}function o(c){return c===41&&i++,e.consume(c),l}}function fC(e,t,n){return i;function i(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),i):f===38?(e.consume(f),o):f===93?(e.consume(f),l):f===60||f===null||$t(f)||Fs(f)?t(f):n(f)}function l(f){return f===null||f===40||f===91||$t(f)||Fs(f)?t(f):i(f)}function o(f){return Zn(f)?c(f):n(f)}function c(f){return f===59?(e.consume(f),i):Zn(f)?(e.consume(f),c):n(f)}}function hC(e,t,n){return i;function i(o){return e.consume(o),l}function l(o){return $n(o)?n(o):t(o)}}function D6(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||$t(e)}function R6(e){return!Zn(e)}function O6(e){return!(e===47||xp(e))}function xp(e){return e===43||e===45||e===46||e===95||$n(e)}function v1(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const mC={tokenize:kC,partial:!0};function pC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:xC,continuation:{tokenize:bC},exit:wC}},text:{91:{name:"gfmFootnoteCall",tokenize:vC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gC,resolveTo:yC}}}}function gC(e,t,n){const i=this;let l=i.events.length;const o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;l--;){const h=i.events[l][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return n(h);const m=Ea(i.sliceSerialize({start:c.end,end:i.now()}));return m.codePointAt(0)!==94||!o.includes(m.slice(1))?n(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function yC(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},f=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",l,t],["exit",l,t],["enter",o,t],["enter",c,t],["exit",c,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...f),e}function vC(e,t,n){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o=0,c;return f;function f(v){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(v),e.exit("gfmFootnoteCallLabelMarker"),h}function h(v){return v!==94?n(v):(e.enter("gfmFootnoteCallMarker"),e.consume(v),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",m)}function m(v){if(o>999||v===93&&!c||v===null||v===91||$t(v))return n(v);if(v===93){e.exit("chunkString");const k=e.exit("gfmFootnoteCallString");return l.includes(Ea(i.sliceSerialize(k)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(v),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(v)}return $t(v)||(c=!0),o++,e.consume(v),v===92?y:m}function y(v){return v===91||v===92||v===93?(e.consume(v),o++,m):m(v)}}function xC(e,t,n){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o,c=0,f;return h;function h(T){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(T){return T===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):n(T)}function y(T){if(c>999||T===93&&!f||T===null||T===91||$t(T))return n(T);if(T===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return o=Ea(i.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),k}return $t(T)||(f=!0),c++,e.consume(T),T===92?v:y}function v(T){return T===91||T===92||T===93?(e.consume(T),c++,y):y(T)}function k(T){return T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),l.includes(o)||l.push(o),ht(e,w,"gfmFootnoteDefinitionWhitespace")):n(T)}function w(T){return t(T)}}function bC(e,t,n){return e.check(Pc,t,e.attempt(mC,t,n))}function wC(e){e.exit("gfmFootnoteDefinition")}function kC(e,t,n){const i=this;return ht(e,l,"gfmFootnoteDefinitionIndent",5);function l(o){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(o):n(o)}}function SC(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:o,resolveAll:l};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(c,f){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let m=h;for(;m--;)if(c[m][0]==="exit"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[m][1].end.offset-c[m][1].start.offset){c[h][1].type="strikethroughSequence",c[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[m][1].start),end:Object.assign({},c[h][1].end)},v={type:"strikethroughText",start:Object.assign({},c[m][1].end),end:Object.assign({},c[h][1].start)},k=[["enter",y,f],["enter",c[m][1],f],["exit",c[m][1],f],["enter",v,f]],w=f.parser.constructs.insideSpan.null;w&&Rr(k,k.length,0,df(w,c.slice(m+1,h),f)),Rr(k,k.length,0,[["exit",v,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",y,f]]),Rr(c,m-1,h-m+3,k),h=m+k.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function o(c,f,h){const m=this.previous,y=this.events;let v=0;return k;function k(T){return m===126&&y[y.length-1][1].type!=="characterEscape"?h(T):(c.enter("strikethroughSequenceTemporary"),w(T))}function w(T){const E=Jo(m);if(T===126)return v>1?h(T):(c.consume(T),v++,w);if(v<2&&!n)return h(T);const q=c.exit("strikethroughSequenceTemporary"),R=Jo(T);return q._open=!R||R===2&&!!E,q._close=!E||E===2&&!!R,f(T)}}}class CC{constructor(){this.map=[]}add(t,n,i){jC(this,t,n,i)}consume(t){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let l=i.pop();for(;l;){for(const o of l)t.push(o);l=i.pop()}this.map.length=0}}function jC(e,t,n,i){let l=0;if(!(n===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=n,e.map[l][2].push(...i);return}l+=1}e.map.push([t,n,i])}}function TC(e,t){let n=!1;const i=[];for(;t<e.length;){const l=e[t];if(n){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=i.length-1;i[o]=i[o]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function AC(){return{flow:{null:{name:"table",tokenize:EC,resolveAll:NC}}}}function EC(e,t,n){const i=this;let l=0,o=0,c;return f;function f(G){let ce=i.events.length-1;for(;ce>-1;){const Ce=i.events[ce][1].type;if(Ce==="lineEnding"||Ce==="linePrefix")ce--;else break}const fe=ce>-1?i.events[ce][1].type:null,Be=fe==="tableHead"||fe==="tableRow"?_:h;return Be===_&&i.parser.lazy[i.now().line]?n(G):Be(G)}function h(G){return e.enter("tableHead"),e.enter("tableRow"),m(G)}function m(G){return G===124||(c=!0,o+=1),y(G)}function y(G){return G===null?n(G):Ve(G)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(G),e.exit("lineEnding"),w):n(G):yt(G)?ht(e,y,"whitespace")(G):(o+=1,c&&(c=!1,l+=1),G===124?(e.enter("tableCellDivider"),e.consume(G),e.exit("tableCellDivider"),c=!0,y):(e.enter("data"),v(G)))}function v(G){return G===null||G===124||$t(G)?(e.exit("data"),y(G)):(e.consume(G),G===92?k:v)}function k(G){return G===92||G===124?(e.consume(G),v):v(G)}function w(G){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(G):(e.enter("tableDelimiterRow"),c=!1,yt(G)?ht(e,T,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):T(G))}function T(G){return G===45||G===58?q(G):G===124?(c=!0,e.enter("tableCellDivider"),e.consume(G),e.exit("tableCellDivider"),E):te(G)}function E(G){return yt(G)?ht(e,q,"whitespace")(G):q(G)}function q(G){return G===58?(o+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(G),e.exit("tableDelimiterMarker"),R):G===45?(o+=1,R(G)):G===null||Ve(G)?Y(G):te(G)}function R(G){return G===45?(e.enter("tableDelimiterFiller"),B(G)):te(G)}function B(G){return G===45?(e.consume(G),B):G===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(G),e.exit("tableDelimiterMarker"),F):(e.exit("tableDelimiterFiller"),F(G))}function F(G){return yt(G)?ht(e,Y,"whitespace")(G):Y(G)}function Y(G){return G===124?T(G):G===null||Ve(G)?!c||l!==o?te(G):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(G)):te(G)}function te(G){return n(G)}function _(G){return e.enter("tableRow"),K(G)}function K(G){return G===124?(e.enter("tableCellDivider"),e.consume(G),e.exit("tableCellDivider"),K):G===null||Ve(G)?(e.exit("tableRow"),t(G)):yt(G)?ht(e,K,"whitespace")(G):(e.enter("data"),le(G))}function le(G){return G===null||G===124||$t(G)?(e.exit("data"),K(G)):(e.consume(G),G===92?J:le)}function J(G){return G===92||G===124?(e.consume(G),le):le(G)}}function NC(e,t){let n=-1,i=!0,l=0,o=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,m,y,v;const k=new CC;for(;++n<e.length;){const w=e[n],T=w[1];w[0]==="enter"?T.type==="tableHead"?(f=!1,h!==0&&(Oy(k,t,h,m,y),y=void 0,h=0),m={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},k.add(n,0,[["enter",m,t]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(i=!0,v=void 0,o=[0,0,0,0],c=[0,n+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},k.add(n,0,[["enter",y,t]])),l=T.type==="tableDelimiterRow"?2:y?3:1):l&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],v=Sd(k,t,o,l,void 0,v),o=[0,0,0,0]),c[2]=n)):T.type==="tableCellDivider"&&(i?i=!1:(o[1]!==0&&(c[0]=c[1],v=Sd(k,t,o,l,void 0,v)),o=c,c=[o[1],n,0,0])):T.type==="tableHead"?(f=!0,h=n):T.type==="tableRow"||T.type==="tableDelimiterRow"?(h=n,o[1]!==0?(c[0]=c[1],v=Sd(k,t,o,l,n,v)):c[1]!==0&&(v=Sd(k,t,c,l,n,v)),l=0):l&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(c[3]=n)}for(h!==0&&Oy(k,t,h,m,y),k.consume(t.events),n=-1;++n<t.events.length;){const w=t.events[n];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=TC(t.events,n))}return e}function Sd(e,t,n,i,l,o){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(o.end=Object.assign({},Yo(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const h=Yo(t.events,n[1]);if(o={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const m=Yo(t.events,n[2]),y=Yo(t.events,n[3]),v={type:f,start:Object.assign({},m),end:Object.assign({},y)};if(e.add(n[2],0,[["enter",v,t]]),i!==2){const k=t.events[n[2]],w=t.events[n[3]];if(k[1].end=Object.assign({},w[1].end),k[1].type="chunkText",k[1].contentType="text",n[3]>n[2]+1){const T=n[2]+1,E=n[3]-n[2]-1;e.add(T,E,[])}}e.add(n[3]+1,0,[["exit",v,t]])}return l!==void 0&&(o.end=Object.assign({},Yo(t.events,l)),e.add(l,0,[["exit",o,t]]),o=void 0),o}function Oy(e,t,n,i,l){const o=[],c=Yo(t.events,n);l&&(l.end=Object.assign({},c),o.push(["exit",l,t])),i.end=Object.assign({},c),o.push(["exit",i,t]),e.add(n+1,0,o)}function Yo(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const MC={name:"tasklistCheck",tokenize:DC};function zC(){return{text:{91:MC}}}function DC(e,t,n){const i=this;return l;function l(h){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),o)}function o(h){return $t(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):n(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):n(h)}function f(h){return Ve(h)?t(h):yt(h)?e.check({tokenize:RC},t,n)(h):n(h)}}function RC(e,t,n){return ht(e,i,"whitespace");function i(l){return l===null?n(l):t(l)}}function OC(e){return G5([iC(),pC(),SC(e),AC(),zC()])}const _C={};function BC(e){const t=this,n=e||_C,i=t.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(OC(n)),o.push(tC()),c.push(nC(n))}function IC(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:o},exit:{mathFlow:l,mathFlowFence:i,mathFlowFenceMeta:n,mathFlowValue:f,mathText:c,mathTextData:f}};function e(h){const m={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[m]}},h)}function t(){this.buffer()}function n(){const h=this.resume(),m=this.stack[this.stack.length-1];m.type,m.meta=h}function i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function l(h){const m=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),y=this.stack[this.stack.length-1];y.type,this.exit(h),y.value=m;const v=y.data.hChildren[0];v.type,v.tagName,v.children.push({type:"text",value:m}),this.data.mathFlowInside=void 0}function o(h){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},h),this.buffer()}function c(h){const m=this.resume(),y=this.stack[this.stack.length-1];y.type,this.exit(h),y.value=m,y.data.hChildren.push({type:"text",value:m})}function f(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function LC(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),i.peek=l,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
79
|
-
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:i}};function n(o,c,f,h){const m=o.value||"",y=f.createTracker(h),v="$".repeat(Math.max(p6(m,"$")+1,2)),k=f.enter("mathFlow");let w=y.move(v);if(o.meta){const T=f.enter("mathFlowMeta");w+=y.move(f.safe(o.meta,{after:`
|
|
80
|
-
`,before:w,encode:["$"],...y.current()})),T()}return w+=y.move(`
|
|
81
|
-
`),m&&(w+=y.move(m+`
|
|
82
|
-
`)),w+=y.move(v),k(),w}function i(o,c,f){let h=o.value||"",m=1;for(t||m++;new RegExp("(^|[^$])"+"\\$".repeat(m)+"([^$]|$)").test(h);)m++;const y="$".repeat(m);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let v=-1;for(;++v<f.unsafe.length;){const k=f.unsafe[v];if(!k.atBreak)continue;const w=f.compilePattern(k);let T;for(;T=w.exec(h);){let E=T.index;h.codePointAt(E)===10&&h.codePointAt(E-1)===13&&E--,h=h.slice(0,E)+" "+h.slice(T.index+1)}}return y+h+y}function l(){return"$"}}const qC={tokenize:UC,concrete:!0,name:"mathFlow"},_y={tokenize:HC,partial:!0};function UC(e,t,n){const i=this,l=i.events[i.events.length-1],o=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0;let c=0;return f;function f(B){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),h(B)}function h(B){return B===36?(e.consume(B),c++,h):c<2?n(B):(e.exit("mathFlowFenceSequence"),ht(e,m,"whitespace")(B))}function m(B){return B===null||Ve(B)?v(B):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(B))}function y(B){return B===null||Ve(B)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),v(B)):B===36?n(B):(e.consume(B),y)}function v(B){return e.exit("mathFlowFence"),i.interrupt?t(B):e.attempt(_y,k,q)(B)}function k(B){return e.attempt({tokenize:R,partial:!0},q,w)(B)}function w(B){return(o?ht(e,T,"linePrefix",o+1):T)(B)}function T(B){return B===null?q(B):Ve(B)?e.attempt(_y,k,q)(B):(e.enter("mathFlowValue"),E(B))}function E(B){return B===null||Ve(B)?(e.exit("mathFlowValue"),T(B)):(e.consume(B),E)}function q(B){return e.exit("mathFlow"),t(B)}function R(B,F,Y){let te=0;return ht(B,_,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function _(J){return B.enter("mathFlowFence"),B.enter("mathFlowFenceSequence"),K(J)}function K(J){return J===36?(te++,B.consume(J),K):te<c?Y(J):(B.exit("mathFlowFenceSequence"),ht(B,le,"whitespace")(J))}function le(J){return J===null||Ve(J)?(B.exit("mathFlowFence"),F(J)):Y(J)}}}function HC(e,t,n){const i=this;return l;function l(c){return c===null?t(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o)}function o(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function FC(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:i,resolve:$C,previous:GC,name:"mathText"};function i(l,o,c){let f=0,h,m;return y;function y(E){return l.enter("mathText"),l.enter("mathTextSequence"),v(E)}function v(E){return E===36?(l.consume(E),f++,v):f<2&&!n?c(E):(l.exit("mathTextSequence"),k(E))}function k(E){return E===null?c(E):E===36?(m=l.enter("mathTextSequence"),h=0,T(E)):E===32?(l.enter("space"),l.consume(E),l.exit("space"),k):Ve(E)?(l.enter("lineEnding"),l.consume(E),l.exit("lineEnding"),k):(l.enter("mathTextData"),w(E))}function w(E){return E===null||E===32||E===36||Ve(E)?(l.exit("mathTextData"),k(E)):(l.consume(E),w)}function T(E){return E===36?(l.consume(E),h++,T):h===f?(l.exit("mathTextSequence"),l.exit("mathText"),o(E)):(m.type="mathTextData",w(E))}}}function $C(e){let t=e.length-4,n=3,i,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)l===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(l=i):(i===t||e[i][1].type==="lineEnding")&&(e[l][1].type="mathTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function GC(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function PC(e){return{flow:{36:qC},text:{36:FC(e)}}}class je extends Error{constructor(t,n){var i="KaTeX parse error: "+t,l,o,c=n&&n.loc;if(c&&c.start<=c.end){var f=c.lexer.input;l=c.start,o=c.end,l===f.length?i+=" at end of input: ":i+=" at position "+(l+1)+": ";var h=f.slice(l,o).replace(/[^]/g,"$&̲"),m;l>15?m="…"+f.slice(l-15,l):m=f.slice(0,l);var y;o+15<f.length?y=f.slice(o,o+15)+"…":y=f.slice(o),i+=m+h+y}super(i),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,je.prototype),this.position=l,l!=null&&o!=null&&(this.length=o-l),this.rawMessage=t}}var VC=/([A-Z])/g,YC=e=>e.replace(VC,"-$1").toLowerCase(),WC={"&":"&",">":">","<":"<",'"':""","'":"'"},XC=/[&><"']/g,Gn=e=>String(e).replace(XC,t=>WC[t]),Fd=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Fd(e.body[0]):e:e.type==="font"?Fd(e.body):e,KC=new Set(["mathord","textord","atom"]),Fi=e=>KC.has(Fd(e).type),QC=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Zd={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function ZC(e){if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function JC(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return ZC(t)}function ej(e,t,n,i){var l=n[t];e[t]=l!==void 0?i.processor?i.processor(l):l:JC(i)}class x1{constructor(t){t===void 0&&(t={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n of Object.keys(Zd)){var i=Zd[n];i&&ej(this,n,t,i)}}reportNonstrict(t,n,i){var l=this.strict;if(typeof l=="function"&&(l=l(t,n,i)),!(!l||l==="ignore")){if(l===!0||l==="error")throw new je("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),i);l==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,i){var l=this.strict;if(typeof l=="function")try{l=l(t,n,i)}catch{l="error"}return!l||l==="ignore"?!1:l===!0||l==="error"?!0:l==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var n=QC(t.url);if(n==null)return!1;t.protocol=n}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}}class Ll{constructor(t,n,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=i}sup(){return Ka[tj[this.id]]}sub(){return Ka[nj[this.id]]}fracNum(){return Ka[rj[this.id]]}fracDen(){return Ka[aj[this.id]]}cramp(){return Ka[ij[this.id]]}text(){return Ka[lj[this.id]]}isTight(){return this.size>=2}}var b1=0,Jd=1,Ko=2,Li=3,Fc=4,sa=5,eu=6,Jn=7,Ka=[new Ll(b1,0,!1),new Ll(Jd,0,!0),new Ll(Ko,1,!1),new Ll(Li,1,!0),new Ll(Fc,2,!1),new Ll(sa,2,!0),new Ll(eu,3,!1),new Ll(Jn,3,!0)],tj=[Fc,sa,Fc,sa,eu,Jn,eu,Jn],nj=[sa,sa,sa,sa,Jn,Jn,Jn,Jn],rj=[Ko,Li,Fc,sa,eu,Jn,eu,Jn],aj=[Li,Li,sa,sa,Jn,Jn,Jn,Jn],ij=[Jd,Jd,Li,Li,sa,sa,Jn,Jn],lj=[b1,Jd,Ko,Li,Ko,Li,Ko,Li],at={DISPLAY:Ka[b1],TEXT:Ka[Ko],SCRIPT:Ka[Fc],SCRIPTSCRIPT:Ka[eu]},bp=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function sj(e){for(var t=0;t<bp.length;t++)for(var n=bp[t],i=0;i<n.blocks.length;i++){var l=n.blocks[i];if(e>=l[0]&&e<=l[1])return n.name}return null}var $d=[];bp.forEach(e=>e.blocks.forEach(t=>$d.push(...t)));function _6(e){for(var t=0;t<$d.length;t+=2)if(e>=$d[t]&&e<=$d[t+1])return!0;return!1}var Nn=e=>e+" "+e,Vo=80,oj=function(t,n){return"M95,"+(622+t+n)+`
|
|
83
|
-
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
84
|
-
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
85
|
-
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
86
|
-
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
87
|
-
c69,-144,104.5,-217.7,106.5,-221
|
|
88
|
-
l`+t/2.075+" -"+t+`
|
|
89
|
-
c5.3,-9.3,12,-14,20,-14
|
|
90
|
-
H400000v`+(40+t)+`H845.2724
|
|
91
|
-
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
92
|
-
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
93
|
-
M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},uj=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
|
|
94
|
-
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
95
|
-
c340,-704.7,510.7,-1060.3,512,-1067
|
|
96
|
-
l`+t/2.084+" -"+t+`
|
|
97
|
-
c4.7,-7.3,11,-11,19,-11
|
|
98
|
-
H40000v`+(40+t)+`H1012.3
|
|
99
|
-
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
100
|
-
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
101
|
-
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
102
|
-
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
103
|
-
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},cj=function(t,n){return"M983 "+(10+t+n)+`
|
|
104
|
-
l`+t/3.13+" -"+t+`
|
|
105
|
-
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
106
|
-
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
107
|
-
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
108
|
-
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
109
|
-
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
110
|
-
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
111
|
-
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
112
|
-
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},dj=function(t,n){return"M424,"+(2398+t+n)+`
|
|
113
|
-
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
114
|
-
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
115
|
-
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
116
|
-
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
117
|
-
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
118
|
-
v`+(40+t)+`H1014.6
|
|
119
|
-
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
120
|
-
c-2,6,-10,9,-24,9
|
|
121
|
-
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
|
|
122
|
-
h400000v`+(40+t)+"h-400000z"},fj=function(t,n){return"M473,"+(2713+t+n)+`
|
|
123
|
-
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
124
|
-
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
125
|
-
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
126
|
-
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
127
|
-
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
128
|
-
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
129
|
-
606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},hj=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},mj=function(t,n,i){var l=i-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
|
|
130
|
-
H742v`+l+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
131
|
-
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
132
|
-
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
133
|
-
219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},pj=function(t,n,i){n=1e3*n;var l="";switch(t){case"sqrtMain":l=oj(n,Vo);break;case"sqrtSize1":l=uj(n,Vo);break;case"sqrtSize2":l=cj(n,Vo);break;case"sqrtSize3":l=dj(n,Vo);break;case"sqrtSize4":l=fj(n,Vo);break;case"sqrtTall":l=mj(n,Vo,i)}return l},gj=function(t,n){switch(t){case"⎜":return Nn("M291 0 H417 V"+n+" H291z");case"∣":return Nn("M145 0 H188 V"+n+" H145z");case"∥":return Nn("M145 0 H188 V"+n+" H145z")+Nn("M367 0 H410 V"+n+" H367z");case"⎟":return Nn("M457 0 H583 V"+n+" H457z");case"⎢":return Nn("M319 0 H403 V"+n+" H319z");case"⎥":return Nn("M263 0 H347 V"+n+" H263z");case"⎪":return Nn("M384 0 H504 V"+n+" H384z");case"⏐":return Nn("M312 0 H355 V"+n+" H312z");case"‖":return Nn("M257 0 H300 V"+n+" H257z")+Nn("M478 0 H521 V"+n+" H478z");default:return""}},By={doubleleftarrow:`M262 157
|
|
134
|
-
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
135
|
-
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
136
|
-
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
137
|
-
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
138
|
-
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
139
|
-
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
140
|
-
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
141
|
-
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
142
|
-
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
143
|
-
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
144
|
-
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
145
|
-
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
146
|
-
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
147
|
-
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
148
|
-
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
149
|
-
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
150
|
-
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
151
|
-
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
152
|
-
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
153
|
-
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
154
|
-
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
155
|
-
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
156
|
-
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
157
|
-
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
158
|
-
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
159
|
-
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
160
|
-
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
161
|
-
435 0h399565z`,leftgroupunder:`M400000 262
|
|
162
|
-
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
163
|
-
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
164
|
-
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
165
|
-
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
166
|
-
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
167
|
-
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
168
|
-
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
169
|
-
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
170
|
-
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
171
|
-
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
172
|
-
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
173
|
-
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
174
|
-
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
175
|
-
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
176
|
-
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
177
|
-
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
178
|
-
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
179
|
-
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Nn("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Nn("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Nn("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Nn("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
180
|
-
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
181
|
-
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
182
|
-
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Nn("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
183
|
-
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
184
|
-
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
185
|
-
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
186
|
-
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
187
|
-
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
188
|
-
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
189
|
-
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
190
|
-
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
191
|
-
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
192
|
-
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
193
|
-
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
194
|
-
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
195
|
-
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
196
|
-
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
197
|
-
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
198
|
-
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
199
|
-
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
200
|
-
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
201
|
-
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
202
|
-
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
203
|
-
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
204
|
-
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
205
|
-
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
206
|
-
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
207
|
-
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
208
|
-
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
209
|
-
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
210
|
-
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
211
|
-
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
212
|
-
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
213
|
-
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
214
|
-
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
215
|
-
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
216
|
-
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
217
|
-
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
218
|
-
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
219
|
-
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
220
|
-
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
221
|
-
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
222
|
-
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
223
|
-
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
224
|
-
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
225
|
-
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
226
|
-
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
227
|
-
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
228
|
-
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
229
|
-
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
230
|
-
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
231
|
-
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Nn("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Nn("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Nn("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
232
|
-
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
233
|
-
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
234
|
-
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
235
|
-
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
236
|
-
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
237
|
-
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
238
|
-
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
239
|
-
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
240
|
-
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
241
|
-
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
242
|
-
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
243
|
-
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
244
|
-
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
245
|
-
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
246
|
-
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
247
|
-
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
248
|
-
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
249
|
-
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
250
|
-
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
251
|
-
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
252
|
-
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
253
|
-
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
254
|
-
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
255
|
-
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
256
|
-
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
257
|
-
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
258
|
-
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
259
|
-
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
260
|
-
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
261
|
-
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
262
|
-
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
263
|
-
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
264
|
-
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
265
|
-
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
266
|
-
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
267
|
-
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
268
|
-
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
269
|
-
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
270
|
-
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
271
|
-
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
272
|
-
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
273
|
-
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
274
|
-
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
275
|
-
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
276
|
-
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
277
|
-
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
278
|
-
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
279
|
-
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
280
|
-
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
281
|
-
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
282
|
-
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
283
|
-
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
284
|
-
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
285
|
-
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
286
|
-
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
287
|
-
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
288
|
-
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
289
|
-
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
290
|
-
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
291
|
-
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
292
|
-
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
293
|
-
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
294
|
-
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
295
|
-
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
296
|
-
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
297
|
-
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
298
|
-
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
299
|
-
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
300
|
-
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
301
|
-
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
302
|
-
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
303
|
-
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
304
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},yj=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 v84 h347 v-84
|
|
305
|
-
H403z M403 1759 V0 H319 V1759 v`+n+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
|
|
306
|
-
M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
|
|
307
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
308
|
-
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
|
|
309
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
310
|
-
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
|
|
311
|
-
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
|
|
312
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
313
|
-
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
|
|
314
|
-
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
|
|
315
|
-
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
|
|
316
|
-
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
|
|
317
|
-
M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
318
|
-
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
319
|
-
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
320
|
-
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
321
|
-
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
322
|
-
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
323
|
-
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
324
|
-
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
325
|
-
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
326
|
-
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
|
|
327
|
-
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
328
|
-
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
329
|
-
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
330
|
-
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
331
|
-
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
332
|
-
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function vj(e){return"toText"in e}class lu{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){return this.children.map(t=>{if(vj(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var wp={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},xj={ex:!0,em:!0,mu:!0},B6=function(t){return typeof t!="string"&&(t=t.unit),t in wp||t in xj||t==="ex"},nn=function(t,n){var i;if(t.unit in wp)i=wp[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")i=n.fontMetrics().cssEmPerMu;else{var l;if(n.style.isTight()?l=n.havingStyle(n.style.text()):l=n,t.unit==="ex")i=l.fontMetrics().xHeight;else if(t.unit==="em")i=l.fontMetrics().quad;else throw new je("Invalid unit: '"+t.unit+"'");l!==n&&(i*=l.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*i,n.maxSize)},Me=function(t){return+t.toFixed(4)+"em"},$l=function(t){return t.filter(n=>n).join(" ")},w1=function(t){var n="";for(var i of Object.keys(t)){var l=t[i];l!==void 0&&(n+=YC(i)+":"+l+";")}return n},I6=function(t,n,i){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},n){n.style.isTight()&&this.classes.push("mtight");var l=n.getColor();l&&(this.style.color=l)}},L6=function(t){var n=document.createElement(t);n.className=$l(this.classes),Object.assign(n.style,this.style);for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);for(var l=0;l<this.children.length;l++)n.appendChild(this.children[l].toNode());return n},bj=/[\s"'>/=\x00-\x1f]/,q6=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Gn($l(this.classes))+'"');var i=w1(this.style);i&&(n+=' style="'+Gn(i)+'"');for(var l of Object.keys(this.attributes)){if(bj.test(l))throw new je("Invalid attribute name '"+l+"'");n+=" "+l+'="'+Gn(this.attributes[l])+'"'}n+=">";for(var o=0;o<this.children.length;o++)n+=this.children[o].toMarkup();return n+="</"+t+">",n};class su{constructor(t,n,i,l){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,I6.call(this,t,i,l),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return L6.call(this,"span")}toMarkup(){return q6.call(this,"span")}}class mf{constructor(t,n,i,l){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,I6.call(this,n,l),this.children=i||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return L6.call(this,"a")}toMarkup(){return q6.call(this,"a")}}class wj{constructor(t,n,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=i}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");return t.src=this.src,t.alt=this.alt,t.className="mord",Object.assign(t.style,this.style),t}toMarkup(){var t='<img src="'+Gn(this.src)+'"'+(' alt="'+Gn(this.alt)+'"'),n=w1(this.style);return n&&(t+=' style="'+Gn(n)+'"'),t+="'/>",t}}var kj={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class _r{constructor(t,n,i,l,o,c,f,h){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=i||0,this.italic=l||0,this.skew=o||0,this.width=c||0,this.classes=f||[],this.style=h||{},this.maxFontSize=0;var m=sj(this.text.charCodeAt(0));m&&this.classes.push(m+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=kj[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;return this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Me(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=$l(this.classes)),Object.keys(this.style).length>0&&(n=n||document.createElement("span"),Object.assign(n.style,this.style)),n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=Gn($l(this.classes)),n+='"');var i="";this.italic>0&&(i+="margin-right:"+Me(this.italic)+";"),i+=w1(this.style),i&&(t=!0,n+=' style="'+Gn(i)+'"');var l=Gn(this.text);return t?(n+=">",n+=l,n+="</span>",n):l}}class Ui{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);for(var l=0;l<this.children.length;l++)n.appendChild(this.children[l].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n of Object.keys(this.attributes))t+=" "+n+'="'+Gn(this.attributes[n])+'"';t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class Gl{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",By[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Gn(this.alternate)+'"/>':'<path d="'+Gn(By[this.pathName])+'"/>'}}class kp{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);return n}toMarkup(){var t="<line";for(var n of Object.keys(this.attributes))t+=" "+n+'="'+Gn(this.attributes[n])+'"';return t+="/>",t}}function Sj(e){if(e instanceof _r)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Cj(e){if(e instanceof su)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var jj=e=>e instanceof su||e instanceof mf||e instanceof lu,Za={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Cd={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Iy={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function U6(e,t){Za[e]=t}function k1(e,t,n){if(!Za[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),l=Za[t][i];if(!l&&e[0]in Iy&&(i=Iy[e[0]].charCodeAt(0),l=Za[t][i]),!l&&n==="text"&&_6(i)&&(l=Za[t][77]),l)return{depth:l[0],height:l[1],italic:l[2],skew:l[3],width:l[4]}}var Nm={};function Tj(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Nm[t]){var n=Nm[t]={cssEmPerMu:Cd.quad[t]/18};for(var i in Cd)Cd.hasOwnProperty(i)&&(n[i]=Cd[i][t])}return Nm[t]}var Kt={math:{},text:{}};function b(e,t,n,i,l,o){Kt[e][l]={font:t,group:n,replace:i},o&&i&&(Kt[e][i]=Kt[e][l])}var S="math",be="text",A="main",H="ams",Qt="accent-token",qe="bin",er="close",ou="inner",Ke="mathord",Cn="op-token",Br="open",Wc="punct",$="rel",$i="spacing",X="textord";b(S,A,$,"≡","\\equiv",!0);b(S,A,$,"≺","\\prec",!0);b(S,A,$,"≻","\\succ",!0);b(S,A,$,"∼","\\sim",!0);b(S,A,$,"⊥","\\perp");b(S,A,$,"⪯","\\preceq",!0);b(S,A,$,"⪰","\\succeq",!0);b(S,A,$,"≃","\\simeq",!0);b(S,A,$,"∣","\\mid",!0);b(S,A,$,"≪","\\ll",!0);b(S,A,$,"≫","\\gg",!0);b(S,A,$,"≍","\\asymp",!0);b(S,A,$,"∥","\\parallel");b(S,A,$,"⋈","\\bowtie",!0);b(S,A,$,"⌣","\\smile",!0);b(S,A,$,"⊑","\\sqsubseteq",!0);b(S,A,$,"⊒","\\sqsupseteq",!0);b(S,A,$,"≐","\\doteq",!0);b(S,A,$,"⌢","\\frown",!0);b(S,A,$,"∋","\\ni",!0);b(S,A,$,"∝","\\propto",!0);b(S,A,$,"⊢","\\vdash",!0);b(S,A,$,"⊣","\\dashv",!0);b(S,A,$,"∋","\\owns");b(S,A,Wc,".","\\ldotp");b(S,A,Wc,"⋅","\\cdotp");b(S,A,Wc,"⋅","·");b(be,A,X,"⋅","·");b(S,A,X,"#","\\#");b(be,A,X,"#","\\#");b(S,A,X,"&","\\&");b(be,A,X,"&","\\&");b(S,A,X,"ℵ","\\aleph",!0);b(S,A,X,"∀","\\forall",!0);b(S,A,X,"ℏ","\\hbar",!0);b(S,A,X,"∃","\\exists",!0);b(S,A,X,"∇","\\nabla",!0);b(S,A,X,"♭","\\flat",!0);b(S,A,X,"ℓ","\\ell",!0);b(S,A,X,"♮","\\natural",!0);b(S,A,X,"♣","\\clubsuit",!0);b(S,A,X,"℘","\\wp",!0);b(S,A,X,"♯","\\sharp",!0);b(S,A,X,"♢","\\diamondsuit",!0);b(S,A,X,"ℜ","\\Re",!0);b(S,A,X,"♡","\\heartsuit",!0);b(S,A,X,"ℑ","\\Im",!0);b(S,A,X,"♠","\\spadesuit",!0);b(S,A,X,"§","\\S",!0);b(be,A,X,"§","\\S");b(S,A,X,"¶","\\P",!0);b(be,A,X,"¶","\\P");b(S,A,X,"†","\\dag");b(be,A,X,"†","\\dag");b(be,A,X,"†","\\textdagger");b(S,A,X,"‡","\\ddag");b(be,A,X,"‡","\\ddag");b(be,A,X,"‡","\\textdaggerdbl");b(S,A,er,"⎱","\\rmoustache",!0);b(S,A,Br,"⎰","\\lmoustache",!0);b(S,A,er,"⟯","\\rgroup",!0);b(S,A,Br,"⟮","\\lgroup",!0);b(S,A,qe,"∓","\\mp",!0);b(S,A,qe,"⊖","\\ominus",!0);b(S,A,qe,"⊎","\\uplus",!0);b(S,A,qe,"⊓","\\sqcap",!0);b(S,A,qe,"∗","\\ast");b(S,A,qe,"⊔","\\sqcup",!0);b(S,A,qe,"◯","\\bigcirc",!0);b(S,A,qe,"∙","\\bullet",!0);b(S,A,qe,"‡","\\ddagger");b(S,A,qe,"≀","\\wr",!0);b(S,A,qe,"⨿","\\amalg");b(S,A,qe,"&","\\And");b(S,A,$,"⟵","\\longleftarrow",!0);b(S,A,$,"⇐","\\Leftarrow",!0);b(S,A,$,"⟸","\\Longleftarrow",!0);b(S,A,$,"⟶","\\longrightarrow",!0);b(S,A,$,"⇒","\\Rightarrow",!0);b(S,A,$,"⟹","\\Longrightarrow",!0);b(S,A,$,"↔","\\leftrightarrow",!0);b(S,A,$,"⟷","\\longleftrightarrow",!0);b(S,A,$,"⇔","\\Leftrightarrow",!0);b(S,A,$,"⟺","\\Longleftrightarrow",!0);b(S,A,$,"↦","\\mapsto",!0);b(S,A,$,"⟼","\\longmapsto",!0);b(S,A,$,"↗","\\nearrow",!0);b(S,A,$,"↩","\\hookleftarrow",!0);b(S,A,$,"↪","\\hookrightarrow",!0);b(S,A,$,"↘","\\searrow",!0);b(S,A,$,"↼","\\leftharpoonup",!0);b(S,A,$,"⇀","\\rightharpoonup",!0);b(S,A,$,"↙","\\swarrow",!0);b(S,A,$,"↽","\\leftharpoondown",!0);b(S,A,$,"⇁","\\rightharpoondown",!0);b(S,A,$,"↖","\\nwarrow",!0);b(S,A,$,"⇌","\\rightleftharpoons",!0);b(S,H,$,"≮","\\nless",!0);b(S,H,$,"","\\@nleqslant");b(S,H,$,"","\\@nleqq");b(S,H,$,"⪇","\\lneq",!0);b(S,H,$,"≨","\\lneqq",!0);b(S,H,$,"","\\@lvertneqq");b(S,H,$,"⋦","\\lnsim",!0);b(S,H,$,"⪉","\\lnapprox",!0);b(S,H,$,"⊀","\\nprec",!0);b(S,H,$,"⋠","\\npreceq",!0);b(S,H,$,"⋨","\\precnsim",!0);b(S,H,$,"⪹","\\precnapprox",!0);b(S,H,$,"≁","\\nsim",!0);b(S,H,$,"","\\@nshortmid");b(S,H,$,"∤","\\nmid",!0);b(S,H,$,"⊬","\\nvdash",!0);b(S,H,$,"⊭","\\nvDash",!0);b(S,H,$,"⋪","\\ntriangleleft");b(S,H,$,"⋬","\\ntrianglelefteq",!0);b(S,H,$,"⊊","\\subsetneq",!0);b(S,H,$,"","\\@varsubsetneq");b(S,H,$,"⫋","\\subsetneqq",!0);b(S,H,$,"","\\@varsubsetneqq");b(S,H,$,"≯","\\ngtr",!0);b(S,H,$,"","\\@ngeqslant");b(S,H,$,"","\\@ngeqq");b(S,H,$,"⪈","\\gneq",!0);b(S,H,$,"≩","\\gneqq",!0);b(S,H,$,"","\\@gvertneqq");b(S,H,$,"⋧","\\gnsim",!0);b(S,H,$,"⪊","\\gnapprox",!0);b(S,H,$,"⊁","\\nsucc",!0);b(S,H,$,"⋡","\\nsucceq",!0);b(S,H,$,"⋩","\\succnsim",!0);b(S,H,$,"⪺","\\succnapprox",!0);b(S,H,$,"≆","\\ncong",!0);b(S,H,$,"","\\@nshortparallel");b(S,H,$,"∦","\\nparallel",!0);b(S,H,$,"⊯","\\nVDash",!0);b(S,H,$,"⋫","\\ntriangleright");b(S,H,$,"⋭","\\ntrianglerighteq",!0);b(S,H,$,"","\\@nsupseteqq");b(S,H,$,"⊋","\\supsetneq",!0);b(S,H,$,"","\\@varsupsetneq");b(S,H,$,"⫌","\\supsetneqq",!0);b(S,H,$,"","\\@varsupsetneqq");b(S,H,$,"⊮","\\nVdash",!0);b(S,H,$,"⪵","\\precneqq",!0);b(S,H,$,"⪶","\\succneqq",!0);b(S,H,$,"","\\@nsubseteqq");b(S,H,qe,"⊴","\\unlhd");b(S,H,qe,"⊵","\\unrhd");b(S,H,$,"↚","\\nleftarrow",!0);b(S,H,$,"↛","\\nrightarrow",!0);b(S,H,$,"⇍","\\nLeftarrow",!0);b(S,H,$,"⇏","\\nRightarrow",!0);b(S,H,$,"↮","\\nleftrightarrow",!0);b(S,H,$,"⇎","\\nLeftrightarrow",!0);b(S,H,$,"△","\\vartriangle");b(S,H,X,"ℏ","\\hslash");b(S,H,X,"▽","\\triangledown");b(S,H,X,"◊","\\lozenge");b(S,H,X,"Ⓢ","\\circledS");b(S,H,X,"®","\\circledR");b(be,H,X,"®","\\circledR");b(S,H,X,"∡","\\measuredangle",!0);b(S,H,X,"∄","\\nexists");b(S,H,X,"℧","\\mho");b(S,H,X,"Ⅎ","\\Finv",!0);b(S,H,X,"⅁","\\Game",!0);b(S,H,X,"‵","\\backprime");b(S,H,X,"▲","\\blacktriangle");b(S,H,X,"▼","\\blacktriangledown");b(S,H,X,"■","\\blacksquare");b(S,H,X,"⧫","\\blacklozenge");b(S,H,X,"★","\\bigstar");b(S,H,X,"∢","\\sphericalangle",!0);b(S,H,X,"∁","\\complement",!0);b(S,H,X,"ð","\\eth",!0);b(be,A,X,"ð","ð");b(S,H,X,"╱","\\diagup");b(S,H,X,"╲","\\diagdown");b(S,H,X,"□","\\square");b(S,H,X,"□","\\Box");b(S,H,X,"◊","\\Diamond");b(S,H,X,"¥","\\yen",!0);b(be,H,X,"¥","\\yen",!0);b(S,H,X,"✓","\\checkmark",!0);b(be,H,X,"✓","\\checkmark");b(S,H,X,"ℶ","\\beth",!0);b(S,H,X,"ℸ","\\daleth",!0);b(S,H,X,"ℷ","\\gimel",!0);b(S,H,X,"ϝ","\\digamma",!0);b(S,H,X,"ϰ","\\varkappa");b(S,H,Br,"┌","\\@ulcorner",!0);b(S,H,er,"┐","\\@urcorner",!0);b(S,H,Br,"└","\\@llcorner",!0);b(S,H,er,"┘","\\@lrcorner",!0);b(S,H,$,"≦","\\leqq",!0);b(S,H,$,"⩽","\\leqslant",!0);b(S,H,$,"⪕","\\eqslantless",!0);b(S,H,$,"≲","\\lesssim",!0);b(S,H,$,"⪅","\\lessapprox",!0);b(S,H,$,"≊","\\approxeq",!0);b(S,H,qe,"⋖","\\lessdot");b(S,H,$,"⋘","\\lll",!0);b(S,H,$,"≶","\\lessgtr",!0);b(S,H,$,"⋚","\\lesseqgtr",!0);b(S,H,$,"⪋","\\lesseqqgtr",!0);b(S,H,$,"≑","\\doteqdot");b(S,H,$,"≓","\\risingdotseq",!0);b(S,H,$,"≒","\\fallingdotseq",!0);b(S,H,$,"∽","\\backsim",!0);b(S,H,$,"⋍","\\backsimeq",!0);b(S,H,$,"⫅","\\subseteqq",!0);b(S,H,$,"⋐","\\Subset",!0);b(S,H,$,"⊏","\\sqsubset",!0);b(S,H,$,"≼","\\preccurlyeq",!0);b(S,H,$,"⋞","\\curlyeqprec",!0);b(S,H,$,"≾","\\precsim",!0);b(S,H,$,"⪷","\\precapprox",!0);b(S,H,$,"⊲","\\vartriangleleft");b(S,H,$,"⊴","\\trianglelefteq");b(S,H,$,"⊨","\\vDash",!0);b(S,H,$,"⊪","\\Vvdash",!0);b(S,H,$,"⌣","\\smallsmile");b(S,H,$,"⌢","\\smallfrown");b(S,H,$,"≏","\\bumpeq",!0);b(S,H,$,"≎","\\Bumpeq",!0);b(S,H,$,"≧","\\geqq",!0);b(S,H,$,"⩾","\\geqslant",!0);b(S,H,$,"⪖","\\eqslantgtr",!0);b(S,H,$,"≳","\\gtrsim",!0);b(S,H,$,"⪆","\\gtrapprox",!0);b(S,H,qe,"⋗","\\gtrdot");b(S,H,$,"⋙","\\ggg",!0);b(S,H,$,"≷","\\gtrless",!0);b(S,H,$,"⋛","\\gtreqless",!0);b(S,H,$,"⪌","\\gtreqqless",!0);b(S,H,$,"≖","\\eqcirc",!0);b(S,H,$,"≗","\\circeq",!0);b(S,H,$,"≜","\\triangleq",!0);b(S,H,$,"∼","\\thicksim");b(S,H,$,"≈","\\thickapprox");b(S,H,$,"⫆","\\supseteqq",!0);b(S,H,$,"⋑","\\Supset",!0);b(S,H,$,"⊐","\\sqsupset",!0);b(S,H,$,"≽","\\succcurlyeq",!0);b(S,H,$,"⋟","\\curlyeqsucc",!0);b(S,H,$,"≿","\\succsim",!0);b(S,H,$,"⪸","\\succapprox",!0);b(S,H,$,"⊳","\\vartriangleright");b(S,H,$,"⊵","\\trianglerighteq");b(S,H,$,"⊩","\\Vdash",!0);b(S,H,$,"∣","\\shortmid");b(S,H,$,"∥","\\shortparallel");b(S,H,$,"≬","\\between",!0);b(S,H,$,"⋔","\\pitchfork",!0);b(S,H,$,"∝","\\varpropto");b(S,H,$,"◀","\\blacktriangleleft");b(S,H,$,"∴","\\therefore",!0);b(S,H,$,"∍","\\backepsilon");b(S,H,$,"▶","\\blacktriangleright");b(S,H,$,"∵","\\because",!0);b(S,H,$,"⋘","\\llless");b(S,H,$,"⋙","\\gggtr");b(S,H,qe,"⊲","\\lhd");b(S,H,qe,"⊳","\\rhd");b(S,H,$,"≂","\\eqsim",!0);b(S,A,$,"⋈","\\Join");b(S,H,$,"≑","\\Doteq",!0);b(S,H,qe,"∔","\\dotplus",!0);b(S,H,qe,"∖","\\smallsetminus");b(S,H,qe,"⋒","\\Cap",!0);b(S,H,qe,"⋓","\\Cup",!0);b(S,H,qe,"⩞","\\doublebarwedge",!0);b(S,H,qe,"⊟","\\boxminus",!0);b(S,H,qe,"⊞","\\boxplus",!0);b(S,H,qe,"⋇","\\divideontimes",!0);b(S,H,qe,"⋉","\\ltimes",!0);b(S,H,qe,"⋊","\\rtimes",!0);b(S,H,qe,"⋋","\\leftthreetimes",!0);b(S,H,qe,"⋌","\\rightthreetimes",!0);b(S,H,qe,"⋏","\\curlywedge",!0);b(S,H,qe,"⋎","\\curlyvee",!0);b(S,H,qe,"⊝","\\circleddash",!0);b(S,H,qe,"⊛","\\circledast",!0);b(S,H,qe,"⋅","\\centerdot");b(S,H,qe,"⊺","\\intercal",!0);b(S,H,qe,"⋒","\\doublecap");b(S,H,qe,"⋓","\\doublecup");b(S,H,qe,"⊠","\\boxtimes",!0);b(S,H,$,"⇢","\\dashrightarrow",!0);b(S,H,$,"⇠","\\dashleftarrow",!0);b(S,H,$,"⇇","\\leftleftarrows",!0);b(S,H,$,"⇆","\\leftrightarrows",!0);b(S,H,$,"⇚","\\Lleftarrow",!0);b(S,H,$,"↞","\\twoheadleftarrow",!0);b(S,H,$,"↢","\\leftarrowtail",!0);b(S,H,$,"↫","\\looparrowleft",!0);b(S,H,$,"⇋","\\leftrightharpoons",!0);b(S,H,$,"↶","\\curvearrowleft",!0);b(S,H,$,"↺","\\circlearrowleft",!0);b(S,H,$,"↰","\\Lsh",!0);b(S,H,$,"⇈","\\upuparrows",!0);b(S,H,$,"↿","\\upharpoonleft",!0);b(S,H,$,"⇃","\\downharpoonleft",!0);b(S,A,$,"⊶","\\origof",!0);b(S,A,$,"⊷","\\imageof",!0);b(S,H,$,"⊸","\\multimap",!0);b(S,H,$,"↭","\\leftrightsquigarrow",!0);b(S,H,$,"⇉","\\rightrightarrows",!0);b(S,H,$,"⇄","\\rightleftarrows",!0);b(S,H,$,"↠","\\twoheadrightarrow",!0);b(S,H,$,"↣","\\rightarrowtail",!0);b(S,H,$,"↬","\\looparrowright",!0);b(S,H,$,"↷","\\curvearrowright",!0);b(S,H,$,"↻","\\circlearrowright",!0);b(S,H,$,"↱","\\Rsh",!0);b(S,H,$,"⇊","\\downdownarrows",!0);b(S,H,$,"↾","\\upharpoonright",!0);b(S,H,$,"⇂","\\downharpoonright",!0);b(S,H,$,"⇝","\\rightsquigarrow",!0);b(S,H,$,"⇝","\\leadsto");b(S,H,$,"⇛","\\Rrightarrow",!0);b(S,H,$,"↾","\\restriction");b(S,A,X,"‘","`");b(S,A,X,"$","\\$");b(be,A,X,"$","\\$");b(be,A,X,"$","\\textdollar");b(S,A,X,"%","\\%");b(be,A,X,"%","\\%");b(S,A,X,"_","\\_");b(be,A,X,"_","\\_");b(be,A,X,"_","\\textunderscore");b(S,A,X,"∠","\\angle",!0);b(S,A,X,"∞","\\infty",!0);b(S,A,X,"′","\\prime");b(S,A,X,"△","\\triangle");b(S,A,X,"Γ","\\Gamma",!0);b(S,A,X,"Δ","\\Delta",!0);b(S,A,X,"Θ","\\Theta",!0);b(S,A,X,"Λ","\\Lambda",!0);b(S,A,X,"Ξ","\\Xi",!0);b(S,A,X,"Π","\\Pi",!0);b(S,A,X,"Σ","\\Sigma",!0);b(S,A,X,"Υ","\\Upsilon",!0);b(S,A,X,"Φ","\\Phi",!0);b(S,A,X,"Ψ","\\Psi",!0);b(S,A,X,"Ω","\\Omega",!0);b(S,A,X,"A","Α");b(S,A,X,"B","Β");b(S,A,X,"E","Ε");b(S,A,X,"Z","Ζ");b(S,A,X,"H","Η");b(S,A,X,"I","Ι");b(S,A,X,"K","Κ");b(S,A,X,"M","Μ");b(S,A,X,"N","Ν");b(S,A,X,"O","Ο");b(S,A,X,"P","Ρ");b(S,A,X,"T","Τ");b(S,A,X,"X","Χ");b(S,A,X,"¬","\\neg",!0);b(S,A,X,"¬","\\lnot");b(S,A,X,"⊤","\\top");b(S,A,X,"⊥","\\bot");b(S,A,X,"∅","\\emptyset");b(S,H,X,"∅","\\varnothing");b(S,A,Ke,"α","\\alpha",!0);b(S,A,Ke,"β","\\beta",!0);b(S,A,Ke,"γ","\\gamma",!0);b(S,A,Ke,"δ","\\delta",!0);b(S,A,Ke,"ϵ","\\epsilon",!0);b(S,A,Ke,"ζ","\\zeta",!0);b(S,A,Ke,"η","\\eta",!0);b(S,A,Ke,"θ","\\theta",!0);b(S,A,Ke,"ι","\\iota",!0);b(S,A,Ke,"κ","\\kappa",!0);b(S,A,Ke,"λ","\\lambda",!0);b(S,A,Ke,"μ","\\mu",!0);b(S,A,Ke,"ν","\\nu",!0);b(S,A,Ke,"ξ","\\xi",!0);b(S,A,Ke,"ο","\\omicron",!0);b(S,A,Ke,"π","\\pi",!0);b(S,A,Ke,"ρ","\\rho",!0);b(S,A,Ke,"σ","\\sigma",!0);b(S,A,Ke,"τ","\\tau",!0);b(S,A,Ke,"υ","\\upsilon",!0);b(S,A,Ke,"ϕ","\\phi",!0);b(S,A,Ke,"χ","\\chi",!0);b(S,A,Ke,"ψ","\\psi",!0);b(S,A,Ke,"ω","\\omega",!0);b(S,A,Ke,"ε","\\varepsilon",!0);b(S,A,Ke,"ϑ","\\vartheta",!0);b(S,A,Ke,"ϖ","\\varpi",!0);b(S,A,Ke,"ϱ","\\varrho",!0);b(S,A,Ke,"ς","\\varsigma",!0);b(S,A,Ke,"φ","\\varphi",!0);b(S,A,qe,"∗","*",!0);b(S,A,qe,"+","+");b(S,A,qe,"−","-",!0);b(S,A,qe,"⋅","\\cdot",!0);b(S,A,qe,"∘","\\circ",!0);b(S,A,qe,"÷","\\div",!0);b(S,A,qe,"±","\\pm",!0);b(S,A,qe,"×","\\times",!0);b(S,A,qe,"∩","\\cap",!0);b(S,A,qe,"∪","\\cup",!0);b(S,A,qe,"∖","\\setminus",!0);b(S,A,qe,"∧","\\land");b(S,A,qe,"∨","\\lor");b(S,A,qe,"∧","\\wedge",!0);b(S,A,qe,"∨","\\vee",!0);b(S,A,X,"√","\\surd");b(S,A,Br,"⟨","\\langle",!0);b(S,A,Br,"∣","\\lvert");b(S,A,Br,"∥","\\lVert");b(S,A,er,"?","?");b(S,A,er,"!","!");b(S,A,er,"⟩","\\rangle",!0);b(S,A,er,"∣","\\rvert");b(S,A,er,"∥","\\rVert");b(S,A,$,"=","=");b(S,A,$,":",":");b(S,A,$,"≈","\\approx",!0);b(S,A,$,"≅","\\cong",!0);b(S,A,$,"≥","\\ge");b(S,A,$,"≥","\\geq",!0);b(S,A,$,"←","\\gets");b(S,A,$,">","\\gt",!0);b(S,A,$,"∈","\\in",!0);b(S,A,$,"","\\@not");b(S,A,$,"⊂","\\subset",!0);b(S,A,$,"⊃","\\supset",!0);b(S,A,$,"⊆","\\subseteq",!0);b(S,A,$,"⊇","\\supseteq",!0);b(S,H,$,"⊈","\\nsubseteq",!0);b(S,H,$,"⊉","\\nsupseteq",!0);b(S,A,$,"⊨","\\models");b(S,A,$,"←","\\leftarrow",!0);b(S,A,$,"≤","\\le");b(S,A,$,"≤","\\leq",!0);b(S,A,$,"<","\\lt",!0);b(S,A,$,"→","\\rightarrow",!0);b(S,A,$,"→","\\to");b(S,H,$,"≱","\\ngeq",!0);b(S,H,$,"≰","\\nleq",!0);b(S,A,$i," ","\\ ");b(S,A,$i," ","\\space");b(S,A,$i," ","\\nobreakspace");b(be,A,$i," ","\\ ");b(be,A,$i," "," ");b(be,A,$i," ","\\space");b(be,A,$i," ","\\nobreakspace");b(S,A,$i,"","\\nobreak");b(S,A,$i,"","\\allowbreak");b(S,A,Wc,",",",");b(S,A,Wc,";",";");b(S,H,qe,"⊼","\\barwedge",!0);b(S,H,qe,"⊻","\\veebar",!0);b(S,A,qe,"⊙","\\odot",!0);b(S,A,qe,"⊕","\\oplus",!0);b(S,A,qe,"⊗","\\otimes",!0);b(S,A,X,"∂","\\partial",!0);b(S,A,qe,"⊘","\\oslash",!0);b(S,H,qe,"⊚","\\circledcirc",!0);b(S,H,qe,"⊡","\\boxdot",!0);b(S,A,qe,"△","\\bigtriangleup");b(S,A,qe,"▽","\\bigtriangledown");b(S,A,qe,"†","\\dagger");b(S,A,qe,"⋄","\\diamond");b(S,A,qe,"⋆","\\star");b(S,A,qe,"◃","\\triangleleft");b(S,A,qe,"▹","\\triangleright");b(S,A,Br,"{","\\{");b(be,A,X,"{","\\{");b(be,A,X,"{","\\textbraceleft");b(S,A,er,"}","\\}");b(be,A,X,"}","\\}");b(be,A,X,"}","\\textbraceright");b(S,A,Br,"{","\\lbrace");b(S,A,er,"}","\\rbrace");b(S,A,Br,"[","\\lbrack",!0);b(be,A,X,"[","\\lbrack",!0);b(S,A,er,"]","\\rbrack",!0);b(be,A,X,"]","\\rbrack",!0);b(S,A,Br,"(","\\lparen",!0);b(S,A,er,")","\\rparen",!0);b(be,A,X,"<","\\textless",!0);b(be,A,X,">","\\textgreater",!0);b(S,A,Br,"⌊","\\lfloor",!0);b(S,A,er,"⌋","\\rfloor",!0);b(S,A,Br,"⌈","\\lceil",!0);b(S,A,er,"⌉","\\rceil",!0);b(S,A,X,"\\","\\backslash");b(S,A,X,"∣","|");b(S,A,X,"∣","\\vert");b(be,A,X,"|","\\textbar",!0);b(S,A,X,"∥","\\|");b(S,A,X,"∥","\\Vert");b(be,A,X,"∥","\\textbardbl");b(be,A,X,"~","\\textasciitilde");b(be,A,X,"\\","\\textbackslash");b(be,A,X,"^","\\textasciicircum");b(S,A,$,"↑","\\uparrow",!0);b(S,A,$,"⇑","\\Uparrow",!0);b(S,A,$,"↓","\\downarrow",!0);b(S,A,$,"⇓","\\Downarrow",!0);b(S,A,$,"↕","\\updownarrow",!0);b(S,A,$,"⇕","\\Updownarrow",!0);b(S,A,Cn,"∐","\\coprod");b(S,A,Cn,"⋁","\\bigvee");b(S,A,Cn,"⋀","\\bigwedge");b(S,A,Cn,"⨄","\\biguplus");b(S,A,Cn,"⋂","\\bigcap");b(S,A,Cn,"⋃","\\bigcup");b(S,A,Cn,"∫","\\int");b(S,A,Cn,"∫","\\intop");b(S,A,Cn,"∬","\\iint");b(S,A,Cn,"∭","\\iiint");b(S,A,Cn,"∏","\\prod");b(S,A,Cn,"∑","\\sum");b(S,A,Cn,"⨂","\\bigotimes");b(S,A,Cn,"⨁","\\bigoplus");b(S,A,Cn,"⨀","\\bigodot");b(S,A,Cn,"∮","\\oint");b(S,A,Cn,"∯","\\oiint");b(S,A,Cn,"∰","\\oiiint");b(S,A,Cn,"⨆","\\bigsqcup");b(S,A,Cn,"∫","\\smallint");b(be,A,ou,"…","\\textellipsis");b(S,A,ou,"…","\\mathellipsis");b(be,A,ou,"…","\\ldots",!0);b(S,A,ou,"…","\\ldots",!0);b(S,A,ou,"⋯","\\@cdots",!0);b(S,A,ou,"⋱","\\ddots",!0);b(S,A,X,"⋮","\\varvdots");b(be,A,X,"⋮","\\varvdots");b(S,A,Qt,"ˊ","\\acute");b(S,A,Qt,"ˋ","\\grave");b(S,A,Qt,"¨","\\ddot");b(S,A,Qt,"~","\\tilde");b(S,A,Qt,"ˉ","\\bar");b(S,A,Qt,"˘","\\breve");b(S,A,Qt,"ˇ","\\check");b(S,A,Qt,"^","\\hat");b(S,A,Qt,"⃗","\\vec");b(S,A,Qt,"˙","\\dot");b(S,A,Qt,"˚","\\mathring");b(S,A,Ke,"","\\@imath");b(S,A,Ke,"","\\@jmath");b(S,A,X,"ı","ı");b(S,A,X,"ȷ","ȷ");b(be,A,X,"ı","\\i",!0);b(be,A,X,"ȷ","\\j",!0);b(be,A,X,"ß","\\ss",!0);b(be,A,X,"æ","\\ae",!0);b(be,A,X,"œ","\\oe",!0);b(be,A,X,"ø","\\o",!0);b(be,A,X,"Æ","\\AE",!0);b(be,A,X,"Œ","\\OE",!0);b(be,A,X,"Ø","\\O",!0);b(be,A,Qt,"ˊ","\\'");b(be,A,Qt,"ˋ","\\`");b(be,A,Qt,"ˆ","\\^");b(be,A,Qt,"˜","\\~");b(be,A,Qt,"ˉ","\\=");b(be,A,Qt,"˘","\\u");b(be,A,Qt,"˙","\\.");b(be,A,Qt,"¸","\\c");b(be,A,Qt,"˚","\\r");b(be,A,Qt,"ˇ","\\v");b(be,A,Qt,"¨",'\\"');b(be,A,Qt,"˝","\\H");b(be,A,Qt,"◯","\\textcircled");var H6={"--":!0,"---":!0,"``":!0,"''":!0};b(be,A,X,"–","--",!0);b(be,A,X,"–","\\textendash");b(be,A,X,"—","---",!0);b(be,A,X,"—","\\textemdash");b(be,A,X,"‘","`",!0);b(be,A,X,"‘","\\textquoteleft");b(be,A,X,"’","'",!0);b(be,A,X,"’","\\textquoteright");b(be,A,X,"“","``",!0);b(be,A,X,"“","\\textquotedblleft");b(be,A,X,"”","''",!0);b(be,A,X,"”","\\textquotedblright");b(S,A,X,"°","\\degree",!0);b(be,A,X,"°","\\degree");b(be,A,X,"°","\\textdegree",!0);b(S,A,X,"£","\\pounds");b(S,A,X,"£","\\mathsterling",!0);b(be,A,X,"£","\\pounds");b(be,A,X,"£","\\textsterling",!0);b(S,H,X,"✠","\\maltese");b(be,H,X,"✠","\\maltese");var Ly='0123456789/@."';for(var Mm=0;Mm<Ly.length;Mm++){var qy=Ly.charAt(Mm);b(S,A,X,qy,qy)}var Uy='0123456789!@*()-=+";:?/.,';for(var zm=0;zm<Uy.length;zm++){var Hy=Uy.charAt(zm);b(be,A,X,Hy,Hy)}var ef="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Dm=0;Dm<ef.length;Dm++){var jd=ef.charAt(Dm);b(S,A,Ke,jd,jd),b(be,A,X,jd,jd)}b(S,H,X,"C","ℂ");b(be,H,X,"C","ℂ");b(S,H,X,"H","ℍ");b(be,H,X,"H","ℍ");b(S,H,X,"N","ℕ");b(be,H,X,"N","ℕ");b(S,H,X,"P","ℙ");b(be,H,X,"P","ℙ");b(S,H,X,"Q","ℚ");b(be,H,X,"Q","ℚ");b(S,H,X,"R","ℝ");b(be,H,X,"R","ℝ");b(S,H,X,"Z","ℤ");b(be,H,X,"Z","ℤ");b(S,A,Ke,"h","ℎ");b(be,A,Ke,"h","ℎ");var tt;for(var Kn=0;Kn<ef.length;Kn++){var cn=ef.charAt(Kn);tt=String.fromCharCode(55349,56320+Kn),b(S,A,Ke,cn,tt),b(be,A,X,cn,tt),tt=String.fromCharCode(55349,56372+Kn),b(S,A,Ke,cn,tt),b(be,A,X,cn,tt),tt=String.fromCharCode(55349,56424+Kn),b(S,A,Ke,cn,tt),b(be,A,X,cn,tt),tt=String.fromCharCode(55349,56580+Kn),b(S,A,Ke,cn,tt),b(be,A,X,cn,tt),tt=String.fromCharCode(55349,56684+Kn),b(S,A,Ke,cn,tt),b(be,A,X,cn,tt),tt=String.fromCharCode(55349,56736+Kn),b(S,A,Ke,cn,tt),b(be,A,X,cn,tt),tt=String.fromCharCode(55349,56788+Kn),b(S,A,Ke,cn,tt),b(be,A,X,cn,tt),tt=String.fromCharCode(55349,56840+Kn),b(S,A,Ke,cn,tt),b(be,A,X,cn,tt),tt=String.fromCharCode(55349,56944+Kn),b(S,A,Ke,cn,tt),b(be,A,X,cn,tt),Kn<26&&(tt=String.fromCharCode(55349,56632+Kn),b(S,A,Ke,cn,tt),b(be,A,X,cn,tt),tt=String.fromCharCode(55349,56476+Kn),b(S,A,Ke,cn,tt),b(be,A,X,cn,tt))}tt="𝕜";b(S,A,Ke,"k",tt);b(be,A,X,"k",tt);for(var Rs=0;Rs<10;Rs++){var ql=Rs.toString();tt=String.fromCharCode(55349,57294+Rs),b(S,A,Ke,ql,tt),b(be,A,X,ql,tt),tt=String.fromCharCode(55349,57314+Rs),b(S,A,Ke,ql,tt),b(be,A,X,ql,tt),tt=String.fromCharCode(55349,57324+Rs),b(S,A,Ke,ql,tt),b(be,A,X,ql,tt),tt=String.fromCharCode(55349,57334+Rs),b(S,A,Ke,ql,tt),b(be,A,X,ql,tt)}var Sp="ÐÞþ";for(var Rm=0;Rm<Sp.length;Rm++){var Td=Sp.charAt(Rm);b(S,A,Ke,Td,Td),b(be,A,X,Td,Td)}var Cp={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},Fy={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},$y={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},Aj={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},Is={mathClass:"",textClass:"",font:""},Gy={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},Py={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},Vy={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},jp={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},Tp={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},Yy={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},Ap={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},Wy=[Cp,Cp,Fy,Fy,$y,$y,Aj,Is,Is,Is,Gy,Gy,Py,Py,Vy,Vy,jp,jp,Tp,Tp,Yy,Yy,Is,Is,Ap,Ap],Ej=[Cp,Is,jp,Tp,Ap],Nj=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),i=(t-55296)*1024+(n-56320)+65536;if(119808<=i&&i<120484){var l=Math.floor((i-119808)/26);return Wy[l]}else if(120782<=i&&i<=120831){var o=Math.floor((i-120782)/10);return Ej[o]}else{if(i===120485||i===120486)return Wy[0];if(120486<i&&i<120782)return Is;throw new je("Unsupported character: "+e)}},pf=function(t,n,i){if(Kt[i][t]){var l=Kt[i][t].replace;l&&(t=l)}return{value:t,metrics:k1(t,n,i)}},Qn=function(t,n,i,l,o){var c=pf(t,n,i),f=c.metrics;t=c.value;var h;if(f){var m=f.italic;(i==="text"||l&&l.font==="mathit")&&(m=0),h=new _r(t,f.height,f.depth,m,f.skew,f.width,o)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+i+"'")),h=new _r(t,0,0,0,0,0,o);if(l){h.maxFontSize=l.sizeMultiplier,l.style.isTight()&&h.classes.push("mtight");var y=l.getColor();y&&(h.style.color=y)}return h},S1=function(t,n,i,l){return l===void 0&&(l=[]),i.font==="boldsymbol"&&pf(t,"Main-Bold",n).metrics?Qn(t,"Main-Bold",n,i,l.concat(["mathbf"])):t==="\\"||Kt[n][t].font==="main"?Qn(t,"Main-Regular",n,i,l):Qn(t,"AMS-Regular",n,i,l.concat(["amsrm"]))},Mj=function(t,n,i){return i!=="textord"&&pf(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},gf=function(t,n,i){var l=t.mode,o=t.text,c=["mord"],{font:f,fontFamily:h,fontWeight:m,fontShape:y}=n,v=l==="math"||l==="text"&&!!f,k=v?f:h,w="",T="";if(o.charCodeAt(0)===55349){var E=Nj(o);w=E.font,T=E[l+"Class"]}if(w)return Qn(o,w,l,n,c.concat(T));if(k){var q,R;if(k==="boldsymbol"){var B=Mj(o,l,i);q=B.fontName,R=[B.fontClass]}else v?(q=Ep[f].fontName,R=[f]):(q=Ad(h,m,y),R=[h,m,y]);if(pf(o,q,l).metrics)return Qn(o,q,l,n,c.concat(R));if(H6.hasOwnProperty(o)&&q.slice(0,10)==="Typewriter"){for(var F=[],Y=0;Y<o.length;Y++)F.push(Qn(o[Y],q,l,n,c.concat(R)));return Gi(F)}}if(i==="mathord")return Qn(o,"Math-Italic",l,n,c.concat(["mathnormal"]));if(i==="textord"){var te=Kt[l][o]&&Kt[l][o].font;if(te==="ams"){var _=Ad("amsrm",m,y);return Qn(o,_,l,n,c.concat("amsrm",m,y))}else if(te==="main"||!te){var K=Ad("textrm",m,y);return Qn(o,K,l,n,c.concat(m,y))}else{var le=Ad(te,m,y);return Qn(o,le,l,n,c.concat(le,m,y))}}else throw new Error("unexpected type: "+i+" in makeOrd")},zj=(e,t)=>{if($l(e.classes)!==$l(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var i of Object.keys(e.style))if(e.style[i]!==t.style[i])return!1;for(var l of Object.keys(t.style))if(e.style[l]!==t.style[l])return!1;return!0},F6=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],i=e[t+1];n instanceof _r&&i instanceof _r&&zj(n,i)&&(n.text+=i.text,n.height=Math.max(n.height,i.height),n.depth=Math.max(n.depth,i.depth),n.italic=i.italic,e.splice(t+1,1),t--)}return e},C1=function(t){for(var n=0,i=0,l=0,o=0;o<t.children.length;o++){var c=t.children[o];c.height>n&&(n=c.height),c.depth>i&&(i=c.depth),c.maxFontSize>l&&(l=c.maxFontSize)}t.height=n,t.depth=i,t.maxFontSize=l},ke=function(t,n,i,l){var o=new su(t,n,i,l);return C1(o),o},Pl=(e,t,n,i)=>new su(e,t,n,i),tu=function(t,n,i){var l=ke([t],[],n);return l.height=Math.max(i||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),l.style.borderBottomWidth=Me(l.height),l.maxFontSize=1,l},Dj=function(t,n,i,l){var o=new mf(t,n,i,l);return C1(o),o},Gi=function(t){var n=new lu(t);return C1(n),n},nu=function(t,n){return t instanceof lu?ke([],[t],n):t},Rj=function(t){if(t.positionType==="individualShift"){for(var n=t.children,i=[n[0]],l=-n[0].shift-n[0].elem.depth,o=l,c=1;c<n.length;c++){var f=-n[c].shift-o-n[c].elem.depth,h=f-(n[c-1].elem.height+n[c-1].elem.depth);o=o+f,i.push({type:"kern",size:h}),i.push(n[c])}return{children:i,depth:l}}var m;if(t.positionType==="top"){for(var y=t.positionData,v=0;v<t.children.length;v++){var k=t.children[v];y-=k.type==="kern"?k.size:k.elem.height+k.elem.depth}m=y}else if(t.positionType==="bottom")m=-t.positionData;else{var w=t.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")m=-w.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")m=-w.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:m}},Mt=function(t,n){for(var{children:i,depth:l}=Rj(t),o=0,c=0;c<i.length;c++){var f=i[c];if(f.type==="elem"){var h=f.elem;o=Math.max(o,h.maxFontSize,h.height)}}o+=2;var m=ke(["pstrut"],[]);m.style.height=Me(o);for(var y=[],v=l,k=l,w=l,T=0;T<i.length;T++){var E=i[T];if(E.type==="kern")w+=E.size;else{var q=E.elem,R=E.wrapperClasses||[],B=E.wrapperStyle||{},F=ke(R,[m,q],void 0,B);F.style.top=Me(-o-w-q.depth),E.marginLeft&&(F.style.marginLeft=E.marginLeft),E.marginRight&&(F.style.marginRight=E.marginRight),y.push(F),w+=q.height+q.depth}v=Math.min(v,w),k=Math.max(k,w)}var Y=ke(["vlist"],y);Y.style.height=Me(k);var te;if(v<0){var _=ke([],[]),K=ke(["vlist"],[_]);K.style.height=Me(-v);var le=ke(["vlist-s"],[new _r("")]);te=[ke(["vlist-r"],[Y,le]),ke(["vlist-r"],[K])]}else te=[ke(["vlist-r"],[Y])];var J=ke(["vlist-t"],te);return te.length===2&&J.classes.push("vlist-t2"),J.height=k,J.depth=-v,J},$6=(e,t)=>{var n=ke(["mspace"],[],t),i=nn(e,t);return n.style.marginRight=Me(i),n},Ad=(e,t,n)=>{var i,l;switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}return t==="textbf"&&n==="textit"?l="BoldItalic":t==="textbf"?l="Bold":n==="textit"?l="Italic":l="Regular",i+"-"+l},Ep={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},G6={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},P6=function(t,n){var[i,l,o]=G6[t],c=new Gl(i),f=new Ui([c],{width:Me(l),height:Me(o),style:"width:"+Me(l),viewBox:"0 0 "+1e3*l+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),h=Pl(["overlay"],[f],n);return h.height=o,h.style.height=Me(o),h.style.width=Me(l),h},tn={number:3,unit:"mu"},Os={number:4,unit:"mu"},Bi={number:5,unit:"mu"},Oj={mord:{mop:tn,mbin:Os,mrel:Bi,minner:tn},mop:{mord:tn,mop:tn,mrel:Bi,minner:tn},mbin:{mord:Os,mop:Os,mopen:Os,minner:Os},mrel:{mord:Bi,mop:Bi,mopen:Bi,minner:Bi},mopen:{},mclose:{mop:tn,mbin:Os,mrel:Bi,minner:tn},mpunct:{mord:tn,mop:tn,mrel:Bi,mopen:tn,mclose:tn,mpunct:tn,minner:tn},minner:{mord:tn,mop:tn,mbin:Os,mrel:Bi,mopen:tn,mpunct:tn,minner:tn}},_j={mord:{mop:tn},mop:{mord:tn,mop:tn},mbin:{},mrel:{},mopen:{},mclose:{mop:tn},mpunct:{},minner:{mop:tn}},V6={},tf={},nf={};function Ie(e){for(var{type:t,names:n,props:i,handler:l,htmlBuilder:o,mathmlBuilder:c}=e,f={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:l},h=0;h<n.length;++h)V6[n[h]]=f;t&&(o&&(tf[t]=o),c&&(nf[t]=c))}function Ys(e){var{type:t,htmlBuilder:n,mathmlBuilder:i}=e;Ie({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:i})}var rf=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},kn=function(t){return t.type==="ordgroup"?t.body:[t]},Bj=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Ij=new Set(["rightmost","mrel","mclose","mpunct"]),Lj={display:at.DISPLAY,text:at.TEXT,script:at.SCRIPT,scriptscript:at.SCRIPTSCRIPT},qj={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Mn=function(t,n,i,l){l===void 0&&(l=[null,null]);for(var o=[],c=0;c<t.length;c++){var f=zt(t[c],n);if(f instanceof lu){var h=f.children;o.push(...h)}else o.push(f)}if(F6(o),!i)return o;var m=n;if(t.length===1){var y=t[0];y.type==="sizing"?m=n.havingSize(y.size):y.type==="styling"&&(m=n.havingStyle(Lj[y.style]))}var v=ke([l[0]||"leftmost"],[],n),k=ke([l[1]||"rightmost"],[],n),w=i==="root";return Np(o,(T,E)=>{var q=E.classes[0],R=T.classes[0];q==="mbin"&&Ij.has(R)?E.classes[0]="mord":R==="mbin"&&Bj.has(q)&&(T.classes[0]="mord")},{node:v},k,w),Np(o,(T,E)=>{var q,R,B=zp(E),F=zp(T),Y=B&&F?T.hasClass("mtight")?(q=_j[B])==null?void 0:q[F]:(R=Oj[B])==null?void 0:R[F]:null;if(Y)return $6(Y,m)},{node:v},k,w),o},Np=function(t,n,i,l,o){l&&t.push(l);for(var c=0;c<t.length;c++){var f=t[c],h=Y6(f);if(h){Np(h.children,n,i,null,o);continue}var m=!f.hasClass("mspace");if(m){var y=n(f,i.node);y&&(i.insertAfter?i.insertAfter(y):(t.unshift(y),c++))}m?i.node=f:o&&f.hasClass("newline")&&(i.node=ke(["leftmost"])),i.insertAfter=(v=>k=>{t.splice(v+1,0,k),c++})(c)}l&&t.pop()},Y6=function(t){return t instanceof lu||t instanceof mf||t instanceof su&&t.hasClass("enclosing")?t:null},Mp=function(t,n){var i=Y6(t);if(i){var l=i.children;if(l.length){if(n==="right")return Mp(l[l.length-1],"right");if(n==="left")return Mp(l[0],"left")}}return t},zp=function(t,n){if(!t)return null;n&&(t=Mp(t,n));var i=t.classes[0];return qj[i]||null},$c=function(t,n){var i=["nulldelimiter"].concat(t.baseSizingClasses());return ke(n.concat(i))},zt=function(t,n,i){if(!t)return ke();if(tf[t.type]){var l=tf[t.type](t,n);if(i&&n.size!==i.size){l=ke(n.sizingClasses(i),[l],n);var o=n.sizeMultiplier/i.sizeMultiplier;l.height*=o,l.depth*=o}return l}else throw new je("Got group of unknown type: '"+t.type+"'")};function Ed(e,t){var n=ke(["base"],e,t),i=ke(["strut"]);return i.style.height=Me(n.height+n.depth),n.depth&&(i.style.verticalAlign=Me(-n.depth)),n.children.unshift(i),n}function Dp(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var i=Mn(e,t,"root"),l;i.length===2&&i[1].hasClass("tag")&&(l=i.pop());for(var o=[],c=[],f=0;f<i.length;f++)if(c.push(i[f]),i[f].hasClass("mbin")||i[f].hasClass("mrel")||i[f].hasClass("allowbreak")){for(var h=!1;f<i.length-1&&i[f+1].hasClass("mspace")&&!i[f+1].hasClass("newline");)f++,c.push(i[f]),i[f].hasClass("nobreak")&&(h=!0);h||(o.push(Ed(c,t)),c=[])}else i[f].hasClass("newline")&&(c.pop(),c.length>0&&(o.push(Ed(c,t)),c=[]),o.push(i[f]));c.length>0&&o.push(Ed(c,t));var m;n?(m=Ed(Mn(n,t,!0),t),m.classes=["tag"],o.push(m)):l&&o.push(l);var y=ke(["katex-html"],o);if(y.setAttribute("aria-hidden","true"),m){var v=m.children[0];v.style.height=Me(y.height+y.depth),y.depth&&(v.style.verticalAlign=Me(-y.depth))}return y}function W6(e){return new lu(e)}class Ae{constructor(t,n,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=i||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=$l(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof Sn&&this.children[i+1]instanceof Sn){for(var l=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof Sn;)l+=this.children[++i].toText();t.appendChild(new Sn(l).toNode())}else t.appendChild(this.children[i].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=Gn(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Gn($l(this.classes))+'"'),t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Sn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Gn(this.toText())}toText(){return this.text}}class X6{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Me(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Me(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Uj=new Set(["\\imath","\\jmath"]),Hj=new Set(["mrow","mtable"]),oa=function(t,n,i){return Kt[n][t]&&Kt[n][t].replace&&t.charCodeAt(0)!==55349&&!(H6.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=Kt[n][t].replace),new Sn(t)},j1=function(t){return t.length===1?t[0]:new Ae("mrow",t)},Fj={mathit:"italic",boldsymbol:e=>e.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},T1=(e,t)=>{if(e.mode==="text"){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold"}var n=t.font;if(!n||n==="mathnormal")return null;var i=e.mode,l=Fj[n];if(l)return typeof l=="function"?l(e):l;var o=e.text;if(Uj.has(o))return null;if(Kt[i][o]){var c=Kt[i][o].replace;c&&(o=c)}var f=Ep[n].fontName;return k1(o,f,i)?Ep[n].variant:null};function Om(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Sn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Sn&&n.text===","}else return!1}var Ir=function(t,n,i){if(t.length===1){var l=Gt(t[0],n);return i&&l instanceof Ae&&l.type==="mo"&&(l.setAttribute("lspace","0em"),l.setAttribute("rspace","0em")),[l]}for(var o=[],c,f=0;f<t.length;f++){var h=Gt(t[f],n);if(h instanceof Ae&&c instanceof Ae){if(h.type==="mtext"&&c.type==="mtext"&&h.getAttribute("mathvariant")===c.getAttribute("mathvariant")){c.children.push(...h.children);continue}else if(h.type==="mn"&&c.type==="mn"){c.children.push(...h.children);continue}else if(Om(h)&&c.type==="mn"){c.children.push(...h.children);continue}else if(h.type==="mn"&&Om(c))h.children=[...c.children,...h.children],o.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(c.type==="mn"||Om(c))){var m=h.children[0];m instanceof Ae&&m.type==="mn"&&(m.children=[...c.children,...m.children],o.pop())}else if(c.type==="mi"&&c.children.length===1){var y=c.children[0];if(y instanceof Sn&&y.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var v=h.children[0];v instanceof Sn&&v.text.length>0&&(v.text=v.text.slice(0,1)+"̸"+v.text.slice(1),o.pop())}}}o.push(h),c=h}return o},Vl=function(t,n,i){return j1(Ir(t,n,i))},Gt=function(t,n){if(!t)return new Ae("mrow");if(nf[t.type])return nf[t.type](t,n);throw new je("Got group of unknown type: '"+t.type+"'")};function Xy(e,t,n,i,l){var o=Ir(e,n),c;o.length===1&&o[0]instanceof Ae&&Hj.has(o[0].type)?c=o[0]:c=new Ae("mrow",o);var f=new Ae("annotation",[new Sn(t)]);f.setAttribute("encoding","application/x-tex");var h=new Ae("semantics",[c,f]),m=new Ae("math",[h]);m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&m.setAttribute("display","block");var y=l?"katex":"katex-mathml";return ke([y],[m])}var $j=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ky=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Qy=function(t,n){return n.size<2?t:$j[t-1][n.size-1]};class Ii{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Ii.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ky[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new Ii(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Qy(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Ky[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Qy(Ii.BASESIZE,t);return this.size===n&&this.textSize===Ii.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ii.BASESIZE?["sizing","reset-size"+this.size,"size"+Ii.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Tj(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ii.BASESIZE=6;var K6=function(t){return new Ii({style:t.displayMode?at.DISPLAY:at.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Q6=function(t,n){if(n.displayMode){var i=["katex-display"];n.leqno&&i.push("leqno"),n.fleqn&&i.push("fleqn"),t=ke(i,[t])}return t},Gj=function(t,n,i){var l=K6(i),o;if(i.output==="mathml")return Xy(t,n,l,i.displayMode,!0);if(i.output==="html"){var c=Dp(t,l);o=ke(["katex"],[c])}else{var f=Xy(t,n,l,i.displayMode,!1),h=Dp(t,l);o=ke(["katex"],[f,h])}return Q6(o,i)},Pj=function(t,n,i){var l=K6(i),o=Dp(t,l),c=ke(["katex"],[o]);return Q6(c,i)},Vj={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},yf=function(t){var n=new Ae("mo",[new Sn(Vj[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Yj={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Wj=new Set(["widehat","widecheck","widetilde","utilde"]),vf=function(t,n){function i(){var f=4e5,h=t.label.slice(1);if(Wj.has(h)&&"base"in t){var m=t.base.type==="ordgroup"?t.base.body.length:1,y,v,k;if(m>5)h==="widehat"||h==="widecheck"?(y=420,f=2364,k=.42,v=h+"4"):(y=312,f=2340,k=.34,v="tilde4");else{var w=[1,1,2,2,3,3][m];h==="widehat"||h==="widecheck"?(f=[0,1062,2364,2364,2364][w],y=[0,239,300,360,420][w],k=[0,.24,.3,.3,.36,.42][w],v=h+w):(f=[0,600,1033,2339,2340][w],y=[0,260,286,306,312][w],k=[0,.26,.286,.3,.306,.34][w],v="tilde"+w)}var T=new Gl(v),E=new Ui([T],{width:"100%",height:Me(k),viewBox:"0 0 "+f+" "+y,preserveAspectRatio:"none"});return{span:Pl([],[E],n),minWidth:0,height:k}}else{var q=[],R=Yj[h];if(!R)throw new Error('No SVG data for "'+h+'".');var[B,F,Y]=R,te=Y/1e3,_=B.length,K,le;if(_===1){if(R.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');K=["hide-tail"],le=[R[3]]}else if(_===2)K=["halfarrow-left","halfarrow-right"],le=["xMinYMin","xMaxYMin"];else if(_===3)K=["brace-left","brace-center","brace-right"],le=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
333
|
-
`+_+" children.");for(var J=0;J<_;J++){var G=new Gl(B[J]),ce=new Ui([G],{width:"400em",height:Me(te),viewBox:"0 0 "+f+" "+Y,preserveAspectRatio:le[J]+" slice"}),fe=Pl([K[J]],[ce],n);if(_===1)return{span:fe,minWidth:F,height:te};fe.style.height=Me(te),q.push(fe)}return{span:ke(["stretchy"],q,n),minWidth:F,height:te}}}var{span:l,minWidth:o,height:c}=i();return l.height=c,l.style.height=Me(c),o>0&&(l.style.minWidth=Me(o)),l},Xj=function(t,n,i,l,o){var c,f=t.height+t.depth+i+l;if(/fbox|color|angl/.test(n)){if(c=ke(["stretchy",n],[],o),n==="fbox"){var h=o.color&&o.getColor();h&&(c.style.borderColor=h)}}else{var m=[];/^[bx]cancel$/.test(n)&&m.push(new kp({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&m.push(new kp({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var y=new Ui(m,{width:"100%",height:Me(f)});c=Pl([],[y],o)}return c.height=f,c.style.height=Me(f),c},Kj={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Qj={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function Zj(e){return e in Kj}function ft(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function xf(e){var t=bf(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function bf(e){return e&&(e.type==="atom"||Qj.hasOwnProperty(e.type))?e:null}var Z6=e=>{if(e instanceof _r)return e;if(jj(e)&&e.children.length===1)return Z6(e.children[0])},A1=(e,t)=>{var n,i,l;e&&e.type==="supsub"?(i=ft(e.base,"accent"),n=i.base,e.base=n,l=Cj(zt(e,t)),e.base=i):(i=ft(e,"accent"),n=i.base);var o=zt(n,t.havingCrampedStyle()),c=i.isShifty&&Fi(n),f=0;if(c){var h,m;f=(h=(m=Z6(o))==null?void 0:m.skew)!=null?h:0}var y=i.label==="\\c",v=y?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight),k;if(i.isStretchy)k=vf(i,t),k=Mt({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:k,wrapperClasses:["svg-align"],wrapperStyle:f>0?{width:"calc(100% - "+Me(2*f)+")",marginLeft:Me(2*f)}:void 0}]});else{var w,T;i.label==="\\vec"?(w=P6("vec",t),T=G6.vec[1]):(w=gf({mode:i.mode,text:i.label},t,"textord"),w=Sj(w),w.italic=0,T=w.width,y&&(v+=w.depth)),k=ke(["accent-body"],[w]);var E=i.label==="\\textcircled";E&&(k.classes.push("accent-full"),v=o.height);var q=f;E||(q-=T/2),k.style.left=Me(q),i.label==="\\textcircled"&&(k.style.top=".2em"),k=Mt({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-v},{type:"elem",elem:k}]})}var R=ke(["mord","accent"],[k],t);return l?(l.children[0]=R,l.height=Math.max(R.height,l.height),l.classes[0]="mord",l):R},J6=(e,t)=>{var n=e.isStretchy?yf(e.label):new Ae("mo",[oa(e.label,e.mode)]),i=new Ae("mover",[Gt(e.base,t),n]);return i.setAttribute("accent","true"),i},Jj=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Ie({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=rf(t[0]),i=!Jj.test(e.funcName),l=!i||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:l,base:n}},htmlBuilder:A1,mathmlBuilder:J6});Ie({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],i=e.parser.mode;return i==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:A1,mathmlBuilder:J6});Ie({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:l}},htmlBuilder:(e,t)=>{var n=zt(e.base,t),i=vf(e,t),l=e.label==="\\utilde"?.12:0,o=Mt({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:l},{type:"elem",elem:n}]});return ke(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var n=yf(e.label),i=new Ae("munder",[Gt(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var Nd=e=>{var t=new Ae("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Ie({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i,funcName:l}=e;return{type:"xArrow",mode:i.mode,label:l,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,i=t.havingStyle(n.sup()),l=nu(zt(e.body,i,t),t),o=e.label.slice(0,2)==="\\x"?"x":"cd";l.classes.push(o+"-arrow-pad");var c;e.below&&(i=t.havingStyle(n.sub()),c=nu(zt(e.below,i,t),t),c.classes.push(o+"-arrow-pad"));var f=vf(e,t),h=-t.fontMetrics().axisHeight+.5*f.height,m=-t.fontMetrics().axisHeight-.5*f.height-.111;(l.depth>.25||e.label==="\\xleftequilibrium")&&(m-=l.depth);var y;if(c){var v=-t.fontMetrics().axisHeight+c.height+.5*f.height+.111;y=Mt({positionType:"individualShift",children:[{type:"elem",elem:l,shift:m},{type:"elem",elem:f,shift:h,wrapperClasses:["svg-align"]},{type:"elem",elem:c,shift:v}]})}else y=Mt({positionType:"individualShift",children:[{type:"elem",elem:l,shift:m},{type:"elem",elem:f,shift:h,wrapperClasses:["svg-align"]}]});return ke(["mrel","x-arrow"],[y],t)},mathmlBuilder(e,t){var n=yf(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var l=Nd(Gt(e.body,t));if(e.below){var o=Nd(Gt(e.below,t));i=new Ae("munderover",[n,o,l])}else i=new Ae("mover",[n,l])}else if(e.below){var c=Nd(Gt(e.below,t));i=new Ae("munder",[n,c])}else i=Nd(),i=new Ae("mover",[n,i]);return i}});function ev(e,t){var n=Mn(e.body,t,!0);return ke([e.mclass],n,t)}function tv(e,t){var n,i=Ir(e.body,t);return e.mclass==="minner"?n=new Ae("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(n=i[0],n.type="mi"):n=new Ae("mi",i):(e.isCharacterBox?(n=i[0],n.type="mo"):n=new Ae("mo",i),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Ie({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:i}=e,l=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.slice(5),body:kn(l),isCharacterBox:Fi(l)}},htmlBuilder:ev,mathmlBuilder:tv});var wf=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Ie({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:wf(t[0]),body:kn(t[1]),isCharacterBox:Fi(t[1])}}});Ie({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:i}=e,l=t[1],o=t[0],c;i!=="\\stackrel"?c=wf(l):c="mrel";var f={type:"op",mode:l.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:kn(l)},h={type:"supsub",mode:o.mode,base:f,sup:i==="\\underset"?null:o,sub:i==="\\underset"?o:null};return{type:"mclass",mode:n.mode,mclass:c,body:[h],isCharacterBox:Fi(h)}},htmlBuilder:ev,mathmlBuilder:tv});Ie({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:wf(t[0]),body:kn(t[0])}},htmlBuilder(e,t){var n=Mn(e.body,t,!0),i=ke([e.mclass],n,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var n=Ir(e.body,t),i=new Ae("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var eT={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Zy=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Jy=e=>e.type==="textord"&&e.text==="@",tT=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function nT(e,t,n){var i=eT[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var l=n.callFunction("\\\\cdleft",[t[0]],[]),o={type:"atom",text:i,mode:"math",family:"rel"},c=n.callFunction("\\Big",[o],[]),f=n.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[l,c,f]};return n.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var m={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[m],[])}default:return{type:"textord",text:" ",mode:"math"}}}function rT(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new je("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],l=[i],o=0;o<t.length;o++){for(var c=t[o],f=Zy(),h=0;h<c.length;h++)if(!Jy(c[h]))f.body.push(c[h]);else{i.push(f),h+=1;var m=xf(c[h]).text,y=new Array(2);if(y[0]={type:"ordgroup",mode:"math",body:[]},y[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(m))if("<>AV".includes(m))for(var v=0;v<2;v++){for(var k=!0,w=h+1;w<c.length;w++){if(tT(c[w],m)){k=!1,h=w;break}if(Jy(c[w]))throw new je("Missing a "+m+" character to complete a CD arrow.",c[w]);y[v].body.push(c[w])}if(k)throw new je("Missing a "+m+" character to complete a CD arrow.",c[h])}else throw new je('Expected one of "<>AV=|." after @',c[h]);var T=nT(m,y,e),E={type:"styling",body:[T],mode:"math",style:"display",resetFont:!0};i.push(E),f=Zy()}o%2===0?i.push(f):i.shift(),i=[],l.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var q=new Array(l[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:l,arraystretch:1,addJot:!0,rowGaps:[null],cols:q,colSeparationType:"CD",hLinesBeforeRow:new Array(l.length+1).fill([])}}Ie({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"cdlabel",mode:n.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),i=nu(zt(e.label,n,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=Me(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var n=new Ae("mrow",[Gt(e.label,t)]);return n=new Ae("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Ae("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Ie({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=nu(zt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Ae("mrow",[Gt(e.fragment,t)])}});Ie({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=ft(t[0],"ordgroup"),l=i.body,o="",c=0;c<l.length;c++){var f=ft(l[c],"textord");o+=f.text}var h=parseInt(o),m;if(isNaN(h))throw new je("\\@char has non-numeric argument "+o);if(h<0||h>=1114111)throw new je("\\@char with invalid code point "+o);return h<=65535?m=String.fromCharCode(h):(h-=65536,m=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:n.mode,text:m}}});var nv=(e,t)=>{var n=Mn(e.body,t.withColor(e.color),!1);return Gi(n)},rv=(e,t)=>{var n=Ir(e.body,t.withColor(e.color)),i=new Ae("mstyle",n);return i.setAttribute("mathcolor",e.color),i};Ie({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,i=ft(t[0],"color-token").color,l=t[1];return{type:"color",mode:n.mode,color:i,body:kn(l)}},htmlBuilder:nv,mathmlBuilder:rv});Ie({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:i}=e,l=ft(t[0],"color-token").color;n.gullet.macros.set("\\current@color",l);var o=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:l,body:o}},htmlBuilder:nv,mathmlBuilder:rv});Ie({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:i}=e,l=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,o=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:o,size:l&&ft(l,"size").value}},htmlBuilder(e,t){var n=ke(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Me(nn(e.size,t)))),n},mathmlBuilder(e,t){var n=new Ae("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Me(nn(e.size,t)))),n}});var Rp={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},av=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new je("Expected a control sequence",e);return t},aT=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},iv=(e,t,n,i)=>{var l=e.gullet.macros.get(n.text);l==null&&(n.noexpand=!0,l={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,l,i)};Ie({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var i=t.fetch();if(Rp[i.text])return(n==="\\global"||n==="\\\\globallong")&&(i.text=Rp[i.text]),ft(t.parseFunction(),"internal");throw new je("Invalid token after macro prefix",i)}});Ie({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=t.gullet.popToken(),l=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(l))throw new je("Expected a control sequence",i);for(var o=0,c,f=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){c=t.gullet.future(),f[o].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new je('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==o+1)throw new je('Argument number "'+i.text+'" out of order');o++,f.push([])}else{if(i.text==="EOF")throw new je("Expected a macro definition");f[o].push(i.text)}var{tokens:h}=t.gullet.consumeArg();return c&&h.unshift(c),(n==="\\edef"||n==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(l,{tokens:h,numArgs:o,delimiters:f},n===Rp[n]),{type:"internal",mode:t.mode}}});Ie({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=av(t.gullet.popToken());t.gullet.consumeSpaces();var l=aT(t);return iv(t,i,l,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});Ie({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=av(t.gullet.popToken()),l=t.gullet.popToken(),o=t.gullet.popToken();return iv(t,i,o,n==="\\\\globalfuture"),t.gullet.pushToken(o),t.gullet.pushToken(l),{type:"internal",mode:t.mode}}});var Sc=function(t,n,i){var l=Kt.math[t]&&Kt.math[t].replace,o=k1(l||t,n,i);if(!o)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return o},E1=function(t,n,i,l){var o=i.havingBaseStyle(n),c=ke(l.concat(o.sizingClasses(i)),[t],i),f=o.sizeMultiplier/i.sizeMultiplier;return c.height*=f,c.depth*=f,c.maxFontSize=o.sizeMultiplier,c},lv=function(t,n,i){var l=n.havingBaseStyle(i),o=(1-n.sizeMultiplier/l.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Me(o),t.height-=o,t.depth+=o},iT=function(t,n,i,l,o,c){var f=Qn(t,"Main-Regular",o,l),h=E1(f,n,l,c);return lv(h,l,n),h},lT=function(t,n,i,l){return Qn(t,"Size"+n+"-Regular",i,l)},sv=function(t,n,i,l,o,c){var f=lT(t,n,o,l),h=E1(ke(["delimsizing","size"+n],[f],l),at.TEXT,l,c);return i&&lv(h,l,at.TEXT),h},_m=function(t,n,i){var l;n==="Size1-Regular"?l="delim-size1":l="delim-size4";var o=ke(["delimsizinginner",l],[ke([],[Qn(t,n,i)])]);return{type:"elem",elem:o}},Bm=function(t,n,i){var l=Za["Size4-Regular"][t.charCodeAt(0)]?Za["Size4-Regular"][t.charCodeAt(0)][4]:Za["Size1-Regular"][t.charCodeAt(0)][4],o=new Gl("inner",gj(t,Math.round(1e3*n))),c=new Ui([o],{width:Me(l),height:Me(n),style:"width:"+Me(l),viewBox:"0 0 "+1e3*l+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),f=Pl([],[c],i);return f.height=n,f.style.height=Me(n),f.style.width=Me(l),{type:"elem",elem:f}},Op=.008,Md={type:"kern",size:-1*Op},sT=new Set(["|","\\lvert","\\rvert","\\vert"]),oT=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),ov=function(t,n,i,l,o,c){var f,h,m,y,v="",k=0;f=m=y=t,h=null;var w="Size1-Regular";t==="\\uparrow"?m=y="⏐":t==="\\Uparrow"?m=y="‖":t==="\\downarrow"?f=m="⏐":t==="\\Downarrow"?f=m="‖":t==="\\updownarrow"?(f="\\uparrow",m="⏐",y="\\downarrow"):t==="\\Updownarrow"?(f="\\Uparrow",m="‖",y="\\Downarrow"):sT.has(t)?(m="∣",v="vert",k=333):oT.has(t)?(m="∥",v="doublevert",k=556):t==="["||t==="\\lbrack"?(f="⎡",m="⎢",y="⎣",w="Size4-Regular",v="lbrack",k=667):t==="]"||t==="\\rbrack"?(f="⎤",m="⎥",y="⎦",w="Size4-Regular",v="rbrack",k=667):t==="\\lfloor"||t==="⌊"?(m=f="⎢",y="⎣",w="Size4-Regular",v="lfloor",k=667):t==="\\lceil"||t==="⌈"?(f="⎡",m=y="⎢",w="Size4-Regular",v="lceil",k=667):t==="\\rfloor"||t==="⌋"?(m=f="⎥",y="⎦",w="Size4-Regular",v="rfloor",k=667):t==="\\rceil"||t==="⌉"?(f="⎤",m=y="⎥",w="Size4-Regular",v="rceil",k=667):t==="("||t==="\\lparen"?(f="⎛",m="⎜",y="⎝",w="Size4-Regular",v="lparen",k=875):t===")"||t==="\\rparen"?(f="⎞",m="⎟",y="⎠",w="Size4-Regular",v="rparen",k=875):t==="\\{"||t==="\\lbrace"?(f="⎧",h="⎨",y="⎩",m="⎪",w="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(f="⎫",h="⎬",y="⎭",m="⎪",w="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(f="⎧",y="⎩",m="⎪",w="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(f="⎫",y="⎭",m="⎪",w="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(f="⎧",y="⎭",m="⎪",w="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(f="⎫",y="⎩",m="⎪",w="Size4-Regular");var T=Sc(f,w,o),E=T.height+T.depth,q=Sc(m,w,o),R=q.height+q.depth,B=Sc(y,w,o),F=B.height+B.depth,Y=0,te=1;if(h!==null){var _=Sc(h,w,o);Y=_.height+_.depth,te=2}var K=E+F+Y,le=Math.max(0,Math.ceil((n-K)/(te*R))),J=K+le*te*R,G=l.fontMetrics().axisHeight;i&&(G*=l.sizeMultiplier);var ce=J/2-G,fe=[];if(v.length>0){var Be=J-E-F,Ce=Math.round(J*1e3),ve=yj(v,Math.round(Be*1e3)),ee=new Gl(v,ve),pe=Me(k/1e3),De=Me(Ce/1e3),Ye=new Ui([ee],{width:pe,height:De,viewBox:"0 0 "+k+" "+Ce}),U=Pl([],[Ye],l);U.height=Ce/1e3,U.style.width=pe,U.style.height=De,fe.push({type:"elem",elem:U})}else{if(fe.push(_m(y,w,o)),fe.push(Md),h===null){var O=J-E-F+2*Op;fe.push(Bm(m,O,l))}else{var Q=(J-E-F-Y)/2+2*Op;fe.push(Bm(m,Q,l)),fe.push(Md),fe.push(_m(h,w,o)),fe.push(Md),fe.push(Bm(m,Q,l))}fe.push(Md),fe.push(_m(f,w,o))}var z=l.havingBaseStyle(at.TEXT),de=Mt({positionType:"bottom",positionData:ce,children:fe});return E1(ke(["delimsizing","mult"],[de],z),at.TEXT,l,c)},Im=80,Lm=.08,qm=function(t,n,i,l,o){var c=pj(t,l,i),f=new Gl(t,c),h=new Ui([f],{width:"400em",height:Me(n),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return Pl(["hide-tail"],[h],o)},uT=function(t,n){var i=n.havingBaseSizing(),l=hv("\\surd",t*i.sizeMultiplier,fv,i),o=i.sizeMultiplier,c=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),f,h,m,y,v;return l.type==="small"?(y=1e3+1e3*c+Im,t<1?o=1:t<1.4&&(o=.7),h=(1+c+Lm)/o,m=(1+c)/o,f=qm("sqrtMain",h,y,c,n),f.style.minWidth="0.853em",v=.833/o):l.type==="large"?(y=(1e3+Im)*Rc[l.size],m=(Rc[l.size]+c)/o,h=(Rc[l.size]+c+Lm)/o,f=qm("sqrtSize"+l.size,h,y,c,n),f.style.minWidth="1.02em",v=1/o):(h=t+c+Lm,m=t+c,y=Math.floor(1e3*t+c)+Im,f=qm("sqrtTall",h,y,c,n),f.style.minWidth="0.742em",v=1.056),f.height=m,f.style.height=Me(h),{span:f,advanceWidth:v,ruleWidth:(n.fontMetrics().sqrtRuleThickness+c)*o}},uv=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),cT=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),cv=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Rc=[0,1.2,1.8,2.4,3],dv=function(t,n,i,l,o){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),uv.has(t)||cv.has(t))return sv(t,n,!1,i,l,o);if(cT.has(t))return ov(t,Rc[n],!1,i,l,o);throw new je("Illegal delimiter: '"+t+"'")},dT=[{type:"small",style:at.SCRIPTSCRIPT},{type:"small",style:at.SCRIPT},{type:"small",style:at.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],fT=[{type:"small",style:at.SCRIPTSCRIPT},{type:"small",style:at.SCRIPT},{type:"small",style:at.TEXT},{type:"stack"}],fv=[{type:"small",style:at.SCRIPTSCRIPT},{type:"small",style:at.SCRIPT},{type:"small",style:at.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],hT=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var n=t.type;throw new Error("Add support for delim type '"+n+"' here.")},hv=function(t,n,i,l){for(var o=Math.min(2,3-l.style.size),c=o;c<i.length;c++){var f=i[c];if(f.type==="stack")break;var h=Sc(t,hT(f),"math"),m=h.height+h.depth;if(f.type==="small"){var y=l.havingBaseStyle(f.style);m*=y.sizeMultiplier}if(m>n)return f}return i[i.length-1]},_p=function(t,n,i,l,o,c){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var f;cv.has(t)?f=dT:uv.has(t)?f=fv:f=fT;var h=hv(t,n,f,l);return h.type==="small"?iT(t,h.style,i,l,o,c):h.type==="large"?sv(t,h.size,i,l,o,c):ov(t,n,i,l,o,c)},Um=function(t,n,i,l,o,c){var f=l.fontMetrics().axisHeight*l.sizeMultiplier,h=901,m=5/l.fontMetrics().ptPerEm,y=Math.max(n-f,i+f),v=Math.max(y/500*h,2*y-m);return _p(t,v,!0,l,o,c)},e3={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},mT=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function t3(e){return"isMiddle"in e}function kf(e,t){var n=bf(e);if(n&&mT.has(n.text))return n;throw n?new je("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new je("Invalid delimiter type '"+e.type+"'",e)}Ie({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=kf(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:e3[e.funcName].size,mclass:e3[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?ke([e.mclass]):dv(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(oa(e.delim,e.mode));var n=new Ae("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=Me(Rc[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}});function n3(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ie({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new je("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:kf(t[0],e).text,color:n}}});Ie({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=kf(t[0],e),i=e.parser;++i.leftrightDepth;var l=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var o=ft(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:l,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{n3(e);for(var n=Mn(e.body,t,!0,["mopen","mclose"]),i=0,l=0,o=!1,c=0;c<n.length;c++){var f=n[c];t3(f)?o=!0:(i=Math.max(n[c].height,i),l=Math.max(n[c].depth,l))}i*=t.sizeMultiplier,l*=t.sizeMultiplier;var h;if(e.left==="."?h=$c(t,["mopen"]):h=Um(e.left,i,l,t,e.mode,["mopen"]),n.unshift(h),o)for(var m=1;m<n.length;m++){var y=n[m];if(t3(y)){var v=y.isMiddle;n[m]=Um(v.delim,i,l,v.options,e.mode,[])}}var k;if(e.right===".")k=$c(t,["mclose"]);else{var w=e.rightColor?t.withColor(e.rightColor):t;k=Um(e.right,i,l,w,e.mode,["mclose"])}return n.push(k),ke(["minner"],n,t)},mathmlBuilder:(e,t)=>{n3(e);var n=Ir(e.body,t);if(e.left!=="."){var i=new Ae("mo",[oa(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if(e.right!=="."){var l=new Ae("mo",[oa(e.right,e.mode)]);l.setAttribute("fence","true"),e.rightColor&&l.setAttribute("mathcolor",e.rightColor),n.push(l)}return j1(n)}});Ie({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=kf(t[0],e);if(!e.parser.leftrightDepth)throw new je("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim==="."?n=$c(t,[]):(n=dv(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?oa("|","text"):oa(e.delim,e.mode),i=new Ae("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var Sf=(e,t)=>{var n=nu(zt(e.body,t),t),i=e.label.slice(1),l=t.sizeMultiplier,o,c,f=Fi(e.body);if(i==="sout")o=ke(["stretchy","sout"]),o.height=t.fontMetrics().defaultRuleThickness/l,c=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var h=nn({number:.6,unit:"pt"},t),m=nn({number:.35,unit:"ex"},t),y=t.havingBaseSizing();l=l/y.sizeMultiplier;var v=n.height+n.depth+h+m;n.style.paddingLeft=Me(v/2+h);var k=Math.floor(1e3*v*l),w=hj(k),T=new Ui([new Gl("phase",w)],{width:"400em",height:Me(k/1e3),viewBox:"0 0 400000 "+k,preserveAspectRatio:"xMinYMin slice"});o=Pl(["hide-tail"],[T],t),o.style.height=Me(v),c=n.depth+h+m}else{/cancel/.test(i)?f||n.classes.push("cancel-pad"):i==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var E,q,R=0;/box/.test(i)?(R=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),E=t.fontMetrics().fboxsep+(i==="colorbox"?0:R),q=E):i==="angl"?(R=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),E=4*R,q=Math.max(0,.25-n.depth)):(E=f?.2:0,q=E),o=Xj(n,i,E,q,t),/fbox|boxed|fcolorbox/.test(i)?(o.style.borderStyle="solid",o.style.borderWidth=Me(R)):i==="angl"&&R!==.049&&(o.style.borderTopWidth=Me(R),o.style.borderRightWidth=Me(R)),c=n.depth+q,e.backgroundColor&&(o.style.backgroundColor=e.backgroundColor,e.borderColor&&(o.style.borderColor=e.borderColor))}var B;if(e.backgroundColor)B=Mt({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:n,shift:0}]});else{var F=/cancel|phase/.test(i)?["svg-align"]:[];B=Mt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:o,shift:c,wrapperClasses:F}]})}return/cancel/.test(i)&&(B.height=n.height,B.depth=n.depth),/cancel/.test(i)&&!f?ke(["mord","cancel-lap"],[B],t):ke(["mord"],[B],t)},Cf=(e,t)=>{var n,i=new Ae(e.label.includes("colorbox")?"mpadded":"menclose",[Gt(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var l=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+Me(l)+" solid "+e.borderColor)}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};Ie({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,n){var{parser:i,funcName:l}=e,o=ft(t[0],"color-token").color,c=t[1];return{type:"enclose",mode:i.mode,label:l,backgroundColor:o,body:c}},htmlBuilder:Sf,mathmlBuilder:Cf});Ie({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,n){var{parser:i,funcName:l}=e,o=ft(t[0],"color-token").color,c=ft(t[1],"color-token").color,f=t[2];return{type:"enclose",mode:i.mode,label:l,backgroundColor:c,borderColor:o,body:f}},htmlBuilder:Sf,mathmlBuilder:Cf});Ie({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});Ie({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e,l=t[0];return{type:"enclose",mode:n.mode,label:i,body:l}},htmlBuilder:Sf,mathmlBuilder:Cf});Ie({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e;n.mode==="math"&&n.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var l=t[0];return{type:"enclose",mode:n.mode,label:i,body:l}},htmlBuilder:Sf,mathmlBuilder:Cf});Ie({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var mv={};function ti(e){for(var{type:t,names:n,props:i,handler:l,htmlBuilder:o,mathmlBuilder:c}=e,f={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:l},h=0;h<n.length;++h)mv[n[h]]=f;o&&(tf[t]=o),c&&(nf[t]=c)}var pv={};function D(e,t){pv[e]=t}class br{constructor(t,n,i){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=i}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new br(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Or{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new Or(n,br.range(this,t))}}function r3(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var jf=e=>{var t=e.parser.settings;if(!t.displayMode)throw new je("{"+e.envName+"} can be used only in display mode.")},pT=new Set(["gather","gather*"]);function N1(e){if(!e.includes("ed"))return!e.includes("*")}function Ql(e,t,n){var{hskipBeforeAndAfter:i,addJot:l,cols:o,arraystretch:c,colSeparationType:f,autoTag:h,singleRow:m,emptySingleRow:y,maxNumCols:v,leqno:k}=t;if(e.gullet.beginGroup(),m||e.gullet.macros.set("\\cr","\\\\\\relax"),!c){var w=e.gullet.expandMacroAsText("\\arraystretch");if(w==null)c=1;else if(c=parseFloat(w),!c||c<0)throw new je("Invalid \\arraystretch: "+w)}e.gullet.beginGroup();var T=[],E=[T],q=[],R=[],B=h!=null?[]:void 0;function F(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function Y(){B&&(e.gullet.macros.get("\\df@tag")?(B.push(e.subparse([new Or("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):B.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(F(),R.push(r3(e));;){var te=e.parseExpression(!1,m?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var _={type:"ordgroup",mode:e.mode,body:te};n&&(_={type:"styling",mode:e.mode,style:n,resetFont:!0,body:[_]}),T.push(_);var K=e.fetch().text;if(K==="&"){if(v&&T.length===v){if(m||f)throw new je("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(K==="\\end"){Y(),T.length===1&&_.type==="styling"&&_.body.length===1&&_.body[0].type==="ordgroup"&&_.body[0].body.length===0&&(E.length>1||!y)&&E.pop(),R.length<E.length+1&&R.push([]);break}else if(K==="\\\\"){e.consume();var le=void 0;e.gullet.future().text!==" "&&(le=e.parseSizeGroup(!0)),q.push(le?le.value:null),Y(),R.push(r3(e)),T=[],E.push(T),F()}else throw new je("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:l,arraystretch:c,body:E,cols:o,rowGaps:q,hskipBeforeAndAfter:i,hLinesBeforeRow:R,colSeparationType:f,tags:B,leqno:k}}function M1(e){return e.slice(0,1)==="d"?"display":"text"}var ni=function(t,n){var i,l,o=t.body.length,c=t.hLinesBeforeRow,f=0,h=new Array(o),m=[],y=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),v=1/n.fontMetrics().ptPerEm,k=5*v;if(t.colSeparationType&&t.colSeparationType==="small"){var w=n.havingStyle(at.SCRIPT).sizeMultiplier;k=.2778*(w/n.sizeMultiplier)}var T=t.colSeparationType==="CD"?nn({number:3,unit:"ex"},n):12*v,E=3*v,q=t.arraystretch*T,R=.7*q,B=.3*q,F=0;function Y(Ue){for(var et=0;et<Ue.length;++et)et>0&&(F+=.25),m.push({pos:F,isDashed:Ue[et]})}for(Y(c[0]),i=0;i<t.body.length;++i){var te=t.body[i],_=R,K=B;f<te.length&&(f=te.length);var le={cells:new Array(te.length),height:0,depth:0,pos:0};for(l=0;l<te.length;++l){var J=zt(te[l],n);K<J.depth&&(K=J.depth),_<J.height&&(_=J.height),le.cells[l]=J}var G=t.rowGaps[i],ce=0;G&&(ce=nn(G,n),ce>0&&(ce+=B,K<ce&&(K=ce),ce=0)),t.addJot&&i<t.body.length-1&&(K+=E),le.height=_,le.depth=K,F+=_,le.pos=F,F+=K+ce,h[i]=le,Y(c[i+1])}var fe=F/2+n.fontMetrics().axisHeight,Be=t.cols||[],Ce=[],ve,ee,pe=[];if(t.tags&&t.tags.some(Ue=>Ue))for(i=0;i<o;++i){var De=h[i],Ye=De.pos-fe,U=t.tags[i],O=void 0;U===!0?O=ke(["eqn-num"],[],n):U===!1?O=ke([],[],n):O=ke([],Mn(U,n,!0),n),O.depth=De.depth,O.height=De.height,pe.push({type:"elem",elem:O,shift:Ye})}for(l=0,ee=0;l<f||ee<Be.length;++l,++ee){for(var Q,z=Be[ee],de=!0;((Re=z)==null?void 0:Re.type)==="separator";){var Re;if(de||(ve=ke(["arraycolsep"],[]),ve.style.width=Me(n.fontMetrics().doubleRuleSep),Ce.push(ve)),z.separator==="|"||z.separator===":"){var ne=z.separator==="|"?"solid":"dashed",xe=ke(["vertical-separator"],[],n);xe.style.height=Me(F),xe.style.borderRightWidth=Me(y),xe.style.borderRightStyle=ne,xe.style.margin="0 "+Me(-y/2);var oe=F-fe;oe&&(xe.style.verticalAlign=Me(-oe)),Ce.push(xe)}else throw new je("Invalid separator type: "+z.separator);ee++,z=Be[ee],de=!1}if(!(l>=f)){var Oe=void 0;if(l>0||t.hskipBeforeAndAfter){var st,Ct;Oe=(st=(Ct=z)==null?void 0:Ct.pregap)!=null?st:k,Oe!==0&&(ve=ke(["arraycolsep"],[]),ve.style.width=Me(Oe),Ce.push(ve))}var lt=[];for(i=0;i<o;++i){var Je=h[i],ut=Je.cells[l];if(ut){var At=Je.pos-fe;ut.depth=Je.depth,ut.height=Je.height,lt.push({type:"elem",elem:ut,shift:At})}}var jn=Mt({positionType:"individualShift",children:lt}),Qe=ke(["col-align-"+(((Q=z)==null?void 0:Q.align)||"c")],[jn]);if(Ce.push(Qe),l<f-1||t.hskipBeforeAndAfter){var Zt,Pt;Oe=(Zt=(Pt=z)==null?void 0:Pt.postgap)!=null?Zt:k,Oe!==0&&(ve=ke(["arraycolsep"],[]),ve.style.width=Me(Oe),Ce.push(ve))}}}var Wt=ke(["mtable"],Ce);if(m.length>0){for(var qr=tu("hline",n,y),Sr=tu("hdashline",n,y),ua=[{type:"elem",elem:Wt,shift:0}];m.length>0;){var Vt=m.pop(),Ur=Vt.pos-fe;Vt.isDashed?ua.push({type:"elem",elem:Sr,shift:Ur}):ua.push({type:"elem",elem:qr,shift:Ur})}Wt=Mt({positionType:"individualShift",children:ua})}if(pe.length===0)return ke(["mord"],[Wt],n);var he=Mt({positionType:"individualShift",children:pe}),we=ke(["tag"],[he],n);return Gi([Wt,we])},gT={c:"center ",l:"left ",r:"right "},ri=function(t,n){for(var i=[],l=new Ae("mtd",[],["mtr-glue"]),o=new Ae("mtd",[],["mml-eqn-num"]),c=0;c<t.body.length;c++){for(var f=t.body[c],h=[],m=0;m<f.length;m++)h.push(new Ae("mtd",[Gt(f[m],n)]));t.tags&&t.tags[c]&&(h.unshift(l),h.push(l),t.leqno?h.unshift(o):h.push(o)),i.push(new Ae("mtr",h))}var y=new Ae("mtable",i),v=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);y.setAttribute("rowspacing",Me(v));var k="",w="";if(t.cols&&t.cols.length>0){var T=t.cols,E="",q=!1,R=0,B=T.length;T[0].type==="separator"&&(k+="top ",R=1),T[T.length-1].type==="separator"&&(k+="bottom ",B-=1);for(var F=R;F<B;F++){var Y=T[F];Y.type==="align"?(w+=gT[Y.align],q&&(E+="none "),q=!0):Y.type==="separator"&&q&&(E+=Y.separator==="|"?"solid ":"dashed ",q=!1)}y.setAttribute("columnalign",w.trim()),/[sd]/.test(E)&&y.setAttribute("columnlines",E.trim())}if(t.colSeparationType==="align"){for(var te=t.cols||[],_="",K=1;K<te.length;K++)_+=K%2?"0em ":"1em ";y.setAttribute("columnspacing",_.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?y.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?y.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?y.setAttribute("columnspacing","0.5em"):y.setAttribute("columnspacing","1em");var le="",J=t.hLinesBeforeRow;k+=J[0].length>0?"left ":"",k+=J[J.length-1].length>0?"right ":"";for(var G=1;G<J.length-1;G++)le+=J[G].length===0?"none ":J[G][0]?"dashed ":"solid ";return/[sd]/.test(le)&&y.setAttribute("rowlines",le.trim()),k!==""&&(y=new Ae("menclose",[y]),y.setAttribute("notation",k.trim())),t.arraystretch&&t.arraystretch<1&&(y=new Ae("mstyle",[y]),y.setAttribute("scriptlevel","1")),y},gv=function(t,n){t.envName.includes("ed")||jf(t);var i=[],l=t.envName.includes("at")?"alignat":"align",o=t.envName==="split",c=Ql(t.parser,{cols:i,addJot:!0,autoTag:o?void 0:N1(t.envName),emptySingleRow:!0,colSeparationType:l,maxNumCols:o?2:void 0,leqno:t.parser.settings.leqno},"display"),f=0,h=0,m={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var y="",v=0;v<n[0].body.length;v++){var k=ft(n[0].body[v],"textord");y+=k.text}f=Number(y),h=f*2}var w=!h;c.body.forEach(function(R){for(var B=1;B<R.length;B+=2){var F=ft(R[B],"styling"),Y=ft(F.body[0],"ordgroup");Y.body.unshift(m)}if(w)h<R.length&&(h=R.length);else{var te=R.length/2;if(f<te)throw new je("Too many math in a row: "+("expected "+f+", but got "+te),R[0])}});for(var T=0;T<h;++T){var E="r",q=0;T%2===1?E="l":T>0&&w&&(q=1),i[T]={type:"align",align:E,pregap:q,postgap:0}}return c.colSeparationType=w?"align":"alignat",c};ti({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=bf(t[0]),i=n?[t[0]]:ft(t[0],"ordgroup").body,l=i.map(function(c){var f=xf(c),h=f.text;if("lcr".includes(h))return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new je("Unknown column alignment: "+h,c)}),o={cols:l,hskipBeforeAndAfter:!0,maxNumCols:l.length};return Ql(e.parser,o,M1(e.envName))},htmlBuilder:ni,mathmlBuilder:ri});ti({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var l=e.parser;if(l.consumeSpaces(),l.fetch().text==="["){if(l.consume(),l.consumeSpaces(),n=l.fetch().text,!"lcr".includes(n))throw new je("Expected l or c or r",l.nextToken);l.consume(),l.consumeSpaces(),l.expect("]"),l.consume(),i.cols=[{type:"align",align:n}]}}var o=Ql(e.parser,i,M1(e.envName)),c=Math.max(0,...o.body.map(f=>f.length));return o.cols=new Array(c).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:ni,mathmlBuilder:ri});ti({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Ql(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:ni,mathmlBuilder:ri});ti({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=bf(t[0]),i=n?[t[0]]:ft(t[0],"ordgroup").body,l=i.map(function(f){var h=xf(f),m=h.text;if("lc".includes(m))return{type:"align",align:m};throw new je("Unknown column alignment: "+m,f)});if(l.length>1)throw new je("{subarray} can contain only one column");var o={cols:l,hskipBeforeAndAfter:!1,arraystretch:.5},c=Ql(e.parser,o,"script");if(c.body.length>0&&c.body[0].length>1)throw new je("{subarray} can contain only one column");return c},htmlBuilder:ni,mathmlBuilder:ri});ti({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Ql(e.parser,t,M1(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:ni,mathmlBuilder:ri});ti({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:gv,htmlBuilder:ni,mathmlBuilder:ri});ti({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){pT.has(e.envName)&&jf(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:N1(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Ql(e.parser,t,"display")},htmlBuilder:ni,mathmlBuilder:ri});ti({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:gv,htmlBuilder:ni,mathmlBuilder:ri});ti({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){jf(e);var t={autoTag:N1(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Ql(e.parser,t,"display")},htmlBuilder:ni,mathmlBuilder:ri});ti({type:"array",names:["CD"],props:{numArgs:0},handler(e){return jf(e),rT(e.parser)},htmlBuilder:ni,mathmlBuilder:ri});D("\\nonumber","\\gdef\\@eqnsw{0}");D("\\notag","\\nonumber");Ie({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new je(e.funcName+" valid only within array environment")}});var a3=mv;Ie({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:i}=e,l=t[0];if(l.type!=="ordgroup")throw new je("Invalid environment name",l);for(var o="",c=0;c<l.body.length;++c)o+=ft(l.body[c],"textord").text;if(i==="\\begin"){if(!a3.hasOwnProperty(o))throw new je("No such environment: "+o,l);var f=a3[o],{args:h,optArgs:m}=n.parseArguments("\\begin{"+o+"}",f),y={mode:n.mode,envName:o,parser:n},v=f.handler(y,h,m);n.expect("\\end",!1);var k=n.nextToken,w=ft(n.parseFunction(),"environment");if(w.name!==o)throw new je("Mismatch: \\begin{"+o+"} matched by \\end{"+w.name+"}",k);return v}return{type:"environment",mode:n.mode,name:o,nameGroup:l}}});var yv=(e,t)=>{var n=e.font,i=t.withFont(n);return zt(e.body,i)},vv=(e,t)=>{var n=e.font,i=t.withFont(n);return Gt(e.body,i)},i3={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Ie({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=rf(t[0]),o=i;return o in i3&&(o=i3[o]),{type:"font",mode:n.mode,font:o.slice(1),body:l}},htmlBuilder:yv,mathmlBuilder:vv});Ie({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:wf(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:Fi(i)}}});Ie({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,breakOnTokenText:l}=e,{mode:o}=n,c=n.parseExpression(!0,l);return{type:"font",mode:o,font:"math"+i.slice(1),body:{type:"ordgroup",mode:n.mode,body:c}}},htmlBuilder:yv,mathmlBuilder:vv});var yT=(e,t)=>{var n=t.style,i=n.fracNum(),l=n.fracDen(),o;o=t.havingStyle(i);var c=zt(e.numer,o,t);if(e.continued){var f=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;c.height=c.height<f?f:c.height,c.depth=c.depth<h?h:c.depth}o=t.havingStyle(l);var m=zt(e.denom,o,t),y,v,k;e.hasBarLine?(e.barSize?(v=nn(e.barSize,t),y=tu("frac-line",t,v)):y=tu("frac-line",t),v=y.height,k=y.height):(y=null,v=0,k=t.fontMetrics().defaultRuleThickness);var w,T,E;n.size===at.DISPLAY.size?(w=t.fontMetrics().num1,v>0?T=3*k:T=7*k,E=t.fontMetrics().denom1):(v>0?(w=t.fontMetrics().num2,T=k):(w=t.fontMetrics().num3,T=3*k),E=t.fontMetrics().denom2);var q;if(y){var B=t.fontMetrics().axisHeight;w-c.depth-(B+.5*v)<T&&(w+=T-(w-c.depth-(B+.5*v))),B-.5*v-(m.height-E)<T&&(E+=T-(B-.5*v-(m.height-E)));var F=-(B-.5*v);q=Mt({positionType:"individualShift",children:[{type:"elem",elem:m,shift:E},{type:"elem",elem:y,shift:F},{type:"elem",elem:c,shift:-w}]})}else{var R=w-c.depth-(m.height-E);R<T&&(w+=.5*(T-R),E+=.5*(T-R)),q=Mt({positionType:"individualShift",children:[{type:"elem",elem:m,shift:E},{type:"elem",elem:c,shift:-w}]})}o=t.havingStyle(n),q.height*=o.sizeMultiplier/t.sizeMultiplier,q.depth*=o.sizeMultiplier/t.sizeMultiplier;var Y;n.size===at.DISPLAY.size?Y=t.fontMetrics().delim1:n.size===at.SCRIPTSCRIPT.size?Y=t.havingStyle(at.SCRIPT).fontMetrics().delim2:Y=t.fontMetrics().delim2;var te,_;return e.leftDelim==null?te=$c(t,["mopen"]):te=_p(e.leftDelim,Y,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?_=ke([]):e.rightDelim==null?_=$c(t,["mclose"]):_=_p(e.rightDelim,Y,!0,t.havingStyle(n),e.mode,["mclose"]),ke(["mord"].concat(o.sizingClasses(t)),[te,ke(["mfrac"],[q]),_],t)},vT=(e,t)=>{var n=new Ae("mfrac",[Gt(e.numer,t),Gt(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var i=nn(e.barSize,t);n.setAttribute("linethickness",Me(i))}if(e.leftDelim!=null||e.rightDelim!=null){var l=[];if(e.leftDelim!=null){var o=new Ae("mo",[new Sn(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),l.push(o)}if(l.push(n),e.rightDelim!=null){var c=new Ae("mo",[new Sn(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),l.push(c)}return j1(l)}return n},xv=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};Ie({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0],o=t[1],c,f=null,h=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,f="(",h=")";break;case"\\\\bracefrac":c=!1,f="\\{",h="\\}";break;case"\\\\brackfrac":c=!1,f="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}var m=i==="\\cfrac",y=null;return m||i.startsWith("\\d")?y="display":i.startsWith("\\t")&&(y="text"),xv({type:"genfrac",mode:n.mode,numer:l,denom:o,continued:m,hasBarLine:c,leftDelim:f,rightDelim:h,barSize:null},y)},htmlBuilder:yT,mathmlBuilder:vT});Ie({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:i}=e,l;switch(n){case"\\over":l="\\frac";break;case"\\choose":l="\\binom";break;case"\\atop":l="\\\\atopfrac";break;case"\\brace":l="\\\\bracefrac";break;case"\\brack":l="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:l,token:i}}});var l3=["display","text","script","scriptscript"],s3=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Ie({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,i=t[4],l=t[5],o=rf(t[0]),c=o.type==="atom"&&o.family==="open"?s3(o.text):null,f=rf(t[1]),h=f.type==="atom"&&f.family==="close"?s3(f.text):null,m=ft(t[2],"size"),y,v=null;m.isBlank?y=!0:(v=m.value,y=v.number>0);var k=null,w=t[3];if(w.type==="ordgroup"){if(w.body.length>0){var T=ft(w.body[0],"textord");k=l3[Number(T.text)]}}else w=ft(w,"textord"),k=l3[Number(w.text)];return xv({type:"genfrac",mode:n.mode,numer:i,denom:l,continued:!1,hasBarLine:y,barSize:v,leftDelim:c,rightDelim:h},k)}});Ie({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:i,token:l}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:ft(t[0],"size").value,token:l}}});Ie({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0],o=ft(t[1],"infix").size;if(!o)throw new Error("\\\\abovefrac expected size, but got "+String(o));var c=t[2],f=o.number>0;return{type:"genfrac",mode:n.mode,numer:l,denom:c,continued:!1,hasBarLine:f,barSize:o,leftDelim:null,rightDelim:null}}});var bv=(e,t)=>{var n=t.style,i,l;e.type==="supsub"?(i=e.sup?zt(e.sup,t.havingStyle(n.sup()),t):zt(e.sub,t.havingStyle(n.sub()),t),l=ft(e.base,"horizBrace")):l=ft(e,"horizBrace");var o=zt(l.base,t.havingBaseStyle(at.DISPLAY)),c=vf(l,t),f;if(l.isOver?f=Mt({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:c,wrapperClasses:["svg-align"]}]}):f=Mt({positionType:"bottom",positionData:o.depth+.1+c.height,children:[{type:"elem",elem:c,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:o}]}),i){var h=ke(["minner",l.isOver?"mover":"munder"],[f],t);l.isOver?f=Mt({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:i}]}):f=Mt({positionType:"bottom",positionData:h.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:h}]})}return ke(["minner",l.isOver?"mover":"munder"],[f],t)},xT=(e,t)=>{var n=yf(e.label);return new Ae(e.isOver?"mover":"munder",[Gt(e.base,t),n])};Ie({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"horizBrace",mode:n.mode,label:i,isOver:i.includes("\\over"),base:t[0]}},htmlBuilder:bv,mathmlBuilder:xT});Ie({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[1],l=ft(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:l})?{type:"href",mode:n.mode,href:l,body:kn(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Mn(e.body,t,!1);return Dj(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Vl(e.body,t);return n instanceof Ae||(n=new Ae("mrow",[n])),n.setAttribute("href",e.href),n}});Ie({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=ft(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var l=[],o=0;o<i.length;o++){var c=i[o];c==="~"&&(c="\\textasciitilde"),l.push({type:"textord",mode:"text",text:c})}var f={type:"text",mode:n.mode,font:"\\texttt",body:l};return{type:"href",mode:n.mode,href:i,body:kn(f)}}});Ie({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:kn(t[0])}},htmlBuilder(e,t){var n=Mn(e.body,t.withFont(""),!1);return Gi(n)},mathmlBuilder(e,t){return new Ae("mrow",Ir(e.body,t.withFont("")))}});Ie({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,token:l}=e,o=ft(t[0],"raw").string,c=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var f,h={};switch(i){case"\\htmlClass":h.class=o,f={command:"\\htmlClass",class:o};break;case"\\htmlId":h.id=o,f={command:"\\htmlId",id:o};break;case"\\htmlStyle":h.style=o,f={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var m=o.split(","),y=0;y<m.length;y++){var v=m[y],k=v.indexOf("=");if(k<0)throw new je("\\htmlData key/value '"+v+"' missing equals sign");var w=v.slice(0,k),T=v.slice(k+1);h["data-"+w.trim()]=T}f={command:"\\htmlData",attributes:h};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(f)?{type:"html",mode:n.mode,attributes:h,body:kn(c)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=Mn(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var l=ke(i,n,t);for(var o in e.attributes)o!=="class"&&e.attributes.hasOwnProperty(o)&&l.setAttribute(o,e.attributes[o]);return l},mathmlBuilder:(e,t)=>Vl(e.body,t)});Ie({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:kn(t[0]),mathml:kn(t[1])}},htmlBuilder:(e,t)=>{var n=Mn(e.html,t,!1);return Gi(n)},mathmlBuilder:(e,t)=>Vl(e.mathml,t)});var Hm=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new je("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(n[1]+n[2]),unit:n[3]};if(!B6(i))throw new je("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};Ie({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:i}=e,l={number:0,unit:"em"},o={number:.9,unit:"em"},c={number:0,unit:"em"},f="";if(n[0])for(var h=ft(n[0],"raw").string,m=h.split(","),y=0;y<m.length;y++){var v=m[y].split("=");if(v.length===2){var k=v[1].trim();switch(v[0].trim()){case"alt":f=k;break;case"width":l=Hm(k);break;case"height":o=Hm(k);break;case"totalheight":c=Hm(k);break;default:throw new je("Invalid key: '"+v[0]+"' in \\includegraphics.")}}}var w=ft(t[0],"url").url;return f===""&&(f=w,f=f.replace(/^.*[\\/]/,""),f=f.substring(0,f.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:i.mode,alt:f,width:l,height:o,totalheight:c,src:w}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=nn(e.height,t),i=0;e.totalheight.number>0&&(i=nn(e.totalheight,t)-n);var l=0;e.width.number>0&&(l=nn(e.width,t));var o={height:Me(n+i)};l>0&&(o.width=Me(l)),i>0&&(o.verticalAlign=Me(-i));var c=new wj(e.src,e.alt,o);return c.height=n,c.depth=i,c},mathmlBuilder:(e,t)=>{var n=new Ae("mglyph",[]);n.setAttribute("alt",e.alt);var i=nn(e.height,t),l=0;if(e.totalheight.number>0&&(l=nn(e.totalheight,t)-i,n.setAttribute("valign",Me(-l))),n.setAttribute("height",Me(i+l)),e.width.number>0){var o=nn(e.width,t);n.setAttribute("width",Me(o))}return n.setAttribute("src",e.src),n}});Ie({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,l=ft(t[0],"size");if(n.settings.strict){var o=i[1]==="m",c=l.value.unit==="mu";o?(c||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+l.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):c&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:l.value}},htmlBuilder(e,t){return $6(e.dimension,t)},mathmlBuilder(e,t){var n=nn(e.dimension,t);return new X6(n)}});Ie({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:l}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=ke([],[zt(e.body,t)]),n=ke(["inner"],[n],t)):n=ke(["inner"],[zt(e.body,t)]);var i=ke(["fix"],[]),l=ke([e.alignment],[n,i],t),o=ke(["strut"]);return o.style.height=Me(l.height+l.depth),l.depth&&(o.style.verticalAlign=Me(-l.depth)),l.children.unshift(o),l=ke(["thinbox"],[l],t),ke(["mord","vbox"],[l],t)},mathmlBuilder:(e,t)=>{var n=new Ae("mpadded",[Gt(e.body,t)]);if(e.alignment!=="rlap"){var i=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}});Ie({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:i}=e,l=i.mode;i.switchMode("math");var o=n==="\\("?"\\)":"$",c=i.parseExpression(!1,o);return i.expect(o),i.switchMode(l),{type:"styling",mode:i.mode,style:"text",resetFont:!0,body:c}}});Ie({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new je("Mismatched "+e.funcName)}});var o3=(e,t)=>{switch(t.style.size){case at.DISPLAY.size:return e.display;case at.TEXT.size:return e.text;case at.SCRIPT.size:return e.script;case at.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ie({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:kn(t[0]),text:kn(t[1]),script:kn(t[2]),scriptscript:kn(t[3])}},htmlBuilder:(e,t)=>{var n=o3(e,t),i=Mn(n,t,!1);return Gi(i)},mathmlBuilder:(e,t)=>{var n=o3(e,t);return Vl(n,t)}});var wv=(e,t,n,i,l,o,c)=>{e=ke([],[e]);var f=n&&Fi(n),h,m;if(t){var y=zt(t,i.havingStyle(l.sup()),i);m={elem:y,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-y.depth)}}if(n){var v=zt(n,i.havingStyle(l.sub()),i);h={elem:v,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-v.height)}}var k;if(m&&h){var w=i.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+c;k=Mt({positionType:"bottom",positionData:w,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:Me(-o)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:Me(o)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else if(h){var T=e.height-c;k=Mt({positionType:"top",positionData:T,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:Me(-o)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(m){var E=e.depth+c;k=Mt({positionType:"bottom",positionData:E,children:[{type:"elem",elem:e},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:Me(o)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else return e;var q=[k];if(h&&o!==0&&!f){var R=ke(["mspace"],[],i);R.style.marginRight=Me(o),q.unshift(R)}return ke(["mop","op-limits"],q,i)},kv=new Set(["\\smallint"]),uu=(e,t)=>{var n,i,l=!1,o;e.type==="supsub"?(n=e.sup,i=e.sub,o=ft(e.base,"op"),l=!0):o=ft(e,"op");var c=t.style,f=!1;c.size===at.DISPLAY.size&&o.symbol&&!kv.has(o.name)&&(f=!0);var h,m;if(o.symbol){var y=f?"Size2-Regular":"Size1-Regular",v="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(v=o.name.slice(1),o.name=v==="oiint"?"\\iint":"\\iiint"),h=Qn(o.name,y,"math",t,["mop","op-symbol",f?"large-op":"small-op"]),m=h.italic,v.length>0){var k=P6(v+"Size"+(f?"2":"1"),t);h=Mt({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:k,shift:f?.08:0}]}),o.name="\\"+v,h.classes.unshift("mop"),h.italic=m}}else if(o.body){var w=Mn(o.body,t,!0);w.length===1&&w[0]instanceof _r?(h=w[0],h.classes[0]="mop"):h=ke(["mop"],w,t)}else{for(var T=[],E=1;E<o.name.length;E++)T.push(S1(o.name[E],o.mode,t));h=ke(["mop"],T,t)}var q=0,R=0;if((h instanceof _r||o.name==="\\oiint"||o.name==="\\oiiint")&&!o.suppressBaseShift){var B;q=(h.height-h.depth)/2-t.fontMetrics().axisHeight,R=(B=h.italic)!=null?B:0}return l?wv(h,n,i,t,c,R,q):(q&&(h.style.position="relative",h.style.top=Me(q)),h)},Xc=(e,t)=>{var n;if(e.symbol)n=new Ae("mo",[oa(e.name,e.mode)]),kv.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Ae("mo",Ir(e.body,t));else{n=new Ae("mi",[new Sn(e.name.slice(1))]);var i=new Ae("mo",[oa("","text")]);e.parentIsSupSub?n=new Ae("mrow",[n,i]):n=W6([n,i])}return n},bT={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ie({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=i;return l.length===1&&(l=bT[l]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:l}},htmlBuilder:uu,mathmlBuilder:Xc});Ie({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:kn(i)}},htmlBuilder:uu,mathmlBuilder:Xc});var wT={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ie({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:uu,mathmlBuilder:Xc});Ie({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:uu,mathmlBuilder:Xc});Ie({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,i=n;return i.length===1&&(i=wT[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:uu,mathmlBuilder:Xc});var Sv=(e,t)=>{var n,i,l=!1,o;e.type==="supsub"?(n=e.sup,i=e.sub,o=ft(e.base,"operatorname"),l=!0):o=ft(e,"operatorname");var c;if(o.body.length>0){for(var f=o.body.map(v=>{var k="text"in v?v.text:void 0;return typeof k=="string"?{type:"textord",mode:v.mode,text:k}:v}),h=Mn(f,t.withFont("mathrm"),!0),m=0;m<h.length;m++){var y=h[m];y instanceof _r&&(y.text=y.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}c=ke(["mop"],h,t)}else c=ke(["mop"],[],t);return l?wv(c,n,i,t,t.style,0,0):c},kT=(e,t)=>{for(var n=Ir(e.body,t.withFont("mathrm")),i=!0,l=0;l<n.length;l++){var o=n[l];if(!(o instanceof X6))if(o instanceof Ae)switch(o.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var c=o.children[0];o.children.length===1&&c instanceof Sn?c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var f=n.map(y=>y.toText()).join("");n=[new Sn(f)]}var h=new Ae("mi",n);h.setAttribute("mathvariant","normal");var m=new Ae("mo",[oa("","text")]);return e.parentIsSupSub?new Ae("mrow",[h,m]):W6([h,m])};Ie({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0];return{type:"operatorname",mode:n.mode,body:kn(l),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Sv,mathmlBuilder:kT});D("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Ys({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Gi(Mn(e.body,t,!1)):ke(["mord"],Mn(e.body,t,!0),t)},mathmlBuilder(e,t){return Vl(e.body,t,!0)}});Ie({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,i=t[0];return{type:"overline",mode:n.mode,body:i}},htmlBuilder(e,t){var n=zt(e.body,t.havingCrampedStyle()),i=tu("overline-line",t),l=t.fontMetrics().defaultRuleThickness,o=Mt({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*l},{type:"elem",elem:i},{type:"kern",size:l}]});return ke(["mord","overline"],[o],t)},mathmlBuilder(e,t){var n=new Ae("mo",[new Sn("‾")]);n.setAttribute("stretchy","true");var i=new Ae("mover",[Gt(e.body,t),n]);return i.setAttribute("accent","true"),i}});Ie({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"phantom",mode:n.mode,body:kn(i)}},htmlBuilder:(e,t)=>{var n=Mn(e.body,t.withPhantom(),!1);return Gi(n)},mathmlBuilder:(e,t)=>{var n=Ir(e.body,t);return new Ae("mphantom",n)}});D("\\hphantom","\\smash{\\phantom{#1}}");Ie({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"vphantom",mode:n.mode,body:i}},htmlBuilder:(e,t)=>{var n=ke(["inner"],[zt(e.body,t.withPhantom())]),i=ke(["fix"],[]);return ke(["mord","rlap"],[n,i],t)},mathmlBuilder:(e,t)=>{var n=Ir(kn(e.body),t),i=new Ae("mphantom",n),l=new Ae("mpadded",[i]);return l.setAttribute("width","0px"),l}});Ie({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,i=ft(t[0],"size").value,l=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:l}},htmlBuilder(e,t){var n=zt(e.body,t),i=nn(e.dy,t);return Mt({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new Ae("mpadded",[Gt(e.body,t)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}});Ie({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Ie({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:i}=e,l=n[0],o=ft(t[0],"size"),c=ft(t[1],"size");return{type:"rule",mode:i.mode,shift:l&&ft(l,"size").value,width:o.value,height:c.value}},htmlBuilder(e,t){var n=ke(["mord","rule"],[],t),i=nn(e.width,t),l=nn(e.height,t),o=e.shift?nn(e.shift,t):0;return n.style.borderRightWidth=Me(i),n.style.borderTopWidth=Me(l),n.style.bottom=Me(o),n.width=i,n.height=l+o,n.depth=-o,n.maxFontSize=l*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=nn(e.width,t),i=nn(e.height,t),l=e.shift?nn(e.shift,t):0,o=t.color&&t.getColor()||"black",c=new Ae("mspace");c.setAttribute("mathbackground",o),c.setAttribute("width",Me(n)),c.setAttribute("height",Me(i));var f=new Ae("mpadded",[c]);return l>=0?f.setAttribute("height",Me(l)):(f.setAttribute("height",Me(l)),f.setAttribute("depth",Me(-l))),f.setAttribute("voffset",Me(l)),f}});function Cv(e,t,n){for(var i=Mn(e,t,!1),l=t.sizeMultiplier/n.sizeMultiplier,o=0;o<i.length;o++){var c=i[o].classes.indexOf("sizing");c<0?Array.prototype.push.apply(i[o].classes,t.sizingClasses(n)):i[o].classes[c+1]==="reset-size"+t.size&&(i[o].classes[c+1]="reset-size"+n.size),i[o].height*=l,i[o].depth*=l}return Gi(i)}var u3=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ST=(e,t)=>{var n=t.havingSize(e.size);return Cv(e.body,n,t)};Ie({type:"sizing",names:u3,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:i,parser:l}=e,o=l.parseExpression(!1,n);return{type:"sizing",mode:l.mode,size:u3.indexOf(i)+1,body:o}},htmlBuilder:ST,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),i=Ir(e.body,n),l=new Ae("mstyle",i);return l.setAttribute("mathsize",Me(n.sizeMultiplier)),l}});Ie({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:i}=e,l=!1,o=!1,c=n[0]&&ft(n[0],"ordgroup");if(c)for(var f,h=0;h<c.body.length;++h){var m=c.body[h];if(f=xf(m).text,f==="t")l=!0;else if(f==="b")o=!0;else{l=!1,o=!1;break}}else l=!0,o=!0;var y=t[0];return{type:"smash",mode:i.mode,body:y,smashHeight:l,smashDepth:o}},htmlBuilder:(e,t)=>{var n=ke([],[zt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return ke(["mord","smash"],[n],t);if(n.children)for(var i=0;i<n.children.length;i++)e.smashHeight&&(n.children[i].height=0),e.smashDepth&&(n.children[i].depth=0);var l=Mt({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return ke(["mord"],[l],t)},mathmlBuilder:(e,t)=>{var n=new Ae("mpadded",[Gt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});Ie({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i}=e,l=n[0],o=t[0];return{type:"sqrt",mode:i.mode,body:o,index:l}},htmlBuilder(e,t){var n=zt(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=nu(n,t);var i=t.fontMetrics(),l=i.defaultRuleThickness,o=l;t.style.id<at.TEXT.id&&(o=t.fontMetrics().xHeight);var c=l+o/4,f=n.height+n.depth+c+l,{span:h,ruleWidth:m,advanceWidth:y}=uT(f,t),v=h.height-m;v>n.height+n.depth+c&&(c=(c+v-n.height-n.depth)/2);var k=h.height-n.height-c-m;n.style.paddingLeft=Me(y);var w=Mt({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+k)},{type:"elem",elem:h},{type:"kern",size:m}]});if(e.index){var T=t.havingStyle(at.SCRIPTSCRIPT),E=zt(e.index,T,t),q=.6*(w.height-w.depth),R=Mt({positionType:"shift",positionData:-q,children:[{type:"elem",elem:E}]}),B=ke(["root"],[R]);return ke(["mord","sqrt"],[B,w],t)}else return ke(["mord","sqrt"],[w],t)},mathmlBuilder(e,t){var{body:n,index:i}=e;return i?new Ae("mroot",[Gt(n,t),Gt(i,t)]):new Ae("msqrt",[Gt(n,t)])}});var Bp={display:at.DISPLAY,text:at.TEXT,script:at.SCRIPT,scriptscript:at.SCRIPTSCRIPT};function CT(e){return e in Bp}Ie({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:i,parser:l}=e,o=l.parseExpression(!0,n),c=i.slice(1,i.length-5);if(!CT(c))throw new Error("Unknown style: "+c);return{type:"styling",mode:l.mode,style:c,body:o}},htmlBuilder(e,t){var n=Bp[e.style],i=t.havingStyle(n);return e.resetFont&&(i=i.withFont("")),Cv(e.body,i,t)},mathmlBuilder(e,t){var n=Bp[e.style],i=t.havingStyle(n);e.resetFont&&(i=i.withFont(""));var l=Ir(e.body,i),o=new Ae("mstyle",l),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},f=c[e.style];return o.setAttribute("scriptlevel",f[0]),o.setAttribute("displaystyle",f[1]),o}});var jT=function(t,n){var i=t.base;if(i)if(i.type==="op"){var l=i.limits&&(n.style.size===at.DISPLAY.size||i.alwaysHandleSupSub);return l?uu:null}else if(i.type==="operatorname"){var o=i.alwaysHandleSupSub&&(n.style.size===at.DISPLAY.size||i.limits);return o?Sv:null}else{if(i.type==="accent")return Fi(i.base)?A1:null;if(i.type==="horizBrace"){var c=!t.sub;return c===i.isOver?bv:null}else return null}else return null};Ys({type:"supsub",htmlBuilder(e,t){var n=jT(e,t);if(n)return n(e,t);var{base:i,sup:l,sub:o}=e,c=zt(i,t),f,h,m=t.fontMetrics(),y=0,v=0,k=i&&Fi(i);if(l){var w=t.havingStyle(t.style.sup());f=zt(l,w,t),k||(y=c.height-w.fontMetrics().supDrop*w.sizeMultiplier/t.sizeMultiplier)}if(o){var T=t.havingStyle(t.style.sub());h=zt(o,T,t),k||(v=c.depth+T.fontMetrics().subDrop*T.sizeMultiplier/t.sizeMultiplier)}var E;t.style===at.DISPLAY?E=m.sup1:t.style.cramped?E=m.sup3:E=m.sup2;var q=t.sizeMultiplier,R=Me(.5/m.ptPerEm/q),B=null;if(h){var F=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(c instanceof _r||F){var Y;B=Me(-((Y=c.italic)!=null?Y:0))}}var te;if(f&&h){y=Math.max(y,E,f.depth+.25*m.xHeight),v=Math.max(v,m.sub2);var _=m.defaultRuleThickness,K=4*_;if(y-f.depth-(h.height-v)<K){v=K-(y-f.depth)+h.height;var le=.8*m.xHeight-(y-f.depth);le>0&&(y+=le,v-=le)}var J=[{type:"elem",elem:h,shift:v,marginRight:R,marginLeft:B},{type:"elem",elem:f,shift:-y,marginRight:R}];te=Mt({positionType:"individualShift",children:J})}else if(h){v=Math.max(v,m.sub1,h.height-.8*m.xHeight);var G=[{type:"elem",elem:h,marginLeft:B,marginRight:R}];te=Mt({positionType:"shift",positionData:v,children:G})}else if(f)y=Math.max(y,E,f.depth+.25*m.xHeight),te=Mt({positionType:"shift",positionData:-y,children:[{type:"elem",elem:f,marginRight:R}]});else throw new Error("supsub must have either sup or sub.");var ce=zp(c,"right")||"mord";return ke([ce],[c,ke(["msupsub"],[te])],t)},mathmlBuilder(e,t){var n=!1,i,l;e.base&&e.base.type==="horizBrace"&&(l=!!e.sup,l===e.base.isOver&&(n=!0,i=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var o=[Gt(e.base,t)];e.sub&&o.push(Gt(e.sub,t)),e.sup&&o.push(Gt(e.sup,t));var c;if(n)c=i?"mover":"munder";else if(e.sub)if(e.sup){var m=e.base;m&&m.type==="op"&&m.limits&&t.style===at.DISPLAY||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(t.style===at.DISPLAY||m.limits)?c="munderover":c="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===at.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===at.DISPLAY)?c="munder":c="msub"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===at.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===at.DISPLAY)?c="mover":c="msup"}return new Ae(c,o)}});Ys({type:"atom",htmlBuilder(e,t){return S1(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Ae("mo",[oa(e.text,e.mode)]);if(e.family==="bin"){var i=T1(e,t);i==="bold-italic"&&n.setAttribute("mathvariant",i)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var jv={mi:"italic",mn:"normal",mtext:"normal"};Ys({type:"mathord",htmlBuilder(e,t){return gf(e,t,"mathord")},mathmlBuilder(e,t){var n=new Ae("mi",[oa(e.text,e.mode,t)]),i=T1(e,t)||"italic";return i!==jv[n.type]&&n.setAttribute("mathvariant",i),n}});Ys({type:"textord",htmlBuilder(e,t){return gf(e,t,"textord")},mathmlBuilder(e,t){var n=oa(e.text,e.mode,t),i=T1(e,t)||"normal",l;return e.mode==="text"?l=new Ae("mtext",[n]):/[0-9]/.test(e.text)?l=new Ae("mn",[n]):e.text==="\\prime"?l=new Ae("mo",[n]):l=new Ae("mi",[n]),i!==jv[l.type]&&l.setAttribute("mathvariant",i),l}});var Fm={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},$m={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ys({type:"spacing",htmlBuilder(e,t){if($m.hasOwnProperty(e.text)){var n=$m[e.text].className||"";if(e.mode==="text"){var i=gf(e,t,"textord");return i.classes.push(n),i}else return ke(["mspace",n],[S1(e.text,e.mode,t)],t)}else{if(Fm.hasOwnProperty(e.text))return ke(["mspace",Fm[e.text]],[],t);throw new je('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if($m.hasOwnProperty(e.text))n=new Ae("mtext",[new Sn(" ")]);else{if(Fm.hasOwnProperty(e.text))return new Ae("mspace");throw new je('Unknown type of space "'+e.text+'"')}return n}});var c3=()=>{var e=new Ae("mtd",[]);return e.setAttribute("width","50%"),e};Ys({type:"tag",mathmlBuilder(e,t){var n=new Ae("mtable",[new Ae("mtr",[c3(),new Ae("mtd",[Vl(e.body,t)]),c3(),new Ae("mtd",[Vl(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var d3={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},f3={"\\textbf":"textbf","\\textmd":"textmd"},TT={"\\textit":"textit","\\textup":"textup"},h3=(e,t)=>{var n=e.font;if(n){if(d3[n])return t.withTextFontFamily(d3[n]);if(f3[n])return t.withTextFontWeight(f3[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(TT[n])};Ie({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,l=t[0];return{type:"text",mode:n.mode,body:kn(l),font:i}},htmlBuilder(e,t){var n=h3(e,t),i=Mn(e.body,n,!0);return ke(["mord","text"],i,n)},mathmlBuilder(e,t){var n=h3(e,t);return Vl(e.body,n)}});Ie({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=zt(e.body,t),i=tu("underline-line",t),l=t.fontMetrics().defaultRuleThickness,o=Mt({positionType:"top",positionData:n.height,children:[{type:"kern",size:l},{type:"elem",elem:i},{type:"kern",size:3*l},{type:"elem",elem:n}]});return ke(["mord","underline"],[o],t)},mathmlBuilder(e,t){var n=new Ae("mo",[new Sn("‾")]);n.setAttribute("stretchy","true");var i=new Ae("munder",[Gt(e.body,t),n]);return i.setAttribute("accentunder","true"),i}});Ie({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=zt(e.body,t),i=t.fontMetrics().axisHeight,l=.5*(n.height-i-(n.depth+i));return Mt({positionType:"shift",positionData:l,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new Ae("mpadded",[Gt(e.body,t)],["vcenter"]);return new Ae("mrow",[n])}});Ie({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new je("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=m3(e),i=[],l=t.havingStyle(t.style.text()),o=0;o<n.length;o++){var c=n[o];c==="~"&&(c="\\textasciitilde"),i.push(Qn(c,"Typewriter-Regular",e.mode,l,["mord","texttt"]))}return ke(["mord","text"].concat(l.sizingClasses(t)),F6(i),l)},mathmlBuilder(e,t){var n=new Sn(m3(e)),i=new Ae("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var m3=e=>e.body.replace(/ /g,e.star?"␣":" "),Fl=V6,Tv=`[ \r
|
|
334
|
-
]`,AT="\\\\[a-zA-Z@]+",ET="\\\\[^\uD800-\uDFFF]",NT="("+AT+")"+Tv+"*",MT=`\\\\(
|
|
335
|
-
|[ \r ]+
|
|
336
|
-
?)[ \r ]*`,Ip="[̀-ͯ]",zT=new RegExp(Ip+"+$"),DT="("+Tv+"+)|"+(MT+"|")+"([!-\\[\\]-‧-豈-]"+(Ip+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ip+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+NT)+("|"+ET+")");class p3{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(DT,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Or("EOF",new br(this,n,n));var i=this.tokenRegex.exec(t);if(i===null||i.index!==n)throw new je("Unexpected character: '"+t[n]+"'",new Or(t[n],new br(this,n,n+1)));var l=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[l]===14){var o=t.indexOf(`
|
|
337
|
-
`,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new Or(l,new br(this,n,this.tokenRegex.lastIndex))}}class RT{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new je("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,i){if(i===void 0&&(i=!1),i){for(var l=0;l<this.undefStack.length;l++)delete this.undefStack[l][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(t)&&(o[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var OT=pv;D("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});D("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});D("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});D("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});D("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});D("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");D("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var g3={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};D("\\char",function(e){var t=e.popToken(),n,i=0;if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new je("\\char` missing argument");i=t.text.charCodeAt(0)}else n=10;if(n){if(i=g3[t.text],i==null||i>=n)throw new je("Invalid base-"+n+" digit "+t.text);for(var l;(l=g3[e.future().text])!=null&&l<n;)i*=n,i+=l,e.popToken()}return"\\@char{"+i+"}"});var z1=(e,t,n,i)=>{var l=e.consumeArg().tokens;if(l.length!==1)throw new je("\\newcommand's first argument must be a macro name");var o=l[0].text,c=e.isDefined(o);if(c&&!t)throw new je("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!c&&!n)throw new je("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var f=0;if(l=e.consumeArg().tokens,l.length===1&&l[0].text==="["){for(var h="",m=e.expandNextToken();m.text!=="]"&&m.text!=="EOF";)h+=m.text,m=e.expandNextToken();if(!h.match(/^\s*[0-9]+\s*$/))throw new je("Invalid number of arguments: "+h);f=parseInt(h),l=e.consumeArg().tokens}return c&&i||e.macros.set(o,{tokens:l,numArgs:f}),""};D("\\newcommand",e=>z1(e,!1,!0,!1));D("\\renewcommand",e=>z1(e,!0,!1,!1));D("\\providecommand",e=>z1(e,!0,!0,!0));D("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});D("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});D("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Fl[n],Kt.math[n],Kt.text[n]),""});D("\\bgroup","{");D("\\egroup","}");D("~","\\nobreakspace");D("\\lq","`");D("\\rq","'");D("\\aa","\\r a");D("\\AA","\\r A");D("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");D("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");D("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");D("ℬ","\\mathscr{B}");D("ℰ","\\mathscr{E}");D("ℱ","\\mathscr{F}");D("ℋ","\\mathscr{H}");D("ℐ","\\mathscr{I}");D("ℒ","\\mathscr{L}");D("ℳ","\\mathscr{M}");D("ℛ","\\mathscr{R}");D("ℭ","\\mathfrak{C}");D("ℌ","\\mathfrak{H}");D("ℨ","\\mathfrak{Z}");D("\\Bbbk","\\Bbb{k}");D("\\llap","\\mathllap{\\textrm{#1}}");D("\\rlap","\\mathrlap{\\textrm{#1}}");D("\\clap","\\mathclap{\\textrm{#1}}");D("\\mathstrut","\\vphantom{(}");D("\\underbar","\\underline{\\text{#1}}");D("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');D("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");D("\\ne","\\neq");D("≠","\\neq");D("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");D("∉","\\notin");D("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");D("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");D("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");D("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");D("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");D("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");D("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");D("⟂","\\perp");D("‼","\\mathclose{!\\mkern-0.8mu!}");D("∌","\\notni");D("⌜","\\ulcorner");D("⌝","\\urcorner");D("⌞","\\llcorner");D("⌟","\\lrcorner");D("©","\\copyright");D("®","\\textregistered");D("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');D("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');D("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');D("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');D("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");D("⋮","\\vdots");D("\\varGamma","\\mathit{\\Gamma}");D("\\varDelta","\\mathit{\\Delta}");D("\\varTheta","\\mathit{\\Theta}");D("\\varLambda","\\mathit{\\Lambda}");D("\\varXi","\\mathit{\\Xi}");D("\\varPi","\\mathit{\\Pi}");D("\\varSigma","\\mathit{\\Sigma}");D("\\varUpsilon","\\mathit{\\Upsilon}");D("\\varPhi","\\mathit{\\Phi}");D("\\varPsi","\\mathit{\\Psi}");D("\\varOmega","\\mathit{\\Omega}");D("\\substack","\\begin{subarray}{c}#1\\end{subarray}");D("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");D("\\boxed","\\fbox{$\\displaystyle{#1}$}");D("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");D("\\implies","\\DOTSB\\;\\Longrightarrow\\;");D("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");D("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");D("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var y3={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},_T=new Set(["bin","rel"]);D("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in y3?t=y3[n]:(n.slice(0,4)==="\\not"||n in Kt.math&&_T.has(Kt.math[n].group))&&(t="\\dotsb"),t});var D1={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};D("\\dotso",function(e){var t=e.future().text;return t in D1?"\\ldots\\,":"\\ldots"});D("\\dotsc",function(e){var t=e.future().text;return t in D1&&t!==","?"\\ldots\\,":"\\ldots"});D("\\cdots",function(e){var t=e.future().text;return t in D1?"\\@cdots\\,":"\\@cdots"});D("\\dotsb","\\cdots");D("\\dotsm","\\cdots");D("\\dotsi","\\!\\cdots");D("\\dotsx","\\ldots\\,");D("\\DOTSI","\\relax");D("\\DOTSB","\\relax");D("\\DOTSX","\\relax");D("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");D("\\,","\\tmspace+{3mu}{.1667em}");D("\\thinspace","\\,");D("\\>","\\mskip{4mu}");D("\\:","\\tmspace+{4mu}{.2222em}");D("\\medspace","\\:");D("\\;","\\tmspace+{5mu}{.2777em}");D("\\thickspace","\\;");D("\\!","\\tmspace-{3mu}{.1667em}");D("\\negthinspace","\\!");D("\\negmedspace","\\tmspace-{4mu}{.2222em}");D("\\negthickspace","\\tmspace-{5mu}{.277em}");D("\\enspace","\\kern.5em ");D("\\enskip","\\hskip.5em\\relax");D("\\quad","\\hskip1em\\relax");D("\\qquad","\\hskip2em\\relax");D("\\tag","\\@ifstar\\tag@literal\\tag@paren");D("\\tag@paren","\\tag@literal{({#1})}");D("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new je("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});D("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");D("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");D("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");D("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");D("\\newline","\\\\\\relax");D("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Av=Me(Za["Main-Regular"][84][1]-.7*Za["Main-Regular"][65][1]);D("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Av+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");D("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Av+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");D("\\hspace","\\@ifstar\\@hspacer\\@hspace");D("\\@hspace","\\hskip #1\\relax");D("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");D("\\ordinarycolon",":");D("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");D("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');D("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');D("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');D("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');D("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');D("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');D("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');D("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');D("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');D("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');D("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');D("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');D("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');D("∷","\\dblcolon");D("∹","\\eqcolon");D("≔","\\coloneqq");D("≕","\\eqqcolon");D("⩴","\\Coloneqq");D("\\ratio","\\vcentcolon");D("\\coloncolon","\\dblcolon");D("\\colonequals","\\coloneqq");D("\\coloncolonequals","\\Coloneqq");D("\\equalscolon","\\eqqcolon");D("\\equalscoloncolon","\\Eqqcolon");D("\\colonminus","\\coloneq");D("\\coloncolonminus","\\Coloneq");D("\\minuscolon","\\eqcolon");D("\\minuscoloncolon","\\Eqcolon");D("\\coloncolonapprox","\\Colonapprox");D("\\coloncolonsim","\\Colonsim");D("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");D("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");D("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");D("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");D("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");D("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");D("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");D("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");D("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");D("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");D("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");D("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");D("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");D("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");D("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");D("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");D("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");D("\\nleqq","\\html@mathml{\\@nleqq}{≰}");D("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");D("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");D("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");D("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");D("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");D("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");D("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");D("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");D("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");D("\\imath","\\html@mathml{\\@imath}{ı}");D("\\jmath","\\html@mathml{\\@jmath}{ȷ}");D("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");D("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");D("⟦","\\llbracket");D("⟧","\\rrbracket");D("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");D("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");D("⦃","\\lBrace");D("⦄","\\rBrace");D("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");D("⦵","\\minuso");D("\\darr","\\downarrow");D("\\dArr","\\Downarrow");D("\\Darr","\\Downarrow");D("\\lang","\\langle");D("\\rang","\\rangle");D("\\uarr","\\uparrow");D("\\uArr","\\Uparrow");D("\\Uarr","\\Uparrow");D("\\N","\\mathbb{N}");D("\\R","\\mathbb{R}");D("\\Z","\\mathbb{Z}");D("\\alef","\\aleph");D("\\alefsym","\\aleph");D("\\Alpha","\\mathrm{A}");D("\\Beta","\\mathrm{B}");D("\\bull","\\bullet");D("\\Chi","\\mathrm{X}");D("\\clubs","\\clubsuit");D("\\cnums","\\mathbb{C}");D("\\Complex","\\mathbb{C}");D("\\Dagger","\\ddagger");D("\\diamonds","\\diamondsuit");D("\\empty","\\emptyset");D("\\Epsilon","\\mathrm{E}");D("\\Eta","\\mathrm{H}");D("\\exist","\\exists");D("\\harr","\\leftrightarrow");D("\\hArr","\\Leftrightarrow");D("\\Harr","\\Leftrightarrow");D("\\hearts","\\heartsuit");D("\\image","\\Im");D("\\infin","\\infty");D("\\Iota","\\mathrm{I}");D("\\isin","\\in");D("\\Kappa","\\mathrm{K}");D("\\larr","\\leftarrow");D("\\lArr","\\Leftarrow");D("\\Larr","\\Leftarrow");D("\\lrarr","\\leftrightarrow");D("\\lrArr","\\Leftrightarrow");D("\\Lrarr","\\Leftrightarrow");D("\\Mu","\\mathrm{M}");D("\\natnums","\\mathbb{N}");D("\\Nu","\\mathrm{N}");D("\\Omicron","\\mathrm{O}");D("\\plusmn","\\pm");D("\\rarr","\\rightarrow");D("\\rArr","\\Rightarrow");D("\\Rarr","\\Rightarrow");D("\\real","\\Re");D("\\reals","\\mathbb{R}");D("\\Reals","\\mathbb{R}");D("\\Rho","\\mathrm{P}");D("\\sdot","\\cdot");D("\\sect","\\S");D("\\spades","\\spadesuit");D("\\sub","\\subset");D("\\sube","\\subseteq");D("\\supe","\\supseteq");D("\\Tau","\\mathrm{T}");D("\\thetasym","\\vartheta");D("\\weierp","\\wp");D("\\Zeta","\\mathrm{Z}");D("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");D("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");D("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");D("\\bra","\\mathinner{\\langle{#1}|}");D("\\ket","\\mathinner{|{#1}\\rangle}");D("\\braket","\\mathinner{\\langle{#1}\\rangle}");D("\\Bra","\\left\\langle#1\\right|");D("\\Ket","\\left|#1\\right\\rangle");var Ev=e=>t=>{var n=t.consumeArg().tokens,i=t.consumeArg().tokens,l=t.consumeArg().tokens,o=t.consumeArg().tokens,c=t.macros.get("|"),f=t.macros.get("\\|");t.macros.beginGroup();var h=v=>k=>{e&&(k.macros.set("|",c),l.length&&k.macros.set("\\|",f));var w=v;if(!v&&l.length){var T=k.future();T.text==="|"&&(k.popToken(),w=!0)}return{tokens:w?l:i,numArgs:0}};t.macros.set("|",h(!1)),l.length&&t.macros.set("\\|",h(!0));var m=t.consumeArg().tokens,y=t.expandTokens([...o,...m,...n]);return t.macros.endGroup(),{tokens:y.reverse(),numArgs:0}};D("\\bra@ket",Ev(!1));D("\\bra@set",Ev(!0));D("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");D("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");D("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");D("\\angln","{\\angl n}");D("\\blue","\\textcolor{##6495ed}{#1}");D("\\orange","\\textcolor{##ffa500}{#1}");D("\\pink","\\textcolor{##ff00af}{#1}");D("\\red","\\textcolor{##df0030}{#1}");D("\\green","\\textcolor{##28ae7b}{#1}");D("\\gray","\\textcolor{gray}{#1}");D("\\purple","\\textcolor{##9d38bd}{#1}");D("\\blueA","\\textcolor{##ccfaff}{#1}");D("\\blueB","\\textcolor{##80f6ff}{#1}");D("\\blueC","\\textcolor{##63d9ea}{#1}");D("\\blueD","\\textcolor{##11accd}{#1}");D("\\blueE","\\textcolor{##0c7f99}{#1}");D("\\tealA","\\textcolor{##94fff5}{#1}");D("\\tealB","\\textcolor{##26edd5}{#1}");D("\\tealC","\\textcolor{##01d1c1}{#1}");D("\\tealD","\\textcolor{##01a995}{#1}");D("\\tealE","\\textcolor{##208170}{#1}");D("\\greenA","\\textcolor{##b6ffb0}{#1}");D("\\greenB","\\textcolor{##8af281}{#1}");D("\\greenC","\\textcolor{##74cf70}{#1}");D("\\greenD","\\textcolor{##1fab54}{#1}");D("\\greenE","\\textcolor{##0d923f}{#1}");D("\\goldA","\\textcolor{##ffd0a9}{#1}");D("\\goldB","\\textcolor{##ffbb71}{#1}");D("\\goldC","\\textcolor{##ff9c39}{#1}");D("\\goldD","\\textcolor{##e07d10}{#1}");D("\\goldE","\\textcolor{##a75a05}{#1}");D("\\redA","\\textcolor{##fca9a9}{#1}");D("\\redB","\\textcolor{##ff8482}{#1}");D("\\redC","\\textcolor{##f9685d}{#1}");D("\\redD","\\textcolor{##e84d39}{#1}");D("\\redE","\\textcolor{##bc2612}{#1}");D("\\maroonA","\\textcolor{##ffbde0}{#1}");D("\\maroonB","\\textcolor{##ff92c6}{#1}");D("\\maroonC","\\textcolor{##ed5fa6}{#1}");D("\\maroonD","\\textcolor{##ca337c}{#1}");D("\\maroonE","\\textcolor{##9e034e}{#1}");D("\\purpleA","\\textcolor{##ddd7ff}{#1}");D("\\purpleB","\\textcolor{##c6b9fc}{#1}");D("\\purpleC","\\textcolor{##aa87ff}{#1}");D("\\purpleD","\\textcolor{##7854ab}{#1}");D("\\purpleE","\\textcolor{##543b78}{#1}");D("\\mintA","\\textcolor{##f5f9e8}{#1}");D("\\mintB","\\textcolor{##edf2df}{#1}");D("\\mintC","\\textcolor{##e0e5cc}{#1}");D("\\grayA","\\textcolor{##f6f7f7}{#1}");D("\\grayB","\\textcolor{##f0f1f2}{#1}");D("\\grayC","\\textcolor{##e3e5e6}{#1}");D("\\grayD","\\textcolor{##d6d8da}{#1}");D("\\grayE","\\textcolor{##babec2}{#1}");D("\\grayF","\\textcolor{##888d93}{#1}");D("\\grayG","\\textcolor{##626569}{#1}");D("\\grayH","\\textcolor{##3b3e40}{#1}");D("\\grayI","\\textcolor{##21242c}{#1}");D("\\kaBlue","\\textcolor{##314453}{#1}");D("\\kaGreen","\\textcolor{##71B307}{#1}");var Nv={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class BT{constructor(t,n,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new RT(OT,n.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new p3(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,i,l;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:l,end:i}=this.consumeArg(["]"])}else({tokens:l,start:n,end:i}=this.consumeArg());return this.pushToken(new Or("EOF",i.loc)),this.pushTokens(l),new Or("",br.range(n,i))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],i=t&&t.length>0;i||this.consumeSpaces();var l=this.future(),o,c=0,f=0;do{if(o=this.popToken(),n.push(o),o.text==="{")++c;else if(o.text==="}"){if(--c,c===-1)throw new je("Extra }",o)}else if(o.text==="EOF")throw new je("Unexpected end of input in a macro argument, expected '"+(t&&i?t[f]:"}")+"'",o);if(t&&i)if((c===0||c===1&&t[f]==="{")&&o.text===t[f]){if(++f,f===t.length){n.splice(-f,f);break}}else f=0}while(c!==0||i);return l.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:l,end:o}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new je("The length of delimiters doesn't match the number of args!");for(var i=n[0],l=0;l<i.length;l++){var o=this.popToken();if(i[l]!==o.text)throw new je("Use of the macro doesn't match its definition",o)}}for(var c=[],f=0;f<t;f++)c.push(this.consumeArg(n&&n[f+1]).tokens);return c}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new je("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),i=n.text,l=n.noexpand?null:this._getExpansion(i);if(l==null||t&&l.unexpandable){if(t&&l==null&&i[0]==="\\"&&!this.isDefined(i))throw new je("Undefined control sequence: "+i);return this.pushToken(n),!1}this.countExpansion(1);var o=l.tokens,c=this.consumeArgs(l.numArgs,l.delimiters);if(l.numArgs){o=o.slice();for(var f=o.length-1;f>=0;--f){var h=o[f];if(h.text==="#"){if(f===0)throw new je("Incomplete placeholder at end of macro body",h);if(h=o[--f],h.text==="#")o.splice(f+1,1);else if(/^[1-9]$/.test(h.text))o.splice(f,2,...c[+h.text-1]);else throw new je("Not a valid argument number",h)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Or(t)]):void 0}expandTokens(t){var n=[],i=this.stack.length;for(this.pushTokens(t);this.stack.length>i;)if(this.expandOnce(!0)===!1){var l=this.stack.pop();l.treatAsRelax&&(l.noexpand=!1,l.treatAsRelax=!1),n.push(l)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(i=>i.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var i=this.lexer.catcodes[t];if(i!=null&&i!==13)return}var l=typeof n=="function"?n(this):n;if(typeof l=="string"){var o=0;if(l.includes("#"))for(var c=l.replace(/##/g,"");c.includes("#"+(o+1));)++o;for(var f=new p3(l,this.settings),h=[],m=f.lex();m.text!=="EOF";)h.push(m),m=f.lex();h.reverse();var y={tokens:h,numArgs:o};return y}return l}isDefined(t){return this.macros.has(t)||Fl.hasOwnProperty(t)||Kt.math.hasOwnProperty(t)||Kt.text.hasOwnProperty(t)||Nv.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Fl.hasOwnProperty(t)&&!Fl[t].primitive}}var v3=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,zd=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Gm={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},x3={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Tf{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new BT(t,n,this.mode),this.settings=n,this.leftrightDepth=0,this.nextToken=null}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new je("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Or("}")),this.gullet.pushTokens(t);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,i}parseExpression(t,n){for(var i=[];;){this.mode==="math"&&this.consumeSpaces();var l=this.fetch();if(Tf.endOfExpression.has(l.text)||n&&l.text===n||t&&Fl[l.text]&&Fl[l.text].infix)break;var o=this.parseAtom(n);if(o){if(o.type==="internal")continue}else break;i.push(o)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){for(var n=-1,i,l=0;l<t.length;l++){var o=t[l];if(o.type==="infix"){if(n!==-1)throw new je("only one infix operator per group",o.token);n=l,i=o.replaceWith}}if(n!==-1&&i){var c,f,h=t.slice(0,n),m=t.slice(n+1);h.length===1&&h[0].type==="ordgroup"?c=h[0]:c={type:"ordgroup",mode:this.mode,body:h},m.length===1&&m[0].type==="ordgroup"?f=m[0]:f={type:"ordgroup",mode:this.mode,body:m};var y;return i==="\\\\abovefrac"?y=this.callFunction(i,[c,t[n],f],[]):y=this.callFunction(i,[c,f],[]),[y]}else return t}handleSupSubscript(t){var n=this.fetch(),i=n.text;this.consume(),this.consumeSpaces();var l;do{var o;l=this.parseGroup(t)}while(((o=l)==null?void 0:o.type)==="internal");if(!l)throw new je("Expected group after '"+i+"'",n);return l}formatUnsupportedCmd(t){for(var n=[],i=0;i<t.length;i++)n.push({type:"textord",mode:"text",text:t[i]});var l={type:"text",mode:this.mode,body:n},o={type:"color",mode:this.mode,color:this.settings.errorColor,body:[l]};return o}parseAtom(t){var n=this.parseGroup("atom",t);if((n==null?void 0:n.type)==="internal"||this.mode==="text")return n;for(var i,l;;){this.consumeSpaces();var o=this.fetch();if(o.text==="\\limits"||o.text==="\\nolimits"){if(n&&n.type==="op"){var c=o.text==="\\limits";n.limits=c,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=o.text==="\\limits");else throw new je("Limit controls must follow a math operator",o);this.consume()}else if(o.text==="^"){if(i)throw new je("Double superscript",o);i=this.handleSupSubscript("superscript")}else if(o.text==="_"){if(l)throw new je("Double subscript",o);l=this.handleSupSubscript("subscript")}else if(o.text==="'"){if(i)throw new je("Double superscript",o);var f={type:"textord",mode:this.mode,text:"\\prime"},h=[f];for(this.consume();this.fetch().text==="'";)h.push(f),this.consume();this.fetch().text==="^"&&h.push(this.handleSupSubscript("superscript")),i={type:"ordgroup",mode:this.mode,body:h}}else if(zd[o.text]){var m=v3.test(o.text),y=[];for(y.push(new Or(zd[o.text])),this.consume();;){var v=this.fetch().text;if(!zd[v]||v3.test(v)!==m)break;y.unshift(new Or(zd[v])),this.consume()}var k=this.subparse(y);m?l={type:"ordgroup",mode:"math",body:k}:i={type:"ordgroup",mode:"math",body:k}}else break}return i||l?{type:"supsub",mode:this.mode,base:n,sup:i,sub:l}:n}parseFunction(t,n){var i=this.fetch(),l=i.text,o=Fl[l];if(!o)return null;if(this.consume(),n&&n!=="atom"&&!o.allowedInArgument)throw new je("Got function '"+l+"' with no arguments"+(n?" as "+n:""),i);if(this.mode==="text"&&!o.allowedInText)throw new je("Can't use function '"+l+"' in text mode",i);if(this.mode==="math"&&o.allowedInMath===!1)throw new je("Can't use function '"+l+"' in math mode",i);var{args:c,optArgs:f}=this.parseArguments(l,o);return this.callFunction(l,c,f,i,t)}callFunction(t,n,i,l,o){var c={funcName:t,parser:this,token:l,breakOnTokenText:o},f=Fl[t];if(f&&f.handler)return f.handler(c,n,i);throw new je("No function handler for "+t)}parseArguments(t,n){var i=n.numArgs+n.numOptionalArgs;if(i===0)return{args:[],optArgs:[]};for(var l=[],o=[],c=0;c<i;c++){var f=n.argTypes&&n.argTypes[c],h=c<n.numOptionalArgs;("primitive"in n&&n.primitive&&f==null||n.type==="sqrt"&&c===1&&o[0]==null)&&(f="primitive");var m=this.parseGroupOfType("argument to '"+t+"'",f,h);if(h)o.push(m);else if(m!=null)l.push(m);else throw new je("Null argument, please report this as a bug")}return{args:l,optArgs:o}}parseGroupOfType(t,n,i){switch(n){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,n);case"hbox":{var l=this.parseArgumentGroup(i,"text");return l!=null?{type:"styling",mode:l.mode,body:[l],style:"text",resetFont:!0}:null}case"raw":{var o=this.parseStringGroup("raw",i);return o!=null?{type:"raw",mode:"text",string:o.text}:null}case"primitive":{if(i)throw new je("A primitive argument cannot be optional");var c=this.parseGroup(t);if(c==null)throw new je("Expected group as "+t,this.fetch());return c}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new je("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var i=this.gullet.scanArgument(n);if(i==null)return null;for(var l="",o;(o=this.fetch()).text!=="EOF";)l+=o.text,this.consume();return this.consume(),i.text=l,i}parseRegexGroup(t,n){for(var i=this.fetch(),l=i,o="",c;(c=this.fetch()).text!=="EOF"&&t.test(o+c.text);)l=c,o+=l.text,this.consume();if(o==="")throw new je("Invalid "+n+": '"+i.text+"'",i);return i.range(l,o)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var i=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!i)throw new je("Invalid color: '"+n.text+"'",n);var l=i[0];return/^[0-9a-f]{6}$/i.test(l)&&(l="#"+l),{type:"color-token",mode:this.mode,color:l}}parseSizeGroup(t){var n,i=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",i=!0);var l=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!l)throw new je("Invalid size: '"+n.text+"'",n);var o={number:+(l[1]+l[2]),unit:l[3]};if(!B6(o))throw new je("Invalid unit: '"+o.unit+"'",n);return{type:"size",mode:this.mode,value:o,isBlank:i}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var i=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(t,n){var i=this.gullet.scanArgument(t);if(i==null)return null;var l=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var c={type:"ordgroup",mode:this.mode,loc:i.loc,body:o};return n&&this.switchMode(l),c}parseGroup(t,n){var i=this.fetch(),l=i.text,o;if(l==="{"||l==="\\begingroup"){this.consume();var c=l==="{"?"}":"\\endgroup";this.gullet.beginGroup();var f=this.parseExpression(!1,c),h=this.fetch();this.expect(c),this.gullet.endGroup(),o={type:"ordgroup",mode:this.mode,loc:br.range(i,h),body:f,semisimple:l==="\\begingroup"||void 0}}else if(o=this.parseFunction(n,t)||this.parseSymbol(),o==null&&l[0]==="\\"&&!Nv.hasOwnProperty(l)){if(this.settings.throwOnError)throw new je("Undefined control sequence: "+l,i);o=this.formatUnsupportedCmd(l),this.consume()}return o}formLigatures(t){for(var n=t.length-1,i=0;i<n;++i){var l=t[i];if(l.type==="textord"){var o=l.text,c=t[i+1];if(!(!c||c.type!=="textord")){if(o==="-"&&c.text==="-"){var f=t[i+2];i+1<n&&f&&f.type==="textord"&&f.text==="-"?(t.splice(i,3,{type:"textord",mode:"text",loc:br.range(l,f),text:"---"}),n-=2):(t.splice(i,2,{type:"textord",mode:"text",loc:br.range(l,c),text:"--"}),n-=1)}(o==="'"||o==="`")&&c.text===o&&(t.splice(i,2,{type:"textord",mode:"text",loc:br.range(l,c),text:o+o}),n-=1)}}}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var i=n.slice(5),l=i.charAt(0)==="*";if(l&&(i=i.slice(1)),i.length<2||i.charAt(0)!==i.slice(-1))throw new je(`\\verb assertion failed --
|
|
338
|
-
please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:l}}x3.hasOwnProperty(n[0])&&!Kt[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=x3[n[0]]+n.slice(1));var o=zT.exec(n);o&&(n=n.substring(0,o.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var c;if(Kt[this.mode][n]){this.settings.strict&&this.mode==="math"&&Sp.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var f=Kt[this.mode][n].group,h=br.range(t),m;Zj(f)?m={type:"atom",mode:this.mode,family:f,loc:h,text:n}:m={type:f,mode:this.mode,loc:h,text:n},c=m}else if(n.charCodeAt(0)>=128)this.settings.strict&&(_6(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),c={type:"textord",mode:"text",loc:br.range(t),text:n};else return null;if(this.consume(),o)for(var y=0;y<o[0].length;y++){var v=o[0][y];if(!Gm[v])throw new je("Unknown accent ' "+v+"'",t);var k=Gm[v][this.mode]||Gm[v].text;if(!k)throw new je("Accent "+v+" unsupported in "+this.mode+" mode",t);c={type:"accent",mode:this.mode,loc:br.range(t),label:k,isStretchy:!1,isShifty:!0,base:c}}return c}}Tf.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var R1=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new Tf(t,n);delete i.gullet.macros.current["\\df@tag"];var l=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new je("\\tag works only in display equations");l=[{type:"tag",mode:"text",body:l,tag:i.subparse([new Or("\\df@tag")])}]}return l},O1=function(t,n,i){n.textContent="";var l=Af(t,i).toNode();n.appendChild(l)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),O1=function(){throw new je("KaTeX doesn't work in quirks mode.")});var Mv=function(t,n){var i=Af(t,n).toMarkup();return i},zv=function(t,n){var i=new x1(n);return R1(t,i)},Dv=function(t,n,i){if(i.throwOnError||!(t instanceof je))throw t;var l=ke(["katex-error"],[new _r(n)]);return l.setAttribute("title",t.toString()),l.setAttribute("style","color:"+i.errorColor),l},Af=function(t,n){var i=new x1(n);try{var l=R1(t,i);return Gj(l,t,i)}catch(o){return Dv(o,t,i)}},Rv=function(t,n){var i=new x1(n);try{var l=R1(t,i);return Pj(l,t,i)}catch(o){return Dv(o,t,i)}},Ov="0.16.47",_v={Span:su,Anchor:mf,SymbolNode:_r,SvgNode:Ui,PathNode:Gl,LineNode:kp},Lp={version:Ov,render:O1,renderToString:Mv,ParseError:je,SETTINGS_SCHEMA:Zd,__parse:zv,__renderToDomTree:Af,__renderToHTMLTree:Rv,__setFontMetrics:U6,__defineSymbol:b,__defineFunction:Ie,__defineMacro:D,__domTree:_v};const jD=Object.freeze(Object.defineProperty({__proto__:null,ParseError:je,SETTINGS_SCHEMA:Zd,__defineFunction:Ie,__defineMacro:D,__defineSymbol:b,__domTree:_v,__parse:zv,__renderToDomTree:Af,__renderToHTMLTree:Rv,__setFontMetrics:U6,default:Lp,get render(){return O1},renderToString:Mv,version:Ov},Symbol.toStringTag,{value:"Module"})),IT={};function LT(e){const t=this,n=e||IT,i=t.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(PC(n)),o.push(IC()),c.push(LC(n))}const b3=/[#.]/g;function qT(e,t){const n=e||"",i={};let l=0,o,c;for(;l<n.length;){b3.lastIndex=l;const f=b3.exec(n),h=n.slice(l,f?f.index:n.length);h&&(o?o==="#"?i.id=h:Array.isArray(i.className)?i.className.push(h):i.className=[h]:c=h,l+=h.length),f&&(o=f[0],l++)}return{type:"element",tagName:c||t||"div",properties:i,children:[]}}function Bv(e,t,n){const i=n?$T(n):void 0;function l(o,c,...f){let h;if(o==null){h={type:"root",children:[]};const m=c;f.unshift(m)}else{h=qT(o,t);const m=h.tagName.toLowerCase(),y=i?i.get(m):void 0;if(h.tagName=y||m,UT(c))f.unshift(c);else for(const[v,k]of Object.entries(c))HT(e,h.properties,v,k)}for(const m of f)qp(h.children,m);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return l}function UT(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const i of n){const l=t[i];if(l&&typeof l=="object"){if(!Array.isArray(l))return!0;const o=l;for(const c of o)if(typeof c!="number"&&typeof c!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function HT(e,t,n,i){const l=_5(e,n);let o;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;o=i}else typeof i=="boolean"?o=i:typeof i=="string"?l.spaceSeparated?o=X2(i):l.commaSeparated?o=G2(i):l.commaOrSpaceSeparated?o=X2(G2(i).join(" ")):o=w3(l,l.property,i):Array.isArray(i)?o=[...i]:o=l.property==="style"?FT(i):String(i);if(Array.isArray(o)){const c=[];for(const f of o)c.push(w3(l,l.property,f));o=c}l.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[l.property]=o}}function qp(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)qp(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?qp(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function w3(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||qc(n)===qc(t)))return!0}return n}function FT(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function $T(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const GT=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],PT=Bv(B5,"div"),VT=Bv(uf,"g",GT),Pm={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function YT(e,t){return Iv(e,{})||{type:"root",children:[]}}function Iv(e,t){const n=WT(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function WT(e,t){switch(e.nodeType){case 1:return ZT(e,t);case 3:return KT(e);case 8:return QT(e);case 9:return k3(e,t);case 10:return XT();case 11:return k3(e,t);default:return}}function k3(e,t){return{type:"root",children:Lv(e,t)}}function XT(){return{type:"doctype"}}function KT(e){return{type:"text",value:e.nodeValue||""}}function QT(e){return{type:"comment",value:e.nodeValue||""}}function ZT(e,t){const n=e.namespaceURI,i=n===Pm.svg?VT:PT,l=n===Pm.html?e.tagName.toLowerCase():e.tagName,o=n===Pm.html&&l==="template"?e.content:e,c=e.getAttributeNames(),f={};let h=-1;for(;++h<c.length;)f[c[h]]=e.getAttribute(c[h])||"";return i(l,f,Lv(o,t))}function Lv(e,t){const n=e.childNodes,i=[];let l=-1;for(;++l<n.length;){const o=Iv(n[l],t);o!==void 0&&i.push(o)}return i}new DOMParser;function JT(e,t){const n=eA(e);return YT(n)}function eA(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const S3=(function(e,t,n){const i=Vc(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]}),Ws=(function(e){if(e==null)return rA;if(typeof e=="string")return nA(e);if(typeof e=="object")return tA(e);if(typeof e=="function")return _1(e);throw new Error("Expected function, string, or array as `test`")});function tA(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ws(e[n]);return _1(i);function i(...l){let o=-1;for(;++o<t.length;)if(t[o].apply(this,l))return!0;return!1}}function nA(e){return _1(t);function t(n){return n.tagName===e}}function _1(e){return t;function t(n,i,l){return!!(aA(n)&&e.call(this,n,typeof i=="number"?i:void 0,l||void 0))}}function rA(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function aA(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const C3=/\n/g,j3=/[\t ]+/g,Up=Ws("br"),T3=Ws(fA),iA=Ws("p"),A3=Ws("tr"),lA=Ws(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",dA,hA]),qv=Ws(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function sA(e,t){const n=t||{},i="children"in e?e.children:[],l=qv(e),o=Fv(e,{whitespace:n.whitespace||"normal"}),c=[];(e.type==="text"||e.type==="comment")&&c.push(...Hv(e,{breakBefore:!0,breakAfter:!0}));let f=-1;for(;++f<i.length;)c.push(...Uv(i[f],e,{whitespace:o,breakBefore:f?void 0:l,breakAfter:f<i.length-1?Up(i[f+1]):l}));const h=[];let m;for(f=-1;++f<c.length;){const y=c[f];typeof y=="number"?m!==void 0&&y>m&&(m=y):y&&(m!==void 0&&m>-1&&h.push(`
|
|
339
|
-
`.repeat(m)||" "),m=-1,h.push(y))}return h.join("")}function Uv(e,t,n){return e.type==="element"?oA(e,t,n):e.type==="text"?n.whitespace==="normal"?Hv(e,n):uA(e):[]}function oA(e,t,n){const i=Fv(e,n),l=e.children||[];let o=-1,c=[];if(lA(e))return c;let f,h;for(Up(e)||A3(e)&&S3(t,e,A3)?h=`
|
|
340
|
-
`:iA(e)?(f=2,h=2):qv(e)&&(f=1,h=1);++o<l.length;)c=c.concat(Uv(l[o],e,{whitespace:i,breakBefore:o?void 0:f,breakAfter:o<l.length-1?Up(l[o+1]):h}));return T3(e)&&S3(t,e,T3)&&c.push(" "),f&&c.unshift(f),h&&c.push(h),c}function Hv(e,t){const n=String(e.value),i=[],l=[];let o=0;for(;o<=n.length;){C3.lastIndex=o;const h=C3.exec(n),m=h&&"index"in h?h.index:n.length;i.push(cA(n.slice(o,m).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o===0?t.breakBefore:!0,m===n.length?t.breakAfter:!0)),o=m+1}let c=-1,f;for(;++c<i.length;)i[c].charCodeAt(i[c].length-1)===8203||c<i.length-1&&i[c+1].charCodeAt(0)===8203?(l.push(i[c]),f=void 0):i[c]?(typeof f=="number"&&l.push(f),l.push(i[c]),f=0):(c===0||c===i.length-1)&&l.push(0);return l}function uA(e){return[String(e.value)]}function cA(e,t,n){const i=[];let l=0,o;for(;l<e.length;){j3.lastIndex=l;const c=j3.exec(e);o=c?c.index:e.length,!l&&!o&&c&&!t&&i.push(""),l!==o&&i.push(e.slice(l,o)),l=c?o+c[0].length:o}return l!==o&&!n&&i.push(""),i.join(" ")}function Fv(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function dA(e){return!!(e.properties||{}).hidden}function fA(e){return e.tagName==="td"||e.tagName==="th"}function hA(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const mA={},pA=[];function gA(e){const t=e||mA;return function(n,i){h1(n,"element",function(l,o){const c=Array.isArray(l.properties.className)?l.properties.className:pA,f=c.includes("language-math"),h=c.includes("math-display"),m=c.includes("math-inline");let y=h;if(!f&&!h&&!m)return;let v=o[o.length-1],k=l;if(l.tagName==="code"&&f&&v&&v.type==="element"&&v.tagName==="pre"&&(k=v,v=o[o.length-2],y=!0),!v)return;const w=sA(k,{whitespace:"pre"});let T;try{T=Lp.renderToString(w,{...t,displayMode:y,throwOnError:!0})}catch(q){const R=q,B=R.name.toLowerCase();i.message("Could not render math with KaTeX",{ancestors:[...o,l],cause:R,place:l.position,ruleId:B,source:"rehype-katex"});try{T=Lp.renderToString(w,{...t,displayMode:y,strict:"ignore",throwOnError:!1})}catch{T=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(q)},children:[{type:"text",value:w}]}]}}typeof T=="string"&&(T=JT(T).children);const E=v.children.indexOf(k);return v.children.splice(E,1,...T),u6})}}function yA(e){const t=new Map;for(const n of e){if(!n.turnId)continue;if(n.event==="server.wakeup.started"){t.set(n.turnId,"wakeup");continue}if(n.event!=="server.turn")continue;const i=xA(n.data);t.set(n.turnId,typeof i.source=="string"?i.source:"web")}return t}function Oc(e,t){return!!(t&&e.includes(t))}function vA(e){var n;if((e==null?void 0:e.status)!=="failed")return null;const t=(n=e.error)==null?void 0:n.trim();return t?{turnId:e.id,content:t,createdAt:e.finishedAt??e.startedAt}:null}function xA(e){return e&&typeof e=="object"?e:{}}const bA=["summary","message","status","instruction","description","reason","error","text"],E3=96,wA=new Set(["codex.dynamic_tool_request","codex.process_exited","codex.protocol_error"]),kA=new Set(["server.status","runtime.worker_stderr","codex.dynamic_tool_request"]),SA=new Set(["agentMessage","commandExecution","contextCompaction","fileChange","mcpToolCall","reasoning","userMessage","webSearch"]),$v=new Set(["item/commandExecution/terminalInteraction"]),CA=new Map([["server.wakeup.retry_scheduled","Wakeup retry scheduled"],["runtime.worker_exit","Runtime worker exited"]]);function jA(e){if(e.event!=="codex.notification")return!1;const t=Ja(e.data);return typeof t.method=="string"&&$v.has(t.method)}function TA(e){if(kA.has(e.event))return null;if(e.event.startsWith("server.")||e.event.startsWith("runtime.")||wA.has(e.event))return e.event;if(e.event!=="codex.notification")return null;const t=Ja(e.data),n=typeof t.method=="string"?t.method:"",i=Ja(t.params),l=Ja(i.item),o=typeof l.type=="string"?l.type:"";return!n.startsWith("item/")||$v.has(n)||n.endsWith("/delta")||n.endsWith("/outputDelta")||SA.has(o)?null:n}function Gv(e,t){const n=t.replace(/^input:/,""),i=(e==null?void 0:e.trim())??"";return!i||i===t||i===n?CA.get(n)??Pv(n):i}function $s(e,t=[]){const n=Ja(e),l=[...t,...bA.map(o=>_c(n[o]))].map(o=>(o==null?void 0:o.replace(/\s+/g," ").trim())??"").find(Boolean);return l?l.length<=E3?l:`${l.slice(0,E3-3)}...`:"查看详情"}function Hp(e,t=new Map){const n=Ja(e),i=typeof n.unreadCount=="number"&&n.unreadCount>0?Math.floor(n.unreadCount):0,o=(Array.isArray(n.senderWorkspaceIds)?Array.from(new Set(n.senderWorkspaceIds.filter(h=>typeof h=="string").map(h=>h.trim()).filter(Boolean))):[]).map(h=>t.get(h)??h),c="Messages",f=[i>0?String(i):"",o.length>0?`from ${o.join(", ")}`:""].filter(Boolean).join(" ");return{title:c,detail:$s({},[f])}}function AA(e){const t=Ja(e),n=Array.isArray(t.offers)?t.offers.map(Ja).filter(o=>Object.keys(o).length>0):[],i=n.map(o=>{var c;return(c=_c(o.previewText))==null?void 0:c.trim()}).filter(o=>!!o),l=n.length;return{title:l===1?"New input available":`${l} new inputs available`,detail:$s({},i.slice(0,2)),meta:l===1?"preview":`${l} previews`}}function EA(e){const t=Ja(e),n=_c(t.actionType)??"",i=Ja(t.payload);return n==="seele_wakeup"||n==="seele_workspace_schedule_wakeup"?{title:(_c(i.action)??"schedule")==="cancel"?"Wakeup cancellation requested":"Wakeup requested",detail:$s(i,[_c(i.instruction)]),meta:"after turn"}:{title:"Action requested",detail:$s(i,[Pv(n||"agent action")]),meta:"after turn"}}function Pv(e){const n=(e.split(/[./]/).filter(Boolean).pop()??e).replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim();return n?n.charAt(0).toUpperCase()+n.slice(1):"System event"}function _c(e){if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e)}function Ja(e){return e&&typeof e=="object"?e:{}}function Fp(e){const t=$p(e);return(Array.isArray(t.changes)?t.changes:[]).flatMap(i=>{const l=$p(i);if(typeof l.path!="string"||!l.path.trim())return[];const o=DA(l.kind),c=typeof l.diff=="string"?l.diff:"",f=zA(c,o);return[{path:l.path,kind:o,additions:f.additions,deletions:f.deletions}]})}function Vv(e,t){const n=M3(e),i=M3(t??"").replace(/\/+$/,"");return i&&(n===i||n.startsWith(`${i}/`))?n.slice(i.length+1)||".":n}function NA(e,t){if(e.length===0)return"File changed";const n=Vv(e[0].path,t);return e.length===1?n:`${n} +${e.length-1}`}function MA(e){return e.reduce((t,n)=>({additions:t.additions+n.additions,deletions:t.deletions+n.deletions}),{additions:0,deletions:0})}function zA(e,t){if(!e)return{additions:0,deletions:0};if(t==="add")return{additions:N3(e),deletions:0};if(t==="delete")return{additions:0,deletions:N3(e)};let n=0,i=0;for(const l of e.split(`
|
|
341
|
-
`))l.startsWith("+")&&!l.startsWith("+++")?n+=1:l.startsWith("-")&&!l.startsWith("---")&&(i+=1);return{additions:n,deletions:i}}function N3(e){const t=e.split(`
|
|
342
|
-
`).length;return e.endsWith(`
|
|
343
|
-
`)?Math.max(0,t-1):t}function DA(e){const t=$p(e);return t.type==="add"?"add":t.type==="delete"?"delete":t.type==="move"||typeof t.move_path=="string"?"move":"update"}function M3(e){return e.replace(/\\/g,"/").replace(/\/+/g,"/")}function $p(e){return e&&typeof e=="object"?e:{}}const B1=["low","medium","high","xhigh"],RA=["none","minimal",...B1,"max"];function Qo(e){const t=e.trim();return t?{minimal:"Minimal",none:"None",low:"Low",medium:"Medium",high:"High",xhigh:"Extra high",max:"Max",ultra:"Ultra"}[t]??t:"Use model default"}function z3(e,t){const n=Gs(e),i=Gs(t==null?void 0:t.defaultReasoningEffort);return n?n===i?`${Qo(n)} (model default)`:Qo(n):i?`Auto (model default: ${Qo(i)})`:"Auto (follow model default)"}function OA(e,t=""){const n=Gs(e==null?void 0:e.defaultReasoningEffort),i=[];if(!e){i.push({value:"",label:"Use model default"});const f=Gs(t);return f&&Wv(f)&&i.push({value:f,label:`${Qo(f)} (configured)`}),i}const o=(Yv(e)??B1).filter(f=>!Gp(f));n&&!Gp(n)&&!o.includes(n)&&o.unshift(n),n&&o.includes(n)||i.push({value:"",label:"Use model default"});for(const f of o)i.push({value:f===n?"":f,label:f===n?`${Qo(f)} (model default)`:Qo(f)});return i}function D3(e,t){const n=Gs(e);if(!n||Gp(n))return"";const i=Gs(t==null?void 0:t.defaultReasoningEffort);if(i&&n===i)return"";if(!t)return Wv(n)?n:"";const l=Yv(t);return l!==null?l.includes(n)?n:"":B1.includes(n)?n:""}function _A(e,t,n){return n||e!==t?e:null}function Yv(e){if(!Array.isArray(e==null?void 0:e.supportedReasoningEfforts))return null;const t=[];for(const n of e.supportedReasoningEfforts){const i=Gs(n==null?void 0:n.reasoningEffort);i&&!t.includes(i)&&t.push(i)}return t}function Gs(e){return typeof e=="string"?e.trim():""}function Gp(e){return e.toLowerCase()==="ultra"}function Wv(e){return RA.includes(e)}function BA(e,t){return{textareaDisabled:!1,sendDisabled:t||!e.trim()}}function IA(e,t){return e.hasConversation?e.messageSubmitting?"blocked":e.hasActiveTurn||e.hasConfirmedCurrentTurn?t&&!e.complexTaskActive?"queue-turn":"steer-turn":"start-turn":"create-workspace"}function LA(e){return e.key!=="Enter"||!e.metaKey&&!e.ctrlKey||e.isComposing?null:{forceNewTurn:e.shiftKey}}function R3(e,t){return e.conversationId===t.conversationId&&e.version===t.version}function qA(e,t,n){return e===401&&!n&&t==="authentication_required"?"reauthenticate":"ignore"}const O3=15e3,_3=[1e3,2e3,5e3,1e4,15e3];function UA(e){return!e.workspaceRunning||e.streamLeaseActive||e.controllerActive?{kind:"none"}:e.currentTurnAbsent?e.retryAt!==null&&e.now>=e.retryAt?{kind:"probe",waitMs:O3}:{kind:"none"}:{kind:"probe",waitMs:O3}}function HA(e){const t=Math.min(Math.max(1,Math.floor(e))-1,_3.length-1);return _3[t]}function FA(e){const t=B3(e),n=B3(t.conversation),i=t.workspaceStatus??t.status??n.status;return i==="idle"||i==="error"||i==="done"||i==="initialization_failed"?i:"done"}function B3(e){return e&&typeof e=="object"?e:{}}function $A(e,t,n){return n?"running":e==="running"||e==="error"?e:t==="scheduled"?"waiting":e}function Lr(e,t){if(!e.deploymentId||!e.userId||!t)throw new Error("Browser storage requires deployment, user, and preference identities.");return["seele","v1",encodeURIComponent(e.deploymentId),encodeURIComponent(e.userId),encodeURIComponent(t)].join(":")}function I1(e,t){const n=[],i=new Set;for(const l of[...e,...t])i.has(l)||(i.add(l),n.push(l));return n}function I3(e,t,n){return I1([t,...e.filter(i=>i!==t)],n)}function GA(e,t){return e.filter(n=>n!==t)}function PA(e,t){const n=e.code==="ArrowUp"?-1:e.code==="ArrowDown"?1:null;return n!==null&&e.metaKey&&e.shiftKey&&e.leftShiftPressed&&!e.ctrlKey&&!e.altKey?{type:"move",direction:n}:t?e.key==="Escape"?{type:"cancel"}:e.code==="Space"&&!e.repeat?{type:"confirm"}:null:null}function Ls(e){return`${e.kind}:${e.id}`}function VA(e,t){return e.flatMap(n=>[{kind:"group",id:n.id},...t.has(n.id)?[]:n.conversations.map(i=>({kind:"workspace",id:i.id}))])}function YA(e,t,n,i){if(e.length===0)return null;const l=t?Ls(t):null;let o=l?e.findIndex(c=>Ls(c)===l):-1;return o<0&&n&&(o=e.findIndex(c=>c.kind==="workspace"&&c.id===n)),o<0?i>0?e[0]:e[e.length-1]:e[(o+i+e.length)%e.length]}function WA(e,t){return t??e}function XA(e,t){return e==="saved"||t==="accept"?"saved":"declined"}const KA=/^[a-z][a-z\d+.-]*:/i,QA=/^L([1-9]\d*)(?:C([1-9]\d*))?$/i;function ZA(e,t){const n=e.trim();if(!n||n.startsWith("#")||n.startsWith("?")||n.startsWith("/api/")||KA.test(n))return null;const i=n.indexOf("#"),l=i>=0?n.slice(0,i):n,o=i>=0?n.slice(i+1):"",c=l.indexOf("?"),f=c>=0?l.slice(0,c):l,h=JA(f);if(!h)return null;const m=o.match(QA);return{path:Xv(h,t),...m?{line:Number(m[1])}:{},...m!=null&&m[2]?{column:Number(m[2])}:{}}}function Xv(e,t){const n=e.replace(/\\/g,"/"),i=t.replace(/\\/g,"/").replace(/\/+$/,"");return n===i||!n.startsWith(`${i}/`)?n:n.slice(i.length+1)}function JA(e){const t=e.trim().replace(/^`+|`+$/g,"").replace(/^\.\//,"");return t||null}const Pp="seele:authentication-required",Vp="seele:deployment-status-required",Kv=12,eE=3e3,Qv="activeWorkspaceId",L1="workspaceOrder",Zv="workspaceGroupOrder",Jv="workspaceDrafts",e7="collapsedWorkspaceGroups",t7="sidebarWidth",L3=5,q3=275,tE=236,nE=420,U3="default",H3=300,rE=3,aE=10,iE=2,lE=13,sE=1.65,oE=20,uE=900;class Qa extends Error{constructor(n,i,l,o){super(n);xd(this,"detail");xd(this,"status");xd(this,"body");this.name="DetailedHttpError",this.detail=i,this.status=l,this.body=o}}const cE=[{value:"workspace-write",label:"Workspace"},{value:"danger-full-access",label:"System"}],bc={id:null,kind:"source",name:"",description:"",purpose:"",attention:"tracked",refreshPolicy:"manual",status:"draft",sourceCluesText:"",requiredEnvText:""};function q1(){var e;return((e=document.querySelector('meta[name="seele-public-base-path"]'))==null?void 0:e.content.replace(/\/?$/,"/"))??"/"}function Ne(e){return`${q1()}api/${e.replace(/^\/+/,"")}`}async function Fn(e,t){const n=await e.text().catch(()=>""),i=`Request failed with ${e.status}`,l=[`${t.method??"GET"} ${t.url}`,`HTTP ${e.status} ${e.statusText||""}`.trim(),n?`Response: ${n}`:"Response: <empty>"].join(`
|
|
344
|
-
`);return new Qa(i,l,e.status,n)}function dt(e){return e instanceof Qa?{message:e.message,detail:e.detail}:e instanceof Error?{message:e.message}:{message:String(e)}}function _s(e){const t=dt(e);return t.detail?{message:t.message,detail:t.detail}:t.message}async function He(e,t){if(!e.ok)throw await Fn(e,t)}function dE(e){return e instanceof Qa&&e.status===410&&e.body.includes('"turn_not_active"')}function fE(e){return e instanceof Qa&&e.status===409&&e.body.includes('"turn_not_running"')}function hE(e){return e instanceof Qa&&e.status===409&&e.body.includes('"thread_capability_upgrade_required"')}function F3(e){return{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e})}}async function mE(e){if(e.status!==409)return null;try{const t=await e.json();if(t.error==="turn_already_running"&&typeof t.turnId=="string")return t.turnId}catch{return null}return null}function U1(e){return Math.max(tE,Math.min(nE,Math.round(e)))}function pE(e){try{const t=window.localStorage.getItem(Lr(e,t7)),n=t?Number.parseInt(t,10):Number.NaN;return Number.isFinite(n)?U1(n):q3}catch{return q3}}function gE(e,t){try{window.localStorage.setItem(Lr(e,t7),String(U1(t)))}catch{}}function Vm(e){n7(e,()=>{e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight)})}function yE(e,t=48){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}function vE(e){if(!e)return;const t=window.getComputedStyle(e),n=parseFloat(t.lineHeight)||24,i=parseFloat(t.paddingTop)||0,l=parseFloat(t.paddingBottom)||0,o=n*rE+i+l,c=n*aE+i+l;e.style.height="auto";const f=Math.min(Math.max(e.scrollHeight,o),c);e.style.height=`${f}px`,e.style.overflowY=e.scrollHeight>c?"auto":"hidden"}function xE(e){const t=e.split(/\r\n|\r|\n/).length;return Math.min(iE,Math.max(1,t+1))}function bE(e){return Math.ceil(xE(e)*lE*sE+oE)}function n7(e,t){const n=e.style.scrollBehavior;e.style.scrollBehavior="auto",t(),e.style.scrollBehavior=n}function wE(e){const t=e.getBoundingClientRect(),n=t.bottom-32,i=Array.from(e.querySelectorAll(".turn-group[data-turn-id]")),l=[...i].reverse().find(c=>{const f=c.getBoundingClientRect();return f.top<=n&&f.bottom>=t.top})??i[i.length-1]??null;if(!(l!=null&&l.dataset.turnId))return{anchorOffset:null,anchorTurnId:null};const o=l.getBoundingClientRect();return{anchorOffset:n-o.top,anchorTurnId:l.dataset.turnId}}function kE(e,t){return t?Array.from(e.querySelectorAll(".turn-group[data-turn-id]")).find(n=>n.dataset.turnId===t)??null:null}function $3(e,t){n7(e,()=>{const n=kE(e,t.anchorTurnId);if(n&&t.anchorOffset!==null){const l=e.getBoundingClientRect().bottom-32,c=n.getBoundingClientRect().top-(l-t.anchorOffset);Math.abs(c)>.5&&(e.scrollTop+=c);return}e.scrollTop=Math.max(0,e.scrollHeight-t.previousScrollHeight)})}function SE(e,t){let n=!1;const i=e.querySelector(".stream-inner")??e,l=typeof ResizeObserver>"u"?null:new ResizeObserver(()=>{n||$3(e,t)});$3(e,t),l==null||l.observe(i);const o=window.setTimeout(c,1200);function c(){n||(n=!0,l==null||l.disconnect(),window.clearTimeout(o))}return c}function CE(e){try{return window.localStorage.getItem(Lr(e,Qv))}catch{return null}}function Ym(e,t){const n=Lr(e,Qv);try{t?window.localStorage.setItem(n,t):window.localStorage.removeItem(n)}catch{}}function Wo(e){try{const t=window.localStorage.getItem(Lr(e,L1)),n=t?JSON.parse(t):[];return Array.isArray(n)?n.filter(i=>typeof i=="string"):[]}catch{return[]}}function r7(e){try{const t=window.localStorage.getItem(Lr(e,Zv)),n=t?JSON.parse(t):[];return Array.isArray(n)?n.filter(i=>typeof i=="string"):[]}catch{return[]}}function a7(e,t){try{window.localStorage.setItem(Lr(e,Zv),JSON.stringify(t))}catch{}}function Cc(e,t){try{window.localStorage.setItem(Lr(e,L1),JSON.stringify(t))}catch{}}function i7(e){try{const t=window.localStorage.getItem(Lr(e,Jv)),n=t?JSON.parse(t):{};return!n||typeof n!="object"||Array.isArray(n)?{}:Object.fromEntries(Object.entries(n).filter(i=>typeof i[0]=="string"&&typeof i[1]=="string"))}catch{return{}}}function jE(e,t){return t?i7(e)[t]??"":""}function Wm(e,t,n){if(t)try{const i=i7(e);n?i[t]=n:delete i[t],window.localStorage.setItem(Lr(e,Jv),JSON.stringify(i))}catch{}}function TE(e){try{const t=window.localStorage.getItem(Lr(e,e7)),n=t?JSON.parse(t):[];return new Set(Array.isArray(n)?n.filter(i=>typeof i=="string"):[])}catch{return new Set}}function Xm(e,t){try{window.localStorage.setItem(Lr(e,e7),JSON.stringify(Array.from(t)))}catch{}}function Ul(e,t){const n=Wo(e);if(n.length===0)return t;const i=new Map(n.map((l,o)=>[l,o]));return[...t].sort((l,o)=>{const c=i.get(l.id),f=i.get(o.id);return c!==void 0&&f!==void 0?c-f:c!==void 0?-1:f!==void 0?1:0})}function Dd(e,t){const n=r7(e);if(n.length===0)return t;const i=new Map(n.map((l,o)=>[l,o]));return[...t].sort((l,o)=>{const c=i.get(l.id),f=i.get(o.id);return c!==void 0&&f!==void 0?c-f:c!==void 0?-1:f!==void 0?1:l.createdAt.localeCompare(o.createdAt)})}function Rd(e,t){const n=Wo(e),i=I1(n,t.map(l=>l.id));JSON.stringify(i)!==JSON.stringify(n)&&Cc(e,i)}function Km(e,t){const n=new Set(t.map(o=>o.id)),i=r7(e).filter(o=>n.has(o)),l=t.map(o=>o.id).filter(o=>!i.includes(o));a7(e,[...i,...l])}function AE(e,t){const n=e.getBoundingClientRect(),i=n.top+n.height/2;return t<i?"before":"after"}function EE(e,t,n,i){if(t===n)return e;const l=e.findIndex(y=>y.id===t),o=e.findIndex(y=>y.id===n);if(l===-1||o===-1)return e;const c=[...e],[f]=c.splice(l,1),h=c.findIndex(y=>y.id===n),m=i==="before"?h:h+1;return c.splice(m,0,f),c}function NE(e,t,n){if(t===n)return e;const i=e.findIndex(h=>h.id===t),l=e.findIndex(h=>h.id===n);if(i===-1||l===-1)return e;const o=[...e],[c]=o.splice(i,1),f=o.findIndex(h=>h.id===n);return o.splice(f+1,0,c),o}function ME({authEnabled:e,currentUser:t,deploymentId:n,onLogout:i}){var $u,Ci,bl,Ts;const l=I.useMemo(()=>({deploymentId:n,userId:t.id}),[n,t.id]),[o,c]=I.useState(""),[f,h]=I.useState(new Set),[m,y]=I.useState([]),[v,k]=I.useState([]),[w,T]=I.useState(null),[E,q]=I.useState(null),[R,B]=I.useState("simple"),[F,Y]=I.useState(null),[te,_]=I.useState(null),[K,le]=I.useState(null),[J,G]=I.useState(!1),[ce,fe]=I.useState(!1),[Be,Ce]=I.useState({}),[ve,ee]=I.useState({}),[pe,De]=I.useState(null),[Ye,U]=I.useState([]),[O,Q]=I.useState(null),[z,de]=I.useState(!1),[Re,ne]=I.useState(null),[xe,oe]=I.useState("checking"),[Oe,st]=I.useState(null),[Ct,lt]=I.useState(!1),[Je,ut]=I.useState(null),[At,jn]=I.useState(!1),[Qe,Zt]=I.useState(null),[Pt,Wt]=I.useState(!1),[qr,Sr]=I.useState([]),[ua,Vt]=I.useState([]),[Ur,he]=I.useState({model:"",reasoningEffort:"",fastMode:!1,sandbox:"workspace-write"}),[we,Ue]=I.useState({profuseNotificationEnabled:!1,publicUrl:null}),[et,vt]=I.useState([]),[Tn,Hr]=I.useState(null),[zn,rn]=I.useState(null),[Dn,Dt]=I.useState(!1),[an,tr]=I.useState(null),[zf,Zl]=I.useState(!1),[Ks,Qs]=I.useState(null),[ai,Jl]=I.useState(!1),[Pi,cu]=I.useState({model:"",reasoningEffort:"",fastMode:!1,sandbox:"workspace-write"}),[nr,Na]=I.useState("global"),[Bt,es]=I.useState(null),[du,Vi]=I.useState(null),[fu,ii]=I.useState({model:"",reasoningEffort:"",fastMode:!1,sandbox:"workspace-write"}),[hu,mu]=I.useState({memory:"",items:[]}),[Kc,ca]=I.useState({memory:"",items:[]}),[An,Rn]=I.useState({memory:"",items:[]}),[Yi,li]=I.useState([]),[Wi,Xi]=I.useState(bc),[si,Fr]=I.useState({description:"",key:"",value:""}),[ts,da]=I.useState(null),[Ki,fa]=I.useState(()=>new Set),[Ma,ln]=I.useState(!1),[Zs,Js]=I.useState(!1),[oi,ui]=I.useState(!1),[za,eo]=I.useState(null),[pu,Df]=I.useState(!0),[to,ci]=I.useState(!1),[$r,Bn]=I.useState(!1),[Qc,Zc]=I.useState(!1),[Gr,Da]=I.useState(null),[no,Ra]=I.useState(null),[On,ro]=I.useState(null),[Pr,Cr]=I.useState(null),[rr,gu]=I.useState(null),[Qi,di]=I.useState(null),[ao,Jc]=I.useState(()=>new Set),[ns,fi]=I.useState(null),[yu,vu]=I.useState(null),[rs,ar]=I.useState(null),[ir,Vr]=I.useState(null),[Oa,Yr]=I.useState(null),[Zi,as]=I.useState(()=>TE(l)),[Jt,ha]=I.useState(null),[ma,is]=I.useState(()=>pE(l)),[Ji,_a]=I.useState(230),[pa,io]=I.useState(()=>Date.now()),[e0,lo]=I.useState(0),ls=I.useRef(null),ss=I.useRef(null),In=I.useRef(null),ga=I.useRef(null),ya=I.useRef(null),Ba=I.useRef(!0),t0=I.useRef(null),hi=I.useRef(null),os=I.useRef(null),mi=I.useRef(new Set),el=I.useRef(!1),so=I.useRef([]),us=I.useRef(null),n0=I.useRef(null),cs=I.useRef(new Map),pi=I.useRef(new Map),oo=I.useRef(new Set),uo=I.useRef(new Map),ds=I.useRef(new Map),tl=I.useRef(new Map),nl=I.useRef(new Set),va=I.useRef(null),lr=I.useRef(new Map),sr=I.useRef(new Map),rl=I.useRef(new Map),fs=I.useRef(new Set),al=I.useRef(null),co=I.useRef(null),xu=I.useRef(!1),bu=I.useRef(!1),hs=I.useRef(!1),We=m.find(x=>x.id===w),r0=(We==null?void 0:We.unreadTurnCount)??0,Wr=m.find(x=>x.id===za),dn=m.find(x=>x.id===Bt),wu=m.find(x=>x.id===ns),gi=I.useMemo(()=>{const j=Dd(l,v.length>0?v:[{id:"default",title:"Default",createdAt:"",updatedAt:""}]).map(V=>({id:V.id,title:V.title,conversations:[]})),N=new Map(j.map(V=>[V.id,V])),L=j[0];for(const V of m)(N.get(V.groupId)??L).conversations.push(V);return j.filter(V=>V.conversations.length>0||V.id!=="default")},[m,v]),fo=I.useMemo(()=>VA(gi,Zi),[Zi,gi]),Et=w!==null?Be[w]:null,il=(Et==null?void 0:Et.messages)??[],ll=(Et==null?void 0:Et.events)??[],xa=Yz(Vz(ll),w?ve[w]:null),ms=L7(xa),ho=(Et==null?void 0:Et.status)??(We==null?void 0:We.status)??"idle",Ia=Jp(We,ho),a0=za!==null?(($u=Be[za])==null?void 0:$u.status)??(Wr==null?void 0:Wr.status)??"idle":"idle",i0=Jp(Wr,a0),sl=w?sr.current.get(w)??null:null,yi=I.useMemo(()=>new Map(m.map(x=>[x.id,x.title])),[m]),ku=I.useMemo(()=>CN(il,ll,(Et==null?void 0:Et.turns)??[],(Et==null?void 0:Et.timelineNodes)??[],sl,yi),[sl,Et==null?void 0:Et.timelineNodes,Et==null?void 0:Et.turns,ll,il,yi]),Su=I.useMemo(()=>new Set(il.filter(x=>x.origin==="clone"&&x.turnId).map(x=>x.turnId)),[il]),mo=w!==null&&ao.has(w),l0=w!==null&&f.has(w),Cu=BA(o,l0),vi=sl?(Ci=ku.find(x=>Oc(x.turnIds,sl)))==null?void 0:Ci.activity:null,La=Ia==="running"||Ia==="initializing"||mo?vi&&!Rz(vi)?vi:{title:Ia==="initializing"?"Initializing clone":"Thinking",createdAt:new Date().toISOString(),tone:"running"}:null,Rf=!La&&Ia==="waiting"&&(We!=null&&We.nextWakeup)?{title:"Scheduled wakeup",detail:of(We.nextWakeup,pa),createdAt:We.nextWakeup.wakeAt,tone:"waiting"}:null,qa=La??Rf,s0=I.useMemo(()=>Pz(Object.values(Be)),[Be]),o0=v5(Re,s0);I.useEffect(()=>{Vn(),d0()},[]),I.useEffect(()=>()=>{ya.current!==null&&window.clearTimeout(ya.current)},[]),I.useEffect(()=>{ys(!1),ys(!0);const x=window.setInterval(()=>{ys(!0)},300*1e3);return()=>window.clearInterval(x)},[]),I.useEffect(()=>{const x=window.setInterval(()=>io(Date.now()),1e3);return()=>window.clearInterval(x)},[]),I.useEffect(()=>{fs.current=ao},[ao]),I.useEffect(()=>{us.current=w},[w]),I.useLayoutEffect(()=>{const x=n0.current;if(n0.current=w,!w||x===w)return;const j=window.requestAnimationFrame(()=>{const N=ga.current;N&&!N.disabled&&!document.querySelector('[aria-modal="true"]')&&N.focus({preventScroll:!0})});return()=>window.cancelAnimationFrame(j)},[w]),I.useEffect(()=>{so.current=m},[m]),I.useEffect(()=>{const x=Lr(l,L1),j=N=>{N.key===x&&y(L=>Ul(l,L))};return window.addEventListener("storage",j),()=>window.removeEventListener("storage",j)},[l]),I.useEffect(()=>{w&&Ym(l,w)},[w,l]),I.useLayoutEffect(()=>{if(!w||r0<=0)return;let x=!1;const j=async()=>{if(document.visibilityState==="visible"){y(L=>L.map(V=>V.id===w?{...V,unreadTurnCount:0}:V));try{await zM(w)}catch(L){x||console.error(L)}}},N=()=>void j();return j(),document.addEventListener("visibilitychange",N),()=>{x=!0,document.removeEventListener("visibilitychange",N)}},[w,r0]),I.useEffect(()=>{B("simple"),q(null),w&&(hn(w),xs(w))},[w]),I.useEffect(()=>{const x=window.setInterval(()=>void c0(),eE);return()=>window.clearInterval(x)},[]),I.useEffect(()=>{c(jE(l,w))},[w]),I.useEffect(()=>{if(!w)return;const x=UA({workspaceRunning:ho==="running",streamLeaseActive:mo,controllerActive:lr.current.has(w),currentTurnAbsent:oo.current.has(w),retryAt:ds.current.get(w)??null,now:Date.now()});x.kind==="probe"&&Hu(w,{waitMs:x.waitMs})},[w,mo,e0,ho]),I.useEffect(()=>()=>{for(const x of tl.current.values())window.clearTimeout(x);tl.current.clear()},[]),I.useEffect(()=>{if(!w)return;let x=!1;return rz(w).then(j=>{x||ee(N=>({...N,[w]:j}))}).catch(j=>console.error(j)),()=>{x=!0}},[w]),I.useEffect(()=>{!w&&nr==="workspace"&&Na("global")},[w,nr]),I.useEffect(()=>{var x;if(Pt){if(!Bt&&w){es(w);return}Bt&&!m.some(j=>j.id===Bt)&&es(w??((x=m[0])==null?void 0:x.id)??null)}},[w,m,Pt,Bt]),I.useEffect(()=>{if(!Pt||t.role!=="admin")return;const x=window.setInterval(()=>void ba(),5e3);return()=>window.clearInterval(x)},[t.role,Pt]),I.useEffect(()=>{!Pt||nr!=="workspace"||Rn({memory:(dn==null?void 0:dn.memory)??"",items:(dn==null?void 0:dn.memoryItems)??[]})},[nr,Pt,dn==null?void 0:dn.id,dn==null?void 0:dn.memory,dn==null?void 0:dn.memoryItems]),I.useEffect(()=>{if(!Ma)return;w&&Eu(w);const x=j=>{j.key==="Escape"&&ln(!1)};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[w,Ma]),I.useEffect(()=>{if(!Pt)return;const x=j=>{j.key==="Escape"&&Wt(!1)};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[Pt]),I.useEffect(()=>{var j;if(!Zs)return;if(za&&!m.some(N=>N.id===za)){eo(w??((j=m[0])==null?void 0:j.id)??null);return}const x=N=>{N.key==="Escape"&&(Gr?Da(null):Js(!1))};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[w,Zs,Gr,za,m]),I.useEffect(()=>{if(!Pr)return;gu(null);const x=j=>{j.key==="Escape"&&Cr(null)};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[Pr]),I.useEffect(()=>{const x=V=>{if(V.code==="ShiftLeft"){hs.current=!0;return}const ie=PA({code:V.code,key:V.key,metaKey:V.metaKey,shiftKey:V.shiftKey,ctrlKey:V.ctrlKey,altKey:V.altKey,leftShiftPressed:hs.current,repeat:V.repeat},Jt!==null);if((ie==null?void 0:ie.type)==="move"){V.preventDefault(),fe(!0),ha(Se=>YA(fo,Se,us.current,ie.direction));return}if((ie==null?void 0:ie.type)==="cancel"){ha(null);return}if(!((ie==null?void 0:ie.type)!=="confirm"||!Jt||Co(V.target))){if(V.preventDefault(),Jt.kind==="group"){js(Jt.id);return}$a(Jt.id),ha(null),fe(!1)}},j=V=>{V.code==="ShiftLeft"&&(hs.current=!1)},N=()=>{hs.current=!1},L=()=>ha(null);return window.addEventListener("keydown",x,!0),window.addEventListener("keyup",j,!0),window.addEventListener("blur",N),window.addEventListener("pointerdown",L),()=>{window.removeEventListener("keydown",x,!0),window.removeEventListener("keyup",j,!0),window.removeEventListener("blur",N),window.removeEventListener("pointerdown",L)}},[Jt,fo]),I.useEffect(()=>{Jt&&!fo.some(x=>Ls(x)===Ls(Jt))&&ha(null)},[Jt,fo]),I.useLayoutEffect(()=>{if(!Jt)return;const x=Ls(Jt),j=document.querySelector(`[data-keyboard-focus-key="${CSS.escape(x)}"]`);j==null||j.focus({preventScroll:!0}),j==null||j.scrollIntoView({block:"nearest"})},[Jt]),I.useLayoutEffect(()=>{vE(ga.current)},[o]),I.useLayoutEffect(()=>{const x=In.current;if(!x)return;const j=()=>{const L=x.getBoundingClientRect();_a(Math.ceil(L.height+44))};j();const N=typeof ResizeObserver>"u"?null:new ResizeObserver(j);return N==null||N.observe(x),window.addEventListener("resize",j),()=>{N==null||N.disconnect(),window.removeEventListener("resize",j)}},[]),I.useLayoutEffect(()=>{var ie,Se;const x=ss.current;if(!x)return;const j=t0.current!==w;t0.current=w,j&&((ie=va.current)==null||ie.call(va),va.current=null);const N=hi.current;if(N&&N.conversationId===w){(Se=va.current)==null||Se.call(va),va.current=SE(x,N),hi.current=null,Ba.current=!1;return}if(!j&&!Ba.current)return;Ba.current=!0,Vm(x);const L=requestAnimationFrame(()=>Vm(x)),V=window.setTimeout(()=>Vm(x),120);return()=>{cancelAnimationFrame(L),window.clearTimeout(V)}},[w,ll.length,il.length]);async function ju(){var j;const x=ss.current;x&&(Ba.current=yE(x),!(!w||!((j=Et==null?void 0:Et.history)!=null&&j.hasMoreBefore))&&(Et.loadingOlder||mi.current.has(w)||x.scrollTop>96||await ur(w)))}function ps(x){var N,L;if(x.history)return x.history;const j=((N=x.timelineNodes)==null?void 0:N.filter(V=>V.parentId===null).reduce((V,ie)=>V===null||ie.timelineAt<V.timelineAt||ie.timelineAt===V.timelineAt&&ie.sequence<V.sequence?ie:V,null))??null;return{hasMoreBefore:!1,oldestMessageCreatedAt:((L=x.messages[0])==null?void 0:L.createdAt)??null,oldestTimelineAt:(j==null?void 0:j.timelineAt)??null,oldestTimelineSequence:(j==null?void 0:j.sequence)??null,messageTotal:x.messages.length,eventTotal:x.events.length,loadedMessageCount:x.messages.length,loadedEventCount:x.events.length}}async function Ua(x){const j=new URL(x.url,window.location.href).toString();await navigator.clipboard.writeText(j),gu(x.url)}async function ol(x,j){await navigator.clipboard.writeText(j),di(x),ya.current!==null&&window.clearTimeout(ya.current),ya.current=window.setTimeout(()=>{di(null),ya.current=null},1800)}function Le(x,j,N){const L=Date.now();ro({id:L,tone:x,text:j,detail:N}),window.setTimeout(()=>{ro(V=>(V==null?void 0:V.id)===L?null:V)},N?8e3:2400)}function po(x){const j=tl.current.get(x);j!==void 0&&(window.clearTimeout(j),tl.current.delete(x))}function gs(x){oo.current.delete(x),uo.current.delete(x),ds.current.delete(x),nl.current.delete(x),po(x)}function u0(x){oo.current.add(x),uo.current.delete(x),ds.current.delete(x),nl.current.delete(x),po(x)}function Tu(x){oo.current.add(x),nl.current.delete(x);const j=(uo.current.get(x)??0)+1;uo.current.set(x,j);const N=HA(j);ds.current.set(x,Date.now()+N),po(x);const L=window.setTimeout(()=>{tl.current.delete(x),lo(V=>V+1)},N);tl.current.set(x,L)}function Au(x,j){j!=="running"&&gs(x)}async function Vn(){try{const[x,j]=await Promise.all([u5(),d5()]);oe("connected");const N=Dd(l,j);if(k(N),Km(l,N),x.length>0){const L=Ul(l,x),V=CE(l),ie=L.find(Se=>Se.id===V)??L[0];y(L),Rd(l,L),T(ie.id);return}y([]),Ym(l,null),T(null)}catch(x){console.error(x),oe("error")}}async function fn(){const[x,j]=await Promise.all([u5(),d5()]);for(const V of x)Au(V.id,V.status);const N=Ul(l,x),L=Dd(l,j);k(L),Km(l,L),y(N),Rd(l,N)}async function c0(){if(!el.current){el.current=!0;try{const x=await AM(),j=so.current,N=new Set(j.map(ze=>ze.id)),L=new Set(x.map(ze=>ze.id));if(N.size!==L.size||[...N].some(ze=>!L.has(ze))){await fn(),oe("connected");return}const V=us.current;for(const ze of x)Au(ze.id,ze.status);const ie=new Map(x.map(ze=>[ze.id,ze])),Se=V?ie.get(V)??null:null,Ge=Ul(l,j.map(ze=>{const _e=ie.get(ze.id);return _e?{...ze,status:_e.status,statusError:_e.statusError,nextWakeup:_e.nextWakeup,unreadTurnCount:_e.unreadTurnCount,updatedAt:_e.updatedAt}:ze}));y(Ge),Rd(l,Ge),oe("connected"),Se&&!fs.current.has(Se.id)&&kt(Se.id,ze=>({...ze,status:Se.status}))}catch(x){console.error(x),oe("error")}finally{el.current=!1}}}async function d0(){try{const x=await Sz();oe("connected"),De(x.version)}catch(x){console.error(x),oe("error")}}async function ys(x){try{const j=await Cz(x);j&&ne(N=>v5(N,j))}catch(j){console.error("runtime rate-limit refresh failed",j)}}async function f0(){try{const x=await _M();Sr(x),oe("connected")}catch(x){console.error(x),oe("error")}}async function go(x){try{const j=await BM(x);Vt(j),oe("connected")}catch(j){console.error(j),Vt([]),oe("error")}}async function Eu(x){try{const j=await IM(x);li(j),oe("connected")}catch(j){console.error(j),li([]),oe("error")}}async function ul(x){try{const j=await LM();he(j),cu(j),x||(Vi(null),ii(j)),oe("connected")}catch(j){console.error(j),oe("error")}}async function Nu(){if(t.role==="admin")try{Ue(await qM()),oe("connected")}catch(x){console.error(x),oe("error")}}async function Ha(x=!0){try{const j=await WM(x);vt(j.models),oe("connected"),j.refreshing&&window.setTimeout(()=>void Ha(!1),1e3)}catch(j){console.error(j),vt([]),oe("error")}}async function vs(){try{const x=await HM();Hr(x.codexVersion),rn(x.codexReleasedAt),oe("connected")}catch(x){console.error(x),Hr(null),rn(null),oe("error")}}async function yo(x=!1){x&&Jl(!0);try{const j=await XM(x);tr(j.job),Qs(j.latest),oe("connected"),j.job&&j.job.status!=="running"&&os.current===j.job.id&&(os.current=null,j.job.status==="succeeded"?(await Promise.all([Ha(),vs()]),Le("success",`Codex CLI updated to ${Mf(j.job.currentVersion)}`)):Le("error","Codex CLI update failed",j.job.error??void 0))}catch(j){console.error(j),oe("error")}finally{x&&Jl(!1)}}async function xi(){Zl(!0);try{const x=await KM();os.current=x.id,tr(x),oe("connected")}catch(x){console.error(x);const j=dt(x);Le("error","Unable to start Codex CLI update",j.detail??j.message)}finally{Zl(!1)}}I.useEffect(()=>{if(!Dn||(an==null?void 0:an.status)!=="running")return;const x=window.setInterval(()=>void yo(),1e3);return()=>window.clearInterval(x)},[Dn,an==null?void 0:an.id,an==null?void 0:an.status]);async function Fa(x){try{const j=await QM(x);Vi(j),ii(j.effective),oe("connected")}catch(j){console.error(j),Vi(null),oe("error")}}async function Mu(){try{const x=await ZM();mu(x),ca(x),oe("connected")}catch(x){console.error(x),oe("error")}}async function h0(){if(t.role!=="admin"){U([]);return}try{U(await xD()),oe("connected")}catch(x){console.error(x),oe("error")}}async function ba(){if(t.role!=="admin"){Q(null);return}de(!0);try{Q(await UM()),oe("connected")}catch(x){console.error(x),oe("error")}finally{de(!1)}}async function zu(x=Bt){const j=[f0(),ul(x),vs(),Ha(),Mu()];t.role==="admin"&&(j.push(h0()),j.push(ba()),j.push(Nu())),x&&(j.push(hn(x)),j.push(Fa(x)),j.push(go(x)),j.push(Eu(x))),await Promise.all(j)}function m0(){var j;const x=w??((j=m[0])==null?void 0:j.id)??null;fe(!1),es(x),Na(t.role==="admin"?"global":x?"workspace":"global"),Wt(!0),zu(x)}function p0(){var j;const x=w??((j=m[0])==null?void 0:j.id)??null;es(x),Na(x?"workspace":"global"),Wt(!0),zu(x)}function g0(){var j;fe(!1);const x=w??((j=m[0])==null?void 0:j.id)??null;eo(x),Ra(null),Da(null),Js(!0),x&&Of(x)}async function Of(x){try{const j=await C7(x);if(!j||j.status!=="running")return;ci(!0);const N=await j7(x,j);Ra(N),await hn(x),await fn(),N.warmupTurnId&&ks(x,N.warmupTurnId),Le("success","Full-history runtime reset completed")}catch(j){const N=dt(j);Le("error","Full-history runtime reset failed",N.message)}finally{ci(!1)}}function _f(x){es(x),Na("workspace"),hn(x),Fa(x),go(x),Eu(x),Xi(bc)}async function y0(x){x.preventDefault();try{if(nr==="workspace"&&Bt){const j=(dn==null?void 0:dn.status)==="running",N=await h5(Bt,lz(fu,Ur,du));Vi(N.settings),ii(N.settings.effective),hr(N.conversation),Le("success","Workspace settings saved",j?"The current turn keeps its existing settings. Changes apply from the next turn.":void 0)}else{const j=await JM(Pi);he(j),cu(j),Bt&&await Fa(Bt),Le("success","Global settings saved")}oe("connected")}catch(j){console.error(j),oe("error");const N=dt(j);Le("error","Failed to save runtime settings",N.detail??N.message)}}async function v0(x){try{const j=await ez(x);Ue(j),oe("connected"),Le("success","Deployment settings saved")}catch(j){console.error(j),oe("error");const N=dt(j);throw Le("error","Failed to save deployment settings",N.detail??N.message),j}}async function Du(){var N;const x=Wr;if(!x){Le("error","No workspace selected");return}const j=((N=Be[x.id])==null?void 0:N.status)??x.status;if(j==="running"||j==="initializing"){Le("error","Stop the running turn before resetting runtime");return}Zc(!0),Ra(null);try{const L=await p5(x.id);Da(L),oe("connected")}catch(L){console.error(L),oe("error");const V=dt(L);Le("error","Failed to preview runtime reset",V.detail??V.message)}finally{Zc(!1)}}async function jr(x){const j=Wr,N=Gr;if(!j||!N||N.conversationId!==j.id){Le("error","Reset preview is required");return}Bn(!0),Ra(null);try{const L=await m5(j.id,{warmup:pu,previewFingerprint:N.fingerprint,selectedEntryIds:x});Ra(L),Da(null),oe("connected"),await hn(j.id),await fn(),L.warmupTurnId&&ks(j.id,L.warmupTurnId),Le("success","Runtime thread reset")}catch(L){console.error(L),oe("error");const V=dt(L);Le("error","Failed to reset runtime thread",V.detail??V.message)}finally{Bn(!1)}}async function vo(){var L;const x=Wr;if(!x){Le("error","No workspace selected");return}const j=((L=Be[x.id])==null?void 0:L.status)??x.status;if(j==="running"||j==="initializing"){Le("error","Stop the running turn before clearing context");return}if(window.confirm(`Start "${x.title}" from a blank context?
|
|
345
|
-
|
|
346
|
-
This clears Workspace Memory and creates a new Codex thread without restored history. Workspace files, Timeline, metadata, and Base Memory remain intact.`)){ci(!0),Ra(null);try{const V=await p5(x.id),ie=await m5(x.id,{warmup:!1,previewFingerprint:V.fingerprint,selectedEntryIds:[],clearWorkspaceMemory:!0,saveSelection:!1});Ra(ie),Da(null),Bt===x.id&&Rn({memory:"",items:[]}),oe("connected"),await hn(x.id),await fn(),Le("success","Workspace started from blank context")}catch(V){console.error(V),oe("error");const ie=dt(V);Le("error","Failed to clear workspace context",ie.detail??ie.message)}finally{ci(!1)}}}async function or(x){const j=Wr,N=Gr;if(!j||!N||N.conversationId!==j.id)throw new Error("Reset preview is no longer current.");try{await tz(j.id,{previewFingerprint:N.fingerprint,selectedEntryIds:x}),oe("connected")}catch(L){console.error(L),oe("error");const V=dt(L);throw Le("error","Failed to save reset defaults",V.detail??V.message),L}}async function cl(x,j){try{const N=await h5(x,{[j]:null});Vi(N.settings),ii(N.settings.effective),hr(N.conversation),oe("connected"),Le("success","Workspace override reset")}catch(N){console.error(N),oe("error"),Le("error","Failed to reset workspace override")}}async function Ru(x){try{const j=await hz({memory:fz(x),items:x});return mu(j),ca(j),oe("connected"),Le("success","Base memory saved"),j.items}catch(j){throw console.error(j),oe("error"),Le("error","Failed to save memory"),j}}async function xo(x,j){try{const N=await qd(x,{memoryItems:j});return hr(N),Rn({memory:N.memory,items:N.memoryItems}),oe("connected"),Le("success","Workspace memory saved"),N.memoryItems}catch(N){throw console.error(N),oe("error"),Le("error","Failed to save memory"),N}}async function bo(x){x.preventDefault();const j=si.key.trim();if(j)try{if(nr==="workspace"&&Bt){const N=await pz(Bt,j,si.value,si.description);Vt(L=>[...L.filter(V=>V.key!==N.variable.key),N.variable].sort((V,ie)=>V.key.localeCompare(ie.key))),hr(N.conversation)}else{const N=await mz(j,si.value,si.description);Sr(L=>[...L.filter(V=>V.key!==N.key),N].sort((V,ie)=>V.key.localeCompare(ie.key)))}Le("success",nr==="workspace"?"Workspace environment saved":"Base environment saved"),Fr({description:"",key:"",value:""}),da(null),fa(N=>{const L=new Set(N);return L.delete(j),L}),oe("connected")}catch(N){console.error(N),oe("error"),Le("error","Failed to save environment")}}async function Ou(x){try{if(nr==="workspace"&&Bt){const j=await xz(Bt,x);Vt(N=>N.filter(L=>L.key!==x)),hr(j)}else await vz(x),Sr(j=>j.filter(N=>N.key!==x));ts===x&&(Fr({description:"",key:"",value:""}),da(null),fa(j=>{const N=new Set(j);return N.delete(x),N})),oe("connected"),Le("success",nr==="workspace"?"Workspace environment deleted":"Base environment deleted")}catch(j){console.error(j),oe("error"),Le("error","Failed to delete environment")}}async function bi(x,j){if(j.preventDefault(),!Wi.name.trim()){Le("error","Knowledge name is required");return}const N=sz(Wi);try{const L=Wi.id?await wz(x,Wi.id,N):await bz(x,N);li(V=>[...V.filter(ie=>ie.id!==L.id),L].sort(g5)),Xi(bc),oe("connected"),Le("success","Workspace knowledge saved")}catch(L){console.error(L),oe("error"),Le("error","Failed to save workspace knowledge")}}async function x0(x,j){try{await kz(x,j),li(N=>N.filter(L=>L.id!==j)),Wi.id===j&&Xi(bc),oe("connected"),Le("success","Workspace knowledge deleted")}catch(N){console.error(N),oe("error"),Le("error","Failed to delete workspace knowledge")}}function wo(x){Na("workspace"),Xi(oz(x))}function dl(x){Fr({description:x.description,key:x.key,value:""}),da(x.key),fa(j=>{const N=new Set(j);return N.delete(x.key),N}),ko(x.key,{preserveTypedValue:!0})}function Bf(){const x=ts;Fr({description:"",key:"",value:""}),da(null),x&&fa(j=>{const N=new Set(j);return N.delete(x),N})}async function Yn(x){await ko(x)}async function ko(x,j={}){try{const N=nr==="workspace"&&Bt?await yz(Bt,x):await gz(x);Fr(L=>L.key===x&&(!j.preserveTypedValue||L.value.length===0)?{...L,value:N}:L),fa(L=>new Set(L).add(x)),oe("connected")}catch(N){console.error(N),oe("error")}}async function hn(x){const j=await sp(x);T0(j)}async function _u(x){try{const j=await sp(x);A0(j)}catch(j){console.warn("Failed to synchronize timeline before turn stream",j)}}async function xs(x){try{q(await Tz(x))}catch(j){console.error(j)}}async function Tr(x){if(w)try{const j=await Ez(w,x);q(x==="end"?null:j),x==="end"&&B("simple"),Le("success",x==="start"?"Complex task started":`Task ${x} accepted`),(x==="start"||x==="resume")&&Hu(w,{waitMs:15e3}),await fn()}catch(j){Le("error","Complex task control failed",dt(j).detail??dt(j).message)}}async function wa(x){if(w)try{Y(await Az(w,x))}catch(j){const N=dt(j);Le("error","Failed to load complex task",N.detail??N.message)}}function b0(){We&&le({sourceId:We.id,name:`${We.title} - Clone`,groupId:We.groupId})}async function Bu(x){if(x.preventDefault(),!(!K||!K.name.trim())){G(!0);try{const j=await Nz(K.sourceId,K.name.trim(),K.groupId);y(N=>{const L=[j.conversation,...N];return Cc(l,I3(Wo(l),j.conversation.id,L.map(V=>V.id))),Ul(l,L)}),T(j.conversation.id),le(null),fe(!1),Le(j.error?"error":"success",j.error?"Clone created, initialization failed":"Workspace cloned",j.error??void 0)}catch(j){Le("error","Clone failed",dt(j).detail??dt(j).message)}finally{G(!1)}}}async function w0(){if(We)try{const x=await Mz(We.id);hr(x.conversation),Le(x.error?"error":"success",x.error?"Clone retry failed":"Clone initialization restarted",x.error??void 0)}catch(x){Le("error","Clone retry failed",dt(x).detail??dt(x).message)}}async function ur(x,j={}){var ze,_e,Rt;const N=Be[x],L=(ze=N==null?void 0:N.history)==null?void 0:ze.oldestTimelineAt,V=(_e=N==null?void 0:N.history)==null?void 0:_e.oldestTimelineSequence,ie=L&&V!==null&&V!==void 0?`${L}|${V}`:V==null?(Rt=N==null?void 0:N.history)==null?void 0:Rt.oldestMessageCreatedAt:String(V),Se=ss.current;if(!ie||!Se)return;if(j.preserveAnchor??!0){const St=wE(Se);hi.current={anchorOffset:St.anchorOffset,conversationId:x,previousScrollHeight:Se.scrollHeight,anchorTurnId:St.anchorTurnId}}else hi.current=null;mi.current.add(x),kt(x,St=>({...St,loadingOlder:!0}));try{const St=await sp(x,{before:ie,limit:Kv});qf(St)}catch(St){console.error(St),hi.current=null}finally{mi.current.delete(x),kt(x,St=>({...St,loadingOlder:!1}))}}async function fl(x,j){const N=await jz(x,j||void 0);y(L=>{const V=[N,...L];return Cc(l,I3(Wo(l),N.id,V.map(ie=>ie.id))),Ul(l,V)}),T(N.id),fe(!1)}function $a(x){x!==us.current&&(Ce(j=>{if(!(x in j))return j;const N={...j};return delete N[x],N}),T(x))}function So(){fe(!1),Zt({mode:"create",groupId:null,title:""})}function hl(x){Zt({mode:"rename",groupId:x.id,title:x.title})}function Wn(){var x;fe(!1),st({mode:"create",conversationId:null,title:"",groupId:(We==null?void 0:We.groupId)??((x=v[0])==null?void 0:x.id)})}async function cr(x){var j;if(x.status!=="running"){jn(!0);try{await Dz(x.id),Ce(L=>{const V={...L};return delete V[x.id],V});const N=so.current.filter(L=>L.id!==x.id);if(Cc(l,GA(Wo(l),x.id)),Wm(l,x.id,""),y(N),w===x.id){const L=((j=N[0])==null?void 0:j.id)??null;Ym(l,L),T(L)}(Oe==null?void 0:Oe.conversationId)===x.id&&Ln(),ut(null),Le("success","Workspace moved to recycle")}catch(N){const L=dt(N);Le("error","Failed to move workspace to recycle",L.detail??L.message)}finally{jn(!1)}}}async function Ga(x){if(!(x.id===U3||!window.confirm(`Delete group "${x.title}"?
|
|
347
|
-
|
|
348
|
-
Workspaces in this group will move to Default.`)))try{const N=await OM(x.id),L=Dd(l,N.groups);k(L),Km(l,L);const V=Ul(l,N.conversations);y(V),Rd(l,V),as(ie=>{const Se=new Set(ie);return Se.delete(x.id),Xm(l,Se),Se})}catch(N){console.error(N)}}function Xr(x){st({mode:"rename",conversationId:x.id,title:x.title})}function Ln(){lt(!1),st(null)}function dr(){Zt(null)}async function k0(x,j){const N=j.trim(),L=m.find(ie=>ie.id===x);if(!L||!N||N===L.title){Ln();return}const V=await qd(x,{title:N});hr(V),Ln()}function Co(x){return x instanceof HTMLInputElement||x instanceof HTMLTextAreaElement}function jo(x){return x instanceof Element&&!!x.closest("input, button")}function S0(x,j){const N=document.elementFromPoint(x,j);return N instanceof HTMLElement?N.closest(".session-item[data-workspace-id]"):null}function gn(x,j){const N=document.elementFromPoint(x,j);return N instanceof HTMLElement?N.closest(".workspace-group[data-group-id]"):null}function Ut(x,j,N){const L=S0(j,N),V=L==null?void 0:L.dataset.workspaceId;if(L&&V&&V!==x){Vr({kind:"workspace",id:V,position:AE(L,N)});return}const ie=gn(j,N),Se=ie==null?void 0:ie.dataset.groupId;if(!Se){Vr(null);return}Vr({kind:"group",id:Se})}function mt(x,j){jo(x.target)||(x.currentTarget.setPointerCapture(x.pointerId),al.current={id:j,pointerId:x.pointerId,startX:x.clientX,startY:x.clientY})}function Pa(x,j){const N=al.current;if(!N||N.id!==j||N.pointerId!==x.pointerId)return;const L=Math.hypot(x.clientX-N.startX,x.clientY-N.startY);if(ns!==j){if(L<L3)return;fi(j),Vr(null)}x.preventDefault(),Yr({x:x.clientX,y:x.clientY}),Ut(j,x.clientX,x.clientY)}async function fr(x,j){var Se;x.preventDefault(),x.currentTarget.hasPointerCapture(x.pointerId)&&x.currentTarget.releasePointerCapture(x.pointerId),al.current=null;const N=ns===j;N&&(xu.current=!0);const L=ir;if(!N||!L){fi(null),Vr(null),Yr(null);return}const V=m.find(Ge=>Ge.id===j),ie=L.kind==="group"?L.id:(Se=m.find(Ge=>Ge.id===L.id))==null?void 0:Se.groupId;if(!V||!ie){fi(null),Vr(null),Yr(null);return}if(y(Ge=>{const ze=L.kind==="workspace"?EE(Ge.map(_e=>_e.id===j?{..._e,groupId:ie}:_e),j,L.id,L.position):[...Ge.filter(_e=>_e.id!==j),{...V,groupId:ie}];return Cc(l,I1(ze.map(_e=>_e.id),Wo(l))),ze}),V.groupId!==ie)try{const Ge=await qd(j,{groupId:ie});hr(Ge)}catch(Ge){console.error(Ge),await fn()}fi(null),Vr(null),Yr(null)}function Iu(x){x.currentTarget.hasPointerCapture(x.pointerId)&&x.currentTarget.releasePointerCapture(x.pointerId),al.current=null,fi(null),Vr(null),Yr(null)}function Va(x,j){x.currentTarget.setPointerCapture(x.pointerId),co.current={id:j,pointerId:x.pointerId,startX:x.clientX,startY:x.clientY}}function C0(x,j){const N=co.current;if(!N||N.id!==j||N.pointerId!==x.pointerId)return;const L=Math.hypot(x.clientX-N.startX,x.clientY-N.startY);if(yu!==j){if(L<L3)return;vu(j),ar(null)}x.preventDefault();const V=gn(x.clientX,x.clientY),ie=V==null?void 0:V.dataset.groupId;ar(ie&&ie!==j?ie:null)}function j0(x,j){x.currentTarget.hasPointerCapture(x.pointerId)&&x.currentTarget.releasePointerCapture(x.pointerId);const N=yu===j;N&&(x.preventDefault(),bu.current=!0);const L=rs;N&&L&&k(V=>{const ie=NE(V,j,L);return a7(l,ie.map(Se=>Se.id)),ie}),co.current=null,vu(null),ar(null)}function ml(x){x.currentTarget.hasPointerCapture(x.pointerId)&&x.currentTarget.releasePointerCapture(x.pointerId),co.current=null,vu(null),ar(null)}function wi(x){const j=x.target.value;st(N=>N&&{...N,title:j})}function Lu(x){const j=x.target.value;st(N=>N&&{...N,groupId:j})}function bs(x){const j=x.target.value;Zt(N=>N&&{...N,title:j})}async function qu(x){if(x.preventDefault(),!Oe)return;const j=Oe.title.trim();if(j){lt(!0);try{if(Oe.mode==="create"){await fl(j,Oe.groupId),Ln();return}Oe.conversationId&&await k0(Oe.conversationId,j)}catch(N){console.error(N);const L=dt(N);Le("error",Oe.mode==="create"?"Failed to create workspace":"Failed to rename workspace",L.detail??L.message)}finally{lt(!1)}}}function Kr(x){x.key==="Escape"&&(x.preventDefault(),x.stopPropagation(),Ln())}async function ka(x){if(x.preventDefault(),!Qe)return;const j=Qe.title.trim();if(j)try{if(Qe.mode==="rename"){if(!Qe.groupId)return;const L=await RM(Qe.groupId,{title:j});k(V=>V.map(ie=>ie.id===L.id?L:ie)),dr();return}const N=await DM(j);k(L=>[...L,N]),as(L=>{const V=new Set(L);return V.delete(N.id),Xm(l,V),V}),dr()}catch(N){console.error(N)}}function Qr(x){x.key==="Escape"&&(x.preventDefault(),x.stopPropagation(),dr())}async function Sa(x){x.preventDefault(),await yn()}function Uu(x){w&&cs.current.set(w,(cs.current.get(w)??0)+1),c(x),Wm(l,w,x)}function pl(x,j,N){const L={conversationId:x,version:N};if(!R3(L,{conversationId:x,version:cs.current.get(x)??0}))return;Wm(l,x,"");const V=us.current;V&&R3(L,{conversationId:V,version:cs.current.get(V)??0})&&c(ie=>ie.trim()===j?"":ie)}function gl(x){if(pi.current.has(x))return null;const j=Symbol(x);return pi.current.set(x,j),h(N=>{const L=new Set(N);return L.add(x),L}),j}function Ca(x,j){pi.current.get(x)===j&&(pi.current.delete(x),h(N=>{const L=new Set(N);return L.delete(x),L}))}function ja(x){const j=dt(x);Le("error","Message was not confirmed",`${j.message}. Your text is still in the composer and can be retried.`)}async function yn(x={}){const j=o.trim();if(!j)return;const N=w,L=IA({hasConversation:N!==null,messageSubmitting:N!==null&&pi.current.has(N),hasActiveTurn:N!==null&&sr.current.has(N),hasConfirmedCurrentTurn:N!==null&&nl.current.has(N),complexTaskActive:!!E},!!x.forceNewTurn);if(L==="create-workspace"){Wn();return}if(L==="blocked"||!N)return;const V=cs.current.get(N)??0,ie=gl(N);if(!ie)return;if(L==="queue-turn"){await If(N,j,V,ie);return}if(L==="steer-turn"){await Lf(N,j,V,ie);return}const Se=`local-${Date.now()}`;kt(N,ze=>({...ze,messages:[...ze.messages,{id:Se,role:"user",content:j,createdAt:new Date().toISOString()}],status:"running"})),ea(N,"running"),ta(N,!0);let Ge=!1;try{let ze=null;const _e=Ne(`conversations/${N}/turns`),Rt=await fetch(_e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:j,workMode:R})});if(Rt.ok){const St=await Rt.json();if(!St.turnId)throw new Error("Turn did not return a turn id");if(ze=St.turnId,(R==="complex"||E)&&(xs(N),B("simple")),!St.message)throw new Error("Turn did not return the persisted message");yl(N,Se,St.message,ze),Ge=!0,pl(N,j,V)}else{const St=await mE(Rt);if(St){ze=St;const As=await sn(N,St,j);if(!As.ok)throw await Fn(As,{method:"POST",url:Ne(`conversations/${N}/turns/${St}/steer`)});const wl=await As.json();if(!wl.message)throw new Error("Steer did not return the persisted message");yl(N,Se,wl.message,St),Ge=!0,pl(N,j,V)}else throw await Fn(Rt,{method:"POST",url:_e})}if(!ze)throw await Fn(Rt,{method:"POST",url:_e});ks(N,ze),Ca(N,ie)}catch(ze){Ge||ja(ze);const _e=hE(ze);_e&&Le("error","Reset thread required",E?"End the current complex task, then reset this workspace thread and try again.":"This thread does not support the required Seele tools. Reset this workspace thread and try again."),kt(N,Rt=>({...Rt,status:"error",messages:Ge?Rt.messages:Rt.messages.filter(St=>St.id!==Se),events:[...Rt.events,{id:Rt.events.length+1,event:"client.error",data:_e?{message:"Reset thread required",detail:E?"End the current complex task, then reset this workspace thread and try again.":"This thread does not support the required Seele tools. Reset this workspace thread and try again."}:_s(ze),createdAt:new Date().toISOString()}]})),ea(N,"error"),ta(N,!1),await fn()}finally{Ca(N,ie)}}async function ws(x){const j=rl.current.get(x)??[];if(j.length===0)return;const[N,...L]=j;rl.current.set(x,L),await ks(x,N)}async function Hu(x,j={}){if(fs.current.has(x)||lr.current.has(x))return;po(x),ds.current.delete(x);const N=new AbortController;lr.current.set(x,N),ta(x,!0);try{const L=j.waitMs?`?waitMs=${j.waitMs}`:"",V=Ne(`conversations/${x}/turns/current/events${L}`),ie=await fetch(V,{signal:N.signal});if(!ie.ok||!ie.body)throw await Fn(ie,{method:"GET",url:V});gs(x),nl.current.add(x),await _u(x),await k5(ie.body,Se=>{const Ge=n5(Se,`stream-${Date.now()}-${Math.random().toString(36).slice(2)}`);Ge.turnId&&!sr.current.has(x)&&sr.current.set(x,Ge.turnId),kt(x,_e=>({..._e,status:Ud(Ge)??_e.status,events:t5(_e.events,Ge)}));const ze=Ud(Ge);ze&&ea(x,ze)}),await hn(x),await fn()}catch(L){if(!a5(L)){if(fE(L)){lr.current.get(x)===N&&Tu(x);return}kt(x,V=>({...V,status:"error",events:[...V.events,{id:V.events.length+1,event:"client.error",data:_s(L),createdAt:new Date().toISOString()}]}))}}finally{lr.current.get(x)===N&&(nl.current.delete(x),sr.current.delete(x),lr.current.delete(x),ta(x,!1),await ws(x))}}async function ks(x,j,N={}){const L=sr.current.get(x);if(L===j)return;if(L||lr.current.has(x)){const ie=rl.current.get(x)??[];ie.includes(j)||rl.current.set(x,[...ie,j]);return}gs(x);const V=new AbortController;lr.current.set(x,V),sr.current.set(x,j),ta(x,!0);try{const ie=Ne(`conversations/${x}/turns/${j}/events`),Se=await fetch(ie,{signal:V.signal});if(!Se.ok||!Se.body)throw await Fn(Se,{method:"GET",url:ie});await _u(x),await k5(Se.body,Ge=>{const ze=n5(Ge,`stream-${Date.now()}-${Math.random().toString(36).slice(2)}`);kt(x,Rt=>({...Rt,status:Ud(ze)??Rt.status,events:t5(Rt.events,ze)}));const _e=Ud(ze);_e&&ea(x,_e)}),await hn(x),await fn()}catch(ie){if(!a5(ie)){if(N.recovered&&dE(ie)){await hn(x),await fn();return}kt(x,Se=>({...Se,status:"error",events:[...Se.events,{id:Se.events.length+1,event:"client.error",data:_s(ie),createdAt:new Date().toISOString()}]}))}}finally{lr.current.get(x)===V&&(sr.current.get(x)===j&&sr.current.delete(x),lr.current.delete(x),ta(x,!1),await ws(x))}}async function If(x,j,N,L){let V=!1;const ie=`local-queued-${Date.now()}`;kt(x,Se=>({...Se,messages:[...Se.messages,{id:ie,role:"user",content:j,createdAt:new Date().toISOString()}]}));try{const Se=Ne(`conversations/${x}/turns`),Ge=await fetch(Se,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:j,mode:"queue",workMode:R})});if(!Ge.ok)throw await Fn(Ge,{method:"POST",url:Se});const ze=await Ge.json();if(!ze.turnId)throw new Error("Queued turn did not return a turn id");if(!ze.message)throw new Error("Queued turn did not return the persisted message");yl(x,ie,ze.message,ze.turnId),V=!0,pl(x,j,N),ks(x,ze.turnId),Ca(x,L),await fn(),Le("success",ze.queuePosition?`Queued as next turn (${ze.queuePosition})`:"Started new turn")}catch(Se){V||ja(Se),kt(x,Ge=>({...Ge,messages:V?Ge.messages:Ge.messages.filter(ze=>ze.id!==ie),events:[...Ge.events,{id:Ge.events.length+1,event:"client.error",data:_s(Se),createdAt:new Date().toISOString()}]}))}finally{Ca(x,L)}}async function Lf(x,j,N,L){const V=sr.current.get(x);let ie=!1;const Se=`local-steer-${Date.now()}`;kt(x,Ge=>({...Ge,messages:[...Ge.messages,{id:Se,role:"user",content:j,createdAt:new Date().toISOString(),turnId:V??null}],status:"running"}));try{const Ge=Ne(V?`conversations/${x}/turns/${V}/steer`:`conversations/${x}/turns/steer`),ze=await fetch(Ge,F3(j));if(!ze.ok)throw await Fn(ze,{method:"POST",url:Ge});const _e=await ze.json();if(!_e.message)throw new Error("Steer did not return the persisted message");yl(x,Se,_e.message,V),ie=!0,pl(x,j,N),Ca(x,L)}catch(Ge){ja(Ge),kt(x,ze=>({...ze,messages:ie?ze.messages:ze.messages.filter(_e=>_e.id!==Se),events:[...ze.events,{id:ze.events.length+1,event:"client.error",data:_s(Ge),createdAt:new Date().toISOString()}]}))}finally{Ca(x,L)}}async function sn(x,j,N){return fetch(Ne(`conversations/${x}/turns/${j}/steer`),F3(N))}function yl(x,j,N,L){kt(x,V=>({...V,messages:Jm(V.messages.filter(ie=>ie.id!==j),[{...N,turnId:L??N.turnId??null}])}))}async function Ss(){var L;if(!w||Ia!=="running"&&Ia!=="initializing"&&!mo)return;const x=w,j=Ia,N=`client-stop-${Date.now()}`;u0(x),(L=lr.current.get(x))==null||L.abort(),sr.current.delete(x),rl.current.delete(x),ta(x,!1),kt(x,V=>({...V,status:"done",events:[...V.events,{id:N,event:"server.stop",data:{source:"client"},createdAt:new Date().toISOString()}]})),ea(x,"done");try{const V=await vl(x);gs(x),kt(x,ie=>({...ie,status:V})),ea(x,V),Promise.all([hn(x),fn()]).catch(ie=>{console.warn("Failed to refresh workspace after Stop",ie)})}catch(V){Tu(x),kt(x,Se=>({...Se,status:j==="initializing"?"initializing":"running",events:[...Se.events.filter(Ge=>Ge.id!==N),{id:Se.events.length+1,event:"client.error",data:_s(V),createdAt:new Date().toISOString()}]})),ea(x,j==="initializing"?"initializing":"running");const ie=dt(V);Le("error","Stop failed",ie.detail??ie.message);try{await fn()}catch(Se){console.warn("Failed to refresh workspace after Stop failed",Se)}}}async function vl(x){const j=Ne(`conversations/${x}/turns/interrupt`),N=await fetch(j,{method:"POST"});if(!N.ok)throw await Fn(N,{method:"POST",url:j});return FA(await N.json().catch(()=>null))}async function Fu(){var L;const x=Wr;if(!x){Le("error","No workspace selected");return}if(!window.confirm(`Force stop and repair "${x.title}"?
|
|
349
|
-
|
|
350
|
-
This cancels every current or queued turn and the active complex task, kills its runtime, and repairs scheduler state. Future scheduled wakeups are preserved.`))return;const N=x.id;Bn(!0),u0(N),(L=lr.current.get(N))==null||L.abort(),sr.current.delete(N),rl.current.delete(N),ta(N,!1);try{const V=await vl(N);gs(N),kt(N,ie=>({...ie,status:V})),ea(N,V),await hn(N),await fn(),Le("success","Workspace stopped and repaired")}catch(V){Tu(N);const ie=dt(V);Le("error","Force stop failed",ie.detail??ie.message);try{await fn()}catch(Se){console.warn("Failed to refresh workspace after force Stop failed",Se)}}finally{Bn(!1)}}async function Zr(x,j){if(!w||!x.approvalTurnId||x.approvalRequestId===void 0)return;const N=w;try{const L=Ne(`conversations/${N}/turns/${x.approvalTurnId}/approvals/${encodeURIComponent(String(x.approvalRequestId))}`),V=await fetch(L,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({decision:j})});if(!V.ok)throw await Fn(V,{method:"POST",url:L});kt(N,ie=>({...ie,events:[...ie.events,{id:ie.events.length+1,event:"server.approval.decision",data:{requestId:x.approvalRequestId,decision:j,source:"client"},createdAt:new Date().toISOString()}]}))}catch(L){kt(N,ie=>({...ie,events:[...ie.events,{id:ie.events.length+1,event:"client.error",data:_s(L),createdAt:new Date().toISOString()}]}));const V=dt(L);Le("error","Failed to respond to approval",V.detail??V.message)}}async function Jr(x,j,N){const L=w,V=x.workspaceChangeProposalId??x.responsibilityProposalId;if(!L||!V)return!1;try{const ie=Ne(`conversations/${L}/workspace-change-proposals/${encodeURIComponent(V)}`),Se=await fetch(ie,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({decision:j,payload:j==="accept"?N??x.workspaceChangePayload:void 0})});if(!Se.ok)throw await Fn(Se,{method:"POST",url:ie});const Ge=await Se.json(),ze=WA(j,Ge.decision),_e=ze==="accept"?Ge.payload??N??x.workspaceChangePayload:null;return hr(Ge.conversation),kt(L,Rt=>({...Rt,events:[...Rt.events,{id:`${x.id}:${ze}`,event:"server.workspace_change.decision",data:{proposalId:V,changeType:x.workspaceChangeType??"responsibility",decision:ze,payload:_e},createdAt:new Date().toISOString()}]})),Le("success",ze==="accept"?"Workspace change applied":"Workspace change declined"),!0}catch(ie){console.error(ie);const Se=dt(ie);return Le("error","Failed to respond to workspace change proposal",Se.detail??Se.message),!1}}async function Cs(x,j,N){const L=w;if(!(!L||!x.knowledgeProposalId))try{let V;if(j==="accept")try{V=JSON.parse(N??x.body)}catch{Le("error","Knowledge proposal JSON is invalid");return}const ie=Ne(`conversations/${L}/knowledge-proposals/${encodeURIComponent(x.knowledgeProposalId)}`),Se=await fetch(ie,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({decision:j,knowledge:V})});if(!Se.ok)throw await Fn(Se,{method:"POST",url:ie});const Ge=await Se.json();li([...Ge.items??[]].sort(g5)),kt(L,ze=>({...ze,events:[...ze.events,{id:`${x.id}:${j}`,event:"server.knowledge.decision",data:{proposalId:x.knowledgeProposalId,decision:j,knowledge:j==="accept"?Ge.item:null},createdAt:new Date().toISOString()}]})),Le("success",j==="accept"?"Workspace knowledge saved":"Knowledge proposal declined")}catch(V){console.error(V);const ie=dt(V);Le("error","Failed to respond to knowledge proposal",ie.detail??ie.message)}}function T0(x){Au(x.id,x.status),To(x),Ce(j=>{const N=j[x.id],L=x.events.map(V=>({id:V.id,turnId:V.turnId,seq:V.seq,event:V.event,data:V.data,createdAt:V.createdAt}));return{...j,[x.id]:{messages:x.messages,events:Bd(L,(N==null?void 0:N.events)??[]),timelineNodes:tp(x.timelineNodes??[],(N==null?void 0:N.timelineNodes)??[]),turns:ep(x.turns??[],(N==null?void 0:N.turns)??[]),contextVersions:x.contextVersions??[],status:x.status,history:ps(x),loadingOlder:!1,fullEventTurnIds:(N==null?void 0:N.fullEventTurnIds)??new Set,loadingEventTurnIds:(N==null?void 0:N.loadingEventTurnIds)??new Set}}})}function qf(x){const j=ps(x);kt(x.id,N=>{var L,V,ie;return{...N,messages:Jm(x.messages,N.messages),timelineNodes:tp(x.timelineNodes??[],N.timelineNodes),turns:ep(x.turns??[],N.turns),events:Bd(x.events.map(Se=>({id:Se.id,turnId:Se.turnId,seq:Se.seq,event:Se.event,data:Se.data,createdAt:Se.createdAt})),N.events),contextVersions:(((L=x.contextVersions)==null?void 0:L.length)??0)>0?x.contextVersions??[]:N.contextVersions,history:{...j,loadedMessageCount:j.loadedMessageCount+(((V=N.history)==null?void 0:V.loadedMessageCount)??N.messages.length),loadedEventCount:j.loadedEventCount+(((ie=N.history)==null?void 0:ie.loadedEventCount)??N.events.length)},loadingOlder:!1}})}function A0(x){const j=ps(x),N=x.events.map(L=>({id:L.id,turnId:L.turnId,seq:L.seq,event:L.event,data:L.data,createdAt:L.createdAt}));kt(x.id,L=>{var V,ie,Se;return{...L,messages:Jm(L.messages,x.messages),timelineNodes:tp(L.timelineNodes,x.timelineNodes??[]),turns:ep(L.turns,x.turns??[]),events:Bd(N,L.events),contextVersions:(((V=x.contextVersions)==null?void 0:V.length)??0)>0?x.contextVersions??[]:L.contextVersions,status:x.status,history:{...L.history??j,messageTotal:j.messageTotal,eventTotal:j.eventTotal,loadedMessageCount:Math.max(((ie=L.history)==null?void 0:ie.loadedMessageCount)??L.messages.length,L.messages.length,x.messages.length),loadedEventCount:Math.max(((Se=L.history)==null?void 0:Se.loadedEventCount)??L.events.length,L.events.length,x.events.length)},loadingOlder:!1}})}function kt(x,j){Ce(N=>{const L=N[x]??{messages:[],events:[],timelineNodes:[],turns:[],contextVersions:[],status:"idle",history:null,loadingOlder:!1,fullEventTurnIds:new Set,loadingEventTurnIds:new Set};return{...N,[x]:j(L)}})}function ea(x,j){y(N=>N.map(L=>L.id===x?{...L,status:j,updatedAt:new Date().toISOString()}:L))}function To(x){hr(x)}function hr(x){y(j=>Ul(l,j.map(N=>N.id===x.id?{...N,...x}:N)))}async function xl(x,j){const N=j.filter(L=>{const V=Be[x];return V&&!V.fullEventTurnIds.has(L)&&!V.loadingEventTurnIds.has(L)});if(N.length!==0){kt(x,L=>{const V=new Set(L.loadingEventTurnIds);for(const ie of N)V.add(ie);return{...L,loadingEventTurnIds:V}});try{const L=await Promise.all(N.map(V=>zz(x,V)));kt(x,V=>{const ie=new Set(V.fullEventTurnIds),Se=new Set(V.loadingEventTurnIds),Ge=L.flatMap((ze,_e)=>{const Rt=N[_e];return ie.add(Rt),Se.delete(Rt),ze.map(St=>({id:St.id,turnId:St.turnId,seq:St.seq,event:St.event,data:St.data,createdAt:St.createdAt}))});return{...V,events:Bd(V.events,Ge),fullEventTurnIds:ie,loadingEventTurnIds:Se}})}catch(L){console.error(L),kt(x,V=>{const ie=new Set(V.loadingEventTurnIds);for(const Se of N)ie.delete(Se);return{...V,loadingEventTurnIds:ie}}),Le("error","Failed to load process details")}}}function ta(x,j){const N=new Set(fs.current);j?N.add(x):N.delete(x),fs.current=N,Jc(L=>{const V=new Set(L);return j?V.add(x):V.delete(x),V})}function Ao(x){const j=LA({key:x.key,metaKey:x.metaKey,ctrlKey:x.ctrlKey,shiftKey:x.shiftKey,isComposing:x.nativeEvent.isComposing});j&&(x.preventDefault(),yn({forceNewTurn:j.forceNewTurn}))}function js(x){as(j=>{const N=new Set(j);return N.has(x)?N.delete(x):N.add(x),Xm(l,N),N})}function E0(x){var j;return $A(x.status,(j=x.nextWakeup)==null?void 0:j.status,ao.has(x.id))}function Eo(x){var L;const j=(L=ls.current)==null?void 0:L.getBoundingClientRect(),N=j?x-j.left:x;return U1(N)}function ki(x){x.preventDefault(),x.currentTarget.setPointerCapture(x.pointerId),is(Eo(x.clientX))}function Si(x){x.currentTarget.hasPointerCapture(x.pointerId)&&(x.preventDefault(),is(Eo(x.clientX)))}function N0(x){x.currentTarget.hasPointerCapture(x.pointerId)&&x.currentTarget.releasePointerCapture(x.pointerId);const j=Eo(x.clientX);is(j),gE(l,j)}return u.jsxs("main",{className:`shell${ce?" mobile-sidebar-open":""}`,ref:ls,style:{"--sidebar-width":`${ma}px`},children:[u.jsxs("aside",{className:"sidebar",children:[u.jsxs("div",{className:"sidebar-header",children:[u.jsxs("div",{children:[u.jsxs("p",{className:"eyebrow brand-line",children:[u.jsx("span",{children:"Seele"}),pe?t.role==="admin"?u.jsxs("a",{"aria-label":`Open Seele Host control for Work v${pe}`,className:"work-version-link",href:`${q1()}admin/host`,title:"Open Seele Host control: versions, restart, and logs",children:["v",pe,u.jsx("span",{"aria-hidden":"true",children:"↗"})]}):u.jsxs("span",{children:["v",pe]}):null,u.jsx("span",{"aria-label":j5(xe),className:`backend-status ${xe}`,"data-label":j5(xe)})]}),u.jsxs("div",{className:"sidebar-title-row",children:[u.jsx("h2",{children:"Workspaces"}),e?u.jsx("button",{"aria-label":`Sign out ${t.username}`,className:"sign-out-button",onClick:i,title:`Sign out ${t.username}`,type:"button",children:"Sign out"}):null]})]}),u.jsxs("div",{className:"sidebar-header-actions",children:[u.jsx("button",{"aria-label":"Close workspace list",className:"mobile-sidebar-dismiss",onClick:()=>fe(!1),title:"Close workspace list",type:"button",children:"×"}),u.jsx("button",{"aria-label":"New workspace",className:"new-workspace-button",type:"button",onClick:Wn,children:"+"})]})]}),u.jsx("nav",{className:"session-list","aria-label":"Workspaces",children:gi.map(x=>u.jsxs("section",{className:["workspace-group",yu===x.id?"dragging":"",rs===x.id?"drop-after":"",(ir==null?void 0:ir.kind)==="group"&&ir.id===x.id?"drop-into":""].filter(Boolean).join(" "),"data-group-id":x.id,children:[u.jsxs("div",{className:"workspace-group-header",children:[u.jsxs("button",{"aria-expanded":!Zi.has(x.id),className:(Jt==null?void 0:Jt.kind)==="group"&&Jt.id===x.id?"workspace-group-toggle keyboard-focused":"workspace-group-toggle","data-keyboard-focus-key":Ls({kind:"group",id:x.id}),onClick:j=>{if(bu.current){j.preventDefault(),bu.current=!1;return}js(x.id)},onDoubleClick:j=>{j.preventDefault(),j.stopPropagation(),hl(x)},onPointerCancel:ml,onPointerDown:j=>Va(j,x.id),onPointerMove:j=>C0(j,x.id),onPointerUp:j=>j0(j,x.id),type:"button",children:[u.jsx("span",{className:Zi.has(x.id)?"workspace-group-caret collapsed":"workspace-group-caret","aria-hidden":"true",children:"▾"}),u.jsx("span",{onDoubleClick:j=>{j.preventDefault(),j.stopPropagation(),hl(x)},title:"Double-click to rename",children:x.title})]}),x.id!==U3?u.jsx("button",{"aria-label":`Delete group ${x.title}`,className:"workspace-group-delete",onClick:j=>{j.stopPropagation(),Ga(x)},title:"Delete group",type:"button",children:"×"}):null]}),Zi.has(x.id)?null:u.jsx("div",{className:"workspace-group-items",children:x.conversations.map(j=>{const N=E0(j);return u.jsxs("div",{className:["session-item",(Jt==null?void 0:Jt.kind)==="workspace"&&Jt.id===j.id?"keyboard-focused":"",j.id===w?"active":"",j.id===ns?"dragging":"",(ir==null?void 0:ir.kind)==="workspace"&&ir.id===j.id?`drop-${ir.position}`:""].filter(Boolean).join(" "),"data-keyboard-focus-key":Ls({kind:"workspace",id:j.id}),"data-workspace-id":j.id,onClick:L=>{if(xu.current){L.preventDefault(),xu.current=!1;return}$a(j.id),fe(!1)},onDoubleClick:L=>{jo(L.target)||(L.preventDefault(),Xr(j))},onKeyDown:L=>{Co(L.target)||L.key==="Enter"&&($a(j.id),fe(!1))},onPointerCancel:Iu,onPointerDown:L=>mt(L,j.id),onPointerMove:L=>Pa(L,j.id),onPointerUp:L=>fr(L,j.id),role:"button",tabIndex:0,children:[u.jsxs("span",{className:"session-heading",children:[u.jsx("span",{"aria-label":Yd(N,j.nextWakeup,pa),className:`session-status ${N}`,title:Yd(N,j.nextWakeup,pa)}),u.jsx("span",{className:"session-title",title:"Double-click to rename",children:j.title}),N==="waiting"&&j.nextWakeup?u.jsx("span",{className:"session-countdown",title:Yd(N,j.nextWakeup,pa),children:of(j.nextWakeup,pa)}):null,j.unreadTurnCount>0?u.jsx("span",{"aria-label":`${j.unreadTurnCount} unread turns`,className:"session-unread",title:`${j.unreadTurnCount} unread turns`,children:j.unreadTurnCount>99?"99+":j.unreadTurnCount}):null,N!=="running"?u.jsx("button",{"aria-label":`Delete ${j.title}`,className:"session-delete",onClick:L=>{L.stopPropagation(),ut(j)},title:"Move workspace to recycle",type:"button",children:"×"}):null]}),u.jsxs("span",{className:"session-workspace",title:j.workspacePath,children:["workspaces/",Zo(j.id)]})]},j.id)})})]},x.id))}),u.jsx("footer",{className:"sidebar-footer",children:u.jsxs("div",{className:"sidebar-actions","aria-label":"Workspace actions",children:[u.jsx("button",{"aria-label":"Settings",className:"sidebar-action-button",onClick:m0,type:"button",children:u.jsx(l5,{})}),u.jsx("button",{"aria-label":"New group",className:"sidebar-action-button",onClick:So,type:"button",children:u.jsx(xM,{})}),u.jsx("button",{"aria-label":"Collaboration topics",className:"sidebar-action-button",onClick:()=>{ui(!0),fe(!1)},type:"button",children:u.jsx(Gd,{})}),u.jsx("button",{"aria-label":"Console",className:"sidebar-action-button",onClick:g0,type:"button",children:u.jsx(bM,{})}),u.jsx(kN,{usage:o0})]})})]}),u.jsx("button",{"aria-label":"Close workspace list",className:"mobile-sidebar-backdrop",onClick:()=>fe(!1),tabIndex:ce?0:-1,type:"button"}),u.jsx("div",{"aria-label":"Resize sidebar",className:"sidebar-resizer",onPointerDown:ki,onPointerMove:Si,onPointerUp:N0,role:"separator",tabIndex:0}),wu&&Oa?u.jsxs("div",{className:"workspace-drag-preview",style:{transform:`translate3d(${Oa.x+12}px, ${Oa.y+10}px, 0)`},children:[u.jsx("span",{className:"workspace-drag-title",children:wu.title}),u.jsxs("span",{className:"workspace-drag-path",children:["workspaces/",Zo(wu.id)]})]}):null,Oe?u.jsx("div",{className:"workspace-editor-overlay",onKeyDown:Kr,role:"presentation",children:u.jsxs("form",{className:"workspace-editor",onKeyDown:Kr,onSubmit:x=>void qu(x),children:[u.jsx("label",{className:"workspace-editor-label",htmlFor:"workspace-title",children:"Workspace name"}),u.jsx("input",{autoFocus:!0,id:"workspace-title",onChange:wi,onKeyDown:Kr,value:Oe.title}),Oe.mode==="create"?u.jsxs(u.Fragment,{children:[u.jsx("label",{className:"workspace-editor-label",htmlFor:"workspace-group",children:"Group"}),u.jsx("select",{id:"workspace-group",onChange:Lu,onKeyDown:Kr,value:Oe.groupId??((bl=v[0])==null?void 0:bl.id)??"",children:v.map(x=>u.jsx("option",{value:x.id,children:x.title},x.id))})]}):null,u.jsxs("div",{className:"workspace-editor-actions",children:[u.jsx("button",{type:"button",onClick:Ln,children:"Cancel"}),u.jsx("button",{disabled:Ct,type:"submit",children:Ct?"Saving...":Oe.mode==="create"?"Create":"Save"})]})]})}):null,Qe?u.jsx("div",{className:"workspace-editor-overlay",onKeyDown:Qr,role:"presentation",children:u.jsxs("form",{className:"workspace-editor",onKeyDown:Qr,onSubmit:x=>void ka(x),children:[u.jsx("label",{className:"workspace-editor-label",htmlFor:"workspace-group-title",children:"Group name"}),u.jsx("input",{autoFocus:!0,id:"workspace-group-title",onChange:bs,onKeyDown:Qr,value:Qe.title}),u.jsxs("div",{className:"workspace-editor-actions",children:[u.jsx("button",{type:"button",onClick:dr,children:"Cancel"}),u.jsx("button",{type:"submit",children:Qe.mode==="create"?"Create":"Save"})]})]})}):null,Pt?u.jsx(BE,{currentUser:t,conversations:m,editingEnvironmentKey:ts,deploymentSettings:we,environmentDraft:si,globalEnvironment:qr,workspaceEnvironment:ua,memorySettings:hu,memorySettingsDraft:Kc,workspaceMemoryDraft:An,runtimeSettings:Ur,runtimeModels:et,runtimeCodexVersion:Tn,runtimeCodexReleasedAt:zn,runtimeCodexUpdating:(an==null?void 0:an.status)==="running",runtimeSettingsDraft:Pi,runtimeSettingsScope:nr,settingsWorkspace:dn,settingsWorkspaceId:Bt,systemDiagnostics:O,systemDiagnosticsLoading:z,workspaceGroups:gi,workspaceRuntimeSettings:du,workspaceRuntimeSettingsDraft:fu,managedUsers:Ye,onCancelEnvironmentEdit:Bf,onClose:()=>Wt(!1),onCreateUser:async x=>{const j=await bD(x);U(N=>[...N,j]),Le("success","User created")},onDeleteUser:async x=>{await kD(x),U(j=>j.filter(N=>N.id!==x)),Le("success","User deleted")},onSaveDeploymentSettings:v0,onDeleteEnvironment:x=>void Ou(x),onDraftChange:Fr,onEditEnvironment:dl,onRevealEnvironmentValue:x=>void Yn(x),onSaveBaseMemoryItems:x=>Ru(x),onSaveResponsibility:async(x,j)=>{try{const N=await qd(x,{responsibility:j});return hr(N),oe("connected"),Le("success","Workspace responsibility saved"),N.responsibility}catch(N){throw console.error(N),oe("error"),Le("error","Failed to save workspace responsibility"),N}},onSaveWorkspaceMemoryItems:x=>Bt?xo(Bt,x):Promise.reject(new Error("No workspace selected")),onRuntimeDraftChange:cu,onCodexAccountSwitched:async()=>{Le("success","Codex account switched"),(await G7()).codexAccountsReady&&await Promise.all([ys(!0),Ha(!0),vs()])},onUpdateCodexCli:()=>{Dt(!0),yo(!0)},onRuntimeScopeChange:Na,onSettingsWorkspaceChange:_f,onSubmitRuntimeSettings:x=>void y0(x),onWorkspaceRuntimeDraftChange:ii,onWorkspaceRuntimeReset:x=>Bt?void cl(Bt,x):void 0,revealedEnvironmentKeys:Ki,onSubmitEnvironment:x=>void bo(x),onRefreshSystemDiagnostics:()=>void ba(),onUpdateUser:async(x,j)=>{const N=await wD(x,j);U(L=>L.map(V=>V.id===N.id?N:V)),Le("success","User updated")}}):null,Dn?u.jsx(_E,{currentReleasedAt:zn,currentVersion:Tn,job:an,latest:Ks,latestChecking:ai,starting:zf,onClose:()=>Dt(!1),onRefresh:()=>void yo(),onStart:()=>void xi()}):null,Ma&&We?u.jsx(zE,{conversation:We,clockNow:pa,knowledgeDraft:Wi,workspaceKnowledge:Yi,tokenUsage:xa,onCancelKnowledgeEdit:()=>Xi(bc),onDeleteKnowledge:x=>void x0(We.id,x),onEditKnowledge:wo,onKnowledgeDraftChange:Xi,onSubmitKnowledge:x=>void bi(We.id,x),onClose:()=>ln(!1)}):null,oi?u.jsx(DE,{conversations:m,onClose:()=>ui(!1),workspaceGroups:gi}):null,Zs?u.jsx(RE,{busy:to||$r,conversation:Wr??null,conversationId:za,forceStopBusy:$r,preview:(Gr==null?void 0:Gr.conversationId)===za?Gr:null,previewLoading:Qc,result:no,status:i0,warmup:pu,workspaceGroups:gi,onClose:()=>Js(!1),onCancelResetPreview:()=>Da(null),onForceStop:()=>void Fu(),onPreviewReset:()=>void Du(),onStartBlankContext:()=>void vo(),onResetRuntime:x=>void jr(x),onSaveResetSelection:or,onWorkspaceChange:x=>{eo(x),Ra(null),Da(null)},onWarmupChange:Df}):null,K?u.jsx("div",{className:"dialog-backdrop",role:"presentation",onMouseDown:()=>!J&&le(null),children:u.jsxs("form",{className:"dialog-card clone-dialog",onSubmit:Bu,onMouseDown:x=>x.stopPropagation(),children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx("h2",{children:"Clone workspace"}),u.jsx("p",{children:"Copy stable visible history and reusable workspace context into an independent workspace."})]}),u.jsx("button",{"aria-label":"Close",className:"icon-button",onClick:()=>le(null),type:"button",children:"×"})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Name"}),u.jsx("input",{autoFocus:!0,value:K.name,onChange:x=>le(j=>j&&{...j,name:x.target.value})})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Group"}),u.jsx("select",{value:K.groupId,onChange:x=>le(j=>j&&{...j,groupId:x.target.value}),children:gi.map(x=>u.jsx("option",{value:x.id,children:x.title},x.id))})]}),u.jsxs("footer",{children:[u.jsx("button",{className:"secondary",disabled:J,onClick:()=>le(null),type:"button",children:"Cancel"}),u.jsx("button",{disabled:J||!K.name.trim(),type:"submit",children:J?"Cloning...":"Clone"})]})]})}):null,F?u.jsx("div",{className:"dialog-backdrop",role:"presentation",onMouseDown:()=>Y(null),children:u.jsxs("section",{"aria-labelledby":"complex-task-detail-title","aria-modal":"true",className:"dialog-card task-detail-dialog",onMouseDown:x=>x.stopPropagation(),role:"dialog",children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx("h2",{id:"complex-task-detail-title",children:F.title}),u.jsxs("p",{children:[C5(F.status),F.startedAt&&F.finishedAt?` · ${dD(F.startedAt,F.finishedAt)}`:""]})]}),u.jsx("button",{"aria-label":"Close",className:"icon-button",onClick:()=>Y(null),type:"button",children:"×"})]}),u.jsxs("div",{className:"complex-task-detail task-record-detail",children:[u.jsxs("div",{children:[u.jsx("small",{children:"Objective"}),u.jsx("p",{children:F.objective??"No objective recorded."})]}),u.jsxs("div",{children:[u.jsx("small",{children:F.status==="completed"?"Final plan":"Current plan"}),F.currentPlan?u.jsx("article",{className:"message assistant complex-task-plan-preview",children:u.jsx("div",{className:"message-main",children:u.jsx("div",{className:"message-body",children:Yl(F.currentPlan.planMarkdown,We)})})}):u.jsx("p",{children:"No plan recorded."})]}),u.jsxs("dl",{children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Goal"}),u.jsx("dd",{children:F.codexGoalStatus??"not started"})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Plan versions"}),u.jsx("dd",{children:F.planVersions.length})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Started"}),u.jsx("dd",{children:F.startedAt?rt(F.startedAt):"—"})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Finished"}),u.jsx("dd",{children:F.finishedAt?rt(F.finishedAt):"—"})]})]})]}),u.jsx("footer",{children:u.jsx("button",{className:"secondary",onClick:()=>Y(null),type:"button",children:"Close"})})]})}):null,te?u.jsx("div",{className:"dialog-backdrop",role:"presentation",onMouseDown:()=>_(null),children:u.jsxs("section",{"aria-labelledby":"system-event-detail-title","aria-modal":"true",className:"dialog-card system-event-detail-dialog",onMouseDown:x=>x.stopPropagation(),role:"dialog",children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx("h2",{id:"system-event-detail-title",children:te.title}),u.jsx("p",{children:rt(te.createdAt)})]}),u.jsx("button",{"aria-label":"Close",className:"icon-button",onClick:()=>_(null),type:"button",children:"×"})]}),u.jsx("div",{className:"system-event-detail-content",children:u.jsx(Ec,{content:te.fullDetail??te.detail??"No additional details.",conversation:We,streaming:!1,onPreviewArtifact:Cr,onCopyArtifactUrl:Ua,copiedArtifactUrl:rr})}),u.jsxs("footer",{children:[te.linkedTaskId?u.jsx("button",{onClick:()=>{const x=te.linkedTaskId;_(null),wa(x)},type:"button",children:"View task"}):null,u.jsx("button",{className:"secondary",onClick:()=>_(null),type:"button",children:"Close"})]})]})}):null,Je?u.jsx("div",{className:"memory-editor-overlay",onClick:()=>{At||ut(null)},role:"presentation",children:u.jsxs("section",{"aria-label":"Confirm workspace recycle","aria-modal":"true",className:"memory-delete-dialog workspace-delete-dialog",onClick:x=>x.stopPropagation(),role:"dialog",children:[u.jsxs("header",{children:[u.jsx("strong",{children:"Move Workspace to Recycle"}),u.jsx("button",{"aria-label":"Close workspace recycle confirmation",className:"memory-icon-button",disabled:At,onClick:()=>ut(null),title:"Close",type:"button",children:"×"})]}),u.jsxs("p",{children:["Move ",u.jsx("strong",{children:Je.title})," to recycle?"]}),u.jsx("code",{children:Je.workspacePath}),u.jsxs("div",{className:"memory-delete-actions",children:[u.jsx("button",{className:"memory-dialog-button",disabled:At,onClick:()=>ut(null),type:"button",children:"Cancel"}),u.jsx("button",{className:"memory-dialog-button danger",disabled:At,onClick:()=>void cr(Je),type:"button",children:At?"Moving...":"Move to recycle"})]})]})}):null,On?u.jsxs("div",{className:`app-toast ${On.tone}`,role:"status",children:[u.jsx("strong",{children:On.text}),On.detail?u.jsx("pre",{children:On.detail}):null]}):null,u.jsxs("section",{className:"conversation",children:[u.jsxs("header",{className:"topbar",children:[u.jsxs("div",{className:"topbar-main",children:[u.jsx("button",{"aria-label":"Show workspaces",className:"mobile-workspace-menu",onClick:()=>fe(!0),title:"Workspaces",type:"button",children:u.jsx(vM,{})}),u.jsxs("div",{className:"topbar-heading",children:[u.jsx("div",{className:"topbar-title-row",children:u.jsx("h1",{children:(We==null?void 0:We.title)??"New workspace"})}),We?u.jsxs("p",{className:"topbar-workspace",children:["workspaces/",Zo(We.id)]}):null]})]}),u.jsx("div",{className:"topbar-actions",children:We?u.jsxs(u.Fragment,{children:[We.threadUpgradeRequired?u.jsx("button",{"aria-label":"Reset required for latest thread tools",className:"topbar-icon-button thread-upgrade-button",onClick:g0,title:`当前 Thread 工具集已过期(${We.threadCapabilityVersion} / ${We.requiredThreadCapabilityVersion}),点击进行 Reset`,type:"button",children:u.jsx(S7,{})}):null,u.jsx("button",{"aria-label":"Clone workspace",className:"topbar-icon-button",onClick:b0,title:"Clone workspace",type:"button",children:u.jsx(yM,{})}),u.jsxs("button",{className:`context-button has-usage ${W1(ms??0)}`,onClick:()=>ln(!0),style:{"--context-usage":`${Nf(ms??0)}%`},title:xa&&ms!==null?`Context ${Math.round(ms)}% · ${wr(xa.totalTokens)} / ${Vd(xa.modelContextWindow)}`:"Context 0% · no usage recorded yet",type:"button",children:[u.jsx("span",{children:"Context"}),u.jsxs("strong",{children:[Math.round(ms??0),"%"]})]}),u.jsx("button",{"aria-label":"Workspace settings",className:"topbar-icon-button",onClick:p0,title:"Workspace settings",type:"button",children:u.jsx(l5,{})})]}):null})]}),E?u.jsxs("section",{className:`complex-task-bar ${E.status}`,children:[u.jsxs("button",{className:"complex-task-summary",onClick:()=>void wa(E.id),title:"View complex task details",type:"button",children:[u.jsx("span",{className:"complex-task-kicker",children:"Complex task"}),u.jsx("strong",{children:E.title}),u.jsx("span",{className:"complex-task-state",children:C5(E.status)}),u.jsx("span",{className:"complex-task-duration",children:cD(E,pa)})]}),u.jsxs("div",{className:"complex-task-actions",children:[up(E.status,"discussing","ready","replanning")?u.jsx("button",{disabled:!E.objective||!E.currentPlan,onClick:()=>void Tr("start"),title:E.objective&&E.currentPlan?"Start this complex task":"A complete candidate plan is required before starting",type:"button",children:"Start"}):null,E.status==="active"?u.jsx("button",{onClick:()=>void Tr("pause"),type:"button",children:"Pause"}):null,up(E.status,"paused","waiting","blocked")?u.jsx("button",{onClick:()=>void Tr("resume"),type:"button",children:"Resume"}):null,up(E.status,"active","paused","waiting","blocked")?u.jsx("button",{className:"secondary",onClick:()=>void Tr("replan"),type:"button",children:"Replan"}):null,u.jsx("button",{className:"quiet danger",onClick:()=>void Tr("end"),type:"button",children:"End task"})]})]}):null,(We==null?void 0:We.status)==="initialization_failed"&&We.cloneLineage?u.jsxs("div",{className:"clone-initialization-error",children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Clone initialization failed"}),u.jsx("span",{children:We.cloneLineage.initializationError??"The runtime could not initialize this clone."})]}),u.jsx("button",{onClick:()=>void w0(),type:"button",children:"Retry with a clean thread"})]}):null,u.jsx("div",{className:"stream",onScroll:()=>void ju(),ref:ss,style:{scrollPaddingBottom:Ji},children:u.jsxs("div",{className:"stream-inner",style:{paddingBottom:Ji},children:[il.length===0?u.jsx("div",{className:"empty-state",children:u.jsx("h2",{children:"Start a workspace"})}):null,u.jsxs("section",{className:"message-log","aria-label":"Conversation messages",children:[We!=null&&We.cloneLineage&&Su.size>0?u.jsxs("div",{className:"clone-history-boundary clone-history-source",children:[u.jsxs("strong",{children:["Inherited from ",We.cloneLineage.sourceWorkspaceTitle]}),u.jsxs("span",{children:["through ",rt(We.cloneLineage.snapshotAt)," · ",We.cloneLineage.importedMessageCount," messages"]})]}):null,(Ts=Et==null?void 0:Et.history)!=null&&Ts.hasMoreBefore?u.jsx("div",{className:"history-loader",children:Et.loadingOlder?"Loading earlier messages...":"Scroll up for earlier messages"}):null,ku.map((x,j)=>{var Se,Ge,ze;const N=((Se=x.user)==null?void 0:Se.type)==="system",L=x.turnIds.some(_e=>Su.has(_e)),V=ku[j+1],ie=L&&(!V||!V.turnIds.some(_e=>Su.has(_e)));return u.jsxs(I.Fragment,{children:[u.jsxs("section",{className:`turn-group${L?" clone-history-turn":""}`,"data-turn-id":x.id,children:[x.user?u.jsxs("div",{className:`turn-panel ${N?"system-turn":"user-turn"}`,children:[jc(x.user,We,Cr,Ua,rr,Zr,Jr,Cs,wa,_),u.jsx(Tc,{copied:Qi===`${N?"system":"user"}-${x.id}-bottom`,content:Ac(x.user),id:`${N?"system":"user"}-${x.id}-bottom`,timestamp:x.user.createdAt,variant:"outside",onCopy:ol})]}):null,x.followupUsers.length>0?u.jsx("div",{className:"turn-followup-users","aria-label":"Additional turn input",children:x.followupUsers.map(_e=>u.jsxs("div",{className:"turn-panel user-turn followup-user-turn",children:[u.jsx("span",{className:"followup-user-label",children:"Added while running"}),jc(_e,We,Cr,Ua,rr,Zr,Jr,Cs,wa,_),u.jsx(Tc,{copied:Qi===`user-${_e.id}-bottom`,content:Ac(_e),id:`user-${_e.id}-bottom`,timestamp:_e.createdAt,variant:"outside",onCopy:ol})]},_e.id))}):null,(Ge=x.acceptedSystemInputs)==null?void 0:Ge.map(_e=>u.jsxs("div",{className:"turn-panel system-turn",children:[jc(_e,We,Cr,Ua,rr,Zr,Jr,Cs,wa,_),u.jsx(Tc,{copied:Qi===`system-${_e.id}-bottom`,content:Ac(_e),id:`system-${_e.id}-bottom`,timestamp:_e.createdAt,variant:"outside",onCopy:ol})]},_e.id)),x.agentItems.length>0?u.jsx(oN,{group:x,conversation:We,allowProcessView:!L,copiedFooter:Qi===`agent-${x.id}-bottom`,copiedArtifactUrl:rr,running:!L&&Oc(x.turnIds,sl),onCopyArtifactUrl:Ua,onCopyBubble:ol,onPreviewArtifact:Cr,onLoadProcessDetails:_e=>We&&!L?xl(We.id,_e):void 0,onRespondApproval:Zr,onRespondWorkspaceChangeProposal:Jr,onRespondKnowledgeProposal:Cs,onOpenComplexTask:wa,onOpenSystemEvent:_}):null,(ze=x.trailingSystemItems)==null?void 0:ze.map(_e=>u.jsxs("div",{className:"turn-panel system-turn",children:[jc(_e,We,Cr,Ua,rr,Zr,Jr,Cs,wa,_),u.jsx(Tc,{copied:Qi===`system-${_e.id}-bottom`,content:Ac(_e),id:`system-${_e.id}-bottom`,timestamp:_e.createdAt,variant:"outside",onCopy:ol})]},_e.id))]}),ie?u.jsx("div",{className:"clone-history-boundary clone-history-end",children:"Clone starts here"}):null]},x.id)})]})]})}),u.jsxs("form",{className:"composer",onSubmit:Sa,ref:In,children:[qa?u.jsxs("div",{className:`global-activity ${qa.tone??"running"}`,children:[La?u.jsx("button",{"aria-label":"Stop current workspace activity",className:"turn-stop activity-stop",onClick:()=>void Ss(),title:"Stop current workspace activity",type:"button",children:u.jsx(dN,{})}):u.jsx("span",{className:"activity-wait-dot","aria-hidden":"true"}),u.jsxs("div",{className:"global-activity-text",children:[u.jsx("span",{children:qa.title}),qa.detail?u.jsx("small",{children:qa.detail}):null]}),La?u.jsx("span",{className:"activity-spinner","aria-hidden":"true"}):null]}):null,u.jsxs("div",{className:"composer-panel",children:[u.jsxs("button",{"aria-label":E?"Complex task mode is locked while a task is in progress":"Toggle complex task mode","aria-pressed":!!E||R==="complex",className:`complex-mode-button ${E||R==="complex"?"active":""}`,disabled:!!E,onClick:()=>B(x=>x==="complex"?"simple":"complex"),title:E?"End the current complex task before switching back":R==="complex"?"Complex task mode on":"Complex task mode off",type:"button",children:[u.jsx(s7,{}),u.jsx("span",{className:"complex-mode-tooltip",role:"tooltip",children:E?"Complex task active":R==="complex"?"Complex task mode on":"Complex task mode off"})]}),u.jsx("textarea",{disabled:Cu.textareaDisabled,onChange:x=>Uu(x.target.value),onKeyDown:Ao,placeholder:"Cmd/Ctrl + Enter",ref:ga,value:o}),u.jsxs("button",{"aria-label":"Send message",className:"composer-send",disabled:Cu.sendDisabled,type:"submit",children:[u.jsx(fN,{}),u.jsxs("span",{className:"composer-send-tooltip",role:"tooltip",children:[u.jsxs("span",{children:[u.jsx("kbd",{children:"⌘ / Ctrl + Enter"})," Send or add to running turn"]}),u.jsxs("span",{children:[u.jsx("kbd",{children:"⇧ + ⌘ / Ctrl + Enter"})," New turn or queue"]})]})]})]})]}),Pr?u.jsx("div",{className:"artifact-lightbox",onClick:()=>Cr(null),role:"presentation",children:u.jsxs("figure",{className:"artifact-lightbox-card",onClick:x=>x.stopPropagation(),children:[u.jsx("button",{"aria-label":"Close preview",className:"artifact-lightbox-close",onClick:()=>Cr(null),type:"button",children:"×"}),u.jsx("img",{alt:Pr.name,src:Pr.url}),u.jsxs("figcaption",{children:[u.jsx("span",{children:Pr.name}),u.jsxs("div",{className:"artifact-lightbox-actions",children:[u.jsx("a",{href:Pr.url,rel:"noreferrer",target:"_blank",children:"Open in new tab"}),u.jsx("button",{onClick:()=>void Ua(Pr),type:"button",children:rr===Pr.url?"Copied":"Copy URL"})]})]})]})}):null]})]})}function zE({conversation:e,clockNow:t,knowledgeDraft:n,workspaceKnowledge:i,tokenUsage:l,onCancelKnowledgeEdit:o,onDeleteKnowledge:c,onEditKnowledge:f,onKnowledgeDraftChange:h,onSubmitKnowledge:m,onClose:y}){const[v,k]=I.useState("overview"),[w,T]=I.useState(!1),[E,q]=I.useState(!1),[R,B]=I.useState(null),[F,Y]=I.useState(null),[te,_]=I.useState(!1),[K,le]=I.useState(null),[J,G]=I.useState(null),[ce,fe]=I.useState(!1),[Be,Ce]=I.useState(null),[ve,ee]=I.useState(null),pe=L7(l),De=Jp(e,e.status),Ye=R?Qz(R):null;I.useEffect(()=>{T(!1),B(null),Y(null),le(null),G(null),Ce(null),ee(null)},[e.id]),I.useEffect(()=>{v==="additionalContext"&&!K&&O()},[v,K]),I.useEffect(()=>{v==="compactions"&&!Be&&Q()},[v,Be]);const U=()=>{T(!0),q(!0),Y(null),nz(e.id).then(z=>B(z)).catch(z=>{const de=dt(z);Y(de.detail?`${de.message}
|
|
351
|
-
${de.detail}`:de.message)}).finally(()=>q(!1))},O=()=>{_(!0),G(null),az(e.id).then(z=>le(z)).catch(z=>{const de=dt(z);G(de.detail?`${de.message}
|
|
352
|
-
${de.detail}`:de.message)}).finally(()=>_(!1))},Q=()=>{fe(!0),ee(null),iz(e.id).then(z=>Ce(z)).catch(z=>{const de=dt(z);ee(de.detail?`${de.message}
|
|
353
|
-
${de.detail}`:de.message)}).finally(()=>fe(!1))};return u.jsx("div",{className:"context-panel-overlay workspace-context-overlay",onClick:y,role:"presentation",children:u.jsxs("section",{"aria-label":"Workspace context",className:"context-panel workspace-context-panel",onClick:z=>z.stopPropagation(),children:[u.jsxs("header",{className:"context-panel-header workspace-context-header",children:[u.jsxs("div",{children:[u.jsx("h2",{children:"Workspace Context"}),u.jsx("p",{children:"Long-lived context assets and observable state for this workspace."})]}),u.jsx("button",{"aria-label":"Close context panel",onClick:y,type:"button",children:"×"})]}),u.jsxs("div",{className:"workspace-context-body",children:[u.jsxs("nav",{className:"settings-nav workspace-context-nav","aria-label":"Workspace context sections",children:[u.jsxs("button",{className:v==="overview"?"active":void 0,onClick:()=>k("overview"),type:"button",children:[u.jsx("span",{children:"Overview"}),u.jsx("small",{children:"Identity + state"})]}),u.jsxs("button",{className:v==="responsibility"?"active":void 0,onClick:()=>k("responsibility"),type:"button",children:[u.jsx("span",{children:"Responsibility"}),u.jsx("small",{children:"Long-lived role"})]}),u.jsxs("button",{className:v==="knowledge"?"active":void 0,onClick:()=>k("knowledge"),type:"button",children:[u.jsx("span",{children:"Knowledge"}),u.jsx("small",{children:"Sources + skills"})]}),u.jsxs("button",{className:v==="runtime"?"active":void 0,onClick:()=>k("runtime"),type:"button",children:[u.jsx("span",{children:"Runtime View"}),u.jsx("small",{children:"Thread + tokens"})]}),u.jsxs("button",{className:v==="compactions"?"active":void 0,onClick:()=>k("compactions"),type:"button",children:[u.jsx("span",{children:"Compactions"}),u.jsx("small",{children:"Context history"})]}),u.jsxs("button",{className:v==="additionalContext"?"active":void 0,onClick:()=>k("additionalContext"),type:"button",children:[u.jsx("span",{children:"Additional Context"}),u.jsx("small",{children:"Injected keys"})]})]}),u.jsx("div",{className:"workspace-context-content",children:v==="overview"?u.jsxs("div",{className:"workspace-context-grid",children:[u.jsxs("section",{className:`context-card wide workspace-status-detail ${De}`,children:[u.jsx("h3",{children:"Current Status"}),u.jsx(wt,{label:"Status",value:Yd(De,e.nextWakeup,t)}),e.nextWakeup?u.jsxs(u.Fragment,{children:[u.jsx(wt,{label:"Wakeup state",value:e.nextWakeup.status}),u.jsx(wt,{label:"Wake at",value:Lc(e.nextWakeup.wakeAt)}),e.nextWakeup.status==="scheduled"?u.jsx(wt,{label:"Remaining",value:of(e.nextWakeup,t)}):null,u.jsx(wt,{label:"Created by",value:e.nextWakeup.createdBy}),u.jsx(wt,{label:"Attempts",value:`${e.nextWakeup.attemptCount} / ${e.nextWakeup.maxAttempts}`,mono:!0}),u.jsxs("div",{className:"workspace-status-detail-text",children:[u.jsx("span",{children:"Wakeup instruction"}),u.jsx("pre",{children:e.nextWakeup.instruction})]}),e.nextWakeup.error?u.jsxs("div",{className:"workspace-status-detail-text error",children:[u.jsx("span",{children:"Wakeup error"}),u.jsx("pre",{children:e.nextWakeup.error})]}):null]}):null,e.statusError?u.jsxs("div",{className:"workspace-status-detail-text error",children:[u.jsx("span",{children:"Error"}),u.jsx("pre",{children:e.statusError})]}):e.status==="error"||e.status==="initialization_failed"?u.jsx("p",{className:"context-muted",children:"No persisted error detail is available for this status."}):null]}),u.jsxs("section",{className:"context-card",children:[u.jsx("h3",{children:"Workspace"}),u.jsx(wt,{label:"Name",value:e.title}),u.jsx(wt,{label:"ID",value:`workspaces/${Zo(e.id)}`,mono:!0}),u.jsx(wt,{label:"Path",value:e.workspacePath,mono:!0})]}),u.jsxs("section",{className:"context-card",children:[u.jsx("h3",{children:"Context Assets"}),u.jsx(wt,{label:"Responsibility",value:e.responsibility.trim()?"configured":"missing"}),u.jsx(wt,{label:"Memory",value:e.memory.trim()?"configured":"empty"}),u.jsx(wt,{label:"Knowledge",value:`${i.length} item${i.length===1?"":"s"}`})]}),u.jsxs("section",{className:"context-card wide",children:[u.jsx("h3",{children:"Current Responsibility"}),e.responsibility.trim()?u.jsx("div",{className:"context-markdown-preview",children:Yl(e.responsibility,e)}):u.jsx("p",{className:"context-muted",children:"No approved responsibility is configured yet."})]}),u.jsxs("section",{className:"context-card wide",children:[u.jsx("h3",{children:"Knowledge Index"}),u.jsx(l7,{items:i,onDelete:c,onEdit:z=>{f(z),k("knowledge")}})]})]}):v==="responsibility"?u.jsxs("section",{className:"context-tab-surface",children:[u.jsx("header",{className:"settings-section-header",children:u.jsxs("div",{children:[u.jsx("h3",{children:"Workspace Responsibility"}),u.jsx("p",{children:"User-approved long-lived role for this workspace. Edit it from Settings in workspace scope."})]})}),e.responsibility.trim()?u.jsx("div",{className:"context-card context-markdown-preview",children:Yl(e.responsibility,e)}):u.jsx("p",{className:"context-card context-muted",children:"No approved responsibility is configured yet."})]}):v==="knowledge"?u.jsx(ZE,{draft:n,items:i,scope:"workspace",workspaceName:e.title,onCancel:o,onDelete:c,onDraftChange:h,onEdit:f,onSubmit:m}):v==="runtime"?u.jsxs("div",{className:"workspace-context-grid",children:[u.jsxs("section",{className:"context-card",children:[u.jsx("h3",{children:"Runtime"}),u.jsx(wt,{label:"Runtime thread",value:e.codexThreadId??"not started",mono:!0}),u.jsxs("div",{className:"thread-read-actions",children:[u.jsx("button",{disabled:E,onClick:U,type:"button",children:E?"Reading...":"Read Codex thread"}),w?u.jsx("button",{disabled:E,onClick:()=>T(!1),type:"button",children:"Hide"}):null]})]}),u.jsxs("section",{className:"context-card",children:[u.jsx("h3",{children:"Token Window"}),l?u.jsxs(u.Fragment,{children:[u.jsx(wt,{label:"Used",value:pe===null?"unknown":`${Math.round(pe)}%`,mono:!0}),u.jsx(wt,{label:"Latest usage",value:l.modelContextWindow?`${wr(l.totalTokens)} / ${wr(l.modelContextWindow)}`:wr(l.totalTokens),mono:!0}),pe!==null?u.jsx("div",{className:`context-token-bar ${W1(pe)}`,children:u.jsx("span",{style:{width:`${Nf(pe)}%`}})}):null,u.jsx(wt,{label:"Input / output",value:`${Vd(l.inputTokens)} / ${Vd(l.outputTokens)}`,mono:!0}),u.jsx(wt,{label:"Reasoning",value:Vd(l.reasoningOutputTokens),mono:!0}),u.jsxs("p",{className:"context-muted",children:["Updated ",rt(l.createdAt),"."]})]}):u.jsx("p",{className:"context-muted",children:"No token usage event has been observed in the loaded event window yet."})]}),w?u.jsxs("section",{className:"context-card wide thread-read-panel",children:[u.jsx("h3",{children:"Runtime thread profile"}),u.jsx("p",{className:"context-muted",children:"One-time live thread/read response from Codex app-server. Seele does not persist this profile result."}),E?u.jsx("p",{className:"context-muted",children:"Reading Codex thread..."}):F?u.jsx("pre",{className:"thread-read-error",children:F}):R?u.jsxs(u.Fragment,{children:[Ye?u.jsx(iN,{summary:Ye}):null,u.jsxs("details",{className:"thread-read-raw",open:!0,children:[u.jsx("summary",{children:"Raw thread/read JSON"}),u.jsx("pre",{className:"thread-read-dump",children:JSON.stringify(R,null,2)})]})]}):u.jsx("p",{className:"context-muted",children:"No thread/read result loaded yet."})]}):null]}):v==="compactions"?u.jsxs("section",{className:"context-tab-surface",children:[u.jsxs("header",{className:"settings-section-header",children:[u.jsxs("div",{children:[u.jsx("h3",{children:"Context Compactions"}),u.jsx("p",{children:"Compaction history recorded for the current runtime thread."})]}),u.jsx("button",{className:"context-refresh-button",disabled:ce,onClick:Q,type:"button",children:ce?"Refreshing...":"Refresh"})]}),ve?u.jsx("pre",{className:"thread-read-error",children:ve}):ce&&!Be?u.jsx("p",{className:"context-card context-muted",children:"Loading compaction history..."}):Be!=null&&Be.length?u.jsx("div",{className:"context-compaction-list",children:Be.map(z=>u.jsxs("article",{className:"context-compaction-item",children:[u.jsxs("div",{className:"context-compaction-heading",children:[u.jsx("time",{children:rt(z.completedAt??z.usageObservedAt??z.startedAt??"")}),u.jsx("span",{className:`context-compaction-status ${z.status}`,children:z.status==="completed"?"Completed":"Running"})]}),u.jsx("dl",{className:"context-compaction-facts",children:Gz(z).map(de=>u.jsxs("div",{children:[u.jsx("dt",{children:de.label}),u.jsx("dd",{children:de.value})]},de.label))}),u.jsxs("small",{children:[Xl(z.id),z.turnId?` · turn ${Xl(z.turnId)}`:""]})]},z.id))}):u.jsx("p",{className:"context-card context-muted",children:"No compaction records yet."})]}):u.jsxs("section",{className:"context-tab-surface thread-read-panel",children:[u.jsx("header",{className:"settings-section-header",children:u.jsxs("div",{children:[u.jsx("h3",{children:"Additional Context"}),u.jsx("p",{children:"One-time live render of the application additionalContext for this workspace. Seele does not persist this preview result."})]})}),te?u.jsx("p",{className:"context-card context-muted",children:"Rendering additionalContext..."}):J?u.jsx("pre",{className:"thread-read-error",children:J}):K?u.jsx(rN,{preview:K,refreshing:te,onRefresh:O}):u.jsx("p",{className:"context-card context-muted",children:"No additionalContext preview loaded yet."})]})})]})]})})}function DE({conversations:e,onClose:t,workspaceGroups:n}){var U;const[i,l]=I.useState([]),[o,c]=I.useState("active"),[f,h]=I.useState(null),[m,y]=I.useState([]),[v,k]=I.useState(!0),[w,T]=I.useState(null),[E,q]=I.useState(null),[R,B]=I.useState(!1),[F,Y]=I.useState(!1),[te,_]=I.useState(new Set),[K,le]=I.useState({title:"",publicDescription:"",ownerWorkspaceId:((U=e[0])==null?void 0:U.id)??"",participantWorkspaceIds:[]}),J=i.find(O=>O.id===f)??null,G=I.useMemo(()=>new Map(e.map(O=>[O.id,O.title])),[e]),ce=i.filter(O=>o==="archived"?O.status==="archived":O.status!=="archived"),fe=n.map(O=>({...O,conversations:O.conversations.filter(Q=>Q.id!==K.ownerWorkspaceId)})).filter(O=>O.conversations.length>0),Be=()=>{var O;le({title:"",publicDescription:"",ownerWorkspaceId:((O=e[0])==null?void 0:O.id)??"",participantWorkspaceIds:[]}),_(new Set),q("create")},Ce=()=>{!J||J.status!=="active"||(le({title:J.title,publicDescription:J.publicDescription,ownerWorkspaceId:J.ownerWorkspaceId,participantWorkspaceIds:J.members.filter(O=>O.role==="participant"&&O.status==="active").map(O=>O.workspaceId)}),_(new Set),q("edit"))},ve=async(O,Q=o)=>{var z;k(!0),T(null);try{const de=await c5();l(de);const Re=de.filter(xe=>Q==="archived"?xe.status==="archived":xe.status!=="archived"),ne=(O&&Re.some(xe=>xe.id===O)?O:null)??(f&&Re.some(xe=>xe.id===f)?f:((z=Re[0])==null?void 0:z.id)??null);h(ne),y(ne?await Ld(ne):[])}catch(de){T(de instanceof Qa?de.detail:de instanceof Error?de.message:String(de))}finally{k(!1)}};I.useEffect(()=>{ve()},[]),I.useEffect(()=>{const O=window.setInterval(()=>{(async()=>{try{const Q=await c5();l(Q),f&&Q.some(z=>z.id===f)&&y(await Ld(f))}catch{}})()},1e4);return()=>window.clearInterval(O)},[f]);const ee=async O=>{h(O),T(null);try{y(await Ld(O))}catch(Q){T(Q instanceof Qa?Q.detail:Q instanceof Error?Q.message:String(Q))}},pe=async O=>{var z;if(O===o)return;c(O),T(null);const Q=((z=i.find(de=>O==="archived"?de.status==="archived":de.status!=="archived"))==null?void 0:z.id)??null;if(h(Q),!Q){y([]);return}try{y(await Ld(Q))}catch(de){T(de instanceof Qa?de.detail:de instanceof Error?de.message:String(de))}},De=async O=>{var Q;if(O.preventDefault(),!(!K.title.trim()||!K.ownerWorkspaceId)){Y(!0),T(null);try{const z=E==="edit"&&J?await NM(J.id,{expectedVersion:J.version,title:K.title.trim(),publicDescription:K.publicDescription.trim(),participantWorkspaceIds:K.participantWorkspaceIds}):await EM({...K,title:K.title.trim(),publicDescription:K.publicDescription.trim()});c("active"),q(null),le({title:"",publicDescription:"",ownerWorkspaceId:((Q=e[0])==null?void 0:Q.id)??"",participantWorkspaceIds:[]}),await ve(z.id,"active")}catch(z){T(z instanceof Qa?z.detail:z instanceof Error?z.message:String(z))}finally{Y(!1)}}},Ye=async()=>{if(!(!J||J.status!=="active")){Y(!0),T(null);try{const O=await MM(J.id,J.version);B(!1),c("active"),await ve(void 0,"active")}catch(O){T(O instanceof Qa?O.detail:O instanceof Error?O.message:String(O))}finally{Y(!1)}}};return u.jsx("div",{className:"context-panel-overlay settings-overlay",onClick:t,role:"presentation",children:u.jsxs("section",{"aria-label":"工作空间协作",className:"context-panel collaboration-panel",onClick:O=>O.stopPropagation(),children:[u.jsxs("header",{className:"context-panel-header collaboration-panel-header",children:[u.jsxs("div",{children:[u.jsx("h2",{children:"协作"}),u.jsx("p",{children:"在明确选择的工作空间之间建立持久、定向的 Topic 通信。"})]}),u.jsxs("div",{className:"collaboration-header-actions",children:[u.jsx("button",{"aria-label":"新建 Topic",className:"memory-icon-button collaboration-new-topic",onClick:Be,title:"新建 Topic",type:"button",children:"+"}),u.jsx("button",{"aria-label":"关闭协作",className:"icon-button",onClick:t,type:"button",children:"×"})]})]}),w?u.jsx("div",{className:"collaboration-error",children:w}):null,u.jsxs("div",{className:"collaboration-body",children:[u.jsxs("nav",{className:"collaboration-topic-list","aria-label":"协作 Topics",children:[u.jsxs("div",{className:"collaboration-topic-tabs",role:"tablist","aria-label":"Topic 列表范围",children:[u.jsx("button",{"aria-selected":o==="active",className:o==="active"?"active":void 0,onClick:()=>void pe("active"),role:"tab",type:"button",children:"当前"}),u.jsx("button",{"aria-selected":o==="archived",className:o==="archived"?"active":void 0,onClick:()=>void pe("archived"),role:"tab",type:"button",children:"已归档"})]}),v?u.jsx("p",{children:"正在加载..."}):ce.length===0?u.jsx("p",{children:o==="archived"?"还没有已归档 Topic。":"还没有当前 Topic。"}):ce.map(O=>u.jsxs("button",{className:`collaboration-topic-entry${O.id===f?" active":""}`,onClick:()=>void ee(O.id),type:"button",children:[u.jsx("span",{children:O.title}),u.jsxs("small",{children:[O.members.length," 个工作空间 · ",O.status]})]},O.id))]}),u.jsx("main",{className:"collaboration-topic-detail",children:J?u.jsxs(u.Fragment,{children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx("h3",{children:J.title}),u.jsx("p",{children:J.publicDescription||"没有公开描述。"})]}),u.jsxs("div",{className:"collaboration-topic-actions",children:[u.jsx("span",{children:J.status}),J.status==="active"?u.jsxs(u.Fragment,{children:[u.jsx("button",{"aria-label":`编辑 Topic ${J.title}`,className:"memory-icon-button",onClick:Ce,title:"编辑",type:"button",children:u.jsx(Ef,{})}),u.jsx("button",{"aria-label":`归档 Topic ${J.title}`,className:"memory-icon-button",onClick:()=>B(!0),title:"归档",type:"button",children:u.jsx(wM,{})})]}):null]})]}),u.jsx("div",{className:"collaboration-members",children:J.members.filter(O=>O.status==="active").map(O=>u.jsxs("span",{children:[O.workspaceTitleSnapshot,u.jsx("small",{children:O.role})]},`${O.workspaceId}-${O.membershipVersion}`))}),u.jsx("div",{className:"collaboration-message-list",children:m.length===0?u.jsx("p",{children:"还没有消息。"}):m.map(O=>u.jsxs("article",{children:[u.jsxs("header",{children:[u.jsx("strong",{children:O.senderTitleSnapshot}),u.jsx("span",{children:O.recipientWorkspaceIds.includes("ALL")?"发给全部参与者":`发给 ${T7(O.recipientWorkspaceIds.map(Q=>G.get(Q)??Xl(Q)))}`}),u.jsx("time",{children:rt(O.createdAt)})]}),u.jsx("div",{className:"markdown-body",children:Yl(O.contentMarkdown,void 0)})]},O.id))})]}):u.jsx("div",{className:"collaboration-empty",children:"选择或新建一个 Topic。"})})]}),E?u.jsx("div",{className:"collaboration-create-overlay",role:"presentation",onClick:()=>!F&&q(null),children:u.jsxs("form",{className:"dialog-card collaboration-create-dialog",onClick:O=>O.stopPropagation(),onSubmit:De,children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx("h3",{children:E==="edit"?"编辑 Topic":"新建 Topic"}),u.jsx("p",{children:E==="edit"?"调整公开信息与参与工作空间。":"明确选择本次通信的 owner 与参与者。"})]}),u.jsx("button",{"aria-label":"关闭 Topic 编辑",className:"icon-button",onClick:()=>q(null),type:"button",children:"×"})]}),u.jsxs("label",{children:["标题",u.jsx("input",{autoFocus:!0,placeholder:"填写 Topic 标题",value:K.title,onChange:O=>le(Q=>({...Q,title:O.target.value}))})]}),u.jsxs("label",{children:["公开描述",u.jsx("textarea",{placeholder:"填写所有参与工作空间可见的共享背景",value:K.publicDescription,onChange:O=>le(Q=>({...Q,publicDescription:O.target.value}))})]}),u.jsxs("label",{children:["Owner 工作空间",u.jsx("select",{disabled:E==="edit",value:K.ownerWorkspaceId,onChange:O=>le(Q=>({...Q,ownerWorkspaceId:O.target.value,participantWorkspaceIds:Q.participantWorkspaceIds.filter(z=>z!==O.target.value)})),children:n.map(O=>u.jsx("optgroup",{label:O.title,children:O.conversations.map(Q=>u.jsx("option",{value:Q.id,children:Q.title},Q.id))},O.id))})]}),u.jsxs("fieldset",{className:"collaboration-participant-groups",children:[u.jsx("legend",{children:"参与工作空间"}),u.jsxs("div",{className:"collaboration-participant-toolbar",children:[u.jsxs("span",{children:[K.participantWorkspaceIds.length," 个已选择"]}),u.jsxs("div",{children:[u.jsx("button",{onClick:()=>_(new Set),type:"button",children:"全部展开"}),u.jsx("button",{onClick:()=>_(new Set(fe.map(O=>O.id))),type:"button",children:"全部收起"})]})]}),fe.map(O=>{const Q=O.conversations,z=Q.filter(Re=>K.participantWorkspaceIds.includes(Re.id)).length,de=te.has(O.id);return u.jsxs("section",{className:"collaboration-participant-group",children:[u.jsxs("header",{children:[u.jsxs("button",{"aria-expanded":!de,className:"collaboration-group-toggle",onClick:()=>_(Re=>{const ne=new Set(Re);return ne.has(O.id)?ne.delete(O.id):ne.add(O.id),ne}),type:"button",children:[u.jsx("span",{"aria-hidden":"true",className:de?void 0:"expanded",children:"›"}),u.jsx("strong",{children:O.title}),u.jsxs("small",{children:[z,"/",Q.length]})]}),u.jsxs("label",{title:`选择 ${O.title} 全部工作空间`,children:[u.jsx("input",{checked:z===Q.length,onChange:()=>le(Re=>{const ne=Q.map(oe=>oe.id),xe=new Set(Re.participantWorkspaceIds);return ne.every(oe=>xe.has(oe))?ne.forEach(oe=>xe.delete(oe)):ne.forEach(oe=>xe.add(oe)),{...Re,participantWorkspaceIds:Array.from(xe)}}),type:"checkbox"}),u.jsx("span",{children:"全选"})]})]}),de?null:u.jsx("div",{children:Q.map(Re=>u.jsxs("label",{className:"collaboration-participant-option",children:[u.jsx("input",{checked:K.participantWorkspaceIds.includes(Re.id),onChange:ne=>le(xe=>({...xe,participantWorkspaceIds:ne.target.checked?[...xe.participantWorkspaceIds,Re.id]:xe.participantWorkspaceIds.filter(oe=>oe!==Re.id)})),type:"checkbox"}),u.jsx("span",{children:Re.title})]},Re.id))})]},O.id)})]}),u.jsxs("footer",{children:[u.jsx("button",{className:"secondary",disabled:F,onClick:()=>q(null),type:"button",children:"取消"}),u.jsx("button",{disabled:F||!K.title.trim()||!K.ownerWorkspaceId,type:"submit",children:F?"正在保存...":E==="edit"?"保存":"创建 Topic"})]})]})}):null,R&&J?u.jsx("div",{className:"collaboration-create-overlay",onClick:()=>!F&&B(!1),role:"presentation",children:u.jsxs("section",{"aria-label":"归档 Topic",className:"dialog-card collaboration-archive-dialog",onClick:O=>O.stopPropagation(),children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx("h3",{children:"归档 Topic"}),u.jsx("p",{children:"归档后保留历史消息,但工作空间不能再向此 Topic 发送新消息。"})]}),u.jsx("button",{"aria-label":"关闭归档确认",className:"icon-button",onClick:()=>B(!1),type:"button",children:"×"})]}),u.jsx("strong",{children:J.title}),u.jsxs("footer",{children:[u.jsx("button",{className:"secondary",disabled:F,onClick:()=>B(!1),type:"button",children:"取消"}),u.jsx("button",{className:"danger",disabled:F,onClick:()=>void Ye(),type:"button",children:F?"正在归档...":"归档"})]})]})}):null]})})}function RE({busy:e,conversation:t,conversationId:n,forceStopBusy:i,preview:l,previewLoading:o,result:c,status:f,warmup:h,workspaceGroups:m,onCancelResetPreview:y,onClose:v,onForceStop:k,onPreviewReset:w,onStartBlankContext:T,onResetRuntime:E,onSaveResetSelection:q,onWorkspaceChange:R,onWarmupChange:B}){const F=!t||e||f==="running"||f==="initializing";return u.jsx("div",{className:"context-panel-overlay settings-overlay",onClick:v,role:"presentation",children:u.jsxs("section",{"aria-label":"Seele console",className:"context-panel console-panel",onClick:Y=>Y.stopPropagation(),children:[u.jsxs("header",{className:"context-panel-header console-panel-header",children:[u.jsxs("div",{children:[u.jsx("h2",{children:"Console"}),u.jsx("p",{children:"Control actions for the selected workspace runtime."})]}),u.jsxs("div",{className:"console-header-actions",children:[u.jsxs("label",{className:"console-workspace-picker",children:[u.jsx("span",{children:"Workspace"}),u.jsx("select",{disabled:e,onChange:Y=>R(Y.target.value),value:n??"",children:m.map(Y=>u.jsx("optgroup",{label:Y.title,children:Y.conversations.map(te=>u.jsxs("option",{value:te.id,children:[te.title," · workspaces/",Zo(te.id)]},te.id))},Y.id))})]}),u.jsx("button",{"aria-label":"Close console",onClick:v,type:"button",children:"×"})]})]}),u.jsx("div",{className:"console-body",children:u.jsxs("section",{className:"console-card",children:[u.jsxs("div",{className:"console-card-heading",children:[u.jsxs("div",{children:[u.jsx("h3",{children:"Workspace Runtime"}),u.jsx("p",{children:"Reset only replaces the Codex runtime thread. Seele workspace history, metadata, and files remain intact."})]}),u.jsx("span",{className:`console-status ${f}`,children:f})]}),u.jsxs("dl",{className:"console-facts",children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Workspace"}),u.jsx("dd",{children:(t==null?void 0:t.title)??"No workspace selected"})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"ID"}),u.jsx("dd",{children:t?`workspaces/${Zo(t.id)}`:"-"})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Thread"}),u.jsx("dd",{children:(t==null?void 0:t.codexThreadId)??"Not created"})]})]}),u.jsxs("label",{className:"console-toggle",children:[u.jsx("input",{checked:h,onChange:Y=>B(Y.target.checked),type:"checkbox"}),u.jsxs("span",{children:["Run a warmup turn after reset",u.jsx("small",{children:"The workspace will receive a system wakeup to re-orient itself after the thread is rebuilt."})]})]}),u.jsxs("div",{className:"console-actions",children:[u.jsx("button",{className:"danger",disabled:!t||i,onClick:k,title:"Kill the workspace runtime and repair every non-terminal scheduler state",type:"button",children:i?"Stopping & repairing...":"Force stop & repair"}),u.jsx("button",{className:"danger",disabled:F||o,onClick:w,type:"button",children:o?"Preparing preview...":"Preview runtime reset"}),u.jsx("button",{disabled:F||o,onClick:T,type:"button",children:"Clear memory & start blank"}),f==="running"||f==="initializing"?u.jsx("span",{children:"Force stop the active workspace operation before resetting."}):null]}),c?u.jsxs("div",{className:"console-result",children:[u.jsx("strong",{children:c.workspaceMemoryCleared?"Blank workspace context ready":"Runtime reset completed"}),u.jsxs("span",{children:[c.injectedItemCount," visible history items injected"]}),c.historyCompactionCount>0?u.jsxs("span",{children:["Full history processed in ",c.historyBatchCount," chronological batches with ",c.historyCompactionCount," native compactions"]}):null,c.workspaceMemoryCleared?u.jsx("span",{children:"Workspace Memory cleared; Base Memory retained"}):null,u.jsxs("span",{children:["New thread: ",c.newThreadId]}),c.warmupTurnId?u.jsxs("span",{children:["Warmup turn: ",c.warmupTurnId]}):null]}):null]})}),l?u.jsx(OE,{busy:e,preview:l,warmup:h,onCancel:y,onConfirm:E,onSaveSelection:q}):null]})})}function OE({busy:e,preview:t,warmup:n,onCancel:i,onConfirm:l,onSaveSelection:o}){const[c,f]=I.useState(()=>new Set(t.entries.filter(G=>G.includedByDefault).map(G=>G.id))),[h,m]=I.useState(!1),[y,v]=I.useState(!1),[k,w]=I.useState(null),T=I.useRef(null),E=t.entries.filter(G=>c.has(G.id)),q=E.filter(G=>G.role==="user").length,R=E.length-q,B=t.entries.filter(G=>G.topicRelation!==null).map(G=>G.id),F=B.filter(G=>c.has(G)).length,Y=t.entries.length>0&&c.size===t.entries.length;I.useEffect(()=>{T.current&&(T.current.indeterminate=c.size>0&&c.size<t.entries.length)},[t.entries.length,c.size]);const te=e||y;async function _(G){v(!0),w(null);try{await o(t.entries.filter(ce=>G.has(ce.id)).map(ce=>ce.id)),f(G)}catch(ce){w(dt(ce).message)}finally{v(!1)}}function K(G,ce){const fe=new Set(c);ce?fe.add(G):fe.delete(G),_(fe)}function le(){const G=new Set(c);B.forEach(ce=>G.add(ce)),_(G)}function J(){const G=new Set(c);B.forEach(ce=>{G.has(ce)?G.delete(ce):G.add(ce)}),_(G)}return u.jsx("div",{className:`reset-preview-overlay ${h?"expanded":""}`,onClick:te?void 0:i,role:"presentation",children:u.jsxs("section",{"aria-label":"Runtime reset preview","aria-modal":"true",className:`reset-preview-dialog ${h?"expanded":""}`,onClick:G=>G.stopPropagation(),role:"dialog",children:[u.jsxs("header",{className:"reset-preview-header",children:[u.jsxs("div",{children:[u.jsx("h3",{children:"Confirm runtime reset"}),u.jsx("p",{children:"The new thread will process the selected original messages in chronological batches. Each batch is compacted natively before the next batch is injected; the old thread context is never reused."})]}),u.jsxs("div",{className:"reset-preview-header-actions",children:[u.jsx("button",{"aria-label":h?"Restore reset preview size":"Expand reset preview",onClick:()=>m(G=>!G),title:h?"Restore size":"Expand",type:"button",children:h?"⊡":"⛶"}),u.jsx("button",{"aria-label":"Close reset preview",disabled:te,onClick:i,type:"button",children:"×"})]})]}),u.jsxs("div",{className:"reset-preview-summary",children:[u.jsxs("label",{className:"reset-preview-select-all",children:[u.jsx("input",{checked:Y,disabled:te||t.entries.length===0,onChange:G=>void _(G.target.checked?new Set(t.entries.map(ce=>ce.id)):new Set),ref:T,type:"checkbox"}),u.jsxs("span",{children:[c.size," of ",t.entries.length," selected"]})]}),u.jsxs("span",{children:[q," user"]}),u.jsxs("span",{children:[R," assistant"]}),B.length>0?u.jsxs("div",{className:"reset-preview-topic-actions",children:[u.jsxs("span",{children:[F," of ",B.length," Topic input + response"]}),u.jsx("button",{disabled:te||F===B.length,onClick:le,type:"button",children:"Select Topic turns"}),u.jsx("button",{disabled:te,onClick:J,type:"button",children:"Invert Topic turns"})]}):null,u.jsxs("span",{children:[t.historyBatchCount," planned batch",t.historyBatchCount===1?"":"es"]}),u.jsxs("span",{children:["~",t.estimatedTokenCount.toLocaleString()," source tokens"]}),u.jsx("span",{children:n?"Warmup enabled":"No warmup"}),y?u.jsx("span",{children:"Saving defaults..."}):null,k?u.jsx("span",{className:"reset-preview-selection-error",children:k}):null]}),u.jsx("div",{className:"reset-preview-list",children:t.entries.length>0?t.entries.map((G,ce)=>u.jsxs("article",{className:`reset-preview-item ${G.role} ${c.has(G.id)?"":"excluded"}`,children:[u.jsxs("header",{children:[u.jsxs("label",{children:[u.jsx("input",{"aria-label":`Include ${G.role} message ${ce+1}`,checked:c.has(G.id),disabled:te,onChange:fe=>K(G.id,fe.target.checked),type:"checkbox"}),u.jsx("span",{children:ce+1})]}),u.jsx("strong",{children:G.role}),G.topicRelation?u.jsxs("span",{className:"reset-preview-topic-badge",children:["Topic ",G.topicRelation]}):null,u.jsx("time",{dateTime:G.createdAt,children:rt(G.createdAt)})]}),u.jsx("pre",{children:G.content})]},G.id)):u.jsx("p",{className:"reset-preview-empty",children:"No visible history will be injected."})}),u.jsxs("footer",{className:"reset-preview-actions",children:[u.jsxs("small",{children:["Preview fingerprint: ",t.fingerprint.slice(0,12)]}),u.jsxs("div",{children:[u.jsx("button",{disabled:te,onClick:i,type:"button",children:"Cancel"}),u.jsx("button",{className:"danger",disabled:te,onClick:()=>l(t.entries.filter(G=>c.has(G.id)).map(G=>G.id)),type:"button",children:e?"Rebuilding and compacting...":"Confirm full-history reset"})]})]})]})})}function _E({currentReleasedAt:e,currentVersion:t,job:n,latest:i,latestChecking:l,starting:o,onClose:c,onRefresh:f,onStart:h}){const m=(n==null?void 0:n.currentVersion)??t,y=i!=null&&i.version&&aD(i.version,m)?rD(i.version):null;return I.useEffect(()=>{const v=k=>{k.key==="Escape"&&c()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[c]),u.jsx("div",{className:"codex-update-overlay",onClick:c,role:"presentation",children:u.jsxs("section",{"aria-label":"Codex CLI update",className:"codex-update-panel",onClick:v=>v.stopPropagation(),children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx("h3",{children:"Codex CLI update"}),u.jsx("p",{children:"Managed by Seele in the instance runtime directory."})]}),u.jsx("button",{"aria-label":"Close Codex CLI update",onClick:c,type:"button",children:"×"})]}),u.jsxs("dl",{className:"codex-update-summary",children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Status"}),u.jsx("dd",{className:n?`status-${n.status}`:void 0,children:(n==null?void 0:n.status)??"Not started"})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Current"}),u.jsx("dd",{children:Zp(m,(n==null?void 0:n.codexReleasedAt)??e)})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Latest"}),u.jsxs("dd",{title:(i==null?void 0:i.error)??void 0,children:[l?"Checking...":i!=null&&i.version?Zp(i.version,i.releasedAt):i!=null&&i.error?"Check failed":"Not checked",y?u.jsx("a",{className:"codex-release-notes-link",href:y,rel:"noreferrer",target:"_blank",children:"Release notes"}):null]})]}),n?u.jsxs("div",{children:[u.jsx("dt",{children:"Started"}),u.jsx("dd",{children:rt(n.startedAt)})]}):null]}),i!=null&&i.error?u.jsxs("p",{className:"codex-latest-error",children:["Latest version check: ",i.error]}):null,u.jsx("div",{className:"codex-update-log",role:"log","aria-live":"polite",children:n!=null&&n.logs.length?n.logs.map((v,k)=>u.jsxs("div",{className:`log-${v.stream}`,children:[u.jsx("time",{children:nD(v.at)}),u.jsx("span",{children:v.text})]},`${v.at}-${k}`)):u.jsx("p",{children:"No update logs yet."})}),u.jsxs("footer",{children:[u.jsx("button",{className:"secondary",onClick:f,type:"button",children:"Refresh"}),u.jsx("button",{disabled:o||(n==null?void 0:n.status)==="running",onClick:h,type:"button",children:o?"Starting...":(n==null?void 0:n.status)==="running"?"Updating...":n?"Run again":"Start update"})]})]})})}function BE({currentUser:e,conversations:t,deploymentSettings:n,editingEnvironmentKey:i,environmentDraft:l,globalEnvironment:o,workspaceEnvironment:c,memorySettings:f,memorySettingsDraft:h,managedUsers:m,workspaceMemoryDraft:y,runtimeSettings:v,runtimeModels:k,runtimeCodexVersion:w,runtimeCodexReleasedAt:T,runtimeCodexUpdating:E,runtimeSettingsDraft:q,runtimeSettingsScope:R,settingsWorkspace:B,settingsWorkspaceId:F,systemDiagnostics:Y,systemDiagnosticsLoading:te,workspaceGroups:_,workspaceRuntimeSettings:K,workspaceRuntimeSettingsDraft:le,onCancelEnvironmentEdit:J,onClose:G,onCreateUser:ce,onDeleteUser:fe,onDeleteEnvironment:Be,onDraftChange:Ce,onEditEnvironment:ve,onSaveBaseMemoryItems:ee,onSaveDeploymentSettings:pe,onSaveResponsibility:De,onSaveWorkspaceMemoryItems:Ye,onRevealEnvironmentValue:U,onRuntimeDraftChange:O,onCodexAccountSwitched:Q,onUpdateCodexCli:z,onRuntimeScopeChange:de,onSettingsWorkspaceChange:Re,onSubmitRuntimeSettings:ne,onSubmitEnvironment:xe,onRefreshSystemDiagnostics:oe,onUpdateUser:Oe,onWorkspaceRuntimeDraftChange:st,onWorkspaceRuntimeReset:Ct,revealedEnvironmentKeys:lt}){const[Je,ut]=I.useState("model"),[At,jn]=I.useState(!1),[Qe,Zt]=I.useState(null),[Pt,Wt]=I.useState(!1),[qr,Sr]=I.useState((B==null?void 0:B.responsibility)??""),[ua,Vt]=I.useState(!1),Ur=I.useRef(null),he=R==="workspace"?Object.values((K==null?void 0:K.sources)??{}).filter(we=>we==="workspace").length:0;return I.useEffect(()=>{R==="global"&&Wt(!1)},[R]),I.useEffect(()=>{Sr((B==null?void 0:B.responsibility)??"")},[B==null?void 0:B.id,B==null?void 0:B.responsibility]),I.useEffect(()=>{if(!Pt)return;const we=et=>{var Tn;const vt=et.target;vt instanceof Node&&((Tn=Ur.current)!=null&&Tn.contains(vt))||Wt(!1)},Ue=et=>{et.key==="Escape"&&Wt(!1)};return document.addEventListener("pointerdown",we,!0),document.addEventListener("keydown",Ue,!0),()=>{document.removeEventListener("pointerdown",we,!0),document.removeEventListener("keydown",Ue,!0)}},[Pt]),u.jsx("div",{className:"context-panel-overlay settings-overlay",onClick:G,role:"presentation",children:u.jsxs("section",{"aria-label":"Seele settings",className:"context-panel settings-panel",onClick:we=>we.stopPropagation(),children:[u.jsxs("header",{className:"context-panel-header settings-panel-header",children:[u.jsxs("div",{className:"settings-panel-title",children:[u.jsx("h2",{children:"Settings"}),Je!=="system"&&Je!=="users"&&Je!=="accounts"&&Je!=="deployment"?u.jsxs("div",{"aria-label":"Configuration scope",className:"settings-scope-segments",role:"radiogroup",children:[e.role==="admin"?u.jsx("button",{"aria-checked":R==="global",className:R==="global"?"active":void 0,onClick:()=>de("global"),role:"radio",type:"button",children:"Global"}):null,u.jsxs("div",{className:"settings-workspace-picker",ref:Ur,children:[u.jsx("button",{"aria-checked":R==="workspace","aria-expanded":R==="workspace"?Pt:void 0,"aria-label":R==="workspace"?"Settings workspace target":void 0,className:R==="workspace"?"active settings-scope-workspace-trigger":void 0,disabled:t.length===0,onClick:()=>{if(R!=="workspace"){de("workspace");return}Wt(we=>!we)},role:"radio",type:"button",children:R==="workspace"?u.jsxs(u.Fragment,{children:[u.jsxs("span",{children:["Workspace: ",(B==null?void 0:B.title)??"Select workspace"]}),u.jsx("span",{"aria-hidden":"true",children:"⌄"})]}):"Workspace"}),R==="workspace"&&Pt?u.jsx("div",{className:"settings-workspace-menu",role:"listbox",children:_.map(we=>u.jsxs("div",{className:"settings-workspace-menu-group",children:[u.jsx("div",{className:"settings-workspace-menu-heading",children:we.title}),we.conversations.map(Ue=>u.jsxs("button",{"aria-selected":Ue.id===F,className:Ue.id===F?"selected":void 0,onClick:()=>{Re(Ue.id),Wt(!1)},role:"option",type:"button",children:[u.jsx("span",{children:Ue.title}),u.jsxs("small",{children:["workspaces/",Ue.id]})]},Ue.id))]},we.id))}):null]})]}):null]}),u.jsx("div",{className:"settings-header-actions",children:u.jsx("button",{"aria-label":"Close settings panel",onClick:G,type:"button",children:"×"})})]}),u.jsxs("div",{className:"settings-body",children:[u.jsxs("nav",{className:"settings-nav","aria-label":"Settings sections",children:[u.jsxs("button",{className:Je==="model"?"active":void 0,onClick:()=>ut("model"),type:"button",children:[u.jsx("span",{children:"Runtime"}),u.jsx("small",{children:"Effective settings"})]}),u.jsxs("button",{className:Je==="responsibility"?"active":void 0,onClick:()=>ut("responsibility"),type:"button",children:[u.jsx("span",{children:"Responsibility"}),u.jsx("small",{children:"Workspace role"})]}),u.jsxs("button",{className:Je==="memory"?"active":void 0,onClick:()=>ut("memory"),type:"button",children:[u.jsx("span",{children:"Memory"}),u.jsx("small",{children:"Base + workspace context"})]}),u.jsxs("button",{className:Je==="environment"?"active":void 0,onClick:()=>ut("environment"),type:"button",children:[u.jsx("span",{children:"Environment"}),u.jsx("small",{children:"Base + workspace variables"})]}),e.role==="admin"?u.jsxs(u.Fragment,{children:[u.jsxs("button",{className:Je==="accounts"?"active":void 0,onClick:()=>ut("accounts"),type:"button",children:[u.jsx("span",{children:"Codex Accounts"}),u.jsx("small",{children:"Cloud login + active account"})]}),u.jsxs("button",{className:Je==="deployment"?"active":void 0,onClick:()=>ut("deployment"),type:"button",children:[u.jsx("span",{children:"Deployment"}),u.jsx("small",{children:"Local integrations"})]}),u.jsxs("button",{onClick:()=>{window.location.assign(`${q1()}admin/host`)},type:"button",children:[u.jsx("span",{children:"Work Operations"}),u.jsx("small",{children:"Versions, restart, logs"})]}),u.jsxs("button",{className:Je==="system"?"active":void 0,onClick:()=>ut("system"),type:"button",children:[u.jsx("span",{children:"System"}),u.jsx("small",{children:"Runtime + resources"})]}),u.jsxs("button",{className:Je==="users"?"active":void 0,onClick:()=>ut("users"),type:"button",children:[u.jsx("span",{children:"Users"}),u.jsx("small",{children:"Access + roles"})]})]}):null]}),u.jsxs("section",{className:"settings-content",children:[Je!=="system"&&Je!=="users"&&Je!=="accounts"&&Je!=="deployment"?u.jsxs("div",{className:`settings-scope-banner ${R==="workspace"?"workspace":"global"}`,children:[u.jsx("strong",{children:R==="workspace"?"Editing workspace custom settings":"Editing global settings"}),u.jsx("span",{children:R==="workspace"?`${(B==null?void 0:B.title)??"Selected workspace"} overrides global defaults.`:"These defaults apply to every workspace unless that workspace overrides them."})]}):null,Je==="system"?u.jsx(IE,{conversations:t,diagnostics:Y,loading:te,onRefresh:oe}):Je==="users"?u.jsx(PE,{currentUser:e,users:m,onCreate:ce,onDelete:fe,onUpdate:Oe}):Je==="accounts"?u.jsx(GE,{onSwitched:Q}):Je==="deployment"?u.jsx(VE,{settings:n,onSave:pe}):Je==="model"?u.jsx(YE,{draft:R==="workspace"?le:q,globalSettings:v,models:k,codexVersion:w,codexReleasedAt:T,codexUpdating:E,scope:R,workspaceOverrideCount:he,settings:R==="workspace"?(K==null?void 0:K.effective)??le:v,workspaceSettings:K,onDraftChange:R==="workspace"?st:O,onResetWorkspaceSetting:Ct,onSubmit:ne,onUpdateCodexCli:z}):Je==="responsibility"?u.jsx(UE,{draft:qr,saving:ua,scope:R,workspace:B,onDraftChange:Sr,onSubmit:we=>{we.preventDefault(),we.stopPropagation(),!(R!=="workspace"||!B)&&(Vt(!0),De(B.id,qr).then(Ue=>Sr(Ue)).finally(()=>Vt(!1)))}}):Je==="memory"?u.jsx(WE,{baseSettings:f,scope:R,workspaceSettings:y,workspaceName:B==null?void 0:B.title,onSaveBaseItems:ee,onSaveWorkspaceItems:Ye}):u.jsx(QE,{deleteConfirmKey:Qe,editingEnvironmentKey:i,environmentDraft:l,globalEnvironment:o,scope:R,workspaceEnvironment:c,valueVisible:At,onCancelEnvironmentEdit:J,onDeleteConfirmChange:Zt,onDeleteEnvironment:Be,onDraftChange:Ce,onEditEnvironment:ve,onRevealEnvironmentValue:U,onSubmitEnvironment:xe,onValueVisibleChange:jn,revealedEnvironmentKeys:lt})]})]})]})})}function IE({conversations:e,diagnostics:t,loading:n,onRefresh:i}){const l=(t==null?void 0:t.runtime.pool)??null,o=I.useMemo(()=>(t==null?void 0:t.systemLogs)??[],[t]),[c,f]=I.useState(!1),h=I.useMemo(()=>new Map(e.map(w=>[w.id,w.title])),[e]),m=I.useMemo(()=>t?JSON.stringify({generatedAt:t.generatedAt,app:t.app,systemLogs:o},null,2):"",[t,o]),y=async()=>{m&&(await navigator.clipboard.writeText(m),f(!0),window.setTimeout(()=>f(!1),1800))},v=()=>{if(!m||!t)return;const w=URL.createObjectURL(new Blob([m],{type:"application/json"})),T=document.createElement("a");T.href=w,T.download=`seele-system-log-${t.generatedAt.replaceAll(":","-").replaceAll(".","-")}.json`,T.click(),URL.revokeObjectURL(w)},k=()=>{if(!t||!o.length)return;const w=o[0],T=o.slice(0,5).map(F=>`- ${Lc(F.createdAt)} · ${F.level.toUpperCase()} · ${F.event} · ${F.summary}`).join(`
|
|
354
|
-
`),E=JSON.stringify(w,null,2),q=["## Environment","",`- Seele: ${t.app.version}`,`- Runtime: ${t.app.runtime}`,`- Report generated: ${Lc(t.generatedAt)}`,"","## Latest incident","","```json",E.slice(0,2500),"```","","## Recent system log","",T,"","_Generated by Seele System Log. Attach the downloaded JSON report when more history is needed._"].join(`
|
|
355
|
-
`),R=`[System Log] ${w.summary}`.slice(0,180),B=new URL("https://github.com/seele-labs/seele-work/issues/new");B.searchParams.set("title",R),B.searchParams.set("body",q),window.open(B.toString(),"_blank","noopener,noreferrer")};return u.jsxs("section",{className:"system-information-section",children:[u.jsxs("header",{className:"settings-section-header",children:[u.jsxs("div",{children:[u.jsx("h3",{children:"System"}),u.jsx("p",{children:"Read-only runtime and resource information managed by Seele."})]}),u.jsx("button",{className:"system-information-refresh",disabled:n,onClick:i,type:"button",children:n?"Refreshing...":"Refresh"})]}),l?u.jsxs(u.Fragment,{children:[u.jsxs("dl",{className:"system-information-summary",children:[u.jsxs("div",{children:[u.jsx("dt",{children:"LRU pool target"}),u.jsxs("dd",{children:[wr(l.maxRetainedRuntimes)," runtimes"]}),u.jsx("small",{children:l.capacitySource==="system_memory"?"Idle runtimes are released by least recent use":"Fallback target because system memory was unavailable"})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Retention policy"}),u.jsxs("dd",{children:["LRU · ",op(l.maxIdleSeconds*1e3)," max idle"]}),u.jsx("small",{children:"Only idle runtimes are eligible for eviction"})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Current pool"}),u.jsxs("dd",{children:[l.activeRuntimeCount," active · ",l.idleRuntimeCount," idle"]}),u.jsxs("small",{children:[l.retainedRuntimeCount," retained runtimes"]})]})]}),u.jsxs("section",{className:"system-runtime-list",children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx("h4",{children:"Workspace runtimes"}),u.jsx("p",{children:"Active workspaces and idle runtimes currently retained for reuse."})]}),u.jsx("time",{dateTime:t==null?void 0:t.generatedAt,children:t?rt(t.generatedAt):""})]}),l.workspaces.length>0?u.jsxs("div",{className:"system-runtime-table",children:[u.jsxs("div",{className:"system-runtime-table-header",children:[u.jsx("span",{children:"Workspace"}),u.jsx("span",{children:"Status"}),u.jsx("span",{children:"Runtime"}),u.jsx("span",{children:"Age"})]}),l.workspaces.map(w=>u.jsxs("div",{className:"system-runtime-row",children:[u.jsxs("div",{children:[u.jsx("strong",{children:h.get(w.workspaceId)??w.workspaceId}),u.jsx("small",{children:w.workspaceId})]}),u.jsx("span",{className:`system-runtime-state ${w.turnId?"active":"idle"}`,children:w.lifecycle==="shutting_down"?"Shutting down":w.turnId?"Active":"Idle"}),u.jsxs("div",{children:[u.jsx("span",{children:w.turnId?w.state:"Retained"}),u.jsx("small",{children:w.pid===null?"PID unavailable":`PID ${w.pid}`})]}),u.jsx("span",{children:w.idleMs===null?op(w.uptimeMs):`${op(w.idleMs)} idle`})]},w.workspaceId))]}):u.jsx("div",{className:"system-runtime-empty",children:"No workspace runtimes are currently retained."})]}),u.jsxs("section",{className:"system-runtime-list system-log-list",children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx("h4",{children:"System log"}),u.jsx("p",{children:"Recent persistent warnings and errors for external diagnostics."})]}),u.jsxs("div",{className:"system-log-actions",children:[u.jsx("button",{"aria-label":"Copy system log report",className:"icon-button",disabled:!o.length,onClick:()=>void y(),title:"Copy system log report",type:"button",children:u.jsx(P1,{})}),u.jsx("button",{"aria-label":"Download system log report",className:"icon-button",disabled:!o.length,onClick:v,title:"Download system log report",type:"button",children:u.jsx(LE,{})}),u.jsx("button",{"aria-label":"Report system log issue",className:"icon-button",disabled:!o.length,onClick:k,title:"Report issue to seele-labs/seele-work",type:"button",children:u.jsx(qE,{})}),c?u.jsx("small",{children:"Copied"}):null]})]}),o.length?u.jsx("div",{className:"system-log-entries",children:o.map(w=>u.jsxs("details",{className:`system-log-entry ${w.level}`,children:[u.jsxs("summary",{children:[u.jsx("span",{className:"system-log-level",children:w.level}),u.jsxs("span",{children:[u.jsx("strong",{children:w.summary}),u.jsxs("small",{children:[w.component," · ",Lc(w.createdAt)]})]})]}),u.jsxs("dl",{children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Event"}),u.jsx("dd",{children:w.event})]}),w.workspaceId?u.jsxs("div",{children:[u.jsx("dt",{children:"Workspace"}),u.jsxs("dd",{children:[h.get(w.workspaceId)??w.workspaceId," · ",w.workspaceId]})]}):null,w.turnId?u.jsxs("div",{children:[u.jsx("dt",{children:"Turn"}),u.jsx("dd",{children:w.turnId})]}):null,w.runtimeId?u.jsxs("div",{children:[u.jsx("dt",{children:"Runtime"}),u.jsx("dd",{children:w.runtimeId})]}):null]}),u.jsx("pre",{children:JSON.stringify(w.detail,null,2)})]},w.id))}):u.jsx("div",{className:"system-runtime-empty",children:"No warnings or errors have been recorded."})]})]}):u.jsx("div",{className:"system-runtime-empty",children:n?"Loading system information...":"System information is unavailable."})]})}function LE(){return u.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",children:u.jsx("path",{d:"M12 3v12m0 0 4-4m-4 4-4-4M5 20h14"})})}function qE(){return u.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",children:[u.jsx("circle",{cx:"12",cy:"12",r:"9"}),u.jsx("path",{d:"M12 7v6m0 4h.01"})]})}function UE({draft:e,saving:t,scope:n,workspace:i,onDraftChange:l,onSubmit:o}){const c=n==="workspace";return u.jsxs(u.Fragment,{children:[u.jsx("header",{className:"settings-section-header",children:u.jsxs("div",{children:[u.jsx("h3",{children:"Responsibility"}),u.jsx("p",{children:"Workspace-specific long-lived role. This is content context, so it is only editable in workspace scope."})]})}),c&&i?u.jsxs("form",{className:"settings-responsibility-form",onSubmit:o,children:[u.jsxs("label",{children:[u.jsx("span",{children:i.title}),u.jsx("textarea",{"aria-label":"Workspace responsibility",onChange:f=>l(f.target.value),placeholder:"Describe this workspace's durable role, scope, and long-term responsibilities.",rows:14,value:e})]}),u.jsx("div",{className:"settings-form-actions",children:u.jsx("button",{disabled:t,type:"submit",children:t?"Saving...":"Save responsibility"})})]}):u.jsx("section",{className:"settings-readonly-block",children:u.jsxs("div",{children:[u.jsx("strong",{children:"Workspace-only setting"}),u.jsx("span",{children:"Switch the header scope to Workspace and choose a workspace to edit its responsibility."})]})})]})}function HE({usage:e}){return u.jsx("div",{"aria-label":"Codex account usage",className:"codex-account-usage",children:[...e.windows].sort((t,n)=>t.windowDurationMins-n.windowDurationMins).map(t=>{const n=Nf(t.usedPercent),i=u7(t.windowDurationMins);return u.jsxs("div",{className:"codex-account-usage-window",children:[u.jsxs("div",{children:[u.jsxs("span",{children:[i," used"]}),u.jsx("strong",{children:H7(n)})]}),u.jsx("span",{"aria-hidden":"true",className:"codex-account-usage-track",children:u.jsx("span",{style:{width:`${n}%`}})}),u.jsxs("small",{children:["Resets ",F7(t.resetsAt)]})]},`${t.windowDurationMins}:${t.resetsAt}`)})})}function FE(e){if(!e)return null;const t=e.toLowerCase();return t==="chatgpt"?"ChatGPT":t==="apikey"||t==="api_key"?"API key":e}function $E(e){return e?e.split(/[_-]/).filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):null}function GE({onSwitched:e}){var Re;const[t,n]=I.useState(null),[i,l]=I.useState(!0),[o,c]=I.useState(!1),[f,h]=I.useState(!1),[m,y]=I.useState(""),[v,k]=I.useState(!1),[w,T]=I.useState(""),[E,q]=I.useState(null),[R,B]=I.useState(null),[F,Y]=I.useState(""),[te,_]=I.useState(null),[K,le]=I.useState(null),[J,G]=I.useState(!1),[ce,fe]=I.useState(""),Be=I.useRef(new Map);async function Ce(ne,xe){if(f||o||!window.confirm(`Use one reset credit for ${ne.name}? This consumes the credit if an eligible rate-limit window is reset.`))return;const oe=JSON.stringify([ne.id,xe.id]),Oe=Be.current.get(oe)??crypto.randomUUID();Be.current.set(oe,Oe),h(!0),y(""),fe("");try{const st=Ne(`settings/runtime/accounts/${encodeURIComponent(ne.id)}/reset-credits/consume`),Ct=await fetch(st,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({creditId:xe.id,idempotencyKey:Oe})});await He(Ct,{method:"POST",url:st});const lt=await Ct.json(),ut={reset:"Reset credit used. Eligible rate limits have been reset.",alreadyRedeemed:"This reset was already completed.",nothingToReset:"No rate-limit window needs a reset. No credit was used.",noCredit:"No reset credit is available for this account."}[lt.outcome];if(!ut)throw new Error("Reset outcome is unknown. Refresh details before trying again.");(lt.outcome==="nothingToReset"||lt.outcome==="noCredit")&&Be.current.delete(oe),fe(`${ne.name}: ${ut}`),n(At=>{if(!At)return At;const jn={...At.accountDetails};return delete jn[ne.id],{...At,accountDetails:jn}});try{n(await lp(!0))}catch{y("The result above is confirmed, but refreshing details failed. Please refresh details.")}}catch(st){y(`${dt(st).message} The outcome may be unknown; retrying this credit on this page reuses the same request ID.`)}finally{h(!1)}}async function ve(){var xe;const ne=await f5();n(ne),((xe=ne.login)==null?void 0:xe.status)==="pending"&&(q(ne.login),k(!0))}async function ee(ne){c(!0),y("");try{n(await lp(ne))}catch(xe){y(dt(xe).message)}finally{c(!1)}}I.useEffect(()=>{let ne=!1;return f5().then(xe=>{var oe;ne||(n(xe),((oe=xe.login)==null?void 0:oe.status)==="pending"&&(q(xe.login),k(!0)),xe.accounts.length>0&&(c(!0),lp(!1).then(Oe=>{ne||n(Oe)}).catch(Oe=>{ne||y(dt(Oe).message)}).finally(()=>{ne||c(!1)})))}).catch(xe=>{ne||y(dt(xe).message)}).finally(()=>{ne||l(!1)}),()=>{ne=!0}},[]),I.useEffect(()=>{if(!E||E.status!=="pending")return;let ne=!1;const xe=window.setInterval(()=>{$M(E.id).then(async oe=>{ne||(q(oe),oe.status!=="pending"&&(window.clearInterval(xe),oe.status==="succeeded"&&n(Oe=>{if(!Oe||!oe.account)return Oe;const st=Oe.accounts.some(Ct=>{var lt;return Ct.id===((lt=oe.account)==null?void 0:lt.id)})?Oe.accounts.map(Ct=>{var lt;return Ct.id===((lt=oe.account)==null?void 0:lt.id)?oe.account:Ct}):[...Oe.accounts,oe.account];return{...Oe,accounts:st}})))}).catch(oe=>{ne||y(dt(oe).message)})},1e3);return()=>{ne=!0,window.clearInterval(xe)}},[E==null?void 0:E.id,E==null?void 0:E.status]);function pe(){T(""),q(null),y(""),G(!1),k(!0)}async function De(ne){ne.preventDefault(),h(!0),y("");try{q(await FM(w.trim()))}catch(xe){y(dt(xe).message)}finally{h(!1)}}async function Ye(){if(!E||E.status!=="pending"){k(!1);return}h(!0),y("");try{const ne=await GM(E.id);q(ne),k(!1)}catch(ne){y(dt(ne).message)}finally{h(!1)}}function U(ne){B(ne),Y(ne.name),y("")}async function O(ne){if(ne.preventDefault(),!R)return;const xe=F.trim();if(!xe||xe===R.name){B(null);return}h(!0),y("");try{await PM(R.id,xe),await ve(),B(null)}catch(oe){y(dt(oe).message)}finally{h(!1)}}async function Q(){if(te){h(!0),y("");try{const ne=await YM(te.id);n(ne),_(null),await e()}catch(ne){const xe=dt(ne);y(xe.detail??xe.message)}finally{h(!1)}}}async function z(){if(K){h(!0),y("");try{await VM(K.id),await ve(),le(null)}catch(ne){y(dt(ne).detail??dt(ne).message)}finally{h(!1)}}}const de=(t==null?void 0:t.accounts)??[];return u.jsxs("section",{className:"settings-section codex-accounts-section",children:[u.jsxs("header",{className:"settings-section-header",children:[u.jsxs("div",{children:[u.jsx("h3",{children:"Codex Accounts"}),u.jsx("p",{children:"Manage the cloud-owned Codex logins. Every deployment uses the same globally active account; workspaces do not bind to accounts."})]}),u.jsxs("div",{className:"codex-account-toolbar",children:[u.jsx("button",{className:"codex-account-add",disabled:f||o||de.length===0,onClick:()=>void ee(!0),type:"button",children:o?"Refreshing...":"Refresh details"}),u.jsx("button",{className:"codex-account-add",disabled:f||o||(E==null?void 0:E.status)==="pending",onClick:pe,type:"button",children:"Add account"})]})]}),u.jsxs("div",{className:"codex-account-policy",children:[u.jsx("strong",{children:"Cloud-wide active account"}),u.jsx("span",{children:"Switching requires the cloud runtime to be idle. The cloud publishes the selected credential; members pause new work and apply it after any active turn finishes. There is no per-deployment selection."})]}),m?u.jsx("p",{className:"memory-editor-error",children:m}):null,i?u.jsx("p",{className:"settings-note",children:"Loading Codex accounts..."}):null,!i&&de.length===0?u.jsx("p",{className:"settings-note",children:"No persisted Codex account. Add one with the official device login flow."}):null,u.jsx("div",{className:"codex-account-list",children:de.map(ne=>{var Je,ut;const xe=(t==null?void 0:t.activeAccountId)===ne.id,oe=(Je=t==null?void 0:t.accountDetails)==null?void 0:Je[ne.id],Oe=((ut=t==null?void 0:t.accountIssues)==null?void 0:ut[ne.id])??[],st=Oe.length>0,Ct=Oe.some(At=>["missing_credential","invalid_credential","credential_unreadable"].includes(At.code)),lt=[ne.email,FE(ne.accountType),$E(ne.planType)].filter(At=>!!At);return u.jsxs("article",{className:`codex-account-card${xe?" active":""}${st?" issue":""}`,children:[u.jsxs("div",{className:"codex-account-main",children:[u.jsxs("div",{className:"codex-account-title",children:[u.jsx("strong",{children:ne.name}),xe?u.jsx("span",{className:"codex-account-active",children:"Active"}):null,st?u.jsx("span",{className:"codex-account-warning",children:"Needs attention"}):null]}),u.jsx("small",{children:lt.join(" · ")||`Added ${rt(ne.createdAt)}`}),st?u.jsx("div",{className:"codex-account-issues",role:"status",children:Oe.map(At=>u.jsx("span",{children:At.message},At.code))}):null,oe!=null&&oe.usage?u.jsx(HE,{usage:oe.usage}):u.jsx("span",{className:"codex-account-usage-empty",children:o?"Reading account usage...":"Usage unavailable"}),oe?u.jsx("small",{className:oe.error?"codex-account-detail-error":"codex-account-refreshed",children:oe.error?`Refresh issue: ${oe.error}`:`Updated ${rt(oe.refreshedAt)}`}):null]}),u.jsxs("div",{className:"codex-account-actions",children:[u.jsx("button",{disabled:f||o||Ct,onClick:()=>U(ne),title:Ct?"Sign in again or delete this account to replace its credential.":void 0,type:"button",children:st?"Repair & rename":"Rename"}),u.jsx("button",{disabled:f||o||xe||st,onClick:()=>{y(""),_(ne)},type:"button",children:xe?"In use":st?"Unavailable":"Switch"}),u.jsx("button",{className:"danger",disabled:f||o||xe,onClick:()=>{y(""),le(ne)},type:"button",children:"Delete"})]})]},ne.id)})}),!i&&de.length>0?u.jsxs("section",{className:"codex-reset-credits","aria-label":"Rate-limit reset credits",children:[u.jsx("h4",{children:"Rate-limit reset credits"}),ce?u.jsx("p",{className:"settings-note",role:"status",children:ce}):null,de.map(ne=>{var Oe,st,Ct;const xe=(Oe=t==null?void 0:t.accountDetails)==null?void 0:Oe[ne.id],oe=xe==null?void 0:xe.rateLimitResetCredits;return u.jsx("article",{className:"codex-account-card",children:u.jsxs("div",{className:"codex-account-main",children:[u.jsxs("div",{className:"codex-account-title",children:[u.jsx("strong",{children:ne.name}),u.jsx("span",{children:oe?`${oe.availableCount} available`:"Unavailable"})]}),oe?null:u.jsx("small",{children:o?"Reading reset credits...":"Reset credit information was not returned. Refresh details to try again."}),(st=oe==null?void 0:oe.credits)==null?void 0:st.map(lt=>{var Je,ut;return u.jsxs("div",{className:"codex-reset-credit",children:[u.jsxs("div",{className:"codex-account-title",children:[u.jsx("strong",{children:lt.title||"Rate-limit reset"}),u.jsx("button",{className:"codex-account-add",type:"button",disabled:f||o||lt.status!=="available"||lt.resetType!=="codexRateLimits"||lt.expiresAt!==null&<.expiresAt*1e3<=Date.now()||!!((ut=(Je=t==null?void 0:t.accountIssues)==null?void 0:Je[ne.id])!=null&&ut.length),onClick:()=>void Ce(ne,lt),children:f?"Please wait...":"Use"})]}),lt.description?u.jsx("span",{children:lt.description}):null,u.jsxs("small",{children:[lt.status," · Granted ",rt(new Date(lt.grantedAt*1e3).toISOString()),lt.expiresAt===null?" · No expiry":` · Expires ${rt(new Date(lt.expiresAt*1e3).toISOString())}`]})]},lt.id)}),oe&&oe.availableCount>(((Ct=oe.credits)==null?void 0:Ct.length)??0)?u.jsx("small",{children:oe.credits==null?"Only the available count was returned.":`Showing ${oe.credits.length} credit details; the available count includes all credits.`}):null,xe?u.jsx("small",{children:xe.error?`Refresh issue: ${xe.error}`:`Updated ${rt(xe.refreshedAt)}`}):null]})},ne.id)})]}):null,R?u.jsx("div",{className:"memory-editor-overlay",onClick:()=>!f&&B(null),role:"presentation",children:u.jsxs("form",{"aria-label":"Rename Codex account",className:"memory-editor-popover codex-account-login-dialog",onClick:ne=>ne.stopPropagation(),onSubmit:ne=>void O(ne),children:[u.jsxs("header",{children:[u.jsx("strong",{children:"Rename Codex Account"}),u.jsx("button",{"aria-label":"Close account rename",className:"memory-icon-button",disabled:f,onClick:()=>B(null),type:"button",children:"×"})]}),u.jsx("p",{className:"settings-note",children:"This name is only a Seele label. It does not change the Codex login or credential."}),u.jsxs("label",{children:[u.jsx("span",{children:"Account name"}),u.jsx("input",{"aria-label":"Codex account name",autoFocus:!0,maxLength:80,onChange:ne=>Y(ne.target.value),value:F})]}),m?u.jsx("p",{className:"memory-editor-error",children:m}):null,u.jsxs("div",{className:"memory-editor-actions",children:[u.jsx("button",{className:"memory-dialog-button",disabled:f,onClick:()=>B(null),type:"button",children:"Cancel"}),u.jsx("button",{className:"memory-dialog-button primary",disabled:f||!F.trim(),type:"submit",children:f?"Saving...":"Save"})]})]})}):null,v?u.jsx("div",{className:"memory-editor-overlay",onClick:()=>!f&&!E&&k(!1),role:"presentation",children:E?u.jsxs("section",{"aria-label":"Complete Codex account login",className:"memory-delete-dialog codex-account-login-dialog",onClick:ne=>ne.stopPropagation(),children:[u.jsxs("header",{children:[u.jsx("strong",{children:E.status==="succeeded"?"Account Added":"Complete Codex Login"}),u.jsx("button",{"aria-label":"Close account login",className:"memory-icon-button",disabled:f,onClick:()=>void Ye(),type:"button",children:"×"})]}),E.status==="pending"?u.jsxs(u.Fragment,{children:[u.jsx("p",{children:"Open the official Codex device page and enter this one-time code."}),u.jsxs("div",{className:"codex-device-code",children:[u.jsx("strong",{children:E.userCode}),u.jsx("button",{onClick:()=>{navigator.clipboard.writeText(E.userCode),G(!0),window.setTimeout(()=>G(!1),1500)},type:"button",children:J?"Copied":"Copy code"})]}),u.jsx("a",{href:E.verificationUrl,rel:"noreferrer",target:"_blank",children:"Open Codex device login"}),u.jsx("small",{className:"codex-login-waiting",children:"Waiting for Codex to confirm the login..."})]}):E.status==="succeeded"?u.jsxs("p",{children:[u.jsx("strong",{children:((Re=E.account)==null?void 0:Re.name)??E.accountName})," is persisted on the cloud and ready to synchronize. It was not activated automatically."]}):u.jsx("p",{className:"memory-editor-error",children:E.error??"Codex login was cancelled."}),u.jsx("div",{className:"memory-delete-actions",children:u.jsx("button",{className:"memory-dialog-button",disabled:f,onClick:()=>void Ye(),type:"button",children:E.status==="pending"?"Cancel login":"Close"})})]}):u.jsxs("form",{"aria-label":"Add Codex account",className:"memory-editor-popover codex-account-login-dialog",onClick:ne=>ne.stopPropagation(),onSubmit:ne=>void De(ne),children:[u.jsxs("header",{children:[u.jsx("strong",{children:"Add Codex Account"}),u.jsx("button",{"aria-label":"Close account login",className:"memory-icon-button",onClick:()=>k(!1),type:"button",children:"×"})]}),u.jsx("p",{className:"settings-note",children:"Seele creates the login profile on the cloud. Completing login shares it with every deployment but does not make it active."}),u.jsxs("label",{children:[u.jsx("span",{children:"Account name"}),u.jsx("input",{autoFocus:!0,maxLength:80,onChange:ne=>T(ne.target.value),placeholder:"For example: Codex backup",value:w})]}),m?u.jsx("p",{className:"memory-editor-error",children:m}):null,u.jsxs("div",{className:"memory-editor-actions",children:[u.jsx("button",{className:"memory-dialog-button",onClick:()=>k(!1),type:"button",children:"Cancel"}),u.jsx("button",{className:"memory-dialog-button primary",disabled:f||!w.trim(),type:"submit",children:f?"Starting...":"Continue"})]})]})}):null,te?u.jsx("div",{className:"memory-editor-overlay",onClick:()=>!f&&_(null),role:"presentation",children:u.jsxs("section",{"aria-label":"Switch Codex account",className:"memory-delete-dialog",onClick:ne=>ne.stopPropagation(),children:[u.jsxs("header",{children:[u.jsx("strong",{children:"Switch Codex Account"}),u.jsx("button",{"aria-label":"Close account switch",className:"memory-icon-button",disabled:f,onClick:()=>_(null),type:"button",children:"×"})]}),u.jsxs("p",{children:["Switch cloud-wide execution to ",u.jsx("strong",{children:te.name}),"? Active turns continue with the account they started with. New requests use this account after the switch; workspace threads and memory stay unchanged."]}),m?u.jsx("p",{className:"memory-editor-error",children:m}):null,u.jsxs("div",{className:"memory-delete-actions",children:[u.jsx("button",{className:"memory-dialog-button",disabled:f,onClick:()=>_(null),type:"button",children:"Cancel"}),u.jsx("button",{className:"memory-dialog-button primary",disabled:f,onClick:()=>void Q(),type:"button",children:f?"Switching...":"Switch account"})]})]})}):null,K?u.jsx("div",{className:"memory-editor-overlay",onClick:()=>!f&&le(null),role:"presentation",children:u.jsxs("section",{"aria-label":"Delete Codex account",className:"memory-delete-dialog",onClick:ne=>ne.stopPropagation(),children:[u.jsxs("header",{children:[u.jsx("strong",{children:"Delete Codex Account"}),u.jsx("button",{"aria-label":"Close account deletion",className:"memory-icon-button",disabled:f,onClick:()=>le(null),type:"button",children:"×"})]}),u.jsxs("p",{children:["Delete ",u.jsx("strong",{children:K.name})," and its persisted Codex credential from the cloud and every member mirror? This cannot be undone."]}),m?u.jsx("p",{className:"memory-editor-error",children:m}):null,u.jsxs("div",{className:"memory-delete-actions",children:[u.jsx("button",{className:"memory-dialog-button",disabled:f,onClick:()=>le(null),type:"button",children:"Cancel"}),u.jsx("button",{className:"memory-dialog-button danger",disabled:f,onClick:()=>void z(),type:"button",children:f?"Deleting...":"Delete"})]})]})}):null]})}function PE({currentUser:e,users:t,onCreate:n,onDelete:i,onUpdate:l}){const o={username:"",password:"",role:"user",active:!0},[c,f]=I.useState(null),[h,m]=I.useState(o),[y,v]=I.useState(!1),[k,w]=I.useState(null),[T,E]=I.useState("");function q(){m(o),E(""),f("new")}function R(Y){m({username:Y.username,password:"",role:Y.role,active:Y.active}),E(""),f(Y)}function B(){y||(f(null),E(""))}async function F(Y){if(Y.preventDefault(),!!c){v(!0),E("");try{c==="new"?await n({username:h.username.trim(),password:h.password,role:h.role}):await l(c.id,{username:h.username.trim(),password:h.password||void 0,role:h.role,active:h.active}),f(null)}catch(te){E(dt(te).message)}finally{v(!1)}}}return u.jsxs("section",{className:"settings-section user-management-section",children:[u.jsx("header",{className:"settings-section-header",children:u.jsxs("div",{children:[u.jsx("h3",{children:"Users"}),u.jsx("p",{children:"Manage sign-in access and Seele roles."})]})}),u.jsx("div",{className:"memory-items-editor-header actions-only",children:u.jsx("button",{"aria-label":"Add user",className:"memory-icon-button",onClick:q,title:"Add user",type:"button",children:"+"})}),u.jsxs("div",{className:"user-list",children:[t.map(Y=>u.jsxs("div",{className:"user-list-item",children:[u.jsxs("div",{className:"user-list-main",children:[u.jsxs("div",{children:[u.jsx("strong",{children:Y.username}),Y.id===e.id?u.jsx("span",{className:"user-current-badge",children:"Current"}):null]}),u.jsxs("small",{children:["Created ",rt(Y.createdAt)]})]}),u.jsx("span",{className:`user-role-badge role-${Y.role}`,children:Y.role}),u.jsx("span",{className:`user-status ${Y.active?"active":"disabled"}`,children:Y.active?"Active":"Disabled"}),u.jsxs("div",{className:"user-row-actions",children:[u.jsx("button",{"aria-label":`Edit user ${Y.username}`,className:"memory-icon-button",onClick:()=>R(Y),title:"Edit",type:"button",children:u.jsx(Ef,{})}),u.jsx("button",{"aria-label":`Delete user ${Y.username}`,className:"memory-icon-button memory-item-delete",disabled:Y.id===e.id,onClick:()=>{E(""),w(Y)},title:"Delete",type:"button",children:"×"})]})]},Y.id)),t.length===0?u.jsx("p",{className:"settings-note",children:"No users are configured."}):null]}),c?u.jsx("div",{className:"memory-editor-overlay",onClick:B,role:"presentation",children:u.jsxs("form",{"aria-label":c==="new"?"Add user":"Edit user",className:"memory-editor-popover user-editor-popover",onClick:Y=>Y.stopPropagation(),onSubmit:Y=>void F(Y),children:[u.jsxs("header",{children:[u.jsx("strong",{children:c==="new"?"Add User":"Edit User"}),u.jsx("button",{"aria-label":"Close user editor",className:"memory-icon-button",onClick:B,title:"Close",type:"button",children:"×"})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Username"}),u.jsx("input",{autoComplete:"off",autoFocus:!0,onChange:Y=>m(te=>({...te,username:Y.target.value})),placeholder:"Sign-in username",value:h.username})]}),u.jsxs("label",{children:[u.jsx("span",{children:c==="new"?"Initial password":"New password"}),u.jsx("input",{autoComplete:"new-password",minLength:8,onChange:Y=>m(te=>({...te,password:Y.target.value})),placeholder:c==="new"?"At least 8 characters":"Leave blank to keep the current password",type:"password",value:h.password})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Role"}),u.jsxs("select",{disabled:c!=="new"&&c.id===e.id,onChange:Y=>m(te=>({...te,role:Y.target.value==="admin"?"admin":"user"})),value:h.role,children:[u.jsx("option",{value:"user",children:"User"}),u.jsx("option",{value:"admin",children:"Admin"})]})]}),c!=="new"?u.jsxs("label",{className:"user-editor-active",children:[u.jsx("input",{checked:h.active,disabled:c.id===e.id,onChange:Y=>m(te=>({...te,active:Y.target.checked})),type:"checkbox"}),u.jsx("span",{children:"Account active"})]}):null,T?u.jsx("p",{className:"memory-editor-error",children:T}):null,u.jsxs("div",{className:"memory-editor-actions",children:[u.jsx("button",{className:"memory-dialog-button",onClick:B,type:"button",children:"Cancel"}),u.jsx("button",{className:"memory-dialog-button primary",disabled:y||!h.username.trim()||c==="new"&&h.password.length<8||c!=="new"&&h.password.length>0&&h.password.length<8,type:"submit",children:y?"Saving...":"Save"})]})]})}):null,k?u.jsx("div",{className:"memory-editor-overlay",onClick:()=>w(null),role:"presentation",children:u.jsxs("section",{"aria-label":"Delete user",className:"memory-delete-dialog",onClick:Y=>Y.stopPropagation(),children:[u.jsxs("header",{children:[u.jsx("strong",{children:"Delete User"}),u.jsx("button",{"aria-label":"Close delete user confirmation",className:"memory-icon-button",onClick:()=>w(null),title:"Close",type:"button",children:"×"})]}),u.jsxs("p",{children:["Delete ",u.jsx("strong",{children:k.username}),". Users that own workspaces must be disabled instead."]}),T?u.jsx("p",{className:"memory-editor-error",children:T}):null,u.jsxs("div",{className:"memory-delete-actions",children:[u.jsx("button",{className:"memory-dialog-button",onClick:()=>w(null),type:"button",children:"Cancel"}),u.jsx("button",{className:"memory-dialog-button danger",onClick:()=>{i(k.id).then(()=>w(null)).catch(Y=>E(dt(Y).message))},type:"button",children:"Delete"})]})]})}):null]})}function VE({settings:e,onSave:t}){const[n,i]=I.useState(e),[l,o]=I.useState(!1);return I.useEffect(()=>i(e),[e]),u.jsxs(u.Fragment,{children:[u.jsx("header",{className:"settings-section-header",children:u.jsxs("div",{children:[u.jsx("h3",{children:"Deployment"}),u.jsx("p",{children:"Settings stored only on this Seele instance. Cloud synchronization does not copy or overwrite them."})]})}),u.jsxs("form",{className:"settings-form",onSubmit:c=>{c.preventDefault(),o(!0),t(n).finally(()=>o(!1))},children:[u.jsxs("label",{className:"settings-field settings-field-wide",children:[u.jsxs("span",{children:[u.jsx("strong",{children:"Public URL"}),u.jsx("small",{children:"The externally reachable main URL of this deployment. Seele uses it when publishing callback links to external systems."})]}),u.jsx("input",{"aria-label":"Public URL of this deployment",onChange:c=>i({...n,publicUrl:c.target.value||null}),placeholder:"https://profuse.antgroup-inc.cn/codex/yishao-0/",type:"url",value:n.publicUrl||""})]}),u.jsxs("label",{className:"settings-toggle-field",children:[u.jsxs("span",{children:[u.jsx("strong",{children:"Profuse notification"}),u.jsx("small",{children:"Send DingTalk notifications from this deployment when a turn finishes or fails. Keep this off where the Profuse endpoint is unreachable."})]}),u.jsx("input",{"aria-label":"Enable Profuse notification on this deployment",checked:n.profuseNotificationEnabled,onChange:c=>i({...n,profuseNotificationEnabled:c.target.checked}),type:"checkbox"})]}),u.jsx("div",{className:"settings-form-actions",children:u.jsx("button",{disabled:l,type:"submit",children:l?"Saving...":"Save deployment settings"})})]})]})}function YE({codexReleasedAt:e,codexVersion:t,codexUpdating:n,draft:i,globalSettings:l,models:o,scope:c,settings:f,workspaceOverrideCount:h,workspaceSettings:m,onDraftChange:y,onResetWorkspaceSetting:v,onSubmit:k,onUpdateCodexCli:w}){var Y;const T=c==="workspace",E=Nc(i.model,o),q=Nc(l.model,o),R=Nc(f.model,o),B=D3(i.reasoningEffort,E),F=OA(E,i.reasoningEffort);return I.useEffect(()=>{E&&B!==i.reasoningEffort&&y({...i,reasoningEffort:B})},[i,E,B,y]),u.jsxs(u.Fragment,{children:[u.jsxs("header",{className:"settings-section-header",children:[u.jsxs("div",{children:[u.jsx("h3",{children:"Runtime"}),u.jsx("p",{children:"Configure global defaults or override them for the selected workspace. Running turns keep the settings they started with."})]}),T?u.jsx("span",{className:h>0?"section-override-count active":"section-override-count",children:h>0?`${h} custom`:"No custom runtime"}):null]}),u.jsxs("form",{className:"settings-form runtime-form",onSubmit:k,children:[u.jsxs("div",{className:_d(T,Hl(i.model,l.model,m==null?void 0:m.sources.model)),children:[u.jsx(Od,{globalValue:b5(l.model,o),isWorkspaceScope:T,label:"Model",settingKey:"model",source:Hl(i.model,l.model,m==null?void 0:m.sources.model),onReset:v}),u.jsx(Qm,{"aria-label":"Runtime model",onChange:te=>{const _=Nc(te,o);y({...i,model:te,reasoningEffort:D3(i.reasoningEffort,_)})},options:iD(o,i.model),value:i.model||((Y=o.find(te=>te.isDefault))==null?void 0:Y.model)||""})]}),u.jsxs("div",{className:_d(T,Hl(i.reasoningEffort,l.reasoningEffort,m==null?void 0:m.sources.reasoningEffort)),children:[u.jsx(Od,{globalValue:z3(l.reasoningEffort,q),isWorkspaceScope:T,label:"Reasoning effort",settingKey:"reasoningEffort",source:Hl(i.reasoningEffort,l.reasoningEffort,m==null?void 0:m.sources.reasoningEffort),onReset:v}),u.jsx(Qm,{"aria-label":"Runtime reasoning effort",onChange:te=>y({...i,reasoningEffort:te}),options:F,value:B})]}),u.jsxs("div",{className:_d(T,Hl(i.sandbox,l.sandbox,m==null?void 0:m.sources.sandbox)),children:[u.jsx(Od,{globalValue:S5(l.sandbox),isWorkspaceScope:T,label:"Permission mode",settingKey:"sandbox",source:Hl(i.sandbox,l.sandbox,m==null?void 0:m.sources.sandbox),onReset:v}),u.jsx(Qm,{"aria-label":"Permission mode",onChange:te=>y({...i,sandbox:te}),options:cE,value:i.sandbox})]}),u.jsxs("div",{className:_d(T,Hl(i.fastMode,l.fastMode,m==null?void 0:m.sources.fastMode),"settings-toggle-field"),children:[u.jsxs("span",{children:[u.jsx(Od,{globalValue:l.fastMode?"On":"Off",isWorkspaceScope:T,label:"Fast mode",settingKey:"fastMode",source:Hl(i.fastMode,l.fastMode,m==null?void 0:m.sources.fastMode),onReset:v}),u.jsx("small",{children:"1.5x speed with higher Codex credit consumption"})]}),u.jsx("input",{"aria-label":"Enable Fast mode",checked:i.fastMode,onChange:te=>y({...i,fastMode:te.target.checked}),type:"checkbox"})]}),u.jsxs("dl",{className:"runtime-summary",children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Current"}),u.jsxs("dd",{children:["Model ",b5(f.model,o),", reasoning"," ",z3(f.reasoningEffort,R),", Fast mode"," ",f.fastMode?"on":"off",", permission"," ",S5(f.sandbox),"."]})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Codex CLI"}),u.jsxs("dd",{className:"runtime-version-value",children:[u.jsx("span",{children:Zp(t,e)}),u.jsx("button",{className:"runtime-update-button",disabled:n,onClick:w,type:"button",children:n?"Updating...":"Check update"})]})]})]}),u.jsx("div",{className:"settings-form-actions",children:u.jsx("button",{type:"submit",children:T?"Save workspace overrides":"Save global runtime"})})]})]})}function Od({globalValue:e,isWorkspaceScope:t,label:n,settingKey:i,source:l,onReset:o}){const c=t&&l==="workspace";return u.jsxs("span",{className:"runtime-field-label",children:[u.jsx("span",{children:n}),t?u.jsxs("span",{className:"runtime-field-meta",children:[u.jsx("span",{className:c?"override":"inherited",children:c?"Workspace override":`Inherited: ${e}`}),c?u.jsx("button",{type:"button",onClick:()=>o(i),children:"Reset"}):null]}):null]})}function Qm({"aria-label":e,onChange:t,options:n,value:i}){const[l,o]=I.useState(!1),c=I.useRef(null),f=n.find(h=>h.value===i)??n[0]??null;return I.useEffect(()=>{if(!l)return;function h(y){var v;(v=c.current)!=null&&v.contains(y.target)||o(!1)}function m(y){y.key==="Escape"&&o(!1)}return document.addEventListener("pointerdown",h,!0),document.addEventListener("keydown",m,!0),()=>{document.removeEventListener("pointerdown",h,!0),document.removeEventListener("keydown",m,!0)}},[l]),u.jsxs("div",{className:"runtime-select",ref:c,children:[u.jsxs("button",{"aria-expanded":l,"aria-label":e,className:"runtime-select-trigger",onClick:()=>o(h=>!h),type:"button",children:[u.jsx("span",{children:(f==null?void 0:f.label)??i}),u.jsx("span",{"aria-hidden":"true",children:"⌄"})]}),l?u.jsx("div",{className:"runtime-select-menu",role:"listbox",children:n.map(h=>u.jsx("button",{"aria-selected":h.value===i,className:h.value===i?"selected":void 0,onClick:()=>{t(h.value),o(!1)},role:"option",type:"button",children:h.label},h.value||"default"))}):null]})}function Hl(e,t,n){return e!==t?"workspace":n}function _d(e,t,n="settings-wide-field"){return[n,e?"workspace-scoped":"",e&&t==="workspace"?"workspace-overridden":""].filter(Boolean).join(" ")}function WE({baseSettings:e,scope:t,workspaceSettings:n,workspaceName:i,onSaveBaseItems:l,onSaveWorkspaceItems:o}){const c=t==="workspace",f=c?n.items:e.items,h=c?o:l;return u.jsxs(u.Fragment,{children:[u.jsx("header",{className:"settings-section-header",children:u.jsxs("div",{children:[u.jsx("h3",{children:c?"Workspace Memory":"Base Memory"}),u.jsx("p",{children:c?"Workspace memory applies only to the selected workspace. Use stable English keys; values may be Chinese, plain text, or Markdown.":"Base memory applies to every workspace. Use stable English keys; values may be Chinese, plain text, or Markdown."})]})}),c?u.jsxs("section",{className:"settings-readonly-block",children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Base Memory"}),u.jsx("span",{children:"Read-only in workspace scope"})]}),u.jsx(KE,{emptyText:"No base memory is configured.",items:e.items,readonly:!0})]}):null,u.jsx("div",{className:"memory-manager-shell",children:u.jsx(XE,{ariaLabel:c?"Workspace memory":"Base memory",emptyText:"No memory items are configured.",items:f,onSaveItems:h,title:""})})]})}function XE({ariaLabel:e,emptyText:t,items:n,onSaveItems:i,title:l}){var K;const[o,c]=I.useState(Ic(n)),[f,h]=I.useState(null),[m,y]=I.useState({key:"",value:""}),[v,k]=I.useState(null),[w,T]=I.useState(null),[E,q]=I.useState(null);I.useEffect(()=>{c(Ic(n))},[n]),I.useEffect(()=>{if(f===null)return;const le=J=>{J.key==="Escape"&&(Y(),T(null))};return document.addEventListener("keydown",le),()=>document.removeEventListener("keydown",le)},[f]);async function R(le,J){q(J);try{const G=await i(le);return c(Ic(G)),G}finally{q(null)}}function B(){T(null),k(null),y({key:"",value:""}),h("new")}function F(le){const J=o[le];J&&(T(null),k(null),y({...J}),h(le))}function Y(){h(null),k(null),y({key:"",value:""})}async function te(le){const J=o[le],G=(J==null?void 0:J.key)||`${le}`;await R(o.filter((ce,fe)=>fe!==le),`delete:${G}`),T(null)}async function _(le){le.preventDefault(),le.stopPropagation();const J=m.key.trim(),G=dz(J);if(G){k(G);return}const ce=m.value.trim();if(!ce){k("Value is required.");return}const fe=f==="new"?-1:f;if(o.some((Ce,ve)=>ve!==fe&&Ce.key.trim()===J)){k(`Key "${J}" already exists. Each memory key must be unique.`);return}const Be={...m,key:J,value:ce};f==="new"?await R([...o,Be],"add"):typeof f=="number"&&await R(o.map((Ce,ve)=>ve===f?Be:Ce),`save:${f}`),Y()}return u.jsxs("section",{className:"memory-items-manager","aria-label":e,children:[u.jsxs("div",{className:l?"memory-items-editor-header":"memory-items-editor-header actions-only",children:[l?u.jsx("span",{children:l}):null,u.jsx("button",{"aria-label":"Add memory item",className:"memory-icon-button",title:"Add",type:"button",onClick:B,children:"+"})]}),o.length?u.jsx("div",{className:"memory-items-grid",children:o.map((le,J)=>u.jsxs("div",{className:"memory-item-display",children:[u.jsxs("pre",{"aria-label":`Memory item ${le.key}`,children:[u.jsx("span",{className:"memory-tag",children:`<${le.key}>`}),`
|
|
356
|
-
`,u.jsx("span",{children:le.value}),`
|
|
357
|
-
`,u.jsx("span",{className:"memory-tag",children:`</${le.key}>`})]}),u.jsxs("div",{className:"memory-item-actions",children:[u.jsx("button",{"aria-label":`Edit memory item ${le.key||J+1}`,className:"memory-icon-button memory-item-edit",disabled:E!==null,title:"Edit",type:"button",onClick:()=>F(J),children:"✎"}),u.jsx("button",{"aria-label":`Delete memory item ${le.key||J+1}`,className:"memory-icon-button memory-item-delete",disabled:E!==null,title:"Delete",type:"button",onClick:()=>T(J),children:"×"})]})]},`${J}-${le.key}`))}):u.jsx("p",{className:"settings-note",children:t}),f!==null?u.jsx("div",{className:"memory-editor-overlay",onClick:Y,role:"presentation",children:u.jsxs("form",{"aria-label":f==="new"?"Add memory item":"Edit memory item",className:"memory-editor-popover",onClick:le=>le.stopPropagation(),onSubmit:le=>void _(le),children:[u.jsxs("header",{children:[u.jsx("strong",{children:f==="new"?"Add Memory":"Edit Memory"}),u.jsx("button",{"aria-label":"Close memory editor",className:"memory-icon-button",title:"Close",type:"button",onClick:Y,children:"×"})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Key"}),u.jsx("input",{autoComplete:"off",autoFocus:!0,onChange:le=>y(J=>({...J,key:le.target.value})),placeholder:"Stable technical key used as the injected tag name",value:m.key})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Value · up to 1000 tokens"}),u.jsx("textarea",{onChange:le=>y(J=>({...J,value:le.target.value})),placeholder:"Memory content injected under this key",rows:10,value:m.value})]}),v?u.jsx("p",{className:"memory-editor-error",children:v}):null,u.jsxs("div",{className:"memory-editor-actions",children:[u.jsx("button",{"aria-label":"Cancel memory edit",className:"memory-dialog-button",type:"button",onClick:Y,children:"Cancel"}),u.jsx("button",{"aria-label":"Save memory item",className:"memory-dialog-button primary",disabled:E!==null,type:"submit",children:E==="add"||E!=null&&E.startsWith("save:")?"Saving...":"Save"})]})]})}):null,w!==null?u.jsx("div",{className:"memory-editor-overlay",onClick:()=>T(null),role:"presentation",children:u.jsxs("section",{"aria-label":"Confirm delete memory item",className:"memory-delete-dialog",onClick:le=>le.stopPropagation(),children:[u.jsxs("header",{children:[u.jsx("strong",{children:"Delete Memory"}),u.jsx("button",{"aria-label":"Close delete confirmation",className:"memory-icon-button",title:"Close",type:"button",onClick:()=>T(null),children:"×"})]}),u.jsxs("p",{children:["Delete"," ",u.jsx("code",{children:((K=o[w])==null?void 0:K.key)||`item ${w+1}`}),"?"]}),u.jsxs("div",{className:"memory-delete-actions",children:[u.jsx("button",{"aria-label":"Cancel delete",className:"memory-dialog-button",disabled:E!==null,type:"button",onClick:()=>T(null),children:"Cancel"}),u.jsx("button",{"aria-label":"Confirm delete",className:"memory-dialog-button danger",disabled:E!==null,type:"button",onClick:()=>void te(w),children:"Delete"})]})]})}):null]})}function KE({emptyText:e,items:t}){const n=Ic(t);return n.length?u.jsx("div",{className:"memory-items-list",children:n.map(i=>u.jsx("div",{className:"memory-item-display memory-item-readonly",children:u.jsxs("pre",{"aria-label":`Memory item ${i.key}`,children:[u.jsx("span",{className:"memory-tag",children:`<${i.key}>`}),`
|
|
358
|
-
`,u.jsx("span",{children:i.value}),`
|
|
359
|
-
`,u.jsx("span",{className:"memory-tag",children:`</${i.key}>`})]})},i.key))}):u.jsx("p",{className:"settings-note",children:e})}function QE({deleteConfirmKey:e,editingEnvironmentKey:t,environmentDraft:n,globalEnvironment:i,scope:l,workspaceEnvironment:o,valueVisible:c,onCancelEnvironmentEdit:f,onDeleteConfirmChange:h,onDeleteEnvironment:m,onDraftChange:y,onEditEnvironment:v,onRevealEnvironmentValue:k,onSubmitEnvironment:w,onValueVisibleChange:T,revealedEnvironmentKeys:E}){const q=t!==null&&E.has(t),R=l==="workspace",B=R?o:i,[F,Y]=I.useState(!1);function te(){f(),y({description:"",key:"",value:""}),T(!1),Y(!0)}function _(J){v(J),T(!1),Y(!0)}function K(){Y(!1),f(),T(!1)}function le(J){w(J),Y(!1)}return u.jsxs(u.Fragment,{children:[u.jsx("header",{className:"settings-section-header",children:u.jsxs("div",{children:[u.jsx("h3",{children:R?"Workspace Environment":"Base Environment"}),u.jsx("p",{children:R?"Workspace variables are stored in this workspace and are merged with base variables for new runs.":"Base variables are injected into every new workspace run. Existing runs keep the environment they started with."})]})}),R?u.jsxs("section",{className:"settings-readonly-block",children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Base Environment"}),u.jsx("span",{children:"Read-only in workspace scope"})]}),u.jsx(G3,{emptyText:"No base environment variables are configured.",readonly:!0,variables:i})]}):null,u.jsxs("section",{className:"environment-manager",children:[u.jsx("div",{className:"memory-items-editor-header actions-only",children:u.jsx("button",{"aria-label":"Add environment variable",className:"memory-icon-button",title:"Add",type:"button",onClick:te,children:"+"})}),u.jsx(G3,{emptyText:R?"No workspace environment variables are configured.":"No base environment variables are configured.",onDelete:J=>h(J),onEdit:_,variables:B})]}),F?u.jsx("div",{className:"memory-editor-overlay",onClick:K,role:"presentation",children:u.jsxs("form",{"aria-label":t?"Edit environment variable":"Add environment variable",className:"memory-editor-popover environment-editor-popover",onClick:J=>J.stopPropagation(),onSubmit:le,children:[u.jsxs("header",{children:[u.jsx("strong",{children:t?"Edit Environment":"Add Environment"}),u.jsx("button",{"aria-label":"Close environment editor",className:"memory-icon-button",title:"Close",type:"button",onClick:K,children:"×"})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Key"}),u.jsx("input",{"aria-label":"Environment variable key",autoComplete:"off",autoFocus:!0,disabled:t!==null,onChange:J=>y({...n,key:J.target.value}),placeholder:"Environment variable name",spellCheck:!1,value:n.key})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Value"}),u.jsxs("span",{className:"environment-value-field",children:[u.jsx("input",{"aria-label":"Environment variable value",autoComplete:"off",onChange:J=>y({...n,value:J.target.value}),placeholder:"Environment variable value",spellCheck:!1,type:c?"text":"password",value:n.value}),u.jsx("button",{"aria-label":c?"Hide value":"Show value",onClick:()=>{if(t&&!q&&!n.value){k(t),T(!0);return}T(!c)},title:c?"Hide value":"Show value",type:"button",children:c?u.jsx(SM,{}):u.jsx(kM,{})})]})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Description"}),u.jsx("input",{"aria-label":"Environment variable description",autoComplete:"off",onChange:J=>y({...n,description:J.target.value}),placeholder:"What this variable is for",spellCheck:!1,value:n.description})]}),u.jsxs("div",{className:"memory-editor-actions",children:[u.jsx("button",{className:"memory-dialog-button",type:"button",onClick:K,children:"Cancel"}),u.jsx("button",{className:"memory-dialog-button primary",disabled:!n.key.trim(),type:"submit",children:"Save"})]})]})}):null,e?u.jsx("div",{className:"memory-editor-overlay",onClick:()=>h(null),role:"presentation",children:u.jsxs("section",{"aria-label":"Confirm delete environment variable",className:"memory-delete-dialog",onClick:J=>J.stopPropagation(),children:[u.jsxs("header",{children:[u.jsx("strong",{children:"Delete Environment"}),u.jsx("button",{"aria-label":"Close delete confirmation",className:"memory-icon-button",title:"Close",type:"button",onClick:()=>h(null),children:"×"})]}),u.jsxs("p",{children:["Delete ",u.jsx("code",{children:e}),"?"]}),u.jsxs("div",{className:"memory-delete-actions",children:[u.jsx("button",{className:"memory-dialog-button",type:"button",onClick:()=>h(null),children:"Cancel"}),u.jsx("button",{className:"memory-dialog-button danger",type:"button",onClick:()=>{m(e),h(null)},children:"Delete"})]})]})}):null]})}function G3({emptyText:e,onDelete:t,onEdit:n,readonly:i=!1,variables:l}){return l.length===0?u.jsx("p",{className:"settings-note",children:e}):u.jsx("div",{className:i?"environment-list readonly":"environment-list",children:l.map(o=>u.jsxs("div",{className:i?"environment-row readonly":"environment-row",children:[u.jsxs("div",{className:"environment-row-main",children:[u.jsxs("pre",{"aria-label":`Environment variable ${o.key}`,children:[u.jsx("span",{className:"memory-tag",children:o.key}),"=",o.hasValue?"••••••":"",o.description?u.jsx("span",{className:"environment-comment",children:` # ${o.description}`}):null]}),u.jsxs("span",{children:[o.hasValue?"configured":"empty"," · updated"," ",rt(o.updatedAt)]})]}),i?u.jsx("span",{className:"environment-readonly-tag",children:"read-only"}):u.jsxs("div",{className:"environment-row-actions",children:[u.jsx("button",{"aria-label":`Edit ${o.key}`,className:"memory-icon-button memory-item-edit",onClick:()=>n==null?void 0:n(o),title:"Edit",type:"button",children:"✎"}),u.jsx("button",{"aria-label":`Delete ${o.key}`,className:"memory-icon-button memory-item-delete",onClick:()=>t==null?void 0:t(o.key),title:"Delete",type:"button",children:"×"})]})]},o.key))})}function l7({items:e,onDelete:t,onEdit:n}){const[i,l]=I.useState(null),[o,c]=I.useState(null);return e.length===0?u.jsxs("section",{className:"knowledge-empty",children:[u.jsx("h4",{children:"No knowledge registered"}),u.jsx("p",{children:"Give this workspace durable source material in chat. The workspace should decide whether to register it, create local copies, and produce digest or skill files."})]}):u.jsx("div",{className:"knowledge-list",children:e.map(f=>u.jsxs("article",{className:"knowledge-row",children:[u.jsxs("div",{className:"knowledge-row-main",children:[u.jsxs("header",{children:[u.jsx("strong",{children:f.name}),u.jsx("span",{children:JE(f.kind)}),u.jsx("span",{className:nN(f.status),children:eN(f.status)})]}),u.jsx("p",{children:f.purpose||f.description||"No purpose set."}),u.jsxs("div",{className:"knowledge-paths",children:[u.jsx("code",{children:f.digestPath}),u.jsx("code",{children:f.skillPath}),u.jsx("code",{children:f.fetch.scriptPath})]}),f.fetch.requiredEnv.length>0?u.jsx("div",{className:"knowledge-envs",children:f.fetch.requiredEnv.map(h=>u.jsx("span",{title:h.description||h.key,children:h.key},h.key))}):null,o===f.id?u.jsx("small",{className:"knowledge-row-notice",children:"Refresh/check is not automatic yet. Ask this workspace to review or refresh this knowledge source."}):null,u.jsxs("small",{children:[f.attention," · ",tN(f.refreshPolicy)," · updated ",rt(f.updatedAt)]})]}),u.jsx("div",{className:"environment-row-actions",children:i===f.id?u.jsxs(u.Fragment,{children:[u.jsx("button",{className:"danger",onClick:()=>{t(f.id),l(null)},type:"button",children:"Delete"}),u.jsx("button",{onClick:()=>l(null),type:"button",children:"Cancel"})]}):u.jsxs(u.Fragment,{children:[u.jsx("button",{"aria-label":`Check ${f.name}`,onClick:()=>c(f.id),title:"Check or refresh through workspace",type:"button",children:"↻"}),u.jsx("button",{"aria-label":`Edit ${f.name}`,onClick:()=>n(f),title:"Edit knowledge",type:"button",children:u.jsx(Ef,{})}),u.jsx("button",{"aria-label":`Delete ${f.name}`,onClick:()=>l(f.id),title:"Delete knowledge",type:"button",children:"×"})]})})]},f.id))})}function ZE({draft:e,items:t,scope:n,workspaceName:i,onCancel:l,onDelete:o,onDraftChange:c,onEdit:f,onSubmit:h}){return n==="workspace"?u.jsxs(u.Fragment,{children:[u.jsx("header",{className:"settings-section-header",children:u.jsxs("div",{children:[u.jsx("h3",{children:"Workspace Knowledge"}),u.jsxs("p",{children:["Long-lived source-backed material for ",i??"this workspace",". The workspace should create and maintain these assets itself when it digests external material. You mainly review status, delete stale items, or trigger a future refresh/check."]})]})}),u.jsx(l7,{items:t,onDelete:o,onEdit:f}),e.id?u.jsxs("form",{className:"settings-form knowledge-form",onSubmit:h,children:[u.jsxs("div",{className:"knowledge-form-header",children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Edit metadata"}),u.jsx("span",{children:"This is mainly for correction. New knowledge should usually be created by the workspace while processing source material."})]}),u.jsx("button",{className:"secondary",onClick:l,type:"button",children:"Close"})]}),u.jsxs("div",{className:"knowledge-form-grid",children:[u.jsxs("label",{children:[u.jsx("span",{children:"Name"}),u.jsx("input",{"aria-label":"Knowledge name",onChange:y=>c({...e,name:y.target.value}),value:e.name})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Kind"}),u.jsxs("select",{"aria-label":"Knowledge kind",onChange:y=>c({...e,kind:y.target.value}),value:e.kind,children:[u.jsx("option",{value:"source",children:"Source"}),u.jsx("option",{value:"skill",children:"Skill"}),u.jsx("option",{value:"reference",children:"Reference"})]})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Status"}),u.jsxs("select",{"aria-label":"Knowledge status",onChange:y=>c({...e,status:y.target.value}),value:e.status,children:[u.jsx("option",{value:"draft",children:"Draft"}),u.jsx("option",{value:"needs_fetch_method",children:"Needs fetch method"}),u.jsx("option",{value:"needs_credentials",children:"Needs credentials"}),u.jsx("option",{value:"invalid_credentials",children:"Invalid credentials"}),u.jsx("option",{value:"ready",children:"Ready"}),u.jsx("option",{value:"stale_signal",children:"Stale signal"})]})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Attention"}),u.jsxs("select",{"aria-label":"Knowledge attention",onChange:y=>c({...e,attention:y.target.value}),value:e.attention,children:[u.jsx("option",{value:"none",children:"None"}),u.jsx("option",{value:"tracked",children:"Tracked"}),u.jsx("option",{value:"watch",children:"Watch"})]})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Refresh"}),u.jsxs("select",{"aria-label":"Knowledge refresh policy",onChange:y=>c({...e,refreshPolicy:y.target.value}),value:e.refreshPolicy,children:[u.jsx("option",{value:"manual",children:"Manual"}),u.jsx("option",{value:"low-frequency-check",children:"Low-frequency check"})]})]})]}),u.jsxs("label",{className:"settings-wide-field",children:[u.jsx("span",{children:"Purpose"}),u.jsx("textarea",{"aria-label":"Knowledge purpose",onChange:y=>c({...e,purpose:y.target.value}),rows:2,value:e.purpose})]}),u.jsxs("label",{className:"settings-wide-field",children:[u.jsx("span",{children:"Content"}),u.jsx("textarea",{"aria-label":"Knowledge content",onChange:y=>c({...e,description:y.target.value}),rows:2,value:e.description})]}),u.jsxs("label",{className:"settings-wide-field",children:[u.jsx("span",{children:"Source clues"}),u.jsx("textarea",{"aria-label":"Knowledge source clues",onChange:y=>c({...e,sourceCluesText:y.target.value}),rows:4,value:e.sourceCluesText})]}),u.jsxs("label",{className:"settings-wide-field",children:[u.jsx("span",{children:"Required environment"}),u.jsx("textarea",{"aria-label":"Knowledge required environment",onChange:y=>c({...e,requiredEnvText:y.target.value}),rows:3,value:e.requiredEnvText})]}),u.jsx("p",{className:"settings-note",children:"Metadata lives under `.seele/knowledge/<id>/item.json`. Source copies, digest, skill, and fetch script stay in the same folder."}),u.jsx("div",{className:"settings-form-actions",children:u.jsx("button",{disabled:!e.name.trim(),type:"submit",children:"Save metadata"})})]}):null]}):u.jsxs("section",{className:"settings-empty-section",children:[u.jsx("h3",{children:"Workspace Knowledge"}),u.jsx("p",{children:"Knowledge belongs to a specific workspace because source copies, digests, skills, and fetch scripts live under that workspace's `.seele/knowledge` directory. Switch to Workspace scope to manage it."})]})}function JE(e){return e==="skill"?"Skill":e==="reference"?"Reference":"Source"}function eN(e){return e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function tN(e){return e==="low-frequency-check"?"low-frequency check":"manual refresh"}function nN(e){return e==="ready"?"knowledge-status ready":e==="needs_credentials"||e==="invalid_credentials"||e==="needs_fetch_method"?"knowledge-status warning":e==="stale_signal"?"knowledge-status stale":"knowledge-status"}function wt({label:e,value:t,mono:n=!1}){return u.jsxs("div",{className:"context-field",children:[u.jsx("span",{children:e}),u.jsx("strong",{className:n?"mono":void 0,title:t,children:t})]})}function rN({onRefresh:e,preview:t,refreshing:n}){const i=["workspace_identity","workspace_environment","rendering"],l=I.useMemo(()=>Object.entries(t.context).map(([c,f])=>[c,aN(f)]).sort(([c],[f])=>{const h=i.indexOf(c),m=i.indexOf(f);return h>=0||m>=0?(h>=0?h:Number.MAX_SAFE_INTEGER)-(m>=0?m:Number.MAX_SAFE_INTEGER):c.localeCompare(f)}),[t.context]),o=c=>{var f;(f=document.getElementById(P3(c)))==null||f.scrollIntoView({behavior:"smooth",block:"start"})};return u.jsxs("div",{className:"additional-context-preview",children:[u.jsx("div",{className:"additional-context-header",children:u.jsxs("div",{className:"additional-context-meta",children:[u.jsxs("span",{children:["Generated ",rt(t.generatedAt)]}),u.jsxs("span",{children:[wr(l.length)," keys"]}),u.jsx("button",{disabled:n,onClick:e,type:"button",children:n?"Rendering...":"Refresh"})]})}),u.jsxs("div",{className:"additional-context-toc",children:[u.jsx("button",{"aria-label":"Additional context outline",type:"button",children:"☰"}),u.jsx("div",{className:"additional-context-toc-menu",children:l.map(([c])=>u.jsx("button",{onClick:()=>o(c),type:"button",children:c},c))})]}),u.jsx("div",{className:"additional-context-list",children:l.map(([c,f])=>u.jsxs("section",{className:"additional-context-item",id:P3(c),children:[u.jsxs("header",{children:[u.jsxs("code",{children:["<",c,">"]}),u.jsxs("span",{children:[wr(f.length)," chars"]})]}),u.jsx("pre",{children:f})]},c))})]})}function P3(e){return`additional-context-${e.replace(/[^a-zA-Z0-9_-]/g,"-")}`}function aN(e){if(typeof e=="string")return e;if(e!==null&&typeof e=="object"&&"value"in e&&typeof e.value=="string")return e.value;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function iN({summary:e}){return u.jsxs("div",{className:"thread-read-summary",children:[u.jsxs("section",{className:"thread-read-summary-grid",children:[u.jsx(wt,{label:"Thread",value:e.id,mono:!0}),u.jsx(wt,{label:"Session",value:e.sessionId,mono:!0}),u.jsx(wt,{label:"Status",value:e.status}),u.jsx(wt,{label:"Source",value:e.source}),u.jsx(wt,{label:"Created",value:kc(e.createdAt)}),u.jsx(wt,{label:"Updated",value:kc(e.updatedAt)}),u.jsx(wt,{label:"Recency",value:kc(e.recencyAt)}),u.jsx(wt,{label:"Turns",value:wr(e.turnCount),mono:!0}),u.jsx(wt,{label:"Items",value:wr(e.itemCount),mono:!0}),u.jsx(wt,{label:"User / agent",value:`${wr(e.userMessageCount)} / ${wr(e.agentMessageCount)}`,mono:!0}),u.jsx(wt,{label:"Compactions",value:`${wr(e.compactionCount)} / ${wr(e.contextCompactionCount)} context`,mono:!0}),u.jsx(wt,{label:"CWD",value:e.cwd,mono:!0}),u.jsx(wt,{label:"Path",value:e.path,mono:!0})]}),e.preview?u.jsxs("details",{className:"thread-read-preview",children:[u.jsx("summary",{children:"Preview"}),u.jsx("p",{children:e.preview})]}):null,u.jsxs("section",{className:"thread-read-turns",children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Turns"}),u.jsxs("span",{children:[e.turns.length," turn",e.turns.length===1?"":"s"]})]}),u.jsx("div",{className:"thread-read-turn-list",children:e.turns.map((t,n)=>u.jsxs("details",{className:"thread-read-turn",children:[u.jsxs("summary",{children:[u.jsxs("code",{children:["turn ",n+1]}),u.jsx("span",{title:t.id,children:t.id}),u.jsxs("small",{children:[t.status," · ",t.itemCount," item",t.itemCount===1?"":"s"]})]}),u.jsxs("div",{className:"thread-read-turn-detail",children:[u.jsxs("div",{className:"thread-read-turn-fields",children:[u.jsx(wt,{label:"Status",value:t.status}),u.jsx(wt,{label:"Items view",value:t.itemsView}),u.jsx(wt,{label:"Started",value:kc(t.startedAt)}),u.jsx(wt,{label:"Completed",value:kc(t.completedAt)}),u.jsx(wt,{label:"Duration",value:t.durationMs===null?"unknown":ru(t.durationMs)}),u.jsx(wt,{label:"Item types",value:t.itemTypes||"none"})]}),t.preview?u.jsx("p",{className:"thread-read-turn-preview",children:t.preview}):null,u.jsxs("details",{className:"thread-read-turn-raw",children:[u.jsx("summary",{children:"Turn raw JSON"}),u.jsx("pre",{children:JSON.stringify(t.raw,null,2)})]})]})]},t.id))})]})]})}function jc(e,t,n,i,l,o,c,f,h,m){var y,v,k,w;if(e.type==="assistantText")return u.jsx("article",{className:`message assistant${e.streaming?" streaming":""}`,"data-hover-time":rt(e.createdAt),children:u.jsxs("div",{className:"message-main",children:[u.jsxs("header",{className:"message-header",children:[u.jsx("span",{children:"Seele"}),u.jsx("time",{dateTime:e.createdAt,children:e.streaming?"streaming":rt(e.createdAt)})]}),u.jsx("div",{className:"message-body",children:u.jsx(Ec,{content:e.content,conversation:t,streaming:e.streaming,onPreviewArtifact:n,onCopyArtifactUrl:i,copiedArtifactUrl:l})})]})});if(e.type==="turnError")return u.jsxs("article",{className:"turn-error-result","data-hover-time":rt(e.createdAt),role:"alert",children:[u.jsx("strong",{children:"Task failed"}),u.jsx(r5,{content:e.content})]});if(e.type==="message")return u.jsx("article",{className:`message ${e.message.role}`,"data-hover-time":rt(e.message.createdAt),children:u.jsxs("div",{className:"message-main",children:[u.jsxs("header",{className:"message-header",children:[u.jsx("span",{children:hD(e.message.role)}),u.jsx("time",{dateTime:e.message.createdAt,children:rt(e.message.createdAt)})]}),u.jsx("div",{className:"message-body",children:e.message.role==="user"?u.jsx(r5,{content:e.message.content}):u.jsx(Ec,{content:e.message.content,conversation:t,streaming:!1,onPreviewArtifact:n,onCopyArtifactUrl:i,copiedArtifactUrl:l})})]})});if(e.type==="system"){if((y=e.topicMessages)!=null&&y.length)return u.jsx("div",{className:"topic-input-list",children:e.topicMessages.map(E=>u.jsx("article",{className:"message topic-input","data-hover-time":rt(E.createdAt),children:u.jsxs("div",{className:"topic-message-bubble topic-input-bubble",children:[u.jsxs("header",{className:"topic-input-header",children:[u.jsxs("span",{className:"topic-input-sender",children:["From ",E.senderName]}),u.jsx("time",{dateTime:E.createdAt,children:rt(E.createdAt)})]}),u.jsx("div",{className:"topic-input-content message-body",children:u.jsx(Ec,{content:E.contentMarkdown,conversation:t,streaming:!1,onPreviewArtifact:n,onCopyArtifactUrl:i,copiedArtifactUrl:l})})]})},E.id))});const T=$s({},[e.detail]);return u.jsx("article",{className:"message system","data-hover-time":rt(e.createdAt),children:u.jsx("div",{className:"message-main",children:u.jsxs("button",{className:`system-message-body system-message-link${e.visualKind?` ${e.visualKind}`:""}`,onClick:()=>m==null?void 0:m(e),type:"button",children:[e.visualKind==="topic"?u.jsx("span",{className:"system-message-icon",children:u.jsx(Gd,{})}):null,u.jsx("span",{className:"system-message-title",children:e.title}),u.jsx("small",{children:T})]})})})}return e.type==="steerMarker"?u.jsxs("div",{className:"turn-steer-marker","data-message-id":e.messageId,title:e.content,children:[u.jsx("span",{children:"Added while running"}),u.jsx("strong",{children:e.content})]}):e.tool.linkedTaskId&&h?u.jsx(o7,{description:e.tool.body,icon:u.jsx(s7,{}),onClick:()=>void h(e.tool.linkedTaskId),timestamp:e.tool.createdAt,title:"View complex task details",trailing:e.tool.meta,visibleTitle:e.tool.title}):e.tool.kind==="command"?u.jsx(yN,{tool:e.tool,onRespondApproval:o}):e.tool.kind==="file"&&((v=e.tool.fileChanges)!=null&&v.length)?u.jsx(pN,{conversation:t,tool:e.tool}):e.tool.kind==="responsibility"||e.tool.kind==="workspaceChange"?u.jsx(hN,{conversation:t,tool:e.tool,onRespond:c}):e.tool.kind==="knowledge"?u.jsx(mN,{tool:e.tool,onRespond:f}):e.tool.kind==="collaboration"&&e.tool.topicAction==="send"?u.jsxs("details",{className:"tool-card collaboration topic-output","data-hover-time":rt(e.tool.createdAt),title:rt(e.tool.createdAt),children:[u.jsxs("summary",{children:[u.jsxs("span",{className:"tool-card-summary-title",children:[u.jsx("span",{className:"tool-card-kind-icon",children:u.jsx(Gd,{})}),u.jsx("span",{children:e.tool.title})]}),e.tool.meta?u.jsx("small",{children:e.tool.meta}):null]}),u.jsxs("div",{className:"topic-message-bubble topic-output-bubble",children:[u.jsxs("header",{className:"topic-input-header",children:[u.jsxs("span",{className:"topic-input-sender",children:["To ",e.tool.topicRecipientLabel??"Topic"]}),u.jsx("time",{dateTime:e.tool.createdAt,children:rt(e.tool.createdAt)})]}),u.jsx("div",{className:"topic-input-content message-body",children:u.jsx(Ec,{content:e.tool.topicMessageContent??e.tool.output??"",conversation:t,streaming:!1,onPreviewArtifact:n,onCopyArtifactUrl:i,copiedArtifactUrl:l})})]}),(k=e.tool.rawEvents)!=null&&k.length?u.jsxs("details",{className:"tool-raw-details",children:[u.jsx("summary",{children:"Raw events"}),u.jsx("pre",{className:"tool-raw-json",children:JSON.stringify(e.tool.rawEvents,null,2)})]}):null]}):u.jsxs("details",{className:`tool-card ${e.tool.kind}`,"data-hover-time":rt(e.tool.createdAt),title:rt(e.tool.createdAt),children:[u.jsxs("summary",{children:[u.jsxs("span",{className:"tool-card-summary-title",children:[e.tool.kind==="collaboration"?u.jsx("span",{className:"tool-card-kind-icon",children:u.jsx(Gd,{})}):null,u.jsx("span",{children:e.tool.title})]}),e.tool.meta?u.jsx("small",{children:e.tool.meta}):null]}),u.jsx("code",{children:e.tool.body}),e.tool.output?u.jsx("pre",{children:e.tool.output}):null,(w=e.tool.rawEvents)!=null&&w.length?u.jsxs("details",{className:"tool-raw-details",children:[u.jsx("summary",{children:"Raw events"}),u.jsx("pre",{className:"tool-raw-json",children:JSON.stringify(e.tool.rawEvents,null,2)})]}):null]})}function V3(e){return e.type==="message"||e.type==="turnError"||e.type==="assistantText"&&e.pinnedToResult||e.type==="assistantText"&&e.phase==="final_answer"||e.type==="tool"&&lN(e.tool)}function lN(e){return e.kind==="responsibility"||e.kind==="workspaceChange"&&!!(e.workspaceChangeProposalId??e.responsibilityProposalId)||e.kind==="knowledge"||e.kind==="collaboration"&&e.topicAction==="send"||!!e.linkedTaskId||e.meta==="approval"}function sN(e){const t=[],n=[];for(const i of e)i.type==="tool"&&(i.tool.kind==="collaboration"&&i.tool.topicAction==="send"||i.tool.kind==="workspaceChange"||i.tool.kind==="responsibility")?n.push(i):t.push(i);return[...t,...n]}function oN({group:e,conversation:t,allowProcessView:n=!0,copiedFooter:i,copiedArtifactUrl:l,running:o,onCopyArtifactUrl:c,onCopyBubble:f,onLoadProcessDetails:h,onPreviewArtifact:m,onRespondApproval:y,onRespondWorkspaceChangeProposal:v,onRespondKnowledgeProposal:k,onOpenComplexTask:w,onOpenSystemEvent:T}){const E=sN(e.agentItems.filter(V3)),q=e.agentItems.some(ce=>!V3(ce)),R=n&&(q||e.turnIds.length>0),B=o?"process":"result",[F,Y]=I.useState(B),[te,_]=I.useState(!1),K=F==="result"?E:e.agentItems,le=bN(K);I.useEffect(()=>{te||Y(B)},[B,te]);const J=o||R||e.stopped,G=u.jsxs(u.Fragment,{children:[J?u.jsx("div",{className:"turn-panel-controls",children:o?u.jsx("span",{"aria-label":"Agent run in progress",className:"turn-view-spinner",title:"Agent run in progress"}):R?u.jsx("button",{"aria-label":F==="result"?"Show process":"Show result",className:"turn-view-toggle",title:F==="result"?"Show process":"Show result",type:"button",onClick:()=>{_(!0),Y(ce=>ce==="result"?(h(e.turnIds),"process"):"result")},children:F==="result"?u.jsx(uN,{}):u.jsx(cN,{})}):null}):null,K.map(ce=>u.jsx(I.Fragment,{children:jc(ce,t,m,c,l,y,v,k,w,T)},ce.id)),F==="result"&&K.length===0?u.jsx("div",{className:"turn-result-empty",children:e.stopped?"Run stopped by user":q?"No reliable final answer captured":"No result yet"}):null,u.jsx(Tc,{copied:i,content:le,id:`agent-${e.id}-bottom`,notice:e.notificationFailure,timestamp:wN(K),variant:"outside",onCopy:f})]});return e.stopped?u.jsxs("details",{className:"turn-panel agent-turn stopped","data-collapsed":"true",children:[u.jsxs("summary",{children:[u.jsx("span",{className:"turn-stopped-badge",children:"Stopped"}),u.jsx("span",{children:"Run stopped by user"})]}),u.jsx("div",{className:J?"stopped-turn-body has-controls":"stopped-turn-body",children:G})]}):u.jsx("div",{className:["turn-panel","agent-turn",e.stopped?"stopped":"",J?"has-controls":""].filter(Boolean).join(" "),children:G})}function uN(){return u.jsx("svg",{"aria-hidden":"true",fill:"none",height:"14",viewBox:"0 0 24 24",width:"14",children:u.jsx("path",{d:"M8 7h8M6 12h12M8 17h8",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"})})}function cN(){return u.jsx("svg",{"aria-hidden":"true",fill:"none",height:"14",viewBox:"0 0 24 24",width:"14",children:u.jsx("path",{d:"m7 12 3 3 7-7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function dN(){return u.jsx("svg",{"aria-hidden":"true",fill:"none",height:"13",viewBox:"0 0 24 24",width:"13",children:u.jsx("rect",{fill:"currentColor",height:"12",rx:"2.6",width:"12",x:"6",y:"6"})})}function s7(){return u.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"15",viewBox:"0 0 24 24",width:"15",children:[u.jsx("circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.8"}),u.jsx("circle",{cx:"18",cy:"7",r:"2",stroke:"currentColor",strokeWidth:"1.8"}),u.jsx("circle",{cx:"12",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.8"}),u.jsx("path",{d:"m7.8 7 3.1 8.8M16.2 8.2l-3 7.8M8 6.2l8-.1",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.8"})]})}function fN(){return u.jsx("svg",{"aria-hidden":"true",fill:"none",height:"16",viewBox:"0 0 24 24",width:"16",children:u.jsx("path",{d:"M12 19V5m-5 5 5-5 5 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.1"})})}function o7({className:e="",description:t,icon:n,onClick:i,timestamp:l,title:o,trailing:c,visibleTitle:f}){return u.jsxs("button",{className:`tool-card file compact-timeline-link ${e}`.trim(),"data-hover-time":rt(l),onClick:i,title:o,type:"button",children:[u.jsx("span",{className:"compact-timeline-link-icon",children:n}),u.jsxs("span",{className:"compact-timeline-link-copy",children:[u.jsx("strong",{children:f}),u.jsx("small",{children:t})]}),c?u.jsx("span",{className:"compact-timeline-link-trailing",children:c}):null]})}function hN({conversation:e,tool:t,onRespond:n}){var q;const i=$e((q=t.workspaceChangePayload)==null?void 0:q.content)||t.body,[l,o]=I.useState(i),[c,f]=I.useState(null),[h,m]=I.useState("source"),[y,v]=I.useState(!1),k=!!(t.workspaceChangeProposalId??t.responsibilityProposalId),w=t.meta==="saved"||t.meta==="declined"?t.meta:k?"pending":"preparing",T=w==="pending";I.useEffect(()=>{o(i)},[i]);async function E(R){f(R);try{await n(t,R,R==="accept"?{content:l}:void 0)&&v(!1)}finally{f(null)}}return u.jsxs(u.Fragment,{children:[u.jsx(o7,{className:"responsibility-request-link",description:"Workspace responsibility",icon:u.jsx(Ef,{}),onClick:()=>v(!0),timestamp:t.createdAt,title:"View workspace change request",trailing:u.jsx("span",{className:`responsibility-request-status ${w}`,children:w}),visibleTitle:t.title}),y?u.jsx("div",{className:"dialog-backdrop",role:"presentation",onMouseDown:()=>!c&&v(!1),children:u.jsxs("section",{"aria-labelledby":`responsibility-proposal-${t.id}`,"aria-modal":"true",className:"dialog-card responsibility-proposal-dialog",onMouseDown:R=>R.stopPropagation(),role:"dialog",children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx("h2",{id:`responsibility-proposal-${t.id}`,children:t.title}),u.jsxs("p",{children:["Workspace change · ",rt(t.createdAt)]})]}),u.jsx("button",{"aria-label":"Close",className:"icon-button",disabled:!!c,onClick:()=>v(!1),type:"button",children:"×"})]}),u.jsxs("div",{className:"responsibility-proposal-dialog-body",children:[u.jsxs("div",{className:"responsibility-proposal-header",children:[u.jsxs("div",{children:[u.jsx("strong",{children:"Proposed responsibility"}),u.jsx("p",{children:k?"Review or edit the Markdown before applying it to future turns.":"The proposal becomes actionable after the current turn completes."})]}),u.jsx("span",{children:w})]}),t.responsibilityReason?u.jsx("p",{className:"responsibility-proposal-reason",children:t.responsibilityReason}):null,T?u.jsxs("div",{className:"responsibility-proposal-editor",children:[u.jsxs("div",{className:"responsibility-proposal-tabs",role:"tablist",children:[u.jsx("button",{"aria-selected":h==="source",className:h==="source"?"active":"",role:"tab",type:"button",onClick:()=>m("source"),children:"Source"}),u.jsx("button",{"aria-selected":h==="preview",className:h==="preview"?"active":"",role:"tab",type:"button",onClick:()=>m("preview"),children:"Preview"})]}),h==="source"?u.jsx("textarea",{"aria-label":"Proposed workspace responsibility",className:"responsibility-proposal-body",disabled:!!c,onChange:R=>o(R.target.value),rows:12,value:l}):u.jsx("div",{className:"message-body responsibility-markdown-preview",children:Yl(l,e)})]}):u.jsx("div",{className:"message-body responsibility-markdown-preview saved",children:Yl(l,e)})]}),u.jsx("footer",{className:"responsibility-proposal-dialog-actions",children:T?u.jsxs(u.Fragment,{children:[u.jsx("button",{className:"secondary reject",disabled:!!c,type:"button",onClick:()=>void E("decline"),children:c==="decline"?"Rejecting...":"Reject"}),u.jsx("button",{className:"approve",disabled:!!c,type:"button",onClick:()=>void E("accept"),children:c==="accept"?"Saving...":"Save"})]}):u.jsx("button",{className:"secondary",onClick:()=>v(!1),type:"button",children:"Close"})})]})}):null]})}function mN({tool:e,onRespond:t}){const[n,i]=I.useState(e.body),[l,o]=I.useState(null),[c,f]=I.useState("source"),h=e.meta==="saved"||e.meta==="declined"?e.meta:"pending",m=h==="pending",y=Y3(n);return I.useEffect(()=>{i(e.body)},[e.body]),u.jsxs("article",{className:"tool-card responsibility knowledge-proposal","data-hover-time":rt(e.createdAt),title:rt(e.createdAt),children:[u.jsxs("div",{className:"responsibility-proposal-header",children:[u.jsxs("div",{children:[u.jsx("strong",{children:e.title}),u.jsx("p",{children:"Long-term knowledge changes require approval. Keep one item as a reusable source or skill, not a tiny note."})]}),u.jsx("span",{children:h})]}),m?u.jsxs("div",{className:"responsibility-proposal-editor",children:[u.jsxs("div",{className:"responsibility-proposal-tabs",role:"tablist",children:[u.jsx("button",{"aria-selected":c==="source",className:c==="source"?"active":"",role:"tab",type:"button",onClick:()=>f("source"),children:"JSON"}),u.jsx("button",{"aria-selected":c==="preview",className:c==="preview"?"active":"",role:"tab",type:"button",onClick:()=>f("preview"),children:"Preview"})]}),c==="source"?u.jsx("textarea",{"aria-label":"Proposed workspace knowledge",className:"responsibility-proposal-body",disabled:!!l,onChange:v=>i(v.target.value),rows:10,value:n}):y?u.jsx(W3,{value:y}):u.jsx("div",{className:"knowledge-proposal-invalid",children:"Invalid JSON. Fix the proposal before saving."})]}):y?u.jsx(W3,{value:y,saved:!0}):u.jsx("pre",{className:"knowledge-proposal-raw",children:n}),m?u.jsxs("div",{className:"tool-approval-actions responsibility-actions",children:[u.jsx("button",{className:"approve",disabled:!!l,type:"button",onClick:()=>{Y3(n)&&(o("accept"),Promise.resolve(t(e,"accept",n)).finally(()=>o(null)))},children:l==="accept"?"Saving...":"Save"}),u.jsx("button",{className:"reject",disabled:!!l,type:"button",onClick:()=>{o("decline"),Promise.resolve(t(e,"decline",n)).finally(()=>o(null))},children:l==="decline"?"Rejecting...":"Reject"})]}):null]})}function Y3(e){try{const t=JSON.parse(e);return!t||typeof t!="object"||Array.isArray(t)?null:t}catch{return null}}function Zm(e){return typeof e=="string"&&e.trim()?e.trim():typeof e=="number"||typeof e=="boolean"?String(e):"-"}function W3({value:e,saved:t}){return u.jsx("div",{className:`knowledge-proposal-preview${t?" saved":""}`,children:u.jsxs("dl",{children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Name"}),u.jsx("dd",{children:Zm(e.name)})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Purpose"}),u.jsx("dd",{children:Zm(e.purpose)})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Content"}),u.jsx("dd",{children:Zm(e.content??e.description)})]})]})})}function pN({conversation:e,tool:t}){var c;const n=t.fileChanges??[],i=e==null?void 0:e.workspacePath,l=MA(n),o=t.meta==="started"||t.meta==="running";return u.jsxs("details",{className:`tool-card file${o?" running":" done"}`,"data-hover-time":rt(t.createdAt),title:rt(t.createdAt),children:[u.jsxs("summary",{children:[u.jsxs("span",{className:"tool-card-summary-title",children:[u.jsx("span",{className:"file-change-indicator","aria-hidden":"true"}),u.jsx("span",{className:"file-change-title",children:NA(n,i)})]}),u.jsx(X3,{additions:l.additions,deletions:l.deletions,running:o})]}),u.jsx("div",{className:"file-change-list",children:n.map((f,h)=>u.jsxs("div",{className:"file-change-row",children:[u.jsx("span",{className:"file-change-kind",children:gN(f.kind)}),u.jsx("code",{title:f.path,children:Vv(f.path,i)}),u.jsx(X3,{additions:f.additions,deletions:f.deletions})]},`${f.path}:${h}`))}),(c=t.rawEvents)!=null&&c.length?u.jsxs("details",{className:"tool-raw-details",children:[u.jsx("summary",{children:"Raw events"}),u.jsx("pre",{className:"tool-raw-json",children:JSON.stringify(t.rawEvents,null,2)})]}):null]})}function X3({additions:e,deletions:t,running:n=!1}){return u.jsxs("span",{className:"file-change-stats",children:[n?u.jsx("small",{children:"editing"}):null,e>0?u.jsxs("span",{className:"file-change-additions",children:["+",e]}):null,t>0?u.jsxs("span",{className:"file-change-deletions",children:["-",t]}):null]})}function gN(e){switch(e){case"add":return"A";case"delete":return"D";case"move":return"R";default:return"M"}}function yN({tool:e,onRespondApproval:t}){var k;const n=Lz(e),[i,l]=I.useState(!1),[o,c]=I.useState("script"),f=n==="approval"&&e.approvalRequestId!==void 0&&!!e.approvalTurnId,h=lf(e.body)?null:e.body,m=h?$z(h):null,y=m?`${vN(n)} · ${m}`:n==="running"?"Running script":n==="approval"?"Waiting for approval":"Command",v=qz(e,n);return u.jsxs("article",{className:`tool-card command ${n}`,"data-hover-time":rt(e.createdAt),title:rt(e.createdAt),children:[u.jsxs("div",{className:"tool-command-bar",children:[u.jsxs("button",{"aria-expanded":i,className:"tool-command-toggle",type:"button",onClick:()=>l(w=>!w),children:[u.jsx("span",{className:"tool-command-indicator","aria-hidden":"true"}),u.jsx("span",{children:y}),u.jsx("small",{className:"tool-command-badge",children:v})]}),i?u.jsxs("div",{className:"tool-command-tabs",role:"tablist","aria-label":"Command details",children:[u.jsx("button",{"aria-selected":o==="script",role:"tab",type:"button",onClick:()=>c("script"),children:"Script"}),u.jsx("button",{"aria-selected":o==="result",role:"tab",type:"button",onClick:()=>c("result"),children:"Result"}),(k=e.rawEvents)!=null&&k.length?u.jsx("button",{"aria-selected":o==="raw",role:"tab",type:"button",onClick:()=>c("raw"),children:"Raw"}):null]}):null,f?u.jsxs("div",{className:"tool-approval-actions",children:[u.jsx("button",{className:"approve",type:"button",onClick:()=>t(e,"accept"),children:"Approve"}),u.jsx("button",{className:"reject",type:"button",onClick:()=>t(e,"decline"),children:"Reject"})]}):null]}),i?o==="script"?u.jsx("div",{className:"tool-tab-panel",role:"tabpanel",children:h?u.jsx(K3,{content:h}):u.jsx("p",{className:"tool-output-pending",children:"Script unavailable"})}):o==="result"?u.jsxs("div",{className:"tool-tab-panel result",role:"tabpanel",children:[u.jsx("p",{className:"tool-command-result-meta",children:Uz(e,n)}),e.output?u.jsx(K3,{content:e.output}):u.jsx("p",{className:"tool-output-pending",children:n==="running"?"Waiting for output...":n==="approval"?"Waiting for approval before running.":e.meta??"No output"})]}):u.jsx(xN,{events:e.rawEvents??[]}):null]})}function vN(e){return e==="running"?"Running":e==="approval"?"Approval required":"Command"}function K3({content:e}){const[t,n]=I.useState(!1),i=Fz(e,H3);return u.jsxs("div",{className:"tool-content-block",children:[u.jsx("pre",{className:"tool-content-code",children:t?e:Hz(e,H3)}),i?u.jsx("button",{className:"tool-content-toggle",type:"button",onClick:()=>n(l=>!l),children:t?"Collapse":"Show all"}):null]})}function xN({events:e}){return u.jsx("div",{className:"tool-tab-panel raw",role:"tabpanel",children:u.jsx("pre",{className:"tool-raw-json",children:JSON.stringify(e,null,2)})})}function Tc({copied:e,content:t,id:n,notice:i,timestamp:l,variant:o,onCopy:c}){return t.trim()?u.jsxs("footer",{className:`turn-panel-footer ${o}${i?" has-notice":""}`,children:[i?u.jsx("span",{"aria-label":`Notification failed: ${i}`,className:"turn-panel-footer-notice",role:"img",title:i,children:u.jsx(S7,{})}):null,u.jsx("time",{dateTime:l,children:rt(l)}),u.jsx("button",{"aria-label":e?"Copied markdown":"Copy markdown",onClick:()=>c(n,t),title:e?"Copied":"Copy",type:"button",children:e?u.jsx("span",{"aria-hidden":"true",children:"Copied"}):u.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"12",viewBox:"0 0 24 24",width:"12",children:[u.jsx("rect",{height:"14",rx:"2",stroke:"currentColor",strokeWidth:"2",width:"14",x:"8",y:"8"}),u.jsx("path",{d:"M4 16V6a2 2 0 0 1 2-2h10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"})]})})]}):null}function Ac(e){return e.type==="message"?e.message.role==="user"?e.message.content:Ps(e.message.content):e.type==="assistantText"?Ps(e.content):e.type==="turnError"?`Task failed
|
|
360
|
-
|
|
361
|
-
${e.content}`:e.type==="system"?[e.title,e.fullDetail??e.detail].filter(t=>!!(t!=null&&t.trim())).join(`
|
|
362
|
-
|
|
363
|
-
`):""}function bN(e){return e.map(Ac).filter(t=>t.trim()).join(`
|
|
364
|
-
|
|
365
|
-
`)}function wN(e){for(let t=e.length-1;t>=0;t-=1){const n=e[t];if(n.type!=="tool")return n.createdAt}return new Date().toISOString()}function kN({usage:e}){return e?u.jsx("div",{className:"usage-indicators","aria-label":"Seele usage",children:e.windows.map(t=>u.jsx(SN,{label:u7(t.windowDurationMins),window:t},`${t.windowDurationMins}:${t.resetsAt}`))}):u.jsx("span",{"aria-label":"Usage pending",className:"usage-indicator muted","data-tooltip":"Usage pending",role:"status",tabIndex:0,children:u.jsx("strong",{children:"--"})})}function u7(e){return e%10080===0?`${e/10080}w`:e%1440===0?`${e/1440}d`:e%60===0?`${e/60}h`:`${e}m`}function SN({label:e,window:t}){const n=Nf(t.usedPercent),i=W1(n),l=`${e} usage ${H7(n)} · resets ${F7(t.resetsAt)}`;return u.jsx("span",{"aria-label":l,className:`usage-indicator ${i}`,"data-tooltip":l,role:"status",style:{"--usage-level":`${n}%`},tabIndex:0,children:u.jsxs("strong",{children:[Math.round(n),"%"]})})}function CN(e,t,n,i,l,o){const c=[...e].sort(Bc),f=new Map(i.filter(_=>_.parentId===null&&_.nodeType==="agent_turn"&&_.turnId!==null).map(_=>[_.turnId,_.sequence])),h=new Map(i.filter(_=>_.parentId===null&&_.nodeType==="agent_turn"&&_.turnId!==null).map(_=>[_.turnId,_.timelineAt])),m=new Map(i.filter(_=>_.nodeType==="user_message"&&_.entityId!==null).map(_=>[_.entityId,_.sequence])),y=new Map(i.filter(_=>_.nodeType==="user_message"&&_.entityId!==null).map(_=>[_.entityId,_.timelineAt])),v=i.filter(_=>_.parentId===null&&_.nodeType==="system_event"),k=v.filter(_=>_.turnId!==null&&_.subtype.startsWith("input:")),w=v.filter(_=>!k.includes(_)),T=new Set(v.flatMap(_=>_.turnId?[_.turnId]:[])),E=yA(t),q=new Map(n.map(_=>[_.id,_])),R=i.filter(_=>_.parentId===null&&_.nodeType==="agent_turn"&&_.turnId!==null).map(_=>_.turnId),F=[...new Set(i.length>0?[...R,...l?[l]:[]]:[...n.map(_=>_.id),...c.flatMap(_=>_.turnId?[_.turnId]:[]),...t.flatMap(_=>_.turnId?[_.turnId]:[])])].map(_=>{var Je,ut,At,jn;const K=q.get(_),le=c.filter(Qe=>Qe.turnId===_),J=le.filter(Qe=>Qe.role==="user").sort((Qe,Zt)=>{const Pt=y.get(Qe.id)??Qe.createdAt,Wt=y.get(Zt.id)??Zt.createdAt;return Pt.localeCompare(Wt)||Bc(Qe,Zt)}),G=le.filter(Qe=>Qe.role==="assistant"),ce=t.filter(Qe=>Qe.turnId===_).sort(Bc),fe=`turn:${_}`,Be=i.filter(Qe=>Qe.parentId===fe).sort((Qe,Zt)=>Qe.sequence-Zt.sequence),Ce=(K==null?void 0:K.origin)??E.get(_),ve=k.filter(Qe=>Qe.turnId===_).sort((Qe,Zt)=>Qe.timelineAt.localeCompare(Zt.timelineAt)||Qe.sequence-Zt.sequence).map(Qe=>Q3(Qe,void 0,o)),ee=Ce==="timeline_event"?[]:i.length>0?RN(Be,ce,Oc([_],l),o):d7(ce,Oc([_],l),o),pe=G.map(wc),De=Be.find(Qe=>Qe.subtype==="server.complex_task.plan_updated"),Ye=ce.find(Qe=>Qe.event==="server.complex_task.plan_updated"),U=(De==null?void 0:De.detail)??(Ye==null?void 0:Ye.data),O=Ee(Ee(U).task),Q=Ee(O.currentPlan),z=$e(Q.planMarkdown),de=EN(DN(ee,pe),z),Re=vA(K);Re&&de.push({id:`turn-error-${Re.turnId}`,type:"turnError",createdAt:Re.createdAt,content:Re.content});const ne=ce.find(Qe=>Qe.event==="server.wakeup.started"),xe=Ee(ne==null?void 0:ne.data),oe=typeof xe.instruction=="string"?xe.instruction.trim():"",Oe=Ce==="timeline_event"?ce[0]:void 0,st=T.has(_)?null:Oe?c7(Oe,(K==null?void 0:K.startedAt)??new Date(0).toISOString()):NN(Ce)?{id:`system-${_}`,type:"system",createdAt:(K==null?void 0:K.startedAt)??((Je=ce[0])==null?void 0:Je.createdAt)??new Date(0).toISOString(),title:MN(Ce??"system"),detail:zN(Ce??"system",oe),fullDetail:oe||void 0}:null,Ct=YN(ce),lt=(J[0]?y.get(J[0].id):(ut=k.find(Qe=>Qe.turnId===_))==null?void 0:ut.timelineAt)??h.get(_)??(K==null?void 0:K.startedAt)??((At=le[0])==null?void 0:At.createdAt)??((jn=ce[0])==null?void 0:jn.createdAt)??new Date(0).toISOString();return{id:`turn-${_}`,turnIds:[_],user:st??(J[0]?wc(J[0]):null),followupUsers:J.slice(1).map(wc),acceptedSystemInputs:ve,agentItems:de,activity:Ct??(Oc([_],l)?{id:-1,title:de.some(Qe=>Qe.type==="assistantText"&&Qe.streaming)?"Writing response":"Working",createdAt:lt,tone:"running"}:null),notificationFailure:VN(ce),stopped:ce.some(h7),trailingSystemItems:[],sortAt:lt,sortSequence:f.get(_)??null}}),Y=c.filter(_=>!_.turnId);F.push(...Y.map(_=>({id:`message-${_.id}`,turnIds:[],user:_.role==="user"?wc(_):null,followupUsers:[],agentItems:_.role==="assistant"?[wc(_)]:[],activity:null,notificationFailure:null,stopped:!1,sortAt:y.get(_.id)??_.createdAt,sortSequence:m.get(_.id)??null})));const te=new Map(t.map(_=>[String(_.id),_]));return F.push(...w.map(_=>({id:_.id,turnIds:[],user:Q3(_,_.entityType==="event"&&_.entityId?te.get(_.entityId):void 0,o),followupUsers:[],agentItems:[],activity:null,notificationFailure:null,stopped:!1,trailingSystemItems:[],sortAt:_.timelineAt,sortSequence:_.sequence}))),F.sort((_,K)=>{const le=_.sortAt.localeCompare(K.sortAt);return le!==0?le:_.sortSequence!==null||K.sortSequence!==null?(_.sortSequence??Number.MAX_SAFE_INTEGER)-(K.sortSequence??Number.MAX_SAFE_INTEGER):0}).map(({sortAt:_,...K})=>K)}function Q3(e,t,n){var h,m;if(t||e.entityType==="event")return c7(t??Wp(e),e.createdAt);const i=Ee(e.detail);if(e.subtype==="input:collaboration_notice"||e.subtype==="input:topic_message"){const y=Hp(i,n),v=jN(i.messages,n),k=Array.isArray(i.senderWorkspaceIds)?i.senderWorkspaceIds.filter(T=>typeof T=="string"&&T.trim().length>0):[],w=typeof i.unreadCount=="number"?i.unreadCount:0;return{id:e.id,type:"system",createdAt:e.createdAt,title:y.title,detail:y.detail,visualKind:"topic",topicMessages:v,fullDetail:[`## ${y.title}`,"","**Unread**","",String(w),"","**From**","",k.length>0?k.map(T=>{const E=n.get(T)??T;return`${Us(E)} (\`${T}\`)`}).join(", "):"Unknown"].join(`
|
|
366
|
-
`)}}const l=$e(i.complexTaskId)||$e(Ee(i.task).id)||void 0,o=Gv(e.title,e.subtype),c=$s(i,[e.summary,e.contentMarkdown]),f=[`## ${Us(o)}`,"",((h=e.contentMarkdown)==null?void 0:h.trim())||((m=e.summary)==null?void 0:m.trim())||"",Object.keys(i).length>0?["","```json",JSON.stringify(i,null,2),"```"].join(`
|
|
367
|
-
`):""].filter(Boolean).join(`
|
|
368
|
-
`);return{id:e.id,type:"system",createdAt:e.createdAt,title:o,detail:c,fullDetail:f||void 0,linkedTaskId:l}}function jN(e,t){if(!Array.isArray(e))return[];const n=new Set,i=[];for(const l of e){const o=Ee(l),c=$e(o.id),f=$e(o.senderWorkspaceId),h=$e(o.contentMarkdown).trim(),m=$e(o.createdAt);!c||n.has(c)||!f||!h||!m||(n.add(c),i.push({id:c,senderWorkspaceId:f,senderName:t.get(f)??($e(o.senderTitleSnapshot)||f),contentMarkdown:h,createdAt:m}))}return i}function c7(e,t){return e.event==="server.collaboration.topic_created"?TN(e,t):AN(e,t)}function TN(e,t){const n=Ee(Ee(e.data).topic),i=$e(n.title).trim()||"Untitled Topic",l=$e(n.publicDescription).trim()||"未填写描述",o=Array.isArray(n.members)?n.members.map(Ee):[],c=$e(n.ownerWorkspaceId),f=o.find(v=>$e(v.role)==="owner"||$e(v.workspaceId)===c),h=$e(f==null?void 0:f.workspaceTitleSnapshot).trim()||"Unknown workspace",m=o.filter(v=>$e(v.role)!=="owner"&&$e(v.status)==="active"),y=m.length?m.map(v=>{const k=$e(v.workspaceTitleSnapshot).trim()||"Unknown workspace";return`- ${Us(k)} (\`${$e(v.workspaceId)}\`)`}):["无"];return{id:`collaboration-topic-created-${e.id}`,type:"system",createdAt:e.createdAt??t,title:"Created",detail:i,visualKind:"topic",fullDetail:["## Topic 已创建","","**名称**","",Us(i),"","**描述**","",Us(l),"","**Owner Workspace**","",`${Us(h)} (\`${c}\`)`,"","**协作 Workspace**","",...y].join(`
|
|
369
|
-
`)}}function AN(e,t){const n=Ee(e.data),i=Yp(e.data),l=Gv(void 0,e.event);return{id:`system-event-${e.id}`,type:"system",createdAt:e.createdAt??t,title:l,detail:$s(n),visualKind:e.event.startsWith("server.collaboration.")?"topic":void 0,fullDetail:[`## ${Us(l)}`,"","**Event**","",`\`${e.event}\``,"","```json",JSON.stringify(i??null,null,2),"```"].join(`
|
|
370
|
-
`)}}function Yp(e,t=""){return Array.isArray(e)?e.map(n=>Yp(n)):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([n,i])=>[n,Yp(i,n)])):typeof e=="string"&&(t==="wakeAt"||t==="wake_at")&&Lc(e)||e}function EN(e,t){const n=t.trim();return n?e.filter(i=>i.type==="assistantText"?Ps(i.content).trim()!==n:i.type==="message"&&i.message.role==="assistant"?Ps(i.message.content).trim()!==n:!0):e}function NN(e){return e==="system"||e==="wakeup"||e==="runtime-reset"||e==="clone_initialization"}function MN(e){return e==="runtime-reset"?"Runtime reset":e==="clone_initialization"?"Clone initialization":e==="system"?"System action":"Scheduled wakeup"}function zN(e,t){return e==="runtime-reset"?"Thread rebuilt":e==="clone_initialization"?"Activating inherited context":e==="system"?"Workspace runtime action":t?O7(t,20):"Auto resumed"}function DN(e,t){if(e.some(l=>l.type==="assistantText"))return af(e);if(t.length===0)return e;const n=[...t],i=[];for(const l of e)l.type==="tool"&&$1(l.tool)&&F1(n,l.tool)||i.push(l);return af([...i,...n])}function RN(e,t,n,i){var h;const l=new Map(t.filter(m=>m.id!==void 0).map(m=>[String(m.id),m])),o=new Map,c=new Set;for(const m of e){const y=ON(m,t,l);y.length>0&&c.add(m.id);for(const v of y)o.set(qi(v),v)}if(n)for(const m of t)_N(e,m)||o.set(qi(m),m);else if(t.length>0&&!e.some(m=>m.phase==="process"))for(const m of t)o.set(qi(m),m);const f=d7([...o.values()].sort(Bc),n,i);for(const m of e)if(!c.has(m.id)){if(m.nodeType==="agent_text"&&m.subtype!=="final_answer"&&((h=m.contentMarkdown)!=null&&h.trim())){f.push({id:m.id,type:"assistantText",createdAt:m.createdAt,content:m.contentMarkdown,phase:BN(m),itemId:m.entityType==="codex_item"?m.entityId??void 0:void 0,streaming:n&&m.status==="running"});continue}m.nodeType==="operation"&&f.push({id:m.id,type:"tool",createdAt:m.createdAt,tool:IN(m,i)})}return af(f)}function ON(e,t,n){if(e.entityType==="event"&&e.entityId){const i=n.get(e.entityId);return i&&e.phase==="process"&&e.status==="running"?[i]:[Wp(e)]}if(e.entityType==="codex_item"&&e.entityId){const i=t.filter(l=>H1(l)===e.entityId);return i.length>0?i:[Wp(e)]}return[]}function Wp(e){const t=Ee(e.detail),n=e.subtype==="server.collaboration.message_staged"&&e.phase==="result"?e.status==="failed"?"server.collaboration.message_rejected":$e(t.messageId)?"server.collaboration.message_sent":e.subtype:e.subtype;return{id:e.entityId??e.id,turnId:e.turnId,seq:e.sequence,event:e.entityType==="codex_item"?"codex.notification":n,data:e.detail,createdAt:e.updatedAt||e.createdAt}}function _N(e,t){const n=t.id===void 0?null:String(t.id),i=H1(t);return e.some(l=>n!==null&&l.entityType==="event"&&l.entityId===n||i!==null&&l.entityType==="codex_item"&&l.entityId===i)}function H1(e){if(e.event!=="codex.notification")return null;const t=Ee(e.data),n=Ee(t.params),i=Ee(n.item);return $e(i.id)||$e(n.itemId)||null}function BN(e){return e.subtype==="final_answer"?"final_answer":e.phase==="process"?"commentary":"unknown"}function IN(e,t){var i,l;const n=Ee(e.detail);return{id:e.id,kind:e.status==="failed"?"error":"activity",title:e.subtype==="input:collaboration_notice"?Hp(n,t).title:e.title||_7(e.subtype),body:e.subtype==="input:collaboration_notice"?Hp(n,t).detail:((i=e.summary)==null?void 0:i.trim())||((l=e.contentMarkdown)==null?void 0:l.trim())||E7(n),createdAt:e.createdAt,itemId:e.entityType==="codex_item"?e.entityId??void 0:void 0,meta:e.status}}function d7(e,t,n){const i=[],l=new Map,o=new Map,c=new Map;for(const f of e){if(f.event==="server.workspace_change.decision"||f.event==="server.responsibility.decision"){UN(i,f);continue}if(f.event==="server.knowledge.decision"){HN(i,f);continue}if(h7(f)){PN(i);continue}if(f.event==="server.steer"){const T=Ee(f.data),E=typeof T.message=="string"?T.message.trim():"";i.push({id:`steer-${f.id}`,type:"steerMarker",createdAt:f.createdAt??new Date().toISOString(),content:E||"Additional input",messageId:typeof T.messageId=="string"?T.messageId:void 0});continue}const h=oD(f.data);h!=null&&h.itemId&&c.set(h.itemId,h.phase);const m=sD(f.data);if(m!=null&&m.text){const T=m.itemId?c.get(m.itemId)??m.phase:m.phase,E=m.itemId??`phase:${T}`,q=`${l.get(E)??""}${m.text}`,R=x7(q),B=o.get(E)??"",F=R.startsWith(B)?R.slice(B.length):R;if(l.set(E,q),o.set(E,R),F){const Y=i[i.length-1];(Y==null?void 0:Y.type)==="assistantText"&&$N(Y,m.itemId,T)?(Y.content+=F,Y.itemId=Y.itemId??m.itemId,Y.streamKey=Y.streamKey??E,Y.streaming=t):i.push({id:`assistant-event-${f.id}`,type:"assistantText",createdAt:f.createdAt??new Date().toISOString(),content:F,phase:T,itemId:m.itemId,streamKey:E,streaming:t})}continue}const y=uD(f.data);if(y!=null&&y.text){const T=Ps(y.text),E=y.itemId??`phase:${y.phase}`,q=GN(i,y.itemId,y.phase);if(q>=0){const R=i[q];R.type==="assistantText"&&(T?(R.content=T,R.phase=y.phase,R.itemId=R.itemId??y.itemId,R.streamKey=R.streamKey??E,R.streaming=!1,qN(i,q,y.itemId)):i.splice(q,1))}else T&&i.push({id:`assistant-completed-${f.id}`,type:"assistantText",createdAt:f.createdAt??new Date().toISOString(),content:T,phase:y.phase,itemId:y.itemId,streamKey:E,streaming:!1});continue}const v=Oz(f,n);if(v){v.rawEvents=[f];const T=J3(i,v);if(T>=0){e5(i[T],v);continue}if($1(v)&&F1(i,v)||v.kind==="command"&&v.meta==="running"&&lf(v.body))continue;i.push({id:`tool-${v.id}`,type:"tool",createdAt:v.createdAt,tool:v});continue}const k=_z(f);if(k){k.rawEvents=[f];const T=J3(i,k);if(T>=0){e5(i[T],k);continue}i.push({id:`tool-${k.id}`,type:"tool",createdAt:k.createdAt,tool:k});continue}if(jA(f)){LN(i,f);continue}const w=Bz(f);w&&(w.rawEvents=[f],i.push({id:`tool-${w.id}`,type:"tool",createdAt:w.createdAt,tool:w}))}return af(i)}function LN(e,t){const n=H1(t);if(n)for(let i=e.length-1;i>=0;i-=1){const l=e[i];if(!(l.type!=="tool"||l.tool.itemId!==n)){l.tool={...l.tool,rawEvents:m7(l.tool.rawEvents,[t])};return}}}function qN(e,t,n){if(n)for(let i=e.length-1;i>t;i-=1){const l=e[i];l.type==="assistantText"&&l.itemId===n&&e.splice(i,1)}}function UN(e,t){const n=Ee(t.data),i=typeof n.proposalId=="string"?n.proposalId:void 0,l=typeof n.decision=="string"?n.decision:void 0,o=Ee(n.payload),c=$e(o.content)||(typeof n.responsibility=="string"?n.responsibility:void 0);if(!(!i||l!=="accept"&&l!=="decline"))for(let f=e.length-1;f>=0;f-=1){const h=e[f];if(h.type==="tool"&&(h.tool.kind==="responsibility"||h.tool.kind==="workspaceChange")&&(h.tool.workspaceChangeProposalId===i||h.tool.responsibilityProposalId===i)){const m=XA(h.tool.meta,l);h.tool={...h.tool,title:m==="saved"?"Workspace change applied":"Workspace change declined",meta:m,body:m==="saved"?c??h.tool.body:h.tool.body,workspaceChangePayload:m==="saved"&&Object.keys(o).length>0?o:h.tool.workspaceChangePayload};return}}}function HN(e,t){const n=Ee(t.data),i=typeof n.proposalId=="string"?n.proposalId:void 0,l=typeof n.decision=="string"?n.decision:void 0,o=Ee(n.knowledge);if(!(!i||l!=="accept"&&l!=="decline"))for(let c=e.length-1;c>=0;c-=1){const f=e[c];if(f.type==="tool"&&f.tool.kind==="knowledge"&&f.tool.knowledgeProposalId===i){f.tool={...f.tool,title:l==="accept"?"Knowledge saved":"Knowledge proposal declined",meta:l==="accept"?"saved":"declined",body:l==="accept"&&Object.keys(o).length>0?JSON.stringify(o,null,2):f.tool.body};return}}}function F1(e,t){const n=f7(t);if(typeof n!="number")return!1;for(let o=0;o<e.length;o+=1){const c=e[o];if(c.type!=="assistantText"||!Z3(c,t))continue;const f=Ps(c.content);f!==c.content&&(e[o]={...c,content:f})}let i=0,l=-1;for(let o=0;o<e.length;o+=1){const c=e[o];if(c.type!=="assistantText"||!Z3(c,t))continue;l=o;const f=i,h=f+c.content.length;if(i=h,n>=h)continue;const m=Math.max(0,Math.min(c.content.length,n-f)),y=c.content.slice(0,m).trimEnd(),v=c.content.slice(m).trimStart(),k=[];return y&&k.push({...c,id:`${c.id}:before-tool-${t.id}`,content:y,pinnedToResult:!0}),k.push({id:`tool-${t.id}`,type:"tool",createdAt:t.createdAt,tool:t}),v&&k.push({...c,id:`${c.id}:after-tool-${t.id}`,content:v,pinnedToResult:!0}),e.splice(o,1,...k),!0}if(l>=0&&n>=i){const o=e[l];return(o==null?void 0:o.type)==="assistantText"&&(e[l]={...o,pinnedToResult:!0}),e.splice(l+1,0,{id:`tool-${t.id}`,type:"tool",createdAt:t.createdAt,tool:t}),!0}return!1}function Z3(e,t){return!t.anchorStreamKey||e.streamKey===t.anchorStreamKey}function af(e){const t=[],n=[];for(const o of e){if(o.type==="tool"&&$1(o.tool)){t.push(o.tool);continue}n.push(o)}const i=[...n],l=[];for(const o of t)F1(i,o)||l.push({id:`tool-${o.id}`,type:"tool",createdAt:o.createdAt,tool:o});return FN([...l,...i])}function $1(e){return typeof f7(e)=="number"}function f7(e){if(typeof e.anchorOffset=="number")return e.anchorOffset;if(e.kind==="responsibility")return e.responsibilityAnchorOffset;if(e.kind==="knowledge")return e.knowledgeAnchorOffset}function FN(e){const t=[];for(let n=0;n<e.length;n+=1){const i=e[n],l=e[n+1];if((i==null?void 0:i.type)==="tool"&&i.tool.kind==="responsibility"&&typeof i.tool.responsibilityAnchorOffset!="number"&&(l==null?void 0:l.type)==="assistantText"){t.push({...l,pinnedToResult:!0}),t.push(i),n+=1;continue}t.push(i)}return t}function $N(e,t,n){return e.type!=="assistantText"?!1:e.itemId&&t?e.itemId===t:e.itemId||t?!1:e.phase===n}function GN(e,t,n){if(t){const i=e.findIndex(l=>l.type==="assistantText"&&l.itemId===t);if(i>=0)return i}for(let i=e.length-1;i>=0;i-=1){const l=e[i];if(l.type==="assistantText"&&l.streaming&&(!t||!l.itemId)&&(l.phase===n||l.phase==="unknown"||n==="unknown"))return i}return-1}function h7(e){return e.event==="server.stop"||e.event==="server.stopped"}function PN(e){for(const t of e)t.type==="tool"&&t.tool.kind==="command"&&t.tool.meta==="running"&&(t.tool={...t.tool,title:"Command stopped",meta:"stopped"})}function VN(e){for(let t=e.length-1;t>=0;t-=1){const n=e[t];if(n.event!=="server.notification.failed")continue;const i=Ee(n.data);return typeof i.message=="string"?i.message:"Notification failed"}return null}function YN(e){for(let t=e.length-1;t>=0;t-=1){const n=B7(e[t]);if(n)return n}return null}function J3(e,t){for(let n=e.length-1;n>=0;n-=1){const i=e[n];if(i.type==="tool"&&i.tool.kind===t.kind&&(t.itemId&&i.tool.itemId===t.itemId||i.tool.body===t.body&&i.tool.meta==="running"))return n}return-1}function e5(e,t){if(e.type!=="tool")return;const n=e.tool.kind==="command"&&e.tool.meta!=="running"&&t.meta==="running",i=e.tool.kind==="command"&&t.kind==="command"&&lf(t.body)&&!lf(e.tool.body);e.tool={...e.tool,...t,id:e.tool.id,createdAt:e.tool.createdAt,title:n?e.tool.title:t.title,body:i?e.tool.body:t.body,meta:n?e.tool.meta:t.meta,output:Kz(e.tool.output,t.output),topicRecipientLabel:t.topicRecipientLabel??e.tool.topicRecipientLabel,topicMessageContent:t.topicMessageContent??e.tool.topicMessageContent,rawEvents:m7(e.tool.rawEvents,t.rawEvents)}}function m7(e,t){const n=[...e??[],...t??[]];if(n.length===0)return;const i=new Set;return n.filter(l=>{const o=qi(l);return i.has(o)?!1:(i.add(o),!0)})}function wc(e){return{id:`message-${e.id}`,type:"message",createdAt:e.createdAt,message:e}}function Jm(e,t){const n=new Set,i=[...e,...t].filter(l=>n.has(l.id)?!1:(n.add(l.id),!0));return i.filter(l=>p7(l)?!i.some(o=>WN(o,l)):!0)}function ep(e,t){const n=new Map;for(const i of[...e,...t])n.set(i.id,i);return[...n.values()].sort((i,l)=>Date.parse(i.startedAt)-Date.parse(l.startedAt))}function tp(e,t){const n=new Map;for(const i of[...e,...t])n.set(i.id,i);return[...n.values()].sort((i,l)=>i.timelineAt.localeCompare(l.timelineAt)||i.sequence-l.sequence)}function p7(e){return e.id.startsWith("local-")}function WN(e,t){if(p7(e)||e.role!==t.role||e.content.trim()!==t.content.trim())return!1;const n=Date.parse(e.createdAt),i=Date.parse(t.createdAt);return Number.isNaN(n)||Number.isNaN(i)?!1:Math.abs(n-i)<=12e4}function Bd(e,t){const n=new Map,i=new Map;for(const o of[...e,...t]){const c=qi(o);i.has(c)||i.set(c,i.size),n.set(c,o)}return[...n.values()].sort((o,c)=>{const f=g7(o,c);return f!==0?f:(i.get(qi(o))??0)-(i.get(qi(c))??0)})}function t5(e,t){const n=qi(t),i=e.findIndex(o=>qi(o)===n);if(i<0)return[...e,t];if(XN(e[i],t))return e;const l=[...e];return l[i]=t,l}function XN(e,t){return e.turnId===t.turnId&&e.event===t.event&&e.createdAt===t.createdAt&&e.seq===t.seq&&JSON.stringify(e.data)===JSON.stringify(t.data)}function qi(e){return e.id!==void 0?`${typeof e.id}:${e.id}`:`${e.event}:${e.createdAt??""}:${JSON.stringify(e.data)}`}function Bc(e,t){const n=g7(e,t);return n!==0?n:KN(e.id,t.id)}function g7(e,t){if(e.turnId&&t.turnId&&e.turnId===t.turnId&&typeof e.seq=="number"&&typeof t.seq=="number"&&e.seq!==t.seq)return e.seq-t.seq;const n=Date.parse(e.createdAt??""),i=Date.parse(t.createdAt??"");return!Number.isNaN(n)&&!Number.isNaN(i)&&n!==i?n-i:Number.isNaN(n)!==Number.isNaN(i)?Number.isNaN(n)?1:-1:0}function KN(e,t){return e===t?0:e===void 0?1:t===void 0?-1:typeof e=="number"&&typeof t=="number"?e-t:String(e).localeCompare(String(t))}function n5(e,t){const n=Ee(e.data);return typeof n.__seq=="number"&&typeof n.__createdAt=="string"&&Object.prototype.hasOwnProperty.call(n,"payload")?{id:typeof n.__eventId=="string"?n.__eventId:`stream:${n.__turnId??"unknown"}:${n.__seq}`,turnId:typeof n.__turnId=="string"?n.__turnId:null,seq:n.__seq,event:e.event,data:n.payload,createdAt:n.__createdAt}:{id:t,turnId:e.turnId??null,event:e.event,data:e.data,createdAt:e.createdAt??new Date().toISOString()}}const Ec=I.memo(function({content:t,conversation:n,streaming:i,onPreviewArtifact:l,onCopyArtifactUrl:o,copiedArtifactUrl:c}){const f=i?x7(t):Ps(t),h=n&&!i?aM(f,n):[];return u.jsxs(u.Fragment,{children:[i?u.jsx(JN,{content:f,conversation:n}):Yl(f,n),h.length>0?u.jsx("div",{className:"artifact-preview-list",children:h.map(m=>u.jsx(rM,{artifact:m,onPreview:l,onCopyUrl:o,copied:c===m.url},m.id))}):null]})},QN);function QN(e,t){var n,i,l,o;return e.content===t.content&&e.streaming===t.streaming&&e.copiedArtifactUrl===t.copiedArtifactUrl&&((n=e.conversation)==null?void 0:n.id)===((i=t.conversation)==null?void 0:i.id)&&((l=e.conversation)==null?void 0:l.workspacePath)===((o=t.conversation)==null?void 0:o.workspacePath)}function r5({content:e}){return u.jsx("div",{className:"plain-message-content",children:e})}const ZN=2;function JN({content:e,conversation:t}){const n=I.useRef(null),[i,l]=I.useState(null),{committedBlocks:o,activeBlock:c}=eM(e);return I.useLayoutEffect(()=>{const f=n.current;if(!f)return;const h=parseFloat(window.getComputedStyle(f).lineHeight)||28,m=f.scrollHeight;l(y=>{const v=h*ZN,k=Math.min(m,v);return y!==null&&k<=y?y:k})},[e]),u.jsxs("div",{className:"streaming-message-content",ref:n,style:i===null?void 0:{minHeight:i},children:[o.map((f,h)=>u.jsx(I.Fragment,{children:Yl(f,t)},`${h}:${f.length}`)),c?u.jsx("p",{className:"streaming-active-line",children:c}):null]})}function eM(e){const t=nM(e),n=t>0?e.slice(0,t):"",i=e.slice(t);return{committedBlocks:tM(n),activeBlock:i}}function tM(e){const t=[];let n=0,i=!1,l=!1;const o=e.match(/[^\n]*(?:\n|$)/g)??[];let c=0;for(const f of o){if(!f)continue;const h=f.trim(),m=c;if(c+=f.length,/^\s*(```|~~~)/.test(f)){i=!i,i||(Id(t,e.slice(n,c)),n=c);continue}if(i)continue;if(/^\s*\|.*\|\s*$/.test(f)||/^\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)+\|?\s*$/.test(f)){l=!0;continue}l&&(Id(t,e.slice(n,m)),n=m,l=!1),h===""&&(Id(t,e.slice(n,c)),n=c)}return n<e.length&&Id(t,e.slice(n)),t}function Id(e,t){t.trim()&&e.push(t)}function nM(e){const t=e.lastIndexOf(`
|
|
371
|
-
`);if(t<0)return 0;const n=[0];for(let l=0;l<e.length;l+=1)e[l]===`
|
|
372
|
-
`&&l+1<e.length&&n.push(l+1);let i=-1;for(const l of n){const o=e.indexOf(`
|
|
373
|
-
`,l),c=e.slice(l,o===-1?e.length:o);/^\s*(```|~~~)/.test(c)&&(i=i===-1?l:-1)}return i>=0?i:t+1}function rM({artifact:e,onPreview:t,onCopyUrl:n,copied:i}){return e?u.jsxs("figure",{className:"artifact-preview",children:[u.jsx("button",{className:"artifact-preview-media",onClick:()=>t(e),type:"button",children:u.jsx("img",{alt:e.name,src:e.url})}),u.jsxs("figcaption",{children:[u.jsx("span",{children:e.name}),u.jsxs("div",{className:"artifact-preview-actions",children:[u.jsx("button",{onClick:()=>t(e),type:"button",children:"Preview"}),u.jsx("a",{href:e.url,rel:"noreferrer",target:"_blank",children:"Open"}),u.jsx("button",{onClick:()=>n(e),type:"button",children:i?"Copied":"Copy"})]})]})]}):null}function aM(e,t){const n=new Map;for(const i of iM(e)){const l=y7(i);if(l){const o=v7(l).toLowerCase(),c=n.get(o);(!c||oM(l,c))&&n.set(o,l)}}return Array.from(n.values()).map(i=>lM(i,t)).filter(i=>i!==null)}function iM(e){const t=[],n=/!\[[^\]]*]\(([^)]+)\)/g,i=/\[[^\]]+]\(([^)]+)\)/g,l=/(?:artifact|preview|image|file)\s*:\s*(`?[^`\n]+?\.(?:svg|png|jpe?g|webp|gif)`?)/gim;for(const o of[n,i,l]){let c;for(;(c=o.exec(e))!==null;)t.push(c[1])}return t}function lM(e,t){const n=y7(e);if(!n||!sM(n))return null;const i=Xv(n,t.workspacePath);return{id:`${t.id}:${i}`,path:i,name:v7(i),url:Ne(`conversations/${t.id}/files?path=${encodeURIComponent(i)}`)}}function y7(e){const t=e.trim().replace(/^`+|`+$/g,"").replace(/[),.;:,。;:]+$/g,"");return t||null}function sM(e){return/\.(?:svg|png|jpe?g|webp|gif)$/i.test(e)}function v7(e){return e.replace(/\\/g,"/").split("/").filter(Boolean).pop()??e}function oM(e,t){return e.startsWith("/")&&!t.startsWith("/")?!0:e.length>t.length}function Ps(e){return e.trim()}function x7(e){return e.trim()}function a5(e){return e instanceof DOMException&&e.name==="AbortError"||e instanceof Error&&e.name==="AbortError"}function uM(e){return{a({children:t,href:n}){if(!n)return u.jsx(u.Fragment,{children:t});const i=/^[a-z][a-z\d+.-]*:/i.test(n),l=!i&&e?cM(n,e):null,o=l??n,c=i||!!l;return u.jsx("a",{className:"markdown-link",href:o,rel:c?"noreferrer":void 0,target:c?"_blank":void 0,children:t})},img(){return null},pre({children:t}){const n=fM(t);return n?G1(n.language)==="mermaid"?u.jsx(hM,{code:n.code}):u.jsx(gM,{code:n.code,language:n.language}):u.jsx("pre",{children:t})},table({children:t}){return u.jsx("div",{className:"markdown-table-wrap",children:u.jsx("table",{className:"markdown-table",children:t})})},td({align:t,children:n}){return u.jsx("td",{style:i5(t),children:n})},th({align:t,children:n}){return u.jsx("th",{style:i5(t),children:n})}}}function cM(e,t){if(!e||e.startsWith("#")||e.startsWith("/api/")||e.startsWith("?"))return null;const n=ZA(e,t.workspacePath);if(!n)return null;const i=n.line?`#L${n.line}${n.column?`C${n.column}`:""}`:"";return`${Ne(`conversations/${t.id}/files?path=${encodeURIComponent(n.path)}`)}${i}`}function i5(e){return e&&e!=="char"?{textAlign:e}:void 0}function Yl(e,t){const n=dM(e);return u.jsx(Ck,{components:uM(t),remarkPlugins:[BC,LT],rehypePlugins:[[gA,{trust:!1,strict:"ignore"}]],skipHtml:!0,children:n})}function dM(e){return e.replace(/([^\n])(```[^\n`]*(?:\r?\n|$))/g,`$1
|
|
374
|
-
$2`)}function fM(e){var o;const t=I.Children.toArray(e),n=t.length===1&&I.isValidElement(t[0])?t[0]:null;if(!n||n.type!=="code")return null;const l=((o=(n.props.className??"").match(/(?:^|\s)language-([^\s]+)/))==null?void 0:o[1])??"";return{code:Xp(n.props.children).replace(/\n$/,""),language:l}}function Xp(e){return e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"||typeof e=="bigint"?String(e):Array.isArray(e)?e.map(Xp).join(""):I.isValidElement(e)?Xp(e.props.children):""}const b7="github-light",np=new Map,rp=new Map;let ap=null,ip=null;const w7=new Set(["bash","css","diff","dockerfile","html","java","javascript","json","jsonc","jsx","markdown","python","shellscript","sql","toml","tsx","typescript","xml","yaml"]);function G1(e){const t=e.trim().toLowerCase().replace(/^\./,"");return{bash:"bash",cjs:"javascript",console:"shellscript",htm:"html",js:"javascript",jsx:"jsx",md:"markdown",mjs:"javascript",py:"python",rb:"ruby",shell:"bash",ts:"typescript",tsx:"tsx",yml:"yaml",zsh:"bash"}[t]??t}function k7(e){const t=G1(e);return!t||t==="text"||t==="txt"?"text":w7.has(t)?t:"text"}function hM({code:e}){const n=`seele-mermaid-${I.useId().replace(/[^a-zA-Z0-9_-]/g,"")}`,[i,l]=I.useState(!1),[o,c]=I.useState(()=>rp.get(e)??null),[f,h]=I.useState(null);I.useEffect(()=>{let y=!1,v;const k=rp.get(e);return k?(c(k),h(null),()=>{y=!0}):(h(null),c(null),mM(n,e).then(w=>{y||(v!==void 0&&window.clearTimeout(v),rp.set(e,w),c(w),h(null))},w=>{if(!y){const T=w instanceof Error?w.message:String(w);v=window.setTimeout(()=>{y||h(T)},uE)}}),()=>{y=!0,v!==void 0&&window.clearTimeout(v)})},[e,n]);async function m(){await navigator.clipboard.writeText(e),l(!0),window.setTimeout(()=>l(!1),1200)}return u.jsxs("figure",{className:`mermaid-block${f?" error":""}`,children:[u.jsx("span",{className:"code-block-kind",children:"mermaid"}),u.jsx("div",{className:"code-block-tools",children:u.jsx("button",{"aria-label":i?"Copied Mermaid source":"Copy Mermaid source",className:i?"copied":"",onClick:()=>void m(),title:i?"Copied":"Copy",type:"button",children:u.jsx(P1,{})})}),o?u.jsx("div",{className:"mermaid-diagram",dangerouslySetInnerHTML:{__html:o}}):f?u.jsxs("div",{className:"mermaid-error",children:[u.jsx("strong",{children:"Mermaid render failed"}),u.jsx("pre",{children:f}),u.jsx("code",{children:e})]}):u.jsx("div",{className:"mermaid-loading",children:"Rendering diagram..."})]})}async function mM(e,t){return(await(await pM()).render(e,t)).svg}function pM(){return ip||(ip=en(()=>import("./mermaid.core-BjW4FHdg.js").then(e=>e.bp),[],import.meta.url).then(e=>{const t=e.default;return t.initialize({startOnLoad:!1,securityLevel:"strict",theme:"base",themeVariables:{background:"#ffffff",primaryColor:"#f9fafa",primaryBorderColor:"#d8d9e8",primaryTextColor:"#0b0f16",lineColor:"#7a8294",secondaryColor:"#f5f5fb",tertiaryColor:"#ffffff",fontFamily:'Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'}}),t})),ip}function gM({code:e,language:t,reserveHeight:n=!1}){const[i,l]=I.useState(!1),[o,c]=I.useState(()=>{if(!o5(t))return null;const m=s5(e,t);return np.get(m)??null}),f=n?{"--code-block-min-height":`${bE(e)}px`}:void 0;I.useEffect(()=>{let m=!1;if(!o5(t))return c(null),()=>{m=!0};const y=s5(e,t),v=np.get(y);return v?(c(v),()=>{m=!0}):(c(null),CM(e,t).then(k=>{np.set(y,k),m||c(k)}).catch(k=>{console.warn("Failed to highlight code block",k),m||c(null)}),()=>{m=!0})},[e,t]);async function h(){await navigator.clipboard.writeText(e),l(!0),window.setTimeout(()=>l(!1),1200)}return u.jsxs("figure",{className:"code-block",style:f,children:[t?u.jsx("span",{className:"code-block-kind",children:t}):null,u.jsx("div",{className:"code-block-tools",children:u.jsx("button",{"aria-label":i?"Copied code block":"Copy code block",className:i?"copied":"",onClick:()=>void h(),title:i?"Copied":"Copy",type:"button",children:u.jsx(P1,{})})}),o?u.jsx("div",{className:"code-block-shiki",dangerouslySetInnerHTML:{__html:o}}):u.jsx("pre",{children:u.jsx("code",{children:e})})]})}function P1(){return u.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"13",viewBox:"0 0 24 24",width:"13",children:[u.jsx("rect",{height:"14",rx:"2",stroke:"currentColor",strokeWidth:"2",width:"14",x:"8",y:"8"}),u.jsx("path",{d:"M4 16V6a2 2 0 0 1 2-2h10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"})]})}function yM(){return u.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"16",viewBox:"0 0 24 24",width:"16",children:[u.jsx("circle",{cx:"6",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"2"}),u.jsx("circle",{cx:"18",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"2"}),u.jsx("circle",{cx:"12",cy:"19",r:"2",stroke:"currentColor",strokeWidth:"2"}),u.jsx("path",{d:"M6 7v1a6 6 0 0 0 6 6v3M18 7v1a6 6 0 0 1-6 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})]})}function S7(){return u.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"12",viewBox:"0 0 24 24",width:"12",children:[u.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2.2"}),u.jsx("path",{d:"M12 7v6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2.4"}),u.jsx("circle",{cx:"12",cy:"17",fill:"currentColor",r:"1.25"})]})}function vM(){return u.jsx("svg",{"aria-hidden":"true",fill:"none",height:"18",viewBox:"0 0 24 24",width:"18",children:u.jsx("path",{d:"M4 7h16M4 12h16M4 17h16",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"})})}function xM(){return u.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"14",viewBox:"0 0 24 24",width:"14",children:[u.jsx("path",{d:"M7 7h10M7 12h10M7 17h10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"}),u.jsx("circle",{cx:"4",cy:"7",fill:"currentColor",r:"1.4"}),u.jsx("circle",{cx:"4",cy:"12",fill:"currentColor",r:"1.4"}),u.jsx("circle",{cx:"4",cy:"17",fill:"currentColor",r:"1.4"})]})}function l5(){return u.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"14",viewBox:"0 0 24 24",width:"14",children:[u.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"2"}),u.jsx("path",{d:"M19 12a7.8 7.8 0 0 0-.1-1l2-1.5-2-3.4-2.4 1a8 8 0 0 0-1.8-1l-.3-2.6h-4l-.3 2.6a8 8 0 0 0-1.8 1l-2.4-1-2 3.4 2 1.5a7.8 7.8 0 0 0 0 2l-2 1.5 2 3.4 2.4-1a8 8 0 0 0 1.8 1l.3 2.6h4l.3-2.6a8 8 0 0 0 1.8-1l2.4 1 2-3.4-2-1.5c.1-.3.1-.7.1-1Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.7"})]})}function bM(){return u.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"14",viewBox:"0 0 24 24",width:"14",children:[u.jsx("rect",{height:"16",rx:"2.6",stroke:"currentColor",strokeWidth:"1.8",width:"18",x:"3",y:"4"}),u.jsx("path",{d:"m7 9 3 3-3 3M12.5 15h4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.9"})]})}function Gd(){return u.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"17",viewBox:"0 0 24 24",width:"17",children:[u.jsx("circle",{cx:"7",cy:"12",r:"2.4",stroke:"currentColor",strokeWidth:"1.8"}),u.jsx("circle",{cx:"17",cy:"7",r:"2.4",stroke:"currentColor",strokeWidth:"1.8"}),u.jsx("circle",{cx:"17",cy:"17",r:"2.4",stroke:"currentColor",strokeWidth:"1.8"}),u.jsx("path",{d:"m9.2 10.9 5.6-2.8M9.2 13.1l5.6 2.8",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.8"})]})}function Ef(){return u.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"13",viewBox:"0 0 24 24",width:"13",children:[u.jsx("path",{d:"m4 16-.8 4 4-.8L18.4 8 15.2 4.8 4 16Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"2"}),u.jsx("path",{d:"m13.8 6.2 3.2 3.2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"})]})}function wM(){return u.jsx("svg",{"aria-hidden":"true",fill:"none",height:"14",viewBox:"0 0 24 24",width:"14",children:u.jsx("path",{d:"M5 8v11h14V8M4 4h16v4H4zM9 12h6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function kM(){return u.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"14",viewBox:"0 0 24 24",width:"14",children:[u.jsx("path",{d:"M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"2"}),u.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"2"})]})}function SM(){return u.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"14",viewBox:"0 0 24 24",width:"14",children:[u.jsx("path",{d:"M3 3l18 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"}),u.jsx("path",{d:"M9.9 5.4A9.8 9.8 0 0 1 12 5c6 0 9.5 7 9.5 7a15.5 15.5 0 0 1-3 3.8M6.2 6.8C3.8 8.4 2.5 12 2.5 12s3.5 7 9.5 7a9.7 9.7 0 0 0 4-.8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})]})}function s5(e,t){return`${b7}:${k7(t)}:${e}`}function o5(e){const t=G1(e);return!!t&&w7.has(t)}async function CM(e,t){return(await jM()).codeToHtml(e,{lang:k7(t),theme:b7})}function jM(){return ap||(ap=TM()),ap}async function TM(){const[{createHighlighterCore:e},{createJavaScriptRegexEngine:t},{default:n},{default:i},{default:l},{default:o},{default:c},{default:f},{default:h},{default:m},{default:y},{default:v},{default:k},{default:w},{default:T},{default:E},{default:q},{default:R},{default:B},{default:F},{default:Y},{default:te}]=await Promise.all([en(()=>import("./core-0O0cuLx6.js"),[],import.meta.url),en(()=>import("./engine-javascript-DBd1bXLz.js"),[],import.meta.url),en(()=>import("./github-light-DAi9KRSo.js"),[],import.meta.url),en(()=>import("./bash-BELqPA7S.js").then(_=>_.b),[],import.meta.url),en(()=>import("./css-CLj8gQPS.js"),[],import.meta.url),en(()=>import("./diff-D97Zzqfu.js"),[],import.meta.url),en(()=>import("./dockerfile-BcOcwvcX.js"),[],import.meta.url),en(()=>import("./html-pp8916En.js"),__vite__mapDeps([0,1,2]),import.meta.url),en(()=>import("./java-CylS5w8V.js"),[],import.meta.url),en(()=>import("./javascript-wDzz0qaB.js"),[],import.meta.url),en(()=>import("./json-Cp-IABpG.js"),[],import.meta.url),en(()=>import("./jsonc-Des-eS-w.js"),[],import.meta.url),en(()=>import("./jsx-g9-lgVsj.js"),[],import.meta.url),en(()=>import("./markdown-Cvjx9yec.js"),[],import.meta.url),en(()=>import("./python-B6aJPvgy.js"),[],import.meta.url),en(()=>import("./bash-BELqPA7S.js").then(_=>_.s),[],import.meta.url),en(()=>import("./sql-CRqJ_cUM.js"),[],import.meta.url),en(()=>import("./toml-vGWfd6FD.js"),[],import.meta.url),en(()=>import("./tsx-COt5Ahok.js"),[],import.meta.url),en(()=>import("./typescript-BPQ3VLAy.js"),[],import.meta.url),en(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([3,4]),import.meta.url),en(()=>import("./yaml-Buea-lGh.js"),[],import.meta.url)]);return e({engine:t(),themes:[n],langs:[i,l,o,c,f,h,m,y,v,k,w,T,E,q,R,B,F,Y,te]})}async function u5(){const e=Ne("conversations"),t=await fetch(e);return await He(t,{url:e}),(await t.json()).conversations}async function AM(){const e=Ne("workspace-states"),t=await fetch(e);return await He(t,{url:e}),(await t.json()).workspaces}async function c5(){const e=Ne("collaboration/topics"),t=await fetch(e);return await He(t,{url:e}),(await t.json()).topics}async function Ld(e){const t=Ne(`collaboration/topics/${e}/messages?limit=100`),n=await fetch(t);return await He(n,{url:t}),(await n.json()).messages}async function EM(e){const t=Ne("collaboration/topics"),n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await He(n,{method:"POST",url:t}),(await n.json()).topic}async function NM(e,t){const n=Ne(`collaboration/topics/${e}`),i=await fetch(n,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return await He(i,{method:"PATCH",url:n}),(await i.json()).topic}async function MM(e,t){const n=Ne(`collaboration/topics/${e}/archive`),i=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expectedVersion:t})});return await He(i,{method:"POST",url:n}),(await i.json()).topic}async function zM(e){const t=Ne(`conversations/${e}/read`),n=await fetch(t,{method:"POST"});await He(n,{method:"POST",url:t})}async function d5(){const e=Ne("workspace-groups"),t=await fetch(e);return await He(t,{url:e}),(await t.json()).groups}async function DM(e){const t=Ne("workspace-groups"),n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:e})});return await He(n,{method:"POST",url:t}),(await n.json()).group}async function RM(e,t){const n=Ne(`workspace-groups/${e}`),i=await fetch(n,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return await He(i,{method:"PATCH",url:n}),(await i.json()).group}async function OM(e){const t=Ne(`workspace-groups/${e}`),n=await fetch(t,{method:"DELETE"});return await He(n,{method:"DELETE",url:t}),await n.json()}async function _M(){const e=Ne("settings/environment"),t=await fetch(e);return await He(t,{url:e}),(await t.json()).variables}async function BM(e){const t=Ne(`conversations/${e}/settings/environment`),n=await fetch(t);return await He(n,{url:t}),(await n.json()).variables}async function IM(e){const t=Ne(`conversations/${e}/knowledge`),n=await fetch(t);return await He(n,{url:t}),(await n.json()).items}async function LM(){const e=Ne("settings/runtime"),t=await fetch(e);return await He(t,{url:e}),(await t.json()).settings}async function qM(){const e=Ne("settings/deployment"),t=await fetch(e);return await He(t,{url:e}),(await t.json()).settings}async function UM(){const e=Ne("diagnostics"),t=await fetch(e);return await He(t,{url:e}),await t.json()}async function HM(){const e=Ne("settings/runtime/codex"),t=await fetch(e);return await He(t,{url:e}),await t.json()}async function f5(){const e=Ne("settings/runtime/accounts"),t=await fetch(e);await He(t,{url:e});const n=await t.json();return Xs(),n}async function lp(e=!1){const t=Ne(`settings/runtime/accounts/refresh${e?"?force=1":""}`),n=await fetch(t,{method:"POST"});await He(n,{method:"POST",url:t});const i=await n.json();return Xs(),i}async function FM(e){const t=Ne("settings/runtime/accounts"),n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})});await He(n,{method:"POST",url:t});const i=await n.json();return i.login.status==="succeeded"&&Xs(),i.login}async function $M(e){const t=Ne(`settings/runtime/accounts/login/${e}`),n=await fetch(t);return await He(n,{url:t}),(await n.json()).login}async function GM(e){const t=Ne(`settings/runtime/accounts/login/${e}/cancel`),n=await fetch(t,{method:"POST"});return await He(n,{method:"POST",url:t}),(await n.json()).login}async function PM(e,t){const n=Ne(`settings/runtime/accounts/${e}`),i=await fetch(n,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t})});await He(i,{method:"PATCH",url:n});const l=await i.json();return Xs(),l.account}async function VM(e){const t=Ne(`settings/runtime/accounts/${e}`),n=await fetch(t,{method:"DELETE"});await He(n,{method:"DELETE",url:t}),Xs()}async function YM(e){const t=Ne(`settings/runtime/accounts/${e}/switch`),n=await fetch(t,{method:"POST"});await He(n,{method:"POST",url:t});const i=await n.json();return Xs(),i}async function WM(e=!0){const t=Ne(`settings/runtime/models?refresh=${e?"1":"0"}`),n=await fetch(t);return await He(n,{url:t}),await n.json()}async function XM(e=!1){const t=Ne(`settings/runtime/codex/update${e?"?refreshLatest=1":""}`),n=await fetch(t);return await He(n,{url:t}),await n.json()}async function KM(){const e=Ne("settings/runtime/codex/update"),t=await fetch(e,{method:"POST"});return await He(t,{method:"POST",url:e}),(await t.json()).job}async function QM(e){const t=Ne(`conversations/${e}/settings/runtime`),n=await fetch(t);return await He(n,{url:t}),(await n.json()).settings}async function ZM(){const e=Ne("settings/memory"),t=await fetch(e);return await He(t,{url:e}),await t.json()}async function JM(e){const t=Ne("settings/runtime"),n=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await He(n,{method:"PUT",url:t}),(await n.json()).settings}async function ez(e){const t=Ne("settings/deployment"),n=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await He(n,{method:"PUT",url:t}),(await n.json()).settings}async function h5(e,t){const n=Ne(`conversations/${e}/settings/runtime`),i=await fetch(n,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return await He(i,{method:"PUT",url:n}),await i.json()}async function m5(e,t){const n=Ne(`conversations/${e}/runtime/reset`),i=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});await He(i,{method:"POST",url:n});const l=(await i.json()).job;return j7(e,l)}async function C7(e){const t=Ne(`conversations/${e}/runtime/reset`),n=await fetch(t);return await He(n,{url:t}),(await n.json()).job}async function j7(e,t){let n=t;const i=Date.now()+1800*1e3;for(;n.status==="running";){if(Date.now()>=i)throw new Error("Full-history reset is still running after 30 minutes. Reopen Console to check the workspace before retrying.");await new Promise(o=>window.setTimeout(o,1e3));const l=await C7(e);if(!l||l.id!==n.id)throw new Error("The runtime reset job is no longer available.");n=l}if(n.status==="failed"||n.status==="cancelled"||!n.result)throw new Error(n.error??"Full-history reset failed.");return n.result}async function p5(e){const t=Ne(`conversations/${e}/runtime/reset-preview`),n=await fetch(t);return await He(n,{url:t}),await n.json()}async function tz(e,t){const n=Ne(`conversations/${e}/runtime/reset-selection`),i=await fetch(n,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});await He(i,{method:"PUT",url:n})}async function nz(e){const t=Ne(`conversations/${e}/runtime/thread-read`),n=await fetch(t);return await He(n,{url:t}),(await n.json()).result}async function rz(e){const t=Ne(`conversations/${e}/runtime/token-usage`),n=await fetch(t);await He(n,{url:t});const i=await n.json();return i.event?I7(i.event):null}async function az(e){const t=Ne(`conversations/${e}/runtime/additional-context`),n=await fetch(t);return await He(n,{url:t}),await n.json()}async function iz(e){const t=Ne(`conversations/${e}/runtime/compactions`),n=await fetch(t);return await He(n,{url:t}),(await n.json()).compactions}function lz(e,t,n){return{model:e.model===t.model?null:e.model,reasoningEffort:_A(e.reasoningEffort,t.reasoningEffort,(n==null?void 0:n.sources.reasoningEffort)==="workspace"),fastMode:e.fastMode===t.fastMode?null:e.fastMode,sandbox:e.sandbox===t.sandbox?null:e.sandbox}}function sz(e){return{kind:e.kind,name:e.name,description:e.description,purpose:e.purpose,attention:e.attention,refreshPolicy:e.refreshPolicy,status:e.status,sourceClues:uz(e.sourceCluesText),requiredEnv:cz(e.requiredEnvText)}}function oz(e){return{id:e.id,kind:e.kind,name:e.name,description:e.description,purpose:e.purpose,attention:e.attention,refreshPolicy:e.refreshPolicy,status:e.status,sourceCluesText:e.sourceClues.map(t=>`${t.type}: ${t.value}`).join(`
|
|
375
|
-
`),requiredEnvText:e.fetch.requiredEnv.map(t=>t.description?`${t.key} - ${t.description}`:t.key).join(`
|
|
376
|
-
`)}}function uz(e){const t=new Date().toISOString();return e.split(/\r?\n/).map(n=>n.trim()).filter(Boolean).map(n=>{const i=n.match(/^([a-zA-Z][\w-]{0,31})\s*:\s*(.+)$/);return{type:i?i[1].toLowerCase():"text",value:i?i[2].trim():n,providedBy:"user",providedAt:t}})}function cz(e){return e.split(/\r?\n/).map(t=>t.trim()).filter(Boolean).map(t=>{const[n,...i]=t.split(/\s+-\s+/);return{key:n.trim().toUpperCase(),description:i.join(" - ").trim()}}).filter(t=>/^[A-Z_][A-Z0-9_]*$/.test(t.key))}function g5(e,t){const n=y5(t.attention)-y5(e.attention);return n!==0?n:t.updatedAt.localeCompare(e.updatedAt)}function y5(e){return e==="watch"?2:e==="tracked"?1:0}function Ic(e){return e.map(t=>({key:t.key??"",value:t.value??"",updatedAt:t.updatedAt}))}function dz(e){return e?/^[a-z_][a-z0-9_.-]*$/.test(e)?null:"Key must start with a lowercase English letter or underscore, and may contain lowercase letters, numbers, dots, underscores, and hyphens.":"Key is required."}function fz(e){return Ic(e).filter(t=>t.key.trim()&&t.value.trim()).map(t=>`${t.key.trim()}: ${t.value.trim()}`).join(`
|
|
377
|
-
`)}async function hz(e){const t=Ne("settings/memory"),n=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return await He(n,{method:"PUT",url:t}),await n.json()}async function mz(e,t,n){const i=Ne("settings/environment"),l=await fetch(i,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({description:n,key:e,value:t})});return await He(l,{method:"PUT",url:i}),(await l.json()).variable}async function pz(e,t,n,i){const l=Ne(`conversations/${e}/settings/environment`),o=await fetch(l,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({description:i,key:t,value:n})});return await He(o,{method:"PUT",url:l}),await o.json()}async function gz(e){const t=Ne(`settings/environment/${encodeURIComponent(e)}/reveal`),n=await fetch(t);return await He(n,{url:t}),(await n.json()).variable.value}async function yz(e,t){const n=Ne(`conversations/${e}/settings/environment/${encodeURIComponent(t)}/reveal`),i=await fetch(n);return await He(i,{url:n}),(await i.json()).variable.value}async function vz(e){const t=Ne(`settings/environment/${encodeURIComponent(e)}`),n=await fetch(t,{method:"DELETE"});await He(n,{method:"DELETE",url:t})}async function xz(e,t){const n=Ne(`conversations/${e}/settings/environment/${encodeURIComponent(t)}`),i=await fetch(n,{method:"DELETE"});return await He(i,{method:"DELETE",url:n}),(await i.json()).conversation}async function bz(e,t){const n=Ne(`conversations/${e}/knowledge`),i=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return await He(i,{method:"POST",url:n}),(await i.json()).item}async function wz(e,t,n){const i=Ne(`conversations/${e}/knowledge/${encodeURIComponent(t)}`),l=await fetch(i,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});return await He(l,{method:"PATCH",url:i}),(await l.json()).item}async function kz(e,t){const n=Ne(`conversations/${e}/knowledge/${encodeURIComponent(t)}`),i=await fetch(n,{method:"DELETE"});await He(i,{method:"DELETE",url:n})}async function Sz(){const e=Ne("meta"),t=await fetch(e);return await He(t,{url:e}),await t.json()}async function Cz(e){const t=Ne(`settings/runtime/rate-limits?refresh=${e?"1":"0"}`),n=await fetch(t);return await He(n,{url:t}),(await n.json()).usage??null}async function jz(e,t){const n=Ne("conversations"),i=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:e,groupId:t})});return await He(i,{method:"POST",url:n}),(await i.json()).conversation}async function Tz(e){const t=Ne(`conversations/${e}/complex-task`),n=await fetch(t);return await He(n,{url:t}),(await n.json()).task}async function Az(e,t){const n=Ne(`conversations/${e}/complex-tasks/${encodeURIComponent(t)}`),i=await fetch(n);return await He(i,{url:n}),(await i.json()).task}async function Ez(e,t){const n=Ne(`conversations/${e}/complex-task/${t}`),i=await fetch(n,{method:"POST"});return await He(i,{method:"POST",url:n}),(await i.json()).task}async function Nz(e,t,n){const i=Ne(`conversations/${e}/clone`),l=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,groupId:n})});return await He(l,{method:"POST",url:i}),await l.json()}async function Mz(e){const t=Ne(`conversations/${e}/clone/retry`),n=await fetch(t,{method:"POST"});return await He(n,{method:"POST",url:t}),await n.json()}async function sp(e,t={}){const n=new URLSearchParams;n.set("limit",String(t.limit??Kv)),t.before&&n.set("before",t.before);const i=Ne(`conversations/${e}?${n}`),l=await fetch(i);return await He(l,{url:i}),(await l.json()).conversation}async function zz(e,t){const n=Ne(`conversations/${e}/turns/${t}/history-events`),i=await fetch(n);return await He(i,{url:n}),(await i.json()).events}async function qd(e,t){const n=Ne(`conversations/${e}`),i=await fetch(n,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return await He(i,{method:"PATCH",url:n}),(await i.json()).conversation}async function Dz(e){const t=Ne(`conversations/${e}`),n=await fetch(t,{method:"DELETE"});await He(n,{method:"DELETE",url:t})}function Rz(e){return e.title==="Phase boundary recommended"||e.title==="Long run in progress"}function T7(e){return e.length<=3?e.join(", "):`${e.slice(0,3).join(", ")} +${e.length-3}`}function Oz(e,t){if(e.event==="server.error"||e.event==="client.error")return{id:e.id,kind:"error",title:"Error",body:tD(e.data),createdAt:e.createdAt??new Date().toISOString()};if(e.event==="server.collaboration.message_staged"||e.event==="server.collaboration.message_sent"||e.event==="server.collaboration.message_rejected"){const o=Ee(e.data),c=$e(o.toolCallId),f=typeof o.controlIndex=="number"?o.controlIndex:null;if(c||f!==null){const h=e.event==="server.collaboration.message_staged",m=e.event==="server.collaboration.message_sent",y=$e(o.audience),v=$e(o.recipientWorkspaceId),k=v?[v]:Array.isArray(o.recipientWorkspaceIds)?o.recipientWorkspaceIds.filter(q=>typeof q=="string"):Array.isArray(o.recipients)?o.recipients.filter(q=>typeof q=="string"):[],w=k.filter(q=>q!=="ALL").map(q=>t.get(q)).filter(q=>!!q);let T="Topic";w.length>0?T=T7(w):k.length===1?T=k[0]==="ALL"?"Topic participants":Xl(k[0]):k.length>1?T=`${k.length} workspaces`:y==="public"||y==="all"?T="Topic participants":y==="owner"&&(T="Topic owner");const E=$e(o.topicId);return{id:e.id,kind:"collaboration",title:`Send to ${T}`,body:E?`Topic ${Xl(E)}`:"Topic",createdAt:e.createdAt??new Date().toISOString(),itemId:c||`legacy-topic-message:${f}`,meta:h?"pending send":m?"done":"failed",output:h||m?$e(o.contentMarkdown)||void 0:$e(o.reason)||void 0,topicAction:"send",topicRecipientLabel:T,topicMessageContent:(h||m)&&$e(o.contentMarkdown)||void 0}}}if(e.event==="codex.input_request"||e.event==="codex.input_or_approval_request"){const o=Ee(e.data);if(e.event==="codex.input_request"||o.method==="item/tool/requestUserInput"){const c=Ee(o.params),h=(Array.isArray(c.questions)?c.questions:[]).map(m=>{const y=Ee(m),v=typeof y.question=="string"?y.question:"Please provide the missing information.",k=Array.isArray(y.options)?y.options.map(w=>{const T=Ee(w);return typeof T.label=="string"?`- ${T.label}${typeof T.description=="string"?`: ${T.description}`:""}`:""}).filter(Boolean).join(`
|
|
378
|
-
`):"";return k?`${v}
|
|
379
|
-
|
|
380
|
-
${k}`:v}).join(`
|
|
381
|
-
|
|
382
|
-
`);return{id:e.id,kind:"activity",title:"Seele needs input",body:h||"Please answer in the main input box to continue.",createdAt:e.createdAt??new Date().toISOString(),meta:"waiting for reply"}}}if(e.event==="server.agent_action.staged"){const o=Ee(e.data);if($e(o.actionType)==="seele_workspace_change"){const f=Ee(o.payload),h=Ee(f.payload),m=$e(f.type)||"workspace";return{id:e.id,kind:"workspaceChange",title:"Preparing workspace change",body:D7(m,h),createdAt:e.createdAt??new Date().toISOString(),itemId:$e(o.toolCallId)||void 0,meta:"pending turn",workspaceChangeType:m,workspaceChangePayload:h}}const c=EA(o);return{id:e.id,kind:"activity",title:c.title,body:c.detail,createdAt:e.createdAt??new Date().toISOString(),itemId:$e(o.toolCallId)||void 0,meta:c.meta}}if(e.event==="server.workspace_inbox.offered"){const o=AA(e.data);return{id:e.id,kind:"activity",title:o.title,body:o.detail,createdAt:e.createdAt??new Date().toISOString(),meta:o.meta}}if(e.event==="codex.dynamic_tool_request"){const o=Ee(e.data),c=Ee(o.params),f=$e(c.tool)||"dynamic tool",h=Ee(c.arguments);return{id:e.id,kind:f==="seele_topics"?"collaboration":f==="seele_workspace_change"?"workspaceChange":"activity",title:M7(f,!1,h),body:z7(f,h),createdAt:e.createdAt??new Date().toISOString(),itemId:$e(c.callId)||void 0,meta:"running",topicAction:f==="seele_topics"?A7(h.action):void 0,workspaceChangeType:f==="seele_workspace_change"&&$e(h.type)||void 0,workspaceChangePayload:f==="seele_workspace_change"?Ee(h.payload):void 0}}if(e.event==="server.workspace_change.proposed"||e.event==="server.responsibility.proposed"){const o=Ee(e.data),c=Ee(o.payload),f=$e(c.content)||$e(o.responsibility);return{id:e.id,kind:"workspaceChange",title:"Workspace change proposed",body:f,createdAt:e.createdAt??new Date().toISOString(),itemId:$e(o.toolCallId)||void 0,meta:"pending",responsibilityProposalId:String(e.id),workspaceChangeProposalId:String(e.id),responsibilityReason:typeof o.reason=="string"?o.reason:void 0,responsibilityAnchorOffset:typeof o.anchorOffset=="number"?o.anchorOffset:void 0,workspaceChangeType:$e(o.changeType)||"responsibility",workspaceChangePayload:Object.keys(c).length>0?c:{content:f}}}if(e.event==="server.knowledge.proposed"){const o=Ee(e.data),c=Ee(o.knowledge);return{id:e.id,kind:"knowledge",title:o.action==="update"?"Knowledge update proposed":"Knowledge creation proposed",body:JSON.stringify(c,null,2),createdAt:e.createdAt??new Date().toISOString(),meta:"pending",knowledgeProposalId:String(e.id),knowledgeAnchorOffset:typeof o.anchorOffset=="number"?o.anchorOffset:void 0}}if(e.event==="server.complex_task.plan_updated"){const o=Ee(e.data),c=Ee(o.task),f=Ee(c.currentPlan),h=Ee(o.update),m=$e(h.operation),y=typeof f.version=="number"?`v${f.version}`:"updated",v=typeof h.changeCount=="number"?h.changeCount:1;return{id:e.id,kind:"file",title:m==="edit"?"Plan updated":"Plan rewritten",body:`${v} change${v===1?"":"s"}`,createdAt:e.createdAt??new Date().toISOString(),linkedTaskId:$e(c.id)||void 0,meta:y}}if(e.event==="server.complex_task.plan_update_failed"){const o=Ee(e.data);return{id:e.id,kind:"error",title:"Plan update failed",body:$e(o.reason)||"The proposed Plan change could not be applied.",createdAt:e.createdAt??new Date().toISOString(),meta:"not applied"}}if(e.event==="runtime.command.started"||e.event==="runtime.command.completed"){const o=Ee(e.data),c=e.event==="runtime.command.completed",f=typeof o.exitCode=="number"?o.exitCode:null;return{id:e.id,kind:"command",title:c?f!==null&&f!==0?"Command failed":"Command completed":"Seele ran command",body:typeof o.command=="string"?Pd(o.command):"command",createdAt:e.createdAt??new Date().toISOString(),itemId:typeof o.itemId=="string"?o.itemId:void 0,meta:c?f!==null?`exit ${f}`:"done":"running",output:c&&typeof o.output=="string"&&o.output?o.output:void 0}}if(e.event==="runtime.compaction.started"||e.event==="runtime.compaction.completed"){const o=Ee(e.data),c=e.event==="runtime.compaction.completed";return{id:e.id,kind:"activity",title:c?"Context compacted":"Compacting context",body:Kp(o,c),createdAt:e.createdAt??new Date().toISOString(),itemId:typeof o.itemId=="string"?o.itemId:void 0,meta:c?"done":"running"}}if(e.event==="codex.server_request"){const o=Ee(e.data);if(o.method==="item/commandExecution/requestApproval"){const c=eD(o.requestId),f=Ee(o.params),h=typeof f.command=="string"?f.command:"command";return{id:e.id,kind:"command",title:"Command waiting for approval",body:h,createdAt:e.createdAt??new Date().toISOString(),itemId:typeof f.itemId=="string"?f.itemId:void 0,meta:"approval",approvalRequestId:c??void 0,approvalTurnId:typeof e.turnId=="string"?e.turnId:typeof f.turnId=="string"?f.turnId:void 0,approvalReason:typeof f.reason=="string"?f.reason:void 0}}}if(e.event!=="codex.notification")return null;const n=Ee(e.data),i=n.method,l=Ee(n.params);if(i==="item/started"){const o=Ee(l.item);if(o.type==="commandExecution"){const f=o.status==="inProgress"&&o.processId===null;return{id:e.id,kind:"command",title:f?"Command waiting for approval":"Seele ran command",body:Pd(o.command),createdAt:e.createdAt??new Date().toISOString(),itemId:typeof o.id=="string"?o.id:void 0,meta:f?"approval":"running"}}const c=Fp(o);if(c.length>0)return{id:e.id,kind:"file",title:"File change",body:c[0].path,createdAt:e.createdAt??new Date().toISOString(),itemId:$e(o.id)||void 0,meta:"started",fileChanges:c}}if(i==="item/completed"){const o=Ee(l.item);if(o.type==="commandExecution"){const f=typeof o.exitCode=="number"?o.exitCode:null;return{id:e.id,kind:"command",title:f!==null&&f!==0?"Command failed":"Command completed",body:Pd(o.command),createdAt:e.createdAt??new Date().toISOString(),itemId:typeof o.id=="string"?o.id:void 0,meta:f!==null?`exit ${f}`:"done",output:typeof o.aggregatedOutput=="string"&&o.aggregatedOutput?o.aggregatedOutput:void 0}}const c=Fp(o);if(c.length>0)return{id:e.id,kind:"file",title:"File changed",body:c[0].path,createdAt:e.createdAt??new Date().toISOString(),itemId:$e(o.id)||void 0,meta:"done",fileChanges:c}}return i==="item/commandExecution/outputDelta"?{id:e.id,kind:"command",title:"Command output",body:typeof l.itemId=="string"?l.itemId:"command",createdAt:e.createdAt??new Date().toISOString(),itemId:typeof l.itemId=="string"?l.itemId:void 0,meta:"running",output:typeof l.delta=="string"?l.delta:void 0}:null}function _z(e){if(e.event!=="codex.notification")return null;const t=Ee(e.data),n=t.method;if(n!=="item/started"&&n!=="item/completed")return null;const i=Ee(t.params),l=Ee(i.item),o=typeof l.type=="string"?l.type:"item";if(N7(o)||q7(l))return null;const c=n==="item/completed",f=Ee(l.arguments),h=o==="dynamicToolCall"&&typeof l.tool=="string"?l.tool:null;return{id:e.id,kind:h==="seele_topics"?"collaboration":h==="seele_workspace_change"?"workspaceChange":"activity",title:h?M7(h,c,f):c?`Finished ${Wl(o)}`:`Working on ${Wl(o)}`,body:h?z7(h,f):R7(l,o),createdAt:e.createdAt??new Date().toISOString(),itemId:typeof l.id=="string"?l.id:void 0,meta:h==="seele_wakeup"&&c?"after turn":c?Iz(l):"running",topicAction:h==="seele_topics"?A7(f.action):void 0,workspaceChangeType:h==="seele_workspace_change"&&$e(f.type)||void 0,workspaceChangePayload:h==="seele_workspace_change"?Ee(f.payload):void 0}}function A7(e){return e==="read"||e==="history"||e==="send"?e:void 0}function Bz(e){if(B7(e)||["server.turn","server.done","server.notification.sent","server.notification.failed","server.approval.decision","server.workspace_change.decision","server.responsibility.decision","server.knowledge.decision","server.collaboration.topic_created"].includes(e.event))return null;const t=TA(e);return t?{id:e.id,kind:"activity",title:_7(t),body:E7(e.data),createdAt:e.createdAt??new Date().toISOString(),meta:"event"}:null}function E7(e){const t=Ee(e);for(const n of["title","message","description","status","reason"])if(typeof t[n]=="string"&&t[n].trim())return O7(t[n].trim(),180);return"Event details are available"}function N7(e){return["agentMessage","assistantMessage","commandExecution","message","reasoning","plan","systemMessage","userMessage"].includes(e)}function Iz(e){return e.status==="failed"||e.status==="error"?"failed":e.status==="cancelled"||e.status==="canceled"?"stopped":"done"}function Wl(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[-_]+/g," ").toLowerCase()}function M7(e,t,n){if(e==="seele_topics")switch($e(n.action)){case"read":return"Read messages";case"history":return"Review history";case"send":return"Send message";default:return t?"Operation completed":"Working"}if(e==="seele_wakeup"){const l=$e(n.action)==="cancel";return t?l?"Wakeup cancellation requested":"Wakeup requested":l?"Requesting wakeup cancellation":"Requesting wakeup"}if(e==="seele_workspace_change")return t?"Workspace change proposed":"Preparing workspace change";const i=Wl(e);return t?`Finished ${i}`:`Running ${i}`}function z7(e,t){if(e==="seele_topics"){const n=$e(t.topicId);return n?`Topic ${Xl(n)}`:"Topic"}if(e==="seele_wakeup")return $e(t.instruction)||($e(t.action)==="cancel"?"Cancel the current wakeup":"Schedule the current wakeup");if(e==="seele_workspace_change"){const n=$e(t.type)||"workspace";return D7(n,Ee(t.payload))}return Wl(e)}function D7(e,t){return e==="responsibility"?$e(t.content)||"Workspace responsibility":JSON.stringify(t,null,2)}function R7(e,t){for(const n of["title","name","description","text","summary"])if(typeof e[n]=="string"&&e[n].trim())return Xo(e[n].trim(),160);return typeof e.id=="string"?`${Wl(t)} ${Xl(e.id)}`:Wl(t)}function Lz(e){var n;if(e.meta==="running")return"running";if(e.meta==="approval")return"approval";if(e.meta==="stopped")return"stopped";const t=(n=e.meta)==null?void 0:n.match(/^exit\s+(-?\d+)$/);return t?Number(t[1])===0?"done":"failed":"done"}function qz(e,t){return t==="running"?"running":t==="approval"?"approval":t==="stopped"?"stopped":t==="failed"?e.meta??"failed":"ok"}function Uz(e,t){var i;if(t==="running")return"Command is still running.";if(t==="approval")return"Waiting for approval before running.";if(t==="stopped")return"Command was stopped.";const n=(i=e.meta)==null?void 0:i.match(/^exit\s+(-?\d+)$/);return n?`Exit code: ${n[1]}`:t==="failed"?"Command failed.":"Command completed."}function Hz(e,t){const n=e.split(/\r?\n/),l=n.slice(0,t).join(`
|
|
383
|
-
`);return n.length>t?`${l}
|
|
384
|
-
...`:l}function Fz(e,t){return e?e.split(/\r?\n/).filter(n=>n.trim()).length>t:!1}function lf(e){return/^call_[A-Za-z0-9]+$/.test(e)||e==="command"}function $z(e){const t=e.trim();return!t||t.includes(`
|
|
385
|
-
`)?null:Xo(t,120)}function Xo(e,t){if(e.length<=t)return e;const n=Math.max(8,Math.floor((t-3)/2));return`${e.slice(0,n)}...${e.slice(-n)}`}function O7(e,t){return e.length<=t?e:`${e.slice(0,Math.max(1,t-3))}...`}function _7(e){const n=(e.split(/[./]/).filter(Boolean).pop()??e).replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim();return n?n.charAt(0).toUpperCase()+n.slice(1):"System event"}function B7(e){const t=e.createdAt??new Date().toISOString();if(e.event==="server.status"){const o=Ee(e.data);if(o.status==="initialized")return{id:e.id,title:"Connected to Seele runtime",createdAt:t,tone:"done"};if(o.status==="turn_started")return{id:e.id,title:"Turn started",createdAt:t,tone:"running"};if(o.status==="archived_thread_replaced")return{id:e.id,title:"Started a fresh runtime thread",detail:typeof o.archivedThreadId=="string"?`archived ${Xl(o.archivedThreadId)}`:void 0,createdAt:t,tone:"warning"}}if(e.event==="server.stopped"||e.event==="server.stop")return{id:e.id,title:"Stopped current run",createdAt:t,tone:"error"};if(e.event==="runtime.worker_stale")return{id:e.id,title:"Runtime appears stalled",detail:"No runtime signal for a while",createdAt:t,tone:"warning"};if(e.event==="runtime.worker_recovered")return{id:e.id,title:"Runtime resumed",createdAt:t,tone:"running"};if(e.event==="runtime.compaction.started"){const o=Ee(e.data);return{id:e.id,title:"Codex compacting context",detail:Kp(o,!1),createdAt:t,tone:"running"}}if(e.event==="runtime.compaction.completed"){const o=Ee(e.data);return{id:e.id,title:"Codex context compacted",detail:Kp(o,!0),createdAt:t,tone:"done"}}if(e.event==="server.turn.long_running")return{id:e.id,title:"Long run in progress",detail:"Consider splitting into a wakeup phase",createdAt:t,tone:"warning"};if(e.event==="server.turn.phase_boundary_recommended"){const o=Ee(e.data);return{id:e.id,title:"Phase boundary recommended",detail:typeof o.operationCount=="number"?`${o.operationCount} operations in this turn`:"Many operations in this turn",createdAt:t,tone:"warning"}}if(e.event==="server.wakeup.started"){const o=Ee(e.data);return{id:e.id,title:"Scheduled wakeup resumed",detail:typeof o.instruction=="string"?Xo(o.instruction,96):void 0,createdAt:t,tone:"running"}}if(e.event==="codex.server_request"){const o=Ee(e.data);if(o.method==="item/commandExecution/requestApproval"){const c=Ee(o.params);return{id:e.id,title:"Waiting for approval",detail:typeof c.command=="string"?Xo(c.command,96):"Command needs confirmation",createdAt:t,tone:"warning"}}}if(e.event!=="codex.notification")return null;const n=Ee(e.data),i=n.method,l=Ee(n.params);if(i==="item/started"||i==="item/completed"){const o=Ee(l.item),c=typeof o.type=="string"?o.type:"item",f=i==="item/completed";if(c==="commandExecution")return{id:e.id,title:f?"Command completed":"Running command",detail:Xo(Pd(o.command),96),createdAt:t,tone:f?"done":"running"};if(c==="contextCompaction")return{id:e.id,title:f?"Codex context compacted":"Codex compacting context",detail:f?void 0:"Current runtime thread is being compacted",createdAt:t,tone:f?"done":"running"};const h=q7(o);if(h)return{id:e.id,title:f?"File update finished":"Editing file",detail:Xo(h,96),createdAt:t,tone:f?"done":"running"};if(!N7(c))return{id:e.id,title:f?`Finished ${Wl(c)}`:`Working on ${Wl(c)}`,detail:R7(o,c),createdAt:t,tone:f?"done":"running"}}if(i==="thread/status/changed"){const o=Ee(l.status),c=Array.isArray(o.activeFlags)?o.activeFlags:[];if(o.type==="active"&&c.some(f=>f==="waitingOnApproval"))return{id:e.id,title:"Waiting for approval",detail:"Command needs confirmation",createdAt:t,tone:"warning"}}if(i==="turn/started")return{id:e.id,title:"Seele started working",createdAt:t,tone:"running"};if(i==="turn/completed"){const o=Ee(l.turn);return{id:e.id,title:"Turn completed",detail:typeof o.durationMs=="number"?ru(o.durationMs):void 0,createdAt:t,tone:"done"}}if(i==="hook/started"||i==="hook/completed"){const o=Ee(l.run),c=typeof o.eventName=="string"?o.eventName:"hook";return{id:e.id,title:i==="hook/started"?`Running ${x5(c)}`:`Finished ${x5(c)}`,detail:typeof o.durationMs=="number"?ru(o.durationMs):void 0,createdAt:t,tone:i==="hook/started"?"running":"done"}}return null}function Kp(e,t){const n=sf(e.before),i=sf(e.after),l=[];if(t){const o=typeof e.durationMs=="number"?e.durationMs:null;l.push(o===null?"Completed":`Completed in ${ru(o)}`)}else l.push("Codex triggered");if(n&&i){l.push(`context ${qs(n)} → ${qs(i)}`);const o=n.totalTokens-i.totalTokens;o>0&&l.push(`released ~${V1(o)} tokens`)}else n&&l.push(`context ${qs(n)}`);return l.join(" · ")}function Gz(e){const t=sf(e.before),n=sf(e.after),i=t&&n?t.totalTokens-n.totalTokens:null;let l="Unavailable";return t&&n?l=`${qs(t)} → ${qs(n)}`:t?l=`${qs(t)} → unavailable`:n&&(l=`unavailable → ${qs(n)}`),[{label:"Trigger",value:e.trigger==="codex"?"Codex automatic":e.trigger??"Unavailable"},{label:"Duration",value:e.durationMs===null?"Unavailable":ru(e.durationMs)},{label:"Context",value:l},{label:"Released",value:i===null?"Unavailable":i>0?`~${V1(i)} tokens`:"No decrease observed"}]}function sf(e){const t=Ee(e);return typeof t.totalTokens=="number"?{totalTokens:t.totalTokens,modelContextWindow:typeof t.modelContextWindow=="number"?t.modelContextWindow:null}:null}function qs(e){return e.modelContextWindow&&e.modelContextWindow>0?`${Math.round(e.totalTokens/e.modelContextWindow*100)}%`:`${V1(e.totalTokens)} tokens`}function V1(e){return new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}).format(Math.max(0,e))}function Pz(e){let t=null;for(const n of e)for(const i of n.events){const l=Wz(i);l&&(!t||Date.parse(l.updatedAt)>Date.parse(t.updatedAt))&&(t=l)}return t}function v5(...e){return e.reduce((t,n)=>n&&(!t||Date.parse(n.updatedAt)>Date.parse(t.updatedAt))?n:t,null)}function Vz(e){let t=null;for(const n of e){const i=I7(n);i&&(!t||Bc(n,t)>0)&&(t=i)}return t}function I7(e){if(e.event!=="codex.notification")return null;const t=Ee(e.data);if(t.method!=="thread/tokenUsage/updated")return null;const n=Ee(t.params),i=Ee(n.tokenUsage),l=Ee(i.last),o=Ee(i.total),c=Object.keys(l).length>0?l:o,f=la(c.totalTokens);return f===null?null:{totalTokens:f,inputTokens:la(c.inputTokens),cachedInputTokens:la(c.cachedInputTokens),outputTokens:la(c.outputTokens),reasoningOutputTokens:la(c.reasoningOutputTokens),modelContextWindow:la(i.modelContextWindow),createdAt:e.createdAt??new Date().toISOString()}}function Yz(...e){return e.reduce((t,n)=>n&&(!t||Date.parse(n.createdAt)>Date.parse(t.createdAt))?n:t,null)}function L7(e){return e!=null&&e.modelContextWindow&&e.modelContextWindow>0?e.totalTokens/e.modelContextWindow*100:null}function Wz(e){if(e.event!=="codex.notification")return null;const t=Ee(e.data);if(t.method!=="account/rateLimits/updated")return null;const n=Ee(t.params),i=Ee(n.rateLimits),l=[i.primary,i.secondary].map(o=>Xz(o)).filter(o=>o!==null);return l.length===0?null:{windows:l,updatedAt:e.createdAt??new Date().toISOString()}}function Xz(e){const t=Ee(e);return typeof t.usedPercent!="number"||typeof t.resetsAt!="number"||typeof t.windowDurationMins!="number"?null:{usedPercent:t.usedPercent,resetsAt:t.resetsAt,windowDurationMins:t.windowDurationMins}}function Kz(e,t){return e?!t||e===t?e:t.startsWith(e)?t:`${e}${t}`:t}function Pd(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>String(t)).join(" "):"command"}function q7(e){var n;const t=e.path??e.file??e.filename;return typeof t=="string"?t:((n=Fp(e)[0])==null?void 0:n.path)??null}function Ee(e){return e&&typeof e=="object"?e:{}}function la(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function $e(e){return typeof e=="string"?e:""}function Us(e){return e.replace(/([\\`*_[\]<>])/g,"\\$1")}function Qz(e){const t=Ee(e),n=Ee(t.thread);if(!Object.keys(n).length)return null;const i=Array.isArray(n.turns)?n.turns:[],l=[];let o=0,c=0,f=0,h=0,m=0;return i.forEach((y,v)=>{const k=Ee(y),w=$e(k.id)||`turn-${v+1}`,T=Array.isArray(k.items)?k.items:[];o+=T.length,l.push(Zz(k,w)),T.forEach(E=>{const q=Ee(E),R=$e(q.type);R==="userMessage"?c+=1:R==="agentMessage"?f+=1:R==="compaction"?h+=1:R==="contextCompaction"&&(m+=1)})}),{id:$e(n.id),sessionId:$e(n.sessionId),status:U7(n.status),source:Y1(n.source),cwd:$e(n.cwd),path:$e(n.path),preview:$e(n.preview),createdAt:la(n.createdAt),updatedAt:la(n.updatedAt),recencyAt:la(n.recencyAt),turnCount:i.length,itemCount:o,userMessageCount:c,agentMessageCount:f,compactionCount:h,contextCompactionCount:m,turns:l}}function Zz(e,t){const n=Array.isArray(e.items)?e.items:[],i=Array.from(new Set(n.map(o=>$e(Ee(o).type)).filter(o=>o.length>0))).join(", "),l=Jz(n.map(o=>Qp(o)).filter(Boolean).join(" "),220);return{id:t,status:U7(e.status),itemsView:$e(e.itemsView)||"unknown",itemCount:n.length,startedAt:la(e.startedAt),completedAt:la(e.completedAt),durationMs:la(e.durationMs),itemTypes:i,preview:l,raw:e}}function Qp(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(Qp).filter(Boolean).join(`
|
|
386
|
-
`);if(!e||typeof e!="object")return"";const t=e,n=$e(t.text),i=Qp(t.content);return[n,i].filter(Boolean).join(`
|
|
387
|
-
`)}function U7(e){const t=Ee(e);return $e(t.type)||Y1(e)}function Jz(e,t){const n=e.replace(/\s+/g," ").trim();return n.length>t?`${n.slice(0,t)}...`:n}function kc(e){return e===null?"unknown":rt(e*1e3)}function eD(e){return typeof e=="number"&&Number.isFinite(e)||typeof e=="string"&&e.trim()?e:null}function Y1(e){if(typeof e=="string")return e;const t=JSON.stringify(e);return t.length>180?`${t.slice(0,180)}...`:t}function tD(e){if(typeof e=="string")return e;const t=Ee(e),n=typeof t.message=="string"?t.message:null,i=typeof t.detail=="string"?t.detail:null;return n&&i?`${n}
|
|
388
|
-
|
|
389
|
-
${i}`:n||i||Y1(e)}function x5(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[-_]+/g," ").toLowerCase()}function ru(e){return e<1e3?`${e}ms`:`${(e/1e3).toFixed(e<1e4?1:0)}s`}function op(e){if(e<6e4)return ru(e);const t=Math.floor(e/6e4);if(t<60)return`${t}m`;const n=Math.floor(t/60),i=t%60;return i===0?`${n}h`:`${n}h ${i}m`}function H7(e){return`${Math.round(e)}%`}function wr(e){return new Intl.NumberFormat("en-US").format(e)}function Vd(e){return e===null?"unknown":wr(e)}function Nf(e){return Math.max(0,Math.min(100,Math.round(e)))}function W1(e){return e>=100?"exhausted":e>=90?"danger":e>=75?"warning":"healthy"}function F7(e){return rt(e*1e3)}function rt(e){const t=typeof e=="number"?new Date(e):new Date(e);if(Number.isNaN(t.getTime()))return"";const n={timeZone:"Asia/Shanghai",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1},i=new Intl.DateTimeFormat("en-CA",n).formatToParts(t),l=o=>{var c;return((c=i.find(f=>f.type===o))==null?void 0:c.value)??""};return`${l("month")}/${l("day")} ${l("hour")}:${l("minute")}:${l("second")}`}function Lc(e){const t=rt(e);return t?`${t} UTC+08:00`:""}function nD(e){const t=new Date(e);return Number.isNaN(t.getTime())?"--:--:--":new Intl.DateTimeFormat("en-GB",{timeZone:"Asia/Shanghai",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(t)}function b5(e,t){const n=Nc(e,t);return n?`${n.displayName}${n.isDefault?" (default)":""}`:e||"Unavailable"}function Nc(e,t){return e?t.find(n=>n.model===e)??null:t.find(n=>n.isDefault)??t[0]??null}function Mf(e){return e?e.replace(/^codex-cli\s+/i,""):"Unavailable"}function Zp(e,t){const n=Mf(e);return t?`${n} (${rt(t)})`:n}function rD(e){return`https://github.com/openai/codex/releases/tag/rust-v${encodeURIComponent(Mf(e))}`}function aD(e,t){const n=w5(e),i=w5(t);if(!n||!i)return!1;for(let l=0;l<n.core.length;l+=1)if(n.core[l]!==i.core[l])return n.core[l]>i.core[l];return n.prerelease===i.prerelease?!1:n.prerelease?i.prerelease?n.prerelease.localeCompare(i.prerelease,void 0,{numeric:!0})>0:!1:!0}function w5(e){if(!e)return null;const t=Mf(e).match(/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);return t?{core:[Number(t[1]),Number(t[2]),Number(t[3])],prerelease:t[4]??null}:null}function iD(e,t){const n=e.map(i=>({value:i.model,label:`${i.displayName}${i.isDefault?" (default)":""}`}));return t&&!e.some(i=>i.model===t)&&n.push({value:t,label:`${t} (unavailable)`}),n.length===0&&n.push({value:"",label:"Models unavailable"}),n}async function k5(e,t){const n=e.getReader(),i=new TextDecoder;let l="";for(;;){const{done:o,value:c}=await n.read();if(o)break;l+=i.decode(c,{stream:!0});const f=l.split(`
|
|
390
|
-
|
|
391
|
-
`);l=f.pop()??"";for(const h of f){const m=lD(h);m&&t(m)}}}function lD(e){const t=e.split(`
|
|
392
|
-
`),n=t.find(c=>c.startsWith("event: ")),i=t.filter(c=>c.startsWith("data: ")).map(c=>c.slice(6));if(!n||i.length===0)return null;const l=n.slice(7),o=i.join(`
|
|
393
|
-
`);try{return{event:l,data:JSON.parse(o)}}catch{return{event:l,data:o}}}function sD(e){var i,l,o,c,f;if(!e||typeof e!="object")return null;const t=e;if(t.method!=="item/agentMessage/delta"&&t.method!=="item/plan/delta")return null;const n=((i=t.params)==null?void 0:i.delta)??((l=t.params)==null?void 0:l.text)??"";return n?{text:n,phase:t.method==="item/plan/delta"?"final_answer":((o=t.params)==null?void 0:o.phase)==="commentary"||((c=t.params)==null?void 0:c.phase)==="final_answer"?t.params.phase:"unknown",itemId:(f=t.params)==null?void 0:f.itemId}:null}function oD(e){var i;if(!e||typeof e!="object")return null;const t=e;if(t.method!=="item/started")return null;const n=(i=t.params)==null?void 0:i.item;return(n==null?void 0:n.type)!=="agentMessage"&&(n==null?void 0:n.type)!=="plan"?null:{itemId:n.id,phase:n.type==="plan"?"final_answer":n.phase==="commentary"||n.phase==="final_answer"?n.phase:"unknown"}}function uD(e){var i;if(!e||typeof e!="object")return null;const t=e;if(t.method!=="item/completed")return null;const n=(i=t.params)==null?void 0:i.item;return(n==null?void 0:n.type)!=="agentMessage"&&(n==null?void 0:n.type)!=="plan"||!n.text?null:{itemId:n.id,text:n.text,phase:n.type==="plan"?"final_answer":n.phase==="commentary"||n.phase==="final_answer"?n.phase:"unknown"}}function Ud(e){var n,i,l,o;if(e.event==="server.error"||e.event==="client.error")return"error";if(!e.data||typeof e.data!="object")return null;const t=e.data;return t.method==="thread/status/changed"&&((i=(n=t.params)==null?void 0:n.status)==null?void 0:i.type)==="idle"?"done":t.method==="turn/completed"?(o=(l=t.params)==null?void 0:l.turn)!=null&&o.error?"error":"done":null}function Zo(e){return e.length<=6?e:e.slice(0,6)}function Xl(e){return e.slice(0,8)}function S5(e){switch(e){case"danger-full-access":return"System";case"workspace-write":return"Workspace";case"read-only":return"Read only"}}function C5(e){return{discussing:"Planning",ready:"Planning",active:"Running",paused:"Paused",waiting:"Waiting",replanning:"Planning",blocked:"Blocked",completed:"Completed",cancelled:"Cancelled"}[e]}function up(e,...t){return t.includes(e)}function cD(e,t){const n=Date.parse(e.startedAt??e.createdAt),i=e.finishedAt?Date.parse(e.finishedAt):t;if(!Number.isFinite(n)||!Number.isFinite(i))return"";const l=Math.max(0,Math.floor((i-n)/1e3));if(l<60)return`${l}s`;const o=Math.floor(l/60);return o<60?`${o}m`:`${Math.floor(o/60)}h ${o%60}m`}function dD(e,t){const n=Date.parse(e),i=Date.parse(t);if(!Number.isFinite(n)||!Number.isFinite(i))return"Goal completed";const l=Math.max(0,Math.floor((i-n)/1e3));if(l<60)return`${l}s`;const o=Math.floor(l/60);return o<60?`${o}m`:`${Math.floor(o/60)}h ${o%60}m`}function Jp(e,t){var n;return t==="running"||t==="error"?t:((n=e==null?void 0:e.nextWakeup)==null?void 0:n.status)==="scheduled"?"waiting":t}function fD(e,t){return`waiting ${of(e,t)}`}function of(e,t){const n=Date.parse(e.wakeAt);if(Number.isNaN(n))return"waiting";const i=Math.max(0,Math.ceil((n-t)/1e3));if(i<60)return`${i}s`;const l=Math.ceil(i/60);if(l<60)return`${l}m`;const o=Math.ceil(l/60);return o<24?`${o}h`:`${Math.ceil(o/24)}d`}function Yd(e,t=null,n=Date.now()){if(e==="waiting")return t?fD(t,n):"waiting";switch(e){case"done":return"idle";case"running":return"running";case"error":return"error";case"initializing":return"initializing";case"initialization_failed":return"initialization failed";case"idle":return"idle"}}function j5(e){switch(e){case"checking":return"backend checking";case"connected":return"backend connected";case"error":return"backend unavailable"}}function hD(e){return e==="assistant"?"Seele":"You"}const mD=document.getElementById("root"),$7=window.__seeleCodexRoot??pb.createRoot(mD);window.__seeleCodexRoot=$7;SD();$7.render(u.jsx(I.StrictMode,{children:u.jsx(pD,{})}));function pD(){const[e,t]=I.useState(null),[n,i]=I.useState(null),[l,o]=I.useState(""),[c,f]=I.useState(""),[h,m]=I.useState("admin"),[y,v]=I.useState(""),[k,w]=I.useState(!1),[T,E]=I.useState("");I.useEffect(()=>{let B=!1,F=0;const Y=async()=>{try{const te=await T5();if(B)return;t(te),f("")}catch{if(B)return;f("Reconnecting to Seele..."),F=window.setTimeout(Y,2e3)}};return Y(),()=>{B=!0,window.clearTimeout(F)}},[]),I.useEffect(()=>{let B=!1,F=0;const Y=async()=>{try{const _=await G7();if(B)return;i(_),o(""),F=window.setTimeout(Y,_.status==="authorized"&&_.configurationReady&&_.codexAccountsReady?3e4:3e3)}catch{if(B)return;o("Unable to reach Seele."),F=window.setTimeout(Y,3e3)}},te=()=>{window.clearTimeout(F),Y()};return window.addEventListener(Vp,te),Y(),()=>{B=!0,window.clearTimeout(F),window.removeEventListener(Vp,te)}},[]),I.useEffect(()=>{const B=()=>{t({enabled:!0,authenticated:!1,user:null}),v(""),E("Your session has expired. Sign in again.")};return window.addEventListener(Pp,B),()=>window.removeEventListener(Pp,B)},[]);async function q(B){B.preventDefault(),w(!0),E("");try{const F=await fetch(Ne("auth/login"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:h,password:y})});if(!F.ok){E(F.status===401?"Incorrect username or password.":F.status===429?"Too many failed attempts. Try again later.":"Login failed.");return}v(""),t(await T5())}catch{E("Unable to reach Seele.")}finally{w(!1)}}async function R(){await fetch(Ne("auth/logout"),{method:"POST"}).catch(()=>{}),t({enabled:!0,authenticated:!1,user:null})}if(n&&(n.status!=="authorized"||!n.configurationReady||!n.codexAccountsReady))return u.jsx(gD,{authorization:n});if(!e||!n)return u.jsx("main",{className:"auth-shell",children:u.jsx("span",{className:"auth-loading",children:l||c||"Loading Seele..."})});if(!e.enabled||e.authenticated){const B=e.user??{id:"local-admin",username:"admin",role:"admin",active:!0,createdAt:"",updatedAt:""};return u.jsx(ME,{authEnabled:e.enabled,currentUser:B,deploymentId:n.deploymentId,onLogout:R},`${n.deploymentId}:${B.id}`)}return u.jsx("main",{className:"auth-shell",children:u.jsxs("section",{className:"auth-panel",children:[u.jsxs("header",{children:[u.jsx("p",{children:"Seele"}),u.jsx("h1",{children:"Sign in"})]}),u.jsxs("form",{onSubmit:q,children:[u.jsxs("label",{children:[u.jsx("span",{children:"Username"}),u.jsx("input",{autoComplete:"username",autoFocus:!0,onChange:B=>m(B.target.value),value:h})]}),u.jsxs("label",{children:[u.jsx("span",{children:"Password"}),u.jsx("input",{autoComplete:"current-password",onChange:B=>v(B.target.value),type:"password",value:y})]}),T?u.jsx("p",{className:"auth-error",role:"alert",children:T}):null,u.jsx("button",{disabled:k||!h||!y,type:"submit",children:k?"Signing in...":"Sign in"})]})]})})}function gD({authorization:e}){const t={starting:{title:"Checking deployment authorization",body:"Seele is contacting its configured cloud service."},pending:{title:"Waiting for cloud approval",body:"A cloud administrator must authorize this deployment before it can be used."},revoked:{title:"Deployment access revoked",body:"This deployment is disabled until a cloud administrator authorizes it again."},unavailable:{title:"Cloud authorization unavailable",body:"Seele will keep retrying. Business APIs and the runtime remain paused."},authorized:{title:"Deployment authorized",body:"Seele is ready."}},n=e.status==="authorized"&&!e.configurationReady?{title:"Synchronizing global configuration",body:"Seele is applying the current cloud configuration before the deployment becomes available."}:e.status==="authorized"&&!e.codexAccountsReady?{title:"Synchronizing Codex accounts",body:"Seele is installing the cloud account credentials before the deployment becomes available."}:t[e.status];return u.jsx("main",{className:"deployment-shell",children:u.jsxs("section",{className:"deployment-panel deployment-waiting-panel",children:[u.jsx("div",{className:`deployment-status-mark is-${e.status}`,"aria-hidden":"true"}),u.jsx("p",{className:"deployment-kicker",children:"Seele deployment"}),u.jsx("h1",{children:n.title}),u.jsx("p",{className:"deployment-lead",children:n.body}),u.jsxs("dl",{className:"deployment-facts",children:[u.jsxs("div",{children:[u.jsx("dt",{children:"Deployment ID"}),u.jsx("dd",{children:u.jsx("code",{children:e.deploymentId})})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Name"}),u.jsx("dd",{children:e.name})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Cloud"}),u.jsx("dd",{children:e.cloudUrl})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Last checked"}),u.jsx("dd",{children:e.lastCheckedAt?vD(e.lastCheckedAt):"Starting"})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Global revision"}),u.jsxs("dd",{children:[e.appliedGlobalRevision," / ",e.requiredGlobalRevision]})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"Codex account revision"}),u.jsxs("dd",{children:[e.appliedCodexAccountRevision," / ",e.requiredCodexAccountRevision]})]})]}),e.lastError||e.configurationError||e.codexAccountError?u.jsx("p",{className:"deployment-error",role:"alert",children:e.lastError||e.configurationError||e.codexAccountError}):null,u.jsx("a",{className:"deployment-primary-link",href:yD(e.cloudUrl),children:"Open cloud deployment management"}),u.jsx("p",{className:"deployment-retry-note",children:"Authorization is checked automatically."})]})})}function yD(e){return`${e.replace(/\/+$/,"")}/admin/deployments`}function vD(e){const t=Date.parse(e);return Number.isNaN(t)?e:new Date(t).toLocaleString()}async function G7(){const e=await fetch(Ne("deployment/authorization"));if(!e.ok)throw new Error(`Deployment authorization request failed: ${e.status}`);return e.json()}async function T5(){const e=await fetch(Ne("auth/session"));if(!e.ok)throw new Error(`Auth session request failed: ${e.status}`);return e.json()}async function xD(){const e=Ne("admin/users"),t=await fetch(e);if(!t.ok)throw await Fn(t,{url:e});return(await t.json()).users}async function bD(e){const t=Ne("admin/users"),n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!n.ok)throw await Fn(n,{method:"POST",url:t});return(await n.json()).user}async function wD(e,t){const n=Ne(`admin/users/${encodeURIComponent(e)}`),i=await fetch(n,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!i.ok)throw await Fn(i,{method:"PATCH",url:n});return(await i.json()).user}async function kD(e){const t=Ne(`admin/users/${encodeURIComponent(e)}`),n=await fetch(t,{method:"DELETE"});if(!n.ok)throw await Fn(n,{method:"DELETE",url:t})}function SD(){if(window.__seeleAuthFetchInstalled)return;const e=window.fetch.bind(window);window.fetch=async(...t)=>{const n=await e(...t),i=typeof t[0]=="string"?t[0]:t[0]instanceof URL?t[0].toString():t[0].url;if(n.status===401){const l=await n.clone().json().then(o=>o&&typeof o=="object"&&"error"in o?o.error:void 0).catch(()=>{});qA(n.status,l,i.includes("/api/auth/"))==="reauthenticate"&&window.dispatchEvent(new Event(Pp))}return n.status===503&&i.includes("/api/")&&Xs(),n},window.__seeleAuthFetchInstalled=!0}function Xs(){window.dispatchEvent(new Event(Vp))}export{en as _,gb as a,Mb as b,Ey as c,_5 as f,A5 as g,B5 as h,jD as k,uf as s,wb as w};
|