@schmitech/chatbot-widget 0.4.13 → 0.4.14
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/chatbot-widget.bundle.js +36 -35
- package/dist/chatbot-widget.es.js +2032 -2010
- package/dist/chatbot-widget.umd.js +36 -35
- package/dist/config/index.d.ts +1 -0
- package/dist/hooks/useAnimationManagement.d.ts +4 -4
- package/dist/shared/styles.d.ts +1 -1
- package/dist/ui/Message.d.ts +5 -5
- package/dist/ui/MessagesList.d.ts +5 -5
- package/dist/ui/TypingEffect.d.ts +4 -3
- package/package.json +1 -1
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/return e.NODE_ENV!=="production"&&function(){var t=Q,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x=Symbol.iterator,
|
|
18
|
-
`+De+S}}var Ke=!1,vt;{var O0=typeof WeakMap=="function"?WeakMap:Map;vt=new O0}function p1(S,
|
|
17
|
+
*/return e.NODE_ENV!=="production"&&function(){var t=Q,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x=Symbol.iterator,C="@@iterator";function w(S){if(S===null||typeof S!="object")return null;var N=x&&S[x]||S[C];return typeof N=="function"?N:null}var I=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function q(S){{for(var N=arguments.length,ee=new Array(N>1?N-1:0),se=1;se<N;se++)ee[se-1]=arguments[se];j("error",S,ee)}}function j(S,N,ee){{var se=I.ReactDebugCurrentFrame,we=se.getStackAddendum();we!==""&&(N+="%s",ee=ee.concat([we]));var Ie=ee.map(function(ge){return String(ge)});Ie.unshift("Warning: "+N),Function.prototype.apply.call(console[S],console,Ie)}}var R=!1,T=!1,F=!1,K=!1,V=!1,B;B=Symbol.for("react.module.reference");function Z(S){return!!(typeof S=="string"||typeof S=="function"||S===a||S===l||V||S===o||S===u||S===d||K||S===g||R||T||F||typeof S=="object"&&S!==null&&(S.$$typeof===k||S.$$typeof===m||S.$$typeof===c||S.$$typeof===s||S.$$typeof===h||S.$$typeof===B||S.getModuleId!==void 0))}function D(S,N,ee){var se=S.displayName;if(se)return se;var we=N.displayName||N.name||"";return we!==""?ee+"("+we+")":ee}function oe(S){return S.displayName||"Context"}function ne(S){if(S==null)return null;if(typeof S.tag=="number"&&q("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case a:return"Fragment";case r:return"Portal";case l:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case s:var N=S;return oe(N)+".Consumer";case c:var ee=S;return oe(ee._context)+".Provider";case h:return D(S,S.render,"ForwardRef");case m:var se=S.displayName||null;return se!==null?se:ne(S.type)||"Memo";case k:{var we=S,Ie=we._payload,ge=we._init;try{return ne(ge(Ie))}catch{return null}}}return null}var Y=Object.assign,de=0,fe,Ce,Ee,L,Te,be,A;function Ne(){}Ne.__reactDisabledLog=!0;function Ge(){{if(de===0){fe=console.log,Ce=console.info,Ee=console.warn,L=console.error,Te=console.group,be=console.groupCollapsed,A=console.groupEnd;var S={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}de++}}function He(){{if(de--,de===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},S,{value:fe}),info:Y({},S,{value:Ce}),warn:Y({},S,{value:Ee}),error:Y({},S,{value:L}),group:Y({},S,{value:Te}),groupCollapsed:Y({},S,{value:be}),groupEnd:Y({},S,{value:A})})}de<0&&q("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ze=I.ReactCurrentDispatcher,De;function We(S,N,ee){{if(De===void 0)try{throw Error()}catch(we){var se=we.stack.trim().match(/\n( *(at )?)/);De=se&&se[1]||""}return`
|
|
18
|
+
`+De+S}}var Ke=!1,vt;{var O0=typeof WeakMap=="function"?WeakMap:Map;vt=new O0}function p1(S,N){if(!S||Ke)return"";{var ee=vt.get(S);if(ee!==void 0)return ee}var se;Ke=!0;var we=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ie;Ie=Ze.current,Ze.current=null,Ge();try{if(N){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(dt){se=dt}Reflect.construct(S,[],ge)}else{try{ge.call()}catch(dt){se=dt}S.call(ge.prototype)}}else{try{throw Error()}catch(dt){se=dt}S()}}catch(dt){if(dt&&se&&typeof dt.stack=="string"){for(var me=dt.stack.split(`
|
|
19
19
|
`),ot=se.stack.split(`
|
|
20
20
|
`),je=me.length-1,Ue=ot.length-1;je>=1&&Ue>=0&&me[je]!==ot[Ue];)Ue--;for(;je>=1&&Ue>=0;je--,Ue--)if(me[je]!==ot[Ue]){if(je!==1||Ue!==1)do if(je--,Ue--,Ue<0||me[je]!==ot[Ue]){var At=`
|
|
21
|
-
`+me[je].replace(" at new "," at ");return S.displayName&&At.includes("<anonymous>")&&(At=At.replace("<anonymous>",S.displayName)),typeof S=="function"&&vt.set(S,At),At}while(je>=1&&Ue>=0);break}}}finally{Ke=!1,Ze.current=Ie,He(),Error.prepareStackTrace=we}var un=S?S.displayName||S.name:"",U0=un?We(un):"";return typeof S=="function"&&vt.set(S,U0),U0}function t1(S,
|
|
21
|
+
`+me[je].replace(" at new "," at ");return S.displayName&&At.includes("<anonymous>")&&(At=At.replace("<anonymous>",S.displayName)),typeof S=="function"&&vt.set(S,At),At}while(je>=1&&Ue>=0);break}}}finally{Ke=!1,Ze.current=Ie,He(),Error.prepareStackTrace=we}var un=S?S.displayName||S.name:"",U0=un?We(un):"";return typeof S=="function"&&vt.set(S,U0),U0}function t1(S,N,ee){return p1(S,!1)}function _t(S){var N=S.prototype;return!!(N&&N.isReactComponent)}function xt(S,N,ee){if(S==null)return"";if(typeof S=="function")return p1(S,_t(S));if(typeof S=="string")return We(S);switch(S){case u:return We("Suspense");case d:return We("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case h:return t1(S.render);case m:return xt(S.type,N,ee);case k:{var se=S,we=se._payload,Ie=se._init;try{return xt(Ie(we),N,ee)}catch{}}}return""}var at=Object.prototype.hasOwnProperty,It={},Mt=I.ReactDebugCurrentFrame;function Gt(S){if(S){var N=S._owner,ee=xt(S.type,S._source,N?N.type:null);Mt.setExtraStackFrame(ee)}else Mt.setExtraStackFrame(null)}function cn(S,N,ee,se,we){{var Ie=Function.call.bind(at);for(var ge in S)if(Ie(S,ge)){var me=void 0;try{if(typeof S[ge]!="function"){var ot=Error((se||"React class")+": "+ee+" type `"+ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[ge]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ot.name="Invariant Violation",ot}me=S[ge](N,ge,se,ee,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(je){me=je}me&&!(me instanceof Error)&&(Gt(we),q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",se||"React class",ee,ge,typeof me),Gt(null)),me instanceof Error&&!(me.message in It)&&(It[me.message]=!0,Gt(we),q("Failed %s type: %s",ee,me.message),Gt(null))}}}var Ye=Array.isArray;function qt(S){return Ye(S)}function n1(S){{var N=typeof Symbol=="function"&&Symbol.toStringTag,ee=N&&S[Symbol.toStringTag]||S.constructor.name||"Object";return ee}}function sn(S){try{return P(S),!1}catch{return!0}}function P(S){return""+S}function X(S){if(sn(S))return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",n1(S)),P(S)}var ce=I.ReactCurrentOwner,ke={key:!0,ref:!0,__self:!0,__source:!0},Me,ut;function r1(S){if(at.call(S,"ref")){var N=Object.getOwnPropertyDescriptor(S,"ref").get;if(N&&N.isReactWarning)return!1}return S.ref!==void 0}function Ht(S){if(at.call(S,"key")){var N=Object.getOwnPropertyDescriptor(S,"key").get;if(N&&N.isReactWarning)return!1}return S.key!==void 0}function V0(S,N){typeof S.ref=="string"&&ce.current}function N0(S,N){{var ee=function(){Me||(Me=!0,q("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};ee.isReactWarning=!0,Object.defineProperty(S,"key",{get:ee,configurable:!0})}}function it(S,N){{var ee=function(){ut||(ut=!0,q("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",N))};ee.isReactWarning=!0,Object.defineProperty(S,"ref",{get:ee,configurable:!0})}}var y1=function(S,N,ee,se,we,Ie,ge){var me={$$typeof:n,type:S,key:N,ref:ee,props:ge,_owner:Ie};return me._store={},Object.defineProperty(me._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(me,"_self",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.defineProperty(me,"_source",{configurable:!1,enumerable:!1,writable:!1,value:we}),Object.freeze&&(Object.freeze(me.props),Object.freeze(me)),me};function Bt(S,N,ee,se,we){{var Ie,ge={},me=null,ot=null;ee!==void 0&&(X(ee),me=""+ee),Ht(N)&&(X(N.key),me=""+N.key),r1(N)&&(ot=N.ref,V0(N,we));for(Ie in N)at.call(N,Ie)&&!ke.hasOwnProperty(Ie)&&(ge[Ie]=N[Ie]);if(S&&S.defaultProps){var je=S.defaultProps;for(Ie in je)ge[Ie]===void 0&&(ge[Ie]=je[Ie])}if(me||ot){var Ue=typeof S=="function"?S.displayName||S.name||"Unknown":S;me&&N0(ge,Ue),ot&&it(ge,Ue)}return y1(S,me,ot,we,se,ce.current,ge)}}var Ow=I.ReactCurrentOwner,sI=I.ReactDebugCurrentFrame;function hn(S){if(S){var N=S._owner,ee=xt(S.type,S._source,N?N.type:null);sI.setExtraStackFrame(ee)}else sI.setExtraStackFrame(null)}var Vw;Vw=!1;function Nw(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function hI(){{if(Ow.current){var S=ne(Ow.current.type);if(S)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+S+"`."}return""}}function CR(S){return""}var uI={};function IR(S){{var
|
|
23
|
+
Check the render method of \``+S+"`."}return""}}function CR(S){return""}var uI={};function IR(S){{var N=hI();if(!N){var ee=typeof S=="string"?S:S.displayName||S.name;ee&&(N=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+ee+">.")}return
|
|
25
|
+
Check the top-level render call using <`+ee+">.")}return N}}function dI(S,N){{if(!S._store||S._store.validated||S.key!=null)return;S._store.validated=!0;var ee=IR(N);if(uI[ee])return;uI[ee]=!0;var se="";S&&S._owner&&S._owner!==Ow.current&&(se=" It was passed a child from "+ne(S._owner.type)+"."),hn(S),q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ee,se),hn(null)}}function pI(S,N){{if(typeof S!="object")return;if(qt(S))for(var ee=0;ee<S.length;ee++){var se=S[ee];Nw(se)&&dI(se,N)}else if(Nw(S))S._store&&(S._store.validated=!0);else if(S){var we=w(S);if(typeof we=="function"&&we!==S.entries)for(var Ie=we.call(S),ge;!(ge=Ie.next()).done;)Nw(ge.value)&&dI(ge.value,N)}}}function AR(S){{var N=S.type;if(N==null||typeof N=="string")return;var ee;if(typeof N=="function")ee=N.propTypes;else if(typeof N=="object"&&(N.$$typeof===h||N.$$typeof===m))ee=N.propTypes;else return;if(ee){var se=ne(N);cn(ee,S.props,"prop",se,S)}else if(N.PropTypes!==void 0&&!Vw){Vw=!0;var we=ne(N);q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",we||"Unknown")}typeof N.getDefaultProps=="function"&&!N.getDefaultProps.isReactClassApproved&&q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function zR(S){{for(var N=Object.keys(S.props),ee=0;ee<N.length;ee++){var se=N[ee];if(se!=="children"&&se!=="key"){hn(S),q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",se),hn(null);break}}S.ref!==null&&(hn(S),q("Invalid attribute `ref` supplied to `React.Fragment`."),hn(null))}}var yI={};function kI(S,N,ee,se,we,Ie){{var ge=Z(S);if(!ge){var me="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(me+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ot=CR();ot?me+=ot:me+=hI();var je;S===null?je="null":qt(S)?je="array":S!==void 0&&S.$$typeof===n?(je="<"+(ne(S.type)||"Unknown")+" />",me=" Did you accidentally export a JSX literal instead of a component?"):je=typeof S,q("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",je,me)}var Ue=Bt(S,N,ee,we,Ie);if(Ue==null)return Ue;if(ge){var At=N.children;if(At!==void 0)if(se)if(qt(At)){for(var un=0;un<At.length;un++)pI(At[un],S);Object.freeze&&Object.freeze(At)}else q("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else pI(At,S)}if(at.call(N,"key")){var U0=ne(S),dt=Object.keys(N).filter(function(FR){return FR!=="key"}),Uw=dt.length>0?"{key: someKey, "+dt.join(": ..., ")+": ...}":"{key: someKey}";if(!yI[U0+Uw]){var PR=dt.length>0?"{"+dt.join(": ..., ")+": ...}":"{}";q(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Uw,U0,PR,U0),yI[U0+Uw]=!0}}return S===a?zR(Ue):AR(Ue),Ue}}function TR(S,
|
|
30
|
+
<%s key={someKey} {...props} />`,Uw,U0,PR,U0),yI[U0+Uw]=!0}}return S===a?zR(Ue):AR(Ue),Ue}}function TR(S,N,ee){return kI(S,N,ee,!0)}function qR(S,N,ee){return kI(S,N,ee,!1)}var HR=qR,BR=TR;kn.Fragment=a,kn.jsx=HR,kn.jsxs=BR}(),kn}var xI={};xI.NODE_ENV==="production"?Vx.exports=gI():Vx.exports=vI();var G=Vx.exports;/**
|
|
31
31
|
* @license lucide-react v0.344.0 - ISC
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
@@ -7230,7 +7230,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
7230
7230
|
*
|
|
7231
7231
|
* This source code is licensed under the MIT license found in the
|
|
7232
7232
|
* LICENSE file in the root directory of this source tree.
|
|
7233
|
-
*/var Xw;function II(){if(Xw)return _x;Xw=1;var e=Q;function t(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function c(d,m){var k=m(),g=r({inst:{value:k,getSnapshot:m}}),x=g[0].inst,
|
|
7233
|
+
*/var Xw;function II(){if(Xw)return _x;Xw=1;var e=Q;function t(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function c(d,m){var k=m(),g=r({inst:{value:k,getSnapshot:m}}),x=g[0].inst,C=g[1];return o(function(){x.value=k,x.getSnapshot=m,s(x)&&C({inst:x})},[d,k,m]),a(function(){return s(x)&&C({inst:x}),d(function(){s(x)&&C({inst:x})})},[d]),l(k),k}function s(d){var m=d.getSnapshot;d=d.value;try{var k=m();return!n(d,k)}catch{return!0}}function h(d,m){return m()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return _x.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,_x}var Gx={},Kw;function AI(){if(Kw)return Gx;Kw=1;var e={};/**
|
|
7234
7234
|
* @license React
|
|
7235
7235
|
* use-sync-external-store-shim.development.js
|
|
7236
7236
|
*
|
|
@@ -7238,7 +7238,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
7238
7238
|
*
|
|
7239
7239
|
* This source code is licensed under the MIT license found in the
|
|
7240
7240
|
* LICENSE file in the root directory of this source tree.
|
|
7241
|
-
*/return e.NODE_ENV!=="production"&&function(){function t(g,x){return g===x&&(g!==0||1/g===1/x)||g!==g&&x!==x}function n(g,x){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var
|
|
7241
|
+
*/return e.NODE_ENV!=="production"&&function(){function t(g,x){return g===x&&(g!==0||1/g===1/x)||g!==g&&x!==x}function n(g,x){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var C=x();if(!m){var w=x();l(C,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}w=c({inst:{value:C,getSnapshot:x}});var I=w[0].inst,q=w[1];return h(function(){I.value=C,I.getSnapshot=x,r(I)&&q({inst:I})},[g,C,x]),s(function(){return r(I)&&q({inst:I}),g(function(){r(I)&&q({inst:I})})},[g]),u(C),C}function r(g){var x=g.getSnapshot;g=g.value;try{var C=x();return!l(g,C)}catch{return!0}}function a(g,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Q,l=typeof Object.is=="function"?Object.is:t,c=o.useState,s=o.useEffect,h=o.useLayoutEffect,u=o.useDebugValue,d=!1,m=!1,k=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:n;Gx.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:k,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Gx}var Yw;function Qw(){if(Yw)return Yv.exports;Yw=1;var e={};return e.NODE_ENV==="production"?Yv.exports=II():Yv.exports=AI(),Yv.exports}/**
|
|
7242
7242
|
* @license React
|
|
7243
7243
|
* use-sync-external-store-shim/with-selector.production.js
|
|
7244
7244
|
*
|
|
@@ -7246,7 +7246,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
7246
7246
|
*
|
|
7247
7247
|
* This source code is licensed under the MIT license found in the
|
|
7248
7248
|
* LICENSE file in the root directory of this source tree.
|
|
7249
|
-
*/var Jw;function zI(){if(Jw)return Ux;Jw=1;var e=Q,t=Qw();function n(h,u){return h===u&&(h!==0||1/h===1/u)||h!==h&&u!==u}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,c=e.useMemo,s=e.useDebugValue;return Ux.useSyncExternalStoreWithSelector=function(h,u,d,m,k){var g=o(null);if(g.current===null){var x={hasValue:!1,value:null};g.current=x}else x=g.current;g=c(function(){function
|
|
7249
|
+
*/var Jw;function zI(){if(Jw)return Ux;Jw=1;var e=Q,t=Qw();function n(h,u){return h===u&&(h!==0||1/h===1/u)||h!==h&&u!==u}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,c=e.useMemo,s=e.useDebugValue;return Ux.useSyncExternalStoreWithSelector=function(h,u,d,m,k){var g=o(null);if(g.current===null){var x={hasValue:!1,value:null};g.current=x}else x=g.current;g=c(function(){function w(T){if(!I){if(I=!0,q=T,T=m(T),k!==void 0&&x.hasValue){var F=x.value;if(k(F,T))return j=F}return j=T}if(F=j,r(q,T))return F;var K=m(T);return k!==void 0&&k(F,K)?(q=T,F):(q=T,j=K)}var I=!1,q,j,R=d===void 0?null:d;return[function(){return w(u())},R===null?void 0:function(){return w(R())}]},[u,d,m,k]);var C=a(h,g[0],g[1]);return l(function(){x.hasValue=!0,x.value=C},[C]),s(C),C},Ux}var Zx={},$w;function TI(){if($w)return Zx;$w=1;var e={};/**
|
|
7250
7250
|
* @license React
|
|
7251
7251
|
* use-sync-external-store-shim/with-selector.development.js
|
|
7252
7252
|
*
|
|
@@ -7254,8 +7254,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
7254
7254
|
*
|
|
7255
7255
|
* This source code is licensed under the MIT license found in the
|
|
7256
7256
|
* LICENSE file in the root directory of this source tree.
|
|
7257
|
-
*/return e.NODE_ENV!=="production"&&function(){function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=Q,r=Qw(),a=typeof Object.is=="function"?Object.is:t,o=r.useSyncExternalStore,l=n.useRef,c=n.useEffect,s=n.useMemo,h=n.useDebugValue;Zx.useSyncExternalStoreWithSelector=function(u,d,m,k,g){var x=l(null);if(x.current===null){var
|
|
7258
|
-
`,K))!==-1;){const B=q.slice(K,
|
|
7257
|
+
*/return e.NODE_ENV!=="production"&&function(){function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=Q,r=Qw(),a=typeof Object.is=="function"?Object.is:t,o=r.useSyncExternalStore,l=n.useRef,c=n.useEffect,s=n.useMemo,h=n.useDebugValue;Zx.useSyncExternalStoreWithSelector=function(u,d,m,k,g){var x=l(null);if(x.current===null){var C={hasValue:!1,value:null};x.current=C}else C=x.current;x=s(function(){function I(F){if(!q){if(q=!0,j=F,F=k(F),g!==void 0&&C.hasValue){var K=C.value;if(g(K,F))return R=K}return R=F}if(K=R,a(j,F))return K;var V=k(F);return g!==void 0&&g(K,V)?(j=F,K):(j=F,R=V)}var q=!1,j,R,T=m===void 0?null:m;return[function(){return I(d())},T===null?void 0:function(){return I(T())}]},[d,m,k,g]);var w=o(u,x[0],x[1]);return c(function(){C.hasValue=!0,C.value=w},[w]),h(w),w},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Zx}var qI={};qI.NODE_ENV==="production"?Nx.exports=zI():Nx.exports=TI();var HI=Nx.exports;const BI=Ox(HI),eb={},{useDebugValue:PI}=Q,{useSyncExternalStoreWithSelector:FI}=BI;let tb=!1;const DI=e=>e;function RI(e,t=DI,n){(eb?"production":void 0)!=="production"&&n&&!tb&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),tb=!0);const r=FI(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return PI(r),r}const nb=e=>{(eb?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?CI(e):e,n=(r,a)=>RI(t,r,a);return Object.assign(n,t),n},EI=e=>e?nb(e):nb;var jI=Object.defineProperty,OI=(e,t,n)=>t in e?jI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wx=(e,t,n)=>OI(e,typeof t!="symbol"?t+"":t,n);let Xx=null,Kx=null;typeof window>"u"&&Promise.all([Promise.resolve().then(()=>cI).catch(()=>null),Promise.resolve().then(()=>cI).catch(()=>null)]).then(([e,t])=>{var n,r;(n=e==null?void 0:e.default)!=null&&n.Agent?Xx=new e.default.Agent({keepAlive:!0}):e!=null&&e.Agent&&(Xx=new e.Agent({keepAlive:!0})),(r=t==null?void 0:t.default)!=null&&r.Agent?Kx=new t.default.Agent({keepAlive:!0}):t!=null&&t.Agent&&(Kx=new t.Agent({keepAlive:!0}))}).catch(e=>{console.warn("Failed to initialize HTTP agents:",e.message)});class VI{constructor(t){if(Wx(this,"apiUrl"),Wx(this,"apiKey"),Wx(this,"sessionId"),!t.apiUrl||typeof t.apiUrl!="string")throw new Error("API URL must be a valid string");if(t.apiKey!==void 0&&t.apiKey!==null&&typeof t.apiKey!="string")throw new Error("API key must be a valid string or null");if(t.sessionId!==void 0&&t.sessionId!==null&&typeof t.sessionId!="string")throw new Error("Session ID must be a valid string or null");this.apiUrl=t.apiUrl,this.apiKey=t.apiKey??null,this.sessionId=t.sessionId??null}setSessionId(t){if(t!==null&&typeof t!="string")throw new Error("Session ID must be a valid string or null");this.sessionId=t}getSessionId(){return this.sessionId}getFetchOptions(t={}){const n={};if(typeof window>"u"){const a=this.apiUrl.startsWith("https:")?Kx:Xx;a&&(n.agent=a)}else n.headers={Connection:"keep-alive"};const r={"X-Request-ID":Date.now().toString(36)+Math.random().toString(36).substring(2)};return n.headers&&Object.assign(r,n.headers),t.headers&&Object.assign(r,t.headers),this.apiKey&&(r["X-API-Key"]=this.apiKey),this.sessionId&&(r["X-Session-ID"]=this.sessionId),{...t,...n,headers:r}}createMCPRequest(t,n=!0){return{jsonrpc:"2.0",method:"tools/call",params:{name:"chat",arguments:{messages:[{role:"user",content:t}],stream:n}},id:Date.now().toString(36)+Math.random().toString(36).substring(2)}}createMCPToolsRequest(t){return{jsonrpc:"2.0",method:"tools/call",params:{name:"tools",arguments:{tools:t}},id:Date.now().toString(36)+Math.random().toString(36).substring(2)}}async*streamChat(t,n=!0){var r,a,o,l,c,s,h,u,d,m,k;try{const g=new AbortController,x=setTimeout(()=>g.abort(),6e4),C=await fetch(`${this.apiUrl}/v1/chat`,{...this.getFetchOptions({method:"POST",headers:{"Content-Type":"application/json",Accept:n?"text/event-stream":"application/json"},body:JSON.stringify(this.createMCPRequest(t,n))}),signal:g.signal});if(clearTimeout(x),!C.ok){const R=await C.text();throw new Error(`Network response was not ok: ${C.status} ${R}`)}if(!n){const R=await C.json();if(R.error)throw new Error(`MCP Error: ${R.error.message}`);(l=(o=(a=(r=R.result)==null?void 0:r.output)==null?void 0:a.messages)==null?void 0:o[0])!=null&&l.content&&(yield{text:R.result.output.messages[0].content,done:!0});return}const w=(c=C.body)==null?void 0:c.getReader();if(!w)throw new Error("No reader available");const I=new TextDecoder;let q="",j=!1;try{for(;;){const{done:R,value:T}=await w.read();if(R)break;const F=I.decode(T,{stream:!0});q+=F;let K=0,V;for(;(V=q.indexOf(`
|
|
7258
|
+
`,K))!==-1;){const B=q.slice(K,V).trim();if(K=V+1,B&&B.startsWith("data: ")){const Z=B.slice(6).trim();if(!Z||Z==="[DONE]"){yield{text:"",done:!0};return}try{const D=JSON.parse(Z);if(D.error)throw new Error(`MCP Error: ${D.error.message}`);if(((s=D.result)==null?void 0:s.type)==="chunk"&&(h=D.result.chunk)!=null&&h.content)j=!0,yield{text:D.result.chunk.content,done:!1};else if(((u=D.result)==null?void 0:u.type)==="complete"){const oe=((k=(m=(d=D.result.output)==null?void 0:d.messages)==null?void 0:m[0])==null?void 0:k.content)??"";!j&&oe?yield{text:oe,done:!0}:yield{text:"",done:!0};return}else if("response"in D&&typeof D.response=="string")if("done"in D&&D.done===!0){!j&&D.response?yield{text:D.response,done:!0}:yield{text:"",done:!0};return}else j=!0,yield{text:D.response,done:!1}}catch(D){console.warn("Error parsing JSON chunk:",D)}}}q=q.slice(K),q.length>1e6&&(console.warn("Buffer too large, truncating..."),q=q.slice(-5e5))}j&&(yield{text:"",done:!0})}finally{w.releaseLock()}}catch(g){throw g.name==="AbortError"?new Error("Connection timed out. Please check if the server is running."):g.name==="TypeError"&&g.message.includes("Failed to fetch")?new Error("Could not connect to the server. Please check if the server is running."):g}}async sendToolsRequest(t){const n=await fetch(`${this.apiUrl}/v1/chat`,this.getFetchOptions({method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(this.createMCPToolsRequest(t))}));if(!n.ok){const a=await n.text();throw new Error(`Network response was not ok: ${n.status} ${a}`)}const r=await n.json();if(r.error)throw new Error(`MCP Error: ${r.error.message}`);return r}}let Yx=null;const G0=(e,t=null,n=null)=>{Yx=new VI({apiUrl:e,apiKey:t,sessionId:n})};async function*NI(e,t=!0){if(!Yx)throw new Error("API not configured. Please call configureApi() with your server URL before using any API functions.");yield*Yx.streamChat(e,t)}function UI(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}const Qx="orbit_session_id";function Z0(){if(typeof window<"u"&&window.CHATBOT_SESSION_ID)return window.CHATBOT_SESSION_ID;let e=sessionStorage.getItem(Qx);return e||(e=UI(),sessionStorage.setItem(Qx,e)),typeof window<"u"&&(window.CHATBOT_SESSION_ID=e),e}function Jx(e){typeof window>"u"||(sessionStorage.setItem(Qx,e),window.CHATBOT_SESSION_ID=e)}let xe={MAX_MESSAGE_LENGTH:250,MAX_SUGGESTED_QUESTION_LENGTH:120,MAX_SUGGESTED_QUESTION_QUERY_LENGTH:200,WINDOW_DIMENSIONS:{HEIGHT:"600px",MAX_HEIGHT:"calc(100vh - 80px)",BREAKPOINTS:{SM:640,MD:768,LG:1024},WIDTHS:{SM:"480px",MD:"600px",LG:"700px"}},SCROLL_THRESHOLDS:{BOTTOM_THRESHOLD:10,TOP_THRESHOLD:10,SHOW_SCROLL_TOP_OFFSET:200},ANIMATIONS:{SCROLL_TIMEOUT:300,TOGGLE_DELAY:100,ANIMATION_SCROLL_INTERVAL:100,COPY_FEEDBACK_DURATION:2e3,VISIBILITY_SKIP_THRESHOLD:1e3},BUTTON_SIZES:{CHAT_BUTTON:{width:"68px",height:"68px"},SEND_BUTTON:{width:"52px",height:"52px"},ICON_SIZES:{HEADER:28,WELCOME:56,BUTTON:20,SEND:24,MINIMIZE:28}}};const _I=`
|
|
7259
7259
|
body, button, input, textarea {
|
|
7260
7260
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
7261
7261
|
}
|
|
@@ -7386,12 +7386,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
7386
7386
|
}
|
|
7387
7387
|
|
|
7388
7388
|
@keyframes float {
|
|
7389
|
-
0%, 100% { transform: translateY(0px) rotate(0deg); }
|
|
7390
|
-
|
|
7391
|
-
|
|
7389
|
+
0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
|
|
7390
|
+
25% { transform: translateY(-8px) rotate(2deg) scale(1.02); }
|
|
7391
|
+
50% { transform: translateY(-4px) rotate(-1deg) scale(1); }
|
|
7392
|
+
75% { transform: translateY(-6px) rotate(1deg) scale(1.01); }
|
|
7392
7393
|
}
|
|
7393
7394
|
.animate-float {
|
|
7394
|
-
animation: float
|
|
7395
|
+
animation: float 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
7395
7396
|
}
|
|
7396
7397
|
|
|
7397
7398
|
@keyframes dotBlink {
|
|
@@ -7551,24 +7552,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
7551
7552
|
.input-modern:focus {
|
|
7552
7553
|
transform: translateY(-1px);
|
|
7553
7554
|
}
|
|
7554
|
-
`,GI=e=>{const{BREAKPOINTS:t,WIDTHS:n}=xe.WINDOW_DIMENSIONS;return e<t.SM?"100%":e<t.MD?n.SM:e<t.LG?n.MD:n.LG},ZI=e=>e<xe.WINDOW_DIMENSIONS.BREAKPOINTS.SM?"100%":xe.WINDOW_DIMENSIONS.WIDTHS.SM,WI="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif";function XI(e){Object.assign(xe,e)}let rb=!1;function KI(){if(rb)return!0;try{if(typeof window<"u"){let e,t,n;if(window.CHATBOT_API_URL&&window.CHATBOT_API_KEY)e=window.CHATBOT_API_URL,t=window.CHATBOT_API_KEY;else if(Rx&&Ex)try{e=Rx(),t=Ex()}catch{}return!e||!t?(console.warn("API URL or API Key not configured"),!1):(window.CHATBOT_SESSION_ID?(n=window.CHATBOT_SESSION_ID,Jx(n)):n=Z0(),G0(e,t,n),rb=!0,!0)}}catch(e){console.error("Failed to configure API:",e)}return!1}function ab(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}const $x=EI((e,t)=>({messages:[],isLoading:!1,error:null,sessionId:Z0(),getSessionId:()=>t().sessionId,sendMessage:async n=>{try{const r=xe.MAX_SUGGESTED_QUESTION_QUERY_LENGTH;let a=n;if(n.length>r&&(a=n.substring(0,r)),!KI())throw new Error("API not properly configured");e(l=>({messages:[...l.messages,{id:ab(),role:"user",content:a}],isLoading:!0,error:null})),e(l=>({messages:[...l.messages,{id:ab(),role:"assistant",content:""}]}));let o=!1;try{for await(const l of NI(a))l.text&&(t().appendToLastMessage(l.text),o=!0);o||t().appendToLastMessage("No response received from the server. Please try again later.")}catch(l){console.error("Chat API error:",l),t().appendToLastMessage("Sorry, there was an error processing your request.")}e({isLoading:!1})}catch(r){console.error("Chat store error:",r),e(a=>({isLoading:!1,error:`Failed to send message: ${r instanceof Error?r.message:"Unknown error"}`}))}},appendToLastMessage:n=>{e(r=>{const a=[...r.messages],o=a[a.length-1];return o&&o.role==="assistant"&&(a[a.length-1]={...o,content:o.content+n}),{messages:a}})},clearMessages:()=>{e({messages:[]})}})),ib={primary:"#EC994B",secondary:"#1E3A8A",background:"#FFFFFF",text:{primary:"#1F2937",secondary:"#6B7280",inverse:"#FFFFFF"},input:{background:"#FFFFFF",border:"#D1D5DB"},message:{user:"#1E3A8A",userText:"#FFFFFF",assistant:"#FFFFFF"},suggestedQuestions:{background:"#F3F4F6",text:"#1F2937",hoverBackground:"#E5E7EB"},chatButton:{background:"#ffffff",hoverBackground:"#f8fafc",borderColor:"#e5e7eb",iconColor:"#f97316",iconBorderColor:"#111111",iconName:"MessageSquare"}},q0=()=>({header:{title:"AI Assistant"},theme:ib,welcome:{title:"Hello! How can I help you today?",description:"I'm your AI assistant, ready to help with any questions you might have."},suggestedQuestions:[{text:"What can you help me with?",query:"What can you help me with?"},{text:"Tell me about your features",query:"Tell me about your features"},{text:"How do I get started?",query:"How do I get started?"}]}),YI=e=>{const[t,n]=Q.useState(!1),[r,a]=Q.useState(!1),[o,l]=Q.useState(!1),c=Q.useRef(null),s=Q.useRef(null),h=Q.useRef(!0),u=Q.useRef(),d=Q.useCallback((g=!1)=>{if(c.current){const{scrollTop:x,scrollHeight:A,clientHeight:b}=c.current;(Math.abs(A-x-b)<100||h.current)&&(c.current.scrollTo({top:A,behavior:g?"auto":"smooth"}),setTimeout(()=>{m()},g?0:xe.ANIMATIONS.SCROLL_TIMEOUT))}},[]),m=Q.useCallback(()=>{if(c.current&&!e){const{scrollTop:g,scrollHeight:x,clientHeight:A}=c.current,b=Math.abs(x-g-A)<xe.SCROLL_THRESHOLDS.BOTTOM_THRESHOLD,C=g<xe.SCROLL_THRESHOLDS.TOP_THRESHOLD;n(!C&&g>xe.SCROLL_THRESHOLDS.SHOW_SCROLL_TOP_OFFSET),a(!b)}},[e]),k=Q.useCallback(()=>{c.current&&(l(!0),c.current.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{l(!1),m()},xe.ANIMATIONS.SCROLL_TIMEOUT))},[m]);return{showScrollTop:t,showScrollBottom:r,isScrolling:o,messagesContainerRef:c,messagesEndRef:s,shouldScrollRef:h,scrollTimeoutRef:u,scrollToBottom:d,scrollToTop:k,handleScroll:m}},QI=()=>{const[e,t]=Q.useState(!1),n=Q.useRef(new Set),r=Q.useRef(new Map),a=Q.useRef(!1),o=Q.useRef(null),l=Q.useRef(new Map),c=Q.useCallback((u,d,m)=>{n.current.add(u),r.current.delete(u),u===d-1&&(t(!1),a.current=!1,setTimeout(()=>m(),100))},[]),s=Q.useCallback(u=>n.current.has(u),[]),h=Q.useCallback(()=>{n.current.clear(),r.current.clear(),l.current.clear(),t(!1),a.current=!1},[]);return Q.useEffect(()=>{const u=Math.max(...Array.from(n.current),-1);if(u>100){const d=new Set,m=new Map;for(let k=u-50;k<=u;k++)n.current.has(k)&&d.add(k),r.current.has(k)&&m.set(k,r.current.get(k));n.current=d,r.current=m}},[]),{isAnimating:e,animatedMessagesRef:n,typingProgressRef:r,isTypingRef:a,lastMessageRef:o,markMessageAnimated:c,hasBeenAnimated:s,clearAnimationTrackers:h,setIsAnimating:t}},JI=({onSendMessage:e,isLoading:t,isOpen:n})=>{const[r,a]=Q.useState(""),[o,l]=Q.useState(!1),c=Q.useRef(null),s=Q.useCallback(k=>{const g=k.target.value;g.length<=xe.MAX_MESSAGE_LENGTH&&a(g)},[]),h=Q.useCallback(()=>{r.trim()&&!t&&(e(r.trim()),a(""))},[r,t,e]),u=Q.useCallback(k=>{k.key==="Enter"&&!k.shiftKey&&(k.preventDefault(),h())},[h]),d=Q.useCallback(()=>{a("")},[]),m=Q.useCallback(()=>{c.current&&c.current.focus()},[]);return Q.useEffect(()=>{n&&c.current&&c.current.focus()},[n]),{message:r,isFocused:o,inputRef:c,handleMessageChange:s,handleKeyDown:u,handleSendMessage:h,setIsFocused:l,clearMessage:d,focusInput:m}};function ob(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=ob(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function W0(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=ob(e))&&(r&&(r+=" "),r+=t);return r}function ER(){}function jR(){}function lb(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(a,r).trim();(l||!o)&&t.push(l),a=r+1,r=n.indexOf(",",a)}return t}function $I(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const eA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nA={};function cb(e,t){return(nA.jsx?tA:eA).test(e)}const rA=/[ \t\n\f\r]/g;function aA(e){return typeof e=="object"?e.type==="text"?sb(e.value):!1:sb(e)}function sb(e){return e.replace(rA,"")===""}class bn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}bn.prototype.normal={},bn.prototype.property={},bn.prototype.space=void 0;function hb(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new bn(n,r,t)}function Ln(e){return e.toLowerCase()}class lt{constructor(t,n){this.attribute=n,this.property=t}}lt.prototype.attribute="",lt.prototype.booleanish=!1,lt.prototype.boolean=!1,lt.prototype.commaOrSpaceSeparated=!1,lt.prototype.commaSeparated=!1,lt.prototype.defined=!1,lt.prototype.mustUseProperty=!1,lt.prototype.number=!1,lt.prototype.overloadedBoolean=!1,lt.prototype.property="",lt.prototype.spaceSeparated=!1,lt.prototype.space=void 0;let iA=0;const he=H0(),Oe=H0(),eM=H0(),U=H0(),Ae=H0(),X0=H0(),yt=H0();function H0(){return 2**++iA}const tM=Object.freeze(Object.defineProperty({__proto__:null,boolean:he,booleanish:Oe,commaOrSpaceSeparated:yt,commaSeparated:X0,number:U,overloadedBoolean:eM,spaceSeparated:Ae},Symbol.toStringTag,{value:"Module"})),nM=Object.keys(tM);class rM extends lt{constructor(t,n,r,a){let o=-1;if(super(t,n),ub(this,"space",a),typeof r=="number")for(;++o<nM.length;){const l=nM[o];ub(this,nM[o],(r&tM[l])===tM[l])}}}rM.prototype.defined=!0;function ub(e,t,n){n&&(e[t]=n)}function K0(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new rM(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ln(r)]=r,n[Ln(o.attribute)]=r}return new bn(t,n,e.space)}const db=K0({properties:{ariaActiveDescendant:null,ariaAtomic:Oe,ariaAutoComplete:null,ariaBusy:Oe,ariaChecked:Oe,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:Ae,ariaCurrent:null,ariaDescribedBy:Ae,ariaDetails:null,ariaDisabled:Oe,ariaDropEffect:Ae,ariaErrorMessage:null,ariaExpanded:Oe,ariaFlowTo:Ae,ariaGrabbed:Oe,ariaHasPopup:null,ariaHidden:Oe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ae,ariaLevel:U,ariaLive:null,ariaModal:Oe,ariaMultiLine:Oe,ariaMultiSelectable:Oe,ariaOrientation:null,ariaOwns:Ae,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:Oe,ariaReadOnly:Oe,ariaRelevant:null,ariaRequired:Oe,ariaRoleDescription:Ae,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:Oe,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function pb(e,t){return t in e?e[t]:t}function yb(e,t){return pb(e,t.toLowerCase())}const oA=K0({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:X0,acceptCharset:Ae,accessKey:Ae,action:null,allow:null,allowFullScreen:he,allowPaymentRequest:he,allowUserMedia:he,alt:null,as:null,async:he,autoCapitalize:null,autoComplete:Ae,autoFocus:he,autoPlay:he,blocking:Ae,capture:null,charSet:null,checked:he,cite:null,className:Ae,cols:U,colSpan:null,content:null,contentEditable:Oe,controls:he,controlsList:Ae,coords:U|X0,crossOrigin:null,data:null,dateTime:null,decoding:null,default:he,defer:he,dir:null,dirName:null,disabled:he,download:eM,draggable:Oe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:he,formTarget:null,headers:Ae,height:U,hidden:eM,high:U,href:null,hrefLang:null,htmlFor:Ae,httpEquiv:Ae,id:null,imageSizes:null,imageSrcSet:null,inert:he,inputMode:null,integrity:null,is:null,isMap:he,itemId:null,itemProp:Ae,itemRef:Ae,itemScope:he,itemType:Ae,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:he,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:he,muted:he,name:null,nonce:null,noModule:he,noValidate:he,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:he,optimum:U,pattern:null,ping:Ae,placeholder:null,playsInline:he,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:he,referrerPolicy:null,rel:Ae,required:he,reversed:he,rows:U,rowSpan:U,sandbox:Ae,scope:null,scoped:he,seamless:he,selected:he,shadowRootClonable:he,shadowRootDelegatesFocus:he,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:Oe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:he,useMap:null,value:Oe,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ae,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:he,declare:he,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:he,noHref:he,noShade:he,noWrap:he,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:Oe,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:he,disableRemotePlayback:he,prefix:null,property:null,results:U,security:null,unselectable:null},space:"html",transform:yb}),lA=K0({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:yt,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:Ae,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:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:he,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:X0,g2:X0,glyphName:X0,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:yt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ae,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yt,rev:yt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yt,requiredFeatures:yt,requiredFonts:yt,requiredFormats:yt,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:yt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yt,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pb}),kb=K0({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()}}),mb=K0({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yb}),fb=K0({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),cA={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"},sA=/[A-Z]/g,gb=/-[a-z]/g,hA=/^data[-\w.:]+$/i;function vb(e,t){const n=Ln(t);let r=t,a=lt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&hA.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(gb,dA);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!gb.test(o)){let l=o.replace(sA,uA);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=rM}return new a(r,t)}function uA(e){return"-"+e.toLowerCase()}function dA(e){return e.charAt(1).toUpperCase()}const xb=hb([db,oA,kb,mb,fb],"html"),Qv=hb([db,lA,kb,mb,fb],"svg");function Mb(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function pA(e){return e.join(" ").trim()}var aM={},wb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,yA=/\n/g,kA=/^\s*/,mA=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,fA=/^:\s*/,gA=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,vA=/^[;\s]*/,xA=/^\s+|\s+$/g,MA=`
|
|
7555
|
-
`,bb="/",Lb="*",B0="",wA="comment",bA="declaration",LA=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(g){var x=g.match(yA);x&&(n+=x.length);var A=g.lastIndexOf(MA);r=~A?g.length-A:r+g.length}function o(){var g={line:n,column:r};return function(x){return x.position=new l(g),h(),x}}function l(g){this.start=g,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function c(g){var x=new Error(t.source+":"+n+":"+r+": "+g);if(x.reason=g,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function s(g){var x=g.exec(e);if(x){var A=x[0];return a(A),e=e.slice(A.length),x}}function h(){s(kA)}function u(g){var x;for(g=g||[];x=d();)x!==!1&&g.push(x);return g}function d(){var g=o();if(!(bb!=e.charAt(0)||Lb!=e.charAt(1))){for(var x=2;B0!=e.charAt(x)&&(Lb!=e.charAt(x)||bb!=e.charAt(x+1));)++x;if(x+=2,B0===e.charAt(x-1))return c("End of comment missing");var A=e.slice(2,x-2);return r+=2,a(A),e=e.slice(x),r+=2,g({type:wA,comment:A})}}function m(){var g=o(),x=s(mA);if(x){if(d(),!s(fA))return c("property missing ':'");var A=s(gA),b=g({type:bA,property:Sb(x[0].replace(wb,B0)),value:A?Sb(A[0].replace(wb,B0)):B0});return s(vA),b}}function k(){var g=[];u(g);for(var x;x=m();)x!==!1&&(g.push(x),u(g));return g}return h(),k()};function Sb(e){return e?e.replace(xA,B0):B0}var SA=Nn&&Nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(aM,"__esModule",{value:!0}),aM.default=IA;var CA=SA(LA);function IA(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,CA.default)(e),a=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var l=o.property,c=o.value;a?t(l,c,o):c&&(n=n||{},n[l]=c)}}),n}var Jv={};Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.camelCase=void 0;var AA=/^--[a-zA-Z0-9_-]+$/,zA=/-([a-z])/g,TA=/^[^-]+$/,qA=/^-(webkit|moz|ms|o|khtml)-/,HA=/^-(ms)-/,BA=function(e){return!e||TA.test(e)||AA.test(e)},PA=function(e,t){return t.toUpperCase()},Cb=function(e,t){return"".concat(t,"-")},FA=function(e,t){return t===void 0&&(t={}),BA(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(HA,Cb):e=e.replace(qA,Cb),e.replace(zA,PA))};Jv.camelCase=FA;var DA=Nn&&Nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},RA=DA(aM),EA=Jv;function iM(e,t){var n={};return!e||typeof e!="string"||(0,RA.default)(e,function(r,a){r&&a&&(n[(0,EA.camelCase)(r,t)]=a)}),n}iM.default=iM;var jA=iM;const OA=Ox(jA),Ib=Ab("end"),oM=Ab("start");function Ab(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function VA(e){const t=oM(e),n=Ib(e);if(t&&n)return{start:t,end:n}}function Sn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?zb(e.position):"start"in e||"end"in e?zb(e):"line"in e||"column"in e?lM(e):""}function lM(e){return Tb(e&&e.line)+":"+Tb(e&&e.column)}function zb(e){return lM(e&&e.start)+"-"+lM(e&&e.end)}function Tb(e){return e&&typeof e=="number"?e:1}class Qe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?a=t:!o.cause&&t&&(l=!0,a=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const c=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=c?c.line:void 0,this.name=Sn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Qe.prototype.file="",Qe.prototype.name="",Qe.prototype.reason="",Qe.prototype.message="",Qe.prototype.stack="",Qe.prototype.column=void 0,Qe.prototype.line=void 0,Qe.prototype.ancestors=void 0,Qe.prototype.cause=void 0,Qe.prototype.fatal=void 0,Qe.prototype.place=void 0,Qe.prototype.ruleId=void 0,Qe.prototype.source=void 0;const cM={}.hasOwnProperty,NA=new Map,UA=/[A-Z]/g,_A=new Set(["table","tbody","thead","tfoot","tr"]),GA=new Set(["td","th"]),qb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ZA(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ez(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=$A(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Qv:xb,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Hb(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function Hb(e,t,n){if(t.type==="element")return WA(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return XA(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return YA(e,t,n);if(t.type==="mdxjsEsm")return KA(e,t);if(t.type==="root")return QA(e,t,n);if(t.type==="text")return JA(e,t)}function WA(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Qv,e.schema=a),e.ancestors.push(t);const o=Pb(e,t.tagName,!1),l=tz(e,t);let c=hM(e,t);return _A.has(t.tagName)&&(c=c.filter(function(s){return typeof s=="string"?!aA(s):!0})),Bb(e,l,o,t),sM(l,c),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function XA(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Cn(e,t.position)}function KA(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Cn(e,t.position)}function YA(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Qv,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:Pb(e,t.name,!0),l=nz(e,t),c=hM(e,t);return Bb(e,l,o,t),sM(l,c),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function QA(e,t,n){const r={};return sM(r,hM(e,t)),e.create(t,e.Fragment,r,n)}function JA(e,t){return t.value}function Bb(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function sM(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function $A(e,t,n){return r;function r(a,o,l,c){const h=Array.isArray(l.children)?n:t;return c?h(o,l,c):h(o,l)}}function ez(e,t){return n;function n(r,a,o,l){const c=Array.isArray(o.children),s=oM(r);return t(a,o,l,c,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function tz(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&cM.call(t.properties,a)){const o=rz(e,a,t.properties[a]);if(o){const[l,c]=o;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&GA.has(t.tagName)?r=c:n[l]=c}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function nz(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const c=l.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else Cn(e,t.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const c=r.value.data.estree.body[0];c.type,o=e.evaluater.evaluateExpression(c.expression)}else Cn(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function hM(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:NA;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const h=a.get(s)||0;l=s+"-"+h,a.set(s,h+1)}}const c=Hb(e,o,l);c!==void 0&&n.push(c)}return n}function rz(e,t,n){const r=vb(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?$I(n):pA(n)),r.property==="style"){let a=typeof n=="object"?n:az(e,String(n));return e.stylePropertyNameCase==="css"&&(a=iz(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?cA[r.property]||r.property:r.attribute,n]}}function az(e,t){try{return OA(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Qe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=qb+"#cannot-parse-style-attribute",a}}function Pb(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,l;for(;++o<a.length;){const c=cb(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};l=l?{type:"MemberExpression",object:l,property:c,computed:!!(o&&c.type==="Literal"),optional:!1}:c}r=l}else r=cb(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return cM.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Cn(e)}function Cn(e,t){const n=new Qe("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=qb+"#cannot-handle-mdx-estrees-without-createevaluater",n}function iz(e){const t={};let n;for(n in e)cM.call(e,n)&&(t[oz(n)]=e[n]);return t}function oz(e){let t=e.replace(UA,lz);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function lz(e){return"-"+e.toLowerCase()}const uM={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"]},cz={};function dM(e,t){const n=cz,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Fb(e,r,a)}function Fb(e,t,n){if(sz(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 Db(e.children,t,n)}return Array.isArray(e)?Db(e,t,n):""}function Db(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Fb(e[a],t,n);return r.join("")}function sz(e){return!!(e&&typeof e=="object")}const Rb=document.createElement("i");function pM(e){const t="&"+e+";";Rb.innerHTML=t;const n=Rb.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function kt(e,t,n,r){const a=e.length;let o=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function wt(e,t){return e.length>0?(kt(e,e.length,0,t),e):t}const Eb={}.hasOwnProperty;function jb(e){const t={};let n=-1;for(;++n<e.length;)hz(t,e[n]);return t}function hz(e,t){let n;for(n in t){const a=(Eb.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Eb.call(a,l)||(a[l]=[]);const c=o[l];uz(a[l],Array.isArray(c)?c:c?[c]:[])}}}function uz(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);kt(e,0,0,r)}function Ob(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 zt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $e=a1(/[A-Za-z]/),Je=a1(/[\dA-Za-z]/),dz=a1(/[#-'*+\--9=?A-Z^-~]/);function $v(e){return e!==null&&(e<32||e===127)}const yM=a1(/\d/),pz=a1(/[\dA-Fa-f]/),yz=a1(/[!-/:-@[-`{-~]/);function te(e){return e!==null&&e<-2}function Le(e){return e!==null&&(e<0||e===32)}function ye(e){return e===-2||e===-1||e===32}const ex=a1(new RegExp("\\p{P}|\\p{S}","u")),P0=a1(/\s/);function a1(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Y0(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&Je(e.charCodeAt(n+1))&&Je(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const c=e.charCodeAt(n+1);o<56320&&c>56319&&c<57344?(l=String.fromCharCode(o,c),a=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function pe(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return ye(s)?(e.enter(n),c(s)):t(s)}function c(s){return ye(s)&&o++<a?(e.consume(s),c):(e.exit(n),t(s))}}const kz={tokenize:mz};function mz(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),pe(e,t,"linePrefix")}function a(c){return e.enter("paragraph"),o(c)}function o(c){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,l(c)}function l(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return te(c)?(e.consume(c),e.exit("chunkText"),o):(e.consume(c),l)}}const fz={tokenize:gz},Vb={tokenize:vz};function gz(e){const t=this,n=[];let r=0,a,o,l;return c;function c(q){if(r<n.length){const j=n[r];return t.containerState=j[1],e.attempt(j[0].continuation,s,h)(q)}return h(q)}function s(q){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&C();const j=t.events.length;let F=j,T;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){T=t.events[F][1].end;break}b(r);let R=j;for(;R<t.events.length;)t.events[R][1].end={...T},R++;return kt(t.events,F+1,0,t.events.slice(j)),t.events.length=R,h(q)}return c(q)}function h(q){if(r===n.length){if(!a)return m(q);if(a.currentConstruct&&a.currentConstruct.concrete)return g(q);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Vb,u,d)(q)}function u(q){return a&&C(),b(r),m(q)}function d(q){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,g(q)}function m(q){return t.containerState={},e.attempt(Vb,k,g)(q)}function k(q){return r++,n.push([t.currentConstruct,t.containerState]),m(q)}function g(q){if(q===null){a&&C(),b(0),e.consume(q);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),x(q)}function x(q){if(q===null){A(e.exit("chunkFlow"),!0),b(0),e.consume(q);return}return te(q)?(e.consume(q),A(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(q),x)}function A(q,j){const F=t.sliceStream(q);if(j&&F.push(null),q.previous=o,o&&(o.next=q),o=q,a.defineSkip(q.start),a.write(F),t.parser.lazy[q.start.line]){let T=a.events.length;for(;T--;)if(a.events[T][1].start.offset<l&&(!a.events[T][1].end||a.events[T][1].end.offset>l))return;const R=t.events.length;let K=R,Z,B;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(Z){B=t.events[K][1].end;break}Z=!0}for(b(r),T=R;T<t.events.length;)t.events[T][1].end={...B},T++;kt(t.events,K+1,0,t.events.slice(R)),t.events.length=T}}function b(q){let j=n.length;for(;j-- >q;){const F=n[j];t.containerState=F[1],F[0].exit.call(t,e)}n.length=q}function C(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}function vz(e,t,n){return pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Q0(e){if(e===null||Le(e)||P0(e))return 1;if(ex(e))return 2}function tx(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const kM={name:"attention",resolveAll:xz,tokenize:Mz};function xz(e,t){let n=-1,r,a,o,l,c,s,h,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};Nb(d,-s),Nb(m,s),l={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},c={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:s>1?"strong":"emphasis",start:{...l.start},end:{...c.end}},e[r][1].end={...l.start},e[n][1].start={...c.end},h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=wt(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=wt(h,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",o,t]]),h=wt(h,tx(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=wt(h,[["exit",o,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,h=wt(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,kt(e,r-1,n-r+3,h),n=r+h.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Mz(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Q0(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),c(s)}function c(s){if(s===o)return e.consume(s),c;const h=e.exit("attentionSequence"),u=Q0(s),d=!u||u===2&&a||n.includes(s),m=!a||a===2&&u||n.includes(r);return h._open=!!(o===42?d:d&&(a||!m)),h._close=!!(o===42?m:m&&(u||!d)),t(s)}}function Nb(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const wz={name:"autolink",tokenize:bz};function bz(e,t,n){let r=0;return a;function a(k){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(k),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(k){return $e(k)?(e.consume(k),l):k===64?n(k):h(k)}function l(k){return k===43||k===45||k===46||Je(k)?(r=1,c(k)):h(k)}function c(k){return k===58?(e.consume(k),r=0,s):(k===43||k===45||k===46||Je(k))&&r++<32?(e.consume(k),c):(r=0,h(k))}function s(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||$v(k)?n(k):(e.consume(k),s)}function h(k){return k===64?(e.consume(k),u):dz(k)?(e.consume(k),h):n(k)}function u(k){return Je(k)?d(k):n(k)}function d(k){return k===46?(e.consume(k),r=0,u):k===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(k),e.exit("autolinkMarker"),e.exit("autolink"),t):m(k)}function m(k){if((k===45||Je(k))&&r++<63){const g=k===45?m:d;return e.consume(k),g}return n(k)}}const In={partial:!0,tokenize:Lz};function Lz(e,t,n){return r;function r(o){return ye(o)?pe(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||te(o)?t(o):n(o)}}const Ub={continuation:{tokenize:Cz},exit:Iz,name:"blockQuote",tokenize:Sz};function Sz(e,t,n){const r=this;return a;function a(l){if(l===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return ye(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Cz(e,t,n){const r=this;return a;function a(l){return ye(l)?pe(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Ub,t,n)(l)}}function Iz(e){e.exit("blockQuote")}const _b={name:"characterEscape",tokenize:Az};function Az(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),a}function a(o){return yz(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Gb={name:"characterReference",tokenize:zz};function zz(e,t,n){const r=this;let a=0,o,l;return c;function c(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),o=31,l=Je,u(d))}function h(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=pz,u):(e.enter("characterReferenceValue"),o=7,l=yM,u(d))}function u(d){if(d===59&&a){const m=e.exit("characterReferenceValue");return l===Je&&!pM(r.sliceSerialize(m))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(d)&&a++<o?(e.consume(d),u):n(d)}}const Zb={partial:!0,tokenize:qz},Wb={concrete:!0,name:"codeFenced",tokenize:Tz};function Tz(e,t,n){const r=this,a={partial:!0,tokenize:F};let o=0,l=0,c;return s;function s(T){return h(T)}function h(T){const R=r.events[r.events.length-1];return o=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,c=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(T)}function u(T){return T===c?(l++,e.consume(T),u):l<3?n(T):(e.exit("codeFencedFenceSequence"),ye(T)?pe(e,d,"whitespace")(T):d(T))}function d(T){return T===null||te(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(Zb,x,j)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===null||te(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(T)):ye(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,k,"whitespace")(T)):T===96&&T===c?n(T):(e.consume(T),m)}function k(T){return T===null||te(T)?d(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(T))}function g(T){return T===null||te(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(T)):T===96&&T===c?n(T):(e.consume(T),g)}function x(T){return e.attempt(a,j,A)(T)}function A(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),b}function b(T){return o>0&&ye(T)?pe(e,C,"linePrefix",o+1)(T):C(T)}function C(T){return T===null||te(T)?e.check(Zb,x,j)(T):(e.enter("codeFlowValue"),q(T))}function q(T){return T===null||te(T)?(e.exit("codeFlowValue"),C(T)):(e.consume(T),q)}function j(T){return e.exit("codeFenced"),t(T)}function F(T,R,K){let Z=0;return B;function B(Y){return T.enter("lineEnding"),T.consume(Y),T.exit("lineEnding"),G}function G(Y){return T.enter("codeFencedFence"),ye(Y)?pe(T,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):D(Y)}function D(Y){return Y===c?(T.enter("codeFencedFenceSequence"),oe(Y)):K(Y)}function oe(Y){return Y===c?(Z++,T.consume(Y),oe):Z>=l?(T.exit("codeFencedFenceSequence"),ye(Y)?pe(T,ne,"whitespace")(Y):ne(Y)):K(Y)}function ne(Y){return Y===null||te(Y)?(T.exit("codeFencedFence"),R(Y)):K(Y)}}}function qz(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const mM={name:"codeIndented",tokenize:Bz},Hz={partial:!0,tokenize:Pz};function Bz(e,t,n){const r=this;return a;function a(h){return e.enter("codeIndented"),pe(e,o,"linePrefix",5)(h)}function o(h){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?l(h):n(h)}function l(h){return h===null?s(h):te(h)?e.attempt(Hz,l,s)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||te(h)?(e.exit("codeFlowValue"),l(h)):(e.consume(h),c)}function s(h){return e.exit("codeIndented"),t(h)}}function Pz(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):te(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):pe(e,o,"linePrefix",5)(l)}function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):te(l)?a(l):n(l)}}const Fz={name:"codeText",previous:Rz,resolve:Dz,tokenize:Ez};function Dz(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Rz(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ez(e,t,n){let r=0,a,o;return l;function l(d){return e.enter("codeText"),e.enter("codeTextSequence"),c(d)}function c(d){return d===96?(e.consume(d),r++,c):(e.exit("codeTextSequence"),s(d))}function s(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),s):d===96?(o=e.enter("codeTextSequence"),a=0,u(d)):te(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("codeTextData"),h(d))}function h(d){return d===null||d===32||d===96||te(d)?(e.exit("codeTextData"),s(d)):(e.consume(d),h)}function u(d){return d===96?(e.consume(d),a++,u):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",h(d))}}class jz{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&An(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),An(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),An(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);An(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);An(this.left,n.reverse())}}}function An(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 Xb(e){const t={};let n=-1,r,a,o,l,c,s,h;const u=new jz(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Oz(u,n)),n=t[n],h=!0);else if(r[1]._container){for(o=n,a=void 0;o--;)if(l=u.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(u.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;a&&(r[1].end={...u.get(a)[1].start},c=u.slice(a,n),c.unshift(r),u.splice(a,n-a+1,c))}}return kt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!h}function Oz(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const c=l.events,s=[],h={};let u,d,m=-1,k=n,g=0,x=0;const A=[x];for(;k;){for(;e.get(++a)[1]!==k;);o.push(a),k._tokenizer||(u=r.sliceStream(k),k.next||u.push(null),d&&l.defineSkip(k.start),k._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(u),k._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),d=k,k=k.next}for(k=n;++m<c.length;)c[m][0]==="exit"&&c[m-1][0]==="enter"&&c[m][1].type===c[m-1][1].type&&c[m][1].start.line!==c[m][1].end.line&&(x=m+1,A.push(x),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(l.events=[],k?(k._tokenizer=void 0,k.previous=void 0):A.pop(),m=A.length;m--;){const b=c.slice(A[m],A[m+1]),C=o.pop();s.push([C,C+b.length-1]),e.splice(C,2,b)}for(s.reverse(),m=-1;++m<s.length;)h[g+s[m][0]]=g+s[m][1],g+=s[m][1]-s[m][0]-1;return h}const Vz={resolve:Uz,tokenize:_z},Nz={partial:!0,tokenize:Gz};function Uz(e){return Xb(e),e}function _z(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(c)}function a(c){return c===null?o(c):te(c)?e.check(Nz,l,o)(c):(e.consume(c),a)}function o(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function l(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Gz(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),pe(e,o,"linePrefix")}function o(l){if(l===null||te(l))return n(l);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Kb(e,t,n,r,a,o,l,c,s){const h=s||Number.POSITIVE_INFINITY;let u=0;return d;function d(b){return b===60?(e.enter(r),e.enter(a),e.enter(o),e.consume(b),e.exit(o),m):b===null||b===32||b===41||$v(b)?n(b):(e.enter(r),e.enter(l),e.enter(c),e.enter("chunkString",{contentType:"string"}),x(b))}function m(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),k(b))}function k(b){return b===62?(e.exit("chunkString"),e.exit(c),m(b)):b===null||b===60||te(b)?n(b):(e.consume(b),b===92?g:k)}function g(b){return b===60||b===62||b===92?(e.consume(b),k):k(b)}function x(b){return!u&&(b===null||b===41||Le(b))?(e.exit("chunkString"),e.exit(c),e.exit(l),e.exit(r),t(b)):u<h&&b===40?(e.consume(b),u++,x):b===41?(e.consume(b),u--,x):b===null||b===32||b===40||$v(b)?n(b):(e.consume(b),b===92?A:x)}function A(b){return b===40||b===41||b===92?(e.consume(b),x):x(b)}}function Yb(e,t,n,r,a,o){const l=this;let c=0,s;return h;function h(k){return e.enter(r),e.enter(a),e.consume(k),e.exit(a),e.enter(o),u}function u(k){return c>999||k===null||k===91||k===93&&!s||k===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?n(k):k===93?(e.exit(o),e.enter(a),e.consume(k),e.exit(a),e.exit(r),t):te(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(k))}function d(k){return k===null||k===91||k===93||te(k)||c++>999?(e.exit("chunkString"),u(k)):(e.consume(k),s||(s=!ye(k)),k===92?m:d)}function m(k){return k===91||k===92||k===93?(e.consume(k),c++,d):d(k)}}function Qb(e,t,n,r,a,o){let l;return c;function c(m){return m===34||m===39||m===40?(e.enter(r),e.enter(a),e.consume(m),e.exit(a),l=m===40?41:m,s):n(m)}function s(m){return m===l?(e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):(e.enter(o),h(m))}function h(m){return m===l?(e.exit(o),s(l)):m===null?n(m):te(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),pe(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(m))}function u(m){return m===l||m===null||te(m)?(e.exit("chunkString"),h(m)):(e.consume(m),m===92?d:u)}function d(m){return m===l||m===92?(e.consume(m),u):u(m)}}function zn(e,t){let n;return r;function r(a){return te(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):ye(a)?pe(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Zz={name:"definition",tokenize:Xz},Wz={partial:!0,tokenize:Kz};function Xz(e,t,n){const r=this;let a;return o;function o(k){return e.enter("definition"),l(k)}function l(k){return Yb.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(k)}function c(k){return a=zt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),s):n(k)}function s(k){return Le(k)?zn(e,h)(k):h(k)}function h(k){return Kb(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(k)}function u(k){return e.attempt(Wz,d,d)(k)}function d(k){return ye(k)?pe(e,m,"whitespace")(k):m(k)}function m(k){return k===null||te(k)?(e.exit("definition"),r.parser.defined.push(a),t(k)):n(k)}}function Kz(e,t,n){return r;function r(c){return Le(c)?zn(e,a)(c):n(c)}function a(c){return Qb(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function o(c){return ye(c)?pe(e,l,"whitespace")(c):l(c)}function l(c){return c===null||te(c)?t(c):n(c)}}const Yz={name:"hardBreakEscape",tokenize:Qz};function Qz(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),a}function a(o){return te(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Jz={name:"headingAtx",resolve:$z,tokenize:eT};function $z(e,t){let n=e.length-2,r=3,a,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},kt(e,r,n-r+1,[["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t]])),e}function eT(e,t,n){let r=0;return a;function a(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),l(u)}function l(u){return u===35&&r++<6?(e.consume(u),l):u===null||Le(u)?(e.exit("atxHeadingSequence"),c(u)):n(u)}function c(u){return u===35?(e.enter("atxHeadingSequence"),s(u)):u===null||te(u)?(e.exit("atxHeading"),t(u)):ye(u)?pe(e,c,"whitespace")(u):(e.enter("atxHeadingText"),h(u))}function s(u){return u===35?(e.consume(u),s):(e.exit("atxHeadingSequence"),c(u))}function h(u){return u===null||u===35||Le(u)?(e.exit("atxHeadingText"),c(u)):(e.consume(u),h)}}const tT=["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"],Jb=["pre","script","style","textarea"],nT={concrete:!0,name:"htmlFlow",resolveTo:iT,tokenize:oT},rT={partial:!0,tokenize:cT},aT={partial:!0,tokenize:lT};function iT(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 oT(e,t,n){const r=this;let a,o,l,c,s;return h;function h(I){return u(I)}function u(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),d}function d(I){return I===33?(e.consume(I),m):I===47?(e.consume(I),o=!0,x):I===63?(e.consume(I),a=3,r.interrupt?t:L):$e(I)?(e.consume(I),l=String.fromCharCode(I),A):n(I)}function m(I){return I===45?(e.consume(I),a=2,k):I===91?(e.consume(I),a=5,c=0,g):$e(I)?(e.consume(I),a=4,r.interrupt?t:L):n(I)}function k(I){return I===45?(e.consume(I),r.interrupt?t:L):n(I)}function g(I){const Ne="CDATA[";return I===Ne.charCodeAt(c++)?(e.consume(I),c===Ne.length?r.interrupt?t:D:g):n(I)}function x(I){return $e(I)?(e.consume(I),l=String.fromCharCode(I),A):n(I)}function A(I){if(I===null||I===47||I===62||Le(I)){const Ne=I===47,Ge=l.toLowerCase();return!Ne&&!o&&Jb.includes(Ge)?(a=1,r.interrupt?t(I):D(I)):tT.includes(l.toLowerCase())?(a=6,Ne?(e.consume(I),b):r.interrupt?t(I):D(I)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(I):o?C(I):q(I))}return I===45||Je(I)?(e.consume(I),l+=String.fromCharCode(I),A):n(I)}function b(I){return I===62?(e.consume(I),r.interrupt?t:D):n(I)}function C(I){return ye(I)?(e.consume(I),C):B(I)}function q(I){return I===47?(e.consume(I),B):I===58||I===95||$e(I)?(e.consume(I),j):ye(I)?(e.consume(I),q):B(I)}function j(I){return I===45||I===46||I===58||I===95||Je(I)?(e.consume(I),j):F(I)}function F(I){return I===61?(e.consume(I),T):ye(I)?(e.consume(I),F):q(I)}function T(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),s=I,R):ye(I)?(e.consume(I),T):K(I)}function R(I){return I===s?(e.consume(I),s=null,Z):I===null||te(I)?n(I):(e.consume(I),R)}function K(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||Le(I)?F(I):(e.consume(I),K)}function Z(I){return I===47||I===62||ye(I)?q(I):n(I)}function B(I){return I===62?(e.consume(I),G):n(I)}function G(I){return I===null||te(I)?D(I):ye(I)?(e.consume(I),G):n(I)}function D(I){return I===45&&a===2?(e.consume(I),de):I===60&&a===1?(e.consume(I),fe):I===62&&a===4?(e.consume(I),Te):I===63&&a===3?(e.consume(I),L):I===93&&a===5?(e.consume(I),Ee):te(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(rT,be,oe)(I)):I===null||te(I)?(e.exit("htmlFlowData"),oe(I)):(e.consume(I),D)}function oe(I){return e.check(aT,ne,be)(I)}function ne(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),Y}function Y(I){return I===null||te(I)?oe(I):(e.enter("htmlFlowData"),D(I))}function de(I){return I===45?(e.consume(I),L):D(I)}function fe(I){return I===47?(e.consume(I),l="",Ce):D(I)}function Ce(I){if(I===62){const Ne=l.toLowerCase();return Jb.includes(Ne)?(e.consume(I),Te):D(I)}return $e(I)&&l.length<8?(e.consume(I),l+=String.fromCharCode(I),Ce):D(I)}function Ee(I){return I===93?(e.consume(I),L):D(I)}function L(I){return I===62?(e.consume(I),Te):I===45&&a===2?(e.consume(I),L):D(I)}function Te(I){return I===null||te(I)?(e.exit("htmlFlowData"),be(I)):(e.consume(I),Te)}function be(I){return e.exit("htmlFlow"),t(I)}}function lT(e,t,n){const r=this;return a;function a(l){return te(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function cT(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(In,t,n)}}const sT={name:"htmlText",tokenize:hT};function hT(e,t,n){const r=this;let a,o,l;return c;function c(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),s}function s(L){return L===33?(e.consume(L),h):L===47?(e.consume(L),F):L===63?(e.consume(L),q):$e(L)?(e.consume(L),K):n(L)}function h(L){return L===45?(e.consume(L),u):L===91?(e.consume(L),o=0,g):$e(L)?(e.consume(L),C):n(L)}function u(L){return L===45?(e.consume(L),k):n(L)}function d(L){return L===null?n(L):L===45?(e.consume(L),m):te(L)?(l=d,fe(L)):(e.consume(L),d)}function m(L){return L===45?(e.consume(L),k):d(L)}function k(L){return L===62?de(L):L===45?m(L):d(L)}function g(L){const Te="CDATA[";return L===Te.charCodeAt(o++)?(e.consume(L),o===Te.length?x:g):n(L)}function x(L){return L===null?n(L):L===93?(e.consume(L),A):te(L)?(l=x,fe(L)):(e.consume(L),x)}function A(L){return L===93?(e.consume(L),b):x(L)}function b(L){return L===62?de(L):L===93?(e.consume(L),b):x(L)}function C(L){return L===null||L===62?de(L):te(L)?(l=C,fe(L)):(e.consume(L),C)}function q(L){return L===null?n(L):L===63?(e.consume(L),j):te(L)?(l=q,fe(L)):(e.consume(L),q)}function j(L){return L===62?de(L):q(L)}function F(L){return $e(L)?(e.consume(L),T):n(L)}function T(L){return L===45||Je(L)?(e.consume(L),T):R(L)}function R(L){return te(L)?(l=R,fe(L)):ye(L)?(e.consume(L),R):de(L)}function K(L){return L===45||Je(L)?(e.consume(L),K):L===47||L===62||Le(L)?Z(L):n(L)}function Z(L){return L===47?(e.consume(L),de):L===58||L===95||$e(L)?(e.consume(L),B):te(L)?(l=Z,fe(L)):ye(L)?(e.consume(L),Z):de(L)}function B(L){return L===45||L===46||L===58||L===95||Je(L)?(e.consume(L),B):G(L)}function G(L){return L===61?(e.consume(L),D):te(L)?(l=G,fe(L)):ye(L)?(e.consume(L),G):Z(L)}function D(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),a=L,oe):te(L)?(l=D,fe(L)):ye(L)?(e.consume(L),D):(e.consume(L),ne)}function oe(L){return L===a?(e.consume(L),a=void 0,Y):L===null?n(L):te(L)?(l=oe,fe(L)):(e.consume(L),oe)}function ne(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Le(L)?Z(L):(e.consume(L),ne)}function Y(L){return L===47||L===62||Le(L)?Z(L):n(L)}function de(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function fe(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),Ce}function Ce(L){return ye(L)?pe(e,Ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):Ee(L)}function Ee(L){return e.enter("htmlTextData"),l(L)}}const fM={name:"labelEnd",resolveAll:yT,resolveTo:kT,tokenize:mT},uT={tokenize:fT},dT={tokenize:gT},pT={tokenize:vT};function yT(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&kt(e,0,e.length,n),e}function kT(e,t){let n=e.length,r=0,a,o,l,c;for(;n--;)if(a=e[n][1],o){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(o=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(l=n);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},u={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return c=[["enter",s,t],["enter",h,t]],c=wt(c,e.slice(o+1,o+r+3)),c=wt(c,[["enter",u,t]]),c=wt(c,tx(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),c=wt(c,[["exit",u,t],e[l-2],e[l-1],["exit",h,t]]),c=wt(c,e.slice(l+1)),c=wt(c,[["exit",s,t]]),kt(e,o,e.length,c),e}function mT(e,t,n){const r=this;let a=r.events.length,o,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return c;function c(m){return o?o._inactive?d(m):(l=r.parser.defined.includes(zt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),s):n(m)}function s(m){return m===40?e.attempt(uT,u,l?u:d)(m):m===91?e.attempt(dT,u,l?h:d)(m):l?u(m):d(m)}function h(m){return e.attempt(pT,u,d)(m)}function u(m){return t(m)}function d(m){return o._balanced=!0,n(m)}}function fT(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Le(d)?zn(e,o)(d):o(d)}function o(d){return d===41?u(d):Kb(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function l(d){return Le(d)?zn(e,s)(d):u(d)}function c(d){return n(d)}function s(d){return d===34||d===39||d===40?Qb(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function h(d){return Le(d)?zn(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function gT(e,t,n){const r=this;return a;function a(c){return Yb.call(r,e,o,l,"reference","referenceMarker","referenceString")(c)}function o(c){return r.parser.defined.includes(zt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function vT(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),a}function a(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const xT={name:"labelStartImage",resolveAll:fM.resolveAll,tokenize:MT};function MT(e,t,n){const r=this;return a;function a(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),o}function o(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),l):n(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const wT={name:"labelStartLink",resolveAll:fM.resolveAll,tokenize:bT};function bT(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const gM={name:"lineEnding",tokenize:LT};function LT(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),pe(e,t,"linePrefix")}}const nx={name:"thematicBreak",tokenize:ST};function ST(e,t,n){let r=0,a;return o;function o(h){return e.enter("thematicBreak"),l(h)}function l(h){return a=h,c(h)}function c(h){return h===a?(e.enter("thematicBreakSequence"),s(h)):r>=3&&(h===null||te(h))?(e.exit("thematicBreak"),t(h)):n(h)}function s(h){return h===a?(e.consume(h),r++,s):(e.exit("thematicBreakSequence"),ye(h)?pe(e,c,"whitespace")(h):c(h))}}const ct={continuation:{tokenize:zT},exit:qT,name:"list",tokenize:AT},CT={partial:!0,tokenize:HT},IT={partial:!0,tokenize:TT};function AT(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return c;function c(k){const g=r.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||k===r.containerState.marker:yM(k)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),k===42||k===45?e.check(nx,n,h)(k):h(k);if(!r.interrupt||k===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(k)}return n(k)}function s(k){return yM(k)&&++l<10?(e.consume(k),s):(!r.interrupt||l<2)&&(r.containerState.marker?k===r.containerState.marker:k===41||k===46)?(e.exit("listItemValue"),h(k)):n(k)}function h(k){return e.enter("listItemMarker"),e.consume(k),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||k,e.check(In,r.interrupt?n:u,e.attempt(CT,m,d))}function u(k){return r.containerState.initialBlankLine=!0,o++,m(k)}function d(k){return ye(k)?(e.enter("listItemPrefixWhitespace"),e.consume(k),e.exit("listItemPrefixWhitespace"),m):n(k)}function m(k){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(k)}}function zT(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(In,a,o);function a(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,pe(e,t,"listItemIndent",r.containerState.size+1)(c)}function o(c){return r.containerState.furtherBlankLines||!ye(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(IT,t,l)(c))}function l(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,pe(e,e.attempt(ct,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function TT(e,t,n){const r=this;return pe(e,a,"listItemIndent",r.containerState.size+1);function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function qT(e){e.exit(this.containerState.type)}function HT(e,t,n){const r=this;return pe(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(o){const l=r.events[r.events.length-1];return!ye(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const $b={name:"setextUnderline",resolveTo:BT,tokenize:PT};function BT(e,t){let n=e.length,r,a,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function PT(e,t,n){const r=this;let a;return o;function o(h){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=h,l(h)):n(h)}function l(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===a?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),ye(h)?pe(e,s,"lineSuffix")(h):s(h))}function s(h){return h===null||te(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const FT={tokenize:DT};function DT(e){const t=this,n=e.attempt(In,r,e.attempt(this.parser.constructs.flowInitial,a,pe(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Vz,a)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const RT={resolveAll:tL()},ET=eL("string"),jT=eL("text");function eL(e){return{resolveAll:tL(e==="text"?OT:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],o=n.attempt(a,l,c);return l;function l(u){return h(u)?o(u):c(u)}function c(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),s}function s(u){return h(u)?(n.exit("data"),o(u)):(n.consume(u),s)}function h(u){if(u===null)return!0;const d=a[u];let m=-1;if(d)for(;++m<d.length;){const k=d[m];if(!k.previous||k.previous.call(r,r.previous))return!0}return!1}}}function tL(e){return t;function t(n,r){let a=-1,o;for(;++a<=n.length;)o===void 0?n[a]&&n[a][1].type==="data"&&(o=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==o+2&&(n[o][1].end=n[a-1][1].end,n.splice(o+2,a-o-2),a=o+2),o=void 0);return e?e(n,r):n}}function OT(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let o=a.length,l=-1,c=0,s;for(;o--;){const h=a[o];if(typeof h=="string"){for(l=h.length;h.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(h===-2)s=!0,c++;else if(h!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||s||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const VT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Zz},disable:{null:[]},document:{42:ct,43:ct,45:ct,48:ct,49:ct,50:ct,51:ct,52:ct,53:ct,54:ct,55:ct,56:ct,57:ct,62:Ub},flow:{35:Jz,42:nx,45:[$b,nx],60:nT,61:$b,95:nx,96:Wb,126:Wb},flowInitial:{[-2]:mM,[-1]:mM,32:mM},insideSpan:{null:[kM,RT]},string:{38:Gb,92:_b},text:{[-5]:gM,[-4]:gM,[-3]:gM,33:xT,38:Gb,42:kM,60:[wz,sT],91:wT,92:[Yz,_b],93:fM,95:kM,96:Fz}},Symbol.toStringTag,{value:"Module"}));function NT(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let l=[],c=[];const s={attempt:R(F),check:R(T),consume:C,enter:q,exit:j,interrupt:R(T,{interrupt:!0})},h={code:null,containerState:{},defineSkip:x,events:[],now:g,parser:e,previous:null,sliceSerialize:m,sliceStream:k,write:d};let u=t.tokenize.call(h,s);return t.resolveAll&&o.push(t),h;function d(G){return l=wt(l,G),A(),l[l.length-1]!==null?[]:(K(t,0),h.events=tx(o,h.events,h),h.events)}function m(G,D){return _T(k(G),D)}function k(G){return UT(l,G)}function g(){const{_bufferIndex:G,_index:D,line:oe,column:ne,offset:Y}=r;return{_bufferIndex:G,_index:D,line:oe,column:ne,offset:Y}}function x(G){a[G.line]=G.column,B()}function A(){let G;for(;r._index<l.length;){const D=l[r._index];if(typeof D=="string")for(G=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===G&&r._bufferIndex<D.length;)b(D.charCodeAt(r._bufferIndex));else b(D)}}function b(G){u=u(G)}function C(G){te(G)?(r.line++,r.column=1,r.offset+=G===-3?2:1,B()):G!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=G}function q(G,D){const oe=D||{};return oe.type=G,oe.start=g(),h.events.push(["enter",oe,h]),c.push(oe),oe}function j(G){const D=c.pop();return D.end=g(),h.events.push(["exit",D,h]),D}function F(G,D){K(G,D.from)}function T(G,D){D.restore()}function R(G,D){return oe;function oe(ne,Y,de){let fe,Ce,Ee,L;return Array.isArray(ne)?be(ne):"tokenize"in ne?be([ne]):Te(ne);function Te(He){return Ze;function Ze(De){const We=De!==null&&He[De],Ke=De!==null&&He.null,vt=[...Array.isArray(We)?We:We?[We]:[],...Array.isArray(Ke)?Ke:Ke?[Ke]:[]];return be(vt)(De)}}function be(He){return fe=He,Ce=0,He.length===0?de:I(He[Ce])}function I(He){return Ze;function Ze(De){return L=Z(),Ee=He,He.partial||(h.currentConstruct=He),He.name&&h.parser.constructs.disable.null.includes(He.name)?Ge():He.tokenize.call(D?Object.assign(Object.create(h),D):h,s,Ne,Ge)(De)}}function Ne(He){return G(Ee,L),Y}function Ge(He){return L.restore(),++Ce<fe.length?I(fe[Ce]):de}}}function K(G,D){G.resolveAll&&!o.includes(G)&&o.push(G),G.resolve&&kt(h.events,D,h.events.length-D,G.resolve(h.events.slice(D),h)),G.resolveTo&&(h.events=G.resolveTo(h.events,h))}function Z(){const G=g(),D=h.previous,oe=h.currentConstruct,ne=h.events.length,Y=Array.from(c);return{from:ne,restore:de};function de(){r=G,h.previous=D,h.currentConstruct=oe,h.events.length=ne,c=Y,B()}}function B(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function UT(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,o)];else{if(l=e.slice(n,a),r>-1){const c=l[0];typeof c=="string"?l[0]=c.slice(r):l.shift()}o>0&&l.push(e[a].slice(0,o))}return l}function _T(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
7555
|
+
`,GI=e=>{const{BREAKPOINTS:t,WIDTHS:n}=xe.WINDOW_DIMENSIONS;return e<t.SM?"100%":e<t.MD?n.SM:e<t.LG?n.MD:n.LG},ZI=e=>e<xe.WINDOW_DIMENSIONS.BREAKPOINTS.SM?"100%":xe.WINDOW_DIMENSIONS.WIDTHS.SM,WI="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif";function XI(e){Object.assign(xe,e)}let rb=!1;function KI(){if(rb)return!0;try{if(typeof window<"u"){let e,t,n;if(window.CHATBOT_API_URL&&window.CHATBOT_API_KEY)e=window.CHATBOT_API_URL,t=window.CHATBOT_API_KEY;else if(Rx&&Ex)try{e=Rx(),t=Ex()}catch{}return!e||!t?(console.warn("API URL or API Key not configured"),!1):(window.CHATBOT_SESSION_ID?(n=window.CHATBOT_SESSION_ID,Jx(n)):n=Z0(),G0(e,t,n),rb=!0,!0)}}catch(e){console.error("Failed to configure API:",e)}return!1}function ab(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}const $x=EI((e,t)=>({messages:[],isLoading:!1,error:null,sessionId:Z0(),getSessionId:()=>t().sessionId,sendMessage:async n=>{try{const r=xe.MAX_SUGGESTED_QUESTION_QUERY_LENGTH;let a=n;if(n.length>r&&(a=n.substring(0,r)),!KI())throw new Error("API not properly configured");e(l=>({messages:[...l.messages,{id:ab(),role:"user",content:a}],isLoading:!0,error:null})),e(l=>({messages:[...l.messages,{id:ab(),role:"assistant",content:""}]}));let o=!1;try{for await(const l of NI(a))l.text&&(t().appendToLastMessage(l.text),o=!0);o||t().appendToLastMessage("No response received from the server. Please try again later.")}catch(l){console.error("Chat API error:",l),t().appendToLastMessage("Sorry, there was an error processing your request.")}e({isLoading:!1})}catch(r){console.error("Chat store error:",r),e(a=>({isLoading:!1,error:`Failed to send message: ${r instanceof Error?r.message:"Unknown error"}`}))}},appendToLastMessage:n=>{e(r=>{const a=[...r.messages],o=a[a.length-1];return o&&o.role==="assistant"&&(a[a.length-1]={...o,content:o.content+n}),{messages:a}})},clearMessages:()=>{e({messages:[]})}})),ib={primary:"#EC994B",secondary:"#1E3A8A",background:"#FFFFFF",text:{primary:"#1F2937",secondary:"#6B7280",inverse:"#FFFFFF"},input:{background:"#FFFFFF",border:"#D1D5DB"},message:{user:"#1E3A8A",userText:"#FFFFFF",assistant:"#FFFFFF"},suggestedQuestions:{background:"#F3F4F6",text:"#1F2937",hoverBackground:"#E5E7EB"},chatButton:{background:"#ffffff",hoverBackground:"#f8fafc",borderColor:"#e5e7eb",iconColor:"#f97316",iconBorderColor:"#111111",iconName:"MessageSquare"}},q0=()=>({header:{title:"AI Assistant"},theme:ib,welcome:{title:"Hello! How can I help you today?",description:"I'm your AI assistant, ready to help with any questions you might have."},suggestedQuestions:[{text:"What can you help me with?",query:"What can you help me with?"},{text:"Tell me about your features",query:"Tell me about your features"},{text:"How do I get started?",query:"How do I get started?"}]}),YI=e=>{const[t,n]=Q.useState(!1),[r,a]=Q.useState(!1),[o,l]=Q.useState(!1),c=Q.useRef(null),s=Q.useRef(null),h=Q.useRef(!0),u=Q.useRef(),d=Q.useCallback((g=!1)=>{if(c.current){const{scrollTop:x,scrollHeight:C,clientHeight:w}=c.current;(Math.abs(C-x-w)<100||h.current)&&(c.current.scrollTo({top:C,behavior:g?"auto":"smooth"}),setTimeout(()=>{m()},g?0:xe.ANIMATIONS.SCROLL_TIMEOUT))}},[]),m=Q.useCallback(()=>{if(c.current&&!e){const{scrollTop:g,scrollHeight:x,clientHeight:C}=c.current,w=Math.abs(x-g-C)<xe.SCROLL_THRESHOLDS.BOTTOM_THRESHOLD,I=g<xe.SCROLL_THRESHOLDS.TOP_THRESHOLD;n(!I&&g>xe.SCROLL_THRESHOLDS.SHOW_SCROLL_TOP_OFFSET),a(!w)}},[e]),k=Q.useCallback(()=>{c.current&&(l(!0),c.current.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{l(!1),m()},xe.ANIMATIONS.SCROLL_TIMEOUT))},[m]);return{showScrollTop:t,showScrollBottom:r,isScrolling:o,messagesContainerRef:c,messagesEndRef:s,shouldScrollRef:h,scrollTimeoutRef:u,scrollToBottom:d,scrollToTop:k,handleScroll:m}},QI=()=>{const[e,t]=Q.useState(!1),n=Q.useRef(new Set),r=Q.useRef(new Map),a=Q.useRef(!1),o=Q.useRef(null),l=Q.useRef(new Map),c=Q.useCallback((u,d,m)=>{n.current.add(u),r.current.delete(u),t(!1),a.current=!1,setTimeout(()=>m(),100)},[]),s=Q.useCallback(u=>n.current.has(u),[]),h=Q.useCallback(()=>{n.current.clear(),r.current.clear(),l.current.clear(),t(!1),a.current=!1},[]);return Q.useEffect(()=>{if(n.current.size>200){const u=new Set,d=new Map,m=Array.from(n.current),k=new Set(m.slice(-100));k.forEach(g=>u.add(g)),Array.from(r.current.keys()).forEach(g=>{k.has(g)&&d.set(g,r.current.get(g))}),n.current=u,r.current=d}},[]),{isAnimating:e,animatedMessagesRef:n,typingProgressRef:r,isTypingRef:a,lastMessageRef:o,markMessageAnimated:c,hasBeenAnimated:s,clearAnimationTrackers:h,setIsAnimating:t}},JI=({onSendMessage:e,isLoading:t,isOpen:n})=>{const[r,a]=Q.useState(""),[o,l]=Q.useState(!1),c=Q.useRef(null),s=Q.useCallback(k=>{const g=k.target.value;g.length<=xe.MAX_MESSAGE_LENGTH&&a(g)},[]),h=Q.useCallback(()=>{r.trim()&&!t&&(e(r.trim()),a(""))},[r,t,e]),u=Q.useCallback(k=>{k.key==="Enter"&&!k.shiftKey&&(k.preventDefault(),h())},[h]),d=Q.useCallback(()=>{a("")},[]),m=Q.useCallback(()=>{c.current&&c.current.focus()},[]);return Q.useEffect(()=>{n&&c.current&&c.current.focus()},[n]),{message:r,isFocused:o,inputRef:c,handleMessageChange:s,handleKeyDown:u,handleSendMessage:h,setIsFocused:l,clearMessage:d,focusInput:m}};function ob(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=ob(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function W0(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=ob(e))&&(r&&(r+=" "),r+=t);return r}function ER(){}function jR(){}function lb(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(a,r).trim();(l||!o)&&t.push(l),a=r+1,r=n.indexOf(",",a)}return t}function $I(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const eA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nA={};function cb(e,t){return(nA.jsx?tA:eA).test(e)}const rA=/[ \t\n\f\r]/g;function aA(e){return typeof e=="object"?e.type==="text"?sb(e.value):!1:sb(e)}function sb(e){return e.replace(rA,"")===""}class bn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}bn.prototype.normal={},bn.prototype.property={},bn.prototype.space=void 0;function hb(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new bn(n,r,t)}function Ln(e){return e.toLowerCase()}class lt{constructor(t,n){this.attribute=n,this.property=t}}lt.prototype.attribute="",lt.prototype.booleanish=!1,lt.prototype.boolean=!1,lt.prototype.commaOrSpaceSeparated=!1,lt.prototype.commaSeparated=!1,lt.prototype.defined=!1,lt.prototype.mustUseProperty=!1,lt.prototype.number=!1,lt.prototype.overloadedBoolean=!1,lt.prototype.property="",lt.prototype.spaceSeparated=!1,lt.prototype.space=void 0;let iA=0;const he=H0(),Oe=H0(),eM=H0(),_=H0(),Ae=H0(),X0=H0(),yt=H0();function H0(){return 2**++iA}const tM=Object.freeze(Object.defineProperty({__proto__:null,boolean:he,booleanish:Oe,commaOrSpaceSeparated:yt,commaSeparated:X0,number:_,overloadedBoolean:eM,spaceSeparated:Ae},Symbol.toStringTag,{value:"Module"})),nM=Object.keys(tM);class rM extends lt{constructor(t,n,r,a){let o=-1;if(super(t,n),ub(this,"space",a),typeof r=="number")for(;++o<nM.length;){const l=nM[o];ub(this,nM[o],(r&tM[l])===tM[l])}}}rM.prototype.defined=!0;function ub(e,t,n){n&&(e[t]=n)}function K0(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new rM(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ln(r)]=r,n[Ln(o.attribute)]=r}return new bn(t,n,e.space)}const db=K0({properties:{ariaActiveDescendant:null,ariaAtomic:Oe,ariaAutoComplete:null,ariaBusy:Oe,ariaChecked:Oe,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:Ae,ariaCurrent:null,ariaDescribedBy:Ae,ariaDetails:null,ariaDisabled:Oe,ariaDropEffect:Ae,ariaErrorMessage:null,ariaExpanded:Oe,ariaFlowTo:Ae,ariaGrabbed:Oe,ariaHasPopup:null,ariaHidden:Oe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ae,ariaLevel:_,ariaLive:null,ariaModal:Oe,ariaMultiLine:Oe,ariaMultiSelectable:Oe,ariaOrientation:null,ariaOwns:Ae,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:Oe,ariaReadOnly:Oe,ariaRelevant:null,ariaRequired:Oe,ariaRoleDescription:Ae,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:Oe,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function pb(e,t){return t in e?e[t]:t}function yb(e,t){return pb(e,t.toLowerCase())}const oA=K0({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:X0,acceptCharset:Ae,accessKey:Ae,action:null,allow:null,allowFullScreen:he,allowPaymentRequest:he,allowUserMedia:he,alt:null,as:null,async:he,autoCapitalize:null,autoComplete:Ae,autoFocus:he,autoPlay:he,blocking:Ae,capture:null,charSet:null,checked:he,cite:null,className:Ae,cols:_,colSpan:null,content:null,contentEditable:Oe,controls:he,controlsList:Ae,coords:_|X0,crossOrigin:null,data:null,dateTime:null,decoding:null,default:he,defer:he,dir:null,dirName:null,disabled:he,download:eM,draggable:Oe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:he,formTarget:null,headers:Ae,height:_,hidden:eM,high:_,href:null,hrefLang:null,htmlFor:Ae,httpEquiv:Ae,id:null,imageSizes:null,imageSrcSet:null,inert:he,inputMode:null,integrity:null,is:null,isMap:he,itemId:null,itemProp:Ae,itemRef:Ae,itemScope:he,itemType:Ae,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:he,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:he,muted:he,name:null,nonce:null,noModule:he,noValidate:he,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:he,optimum:_,pattern:null,ping:Ae,placeholder:null,playsInline:he,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:he,referrerPolicy:null,rel:Ae,required:he,reversed:he,rows:_,rowSpan:_,sandbox:Ae,scope:null,scoped:he,seamless:he,selected:he,shadowRootClonable:he,shadowRootDelegatesFocus:he,shadowRootMode:null,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:Oe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:he,useMap:null,value:Oe,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ae,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:he,declare:he,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:he,noHref:he,noShade:he,noWrap:he,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:Oe,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:he,disableRemotePlayback:he,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:yb}),lA=K0({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:yt,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:Ae,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:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:he,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,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:X0,g2:X0,glyphName:X0,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:yt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:_,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:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ae,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yt,rev:yt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yt,requiredFeatures:yt,requiredFonts:yt,requiredFormats:yt,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:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:yt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yt,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pb}),kb=K0({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()}}),mb=K0({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yb}),fb=K0({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),cA={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"},sA=/[A-Z]/g,gb=/-[a-z]/g,hA=/^data[-\w.:]+$/i;function vb(e,t){const n=Ln(t);let r=t,a=lt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&hA.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(gb,dA);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!gb.test(o)){let l=o.replace(sA,uA);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=rM}return new a(r,t)}function uA(e){return"-"+e.toLowerCase()}function dA(e){return e.charAt(1).toUpperCase()}const xb=hb([db,oA,kb,mb,fb],"html"),Qv=hb([db,lA,kb,mb,fb],"svg");function Mb(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function pA(e){return e.join(" ").trim()}var aM={},wb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,yA=/\n/g,kA=/^\s*/,mA=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,fA=/^:\s*/,gA=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,vA=/^[;\s]*/,xA=/^\s+|\s+$/g,MA=`
|
|
7556
|
+
`,bb="/",Lb="*",B0="",wA="comment",bA="declaration",LA=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(g){var x=g.match(yA);x&&(n+=x.length);var C=g.lastIndexOf(MA);r=~C?g.length-C:r+g.length}function o(){var g={line:n,column:r};return function(x){return x.position=new l(g),h(),x}}function l(g){this.start=g,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function c(g){var x=new Error(t.source+":"+n+":"+r+": "+g);if(x.reason=g,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function s(g){var x=g.exec(e);if(x){var C=x[0];return a(C),e=e.slice(C.length),x}}function h(){s(kA)}function u(g){var x;for(g=g||[];x=d();)x!==!1&&g.push(x);return g}function d(){var g=o();if(!(bb!=e.charAt(0)||Lb!=e.charAt(1))){for(var x=2;B0!=e.charAt(x)&&(Lb!=e.charAt(x)||bb!=e.charAt(x+1));)++x;if(x+=2,B0===e.charAt(x-1))return c("End of comment missing");var C=e.slice(2,x-2);return r+=2,a(C),e=e.slice(x),r+=2,g({type:wA,comment:C})}}function m(){var g=o(),x=s(mA);if(x){if(d(),!s(fA))return c("property missing ':'");var C=s(gA),w=g({type:bA,property:Sb(x[0].replace(wb,B0)),value:C?Sb(C[0].replace(wb,B0)):B0});return s(vA),w}}function k(){var g=[];u(g);for(var x;x=m();)x!==!1&&(g.push(x),u(g));return g}return h(),k()};function Sb(e){return e?e.replace(xA,B0):B0}var SA=Nn&&Nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(aM,"__esModule",{value:!0}),aM.default=IA;var CA=SA(LA);function IA(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,CA.default)(e),a=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var l=o.property,c=o.value;a?t(l,c,o):c&&(n=n||{},n[l]=c)}}),n}var Jv={};Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.camelCase=void 0;var AA=/^--[a-zA-Z0-9_-]+$/,zA=/-([a-z])/g,TA=/^[^-]+$/,qA=/^-(webkit|moz|ms|o|khtml)-/,HA=/^-(ms)-/,BA=function(e){return!e||TA.test(e)||AA.test(e)},PA=function(e,t){return t.toUpperCase()},Cb=function(e,t){return"".concat(t,"-")},FA=function(e,t){return t===void 0&&(t={}),BA(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(HA,Cb):e=e.replace(qA,Cb),e.replace(zA,PA))};Jv.camelCase=FA;var DA=Nn&&Nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},RA=DA(aM),EA=Jv;function iM(e,t){var n={};return!e||typeof e!="string"||(0,RA.default)(e,function(r,a){r&&a&&(n[(0,EA.camelCase)(r,t)]=a)}),n}iM.default=iM;var jA=iM;const OA=Ox(jA),Ib=Ab("end"),oM=Ab("start");function Ab(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function VA(e){const t=oM(e),n=Ib(e);if(t&&n)return{start:t,end:n}}function Sn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?zb(e.position):"start"in e||"end"in e?zb(e):"line"in e||"column"in e?lM(e):""}function lM(e){return Tb(e&&e.line)+":"+Tb(e&&e.column)}function zb(e){return lM(e&&e.start)+"-"+lM(e&&e.end)}function Tb(e){return e&&typeof e=="number"?e:1}class Qe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?a=t:!o.cause&&t&&(l=!0,a=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const c=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=c?c.line:void 0,this.name=Sn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Qe.prototype.file="",Qe.prototype.name="",Qe.prototype.reason="",Qe.prototype.message="",Qe.prototype.stack="",Qe.prototype.column=void 0,Qe.prototype.line=void 0,Qe.prototype.ancestors=void 0,Qe.prototype.cause=void 0,Qe.prototype.fatal=void 0,Qe.prototype.place=void 0,Qe.prototype.ruleId=void 0,Qe.prototype.source=void 0;const cM={}.hasOwnProperty,NA=new Map,UA=/[A-Z]/g,_A=new Set(["table","tbody","thead","tfoot","tr"]),GA=new Set(["td","th"]),qb="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ZA(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ez(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=$A(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Qv:xb,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Hb(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function Hb(e,t,n){if(t.type==="element")return WA(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return XA(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return YA(e,t,n);if(t.type==="mdxjsEsm")return KA(e,t);if(t.type==="root")return QA(e,t,n);if(t.type==="text")return JA(e,t)}function WA(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Qv,e.schema=a),e.ancestors.push(t);const o=Pb(e,t.tagName,!1),l=tz(e,t);let c=hM(e,t);return _A.has(t.tagName)&&(c=c.filter(function(s){return typeof s=="string"?!aA(s):!0})),Bb(e,l,o,t),sM(l,c),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function XA(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Cn(e,t.position)}function KA(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Cn(e,t.position)}function YA(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Qv,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:Pb(e,t.name,!0),l=nz(e,t),c=hM(e,t);return Bb(e,l,o,t),sM(l,c),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function QA(e,t,n){const r={};return sM(r,hM(e,t)),e.create(t,e.Fragment,r,n)}function JA(e,t){return t.value}function Bb(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function sM(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function $A(e,t,n){return r;function r(a,o,l,c){const h=Array.isArray(l.children)?n:t;return c?h(o,l,c):h(o,l)}}function ez(e,t){return n;function n(r,a,o,l){const c=Array.isArray(o.children),s=oM(r);return t(a,o,l,c,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function tz(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&cM.call(t.properties,a)){const o=rz(e,a,t.properties[a]);if(o){const[l,c]=o;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&GA.has(t.tagName)?r=c:n[l]=c}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function nz(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const c=l.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else Cn(e,t.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const c=r.value.data.estree.body[0];c.type,o=e.evaluater.evaluateExpression(c.expression)}else Cn(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function hM(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:NA;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const h=a.get(s)||0;l=s+"-"+h,a.set(s,h+1)}}const c=Hb(e,o,l);c!==void 0&&n.push(c)}return n}function rz(e,t,n){const r=vb(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?$I(n):pA(n)),r.property==="style"){let a=typeof n=="object"?n:az(e,String(n));return e.stylePropertyNameCase==="css"&&(a=iz(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?cA[r.property]||r.property:r.attribute,n]}}function az(e,t){try{return OA(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Qe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=qb+"#cannot-parse-style-attribute",a}}function Pb(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,l;for(;++o<a.length;){const c=cb(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};l=l?{type:"MemberExpression",object:l,property:c,computed:!!(o&&c.type==="Literal"),optional:!1}:c}r=l}else r=cb(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return cM.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Cn(e)}function Cn(e,t){const n=new Qe("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=qb+"#cannot-handle-mdx-estrees-without-createevaluater",n}function iz(e){const t={};let n;for(n in e)cM.call(e,n)&&(t[oz(n)]=e[n]);return t}function oz(e){let t=e.replace(UA,lz);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function lz(e){return"-"+e.toLowerCase()}const uM={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"]},cz={};function dM(e,t){const n=cz,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Fb(e,r,a)}function Fb(e,t,n){if(sz(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 Db(e.children,t,n)}return Array.isArray(e)?Db(e,t,n):""}function Db(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Fb(e[a],t,n);return r.join("")}function sz(e){return!!(e&&typeof e=="object")}const Rb=document.createElement("i");function pM(e){const t="&"+e+";";Rb.innerHTML=t;const n=Rb.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function kt(e,t,n,r){const a=e.length;let o=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function wt(e,t){return e.length>0?(kt(e,e.length,0,t),e):t}const Eb={}.hasOwnProperty;function jb(e){const t={};let n=-1;for(;++n<e.length;)hz(t,e[n]);return t}function hz(e,t){let n;for(n in t){const a=(Eb.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Eb.call(a,l)||(a[l]=[]);const c=o[l];uz(a[l],Array.isArray(c)?c:c?[c]:[])}}}function uz(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);kt(e,0,0,r)}function Ob(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 zt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $e=a1(/[A-Za-z]/),Je=a1(/[\dA-Za-z]/),dz=a1(/[#-'*+\--9=?A-Z^-~]/);function $v(e){return e!==null&&(e<32||e===127)}const yM=a1(/\d/),pz=a1(/[\dA-Fa-f]/),yz=a1(/[!-/:-@[-`{-~]/);function te(e){return e!==null&&e<-2}function Le(e){return e!==null&&(e<0||e===32)}function ye(e){return e===-2||e===-1||e===32}const ex=a1(new RegExp("\\p{P}|\\p{S}","u")),P0=a1(/\s/);function a1(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Y0(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&Je(e.charCodeAt(n+1))&&Je(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const c=e.charCodeAt(n+1);o<56320&&c>56319&&c<57344?(l=String.fromCharCode(o,c),a=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function pe(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return ye(s)?(e.enter(n),c(s)):t(s)}function c(s){return ye(s)&&o++<a?(e.consume(s),c):(e.exit(n),t(s))}}const kz={tokenize:mz};function mz(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),pe(e,t,"linePrefix")}function a(c){return e.enter("paragraph"),o(c)}function o(c){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,l(c)}function l(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return te(c)?(e.consume(c),e.exit("chunkText"),o):(e.consume(c),l)}}const fz={tokenize:gz},Vb={tokenize:vz};function gz(e){const t=this,n=[];let r=0,a,o,l;return c;function c(q){if(r<n.length){const j=n[r];return t.containerState=j[1],e.attempt(j[0].continuation,s,h)(q)}return h(q)}function s(q){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&I();const j=t.events.length;let R=j,T;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){T=t.events[R][1].end;break}w(r);let F=j;for(;F<t.events.length;)t.events[F][1].end={...T},F++;return kt(t.events,R+1,0,t.events.slice(j)),t.events.length=F,h(q)}return c(q)}function h(q){if(r===n.length){if(!a)return m(q);if(a.currentConstruct&&a.currentConstruct.concrete)return g(q);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Vb,u,d)(q)}function u(q){return a&&I(),w(r),m(q)}function d(q){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,g(q)}function m(q){return t.containerState={},e.attempt(Vb,k,g)(q)}function k(q){return r++,n.push([t.currentConstruct,t.containerState]),m(q)}function g(q){if(q===null){a&&I(),w(0),e.consume(q);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),x(q)}function x(q){if(q===null){C(e.exit("chunkFlow"),!0),w(0),e.consume(q);return}return te(q)?(e.consume(q),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(q),x)}function C(q,j){const R=t.sliceStream(q);if(j&&R.push(null),q.previous=o,o&&(o.next=q),o=q,a.defineSkip(q.start),a.write(R),t.parser.lazy[q.start.line]){let T=a.events.length;for(;T--;)if(a.events[T][1].start.offset<l&&(!a.events[T][1].end||a.events[T][1].end.offset>l))return;const F=t.events.length;let K=F,V,B;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(V){B=t.events[K][1].end;break}V=!0}for(w(r),T=F;T<t.events.length;)t.events[T][1].end={...B},T++;kt(t.events,K+1,0,t.events.slice(F)),t.events.length=T}}function w(q){let j=n.length;for(;j-- >q;){const R=n[j];t.containerState=R[1],R[0].exit.call(t,e)}n.length=q}function I(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}function vz(e,t,n){return pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Q0(e){if(e===null||Le(e)||P0(e))return 1;if(ex(e))return 2}function tx(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const kM={name:"attention",resolveAll:xz,tokenize:Mz};function xz(e,t){let n=-1,r,a,o,l,c,s,h,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};Nb(d,-s),Nb(m,s),l={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},c={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:s>1?"strong":"emphasis",start:{...l.start},end:{...c.end}},e[r][1].end={...l.start},e[n][1].start={...c.end},h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=wt(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=wt(h,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",o,t]]),h=wt(h,tx(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=wt(h,[["exit",o,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,h=wt(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,kt(e,r-1,n-r+3,h),n=r+h.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Mz(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Q0(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),c(s)}function c(s){if(s===o)return e.consume(s),c;const h=e.exit("attentionSequence"),u=Q0(s),d=!u||u===2&&a||n.includes(s),m=!a||a===2&&u||n.includes(r);return h._open=!!(o===42?d:d&&(a||!m)),h._close=!!(o===42?m:m&&(u||!d)),t(s)}}function Nb(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const wz={name:"autolink",tokenize:bz};function bz(e,t,n){let r=0;return a;function a(k){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(k),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(k){return $e(k)?(e.consume(k),l):k===64?n(k):h(k)}function l(k){return k===43||k===45||k===46||Je(k)?(r=1,c(k)):h(k)}function c(k){return k===58?(e.consume(k),r=0,s):(k===43||k===45||k===46||Je(k))&&r++<32?(e.consume(k),c):(r=0,h(k))}function s(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||$v(k)?n(k):(e.consume(k),s)}function h(k){return k===64?(e.consume(k),u):dz(k)?(e.consume(k),h):n(k)}function u(k){return Je(k)?d(k):n(k)}function d(k){return k===46?(e.consume(k),r=0,u):k===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(k),e.exit("autolinkMarker"),e.exit("autolink"),t):m(k)}function m(k){if((k===45||Je(k))&&r++<63){const g=k===45?m:d;return e.consume(k),g}return n(k)}}const In={partial:!0,tokenize:Lz};function Lz(e,t,n){return r;function r(o){return ye(o)?pe(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||te(o)?t(o):n(o)}}const Ub={continuation:{tokenize:Cz},exit:Iz,name:"blockQuote",tokenize:Sz};function Sz(e,t,n){const r=this;return a;function a(l){if(l===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return ye(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Cz(e,t,n){const r=this;return a;function a(l){return ye(l)?pe(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Ub,t,n)(l)}}function Iz(e){e.exit("blockQuote")}const _b={name:"characterEscape",tokenize:Az};function Az(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),a}function a(o){return yz(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Gb={name:"characterReference",tokenize:zz};function zz(e,t,n){const r=this;let a=0,o,l;return c;function c(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),o=31,l=Je,u(d))}function h(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=pz,u):(e.enter("characterReferenceValue"),o=7,l=yM,u(d))}function u(d){if(d===59&&a){const m=e.exit("characterReferenceValue");return l===Je&&!pM(r.sliceSerialize(m))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(d)&&a++<o?(e.consume(d),u):n(d)}}const Zb={partial:!0,tokenize:qz},Wb={concrete:!0,name:"codeFenced",tokenize:Tz};function Tz(e,t,n){const r=this,a={partial:!0,tokenize:R};let o=0,l=0,c;return s;function s(T){return h(T)}function h(T){const F=r.events[r.events.length-1];return o=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,c=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(T)}function u(T){return T===c?(l++,e.consume(T),u):l<3?n(T):(e.exit("codeFencedFenceSequence"),ye(T)?pe(e,d,"whitespace")(T):d(T))}function d(T){return T===null||te(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(Zb,x,j)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===null||te(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(T)):ye(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,k,"whitespace")(T)):T===96&&T===c?n(T):(e.consume(T),m)}function k(T){return T===null||te(T)?d(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(T))}function g(T){return T===null||te(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(T)):T===96&&T===c?n(T):(e.consume(T),g)}function x(T){return e.attempt(a,j,C)(T)}function C(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),w}function w(T){return o>0&&ye(T)?pe(e,I,"linePrefix",o+1)(T):I(T)}function I(T){return T===null||te(T)?e.check(Zb,x,j)(T):(e.enter("codeFlowValue"),q(T))}function q(T){return T===null||te(T)?(e.exit("codeFlowValue"),I(T)):(e.consume(T),q)}function j(T){return e.exit("codeFenced"),t(T)}function R(T,F,K){let V=0;return B;function B(Y){return T.enter("lineEnding"),T.consume(Y),T.exit("lineEnding"),Z}function Z(Y){return T.enter("codeFencedFence"),ye(Y)?pe(T,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):D(Y)}function D(Y){return Y===c?(T.enter("codeFencedFenceSequence"),oe(Y)):K(Y)}function oe(Y){return Y===c?(V++,T.consume(Y),oe):V>=l?(T.exit("codeFencedFenceSequence"),ye(Y)?pe(T,ne,"whitespace")(Y):ne(Y)):K(Y)}function ne(Y){return Y===null||te(Y)?(T.exit("codeFencedFence"),F(Y)):K(Y)}}}function qz(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const mM={name:"codeIndented",tokenize:Bz},Hz={partial:!0,tokenize:Pz};function Bz(e,t,n){const r=this;return a;function a(h){return e.enter("codeIndented"),pe(e,o,"linePrefix",5)(h)}function o(h){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?l(h):n(h)}function l(h){return h===null?s(h):te(h)?e.attempt(Hz,l,s)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||te(h)?(e.exit("codeFlowValue"),l(h)):(e.consume(h),c)}function s(h){return e.exit("codeIndented"),t(h)}}function Pz(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):te(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):pe(e,o,"linePrefix",5)(l)}function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):te(l)?a(l):n(l)}}const Fz={name:"codeText",previous:Rz,resolve:Dz,tokenize:Ez};function Dz(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Rz(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ez(e,t,n){let r=0,a,o;return l;function l(d){return e.enter("codeText"),e.enter("codeTextSequence"),c(d)}function c(d){return d===96?(e.consume(d),r++,c):(e.exit("codeTextSequence"),s(d))}function s(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),s):d===96?(o=e.enter("codeTextSequence"),a=0,u(d)):te(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("codeTextData"),h(d))}function h(d){return d===null||d===32||d===96||te(d)?(e.exit("codeTextData"),s(d)):(e.consume(d),h)}function u(d){return d===96?(e.consume(d),a++,u):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",h(d))}}class jz{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&An(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),An(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),An(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);An(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);An(this.left,n.reverse())}}}function An(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 Xb(e){const t={};let n=-1,r,a,o,l,c,s,h;const u=new jz(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Oz(u,n)),n=t[n],h=!0);else if(r[1]._container){for(o=n,a=void 0;o--;)if(l=u.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(u.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;a&&(r[1].end={...u.get(a)[1].start},c=u.slice(a,n),c.unshift(r),u.splice(a,n-a+1,c))}}return kt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!h}function Oz(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const c=l.events,s=[],h={};let u,d,m=-1,k=n,g=0,x=0;const C=[x];for(;k;){for(;e.get(++a)[1]!==k;);o.push(a),k._tokenizer||(u=r.sliceStream(k),k.next||u.push(null),d&&l.defineSkip(k.start),k._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(u),k._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),d=k,k=k.next}for(k=n;++m<c.length;)c[m][0]==="exit"&&c[m-1][0]==="enter"&&c[m][1].type===c[m-1][1].type&&c[m][1].start.line!==c[m][1].end.line&&(x=m+1,C.push(x),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(l.events=[],k?(k._tokenizer=void 0,k.previous=void 0):C.pop(),m=C.length;m--;){const w=c.slice(C[m],C[m+1]),I=o.pop();s.push([I,I+w.length-1]),e.splice(I,2,w)}for(s.reverse(),m=-1;++m<s.length;)h[g+s[m][0]]=g+s[m][1],g+=s[m][1]-s[m][0]-1;return h}const Vz={resolve:Uz,tokenize:_z},Nz={partial:!0,tokenize:Gz};function Uz(e){return Xb(e),e}function _z(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(c)}function a(c){return c===null?o(c):te(c)?e.check(Nz,l,o)(c):(e.consume(c),a)}function o(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function l(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Gz(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),pe(e,o,"linePrefix")}function o(l){if(l===null||te(l))return n(l);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Kb(e,t,n,r,a,o,l,c,s){const h=s||Number.POSITIVE_INFINITY;let u=0;return d;function d(w){return w===60?(e.enter(r),e.enter(a),e.enter(o),e.consume(w),e.exit(o),m):w===null||w===32||w===41||$v(w)?n(w):(e.enter(r),e.enter(l),e.enter(c),e.enter("chunkString",{contentType:"string"}),x(w))}function m(w){return w===62?(e.enter(o),e.consume(w),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),k(w))}function k(w){return w===62?(e.exit("chunkString"),e.exit(c),m(w)):w===null||w===60||te(w)?n(w):(e.consume(w),w===92?g:k)}function g(w){return w===60||w===62||w===92?(e.consume(w),k):k(w)}function x(w){return!u&&(w===null||w===41||Le(w))?(e.exit("chunkString"),e.exit(c),e.exit(l),e.exit(r),t(w)):u<h&&w===40?(e.consume(w),u++,x):w===41?(e.consume(w),u--,x):w===null||w===32||w===40||$v(w)?n(w):(e.consume(w),w===92?C:x)}function C(w){return w===40||w===41||w===92?(e.consume(w),x):x(w)}}function Yb(e,t,n,r,a,o){const l=this;let c=0,s;return h;function h(k){return e.enter(r),e.enter(a),e.consume(k),e.exit(a),e.enter(o),u}function u(k){return c>999||k===null||k===91||k===93&&!s||k===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?n(k):k===93?(e.exit(o),e.enter(a),e.consume(k),e.exit(a),e.exit(r),t):te(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(k))}function d(k){return k===null||k===91||k===93||te(k)||c++>999?(e.exit("chunkString"),u(k)):(e.consume(k),s||(s=!ye(k)),k===92?m:d)}function m(k){return k===91||k===92||k===93?(e.consume(k),c++,d):d(k)}}function Qb(e,t,n,r,a,o){let l;return c;function c(m){return m===34||m===39||m===40?(e.enter(r),e.enter(a),e.consume(m),e.exit(a),l=m===40?41:m,s):n(m)}function s(m){return m===l?(e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):(e.enter(o),h(m))}function h(m){return m===l?(e.exit(o),s(l)):m===null?n(m):te(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),pe(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(m))}function u(m){return m===l||m===null||te(m)?(e.exit("chunkString"),h(m)):(e.consume(m),m===92?d:u)}function d(m){return m===l||m===92?(e.consume(m),u):u(m)}}function zn(e,t){let n;return r;function r(a){return te(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):ye(a)?pe(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Zz={name:"definition",tokenize:Xz},Wz={partial:!0,tokenize:Kz};function Xz(e,t,n){const r=this;let a;return o;function o(k){return e.enter("definition"),l(k)}function l(k){return Yb.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(k)}function c(k){return a=zt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),s):n(k)}function s(k){return Le(k)?zn(e,h)(k):h(k)}function h(k){return Kb(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(k)}function u(k){return e.attempt(Wz,d,d)(k)}function d(k){return ye(k)?pe(e,m,"whitespace")(k):m(k)}function m(k){return k===null||te(k)?(e.exit("definition"),r.parser.defined.push(a),t(k)):n(k)}}function Kz(e,t,n){return r;function r(c){return Le(c)?zn(e,a)(c):n(c)}function a(c){return Qb(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function o(c){return ye(c)?pe(e,l,"whitespace")(c):l(c)}function l(c){return c===null||te(c)?t(c):n(c)}}const Yz={name:"hardBreakEscape",tokenize:Qz};function Qz(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),a}function a(o){return te(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Jz={name:"headingAtx",resolve:$z,tokenize:eT};function $z(e,t){let n=e.length-2,r=3,a,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},kt(e,r,n-r+1,[["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t]])),e}function eT(e,t,n){let r=0;return a;function a(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),l(u)}function l(u){return u===35&&r++<6?(e.consume(u),l):u===null||Le(u)?(e.exit("atxHeadingSequence"),c(u)):n(u)}function c(u){return u===35?(e.enter("atxHeadingSequence"),s(u)):u===null||te(u)?(e.exit("atxHeading"),t(u)):ye(u)?pe(e,c,"whitespace")(u):(e.enter("atxHeadingText"),h(u))}function s(u){return u===35?(e.consume(u),s):(e.exit("atxHeadingSequence"),c(u))}function h(u){return u===null||u===35||Le(u)?(e.exit("atxHeadingText"),c(u)):(e.consume(u),h)}}const tT=["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"],Jb=["pre","script","style","textarea"],nT={concrete:!0,name:"htmlFlow",resolveTo:iT,tokenize:oT},rT={partial:!0,tokenize:cT},aT={partial:!0,tokenize:lT};function iT(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 oT(e,t,n){const r=this;let a,o,l,c,s;return h;function h(A){return u(A)}function u(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),d}function d(A){return A===33?(e.consume(A),m):A===47?(e.consume(A),o=!0,x):A===63?(e.consume(A),a=3,r.interrupt?t:L):$e(A)?(e.consume(A),l=String.fromCharCode(A),C):n(A)}function m(A){return A===45?(e.consume(A),a=2,k):A===91?(e.consume(A),a=5,c=0,g):$e(A)?(e.consume(A),a=4,r.interrupt?t:L):n(A)}function k(A){return A===45?(e.consume(A),r.interrupt?t:L):n(A)}function g(A){const Ne="CDATA[";return A===Ne.charCodeAt(c++)?(e.consume(A),c===Ne.length?r.interrupt?t:D:g):n(A)}function x(A){return $e(A)?(e.consume(A),l=String.fromCharCode(A),C):n(A)}function C(A){if(A===null||A===47||A===62||Le(A)){const Ne=A===47,Ge=l.toLowerCase();return!Ne&&!o&&Jb.includes(Ge)?(a=1,r.interrupt?t(A):D(A)):tT.includes(l.toLowerCase())?(a=6,Ne?(e.consume(A),w):r.interrupt?t(A):D(A)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(A):o?I(A):q(A))}return A===45||Je(A)?(e.consume(A),l+=String.fromCharCode(A),C):n(A)}function w(A){return A===62?(e.consume(A),r.interrupt?t:D):n(A)}function I(A){return ye(A)?(e.consume(A),I):B(A)}function q(A){return A===47?(e.consume(A),B):A===58||A===95||$e(A)?(e.consume(A),j):ye(A)?(e.consume(A),q):B(A)}function j(A){return A===45||A===46||A===58||A===95||Je(A)?(e.consume(A),j):R(A)}function R(A){return A===61?(e.consume(A),T):ye(A)?(e.consume(A),R):q(A)}function T(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),s=A,F):ye(A)?(e.consume(A),T):K(A)}function F(A){return A===s?(e.consume(A),s=null,V):A===null||te(A)?n(A):(e.consume(A),F)}function K(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||Le(A)?R(A):(e.consume(A),K)}function V(A){return A===47||A===62||ye(A)?q(A):n(A)}function B(A){return A===62?(e.consume(A),Z):n(A)}function Z(A){return A===null||te(A)?D(A):ye(A)?(e.consume(A),Z):n(A)}function D(A){return A===45&&a===2?(e.consume(A),de):A===60&&a===1?(e.consume(A),fe):A===62&&a===4?(e.consume(A),Te):A===63&&a===3?(e.consume(A),L):A===93&&a===5?(e.consume(A),Ee):te(A)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(rT,be,oe)(A)):A===null||te(A)?(e.exit("htmlFlowData"),oe(A)):(e.consume(A),D)}function oe(A){return e.check(aT,ne,be)(A)}function ne(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),Y}function Y(A){return A===null||te(A)?oe(A):(e.enter("htmlFlowData"),D(A))}function de(A){return A===45?(e.consume(A),L):D(A)}function fe(A){return A===47?(e.consume(A),l="",Ce):D(A)}function Ce(A){if(A===62){const Ne=l.toLowerCase();return Jb.includes(Ne)?(e.consume(A),Te):D(A)}return $e(A)&&l.length<8?(e.consume(A),l+=String.fromCharCode(A),Ce):D(A)}function Ee(A){return A===93?(e.consume(A),L):D(A)}function L(A){return A===62?(e.consume(A),Te):A===45&&a===2?(e.consume(A),L):D(A)}function Te(A){return A===null||te(A)?(e.exit("htmlFlowData"),be(A)):(e.consume(A),Te)}function be(A){return e.exit("htmlFlow"),t(A)}}function lT(e,t,n){const r=this;return a;function a(l){return te(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function cT(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(In,t,n)}}const sT={name:"htmlText",tokenize:hT};function hT(e,t,n){const r=this;let a,o,l;return c;function c(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),s}function s(L){return L===33?(e.consume(L),h):L===47?(e.consume(L),R):L===63?(e.consume(L),q):$e(L)?(e.consume(L),K):n(L)}function h(L){return L===45?(e.consume(L),u):L===91?(e.consume(L),o=0,g):$e(L)?(e.consume(L),I):n(L)}function u(L){return L===45?(e.consume(L),k):n(L)}function d(L){return L===null?n(L):L===45?(e.consume(L),m):te(L)?(l=d,fe(L)):(e.consume(L),d)}function m(L){return L===45?(e.consume(L),k):d(L)}function k(L){return L===62?de(L):L===45?m(L):d(L)}function g(L){const Te="CDATA[";return L===Te.charCodeAt(o++)?(e.consume(L),o===Te.length?x:g):n(L)}function x(L){return L===null?n(L):L===93?(e.consume(L),C):te(L)?(l=x,fe(L)):(e.consume(L),x)}function C(L){return L===93?(e.consume(L),w):x(L)}function w(L){return L===62?de(L):L===93?(e.consume(L),w):x(L)}function I(L){return L===null||L===62?de(L):te(L)?(l=I,fe(L)):(e.consume(L),I)}function q(L){return L===null?n(L):L===63?(e.consume(L),j):te(L)?(l=q,fe(L)):(e.consume(L),q)}function j(L){return L===62?de(L):q(L)}function R(L){return $e(L)?(e.consume(L),T):n(L)}function T(L){return L===45||Je(L)?(e.consume(L),T):F(L)}function F(L){return te(L)?(l=F,fe(L)):ye(L)?(e.consume(L),F):de(L)}function K(L){return L===45||Je(L)?(e.consume(L),K):L===47||L===62||Le(L)?V(L):n(L)}function V(L){return L===47?(e.consume(L),de):L===58||L===95||$e(L)?(e.consume(L),B):te(L)?(l=V,fe(L)):ye(L)?(e.consume(L),V):de(L)}function B(L){return L===45||L===46||L===58||L===95||Je(L)?(e.consume(L),B):Z(L)}function Z(L){return L===61?(e.consume(L),D):te(L)?(l=Z,fe(L)):ye(L)?(e.consume(L),Z):V(L)}function D(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),a=L,oe):te(L)?(l=D,fe(L)):ye(L)?(e.consume(L),D):(e.consume(L),ne)}function oe(L){return L===a?(e.consume(L),a=void 0,Y):L===null?n(L):te(L)?(l=oe,fe(L)):(e.consume(L),oe)}function ne(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Le(L)?V(L):(e.consume(L),ne)}function Y(L){return L===47||L===62||Le(L)?V(L):n(L)}function de(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function fe(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),Ce}function Ce(L){return ye(L)?pe(e,Ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):Ee(L)}function Ee(L){return e.enter("htmlTextData"),l(L)}}const fM={name:"labelEnd",resolveAll:yT,resolveTo:kT,tokenize:mT},uT={tokenize:fT},dT={tokenize:gT},pT={tokenize:vT};function yT(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&kt(e,0,e.length,n),e}function kT(e,t){let n=e.length,r=0,a,o,l,c;for(;n--;)if(a=e[n][1],o){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(o=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(l=n);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},u={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return c=[["enter",s,t],["enter",h,t]],c=wt(c,e.slice(o+1,o+r+3)),c=wt(c,[["enter",u,t]]),c=wt(c,tx(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),c=wt(c,[["exit",u,t],e[l-2],e[l-1],["exit",h,t]]),c=wt(c,e.slice(l+1)),c=wt(c,[["exit",s,t]]),kt(e,o,e.length,c),e}function mT(e,t,n){const r=this;let a=r.events.length,o,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return c;function c(m){return o?o._inactive?d(m):(l=r.parser.defined.includes(zt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),s):n(m)}function s(m){return m===40?e.attempt(uT,u,l?u:d)(m):m===91?e.attempt(dT,u,l?h:d)(m):l?u(m):d(m)}function h(m){return e.attempt(pT,u,d)(m)}function u(m){return t(m)}function d(m){return o._balanced=!0,n(m)}}function fT(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Le(d)?zn(e,o)(d):o(d)}function o(d){return d===41?u(d):Kb(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function l(d){return Le(d)?zn(e,s)(d):u(d)}function c(d){return n(d)}function s(d){return d===34||d===39||d===40?Qb(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function h(d){return Le(d)?zn(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function gT(e,t,n){const r=this;return a;function a(c){return Yb.call(r,e,o,l,"reference","referenceMarker","referenceString")(c)}function o(c){return r.parser.defined.includes(zt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function vT(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),a}function a(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const xT={name:"labelStartImage",resolveAll:fM.resolveAll,tokenize:MT};function MT(e,t,n){const r=this;return a;function a(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),o}function o(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),l):n(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const wT={name:"labelStartLink",resolveAll:fM.resolveAll,tokenize:bT};function bT(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const gM={name:"lineEnding",tokenize:LT};function LT(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),pe(e,t,"linePrefix")}}const nx={name:"thematicBreak",tokenize:ST};function ST(e,t,n){let r=0,a;return o;function o(h){return e.enter("thematicBreak"),l(h)}function l(h){return a=h,c(h)}function c(h){return h===a?(e.enter("thematicBreakSequence"),s(h)):r>=3&&(h===null||te(h))?(e.exit("thematicBreak"),t(h)):n(h)}function s(h){return h===a?(e.consume(h),r++,s):(e.exit("thematicBreakSequence"),ye(h)?pe(e,c,"whitespace")(h):c(h))}}const ct={continuation:{tokenize:zT},exit:qT,name:"list",tokenize:AT},CT={partial:!0,tokenize:HT},IT={partial:!0,tokenize:TT};function AT(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return c;function c(k){const g=r.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||k===r.containerState.marker:yM(k)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),k===42||k===45?e.check(nx,n,h)(k):h(k);if(!r.interrupt||k===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(k)}return n(k)}function s(k){return yM(k)&&++l<10?(e.consume(k),s):(!r.interrupt||l<2)&&(r.containerState.marker?k===r.containerState.marker:k===41||k===46)?(e.exit("listItemValue"),h(k)):n(k)}function h(k){return e.enter("listItemMarker"),e.consume(k),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||k,e.check(In,r.interrupt?n:u,e.attempt(CT,m,d))}function u(k){return r.containerState.initialBlankLine=!0,o++,m(k)}function d(k){return ye(k)?(e.enter("listItemPrefixWhitespace"),e.consume(k),e.exit("listItemPrefixWhitespace"),m):n(k)}function m(k){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(k)}}function zT(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(In,a,o);function a(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,pe(e,t,"listItemIndent",r.containerState.size+1)(c)}function o(c){return r.containerState.furtherBlankLines||!ye(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(IT,t,l)(c))}function l(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,pe(e,e.attempt(ct,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function TT(e,t,n){const r=this;return pe(e,a,"listItemIndent",r.containerState.size+1);function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function qT(e){e.exit(this.containerState.type)}function HT(e,t,n){const r=this;return pe(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(o){const l=r.events[r.events.length-1];return!ye(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const $b={name:"setextUnderline",resolveTo:BT,tokenize:PT};function BT(e,t){let n=e.length,r,a,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function PT(e,t,n){const r=this;let a;return o;function o(h){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=h,l(h)):n(h)}function l(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===a?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),ye(h)?pe(e,s,"lineSuffix")(h):s(h))}function s(h){return h===null||te(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const FT={tokenize:DT};function DT(e){const t=this,n=e.attempt(In,r,e.attempt(this.parser.constructs.flowInitial,a,pe(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Vz,a)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const RT={resolveAll:tL()},ET=eL("string"),jT=eL("text");function eL(e){return{resolveAll:tL(e==="text"?OT:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],o=n.attempt(a,l,c);return l;function l(u){return h(u)?o(u):c(u)}function c(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),s}function s(u){return h(u)?(n.exit("data"),o(u)):(n.consume(u),s)}function h(u){if(u===null)return!0;const d=a[u];let m=-1;if(d)for(;++m<d.length;){const k=d[m];if(!k.previous||k.previous.call(r,r.previous))return!0}return!1}}}function tL(e){return t;function t(n,r){let a=-1,o;for(;++a<=n.length;)o===void 0?n[a]&&n[a][1].type==="data"&&(o=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==o+2&&(n[o][1].end=n[a-1][1].end,n.splice(o+2,a-o-2),a=o+2),o=void 0);return e?e(n,r):n}}function OT(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let o=a.length,l=-1,c=0,s;for(;o--;){const h=a[o];if(typeof h=="string"){for(l=h.length;h.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(h===-2)s=!0,c++;else if(h!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||s||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const VT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Zz},disable:{null:[]},document:{42:ct,43:ct,45:ct,48:ct,49:ct,50:ct,51:ct,52:ct,53:ct,54:ct,55:ct,56:ct,57:ct,62:Ub},flow:{35:Jz,42:nx,45:[$b,nx],60:nT,61:$b,95:nx,96:Wb,126:Wb},flowInitial:{[-2]:mM,[-1]:mM,32:mM},insideSpan:{null:[kM,RT]},string:{38:Gb,92:_b},text:{[-5]:gM,[-4]:gM,[-3]:gM,33:xT,38:Gb,42:kM,60:[wz,sT],91:wT,92:[Yz,_b],93:fM,95:kM,96:Fz}},Symbol.toStringTag,{value:"Module"}));function NT(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let l=[],c=[];const s={attempt:F(R),check:F(T),consume:I,enter:q,exit:j,interrupt:F(T,{interrupt:!0})},h={code:null,containerState:{},defineSkip:x,events:[],now:g,parser:e,previous:null,sliceSerialize:m,sliceStream:k,write:d};let u=t.tokenize.call(h,s);return t.resolveAll&&o.push(t),h;function d(Z){return l=wt(l,Z),C(),l[l.length-1]!==null?[]:(K(t,0),h.events=tx(o,h.events,h),h.events)}function m(Z,D){return _T(k(Z),D)}function k(Z){return UT(l,Z)}function g(){const{_bufferIndex:Z,_index:D,line:oe,column:ne,offset:Y}=r;return{_bufferIndex:Z,_index:D,line:oe,column:ne,offset:Y}}function x(Z){a[Z.line]=Z.column,B()}function C(){let Z;for(;r._index<l.length;){const D=l[r._index];if(typeof D=="string")for(Z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Z&&r._bufferIndex<D.length;)w(D.charCodeAt(r._bufferIndex));else w(D)}}function w(Z){u=u(Z)}function I(Z){te(Z)?(r.line++,r.column=1,r.offset+=Z===-3?2:1,B()):Z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=Z}function q(Z,D){const oe=D||{};return oe.type=Z,oe.start=g(),h.events.push(["enter",oe,h]),c.push(oe),oe}function j(Z){const D=c.pop();return D.end=g(),h.events.push(["exit",D,h]),D}function R(Z,D){K(Z,D.from)}function T(Z,D){D.restore()}function F(Z,D){return oe;function oe(ne,Y,de){let fe,Ce,Ee,L;return Array.isArray(ne)?be(ne):"tokenize"in ne?be([ne]):Te(ne);function Te(He){return Ze;function Ze(De){const We=De!==null&&He[De],Ke=De!==null&&He.null,vt=[...Array.isArray(We)?We:We?[We]:[],...Array.isArray(Ke)?Ke:Ke?[Ke]:[]];return be(vt)(De)}}function be(He){return fe=He,Ce=0,He.length===0?de:A(He[Ce])}function A(He){return Ze;function Ze(De){return L=V(),Ee=He,He.partial||(h.currentConstruct=He),He.name&&h.parser.constructs.disable.null.includes(He.name)?Ge():He.tokenize.call(D?Object.assign(Object.create(h),D):h,s,Ne,Ge)(De)}}function Ne(He){return Z(Ee,L),Y}function Ge(He){return L.restore(),++Ce<fe.length?A(fe[Ce]):de}}}function K(Z,D){Z.resolveAll&&!o.includes(Z)&&o.push(Z),Z.resolve&&kt(h.events,D,h.events.length-D,Z.resolve(h.events.slice(D),h)),Z.resolveTo&&(h.events=Z.resolveTo(h.events,h))}function V(){const Z=g(),D=h.previous,oe=h.currentConstruct,ne=h.events.length,Y=Array.from(c);return{from:ne,restore:de};function de(){r=Z,h.previous=D,h.currentConstruct=oe,h.events.length=ne,c=Y,B()}}function B(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function UT(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,o)];else{if(l=e.slice(n,a),r>-1){const c=l[0];typeof c=="string"?l[0]=c.slice(r):l.shift()}o>0&&l.push(e[a].slice(0,o))}return l}function _T(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
7556
7557
|
`;break}case-3:{l=`\r
|
|
7557
|
-
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(o)}a=o===-2,r.push(l)}return r.join("")}function GT(e){const r={constructs:jb([VT,...(e||{}).extensions||[]]),content:a(kz),defined:[],document:a(fz),flow:a(FT),lazy:{},string:a(ET),text:a(jT)};return r;function a(o){return l;function l(c){return NT(r,o,c)}}}function ZT(e){for(;!Xb(e););return e}const nL=/[\0\t\n\r]/g;function WT(){let e=1,t="",n=!0,r;return a;function a(o,l,c){const s=[];let h,u,d,m,k;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(nL.lastIndex=d,h=nL.exec(o),m=h&&h.index!==void 0?h.index:o.length,k=o.charCodeAt(m),!h){t=o.slice(d);break}if(k===10&&d===m&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),d<m&&(s.push(o.slice(d,m)),e+=m-d),k){case 0:{s.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,s.push(-2);e++<u;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}d=m+1}return c&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const XT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function KT(e){return e.replace(XT,YT)}function YT(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),o=a===120||a===88;return Ob(n.slice(o?2:1),o?16:10)}return pM(n)||e}const rL={}.hasOwnProperty;function QT(e,t,n){return typeof t!="string"&&(n=t,t=void 0),JT(n)(ZT(GT(n).document().write(WT()(e,t,!0))))}function JT(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Mt),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:o(_t),blockQuote:o(Ke),characterEscape:Z,characterReference:Z,codeFenced:o(vt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(vt,l),codeText:o(O0,l),codeTextData:Z,data:Z,codeFlowValue:Z,definition:o(p1),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(t1),hardBreakEscape:o(xt),hardBreakTrailing:o(xt),htmlFlow:o(at,l),htmlFlowData:Z,htmlText:o(at,l),htmlTextData:Z,image:o(It),label:l,link:o(Mt),listItem:o(cn),listItemValue:m,listOrdered:o(Gt,d),listUnordered:o(Gt),paragraph:o(Ye),reference:I,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(_t),strong:o(qt),thematicBreak:o(sn)},exit:{atxHeading:s(),atxHeadingSequence:F,autolink:s(),autolinkEmail:We,autolinkProtocol:De,blockQuote:s(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:Ge,characterReferenceMarkerNumeric:Ge,characterReferenceValue:He,characterReference:Ze,codeFenced:s(A),codeFencedFence:x,codeFencedFenceInfo:k,codeFencedFenceMeta:g,codeFlowValue:B,codeIndented:s(b),codeText:s(Y),codeTextData:B,data:B,definition:s(),definitionDestinationString:j,definitionLabelString:C,definitionTitleString:q,emphasis:s(),hardBreakEscape:s(D),hardBreakTrailing:s(D),htmlFlow:s(oe),htmlFlowData:B,htmlText:s(ne),htmlTextData:B,image:s(fe),label:Ee,labelText:Ce,lineEnding:G,link:s(de),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:Ne,resourceDestinationString:L,resourceTitleString:Te,resource:be,setextHeading:s(K),setextHeadingLineSequence:R,setextHeadingText:T,strong:s(),thematicBreak:s()}};aL(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(P){let X={type:"root",children:[]};const ce={stack:[X],tokenStack:[],config:t,enter:c,exit:h,buffer:l,resume:u,data:n},ke=[];let Me=-1;for(;++Me<P.length;)if(P[Me][1].type==="listOrdered"||P[Me][1].type==="listUnordered")if(P[Me][0]==="enter")ke.push(Me);else{const ut=ke.pop();Me=a(P,ut,Me)}for(Me=-1;++Me<P.length;){const ut=t[P[Me][0]];rL.call(ut,P[Me][1].type)&&ut[P[Me][1].type].call(Object.assign({sliceSerialize:P[Me][2].sliceSerialize},ce),P[Me][1])}if(ce.tokenStack.length>0){const ut=ce.tokenStack[ce.tokenStack.length-1];(ut[1]||iL).call(ce,void 0,ut[0])}for(X.position={start:i1(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:i1(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<t.transforms.length;)X=t.transforms[Me](X)||X;return X}function a(P,X,ce){let ke=X-1,Me=-1,ut=!1,r1,Ht,V0,N0;for(;++ke<=ce;){const it=P[ke];switch(it[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{it[0]==="enter"?Me++:Me--,N0=void 0;break}case"lineEndingBlank":{it[0]==="enter"&&(r1&&!N0&&!Me&&!V0&&(V0=ke),N0=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:N0=void 0}if(!Me&&it[0]==="enter"&&it[1].type==="listItemPrefix"||Me===-1&&it[0]==="exit"&&(it[1].type==="listUnordered"||it[1].type==="listOrdered")){if(r1){let y1=ke;for(Ht=void 0;y1--;){const Bt=P[y1];if(Bt[1].type==="lineEnding"||Bt[1].type==="lineEndingBlank"){if(Bt[0]==="exit")continue;Ht&&(P[Ht][1].type="lineEndingBlank",ut=!0),Bt[1].type="lineEnding",Ht=y1}else if(!(Bt[1].type==="linePrefix"||Bt[1].type==="blockQuotePrefix"||Bt[1].type==="blockQuotePrefixWhitespace"||Bt[1].type==="blockQuoteMarker"||Bt[1].type==="listItemIndent"))break}V0&&(!Ht||V0<Ht)&&(r1._spread=!0),r1.end=Object.assign({},Ht?P[Ht][1].start:it[1].end),P.splice(Ht||ke,0,["exit",r1,it[2]]),ke++,ce++}if(it[1].type==="listItemPrefix"){const y1={type:"listItem",_spread:!1,start:Object.assign({},it[1].start),end:void 0};r1=y1,P.splice(ke,0,["enter",y1,it[2]]),ke++,ce++,V0=void 0,N0=!0}}}return P[X][1]._spread=ut,ce}function o(P,X){return ce;function ce(ke){c.call(this,P(ke),ke),X&&X.call(this,ke)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(P,X,ce){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([X,ce||void 0]),P.position={start:i1(X.start),end:void 0}}function s(P){return X;function X(ce){P&&P.call(this,ce),h.call(this,ce)}}function h(P,X){const ce=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==P.type&&(X?X.call(this,P,ke[0]):(ke[1]||iL).call(this,P,ke[0]));else throw new Error("Cannot close `"+P.type+"` ("+Sn({start:P.start,end:P.end})+"): it’s not open");ce.position.end=i1(P.end)}function u(){return dM(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function m(P){if(this.data.expectingFirstListItemValue){const X=this.stack[this.stack.length-2];X.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function k(){const P=this.resume(),X=this.stack[this.stack.length-1];X.lang=P}function g(){const P=this.resume(),X=this.stack[this.stack.length-1];X.meta=P}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P.replace(/(\r?\n|\r)$/g,"")}function C(P){const X=this.resume(),ce=this.stack[this.stack.length-1];ce.label=X,ce.identifier=zt(this.sliceSerialize(P)).toLowerCase()}function q(){const P=this.resume(),X=this.stack[this.stack.length-1];X.title=P}function j(){const P=this.resume(),X=this.stack[this.stack.length-1];X.url=P}function F(P){const X=this.stack[this.stack.length-1];if(!X.depth){const ce=this.sliceSerialize(P).length;X.depth=ce}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function R(P){const X=this.stack[this.stack.length-1];X.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(P){const ce=this.stack[this.stack.length-1].children;let ke=ce[ce.length-1];(!ke||ke.type!=="text")&&(ke=n1(),ke.position={start:i1(P.start),end:void 0},ce.push(ke)),this.stack.push(ke)}function B(P){const X=this.stack.pop();X.value+=this.sliceSerialize(P),X.position.end=i1(P.end)}function G(P){const X=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ce=X.children[X.children.length-1];ce.position.end=i1(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(X.type)&&(Z.call(this,P),B.call(this,P))}function D(){this.data.atHardBreak=!0}function oe(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P}function ne(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P}function Y(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P}function de(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=X,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function fe(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=X,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function Ce(P){const X=this.sliceSerialize(P),ce=this.stack[this.stack.length-2];ce.label=KT(X),ce.identifier=zt(X).toLowerCase()}function Ee(){const P=this.stack[this.stack.length-1],X=this.resume(),ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,ce.type==="link"){const ke=P.children;ce.children=ke}else ce.alt=X}function L(){const P=this.resume(),X=this.stack[this.stack.length-1];X.url=P}function Te(){const P=this.resume(),X=this.stack[this.stack.length-1];X.title=P}function be(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function Ne(P){const X=this.resume(),ce=this.stack[this.stack.length-1];ce.label=X,ce.identifier=zt(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function Ge(P){this.data.characterReferenceType=P.type}function He(P){const X=this.sliceSerialize(P),ce=this.data.characterReferenceType;let ke;ce?(ke=Ob(X,ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=pM(X);const Me=this.stack[this.stack.length-1];Me.value+=ke}function Ze(P){const X=this.stack.pop();X.position.end=i1(P.end)}function De(P){B.call(this,P);const X=this.stack[this.stack.length-1];X.url=this.sliceSerialize(P)}function We(P){B.call(this,P);const X=this.stack[this.stack.length-1];X.url="mailto:"+this.sliceSerialize(P)}function Ke(){return{type:"blockquote",children:[]}}function vt(){return{type:"code",lang:null,meta:null,value:""}}function O0(){return{type:"inlineCode",value:""}}function p1(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function t1(){return{type:"emphasis",children:[]}}function _t(){return{type:"heading",depth:0,children:[]}}function xt(){return{type:"break"}}function at(){return{type:"html",value:""}}function It(){return{type:"image",title:null,url:"",alt:null}}function Mt(){return{type:"link",title:null,url:"",children:[]}}function Gt(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function cn(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function Ye(){return{type:"paragraph",children:[]}}function qt(){return{type:"strong",children:[]}}function n1(){return{type:"text",value:""}}function sn(){return{type:"thematicBreak"}}}function i1(e){return{line:e.line,column:e.column,offset:e.offset}}function aL(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?aL(e,r):$T(e,r)}}function $T(e,t){let n;for(n in t)if(rL.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function iL(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Sn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Sn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Sn({start:t.start,end:t.end})+") is still open")}function eq(e){const t=this;t.parser=n;function n(r){return QT(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function tq(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 nq(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
7558
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(o)}a=o===-2,r.push(l)}return r.join("")}function GT(e){const r={constructs:jb([VT,...(e||{}).extensions||[]]),content:a(kz),defined:[],document:a(fz),flow:a(FT),lazy:{},string:a(ET),text:a(jT)};return r;function a(o){return l;function l(c){return NT(r,o,c)}}}function ZT(e){for(;!Xb(e););return e}const nL=/[\0\t\n\r]/g;function WT(){let e=1,t="",n=!0,r;return a;function a(o,l,c){const s=[];let h,u,d,m,k;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(nL.lastIndex=d,h=nL.exec(o),m=h&&h.index!==void 0?h.index:o.length,k=o.charCodeAt(m),!h){t=o.slice(d);break}if(k===10&&d===m&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),d<m&&(s.push(o.slice(d,m)),e+=m-d),k){case 0:{s.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,s.push(-2);e++<u;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}d=m+1}return c&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const XT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function KT(e){return e.replace(XT,YT)}function YT(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),o=a===120||a===88;return Ob(n.slice(o?2:1),o?16:10)}return pM(n)||e}const rL={}.hasOwnProperty;function QT(e,t,n){return typeof t!="string"&&(n=t,t=void 0),JT(n)(ZT(GT(n).document().write(WT()(e,t,!0))))}function JT(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Mt),autolinkProtocol:V,autolinkEmail:V,atxHeading:o(_t),blockQuote:o(Ke),characterEscape:V,characterReference:V,codeFenced:o(vt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(vt,l),codeText:o(O0,l),codeTextData:V,data:V,codeFlowValue:V,definition:o(p1),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(t1),hardBreakEscape:o(xt),hardBreakTrailing:o(xt),htmlFlow:o(at,l),htmlFlowData:V,htmlText:o(at,l),htmlTextData:V,image:o(It),label:l,link:o(Mt),listItem:o(cn),listItemValue:m,listOrdered:o(Gt,d),listUnordered:o(Gt),paragraph:o(Ye),reference:A,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(_t),strong:o(qt),thematicBreak:o(sn)},exit:{atxHeading:s(),atxHeadingSequence:R,autolink:s(),autolinkEmail:We,autolinkProtocol:De,blockQuote:s(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:Ge,characterReferenceMarkerNumeric:Ge,characterReferenceValue:He,characterReference:Ze,codeFenced:s(C),codeFencedFence:x,codeFencedFenceInfo:k,codeFencedFenceMeta:g,codeFlowValue:B,codeIndented:s(w),codeText:s(Y),codeTextData:B,data:B,definition:s(),definitionDestinationString:j,definitionLabelString:I,definitionTitleString:q,emphasis:s(),hardBreakEscape:s(D),hardBreakTrailing:s(D),htmlFlow:s(oe),htmlFlowData:B,htmlText:s(ne),htmlTextData:B,image:s(fe),label:Ee,labelText:Ce,lineEnding:Z,link:s(de),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:Ne,resourceDestinationString:L,resourceTitleString:Te,resource:be,setextHeading:s(K),setextHeadingLineSequence:F,setextHeadingText:T,strong:s(),thematicBreak:s()}};aL(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(P){let X={type:"root",children:[]};const ce={stack:[X],tokenStack:[],config:t,enter:c,exit:h,buffer:l,resume:u,data:n},ke=[];let Me=-1;for(;++Me<P.length;)if(P[Me][1].type==="listOrdered"||P[Me][1].type==="listUnordered")if(P[Me][0]==="enter")ke.push(Me);else{const ut=ke.pop();Me=a(P,ut,Me)}for(Me=-1;++Me<P.length;){const ut=t[P[Me][0]];rL.call(ut,P[Me][1].type)&&ut[P[Me][1].type].call(Object.assign({sliceSerialize:P[Me][2].sliceSerialize},ce),P[Me][1])}if(ce.tokenStack.length>0){const ut=ce.tokenStack[ce.tokenStack.length-1];(ut[1]||iL).call(ce,void 0,ut[0])}for(X.position={start:i1(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:i1(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<t.transforms.length;)X=t.transforms[Me](X)||X;return X}function a(P,X,ce){let ke=X-1,Me=-1,ut=!1,r1,Ht,V0,N0;for(;++ke<=ce;){const it=P[ke];switch(it[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{it[0]==="enter"?Me++:Me--,N0=void 0;break}case"lineEndingBlank":{it[0]==="enter"&&(r1&&!N0&&!Me&&!V0&&(V0=ke),N0=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:N0=void 0}if(!Me&&it[0]==="enter"&&it[1].type==="listItemPrefix"||Me===-1&&it[0]==="exit"&&(it[1].type==="listUnordered"||it[1].type==="listOrdered")){if(r1){let y1=ke;for(Ht=void 0;y1--;){const Bt=P[y1];if(Bt[1].type==="lineEnding"||Bt[1].type==="lineEndingBlank"){if(Bt[0]==="exit")continue;Ht&&(P[Ht][1].type="lineEndingBlank",ut=!0),Bt[1].type="lineEnding",Ht=y1}else if(!(Bt[1].type==="linePrefix"||Bt[1].type==="blockQuotePrefix"||Bt[1].type==="blockQuotePrefixWhitespace"||Bt[1].type==="blockQuoteMarker"||Bt[1].type==="listItemIndent"))break}V0&&(!Ht||V0<Ht)&&(r1._spread=!0),r1.end=Object.assign({},Ht?P[Ht][1].start:it[1].end),P.splice(Ht||ke,0,["exit",r1,it[2]]),ke++,ce++}if(it[1].type==="listItemPrefix"){const y1={type:"listItem",_spread:!1,start:Object.assign({},it[1].start),end:void 0};r1=y1,P.splice(ke,0,["enter",y1,it[2]]),ke++,ce++,V0=void 0,N0=!0}}}return P[X][1]._spread=ut,ce}function o(P,X){return ce;function ce(ke){c.call(this,P(ke),ke),X&&X.call(this,ke)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(P,X,ce){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([X,ce||void 0]),P.position={start:i1(X.start),end:void 0}}function s(P){return X;function X(ce){P&&P.call(this,ce),h.call(this,ce)}}function h(P,X){const ce=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==P.type&&(X?X.call(this,P,ke[0]):(ke[1]||iL).call(this,P,ke[0]));else throw new Error("Cannot close `"+P.type+"` ("+Sn({start:P.start,end:P.end})+"): it’s not open");ce.position.end=i1(P.end)}function u(){return dM(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function m(P){if(this.data.expectingFirstListItemValue){const X=this.stack[this.stack.length-2];X.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function k(){const P=this.resume(),X=this.stack[this.stack.length-1];X.lang=P}function g(){const P=this.resume(),X=this.stack[this.stack.length-1];X.meta=P}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P.replace(/(\r?\n|\r)$/g,"")}function I(P){const X=this.resume(),ce=this.stack[this.stack.length-1];ce.label=X,ce.identifier=zt(this.sliceSerialize(P)).toLowerCase()}function q(){const P=this.resume(),X=this.stack[this.stack.length-1];X.title=P}function j(){const P=this.resume(),X=this.stack[this.stack.length-1];X.url=P}function R(P){const X=this.stack[this.stack.length-1];if(!X.depth){const ce=this.sliceSerialize(P).length;X.depth=ce}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function F(P){const X=this.stack[this.stack.length-1];X.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function V(P){const ce=this.stack[this.stack.length-1].children;let ke=ce[ce.length-1];(!ke||ke.type!=="text")&&(ke=n1(),ke.position={start:i1(P.start),end:void 0},ce.push(ke)),this.stack.push(ke)}function B(P){const X=this.stack.pop();X.value+=this.sliceSerialize(P),X.position.end=i1(P.end)}function Z(P){const X=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ce=X.children[X.children.length-1];ce.position.end=i1(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(X.type)&&(V.call(this,P),B.call(this,P))}function D(){this.data.atHardBreak=!0}function oe(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P}function ne(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P}function Y(){const P=this.resume(),X=this.stack[this.stack.length-1];X.value=P}function de(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=X,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function fe(){const P=this.stack[this.stack.length-1];if(this.data.inReference){const X=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=X,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function Ce(P){const X=this.sliceSerialize(P),ce=this.stack[this.stack.length-2];ce.label=KT(X),ce.identifier=zt(X).toLowerCase()}function Ee(){const P=this.stack[this.stack.length-1],X=this.resume(),ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,ce.type==="link"){const ke=P.children;ce.children=ke}else ce.alt=X}function L(){const P=this.resume(),X=this.stack[this.stack.length-1];X.url=P}function Te(){const P=this.resume(),X=this.stack[this.stack.length-1];X.title=P}function be(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function Ne(P){const X=this.resume(),ce=this.stack[this.stack.length-1];ce.label=X,ce.identifier=zt(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function Ge(P){this.data.characterReferenceType=P.type}function He(P){const X=this.sliceSerialize(P),ce=this.data.characterReferenceType;let ke;ce?(ke=Ob(X,ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=pM(X);const Me=this.stack[this.stack.length-1];Me.value+=ke}function Ze(P){const X=this.stack.pop();X.position.end=i1(P.end)}function De(P){B.call(this,P);const X=this.stack[this.stack.length-1];X.url=this.sliceSerialize(P)}function We(P){B.call(this,P);const X=this.stack[this.stack.length-1];X.url="mailto:"+this.sliceSerialize(P)}function Ke(){return{type:"blockquote",children:[]}}function vt(){return{type:"code",lang:null,meta:null,value:""}}function O0(){return{type:"inlineCode",value:""}}function p1(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function t1(){return{type:"emphasis",children:[]}}function _t(){return{type:"heading",depth:0,children:[]}}function xt(){return{type:"break"}}function at(){return{type:"html",value:""}}function It(){return{type:"image",title:null,url:"",alt:null}}function Mt(){return{type:"link",title:null,url:"",children:[]}}function Gt(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function cn(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function Ye(){return{type:"paragraph",children:[]}}function qt(){return{type:"strong",children:[]}}function n1(){return{type:"text",value:""}}function sn(){return{type:"thematicBreak"}}}function i1(e){return{line:e.line,column:e.column,offset:e.offset}}function aL(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?aL(e,r):$T(e,r)}}function $T(e,t){let n;for(n in t)if(rL.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function iL(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Sn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Sn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Sn({start:t.start,end:t.end})+") is still open")}function eq(e){const t=this;t.parser=n;function n(r){return QT(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function tq(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 nq(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
7558
7559
|
`}]}function rq(e,t){const n=t.value?t.value+`
|
|
7559
7560
|
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function aq(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iq(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oq(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Y0(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,c+=1,e.footnoteCounts.set(r,c);const s={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(l)}]};e.patch(t,s);const h={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,h),e.applyData(t,h)}function lq(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 cq(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function oL(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),o=a[0];o&&o.type==="text"?o.value="["+o.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=r:a.push({type:"text",value:r}),a}function sq(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oL(e,t);const a={src:Y0(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)}function hq(e,t){const n={src:Y0(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function uq(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function dq(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oL(e,t);const a={href:Y0(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function pq(e,t){const n={href:Y0(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yq(e,t,n){const r=e.all(t),a=n?kq(n):lL(t),o={},l=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const u=r[c];(a||c!==0||u.type!=="element"||u.tagName!=="p")&&l.push({type:"text",value:`
|
|
7560
7561
|
`}),u.type==="element"&&u.tagName==="p"&&!a?l.push(...u.children):l.push(u)}const s=r[r.length-1];s&&(a||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
|
|
7561
|
-
`});const h={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,h),e.applyData(t,h)}function kq(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=lL(n[r])}return t}function lL(e){const t=e.spread;return t??e.children.length>1}function mq(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const l=r[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function fq(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gq(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function vq(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xq(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=oM(t.children[1]),s=Ib(t.children[t.children.length-1]);c&&s&&(l.position={start:c,end:s}),a.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function Mq(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,c=l?l.length:t.children.length;let s=-1;const h=[];for(;++s<c;){const d=t.children[s],m={},k=l?l[s]:void 0;k&&(m.align=k);let g={type:"element",tagName:o,properties:m,children:[]};d&&(g.children=e.all(d),e.patch(d,g),g=e.applyData(d,g)),h.push(g)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,u),e.applyData(t,u)}function wq(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const cL=9,sL=32;function bq(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(hL(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(hL(t.slice(a),a>0,!1)),o.join("")}function hL(e,t,n){let r=0,a=e.length;if(t){let o=e.codePointAt(r);for(;o===cL||o===sL;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(a-1);for(;o===cL||o===sL;)a--,o=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function Lq(e,t){const n={type:"text",value:bq(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Sq(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Cq={blockquote:tq,break:nq,code:rq,delete:aq,emphasis:iq,footnoteReference:oq,heading:lq,html:cq,imageReference:sq,image:hq,inlineCode:uq,linkReference:dq,link:pq,listItem:yq,list:mq,paragraph:fq,root:gq,strong:vq,table:xq,tableCell:wq,tableRow:Mq,text:Lq,thematicBreak:Sq,toml:rx,yaml:rx,definition:rx,footnoteDefinition:rx};function rx(){}const uL=-1,ax=0,Tn=1,ix=2,vM=3,xM=4,MM=5,wM=6,dL=7,pL=8,yL=typeof self=="object"?self:globalThis,Iq=(e,t)=>{const n=(a,o)=>(e.set(o,a),a),r=a=>{if(e.has(a))return e.get(a);const[o,l]=t[a];switch(o){case ax:case uL:return n(l,a);case Tn:{const c=n([],a);for(const s of l)c.push(r(s));return c}case ix:{const c=n({},a);for(const[s,h]of l)c[r(s)]=r(h);return c}case vM:return n(new Date(l),a);case xM:{const{source:c,flags:s}=l;return n(new RegExp(c,s),a)}case MM:{const c=n(new Map,a);for(const[s,h]of l)c.set(r(s),r(h));return c}case wM:{const c=n(new Set,a);for(const s of l)c.add(r(s));return c}case dL:{const{name:c,message:s}=l;return n(new yL[c](s),a)}case pL:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:c}=new Uint8Array(l);return n(new DataView(c),l)}}return n(new yL[o](l),a)};return r},kL=e=>Iq(new Map,e)(0),J0="",{toString:Aq}={},{keys:zq}=Object,qn=e=>{const t=typeof e;if(t!=="object"||!e)return[ax,t];const n=Aq.call(e).slice(8,-1);switch(n){case"Array":return[Tn,J0];case"Object":return[ix,J0];case"Date":return[vM,J0];case"RegExp":return[xM,J0];case"Map":return[MM,J0];case"Set":return[wM,J0];case"DataView":return[Tn,n]}return n.includes("Array")?[Tn,n]:n.includes("Error")?[dL,n]:[ix,n]},ox=([e,t])=>e===ax&&(t==="function"||t==="symbol"),Tq=(e,t,n,r)=>{const a=(l,c)=>{const s=r.push(l)-1;return n.set(c,s),s},o=l=>{if(n.has(l))return n.get(l);let[c,s]=qn(l);switch(c){case ax:{let u=l;switch(s){case"bigint":c=pL,u=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);u=null;break;case"undefined":return a([uL],l)}return a([c,u],l)}case Tn:{if(s){let m=l;return s==="DataView"?m=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(m=new Uint8Array(l)),a([s,[...m]],l)}const u=[],d=a([c,u],l);for(const m of l)u.push(o(m));return d}case ix:{if(s)switch(s){case"BigInt":return a([s,l.toString()],l);case"Boolean":case"Number":case"String":return a([s,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const u=[],d=a([c,u],l);for(const m of zq(l))(e||!ox(qn(l[m])))&&u.push([o(m),o(l[m])]);return d}case vM:return a([c,l.toISOString()],l);case xM:{const{source:u,flags:d}=l;return a([c,{source:u,flags:d}],l)}case MM:{const u=[],d=a([c,u],l);for(const[m,k]of l)(e||!(ox(qn(m))||ox(qn(k))))&&u.push([o(m),o(k)]);return d}case wM:{const u=[],d=a([c,u],l);for(const m of l)(e||!ox(qn(m)))&&u.push(o(m));return d}}const{message:h}=l;return a([c,{name:s,message:h}],l)};return o},mL=(e,{json:t,lossy:n}={})=>{const r=[];return Tq(!(t||n),!!t,new Map,r)(e),r},lx=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?kL(mL(e,t)):structuredClone(e):(e,t)=>kL(mL(e,t));function qq(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 Hq(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Bq(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||qq,r=e.options.footnoteBackLabel||Hq,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let s=-1;for(;++s<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[s]);if(!h)continue;const u=e.all(h),d=String(h.identifier).toUpperCase(),m=Y0(d.toLowerCase());let k=0;const g=[],x=e.footnoteCounts.get(d);for(;x!==void 0&&++k<=x;){g.length>0&&g.push({type:"text",value:" "});let
|
|
7562
|
+
`});const h={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,h),e.applyData(t,h)}function kq(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=lL(n[r])}return t}function lL(e){const t=e.spread;return t??e.children.length>1}function mq(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const l=r[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function fq(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gq(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function vq(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xq(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=oM(t.children[1]),s=Ib(t.children[t.children.length-1]);c&&s&&(l.position={start:c,end:s}),a.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function Mq(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,c=l?l.length:t.children.length;let s=-1;const h=[];for(;++s<c;){const d=t.children[s],m={},k=l?l[s]:void 0;k&&(m.align=k);let g={type:"element",tagName:o,properties:m,children:[]};d&&(g.children=e.all(d),e.patch(d,g),g=e.applyData(d,g)),h.push(g)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,u),e.applyData(t,u)}function wq(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const cL=9,sL=32;function bq(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(hL(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(hL(t.slice(a),a>0,!1)),o.join("")}function hL(e,t,n){let r=0,a=e.length;if(t){let o=e.codePointAt(r);for(;o===cL||o===sL;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(a-1);for(;o===cL||o===sL;)a--,o=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function Lq(e,t){const n={type:"text",value:bq(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Sq(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Cq={blockquote:tq,break:nq,code:rq,delete:aq,emphasis:iq,footnoteReference:oq,heading:lq,html:cq,imageReference:sq,image:hq,inlineCode:uq,linkReference:dq,link:pq,listItem:yq,list:mq,paragraph:fq,root:gq,strong:vq,table:xq,tableCell:wq,tableRow:Mq,text:Lq,thematicBreak:Sq,toml:rx,yaml:rx,definition:rx,footnoteDefinition:rx};function rx(){}const uL=-1,ax=0,Tn=1,ix=2,vM=3,xM=4,MM=5,wM=6,dL=7,pL=8,yL=typeof self=="object"?self:globalThis,Iq=(e,t)=>{const n=(a,o)=>(e.set(o,a),a),r=a=>{if(e.has(a))return e.get(a);const[o,l]=t[a];switch(o){case ax:case uL:return n(l,a);case Tn:{const c=n([],a);for(const s of l)c.push(r(s));return c}case ix:{const c=n({},a);for(const[s,h]of l)c[r(s)]=r(h);return c}case vM:return n(new Date(l),a);case xM:{const{source:c,flags:s}=l;return n(new RegExp(c,s),a)}case MM:{const c=n(new Map,a);for(const[s,h]of l)c.set(r(s),r(h));return c}case wM:{const c=n(new Set,a);for(const s of l)c.add(r(s));return c}case dL:{const{name:c,message:s}=l;return n(new yL[c](s),a)}case pL:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:c}=new Uint8Array(l);return n(new DataView(c),l)}}return n(new yL[o](l),a)};return r},kL=e=>Iq(new Map,e)(0),J0="",{toString:Aq}={},{keys:zq}=Object,qn=e=>{const t=typeof e;if(t!=="object"||!e)return[ax,t];const n=Aq.call(e).slice(8,-1);switch(n){case"Array":return[Tn,J0];case"Object":return[ix,J0];case"Date":return[vM,J0];case"RegExp":return[xM,J0];case"Map":return[MM,J0];case"Set":return[wM,J0];case"DataView":return[Tn,n]}return n.includes("Array")?[Tn,n]:n.includes("Error")?[dL,n]:[ix,n]},ox=([e,t])=>e===ax&&(t==="function"||t==="symbol"),Tq=(e,t,n,r)=>{const a=(l,c)=>{const s=r.push(l)-1;return n.set(c,s),s},o=l=>{if(n.has(l))return n.get(l);let[c,s]=qn(l);switch(c){case ax:{let u=l;switch(s){case"bigint":c=pL,u=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);u=null;break;case"undefined":return a([uL],l)}return a([c,u],l)}case Tn:{if(s){let m=l;return s==="DataView"?m=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(m=new Uint8Array(l)),a([s,[...m]],l)}const u=[],d=a([c,u],l);for(const m of l)u.push(o(m));return d}case ix:{if(s)switch(s){case"BigInt":return a([s,l.toString()],l);case"Boolean":case"Number":case"String":return a([s,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const u=[],d=a([c,u],l);for(const m of zq(l))(e||!ox(qn(l[m])))&&u.push([o(m),o(l[m])]);return d}case vM:return a([c,l.toISOString()],l);case xM:{const{source:u,flags:d}=l;return a([c,{source:u,flags:d}],l)}case MM:{const u=[],d=a([c,u],l);for(const[m,k]of l)(e||!(ox(qn(m))||ox(qn(k))))&&u.push([o(m),o(k)]);return d}case wM:{const u=[],d=a([c,u],l);for(const m of l)(e||!ox(qn(m)))&&u.push(o(m));return d}}const{message:h}=l;return a([c,{name:s,message:h}],l)};return o},mL=(e,{json:t,lossy:n}={})=>{const r=[];return Tq(!(t||n),!!t,new Map,r)(e),r},lx=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?kL(mL(e,t)):structuredClone(e):(e,t)=>kL(mL(e,t));function qq(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 Hq(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Bq(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||qq,r=e.options.footnoteBackLabel||Hq,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let s=-1;for(;++s<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[s]);if(!h)continue;const u=e.all(h),d=String(h.identifier).toUpperCase(),m=Y0(d.toLowerCase());let k=0;const g=[],x=e.footnoteCounts.get(d);for(;x!==void 0&&++k<=x;){g.length>0&&g.push({type:"text",value:" "});let I=typeof n=="string"?n:n(s,k);typeof I=="string"&&(I={type:"text",value:I}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,k),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const C=u[u.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const I=C.children[C.children.length-1];I&&I.type==="text"?I.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...g)}else u.push(...g);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(u,!0)};e.patch(h,w),c.push(w)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...lx(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
7562
7563
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
7563
|
-
`}]}}const Hn=function(e){if(e==null)return Rq;if(typeof e=="function")return cx(e);if(typeof e=="object")return Array.isArray(e)?Pq(e):Fq(e);if(typeof e=="string")return Dq(e);throw new Error("Expected function, string, or object as test")};function Pq(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Hn(e[n]);return cx(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function Fq(e){const t=e;return cx(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function Dq(e){return cx(t);function t(n){return n&&n.type===e}}function cx(e){return t;function t(n,r,a){return!!(Eq(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Rq(){return!0}function Eq(e){return e!==null&&typeof e=="object"&&"type"in e}function KR(e){return e}const fL=[],jq=!0,bM=!1,gL="skip";function LM(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=Hn(a),l=r?-1:1;c(e,void 0,[])();function c(s,h,u){const d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){const k=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(s.type+(k?"<"+k+">":""))+")"})}return m;function m(){let k=fL,g,x,
|
|
7564
|
+
`}]}}const Hn=function(e){if(e==null)return Rq;if(typeof e=="function")return cx(e);if(typeof e=="object")return Array.isArray(e)?Pq(e):Fq(e);if(typeof e=="string")return Dq(e);throw new Error("Expected function, string, or object as test")};function Pq(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Hn(e[n]);return cx(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function Fq(e){const t=e;return cx(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function Dq(e){return cx(t);function t(n){return n&&n.type===e}}function cx(e){return t;function t(n,r,a){return!!(Eq(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Rq(){return!0}function Eq(e){return e!==null&&typeof e=="object"&&"type"in e}function KR(e){return e}const fL=[],jq=!0,bM=!1,gL="skip";function LM(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=Hn(a),l=r?-1:1;c(e,void 0,[])();function c(s,h,u){const d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){const k=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(s.type+(k?"<"+k+">":""))+")"})}return m;function m(){let k=fL,g,x,C;if((!t||o(s,h,u[u.length-1]||void 0))&&(k=Oq(n(s,u)),k[0]===bM))return k;if("children"in s&&s.children){const w=s;if(w.children&&k[0]!==gL)for(x=(r?w.children.length:-1)+l,C=u.concat(w);x>-1&&x<w.children.length;){const I=w.children[x];if(g=c(I,x,C)(),g[0]===bM)return g;x=typeof g[1]=="number"?g[1]:x+l}}return k}}}function Oq(e){return Array.isArray(e)?e:typeof e=="number"?[jq,e]:e==null?fL:[e]}function SM(e,t,n,r){let a,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,a=n):(o=t,l=n,a=r),LM(e,o,c,a);function c(s,h){const u=h[h.length-1],d=u?u.children.indexOf(s):void 0;return l(s,d,u)}}const CM={}.hasOwnProperty,Vq={};function Nq(e,t){const n=t||Vq,r=new Map,a=new Map,o=new Map,l={...Cq,...n.handlers},c={all:h,applyData:_q,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:l,one:s,options:n,patch:Uq,wrap:Zq};return SM(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const d=u.type==="definition"?r:a,m=String(u.identifier).toUpperCase();d.has(m)||d.set(m,u)}}),c;function s(u,d){const m=u.type,k=c.handlers[m];if(CM.call(c.handlers,m)&&k)return k(c,u,d);if(c.options.passThrough&&c.options.passThrough.includes(m)){if("children"in u){const{children:x,...C}=u,w=lx(C);return w.children=c.all(u),w}return lx(u)}return(c.options.unknownHandler||Gq)(c,u,d)}function h(u){const d=[];if("children"in u){const m=u.children;let k=-1;for(;++k<m.length;){const g=c.one(m[k],u);if(g){if(k&&m[k-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=vL(g.value)),!Array.isArray(g)&&g.type==="element")){const x=g.children[0];x&&x.type==="text"&&(x.value=vL(x.value))}Array.isArray(g)?d.push(...g):d.push(g)}}}return d}}function Uq(e,t){e.position&&(t.position=VA(e))}function _q(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,lx(o)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function Gq(e,t){const n=t.data||{},r="value"in t&&!(CM.call(n,"hProperties")||CM.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Zq(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
7564
7565
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
7565
7566
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
7566
7567
|
`}),n}function vL(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function xL(e,t){const n=Nq(e,t),r=n.one(e,void 0),a=Bq(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:`
|
|
7567
|
-
`},a),o}function Wq(e,t){return e&&"run"in e?async function(n,r){const a=xL(n,{file:r,...t});await e.run(a,r)}:function(n,r){return xL(n,{file:r,...e||t})}}function ML(e){if(e)throw e}var sx=Object.prototype.hasOwnProperty,wL=Object.prototype.toString,bL=Object.defineProperty,LL=Object.getOwnPropertyDescriptor,SL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):wL.call(t)==="[object Array]"},CL=function(t){if(!t||wL.call(t)!=="[object Object]")return!1;var n=sx.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&sx.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||sx.call(t,a)},IL=function(t,n){bL&&n.name==="__proto__"?bL(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},AL=function(t,n){if(n==="__proto__")if(sx.call(t,n)){if(LL)return LL(t,n).value}else return;return t[n]},Xq=function e(){var t,n,r,a,o,l,c=arguments[0],s=1,h=arguments.length,u=!1;for(typeof c=="boolean"&&(u=c,c=arguments[1]||{},s=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});s<h;++s)if(t=arguments[s],t!=null)for(n in t)r=AL(c,n),a=AL(t,n),c!==a&&(u&&a&&(CL(a)||(o=SL(a)))?(o?(o=!1,l=r&&SL(r)?r:[]):l=r&&CL(r)?r:{},IL(c,{name:n,newValue:e(u,l,a)})):typeof a<"u"&&IL(c,{name:n,newValue:a}));return c};const IM=Ox(Xq);function AM(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 Kq(){const e=[],t={run:n,use:r};return t;function n(...a){let o=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...a);function c(s,...h){const u=e[++o];let d=-1;if(s){l(s);return}for(;++d<a.length;)(h[d]===null||h[d]===void 0)&&(h[d]=a[d]);a=h,u?Yq(u,c)(...h):l(null,...h)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Yq(e,t){let n;return r;function r(...l){const c=e.length>l.length;let s;c&&l.push(a);try{s=e.apply(this,l)}catch(h){const u=h;if(c&&n)throw u;return a(u)}c||(s&&s.then&&typeof s.then=="function"?s.then(o,a):s instanceof Error?a(s):o(s))}function a(l,...c){n||(n=!0,t(l,...c))}function o(l){a(null,l)}}const Dt={basename:Qq,dirname:Jq,extname:$q,join:eH,sep:"/"};function Qq(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Bn(e);let n=0,r=-1,a=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else r<0&&(o=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else l<0&&(o=!0,l=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(r=a):(c=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Jq(e){if(Bn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function $q(e){Bn(e);let t=e.length,n=-1,r=0,a=-1,o=0,l;for(;t--;){const c=e.codePointAt(t);if(c===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),c===46?a<0?a=t:o!==1&&(o=1):a>-1&&(o=-1)}return a<0||n<0||o===0||o===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function eH(...e){let t=-1,n;for(;++t<e.length;)Bn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":tH(n)}function tH(e){Bn(e);const t=e.codePointAt(0)===47;let n=nH(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function nH(e,t){let n="",r=0,a=-1,o=0,l=-1,c,s;for(;++l<=e.length;){if(l<e.length)c=e.codePointAt(l);else{if(c===47)break;c=47}if(c===47){if(!(a===l-1||o===1))if(a!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),a=l,o=0;continue}}else if(n.length>0){n="",r=0,a=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,o=0}else c===46&&o>-1?o++:o=-1}return n}function Bn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rH={cwd:aH};function aH(){return"/"}function zM(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function iH(e){if(typeof e=="string")e=new URL(e);else if(!zM(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 oH(e)}function oH(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const TM=["history","path","basename","stem","extname","dirname"];class zL{constructor(t){let n;t?zM(t)?n={path:t}:typeof t=="string"||lH(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":rH.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<TM.length;){const o=TM[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let a;for(a in n)TM.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Dt.basename(this.path):void 0}set basename(t){HM(t,"basename"),qM(t,"basename"),this.path=Dt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Dt.dirname(this.path):void 0}set dirname(t){TL(this.basename,"dirname"),this.path=Dt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Dt.extname(this.path):void 0}set extname(t){if(qM(t,"extname"),TL(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=Dt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){zM(t)&&(t=iH(t)),HM(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Dt.basename(this.path,this.extname):void 0}set stem(t){HM(t,"stem"),qM(t,"stem"),this.path=Dt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Qe(t,n,r);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 qM(e,t){if(e&&e.includes(Dt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Dt.sep+"`")}function HM(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function TL(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function lH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cH=function(e){const r=this.constructor.prototype,a=r[e],o=function(){return a.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},sH={}.hasOwnProperty;class BM extends cH{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=Kq()}copy(){const t=new BM;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(IM(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(DM("data",this.frozen),this.namespace[t]=n,this):sH.call(this.namespace,t)&&this.namespace[t]||void 0:t?(DM("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=hx(t),r=this.parser||this.Parser;return PM("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),PM("process",this.parser||this.Parser),FM("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(o,l){const c=hx(t),s=r.parse(c);r.run(s,c,function(u,d,m){if(u||!d||!m)return h(u);const k=d,g=r.stringify(k,m);dH(g)?m.value=g:m.result=g,h(u,m)});function h(u,d){u||!d?l(u):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),PM("processSync",this.parser||this.Parser),FM("processSync",this.compiler||this.Compiler),this.process(t,a),HL("processSync","process",n),r;function a(o,l){n=!0,ML(o),r=l}}run(t,n,r){qL(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,c){const s=hx(n);a.run(t,s,h);function h(u,d,m){const k=d||t;u?c(u):l?l(k):r(void 0,k,m)}}}runSync(t,n){let r=!1,a;return this.run(t,n,o),HL("runSync","run",r),a;function o(l,c){ML(l),a=c,r=!0}}stringify(t,n){this.freeze();const r=hx(n),a=this.compiler||this.Compiler;return FM("stringify",a),qL(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(DM("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(h){if(typeof h=="function")s(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[u,...d]=h;s(u,d)}else l(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function l(h){if(!("plugins"in h)&&!("settings"in h))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(h.plugins),h.settings&&(a.settings=IM(!0,a.settings,h.settings))}function c(h){let u=-1;if(h!=null)if(Array.isArray(h))for(;++u<h.length;){const d=h[u];o(d)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function s(h,u){let d=-1,m=-1;for(;++d<r.length;)if(r[d][0]===h){m=d;break}if(m===-1)r.push([h,...u]);else if(u.length>0){let[k,...g]=u;const x=r[m][1];AM(x)&&AM(k)&&(k=IM(!0,x,k)),r[m]=[h,k,...g]}}}}const hH=new BM().freeze();function PM(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function FM(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function DM(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 qL(e){if(!AM(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function HL(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function hx(e){return uH(e)?e:new zL(e)}function uH(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function dH(e){return typeof e=="string"||pH(e)}function pH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const yH="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",BL=[],PL={allowDangerousHtml:!0},kH=/^(https?|ircs?|mailto|xmpp)$/i,mH=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function fH(e){const t=gH(e),n=vH(e);return xH(t.runSync(t.parse(n),n),e)}function gH(e){const t=e.rehypePlugins||BL,n=e.remarkPlugins||BL,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...PL}:PL;return hH().use(eq).use(n).use(Wq,r).use(t)}function vH(e){const t=e.children||"",n=new zL;return typeof t=="string"&&(n.value=t),n}function xH(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,o=t.disallowedElements,l=t.skipHtml,c=t.unwrapDisallowed,s=t.urlTransform||MH;for(const u of mH)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+yH+u.id,void 0);return SM(e,h),ZA(e,{Fragment:_.Fragment,components:a,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.jsxs,passKeys:!0,passNode:!0});function h(u,d,m){if(u.type==="raw"&&m&&typeof d=="number")return l?m.children.splice(d,1):m.children[d]={type:"text",value:u.value},d;if(u.type==="element"){let k;for(k in uM)if(Object.hasOwn(uM,k)&&Object.hasOwn(u.properties,k)){const g=u.properties[k],x=uM[k];(x===null||x.includes(u.tagName))&&(u.properties[k]=s(String(g||""),k,u))}}if(u.type==="element"){let k=n?!n.includes(u.tagName):o?o.includes(u.tagName):!1;if(!k&&r&&typeof d=="number"&&(k=!r(u,d,m)),k&&m&&typeof d=="number")return c&&u.children?m.children.splice(d,1,...u.children):m.children.splice(d,1),d}}}function MH(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||kH.test(e.slice(0,t))?e:""}function FL(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++o>l&&(l=o):o=1,a=r+t.length,r=n.indexOf(t,a);return l}function wH(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:o},exit:{mathFlow:a,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:c,mathText:l,mathTextData:c}};function e(s){const h={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[h]}},s)}function t(){this.buffer()}function n(){const s=this.resume(),h=this.stack[this.stack.length-1];h.type,h.meta=s}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(s){const h=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.stack[this.stack.length-1];u.type,this.exit(s),u.value=h;const d=u.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:h}),this.data.mathFlowInside=void 0}function o(s){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},s),this.buffer()}function l(s){const h=this.resume(),u=this.stack[this.stack.length-1];u.type,this.exit(s),u.value=h,u.data.hChildren.push({type:"text",value:h})}function c(s){this.config.enter.data.call(this,s),this.config.exit.data.call(this,s)}}function bH(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
7568
|
+
`},a),o}function Wq(e,t){return e&&"run"in e?async function(n,r){const a=xL(n,{file:r,...t});await e.run(a,r)}:function(n,r){return xL(n,{file:r,...e||t})}}function ML(e){if(e)throw e}var sx=Object.prototype.hasOwnProperty,wL=Object.prototype.toString,bL=Object.defineProperty,LL=Object.getOwnPropertyDescriptor,SL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):wL.call(t)==="[object Array]"},CL=function(t){if(!t||wL.call(t)!=="[object Object]")return!1;var n=sx.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&sx.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||sx.call(t,a)},IL=function(t,n){bL&&n.name==="__proto__"?bL(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},AL=function(t,n){if(n==="__proto__")if(sx.call(t,n)){if(LL)return LL(t,n).value}else return;return t[n]},Xq=function e(){var t,n,r,a,o,l,c=arguments[0],s=1,h=arguments.length,u=!1;for(typeof c=="boolean"&&(u=c,c=arguments[1]||{},s=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});s<h;++s)if(t=arguments[s],t!=null)for(n in t)r=AL(c,n),a=AL(t,n),c!==a&&(u&&a&&(CL(a)||(o=SL(a)))?(o?(o=!1,l=r&&SL(r)?r:[]):l=r&&CL(r)?r:{},IL(c,{name:n,newValue:e(u,l,a)})):typeof a<"u"&&IL(c,{name:n,newValue:a}));return c};const IM=Ox(Xq);function AM(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 Kq(){const e=[],t={run:n,use:r};return t;function n(...a){let o=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...a);function c(s,...h){const u=e[++o];let d=-1;if(s){l(s);return}for(;++d<a.length;)(h[d]===null||h[d]===void 0)&&(h[d]=a[d]);a=h,u?Yq(u,c)(...h):l(null,...h)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Yq(e,t){let n;return r;function r(...l){const c=e.length>l.length;let s;c&&l.push(a);try{s=e.apply(this,l)}catch(h){const u=h;if(c&&n)throw u;return a(u)}c||(s&&s.then&&typeof s.then=="function"?s.then(o,a):s instanceof Error?a(s):o(s))}function a(l,...c){n||(n=!0,t(l,...c))}function o(l){a(null,l)}}const Dt={basename:Qq,dirname:Jq,extname:$q,join:eH,sep:"/"};function Qq(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Bn(e);let n=0,r=-1,a=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else r<0&&(o=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else l<0&&(o=!0,l=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(r=a):(c=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Jq(e){if(Bn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function $q(e){Bn(e);let t=e.length,n=-1,r=0,a=-1,o=0,l;for(;t--;){const c=e.codePointAt(t);if(c===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),c===46?a<0?a=t:o!==1&&(o=1):a>-1&&(o=-1)}return a<0||n<0||o===0||o===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function eH(...e){let t=-1,n;for(;++t<e.length;)Bn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":tH(n)}function tH(e){Bn(e);const t=e.codePointAt(0)===47;let n=nH(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function nH(e,t){let n="",r=0,a=-1,o=0,l=-1,c,s;for(;++l<=e.length;){if(l<e.length)c=e.codePointAt(l);else{if(c===47)break;c=47}if(c===47){if(!(a===l-1||o===1))if(a!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),a=l,o=0;continue}}else if(n.length>0){n="",r=0,a=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,o=0}else c===46&&o>-1?o++:o=-1}return n}function Bn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rH={cwd:aH};function aH(){return"/"}function zM(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function iH(e){if(typeof e=="string")e=new URL(e);else if(!zM(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 oH(e)}function oH(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const TM=["history","path","basename","stem","extname","dirname"];class zL{constructor(t){let n;t?zM(t)?n={path:t}:typeof t=="string"||lH(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":rH.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<TM.length;){const o=TM[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let a;for(a in n)TM.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Dt.basename(this.path):void 0}set basename(t){HM(t,"basename"),qM(t,"basename"),this.path=Dt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Dt.dirname(this.path):void 0}set dirname(t){TL(this.basename,"dirname"),this.path=Dt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Dt.extname(this.path):void 0}set extname(t){if(qM(t,"extname"),TL(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=Dt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){zM(t)&&(t=iH(t)),HM(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Dt.basename(this.path,this.extname):void 0}set stem(t){HM(t,"stem"),qM(t,"stem"),this.path=Dt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Qe(t,n,r);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 qM(e,t){if(e&&e.includes(Dt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Dt.sep+"`")}function HM(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function TL(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function lH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cH=function(e){const r=this.constructor.prototype,a=r[e],o=function(){return a.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},sH={}.hasOwnProperty;class BM extends cH{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=Kq()}copy(){const t=new BM;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(IM(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(DM("data",this.frozen),this.namespace[t]=n,this):sH.call(this.namespace,t)&&this.namespace[t]||void 0:t?(DM("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=hx(t),r=this.parser||this.Parser;return PM("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),PM("process",this.parser||this.Parser),FM("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(o,l){const c=hx(t),s=r.parse(c);r.run(s,c,function(u,d,m){if(u||!d||!m)return h(u);const k=d,g=r.stringify(k,m);dH(g)?m.value=g:m.result=g,h(u,m)});function h(u,d){u||!d?l(u):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),PM("processSync",this.parser||this.Parser),FM("processSync",this.compiler||this.Compiler),this.process(t,a),HL("processSync","process",n),r;function a(o,l){n=!0,ML(o),r=l}}run(t,n,r){qL(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,c){const s=hx(n);a.run(t,s,h);function h(u,d,m){const k=d||t;u?c(u):l?l(k):r(void 0,k,m)}}}runSync(t,n){let r=!1,a;return this.run(t,n,o),HL("runSync","run",r),a;function o(l,c){ML(l),a=c,r=!0}}stringify(t,n){this.freeze();const r=hx(n),a=this.compiler||this.Compiler;return FM("stringify",a),qL(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(DM("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(h){if(typeof h=="function")s(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[u,...d]=h;s(u,d)}else l(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function l(h){if(!("plugins"in h)&&!("settings"in h))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(h.plugins),h.settings&&(a.settings=IM(!0,a.settings,h.settings))}function c(h){let u=-1;if(h!=null)if(Array.isArray(h))for(;++u<h.length;){const d=h[u];o(d)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function s(h,u){let d=-1,m=-1;for(;++d<r.length;)if(r[d][0]===h){m=d;break}if(m===-1)r.push([h,...u]);else if(u.length>0){let[k,...g]=u;const x=r[m][1];AM(x)&&AM(k)&&(k=IM(!0,x,k)),r[m]=[h,k,...g]}}}}const hH=new BM().freeze();function PM(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function FM(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function DM(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 qL(e){if(!AM(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function HL(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function hx(e){return uH(e)?e:new zL(e)}function uH(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function dH(e){return typeof e=="string"||pH(e)}function pH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const yH="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",BL=[],PL={allowDangerousHtml:!0},kH=/^(https?|ircs?|mailto|xmpp)$/i,mH=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function fH(e){const t=gH(e),n=vH(e);return xH(t.runSync(t.parse(n),n),e)}function gH(e){const t=e.rehypePlugins||BL,n=e.remarkPlugins||BL,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...PL}:PL;return hH().use(eq).use(n).use(Wq,r).use(t)}function vH(e){const t=e.children||"",n=new zL;return typeof t=="string"&&(n.value=t),n}function xH(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,o=t.disallowedElements,l=t.skipHtml,c=t.unwrapDisallowed,s=t.urlTransform||MH;for(const u of mH)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+yH+u.id,void 0);return SM(e,h),ZA(e,{Fragment:G.Fragment,components:a,ignoreInvalidStyle:!0,jsx:G.jsx,jsxs:G.jsxs,passKeys:!0,passNode:!0});function h(u,d,m){if(u.type==="raw"&&m&&typeof d=="number")return l?m.children.splice(d,1):m.children[d]={type:"text",value:u.value},d;if(u.type==="element"){let k;for(k in uM)if(Object.hasOwn(uM,k)&&Object.hasOwn(u.properties,k)){const g=u.properties[k],x=uM[k];(x===null||x.includes(u.tagName))&&(u.properties[k]=s(String(g||""),k,u))}}if(u.type==="element"){let k=n?!n.includes(u.tagName):o?o.includes(u.tagName):!1;if(!k&&r&&typeof d=="number"&&(k=!r(u,d,m)),k&&m&&typeof d=="number")return c&&u.children?m.children.splice(d,1,...u.children):m.children.splice(d,1),d}}}function MH(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||kH.test(e.slice(0,t))?e:""}function FL(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++o>l&&(l=o):o=1,a=r+t.length,r=n.indexOf(t,a);return l}function wH(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:o},exit:{mathFlow:a,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:c,mathText:l,mathTextData:c}};function e(s){const h={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[h]}},s)}function t(){this.buffer()}function n(){const s=this.resume(),h=this.stack[this.stack.length-1];h.type,h.meta=s}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(s){const h=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u=this.stack[this.stack.length-1];u.type,this.exit(s),u.value=h;const d=u.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:h}),this.data.mathFlowInside=void 0}function o(s){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},s),this.buffer()}function l(s){const h=this.resume(),u=this.stack[this.stack.length-1];u.type,this.exit(s),u.value=h,u.data.hChildren.push({type:"text",value:h})}function c(s){this.config.enter.data.call(this,s),this.config.exit.data.call(this,s)}}function bH(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
7568
7569
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(o,l,c,s){const h=o.value||"",u=c.createTracker(s),d="$".repeat(Math.max(FL(h,"$")+1,2)),m=c.enter("mathFlow");let k=u.move(d);if(o.meta){const g=c.enter("mathFlowMeta");k+=u.move(c.safe(o.meta,{after:`
|
|
7569
7570
|
`,before:k,encode:["$"],...u.current()})),g()}return k+=u.move(`
|
|
7570
7571
|
`),h&&(k+=u.move(h+`
|
|
7571
|
-
`)),k+=u.move(d),m(),k}function r(o,l,c){let s=o.value||"",h=1;for(t||h++;new RegExp("(^|[^$])"+"\\$".repeat(h)+"([^$]|$)").test(s);)h++;const u="$".repeat(h);/[^ \r\n]/.test(s)&&(/^[ \r\n]/.test(s)&&/[ \r\n]$/.test(s)||/^\$|\$$/.test(s))&&(s=" "+s+" ");let d=-1;for(;++d<c.unsafe.length;){const m=c.unsafe[d];if(!m.atBreak)continue;const k=c.compilePattern(m);let g;for(;g=k.exec(s);){let x=g.index;s.codePointAt(x)===10&&s.codePointAt(x-1)===13&&x--,s=s.slice(0,x)+" "+s.slice(g.index+1)}}return u+s+u}function a(){return"$"}}const LH={tokenize:SH,concrete:!0,name:"mathFlow"},DL={tokenize:CH,partial:!0};function SH(e,t,n){const r=this,a=r.events[r.events.length-1],o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let l=0;return c;function c(C){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),s(C)}function s(C){return C===36?(e.consume(C),l++,s):l<2?n(C):(e.exit("mathFlowFenceSequence"),pe(e,h,"whitespace")(C))}function h(C){return C===null||te(C)?d(C):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),u(C))}function u(C){return C===null||te(C)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(C)):C===36?n(C):(e.consume(C),u)}function d(C){return e.exit("mathFlowFence"),r.interrupt?t(C):e.attempt(DL,m,A)(C)}function m(C){return e.attempt({tokenize:b,partial:!0},A,k)(C)}function k(C){return(o?pe(e,g,"linePrefix",o+1):g)(C)}function g(C){return C===null?A(C):te(C)?e.attempt(DL,m,A)(C):(e.enter("mathFlowValue"),x(C))}function x(C){return C===null||te(C)?(e.exit("mathFlowValue"),g(C)):(e.consume(C),x)}function A(C){return e.exit("mathFlow"),t(C)}function b(C,q,j){let F=0;return pe(C,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function T(Z){return C.enter("mathFlowFence"),C.enter("mathFlowFenceSequence"),R(Z)}function R(Z){return Z===36?(F++,C.consume(Z),R):F<l?j(Z):(C.exit("mathFlowFenceSequence"),pe(C,K,"whitespace")(Z))}function K(Z){return Z===null||te(Z)?(C.exit("mathFlowFence"),q(Z)):j(Z)}}}function CH(e,t,n){const r=this;return a;function a(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function IH(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:AH,previous:zH,name:"mathText"};function r(a,o,l){let c=0,s,h;return u;function u(x){return a.enter("mathText"),a.enter("mathTextSequence"),d(x)}function d(x){return x===36?(a.consume(x),c++,d):c<2&&!n?l(x):(a.exit("mathTextSequence"),m(x))}function m(x){return x===null?l(x):x===36?(h=a.enter("mathTextSequence"),s=0,g(x)):x===32?(a.enter("space"),a.consume(x),a.exit("space"),m):te(x)?(a.enter("lineEnding"),a.consume(x),a.exit("lineEnding"),m):(a.enter("mathTextData"),k(x))}function k(x){return x===null||x===32||x===36||te(x)?(a.exit("mathTextData"),m(x)):(a.consume(x),k)}function g(x){return x===36?(a.consume(x),s++,g):s===c?(a.exit("mathTextSequence"),a.exit("mathText"),o(x)):(h.type="mathTextData",k(x))}}}function AH(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="mathTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function zH(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function TH(e){return{flow:{36:LH},text:{36:IH(e)}}}class mt{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new mt(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class bt{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 bt(n,mt.range(this,t))}}class N{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,a,o,l=n&&n.loc;if(l&&l.start<=l.end){var c=l.lexer.input;a=l.start,o=l.end,a===c.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var s=c.slice(a,o).replace(/[^]/g,"$&̲"),h;a>15?h="…"+c.slice(a-15,a):h=c.slice(0,a);var u;o+15<c.length?u=c.slice(o,o+15)+"…":u=c.slice(o),r+=h+s+u}var d=new Error(r);return d.name="ParseError",d.__proto__=N.prototype,d.position=a,a!=null&&o!=null&&(d.length=o-a),d.rawMessage=t,d}}N.prototype.__proto__=Error.prototype;var qH=function(t,n){return t.indexOf(n)!==-1},HH=function(t,n){return t===void 0?n:t},BH=/([A-Z])/g,PH=function(t){return t.replace(BH,"-$1").toLowerCase()},FH={"&":"&",">":">","<":"<",'"':""","'":"'"},DH=/[&><"']/g;function RH(e){return String(e).replace(DH,t=>FH[t])}var RL=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},EH=function(t){var n=RL(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},jH=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},OH=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},re={contains:qH,deflt:HH,escape:RH,hyphenate:PH,getBaseElem:RL,isCharacterBox:EH,protocolFromUrl:OH},ux={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 VH(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class RM{constructor(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 in ux)if(ux.hasOwnProperty(n)){var r=ux[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:VH(r)}}reportNonstrict(t,n,r){var a=this.strict;if(typeof a=="function"&&(a=a(t,n,r)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new N("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);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,r){var a=this.strict;if(typeof a=="function")try{a=a(t,n,r)}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(t.url&&!t.protocol){var n=re.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class o1{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return Rt[NH[this.id]]}sub(){return Rt[UH[this.id]]}fracNum(){return Rt[_H[this.id]]}fracDen(){return Rt[GH[this.id]]}cramp(){return Rt[ZH[this.id]]}text(){return Rt[WH[this.id]]}isTight(){return this.size>=2}}var EM=0,dx=1,$0=2,Zt=3,Pn=4,Lt=5,en=6,et=7,Rt=[new o1(EM,0,!1),new o1(dx,0,!0),new o1($0,1,!1),new o1(Zt,1,!0),new o1(Pn,2,!1),new o1(Lt,2,!0),new o1(en,3,!1),new o1(et,3,!0)],NH=[Pn,Lt,Pn,Lt,en,et,en,et],UH=[Lt,Lt,Lt,Lt,et,et,et,et],_H=[$0,Zt,Pn,Lt,en,et,en,et],GH=[Zt,Zt,Lt,Lt,et,et,et,et],ZH=[dx,dx,Zt,Zt,Lt,Lt,et,et],WH=[EM,dx,$0,Zt,$0,Zt,$0,Zt],ae={DISPLAY:Rt[EM],TEXT:Rt[$0],SCRIPT:Rt[Pn],SCRIPTSCRIPT:Rt[en]},jM=[{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 XH(e){for(var t=0;t<jM.length;t++)for(var n=jM[t],r=0;r<n.blocks.length;r++){var a=n.blocks[r];if(e>=a[0]&&e<=a[1])return n.name}return null}var px=[];jM.forEach(e=>e.blocks.forEach(t=>px.push(...t)));function EL(e){for(var t=0;t<px.length;t+=2)if(e>=px[t]&&e<=px[t+1])return!0;return!1}var tn=80,KH=function(t,n){return"M95,"+(622+t+n)+`
|
|
7572
|
+
`)),k+=u.move(d),m(),k}function r(o,l,c){let s=o.value||"",h=1;for(t||h++;new RegExp("(^|[^$])"+"\\$".repeat(h)+"([^$]|$)").test(s);)h++;const u="$".repeat(h);/[^ \r\n]/.test(s)&&(/^[ \r\n]/.test(s)&&/[ \r\n]$/.test(s)||/^\$|\$$/.test(s))&&(s=" "+s+" ");let d=-1;for(;++d<c.unsafe.length;){const m=c.unsafe[d];if(!m.atBreak)continue;const k=c.compilePattern(m);let g;for(;g=k.exec(s);){let x=g.index;s.codePointAt(x)===10&&s.codePointAt(x-1)===13&&x--,s=s.slice(0,x)+" "+s.slice(g.index+1)}}return u+s+u}function a(){return"$"}}const LH={tokenize:SH,concrete:!0,name:"mathFlow"},DL={tokenize:CH,partial:!0};function SH(e,t,n){const r=this,a=r.events[r.events.length-1],o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let l=0;return c;function c(I){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),s(I)}function s(I){return I===36?(e.consume(I),l++,s):l<2?n(I):(e.exit("mathFlowFenceSequence"),pe(e,h,"whitespace")(I))}function h(I){return I===null||te(I)?d(I):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),u(I))}function u(I){return I===null||te(I)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(I)):I===36?n(I):(e.consume(I),u)}function d(I){return e.exit("mathFlowFence"),r.interrupt?t(I):e.attempt(DL,m,C)(I)}function m(I){return e.attempt({tokenize:w,partial:!0},C,k)(I)}function k(I){return(o?pe(e,g,"linePrefix",o+1):g)(I)}function g(I){return I===null?C(I):te(I)?e.attempt(DL,m,C)(I):(e.enter("mathFlowValue"),x(I))}function x(I){return I===null||te(I)?(e.exit("mathFlowValue"),g(I)):(e.consume(I),x)}function C(I){return e.exit("mathFlow"),t(I)}function w(I,q,j){let R=0;return pe(I,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function T(V){return I.enter("mathFlowFence"),I.enter("mathFlowFenceSequence"),F(V)}function F(V){return V===36?(R++,I.consume(V),F):R<l?j(V):(I.exit("mathFlowFenceSequence"),pe(I,K,"whitespace")(V))}function K(V){return V===null||te(V)?(I.exit("mathFlowFence"),q(V)):j(V)}}}function CH(e,t,n){const r=this;return a;function a(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function IH(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:AH,previous:zH,name:"mathText"};function r(a,o,l){let c=0,s,h;return u;function u(x){return a.enter("mathText"),a.enter("mathTextSequence"),d(x)}function d(x){return x===36?(a.consume(x),c++,d):c<2&&!n?l(x):(a.exit("mathTextSequence"),m(x))}function m(x){return x===null?l(x):x===36?(h=a.enter("mathTextSequence"),s=0,g(x)):x===32?(a.enter("space"),a.consume(x),a.exit("space"),m):te(x)?(a.enter("lineEnding"),a.consume(x),a.exit("lineEnding"),m):(a.enter("mathTextData"),k(x))}function k(x){return x===null||x===32||x===36||te(x)?(a.exit("mathTextData"),m(x)):(a.consume(x),k)}function g(x){return x===36?(a.consume(x),s++,g):s===c?(a.exit("mathTextSequence"),a.exit("mathText"),o(x)):(h.type="mathTextData",k(x))}}}function AH(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="mathTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function zH(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function TH(e){return{flow:{36:LH},text:{36:IH(e)}}}class mt{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new mt(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class bt{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 bt(n,mt.range(this,t))}}class U{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,a,o,l=n&&n.loc;if(l&&l.start<=l.end){var c=l.lexer.input;a=l.start,o=l.end,a===c.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var s=c.slice(a,o).replace(/[^]/g,"$&̲"),h;a>15?h="…"+c.slice(a-15,a):h=c.slice(0,a);var u;o+15<c.length?u=c.slice(o,o+15)+"…":u=c.slice(o),r+=h+s+u}var d=new Error(r);return d.name="ParseError",d.__proto__=U.prototype,d.position=a,a!=null&&o!=null&&(d.length=o-a),d.rawMessage=t,d}}U.prototype.__proto__=Error.prototype;var qH=function(t,n){return t.indexOf(n)!==-1},HH=function(t,n){return t===void 0?n:t},BH=/([A-Z])/g,PH=function(t){return t.replace(BH,"-$1").toLowerCase()},FH={"&":"&",">":">","<":"<",'"':""","'":"'"},DH=/[&><"']/g;function RH(e){return String(e).replace(DH,t=>FH[t])}var RL=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},EH=function(t){var n=RL(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},jH=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},OH=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},re={contains:qH,deflt:HH,escape:RH,hyphenate:PH,getBaseElem:RL,isCharacterBox:EH,protocolFromUrl:OH},ux={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 VH(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class RM{constructor(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 in ux)if(ux.hasOwnProperty(n)){var r=ux[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:VH(r)}}reportNonstrict(t,n,r){var a=this.strict;if(typeof a=="function"&&(a=a(t,n,r)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new U("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);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,r){var a=this.strict;if(typeof a=="function")try{a=a(t,n,r)}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(t.url&&!t.protocol){var n=re.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class o1{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return Rt[NH[this.id]]}sub(){return Rt[UH[this.id]]}fracNum(){return Rt[_H[this.id]]}fracDen(){return Rt[GH[this.id]]}cramp(){return Rt[ZH[this.id]]}text(){return Rt[WH[this.id]]}isTight(){return this.size>=2}}var EM=0,dx=1,$0=2,Zt=3,Pn=4,Lt=5,en=6,et=7,Rt=[new o1(EM,0,!1),new o1(dx,0,!0),new o1($0,1,!1),new o1(Zt,1,!0),new o1(Pn,2,!1),new o1(Lt,2,!0),new o1(en,3,!1),new o1(et,3,!0)],NH=[Pn,Lt,Pn,Lt,en,et,en,et],UH=[Lt,Lt,Lt,Lt,et,et,et,et],_H=[$0,Zt,Pn,Lt,en,et,en,et],GH=[Zt,Zt,Lt,Lt,et,et,et,et],ZH=[dx,dx,Zt,Zt,Lt,Lt,et,et],WH=[EM,dx,$0,Zt,$0,Zt,$0,Zt],ae={DISPLAY:Rt[EM],TEXT:Rt[$0],SCRIPT:Rt[Pn],SCRIPTSCRIPT:Rt[en]},jM=[{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 XH(e){for(var t=0;t<jM.length;t++)for(var n=jM[t],r=0;r<n.blocks.length;r++){var a=n.blocks[r];if(e>=a[0]&&e<=a[1])return n.name}return null}var px=[];jM.forEach(e=>e.blocks.forEach(t=>px.push(...t)));function EL(e){for(var t=0;t<px.length;t+=2)if(e>=px[t]&&e<=px[t+1])return!0;return!1}var tn=80,KH=function(t,n){return"M95,"+(622+t+n)+`
|
|
7572
7573
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
7573
7574
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
7574
7575
|
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
|
|
@@ -7822,16 +7823,16 @@ 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
|
|
|
7822
7823
|
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
|
|
7823
7824
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
7824
7825
|
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
7825
|
-
-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.")}};class Fn{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 re.contains(this.classes,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(){var t=n=>n.toText();return this.children.map(t).join("")}}var Et={"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]}},yx={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]},OL={Å:"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 iB(e,t){Et[e]=t}function OM(e,t,n){if(!Et[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),a=Et[t][r];if(!a&&e[0]in OL&&(r=OL[e[0]].charCodeAt(0),a=Et[t][r]),!a&&n==="text"&&EL(r)&&(a=Et[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var VM={};function oB(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!VM[t]){var n=VM[t]={cssEmPerMu:yx.quad[t]/18};for(var r in yx)yx.hasOwnProperty(r)&&(n[r]=yx[r][t])}return VM[t]}var lB=[[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]],VL=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],NL=function(t,n){return n.size<2?t:lB[t-1][n.size-1]};class Wt{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||Wt.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=VL[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};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Wt(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:NL(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:VL[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=NL(Wt.BASESIZE,t);return this.size===n&&this.textSize===Wt.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!==Wt.BASESIZE?["sizing","reset-size"+this.size,"size"+Wt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=oB(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Wt.BASESIZE=6;var NM={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},cB={ex:!0,em:!0,mu:!0},UL=function(t){return typeof t!="string"&&(t=t.unit),t in NM||t in cB||t==="ex"},Be=function(t,n){var r;if(t.unit in NM)r=NM[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var a;if(n.style.isTight()?a=n.havingStyle(n.style.text()):a=n,t.unit==="ex")r=a.fontMetrics().xHeight;else if(t.unit==="em")r=a.fontMetrics().quad;else throw new N("Invalid unit: '"+t.unit+"'");a!==n&&(r*=a.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},W=function(t){return+t.toFixed(4)+"em"},l1=function(t){return t.filter(n=>n).join(" ")},_L=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var a=n.getColor();a&&(this.style.color=a)}},GL=function(t){var n=document.createElement(t);n.className=l1(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&n.setAttribute(a,this.attributes[a]);for(var o=0;o<this.children.length;o++)n.appendChild(this.children[o].toNode());return n},sB=/[\s"'>/=\x00-\x1f]/,ZL=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+re.escape(l1(this.classes))+'"');var r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=re.hyphenate(a)+":"+this.style[a]+";");r&&(n+=' style="'+re.escape(r)+'"');for(var o in this.attributes)if(this.attributes.hasOwnProperty(o)){if(sB.test(o))throw new N("Invalid attribute name '"+o+"'");n+=" "+o+'="'+re.escape(this.attributes[o])+'"'}n+=">";for(var l=0;l<this.children.length;l++)n+=this.children[l].toMarkup();return n+="</"+t+">",n};class Dn{constructor(t,n,r,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,_L.call(this,t,r,a),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return re.contains(this.classes,t)}toNode(){return GL.call(this,"span")}toMarkup(){return ZL.call(this,"span")}}class UM{constructor(t,n,r,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,_L.call(this,n,a),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return re.contains(this.classes,t)}toNode(){return GL.call(this,"a")}toMarkup(){return ZL.call(this,"a")}}class hB{constructor(t,n,r){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.style=r}hasClass(t){return re.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t='<img src="'+re.escape(this.src)+'"'+(' alt="'+re.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=re.hyphenate(r)+":"+this.style[r]+";");return n&&(t+=' style="'+re.escape(n)+'"'),t+="'/>",t}}var uB={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class St{constructor(t,n,r,a,o,l,c,s){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=r||0,this.italic=a||0,this.skew=o||0,this.width=l||0,this.classes=c||[],this.style=s||{},this.maxFontSize=0;var h=XH(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=uB[this.text])}hasClass(t){return re.contains(this.classes,t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=W(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=l1(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=re.escape(l1(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=re.hyphenate(a)+":"+this.style[a]+";");r&&(t=!0,n+=' style="'+re.escape(r)+'"');var o=re.escape(this.text);return t?(n+=">",n+=o,n+="</span>",n):o}}class Xt{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 r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);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 in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+re.escape(this.attributes[n])+'"');t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class c1{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",jL[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+re.escape(this.alternate)+'"/>':'<path d="'+re.escape(jL[this.pathName])+'"/>'}}class _M{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 r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+re.escape(this.attributes[n])+'"');return t+="/>",t}}function WL(e){if(e instanceof St)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function dB(e){if(e instanceof Dn)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var pB={bin:1,close:1,inner:1,open:1,punct:1,rel:1},yB={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ze={math:{},text:{}};function p(e,t,n,r,a,o){ze[e][a]={font:t,group:n,replace:r},o&&r&&(ze[e][r]=ze[e][a])}var y="math",E="text",f="main",M="ams",qe="accent-token",$="bin",tt="close",nn="inner",ie="mathord",Ve="op-token",ft="open",kx="punct",w="rel",Kt="spacing",z="textord";p(y,f,w,"≡","\\equiv",!0),p(y,f,w,"≺","\\prec",!0),p(y,f,w,"≻","\\succ",!0),p(y,f,w,"∼","\\sim",!0),p(y,f,w,"⊥","\\perp"),p(y,f,w,"⪯","\\preceq",!0),p(y,f,w,"⪰","\\succeq",!0),p(y,f,w,"≃","\\simeq",!0),p(y,f,w,"∣","\\mid",!0),p(y,f,w,"≪","\\ll",!0),p(y,f,w,"≫","\\gg",!0),p(y,f,w,"≍","\\asymp",!0),p(y,f,w,"∥","\\parallel"),p(y,f,w,"⋈","\\bowtie",!0),p(y,f,w,"⌣","\\smile",!0),p(y,f,w,"⊑","\\sqsubseteq",!0),p(y,f,w,"⊒","\\sqsupseteq",!0),p(y,f,w,"≐","\\doteq",!0),p(y,f,w,"⌢","\\frown",!0),p(y,f,w,"∋","\\ni",!0),p(y,f,w,"∝","\\propto",!0),p(y,f,w,"⊢","\\vdash",!0),p(y,f,w,"⊣","\\dashv",!0),p(y,f,w,"∋","\\owns"),p(y,f,kx,".","\\ldotp"),p(y,f,kx,"⋅","\\cdotp"),p(y,f,z,"#","\\#"),p(E,f,z,"#","\\#"),p(y,f,z,"&","\\&"),p(E,f,z,"&","\\&"),p(y,f,z,"ℵ","\\aleph",!0),p(y,f,z,"∀","\\forall",!0),p(y,f,z,"ℏ","\\hbar",!0),p(y,f,z,"∃","\\exists",!0),p(y,f,z,"∇","\\nabla",!0),p(y,f,z,"♭","\\flat",!0),p(y,f,z,"ℓ","\\ell",!0),p(y,f,z,"♮","\\natural",!0),p(y,f,z,"♣","\\clubsuit",!0),p(y,f,z,"℘","\\wp",!0),p(y,f,z,"♯","\\sharp",!0),p(y,f,z,"♢","\\diamondsuit",!0),p(y,f,z,"ℜ","\\Re",!0),p(y,f,z,"♡","\\heartsuit",!0),p(y,f,z,"ℑ","\\Im",!0),p(y,f,z,"♠","\\spadesuit",!0),p(y,f,z,"§","\\S",!0),p(E,f,z,"§","\\S"),p(y,f,z,"¶","\\P",!0),p(E,f,z,"¶","\\P"),p(y,f,z,"†","\\dag"),p(E,f,z,"†","\\dag"),p(E,f,z,"†","\\textdagger"),p(y,f,z,"‡","\\ddag"),p(E,f,z,"‡","\\ddag"),p(E,f,z,"‡","\\textdaggerdbl"),p(y,f,tt,"⎱","\\rmoustache",!0),p(y,f,ft,"⎰","\\lmoustache",!0),p(y,f,tt,"⟯","\\rgroup",!0),p(y,f,ft,"⟮","\\lgroup",!0),p(y,f,$,"∓","\\mp",!0),p(y,f,$,"⊖","\\ominus",!0),p(y,f,$,"⊎","\\uplus",!0),p(y,f,$,"⊓","\\sqcap",!0),p(y,f,$,"∗","\\ast"),p(y,f,$,"⊔","\\sqcup",!0),p(y,f,$,"◯","\\bigcirc",!0),p(y,f,$,"∙","\\bullet",!0),p(y,f,$,"‡","\\ddagger"),p(y,f,$,"≀","\\wr",!0),p(y,f,$,"⨿","\\amalg"),p(y,f,$,"&","\\And"),p(y,f,w,"⟵","\\longleftarrow",!0),p(y,f,w,"⇐","\\Leftarrow",!0),p(y,f,w,"⟸","\\Longleftarrow",!0),p(y,f,w,"⟶","\\longrightarrow",!0),p(y,f,w,"⇒","\\Rightarrow",!0),p(y,f,w,"⟹","\\Longrightarrow",!0),p(y,f,w,"↔","\\leftrightarrow",!0),p(y,f,w,"⟷","\\longleftrightarrow",!0),p(y,f,w,"⇔","\\Leftrightarrow",!0),p(y,f,w,"⟺","\\Longleftrightarrow",!0),p(y,f,w,"↦","\\mapsto",!0),p(y,f,w,"⟼","\\longmapsto",!0),p(y,f,w,"↗","\\nearrow",!0),p(y,f,w,"↩","\\hookleftarrow",!0),p(y,f,w,"↪","\\hookrightarrow",!0),p(y,f,w,"↘","\\searrow",!0),p(y,f,w,"↼","\\leftharpoonup",!0),p(y,f,w,"⇀","\\rightharpoonup",!0),p(y,f,w,"↙","\\swarrow",!0),p(y,f,w,"↽","\\leftharpoondown",!0),p(y,f,w,"⇁","\\rightharpoondown",!0),p(y,f,w,"↖","\\nwarrow",!0),p(y,f,w,"⇌","\\rightleftharpoons",!0),p(y,M,w,"≮","\\nless",!0),p(y,M,w,"","\\@nleqslant"),p(y,M,w,"","\\@nleqq"),p(y,M,w,"⪇","\\lneq",!0),p(y,M,w,"≨","\\lneqq",!0),p(y,M,w,"","\\@lvertneqq"),p(y,M,w,"⋦","\\lnsim",!0),p(y,M,w,"⪉","\\lnapprox",!0),p(y,M,w,"⊀","\\nprec",!0),p(y,M,w,"⋠","\\npreceq",!0),p(y,M,w,"⋨","\\precnsim",!0),p(y,M,w,"⪹","\\precnapprox",!0),p(y,M,w,"≁","\\nsim",!0),p(y,M,w,"","\\@nshortmid"),p(y,M,w,"∤","\\nmid",!0),p(y,M,w,"⊬","\\nvdash",!0),p(y,M,w,"⊭","\\nvDash",!0),p(y,M,w,"⋪","\\ntriangleleft"),p(y,M,w,"⋬","\\ntrianglelefteq",!0),p(y,M,w,"⊊","\\subsetneq",!0),p(y,M,w,"","\\@varsubsetneq"),p(y,M,w,"⫋","\\subsetneqq",!0),p(y,M,w,"","\\@varsubsetneqq"),p(y,M,w,"≯","\\ngtr",!0),p(y,M,w,"","\\@ngeqslant"),p(y,M,w,"","\\@ngeqq"),p(y,M,w,"⪈","\\gneq",!0),p(y,M,w,"≩","\\gneqq",!0),p(y,M,w,"","\\@gvertneqq"),p(y,M,w,"⋧","\\gnsim",!0),p(y,M,w,"⪊","\\gnapprox",!0),p(y,M,w,"⊁","\\nsucc",!0),p(y,M,w,"⋡","\\nsucceq",!0),p(y,M,w,"⋩","\\succnsim",!0),p(y,M,w,"⪺","\\succnapprox",!0),p(y,M,w,"≆","\\ncong",!0),p(y,M,w,"","\\@nshortparallel"),p(y,M,w,"∦","\\nparallel",!0),p(y,M,w,"⊯","\\nVDash",!0),p(y,M,w,"⋫","\\ntriangleright"),p(y,M,w,"⋭","\\ntrianglerighteq",!0),p(y,M,w,"","\\@nsupseteqq"),p(y,M,w,"⊋","\\supsetneq",!0),p(y,M,w,"","\\@varsupsetneq"),p(y,M,w,"⫌","\\supsetneqq",!0),p(y,M,w,"","\\@varsupsetneqq"),p(y,M,w,"⊮","\\nVdash",!0),p(y,M,w,"⪵","\\precneqq",!0),p(y,M,w,"⪶","\\succneqq",!0),p(y,M,w,"","\\@nsubseteqq"),p(y,M,$,"⊴","\\unlhd"),p(y,M,$,"⊵","\\unrhd"),p(y,M,w,"↚","\\nleftarrow",!0),p(y,M,w,"↛","\\nrightarrow",!0),p(y,M,w,"⇍","\\nLeftarrow",!0),p(y,M,w,"⇏","\\nRightarrow",!0),p(y,M,w,"↮","\\nleftrightarrow",!0),p(y,M,w,"⇎","\\nLeftrightarrow",!0),p(y,M,w,"△","\\vartriangle"),p(y,M,z,"ℏ","\\hslash"),p(y,M,z,"▽","\\triangledown"),p(y,M,z,"◊","\\lozenge"),p(y,M,z,"Ⓢ","\\circledS"),p(y,M,z,"®","\\circledR"),p(E,M,z,"®","\\circledR"),p(y,M,z,"∡","\\measuredangle",!0),p(y,M,z,"∄","\\nexists"),p(y,M,z,"℧","\\mho"),p(y,M,z,"Ⅎ","\\Finv",!0),p(y,M,z,"⅁","\\Game",!0),p(y,M,z,"‵","\\backprime"),p(y,M,z,"▲","\\blacktriangle"),p(y,M,z,"▼","\\blacktriangledown"),p(y,M,z,"■","\\blacksquare"),p(y,M,z,"⧫","\\blacklozenge"),p(y,M,z,"★","\\bigstar"),p(y,M,z,"∢","\\sphericalangle",!0),p(y,M,z,"∁","\\complement",!0),p(y,M,z,"ð","\\eth",!0),p(E,f,z,"ð","ð"),p(y,M,z,"╱","\\diagup"),p(y,M,z,"╲","\\diagdown"),p(y,M,z,"□","\\square"),p(y,M,z,"□","\\Box"),p(y,M,z,"◊","\\Diamond"),p(y,M,z,"¥","\\yen",!0),p(E,M,z,"¥","\\yen",!0),p(y,M,z,"✓","\\checkmark",!0),p(E,M,z,"✓","\\checkmark"),p(y,M,z,"ℶ","\\beth",!0),p(y,M,z,"ℸ","\\daleth",!0),p(y,M,z,"ℷ","\\gimel",!0),p(y,M,z,"ϝ","\\digamma",!0),p(y,M,z,"ϰ","\\varkappa"),p(y,M,ft,"┌","\\@ulcorner",!0),p(y,M,tt,"┐","\\@urcorner",!0),p(y,M,ft,"└","\\@llcorner",!0),p(y,M,tt,"┘","\\@lrcorner",!0),p(y,M,w,"≦","\\leqq",!0),p(y,M,w,"⩽","\\leqslant",!0),p(y,M,w,"⪕","\\eqslantless",!0),p(y,M,w,"≲","\\lesssim",!0),p(y,M,w,"⪅","\\lessapprox",!0),p(y,M,w,"≊","\\approxeq",!0),p(y,M,$,"⋖","\\lessdot"),p(y,M,w,"⋘","\\lll",!0),p(y,M,w,"≶","\\lessgtr",!0),p(y,M,w,"⋚","\\lesseqgtr",!0),p(y,M,w,"⪋","\\lesseqqgtr",!0),p(y,M,w,"≑","\\doteqdot"),p(y,M,w,"≓","\\risingdotseq",!0),p(y,M,w,"≒","\\fallingdotseq",!0),p(y,M,w,"∽","\\backsim",!0),p(y,M,w,"⋍","\\backsimeq",!0),p(y,M,w,"⫅","\\subseteqq",!0),p(y,M,w,"⋐","\\Subset",!0),p(y,M,w,"⊏","\\sqsubset",!0),p(y,M,w,"≼","\\preccurlyeq",!0),p(y,M,w,"⋞","\\curlyeqprec",!0),p(y,M,w,"≾","\\precsim",!0),p(y,M,w,"⪷","\\precapprox",!0),p(y,M,w,"⊲","\\vartriangleleft"),p(y,M,w,"⊴","\\trianglelefteq"),p(y,M,w,"⊨","\\vDash",!0),p(y,M,w,"⊪","\\Vvdash",!0),p(y,M,w,"⌣","\\smallsmile"),p(y,M,w,"⌢","\\smallfrown"),p(y,M,w,"≏","\\bumpeq",!0),p(y,M,w,"≎","\\Bumpeq",!0),p(y,M,w,"≧","\\geqq",!0),p(y,M,w,"⩾","\\geqslant",!0),p(y,M,w,"⪖","\\eqslantgtr",!0),p(y,M,w,"≳","\\gtrsim",!0),p(y,M,w,"⪆","\\gtrapprox",!0),p(y,M,$,"⋗","\\gtrdot"),p(y,M,w,"⋙","\\ggg",!0),p(y,M,w,"≷","\\gtrless",!0),p(y,M,w,"⋛","\\gtreqless",!0),p(y,M,w,"⪌","\\gtreqqless",!0),p(y,M,w,"≖","\\eqcirc",!0),p(y,M,w,"≗","\\circeq",!0),p(y,M,w,"≜","\\triangleq",!0),p(y,M,w,"∼","\\thicksim"),p(y,M,w,"≈","\\thickapprox"),p(y,M,w,"⫆","\\supseteqq",!0),p(y,M,w,"⋑","\\Supset",!0),p(y,M,w,"⊐","\\sqsupset",!0),p(y,M,w,"≽","\\succcurlyeq",!0),p(y,M,w,"⋟","\\curlyeqsucc",!0),p(y,M,w,"≿","\\succsim",!0),p(y,M,w,"⪸","\\succapprox",!0),p(y,M,w,"⊳","\\vartriangleright"),p(y,M,w,"⊵","\\trianglerighteq"),p(y,M,w,"⊩","\\Vdash",!0),p(y,M,w,"∣","\\shortmid"),p(y,M,w,"∥","\\shortparallel"),p(y,M,w,"≬","\\between",!0),p(y,M,w,"⋔","\\pitchfork",!0),p(y,M,w,"∝","\\varpropto"),p(y,M,w,"◀","\\blacktriangleleft"),p(y,M,w,"∴","\\therefore",!0),p(y,M,w,"∍","\\backepsilon"),p(y,M,w,"▶","\\blacktriangleright"),p(y,M,w,"∵","\\because",!0),p(y,M,w,"⋘","\\llless"),p(y,M,w,"⋙","\\gggtr"),p(y,M,$,"⊲","\\lhd"),p(y,M,$,"⊳","\\rhd"),p(y,M,w,"≂","\\eqsim",!0),p(y,f,w,"⋈","\\Join"),p(y,M,w,"≑","\\Doteq",!0),p(y,M,$,"∔","\\dotplus",!0),p(y,M,$,"∖","\\smallsetminus"),p(y,M,$,"⋒","\\Cap",!0),p(y,M,$,"⋓","\\Cup",!0),p(y,M,$,"⩞","\\doublebarwedge",!0),p(y,M,$,"⊟","\\boxminus",!0),p(y,M,$,"⊞","\\boxplus",!0),p(y,M,$,"⋇","\\divideontimes",!0),p(y,M,$,"⋉","\\ltimes",!0),p(y,M,$,"⋊","\\rtimes",!0),p(y,M,$,"⋋","\\leftthreetimes",!0),p(y,M,$,"⋌","\\rightthreetimes",!0),p(y,M,$,"⋏","\\curlywedge",!0),p(y,M,$,"⋎","\\curlyvee",!0),p(y,M,$,"⊝","\\circleddash",!0),p(y,M,$,"⊛","\\circledast",!0),p(y,M,$,"⋅","\\centerdot"),p(y,M,$,"⊺","\\intercal",!0),p(y,M,$,"⋒","\\doublecap"),p(y,M,$,"⋓","\\doublecup"),p(y,M,$,"⊠","\\boxtimes",!0),p(y,M,w,"⇢","\\dashrightarrow",!0),p(y,M,w,"⇠","\\dashleftarrow",!0),p(y,M,w,"⇇","\\leftleftarrows",!0),p(y,M,w,"⇆","\\leftrightarrows",!0),p(y,M,w,"⇚","\\Lleftarrow",!0),p(y,M,w,"↞","\\twoheadleftarrow",!0),p(y,M,w,"↢","\\leftarrowtail",!0),p(y,M,w,"↫","\\looparrowleft",!0),p(y,M,w,"⇋","\\leftrightharpoons",!0),p(y,M,w,"↶","\\curvearrowleft",!0),p(y,M,w,"↺","\\circlearrowleft",!0),p(y,M,w,"↰","\\Lsh",!0),p(y,M,w,"⇈","\\upuparrows",!0),p(y,M,w,"↿","\\upharpoonleft",!0),p(y,M,w,"⇃","\\downharpoonleft",!0),p(y,f,w,"⊶","\\origof",!0),p(y,f,w,"⊷","\\imageof",!0),p(y,M,w,"⊸","\\multimap",!0),p(y,M,w,"↭","\\leftrightsquigarrow",!0),p(y,M,w,"⇉","\\rightrightarrows",!0),p(y,M,w,"⇄","\\rightleftarrows",!0),p(y,M,w,"↠","\\twoheadrightarrow",!0),p(y,M,w,"↣","\\rightarrowtail",!0),p(y,M,w,"↬","\\looparrowright",!0),p(y,M,w,"↷","\\curvearrowright",!0),p(y,M,w,"↻","\\circlearrowright",!0),p(y,M,w,"↱","\\Rsh",!0),p(y,M,w,"⇊","\\downdownarrows",!0),p(y,M,w,"↾","\\upharpoonright",!0),p(y,M,w,"⇂","\\downharpoonright",!0),p(y,M,w,"⇝","\\rightsquigarrow",!0),p(y,M,w,"⇝","\\leadsto"),p(y,M,w,"⇛","\\Rrightarrow",!0),p(y,M,w,"↾","\\restriction"),p(y,f,z,"‘","`"),p(y,f,z,"$","\\$"),p(E,f,z,"$","\\$"),p(E,f,z,"$","\\textdollar"),p(y,f,z,"%","\\%"),p(E,f,z,"%","\\%"),p(y,f,z,"_","\\_"),p(E,f,z,"_","\\_"),p(E,f,z,"_","\\textunderscore"),p(y,f,z,"∠","\\angle",!0),p(y,f,z,"∞","\\infty",!0),p(y,f,z,"′","\\prime"),p(y,f,z,"△","\\triangle"),p(y,f,z,"Γ","\\Gamma",!0),p(y,f,z,"Δ","\\Delta",!0),p(y,f,z,"Θ","\\Theta",!0),p(y,f,z,"Λ","\\Lambda",!0),p(y,f,z,"Ξ","\\Xi",!0),p(y,f,z,"Π","\\Pi",!0),p(y,f,z,"Σ","\\Sigma",!0),p(y,f,z,"Υ","\\Upsilon",!0),p(y,f,z,"Φ","\\Phi",!0),p(y,f,z,"Ψ","\\Psi",!0),p(y,f,z,"Ω","\\Omega",!0),p(y,f,z,"A","Α"),p(y,f,z,"B","Β"),p(y,f,z,"E","Ε"),p(y,f,z,"Z","Ζ"),p(y,f,z,"H","Η"),p(y,f,z,"I","Ι"),p(y,f,z,"K","Κ"),p(y,f,z,"M","Μ"),p(y,f,z,"N","Ν"),p(y,f,z,"O","Ο"),p(y,f,z,"P","Ρ"),p(y,f,z,"T","Τ"),p(y,f,z,"X","Χ"),p(y,f,z,"¬","\\neg",!0),p(y,f,z,"¬","\\lnot"),p(y,f,z,"⊤","\\top"),p(y,f,z,"⊥","\\bot"),p(y,f,z,"∅","\\emptyset"),p(y,M,z,"∅","\\varnothing"),p(y,f,ie,"α","\\alpha",!0),p(y,f,ie,"β","\\beta",!0),p(y,f,ie,"γ","\\gamma",!0),p(y,f,ie,"δ","\\delta",!0),p(y,f,ie,"ϵ","\\epsilon",!0),p(y,f,ie,"ζ","\\zeta",!0),p(y,f,ie,"η","\\eta",!0),p(y,f,ie,"θ","\\theta",!0),p(y,f,ie,"ι","\\iota",!0),p(y,f,ie,"κ","\\kappa",!0),p(y,f,ie,"λ","\\lambda",!0),p(y,f,ie,"μ","\\mu",!0),p(y,f,ie,"ν","\\nu",!0),p(y,f,ie,"ξ","\\xi",!0),p(y,f,ie,"ο","\\omicron",!0),p(y,f,ie,"π","\\pi",!0),p(y,f,ie,"ρ","\\rho",!0),p(y,f,ie,"σ","\\sigma",!0),p(y,f,ie,"τ","\\tau",!0),p(y,f,ie,"υ","\\upsilon",!0),p(y,f,ie,"ϕ","\\phi",!0),p(y,f,ie,"χ","\\chi",!0),p(y,f,ie,"ψ","\\psi",!0),p(y,f,ie,"ω","\\omega",!0),p(y,f,ie,"ε","\\varepsilon",!0),p(y,f,ie,"ϑ","\\vartheta",!0),p(y,f,ie,"ϖ","\\varpi",!0),p(y,f,ie,"ϱ","\\varrho",!0),p(y,f,ie,"ς","\\varsigma",!0),p(y,f,ie,"φ","\\varphi",!0),p(y,f,$,"∗","*",!0),p(y,f,$,"+","+"),p(y,f,$,"−","-",!0),p(y,f,$,"⋅","\\cdot",!0),p(y,f,$,"∘","\\circ",!0),p(y,f,$,"÷","\\div",!0),p(y,f,$,"±","\\pm",!0),p(y,f,$,"×","\\times",!0),p(y,f,$,"∩","\\cap",!0),p(y,f,$,"∪","\\cup",!0),p(y,f,$,"∖","\\setminus",!0),p(y,f,$,"∧","\\land"),p(y,f,$,"∨","\\lor"),p(y,f,$,"∧","\\wedge",!0),p(y,f,$,"∨","\\vee",!0),p(y,f,z,"√","\\surd"),p(y,f,ft,"⟨","\\langle",!0),p(y,f,ft,"∣","\\lvert"),p(y,f,ft,"∥","\\lVert"),p(y,f,tt,"?","?"),p(y,f,tt,"!","!"),p(y,f,tt,"⟩","\\rangle",!0),p(y,f,tt,"∣","\\rvert"),p(y,f,tt,"∥","\\rVert"),p(y,f,w,"=","="),p(y,f,w,":",":"),p(y,f,w,"≈","\\approx",!0),p(y,f,w,"≅","\\cong",!0),p(y,f,w,"≥","\\ge"),p(y,f,w,"≥","\\geq",!0),p(y,f,w,"←","\\gets"),p(y,f,w,">","\\gt",!0),p(y,f,w,"∈","\\in",!0),p(y,f,w,"","\\@not"),p(y,f,w,"⊂","\\subset",!0),p(y,f,w,"⊃","\\supset",!0),p(y,f,w,"⊆","\\subseteq",!0),p(y,f,w,"⊇","\\supseteq",!0),p(y,M,w,"⊈","\\nsubseteq",!0),p(y,M,w,"⊉","\\nsupseteq",!0),p(y,f,w,"⊨","\\models"),p(y,f,w,"←","\\leftarrow",!0),p(y,f,w,"≤","\\le"),p(y,f,w,"≤","\\leq",!0),p(y,f,w,"<","\\lt",!0),p(y,f,w,"→","\\rightarrow",!0),p(y,f,w,"→","\\to"),p(y,M,w,"≱","\\ngeq",!0),p(y,M,w,"≰","\\nleq",!0),p(y,f,Kt," ","\\ "),p(y,f,Kt," ","\\space"),p(y,f,Kt," ","\\nobreakspace"),p(E,f,Kt," ","\\ "),p(E,f,Kt," "," "),p(E,f,Kt," ","\\space"),p(E,f,Kt," ","\\nobreakspace"),p(y,f,Kt,null,"\\nobreak"),p(y,f,Kt,null,"\\allowbreak"),p(y,f,kx,",",","),p(y,f,kx,";",";"),p(y,M,$,"⊼","\\barwedge",!0),p(y,M,$,"⊻","\\veebar",!0),p(y,f,$,"⊙","\\odot",!0),p(y,f,$,"⊕","\\oplus",!0),p(y,f,$,"⊗","\\otimes",!0),p(y,f,z,"∂","\\partial",!0),p(y,f,$,"⊘","\\oslash",!0),p(y,M,$,"⊚","\\circledcirc",!0),p(y,M,$,"⊡","\\boxdot",!0),p(y,f,$,"△","\\bigtriangleup"),p(y,f,$,"▽","\\bigtriangledown"),p(y,f,$,"†","\\dagger"),p(y,f,$,"⋄","\\diamond"),p(y,f,$,"⋆","\\star"),p(y,f,$,"◃","\\triangleleft"),p(y,f,$,"▹","\\triangleright"),p(y,f,ft,"{","\\{"),p(E,f,z,"{","\\{"),p(E,f,z,"{","\\textbraceleft"),p(y,f,tt,"}","\\}"),p(E,f,z,"}","\\}"),p(E,f,z,"}","\\textbraceright"),p(y,f,ft,"{","\\lbrace"),p(y,f,tt,"}","\\rbrace"),p(y,f,ft,"[","\\lbrack",!0),p(E,f,z,"[","\\lbrack",!0),p(y,f,tt,"]","\\rbrack",!0),p(E,f,z,"]","\\rbrack",!0),p(y,f,ft,"(","\\lparen",!0),p(y,f,tt,")","\\rparen",!0),p(E,f,z,"<","\\textless",!0),p(E,f,z,">","\\textgreater",!0),p(y,f,ft,"⌊","\\lfloor",!0),p(y,f,tt,"⌋","\\rfloor",!0),p(y,f,ft,"⌈","\\lceil",!0),p(y,f,tt,"⌉","\\rceil",!0),p(y,f,z,"\\","\\backslash"),p(y,f,z,"∣","|"),p(y,f,z,"∣","\\vert"),p(E,f,z,"|","\\textbar",!0),p(y,f,z,"∥","\\|"),p(y,f,z,"∥","\\Vert"),p(E,f,z,"∥","\\textbardbl"),p(E,f,z,"~","\\textasciitilde"),p(E,f,z,"\\","\\textbackslash"),p(E,f,z,"^","\\textasciicircum"),p(y,f,w,"↑","\\uparrow",!0),p(y,f,w,"⇑","\\Uparrow",!0),p(y,f,w,"↓","\\downarrow",!0),p(y,f,w,"⇓","\\Downarrow",!0),p(y,f,w,"↕","\\updownarrow",!0),p(y,f,w,"⇕","\\Updownarrow",!0),p(y,f,Ve,"∐","\\coprod"),p(y,f,Ve,"⋁","\\bigvee"),p(y,f,Ve,"⋀","\\bigwedge"),p(y,f,Ve,"⨄","\\biguplus"),p(y,f,Ve,"⋂","\\bigcap"),p(y,f,Ve,"⋃","\\bigcup"),p(y,f,Ve,"∫","\\int"),p(y,f,Ve,"∫","\\intop"),p(y,f,Ve,"∬","\\iint"),p(y,f,Ve,"∭","\\iiint"),p(y,f,Ve,"∏","\\prod"),p(y,f,Ve,"∑","\\sum"),p(y,f,Ve,"⨂","\\bigotimes"),p(y,f,Ve,"⨁","\\bigoplus"),p(y,f,Ve,"⨀","\\bigodot"),p(y,f,Ve,"∮","\\oint"),p(y,f,Ve,"∯","\\oiint"),p(y,f,Ve,"∰","\\oiiint"),p(y,f,Ve,"⨆","\\bigsqcup"),p(y,f,Ve,"∫","\\smallint"),p(E,f,nn,"…","\\textellipsis"),p(y,f,nn,"…","\\mathellipsis"),p(E,f,nn,"…","\\ldots",!0),p(y,f,nn,"…","\\ldots",!0),p(y,f,nn,"⋯","\\@cdots",!0),p(y,f,nn,"⋱","\\ddots",!0),p(y,f,z,"⋮","\\varvdots"),p(E,f,z,"⋮","\\varvdots"),p(y,f,qe,"ˊ","\\acute"),p(y,f,qe,"ˋ","\\grave"),p(y,f,qe,"¨","\\ddot"),p(y,f,qe,"~","\\tilde"),p(y,f,qe,"ˉ","\\bar"),p(y,f,qe,"˘","\\breve"),p(y,f,qe,"ˇ","\\check"),p(y,f,qe,"^","\\hat"),p(y,f,qe,"⃗","\\vec"),p(y,f,qe,"˙","\\dot"),p(y,f,qe,"˚","\\mathring"),p(y,f,ie,"","\\@imath"),p(y,f,ie,"","\\@jmath"),p(y,f,z,"ı","ı"),p(y,f,z,"ȷ","ȷ"),p(E,f,z,"ı","\\i",!0),p(E,f,z,"ȷ","\\j",!0),p(E,f,z,"ß","\\ss",!0),p(E,f,z,"æ","\\ae",!0),p(E,f,z,"œ","\\oe",!0),p(E,f,z,"ø","\\o",!0),p(E,f,z,"Æ","\\AE",!0),p(E,f,z,"Œ","\\OE",!0),p(E,f,z,"Ø","\\O",!0),p(E,f,qe,"ˊ","\\'"),p(E,f,qe,"ˋ","\\`"),p(E,f,qe,"ˆ","\\^"),p(E,f,qe,"˜","\\~"),p(E,f,qe,"ˉ","\\="),p(E,f,qe,"˘","\\u"),p(E,f,qe,"˙","\\."),p(E,f,qe,"¸","\\c"),p(E,f,qe,"˚","\\r"),p(E,f,qe,"ˇ","\\v"),p(E,f,qe,"¨",'\\"'),p(E,f,qe,"˝","\\H"),p(E,f,qe,"◯","\\textcircled");var XL={"--":!0,"---":!0,"``":!0,"''":!0};p(E,f,z,"–","--",!0),p(E,f,z,"–","\\textendash"),p(E,f,z,"—","---",!0),p(E,f,z,"—","\\textemdash"),p(E,f,z,"‘","`",!0),p(E,f,z,"‘","\\textquoteleft"),p(E,f,z,"’","'",!0),p(E,f,z,"’","\\textquoteright"),p(E,f,z,"“","``",!0),p(E,f,z,"“","\\textquotedblleft"),p(E,f,z,"”","''",!0),p(E,f,z,"”","\\textquotedblright"),p(y,f,z,"°","\\degree",!0),p(E,f,z,"°","\\degree"),p(E,f,z,"°","\\textdegree",!0),p(y,f,z,"£","\\pounds"),p(y,f,z,"£","\\mathsterling",!0),p(E,f,z,"£","\\pounds"),p(E,f,z,"£","\\textsterling",!0),p(y,M,z,"✠","\\maltese"),p(E,M,z,"✠","\\maltese");for(var KL='0123456789/@."',GM=0;GM<KL.length;GM++){var YL=KL.charAt(GM);p(y,f,z,YL,YL)}for(var QL='0123456789!@*()-=+";:?/.,',ZM=0;ZM<QL.length;ZM++){var JL=QL.charAt(ZM);p(E,f,z,JL,JL)}for(var mx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",WM=0;WM<mx.length;WM++){var fx=mx.charAt(WM);p(y,f,ie,fx,fx),p(E,f,z,fx,fx)}p(y,M,z,"C","ℂ"),p(E,M,z,"C","ℂ"),p(y,M,z,"H","ℍ"),p(E,M,z,"H","ℍ"),p(y,M,z,"N","ℕ"),p(E,M,z,"N","ℕ"),p(y,M,z,"P","ℙ"),p(E,M,z,"P","ℙ"),p(y,M,z,"Q","ℚ"),p(E,M,z,"Q","ℚ"),p(y,M,z,"R","ℝ"),p(E,M,z,"R","ℝ"),p(y,M,z,"Z","ℤ"),p(E,M,z,"Z","ℤ"),p(y,f,ie,"h","ℎ"),p(E,f,ie,"h","ℎ");for(var le="",nt=0;nt<mx.length;nt++){var Fe=mx.charAt(nt);le=String.fromCharCode(55349,56320+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56372+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56424+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56580+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56684+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56736+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56788+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56840+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56944+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),nt<26&&(le=String.fromCharCode(55349,56632+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56476+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le))}le="𝕜",p(y,f,ie,"k",le),p(E,f,z,"k",le);for(var F0=0;F0<10;F0++){var s1=F0.toString();le=String.fromCharCode(55349,57294+F0),p(y,f,ie,s1,le),p(E,f,z,s1,le),le=String.fromCharCode(55349,57314+F0),p(y,f,ie,s1,le),p(E,f,z,s1,le),le=String.fromCharCode(55349,57324+F0),p(y,f,ie,s1,le),p(E,f,z,s1,le),le=String.fromCharCode(55349,57334+F0),p(y,f,ie,s1,le),p(E,f,z,s1,le)}for(var XM="ÐÞþ",KM=0;KM<XM.length;KM++){var gx=XM.charAt(KM);p(y,f,ie,gx,gx),p(E,f,z,gx,gx)}var vx=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],$L=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],kB=function(t,n){var r=t.charCodeAt(0),a=t.charCodeAt(1),o=(r-55296)*1024+(a-56320)+65536,l=n==="math"?0:1;if(119808<=o&&o<120484){var c=Math.floor((o-119808)/26);return[vx[c][2],vx[c][l]]}else if(120782<=o&&o<=120831){var s=Math.floor((o-120782)/10);return[$L[s][2],$L[s][l]]}else{if(o===120485||o===120486)return[vx[0][2],vx[0][l]];if(120486<o&&o<120782)return["",""];throw new N("Unsupported character: "+t)}},xx=function(t,n,r){return ze[r][t]&&ze[r][t].replace&&(t=ze[r][t].replace),{value:t,metrics:OM(t,n,r)}},Tt=function(t,n,r,a,o){var l=xx(t,n,r),c=l.metrics;t=l.value;var s;if(c){var h=c.italic;(r==="text"||a&&a.font==="mathit")&&(h=0),s=new St(t,c.height,c.depth,h,c.skew,c.width,o)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),s=new St(t,0,0,0,0,0,o);if(a){s.maxFontSize=a.sizeMultiplier,a.style.isTight()&&s.classes.push("mtight");var u=a.getColor();u&&(s.style.color=u)}return s},mB=function(t,n,r,a){return a===void 0&&(a=[]),r.font==="boldsymbol"&&xx(t,"Main-Bold",n).metrics?Tt(t,"Main-Bold",n,r,a.concat(["mathbf"])):t==="\\"||ze[n][t].font==="main"?Tt(t,"Main-Regular",n,r,a):Tt(t,"AMS-Regular",n,r,a.concat(["amsrm"]))},fB=function(t,n,r,a,o){return o!=="textord"&&xx(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},gB=function(t,n,r){var a=t.mode,o=t.text,l=["mord"],c=a==="math"||a==="text"&&n.font,s=c?n.font:n.fontFamily,h="",u="";if(o.charCodeAt(0)===55349&&([h,u]=kB(o,a)),h.length>0)return Tt(o,h,a,n,l.concat(u));if(s){var d,m;if(s==="boldsymbol"){var k=fB(o,a,n,l,r);d=k.fontName,m=[k.fontClass]}else c?(d=nS[s].fontName,m=[s]):(d=Mx(s,n.fontWeight,n.fontShape),m=[s,n.fontWeight,n.fontShape]);if(xx(o,d,a).metrics)return Tt(o,d,a,n,l.concat(m));if(XL.hasOwnProperty(o)&&d.slice(0,10)==="Typewriter"){for(var g=[],x=0;x<o.length;x++)g.push(Tt(o[x],d,a,n,l.concat(m)));return tS(g)}}if(r==="mathord")return Tt(o,"Math-Italic",a,n,l.concat(["mathnormal"]));if(r==="textord"){var A=ze[a][o]&&ze[a][o].font;if(A==="ams"){var b=Mx("amsrm",n.fontWeight,n.fontShape);return Tt(o,b,a,n,l.concat("amsrm",n.fontWeight,n.fontShape))}else if(A==="main"||!A){var C=Mx("textrm",n.fontWeight,n.fontShape);return Tt(o,C,a,n,l.concat(n.fontWeight,n.fontShape))}else{var q=Mx(A,n.fontWeight,n.fontShape);return Tt(o,q,a,n,l.concat(q,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},vB=(e,t)=>{if(l1(e.classes)!==l1(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},xB=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof St&&r instanceof St&&vB(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},YM=function(t){for(var n=0,r=0,a=0,o=0;o<t.children.length;o++){var l=t.children[o];l.height>n&&(n=l.height),l.depth>r&&(r=l.depth),l.maxFontSize>a&&(a=l.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=a},st=function(t,n,r,a){var o=new Dn(t,n,r,a);return YM(o),o},eS=(e,t,n,r)=>new Dn(e,t,n,r),MB=function(t,n,r){var a=st([t],[],n);return a.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),a.style.borderBottomWidth=W(a.height),a.maxFontSize=1,a},wB=function(t,n,r,a){var o=new UM(t,n,r,a);return YM(o),o},tS=function(t){var n=new Fn(t);return YM(n),n},bB=function(t,n){return t instanceof Fn?st([],[t],n):t},LB=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],a=-n[0].shift-n[0].elem.depth,o=a,l=1;l<n.length;l++){var c=-n[l].shift-o-n[l].elem.depth,s=c-(n[l-1].elem.height+n[l-1].elem.depth);o=o+c,r.push({type:"kern",size:s}),r.push(n[l])}return{children:r,depth:a}}var h;if(t.positionType==="top"){for(var u=t.positionData,d=0;d<t.children.length;d++){var m=t.children[d];u-=m.type==="kern"?m.size:m.elem.height+m.elem.depth}h=u}else if(t.positionType==="bottom")h=-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")h=-k.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")h=-k.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:h}},SB=function(t,n){for(var{children:r,depth:a}=LB(t),o=0,l=0;l<r.length;l++){var c=r[l];if(c.type==="elem"){var s=c.elem;o=Math.max(o,s.maxFontSize,s.height)}}o+=2;var h=st(["pstrut"],[]);h.style.height=W(o);for(var u=[],d=a,m=a,k=a,g=0;g<r.length;g++){var x=r[g];if(x.type==="kern")k+=x.size;else{var A=x.elem,b=x.wrapperClasses||[],C=x.wrapperStyle||{},q=st(b,[h,A],void 0,C);q.style.top=W(-o-k-A.depth),x.marginLeft&&(q.style.marginLeft=x.marginLeft),x.marginRight&&(q.style.marginRight=x.marginRight),u.push(q),k+=A.height+A.depth}d=Math.min(d,k),m=Math.max(m,k)}var j=st(["vlist"],u);j.style.height=W(m);var F;if(d<0){var T=st([],[]),R=st(["vlist"],[T]);R.style.height=W(-d);var K=st(["vlist-s"],[new St("")]);F=[st(["vlist-r"],[j,K]),st(["vlist-r"],[R])]}else F=[st(["vlist-r"],[j])];var Z=st(["vlist-t"],F);return F.length===2&&Z.classes.push("vlist-t2"),Z.height=m,Z.depth=-d,Z},CB=(e,t)=>{var n=st(["mspace"],[],t),r=Be(e,t);return n.style.marginRight=W(r),n},Mx=function(t,n,r){var a="";switch(t){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=t}var o;return n==="textbf"&&r==="textit"?o="BoldItalic":n==="textbf"?o="Bold":n==="textit"?o="Italic":o="Regular",a+"-"+o},nS={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"}},rS={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},IB=function(t,n){var[r,a,o]=rS[t],l=new c1(r),c=new Xt([l],{width:W(a),height:W(o),style:"width:"+W(a),viewBox:"0 0 "+1e3*a+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),s=eS(["overlay"],[c],n);return s.height=o,s.style.height=W(o),s.style.width=W(a),s},H={fontMap:nS,makeSymbol:Tt,mathsym:mB,makeSpan:st,makeSvgSpan:eS,makeLineSpan:MB,makeAnchor:wB,makeFragment:tS,wrapFragment:bB,makeVList:SB,makeOrd:gB,makeGlue:CB,staticSvg:IB,svgData:rS,tryCombineChars:xB},Pe={number:3,unit:"mu"},D0={number:4,unit:"mu"},Yt={number:5,unit:"mu"},AB={mord:{mop:Pe,mbin:D0,mrel:Yt,minner:Pe},mop:{mord:Pe,mop:Pe,mrel:Yt,minner:Pe},mbin:{mord:D0,mop:D0,mopen:D0,minner:D0},mrel:{mord:Yt,mop:Yt,mopen:Yt,minner:Yt},mopen:{},mclose:{mop:Pe,mbin:D0,mrel:Yt,minner:Pe},mpunct:{mord:Pe,mop:Pe,mrel:Yt,mopen:Pe,mclose:Pe,mpunct:Pe,minner:Pe},minner:{mord:Pe,mop:Pe,mbin:D0,mrel:Yt,mopen:Pe,mpunct:Pe,minner:Pe}},zB={mord:{mop:Pe},mop:{mord:Pe,mop:Pe},mbin:{},mrel:{},mopen:{},mclose:{mop:Pe},mpunct:{},minner:{mop:Pe}},aS={},wx={},bx={};function J(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:o,mathmlBuilder:l}=e,c={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:a},s=0;s<n.length;++s)aS[n[s]]=c;t&&(o&&(wx[t]=o),l&&(bx[t]=l))}function R0(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;J({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var Lx=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Re=function(t){return t.type==="ordgroup"?t.body:[t]},Qt=H.makeSpan,TB=["leftmost","mbin","mopen","mrel","mop","mpunct"],qB=["rightmost","mrel","mclose","mpunct"],HB={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT},BB={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},_e=function(t,n,r,a){a===void 0&&(a=[null,null]);for(var o=[],l=0;l<t.length;l++){var c=ve(t[l],n);if(c instanceof Fn){var s=c.children;o.push(...s)}else o.push(c)}if(H.tryCombineChars(o),!r)return o;var h=n;if(t.length===1){var u=t[0];u.type==="sizing"?h=n.havingSize(u.size):u.type==="styling"&&(h=n.havingStyle(HB[u.style]))}var d=Qt([a[0]||"leftmost"],[],n),m=Qt([a[1]||"rightmost"],[],n),k=r==="root";return iS(o,(g,x)=>{var A=x.classes[0],b=g.classes[0];A==="mbin"&&re.contains(qB,b)?x.classes[0]="mord":b==="mbin"&&re.contains(TB,A)&&(g.classes[0]="mord")},{node:d},m,k),iS(o,(g,x)=>{var A=QM(x),b=QM(g),C=A&&b?g.hasClass("mtight")?zB[A][b]:AB[A][b]:null;if(C)return H.makeGlue(C,h)},{node:d},m,k),o},iS=function e(t,n,r,a,o){a&&t.push(a);for(var l=0;l<t.length;l++){var c=t[l],s=oS(c);if(s){e(s.children,n,r,null,o);continue}var h=!c.hasClass("mspace");if(h){var u=n(c,r.node);u&&(r.insertAfter?r.insertAfter(u):(t.unshift(u),l++))}h?r.node=c:o&&c.hasClass("newline")&&(r.node=Qt(["leftmost"])),r.insertAfter=(d=>m=>{t.splice(d+1,0,m),l++})(l)}a&&t.pop()},oS=function(t){return t instanceof Fn||t instanceof UM||t instanceof Dn&&t.hasClass("enclosing")?t:null},PB=function e(t,n){var r=oS(t);if(r){var a=r.children;if(a.length){if(n==="right")return e(a[a.length-1],"right");if(n==="left")return e(a[0],"left")}}return t},QM=function(t,n){return t?(n&&(t=PB(t,n)),BB[t.classes[0]]||null):null},Rn=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Qt(n.concat(r))},ve=function(t,n,r){if(!t)return Qt();if(wx[t.type]){var a=wx[t.type](t,n);if(r&&n.size!==r.size){a=Qt(n.sizingClasses(r),[a],n);var o=n.sizeMultiplier/r.sizeMultiplier;a.height*=o,a.depth*=o}return a}else throw new N("Got group of unknown type: '"+t.type+"'")};function Sx(e,t){var n=Qt(["base"],e,t),r=Qt(["strut"]);return r.style.height=W(n.height+n.depth),n.depth&&(r.style.verticalAlign=W(-n.depth)),n.children.unshift(r),n}function JM(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=_e(e,t,"root"),a;r.length===2&&r[1].hasClass("tag")&&(a=r.pop());for(var o=[],l=[],c=0;c<r.length;c++)if(l.push(r[c]),r[c].hasClass("mbin")||r[c].hasClass("mrel")||r[c].hasClass("allowbreak")){for(var s=!1;c<r.length-1&&r[c+1].hasClass("mspace")&&!r[c+1].hasClass("newline");)c++,l.push(r[c]),r[c].hasClass("nobreak")&&(s=!0);s||(o.push(Sx(l,t)),l=[])}else r[c].hasClass("newline")&&(l.pop(),l.length>0&&(o.push(Sx(l,t)),l=[]),o.push(r[c]));l.length>0&&o.push(Sx(l,t));var h;n?(h=Sx(_e(n,t,!0)),h.classes=["tag"],o.push(h)):a&&o.push(a);var u=Qt(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),h){var d=h.children[0];d.style.height=W(u.height+u.depth),u.depth&&(d.style.verticalAlign=W(-u.depth))}return u}function lS(e){return new Fn(e)}class gt{constructor(t,n,r){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=r||[]}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=l1(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof jt&&this.children[r+1]instanceof jt){for(var a=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof jt;)a+=this.children[++r].toText();t.appendChild(new jt(a).toNode())}else t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=re.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+re.escape(l1(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class jt{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return re.escape(this.toText())}toText(){return this.text}}class FB{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",W(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+W(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var O={MathNode:gt,TextNode:jt,SpaceNode:FB,newDocumentFragment:lS},Ct=function(t,n,r){return ze[n][t]&&ze[n][t].replace&&t.charCodeAt(0)!==55349&&!(XL.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=ze[n][t].replace),new O.TextNode(t)},$M=function(t){return t.length===1?t[0]:new O.MathNode("mrow",t)},ew=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var a=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var o=t.text;if(re.contains(["\\imath","\\jmath"],o))return null;ze[a][o]&&ze[a][o].replace&&(o=ze[a][o].replace);var l=H.fontMap[r].fontName;return OM(o,l,a)?H.fontMap[r].variant:null};function tw(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof jt&&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 jt&&n.text===","}else return!1}var ht=function(t,n,r){if(t.length===1){var a=Se(t[0],n);return r&&a instanceof gt&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var o=[],l,c=0;c<t.length;c++){var s=Se(t[c],n);if(s instanceof gt&&l instanceof gt){if(s.type==="mtext"&&l.type==="mtext"&&s.getAttribute("mathvariant")===l.getAttribute("mathvariant")){l.children.push(...s.children);continue}else if(s.type==="mn"&&l.type==="mn"){l.children.push(...s.children);continue}else if(tw(s)&&l.type==="mn"){l.children.push(...s.children);continue}else if(s.type==="mn"&&tw(l))s.children=[...l.children,...s.children],o.pop();else if((s.type==="msup"||s.type==="msub")&&s.children.length>=1&&(l.type==="mn"||tw(l))){var h=s.children[0];h instanceof gt&&h.type==="mn"&&(h.children=[...l.children,...h.children],o.pop())}else if(l.type==="mi"&&l.children.length===1){var u=l.children[0];if(u instanceof jt&&u.text==="̸"&&(s.type==="mo"||s.type==="mi"||s.type==="mn")){var d=s.children[0];d instanceof jt&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),o.pop())}}}o.push(s),l=s}return o},h1=function(t,n,r){return $M(ht(t,n,r))},Se=function(t,n){if(!t)return new O.MathNode("mrow");if(bx[t.type]){var r=bx[t.type](t,n);return r}else throw new N("Got group of unknown type: '"+t.type+"'")};function cS(e,t,n,r,a){var o=ht(e,n),l;o.length===1&&o[0]instanceof gt&&re.contains(["mrow","mtable"],o[0].type)?l=o[0]:l=new O.MathNode("mrow",o);var c=new O.MathNode("annotation",[new O.TextNode(t)]);c.setAttribute("encoding","application/x-tex");var s=new O.MathNode("semantics",[l,c]),h=new O.MathNode("math",[s]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&h.setAttribute("display","block");var u=a?"katex":"katex-mathml";return H.makeSpan([u],[h])}var sS=function(t){return new Wt({style:t.displayMode?ae.DISPLAY:ae.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},hS=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=H.makeSpan(r,[t])}return t},DB=function(t,n,r){var a=sS(r),o;if(r.output==="mathml")return cS(t,n,a,r.displayMode,!0);if(r.output==="html"){var l=JM(t,a);o=H.makeSpan(["katex"],[l])}else{var c=cS(t,n,a,r.displayMode,!1),s=JM(t,a);o=H.makeSpan(["katex"],[c,s])}return hS(o,r)},RB=function(t,n,r){var a=sS(r),o=JM(t,a),l=H.makeSpan(["katex"],[o]);return hS(l,r)},EB={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",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":"="},jB=function(t){var n=new O.MathNode("mo",[new O.TextNode(EB[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},OB={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],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]},VB=function(t){return t.type==="ordgroup"?t.body.length:1},NB=function(t,n){function r(){var c=4e5,s=t.label.slice(1);if(re.contains(["widehat","widecheck","widetilde","utilde"],s)){var h=t,u=VB(h.base),d,m,k;if(u>5)s==="widehat"||s==="widecheck"?(d=420,c=2364,k=.42,m=s+"4"):(d=312,c=2340,k=.34,m="tilde4");else{var g=[1,1,2,2,3,3][u];s==="widehat"||s==="widecheck"?(c=[0,1062,2364,2364,2364][g],d=[0,239,300,360,420][g],k=[0,.24,.3,.3,.36,.42][g],m=s+g):(c=[0,600,1033,2339,2340][g],d=[0,260,286,306,312][g],k=[0,.26,.286,.3,.306,.34][g],m="tilde"+g)}var x=new c1(m),A=new Xt([x],{width:"100%",height:W(k),viewBox:"0 0 "+c+" "+d,preserveAspectRatio:"none"});return{span:H.makeSvgSpan([],[A],n),minWidth:0,height:k}}else{var b=[],C=OB[s],[q,j,F]=C,T=F/1e3,R=q.length,K,Z;if(R===1){var B=C[3];K=["hide-tail"],Z=[B]}else if(R===2)K=["halfarrow-left","halfarrow-right"],Z=["xMinYMin","xMaxYMin"];else if(R===3)K=["brace-left","brace-center","brace-right"],Z=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
7826
|
-
`+R+" children.");for(var G=0;G<R;G++){var D=new c1(q[G]),oe=new Xt([D],{width:"400em",height:W(T),viewBox:"0 0 "+c+" "+F,preserveAspectRatio:Z[G]+" slice"}),ne=H.makeSvgSpan([K[G]],[oe],n);if(R===1)return{span:ne,minWidth:j,height:T};ne.style.height=W(T),b.push(ne)}return{span:H.makeSpan(["stretchy"],b,n),minWidth:j,height:T}}}var{span:a,minWidth:o,height:l}=r();return a.height=l,a.style.height=W(l),o>0&&(a.style.minWidth=W(o)),a},UB=function(t,n,r,a,o){var l,c=t.height+t.depth+r+a;if(/fbox|color|angl/.test(n)){if(l=H.makeSpan(["stretchy",n],[],o),n==="fbox"){var s=o.color&&o.getColor();s&&(l.style.borderColor=s)}}else{var h=[];/^[bx]cancel$/.test(n)&&h.push(new _M({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&h.push(new _M({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Xt(h,{width:"100%",height:W(c)});l=H.makeSvgSpan([],[u],o)}return l.height=c,l.style.height=W(c),l},Jt={encloseSpan:UB,mathMLnode:jB,svgSpan:NB};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 nw(e){var t=Cx(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 Cx(e){return e&&(e.type==="atom"||yB.hasOwnProperty(e.type))?e:null}var rw=(e,t)=>{var n,r,a;e&&e.type==="supsub"?(r=ue(e.base,"accent"),n=r.base,e.base=n,a=dB(ve(e,t)),e.base=r):(r=ue(e,"accent"),n=r.base);var o=ve(n,t.havingCrampedStyle()),l=r.isShifty&&re.isCharacterBox(n),c=0;if(l){var s=re.getBaseElem(n),h=ve(s,t.havingCrampedStyle());c=WL(h).skew}var u=r.label==="\\c",d=u?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight),m;if(r.isStretchy)m=Jt.svgSpan(r,t),m=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:"calc(100% - "+W(2*c)+")",marginLeft:W(2*c)}:void 0}]},t);else{var k,g;r.label==="\\vec"?(k=H.staticSvg("vec",t),g=H.svgData.vec[1]):(k=H.makeOrd({mode:r.mode,text:r.label},t,"textord"),k=WL(k),k.italic=0,g=k.width,u&&(d+=k.depth)),m=H.makeSpan(["accent-body"],[k]);var x=r.label==="\\textcircled";x&&(m.classes.push("accent-full"),d=o.height);var A=c;x||(A-=g/2),m.style.left=W(A),r.label==="\\textcircled"&&(m.style.top=".2em"),m=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-d},{type:"elem",elem:m}]},t)}var b=H.makeSpan(["mord","accent"],[m],t);return a?(a.children[0]=b,a.height=Math.max(b.height,a.height),a.classes[0]="mord",a):b},uS=(e,t)=>{var n=e.isStretchy?Jt.mathMLnode(e.label):new O.MathNode("mo",[Ct(e.label,e.mode)]),r=new O.MathNode("mover",[Se(e.base,t),n]);return r.setAttribute("accent","true"),r},_B=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));J({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=Lx(t[0]),r=!_B.test(e.funcName),a=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:a,base:n}},htmlBuilder:rw,mathmlBuilder:uS}),J({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],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:rw,mathmlBuilder:uS}),J({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:a}},htmlBuilder:(e,t)=>{var n=ve(e.base,t),r=Jt.svgSpan(e,t),a=e.label==="\\utilde"?.12:0,o=H.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]},t);return H.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var n=Jt.mathMLnode(e.label),r=new O.MathNode("munder",[Se(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Ix=e=>{var t=new O.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};J({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:r,funcName:a}=e;return{type:"xArrow",mode:r.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),a=H.wrapFragment(ve(e.body,r,t),t),o=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(o+"-arrow-pad");var l;e.below&&(r=t.havingStyle(n.sub()),l=H.wrapFragment(ve(e.below,r,t),t),l.classes.push(o+"-arrow-pad"));var c=Jt.svgSpan(e,t),s=-t.fontMetrics().axisHeight+.5*c.height,h=-t.fontMetrics().axisHeight-.5*c.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(h-=a.depth);var u;if(l){var d=-t.fontMetrics().axisHeight+l.height+.5*c.height+.111;u=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:c,shift:s},{type:"elem",elem:l,shift:d}]},t)}else u=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:c,shift:s}]},t);return u.children[0].children[0].children[1].classes.push("svg-align"),H.makeSpan(["mrel","x-arrow"],[u],t)},mathmlBuilder(e,t){var n=Jt.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var a=Ix(Se(e.body,t));if(e.below){var o=Ix(Se(e.below,t));r=new O.MathNode("munderover",[n,o,a])}else r=new O.MathNode("mover",[n,a])}else if(e.below){var l=Ix(Se(e.below,t));r=new O.MathNode("munder",[n,l])}else r=Ix(),r=new O.MathNode("mover",[n,r]);return r}});var GB=H.makeSpan;function dS(e,t){var n=_e(e.body,t,!0);return GB([e.mclass],n,t)}function pS(e,t){var n,r=ht(e.body,t);return e.mclass==="minner"?n=new O.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new O.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new O.MathNode("mo",r),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}J({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Re(a),isCharacterBox:re.isCharacterBox(a)}},htmlBuilder:dS,mathmlBuilder:pS});var Ax=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"};J({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Ax(t[0]),body:Re(t[1]),isCharacterBox:re.isCharacterBox(t[1])}}}),J({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,a=t[1],o=t[0],l;r!=="\\stackrel"?l=Ax(a):l="mrel";var c={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Re(a)},s={type:"supsub",mode:o.mode,base:c,sup:r==="\\underset"?null:o,sub:r==="\\underset"?o:null};return{type:"mclass",mode:n.mode,mclass:l,body:[s],isCharacterBox:re.isCharacterBox(s)}},htmlBuilder:dS,mathmlBuilder:pS}),J({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Ax(t[0]),body:Re(t[0])}},htmlBuilder(e,t){var n=_e(e.body,t,!0),r=H.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=ht(e.body,t),r=new O.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var ZB={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},yS=()=>({type:"styling",body:[],mode:"math",style:"display"}),kS=e=>e.type==="textord"&&e.text==="@",WB=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function XB(e,t,n){var r=ZB[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=n.callFunction("\\\\cdleft",[t[0]],[]),o={type:"atom",text:r,mode:"math",family:"rel"},l=n.callFunction("\\Big",[o],[]),c=n.callFunction("\\\\cdright",[t[1]],[]),s={type:"ordgroup",mode:"math",body:[a,l,c]};return n.callFunction("\\\\cdparent",[s],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function KB(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 N("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],a=[r],o=0;o<t.length;o++){for(var l=t[o],c=yS(),s=0;s<l.length;s++)if(!kS(l[s]))c.body.push(l[s]);else{r.push(c),s+=1;var h=nw(l[s]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(h)>-1))if("<>AV".indexOf(h)>-1)for(var d=0;d<2;d++){for(var m=!0,k=s+1;k<l.length;k++){if(WB(l[k],h)){m=!1,s=k;break}if(kS(l[k]))throw new N("Missing a "+h+" character to complete a CD arrow.",l[k]);u[d].body.push(l[k])}if(m)throw new N("Missing a "+h+" character to complete a CD arrow.",l[s])}else throw new N('Expected one of "<>AV=|." after @',l[s]);var g=XB(h,u,e),x={type:"styling",body:[g],mode:"math",style:"display"};r.push(x),c=yS()}o%2===0?r.push(c):r.shift(),r=[],a.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var A=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:A,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}J({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=H.wrapFragment(ve(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=W(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new O.MathNode("mrow",[Se(e.label,t)]);return n=new O.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new O.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),J({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=H.wrapFragment(ve(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new O.MathNode("mrow",[Se(e.fragment,t)])}}),J({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=ue(t[0],"ordgroup"),a=r.body,o="",l=0;l<a.length;l++){var c=ue(a[l],"textord");o+=c.text}var s=parseInt(o),h;if(isNaN(s))throw new N("\\@char has non-numeric argument "+o);if(s<0||s>=1114111)throw new N("\\@char with invalid code point "+o);return s<=65535?h=String.fromCharCode(s):(s-=65536,h=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:"textord",mode:n.mode,text:h}}});var mS=(e,t)=>{var n=_e(e.body,t.withColor(e.color),!1);return H.makeFragment(n)},fS=(e,t)=>{var n=ht(e.body,t.withColor(e.color)),r=new O.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};J({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=ue(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:r,body:Re(a)}},htmlBuilder:mS,mathmlBuilder:fS}),J({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,a=ue(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var o=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:a,body:o}},htmlBuilder:mS,mathmlBuilder:fS}),J({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,a=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,o=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:o,size:a&&ue(a,"size").value}},htmlBuilder(e,t){var n=H.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=W(Be(e.size,t)))),n},mathmlBuilder(e,t){var n=new O.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",W(Be(e.size,t)))),n}});var aw={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},gS=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new N("Expected a control sequence",e);return t},YB=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},vS=(e,t,n,r)=>{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,r)};J({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(aw[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=aw[r.text]),ue(t.parseFunction(),"internal");throw new N("Invalid token after macro prefix",r)}}),J({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),a=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new N("Expected a control sequence",r);for(var o=0,l,c=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){l=t.gullet.future(),c[o].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new N('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==o+1)throw new N('Argument number "'+r.text+'" out of order');o++,c.push([])}else{if(r.text==="EOF")throw new N("Expected a macro definition");c[o].push(r.text)}var{tokens:s}=t.gullet.consumeArg();return l&&s.unshift(l),(n==="\\edef"||n==="\\xdef")&&(s=t.gullet.expandTokens(s),s.reverse()),t.gullet.macros.set(a,{tokens:s,numArgs:o,delimiters:c},n===aw[n]),{type:"internal",mode:t.mode}}}),J({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=gS(t.gullet.popToken());t.gullet.consumeSpaces();var a=YB(t);return vS(t,r,a,n==="\\\\globallet"),{type:"internal",mode:t.mode}}}),J({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=gS(t.gullet.popToken()),a=t.gullet.popToken(),o=t.gullet.popToken();return vS(t,r,o,n==="\\\\globalfuture"),t.gullet.pushToken(o),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var En=function(t,n,r){var a=ze.math[t]&&ze.math[t].replace,o=OM(a||t,n,r);if(!o)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return o},iw=function(t,n,r,a){var o=r.havingBaseStyle(n),l=H.makeSpan(a.concat(o.sizingClasses(r)),[t],r),c=o.sizeMultiplier/r.sizeMultiplier;return l.height*=c,l.depth*=c,l.maxFontSize=o.sizeMultiplier,l},xS=function(t,n,r){var a=n.havingBaseStyle(r),o=(1-n.sizeMultiplier/a.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=W(o),t.height-=o,t.depth+=o},QB=function(t,n,r,a,o,l){var c=H.makeSymbol(t,"Main-Regular",o,a),s=iw(c,n,a,l);return r&&xS(s,a,n),s},JB=function(t,n,r,a){return H.makeSymbol(t,"Size"+n+"-Regular",r,a)},MS=function(t,n,r,a,o,l){var c=JB(t,n,o,a),s=iw(H.makeSpan(["delimsizing","size"+n],[c],a),ae.TEXT,a,l);return r&&xS(s,a,ae.TEXT),s},ow=function(t,n,r){var a;n==="Size1-Regular"?a="delim-size1":a="delim-size4";var o=H.makeSpan(["delimsizinginner",a],[H.makeSpan([],[H.makeSymbol(t,n,r)])]);return{type:"elem",elem:o}},lw=function(t,n,r){var a=Et["Size4-Regular"][t.charCodeAt(0)]?Et["Size4-Regular"][t.charCodeAt(0)][4]:Et["Size1-Regular"][t.charCodeAt(0)][4],o=new c1("inner",rB(t,Math.round(1e3*n))),l=new Xt([o],{width:W(a),height:W(n),style:"width:"+W(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),c=H.makeSvgSpan([],[l],r);return c.height=n,c.style.height=W(n),c.style.width=W(a),{type:"elem",elem:c}},cw=.008,zx={type:"kern",size:-1*cw},$B=["|","\\lvert","\\rvert","\\vert"],eP=["\\|","\\lVert","\\rVert","\\Vert"],wS=function(t,n,r,a,o,l){var c,s,h,u,d="",m=0;c=h=u=t,s=null;var k="Size1-Regular";t==="\\uparrow"?h=u="⏐":t==="\\Uparrow"?h=u="‖":t==="\\downarrow"?c=h="⏐":t==="\\Downarrow"?c=h="‖":t==="\\updownarrow"?(c="\\uparrow",h="⏐",u="\\downarrow"):t==="\\Updownarrow"?(c="\\Uparrow",h="‖",u="\\Downarrow"):re.contains($B,t)?(h="∣",d="vert",m=333):re.contains(eP,t)?(h="∥",d="doublevert",m=556):t==="["||t==="\\lbrack"?(c="⎡",h="⎢",u="⎣",k="Size4-Regular",d="lbrack",m=667):t==="]"||t==="\\rbrack"?(c="⎤",h="⎥",u="⎦",k="Size4-Regular",d="rbrack",m=667):t==="\\lfloor"||t==="⌊"?(h=c="⎢",u="⎣",k="Size4-Regular",d="lfloor",m=667):t==="\\lceil"||t==="⌈"?(c="⎡",h=u="⎢",k="Size4-Regular",d="lceil",m=667):t==="\\rfloor"||t==="⌋"?(h=c="⎥",u="⎦",k="Size4-Regular",d="rfloor",m=667):t==="\\rceil"||t==="⌉"?(c="⎤",h=u="⎥",k="Size4-Regular",d="rceil",m=667):t==="("||t==="\\lparen"?(c="⎛",h="⎜",u="⎝",k="Size4-Regular",d="lparen",m=875):t===")"||t==="\\rparen"?(c="⎞",h="⎟",u="⎠",k="Size4-Regular",d="rparen",m=875):t==="\\{"||t==="\\lbrace"?(c="⎧",s="⎨",u="⎩",h="⎪",k="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(c="⎫",s="⎬",u="⎭",h="⎪",k="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(c="⎧",u="⎩",h="⎪",k="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(c="⎫",u="⎭",h="⎪",k="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(c="⎧",u="⎭",h="⎪",k="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(c="⎫",u="⎩",h="⎪",k="Size4-Regular");var g=En(c,k,o),x=g.height+g.depth,A=En(h,k,o),b=A.height+A.depth,C=En(u,k,o),q=C.height+C.depth,j=0,F=1;if(s!==null){var T=En(s,k,o);j=T.height+T.depth,F=2}var R=x+q+j,K=Math.max(0,Math.ceil((n-R)/(F*b))),Z=R+K*F*b,B=a.fontMetrics().axisHeight;r&&(B*=a.sizeMultiplier);var G=Z/2-B,D=[];if(d.length>0){var oe=Z-x-q,ne=Math.round(Z*1e3),Y=aB(d,Math.round(oe*1e3)),de=new c1(d,Y),fe=(m/1e3).toFixed(3)+"em",Ce=(ne/1e3).toFixed(3)+"em",Ee=new Xt([de],{width:fe,height:Ce,viewBox:"0 0 "+m+" "+ne}),L=H.makeSvgSpan([],[Ee],a);L.height=ne/1e3,L.style.width=fe,L.style.height=Ce,D.push({type:"elem",elem:L})}else{if(D.push(ow(u,k,o)),D.push(zx),s===null){var Te=Z-x-q+2*cw;D.push(lw(h,Te,a))}else{var be=(Z-x-q-j)/2+2*cw;D.push(lw(h,be,a)),D.push(zx),D.push(ow(s,k,o)),D.push(zx),D.push(lw(h,be,a))}D.push(zx),D.push(ow(c,k,o))}var I=a.havingBaseStyle(ae.TEXT),Ne=H.makeVList({positionType:"bottom",positionData:G,children:D},I);return iw(H.makeSpan(["delimsizing","mult"],[Ne],I),ae.TEXT,a,l)},sw=80,hw=.08,uw=function(t,n,r,a,o){var l=nB(t,a,r),c=new c1(t,l),s=new Xt([c],{width:"400em",height:W(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return H.makeSvgSpan(["hide-tail"],[s],o)},tP=function(t,n){var r=n.havingBaseSizing(),a=CS("\\surd",t*r.sizeMultiplier,SS,r),o=r.sizeMultiplier,l=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),c,s=0,h=0,u=0,d;return a.type==="small"?(u=1e3+1e3*l+sw,t<1?o=1:t<1.4&&(o=.7),s=(1+l+hw)/o,h=(1+l)/o,c=uw("sqrtMain",s,u,l,n),c.style.minWidth="0.853em",d=.833/o):a.type==="large"?(u=(1e3+sw)*jn[a.size],h=(jn[a.size]+l)/o,s=(jn[a.size]+l+hw)/o,c=uw("sqrtSize"+a.size,s,u,l,n),c.style.minWidth="1.02em",d=1/o):(s=t+l+hw,h=t+l,u=Math.floor(1e3*t+l)+sw,c=uw("sqrtTall",s,u,l,n),c.style.minWidth="0.742em",d=1.056),c.height=h,c.style.height=W(s),{span:c,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+l)*o}},bS=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],nP=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],LS=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],jn=[0,1.2,1.8,2.4,3],rP=function(t,n,r,a,o){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),re.contains(bS,t)||re.contains(LS,t))return MS(t,n,!1,r,a,o);if(re.contains(nP,t))return wS(t,jn[n],!1,r,a,o);throw new N("Illegal delimiter: '"+t+"'")},aP=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],iP=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"stack"}],SS=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],oP=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";throw new Error("Add support for delim type '"+t.type+"' here.")},CS=function(t,n,r,a){for(var o=Math.min(2,3-a.style.size),l=o;l<r.length&&r[l].type!=="stack";l++){var c=En(t,oP(r[l]),"math"),s=c.height+c.depth;if(r[l].type==="small"){var h=a.havingBaseStyle(r[l].style);s*=h.sizeMultiplier}if(s>n)return r[l]}return r[r.length-1]},IS=function(t,n,r,a,o,l){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var c;re.contains(LS,t)?c=aP:re.contains(bS,t)?c=SS:c=iP;var s=CS(t,n,c,a);return s.type==="small"?QB(t,s.style,r,a,o,l):s.type==="large"?MS(t,s.size,r,a,o,l):wS(t,n,r,a,o,l)},lP=function(t,n,r,a,o,l){var c=a.fontMetrics().axisHeight*a.sizeMultiplier,s=901,h=5/a.fontMetrics().ptPerEm,u=Math.max(n-c,r+c),d=Math.max(u/500*s,2*u-h);return IS(t,d,!0,a,o,l)},$t={sqrtImage:tP,sizedDelim:rP,sizeToMaxHeight:jn,customSizedDelim:IS,leftRightDelim:lP},AS={"\\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}},cP=["(","\\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 Tx(e,t){var n=Cx(e);if(n&&re.contains(cP,n.text))return n;throw n?new N("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new N("Invalid delimiter type '"+e.type+"'",e)}J({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=Tx(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:AS[e.funcName].size,mclass:AS[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?H.makeSpan([e.mclass]):$t.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Ct(e.delim,e.mode));var n=new O.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=W($t.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function zS(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}J({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 N("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Tx(t[0],e).text,color:n}}}),J({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Tx(t[0],e),r=e.parser;++r.leftrightDepth;var a=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var o=ue(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{zS(e);for(var n=_e(e.body,t,!0,["mopen","mclose"]),r=0,a=0,o=!1,l=0;l<n.length;l++)n[l].isMiddle?o=!0:(r=Math.max(n[l].height,r),a=Math.max(n[l].depth,a));r*=t.sizeMultiplier,a*=t.sizeMultiplier;var c;if(e.left==="."?c=Rn(t,["mopen"]):c=$t.leftRightDelim(e.left,r,a,t,e.mode,["mopen"]),n.unshift(c),o)for(var s=1;s<n.length;s++){var h=n[s],u=h.isMiddle;u&&(n[s]=$t.leftRightDelim(u.delim,r,a,u.options,e.mode,[]))}var d;if(e.right===".")d=Rn(t,["mclose"]);else{var m=e.rightColor?t.withColor(e.rightColor):t;d=$t.leftRightDelim(e.right,r,a,m,e.mode,["mclose"])}return n.push(d),H.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{zS(e);var n=ht(e.body,t);if(e.left!=="."){var r=new O.MathNode("mo",[Ct(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var a=new O.MathNode("mo",[Ct(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return $M(n)}}),J({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Tx(t[0],e);if(!e.parser.leftrightDepth)throw new N("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Rn(t,[]);else{n=$t.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Ct("|","text"):Ct(e.delim,e.mode),r=new O.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var dw=(e,t)=>{var n=H.wrapFragment(ve(e.body,t),t),r=e.label.slice(1),a=t.sizeMultiplier,o,l=0,c=re.isCharacterBox(e.body);if(r==="sout")o=H.makeSpan(["stretchy","sout"]),o.height=t.fontMetrics().defaultRuleThickness/a,l=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var s=Be({number:.6,unit:"pt"},t),h=Be({number:.35,unit:"ex"},t),u=t.havingBaseSizing();a=a/u.sizeMultiplier;var d=n.height+n.depth+s+h;n.style.paddingLeft=W(d/2+s);var m=Math.floor(1e3*d*a),k=eB(m),g=new Xt([new c1("phase",k)],{width:"400em",height:W(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});o=H.makeSvgSpan(["hide-tail"],[g],t),o.style.height=W(d),l=n.depth+s+h}else{/cancel/.test(r)?c||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var x=0,A=0,b=0;/box/.test(r)?(b=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),x=t.fontMetrics().fboxsep+(r==="colorbox"?0:b),A=x):r==="angl"?(b=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),x=4*b,A=Math.max(0,.25-n.depth)):(x=c?.2:0,A=x),o=Jt.encloseSpan(n,r,x,A,t),/fbox|boxed|fcolorbox/.test(r)?(o.style.borderStyle="solid",o.style.borderWidth=W(b)):r==="angl"&&b!==.049&&(o.style.borderTopWidth=W(b),o.style.borderRightWidth=W(b)),l=n.depth+A,e.backgroundColor&&(o.style.backgroundColor=e.backgroundColor,e.borderColor&&(o.style.borderColor=e.borderColor))}var C;if(e.backgroundColor)C=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:l},{type:"elem",elem:n,shift:0}]},t);else{var q=/cancel|phase/.test(r)?["svg-align"]:[];C=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:o,shift:l,wrapperClasses:q}]},t)}return/cancel/.test(r)&&(C.height=n.height,C.depth=n.depth),/cancel/.test(r)&&!c?H.makeSpan(["mord","cancel-lap"],[C],t):H.makeSpan(["mord"],[C],t)},pw=(e,t)=>{var n=0,r=new O.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Se(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};J({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,o=ue(t[0],"color-token").color,l=t[1];return{type:"enclose",mode:r.mode,label:a,backgroundColor:o,body:l}},htmlBuilder:dw,mathmlBuilder:pw}),J({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,o=ue(t[0],"color-token").color,l=ue(t[1],"color-token").color,c=t[2];return{type:"enclose",mode:r.mode,label:a,backgroundColor:l,borderColor:o,body:c}},htmlBuilder:dw,mathmlBuilder:pw}),J({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]}}}),J({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:dw,mathmlBuilder:pw}),J({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 TS={};function Ot(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:o,mathmlBuilder:l}=e,c={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},s=0;s<n.length;++s)TS[n[s]]=c;o&&(wx[t]=o),l&&(bx[t]=l)}var qS={};function v(e,t){qS[e]=t}function HS(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 qx=e=>{var t=e.parser.settings;if(!t.displayMode)throw new N("{"+e.envName+"} can be used only in display mode.")};function yw(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function u1(e,t,n){var{hskipBeforeAndAfter:r,addJot:a,cols:o,arraystretch:l,colSeparationType:c,autoTag:s,singleRow:h,emptySingleRow:u,maxNumCols:d,leqno:m}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var k=e.gullet.expandMacroAsText("\\arraystretch");if(k==null)l=1;else if(l=parseFloat(k),!l||l<0)throw new N("Invalid \\arraystretch: "+k)}e.gullet.beginGroup();var g=[],x=[g],A=[],b=[],C=s!=null?[]:void 0;function q(){s&&e.gullet.macros.set("\\@eqnsw","1",!0)}function j(){C&&(e.gullet.macros.get("\\df@tag")?(C.push(e.subparse([new bt("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):C.push(!!s&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(q(),b.push(HS(e));;){var F=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),F={type:"ordgroup",mode:e.mode,body:F},n&&(F={type:"styling",mode:e.mode,style:n,body:[F]}),g.push(F);var T=e.fetch().text;if(T==="&"){if(d&&g.length===d){if(h||c)throw new N("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(T==="\\end"){j(),g.length===1&&F.type==="styling"&&F.body[0].body.length===0&&(x.length>1||!u)&&x.pop(),b.length<x.length+1&&b.push([]);break}else if(T==="\\\\"){e.consume();var R=void 0;e.gullet.future().text!==" "&&(R=e.parseSizeGroup(!0)),A.push(R?R.value:null),j(),b.push(HS(e)),g=[],x.push(g),q()}else throw new N("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:l,body:x,cols:o,rowGaps:A,hskipBeforeAndAfter:r,hLinesBeforeRow:b,colSeparationType:c,tags:C,leqno:m}}function kw(e){return e.slice(0,1)==="d"?"display":"text"}var Vt=function(t,n){var r,a,o=t.body.length,l=t.hLinesBeforeRow,c=0,s=new Array(o),h=[],u=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),d=1/n.fontMetrics().ptPerEm,m=5*d;if(t.colSeparationType&&t.colSeparationType==="small"){var k=n.havingStyle(ae.SCRIPT).sizeMultiplier;m=.2778*(k/n.sizeMultiplier)}var g=t.colSeparationType==="CD"?Be({number:3,unit:"ex"},n):12*d,x=3*d,A=t.arraystretch*g,b=.7*A,C=.3*A,q=0;function j(It){for(var Mt=0;Mt<It.length;++Mt)Mt>0&&(q+=.25),h.push({pos:q,isDashed:It[Mt]})}for(j(l[0]),r=0;r<t.body.length;++r){var F=t.body[r],T=b,R=C;c<F.length&&(c=F.length);var K=new Array(F.length);for(a=0;a<F.length;++a){var Z=ve(F[a],n);R<Z.depth&&(R=Z.depth),T<Z.height&&(T=Z.height),K[a]=Z}var B=t.rowGaps[r],G=0;B&&(G=Be(B,n),G>0&&(G+=C,R<G&&(R=G),G=0)),t.addJot&&(R+=x),K.height=T,K.depth=R,q+=T,K.pos=q,q+=R+G,s[r]=K,j(l[r+1])}var D=q/2+n.fontMetrics().axisHeight,oe=t.cols||[],ne=[],Y,de,fe=[];if(t.tags&&t.tags.some(It=>It))for(r=0;r<o;++r){var Ce=s[r],Ee=Ce.pos-D,L=t.tags[r],Te=void 0;L===!0?Te=H.makeSpan(["eqn-num"],[],n):L===!1?Te=H.makeSpan([],[],n):Te=H.makeSpan([],_e(L,n,!0),n),Te.depth=Ce.depth,Te.height=Ce.height,fe.push({type:"elem",elem:Te,shift:Ee})}for(a=0,de=0;a<c||de<oe.length;++a,++de){for(var be=oe[de]||{},I=!0;be.type==="separator";){if(I||(Y=H.makeSpan(["arraycolsep"],[]),Y.style.width=W(n.fontMetrics().doubleRuleSep),ne.push(Y)),be.separator==="|"||be.separator===":"){var Ne=be.separator==="|"?"solid":"dashed",Ge=H.makeSpan(["vertical-separator"],[],n);Ge.style.height=W(q),Ge.style.borderRightWidth=W(u),Ge.style.borderRightStyle=Ne,Ge.style.margin="0 "+W(-u/2);var He=q-D;He&&(Ge.style.verticalAlign=W(-He)),ne.push(Ge)}else throw new N("Invalid separator type: "+be.separator);de++,be=oe[de]||{},I=!1}if(!(a>=c)){var Ze=void 0;(a>0||t.hskipBeforeAndAfter)&&(Ze=re.deflt(be.pregap,m),Ze!==0&&(Y=H.makeSpan(["arraycolsep"],[]),Y.style.width=W(Ze),ne.push(Y)));var De=[];for(r=0;r<o;++r){var We=s[r],Ke=We[a];if(Ke){var vt=We.pos-D;Ke.depth=We.depth,Ke.height=We.height,De.push({type:"elem",elem:Ke,shift:vt})}}De=H.makeVList({positionType:"individualShift",children:De},n),De=H.makeSpan(["col-align-"+(be.align||"c")],[De]),ne.push(De),(a<c-1||t.hskipBeforeAndAfter)&&(Ze=re.deflt(be.postgap,m),Ze!==0&&(Y=H.makeSpan(["arraycolsep"],[]),Y.style.width=W(Ze),ne.push(Y)))}}if(s=H.makeSpan(["mtable"],ne),h.length>0){for(var O0=H.makeLineSpan("hline",n,u),p1=H.makeLineSpan("hdashline",n,u),t1=[{type:"elem",elem:s,shift:0}];h.length>0;){var _t=h.pop(),xt=_t.pos-D;_t.isDashed?t1.push({type:"elem",elem:p1,shift:xt}):t1.push({type:"elem",elem:O0,shift:xt})}s=H.makeVList({positionType:"individualShift",children:t1},n)}if(fe.length===0)return H.makeSpan(["mord"],[s],n);var at=H.makeVList({positionType:"individualShift",children:fe},n);return at=H.makeSpan(["tag"],[at],n),H.makeFragment([s,at])},sP={c:"center ",l:"left ",r:"right "},Nt=function(t,n){for(var r=[],a=new O.MathNode("mtd",[],["mtr-glue"]),o=new O.MathNode("mtd",[],["mml-eqn-num"]),l=0;l<t.body.length;l++){for(var c=t.body[l],s=[],h=0;h<c.length;h++)s.push(new O.MathNode("mtd",[Se(c[h],n)]));t.tags&&t.tags[l]&&(s.unshift(a),s.push(a),t.leqno?s.unshift(o):s.push(o)),r.push(new O.MathNode("mtr",s))}var u=new O.MathNode("mtable",r),d=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);u.setAttribute("rowspacing",W(d));var m="",k="";if(t.cols&&t.cols.length>0){var g=t.cols,x="",A=!1,b=0,C=g.length;g[0].type==="separator"&&(m+="top ",b=1),g[g.length-1].type==="separator"&&(m+="bottom ",C-=1);for(var q=b;q<C;q++)g[q].type==="align"?(k+=sP[g[q].align],A&&(x+="none "),A=!0):g[q].type==="separator"&&A&&(x+=g[q].separator==="|"?"solid ":"dashed ",A=!1);u.setAttribute("columnalign",k.trim()),/[sd]/.test(x)&&u.setAttribute("columnlines",x.trim())}if(t.colSeparationType==="align"){for(var j=t.cols||[],F="",T=1;T<j.length;T++)F+=T%2?"0em ":"1em ";u.setAttribute("columnspacing",F.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var R="",K=t.hLinesBeforeRow;m+=K[0].length>0?"left ":"",m+=K[K.length-1].length>0?"right ":"";for(var Z=1;Z<K.length-1;Z++)R+=K[Z].length===0?"none ":K[Z][0]?"dashed ":"solid ";return/[sd]/.test(R)&&u.setAttribute("rowlines",R.trim()),m!==""&&(u=new O.MathNode("menclose",[u]),u.setAttribute("notation",m.trim())),t.arraystretch&&t.arraystretch<1&&(u=new O.MathNode("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},BS=function(t,n){t.envName.indexOf("ed")===-1&&qx(t);var r=[],a=t.envName.indexOf("at")>-1?"alignat":"align",o=t.envName==="split",l=u1(t.parser,{cols:r,addJot:!0,autoTag:o?void 0:yw(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:o?2:void 0,leqno:t.parser.settings.leqno},"display"),c,s=0,h={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var u="",d=0;d<n[0].body.length;d++){var m=ue(n[0].body[d],"textord");u+=m.text}c=Number(u),s=c*2}var k=!s;l.body.forEach(function(b){for(var C=1;C<b.length;C+=2){var q=ue(b[C],"styling"),j=ue(q.body[0],"ordgroup");j.body.unshift(h)}if(k)s<b.length&&(s=b.length);else{var F=b.length/2;if(c<F)throw new N("Too many math in a row: "+("expected "+c+", but got "+F),b[0])}});for(var g=0;g<s;++g){var x="r",A=0;g%2===1?x="l":g>0&&k&&(A=1),r[g]={type:"align",align:x,pregap:A,postgap:0}}return l.colSeparationType=k?"align":"alignat",l};Ot({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Cx(t[0]),r=n?[t[0]]:ue(t[0],"ordgroup").body,a=r.map(function(l){var c=nw(l),s=c.text;if("lcr".indexOf(s)!==-1)return{type:"align",align:s};if(s==="|")return{type:"separator",separator:"|"};if(s===":")return{type:"separator",separator:":"};throw new N("Unknown column alignment: "+s,l)}),o={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return u1(e.parser,o,kw(e.envName))},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({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",r={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".indexOf(n)===-1)throw new N("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),r.cols=[{type:"align",align:n}]}}var o=u1(e.parser,r,kw(e.envName)),l=Math.max(0,...o.body.map(c=>c.length));return o.cols=new Array(l).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=u1(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Cx(t[0]),r=n?[t[0]]:ue(t[0],"ordgroup").body,a=r.map(function(l){var c=nw(l),s=c.text;if("lc".indexOf(s)!==-1)return{type:"align",align:s};throw new N("Unknown column alignment: "+s,l)});if(a.length>1)throw new N("{subarray} can contain only one column");var o={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=u1(e.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new N("{subarray} can contain only one column");return o},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({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=u1(e.parser,t,kw(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:BS,htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){re.contains(["gather","gather*"],e.envName)&&qx(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:yw(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return u1(e.parser,t,"display")},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:BS,htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){qx(e);var t={autoTag:yw(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return u1(e.parser,t,"display")},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["CD"],props:{numArgs:0},handler(e){return qx(e),KB(e.parser)},htmlBuilder:Vt,mathmlBuilder:Nt}),v("\\nonumber","\\gdef\\@eqnsw{0}"),v("\\notag","\\nonumber"),J({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new N(e.funcName+" valid only within array environment")}});var PS=TS;J({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];if(a.type!=="ordgroup")throw new N("Invalid environment name",a);for(var o="",l=0;l<a.body.length;++l)o+=ue(a.body[l],"textord").text;if(r==="\\begin"){if(!PS.hasOwnProperty(o))throw new N("No such environment: "+o,a);var c=PS[o],{args:s,optArgs:h}=n.parseArguments("\\begin{"+o+"}",c),u={mode:n.mode,envName:o,parser:n},d=c.handler(u,s,h);n.expect("\\end",!1);var m=n.nextToken,k=ue(n.parseFunction(),"environment");if(k.name!==o)throw new N("Mismatch: \\begin{"+o+"} matched by \\end{"+k.name+"}",m);return d}return{type:"environment",mode:n.mode,name:o,nameGroup:a}}});var FS=(e,t)=>{var n=e.font,r=t.withFont(n);return ve(e.body,r)},DS=(e,t)=>{var n=e.font,r=t.withFont(n);return Se(e.body,r)},RS={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};J({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:r}=e,a=Lx(t[0]),o=r;return o in RS&&(o=RS[o]),{type:"font",mode:n.mode,font:o.slice(1),body:a}},htmlBuilder:FS,mathmlBuilder:DS}),J({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],a=re.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Ax(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:a}}}),J({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:a}=e,{mode:o}=n,l=n.parseExpression(!0,a),c="math"+r.slice(1);return{type:"font",mode:o,font:c,body:{type:"ordgroup",mode:n.mode,body:l}}},htmlBuilder:FS,mathmlBuilder:DS});var ES=(e,t)=>{var n=t;return e==="display"?n=n.id>=ae.SCRIPT.id?n.text():ae.DISPLAY:e==="text"&&n.size===ae.DISPLAY.size?n=ae.TEXT:e==="script"?n=ae.SCRIPT:e==="scriptscript"&&(n=ae.SCRIPTSCRIPT),n},mw=(e,t)=>{var n=ES(e.size,t.style),r=n.fracNum(),a=n.fracDen(),o;o=t.havingStyle(r);var l=ve(e.numer,o,t);if(e.continued){var c=8.5/t.fontMetrics().ptPerEm,s=3.5/t.fontMetrics().ptPerEm;l.height=l.height<c?c:l.height,l.depth=l.depth<s?s:l.depth}o=t.havingStyle(a);var h=ve(e.denom,o,t),u,d,m;e.hasBarLine?(e.barSize?(d=Be(e.barSize,t),u=H.makeLineSpan("frac-line",t,d)):u=H.makeLineSpan("frac-line",t),d=u.height,m=u.height):(u=null,d=0,m=t.fontMetrics().defaultRuleThickness);var k,g,x;n.size===ae.DISPLAY.size||e.size==="display"?(k=t.fontMetrics().num1,d>0?g=3*m:g=7*m,x=t.fontMetrics().denom1):(d>0?(k=t.fontMetrics().num2,g=m):(k=t.fontMetrics().num3,g=3*m),x=t.fontMetrics().denom2);var A;if(u){var C=t.fontMetrics().axisHeight;k-l.depth-(C+.5*d)<g&&(k+=g-(k-l.depth-(C+.5*d))),C-.5*d-(h.height-x)<g&&(x+=g-(C-.5*d-(h.height-x)));var q=-(C-.5*d);A=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:x},{type:"elem",elem:u,shift:q},{type:"elem",elem:l,shift:-k}]},t)}else{var b=k-l.depth-(h.height-x);b<g&&(k+=.5*(g-b),x+=.5*(g-b)),A=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:x},{type:"elem",elem:l,shift:-k}]},t)}o=t.havingStyle(n),A.height*=o.sizeMultiplier/t.sizeMultiplier,A.depth*=o.sizeMultiplier/t.sizeMultiplier;var j;n.size===ae.DISPLAY.size?j=t.fontMetrics().delim1:n.size===ae.SCRIPTSCRIPT.size?j=t.havingStyle(ae.SCRIPT).fontMetrics().delim2:j=t.fontMetrics().delim2;var F,T;return e.leftDelim==null?F=Rn(t,["mopen"]):F=$t.customSizedDelim(e.leftDelim,j,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?T=H.makeSpan([]):e.rightDelim==null?T=Rn(t,["mclose"]):T=$t.customSizedDelim(e.rightDelim,j,!0,t.havingStyle(n),e.mode,["mclose"]),H.makeSpan(["mord"].concat(o.sizingClasses(t)),[F,H.makeSpan(["mfrac"],[A]),T],t)},fw=(e,t)=>{var n=new O.MathNode("mfrac",[Se(e.numer,t),Se(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=Be(e.barSize,t);n.setAttribute("linethickness",W(r))}var a=ES(e.size,t.style);if(a.size!==t.style.size){n=new O.MathNode("mstyle",[n]);var o=a.size===ae.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",o),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var l=[];if(e.leftDelim!=null){var c=new O.MathNode("mo",[new O.TextNode(e.leftDelim.replace("\\",""))]);c.setAttribute("fence","true"),l.push(c)}if(l.push(n),e.rightDelim!=null){var s=new O.MathNode("mo",[new O.TextNode(e.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),l.push(s)}return $M(l)}return n};J({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],o=t[1],l,c=null,s=null,h="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,c="(",s=")";break;case"\\\\bracefrac":l=!1,c="\\{",s="\\}";break;case"\\\\brackfrac":l=!1,c="[",s="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:a,denom:o,hasBarLine:l,leftDelim:c,rightDelim:s,size:h,barSize:null}},htmlBuilder:mw,mathmlBuilder:fw}),J({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],o=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:a,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),J({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=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:r}}});var jS=["display","text","script","scriptscript"],OS=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};J({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],a=t[5],o=Lx(t[0]),l=o.type==="atom"&&o.family==="open"?OS(o.text):null,c=Lx(t[1]),s=c.type==="atom"&&c.family==="close"?OS(c.text):null,h=ue(t[2],"size"),u,d=null;h.isBlank?u=!0:(d=h.value,u=d.number>0);var m="auto",k=t[3];if(k.type==="ordgroup"){if(k.body.length>0){var g=ue(k.body[0],"textord");m=jS[Number(g.text)]}}else k=ue(k,"textord"),m=jS[Number(k.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:u,barSize:d,leftDelim:l,rightDelim:s,size:m}},htmlBuilder:mw,mathmlBuilder:fw}),J({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:ue(t[0],"size").value,token:a}}}),J({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],o=jH(ue(t[1],"infix").size),l=t[2],c=o.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:l,continued:!1,hasBarLine:c,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:mw,mathmlBuilder:fw});var VS=(e,t)=>{var n=t.style,r,a;e.type==="supsub"?(r=e.sup?ve(e.sup,t.havingStyle(n.sup()),t):ve(e.sub,t.havingStyle(n.sub()),t),a=ue(e.base,"horizBrace")):a=ue(e,"horizBrace");var o=ve(a.base,t.havingBaseStyle(ae.DISPLAY)),l=Jt.svgSpan(a,t),c;if(a.isOver?(c=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:l}]},t),c.children[0].children[0].children[1].classes.push("svg-align")):(c=H.makeVList({positionType:"bottom",positionData:o.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:o}]},t),c.children[0].children[0].children[0].classes.push("svg-align")),r){var s=H.makeSpan(["mord",a.isOver?"mover":"munder"],[c],t);a.isOver?c=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.2},{type:"elem",elem:r}]},t):c=H.makeVList({positionType:"bottom",positionData:s.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:s}]},t)}return H.makeSpan(["mord",a.isOver?"mover":"munder"],[c],t)},hP=(e,t)=>{var n=Jt.mathMLnode(e.label);return new O.MathNode(e.isOver?"mover":"munder",[Se(e.base,t),n])};J({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:VS,mathmlBuilder:hP}),J({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],a=ue(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:Re(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=_e(e.body,t,!1);return H.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=h1(e.body,t);return n instanceof gt||(n=new gt("mrow",[n])),n.setAttribute("href",e.href),n}}),J({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=ue(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var a=[],o=0;o<r.length;o++){var l=r[o];l==="~"&&(l="\\textasciitilde"),a.push({type:"textord",mode:"text",text:l})}var c={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:r,body:Re(c)}}}),J({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:Re(t[0])}},htmlBuilder(e,t){var n=_e(e.body,t,!1);return H.makeFragment(n)},mathmlBuilder(e,t){return new O.MathNode("mrow",ht(e.body,t))}}),J({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:a}=e,o=ue(t[0],"raw").string,l=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c,s={};switch(r){case"\\htmlClass":s.class=o,c={command:"\\htmlClass",class:o};break;case"\\htmlId":s.id=o,c={command:"\\htmlId",id:o};break;case"\\htmlStyle":s.style=o,c={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var h=o.split(","),u=0;u<h.length;u++){var d=h[u].split("=");if(d.length!==2)throw new N("Error parsing key-value for \\htmlData");s["data-"+d[0].trim()]=d[1].trim()}c={command:"\\htmlData",attributes:s};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(c)?{type:"html",mode:n.mode,attributes:s,body:Re(l)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=_e(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var a=H.makeSpan(r,n,t);for(var o in e.attributes)o!=="class"&&e.attributes.hasOwnProperty(o)&&a.setAttribute(o,e.attributes[o]);return a},mathmlBuilder:(e,t)=>h1(e.body,t)}),J({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Re(t[0]),mathml:Re(t[1])}},htmlBuilder:(e,t)=>{var n=_e(e.html,t,!1);return H.makeFragment(n)},mathmlBuilder:(e,t)=>h1(e.mathml,t)});var gw=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 N("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!UL(r))throw new N("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};J({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,a={number:0,unit:"em"},o={number:.9,unit:"em"},l={number:0,unit:"em"},c="";if(n[0])for(var s=ue(n[0],"raw").string,h=s.split(","),u=0;u<h.length;u++){var d=h[u].split("=");if(d.length===2){var m=d[1].trim();switch(d[0].trim()){case"alt":c=m;break;case"width":a=gw(m);break;case"height":o=gw(m);break;case"totalheight":l=gw(m);break;default:throw new N("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var k=ue(t[0],"url").url;return c===""&&(c=k,c=c.replace(/^.*[\\/]/,""),c=c.substring(0,c.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:k})?{type:"includegraphics",mode:r.mode,alt:c,width:a,height:o,totalheight:l,src:k}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=Be(e.height,t),r=0;e.totalheight.number>0&&(r=Be(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=Be(e.width,t));var o={height:W(n+r)};a>0&&(o.width=W(a)),r>0&&(o.verticalAlign=W(-r));var l=new hB(e.src,e.alt,o);return l.height=n,l.depth=r,l},mathmlBuilder:(e,t)=>{var n=new O.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Be(e.height,t),a=0;if(e.totalheight.number>0&&(a=Be(e.totalheight,t)-r,n.setAttribute("valign",W(-a))),n.setAttribute("height",W(r+a)),e.width.number>0){var o=Be(e.width,t);n.setAttribute("width",W(o))}return n.setAttribute("src",e.src),n}}),J({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=ue(t[0],"size");if(n.settings.strict){var o=r[1]==="m",l=a.value.unit==="mu";o?(l||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+a.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):l&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:a.value}},htmlBuilder(e,t){return H.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=Be(e.dimension,t);return new O.SpaceNode(n)}}),J({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:a}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=H.makeSpan([],[ve(e.body,t)]),n=H.makeSpan(["inner"],[n],t)):n=H.makeSpan(["inner"],[ve(e.body,t)]);var r=H.makeSpan(["fix"],[]),a=H.makeSpan([e.alignment],[n,r],t),o=H.makeSpan(["strut"]);return o.style.height=W(a.height+a.depth),a.depth&&(o.style.verticalAlign=W(-a.depth)),a.children.unshift(o),a=H.makeSpan(["thinbox"],[a],t),H.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new O.MathNode("mpadded",[Se(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),J({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,a=r.mode;r.switchMode("math");var o=n==="\\("?"\\)":"$",l=r.parseExpression(!1,o);return r.expect(o),r.switchMode(a),{type:"styling",mode:r.mode,style:"text",body:l}}}),J({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new N("Mismatched "+e.funcName)}});var NS=(e,t)=>{switch(t.style.size){case ae.DISPLAY.size:return e.display;case ae.TEXT.size:return e.text;case ae.SCRIPT.size:return e.script;case ae.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};J({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Re(t[0]),text:Re(t[1]),script:Re(t[2]),scriptscript:Re(t[3])}},htmlBuilder:(e,t)=>{var n=NS(e,t),r=_e(n,t,!1);return H.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=NS(e,t);return h1(n,t)}});var US=(e,t,n,r,a,o,l)=>{e=H.makeSpan([],[e]);var c=n&&re.isCharacterBox(n),s,h;if(t){var u=ve(t,r.havingStyle(a.sup()),r);h={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=ve(n,r.havingStyle(a.sub()),r);s={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var m;if(h&&s){var k=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+l;m=H.makeVList({positionType:"bottom",positionData:k,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:W(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:W(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var g=e.height-l;m=H.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:W(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else if(h){var x=e.depth+l;m=H.makeVList({positionType:"bottom",positionData:x,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:W(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var A=[m];if(s&&o!==0&&!c){var b=H.makeSpan(["mspace"],[],r);b.style.marginRight=W(o),A.unshift(b)}return H.makeSpan(["mop","op-limits"],A,r)},_S=["\\smallint"],rn=(e,t)=>{var n,r,a=!1,o;e.type==="supsub"?(n=e.sup,r=e.sub,o=ue(e.base,"op"),a=!0):o=ue(e,"op");var l=t.style,c=!1;l.size===ae.DISPLAY.size&&o.symbol&&!re.contains(_S,o.name)&&(c=!0);var s;if(o.symbol){var h=c?"Size2-Regular":"Size1-Regular",u="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(u=o.name.slice(1),o.name=u==="oiint"?"\\iint":"\\iiint"),s=H.makeSymbol(o.name,h,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),u.length>0){var d=s.italic,m=H.staticSvg(u+"Size"+(c?"2":"1"),t);s=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:m,shift:c?.08:0}]},t),o.name="\\"+u,s.classes.unshift("mop"),s.italic=d}}else if(o.body){var k=_e(o.body,t,!0);k.length===1&&k[0]instanceof St?(s=k[0],s.classes[0]="mop"):s=H.makeSpan(["mop"],k,t)}else{for(var g=[],x=1;x<o.name.length;x++)g.push(H.mathsym(o.name[x],o.mode,t));s=H.makeSpan(["mop"],g,t)}var A=0,b=0;return(s instanceof St||o.name==="\\oiint"||o.name==="\\oiiint")&&!o.suppressBaseShift&&(A=(s.height-s.depth)/2-t.fontMetrics().axisHeight,b=s.italic),a?US(s,n,r,t,l,b,A):(A&&(s.style.position="relative",s.style.top=W(A)),s)},On=(e,t)=>{var n;if(e.symbol)n=new gt("mo",[Ct(e.name,e.mode)]),re.contains(_S,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new gt("mo",ht(e.body,t));else{n=new gt("mi",[new jt(e.name.slice(1))]);var r=new gt("mo",[Ct("","text")]);e.parentIsSupSub?n=new gt("mrow",[n,r]):n=lS([n,r])}return n},uP={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};J({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:r}=e,a=r;return a.length===1&&(a=uP[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:rn,mathmlBuilder:On}),J({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Re(r)}},htmlBuilder:rn,mathmlBuilder:On});var dP={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};J({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:rn,mathmlBuilder:On}),J({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:rn,mathmlBuilder:On}),J({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=dP[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:rn,mathmlBuilder:On});var GS=(e,t)=>{var n,r,a=!1,o;e.type==="supsub"?(n=e.sup,r=e.sub,o=ue(e.base,"operatorname"),a=!0):o=ue(e,"operatorname");var l;if(o.body.length>0){for(var c=o.body.map(d=>{var m=d.text;return typeof m=="string"?{type:"textord",mode:d.mode,text:m}:d}),s=_e(c,t.withFont("mathrm"),!0),h=0;h<s.length;h++){var u=s[h];u instanceof St&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}l=H.makeSpan(["mop"],s,t)}else l=H.makeSpan(["mop"],[],t);return a?US(l,n,r,t,t.style,0,0):l},pP=(e,t)=>{for(var n=ht(e.body,t.withFont("mathrm")),r=!0,a=0;a<n.length;a++){var o=n[a];if(!(o instanceof O.SpaceNode))if(o instanceof O.MathNode)switch(o.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var l=o.children[0];o.children.length===1&&l instanceof O.TextNode?l.text=l.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var c=n.map(u=>u.toText()).join("");n=[new O.TextNode(c)]}var s=new O.MathNode("mi",n);s.setAttribute("mathvariant","normal");var h=new O.MathNode("mo",[Ct("","text")]);return e.parentIsSupSub?new O.MathNode("mrow",[s,h]):O.newDocumentFragment([s,h])};J({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"operatorname",mode:n.mode,body:Re(a),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:GS,mathmlBuilder:pP}),v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),R0({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?H.makeFragment(_e(e.body,t,!1)):H.makeSpan(["mord"],_e(e.body,t,!0),t)},mathmlBuilder(e,t){return h1(e.body,t,!0)}}),J({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=ve(e.body,t.havingCrampedStyle()),r=H.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,o=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r},{type:"kern",size:a}]},t);return H.makeSpan(["mord","overline"],[o],t)},mathmlBuilder(e,t){var n=new O.MathNode("mo",[new O.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new O.MathNode("mover",[Se(e.body,t),n]);return r.setAttribute("accent","true"),r}}),J({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:Re(r)}},htmlBuilder:(e,t)=>{var n=_e(e.body,t.withPhantom(),!1);return H.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=ht(e.body,t);return new O.MathNode("mphantom",n)}}),J({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=H.makeSpan([],[ve(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),H.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=ht(Re(e.body),t),r=new O.MathNode("mphantom",n),a=new O.MathNode("mpadded",[r]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}}),J({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=H.makeSpan(["inner"],[ve(e.body,t.withPhantom())]),r=H.makeSpan(["fix"],[]);return H.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=ht(Re(e.body),t),r=new O.MathNode("mphantom",n),a=new O.MathNode("mpadded",[r]);return a.setAttribute("width","0px"),a}}),J({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=ue(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:a}},htmlBuilder(e,t){var n=ve(e.body,t),r=Be(e.dy,t);return H.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new O.MathNode("mpadded",[Se(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),J({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),J({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,a=n[0],o=ue(t[0],"size"),l=ue(t[1],"size");return{type:"rule",mode:r.mode,shift:a&&ue(a,"size").value,width:o.value,height:l.value}},htmlBuilder(e,t){var n=H.makeSpan(["mord","rule"],[],t),r=Be(e.width,t),a=Be(e.height,t),o=e.shift?Be(e.shift,t):0;return n.style.borderRightWidth=W(r),n.style.borderTopWidth=W(a),n.style.bottom=W(o),n.width=r,n.height=a+o,n.depth=-o,n.maxFontSize=a*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Be(e.width,t),r=Be(e.height,t),a=e.shift?Be(e.shift,t):0,o=t.color&&t.getColor()||"black",l=new O.MathNode("mspace");l.setAttribute("mathbackground",o),l.setAttribute("width",W(n)),l.setAttribute("height",W(r));var c=new O.MathNode("mpadded",[l]);return a>=0?c.setAttribute("height",W(a)):(c.setAttribute("height",W(a)),c.setAttribute("depth",W(-a))),c.setAttribute("voffset",W(a)),c}});function ZS(e,t,n){for(var r=_e(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,o=0;o<r.length;o++){var l=r[o].classes.indexOf("sizing");l<0?Array.prototype.push.apply(r[o].classes,t.sizingClasses(n)):r[o].classes[l+1]==="reset-size"+t.size&&(r[o].classes[l+1]="reset-size"+n.size),r[o].height*=a,r[o].depth*=a}return H.makeFragment(r)}var WS=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],yP=(e,t)=>{var n=t.havingSize(e.size);return ZS(e.body,n,t)};J({type:"sizing",names:WS,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:a}=e,o=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:WS.indexOf(r)+1,body:o}},htmlBuilder:yP,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=ht(e.body,n),a=new O.MathNode("mstyle",r);return a.setAttribute("mathsize",W(n.sizeMultiplier)),a}}),J({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,a=!1,o=!1,l=n[0]&&ue(n[0],"ordgroup");if(l)for(var c="",s=0;s<l.body.length;++s){var h=l.body[s];if(c=h.text,c==="t")a=!0;else if(c==="b")o=!0;else{a=!1,o=!1;break}}else a=!0,o=!0;var u=t[0];return{type:"smash",mode:r.mode,body:u,smashHeight:a,smashDepth:o}},htmlBuilder:(e,t)=>{var n=H.makeSpan([],[ve(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var a=0;a<n.children.length;a++)n.children[a].depth=0;var o=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return H.makeSpan(["mord"],[o],t)},mathmlBuilder:(e,t)=>{var n=new O.MathNode("mpadded",[Se(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),J({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,a=n[0],o=t[0];return{type:"sqrt",mode:r.mode,body:o,index:a}},htmlBuilder(e,t){var n=ve(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=H.wrapFragment(n,t);var r=t.fontMetrics(),a=r.defaultRuleThickness,o=a;t.style.id<ae.TEXT.id&&(o=t.fontMetrics().xHeight);var l=a+o/4,c=n.height+n.depth+l+a,{span:s,ruleWidth:h,advanceWidth:u}=$t.sqrtImage(c,t),d=s.height-h;d>n.height+n.depth+l&&(l=(l+d-n.height-n.depth)/2);var m=s.height-n.height-l-h;n.style.paddingLeft=W(u);var k=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+m)},{type:"elem",elem:s},{type:"kern",size:h}]},t);if(e.index){var g=t.havingStyle(ae.SCRIPTSCRIPT),x=ve(e.index,g,t),A=.6*(k.height-k.depth),b=H.makeVList({positionType:"shift",positionData:-A,children:[{type:"elem",elem:x}]},t),C=H.makeSpan(["root"],[b]);return H.makeSpan(["mord","sqrt"],[C,k],t)}else return H.makeSpan(["mord","sqrt"],[k],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new O.MathNode("mroot",[Se(n,t),Se(r,t)]):new O.MathNode("msqrt",[Se(n,t)])}});var XS={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT};J({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:a}=e,o=a.parseExpression(!0,n),l=r.slice(1,r.length-5);return{type:"styling",mode:a.mode,style:l,body:o}},htmlBuilder(e,t){var n=XS[e.style],r=t.havingStyle(n).withFont("");return ZS(e.body,r,t)},mathmlBuilder(e,t){var n=XS[e.style],r=t.havingStyle(n),a=ht(e.body,r),o=new O.MathNode("mstyle",a),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},c=l[e.style];return o.setAttribute("scriptlevel",c[0]),o.setAttribute("displaystyle",c[1]),o}});var kP=function(t,n){var r=t.base;if(r)if(r.type==="op"){var a=r.limits&&(n.style.size===ae.DISPLAY.size||r.alwaysHandleSupSub);return a?rn:null}else if(r.type==="operatorname"){var o=r.alwaysHandleSupSub&&(n.style.size===ae.DISPLAY.size||r.limits);return o?GS:null}else{if(r.type==="accent")return re.isCharacterBox(r.base)?rw:null;if(r.type==="horizBrace"){var l=!t.sub;return l===r.isOver?VS:null}else return null}else return null};R0({type:"supsub",htmlBuilder(e,t){var n=kP(e,t);if(n)return n(e,t);var{base:r,sup:a,sub:o}=e,l=ve(r,t),c,s,h=t.fontMetrics(),u=0,d=0,m=r&&re.isCharacterBox(r);if(a){var k=t.havingStyle(t.style.sup());c=ve(a,k,t),m||(u=l.height-k.fontMetrics().supDrop*k.sizeMultiplier/t.sizeMultiplier)}if(o){var g=t.havingStyle(t.style.sub());s=ve(o,g,t),m||(d=l.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var x;t.style===ae.DISPLAY?x=h.sup1:t.style.cramped?x=h.sup3:x=h.sup2;var A=t.sizeMultiplier,b=W(.5/h.ptPerEm/A),C=null;if(s){var q=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(l instanceof St||q)&&(C=W(-l.italic))}var j;if(c&&s){u=Math.max(u,x,c.depth+.25*h.xHeight),d=Math.max(d,h.sub2);var F=h.defaultRuleThickness,T=4*F;if(u-c.depth-(s.height-d)<T){d=T-(u-c.depth)+s.height;var R=.8*h.xHeight-(u-c.depth);R>0&&(u+=R,d-=R)}var K=[{type:"elem",elem:s,shift:d,marginRight:b,marginLeft:C},{type:"elem",elem:c,shift:-u,marginRight:b}];j=H.makeVList({positionType:"individualShift",children:K},t)}else if(s){d=Math.max(d,h.sub1,s.height-.8*h.xHeight);var Z=[{type:"elem",elem:s,marginLeft:C,marginRight:b}];j=H.makeVList({positionType:"shift",positionData:d,children:Z},t)}else if(c)u=Math.max(u,x,c.depth+.25*h.xHeight),j=H.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:c,marginRight:b}]},t);else throw new Error("supsub must have either sup or sub.");var B=QM(l,"right")||"mord";return H.makeSpan([B],[l,H.makeSpan(["msupsub"],[j])],t)},mathmlBuilder(e,t){var n=!1,r,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var o=[Se(e.base,t)];e.sub&&o.push(Se(e.sub,t)),e.sup&&o.push(Se(e.sup,t));var l;if(n)l=r?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;h&&h.type==="op"&&h.limits&&t.style===ae.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===ae.DISPLAY||h.limits)?l="munderover":l="msubsup"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===ae.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===ae.DISPLAY)?l="munder":l="msub"}else{var c=e.base;c&&c.type==="op"&&c.limits&&(t.style===ae.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||t.style===ae.DISPLAY)?l="mover":l="msup"}return new O.MathNode(l,o)}}),R0({type:"atom",htmlBuilder(e,t){return H.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new O.MathNode("mo",[Ct(e.text,e.mode)]);if(e.family==="bin"){var r=ew(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var KS={mi:"italic",mn:"normal",mtext:"normal"};R0({type:"mathord",htmlBuilder(e,t){return H.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new O.MathNode("mi",[Ct(e.text,e.mode,t)]),r=ew(e,t)||"italic";return r!==KS[n.type]&&n.setAttribute("mathvariant",r),n}}),R0({type:"textord",htmlBuilder(e,t){return H.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Ct(e.text,e.mode,t),r=ew(e,t)||"normal",a;return e.mode==="text"?a=new O.MathNode("mtext",[n]):/[0-9]/.test(e.text)?a=new O.MathNode("mn",[n]):e.text==="\\prime"?a=new O.MathNode("mo",[n]):a=new O.MathNode("mi",[n]),r!==KS[a.type]&&a.setAttribute("mathvariant",r),a}});var vw={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},xw={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};R0({type:"spacing",htmlBuilder(e,t){if(xw.hasOwnProperty(e.text)){var n=xw[e.text].className||"";if(e.mode==="text"){var r=H.makeOrd(e,t,"textord");return r.classes.push(n),r}else return H.makeSpan(["mspace",n],[H.mathsym(e.text,e.mode,t)],t)}else{if(vw.hasOwnProperty(e.text))return H.makeSpan(["mspace",vw[e.text]],[],t);throw new N('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(xw.hasOwnProperty(e.text))n=new O.MathNode("mtext",[new O.TextNode(" ")]);else{if(vw.hasOwnProperty(e.text))return new O.MathNode("mspace");throw new N('Unknown type of space "'+e.text+'"')}return n}});var YS=()=>{var e=new O.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};R0({type:"tag",mathmlBuilder(e,t){var n=new O.MathNode("mtable",[new O.MathNode("mtr",[YS(),new O.MathNode("mtd",[h1(e.body,t)]),YS(),new O.MathNode("mtd",[h1(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var QS={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},JS={"\\textbf":"textbf","\\textmd":"textmd"},mP={"\\textit":"textit","\\textup":"textup"},$S=(e,t)=>{var n=e.font;if(n){if(QS[n])return t.withTextFontFamily(QS[n]);if(JS[n])return t.withTextFontWeight(JS[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(mP[n])};J({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:r}=e,a=t[0];return{type:"text",mode:n.mode,body:Re(a),font:r}},htmlBuilder(e,t){var n=$S(e,t),r=_e(e.body,n,!0);return H.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=$S(e,t);return h1(e.body,n)}}),J({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=ve(e.body,t),r=H.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,o=H.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n}]},t);return H.makeSpan(["mord","underline"],[o],t)},mathmlBuilder(e,t){var n=new O.MathNode("mo",[new O.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new O.MathNode("munder",[Se(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),J({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=ve(e.body,t),r=t.fontMetrics().axisHeight,a=.5*(n.height-r-(n.depth+r));return H.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new O.MathNode("mpadded",[Se(e.body,t)],["vcenter"])}}),J({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new N("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=eC(e),r=[],a=t.havingStyle(t.style.text()),o=0;o<n.length;o++){var l=n[o];l==="~"&&(l="\\textasciitilde"),r.push(H.makeSymbol(l,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return H.makeSpan(["mord","text"].concat(a.sizingClasses(t)),H.tryCombineChars(r),a)},mathmlBuilder(e,t){var n=new O.TextNode(eC(e)),r=new O.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var eC=e=>e.body.replace(/ /g,e.star?"␣":" "),d1=aS,tC=`[ \r
|
|
7826
|
+
-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.")}};class Fn{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 re.contains(this.classes,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(){var t=n=>n.toText();return this.children.map(t).join("")}}var Et={"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]}},yx={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]},OL={Å:"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 iB(e,t){Et[e]=t}function OM(e,t,n){if(!Et[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),a=Et[t][r];if(!a&&e[0]in OL&&(r=OL[e[0]].charCodeAt(0),a=Et[t][r]),!a&&n==="text"&&EL(r)&&(a=Et[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var VM={};function oB(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!VM[t]){var n=VM[t]={cssEmPerMu:yx.quad[t]/18};for(var r in yx)yx.hasOwnProperty(r)&&(n[r]=yx[r][t])}return VM[t]}var lB=[[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]],VL=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],NL=function(t,n){return n.size<2?t:lB[t-1][n.size-1]};class Wt{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||Wt.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=VL[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};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Wt(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:NL(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:VL[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=NL(Wt.BASESIZE,t);return this.size===n&&this.textSize===Wt.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!==Wt.BASESIZE?["sizing","reset-size"+this.size,"size"+Wt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=oB(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Wt.BASESIZE=6;var NM={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},cB={ex:!0,em:!0,mu:!0},UL=function(t){return typeof t!="string"&&(t=t.unit),t in NM||t in cB||t==="ex"},Be=function(t,n){var r;if(t.unit in NM)r=NM[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var a;if(n.style.isTight()?a=n.havingStyle(n.style.text()):a=n,t.unit==="ex")r=a.fontMetrics().xHeight;else if(t.unit==="em")r=a.fontMetrics().quad;else throw new U("Invalid unit: '"+t.unit+"'");a!==n&&(r*=a.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},W=function(t){return+t.toFixed(4)+"em"},l1=function(t){return t.filter(n=>n).join(" ")},_L=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var a=n.getColor();a&&(this.style.color=a)}},GL=function(t){var n=document.createElement(t);n.className=l1(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&n.setAttribute(a,this.attributes[a]);for(var o=0;o<this.children.length;o++)n.appendChild(this.children[o].toNode());return n},sB=/[\s"'>/=\x00-\x1f]/,ZL=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+re.escape(l1(this.classes))+'"');var r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=re.hyphenate(a)+":"+this.style[a]+";");r&&(n+=' style="'+re.escape(r)+'"');for(var o in this.attributes)if(this.attributes.hasOwnProperty(o)){if(sB.test(o))throw new U("Invalid attribute name '"+o+"'");n+=" "+o+'="'+re.escape(this.attributes[o])+'"'}n+=">";for(var l=0;l<this.children.length;l++)n+=this.children[l].toMarkup();return n+="</"+t+">",n};class Dn{constructor(t,n,r,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,_L.call(this,t,r,a),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return re.contains(this.classes,t)}toNode(){return GL.call(this,"span")}toMarkup(){return ZL.call(this,"span")}}class UM{constructor(t,n,r,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,_L.call(this,n,a),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return re.contains(this.classes,t)}toNode(){return GL.call(this,"a")}toMarkup(){return ZL.call(this,"a")}}class hB{constructor(t,n,r){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.style=r}hasClass(t){return re.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t='<img src="'+re.escape(this.src)+'"'+(' alt="'+re.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=re.hyphenate(r)+":"+this.style[r]+";");return n&&(t+=' style="'+re.escape(n)+'"'),t+="'/>",t}}var uB={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class St{constructor(t,n,r,a,o,l,c,s){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=r||0,this.italic=a||0,this.skew=o||0,this.width=l||0,this.classes=c||[],this.style=s||{},this.maxFontSize=0;var h=XH(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=uB[this.text])}hasClass(t){return re.contains(this.classes,t)}toNode(){var t=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=W(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=l1(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=re.escape(l1(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=re.hyphenate(a)+":"+this.style[a]+";");r&&(t=!0,n+=' style="'+re.escape(r)+'"');var o=re.escape(this.text);return t?(n+=">",n+=o,n+="</span>",n):o}}class Xt{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 r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);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 in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+re.escape(this.attributes[n])+'"');t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</svg>",t}}class c1{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",jL[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+re.escape(this.alternate)+'"/>':'<path d="'+re.escape(jL[this.pathName])+'"/>'}}class _M{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 r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+re.escape(this.attributes[n])+'"');return t+="/>",t}}function WL(e){if(e instanceof St)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function dB(e){if(e instanceof Dn)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var pB={bin:1,close:1,inner:1,open:1,punct:1,rel:1},yB={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ze={math:{},text:{}};function p(e,t,n,r,a,o){ze[e][a]={font:t,group:n,replace:r},o&&r&&(ze[e][r]=ze[e][a])}var y="math",E="text",f="main",M="ams",qe="accent-token",$="bin",tt="close",nn="inner",ie="mathord",Ve="op-token",ft="open",kx="punct",b="rel",Kt="spacing",z="textord";p(y,f,b,"≡","\\equiv",!0),p(y,f,b,"≺","\\prec",!0),p(y,f,b,"≻","\\succ",!0),p(y,f,b,"∼","\\sim",!0),p(y,f,b,"⊥","\\perp"),p(y,f,b,"⪯","\\preceq",!0),p(y,f,b,"⪰","\\succeq",!0),p(y,f,b,"≃","\\simeq",!0),p(y,f,b,"∣","\\mid",!0),p(y,f,b,"≪","\\ll",!0),p(y,f,b,"≫","\\gg",!0),p(y,f,b,"≍","\\asymp",!0),p(y,f,b,"∥","\\parallel"),p(y,f,b,"⋈","\\bowtie",!0),p(y,f,b,"⌣","\\smile",!0),p(y,f,b,"⊑","\\sqsubseteq",!0),p(y,f,b,"⊒","\\sqsupseteq",!0),p(y,f,b,"≐","\\doteq",!0),p(y,f,b,"⌢","\\frown",!0),p(y,f,b,"∋","\\ni",!0),p(y,f,b,"∝","\\propto",!0),p(y,f,b,"⊢","\\vdash",!0),p(y,f,b,"⊣","\\dashv",!0),p(y,f,b,"∋","\\owns"),p(y,f,kx,".","\\ldotp"),p(y,f,kx,"⋅","\\cdotp"),p(y,f,z,"#","\\#"),p(E,f,z,"#","\\#"),p(y,f,z,"&","\\&"),p(E,f,z,"&","\\&"),p(y,f,z,"ℵ","\\aleph",!0),p(y,f,z,"∀","\\forall",!0),p(y,f,z,"ℏ","\\hbar",!0),p(y,f,z,"∃","\\exists",!0),p(y,f,z,"∇","\\nabla",!0),p(y,f,z,"♭","\\flat",!0),p(y,f,z,"ℓ","\\ell",!0),p(y,f,z,"♮","\\natural",!0),p(y,f,z,"♣","\\clubsuit",!0),p(y,f,z,"℘","\\wp",!0),p(y,f,z,"♯","\\sharp",!0),p(y,f,z,"♢","\\diamondsuit",!0),p(y,f,z,"ℜ","\\Re",!0),p(y,f,z,"♡","\\heartsuit",!0),p(y,f,z,"ℑ","\\Im",!0),p(y,f,z,"♠","\\spadesuit",!0),p(y,f,z,"§","\\S",!0),p(E,f,z,"§","\\S"),p(y,f,z,"¶","\\P",!0),p(E,f,z,"¶","\\P"),p(y,f,z,"†","\\dag"),p(E,f,z,"†","\\dag"),p(E,f,z,"†","\\textdagger"),p(y,f,z,"‡","\\ddag"),p(E,f,z,"‡","\\ddag"),p(E,f,z,"‡","\\textdaggerdbl"),p(y,f,tt,"⎱","\\rmoustache",!0),p(y,f,ft,"⎰","\\lmoustache",!0),p(y,f,tt,"⟯","\\rgroup",!0),p(y,f,ft,"⟮","\\lgroup",!0),p(y,f,$,"∓","\\mp",!0),p(y,f,$,"⊖","\\ominus",!0),p(y,f,$,"⊎","\\uplus",!0),p(y,f,$,"⊓","\\sqcap",!0),p(y,f,$,"∗","\\ast"),p(y,f,$,"⊔","\\sqcup",!0),p(y,f,$,"◯","\\bigcirc",!0),p(y,f,$,"∙","\\bullet",!0),p(y,f,$,"‡","\\ddagger"),p(y,f,$,"≀","\\wr",!0),p(y,f,$,"⨿","\\amalg"),p(y,f,$,"&","\\And"),p(y,f,b,"⟵","\\longleftarrow",!0),p(y,f,b,"⇐","\\Leftarrow",!0),p(y,f,b,"⟸","\\Longleftarrow",!0),p(y,f,b,"⟶","\\longrightarrow",!0),p(y,f,b,"⇒","\\Rightarrow",!0),p(y,f,b,"⟹","\\Longrightarrow",!0),p(y,f,b,"↔","\\leftrightarrow",!0),p(y,f,b,"⟷","\\longleftrightarrow",!0),p(y,f,b,"⇔","\\Leftrightarrow",!0),p(y,f,b,"⟺","\\Longleftrightarrow",!0),p(y,f,b,"↦","\\mapsto",!0),p(y,f,b,"⟼","\\longmapsto",!0),p(y,f,b,"↗","\\nearrow",!0),p(y,f,b,"↩","\\hookleftarrow",!0),p(y,f,b,"↪","\\hookrightarrow",!0),p(y,f,b,"↘","\\searrow",!0),p(y,f,b,"↼","\\leftharpoonup",!0),p(y,f,b,"⇀","\\rightharpoonup",!0),p(y,f,b,"↙","\\swarrow",!0),p(y,f,b,"↽","\\leftharpoondown",!0),p(y,f,b,"⇁","\\rightharpoondown",!0),p(y,f,b,"↖","\\nwarrow",!0),p(y,f,b,"⇌","\\rightleftharpoons",!0),p(y,M,b,"≮","\\nless",!0),p(y,M,b,"","\\@nleqslant"),p(y,M,b,"","\\@nleqq"),p(y,M,b,"⪇","\\lneq",!0),p(y,M,b,"≨","\\lneqq",!0),p(y,M,b,"","\\@lvertneqq"),p(y,M,b,"⋦","\\lnsim",!0),p(y,M,b,"⪉","\\lnapprox",!0),p(y,M,b,"⊀","\\nprec",!0),p(y,M,b,"⋠","\\npreceq",!0),p(y,M,b,"⋨","\\precnsim",!0),p(y,M,b,"⪹","\\precnapprox",!0),p(y,M,b,"≁","\\nsim",!0),p(y,M,b,"","\\@nshortmid"),p(y,M,b,"∤","\\nmid",!0),p(y,M,b,"⊬","\\nvdash",!0),p(y,M,b,"⊭","\\nvDash",!0),p(y,M,b,"⋪","\\ntriangleleft"),p(y,M,b,"⋬","\\ntrianglelefteq",!0),p(y,M,b,"⊊","\\subsetneq",!0),p(y,M,b,"","\\@varsubsetneq"),p(y,M,b,"⫋","\\subsetneqq",!0),p(y,M,b,"","\\@varsubsetneqq"),p(y,M,b,"≯","\\ngtr",!0),p(y,M,b,"","\\@ngeqslant"),p(y,M,b,"","\\@ngeqq"),p(y,M,b,"⪈","\\gneq",!0),p(y,M,b,"≩","\\gneqq",!0),p(y,M,b,"","\\@gvertneqq"),p(y,M,b,"⋧","\\gnsim",!0),p(y,M,b,"⪊","\\gnapprox",!0),p(y,M,b,"⊁","\\nsucc",!0),p(y,M,b,"⋡","\\nsucceq",!0),p(y,M,b,"⋩","\\succnsim",!0),p(y,M,b,"⪺","\\succnapprox",!0),p(y,M,b,"≆","\\ncong",!0),p(y,M,b,"","\\@nshortparallel"),p(y,M,b,"∦","\\nparallel",!0),p(y,M,b,"⊯","\\nVDash",!0),p(y,M,b,"⋫","\\ntriangleright"),p(y,M,b,"⋭","\\ntrianglerighteq",!0),p(y,M,b,"","\\@nsupseteqq"),p(y,M,b,"⊋","\\supsetneq",!0),p(y,M,b,"","\\@varsupsetneq"),p(y,M,b,"⫌","\\supsetneqq",!0),p(y,M,b,"","\\@varsupsetneqq"),p(y,M,b,"⊮","\\nVdash",!0),p(y,M,b,"⪵","\\precneqq",!0),p(y,M,b,"⪶","\\succneqq",!0),p(y,M,b,"","\\@nsubseteqq"),p(y,M,$,"⊴","\\unlhd"),p(y,M,$,"⊵","\\unrhd"),p(y,M,b,"↚","\\nleftarrow",!0),p(y,M,b,"↛","\\nrightarrow",!0),p(y,M,b,"⇍","\\nLeftarrow",!0),p(y,M,b,"⇏","\\nRightarrow",!0),p(y,M,b,"↮","\\nleftrightarrow",!0),p(y,M,b,"⇎","\\nLeftrightarrow",!0),p(y,M,b,"△","\\vartriangle"),p(y,M,z,"ℏ","\\hslash"),p(y,M,z,"▽","\\triangledown"),p(y,M,z,"◊","\\lozenge"),p(y,M,z,"Ⓢ","\\circledS"),p(y,M,z,"®","\\circledR"),p(E,M,z,"®","\\circledR"),p(y,M,z,"∡","\\measuredangle",!0),p(y,M,z,"∄","\\nexists"),p(y,M,z,"℧","\\mho"),p(y,M,z,"Ⅎ","\\Finv",!0),p(y,M,z,"⅁","\\Game",!0),p(y,M,z,"‵","\\backprime"),p(y,M,z,"▲","\\blacktriangle"),p(y,M,z,"▼","\\blacktriangledown"),p(y,M,z,"■","\\blacksquare"),p(y,M,z,"⧫","\\blacklozenge"),p(y,M,z,"★","\\bigstar"),p(y,M,z,"∢","\\sphericalangle",!0),p(y,M,z,"∁","\\complement",!0),p(y,M,z,"ð","\\eth",!0),p(E,f,z,"ð","ð"),p(y,M,z,"╱","\\diagup"),p(y,M,z,"╲","\\diagdown"),p(y,M,z,"□","\\square"),p(y,M,z,"□","\\Box"),p(y,M,z,"◊","\\Diamond"),p(y,M,z,"¥","\\yen",!0),p(E,M,z,"¥","\\yen",!0),p(y,M,z,"✓","\\checkmark",!0),p(E,M,z,"✓","\\checkmark"),p(y,M,z,"ℶ","\\beth",!0),p(y,M,z,"ℸ","\\daleth",!0),p(y,M,z,"ℷ","\\gimel",!0),p(y,M,z,"ϝ","\\digamma",!0),p(y,M,z,"ϰ","\\varkappa"),p(y,M,ft,"┌","\\@ulcorner",!0),p(y,M,tt,"┐","\\@urcorner",!0),p(y,M,ft,"└","\\@llcorner",!0),p(y,M,tt,"┘","\\@lrcorner",!0),p(y,M,b,"≦","\\leqq",!0),p(y,M,b,"⩽","\\leqslant",!0),p(y,M,b,"⪕","\\eqslantless",!0),p(y,M,b,"≲","\\lesssim",!0),p(y,M,b,"⪅","\\lessapprox",!0),p(y,M,b,"≊","\\approxeq",!0),p(y,M,$,"⋖","\\lessdot"),p(y,M,b,"⋘","\\lll",!0),p(y,M,b,"≶","\\lessgtr",!0),p(y,M,b,"⋚","\\lesseqgtr",!0),p(y,M,b,"⪋","\\lesseqqgtr",!0),p(y,M,b,"≑","\\doteqdot"),p(y,M,b,"≓","\\risingdotseq",!0),p(y,M,b,"≒","\\fallingdotseq",!0),p(y,M,b,"∽","\\backsim",!0),p(y,M,b,"⋍","\\backsimeq",!0),p(y,M,b,"⫅","\\subseteqq",!0),p(y,M,b,"⋐","\\Subset",!0),p(y,M,b,"⊏","\\sqsubset",!0),p(y,M,b,"≼","\\preccurlyeq",!0),p(y,M,b,"⋞","\\curlyeqprec",!0),p(y,M,b,"≾","\\precsim",!0),p(y,M,b,"⪷","\\precapprox",!0),p(y,M,b,"⊲","\\vartriangleleft"),p(y,M,b,"⊴","\\trianglelefteq"),p(y,M,b,"⊨","\\vDash",!0),p(y,M,b,"⊪","\\Vvdash",!0),p(y,M,b,"⌣","\\smallsmile"),p(y,M,b,"⌢","\\smallfrown"),p(y,M,b,"≏","\\bumpeq",!0),p(y,M,b,"≎","\\Bumpeq",!0),p(y,M,b,"≧","\\geqq",!0),p(y,M,b,"⩾","\\geqslant",!0),p(y,M,b,"⪖","\\eqslantgtr",!0),p(y,M,b,"≳","\\gtrsim",!0),p(y,M,b,"⪆","\\gtrapprox",!0),p(y,M,$,"⋗","\\gtrdot"),p(y,M,b,"⋙","\\ggg",!0),p(y,M,b,"≷","\\gtrless",!0),p(y,M,b,"⋛","\\gtreqless",!0),p(y,M,b,"⪌","\\gtreqqless",!0),p(y,M,b,"≖","\\eqcirc",!0),p(y,M,b,"≗","\\circeq",!0),p(y,M,b,"≜","\\triangleq",!0),p(y,M,b,"∼","\\thicksim"),p(y,M,b,"≈","\\thickapprox"),p(y,M,b,"⫆","\\supseteqq",!0),p(y,M,b,"⋑","\\Supset",!0),p(y,M,b,"⊐","\\sqsupset",!0),p(y,M,b,"≽","\\succcurlyeq",!0),p(y,M,b,"⋟","\\curlyeqsucc",!0),p(y,M,b,"≿","\\succsim",!0),p(y,M,b,"⪸","\\succapprox",!0),p(y,M,b,"⊳","\\vartriangleright"),p(y,M,b,"⊵","\\trianglerighteq"),p(y,M,b,"⊩","\\Vdash",!0),p(y,M,b,"∣","\\shortmid"),p(y,M,b,"∥","\\shortparallel"),p(y,M,b,"≬","\\between",!0),p(y,M,b,"⋔","\\pitchfork",!0),p(y,M,b,"∝","\\varpropto"),p(y,M,b,"◀","\\blacktriangleleft"),p(y,M,b,"∴","\\therefore",!0),p(y,M,b,"∍","\\backepsilon"),p(y,M,b,"▶","\\blacktriangleright"),p(y,M,b,"∵","\\because",!0),p(y,M,b,"⋘","\\llless"),p(y,M,b,"⋙","\\gggtr"),p(y,M,$,"⊲","\\lhd"),p(y,M,$,"⊳","\\rhd"),p(y,M,b,"≂","\\eqsim",!0),p(y,f,b,"⋈","\\Join"),p(y,M,b,"≑","\\Doteq",!0),p(y,M,$,"∔","\\dotplus",!0),p(y,M,$,"∖","\\smallsetminus"),p(y,M,$,"⋒","\\Cap",!0),p(y,M,$,"⋓","\\Cup",!0),p(y,M,$,"⩞","\\doublebarwedge",!0),p(y,M,$,"⊟","\\boxminus",!0),p(y,M,$,"⊞","\\boxplus",!0),p(y,M,$,"⋇","\\divideontimes",!0),p(y,M,$,"⋉","\\ltimes",!0),p(y,M,$,"⋊","\\rtimes",!0),p(y,M,$,"⋋","\\leftthreetimes",!0),p(y,M,$,"⋌","\\rightthreetimes",!0),p(y,M,$,"⋏","\\curlywedge",!0),p(y,M,$,"⋎","\\curlyvee",!0),p(y,M,$,"⊝","\\circleddash",!0),p(y,M,$,"⊛","\\circledast",!0),p(y,M,$,"⋅","\\centerdot"),p(y,M,$,"⊺","\\intercal",!0),p(y,M,$,"⋒","\\doublecap"),p(y,M,$,"⋓","\\doublecup"),p(y,M,$,"⊠","\\boxtimes",!0),p(y,M,b,"⇢","\\dashrightarrow",!0),p(y,M,b,"⇠","\\dashleftarrow",!0),p(y,M,b,"⇇","\\leftleftarrows",!0),p(y,M,b,"⇆","\\leftrightarrows",!0),p(y,M,b,"⇚","\\Lleftarrow",!0),p(y,M,b,"↞","\\twoheadleftarrow",!0),p(y,M,b,"↢","\\leftarrowtail",!0),p(y,M,b,"↫","\\looparrowleft",!0),p(y,M,b,"⇋","\\leftrightharpoons",!0),p(y,M,b,"↶","\\curvearrowleft",!0),p(y,M,b,"↺","\\circlearrowleft",!0),p(y,M,b,"↰","\\Lsh",!0),p(y,M,b,"⇈","\\upuparrows",!0),p(y,M,b,"↿","\\upharpoonleft",!0),p(y,M,b,"⇃","\\downharpoonleft",!0),p(y,f,b,"⊶","\\origof",!0),p(y,f,b,"⊷","\\imageof",!0),p(y,M,b,"⊸","\\multimap",!0),p(y,M,b,"↭","\\leftrightsquigarrow",!0),p(y,M,b,"⇉","\\rightrightarrows",!0),p(y,M,b,"⇄","\\rightleftarrows",!0),p(y,M,b,"↠","\\twoheadrightarrow",!0),p(y,M,b,"↣","\\rightarrowtail",!0),p(y,M,b,"↬","\\looparrowright",!0),p(y,M,b,"↷","\\curvearrowright",!0),p(y,M,b,"↻","\\circlearrowright",!0),p(y,M,b,"↱","\\Rsh",!0),p(y,M,b,"⇊","\\downdownarrows",!0),p(y,M,b,"↾","\\upharpoonright",!0),p(y,M,b,"⇂","\\downharpoonright",!0),p(y,M,b,"⇝","\\rightsquigarrow",!0),p(y,M,b,"⇝","\\leadsto"),p(y,M,b,"⇛","\\Rrightarrow",!0),p(y,M,b,"↾","\\restriction"),p(y,f,z,"‘","`"),p(y,f,z,"$","\\$"),p(E,f,z,"$","\\$"),p(E,f,z,"$","\\textdollar"),p(y,f,z,"%","\\%"),p(E,f,z,"%","\\%"),p(y,f,z,"_","\\_"),p(E,f,z,"_","\\_"),p(E,f,z,"_","\\textunderscore"),p(y,f,z,"∠","\\angle",!0),p(y,f,z,"∞","\\infty",!0),p(y,f,z,"′","\\prime"),p(y,f,z,"△","\\triangle"),p(y,f,z,"Γ","\\Gamma",!0),p(y,f,z,"Δ","\\Delta",!0),p(y,f,z,"Θ","\\Theta",!0),p(y,f,z,"Λ","\\Lambda",!0),p(y,f,z,"Ξ","\\Xi",!0),p(y,f,z,"Π","\\Pi",!0),p(y,f,z,"Σ","\\Sigma",!0),p(y,f,z,"Υ","\\Upsilon",!0),p(y,f,z,"Φ","\\Phi",!0),p(y,f,z,"Ψ","\\Psi",!0),p(y,f,z,"Ω","\\Omega",!0),p(y,f,z,"A","Α"),p(y,f,z,"B","Β"),p(y,f,z,"E","Ε"),p(y,f,z,"Z","Ζ"),p(y,f,z,"H","Η"),p(y,f,z,"I","Ι"),p(y,f,z,"K","Κ"),p(y,f,z,"M","Μ"),p(y,f,z,"N","Ν"),p(y,f,z,"O","Ο"),p(y,f,z,"P","Ρ"),p(y,f,z,"T","Τ"),p(y,f,z,"X","Χ"),p(y,f,z,"¬","\\neg",!0),p(y,f,z,"¬","\\lnot"),p(y,f,z,"⊤","\\top"),p(y,f,z,"⊥","\\bot"),p(y,f,z,"∅","\\emptyset"),p(y,M,z,"∅","\\varnothing"),p(y,f,ie,"α","\\alpha",!0),p(y,f,ie,"β","\\beta",!0),p(y,f,ie,"γ","\\gamma",!0),p(y,f,ie,"δ","\\delta",!0),p(y,f,ie,"ϵ","\\epsilon",!0),p(y,f,ie,"ζ","\\zeta",!0),p(y,f,ie,"η","\\eta",!0),p(y,f,ie,"θ","\\theta",!0),p(y,f,ie,"ι","\\iota",!0),p(y,f,ie,"κ","\\kappa",!0),p(y,f,ie,"λ","\\lambda",!0),p(y,f,ie,"μ","\\mu",!0),p(y,f,ie,"ν","\\nu",!0),p(y,f,ie,"ξ","\\xi",!0),p(y,f,ie,"ο","\\omicron",!0),p(y,f,ie,"π","\\pi",!0),p(y,f,ie,"ρ","\\rho",!0),p(y,f,ie,"σ","\\sigma",!0),p(y,f,ie,"τ","\\tau",!0),p(y,f,ie,"υ","\\upsilon",!0),p(y,f,ie,"ϕ","\\phi",!0),p(y,f,ie,"χ","\\chi",!0),p(y,f,ie,"ψ","\\psi",!0),p(y,f,ie,"ω","\\omega",!0),p(y,f,ie,"ε","\\varepsilon",!0),p(y,f,ie,"ϑ","\\vartheta",!0),p(y,f,ie,"ϖ","\\varpi",!0),p(y,f,ie,"ϱ","\\varrho",!0),p(y,f,ie,"ς","\\varsigma",!0),p(y,f,ie,"φ","\\varphi",!0),p(y,f,$,"∗","*",!0),p(y,f,$,"+","+"),p(y,f,$,"−","-",!0),p(y,f,$,"⋅","\\cdot",!0),p(y,f,$,"∘","\\circ",!0),p(y,f,$,"÷","\\div",!0),p(y,f,$,"±","\\pm",!0),p(y,f,$,"×","\\times",!0),p(y,f,$,"∩","\\cap",!0),p(y,f,$,"∪","\\cup",!0),p(y,f,$,"∖","\\setminus",!0),p(y,f,$,"∧","\\land"),p(y,f,$,"∨","\\lor"),p(y,f,$,"∧","\\wedge",!0),p(y,f,$,"∨","\\vee",!0),p(y,f,z,"√","\\surd"),p(y,f,ft,"⟨","\\langle",!0),p(y,f,ft,"∣","\\lvert"),p(y,f,ft,"∥","\\lVert"),p(y,f,tt,"?","?"),p(y,f,tt,"!","!"),p(y,f,tt,"⟩","\\rangle",!0),p(y,f,tt,"∣","\\rvert"),p(y,f,tt,"∥","\\rVert"),p(y,f,b,"=","="),p(y,f,b,":",":"),p(y,f,b,"≈","\\approx",!0),p(y,f,b,"≅","\\cong",!0),p(y,f,b,"≥","\\ge"),p(y,f,b,"≥","\\geq",!0),p(y,f,b,"←","\\gets"),p(y,f,b,">","\\gt",!0),p(y,f,b,"∈","\\in",!0),p(y,f,b,"","\\@not"),p(y,f,b,"⊂","\\subset",!0),p(y,f,b,"⊃","\\supset",!0),p(y,f,b,"⊆","\\subseteq",!0),p(y,f,b,"⊇","\\supseteq",!0),p(y,M,b,"⊈","\\nsubseteq",!0),p(y,M,b,"⊉","\\nsupseteq",!0),p(y,f,b,"⊨","\\models"),p(y,f,b,"←","\\leftarrow",!0),p(y,f,b,"≤","\\le"),p(y,f,b,"≤","\\leq",!0),p(y,f,b,"<","\\lt",!0),p(y,f,b,"→","\\rightarrow",!0),p(y,f,b,"→","\\to"),p(y,M,b,"≱","\\ngeq",!0),p(y,M,b,"≰","\\nleq",!0),p(y,f,Kt," ","\\ "),p(y,f,Kt," ","\\space"),p(y,f,Kt," ","\\nobreakspace"),p(E,f,Kt," ","\\ "),p(E,f,Kt," "," "),p(E,f,Kt," ","\\space"),p(E,f,Kt," ","\\nobreakspace"),p(y,f,Kt,null,"\\nobreak"),p(y,f,Kt,null,"\\allowbreak"),p(y,f,kx,",",","),p(y,f,kx,";",";"),p(y,M,$,"⊼","\\barwedge",!0),p(y,M,$,"⊻","\\veebar",!0),p(y,f,$,"⊙","\\odot",!0),p(y,f,$,"⊕","\\oplus",!0),p(y,f,$,"⊗","\\otimes",!0),p(y,f,z,"∂","\\partial",!0),p(y,f,$,"⊘","\\oslash",!0),p(y,M,$,"⊚","\\circledcirc",!0),p(y,M,$,"⊡","\\boxdot",!0),p(y,f,$,"△","\\bigtriangleup"),p(y,f,$,"▽","\\bigtriangledown"),p(y,f,$,"†","\\dagger"),p(y,f,$,"⋄","\\diamond"),p(y,f,$,"⋆","\\star"),p(y,f,$,"◃","\\triangleleft"),p(y,f,$,"▹","\\triangleright"),p(y,f,ft,"{","\\{"),p(E,f,z,"{","\\{"),p(E,f,z,"{","\\textbraceleft"),p(y,f,tt,"}","\\}"),p(E,f,z,"}","\\}"),p(E,f,z,"}","\\textbraceright"),p(y,f,ft,"{","\\lbrace"),p(y,f,tt,"}","\\rbrace"),p(y,f,ft,"[","\\lbrack",!0),p(E,f,z,"[","\\lbrack",!0),p(y,f,tt,"]","\\rbrack",!0),p(E,f,z,"]","\\rbrack",!0),p(y,f,ft,"(","\\lparen",!0),p(y,f,tt,")","\\rparen",!0),p(E,f,z,"<","\\textless",!0),p(E,f,z,">","\\textgreater",!0),p(y,f,ft,"⌊","\\lfloor",!0),p(y,f,tt,"⌋","\\rfloor",!0),p(y,f,ft,"⌈","\\lceil",!0),p(y,f,tt,"⌉","\\rceil",!0),p(y,f,z,"\\","\\backslash"),p(y,f,z,"∣","|"),p(y,f,z,"∣","\\vert"),p(E,f,z,"|","\\textbar",!0),p(y,f,z,"∥","\\|"),p(y,f,z,"∥","\\Vert"),p(E,f,z,"∥","\\textbardbl"),p(E,f,z,"~","\\textasciitilde"),p(E,f,z,"\\","\\textbackslash"),p(E,f,z,"^","\\textasciicircum"),p(y,f,b,"↑","\\uparrow",!0),p(y,f,b,"⇑","\\Uparrow",!0),p(y,f,b,"↓","\\downarrow",!0),p(y,f,b,"⇓","\\Downarrow",!0),p(y,f,b,"↕","\\updownarrow",!0),p(y,f,b,"⇕","\\Updownarrow",!0),p(y,f,Ve,"∐","\\coprod"),p(y,f,Ve,"⋁","\\bigvee"),p(y,f,Ve,"⋀","\\bigwedge"),p(y,f,Ve,"⨄","\\biguplus"),p(y,f,Ve,"⋂","\\bigcap"),p(y,f,Ve,"⋃","\\bigcup"),p(y,f,Ve,"∫","\\int"),p(y,f,Ve,"∫","\\intop"),p(y,f,Ve,"∬","\\iint"),p(y,f,Ve,"∭","\\iiint"),p(y,f,Ve,"∏","\\prod"),p(y,f,Ve,"∑","\\sum"),p(y,f,Ve,"⨂","\\bigotimes"),p(y,f,Ve,"⨁","\\bigoplus"),p(y,f,Ve,"⨀","\\bigodot"),p(y,f,Ve,"∮","\\oint"),p(y,f,Ve,"∯","\\oiint"),p(y,f,Ve,"∰","\\oiiint"),p(y,f,Ve,"⨆","\\bigsqcup"),p(y,f,Ve,"∫","\\smallint"),p(E,f,nn,"…","\\textellipsis"),p(y,f,nn,"…","\\mathellipsis"),p(E,f,nn,"…","\\ldots",!0),p(y,f,nn,"…","\\ldots",!0),p(y,f,nn,"⋯","\\@cdots",!0),p(y,f,nn,"⋱","\\ddots",!0),p(y,f,z,"⋮","\\varvdots"),p(E,f,z,"⋮","\\varvdots"),p(y,f,qe,"ˊ","\\acute"),p(y,f,qe,"ˋ","\\grave"),p(y,f,qe,"¨","\\ddot"),p(y,f,qe,"~","\\tilde"),p(y,f,qe,"ˉ","\\bar"),p(y,f,qe,"˘","\\breve"),p(y,f,qe,"ˇ","\\check"),p(y,f,qe,"^","\\hat"),p(y,f,qe,"⃗","\\vec"),p(y,f,qe,"˙","\\dot"),p(y,f,qe,"˚","\\mathring"),p(y,f,ie,"","\\@imath"),p(y,f,ie,"","\\@jmath"),p(y,f,z,"ı","ı"),p(y,f,z,"ȷ","ȷ"),p(E,f,z,"ı","\\i",!0),p(E,f,z,"ȷ","\\j",!0),p(E,f,z,"ß","\\ss",!0),p(E,f,z,"æ","\\ae",!0),p(E,f,z,"œ","\\oe",!0),p(E,f,z,"ø","\\o",!0),p(E,f,z,"Æ","\\AE",!0),p(E,f,z,"Œ","\\OE",!0),p(E,f,z,"Ø","\\O",!0),p(E,f,qe,"ˊ","\\'"),p(E,f,qe,"ˋ","\\`"),p(E,f,qe,"ˆ","\\^"),p(E,f,qe,"˜","\\~"),p(E,f,qe,"ˉ","\\="),p(E,f,qe,"˘","\\u"),p(E,f,qe,"˙","\\."),p(E,f,qe,"¸","\\c"),p(E,f,qe,"˚","\\r"),p(E,f,qe,"ˇ","\\v"),p(E,f,qe,"¨",'\\"'),p(E,f,qe,"˝","\\H"),p(E,f,qe,"◯","\\textcircled");var XL={"--":!0,"---":!0,"``":!0,"''":!0};p(E,f,z,"–","--",!0),p(E,f,z,"–","\\textendash"),p(E,f,z,"—","---",!0),p(E,f,z,"—","\\textemdash"),p(E,f,z,"‘","`",!0),p(E,f,z,"‘","\\textquoteleft"),p(E,f,z,"’","'",!0),p(E,f,z,"’","\\textquoteright"),p(E,f,z,"“","``",!0),p(E,f,z,"“","\\textquotedblleft"),p(E,f,z,"”","''",!0),p(E,f,z,"”","\\textquotedblright"),p(y,f,z,"°","\\degree",!0),p(E,f,z,"°","\\degree"),p(E,f,z,"°","\\textdegree",!0),p(y,f,z,"£","\\pounds"),p(y,f,z,"£","\\mathsterling",!0),p(E,f,z,"£","\\pounds"),p(E,f,z,"£","\\textsterling",!0),p(y,M,z,"✠","\\maltese"),p(E,M,z,"✠","\\maltese");for(var KL='0123456789/@."',GM=0;GM<KL.length;GM++){var YL=KL.charAt(GM);p(y,f,z,YL,YL)}for(var QL='0123456789!@*()-=+";:?/.,',ZM=0;ZM<QL.length;ZM++){var JL=QL.charAt(ZM);p(E,f,z,JL,JL)}for(var mx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",WM=0;WM<mx.length;WM++){var fx=mx.charAt(WM);p(y,f,ie,fx,fx),p(E,f,z,fx,fx)}p(y,M,z,"C","ℂ"),p(E,M,z,"C","ℂ"),p(y,M,z,"H","ℍ"),p(E,M,z,"H","ℍ"),p(y,M,z,"N","ℕ"),p(E,M,z,"N","ℕ"),p(y,M,z,"P","ℙ"),p(E,M,z,"P","ℙ"),p(y,M,z,"Q","ℚ"),p(E,M,z,"Q","ℚ"),p(y,M,z,"R","ℝ"),p(E,M,z,"R","ℝ"),p(y,M,z,"Z","ℤ"),p(E,M,z,"Z","ℤ"),p(y,f,ie,"h","ℎ"),p(E,f,ie,"h","ℎ");for(var le="",nt=0;nt<mx.length;nt++){var Fe=mx.charAt(nt);le=String.fromCharCode(55349,56320+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56372+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56424+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56580+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56684+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56736+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56788+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56840+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56944+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),nt<26&&(le=String.fromCharCode(55349,56632+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le),le=String.fromCharCode(55349,56476+nt),p(y,f,ie,Fe,le),p(E,f,z,Fe,le))}le="𝕜",p(y,f,ie,"k",le),p(E,f,z,"k",le);for(var F0=0;F0<10;F0++){var s1=F0.toString();le=String.fromCharCode(55349,57294+F0),p(y,f,ie,s1,le),p(E,f,z,s1,le),le=String.fromCharCode(55349,57314+F0),p(y,f,ie,s1,le),p(E,f,z,s1,le),le=String.fromCharCode(55349,57324+F0),p(y,f,ie,s1,le),p(E,f,z,s1,le),le=String.fromCharCode(55349,57334+F0),p(y,f,ie,s1,le),p(E,f,z,s1,le)}for(var XM="ÐÞþ",KM=0;KM<XM.length;KM++){var gx=XM.charAt(KM);p(y,f,ie,gx,gx),p(E,f,z,gx,gx)}var vx=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],$L=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],kB=function(t,n){var r=t.charCodeAt(0),a=t.charCodeAt(1),o=(r-55296)*1024+(a-56320)+65536,l=n==="math"?0:1;if(119808<=o&&o<120484){var c=Math.floor((o-119808)/26);return[vx[c][2],vx[c][l]]}else if(120782<=o&&o<=120831){var s=Math.floor((o-120782)/10);return[$L[s][2],$L[s][l]]}else{if(o===120485||o===120486)return[vx[0][2],vx[0][l]];if(120486<o&&o<120782)return["",""];throw new U("Unsupported character: "+t)}},xx=function(t,n,r){return ze[r][t]&&ze[r][t].replace&&(t=ze[r][t].replace),{value:t,metrics:OM(t,n,r)}},Tt=function(t,n,r,a,o){var l=xx(t,n,r),c=l.metrics;t=l.value;var s;if(c){var h=c.italic;(r==="text"||a&&a.font==="mathit")&&(h=0),s=new St(t,c.height,c.depth,h,c.skew,c.width,o)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+r+"'")),s=new St(t,0,0,0,0,0,o);if(a){s.maxFontSize=a.sizeMultiplier,a.style.isTight()&&s.classes.push("mtight");var u=a.getColor();u&&(s.style.color=u)}return s},mB=function(t,n,r,a){return a===void 0&&(a=[]),r.font==="boldsymbol"&&xx(t,"Main-Bold",n).metrics?Tt(t,"Main-Bold",n,r,a.concat(["mathbf"])):t==="\\"||ze[n][t].font==="main"?Tt(t,"Main-Regular",n,r,a):Tt(t,"AMS-Regular",n,r,a.concat(["amsrm"]))},fB=function(t,n,r,a,o){return o!=="textord"&&xx(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},gB=function(t,n,r){var a=t.mode,o=t.text,l=["mord"],c=a==="math"||a==="text"&&n.font,s=c?n.font:n.fontFamily,h="",u="";if(o.charCodeAt(0)===55349&&([h,u]=kB(o,a)),h.length>0)return Tt(o,h,a,n,l.concat(u));if(s){var d,m;if(s==="boldsymbol"){var k=fB(o,a,n,l,r);d=k.fontName,m=[k.fontClass]}else c?(d=nS[s].fontName,m=[s]):(d=Mx(s,n.fontWeight,n.fontShape),m=[s,n.fontWeight,n.fontShape]);if(xx(o,d,a).metrics)return Tt(o,d,a,n,l.concat(m));if(XL.hasOwnProperty(o)&&d.slice(0,10)==="Typewriter"){for(var g=[],x=0;x<o.length;x++)g.push(Tt(o[x],d,a,n,l.concat(m)));return tS(g)}}if(r==="mathord")return Tt(o,"Math-Italic",a,n,l.concat(["mathnormal"]));if(r==="textord"){var C=ze[a][o]&&ze[a][o].font;if(C==="ams"){var w=Mx("amsrm",n.fontWeight,n.fontShape);return Tt(o,w,a,n,l.concat("amsrm",n.fontWeight,n.fontShape))}else if(C==="main"||!C){var I=Mx("textrm",n.fontWeight,n.fontShape);return Tt(o,I,a,n,l.concat(n.fontWeight,n.fontShape))}else{var q=Mx(C,n.fontWeight,n.fontShape);return Tt(o,q,a,n,l.concat(q,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},vB=(e,t)=>{if(l1(e.classes)!==l1(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},xB=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof St&&r instanceof St&&vB(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},YM=function(t){for(var n=0,r=0,a=0,o=0;o<t.children.length;o++){var l=t.children[o];l.height>n&&(n=l.height),l.depth>r&&(r=l.depth),l.maxFontSize>a&&(a=l.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=a},st=function(t,n,r,a){var o=new Dn(t,n,r,a);return YM(o),o},eS=(e,t,n,r)=>new Dn(e,t,n,r),MB=function(t,n,r){var a=st([t],[],n);return a.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),a.style.borderBottomWidth=W(a.height),a.maxFontSize=1,a},wB=function(t,n,r,a){var o=new UM(t,n,r,a);return YM(o),o},tS=function(t){var n=new Fn(t);return YM(n),n},bB=function(t,n){return t instanceof Fn?st([],[t],n):t},LB=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],a=-n[0].shift-n[0].elem.depth,o=a,l=1;l<n.length;l++){var c=-n[l].shift-o-n[l].elem.depth,s=c-(n[l-1].elem.height+n[l-1].elem.depth);o=o+c,r.push({type:"kern",size:s}),r.push(n[l])}return{children:r,depth:a}}var h;if(t.positionType==="top"){for(var u=t.positionData,d=0;d<t.children.length;d++){var m=t.children[d];u-=m.type==="kern"?m.size:m.elem.height+m.elem.depth}h=u}else if(t.positionType==="bottom")h=-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")h=-k.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")h=-k.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:h}},SB=function(t,n){for(var{children:r,depth:a}=LB(t),o=0,l=0;l<r.length;l++){var c=r[l];if(c.type==="elem"){var s=c.elem;o=Math.max(o,s.maxFontSize,s.height)}}o+=2;var h=st(["pstrut"],[]);h.style.height=W(o);for(var u=[],d=a,m=a,k=a,g=0;g<r.length;g++){var x=r[g];if(x.type==="kern")k+=x.size;else{var C=x.elem,w=x.wrapperClasses||[],I=x.wrapperStyle||{},q=st(w,[h,C],void 0,I);q.style.top=W(-o-k-C.depth),x.marginLeft&&(q.style.marginLeft=x.marginLeft),x.marginRight&&(q.style.marginRight=x.marginRight),u.push(q),k+=C.height+C.depth}d=Math.min(d,k),m=Math.max(m,k)}var j=st(["vlist"],u);j.style.height=W(m);var R;if(d<0){var T=st([],[]),F=st(["vlist"],[T]);F.style.height=W(-d);var K=st(["vlist-s"],[new St("")]);R=[st(["vlist-r"],[j,K]),st(["vlist-r"],[F])]}else R=[st(["vlist-r"],[j])];var V=st(["vlist-t"],R);return R.length===2&&V.classes.push("vlist-t2"),V.height=m,V.depth=-d,V},CB=(e,t)=>{var n=st(["mspace"],[],t),r=Be(e,t);return n.style.marginRight=W(r),n},Mx=function(t,n,r){var a="";switch(t){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=t}var o;return n==="textbf"&&r==="textit"?o="BoldItalic":n==="textbf"?o="Bold":n==="textit"?o="Italic":o="Regular",a+"-"+o},nS={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"}},rS={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},IB=function(t,n){var[r,a,o]=rS[t],l=new c1(r),c=new Xt([l],{width:W(a),height:W(o),style:"width:"+W(a),viewBox:"0 0 "+1e3*a+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),s=eS(["overlay"],[c],n);return s.height=o,s.style.height=W(o),s.style.width=W(a),s},H={fontMap:nS,makeSymbol:Tt,mathsym:mB,makeSpan:st,makeSvgSpan:eS,makeLineSpan:MB,makeAnchor:wB,makeFragment:tS,wrapFragment:bB,makeVList:SB,makeOrd:gB,makeGlue:CB,staticSvg:IB,svgData:rS,tryCombineChars:xB},Pe={number:3,unit:"mu"},D0={number:4,unit:"mu"},Yt={number:5,unit:"mu"},AB={mord:{mop:Pe,mbin:D0,mrel:Yt,minner:Pe},mop:{mord:Pe,mop:Pe,mrel:Yt,minner:Pe},mbin:{mord:D0,mop:D0,mopen:D0,minner:D0},mrel:{mord:Yt,mop:Yt,mopen:Yt,minner:Yt},mopen:{},mclose:{mop:Pe,mbin:D0,mrel:Yt,minner:Pe},mpunct:{mord:Pe,mop:Pe,mrel:Yt,mopen:Pe,mclose:Pe,mpunct:Pe,minner:Pe},minner:{mord:Pe,mop:Pe,mbin:D0,mrel:Yt,mopen:Pe,mpunct:Pe,minner:Pe}},zB={mord:{mop:Pe},mop:{mord:Pe,mop:Pe},mbin:{},mrel:{},mopen:{},mclose:{mop:Pe},mpunct:{},minner:{mop:Pe}},aS={},wx={},bx={};function J(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:o,mathmlBuilder:l}=e,c={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:a},s=0;s<n.length;++s)aS[n[s]]=c;t&&(o&&(wx[t]=o),l&&(bx[t]=l))}function R0(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;J({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var Lx=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Re=function(t){return t.type==="ordgroup"?t.body:[t]},Qt=H.makeSpan,TB=["leftmost","mbin","mopen","mrel","mop","mpunct"],qB=["rightmost","mrel","mclose","mpunct"],HB={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT},BB={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},_e=function(t,n,r,a){a===void 0&&(a=[null,null]);for(var o=[],l=0;l<t.length;l++){var c=ve(t[l],n);if(c instanceof Fn){var s=c.children;o.push(...s)}else o.push(c)}if(H.tryCombineChars(o),!r)return o;var h=n;if(t.length===1){var u=t[0];u.type==="sizing"?h=n.havingSize(u.size):u.type==="styling"&&(h=n.havingStyle(HB[u.style]))}var d=Qt([a[0]||"leftmost"],[],n),m=Qt([a[1]||"rightmost"],[],n),k=r==="root";return iS(o,(g,x)=>{var C=x.classes[0],w=g.classes[0];C==="mbin"&&re.contains(qB,w)?x.classes[0]="mord":w==="mbin"&&re.contains(TB,C)&&(g.classes[0]="mord")},{node:d},m,k),iS(o,(g,x)=>{var C=QM(x),w=QM(g),I=C&&w?g.hasClass("mtight")?zB[C][w]:AB[C][w]:null;if(I)return H.makeGlue(I,h)},{node:d},m,k),o},iS=function e(t,n,r,a,o){a&&t.push(a);for(var l=0;l<t.length;l++){var c=t[l],s=oS(c);if(s){e(s.children,n,r,null,o);continue}var h=!c.hasClass("mspace");if(h){var u=n(c,r.node);u&&(r.insertAfter?r.insertAfter(u):(t.unshift(u),l++))}h?r.node=c:o&&c.hasClass("newline")&&(r.node=Qt(["leftmost"])),r.insertAfter=(d=>m=>{t.splice(d+1,0,m),l++})(l)}a&&t.pop()},oS=function(t){return t instanceof Fn||t instanceof UM||t instanceof Dn&&t.hasClass("enclosing")?t:null},PB=function e(t,n){var r=oS(t);if(r){var a=r.children;if(a.length){if(n==="right")return e(a[a.length-1],"right");if(n==="left")return e(a[0],"left")}}return t},QM=function(t,n){return t?(n&&(t=PB(t,n)),BB[t.classes[0]]||null):null},Rn=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Qt(n.concat(r))},ve=function(t,n,r){if(!t)return Qt();if(wx[t.type]){var a=wx[t.type](t,n);if(r&&n.size!==r.size){a=Qt(n.sizingClasses(r),[a],n);var o=n.sizeMultiplier/r.sizeMultiplier;a.height*=o,a.depth*=o}return a}else throw new U("Got group of unknown type: '"+t.type+"'")};function Sx(e,t){var n=Qt(["base"],e,t),r=Qt(["strut"]);return r.style.height=W(n.height+n.depth),n.depth&&(r.style.verticalAlign=W(-n.depth)),n.children.unshift(r),n}function JM(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=_e(e,t,"root"),a;r.length===2&&r[1].hasClass("tag")&&(a=r.pop());for(var o=[],l=[],c=0;c<r.length;c++)if(l.push(r[c]),r[c].hasClass("mbin")||r[c].hasClass("mrel")||r[c].hasClass("allowbreak")){for(var s=!1;c<r.length-1&&r[c+1].hasClass("mspace")&&!r[c+1].hasClass("newline");)c++,l.push(r[c]),r[c].hasClass("nobreak")&&(s=!0);s||(o.push(Sx(l,t)),l=[])}else r[c].hasClass("newline")&&(l.pop(),l.length>0&&(o.push(Sx(l,t)),l=[]),o.push(r[c]));l.length>0&&o.push(Sx(l,t));var h;n?(h=Sx(_e(n,t,!0)),h.classes=["tag"],o.push(h)):a&&o.push(a);var u=Qt(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),h){var d=h.children[0];d.style.height=W(u.height+u.depth),u.depth&&(d.style.verticalAlign=W(-u.depth))}return u}function lS(e){return new Fn(e)}class gt{constructor(t,n,r){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=r||[]}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=l1(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof jt&&this.children[r+1]instanceof jt){for(var a=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof jt;)a+=this.children[++r].toText();t.appendChild(new jt(a).toNode())}else t.appendChild(this.children[r].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=re.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+re.escape(l1(this.classes))+'"'),t+=">";for(var r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class jt{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return re.escape(this.toText())}toText(){return this.text}}class FB{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",W(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+W(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var O={MathNode:gt,TextNode:jt,SpaceNode:FB,newDocumentFragment:lS},Ct=function(t,n,r){return ze[n][t]&&ze[n][t].replace&&t.charCodeAt(0)!==55349&&!(XL.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=ze[n][t].replace),new O.TextNode(t)},$M=function(t){return t.length===1?t[0]:new O.MathNode("mrow",t)},ew=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var a=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var o=t.text;if(re.contains(["\\imath","\\jmath"],o))return null;ze[a][o]&&ze[a][o].replace&&(o=ze[a][o].replace);var l=H.fontMap[r].fontName;return OM(o,l,a)?H.fontMap[r].variant:null};function tw(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof jt&&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 jt&&n.text===","}else return!1}var ht=function(t,n,r){if(t.length===1){var a=Se(t[0],n);return r&&a instanceof gt&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var o=[],l,c=0;c<t.length;c++){var s=Se(t[c],n);if(s instanceof gt&&l instanceof gt){if(s.type==="mtext"&&l.type==="mtext"&&s.getAttribute("mathvariant")===l.getAttribute("mathvariant")){l.children.push(...s.children);continue}else if(s.type==="mn"&&l.type==="mn"){l.children.push(...s.children);continue}else if(tw(s)&&l.type==="mn"){l.children.push(...s.children);continue}else if(s.type==="mn"&&tw(l))s.children=[...l.children,...s.children],o.pop();else if((s.type==="msup"||s.type==="msub")&&s.children.length>=1&&(l.type==="mn"||tw(l))){var h=s.children[0];h instanceof gt&&h.type==="mn"&&(h.children=[...l.children,...h.children],o.pop())}else if(l.type==="mi"&&l.children.length===1){var u=l.children[0];if(u instanceof jt&&u.text==="̸"&&(s.type==="mo"||s.type==="mi"||s.type==="mn")){var d=s.children[0];d instanceof jt&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),o.pop())}}}o.push(s),l=s}return o},h1=function(t,n,r){return $M(ht(t,n,r))},Se=function(t,n){if(!t)return new O.MathNode("mrow");if(bx[t.type]){var r=bx[t.type](t,n);return r}else throw new U("Got group of unknown type: '"+t.type+"'")};function cS(e,t,n,r,a){var o=ht(e,n),l;o.length===1&&o[0]instanceof gt&&re.contains(["mrow","mtable"],o[0].type)?l=o[0]:l=new O.MathNode("mrow",o);var c=new O.MathNode("annotation",[new O.TextNode(t)]);c.setAttribute("encoding","application/x-tex");var s=new O.MathNode("semantics",[l,c]),h=new O.MathNode("math",[s]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&h.setAttribute("display","block");var u=a?"katex":"katex-mathml";return H.makeSpan([u],[h])}var sS=function(t){return new Wt({style:t.displayMode?ae.DISPLAY:ae.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},hS=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=H.makeSpan(r,[t])}return t},DB=function(t,n,r){var a=sS(r),o;if(r.output==="mathml")return cS(t,n,a,r.displayMode,!0);if(r.output==="html"){var l=JM(t,a);o=H.makeSpan(["katex"],[l])}else{var c=cS(t,n,a,r.displayMode,!1),s=JM(t,a);o=H.makeSpan(["katex"],[c,s])}return hS(o,r)},RB=function(t,n,r){var a=sS(r),o=JM(t,a),l=H.makeSpan(["katex"],[o]);return hS(l,r)},EB={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",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":"="},jB=function(t){var n=new O.MathNode("mo",[new O.TextNode(EB[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},OB={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],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]},VB=function(t){return t.type==="ordgroup"?t.body.length:1},NB=function(t,n){function r(){var c=4e5,s=t.label.slice(1);if(re.contains(["widehat","widecheck","widetilde","utilde"],s)){var h=t,u=VB(h.base),d,m,k;if(u>5)s==="widehat"||s==="widecheck"?(d=420,c=2364,k=.42,m=s+"4"):(d=312,c=2340,k=.34,m="tilde4");else{var g=[1,1,2,2,3,3][u];s==="widehat"||s==="widecheck"?(c=[0,1062,2364,2364,2364][g],d=[0,239,300,360,420][g],k=[0,.24,.3,.3,.36,.42][g],m=s+g):(c=[0,600,1033,2339,2340][g],d=[0,260,286,306,312][g],k=[0,.26,.286,.3,.306,.34][g],m="tilde"+g)}var x=new c1(m),C=new Xt([x],{width:"100%",height:W(k),viewBox:"0 0 "+c+" "+d,preserveAspectRatio:"none"});return{span:H.makeSvgSpan([],[C],n),minWidth:0,height:k}}else{var w=[],I=OB[s],[q,j,R]=I,T=R/1e3,F=q.length,K,V;if(F===1){var B=I[3];K=["hide-tail"],V=[B]}else if(F===2)K=["halfarrow-left","halfarrow-right"],V=["xMinYMin","xMaxYMin"];else if(F===3)K=["brace-left","brace-center","brace-right"],V=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
7827
|
+
`+F+" children.");for(var Z=0;Z<F;Z++){var D=new c1(q[Z]),oe=new Xt([D],{width:"400em",height:W(T),viewBox:"0 0 "+c+" "+R,preserveAspectRatio:V[Z]+" slice"}),ne=H.makeSvgSpan([K[Z]],[oe],n);if(F===1)return{span:ne,minWidth:j,height:T};ne.style.height=W(T),w.push(ne)}return{span:H.makeSpan(["stretchy"],w,n),minWidth:j,height:T}}}var{span:a,minWidth:o,height:l}=r();return a.height=l,a.style.height=W(l),o>0&&(a.style.minWidth=W(o)),a},UB=function(t,n,r,a,o){var l,c=t.height+t.depth+r+a;if(/fbox|color|angl/.test(n)){if(l=H.makeSpan(["stretchy",n],[],o),n==="fbox"){var s=o.color&&o.getColor();s&&(l.style.borderColor=s)}}else{var h=[];/^[bx]cancel$/.test(n)&&h.push(new _M({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&h.push(new _M({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Xt(h,{width:"100%",height:W(c)});l=H.makeSvgSpan([],[u],o)}return l.height=c,l.style.height=W(c),l},Jt={encloseSpan:UB,mathMLnode:jB,svgSpan:NB};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 nw(e){var t=Cx(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 Cx(e){return e&&(e.type==="atom"||yB.hasOwnProperty(e.type))?e:null}var rw=(e,t)=>{var n,r,a;e&&e.type==="supsub"?(r=ue(e.base,"accent"),n=r.base,e.base=n,a=dB(ve(e,t)),e.base=r):(r=ue(e,"accent"),n=r.base);var o=ve(n,t.havingCrampedStyle()),l=r.isShifty&&re.isCharacterBox(n),c=0;if(l){var s=re.getBaseElem(n),h=ve(s,t.havingCrampedStyle());c=WL(h).skew}var u=r.label==="\\c",d=u?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight),m;if(r.isStretchy)m=Jt.svgSpan(r,t),m=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:"calc(100% - "+W(2*c)+")",marginLeft:W(2*c)}:void 0}]},t);else{var k,g;r.label==="\\vec"?(k=H.staticSvg("vec",t),g=H.svgData.vec[1]):(k=H.makeOrd({mode:r.mode,text:r.label},t,"textord"),k=WL(k),k.italic=0,g=k.width,u&&(d+=k.depth)),m=H.makeSpan(["accent-body"],[k]);var x=r.label==="\\textcircled";x&&(m.classes.push("accent-full"),d=o.height);var C=c;x||(C-=g/2),m.style.left=W(C),r.label==="\\textcircled"&&(m.style.top=".2em"),m=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-d},{type:"elem",elem:m}]},t)}var w=H.makeSpan(["mord","accent"],[m],t);return a?(a.children[0]=w,a.height=Math.max(w.height,a.height),a.classes[0]="mord",a):w},uS=(e,t)=>{var n=e.isStretchy?Jt.mathMLnode(e.label):new O.MathNode("mo",[Ct(e.label,e.mode)]),r=new O.MathNode("mover",[Se(e.base,t),n]);return r.setAttribute("accent","true"),r},_B=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));J({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=Lx(t[0]),r=!_B.test(e.funcName),a=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:a,base:n}},htmlBuilder:rw,mathmlBuilder:uS}),J({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],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:rw,mathmlBuilder:uS}),J({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:a}},htmlBuilder:(e,t)=>{var n=ve(e.base,t),r=Jt.svgSpan(e,t),a=e.label==="\\utilde"?.12:0,o=H.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]},t);return H.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var n=Jt.mathMLnode(e.label),r=new O.MathNode("munder",[Se(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Ix=e=>{var t=new O.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};J({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:r,funcName:a}=e;return{type:"xArrow",mode:r.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),a=H.wrapFragment(ve(e.body,r,t),t),o=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(o+"-arrow-pad");var l;e.below&&(r=t.havingStyle(n.sub()),l=H.wrapFragment(ve(e.below,r,t),t),l.classes.push(o+"-arrow-pad"));var c=Jt.svgSpan(e,t),s=-t.fontMetrics().axisHeight+.5*c.height,h=-t.fontMetrics().axisHeight-.5*c.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(h-=a.depth);var u;if(l){var d=-t.fontMetrics().axisHeight+l.height+.5*c.height+.111;u=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:c,shift:s},{type:"elem",elem:l,shift:d}]},t)}else u=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:c,shift:s}]},t);return u.children[0].children[0].children[1].classes.push("svg-align"),H.makeSpan(["mrel","x-arrow"],[u],t)},mathmlBuilder(e,t){var n=Jt.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var a=Ix(Se(e.body,t));if(e.below){var o=Ix(Se(e.below,t));r=new O.MathNode("munderover",[n,o,a])}else r=new O.MathNode("mover",[n,a])}else if(e.below){var l=Ix(Se(e.below,t));r=new O.MathNode("munder",[n,l])}else r=Ix(),r=new O.MathNode("mover",[n,r]);return r}});var GB=H.makeSpan;function dS(e,t){var n=_e(e.body,t,!0);return GB([e.mclass],n,t)}function pS(e,t){var n,r=ht(e.body,t);return e.mclass==="minner"?n=new O.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new O.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new O.MathNode("mo",r),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}J({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Re(a),isCharacterBox:re.isCharacterBox(a)}},htmlBuilder:dS,mathmlBuilder:pS});var Ax=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"};J({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Ax(t[0]),body:Re(t[1]),isCharacterBox:re.isCharacterBox(t[1])}}}),J({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,a=t[1],o=t[0],l;r!=="\\stackrel"?l=Ax(a):l="mrel";var c={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Re(a)},s={type:"supsub",mode:o.mode,base:c,sup:r==="\\underset"?null:o,sub:r==="\\underset"?o:null};return{type:"mclass",mode:n.mode,mclass:l,body:[s],isCharacterBox:re.isCharacterBox(s)}},htmlBuilder:dS,mathmlBuilder:pS}),J({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Ax(t[0]),body:Re(t[0])}},htmlBuilder(e,t){var n=_e(e.body,t,!0),r=H.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=ht(e.body,t),r=new O.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var ZB={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},yS=()=>({type:"styling",body:[],mode:"math",style:"display"}),kS=e=>e.type==="textord"&&e.text==="@",WB=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function XB(e,t,n){var r=ZB[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=n.callFunction("\\\\cdleft",[t[0]],[]),o={type:"atom",text:r,mode:"math",family:"rel"},l=n.callFunction("\\Big",[o],[]),c=n.callFunction("\\\\cdright",[t[1]],[]),s={type:"ordgroup",mode:"math",body:[a,l,c]};return n.callFunction("\\\\cdparent",[s],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function KB(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 U("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],a=[r],o=0;o<t.length;o++){for(var l=t[o],c=yS(),s=0;s<l.length;s++)if(!kS(l[s]))c.body.push(l[s]);else{r.push(c),s+=1;var h=nw(l[s]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(h)>-1))if("<>AV".indexOf(h)>-1)for(var d=0;d<2;d++){for(var m=!0,k=s+1;k<l.length;k++){if(WB(l[k],h)){m=!1,s=k;break}if(kS(l[k]))throw new U("Missing a "+h+" character to complete a CD arrow.",l[k]);u[d].body.push(l[k])}if(m)throw new U("Missing a "+h+" character to complete a CD arrow.",l[s])}else throw new U('Expected one of "<>AV=|." after @',l[s]);var g=XB(h,u,e),x={type:"styling",body:[g],mode:"math",style:"display"};r.push(x),c=yS()}o%2===0?r.push(c):r.shift(),r=[],a.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var C=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:C,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}J({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=H.wrapFragment(ve(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=W(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new O.MathNode("mrow",[Se(e.label,t)]);return n=new O.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new O.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),J({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=H.wrapFragment(ve(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new O.MathNode("mrow",[Se(e.fragment,t)])}}),J({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=ue(t[0],"ordgroup"),a=r.body,o="",l=0;l<a.length;l++){var c=ue(a[l],"textord");o+=c.text}var s=parseInt(o),h;if(isNaN(s))throw new U("\\@char has non-numeric argument "+o);if(s<0||s>=1114111)throw new U("\\@char with invalid code point "+o);return s<=65535?h=String.fromCharCode(s):(s-=65536,h=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:"textord",mode:n.mode,text:h}}});var mS=(e,t)=>{var n=_e(e.body,t.withColor(e.color),!1);return H.makeFragment(n)},fS=(e,t)=>{var n=ht(e.body,t.withColor(e.color)),r=new O.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};J({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=ue(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:r,body:Re(a)}},htmlBuilder:mS,mathmlBuilder:fS}),J({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,a=ue(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var o=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:a,body:o}},htmlBuilder:mS,mathmlBuilder:fS}),J({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,a=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,o=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:o,size:a&&ue(a,"size").value}},htmlBuilder(e,t){var n=H.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=W(Be(e.size,t)))),n},mathmlBuilder(e,t){var n=new O.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",W(Be(e.size,t)))),n}});var aw={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},gS=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new U("Expected a control sequence",e);return t},YB=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},vS=(e,t,n,r)=>{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,r)};J({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(aw[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=aw[r.text]),ue(t.parseFunction(),"internal");throw new U("Invalid token after macro prefix",r)}}),J({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),a=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new U("Expected a control sequence",r);for(var o=0,l,c=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){l=t.gullet.future(),c[o].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new U('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==o+1)throw new U('Argument number "'+r.text+'" out of order');o++,c.push([])}else{if(r.text==="EOF")throw new U("Expected a macro definition");c[o].push(r.text)}var{tokens:s}=t.gullet.consumeArg();return l&&s.unshift(l),(n==="\\edef"||n==="\\xdef")&&(s=t.gullet.expandTokens(s),s.reverse()),t.gullet.macros.set(a,{tokens:s,numArgs:o,delimiters:c},n===aw[n]),{type:"internal",mode:t.mode}}}),J({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=gS(t.gullet.popToken());t.gullet.consumeSpaces();var a=YB(t);return vS(t,r,a,n==="\\\\globallet"),{type:"internal",mode:t.mode}}}),J({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=gS(t.gullet.popToken()),a=t.gullet.popToken(),o=t.gullet.popToken();return vS(t,r,o,n==="\\\\globalfuture"),t.gullet.pushToken(o),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var En=function(t,n,r){var a=ze.math[t]&&ze.math[t].replace,o=OM(a||t,n,r);if(!o)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return o},iw=function(t,n,r,a){var o=r.havingBaseStyle(n),l=H.makeSpan(a.concat(o.sizingClasses(r)),[t],r),c=o.sizeMultiplier/r.sizeMultiplier;return l.height*=c,l.depth*=c,l.maxFontSize=o.sizeMultiplier,l},xS=function(t,n,r){var a=n.havingBaseStyle(r),o=(1-n.sizeMultiplier/a.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=W(o),t.height-=o,t.depth+=o},QB=function(t,n,r,a,o,l){var c=H.makeSymbol(t,"Main-Regular",o,a),s=iw(c,n,a,l);return r&&xS(s,a,n),s},JB=function(t,n,r,a){return H.makeSymbol(t,"Size"+n+"-Regular",r,a)},MS=function(t,n,r,a,o,l){var c=JB(t,n,o,a),s=iw(H.makeSpan(["delimsizing","size"+n],[c],a),ae.TEXT,a,l);return r&&xS(s,a,ae.TEXT),s},ow=function(t,n,r){var a;n==="Size1-Regular"?a="delim-size1":a="delim-size4";var o=H.makeSpan(["delimsizinginner",a],[H.makeSpan([],[H.makeSymbol(t,n,r)])]);return{type:"elem",elem:o}},lw=function(t,n,r){var a=Et["Size4-Regular"][t.charCodeAt(0)]?Et["Size4-Regular"][t.charCodeAt(0)][4]:Et["Size1-Regular"][t.charCodeAt(0)][4],o=new c1("inner",rB(t,Math.round(1e3*n))),l=new Xt([o],{width:W(a),height:W(n),style:"width:"+W(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),c=H.makeSvgSpan([],[l],r);return c.height=n,c.style.height=W(n),c.style.width=W(a),{type:"elem",elem:c}},cw=.008,zx={type:"kern",size:-1*cw},$B=["|","\\lvert","\\rvert","\\vert"],eP=["\\|","\\lVert","\\rVert","\\Vert"],wS=function(t,n,r,a,o,l){var c,s,h,u,d="",m=0;c=h=u=t,s=null;var k="Size1-Regular";t==="\\uparrow"?h=u="⏐":t==="\\Uparrow"?h=u="‖":t==="\\downarrow"?c=h="⏐":t==="\\Downarrow"?c=h="‖":t==="\\updownarrow"?(c="\\uparrow",h="⏐",u="\\downarrow"):t==="\\Updownarrow"?(c="\\Uparrow",h="‖",u="\\Downarrow"):re.contains($B,t)?(h="∣",d="vert",m=333):re.contains(eP,t)?(h="∥",d="doublevert",m=556):t==="["||t==="\\lbrack"?(c="⎡",h="⎢",u="⎣",k="Size4-Regular",d="lbrack",m=667):t==="]"||t==="\\rbrack"?(c="⎤",h="⎥",u="⎦",k="Size4-Regular",d="rbrack",m=667):t==="\\lfloor"||t==="⌊"?(h=c="⎢",u="⎣",k="Size4-Regular",d="lfloor",m=667):t==="\\lceil"||t==="⌈"?(c="⎡",h=u="⎢",k="Size4-Regular",d="lceil",m=667):t==="\\rfloor"||t==="⌋"?(h=c="⎥",u="⎦",k="Size4-Regular",d="rfloor",m=667):t==="\\rceil"||t==="⌉"?(c="⎤",h=u="⎥",k="Size4-Regular",d="rceil",m=667):t==="("||t==="\\lparen"?(c="⎛",h="⎜",u="⎝",k="Size4-Regular",d="lparen",m=875):t===")"||t==="\\rparen"?(c="⎞",h="⎟",u="⎠",k="Size4-Regular",d="rparen",m=875):t==="\\{"||t==="\\lbrace"?(c="⎧",s="⎨",u="⎩",h="⎪",k="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(c="⎫",s="⎬",u="⎭",h="⎪",k="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(c="⎧",u="⎩",h="⎪",k="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(c="⎫",u="⎭",h="⎪",k="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(c="⎧",u="⎭",h="⎪",k="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(c="⎫",u="⎩",h="⎪",k="Size4-Regular");var g=En(c,k,o),x=g.height+g.depth,C=En(h,k,o),w=C.height+C.depth,I=En(u,k,o),q=I.height+I.depth,j=0,R=1;if(s!==null){var T=En(s,k,o);j=T.height+T.depth,R=2}var F=x+q+j,K=Math.max(0,Math.ceil((n-F)/(R*w))),V=F+K*R*w,B=a.fontMetrics().axisHeight;r&&(B*=a.sizeMultiplier);var Z=V/2-B,D=[];if(d.length>0){var oe=V-x-q,ne=Math.round(V*1e3),Y=aB(d,Math.round(oe*1e3)),de=new c1(d,Y),fe=(m/1e3).toFixed(3)+"em",Ce=(ne/1e3).toFixed(3)+"em",Ee=new Xt([de],{width:fe,height:Ce,viewBox:"0 0 "+m+" "+ne}),L=H.makeSvgSpan([],[Ee],a);L.height=ne/1e3,L.style.width=fe,L.style.height=Ce,D.push({type:"elem",elem:L})}else{if(D.push(ow(u,k,o)),D.push(zx),s===null){var Te=V-x-q+2*cw;D.push(lw(h,Te,a))}else{var be=(V-x-q-j)/2+2*cw;D.push(lw(h,be,a)),D.push(zx),D.push(ow(s,k,o)),D.push(zx),D.push(lw(h,be,a))}D.push(zx),D.push(ow(c,k,o))}var A=a.havingBaseStyle(ae.TEXT),Ne=H.makeVList({positionType:"bottom",positionData:Z,children:D},A);return iw(H.makeSpan(["delimsizing","mult"],[Ne],A),ae.TEXT,a,l)},sw=80,hw=.08,uw=function(t,n,r,a,o){var l=nB(t,a,r),c=new c1(t,l),s=new Xt([c],{width:"400em",height:W(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return H.makeSvgSpan(["hide-tail"],[s],o)},tP=function(t,n){var r=n.havingBaseSizing(),a=CS("\\surd",t*r.sizeMultiplier,SS,r),o=r.sizeMultiplier,l=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),c,s=0,h=0,u=0,d;return a.type==="small"?(u=1e3+1e3*l+sw,t<1?o=1:t<1.4&&(o=.7),s=(1+l+hw)/o,h=(1+l)/o,c=uw("sqrtMain",s,u,l,n),c.style.minWidth="0.853em",d=.833/o):a.type==="large"?(u=(1e3+sw)*jn[a.size],h=(jn[a.size]+l)/o,s=(jn[a.size]+l+hw)/o,c=uw("sqrtSize"+a.size,s,u,l,n),c.style.minWidth="1.02em",d=1/o):(s=t+l+hw,h=t+l,u=Math.floor(1e3*t+l)+sw,c=uw("sqrtTall",s,u,l,n),c.style.minWidth="0.742em",d=1.056),c.height=h,c.style.height=W(s),{span:c,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+l)*o}},bS=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],nP=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],LS=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],jn=[0,1.2,1.8,2.4,3],rP=function(t,n,r,a,o){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),re.contains(bS,t)||re.contains(LS,t))return MS(t,n,!1,r,a,o);if(re.contains(nP,t))return wS(t,jn[n],!1,r,a,o);throw new U("Illegal delimiter: '"+t+"'")},aP=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],iP=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"stack"}],SS=[{type:"small",style:ae.SCRIPTSCRIPT},{type:"small",style:ae.SCRIPT},{type:"small",style:ae.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],oP=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";throw new Error("Add support for delim type '"+t.type+"' here.")},CS=function(t,n,r,a){for(var o=Math.min(2,3-a.style.size),l=o;l<r.length&&r[l].type!=="stack";l++){var c=En(t,oP(r[l]),"math"),s=c.height+c.depth;if(r[l].type==="small"){var h=a.havingBaseStyle(r[l].style);s*=h.sizeMultiplier}if(s>n)return r[l]}return r[r.length-1]},IS=function(t,n,r,a,o,l){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var c;re.contains(LS,t)?c=aP:re.contains(bS,t)?c=SS:c=iP;var s=CS(t,n,c,a);return s.type==="small"?QB(t,s.style,r,a,o,l):s.type==="large"?MS(t,s.size,r,a,o,l):wS(t,n,r,a,o,l)},lP=function(t,n,r,a,o,l){var c=a.fontMetrics().axisHeight*a.sizeMultiplier,s=901,h=5/a.fontMetrics().ptPerEm,u=Math.max(n-c,r+c),d=Math.max(u/500*s,2*u-h);return IS(t,d,!0,a,o,l)},$t={sqrtImage:tP,sizedDelim:rP,sizeToMaxHeight:jn,customSizedDelim:IS,leftRightDelim:lP},AS={"\\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}},cP=["(","\\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 Tx(e,t){var n=Cx(e);if(n&&re.contains(cP,n.text))return n;throw n?new U("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new U("Invalid delimiter type '"+e.type+"'",e)}J({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=Tx(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:AS[e.funcName].size,mclass:AS[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?H.makeSpan([e.mclass]):$t.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Ct(e.delim,e.mode));var n=new O.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=W($t.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function zS(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}J({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 U("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Tx(t[0],e).text,color:n}}}),J({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Tx(t[0],e),r=e.parser;++r.leftrightDepth;var a=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var o=ue(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{zS(e);for(var n=_e(e.body,t,!0,["mopen","mclose"]),r=0,a=0,o=!1,l=0;l<n.length;l++)n[l].isMiddle?o=!0:(r=Math.max(n[l].height,r),a=Math.max(n[l].depth,a));r*=t.sizeMultiplier,a*=t.sizeMultiplier;var c;if(e.left==="."?c=Rn(t,["mopen"]):c=$t.leftRightDelim(e.left,r,a,t,e.mode,["mopen"]),n.unshift(c),o)for(var s=1;s<n.length;s++){var h=n[s],u=h.isMiddle;u&&(n[s]=$t.leftRightDelim(u.delim,r,a,u.options,e.mode,[]))}var d;if(e.right===".")d=Rn(t,["mclose"]);else{var m=e.rightColor?t.withColor(e.rightColor):t;d=$t.leftRightDelim(e.right,r,a,m,e.mode,["mclose"])}return n.push(d),H.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{zS(e);var n=ht(e.body,t);if(e.left!=="."){var r=new O.MathNode("mo",[Ct(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var a=new O.MathNode("mo",[Ct(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return $M(n)}}),J({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Tx(t[0],e);if(!e.parser.leftrightDepth)throw new U("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Rn(t,[]);else{n=$t.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Ct("|","text"):Ct(e.delim,e.mode),r=new O.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var dw=(e,t)=>{var n=H.wrapFragment(ve(e.body,t),t),r=e.label.slice(1),a=t.sizeMultiplier,o,l=0,c=re.isCharacterBox(e.body);if(r==="sout")o=H.makeSpan(["stretchy","sout"]),o.height=t.fontMetrics().defaultRuleThickness/a,l=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var s=Be({number:.6,unit:"pt"},t),h=Be({number:.35,unit:"ex"},t),u=t.havingBaseSizing();a=a/u.sizeMultiplier;var d=n.height+n.depth+s+h;n.style.paddingLeft=W(d/2+s);var m=Math.floor(1e3*d*a),k=eB(m),g=new Xt([new c1("phase",k)],{width:"400em",height:W(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});o=H.makeSvgSpan(["hide-tail"],[g],t),o.style.height=W(d),l=n.depth+s+h}else{/cancel/.test(r)?c||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var x=0,C=0,w=0;/box/.test(r)?(w=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),x=t.fontMetrics().fboxsep+(r==="colorbox"?0:w),C=x):r==="angl"?(w=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),x=4*w,C=Math.max(0,.25-n.depth)):(x=c?.2:0,C=x),o=Jt.encloseSpan(n,r,x,C,t),/fbox|boxed|fcolorbox/.test(r)?(o.style.borderStyle="solid",o.style.borderWidth=W(w)):r==="angl"&&w!==.049&&(o.style.borderTopWidth=W(w),o.style.borderRightWidth=W(w)),l=n.depth+C,e.backgroundColor&&(o.style.backgroundColor=e.backgroundColor,e.borderColor&&(o.style.borderColor=e.borderColor))}var I;if(e.backgroundColor)I=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:l},{type:"elem",elem:n,shift:0}]},t);else{var q=/cancel|phase/.test(r)?["svg-align"]:[];I=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:o,shift:l,wrapperClasses:q}]},t)}return/cancel/.test(r)&&(I.height=n.height,I.depth=n.depth),/cancel/.test(r)&&!c?H.makeSpan(["mord","cancel-lap"],[I],t):H.makeSpan(["mord"],[I],t)},pw=(e,t)=>{var n=0,r=new O.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Se(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};J({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,o=ue(t[0],"color-token").color,l=t[1];return{type:"enclose",mode:r.mode,label:a,backgroundColor:o,body:l}},htmlBuilder:dw,mathmlBuilder:pw}),J({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,o=ue(t[0],"color-token").color,l=ue(t[1],"color-token").color,c=t[2];return{type:"enclose",mode:r.mode,label:a,backgroundColor:l,borderColor:o,body:c}},htmlBuilder:dw,mathmlBuilder:pw}),J({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]}}}),J({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:dw,mathmlBuilder:pw}),J({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 TS={};function Ot(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:o,mathmlBuilder:l}=e,c={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},s=0;s<n.length;++s)TS[n[s]]=c;o&&(wx[t]=o),l&&(bx[t]=l)}var qS={};function v(e,t){qS[e]=t}function HS(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 qx=e=>{var t=e.parser.settings;if(!t.displayMode)throw new U("{"+e.envName+"} can be used only in display mode.")};function yw(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function u1(e,t,n){var{hskipBeforeAndAfter:r,addJot:a,cols:o,arraystretch:l,colSeparationType:c,autoTag:s,singleRow:h,emptySingleRow:u,maxNumCols:d,leqno:m}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var k=e.gullet.expandMacroAsText("\\arraystretch");if(k==null)l=1;else if(l=parseFloat(k),!l||l<0)throw new U("Invalid \\arraystretch: "+k)}e.gullet.beginGroup();var g=[],x=[g],C=[],w=[],I=s!=null?[]:void 0;function q(){s&&e.gullet.macros.set("\\@eqnsw","1",!0)}function j(){I&&(e.gullet.macros.get("\\df@tag")?(I.push(e.subparse([new bt("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):I.push(!!s&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(q(),w.push(HS(e));;){var R=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),R={type:"ordgroup",mode:e.mode,body:R},n&&(R={type:"styling",mode:e.mode,style:n,body:[R]}),g.push(R);var T=e.fetch().text;if(T==="&"){if(d&&g.length===d){if(h||c)throw new U("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(T==="\\end"){j(),g.length===1&&R.type==="styling"&&R.body[0].body.length===0&&(x.length>1||!u)&&x.pop(),w.length<x.length+1&&w.push([]);break}else if(T==="\\\\"){e.consume();var F=void 0;e.gullet.future().text!==" "&&(F=e.parseSizeGroup(!0)),C.push(F?F.value:null),j(),w.push(HS(e)),g=[],x.push(g),q()}else throw new U("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:l,body:x,cols:o,rowGaps:C,hskipBeforeAndAfter:r,hLinesBeforeRow:w,colSeparationType:c,tags:I,leqno:m}}function kw(e){return e.slice(0,1)==="d"?"display":"text"}var Vt=function(t,n){var r,a,o=t.body.length,l=t.hLinesBeforeRow,c=0,s=new Array(o),h=[],u=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),d=1/n.fontMetrics().ptPerEm,m=5*d;if(t.colSeparationType&&t.colSeparationType==="small"){var k=n.havingStyle(ae.SCRIPT).sizeMultiplier;m=.2778*(k/n.sizeMultiplier)}var g=t.colSeparationType==="CD"?Be({number:3,unit:"ex"},n):12*d,x=3*d,C=t.arraystretch*g,w=.7*C,I=.3*C,q=0;function j(It){for(var Mt=0;Mt<It.length;++Mt)Mt>0&&(q+=.25),h.push({pos:q,isDashed:It[Mt]})}for(j(l[0]),r=0;r<t.body.length;++r){var R=t.body[r],T=w,F=I;c<R.length&&(c=R.length);var K=new Array(R.length);for(a=0;a<R.length;++a){var V=ve(R[a],n);F<V.depth&&(F=V.depth),T<V.height&&(T=V.height),K[a]=V}var B=t.rowGaps[r],Z=0;B&&(Z=Be(B,n),Z>0&&(Z+=I,F<Z&&(F=Z),Z=0)),t.addJot&&(F+=x),K.height=T,K.depth=F,q+=T,K.pos=q,q+=F+Z,s[r]=K,j(l[r+1])}var D=q/2+n.fontMetrics().axisHeight,oe=t.cols||[],ne=[],Y,de,fe=[];if(t.tags&&t.tags.some(It=>It))for(r=0;r<o;++r){var Ce=s[r],Ee=Ce.pos-D,L=t.tags[r],Te=void 0;L===!0?Te=H.makeSpan(["eqn-num"],[],n):L===!1?Te=H.makeSpan([],[],n):Te=H.makeSpan([],_e(L,n,!0),n),Te.depth=Ce.depth,Te.height=Ce.height,fe.push({type:"elem",elem:Te,shift:Ee})}for(a=0,de=0;a<c||de<oe.length;++a,++de){for(var be=oe[de]||{},A=!0;be.type==="separator";){if(A||(Y=H.makeSpan(["arraycolsep"],[]),Y.style.width=W(n.fontMetrics().doubleRuleSep),ne.push(Y)),be.separator==="|"||be.separator===":"){var Ne=be.separator==="|"?"solid":"dashed",Ge=H.makeSpan(["vertical-separator"],[],n);Ge.style.height=W(q),Ge.style.borderRightWidth=W(u),Ge.style.borderRightStyle=Ne,Ge.style.margin="0 "+W(-u/2);var He=q-D;He&&(Ge.style.verticalAlign=W(-He)),ne.push(Ge)}else throw new U("Invalid separator type: "+be.separator);de++,be=oe[de]||{},A=!1}if(!(a>=c)){var Ze=void 0;(a>0||t.hskipBeforeAndAfter)&&(Ze=re.deflt(be.pregap,m),Ze!==0&&(Y=H.makeSpan(["arraycolsep"],[]),Y.style.width=W(Ze),ne.push(Y)));var De=[];for(r=0;r<o;++r){var We=s[r],Ke=We[a];if(Ke){var vt=We.pos-D;Ke.depth=We.depth,Ke.height=We.height,De.push({type:"elem",elem:Ke,shift:vt})}}De=H.makeVList({positionType:"individualShift",children:De},n),De=H.makeSpan(["col-align-"+(be.align||"c")],[De]),ne.push(De),(a<c-1||t.hskipBeforeAndAfter)&&(Ze=re.deflt(be.postgap,m),Ze!==0&&(Y=H.makeSpan(["arraycolsep"],[]),Y.style.width=W(Ze),ne.push(Y)))}}if(s=H.makeSpan(["mtable"],ne),h.length>0){for(var O0=H.makeLineSpan("hline",n,u),p1=H.makeLineSpan("hdashline",n,u),t1=[{type:"elem",elem:s,shift:0}];h.length>0;){var _t=h.pop(),xt=_t.pos-D;_t.isDashed?t1.push({type:"elem",elem:p1,shift:xt}):t1.push({type:"elem",elem:O0,shift:xt})}s=H.makeVList({positionType:"individualShift",children:t1},n)}if(fe.length===0)return H.makeSpan(["mord"],[s],n);var at=H.makeVList({positionType:"individualShift",children:fe},n);return at=H.makeSpan(["tag"],[at],n),H.makeFragment([s,at])},sP={c:"center ",l:"left ",r:"right "},Nt=function(t,n){for(var r=[],a=new O.MathNode("mtd",[],["mtr-glue"]),o=new O.MathNode("mtd",[],["mml-eqn-num"]),l=0;l<t.body.length;l++){for(var c=t.body[l],s=[],h=0;h<c.length;h++)s.push(new O.MathNode("mtd",[Se(c[h],n)]));t.tags&&t.tags[l]&&(s.unshift(a),s.push(a),t.leqno?s.unshift(o):s.push(o)),r.push(new O.MathNode("mtr",s))}var u=new O.MathNode("mtable",r),d=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);u.setAttribute("rowspacing",W(d));var m="",k="";if(t.cols&&t.cols.length>0){var g=t.cols,x="",C=!1,w=0,I=g.length;g[0].type==="separator"&&(m+="top ",w=1),g[g.length-1].type==="separator"&&(m+="bottom ",I-=1);for(var q=w;q<I;q++)g[q].type==="align"?(k+=sP[g[q].align],C&&(x+="none "),C=!0):g[q].type==="separator"&&C&&(x+=g[q].separator==="|"?"solid ":"dashed ",C=!1);u.setAttribute("columnalign",k.trim()),/[sd]/.test(x)&&u.setAttribute("columnlines",x.trim())}if(t.colSeparationType==="align"){for(var j=t.cols||[],R="",T=1;T<j.length;T++)R+=T%2?"0em ":"1em ";u.setAttribute("columnspacing",R.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var F="",K=t.hLinesBeforeRow;m+=K[0].length>0?"left ":"",m+=K[K.length-1].length>0?"right ":"";for(var V=1;V<K.length-1;V++)F+=K[V].length===0?"none ":K[V][0]?"dashed ":"solid ";return/[sd]/.test(F)&&u.setAttribute("rowlines",F.trim()),m!==""&&(u=new O.MathNode("menclose",[u]),u.setAttribute("notation",m.trim())),t.arraystretch&&t.arraystretch<1&&(u=new O.MathNode("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},BS=function(t,n){t.envName.indexOf("ed")===-1&&qx(t);var r=[],a=t.envName.indexOf("at")>-1?"alignat":"align",o=t.envName==="split",l=u1(t.parser,{cols:r,addJot:!0,autoTag:o?void 0:yw(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:o?2:void 0,leqno:t.parser.settings.leqno},"display"),c,s=0,h={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var u="",d=0;d<n[0].body.length;d++){var m=ue(n[0].body[d],"textord");u+=m.text}c=Number(u),s=c*2}var k=!s;l.body.forEach(function(w){for(var I=1;I<w.length;I+=2){var q=ue(w[I],"styling"),j=ue(q.body[0],"ordgroup");j.body.unshift(h)}if(k)s<w.length&&(s=w.length);else{var R=w.length/2;if(c<R)throw new U("Too many math in a row: "+("expected "+c+", but got "+R),w[0])}});for(var g=0;g<s;++g){var x="r",C=0;g%2===1?x="l":g>0&&k&&(C=1),r[g]={type:"align",align:x,pregap:C,postgap:0}}return l.colSeparationType=k?"align":"alignat",l};Ot({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Cx(t[0]),r=n?[t[0]]:ue(t[0],"ordgroup").body,a=r.map(function(l){var c=nw(l),s=c.text;if("lcr".indexOf(s)!==-1)return{type:"align",align:s};if(s==="|")return{type:"separator",separator:"|"};if(s===":")return{type:"separator",separator:":"};throw new U("Unknown column alignment: "+s,l)}),o={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return u1(e.parser,o,kw(e.envName))},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({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",r={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".indexOf(n)===-1)throw new U("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),r.cols=[{type:"align",align:n}]}}var o=u1(e.parser,r,kw(e.envName)),l=Math.max(0,...o.body.map(c=>c.length));return o.cols=new Array(l).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=u1(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Cx(t[0]),r=n?[t[0]]:ue(t[0],"ordgroup").body,a=r.map(function(l){var c=nw(l),s=c.text;if("lc".indexOf(s)!==-1)return{type:"align",align:s};throw new U("Unknown column alignment: "+s,l)});if(a.length>1)throw new U("{subarray} can contain only one column");var o={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=u1(e.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new U("{subarray} can contain only one column");return o},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({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=u1(e.parser,t,kw(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:BS,htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){re.contains(["gather","gather*"],e.envName)&&qx(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:yw(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return u1(e.parser,t,"display")},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:BS,htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){qx(e);var t={autoTag:yw(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return u1(e.parser,t,"display")},htmlBuilder:Vt,mathmlBuilder:Nt}),Ot({type:"array",names:["CD"],props:{numArgs:0},handler(e){return qx(e),KB(e.parser)},htmlBuilder:Vt,mathmlBuilder:Nt}),v("\\nonumber","\\gdef\\@eqnsw{0}"),v("\\notag","\\nonumber"),J({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new U(e.funcName+" valid only within array environment")}});var PS=TS;J({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];if(a.type!=="ordgroup")throw new U("Invalid environment name",a);for(var o="",l=0;l<a.body.length;++l)o+=ue(a.body[l],"textord").text;if(r==="\\begin"){if(!PS.hasOwnProperty(o))throw new U("No such environment: "+o,a);var c=PS[o],{args:s,optArgs:h}=n.parseArguments("\\begin{"+o+"}",c),u={mode:n.mode,envName:o,parser:n},d=c.handler(u,s,h);n.expect("\\end",!1);var m=n.nextToken,k=ue(n.parseFunction(),"environment");if(k.name!==o)throw new U("Mismatch: \\begin{"+o+"} matched by \\end{"+k.name+"}",m);return d}return{type:"environment",mode:n.mode,name:o,nameGroup:a}}});var FS=(e,t)=>{var n=e.font,r=t.withFont(n);return ve(e.body,r)},DS=(e,t)=>{var n=e.font,r=t.withFont(n);return Se(e.body,r)},RS={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};J({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:r}=e,a=Lx(t[0]),o=r;return o in RS&&(o=RS[o]),{type:"font",mode:n.mode,font:o.slice(1),body:a}},htmlBuilder:FS,mathmlBuilder:DS}),J({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],a=re.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Ax(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:a}}}),J({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:a}=e,{mode:o}=n,l=n.parseExpression(!0,a),c="math"+r.slice(1);return{type:"font",mode:o,font:c,body:{type:"ordgroup",mode:n.mode,body:l}}},htmlBuilder:FS,mathmlBuilder:DS});var ES=(e,t)=>{var n=t;return e==="display"?n=n.id>=ae.SCRIPT.id?n.text():ae.DISPLAY:e==="text"&&n.size===ae.DISPLAY.size?n=ae.TEXT:e==="script"?n=ae.SCRIPT:e==="scriptscript"&&(n=ae.SCRIPTSCRIPT),n},mw=(e,t)=>{var n=ES(e.size,t.style),r=n.fracNum(),a=n.fracDen(),o;o=t.havingStyle(r);var l=ve(e.numer,o,t);if(e.continued){var c=8.5/t.fontMetrics().ptPerEm,s=3.5/t.fontMetrics().ptPerEm;l.height=l.height<c?c:l.height,l.depth=l.depth<s?s:l.depth}o=t.havingStyle(a);var h=ve(e.denom,o,t),u,d,m;e.hasBarLine?(e.barSize?(d=Be(e.barSize,t),u=H.makeLineSpan("frac-line",t,d)):u=H.makeLineSpan("frac-line",t),d=u.height,m=u.height):(u=null,d=0,m=t.fontMetrics().defaultRuleThickness);var k,g,x;n.size===ae.DISPLAY.size||e.size==="display"?(k=t.fontMetrics().num1,d>0?g=3*m:g=7*m,x=t.fontMetrics().denom1):(d>0?(k=t.fontMetrics().num2,g=m):(k=t.fontMetrics().num3,g=3*m),x=t.fontMetrics().denom2);var C;if(u){var I=t.fontMetrics().axisHeight;k-l.depth-(I+.5*d)<g&&(k+=g-(k-l.depth-(I+.5*d))),I-.5*d-(h.height-x)<g&&(x+=g-(I-.5*d-(h.height-x)));var q=-(I-.5*d);C=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:x},{type:"elem",elem:u,shift:q},{type:"elem",elem:l,shift:-k}]},t)}else{var w=k-l.depth-(h.height-x);w<g&&(k+=.5*(g-w),x+=.5*(g-w)),C=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:x},{type:"elem",elem:l,shift:-k}]},t)}o=t.havingStyle(n),C.height*=o.sizeMultiplier/t.sizeMultiplier,C.depth*=o.sizeMultiplier/t.sizeMultiplier;var j;n.size===ae.DISPLAY.size?j=t.fontMetrics().delim1:n.size===ae.SCRIPTSCRIPT.size?j=t.havingStyle(ae.SCRIPT).fontMetrics().delim2:j=t.fontMetrics().delim2;var R,T;return e.leftDelim==null?R=Rn(t,["mopen"]):R=$t.customSizedDelim(e.leftDelim,j,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?T=H.makeSpan([]):e.rightDelim==null?T=Rn(t,["mclose"]):T=$t.customSizedDelim(e.rightDelim,j,!0,t.havingStyle(n),e.mode,["mclose"]),H.makeSpan(["mord"].concat(o.sizingClasses(t)),[R,H.makeSpan(["mfrac"],[C]),T],t)},fw=(e,t)=>{var n=new O.MathNode("mfrac",[Se(e.numer,t),Se(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=Be(e.barSize,t);n.setAttribute("linethickness",W(r))}var a=ES(e.size,t.style);if(a.size!==t.style.size){n=new O.MathNode("mstyle",[n]);var o=a.size===ae.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",o),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var l=[];if(e.leftDelim!=null){var c=new O.MathNode("mo",[new O.TextNode(e.leftDelim.replace("\\",""))]);c.setAttribute("fence","true"),l.push(c)}if(l.push(n),e.rightDelim!=null){var s=new O.MathNode("mo",[new O.TextNode(e.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),l.push(s)}return $M(l)}return n};J({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],o=t[1],l,c=null,s=null,h="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,c="(",s=")";break;case"\\\\bracefrac":l=!1,c="\\{",s="\\}";break;case"\\\\brackfrac":l=!1,c="[",s="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:a,denom:o,hasBarLine:l,leftDelim:c,rightDelim:s,size:h,barSize:null}},htmlBuilder:mw,mathmlBuilder:fw}),J({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],o=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:a,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),J({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=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:r}}});var jS=["display","text","script","scriptscript"],OS=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};J({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],a=t[5],o=Lx(t[0]),l=o.type==="atom"&&o.family==="open"?OS(o.text):null,c=Lx(t[1]),s=c.type==="atom"&&c.family==="close"?OS(c.text):null,h=ue(t[2],"size"),u,d=null;h.isBlank?u=!0:(d=h.value,u=d.number>0);var m="auto",k=t[3];if(k.type==="ordgroup"){if(k.body.length>0){var g=ue(k.body[0],"textord");m=jS[Number(g.text)]}}else k=ue(k,"textord"),m=jS[Number(k.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:u,barSize:d,leftDelim:l,rightDelim:s,size:m}},htmlBuilder:mw,mathmlBuilder:fw}),J({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:ue(t[0],"size").value,token:a}}}),J({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],o=jH(ue(t[1],"infix").size),l=t[2],c=o.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:l,continued:!1,hasBarLine:c,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:mw,mathmlBuilder:fw});var VS=(e,t)=>{var n=t.style,r,a;e.type==="supsub"?(r=e.sup?ve(e.sup,t.havingStyle(n.sup()),t):ve(e.sub,t.havingStyle(n.sub()),t),a=ue(e.base,"horizBrace")):a=ue(e,"horizBrace");var o=ve(a.base,t.havingBaseStyle(ae.DISPLAY)),l=Jt.svgSpan(a,t),c;if(a.isOver?(c=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:l}]},t),c.children[0].children[0].children[1].classes.push("svg-align")):(c=H.makeVList({positionType:"bottom",positionData:o.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:o}]},t),c.children[0].children[0].children[0].classes.push("svg-align")),r){var s=H.makeSpan(["mord",a.isOver?"mover":"munder"],[c],t);a.isOver?c=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.2},{type:"elem",elem:r}]},t):c=H.makeVList({positionType:"bottom",positionData:s.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:s}]},t)}return H.makeSpan(["mord",a.isOver?"mover":"munder"],[c],t)},hP=(e,t)=>{var n=Jt.mathMLnode(e.label);return new O.MathNode(e.isOver?"mover":"munder",[Se(e.base,t),n])};J({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:VS,mathmlBuilder:hP}),J({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],a=ue(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:Re(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=_e(e.body,t,!1);return H.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=h1(e.body,t);return n instanceof gt||(n=new gt("mrow",[n])),n.setAttribute("href",e.href),n}}),J({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=ue(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var a=[],o=0;o<r.length;o++){var l=r[o];l==="~"&&(l="\\textasciitilde"),a.push({type:"textord",mode:"text",text:l})}var c={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:r,body:Re(c)}}}),J({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:Re(t[0])}},htmlBuilder(e,t){var n=_e(e.body,t,!1);return H.makeFragment(n)},mathmlBuilder(e,t){return new O.MathNode("mrow",ht(e.body,t))}}),J({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:a}=e,o=ue(t[0],"raw").string,l=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c,s={};switch(r){case"\\htmlClass":s.class=o,c={command:"\\htmlClass",class:o};break;case"\\htmlId":s.id=o,c={command:"\\htmlId",id:o};break;case"\\htmlStyle":s.style=o,c={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var h=o.split(","),u=0;u<h.length;u++){var d=h[u].split("=");if(d.length!==2)throw new U("Error parsing key-value for \\htmlData");s["data-"+d[0].trim()]=d[1].trim()}c={command:"\\htmlData",attributes:s};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(c)?{type:"html",mode:n.mode,attributes:s,body:Re(l)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=_e(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var a=H.makeSpan(r,n,t);for(var o in e.attributes)o!=="class"&&e.attributes.hasOwnProperty(o)&&a.setAttribute(o,e.attributes[o]);return a},mathmlBuilder:(e,t)=>h1(e.body,t)}),J({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Re(t[0]),mathml:Re(t[1])}},htmlBuilder:(e,t)=>{var n=_e(e.html,t,!1);return H.makeFragment(n)},mathmlBuilder:(e,t)=>h1(e.mathml,t)});var gw=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 U("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!UL(r))throw new U("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};J({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,a={number:0,unit:"em"},o={number:.9,unit:"em"},l={number:0,unit:"em"},c="";if(n[0])for(var s=ue(n[0],"raw").string,h=s.split(","),u=0;u<h.length;u++){var d=h[u].split("=");if(d.length===2){var m=d[1].trim();switch(d[0].trim()){case"alt":c=m;break;case"width":a=gw(m);break;case"height":o=gw(m);break;case"totalheight":l=gw(m);break;default:throw new U("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var k=ue(t[0],"url").url;return c===""&&(c=k,c=c.replace(/^.*[\\/]/,""),c=c.substring(0,c.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:k})?{type:"includegraphics",mode:r.mode,alt:c,width:a,height:o,totalheight:l,src:k}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=Be(e.height,t),r=0;e.totalheight.number>0&&(r=Be(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=Be(e.width,t));var o={height:W(n+r)};a>0&&(o.width=W(a)),r>0&&(o.verticalAlign=W(-r));var l=new hB(e.src,e.alt,o);return l.height=n,l.depth=r,l},mathmlBuilder:(e,t)=>{var n=new O.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Be(e.height,t),a=0;if(e.totalheight.number>0&&(a=Be(e.totalheight,t)-r,n.setAttribute("valign",W(-a))),n.setAttribute("height",W(r+a)),e.width.number>0){var o=Be(e.width,t);n.setAttribute("width",W(o))}return n.setAttribute("src",e.src),n}}),J({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=ue(t[0],"size");if(n.settings.strict){var o=r[1]==="m",l=a.value.unit==="mu";o?(l||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+a.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):l&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:a.value}},htmlBuilder(e,t){return H.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=Be(e.dimension,t);return new O.SpaceNode(n)}}),J({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:a}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=H.makeSpan([],[ve(e.body,t)]),n=H.makeSpan(["inner"],[n],t)):n=H.makeSpan(["inner"],[ve(e.body,t)]);var r=H.makeSpan(["fix"],[]),a=H.makeSpan([e.alignment],[n,r],t),o=H.makeSpan(["strut"]);return o.style.height=W(a.height+a.depth),a.depth&&(o.style.verticalAlign=W(-a.depth)),a.children.unshift(o),a=H.makeSpan(["thinbox"],[a],t),H.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new O.MathNode("mpadded",[Se(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),J({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,a=r.mode;r.switchMode("math");var o=n==="\\("?"\\)":"$",l=r.parseExpression(!1,o);return r.expect(o),r.switchMode(a),{type:"styling",mode:r.mode,style:"text",body:l}}}),J({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new U("Mismatched "+e.funcName)}});var NS=(e,t)=>{switch(t.style.size){case ae.DISPLAY.size:return e.display;case ae.TEXT.size:return e.text;case ae.SCRIPT.size:return e.script;case ae.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};J({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Re(t[0]),text:Re(t[1]),script:Re(t[2]),scriptscript:Re(t[3])}},htmlBuilder:(e,t)=>{var n=NS(e,t),r=_e(n,t,!1);return H.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=NS(e,t);return h1(n,t)}});var US=(e,t,n,r,a,o,l)=>{e=H.makeSpan([],[e]);var c=n&&re.isCharacterBox(n),s,h;if(t){var u=ve(t,r.havingStyle(a.sup()),r);h={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=ve(n,r.havingStyle(a.sub()),r);s={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var m;if(h&&s){var k=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+l;m=H.makeVList({positionType:"bottom",positionData:k,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:W(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:W(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var g=e.height-l;m=H.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:W(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else if(h){var x=e.depth+l;m=H.makeVList({positionType:"bottom",positionData:x,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:W(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var C=[m];if(s&&o!==0&&!c){var w=H.makeSpan(["mspace"],[],r);w.style.marginRight=W(o),C.unshift(w)}return H.makeSpan(["mop","op-limits"],C,r)},_S=["\\smallint"],rn=(e,t)=>{var n,r,a=!1,o;e.type==="supsub"?(n=e.sup,r=e.sub,o=ue(e.base,"op"),a=!0):o=ue(e,"op");var l=t.style,c=!1;l.size===ae.DISPLAY.size&&o.symbol&&!re.contains(_S,o.name)&&(c=!0);var s;if(o.symbol){var h=c?"Size2-Regular":"Size1-Regular",u="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(u=o.name.slice(1),o.name=u==="oiint"?"\\iint":"\\iiint"),s=H.makeSymbol(o.name,h,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),u.length>0){var d=s.italic,m=H.staticSvg(u+"Size"+(c?"2":"1"),t);s=H.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:m,shift:c?.08:0}]},t),o.name="\\"+u,s.classes.unshift("mop"),s.italic=d}}else if(o.body){var k=_e(o.body,t,!0);k.length===1&&k[0]instanceof St?(s=k[0],s.classes[0]="mop"):s=H.makeSpan(["mop"],k,t)}else{for(var g=[],x=1;x<o.name.length;x++)g.push(H.mathsym(o.name[x],o.mode,t));s=H.makeSpan(["mop"],g,t)}var C=0,w=0;return(s instanceof St||o.name==="\\oiint"||o.name==="\\oiiint")&&!o.suppressBaseShift&&(C=(s.height-s.depth)/2-t.fontMetrics().axisHeight,w=s.italic),a?US(s,n,r,t,l,w,C):(C&&(s.style.position="relative",s.style.top=W(C)),s)},On=(e,t)=>{var n;if(e.symbol)n=new gt("mo",[Ct(e.name,e.mode)]),re.contains(_S,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new gt("mo",ht(e.body,t));else{n=new gt("mi",[new jt(e.name.slice(1))]);var r=new gt("mo",[Ct("","text")]);e.parentIsSupSub?n=new gt("mrow",[n,r]):n=lS([n,r])}return n},uP={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};J({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:r}=e,a=r;return a.length===1&&(a=uP[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:rn,mathmlBuilder:On}),J({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Re(r)}},htmlBuilder:rn,mathmlBuilder:On});var dP={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};J({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:rn,mathmlBuilder:On}),J({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:rn,mathmlBuilder:On}),J({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=dP[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:rn,mathmlBuilder:On});var GS=(e,t)=>{var n,r,a=!1,o;e.type==="supsub"?(n=e.sup,r=e.sub,o=ue(e.base,"operatorname"),a=!0):o=ue(e,"operatorname");var l;if(o.body.length>0){for(var c=o.body.map(d=>{var m=d.text;return typeof m=="string"?{type:"textord",mode:d.mode,text:m}:d}),s=_e(c,t.withFont("mathrm"),!0),h=0;h<s.length;h++){var u=s[h];u instanceof St&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}l=H.makeSpan(["mop"],s,t)}else l=H.makeSpan(["mop"],[],t);return a?US(l,n,r,t,t.style,0,0):l},pP=(e,t)=>{for(var n=ht(e.body,t.withFont("mathrm")),r=!0,a=0;a<n.length;a++){var o=n[a];if(!(o instanceof O.SpaceNode))if(o instanceof O.MathNode)switch(o.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var l=o.children[0];o.children.length===1&&l instanceof O.TextNode?l.text=l.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var c=n.map(u=>u.toText()).join("");n=[new O.TextNode(c)]}var s=new O.MathNode("mi",n);s.setAttribute("mathvariant","normal");var h=new O.MathNode("mo",[Ct("","text")]);return e.parentIsSupSub?new O.MathNode("mrow",[s,h]):O.newDocumentFragment([s,h])};J({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"operatorname",mode:n.mode,body:Re(a),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:GS,mathmlBuilder:pP}),v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),R0({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?H.makeFragment(_e(e.body,t,!1)):H.makeSpan(["mord"],_e(e.body,t,!0),t)},mathmlBuilder(e,t){return h1(e.body,t,!0)}}),J({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=ve(e.body,t.havingCrampedStyle()),r=H.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,o=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r},{type:"kern",size:a}]},t);return H.makeSpan(["mord","overline"],[o],t)},mathmlBuilder(e,t){var n=new O.MathNode("mo",[new O.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new O.MathNode("mover",[Se(e.body,t),n]);return r.setAttribute("accent","true"),r}}),J({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:Re(r)}},htmlBuilder:(e,t)=>{var n=_e(e.body,t.withPhantom(),!1);return H.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=ht(e.body,t);return new O.MathNode("mphantom",n)}}),J({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=H.makeSpan([],[ve(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),H.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=ht(Re(e.body),t),r=new O.MathNode("mphantom",n),a=new O.MathNode("mpadded",[r]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}}),J({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=H.makeSpan(["inner"],[ve(e.body,t.withPhantom())]),r=H.makeSpan(["fix"],[]);return H.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=ht(Re(e.body),t),r=new O.MathNode("mphantom",n),a=new O.MathNode("mpadded",[r]);return a.setAttribute("width","0px"),a}}),J({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=ue(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:a}},htmlBuilder(e,t){var n=ve(e.body,t),r=Be(e.dy,t);return H.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new O.MathNode("mpadded",[Se(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),J({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),J({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,a=n[0],o=ue(t[0],"size"),l=ue(t[1],"size");return{type:"rule",mode:r.mode,shift:a&&ue(a,"size").value,width:o.value,height:l.value}},htmlBuilder(e,t){var n=H.makeSpan(["mord","rule"],[],t),r=Be(e.width,t),a=Be(e.height,t),o=e.shift?Be(e.shift,t):0;return n.style.borderRightWidth=W(r),n.style.borderTopWidth=W(a),n.style.bottom=W(o),n.width=r,n.height=a+o,n.depth=-o,n.maxFontSize=a*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Be(e.width,t),r=Be(e.height,t),a=e.shift?Be(e.shift,t):0,o=t.color&&t.getColor()||"black",l=new O.MathNode("mspace");l.setAttribute("mathbackground",o),l.setAttribute("width",W(n)),l.setAttribute("height",W(r));var c=new O.MathNode("mpadded",[l]);return a>=0?c.setAttribute("height",W(a)):(c.setAttribute("height",W(a)),c.setAttribute("depth",W(-a))),c.setAttribute("voffset",W(a)),c}});function ZS(e,t,n){for(var r=_e(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,o=0;o<r.length;o++){var l=r[o].classes.indexOf("sizing");l<0?Array.prototype.push.apply(r[o].classes,t.sizingClasses(n)):r[o].classes[l+1]==="reset-size"+t.size&&(r[o].classes[l+1]="reset-size"+n.size),r[o].height*=a,r[o].depth*=a}return H.makeFragment(r)}var WS=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],yP=(e,t)=>{var n=t.havingSize(e.size);return ZS(e.body,n,t)};J({type:"sizing",names:WS,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:a}=e,o=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:WS.indexOf(r)+1,body:o}},htmlBuilder:yP,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=ht(e.body,n),a=new O.MathNode("mstyle",r);return a.setAttribute("mathsize",W(n.sizeMultiplier)),a}}),J({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,a=!1,o=!1,l=n[0]&&ue(n[0],"ordgroup");if(l)for(var c="",s=0;s<l.body.length;++s){var h=l.body[s];if(c=h.text,c==="t")a=!0;else if(c==="b")o=!0;else{a=!1,o=!1;break}}else a=!0,o=!0;var u=t[0];return{type:"smash",mode:r.mode,body:u,smashHeight:a,smashDepth:o}},htmlBuilder:(e,t)=>{var n=H.makeSpan([],[ve(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var a=0;a<n.children.length;a++)n.children[a].depth=0;var o=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return H.makeSpan(["mord"],[o],t)},mathmlBuilder:(e,t)=>{var n=new O.MathNode("mpadded",[Se(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),J({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,a=n[0],o=t[0];return{type:"sqrt",mode:r.mode,body:o,index:a}},htmlBuilder(e,t){var n=ve(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=H.wrapFragment(n,t);var r=t.fontMetrics(),a=r.defaultRuleThickness,o=a;t.style.id<ae.TEXT.id&&(o=t.fontMetrics().xHeight);var l=a+o/4,c=n.height+n.depth+l+a,{span:s,ruleWidth:h,advanceWidth:u}=$t.sqrtImage(c,t),d=s.height-h;d>n.height+n.depth+l&&(l=(l+d-n.height-n.depth)/2);var m=s.height-n.height-l-h;n.style.paddingLeft=W(u);var k=H.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+m)},{type:"elem",elem:s},{type:"kern",size:h}]},t);if(e.index){var g=t.havingStyle(ae.SCRIPTSCRIPT),x=ve(e.index,g,t),C=.6*(k.height-k.depth),w=H.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:x}]},t),I=H.makeSpan(["root"],[w]);return H.makeSpan(["mord","sqrt"],[I,k],t)}else return H.makeSpan(["mord","sqrt"],[k],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new O.MathNode("mroot",[Se(n,t),Se(r,t)]):new O.MathNode("msqrt",[Se(n,t)])}});var XS={display:ae.DISPLAY,text:ae.TEXT,script:ae.SCRIPT,scriptscript:ae.SCRIPTSCRIPT};J({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:a}=e,o=a.parseExpression(!0,n),l=r.slice(1,r.length-5);return{type:"styling",mode:a.mode,style:l,body:o}},htmlBuilder(e,t){var n=XS[e.style],r=t.havingStyle(n).withFont("");return ZS(e.body,r,t)},mathmlBuilder(e,t){var n=XS[e.style],r=t.havingStyle(n),a=ht(e.body,r),o=new O.MathNode("mstyle",a),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},c=l[e.style];return o.setAttribute("scriptlevel",c[0]),o.setAttribute("displaystyle",c[1]),o}});var kP=function(t,n){var r=t.base;if(r)if(r.type==="op"){var a=r.limits&&(n.style.size===ae.DISPLAY.size||r.alwaysHandleSupSub);return a?rn:null}else if(r.type==="operatorname"){var o=r.alwaysHandleSupSub&&(n.style.size===ae.DISPLAY.size||r.limits);return o?GS:null}else{if(r.type==="accent")return re.isCharacterBox(r.base)?rw:null;if(r.type==="horizBrace"){var l=!t.sub;return l===r.isOver?VS:null}else return null}else return null};R0({type:"supsub",htmlBuilder(e,t){var n=kP(e,t);if(n)return n(e,t);var{base:r,sup:a,sub:o}=e,l=ve(r,t),c,s,h=t.fontMetrics(),u=0,d=0,m=r&&re.isCharacterBox(r);if(a){var k=t.havingStyle(t.style.sup());c=ve(a,k,t),m||(u=l.height-k.fontMetrics().supDrop*k.sizeMultiplier/t.sizeMultiplier)}if(o){var g=t.havingStyle(t.style.sub());s=ve(o,g,t),m||(d=l.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var x;t.style===ae.DISPLAY?x=h.sup1:t.style.cramped?x=h.sup3:x=h.sup2;var C=t.sizeMultiplier,w=W(.5/h.ptPerEm/C),I=null;if(s){var q=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(l instanceof St||q)&&(I=W(-l.italic))}var j;if(c&&s){u=Math.max(u,x,c.depth+.25*h.xHeight),d=Math.max(d,h.sub2);var R=h.defaultRuleThickness,T=4*R;if(u-c.depth-(s.height-d)<T){d=T-(u-c.depth)+s.height;var F=.8*h.xHeight-(u-c.depth);F>0&&(u+=F,d-=F)}var K=[{type:"elem",elem:s,shift:d,marginRight:w,marginLeft:I},{type:"elem",elem:c,shift:-u,marginRight:w}];j=H.makeVList({positionType:"individualShift",children:K},t)}else if(s){d=Math.max(d,h.sub1,s.height-.8*h.xHeight);var V=[{type:"elem",elem:s,marginLeft:I,marginRight:w}];j=H.makeVList({positionType:"shift",positionData:d,children:V},t)}else if(c)u=Math.max(u,x,c.depth+.25*h.xHeight),j=H.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:c,marginRight:w}]},t);else throw new Error("supsub must have either sup or sub.");var B=QM(l,"right")||"mord";return H.makeSpan([B],[l,H.makeSpan(["msupsub"],[j])],t)},mathmlBuilder(e,t){var n=!1,r,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var o=[Se(e.base,t)];e.sub&&o.push(Se(e.sub,t)),e.sup&&o.push(Se(e.sup,t));var l;if(n)l=r?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;h&&h.type==="op"&&h.limits&&t.style===ae.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===ae.DISPLAY||h.limits)?l="munderover":l="msubsup"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===ae.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===ae.DISPLAY)?l="munder":l="msub"}else{var c=e.base;c&&c.type==="op"&&c.limits&&(t.style===ae.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||t.style===ae.DISPLAY)?l="mover":l="msup"}return new O.MathNode(l,o)}}),R0({type:"atom",htmlBuilder(e,t){return H.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new O.MathNode("mo",[Ct(e.text,e.mode)]);if(e.family==="bin"){var r=ew(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var KS={mi:"italic",mn:"normal",mtext:"normal"};R0({type:"mathord",htmlBuilder(e,t){return H.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new O.MathNode("mi",[Ct(e.text,e.mode,t)]),r=ew(e,t)||"italic";return r!==KS[n.type]&&n.setAttribute("mathvariant",r),n}}),R0({type:"textord",htmlBuilder(e,t){return H.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Ct(e.text,e.mode,t),r=ew(e,t)||"normal",a;return e.mode==="text"?a=new O.MathNode("mtext",[n]):/[0-9]/.test(e.text)?a=new O.MathNode("mn",[n]):e.text==="\\prime"?a=new O.MathNode("mo",[n]):a=new O.MathNode("mi",[n]),r!==KS[a.type]&&a.setAttribute("mathvariant",r),a}});var vw={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},xw={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};R0({type:"spacing",htmlBuilder(e,t){if(xw.hasOwnProperty(e.text)){var n=xw[e.text].className||"";if(e.mode==="text"){var r=H.makeOrd(e,t,"textord");return r.classes.push(n),r}else return H.makeSpan(["mspace",n],[H.mathsym(e.text,e.mode,t)],t)}else{if(vw.hasOwnProperty(e.text))return H.makeSpan(["mspace",vw[e.text]],[],t);throw new U('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(xw.hasOwnProperty(e.text))n=new O.MathNode("mtext",[new O.TextNode(" ")]);else{if(vw.hasOwnProperty(e.text))return new O.MathNode("mspace");throw new U('Unknown type of space "'+e.text+'"')}return n}});var YS=()=>{var e=new O.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};R0({type:"tag",mathmlBuilder(e,t){var n=new O.MathNode("mtable",[new O.MathNode("mtr",[YS(),new O.MathNode("mtd",[h1(e.body,t)]),YS(),new O.MathNode("mtd",[h1(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var QS={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},JS={"\\textbf":"textbf","\\textmd":"textmd"},mP={"\\textit":"textit","\\textup":"textup"},$S=(e,t)=>{var n=e.font;if(n){if(QS[n])return t.withTextFontFamily(QS[n]);if(JS[n])return t.withTextFontWeight(JS[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(mP[n])};J({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:r}=e,a=t[0];return{type:"text",mode:n.mode,body:Re(a),font:r}},htmlBuilder(e,t){var n=$S(e,t),r=_e(e.body,n,!0);return H.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=$S(e,t);return h1(e.body,n)}}),J({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=ve(e.body,t),r=H.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,o=H.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n}]},t);return H.makeSpan(["mord","underline"],[o],t)},mathmlBuilder(e,t){var n=new O.MathNode("mo",[new O.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new O.MathNode("munder",[Se(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),J({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=ve(e.body,t),r=t.fontMetrics().axisHeight,a=.5*(n.height-r-(n.depth+r));return H.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new O.MathNode("mpadded",[Se(e.body,t)],["vcenter"])}}),J({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new U("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=eC(e),r=[],a=t.havingStyle(t.style.text()),o=0;o<n.length;o++){var l=n[o];l==="~"&&(l="\\textasciitilde"),r.push(H.makeSymbol(l,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return H.makeSpan(["mord","text"].concat(a.sizingClasses(t)),H.tryCombineChars(r),a)},mathmlBuilder(e,t){var n=new O.TextNode(eC(e)),r=new O.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var eC=e=>e.body.replace(/ /g,e.star?"␣":" "),d1=aS,tC=`[ \r
|
|
7827
7828
|
]`,fP="\\\\[a-zA-Z@]+",gP="\\\\[^\uD800-\uDFFF]",vP="("+fP+")"+tC+"*",xP=`\\\\(
|
|
7828
7829
|
|[ \r ]+
|
|
7829
|
-
?)[ \r ]*`,Mw="[̀-ͯ]",MP=new RegExp(Mw+"+$"),wP="("+tC+"+)|"+(xP+"|")+"([!-\\[\\]-‧-豈-]"+(Mw+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Mw+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+vP)+("|"+gP+")");class nC{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(wP,"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 bt("EOF",new mt(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new
|
|
7830
|
-
`,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new bt(a,new mt(this,n,this.tokenRegex.lastIndex))}}class bP{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 N("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,r){if(r===void 0&&(r=!1),r){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 o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(t)&&(o[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var LP=qS;v("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),v("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),v("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}),v("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}),v("\\@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}}),v("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),v("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var rC={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};v("\\char",function(e){var t=e.popToken(),n,r="";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]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new N("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=rC[t.text],r==null||r>=n)throw new N("Invalid base-"+n+" digit "+t.text);for(var a;(a=rC[e.future().text])!=null&&a<n;)r*=n,r+=a,e.popToken()}return"\\@char{"+r+"}"});var ww=(e,t,n,r)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new N("\\newcommand's first argument must be a macro name");var o=a[0].text,l=e.isDefined(o);if(l&&!t)throw new N("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!l&&!n)throw new N("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var c=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var s="",h=e.expandNextToken();h.text!=="]"&&h.text!=="EOF";)s+=h.text,h=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new N("Invalid number of arguments: "+s);c=parseInt(s),a=e.consumeArg().tokens}return l&&r||e.macros.set(o,{tokens:a,numArgs:c}),""};v("\\newcommand",e=>ww(e,!1,!0,!1)),v("\\renewcommand",e=>ww(e,!0,!1,!1)),v("\\providecommand",e=>ww(e,!0,!0,!0)),v("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""}),v("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""}),v("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),d1[n],ze.math[n],ze.text[n]),""}),v("\\bgroup","{"),v("\\egroup","}"),v("~","\\nobreakspace"),v("\\lq","`"),v("\\rq","'"),v("\\aa","\\r a"),v("\\AA","\\r A"),v("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),v("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),v("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),v("ℬ","\\mathscr{B}"),v("ℰ","\\mathscr{E}"),v("ℱ","\\mathscr{F}"),v("ℋ","\\mathscr{H}"),v("ℐ","\\mathscr{I}"),v("ℒ","\\mathscr{L}"),v("ℳ","\\mathscr{M}"),v("ℛ","\\mathscr{R}"),v("ℭ","\\mathfrak{C}"),v("ℌ","\\mathfrak{H}"),v("ℨ","\\mathfrak{Z}"),v("\\Bbbk","\\Bbb{k}"),v("·","\\cdotp"),v("\\llap","\\mathllap{\\textrm{#1}}"),v("\\rlap","\\mathrlap{\\textrm{#1}}"),v("\\clap","\\mathclap{\\textrm{#1}}"),v("\\mathstrut","\\vphantom{(}"),v("\\underbar","\\underline{\\text{#1}}"),v("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),v("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),v("\\ne","\\neq"),v("≠","\\neq"),v("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),v("∉","\\notin"),v("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),v("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),v("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),v("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),v("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),v("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),v("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),v("⟂","\\perp"),v("‼","\\mathclose{!\\mkern-0.8mu!}"),v("∌","\\notni"),v("⌜","\\ulcorner"),v("⌝","\\urcorner"),v("⌞","\\llcorner"),v("⌟","\\lrcorner"),v("©","\\copyright"),v("®","\\textregistered"),v("️","\\textregistered"),v("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),v("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),v("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),v("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),v("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),v("⋮","\\vdots"),v("\\varGamma","\\mathit{\\Gamma}"),v("\\varDelta","\\mathit{\\Delta}"),v("\\varTheta","\\mathit{\\Theta}"),v("\\varLambda","\\mathit{\\Lambda}"),v("\\varXi","\\mathit{\\Xi}"),v("\\varPi","\\mathit{\\Pi}"),v("\\varSigma","\\mathit{\\Sigma}"),v("\\varUpsilon","\\mathit{\\Upsilon}"),v("\\varPhi","\\mathit{\\Phi}"),v("\\varPsi","\\mathit{\\Psi}"),v("\\varOmega","\\mathit{\\Omega}"),v("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),v("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),v("\\boxed","\\fbox{$\\displaystyle{#1}$}"),v("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),v("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),v("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),v("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),v("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var aC={",":"\\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"};v("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in aC?t=aC[n]:(n.slice(0,4)==="\\not"||n in ze.math&&re.contains(["bin","rel"],ze.math[n].group))&&(t="\\dotsb"),t});var bw={")":!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};v("\\dotso",function(e){var t=e.future().text;return t in bw?"\\ldots\\,":"\\ldots"}),v("\\dotsc",function(e){var t=e.future().text;return t in bw&&t!==","?"\\ldots\\,":"\\ldots"}),v("\\cdots",function(e){var t=e.future().text;return t in bw?"\\@cdots\\,":"\\@cdots"}),v("\\dotsb","\\cdots"),v("\\dotsm","\\cdots"),v("\\dotsi","\\!\\cdots"),v("\\dotsx","\\ldots\\,"),v("\\DOTSI","\\relax"),v("\\DOTSB","\\relax"),v("\\DOTSX","\\relax"),v("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),v("\\,","\\tmspace+{3mu}{.1667em}"),v("\\thinspace","\\,"),v("\\>","\\mskip{4mu}"),v("\\:","\\tmspace+{4mu}{.2222em}"),v("\\medspace","\\:"),v("\\;","\\tmspace+{5mu}{.2777em}"),v("\\thickspace","\\;"),v("\\!","\\tmspace-{3mu}{.1667em}"),v("\\negthinspace","\\!"),v("\\negmedspace","\\tmspace-{4mu}{.2222em}"),v("\\negthickspace","\\tmspace-{5mu}{.277em}"),v("\\enspace","\\kern.5em "),v("\\enskip","\\hskip.5em\\relax"),v("\\quad","\\hskip1em\\relax"),v("\\qquad","\\hskip2em\\relax"),v("\\tag","\\@ifstar\\tag@literal\\tag@paren"),v("\\tag@paren","\\tag@literal{({#1})}"),v("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new N("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),v("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),v("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),v("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),v("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),v("\\newline","\\\\\\relax"),v("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var iC=W(Et["Main-Regular"][84][1]-.7*Et["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+iC+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+iC+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),v("\\hspace","\\@ifstar\\@hspacer\\@hspace"),v("\\@hspace","\\hskip #1\\relax"),v("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),v("\\ordinarycolon",":"),v("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),v("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),v("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),v("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),v("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),v("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),v("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),v("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),v("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),v("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),v("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),v("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),v("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),v("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),v("∷","\\dblcolon"),v("∹","\\eqcolon"),v("≔","\\coloneqq"),v("≕","\\eqqcolon"),v("⩴","\\Coloneqq"),v("\\ratio","\\vcentcolon"),v("\\coloncolon","\\dblcolon"),v("\\colonequals","\\coloneqq"),v("\\coloncolonequals","\\Coloneqq"),v("\\equalscolon","\\eqqcolon"),v("\\equalscoloncolon","\\Eqqcolon"),v("\\colonminus","\\coloneq"),v("\\coloncolonminus","\\Coloneq"),v("\\minuscolon","\\eqcolon"),v("\\minuscoloncolon","\\Eqcolon"),v("\\coloncolonapprox","\\Colonapprox"),v("\\coloncolonsim","\\Colonsim"),v("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),v("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),v("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),v("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),v("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),v("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),v("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),v("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),v("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),v("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),v("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),v("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),v("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),v("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),v("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),v("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),v("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),v("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),v("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),v("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),v("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),v("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),v("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),v("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),v("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),v("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),v("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),v("\\imath","\\html@mathml{\\@imath}{ı}"),v("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),v("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),v("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),v("⟦","\\llbracket"),v("⟧","\\rrbracket"),v("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),v("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),v("⦃","\\lBrace"),v("⦄","\\rBrace"),v("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),v("⦵","\\minuso"),v("\\darr","\\downarrow"),v("\\dArr","\\Downarrow"),v("\\Darr","\\Downarrow"),v("\\lang","\\langle"),v("\\rang","\\rangle"),v("\\uarr","\\uparrow"),v("\\uArr","\\Uparrow"),v("\\Uarr","\\Uparrow"),v("\\N","\\mathbb{N}"),v("\\R","\\mathbb{R}"),v("\\Z","\\mathbb{Z}"),v("\\alef","\\aleph"),v("\\alefsym","\\aleph"),v("\\Alpha","\\mathrm{A}"),v("\\Beta","\\mathrm{B}"),v("\\bull","\\bullet"),v("\\Chi","\\mathrm{X}"),v("\\clubs","\\clubsuit"),v("\\cnums","\\mathbb{C}"),v("\\Complex","\\mathbb{C}"),v("\\Dagger","\\ddagger"),v("\\diamonds","\\diamondsuit"),v("\\empty","\\emptyset"),v("\\Epsilon","\\mathrm{E}"),v("\\Eta","\\mathrm{H}"),v("\\exist","\\exists"),v("\\harr","\\leftrightarrow"),v("\\hArr","\\Leftrightarrow"),v("\\Harr","\\Leftrightarrow"),v("\\hearts","\\heartsuit"),v("\\image","\\Im"),v("\\infin","\\infty"),v("\\Iota","\\mathrm{I}"),v("\\isin","\\in"),v("\\Kappa","\\mathrm{K}"),v("\\larr","\\leftarrow"),v("\\lArr","\\Leftarrow"),v("\\Larr","\\Leftarrow"),v("\\lrarr","\\leftrightarrow"),v("\\lrArr","\\Leftrightarrow"),v("\\Lrarr","\\Leftrightarrow"),v("\\Mu","\\mathrm{M}"),v("\\natnums","\\mathbb{N}"),v("\\Nu","\\mathrm{N}"),v("\\Omicron","\\mathrm{O}"),v("\\plusmn","\\pm"),v("\\rarr","\\rightarrow"),v("\\rArr","\\Rightarrow"),v("\\Rarr","\\Rightarrow"),v("\\real","\\Re"),v("\\reals","\\mathbb{R}"),v("\\Reals","\\mathbb{R}"),v("\\Rho","\\mathrm{P}"),v("\\sdot","\\cdot"),v("\\sect","\\S"),v("\\spades","\\spadesuit"),v("\\sub","\\subset"),v("\\sube","\\subseteq"),v("\\supe","\\supseteq"),v("\\Tau","\\mathrm{T}"),v("\\thetasym","\\vartheta"),v("\\weierp","\\wp"),v("\\Zeta","\\mathrm{Z}"),v("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),v("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),v("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),v("\\bra","\\mathinner{\\langle{#1}|}"),v("\\ket","\\mathinner{|{#1}\\rangle}"),v("\\braket","\\mathinner{\\langle{#1}\\rangle}"),v("\\Bra","\\left\\langle#1\\right|"),v("\\Ket","\\left|#1\\right\\rangle");var oC=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.consumeArg().tokens,l=t.macros.get("|"),c=t.macros.get("\\|");t.macros.beginGroup();var s=d=>m=>{e&&(m.macros.set("|",l),a.length&&m.macros.set("\\|",c));var k=d;if(!d&&a.length){var g=m.future();g.text==="|"&&(m.popToken(),k=!0)}return{tokens:k?a:r,numArgs:0}};t.macros.set("|",s(!1)),a.length&&t.macros.set("\\|",s(!0));var h=t.consumeArg().tokens,u=t.expandTokens([...o,...h,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};v("\\bra@ket",oC(!1)),v("\\bra@set",oC(!0)),v("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),v("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),v("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),v("\\angln","{\\angl n}"),v("\\blue","\\textcolor{##6495ed}{#1}"),v("\\orange","\\textcolor{##ffa500}{#1}"),v("\\pink","\\textcolor{##ff00af}{#1}"),v("\\red","\\textcolor{##df0030}{#1}"),v("\\green","\\textcolor{##28ae7b}{#1}"),v("\\gray","\\textcolor{gray}{#1}"),v("\\purple","\\textcolor{##9d38bd}{#1}"),v("\\blueA","\\textcolor{##ccfaff}{#1}"),v("\\blueB","\\textcolor{##80f6ff}{#1}"),v("\\blueC","\\textcolor{##63d9ea}{#1}"),v("\\blueD","\\textcolor{##11accd}{#1}"),v("\\blueE","\\textcolor{##0c7f99}{#1}"),v("\\tealA","\\textcolor{##94fff5}{#1}"),v("\\tealB","\\textcolor{##26edd5}{#1}"),v("\\tealC","\\textcolor{##01d1c1}{#1}"),v("\\tealD","\\textcolor{##01a995}{#1}"),v("\\tealE","\\textcolor{##208170}{#1}"),v("\\greenA","\\textcolor{##b6ffb0}{#1}"),v("\\greenB","\\textcolor{##8af281}{#1}"),v("\\greenC","\\textcolor{##74cf70}{#1}"),v("\\greenD","\\textcolor{##1fab54}{#1}"),v("\\greenE","\\textcolor{##0d923f}{#1}"),v("\\goldA","\\textcolor{##ffd0a9}{#1}"),v("\\goldB","\\textcolor{##ffbb71}{#1}"),v("\\goldC","\\textcolor{##ff9c39}{#1}"),v("\\goldD","\\textcolor{##e07d10}{#1}"),v("\\goldE","\\textcolor{##a75a05}{#1}"),v("\\redA","\\textcolor{##fca9a9}{#1}"),v("\\redB","\\textcolor{##ff8482}{#1}"),v("\\redC","\\textcolor{##f9685d}{#1}"),v("\\redD","\\textcolor{##e84d39}{#1}"),v("\\redE","\\textcolor{##bc2612}{#1}"),v("\\maroonA","\\textcolor{##ffbde0}{#1}"),v("\\maroonB","\\textcolor{##ff92c6}{#1}"),v("\\maroonC","\\textcolor{##ed5fa6}{#1}"),v("\\maroonD","\\textcolor{##ca337c}{#1}"),v("\\maroonE","\\textcolor{##9e034e}{#1}"),v("\\purpleA","\\textcolor{##ddd7ff}{#1}"),v("\\purpleB","\\textcolor{##c6b9fc}{#1}"),v("\\purpleC","\\textcolor{##aa87ff}{#1}"),v("\\purpleD","\\textcolor{##7854ab}{#1}"),v("\\purpleE","\\textcolor{##543b78}{#1}"),v("\\mintA","\\textcolor{##f5f9e8}{#1}"),v("\\mintB","\\textcolor{##edf2df}{#1}"),v("\\mintC","\\textcolor{##e0e5cc}{#1}"),v("\\grayA","\\textcolor{##f6f7f7}{#1}"),v("\\grayB","\\textcolor{##f0f1f2}{#1}"),v("\\grayC","\\textcolor{##e3e5e6}{#1}"),v("\\grayD","\\textcolor{##d6d8da}{#1}"),v("\\grayE","\\textcolor{##babec2}{#1}"),v("\\grayF","\\textcolor{##888d93}{#1}"),v("\\grayG","\\textcolor{##626569}{#1}"),v("\\grayH","\\textcolor{##3b3e40}{#1}"),v("\\grayI","\\textcolor{##21242c}{#1}"),v("\\kaBlue","\\textcolor{##314453}{#1}"),v("\\kaGreen","\\textcolor{##71B307}{#1}");var lC={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class SP{constructor(t,n,r){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 bP(LP,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new nC(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,r,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:n,end:r}=this.consumeArg());return this.pushToken(new bt("EOF",r.loc)),this.pushTokens(a),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var a=this.future(),o,l=0,c=0;do{if(o=this.popToken(),n.push(o),o.text==="{")++l;else if(o.text==="}"){if(--l,l===-1)throw new N("Extra }",o)}else if(o.text==="EOF")throw new N("Unexpected end of input in a macro argument, expected '"+(t&&r?t[c]:"}")+"'",o);if(t&&r)if((l===0||l===1&&t[c]==="{")&&o.text===t[c]){if(++c,c===t.length){n.splice(-c,c);break}}else c=0}while(l!==0||r);return a.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:a,end:o}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new N("The length of delimiters doesn't match the number of args!");for(var r=n[0],a=0;a<r.length;a++){var o=this.popToken();if(r[a]!==o.text)throw new N("Use of the macro doesn't match its definition",o)}}for(var l=[],c=0;c<t;c++)l.push(this.consumeArg(n&&n[c+1]).tokens);return l}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new N("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,a=n.noexpand?null:this._getExpansion(r);if(a==null||t&&a.unexpandable){if(t&&a==null&&r[0]==="\\"&&!this.isDefined(r))throw new N("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var o=a.tokens,l=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){o=o.slice();for(var c=o.length-1;c>=0;--c){var s=o[c];if(s.text==="#"){if(c===0)throw new N("Incomplete placeholder at end of macro body",s);if(s=o[--c],s.text==="#")o.splice(c+1,1);else if(/^[1-9]$/.test(s.text))o.splice(c,2,...l[+s.text-1]);else throw new N("Not a valid argument number",s)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new bt(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)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(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var a=typeof n=="function"?n(this):n;if(typeof a=="string"){var o=0;if(a.indexOf("#")!==-1)for(var l=a.replace(/##/g,"");l.indexOf("#"+(o+1))!==-1;)++o;for(var c=new nC(a,this.settings),s=[],h=c.lex();h.text!=="EOF";)s.push(h),h=c.lex();s.reverse();var u={tokens:s,numArgs:o};return u}return a}isDefined(t){return this.macros.has(t)||d1.hasOwnProperty(t)||ze.math.hasOwnProperty(t)||ze.text.hasOwnProperty(t)||lC.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:d1.hasOwnProperty(t)&&!d1[t].primitive}}var cC=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Hx=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Lw={"́":{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"}},sC={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Bx{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 SP(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new N("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 bt("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(Bx.endOfExpression.indexOf(a.text)!==-1||n&&a.text===n||t&&d1[a.text]&&d1[a.text].infix)break;var o=this.parseAtom(n);if(o){if(o.type==="internal")continue}else break;r.push(o)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,a=0;a<t.length;a++)if(t[a].type==="infix"){if(n!==-1)throw new N("only one infix operator per group",t[a].token);n=a,r=t[a].replaceWith}if(n!==-1&&r){var o,l,c=t.slice(0,n),s=t.slice(n+1);c.length===1&&c[0].type==="ordgroup"?o=c[0]:o={type:"ordgroup",mode:this.mode,body:c},s.length===1&&s[0].type==="ordgroup"?l=s[0]:l={type:"ordgroup",mode:this.mode,body:s};var h;return r==="\\\\abovefrac"?h=this.callFunction(r,[o,t[n],l],[]):h=this.callFunction(r,[o,l],[]),[h]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var a;do{var o;a=this.parseGroup(t)}while(((o=a)==null?void 0:o.type)==="internal");if(!a)throw new N("Expected group after '"+r+"'",n);return a}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var a={type:"text",mode:this.mode,body:n},o={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return o}parseAtom(t){var n=this.parseGroup("atom",t);if((n==null?void 0:n.type)==="internal"||this.mode==="text")return n;for(var r,a;;){this.consumeSpaces();var o=this.fetch();if(o.text==="\\limits"||o.text==="\\nolimits"){if(n&&n.type==="op"){var l=o.text==="\\limits";n.limits=l,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=o.text==="\\limits");else throw new N("Limit controls must follow a math operator",o);this.consume()}else if(o.text==="^"){if(r)throw new N("Double superscript",o);r=this.handleSupSubscript("superscript")}else if(o.text==="_"){if(a)throw new N("Double subscript",o);a=this.handleSupSubscript("subscript")}else if(o.text==="'"){if(r)throw new N("Double superscript",o);var c={type:"textord",mode:this.mode,text:"\\prime"},s=[c];for(this.consume();this.fetch().text==="'";)s.push(c),this.consume();this.fetch().text==="^"&&s.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:s}}else if(Hx[o.text]){var h=cC.test(o.text),u=[];for(u.push(new bt(Hx[o.text])),this.consume();;){var d=this.fetch().text;if(!Hx[d]||cC.test(d)!==h)break;u.unshift(new bt(Hx[d])),this.consume()}var m=this.subparse(u);h?a={type:"ordgroup",mode:"math",body:m}:r={type:"ordgroup",mode:"math",body:m}}else break}return r||a?{type:"supsub",mode:this.mode,base:n,sup:r,sub:a}:n}parseFunction(t,n){var r=this.fetch(),a=r.text,o=d1[a];if(!o)return null;if(this.consume(),n&&n!=="atom"&&!o.allowedInArgument)throw new N("Got function '"+a+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!o.allowedInText)throw new N("Can't use function '"+a+"' in text mode",r);if(this.mode==="math"&&o.allowedInMath===!1)throw new N("Can't use function '"+a+"' in math mode",r);var{args:l,optArgs:c}=this.parseArguments(a,o);return this.callFunction(a,l,c,r,t)}callFunction(t,n,r,a,o){var l={funcName:t,parser:this,token:a,breakOnTokenText:o},c=d1[t];if(c&&c.handler)return c.handler(l,n,r);throw new N("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var a=[],o=[],l=0;l<r;l++){var c=n.argTypes&&n.argTypes[l],s=l<n.numOptionalArgs;(n.primitive&&c==null||n.type==="sqrt"&&l===1&&o[0]==null)&&(c="primitive");var h=this.parseGroupOfType("argument to '"+t+"'",c,s);if(s)o.push(h);else if(h!=null)a.push(h);else throw new N("Null argument, please report this as a bug")}return{args:a,optArgs:o}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var a=this.parseArgumentGroup(r,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var o=this.parseStringGroup("raw",r);return o!=null?{type:"raw",mode:"text",string:o.text}:null}case"primitive":{if(r)throw new N("A primitive argument cannot be optional");var l=this.parseGroup(t);if(l==null)throw new N("Expected group as "+t,this.fetch());return l}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new N("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var a="",o;(o=this.fetch()).text!=="EOF";)a+=o.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(t,n){for(var r=this.fetch(),a=r,o="",l;(l=this.fetch()).text!=="EOF"&&t.test(o+l.text);)a=l,o+=a.text,this.consume();if(o==="")throw new N("Invalid "+n+": '"+r.text+"'",r);return r.range(a,o)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new N("Invalid color: '"+n.text+"'",n);var a=r[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var n,r=!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",r=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!a)throw new N("Invalid size: '"+n.text+"'",n);var o={number:+(a[1]+a[2]),unit:a[3]};if(!UL(o))throw new N("Invalid unit: '"+o.unit+"'",n);return{type:"size",mode:this.mode,value:o,isBlank:r}}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 r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var a=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var l={type:"ordgroup",mode:this.mode,loc:r.loc,body:o};return n&&this.switchMode(a),l}parseGroup(t,n){var r=this.fetch(),a=r.text,o;if(a==="{"||a==="\\begingroup"){this.consume();var l=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var c=this.parseExpression(!1,l),s=this.fetch();this.expect(l),this.gullet.endGroup(),o={type:"ordgroup",mode:this.mode,loc:mt.range(r,s),body:c,semisimple:a==="\\begingroup"||void 0}}else if(o=this.parseFunction(n,t)||this.parseSymbol(),o==null&&a[0]==="\\"&&!lC.hasOwnProperty(a)){if(this.settings.throwOnError)throw new N("Undefined control sequence: "+a,r);o=this.formatUnsupportedCmd(a),this.consume()}return o}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var a=t[r],o=a.text;o==="-"&&t[r+1].text==="-"&&(r+1<n&&t[r+2].text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:mt.range(a,t[r+2]),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:mt.range(a,t[r+1]),text:"--"}),n-=1)),(o==="'"||o==="`")&&t[r+1].text===o&&(t.splice(r,2,{type:"textord",mode:"text",loc:mt.range(a,t[r+1]),text:o+o}),n-=1)}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),a=r.charAt(0)==="*";if(a&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new N(`\\verb assertion failed --
|
|
7831
|
-
please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:a}}sC.hasOwnProperty(n[0])&&!ze[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=sC[n[0]]+n.slice(1));var o=MP.exec(n);o&&(n=n.substring(0,o.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var l;if(ze[this.mode][n]){this.settings.strict&&this.mode==="math"&&XM.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var c=ze[this.mode][n].group,s=mt.range(t),h;if(pB.hasOwnProperty(c)){var u=c;h={type:"atom",mode:this.mode,family:u,loc:s,text:n}}else h={type:c,mode:this.mode,loc:s,text:n};l=h}else if(n.charCodeAt(0)>=128)this.settings.strict&&(EL(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)),l={type:"textord",mode:"text",loc:mt.range(t),text:n};else return null;if(this.consume(),o)for(var d=0;d<o[0].length;d++){var m=o[0][d];if(!Lw[m])throw new
|
|
7830
|
+
?)[ \r ]*`,Mw="[̀-ͯ]",MP=new RegExp(Mw+"+$"),wP="("+tC+"+)|"+(xP+"|")+"([!-\\[\\]-‧-豈-]"+(Mw+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Mw+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+vP)+("|"+gP+")");class nC{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(wP,"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 bt("EOF",new mt(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new U("Unexpected character: '"+t[n]+"'",new bt(t[n],new mt(this,n,n+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[a]===14){var o=t.indexOf(`
|
|
7831
|
+
`,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new bt(a,new mt(this,n,this.tokenRegex.lastIndex))}}class bP{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 U("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,r){if(r===void 0&&(r=!1),r){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 o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(t)&&(o[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var LP=qS;v("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),v("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),v("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}),v("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}),v("\\@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}}),v("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),v("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var rC={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};v("\\char",function(e){var t=e.popToken(),n,r="";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]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new U("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=rC[t.text],r==null||r>=n)throw new U("Invalid base-"+n+" digit "+t.text);for(var a;(a=rC[e.future().text])!=null&&a<n;)r*=n,r+=a,e.popToken()}return"\\@char{"+r+"}"});var ww=(e,t,n,r)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new U("\\newcommand's first argument must be a macro name");var o=a[0].text,l=e.isDefined(o);if(l&&!t)throw new U("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!l&&!n)throw new U("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var c=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var s="",h=e.expandNextToken();h.text!=="]"&&h.text!=="EOF";)s+=h.text,h=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new U("Invalid number of arguments: "+s);c=parseInt(s),a=e.consumeArg().tokens}return l&&r||e.macros.set(o,{tokens:a,numArgs:c}),""};v("\\newcommand",e=>ww(e,!1,!0,!1)),v("\\renewcommand",e=>ww(e,!0,!1,!1)),v("\\providecommand",e=>ww(e,!0,!0,!0)),v("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""}),v("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""}),v("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),d1[n],ze.math[n],ze.text[n]),""}),v("\\bgroup","{"),v("\\egroup","}"),v("~","\\nobreakspace"),v("\\lq","`"),v("\\rq","'"),v("\\aa","\\r a"),v("\\AA","\\r A"),v("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),v("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),v("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),v("ℬ","\\mathscr{B}"),v("ℰ","\\mathscr{E}"),v("ℱ","\\mathscr{F}"),v("ℋ","\\mathscr{H}"),v("ℐ","\\mathscr{I}"),v("ℒ","\\mathscr{L}"),v("ℳ","\\mathscr{M}"),v("ℛ","\\mathscr{R}"),v("ℭ","\\mathfrak{C}"),v("ℌ","\\mathfrak{H}"),v("ℨ","\\mathfrak{Z}"),v("\\Bbbk","\\Bbb{k}"),v("·","\\cdotp"),v("\\llap","\\mathllap{\\textrm{#1}}"),v("\\rlap","\\mathrlap{\\textrm{#1}}"),v("\\clap","\\mathclap{\\textrm{#1}}"),v("\\mathstrut","\\vphantom{(}"),v("\\underbar","\\underline{\\text{#1}}"),v("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),v("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),v("\\ne","\\neq"),v("≠","\\neq"),v("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),v("∉","\\notin"),v("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),v("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),v("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),v("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),v("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),v("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),v("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),v("⟂","\\perp"),v("‼","\\mathclose{!\\mkern-0.8mu!}"),v("∌","\\notni"),v("⌜","\\ulcorner"),v("⌝","\\urcorner"),v("⌞","\\llcorner"),v("⌟","\\lrcorner"),v("©","\\copyright"),v("®","\\textregistered"),v("️","\\textregistered"),v("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),v("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),v("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),v("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),v("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),v("⋮","\\vdots"),v("\\varGamma","\\mathit{\\Gamma}"),v("\\varDelta","\\mathit{\\Delta}"),v("\\varTheta","\\mathit{\\Theta}"),v("\\varLambda","\\mathit{\\Lambda}"),v("\\varXi","\\mathit{\\Xi}"),v("\\varPi","\\mathit{\\Pi}"),v("\\varSigma","\\mathit{\\Sigma}"),v("\\varUpsilon","\\mathit{\\Upsilon}"),v("\\varPhi","\\mathit{\\Phi}"),v("\\varPsi","\\mathit{\\Psi}"),v("\\varOmega","\\mathit{\\Omega}"),v("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),v("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),v("\\boxed","\\fbox{$\\displaystyle{#1}$}"),v("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),v("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),v("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),v("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),v("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var aC={",":"\\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"};v("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in aC?t=aC[n]:(n.slice(0,4)==="\\not"||n in ze.math&&re.contains(["bin","rel"],ze.math[n].group))&&(t="\\dotsb"),t});var bw={")":!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};v("\\dotso",function(e){var t=e.future().text;return t in bw?"\\ldots\\,":"\\ldots"}),v("\\dotsc",function(e){var t=e.future().text;return t in bw&&t!==","?"\\ldots\\,":"\\ldots"}),v("\\cdots",function(e){var t=e.future().text;return t in bw?"\\@cdots\\,":"\\@cdots"}),v("\\dotsb","\\cdots"),v("\\dotsm","\\cdots"),v("\\dotsi","\\!\\cdots"),v("\\dotsx","\\ldots\\,"),v("\\DOTSI","\\relax"),v("\\DOTSB","\\relax"),v("\\DOTSX","\\relax"),v("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),v("\\,","\\tmspace+{3mu}{.1667em}"),v("\\thinspace","\\,"),v("\\>","\\mskip{4mu}"),v("\\:","\\tmspace+{4mu}{.2222em}"),v("\\medspace","\\:"),v("\\;","\\tmspace+{5mu}{.2777em}"),v("\\thickspace","\\;"),v("\\!","\\tmspace-{3mu}{.1667em}"),v("\\negthinspace","\\!"),v("\\negmedspace","\\tmspace-{4mu}{.2222em}"),v("\\negthickspace","\\tmspace-{5mu}{.277em}"),v("\\enspace","\\kern.5em "),v("\\enskip","\\hskip.5em\\relax"),v("\\quad","\\hskip1em\\relax"),v("\\qquad","\\hskip2em\\relax"),v("\\tag","\\@ifstar\\tag@literal\\tag@paren"),v("\\tag@paren","\\tag@literal{({#1})}"),v("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new U("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),v("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),v("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),v("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),v("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),v("\\newline","\\\\\\relax"),v("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var iC=W(Et["Main-Regular"][84][1]-.7*Et["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+iC+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+iC+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),v("\\hspace","\\@ifstar\\@hspacer\\@hspace"),v("\\@hspace","\\hskip #1\\relax"),v("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),v("\\ordinarycolon",":"),v("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),v("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),v("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),v("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),v("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),v("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),v("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),v("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),v("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),v("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),v("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),v("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),v("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),v("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),v("∷","\\dblcolon"),v("∹","\\eqcolon"),v("≔","\\coloneqq"),v("≕","\\eqqcolon"),v("⩴","\\Coloneqq"),v("\\ratio","\\vcentcolon"),v("\\coloncolon","\\dblcolon"),v("\\colonequals","\\coloneqq"),v("\\coloncolonequals","\\Coloneqq"),v("\\equalscolon","\\eqqcolon"),v("\\equalscoloncolon","\\Eqqcolon"),v("\\colonminus","\\coloneq"),v("\\coloncolonminus","\\Coloneq"),v("\\minuscolon","\\eqcolon"),v("\\minuscoloncolon","\\Eqcolon"),v("\\coloncolonapprox","\\Colonapprox"),v("\\coloncolonsim","\\Colonsim"),v("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),v("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),v("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),v("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),v("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),v("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),v("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),v("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),v("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),v("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),v("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),v("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),v("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),v("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),v("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),v("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),v("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),v("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),v("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),v("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),v("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),v("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),v("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),v("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),v("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),v("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),v("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),v("\\imath","\\html@mathml{\\@imath}{ı}"),v("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),v("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),v("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),v("⟦","\\llbracket"),v("⟧","\\rrbracket"),v("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),v("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),v("⦃","\\lBrace"),v("⦄","\\rBrace"),v("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),v("⦵","\\minuso"),v("\\darr","\\downarrow"),v("\\dArr","\\Downarrow"),v("\\Darr","\\Downarrow"),v("\\lang","\\langle"),v("\\rang","\\rangle"),v("\\uarr","\\uparrow"),v("\\uArr","\\Uparrow"),v("\\Uarr","\\Uparrow"),v("\\N","\\mathbb{N}"),v("\\R","\\mathbb{R}"),v("\\Z","\\mathbb{Z}"),v("\\alef","\\aleph"),v("\\alefsym","\\aleph"),v("\\Alpha","\\mathrm{A}"),v("\\Beta","\\mathrm{B}"),v("\\bull","\\bullet"),v("\\Chi","\\mathrm{X}"),v("\\clubs","\\clubsuit"),v("\\cnums","\\mathbb{C}"),v("\\Complex","\\mathbb{C}"),v("\\Dagger","\\ddagger"),v("\\diamonds","\\diamondsuit"),v("\\empty","\\emptyset"),v("\\Epsilon","\\mathrm{E}"),v("\\Eta","\\mathrm{H}"),v("\\exist","\\exists"),v("\\harr","\\leftrightarrow"),v("\\hArr","\\Leftrightarrow"),v("\\Harr","\\Leftrightarrow"),v("\\hearts","\\heartsuit"),v("\\image","\\Im"),v("\\infin","\\infty"),v("\\Iota","\\mathrm{I}"),v("\\isin","\\in"),v("\\Kappa","\\mathrm{K}"),v("\\larr","\\leftarrow"),v("\\lArr","\\Leftarrow"),v("\\Larr","\\Leftarrow"),v("\\lrarr","\\leftrightarrow"),v("\\lrArr","\\Leftrightarrow"),v("\\Lrarr","\\Leftrightarrow"),v("\\Mu","\\mathrm{M}"),v("\\natnums","\\mathbb{N}"),v("\\Nu","\\mathrm{N}"),v("\\Omicron","\\mathrm{O}"),v("\\plusmn","\\pm"),v("\\rarr","\\rightarrow"),v("\\rArr","\\Rightarrow"),v("\\Rarr","\\Rightarrow"),v("\\real","\\Re"),v("\\reals","\\mathbb{R}"),v("\\Reals","\\mathbb{R}"),v("\\Rho","\\mathrm{P}"),v("\\sdot","\\cdot"),v("\\sect","\\S"),v("\\spades","\\spadesuit"),v("\\sub","\\subset"),v("\\sube","\\subseteq"),v("\\supe","\\supseteq"),v("\\Tau","\\mathrm{T}"),v("\\thetasym","\\vartheta"),v("\\weierp","\\wp"),v("\\Zeta","\\mathrm{Z}"),v("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),v("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),v("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),v("\\bra","\\mathinner{\\langle{#1}|}"),v("\\ket","\\mathinner{|{#1}\\rangle}"),v("\\braket","\\mathinner{\\langle{#1}\\rangle}"),v("\\Bra","\\left\\langle#1\\right|"),v("\\Ket","\\left|#1\\right\\rangle");var oC=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.consumeArg().tokens,l=t.macros.get("|"),c=t.macros.get("\\|");t.macros.beginGroup();var s=d=>m=>{e&&(m.macros.set("|",l),a.length&&m.macros.set("\\|",c));var k=d;if(!d&&a.length){var g=m.future();g.text==="|"&&(m.popToken(),k=!0)}return{tokens:k?a:r,numArgs:0}};t.macros.set("|",s(!1)),a.length&&t.macros.set("\\|",s(!0));var h=t.consumeArg().tokens,u=t.expandTokens([...o,...h,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};v("\\bra@ket",oC(!1)),v("\\bra@set",oC(!0)),v("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),v("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),v("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),v("\\angln","{\\angl n}"),v("\\blue","\\textcolor{##6495ed}{#1}"),v("\\orange","\\textcolor{##ffa500}{#1}"),v("\\pink","\\textcolor{##ff00af}{#1}"),v("\\red","\\textcolor{##df0030}{#1}"),v("\\green","\\textcolor{##28ae7b}{#1}"),v("\\gray","\\textcolor{gray}{#1}"),v("\\purple","\\textcolor{##9d38bd}{#1}"),v("\\blueA","\\textcolor{##ccfaff}{#1}"),v("\\blueB","\\textcolor{##80f6ff}{#1}"),v("\\blueC","\\textcolor{##63d9ea}{#1}"),v("\\blueD","\\textcolor{##11accd}{#1}"),v("\\blueE","\\textcolor{##0c7f99}{#1}"),v("\\tealA","\\textcolor{##94fff5}{#1}"),v("\\tealB","\\textcolor{##26edd5}{#1}"),v("\\tealC","\\textcolor{##01d1c1}{#1}"),v("\\tealD","\\textcolor{##01a995}{#1}"),v("\\tealE","\\textcolor{##208170}{#1}"),v("\\greenA","\\textcolor{##b6ffb0}{#1}"),v("\\greenB","\\textcolor{##8af281}{#1}"),v("\\greenC","\\textcolor{##74cf70}{#1}"),v("\\greenD","\\textcolor{##1fab54}{#1}"),v("\\greenE","\\textcolor{##0d923f}{#1}"),v("\\goldA","\\textcolor{##ffd0a9}{#1}"),v("\\goldB","\\textcolor{##ffbb71}{#1}"),v("\\goldC","\\textcolor{##ff9c39}{#1}"),v("\\goldD","\\textcolor{##e07d10}{#1}"),v("\\goldE","\\textcolor{##a75a05}{#1}"),v("\\redA","\\textcolor{##fca9a9}{#1}"),v("\\redB","\\textcolor{##ff8482}{#1}"),v("\\redC","\\textcolor{##f9685d}{#1}"),v("\\redD","\\textcolor{##e84d39}{#1}"),v("\\redE","\\textcolor{##bc2612}{#1}"),v("\\maroonA","\\textcolor{##ffbde0}{#1}"),v("\\maroonB","\\textcolor{##ff92c6}{#1}"),v("\\maroonC","\\textcolor{##ed5fa6}{#1}"),v("\\maroonD","\\textcolor{##ca337c}{#1}"),v("\\maroonE","\\textcolor{##9e034e}{#1}"),v("\\purpleA","\\textcolor{##ddd7ff}{#1}"),v("\\purpleB","\\textcolor{##c6b9fc}{#1}"),v("\\purpleC","\\textcolor{##aa87ff}{#1}"),v("\\purpleD","\\textcolor{##7854ab}{#1}"),v("\\purpleE","\\textcolor{##543b78}{#1}"),v("\\mintA","\\textcolor{##f5f9e8}{#1}"),v("\\mintB","\\textcolor{##edf2df}{#1}"),v("\\mintC","\\textcolor{##e0e5cc}{#1}"),v("\\grayA","\\textcolor{##f6f7f7}{#1}"),v("\\grayB","\\textcolor{##f0f1f2}{#1}"),v("\\grayC","\\textcolor{##e3e5e6}{#1}"),v("\\grayD","\\textcolor{##d6d8da}{#1}"),v("\\grayE","\\textcolor{##babec2}{#1}"),v("\\grayF","\\textcolor{##888d93}{#1}"),v("\\grayG","\\textcolor{##626569}{#1}"),v("\\grayH","\\textcolor{##3b3e40}{#1}"),v("\\grayI","\\textcolor{##21242c}{#1}"),v("\\kaBlue","\\textcolor{##314453}{#1}"),v("\\kaGreen","\\textcolor{##71B307}{#1}");var lC={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class SP{constructor(t,n,r){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 bP(LP,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new nC(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,r,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:n,end:r}=this.consumeArg());return this.pushToken(new bt("EOF",r.loc)),this.pushTokens(a),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var a=this.future(),o,l=0,c=0;do{if(o=this.popToken(),n.push(o),o.text==="{")++l;else if(o.text==="}"){if(--l,l===-1)throw new U("Extra }",o)}else if(o.text==="EOF")throw new U("Unexpected end of input in a macro argument, expected '"+(t&&r?t[c]:"}")+"'",o);if(t&&r)if((l===0||l===1&&t[c]==="{")&&o.text===t[c]){if(++c,c===t.length){n.splice(-c,c);break}}else c=0}while(l!==0||r);return a.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:a,end:o}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new U("The length of delimiters doesn't match the number of args!");for(var r=n[0],a=0;a<r.length;a++){var o=this.popToken();if(r[a]!==o.text)throw new U("Use of the macro doesn't match its definition",o)}}for(var l=[],c=0;c<t;c++)l.push(this.consumeArg(n&&n[c+1]).tokens);return l}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new U("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,a=n.noexpand?null:this._getExpansion(r);if(a==null||t&&a.unexpandable){if(t&&a==null&&r[0]==="\\"&&!this.isDefined(r))throw new U("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var o=a.tokens,l=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){o=o.slice();for(var c=o.length-1;c>=0;--c){var s=o[c];if(s.text==="#"){if(c===0)throw new U("Incomplete placeholder at end of macro body",s);if(s=o[--c],s.text==="#")o.splice(c+1,1);else if(/^[1-9]$/.test(s.text))o.splice(c,2,...l[+s.text-1]);else throw new U("Not a valid argument number",s)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new bt(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)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(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var a=typeof n=="function"?n(this):n;if(typeof a=="string"){var o=0;if(a.indexOf("#")!==-1)for(var l=a.replace(/##/g,"");l.indexOf("#"+(o+1))!==-1;)++o;for(var c=new nC(a,this.settings),s=[],h=c.lex();h.text!=="EOF";)s.push(h),h=c.lex();s.reverse();var u={tokens:s,numArgs:o};return u}return a}isDefined(t){return this.macros.has(t)||d1.hasOwnProperty(t)||ze.math.hasOwnProperty(t)||ze.text.hasOwnProperty(t)||lC.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:d1.hasOwnProperty(t)&&!d1[t].primitive}}var cC=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Hx=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Lw={"́":{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"}},sC={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Bx{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 SP(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new U("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 bt("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(Bx.endOfExpression.indexOf(a.text)!==-1||n&&a.text===n||t&&d1[a.text]&&d1[a.text].infix)break;var o=this.parseAtom(n);if(o){if(o.type==="internal")continue}else break;r.push(o)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,a=0;a<t.length;a++)if(t[a].type==="infix"){if(n!==-1)throw new U("only one infix operator per group",t[a].token);n=a,r=t[a].replaceWith}if(n!==-1&&r){var o,l,c=t.slice(0,n),s=t.slice(n+1);c.length===1&&c[0].type==="ordgroup"?o=c[0]:o={type:"ordgroup",mode:this.mode,body:c},s.length===1&&s[0].type==="ordgroup"?l=s[0]:l={type:"ordgroup",mode:this.mode,body:s};var h;return r==="\\\\abovefrac"?h=this.callFunction(r,[o,t[n],l],[]):h=this.callFunction(r,[o,l],[]),[h]}else return t}handleSupSubscript(t){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var a;do{var o;a=this.parseGroup(t)}while(((o=a)==null?void 0:o.type)==="internal");if(!a)throw new U("Expected group after '"+r+"'",n);return a}formatUnsupportedCmd(t){for(var n=[],r=0;r<t.length;r++)n.push({type:"textord",mode:"text",text:t[r]});var a={type:"text",mode:this.mode,body:n},o={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return o}parseAtom(t){var n=this.parseGroup("atom",t);if((n==null?void 0:n.type)==="internal"||this.mode==="text")return n;for(var r,a;;){this.consumeSpaces();var o=this.fetch();if(o.text==="\\limits"||o.text==="\\nolimits"){if(n&&n.type==="op"){var l=o.text==="\\limits";n.limits=l,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=o.text==="\\limits");else throw new U("Limit controls must follow a math operator",o);this.consume()}else if(o.text==="^"){if(r)throw new U("Double superscript",o);r=this.handleSupSubscript("superscript")}else if(o.text==="_"){if(a)throw new U("Double subscript",o);a=this.handleSupSubscript("subscript")}else if(o.text==="'"){if(r)throw new U("Double superscript",o);var c={type:"textord",mode:this.mode,text:"\\prime"},s=[c];for(this.consume();this.fetch().text==="'";)s.push(c),this.consume();this.fetch().text==="^"&&s.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:s}}else if(Hx[o.text]){var h=cC.test(o.text),u=[];for(u.push(new bt(Hx[o.text])),this.consume();;){var d=this.fetch().text;if(!Hx[d]||cC.test(d)!==h)break;u.unshift(new bt(Hx[d])),this.consume()}var m=this.subparse(u);h?a={type:"ordgroup",mode:"math",body:m}:r={type:"ordgroup",mode:"math",body:m}}else break}return r||a?{type:"supsub",mode:this.mode,base:n,sup:r,sub:a}:n}parseFunction(t,n){var r=this.fetch(),a=r.text,o=d1[a];if(!o)return null;if(this.consume(),n&&n!=="atom"&&!o.allowedInArgument)throw new U("Got function '"+a+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!o.allowedInText)throw new U("Can't use function '"+a+"' in text mode",r);if(this.mode==="math"&&o.allowedInMath===!1)throw new U("Can't use function '"+a+"' in math mode",r);var{args:l,optArgs:c}=this.parseArguments(a,o);return this.callFunction(a,l,c,r,t)}callFunction(t,n,r,a,o){var l={funcName:t,parser:this,token:a,breakOnTokenText:o},c=d1[t];if(c&&c.handler)return c.handler(l,n,r);throw new U("No function handler for "+t)}parseArguments(t,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var a=[],o=[],l=0;l<r;l++){var c=n.argTypes&&n.argTypes[l],s=l<n.numOptionalArgs;(n.primitive&&c==null||n.type==="sqrt"&&l===1&&o[0]==null)&&(c="primitive");var h=this.parseGroupOfType("argument to '"+t+"'",c,s);if(s)o.push(h);else if(h!=null)a.push(h);else throw new U("Null argument, please report this as a bug")}return{args:a,optArgs:o}}parseGroupOfType(t,n,r){switch(n){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,n);case"hbox":{var a=this.parseArgumentGroup(r,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var o=this.parseStringGroup("raw",r);return o!=null?{type:"raw",mode:"text",string:o.text}:null}case"primitive":{if(r)throw new U("A primitive argument cannot be optional");var l=this.parseGroup(t);if(l==null)throw new U("Expected group as "+t,this.fetch());return l}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new U("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var a="",o;(o=this.fetch()).text!=="EOF";)a+=o.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(t,n){for(var r=this.fetch(),a=r,o="",l;(l=this.fetch()).text!=="EOF"&&t.test(o+l.text);)a=l,o+=a.text,this.consume();if(o==="")throw new U("Invalid "+n+": '"+r.text+"'",r);return r.range(a,o)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!r)throw new U("Invalid color: '"+n.text+"'",n);var a=r[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var n,r=!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",r=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!a)throw new U("Invalid size: '"+n.text+"'",n);var o={number:+(a[1]+a[2]),unit:a[3]};if(!UL(o))throw new U("Invalid unit: '"+o.unit+"'",n);return{type:"size",mode:this.mode,value:o,isBlank:r}}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 r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(t,n){var r=this.gullet.scanArgument(t);if(r==null)return null;var a=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var l={type:"ordgroup",mode:this.mode,loc:r.loc,body:o};return n&&this.switchMode(a),l}parseGroup(t,n){var r=this.fetch(),a=r.text,o;if(a==="{"||a==="\\begingroup"){this.consume();var l=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var c=this.parseExpression(!1,l),s=this.fetch();this.expect(l),this.gullet.endGroup(),o={type:"ordgroup",mode:this.mode,loc:mt.range(r,s),body:c,semisimple:a==="\\begingroup"||void 0}}else if(o=this.parseFunction(n,t)||this.parseSymbol(),o==null&&a[0]==="\\"&&!lC.hasOwnProperty(a)){if(this.settings.throwOnError)throw new U("Undefined control sequence: "+a,r);o=this.formatUnsupportedCmd(a),this.consume()}return o}formLigatures(t){for(var n=t.length-1,r=0;r<n;++r){var a=t[r],o=a.text;o==="-"&&t[r+1].text==="-"&&(r+1<n&&t[r+2].text==="-"?(t.splice(r,3,{type:"textord",mode:"text",loc:mt.range(a,t[r+2]),text:"---"}),n-=2):(t.splice(r,2,{type:"textord",mode:"text",loc:mt.range(a,t[r+1]),text:"--"}),n-=1)),(o==="'"||o==="`")&&t[r+1].text===o&&(t.splice(r,2,{type:"textord",mode:"text",loc:mt.range(a,t[r+1]),text:o+o}),n-=1)}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),a=r.charAt(0)==="*";if(a&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new U(`\\verb assertion failed --
|
|
7832
|
+
please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:a}}sC.hasOwnProperty(n[0])&&!ze[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=sC[n[0]]+n.slice(1));var o=MP.exec(n);o&&(n=n.substring(0,o.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var l;if(ze[this.mode][n]){this.settings.strict&&this.mode==="math"&&XM.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var c=ze[this.mode][n].group,s=mt.range(t),h;if(pB.hasOwnProperty(c)){var u=c;h={type:"atom",mode:this.mode,family:u,loc:s,text:n}}else h={type:c,mode:this.mode,loc:s,text:n};l=h}else if(n.charCodeAt(0)>=128)this.settings.strict&&(EL(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)),l={type:"textord",mode:"text",loc:mt.range(t),text:n};else return null;if(this.consume(),o)for(var d=0;d<o[0].length;d++){var m=o[0][d];if(!Lw[m])throw new U("Unknown accent ' "+m+"'",t);var k=Lw[m][this.mode]||Lw[m].text;if(!k)throw new U("Accent "+m+" unsupported in "+this.mode+" mode",t);l={type:"accent",mode:this.mode,loc:mt.range(t),label:k,isStretchy:!1,isShifty:!0,base:l}}return l}}Bx.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Sw=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Bx(t,n);delete r.gullet.macros.current["\\df@tag"];var a=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new U("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:r.subparse([new bt("\\df@tag")])}]}return a},hC=function(t,n,r){n.textContent="";var a=Cw(t,r).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."),hC=function(){throw new U("KaTeX doesn't work in quirks mode.")});var CP=function(t,n){var r=Cw(t,n).toMarkup();return r},IP=function(t,n){var r=new RM(n);return Sw(t,r)},uC=function(t,n,r){if(r.throwOnError||!(t instanceof U))throw t;var a=H.makeSpan(["katex-error"],[new St(n)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+r.errorColor),a},Cw=function(t,n){var r=new RM(n);try{var a=Sw(t,r);return DB(a,t,r)}catch(o){return uC(o,t,r)}},AP=function(t,n){var r=new RM(n);try{var a=Sw(t,r);return RB(a,t,r)}catch(o){return uC(o,t,r)}},zP="0.16.22",TP={Span:Dn,Anchor:UM,SymbolNode:St,SvgNode:Xt,PathNode:c1,LineNode:_M},dC={version:zP,render:hC,renderToString:CP,ParseError:U,SETTINGS_SCHEMA:ux,__parse:IP,__renderToDomTree:Cw,__renderToHTMLTree:AP,__setFontMetrics:iB,__defineSymbol:p,__defineFunction:J,__defineMacro:v,__domTree:TP};const qP={};function HP(e){const t=this,n=e||qP,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(TH(n)),o.push(wH()),l.push(bH(n))}const pC=/[#.]/g;function BP(e,t){const n=e||"",r={};let a=0,o,l;for(;a<n.length;){pC.lastIndex=a;const c=pC.exec(n),s=n.slice(a,c?c.index:n.length);s&&(o?o==="#"?r.id=s:Array.isArray(r.className)?r.className.push(s):r.className=[s]:l=s,a+=s.length),c&&(o=c[0],a++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function yC(e,t,n){const r=n?RP(n):void 0;function a(o,l,...c){let s;if(o==null){s={type:"root",children:[]};const h=l;c.unshift(h)}else{s=BP(o,t);const h=s.tagName.toLowerCase(),u=r?r.get(h):void 0;if(s.tagName=u||h,PP(l))c.unshift(l);else for(const[d,m]of Object.entries(l))FP(e,s.properties,d,m)}for(const h of c)Iw(s.children,h);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return a}function PP(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 r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const o=a;for(const l of o)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function FP(e,t,n,r){const a=vb(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?a.spaceSeparated?o=Mb(r):a.commaSeparated?o=lb(r):a.commaOrSpaceSeparated?o=Mb(lb(r).join(" ")):o=kC(a,a.property,r):Array.isArray(r)?o=[...r]:o=a.property==="style"?DP(r):String(r);if(Array.isArray(o)){const l=[];for(const c of o)l.push(kC(a,a.property,c));o=l}a.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function Iw(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)Iw(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Iw(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function kC(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ln(n)===Ln(t)))return!0}return n}function DP(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function RP(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const EP=["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"],jP=yC(xb,"div"),OP=yC(Qv,"g",EP),Aw={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function VP(e,t){return mC(e,{})||{type:"root",children:[]}}function mC(e,t){const n=NP(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function NP(e,t){switch(e.nodeType){case 1:return ZP(e,t);case 3:return _P(e);case 8:return GP(e);case 9:return fC(e,t);case 10:return UP();case 11:return fC(e,t);default:return}}function fC(e,t){return{type:"root",children:gC(e,t)}}function UP(){return{type:"doctype"}}function _P(e){return{type:"text",value:e.nodeValue||""}}function GP(e){return{type:"comment",value:e.nodeValue||""}}function ZP(e,t){const n=e.namespaceURI,r=n===Aw.svg?OP:jP,a=n===Aw.html?e.tagName.toLowerCase():e.tagName,o=n===Aw.html&&a==="template"?e.content:e,l=e.getAttributeNames(),c={};let s=-1;for(;++s<l.length;)c[l[s]]=e.getAttribute(l[s])||"";return r(a,c,gC(o,t))}function gC(e,t){const n=e.childNodes,r=[];let a=-1;for(;++a<n.length;){const o=mC(n[a],t);o!==void 0&&r.push(o)}return r}new DOMParser;function WP(e,t){const n=XP(e);return VP(n)}function XP(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const vC=function(e,t,n){const r=Hn(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(r(e.children[t],t,e))return e.children[t]},E0=function(e){if(e==null)return QP;if(typeof e=="string")return YP(e);if(typeof e=="object")return KP(e);if(typeof e=="function")return zw(e);throw new Error("Expected function, string, or array as `test`")};function KP(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=E0(e[n]);return zw(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function YP(e){return zw(t);function t(n){return n.tagName===e}}function zw(e){return t;function t(n,r,a){return!!(JP(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function QP(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function JP(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const xC=/\n/g,MC=/[\t ]+/g,Tw=E0("br"),wC=E0(oF),$P=E0("p"),bC=E0("tr"),eF=E0(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",iF,lF]),LC=E0(["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 tF(e,t){const n=t||{},r="children"in e?e.children:[],a=LC(e),o=IC(e,{whitespace:n.whitespace||"normal"}),l=[];(e.type==="text"||e.type==="comment")&&l.push(...CC(e,{breakBefore:!0,breakAfter:!0}));let c=-1;for(;++c<r.length;)l.push(...SC(r[c],e,{whitespace:o,breakBefore:c?void 0:a,breakAfter:c<r.length-1?Tw(r[c+1]):a}));const s=[];let h;for(c=-1;++c<l.length;){const u=l[c];typeof u=="number"?h!==void 0&&u>h&&(h=u):u&&(h!==void 0&&h>-1&&s.push(`
|
|
7832
7833
|
`.repeat(h)||" "),h=-1,s.push(u))}return s.join("")}function SC(e,t,n){return e.type==="element"?nF(e,t,n):e.type==="text"?n.whitespace==="normal"?CC(e,n):rF(e):[]}function nF(e,t,n){const r=IC(e,n),a=e.children||[];let o=-1,l=[];if(eF(e))return l;let c,s;for(Tw(e)||bC(e)&&vC(t,e,bC)?s=`
|
|
7833
|
-
`:$P(e)?(c=2,s=2):LC(e)&&(c=1,s=1);++o<a.length;)l=l.concat(SC(a[o],e,{whitespace:r,breakBefore:o?void 0:c,breakAfter:o<a.length-1?Tw(a[o+1]):s}));return wC(e)&&vC(t,e,wC)&&l.push(" "),c&&l.unshift(c),s&&l.push(s),l}function CC(e,t){const n=String(e.value),r=[],a=[];let o=0;for(;o<=n.length;){xC.lastIndex=o;const s=xC.exec(n),h=s&&"index"in s?s.index:n.length;r.push(aF(n.slice(o,h).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o===0?t.breakBefore:!0,h===n.length?t.breakAfter:!0)),o=h+1}let l=-1,c;for(;++l<r.length;)r[l].charCodeAt(r[l].length-1)===8203||l<r.length-1&&r[l+1].charCodeAt(0)===8203?(a.push(r[l]),c=void 0):r[l]?(typeof c=="number"&&a.push(c),a.push(r[l]),c=0):(l===0||l===r.length-1)&&a.push(0);return a}function rF(e){return[String(e.value)]}function aF(e,t,n){const r=[];let a=0,o;for(;a<e.length;){MC.lastIndex=a;const l=MC.exec(e);o=l?l.index:e.length,!a&&!o&&l&&!t&&r.push(""),a!==o&&r.push(e.slice(a,o)),a=l?o+l[0].length:o}return a!==o&&!n&&r.push(""),r.join(" ")}function IC(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 iF(e){return!!(e.properties||{}).hidden}function oF(e){return e.tagName==="td"||e.tagName==="th"}function lF(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const cF={},sF=[];function hF(e){const t=e||cF;return function(n,r){LM(n,"element",function(a,o){const l=Array.isArray(a.properties.className)?a.properties.className:sF,c=l.includes("language-math"),s=l.includes("math-display"),h=l.includes("math-inline");let u=s;if(!c&&!s&&!h)return;let d=o[o.length-1],m=a;if(a.tagName==="code"&&c&&d&&d.type==="element"&&d.tagName==="pre"&&(m=d,d=o[o.length-2],u=!0),!d)return;const k=tF(m,{whitespace:"pre"});let g;try{g=dC.renderToString(k,{...t,displayMode:u,throwOnError:!0})}catch(
|
|
7834
|
-
`:" ")+o.indentLines(o.containerFlow(r,c.current()),t?qC:jF))),h(),s}}function jF(e,t,n){return t===0?e:qC(e,t,n)}function qC(e,t,n){return(n?"":" ")+e}const OF=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];HC.peek=GF;function VF(){return{canContainEols:["delete"],enter:{strikethrough:UF},exit:{strikethrough:_F}}}function NF(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:OF}],handlers:{delete:HC}}}function UF(e){this.enter({type:"delete",children:[]},e)}function _F(e){this.exit(e)}function HC(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),o(),l}function GF(){return"~"}function ZF(e){return e.length}function WF(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||ZF,o=[],l=[],c=[],s=[];let h=0,u=-1;for(;++u<e.length;){const x=[],
|
|
7834
|
+
`:$P(e)?(c=2,s=2):LC(e)&&(c=1,s=1);++o<a.length;)l=l.concat(SC(a[o],e,{whitespace:r,breakBefore:o?void 0:c,breakAfter:o<a.length-1?Tw(a[o+1]):s}));return wC(e)&&vC(t,e,wC)&&l.push(" "),c&&l.unshift(c),s&&l.push(s),l}function CC(e,t){const n=String(e.value),r=[],a=[];let o=0;for(;o<=n.length;){xC.lastIndex=o;const s=xC.exec(n),h=s&&"index"in s?s.index:n.length;r.push(aF(n.slice(o,h).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o===0?t.breakBefore:!0,h===n.length?t.breakAfter:!0)),o=h+1}let l=-1,c;for(;++l<r.length;)r[l].charCodeAt(r[l].length-1)===8203||l<r.length-1&&r[l+1].charCodeAt(0)===8203?(a.push(r[l]),c=void 0):r[l]?(typeof c=="number"&&a.push(c),a.push(r[l]),c=0):(l===0||l===r.length-1)&&a.push(0);return a}function rF(e){return[String(e.value)]}function aF(e,t,n){const r=[];let a=0,o;for(;a<e.length;){MC.lastIndex=a;const l=MC.exec(e);o=l?l.index:e.length,!a&&!o&&l&&!t&&r.push(""),a!==o&&r.push(e.slice(a,o)),a=l?o+l[0].length:o}return a!==o&&!n&&r.push(""),r.join(" ")}function IC(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 iF(e){return!!(e.properties||{}).hidden}function oF(e){return e.tagName==="td"||e.tagName==="th"}function lF(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const cF={},sF=[];function hF(e){const t=e||cF;return function(n,r){LM(n,"element",function(a,o){const l=Array.isArray(a.properties.className)?a.properties.className:sF,c=l.includes("language-math"),s=l.includes("math-display"),h=l.includes("math-inline");let u=s;if(!c&&!s&&!h)return;let d=o[o.length-1],m=a;if(a.tagName==="code"&&c&&d&&d.type==="element"&&d.tagName==="pre"&&(m=d,d=o[o.length-2],u=!0),!d)return;const k=tF(m,{whitespace:"pre"});let g;try{g=dC.renderToString(k,{...t,displayMode:u,throwOnError:!0})}catch(C){const w=C,I=w.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...o,a],cause:w,place:a.position,ruleId:I,source:"rehype-katex"});try{g=dC.renderToString(k,{...t,displayMode:u,strict:"ignore",throwOnError:!1})}catch{g=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(C)},children:[{type:"text",value:k}]}]}}typeof g=="string"&&(g=WP(g).children);const x=d.children.indexOf(m);return d.children.splice(x,1,...g),gL})}}function AC(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function uF(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function dF(e,t,n){const a=Hn((n||{}).ignore||[]),o=pF(t);let l=-1;for(;++l<o.length;)LM(e,"text",c);function c(h,u){let d=-1,m;for(;++d<u.length;){const k=u[d],g=m?m.children:void 0;if(a(k,g?g.indexOf(k):void 0,m))return;m=k}if(m)return s(h,u)}function s(h,u){const d=u[u.length-1],m=o[l][0],k=o[l][1];let g=0;const C=d.children.indexOf(h);let w=!1,I=[];m.lastIndex=0;let q=m.exec(h.value);for(;q;){const j=q.index,R={index:q.index,input:q.input,stack:[...u,h]};let T=k(...q,R);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?m.lastIndex=j+1:(g!==j&&I.push({type:"text",value:h.value.slice(g,j)}),Array.isArray(T)?I.push(...T):T&&I.push(T),g=j+q[0].length,w=!0),!m.global)break;q=m.exec(h.value)}return w?(g<h.value.length&&I.push({type:"text",value:h.value.slice(g)}),d.children.splice(C,1,...I)):I=[h],C+I.length}}function pF(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([yF(a[0]),kF(a[1])])}return t}function yF(e){return typeof e=="string"?new RegExp(uF(e),"g"):e}function kF(e){return typeof e=="function"?e:function(){return e}}const qw="phrasing",Hw=["autolink","link","image","label"];function mF(){return{transforms:[bF],enter:{literalAutolink:gF,literalAutolinkEmail:Bw,literalAutolinkHttp:Bw,literalAutolinkWww:Bw},exit:{literalAutolink:wF,literalAutolinkEmail:MF,literalAutolinkHttp:vF,literalAutolinkWww:xF}}}function fF(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:qw,notInConstruct:Hw},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:qw,notInConstruct:Hw},{character:":",before:"[ps]",after:"\\/",inConstruct:qw,notInConstruct:Hw}]}}function gF(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bw(e){this.config.enter.autolinkProtocol.call(this,e)}function vF(e){this.config.exit.autolinkProtocol.call(this,e)}function xF(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 MF(e){this.config.exit.autolinkEmail.call(this,e)}function wF(e){this.exit(e)}function bF(e){dF(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,LF],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),SF]],{ignore:["link","linkReference"]})}function LF(e,t,n,r,a){let o="";if(!zC(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!CF(n)))return!1;const l=IF(n+r);if(!l[0])return!1;const c={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[c,{type:"text",value:l[1]}]:c}function SF(e,t,n,r){return!zC(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function CF(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 IF(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=AC(e,"(");let o=AC(e,")");for(;r!==-1&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function zC(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||P0(n)||ex(n))&&(!t||n!==47)}TC.peek=DF;function AF(){this.buffer()}function zF(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function TF(){this.buffer()}function qF(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function HF(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=zt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function BF(e){this.exit(e)}function PF(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=zt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function FF(e){this.exit(e)}function DF(){return"["}function TC(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const l=n.enter("footnoteReference"),c=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),c(),l(),o+=a.move("]"),o}function RF(){return{enter:{gfmFootnoteCallString:AF,gfmFootnoteCall:zF,gfmFootnoteDefinitionLabelString:TF,gfmFootnoteDefinition:qF},exit:{gfmFootnoteCallString:HF,gfmFootnoteCall:BF,gfmFootnoteDefinitionLabelString:PF,gfmFootnoteDefinition:FF}}}function EF(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:TC},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,o,l){const c=o.createTracker(l);let s=c.move("[^");const h=o.enter("footnoteDefinition"),u=o.enter("label");return s+=c.move(o.safe(o.associationId(r),{before:s,after:"]"})),u(),s+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),s+=c.move((t?`
|
|
7835
|
+
`:" ")+o.indentLines(o.containerFlow(r,c.current()),t?qC:jF))),h(),s}}function jF(e,t,n){return t===0?e:qC(e,t,n)}function qC(e,t,n){return(n?"":" ")+e}const OF=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];HC.peek=GF;function VF(){return{canContainEols:["delete"],enter:{strikethrough:UF},exit:{strikethrough:_F}}}function NF(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:OF}],handlers:{delete:HC}}}function UF(e){this.enter({type:"delete",children:[]},e)}function _F(e){this.exit(e)}function HC(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),o(),l}function GF(){return"~"}function ZF(e){return e.length}function WF(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||ZF,o=[],l=[],c=[],s=[];let h=0,u=-1;for(;++u<e.length;){const x=[],C=[];let w=-1;for(e[u].length>h&&(h=e[u].length);++w<e[u].length;){const I=XF(e[u][w]);if(n.alignDelimiters!==!1){const q=a(I);C[w]=q,(s[w]===void 0||q>s[w])&&(s[w]=q)}x.push(I)}l[u]=x,c[u]=C}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<h;)o[d]=BC(r[d]);else{const x=BC(r);for(;++d<h;)o[d]=x}d=-1;const m=[],k=[];for(;++d<h;){const x=o[d];let C="",w="";x===99?(C=":",w=":"):x===108?C=":":x===114&&(w=":");let I=n.alignDelimiters===!1?1:Math.max(1,s[d]-C.length-w.length);const q=C+"-".repeat(I)+w;n.alignDelimiters!==!1&&(I=C.length+I+w.length,I>s[d]&&(s[d]=I),k[d]=I),m[d]=q}l.splice(1,0,m),c.splice(1,0,k),u=-1;const g=[];for(;++u<l.length;){const x=l[u],C=c[u];d=-1;const w=[];for(;++d<h;){const I=x[d]||"";let q="",j="";if(n.alignDelimiters!==!1){const R=s[d]-(C[d]||0),T=o[d];T===114?q=" ".repeat(R):T===99?R%2?(q=" ".repeat(R/2+.5),j=" ".repeat(R/2-.5)):(q=" ".repeat(R/2),j=q):j=" ".repeat(R)}n.delimiterStart!==!1&&!d&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&I==="")&&(n.delimiterStart!==!1||d)&&w.push(" "),n.alignDelimiters!==!1&&w.push(q),w.push(I),n.alignDelimiters!==!1&&w.push(j),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||d!==h-1)&&w.push("|")}g.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return g.join(`
|
|
7835
7836
|
`)}function XF(e){return e==null?"":String(e)}function BC(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 KF(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),YF);return a(),l}function YF(e,t,n){return">"+(n?"":" ")+e}function QF(e,t){return PC(e,t.inConstruct,!0)&&!PC(e,t.notInConstruct,!1)}function PC(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function FC(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
7836
7837
|
`&&QF(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
7837
7838
|
`}function JF(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 $F(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 eD(e,t,n,r){const a=$F(n),o=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(JF(e,n)){const d=n.enter("codeIndented"),m=n.indentLines(o,tD);return d(),m}const c=n.createTracker(r),s=a.repeat(Math.max(FL(o,a)+1,3)),h=n.enter("codeFenced");let u=c.move(s);if(e.lang){const d=n.enter(`codeFencedLang${l}`);u+=c.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...c.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${l}`);u+=c.move(" "),u+=c.move(n.safe(e.meta,{before:u,after:`
|
|
@@ -7844,18 +7845,18 @@ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
7844
7845
|
`+(a===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
|
|
7845
7846
|
`))+1))}const l="#".repeat(a),c=n.enter("headingAtx"),s=n.enter("phrasing");o.move(l+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
|
|
7846
7847
|
`,...o.current()});return/^[\t ]/.test(h)&&(h=Vn(h.charCodeAt(0))+h.slice(1)),h=h?l+" "+h:l,n.options.closeAtx&&(h+=" "+l),s(),c(),h}RC.peek=lD;function RC(e){return e.value||""}function lD(){return"<"}EC.peek=cD;function EC(e,t,n,r){const a=Pw(n),o=a==='"'?"Quote":"Apostrophe",l=n.enter("image");let c=n.enter("label");const s=n.createTracker(r);let h=s.move("![");return h+=s.move(n.safe(e.alt,{before:h,after:"]",...s.current()})),h+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=s.move("<"),h+=s.move(n.safe(e.url,{before:h,after:">",...s.current()})),h+=s.move(">")):(c=n.enter("destinationRaw"),h+=s.move(n.safe(e.url,{before:h,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=n.enter(`title${o}`),h+=s.move(" "+a),h+=s.move(n.safe(e.title,{before:h,after:a,...s.current()})),h+=s.move(a),c()),h+=s.move(")"),l(),h}function cD(){return"!"}jC.peek=sD;function jC(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const c=n.createTracker(r);let s=c.move("![");const h=n.safe(e.alt,{before:s,after:"]",...c.current()});s+=c.move(h+"]["),l();const u=n.stack;n.stack=[],l=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...c.current()});return l(),n.stack=u,o(),a==="full"||!h||h!==d?s+=c.move(d+"]"):a==="shortcut"?s=s.slice(0,-1):s+=c.move("]"),s}function sD(){return"!"}OC.peek=hD;function OC(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],c=n.compilePattern(l);let s;if(l.atBreak)for(;s=c.exec(r);){let h=s.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(s.index+1)}}return a+r+a}function hD(){return"`"}function VC(e,t){const n=dM(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))}NC.peek=uD;function NC(e,t,n,r){const a=Pw(n),o=a==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let c,s;if(VC(e,n)){const u=n.stack;n.stack=[],c=n.enter("autolink");let d=l.move("<");return d+=l.move(n.containerPhrasing(e,{before:d,after:">",...l.current()})),d+=l.move(">"),c(),n.stack=u,d}c=n.enter("link"),s=n.enter("label");let h=l.move("[");return h+=l.move(n.containerPhrasing(e,{before:h,after:"](",...l.current()})),h+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),h+=l.move("<"),h+=l.move(n.safe(e.url,{before:h,after:">",...l.current()})),h+=l.move(">")):(s=n.enter("destinationRaw"),h+=l.move(n.safe(e.url,{before:h,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),h+=l.move(" "+a),h+=l.move(n.safe(e.title,{before:h,after:a,...l.current()})),h+=l.move(a),s()),h+=l.move(")"),c(),h}function uD(e,t,n){return VC(e,n)?"<":"["}UC.peek=dD;function UC(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const c=n.createTracker(r);let s=c.move("[");const h=n.containerPhrasing(e,{before:s,after:"]",...c.current()});s+=c.move(h+"]["),l();const u=n.stack;n.stack=[],l=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...c.current()});return l(),n.stack=u,o(),a==="full"||!h||h!==d?s+=c.move(d+"]"):a==="shortcut"?s=s.slice(0,-1):s+=c.move("]"),s}function dD(){return"["}function Fw(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 pD(e){const t=Fw(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 yD(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 _C(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 kD(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?yD(n):Fw(n);const c=e.ordered?l==="."?")":".":pD(n);let s=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&u&&(!u.children||!u.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&&(s=!0),_C(n)===l&&u){let d=-1;for(;++d<e.children.length;){const m=e.children[d];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=c),n.bulletCurrent=l;const h=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,a(),h}function mD(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 fD(e,t,n,r){const a=mD(n);let o=n.bulletCurrent||Fw(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const c=n.createTracker(r);c.move(o+" ".repeat(l-o.length)),c.shift(l);const s=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,c.current()),u);return s(),h;function u(d,m,k){return m?(k?"":" ".repeat(l))+d:(k?o:o+" ".repeat(l-o.length))+d}}function gD(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),a(),l}const vD=Hn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function xD(e,t,n,r){return(e.children.some(function(l){return vD(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function MD(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}GC.peek=wD;function GC(e,t,n,r){const a=MD(n),o=n.enter("strong"),l=n.createTracker(r),c=l.move(a+a);let s=l.move(n.containerPhrasing(e,{after:a,before:c,...l.current()}));const h=s.charCodeAt(0),u=Px(r.before.charCodeAt(r.before.length-1),h,a);u.inside&&(s=Vn(h)+s.slice(1));const d=s.charCodeAt(s.length-1),m=Px(r.after.charCodeAt(0),d,a);m.inside&&(s=s.slice(0,-1)+Vn(d));const k=l.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:m.outside,before:u.outside},c+s+k}function wD(e,t,n){return n.options.strong||"*"}function bD(e,t,n,r){return n.safe(e.value,r)}function LD(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 SD(e,t,n){const r=(_C(n)+(n.options.ruleSpaces?" ":"")).repeat(LD(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ZC={blockquote:KF,break:FC,code:eD,definition:nD,emphasis:DC,hardBreak:FC,heading:oD,html:RC,image:EC,imageReference:jC,inlineCode:OC,link:NC,linkReference:UC,list:kD,listItem:fD,paragraph:gD,root:xD,strong:GC,text:bD,thematicBreak:SD};function CD(){return{enter:{table:ID,tableData:WC,tableHeader:WC,tableRow:zD},exit:{codeText:TD,table:AD,tableData:Dw,tableHeader:Dw,tableRow:Dw}}}function ID(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 AD(e){this.exit(e),this.data.inTable=void 0}function zD(e){this.enter({type:"tableRow",children:[]},e)}function Dw(e){this.exit(e)}function WC(e){this.enter({type:"tableCell",children:[]},e)}function TD(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,qD));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function qD(e,t){return t==="|"?t:e}function HD(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
7847
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:l,tableCell:s,tableRow:c}};function l(k,g,x,
|
|
7848
|
-
`))}function s(k,g,x,A){const b=x.enter("tableCell"),C=x.enter("phrasing"),q=x.containerPhrasing(k,{...A,before:o,after:o});return C(),b(),q}function h(k,g){return WF(k,{align:g,alignDelimiters:r,padding:n,stringLength:a})}function u(k,g,x){const A=k.children;let b=-1;const C=[],q=g.enter("table");for(;++b<A.length;)C[b]=d(A[b],g,x);return q(),C}function d(k,g,x){const A=k.children;let b=-1;const C=[],q=g.enter("tableRow");for(;++b<A.length;)C[b]=s(A[b],k,g,x);return q(),C}function m(k,g,x){let A=ZC.inlineCode(k,g,x);return x.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function BD(){return{exit:{taskListCheckValueChecked:XC,taskListCheckValueUnchecked:XC,paragraph:FD}}}function PD(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:DD}}}function XC(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function FD(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let o=-1,l;for(;++o<a.length;){const c=a[o];if(c.type==="paragraph"){l=c;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function DD(e,t,n,r){const a=e.children[0],o=typeof e.checked=="boolean"&&a&&a.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);o&&c.move(l);let s=ZC.listItem(e,t,n,{...r,...c.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),s;function h(u){return u+l}}function RD(){return[mF(),RF(),VF(),CD(),BD()]}function ED(e){return{extensions:[fF(),EF(e),NF(),HD(e),PD()]}}const jD={tokenize:GD,partial:!0},KC={tokenize:ZD,partial:!0},YC={tokenize:WD,partial:!0},QC={tokenize:XD,partial:!0},OD={tokenize:KD,partial:!0},JC={name:"wwwAutolink",tokenize:UD,previous:eI},$C={name:"protocolAutolink",tokenize:_D,previous:tI},e1={name:"emailAutolink",tokenize:ND,previous:nI},Ut={};function VD(){return{text:Ut}}let j0=48;for(;j0<123;)Ut[j0]=e1,j0++,j0===58?j0=65:j0===91&&(j0=97);Ut[43]=e1,Ut[45]=e1,Ut[46]=e1,Ut[95]=e1,Ut[72]=[e1,$C],Ut[104]=[e1,$C],Ut[87]=[e1,JC],Ut[119]=[e1,JC];function ND(e,t,n){const r=this;let a,o;return l;function l(d){return!Rw(d)||!nI.call(r,r.previous)||Ew(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(d))}function c(d){return Rw(d)?(e.consume(d),c):d===64?(e.consume(d),s):n(d)}function s(d){return d===46?e.check(OD,u,h)(d):d===45||d===95||Je(d)?(o=!0,e.consume(d),s):u(d)}function h(d){return e.consume(d),a=!0,s}function u(d){return o&&a&&$e(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function UD(e,t,n){const r=this;return a;function a(l){return l!==87&&l!==119||!eI.call(r,r.previous)||Ew(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(jD,e.attempt(KC,e.attempt(YC,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function _D(e,t,n){const r=this;let a="",o=!1;return l;function l(d){return(d===72||d===104)&&tI.call(r,r.previous)&&!Ew(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),c):n(d)}function c(d){if($e(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),c;if(d===58){const m=a.toLowerCase();if(m==="http"||m==="https")return e.consume(d),s}return n(d)}function s(d){return d===47?(e.consume(d),o?h:(o=!0,s)):n(d)}function h(d){return d===null||$v(d)||Le(d)||P0(d)||ex(d)?n(d):e.attempt(KC,e.attempt(YC,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function GD(e,t,n){let r=0;return a;function a(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),a):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function ZD(e,t,n){let r,a,o;return l;function l(h){return h===46||h===95?e.check(QC,s,c)(h):h===null||Le(h)||P0(h)||h!==45&&ex(h)?s(h):(o=!0,e.consume(h),l)}function c(h){return h===95?r=!0:(a=r,r=void 0),e.consume(h),l}function s(h){return a||r||!o?n(h):t(h)}}function WD(e,t){let n=0,r=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(QC,t,o)(l):l===null||Le(l)||P0(l)?t(l):(e.consume(l),a)}function o(l){return l===41&&r++,e.consume(l),a}}function XD(e,t,n){return r;function r(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),r):c===38?(e.consume(c),o):c===93?(e.consume(c),a):c===60||c===null||Le(c)||P0(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||Le(c)||P0(c)?t(c):r(c)}function o(c){return $e(c)?l(c):n(c)}function l(c){return c===59?(e.consume(c),r):$e(c)?(e.consume(c),l):n(c)}}function KD(e,t,n){return r;function r(o){return e.consume(o),a}function a(o){return Je(o)?n(o):t(o)}}function eI(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Le(e)}function tI(e){return!$e(e)}function nI(e){return!(e===47||Rw(e))}function Rw(e){return e===43||e===45||e===46||e===95||Je(e)}function Ew(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const YD={tokenize:aR,partial:!0};function QD(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tR,continuation:{tokenize:nR},exit:rR}},text:{91:{name:"gfmFootnoteCall",tokenize:eR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:JD,resolveTo:$D}}}}function JD(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;a--;){const s=r.events[a][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return c;function c(s){if(!l||!l._balanced)return n(s);const h=zt(r.sliceSerialize({start:l.end,end:r.now()}));return h.codePointAt(0)!==94||!o.includes(h.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function $D(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},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 o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function eR(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return c;function c(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),s}function s(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(d){if(o>999||d===93&&!l||d===null||d===91||Le(d))return n(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes(zt(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Le(d)||(l=!0),o++,e.consume(d),d===92?u:h}function u(d){return d===91||d===92||d===93?(e.consume(d),o++,h):h(d)}}function tR(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,c;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(g)}function u(g){if(l>999||g===93&&!c||g===null||g===91||Le(g))return n(g);if(g===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return o=zt(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Le(g)||(c=!0),l++,e.consume(g),g===92?d:u}function d(g){return g===91||g===92||g===93?(e.consume(g),l++,u):u(g)}function m(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(o)||a.push(o),pe(e,k,"gfmFootnoteDefinitionWhitespace")):n(g)}function k(g){return t(g)}}function nR(e,t,n){return e.check(In,t,e.attempt(YD,t,n))}function rR(e){e.exit("gfmFootnoteDefinition")}function aR(e,t,n){const r=this;return pe(e,a,"gfmFootnoteDefinitionIndent",5);function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function iR(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(l,c){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let h=s;for(;h--;)if(l[h][0]==="exit"&&l[h][1].type==="strikethroughSequenceTemporary"&&l[h][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[h][1].end.offset-l[h][1].start.offset){l[s][1].type="strikethroughSequence",l[h][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},l[h][1].start),end:Object.assign({},l[s][1].end)},d={type:"strikethroughText",start:Object.assign({},l[h][1].end),end:Object.assign({},l[s][1].start)},m=[["enter",u,c],["enter",l[h][1],c],["exit",l[h][1],c],["enter",d,c]],k=c.parser.constructs.insideSpan.null;k&&kt(m,m.length,0,tx(k,l.slice(h+1,s),c)),kt(m,m.length,0,[["exit",d,c],["enter",l[s][1],c],["exit",l[s][1],c],["exit",u,c]]),kt(l,h-1,s-h+3,m),s=h+m.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,c,s){const h=this.previous,u=this.events;let d=0;return m;function m(g){return h===126&&u[u.length-1][1].type!=="characterEscape"?s(g):(l.enter("strikethroughSequenceTemporary"),k(g))}function k(g){const x=Q0(h);if(g===126)return d>1?s(g):(l.consume(g),d++,k);if(d<2&&!n)return s(g);const A=l.exit("strikethroughSequenceTemporary"),b=Q0(g);return A._open=!b||b===2&&!!x,A._close=!x||x===2&&!!b,c(g)}}}class oR{constructor(){this.map=[]}add(t,n,r){lR(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const o of a)t.push(o);a=r.pop()}this.map.length=0}}function lR(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function cR(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function sR(){return{flow:{null:{name:"table",tokenize:hR,resolveAll:uR}}}}function hR(e,t,n){const r=this;let a=0,o=0,l;return c;function c(B){let G=r.events.length-1;for(;G>-1;){const ne=r.events[G][1].type;if(ne==="lineEnding"||ne==="linePrefix")G--;else break}const D=G>-1?r.events[G][1].type:null,oe=D==="tableHead"||D==="tableRow"?T:s;return oe===T&&r.parser.lazy[r.now().line]?n(B):oe(B)}function s(B){return e.enter("tableHead"),e.enter("tableRow"),h(B)}function h(B){return B===124||(l=!0,o+=1),u(B)}function u(B){return B===null?n(B):te(B)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),k):n(B):ye(B)?pe(e,u,"whitespace")(B):(o+=1,l&&(l=!1,a+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),l=!0,u):(e.enter("data"),d(B)))}function d(B){return B===null||B===124||Le(B)?(e.exit("data"),u(B)):(e.consume(B),B===92?m:d)}function m(B){return B===92||B===124?(e.consume(B),d):d(B)}function k(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),l=!1,ye(B)?pe(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):g(B))}function g(B){return B===45||B===58?A(B):B===124?(l=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),x):F(B)}function x(B){return ye(B)?pe(e,A,"whitespace")(B):A(B)}function A(B){return B===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),b):B===45?(o+=1,b(B)):B===null||te(B)?j(B):F(B)}function b(B){return B===45?(e.enter("tableDelimiterFiller"),C(B)):F(B)}function C(B){return B===45?(e.consume(B),C):B===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),q):(e.exit("tableDelimiterFiller"),q(B))}function q(B){return ye(B)?pe(e,j,"whitespace")(B):j(B)}function j(B){return B===124?g(B):B===null||te(B)?!l||a!==o?F(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):F(B)}function F(B){return n(B)}function T(B){return e.enter("tableRow"),R(B)}function R(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),R):B===null||te(B)?(e.exit("tableRow"),t(B)):ye(B)?pe(e,R,"whitespace")(B):(e.enter("data"),K(B))}function K(B){return B===null||B===124||Le(B)?(e.exit("data"),R(B)):(e.consume(B),B===92?Z:K)}function Z(B){return B===92||B===124?(e.consume(B),K):K(B)}}function uR(e,t){let n=-1,r=!0,a=0,o=[0,0,0,0],l=[0,0,0,0],c=!1,s=0,h,u,d;const m=new oR;for(;++n<e.length;){const k=e[n],g=k[1];k[0]==="enter"?g.type==="tableHead"?(c=!1,s!==0&&(rI(m,t,s,h,u),u=void 0,s=0),h={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},m.add(n,0,[["enter",h,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],l=[0,n+1,0,0],c&&(c=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},m.add(n,0,[["enter",u,t]])),a=g.type==="tableDelimiterRow"?2:u?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],d=Fx(m,t,o,a,void 0,d),o=[0,0,0,0]),l[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],d=Fx(m,t,o,a,void 0,d)),o=l,l=[o[1],n,0,0])):g.type==="tableHead"?(c=!0,s=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(s=n,o[1]!==0?(l[0]=l[1],d=Fx(m,t,o,a,n,d)):l[1]!==0&&(d=Fx(m,t,l,a,n,d)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=n)}for(s!==0&&rI(m,t,s,h,u),m.consume(t.events),n=-1;++n<t.events.length;){const k=t.events[n];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=cR(t.events,n))}return e}function Fx(e,t,n,r,a,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(o.end=Object.assign({},an(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=an(t.events,n[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const h=an(t.events,n[2]),u=an(t.events,n[3]),d={type:c,start:Object.assign({},h),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const m=t.events[n[2]],k=t.events[n[3]];if(m[1].end=Object.assign({},k[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,x=n[3]-n[2]-1;e.add(g,x,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(o.end=Object.assign({},an(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function rI(e,t,n,r,a){const o=[],l=an(t.events,n);a&&(a.end=Object.assign({},l),o.push(["exit",a,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function an(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const dR={name:"tasklistCheck",tokenize:yR};function pR(){return{text:{91:dR}}}function yR(e,t,n){const r=this;return a;function a(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return Le(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):n(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(s)}function c(s){return te(s)?t(s):ye(s)?e.check({tokenize:kR},t,n)(s):n(s)}}function kR(e,t,n){return pe(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function mR(e){return jb([VD(),QD(),iR(e),sR(),pR()])}const fR={};function aI(e){const t=this,n=e||fR,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(mR(n)),o.push(RD()),l.push(ED(n))}function gR(e){const t={};let n=0;return e=e.replace(/(^|\n)(```|~~~)([^\n]*)\n([\s\S]*?)\n\2(\n|$)/g,(r,a,o,l,c,s)=>{const h=`__FENCED_CODE_${n++}__`;return t[h]=`${a}${o}${l}
|
|
7848
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:l,tableCell:s,tableRow:c}};function l(k,g,x,C){return h(u(k,x,C),k.align)}function c(k,g,x,C){const w=d(k,x,C),I=h([w]);return I.slice(0,I.indexOf(`
|
|
7849
|
+
`))}function s(k,g,x,C){const w=x.enter("tableCell"),I=x.enter("phrasing"),q=x.containerPhrasing(k,{...C,before:o,after:o});return I(),w(),q}function h(k,g){return WF(k,{align:g,alignDelimiters:r,padding:n,stringLength:a})}function u(k,g,x){const C=k.children;let w=-1;const I=[],q=g.enter("table");for(;++w<C.length;)I[w]=d(C[w],g,x);return q(),I}function d(k,g,x){const C=k.children;let w=-1;const I=[],q=g.enter("tableRow");for(;++w<C.length;)I[w]=s(C[w],k,g,x);return q(),I}function m(k,g,x){let C=ZC.inlineCode(k,g,x);return x.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function BD(){return{exit:{taskListCheckValueChecked:XC,taskListCheckValueUnchecked:XC,paragraph:FD}}}function PD(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:DD}}}function XC(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function FD(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let o=-1,l;for(;++o<a.length;){const c=a[o];if(c.type==="paragraph"){l=c;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function DD(e,t,n,r){const a=e.children[0],o=typeof e.checked=="boolean"&&a&&a.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);o&&c.move(l);let s=ZC.listItem(e,t,n,{...r,...c.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),s;function h(u){return u+l}}function RD(){return[mF(),RF(),VF(),CD(),BD()]}function ED(e){return{extensions:[fF(),EF(e),NF(),HD(e),PD()]}}const jD={tokenize:GD,partial:!0},KC={tokenize:ZD,partial:!0},YC={tokenize:WD,partial:!0},QC={tokenize:XD,partial:!0},OD={tokenize:KD,partial:!0},JC={name:"wwwAutolink",tokenize:UD,previous:eI},$C={name:"protocolAutolink",tokenize:_D,previous:tI},e1={name:"emailAutolink",tokenize:ND,previous:nI},Ut={};function VD(){return{text:Ut}}let j0=48;for(;j0<123;)Ut[j0]=e1,j0++,j0===58?j0=65:j0===91&&(j0=97);Ut[43]=e1,Ut[45]=e1,Ut[46]=e1,Ut[95]=e1,Ut[72]=[e1,$C],Ut[104]=[e1,$C],Ut[87]=[e1,JC],Ut[119]=[e1,JC];function ND(e,t,n){const r=this;let a,o;return l;function l(d){return!Rw(d)||!nI.call(r,r.previous)||Ew(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(d))}function c(d){return Rw(d)?(e.consume(d),c):d===64?(e.consume(d),s):n(d)}function s(d){return d===46?e.check(OD,u,h)(d):d===45||d===95||Je(d)?(o=!0,e.consume(d),s):u(d)}function h(d){return e.consume(d),a=!0,s}function u(d){return o&&a&&$e(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function UD(e,t,n){const r=this;return a;function a(l){return l!==87&&l!==119||!eI.call(r,r.previous)||Ew(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(jD,e.attempt(KC,e.attempt(YC,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function _D(e,t,n){const r=this;let a="",o=!1;return l;function l(d){return(d===72||d===104)&&tI.call(r,r.previous)&&!Ew(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),c):n(d)}function c(d){if($e(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),c;if(d===58){const m=a.toLowerCase();if(m==="http"||m==="https")return e.consume(d),s}return n(d)}function s(d){return d===47?(e.consume(d),o?h:(o=!0,s)):n(d)}function h(d){return d===null||$v(d)||Le(d)||P0(d)||ex(d)?n(d):e.attempt(KC,e.attempt(YC,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function GD(e,t,n){let r=0;return a;function a(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),a):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function ZD(e,t,n){let r,a,o;return l;function l(h){return h===46||h===95?e.check(QC,s,c)(h):h===null||Le(h)||P0(h)||h!==45&&ex(h)?s(h):(o=!0,e.consume(h),l)}function c(h){return h===95?r=!0:(a=r,r=void 0),e.consume(h),l}function s(h){return a||r||!o?n(h):t(h)}}function WD(e,t){let n=0,r=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(QC,t,o)(l):l===null||Le(l)||P0(l)?t(l):(e.consume(l),a)}function o(l){return l===41&&r++,e.consume(l),a}}function XD(e,t,n){return r;function r(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),r):c===38?(e.consume(c),o):c===93?(e.consume(c),a):c===60||c===null||Le(c)||P0(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||Le(c)||P0(c)?t(c):r(c)}function o(c){return $e(c)?l(c):n(c)}function l(c){return c===59?(e.consume(c),r):$e(c)?(e.consume(c),l):n(c)}}function KD(e,t,n){return r;function r(o){return e.consume(o),a}function a(o){return Je(o)?n(o):t(o)}}function eI(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Le(e)}function tI(e){return!$e(e)}function nI(e){return!(e===47||Rw(e))}function Rw(e){return e===43||e===45||e===46||e===95||Je(e)}function Ew(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const YD={tokenize:aR,partial:!0};function QD(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tR,continuation:{tokenize:nR},exit:rR}},text:{91:{name:"gfmFootnoteCall",tokenize:eR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:JD,resolveTo:$D}}}}function JD(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;a--;){const s=r.events[a][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return c;function c(s){if(!l||!l._balanced)return n(s);const h=zt(r.sliceSerialize({start:l.end,end:r.now()}));return h.codePointAt(0)!==94||!o.includes(h.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function $D(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},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 o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function eR(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return c;function c(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),s}function s(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(d){if(o>999||d===93&&!l||d===null||d===91||Le(d))return n(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes(zt(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Le(d)||(l=!0),o++,e.consume(d),d===92?u:h}function u(d){return d===91||d===92||d===93?(e.consume(d),o++,h):h(d)}}function tR(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,c;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(g)}function u(g){if(l>999||g===93&&!c||g===null||g===91||Le(g))return n(g);if(g===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return o=zt(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Le(g)||(c=!0),l++,e.consume(g),g===92?d:u}function d(g){return g===91||g===92||g===93?(e.consume(g),l++,u):u(g)}function m(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(o)||a.push(o),pe(e,k,"gfmFootnoteDefinitionWhitespace")):n(g)}function k(g){return t(g)}}function nR(e,t,n){return e.check(In,t,e.attempt(YD,t,n))}function rR(e){e.exit("gfmFootnoteDefinition")}function aR(e,t,n){const r=this;return pe(e,a,"gfmFootnoteDefinitionIndent",5);function a(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function iR(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(l,c){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let h=s;for(;h--;)if(l[h][0]==="exit"&&l[h][1].type==="strikethroughSequenceTemporary"&&l[h][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[h][1].end.offset-l[h][1].start.offset){l[s][1].type="strikethroughSequence",l[h][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},l[h][1].start),end:Object.assign({},l[s][1].end)},d={type:"strikethroughText",start:Object.assign({},l[h][1].end),end:Object.assign({},l[s][1].start)},m=[["enter",u,c],["enter",l[h][1],c],["exit",l[h][1],c],["enter",d,c]],k=c.parser.constructs.insideSpan.null;k&&kt(m,m.length,0,tx(k,l.slice(h+1,s),c)),kt(m,m.length,0,[["exit",d,c],["enter",l[s][1],c],["exit",l[s][1],c],["exit",u,c]]),kt(l,h-1,s-h+3,m),s=h+m.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,c,s){const h=this.previous,u=this.events;let d=0;return m;function m(g){return h===126&&u[u.length-1][1].type!=="characterEscape"?s(g):(l.enter("strikethroughSequenceTemporary"),k(g))}function k(g){const x=Q0(h);if(g===126)return d>1?s(g):(l.consume(g),d++,k);if(d<2&&!n)return s(g);const C=l.exit("strikethroughSequenceTemporary"),w=Q0(g);return C._open=!w||w===2&&!!x,C._close=!x||x===2&&!!w,c(g)}}}class oR{constructor(){this.map=[]}add(t,n,r){lR(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const o of a)t.push(o);a=r.pop()}this.map.length=0}}function lR(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function cR(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function sR(){return{flow:{null:{name:"table",tokenize:hR,resolveAll:uR}}}}function hR(e,t,n){const r=this;let a=0,o=0,l;return c;function c(B){let Z=r.events.length-1;for(;Z>-1;){const ne=r.events[Z][1].type;if(ne==="lineEnding"||ne==="linePrefix")Z--;else break}const D=Z>-1?r.events[Z][1].type:null,oe=D==="tableHead"||D==="tableRow"?T:s;return oe===T&&r.parser.lazy[r.now().line]?n(B):oe(B)}function s(B){return e.enter("tableHead"),e.enter("tableRow"),h(B)}function h(B){return B===124||(l=!0,o+=1),u(B)}function u(B){return B===null?n(B):te(B)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),k):n(B):ye(B)?pe(e,u,"whitespace")(B):(o+=1,l&&(l=!1,a+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),l=!0,u):(e.enter("data"),d(B)))}function d(B){return B===null||B===124||Le(B)?(e.exit("data"),u(B)):(e.consume(B),B===92?m:d)}function m(B){return B===92||B===124?(e.consume(B),d):d(B)}function k(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),l=!1,ye(B)?pe(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):g(B))}function g(B){return B===45||B===58?C(B):B===124?(l=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),x):R(B)}function x(B){return ye(B)?pe(e,C,"whitespace")(B):C(B)}function C(B){return B===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),w):B===45?(o+=1,w(B)):B===null||te(B)?j(B):R(B)}function w(B){return B===45?(e.enter("tableDelimiterFiller"),I(B)):R(B)}function I(B){return B===45?(e.consume(B),I):B===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),q):(e.exit("tableDelimiterFiller"),q(B))}function q(B){return ye(B)?pe(e,j,"whitespace")(B):j(B)}function j(B){return B===124?g(B):B===null||te(B)?!l||a!==o?R(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):R(B)}function R(B){return n(B)}function T(B){return e.enter("tableRow"),F(B)}function F(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),F):B===null||te(B)?(e.exit("tableRow"),t(B)):ye(B)?pe(e,F,"whitespace")(B):(e.enter("data"),K(B))}function K(B){return B===null||B===124||Le(B)?(e.exit("data"),F(B)):(e.consume(B),B===92?V:K)}function V(B){return B===92||B===124?(e.consume(B),K):K(B)}}function uR(e,t){let n=-1,r=!0,a=0,o=[0,0,0,0],l=[0,0,0,0],c=!1,s=0,h,u,d;const m=new oR;for(;++n<e.length;){const k=e[n],g=k[1];k[0]==="enter"?g.type==="tableHead"?(c=!1,s!==0&&(rI(m,t,s,h,u),u=void 0,s=0),h={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},m.add(n,0,[["enter",h,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],l=[0,n+1,0,0],c&&(c=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},m.add(n,0,[["enter",u,t]])),a=g.type==="tableDelimiterRow"?2:u?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],d=Fx(m,t,o,a,void 0,d),o=[0,0,0,0]),l[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],d=Fx(m,t,o,a,void 0,d)),o=l,l=[o[1],n,0,0])):g.type==="tableHead"?(c=!0,s=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(s=n,o[1]!==0?(l[0]=l[1],d=Fx(m,t,o,a,n,d)):l[1]!==0&&(d=Fx(m,t,l,a,n,d)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=n)}for(s!==0&&rI(m,t,s,h,u),m.consume(t.events),n=-1;++n<t.events.length;){const k=t.events[n];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=cR(t.events,n))}return e}function Fx(e,t,n,r,a,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(o.end=Object.assign({},an(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=an(t.events,n[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const h=an(t.events,n[2]),u=an(t.events,n[3]),d={type:c,start:Object.assign({},h),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const m=t.events[n[2]],k=t.events[n[3]];if(m[1].end=Object.assign({},k[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,x=n[3]-n[2]-1;e.add(g,x,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(o.end=Object.assign({},an(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function rI(e,t,n,r,a){const o=[],l=an(t.events,n);a&&(a.end=Object.assign({},l),o.push(["exit",a,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function an(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const dR={name:"tasklistCheck",tokenize:yR};function pR(){return{text:{91:dR}}}function yR(e,t,n){const r=this;return a;function a(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return Le(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):n(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(s)}function c(s){return te(s)?t(s):ye(s)?e.check({tokenize:kR},t,n)(s):n(s)}}function kR(e,t,n){return pe(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function mR(e){return jb([VD(),QD(),iR(e),sR(),pR()])}const fR={};function aI(e){const t=this,n=e||fR,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(mR(n)),o.push(RD()),l.push(ED(n))}function gR(e){const t={};let n=0;return e=e.replace(/(^|\n)(```|~~~)([^\n]*)\n([\s\S]*?)\n\2(\n|$)/g,(r,a,o,l,c,s)=>{const h=`__FENCED_CODE_${n++}__`;return t[h]=`${a}${o}${l}
|
|
7849
7850
|
${c}
|
|
7850
7851
|
${o}${s}`,h}),e=e.replace(/`([^`]+)`/g,r=>{const a=`__INLINE_CODE_${n++}__`;return t[a]=r,a}),{masked:e,masks:t}}function vR(e,t){for(const[n,r]of Object.entries(t))e=e.replace(new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),r);return e}const xR=e=>{if(!e||typeof e!="string")return"";try{let t=e.replace(/\r\n/g,`
|
|
7851
7852
|
`).replace(/\r/g,`
|
|
7852
7853
|
`);const{masked:n,masks:r}=gR(t);t=n;const a=new Map;let o=0;const l=String.raw`-?\$\(?\d{1,3}(?:,\d{3})*(?:\.\d+)?|\$-?\d+(?:\.\d+)?|\$-?\d+(?:\.\d+)?\)?(?:\s?(?:[KMBkmb]|[Kk]ilo|[Mm]illion|[Bb]illion))?`,c=new RegExp(String.raw`(${l})(\s?[–-]\s?)(${l})`,"g");t=t.replace(c,(h,u,d,m)=>{const k=`__CURRENCY_${o++}__`,g=`__CURRENCY_${o++}__`;return a.set(k,u),a.set(g,m),`${k}${d}${g}`});const s=new RegExp(l,"g");return t=t.replace(s,h=>{const u=`__CURRENCY_${o++}__`;return a.set(u,h),u}),t=t.replace(/\\\[([\s\S]*?)\\\]/g,(h,u)=>`
|
|
7853
7854
|
$$${u}$$
|
|
7854
7855
|
`),t=t.replace(/\\\(([\s\S]*?)\\\)/g,(h,u)=>`$${u}$`),t=t.replace(new RegExp("(?<!\\\\)\\$(?!\\$)([^$\\n]+?)(?<!\\\\)\\$(?!\\$)","g"),(h,u)=>/[a-zA-Z\\{}_^]|[+\-*/=<>]|\\frac|\\sum|\\int|\\alpha|\\beta|\\gamma/.test(u)?h:`\\$${u}\\$`),a.forEach((h,u)=>{const d=h.replace(/\$/g,"\\$");t=t.replace(new RegExp(u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),d)}),t=vR(t,r),t=t.trimEnd()+`
|
|
7855
|
-
`,t}catch(t){return console.warn("Error preprocessing markdown:",t),e}},iI=({content:e,className:t="",disableMath:n=!1})=>{const r=xR(e);if(!r)return null;const a=n?[aI]:[[HP,{singleDollarTextMath:!0}],aI],o=n?[]:[hF];return
|
|
7856
|
-
`)&&
|
|
7857
|
-
`)>K.length-10;(k.current%10===0||Z)&&s(),g.current=requestAnimationFrame(()=>{setTimeout(()=>C(),5)})}else T>0&&k.current===T&&q()},[e,n,o,s]),q=Q.useCallback(()=>{A.current||(A.current=!0,x.current=!1,l.current=!1,c(!1),u(e),o.current.set(n,e.length),t(),s())},[e,n,t,s,c,l,o]),j=Q.useCallback(()=>{x.current&&!A.current&&(g.current&&cancelAnimationFrame(g.current),k.current=e.length,q())},[e,q]);return Q.useEffect(()=>{if(A.current||a(n))return;const F=e.length;if(F===0){m(!0);return}if(!x.current&&F>b.current){x.current=!0,l.current=!0,c(!0);const T=o.current.get(n)||0;T>0&&T<F?(k.current=T,u(e.slice(0,T)),m(!1)):(k.current=0,u("")),C()}b.current=F},[e,n,C,a,c,l,o]),Q.useEffect(()=>{const F=()=>j(),T=r.current;return T&&(T.addEventListener("input",F),T.addEventListener("keydown",F)),()=>{T&&(T.removeEventListener("input",F),T.removeEventListener("keydown",F))}},[r,j]),Q.useEffect(()=>{let F=null;const T=()=>{document.hidden?(g.current&&cancelAnimationFrame(g.current),F=Date.now()):F&&!A.current&&(Date.now()-F>xe.ANIMATIONS.VISIBILITY_SKIP_THRESHOLD?j():x.current&&C(),F=null)};return document.addEventListener("visibilitychange",T),()=>document.removeEventListener("visibilitychange",T)},[C,j]),d&&e.length===0?_.jsxs("div",{className:"text-gray-500",children:[_.jsx("span",{className:"font-medium",children:"Thinking"}),_.jsxs("span",{className:"animate-dots ml-1",children:[_.jsx("span",{className:"dot",children:"."}),_.jsx("span",{className:"dot",children:"."}),_.jsx("span",{className:"dot",children:"."})]})]}):_.jsx(iI,{content:h})},bR=({message:e,index:t,isLatestAssistantMessage:n,showTypingAnimation:r,theme:a,copiedMessageId:o,onCopyToClipboard:l,onMarkMessageAnimated:c,messagesLength:s,scrollToBottom:h,inputRef:u,hasBeenAnimated:d,typingProgressRef:m,isTypingRef:k,setIsAnimating:g,formatTime:x,lastMessageRef:A})=>{const b=new Date;return b.setMinutes(b.getMinutes()-(s-t)),_.jsx("div",{className:W0("flex",e.role==="user"?"justify-end":"justify-start"),ref:t===s-1?A:null,children:_.jsxs("div",{className:W0("max-w-[85%] rounded-xl p-4 shadow-sm"),style:{background:e.role==="user"?a.message.user:a.message.assistant,color:e.role==="user"?a.message.userText:a.text.primary,border:e.role==="assistant"?`1px solid ${a.input.border}`:"none",width:"100%",maxWidth:"85%",wordWrap:"break-word",overflowWrap:"anywhere",borderRadius:e.role==="assistant"?"0.75rem":void 0},children:[e.role==="assistant"?e.content?!d(t)&&n?_.jsx(wR,{content:e.content,onComplete:()=>c(t,s,h),messageIndex:t,inputRef:u,hasBeenAnimated:d,typingProgressRef:m,isTypingRef:k,setIsAnimating:g,scrollToBottom:h}):_.jsx(iI,{content:e.content}):_.jsxs("div",{className:"text-gray-500",children:[_.jsx("span",{className:"font-medium",children:"Thinking"}),_.jsxs("span",{className:"animate-dots ml-1",children:[_.jsx("span",{className:"dot",children:"."}),_.jsx("span",{className:"dot",children:"."}),_.jsx("span",{className:"dot",children:"."})]})]}):_.jsx("p",{className:"text-base",style:{overflowWrap:"anywhere",wordBreak:"break-word",whiteSpace:"pre-wrap",width:"100%"},children:e.content}),_.jsxs("div",{className:W0("flex text-xs mt-2",e.role==="user"?"justify-start text-white/70":"justify-between text-gray-400"),children:[_.jsx("span",{children:x(b)}),e.role==="assistant"&&!r&&_.jsxs("div",{className:"relative",children:[_.jsx("button",{onClick:()=>l(e.content,t),className:"ml-2 p-1 rounded-full",style:{color:a.text.secondary,transition:"color 0.2s ease",background:"transparent",border:"none",outline:"none"},onMouseEnter:C=>{C.currentTarget.style.setProperty("color",a.text.primary,"important"),C.currentTarget.style.setProperty("background","transparent","important")},onMouseLeave:C=>{C.currentTarget.style.setProperty("color",a.text.secondary,"important"),C.currentTarget.style.setProperty("background","transparent","important")},onMouseDown:C=>{C.currentTarget.style.setProperty("color",a.text.primary,"important"),C.currentTarget.style.setProperty("background","transparent","important"),C.currentTarget.style.setProperty("transform","none","important")},onMouseUp:C=>{C.currentTarget.style.setProperty("color",a.text.primary,"important"),C.currentTarget.style.setProperty("background","transparent","important")},"aria-label":"Copy to clipboard",children:o===t?_.jsx(mn,{size:16}):_.jsx(vn,{size:16})}),o===t&&_.jsx("div",{className:"absolute bottom-full right-0 mb-1 px-2 py-1 text-xs rounded-md shadow-sm animate-fade-in-out whitespace-nowrap",style:{backgroundColor:a.secondary,color:a.text.inverse},children:"Copied!"})]})]})]})})},LR=({messages:e,isLoading:t,theme:n,currentConfig:r,showScrollTop:a,showScrollBottom:o,isAnimating:l,messagesContainerRef:c,messagesEndRef:s,scrollToTop:h,scrollToBottom:u,handleScroll:d,sendMessage:m,focusInput:k,copiedMessageId:g,onCopyToClipboard:x,onMarkMessageAnimated:A,inputRef:b,hasBeenAnimated:C,typingProgressRef:q,isTypingRef:j,setIsAnimating:F,formatTime:T,lastMessageRef:R,maxSuggestedQuestionLength:K,maxSuggestedQuestionQueryLength:Z})=>{const G=(()=>{const D=n.input.background;return!D||D==="transparent"||D.includes("rgba")||D.includes("hsla")?"#ffffff":D.match(/^#[0-9A-Fa-f]{8}$/)?D.substring(0,7):D})();return _.jsxs("div",{className:"flex-1 overflow-hidden relative",style:{background:G,backgroundColor:G,isolation:"isolate"},children:[_.jsx("div",{className:"absolute inset-0",style:{background:G,backgroundColor:G,zIndex:0,pointerEvents:"none"}}),_.jsxs("div",{ref:c,className:"h-full w-full overflow-y-auto scroll-smooth relative messages-container",style:{background:G,backgroundColor:G,overflowY:"auto",overflowX:"hidden",height:"100%",maxHeight:"100%",boxSizing:"border-box",paddingTop:"8px",paddingLeft:"8px",paddingRight:"8px",paddingBottom:"0px",position:"relative",zIndex:1},onScroll:d,children:[a&&_.jsx("button",{onClick:h,className:"sticky top-3 left-[calc(100%-48px)] z-10 flex items-center justify-center p-2 rounded-full shadow-md",style:{backgroundColor:n.primary,color:n.text.inverse},"aria-label":"Scroll to top",title:"Scroll to top",children:_.jsx(gn,{size:xe.BUTTON_SIZES.ICON_SIZES.BUTTON})}),o&&!l&&_.jsx("button",{onClick:()=>u(),className:"sticky bottom-3 left-[calc(100%-48px)] z-10 flex items-center justify-center p-2 rounded-full shadow-md",style:{backgroundColor:n.primary,color:n.text.inverse},"aria-label":"Scroll to bottom",title:"Scroll to bottom",children:_.jsx(fn,{size:xe.BUTTON_SIZES.ICON_SIZES.BUTTON})}),e.length===0?_.jsxs("div",{className:"py-4",children:[_.jsx("div",{className:"w-full px-3 mb-6",children:_.jsxs("div",{className:"max-w-lg mx-auto sm:max-w-2xl",children:[_.jsx("h4",{className:"font-bold text-xl mb-4 px-1",style:{color:n.text.primary},children:r.welcome.title}),_.jsx("p",{className:"text-lg px-1 py-2",style:{color:n.text.secondary},children:r.welcome.description})]})}),_.jsx("div",{className:"w-full px-3",children:_.jsx("div",{className:"flex flex-col gap-2 max-w-lg mx-auto sm:max-w-2xl",children:r.suggestedQuestions.slice(0,6).map((D,oe)=>{var Ce,Ee;const ne=Z??xe.MAX_SUGGESTED_QUESTION_QUERY_LENGTH,Y=K??xe.MAX_SUGGESTED_QUESTION_LENGTH,de=((Ce=D.query)==null?void 0:Ce.length)>ne?D.query.substring(0,ne):D.query,fe=((Ee=D.text)==null?void 0:Ee.length)>Y?`${D.text.substring(0,Y)}...`:D.text;return _.jsx("div",{className:"flex items-center w-full px-1 py-1.5 text-lg rounded-xl",style:{minHeight:"36px",background:"transparent"},children:_.jsx("span",{onClick:()=>{m(de),setTimeout(()=>{k()},xe.ANIMATIONS.TOGGLE_DELAY)},className:"truncate hover:text-primary transition-colors duration-200 cursor-pointer w-full text-lg",style:{color:n.suggestedQuestions.text,fontWeight:500},title:de,children:fe})},oe)})})})]}):_.jsxs("div",{className:"space-y-3",children:[e.map((D,oe)=>{const ne=D.role==="assistant"&&oe===e.length-1,Y=ne&&t;return _.jsx(bR,{message:D,index:oe,isLatestAssistantMessage:ne,showTypingAnimation:Y,theme:n,copiedMessageId:g,onCopyToClipboard:x,onMarkMessageAnimated:A,messagesLength:e.length,scrollToBottom:u,inputRef:b,hasBeenAnimated:C,typingProgressRef:q,isTypingRef:j,setIsAnimating:F,formatTime:T,lastMessageRef:R},oe)}),t&&e.length===0&&_.jsx("div",{className:"flex justify-start",children:_.jsx("div",{className:"bg-white border border-gray-200 rounded-xl rounded-tl-none max-w-[85%] p-4 shadow-sm",children:_.jsxs("div",{className:"text-gray-500",children:[_.jsx("span",{className:"font-medium text-lg",children:"Thinking"}),_.jsxs("span",{className:"animate-dots ml-1",children:[_.jsx("span",{className:"dot",children:"."}),_.jsx("span",{className:"dot",children:"."}),_.jsx("span",{className:"dot",children:"."})]})]})})}),_.jsx("div",{ref:s})]})]})]})},SR=({message:e,isFocused:t,isLoading:n,theme:r,inputRef:a,handleMessageChange:o,handleKeyDown:l,handleSendMessage:c,setIsFocused:s})=>{const u=(()=>{const d=r.input.background;return!d||d==="transparent"||d.includes("rgba")||d.includes("hsla")?"#ffffff":d.match(/^#[0-9A-Fa-f]{8}$/)?d.substring(0,7):d})();return _.jsxs("div",{className:"border-t-0 shrink-0 relative",style:{background:u,backgroundColor:u,borderTopLeftRadius:0,borderTopRightRadius:0,zIndex:10,position:"relative",marginTop:"-2px",paddingTop:"18px",paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",isolation:"isolate"},children:[_.jsx("div",{className:"absolute inset-0",style:{background:u,backgroundColor:u,zIndex:-2,pointerEvents:"none"}}),_.jsx("div",{className:"absolute inset-0",style:{background:u,backgroundColor:u,zIndex:-1,pointerEvents:"none"}}),_.jsxs("div",{className:"relative rounded-2xl transition-all duration-300 overflow-hidden input-modern shadow-soft",style:{borderColor:r.secondary||r.input.border||"#9ca3af",border:"1.5px solid",background:u,backgroundColor:u,boxShadow:"none",isolation:"isolate",outline:"none",outlineOffset:"0px"},children:[_.jsx("div",{className:"absolute inset-0 rounded-2xl",style:{background:u,backgroundColor:u,zIndex:0,pointerEvents:"none"}}),_.jsx("textarea",{ref:a,value:e,onChange:o,onKeyDown:l,onFocus:()=>s(!0),onBlur:()=>s(!1),placeholder:"Type your message...",maxLength:xe.MAX_MESSAGE_LENGTH,id:"chat-message-input",name:"chat-message-input",className:"w-full resize-none relative",style:{background:u,backgroundColor:u,color:r.text.primary,height:"52px",minHeight:"52px",maxHeight:"120px",overflow:"auto",lineHeight:"1.5",boxSizing:"border-box",fontWeight:"400",textAlign:"left",border:"none",boxShadow:"none",outline:"none",paddingLeft:"24px",paddingRight:"60px",paddingTop:"16px",paddingBottom:"16px",fontSize:"16px",fontFamily:"inherit",position:"relative",zIndex:1}}),_.jsxs("button",{onClick:c,disabled:!e.trim()||n,className:W0("absolute right-2 top-1/2 transform -translate-y-1/2 rounded-xl flex items-center justify-center shrink-0 overflow-hidden group",e.trim()&&!n?"hover:scale-105 transition-all duration-300":"cursor-not-allowed opacity-50"),style:{background:e.trim()&&!n?`linear-gradient(135deg, ${r.secondary}, ${r.secondary}e6)`:"linear-gradient(135deg, #e5e7eb, #f3f4f6)",color:e.trim()&&!n?"white":"#9ca3af",width:"48px",height:"44px",minHeight:"44px",padding:"0",border:"none",boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"absolute",zIndex:10,transform:"translateY(-50%)"},"aria-label":"Send message",children:[_.jsx("div",{className:"absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:"linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0))"}}),_.jsx(Mn,{size:xe.BUTTON_SIZES.ICON_SIZES.SEND,className:"transition-transform duration-200 drop-shadow-sm",style:{strokeWidth:2}})]})]})]})},Dx=e=>{var _t,xt,at,It,Mt,Gt,cn;const[t,n]=Q.useState(!1),[r,a]=Q.useState(!1),[o,l]=Q.useState(!1),[c,s]=Q.useState(null),{isAnimating:h,typingProgressRef:u,isTypingRef:d,lastMessageRef:m,markMessageAnimated:k,hasBeenAnimated:g,clearAnimationTrackers:x,setIsAnimating:A}=QI(),{showScrollTop:b,showScrollBottom:C,messagesContainerRef:q,messagesEndRef:j,shouldScrollRef:F,scrollTimeoutRef:T,scrollToBottom:R,scrollToTop:K,handleScroll:Z}=YI(h),[B,G]=Q.useState(window.innerWidth);Q.useEffect(()=>{const Ye=()=>G(window.innerWidth);return window.addEventListener("resize",Ye),()=>window.removeEventListener("resize",Ye)},[]);const D=q0(),[oe,ne]=Q.useState({...D,...e}),Y=oe.theme||ib;Q.useEffect(()=>{e.apiUrl&&e.apiKey&&e.sessionId&&G0(e.apiUrl,e.apiKey,e.sessionId)},[e.apiUrl,e.apiKey,e.sessionId]),Q.useEffect(()=>{const Ye=qt=>{ne(n1=>{var sn,P;return{...n1,...qt.detail,theme:{...n1.theme,...qt.detail.theme,chatButton:{...(sn=n1.theme)==null?void 0:sn.chatButton,...(P=qt.detail.theme)==null?void 0:P.chatButton}}}})};return window.addEventListener("chatbot-config-update",Ye),()=>{window.removeEventListener("chatbot-config-update",Ye)}},[]),Q.useEffect(()=>{e&&ne(Ye=>({...Ye,...e}))},[e]),Q.useEffect(()=>{XI({MAX_SUGGESTED_QUESTION_LENGTH:e.maxSuggestedQuestionLength??xe.MAX_SUGGESTED_QUESTION_LENGTH,MAX_SUGGESTED_QUESTION_QUERY_LENGTH:e.maxSuggestedQuestionQueryLength??xe.MAX_SUGGESTED_QUESTION_QUERY_LENGTH})},[e.maxSuggestedQuestionLength,e.maxSuggestedQuestionQueryLength]);const{messages:de,isLoading:fe,sendMessage:Ce,clearMessages:Ee}=$x(),{message:L,isFocused:Te,inputRef:be,handleMessageChange:I,handleKeyDown:Ne,handleSendMessage:Ge,setIsFocused:He,focusInput:Ze}=JI({onSendMessage:Ye=>{F.current=!0,Ce(Ye),setTimeout(()=>R(!0),xe.ANIMATIONS.TOGGLE_DELAY)},isLoading:fe,isOpen:t});Q.useEffect(()=>{de.length===0&&x()},[de.length,x]);const De=()=>{n(!t),t||(a(!1),setTimeout(()=>R(!0),xe.ANIMATIONS.TOGGLE_DELAY))},We=async(Ye,qt)=>{try{await navigator.clipboard.writeText(Ye),s(qt),setTimeout(()=>{s(null)},xe.ANIMATIONS.COPY_FEEDBACK_DURATION)}catch(n1){console.error("Failed to copy text: ",n1)}},Ke=Ye=>Ye.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});Q.useEffect(()=>{(fe||de.length===0)&&R(!0)},[de,fe,R]),Q.useEffect(()=>()=>{T.current&&clearTimeout(T.current)},[T]);const vt={MessageSquare:"MessageSquare",MessageCircle:"MessageCircle",MessageCircleMore:"MoreHorizontal",MessageSquareText:"MessageSquareText",MessageSquareDots:"MessageSquareDot",ChatBubble:"MessageCircle",ChatBubbleLeft:"MessageCircle",ChatBubbleLeftRight:"MessageCircle",ChatBubbleLeftEllipsis:"MessageCircle",ChatBubbleLeftDots:"MessageCircle",HelpCircle:"HelpCircle",QuestionMarkCircle:"HelpCircle",Info:"Info",Lightbulb:"Lightbulb",Sparkles:"Sparkles",Bot:"Bot",User:"User",Users:"Users",UserCheck:"UserCheck",UserPlus:"UserPlus",Phone:"Phone",Mail:"Mail",MailOpen:"MailOpen",Send:"Send",Reply:"Reply",Heart:"Heart",Star:"Star",ThumbsUp:"ThumbsUp",Smile:"Smile",Laugh:"Laugh",Settings:"Settings",Cog:"Settings",Wrench:"Wrench",Tool:"Wrench",Hammer:"Hammer",Home:"Home",Search:"Search",Menu:"Menu",Grid:"Grid3X3",List:"List",Plus:"Plus",Minus:"Minus",X:"X",Check:"Check",ArrowRight:"ArrowRight",Zap:"Zap",Target:"Target",Flag:"Flag",Bookmark:"Bookmark",Gift:"Gift",Bell:"Bell",BellRing:"BellRing",Calendar:"Calendar",Clock:"Clock",MapPin:"MapPin",Globe:"Globe",Link:"Link",Download:"Download",Upload:"Upload",Share:"Share",Copy:"Copy",Edit:"Edit",Trash:"Trash",Eye:"Eye",EyeOff:"EyeOff",Lock:"Lock",Unlock:"Unlock",Shield:"Shield",AlertCircle:"AlertCircle",AlertTriangle:"AlertTriangle",CheckCircle:"CheckCircle",XCircle:"XCircle",MinusCircle:"MinusCircle",PlusCircle:"PlusCircle",Play:"Play",Pause:"Pause",Stop:"Square",SkipBack:"SkipBack",SkipForward:"SkipForward",Volume:"Volume2",VolumeX:"VolumeX",Mic:"Mic",MicOff:"MicOff",Camera:"Camera",Video:"Video",Image:"Image",File:"File",FileText:"FileText",Folder:"Folder",FolderOpen:"FolderOpen",Database:"Database",Server:"Server",Monitor:"Monitor",Smartphone:"Smartphone",Tablet:"Tablet",Laptop:"Laptop",Activity:"Activity"},O0=((_t=Y.chatButton)==null?void 0:_t.iconName)||"MessageSquare",p1=vt[O0]||"MessageSquare",t1=LI[p1]||xn;return _.jsxs("div",{className:"fixed bottom-8 right-8 z-50 flex flex-col items-end font-sans",style:{fontFamily:WI},children:[t&&_.jsxs("div",{className:"mb-4 w-full rounded-2xl shadow-elegant flex flex-col overflow-hidden border-0 transition-all duration-300 ease-in-out animate-slide-in-up backdrop-blur-lg",style:{background:Y.input.background,height:xe.WINDOW_DIMENSIONS.HEIGHT,maxHeight:xe.WINDOW_DIMENSIONS.MAX_HEIGHT,width:GI(B),minWidth:ZI(B),backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",border:"1px solid rgba(255, 255, 255, 0.2)",boxShadow:`
|
|
7856
|
+
`,t}catch(t){return console.warn("Error preprocessing markdown:",t),e}},iI=({content:e,className:t="",disableMath:n=!1})=>{const r=xR(e);if(!r)return null;const a=n?[aI]:[[HP,{singleDollarTextMath:!0}],aI],o=n?[]:[hF];return G.jsx("div",{className:`markdown-content ${t}`,children:G.jsx(fH,{remarkPlugins:a,rehypePlugins:o,children:r})})},MR=e=>{if(!e)return!1;if((e.match(/`/g)||[]).length%2!==0||(e.match(/```/g)||[]).length%2!==0)return!0;if(e.endsWith("*")||e.endsWith("_")){const a=e[e.length-1];let o=0;for(let l=e.length-1;l>=0&&e[l]===a;l--)o++;if(o<=2)return!0}return!!(e.match(/\n[-*+]\s*$/)||e.match(/^\s*[-*+]\s*$/)||e.endsWith("[")||e.includes("[")&&!e.includes("](")||(e.match(/\$/g)||[]).length%2!==0||e.endsWith("\\")||e.endsWith("\\(")||e.endsWith("\\[")||e.match(/(^|\n)#{1,6}\s*$/))},wR=({content:e,onComplete:t,messageId:n,inputRef:r,hasBeenAnimated:a,typingProgressRef:o,isTypingRef:l,setIsAnimating:c,scrollToBottom:s,isStreaming:h=!0})=>{const[u,d]=Q.useState(""),[m,k]=Q.useState(!0),g=Q.useRef(0),x=Q.useRef(),C=Q.useRef(!1),w=Q.useRef(!1),I=Q.useRef(0);Q.useEffect(()=>()=>{x.current&&cancelAnimationFrame(x.current),C.current=!1},[]),Q.useEffect(()=>{if(a(n)){d(e),k(!1),w.current=!0;return}},[a,n,e]);const q=Q.useCallback(()=>{w.current||(w.current=!0,C.current=!1,l.current=!1,c(!1),d(e),o.current.set(n,e.length),t(),s())},[e,n,t,s,c,l,o]),j=Q.useCallback(()=>{if(!C.current||w.current)return;const T=e,F=T.length;if(g.current===0&&F>0&&k(!1),g.current<F){let K=g.current+1,V=T.slice(0,K);for(;K<F&&MR(V);)K++,V=T.slice(0,K);g.current=K,d(V),o.current.set(n,g.current);const B=V.includes(`
|
|
7857
|
+
`)&&V.lastIndexOf(`
|
|
7858
|
+
`)>V.length-10;(g.current%10===0||B)&&s(),x.current=requestAnimationFrame(()=>{setTimeout(()=>j(),5)})}else if(F>0&&g.current===F){if(h){C.current=!1,l.current=!0;return}q()}},[e,n,o,s,h,q,l]),R=Q.useCallback(()=>{C.current&&!w.current&&(x.current&&cancelAnimationFrame(x.current),g.current=e.length,q())},[e,q]);return Q.useEffect(()=>{if(w.current||a(n))return;const T=e.length;if(T===0){k(!0);return}if(!C.current&&T>I.current){C.current=!0,l.current=!0,c(!0);const F=o.current.get(n),K=Math.max(g.current,u.length),V=Math.min(T,F!==void 0?F:K);V>0&&V<=T?(g.current=V,d(e.slice(0,V)),k(!1)):(g.current=0,d("")),j()}I.current=T},[e,n,j,a,c,l,o,u.length]),Q.useEffect(()=>{const T=()=>R(),F=r.current;return F&&(F.addEventListener("input",T),F.addEventListener("keydown",T)),()=>{F&&(F.removeEventListener("input",T),F.removeEventListener("keydown",T))}},[r,R]),Q.useEffect(()=>{let T=null;const F=()=>{document.hidden?(x.current&&cancelAnimationFrame(x.current),T=Date.now()):T&&!w.current&&(C.current&&j(),T=null)};return document.addEventListener("visibilitychange",F),()=>document.removeEventListener("visibilitychange",F)},[j,R]),Q.useEffect(()=>{if(!h&&!w.current){const T=e.length;if(T===0)return;g.current>=T?q():C.current||(C.current=!0,j())}},[h,e.length,q,j]),m&&e.length===0?G.jsxs("div",{className:"text-gray-500",children:[G.jsx("span",{className:"font-medium",children:"Thinking"}),G.jsxs("span",{className:"animate-dots ml-1",children:[G.jsx("span",{className:"dot",children:"."}),G.jsx("span",{className:"dot",children:"."}),G.jsx("span",{className:"dot",children:"."})]})]}):G.jsx(iI,{content:u})},bR=({message:e,index:t,isLatestAssistantMessage:n,showTypingAnimation:r,theme:a,copiedMessageId:o,onCopyToClipboard:l,onMarkMessageAnimated:c,messagesLength:s,scrollToBottom:h,inputRef:u,hasBeenAnimated:d,typingProgressRef:m,isTypingRef:k,setIsAnimating:g,formatTime:x,lastMessageRef:C})=>{const w=new Date;return w.setMinutes(w.getMinutes()-(s-t)),G.jsx("div",{className:W0("flex",e.role==="user"?"justify-end":"justify-start"),ref:t===s-1?C:null,children:G.jsxs("div",{className:W0("max-w-[85%] rounded-xl p-4 shadow-sm"),style:{background:e.role==="user"?a.message.user:a.message.assistant,color:e.role==="user"?a.message.userText:a.message.assistantText||a.text.primary,border:e.role==="assistant"?`1px solid ${a.input.border}`:"none",width:"100%",maxWidth:"85%",wordWrap:"break-word",overflowWrap:"anywhere",borderRadius:e.role==="assistant"?"0.75rem":void 0},children:[e.role==="assistant"?e.content?!d(e.id)&&n?G.jsx(wR,{content:e.content,onComplete:()=>c(e.id,s,h),messageId:e.id,inputRef:u,hasBeenAnimated:d,typingProgressRef:m,isTypingRef:k,setIsAnimating:g,scrollToBottom:h,isStreaming:r}):G.jsx(iI,{content:e.content}):G.jsxs("div",{className:"text-gray-500",children:[G.jsx("span",{className:"font-medium",children:"Thinking"}),G.jsxs("span",{className:"animate-dots ml-1",children:[G.jsx("span",{className:"dot",children:"."}),G.jsx("span",{className:"dot",children:"."}),G.jsx("span",{className:"dot",children:"."})]})]}):G.jsx("p",{className:"text-base",style:{overflowWrap:"anywhere",wordBreak:"break-word",whiteSpace:"pre-wrap",width:"100%"},children:e.content}),G.jsxs("div",{className:W0("flex text-xs mt-2",e.role==="user"?"justify-start text-white/70":"justify-between text-gray-400"),children:[G.jsx("span",{children:x(w)}),e.role==="assistant"&&!r&&G.jsxs("div",{className:"relative",children:[G.jsx("button",{onClick:()=>l(e.content,e.id),className:"ml-2 p-1 rounded-full",style:{color:a.text.secondary,transition:"color 0.2s ease",background:"transparent",border:"none",outline:"none"},onMouseEnter:I=>{I.currentTarget.style.setProperty("color",a.text.primary,"important"),I.currentTarget.style.setProperty("background","transparent","important")},onMouseLeave:I=>{I.currentTarget.style.setProperty("color",a.text.secondary,"important"),I.currentTarget.style.setProperty("background","transparent","important")},onMouseDown:I=>{I.currentTarget.style.setProperty("color",a.text.primary,"important"),I.currentTarget.style.setProperty("background","transparent","important"),I.currentTarget.style.setProperty("transform","none","important")},onMouseUp:I=>{I.currentTarget.style.setProperty("color",a.text.primary,"important"),I.currentTarget.style.setProperty("background","transparent","important")},"aria-label":"Copy to clipboard",children:o===e.id?G.jsx(mn,{size:16}):G.jsx(vn,{size:16})}),o===e.id&&G.jsx("div",{className:"absolute bottom-full right-0 mb-1 px-2 py-1 text-xs rounded-md shadow-sm animate-fade-in-out whitespace-nowrap",style:{backgroundColor:a.secondary,color:a.text.inverse},children:"Copied!"})]})]})]})})},LR=({messages:e,isLoading:t,theme:n,currentConfig:r,showScrollTop:a,showScrollBottom:o,isAnimating:l,messagesContainerRef:c,messagesEndRef:s,scrollToTop:h,scrollToBottom:u,handleScroll:d,sendMessage:m,focusInput:k,copiedMessageId:g,onCopyToClipboard:x,onMarkMessageAnimated:C,inputRef:w,hasBeenAnimated:I,typingProgressRef:q,isTypingRef:j,setIsAnimating:R,formatTime:T,lastMessageRef:F,maxSuggestedQuestionLength:K,maxSuggestedQuestionQueryLength:V})=>{const Z=(()=>{const D=n.input.background;return!D||D==="transparent"||D.includes("rgba")||D.includes("hsla")?"#ffffff":D.match(/^#[0-9A-Fa-f]{8}$/)?D.substring(0,7):D})();return G.jsxs("div",{className:"flex-1 overflow-hidden relative",style:{background:Z,backgroundColor:Z,isolation:"isolate"},children:[G.jsx("div",{className:"absolute inset-0",style:{background:Z,backgroundColor:Z,zIndex:0,pointerEvents:"none"}}),G.jsxs("div",{ref:c,className:"h-full w-full overflow-y-auto scroll-smooth relative messages-container",style:{background:Z,backgroundColor:Z,overflowY:"auto",overflowX:"hidden",height:"100%",maxHeight:"100%",boxSizing:"border-box",paddingTop:"8px",paddingLeft:"8px",paddingRight:"8px",paddingBottom:"0px",position:"relative",zIndex:1},onScroll:d,children:[a&&G.jsx("button",{onClick:h,className:"sticky top-3 left-[calc(100%-48px)] z-10 flex items-center justify-center p-2 rounded-full shadow-md",style:{backgroundColor:n.primary,color:n.text.inverse},"aria-label":"Scroll to top",title:"Scroll to top",children:G.jsx(gn,{size:xe.BUTTON_SIZES.ICON_SIZES.BUTTON})}),o&&!l&&G.jsx("button",{onClick:()=>u(),className:"sticky bottom-3 left-[calc(100%-48px)] z-10 flex items-center justify-center p-2 rounded-full shadow-md",style:{backgroundColor:n.primary,color:n.text.inverse},"aria-label":"Scroll to bottom",title:"Scroll to bottom",children:G.jsx(fn,{size:xe.BUTTON_SIZES.ICON_SIZES.BUTTON})}),e.length===0?G.jsxs("div",{className:"py-4",children:[G.jsx("div",{className:"w-full px-3 mb-6",children:G.jsxs("div",{className:"max-w-lg mx-auto sm:max-w-2xl",children:[G.jsx("h4",{className:"font-bold text-xl mb-4 px-1",style:{color:n.text.primary},children:r.welcome.title}),G.jsx("p",{className:"text-lg px-1 py-2",style:{color:n.text.secondary},children:r.welcome.description})]})}),G.jsx("div",{className:"w-full px-3",children:G.jsx("div",{className:"flex flex-col gap-2 max-w-lg mx-auto sm:max-w-2xl",children:r.suggestedQuestions.slice(0,6).map((D,oe)=>{var Ce,Ee;const ne=V??xe.MAX_SUGGESTED_QUESTION_QUERY_LENGTH,Y=K??xe.MAX_SUGGESTED_QUESTION_LENGTH,de=((Ce=D.query)==null?void 0:Ce.length)>ne?D.query.substring(0,ne):D.query,fe=((Ee=D.text)==null?void 0:Ee.length)>Y?`${D.text.substring(0,Y)}...`:D.text;return G.jsx("div",{className:"flex items-center w-full px-1 py-1.5 text-base rounded-xl",style:{minHeight:"36px",background:"transparent"},children:G.jsx("span",{onClick:()=>{m(de),setTimeout(()=>{k()},xe.ANIMATIONS.TOGGLE_DELAY)},className:"truncate hover:text-primary transition-colors duration-200 cursor-pointer w-full text-base",style:{color:n.suggestedQuestions.text,fontWeight:500},title:de,children:fe})},oe)})})})]}):G.jsxs("div",{className:"space-y-3",children:[e.map((D,oe)=>{const ne=D.role==="assistant"&&oe===e.length-1,Y=ne&&t;return G.jsx(bR,{message:D,index:oe,isLatestAssistantMessage:ne,showTypingAnimation:Y,theme:n,copiedMessageId:g,onCopyToClipboard:x,onMarkMessageAnimated:C,messagesLength:e.length,scrollToBottom:u,inputRef:w,hasBeenAnimated:I,typingProgressRef:q,isTypingRef:j,setIsAnimating:R,formatTime:T,lastMessageRef:F},D.id)}),t&&e.length===0&&G.jsx("div",{className:"flex justify-start",children:G.jsx("div",{className:"bg-white border border-gray-200 rounded-xl rounded-tl-none max-w-[85%] p-4 shadow-sm",children:G.jsxs("div",{className:"text-gray-500",children:[G.jsx("span",{className:"font-medium text-lg",children:"Thinking"}),G.jsxs("span",{className:"animate-dots ml-1",children:[G.jsx("span",{className:"dot",children:"."}),G.jsx("span",{className:"dot",children:"."}),G.jsx("span",{className:"dot",children:"."})]})]})})}),G.jsx("div",{ref:s})]})]})]})},SR=({message:e,isFocused:t,isLoading:n,theme:r,inputRef:a,handleMessageChange:o,handleKeyDown:l,handleSendMessage:c,setIsFocused:s})=>{const u=(()=>{const d=r.input.background;return!d||d==="transparent"||d.includes("rgba")||d.includes("hsla")?"#ffffff":d.match(/^#[0-9A-Fa-f]{8}$/)?d.substring(0,7):d})();return G.jsxs("div",{className:"border-t-0 shrink-0 relative",style:{background:u,backgroundColor:u,borderTopLeftRadius:0,borderTopRightRadius:0,zIndex:10,position:"relative",marginTop:"-2px",paddingTop:"18px",paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",isolation:"isolate"},children:[G.jsx("div",{className:"absolute inset-0",style:{background:u,backgroundColor:u,zIndex:-2,pointerEvents:"none"}}),G.jsx("div",{className:"absolute inset-0",style:{background:u,backgroundColor:u,zIndex:-1,pointerEvents:"none"}}),G.jsxs("div",{className:"relative rounded-2xl transition-all duration-300 overflow-hidden input-modern shadow-soft",style:{borderColor:r.secondary||r.input.border||"#9ca3af",border:"1.5px solid",background:u,backgroundColor:u,boxShadow:"none",isolation:"isolate",outline:"none",outlineOffset:"0px"},children:[G.jsx("div",{className:"absolute inset-0 rounded-2xl",style:{background:u,backgroundColor:u,zIndex:0,pointerEvents:"none"}}),G.jsx("textarea",{ref:a,value:e,onChange:o,onKeyDown:l,onFocus:()=>s(!0),onBlur:()=>s(!1),placeholder:"Type your message...",maxLength:xe.MAX_MESSAGE_LENGTH,id:"chat-message-input",name:"chat-message-input",className:"w-full resize-none relative",style:{background:u,backgroundColor:u,color:r.text.primary,height:"52px",minHeight:"52px",maxHeight:"120px",overflow:"auto",lineHeight:"1.5",boxSizing:"border-box",fontWeight:"400",textAlign:"left",border:"none",boxShadow:"none",outline:"none",paddingLeft:"24px",paddingRight:"60px",paddingTop:"16px",paddingBottom:"16px",fontSize:"16px",fontFamily:"inherit",position:"relative",zIndex:1}}),G.jsxs("button",{onClick:c,disabled:!e.trim()||n,className:W0("absolute right-2 top-1/2 transform -translate-y-1/2 rounded-xl flex items-center justify-center shrink-0 overflow-hidden group",e.trim()&&!n?"hover:scale-105 transition-all duration-300":"cursor-not-allowed opacity-50"),style:{background:e.trim()&&!n?`linear-gradient(135deg, ${r.secondary}, ${r.secondary}e6)`:"linear-gradient(135deg, #e5e7eb, #f3f4f6)",color:e.trim()&&!n?"white":"#9ca3af",width:"48px",height:"44px",minHeight:"44px",padding:"0",border:"none",boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"absolute",zIndex:10,transform:"translateY(-50%)"},"aria-label":"Send message",children:[G.jsx("div",{className:"absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:"linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0))"}}),G.jsx(Mn,{size:xe.BUTTON_SIZES.ICON_SIZES.SEND,className:"transition-transform duration-200 drop-shadow-sm",style:{strokeWidth:2}})]})]})]})},Dx=e=>{var _t,xt,at,It,Mt,Gt,cn;const[t,n]=Q.useState(!1),[r,a]=Q.useState(!1),[o,l]=Q.useState(!1),[c,s]=Q.useState(null),{isAnimating:h,typingProgressRef:u,isTypingRef:d,lastMessageRef:m,markMessageAnimated:k,hasBeenAnimated:g,clearAnimationTrackers:x,setIsAnimating:C}=QI(),{showScrollTop:w,showScrollBottom:I,messagesContainerRef:q,messagesEndRef:j,shouldScrollRef:R,scrollTimeoutRef:T,scrollToBottom:F,scrollToTop:K,handleScroll:V}=YI(h),[B,Z]=Q.useState(window.innerWidth);Q.useEffect(()=>{const Ye=()=>Z(window.innerWidth);return window.addEventListener("resize",Ye),()=>window.removeEventListener("resize",Ye)},[]);const D=q0(),[oe,ne]=Q.useState({...D,...e}),Y=oe.theme||ib;Q.useEffect(()=>{e.apiUrl&&e.apiKey&&e.sessionId&&G0(e.apiUrl,e.apiKey,e.sessionId)},[e.apiUrl,e.apiKey,e.sessionId]),Q.useEffect(()=>{const Ye=qt=>{ne(n1=>{var sn,P;return{...n1,...qt.detail,theme:{...n1.theme,...qt.detail.theme,chatButton:{...(sn=n1.theme)==null?void 0:sn.chatButton,...(P=qt.detail.theme)==null?void 0:P.chatButton}}}})};return window.addEventListener("chatbot-config-update",Ye),()=>{window.removeEventListener("chatbot-config-update",Ye)}},[]),Q.useEffect(()=>{e&&ne(Ye=>({...Ye,...e}))},[e]),Q.useEffect(()=>{XI({MAX_SUGGESTED_QUESTION_LENGTH:e.maxSuggestedQuestionLength??xe.MAX_SUGGESTED_QUESTION_LENGTH,MAX_SUGGESTED_QUESTION_QUERY_LENGTH:e.maxSuggestedQuestionQueryLength??xe.MAX_SUGGESTED_QUESTION_QUERY_LENGTH})},[e.maxSuggestedQuestionLength,e.maxSuggestedQuestionQueryLength]);const{messages:de,isLoading:fe,sendMessage:Ce,clearMessages:Ee}=$x(),{message:L,isFocused:Te,inputRef:be,handleMessageChange:A,handleKeyDown:Ne,handleSendMessage:Ge,setIsFocused:He,focusInput:Ze}=JI({onSendMessage:Ye=>{R.current=!0,Ce(Ye),setTimeout(()=>F(!0),xe.ANIMATIONS.TOGGLE_DELAY)},isLoading:fe,isOpen:t});Q.useEffect(()=>{de.length===0&&x()},[de.length,x]);const De=()=>{n(!t),t||(a(!1),setTimeout(()=>F(!0),xe.ANIMATIONS.TOGGLE_DELAY))},We=async(Ye,qt)=>{try{await navigator.clipboard.writeText(Ye),s(qt),setTimeout(()=>{s(null)},xe.ANIMATIONS.COPY_FEEDBACK_DURATION)}catch(n1){console.error("Failed to copy text: ",n1)}},Ke=Ye=>Ye.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});Q.useEffect(()=>{(fe||de.length===0)&&F(!0)},[de,fe,F]),Q.useEffect(()=>()=>{T.current&&clearTimeout(T.current)},[T]);const vt={MessageSquare:"MessageSquare",MessageCircle:"MessageCircle",MessageCircleMore:"MoreHorizontal",MessageSquareText:"MessageSquareText",MessageSquareDots:"MessageSquareDot",ChatBubble:"MessageCircle",ChatBubbleLeft:"MessageCircle",ChatBubbleLeftRight:"MessageCircle",ChatBubbleLeftEllipsis:"MessageCircle",ChatBubbleLeftDots:"MessageCircle",HelpCircle:"HelpCircle",QuestionMarkCircle:"HelpCircle",Info:"Info",Lightbulb:"Lightbulb",Sparkles:"Sparkles",Headphones:"Headphones",LifeBuoy:"LifeBuoy",Bot:"Bot",Brain:"Brain",Cpu2:"Cpu",User:"User",Users:"Users",UserCheck:"UserCheck",UserPlus:"UserPlus",UserRound:"UserRound",Smile:"Smile",Phone:"Phone",Mail:"Mail",MailOpen:"MailOpen",Send:"Send",Reply:"Reply",Heart:"Heart",Star:"Star",ThumbsUp:"ThumbsUp",Laugh:"Laugh",Settings:"Settings",Cog:"Settings",Wrench:"Wrench",Tool:"Wrench",Hammer:"Hammer",Home:"Home",Search:"Search",Menu:"Menu",Grid:"Grid3X3",List:"List",Plus:"Plus",Minus:"Minus",X:"X",Check:"Check",ArrowRight:"ArrowRight",Zap:"Zap",Target:"Target",Flag:"Flag",Bookmark:"Bookmark",Gift:"Gift",Bell:"Bell",BellRing:"BellRing",Calendar:"Calendar",Clock:"Clock",MapPin:"MapPin",Globe:"Globe",Link:"Link",Download:"Download",Upload:"Upload",Share:"Share",Copy:"Copy",Edit:"Edit",Trash:"Trash",Eye:"Eye",EyeOff:"EyeOff",Lock:"Lock",Unlock:"Unlock",Shield:"Shield",AlertCircle:"AlertCircle",AlertTriangle:"AlertTriangle",CheckCircle:"CheckCircle",XCircle:"XCircle",MinusCircle:"MinusCircle",PlusCircle:"PlusCircle",Play:"Play",Pause:"Pause",Stop:"Square",SkipBack:"SkipBack",SkipForward:"SkipForward",Volume:"Volume2",VolumeX:"VolumeX",Mic:"Mic",MicOff:"MicOff",Camera:"Camera",Video:"Video",Image:"Image",File:"File",FileText:"FileText",Folder:"Folder",FolderOpen:"FolderOpen",Database:"Database",Server:"Server",Monitor:"Monitor",Smartphone:"Smartphone",Tablet:"Tablet",Laptop:"Laptop",Activity:"Activity"},O0=((_t=Y.chatButton)==null?void 0:_t.iconName)||"MessageSquare",p1=vt[O0]||"MessageSquare",t1=LI[p1]||xn;return G.jsxs("div",{className:"fixed bottom-8 right-8 z-50 flex flex-col items-end font-sans",style:{fontFamily:WI},children:[t&&G.jsxs("div",{className:"mb-4 w-full rounded-2xl shadow-elegant flex flex-col overflow-hidden border-0 transition-all duration-300 ease-in-out animate-slide-in-up backdrop-blur-lg",style:{background:Y.input.background,height:xe.WINDOW_DIMENSIONS.HEIGHT,maxHeight:xe.WINDOW_DIMENSIONS.MAX_HEIGHT,width:GI(B),minWidth:ZI(B),backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",border:"1px solid rgba(255, 255, 255, 0.2)",boxShadow:`
|
|
7858
7859
|
0 25px 50px -12px rgba(0, 0, 0, 0.15),
|
|
7859
7860
|
0 0 0 1px rgba(255, 255, 255, 0.1),
|
|
7860
7861
|
inset 0 1px 0 rgba(255, 255, 255, 0.1)
|
|
7861
|
-
`},children:[
|
|
7862
|
+
`},children:[G.jsxs("div",{className:"p-2.5 flex justify-between items-center shrink-0 relative overflow-hidden",style:{background:`linear-gradient(135deg, ${Y.primary}, ${Y.primary}e6)`,color:Y.text.inverse},children:[G.jsx("div",{className:"absolute inset-0 opacity-20",style:{background:"linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0))"}}),G.jsx("div",{className:"flex items-center relative z-10 w-full px-3",children:G.jsx("div",{className:"max-w-lg mx-auto sm:max-w-2xl w-full",children:G.jsx("h3",{className:"text-xl font-semibold tracking-tight text-left px-1",children:oe.header.title})})}),G.jsxs("div",{className:"flex items-center space-x-2 relative z-10",children:[G.jsx("button",{onClick:()=>{Ee(),x()},className:"btn-modern transition-all duration-200 p-2 rounded-xl hover:bg-white hover:bg-opacity-20 animate-button-hover",style:{color:Y.text.inverse},"aria-label":"Clear conversation",title:"Clear conversation",children:G.jsx(wn,{size:xe.BUTTON_SIZES.ICON_SIZES.SEND,className:"drop-shadow-sm"})}),G.jsx("button",{onClick:De,className:"btn-modern transition-all duration-200 p-2 rounded-xl hover:bg-white hover:bg-opacity-20 animate-button-hover",style:{color:Y.text.inverse},"aria-label":"Minimize chat",children:G.jsx(_0,{size:xe.BUTTON_SIZES.ICON_SIZES.MINIMIZE,className:"text-white opacity-90 drop-shadow-sm"})})]})]}),G.jsx(LR,{messages:de,isLoading:fe,theme:Y,currentConfig:oe,showScrollTop:w,showScrollBottom:I,isAnimating:h,messagesContainerRef:q,messagesEndRef:j,scrollToTop:K,scrollToBottom:F,handleScroll:V,sendMessage:Ce,focusInput:Ze,copiedMessageId:c,onCopyToClipboard:We,onMarkMessageAnimated:k,inputRef:be,hasBeenAnimated:g,typingProgressRef:u,isTypingRef:d,setIsAnimating:C,formatTime:Ke,lastMessageRef:m,maxSuggestedQuestionLength:e.maxSuggestedQuestionLength,maxSuggestedQuestionQueryLength:e.maxSuggestedQuestionQueryLength}),G.jsx(SR,{message:L,isFocused:Te,isLoading:fe,theme:Y,inputRef:be,handleMessageChange:A,handleKeyDown:Ne,handleSendMessage:Ge,setIsFocused:He})]}),G.jsxs("div",{className:"relative",children:[r&&!t&&G.jsx("span",{className:"absolute -top-2 -right-2 h-5 w-5 bg-gradient-to-r from-orange-500 to-red-500 rounded-full animate-pulse-glow z-10 shadow-lg",children:G.jsx("span",{className:"absolute inset-0 rounded-full bg-white opacity-30"})}),G.jsxs("button",{onClick:De,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),className:W0("btn-modern rounded-2xl shadow-floating flex items-center justify-center transition-all duration-500 relative overflow-hidden group",o&&!t&&"animate-pulse-glow",!t&&"animate-float"),style:{background:t?`linear-gradient(135deg, ${Y.primary}, ${Y.primary}e6)`:o?((xt=Y.chatButton)==null?void 0:xt.hoverBackground)||((at=Y.chatButton)==null?void 0:at.background)||"#ffffff":((It=Y.chatButton)==null?void 0:It.background)||"#ffffff",color:t?void 0:Y.text.primary,border:t?"none":`1px solid ${((Mt=Y.chatButton)==null?void 0:Mt.borderColor)||"#e5e7eb"}`,width:xe.BUTTON_SIZES.CHAT_BUTTON.width,height:xe.BUTTON_SIZES.CHAT_BUTTON.height,transform:o?"translateY(-2px) scale(1.05)":"translateY(0) scale(1)",boxShadow:t?"0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04)":"0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},"aria-label":t?"Close chat":"Open chat",children:[G.jsx("div",{className:W0("absolute inset-0 opacity-0 transition-opacity duration-300",o&&"opacity-100"),style:{background:"linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0))"}}),t?G.jsx(_0,{size:xe.BUTTON_SIZES.ICON_SIZES.MINIMIZE,className:"text-white opacity-90 drop-shadow-sm relative z-10"}):G.jsx(t1,{width:48,height:48,className:"relative z-10 transition-transform duration-300 group-hover:scale-110 drop-shadow-sm",style:{filter:"drop-shadow(0 2px 4px rgba(0,0,0,0.1))",fill:((Gt=Y.chatButton)==null?void 0:Gt.iconColor)||"#f97316",stroke:((cn=Y.chatButton)==null?void 0:cn.iconBorderColor)||"#111",strokeWidth:1}})]})]}),G.jsx("style",{children:_I})]})};let on=null,ln=null,rt=null;function Rx(){if(!on)if(typeof window<"u"&&window.CHATBOT_API_URL)on=window.CHATBOT_API_URL;else throw new Error("API URL not set. Call setApiUrl or use injectChatWidget to configure the API URL.");return on}function Ex(){if(!ln)if(typeof window<"u"&&window.CHATBOT_API_KEY)ln=window.CHATBOT_API_KEY;else throw new Error("API key not set. Call setApiKey or use injectChatWidget to configure the API key.");return ln}function oI(e){if(on=e,typeof window<"u"&&(window.CHATBOT_API_URL=e,ln)){const t=Z0();G0(e,ln,t)}}function lI(e){if(ln=e,typeof window<"u"&&(window.CHATBOT_API_KEY=e,on)){const t=Z0();G0(on,e,t)}}function jw(e){typeof window>"u"||(rt={...q0(),...rt,...e,header:{...q0().header,...rt==null?void 0:rt.header,...e.header},welcome:{...q0().welcome,...rt==null?void 0:rt.welcome,...e.welcome},suggestedQuestions:e.suggestedQuestions||(rt==null?void 0:rt.suggestedQuestions)||q0().suggestedQuestions,theme:{...q0().theme,...rt==null?void 0:rt.theme,...e.theme}},window.dispatchEvent(new CustomEvent("chatbot-config-update",{detail:rt})))}function jx(e){try{let t;e.sessionId?(t=e.sessionId,Jx(t)):t=Z0(),window.CHATBOT_API_URL=e.apiUrl,window.CHATBOT_API_KEY=e.apiKey,window.CHATBOT_SESSION_ID=t,e.widgetConfig&&jw(e.widgetConfig),G0(e.apiUrl,e.apiKey,t);const n=document.querySelector(e.containerSelector||"#chatbot-widget");if(!n){console.error("Chatbot container not found");return}dn.createRoot(n).render(Q.createElement(Dx,{sessionId:t,apiUrl:e.apiUrl,apiKey:e.apiKey,...e.widgetConfig}))}catch(t){console.error("Failed to inject chatbot widget:",t)}}typeof window<"u"&&(window.initChatbotWidget=e=>{document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>jx(e)):jx(e)},window.ChatbotWidget={ChatWidget:Dx,useChatStore:$x,injectChatWidget:jx,setApiUrl:oI,getApiUrl:Rx,setApiKey:lI,getApiKey:Ex,updateWidgetConfig:jw,configureApi:(e,t,n)=>{const r=n||Z0();n&&Jx(n),G0(e,t,r)}});const cI=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}));Xe.ChatWidget=Dx,Xe.default=Dx,Xe.getApiKey=Ex,Xe.getApiUrl=Rx,Xe.getChatConfig=q0,Xe.injectChatWidget=jx,Xe.setApiKey=lI,Xe.setApiUrl=oI,Xe.updateWidgetConfig=jw,Xe.useChatStore=$x,Object.defineProperties(Xe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|