@joeyshi12/casper 0.8.0 → 0.8.2
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/dist/agents/prompt.md +46 -0
- package/dist/mcp.js +1 -1
- package/dist/server.js +33 -21
- package/dist/web/assets/{abnfDiagram-N423BO3Z-J5DaDTt8.js → abnfDiagram-N423BO3Z-Db1V9DQA.js} +1 -1
- package/dist/web/assets/{arc-CXWeATz6.js → arc-8FlX94TM.js} +1 -1
- package/dist/web/assets/{architectureDiagram-T3A2C74G-ecXfY9My.js → architectureDiagram-T3A2C74G-DJPQ6zIV.js} +1 -1
- package/dist/web/assets/{blockDiagram-VBNYF7ZC-D5ClKOWV.js → blockDiagram-VBNYF7ZC-C8zt6FeL.js} +1 -1
- package/dist/web/assets/{c4Diagram-5PPSVZJV-BxW2-O4j.js → c4Diagram-5PPSVZJV-BDeEhebz.js} +1 -1
- package/dist/web/assets/channel-Ji0OE_pg.js +1 -0
- package/dist/web/assets/{chunk-2GRJ4B5K-BBWhz2x0.js → chunk-2GRJ4B5K-BpcduiSt.js} +1 -1
- package/dist/web/assets/{chunk-2Q5K7J3B-CfD68qFQ.js → chunk-2Q5K7J3B-Wdj53q2N.js} +1 -1
- package/dist/web/assets/{chunk-5RXB4S5H-DaznI8_V.js → chunk-5RXB4S5H-C_H4hLat.js} +1 -1
- package/dist/web/assets/{chunk-5VM5RSS4-BYxWXCvw.js → chunk-5VM5RSS4-Dg7nrVVj.js} +1 -1
- package/dist/web/assets/{chunk-6Q2QTUOP-C8zmDMoc.js → chunk-6Q2QTUOP-NkRwh0t8.js} +1 -1
- package/dist/web/assets/{chunk-GF5L2VYU-BXGR_P0f.js → chunk-GF5L2VYU-ehj182MK.js} +1 -1
- package/dist/web/assets/{chunk-JWPE2WC7-DsHbIvH7.js → chunk-JWPE2WC7-DLImpboE.js} +1 -1
- package/dist/web/assets/{chunk-KBJHAD2P-B8G6QD3I.js → chunk-KBJHAD2P-m7IKjrvH.js} +1 -1
- package/dist/web/assets/{chunk-RYQCIY6F-B1rujkgY.js → chunk-RYQCIY6F-8n9WgOSA.js} +1 -1
- package/dist/web/assets/{chunk-XXDRQBXY-hjvfwopv.js → chunk-XXDRQBXY-DfWu26RY.js} +1 -1
- package/dist/web/assets/classDiagram-JCYQIIEL-Dpb0CKef.js +1 -0
- package/dist/web/assets/classDiagram-v2-OCEON4UE-Dpb0CKef.js +1 -0
- package/dist/web/assets/{cose-bilkent-JH36ORCC-D4S1nlYR.js → cose-bilkent-JH36ORCC-BbLxlgiL.js} +1 -1
- package/dist/web/assets/{cynefin-VYW2F7L2-DtN8m_GE.js → cynefin-VYW2F7L2-DDFSRNZI.js} +1 -1
- package/dist/web/assets/{cynefinDiagram-MW4NZA55-Dkk-H0Nw.js → cynefinDiagram-MW4NZA55-B_fBVX84.js} +1 -1
- package/dist/web/assets/{dagre-VZM6K2ZE-BSkCOa-Z.js → dagre-VZM6K2ZE-ddX7qMzv.js} +1 -1
- package/dist/web/assets/{diagram-7IWD3JNH-Bses1wzI.js → diagram-7IWD3JNH-DeP7HPy2.js} +1 -1
- package/dist/web/assets/{diagram-B4RE2ZJO-BW7sntb1.js → diagram-B4RE2ZJO-C8B5ldg5.js} +1 -1
- package/dist/web/assets/{diagram-LBJQPF4R-DHzgX2HL.js → diagram-LBJQPF4R-BjclTTuN.js} +1 -1
- package/dist/web/assets/{diagram-Q27KOJAE-mcXdgoK9.js → diagram-Q27KOJAE-CNECcOzc.js} +1 -1
- package/dist/web/assets/{diagram-UB23O5K3-BO5P9LAa.js → diagram-UB23O5K3-Y8gySd2t.js} +1 -1
- package/dist/web/assets/{ebnfDiagram-BXEA7PRR-F0zOfsYe.js → ebnfDiagram-BXEA7PRR-DbaxIQ83.js} +1 -1
- package/dist/web/assets/{erDiagram-JOGREHBK-aOYH_ZnE.js → erDiagram-JOGREHBK-zR4dzsNe.js} +1 -1
- package/dist/web/assets/{flowDiagram-UKHOOZJN-DmtkMJ60.js → flowDiagram-UKHOOZJN-BMh-LO2t.js} +1 -1
- package/dist/web/assets/{ganttDiagram-PKOTCBZU-BFy8QpeS.js → ganttDiagram-PKOTCBZU-CLXow4NO.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-DS77QQ5N-CjbCeQfE.js → gitGraphDiagram-DS77QQ5N-Dp5-Avbt.js} +1 -1
- package/dist/web/assets/index-CL3klmyC.js +507 -0
- package/dist/web/assets/{infoDiagram-6WML65LV-CGFvyGjJ.js → infoDiagram-6WML65LV-BAFeQkGx.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-WSZJBQD7-BbVf1sRd.js → ishikawaDiagram-WSZJBQD7-C2YmKMhC.js} +1 -1
- package/dist/web/assets/{journeyDiagram-NVQOT4AX-BNevDB-1.js → journeyDiagram-NVQOT4AX-B8-MJQpc.js} +1 -1
- package/dist/web/assets/{kanban-definition-27J2QSJJ-BdmYFEey.js → kanban-definition-27J2QSJJ-DBgb1Anz.js} +1 -1
- package/dist/web/assets/{linear-DJt4yr3f.js → linear-Bd8lWcaK.js} +1 -1
- package/dist/web/assets/{mermaid.core-D-YupbG3.js → mermaid.core-4GNWPr4j.js} +5 -5
- package/dist/web/assets/{mindmap-definition-FAOFIHXS-toscoNiP.js → mindmap-definition-FAOFIHXS-HFln9eeb.js} +1 -1
- package/dist/web/assets/{pegDiagram-VL7TDLO6-42qysB7S.js → pegDiagram-VL7TDLO6-Btq2G8qF.js} +1 -1
- package/dist/web/assets/{pieDiagram-7S7Q4E2Y-DeC8rSjm.js → pieDiagram-7S7Q4E2Y-fzyBaR_q.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-CIZ2JOQS-BsmBMVxR.js → quadrantDiagram-CIZ2JOQS-7170E7X6.js} +1 -1
- package/dist/web/assets/{railroadDiagram-AXF67PYL-CUEYoy5N.js → railroadDiagram-AXF67PYL-BDA6-NvI.js} +1 -1
- package/dist/web/assets/{requirementDiagram-LRYGKXZP-QOIVNSdo.js → requirementDiagram-LRYGKXZP-DxkuxSg1.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-W5VNT64P-BTvBZ4O6.js → sankeyDiagram-W5VNT64P-Su5hLLja.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-SI44F4Z6-PgaCw-bZ.js → sequenceDiagram-SI44F4Z6-C6CUudfM.js} +1 -1
- package/dist/web/assets/{sizeCapture-X5ZJPWSS-xVBXwmWY.js → sizeCapture-X5ZJPWSS-DztPUoZi.js} +1 -1
- package/dist/web/assets/{stateDiagram-OKZ733FA-BWvlFx8p.js → stateDiagram-OKZ733FA-Zq2Ljm0t.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-UEYNNEHI-DE-64wWB.js +1 -0
- package/dist/web/assets/{swimlanes-SLNWSIFB-B6SREfpi.js → swimlanes-SLNWSIFB-aRNEsNbJ.js} +2 -2
- package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-Dt_wTySU.js +8 -0
- package/dist/web/assets/{timeline-definition-Z64GVDOM-pOrViFO-.js → timeline-definition-Z64GVDOM-F6LC-G8o.js} +1 -1
- package/dist/web/assets/{vennDiagram-T6HMQDX7-DXbf3Z8V.js → vennDiagram-T6HMQDX7-fyLtxga3.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-T6FBY63Y-BulJVCrV.js → wardleyDiagram-T6FBY63Y-BTMZdMc7.js} +1 -1
- package/dist/web/assets/{xychartDiagram-ELKLHX3M-MI1zCRjW.js → xychartDiagram-ELKLHX3M-BD8SGRha.js} +1 -1
- package/dist/web/index.html +1 -1
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/agents/casper.json +0 -25
- package/dist/web/assets/channel-BXz-ycSk.js +0 -1
- package/dist/web/assets/classDiagram-JCYQIIEL-CRBj8GMD.js +0 -1
- package/dist/web/assets/classDiagram-v2-OCEON4UE-CRBj8GMD.js +0 -1
- package/dist/web/assets/index-Bbzvwn2R.js +0 -507
- package/dist/web/assets/stateDiagram-v2-UEYNNEHI-CWroHbLn.js +0 -1
- package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-B7_kKLQV.js +0 -8
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
var i6=Object.defineProperty;var l6=(e,t,n)=>t in e?i6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Hn=(e,t,n)=>l6(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O0={exports:{}},pa={},B0={exports:{}},Ve={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var V1;function a6(){if(V1)return Ve;V1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.iterator;function x(F){return F===null||typeof F!="object"?null:(F=p&&F[p]||F["@@iterator"],typeof F=="function"?F:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,N={};function z(F,K,j){this.props=F,this.context=K,this.refs=N,this.updater=j||k}z.prototype.isReactComponent={},z.prototype.setState=function(F,K){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,K,"setState")},z.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function A(){}A.prototype=z.prototype;function R(F,K,j){this.props=F,this.context=K,this.refs=N,this.updater=j||k}var _=R.prototype=new A;_.constructor=R,E(_,z.prototype),_.isPureReactComponent=!0;var Y=Array.isArray,V=Object.prototype.hasOwnProperty,O={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function te(F,K,j){var Z,xe={},ke=null,be=null;if(K!=null)for(Z in K.ref!==void 0&&(be=K.ref),K.key!==void 0&&(ke=""+K.key),K)V.call(K,Z)&&!G.hasOwnProperty(Z)&&(xe[Z]=K[Z]);var Pe=arguments.length-2;if(Pe===1)xe.children=j;else if(1<Pe){for(var _e=Array(Pe),it=0;it<Pe;it++)_e[it]=arguments[it+2];xe.children=_e}if(F&&F.defaultProps)for(Z in Pe=F.defaultProps,Pe)xe[Z]===void 0&&(xe[Z]=Pe[Z]);return{$$typeof:e,type:F,key:ke,ref:be,props:xe,_owner:O.current}}function re(F,K){return{$$typeof:e,type:F.type,key:K,ref:F.ref,props:F.props,_owner:F._owner}}function q(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function fe(F){var K={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(j){return K[j]})}var ie=/\/+/g;function Ee(F,K){return typeof F=="object"&&F!==null&&F.key!=null?fe(""+F.key):K.toString(36)}function ge(F,K,j,Z,xe){var ke=typeof F;(ke==="undefined"||ke==="boolean")&&(F=null);var be=!1;if(F===null)be=!0;else switch(ke){case"string":case"number":be=!0;break;case"object":switch(F.$$typeof){case e:case t:be=!0}}if(be)return be=F,xe=xe(be),F=Z===""?"."+Ee(be,0):Z,Y(xe)?(j="",F!=null&&(j=F.replace(ie,"$&/")+"/"),ge(xe,K,j,"",function(it){return it})):xe!=null&&(q(xe)&&(xe=re(xe,j+(!xe.key||be&&be.key===xe.key?"":(""+xe.key).replace(ie,"$&/")+"/")+F)),K.push(xe)),1;if(be=0,Z=Z===""?".":Z+":",Y(F))for(var Pe=0;Pe<F.length;Pe++){ke=F[Pe];var _e=Z+Ee(ke,Pe);be+=ge(ke,K,j,_e,xe)}else if(_e=x(F),typeof _e=="function")for(F=_e.call(F),Pe=0;!(ke=F.next()).done;)ke=ke.value,_e=Z+Ee(ke,Pe++),be+=ge(ke,K,j,_e,xe);else if(ke==="object")throw K=String(F),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.");return be}function le(F,K,j){if(F==null)return F;var Z=[],xe=0;return ge(F,Z,"","",function(ke){return K.call(j,ke,xe++)}),Z}function je(F){if(F._status===-1){var K=F._result;K=K(),K.then(function(j){(F._status===0||F._status===-1)&&(F._status=1,F._result=j)},function(j){(F._status===0||F._status===-1)&&(F._status=2,F._result=j)}),F._status===-1&&(F._status=0,F._result=K)}if(F._status===1)return F._result.default;throw F._result}var Q={current:null},ne={transition:null},J={ReactCurrentDispatcher:Q,ReactCurrentBatchConfig:ne,ReactCurrentOwner:O};function M(){throw Error("act(...) is not supported in production builds of React.")}return Ve.Children={map:le,forEach:function(F,K,j){le(F,function(){K.apply(this,arguments)},j)},count:function(F){var K=0;return le(F,function(){K++}),K},toArray:function(F){return le(F,function(K){return K})||[]},only:function(F){if(!q(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},Ve.Component=z,Ve.Fragment=n,Ve.Profiler=a,Ve.PureComponent=R,Ve.StrictMode=i,Ve.Suspense=h,Ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Ve.act=M,Ve.cloneElement=function(F,K,j){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var Z=E({},F.props),xe=F.key,ke=F.ref,be=F._owner;if(K!=null){if(K.ref!==void 0&&(ke=K.ref,be=O.current),K.key!==void 0&&(xe=""+K.key),F.type&&F.type.defaultProps)var Pe=F.type.defaultProps;for(_e in K)V.call(K,_e)&&!G.hasOwnProperty(_e)&&(Z[_e]=K[_e]===void 0&&Pe!==void 0?Pe[_e]:K[_e])}var _e=arguments.length-2;if(_e===1)Z.children=j;else if(1<_e){Pe=Array(_e);for(var it=0;it<_e;it++)Pe[it]=arguments[it+2];Z.children=Pe}return{$$typeof:e,type:F.type,key:xe,ref:ke,props:Z,_owner:be}},Ve.createContext=function(F){return F={$$typeof:o,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},F.Provider={$$typeof:s,_context:F},F.Consumer=F},Ve.createElement=te,Ve.createFactory=function(F){var K=te.bind(null,F);return K.type=F,K},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(F){return{$$typeof:c,render:F}},Ve.isValidElement=q,Ve.lazy=function(F){return{$$typeof:m,_payload:{_status:-1,_result:F},_init:je}},Ve.memo=function(F,K){return{$$typeof:f,type:F,compare:K===void 0?null:K}},Ve.startTransition=function(F){var K=ne.transition;ne.transition={};try{F()}finally{ne.transition=K}},Ve.unstable_act=M,Ve.useCallback=function(F,K){return Q.current.useCallback(F,K)},Ve.useContext=function(F){return Q.current.useContext(F)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(F){return Q.current.useDeferredValue(F)},Ve.useEffect=function(F,K){return Q.current.useEffect(F,K)},Ve.useId=function(){return Q.current.useId()},Ve.useImperativeHandle=function(F,K,j){return Q.current.useImperativeHandle(F,K,j)},Ve.useInsertionEffect=function(F,K){return Q.current.useInsertionEffect(F,K)},Ve.useLayoutEffect=function(F,K){return Q.current.useLayoutEffect(F,K)},Ve.useMemo=function(F,K){return Q.current.useMemo(F,K)},Ve.useReducer=function(F,K,j){return Q.current.useReducer(F,K,j)},Ve.useRef=function(F){return Q.current.useRef(F)},Ve.useState=function(F){return Q.current.useState(F)},Ve.useSyncExternalStore=function(F,K,j){return Q.current.useSyncExternalStore(F,K,j)},Ve.useTransition=function(){return Q.current.useTransition()},Ve.version="18.3.1",Ve}var W1;function fh(){return W1||(W1=1,B0.exports=a6()),B0.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var G1;function s6(){if(G1)return pa;G1=1;var e=fh(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(c,h,f){var m,p={},x=null,k=null;f!==void 0&&(x=""+f),h.key!==void 0&&(x=""+h.key),h.ref!==void 0&&(k=h.ref);for(m in h)i.call(h,m)&&!s.hasOwnProperty(m)&&(p[m]=h[m]);if(c&&c.defaultProps)for(m in h=c.defaultProps,h)p[m]===void 0&&(p[m]=h[m]);return{$$typeof:t,type:c,key:x,ref:k,props:p,_owner:a.current}}return pa.Fragment=n,pa.jsx=o,pa.jsxs=o,pa}var Y1;function o6(){return Y1||(Y1=1,O0.exports=s6()),O0.exports}var w=o6(),I=fh();const ka=hh(I);var Ks={},_0={exports:{}},ln={},$0={exports:{}},H0={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var X1;function u6(){return X1||(X1=1,(function(e){function t(ne,J){var M=ne.length;ne.push(J);e:for(;0<M;){var F=M-1>>>1,K=ne[F];if(0<a(K,J))ne[F]=J,ne[M]=K,M=F;else break e}}function n(ne){return ne.length===0?null:ne[0]}function i(ne){if(ne.length===0)return null;var J=ne[0],M=ne.pop();if(M!==J){ne[0]=M;e:for(var F=0,K=ne.length,j=K>>>1;F<j;){var Z=2*(F+1)-1,xe=ne[Z],ke=Z+1,be=ne[ke];if(0>a(xe,M))ke<K&&0>a(be,xe)?(ne[F]=be,ne[ke]=M,F=ke):(ne[F]=xe,ne[Z]=M,F=Z);else if(ke<K&&0>a(be,M))ne[F]=be,ne[ke]=M,F=ke;else break e}}return J}function a(ne,J){var M=ne.sortIndex-J.sortIndex;return M!==0?M:ne.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var h=[],f=[],m=1,p=null,x=3,k=!1,E=!1,N=!1,z=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(ne){for(var J=n(f);J!==null;){if(J.callback===null)i(f);else if(J.startTime<=ne)i(f),J.sortIndex=J.expirationTime,t(h,J);else break;J=n(f)}}function Y(ne){if(N=!1,_(ne),!E)if(n(h)!==null)E=!0,je(V);else{var J=n(f);J!==null&&Q(Y,J.startTime-ne)}}function V(ne,J){E=!1,N&&(N=!1,A(te),te=-1),k=!0;var M=x;try{for(_(J),p=n(h);p!==null&&(!(p.expirationTime>J)||ne&&!fe());){var F=p.callback;if(typeof F=="function"){p.callback=null,x=p.priorityLevel;var K=F(p.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?p.callback=K:p===n(h)&&i(h),_(J)}else i(h);p=n(h)}if(p!==null)var j=!0;else{var Z=n(f);Z!==null&&Q(Y,Z.startTime-J),j=!1}return j}finally{p=null,x=M,k=!1}}var O=!1,G=null,te=-1,re=5,q=-1;function fe(){return!(e.unstable_now()-q<re)}function ie(){if(G!==null){var ne=e.unstable_now();q=ne;var J=!0;try{J=G(!0,ne)}finally{J?Ee():(O=!1,G=null)}}else O=!1}var Ee;if(typeof R=="function")Ee=function(){R(ie)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,le=ge.port2;ge.port1.onmessage=ie,Ee=function(){le.postMessage(null)}}else Ee=function(){z(ie,0)};function je(ne){G=ne,O||(O=!0,Ee())}function Q(ne,J){te=z(function(){ne(e.unstable_now())},J)}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(ne){ne.callback=null},e.unstable_continueExecution=function(){E||k||(E=!0,je(V))},e.unstable_forceFrameRate=function(ne){0>ne||125<ne?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<ne?Math.floor(1e3/ne):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(ne){switch(x){case 1:case 2:case 3:var J=3;break;default:J=x}var M=x;x=J;try{return ne()}finally{x=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ne,J){switch(ne){case 1:case 2:case 3:case 4:case 5:break;default:ne=3}var M=x;x=ne;try{return J()}finally{x=M}},e.unstable_scheduleCallback=function(ne,J,M){var F=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?F+M:F):M=F,ne){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=M+K,ne={id:m++,callback:J,priorityLevel:ne,startTime:M,expirationTime:K,sortIndex:-1},M>F?(ne.sortIndex=M,t(f,ne),n(h)===null&&ne===n(f)&&(N?(A(te),te=-1):N=!0,Q(Y,M-F))):(ne.sortIndex=K,t(h,ne),E||k||(E=!0,je(V))),ne},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function(ne){var J=x;return function(){var M=x;x=J;try{return ne.apply(this,arguments)}finally{x=M}}}})(H0)),H0}var K1;function c6(){return K1||(K1=1,$0.exports=u6()),$0.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Q1;function h6(){if(Q1)return ln;Q1=1;var e=fh(),t=c6();function n(r){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+r,u=1;u<arguments.length;u++)l+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+r+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,a={};function s(r,l){o(r,l),o(r+"Capture",l)}function o(r,l){for(a[r]=l,r=0;r<l.length;r++)i.add(l[r])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,f=/^[: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]*$/,m={},p={};function x(r){return h.call(p,r)?!0:h.call(m,r)?!1:f.test(r)?p[r]=!0:(m[r]=!0,!1)}function k(r,l,u,d){if(u!==null&&u.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return d?!1:u!==null?!u.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function E(r,l,u,d){if(l===null||typeof l>"u"||k(r,l,u,d))return!0;if(d)return!1;if(u!==null)switch(u.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function N(r,l,u,d,g,y,C){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=d,this.attributeNamespace=g,this.mustUseProperty=u,this.propertyName=r,this.type=l,this.sanitizeURL=y,this.removeEmptyString=C}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){z[r]=new N(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var l=r[0];z[l]=new N(l,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){z[r]=new N(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){z[r]=new N(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){z[r]=new N(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){z[r]=new N(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){z[r]=new N(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){z[r]=new N(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){z[r]=new N(r,5,!1,r.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function R(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var l=r.replace(A,R);z[l]=new N(l,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var l=r.replace(A,R);z[l]=new N(l,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var l=r.replace(A,R);z[l]=new N(l,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){z[r]=new N(r,1,!1,r.toLowerCase(),null,!1,!1)}),z.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){z[r]=new N(r,1,!1,r.toLowerCase(),null,!0,!0)});function _(r,l,u,d){var g=z.hasOwnProperty(l)?z[l]:null;(g!==null?g.type!==0:d||!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(E(l,u,g,d)&&(u=null),d||g===null?x(l)&&(u===null?r.removeAttribute(l):r.setAttribute(l,""+u)):g.mustUseProperty?r[g.propertyName]=u===null?g.type===3?!1:"":u:(l=g.attributeName,d=g.attributeNamespace,u===null?r.removeAttribute(l):(g=g.type,u=g===3||g===4&&u===!0?"":""+u,d?r.setAttributeNS(d,l,u):r.setAttribute(l,u))))}var Y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),O=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),fe=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),Q=Symbol.for("react.offscreen"),ne=Symbol.iterator;function J(r){return r===null||typeof r!="object"?null:(r=ne&&r[ne]||r["@@iterator"],typeof r=="function"?r:null)}var M=Object.assign,F;function K(r){if(F===void 0)try{throw Error()}catch(u){var l=u.stack.trim().match(/\n( *(at )?)/);F=l&&l[1]||""}return`
|
|
34
|
+
`+F+r}var j=!1;function Z(r,l){if(!r||j)return"";j=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(X){var d=X}Reflect.construct(r,[],l)}else{try{l.call()}catch(X){d=X}r.call(l.prototype)}else{try{throw Error()}catch(X){d=X}r()}}catch(X){if(X&&d&&typeof X.stack=="string"){for(var g=X.stack.split(`
|
|
35
|
+
`),y=d.stack.split(`
|
|
36
|
+
`),C=g.length-1,L=y.length-1;1<=C&&0<=L&&g[C]!==y[L];)L--;for(;1<=C&&0<=L;C--,L--)if(g[C]!==y[L]){if(C!==1||L!==1)do if(C--,L--,0>L||g[C]!==y[L]){var B=`
|
|
37
|
+
`+g[C].replace(" at new "," at ");return r.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",r.displayName)),B}while(1<=C&&0<=L);break}}}finally{j=!1,Error.prepareStackTrace=u}return(r=r?r.displayName||r.name:"")?K(r):""}function xe(r){switch(r.tag){case 5:return K(r.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return r=Z(r.type,!1),r;case 11:return r=Z(r.type.render,!1),r;case 1:return r=Z(r.type,!0),r;default:return""}}function ke(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case G:return"Fragment";case O:return"Portal";case re:return"Profiler";case te:return"StrictMode";case Ee:return"Suspense";case ge:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case fe:return(r.displayName||"Context")+".Consumer";case q:return(r._context.displayName||"Context")+".Provider";case ie:var l=r.render;return r=r.displayName,r||(r=l.displayName||l.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case le:return l=r.displayName||null,l!==null?l:ke(r.type)||"Memo";case je:l=r._payload,r=r._init;try{return ke(r(l))}catch{}}return null}function be(r){var l=r.type;switch(r.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=l.render,r=r.displayName||r.name||"",l.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ke(l);case 8:return l===te?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function Pe(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function _e(r){var l=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function it(r){var l=_e(r)?"checked":"value",u=Object.getOwnPropertyDescriptor(r.constructor.prototype,l),d=""+r[l];if(!r.hasOwnProperty(l)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var g=u.get,y=u.set;return Object.defineProperty(r,l,{configurable:!0,get:function(){return g.call(this)},set:function(C){d=""+C,y.call(this,C)}}),Object.defineProperty(r,l,{enumerable:u.enumerable}),{getValue:function(){return d},setValue:function(C){d=""+C},stopTracking:function(){r._valueTracker=null,delete r[l]}}}}function bn(r){r._valueTracker||(r._valueTracker=it(r))}function hi(r){if(!r)return!1;var l=r._valueTracker;if(!l)return!0;var u=l.getValue(),d="";return r&&(d=_e(r)?r.checked?"true":"false":r.value),r=d,r!==u?(l.setValue(r),!0):!1}function Ln(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}}function Xn(r,l){var u=l.checked;return M({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??r._wrapperState.initialChecked})}function fi(r,l){var u=l.defaultValue==null?"":l.defaultValue,d=l.checked!=null?l.checked:l.defaultChecked;u=Pe(l.value!=null?l.value:u),r._wrapperState={initialChecked:d,initialValue:u,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function di(r,l){l=l.checked,l!=null&&_(r,"checked",l,!1)}function Mr(r,l){di(r,l);var u=Pe(l.value),d=l.type;if(u!=null)d==="number"?(u===0&&r.value===""||r.value!=u)&&(r.value=""+u):r.value!==""+u&&(r.value=""+u);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}l.hasOwnProperty("value")?hr(r,l.type,u):l.hasOwnProperty("defaultValue")&&hr(r,l.type,Pe(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(r.defaultChecked=!!l.defaultChecked)}function mi(r,l,u){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var d=l.type;if(!(d!=="submit"&&d!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+r._wrapperState.initialValue,u||l===r.value||(r.value=l),r.defaultValue=l}u=r.name,u!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,u!==""&&(r.name=u)}function hr(r,l,u){(l!=="number"||Ln(r.ownerDocument)!==r)&&(u==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+u&&(r.defaultValue=""+u))}var un=Array.isArray;function Kn(r,l,u,d){if(r=r.options,l){l={};for(var g=0;g<u.length;g++)l["$"+u[g]]=!0;for(u=0;u<r.length;u++)g=l.hasOwnProperty("$"+r[u].value),r[u].selected!==g&&(r[u].selected=g),g&&d&&(r[u].defaultSelected=!0)}else{for(u=""+Pe(u),l=null,g=0;g<r.length;g++){if(r[g].value===u){r[g].selected=!0,d&&(r[g].defaultSelected=!0);return}l!==null||r[g].disabled||(l=r[g])}l!==null&&(l.selected=!0)}}function pi(r,l){if(l.dangerouslySetInnerHTML!=null)throw Error(n(91));return M({},l,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function jr(r,l){var u=l.value;if(u==null){if(u=l.children,l=l.defaultValue,u!=null){if(l!=null)throw Error(n(92));if(un(u)){if(1<u.length)throw Error(n(93));u=u[0]}l=u}l==null&&(l=""),u=l}r._wrapperState={initialValue:Pe(u)}}function gi(r,l){var u=Pe(l.value),d=Pe(l.defaultValue);u!=null&&(u=""+u,u!==r.value&&(r.value=u),l.defaultValue==null&&r.defaultValue!==u&&(r.defaultValue=u)),d!=null&&(r.defaultValue=""+d)}function vi(r){var l=r.textContent;l===r._wrapperState.initialValue&&l!==""&&l!==null&&(r.value=l)}function ee(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ye(r,l){return r==null||r==="http://www.w3.org/1999/xhtml"?ee(l):r==="http://www.w3.org/2000/svg"&&l==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Ie,qe=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(l,u,d,g){MSApp.execUnsafeLocalFunction(function(){return r(l,u,d,g)})}:r})(function(r,l){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=l;else{for(Ie=Ie||document.createElement("div"),Ie.innerHTML="<svg>"+l.valueOf().toString()+"</svg>",l=Ie.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;l.firstChild;)r.appendChild(l.firstChild)}});function Ye(r,l){if(l){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=l;return}}r.textContent=l}var Rt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fr=["Webkit","ms","Moz","O"];Object.keys(Rt).forEach(function(r){fr.forEach(function(l){l=l+r.charAt(0).toUpperCase()+r.substring(1),Rt[l]=Rt[r]})});function Sn(r,l,u){return l==null||typeof l=="boolean"||l===""?"":u||typeof l!="number"||l===0||Rt.hasOwnProperty(r)&&Rt[r]?(""+l).trim():l+"px"}function Ir(r,l){r=r.style;for(var u in l)if(l.hasOwnProperty(u)){var d=u.indexOf("--")===0,g=Sn(u,l[u],d);u==="float"&&(u="cssFloat"),d?r.setProperty(u,g):r[u]=g}}var yi=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Lt(r,l){if(l){if(yi[r]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(n(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(n(61))}if(l.style!=null&&typeof l.style!="object")throw Error(n(62))}}function Qn(r,l){if(r.indexOf("-")===-1)return typeof l.is=="string";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 cn=null;function Zo(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var eu=null,Wi=null,Gi=null;function of(r){if(r=ea(r)){if(typeof eu!="function")throw Error(n(280));var l=r.stateNode;l&&(l=hs(l),eu(r.stateNode,r.type,l))}}function uf(r){Wi?Gi?Gi.push(r):Gi=[r]:Wi=r}function cf(){if(Wi){var r=Wi,l=Gi;if(Gi=Wi=null,of(r),l)for(r=0;r<l.length;r++)of(l[r])}}function hf(r,l){return r(l)}function ff(){}var tu=!1;function df(r,l,u){if(tu)return r(l,u);tu=!0;try{return hf(r,l,u)}finally{tu=!1,(Wi!==null||Gi!==null)&&(ff(),cf())}}function Rl(r,l){var u=r.stateNode;if(u===null)return null;var d=hs(u);if(d===null)return null;u=d[l];e:switch(l){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(u&&typeof u!="function")throw Error(n(231,l,typeof u));return u}var nu=!1;if(c)try{var Ll={};Object.defineProperty(Ll,"passive",{get:function(){nu=!0}}),window.addEventListener("test",Ll,Ll),window.removeEventListener("test",Ll,Ll)}catch{nu=!1}function c3(r,l,u,d,g,y,C,L,B){var X=Array.prototype.slice.call(arguments,3);try{l.apply(u,X)}catch(oe){this.onError(oe)}}var Dl=!1,qa=null,Ua=!1,ru=null,h3={onError:function(r){Dl=!0,qa=r}};function f3(r,l,u,d,g,y,C,L,B){Dl=!1,qa=null,c3.apply(h3,arguments)}function d3(r,l,u,d,g,y,C,L,B){if(f3.apply(this,arguments),Dl){if(Dl){var X=qa;Dl=!1,qa=null}else throw Error(n(198));Ua||(Ua=!0,ru=X)}}function xi(r){var l=r,u=r;if(r.alternate)for(;l.return;)l=l.return;else{r=l;do l=r,(l.flags&4098)!==0&&(u=l.return),r=l.return;while(r)}return l.tag===3?u:null}function mf(r){if(r.tag===13){var l=r.memoizedState;if(l===null&&(r=r.alternate,r!==null&&(l=r.memoizedState)),l!==null)return l.dehydrated}return null}function pf(r){if(xi(r)!==r)throw Error(n(188))}function m3(r){var l=r.alternate;if(!l){if(l=xi(r),l===null)throw Error(n(188));return l!==r?null:r}for(var u=r,d=l;;){var g=u.return;if(g===null)break;var y=g.alternate;if(y===null){if(d=g.return,d!==null){u=d;continue}break}if(g.child===y.child){for(y=g.child;y;){if(y===u)return pf(g),r;if(y===d)return pf(g),l;y=y.sibling}throw Error(n(188))}if(u.return!==d.return)u=g,d=y;else{for(var C=!1,L=g.child;L;){if(L===u){C=!0,u=g,d=y;break}if(L===d){C=!0,d=g,u=y;break}L=L.sibling}if(!C){for(L=y.child;L;){if(L===u){C=!0,u=y,d=g;break}if(L===d){C=!0,d=y,u=g;break}L=L.sibling}if(!C)throw Error(n(189))}}if(u.alternate!==d)throw Error(n(190))}if(u.tag!==3)throw Error(n(188));return u.stateNode.current===u?r:l}function gf(r){return r=m3(r),r!==null?vf(r):null}function vf(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var l=vf(r);if(l!==null)return l;r=r.sibling}return null}var yf=t.unstable_scheduleCallback,xf=t.unstable_cancelCallback,p3=t.unstable_shouldYield,g3=t.unstable_requestPaint,xt=t.unstable_now,v3=t.unstable_getCurrentPriorityLevel,iu=t.unstable_ImmediatePriority,wf=t.unstable_UserBlockingPriority,Va=t.unstable_NormalPriority,y3=t.unstable_LowPriority,kf=t.unstable_IdlePriority,Wa=null,Jn=null;function x3(r){if(Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(Wa,r,void 0,(r.current.flags&128)===128)}catch{}}var Dn=Math.clz32?Math.clz32:b3,w3=Math.log,k3=Math.LN2;function b3(r){return r>>>=0,r===0?32:31-(w3(r)/k3|0)|0}var Ga=64,Ya=4194304;function Pl(r){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: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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Xa(r,l){var u=r.pendingLanes;if(u===0)return 0;var d=0,g=r.suspendedLanes,y=r.pingedLanes,C=u&268435455;if(C!==0){var L=C&~g;L!==0?d=Pl(L):(y&=C,y!==0&&(d=Pl(y)))}else C=u&~g,C!==0?d=Pl(C):y!==0&&(d=Pl(y));if(d===0)return 0;if(l!==0&&l!==d&&(l&g)===0&&(g=d&-d,y=l&-l,g>=y||g===16&&(y&4194240)!==0))return l;if((d&4)!==0&&(d|=u&16),l=r.entangledLanes,l!==0)for(r=r.entanglements,l&=d;0<l;)u=31-Dn(l),g=1<<u,d|=r[u],l&=~g;return d}function S3(r,l){switch(r){case 1:case 2:case 4:return l+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function C3(r,l){for(var u=r.suspendedLanes,d=r.pingedLanes,g=r.expirationTimes,y=r.pendingLanes;0<y;){var C=31-Dn(y),L=1<<C,B=g[C];B===-1?((L&u)===0||(L&d)!==0)&&(g[C]=S3(L,l)):B<=l&&(r.expiredLanes|=L),y&=~L}}function lu(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function bf(){var r=Ga;return Ga<<=1,(Ga&4194240)===0&&(Ga=64),r}function au(r){for(var l=[],u=0;31>u;u++)l.push(r);return l}function Fl(r,l,u){r.pendingLanes|=l,l!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,l=31-Dn(l),r[l]=u}function E3(r,l){var u=r.pendingLanes&~l;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=l,r.mutableReadLanes&=l,r.entangledLanes&=l,l=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<u;){var g=31-Dn(u),y=1<<g;l[g]=0,d[g]=-1,r[g]=-1,u&=~y}}function su(r,l){var u=r.entangledLanes|=l;for(r=r.entanglements;u;){var d=31-Dn(u),g=1<<d;g&l|r[d]&l&&(r[d]|=l),u&=~g}}var et=0;function Sf(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Cf,ou,Ef,Tf,Nf,uu=!1,Ka=[],Rr=null,Lr=null,Dr=null,Ol=new Map,Bl=new Map,Pr=[],T3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Af(r,l){switch(r){case"focusin":case"focusout":Rr=null;break;case"dragenter":case"dragleave":Lr=null;break;case"mouseover":case"mouseout":Dr=null;break;case"pointerover":case"pointerout":Ol.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bl.delete(l.pointerId)}}function _l(r,l,u,d,g,y){return r===null||r.nativeEvent!==y?(r={blockedOn:l,domEventName:u,eventSystemFlags:d,nativeEvent:y,targetContainers:[g]},l!==null&&(l=ea(l),l!==null&&ou(l)),r):(r.eventSystemFlags|=d,l=r.targetContainers,g!==null&&l.indexOf(g)===-1&&l.push(g),r)}function N3(r,l,u,d,g){switch(l){case"focusin":return Rr=_l(Rr,r,l,u,d,g),!0;case"dragenter":return Lr=_l(Lr,r,l,u,d,g),!0;case"mouseover":return Dr=_l(Dr,r,l,u,d,g),!0;case"pointerover":var y=g.pointerId;return Ol.set(y,_l(Ol.get(y)||null,r,l,u,d,g)),!0;case"gotpointercapture":return y=g.pointerId,Bl.set(y,_l(Bl.get(y)||null,r,l,u,d,g)),!0}return!1}function zf(r){var l=wi(r.target);if(l!==null){var u=xi(l);if(u!==null){if(l=u.tag,l===13){if(l=mf(u),l!==null){r.blockedOn=l,Nf(r.priority,function(){Ef(u)});return}}else if(l===3&&u.stateNode.current.memoizedState.isDehydrated){r.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Qa(r){if(r.blockedOn!==null)return!1;for(var l=r.targetContainers;0<l.length;){var u=hu(r.domEventName,r.eventSystemFlags,l[0],r.nativeEvent);if(u===null){u=r.nativeEvent;var d=new u.constructor(u.type,u);cn=d,u.target.dispatchEvent(d),cn=null}else return l=ea(u),l!==null&&ou(l),r.blockedOn=u,!1;l.shift()}return!0}function Mf(r,l,u){Qa(r)&&u.delete(l)}function A3(){uu=!1,Rr!==null&&Qa(Rr)&&(Rr=null),Lr!==null&&Qa(Lr)&&(Lr=null),Dr!==null&&Qa(Dr)&&(Dr=null),Ol.forEach(Mf),Bl.forEach(Mf)}function $l(r,l){r.blockedOn===l&&(r.blockedOn=null,uu||(uu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,A3)))}function Hl(r){function l(g){return $l(g,r)}if(0<Ka.length){$l(Ka[0],r);for(var u=1;u<Ka.length;u++){var d=Ka[u];d.blockedOn===r&&(d.blockedOn=null)}}for(Rr!==null&&$l(Rr,r),Lr!==null&&$l(Lr,r),Dr!==null&&$l(Dr,r),Ol.forEach(l),Bl.forEach(l),u=0;u<Pr.length;u++)d=Pr[u],d.blockedOn===r&&(d.blockedOn=null);for(;0<Pr.length&&(u=Pr[0],u.blockedOn===null);)zf(u),u.blockedOn===null&&Pr.shift()}var Yi=Y.ReactCurrentBatchConfig,Ja=!0;function z3(r,l,u,d){var g=et,y=Yi.transition;Yi.transition=null;try{et=1,cu(r,l,u,d)}finally{et=g,Yi.transition=y}}function M3(r,l,u,d){var g=et,y=Yi.transition;Yi.transition=null;try{et=4,cu(r,l,u,d)}finally{et=g,Yi.transition=y}}function cu(r,l,u,d){if(Ja){var g=hu(r,l,u,d);if(g===null)Au(r,l,d,Za,u),Af(r,d);else if(N3(g,r,l,u,d))d.stopPropagation();else if(Af(r,d),l&4&&-1<T3.indexOf(r)){for(;g!==null;){var y=ea(g);if(y!==null&&Cf(y),y=hu(r,l,u,d),y===null&&Au(r,l,d,Za,u),y===g)break;g=y}g!==null&&d.stopPropagation()}else Au(r,l,d,null,u)}}var Za=null;function hu(r,l,u,d){if(Za=null,r=Zo(d),r=wi(r),r!==null)if(l=xi(r),l===null)r=null;else if(u=l.tag,u===13){if(r=mf(l),r!==null)return r;r=null}else if(u===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;r=null}else l!==r&&(r=null);return Za=r,null}function jf(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(v3()){case iu:return 1;case wf:return 4;case Va:case y3:return 16;case kf:return 536870912;default:return 16}default:return 16}}var Fr=null,fu=null,es=null;function If(){if(es)return es;var r,l=fu,u=l.length,d,g="value"in Fr?Fr.value:Fr.textContent,y=g.length;for(r=0;r<u&&l[r]===g[r];r++);var C=u-r;for(d=1;d<=C&&l[u-d]===g[y-d];d++);return es=g.slice(r,1<d?1-d:void 0)}function ts(r){var l=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&l===13&&(r=13)):r=l,r===10&&(r=13),32<=r||r===13?r:0}function ns(){return!0}function Rf(){return!1}function hn(r){function l(u,d,g,y,C){this._reactName=u,this._targetInst=g,this.type=d,this.nativeEvent=y,this.target=C,this.currentTarget=null;for(var L in r)r.hasOwnProperty(L)&&(u=r[L],this[L]=u?u(y):y[L]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?ns:Rf,this.isPropagationStopped=Rf,this}return M(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=ns)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=ns)},persist:function(){},isPersistent:ns}),l}var Xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},du=hn(Xi),ql=M({},Xi,{view:0,detail:0}),j3=hn(ql),mu,pu,Ul,rs=M({},ql,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vu,button:0,buttons:0,relatedTarget:function(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!==Ul&&(Ul&&r.type==="mousemove"?(mu=r.screenX-Ul.screenX,pu=r.screenY-Ul.screenY):pu=mu=0,Ul=r),mu)},movementY:function(r){return"movementY"in r?r.movementY:pu}}),Lf=hn(rs),I3=M({},rs,{dataTransfer:0}),R3=hn(I3),L3=M({},ql,{relatedTarget:0}),gu=hn(L3),D3=M({},Xi,{animationName:0,elapsedTime:0,pseudoElement:0}),P3=hn(D3),F3=M({},Xi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),O3=hn(F3),B3=M({},Xi,{data:0}),Df=hn(B3),_3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$3={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"},H3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function q3(r){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(r):(r=H3[r])?!!l[r]:!1}function vu(){return q3}var U3=M({},ql,{key:function(r){if(r.key){var l=_3[r.key]||r.key;if(l!=="Unidentified")return l}return r.type==="keypress"?(r=ts(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?$3[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vu,charCode:function(r){return r.type==="keypress"?ts(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ts(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),V3=hn(U3),W3=M({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pf=hn(W3),G3=M({},ql,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vu}),Y3=hn(G3),X3=M({},Xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),K3=hn(X3),Q3=M({},rs,{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}),J3=hn(Q3),Z3=[9,13,27,32],yu=c&&"CompositionEvent"in window,Vl=null;c&&"documentMode"in document&&(Vl=document.documentMode);var e5=c&&"TextEvent"in window&&!Vl,Ff=c&&(!yu||Vl&&8<Vl&&11>=Vl),Of=" ",Bf=!1;function _f(r,l){switch(r){case"keyup":return Z3.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $f(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ki=!1;function t5(r,l){switch(r){case"compositionend":return $f(l);case"keypress":return l.which!==32?null:(Bf=!0,Of);case"textInput":return r=l.data,r===Of&&Bf?null:r;default:return null}}function n5(r,l){if(Ki)return r==="compositionend"||!yu&&_f(r,l)?(r=If(),es=fu=Fr=null,Ki=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Ff&&l.locale!=="ko"?null:l.data;default:return null}}var r5={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 Hf(r){var l=r&&r.nodeName&&r.nodeName.toLowerCase();return l==="input"?!!r5[r.type]:l==="textarea"}function qf(r,l,u,d){uf(d),l=os(l,"onChange"),0<l.length&&(u=new du("onChange","change",null,u,d),r.push({event:u,listeners:l}))}var Wl=null,Gl=null;function i5(r){sd(r,0)}function is(r){var l=tl(r);if(hi(l))return r}function l5(r,l){if(r==="change")return l}var Uf=!1;if(c){var xu;if(c){var wu="oninput"in document;if(!wu){var Vf=document.createElement("div");Vf.setAttribute("oninput","return;"),wu=typeof Vf.oninput=="function"}xu=wu}else xu=!1;Uf=xu&&(!document.documentMode||9<document.documentMode)}function Wf(){Wl&&(Wl.detachEvent("onpropertychange",Gf),Gl=Wl=null)}function Gf(r){if(r.propertyName==="value"&&is(Gl)){var l=[];qf(l,Gl,r,Zo(r)),df(i5,l)}}function a5(r,l,u){r==="focusin"?(Wf(),Wl=l,Gl=u,Wl.attachEvent("onpropertychange",Gf)):r==="focusout"&&Wf()}function s5(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return is(Gl)}function o5(r,l){if(r==="click")return is(l)}function u5(r,l){if(r==="input"||r==="change")return is(l)}function c5(r,l){return r===l&&(r!==0||1/r===1/l)||r!==r&&l!==l}var Pn=typeof Object.is=="function"?Object.is:c5;function Yl(r,l){if(Pn(r,l))return!0;if(typeof r!="object"||r===null||typeof l!="object"||l===null)return!1;var u=Object.keys(r),d=Object.keys(l);if(u.length!==d.length)return!1;for(d=0;d<u.length;d++){var g=u[d];if(!h.call(l,g)||!Pn(r[g],l[g]))return!1}return!0}function Yf(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Xf(r,l){var u=Yf(r);r=0;for(var d;u;){if(u.nodeType===3){if(d=r+u.textContent.length,r<=l&&d>=l)return{node:u,offset:l-r};r=d}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Yf(u)}}function Kf(r,l){return r&&l?r===l?!0:r&&r.nodeType===3?!1:l&&l.nodeType===3?Kf(r,l.parentNode):"contains"in r?r.contains(l):r.compareDocumentPosition?!!(r.compareDocumentPosition(l)&16):!1:!1}function Qf(){for(var r=window,l=Ln();l instanceof r.HTMLIFrameElement;){try{var u=typeof l.contentWindow.location.href=="string"}catch{u=!1}if(u)r=l.contentWindow;else break;l=Ln(r.document)}return l}function ku(r){var l=r&&r.nodeName&&r.nodeName.toLowerCase();return l&&(l==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||l==="textarea"||r.contentEditable==="true")}function h5(r){var l=Qf(),u=r.focusedElem,d=r.selectionRange;if(l!==u&&u&&u.ownerDocument&&Kf(u.ownerDocument.documentElement,u)){if(d!==null&&ku(u)){if(l=d.start,r=d.end,r===void 0&&(r=l),"selectionStart"in u)u.selectionStart=l,u.selectionEnd=Math.min(r,u.value.length);else if(r=(l=u.ownerDocument||document)&&l.defaultView||window,r.getSelection){r=r.getSelection();var g=u.textContent.length,y=Math.min(d.start,g);d=d.end===void 0?y:Math.min(d.end,g),!r.extend&&y>d&&(g=d,d=y,y=g),g=Xf(u,y);var C=Xf(u,d);g&&C&&(r.rangeCount!==1||r.anchorNode!==g.node||r.anchorOffset!==g.offset||r.focusNode!==C.node||r.focusOffset!==C.offset)&&(l=l.createRange(),l.setStart(g.node,g.offset),r.removeAllRanges(),y>d?(r.addRange(l),r.extend(C.node,C.offset)):(l.setEnd(C.node,C.offset),r.addRange(l)))}}for(l=[],r=u;r=r.parentNode;)r.nodeType===1&&l.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u<l.length;u++)r=l[u],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var f5=c&&"documentMode"in document&&11>=document.documentMode,Qi=null,bu=null,Xl=null,Su=!1;function Jf(r,l,u){var d=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Su||Qi==null||Qi!==Ln(d)||(d=Qi,"selectionStart"in d&&ku(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}),Xl&&Yl(Xl,d)||(Xl=d,d=os(bu,"onSelect"),0<d.length&&(l=new du("onSelect","select",null,l,u),r.push({event:l,listeners:d}),l.target=Qi)))}function ls(r,l){var u={};return u[r.toLowerCase()]=l.toLowerCase(),u["Webkit"+r]="webkit"+l,u["Moz"+r]="moz"+l,u}var Ji={animationend:ls("Animation","AnimationEnd"),animationiteration:ls("Animation","AnimationIteration"),animationstart:ls("Animation","AnimationStart"),transitionend:ls("Transition","TransitionEnd")},Cu={},Zf={};c&&(Zf=document.createElement("div").style,"AnimationEvent"in window||(delete Ji.animationend.animation,delete Ji.animationiteration.animation,delete Ji.animationstart.animation),"TransitionEvent"in window||delete Ji.transitionend.transition);function as(r){if(Cu[r])return Cu[r];if(!Ji[r])return r;var l=Ji[r],u;for(u in l)if(l.hasOwnProperty(u)&&u in Zf)return Cu[r]=l[u];return r}var ed=as("animationend"),td=as("animationiteration"),nd=as("animationstart"),rd=as("transitionend"),id=new Map,ld="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Or(r,l){id.set(r,l),s(l,[r])}for(var Eu=0;Eu<ld.length;Eu++){var Tu=ld[Eu],d5=Tu.toLowerCase(),m5=Tu[0].toUpperCase()+Tu.slice(1);Or(d5,"on"+m5)}Or(ed,"onAnimationEnd"),Or(td,"onAnimationIteration"),Or(nd,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(rd,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kl="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(" "),p5=new Set("cancel close invalid load scroll toggle".split(" ").concat(Kl));function ad(r,l,u){var d=r.type||"unknown-event";r.currentTarget=u,d3(d,l,void 0,r),r.currentTarget=null}function sd(r,l){l=(l&4)!==0;for(var u=0;u<r.length;u++){var d=r[u],g=d.event;d=d.listeners;e:{var y=void 0;if(l)for(var C=d.length-1;0<=C;C--){var L=d[C],B=L.instance,X=L.currentTarget;if(L=L.listener,B!==y&&g.isPropagationStopped())break e;ad(g,L,X),y=B}else for(C=0;C<d.length;C++){if(L=d[C],B=L.instance,X=L.currentTarget,L=L.listener,B!==y&&g.isPropagationStopped())break e;ad(g,L,X),y=B}}}if(Ua)throw r=ru,Ua=!1,ru=null,r}function at(r,l){var u=l[Lu];u===void 0&&(u=l[Lu]=new Set);var d=r+"__bubble";u.has(d)||(od(l,r,2,!1),u.add(d))}function Nu(r,l,u){var d=0;l&&(d|=4),od(u,r,d,l)}var ss="_reactListening"+Math.random().toString(36).slice(2);function Ql(r){if(!r[ss]){r[ss]=!0,i.forEach(function(u){u!=="selectionchange"&&(p5.has(u)||Nu(u,!1,r),Nu(u,!0,r))});var l=r.nodeType===9?r:r.ownerDocument;l===null||l[ss]||(l[ss]=!0,Nu("selectionchange",!1,l))}}function od(r,l,u,d){switch(jf(l)){case 1:var g=z3;break;case 4:g=M3;break;default:g=cu}u=g.bind(null,l,u,r),g=void 0,!nu||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(g=!0),d?g!==void 0?r.addEventListener(l,u,{capture:!0,passive:g}):r.addEventListener(l,u,!0):g!==void 0?r.addEventListener(l,u,{passive:g}):r.addEventListener(l,u,!1)}function Au(r,l,u,d,g){var y=d;if((l&1)===0&&(l&2)===0&&d!==null)e:for(;;){if(d===null)return;var C=d.tag;if(C===3||C===4){var L=d.stateNode.containerInfo;if(L===g||L.nodeType===8&&L.parentNode===g)break;if(C===4)for(C=d.return;C!==null;){var B=C.tag;if((B===3||B===4)&&(B=C.stateNode.containerInfo,B===g||B.nodeType===8&&B.parentNode===g))return;C=C.return}for(;L!==null;){if(C=wi(L),C===null)return;if(B=C.tag,B===5||B===6){d=y=C;continue e}L=L.parentNode}}d=d.return}df(function(){var X=y,oe=Zo(u),ce=[];e:{var se=id.get(r);if(se!==void 0){var Se=du,Ne=r;switch(r){case"keypress":if(ts(u)===0)break e;case"keydown":case"keyup":Se=V3;break;case"focusin":Ne="focus",Se=gu;break;case"focusout":Ne="blur",Se=gu;break;case"beforeblur":case"afterblur":Se=gu;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Se=Lf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Se=R3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Se=Y3;break;case ed:case td:case nd:Se=P3;break;case rd:Se=K3;break;case"scroll":Se=j3;break;case"wheel":Se=J3;break;case"copy":case"cut":case"paste":Se=O3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Se=Pf}var Ae=(l&4)!==0,wt=!Ae&&r==="scroll",U=Ae?se!==null?se+"Capture":null:se;Ae=[];for(var H=X,W;H!==null;){W=H;var pe=W.stateNode;if(W.tag===5&&pe!==null&&(W=pe,U!==null&&(pe=Rl(H,U),pe!=null&&Ae.push(Jl(H,pe,W)))),wt)break;H=H.return}0<Ae.length&&(se=new Se(se,Ne,null,u,oe),ce.push({event:se,listeners:Ae}))}}if((l&7)===0){e:{if(se=r==="mouseover"||r==="pointerover",Se=r==="mouseout"||r==="pointerout",se&&u!==cn&&(Ne=u.relatedTarget||u.fromElement)&&(wi(Ne)||Ne[dr]))break e;if((Se||se)&&(se=oe.window===oe?oe:(se=oe.ownerDocument)?se.defaultView||se.parentWindow:window,Se?(Ne=u.relatedTarget||u.toElement,Se=X,Ne=Ne?wi(Ne):null,Ne!==null&&(wt=xi(Ne),Ne!==wt||Ne.tag!==5&&Ne.tag!==6)&&(Ne=null)):(Se=null,Ne=X),Se!==Ne)){if(Ae=Lf,pe="onMouseLeave",U="onMouseEnter",H="mouse",(r==="pointerout"||r==="pointerover")&&(Ae=Pf,pe="onPointerLeave",U="onPointerEnter",H="pointer"),wt=Se==null?se:tl(Se),W=Ne==null?se:tl(Ne),se=new Ae(pe,H+"leave",Se,u,oe),se.target=wt,se.relatedTarget=W,pe=null,wi(oe)===X&&(Ae=new Ae(U,H+"enter",Ne,u,oe),Ae.target=W,Ae.relatedTarget=wt,pe=Ae),wt=pe,Se&&Ne)t:{for(Ae=Se,U=Ne,H=0,W=Ae;W;W=Zi(W))H++;for(W=0,pe=U;pe;pe=Zi(pe))W++;for(;0<H-W;)Ae=Zi(Ae),H--;for(;0<W-H;)U=Zi(U),W--;for(;H--;){if(Ae===U||U!==null&&Ae===U.alternate)break t;Ae=Zi(Ae),U=Zi(U)}Ae=null}else Ae=null;Se!==null&&ud(ce,se,Se,Ae,!1),Ne!==null&&wt!==null&&ud(ce,wt,Ne,Ae,!0)}}e:{if(se=X?tl(X):window,Se=se.nodeName&&se.nodeName.toLowerCase(),Se==="select"||Se==="input"&&se.type==="file")var ze=l5;else if(Hf(se))if(Uf)ze=u5;else{ze=s5;var Re=a5}else(Se=se.nodeName)&&Se.toLowerCase()==="input"&&(se.type==="checkbox"||se.type==="radio")&&(ze=o5);if(ze&&(ze=ze(r,X))){qf(ce,ze,u,oe);break e}Re&&Re(r,se,X),r==="focusout"&&(Re=se._wrapperState)&&Re.controlled&&se.type==="number"&&hr(se,"number",se.value)}switch(Re=X?tl(X):window,r){case"focusin":(Hf(Re)||Re.contentEditable==="true")&&(Qi=Re,bu=X,Xl=null);break;case"focusout":Xl=bu=Qi=null;break;case"mousedown":Su=!0;break;case"contextmenu":case"mouseup":case"dragend":Su=!1,Jf(ce,u,oe);break;case"selectionchange":if(f5)break;case"keydown":case"keyup":Jf(ce,u,oe)}var Le;if(yu)e:{switch(r){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else Ki?_f(r,u)&&(Be="onCompositionEnd"):r==="keydown"&&u.keyCode===229&&(Be="onCompositionStart");Be&&(Ff&&u.locale!=="ko"&&(Ki||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&Ki&&(Le=If()):(Fr=oe,fu="value"in Fr?Fr.value:Fr.textContent,Ki=!0)),Re=os(X,Be),0<Re.length&&(Be=new Df(Be,r,null,u,oe),ce.push({event:Be,listeners:Re}),Le?Be.data=Le:(Le=$f(u),Le!==null&&(Be.data=Le)))),(Le=e5?t5(r,u):n5(r,u))&&(X=os(X,"onBeforeInput"),0<X.length&&(oe=new Df("onBeforeInput","beforeinput",null,u,oe),ce.push({event:oe,listeners:X}),oe.data=Le))}sd(ce,l)})}function Jl(r,l,u){return{instance:r,listener:l,currentTarget:u}}function os(r,l){for(var u=l+"Capture",d=[];r!==null;){var g=r,y=g.stateNode;g.tag===5&&y!==null&&(g=y,y=Rl(r,u),y!=null&&d.unshift(Jl(r,y,g)),y=Rl(r,l),y!=null&&d.push(Jl(r,y,g))),r=r.return}return d}function Zi(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function ud(r,l,u,d,g){for(var y=l._reactName,C=[];u!==null&&u!==d;){var L=u,B=L.alternate,X=L.stateNode;if(B!==null&&B===d)break;L.tag===5&&X!==null&&(L=X,g?(B=Rl(u,y),B!=null&&C.unshift(Jl(u,B,L))):g||(B=Rl(u,y),B!=null&&C.push(Jl(u,B,L)))),u=u.return}C.length!==0&&r.push({event:l,listeners:C})}var g5=/\r\n?/g,v5=/\u0000|\uFFFD/g;function cd(r){return(typeof r=="string"?r:""+r).replace(g5,`
|
|
38
|
+
`).replace(v5,"")}function us(r,l,u){if(l=cd(l),cd(r)!==l&&u)throw Error(n(425))}function cs(){}var zu=null,Mu=null;function ju(r,l){return r==="textarea"||r==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Iu=typeof setTimeout=="function"?setTimeout:void 0,y5=typeof clearTimeout=="function"?clearTimeout:void 0,hd=typeof Promise=="function"?Promise:void 0,x5=typeof queueMicrotask=="function"?queueMicrotask:typeof hd<"u"?function(r){return hd.resolve(null).then(r).catch(w5)}:Iu;function w5(r){setTimeout(function(){throw r})}function Ru(r,l){var u=l,d=0;do{var g=u.nextSibling;if(r.removeChild(u),g&&g.nodeType===8)if(u=g.data,u==="/$"){if(d===0){r.removeChild(g),Hl(l);return}d--}else u!=="$"&&u!=="$?"&&u!=="$!"||d++;u=g}while(u);Hl(l)}function Br(r){for(;r!=null;r=r.nextSibling){var l=r.nodeType;if(l===1||l===3)break;if(l===8){if(l=r.data,l==="$"||l==="$!"||l==="$?")break;if(l==="/$")return null}}return r}function fd(r){r=r.previousSibling;for(var l=0;r;){if(r.nodeType===8){var u=r.data;if(u==="$"||u==="$!"||u==="$?"){if(l===0)return r;l--}else u==="/$"&&l++}r=r.previousSibling}return null}var el=Math.random().toString(36).slice(2),Zn="__reactFiber$"+el,Zl="__reactProps$"+el,dr="__reactContainer$"+el,Lu="__reactEvents$"+el,k5="__reactListeners$"+el,b5="__reactHandles$"+el;function wi(r){var l=r[Zn];if(l)return l;for(var u=r.parentNode;u;){if(l=u[dr]||u[Zn]){if(u=l.alternate,l.child!==null||u!==null&&u.child!==null)for(r=fd(r);r!==null;){if(u=r[Zn])return u;r=fd(r)}return l}r=u,u=r.parentNode}return null}function ea(r){return r=r[Zn]||r[dr],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function tl(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function hs(r){return r[Zl]||null}var Du=[],nl=-1;function _r(r){return{current:r}}function st(r){0>nl||(r.current=Du[nl],Du[nl]=null,nl--)}function lt(r,l){nl++,Du[nl]=r.current,r.current=l}var $r={},Ot=_r($r),Zt=_r(!1),ki=$r;function rl(r,l){var u=r.type.contextTypes;if(!u)return $r;var d=r.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===l)return d.__reactInternalMemoizedMaskedChildContext;var g={},y;for(y in u)g[y]=l[y];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=l,r.__reactInternalMemoizedMaskedChildContext=g),g}function en(r){return r=r.childContextTypes,r!=null}function fs(){st(Zt),st(Ot)}function dd(r,l,u){if(Ot.current!==$r)throw Error(n(168));lt(Ot,l),lt(Zt,u)}function md(r,l,u){var d=r.stateNode;if(l=l.childContextTypes,typeof d.getChildContext!="function")return u;d=d.getChildContext();for(var g in d)if(!(g in l))throw Error(n(108,be(r)||"Unknown",g));return M({},u,d)}function ds(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||$r,ki=Ot.current,lt(Ot,r),lt(Zt,Zt.current),!0}function pd(r,l,u){var d=r.stateNode;if(!d)throw Error(n(169));u?(r=md(r,l,ki),d.__reactInternalMemoizedMergedChildContext=r,st(Zt),st(Ot),lt(Ot,r)):st(Zt),lt(Zt,u)}var mr=null,ms=!1,Pu=!1;function gd(r){mr===null?mr=[r]:mr.push(r)}function S5(r){ms=!0,gd(r)}function Hr(){if(!Pu&&mr!==null){Pu=!0;var r=0,l=et;try{var u=mr;for(et=1;r<u.length;r++){var d=u[r];do d=d(!0);while(d!==null)}mr=null,ms=!1}catch(g){throw mr!==null&&(mr=mr.slice(r+1)),yf(iu,Hr),g}finally{et=l,Pu=!1}}return null}var il=[],ll=0,ps=null,gs=0,Cn=[],En=0,bi=null,pr=1,gr="";function Si(r,l){il[ll++]=gs,il[ll++]=ps,ps=r,gs=l}function vd(r,l,u){Cn[En++]=pr,Cn[En++]=gr,Cn[En++]=bi,bi=r;var d=pr;r=gr;var g=32-Dn(d)-1;d&=~(1<<g),u+=1;var y=32-Dn(l)+g;if(30<y){var C=g-g%5;y=(d&(1<<C)-1).toString(32),d>>=C,g-=C,pr=1<<32-Dn(l)+g|u<<g|d,gr=y+r}else pr=1<<y|u<<g|d,gr=r}function Fu(r){r.return!==null&&(Si(r,1),vd(r,1,0))}function Ou(r){for(;r===ps;)ps=il[--ll],il[ll]=null,gs=il[--ll],il[ll]=null;for(;r===bi;)bi=Cn[--En],Cn[En]=null,gr=Cn[--En],Cn[En]=null,pr=Cn[--En],Cn[En]=null}var fn=null,dn=null,ct=!1,Fn=null;function yd(r,l){var u=zn(5,null,null,0);u.elementType="DELETED",u.stateNode=l,u.return=r,l=r.deletions,l===null?(r.deletions=[u],r.flags|=16):l.push(u)}function xd(r,l){switch(r.tag){case 5:var u=r.type;return l=l.nodeType!==1||u.toLowerCase()!==l.nodeName.toLowerCase()?null:l,l!==null?(r.stateNode=l,fn=r,dn=Br(l.firstChild),!0):!1;case 6:return l=r.pendingProps===""||l.nodeType!==3?null:l,l!==null?(r.stateNode=l,fn=r,dn=null,!0):!1;case 13:return l=l.nodeType!==8?null:l,l!==null?(u=bi!==null?{id:pr,overflow:gr}:null,r.memoizedState={dehydrated:l,treeContext:u,retryLane:1073741824},u=zn(18,null,null,0),u.stateNode=l,u.return=r,r.child=u,fn=r,dn=null,!0):!1;default:return!1}}function Bu(r){return(r.mode&1)!==0&&(r.flags&128)===0}function _u(r){if(ct){var l=dn;if(l){var u=l;if(!xd(r,l)){if(Bu(r))throw Error(n(418));l=Br(u.nextSibling);var d=fn;l&&xd(r,l)?yd(d,u):(r.flags=r.flags&-4097|2,ct=!1,fn=r)}}else{if(Bu(r))throw Error(n(418));r.flags=r.flags&-4097|2,ct=!1,fn=r}}}function wd(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;fn=r}function vs(r){if(r!==fn)return!1;if(!ct)return wd(r),ct=!0,!1;var l;if((l=r.tag!==3)&&!(l=r.tag!==5)&&(l=r.type,l=l!=="head"&&l!=="body"&&!ju(r.type,r.memoizedProps)),l&&(l=dn)){if(Bu(r))throw kd(),Error(n(418));for(;l;)yd(r,l),l=Br(l.nextSibling)}if(wd(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,l=0;r;){if(r.nodeType===8){var u=r.data;if(u==="/$"){if(l===0){dn=Br(r.nextSibling);break e}l--}else u!=="$"&&u!=="$!"&&u!=="$?"||l++}r=r.nextSibling}dn=null}}else dn=fn?Br(r.stateNode.nextSibling):null;return!0}function kd(){for(var r=dn;r;)r=Br(r.nextSibling)}function al(){dn=fn=null,ct=!1}function $u(r){Fn===null?Fn=[r]:Fn.push(r)}var C5=Y.ReactCurrentBatchConfig;function ta(r,l,u){if(r=u.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(n(309));var d=u.stateNode}if(!d)throw Error(n(147,r));var g=d,y=""+r;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===y?l.ref:(l=function(C){var L=g.refs;C===null?delete L[y]:L[y]=C},l._stringRef=y,l)}if(typeof r!="string")throw Error(n(284));if(!u._owner)throw Error(n(290,r))}return r}function ys(r,l){throw r=Object.prototype.toString.call(l),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":r))}function bd(r){var l=r._init;return l(r._payload)}function Sd(r){function l(U,H){if(r){var W=U.deletions;W===null?(U.deletions=[H],U.flags|=16):W.push(H)}}function u(U,H){if(!r)return null;for(;H!==null;)l(U,H),H=H.sibling;return null}function d(U,H){for(U=new Map;H!==null;)H.key!==null?U.set(H.key,H):U.set(H.index,H),H=H.sibling;return U}function g(U,H){return U=Kr(U,H),U.index=0,U.sibling=null,U}function y(U,H,W){return U.index=W,r?(W=U.alternate,W!==null?(W=W.index,W<H?(U.flags|=2,H):W):(U.flags|=2,H)):(U.flags|=1048576,H)}function C(U){return r&&U.alternate===null&&(U.flags|=2),U}function L(U,H,W,pe){return H===null||H.tag!==6?(H=I0(W,U.mode,pe),H.return=U,H):(H=g(H,W),H.return=U,H)}function B(U,H,W,pe){var ze=W.type;return ze===G?oe(U,H,W.props.children,pe,W.key):H!==null&&(H.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===je&&bd(ze)===H.type)?(pe=g(H,W.props),pe.ref=ta(U,H,W),pe.return=U,pe):(pe=Hs(W.type,W.key,W.props,null,U.mode,pe),pe.ref=ta(U,H,W),pe.return=U,pe)}function X(U,H,W,pe){return H===null||H.tag!==4||H.stateNode.containerInfo!==W.containerInfo||H.stateNode.implementation!==W.implementation?(H=R0(W,U.mode,pe),H.return=U,H):(H=g(H,W.children||[]),H.return=U,H)}function oe(U,H,W,pe,ze){return H===null||H.tag!==7?(H=ji(W,U.mode,pe,ze),H.return=U,H):(H=g(H,W),H.return=U,H)}function ce(U,H,W){if(typeof H=="string"&&H!==""||typeof H=="number")return H=I0(""+H,U.mode,W),H.return=U,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case V:return W=Hs(H.type,H.key,H.props,null,U.mode,W),W.ref=ta(U,null,H),W.return=U,W;case O:return H=R0(H,U.mode,W),H.return=U,H;case je:var pe=H._init;return ce(U,pe(H._payload),W)}if(un(H)||J(H))return H=ji(H,U.mode,W,null),H.return=U,H;ys(U,H)}return null}function se(U,H,W,pe){var ze=H!==null?H.key:null;if(typeof W=="string"&&W!==""||typeof W=="number")return ze!==null?null:L(U,H,""+W,pe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case V:return W.key===ze?B(U,H,W,pe):null;case O:return W.key===ze?X(U,H,W,pe):null;case je:return ze=W._init,se(U,H,ze(W._payload),pe)}if(un(W)||J(W))return ze!==null?null:oe(U,H,W,pe,null);ys(U,W)}return null}function Se(U,H,W,pe,ze){if(typeof pe=="string"&&pe!==""||typeof pe=="number")return U=U.get(W)||null,L(H,U,""+pe,ze);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case V:return U=U.get(pe.key===null?W:pe.key)||null,B(H,U,pe,ze);case O:return U=U.get(pe.key===null?W:pe.key)||null,X(H,U,pe,ze);case je:var Re=pe._init;return Se(U,H,W,Re(pe._payload),ze)}if(un(pe)||J(pe))return U=U.get(W)||null,oe(H,U,pe,ze,null);ys(H,pe)}return null}function Ne(U,H,W,pe){for(var ze=null,Re=null,Le=H,Be=H=0,It=null;Le!==null&&Be<W.length;Be++){Le.index>Be?(It=Le,Le=null):It=Le.sibling;var Ke=se(U,Le,W[Be],pe);if(Ke===null){Le===null&&(Le=It);break}r&&Le&&Ke.alternate===null&&l(U,Le),H=y(Ke,H,Be),Re===null?ze=Ke:Re.sibling=Ke,Re=Ke,Le=It}if(Be===W.length)return u(U,Le),ct&&Si(U,Be),ze;if(Le===null){for(;Be<W.length;Be++)Le=ce(U,W[Be],pe),Le!==null&&(H=y(Le,H,Be),Re===null?ze=Le:Re.sibling=Le,Re=Le);return ct&&Si(U,Be),ze}for(Le=d(U,Le);Be<W.length;Be++)It=Se(Le,U,Be,W[Be],pe),It!==null&&(r&&It.alternate!==null&&Le.delete(It.key===null?Be:It.key),H=y(It,H,Be),Re===null?ze=It:Re.sibling=It,Re=It);return r&&Le.forEach(function(Qr){return l(U,Qr)}),ct&&Si(U,Be),ze}function Ae(U,H,W,pe){var ze=J(W);if(typeof ze!="function")throw Error(n(150));if(W=ze.call(W),W==null)throw Error(n(151));for(var Re=ze=null,Le=H,Be=H=0,It=null,Ke=W.next();Le!==null&&!Ke.done;Be++,Ke=W.next()){Le.index>Be?(It=Le,Le=null):It=Le.sibling;var Qr=se(U,Le,Ke.value,pe);if(Qr===null){Le===null&&(Le=It);break}r&&Le&&Qr.alternate===null&&l(U,Le),H=y(Qr,H,Be),Re===null?ze=Qr:Re.sibling=Qr,Re=Qr,Le=It}if(Ke.done)return u(U,Le),ct&&Si(U,Be),ze;if(Le===null){for(;!Ke.done;Be++,Ke=W.next())Ke=ce(U,Ke.value,pe),Ke!==null&&(H=y(Ke,H,Be),Re===null?ze=Ke:Re.sibling=Ke,Re=Ke);return ct&&Si(U,Be),ze}for(Le=d(U,Le);!Ke.done;Be++,Ke=W.next())Ke=Se(Le,U,Be,Ke.value,pe),Ke!==null&&(r&&Ke.alternate!==null&&Le.delete(Ke.key===null?Be:Ke.key),H=y(Ke,H,Be),Re===null?ze=Ke:Re.sibling=Ke,Re=Ke);return r&&Le.forEach(function(r6){return l(U,r6)}),ct&&Si(U,Be),ze}function wt(U,H,W,pe){if(typeof W=="object"&&W!==null&&W.type===G&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case V:e:{for(var ze=W.key,Re=H;Re!==null;){if(Re.key===ze){if(ze=W.type,ze===G){if(Re.tag===7){u(U,Re.sibling),H=g(Re,W.props.children),H.return=U,U=H;break e}}else if(Re.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===je&&bd(ze)===Re.type){u(U,Re.sibling),H=g(Re,W.props),H.ref=ta(U,Re,W),H.return=U,U=H;break e}u(U,Re);break}else l(U,Re);Re=Re.sibling}W.type===G?(H=ji(W.props.children,U.mode,pe,W.key),H.return=U,U=H):(pe=Hs(W.type,W.key,W.props,null,U.mode,pe),pe.ref=ta(U,H,W),pe.return=U,U=pe)}return C(U);case O:e:{for(Re=W.key;H!==null;){if(H.key===Re)if(H.tag===4&&H.stateNode.containerInfo===W.containerInfo&&H.stateNode.implementation===W.implementation){u(U,H.sibling),H=g(H,W.children||[]),H.return=U,U=H;break e}else{u(U,H);break}else l(U,H);H=H.sibling}H=R0(W,U.mode,pe),H.return=U,U=H}return C(U);case je:return Re=W._init,wt(U,H,Re(W._payload),pe)}if(un(W))return Ne(U,H,W,pe);if(J(W))return Ae(U,H,W,pe);ys(U,W)}return typeof W=="string"&&W!==""||typeof W=="number"?(W=""+W,H!==null&&H.tag===6?(u(U,H.sibling),H=g(H,W),H.return=U,U=H):(u(U,H),H=I0(W,U.mode,pe),H.return=U,U=H),C(U)):u(U,H)}return wt}var sl=Sd(!0),Cd=Sd(!1),xs=_r(null),ws=null,ol=null,Hu=null;function qu(){Hu=ol=ws=null}function Uu(r){var l=xs.current;st(xs),r._currentValue=l}function Vu(r,l,u){for(;r!==null;){var d=r.alternate;if((r.childLanes&l)!==l?(r.childLanes|=l,d!==null&&(d.childLanes|=l)):d!==null&&(d.childLanes&l)!==l&&(d.childLanes|=l),r===u)break;r=r.return}}function ul(r,l){ws=r,Hu=ol=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&l)!==0&&(tn=!0),r.firstContext=null)}function Tn(r){var l=r._currentValue;if(Hu!==r)if(r={context:r,memoizedValue:l,next:null},ol===null){if(ws===null)throw Error(n(308));ol=r,ws.dependencies={lanes:0,firstContext:r}}else ol=ol.next=r;return l}var Ci=null;function Wu(r){Ci===null?Ci=[r]:Ci.push(r)}function Ed(r,l,u,d){var g=l.interleaved;return g===null?(u.next=u,Wu(l)):(u.next=g.next,g.next=u),l.interleaved=u,vr(r,d)}function vr(r,l){r.lanes|=l;var u=r.alternate;for(u!==null&&(u.lanes|=l),u=r,r=r.return;r!==null;)r.childLanes|=l,u=r.alternate,u!==null&&(u.childLanes|=l),u=r,r=r.return;return u.tag===3?u.stateNode:null}var qr=!1;function Gu(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Td(r,l){r=r.updateQueue,l.updateQueue===r&&(l.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function yr(r,l){return{eventTime:r,lane:l,tag:0,payload:null,callback:null,next:null}}function Ur(r,l,u){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(Xe&2)!==0){var g=d.pending;return g===null?l.next=l:(l.next=g.next,g.next=l),d.pending=l,vr(r,u)}return g=d.interleaved,g===null?(l.next=l,Wu(d)):(l.next=g.next,g.next=l),d.interleaved=l,vr(r,u)}function ks(r,l,u){if(l=l.updateQueue,l!==null&&(l=l.shared,(u&4194240)!==0)){var d=l.lanes;d&=r.pendingLanes,u|=d,l.lanes=u,su(r,u)}}function Nd(r,l){var u=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,u===d)){var g=null,y=null;if(u=u.firstBaseUpdate,u!==null){do{var C={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};y===null?g=y=C:y=y.next=C,u=u.next}while(u!==null);y===null?g=y=l:y=y.next=l}else g=y=l;u={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:y,shared:d.shared,effects:d.effects},r.updateQueue=u;return}r=u.lastBaseUpdate,r===null?u.firstBaseUpdate=l:r.next=l,u.lastBaseUpdate=l}function bs(r,l,u,d){var g=r.updateQueue;qr=!1;var y=g.firstBaseUpdate,C=g.lastBaseUpdate,L=g.shared.pending;if(L!==null){g.shared.pending=null;var B=L,X=B.next;B.next=null,C===null?y=X:C.next=X,C=B;var oe=r.alternate;oe!==null&&(oe=oe.updateQueue,L=oe.lastBaseUpdate,L!==C&&(L===null?oe.firstBaseUpdate=X:L.next=X,oe.lastBaseUpdate=B))}if(y!==null){var ce=g.baseState;C=0,oe=X=B=null,L=y;do{var se=L.lane,Se=L.eventTime;if((d&se)===se){oe!==null&&(oe=oe.next={eventTime:Se,lane:0,tag:L.tag,payload:L.payload,callback:L.callback,next:null});e:{var Ne=r,Ae=L;switch(se=l,Se=u,Ae.tag){case 1:if(Ne=Ae.payload,typeof Ne=="function"){ce=Ne.call(Se,ce,se);break e}ce=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=Ae.payload,se=typeof Ne=="function"?Ne.call(Se,ce,se):Ne,se==null)break e;ce=M({},ce,se);break e;case 2:qr=!0}}L.callback!==null&&L.lane!==0&&(r.flags|=64,se=g.effects,se===null?g.effects=[L]:se.push(L))}else Se={eventTime:Se,lane:se,tag:L.tag,payload:L.payload,callback:L.callback,next:null},oe===null?(X=oe=Se,B=ce):oe=oe.next=Se,C|=se;if(L=L.next,L===null){if(L=g.shared.pending,L===null)break;se=L,L=se.next,se.next=null,g.lastBaseUpdate=se,g.shared.pending=null}}while(!0);if(oe===null&&(B=ce),g.baseState=B,g.firstBaseUpdate=X,g.lastBaseUpdate=oe,l=g.shared.interleaved,l!==null){g=l;do C|=g.lane,g=g.next;while(g!==l)}else y===null&&(g.shared.lanes=0);Ni|=C,r.lanes=C,r.memoizedState=ce}}function Ad(r,l,u){if(r=l.effects,l.effects=null,r!==null)for(l=0;l<r.length;l++){var d=r[l],g=d.callback;if(g!==null){if(d.callback=null,d=u,typeof g!="function")throw Error(n(191,g));g.call(d)}}}var na={},er=_r(na),ra=_r(na),ia=_r(na);function Ei(r){if(r===na)throw Error(n(174));return r}function Yu(r,l){switch(lt(ia,l),lt(ra,r),lt(er,na),r=l.nodeType,r){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:ye(null,"");break;default:r=r===8?l.parentNode:l,l=r.namespaceURI||null,r=r.tagName,l=ye(l,r)}st(er),lt(er,l)}function cl(){st(er),st(ra),st(ia)}function zd(r){Ei(ia.current);var l=Ei(er.current),u=ye(l,r.type);l!==u&&(lt(ra,r),lt(er,u))}function Xu(r){ra.current===r&&(st(er),st(ra))}var dt=_r(0);function Ss(r){for(var l=r;l!==null;){if(l.tag===13){var u=l.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Ku=[];function Qu(){for(var r=0;r<Ku.length;r++)Ku[r]._workInProgressVersionPrimary=null;Ku.length=0}var Cs=Y.ReactCurrentDispatcher,Ju=Y.ReactCurrentBatchConfig,Ti=0,mt=null,Tt=null,Mt=null,Es=!1,la=!1,aa=0,E5=0;function Bt(){throw Error(n(321))}function Zu(r,l){if(l===null)return!1;for(var u=0;u<l.length&&u<r.length;u++)if(!Pn(r[u],l[u]))return!1;return!0}function e0(r,l,u,d,g,y){if(Ti=y,mt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Cs.current=r===null||r.memoizedState===null?z5:M5,r=u(d,g),la){y=0;do{if(la=!1,aa=0,25<=y)throw Error(n(301));y+=1,Mt=Tt=null,l.updateQueue=null,Cs.current=j5,r=u(d,g)}while(la)}if(Cs.current=As,l=Tt!==null&&Tt.next!==null,Ti=0,Mt=Tt=mt=null,Es=!1,l)throw Error(n(300));return r}function t0(){var r=aa!==0;return aa=0,r}function tr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?mt.memoizedState=Mt=r:Mt=Mt.next=r,Mt}function Nn(){if(Tt===null){var r=mt.alternate;r=r!==null?r.memoizedState:null}else r=Tt.next;var l=Mt===null?mt.memoizedState:Mt.next;if(l!==null)Mt=l,Tt=r;else{if(r===null)throw Error(n(310));Tt=r,r={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},Mt===null?mt.memoizedState=Mt=r:Mt=Mt.next=r}return Mt}function sa(r,l){return typeof l=="function"?l(r):l}function n0(r){var l=Nn(),u=l.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=r;var d=Tt,g=d.baseQueue,y=u.pending;if(y!==null){if(g!==null){var C=g.next;g.next=y.next,y.next=C}d.baseQueue=g=y,u.pending=null}if(g!==null){y=g.next,d=d.baseState;var L=C=null,B=null,X=y;do{var oe=X.lane;if((Ti&oe)===oe)B!==null&&(B=B.next={lane:0,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),d=X.hasEagerState?X.eagerState:r(d,X.action);else{var ce={lane:oe,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null};B===null?(L=B=ce,C=d):B=B.next=ce,mt.lanes|=oe,Ni|=oe}X=X.next}while(X!==null&&X!==y);B===null?C=d:B.next=L,Pn(d,l.memoizedState)||(tn=!0),l.memoizedState=d,l.baseState=C,l.baseQueue=B,u.lastRenderedState=d}if(r=u.interleaved,r!==null){g=r;do y=g.lane,mt.lanes|=y,Ni|=y,g=g.next;while(g!==r)}else g===null&&(u.lanes=0);return[l.memoizedState,u.dispatch]}function r0(r){var l=Nn(),u=l.queue;if(u===null)throw Error(n(311));u.lastRenderedReducer=r;var d=u.dispatch,g=u.pending,y=l.memoizedState;if(g!==null){u.pending=null;var C=g=g.next;do y=r(y,C.action),C=C.next;while(C!==g);Pn(y,l.memoizedState)||(tn=!0),l.memoizedState=y,l.baseQueue===null&&(l.baseState=y),u.lastRenderedState=y}return[y,d]}function Md(){}function jd(r,l){var u=mt,d=Nn(),g=l(),y=!Pn(d.memoizedState,g);if(y&&(d.memoizedState=g,tn=!0),d=d.queue,i0(Ld.bind(null,u,d,r),[r]),d.getSnapshot!==l||y||Mt!==null&&Mt.memoizedState.tag&1){if(u.flags|=2048,oa(9,Rd.bind(null,u,d,g,l),void 0,null),jt===null)throw Error(n(349));(Ti&30)!==0||Id(u,l,g)}return g}function Id(r,l,u){r.flags|=16384,r={getSnapshot:l,value:u},l=mt.updateQueue,l===null?(l={lastEffect:null,stores:null},mt.updateQueue=l,l.stores=[r]):(u=l.stores,u===null?l.stores=[r]:u.push(r))}function Rd(r,l,u,d){l.value=u,l.getSnapshot=d,Dd(l)&&Pd(r)}function Ld(r,l,u){return u(function(){Dd(l)&&Pd(r)})}function Dd(r){var l=r.getSnapshot;r=r.value;try{var u=l();return!Pn(r,u)}catch{return!0}}function Pd(r){var l=vr(r,1);l!==null&&$n(l,r,1,-1)}function Fd(r){var l=tr();return typeof r=="function"&&(r=r()),l.memoizedState=l.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:r},l.queue=r,r=r.dispatch=A5.bind(null,mt,r),[l.memoizedState,r]}function oa(r,l,u,d){return r={tag:r,create:l,destroy:u,deps:d,next:null},l=mt.updateQueue,l===null?(l={lastEffect:null,stores:null},mt.updateQueue=l,l.lastEffect=r.next=r):(u=l.lastEffect,u===null?l.lastEffect=r.next=r:(d=u.next,u.next=r,r.next=d,l.lastEffect=r)),r}function Od(){return Nn().memoizedState}function Ts(r,l,u,d){var g=tr();mt.flags|=r,g.memoizedState=oa(1|l,u,void 0,d===void 0?null:d)}function Ns(r,l,u,d){var g=Nn();d=d===void 0?null:d;var y=void 0;if(Tt!==null){var C=Tt.memoizedState;if(y=C.destroy,d!==null&&Zu(d,C.deps)){g.memoizedState=oa(l,u,y,d);return}}mt.flags|=r,g.memoizedState=oa(1|l,u,y,d)}function Bd(r,l){return Ts(8390656,8,r,l)}function i0(r,l){return Ns(2048,8,r,l)}function _d(r,l){return Ns(4,2,r,l)}function $d(r,l){return Ns(4,4,r,l)}function Hd(r,l){if(typeof l=="function")return r=r(),l(r),function(){l(null)};if(l!=null)return r=r(),l.current=r,function(){l.current=null}}function qd(r,l,u){return u=u!=null?u.concat([r]):null,Ns(4,4,Hd.bind(null,l,r),u)}function l0(){}function Ud(r,l){var u=Nn();l=l===void 0?null:l;var d=u.memoizedState;return d!==null&&l!==null&&Zu(l,d[1])?d[0]:(u.memoizedState=[r,l],r)}function Vd(r,l){var u=Nn();l=l===void 0?null:l;var d=u.memoizedState;return d!==null&&l!==null&&Zu(l,d[1])?d[0]:(r=r(),u.memoizedState=[r,l],r)}function Wd(r,l,u){return(Ti&21)===0?(r.baseState&&(r.baseState=!1,tn=!0),r.memoizedState=u):(Pn(u,l)||(u=bf(),mt.lanes|=u,Ni|=u,r.baseState=!0),l)}function T5(r,l){var u=et;et=u!==0&&4>u?u:4,r(!0);var d=Ju.transition;Ju.transition={};try{r(!1),l()}finally{et=u,Ju.transition=d}}function Gd(){return Nn().memoizedState}function N5(r,l,u){var d=Yr(r);if(u={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null},Yd(r))Xd(l,u);else if(u=Ed(r,l,u,d),u!==null){var g=Gt();$n(u,r,d,g),Kd(u,l,d)}}function A5(r,l,u){var d=Yr(r),g={lane:d,action:u,hasEagerState:!1,eagerState:null,next:null};if(Yd(r))Xd(l,g);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=l.lastRenderedReducer,y!==null))try{var C=l.lastRenderedState,L=y(C,u);if(g.hasEagerState=!0,g.eagerState=L,Pn(L,C)){var B=l.interleaved;B===null?(g.next=g,Wu(l)):(g.next=B.next,B.next=g),l.interleaved=g;return}}catch{}finally{}u=Ed(r,l,g,d),u!==null&&(g=Gt(),$n(u,r,d,g),Kd(u,l,d))}}function Yd(r){var l=r.alternate;return r===mt||l!==null&&l===mt}function Xd(r,l){la=Es=!0;var u=r.pending;u===null?l.next=l:(l.next=u.next,u.next=l),r.pending=l}function Kd(r,l,u){if((u&4194240)!==0){var d=l.lanes;d&=r.pendingLanes,u|=d,l.lanes=u,su(r,u)}}var As={readContext:Tn,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useInsertionEffect:Bt,useLayoutEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useMutableSource:Bt,useSyncExternalStore:Bt,useId:Bt,unstable_isNewReconciler:!1},z5={readContext:Tn,useCallback:function(r,l){return tr().memoizedState=[r,l===void 0?null:l],r},useContext:Tn,useEffect:Bd,useImperativeHandle:function(r,l,u){return u=u!=null?u.concat([r]):null,Ts(4194308,4,Hd.bind(null,l,r),u)},useLayoutEffect:function(r,l){return Ts(4194308,4,r,l)},useInsertionEffect:function(r,l){return Ts(4,2,r,l)},useMemo:function(r,l){var u=tr();return l=l===void 0?null:l,r=r(),u.memoizedState=[r,l],r},useReducer:function(r,l,u){var d=tr();return l=u!==void 0?u(l):l,d.memoizedState=d.baseState=l,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:l},d.queue=r,r=r.dispatch=N5.bind(null,mt,r),[d.memoizedState,r]},useRef:function(r){var l=tr();return r={current:r},l.memoizedState=r},useState:Fd,useDebugValue:l0,useDeferredValue:function(r){return tr().memoizedState=r},useTransition:function(){var r=Fd(!1),l=r[0];return r=T5.bind(null,r[1]),tr().memoizedState=r,[l,r]},useMutableSource:function(){},useSyncExternalStore:function(r,l,u){var d=mt,g=tr();if(ct){if(u===void 0)throw Error(n(407));u=u()}else{if(u=l(),jt===null)throw Error(n(349));(Ti&30)!==0||Id(d,l,u)}g.memoizedState=u;var y={value:u,getSnapshot:l};return g.queue=y,Bd(Ld.bind(null,d,y,r),[r]),d.flags|=2048,oa(9,Rd.bind(null,d,y,u,l),void 0,null),u},useId:function(){var r=tr(),l=jt.identifierPrefix;if(ct){var u=gr,d=pr;u=(d&~(1<<32-Dn(d)-1)).toString(32)+u,l=":"+l+"R"+u,u=aa++,0<u&&(l+="H"+u.toString(32)),l+=":"}else u=E5++,l=":"+l+"r"+u.toString(32)+":";return r.memoizedState=l},unstable_isNewReconciler:!1},M5={readContext:Tn,useCallback:Ud,useContext:Tn,useEffect:i0,useImperativeHandle:qd,useInsertionEffect:_d,useLayoutEffect:$d,useMemo:Vd,useReducer:n0,useRef:Od,useState:function(){return n0(sa)},useDebugValue:l0,useDeferredValue:function(r){var l=Nn();return Wd(l,Tt.memoizedState,r)},useTransition:function(){var r=n0(sa)[0],l=Nn().memoizedState;return[r,l]},useMutableSource:Md,useSyncExternalStore:jd,useId:Gd,unstable_isNewReconciler:!1},j5={readContext:Tn,useCallback:Ud,useContext:Tn,useEffect:i0,useImperativeHandle:qd,useInsertionEffect:_d,useLayoutEffect:$d,useMemo:Vd,useReducer:r0,useRef:Od,useState:function(){return r0(sa)},useDebugValue:l0,useDeferredValue:function(r){var l=Nn();return Tt===null?l.memoizedState=r:Wd(l,Tt.memoizedState,r)},useTransition:function(){var r=r0(sa)[0],l=Nn().memoizedState;return[r,l]},useMutableSource:Md,useSyncExternalStore:jd,useId:Gd,unstable_isNewReconciler:!1};function On(r,l){if(r&&r.defaultProps){l=M({},l),r=r.defaultProps;for(var u in r)l[u]===void 0&&(l[u]=r[u]);return l}return l}function a0(r,l,u,d){l=r.memoizedState,u=u(d,l),u=u==null?l:M({},l,u),r.memoizedState=u,r.lanes===0&&(r.updateQueue.baseState=u)}var zs={isMounted:function(r){return(r=r._reactInternals)?xi(r)===r:!1},enqueueSetState:function(r,l,u){r=r._reactInternals;var d=Gt(),g=Yr(r),y=yr(d,g);y.payload=l,u!=null&&(y.callback=u),l=Ur(r,y,g),l!==null&&($n(l,r,g,d),ks(l,r,g))},enqueueReplaceState:function(r,l,u){r=r._reactInternals;var d=Gt(),g=Yr(r),y=yr(d,g);y.tag=1,y.payload=l,u!=null&&(y.callback=u),l=Ur(r,y,g),l!==null&&($n(l,r,g,d),ks(l,r,g))},enqueueForceUpdate:function(r,l){r=r._reactInternals;var u=Gt(),d=Yr(r),g=yr(u,d);g.tag=2,l!=null&&(g.callback=l),l=Ur(r,g,d),l!==null&&($n(l,r,d,u),ks(l,r,d))}};function Qd(r,l,u,d,g,y,C){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,y,C):l.prototype&&l.prototype.isPureReactComponent?!Yl(u,d)||!Yl(g,y):!0}function Jd(r,l,u){var d=!1,g=$r,y=l.contextType;return typeof y=="object"&&y!==null?y=Tn(y):(g=en(l)?ki:Ot.current,d=l.contextTypes,y=(d=d!=null)?rl(r,g):$r),l=new l(u,y),r.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=zs,r.stateNode=l,l._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=g,r.__reactInternalMemoizedMaskedChildContext=y),l}function Zd(r,l,u,d){r=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(u,d),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(u,d),l.state!==r&&zs.enqueueReplaceState(l,l.state,null)}function s0(r,l,u,d){var g=r.stateNode;g.props=u,g.state=r.memoizedState,g.refs={},Gu(r);var y=l.contextType;typeof y=="object"&&y!==null?g.context=Tn(y):(y=en(l)?ki:Ot.current,g.context=rl(r,y)),g.state=r.memoizedState,y=l.getDerivedStateFromProps,typeof y=="function"&&(a0(r,l,y,u),g.state=r.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(l=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),l!==g.state&&zs.enqueueReplaceState(g,g.state,null),bs(r,u,g,d),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308)}function hl(r,l){try{var u="",d=l;do u+=xe(d),d=d.return;while(d);var g=u}catch(y){g=`
|
|
39
|
+
Error generating stack: `+y.message+`
|
|
40
|
+
`+y.stack}return{value:r,source:l,stack:g,digest:null}}function o0(r,l,u){return{value:r,source:null,stack:u??null,digest:l??null}}function u0(r,l){try{console.error(l.value)}catch(u){setTimeout(function(){throw u})}}var I5=typeof WeakMap=="function"?WeakMap:Map;function e1(r,l,u){u=yr(-1,u),u.tag=3,u.payload={element:null};var d=l.value;return u.callback=function(){Ps||(Ps=!0,C0=d),u0(r,l)},u}function t1(r,l,u){u=yr(-1,u),u.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var g=l.value;u.payload=function(){return d(g)},u.callback=function(){u0(r,l)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(u.callback=function(){u0(r,l),typeof d!="function"&&(Wr===null?Wr=new Set([this]):Wr.add(this));var C=l.stack;this.componentDidCatch(l.value,{componentStack:C!==null?C:""})}),u}function n1(r,l,u){var d=r.pingCache;if(d===null){d=r.pingCache=new I5;var g=new Set;d.set(l,g)}else g=d.get(l),g===void 0&&(g=new Set,d.set(l,g));g.has(u)||(g.add(u),r=W5.bind(null,r,l,u),l.then(r,r))}function r1(r){do{var l;if((l=r.tag===13)&&(l=r.memoizedState,l=l!==null?l.dehydrated!==null:!0),l)return r;r=r.return}while(r!==null);return null}function i1(r,l,u,d,g){return(r.mode&1)===0?(r===l?r.flags|=65536:(r.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(l=yr(-1,1),l.tag=2,Ur(u,l,1))),u.lanes|=1),r):(r.flags|=65536,r.lanes=g,r)}var R5=Y.ReactCurrentOwner,tn=!1;function Wt(r,l,u,d){l.child=r===null?Cd(l,null,u,d):sl(l,r.child,u,d)}function l1(r,l,u,d,g){u=u.render;var y=l.ref;return ul(l,g),d=e0(r,l,u,d,y,g),u=t0(),r!==null&&!tn?(l.updateQueue=r.updateQueue,l.flags&=-2053,r.lanes&=~g,xr(r,l,g)):(ct&&u&&Fu(l),l.flags|=1,Wt(r,l,d,g),l.child)}function a1(r,l,u,d,g){if(r===null){var y=u.type;return typeof y=="function"&&!j0(y)&&y.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(l.tag=15,l.type=y,s1(r,l,y,d,g)):(r=Hs(u.type,null,d,l,l.mode,g),r.ref=l.ref,r.return=l,l.child=r)}if(y=r.child,(r.lanes&g)===0){var C=y.memoizedProps;if(u=u.compare,u=u!==null?u:Yl,u(C,d)&&r.ref===l.ref)return xr(r,l,g)}return l.flags|=1,r=Kr(y,d),r.ref=l.ref,r.return=l,l.child=r}function s1(r,l,u,d,g){if(r!==null){var y=r.memoizedProps;if(Yl(y,d)&&r.ref===l.ref)if(tn=!1,l.pendingProps=d=y,(r.lanes&g)!==0)(r.flags&131072)!==0&&(tn=!0);else return l.lanes=r.lanes,xr(r,l,g)}return c0(r,l,u,d,g)}function o1(r,l,u){var d=l.pendingProps,g=d.children,y=r!==null?r.memoizedState:null;if(d.mode==="hidden")if((l.mode&1)===0)l.memoizedState={baseLanes:0,cachePool:null,transitions:null},lt(dl,mn),mn|=u;else{if((u&1073741824)===0)return r=y!==null?y.baseLanes|u:u,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:r,cachePool:null,transitions:null},l.updateQueue=null,lt(dl,mn),mn|=r,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=y!==null?y.baseLanes:u,lt(dl,mn),mn|=d}else y!==null?(d=y.baseLanes|u,l.memoizedState=null):d=u,lt(dl,mn),mn|=d;return Wt(r,l,g,u),l.child}function u1(r,l){var u=l.ref;(r===null&&u!==null||r!==null&&r.ref!==u)&&(l.flags|=512,l.flags|=2097152)}function c0(r,l,u,d,g){var y=en(u)?ki:Ot.current;return y=rl(l,y),ul(l,g),u=e0(r,l,u,d,y,g),d=t0(),r!==null&&!tn?(l.updateQueue=r.updateQueue,l.flags&=-2053,r.lanes&=~g,xr(r,l,g)):(ct&&d&&Fu(l),l.flags|=1,Wt(r,l,u,g),l.child)}function c1(r,l,u,d,g){if(en(u)){var y=!0;ds(l)}else y=!1;if(ul(l,g),l.stateNode===null)js(r,l),Jd(l,u,d),s0(l,u,d,g),d=!0;else if(r===null){var C=l.stateNode,L=l.memoizedProps;C.props=L;var B=C.context,X=u.contextType;typeof X=="object"&&X!==null?X=Tn(X):(X=en(u)?ki:Ot.current,X=rl(l,X));var oe=u.getDerivedStateFromProps,ce=typeof oe=="function"||typeof C.getSnapshotBeforeUpdate=="function";ce||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(L!==d||B!==X)&&Zd(l,C,d,X),qr=!1;var se=l.memoizedState;C.state=se,bs(l,d,C,g),B=l.memoizedState,L!==d||se!==B||Zt.current||qr?(typeof oe=="function"&&(a0(l,u,oe,d),B=l.memoizedState),(L=qr||Qd(l,u,L,d,se,B,X))?(ce||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(l.flags|=4194308)):(typeof C.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=d,l.memoizedState=B),C.props=d,C.state=B,C.context=X,d=L):(typeof C.componentDidMount=="function"&&(l.flags|=4194308),d=!1)}else{C=l.stateNode,Td(r,l),L=l.memoizedProps,X=l.type===l.elementType?L:On(l.type,L),C.props=X,ce=l.pendingProps,se=C.context,B=u.contextType,typeof B=="object"&&B!==null?B=Tn(B):(B=en(u)?ki:Ot.current,B=rl(l,B));var Se=u.getDerivedStateFromProps;(oe=typeof Se=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(L!==ce||se!==B)&&Zd(l,C,d,B),qr=!1,se=l.memoizedState,C.state=se,bs(l,d,C,g);var Ne=l.memoizedState;L!==ce||se!==Ne||Zt.current||qr?(typeof Se=="function"&&(a0(l,u,Se,d),Ne=l.memoizedState),(X=qr||Qd(l,u,X,d,se,Ne,B)||!1)?(oe||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(d,Ne,B),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(d,Ne,B)),typeof C.componentDidUpdate=="function"&&(l.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof C.componentDidUpdate!="function"||L===r.memoizedProps&&se===r.memoizedState||(l.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||L===r.memoizedProps&&se===r.memoizedState||(l.flags|=1024),l.memoizedProps=d,l.memoizedState=Ne),C.props=d,C.state=Ne,C.context=B,d=X):(typeof C.componentDidUpdate!="function"||L===r.memoizedProps&&se===r.memoizedState||(l.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||L===r.memoizedProps&&se===r.memoizedState||(l.flags|=1024),d=!1)}return h0(r,l,u,d,y,g)}function h0(r,l,u,d,g,y){u1(r,l);var C=(l.flags&128)!==0;if(!d&&!C)return g&&pd(l,u,!1),xr(r,l,y);d=l.stateNode,R5.current=l;var L=C&&typeof u.getDerivedStateFromError!="function"?null:d.render();return l.flags|=1,r!==null&&C?(l.child=sl(l,r.child,null,y),l.child=sl(l,null,L,y)):Wt(r,l,L,y),l.memoizedState=d.state,g&&pd(l,u,!0),l.child}function h1(r){var l=r.stateNode;l.pendingContext?dd(r,l.pendingContext,l.pendingContext!==l.context):l.context&&dd(r,l.context,!1),Yu(r,l.containerInfo)}function f1(r,l,u,d,g){return al(),$u(g),l.flags|=256,Wt(r,l,u,d),l.child}var f0={dehydrated:null,treeContext:null,retryLane:0};function d0(r){return{baseLanes:r,cachePool:null,transitions:null}}function d1(r,l,u){var d=l.pendingProps,g=dt.current,y=!1,C=(l.flags&128)!==0,L;if((L=C)||(L=r!==null&&r.memoizedState===null?!1:(g&2)!==0),L?(y=!0,l.flags&=-129):(r===null||r.memoizedState!==null)&&(g|=1),lt(dt,g&1),r===null)return _u(l),r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((l.mode&1)===0?l.lanes=1:r.data==="$!"?l.lanes=8:l.lanes=1073741824,null):(C=d.children,r=d.fallback,y?(d=l.mode,y=l.child,C={mode:"hidden",children:C},(d&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=C):y=qs(C,d,0,null),r=ji(r,d,u,null),y.return=l,r.return=l,y.sibling=r,l.child=y,l.child.memoizedState=d0(u),l.memoizedState=f0,r):m0(l,C));if(g=r.memoizedState,g!==null&&(L=g.dehydrated,L!==null))return L5(r,l,C,d,L,g,u);if(y){y=d.fallback,C=l.mode,g=r.child,L=g.sibling;var B={mode:"hidden",children:d.children};return(C&1)===0&&l.child!==g?(d=l.child,d.childLanes=0,d.pendingProps=B,l.deletions=null):(d=Kr(g,B),d.subtreeFlags=g.subtreeFlags&14680064),L!==null?y=Kr(L,y):(y=ji(y,C,u,null),y.flags|=2),y.return=l,d.return=l,d.sibling=y,l.child=d,d=y,y=l.child,C=r.child.memoizedState,C=C===null?d0(u):{baseLanes:C.baseLanes|u,cachePool:null,transitions:C.transitions},y.memoizedState=C,y.childLanes=r.childLanes&~u,l.memoizedState=f0,d}return y=r.child,r=y.sibling,d=Kr(y,{mode:"visible",children:d.children}),(l.mode&1)===0&&(d.lanes=u),d.return=l,d.sibling=null,r!==null&&(u=l.deletions,u===null?(l.deletions=[r],l.flags|=16):u.push(r)),l.child=d,l.memoizedState=null,d}function m0(r,l){return l=qs({mode:"visible",children:l},r.mode,0,null),l.return=r,r.child=l}function Ms(r,l,u,d){return d!==null&&$u(d),sl(l,r.child,null,u),r=m0(l,l.pendingProps.children),r.flags|=2,l.memoizedState=null,r}function L5(r,l,u,d,g,y,C){if(u)return l.flags&256?(l.flags&=-257,d=o0(Error(n(422))),Ms(r,l,C,d)):l.memoizedState!==null?(l.child=r.child,l.flags|=128,null):(y=d.fallback,g=l.mode,d=qs({mode:"visible",children:d.children},g,0,null),y=ji(y,g,C,null),y.flags|=2,d.return=l,y.return=l,d.sibling=y,l.child=d,(l.mode&1)!==0&&sl(l,r.child,null,C),l.child.memoizedState=d0(C),l.memoizedState=f0,y);if((l.mode&1)===0)return Ms(r,l,C,null);if(g.data==="$!"){if(d=g.nextSibling&&g.nextSibling.dataset,d)var L=d.dgst;return d=L,y=Error(n(419)),d=o0(y,d,void 0),Ms(r,l,C,d)}if(L=(C&r.childLanes)!==0,tn||L){if(d=jt,d!==null){switch(C&-C){case 4:g=2;break;case 16:g=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:g=32;break;case 536870912:g=268435456;break;default:g=0}g=(g&(d.suspendedLanes|C))!==0?0:g,g!==0&&g!==y.retryLane&&(y.retryLane=g,vr(r,g),$n(d,r,g,-1))}return M0(),d=o0(Error(n(421))),Ms(r,l,C,d)}return g.data==="$?"?(l.flags|=128,l.child=r.child,l=G5.bind(null,r),g._reactRetry=l,null):(r=y.treeContext,dn=Br(g.nextSibling),fn=l,ct=!0,Fn=null,r!==null&&(Cn[En++]=pr,Cn[En++]=gr,Cn[En++]=bi,pr=r.id,gr=r.overflow,bi=l),l=m0(l,d.children),l.flags|=4096,l)}function m1(r,l,u){r.lanes|=l;var d=r.alternate;d!==null&&(d.lanes|=l),Vu(r.return,l,u)}function p0(r,l,u,d,g){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:d,tail:u,tailMode:g}:(y.isBackwards=l,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=u,y.tailMode=g)}function p1(r,l,u){var d=l.pendingProps,g=d.revealOrder,y=d.tail;if(Wt(r,l,d.children,u),d=dt.current,(d&2)!==0)d=d&1|2,l.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=l.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&m1(r,u,l);else if(r.tag===19)m1(r,u,l);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===l)break e;for(;r.sibling===null;){if(r.return===null||r.return===l)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if(lt(dt,d),(l.mode&1)===0)l.memoizedState=null;else switch(g){case"forwards":for(u=l.child,g=null;u!==null;)r=u.alternate,r!==null&&Ss(r)===null&&(g=u),u=u.sibling;u=g,u===null?(g=l.child,l.child=null):(g=u.sibling,u.sibling=null),p0(l,!1,g,u,y);break;case"backwards":for(u=null,g=l.child,l.child=null;g!==null;){if(r=g.alternate,r!==null&&Ss(r)===null){l.child=g;break}r=g.sibling,g.sibling=u,u=g,g=r}p0(l,!0,u,null,y);break;case"together":p0(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function js(r,l){(l.mode&1)===0&&r!==null&&(r.alternate=null,l.alternate=null,l.flags|=2)}function xr(r,l,u){if(r!==null&&(l.dependencies=r.dependencies),Ni|=l.lanes,(u&l.childLanes)===0)return null;if(r!==null&&l.child!==r.child)throw Error(n(153));if(l.child!==null){for(r=l.child,u=Kr(r,r.pendingProps),l.child=u,u.return=l;r.sibling!==null;)r=r.sibling,u=u.sibling=Kr(r,r.pendingProps),u.return=l;u.sibling=null}return l.child}function D5(r,l,u){switch(l.tag){case 3:h1(l),al();break;case 5:zd(l);break;case 1:en(l.type)&&ds(l);break;case 4:Yu(l,l.stateNode.containerInfo);break;case 10:var d=l.type._context,g=l.memoizedProps.value;lt(xs,d._currentValue),d._currentValue=g;break;case 13:if(d=l.memoizedState,d!==null)return d.dehydrated!==null?(lt(dt,dt.current&1),l.flags|=128,null):(u&l.child.childLanes)!==0?d1(r,l,u):(lt(dt,dt.current&1),r=xr(r,l,u),r!==null?r.sibling:null);lt(dt,dt.current&1);break;case 19:if(d=(u&l.childLanes)!==0,(r.flags&128)!==0){if(d)return p1(r,l,u);l.flags|=128}if(g=l.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),lt(dt,dt.current),d)break;return null;case 22:case 23:return l.lanes=0,o1(r,l,u)}return xr(r,l,u)}var g1,g0,v1,y1;g1=function(r,l){for(var u=l.child;u!==null;){if(u.tag===5||u.tag===6)r.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},g0=function(){},v1=function(r,l,u,d){var g=r.memoizedProps;if(g!==d){r=l.stateNode,Ei(er.current);var y=null;switch(u){case"input":g=Xn(r,g),d=Xn(r,d),y=[];break;case"select":g=M({},g,{value:void 0}),d=M({},d,{value:void 0}),y=[];break;case"textarea":g=pi(r,g),d=pi(r,d),y=[];break;default:typeof g.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=cs)}Lt(u,d);var C;u=null;for(X in g)if(!d.hasOwnProperty(X)&&g.hasOwnProperty(X)&&g[X]!=null)if(X==="style"){var L=g[X];for(C in L)L.hasOwnProperty(C)&&(u||(u={}),u[C]="")}else X!=="dangerouslySetInnerHTML"&&X!=="children"&&X!=="suppressContentEditableWarning"&&X!=="suppressHydrationWarning"&&X!=="autoFocus"&&(a.hasOwnProperty(X)?y||(y=[]):(y=y||[]).push(X,null));for(X in d){var B=d[X];if(L=g!=null?g[X]:void 0,d.hasOwnProperty(X)&&B!==L&&(B!=null||L!=null))if(X==="style")if(L){for(C in L)!L.hasOwnProperty(C)||B&&B.hasOwnProperty(C)||(u||(u={}),u[C]="");for(C in B)B.hasOwnProperty(C)&&L[C]!==B[C]&&(u||(u={}),u[C]=B[C])}else u||(y||(y=[]),y.push(X,u)),u=B;else X==="dangerouslySetInnerHTML"?(B=B?B.__html:void 0,L=L?L.__html:void 0,B!=null&&L!==B&&(y=y||[]).push(X,B)):X==="children"?typeof B!="string"&&typeof B!="number"||(y=y||[]).push(X,""+B):X!=="suppressContentEditableWarning"&&X!=="suppressHydrationWarning"&&(a.hasOwnProperty(X)?(B!=null&&X==="onScroll"&&at("scroll",r),y||L===B||(y=[])):(y=y||[]).push(X,B))}u&&(y=y||[]).push("style",u);var X=y;(l.updateQueue=X)&&(l.flags|=4)}},y1=function(r,l,u,d){u!==d&&(l.flags|=4)};function ua(r,l){if(!ct)switch(r.tailMode){case"hidden":l=r.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?r.tail=null:u.sibling=null;break;case"collapsed":u=r.tail;for(var d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?l||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function _t(r){var l=r.alternate!==null&&r.alternate.child===r.child,u=0,d=0;if(l)for(var g=r.child;g!==null;)u|=g.lanes|g.childLanes,d|=g.subtreeFlags&14680064,d|=g.flags&14680064,g.return=r,g=g.sibling;else for(g=r.child;g!==null;)u|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=r,g=g.sibling;return r.subtreeFlags|=d,r.childLanes=u,l}function P5(r,l,u){var d=l.pendingProps;switch(Ou(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(l),null;case 1:return en(l.type)&&fs(),_t(l),null;case 3:return d=l.stateNode,cl(),st(Zt),st(Ot),Qu(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(vs(l)?l.flags|=4:r===null||r.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Fn!==null&&(N0(Fn),Fn=null))),g0(r,l),_t(l),null;case 5:Xu(l);var g=Ei(ia.current);if(u=l.type,r!==null&&l.stateNode!=null)v1(r,l,u,d,g),r.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!d){if(l.stateNode===null)throw Error(n(166));return _t(l),null}if(r=Ei(er.current),vs(l)){d=l.stateNode,u=l.type;var y=l.memoizedProps;switch(d[Zn]=l,d[Zl]=y,r=(l.mode&1)!==0,u){case"dialog":at("cancel",d),at("close",d);break;case"iframe":case"object":case"embed":at("load",d);break;case"video":case"audio":for(g=0;g<Kl.length;g++)at(Kl[g],d);break;case"source":at("error",d);break;case"img":case"image":case"link":at("error",d),at("load",d);break;case"details":at("toggle",d);break;case"input":fi(d,y),at("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!y.multiple},at("invalid",d);break;case"textarea":jr(d,y),at("invalid",d)}Lt(u,y),g=null;for(var C in y)if(y.hasOwnProperty(C)){var L=y[C];C==="children"?typeof L=="string"?d.textContent!==L&&(y.suppressHydrationWarning!==!0&&us(d.textContent,L,r),g=["children",L]):typeof L=="number"&&d.textContent!==""+L&&(y.suppressHydrationWarning!==!0&&us(d.textContent,L,r),g=["children",""+L]):a.hasOwnProperty(C)&&L!=null&&C==="onScroll"&&at("scroll",d)}switch(u){case"input":bn(d),mi(d,y,!0);break;case"textarea":bn(d),vi(d);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(d.onclick=cs)}d=g,l.updateQueue=d,d!==null&&(l.flags|=4)}else{C=g.nodeType===9?g:g.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=ee(u)),r==="http://www.w3.org/1999/xhtml"?u==="script"?(r=C.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=C.createElement(u,{is:d.is}):(r=C.createElement(u),u==="select"&&(C=r,d.multiple?C.multiple=!0:d.size&&(C.size=d.size))):r=C.createElementNS(r,u),r[Zn]=l,r[Zl]=d,g1(r,l,!1,!1),l.stateNode=r;e:{switch(C=Qn(u,d),u){case"dialog":at("cancel",r),at("close",r),g=d;break;case"iframe":case"object":case"embed":at("load",r),g=d;break;case"video":case"audio":for(g=0;g<Kl.length;g++)at(Kl[g],r);g=d;break;case"source":at("error",r),g=d;break;case"img":case"image":case"link":at("error",r),at("load",r),g=d;break;case"details":at("toggle",r),g=d;break;case"input":fi(r,d),g=Xn(r,d),at("invalid",r);break;case"option":g=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},g=M({},d,{value:void 0}),at("invalid",r);break;case"textarea":jr(r,d),g=pi(r,d),at("invalid",r);break;default:g=d}Lt(u,g),L=g;for(y in L)if(L.hasOwnProperty(y)){var B=L[y];y==="style"?Ir(r,B):y==="dangerouslySetInnerHTML"?(B=B?B.__html:void 0,B!=null&&qe(r,B)):y==="children"?typeof B=="string"?(u!=="textarea"||B!=="")&&Ye(r,B):typeof B=="number"&&Ye(r,""+B):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(a.hasOwnProperty(y)?B!=null&&y==="onScroll"&&at("scroll",r):B!=null&&_(r,y,B,C))}switch(u){case"input":bn(r),mi(r,d,!1);break;case"textarea":bn(r),vi(r);break;case"option":d.value!=null&&r.setAttribute("value",""+Pe(d.value));break;case"select":r.multiple=!!d.multiple,y=d.value,y!=null?Kn(r,!!d.multiple,y,!1):d.defaultValue!=null&&Kn(r,!!d.multiple,d.defaultValue,!0);break;default:typeof g.onClick=="function"&&(r.onclick=cs)}switch(u){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(l.flags|=4)}l.ref!==null&&(l.flags|=512,l.flags|=2097152)}return _t(l),null;case 6:if(r&&l.stateNode!=null)y1(r,l,r.memoizedProps,d);else{if(typeof d!="string"&&l.stateNode===null)throw Error(n(166));if(u=Ei(ia.current),Ei(er.current),vs(l)){if(d=l.stateNode,u=l.memoizedProps,d[Zn]=l,(y=d.nodeValue!==u)&&(r=fn,r!==null))switch(r.tag){case 3:us(d.nodeValue,u,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&us(d.nodeValue,u,(r.mode&1)!==0)}y&&(l.flags|=4)}else d=(u.nodeType===9?u:u.ownerDocument).createTextNode(d),d[Zn]=l,l.stateNode=d}return _t(l),null;case 13:if(st(dt),d=l.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(ct&&dn!==null&&(l.mode&1)!==0&&(l.flags&128)===0)kd(),al(),l.flags|=98560,y=!1;else if(y=vs(l),d!==null&&d.dehydrated!==null){if(r===null){if(!y)throw Error(n(318));if(y=l.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[Zn]=l}else al(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;_t(l),y=!1}else Fn!==null&&(N0(Fn),Fn=null),y=!0;if(!y)return l.flags&65536?l:null}return(l.flags&128)!==0?(l.lanes=u,l):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(l.child.flags|=8192,(l.mode&1)!==0&&(r===null||(dt.current&1)!==0?Nt===0&&(Nt=3):M0())),l.updateQueue!==null&&(l.flags|=4),_t(l),null);case 4:return cl(),g0(r,l),r===null&&Ql(l.stateNode.containerInfo),_t(l),null;case 10:return Uu(l.type._context),_t(l),null;case 17:return en(l.type)&&fs(),_t(l),null;case 19:if(st(dt),y=l.memoizedState,y===null)return _t(l),null;if(d=(l.flags&128)!==0,C=y.rendering,C===null)if(d)ua(y,!1);else{if(Nt!==0||r!==null&&(r.flags&128)!==0)for(r=l.child;r!==null;){if(C=Ss(r),C!==null){for(l.flags|=128,ua(y,!1),d=C.updateQueue,d!==null&&(l.updateQueue=d,l.flags|=4),l.subtreeFlags=0,d=u,u=l.child;u!==null;)y=u,r=d,y.flags&=14680066,C=y.alternate,C===null?(y.childLanes=0,y.lanes=r,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=C.childLanes,y.lanes=C.lanes,y.child=C.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=C.memoizedProps,y.memoizedState=C.memoizedState,y.updateQueue=C.updateQueue,y.type=C.type,r=C.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),u=u.sibling;return lt(dt,dt.current&1|2),l.child}r=r.sibling}y.tail!==null&&xt()>ml&&(l.flags|=128,d=!0,ua(y,!1),l.lanes=4194304)}else{if(!d)if(r=Ss(C),r!==null){if(l.flags|=128,d=!0,u=r.updateQueue,u!==null&&(l.updateQueue=u,l.flags|=4),ua(y,!0),y.tail===null&&y.tailMode==="hidden"&&!C.alternate&&!ct)return _t(l),null}else 2*xt()-y.renderingStartTime>ml&&u!==1073741824&&(l.flags|=128,d=!0,ua(y,!1),l.lanes=4194304);y.isBackwards?(C.sibling=l.child,l.child=C):(u=y.last,u!==null?u.sibling=C:l.child=C,y.last=C)}return y.tail!==null?(l=y.tail,y.rendering=l,y.tail=l.sibling,y.renderingStartTime=xt(),l.sibling=null,u=dt.current,lt(dt,d?u&1|2:u&1),l):(_t(l),null);case 22:case 23:return z0(),d=l.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(l.flags|=8192),d&&(l.mode&1)!==0?(mn&1073741824)!==0&&(_t(l),l.subtreeFlags&6&&(l.flags|=8192)):_t(l),null;case 24:return null;case 25:return null}throw Error(n(156,l.tag))}function F5(r,l){switch(Ou(l),l.tag){case 1:return en(l.type)&&fs(),r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 3:return cl(),st(Zt),st(Ot),Qu(),r=l.flags,(r&65536)!==0&&(r&128)===0?(l.flags=r&-65537|128,l):null;case 5:return Xu(l),null;case 13:if(st(dt),r=l.memoizedState,r!==null&&r.dehydrated!==null){if(l.alternate===null)throw Error(n(340));al()}return r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 19:return st(dt),null;case 4:return cl(),null;case 10:return Uu(l.type._context),null;case 22:case 23:return z0(),null;case 24:return null;default:return null}}var Is=!1,$t=!1,O5=typeof WeakSet=="function"?WeakSet:Set,Te=null;function fl(r,l){var u=r.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(d){vt(r,l,d)}else u.current=null}function v0(r,l,u){try{u()}catch(d){vt(r,l,d)}}var x1=!1;function B5(r,l){if(zu=Ja,r=Qf(),ku(r)){if("selectionStart"in r)var u={start:r.selectionStart,end:r.selectionEnd};else e:{u=(u=r.ownerDocument)&&u.defaultView||window;var d=u.getSelection&&u.getSelection();if(d&&d.rangeCount!==0){u=d.anchorNode;var g=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{u.nodeType,y.nodeType}catch{u=null;break e}var C=0,L=-1,B=-1,X=0,oe=0,ce=r,se=null;t:for(;;){for(var Se;ce!==u||g!==0&&ce.nodeType!==3||(L=C+g),ce!==y||d!==0&&ce.nodeType!==3||(B=C+d),ce.nodeType===3&&(C+=ce.nodeValue.length),(Se=ce.firstChild)!==null;)se=ce,ce=Se;for(;;){if(ce===r)break t;if(se===u&&++X===g&&(L=C),se===y&&++oe===d&&(B=C),(Se=ce.nextSibling)!==null)break;ce=se,se=ce.parentNode}ce=Se}u=L===-1||B===-1?null:{start:L,end:B}}else u=null}u=u||{start:0,end:0}}else u=null;for(Mu={focusedElem:r,selectionRange:u},Ja=!1,Te=l;Te!==null;)if(l=Te,r=l.child,(l.subtreeFlags&1028)!==0&&r!==null)r.return=l,Te=r;else for(;Te!==null;){l=Te;try{var Ne=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(Ne!==null){var Ae=Ne.memoizedProps,wt=Ne.memoizedState,U=l.stateNode,H=U.getSnapshotBeforeUpdate(l.elementType===l.type?Ae:On(l.type,Ae),wt);U.__reactInternalSnapshotBeforeUpdate=H}break;case 3:var W=l.stateNode.containerInfo;W.nodeType===1?W.textContent="":W.nodeType===9&&W.documentElement&&W.removeChild(W.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(pe){vt(l,l.return,pe)}if(r=l.sibling,r!==null){r.return=l.return,Te=r;break}Te=l.return}return Ne=x1,x1=!1,Ne}function ca(r,l,u){var d=l.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var g=d=d.next;do{if((g.tag&r)===r){var y=g.destroy;g.destroy=void 0,y!==void 0&&v0(l,u,y)}g=g.next}while(g!==d)}}function Rs(r,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var u=l=l.next;do{if((u.tag&r)===r){var d=u.create;u.destroy=d()}u=u.next}while(u!==l)}}function y0(r){var l=r.ref;if(l!==null){var u=r.stateNode;switch(r.tag){case 5:r=u;break;default:r=u}typeof l=="function"?l(r):l.current=r}}function w1(r){var l=r.alternate;l!==null&&(r.alternate=null,w1(l)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(l=r.stateNode,l!==null&&(delete l[Zn],delete l[Zl],delete l[Lu],delete l[k5],delete l[b5])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function k1(r){return r.tag===5||r.tag===3||r.tag===4}function b1(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||k1(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.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 x0(r,l,u){var d=r.tag;if(d===5||d===6)r=r.stateNode,l?u.nodeType===8?u.parentNode.insertBefore(r,l):u.insertBefore(r,l):(u.nodeType===8?(l=u.parentNode,l.insertBefore(r,u)):(l=u,l.appendChild(r)),u=u._reactRootContainer,u!=null||l.onclick!==null||(l.onclick=cs));else if(d!==4&&(r=r.child,r!==null))for(x0(r,l,u),r=r.sibling;r!==null;)x0(r,l,u),r=r.sibling}function w0(r,l,u){var d=r.tag;if(d===5||d===6)r=r.stateNode,l?u.insertBefore(r,l):u.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(w0(r,l,u),r=r.sibling;r!==null;)w0(r,l,u),r=r.sibling}var Dt=null,Bn=!1;function Vr(r,l,u){for(u=u.child;u!==null;)S1(r,l,u),u=u.sibling}function S1(r,l,u){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(Wa,u)}catch{}switch(u.tag){case 5:$t||fl(u,l);case 6:var d=Dt,g=Bn;Dt=null,Vr(r,l,u),Dt=d,Bn=g,Dt!==null&&(Bn?(r=Dt,u=u.stateNode,r.nodeType===8?r.parentNode.removeChild(u):r.removeChild(u)):Dt.removeChild(u.stateNode));break;case 18:Dt!==null&&(Bn?(r=Dt,u=u.stateNode,r.nodeType===8?Ru(r.parentNode,u):r.nodeType===1&&Ru(r,u),Hl(r)):Ru(Dt,u.stateNode));break;case 4:d=Dt,g=Bn,Dt=u.stateNode.containerInfo,Bn=!0,Vr(r,l,u),Dt=d,Bn=g;break;case 0:case 11:case 14:case 15:if(!$t&&(d=u.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){g=d=d.next;do{var y=g,C=y.destroy;y=y.tag,C!==void 0&&((y&2)!==0||(y&4)!==0)&&v0(u,l,C),g=g.next}while(g!==d)}Vr(r,l,u);break;case 1:if(!$t&&(fl(u,l),d=u.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=u.memoizedProps,d.state=u.memoizedState,d.componentWillUnmount()}catch(L){vt(u,l,L)}Vr(r,l,u);break;case 21:Vr(r,l,u);break;case 22:u.mode&1?($t=(d=$t)||u.memoizedState!==null,Vr(r,l,u),$t=d):Vr(r,l,u);break;default:Vr(r,l,u)}}function C1(r){var l=r.updateQueue;if(l!==null){r.updateQueue=null;var u=r.stateNode;u===null&&(u=r.stateNode=new O5),l.forEach(function(d){var g=Y5.bind(null,r,d);u.has(d)||(u.add(d),d.then(g,g))})}}function _n(r,l){var u=l.deletions;if(u!==null)for(var d=0;d<u.length;d++){var g=u[d];try{var y=r,C=l,L=C;e:for(;L!==null;){switch(L.tag){case 5:Dt=L.stateNode,Bn=!1;break e;case 3:Dt=L.stateNode.containerInfo,Bn=!0;break e;case 4:Dt=L.stateNode.containerInfo,Bn=!0;break e}L=L.return}if(Dt===null)throw Error(n(160));S1(y,C,g),Dt=null,Bn=!1;var B=g.alternate;B!==null&&(B.return=null),g.return=null}catch(X){vt(g,l,X)}}if(l.subtreeFlags&12854)for(l=l.child;l!==null;)E1(l,r),l=l.sibling}function E1(r,l){var u=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(_n(l,r),nr(r),d&4){try{ca(3,r,r.return),Rs(3,r)}catch(Ae){vt(r,r.return,Ae)}try{ca(5,r,r.return)}catch(Ae){vt(r,r.return,Ae)}}break;case 1:_n(l,r),nr(r),d&512&&u!==null&&fl(u,u.return);break;case 5:if(_n(l,r),nr(r),d&512&&u!==null&&fl(u,u.return),r.flags&32){var g=r.stateNode;try{Ye(g,"")}catch(Ae){vt(r,r.return,Ae)}}if(d&4&&(g=r.stateNode,g!=null)){var y=r.memoizedProps,C=u!==null?u.memoizedProps:y,L=r.type,B=r.updateQueue;if(r.updateQueue=null,B!==null)try{L==="input"&&y.type==="radio"&&y.name!=null&&di(g,y),Qn(L,C);var X=Qn(L,y);for(C=0;C<B.length;C+=2){var oe=B[C],ce=B[C+1];oe==="style"?Ir(g,ce):oe==="dangerouslySetInnerHTML"?qe(g,ce):oe==="children"?Ye(g,ce):_(g,oe,ce,X)}switch(L){case"input":Mr(g,y);break;case"textarea":gi(g,y);break;case"select":var se=g._wrapperState.wasMultiple;g._wrapperState.wasMultiple=!!y.multiple;var Se=y.value;Se!=null?Kn(g,!!y.multiple,Se,!1):se!==!!y.multiple&&(y.defaultValue!=null?Kn(g,!!y.multiple,y.defaultValue,!0):Kn(g,!!y.multiple,y.multiple?[]:"",!1))}g[Zl]=y}catch(Ae){vt(r,r.return,Ae)}}break;case 6:if(_n(l,r),nr(r),d&4){if(r.stateNode===null)throw Error(n(162));g=r.stateNode,y=r.memoizedProps;try{g.nodeValue=y}catch(Ae){vt(r,r.return,Ae)}}break;case 3:if(_n(l,r),nr(r),d&4&&u!==null&&u.memoizedState.isDehydrated)try{Hl(l.containerInfo)}catch(Ae){vt(r,r.return,Ae)}break;case 4:_n(l,r),nr(r);break;case 13:_n(l,r),nr(r),g=r.child,g.flags&8192&&(y=g.memoizedState!==null,g.stateNode.isHidden=y,!y||g.alternate!==null&&g.alternate.memoizedState!==null||(S0=xt())),d&4&&C1(r);break;case 22:if(oe=u!==null&&u.memoizedState!==null,r.mode&1?($t=(X=$t)||oe,_n(l,r),$t=X):_n(l,r),nr(r),d&8192){if(X=r.memoizedState!==null,(r.stateNode.isHidden=X)&&!oe&&(r.mode&1)!==0)for(Te=r,oe=r.child;oe!==null;){for(ce=Te=oe;Te!==null;){switch(se=Te,Se=se.child,se.tag){case 0:case 11:case 14:case 15:ca(4,se,se.return);break;case 1:fl(se,se.return);var Ne=se.stateNode;if(typeof Ne.componentWillUnmount=="function"){d=se,u=se.return;try{l=d,Ne.props=l.memoizedProps,Ne.state=l.memoizedState,Ne.componentWillUnmount()}catch(Ae){vt(d,u,Ae)}}break;case 5:fl(se,se.return);break;case 22:if(se.memoizedState!==null){A1(ce);continue}}Se!==null?(Se.return=se,Te=Se):A1(ce)}oe=oe.sibling}e:for(oe=null,ce=r;;){if(ce.tag===5){if(oe===null){oe=ce;try{g=ce.stateNode,X?(y=g.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(L=ce.stateNode,B=ce.memoizedProps.style,C=B!=null&&B.hasOwnProperty("display")?B.display:null,L.style.display=Sn("display",C))}catch(Ae){vt(r,r.return,Ae)}}}else if(ce.tag===6){if(oe===null)try{ce.stateNode.nodeValue=X?"":ce.memoizedProps}catch(Ae){vt(r,r.return,Ae)}}else if((ce.tag!==22&&ce.tag!==23||ce.memoizedState===null||ce===r)&&ce.child!==null){ce.child.return=ce,ce=ce.child;continue}if(ce===r)break e;for(;ce.sibling===null;){if(ce.return===null||ce.return===r)break e;oe===ce&&(oe=null),ce=ce.return}oe===ce&&(oe=null),ce.sibling.return=ce.return,ce=ce.sibling}}break;case 19:_n(l,r),nr(r),d&4&&C1(r);break;case 21:break;default:_n(l,r),nr(r)}}function nr(r){var l=r.flags;if(l&2){try{e:{for(var u=r.return;u!==null;){if(k1(u)){var d=u;break e}u=u.return}throw Error(n(160))}switch(d.tag){case 5:var g=d.stateNode;d.flags&32&&(Ye(g,""),d.flags&=-33);var y=b1(r);w0(r,y,g);break;case 3:case 4:var C=d.stateNode.containerInfo,L=b1(r);x0(r,L,C);break;default:throw Error(n(161))}}catch(B){vt(r,r.return,B)}r.flags&=-3}l&4096&&(r.flags&=-4097)}function _5(r,l,u){Te=r,T1(r)}function T1(r,l,u){for(var d=(r.mode&1)!==0;Te!==null;){var g=Te,y=g.child;if(g.tag===22&&d){var C=g.memoizedState!==null||Is;if(!C){var L=g.alternate,B=L!==null&&L.memoizedState!==null||$t;L=Is;var X=$t;if(Is=C,($t=B)&&!X)for(Te=g;Te!==null;)C=Te,B=C.child,C.tag===22&&C.memoizedState!==null?z1(g):B!==null?(B.return=C,Te=B):z1(g);for(;y!==null;)Te=y,T1(y),y=y.sibling;Te=g,Is=L,$t=X}N1(r)}else(g.subtreeFlags&8772)!==0&&y!==null?(y.return=g,Te=y):N1(r)}}function N1(r){for(;Te!==null;){var l=Te;if((l.flags&8772)!==0){var u=l.alternate;try{if((l.flags&8772)!==0)switch(l.tag){case 0:case 11:case 15:$t||Rs(5,l);break;case 1:var d=l.stateNode;if(l.flags&4&&!$t)if(u===null)d.componentDidMount();else{var g=l.elementType===l.type?u.memoizedProps:On(l.type,u.memoizedProps);d.componentDidUpdate(g,u.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var y=l.updateQueue;y!==null&&Ad(l,y,d);break;case 3:var C=l.updateQueue;if(C!==null){if(u=null,l.child!==null)switch(l.child.tag){case 5:u=l.child.stateNode;break;case 1:u=l.child.stateNode}Ad(l,C,u)}break;case 5:var L=l.stateNode;if(u===null&&l.flags&4){u=L;var B=l.memoizedProps;switch(l.type){case"button":case"input":case"select":case"textarea":B.autoFocus&&u.focus();break;case"img":B.src&&(u.src=B.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(l.memoizedState===null){var X=l.alternate;if(X!==null){var oe=X.memoizedState;if(oe!==null){var ce=oe.dehydrated;ce!==null&&Hl(ce)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}$t||l.flags&512&&y0(l)}catch(se){vt(l,l.return,se)}}if(l===r){Te=null;break}if(u=l.sibling,u!==null){u.return=l.return,Te=u;break}Te=l.return}}function A1(r){for(;Te!==null;){var l=Te;if(l===r){Te=null;break}var u=l.sibling;if(u!==null){u.return=l.return,Te=u;break}Te=l.return}}function z1(r){for(;Te!==null;){var l=Te;try{switch(l.tag){case 0:case 11:case 15:var u=l.return;try{Rs(4,l)}catch(B){vt(l,u,B)}break;case 1:var d=l.stateNode;if(typeof d.componentDidMount=="function"){var g=l.return;try{d.componentDidMount()}catch(B){vt(l,g,B)}}var y=l.return;try{y0(l)}catch(B){vt(l,y,B)}break;case 5:var C=l.return;try{y0(l)}catch(B){vt(l,C,B)}}}catch(B){vt(l,l.return,B)}if(l===r){Te=null;break}var L=l.sibling;if(L!==null){L.return=l.return,Te=L;break}Te=l.return}}var $5=Math.ceil,Ls=Y.ReactCurrentDispatcher,k0=Y.ReactCurrentOwner,An=Y.ReactCurrentBatchConfig,Xe=0,jt=null,kt=null,Pt=0,mn=0,dl=_r(0),Nt=0,ha=null,Ni=0,Ds=0,b0=0,fa=null,nn=null,S0=0,ml=1/0,wr=null,Ps=!1,C0=null,Wr=null,Fs=!1,Gr=null,Os=0,da=0,E0=null,Bs=-1,_s=0;function Gt(){return(Xe&6)!==0?xt():Bs!==-1?Bs:Bs=xt()}function Yr(r){return(r.mode&1)===0?1:(Xe&2)!==0&&Pt!==0?Pt&-Pt:C5.transition!==null?(_s===0&&(_s=bf()),_s):(r=et,r!==0||(r=window.event,r=r===void 0?16:jf(r.type)),r)}function $n(r,l,u,d){if(50<da)throw da=0,E0=null,Error(n(185));Fl(r,u,d),((Xe&2)===0||r!==jt)&&(r===jt&&((Xe&2)===0&&(Ds|=u),Nt===4&&Xr(r,Pt)),rn(r,d),u===1&&Xe===0&&(l.mode&1)===0&&(ml=xt()+500,ms&&Hr()))}function rn(r,l){var u=r.callbackNode;C3(r,l);var d=Xa(r,r===jt?Pt:0);if(d===0)u!==null&&xf(u),r.callbackNode=null,r.callbackPriority=0;else if(l=d&-d,r.callbackPriority!==l){if(u!=null&&xf(u),l===1)r.tag===0?S5(j1.bind(null,r)):gd(j1.bind(null,r)),x5(function(){(Xe&6)===0&&Hr()}),u=null;else{switch(Sf(d)){case 1:u=iu;break;case 4:u=wf;break;case 16:u=Va;break;case 536870912:u=kf;break;default:u=Va}u=B1(u,M1.bind(null,r))}r.callbackPriority=l,r.callbackNode=u}}function M1(r,l){if(Bs=-1,_s=0,(Xe&6)!==0)throw Error(n(327));var u=r.callbackNode;if(pl()&&r.callbackNode!==u)return null;var d=Xa(r,r===jt?Pt:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||l)l=$s(r,d);else{l=d;var g=Xe;Xe|=2;var y=R1();(jt!==r||Pt!==l)&&(wr=null,ml=xt()+500,zi(r,l));do try{U5();break}catch(L){I1(r,L)}while(!0);qu(),Ls.current=y,Xe=g,kt!==null?l=0:(jt=null,Pt=0,l=Nt)}if(l!==0){if(l===2&&(g=lu(r),g!==0&&(d=g,l=T0(r,g))),l===1)throw u=ha,zi(r,0),Xr(r,d),rn(r,xt()),u;if(l===6)Xr(r,d);else{if(g=r.current.alternate,(d&30)===0&&!H5(g)&&(l=$s(r,d),l===2&&(y=lu(r),y!==0&&(d=y,l=T0(r,y))),l===1))throw u=ha,zi(r,0),Xr(r,d),rn(r,xt()),u;switch(r.finishedWork=g,r.finishedLanes=d,l){case 0:case 1:throw Error(n(345));case 2:Mi(r,nn,wr);break;case 3:if(Xr(r,d),(d&130023424)===d&&(l=S0+500-xt(),10<l)){if(Xa(r,0)!==0)break;if(g=r.suspendedLanes,(g&d)!==d){Gt(),r.pingedLanes|=r.suspendedLanes&g;break}r.timeoutHandle=Iu(Mi.bind(null,r,nn,wr),l);break}Mi(r,nn,wr);break;case 4:if(Xr(r,d),(d&4194240)===d)break;for(l=r.eventTimes,g=-1;0<d;){var C=31-Dn(d);y=1<<C,C=l[C],C>g&&(g=C),d&=~y}if(d=g,d=xt()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*$5(d/1960))-d,10<d){r.timeoutHandle=Iu(Mi.bind(null,r,nn,wr),d);break}Mi(r,nn,wr);break;case 5:Mi(r,nn,wr);break;default:throw Error(n(329))}}}return rn(r,xt()),r.callbackNode===u?M1.bind(null,r):null}function T0(r,l){var u=fa;return r.current.memoizedState.isDehydrated&&(zi(r,l).flags|=256),r=$s(r,l),r!==2&&(l=nn,nn=u,l!==null&&N0(l)),r}function N0(r){nn===null?nn=r:nn.push.apply(nn,r)}function H5(r){for(var l=r;;){if(l.flags&16384){var u=l.updateQueue;if(u!==null&&(u=u.stores,u!==null))for(var d=0;d<u.length;d++){var g=u[d],y=g.getSnapshot;g=g.value;try{if(!Pn(y(),g))return!1}catch{return!1}}}if(u=l.child,l.subtreeFlags&16384&&u!==null)u.return=l,l=u;else{if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Xr(r,l){for(l&=~b0,l&=~Ds,r.suspendedLanes|=l,r.pingedLanes&=~l,r=r.expirationTimes;0<l;){var u=31-Dn(l),d=1<<u;r[u]=-1,l&=~d}}function j1(r){if((Xe&6)!==0)throw Error(n(327));pl();var l=Xa(r,0);if((l&1)===0)return rn(r,xt()),null;var u=$s(r,l);if(r.tag!==0&&u===2){var d=lu(r);d!==0&&(l=d,u=T0(r,d))}if(u===1)throw u=ha,zi(r,0),Xr(r,l),rn(r,xt()),u;if(u===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=l,Mi(r,nn,wr),rn(r,xt()),null}function A0(r,l){var u=Xe;Xe|=1;try{return r(l)}finally{Xe=u,Xe===0&&(ml=xt()+500,ms&&Hr())}}function Ai(r){Gr!==null&&Gr.tag===0&&(Xe&6)===0&&pl();var l=Xe;Xe|=1;var u=An.transition,d=et;try{if(An.transition=null,et=1,r)return r()}finally{et=d,An.transition=u,Xe=l,(Xe&6)===0&&Hr()}}function z0(){mn=dl.current,st(dl)}function zi(r,l){r.finishedWork=null,r.finishedLanes=0;var u=r.timeoutHandle;if(u!==-1&&(r.timeoutHandle=-1,y5(u)),kt!==null)for(u=kt.return;u!==null;){var d=u;switch(Ou(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&fs();break;case 3:cl(),st(Zt),st(Ot),Qu();break;case 5:Xu(d);break;case 4:cl();break;case 13:st(dt);break;case 19:st(dt);break;case 10:Uu(d.type._context);break;case 22:case 23:z0()}u=u.return}if(jt=r,kt=r=Kr(r.current,null),Pt=mn=l,Nt=0,ha=null,b0=Ds=Ni=0,nn=fa=null,Ci!==null){for(l=0;l<Ci.length;l++)if(u=Ci[l],d=u.interleaved,d!==null){u.interleaved=null;var g=d.next,y=u.pending;if(y!==null){var C=y.next;y.next=g,d.next=C}u.pending=d}Ci=null}return r}function I1(r,l){do{var u=kt;try{if(qu(),Cs.current=As,Es){for(var d=mt.memoizedState;d!==null;){var g=d.queue;g!==null&&(g.pending=null),d=d.next}Es=!1}if(Ti=0,Mt=Tt=mt=null,la=!1,aa=0,k0.current=null,u===null||u.return===null){Nt=1,ha=l,kt=null;break}e:{var y=r,C=u.return,L=u,B=l;if(l=Pt,L.flags|=32768,B!==null&&typeof B=="object"&&typeof B.then=="function"){var X=B,oe=L,ce=oe.tag;if((oe.mode&1)===0&&(ce===0||ce===11||ce===15)){var se=oe.alternate;se?(oe.updateQueue=se.updateQueue,oe.memoizedState=se.memoizedState,oe.lanes=se.lanes):(oe.updateQueue=null,oe.memoizedState=null)}var Se=r1(C);if(Se!==null){Se.flags&=-257,i1(Se,C,L,y,l),Se.mode&1&&n1(y,X,l),l=Se,B=X;var Ne=l.updateQueue;if(Ne===null){var Ae=new Set;Ae.add(B),l.updateQueue=Ae}else Ne.add(B);break e}else{if((l&1)===0){n1(y,X,l),M0();break e}B=Error(n(426))}}else if(ct&&L.mode&1){var wt=r1(C);if(wt!==null){(wt.flags&65536)===0&&(wt.flags|=256),i1(wt,C,L,y,l),$u(hl(B,L));break e}}y=B=hl(B,L),Nt!==4&&(Nt=2),fa===null?fa=[y]:fa.push(y),y=C;do{switch(y.tag){case 3:y.flags|=65536,l&=-l,y.lanes|=l;var U=e1(y,B,l);Nd(y,U);break e;case 1:L=B;var H=y.type,W=y.stateNode;if((y.flags&128)===0&&(typeof H.getDerivedStateFromError=="function"||W!==null&&typeof W.componentDidCatch=="function"&&(Wr===null||!Wr.has(W)))){y.flags|=65536,l&=-l,y.lanes|=l;var pe=t1(y,L,l);Nd(y,pe);break e}}y=y.return}while(y!==null)}D1(u)}catch(ze){l=ze,kt===u&&u!==null&&(kt=u=u.return);continue}break}while(!0)}function R1(){var r=Ls.current;return Ls.current=As,r===null?As:r}function M0(){(Nt===0||Nt===3||Nt===2)&&(Nt=4),jt===null||(Ni&268435455)===0&&(Ds&268435455)===0||Xr(jt,Pt)}function $s(r,l){var u=Xe;Xe|=2;var d=R1();(jt!==r||Pt!==l)&&(wr=null,zi(r,l));do try{q5();break}catch(g){I1(r,g)}while(!0);if(qu(),Xe=u,Ls.current=d,kt!==null)throw Error(n(261));return jt=null,Pt=0,Nt}function q5(){for(;kt!==null;)L1(kt)}function U5(){for(;kt!==null&&!p3();)L1(kt)}function L1(r){var l=O1(r.alternate,r,mn);r.memoizedProps=r.pendingProps,l===null?D1(r):kt=l,k0.current=null}function D1(r){var l=r;do{var u=l.alternate;if(r=l.return,(l.flags&32768)===0){if(u=P5(u,l,mn),u!==null){kt=u;return}}else{if(u=F5(u,l),u!==null){u.flags&=32767,kt=u;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Nt=6,kt=null;return}}if(l=l.sibling,l!==null){kt=l;return}kt=l=r}while(l!==null);Nt===0&&(Nt=5)}function Mi(r,l,u){var d=et,g=An.transition;try{An.transition=null,et=1,V5(r,l,u,d)}finally{An.transition=g,et=d}return null}function V5(r,l,u,d){do pl();while(Gr!==null);if((Xe&6)!==0)throw Error(n(327));u=r.finishedWork;var g=r.finishedLanes;if(u===null)return null;if(r.finishedWork=null,r.finishedLanes=0,u===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var y=u.lanes|u.childLanes;if(E3(r,y),r===jt&&(kt=jt=null,Pt=0),(u.subtreeFlags&2064)===0&&(u.flags&2064)===0||Fs||(Fs=!0,B1(Va,function(){return pl(),null})),y=(u.flags&15990)!==0,(u.subtreeFlags&15990)!==0||y){y=An.transition,An.transition=null;var C=et;et=1;var L=Xe;Xe|=4,k0.current=null,B5(r,u),E1(u,r),h5(Mu),Ja=!!zu,Mu=zu=null,r.current=u,_5(u),g3(),Xe=L,et=C,An.transition=y}else r.current=u;if(Fs&&(Fs=!1,Gr=r,Os=g),y=r.pendingLanes,y===0&&(Wr=null),x3(u.stateNode),rn(r,xt()),l!==null)for(d=r.onRecoverableError,u=0;u<l.length;u++)g=l[u],d(g.value,{componentStack:g.stack,digest:g.digest});if(Ps)throw Ps=!1,r=C0,C0=null,r;return(Os&1)!==0&&r.tag!==0&&pl(),y=r.pendingLanes,(y&1)!==0?r===E0?da++:(da=0,E0=r):da=0,Hr(),null}function pl(){if(Gr!==null){var r=Sf(Os),l=An.transition,u=et;try{if(An.transition=null,et=16>r?16:r,Gr===null)var d=!1;else{if(r=Gr,Gr=null,Os=0,(Xe&6)!==0)throw Error(n(331));var g=Xe;for(Xe|=4,Te=r.current;Te!==null;){var y=Te,C=y.child;if((Te.flags&16)!==0){var L=y.deletions;if(L!==null){for(var B=0;B<L.length;B++){var X=L[B];for(Te=X;Te!==null;){var oe=Te;switch(oe.tag){case 0:case 11:case 15:ca(8,oe,y)}var ce=oe.child;if(ce!==null)ce.return=oe,Te=ce;else for(;Te!==null;){oe=Te;var se=oe.sibling,Se=oe.return;if(w1(oe),oe===X){Te=null;break}if(se!==null){se.return=Se,Te=se;break}Te=Se}}}var Ne=y.alternate;if(Ne!==null){var Ae=Ne.child;if(Ae!==null){Ne.child=null;do{var wt=Ae.sibling;Ae.sibling=null,Ae=wt}while(Ae!==null)}}Te=y}}if((y.subtreeFlags&2064)!==0&&C!==null)C.return=y,Te=C;else e:for(;Te!==null;){if(y=Te,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:ca(9,y,y.return)}var U=y.sibling;if(U!==null){U.return=y.return,Te=U;break e}Te=y.return}}var H=r.current;for(Te=H;Te!==null;){C=Te;var W=C.child;if((C.subtreeFlags&2064)!==0&&W!==null)W.return=C,Te=W;else e:for(C=H;Te!==null;){if(L=Te,(L.flags&2048)!==0)try{switch(L.tag){case 0:case 11:case 15:Rs(9,L)}}catch(ze){vt(L,L.return,ze)}if(L===C){Te=null;break e}var pe=L.sibling;if(pe!==null){pe.return=L.return,Te=pe;break e}Te=L.return}}if(Xe=g,Hr(),Jn&&typeof Jn.onPostCommitFiberRoot=="function")try{Jn.onPostCommitFiberRoot(Wa,r)}catch{}d=!0}return d}finally{et=u,An.transition=l}}return!1}function P1(r,l,u){l=hl(u,l),l=e1(r,l,1),r=Ur(r,l,1),l=Gt(),r!==null&&(Fl(r,1,l),rn(r,l))}function vt(r,l,u){if(r.tag===3)P1(r,r,u);else for(;l!==null;){if(l.tag===3){P1(l,r,u);break}else if(l.tag===1){var d=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Wr===null||!Wr.has(d))){r=hl(u,r),r=t1(l,r,1),l=Ur(l,r,1),r=Gt(),l!==null&&(Fl(l,1,r),rn(l,r));break}}l=l.return}}function W5(r,l,u){var d=r.pingCache;d!==null&&d.delete(l),l=Gt(),r.pingedLanes|=r.suspendedLanes&u,jt===r&&(Pt&u)===u&&(Nt===4||Nt===3&&(Pt&130023424)===Pt&&500>xt()-S0?zi(r,0):b0|=u),rn(r,l)}function F1(r,l){l===0&&((r.mode&1)===0?l=1:(l=Ya,Ya<<=1,(Ya&130023424)===0&&(Ya=4194304)));var u=Gt();r=vr(r,l),r!==null&&(Fl(r,l,u),rn(r,u))}function G5(r){var l=r.memoizedState,u=0;l!==null&&(u=l.retryLane),F1(r,u)}function Y5(r,l){var u=0;switch(r.tag){case 13:var d=r.stateNode,g=r.memoizedState;g!==null&&(u=g.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(l),F1(r,u)}var O1;O1=function(r,l,u){if(r!==null)if(r.memoizedProps!==l.pendingProps||Zt.current)tn=!0;else{if((r.lanes&u)===0&&(l.flags&128)===0)return tn=!1,D5(r,l,u);tn=(r.flags&131072)!==0}else tn=!1,ct&&(l.flags&1048576)!==0&&vd(l,gs,l.index);switch(l.lanes=0,l.tag){case 2:var d=l.type;js(r,l),r=l.pendingProps;var g=rl(l,Ot.current);ul(l,u),g=e0(null,l,d,r,g,u);var y=t0();return l.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,en(d)?(y=!0,ds(l)):y=!1,l.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,Gu(l),g.updater=zs,l.stateNode=g,g._reactInternals=l,s0(l,d,r,u),l=h0(null,l,d,!0,y,u)):(l.tag=0,ct&&y&&Fu(l),Wt(null,l,g,u),l=l.child),l;case 16:d=l.elementType;e:{switch(js(r,l),r=l.pendingProps,g=d._init,d=g(d._payload),l.type=d,g=l.tag=K5(d),r=On(d,r),g){case 0:l=c0(null,l,d,r,u);break e;case 1:l=c1(null,l,d,r,u);break e;case 11:l=l1(null,l,d,r,u);break e;case 14:l=a1(null,l,d,On(d.type,r),u);break e}throw Error(n(306,d,""))}return l;case 0:return d=l.type,g=l.pendingProps,g=l.elementType===d?g:On(d,g),c0(r,l,d,g,u);case 1:return d=l.type,g=l.pendingProps,g=l.elementType===d?g:On(d,g),c1(r,l,d,g,u);case 3:e:{if(h1(l),r===null)throw Error(n(387));d=l.pendingProps,y=l.memoizedState,g=y.element,Td(r,l),bs(l,d,null,u);var C=l.memoizedState;if(d=C.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},l.updateQueue.baseState=y,l.memoizedState=y,l.flags&256){g=hl(Error(n(423)),l),l=f1(r,l,d,u,g);break e}else if(d!==g){g=hl(Error(n(424)),l),l=f1(r,l,d,u,g);break e}else for(dn=Br(l.stateNode.containerInfo.firstChild),fn=l,ct=!0,Fn=null,u=Cd(l,null,d,u),l.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(al(),d===g){l=xr(r,l,u);break e}Wt(r,l,d,u)}l=l.child}return l;case 5:return zd(l),r===null&&_u(l),d=l.type,g=l.pendingProps,y=r!==null?r.memoizedProps:null,C=g.children,ju(d,g)?C=null:y!==null&&ju(d,y)&&(l.flags|=32),u1(r,l),Wt(r,l,C,u),l.child;case 6:return r===null&&_u(l),null;case 13:return d1(r,l,u);case 4:return Yu(l,l.stateNode.containerInfo),d=l.pendingProps,r===null?l.child=sl(l,null,d,u):Wt(r,l,d,u),l.child;case 11:return d=l.type,g=l.pendingProps,g=l.elementType===d?g:On(d,g),l1(r,l,d,g,u);case 7:return Wt(r,l,l.pendingProps,u),l.child;case 8:return Wt(r,l,l.pendingProps.children,u),l.child;case 12:return Wt(r,l,l.pendingProps.children,u),l.child;case 10:e:{if(d=l.type._context,g=l.pendingProps,y=l.memoizedProps,C=g.value,lt(xs,d._currentValue),d._currentValue=C,y!==null)if(Pn(y.value,C)){if(y.children===g.children&&!Zt.current){l=xr(r,l,u);break e}}else for(y=l.child,y!==null&&(y.return=l);y!==null;){var L=y.dependencies;if(L!==null){C=y.child;for(var B=L.firstContext;B!==null;){if(B.context===d){if(y.tag===1){B=yr(-1,u&-u),B.tag=2;var X=y.updateQueue;if(X!==null){X=X.shared;var oe=X.pending;oe===null?B.next=B:(B.next=oe.next,oe.next=B),X.pending=B}}y.lanes|=u,B=y.alternate,B!==null&&(B.lanes|=u),Vu(y.return,u,l),L.lanes|=u;break}B=B.next}}else if(y.tag===10)C=y.type===l.type?null:y.child;else if(y.tag===18){if(C=y.return,C===null)throw Error(n(341));C.lanes|=u,L=C.alternate,L!==null&&(L.lanes|=u),Vu(C,u,l),C=y.sibling}else C=y.child;if(C!==null)C.return=y;else for(C=y;C!==null;){if(C===l){C=null;break}if(y=C.sibling,y!==null){y.return=C.return,C=y;break}C=C.return}y=C}Wt(r,l,g.children,u),l=l.child}return l;case 9:return g=l.type,d=l.pendingProps.children,ul(l,u),g=Tn(g),d=d(g),l.flags|=1,Wt(r,l,d,u),l.child;case 14:return d=l.type,g=On(d,l.pendingProps),g=On(d.type,g),a1(r,l,d,g,u);case 15:return s1(r,l,l.type,l.pendingProps,u);case 17:return d=l.type,g=l.pendingProps,g=l.elementType===d?g:On(d,g),js(r,l),l.tag=1,en(d)?(r=!0,ds(l)):r=!1,ul(l,u),Jd(l,d,g),s0(l,d,g,u),h0(null,l,d,!0,r,u);case 19:return p1(r,l,u);case 22:return o1(r,l,u)}throw Error(n(156,l.tag))};function B1(r,l){return yf(r,l)}function X5(r,l,u,d){this.tag=r,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,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 zn(r,l,u,d){return new X5(r,l,u,d)}function j0(r){return r=r.prototype,!(!r||!r.isReactComponent)}function K5(r){if(typeof r=="function")return j0(r)?1:0;if(r!=null){if(r=r.$$typeof,r===ie)return 11;if(r===le)return 14}return 2}function Kr(r,l){var u=r.alternate;return u===null?(u=zn(r.tag,l,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u.alternate=r,r.alternate=u):(u.pendingProps=l,u.type=r.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=r.flags&14680064,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue,l=r.dependencies,u.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u}function Hs(r,l,u,d,g,y){var C=2;if(d=r,typeof r=="function")j0(r)&&(C=1);else if(typeof r=="string")C=5;else e:switch(r){case G:return ji(u.children,g,y,l);case te:C=8,g|=8;break;case re:return r=zn(12,u,l,g|2),r.elementType=re,r.lanes=y,r;case Ee:return r=zn(13,u,l,g),r.elementType=Ee,r.lanes=y,r;case ge:return r=zn(19,u,l,g),r.elementType=ge,r.lanes=y,r;case Q:return qs(u,g,y,l);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case q:C=10;break e;case fe:C=9;break e;case ie:C=11;break e;case le:C=14;break e;case je:C=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return l=zn(C,u,l,g),l.elementType=r,l.type=d,l.lanes=y,l}function ji(r,l,u,d){return r=zn(7,r,d,l),r.lanes=u,r}function qs(r,l,u,d){return r=zn(22,r,d,l),r.elementType=Q,r.lanes=u,r.stateNode={isHidden:!1},r}function I0(r,l,u){return r=zn(6,r,null,l),r.lanes=u,r}function R0(r,l,u){return l=zn(4,r.children!==null?r.children:[],r.key,l),l.lanes=u,l.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},l}function Q5(r,l,u,d,g){this.tag=l,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=au(0),this.expirationTimes=au(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=au(0),this.identifierPrefix=d,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function L0(r,l,u,d,g,y,C,L,B){return r=new Q5(r,l,u,L,B),l===1?(l=1,y===!0&&(l|=8)):l=0,y=zn(3,null,null,l),r.current=y,y.stateNode=r,y.memoizedState={element:d,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gu(y),r}function J5(r,l,u){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:d==null?null:""+d,children:r,containerInfo:l,implementation:u}}function _1(r){if(!r)return $r;r=r._reactInternals;e:{if(xi(r)!==r||r.tag!==1)throw Error(n(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(en(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(n(171))}if(r.tag===1){var u=r.type;if(en(u))return md(r,u,l)}return l}function $1(r,l,u,d,g,y,C,L,B){return r=L0(u,d,!0,r,g,y,C,L,B),r.context=_1(null),u=r.current,d=Gt(),g=Yr(u),y=yr(d,g),y.callback=l??null,Ur(u,y,g),r.current.lanes=g,Fl(r,g,d),rn(r,d),r}function Us(r,l,u,d){var g=l.current,y=Gt(),C=Yr(g);return u=_1(u),l.context===null?l.context=u:l.pendingContext=u,l=yr(y,C),l.payload={element:r},d=d===void 0?null:d,d!==null&&(l.callback=d),r=Ur(g,l,C),r!==null&&($n(r,g,C,y),ks(r,g,C)),C}function Vs(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function H1(r,l){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<l?u:l}}function D0(r,l){H1(r,l),(r=r.alternate)&&H1(r,l)}function Z5(){return null}var q1=typeof reportError=="function"?reportError:function(r){console.error(r)};function P0(r){this._internalRoot=r}Ws.prototype.render=P0.prototype.render=function(r){var l=this._internalRoot;if(l===null)throw Error(n(409));Us(r,l,null,null)},Ws.prototype.unmount=P0.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var l=r.containerInfo;Ai(function(){Us(null,r,null,null)}),l[dr]=null}};function Ws(r){this._internalRoot=r}Ws.prototype.unstable_scheduleHydration=function(r){if(r){var l=Tf();r={blockedOn:null,target:r,priority:l};for(var u=0;u<Pr.length&&l!==0&&l<Pr[u].priority;u++);Pr.splice(u,0,r),u===0&&zf(r)}};function F0(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Gs(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function U1(){}function e6(r,l,u,d,g){if(g){if(typeof d=="function"){var y=d;d=function(){var X=Vs(C);y.call(X)}}var C=$1(l,d,r,0,null,!1,!1,"",U1);return r._reactRootContainer=C,r[dr]=C.current,Ql(r.nodeType===8?r.parentNode:r),Ai(),C}for(;g=r.lastChild;)r.removeChild(g);if(typeof d=="function"){var L=d;d=function(){var X=Vs(B);L.call(X)}}var B=L0(r,0,!1,null,null,!1,!1,"",U1);return r._reactRootContainer=B,r[dr]=B.current,Ql(r.nodeType===8?r.parentNode:r),Ai(function(){Us(l,B,u,d)}),B}function Ys(r,l,u,d,g){var y=u._reactRootContainer;if(y){var C=y;if(typeof g=="function"){var L=g;g=function(){var B=Vs(C);L.call(B)}}Us(l,C,r,g)}else C=e6(u,l,r,g,d);return Vs(C)}Cf=function(r){switch(r.tag){case 3:var l=r.stateNode;if(l.current.memoizedState.isDehydrated){var u=Pl(l.pendingLanes);u!==0&&(su(l,u|1),rn(l,xt()),(Xe&6)===0&&(ml=xt()+500,Hr()))}break;case 13:Ai(function(){var d=vr(r,1);if(d!==null){var g=Gt();$n(d,r,1,g)}}),D0(r,1)}},ou=function(r){if(r.tag===13){var l=vr(r,134217728);if(l!==null){var u=Gt();$n(l,r,134217728,u)}D0(r,134217728)}},Ef=function(r){if(r.tag===13){var l=Yr(r),u=vr(r,l);if(u!==null){var d=Gt();$n(u,r,l,d)}D0(r,l)}},Tf=function(){return et},Nf=function(r,l){var u=et;try{return et=r,l()}finally{et=u}},eu=function(r,l,u){switch(l){case"input":if(Mr(r,u),l=u.name,u.type==="radio"&&l!=null){for(u=r;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),l=0;l<u.length;l++){var d=u[l];if(d!==r&&d.form===r.form){var g=hs(d);if(!g)throw Error(n(90));hi(d),Mr(d,g)}}}break;case"textarea":gi(r,u);break;case"select":l=u.value,l!=null&&Kn(r,!!u.multiple,l,!1)}},hf=A0,ff=Ai;var t6={usingClientEntryPoint:!1,Events:[ea,tl,hs,uf,cf,A0]},ma={findFiberByHostInstance:wi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},n6={bundleType:ma.bundleType,version:ma.version,rendererPackageName:ma.rendererPackageName,rendererConfig:ma.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=gf(r),r===null?null:r.stateNode},findFiberByHostInstance:ma.findFiberByHostInstance||Z5,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xs.isDisabled&&Xs.supportsFiber)try{Wa=Xs.inject(n6),Jn=Xs}catch{}}return ln.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=t6,ln.createPortal=function(r,l){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!F0(l))throw Error(n(200));return J5(r,l,null,u)},ln.createRoot=function(r,l){if(!F0(r))throw Error(n(299));var u=!1,d="",g=q1;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onRecoverableError!==void 0&&(g=l.onRecoverableError)),l=L0(r,1,!1,null,null,u,!1,d,g),r[dr]=l.current,Ql(r.nodeType===8?r.parentNode:r),new P0(l)},ln.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var l=r._reactInternals;if(l===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=gf(l),r=r===null?null:r.stateNode,r},ln.flushSync=function(r){return Ai(r)},ln.hydrate=function(r,l,u){if(!Gs(l))throw Error(n(200));return Ys(null,r,l,!0,u)},ln.hydrateRoot=function(r,l,u){if(!F0(r))throw Error(n(405));var d=u!=null&&u.hydratedSources||null,g=!1,y="",C=q1;if(u!=null&&(u.unstable_strictMode===!0&&(g=!0),u.identifierPrefix!==void 0&&(y=u.identifierPrefix),u.onRecoverableError!==void 0&&(C=u.onRecoverableError)),l=$1(l,null,r,1,u??null,g,!1,y,C),r[dr]=l.current,Ql(r),d)for(r=0;r<d.length;r++)u=d[r],g=u._getVersion,g=g(u._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[u,g]:l.mutableSourceEagerHydrationData.push(u,g);return new Ws(l)},ln.render=function(r,l,u){if(!Gs(l))throw Error(n(200));return Ys(null,r,l,!1,u)},ln.unmountComponentAtNode=function(r){if(!Gs(r))throw Error(n(40));return r._reactRootContainer?(Ai(function(){Ys(null,null,r,!1,function(){r._reactRootContainer=null,r[dr]=null})}),!0):!1},ln.unstable_batchedUpdates=A0,ln.unstable_renderSubtreeIntoContainer=function(r,l,u,d){if(!Gs(u))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return Ys(r,l,u,!1,d)},ln.version="18.3.1-next-f1338f8080-20240426",ln}var J1;function f6(){if(J1)return _0.exports;J1=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(),_0.exports=h6(),_0.exports}var Z1;function d6(){if(Z1)return Ks;Z1=1;var e=f6();return Ks.createRoot=e.createRoot,Ks.hydrateRoot=e.hydrateRoot,Ks}var m6=d6();/**
|
|
41
|
+
* react-router v7.18.2
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/var dh=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,o4=/^[\\/]{2}/;function p6(e,t){return t+e.replace(/\\/g,"/")}var em="popstate";function tm(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function g6(e={}){function t(i,a){var f;let s=(f=a.state)==null?void 0:f.masked,{pathname:o,search:c,hash:h}=s||i.location;return zc("",{pathname:o,search:c,hash:h},a.state&&a.state.usr||null,a.state&&a.state.key||"default",s?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function n(i,a){return typeof a=="string"?a:Aa(a)}return y6(t,n,null,e)}function ut(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Gn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function v6(){return Math.random().toString(36).substring(2,10)}function nm(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function zc(e,t,n=null,i,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?El(t):t,state:n,key:t&&t.key||i||v6(),mask:a}}function Aa({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function El(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function y6(e,t,n,i={}){let{window:a=document.defaultView,v5Compat:s=!1}=i,o=a.history,c="POP",h=null,f=m();f==null&&(f=0,o.replaceState({...o.state,idx:f},""));function m(){return(o.state||{idx:null}).idx}function p(){c="POP";let z=m(),A=z==null?null:z-f;f=z,h&&h({action:c,location:N.location,delta:A})}function x(z,A){c="PUSH";let R=tm(z)?z:zc(N.location,z,A);f=m()+1;let _=nm(R,f),Y=N.createHref(R.mask||R);try{o.pushState(_,"",Y)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;a.location.assign(Y)}s&&h&&h({action:c,location:N.location,delta:1})}function k(z,A){c="REPLACE";let R=tm(z)?z:zc(N.location,z,A);f=m();let _=nm(R,f),Y=N.createHref(R.mask||R);o.replaceState(_,"",Y),s&&h&&h({action:c,location:N.location,delta:0})}function E(z){return x6(a,z)}let N={get action(){return c},get location(){return e(a,o)},listen(z){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(em,p),h=z,()=>{a.removeEventListener(em,p),h=null}},createHref(z){return t(a,z)},createURL:E,encodeLocation(z){let A=E(z);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:x,replace:k,go(z){return o.go(z)}};return N}function x6(e,t,n=!1){let i="http://localhost";e&&(i=e.location.origin!=="null"?e.location.origin:e.location.href),ut(i,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:Aa(t);return a=a.replace(/ $/,"%20"),!n&&o4.test(a)&&(a=i+a),new URL(a,i)}function u4(e,t,n="/"){return w6(e,t,n,!1)}function w6(e,t,n,i,a){let s=typeof t=="string"?El(t):t,o=Cr(s.pathname||"/",n);if(o==null)return null;let c=k6(e),h=null,f=m4(o);for(let m=0;h==null&&m<c.length;++m)h=j6(c[m],f,i);return h}function k6(e){let t=c4(e);return b6(t),t}function c4(e,t=[],n=[],i="",a=!1){let s=(o,c,h=a,f)=>{let m={relativePath:f===void 0?o.path||"":f,caseSensitive:o.caseSensitive===!0,childrenIndex:c,route:o};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(i)&&h)return;ut(m.relativePath.startsWith(i),`Absolute route path "${m.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(i.length)}let p=Un([i,m.relativePath]),x=n.concat(m);o.children&&o.children.length>0&&(ut(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),c4(o.children,t,x,p,h)),!(o.path==null&&!o.index)&&t.push({path:p,score:z6(p,o.index),routesMeta:x.map((k,E)=>{let[N,z]=d4(k.relativePath,k.caseSensitive,E===x.length-1);return{...k,matcher:N,compiledParams:z}})})};return e.forEach((o,c)=>{var h;if(o.path===""||!((h=o.path)!=null&&h.includes("?")))s(o,c);else for(let f of h4(o.path))s(o,c,!0,f)}),t}function h4(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return a?[s,""]:[s];let o=h4(i.join("/")),c=[];return c.push(...o.map(h=>h===""?s:[s,h].join("/"))),a&&c.push(...o),c.map(h=>e.startsWith("/")&&h===""?"/":h)}function b6(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:M6(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var S6=/^:[\w-]+$/,C6=3,E6=2,T6=1,N6=10,A6=-2,rm=e=>e==="*";function z6(e,t){let n=e.split("/"),i=n.length;return n.some(rm)&&(i+=A6),t&&(i+=E6),n.filter(a=>!rm(a)).reduce((a,s)=>a+(S6.test(s)?C6:s===""?T6:N6),i)}function M6(e,t){return e.length===t.length&&e.slice(0,-1).every((i,a)=>i===t[a])?e[e.length-1]-t[t.length-1]:0}function j6(e,t,n=!1){let{routesMeta:i}=e,a={},s="/",o=[];for(let c=0;c<i.length;++c){let h=i[c],f=c===i.length-1,m=s==="/"?t:t.slice(s.length)||"/",p={path:h.relativePath,caseSensitive:h.caseSensitive,end:f},x=h.matcher&&h.compiledParams?f4(p,m,h.matcher,h.compiledParams):za(p,m),k=h.route;if(!x&&f&&n&&!i[i.length-1].route.index&&(x=za({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},m)),!x)return null;Object.assign(a,x.params),o.push({params:a,pathname:Un([s,x.pathname]),pathnameBase:L6(Un([s,x.pathnameBase])),route:k}),x.pathnameBase!=="/"&&(s=Un([s,x.pathnameBase]))}return o}function za(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=d4(e.path,e.caseSensitive,e.end);return f4(e,t,n,i)}function f4(e,t,n,i){let a=t.match(n);if(!a)return null;let s=a[0],o=s.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:i.reduce((f,{paramName:m,isOptional:p},x)=>{if(m==="*"){let E=c[x]||"";o=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const k=c[x];return p&&!k?f[m]=void 0:f[m]=(k||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:o,pattern:e}}function d4(e,t=!1,n=!0){Gn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,h,f,m)=>{if(i.push({paramName:c,isOptional:h!=null}),h){let p=m.charAt(f+o.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),i]}function m4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Cr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}function I6(e,t="/"){let{pathname:n,search:i="",hash:a=""}=typeof e=="string"?El(e):e,s;return n?(n=p4(n),n.startsWith("/")?s=im(n.substring(1),"/"):s=im(n,t)):s=t,{pathname:s,search:D6(i),hash:P6(a)}}function im(e,t){let n=vo(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function q0(e,t,n,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function R6(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function mh(e){let t=R6(e);return t.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase)}function Mo(e,t,n,i=!1){let a;typeof e=="string"?a=El(e):(a={...e},ut(!a.pathname||!a.pathname.includes("?"),q0("?","pathname","search",a)),ut(!a.pathname||!a.pathname.includes("#"),q0("#","pathname","hash",a)),ut(!a.search||!a.search.includes("#"),q0("#","search","hash",a)));let s=e===""||a.pathname==="",o=s?"/":a.pathname,c;if(o==null)c=n;else{let p=t.length-1;if(!i&&o.startsWith("..")){let x=o.split("/");for(;x[0]==="..";)x.shift(),p-=1;a.pathname=x.join("/")}c=p>=0?t[p]:"/"}let h=I6(a,c),f=o&&o!=="/"&&o.endsWith("/"),m=(s||o===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(f||m)&&(h.pathname+="/"),h}var p4=e=>e.replace(/[\\/]{2,}/g,"/"),Un=e=>p4(e.join("/")),vo=e=>e.replace(/\/+$/,""),L6=e=>vo(e).replace(/^\/*/,"/"),D6=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,P6=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,F6=class{constructor(e,t,n,i=!1){this.status=e,this.statusText=t||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function O6(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function B6(e){let t=e.map(n=>n.route.path).filter(Boolean);return Un(t)||"/"}var g4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function v4(e,t){let n=e;if(typeof n!="string"||!dh.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let i=n,a=!1;if(g4)try{let s=new URL(window.location.href),o=o4.test(n)?new URL(p6(n,s.protocol)):new URL(n),c=Cr(o.pathname,t);o.origin===s.origin&&c!=null?n=c+o.search+o.hash:a=!0}catch{Gn(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var y4=["POST","PUT","PATCH","DELETE"];new Set(y4);var _6=["GET",...y4];new Set(_6);var $6=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function H6(e){try{return $6.includes(new URL(e).protocol)}catch{return!1}}var Tl=I.createContext(null);Tl.displayName="DataRouter";var jo=I.createContext(null);jo.displayName="DataRouterState";var x4=I.createContext(!1);function q6(){return I.useContext(x4)}var w4=I.createContext({isTransitioning:!1});w4.displayName="ViewTransition";var U6=I.createContext(new Map);U6.displayName="Fetchers";var V6=I.createContext(null);V6.displayName="Await";var xn=I.createContext(null);xn.displayName="Navigation";var Da=I.createContext(null);Da.displayName="Location";var ar=I.createContext({outlet:null,matches:[],isDataRoute:!1});ar.displayName="Route";var ph=I.createContext(null);ph.displayName="RouteError";var k4="REACT_ROUTER_ERROR",W6="REDIRECT",G6="ROUTE_ERROR_RESPONSE";function Y6(e){if(e.startsWith(`${k4}:${W6}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function X6(e){if(e.startsWith(`${k4}:${G6}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new F6(t.status,t.statusText,t.data)}catch{}}function K6(e,{relative:t}={}){ut(_i(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:i}=I.useContext(xn),{hash:a,pathname:s,search:o}=Pa(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:Un([n,s])),i.createHref({pathname:c,search:o,hash:a})}function _i(){return I.useContext(Da)!=null}function Yn(){return ut(_i(),"useLocation() may be used only in the context of a <Router> component."),I.useContext(Da).location}function Q6(e){ut(_i(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=Yn();return I.useMemo(()=>za(e,m4(t)),[t,e])}var b4="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function S4(e){I.useContext(xn).static||I.useLayoutEffect(e)}function gh(){let{isDataRoute:e}=I.useContext(ar);return e?c7():J6()}function J6(){ut(_i(),"useNavigate() may be used only in the context of a <Router> component.");let e=I.useContext(Tl),{basename:t,navigator:n}=I.useContext(xn),{matches:i}=I.useContext(ar),{pathname:a}=Yn(),s=JSON.stringify(mh(i)),o=I.useRef(!1);return S4(()=>{o.current=!0}),I.useCallback((h,f={})=>{if(Gn(o.current,b4),!o.current)return;if(typeof h=="number"){n.go(h);return}let m=Mo(h,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Un([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,s,a,e])}I.createContext(null);function Pa(e,{relative:t}={}){let{matches:n}=I.useContext(ar),{pathname:i}=Yn(),a=JSON.stringify(mh(n));return I.useMemo(()=>Mo(e,JSON.parse(a),i,t==="path"),[e,a,i,t])}function Z6(e,t){return C4(e,t)}function C4(e,t,n){var z;ut(_i(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=I.useContext(xn),{matches:a}=I.useContext(ar),s=a[a.length-1],o=s?s.params:{},c=s?s.pathname:"/",h=s?s.pathnameBase:"/",f=s&&s.route;{let A=f&&f.path||"";T4(c,!f||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
50
|
+
|
|
51
|
+
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let m=Yn(),p;if(t){let A=typeof t=="string"?El(t):t;ut(h==="/"||((z=A.pathname)==null?void 0:z.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${A.pathname}" was given in the \`location\` prop.`),p=A}else p=m;let x=p.pathname||"/",k=x;if(h!=="/"){let A=h.replace(/^\//,"").split("/");k="/"+x.replace(/^\//,"").split("/").slice(A.length).join("/")}let E=n&&n.state.matches.length?n.state.matches.map(A=>Object.assign(A,{route:n.manifest[A.route.id]||A.route})):u4(e,{pathname:k});Gn(f||E!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Gn(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=i7(E&&E.map(A=>Object.assign({},A,{params:Object.assign({},o,A.params),pathname:Un([h,i.encodeLocation?i.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?h:Un([h,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),a,n);return t&&N?I.createElement(Da.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},N):N}function e7(){let e=u7(),t=O6(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=I.createElement(I.Fragment,null,I.createElement("p",null,"💿 Hey developer 👋"),I.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",I.createElement("code",{style:s},"ErrorBoundary")," or"," ",I.createElement("code",{style:s},"errorElement")," prop on your route.")),I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),n?I.createElement("pre",{style:a},n):null,o)}var t7=I.createElement(e7,null),E4=class extends I.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=X6(e.digest);n&&(e=n)}let t=e!==void 0?I.createElement(ar.Provider,{value:this.props.routeContext},I.createElement(ph.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?I.createElement(n7,{error:e},t):t}};E4.contextType=x4;var U0=new WeakMap;function n7({children:e,error:t}){let{basename:n}=I.useContext(xn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let i=Y6(t.digest);if(i){let a=U0.get(t);if(a)throw a;let s=v4(i.location,n),o=s.absoluteURL||s.to;if(H6(o))throw new Error("Invalid redirect location");if(g4&&!U0.get(t))if(s.isExternal||i.reloadDocument)window.location.href=o;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:i.replace}));throw U0.set(t,c),c}return I.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o}`})}}return e}function r7({routeContext:e,match:t,children:n}){let i=I.useContext(Tl);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),I.createElement(ar.Provider,{value:e},n)}function i7(e,t=[],n){let i=n==null?void 0:n.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let a=e,s=i==null?void 0:i.errors;if(s!=null){let m=a.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);ut(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,m+1))}let o=!1,c=-1;if(n&&i){o=i.renderFallback;for(let m=0;m<a.length;m++){let p=a[m];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(c=m),p.route.id){let{loaderData:x,errors:k}=i,E=p.route.loader&&!x.hasOwnProperty(p.route.id)&&(!k||k[p.route.id]===void 0);if(p.route.lazy||E){n.isStatic&&(o=!0),c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}}let h=n==null?void 0:n.onError,f=i&&h?(m,p)=>{var x,k;h(m,{location:i.location,params:((k=(x=i.matches)==null?void 0:x[0])==null?void 0:k.params)??{},pattern:B6(i.matches),errorInfo:p})}:void 0;return a.reduceRight((m,p,x)=>{let k,E=!1,N=null,z=null;i&&(k=s&&p.route.id?s[p.route.id]:void 0,N=p.route.errorElement||t7,o&&(c<0&&x===0?(T4("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,z=null):c===x&&(E=!0,z=p.route.hydrateFallbackElement||null)));let A=t.concat(a.slice(0,x+1)),R=()=>{let _;return k?_=N:E?_=z:p.route.Component?_=I.createElement(p.route.Component,null):p.route.element?_=p.route.element:_=m,I.createElement(r7,{match:p,routeContext:{outlet:m,matches:A,isDataRoute:i!=null},children:_})};return i&&(p.route.ErrorBoundary||p.route.errorElement||x===0)?I.createElement(E4,{location:i.location,revalidation:i.revalidation,component:N,error:k,children:R(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:f}):R()},null)}function vh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function l7(e){let t=I.useContext(Tl);return ut(t,vh(e)),t}function a7(e){let t=I.useContext(jo);return ut(t,vh(e)),t}function s7(e){let t=I.useContext(ar);return ut(t,vh(e)),t}function yh(e){let t=s7(e),n=t.matches[t.matches.length-1];return ut(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function o7(){return yh("useRouteId")}function u7(){var i;let e=I.useContext(ph),t=a7("useRouteError"),n=yh("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[n]}function c7(){let{router:e}=l7("useNavigate"),t=yh("useNavigate"),n=I.useRef(!1);return S4(()=>{n.current=!0}),I.useCallback(async(a,s={})=>{Gn(n.current,b4),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var lm={};function T4(e,t,n){!t&&!lm[e]&&(lm[e]=!0,Gn(!1,n))}I.memo(h7);function h7({routes:e,manifest:t,future:n,state:i,isStatic:a,onError:s}){return C4(e,void 0,{manifest:t,state:i,isStatic:a,onError:s})}function f7({to:e,replace:t,state:n,relative:i}){ut(_i(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=I.useContext(xn);Gn(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=I.useContext(ar),{pathname:o}=Yn(),c=gh(),h=Mo(e,mh(s),o,i==="path"),f=JSON.stringify(h);return I.useEffect(()=>{c(JSON.parse(f),{replace:t,state:n,relative:i})},[c,f,i,t,n]),null}function ba(e){ut(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function d7({basename:e="/",children:t=null,location:n,navigationType:i="POP",navigator:a,static:s=!1,useTransitions:o}){ut(!_i(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),h=I.useMemo(()=>({basename:c,navigator:a,static:s,useTransitions:o,future:{}}),[c,a,s,o]);typeof n=="string"&&(n=El(n));let{pathname:f="/",search:m="",hash:p="",state:x=null,key:k="default",mask:E}=n,N=I.useMemo(()=>{let z=Cr(f,c);return z==null?null:{location:{pathname:z,search:m,hash:p,state:x,key:k,mask:E},navigationType:i}},[c,f,m,p,x,k,i,E]);return Gn(N!=null,`<Router basename="${c}"> is not able to match the URL "${f}${m}${p}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:I.createElement(xn.Provider,{value:h},I.createElement(Da.Provider,{children:t,value:N}))}function m7({children:e,location:t}){return Z6(Mc(e),t)}function Mc(e,t=[]){let n=[];return I.Children.forEach(e,(i,a)=>{if(!I.isValidElement(i))return;let s=[...t,a];if(i.type===I.Fragment){n.push.apply(n,Mc(i.props.children,s));return}ut(i.type===ba,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ut(!i.props.index||!i.props.children,"An index route cannot have child routes.");let o={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=Mc(i.props.children,s)),n.push(o)}),n}var co="get",ho="application/x-www-form-urlencoded";function Io(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function p7(e){return Io(e)&&e.tagName.toLowerCase()==="button"}function g7(e){return Io(e)&&e.tagName.toLowerCase()==="form"}function v7(e){return Io(e)&&e.tagName.toLowerCase()==="input"}function y7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function x7(e,t){return e.button===0&&(!t||t==="_self")&&!y7(e)}var Qs=null;function w7(){if(Qs===null)try{new FormData(document.createElement("form"),0),Qs=!1}catch{Qs=!0}return Qs}var k7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function V0(e){return e!=null&&!k7.has(e)?(Gn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ho}"`),null):e}function b7(e,t){let n,i,a,s,o;if(g7(e)){let c=e.getAttribute("action");i=c?Cr(c,t):null,n=e.getAttribute("method")||co,a=V0(e.getAttribute("enctype"))||ho,s=new FormData(e)}else if(p7(e)||v7(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||c.getAttribute("action");if(i=h?Cr(h,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||co,a=V0(e.getAttribute("formenctype"))||V0(c.getAttribute("enctype"))||ho,s=new FormData(c,e),!w7()){let{name:f,type:m,value:p}=e;if(m==="image"){let x=f?`${f}.`:"";s.append(`${x}x`,"0"),s.append(`${x}y`,"0")}else f&&s.append(f,p)}}else{if(Io(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=co,i=null,a=ho,o=e}return s&&a==="text/plain"&&(o=s,s=void 0),{action:i,method:n.toLowerCase(),encType:a,formData:s,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function N4(e,t,n,i){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${i}`:a.pathname=`${a.pathname}.${i}`:a.pathname==="/"?a.pathname=`_root.${i}`:t&&Cr(a.pathname,t)==="/"?a.pathname=`${vo(t)}/_root.${i}`:a.pathname=`${vo(a.pathname)}.${i}`,a}async function S7(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function C7(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function E7(e,t,n){let i=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let o=await S7(s,n);return o.links?o.links():[]}return[]}));return z7(i.flat(1).filter(C7).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function am(e,t,n,i,a,s){let o=(h,f)=>n[f]?h.route.id!==n[f].route.id:!0,c=(h,f)=>{var m;return n[f].pathname!==h.pathname||((m=n[f].route.path)==null?void 0:m.endsWith("*"))&&n[f].params["*"]!==h.params["*"]};return s==="assets"?t.filter((h,f)=>o(h,f)||c(h,f)):s==="data"?t.filter((h,f)=>{var p;let m=i.routes[h.route.id];if(!m||!m.hasLoader)return!1;if(o(h,f)||c(h,f))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function T7(e,t,{includeHydrateFallback:n}={}){return N7(e.map(i=>{let a=t.routes[i.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function N7(e){return[...new Set(e)]}function A7(e){let t={},n=Object.keys(e).sort();for(let i of n)t[i]=e[i];return t}function z7(e,t){let n=new Set;return new Set(t),e.reduce((i,a)=>{let s=JSON.stringify(A7(a));return n.has(s)||(n.add(s),i.push({key:s,link:a})),i},[])}function wh(){let e=I.useContext(Tl);return xh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function M7(){let e=I.useContext(jo);return xh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var kh=I.createContext(void 0);kh.displayName="FrameworkContext";function Ro(){let e=I.useContext(kh);return xh(e,"You must render this element inside a <HydratedRouter> element"),e}function j7(e,t){let n=I.useContext(kh),[i,a]=I.useState(!1),[s,o]=I.useState(!1),{onFocus:c,onBlur:h,onMouseEnter:f,onMouseLeave:m,onTouchStart:p}=t,x=I.useRef(null);I.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let N=A=>{A.forEach(R=>{o(R.isIntersecting)})},z=new IntersectionObserver(N,{threshold:.5});return x.current&&z.observe(x.current),()=>{z.disconnect()}}},[e]),I.useEffect(()=>{if(i){let N=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(N)}}},[i]);let k=()=>{a(!0)},E=()=>{a(!1),o(!1)};return n?e!=="intent"?[s,x,{}]:[s,x,{onFocus:ga(c,k),onBlur:ga(h,E),onMouseEnter:ga(f,k),onMouseLeave:ga(m,E),onTouchStart:ga(p,k)}]:[!1,x,{}]}function ga(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function I7({page:e,...t}){let n=q6(),{nonce:i}=Ro(),{router:a}=wh(),s=I.useMemo(()=>u4(a.routes,e,a.basename),[a.routes,e,a.basename]);return s?(t.nonce==null&&i&&(t={...t,nonce:i}),n?I.createElement(L7,{page:e,matches:s,...t}):I.createElement(D7,{page:e,matches:s,...t})):null}function R7(e){let{manifest:t,routeModules:n}=Ro(),[i,a]=I.useState([]);return I.useEffect(()=>{let s=!1;return E7(e,t,n).then(o=>{s||a(o)}),()=>{s=!0}},[e,t,n]),i}function L7({page:e,matches:t,...n}){let i=Yn(),{future:a}=Ro(),{basename:s}=wh(),o=I.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let c=N4(e,s,a.v8_trailingSlashAwareDataRequests,"rsc"),h=!1,f=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?h=!0:f.push(m.route.id);return h&&f.length>0&&c.searchParams.set("_routes",f.join(",")),[c.pathname+c.search]},[s,a.v8_trailingSlashAwareDataRequests,e,i,t]);return I.createElement(I.Fragment,null,o.map(c=>I.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...n})))}function D7({page:e,matches:t,...n}){let i=Yn(),{future:a,manifest:s,routeModules:o}=Ro(),{basename:c}=wh(),{loaderData:h,matches:f}=M7(),m=I.useMemo(()=>am(e,t,f,s,i,"data"),[e,t,f,s,i]),p=I.useMemo(()=>am(e,t,f,s,i,"assets"),[e,t,f,s,i]),x=I.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let N=new Set,z=!1;if(t.forEach(R=>{var Y;let _=s.routes[R.route.id];!_||!_.hasLoader||(!m.some(V=>V.route.id===R.route.id)&&R.route.id in h&&((Y=o[R.route.id])!=null&&Y.shouldRevalidate)||_.hasClientLoader?z=!0:N.add(R.route.id))}),N.size===0)return[];let A=N4(e,c,a.v8_trailingSlashAwareDataRequests,"data");return z&&N.size>0&&A.searchParams.set("_routes",t.filter(R=>N.has(R.route.id)).map(R=>R.route.id).join(",")),[A.pathname+A.search]},[c,a.v8_trailingSlashAwareDataRequests,h,i,s,m,t,e,o]),k=I.useMemo(()=>T7(p,s),[p,s]),E=R7(p);return I.createElement(I.Fragment,null,x.map(N=>I.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...n})),k.map(N=>I.createElement("link",{key:N,rel:"modulepreload",href:N,...n})),E.map(({key:N,link:z})=>I.createElement("link",{key:N,nonce:n.nonce,...z,crossOrigin:z.crossOrigin??n.crossOrigin})))}function P7(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var F7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{F7&&(window.__reactRouterVersion="7.18.2")}catch{}function O7({basename:e,children:t,useTransitions:n,window:i}){let a=I.useRef();a.current==null&&(a.current=g6({window:i,v5Compat:!0}));let s=a.current,[o,c]=I.useState({action:s.action,location:s.location}),h=I.useCallback(f=>{n===!1?c(f):I.startTransition(()=>c(f))},[n]);return I.useLayoutEffect(()=>s.listen(h),[s,h]),I.createElement(d7,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:s,useTransitions:n})}var bh=I.forwardRef(function({onClick:t,discover:n="render",prefetch:i="none",relative:a,reloadDocument:s,replace:o,mask:c,state:h,target:f,to:m,preventScrollReset:p,viewTransition:x,defaultShouldRevalidate:k,...E},N){let{basename:z,navigator:A,useTransitions:R}=I.useContext(xn),_=typeof m=="string"&&dh.test(m),Y=v4(m,z);m=Y.to;let V=K6(m,{relative:a}),O=Yn(),G=null;if(c){let le=Mo(c,[],O.mask?O.mask.pathname:"/",!0);z!=="/"&&(le.pathname=le.pathname==="/"?z:Un([z,le.pathname])),G=A.createHref(le)}let[te,re,q]=j7(i,E),fe=H7(m,{replace:o,mask:c,state:h,target:f,preventScrollReset:p,relative:a,viewTransition:x,defaultShouldRevalidate:k,useTransitions:R});function ie(le){t&&t(le),le.defaultPrevented||fe(le)}let Ee=!(Y.isExternal||s),ge=I.createElement("a",{...E,...q,href:(Ee?G:void 0)||Y.absoluteURL||V,onClick:Ee?ie:t,ref:P7(N,re),target:f,"data-discover":!_&&n==="render"?"true":void 0});return te&&!_?I.createElement(I.Fragment,null,ge,I.createElement(I7,{page:V})):ge});bh.displayName="Link";var B7=I.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:i="",end:a=!1,style:s,to:o,viewTransition:c,children:h,...f},m){let p=Pa(o,{relative:f.relative}),x=Yn(),k=I.useContext(jo),{navigator:E,basename:N}=I.useContext(xn),z=k!=null&&G7(p)&&c===!0,A=E.encodeLocation?E.encodeLocation(p).pathname:p.pathname,R=x.pathname,_=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;n||(R=R.toLowerCase(),_=_?_.toLowerCase():null,A=A.toLowerCase()),_&&N&&(_=Cr(_,N)||_);const Y=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let V=R===A||!a&&R.startsWith(A)&&R.charAt(Y)==="/",O=_!=null&&(_===A||!a&&_.startsWith(A)&&_.charAt(A.length)==="/"),G={isActive:V,isPending:O,isTransitioning:z},te=V?t:void 0,re;typeof i=="function"?re=i(G):re=[i,V?"active":null,O?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let q=typeof s=="function"?s(G):s;return I.createElement(bh,{...f,"aria-current":te,className:re,ref:m,style:q,to:o,viewTransition:c},typeof h=="function"?h(G):h)});B7.displayName="NavLink";var _7=I.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:i,replace:a,state:s,method:o=co,action:c,onSubmit:h,relative:f,preventScrollReset:m,viewTransition:p,defaultShouldRevalidate:x,...k},E)=>{let{useTransitions:N}=I.useContext(xn),z=V7(),A=W7(c,{relative:f}),R=o.toLowerCase()==="get"?"get":"post",_=typeof c=="string"&&dh.test(c),Y=V=>{if(h&&h(V),V.defaultPrevented)return;V.preventDefault();let O=V.nativeEvent.submitter,G=(O==null?void 0:O.getAttribute("formmethod"))||o,te=()=>z(O||V.currentTarget,{fetcherKey:t,method:G,navigate:n,replace:a,state:s,relative:f,preventScrollReset:m,viewTransition:p,defaultShouldRevalidate:x});N&&n!==!1?I.startTransition(()=>te()):te()};return I.createElement("form",{ref:E,method:R,action:A,onSubmit:i?h:Y,...k,"data-discover":!_&&e==="render"?"true":void 0})});_7.displayName="Form";function $7(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function A4(e){let t=I.useContext(Tl);return ut(t,$7(e)),t}function H7(e,{target:t,replace:n,mask:i,state:a,preventScrollReset:s,relative:o,viewTransition:c,defaultShouldRevalidate:h,useTransitions:f}={}){let m=gh(),p=Yn(),x=Pa(e,{relative:o});return I.useCallback(k=>{if(x7(k,t)){k.preventDefault();let E=n!==void 0?n:Aa(p)===Aa(x),N=()=>m(e,{replace:E,mask:i,state:a,preventScrollReset:s,relative:o,viewTransition:c,defaultShouldRevalidate:h});f?I.startTransition(()=>N()):N()}},[p,m,x,n,i,a,t,e,s,o,c,h,f])}var q7=0,U7=()=>`__${String(++q7)}__`;function V7(){let{router:e}=A4("useSubmit"),{basename:t}=I.useContext(xn),n=o7(),i=e.fetch,a=e.navigate;return I.useCallback(async(s,o={})=>{let{action:c,method:h,encType:f,formData:m,body:p}=b7(s,t);if(o.navigate===!1){let x=o.fetcherKey||U7();await i(x,n,o.action||c,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:m,body:p,formMethod:o.method||h,formEncType:o.encType||f,flushSync:o.flushSync})}else await a(o.action||c,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:m,body:p,formMethod:o.method||h,formEncType:o.encType||f,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[i,a,t,n])}function W7(e,{relative:t}={}){let{basename:n}=I.useContext(xn),i=I.useContext(ar);ut(i,"useFormAction must be used inside a RouteContext");let[a]=i.matches.slice(-1),s={...Pa(e||".",{relative:t})},o=Yn();if(e==null){s.search=o.search;let c=new URLSearchParams(s.search),h=c.getAll("index");if(h.some(m=>m==="")){c.delete("index"),h.filter(p=>p).forEach(p=>c.append("index",p));let m=c.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Un([n,s.pathname])),Aa(s)}function G7(e,{relative:t}={}){let n=I.useContext(w4);ut(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=A4("useViewTransitionState"),a=Pa(e,{relative:t});if(!n.isTransitioning)return!1;let s=Cr(n.currentLocation.pathname,i)||n.currentLocation.pathname,o=Cr(n.nextLocation.pathname,i)||n.nextLocation.pathname;return za(a.pathname,o)!=null||za(a.pathname,s)!=null}const yo="Attached files: ",Y7=[".png",".jpg",".jpeg",".gif",".webp",".svg",".bmp",".ico",".avif"];function X7(e){const t=e.split(`
|
|
52
|
+
`).find(n=>n.startsWith(yo));return t?t.slice(yo.length).split(", ").map(n=>n.trim()).filter(Boolean):[]}function K7(e){return X7(e).filter(t=>{const n=t.toLowerCase();return Y7.some(i=>n.endsWith(i))})}function z4(e){return e.split(`
|
|
53
|
+
`).filter(t=>!t.startsWith(yo)).join(`
|
|
54
|
+
`).trim()}function sm(){return{turnStatus:"idle",creditsSpent:0,lastTurnCredits:0,contextUsagePercentage:0,lastTurnDurationMs:0,subagents:[],pendingStages:[],mcpServers:[],availableCommands:[],oauthPrompts:[],compacting:!1}}const om=e=>{let t;const n=new Set,i=(f,m)=>{const p=typeof f=="function"?f(t):f;if(!Object.is(p,t)){const x=t;t=m??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(k=>k(t,x))}},a=()=>t,c={setState:i,getState:a,getInitialState:()=>h,subscribe:f=>(n.add(f),()=>n.delete(f))},h=t=e(i,a,c);return c},Q7=(e=>e?om(e):om),J7=e=>e;function Z7(e,t=J7){const n=ka.useSyncExternalStore(e.subscribe,ka.useCallback(()=>t(e.getState()),[e,t]),ka.useCallback(()=>t(e.getInitialState()),[e,t]));return ka.useDebugValue(n),n}const um=e=>{const t=Q7(e),n=i=>Z7(t,i);return Object.assign(n,t),n},ev=(e=>e?um(e):um);function tv(e,t,n){return e.map(i=>i.sessionId===t?{...i,updatedAt:n}:i).sort((i,a)=>a.updatedAt.localeCompare(i.updatedAt))}function M4(e){const t=e.toLowerCase();return t.includes("credential")||t.includes("expired")||t.includes("not authenticated")||t.includes("unauthorized")||t.includes("kiro-cli login")?{title:"Kiro isn't authenticated",fix:"Run `kiro-cli login` on the server, then retry.",sessionWide:!0}:t.includes("a turn is already running")?{title:"A turn is already running",fix:"Wait for the current turn to finish, or stop it first."}:t.includes("enoent")||t.includes("spawn")||t.includes("command not found")?{title:"Couldn't start kiro-cli",fix:"Check that KIRO_BIN points at an executable kiro-cli.",sessionWide:!0}:t.includes("timed out")?{title:"The request timed out"}:{title:"Turn failed"}}const Fe=ev((e,t)=>({sessions:[],models:[],agents:[],defaultAgentId:"kiro_default",activeId:null,loadingSessionId:null,modes:[],items:[],appliedSeq:0,remainingOlder:0,observability:sm(),streamingText:"",streamingThought:"",pending:[],sessionNotice:null,setSessions:n=>e({sessions:n}),setModels:n=>e({models:n}),setAgents:(n,i)=>e({agents:n,defaultAgentId:i}),setLoadingSession:n=>e({loadingSessionId:n}),loadDetail:n=>e({activeId:n.summary.sessionId,loadingSessionId:null,modes:n.modes,currentModeId:n.currentModeId,currentModelId:n.summary.modelId,observability:n.observability,items:n.transcript,appliedSeq:n.head,remainingOlder:Math.max(0,n.transcriptTotal-n.transcript.length),streamingText:"",streamingThought:"",pending:[],sessionNotice:null}),prependItems:n=>e(i=>({items:[...n,...i.items],remainingOlder:Math.max(0,i.remainingOlder-n.length)})),clearActive:()=>e({activeId:null,loadingSessionId:null,modes:[],items:[],appliedSeq:0,remainingOlder:0,observability:sm(),streamingText:"",streamingThought:"",pending:[],sessionNotice:null}),dismissSessionNotice:()=>e({sessionNotice:null}),addPending:(n,i)=>e(a=>({pending:[...a.pending,{id:n,text:i,status:"sending"}]})),markPendingFailed:(n,i)=>e(a=>({pending:a.pending.map(s=>s.id===n?{...s,status:"failed",error:i}:s)})),applyEvent:n=>{var s,o,c,h;const i=t(),a=n.payload;if(!(n.seq<=i.appliedSeq))switch(e({appliedSeq:n.seq}),a.kind){case"turn_started":{const f=a.prompt.filter(N=>N.type==="text").map(N=>N.text).join(""),m=z4(f),p=K7(f),x=i.pending.findIndex(N=>N.status==="sending"),k=new Date(n.ts).toISOString(),E=tv(i.sessions,n.sessionId,k);e({items:[...i.items,{type:"message",message:{id:`u-${n.seq}`,role:"user",text:m,timestamp:n.ts,imagePaths:p}}],pending:x===-1?i.pending:i.pending.filter((N,z)=>z!==x),sessions:E,streamingText:"",observability:{...i.observability,turnStatus:"running"}});break}case"session_update":{const f=a.update;if(f.sessionUpdate==="agent_message_chunk"){const m=((s=f.content)==null?void 0:s.text)??"";e({streamingText:i.streamingText+m})}else if(f.sessionUpdate==="agent_thought_chunk"){const m=((o=f.content)==null?void 0:o.text)??"";e({streamingThought:i.streamingThought+m})}else if(f.sessionUpdate==="tool_call"){const m=f,p=(h=(c=m._meta)==null?void 0:c.kiro)==null?void 0:h.toolName;e({items:[...W0(i,`s-${n.seq}`,n.ts),{type:"tool_call",tool:{id:m.toolCallId,name:p,title:m.title??m.toolCallId,kind:m.kind,status:m.status??"pending",input:m.rawInput,content:m.content??[]}}],streamingText:"",streamingThought:""})}else if(f.sessionUpdate==="tool_call_update"){const m=f;e({items:i.items.map(p=>p.type==="tool_call"&&p.tool.id===m.toolCallId?{type:"tool_call",tool:{...p.tool,status:m.status??p.tool.status,output:m.rawOutput??p.tool.output,content:m.content??p.tool.content}}:p)})}break}case"turn_ended":{e({items:W0(i,`s-${n.seq}`,n.ts),sessionNotice:null,streamingText:"",streamingThought:"",observability:{...i.observability,turnStatus:"idle"}});break}case"turn_error":{const f=M4(a.message);e({items:[...W0(i,`s-${n.seq}`,n.ts),{type:"turn_error",id:`err-${n.seq}`,message:a.message,timestamp:n.ts}],sessionNotice:f.sessionWide?{title:f.title,fix:f.fix,detail:a.message}:i.sessionNotice,streamingText:"",streamingThought:"",observability:{...i.observability,turnStatus:"idle"}});break}case"metadata":{const f=(a.params.meteringUsage??[]).reduce((m,p)=>m+p.value,0);e({observability:{...i.observability,contextUsagePercentage:a.params.contextUsagePercentage??i.observability.contextUsagePercentage,creditsSpent:f>0?i.observability.creditsSpent+f:i.observability.creditsSpent,lastTurnCredits:f>0?f:i.observability.lastTurnCredits,lastTurnDurationMs:a.params.turnDurationMs??i.observability.lastTurnDurationMs}});break}case"subagent_update":e({observability:{...i.observability,subagents:a.params.subagents,pendingStages:a.params.pendingStages}});break;case"mcp_health":{const f=i.observability.mcpServers.filter(m=>m.serverName!==a.params.serverName);f.push({serverName:a.params.serverName,status:a.ok?"initialized":"failed",error:a.params.error,updatedAt:n.ts}),e({observability:{...i.observability,mcpServers:f}});break}case"commands_available":e({observability:{...i.observability,availableCommands:a.params.commands}});break;case"compaction":{const f=a.params.status.type!=="started",m=a.params.summary??"";e({observability:{...i.observability,compacting:!f},items:f&&m.trim()?[...i.items,{type:"compaction",id:`c-${n.seq}`,summary:m,timestamp:n.ts}]:i.items});break}case"oauth_request":e({observability:{...i.observability,oauthPrompts:[...i.observability.oauthPrompts,{serverName:a.params.serverName,url:a.params.url,createdAt:n.ts}]}});break;case"process_exited":e({observability:{...i.observability,turnStatus:"idle"}});break}}}));function W0(e,t,n=Date.now()){const i=[...e.items];return e.streamingThought.trim()&&i.push({type:"message",message:{id:`t-${t}`,role:"thinking",text:e.streamingThought,timestamp:n}}),e.streamingText.trim()&&i.push({type:"message",message:{id:`a-${t}`,role:"assistant",text:e.streamingText,timestamp:n}}),i}async function Ht(e,t,n){const i={};n!==void 0&&(i["content-type"]="application/json");const a=await fetch(t,{method:e,headers:i,credentials:"same-origin",body:n!==void 0?JSON.stringify(n):void 0});if(a.status===401)throw new Error("Unauthorized");if(!a.ok){const o=await a.text();throw new Error(`${e} ${t} failed (${a.status}): ${o}`)}const s=await a.text();return s?JSON.parse(s):{}}function nv(e){return Ht("POST","/api/login",{token:e})}function rv(){return Ht("POST","/api/logout")}const ot={devices:()=>Ht("GET","/api/devices"),revokeDevice:e=>Ht("DELETE",`/api/devices/${e}`),logoutAll:()=>Ht("POST","/api/logout-all"),models:()=>Ht("GET","/api/models"),agents:()=>Ht("GET","/api/agents"),listDirs:e=>Ht("GET",`/api/fs/dirs?path=${encodeURIComponent(e)}`),listSessions:()=>Ht("GET","/api/sessions"),createSession:e=>Ht("POST","/api/sessions",e),getSession:e=>Ht("GET",`/api/sessions/${e}`),transcriptPage:(e,t,n)=>Ht("GET",`/api/sessions/${e}/transcript?offset=${t}&limit=${n}`),deleteSession:e=>Ht("DELETE",`/api/sessions/${e}`),renameSession:(e,t)=>Ht("POST",`/api/sessions/${e}/rename`,{title:t}),setSessionCwd:(e,t)=>Ht("POST",`/api/sessions/${e}/cwd`,{cwd:t}),tree:(e,t="")=>Ht("GET",`/api/sessions/${e}/tree?path=${encodeURIComponent(t)}`),downloadUrl:(e,t)=>`/api/sessions/${e}/download?path=${encodeURIComponent(t)}`,previewUrl:(e,t)=>`/api/sessions/${e}/preview?path=${encodeURIComponent(t)}`,attachmentUrl:(e,t)=>t.startsWith("/")?`/api/fs/image?path=${encodeURIComponent(t)}`:`/api/sessions/${e}/preview?path=${encodeURIComponent(t)}`,uploadFiles:async(e,t)=>{const n=new FormData;for(const a of t)n.append("files",a,a.name);const i=await fetch(`/api/sessions/${e}/uploads`,{method:"POST",credentials:"same-origin",body:n});if(i.status===401)throw new Error("Unauthorized");if(!i.ok){const a=await i.text();throw new Error(`Upload failed (${i.status}): ${a}`)}return await i.json()}},fo={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},iv=8e3,j4=25e3,lv=1e4;function cm(e){return e.state===void 0||e.state===fo.CLOSED||e.state===fo.CLOSING?!0:e.state===fo.CONNECTING?e.now-e.connectingSince>iv:e.now-e.lastMessageAt>j4+lv}function av(e){return e.state===fo.OPEN&&e.now-e.lastMessageAt>j4}const sv=1008;class ov{constructor(t,n,i=0){Hn(this,"ws",null);Hn(this,"cursor",0);Hn(this,"closedByUser",!1);Hn(this,"backoff",500);Hn(this,"reconnectTimer",null);Hn(this,"connectingSince",0);Hn(this,"lastMessageAt",0);Hn(this,"watchdog",null);Hn(this,"eager",()=>{this.closedByUser||cm(this.sample())&&this.connect()});Hn(this,"onVisibility",()=>{document.visibilityState==="visible"&&this.eager()});this.sessionId=t,this.handlers=n,this.cursor=i,window.addEventListener("online",this.eager),document.addEventListener("visibilitychange",this.onVisibility)}sample(){var t;return{state:(t=this.ws)==null?void 0:t.readyState,connectingSince:this.connectingSince,lastMessageAt:this.lastMessageAt,now:Date.now()}}startWatchdog(){this.watchdog===null&&(this.watchdog=window.setInterval(()=>{if(this.closedByUser)return;const t=this.sample();cm(t)?this.connect():av(t)&&this.send({type:"ping"})},5e3))}reset(t){this.cursor=t}connect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null);const t=this.ws;t&&(this.ws=null,t.onopen=null,t.onmessage=null,t.onclose=null,t.onerror=null,(t.readyState===WebSocket.OPEN||t.readyState===WebSocket.CONNECTING)&&t.close()),this.connectingSince=Date.now(),this.lastMessageAt=Date.now(),this.startWatchdog(),this.handlers.onStatus(this.cursor>0?"reconnecting":"connecting");const i=`${location.protocol==="https:"?"wss":"ws"}://${location.host}/ws?sessionId=${encodeURIComponent(this.sessionId)}&cursor=${this.cursor}`,a=new WebSocket(i);this.ws=a,a.onopen=()=>{this.ws===a&&(this.backoff=500,this.handlers.onStatus("replaying"),this.send({type:"hello",sessionId:this.sessionId,cursor:this.cursor}))},a.onmessage=s=>{var c,h,f,m;if(this.ws!==a)return;this.lastMessageAt=Date.now();const o=JSON.parse(s.data);switch(o.type){case"event":o.event.seq>this.cursor&&(this.cursor=o.event.seq,this.handlers.onEvent(o.event));break;case"replay_complete":this.handlers.onStatus("connected");break;case"resync":this.handlers.onStatus("resyncing"),this.handlers.onResync();break;case"ack":(h=(c=this.handlers).onAck)==null||h.call(c,o.action,o.ok,o.error);break;case"error":console.warn("ws error:",o.message),(m=(f=this.handlers).onServerError)==null||m.call(f,o.message);break}},a.onclose=s=>{var o,c;if(this.ws===a){if(this.closedByUser){this.handlers.onStatus("closed");return}if(s.code===sv){this.closedByUser=!0,this.handlers.onStatus("closed"),(c=(o=this.handlers).onUnauthorized)==null||c.call(o);return}this.handlers.onStatus("reconnecting"),this.reconnectTimer=window.setTimeout(()=>this.connect(),this.backoff),this.backoff=Math.min(this.backoff*1.7,1e4)}},a.onerror=()=>{this.ws===a&&a.close()}}send(t){var n;return((n=this.ws)==null?void 0:n.readyState)===WebSocket.OPEN?(this.ws.send(JSON.stringify(t)),!0):!1}prompt(t){return this.send({type:"prompt",content:t})}cancel(){this.send({type:"cancel"})}setMode(t){this.send({type:"set_mode",modeId:t})}setModel(t){this.send({type:"set_model",modelId:t})}execCommand(t,n){this.send({type:"exec_command",command:t,args:n})}close(){this.closedByUser=!0,window.removeEventListener("online",this.eager),document.removeEventListener("visibilitychange",this.onVisibility),this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.watchdog!==null&&(clearInterval(this.watchdog),this.watchdog=null);const t=this.ws;this.ws=null,t&&(t.onopen=null,t.onmessage=null,t.onclose=null,t.onerror=null,t.close())}}const I4="/sessions",uv=`${I4}/:sessionId`;function R4(e){return`${I4}/${encodeURIComponent(e)}`}function L4({size:e=14,className:t}){return w.jsx("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:w.jsx("polyline",{points:"6 9 12 15 18 9"})})}function D4({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function cv({size:e=16,className:t}){return w.jsx("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:w.jsx("polyline",{points:"20 6 9 17 4 12"})})}function hv({size:e=18,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("rect",{x:"4",y:"11",width:"16",height:"10",rx:"2"}),w.jsx("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]})}function ni({size:e=28,className:t}){return w.jsx("svg",{className:`spinner ${t??""}`,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round","aria-hidden":!0,children:w.jsx("path",{d:"M12 3a9 9 0 1 0 9 9"})})}function fv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("path",{d:"M12 19V5"}),w.jsx("path",{d:"m5 12 7-7 7 7"})]})}function hm({size:e=16,className:t}){return w.jsx("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none","aria-hidden":!0,children:w.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}function P4({size:e=20,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),w.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function F4({size:e=20,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("circle",{cx:"11",cy:"11",r:"7"}),w.jsx("line",{x1:"21",y1:"21",x2:"16.5",y2:"16.5"})]})}function O4({size:e=16,className:t}){return w.jsx("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:w.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})})}function dv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2v1"}),w.jsx("path",{d:"M2 10l2.5 9h15l2.5-9H7.5"})]})}function mv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),w.jsx("polyline",{points:"14 2 14 8 20 8"})]})}function fm({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),w.jsx("polyline",{points:"14 2 14 8 20 8"}),w.jsx("polyline",{points:"9 15 7 13 9 11"}),w.jsx("polyline",{points:"15 11 17 13 15 15"})]})}function pv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),w.jsx("polyline",{points:"14 2 14 8 20 8"}),w.jsx("circle",{cx:"12",cy:"15",r:"2"}),w.jsx("path",{d:"M12 11v2"}),w.jsx("path",{d:"M12 17v1"})]})}function gv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),w.jsx("polyline",{points:"14 2 14 8 20 8"}),w.jsx("line",{x1:"8",y1:"13",x2:"16",y2:"13"}),w.jsx("line",{x1:"8",y1:"17",x2:"14",y2:"17"})]})}function vv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),w.jsx("polyline",{points:"14 2 14 8 20 8"}),w.jsx("circle",{cx:"10",cy:"14",r:"2"}),w.jsx("path",{d:"M20 17l-3-3-5 5"})]})}function yv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),w.jsx("polyline",{points:"14 2 14 8 20 8"}),w.jsx("path",{d:"M8 13h3v3H8z"}),w.jsx("line",{x1:"14",y1:"13",x2:"16",y2:"13"}),w.jsx("line",{x1:"14",y1:"16",x2:"16",y2:"16"})]})}function xv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),w.jsx("polyline",{points:"14 2 14 8 20 8"}),w.jsx("polyline",{points:"8 15 10 13 8 11"}),w.jsx("line",{x1:"12",y1:"16",x2:"16",y2:"16"})]})}function wv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),w.jsx("polyline",{points:"7 10 12 15 17 10"}),w.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function kv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("polyline",{points:"23 4 23 10 17 10"}),w.jsx("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})]})}function bv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"}),w.jsx("line",{x1:"9",y1:"14",x2:"15",y2:"14"}),w.jsx("line",{x1:"9",y1:"18",x2:"13",y2:"18"})]})}function Sv({size:e=18,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("polyline",{points:"4 14 10 14 10 20"}),w.jsx("polyline",{points:"20 10 14 10 14 4"}),w.jsx("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),w.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})}function Cv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("path",{d:"M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"}),w.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function Ev({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("polyline",{points:"16 18 22 12 16 6"}),w.jsx("polyline",{points:"8 6 2 12 8 18"})]})}function Tv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("polyline",{points:"15 3 21 3 21 9"}),w.jsx("polyline",{points:"9 21 3 21 3 15"}),w.jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),w.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})}function Nv({size:e=16,className:t}){return w.jsxs("svg",{className:t,width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[w.jsx("polyline",{points:"4 14 10 14 10 20"}),w.jsx("polyline",{points:"20 10 14 10 14 4"}),w.jsx("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),w.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})}function Av(e,t){const n=e.trim().toLowerCase();if(!n)return 0;const i=t.toLowerCase();let a=0,s=0,o=-2;for(let c=0;c<n.length;c++){const h=n[c],f=i.indexOf(h,s);if(f===-1)return-1;a+=1,f===o+1&&(a+=3),(f===0||/\s|[-_/.]/.test(i[f-1]??""))&&(a+=2),o=f,s=f+1}return a}function zv({sessions:e,onOpen:t,onClose:n}){const[i,a]=I.useState(""),[s,o]=I.useState(0),c=I.useRef(null);I.useEffect(()=>{var p;(p=c.current)==null||p.focus()},[]);const h=I.useMemo(()=>i.trim()?e.map(p=>({s:p,score:Av(i,p.title)})).filter(p=>p.score>=0).sort((p,x)=>x.score-p.score).map(p=>p.s):e.slice(0,50),[e,i]);I.useEffect(()=>{o(0)},[i]);const f=p=>{t(p),n()},m=p=>{if(p.key==="Escape")n();else if(p.key==="ArrowDown")p.preventDefault(),o(x=>Math.min(x+1,h.length-1));else if(p.key==="ArrowUp")p.preventDefault(),o(x=>Math.max(x-1,0));else if(p.key==="Enter"){p.preventDefault();const x=h[s];x&&f(x.sessionId)}};return w.jsx("div",{className:"search-backdrop",onClick:n,children:w.jsxs("div",{className:"search-modal",role:"dialog","aria-label":"Search sessions",onClick:p=>p.stopPropagation(),children:[w.jsxs("div",{className:"search-field",children:[w.jsx(F4,{size:20,className:"search-field-icon"}),w.jsx("input",{ref:c,className:"search-modal-input",value:i,placeholder:"Search sessions…",onChange:p=>a(p.target.value),onKeyDown:m}),w.jsx("kbd",{className:"search-esc",children:"esc"})]}),w.jsx("div",{className:"search-results",children:h.length===0?w.jsx("p",{className:"search-empty",children:i.trim()?`No sessions match "${i}".`:"No sessions yet."}):h.map((p,x)=>w.jsxs("button",{className:`search-result ${x===s?"is-active":""}`,onMouseEnter:()=>o(x),onClick:()=>f(p.sessionId),children:[w.jsx("span",{className:"search-result-title",children:p.title}),w.jsx("span",{className:"search-result-agent",children:p.agentId??"kiro_default"})]},p.sessionId))})]})})}function Mv(e){const t=Math.round((Date.now()-Date.parse(e))/6e4);if(t<1)return"just now";if(t<60)return`${t}m ago`;const n=Math.round(t/60);return n<24?`${n}h ago`:`${Math.round(n/24)}d ago`}function jv(e){if(!e)return"Unknown device";const t=/iPhone|iPad/.test(e)?"iOS":/Android/.test(e)?"Android":/Macintosh|Mac OS/.test(e)?"macOS":/Windows/.test(e)?"Windows":/Linux/.test(e)?"Linux":"Device",n=/Firefox/.test(e)?"Firefox":/Edg\//.test(e)?"Edge":/Chrome/.test(e)?"Chrome":/Safari/.test(e)?"Safari":"";return n?`${t} · ${n}`:t}function Iv({onClose:e,onSelfRevoked:t}){const[n,i]=I.useState(null),[a,s]=I.useState(!1),o=()=>ot.devices().then(f=>i(f.devices)).catch(()=>i([]));I.useEffect(()=>{o()},[]);const c=async f=>{s(!0);try{if(await ot.revokeDevice(f.id),f.current){t();return}await o()}finally{s(!1)}},h=async()=>{s(!0);try{await ot.logoutAll(),t()}finally{s(!1)}};return w.jsx("div",{className:"search-backdrop",onClick:e,children:w.jsxs("div",{className:"search-modal",role:"dialog","aria-label":"Logged-in devices",onClick:f=>f.stopPropagation(),children:[w.jsxs("div",{className:"devices-head",children:[w.jsx("span",{className:"devices-title",children:"Logged-in devices"}),w.jsx("button",{className:"btn-ghost",onClick:e,children:"Close"})]}),w.jsx("div",{className:"devices-list",children:n===null?w.jsx("p",{className:"search-empty",children:"Loading…"}):n.length===0?w.jsx("p",{className:"search-empty",children:"No active devices."}):n.map(f=>w.jsxs("div",{className:"device-row",children:[w.jsxs("span",{className:"device-main",children:[w.jsxs("span",{className:"device-name",children:[jv(f.userAgent),f.current&&w.jsx("span",{className:"device-badge",children:"This device"})]}),w.jsxs("span",{className:"device-sub",children:["Active ",Mv(f.lastSeenAt)]})]}),w.jsx("button",{className:"btn-ghost device-revoke",disabled:a,onClick:()=>c(f),children:f.current?"Log out":"Revoke"})]},f.id))}),n&&n.length>1&&w.jsx("div",{className:"devices-foot",children:w.jsx("button",{className:"btn-ghost device-revoke",disabled:a,onClick:h,children:"Log out all devices"})})]})})}function Rv({title:e,message:t,confirmLabel:n="Confirm",cancelLabel:i="Cancel",danger:a=!1,onConfirm:s,onCancel:o}){return I.useEffect(()=>{const c=h=>{h.key==="Escape"&&o()};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[o]),w.jsx("div",{className:"confirm-backdrop",onClick:c=>{c.target===c.currentTarget&&o()},children:w.jsxs("div",{className:"confirm-modal",role:"dialog","aria-modal":"true","aria-label":e,children:[w.jsx("h3",{className:"confirm-title",children:e}),t&&w.jsx("p",{className:"confirm-message",children:t}),w.jsxs("div",{className:"confirm-actions",children:[w.jsx("button",{className:"btn-ghost",onClick:o,children:i}),w.jsx("button",{className:a?"btn-danger":"btn-primary",onClick:s,autoFocus:!0,children:n})]})]})})}function Lv(e){const t=e.split("/").filter(Boolean);return t.length<=2?e:`…/${t.slice(-2).join("/")}`}function Dv(e){const t=Date.parse(e);if(Number.isNaN(t))return"";const n=Math.round((Date.now()-t)/6e4);if(n<1)return"now";if(n<60)return`${n}m`;const i=Math.round(n/60);return i<24?`${i}h`:`${Math.round(i/24)}d`}function Pv({sessions:e,activeId:t,loadingId:n,onOpen:i,onNew:a,onDelete:s,onRename:o,onLock:c}){const[h,f]=I.useState(!1),[m,p]=I.useState(!1),[x,k]=I.useState(!1),[E,N]=I.useState(null),[z,A]=I.useState(null),[R,_]=I.useState(null),[Y,V]=I.useState("");I.useEffect(()=>{if(!E)return;const G=()=>N(null);return document.addEventListener("click",G),()=>document.removeEventListener("click",G)},[E]),I.useEffect(()=>{if(!x)return;const G=()=>k(!1);return document.addEventListener("click",G),()=>document.removeEventListener("click",G)},[x]);const O=G=>{const te=Y.trim();te&&o(G,te),_(null)};return w.jsxs("aside",{className:"sidebar",children:[w.jsxs("header",{className:"sidebar-head",children:[w.jsxs("span",{className:"brand",children:[w.jsx("img",{className:"brand-logo",src:"/logo.svg",alt:""}),w.jsx("span",{className:"wordmark",children:"Casper"})]}),w.jsxs("div",{className:"sidebar-actions",children:[w.jsxs("div",{className:"account-menu",children:[w.jsx("button",{className:"iconbtn iconbtn-lg","aria-label":"Account",title:"Account",onClick:G=>{G.stopPropagation(),k(te=>!te)},children:w.jsx(hv,{size:18})}),x&&w.jsxs("div",{className:"menu-list",onClick:G=>G.stopPropagation(),children:[w.jsx("button",{className:"menu-item",onClick:()=>{k(!1),p(!0)},children:"Devices"}),w.jsx("button",{className:"menu-item",onClick:()=>{k(!1),c()},children:"Lock app"})]})]}),w.jsx("button",{className:"iconbtn iconbtn-lg","aria-label":"Search sessions",onClick:()=>f(!0),children:w.jsx(F4,{size:20})}),w.jsx("button",{className:"iconbtn iconbtn-lg","aria-label":"New session",title:"New session",onClick:a,children:w.jsx(P4,{size:20})})]})]}),w.jsx("div",{className:"sidebar-list",children:e.length===0?w.jsx("p",{className:"sidebar-empty",children:"No sessions yet. Start one and it keeps running while you're away."}):e.map(G=>w.jsxs("div",{className:`srow ${G.sessionId===t?"is-active":""}`,children:[R===G.sessionId?w.jsx("input",{className:"srow-rename",autoFocus:!0,value:Y,onChange:te=>V(te.target.value),onBlur:()=>O(G.sessionId),onKeyDown:te=>{te.key==="Enter"&&O(G.sessionId),te.key==="Escape"&&_(null)},onClick:te=>te.stopPropagation()}):w.jsx(bh,{className:"srow-open",to:R4(G.sessionId),onClick:te=>{te.metaKey||te.ctrlKey||te.shiftKey||te.altKey||i(G.sessionId)},children:w.jsxs("span",{className:"srow-main",children:[w.jsx("span",{className:"srow-title",title:G.title,children:G.title}),w.jsxs("span",{className:"srow-sub",children:[w.jsx("span",{className:"srow-agent",children:G.agentId??"kiro_default"}),w.jsx("span",{className:"srow-dot",children:"·"}),n===G.sessionId&&w.jsx(ni,{size:11,className:"srow-spinner"}),w.jsx("span",{className:"srow-when",children:Dv(G.updatedAt)})]}),G.cwd&&w.jsx("span",{className:"srow-cwd",title:G.cwd,children:Lv(G.cwd)})]})}),w.jsxs("div",{className:"srow-menu",children:[w.jsx("button",{className:"iconbtn srow-menu-btn","aria-label":"Session actions",onClick:te=>{te.stopPropagation(),N(E===G.sessionId?null:G.sessionId)},children:"⋮"}),E===G.sessionId&&w.jsxs("div",{className:"menu-list",onClick:te=>te.stopPropagation(),children:[w.jsx("button",{className:"menu-item",onClick:()=>{V(G.title),_(G.sessionId),N(null)},children:"Rename"}),w.jsx("button",{className:"menu-item menu-item-danger",onClick:()=>{N(null),A(G.sessionId)},children:"Delete"})]})]})]},G.sessionId))}),h&&w.jsx(zv,{sessions:e,onOpen:i,onClose:()=>f(!1)}),m&&w.jsx(Iv,{onClose:()=>p(!1),onSelfRevoked:()=>{p(!1),c()}}),z&&w.jsx(Rv,{title:"Delete session?",message:"This session and its history will be permanently deleted. This can't be undone.",confirmLabel:"Delete",danger:!0,onConfirm:()=>{const G=z;A(null),s(G)},onCancel:()=>A(null)})]})}function Fv(e,t){if(e<=0)return{offset:0,limit:0};const n=Math.max(0,e-t);return{offset:n,limit:e-n}}function dm(e){const t=[],n=String(e||"");let i=n.indexOf(","),a=0,s=!1;for(;!s;){i===-1&&(i=n.length,s=!0);const o=n.slice(a,i).trim();(o||!s)&&t.push(o),a=i+1,i=n.indexOf(",",a)}return t}function Ov(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Bv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_v=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$v={};function mm(e,t){return($v.jsx?_v:Bv).test(e)}const Hv=/[ \t\n\f\r]/g;function qv(e){return typeof e=="object"?e.type==="text"?pm(e.value):!1:pm(e)}function pm(e){return e.replace(Hv,"")===""}class Fa{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Fa.prototype.normal={};Fa.prototype.property={};Fa.prototype.space=void 0;function B4(e,t){const n={},i={};for(const a of e)Object.assign(n,a.property),Object.assign(i,a.normal);return new Fa(n,i,t)}function Ma(e){return e.toLowerCase()}class on{constructor(t,n){this.attribute=n,this.property=t}}on.prototype.attribute="";on.prototype.booleanish=!1;on.prototype.boolean=!1;on.prototype.commaOrSpaceSeparated=!1;on.prototype.commaSeparated=!1;on.prototype.defined=!1;on.prototype.mustUseProperty=!1;on.prototype.number=!1;on.prototype.overloadedBoolean=!1;on.prototype.property="";on.prototype.spaceSeparated=!1;on.prototype.space=void 0;let Uv=0;const $e=$i(),bt=$i(),jc=$i(),de=$i(),tt=$i(),Oi=$i(),pn=$i();function $i(){return 2**++Uv}const Ic=Object.freeze(Object.defineProperty({__proto__:null,boolean:$e,booleanish:bt,commaOrSpaceSeparated:pn,commaSeparated:Oi,number:de,overloadedBoolean:jc,spaceSeparated:tt},Symbol.toStringTag,{value:"Module"})),G0=Object.keys(Ic);class Sh extends on{constructor(t,n,i,a){let s=-1;if(super(t,n),gm(this,"space",a),typeof i=="number")for(;++s<G0.length;){const o=G0[s];gm(this,G0[s],(i&Ic[o])===Ic[o])}}}Sh.prototype.defined=!0;function gm(e,t,n){n&&(e[t]=n)}function Nl(e){const t={},n={};for(const[i,a]of Object.entries(e.properties)){const s=new Sh(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[Ma(i)]=i,n[Ma(s.attribute)]=i}return new Fa(t,n,e.space)}const _4=Nl({properties:{ariaActiveDescendant:null,ariaAtomic:bt,ariaAutoComplete:null,ariaBusy:bt,ariaChecked:bt,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:tt,ariaCurrent:null,ariaDescribedBy:tt,ariaDetails:null,ariaDisabled:bt,ariaDropEffect:tt,ariaErrorMessage:null,ariaExpanded:bt,ariaFlowTo:tt,ariaGrabbed:bt,ariaHasPopup:null,ariaHidden:bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tt,ariaLevel:de,ariaLive:null,ariaModal:bt,ariaMultiLine:bt,ariaMultiSelectable:bt,ariaOrientation:null,ariaOwns:tt,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:bt,ariaReadOnly:bt,ariaRelevant:null,ariaRequired:bt,ariaRoleDescription:tt,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:bt,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $4(e,t){return t in e?e[t]:t}function H4(e,t){return $4(e,t.toLowerCase())}const Vv=Nl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Oi,acceptCharset:tt,accessKey:tt,action:null,allow:null,allowFullScreen:$e,allowPaymentRequest:$e,allowUserMedia:$e,alpha:$e,alt:null,as:null,async:$e,autoCapitalize:null,autoComplete:tt,autoFocus:$e,autoPlay:$e,blocking:tt,capture:null,charSet:null,checked:$e,cite:null,className:tt,closedBy:null,colorSpace:null,cols:de,colSpan:de,command:null,commandFor:null,content:null,contentEditable:bt,controls:$e,controlsList:tt,coords:de|Oi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$e,defer:$e,dir:null,dirName:null,disabled:$e,download:jc,draggable:bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$e,formTarget:null,headers:tt,height:de,hidden:jc,high:de,href:null,hrefLang:null,htmlFor:tt,httpEquiv:tt,id:null,imageSizes:null,imageSrcSet:null,inert:$e,inputMode:null,integrity:null,is:null,isMap:$e,itemId:null,itemProp:tt,itemRef:tt,itemScope:$e,itemType:tt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$e,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,multiple:$e,muted:$e,name:null,nonce:null,noModule:$e,noValidate:$e,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:$e,optimum:de,pattern:null,ping:tt,placeholder:null,playsInline:$e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$e,referrerPolicy:null,rel:tt,required:$e,reversed:$e,rows:de,rowSpan:de,sandbox:tt,scope:null,scoped:$e,seamless:$e,selected:$e,shadowRootClonable:$e,shadowRootCustomElementRegistry:$e,shadowRootDelegatesFocus:$e,shadowRootMode:null,shadowRootSerializable:$e,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:de,step:null,style:null,tabIndex:de,target:null,title:null,translate:null,type:null,typeMustMatch:$e,useMap:null,value:bt,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tt,axis:null,background:null,bgColor:null,border:de,borderColor:null,bottomMargin:de,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$e,declare:$e,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:$e,noHref:$e,noShade:$e,noWrap:$e,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:bt,standby:null,summary:null,text:null,topMargin:de,valueType:null,version:null,vAlign:null,vLink:null,vSpace:de,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:$e,disablePictureInPicture:$e,disableRemotePlayback:$e,exportParts:Oi,part:tt,prefix:null,property:null,results:de,security:null,unselectable:null},space:"html",transform:H4}),Wv=Nl({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:pn,accentHeight:de,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:de,amplitude:de,arabicForm:null,ascent:de,attributeName:null,attributeType:null,azimuth:de,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:de,by:null,calcMode:null,capHeight:de,className:tt,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:de,diffuseConstant:de,direction:null,display:null,dur:null,divisor:de,dominantBaseline:null,download:$e,dx:null,dy:null,edgeMode:null,editable:null,elevation:de,enableBackground:null,end:null,event:null,exponent:de,externalResourcesRequired:null,fill:null,fillOpacity:de,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:Oi,g2:Oi,glyphName:Oi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:de,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:de,horizOriginX:de,horizOriginY:de,id:null,ideographic:de,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:de,k:de,k1:de,k2:de,k3:de,k4:de,kernelMatrix:pn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:de,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:de,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:de,overlineThickness:de,paintOrder:null,panose1:null,path:null,pathLength:de,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pn,rev:pn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pn,requiredFeatures:pn,requiredFonts:pn,requiredFormats:pn,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:de,specularExponent:de,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:de,strikethroughThickness:de,string:null,stroke:null,strokeDashArray:pn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:de,strokeOpacity:de,strokeWidth:null,style:null,surfaceScale:de,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pn,tabIndex:de,tableValues:null,target:null,targetX:de,targetY:de,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:de,underlineThickness:de,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:de,values:null,vAlphabetic:de,vMathematical:de,vectorEffect:null,vHanging:de,vIdeographic:de,version:null,vertAdvY:de,vertOriginX:de,vertOriginY:de,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:de,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$4}),q4=Nl({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()}}),U4=Nl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:H4}),V4=Nl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Gv={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"},Yv=/[A-Z]/g,vm=/-[a-z]/g,Xv=/^data[-\w.:]+$/i;function W4(e,t){const n=Ma(t);let i=t,a=on;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xv.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(vm,Qv);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!vm.test(s)){let o=s.replace(Yv,Kv);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Sh}return new a(i,t)}function Kv(e){return"-"+e.toLowerCase()}function Qv(e){return e.charAt(1).toUpperCase()}const G4=B4([_4,Vv,q4,U4,V4],"html"),Lo=B4([_4,Wv,q4,U4,V4],"svg");function ym(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Jv(e){return e.join(" ").trim()}var gl={},Y0,xm;function Zv(){if(xm)return Y0;xm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,h=`
|
|
55
|
+
`,f="/",m="*",p="",x="comment",k="declaration";function E(z,A){if(typeof z!="string")throw new TypeError("First argument must be a string");if(!z)return[];A=A||{};var R=1,_=1;function Y(ge){var le=ge.match(t);le&&(R+=le.length);var je=ge.lastIndexOf(h);_=~je?ge.length-je:_+ge.length}function V(){var ge={line:R,column:_};return function(le){return le.position=new O(ge),re(),le}}function O(ge){this.start=ge,this.end={line:R,column:_},this.source=A.source}O.prototype.content=z;function G(ge){var le=new Error(A.source+":"+R+":"+_+": "+ge);if(le.reason=ge,le.filename=A.source,le.line=R,le.column=_,le.source=z,!A.silent)throw le}function te(ge){var le=ge.exec(z);if(le){var je=le[0];return Y(je),z=z.slice(je.length),le}}function re(){te(n)}function q(ge){var le;for(ge=ge||[];le=fe();)le!==!1&&ge.push(le);return ge}function fe(){var ge=V();if(!(f!=z.charAt(0)||m!=z.charAt(1))){for(var le=2;p!=z.charAt(le)&&(m!=z.charAt(le)||f!=z.charAt(le+1));)++le;if(le+=2,p===z.charAt(le-1))return G("End of comment missing");var je=z.slice(2,le-2);return _+=2,Y(je),z=z.slice(le),_+=2,ge({type:x,comment:je})}}function ie(){var ge=V(),le=te(i);if(le){if(fe(),!te(a))return G("property missing ':'");var je=te(s),Q=ge({type:k,property:N(le[0].replace(e,p)),value:je?N(je[0].replace(e,p)):p});return te(o),Q}}function Ee(){var ge=[];q(ge);for(var le;le=ie();)le!==!1&&(ge.push(le),q(ge));return ge}return re(),Ee()}function N(z){return z?z.replace(c,p):p}return Y0=E,Y0}var wm;function e8(){if(wm)return gl;wm=1;var e=gl&&gl.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(gl,"__esModule",{value:!0}),gl.default=n;const t=e(Zv());function n(i,a){let s=null;if(!i||typeof i!="string")return s;const o=(0,t.default)(i),c=typeof a=="function";return o.forEach(h=>{if(h.type!=="declaration")return;const{property:f,value:m}=h;c?a(f,m,h):m&&(s=s||{},s[f]=m)}),s}return gl}var va={},km;function t8(){if(km)return va;km=1,Object.defineProperty(va,"__esModule",{value:!0}),va.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(f){return!f||n.test(f)||e.test(f)},o=function(f,m){return m.toUpperCase()},c=function(f,m){return"".concat(m,"-")},h=function(f,m){return m===void 0&&(m={}),s(f)?f:(f=f.toLowerCase(),m.reactCompat?f=f.replace(a,c):f=f.replace(i,c),f.replace(t,o))};return va.camelCase=h,va}var ya,bm;function n8(){if(bm)return ya;bm=1;var e=ya&&ya.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(e8()),n=t8();function i(a,s){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(c,h){c&&h&&(o[(0,n.camelCase)(c,s)]=h)}),o}return i.default=i,ya=i,ya}var r8=n8();const i8=hh(r8),Y4=X4("end"),Ch=X4("start");function X4(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 l8(e){const t=Ch(e),n=Y4(e);if(t&&n)return{start:t,end:n}}function Ca(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Sm(e.position):"start"in e||"end"in e?Sm(e):"line"in e||"column"in e?Rc(e):""}function Rc(e){return Cm(e&&e.line)+":"+Cm(e&&e.column)}function Sm(e){return Rc(e&&e.start)+"-"+Rc(e&&e.end)}function Cm(e){return e&&typeof e=="number"?e:1}class Vt extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let a="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?a=t:!s.cause&&t&&(o=!0,a=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?s.ruleId=i:(s.source=i.slice(0,h),s.ruleId=i.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=c?c.line:void 0,this.name=Ca(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Vt.prototype.file="";Vt.prototype.name="";Vt.prototype.reason="";Vt.prototype.message="";Vt.prototype.stack="";Vt.prototype.column=void 0;Vt.prototype.line=void 0;Vt.prototype.ancestors=void 0;Vt.prototype.cause=void 0;Vt.prototype.fatal=void 0;Vt.prototype.place=void 0;Vt.prototype.ruleId=void 0;Vt.prototype.source=void 0;const Eh={}.hasOwnProperty,a8=new Map,s8=/[A-Z]/g,o8=new Set(["table","tbody","thead","tfoot","tr"]),u8=new Set(["td","th"]),K4="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function c8(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=y8(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=v8(n,t.jsx,t.jsxs)}const a={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"?Lo:G4,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=Q4(a,e,void 0);return s&&typeof s!="string"?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}function Q4(e,t,n){if(t.type==="element")return h8(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return f8(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return m8(e,t,n);if(t.type==="mdxjsEsm")return d8(e,t);if(t.type==="root")return p8(e,t,n);if(t.type==="text")return g8(e,t)}function h8(e,t,n){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=Lo,e.schema=a),e.ancestors.push(t);const s=Z4(e,t.tagName,!1),o=x8(e,t);let c=Nh(e,t);return o8.has(t.tagName)&&(c=c.filter(function(h){return typeof h=="string"?!qv(h):!0})),J4(e,o,s,t),Th(o,c),e.ancestors.pop(),e.schema=i,e.create(t,s,o,n)}function f8(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)}ja(e,t.position)}function d8(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ja(e,t.position)}function m8(e,t,n){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=Lo,e.schema=a),e.ancestors.push(t);const s=t.name===null?e.Fragment:Z4(e,t.name,!0),o=w8(e,t),c=Nh(e,t);return J4(e,o,s,t),Th(o,c),e.ancestors.pop(),e.schema=i,e.create(t,s,o,n)}function p8(e,t,n){const i={};return Th(i,Nh(e,t)),e.create(t,e.Fragment,i,n)}function g8(e,t){return t.value}function J4(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Th(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function v8(e,t,n){return i;function i(a,s,o,c){const f=Array.isArray(o.children)?n:t;return c?f(s,o,c):f(s,o)}}function y8(e,t){return n;function n(i,a,s,o){const c=Array.isArray(s.children),h=Ch(i);return t(a,s,o,c,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function x8(e,t){const n={};let i,a;for(a in t.properties)if(a!=="children"&&Eh.call(t.properties,a)){const s=k8(e,a,t.properties[a]);if(s){const[o,c]=s;e.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&u8.has(t.tagName)?i=c:n[o]=c}}if(i){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function w8(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const o=s.expression;o.type;const c=o.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else ja(e,t.position);else{const a=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const c=i.value.data.estree.body[0];c.type,s=e.evaluater.evaluateExpression(c.expression)}else ja(e,t.position);else s=i.value===null?!0:i.value;n[a]=s}return n}function Nh(e,t){const n=[];let i=-1;const a=e.passKeys?new Map:a8;for(;++i<t.children.length;){const s=t.children[i];let o;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const f=a.get(h)||0;o=h+"-"+f,a.set(h,f+1)}}const c=Q4(e,s,o);c!==void 0&&n.push(c)}return n}function k8(e,t,n){const i=W4(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Ov(n):Jv(n)),i.property==="style"){let a=typeof n=="object"?n:b8(e,String(n));return e.stylePropertyNameCase==="css"&&(a=S8(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?Gv[i.property]||i.property:i.attribute,n]}}function b8(e,t){try{return i8(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,a=new Vt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=K4+"#cannot-parse-style-attribute",a}}function Z4(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let s=-1,o;for(;++s<a.length;){const c=mm(a[s])?{type:"Identifier",name:a[s]}:{type:"Literal",value:a[s]};o=o?{type:"MemberExpression",object:o,property:c,computed:!!(s&&c.type==="Literal"),optional:!1}:c}i=o}else i=mm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return Eh.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);ja(e)}function ja(e,t){const n=new Vt("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=K4+"#cannot-handle-mdx-estrees-without-createevaluater",n}function S8(e){const t={};let n;for(n in e)Eh.call(e,n)&&(t[C8(n)]=e[n]);return t}function C8(e){let t=e.replace(s8,E8);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function E8(e){return"-"+e.toLowerCase()}const X0={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"]},T8={};function Ah(e,t){const n=T8,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return e2(e,i,a)}function e2(e,t,n){if(N8(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 Em(e.children,t,n)}return Array.isArray(e)?Em(e,t,n):""}function Em(e,t,n){const i=[];let a=-1;for(;++a<e.length;)i[a]=e2(e[a],t,n);return i.join("")}function N8(e){return!!(e&&typeof e=="object")}const Tm=document.createElement("i");function zh(e){const t="&"+e+";";Tm.innerHTML=t;const n=Tm.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function gn(e,t,n,i){const a=e.length;let s=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,i.length<1e4)o=Array.from(i),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<i.length;)o=i.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function Mn(e,t){return e.length>0?(gn(e,e.length,0,t),e):t}const Nm={}.hasOwnProperty;function t2(e){const t={};let n=-1;for(;++n<e.length;)A8(t,e[n]);return t}function A8(e,t){let n;for(n in t){const a=(Nm.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){Nm.call(a,o)||(a[o]=[]);const c=s[o];z8(a[o],Array.isArray(c)?c:c?[c]:[])}}}function z8(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);gn(e,0,0,i)}function n2(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 Vn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Kt=si(/[A-Za-z]/),qt=si(/[\dA-Za-z]/),M8=si(/[#-'*+\--9=?A-Z^-~]/);function xo(e){return e!==null&&(e<32||e===127)}const Lc=si(/\d/),j8=si(/[\dA-Fa-f]/),I8=si(/[!-/:-@[-`{-~]/);function Me(e){return e!==null&&e<-2}function nt(e){return e!==null&&(e<0||e===32)}function Ge(e){return e===-2||e===-1||e===32}const Do=si(new RegExp("\\p{P}|\\p{S}","u")),Bi=si(/\s/);function si(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Al(e){const t=[];let n=-1,i=0,a=0;for(;++n<e.length;){const s=e.charCodeAt(n);let o="";if(s===37&&qt(e.charCodeAt(n+1))&&qt(e.charCodeAt(n+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const c=e.charCodeAt(n+1);s<56320&&c>56319&&c<57344?(o=String.fromCharCode(s,c),a=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(i,n),encodeURIComponent(o)),i=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(i)}function We(e,t,n,i){const a=i?i-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(h){return Ge(h)?(e.enter(n),c(h)):t(h)}function c(h){return Ge(h)&&s++<a?(e.consume(h),c):(e.exit(n),t(h))}}const R8={tokenize:L8};function L8(e){const t=e.attempt(this.parser.constructs.contentInitial,i,a);let n;return t;function i(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),We(e,t,"linePrefix")}function a(c){return e.enter("paragraph"),s(c)}function s(c){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,o(c)}function o(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Me(c)?(e.consume(c),e.exit("chunkText"),s):(e.consume(c),o)}}const D8={tokenize:P8},Am={tokenize:F8};function P8(e){const t=this,n=[];let i=0,a,s,o;return c;function c(_){if(i<n.length){const Y=n[i];return t.containerState=Y[1],e.attempt(Y[0].continuation,h,f)(_)}return f(_)}function h(_){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&R();const Y=t.events.length;let V=Y,O;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){O=t.events[V][1].end;break}A(i);let G=Y;for(;G<t.events.length;)t.events[G][1].end={...O},G++;return gn(t.events,V+1,0,t.events.slice(Y)),t.events.length=G,f(_)}return c(_)}function f(_){if(i===n.length){if(!a)return x(_);if(a.currentConstruct&&a.currentConstruct.concrete)return E(_);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Am,m,p)(_)}function m(_){return a&&R(),A(i),x(_)}function p(_){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,E(_)}function x(_){return t.containerState={},e.attempt(Am,k,E)(_)}function k(_){return i++,n.push([t.currentConstruct,t.containerState]),x(_)}function E(_){if(_===null){a&&R(),A(0),e.consume(_);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:s}),N(_)}function N(_){if(_===null){z(e.exit("chunkFlow"),!0),A(0),e.consume(_);return}return Me(_)?(e.consume(_),z(e.exit("chunkFlow")),i=0,t.interrupt=void 0,c):(e.consume(_),N)}function z(_,Y){const V=t.sliceStream(_);if(Y&&V.push(null),_.previous=s,s&&(s.next=_),s=_,a.defineSkip(_.start),a.write(V),t.parser.lazy[_.start.line]){let O=a.events.length;for(;O--;)if(a.events[O][1].start.offset<o&&(!a.events[O][1].end||a.events[O][1].end.offset>o))return;const G=t.events.length;let te=G,re,q;for(;te--;)if(t.events[te][0]==="exit"&&t.events[te][1].type==="chunkFlow"){if(re){q=t.events[te][1].end;break}re=!0}for(A(i),O=G;O<t.events.length;)t.events[O][1].end={...q},O++;gn(t.events,te+1,0,t.events.slice(G)),t.events.length=O}}function A(_){let Y=n.length;for(;Y-- >_;){const V=n[Y];t.containerState=V[1],V[0].exit.call(t,e)}n.length=_}function R(){a.write([null]),s=void 0,a=void 0,t.containerState._closeFlow=void 0}}function F8(e,t,n){return We(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wl(e){if(e===null||nt(e)||Bi(e))return 1;if(Do(e))return 2}function Po(e,t,n){const i=[];let a=-1;for(;++a<e.length;){const s=e[a].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const Dc={name:"attention",resolveAll:O8,tokenize:B8};function O8(e,t){let n=-1,i,a,s,o,c,h,f,m;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 p={...e[i][1].end},x={...e[n][1].start};zm(p,-h),zm(x,h),o={type:h>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},c={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:x},s={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},a={type:h>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},e[i][1].end={...o.start},e[n][1].start={...c.end},f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=Mn(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=Mn(f,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",s,t]]),f=Mn(f,Po(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),f=Mn(f,[["exit",s,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,f=Mn(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,gn(e,i-1,n-i+3,f),n=i+f.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function B8(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,a=wl(i);let s;return o;function o(h){return s=h,e.enter("attentionSequence"),c(h)}function c(h){if(h===s)return e.consume(h),c;const f=e.exit("attentionSequence"),m=wl(h),p=!m||m===2&&a||n.includes(h),x=!a||a===2&&m||n.includes(i);return f._open=!!(s===42?p:p&&(a||!x)),f._close=!!(s===42?x:x&&(m||!p)),t(h)}}function zm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const _8={name:"autolink",tokenize:$8};function $8(e,t,n){let i=0;return a;function a(k){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(k),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(k){return Kt(k)?(e.consume(k),o):k===64?n(k):f(k)}function o(k){return k===43||k===45||k===46||qt(k)?(i=1,c(k)):f(k)}function c(k){return k===58?(e.consume(k),i=0,h):(k===43||k===45||k===46||qt(k))&&i++<32?(e.consume(k),c):(i=0,f(k))}function h(k){return k===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(k),e.exit("autolinkMarker"),e.exit("autolink"),t):k===null||k===32||k===60||xo(k)?n(k):(e.consume(k),h)}function f(k){return k===64?(e.consume(k),m):M8(k)?(e.consume(k),f):n(k)}function m(k){return qt(k)?p(k):n(k)}function p(k){return k===46?(e.consume(k),i=0,m):k===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(k),e.exit("autolinkMarker"),e.exit("autolink"),t):x(k)}function x(k){if((k===45||qt(k))&&i++<63){const E=k===45?x:p;return e.consume(k),E}return n(k)}}const Oa={partial:!0,tokenize:H8};function H8(e,t,n){return i;function i(s){return Ge(s)?We(e,a,"linePrefix")(s):a(s)}function a(s){return s===null||Me(s)?t(s):n(s)}}const r2={continuation:{tokenize:U8},exit:V8,name:"blockQuote",tokenize:q8};function q8(e,t,n){const i=this;return a;function a(o){if(o===62){const c=i.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return Ge(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function U8(e,t,n){const i=this;return a;function a(o){return Ge(o)?We(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(r2,t,n)(o)}}function V8(e){e.exit("blockQuote")}const i2={name:"characterEscape",tokenize:W8};function W8(e,t,n){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),a}function a(s){return I8(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const l2={name:"characterReference",tokenize:G8};function G8(e,t,n){const i=this;let a=0,s,o;return c;function c(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),h}function h(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),s=31,o=qt,m(p))}function f(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=j8,m):(e.enter("characterReferenceValue"),s=7,o=Lc,m(p))}function m(p){if(p===59&&a){const x=e.exit("characterReferenceValue");return o===qt&&!zh(i.sliceSerialize(x))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(p)&&a++<s?(e.consume(p),m):n(p)}}const Mm={partial:!0,tokenize:X8},jm={concrete:!0,name:"codeFenced",tokenize:Y8};function Y8(e,t,n){const i=this,a={partial:!0,tokenize:V};let s=0,o=0,c;return h;function h(O){return f(O)}function f(O){const G=i.events[i.events.length-1];return s=G&&G[1].type==="linePrefix"?G[2].sliceSerialize(G[1],!0).length:0,c=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(O)}function m(O){return O===c?(o++,e.consume(O),m):o<3?n(O):(e.exit("codeFencedFenceSequence"),Ge(O)?We(e,p,"whitespace")(O):p(O))}function p(O){return O===null||Me(O)?(e.exit("codeFencedFence"),i.interrupt?t(O):e.check(Mm,N,Y)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(O))}function x(O){return O===null||Me(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(O)):Ge(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),We(e,k,"whitespace")(O)):O===96&&O===c?n(O):(e.consume(O),x)}function k(O){return O===null||Me(O)?p(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(O))}function E(O){return O===null||Me(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(O)):O===96&&O===c?n(O):(e.consume(O),E)}function N(O){return e.attempt(a,Y,z)(O)}function z(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),A}function A(O){return s>0&&Ge(O)?We(e,R,"linePrefix",s+1)(O):R(O)}function R(O){return O===null||Me(O)?e.check(Mm,N,Y)(O):(e.enter("codeFlowValue"),_(O))}function _(O){return O===null||Me(O)?(e.exit("codeFlowValue"),R(O)):(e.consume(O),_)}function Y(O){return e.exit("codeFenced"),t(O)}function V(O,G,te){let re=0;return q;function q(le){return O.enter("lineEnding"),O.consume(le),O.exit("lineEnding"),fe}function fe(le){return O.enter("codeFencedFence"),Ge(le)?We(O,ie,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(le):ie(le)}function ie(le){return le===c?(O.enter("codeFencedFenceSequence"),Ee(le)):te(le)}function Ee(le){return le===c?(re++,O.consume(le),Ee):re>=o?(O.exit("codeFencedFenceSequence"),Ge(le)?We(O,ge,"whitespace")(le):ge(le)):te(le)}function ge(le){return le===null||Me(le)?(O.exit("codeFencedFence"),G(le)):te(le)}}}function X8(e,t,n){const i=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}const K0={name:"codeIndented",tokenize:Q8},K8={partial:!0,tokenize:J8};function Q8(e,t,n){const i=this;return a;function a(f){return e.enter("codeIndented"),We(e,s,"linePrefix",5)(f)}function s(f){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?o(f):n(f)}function o(f){return f===null?h(f):Me(f)?e.attempt(K8,o,h)(f):(e.enter("codeFlowValue"),c(f))}function c(f){return f===null||Me(f)?(e.exit("codeFlowValue"),o(f)):(e.consume(f),c)}function h(f){return e.exit("codeIndented"),t(f)}}function J8(e,t,n){const i=this;return a;function a(o){return i.parser.lazy[i.now().line]?n(o):Me(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):We(e,s,"linePrefix",5)(o)}function s(o){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(o):Me(o)?a(o):n(o)}}const Z8={name:"codeText",previous:ty,resolve:ey,tokenize:ny};function ey(e){let t=e.length-4,n=3,i,a;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;)a===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(a=i):(i===t||e[i][1].type==="lineEnding")&&(e[a][1].type="codeTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e}function ty(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ny(e,t,n){let i=0,a,s;return o;function o(p){return e.enter("codeText"),e.enter("codeTextSequence"),c(p)}function c(p){return p===96?(e.consume(p),i++,c):(e.exit("codeTextSequence"),h(p))}function h(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),h):p===96?(s=e.enter("codeTextSequence"),a=0,m(p)):Me(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("codeTextData"),f(p))}function f(p){return p===null||p===32||p===96||Me(p)?(e.exit("codeTextData"),h(p)):(e.consume(p),f)}function m(p){return p===96?(e.consume(p),a++,m):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",f(p))}}class ry{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 a=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return i&&xa(this.left,i),s.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),xa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),xa(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);xa(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);xa(this.left,n.reverse())}}}function xa(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 a2(e){const t={};let n=-1,i,a,s,o,c,h,f;const m=new ry(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(i=m.get(n),n&&i[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,iy(m,n)),n=t[n],f=!0);else if(i[1]._container){for(s=n,a=void 0;s--;)if(o=m.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(m.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(i[1].end={...m.get(a)[1].start},c=m.slice(a,n),c.unshift(i),m.splice(a,n-a+1,c))}}return gn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!f}function iy(e,t){const n=e.get(t)[1],i=e.get(t)[2];let a=t-1;const s=[];let o=n._tokenizer;o||(o=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const c=o.events,h=[],f={};let m,p,x=-1,k=n,E=0,N=0;const z=[N];for(;k;){for(;e.get(++a)[1]!==k;);s.push(a),k._tokenizer||(m=i.sliceStream(k),k.next||m.push(null),p&&o.defineSkip(k.start),k._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(m),k._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=k,k=k.next}for(k=n;++x<c.length;)c[x][0]==="exit"&&c[x-1][0]==="enter"&&c[x][1].type===c[x-1][1].type&&c[x][1].start.line!==c[x][1].end.line&&(N=x+1,z.push(N),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(o.events=[],k?(k._tokenizer=void 0,k.previous=void 0):z.pop(),x=z.length;x--;){const A=c.slice(z[x],z[x+1]),R=s.pop();h.push([R,R+A.length-1]),e.splice(R,2,A)}for(h.reverse(),x=-1;++x<h.length;)f[E+h[x][0]]=E+h[x][1],E+=h[x][1]-h[x][0]-1;return f}const ly={resolve:sy,tokenize:oy},ay={partial:!0,tokenize:uy};function sy(e){return a2(e),e}function oy(e,t){let n;return i;function i(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(c)}function a(c){return c===null?s(c):Me(c)?e.check(ay,o,s)(c):(e.consume(c),a)}function s(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function o(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function uy(e,t,n){const i=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),We(e,s,"linePrefix")}function s(o){if(o===null||Me(o))return n(o);const c=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(o):e.interrupt(i.parser.constructs.flow,n,t)(o)}}function s2(e,t,n,i,a,s,o,c,h){const f=h||Number.POSITIVE_INFINITY;let m=0;return p;function p(A){return A===60?(e.enter(i),e.enter(a),e.enter(s),e.consume(A),e.exit(s),x):A===null||A===32||A===41||xo(A)?n(A):(e.enter(i),e.enter(o),e.enter(c),e.enter("chunkString",{contentType:"string"}),N(A))}function x(A){return A===62?(e.enter(s),e.consume(A),e.exit(s),e.exit(a),e.exit(i),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),k(A))}function k(A){return A===62?(e.exit("chunkString"),e.exit(c),x(A)):A===null||A===60||Me(A)?n(A):(e.consume(A),A===92?E:k)}function E(A){return A===60||A===62||A===92?(e.consume(A),k):k(A)}function N(A){return!m&&(A===null||A===41||nt(A))?(e.exit("chunkString"),e.exit(c),e.exit(o),e.exit(i),t(A)):m<f&&A===40?(e.consume(A),m++,N):A===41?(e.consume(A),m--,N):A===null||A===32||A===40||xo(A)?n(A):(e.consume(A),A===92?z:N)}function z(A){return A===40||A===41||A===92?(e.consume(A),N):N(A)}}function o2(e,t,n,i,a,s){const o=this;let c=0,h;return f;function f(k){return e.enter(i),e.enter(a),e.consume(k),e.exit(a),e.enter(s),m}function m(k){return c>999||k===null||k===91||k===93&&!h||k===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?n(k):k===93?(e.exit(s),e.enter(a),e.consume(k),e.exit(a),e.exit(i),t):Me(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===null||k===91||k===93||Me(k)||c++>999?(e.exit("chunkString"),m(k)):(e.consume(k),h||(h=!Ge(k)),k===92?x:p)}function x(k){return k===91||k===92||k===93?(e.consume(k),c++,p):p(k)}}function u2(e,t,n,i,a,s){let o;return c;function c(x){return x===34||x===39||x===40?(e.enter(i),e.enter(a),e.consume(x),e.exit(a),o=x===40?41:x,h):n(x)}function h(x){return x===o?(e.enter(a),e.consume(x),e.exit(a),e.exit(i),t):(e.enter(s),f(x))}function f(x){return x===o?(e.exit(s),h(o)):x===null?n(x):Me(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),We(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===o||x===null||Me(x)?(e.exit("chunkString"),f(x)):(e.consume(x),x===92?p:m)}function p(x){return x===o||x===92?(e.consume(x),m):m(x)}}function Ea(e,t){let n;return i;function i(a){return Me(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,i):Ge(a)?We(e,i,n?"linePrefix":"lineSuffix")(a):t(a)}}const cy={name:"definition",tokenize:fy},hy={partial:!0,tokenize:dy};function fy(e,t,n){const i=this;let a;return s;function s(k){return e.enter("definition"),o(k)}function o(k){return o2.call(i,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(k)}function c(k){return a=Vn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),h):n(k)}function h(k){return nt(k)?Ea(e,f)(k):f(k)}function f(k){return s2(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(k)}function m(k){return e.attempt(hy,p,p)(k)}function p(k){return Ge(k)?We(e,x,"whitespace")(k):x(k)}function x(k){return k===null||Me(k)?(e.exit("definition"),i.parser.defined.push(a),t(k)):n(k)}}function dy(e,t,n){return i;function i(c){return nt(c)?Ea(e,a)(c):n(c)}function a(c){return u2(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function s(c){return Ge(c)?We(e,o,"whitespace")(c):o(c)}function o(c){return c===null||Me(c)?t(c):n(c)}}const my={name:"hardBreakEscape",tokenize:py};function py(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),a}function a(s){return Me(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const gy={name:"headingAtx",resolve:vy,tokenize:yy};function vy(e,t){let n=e.length-2,i=3,a,s;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&&(a={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},gn(e,i,n-i+1,[["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t]])),e}function yy(e,t,n){let i=0;return a;function a(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),o(m)}function o(m){return m===35&&i++<6?(e.consume(m),o):m===null||nt(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),h(m)):m===null||Me(m)?(e.exit("atxHeading"),t(m)):Ge(m)?We(e,c,"whitespace")(m):(e.enter("atxHeadingText"),f(m))}function h(m){return m===35?(e.consume(m),h):(e.exit("atxHeadingSequence"),c(m))}function f(m){return m===null||m===35||nt(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),f)}}const xy=["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"],Im=["pre","script","style","textarea"],wy={concrete:!0,name:"htmlFlow",resolveTo:Sy,tokenize:Cy},ky={partial:!0,tokenize:Ty},by={partial:!0,tokenize:Ey};function Sy(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 Cy(e,t,n){const i=this;let a,s,o,c,h;return f;function f(j){return m(j)}function m(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),p}function p(j){return j===33?(e.consume(j),x):j===47?(e.consume(j),s=!0,N):j===63?(e.consume(j),a=3,i.interrupt?t:M):Kt(j)?(e.consume(j),o=String.fromCharCode(j),z):n(j)}function x(j){return j===45?(e.consume(j),a=2,k):j===91?(e.consume(j),a=5,c=0,E):Kt(j)?(e.consume(j),a=4,i.interrupt?t:M):n(j)}function k(j){return j===45?(e.consume(j),i.interrupt?t:M):n(j)}function E(j){const Z="CDATA[";return j===Z.charCodeAt(c++)?(e.consume(j),c===Z.length?i.interrupt?t:ie:E):n(j)}function N(j){return Kt(j)?(e.consume(j),o=String.fromCharCode(j),z):n(j)}function z(j){if(j===null||j===47||j===62||nt(j)){const Z=j===47,xe=o.toLowerCase();return!Z&&!s&&Im.includes(xe)?(a=1,i.interrupt?t(j):ie(j)):xy.includes(o.toLowerCase())?(a=6,Z?(e.consume(j),A):i.interrupt?t(j):ie(j)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(j):s?R(j):_(j))}return j===45||qt(j)?(e.consume(j),o+=String.fromCharCode(j),z):n(j)}function A(j){return j===62?(e.consume(j),i.interrupt?t:ie):n(j)}function R(j){return Ge(j)?(e.consume(j),R):q(j)}function _(j){return j===47?(e.consume(j),q):j===58||j===95||Kt(j)?(e.consume(j),Y):Ge(j)?(e.consume(j),_):q(j)}function Y(j){return j===45||j===46||j===58||j===95||qt(j)?(e.consume(j),Y):V(j)}function V(j){return j===61?(e.consume(j),O):Ge(j)?(e.consume(j),V):_(j)}function O(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),h=j,G):Ge(j)?(e.consume(j),O):te(j)}function G(j){return j===h?(e.consume(j),h=null,re):j===null||Me(j)?n(j):(e.consume(j),G)}function te(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||nt(j)?V(j):(e.consume(j),te)}function re(j){return j===47||j===62||Ge(j)?_(j):n(j)}function q(j){return j===62?(e.consume(j),fe):n(j)}function fe(j){return j===null||Me(j)?ie(j):Ge(j)?(e.consume(j),fe):n(j)}function ie(j){return j===45&&a===2?(e.consume(j),je):j===60&&a===1?(e.consume(j),Q):j===62&&a===4?(e.consume(j),F):j===63&&a===3?(e.consume(j),M):j===93&&a===5?(e.consume(j),J):Me(j)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(ky,K,Ee)(j)):j===null||Me(j)?(e.exit("htmlFlowData"),Ee(j)):(e.consume(j),ie)}function Ee(j){return e.check(by,ge,K)(j)}function ge(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),le}function le(j){return j===null||Me(j)?Ee(j):(e.enter("htmlFlowData"),ie(j))}function je(j){return j===45?(e.consume(j),M):ie(j)}function Q(j){return j===47?(e.consume(j),o="",ne):ie(j)}function ne(j){if(j===62){const Z=o.toLowerCase();return Im.includes(Z)?(e.consume(j),F):ie(j)}return Kt(j)&&o.length<8?(e.consume(j),o+=String.fromCharCode(j),ne):ie(j)}function J(j){return j===93?(e.consume(j),M):ie(j)}function M(j){return j===62?(e.consume(j),F):j===45&&a===2?(e.consume(j),M):ie(j)}function F(j){return j===null||Me(j)?(e.exit("htmlFlowData"),K(j)):(e.consume(j),F)}function K(j){return e.exit("htmlFlow"),t(j)}}function Ey(e,t,n){const i=this;return a;function a(o){return Me(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}function Ty(e,t,n){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Oa,t,n)}}const Ny={name:"htmlText",tokenize:Ay};function Ay(e,t,n){const i=this;let a,s,o;return c;function c(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),h}function h(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),V):M===63?(e.consume(M),_):Kt(M)?(e.consume(M),te):n(M)}function f(M){return M===45?(e.consume(M),m):M===91?(e.consume(M),s=0,E):Kt(M)?(e.consume(M),R):n(M)}function m(M){return M===45?(e.consume(M),k):n(M)}function p(M){return M===null?n(M):M===45?(e.consume(M),x):Me(M)?(o=p,Q(M)):(e.consume(M),p)}function x(M){return M===45?(e.consume(M),k):p(M)}function k(M){return M===62?je(M):M===45?x(M):p(M)}function E(M){const F="CDATA[";return M===F.charCodeAt(s++)?(e.consume(M),s===F.length?N:E):n(M)}function N(M){return M===null?n(M):M===93?(e.consume(M),z):Me(M)?(o=N,Q(M)):(e.consume(M),N)}function z(M){return M===93?(e.consume(M),A):N(M)}function A(M){return M===62?je(M):M===93?(e.consume(M),A):N(M)}function R(M){return M===null||M===62?je(M):Me(M)?(o=R,Q(M)):(e.consume(M),R)}function _(M){return M===null?n(M):M===63?(e.consume(M),Y):Me(M)?(o=_,Q(M)):(e.consume(M),_)}function Y(M){return M===62?je(M):_(M)}function V(M){return Kt(M)?(e.consume(M),O):n(M)}function O(M){return M===45||qt(M)?(e.consume(M),O):G(M)}function G(M){return Me(M)?(o=G,Q(M)):Ge(M)?(e.consume(M),G):je(M)}function te(M){return M===45||qt(M)?(e.consume(M),te):M===47||M===62||nt(M)?re(M):n(M)}function re(M){return M===47?(e.consume(M),je):M===58||M===95||Kt(M)?(e.consume(M),q):Me(M)?(o=re,Q(M)):Ge(M)?(e.consume(M),re):je(M)}function q(M){return M===45||M===46||M===58||M===95||qt(M)?(e.consume(M),q):fe(M)}function fe(M){return M===61?(e.consume(M),ie):Me(M)?(o=fe,Q(M)):Ge(M)?(e.consume(M),fe):re(M)}function ie(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),a=M,Ee):Me(M)?(o=ie,Q(M)):Ge(M)?(e.consume(M),ie):(e.consume(M),ge)}function Ee(M){return M===a?(e.consume(M),a=void 0,le):M===null?n(M):Me(M)?(o=Ee,Q(M)):(e.consume(M),Ee)}function ge(M){return M===null||M===34||M===39||M===60||M===61||M===96?n(M):M===47||M===62||nt(M)?re(M):(e.consume(M),ge)}function le(M){return M===47||M===62||nt(M)?re(M):n(M)}function je(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):n(M)}function Q(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),ne}function ne(M){return Ge(M)?We(e,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):J(M)}function J(M){return e.enter("htmlTextData"),o(M)}}const Mh={name:"labelEnd",resolveAll:Iy,resolveTo:Ry,tokenize:Ly},zy={tokenize:Dy},My={tokenize:Py},jy={tokenize:Fy};function Iy(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 a=i.type==="labelImage"?4:2;i.type="data",t+=a}}return e.length!==n.length&&gn(e,0,e.length,n),e}function Ry(e,t){let n=e.length,i=0,a,s,o,c;for(;n--;)if(a=e[n][1],s){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(s=n,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(o=n);const h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},m={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[o-2][1].start}};return c=[["enter",h,t],["enter",f,t]],c=Mn(c,e.slice(s+1,s+i+3)),c=Mn(c,[["enter",m,t]]),c=Mn(c,Po(t.parser.constructs.insideSpan.null,e.slice(s+i+4,o-3),t)),c=Mn(c,[["exit",m,t],e[o-2],e[o-1],["exit",f,t]]),c=Mn(c,e.slice(o+1)),c=Mn(c,[["exit",h,t]]),gn(e,s,e.length,c),e}function Ly(e,t,n){const i=this;let a=i.events.length,s,o;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){s=i.events[a][1];break}return c;function c(x){return s?s._inactive?p(x):(o=i.parser.defined.includes(Vn(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),h):n(x)}function h(x){return x===40?e.attempt(zy,m,o?m:p)(x):x===91?e.attempt(My,m,o?f:p)(x):o?m(x):p(x)}function f(x){return e.attempt(jy,m,p)(x)}function m(x){return t(x)}function p(x){return s._balanced=!0,n(x)}}function Dy(e,t,n){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),a}function a(p){return nt(p)?Ea(e,s)(p):s(p)}function s(p){return p===41?m(p):s2(e,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return nt(p)?Ea(e,h)(p):m(p)}function c(p){return n(p)}function h(p){return p===34||p===39||p===40?u2(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function f(p){return nt(p)?Ea(e,m)(p):m(p)}function m(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function Py(e,t,n){const i=this;return a;function a(c){return o2.call(i,e,s,o,"reference","referenceMarker","referenceString")(c)}function s(c){return i.parser.defined.includes(Vn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function o(c){return n(c)}}function Fy(e,t,n){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),a}function a(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Oy={name:"labelStartImage",resolveAll:Mh.resolveAll,tokenize:By};function By(e,t,n){const i=this;return a;function a(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),s}function s(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),o):n(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const _y={name:"labelStartLink",resolveAll:Mh.resolveAll,tokenize:$y};function $y(e,t,n){const i=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):t(o)}}const Q0={name:"lineEnding",tokenize:Hy};function Hy(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),We(e,t,"linePrefix")}}const mo={name:"thematicBreak",tokenize:qy};function qy(e,t,n){let i=0,a;return s;function s(f){return e.enter("thematicBreak"),o(f)}function o(f){return a=f,c(f)}function c(f){return f===a?(e.enter("thematicBreakSequence"),h(f)):i>=3&&(f===null||Me(f))?(e.exit("thematicBreak"),t(f)):n(f)}function h(f){return f===a?(e.consume(f),i++,h):(e.exit("thematicBreakSequence"),Ge(f)?We(e,c,"whitespace")(f):c(f))}}const an={continuation:{tokenize:Gy},exit:Xy,name:"list",tokenize:Wy},Uy={partial:!0,tokenize:Ky},Vy={partial:!0,tokenize:Yy};function Wy(e,t,n){const i=this,a=i.events[i.events.length-1];let s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return c;function c(k){const E=i.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!i.containerState.marker||k===i.containerState.marker:Lc(k)){if(i.containerState.type||(i.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),k===42||k===45?e.check(mo,n,f)(k):f(k);if(!i.interrupt||k===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(k)}return n(k)}function h(k){return Lc(k)&&++o<10?(e.consume(k),h):(!i.interrupt||o<2)&&(i.containerState.marker?k===i.containerState.marker:k===41||k===46)?(e.exit("listItemValue"),f(k)):n(k)}function f(k){return e.enter("listItemMarker"),e.consume(k),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||k,e.check(Oa,i.interrupt?n:m,e.attempt(Uy,x,p))}function m(k){return i.containerState.initialBlankLine=!0,s++,x(k)}function p(k){return Ge(k)?(e.enter("listItemPrefixWhitespace"),e.consume(k),e.exit("listItemPrefixWhitespace"),x):n(k)}function x(k){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(k)}}function Gy(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Oa,a,s);function a(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,We(e,t,"listItemIndent",i.containerState.size+1)(c)}function s(c){return i.containerState.furtherBlankLines||!Ge(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Vy,t,o)(c))}function o(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,We(e,e.attempt(an,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function Yy(e,t,n){const i=this;return We(e,a,"listItemIndent",i.containerState.size+1);function a(s){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?t(s):n(s)}}function Xy(e){e.exit(this.containerState.type)}function Ky(e,t,n){const i=this;return We(e,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(s){const o=i.events[i.events.length-1];return!Ge(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const Rm={name:"setextUnderline",resolveTo:Qy,tokenize:Jy};function Qy(e,t){let n=e.length,i,a,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",o,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=o,e.push(["exit",o,t]),e}function Jy(e,t,n){const i=this;let a;return s;function s(f){let m=i.events.length,p;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){p=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),a=f,o(f)):n(f)}function o(f){return e.enter("setextHeadingLineSequence"),c(f)}function c(f){return f===a?(e.consume(f),c):(e.exit("setextHeadingLineSequence"),Ge(f)?We(e,h,"lineSuffix")(f):h(f))}function h(f){return f===null||Me(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const Zy={tokenize:e9};function e9(e){const t=this,n=e.attempt(Oa,i,e.attempt(this.parser.constructs.flowInitial,a,We(e,e.attempt(this.parser.constructs.flow,a,e.attempt(ly,a)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const t9={resolveAll:h2()},n9=c2("string"),r9=c2("text");function c2(e){return{resolveAll:h2(e==="text"?i9:void 0),tokenize:t};function t(n){const i=this,a=this.parser.constructs[e],s=n.attempt(a,o,c);return o;function o(m){return f(m)?s(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),h}function h(m){return f(m)?(n.exit("data"),s(m)):(n.consume(m),h)}function f(m){if(m===null)return!0;const p=a[m];let x=-1;if(p)for(;++x<p.length;){const k=p[x];if(!k.previous||k.previous.call(i,i.previous))return!0}return!1}}}function h2(e){return t;function t(n,i){let a=-1,s;for(;++a<=n.length;)s===void 0?n[a]&&n[a][1].type==="data"&&(s=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==s+2&&(n[s][1].end=n[a-1][1].end,n.splice(s+2,a-s-2),a=s+2),s=void 0);return e?e(n,i):n}}function i9(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],a=t.sliceStream(i);let s=a.length,o=-1,c=0,h;for(;s--;){const f=a[s];if(typeof f=="string"){for(o=f.length;f.charCodeAt(o-1)===32;)c++,o--;if(o)break;o=-1}else if(f===-2)h=!0,c++;else if(f!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const f={type:n===e.length||h||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:i.start._bufferIndex+o,_index:i.start._index+s,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...f.start},i.start.offset===i.end.offset?Object.assign(i,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const l9={42:an,43:an,45:an,48:an,49:an,50:an,51:an,52:an,53:an,54:an,55:an,56:an,57:an,62:r2},a9={91:cy},s9={[-2]:K0,[-1]:K0,32:K0},o9={35:gy,42:mo,45:[Rm,mo],60:wy,61:Rm,95:mo,96:jm,126:jm},u9={38:l2,92:i2},c9={[-5]:Q0,[-4]:Q0,[-3]:Q0,33:Oy,38:l2,42:Dc,60:[_8,Ny],91:_y,92:[my,i2],93:Mh,95:Dc,96:Z8},h9={null:[Dc,t9]},f9={null:[42,95]},d9={null:[]},m9=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:f9,contentInitial:a9,disable:d9,document:l9,flow:o9,flowInitial:s9,insideSpan:h9,string:u9,text:c9},Symbol.toStringTag,{value:"Module"}));function p9(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 a={},s=[];let o=[],c=[];const h={attempt:G(V),check:G(O),consume:R,enter:_,exit:Y,interrupt:G(O,{interrupt:!0})},f={code:null,containerState:{},defineSkip:N,events:[],now:E,parser:e,previous:null,sliceSerialize:x,sliceStream:k,write:p};let m=t.tokenize.call(f,h);return t.resolveAll&&s.push(t),f;function p(fe){return o=Mn(o,fe),z(),o[o.length-1]!==null?[]:(te(t,0),f.events=Po(s,f.events,f),f.events)}function x(fe,ie){return v9(k(fe),ie)}function k(fe){return g9(o,fe)}function E(){const{_bufferIndex:fe,_index:ie,line:Ee,column:ge,offset:le}=i;return{_bufferIndex:fe,_index:ie,line:Ee,column:ge,offset:le}}function N(fe){a[fe.line]=fe.column,q()}function z(){let fe;for(;i._index<o.length;){const ie=o[i._index];if(typeof ie=="string")for(fe=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===fe&&i._bufferIndex<ie.length;)A(ie.charCodeAt(i._bufferIndex));else A(ie)}}function A(fe){m=m(fe)}function R(fe){Me(fe)?(i.line++,i.column=1,i.offset+=fe===-3?2:1,q()):fe!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),f.previous=fe}function _(fe,ie){const Ee=ie||{};return Ee.type=fe,Ee.start=E(),f.events.push(["enter",Ee,f]),c.push(Ee),Ee}function Y(fe){const ie=c.pop();return ie.end=E(),f.events.push(["exit",ie,f]),ie}function V(fe,ie){te(fe,ie.from)}function O(fe,ie){ie.restore()}function G(fe,ie){return Ee;function Ee(ge,le,je){let Q,ne,J,M;return Array.isArray(ge)?K(ge):"tokenize"in ge?K([ge]):F(ge);function F(ke){return be;function be(Pe){const _e=Pe!==null&&ke[Pe],it=Pe!==null&&ke.null,bn=[...Array.isArray(_e)?_e:_e?[_e]:[],...Array.isArray(it)?it:it?[it]:[]];return K(bn)(Pe)}}function K(ke){return Q=ke,ne=0,ke.length===0?je:j(ke[ne])}function j(ke){return be;function be(Pe){return M=re(),J=ke,ke.partial||(f.currentConstruct=ke),ke.name&&f.parser.constructs.disable.null.includes(ke.name)?xe():ke.tokenize.call(ie?Object.assign(Object.create(f),ie):f,h,Z,xe)(Pe)}}function Z(ke){return fe(J,M),le}function xe(ke){return M.restore(),++ne<Q.length?j(Q[ne]):je}}}function te(fe,ie){fe.resolveAll&&!s.includes(fe)&&s.push(fe),fe.resolve&&gn(f.events,ie,f.events.length-ie,fe.resolve(f.events.slice(ie),f)),fe.resolveTo&&(f.events=fe.resolveTo(f.events,f))}function re(){const fe=E(),ie=f.previous,Ee=f.currentConstruct,ge=f.events.length,le=Array.from(c);return{from:ge,restore:je};function je(){i=fe,f.previous=ie,f.currentConstruct=Ee,f.events.length=ge,c=le,q()}}function q(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function g9(e,t){const n=t.start._index,i=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(i,s)];else{if(o=e.slice(n,a),i>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(i):o.shift()}s>0&&o.push(e[a].slice(0,s))}return o}function v9(e,t){let n=-1;const i=[];let a;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
|
|
56
|
+
`;break}case-3:{o=`\r
|
|
57
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(s)}a=s===-2,i.push(o)}return i.join("")}function y9(e){const i={constructs:t2([m9,...(e||{}).extensions||[]]),content:a(R8),defined:[],document:a(D8),flow:a(Zy),lazy:{},string:a(n9),text:a(r9)};return i;function a(s){return o;function o(c){return p9(i,s,c)}}}function x9(e){for(;!a2(e););return e}const Lm=/[\0\t\n\r]/g;function w9(){let e=1,t="",n=!0,i;return a;function a(s,o,c){const h=[];let f,m,p,x,k;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),p=0,t="",n&&(s.charCodeAt(0)===65279&&p++,n=void 0);p<s.length;){if(Lm.lastIndex=p,f=Lm.exec(s),x=f&&f.index!==void 0?f.index:s.length,k=s.charCodeAt(x),!f){t=s.slice(p);break}if(k===10&&p===x&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),p<x&&(h.push(s.slice(p,x)),e+=x-p),k){case 0:{h.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,h.push(-2);e++<m;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}p=x+1}return c&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const k9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function b9(e){return e.replace(k9,S9)}function S9(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),s=a===120||a===88;return n2(n.slice(s?2:1),s?16:10)}return zh(n)||e}const f2={}.hasOwnProperty;function C9(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),E9(n)(x9(y9(n).document().write(w9()(e,t,!0))))}function E9(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(hr),autolinkProtocol:re,autolinkEmail:re,atxHeading:s(fi),blockQuote:s(it),characterEscape:re,characterReference:re,codeFenced:s(bn),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(bn,o),codeText:s(hi,o),codeTextData:re,data:re,codeFlowValue:re,definition:s(Ln),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(Xn),hardBreakEscape:s(di),hardBreakTrailing:s(di),htmlFlow:s(Mr,o),htmlFlowData:re,htmlText:s(Mr,o),htmlTextData:re,image:s(mi),label:o,link:s(hr),listItem:s(Kn),listItemValue:x,listOrdered:s(un,p),listUnordered:s(un),paragraph:s(pi),reference:j,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(fi),strong:s(jr),thematicBreak:s(vi)},exit:{atxHeading:h(),atxHeadingSequence:V,autolink:h(),autolinkEmail:_e,autolinkProtocol:Pe,blockQuote:h(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:ke,characterReference:be,codeFenced:h(z),codeFencedFence:N,codeFencedFenceInfo:k,codeFencedFenceMeta:E,codeFlowValue:q,codeIndented:h(A),codeText:h(le),codeTextData:q,data:q,definition:h(),definitionDestinationString:Y,definitionLabelString:R,definitionTitleString:_,emphasis:h(),hardBreakEscape:h(ie),hardBreakTrailing:h(ie),htmlFlow:h(Ee),htmlFlowData:q,htmlText:h(ge),htmlTextData:q,image:h(Q),label:J,labelText:ne,lineEnding:fe,link:h(je),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:Z,resourceDestinationString:M,resourceTitleString:F,resource:K,setextHeading:h(te),setextHeadingLineSequence:G,setextHeadingText:O,strong:h(),thematicBreak:h()}};d2(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(ee){let ye={type:"root",children:[]};const Ie={stack:[ye],tokenStack:[],config:t,enter:c,exit:f,buffer:o,resume:m,data:n},qe=[];let Ye=-1;for(;++Ye<ee.length;)if(ee[Ye][1].type==="listOrdered"||ee[Ye][1].type==="listUnordered")if(ee[Ye][0]==="enter")qe.push(Ye);else{const Rt=qe.pop();Ye=a(ee,Rt,Ye)}for(Ye=-1;++Ye<ee.length;){const Rt=t[ee[Ye][0]];f2.call(Rt,ee[Ye][1].type)&&Rt[ee[Ye][1].type].call(Object.assign({sliceSerialize:ee[Ye][2].sliceSerialize},Ie),ee[Ye][1])}if(Ie.tokenStack.length>0){const Rt=Ie.tokenStack[Ie.tokenStack.length-1];(Rt[1]||Dm).call(Ie,void 0,Rt[0])}for(ye.position={start:Jr(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:Jr(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<t.transforms.length;)ye=t.transforms[Ye](ye)||ye;return ye}function a(ee,ye,Ie){let qe=ye-1,Ye=-1,Rt=!1,fr,Sn,Ir,yi;for(;++qe<=Ie;){const Lt=ee[qe];switch(Lt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Lt[0]==="enter"?Ye++:Ye--,yi=void 0;break}case"lineEndingBlank":{Lt[0]==="enter"&&(fr&&!yi&&!Ye&&!Ir&&(Ir=qe),yi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:yi=void 0}if(!Ye&&Lt[0]==="enter"&&Lt[1].type==="listItemPrefix"||Ye===-1&&Lt[0]==="exit"&&(Lt[1].type==="listUnordered"||Lt[1].type==="listOrdered")){if(fr){let Qn=qe;for(Sn=void 0;Qn--;){const cn=ee[Qn];if(cn[1].type==="lineEnding"||cn[1].type==="lineEndingBlank"){if(cn[0]==="exit")continue;Sn&&(ee[Sn][1].type="lineEndingBlank",Rt=!0),cn[1].type="lineEnding",Sn=Qn}else if(!(cn[1].type==="linePrefix"||cn[1].type==="blockQuotePrefix"||cn[1].type==="blockQuotePrefixWhitespace"||cn[1].type==="blockQuoteMarker"||cn[1].type==="listItemIndent"))break}Ir&&(!Sn||Ir<Sn)&&(fr._spread=!0),fr.end=Object.assign({},Sn?ee[Sn][1].start:Lt[1].end),ee.splice(Sn||qe,0,["exit",fr,Lt[2]]),qe++,Ie++}if(Lt[1].type==="listItemPrefix"){const Qn={type:"listItem",_spread:!1,start:Object.assign({},Lt[1].start),end:void 0};fr=Qn,ee.splice(qe,0,["enter",Qn,Lt[2]]),qe++,Ie++,Ir=void 0,yi=!0}}}return ee[ye][1]._spread=Rt,Ie}function s(ee,ye){return Ie;function Ie(qe){c.call(this,ee(qe),qe),ye&&ye.call(this,qe)}}function o(){this.stack.push({type:"fragment",children:[]})}function c(ee,ye,Ie){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([ye,Ie||void 0]),ee.position={start:Jr(ye.start),end:void 0}}function h(ee){return ye;function ye(Ie){ee&&ee.call(this,Ie),f.call(this,Ie)}}function f(ee,ye){const Ie=this.stack.pop(),qe=this.tokenStack.pop();if(qe)qe[0].type!==ee.type&&(ye?ye.call(this,ee,qe[0]):(qe[1]||Dm).call(this,ee,qe[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Ca({start:ee.start,end:ee.end})+"): it’s not open");Ie.position.end=Jr(ee.end)}function m(){return Ah(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function x(ee){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function k(){const ee=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=ee}function E(){const ee=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=ee}function N(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function z(){const ee=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const ee=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ee.replace(/(\r?\n|\r)$/g,"")}function R(ee){const ye=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=ye,Ie.identifier=Vn(this.sliceSerialize(ee)).toLowerCase()}function _(){const ee=this.resume(),ye=this.stack[this.stack.length-1];ye.title=ee}function Y(){const ee=this.resume(),ye=this.stack[this.stack.length-1];ye.url=ee}function V(ee){const ye=this.stack[this.stack.length-1];if(!ye.depth){const Ie=this.sliceSerialize(ee).length;ye.depth=Ie}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function G(ee){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function te(){this.data.setextHeadingSlurpLineEnding=void 0}function re(ee){const Ie=this.stack[this.stack.length-1].children;let qe=Ie[Ie.length-1];(!qe||qe.type!=="text")&&(qe=gi(),qe.position={start:Jr(ee.start),end:void 0},Ie.push(qe)),this.stack.push(qe)}function q(ee){const ye=this.stack.pop();ye.value+=this.sliceSerialize(ee),ye.position.end=Jr(ee.end)}function fe(ee){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ie=ye.children[ye.children.length-1];Ie.position.end=Jr(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ye.type)&&(re.call(this,ee),q.call(this,ee))}function ie(){this.data.atHardBreak=!0}function Ee(){const ee=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ee}function ge(){const ee=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ee}function le(){const ee=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ee}function je(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=ye,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Q(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=ye,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function ne(ee){const ye=this.sliceSerialize(ee),Ie=this.stack[this.stack.length-2];Ie.label=b9(ye),Ie.identifier=Vn(ye).toLowerCase()}function J(){const ee=this.stack[this.stack.length-1],ye=this.resume(),Ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ie.type==="link"){const qe=ee.children;Ie.children=qe}else Ie.alt=ye}function M(){const ee=this.resume(),ye=this.stack[this.stack.length-1];ye.url=ee}function F(){const ee=this.resume(),ye=this.stack[this.stack.length-1];ye.title=ee}function K(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function Z(ee){const ye=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=ye,Ie.identifier=Vn(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function xe(ee){this.data.characterReferenceType=ee.type}function ke(ee){const ye=this.sliceSerialize(ee),Ie=this.data.characterReferenceType;let qe;Ie?(qe=n2(ye,Ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):qe=zh(ye);const Ye=this.stack[this.stack.length-1];Ye.value+=qe}function be(ee){const ye=this.stack.pop();ye.position.end=Jr(ee.end)}function Pe(ee){q.call(this,ee);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(ee)}function _e(ee){q.call(this,ee);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(ee)}function it(){return{type:"blockquote",children:[]}}function bn(){return{type:"code",lang:null,meta:null,value:""}}function hi(){return{type:"inlineCode",value:""}}function Ln(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Xn(){return{type:"emphasis",children:[]}}function fi(){return{type:"heading",depth:0,children:[]}}function di(){return{type:"break"}}function Mr(){return{type:"html",value:""}}function mi(){return{type:"image",title:null,url:"",alt:null}}function hr(){return{type:"link",title:null,url:"",children:[]}}function un(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function Kn(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function pi(){return{type:"paragraph",children:[]}}function jr(){return{type:"strong",children:[]}}function gi(){return{type:"text",value:""}}function vi(){return{type:"thematicBreak"}}}function Jr(e){return{line:e.line,column:e.column,offset:e.offset}}function d2(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?d2(e,i):T9(e,i)}}function T9(e,t){let n;for(n in t)if(f2.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 Dm(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ca({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ca({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ca({start:t.start,end:t.end})+") is still open")}function N9(e){const t=this;t.parser=n;function n(i){return C9(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function A9(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 z9(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
58
|
+
`}]}function M9(e,t){const n=t.value?t.value+`
|
|
59
|
+
`:"",i={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(i.className=["language-"+a[0]]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function j9(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function I9(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function R9(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=Al(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let o,c=e.footnoteCounts.get(i);c===void 0?(c=0,e.footnoteOrder.push(i),o=e.footnoteOrder.length):o=s+1,c+=1,e.footnoteCounts.set(i,c);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,h);const f={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,f),e.applyData(t,f)}function L9(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 D9(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function m2(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 a=e.all(t),s=a[0];s&&s.type==="text"?s.value="["+s.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=i:a.push({type:"text",value:i}),a}function P9(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return m2(e,t);const a={src:Al(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)}function F9(e,t){const n={src:Al(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 O9(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 B9(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return m2(e,t);const a={href:Al(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function _9(e,t){const n={href:Al(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 $9(e,t,n){const i=e.all(t),a=n?H9(n):p2(t),s={},o=[];if(typeof t.checked=="boolean"){const m=i[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},i.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const m=i[c];(a||c!==0||m.type!=="element"||m.tagName!=="p")&&o.push({type:"text",value:`
|
|
60
|
+
`}),m.type==="element"&&m.tagName==="p"&&!a?o.push(...m.children):o.push(m)}const h=i[i.length-1];h&&(a||h.type!=="element"||h.tagName!=="p")&&o.push({type:"text",value:`
|
|
61
|
+
`});const f={type:"element",tagName:"li",properties:s,children:o};return e.patch(t,f),e.applyData(t,f)}function H9(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=p2(n[i])}return t}function p2(e){const t=e.spread;return t??e.children.length>1}function q9(e,t){const n={},i=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<i.length;){const o=i[a];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function U9(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function V9(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function W9(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function G9(e,t){const n=e.all(t),i=n.shift(),a=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],o),a.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=Ch(t.children[1]),h=Y4(t.children[t.children.length-1]);c&&h&&(o.position={start:c,end:h}),a.push(o)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function Y9(e,t,n){const i=n?n.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,c=o?o.length:t.children.length;let h=-1;const f=[];for(;++h<c;){const p=t.children[h],x={},k=o?o[h]:void 0;k&&(x.align=k);let E={type:"element",tagName:s,properties:x,children:[]};p&&(E.children=e.all(p),e.patch(p,E),E=e.applyData(p,E)),f.push(E)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,m),e.applyData(t,m)}function X9(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Pm=9,Fm=32;function K9(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),a=0;const s=[];for(;i;)s.push(Om(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=n.exec(t);return s.push(Om(t.slice(a),a>0,!1)),s.join("")}function Om(e,t,n){let i=0,a=e.length;if(t){let s=e.codePointAt(i);for(;s===Pm||s===Fm;)i++,s=e.codePointAt(i)}if(n){let s=e.codePointAt(a-1);for(;s===Pm||s===Fm;)a--,s=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function Q9(e,t){const n={type:"text",value:K9(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function J9(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Z9={blockquote:A9,break:z9,code:M9,delete:j9,emphasis:I9,footnoteReference:R9,heading:L9,html:D9,imageReference:P9,image:F9,inlineCode:O9,linkReference:B9,link:_9,listItem:$9,list:q9,paragraph:U9,root:V9,strong:W9,table:G9,tableCell:X9,tableRow:Y9,text:Q9,thematicBreak:J9,toml:Js,yaml:Js,definition:Js,footnoteDefinition:Js};function Js(){}const g2=-1,Fo=0,Ta=1,wo=2,jh=3,Ih=4,Rh=5,Lh=6,v2=7,y2=8,ex=typeof self=="object"?self:globalThis,Bm=(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 ex[e](t)},tx=(e,t)=>{const n=(a,s)=>(e.set(s,a),a),i=a=>{if(e.has(a))return e.get(a);const[s,o]=t[a];switch(s){case Fo:case g2:return n(o,a);case Ta:{const c=n([],a);for(const h of o)c.push(i(h));return c}case wo:{const c=n({},a);for(const[h,f]of o)c[i(h)]=i(f);return c}case jh:return n(new Date(o),a);case Ih:{const{source:c,flags:h}=o;return n(new RegExp(c,h),a)}case Rh:{const c=n(new Map,a);for(const[h,f]of o)c.set(i(h),i(f));return c}case Lh:{const c=n(new Set,a);for(const h of o)c.add(i(h));return c}case v2:{const{name:c,message:h}=o;return n(Bm(c,h),a)}case y2:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:c}=new Uint8Array(o);return n(new DataView(c),o)}}return n(Bm(s,o),a)};return i},_m=e=>tx(new Map,e)(0),Pi="",{toString:nx}={},{keys:rx}=Object,wa=e=>{const t=typeof e;if(t!=="object"||!e)return[Fo,t];const n=nx.call(e).slice(8,-1);switch(n){case"Array":return[Ta,Pi];case"Object":return[wo,Pi];case"Date":return[jh,Pi];case"RegExp":return[Ih,Pi];case"Map":return[Rh,Pi];case"Set":return[Lh,Pi];case"DataView":return[Ta,n]}return n.includes("Array")?[Ta,n]:n.includes("Error")?[v2,n]:[wo,n]},Zs=([e,t])=>e===Fo&&(t==="function"||t==="symbol"),ix=(e,t,n,i)=>{const a=(o,c)=>{const h=i.push(o)-1;return n.set(c,h),h},s=o=>{if(n.has(o))return n.get(o);let[c,h]=wa(o);switch(c){case Fo:{let m=o;switch(h){case"bigint":c=y2,m=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);m=null;break;case"undefined":return a([g2],o)}return a([c,m],o)}case Ta:{if(h){let x=o;return h==="DataView"?x=new Uint8Array(o.buffer):h==="ArrayBuffer"&&(x=new Uint8Array(o)),a([h,[...x]],o)}const m=[],p=a([c,m],o);for(const x of o)m.push(s(x));return p}case wo:{if(h)switch(h){case"BigInt":return a([h,o.toString()],o);case"Boolean":case"Number":case"String":return a([h,o.valueOf()],o)}if(t&&"toJSON"in o)return s(o.toJSON());const m=[],p=a([c,m],o);for(const x of rx(o))(e||!Zs(wa(o[x])))&&m.push([s(x),s(o[x])]);return p}case jh:return a([c,isNaN(o.getTime())?Pi:o.toISOString()],o);case Ih:{const{source:m,flags:p}=o;return a([c,{source:m,flags:p}],o)}case Rh:{const m=[],p=a([c,m],o);for(const[x,k]of o)(e||!(Zs(wa(x))||Zs(wa(k))))&&m.push([s(x),s(k)]);return p}case Lh:{const m=[],p=a([c,m],o);for(const x of o)(e||!Zs(wa(x)))&&m.push(s(x));return p}}const{message:f}=o;return a([c,{name:h,message:f}],o)};return s},$m=(e,{json:t,lossy:n}={})=>{const i=[];return ix(!(t||n),!!t,new Map,i)(e),i},ko=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?_m($m(e,t)):structuredClone(e):(e,t)=>_m($m(e,t));function lx(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 ax(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function sx(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||lx,i=e.options.footnoteBackLabel||ax,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let h=-1;for(;++h<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[h]);if(!f)continue;const m=e.all(f),p=String(f.identifier).toUpperCase(),x=Al(p.toLowerCase());let k=0;const E=[],N=e.footnoteCounts.get(p);for(;N!==void 0&&++k<=N;){E.length>0&&E.push({type:"text",value:" "});let R=typeof n=="string"?n:n(h,k);typeof R=="string"&&(R={type:"text",value:R}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+x+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,k),className:["data-footnote-backref"]},children:Array.isArray(R)?R:[R]})}const z=m[m.length-1];if(z&&z.type==="element"&&z.tagName==="p"){const R=z.children[z.children.length-1];R&&R.type==="text"?R.value+=" ":z.children.push({type:"text",value:" "}),z.children.push(...E)}else m.push(...E);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+x},children:e.wrap(m,!0)};e.patch(f,A),c.push(A)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...ko(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
62
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
63
|
+
`}]}}const Ba=(function(e){if(e==null)return hx;if(typeof e=="function")return Oo(e);if(typeof e=="object")return Array.isArray(e)?ox(e):ux(e);if(typeof e=="string")return cx(e);throw new Error("Expected function, string, or object as test")});function ox(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ba(e[n]);return Oo(i);function i(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function ux(e){const t=e;return Oo(n);function n(i){const a=i;let s;for(s in e)if(a[s]!==t[s])return!1;return!0}}function cx(e){return Oo(t);function t(n){return n&&n.type===e}}function Oo(e){return t;function t(n,i,a){return!!(fx(n)&&e.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function hx(){return!0}function fx(e){return e!==null&&typeof e=="object"&&"type"in e}const x2=[],dx=!0,Pc=!1,w2="skip";function Dh(e,t,n,i){let a;typeof t=="function"&&typeof n!="function"?(i=n,n=t):a=t;const s=Ba(a),o=i?-1:1;c(e,void 0,[])();function c(h,f,m){const p=h&&typeof h=="object"?h:{};if(typeof p.type=="string"){const k=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(h.type+(k?"<"+k+">":""))+")"})}return x;function x(){let k=x2,E,N,z;if((!t||s(h,f,m[m.length-1]||void 0))&&(k=mx(n(h,m)),k[0]===Pc))return k;if("children"in h&&h.children){const A=h;if(A.children&&k[0]!==w2)for(N=(i?A.children.length:-1)+o,z=m.concat(A);N>-1&&N<A.children.length;){const R=A.children[N];if(E=c(R,N,z)(),E[0]===Pc)return E;N=typeof E[1]=="number"?E[1]:N+o}}return k}}}function mx(e){return Array.isArray(e)?e:typeof e=="number"?[dx,e]:e==null?x2:[e]}function Ph(e,t,n,i){let a,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,a=n):(s=t,o=n,a=i),Dh(e,s,c,a);function c(h,f){const m=f[f.length-1],p=m?m.children.indexOf(h):void 0;return o(h,p,m)}}const Fc={}.hasOwnProperty,px={};function gx(e,t){const n=t||px,i=new Map,a=new Map,s=new Map,o={...Z9,...n.handlers},c={all:f,applyData:yx,definitionById:i,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:o,one:h,options:n,patch:vx,wrap:wx};return Ph(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?i:a,x=String(m.identifier).toUpperCase();p.has(x)||p.set(x,m)}}),c;function h(m,p){const x=m.type,k=c.handlers[x];if(Fc.call(c.handlers,x)&&k)return k(c,m,p);if(c.options.passThrough&&c.options.passThrough.includes(x)){if("children"in m){const{children:N,...z}=m,A=ko(z);return A.children=c.all(m),A}return ko(m)}return(c.options.unknownHandler||xx)(c,m,p)}function f(m){const p=[];if("children"in m){const x=m.children;let k=-1;for(;++k<x.length;){const E=c.one(x[k],m);if(E){if(k&&x[k-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Hm(E.value)),!Array.isArray(E)&&E.type==="element")){const N=E.children[0];N&&N.type==="text"&&(N.value=Hm(N.value))}Array.isArray(E)?p.push(...E):p.push(E)}}}return p}}function vx(e,t){e.position&&(t.position=l8(e))}function yx(e,t){let n=t;if(e&&e.data){const i=e.data.hName,a=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const o="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,ko(s)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function xx(e,t){const n=t.data||{},i="value"in t&&!(Fc.call(n,"hProperties")||Fc.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 wx(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
64
|
+
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
65
|
+
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
66
|
+
`}),n}function Hm(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function qm(e,t){const n=gx(e,t),i=n.one(e,void 0),a=sx(n),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&s.children.push({type:"text",value:`
|
|
67
|
+
`},a),s}function kx(e,t){return e&&"run"in e?async function(n,i){const a=qm(n,{file:i,...t});await e.run(a,i)}:function(n,i){return qm(n,{file:i,...e||t})}}function Um(e){if(e)throw e}var J0,Vm;function bx(){if(Vm)return J0;Vm=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},s=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var m=e.call(f,"constructor"),p=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!m&&!p)return!1;var x;for(x in f);return typeof x>"u"||e.call(f,x)},o=function(f,m){n&&m.name==="__proto__"?n(f,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):f[m.name]=m.newValue},c=function(f,m){if(m==="__proto__")if(e.call(f,m)){if(i)return i(f,m).value}else return;return f[m]};return J0=function h(){var f,m,p,x,k,E,N=arguments[0],z=1,A=arguments.length,R=!1;for(typeof N=="boolean"&&(R=N,N=arguments[1]||{},z=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});z<A;++z)if(f=arguments[z],f!=null)for(m in f)p=c(N,m),x=c(f,m),N!==x&&(R&&x&&(s(x)||(k=a(x)))?(k?(k=!1,E=p&&a(p)?p:[]):E=p&&s(p)?p:{},o(N,{name:m,newValue:h(R,E,x)})):typeof x<"u"&&o(N,{name:m,newValue:x}));return N},J0}var Sx=bx();const Z0=hh(Sx);function Oc(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 Cx(){const e=[],t={run:n,use:i};return t;function n(...a){let s=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);c(null,...a);function c(h,...f){const m=e[++s];let p=-1;if(h){o(h);return}for(;++p<a.length;)(f[p]===null||f[p]===void 0)&&(f[p]=a[p]);a=f,m?Ex(m,c)(...f):o(null,...f)}}function i(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Ex(e,t){let n;return i;function i(...o){const c=e.length>o.length;let h;c&&o.push(a);try{h=e.apply(this,o)}catch(f){const m=f;if(c&&n)throw m;return a(m)}c||(h&&h.then&&typeof h.then=="function"?h.then(s,a):h instanceof Error?a(h):s(h))}function a(o,...c){n||(n=!0,t(o,...c))}function s(o){a(null,o)}}const rr={basename:Tx,dirname:Nx,extname:Ax,join:zx,sep:"/"};function Tx(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_a(e);let n=0,i=-1,a=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else i<0&&(s=!0,i=a+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let o=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(s){n=a+1;break}}else o<0&&(s=!0,o=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(i=a):(c=-1,i=o));return n===i?i=o:i<0&&(i=e.length),e.slice(n,i)}function Nx(e){if(_a(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 Ax(e){_a(e);let t=e.length,n=-1,i=0,a=-1,s=0,o;for(;t--;){const c=e.codePointAt(t);if(c===47){if(o){i=t+1;break}continue}n<0&&(o=!0,n=t+1),c===46?a<0?a=t:s!==1&&(s=1):a>-1&&(s=-1)}return a<0||n<0||s===0||s===1&&a===n-1&&a===i+1?"":e.slice(a,n)}function zx(...e){let t=-1,n;for(;++t<e.length;)_a(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Mx(n)}function Mx(e){_a(e);const t=e.codePointAt(0)===47;let n=jx(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function jx(e,t){let n="",i=0,a=-1,s=0,o=-1,c,h;for(;++o<=e.length;){if(o<e.length)c=e.codePointAt(o);else{if(c===47)break;c=47}if(c===47){if(!(a===o-1||s===1))if(a!==o-1&&s===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("/")),a=o,s=0;continue}}else if(n.length>0){n="",i=0,a=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),i=o-a-1;a=o,s=0}else c===46&&s>-1?s++:s=-1}return n}function _a(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ix={cwd:Rx};function Rx(){return"/"}function Bc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Lx(e){if(typeof e=="string")e=new URL(e);else if(!Bc(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 Dx(e)}function Dx(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 a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const ec=["history","path","basename","stem","extname","dirname"];class k2{constructor(t){let n;t?Bc(t)?n={path:t}:typeof t=="string"||Px(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Ix.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<ec.length;){const s=ec[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let a;for(a in n)ec.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?rr.basename(this.path):void 0}set basename(t){nc(t,"basename"),tc(t,"basename"),this.path=rr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?rr.dirname(this.path):void 0}set dirname(t){Wm(this.basename,"dirname"),this.path=rr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?rr.extname(this.path):void 0}set extname(t){if(tc(t,"extname"),Wm(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=rr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Bc(t)&&(t=Lx(t)),nc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?rr.basename(this.path,this.extname):void 0}set stem(t){nc(t,"stem"),tc(t,"stem"),this.path=rr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const a=this.message(t,n,i);throw a.fatal=!0,a}info(t,n,i){const a=this.message(t,n,i);return a.fatal=void 0,a}message(t,n,i){const a=new Vt(t,n,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function tc(e,t){if(e&&e.includes(rr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rr.sep+"`")}function nc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Wm(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Px(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Fx=(function(e){const i=this.constructor.prototype,a=i[e],s=function(){return a.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),Ox={}.hasOwnProperty;class Fh extends Fx{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=Cx()}copy(){const t=new Fh;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Z0(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(lc("data",this.frozen),this.namespace[t]=n,this):Ox.call(this.namespace,t)&&this.namespace[t]||void 0:t?(lc("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 a=n.call(t,...i);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=eo(t),i=this.parser||this.Parser;return rc("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),rc("process",this.parser||this.Parser),ic("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(s,o){const c=eo(t),h=i.parse(c);i.run(h,c,function(m,p,x){if(m||!p||!x)return f(m);const k=p,E=i.stringify(k,x);$x(E)?x.value=E:x.result=E,f(m,x)});function f(m,p){m||!p?o(m):s?s(p):n(void 0,p)}}}processSync(t){let n=!1,i;return this.freeze(),rc("processSync",this.parser||this.Parser),ic("processSync",this.compiler||this.Compiler),this.process(t,a),Ym("processSync","process",n),i;function a(s,o){n=!0,Um(s),i=o}}run(t,n,i){Gm(t),this.freeze();const a=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(o,c){const h=eo(n);a.run(t,h,f);function f(m,p,x){const k=p||t;m?c(m):o?o(k):i(void 0,k,x)}}}runSync(t,n){let i=!1,a;return this.run(t,n,s),Ym("runSync","run",i),a;function s(o,c){Um(o),a=c,i=!0}}stringify(t,n){this.freeze();const i=eo(n),a=this.compiler||this.Compiler;return ic("stringify",a),Gm(t),a(t,i)}use(t,...n){const i=this.attachers,a=this.namespace;if(lc("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(f){if(typeof f=="function")h(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[m,...p]=f;h(m,p)}else o(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function o(f){if(!("plugins"in f)&&!("settings"in f))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");c(f.plugins),f.settings&&(a.settings=Z0(!0,a.settings,f.settings))}function c(f){let m=-1;if(f!=null)if(Array.isArray(f))for(;++m<f.length;){const p=f[m];s(p)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function h(f,m){let p=-1,x=-1;for(;++p<i.length;)if(i[p][0]===f){x=p;break}if(x===-1)i.push([f,...m]);else if(m.length>0){let[k,...E]=m;const N=i[x][1];Oc(N)&&Oc(k)&&(k=Z0(!0,N,k)),i[x]=[f,k,...E]}}}}const Bx=new Fh().freeze();function rc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ic(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function lc(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 Gm(e){if(!Oc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ym(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function eo(e){return _x(e)?e:new k2(e)}function _x(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $x(e){return typeof e=="string"||Hx(e)}function Hx(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const qx="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xm=[],Km={allowDangerousHtml:!0},Ux=/^(https?|ircs?|mailto|xmpp)$/i,Vx=[{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:"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 Wx(e){const t=Gx(e),n=Yx(e);return Xx(t.runSync(t.parse(n),n),e)}function Gx(e){const t=e.rehypePlugins||Xm,n=e.remarkPlugins||Xm,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Km}:Km;return Bx().use(N9).use(n).use(kx,i).use(t)}function Yx(e){const t=e.children||"",n=new k2;return typeof t=="string"&&(n.value=t),n}function Xx(e,t){const n=t.allowedElements,i=t.allowElement,a=t.components,s=t.disallowedElements,o=t.skipHtml,c=t.unwrapDisallowed,h=t.urlTransform||Kx;for(const m of Vx)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+qx+m.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Ph(e,f),c8(e,{Fragment:w.Fragment,components:a,ignoreInvalidStyle:!0,jsx:w.jsx,jsxs:w.jsxs,passKeys:!0,passNode:!0});function f(m,p,x){if(m.type==="raw"&&x&&typeof p=="number")return o?x.children.splice(p,1):x.children[p]={type:"text",value:m.value},p;if(m.type==="element"){let k;for(k in X0)if(Object.hasOwn(X0,k)&&Object.hasOwn(m.properties,k)){const E=m.properties[k],N=X0[k];(N===null||N.includes(m.tagName))&&(m.properties[k]=h(String(E||""),k,m))}}if(m.type==="element"){let k=n?!n.includes(m.tagName):s?s.includes(m.tagName):!1;if(!k&&i&&typeof p=="number"&&(k=!i(m,p,x)),k&&x&&typeof p=="number")return c&&m.children?x.children.splice(p,1,...m.children):x.children.splice(p,1),p}}}function Kx(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||i!==-1&&t>i||Ux.test(e.slice(0,t))?e:""}function Qm(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,a=n.indexOf(t);for(;a!==-1;)i++,a=n.indexOf(t,a+t.length);return i}function Qx(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Jx(e,t,n){const a=Ba((n||{}).ignore||[]),s=Zx(t);let o=-1;for(;++o<s.length;)Dh(e,"text",c);function c(f,m){let p=-1,x;for(;++p<m.length;){const k=m[p],E=x?x.children:void 0;if(a(k,E?E.indexOf(k):void 0,x))return;x=k}if(x)return h(f,m)}function h(f,m){const p=m[m.length-1],x=s[o][0],k=s[o][1];let E=0;const z=p.children.indexOf(f);let A=!1,R=[];x.lastIndex=0;let _=x.exec(f.value);for(;_;){const Y=_.index,V={index:_.index,input:_.input,stack:[...m,f]};let O=k(..._,V);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?x.lastIndex=Y+1:(E!==Y&&R.push({type:"text",value:f.value.slice(E,Y)}),Array.isArray(O)?R.push(...O):O&&R.push(O),E=Y+_[0].length,A=!0),!x.global)break;_=x.exec(f.value)}return A?(E<f.value.length&&R.push({type:"text",value:f.value.slice(E)}),p.children.splice(z,1,...R)):R=[f],z+R.length}}function Zx(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 a=n[i];t.push([ew(a[0]),tw(a[1])])}return t}function ew(e){return typeof e=="string"?new RegExp(Qx(e),"g"):e}function tw(e){return typeof e=="function"?e:function(){return e}}const ac="phrasing",sc=["autolink","link","image","label"];function nw(){return{transforms:[uw],enter:{literalAutolink:iw,literalAutolinkEmail:oc,literalAutolinkHttp:oc,literalAutolinkWww:oc},exit:{literalAutolink:ow,literalAutolinkEmail:sw,literalAutolinkHttp:lw,literalAutolinkWww:aw}}}function rw(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ac,notInConstruct:sc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ac,notInConstruct:sc},{character:":",before:"[ps]",after:"\\/",inConstruct:ac,notInConstruct:sc}]}}function iw(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function oc(e){this.config.enter.autolinkProtocol.call(this,e)}function lw(e){this.config.exit.autolinkProtocol.call(this,e)}function aw(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 sw(e){this.config.exit.autolinkEmail.call(this,e)}function ow(e){this.exit(e)}function uw(e){Jx(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,cw],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),hw]],{ignore:["link","linkReference"]})}function cw(e,t,n,i,a){let s="";if(!b2(a)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!fw(n)))return!1;const o=dw(n+i);if(!o[0])return!1;const c={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[c,{type:"text",value:o[1]}]:c}function hw(e,t,n,i){return!b2(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function fw(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 dw(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 a=Qm(e,"(");let s=Qm(e,")");for(;i!==-1&&a>s;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[e,n]}function b2(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Bi(n)||Do(n))&&(!t||n!==47)}S2.peek=bw;function mw(){this.buffer()}function pw(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function gw(){this.buffer()}function vw(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function yw(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Vn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xw(e){this.exit(e)}function ww(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Vn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function kw(e){this.exit(e)}function bw(){return"["}function S2(e,t,n,i){const a=n.createTracker(i);let s=a.move("[^");const o=n.enter("footnoteReference"),c=n.enter("reference");return s+=a.move(n.safe(n.associationId(e),{after:"]",before:s})),c(),o(),s+=a.move("]"),s}function Sw(){return{enter:{gfmFootnoteCallString:mw,gfmFootnoteCall:pw,gfmFootnoteDefinitionLabelString:gw,gfmFootnoteDefinition:vw},exit:{gfmFootnoteCallString:yw,gfmFootnoteCall:xw,gfmFootnoteDefinitionLabelString:ww,gfmFootnoteDefinition:kw}}}function Cw(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:S2},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,a,s,o){const c=s.createTracker(o);let h=c.move("[^");const f=s.enter("footnoteDefinition"),m=s.enter("label");return h+=c.move(s.safe(s.associationId(i),{before:h,after:"]"})),m(),h+=c.move("]:"),i.children&&i.children.length>0&&(c.shift(4),h+=c.move((t?`
|
|
68
|
+
`:" ")+s.indentLines(s.containerFlow(i,c.current()),t?C2:Ew))),f(),h}}function Ew(e,t,n){return t===0?e:C2(e,t,n)}function C2(e,t,n){return(n?"":" ")+e}const Tw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];E2.peek=jw;function Nw(){return{canContainEols:["delete"],enter:{strikethrough:zw},exit:{strikethrough:Mw}}}function Aw(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Tw}],handlers:{delete:E2}}}function zw(e){this.enter({type:"delete",children:[]},e)}function Mw(e){this.exit(e)}function E2(e,t,n,i){const a=n.createTracker(i),s=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),s(),o}function jw(){return"~"}function Iw(e){return e.length}function Rw(e,t){const n=t||{},i=(n.align||[]).concat(),a=n.stringLength||Iw,s=[],o=[],c=[],h=[];let f=0,m=-1;for(;++m<e.length;){const N=[],z=[];let A=-1;for(e[m].length>f&&(f=e[m].length);++A<e[m].length;){const R=Lw(e[m][A]);if(n.alignDelimiters!==!1){const _=a(R);z[A]=_,(h[A]===void 0||_>h[A])&&(h[A]=_)}N.push(R)}o[m]=N,c[m]=z}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<f;)s[p]=Jm(i[p]);else{const N=Jm(i);for(;++p<f;)s[p]=N}p=-1;const x=[],k=[];for(;++p<f;){const N=s[p];let z="",A="";N===99?(z=":",A=":"):N===108?z=":":N===114&&(A=":");let R=n.alignDelimiters===!1?1:Math.max(1,h[p]-z.length-A.length);const _=z+"-".repeat(R)+A;n.alignDelimiters!==!1&&(R=z.length+R+A.length,R>h[p]&&(h[p]=R),k[p]=R),x[p]=_}o.splice(1,0,x),c.splice(1,0,k),m=-1;const E=[];for(;++m<o.length;){const N=o[m],z=c[m];p=-1;const A=[];for(;++p<f;){const R=N[p]||"";let _="",Y="";if(n.alignDelimiters!==!1){const V=h[p]-(z[p]||0),O=s[p];O===114?_=" ".repeat(V):O===99?V%2?(_=" ".repeat(V/2+.5),Y=" ".repeat(V/2-.5)):(_=" ".repeat(V/2),Y=_):Y=" ".repeat(V)}n.delimiterStart!==!1&&!p&&A.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&R==="")&&(n.delimiterStart!==!1||p)&&A.push(" "),n.alignDelimiters!==!1&&A.push(_),A.push(R),n.alignDelimiters!==!1&&A.push(Y),n.padding!==!1&&A.push(" "),(n.delimiterEnd!==!1||p!==f-1)&&A.push("|")}E.push(n.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return E.join(`
|
|
69
|
+
`)}function Lw(e){return e==null?"":String(e)}function Jm(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 Dw(e,t,n,i){const a=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),Pw);return a(),o}function Pw(e,t,n){return">"+(n?"":" ")+e}function Fw(e,t){return Zm(e,t.inConstruct,!0)&&!Zm(e,t.notInConstruct,!1)}function Zm(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 ep(e,t,n,i){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
70
|
+
`&&Fw(n.stack,n.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
71
|
+
`}function T2(e,t){const n=String(e);let i=n.indexOf(t),a=i,s=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===a?++s>o&&(o=s):s=1,a=i+t.length,i=n.indexOf(t,a);return o}function Ow(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 Bw(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 _w(e,t,n,i){const a=Bw(n),s=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(Ow(e,n)){const p=n.enter("codeIndented"),x=n.indentLines(s,$w);return p(),x}const c=n.createTracker(i),h=a.repeat(Math.max(T2(s,a)+1,3)),f=n.enter("codeFenced");let m=c.move(h);if(e.lang){const p=n.enter(`codeFencedLang${o}`);m+=c.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...c.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${o}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,{before:m,after:`
|
|
72
|
+
`,encode:["`"],...c.current()})),p()}return m+=c.move(`
|
|
73
|
+
`),s&&(m+=c.move(s+`
|
|
74
|
+
`)),m+=c.move(h),f(),m}function $w(e,t,n){return(n?"":" ")+e}function Oh(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 Hw(e,t,n,i){const a=Oh(n),s=a==='"'?"Quote":"Apostrophe",o=n.enter("definition");let c=n.enter("label");const h=n.createTracker(i);let f=h.move("[");return f+=h.move(n.safe(n.associationId(e),{before:f,after:"]",...h.current()})),f+=h.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=h.move("<"),f+=h.move(n.safe(e.url,{before:f,after:">",...h.current()})),f+=h.move(">")):(c=n.enter("destinationRaw"),f+=h.move(n.safe(e.url,{before:f,after:e.title?" ":`
|
|
75
|
+
`,...h.current()}))),c(),e.title&&(c=n.enter(`title${s}`),f+=h.move(" "+a),f+=h.move(n.safe(e.title,{before:f,after:a,...h.current()})),f+=h.move(a),c()),o(),f}function qw(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 Ia(e){return"&#x"+e.toString(16).toUpperCase()+";"}function bo(e,t,n){const i=wl(e),a=wl(t);return i===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}N2.peek=Uw;function N2(e,t,n,i){const a=qw(n),s=n.enter("emphasis"),o=n.createTracker(i),c=o.move(a);let h=o.move(n.containerPhrasing(e,{after:a,before:c,...o.current()}));const f=h.charCodeAt(0),m=bo(i.before.charCodeAt(i.before.length-1),f,a);m.inside&&(h=Ia(f)+h.slice(1));const p=h.charCodeAt(h.length-1),x=bo(i.after.charCodeAt(0),p,a);x.inside&&(h=h.slice(0,-1)+Ia(p));const k=o.move(a);return s(),n.attentionEncodeSurroundingInfo={after:x.outside,before:m.outside},c+h+k}function Uw(e,t,n){return n.options.emphasis||"*"}function Vw(e,t){let n=!1;return Ph(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,Pc}),!!((!e.depth||e.depth<3)&&Ah(e)&&(t.options.setext||n))}function Ww(e,t,n,i){const a=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(i);if(Vw(e,n)){const m=n.enter("headingSetext"),p=n.enter("phrasing"),x=n.containerPhrasing(e,{...s.current(),before:`
|
|
76
|
+
`,after:`
|
|
77
|
+
`});return p(),m(),x+`
|
|
78
|
+
`+(a===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
|
|
79
|
+
`))+1))}const o="#".repeat(a),c=n.enter("headingAtx"),h=n.enter("phrasing");s.move(o+" ");let f=n.containerPhrasing(e,{before:"# ",after:`
|
|
80
|
+
`,...s.current()});return/^[\t ]/.test(f)&&(f=Ia(f.charCodeAt(0))+f.slice(1)),f=f?o+" "+f:o,n.options.closeAtx&&(f+=" "+o),h(),c(),f}A2.peek=Gw;function A2(e){return e.value||""}function Gw(){return"<"}z2.peek=Yw;function z2(e,t,n,i){const a=Oh(n),s=a==='"'?"Quote":"Apostrophe",o=n.enter("image");let c=n.enter("label");const h=n.createTracker(i);let f=h.move("![");return f+=h.move(n.safe(e.alt,{before:f,after:"]",...h.current()})),f+=h.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),f+=h.move("<"),f+=h.move(n.safe(e.url,{before:f,after:">",...h.current()})),f+=h.move(">")):(c=n.enter("destinationRaw"),f+=h.move(n.safe(e.url,{before:f,after:e.title?" ":")",...h.current()}))),c(),e.title&&(c=n.enter(`title${s}`),f+=h.move(" "+a),f+=h.move(n.safe(e.title,{before:f,after:a,...h.current()})),f+=h.move(a),c()),f+=h.move(")"),o(),f}function Yw(){return"!"}M2.peek=Xw;function M2(e,t,n,i){const a=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const c=n.createTracker(i);let h=c.move("![");const f=n.safe(e.alt,{before:h,after:"]",...c.current()});h+=c.move(f+"]["),o();const m=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:h,after:"]",...c.current()});return o(),n.stack=m,s(),a==="full"||!f||f!==p?h+=c.move(p+"]"):a==="shortcut"?h=h.slice(0,-1):h+=c.move("]"),h}function Xw(){return"!"}j2.peek=Kw;function j2(e,t,n){let i=e.value||"",a="`",s=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const o=n.unsafe[s],c=n.compilePattern(o);let h;if(o.atBreak)for(;h=c.exec(i);){let f=h.index;i.charCodeAt(f)===10&&i.charCodeAt(f-1)===13&&f--,i=i.slice(0,f)+" "+i.slice(h.index+1)}}return a+i+a}function Kw(){return"`"}function I2(e,t){const n=Ah(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))}R2.peek=Qw;function R2(e,t,n,i){const a=Oh(n),s=a==='"'?"Quote":"Apostrophe",o=n.createTracker(i);let c,h;if(I2(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let p=o.move("<");return p+=o.move(n.containerPhrasing(e,{before:p,after:">",...o.current()})),p+=o.move(">"),c(),n.stack=m,p}c=n.enter("link"),h=n.enter("label");let f=o.move("[");return f+=o.move(n.containerPhrasing(e,{before:f,after:"](",...o.current()})),f+=o.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=n.enter("destinationLiteral"),f+=o.move("<"),f+=o.move(n.safe(e.url,{before:f,after:">",...o.current()})),f+=o.move(">")):(h=n.enter("destinationRaw"),f+=o.move(n.safe(e.url,{before:f,after:e.title?" ":")",...o.current()}))),h(),e.title&&(h=n.enter(`title${s}`),f+=o.move(" "+a),f+=o.move(n.safe(e.title,{before:f,after:a,...o.current()})),f+=o.move(a),h()),f+=o.move(")"),c(),f}function Qw(e,t,n){return I2(e,n)?"<":"["}L2.peek=Jw;function L2(e,t,n,i){const a=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const c=n.createTracker(i);let h=c.move("[");const f=n.containerPhrasing(e,{before:h,after:"]",...c.current()});h+=c.move(f+"]["),o();const m=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(e),{before:h,after:"]",...c.current()});return o(),n.stack=m,s(),a==="full"||!f||f!==p?h+=c.move(p+"]"):a==="shortcut"?h=h.slice(0,-1):h+=c.move("]"),h}function Jw(){return"["}function Bh(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 Zw(e){const t=Bh(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 ek(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 D2(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 tk(e,t,n,i){const a=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?ek(n):Bh(n);const c=e.ordered?o==="."?")":".":Zw(n);let h=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&m&&(!m.children||!m.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),D2(n)===o&&m){let p=-1;for(;++p<e.children.length;){const x=e.children[p];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(o=c),n.bulletCurrent=o;const f=n.containerFlow(e,i);return n.bulletLastUsed=o,n.bulletCurrent=s,a(),f}function nk(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 rk(e,t,n,i){const a=nk(n);let s=n.bulletCurrent||Bh(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const c=n.createTracker(i);c.move(s+" ".repeat(o-s.length)),c.shift(o);const h=n.enter("listItem"),f=n.indentLines(n.containerFlow(e,c.current()),m);return h(),f;function m(p,x,k){return x?(k?"":" ".repeat(o))+p:(k?s:s+" ".repeat(o-s.length))+p}}function ik(e,t,n,i){const a=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,i);return s(),a(),o}const lk=Ba(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ak(e,t,n,i){return(e.children.some(function(o){return lk(o)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function sk(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}P2.peek=ok;function P2(e,t,n,i){const a=sk(n),s=n.enter("strong"),o=n.createTracker(i),c=o.move(a+a);let h=o.move(n.containerPhrasing(e,{after:a,before:c,...o.current()}));const f=h.charCodeAt(0),m=bo(i.before.charCodeAt(i.before.length-1),f,a);m.inside&&(h=Ia(f)+h.slice(1));const p=h.charCodeAt(h.length-1),x=bo(i.after.charCodeAt(0),p,a);x.inside&&(h=h.slice(0,-1)+Ia(p));const k=o.move(a+a);return s(),n.attentionEncodeSurroundingInfo={after:x.outside,before:m.outside},c+h+k}function ok(e,t,n){return n.options.strong||"*"}function uk(e,t,n,i){return n.safe(e.value,i)}function ck(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 hk(e,t,n){const i=(D2(n)+(n.options.ruleSpaces?" ":"")).repeat(ck(n));return n.options.ruleSpaces?i.slice(0,-1):i}const F2={blockquote:Dw,break:ep,code:_w,definition:Hw,emphasis:N2,hardBreak:ep,heading:Ww,html:A2,image:z2,imageReference:M2,inlineCode:j2,link:R2,linkReference:L2,list:tk,listItem:rk,paragraph:ik,root:ak,strong:P2,text:uk,thematicBreak:hk};function fk(){return{enter:{table:dk,tableData:tp,tableHeader:tp,tableRow:pk},exit:{codeText:gk,table:mk,tableData:uc,tableHeader:uc,tableRow:uc}}}function dk(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 mk(e){this.exit(e),this.data.inTable=void 0}function pk(e){this.enter({type:"tableRow",children:[]},e)}function uc(e){this.exit(e)}function tp(e){this.enter({type:"tableCell",children:[]},e)}function gk(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,vk));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function vk(e,t){return t==="|"?t:e}function yk(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
81
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:o,tableCell:h,tableRow:c}};function o(k,E,N,z){return f(m(k,N,z),k.align)}function c(k,E,N,z){const A=p(k,N,z),R=f([A]);return R.slice(0,R.indexOf(`
|
|
82
|
+
`))}function h(k,E,N,z){const A=N.enter("tableCell"),R=N.enter("phrasing"),_=N.containerPhrasing(k,{...z,before:s,after:s});return R(),A(),_}function f(k,E){return Rw(k,{align:E,alignDelimiters:i,padding:n,stringLength:a})}function m(k,E,N){const z=k.children;let A=-1;const R=[],_=E.enter("table");for(;++A<z.length;)R[A]=p(z[A],E,N);return _(),R}function p(k,E,N){const z=k.children;let A=-1;const R=[],_=E.enter("tableRow");for(;++A<z.length;)R[A]=h(z[A],k,E,N);return _(),R}function x(k,E,N){let z=F2.inlineCode(k,E,N);return N.stack.includes("tableCell")&&(z=z.replace(/\|/g,"\\$&")),z}}function xk(){return{exit:{taskListCheckValueChecked:np,taskListCheckValueUnchecked:np,paragraph:kk}}}function wk(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:bk}}}function np(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function kk(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 a=t.children;let s=-1,o;for(;++s<a.length;){const c=a[s];if(c.type==="paragraph"){o=c;break}}o===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 bk(e,t,n,i){const a=e.children[0],s=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",c=n.createTracker(i);s&&c.move(o);let h=F2.listItem(e,t,n,{...i,...c.current()});return s&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),h;function f(m){return m+o}}function Sk(){return[nw(),Sw(),Nw(),fk(),xk()]}function Ck(e){return{extensions:[rw(),Cw(e),Aw(),yk(e),wk()]}}const Ek={tokenize:jk,partial:!0},O2={tokenize:Ik,partial:!0},B2={tokenize:Rk,partial:!0},_2={tokenize:Lk,partial:!0},Tk={tokenize:Dk,partial:!0},$2={name:"wwwAutolink",tokenize:zk,previous:q2},H2={name:"protocolAutolink",tokenize:Mk,previous:U2},Tr={name:"emailAutolink",tokenize:Ak,previous:V2},sr={};function Nk(){return{text:sr}}let Ii=48;for(;Ii<123;)sr[Ii]=Tr,Ii++,Ii===58?Ii=65:Ii===91&&(Ii=97);sr[43]=Tr;sr[45]=Tr;sr[46]=Tr;sr[95]=Tr;sr[72]=[Tr,H2];sr[104]=[Tr,H2];sr[87]=[Tr,$2];sr[119]=[Tr,$2];function Ak(e,t,n){const i=this;let a,s;return o;function o(p){return!_c(p)||!V2.call(i,i.previous)||_h(i.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return _c(p)?(e.consume(p),c):p===64?(e.consume(p),h):n(p)}function h(p){return p===46?e.check(Tk,m,f)(p):p===45||p===95||qt(p)?(s=!0,e.consume(p),h):m(p)}function f(p){return e.consume(p),a=!0,h}function m(p){return s&&a&&Kt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function zk(e,t,n){const i=this;return a;function a(o){return o!==87&&o!==119||!q2.call(i,i.previous)||_h(i.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ek,e.attempt(O2,e.attempt(B2,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Mk(e,t,n){const i=this;let a="",s=!1;return o;function o(p){return(p===72||p===104)&&U2.call(i,i.previous)&&!_h(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(p),e.consume(p),c):n(p)}function c(p){if(Kt(p)&&a.length<5)return a+=String.fromCodePoint(p),e.consume(p),c;if(p===58){const x=a.toLowerCase();if(x==="http"||x==="https")return e.consume(p),h}return n(p)}function h(p){return p===47?(e.consume(p),s?f:(s=!0,h)):n(p)}function f(p){return p===null||xo(p)||nt(p)||Bi(p)||Do(p)?n(p):e.attempt(O2,e.attempt(B2,m),n)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function jk(e,t,n){let i=0;return a;function a(o){return(o===87||o===119)&&i<3?(i++,e.consume(o),a):o===46&&i===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function Ik(e,t,n){let i,a,s;return o;function o(f){return f===46||f===95?e.check(_2,h,c)(f):f===null||nt(f)||Bi(f)||f!==45&&Do(f)?h(f):(s=!0,e.consume(f),o)}function c(f){return f===95?i=!0:(a=i,i=void 0),e.consume(f),o}function h(f){return a||i||!s?n(f):t(f)}}function Rk(e,t){let n=0,i=0;return a;function a(o){return o===40?(n++,e.consume(o),a):o===41&&i<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(_2,t,s)(o):o===null||nt(o)||Bi(o)?t(o):(e.consume(o),a)}function s(o){return o===41&&i++,e.consume(o),a}}function Lk(e,t,n){return i;function i(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),i):c===38?(e.consume(c),s):c===93?(e.consume(c),a):c===60||c===null||nt(c)||Bi(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||nt(c)||Bi(c)?t(c):i(c)}function s(c){return Kt(c)?o(c):n(c)}function o(c){return c===59?(e.consume(c),i):Kt(c)?(e.consume(c),o):n(c)}}function Dk(e,t,n){return i;function i(s){return e.consume(s),a}function a(s){return qt(s)?n(s):t(s)}}function q2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||nt(e)}function U2(e){return!Kt(e)}function V2(e){return!(e===47||_c(e))}function _c(e){return e===43||e===45||e===46||e===95||qt(e)}function _h(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 Pk={tokenize:Uk,partial:!0};function Fk(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:$k,continuation:{tokenize:Hk},exit:qk}},text:{91:{name:"gfmFootnoteCall",tokenize:_k},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ok,resolveTo:Bk}}}}function Ok(e,t,n){const i=this;let a=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;a--;){const h=i.events[a][1];if(h.type==="labelImage"){o=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return c;function c(h){if(!o||!o._balanced)return n(h);const f=Vn(i.sliceSerialize({start:o.end,end:i.now()}));return f.codePointAt(0)!==94||!s.includes(f.slice(1))?n(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function Bk(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)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},c=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...c),e}function _k(e,t,n){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,o;return c;function c(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),h}function h(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(p){if(s>999||p===93&&!o||p===null||p===91||nt(p))return n(p);if(p===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return a.includes(Vn(i.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return nt(p)||(o=!0),s++,e.consume(p),p===92?m:f}function m(p){return p===91||p===92||p===93?(e.consume(p),s++,f):f(p)}}function $k(e,t,n){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,o=0,c;return h;function h(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(E)}function m(E){if(o>999||E===93&&!c||E===null||E===91||nt(E))return n(E);if(E===93){e.exit("chunkString");const N=e.exit("gfmFootnoteDefinitionLabelString");return s=Vn(i.sliceSerialize(N)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return nt(E)||(c=!0),o++,e.consume(E),E===92?p:m}function p(E){return E===91||E===92||E===93?(e.consume(E),o++,m):m(E)}function x(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),a.includes(s)||a.push(s),We(e,k,"gfmFootnoteDefinitionWhitespace")):n(E)}function k(E){return t(E)}}function Hk(e,t,n){return e.check(Oa,t,e.attempt(Pk,t,n))}function qk(e){e.exit("gfmFootnoteDefinition")}function Uk(e,t,n){const i=this;return We(e,a,"gfmFootnoteDefinitionIndent",5);function a(s){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function Vk(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:a};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function a(o,c){let h=-1;for(;++h<o.length;)if(o[h][0]==="enter"&&o[h][1].type==="strikethroughSequenceTemporary"&&o[h][1]._close){let f=h;for(;f--;)if(o[f][0]==="exit"&&o[f][1].type==="strikethroughSequenceTemporary"&&o[f][1]._open&&o[h][1].end.offset-o[h][1].start.offset===o[f][1].end.offset-o[f][1].start.offset){o[h][1].type="strikethroughSequence",o[f][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},o[f][1].start),end:Object.assign({},o[h][1].end)},p={type:"strikethroughText",start:Object.assign({},o[f][1].end),end:Object.assign({},o[h][1].start)},x=[["enter",m,c],["enter",o[f][1],c],["exit",o[f][1],c],["enter",p,c]],k=c.parser.constructs.insideSpan.null;k&&gn(x,x.length,0,Po(k,o.slice(f+1,h),c)),gn(x,x.length,0,[["exit",p,c],["enter",o[h][1],c],["exit",o[h][1],c],["exit",m,c]]),gn(o,f-1,h-f+3,x),h=f+x.length-2;break}}for(h=-1;++h<o.length;)o[h][1].type==="strikethroughSequenceTemporary"&&(o[h][1].type="data");return o}function s(o,c,h){const f=this.previous,m=this.events;let p=0;return x;function x(E){return f===126&&m[m.length-1][1].type!=="characterEscape"?h(E):(o.enter("strikethroughSequenceTemporary"),k(E))}function k(E){const N=wl(f);if(E===126)return p>1?h(E):(o.consume(E),p++,k);if(p<2&&!n)return h(E);const z=o.exit("strikethroughSequenceTemporary"),A=wl(E);return z._open=!A||A===2&&!!N,z._close=!N||N===2&&!!A,c(E)}}}class Wk{constructor(){this.map=[]}add(t,n,i){Gk(this,t,n,i)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[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 a=i.pop();for(;a;){for(const s of a)t.push(s);a=i.pop()}this.map.length=0}}function Gk(e,t,n,i){let a=0;if(!(n===0&&i.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...i);return}a+=1}e.map.push([t,n,i])}}function Yk(e,t){let n=!1;const i=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function Xk(){return{flow:{null:{name:"table",tokenize:Kk,resolveAll:Qk}}}}function Kk(e,t,n){const i=this;let a=0,s=0,o;return c;function c(q){let fe=i.events.length-1;for(;fe>-1;){const ge=i.events[fe][1].type;if(ge==="lineEnding"||ge==="linePrefix")fe--;else break}const ie=fe>-1?i.events[fe][1].type:null,Ee=ie==="tableHead"||ie==="tableRow"?O:h;return Ee===O&&i.parser.lazy[i.now().line]?n(q):Ee(q)}function h(q){return e.enter("tableHead"),e.enter("tableRow"),f(q)}function f(q){return q===124||(o=!0,s+=1),m(q)}function m(q){return q===null?n(q):Me(q)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(q),e.exit("lineEnding"),k):n(q):Ge(q)?We(e,m,"whitespace")(q):(s+=1,o&&(o=!1,a+=1),q===124?(e.enter("tableCellDivider"),e.consume(q),e.exit("tableCellDivider"),o=!0,m):(e.enter("data"),p(q)))}function p(q){return q===null||q===124||nt(q)?(e.exit("data"),m(q)):(e.consume(q),q===92?x:p)}function x(q){return q===92||q===124?(e.consume(q),p):p(q)}function k(q){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(q):(e.enter("tableDelimiterRow"),o=!1,Ge(q)?We(e,E,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):E(q))}function E(q){return q===45||q===58?z(q):q===124?(o=!0,e.enter("tableCellDivider"),e.consume(q),e.exit("tableCellDivider"),N):V(q)}function N(q){return Ge(q)?We(e,z,"whitespace")(q):z(q)}function z(q){return q===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(q),e.exit("tableDelimiterMarker"),A):q===45?(s+=1,A(q)):q===null||Me(q)?Y(q):V(q)}function A(q){return q===45?(e.enter("tableDelimiterFiller"),R(q)):V(q)}function R(q){return q===45?(e.consume(q),R):q===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(q),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(q))}function _(q){return Ge(q)?We(e,Y,"whitespace")(q):Y(q)}function Y(q){return q===124?E(q):q===null||Me(q)?!o||a!==s?V(q):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(q)):V(q)}function V(q){return n(q)}function O(q){return e.enter("tableRow"),G(q)}function G(q){return q===124?(e.enter("tableCellDivider"),e.consume(q),e.exit("tableCellDivider"),G):q===null||Me(q)?(e.exit("tableRow"),t(q)):Ge(q)?We(e,G,"whitespace")(q):(e.enter("data"),te(q))}function te(q){return q===null||q===124||nt(q)?(e.exit("data"),G(q)):(e.consume(q),q===92?re:te)}function re(q){return q===92||q===124?(e.consume(q),te):te(q)}}function Qk(e,t){let n=-1,i=!0,a=0,s=[0,0,0,0],o=[0,0,0,0],c=!1,h=0,f,m,p;const x=new Wk;for(;++n<e.length;){const k=e[n],E=k[1];k[0]==="enter"?E.type==="tableHead"?(c=!1,h!==0&&(rp(x,t,h,f,m),m=void 0,h=0),f={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},x.add(n,0,[["enter",f,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(i=!0,p=void 0,s=[0,0,0,0],o=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},x.add(n,0,[["enter",m,t]])),a=E.type==="tableDelimiterRow"?2:m?3:1):a&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],p=to(x,t,s,a,void 0,p),s=[0,0,0,0]),o[2]=n)):E.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(o[0]=o[1],p=to(x,t,s,a,void 0,p)),s=o,o=[s[1],n,0,0])):E.type==="tableHead"?(c=!0,h=n):E.type==="tableRow"||E.type==="tableDelimiterRow"?(h=n,s[1]!==0?(o[0]=o[1],p=to(x,t,s,a,n,p)):o[1]!==0&&(p=to(x,t,o,a,n,p)),a=0):a&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(o[3]=n)}for(h!==0&&rp(x,t,h,f,m),x.consume(t.events),n=-1;++n<t.events.length;){const k=t.events[n];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=Yk(t.events,n))}return e}function to(e,t,n,i,a,s){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(s.end=Object.assign({},yl(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const h=yl(t.events,n[1]);if(s={type:o,start:Object.assign({},h),end:Object.assign({},h)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const f=yl(t.events,n[2]),m=yl(t.events,n[3]),p={type:c,start:Object.assign({},f),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",p,t]]),i!==2){const x=t.events[n[2]],k=t.events[n[3]];if(x[1].end=Object.assign({},k[1].end),x[1].type="chunkText",x[1].contentType="text",n[3]>n[2]+1){const E=n[2]+1,N=n[3]-n[2]-1;e.add(E,N,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return a!==void 0&&(s.end=Object.assign({},yl(t.events,a)),e.add(a,0,[["exit",s,t]]),s=void 0),s}function rp(e,t,n,i,a){const s=[],o=yl(t.events,n);a&&(a.end=Object.assign({},o),s.push(["exit",a,t])),i.end=Object.assign({},o),s.push(["exit",i,t]),e.add(n+1,0,s)}function yl(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const Jk={name:"tasklistCheck",tokenize:eb};function Zk(){return{text:{91:Jk}}}function eb(e,t,n){const i=this;return a;function a(h){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),s)}function s(h){return nt(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),o):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),o):n(h)}function o(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(h)}function c(h){return Me(h)?t(h):Ge(h)?e.check({tokenize:tb},t,n)(h):n(h)}}function tb(e,t,n){return We(e,i,"whitespace");function i(a){return a===null?n(a):t(a)}}function nb(e){return t2([Nk(),Fk(),Vk(e),Xk(),Zk()])}const rb={};function ib(e){const t=this,n=e||rb,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(nb(n)),s.push(Sk()),o.push(Ck(n))}function lb(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:s},exit:{mathFlow:a,mathFlowFence:i,mathFlowFenceMeta:n,mathFlowValue:c,mathText:o,mathTextData:c}};function e(h){const f={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[f]}},h)}function t(){this.buffer()}function n(){const h=this.resume(),f=this.stack[this.stack.length-1];f.type,f.meta=h}function i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(h){const f=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),m=this.stack[this.stack.length-1];m.type,this.exit(h),m.value=f;const p=m.data.hChildren[0];p.type,p.tagName,p.children.push({type:"text",value:f}),this.data.mathFlowInside=void 0}function s(h){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},h),this.buffer()}function o(h){const f=this.resume(),m=this.stack[this.stack.length-1];m.type,this.exit(h),m.value=f,m.data.hChildren.push({type:"text",value:f})}function c(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function ab(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),i.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
83
|
+
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:i}};function n(s,o,c,h){const f=s.value||"",m=c.createTracker(h),p="$".repeat(Math.max(T2(f,"$")+1,2)),x=c.enter("mathFlow");let k=m.move(p);if(s.meta){const E=c.enter("mathFlowMeta");k+=m.move(c.safe(s.meta,{after:`
|
|
84
|
+
`,before:k,encode:["$"],...m.current()})),E()}return k+=m.move(`
|
|
85
|
+
`),f&&(k+=m.move(f+`
|
|
86
|
+
`)),k+=m.move(p),x(),k}function i(s,o,c){let h=s.value||"",f=1;for(t||f++;new RegExp("(^|[^$])"+"\\$".repeat(f)+"([^$]|$)").test(h);)f++;const m="$".repeat(f);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let p=-1;for(;++p<c.unsafe.length;){const x=c.unsafe[p];if(!x.atBreak)continue;const k=c.compilePattern(x);let E;for(;E=k.exec(h);){let N=E.index;h.codePointAt(N)===10&&h.codePointAt(N-1)===13&&N--,h=h.slice(0,N)+" "+h.slice(E.index+1)}}return m+h+m}function a(){return"$"}}const sb={tokenize:ob,concrete:!0,name:"mathFlow"},ip={tokenize:ub,partial:!0};function ob(e,t,n){const i=this,a=i.events[i.events.length-1],s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let o=0;return c;function c(R){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),h(R)}function h(R){return R===36?(e.consume(R),o++,h):o<2?n(R):(e.exit("mathFlowFenceSequence"),We(e,f,"whitespace")(R))}function f(R){return R===null||Me(R)?p(R):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(R))}function m(R){return R===null||Me(R)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),p(R)):R===36?n(R):(e.consume(R),m)}function p(R){return e.exit("mathFlowFence"),i.interrupt?t(R):e.attempt(ip,x,z)(R)}function x(R){return e.attempt({tokenize:A,partial:!0},z,k)(R)}function k(R){return(s?We(e,E,"linePrefix",s+1):E)(R)}function E(R){return R===null?z(R):Me(R)?e.attempt(ip,x,z)(R):(e.enter("mathFlowValue"),N(R))}function N(R){return R===null||Me(R)?(e.exit("mathFlowValue"),E(R)):(e.consume(R),N)}function z(R){return e.exit("mathFlow"),t(R)}function A(R,_,Y){let V=0;return We(R,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function O(re){return R.enter("mathFlowFence"),R.enter("mathFlowFenceSequence"),G(re)}function G(re){return re===36?(V++,R.consume(re),G):V<o?Y(re):(R.exit("mathFlowFenceSequence"),We(R,te,"whitespace")(re))}function te(re){return re===null||Me(re)?(R.exit("mathFlowFence"),_(re)):Y(re)}}}function ub(e,t,n){const i=this;return a;function a(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}function cb(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:i,resolve:hb,previous:fb,name:"mathText"};function i(a,s,o){let c=0,h,f;return m;function m(N){return a.enter("mathText"),a.enter("mathTextSequence"),p(N)}function p(N){return N===36?(a.consume(N),c++,p):c<2&&!n?o(N):(a.exit("mathTextSequence"),x(N))}function x(N){return N===null?o(N):N===36?(f=a.enter("mathTextSequence"),h=0,E(N)):N===32?(a.enter("space"),a.consume(N),a.exit("space"),x):Me(N)?(a.enter("lineEnding"),a.consume(N),a.exit("lineEnding"),x):(a.enter("mathTextData"),k(N))}function k(N){return N===null||N===32||N===36||Me(N)?(a.exit("mathTextData"),x(N)):(a.consume(N),k)}function E(N){return N===36?(a.consume(N),h++,E):h===c?(a.exit("mathTextSequence"),a.exit("mathText"),s(N)):(f.type="mathTextData",k(N))}}}function hb(e){let t=e.length-4,n=3,i,a;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;)a===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(a=i):(i===t||e[i][1].type==="lineEnding")&&(e[a][1].type="mathTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e}function fb(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function db(e){return{flow:{36:sb},text:{36:cb(e)}}}class he extends Error{constructor(t,n){var i="KaTeX parse error: "+t,a,s,o=n&&n.loc;if(o&&o.start<=o.end){var c=o.lexer.input;a=o.start,s=o.end,a===c.length?i+=" at end of input: ":i+=" at position "+(a+1)+": ";var h=c.slice(a,s).replace(/[^]/g,"$&̲"),f;a>15?f="…"+c.slice(a-15,a):f=c.slice(0,a);var m;s+15<c.length?m=c.slice(s,s+15)+"…":m=c.slice(s),i+=f+h+m}super(i),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,he.prototype),this.position=a,a!=null&&s!=null&&(this.length=s-a),this.rawMessage=t}}var mb=/([A-Z])/g,pb=e=>e.replace(mb,"-$1").toLowerCase(),gb={"&":"&",">":">","<":"<",'"':""","'":"'"},vb=/[&><"']/g,Ut=e=>String(e).replace(vb,t=>gb[t]),po=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?po(e.body[0]):e:e.type==="font"?po(e.body):e,yb=new Set(["mathord","textord","atom"]),Nr=e=>yb.has(po(e).type),xb=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"},So={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 wb(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 kb(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return wb(t)}function bb(e,t,n,i){var a=n[t];e[t]=a!==void 0?i.processor?i.processor(a):a:kb(i)}class $h{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(So)){var i=So[n];i&&bb(this,n,t,i)}}reportNonstrict(t,n,i){var a=this.strict;if(typeof a=="function"&&(a=a(t,n,i)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new he("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),i);a==="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 '"+a+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,i){var a=this.strict;if(typeof a=="function")try{a=a(t,n,i)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="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 '"+a+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var n=xb(t.url);if(n==null)return!1;t.protocol=n}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}}class Zr{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 ir[Sb[this.id]]}sub(){return ir[Cb[this.id]]}fracNum(){return ir[Eb[this.id]]}fracDen(){return ir[Tb[this.id]]}cramp(){return ir[Nb[this.id]]}text(){return ir[Ab[this.id]]}isTight(){return this.size>=2}}var Hh=0,Co=1,xl=2,Sr=3,Ra=4,jn=5,kl=6,Qt=7,ir=[new Zr(Hh,0,!1),new Zr(Co,0,!0),new Zr(xl,1,!1),new Zr(Sr,1,!0),new Zr(Ra,2,!1),new Zr(jn,2,!0),new Zr(kl,3,!1),new Zr(Qt,3,!0)],Sb=[Ra,jn,Ra,jn,kl,Qt,kl,Qt],Cb=[jn,jn,jn,jn,Qt,Qt,Qt,Qt],Eb=[xl,Sr,Ra,jn,kl,Qt,kl,Qt],Tb=[Sr,Sr,jn,jn,Qt,Qt,Qt,Qt],Nb=[Co,Co,Sr,Sr,jn,jn,Qt,Qt],Ab=[Hh,Co,xl,Sr,xl,Sr,xl,Sr],He={DISPLAY:ir[Hh],TEXT:ir[xl],SCRIPT:ir[Ra],SCRIPTSCRIPT:ir[kl]},$c=[{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 zb(e){for(var t=0;t<$c.length;t++)for(var n=$c[t],i=0;i<n.blocks.length;i++){var a=n.blocks[i];if(e>=a[0]&&e<=a[1])return n.name}return null}var go=[];$c.forEach(e=>e.blocks.forEach(t=>go.push(...t)));function W2(e){for(var t=0;t<go.length;t+=2)if(e>=go[t]&&e<=go[t+1])return!0;return!1}var At=e=>e+" "+e,vl=80,Mb=function(t,n){return"M95,"+(622+t+n)+`
|
|
87
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
88
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
89
|
+
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
|
|
90
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
91
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
92
|
+
l`+t/2.075+" -"+t+`
|
|
93
|
+
c5.3,-9.3,12,-14,20,-14
|
|
94
|
+
H400000v`+(40+t)+`H845.2724
|
|
95
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
96
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
97
|
+
M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},jb=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
|
|
98
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
99
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
100
|
+
l`+t/2.084+" -"+t+`
|
|
101
|
+
c4.7,-7.3,11,-11,19,-11
|
|
102
|
+
H40000v`+(40+t)+`H1012.3
|
|
103
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
104
|
+
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
|
|
105
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
106
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
107
|
+
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Ib=function(t,n){return"M983 "+(10+t+n)+`
|
|
108
|
+
l`+t/3.13+" -"+t+`
|
|
109
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
110
|
+
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
|
|
111
|
+
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
|
|
112
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
113
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
114
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
115
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
116
|
+
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Rb=function(t,n){return"M424,"+(2398+t+n)+`
|
|
117
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
118
|
+
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
|
|
119
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
120
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
121
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
122
|
+
v`+(40+t)+`H1014.6
|
|
123
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
124
|
+
c-2,6,-10,9,-24,9
|
|
125
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
|
|
126
|
+
h400000v`+(40+t)+"h-400000z"},Lb=function(t,n){return"M473,"+(2713+t+n)+`
|
|
127
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
128
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
129
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
130
|
+
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
|
|
131
|
+
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
|
|
132
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
133
|
+
606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},Db=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},Pb=function(t,n,i){var a=i-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
|
|
134
|
+
H742v`+a+`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
|
|
135
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
136
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
137
|
+
219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Fb=function(t,n,i){n=1e3*n;var a="";switch(t){case"sqrtMain":a=Mb(n,vl);break;case"sqrtSize1":a=jb(n,vl);break;case"sqrtSize2":a=Ib(n,vl);break;case"sqrtSize3":a=Rb(n,vl);break;case"sqrtSize4":a=Lb(n,vl);break;case"sqrtTall":a=Pb(n,vl,i)}return a},Ob=function(t,n){switch(t){case"⎜":return At("M291 0 H417 V"+n+" H291z");case"∣":return At("M145 0 H188 V"+n+" H145z");case"∥":return At("M145 0 H188 V"+n+" H145z")+At("M367 0 H410 V"+n+" H367z");case"⎟":return At("M457 0 H583 V"+n+" H457z");case"⎢":return At("M319 0 H403 V"+n+" H319z");case"⎥":return At("M263 0 H347 V"+n+" H263z");case"⎪":return At("M384 0 H504 V"+n+" H384z");case"⏐":return At("M312 0 H355 V"+n+" H312z");case"‖":return At("M257 0 H300 V"+n+" H257z")+At("M478 0 H521 V"+n+" H478z");default:return""}},lp={doubleleftarrow:`M262 157
|
|
138
|
+
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
|
|
139
|
+
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
|
|
140
|
+
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
|
|
141
|
+
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
|
|
142
|
+
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
|
|
143
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
144
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
145
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
146
|
+
-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
|
|
147
|
+
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
|
|
148
|
+
-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
|
|
149
|
+
-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
|
|
150
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
151
|
+
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
|
|
152
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
153
|
+
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
|
|
154
|
+
-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
|
|
155
|
+
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
|
|
156
|
+
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
|
|
157
|
+
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
|
|
158
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
159
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
160
|
+
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
|
|
161
|
+
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
|
|
162
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
163
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
164
|
+
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
|
|
165
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
166
|
+
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
|
|
167
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
168
|
+
-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
|
|
169
|
+
-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
|
|
170
|
+
-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
|
|
171
|
+
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
|
|
172
|
+
-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
|
|
173
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
174
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
175
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
176
|
+
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
|
|
177
|
+
-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
|
|
178
|
+
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
|
|
179
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
180
|
+
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
|
|
181
|
+
-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
|
|
182
|
+
-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
|
|
183
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:At("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:At("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:At("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:At("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
184
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
185
|
+
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
|
|
186
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:At("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
187
|
+
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
|
|
188
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
189
|
+
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
|
|
190
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
191
|
+
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
|
|
192
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
193
|
+
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
|
|
194
|
+
-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
|
|
195
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
196
|
+
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
|
|
197
|
+
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
|
|
198
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
199
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
200
|
+
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
|
|
201
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
202
|
+
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
|
|
203
|
+
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
|
|
204
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
205
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
206
|
+
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
|
|
207
|
+
-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
|
|
208
|
+
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
|
|
209
|
+
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
|
|
210
|
+
-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
|
|
211
|
+
-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
|
|
212
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
213
|
+
-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
|
|
214
|
+
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
|
|
215
|
+
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
|
|
216
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
217
|
+
-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
|
|
218
|
+
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
|
|
219
|
+
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
|
|
220
|
+
-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
|
|
221
|
+
-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
|
|
222
|
+
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
|
|
223
|
+
-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
|
|
224
|
+
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
|
|
225
|
+
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
|
|
226
|
+
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
|
|
227
|
+
-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
|
|
228
|
+
-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
|
|
229
|
+
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
|
|
230
|
+
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
|
|
231
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
232
|
+
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
|
|
233
|
+
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
|
|
234
|
+
-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
|
|
235
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:At("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:At("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:At("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
|
|
236
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
237
|
+
-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
|
|
238
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
239
|
+
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
|
|
240
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
241
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
242
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
243
|
+
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
|
|
244
|
+
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
|
|
245
|
+
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
|
|
246
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
247
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
248
|
+
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
|
|
249
|
+
-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
|
|
250
|
+
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
|
|
251
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
252
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
253
|
+
-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
|
|
254
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
255
|
+
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
|
|
256
|
+
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
|
|
257
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
258
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
259
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
260
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
261
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
262
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
263
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
264
|
+
-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
|
|
265
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
266
|
+
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
|
|
267
|
+
-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
|
|
268
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
269
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
270
|
+
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
|
|
271
|
+
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
|
|
272
|
+
-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
|
|
273
|
+
-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
|
|
274
|
+
-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,
|
|
275
|
+
-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,
|
|
276
|
+
-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,
|
|
277
|
+
-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,
|
|
278
|
+
-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
|
|
279
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
280
|
+
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
|
|
281
|
+
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
|
|
282
|
+
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
|
|
283
|
+
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
|
|
284
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
285
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
286
|
+
-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
|
|
287
|
+
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
|
|
288
|
+
-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
|
|
289
|
+
-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
|
|
290
|
+
-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
|
|
291
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
292
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
293
|
+
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
|
|
294
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
295
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
296
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
297
|
+
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,
|
|
298
|
+
-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
|
|
299
|
+
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
|
|
300
|
+
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
|
|
301
|
+
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,
|
|
302
|
+
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,
|
|
303
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
304
|
+
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
|
|
305
|
+
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,
|
|
306
|
+
-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
|
|
307
|
+
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
|
|
308
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Bb=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 v84 h347 v-84
|
|
309
|
+
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
|
|
310
|
+
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
|
|
311
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
312
|
+
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
|
|
313
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
314
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
|
|
315
|
+
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
|
|
316
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
317
|
+
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
|
|
318
|
+
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
|
|
319
|
+
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
|
|
320
|
+
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
|
|
321
|
+
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
|
|
322
|
+
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,
|
|
323
|
+
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
324
|
+
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
|
|
325
|
+
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,
|
|
326
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
327
|
+
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
328
|
+
-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,
|
|
329
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
330
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
|
|
331
|
+
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
|
|
332
|
+
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
|
|
333
|
+
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
|
|
334
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
335
|
+
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
336
|
+
-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 _b(e){return"toText"in e}class zl{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(_b(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var Hc={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},$b={ex:!0,em:!0,mu:!0},G2=function(t){return typeof t!="string"&&(t=t.unit),t in Hc||t in $b||t==="ex"},gt=function(t,n){var i;if(t.unit in Hc)i=Hc[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")i=n.fontMetrics().cssEmPerMu;else{var a;if(n.style.isTight()?a=n.havingStyle(n.style.text()):a=n,t.unit==="ex")i=a.fontMetrics().xHeight;else if(t.unit==="em")i=a.fontMetrics().quad;else throw new he("Invalid unit: '"+t.unit+"'");a!==n&&(i*=a.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*i,n.maxSize)},ve=function(t){return+t.toFixed(4)+"em"},ri=function(t){return t.filter(n=>n).join(" ")},qh=function(t){var n="";for(var i of Object.keys(t)){var a=t[i];a!==void 0&&(n+=pb(i)+":"+a+";")}return n},Y2=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 a=n.getColor();a&&(this.style.color=a)}},X2=function(t){var n=document.createElement(t);n.className=ri(this.classes),Object.assign(n.style,this.style);for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n},Hb=/[\s"'>/=\x00-\x1f]/,K2=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Ut(ri(this.classes))+'"');var i=qh(this.style);i&&(n+=' style="'+Ut(i)+'"');for(var a of Object.keys(this.attributes)){if(Hb.test(a))throw new he("Invalid attribute name '"+a+"'");n+=" "+a+'="'+Ut(this.attributes[a])+'"'}n+=">";for(var s=0;s<this.children.length;s++)n+=this.children[s].toMarkup();return n+="</"+t+">",n};class Ml{constructor(t,n,i,a){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,Y2.call(this,t,i,a),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return X2.call(this,"span")}toMarkup(){return K2.call(this,"span")}}class Bo{constructor(t,n,i,a){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,Y2.call(this,n,a),this.children=i||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return X2.call(this,"a")}toMarkup(){return K2.call(this,"a")}}class qb{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="'+Ut(this.src)+'"'+(' alt="'+Ut(this.alt)+'"'),n=qh(this.style);return n&&(t+=' style="'+Ut(n)+'"'),t+="'/>",t}}var Ub={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class yn{constructor(t,n,i,a,s,o,c,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=a||0,this.skew=s||0,this.width=o||0,this.classes=c||[],this.style=h||{},this.maxFontSize=0;var f=zb(this.text.charCodeAt(0));f&&this.classes.push(f+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Ub[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=ve(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=ri(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+=Ut(ri(this.classes)),n+='"');var i="";this.italic>0&&(i+="margin-right:"+ve(this.italic)+";"),i+=qh(this.style),i&&(t=!0,n+=' style="'+Ut(i)+'"');var a=Ut(this.text);return t?(n+=">",n+=a,n+="</span>",n):a}}class Er{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 a=0;a<this.children.length;a++)n.appendChild(this.children[a].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n of Object.keys(this.attributes))t+=" "+n+'="'+Ut(this.attributes[n])+'"';t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class ii{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",lp[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Ut(this.alternate)+'"/>':'<path d="'+Ut(lp[this.pathName])+'"/>'}}class qc{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+'="'+Ut(this.attributes[n])+'"';return t+="/>",t}}function Vb(e){if(e instanceof yn)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Wb(e){if(e instanceof Ml)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Gb=e=>e instanceof Ml||e instanceof Bo||e instanceof zl,lr={"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]}},no={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]},ap={Å:"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 Q2(e,t){lr[e]=t}function Uh(e,t,n){if(!lr[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),a=lr[t][i];if(!a&&e[0]in ap&&(i=ap[e[0]].charCodeAt(0),a=lr[t][i]),!a&&n==="text"&&W2(i)&&(a=lr[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var cc={};function Yb(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!cc[t]){var n=cc[t]={cssEmPerMu:no.quad[t]/18};for(var i in no)no.hasOwnProperty(i)&&(n[i]=no[i][t])}return cc[t]}var ht={math:{},text:{}};function v(e,t,n,i,a,s){ht[e][a]={font:t,group:n,replace:i},s&&i&&(ht[e][i]=ht[e][a])}var b="math",ae="text",S="main",D="ams",ft="accent-token",Ce="bin",Jt="close",jl="inner",De="mathord",Et="op-token",wn="open",$a="punct",P="rel",Ar="spacing",$="textord";v(b,S,P,"≡","\\equiv",!0);v(b,S,P,"≺","\\prec",!0);v(b,S,P,"≻","\\succ",!0);v(b,S,P,"∼","\\sim",!0);v(b,S,P,"⊥","\\perp");v(b,S,P,"⪯","\\preceq",!0);v(b,S,P,"⪰","\\succeq",!0);v(b,S,P,"≃","\\simeq",!0);v(b,S,P,"∣","\\mid",!0);v(b,S,P,"≪","\\ll",!0);v(b,S,P,"≫","\\gg",!0);v(b,S,P,"≍","\\asymp",!0);v(b,S,P,"∥","\\parallel");v(b,S,P,"⋈","\\bowtie",!0);v(b,S,P,"⌣","\\smile",!0);v(b,S,P,"⊑","\\sqsubseteq",!0);v(b,S,P,"⊒","\\sqsupseteq",!0);v(b,S,P,"≐","\\doteq",!0);v(b,S,P,"⌢","\\frown",!0);v(b,S,P,"∋","\\ni",!0);v(b,S,P,"∝","\\propto",!0);v(b,S,P,"⊢","\\vdash",!0);v(b,S,P,"⊣","\\dashv",!0);v(b,S,P,"∋","\\owns");v(b,S,$a,".","\\ldotp");v(b,S,$a,"⋅","\\cdotp");v(b,S,$a,"⋅","·");v(ae,S,$,"⋅","·");v(b,S,$,"#","\\#");v(ae,S,$,"#","\\#");v(b,S,$,"&","\\&");v(ae,S,$,"&","\\&");v(b,S,$,"ℵ","\\aleph",!0);v(b,S,$,"∀","\\forall",!0);v(b,S,$,"ℏ","\\hbar",!0);v(b,S,$,"∃","\\exists",!0);v(b,S,$,"∇","\\nabla",!0);v(b,S,$,"♭","\\flat",!0);v(b,S,$,"ℓ","\\ell",!0);v(b,S,$,"♮","\\natural",!0);v(b,S,$,"♣","\\clubsuit",!0);v(b,S,$,"℘","\\wp",!0);v(b,S,$,"♯","\\sharp",!0);v(b,S,$,"♢","\\diamondsuit",!0);v(b,S,$,"ℜ","\\Re",!0);v(b,S,$,"♡","\\heartsuit",!0);v(b,S,$,"ℑ","\\Im",!0);v(b,S,$,"♠","\\spadesuit",!0);v(b,S,$,"§","\\S",!0);v(ae,S,$,"§","\\S");v(b,S,$,"¶","\\P",!0);v(ae,S,$,"¶","\\P");v(b,S,$,"†","\\dag");v(ae,S,$,"†","\\dag");v(ae,S,$,"†","\\textdagger");v(b,S,$,"‡","\\ddag");v(ae,S,$,"‡","\\ddag");v(ae,S,$,"‡","\\textdaggerdbl");v(b,S,Jt,"⎱","\\rmoustache",!0);v(b,S,wn,"⎰","\\lmoustache",!0);v(b,S,Jt,"⟯","\\rgroup",!0);v(b,S,wn,"⟮","\\lgroup",!0);v(b,S,Ce,"∓","\\mp",!0);v(b,S,Ce,"⊖","\\ominus",!0);v(b,S,Ce,"⊎","\\uplus",!0);v(b,S,Ce,"⊓","\\sqcap",!0);v(b,S,Ce,"∗","\\ast");v(b,S,Ce,"⊔","\\sqcup",!0);v(b,S,Ce,"◯","\\bigcirc",!0);v(b,S,Ce,"∙","\\bullet",!0);v(b,S,Ce,"‡","\\ddagger");v(b,S,Ce,"≀","\\wr",!0);v(b,S,Ce,"⨿","\\amalg");v(b,S,Ce,"&","\\And");v(b,S,P,"⟵","\\longleftarrow",!0);v(b,S,P,"⇐","\\Leftarrow",!0);v(b,S,P,"⟸","\\Longleftarrow",!0);v(b,S,P,"⟶","\\longrightarrow",!0);v(b,S,P,"⇒","\\Rightarrow",!0);v(b,S,P,"⟹","\\Longrightarrow",!0);v(b,S,P,"↔","\\leftrightarrow",!0);v(b,S,P,"⟷","\\longleftrightarrow",!0);v(b,S,P,"⇔","\\Leftrightarrow",!0);v(b,S,P,"⟺","\\Longleftrightarrow",!0);v(b,S,P,"↦","\\mapsto",!0);v(b,S,P,"⟼","\\longmapsto",!0);v(b,S,P,"↗","\\nearrow",!0);v(b,S,P,"↩","\\hookleftarrow",!0);v(b,S,P,"↪","\\hookrightarrow",!0);v(b,S,P,"↘","\\searrow",!0);v(b,S,P,"↼","\\leftharpoonup",!0);v(b,S,P,"⇀","\\rightharpoonup",!0);v(b,S,P,"↙","\\swarrow",!0);v(b,S,P,"↽","\\leftharpoondown",!0);v(b,S,P,"⇁","\\rightharpoondown",!0);v(b,S,P,"↖","\\nwarrow",!0);v(b,S,P,"⇌","\\rightleftharpoons",!0);v(b,D,P,"≮","\\nless",!0);v(b,D,P,"","\\@nleqslant");v(b,D,P,"","\\@nleqq");v(b,D,P,"⪇","\\lneq",!0);v(b,D,P,"≨","\\lneqq",!0);v(b,D,P,"","\\@lvertneqq");v(b,D,P,"⋦","\\lnsim",!0);v(b,D,P,"⪉","\\lnapprox",!0);v(b,D,P,"⊀","\\nprec",!0);v(b,D,P,"⋠","\\npreceq",!0);v(b,D,P,"⋨","\\precnsim",!0);v(b,D,P,"⪹","\\precnapprox",!0);v(b,D,P,"≁","\\nsim",!0);v(b,D,P,"","\\@nshortmid");v(b,D,P,"∤","\\nmid",!0);v(b,D,P,"⊬","\\nvdash",!0);v(b,D,P,"⊭","\\nvDash",!0);v(b,D,P,"⋪","\\ntriangleleft");v(b,D,P,"⋬","\\ntrianglelefteq",!0);v(b,D,P,"⊊","\\subsetneq",!0);v(b,D,P,"","\\@varsubsetneq");v(b,D,P,"⫋","\\subsetneqq",!0);v(b,D,P,"","\\@varsubsetneqq");v(b,D,P,"≯","\\ngtr",!0);v(b,D,P,"","\\@ngeqslant");v(b,D,P,"","\\@ngeqq");v(b,D,P,"⪈","\\gneq",!0);v(b,D,P,"≩","\\gneqq",!0);v(b,D,P,"","\\@gvertneqq");v(b,D,P,"⋧","\\gnsim",!0);v(b,D,P,"⪊","\\gnapprox",!0);v(b,D,P,"⊁","\\nsucc",!0);v(b,D,P,"⋡","\\nsucceq",!0);v(b,D,P,"⋩","\\succnsim",!0);v(b,D,P,"⪺","\\succnapprox",!0);v(b,D,P,"≆","\\ncong",!0);v(b,D,P,"","\\@nshortparallel");v(b,D,P,"∦","\\nparallel",!0);v(b,D,P,"⊯","\\nVDash",!0);v(b,D,P,"⋫","\\ntriangleright");v(b,D,P,"⋭","\\ntrianglerighteq",!0);v(b,D,P,"","\\@nsupseteqq");v(b,D,P,"⊋","\\supsetneq",!0);v(b,D,P,"","\\@varsupsetneq");v(b,D,P,"⫌","\\supsetneqq",!0);v(b,D,P,"","\\@varsupsetneqq");v(b,D,P,"⊮","\\nVdash",!0);v(b,D,P,"⪵","\\precneqq",!0);v(b,D,P,"⪶","\\succneqq",!0);v(b,D,P,"","\\@nsubseteqq");v(b,D,Ce,"⊴","\\unlhd");v(b,D,Ce,"⊵","\\unrhd");v(b,D,P,"↚","\\nleftarrow",!0);v(b,D,P,"↛","\\nrightarrow",!0);v(b,D,P,"⇍","\\nLeftarrow",!0);v(b,D,P,"⇏","\\nRightarrow",!0);v(b,D,P,"↮","\\nleftrightarrow",!0);v(b,D,P,"⇎","\\nLeftrightarrow",!0);v(b,D,P,"△","\\vartriangle");v(b,D,$,"ℏ","\\hslash");v(b,D,$,"▽","\\triangledown");v(b,D,$,"◊","\\lozenge");v(b,D,$,"Ⓢ","\\circledS");v(b,D,$,"®","\\circledR");v(ae,D,$,"®","\\circledR");v(b,D,$,"∡","\\measuredangle",!0);v(b,D,$,"∄","\\nexists");v(b,D,$,"℧","\\mho");v(b,D,$,"Ⅎ","\\Finv",!0);v(b,D,$,"⅁","\\Game",!0);v(b,D,$,"‵","\\backprime");v(b,D,$,"▲","\\blacktriangle");v(b,D,$,"▼","\\blacktriangledown");v(b,D,$,"■","\\blacksquare");v(b,D,$,"⧫","\\blacklozenge");v(b,D,$,"★","\\bigstar");v(b,D,$,"∢","\\sphericalangle",!0);v(b,D,$,"∁","\\complement",!0);v(b,D,$,"ð","\\eth",!0);v(ae,S,$,"ð","ð");v(b,D,$,"╱","\\diagup");v(b,D,$,"╲","\\diagdown");v(b,D,$,"□","\\square");v(b,D,$,"□","\\Box");v(b,D,$,"◊","\\Diamond");v(b,D,$,"¥","\\yen",!0);v(ae,D,$,"¥","\\yen",!0);v(b,D,$,"✓","\\checkmark",!0);v(ae,D,$,"✓","\\checkmark");v(b,D,$,"ℶ","\\beth",!0);v(b,D,$,"ℸ","\\daleth",!0);v(b,D,$,"ℷ","\\gimel",!0);v(b,D,$,"ϝ","\\digamma",!0);v(b,D,$,"ϰ","\\varkappa");v(b,D,wn,"┌","\\@ulcorner",!0);v(b,D,Jt,"┐","\\@urcorner",!0);v(b,D,wn,"└","\\@llcorner",!0);v(b,D,Jt,"┘","\\@lrcorner",!0);v(b,D,P,"≦","\\leqq",!0);v(b,D,P,"⩽","\\leqslant",!0);v(b,D,P,"⪕","\\eqslantless",!0);v(b,D,P,"≲","\\lesssim",!0);v(b,D,P,"⪅","\\lessapprox",!0);v(b,D,P,"≊","\\approxeq",!0);v(b,D,Ce,"⋖","\\lessdot");v(b,D,P,"⋘","\\lll",!0);v(b,D,P,"≶","\\lessgtr",!0);v(b,D,P,"⋚","\\lesseqgtr",!0);v(b,D,P,"⪋","\\lesseqqgtr",!0);v(b,D,P,"≑","\\doteqdot");v(b,D,P,"≓","\\risingdotseq",!0);v(b,D,P,"≒","\\fallingdotseq",!0);v(b,D,P,"∽","\\backsim",!0);v(b,D,P,"⋍","\\backsimeq",!0);v(b,D,P,"⫅","\\subseteqq",!0);v(b,D,P,"⋐","\\Subset",!0);v(b,D,P,"⊏","\\sqsubset",!0);v(b,D,P,"≼","\\preccurlyeq",!0);v(b,D,P,"⋞","\\curlyeqprec",!0);v(b,D,P,"≾","\\precsim",!0);v(b,D,P,"⪷","\\precapprox",!0);v(b,D,P,"⊲","\\vartriangleleft");v(b,D,P,"⊴","\\trianglelefteq");v(b,D,P,"⊨","\\vDash",!0);v(b,D,P,"⊪","\\Vvdash",!0);v(b,D,P,"⌣","\\smallsmile");v(b,D,P,"⌢","\\smallfrown");v(b,D,P,"≏","\\bumpeq",!0);v(b,D,P,"≎","\\Bumpeq",!0);v(b,D,P,"≧","\\geqq",!0);v(b,D,P,"⩾","\\geqslant",!0);v(b,D,P,"⪖","\\eqslantgtr",!0);v(b,D,P,"≳","\\gtrsim",!0);v(b,D,P,"⪆","\\gtrapprox",!0);v(b,D,Ce,"⋗","\\gtrdot");v(b,D,P,"⋙","\\ggg",!0);v(b,D,P,"≷","\\gtrless",!0);v(b,D,P,"⋛","\\gtreqless",!0);v(b,D,P,"⪌","\\gtreqqless",!0);v(b,D,P,"≖","\\eqcirc",!0);v(b,D,P,"≗","\\circeq",!0);v(b,D,P,"≜","\\triangleq",!0);v(b,D,P,"∼","\\thicksim");v(b,D,P,"≈","\\thickapprox");v(b,D,P,"⫆","\\supseteqq",!0);v(b,D,P,"⋑","\\Supset",!0);v(b,D,P,"⊐","\\sqsupset",!0);v(b,D,P,"≽","\\succcurlyeq",!0);v(b,D,P,"⋟","\\curlyeqsucc",!0);v(b,D,P,"≿","\\succsim",!0);v(b,D,P,"⪸","\\succapprox",!0);v(b,D,P,"⊳","\\vartriangleright");v(b,D,P,"⊵","\\trianglerighteq");v(b,D,P,"⊩","\\Vdash",!0);v(b,D,P,"∣","\\shortmid");v(b,D,P,"∥","\\shortparallel");v(b,D,P,"≬","\\between",!0);v(b,D,P,"⋔","\\pitchfork",!0);v(b,D,P,"∝","\\varpropto");v(b,D,P,"◀","\\blacktriangleleft");v(b,D,P,"∴","\\therefore",!0);v(b,D,P,"∍","\\backepsilon");v(b,D,P,"▶","\\blacktriangleright");v(b,D,P,"∵","\\because",!0);v(b,D,P,"⋘","\\llless");v(b,D,P,"⋙","\\gggtr");v(b,D,Ce,"⊲","\\lhd");v(b,D,Ce,"⊳","\\rhd");v(b,D,P,"≂","\\eqsim",!0);v(b,S,P,"⋈","\\Join");v(b,D,P,"≑","\\Doteq",!0);v(b,D,Ce,"∔","\\dotplus",!0);v(b,D,Ce,"∖","\\smallsetminus");v(b,D,Ce,"⋒","\\Cap",!0);v(b,D,Ce,"⋓","\\Cup",!0);v(b,D,Ce,"⩞","\\doublebarwedge",!0);v(b,D,Ce,"⊟","\\boxminus",!0);v(b,D,Ce,"⊞","\\boxplus",!0);v(b,D,Ce,"⋇","\\divideontimes",!0);v(b,D,Ce,"⋉","\\ltimes",!0);v(b,D,Ce,"⋊","\\rtimes",!0);v(b,D,Ce,"⋋","\\leftthreetimes",!0);v(b,D,Ce,"⋌","\\rightthreetimes",!0);v(b,D,Ce,"⋏","\\curlywedge",!0);v(b,D,Ce,"⋎","\\curlyvee",!0);v(b,D,Ce,"⊝","\\circleddash",!0);v(b,D,Ce,"⊛","\\circledast",!0);v(b,D,Ce,"⋅","\\centerdot");v(b,D,Ce,"⊺","\\intercal",!0);v(b,D,Ce,"⋒","\\doublecap");v(b,D,Ce,"⋓","\\doublecup");v(b,D,Ce,"⊠","\\boxtimes",!0);v(b,D,P,"⇢","\\dashrightarrow",!0);v(b,D,P,"⇠","\\dashleftarrow",!0);v(b,D,P,"⇇","\\leftleftarrows",!0);v(b,D,P,"⇆","\\leftrightarrows",!0);v(b,D,P,"⇚","\\Lleftarrow",!0);v(b,D,P,"↞","\\twoheadleftarrow",!0);v(b,D,P,"↢","\\leftarrowtail",!0);v(b,D,P,"↫","\\looparrowleft",!0);v(b,D,P,"⇋","\\leftrightharpoons",!0);v(b,D,P,"↶","\\curvearrowleft",!0);v(b,D,P,"↺","\\circlearrowleft",!0);v(b,D,P,"↰","\\Lsh",!0);v(b,D,P,"⇈","\\upuparrows",!0);v(b,D,P,"↿","\\upharpoonleft",!0);v(b,D,P,"⇃","\\downharpoonleft",!0);v(b,S,P,"⊶","\\origof",!0);v(b,S,P,"⊷","\\imageof",!0);v(b,D,P,"⊸","\\multimap",!0);v(b,D,P,"↭","\\leftrightsquigarrow",!0);v(b,D,P,"⇉","\\rightrightarrows",!0);v(b,D,P,"⇄","\\rightleftarrows",!0);v(b,D,P,"↠","\\twoheadrightarrow",!0);v(b,D,P,"↣","\\rightarrowtail",!0);v(b,D,P,"↬","\\looparrowright",!0);v(b,D,P,"↷","\\curvearrowright",!0);v(b,D,P,"↻","\\circlearrowright",!0);v(b,D,P,"↱","\\Rsh",!0);v(b,D,P,"⇊","\\downdownarrows",!0);v(b,D,P,"↾","\\upharpoonright",!0);v(b,D,P,"⇂","\\downharpoonright",!0);v(b,D,P,"⇝","\\rightsquigarrow",!0);v(b,D,P,"⇝","\\leadsto");v(b,D,P,"⇛","\\Rrightarrow",!0);v(b,D,P,"↾","\\restriction");v(b,S,$,"‘","`");v(b,S,$,"$","\\$");v(ae,S,$,"$","\\$");v(ae,S,$,"$","\\textdollar");v(b,S,$,"%","\\%");v(ae,S,$,"%","\\%");v(b,S,$,"_","\\_");v(ae,S,$,"_","\\_");v(ae,S,$,"_","\\textunderscore");v(b,S,$,"∠","\\angle",!0);v(b,S,$,"∞","\\infty",!0);v(b,S,$,"′","\\prime");v(b,S,$,"△","\\triangle");v(b,S,$,"Γ","\\Gamma",!0);v(b,S,$,"Δ","\\Delta",!0);v(b,S,$,"Θ","\\Theta",!0);v(b,S,$,"Λ","\\Lambda",!0);v(b,S,$,"Ξ","\\Xi",!0);v(b,S,$,"Π","\\Pi",!0);v(b,S,$,"Σ","\\Sigma",!0);v(b,S,$,"Υ","\\Upsilon",!0);v(b,S,$,"Φ","\\Phi",!0);v(b,S,$,"Ψ","\\Psi",!0);v(b,S,$,"Ω","\\Omega",!0);v(b,S,$,"A","Α");v(b,S,$,"B","Β");v(b,S,$,"E","Ε");v(b,S,$,"Z","Ζ");v(b,S,$,"H","Η");v(b,S,$,"I","Ι");v(b,S,$,"K","Κ");v(b,S,$,"M","Μ");v(b,S,$,"N","Ν");v(b,S,$,"O","Ο");v(b,S,$,"P","Ρ");v(b,S,$,"T","Τ");v(b,S,$,"X","Χ");v(b,S,$,"¬","\\neg",!0);v(b,S,$,"¬","\\lnot");v(b,S,$,"⊤","\\top");v(b,S,$,"⊥","\\bot");v(b,S,$,"∅","\\emptyset");v(b,D,$,"∅","\\varnothing");v(b,S,De,"α","\\alpha",!0);v(b,S,De,"β","\\beta",!0);v(b,S,De,"γ","\\gamma",!0);v(b,S,De,"δ","\\delta",!0);v(b,S,De,"ϵ","\\epsilon",!0);v(b,S,De,"ζ","\\zeta",!0);v(b,S,De,"η","\\eta",!0);v(b,S,De,"θ","\\theta",!0);v(b,S,De,"ι","\\iota",!0);v(b,S,De,"κ","\\kappa",!0);v(b,S,De,"λ","\\lambda",!0);v(b,S,De,"μ","\\mu",!0);v(b,S,De,"ν","\\nu",!0);v(b,S,De,"ξ","\\xi",!0);v(b,S,De,"ο","\\omicron",!0);v(b,S,De,"π","\\pi",!0);v(b,S,De,"ρ","\\rho",!0);v(b,S,De,"σ","\\sigma",!0);v(b,S,De,"τ","\\tau",!0);v(b,S,De,"υ","\\upsilon",!0);v(b,S,De,"ϕ","\\phi",!0);v(b,S,De,"χ","\\chi",!0);v(b,S,De,"ψ","\\psi",!0);v(b,S,De,"ω","\\omega",!0);v(b,S,De,"ε","\\varepsilon",!0);v(b,S,De,"ϑ","\\vartheta",!0);v(b,S,De,"ϖ","\\varpi",!0);v(b,S,De,"ϱ","\\varrho",!0);v(b,S,De,"ς","\\varsigma",!0);v(b,S,De,"φ","\\varphi",!0);v(b,S,Ce,"∗","*",!0);v(b,S,Ce,"+","+");v(b,S,Ce,"−","-",!0);v(b,S,Ce,"⋅","\\cdot",!0);v(b,S,Ce,"∘","\\circ",!0);v(b,S,Ce,"÷","\\div",!0);v(b,S,Ce,"±","\\pm",!0);v(b,S,Ce,"×","\\times",!0);v(b,S,Ce,"∩","\\cap",!0);v(b,S,Ce,"∪","\\cup",!0);v(b,S,Ce,"∖","\\setminus",!0);v(b,S,Ce,"∧","\\land");v(b,S,Ce,"∨","\\lor");v(b,S,Ce,"∧","\\wedge",!0);v(b,S,Ce,"∨","\\vee",!0);v(b,S,$,"√","\\surd");v(b,S,wn,"⟨","\\langle",!0);v(b,S,wn,"∣","\\lvert");v(b,S,wn,"∥","\\lVert");v(b,S,Jt,"?","?");v(b,S,Jt,"!","!");v(b,S,Jt,"⟩","\\rangle",!0);v(b,S,Jt,"∣","\\rvert");v(b,S,Jt,"∥","\\rVert");v(b,S,P,"=","=");v(b,S,P,":",":");v(b,S,P,"≈","\\approx",!0);v(b,S,P,"≅","\\cong",!0);v(b,S,P,"≥","\\ge");v(b,S,P,"≥","\\geq",!0);v(b,S,P,"←","\\gets");v(b,S,P,">","\\gt",!0);v(b,S,P,"∈","\\in",!0);v(b,S,P,"","\\@not");v(b,S,P,"⊂","\\subset",!0);v(b,S,P,"⊃","\\supset",!0);v(b,S,P,"⊆","\\subseteq",!0);v(b,S,P,"⊇","\\supseteq",!0);v(b,D,P,"⊈","\\nsubseteq",!0);v(b,D,P,"⊉","\\nsupseteq",!0);v(b,S,P,"⊨","\\models");v(b,S,P,"←","\\leftarrow",!0);v(b,S,P,"≤","\\le");v(b,S,P,"≤","\\leq",!0);v(b,S,P,"<","\\lt",!0);v(b,S,P,"→","\\rightarrow",!0);v(b,S,P,"→","\\to");v(b,D,P,"≱","\\ngeq",!0);v(b,D,P,"≰","\\nleq",!0);v(b,S,Ar," ","\\ ");v(b,S,Ar," ","\\space");v(b,S,Ar," ","\\nobreakspace");v(ae,S,Ar," ","\\ ");v(ae,S,Ar," "," ");v(ae,S,Ar," ","\\space");v(ae,S,Ar," ","\\nobreakspace");v(b,S,Ar,"","\\nobreak");v(b,S,Ar,"","\\allowbreak");v(b,S,$a,",",",");v(b,S,$a,";",";");v(b,D,Ce,"⊼","\\barwedge",!0);v(b,D,Ce,"⊻","\\veebar",!0);v(b,S,Ce,"⊙","\\odot",!0);v(b,S,Ce,"⊕","\\oplus",!0);v(b,S,Ce,"⊗","\\otimes",!0);v(b,S,$,"∂","\\partial",!0);v(b,S,Ce,"⊘","\\oslash",!0);v(b,D,Ce,"⊚","\\circledcirc",!0);v(b,D,Ce,"⊡","\\boxdot",!0);v(b,S,Ce,"△","\\bigtriangleup");v(b,S,Ce,"▽","\\bigtriangledown");v(b,S,Ce,"†","\\dagger");v(b,S,Ce,"⋄","\\diamond");v(b,S,Ce,"⋆","\\star");v(b,S,Ce,"◃","\\triangleleft");v(b,S,Ce,"▹","\\triangleright");v(b,S,wn,"{","\\{");v(ae,S,$,"{","\\{");v(ae,S,$,"{","\\textbraceleft");v(b,S,Jt,"}","\\}");v(ae,S,$,"}","\\}");v(ae,S,$,"}","\\textbraceright");v(b,S,wn,"{","\\lbrace");v(b,S,Jt,"}","\\rbrace");v(b,S,wn,"[","\\lbrack",!0);v(ae,S,$,"[","\\lbrack",!0);v(b,S,Jt,"]","\\rbrack",!0);v(ae,S,$,"]","\\rbrack",!0);v(b,S,wn,"(","\\lparen",!0);v(b,S,Jt,")","\\rparen",!0);v(ae,S,$,"<","\\textless",!0);v(ae,S,$,">","\\textgreater",!0);v(b,S,wn,"⌊","\\lfloor",!0);v(b,S,Jt,"⌋","\\rfloor",!0);v(b,S,wn,"⌈","\\lceil",!0);v(b,S,Jt,"⌉","\\rceil",!0);v(b,S,$,"\\","\\backslash");v(b,S,$,"∣","|");v(b,S,$,"∣","\\vert");v(ae,S,$,"|","\\textbar",!0);v(b,S,$,"∥","\\|");v(b,S,$,"∥","\\Vert");v(ae,S,$,"∥","\\textbardbl");v(ae,S,$,"~","\\textasciitilde");v(ae,S,$,"\\","\\textbackslash");v(ae,S,$,"^","\\textasciicircum");v(b,S,P,"↑","\\uparrow",!0);v(b,S,P,"⇑","\\Uparrow",!0);v(b,S,P,"↓","\\downarrow",!0);v(b,S,P,"⇓","\\Downarrow",!0);v(b,S,P,"↕","\\updownarrow",!0);v(b,S,P,"⇕","\\Updownarrow",!0);v(b,S,Et,"∐","\\coprod");v(b,S,Et,"⋁","\\bigvee");v(b,S,Et,"⋀","\\bigwedge");v(b,S,Et,"⨄","\\biguplus");v(b,S,Et,"⋂","\\bigcap");v(b,S,Et,"⋃","\\bigcup");v(b,S,Et,"∫","\\int");v(b,S,Et,"∫","\\intop");v(b,S,Et,"∬","\\iint");v(b,S,Et,"∭","\\iiint");v(b,S,Et,"∏","\\prod");v(b,S,Et,"∑","\\sum");v(b,S,Et,"⨂","\\bigotimes");v(b,S,Et,"⨁","\\bigoplus");v(b,S,Et,"⨀","\\bigodot");v(b,S,Et,"∮","\\oint");v(b,S,Et,"∯","\\oiint");v(b,S,Et,"∰","\\oiiint");v(b,S,Et,"⨆","\\bigsqcup");v(b,S,Et,"∫","\\smallint");v(ae,S,jl,"…","\\textellipsis");v(b,S,jl,"…","\\mathellipsis");v(ae,S,jl,"…","\\ldots",!0);v(b,S,jl,"…","\\ldots",!0);v(b,S,jl,"⋯","\\@cdots",!0);v(b,S,jl,"⋱","\\ddots",!0);v(b,S,$,"⋮","\\varvdots");v(ae,S,$,"⋮","\\varvdots");v(b,S,ft,"ˊ","\\acute");v(b,S,ft,"ˋ","\\grave");v(b,S,ft,"¨","\\ddot");v(b,S,ft,"~","\\tilde");v(b,S,ft,"ˉ","\\bar");v(b,S,ft,"˘","\\breve");v(b,S,ft,"ˇ","\\check");v(b,S,ft,"^","\\hat");v(b,S,ft,"⃗","\\vec");v(b,S,ft,"˙","\\dot");v(b,S,ft,"˚","\\mathring");v(b,S,De,"","\\@imath");v(b,S,De,"","\\@jmath");v(b,S,$,"ı","ı");v(b,S,$,"ȷ","ȷ");v(ae,S,$,"ı","\\i",!0);v(ae,S,$,"ȷ","\\j",!0);v(ae,S,$,"ß","\\ss",!0);v(ae,S,$,"æ","\\ae",!0);v(ae,S,$,"œ","\\oe",!0);v(ae,S,$,"ø","\\o",!0);v(ae,S,$,"Æ","\\AE",!0);v(ae,S,$,"Œ","\\OE",!0);v(ae,S,$,"Ø","\\O",!0);v(ae,S,ft,"ˊ","\\'");v(ae,S,ft,"ˋ","\\`");v(ae,S,ft,"ˆ","\\^");v(ae,S,ft,"˜","\\~");v(ae,S,ft,"ˉ","\\=");v(ae,S,ft,"˘","\\u");v(ae,S,ft,"˙","\\.");v(ae,S,ft,"¸","\\c");v(ae,S,ft,"˚","\\r");v(ae,S,ft,"ˇ","\\v");v(ae,S,ft,"¨",'\\"');v(ae,S,ft,"˝","\\H");v(ae,S,ft,"◯","\\textcircled");var J2={"--":!0,"---":!0,"``":!0,"''":!0};v(ae,S,$,"–","--",!0);v(ae,S,$,"–","\\textendash");v(ae,S,$,"—","---",!0);v(ae,S,$,"—","\\textemdash");v(ae,S,$,"‘","`",!0);v(ae,S,$,"‘","\\textquoteleft");v(ae,S,$,"’","'",!0);v(ae,S,$,"’","\\textquoteright");v(ae,S,$,"“","``",!0);v(ae,S,$,"“","\\textquotedblleft");v(ae,S,$,"”","''",!0);v(ae,S,$,"”","\\textquotedblright");v(b,S,$,"°","\\degree",!0);v(ae,S,$,"°","\\degree");v(ae,S,$,"°","\\textdegree",!0);v(b,S,$,"£","\\pounds");v(b,S,$,"£","\\mathsterling",!0);v(ae,S,$,"£","\\pounds");v(ae,S,$,"£","\\textsterling",!0);v(b,D,$,"✠","\\maltese");v(ae,D,$,"✠","\\maltese");var sp='0123456789/@."';for(var hc=0;hc<sp.length;hc++){var op=sp.charAt(hc);v(b,S,$,op,op)}var up='0123456789!@*()-=+";:?/.,';for(var fc=0;fc<up.length;fc++){var cp=up.charAt(fc);v(ae,S,$,cp,cp)}var Eo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var dc=0;dc<Eo.length;dc++){var ro=Eo.charAt(dc);v(b,S,De,ro,ro),v(ae,S,$,ro,ro)}v(b,D,$,"C","ℂ");v(ae,D,$,"C","ℂ");v(b,D,$,"H","ℍ");v(ae,D,$,"H","ℍ");v(b,D,$,"N","ℕ");v(ae,D,$,"N","ℕ");v(b,D,$,"P","ℙ");v(ae,D,$,"P","ℙ");v(b,D,$,"Q","ℚ");v(ae,D,$,"Q","ℚ");v(b,D,$,"R","ℝ");v(ae,D,$,"R","ℝ");v(b,D,$,"Z","ℤ");v(ae,D,$,"Z","ℤ");v(b,S,De,"h","ℎ");v(ae,S,De,"h","ℎ");var Oe;for(var Yt=0;Yt<Eo.length;Yt++){var yt=Eo.charAt(Yt);Oe=String.fromCharCode(55349,56320+Yt),v(b,S,De,yt,Oe),v(ae,S,$,yt,Oe),Oe=String.fromCharCode(55349,56372+Yt),v(b,S,De,yt,Oe),v(ae,S,$,yt,Oe),Oe=String.fromCharCode(55349,56424+Yt),v(b,S,De,yt,Oe),v(ae,S,$,yt,Oe),Oe=String.fromCharCode(55349,56580+Yt),v(b,S,De,yt,Oe),v(ae,S,$,yt,Oe),Oe=String.fromCharCode(55349,56684+Yt),v(b,S,De,yt,Oe),v(ae,S,$,yt,Oe),Oe=String.fromCharCode(55349,56736+Yt),v(b,S,De,yt,Oe),v(ae,S,$,yt,Oe),Oe=String.fromCharCode(55349,56788+Yt),v(b,S,De,yt,Oe),v(ae,S,$,yt,Oe),Oe=String.fromCharCode(55349,56840+Yt),v(b,S,De,yt,Oe),v(ae,S,$,yt,Oe),Oe=String.fromCharCode(55349,56944+Yt),v(b,S,De,yt,Oe),v(ae,S,$,yt,Oe),Yt<26&&(Oe=String.fromCharCode(55349,56632+Yt),v(b,S,De,yt,Oe),v(ae,S,$,yt,Oe),Oe=String.fromCharCode(55349,56476+Yt),v(b,S,De,yt,Oe),v(ae,S,$,yt,Oe))}Oe="𝕜";v(b,S,De,"k",Oe);v(ae,S,$,"k",Oe);for(var Ri=0;Ri<10;Ri++){var ei=Ri.toString();Oe=String.fromCharCode(55349,57294+Ri),v(b,S,De,ei,Oe),v(ae,S,$,ei,Oe),Oe=String.fromCharCode(55349,57314+Ri),v(b,S,De,ei,Oe),v(ae,S,$,ei,Oe),Oe=String.fromCharCode(55349,57324+Ri),v(b,S,De,ei,Oe),v(ae,S,$,ei,Oe),Oe=String.fromCharCode(55349,57334+Ri),v(b,S,De,ei,Oe),v(ae,S,$,ei,Oe)}var Uc="ÐÞþ";for(var mc=0;mc<Uc.length;mc++){var io=Uc.charAt(mc);v(b,S,De,io,io),v(ae,S,$,io,io)}var Vc={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},hp={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},fp={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},Xb={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},Fi={mathClass:"",textClass:"",font:""},dp={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},mp={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},pp={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},Wc={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},Gc={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},gp={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},Yc={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},vp=[Vc,Vc,hp,hp,fp,fp,Xb,Fi,Fi,Fi,dp,dp,mp,mp,pp,pp,Wc,Wc,Gc,Gc,gp,gp,Fi,Fi,Yc,Yc],Kb=[Vc,Fi,Wc,Gc,Yc],Qb=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),i=(t-55296)*1024+(n-56320)+65536;if(119808<=i&&i<120484){var a=Math.floor((i-119808)/26);return vp[a]}else if(120782<=i&&i<=120831){var s=Math.floor((i-120782)/10);return Kb[s]}else{if(i===120485||i===120486)return vp[0];if(120486<i&&i<120782)return Fi;throw new he("Unsupported character: "+e)}},_o=function(t,n,i){if(ht[i][t]){var a=ht[i][t].replace;a&&(t=a)}return{value:t,metrics:Uh(t,n,i)}},Xt=function(t,n,i,a,s){var o=_o(t,n,i),c=o.metrics;t=o.value;var h;if(c){var f=c.italic;(i==="text"||a&&a.font==="mathit")&&(f=0),h=new yn(t,c.height,c.depth,f,c.skew,c.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+i+"'")),h=new yn(t,0,0,0,0,0,s);if(a){h.maxFontSize=a.sizeMultiplier,a.style.isTight()&&h.classes.push("mtight");var m=a.getColor();m&&(h.style.color=m)}return h},Vh=function(t,n,i,a){return a===void 0&&(a=[]),i.font==="boldsymbol"&&_o(t,"Main-Bold",n).metrics?Xt(t,"Main-Bold",n,i,a.concat(["mathbf"])):t==="\\"||ht[n][t].font==="main"?Xt(t,"Main-Regular",n,i,a):Xt(t,"AMS-Regular",n,i,a.concat(["amsrm"]))},Jb=function(t,n,i){return i!=="textord"&&_o(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},$o=function(t,n,i){var a=t.mode,s=t.text,o=["mord"],{font:c,fontFamily:h,fontWeight:f,fontShape:m}=n,p=a==="math"||a==="text"&&!!c,x=p?c:h,k="",E="";if(s.charCodeAt(0)===55349){var N=Qb(s);k=N.font,E=N[a+"Class"]}if(k)return Xt(s,k,a,n,o.concat(E));if(x){var z,A;if(x==="boldsymbol"){var R=Jb(s,a,i);z=R.fontName,A=[R.fontClass]}else p?(z=Xc[c].fontName,A=[c]):(z=lo(h,f,m),A=[h,f,m]);if(_o(s,z,a).metrics)return Xt(s,z,a,n,o.concat(A));if(J2.hasOwnProperty(s)&&z.slice(0,10)==="Typewriter"){for(var _=[],Y=0;Y<s.length;Y++)_.push(Xt(s[Y],z,a,n,o.concat(A)));return zr(_)}}if(i==="mathord")return Xt(s,"Math-Italic",a,n,o.concat(["mathnormal"]));if(i==="textord"){var V=ht[a][s]&&ht[a][s].font;if(V==="ams"){var O=lo("amsrm",f,m);return Xt(s,O,a,n,o.concat("amsrm",f,m))}else if(V==="main"||!V){var G=lo("textrm",f,m);return Xt(s,G,a,n,o.concat(f,m))}else{var te=lo(V,f,m);return Xt(s,te,a,n,o.concat(te,f,m))}}else throw new Error("unexpected type: "+i+" in makeOrd")},Zb=(e,t)=>{if(ri(e.classes)!==ri(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 a of Object.keys(t.style))if(e.style[a]!==t.style[a])return!1;return!0},Z2=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],i=e[t+1];n instanceof yn&&i instanceof yn&&Zb(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},Wh=function(t){for(var n=0,i=0,a=0,s=0;s<t.children.length;s++){var o=t.children[s];o.height>n&&(n=o.height),o.depth>i&&(i=o.depth),o.maxFontSize>a&&(a=o.maxFontSize)}t.height=n,t.depth=i,t.maxFontSize=a},ue=function(t,n,i,a){var s=new Ml(t,n,i,a);return Wh(s),s},li=(e,t,n,i)=>new Ml(e,t,n,i),bl=function(t,n,i){var a=ue([t],[],n);return a.height=Math.max(i||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),a.style.borderBottomWidth=ve(a.height),a.maxFontSize=1,a},eS=function(t,n,i,a){var s=new Bo(t,n,i,a);return Wh(s),s},zr=function(t){var n=new zl(t);return Wh(n),n},Sl=function(t,n){return t instanceof zl?ue([],[t],n):t},tS=function(t){if(t.positionType==="individualShift"){for(var n=t.children,i=[n[0]],a=-n[0].shift-n[0].elem.depth,s=a,o=1;o<n.length;o++){var c=-n[o].shift-s-n[o].elem.depth,h=c-(n[o-1].elem.height+n[o-1].elem.depth);s=s+c,i.push({type:"kern",size:h}),i.push(n[o])}return{children:i,depth:a}}var f;if(t.positionType==="top"){for(var m=t.positionData,p=0;p<t.children.length;p++){var x=t.children[p];m-=x.type==="kern"?x.size:x.elem.height+x.elem.depth}f=m}else if(t.positionType==="bottom")f=-t.positionData;else{var k=t.children[0];if(k.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")f=-k.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")f=-k.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:f}},Je=function(t,n){for(var{children:i,depth:a}=tS(t),s=0,o=0;o<i.length;o++){var c=i[o];if(c.type==="elem"){var h=c.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var f=ue(["pstrut"],[]);f.style.height=ve(s);for(var m=[],p=a,x=a,k=a,E=0;E<i.length;E++){var N=i[E];if(N.type==="kern")k+=N.size;else{var z=N.elem,A=N.wrapperClasses||[],R=N.wrapperStyle||{},_=ue(A,[f,z],void 0,R);_.style.top=ve(-s-k-z.depth),N.marginLeft&&(_.style.marginLeft=N.marginLeft),N.marginRight&&(_.style.marginRight=N.marginRight),m.push(_),k+=z.height+z.depth}p=Math.min(p,k),x=Math.max(x,k)}var Y=ue(["vlist"],m);Y.style.height=ve(x);var V;if(p<0){var O=ue([],[]),G=ue(["vlist"],[O]);G.style.height=ve(-p);var te=ue(["vlist-s"],[new yn("")]);V=[ue(["vlist-r"],[Y,te]),ue(["vlist-r"],[G])]}else V=[ue(["vlist-r"],[Y])];var re=ue(["vlist-t"],V);return V.length===2&&re.classes.push("vlist-t2"),re.height=x,re.depth=-p,re},eg=(e,t)=>{var n=ue(["mspace"],[],t),i=gt(e,t);return n.style.marginRight=ve(i),n},lo=(e,t,n)=>{var i,a;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"?a="BoldItalic":t==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},Xc={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"}},tg={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ng=function(t,n){var[i,a,s]=tg[t],o=new ii(i),c=new Er([o],{width:ve(a),height:ve(s),style:"width:"+ve(a),viewBox:"0 0 "+1e3*a+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=li(["overlay"],[c],n);return h.height=s,h.style.height=ve(s),h.style.width=ve(a),h},pt={number:3,unit:"mu"},Li={number:4,unit:"mu"},kr={number:5,unit:"mu"},nS={mord:{mop:pt,mbin:Li,mrel:kr,minner:pt},mop:{mord:pt,mop:pt,mrel:kr,minner:pt},mbin:{mord:Li,mop:Li,mopen:Li,minner:Li},mrel:{mord:kr,mop:kr,mopen:kr,minner:kr},mopen:{},mclose:{mop:pt,mbin:Li,mrel:kr,minner:pt},mpunct:{mord:pt,mop:pt,mrel:kr,mopen:pt,mclose:pt,mpunct:pt,minner:pt},minner:{mord:pt,mop:pt,mbin:Li,mrel:kr,mopen:pt,mpunct:pt,minner:pt}},rS={mord:{mop:pt},mop:{mord:pt,mop:pt},mbin:{},mrel:{},mopen:{},mclose:{mop:pt},mpunct:{},minner:{mop:pt}},rg={},To={},No={};function we(e){for(var{type:t,names:n,props:i,handler:a,htmlBuilder:s,mathmlBuilder:o}=e,c={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:a},h=0;h<n.length;++h)rg[n[h]]=c;t&&(s&&(To[t]=s),o&&(No[t]=o))}function Hi(e){var{type:t,htmlBuilder:n,mathmlBuilder:i}=e;we({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:i})}var Ao=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},St=function(t){return t.type==="ordgroup"?t.body:[t]},iS=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),lS=new Set(["rightmost","mrel","mclose","mpunct"]),aS={display:He.DISPLAY,text:He.TEXT,script:He.SCRIPT,scriptscript:He.SCRIPTSCRIPT},sS={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},zt=function(t,n,i,a){a===void 0&&(a=[null,null]);for(var s=[],o=0;o<t.length;o++){var c=Ze(t[o],n);if(c instanceof zl){var h=c.children;s.push(...h)}else s.push(c)}if(Z2(s),!i)return s;var f=n;if(t.length===1){var m=t[0];m.type==="sizing"?f=n.havingSize(m.size):m.type==="styling"&&(f=n.havingStyle(aS[m.style]))}var p=ue([a[0]||"leftmost"],[],n),x=ue([a[1]||"rightmost"],[],n),k=i==="root";return Kc(s,(E,N)=>{var z=N.classes[0],A=E.classes[0];z==="mbin"&&lS.has(A)?N.classes[0]="mord":A==="mbin"&&iS.has(z)&&(E.classes[0]="mord")},{node:p},x,k),Kc(s,(E,N)=>{var z,A,R=Jc(N),_=Jc(E),Y=R&&_?E.hasClass("mtight")?(z=rS[R])==null?void 0:z[_]:(A=nS[R])==null?void 0:A[_]:null;if(Y)return eg(Y,f)},{node:p},x,k),s},Kc=function(t,n,i,a,s){a&&t.push(a);for(var o=0;o<t.length;o++){var c=t[o],h=ig(c);if(h){Kc(h.children,n,i,null,s);continue}var f=!c.hasClass("mspace");if(f){var m=n(c,i.node);m&&(i.insertAfter?i.insertAfter(m):(t.unshift(m),o++))}f?i.node=c:s&&c.hasClass("newline")&&(i.node=ue(["leftmost"])),i.insertAfter=(p=>x=>{t.splice(p+1,0,x),o++})(o)}a&&t.pop()},ig=function(t){return t instanceof zl||t instanceof Bo||t instanceof Ml&&t.hasClass("enclosing")?t:null},Qc=function(t,n){var i=ig(t);if(i){var a=i.children;if(a.length){if(n==="right")return Qc(a[a.length-1],"right");if(n==="left")return Qc(a[0],"left")}}return t},Jc=function(t,n){if(!t)return null;n&&(t=Qc(t,n));var i=t.classes[0];return sS[i]||null},La=function(t,n){var i=["nulldelimiter"].concat(t.baseSizingClasses());return ue(n.concat(i))},Ze=function(t,n,i){if(!t)return ue();if(To[t.type]){var a=To[t.type](t,n);if(i&&n.size!==i.size){a=ue(n.sizingClasses(i),[a],n);var s=n.sizeMultiplier/i.sizeMultiplier;a.height*=s,a.depth*=s}return a}else throw new he("Got group of unknown type: '"+t.type+"'")};function ao(e,t){var n=ue(["base"],e,t),i=ue(["strut"]);return i.style.height=ve(n.height+n.depth),n.depth&&(i.style.verticalAlign=ve(-n.depth)),n.children.unshift(i),n}function Zc(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var i=zt(e,t,"root"),a;i.length===2&&i[1].hasClass("tag")&&(a=i.pop());for(var s=[],o=[],c=0;c<i.length;c++)if(o.push(i[c]),i[c].hasClass("mbin")||i[c].hasClass("mrel")||i[c].hasClass("allowbreak")){for(var h=!1;c<i.length-1&&i[c+1].hasClass("mspace")&&!i[c+1].hasClass("newline");)c++,o.push(i[c]),i[c].hasClass("nobreak")&&(h=!0);h||(s.push(ao(o,t)),o=[])}else i[c].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(ao(o,t)),o=[]),s.push(i[c]));o.length>0&&s.push(ao(o,t));var f;n?(f=ao(zt(n,t,!0),t),f.classes=["tag"],s.push(f)):a&&s.push(a);var m=ue(["katex-html"],s);if(m.setAttribute("aria-hidden","true"),f){var p=f.children[0];p.style.height=ve(m.height+m.depth),m.depth&&(p.style.verticalAlign=ve(-m.depth))}return m}function lg(e){return new zl(e)}class me{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=ri(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof Ct&&this.children[i+1]instanceof Ct){for(var a=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof Ct;)a+=this.children[++i].toText();t.appendChild(new Ct(a).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+=Ut(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Ut(ri(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 Ct{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ut(this.toText())}toText(){return this.text}}class ag{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",ve(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+ve(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var oS=new Set(["\\imath","\\jmath"]),uS=new Set(["mrow","mtable"]),Rn=function(t,n,i){return ht[n][t]&&ht[n][t].replace&&t.charCodeAt(0)!==55349&&!(J2.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=ht[n][t].replace),new Ct(t)},Gh=function(t){return t.length===1?t[0]:new me("mrow",t)},cS={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"},Yh=(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,a=cS[n];if(a)return typeof a=="function"?a(e):a;var s=e.text;if(oS.has(s))return null;if(ht[i][s]){var o=ht[i][s].replace;o&&(s=o)}var c=Xc[n].fontName;return Uh(s,c,i)?Xc[n].variant:null};function pc(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Ct&&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 Ct&&n.text===","}else return!1}var kn=function(t,n,i){if(t.length===1){var a=rt(t[0],n);return i&&a instanceof me&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var s=[],o,c=0;c<t.length;c++){var h=rt(t[c],n);if(h instanceof me&&o instanceof me){if(h.type==="mtext"&&o.type==="mtext"&&h.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...h.children);continue}else if(h.type==="mn"&&o.type==="mn"){o.children.push(...h.children);continue}else if(pc(h)&&o.type==="mn"){o.children.push(...h.children);continue}else if(h.type==="mn"&&pc(o))h.children=[...o.children,...h.children],s.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(o.type==="mn"||pc(o))){var f=h.children[0];f instanceof me&&f.type==="mn"&&(f.children=[...o.children,...f.children],s.pop())}else if(o.type==="mi"&&o.children.length===1){var m=o.children[0];if(m instanceof Ct&&m.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var p=h.children[0];p instanceof Ct&&p.text.length>0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),s.pop())}}}s.push(h),o=h}return s},ai=function(t,n,i){return Gh(kn(t,n,i))},rt=function(t,n){if(!t)return new me("mrow");if(No[t.type])return No[t.type](t,n);throw new he("Got group of unknown type: '"+t.type+"'")};function yp(e,t,n,i,a){var s=kn(e,n),o;s.length===1&&s[0]instanceof me&&uS.has(s[0].type)?o=s[0]:o=new me("mrow",s);var c=new me("annotation",[new Ct(t)]);c.setAttribute("encoding","application/x-tex");var h=new me("semantics",[o,c]),f=new me("math",[h]);f.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&f.setAttribute("display","block");var m=a?"katex":"katex-mathml";return ue([m],[f])}var hS=[[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]],xp=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],wp=function(t,n){return n.size<2?t:hS[t-1][n.size-1]};class br{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||br.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=xp[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 br(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:wp(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:xp[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=wp(br.BASESIZE,t);return this.size===n&&this.textSize===br.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!==br.BASESIZE?["sizing","reset-size"+this.size,"size"+br.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Yb(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}br.BASESIZE=6;var sg=function(t){return new br({style:t.displayMode?He.DISPLAY:He.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},og=function(t,n){if(n.displayMode){var i=["katex-display"];n.leqno&&i.push("leqno"),n.fleqn&&i.push("fleqn"),t=ue(i,[t])}return t},fS=function(t,n,i){var a=sg(i),s;if(i.output==="mathml")return yp(t,n,a,i.displayMode,!0);if(i.output==="html"){var o=Zc(t,a);s=ue(["katex"],[o])}else{var c=yp(t,n,a,i.displayMode,!1),h=Zc(t,a);s=ue(["katex"],[c,h])}return og(s,i)},dS=function(t,n,i){var a=sg(i),s=Zc(t,a),o=ue(["katex"],[s]);return og(o,i)},mS={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":"="},Ho=function(t){var n=new me("mo",[new Ct(mS[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},pS={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]},gS=new Set(["widehat","widecheck","widetilde","utilde"]),qo=function(t,n){function i(){var c=4e5,h=t.label.slice(1);if(gS.has(h)&&"base"in t){var f=t.base.type==="ordgroup"?t.base.body.length:1,m,p,x;if(f>5)h==="widehat"||h==="widecheck"?(m=420,c=2364,x=.42,p=h+"4"):(m=312,c=2340,x=.34,p="tilde4");else{var k=[1,1,2,2,3,3][f];h==="widehat"||h==="widecheck"?(c=[0,1062,2364,2364,2364][k],m=[0,239,300,360,420][k],x=[0,.24,.3,.3,.36,.42][k],p=h+k):(c=[0,600,1033,2339,2340][k],m=[0,260,286,306,312][k],x=[0,.26,.286,.3,.306,.34][k],p="tilde"+k)}var E=new ii(p),N=new Er([E],{width:"100%",height:ve(x),viewBox:"0 0 "+c+" "+m,preserveAspectRatio:"none"});return{span:li([],[N],n),minWidth:0,height:x}}else{var z=[],A=pS[h];if(!A)throw new Error('No SVG data for "'+h+'".');var[R,_,Y]=A,V=Y/1e3,O=R.length,G,te;if(O===1){if(A.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');G=["hide-tail"],te=[A[3]]}else if(O===2)G=["halfarrow-left","halfarrow-right"],te=["xMinYMin","xMaxYMin"];else if(O===3)G=["brace-left","brace-center","brace-right"],te=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
337
|
+
`+O+" children.");for(var re=0;re<O;re++){var q=new ii(R[re]),fe=new Er([q],{width:"400em",height:ve(V),viewBox:"0 0 "+c+" "+Y,preserveAspectRatio:te[re]+" slice"}),ie=li([G[re]],[fe],n);if(O===1)return{span:ie,minWidth:_,height:V};ie.style.height=ve(V),z.push(ie)}return{span:ue(["stretchy"],z,n),minWidth:_,height:V}}}var{span:a,minWidth:s,height:o}=i();return a.height=o,a.style.height=ve(o),s>0&&(a.style.minWidth=ve(s)),a},vS=function(t,n,i,a,s){var o,c=t.height+t.depth+i+a;if(/fbox|color|angl/.test(n)){if(o=ue(["stretchy",n],[],s),n==="fbox"){var h=s.color&&s.getColor();h&&(o.style.borderColor=h)}}else{var f=[];/^[bx]cancel$/.test(n)&&f.push(new qc({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&f.push(new qc({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new Er(f,{width:"100%",height:ve(c)});o=li([],[m],s)}return o.height=c,o.style.height=ve(c),o},yS={bin:1,close:1,inner:1,open:1,punct:1,rel:1},xS={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function wS(e){return e in yS}function Ue(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 Uo(e){var t=Vo(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 Vo(e){return e&&(e.type==="atom"||xS.hasOwnProperty(e.type))?e:null}var ug=e=>{if(e instanceof yn)return e;if(Gb(e)&&e.children.length===1)return ug(e.children[0])},Xh=(e,t)=>{var n,i,a;e&&e.type==="supsub"?(i=Ue(e.base,"accent"),n=i.base,e.base=n,a=Wb(Ze(e,t)),e.base=i):(i=Ue(e,"accent"),n=i.base);var s=Ze(n,t.havingCrampedStyle()),o=i.isShifty&&Nr(n),c=0;if(o){var h,f;c=(h=(f=ug(s))==null?void 0:f.skew)!=null?h:0}var m=i.label==="\\c",p=m?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),x;if(i.isStretchy)x=qo(i,t),x=Je({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:x,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:"calc(100% - "+ve(2*c)+")",marginLeft:ve(2*c)}:void 0}]});else{var k,E;i.label==="\\vec"?(k=ng("vec",t),E=tg.vec[1]):(k=$o({mode:i.mode,text:i.label},t,"textord"),k=Vb(k),k.italic=0,E=k.width,m&&(p+=k.depth)),x=ue(["accent-body"],[k]);var N=i.label==="\\textcircled";N&&(x.classes.push("accent-full"),p=s.height);var z=c;N||(z-=E/2),x.style.left=ve(z),i.label==="\\textcircled"&&(x.style.top=".2em"),x=Je({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-p},{type:"elem",elem:x}]})}var A=ue(["mord","accent"],[x],t);return a?(a.children[0]=A,a.height=Math.max(A.height,a.height),a.classes[0]="mord",a):A},cg=(e,t)=>{var n=e.isStretchy?Ho(e.label):new me("mo",[Rn(e.label,e.mode)]),i=new me("mover",[rt(e.base,t),n]);return i.setAttribute("accent","true"),i},kS=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));we({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=Ao(t[0]),i=!kS.test(e.funcName),a=!i||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:a,base:n}},htmlBuilder:Xh,mathmlBuilder:cg});we({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:Xh,mathmlBuilder:cg});we({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,a=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:a}},htmlBuilder:(e,t)=>{var n=Ze(e.base,t),i=qo(e,t),a=e.label==="\\utilde"?.12:0,s=Je({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]});return ue(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var n=Ho(e.label),i=new me("munder",[rt(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var so=e=>{var t=new me("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};we({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:a}=e;return{type:"xArrow",mode:i.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,i=t.havingStyle(n.sup()),a=Sl(Ze(e.body,i,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(s+"-arrow-pad");var o;e.below&&(i=t.havingStyle(n.sub()),o=Sl(Ze(e.below,i,t),t),o.classes.push(s+"-arrow-pad"));var c=qo(e,t),h=-t.fontMetrics().axisHeight+.5*c.height,f=-t.fontMetrics().axisHeight-.5*c.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(f-=a.depth);var m;if(o){var p=-t.fontMetrics().axisHeight+o.height+.5*c.height+.111;m=Je({positionType:"individualShift",children:[{type:"elem",elem:a,shift:f},{type:"elem",elem:c,shift:h,wrapperClasses:["svg-align"]},{type:"elem",elem:o,shift:p}]})}else m=Je({positionType:"individualShift",children:[{type:"elem",elem:a,shift:f},{type:"elem",elem:c,shift:h,wrapperClasses:["svg-align"]}]});return ue(["mrel","x-arrow"],[m],t)},mathmlBuilder(e,t){var n=Ho(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var a=so(rt(e.body,t));if(e.below){var s=so(rt(e.below,t));i=new me("munderover",[n,s,a])}else i=new me("mover",[n,a])}else if(e.below){var o=so(rt(e.below,t));i=new me("munder",[n,o])}else i=so(),i=new me("mover",[n,i]);return i}});function hg(e,t){var n=zt(e.body,t,!0);return ue([e.mclass],n,t)}function fg(e,t){var n,i=kn(e.body,t);return e.mclass==="minner"?n=new me("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(n=i[0],n.type="mi"):n=new me("mi",i):(e.isCharacterBox?(n=i[0],n.type="mo"):n=new me("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}we({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:i}=e,a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.slice(5),body:St(a),isCharacterBox:Nr(a)}},htmlBuilder:hg,mathmlBuilder:fg});var Wo=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"};we({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Wo(t[0]),body:St(t[1]),isCharacterBox:Nr(t[1])}}});we({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:i}=e,a=t[1],s=t[0],o;i!=="\\stackrel"?o=Wo(a):o="mrel";var c={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:St(a)},h={type:"supsub",mode:s.mode,base:c,sup:i==="\\underset"?null:s,sub:i==="\\underset"?s:null};return{type:"mclass",mode:n.mode,mclass:o,body:[h],isCharacterBox:Nr(h)}},htmlBuilder:hg,mathmlBuilder:fg});we({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Wo(t[0]),body:St(t[0])}},htmlBuilder(e,t){var n=zt(e.body,t,!0),i=ue([e.mclass],n,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var n=kn(e.body,t),i=new me("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var bS={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},kp=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),bp=e=>e.type==="textord"&&e.text==="@",SS=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function CS(e,t,n){var i=bS[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=n.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:i,mode:"math",family:"rel"},o=n.callFunction("\\Big",[s],[]),c=n.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[a,o,c]};return n.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var f={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[f],[])}default:return{type:"textord",text:" ",mode:"math"}}}function ES(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 he("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],a=[i],s=0;s<t.length;s++){for(var o=t[s],c=kp(),h=0;h<o.length;h++)if(!bp(o[h]))c.body.push(o[h]);else{i.push(c),h+=1;var f=Uo(o[h]).text,m=new Array(2);if(m[0]={type:"ordgroup",mode:"math",body:[]},m[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(f))if("<>AV".includes(f))for(var p=0;p<2;p++){for(var x=!0,k=h+1;k<o.length;k++){if(SS(o[k],f)){x=!1,h=k;break}if(bp(o[k]))throw new he("Missing a "+f+" character to complete a CD arrow.",o[k]);m[p].body.push(o[k])}if(x)throw new he("Missing a "+f+" character to complete a CD arrow.",o[h])}else throw new he('Expected one of "<>AV=|." after @',o[h]);var E=CS(f,m,e),N={type:"styling",body:[E],mode:"math",style:"display",resetFont:!0};i.push(N),c=kp()}s%2===0?i.push(c):i.shift(),i=[],a.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var z=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:z,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}we({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=Sl(Ze(e.label,n,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=ve(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var n=new me("mrow",[rt(e.label,t)]);return n=new me("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new me("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});we({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=Sl(Ze(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new me("mrow",[rt(e.fragment,t)])}});we({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=Ue(t[0],"ordgroup"),a=i.body,s="",o=0;o<a.length;o++){var c=Ue(a[o],"textord");s+=c.text}var h=parseInt(s),f;if(isNaN(h))throw new he("\\@char has non-numeric argument "+s);if(h<0||h>=1114111)throw new he("\\@char with invalid code point "+s);return h<=65535?f=String.fromCharCode(h):(h-=65536,f=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:n.mode,text:f}}});var dg=(e,t)=>{var n=zt(e.body,t.withColor(e.color),!1);return zr(n)},mg=(e,t)=>{var n=kn(e.body,t.withColor(e.color)),i=new me("mstyle",n);return i.setAttribute("mathcolor",e.color),i};we({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,i=Ue(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:i,body:St(a)}},htmlBuilder:dg,mathmlBuilder:mg});we({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:i}=e,a=Ue(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var s=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:a,body:s}},htmlBuilder:dg,mathmlBuilder:mg});we({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:i}=e,a=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,s=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:s,size:a&&Ue(a,"size").value}},htmlBuilder(e,t){var n=ue(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=ve(gt(e.size,t)))),n},mathmlBuilder(e,t){var n=new me("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",ve(gt(e.size,t)))),n}});var eh={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},pg=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new he("Expected a control sequence",e);return t},TS=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},gg=(e,t,n,i)=>{var a=e.gullet.macros.get(n.text);a==null&&(n.noexpand=!0,a={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,a,i)};we({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(eh[i.text])return(n==="\\global"||n==="\\\\globallong")&&(i.text=eh[i.text]),Ue(t.parseFunction(),"internal");throw new he("Invalid token after macro prefix",i)}});we({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(),a=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new he("Expected a control sequence",i);for(var s=0,o,c=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),c[s].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new he('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new he('Argument number "'+i.text+'" out of order');s++,c.push([])}else{if(i.text==="EOF")throw new he("Expected a macro definition");c[s].push(i.text)}var{tokens:h}=t.gullet.consumeArg();return o&&h.unshift(o),(n==="\\edef"||n==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(a,{tokens:h,numArgs:s,delimiters:c},n===eh[n]),{type:"internal",mode:t.mode}}});we({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=pg(t.gullet.popToken());t.gullet.consumeSpaces();var a=TS(t);return gg(t,i,a,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});we({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=pg(t.gullet.popToken()),a=t.gullet.popToken(),s=t.gullet.popToken();return gg(t,i,s,n==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var Sa=function(t,n,i){var a=ht.math[t]&&ht.math[t].replace,s=Uh(a||t,n,i);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return s},Kh=function(t,n,i,a){var s=i.havingBaseStyle(n),o=ue(a.concat(s.sizingClasses(i)),[t],i),c=s.sizeMultiplier/i.sizeMultiplier;return o.height*=c,o.depth*=c,o.maxFontSize=s.sizeMultiplier,o},vg=function(t,n,i){var a=n.havingBaseStyle(i),s=(1-n.sizeMultiplier/a.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=ve(s),t.height-=s,t.depth+=s},NS=function(t,n,i,a,s,o){var c=Xt(t,"Main-Regular",s,a),h=Kh(c,n,a,o);return vg(h,a,n),h},AS=function(t,n,i,a){return Xt(t,"Size"+n+"-Regular",i,a)},yg=function(t,n,i,a,s,o){var c=AS(t,n,s,a),h=Kh(ue(["delimsizing","size"+n],[c],a),He.TEXT,a,o);return i&&vg(h,a,He.TEXT),h},gc=function(t,n,i){var a;n==="Size1-Regular"?a="delim-size1":a="delim-size4";var s=ue(["delimsizinginner",a],[ue([],[Xt(t,n,i)])]);return{type:"elem",elem:s}},vc=function(t,n,i){var a=lr["Size4-Regular"][t.charCodeAt(0)]?lr["Size4-Regular"][t.charCodeAt(0)][4]:lr["Size1-Regular"][t.charCodeAt(0)][4],s=new ii("inner",Ob(t,Math.round(1e3*n))),o=new Er([s],{width:ve(a),height:ve(n),style:"width:"+ve(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),c=li([],[o],i);return c.height=n,c.style.height=ve(n),c.style.width=ve(a),{type:"elem",elem:c}},th=.008,oo={type:"kern",size:-1*th},zS=new Set(["|","\\lvert","\\rvert","\\vert"]),MS=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),xg=function(t,n,i,a,s,o){var c,h,f,m,p="",x=0;c=f=m=t,h=null;var k="Size1-Regular";t==="\\uparrow"?f=m="⏐":t==="\\Uparrow"?f=m="‖":t==="\\downarrow"?c=f="⏐":t==="\\Downarrow"?c=f="‖":t==="\\updownarrow"?(c="\\uparrow",f="⏐",m="\\downarrow"):t==="\\Updownarrow"?(c="\\Uparrow",f="‖",m="\\Downarrow"):zS.has(t)?(f="∣",p="vert",x=333):MS.has(t)?(f="∥",p="doublevert",x=556):t==="["||t==="\\lbrack"?(c="⎡",f="⎢",m="⎣",k="Size4-Regular",p="lbrack",x=667):t==="]"||t==="\\rbrack"?(c="⎤",f="⎥",m="⎦",k="Size4-Regular",p="rbrack",x=667):t==="\\lfloor"||t==="⌊"?(f=c="⎢",m="⎣",k="Size4-Regular",p="lfloor",x=667):t==="\\lceil"||t==="⌈"?(c="⎡",f=m="⎢",k="Size4-Regular",p="lceil",x=667):t==="\\rfloor"||t==="⌋"?(f=c="⎥",m="⎦",k="Size4-Regular",p="rfloor",x=667):t==="\\rceil"||t==="⌉"?(c="⎤",f=m="⎥",k="Size4-Regular",p="rceil",x=667):t==="("||t==="\\lparen"?(c="⎛",f="⎜",m="⎝",k="Size4-Regular",p="lparen",x=875):t===")"||t==="\\rparen"?(c="⎞",f="⎟",m="⎠",k="Size4-Regular",p="rparen",x=875):t==="\\{"||t==="\\lbrace"?(c="⎧",h="⎨",m="⎩",f="⎪",k="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(c="⎫",h="⎬",m="⎭",f="⎪",k="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(c="⎧",m="⎩",f="⎪",k="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(c="⎫",m="⎭",f="⎪",k="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(c="⎧",m="⎭",f="⎪",k="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(c="⎫",m="⎩",f="⎪",k="Size4-Regular");var E=Sa(c,k,s),N=E.height+E.depth,z=Sa(f,k,s),A=z.height+z.depth,R=Sa(m,k,s),_=R.height+R.depth,Y=0,V=1;if(h!==null){var O=Sa(h,k,s);Y=O.height+O.depth,V=2}var G=N+_+Y,te=Math.max(0,Math.ceil((n-G)/(V*A))),re=G+te*V*A,q=a.fontMetrics().axisHeight;i&&(q*=a.sizeMultiplier);var fe=re/2-q,ie=[];if(p.length>0){var Ee=re-N-_,ge=Math.round(re*1e3),le=Bb(p,Math.round(Ee*1e3)),je=new ii(p,le),Q=ve(x/1e3),ne=ve(ge/1e3),J=new Er([je],{width:Q,height:ne,viewBox:"0 0 "+x+" "+ge}),M=li([],[J],a);M.height=ge/1e3,M.style.width=Q,M.style.height=ne,ie.push({type:"elem",elem:M})}else{if(ie.push(gc(m,k,s)),ie.push(oo),h===null){var F=re-N-_+2*th;ie.push(vc(f,F,a))}else{var K=(re-N-_-Y)/2+2*th;ie.push(vc(f,K,a)),ie.push(oo),ie.push(gc(h,k,s)),ie.push(oo),ie.push(vc(f,K,a))}ie.push(oo),ie.push(gc(c,k,s))}var j=a.havingBaseStyle(He.TEXT),Z=Je({positionType:"bottom",positionData:fe,children:ie});return Kh(ue(["delimsizing","mult"],[Z],j),He.TEXT,a,o)},yc=80,xc=.08,wc=function(t,n,i,a,s){var o=Fb(t,a,i),c=new ii(t,o),h=new Er([c],{width:"400em",height:ve(n),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return li(["hide-tail"],[h],s)},jS=function(t,n){var i=n.havingBaseSizing(),a=Cg("\\surd",t*i.sizeMultiplier,Sg,i),s=i.sizeMultiplier,o=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),c,h,f,m,p;return a.type==="small"?(m=1e3+1e3*o+yc,t<1?s=1:t<1.4&&(s=.7),h=(1+o+xc)/s,f=(1+o)/s,c=wc("sqrtMain",h,m,o,n),c.style.minWidth="0.853em",p=.833/s):a.type==="large"?(m=(1e3+yc)*Na[a.size],f=(Na[a.size]+o)/s,h=(Na[a.size]+o+xc)/s,c=wc("sqrtSize"+a.size,h,m,o,n),c.style.minWidth="1.02em",p=1/s):(h=t+o+xc,f=t+o,m=Math.floor(1e3*t+o)+yc,c=wc("sqrtTall",h,m,o,n),c.style.minWidth="0.742em",p=1.056),c.height=f,c.style.height=ve(h),{span:c,advanceWidth:p,ruleWidth:(n.fontMetrics().sqrtRuleThickness+o)*s}},wg=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),IS=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),kg=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Na=[0,1.2,1.8,2.4,3],bg=function(t,n,i,a,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),wg.has(t)||kg.has(t))return yg(t,n,!1,i,a,s);if(IS.has(t))return xg(t,Na[n],!1,i,a,s);throw new he("Illegal delimiter: '"+t+"'")},RS=[{type:"small",style:He.SCRIPTSCRIPT},{type:"small",style:He.SCRIPT},{type:"small",style:He.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],LS=[{type:"small",style:He.SCRIPTSCRIPT},{type:"small",style:He.SCRIPT},{type:"small",style:He.TEXT},{type:"stack"}],Sg=[{type:"small",style:He.SCRIPTSCRIPT},{type:"small",style:He.SCRIPT},{type:"small",style:He.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],DS=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.")},Cg=function(t,n,i,a){for(var s=Math.min(2,3-a.style.size),o=s;o<i.length;o++){var c=i[o];if(c.type==="stack")break;var h=Sa(t,DS(c),"math"),f=h.height+h.depth;if(c.type==="small"){var m=a.havingBaseStyle(c.style);f*=m.sizeMultiplier}if(f>n)return c}return i[i.length-1]},nh=function(t,n,i,a,s,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var c;kg.has(t)?c=RS:wg.has(t)?c=Sg:c=LS;var h=Cg(t,n,c,a);return h.type==="small"?NS(t,h.style,i,a,s,o):h.type==="large"?yg(t,h.size,i,a,s,o):xg(t,n,i,a,s,o)},kc=function(t,n,i,a,s,o){var c=a.fontMetrics().axisHeight*a.sizeMultiplier,h=901,f=5/a.fontMetrics().ptPerEm,m=Math.max(n-c,i+c),p=Math.max(m/500*h,2*m-f);return nh(t,p,!0,a,s,o)},Sp={"\\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}},PS=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 Cp(e){return"isMiddle"in e}function Go(e,t){var n=Vo(e);if(n&&PS.has(n.text))return n;throw n?new he("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new he("Invalid delimiter type '"+e.type+"'",e)}we({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=Go(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Sp[e.funcName].size,mclass:Sp[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?ue([e.mclass]):bg(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Rn(e.delim,e.mode));var n=new me("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=ve(Na[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}});function Ep(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}we({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 he("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Go(t[0],e).text,color:n}}});we({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Go(t[0],e),i=e.parser;++i.leftrightDepth;var a=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var s=Ue(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:a,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{Ep(e);for(var n=zt(e.body,t,!0,["mopen","mclose"]),i=0,a=0,s=!1,o=0;o<n.length;o++){var c=n[o];Cp(c)?s=!0:(i=Math.max(n[o].height,i),a=Math.max(n[o].depth,a))}i*=t.sizeMultiplier,a*=t.sizeMultiplier;var h;if(e.left==="."?h=La(t,["mopen"]):h=kc(e.left,i,a,t,e.mode,["mopen"]),n.unshift(h),s)for(var f=1;f<n.length;f++){var m=n[f];if(Cp(m)){var p=m.isMiddle;n[f]=kc(p.delim,i,a,p.options,e.mode,[])}}var x;if(e.right===".")x=La(t,["mclose"]);else{var k=e.rightColor?t.withColor(e.rightColor):t;x=kc(e.right,i,a,k,e.mode,["mclose"])}return n.push(x),ue(["minner"],n,t)},mathmlBuilder:(e,t)=>{Ep(e);var n=kn(e.body,t);if(e.left!=="."){var i=new me("mo",[Rn(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if(e.right!=="."){var a=new me("mo",[Rn(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return Gh(n)}});we({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Go(t[0],e);if(!e.parser.leftrightDepth)throw new he("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim==="."?n=La(t,[]):(n=bg(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Rn("|","text"):Rn(e.delim,e.mode),i=new me("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var Yo=(e,t)=>{var n=Sl(Ze(e.body,t),t),i=e.label.slice(1),a=t.sizeMultiplier,s,o,c=Nr(e.body);if(i==="sout")s=ue(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/a,o=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var h=gt({number:.6,unit:"pt"},t),f=gt({number:.35,unit:"ex"},t),m=t.havingBaseSizing();a=a/m.sizeMultiplier;var p=n.height+n.depth+h+f;n.style.paddingLeft=ve(p/2+h);var x=Math.floor(1e3*p*a),k=Db(x),E=new Er([new ii("phase",k)],{width:"400em",height:ve(x/1e3),viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});s=li(["hide-tail"],[E],t),s.style.height=ve(p),o=n.depth+h+f}else{/cancel/.test(i)?c||n.classes.push("cancel-pad"):i==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var N,z,A=0;/box/.test(i)?(A=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),N=t.fontMetrics().fboxsep+(i==="colorbox"?0:A),z=N):i==="angl"?(A=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),N=4*A,z=Math.max(0,.25-n.depth)):(N=c?.2:0,z=N),s=vS(n,i,N,z,t),/fbox|boxed|fcolorbox/.test(i)?(s.style.borderStyle="solid",s.style.borderWidth=ve(A)):i==="angl"&&A!==.049&&(s.style.borderTopWidth=ve(A),s.style.borderRightWidth=ve(A)),o=n.depth+z,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var R;if(e.backgroundColor)R=Je({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:n,shift:0}]});else{var _=/cancel|phase/.test(i)?["svg-align"]:[];R=Je({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:_}]})}return/cancel/.test(i)&&(R.height=n.height,R.depth=n.depth),/cancel/.test(i)&&!c?ue(["mord","cancel-lap"],[R],t):ue(["mord"],[R],t)},Xo=(e,t)=>{var n,i=new me(e.label.includes("colorbox")?"mpadded":"menclose",[rt(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 a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+ve(a)+" solid "+e.borderColor)}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};we({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,n){var{parser:i,funcName:a}=e,s=Ue(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:i.mode,label:a,backgroundColor:s,body:o}},htmlBuilder:Yo,mathmlBuilder:Xo});we({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,n){var{parser:i,funcName:a}=e,s=Ue(t[0],"color-token").color,o=Ue(t[1],"color-token").color,c=t[2];return{type:"enclose",mode:i.mode,label:a,backgroundColor:o,borderColor:s,body:c}},htmlBuilder:Yo,mathmlBuilder:Xo});we({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]}}});we({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e,a=t[0];return{type:"enclose",mode:n.mode,label:i,body:a}},htmlBuilder:Yo,mathmlBuilder:Xo});we({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 a=t[0];return{type:"enclose",mode:n.mode,label:i,body:a}},htmlBuilder:Yo,mathmlBuilder:Xo});we({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 Eg={};function or(e){for(var{type:t,names:n,props:i,handler:a,htmlBuilder:s,mathmlBuilder:o}=e,c={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},h=0;h<n.length;++h)Eg[n[h]]=c;s&&(To[t]=s),o&&(No[t]=o)}var Tg={};function T(e,t){Tg[e]=t}class sn{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 sn(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class vn{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 vn(n,sn.range(this,t))}}function Tp(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 Ko=e=>{var t=e.parser.settings;if(!t.displayMode)throw new he("{"+e.envName+"} can be used only in display mode.")},FS=new Set(["gather","gather*"]);function Qh(e){if(!e.includes("ed"))return!e.includes("*")}function oi(e,t,n){var{hskipBeforeAndAfter:i,addJot:a,cols:s,arraystretch:o,colSeparationType:c,autoTag:h,singleRow:f,emptySingleRow:m,maxNumCols:p,leqno:x}=t;if(e.gullet.beginGroup(),f||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var k=e.gullet.expandMacroAsText("\\arraystretch");if(k==null)o=1;else if(o=parseFloat(k),!o||o<0)throw new he("Invalid \\arraystretch: "+k)}e.gullet.beginGroup();var E=[],N=[E],z=[],A=[],R=h!=null?[]:void 0;function _(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function Y(){R&&(e.gullet.macros.get("\\df@tag")?(R.push(e.subparse([new vn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):R.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(_(),A.push(Tp(e));;){var V=e.parseExpression(!1,f?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var O={type:"ordgroup",mode:e.mode,body:V};n&&(O={type:"styling",mode:e.mode,style:n,resetFont:!0,body:[O]}),E.push(O);var G=e.fetch().text;if(G==="&"){if(p&&E.length===p){if(f||c)throw new he("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(G==="\\end"){Y(),E.length===1&&O.type==="styling"&&O.body.length===1&&O.body[0].type==="ordgroup"&&O.body[0].body.length===0&&(N.length>1||!m)&&N.pop(),A.length<N.length+1&&A.push([]);break}else if(G==="\\\\"){e.consume();var te=void 0;e.gullet.future().text!==" "&&(te=e.parseSizeGroup(!0)),z.push(te?te.value:null),Y(),A.push(Tp(e)),E=[],N.push(E),_()}else throw new he("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:o,body:N,cols:s,rowGaps:z,hskipBeforeAndAfter:i,hLinesBeforeRow:A,colSeparationType:c,tags:R,leqno:x}}function Jh(e){return e.slice(0,1)==="d"?"display":"text"}var ur=function(t,n){var i,a,s=t.body.length,o=t.hLinesBeforeRow,c=0,h=new Array(s),f=[],m=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),p=1/n.fontMetrics().ptPerEm,x=5*p;if(t.colSeparationType&&t.colSeparationType==="small"){var k=n.havingStyle(He.SCRIPT).sizeMultiplier;x=.2778*(k/n.sizeMultiplier)}var E=t.colSeparationType==="CD"?gt({number:3,unit:"ex"},n):12*p,N=3*p,z=t.arraystretch*E,A=.7*z,R=.3*z,_=0;function Y(Ie){for(var qe=0;qe<Ie.length;++qe)qe>0&&(_+=.25),f.push({pos:_,isDashed:Ie[qe]})}for(Y(o[0]),i=0;i<t.body.length;++i){var V=t.body[i],O=A,G=R;c<V.length&&(c=V.length);var te={cells:new Array(V.length),height:0,depth:0,pos:0};for(a=0;a<V.length;++a){var re=Ze(V[a],n);G<re.depth&&(G=re.depth),O<re.height&&(O=re.height),te.cells[a]=re}var q=t.rowGaps[i],fe=0;q&&(fe=gt(q,n),fe>0&&(fe+=R,G<fe&&(G=fe),fe=0)),t.addJot&&i<t.body.length-1&&(G+=N),te.height=O,te.depth=G,_+=O,te.pos=_,_+=G+fe,h[i]=te,Y(o[i+1])}var ie=_/2+n.fontMetrics().axisHeight,Ee=t.cols||[],ge=[],le,je,Q=[];if(t.tags&&t.tags.some(Ie=>Ie))for(i=0;i<s;++i){var ne=h[i],J=ne.pos-ie,M=t.tags[i],F=void 0;M===!0?F=ue(["eqn-num"],[],n):M===!1?F=ue([],[],n):F=ue([],zt(M,n,!0),n),F.depth=ne.depth,F.height=ne.height,Q.push({type:"elem",elem:F,shift:J})}for(a=0,je=0;a<c||je<Ee.length;++a,++je){for(var K,j=Ee[je],Z=!0;((xe=j)==null?void 0:xe.type)==="separator";){var xe;if(Z||(le=ue(["arraycolsep"],[]),le.style.width=ve(n.fontMetrics().doubleRuleSep),ge.push(le)),j.separator==="|"||j.separator===":"){var ke=j.separator==="|"?"solid":"dashed",be=ue(["vertical-separator"],[],n);be.style.height=ve(_),be.style.borderRightWidth=ve(m),be.style.borderRightStyle=ke,be.style.margin="0 "+ve(-m/2);var Pe=_-ie;Pe&&(be.style.verticalAlign=ve(-Pe)),ge.push(be)}else throw new he("Invalid separator type: "+j.separator);je++,j=Ee[je],Z=!1}if(!(a>=c)){var _e=void 0;if(a>0||t.hskipBeforeAndAfter){var it,bn;_e=(it=(bn=j)==null?void 0:bn.pregap)!=null?it:x,_e!==0&&(le=ue(["arraycolsep"],[]),le.style.width=ve(_e),ge.push(le))}var hi=[];for(i=0;i<s;++i){var Ln=h[i],Xn=Ln.cells[a];if(Xn){var fi=Ln.pos-ie;Xn.depth=Ln.depth,Xn.height=Ln.height,hi.push({type:"elem",elem:Xn,shift:fi})}}var di=Je({positionType:"individualShift",children:hi}),Mr=ue(["col-align-"+(((K=j)==null?void 0:K.align)||"c")],[di]);if(ge.push(Mr),a<c-1||t.hskipBeforeAndAfter){var mi,hr;_e=(mi=(hr=j)==null?void 0:hr.postgap)!=null?mi:x,_e!==0&&(le=ue(["arraycolsep"],[]),le.style.width=ve(_e),ge.push(le))}}}var un=ue(["mtable"],ge);if(f.length>0){for(var Kn=bl("hline",n,m),pi=bl("hdashline",n,m),jr=[{type:"elem",elem:un,shift:0}];f.length>0;){var gi=f.pop(),vi=gi.pos-ie;gi.isDashed?jr.push({type:"elem",elem:pi,shift:vi}):jr.push({type:"elem",elem:Kn,shift:vi})}un=Je({positionType:"individualShift",children:jr})}if(Q.length===0)return ue(["mord"],[un],n);var ee=Je({positionType:"individualShift",children:Q}),ye=ue(["tag"],[ee],n);return zr([un,ye])},OS={c:"center ",l:"left ",r:"right "},cr=function(t,n){for(var i=[],a=new me("mtd",[],["mtr-glue"]),s=new me("mtd",[],["mml-eqn-num"]),o=0;o<t.body.length;o++){for(var c=t.body[o],h=[],f=0;f<c.length;f++)h.push(new me("mtd",[rt(c[f],n)]));t.tags&&t.tags[o]&&(h.unshift(a),h.push(a),t.leqno?h.unshift(s):h.push(s)),i.push(new me("mtr",h))}var m=new me("mtable",i),p=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);m.setAttribute("rowspacing",ve(p));var x="",k="";if(t.cols&&t.cols.length>0){var E=t.cols,N="",z=!1,A=0,R=E.length;E[0].type==="separator"&&(x+="top ",A=1),E[E.length-1].type==="separator"&&(x+="bottom ",R-=1);for(var _=A;_<R;_++){var Y=E[_];Y.type==="align"?(k+=OS[Y.align],z&&(N+="none "),z=!0):Y.type==="separator"&&z&&(N+=Y.separator==="|"?"solid ":"dashed ",z=!1)}m.setAttribute("columnalign",k.trim()),/[sd]/.test(N)&&m.setAttribute("columnlines",N.trim())}if(t.colSeparationType==="align"){for(var V=t.cols||[],O="",G=1;G<V.length;G++)O+=G%2?"0em ":"1em ";m.setAttribute("columnspacing",O.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?m.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?m.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?m.setAttribute("columnspacing","0.5em"):m.setAttribute("columnspacing","1em");var te="",re=t.hLinesBeforeRow;x+=re[0].length>0?"left ":"",x+=re[re.length-1].length>0?"right ":"";for(var q=1;q<re.length-1;q++)te+=re[q].length===0?"none ":re[q][0]?"dashed ":"solid ";return/[sd]/.test(te)&&m.setAttribute("rowlines",te.trim()),x!==""&&(m=new me("menclose",[m]),m.setAttribute("notation",x.trim())),t.arraystretch&&t.arraystretch<1&&(m=new me("mstyle",[m]),m.setAttribute("scriptlevel","1")),m},Ng=function(t,n){t.envName.includes("ed")||Ko(t);var i=[],a=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",o=oi(t.parser,{cols:i,addJot:!0,autoTag:s?void 0:Qh(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),c=0,h=0,f={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var m="",p=0;p<n[0].body.length;p++){var x=Ue(n[0].body[p],"textord");m+=x.text}c=Number(m),h=c*2}var k=!h;o.body.forEach(function(A){for(var R=1;R<A.length;R+=2){var _=Ue(A[R],"styling"),Y=Ue(_.body[0],"ordgroup");Y.body.unshift(f)}if(k)h<A.length&&(h=A.length);else{var V=A.length/2;if(c<V)throw new he("Too many math in a row: "+("expected "+c+", but got "+V),A[0])}});for(var E=0;E<h;++E){var N="r",z=0;E%2===1?N="l":E>0&&k&&(z=1),i[E]={type:"align",align:N,pregap:z,postgap:0}}return o.colSeparationType=k?"align":"alignat",o};or({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Vo(t[0]),i=n?[t[0]]:Ue(t[0],"ordgroup").body,a=i.map(function(o){var c=Uo(o),h=c.text;if("lcr".includes(h))return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new he("Unknown column alignment: "+h,o)}),s={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return oi(e.parser,s,Jh(e.envName))},htmlBuilder:ur,mathmlBuilder:cr});or({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 a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),n=a.fetch().text,!"lcr".includes(n))throw new he("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),i.cols=[{type:"align",align:n}]}}var s=oi(e.parser,i,Jh(e.envName)),o=Math.max(0,...s.body.map(c=>c.length));return s.cols=new Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:ur,mathmlBuilder:cr});or({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=oi(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:ur,mathmlBuilder:cr});or({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Vo(t[0]),i=n?[t[0]]:Ue(t[0],"ordgroup").body,a=i.map(function(c){var h=Uo(c),f=h.text;if("lc".includes(f))return{type:"align",align:f};throw new he("Unknown column alignment: "+f,c)});if(a.length>1)throw new he("{subarray} can contain only one column");var s={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},o=oi(e.parser,s,"script");if(o.body.length>0&&o.body[0].length>1)throw new he("{subarray} can contain only one column");return o},htmlBuilder:ur,mathmlBuilder:cr});or({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=oi(e.parser,t,Jh(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:ur,mathmlBuilder:cr});or({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Ng,htmlBuilder:ur,mathmlBuilder:cr});or({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){FS.has(e.envName)&&Ko(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Qh(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return oi(e.parser,t,"display")},htmlBuilder:ur,mathmlBuilder:cr});or({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Ng,htmlBuilder:ur,mathmlBuilder:cr});or({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Ko(e);var t={autoTag:Qh(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return oi(e.parser,t,"display")},htmlBuilder:ur,mathmlBuilder:cr});or({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Ko(e),ES(e.parser)},htmlBuilder:ur,mathmlBuilder:cr});T("\\nonumber","\\gdef\\@eqnsw{0}");T("\\notag","\\nonumber");we({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new he(e.funcName+" valid only within array environment")}});var Np=Eg;we({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:i}=e,a=t[0];if(a.type!=="ordgroup")throw new he("Invalid environment name",a);for(var s="",o=0;o<a.body.length;++o)s+=Ue(a.body[o],"textord").text;if(i==="\\begin"){if(!Np.hasOwnProperty(s))throw new he("No such environment: "+s,a);var c=Np[s],{args:h,optArgs:f}=n.parseArguments("\\begin{"+s+"}",c),m={mode:n.mode,envName:s,parser:n},p=c.handler(m,h,f);n.expect("\\end",!1);var x=n.nextToken,k=Ue(n.parseFunction(),"environment");if(k.name!==s)throw new he("Mismatch: \\begin{"+s+"} matched by \\end{"+k.name+"}",x);return p}return{type:"environment",mode:n.mode,name:s,nameGroup:a}}});var Ag=(e,t)=>{var n=e.font,i=t.withFont(n);return Ze(e.body,i)},zg=(e,t)=>{var n=e.font,i=t.withFont(n);return rt(e.body,i)},Ap={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};we({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,a=Ao(t[0]),s=i;return s in Ap&&(s=Ap[s]),{type:"font",mode:n.mode,font:s.slice(1),body:a}},htmlBuilder:Ag,mathmlBuilder:zg});we({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:Wo(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:Nr(i)}}});we({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,breakOnTokenText:a}=e,{mode:s}=n,o=n.parseExpression(!0,a);return{type:"font",mode:s,font:"math"+i.slice(1),body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:Ag,mathmlBuilder:zg});var BS=(e,t)=>{var n=t.style,i=n.fracNum(),a=n.fracDen(),s;s=t.havingStyle(i);var o=Ze(e.numer,s,t);if(e.continued){var c=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;o.height=o.height<c?c:o.height,o.depth=o.depth<h?h:o.depth}s=t.havingStyle(a);var f=Ze(e.denom,s,t),m,p,x;e.hasBarLine?(e.barSize?(p=gt(e.barSize,t),m=bl("frac-line",t,p)):m=bl("frac-line",t),p=m.height,x=m.height):(m=null,p=0,x=t.fontMetrics().defaultRuleThickness);var k,E,N;n.size===He.DISPLAY.size?(k=t.fontMetrics().num1,p>0?E=3*x:E=7*x,N=t.fontMetrics().denom1):(p>0?(k=t.fontMetrics().num2,E=x):(k=t.fontMetrics().num3,E=3*x),N=t.fontMetrics().denom2);var z;if(m){var R=t.fontMetrics().axisHeight;k-o.depth-(R+.5*p)<E&&(k+=E-(k-o.depth-(R+.5*p))),R-.5*p-(f.height-N)<E&&(N+=E-(R-.5*p-(f.height-N)));var _=-(R-.5*p);z=Je({positionType:"individualShift",children:[{type:"elem",elem:f,shift:N},{type:"elem",elem:m,shift:_},{type:"elem",elem:o,shift:-k}]})}else{var A=k-o.depth-(f.height-N);A<E&&(k+=.5*(E-A),N+=.5*(E-A)),z=Je({positionType:"individualShift",children:[{type:"elem",elem:f,shift:N},{type:"elem",elem:o,shift:-k}]})}s=t.havingStyle(n),z.height*=s.sizeMultiplier/t.sizeMultiplier,z.depth*=s.sizeMultiplier/t.sizeMultiplier;var Y;n.size===He.DISPLAY.size?Y=t.fontMetrics().delim1:n.size===He.SCRIPTSCRIPT.size?Y=t.havingStyle(He.SCRIPT).fontMetrics().delim2:Y=t.fontMetrics().delim2;var V,O;return e.leftDelim==null?V=La(t,["mopen"]):V=nh(e.leftDelim,Y,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?O=ue([]):e.rightDelim==null?O=La(t,["mclose"]):O=nh(e.rightDelim,Y,!0,t.havingStyle(n),e.mode,["mclose"]),ue(["mord"].concat(s.sizingClasses(t)),[V,ue(["mfrac"],[z]),O],t)},_S=(e,t)=>{var n=new me("mfrac",[rt(e.numer,t),rt(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var i=gt(e.barSize,t);n.setAttribute("linethickness",ve(i))}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var s=new me("mo",[new Ct(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),e.rightDelim!=null){var o=new me("mo",[new Ct(e.rightDelim.replace("\\",""))]);o.setAttribute("fence","true"),a.push(o)}return Gh(a)}return n},Mg=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};we({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,a=t[0],s=t[1],o,c=null,h=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,c="(",h=")";break;case"\\\\bracefrac":o=!1,c="\\{",h="\\}";break;case"\\\\brackfrac":o=!1,c="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}var f=i==="\\cfrac",m=null;return f||i.startsWith("\\d")?m="display":i.startsWith("\\t")&&(m="text"),Mg({type:"genfrac",mode:n.mode,numer:a,denom:s,continued:f,hasBarLine:o,leftDelim:c,rightDelim:h,barSize:null},m)},htmlBuilder:BS,mathmlBuilder:_S});we({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:i}=e,a;switch(n){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:i}}});var zp=["display","text","script","scriptscript"],Mp=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};we({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],a=t[5],s=Ao(t[0]),o=s.type==="atom"&&s.family==="open"?Mp(s.text):null,c=Ao(t[1]),h=c.type==="atom"&&c.family==="close"?Mp(c.text):null,f=Ue(t[2],"size"),m,p=null;f.isBlank?m=!0:(p=f.value,m=p.number>0);var x=null,k=t[3];if(k.type==="ordgroup"){if(k.body.length>0){var E=Ue(k.body[0],"textord");x=zp[Number(E.text)]}}else k=Ue(k,"textord"),x=zp[Number(k.text)];return Mg({type:"genfrac",mode:n.mode,numer:i,denom:a,continued:!1,hasBarLine:m,barSize:p,leftDelim:o,rightDelim:h},x)}});we({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:i,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Ue(t[0],"size").value,token:a}}});we({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:i}=e,a=t[0],s=Ue(t[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var o=t[2],c=s.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:o,continued:!1,hasBarLine:c,barSize:s,leftDelim:null,rightDelim:null}}});var jg=(e,t)=>{var n=t.style,i,a;e.type==="supsub"?(i=e.sup?Ze(e.sup,t.havingStyle(n.sup()),t):Ze(e.sub,t.havingStyle(n.sub()),t),a=Ue(e.base,"horizBrace")):a=Ue(e,"horizBrace");var s=Ze(a.base,t.havingBaseStyle(He.DISPLAY)),o=qo(a,t),c;if(a.isOver?c=Je({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o,wrapperClasses:["svg-align"]}]}):c=Je({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),i){var h=ue(["minner",a.isOver?"mover":"munder"],[c],t);a.isOver?c=Je({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:i}]}):c=Je({positionType:"bottom",positionData:h.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:h}]})}return ue(["minner",a.isOver?"mover":"munder"],[c],t)},$S=(e,t)=>{var n=Ho(e.label);return new me(e.isOver?"mover":"munder",[rt(e.base,t),n])};we({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:jg,mathmlBuilder:$S});we({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[1],a=Ue(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:St(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=zt(e.body,t,!1);return eS(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=ai(e.body,t);return n instanceof me||(n=new me("mrow",[n])),n.setAttribute("href",e.href),n}});we({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=Ue(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var a=[],s=0;s<i.length;s++){var o=i[s];o==="~"&&(o="\\textasciitilde"),a.push({type:"textord",mode:"text",text:o})}var c={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:i,body:St(c)}}});we({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:St(t[0])}},htmlBuilder(e,t){var n=zt(e.body,t.withFont(""),!1);return zr(n)},mathmlBuilder(e,t){return new me("mrow",kn(e.body,t.withFont("")))}});we({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,token:a}=e,s=Ue(t[0],"raw").string,o=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c,h={};switch(i){case"\\htmlClass":h.class=s,c={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s,c={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s,c={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var f=s.split(","),m=0;m<f.length;m++){var p=f[m],x=p.indexOf("=");if(x<0)throw new he("\\htmlData key/value '"+p+"' missing equals sign");var k=p.slice(0,x),E=p.slice(x+1);h["data-"+k.trim()]=E}c={command:"\\htmlData",attributes:h};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(c)?{type:"html",mode:n.mode,attributes:h,body:St(o)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=zt(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var a=ue(i,n,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&a.setAttribute(s,e.attributes[s]);return a},mathmlBuilder:(e,t)=>ai(e.body,t)});we({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:St(t[0]),mathml:St(t[1])}},htmlBuilder:(e,t)=>{var n=zt(e.html,t,!1);return zr(n)},mathmlBuilder:(e,t)=>ai(e.mathml,t)});var bc=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 he("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(n[1]+n[2]),unit:n[3]};if(!G2(i))throw new he("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};we({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:i}=e,a={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},c="";if(n[0])for(var h=Ue(n[0],"raw").string,f=h.split(","),m=0;m<f.length;m++){var p=f[m].split("=");if(p.length===2){var x=p[1].trim();switch(p[0].trim()){case"alt":c=x;break;case"width":a=bc(x);break;case"height":s=bc(x);break;case"totalheight":o=bc(x);break;default:throw new he("Invalid key: '"+p[0]+"' in \\includegraphics.")}}}var k=Ue(t[0],"url").url;return c===""&&(c=k,c=c.replace(/^.*[\\/]/,""),c=c.substring(0,c.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:k})?{type:"includegraphics",mode:i.mode,alt:c,width:a,height:s,totalheight:o,src:k}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=gt(e.height,t),i=0;e.totalheight.number>0&&(i=gt(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=gt(e.width,t));var s={height:ve(n+i)};a>0&&(s.width=ve(a)),i>0&&(s.verticalAlign=ve(-i));var o=new qb(e.src,e.alt,s);return o.height=n,o.depth=i,o},mathmlBuilder:(e,t)=>{var n=new me("mglyph",[]);n.setAttribute("alt",e.alt);var i=gt(e.height,t),a=0;if(e.totalheight.number>0&&(a=gt(e.totalheight,t)-i,n.setAttribute("valign",ve(-a))),n.setAttribute("height",ve(i+a)),e.width.number>0){var s=gt(e.width,t);n.setAttribute("width",ve(s))}return n.setAttribute("src",e.src),n}});we({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,a=Ue(t[0],"size");if(n.settings.strict){var s=i[1]==="m",o=a.value.unit==="mu";s?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+a.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:a.value}},htmlBuilder(e,t){return eg(e.dimension,t)},mathmlBuilder(e,t){var n=gt(e.dimension,t);return new ag(n)}});we({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,a=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:a}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=ue([],[Ze(e.body,t)]),n=ue(["inner"],[n],t)):n=ue(["inner"],[Ze(e.body,t)]);var i=ue(["fix"],[]),a=ue([e.alignment],[n,i],t),s=ue(["strut"]);return s.style.height=ve(a.height+a.depth),a.depth&&(s.style.verticalAlign=ve(-a.depth)),a.children.unshift(s),a=ue(["thinbox"],[a],t),ue(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new me("mpadded",[rt(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}});we({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:i}=e,a=i.mode;i.switchMode("math");var s=n==="\\("?"\\)":"$",o=i.parseExpression(!1,s);return i.expect(s),i.switchMode(a),{type:"styling",mode:i.mode,style:"text",resetFont:!0,body:o}}});we({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new he("Mismatched "+e.funcName)}});var jp=(e,t)=>{switch(t.style.size){case He.DISPLAY.size:return e.display;case He.TEXT.size:return e.text;case He.SCRIPT.size:return e.script;case He.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};we({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:St(t[0]),text:St(t[1]),script:St(t[2]),scriptscript:St(t[3])}},htmlBuilder:(e,t)=>{var n=jp(e,t),i=zt(n,t,!1);return zr(i)},mathmlBuilder:(e,t)=>{var n=jp(e,t);return ai(n,t)}});var Ig=(e,t,n,i,a,s,o)=>{e=ue([],[e]);var c=n&&Nr(n),h,f;if(t){var m=Ze(t,i.havingStyle(a.sup()),i);f={elem:m,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-m.depth)}}if(n){var p=Ze(n,i.havingStyle(a.sub()),i);h={elem:p,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-p.height)}}var x;if(f&&h){var k=i.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+o;x=Je({positionType:"bottom",positionData:k,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:ve(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:f.kern},{type:"elem",elem:f.elem,marginLeft:ve(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else if(h){var E=e.height-o;x=Je({positionType:"top",positionData:E,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:ve(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(f){var N=e.depth+o;x=Je({positionType:"bottom",positionData:N,children:[{type:"elem",elem:e},{type:"kern",size:f.kern},{type:"elem",elem:f.elem,marginLeft:ve(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else return e;var z=[x];if(h&&s!==0&&!c){var A=ue(["mspace"],[],i);A.style.marginRight=ve(s),z.unshift(A)}return ue(["mop","op-limits"],z,i)},Rg=new Set(["\\smallint"]),Il=(e,t)=>{var n,i,a=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=Ue(e.base,"op"),a=!0):s=Ue(e,"op");var o=t.style,c=!1;o.size===He.DISPLAY.size&&s.symbol&&!Rg.has(s.name)&&(c=!0);var h,f;if(s.symbol){var m=c?"Size2-Regular":"Size1-Regular",p="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(p=s.name.slice(1),s.name=p==="oiint"?"\\iint":"\\iiint"),h=Xt(s.name,m,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),f=h.italic,p.length>0){var x=ng(p+"Size"+(c?"2":"1"),t);h=Je({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:x,shift:c?.08:0}]}),s.name="\\"+p,h.classes.unshift("mop"),h.italic=f}}else if(s.body){var k=zt(s.body,t,!0);k.length===1&&k[0]instanceof yn?(h=k[0],h.classes[0]="mop"):h=ue(["mop"],k,t)}else{for(var E=[],N=1;N<s.name.length;N++)E.push(Vh(s.name[N],s.mode,t));h=ue(["mop"],E,t)}var z=0,A=0;if((h instanceof yn||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var R;z=(h.height-h.depth)/2-t.fontMetrics().axisHeight,A=(R=h.italic)!=null?R:0}return a?Ig(h,n,i,t,o,A,z):(z&&(h.style.position="relative",h.style.top=ve(z)),h)},Ha=(e,t)=>{var n;if(e.symbol)n=new me("mo",[Rn(e.name,e.mode)]),Rg.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new me("mo",kn(e.body,t));else{n=new me("mi",[new Ct(e.name.slice(1))]);var i=new me("mo",[Rn("","text")]);e.parentIsSupSub?n=new me("mrow",[n,i]):n=lg([n,i])}return n},HS={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};we({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,a=i;return a.length===1&&(a=HS[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Il,mathmlBuilder:Ha});we({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:St(i)}},htmlBuilder:Il,mathmlBuilder:Ha});var qS={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};we({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:Il,mathmlBuilder:Ha});we({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:Il,mathmlBuilder:Ha});we({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=qS[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Il,mathmlBuilder:Ha});var Lg=(e,t)=>{var n,i,a=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=Ue(e.base,"operatorname"),a=!0):s=Ue(e,"operatorname");var o;if(s.body.length>0){for(var c=s.body.map(p=>{var x="text"in p?p.text:void 0;return typeof x=="string"?{type:"textord",mode:p.mode,text:x}:p}),h=zt(c,t.withFont("mathrm"),!0),f=0;f<h.length;f++){var m=h[f];m instanceof yn&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=ue(["mop"],h,t)}else o=ue(["mop"],[],t);return a?Ig(o,n,i,t,t.style,0,0):o},US=(e,t)=>{for(var n=kn(e.body,t.withFont("mathrm")),i=!0,a=0;a<n.length;a++){var s=n[a];if(!(s instanceof ag))if(s instanceof me)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var o=s.children[0];s.children.length===1&&o instanceof Ct?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var c=n.map(m=>m.toText()).join("");n=[new Ct(c)]}var h=new me("mi",n);h.setAttribute("mathvariant","normal");var f=new me("mo",[Rn("","text")]);return e.parentIsSupSub?new me("mrow",[h,f]):lg([h,f])};we({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,a=t[0];return{type:"operatorname",mode:n.mode,body:St(a),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Lg,mathmlBuilder:US});T("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Hi({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?zr(zt(e.body,t,!1)):ue(["mord"],zt(e.body,t,!0),t)},mathmlBuilder(e,t){return ai(e.body,t,!0)}});we({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=Ze(e.body,t.havingCrampedStyle()),i=bl("overline-line",t),a=t.fontMetrics().defaultRuleThickness,s=Je({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:i},{type:"kern",size:a}]});return ue(["mord","overline"],[s],t)},mathmlBuilder(e,t){var n=new me("mo",[new Ct("‾")]);n.setAttribute("stretchy","true");var i=new me("mover",[rt(e.body,t),n]);return i.setAttribute("accent","true"),i}});we({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:St(i)}},htmlBuilder:(e,t)=>{var n=zt(e.body,t.withPhantom(),!1);return zr(n)},mathmlBuilder:(e,t)=>{var n=kn(e.body,t);return new me("mphantom",n)}});T("\\hphantom","\\smash{\\phantom{#1}}");we({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=ue(["inner"],[Ze(e.body,t.withPhantom())]),i=ue(["fix"],[]);return ue(["mord","rlap"],[n,i],t)},mathmlBuilder:(e,t)=>{var n=kn(St(e.body),t),i=new me("mphantom",n),a=new me("mpadded",[i]);return a.setAttribute("width","0px"),a}});we({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,i=Ue(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:a}},htmlBuilder(e,t){var n=Ze(e.body,t),i=gt(e.dy,t);return Je({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new me("mpadded",[rt(e.body,t)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}});we({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});we({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,a=n[0],s=Ue(t[0],"size"),o=Ue(t[1],"size");return{type:"rule",mode:i.mode,shift:a&&Ue(a,"size").value,width:s.value,height:o.value}},htmlBuilder(e,t){var n=ue(["mord","rule"],[],t),i=gt(e.width,t),a=gt(e.height,t),s=e.shift?gt(e.shift,t):0;return n.style.borderRightWidth=ve(i),n.style.borderTopWidth=ve(a),n.style.bottom=ve(s),n.width=i,n.height=a+s,n.depth=-s,n.maxFontSize=a*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=gt(e.width,t),i=gt(e.height,t),a=e.shift?gt(e.shift,t):0,s=t.color&&t.getColor()||"black",o=new me("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",ve(n)),o.setAttribute("height",ve(i));var c=new me("mpadded",[o]);return a>=0?c.setAttribute("height",ve(a)):(c.setAttribute("height",ve(a)),c.setAttribute("depth",ve(-a))),c.setAttribute("voffset",ve(a)),c}});function Dg(e,t,n){for(var i=zt(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,s=0;s<i.length;s++){var o=i[s].classes.indexOf("sizing");o<0?Array.prototype.push.apply(i[s].classes,t.sizingClasses(n)):i[s].classes[o+1]==="reset-size"+t.size&&(i[s].classes[o+1]="reset-size"+n.size),i[s].height*=a,i[s].depth*=a}return zr(i)}var Ip=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],VS=(e,t)=>{var n=t.havingSize(e.size);return Dg(e.body,n,t)};we({type:"sizing",names:Ip,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:i,parser:a}=e,s=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:Ip.indexOf(i)+1,body:s}},htmlBuilder:VS,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),i=kn(e.body,n),a=new me("mstyle",i);return a.setAttribute("mathsize",ve(n.sizeMultiplier)),a}});we({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:i}=e,a=!1,s=!1,o=n[0]&&Ue(n[0],"ordgroup");if(o)for(var c,h=0;h<o.body.length;++h){var f=o.body[h];if(c=Uo(f).text,c==="t")a=!0;else if(c==="b")s=!0;else{a=!1,s=!1;break}}else a=!0,s=!0;var m=t[0];return{type:"smash",mode:i.mode,body:m,smashHeight:a,smashDepth:s}},htmlBuilder:(e,t)=>{var n=ue([],[Ze(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 ue(["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 a=Je({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return ue(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var n=new me("mpadded",[rt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});we({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i}=e,a=n[0],s=t[0];return{type:"sqrt",mode:i.mode,body:s,index:a}},htmlBuilder(e,t){var n=Ze(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Sl(n,t);var i=t.fontMetrics(),a=i.defaultRuleThickness,s=a;t.style.id<He.TEXT.id&&(s=t.fontMetrics().xHeight);var o=a+s/4,c=n.height+n.depth+o+a,{span:h,ruleWidth:f,advanceWidth:m}=jS(c,t),p=h.height-f;p>n.height+n.depth+o&&(o=(o+p-n.height-n.depth)/2);var x=h.height-n.height-o-f;n.style.paddingLeft=ve(m);var k=Je({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+x)},{type:"elem",elem:h},{type:"kern",size:f}]});if(e.index){var E=t.havingStyle(He.SCRIPTSCRIPT),N=Ze(e.index,E,t),z=.6*(k.height-k.depth),A=Je({positionType:"shift",positionData:-z,children:[{type:"elem",elem:N}]}),R=ue(["root"],[A]);return ue(["mord","sqrt"],[R,k],t)}else return ue(["mord","sqrt"],[k],t)},mathmlBuilder(e,t){var{body:n,index:i}=e;return i?new me("mroot",[rt(n,t),rt(i,t)]):new me("msqrt",[rt(n,t)])}});var rh={display:He.DISPLAY,text:He.TEXT,script:He.SCRIPT,scriptscript:He.SCRIPTSCRIPT};function WS(e){return e in rh}we({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:i,parser:a}=e,s=a.parseExpression(!0,n),o=i.slice(1,i.length-5);if(!WS(o))throw new Error("Unknown style: "+o);return{type:"styling",mode:a.mode,style:o,body:s}},htmlBuilder(e,t){var n=rh[e.style],i=t.havingStyle(n);return e.resetFont&&(i=i.withFont("")),Dg(e.body,i,t)},mathmlBuilder(e,t){var n=rh[e.style],i=t.havingStyle(n);e.resetFont&&(i=i.withFont(""));var a=kn(e.body,i),s=new me("mstyle",a),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},c=o[e.style];return s.setAttribute("scriptlevel",c[0]),s.setAttribute("displaystyle",c[1]),s}});var GS=function(t,n){var i=t.base;if(i)if(i.type==="op"){var a=i.limits&&(n.style.size===He.DISPLAY.size||i.alwaysHandleSupSub);return a?Il:null}else if(i.type==="operatorname"){var s=i.alwaysHandleSupSub&&(n.style.size===He.DISPLAY.size||i.limits);return s?Lg:null}else{if(i.type==="accent")return Nr(i.base)?Xh:null;if(i.type==="horizBrace"){var o=!t.sub;return o===i.isOver?jg:null}else return null}else return null};Hi({type:"supsub",htmlBuilder(e,t){var n=GS(e,t);if(n)return n(e,t);var{base:i,sup:a,sub:s}=e,o=Ze(i,t),c,h,f=t.fontMetrics(),m=0,p=0,x=i&&Nr(i);if(a){var k=t.havingStyle(t.style.sup());c=Ze(a,k,t),x||(m=o.height-k.fontMetrics().supDrop*k.sizeMultiplier/t.sizeMultiplier)}if(s){var E=t.havingStyle(t.style.sub());h=Ze(s,E,t),x||(p=o.depth+E.fontMetrics().subDrop*E.sizeMultiplier/t.sizeMultiplier)}var N;t.style===He.DISPLAY?N=f.sup1:t.style.cramped?N=f.sup3:N=f.sup2;var z=t.sizeMultiplier,A=ve(.5/f.ptPerEm/z),R=null;if(h){var _=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(o instanceof yn||_){var Y;R=ve(-((Y=o.italic)!=null?Y:0))}}var V;if(c&&h){m=Math.max(m,N,c.depth+.25*f.xHeight),p=Math.max(p,f.sub2);var O=f.defaultRuleThickness,G=4*O;if(m-c.depth-(h.height-p)<G){p=G-(m-c.depth)+h.height;var te=.8*f.xHeight-(m-c.depth);te>0&&(m+=te,p-=te)}var re=[{type:"elem",elem:h,shift:p,marginRight:A,marginLeft:R},{type:"elem",elem:c,shift:-m,marginRight:A}];V=Je({positionType:"individualShift",children:re})}else if(h){p=Math.max(p,f.sub1,h.height-.8*f.xHeight);var q=[{type:"elem",elem:h,marginLeft:R,marginRight:A}];V=Je({positionType:"shift",positionData:p,children:q})}else if(c)m=Math.max(m,N,c.depth+.25*f.xHeight),V=Je({positionType:"shift",positionData:-m,children:[{type:"elem",elem:c,marginRight:A}]});else throw new Error("supsub must have either sup or sub.");var fe=Jc(o,"right")||"mord";return ue([fe],[o,ue(["msupsub"],[V])],t)},mathmlBuilder(e,t){var n=!1,i,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(n=!0,i=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[rt(e.base,t)];e.sub&&s.push(rt(e.sub,t)),e.sup&&s.push(rt(e.sup,t));var o;if(n)o=i?"mover":"munder";else if(e.sub)if(e.sup){var f=e.base;f&&f.type==="op"&&f.limits&&t.style===He.DISPLAY||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(t.style===He.DISPLAY||f.limits)?o="munderover":o="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===He.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===He.DISPLAY)?o="munder":o="msub"}else{var c=e.base;c&&c.type==="op"&&c.limits&&(t.style===He.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||t.style===He.DISPLAY)?o="mover":o="msup"}return new me(o,s)}});Hi({type:"atom",htmlBuilder(e,t){return Vh(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new me("mo",[Rn(e.text,e.mode)]);if(e.family==="bin"){var i=Yh(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 Pg={mi:"italic",mn:"normal",mtext:"normal"};Hi({type:"mathord",htmlBuilder(e,t){return $o(e,t,"mathord")},mathmlBuilder(e,t){var n=new me("mi",[Rn(e.text,e.mode,t)]),i=Yh(e,t)||"italic";return i!==Pg[n.type]&&n.setAttribute("mathvariant",i),n}});Hi({type:"textord",htmlBuilder(e,t){return $o(e,t,"textord")},mathmlBuilder(e,t){var n=Rn(e.text,e.mode,t),i=Yh(e,t)||"normal",a;return e.mode==="text"?a=new me("mtext",[n]):/[0-9]/.test(e.text)?a=new me("mn",[n]):e.text==="\\prime"?a=new me("mo",[n]):a=new me("mi",[n]),i!==Pg[a.type]&&a.setAttribute("mathvariant",i),a}});var Sc={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Cc={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Hi({type:"spacing",htmlBuilder(e,t){if(Cc.hasOwnProperty(e.text)){var n=Cc[e.text].className||"";if(e.mode==="text"){var i=$o(e,t,"textord");return i.classes.push(n),i}else return ue(["mspace",n],[Vh(e.text,e.mode,t)],t)}else{if(Sc.hasOwnProperty(e.text))return ue(["mspace",Sc[e.text]],[],t);throw new he('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Cc.hasOwnProperty(e.text))n=new me("mtext",[new Ct(" ")]);else{if(Sc.hasOwnProperty(e.text))return new me("mspace");throw new he('Unknown type of space "'+e.text+'"')}return n}});var Rp=()=>{var e=new me("mtd",[]);return e.setAttribute("width","50%"),e};Hi({type:"tag",mathmlBuilder(e,t){var n=new me("mtable",[new me("mtr",[Rp(),new me("mtd",[ai(e.body,t)]),Rp(),new me("mtd",[ai(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Lp={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Dp={"\\textbf":"textbf","\\textmd":"textmd"},YS={"\\textit":"textit","\\textup":"textup"},Pp=(e,t)=>{var n=e.font;if(n){if(Lp[n])return t.withTextFontFamily(Lp[n]);if(Dp[n])return t.withTextFontWeight(Dp[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(YS[n])};we({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,a=t[0];return{type:"text",mode:n.mode,body:St(a),font:i}},htmlBuilder(e,t){var n=Pp(e,t),i=zt(e.body,n,!0);return ue(["mord","text"],i,n)},mathmlBuilder(e,t){var n=Pp(e,t);return ai(e.body,n)}});we({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=Ze(e.body,t),i=bl("underline-line",t),a=t.fontMetrics().defaultRuleThickness,s=Je({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:i},{type:"kern",size:3*a},{type:"elem",elem:n}]});return ue(["mord","underline"],[s],t)},mathmlBuilder(e,t){var n=new me("mo",[new Ct("‾")]);n.setAttribute("stretchy","true");var i=new me("munder",[rt(e.body,t),n]);return i.setAttribute("accentunder","true"),i}});we({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=Ze(e.body,t),i=t.fontMetrics().axisHeight,a=.5*(n.height-i-(n.depth+i));return Je({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new me("mpadded",[rt(e.body,t)],["vcenter"]);return new me("mrow",[n])}});we({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new he("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Fp(e),i=[],a=t.havingStyle(t.style.text()),s=0;s<n.length;s++){var o=n[s];o==="~"&&(o="\\textasciitilde"),i.push(Xt(o,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return ue(["mord","text"].concat(a.sizingClasses(t)),Z2(i),a)},mathmlBuilder(e,t){var n=new Ct(Fp(e)),i=new me("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var Fp=e=>e.body.replace(/ /g,e.star?"␣":" "),ti=rg,Fg=`[ \r
|
|
338
|
+
]`,XS="\\\\[a-zA-Z@]+",KS="\\\\[^\uD800-\uDFFF]",QS="("+XS+")"+Fg+"*",JS=`\\\\(
|
|
339
|
+
|[ \r ]+
|
|
340
|
+
?)[ \r ]*`,ih="[̀-ͯ]",ZS=new RegExp(ih+"+$"),eC="("+Fg+"+)|"+(JS+"|")+"([!-\\[\\]-‧-豈-]"+(ih+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ih+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+QS)+("|"+KS+")");class Op{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(eC,"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 vn("EOF",new sn(this,n,n));var i=this.tokenRegex.exec(t);if(i===null||i.index!==n)throw new he("Unexpected character: '"+t[n]+"'",new vn(t[n],new sn(this,n,n+1)));var a=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[a]===14){var s=t.indexOf(`
|
|
341
|
+
`,this.tokenRegex.lastIndex);return s===-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=s+1,this.lex()}return new vn(a,new sn(this,n,this.tokenRegex.lastIndex))}}class tC{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 he("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 a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var nC=Tg;T("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});T("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});T("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});T("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});T("\\@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}});T("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");T("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Bp={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};T("\\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 he("\\char` missing argument");i=t.text.charCodeAt(0)}else n=10;if(n){if(i=Bp[t.text],i==null||i>=n)throw new he("Invalid base-"+n+" digit "+t.text);for(var a;(a=Bp[e.future().text])!=null&&a<n;)i*=n,i+=a,e.popToken()}return"\\@char{"+i+"}"});var Zh=(e,t,n,i)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new he("\\newcommand's first argument must be a macro name");var s=a[0].text,o=e.isDefined(s);if(o&&!t)throw new he("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!o&&!n)throw new he("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var c=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var h="",f=e.expandNextToken();f.text!=="]"&&f.text!=="EOF";)h+=f.text,f=e.expandNextToken();if(!h.match(/^\s*[0-9]+\s*$/))throw new he("Invalid number of arguments: "+h);c=parseInt(h),a=e.consumeArg().tokens}return o&&i||e.macros.set(s,{tokens:a,numArgs:c}),""};T("\\newcommand",e=>Zh(e,!1,!0,!1));T("\\renewcommand",e=>Zh(e,!0,!1,!1));T("\\providecommand",e=>Zh(e,!0,!0,!0));T("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});T("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});T("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),ti[n],ht.math[n],ht.text[n]),""});T("\\bgroup","{");T("\\egroup","}");T("~","\\nobreakspace");T("\\lq","`");T("\\rq","'");T("\\aa","\\r a");T("\\AA","\\r A");T("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");T("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");T("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");T("ℬ","\\mathscr{B}");T("ℰ","\\mathscr{E}");T("ℱ","\\mathscr{F}");T("ℋ","\\mathscr{H}");T("ℐ","\\mathscr{I}");T("ℒ","\\mathscr{L}");T("ℳ","\\mathscr{M}");T("ℛ","\\mathscr{R}");T("ℭ","\\mathfrak{C}");T("ℌ","\\mathfrak{H}");T("ℨ","\\mathfrak{Z}");T("\\Bbbk","\\Bbb{k}");T("\\llap","\\mathllap{\\textrm{#1}}");T("\\rlap","\\mathrlap{\\textrm{#1}}");T("\\clap","\\mathclap{\\textrm{#1}}");T("\\mathstrut","\\vphantom{(}");T("\\underbar","\\underline{\\text{#1}}");T("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');T("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");T("\\ne","\\neq");T("≠","\\neq");T("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");T("∉","\\notin");T("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");T("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");T("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");T("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");T("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");T("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");T("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");T("⟂","\\perp");T("‼","\\mathclose{!\\mkern-0.8mu!}");T("∌","\\notni");T("⌜","\\ulcorner");T("⌝","\\urcorner");T("⌞","\\llcorner");T("⌟","\\lrcorner");T("©","\\copyright");T("®","\\textregistered");T("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');T("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');T("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');T("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');T("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");T("⋮","\\vdots");T("\\varGamma","\\mathit{\\Gamma}");T("\\varDelta","\\mathit{\\Delta}");T("\\varTheta","\\mathit{\\Theta}");T("\\varLambda","\\mathit{\\Lambda}");T("\\varXi","\\mathit{\\Xi}");T("\\varPi","\\mathit{\\Pi}");T("\\varSigma","\\mathit{\\Sigma}");T("\\varUpsilon","\\mathit{\\Upsilon}");T("\\varPhi","\\mathit{\\Phi}");T("\\varPsi","\\mathit{\\Psi}");T("\\varOmega","\\mathit{\\Omega}");T("\\substack","\\begin{subarray}{c}#1\\end{subarray}");T("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");T("\\boxed","\\fbox{$\\displaystyle{#1}$}");T("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");T("\\implies","\\DOTSB\\;\\Longrightarrow\\;");T("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");T("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");T("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var _p={",":"\\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"},rC=new Set(["bin","rel"]);T("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in _p?t=_p[n]:(n.slice(0,4)==="\\not"||n in ht.math&&rC.has(ht.math[n].group))&&(t="\\dotsb"),t});var ef={")":!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};T("\\dotso",function(e){var t=e.future().text;return t in ef?"\\ldots\\,":"\\ldots"});T("\\dotsc",function(e){var t=e.future().text;return t in ef&&t!==","?"\\ldots\\,":"\\ldots"});T("\\cdots",function(e){var t=e.future().text;return t in ef?"\\@cdots\\,":"\\@cdots"});T("\\dotsb","\\cdots");T("\\dotsm","\\cdots");T("\\dotsi","\\!\\cdots");T("\\dotsx","\\ldots\\,");T("\\DOTSI","\\relax");T("\\DOTSB","\\relax");T("\\DOTSX","\\relax");T("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");T("\\,","\\tmspace+{3mu}{.1667em}");T("\\thinspace","\\,");T("\\>","\\mskip{4mu}");T("\\:","\\tmspace+{4mu}{.2222em}");T("\\medspace","\\:");T("\\;","\\tmspace+{5mu}{.2777em}");T("\\thickspace","\\;");T("\\!","\\tmspace-{3mu}{.1667em}");T("\\negthinspace","\\!");T("\\negmedspace","\\tmspace-{4mu}{.2222em}");T("\\negthickspace","\\tmspace-{5mu}{.277em}");T("\\enspace","\\kern.5em ");T("\\enskip","\\hskip.5em\\relax");T("\\quad","\\hskip1em\\relax");T("\\qquad","\\hskip2em\\relax");T("\\tag","\\@ifstar\\tag@literal\\tag@paren");T("\\tag@paren","\\tag@literal{({#1})}");T("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new he("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});T("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");T("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");T("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");T("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");T("\\newline","\\\\\\relax");T("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Og=ve(lr["Main-Regular"][84][1]-.7*lr["Main-Regular"][65][1]);T("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Og+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");T("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Og+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");T("\\hspace","\\@ifstar\\@hspacer\\@hspace");T("\\@hspace","\\hskip #1\\relax");T("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");T("\\ordinarycolon",":");T("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");T("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');T("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');T("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');T("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');T("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');T("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');T("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');T("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');T("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');T("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');T("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');T("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');T("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');T("∷","\\dblcolon");T("∹","\\eqcolon");T("≔","\\coloneqq");T("≕","\\eqqcolon");T("⩴","\\Coloneqq");T("\\ratio","\\vcentcolon");T("\\coloncolon","\\dblcolon");T("\\colonequals","\\coloneqq");T("\\coloncolonequals","\\Coloneqq");T("\\equalscolon","\\eqqcolon");T("\\equalscoloncolon","\\Eqqcolon");T("\\colonminus","\\coloneq");T("\\coloncolonminus","\\Coloneq");T("\\minuscolon","\\eqcolon");T("\\minuscoloncolon","\\Eqcolon");T("\\coloncolonapprox","\\Colonapprox");T("\\coloncolonsim","\\Colonsim");T("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");T("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");T("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");T("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");T("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");T("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");T("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");T("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");T("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");T("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");T("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");T("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");T("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");T("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");T("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");T("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");T("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");T("\\nleqq","\\html@mathml{\\@nleqq}{≰}");T("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");T("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");T("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");T("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");T("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");T("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");T("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");T("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");T("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");T("\\imath","\\html@mathml{\\@imath}{ı}");T("\\jmath","\\html@mathml{\\@jmath}{ȷ}");T("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");T("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");T("⟦","\\llbracket");T("⟧","\\rrbracket");T("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");T("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");T("⦃","\\lBrace");T("⦄","\\rBrace");T("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");T("⦵","\\minuso");T("\\darr","\\downarrow");T("\\dArr","\\Downarrow");T("\\Darr","\\Downarrow");T("\\lang","\\langle");T("\\rang","\\rangle");T("\\uarr","\\uparrow");T("\\uArr","\\Uparrow");T("\\Uarr","\\Uparrow");T("\\N","\\mathbb{N}");T("\\R","\\mathbb{R}");T("\\Z","\\mathbb{Z}");T("\\alef","\\aleph");T("\\alefsym","\\aleph");T("\\Alpha","\\mathrm{A}");T("\\Beta","\\mathrm{B}");T("\\bull","\\bullet");T("\\Chi","\\mathrm{X}");T("\\clubs","\\clubsuit");T("\\cnums","\\mathbb{C}");T("\\Complex","\\mathbb{C}");T("\\Dagger","\\ddagger");T("\\diamonds","\\diamondsuit");T("\\empty","\\emptyset");T("\\Epsilon","\\mathrm{E}");T("\\Eta","\\mathrm{H}");T("\\exist","\\exists");T("\\harr","\\leftrightarrow");T("\\hArr","\\Leftrightarrow");T("\\Harr","\\Leftrightarrow");T("\\hearts","\\heartsuit");T("\\image","\\Im");T("\\infin","\\infty");T("\\Iota","\\mathrm{I}");T("\\isin","\\in");T("\\Kappa","\\mathrm{K}");T("\\larr","\\leftarrow");T("\\lArr","\\Leftarrow");T("\\Larr","\\Leftarrow");T("\\lrarr","\\leftrightarrow");T("\\lrArr","\\Leftrightarrow");T("\\Lrarr","\\Leftrightarrow");T("\\Mu","\\mathrm{M}");T("\\natnums","\\mathbb{N}");T("\\Nu","\\mathrm{N}");T("\\Omicron","\\mathrm{O}");T("\\plusmn","\\pm");T("\\rarr","\\rightarrow");T("\\rArr","\\Rightarrow");T("\\Rarr","\\Rightarrow");T("\\real","\\Re");T("\\reals","\\mathbb{R}");T("\\Reals","\\mathbb{R}");T("\\Rho","\\mathrm{P}");T("\\sdot","\\cdot");T("\\sect","\\S");T("\\spades","\\spadesuit");T("\\sub","\\subset");T("\\sube","\\subseteq");T("\\supe","\\supseteq");T("\\Tau","\\mathrm{T}");T("\\thetasym","\\vartheta");T("\\weierp","\\wp");T("\\Zeta","\\mathrm{Z}");T("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");T("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");T("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");T("\\bra","\\mathinner{\\langle{#1}|}");T("\\ket","\\mathinner{|{#1}\\rangle}");T("\\braket","\\mathinner{\\langle{#1}\\rangle}");T("\\Bra","\\left\\langle#1\\right|");T("\\Ket","\\left|#1\\right\\rangle");var Bg=e=>t=>{var n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.consumeArg().tokens,o=t.macros.get("|"),c=t.macros.get("\\|");t.macros.beginGroup();var h=p=>x=>{e&&(x.macros.set("|",o),a.length&&x.macros.set("\\|",c));var k=p;if(!p&&a.length){var E=x.future();E.text==="|"&&(x.popToken(),k=!0)}return{tokens:k?a:i,numArgs:0}};t.macros.set("|",h(!1)),a.length&&t.macros.set("\\|",h(!0));var f=t.consumeArg().tokens,m=t.expandTokens([...s,...f,...n]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};T("\\bra@ket",Bg(!1));T("\\bra@set",Bg(!0));T("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");T("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");T("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");T("\\angln","{\\angl n}");T("\\blue","\\textcolor{##6495ed}{#1}");T("\\orange","\\textcolor{##ffa500}{#1}");T("\\pink","\\textcolor{##ff00af}{#1}");T("\\red","\\textcolor{##df0030}{#1}");T("\\green","\\textcolor{##28ae7b}{#1}");T("\\gray","\\textcolor{gray}{#1}");T("\\purple","\\textcolor{##9d38bd}{#1}");T("\\blueA","\\textcolor{##ccfaff}{#1}");T("\\blueB","\\textcolor{##80f6ff}{#1}");T("\\blueC","\\textcolor{##63d9ea}{#1}");T("\\blueD","\\textcolor{##11accd}{#1}");T("\\blueE","\\textcolor{##0c7f99}{#1}");T("\\tealA","\\textcolor{##94fff5}{#1}");T("\\tealB","\\textcolor{##26edd5}{#1}");T("\\tealC","\\textcolor{##01d1c1}{#1}");T("\\tealD","\\textcolor{##01a995}{#1}");T("\\tealE","\\textcolor{##208170}{#1}");T("\\greenA","\\textcolor{##b6ffb0}{#1}");T("\\greenB","\\textcolor{##8af281}{#1}");T("\\greenC","\\textcolor{##74cf70}{#1}");T("\\greenD","\\textcolor{##1fab54}{#1}");T("\\greenE","\\textcolor{##0d923f}{#1}");T("\\goldA","\\textcolor{##ffd0a9}{#1}");T("\\goldB","\\textcolor{##ffbb71}{#1}");T("\\goldC","\\textcolor{##ff9c39}{#1}");T("\\goldD","\\textcolor{##e07d10}{#1}");T("\\goldE","\\textcolor{##a75a05}{#1}");T("\\redA","\\textcolor{##fca9a9}{#1}");T("\\redB","\\textcolor{##ff8482}{#1}");T("\\redC","\\textcolor{##f9685d}{#1}");T("\\redD","\\textcolor{##e84d39}{#1}");T("\\redE","\\textcolor{##bc2612}{#1}");T("\\maroonA","\\textcolor{##ffbde0}{#1}");T("\\maroonB","\\textcolor{##ff92c6}{#1}");T("\\maroonC","\\textcolor{##ed5fa6}{#1}");T("\\maroonD","\\textcolor{##ca337c}{#1}");T("\\maroonE","\\textcolor{##9e034e}{#1}");T("\\purpleA","\\textcolor{##ddd7ff}{#1}");T("\\purpleB","\\textcolor{##c6b9fc}{#1}");T("\\purpleC","\\textcolor{##aa87ff}{#1}");T("\\purpleD","\\textcolor{##7854ab}{#1}");T("\\purpleE","\\textcolor{##543b78}{#1}");T("\\mintA","\\textcolor{##f5f9e8}{#1}");T("\\mintB","\\textcolor{##edf2df}{#1}");T("\\mintC","\\textcolor{##e0e5cc}{#1}");T("\\grayA","\\textcolor{##f6f7f7}{#1}");T("\\grayB","\\textcolor{##f0f1f2}{#1}");T("\\grayC","\\textcolor{##e3e5e6}{#1}");T("\\grayD","\\textcolor{##d6d8da}{#1}");T("\\grayE","\\textcolor{##babec2}{#1}");T("\\grayF","\\textcolor{##888d93}{#1}");T("\\grayG","\\textcolor{##626569}{#1}");T("\\grayH","\\textcolor{##3b3e40}{#1}");T("\\grayI","\\textcolor{##21242c}{#1}");T("\\kaBlue","\\textcolor{##314453}{#1}");T("\\kaGreen","\\textcolor{##71B307}{#1}");var _g={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class iC{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 tC(nC,n.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new Op(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,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:a,end:i}=this.consumeArg(["]"])}else({tokens:a,start:n,end:i}=this.consumeArg());return this.pushToken(new vn("EOF",i.loc)),this.pushTokens(a),new vn("",sn.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 a=this.future(),s,o=0,c=0;do{if(s=this.popToken(),n.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new he("Extra }",s)}else if(s.text==="EOF")throw new he("Unexpected end of input in a macro argument, expected '"+(t&&i?t[c]:"}")+"'",s);if(t&&i)if((o===0||o===1&&t[c]==="{")&&s.text===t[c]){if(++c,c===t.length){n.splice(-c,c);break}}else c=0}while(o!==0||i);return a.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:a,end:s}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new he("The length of delimiters doesn't match the number of args!");for(var i=n[0],a=0;a<i.length;a++){var s=this.popToken();if(i[a]!==s.text)throw new he("Use of the macro doesn't match its definition",s)}}for(var o=[],c=0;c<t;c++)o.push(this.consumeArg(n&&n[c+1]).tokens);return o}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new he("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),i=n.text,a=n.noexpand?null:this._getExpansion(i);if(a==null||t&&a.unexpandable){if(t&&a==null&&i[0]==="\\"&&!this.isDefined(i))throw new he("Undefined control sequence: "+i);return this.pushToken(n),!1}this.countExpansion(1);var s=a.tokens,o=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){s=s.slice();for(var c=s.length-1;c>=0;--c){var h=s[c];if(h.text==="#"){if(c===0)throw new he("Incomplete placeholder at end of macro body",h);if(h=s[--c],h.text==="#")s.splice(c+1,1);else if(/^[1-9]$/.test(h.text))s.splice(c,2,...o[+h.text-1]);else throw new he("Not a valid argument number",h)}}}return this.pushTokens(s),s.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 vn(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 a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),n.push(a)}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 a=typeof n=="function"?n(this):n;if(typeof a=="string"){var s=0;if(a.includes("#"))for(var o=a.replace(/##/g,"");o.includes("#"+(s+1));)++s;for(var c=new Op(a,this.settings),h=[],f=c.lex();f.text!=="EOF";)h.push(f),f=c.lex();h.reverse();var m={tokens:h,numArgs:s};return m}return a}isDefined(t){return this.macros.has(t)||ti.hasOwnProperty(t)||ht.math.hasOwnProperty(t)||ht.text.hasOwnProperty(t)||_g.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:ti.hasOwnProperty(t)&&!ti[t].primitive}}var $p=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,uo=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Ec={"́":{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"}},Hp={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Qo{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 iC(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 he("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 vn("}")),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 a=this.fetch();if(Qo.endOfExpression.has(a.text)||n&&a.text===n||t&&ti[a.text]&&ti[a.text].infix)break;var s=this.parseAtom(n);if(s){if(s.type==="internal")continue}else break;i.push(s)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){for(var n=-1,i,a=0;a<t.length;a++){var s=t[a];if(s.type==="infix"){if(n!==-1)throw new he("only one infix operator per group",s.token);n=a,i=s.replaceWith}}if(n!==-1&&i){var o,c,h=t.slice(0,n),f=t.slice(n+1);h.length===1&&h[0].type==="ordgroup"?o=h[0]:o={type:"ordgroup",mode:this.mode,body:h},f.length===1&&f[0].type==="ordgroup"?c=f[0]:c={type:"ordgroup",mode:this.mode,body:f};var m;return i==="\\\\abovefrac"?m=this.callFunction(i,[o,t[n],c],[]):m=this.callFunction(i,[o,c],[]),[m]}else return t}handleSupSubscript(t){var n=this.fetch(),i=n.text;this.consume(),this.consumeSpaces();var a;do{var s;a=this.parseGroup(t)}while(((s=a)==null?void 0:s.type)==="internal");if(!a)throw new he("Expected group after '"+i+"'",n);return a}formatUnsupportedCmd(t){for(var n=[],i=0;i<t.length;i++)n.push({type:"textord",mode:"text",text:t[i]});var a={type:"text",mode:this.mode,body:n},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return s}parseAtom(t){var n=this.parseGroup("atom",t);if((n==null?void 0:n.type)==="internal"||this.mode==="text")return n;for(var i,a;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(n&&n.type==="op"){var o=s.text==="\\limits";n.limits=o,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=s.text==="\\limits");else throw new he("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(i)throw new he("Double superscript",s);i=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(a)throw new he("Double subscript",s);a=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(i)throw new he("Double superscript",s);var c={type:"textord",mode:this.mode,text:"\\prime"},h=[c];for(this.consume();this.fetch().text==="'";)h.push(c),this.consume();this.fetch().text==="^"&&h.push(this.handleSupSubscript("superscript")),i={type:"ordgroup",mode:this.mode,body:h}}else if(uo[s.text]){var f=$p.test(s.text),m=[];for(m.push(new vn(uo[s.text])),this.consume();;){var p=this.fetch().text;if(!uo[p]||$p.test(p)!==f)break;m.unshift(new vn(uo[p])),this.consume()}var x=this.subparse(m);f?a={type:"ordgroup",mode:"math",body:x}:i={type:"ordgroup",mode:"math",body:x}}else break}return i||a?{type:"supsub",mode:this.mode,base:n,sup:i,sub:a}:n}parseFunction(t,n){var i=this.fetch(),a=i.text,s=ti[a];if(!s)return null;if(this.consume(),n&&n!=="atom"&&!s.allowedInArgument)throw new he("Got function '"+a+"' with no arguments"+(n?" as "+n:""),i);if(this.mode==="text"&&!s.allowedInText)throw new he("Can't use function '"+a+"' in text mode",i);if(this.mode==="math"&&s.allowedInMath===!1)throw new he("Can't use function '"+a+"' in math mode",i);var{args:o,optArgs:c}=this.parseArguments(a,s);return this.callFunction(a,o,c,i,t)}callFunction(t,n,i,a,s){var o={funcName:t,parser:this,token:a,breakOnTokenText:s},c=ti[t];if(c&&c.handler)return c.handler(o,n,i);throw new he("No function handler for "+t)}parseArguments(t,n){var i=n.numArgs+n.numOptionalArgs;if(i===0)return{args:[],optArgs:[]};for(var a=[],s=[],o=0;o<i;o++){var c=n.argTypes&&n.argTypes[o],h=o<n.numOptionalArgs;("primitive"in n&&n.primitive&&c==null||n.type==="sqrt"&&o===1&&s[0]==null)&&(c="primitive");var f=this.parseGroupOfType("argument to '"+t+"'",c,h);if(h)s.push(f);else if(f!=null)a.push(f);else throw new he("Null argument, please report this as a bug")}return{args:a,optArgs:s}}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 a=this.parseArgumentGroup(i,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text",resetFont:!0}:null}case"raw":{var s=this.parseStringGroup("raw",i);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(i)throw new he("A primitive argument cannot be optional");var o=this.parseGroup(t);if(o==null)throw new he("Expected group as "+t,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new he("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 a="",s;(s=this.fetch()).text!=="EOF";)a+=s.text,this.consume();return this.consume(),i.text=a,i}parseRegexGroup(t,n){for(var i=this.fetch(),a=i,s="",o;(o=this.fetch()).text!=="EOF"&&t.test(s+o.text);)a=o,s+=a.text,this.consume();if(s==="")throw new he("Invalid "+n+": '"+i.text+"'",i);return i.range(a,s)}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 he("Invalid color: '"+n.text+"'",n);var a=i[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}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 a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!a)throw new he("Invalid size: '"+n.text+"'",n);var s={number:+(a[1]+a[2]),unit:a[3]};if(!G2(s))throw new he("Invalid unit: '"+s.unit+"'",n);return{type:"size",mode:this.mode,value:s,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 a=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:i.loc,body:s};return n&&this.switchMode(a),o}parseGroup(t,n){var i=this.fetch(),a=i.text,s;if(a==="{"||a==="\\begingroup"){this.consume();var o=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var c=this.parseExpression(!1,o),h=this.fetch();this.expect(o),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:sn.range(i,h),body:c,semisimple:a==="\\begingroup"||void 0}}else if(s=this.parseFunction(n,t)||this.parseSymbol(),s==null&&a[0]==="\\"&&!_g.hasOwnProperty(a)){if(this.settings.throwOnError)throw new he("Undefined control sequence: "+a,i);s=this.formatUnsupportedCmd(a),this.consume()}return s}formLigatures(t){for(var n=t.length-1,i=0;i<n;++i){var a=t[i];if(a.type==="textord"){var s=a.text,o=t[i+1];if(!(!o||o.type!=="textord")){if(s==="-"&&o.text==="-"){var c=t[i+2];i+1<n&&c&&c.type==="textord"&&c.text==="-"?(t.splice(i,3,{type:"textord",mode:"text",loc:sn.range(a,c),text:"---"}),n-=2):(t.splice(i,2,{type:"textord",mode:"text",loc:sn.range(a,o),text:"--"}),n-=1)}(s==="'"||s==="`")&&o.text===s&&(t.splice(i,2,{type:"textord",mode:"text",loc:sn.range(a,o),text:s+s}),n-=1)}}}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var i=n.slice(5),a=i.charAt(0)==="*";if(a&&(i=i.slice(1)),i.length<2||i.charAt(0)!==i.slice(-1))throw new he(`\\verb assertion failed --
|
|
342
|
+
please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:a}}Hp.hasOwnProperty(n[0])&&!ht[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=Hp[n[0]]+n.slice(1));var s=ZS.exec(n);s&&(n=n.substring(0,s.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var o;if(ht[this.mode][n]){this.settings.strict&&this.mode==="math"&&Uc.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var c=ht[this.mode][n].group,h=sn.range(t),f;wS(c)?f={type:"atom",mode:this.mode,family:c,loc:h,text:n}:f={type:c,mode:this.mode,loc:h,text:n},o=f}else if(n.charCodeAt(0)>=128)this.settings.strict&&(W2(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)),o={type:"textord",mode:"text",loc:sn.range(t),text:n};else return null;if(this.consume(),s)for(var m=0;m<s[0].length;m++){var p=s[0][m];if(!Ec[p])throw new he("Unknown accent ' "+p+"'",t);var x=Ec[p][this.mode]||Ec[p].text;if(!x)throw new he("Accent "+p+" unsupported in "+this.mode+" mode",t);o={type:"accent",mode:this.mode,loc:sn.range(t),label:x,isStretchy:!1,isShifty:!0,base:o}}return o}}Qo.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var tf=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new Qo(t,n);delete i.gullet.macros.current["\\df@tag"];var a=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 he("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:i.subparse([new vn("\\df@tag")])}]}return a},nf=function(t,n,i){n.textContent="";var a=Jo(t,i).toNode();n.appendChild(a)};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."),nf=function(){throw new he("KaTeX doesn't work in quirks mode.")});var $g=function(t,n){var i=Jo(t,n).toMarkup();return i},Hg=function(t,n){var i=new $h(n);return tf(t,i)},qg=function(t,n,i){if(i.throwOnError||!(t instanceof he))throw t;var a=ue(["katex-error"],[new yn(n)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+i.errorColor),a},Jo=function(t,n){var i=new $h(n);try{var a=tf(t,i);return fS(a,t,i)}catch(s){return qg(s,t,i)}},Ug=function(t,n){var i=new $h(n);try{var a=tf(t,i);return dS(a,t,i)}catch(s){return qg(s,t,i)}},Vg="0.16.47",Wg={Span:Ml,Anchor:Bo,SymbolNode:yn,SvgNode:Er,PathNode:ii,LineNode:qc},lh={version:Vg,render:nf,renderToString:$g,ParseError:he,SETTINGS_SCHEMA:So,__parse:Hg,__renderToDomTree:Jo,__renderToHTMLTree:Ug,__setFontMetrics:Q2,__defineSymbol:v,__defineFunction:we,__defineMacro:T,__domTree:Wg};const iT=Object.freeze(Object.defineProperty({__proto__:null,ParseError:he,SETTINGS_SCHEMA:So,__defineFunction:we,__defineMacro:T,__defineSymbol:v,__domTree:Wg,__parse:Hg,__renderToDomTree:Jo,__renderToHTMLTree:Ug,__setFontMetrics:Q2,default:lh,get render(){return nf},renderToString:$g,version:Vg},Symbol.toStringTag,{value:"Module"})),lC={};function aC(e){const t=this,n=e||lC,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(db(n)),s.push(lb()),o.push(ab(n))}const qp=/[#.]/g;function sC(e,t){const n=e||"",i={};let a=0,s,o;for(;a<n.length;){qp.lastIndex=a;const c=qp.exec(n),h=n.slice(a,c?c.index:n.length);h&&(s?s==="#"?i.id=h:Array.isArray(i.className)?i.className.push(h):i.className=[h]:o=h,a+=h.length),c&&(s=c[0],a++)}return{type:"element",tagName:o||t||"div",properties:i,children:[]}}function Gg(e,t,n){const i=n?hC(n):void 0;function a(s,o,...c){let h;if(s==null){h={type:"root",children:[]};const f=o;c.unshift(f)}else{h=sC(s,t);const f=h.tagName.toLowerCase(),m=i?i.get(f):void 0;if(h.tagName=m||f,oC(o))c.unshift(o);else for(const[p,x]of Object.entries(o))uC(e,h.properties,p,x)}for(const f of c)ah(h.children,f);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return a}function oC(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 a=t[i];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const s=a;for(const o of s)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function uC(e,t,n,i){const a=W4(e,n);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?a.spaceSeparated?s=ym(i):a.commaSeparated?s=dm(i):a.commaOrSpaceSeparated?s=ym(dm(i).join(" ")):s=Up(a,a.property,i):Array.isArray(i)?s=[...i]:s=a.property==="style"?cC(i):String(i);if(Array.isArray(s)){const o=[];for(const c of s)o.push(Up(a,a.property,c));s=o}a.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[a.property]=s}}function ah(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)ah(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ah(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Up(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ma(n)===Ma(t)))return!0}return n}function cC(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function hC(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const fC=["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"],dC=Gg(G4,"div"),mC=Gg(Lo,"g",fC),Tc={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function pC(e,t){return Yg(e,{})||{type:"root",children:[]}}function Yg(e,t){const n=gC(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function gC(e,t){switch(e.nodeType){case 1:return wC(e,t);case 3:return yC(e);case 8:return xC(e);case 9:return Vp(e,t);case 10:return vC();case 11:return Vp(e,t);default:return}}function Vp(e,t){return{type:"root",children:Xg(e,t)}}function vC(){return{type:"doctype"}}function yC(e){return{type:"text",value:e.nodeValue||""}}function xC(e){return{type:"comment",value:e.nodeValue||""}}function wC(e,t){const n=e.namespaceURI,i=n===Tc.svg?mC:dC,a=n===Tc.html?e.tagName.toLowerCase():e.tagName,s=n===Tc.html&&a==="template"?e.content:e,o=e.getAttributeNames(),c={};let h=-1;for(;++h<o.length;)c[o[h]]=e.getAttribute(o[h])||"";return i(a,c,Xg(s,t))}function Xg(e,t){const n=e.childNodes,i=[];let a=-1;for(;++a<n.length;){const s=Yg(n[a],t);s!==void 0&&i.push(s)}return i}new DOMParser;function kC(e,t){const n=bC(e);return pC(n)}function bC(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Wp=(function(e,t,n){const i=Ba(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]}),qi=(function(e){if(e==null)return EC;if(typeof e=="string")return CC(e);if(typeof e=="object")return SC(e);if(typeof e=="function")return rf(e);throw new Error("Expected function, string, or array as `test`")});function SC(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=qi(e[n]);return rf(i);function i(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function CC(e){return rf(t);function t(n){return n.tagName===e}}function rf(e){return t;function t(n,i,a){return!!(TC(n)&&e.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function EC(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function TC(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Gp=/\n/g,Yp=/[\t ]+/g,sh=qi("br"),Xp=qi(LC),NC=qi("p"),Kp=qi("tr"),AC=qi(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",RC,DC]),Kg=qi(["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 zC(e,t){const n=t||{},i="children"in e?e.children:[],a=Kg(e),s=Zg(e,{whitespace:n.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...Jg(e,{breakBefore:!0,breakAfter:!0}));let c=-1;for(;++c<i.length;)o.push(...Qg(i[c],e,{whitespace:s,breakBefore:c?void 0:a,breakAfter:c<i.length-1?sh(i[c+1]):a}));const h=[];let f;for(c=-1;++c<o.length;){const m=o[c];typeof m=="number"?f!==void 0&&m>f&&(f=m):m&&(f!==void 0&&f>-1&&h.push(`
|
|
343
|
+
`.repeat(f)||" "),f=-1,h.push(m))}return h.join("")}function Qg(e,t,n){return e.type==="element"?MC(e,t,n):e.type==="text"?n.whitespace==="normal"?Jg(e,n):jC(e):[]}function MC(e,t,n){const i=Zg(e,n),a=e.children||[];let s=-1,o=[];if(AC(e))return o;let c,h;for(sh(e)||Kp(e)&&Wp(t,e,Kp)?h=`
|
|
344
|
+
`:NC(e)?(c=2,h=2):Kg(e)&&(c=1,h=1);++s<a.length;)o=o.concat(Qg(a[s],e,{whitespace:i,breakBefore:s?void 0:c,breakAfter:s<a.length-1?sh(a[s+1]):h}));return Xp(e)&&Wp(t,e,Xp)&&o.push(" "),c&&o.unshift(c),h&&o.push(h),o}function Jg(e,t){const n=String(e.value),i=[],a=[];let s=0;for(;s<=n.length;){Gp.lastIndex=s;const h=Gp.exec(n),f=h&&"index"in h?h.index:n.length;i.push(IC(n.slice(s,f).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,f===n.length?t.breakAfter:!0)),s=f+1}let o=-1,c;for(;++o<i.length;)i[o].charCodeAt(i[o].length-1)===8203||o<i.length-1&&i[o+1].charCodeAt(0)===8203?(a.push(i[o]),c=void 0):i[o]?(typeof c=="number"&&a.push(c),a.push(i[o]),c=0):(o===0||o===i.length-1)&&a.push(0);return a}function jC(e){return[String(e.value)]}function IC(e,t,n){const i=[];let a=0,s;for(;a<e.length;){Yp.lastIndex=a;const o=Yp.exec(e);s=o?o.index:e.length,!a&&!s&&o&&!t&&i.push(""),a!==s&&i.push(e.slice(a,s)),a=o?s+o[0].length:s}return a!==s&&!n&&i.push(""),i.join(" ")}function Zg(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 RC(e){return!!(e.properties||{}).hidden}function LC(e){return e.tagName==="td"||e.tagName==="th"}function DC(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const PC={},FC=[];function OC(e){const t=e||PC;return function(n,i){Dh(n,"element",function(a,s){const o=Array.isArray(a.properties.className)?a.properties.className:FC,c=o.includes("language-math"),h=o.includes("math-display"),f=o.includes("math-inline");let m=h;if(!c&&!h&&!f)return;let p=s[s.length-1],x=a;if(a.tagName==="code"&&c&&p&&p.type==="element"&&p.tagName==="pre"&&(x=p,p=s[s.length-2],m=!0),!p)return;const k=zC(x,{whitespace:"pre"});let E;try{E=lh.renderToString(k,{...t,displayMode:m,throwOnError:!0})}catch(z){const A=z,R=A.name.toLowerCase();i.message("Could not render math with KaTeX",{ancestors:[...s,a],cause:A,place:a.position,ruleId:R,source:"rehype-katex"});try{E=lh.renderToString(k,{...t,displayMode:m,strict:"ignore",throwOnError:!1})}catch{E=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(z)},children:[{type:"text",value:k}]}]}}typeof E=="string"&&(E=kC(E).children);const N=p.children.indexOf(x);return p.children.splice(N,1,...E),w2})}}const BC=256*1024;let Di=null,_C=0;const zo=new Map;function Qp(e,t){var n;(n=zo.get(e))==null||n(t),zo.delete(e)}function $C(){if(Di)return Di;try{Di=new Worker(new URL("/assets/highlightWorker-DJp1Ce5p.js",import.meta.url),{type:"module"}),Di.addEventListener("message",e=>Qp(e.data.id,e.data.html)),Di.addEventListener("error",()=>{for(const e of[...zo.keys()])Qp(e,null);Di=null})}catch{return null}return Di}async function lf(e,t){if(e.length>BC)return null;const n=$C();if(!n)return null;const i=++_C;return new Promise(a=>{zo.set(i,a),n.postMessage({id:i,code:e,lang:t})})}function HC({code:e,lang:t}){const[n,i]=I.useState(null);I.useEffect(()=>{let s=!1;return lf(e,t).then(o=>{s||i(o)}).catch(()=>{s||i(null)}),()=>{s=!0}},[e,t]);const a=()=>{var s;return void((s=navigator.clipboard)==null?void 0:s.writeText(e))};return w.jsxs("div",{className:"codeblock",children:[w.jsxs("div",{className:"codeblock-bar",children:[w.jsx("span",{className:"codeblock-lang",children:t||"text"}),w.jsx("button",{className:"codeblock-copy",onClick:a,"aria-label":"Copy code",children:"copy"})]}),n?w.jsx("div",{className:"codeblock-body",dangerouslySetInnerHTML:{__html:n}}):w.jsx("pre",{className:"codeblock-body codeblock-plain",children:w.jsx("code",{children:e})})]})}const qC="modulepreload",UC=function(e){return"/"+e},Jp={},VC=function(t,n,i){let a=Promise.resolve();if(n&&n.length>0){let o=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),h=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));a=o(n.map(f=>{if(f=UC(f),f in Jp)return;Jp[f]=!0;const m=f.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const x=document.createElement("link");if(x.rel=m?"stylesheet":qC,m||(x.as="script"),x.crossOrigin="",x.href=f,h&&x.setAttribute("nonce",h),document.head.appendChild(x),m)return new Promise((k,E)=>{x.addEventListener("load",k),x.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(o){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o}return a.then(o=>{for(const c of o||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};let Nc=null;function WC(){return Nc||(Nc=VC(()=>import("./mermaid.core-4GNWPr4j.js").then(e=>e.bp),[]).then(e=>(e.default.initialize({startOnLoad:!1,theme:"dark",securityLevel:"strict",themeVariables:{primaryColor:"#44475a",primaryTextColor:"#f8f8f2",primaryBorderColor:"#bd93f9",lineColor:"#8be9fd",fontFamily:"Inter, sans-serif"}}),e.default))),Nc}let GC=0;function YC({code:e}){const t=I.useRef(null),[n,i]=I.useState(!1);return I.useEffect(()=>{let a=!1;i(!1);const s=e.trim();if(s)return WC().then(async o=>{const c=await o.parse(s,{suppressErrors:!0});if(a||!c)return;const{svg:h}=await o.render(`mermaid-${GC++}`,s);a||!t.current||(t.current.innerHTML=h,i(!0))}).catch(()=>{}),()=>{a=!0}},[e]),w.jsxs("div",{className:"mermaid-wrap",children:[w.jsx("div",{className:`mermaid-block ${n?"":"is-hidden"}`,ref:t}),!n&&w.jsxs("div",{className:"codeblock",children:[w.jsx("div",{className:"codeblock-bar",children:w.jsx("span",{className:"codeblock-lang",children:"mermaid"})}),w.jsx("pre",{className:"codeblock-body codeblock-plain",children:w.jsx("code",{children:e})})]})]})}const XC={code(e){const{className:t,children:n}=e,i=/language-(\w+)/.exec(t??""),a=String(n).replace(/\n$/,"");if(!t&&!a.includes(`
|
|
345
|
+
`))return w.jsx("code",{className:"md-inline-code",children:a});const o=(i==null?void 0:i[1])??"";return o==="mermaid"?w.jsx(YC,{code:a}):w.jsx(HC,{code:a,lang:o})},a(e){return w.jsx("a",{...e,target:"_blank",rel:"noreferrer noopener"})}},Cl=I.memo(function({text:t}){return w.jsx("div",{className:"md",children:w.jsx(Wx,{remarkPlugins:[ib,aC],rehypePlugins:[OC],components:XC,children:t})})}),KC=4e5;function Zp(e,t){const n=e.split(`
|
|
346
|
+
`),i=t.split(`
|
|
347
|
+
`),a=n.length,s=i.length;if(a*s>KC)return[...n.map(m=>({type:"del",text:m})),...i.map(m=>({type:"add",text:m}))];const o=Array.from({length:a+1},()=>new Array(s+1).fill(0));for(let m=a-1;m>=0;m--)for(let p=s-1;p>=0;p--)o[m][p]=n[m]===i[p]?o[m+1][p+1]+1:Math.max(o[m+1][p],o[m][p+1]);const c=[];let h=0,f=0;for(;h<a&&f<s;)n[h]===i[f]?(c.push({type:"ctx",text:n[h]}),h++,f++):o[h+1][f]>=o[h][f+1]?(c.push({type:"del",text:n[h]}),h++):(c.push({type:"add",text:i[f]}),f++);for(;h<a;)c.push({type:"del",text:n[h++]});for(;f<s;)c.push({type:"add",text:i[f++]});return c}const e3={loading:"lazy",decoding:"async",ref:e=>{e!=null&&e.complete&&(e.dataset.loaded="")},onLoad:e=>{e.currentTarget.dataset.loaded=""}},Wn=e=>!!e&&typeof e=="object";function af(e){switch(e.name){case"shell":return"shell";case"write":case"strReplace":return"write";case"read":return"read";case"grep":return"grep";case"todo_list":return"todo";case"web_fetch":return"webfetch";case"web_search":return"websearch";case"introspect":return"introspect"}if(e.name)return"generic";const t=Wn(e.input)?e.input:{},n=e.kind,i=typeof t.command=="string"?t.command:void 0,a=s=>Object.prototype.hasOwnProperty.call(t,s);return e.title==="todo_list"||a("tasks")||a("task_list_description")||a("completed_task_ids")||a("remove_task_ids")||i!==void 0&&["complete","add","remove","list"].includes(i)?"todo":n==="read"||Array.isArray(t.operations)||e.title==="read"?"read":e.title==="grep"||typeof t.pattern=="string"&&!a("operations")?"grep":n==="edit"||e.title==="write"||e.title==="strReplace"||(i==="create"||i==="strReplace"||i==="insert")&&typeof t.path=="string"||typeof t.oldStr=="string"&&typeof t.newStr=="string"?"write":n==="execute"||e.title==="shell"||typeof t.command=="string"?"shell":typeof t.url=="string"?"webfetch":typeof t.query=="string"&&(n==="search"||e.title==="web_search")?"websearch":e.title==="introspect"||typeof t.doc_path=="string"?"introspect":"generic"}const QC={shell:"shell",write:"write",read:"read",grep:"grep",todo:"todo_list",webfetch:"web_fetch",websearch:"web_search",introspect:"introspect",generic:void 0};function JC(e){if(e.name)return e.name;const t=QC[af(e)];if(t)return t;const n=e.title??"";return n&&!/\s/.test(n)?n:"tool"}function t3(e){const t=e.trim().split("/").pop()??"",n=t.includes(".")?t.split(".").pop().toLowerCase():t.toLowerCase();return{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",mjs:"javascript",cjs:"javascript",json:"json",jsonc:"json",css:"css",scss:"scss",less:"less",html:"html",htm:"html",xml:"xml",svg:"xml",vue:"vue",svelte:"svelte",md:"markdown",markdown:"markdown",py:"python",rb:"ruby",rs:"rust",go:"go",java:"java",kt:"kotlin",c:"c",h:"c",cpp:"cpp",cc:"cpp",hpp:"cpp",cs:"csharp",sh:"bash",bash:"bash",zsh:"bash",yml:"yaml",yaml:"yaml",toml:"toml",sql:"sql",php:"php",swift:"swift",lua:"lua",dockerfile:"docker",ini:"ini",conf:"ini",env:"ini",proto:"proto",graphql:"graphql"}[n]??"text"}function Ui(e){const t=[];for(const n of e)Wn(n)&&(n.type==="content"&&Wn(n.content)&&typeof n.content.text=="string"?t.push(n.content.text):n.type==="text"&&typeof n.text=="string"?t.push(n.text):n.kind==="text"&&typeof n.data=="string"&&t.push(n.data));return t.join("")}function Vi(e){for(const t of e)if(Wn(t)&&t.kind==="json"&&Wn(t.data))return t.data;return null}function sf(e){const t=Object.keys(e);return t.length===1&&typeof e[t[0]]=="string"?e[t[0]]:null}function ZC(e){if(e==null)return[];if(typeof e=="string")return e?[{kind:"text",data:e}]:[];if(Wn(e)&&Array.isArray(e.items)){const t=[];for(const n of e.items)Wn(n)&&(typeof n.Text=="string"?t.push({kind:"text",data:n.Text}):Wn(n.Json)&&t.push({kind:"json",data:n.Json}));return t}return[]}function ui(e){return[...Array.isArray(e.content)?e.content:[],...ZC(e.output)]}function eE(e){for(const t of e)if(Wn(t)&&t.type==="diff"&&typeof t.oldText=="string"&&typeof t.newText=="string")return{path:typeof t.path=="string"?t.path:void 0,oldText:t.oldText,newText:t.newText};return null}function tE(e){let t=Vi(e);if(!t||!Array.isArray(t.tasks)){const n=Ui(e).trim();if(n.startsWith("{"))try{const i=JSON.parse(n);t=Wn(i)?i:null}catch{t=null}}return t&&Array.isArray(t.tasks)?t.tasks.map(n=>{const i=Wn(n)?n:{};return{desc:typeof i.task_description=="string"?i.task_description:"",done:i.completed===!0}}):null}const nE=["https://cdnjs.cloudflare.com","https://cdn.jsdelivr.net","https://unpkg.com","https://esm.sh"];function rE(){const e=nE.join(" ");return["default-src 'none'",`script-src 'unsafe-inline' ${e}`,`style-src 'unsafe-inline' ${e} https://fonts.googleapis.com`,"img-src data: blob: https:","font-src data: https:",`connect-src ${e}`].join("; ")}const iE=`
|
|
348
|
+
(function () {
|
|
349
|
+
var parent = window.parent;
|
|
350
|
+
var root = document.getElementById('root');
|
|
351
|
+
var last = null;
|
|
352
|
+
var scripted = false;
|
|
353
|
+
|
|
354
|
+
function post(msg) { parent.postMessage(msg, '*'); }
|
|
355
|
+
|
|
356
|
+
// The only way a widget can talk to Casper: ask for a prompt to be sent. The
|
|
357
|
+
// app decides whether to honour it.
|
|
358
|
+
window.casper = {
|
|
359
|
+
sendPrompt: function (text) {
|
|
360
|
+
if (typeof text !== 'string' || !text.trim()) return;
|
|
361
|
+
post({ type: 'casper:prompt', text: text.slice(0, 4000) });
|
|
362
|
+
},
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
// Guarded, because a second pass would replace the nodes a widget's scripts are
|
|
366
|
+
// already driving with inert copies.
|
|
367
|
+
function setContent(html) {
|
|
368
|
+
if (!root) root = document.getElementById('root');
|
|
369
|
+
if (!root || html === last) return;
|
|
370
|
+
last = html;
|
|
371
|
+
root.innerHTML = html;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
// innerHTML leaves scripts inert; recreating them runs them, once the content is
|
|
375
|
+
// final so a half-written script never executes. One at a time, waiting on anything
|
|
376
|
+
// with a src: a real document blocks there, and running them all at once is how you
|
|
377
|
+
// get "Chart is not defined".
|
|
378
|
+
function runScripts() {
|
|
379
|
+
if (scripted) return;
|
|
380
|
+
scripted = true;
|
|
381
|
+
var list = [].slice.call(root.querySelectorAll('script'));
|
|
382
|
+
var index = 0;
|
|
383
|
+
|
|
384
|
+
function next() {
|
|
385
|
+
if (index >= list.length) return;
|
|
386
|
+
var old = list[index++];
|
|
387
|
+
var fresh = document.createElement('script');
|
|
388
|
+
for (var a = 0; a < old.attributes.length; a++) {
|
|
389
|
+
fresh.setAttribute(old.attributes[a].name, old.attributes[a].value);
|
|
390
|
+
}
|
|
391
|
+
fresh.textContent = old.textContent;
|
|
392
|
+
var external = Boolean(old.getAttribute('src'));
|
|
393
|
+
if (external) {
|
|
394
|
+
fresh.async = false;
|
|
395
|
+
var moved = false;
|
|
396
|
+
var advance = function () {
|
|
397
|
+
if (moved) return;
|
|
398
|
+
moved = true;
|
|
399
|
+
next();
|
|
400
|
+
};
|
|
401
|
+
fresh.onload = advance;
|
|
402
|
+
fresh.onerror = advance;
|
|
403
|
+
// A CDN that never answers shouldn't strand the rest of the widget.
|
|
404
|
+
setTimeout(advance, 10000);
|
|
405
|
+
}
|
|
406
|
+
old.parentNode.replaceChild(fresh, old);
|
|
407
|
+
if (!external) next();
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
next();
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
var lastHeight = 0;
|
|
414
|
+
|
|
415
|
+
// Measured off #root, not the document: in a frame the html box is the viewport,
|
|
416
|
+
// so it reports the size the host already chose rather than the content's. The
|
|
417
|
+
// two spare pixels absorb fractional layout heights, which otherwise leave a
|
|
418
|
+
// sliver of overflow and a scrollbar.
|
|
419
|
+
function contentHeight() {
|
|
420
|
+
if (!root) root = document.getElementById('root');
|
|
421
|
+
var bottom = 0;
|
|
422
|
+
if (root) {
|
|
423
|
+
var box = root.getBoundingClientRect();
|
|
424
|
+
bottom = box.top + Math.max(root.scrollHeight, box.height);
|
|
425
|
+
}
|
|
426
|
+
var body = document.body ? document.body.scrollHeight : 0;
|
|
427
|
+
return Math.ceil(Math.max(bottom, body)) + 2;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
function reportHeight() {
|
|
431
|
+
var h = contentHeight();
|
|
432
|
+
if (h !== lastHeight) { lastHeight = h; post({ type: 'casper:height', height: h }); }
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
if (window.ResizeObserver) {
|
|
436
|
+
var ro = new ResizeObserver(reportHeight);
|
|
437
|
+
ro.observe(document.documentElement);
|
|
438
|
+
// The one that actually grows with the content.
|
|
439
|
+
if (root) ro.observe(root);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// Canvases and late fonts resize without tripping the observer, so poll too -
|
|
443
|
+
// but only briefly after the content settles. A transcript full of widgets each
|
|
444
|
+
// polling forever would read layout dozens of times a second.
|
|
445
|
+
var poll = null;
|
|
446
|
+
function pollHeight(ms) {
|
|
447
|
+
if (poll) clearInterval(poll);
|
|
448
|
+
var until = Date.now() + ms;
|
|
449
|
+
poll = setInterval(function () {
|
|
450
|
+
reportHeight();
|
|
451
|
+
if (Date.now() > until) { clearInterval(poll); poll = null; }
|
|
452
|
+
}, 250);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
window.addEventListener('message', function (e) {
|
|
456
|
+
if (e.source !== parent) return;
|
|
457
|
+
var d = e.data;
|
|
458
|
+
if (!d || typeof d !== 'object') return;
|
|
459
|
+
if (d.type === 'casper:theme') {
|
|
460
|
+
document.getElementById('theme').textContent = ':root{' + d.css + '}';
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
463
|
+
if (d.type !== 'casper:html') return;
|
|
464
|
+
setContent(d.html);
|
|
465
|
+
reportHeight();
|
|
466
|
+
runScripts();
|
|
467
|
+
// Scripts can draw for a while after they run; watch a little longer.
|
|
468
|
+
pollHeight(4000);
|
|
469
|
+
});
|
|
470
|
+
})();
|
|
471
|
+
`,lE=`
|
|
472
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
473
|
+
html, body { margin: 0; padding: 0; background: transparent; }
|
|
474
|
+
/* The host sizes the frame to fit, so a scrollbar in here is always a measuring
|
|
475
|
+
error rather than something to scroll. */
|
|
476
|
+
html { overflow: hidden; }
|
|
477
|
+
body {
|
|
478
|
+
font-family: var(--font-body, system-ui, sans-serif);
|
|
479
|
+
font-size: 14px;
|
|
480
|
+
line-height: 1.5;
|
|
481
|
+
color: var(--color-text-primary, #f8f8f2);
|
|
482
|
+
overflow-x: hidden;
|
|
483
|
+
}
|
|
484
|
+
#root { overflow-x: hidden; }
|
|
485
|
+
a { color: var(--color-accent, #bd93f9); }
|
|
486
|
+
::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
487
|
+
::-webkit-scrollbar-thumb { background: var(--color-border, #44475a); border-radius: 4px; }
|
|
488
|
+
`;function aE(){return`<!doctype html>
|
|
489
|
+
<html>
|
|
490
|
+
<head>
|
|
491
|
+
<meta charset="utf-8">
|
|
492
|
+
<meta http-equiv="Content-Security-Policy" content="${rE()}">
|
|
493
|
+
<meta name="color-scheme" content="dark">
|
|
494
|
+
<style>${lE}</style>
|
|
495
|
+
<style id="theme"></style>
|
|
496
|
+
</head>
|
|
497
|
+
<body><div id="root"></div>
|
|
498
|
+
<!-- Runtime last: it grabs #root on the way in, so the element has to exist. -->
|
|
499
|
+
<script>${iE}<\/script>
|
|
500
|
+
</body>
|
|
501
|
+
</html>`}let oh=null;function e4(e){oh=e}function n3(e){const t=e.trim().slice(0,4e3);return!t||!oh?!1:(oh(t),!0)}const sE=aE(),oE=256*1024;function uE(){const e=getComputedStyle(document.documentElement),t=n=>e.getPropertyValue(n).trim();return[`--color-background-primary:${t("--n0")}`,`--color-background-secondary:${t("--n1")}`,`--color-border:${t("--n2")}`,`--color-text-secondary:${t("--n4")}`,`--color-text-primary:${t("--n5")}`,`--color-accent:${t("--frost")}`,`--color-accent-alt:${t("--aurora-purple")}`,`--color-teal:${t("--frost-teal")}`,`--color-green:${t("--aurora-green")}`,`--color-yellow:${t("--aurora-yellow")}`,`--color-orange:${t("--aurora-orange")}`,`--color-red:${t("--aurora-red")}`,`--font-body:${t("--font-body")}`,`--font-mono:${t("--font-mono")}`].join(";")}function cE({code:e}){const t=I.useRef(null),[n,i]=I.useState(!1),[a,s]=I.useState(120),o=e.length>oE;I.useEffect(()=>{const h=t.current;if(!h)return;const f=m=>{if(m.source!==h.contentWindow)return;const p=m.data;(p==null?void 0:p.type)==="casper:height"&&typeof p.height=="number"?s(Math.min(Math.max(p.height,40),2e3)):(p==null?void 0:p.type)==="casper:prompt"&&typeof p.text=="string"&&n3(p.text)};return window.addEventListener("message",f),()=>window.removeEventListener("message",f)},[]),I.useEffect(()=>{var h,f;n&&((f=(h=t.current)==null?void 0:h.contentWindow)==null||f.postMessage({type:"casper:theme",css:uE()},"*"))},[n]),I.useEffect(()=>{var h,f;!n||o||(f=(h=t.current)==null?void 0:h.contentWindow)==null||f.postMessage({type:"casper:html",html:e.trimStart()},"*")},[e,n,o]);const c=()=>i(!0);return o?w.jsxs("div",{className:"widget-error",children:["Widget is ",Math.round(e.length/1024)," KB, too large to render."]}):w.jsx("div",{className:"widget-wrap",style:{height:a},children:w.jsx("iframe",{ref:t,className:"widget-frame",title:"Widget",sandbox:"allow-scripts",srcDoc:sE,onLoad:c})})}const hE="show_widget";function r3(e){var a;if(!((a=e.name)!=null&&a.endsWith(hE)))return null;const t=e.input??{},n=typeof t.widget_code=="string"?t.widget_code:"";return{title:typeof t.title=="string"?t.title:"",code:n}}function fE(e){return e.replace(/_/g," ").trim()}function dE({tool:e}){const t=r3(e);return t?e.status==="failed"?w.jsxs("div",{className:"widget-error",children:["Widget ",fE(t.title)||"call"," failed."]}):t.code?w.jsx(cE,{code:t.code}):null:null}function mE(e){var s;if(!((s=e.name)!=null&&s.endsWith("show_choice")))return null;const t=e.input??{},n=typeof t.question=="string"?t.question.trim():"",i=Array.isArray(t.options)?t.options:[],a=[];for(const o of i){const c=o??{},h=typeof c.label=="string"&&c.label.trim()?c.label:"";if(!h)continue;const f=typeof c.detail=="string"&&c.detail.trim()?c.detail:void 0,m=typeof c.prompt=="string"&&c.prompt.trim()?c.prompt:h;a.push({label:h,detail:f,prompt:m})}return!n||a.length<2?null:{question:n,options:a}}function pE(e,t){const n=Fe.getState().items,i=n.findIndex(a=>a.type==="tool_call"&&a.tool.id===e);if(i===-1)return null;for(const a of n.slice(i+1)){if(a.type!=="message"||a.message.role!=="user")continue;const s=a.message.text.trim(),o=t.find(c=>c.prompt.trim()===s);return o?o.label:null}return null}function gE({data:e,toolId:t}){const n=Fe(c=>c.items),[i,a]=I.useState(null),s=i??(n.length?pE(t,e.options):null),o=c=>{s||n3(c.prompt)&&a(c.label)};return w.jsxs("div",{className:"tpl-choice",children:[w.jsx("p",{className:"tpl-choice-q",children:e.question}),w.jsx("div",{className:"tpl-choice-opts",children:e.options.map(c=>{const h=s===c.label;return w.jsxs("button",{className:`tpl-choice-opt${h?" is-picked":""}`,onClick:()=>o(c),disabled:s!==null,"aria-pressed":h,children:[w.jsx("span",{className:"tpl-choice-label",children:c.label}),c.detail&&w.jsx("span",{className:"tpl-choice-detail",children:c.detail})]},c.label)})})]})}const vE={pending:"queued",in_progress:"running",completed:"done",failed:"failed"},Ft=e=>e&&typeof e=="object"?e:null,Qe=e=>typeof e=="string"?e:void 0,t4=e=>e.split("/").pop()||e;function yE(e){const t=Array.isArray(e.operations)?e.operations:[];for(const n of t){const i=Ft(n);if(i&&typeof i.path=="string")return i.path;if(i&&Array.isArray(i.image_paths)&&typeof i.image_paths[0]=="string")return i.image_paths[0]}}function xE(e){const t=Ft(e.input);if(!t)return null;const n=Qe(t.__tool_use_purpose);if(n)return{text:n};switch(af(e)){case"write":{const i=Qe(t.path);return i?{text:t4(i),title:i}:null}case"read":{const i=yE(t);return i?{text:t4(i),title:i}:null}case"grep":{const i=Qe(t.pattern);return i?{text:i}:null}case"websearch":case"introspect":{const i=Qe(t.query)??Qe(t.doc_path);return i?{text:i}:null}case"webfetch":{const i=Qe(t.url);if(!i)return null;let a=i;try{a=new URL(i).hostname||i}catch{}return{text:a,title:i}}default:return null}}function i3(e){const t=Ft(e);if(!t||!Array.isArray(t.operations))return[];const n=[];for(const i of t.operations){const a=Ft(i);if(a&&a.mode==="Image"&&Array.isArray(a.image_paths))for(const s of a.image_paths)typeof s=="string"&&n.push(s)}return n}const n4=e=>`/api/fs/image?path=${encodeURIComponent(e)}`;function wE({tool:e}){if(r3(e))return w.jsx(dE,{tool:e});const t=mE(e);if(t)return w.jsx(gE,{data:t,toolId:e.id});const n=e.status,[i,a]=I.useState(n==="failed"),s=xE(e),o=i3(e.input);return w.jsxs("div",{className:`toolcall toolcall-${n}`,children:[w.jsxs("button",{className:"toolcall-head",onClick:()=>a(c=>!c),children:[w.jsx("span",{className:`toolcall-dot dot-${n}`}),w.jsx("span",{className:"toolcall-title",children:JC(e)}),s&&w.jsx("span",{className:"toolcall-summary",title:s.title??s.text,children:s.text}),w.jsx("span",{className:"toolcall-status",children:vE[n]??n}),w.jsx("span",{className:`toolcall-chevron ${i?"is-open":""}`,children:"▸"})]}),o.length>0&&w.jsx("div",{className:"toolcall-images",children:o.map(c=>w.jsx("a",{href:n4(c),target:"_blank",rel:"noopener noreferrer",className:"toolcall-image-link",children:w.jsx("img",{src:n4(c),alt:c.split("/").pop()??"image",className:"toolcall-image",...e3})},c))}),w.jsx(kE,{open:i,children:w.jsx("div",{className:"toolcall-body",children:bE(e)})})]})}function kE({open:e,children:t}){const[n,i]=I.useState(e);I.useEffect(()=>{e&&i(!0)},[e]);const a=s=>{s.propertyName==="grid-template-rows"&&!e&&i(!1)};return w.jsx("div",{className:`collapse ${e?"is-open":""}`,onTransitionEnd:a,children:w.jsx("div",{className:"collapse-inner",children:n?t:null})})}function bE(e){switch(af(e)){case"shell":return SE(e);case"write":return CE(e);case"read":return EE(e);case"grep":return TE(e);case"todo":return NE(e);case"webfetch":return zE(e);case"websearch":return jE(e);case"introspect":return AE(e);default:return ci(e)}}function SE(e){const t=Ft(e.input),n=Qe(t==null?void 0:t.command)??"",i=ui(e),a=Vi(i),s=a?Qe(a.stdout)??"":Ui(i),o=a?Qe(a.stderr)??"":"",c=a?String(a.exit_status??""):"",h=c!==""&&!/\b0$/.test(c);return w.jsxs(w.Fragment,{children:[n&&w.jsx(In,{code:n,lang:"bash"}),s.trim()&&w.jsx(In,{code:s,lang:"text"}),o.trim()&&w.jsxs("div",{className:"toolcall-section",children:[w.jsx("div",{className:"toolcall-label",children:"stderr"}),w.jsx(In,{code:o,lang:"text"})]}),h&&w.jsx("div",{className:"toolcall-exit",children:c})]})}function CE(e){const t=Ft(e.input),n=Qe(t==null?void 0:t.path)??"",i=Qe(t==null?void 0:t.command);if(i==="create"||i==="insert"){const c=Qe(t==null?void 0:t.content);if(c!==void 0)return w.jsx(In,{code:c,lang:t3(n)})}const a=Qe(t==null?void 0:t.oldStr),s=Qe(t==null?void 0:t.newStr);if(a!==void 0&&s!==void 0)return w.jsx(r4,{diff:Zp(a,s)});const o=eE(e.content);return o?w.jsx(r4,{diff:Zp(o.oldText,o.newText)}):ci(e)}function EE(e){const t=Ft(e.input),n=t&&Array.isArray(t.operations)?t.operations:[],i=Ui(ui(e));if(!i.trim())return i3(e.input).length>0?null:ci(e);const a=n.map(Ft).find(c=>c&&c.mode!=="Image"),s=a&&typeof a.path=="string"?a.path:"",o=(a==null?void 0:a.mode)==="Line"?t3(s):"text";return w.jsx(In,{code:i,lang:o})}function TE(e){const t=ui(e),n=Vi(t),i=n&&Array.isArray(n.results)?n.results.filter(s=>{const o=Ft(s);return!!o&&(Array.isArray(o.matches)||typeof o.file=="string")}):null;if(i&&i.length>0)return w.jsx("div",{className:"grep",children:i.map((s,o)=>{const c=Ft(s),h=c&&typeof c.file=="string"?c.file:"",f=c&&Array.isArray(c.matches)?c.matches.map(String):[];return w.jsxs("div",{className:"grep-file",children:[w.jsx("div",{className:"grep-fname",children:h}),w.jsx("pre",{className:"grep-matches",children:f.join(`
|
|
502
|
+
`)})]},o)})});const a=Ui(t);return a.trim()?w.jsx(In,{code:a,lang:"text"}):ci(e)}function NE(e){const t=tE(ui(e));return!t||t.length===0?ci(e):w.jsx("div",{className:"todo",children:t.map((n,i)=>w.jsxs("div",{className:`todo-item ${n.done?"is-done":""}`,children:[w.jsx("span",{className:"todo-check","aria-hidden":!0,children:n.done?"☑":"☐"}),w.jsx("span",{className:"todo-text",children:n.desc})]},i))})}function AE(e){const t=Ft(e.input),n=Qe(t==null?void 0:t.query)??Qe(t==null?void 0:t.doc_path),i=ui(e),a=Vi(i),s=(a?Qe(a.documentation)??sf(a):null)??Ui(i);return w.jsxs(w.Fragment,{children:[n&&w.jsxs("div",{className:"toolcall-section",children:[w.jsx("div",{className:"toolcall-label",children:"query"}),w.jsx(In,{code:n,lang:"text"})]}),s.trim()?w.jsx("div",{className:"toolcall-doc",children:w.jsx(Cl,{text:s})}):ci(e)]})}function zE(e){const t=Ft(e.input),n=Qe(t==null?void 0:t.url),i=Qe(t==null?void 0:t.mode),a=Qe(t==null?void 0:t.search_terms),s=ui(e),o=Vi(s),c=o?sf(o)??Qe(o.content)??JSON.stringify(o,null,2):Ui(s);return w.jsxs(w.Fragment,{children:[n&&w.jsxs("div",{className:"toolcall-meta",children:[w.jsx("a",{className:"toolcall-link",href:n,target:"_blank",rel:"noopener noreferrer",children:n}),i&&w.jsx("span",{className:"toolcall-tag",children:i})]}),a&&w.jsxs("div",{className:"toolcall-section",children:[w.jsx("div",{className:"toolcall-label",children:"search terms"}),w.jsx(In,{code:a,lang:"text"})]}),c.trim()?w.jsx(In,{code:c,lang:"markdown"}):ci(e)]})}function ME(e){if(!e)return null;const t=Array.isArray(e.results)?e.results:Array.isArray(e.items)?e.items:Array.isArray(e.data)?e.data:null;if(!t)return null;const n=[];for(const i of t){const a=Ft(i);a&&n.push({title:Qe(a.title)??Qe(a.name),url:Qe(a.url)??Qe(a.link)??Qe(a.href),snippet:Qe(a.snippet)??Qe(a.description)??Qe(a.content)??Qe(a.text)})}return n.length?n:null}function jE(e){var a;const t=ui(e),n=ME(Vi(t));if(!n)return ci(e);const i=Qe((a=Ft(e.input))==null?void 0:a.query);return w.jsxs(w.Fragment,{children:[i&&w.jsxs("div",{className:"toolcall-section",children:[w.jsx("div",{className:"toolcall-label",children:"query"}),w.jsx(In,{code:i,lang:"text"})]}),w.jsx("ol",{className:"websearch",children:n.map((s,o)=>w.jsxs("li",{className:"websearch-item",children:[s.url?w.jsx("a",{className:"websearch-title",href:s.url,target:"_blank",rel:"noopener noreferrer",children:s.title??s.url}):w.jsx("span",{className:"websearch-title",children:s.title??"(untitled)"}),s.url&&w.jsx("div",{className:"websearch-url",children:s.url}),s.snippet&&w.jsx("p",{className:"websearch-snippet",children:s.snippet})]},o))})]})}function ci(e){const t=e.input;let n="";if(typeof t=="string")n=t;else if(Ft(t)){const{__tool_use_purpose:h,...f}=Ft(t);n=JSON.stringify(f,null,2)}const i=ui(e),a=Vi(i),s=a?sf(a):null,o=s??(a?JSON.stringify(a,null,2):Ui(i)),c=s?"text":/^\s*[[{]/.test(o)?"json":"text";return w.jsxs(w.Fragment,{children:[n&&n!=="{}"&&w.jsxs("div",{className:"toolcall-section",children:[w.jsx("div",{className:"toolcall-label",children:"input"}),w.jsx(In,{code:n,lang:Ft(t)?"json":"text"})]}),o.trim()&&w.jsxs("div",{className:"toolcall-section",children:[w.jsx("div",{className:"toolcall-label",children:"output"}),w.jsx(In,{code:o,lang:c})]})]})}function In({code:e,lang:t}){const[n,i]=I.useState(null);return I.useEffect(()=>{let a=!1;return lf(e,t).then(s=>!a&&i(s)).catch(()=>!a&&i(null)),()=>{a=!0}},[e,t]),n?w.jsx("div",{className:"toolcode",dangerouslySetInnerHTML:{__html:n}}):w.jsx("pre",{className:"toolcode toolcode-plain",children:e})}function r4({diff:e}){return w.jsx("div",{className:"diff-body",children:e.map((t,n)=>w.jsxs("div",{className:`diff-line diff-${t.type}`,children:[w.jsx("span",{className:"diff-sign","aria-hidden":!0,children:t.type==="add"?"+":t.type==="del"?"-":" "}),w.jsx("span",{className:"diff-code",children:t.text||" "})]},n))})}const IE=4;function RE(e,t,n,i){const a=t-e,s=Math.max(0,i-n);return a>s+IE}const Ac=typeof window<"u"?window.matchMedia("(prefers-reduced-motion: reduce)"):null,LE=I.memo(function({onRetry:t,onRetryTurn:n}){const i=Fe(Q=>Q.items),a=Fe(Q=>Q.streamingText),s=Fe(Q=>Q.streamingThought),o=Fe(Q=>Q.pending),c=Fe(Q=>Q.observability.turnStatus),h=Fe(Q=>Q.observability.compacting),f=Fe(Q=>Q.activeId),m=Fe(Q=>Q.remainingOlder),p=Fe(Q=>Q.prependItems),x=I.useRef(null),k=I.useRef(null),E=I.useRef(!1),N=I.useRef(null),[z,A]=I.useState(!1),R=I.useRef(!1),_=I.useRef(0),Y=I.useRef(0),V=I.useRef(null),O=I.useRef(0),G=I.useRef(0),[te,re]=I.useState(!1);I.useEffect(()=>(R.current=!1,O.current=0,E.current=!1,N.current=null,A(!1),re(!1),()=>{G.current&&cancelAnimationFrame(G.current),G.current=0}),[f]);const q=()=>{const Q=k.current;if(!Q||!f||E.current||m<=0)return;E.current=!0,A(!0);const{offset:ne,limit:J}=Fv(m,80);N.current=Q.scrollHeight-Q.scrollTop,ot.transcriptPage(f,ne,J).then(M=>{M.items.length>0?p(M.items):(N.current=null,E.current=!1,A(!1))}).catch(()=>{N.current=null,E.current=!1,A(!1),console.error("could not load earlier transcript page")})};I.useLayoutEffect(()=>{if(N.current==null)return;const Q=k.current;Q&&(Q.scrollTop=Q.scrollHeight-N.current),N.current=null,E.current=!1,A(!1)},[i]);const fe=Q=>{const ne=Q.scrollHeight-Q.scrollTop-Q.clientHeight;re(ne>240)},ie=()=>{G.current=0;const Q=k.current;if(!Q||!R.current)return;const ne=Q.scrollHeight-Q.clientHeight,J=ne-Q.scrollTop;if(J<=1||Ac!=null&&Ac.matches){Q.scrollTop=ne,_.current=Q.scrollTop,Y.current=ne;return}Q.scrollTop+=Math.max(10,Math.ceil(J*.3)),_.current=Q.scrollTop,Y.current=ne,G.current=requestAnimationFrame(ie)},Ee=()=>{G.current||(G.current=requestAnimationFrame(ie))};I.useEffect(()=>{var ne;const Q=k.current;if(Q){if(V.current!==f&&i.length>0){V.current=f,R.current=!1,(ne=x.current)==null||ne.scrollIntoView({block:"end"}),_.current=Q.scrollTop,Y.current=Q.scrollHeight-Q.clientHeight,O.current=o.length,re(!1);return}o.length>O.current&&(R.current=!0),O.current=o.length,R.current?Ee():fe(Q)}},[i,a,s,o,f,h]);const ge=()=>{const Q=k.current;if(!Q)return;const ne=Q.scrollHeight-Q.clientHeight;RE(Q.scrollTop,_.current,ne,Y.current)&&(R.current=!1),_.current=Q.scrollTop,Y.current=ne,fe(Q),Q.scrollTop<300&&!E.current&&m>0&&q()},le=()=>{R.current=!0,re(!1),Ee()},je=i.length===0&&!a&&!s&&o.length===0;return w.jsxs("div",{className:"transcript-wrap",children:[z&&w.jsxs("div",{className:"loading-older",role:"status",children:[w.jsx(ni,{size:14}),w.jsx("span",{children:"Loading earlier messages…"})]}),w.jsxs("div",{className:"transcript",ref:k,onScroll:ge,children:[je&&w.jsxs("div",{className:"transcript-empty",children:[w.jsx("p",{className:"empty-title",children:"Casper is here."}),w.jsx("p",{className:"empty-sub",children:"Hand off a task. Casper keeps working server-side and has it ready when you get back."})]}),i.map(Q=>Q.type==="message"?Q.message.role==="thinking"?w.jsx(i4,{text:Q.message.text},Q.message.id):w.jsx("div",{className:`msg msg-${Q.message.role}`,children:Q.message.role==="assistant"?w.jsx(Cl,{text:Q.message.text}):w.jsxs(w.Fragment,{children:[f&&Q.message.imagePaths&&Q.message.imagePaths.length>0&&w.jsx("div",{className:"msg-images",children:Q.message.imagePaths.map(ne=>w.jsx("a",{href:ot.attachmentUrl(f,ne),target:"_blank",rel:"noopener noreferrer",className:"msg-image-link",children:w.jsx("img",{src:ot.attachmentUrl(f,ne),alt:ne.split("/").pop()??"image",className:"msg-image",...e3})},ne))}),Q.message.text&&w.jsx("div",{className:"msg-user-text",children:Q.message.text})]})},Q.message.id):Q.type==="tool_call"?w.jsx(wE,{tool:Q.tool},Q.tool.id):Q.type==="turn_error"?w.jsx(DE,{message:Q.message,onRetry:n},Q.id):w.jsx(PE,{summary:Q.summary},Q.id)),o.map(Q=>w.jsxs("div",{className:`msg msg-user msg-pending ${Q.status==="failed"?"is-failed":""}`,children:[w.jsx("div",{className:"msg-user-text",children:Q.text}),Q.status==="failed"&&w.jsxs("div",{className:"msg-failed",children:[w.jsx("span",{className:"msg-failed-why",children:Q.error??"Failed to send."}),w.jsx("button",{className:"msg-retry",onClick:()=>t(Q.id,Q.text),children:"Retry"})]})]},Q.id)),s&&w.jsx(i4,{text:s,live:!0}),a&&w.jsx("div",{className:"msg msg-assistant",children:w.jsx(Cl,{text:a})}),c==="running"&&!a&&!s&&w.jsxs("div",{className:"thinking",children:[w.jsx("span",{className:"thinking-dot"}),w.jsx("span",{className:"thinking-dot"}),w.jsx("span",{className:"thinking-dot"})]}),h&&w.jsx("div",{className:"compaction compaction-live",children:w.jsx("div",{className:"compaction-rule",children:w.jsxs("span",{className:"compaction-head",children:[w.jsx(ni,{size:13,className:"compaction-icon"}),w.jsx("span",{className:"compaction-label",children:"Compacting conversation…"})]})})}),w.jsx("div",{ref:x})]}),te&&w.jsx("button",{className:"scroll-to-bottom",onClick:le,"aria-label":"Scroll to latest",title:"Scroll to latest",children:w.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:w.jsx("polyline",{points:"6 9 12 15 18 9"})})})]})});function i4({text:e,live:t=!1}){const[n,i]=I.useState(t);return w.jsxs("div",{className:`thought ${t?"is-live":""}`,children:[w.jsxs("button",{className:"thought-head",onClick:()=>i(a=>!a),children:[w.jsx("span",{className:"thought-chevron",children:n?"▾":"▸"}),w.jsx("span",{className:"thought-label",children:"Thinking"})]}),n&&w.jsx("div",{className:"thought-body",children:w.jsx(Cl,{text:e})})]})}function DE({message:e,onRetry:t}){const[n,i]=I.useState(!1),[a,s]=I.useState(!1),o=M4(e),c=Fe(f=>{for(let m=f.items.length-1;m>=0;m--){const p=f.items[m];if(p.type==="message"&&p.message.role==="user")return p.message.text}return""}),h=()=>{var f;(f=navigator.clipboard)==null||f.writeText(e).then(()=>{s(!0),setTimeout(()=>s(!1),1500)},()=>{})};return w.jsxs("div",{className:"sysnote",children:[w.jsx("div",{className:"sysnote-rule",children:w.jsxs("button",{className:"sysnote-head",onClick:()=>i(f=>!f),"aria-expanded":n,children:[w.jsx("span",{"aria-hidden":!0,children:"⚠"}),w.jsx("span",{className:"sysnote-label",children:o.title}),w.jsx("span",{className:"sysnote-toggle",children:n?"Hide details":"Show details"})]})}),n&&w.jsxs("div",{className:"sysnote-body",children:[o.fix&&w.jsx("p",{className:"sysnote-fix",children:o.fix}),w.jsx("pre",{className:"sysnote-raw",children:e}),w.jsxs("div",{className:"sysnote-actions",children:[t&&c&&w.jsx("button",{className:"btn-sm is-danger",onClick:()=>t(c),children:"Retry turn"}),w.jsx("button",{className:"btn-sm",onClick:h,children:a?"Copied":"Copy details"})]})]})]})}function PE({summary:e}){const[t,n]=I.useState(!1);return w.jsxs("div",{className:"compaction",children:[w.jsx("div",{className:"compaction-rule",children:w.jsxs("button",{className:"compaction-head",onClick:()=>n(i=>!i),"aria-expanded":t,children:[w.jsx(Sv,{size:14,className:"compaction-icon"}),w.jsx("span",{className:"compaction-label",children:"Conversation compacted"}),w.jsx("span",{className:"compaction-toggle",children:t?"Hide summary":"Show summary"})]})}),t&&w.jsx("div",{className:"compaction-body",children:w.jsx(Cl,{text:e})})]})}function l3({value:e,onChange:t,label:n="Working directory",placeholder:i="leave blank for server default",hint:a="A folder that doesn't exist yet will be created.",autoFocus:s=!1}){const[o,c]=I.useState([]),[h,f]=I.useState(!1),[m,p]=I.useState(null),x=I.useRef("");I.useEffect(()=>{const z=e;x.current=z;const A=setTimeout(()=>{ot.listDirs(z).then(R=>{x.current===z&&(c(R.entries),p({path:R.target,kind:R.targetKind}))}).catch(()=>{x.current===z&&(c([]),p(null))})},150);return()=>clearTimeout(A)},[e]);const k=e.trim()!=="",E=k&&(m==null?void 0:m.kind)==="missing",N=k&&(m==null?void 0:m.kind)==="file";return w.jsxs("label",{className:"picker cwd-field",children:[w.jsx("span",{className:"picker-label",children:n}),w.jsx("input",{className:"picker-input",value:e,placeholder:i,autoComplete:"off",spellCheck:!1,autoFocus:s,onFocus:()=>f(!0),onChange:z=>{t(z.target.value),f(!0)},onBlur:()=>setTimeout(()=>f(!1),120)}),h&&o.length>0&&w.jsx("div",{className:"cwd-suggestions",children:o.map(z=>w.jsx("button",{type:"button",className:"cwd-suggestion",onMouseDown:A=>A.preventDefault(),onClick:()=>{t(z),c([])},children:z},z))}),E&&w.jsxs("span",{className:"picker-hint cwd-will-create",children:["Doesn't exist yet - this folder will be created: ",w.jsx("code",{children:m.path})]}),N&&w.jsxs("span",{className:"picker-hint cwd-is-file",children:["That path is a file, not a folder: ",w.jsx("code",{children:m.path})]}),!E&&!N&&w.jsx("span",{className:"picker-hint",children:a})]})}function FE({sessionId:e,currentCwd:t,onChanged:n,onClose:i}){const[a,s]=I.useState(t??""),[o,c]=I.useState(!1),[h,f]=I.useState(null),m=async()=>{const p=a.trim();if(!(!p||o)){c(!0),f(null);try{const x=await ot.setSessionCwd(e,p);n(x.cwd),i()}catch(x){f(x.message)}finally{c(!1)}}};return w.jsx("div",{className:"sheet-backdrop",onClick:i,children:w.jsxs("div",{className:"sheet",onClick:p=>p.stopPropagation(),children:[w.jsx("div",{className:"sheet-handle"}),w.jsx("h2",{className:"sheet-title",children:"Change working directory"}),w.jsx(l3,{value:a,onChange:s,placeholder:"/path/to/folder",hint:"The session keeps its transcript. A folder that doesn't exist yet will be created.",autoFocus:!0}),h&&w.jsx("div",{className:"sheet-error",children:h}),w.jsxs("div",{className:"sheet-actions",children:[w.jsx("button",{className:"btn-ghost",onClick:i,disabled:o,children:"Cancel"}),w.jsx("button",{className:"btn-primary",onClick:m,disabled:o||!a.trim(),children:o?"Saving…":"Change folder"})]})]})})}function OE(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function BE({name:e}){var n;switch((n=e.split(".").pop())==null?void 0:n.toLowerCase()){case"ts":case"tsx":case"js":case"jsx":case"mjs":case"py":case"rb":case"go":case"rs":case"java":case"c":case"cpp":case"h":case"hpp":case"vue":case"svelte":return w.jsx(fm,{size:15,className:"ftree-icon-svg ftree-icon-code"});case"json":case"yaml":case"yml":case"toml":case"ini":case"env":case"lock":return w.jsx(pv,{size:15,className:"ftree-icon-svg ftree-icon-config"});case"md":case"txt":case"rst":case"log":case"csv":return w.jsx(gv,{size:15,className:"ftree-icon-svg ftree-icon-text"});case"css":case"scss":case"less":case"sass":return w.jsx(yv,{size:15,className:"ftree-icon-svg ftree-icon-style"});case"html":case"svg":case"xml":return w.jsx(fm,{size:15,className:"ftree-icon-svg ftree-icon-markup"});case"png":case"jpg":case"jpeg":case"gif":case"webp":case"bmp":case"ico":case"avif":return w.jsx(vv,{size:15,className:"ftree-icon-svg ftree-icon-image"});case"sh":case"bash":case"zsh":case"fish":case"bat":case"ps1":return w.jsx(xv,{size:15,className:"ftree-icon-svg ftree-icon-terminal"});default:return w.jsx(mv,{size:15,className:"ftree-icon-svg"})}}const _E=new Set(["png","jpg","jpeg","gif","webp","svg","bmp","ico","avif"]);function $E(e){const t=e.toLowerCase(),n=t.lastIndexOf("."),i=n>0?t.slice(n+1):"";return _E.has(i)?"image":i==="pdf"?"pdf":i==="html"||i==="htm"?"html":i==="md"||i==="markdown"?"markdown":"text"}const HE={ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",mjs:"javascript",cjs:"javascript",json:"json",jsonl:"json",yaml:"yaml",yml:"yaml",md:"markdown",markdown:"markdown",html:"html",htm:"html",xml:"xml",css:"css",scss:"css",less:"css",py:"python",rs:"rust",go:"go",java:"java",c:"c",h:"c",cpp:"cpp",cc:"cpp",cxx:"cpp",hpp:"cpp",cs:"csharp",rb:"ruby",php:"php",kt:"kotlin",kts:"kotlin",swift:"swift",zig:"zig",lua:"lua",tex:"latex",toml:"toml",ini:"ini",cfg:"ini",conf:"ini",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",dockerfile:"dockerfile",sql:"sql",diff:"diff",patch:"diff"};function qE(e){const t=e.toLowerCase();if(t==="dockerfile")return"dockerfile";if(t==="makefile")return"make";const n=t.split(".").pop()??"";return HE[n]??""}function a3({entry:e,sessionId:t,depth:n,onPreview:i}){const[a,s]=I.useState({expanded:!1,children:null,loading:!1}),o=I.useCallback(async()=>{if(e.type==="directory"&&!a.loading){if(a.expanded){s(f=>({...f,expanded:!1}));return}if(a.children===null){s(f=>({...f,loading:!0}));try{const f=await ot.tree(t,e.path);s({expanded:!0,children:f.entries,loading:!1})}catch{s(f=>({...f,loading:!1}))}}else s(f=>({...f,expanded:!0}))}},[e,t,a.expanded,a.children,a.loading]),c=I.useCallback(()=>{e.type==="file"&&i(e)},[e,i]),h=n*16;return e.type==="directory"?w.jsxs(w.Fragment,{children:[w.jsxs("button",{className:"ftree-row ftree-dir",onClick:o,style:{paddingLeft:`${h+8}px`},children:[w.jsx("span",{className:`ftree-chevron ${a.expanded?"is-open":""}`,children:a.loading?w.jsx(ni,{size:12}):w.jsx(L4,{size:12,className:"ftree-chevron-icon"})}),w.jsx("span",{className:"ftree-icon",children:a.expanded?w.jsx(dv,{size:15,className:"ftree-icon-svg ftree-icon-folder"}):w.jsx(O4,{size:15,className:"ftree-icon-svg ftree-icon-folder"})}),w.jsx("span",{className:"ftree-name",children:e.name})]}),a.expanded&&a.children&&w.jsxs("div",{className:"ftree-children",children:[a.children.map(f=>w.jsx(a3,{entry:f,sessionId:t,depth:n+1,onPreview:i},f.path)),a.children.length===0&&w.jsx("div",{className:"ftree-empty",style:{paddingLeft:`${h+24}px`},children:"Empty"})]})]}):w.jsxs("div",{className:"ftree-row ftree-file",style:{paddingLeft:`${h+8}px`},onClick:c,children:[w.jsx("span",{className:"ftree-chevron ftree-chevron-spacer","aria-hidden":"true"}),w.jsx("span",{className:"ftree-icon",children:w.jsx(BE,{name:e.name})}),w.jsx("span",{className:"ftree-name",children:e.name}),e.size!=null&&w.jsx("span",{className:"ftree-size",children:OE(e.size)})]})}function UE({preview:e,sessionId:t,onClose:n}){const[i,a]=I.useState(!1),[s,o]=I.useState({}),c=()=>{window.open(ot.downloadUrl(t,e.path),"_blank")},h=k=>{k.target===k.currentTarget&&n()};I.useEffect(()=>{const k=E=>{E.key==="Escape"&&n()};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[n]);const f=s[e.path]??!1,m=e.kind==="html"||e.kind==="markdown",p=m&&!f,x=e.kind!=="image"&&e.kind!=="pdf"&&!p;return w.jsx("div",{className:"fpreview-backdrop",onClick:h,children:w.jsxs("div",{className:`fpreview-modal${i?" fpreview-full":""}`,children:[w.jsxs("div",{className:"fpreview-header",children:[m&&!e.error&&w.jsxs("div",{className:"fpreview-seg",role:"group","aria-label":"Preview mode",children:[w.jsx("button",{className:`fpreview-seg-btn${f?"":" is-active"}`,onClick:()=>o(k=>({...k,[e.path]:!1})),title:"Rendered","aria-label":"Rendered","aria-pressed":!f,children:w.jsx(Cv,{size:17})}),w.jsx("button",{className:`fpreview-seg-btn${f?" is-active":""}`,onClick:()=>o(k=>({...k,[e.path]:!0})),title:"Source","aria-label":"Source","aria-pressed":f,children:w.jsx(Ev,{size:17})})]}),w.jsx("span",{className:"fpreview-name",title:e.path,children:e.name}),w.jsx("button",{className:"fpreview-dl",onClick:c,title:"Download file","aria-label":"Download file",children:w.jsx(wv,{size:18})}),w.jsx("button",{className:"fpreview-full-btn",onClick:()=>a(k=>!k),title:i?"Exit fullscreen":"Fullscreen","aria-label":i?"Exit fullscreen":"Fullscreen",children:i?w.jsx(Nv,{size:18}):w.jsx(Tv,{size:18})}),w.jsx("button",{className:"fpreview-close",onClick:n,"aria-label":"Close preview",children:w.jsx(D4,{size:18})})]}),w.jsxs("div",{className:"fpreview-body",children:[e.loading&&w.jsx("div",{className:"fpreview-loading",children:w.jsx(ni,{size:48})}),e.error&&w.jsx("div",{className:"ftree-error",children:e.error}),!e.loading&&!e.error&&e.kind==="image"&&w.jsx("img",{src:ot.previewUrl(t,e.path),alt:e.name,className:"fpreview-image"}),!e.error&&e.kind==="pdf"&&w.jsx("iframe",{src:ot.previewUrl(t,e.path),title:e.name,className:"fpreview-pdf"}),!e.error&&e.kind==="html"&&p&&w.jsx("iframe",{src:`${ot.previewUrl(t,e.path)}&raw=1`,title:e.name,className:"fpreview-html",sandbox:"allow-scripts allow-forms"}),!e.loading&&!e.error&&e.kind==="markdown"&&p&&e.content!==null&&w.jsx("div",{className:"fpreview-md",children:w.jsx(Cl,{text:e.content})}),!e.loading&&!e.error&&x&&e.highlightedHtml&&w.jsx("div",{className:"fpreview-highlighted",dangerouslySetInnerHTML:{__html:e.highlightedHtml}}),!e.loading&&!e.error&&x&&!e.highlightedHtml&&e.content!==null&&w.jsx("pre",{className:"fpreview-code",children:e.content})]})]})})}function VE({sessionId:e,onClose:t}){var Y;const[n,i]=I.useState([]),[a,s]=I.useState(""),[o,c]=I.useState(!0),[h,f]=I.useState(null),[m,p]=I.useState(null),[x,k]=I.useState(!1),E=Fe(V=>V.sessions),N=Fe(V=>V.setSessions),z=(Y=E.find(V=>V.sessionId===e))==null?void 0:Y.cwd,A=I.useCallback(async()=>{c(!0),f(null);try{const V=await ot.tree(e);i(V.entries),s(V.cwd)}catch(V){f(V.message)}finally{c(!1)}},[e]);I.useEffect(()=>{A()},[A]);const R=I.useCallback(async V=>{const O=$E(V.name),G=O!=="image"&&O!=="pdf";if(p({path:V.path,name:V.name,content:null,highlightedHtml:null,kind:O,loading:G,error:null}),G)try{const te=ot.previewUrl(e,V.path),re=await fetch(te,{credentials:"same-origin"});if(!re.ok){const ie=await re.text();throw new Error(ie||`HTTP ${re.status}`)}const q=await re.text();p(ie=>ie&&ie.path===V.path?{...ie,content:q,loading:!1}:ie);const fe=qE(V.name);if(fe){const ie=await lf(q,fe);ie&&p(Ee=>Ee&&Ee.path===V.path?{...Ee,highlightedHtml:ie}:Ee)}}catch(te){p(re=>re&&re.path===V.path?{...re,error:te.message,loading:!1}:re)}},[e]),_=I.useCallback(()=>p(null),[]);return w.jsxs("div",{className:"ftree-panel",children:[w.jsxs("div",{className:"ftree-header",children:[w.jsx("span",{className:"ftree-title",title:a,children:a?a.split("/").pop():"Files"}),w.jsx("button",{className:"ftree-refresh",onClick:()=>k(!0),title:"Change working directory","aria-label":"Change working directory",children:w.jsx(O4,{size:14})}),w.jsx("button",{className:"ftree-refresh",onClick:A,title:"Refresh file tree","aria-label":"Refresh file tree",children:w.jsx(kv,{size:14})}),t&&w.jsx("button",{className:"ftree-close",onClick:t,title:"Close file tree","aria-label":"Close file tree",children:w.jsx(D4,{size:15})})]}),a&&w.jsx("div",{className:"ftree-cwd",title:a,children:a}),w.jsxs("div",{className:"ftree-list",children:[o&&w.jsx("div",{className:"ftree-loading",children:"Loading…"}),h&&w.jsxs("div",{className:"ftree-error",children:[h,w.jsx("button",{className:"ftree-repoint",onClick:()=>k(!0),children:"Change folder…"})]}),!o&&!h&&n.length===0&&w.jsx("div",{className:"ftree-empty",children:"No files"}),!o&&!h&&n.map(V=>w.jsx(a3,{entry:V,sessionId:e,depth:0,onPreview:R},V.path))]}),m&&w.jsx(UE,{preview:m,sessionId:e,onClose:_}),x&&w.jsx(FE,{sessionId:e,currentCwd:a||z,onChanged:V=>{N(E.map(O=>O.sessionId===e?{...O,cwd:V}:O)),A()},onClose:()=>k(!1)})]})}function s3({ariaLabel:e,value:t,options:n,onChange:i}){const[a,s]=I.useState(!1),[o,c]=I.useState(0),h=I.useRef(null),f=n.find(x=>x.value===t);I.useEffect(()=>{if(!a)return;const x=k=>{h.current&&!h.current.contains(k.target)&&s(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[a]),I.useEffect(()=>{if(a){const x=n.findIndex(k=>k.value===t);c(x>=0?x:0)}},[a,n,t]);const m=x=>{i(x),s(!1)},p=x=>{if(!a){(x.key==="Enter"||x.key===" "||x.key==="ArrowDown")&&(x.preventDefault(),s(!0));return}if(x.key==="Escape")s(!1);else if(x.key==="ArrowDown")x.preventDefault(),c(k=>Math.min(k+1,n.length-1));else if(x.key==="ArrowUp")x.preventDefault(),c(k=>Math.max(k-1,0));else if(x.key==="Enter"){x.preventDefault();const k=n[o];k&&m(k.value)}};return w.jsxs("div",{className:"dd",ref:h,children:[w.jsxs("button",{type:"button",className:`dd-trigger ${a?"is-open":""}`,"aria-haspopup":"listbox","aria-expanded":a,onClick:()=>s(x=>!x),onKeyDown:p,"aria-label":e,children:[w.jsx("span",{className:"dd-value",children:(f==null?void 0:f.label)??t??"Select…"}),w.jsx(L4,{size:13,className:"dd-chevron"})]}),a&&w.jsx("div",{className:"dd-panel",role:"listbox",children:n.map((x,k)=>w.jsxs("button",{type:"button",role:"option","aria-selected":x.value===t,className:`dd-option ${k===o?"is-active":""} ${x.value===t?"is-selected":""}`,onMouseEnter:()=>c(k),onClick:()=>m(x.value),children:[w.jsx("span",{className:"dd-check",children:x.value===t&&w.jsx(cv,{size:15})}),w.jsx("span",{className:"dd-option-label",children:x.label}),x.hint&&w.jsx("span",{className:"dd-option-hint",children:x.hint})]},x.value))})]})}function o3({value:e,onChange:t}){const n=Fe(i=>i.models);return w.jsx(s3,{ariaLabel:"Model",value:e,onChange:t,options:n.map(i=>({value:i.modelId,label:i.modelName,hint:`${i.rateMultiplier}x`}))})}function u3({value:e,onChange:t}){const n=Fe(s=>s.modes),i=Fe(s=>s.agents),a=n.length>0?n:i;return w.jsx(s3,{ariaLabel:"Agent",value:e,onChange:t,options:a.map(s=>({value:s.id,label:s.name}))})}const qn=18,uh=2.5,ch=(qn-uh)/2,l4=2*Math.PI*ch;function WE(e){return e>85?"var(--aurora-red)":e>60?"var(--aurora-orange)":"var(--frost)"}const a4=new Intl.NumberFormat;function GE({onCompact:e}){var N;const t=Fe(z=>z.observability.contextUsagePercentage),n=Fe(z=>z.observability.compacting),i=Fe(z=>z.observability.turnStatus),a=Fe(z=>z.activeId),s=Fe(z=>z.currentModelId),o=Fe(z=>z.models),[c,h]=I.useState(!1),f=I.useRef(null);I.useEffect(()=>{if(!c)return;const z=R=>{f.current&&!f.current.contains(R.target)&&h(!1)},A=R=>{R.key==="Escape"&&h(!1)};return document.addEventListener("mousedown",z),document.addEventListener("keydown",A),()=>{document.removeEventListener("mousedown",z),document.removeEventListener("keydown",A)}},[c]);const m=Math.max(0,Math.min(100,t)),p=WE(m),x=m/100*l4,k=(N=o.find(z=>z.modelId===s))==null?void 0:N.contextWindowTokens,E=k?Math.round(m/100*k):void 0;return w.jsxs("div",{className:"ctx",ref:f,children:[w.jsx("button",{type:"button",className:"ctx-btn",onClick:()=>h(z=>!z),"aria-haspopup":"dialog","aria-expanded":c,"aria-label":`Context ${m.toFixed(0)}% used`,title:`Context ${m.toFixed(0)}% used`,children:w.jsx("svg",{width:qn,height:qn,viewBox:`0 0 ${qn} ${qn}`,"aria-hidden":!0,children:w.jsxs("g",{transform:`rotate(-90 ${qn/2} ${qn/2})`,children:[w.jsx("circle",{cx:qn/2,cy:qn/2,r:ch,fill:"none",stroke:"var(--n2)",strokeWidth:uh}),w.jsx("circle",{cx:qn/2,cy:qn/2,r:ch,fill:"none",stroke:p,strokeWidth:uh,strokeLinecap:"round",strokeDasharray:`${x} ${l4-x}`})]})})}),c&&w.jsxs("div",{className:"ctx-pop",role:"dialog","aria-label":"Context usage",children:[w.jsxs("div",{className:"ctx-pop-head",children:[w.jsx("span",{className:"ctx-pop-title",children:"Context used"}),w.jsxs("span",{className:"ctx-pop-pct",style:{color:p},children:[m.toFixed(1),"%"]})]}),w.jsx("div",{className:"ctx-pop-bar",children:w.jsx("span",{className:"ctx-pop-bar-fill",style:{width:`${m}%`,background:p}})}),k?w.jsxs("dl",{className:"ctx-pop-rows",children:[w.jsxs("div",{className:"ctx-pop-row",children:[w.jsx("dt",{children:"Used"}),w.jsxs("dd",{children:[a4.format(E??0)," tokens"]})]}),w.jsxs("div",{className:"ctx-pop-row",children:[w.jsx("dt",{children:"Window"}),w.jsxs("dd",{children:[a4.format(k)," tokens"]})]})]}):w.jsx("p",{className:"ctx-pop-note",children:"Token counts need a selected model’s window size."}),w.jsx("button",{type:"button",className:"ctx-pop-compact",disabled:!a||n||i!=="idle",onClick:()=>{h(!1),e()},children:n?"Compacting…":"Compact conversation"})]})]})}const s4=new Set(["image/png","image/jpeg","image/gif","image/webp","image/svg+xml"]);function YE({sessionId:e,onSend:t,onCancel:n,onCompact:i,onChangeModel:a,onChangeAgent:s,connStatus:o}){const[c,h]=I.useState(""),[f,m]=I.useState([]),[p,x]=I.useState(!1),[k,E]=I.useState(null),N=Fe(J=>J.observability.turnStatus),z=Fe(J=>J.observability.compacting),A=Fe(J=>J.currentModeId),R=Fe(J=>J.currentModelId),_=N==="running",Y=N==="cancelling",V=o==="connected",O=I.useRef(null),G=I.useRef(null),te=J=>new Promise((M,F)=>{const K=new FileReader;K.onload=()=>M(K.result.split(",")[1]??""),K.onerror=()=>F(new Error("Failed to read file")),K.readAsDataURL(J)}),re=I.useCallback(()=>{const J=G.current;J&&(J.style.height="auto",J.style.height=`${Math.min(J.scrollHeight,200)}px`)},[]);I.useEffect(()=>{re()},[c,re]);const q=I.useCallback(J=>{const M=J.map(F=>{const K=s4.has(F.type);return{id:`att-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,file:F,isImage:K,previewUrl:K?URL.createObjectURL(F):void 0}});m(F=>[...F,...M])},[]),fe=async(J,M,F)=>{const K=[];J.length>0&&K.push({type:"text",text:yo+J.map(j=>j.path).join(", ")+`
|
|
503
|
+
`});for(let j=0;j<J.length;j++){const Z=J[j],xe=M[j];if(Z){if(Z.kind==="image"&&xe)try{const ke=await te(xe.file);K.push({type:"image",data:ke,mimeType:xe.file.type})}catch{}else if(Z.kind==="text"&&xe)try{const ke=await xe.file.text();K.push({type:"text",text:`[File: ${Z.path}]
|
|
504
|
+
\`\`\`
|
|
505
|
+
${ke}
|
|
506
|
+
\`\`\``})}catch{}}}return F&&K.push({type:"text",text:F}),K},ie=async()=>{const J=c.trim();if(!J&&f.length===0||_||Y||z||!V||p)return;let M=[];const F=f;if(F.length>0){if(!e){E("No active session to upload to.");return}x(!0),E(null);try{M=(await ot.uploadFiles(e,F.map(Z=>Z.file))).files}catch(j){E(j.message),x(!1);return}x(!1)}const K=await fe(M,F,J);K.length!==0&&(t(K),h(""),F.forEach(j=>j.previewUrl&&URL.revokeObjectURL(j.previewUrl)),m([]),requestAnimationFrame(()=>{G.current&&(G.current.style.height="auto")}))},Ee=J=>{J.key==="Enter"&&!J.shiftKey&&(J.preventDefault(),ie())},ge=I.useCallback(J=>{var K;const M=(K=J.clipboardData)==null?void 0:K.items;if(!M)return;const F=[];for(const j of Array.from(M))if(j.kind==="file"&&s4.has(j.type)){const Z=j.getAsFile();Z&&F.push(Z)}F.length>0&&(J.preventDefault(),q(F))},[q]),le=J=>{J.target.files&&q(Array.from(J.target.files)),J.target.value=""},je=J=>{m(M=>{const F=M.find(K=>K.id===J);return F!=null&&F.previewUrl&&URL.revokeObjectURL(F.previewUrl),M.filter(K=>K.id!==J)})};I.useEffect(()=>()=>{m(J=>(J.forEach(M=>M.previewUrl&&URL.revokeObjectURL(M.previewUrl)),J))},[]);const Q=o==="closed"?"Offline - reconnecting when possible":o==="reconnecting"?"Reconnecting…":o==="resyncing"?"Resyncing…":V?p?"Uploading…":Y?"Stopping…":z?"Compacting conversation…":_?"Casper is working…":"Ask Casper to build something…":"Connecting…",ne=(c.trim()||f.length>0)&&!_&&!Y&&!z&&!p&&V;return w.jsxs("div",{className:"composer",children:[k&&w.jsx("div",{className:"composer-error",children:k}),f.length>0&&w.jsx("div",{className:"composer-attachments",children:f.map(J=>w.jsxs("div",{className:"composer-att",children:[J.isImage&&J.previewUrl?w.jsx("img",{src:J.previewUrl,alt:J.file.name,className:"composer-att-img"}):w.jsxs("div",{className:"composer-att-file",title:J.file.name,children:[w.jsx("span",{className:"composer-att-file-icon",children:"📄"}),w.jsx("span",{className:"composer-att-file-name",children:J.file.name})]}),w.jsx("button",{className:"composer-att-remove",onClick:()=>je(J.id),"aria-label":`Remove ${J.file.name}`,children:"×"})]},J.id))}),w.jsxs("div",{className:"composer-box",children:[w.jsx("textarea",{ref:G,className:"composer-input",value:c,onChange:J=>h(J.target.value),onKeyDown:Ee,onPaste:ge,placeholder:Q,rows:1}),w.jsxs("div",{className:"composer-actions",children:[w.jsx("button",{className:"composer-plus",onClick:()=>{var J;return(J=O.current)==null?void 0:J.click()},disabled:!V||p,title:"Add photos & files","aria-label":"Add photos and files",children:w.jsx(P4,{size:18})}),w.jsxs("div",{className:"composer-actions-right",children:[w.jsx(GE,{onCompact:i}),w.jsx(u3,{value:A,onChange:s}),w.jsx(o3,{value:R,onChange:a}),_?w.jsx("button",{className:"composer-btn composer-stop",onClick:n,title:"Stop","aria-label":"Stop",children:w.jsx(hm,{size:15})}):Y?w.jsx("button",{className:"composer-btn composer-stop",disabled:!0,title:"Stopping…","aria-label":"Stopping",children:w.jsx(hm,{size:15})}):w.jsx("button",{className:"composer-btn composer-send",onClick:ie,disabled:!ne,title:p?"Uploading…":"Send","aria-label":p?"Uploading":"Send",children:p?w.jsx(ni,{size:15}):w.jsx(fv,{size:17})})]})]})]}),w.jsx("input",{ref:O,type:"file",multiple:!0,onChange:le,className:"composer-file-input"})]})}const XE={connecting:{cls:"busy",label:"Connecting"},replaying:{cls:"busy",label:"Catching up"},connected:{cls:"ok",label:"Live"},reconnecting:{cls:"busy",label:"Reconnecting"},resyncing:{cls:"busy",label:"Resyncing"},closed:{cls:"down",label:"Offline"}};function KE({status:e}){const{cls:t,label:n}=XE[e];return w.jsxs("span",{className:`conndot conndot-${t}`,children:[w.jsx("span",{className:"conndot-blip"}),w.jsx("span",{className:"conndot-label",children:n})]})}function QE({hasActive:e,loadingSessionId:t,connStatus:n,creating:i,createError:a,onRetryCreate:s,onDismissError:o,onBack:c,onSend:h,onRetry:f,onRetryTurn:m,onCancel:p,onNew:x,onChangeModel:k,onChangeAgent:E,onCompact:N}){const z=Fe(O=>{var G;return(G=O.sessions.find(te=>te.sessionId===O.activeId))==null?void 0:G.title}),A=Fe(O=>O.activeId),R=Fe(O=>O.sessionNotice),_=Fe(O=>O.dismissSessionNotice),[Y,V]=I.useState(!1);return t?w.jsxs("main",{className:"chatpane",children:[w.jsxs("header",{className:"chat-head",children:[w.jsx("button",{className:"backbtn",onClick:c,"aria-label":"Back to sessions",children:"‹"}),w.jsx("span",{className:"chat-title",children:"Opening session…"})]}),w.jsx("div",{className:"chat-blank",children:w.jsx(ni,{size:48,className:"chat-spinner"})})]}):e?i?w.jsxs("main",{className:"chatpane",children:[w.jsx("header",{className:"chat-head",children:w.jsx("span",{className:"chat-title",children:"New session"})}),w.jsxs("div",{className:"chat-blank",children:[w.jsx(ni,{size:32,className:"chat-spinner"}),w.jsx("p",{className:"chat-blank-title",children:"Starting session"}),w.jsx("p",{className:"chat-blank-sub",children:"Spinning up Kiro and connecting. This can take a few seconds."})]})]}):a?w.jsxs("main",{className:"chatpane",children:[w.jsxs("header",{className:"chat-head",children:[w.jsx("button",{className:"backbtn",onClick:c,"aria-label":"Back to sessions",children:"‹"}),w.jsx("span",{className:"chat-title",children:"New session"})]}),w.jsxs("div",{className:"chat-blank",children:[w.jsx("p",{className:"chat-blank-title",children:"Couldn't start the session"}),w.jsx("p",{className:"chat-blank-sub",children:a}),w.jsxs("div",{className:"chat-error-actions",children:[w.jsx("button",{className:"btn-primary",onClick:s,children:"Try again"}),w.jsx("button",{className:"btn-ghost",onClick:o,children:"Back to sessions"})]})]})]}):w.jsxs("main",{className:`chatpane chatpane-split ${Y?"has-tree":""}`,children:[w.jsxs("div",{className:"chat-col",children:[w.jsxs("header",{className:"chat-head",children:[w.jsx("button",{className:"backbtn",onClick:c,"aria-label":"Back to sessions",children:"‹"}),w.jsx("span",{className:"chat-title",title:z,children:z??"Session"}),w.jsx(KE,{status:n}),w.jsx("button",{className:`ftree-toggle ${Y?"is-active":""}`,onClick:()=>V(O=>!O),title:"Toggle file tree","aria-label":"Toggle file tree","aria-pressed":Y,children:w.jsx(bv,{size:18})})]}),w.jsx("div",{className:"chat-body",children:w.jsx(LE,{onRetry:f,onRetryTurn:m})}),w.jsxs("div",{className:"composer-wrap",children:[R&&w.jsxs("div",{className:"notice-banner",role:"alert",children:[w.jsx("span",{className:"notice-icon","aria-hidden":!0,children:"⚠"}),w.jsxs("div",{className:"notice-text",children:[w.jsx("p",{className:"notice-title",children:R.title}),R.fix&&w.jsx("p",{className:"notice-sub",children:R.fix})]}),w.jsx("button",{className:"notice-x",onClick:_,"aria-label":"Dismiss",children:"×"})]}),w.jsx(YE,{sessionId:A,onSend:h,onCancel:p,onCompact:N,onChangeModel:k,onChangeAgent:E,connStatus:n})]})]}),A&&w.jsx("aside",{className:`ftree-aside ${Y?"is-open":""}`,children:Y&&w.jsx(VE,{sessionId:A,onClose:()=>V(!1)})}),A&&Y&&w.jsx("div",{className:"ftree-backdrop",onClick:()=>V(!1),"aria-hidden":!0})]}):w.jsx("main",{className:"chatpane",children:w.jsxs("div",{className:"chat-blank",children:[w.jsx("p",{className:"chat-blank-title",children:"Pick a session"}),w.jsx("p",{className:"chat-blank-sub",children:"Choose one on the left, or start a new one. Casper keeps working even after you close the app."}),w.jsx("button",{className:"btn-primary",onClick:x,children:"New session"})]})})}function JE({onCreate:e,onClose:t}){var x;const n=Fe(k=>k.models),i=Fe(k=>k.defaultAgentId),[a,s]=I.useState(""),[o,c]=I.useState(),[h,f]=I.useState(),m=o??i,p=h??((x=n.find(k=>k.isDefault))==null?void 0:x.modelId)??"auto";return w.jsx("div",{className:"sheet-backdrop",onClick:t,children:w.jsxs("div",{className:"sheet",onClick:k=>k.stopPropagation(),children:[w.jsx("div",{className:"sheet-handle"}),w.jsx("h2",{className:"sheet-title",children:"New session"}),w.jsx(l3,{value:a,onChange:s}),w.jsx(u3,{value:m,onChange:c}),w.jsx(o3,{value:p,onChange:f}),w.jsxs("div",{className:"sheet-actions",children:[w.jsx("button",{className:"btn-ghost",onClick:t,children:"Cancel"}),w.jsx("button",{className:"btn-primary",onClick:()=>e({cwd:a.trim(),agentId:m,modelId:p}),children:"Start session"})]})]})})}function ZE({onReady:e}){const[t,n]=I.useState(""),[i,a]=I.useState(null),[s,o]=I.useState(!1),c=async()=>{o(!0),a(null);try{await nv(t.trim()),e()}catch(h){a(h.message)}finally{o(!1)}};return w.jsxs("div",{className:"gate",children:[w.jsx("img",{className:"gate-logo",src:"/logo.svg",alt:""}),w.jsx("h1",{className:"gate-title",children:"Casper"}),w.jsx("p",{className:"gate-sub",children:"Enter your access token to continue."}),w.jsx("input",{className:"gate-input",type:"password",value:t,placeholder:"access token",onChange:h=>n(h.target.value),onKeyDown:h=>h.key==="Enter"&&c()}),i&&w.jsx("p",{className:"gate-error",children:i}),w.jsx("button",{className:"btn-primary gate-btn",onClick:c,disabled:s,children:s?"Checking…":"Continue"}),w.jsxs("p",{className:"gate-hint",children:["Don't have it? On the machine running Casper, run ",w.jsx("code",{children:"casper token"}),"."]})]})}const eT={prompt:"Message",cancel:"Stop",set_mode:"Agent change",set_model:"Model change",exec_command:"Command"};function tT(){const[e,t]=I.useState("checking");return I.useEffect(()=>{e==="checking"&&ot.listSessions().then(()=>t("ready")).catch(()=>t("gate"))},[e]),e==="checking"?w.jsx("div",{className:"app-splash"}):e==="gate"?w.jsx(ZE,{onReady:()=>t("ready")}):w.jsx(O7,{children:w.jsxs(m7,{children:[w.jsxs(ba,{element:w.jsx(nT,{onLock:()=>t("gate")}),children:[w.jsx(ba,{index:!0,element:null}),w.jsx(ba,{path:"sessions/:sessionId",element:null})]}),w.jsx(ba,{path:"*",element:w.jsx(f7,{to:"/",replace:!0})})]})})}function nT({onLock:e}){var j;const t=Fe(),n=gh(),i=((j=Q6(uv))==null?void 0:j.params.sessionId)??null,[a,s]=I.useState(!1),[o,c]=I.useState("closed"),[h,f]=I.useState(!1),[m,p]=I.useState(null),x=I.useRef(null),k=I.useRef(null),E=I.useRef(null),N=I.useRef(0),z=I.useCallback(()=>{ot.listSessions().then(Z=>t.setSessions(Z.sessions)).catch(()=>{})},[t]);I.useEffect(()=>{ot.models().then(Z=>t.setModels(Z.models)).catch(()=>{}),ot.agents().then(Z=>t.setAgents(Z.agents,Z.defaultAgentId)).catch(()=>{}),z()},[]);const A=I.useCallback(()=>{var Z;(Z=k.current)==null||Z.close(),k.current=null},[]),R=I.useCallback(()=>{A(),t.clearActive(),e()},[A,e,t]),_=I.useCallback(async Z=>{if(t.activeId===Z)return;A(),c("connecting"),Fe.getState().setLoadingSession(Z);let xe;try{xe=await ot.getSession(Z)}catch(be){c("closed"),Fe.getState().setLoadingSession(null),console.error("open session failed:",be),n("/",{replace:!0});return}t.loadDetail(xe);const ke=new ov(Z,{onEvent:be=>{Fe.getState().applyEvent(be),be.payload.kind==="turn_ended"&&setTimeout(z,1200)},onStatus:c,onResync:async()=>{var Pe;const be=await ot.getSession(Z);Fe.getState().loadDetail(be),(Pe=k.current)==null||Pe.reset(be.head)},onAck:(be,Pe,_e)=>{if(Pe)return;const it=_e??"The server rejected the request.";if(be==="prompt"){E.current&&Fe.getState().markPendingFailed(E.current,it);return}console.error(`${eT[be]??be} rejected:`,it)},onUnauthorized:R,onServerError:be=>{console.error("server error:",be)}},xe.head);k.current=ke,ke.connect()},[A,R,n,z,t]),Y=I.useCallback(()=>n("/"),[n]),V=I.useCallback(Z=>{Z!==Fe.getState().activeId&&Fe.getState().setLoadingSession(Z)},[]),O=I.useCallback(Z=>{V(Z),n(R4(Z))},[V,n]),G=I.useRef(void 0);I.useEffect(()=>{G.current!==i&&(G.current=i,i?_(i):(A(),t.clearActive(),z()))},[i,_,A,z,t]);const te=I.useCallback(async Z=>{s(!1),A(),c("connecting"),p(null),f(!0),x.current=Z;try{const xe=await ot.createSession({cwd:Z.cwd||void 0,agentId:Z.agentId,modelId:Z.modelId});z(),O(xe.summary.sessionId)}catch(xe){c("closed"),p(xe instanceof Error?xe.message:"Failed to create session")}finally{f(!1)}},[A,O,z]),re=I.useCallback(()=>{x.current&&te(x.current)},[te]),q=I.useCallback(()=>{p(null),Y()},[Y]),fe=I.useCallback(async Z=>{try{await ot.deleteSession(Z)}catch{console.error("delete session failed"),z();return}t.activeId===Z?Y():z()},[Y,z,t]),ie=I.useCallback(async(Z,xe)=>{Fe.setState(ke=>({sessions:ke.sessions.map(be=>be.sessionId===Z?{...be,title:xe}:be)})),await ot.renameSession(Z,xe).catch(()=>{console.error("rename session failed")}),z()},[z]),Ee=I.useCallback((Z,xe)=>{var be;if(E.current=Z,!(((be=k.current)==null?void 0:be.prompt(xe))??!1)){const Pe=k.current?"Not connected to the server - reconnecting. Retry once the status dot is green.":"No active session socket.";Fe.getState().markPendingFailed(Z,Pe)}},[]),ge=I.useCallback(Z=>{const xe=`pending-${N.current++}`,ke=z4(Z.filter(_e=>_e.type==="text").map(_e=>_e.text).join(`
|
|
507
|
+
`)),be=Z.some(_e=>_e.type==="image"),Pe=ke||(be?"[image]":"[attachment]");Fe.getState().addPending(xe,Pe),Ee(xe,Z)},[Ee]),le=I.useCallback((Z,xe)=>{Fe.setState(ke=>({pending:ke.pending.map(be=>be.id===Z?{...be,status:"sending",error:void 0}:be)})),Ee(Z,[{type:"text",text:xe}])},[Ee]),je=I.useCallback(Z=>{ge([{type:"text",text:Z}])},[ge]),Q=I.useCallback(()=>{var Z;(Z=k.current)==null||Z.cancel(),Fe.setState(xe=>xe.observability.turnStatus==="running"?{observability:{...xe.observability,turnStatus:"cancelling"}}:{})},[]),ne=I.useCallback(Z=>{var xe;(xe=k.current)==null||xe.setModel(Z),Fe.setState({currentModelId:Z})},[]),J=I.useCallback(Z=>{var xe;(xe=k.current)==null||xe.setMode(Z),Fe.setState(ke=>({currentModeId:Z,sessions:ke.activeId?ke.sessions.map(be=>be.sessionId===ke.activeId?{...be,agentId:Z}:be):ke.sessions}))},[]),M=I.useCallback(()=>{var Z;(Z=k.current)==null||Z.execCommand("compact"),Fe.setState(xe=>({observability:{...xe.observability,compacting:!0}})),setTimeout(()=>{Fe.setState(xe=>xe.observability.compacting?{observability:{...xe.observability,compacting:!1}}:{})},12e4)},[]),F=I.useCallback(()=>{rv(),A(),t.clearActive(),n("/",{replace:!0}),e()},[A,e,t]);I.useEffect(()=>(e4(Z=>ge([{type:"text",text:Z}])),()=>e4(null)),[ge]);const K=t.activeId!==null||t.loadingSessionId!==null||h||m!==null;return w.jsxs("div",{className:`layout ${K?"has-active":""}`,children:[w.jsx(Pv,{sessions:t.sessions,activeId:t.activeId,loadingId:t.loadingSessionId,onOpen:V,onNew:()=>s(!0),onDelete:fe,onRename:ie,onLock:F}),w.jsx(QE,{hasActive:K,loadingSessionId:t.loadingSessionId,connStatus:o,creating:h,createError:m,onRetryCreate:re,onDismissError:q,onBack:Y,onSend:ge,onRetry:le,onRetryTurn:je,onCancel:Q,onNew:()=>s(!0),onChangeModel:ne,onChangeAgent:J,onCompact:M}),a&&w.jsx(JE,{onCreate:te,onClose:()=>s(!1)})]})}if("serviceWorker"in navigator){const e=!!navigator.serviceWorker.controller;let t=!1;navigator.serviceWorker.addEventListener("controllerchange",()=>{t||!e||(t=!0,window.location.reload())}),navigator.serviceWorker.ready.then(n=>{n.update().catch(()=>{}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&n.update().catch(()=>{})})}).catch(()=>{})}m6.createRoot(document.getElementById("root")).render(w.jsx(ka.StrictMode,{children:w.jsx(tT,{})}));export{VC as _,hh as g,iT as k};
|