import{c as mt,r as te,j as S,e as an,g as pl,f as gl,h as L0,P as Cr,i as vl,k as Eo,l as yl,m as Io,n as Do,R as We,d as br,o as Bo,u as Ro,p as Po,b as Ti,L as Fo,q as Oo,s as zi}from"./index-7mCYgmGq.js";import{C as Qt,u as Lr,a as Yt,N as Lo,b as jo}from"./api-DTr_VGP6.js";import{C as qo,B as Ho,u as Vo,a as Mi,F as jr}from"./badge-Jk5N1SqW.js";import{B as st}from"./button-BfkoTqK7.js";import{M as Uo,i as Ni,u as xl,P as $o,a as Go,b as _o,L as Wo,c as bl,d as Yo,m as Ie,B as Pn}from"./index-C5l5cIjg.js";import{T as Xo,a as Ko,b as qr,c as Hr}from"./tabs-CdAiC77o.js";import{T as Qo,C as Ei}from"./trophy-BbsNzOoQ.js";import{L as Zo}from"./lock-CFDJdpJB.js";import{C as Jo}from"./chart-column-Di9XBjb2.js";/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eu=mt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tu=mt("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ru=mt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nu=mt("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iu=mt("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const au=mt("FileQuestion",[["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lu=mt("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ii=mt("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const su=mt("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ou=mt("VideoOff",[["path",{d:"M10.66 6H14a2 2 0 0 1 2 2v2.5l5.248-3.062A.5.5 0 0 1 22 7.87v8.196",key:"w8jjjt"}],["path",{d:"M16 16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2",key:"1xawa7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);function Di(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uu(...e){return t=>{let r=!1;const n=e.map(i=>{const a=Di(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():Di(e[i],null)}}}}function cu(...e){return te.useCallback(uu(...e),e)}class hu extends te.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=r.offsetParent,i=Ni(n)&&n.offsetWidth||0,a=Ni(n)&&n.offsetHeight||0,l=this.props.sizeRef.current;l.height=r.offsetHeight||0,l.width=r.offsetWidth||0,l.top=r.offsetTop,l.left=r.offsetLeft,l.right=i-l.width-l.left,l.bottom=a-l.height-l.top}return null}componentDidUpdate(){}render(){return this.props.children}}function mu({children:e,isPresent:t,anchorX:r,anchorY:n,root:i,pop:a}){var g;const l=te.useId(),s=te.useRef(null),o=te.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=te.useContext(Uo),m=((g=e.props)==null?void 0:g.ref)??(e==null?void 0:e.ref),d=cu(s,m);return te.useInsertionEffect(()=>{const{width:f,height:x,top:w,left:N,right:T,bottom:z}=o.current;if(t||a===!1||!s.current||!f||!x)return;const I=r==="left"?`left: ${N}`:`right: ${T}`,B=n==="bottom"?`bottom: ${z}`:`top: ${w}`;s.current.dataset.motionPopId=l;const P=document.createElement("style");c&&(P.nonce=c);const M=i??document.head;return M.appendChild(P),P.sheet&&P.sheet.insertRule(`
          [data-motion-pop-id="${l}"] {
            position: absolute !important;
            width: ${f}px !important;
            height: ${x}px !important;
            ${I}px !important;
            ${B}px !important;
          }
        `),()=>{M.contains(P)&&M.removeChild(P)}},[t]),S.jsx(hu,{isPresent:t,childRef:s,sizeRef:o,pop:a,children:a===!1?e:te.cloneElement(e,{ref:d})})}const du=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:l,anchorX:s,anchorY:o,root:c})=>{const m=xl(fu),d=te.useId();let g=!0,f=te.useMemo(()=>(g=!1,{id:d,initial:t,isPresent:r,custom:i,onExitComplete:x=>{m.set(x,!0);for(const w of m.values())if(!w)return;n&&n()},register:x=>(m.set(x,!1),()=>m.delete(x))}),[r,m,n]);return a&&g&&(f={...f}),te.useMemo(()=>{m.forEach((x,w)=>m.set(w,!1))},[r]),te.useEffect(()=>{!r&&!m.size&&n&&n()},[r]),e=S.jsx(mu,{pop:l==="popLayout",isPresent:r,anchorX:s,anchorY:o,root:c,children:e}),S.jsx($o.Provider,{value:f,children:e})};function fu(){return new Map}const Vr=e=>e.key||"";function Bi(e){const t=[];return te.Children.forEach(e,r=>{te.isValidElement(r)&&t.push(r)}),t}const c0=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:a="sync",propagate:l=!1,anchorX:s="left",anchorY:o="top",root:c})=>{const[m,d]=Go(l),g=te.useMemo(()=>Bi(e),[e]),f=l&&!m?[]:g.map(Vr),x=te.useRef(!0),w=te.useRef(g),N=xl(()=>new Map),T=te.useRef(new Set),[z,I]=te.useState(g),[B,P]=te.useState(g);_o(()=>{x.current=!1,w.current=g;for(let _=0;_<B.length;_++){const F=Vr(B[_]);f.includes(F)?(N.delete(F),T.current.delete(F)):N.get(F)!==!0&&N.set(F,!1)}},[B,f.length,f.join("-")]);const M=[];if(g!==z){let _=[...g];for(let F=0;F<B.length;F++){const X=B[F],G=Vr(X);f.includes(G)||(_.splice(F,0,X),M.push(X))}return a==="wait"&&M.length&&(_=M),P(Bi(_)),I(g),null}const{forceRender:U}=te.useContext(Wo);return S.jsx(S.Fragment,{children:B.map(_=>{const F=Vr(_),X=l&&!m?!1:g===B||f.includes(F),G=()=>{if(T.current.has(F))return;if(T.current.add(F),N.has(F))N.set(F,!0);else return;let $=!0;N.forEach(oe=>{oe||($=!1)}),$&&(U==null||U(),P(w.current),l&&(d==null||d()),n&&n())};return S.jsx(du,{isPresent:X,initial:!x.current||r?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:X?void 0:G,anchorX:s,anchorY:o,children:_},F)})})};function Ri(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const l=r.slice(i,n).trim();(l||!a)&&t.push(l),i=n+1,n=r.indexOf(",",i)}return t}function pu(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const gu=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vu=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yu={};function Pi(e,t){return(yu.jsx?vu:gu).test(e)}const xu=/[ \t\n\f\r]/g;function bu(e){return typeof e=="object"?e.type==="text"?Fi(e.value):!1:Fi(e)}function Fi(e){return e.replace(xu,"")===""}class Tr{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Tr.prototype.normal={};Tr.prototype.property={};Tr.prototype.space=void 0;function wl(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Tr(r,n,t)}function wr(e){return e.toLowerCase()}class Ve{constructor(t,r){this.attribute=r,this.property=t}}Ve.prototype.attribute="";Ve.prototype.booleanish=!1;Ve.prototype.boolean=!1;Ve.prototype.commaOrSpaceSeparated=!1;Ve.prototype.commaSeparated=!1;Ve.prototype.defined=!1;Ve.prototype.mustUseProperty=!1;Ve.prototype.number=!1;Ve.prototype.overloadedBoolean=!1;Ve.prototype.property="";Ve.prototype.spaceSeparated=!1;Ve.prototype.space=void 0;let wu=0;const ie=Vt(),Ae=Vt(),h0=Vt(),j=Vt(),ge=Vt(),Zt=Vt(),Ge=Vt();function Vt(){return 2**++wu}const m0=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:Ae,commaOrSpaceSeparated:Ge,commaSeparated:Zt,number:j,overloadedBoolean:h0,spaceSeparated:ge},Symbol.toStringTag,{value:"Module"})),Fn=Object.keys(m0);class j0 extends Ve{constructor(t,r,n,i){let a=-1;if(super(t,r),Oi(this,"space",i),typeof n=="number")for(;++a<Fn.length;){const l=Fn[a];Oi(this,Fn[a],(n&m0[l])===m0[l])}}}j0.prototype.defined=!0;function Oi(e,t,r){r&&(e[t]=r)}function ir(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new j0(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[wr(n)]=n,r[wr(a.attribute)]=n}return new Tr(t,r,e.space)}const kl=ir({properties:{ariaActiveDescendant:null,ariaAtomic:Ae,ariaAutoComplete:null,ariaBusy:Ae,ariaChecked:Ae,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:ge,ariaCurrent:null,ariaDescribedBy:ge,ariaDetails:null,ariaDisabled:Ae,ariaDropEffect:ge,ariaErrorMessage:null,ariaExpanded:Ae,ariaFlowTo:ge,ariaGrabbed:Ae,ariaHasPopup:null,ariaHidden:Ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ge,ariaLevel:j,ariaLive:null,ariaModal:Ae,ariaMultiLine:Ae,ariaMultiSelectable:Ae,ariaOrientation:null,ariaOwns:ge,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:Ae,ariaReadOnly:Ae,ariaRelevant:null,ariaRequired:Ae,ariaRoleDescription:ge,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:Ae,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Sl(e,t){return t in e?e[t]:t}function Al(e,t){return Sl(e,t.toLowerCase())}const ku=ir({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zt,acceptCharset:ge,accessKey:ge,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:ge,autoFocus:ie,autoPlay:ie,blocking:ge,capture:null,charSet:null,checked:ie,cite:null,className:ge,cols:j,colSpan:null,content:null,contentEditable:Ae,controls:ie,controlsList:ge,coords:j|Zt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:h0,draggable:Ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:ge,height:j,hidden:h0,high:j,href:null,hrefLang:null,htmlFor:ge,httpEquiv:ge,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:ge,itemRef:ge,itemScope:ie,itemType:ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,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:ie,optimum:j,pattern:null,ping:ge,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:ge,required:ie,reversed:ie,rows:j,rowSpan:j,sandbox:ge,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:Ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Ae,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ge,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:Ae,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:Al}),Su=ir({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:Ge,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:ge,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Zt,g2:Zt,glyphName:Zt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:Ge,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:j,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ge,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ge,rev:Ge,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ge,requiredFeatures:Ge,requiredFonts:Ge,requiredFormats:Ge,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:Ge,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ge,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ge,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Sl}),Cl=ir({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()}}),Tl=ir({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Al}),zl=ir({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Au={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"},Cu=/[A-Z]/g,Li=/-[a-z]/g,Tu=/^data[-\w.:]+$/i;function Ml(e,t){const r=wr(t);let n=t,i=Ve;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Tu.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Li,Mu);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Li.test(a)){let l=a.replace(Cu,zu);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=j0}return new i(n,t)}function zu(e){return"-"+e.toLowerCase()}function Mu(e){return e.charAt(1).toUpperCase()}const Nl=wl([kl,ku,Cl,Tl,zl],"html"),fn=wl([kl,Su,Cl,Tl,zl],"svg");function ji(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Nu(e){return e.join(" ").trim()}var q0={},qi=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Eu=/\n/g,Iu=/^\s*/,Du=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Bu=/^:\s*/,Ru=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Pu=/^[;\s]*/,Fu=/^\s+|\s+$/g,Ou=`
`,Hi="/",Vi="*",Ht="",Lu="comment",ju="declaration";function qu(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(x){var w=x.match(Eu);w&&(r+=w.length);var N=x.lastIndexOf(Ou);n=~N?x.length-N:n+x.length}function a(){var x={line:r,column:n};return function(w){return w.position=new l(x),c(),w}}function l(x){this.start=x,this.end={line:r,column:n},this.source=t.source}l.prototype.content=e;function s(x){var w=new Error(t.source+":"+r+":"+n+": "+x);if(w.reason=x,w.filename=t.source,w.line=r,w.column=n,w.source=e,!t.silent)throw w}function o(x){var w=x.exec(e);if(w){var N=w[0];return i(N),e=e.slice(N.length),w}}function c(){o(Iu)}function m(x){var w;for(x=x||[];w=d();)w!==!1&&x.push(w);return x}function d(){var x=a();if(!(Hi!=e.charAt(0)||Vi!=e.charAt(1))){for(var w=2;Ht!=e.charAt(w)&&(Vi!=e.charAt(w)||Hi!=e.charAt(w+1));)++w;if(w+=2,Ht===e.charAt(w-1))return s("End of comment missing");var N=e.slice(2,w-2);return n+=2,i(N),e=e.slice(w),n+=2,x({type:Lu,comment:N})}}function g(){var x=a(),w=o(Du);if(w){if(d(),!o(Bu))return s("property missing ':'");var N=o(Ru),T=x({type:ju,property:Ui(w[0].replace(qi,Ht)),value:N?Ui(N[0].replace(qi,Ht)):Ht});return o(Pu),T}}function f(){var x=[];m(x);for(var w;w=g();)w!==!1&&(x.push(w),m(x));return x}return c(),f()}function Ui(e){return e?e.replace(Fu,Ht):Ht}var Hu=qu,Vu=an&&an.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(q0,"__esModule",{value:!0});q0.default=$u;const Uu=Vu(Hu);function $u(e,t){let r=null;if(!e||typeof e!="string")return r;const n=(0,Uu.default)(e),i=typeof t=="function";return n.forEach(a=>{if(a.type!=="declaration")return;const{property:l,value:s}=a;i?t(l,s,a):s&&(r=r||{},r[l]=s)}),r}var pn={};Object.defineProperty(pn,"__esModule",{value:!0});pn.camelCase=void 0;var Gu=/^--[a-zA-Z0-9_-]+$/,_u=/-([a-z])/g,Wu=/^[^-]+$/,Yu=/^-(webkit|moz|ms|o|khtml)-/,Xu=/^-(ms)-/,Ku=function(e){return!e||Wu.test(e)||Gu.test(e)},Qu=function(e,t){return t.toUpperCase()},$i=function(e,t){return"".concat(t,"-")},Zu=function(e,t){return t===void 0&&(t={}),Ku(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Xu,$i):e=e.replace(Yu,$i),e.replace(_u,Qu))};pn.camelCase=Zu;var Ju=an&&an.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},e1=Ju(q0),t1=pn;function d0(e,t){var r={};return!e||typeof e!="string"||(0,e1.default)(e,function(n,i){n&&i&&(r[(0,t1.camelCase)(n,t)]=i)}),r}d0.default=d0;var r1=d0;const n1=pl(r1),El=Il("end"),H0=Il("start");function Il(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function i1(e){const t=H0(e),r=El(e);if(t&&r)return{start:t,end:r}}function pr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Gi(e.position):"start"in e||"end"in e?Gi(e):"line"in e||"column"in e?f0(e):""}function f0(e){return _i(e&&e.line)+":"+_i(e&&e.column)}function Gi(e){return f0(e&&e.start)+"-"+f0(e&&e.end)}function _i(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},l=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(l=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const o=n.indexOf(":");o===-1?a.ruleId=n:(a.source=n.slice(0,o),a.ruleId=n.slice(o+1))}if(!a.place&&a.ancestors&&a.ancestors){const o=a.ancestors[a.ancestors.length-1];o&&(a.place=o.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=pr(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=l&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Be.prototype.file="";Be.prototype.name="";Be.prototype.reason="";Be.prototype.message="";Be.prototype.stack="";Be.prototype.column=void 0;Be.prototype.line=void 0;Be.prototype.ancestors=void 0;Be.prototype.cause=void 0;Be.prototype.fatal=void 0;Be.prototype.place=void 0;Be.prototype.ruleId=void 0;Be.prototype.source=void 0;const V0={}.hasOwnProperty,a1=new Map,l1=/[A-Z]/g,s1=new Set(["table","tbody","thead","tfoot","tr"]),o1=new Set(["td","th"]),Dl="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function u1(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=v1(r,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");n=g1(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?fn:Nl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Bl(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Bl(e,t,r){if(t.type==="element")return c1(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return h1(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return d1(e,t,r);if(t.type==="mdxjsEsm")return m1(e,t);if(t.type==="root")return f1(e,t,r);if(t.type==="text")return p1(e,t)}function c1(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=fn,e.schema=i),e.ancestors.push(t);const a=Pl(e,t.tagName,!1),l=y1(e,t);let s=$0(e,t);return s1.has(t.tagName)&&(s=s.filter(function(o){return typeof o=="string"?!bu(o):!0})),Rl(e,l,a,t),U0(l,s),e.ancestors.pop(),e.schema=n,e.create(t,a,l,r)}function h1(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}kr(e,t.position)}function m1(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);kr(e,t.position)}function d1(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=fn,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Pl(e,t.name,!0),l=x1(e,t),s=$0(e,t);return Rl(e,l,a,t),U0(l,s),e.ancestors.pop(),e.schema=n,e.create(t,a,l,r)}function f1(e,t,r){const n={};return U0(n,$0(e,t)),e.create(t,e.Fragment,n,r)}function p1(e,t){return t.value}function Rl(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function U0(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function g1(e,t,r){return n;function n(i,a,l,s){const c=Array.isArray(l.children)?r:t;return s?c(a,l,s):c(a,l)}}function v1(e,t){return r;function r(n,i,a,l){const s=Array.isArray(a.children),o=H0(n);return t(i,a,l,s,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function y1(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&V0.call(t.properties,i)){const a=b1(e,i,t.properties[i]);if(a){const[l,s]=a;e.tableCellAlignToStyle&&l==="align"&&typeof s=="string"&&o1.has(t.tagName)?n=s:r[l]=s}}if(n){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function x1(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];a.type;const l=a.expression;l.type;const s=l.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else kr(e,t.position);else{const i=n.name;let a;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const s=n.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else kr(e,t.position);else a=n.value===null?!0:n.value;r[i]=a}return r}function $0(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:a1;for(;++n<t.children.length;){const a=t.children[n];let l;if(e.passKeys){const o=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(o){const c=i.get(o)||0;l=o+"-"+c,i.set(o,c+1)}}const s=Bl(e,a,l);s!==void 0&&r.push(s)}return r}function b1(e,t,r){const n=Ml(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?pu(r):Nu(r)),n.property==="style"){let i=typeof r=="object"?r:w1(e,String(r));return e.stylePropertyNameCase==="css"&&(i=k1(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&n.space?Au[n.property]||n.property:n.attribute,r]}}function w1(e,t){try{return n1(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,i=new Be("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Dl+"#cannot-parse-style-attribute",i}}function Pl(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,l;for(;++a<i.length;){const s=Pi(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};l=l?{type:"MemberExpression",object:l,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}n=l}else n=Pi(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return V0.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(n);kr(e)}function kr(e,t){const r=new Be("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Dl+"#cannot-handle-mdx-estrees-without-createevaluater",r}function k1(e){const t={};let r;for(r in e)V0.call(e,r)&&(t[S1(r)]=e[r]);return t}function S1(e){let t=e.replace(l1,A1);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function A1(e){return"-"+e.toLowerCase()}const On={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"]},C1={};function T1(e,t){const r=C1,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Fl(e,n,i)}function Fl(e,t,r){if(z1(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Wi(e.children,t,r)}return Array.isArray(e)?Wi(e,t,r):""}function Wi(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=Fl(e[i],t,r);return n.join("")}function z1(e){return!!(e&&typeof e=="object")}const Yi=document.createElement("i");function G0(e){const t="&"+e+";";Yi.innerHTML=t;const r=Yi.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ht(e,t,r,n){const i=e.length;let a=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)l=Array.from(n),l.unshift(t,r),e.splice(...l);else for(r&&e.splice(t,r);a<n.length;)l=n.slice(a,a+1e4),l.unshift(t,0),e.splice(...l),a+=1e4,t+=1e4}function Ze(e,t){return e.length>0?(ht(e,e.length,0,t),e):t}const Xi={}.hasOwnProperty;function M1(e){const t={};let r=-1;for(;++r<e.length;)N1(t,e[r]);return t}function N1(e,t){let r;for(r in t){const i=(Xi.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let l;if(a)for(l in a){Xi.call(i,l)||(i[l]=[]);const s=a[l];E1(i[l],Array.isArray(s)?s:s?[s]:[])}}}function E1(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);ht(e,0,0,n)}function Ol(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Jt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ut=Rt(/[A-Za-z]/),_e=Rt(/[\dA-Za-z]/),I1=Rt(/[#-'*+\--9=?A-Z^-~]/);function p0(e){return e!==null&&(e<32||e===127)}const g0=Rt(/\d/),D1=Rt(/[\dA-Fa-f]/),B1=Rt(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function He(e){return e!==null&&(e<0||e===32)}function ce(e){return e===-2||e===-1||e===32}const R1=Rt(new RegExp("\\p{P}|\\p{S}","u")),P1=Rt(/\s/);function Rt(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ar(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let l="";if(a===37&&_e(e.charCodeAt(r+1))&&_e(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(l=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(l=String.fromCharCode(a,s),i=1):l="�"}else l=String.fromCharCode(a);l&&(t.push(e.slice(n,r),encodeURIComponent(l)),n=r+i+1,l=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function me(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(o){return ce(o)?(e.enter(r),s(o)):t(o)}function s(o){return ce(o)&&a++<i?(e.consume(o),s):(e.exit(r),t(o))}}const F1={tokenize:O1};function O1(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),me(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const o=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=o),r=o,l(s)}function l(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return K(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),l)}}const L1={tokenize:j1},Ki={tokenize:q1};function j1(e){const t=this,r=[];let n=0,i,a,l;return s;function s(I){if(n<r.length){const B=r[n];return t.containerState=B[1],e.attempt(B[0].continuation,o,c)(I)}return c(I)}function o(I){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&z();const B=t.events.length;let P=B,M;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){M=t.events[P][1].end;break}T(n);let U=B;for(;U<t.events.length;)t.events[U][1].end={...M},U++;return ht(t.events,P+1,0,t.events.slice(B)),t.events.length=U,c(I)}return s(I)}function c(I){if(n===r.length){if(!i)return g(I);if(i.currentConstruct&&i.currentConstruct.concrete)return x(I);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ki,m,d)(I)}function m(I){return i&&z(),T(n),g(I)}function d(I){return t.parser.lazy[t.now().line]=n!==r.length,l=t.now().offset,x(I)}function g(I){return t.containerState={},e.attempt(Ki,f,x)(I)}function f(I){return n++,r.push([t.currentConstruct,t.containerState]),g(I)}function x(I){if(I===null){i&&z(),T(0),e.consume(I);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),w(I)}function w(I){if(I===null){N(e.exit("chunkFlow"),!0),T(0),e.consume(I);return}return K(I)?(e.consume(I),N(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(I),w)}function N(I,B){const P=t.sliceStream(I);if(B&&P.push(null),I.previous=a,a&&(a.next=I),a=I,i.defineSkip(I.start),i.write(P),t.parser.lazy[I.start.line]){let M=i.events.length;for(;M--;)if(i.events[M][1].start.offset<l&&(!i.events[M][1].end||i.events[M][1].end.offset>l))return;const U=t.events.length;let _=U,F,X;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){if(F){X=t.events[_][1].end;break}F=!0}for(T(n),M=U;M<t.events.length;)t.events[M][1].end={...X},M++;ht(t.events,_+1,0,t.events.slice(U)),t.events.length=M}}function T(I){let B=r.length;for(;B-- >I;){const P=r[B];t.containerState=P[1],P[0].exit.call(t,e)}r.length=I}function z(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function q1(e,t,r){return me(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Qi(e){if(e===null||He(e)||P1(e))return 1;if(R1(e))return 2}function _0(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const v0={name:"attention",resolveAll:H1,tokenize:V1};function H1(e,t){let r=-1,n,i,a,l,s,o,c,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const d={...e[n][1].end},g={...e[r][1].start};Zi(d,-o),Zi(g,o),l={type:o>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:g},a={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:o>1?"strong":"emphasis",start:{...l.start},end:{...s.end}},e[n][1].end={...l.start},e[r][1].start={...s.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Ze(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Ze(c,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",a,t]]),c=Ze(c,_0(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),c=Ze(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,c=Ze(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,ht(e,n-1,r-n+3,c),r=n+c.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function V1(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Qi(n);let a;return l;function l(o){return a=o,e.enter("attentionSequence"),s(o)}function s(o){if(o===a)return e.consume(o),s;const c=e.exit("attentionSequence"),m=Qi(o),d=!m||m===2&&i||r.includes(o),g=!i||i===2&&m||r.includes(n);return c._open=!!(a===42?d:d&&(i||!g)),c._close=!!(a===42?g:g&&(m||!d)),t(o)}}function Zi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const U1={name:"autolink",tokenize:$1};function $1(e,t,r){let n=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(f){return ut(f)?(e.consume(f),l):f===64?r(f):c(f)}function l(f){return f===43||f===45||f===46||_e(f)?(n=1,s(f)):c(f)}function s(f){return f===58?(e.consume(f),n=0,o):(f===43||f===45||f===46||_e(f))&&n++<32?(e.consume(f),s):(n=0,c(f))}function o(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||p0(f)?r(f):(e.consume(f),o)}function c(f){return f===64?(e.consume(f),m):I1(f)?(e.consume(f),c):r(f)}function m(f){return _e(f)?d(f):r(f)}function d(f){return f===46?(e.consume(f),n=0,m):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):g(f)}function g(f){if((f===45||_e(f))&&n++<63){const x=f===45?g:d;return e.consume(f),x}return r(f)}}const gn={partial:!0,tokenize:G1};function G1(e,t,r){return n;function n(a){return ce(a)?me(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||K(a)?t(a):r(a)}}const Ll={continuation:{tokenize:W1},exit:Y1,name:"blockQuote",tokenize:_1};function _1(e,t,r){const n=this;return i;function i(l){if(l===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),a}return r(l)}function a(l){return ce(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function W1(e,t,r){const n=this;return i;function i(l){return ce(l)?me(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):a(l)}function a(l){return e.attempt(Ll,t,r)(l)}}function Y1(e){e.exit("blockQuote")}const jl={name:"characterEscape",tokenize:X1};function X1(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return B1(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const ql={name:"characterReference",tokenize:K1};function K1(e,t,r){const n=this;let i=0,a,l;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),o}function o(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,l=_e,m(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,l=D1,m):(e.enter("characterReferenceValue"),a=7,l=g0,m(d))}function m(d){if(d===59&&i){const g=e.exit("characterReferenceValue");return l===_e&&!G0(n.sliceSerialize(g))?r(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(d)&&i++<a?(e.consume(d),m):r(d)}}const Ji={partial:!0,tokenize:Z1},ea={concrete:!0,name:"codeFenced",tokenize:Q1};function Q1(e,t,r){const n=this,i={partial:!0,tokenize:P};let a=0,l=0,s;return o;function o(M){return c(M)}function c(M){const U=n.events[n.events.length-1];return a=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,s=M,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(M)}function m(M){return M===s?(l++,e.consume(M),m):l<3?r(M):(e.exit("codeFencedFenceSequence"),ce(M)?me(e,d,"whitespace")(M):d(M))}function d(M){return M===null||K(M)?(e.exit("codeFencedFence"),n.interrupt?t(M):e.check(Ji,w,B)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(M))}function g(M){return M===null||K(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(M)):ce(M)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),me(e,f,"whitespace")(M)):M===96&&M===s?r(M):(e.consume(M),g)}function f(M){return M===null||K(M)?d(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(M))}function x(M){return M===null||K(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(M)):M===96&&M===s?r(M):(e.consume(M),x)}function w(M){return e.attempt(i,B,N)(M)}function N(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),T}function T(M){return a>0&&ce(M)?me(e,z,"linePrefix",a+1)(M):z(M)}function z(M){return M===null||K(M)?e.check(Ji,w,B)(M):(e.enter("codeFlowValue"),I(M))}function I(M){return M===null||K(M)?(e.exit("codeFlowValue"),z(M)):(e.consume(M),I)}function B(M){return e.exit("codeFenced"),t(M)}function P(M,U,_){let F=0;return X;function X(Z){return M.enter("lineEnding"),M.consume(Z),M.exit("lineEnding"),G}function G(Z){return M.enter("codeFencedFence"),ce(Z)?me(M,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):$(Z)}function $(Z){return Z===s?(M.enter("codeFencedFenceSequence"),oe(Z)):_(Z)}function oe(Z){return Z===s?(F++,M.consume(Z),oe):F>=l?(M.exit("codeFencedFenceSequence"),ce(Z)?me(M,se,"whitespace")(Z):se(Z)):_(Z)}function se(Z){return Z===null||K(Z)?(M.exit("codeFencedFence"),U(Z)):_(Z)}}}function Z1(e,t,r){const n=this;return i;function i(l){return l===null?r(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return n.parser.lazy[n.now().line]?r(l):t(l)}}const Ln={name:"codeIndented",tokenize:ec},J1={partial:!0,tokenize:tc};function ec(e,t,r){const n=this;return i;function i(c){return e.enter("codeIndented"),me(e,a,"linePrefix",5)(c)}function a(c){const m=n.events[n.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?l(c):r(c)}function l(c){return c===null?o(c):K(c)?e.attempt(J1,l,o)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||K(c)?(e.exit("codeFlowValue"),l(c)):(e.consume(c),s)}function o(c){return e.exit("codeIndented"),t(c)}}function tc(e,t,r){const n=this;return i;function i(l){return n.parser.lazy[n.now().line]?r(l):K(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):me(e,a,"linePrefix",5)(l)}function a(l){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):K(l)?i(l):r(l)}}const rc={name:"codeText",previous:ic,resolve:nc,tokenize:ac};function nc(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function ic(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ac(e,t,r){let n=0,i,a;return l;function l(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),n++,s):(e.exit("codeTextSequence"),o(d))}function o(d){return d===null?r(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),o):d===96?(a=e.enter("codeTextSequence"),i=0,m(d)):K(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),o):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||K(d)?(e.exit("codeTextData"),o(d)):(e.consume(d),c)}function m(d){return d===96?(e.consume(d),i++,m):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",c(d))}}class lc{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,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&mr(this.left,n),a.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),mr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),mr(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 r=this.left.splice(t,Number.POSITIVE_INFINITY);mr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);mr(this.left,r.reverse())}}}function mr(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Hl(e){const t={};let r=-1,n,i,a,l,s,o,c;const m=new lc(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(n=m.get(r),r&&n[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(o=n[1]._tokenizer.events,a=0,a<o.length&&o[a][1].type==="lineEndingBlank"&&(a+=2),a<o.length&&o[a][1].type==="content"))for(;++a<o.length&&o[a][1].type!=="content";)o[a][1].type==="chunkText"&&(o[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,sc(m,r)),r=t[r],c=!0);else if(n[1]._container){for(a=r,i=void 0;a--;)if(l=m.get(a),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(m.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=a);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(n[1].end={...m.get(i)[1].start},s=m.slice(i,r),s.unshift(n),m.splice(i,r-i+1,s))}}return ht(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!c}function sc(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let l=r._tokenizer;l||(l=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const s=l.events,o=[],c={};let m,d,g=-1,f=r,x=0,w=0;const N=[w];for(;f;){for(;e.get(++i)[1]!==f;);a.push(i),f._tokenizer||(m=n.sliceStream(f),f.next||m.push(null),d&&l.defineSkip(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(m),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=r;++g<s.length;)s[g][0]==="exit"&&s[g-1][0]==="enter"&&s[g][1].type===s[g-1][1].type&&s[g][1].start.line!==s[g][1].end.line&&(w=g+1,N.push(w),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):N.pop(),g=N.length;g--;){const T=s.slice(N[g],N[g+1]),z=a.pop();o.push([z,z+T.length-1]),e.splice(z,2,T)}for(o.reverse(),g=-1;++g<o.length;)c[x+o[g][0]]=x+o[g][1],x+=o[g][1]-o[g][0]-1;return c}const oc={resolve:cc,tokenize:hc},uc={partial:!0,tokenize:mc};function cc(e){return Hl(e),e}function hc(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):K(s)?e.check(uc,l,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function l(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function mc(e,t,r){const n=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),me(e,a,"linePrefix")}function a(l){if(l===null||K(l))return r(l);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):e.interrupt(n.parser.constructs.flow,r,t)(l)}}function Vl(e,t,r,n,i,a,l,s,o){const c=o||Number.POSITIVE_INFINITY;let m=0;return d;function d(T){return T===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(T),e.exit(a),g):T===null||T===32||T===41||p0(T)?r(T):(e.enter(n),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),w(T))}function g(T){return T===62?(e.enter(a),e.consume(T),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(T))}function f(T){return T===62?(e.exit("chunkString"),e.exit(s),g(T)):T===null||T===60||K(T)?r(T):(e.consume(T),T===92?x:f)}function x(T){return T===60||T===62||T===92?(e.consume(T),f):f(T)}function w(T){return!m&&(T===null||T===41||He(T))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(n),t(T)):m<c&&T===40?(e.consume(T),m++,w):T===41?(e.consume(T),m--,w):T===null||T===32||T===40||p0(T)?r(T):(e.consume(T),T===92?N:w)}function N(T){return T===40||T===41||T===92?(e.consume(T),w):w(T)}}function Ul(e,t,r,n,i,a){const l=this;let s=0,o;return c;function c(f){return e.enter(n),e.enter(i),e.consume(f),e.exit(i),e.enter(a),m}function m(f){return s>999||f===null||f===91||f===93&&!o||f===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?r(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(n),t):K(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||K(f)||s++>999?(e.exit("chunkString"),m(f)):(e.consume(f),o||(o=!ce(f)),f===92?g:d)}function g(f){return f===91||f===92||f===93?(e.consume(f),s++,d):d(f)}}function $l(e,t,r,n,i,a){let l;return s;function s(g){return g===34||g===39||g===40?(e.enter(n),e.enter(i),e.consume(g),e.exit(i),l=g===40?41:g,o):r(g)}function o(g){return g===l?(e.enter(i),e.consume(g),e.exit(i),e.exit(n),t):(e.enter(a),c(g))}function c(g){return g===l?(e.exit(a),o(l)):g===null?r(g):K(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),me(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===l||g===null||K(g)?(e.exit("chunkString"),c(g)):(e.consume(g),g===92?d:m)}function d(g){return g===l||g===92?(e.consume(g),m):m(g)}}function gr(e,t){let r;return n;function n(i){return K(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):ce(i)?me(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const dc={name:"definition",tokenize:pc},fc={partial:!0,tokenize:gc};function pc(e,t,r){const n=this;let i;return a;function a(f){return e.enter("definition"),l(f)}function l(f){return Ul.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return i=Jt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),o):r(f)}function o(f){return He(f)?gr(e,c)(f):c(f)}function c(f){return Vl(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function m(f){return e.attempt(fc,d,d)(f)}function d(f){return ce(f)?me(e,g,"whitespace")(f):g(f)}function g(f){return f===null||K(f)?(e.exit("definition"),n.parser.defined.push(i),t(f)):r(f)}}function gc(e,t,r){return n;function n(s){return He(s)?gr(e,i)(s):r(s)}function i(s){return $l(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ce(s)?me(e,l,"whitespace")(s):l(s)}function l(s){return s===null||K(s)?t(s):r(s)}}const vc={name:"hardBreakEscape",tokenize:yc};function yc(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return K(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const xc={name:"headingAtx",resolve:bc,tokenize:wc};function bc(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},ht(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function wc(e,t,r){let n=0;return i;function i(m){return e.enter("atxHeading"),a(m)}function a(m){return e.enter("atxHeadingSequence"),l(m)}function l(m){return m===35&&n++<6?(e.consume(m),l):m===null||He(m)?(e.exit("atxHeadingSequence"),s(m)):r(m)}function s(m){return m===35?(e.enter("atxHeadingSequence"),o(m)):m===null||K(m)?(e.exit("atxHeading"),t(m)):ce(m)?me(e,s,"whitespace")(m):(e.enter("atxHeadingText"),c(m))}function o(m){return m===35?(e.consume(m),o):(e.exit("atxHeadingSequence"),s(m))}function c(m){return m===null||m===35||He(m)?(e.exit("atxHeadingText"),s(m)):(e.consume(m),c)}}const kc=["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"],ta=["pre","script","style","textarea"],Sc={concrete:!0,name:"htmlFlow",resolveTo:Tc,tokenize:zc},Ac={partial:!0,tokenize:Nc},Cc={partial:!0,tokenize:Mc};function Tc(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 zc(e,t,r){const n=this;let i,a,l,s,o;return c;function c(A){return m(A)}function m(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),d}function d(A){return A===33?(e.consume(A),g):A===47?(e.consume(A),a=!0,w):A===63?(e.consume(A),i=3,n.interrupt?t:k):ut(A)?(e.consume(A),l=String.fromCharCode(A),N):r(A)}function g(A){return A===45?(e.consume(A),i=2,f):A===91?(e.consume(A),i=5,s=0,x):ut(A)?(e.consume(A),i=4,n.interrupt?t:k):r(A)}function f(A){return A===45?(e.consume(A),n.interrupt?t:k):r(A)}function x(A){const Ee="CDATA[";return A===Ee.charCodeAt(s++)?(e.consume(A),s===Ee.length?n.interrupt?t:$:x):r(A)}function w(A){return ut(A)?(e.consume(A),l=String.fromCharCode(A),N):r(A)}function N(A){if(A===null||A===47||A===62||He(A)){const Ee=A===47,at=l.toLowerCase();return!Ee&&!a&&ta.includes(at)?(i=1,n.interrupt?t(A):$(A)):kc.includes(l.toLowerCase())?(i=6,Ee?(e.consume(A),T):n.interrupt?t(A):$(A)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(A):a?z(A):I(A))}return A===45||_e(A)?(e.consume(A),l+=String.fromCharCode(A),N):r(A)}function T(A){return A===62?(e.consume(A),n.interrupt?t:$):r(A)}function z(A){return ce(A)?(e.consume(A),z):X(A)}function I(A){return A===47?(e.consume(A),X):A===58||A===95||ut(A)?(e.consume(A),B):ce(A)?(e.consume(A),I):X(A)}function B(A){return A===45||A===46||A===58||A===95||_e(A)?(e.consume(A),B):P(A)}function P(A){return A===61?(e.consume(A),M):ce(A)?(e.consume(A),P):I(A)}function M(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(e.consume(A),o=A,U):ce(A)?(e.consume(A),M):_(A)}function U(A){return A===o?(e.consume(A),o=null,F):A===null||K(A)?r(A):(e.consume(A),U)}function _(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||He(A)?P(A):(e.consume(A),_)}function F(A){return A===47||A===62||ce(A)?I(A):r(A)}function X(A){return A===62?(e.consume(A),G):r(A)}function G(A){return A===null||K(A)?$(A):ce(A)?(e.consume(A),G):r(A)}function $(A){return A===45&&i===2?(e.consume(A),de):A===60&&i===1?(e.consume(A),D):A===62&&i===4?(e.consume(A),ke):A===63&&i===3?(e.consume(A),k):A===93&&i===5?(e.consume(A),we):K(A)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ac,Re,oe)(A)):A===null||K(A)?(e.exit("htmlFlowData"),oe(A)):(e.consume(A),$)}function oe(A){return e.check(Cc,se,Re)(A)}function se(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),Z}function Z(A){return A===null||K(A)?oe(A):(e.enter("htmlFlowData"),$(A))}function de(A){return A===45?(e.consume(A),k):$(A)}function D(A){return A===47?(e.consume(A),l="",ne):$(A)}function ne(A){if(A===62){const Ee=l.toLowerCase();return ta.includes(Ee)?(e.consume(A),ke):$(A)}return ut(A)&&l.length<8?(e.consume(A),l+=String.fromCharCode(A),ne):$(A)}function we(A){return A===93?(e.consume(A),k):$(A)}function k(A){return A===62?(e.consume(A),ke):A===45&&i===2?(e.consume(A),k):$(A)}function ke(A){return A===null||K(A)?(e.exit("htmlFlowData"),Re(A)):(e.consume(A),ke)}function Re(A){return e.exit("htmlFlow"),t(A)}}function Mc(e,t,r){const n=this;return i;function i(l){return K(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):r(l)}function a(l){return n.parser.lazy[n.now().line]?r(l):t(l)}}function Nc(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(gn,t,r)}}const Ec={name:"htmlText",tokenize:Ic};function Ic(e,t,r){const n=this;let i,a,l;return s;function s(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),o}function o(k){return k===33?(e.consume(k),c):k===47?(e.consume(k),P):k===63?(e.consume(k),I):ut(k)?(e.consume(k),_):r(k)}function c(k){return k===45?(e.consume(k),m):k===91?(e.consume(k),a=0,x):ut(k)?(e.consume(k),z):r(k)}function m(k){return k===45?(e.consume(k),f):r(k)}function d(k){return k===null?r(k):k===45?(e.consume(k),g):K(k)?(l=d,D(k)):(e.consume(k),d)}function g(k){return k===45?(e.consume(k),f):d(k)}function f(k){return k===62?de(k):k===45?g(k):d(k)}function x(k){const ke="CDATA[";return k===ke.charCodeAt(a++)?(e.consume(k),a===ke.length?w:x):r(k)}function w(k){return k===null?r(k):k===93?(e.consume(k),N):K(k)?(l=w,D(k)):(e.consume(k),w)}function N(k){return k===93?(e.consume(k),T):w(k)}function T(k){return k===62?de(k):k===93?(e.consume(k),T):w(k)}function z(k){return k===null||k===62?de(k):K(k)?(l=z,D(k)):(e.consume(k),z)}function I(k){return k===null?r(k):k===63?(e.consume(k),B):K(k)?(l=I,D(k)):(e.consume(k),I)}function B(k){return k===62?de(k):I(k)}function P(k){return ut(k)?(e.consume(k),M):r(k)}function M(k){return k===45||_e(k)?(e.consume(k),M):U(k)}function U(k){return K(k)?(l=U,D(k)):ce(k)?(e.consume(k),U):de(k)}function _(k){return k===45||_e(k)?(e.consume(k),_):k===47||k===62||He(k)?F(k):r(k)}function F(k){return k===47?(e.consume(k),de):k===58||k===95||ut(k)?(e.consume(k),X):K(k)?(l=F,D(k)):ce(k)?(e.consume(k),F):de(k)}function X(k){return k===45||k===46||k===58||k===95||_e(k)?(e.consume(k),X):G(k)}function G(k){return k===61?(e.consume(k),$):K(k)?(l=G,D(k)):ce(k)?(e.consume(k),G):F(k)}function $(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),i=k,oe):K(k)?(l=$,D(k)):ce(k)?(e.consume(k),$):(e.consume(k),se)}function oe(k){return k===i?(e.consume(k),i=void 0,Z):k===null?r(k):K(k)?(l=oe,D(k)):(e.consume(k),oe)}function se(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||He(k)?F(k):(e.consume(k),se)}function Z(k){return k===47||k===62||He(k)?F(k):r(k)}function de(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):r(k)}function D(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),ne}function ne(k){return ce(k)?me(e,we,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):we(k)}function we(k){return e.enter("htmlTextData"),l(k)}}const W0={name:"labelEnd",resolveAll:Pc,resolveTo:Fc,tokenize:Oc},Dc={tokenize:Lc},Bc={tokenize:jc},Rc={tokenize:qc};function Pc(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&ht(e,0,e.length,r),e}function Fc(e,t){let r=e.length,n=0,i,a,l,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(l=r);const o={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[l][1].end}},m={type:"labelText",start:{...e[a+n+2][1].end},end:{...e[l-2][1].start}};return s=[["enter",o,t],["enter",c,t]],s=Ze(s,e.slice(a+1,a+n+3)),s=Ze(s,[["enter",m,t]]),s=Ze(s,_0(t.parser.constructs.insideSpan.null,e.slice(a+n+4,l-3),t)),s=Ze(s,[["exit",m,t],e[l-2],e[l-1],["exit",c,t]]),s=Ze(s,e.slice(l+1)),s=Ze(s,[["exit",o,t]]),ht(e,a,e.length,s),e}function Oc(e,t,r){const n=this;let i=n.events.length,a,l;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(g){return a?a._inactive?d(g):(l=n.parser.defined.includes(Jt(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),o):r(g)}function o(g){return g===40?e.attempt(Dc,m,l?m:d)(g):g===91?e.attempt(Bc,m,l?c:d)(g):l?m(g):d(g)}function c(g){return e.attempt(Rc,m,d)(g)}function m(g){return t(g)}function d(g){return a._balanced=!0,r(g)}}function Lc(e,t,r){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return He(d)?gr(e,a)(d):a(d)}function a(d){return d===41?m(d):Vl(e,l,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function l(d){return He(d)?gr(e,o)(d):m(d)}function s(d){return r(d)}function o(d){return d===34||d===39||d===40?$l(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):m(d)}function c(d){return He(d)?gr(e,m)(d):m(d)}function m(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):r(d)}}function jc(e,t,r){const n=this;return i;function i(s){return Ul.call(n,e,a,l,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(Jt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function l(s){return r(s)}}function qc(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const Hc={name:"labelStartImage",resolveAll:W0.resolveAll,tokenize:Vc};function Vc(e,t,r){const n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),l):r(s)}function l(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const Uc={name:"labelStartLink",resolveAll:W0.resolveAll,tokenize:$c};function $c(e,t,r){const n=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),a}function a(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(l):t(l)}}const jn={name:"lineEnding",tokenize:Gc};function Gc(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),me(e,t,"linePrefix")}}const tn={name:"thematicBreak",tokenize:_c};function _c(e,t,r){let n=0,i;return a;function a(c){return e.enter("thematicBreak"),l(c)}function l(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),o(c)):n>=3&&(c===null||K(c))?(e.exit("thematicBreak"),t(c)):r(c)}function o(c){return c===i?(e.consume(c),n++,o):(e.exit("thematicBreakSequence"),ce(c)?me(e,s,"whitespace")(c):s(c))}}const je={continuation:{tokenize:Kc},exit:Zc,name:"list",tokenize:Xc},Wc={partial:!0,tokenize:Jc},Yc={partial:!0,tokenize:Qc};function Xc(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return s;function s(f){const x=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:g0(f)){if(n.containerState.type||(n.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(tn,r,c)(f):c(f);if(!n.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(f)}return r(f)}function o(f){return g0(f)&&++l<10?(e.consume(f),o):(!n.interrupt||l<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),c(f)):r(f)}function c(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,e.check(gn,n.interrupt?r:m,e.attempt(Wc,g,d))}function m(f){return n.containerState.initialBlankLine=!0,a++,g(f)}function d(f){return ce(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),g):r(f)}function g(f){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function Kc(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(gn,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,me(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!ce(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,l(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Yc,t,l)(s))}function l(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,me(e,e.attempt(je,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Qc(e,t,r){const n=this;return me(e,i,"listItemIndent",n.containerState.size+1);function i(a){const l=n.events[n.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===n.containerState.size?t(a):r(a)}}function Zc(e){e.exit(this.containerState.type)}function Jc(e,t,r){const n=this;return me(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const l=n.events[n.events.length-1];return!ce(a)&&l&&l[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const ra={name:"setextUnderline",resolveTo:eh,tokenize:th};function eh(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const l={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",l,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=l,e.push(["exit",l,t]),e}function th(e,t,r){const n=this;let i;return a;function a(c){let m=n.events.length,d;for(;m--;)if(n.events[m][1].type!=="lineEnding"&&n.events[m][1].type!=="linePrefix"&&n.events[m][1].type!=="content"){d=n.events[m][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),i=c,l(c)):r(c)}function l(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),ce(c)?me(e,o,"lineSuffix")(c):o(c))}function o(c){return c===null||K(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}const rh={tokenize:nh};function nh(e){const t=this,r=e.attempt(gn,n,e.attempt(this.parser.constructs.flowInitial,i,me(e,e.attempt(this.parser.constructs.flow,i,e.attempt(oc,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const ih={resolveAll:_l()},ah=Gl("string"),lh=Gl("text");function Gl(e){return{resolveAll:_l(e==="text"?sh:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,l,s);return l;function l(m){return c(m)?a(m):s(m)}function s(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),o}function o(m){return c(m)?(r.exit("data"),a(m)):(r.consume(m),o)}function c(m){if(m===null)return!0;const d=i[m];let g=-1;if(d)for(;++g<d.length;){const f=d[g];if(!f.previous||f.previous.call(n,n.previous))return!0}return!1}}}function _l(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function sh(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,l=-1,s=0,o;for(;a--;){const c=i[a];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)s++,l--;if(l)break;l=-1}else if(c===-2)o=!0,s++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const c={type:r===e.length||o||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:n.start._bufferIndex+l,_index:n.start._index+a,line:n.end.line,column:n.end.column-s,offset:n.end.offset-s},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}const oh={42:je,43:je,45:je,48:je,49:je,50:je,51:je,52:je,53:je,54:je,55:je,56:je,57:je,62:Ll},uh={91:dc},ch={[-2]:Ln,[-1]:Ln,32:Ln},hh={35:xc,42:tn,45:[ra,tn],60:Sc,61:ra,95:tn,96:ea,126:ea},mh={38:ql,92:jl},dh={[-5]:jn,[-4]:jn,[-3]:jn,33:Hc,38:ql,42:v0,60:[U1,Ec],91:Uc,92:[vc,jl],93:W0,95:v0,96:rc},fh={null:[v0,ih]},ph={null:[42,95]},gh={null:[]},vh=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ph,contentInitial:uh,disable:gh,document:oh,flow:hh,flowInitial:ch,insideSpan:fh,string:mh,text:dh},Symbol.toStringTag,{value:"Module"}));function yh(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let l=[],s=[];const o={attempt:U(P),check:U(M),consume:z,enter:I,exit:B,interrupt:U(M,{interrupt:!0})},c={code:null,containerState:{},defineSkip:w,events:[],now:x,parser:e,previous:null,sliceSerialize:g,sliceStream:f,write:d};let m=t.tokenize.call(c,o);return t.resolveAll&&a.push(t),c;function d(G){return l=Ze(l,G),N(),l[l.length-1]!==null?[]:(_(t,0),c.events=_0(a,c.events,c),c.events)}function g(G,$){return bh(f(G),$)}function f(G){return xh(l,G)}function x(){const{_bufferIndex:G,_index:$,line:oe,column:se,offset:Z}=n;return{_bufferIndex:G,_index:$,line:oe,column:se,offset:Z}}function w(G){i[G.line]=G.column,X()}function N(){let G;for(;n._index<l.length;){const $=l[n._index];if(typeof $=="string")for(G=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===G&&n._bufferIndex<$.length;)T($.charCodeAt(n._bufferIndex));else T($)}}function T(G){m=m(G)}function z(G){K(G)?(n.line++,n.column=1,n.offset+=G===-3?2:1,X()):G!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===l[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=G}function I(G,$){const oe=$||{};return oe.type=G,oe.start=x(),c.events.push(["enter",oe,c]),s.push(oe),oe}function B(G){const $=s.pop();return $.end=x(),c.events.push(["exit",$,c]),$}function P(G,$){_(G,$.from)}function M(G,$){$.restore()}function U(G,$){return oe;function oe(se,Z,de){let D,ne,we,k;return Array.isArray(se)?Re(se):"tokenize"in se?Re([se]):ke(se);function ke(Me){return Qe;function Qe(rt){const Ue=rt!==null&&Me[rt],gt=rt!==null&&Me.null,Ft=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(gt)?gt:gt?[gt]:[]];return Re(Ft)(rt)}}function Re(Me){return D=Me,ne=0,Me.length===0?de:A(Me[ne])}function A(Me){return Qe;function Qe(rt){return k=F(),we=Me,Me.partial||(c.currentConstruct=Me),Me.name&&c.parser.constructs.disable.null.includes(Me.name)?at():Me.tokenize.call($?Object.assign(Object.create(c),$):c,o,Ee,at)(rt)}}function Ee(Me){return G(we,k),Z}function at(Me){return k.restore(),++ne<D.length?A(D[ne]):de}}}function _(G,$){G.resolveAll&&!a.includes(G)&&a.push(G),G.resolve&&ht(c.events,$,c.events.length-$,G.resolve(c.events.slice($),c)),G.resolveTo&&(c.events=G.resolveTo(c.events,c))}function F(){const G=x(),$=c.previous,oe=c.currentConstruct,se=c.events.length,Z=Array.from(s);return{from:se,restore:de};function de(){n=G,c.previous=$,c.currentConstruct=oe,c.events.length=se,s=Z,X()}}function X(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function xh(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let l;if(r===i)l=[e[r].slice(n,a)];else{if(l=e.slice(r,i),n>-1){const s=l[0];typeof s=="string"?l[0]=s.slice(n):l.shift()}a>0&&l.push(e[i].slice(0,a))}return l}function bh(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let l;if(typeof a=="string")l=a;else switch(a){case-5:{l="\r";break}case-4:{l=`
`;break}case-3:{l=`\r
`;break}case-2:{l=t?" ":"	";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(a)}i=a===-2,n.push(l)}return n.join("")}function wh(e){const n={constructs:M1([vh,...(e||{}).extensions||[]]),content:i(F1),defined:[],document:i(L1),flow:i(rh),lazy:{},string:i(ah),text:i(lh)};return n;function i(a){return l;function l(s){return yh(n,a,s)}}}function kh(e){for(;!Hl(e););return e}const na=/[\0\t\n\r]/g;function Sh(){let e=1,t="",r=!0,n;return i;function i(a,l,s){const o=[];let c,m,d,g,f;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),d=0,t="",r&&(a.charCodeAt(0)===65279&&d++,r=void 0);d<a.length;){if(na.lastIndex=d,c=na.exec(a),g=c&&c.index!==void 0?c.index:a.length,f=a.charCodeAt(g),!c){t=a.slice(d);break}if(f===10&&d===g&&n)o.push(-3),n=void 0;else switch(n&&(o.push(-5),n=void 0),d<g&&(o.push(a.slice(d,g)),e+=g-d),f){case 0:{o.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,o.push(-2);e++<m;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:n=!0,e=1}d=g+1}return s&&(n&&o.push(-5),t&&o.push(t),o.push(null)),o}}const Ah=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ch(e){return e.replace(Ah,Th)}function Th(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return Ol(r.slice(a?2:1),a?16:10)}return G0(r)||e}const Wl={}.hasOwnProperty;function zh(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),Mh(r)(kh(wh(r).document().write(Sh()(e,t,!0))))}function Mh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(or),autolinkProtocol:F,autolinkEmail:F,atxHeading:a(Dr),blockQuote:a(gt),characterEscape:F,characterReference:F,codeFenced:a(Ft),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(Ft,l),codeText:a(Ir,l),codeTextData:F,data:F,codeFlowValue:F,definition:a(Gt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(_t),hardBreakEscape:a(Br),hardBreakTrailing:a(Br),htmlFlow:a(Rr,l),htmlFlowData:F,htmlText:a(Rr,l),htmlTextData:F,image:a(Pr),label:l,link:a(or),listItem:a(Bn),listItemValue:g,listOrdered:a(Ot,d),listUnordered:a(Ot),paragraph:a(Rn),reference:A,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(Dr),strong:a(ur),thematicBreak:a(Or)},exit:{atxHeading:o(),atxHeadingSequence:P,autolink:o(),autolinkEmail:Ue,autolinkProtocol:rt,blockQuote:o(),characterEscapeValue:X,characterReferenceMarkerHexadecimal:at,characterReferenceMarkerNumeric:at,characterReferenceValue:Me,characterReference:Qe,codeFenced:o(N),codeFencedFence:w,codeFencedFenceInfo:f,codeFencedFenceMeta:x,codeFlowValue:X,codeIndented:o(T),codeText:o(Z),codeTextData:X,data:X,definition:o(),definitionDestinationString:B,definitionLabelString:z,definitionTitleString:I,emphasis:o(),hardBreakEscape:o($),hardBreakTrailing:o($),htmlFlow:o(oe),htmlFlowData:X,htmlText:o(se),htmlTextData:X,image:o(D),label:we,labelText:ne,lineEnding:G,link:o(de),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:Ee,resourceDestinationString:k,resourceTitleString:ke,resource:Re,setextHeading:o(_),setextHeadingLineSequence:U,setextHeadingText:M,strong:o(),thematicBreak:o()}};Yl(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(E){let V={type:"root",children:[]};const J={stack:[V],tokenStack:[],config:t,enter:s,exit:c,buffer:l,resume:m,data:r},le=[];let fe=-1;for(;++fe<E.length;)if(E[fe][1].type==="listOrdered"||E[fe][1].type==="listUnordered")if(E[fe][0]==="enter")le.push(fe);else{const nt=le.pop();fe=i(E,nt,fe)}for(fe=-1;++fe<E.length;){const nt=t[E[fe][0]];Wl.call(nt,E[fe][1].type)&&nt[E[fe][1].type].call(Object.assign({sliceSerialize:E[fe][2].sliceSerialize},J),E[fe][1])}if(J.tokenStack.length>0){const nt=J.tokenStack[J.tokenStack.length-1];(nt[1]||ia).call(J,void 0,nt[0])}for(V.position={start:Tt(E.length>0?E[0][1].start:{line:1,column:1,offset:0}),end:Tt(E.length>0?E[E.length-2][1].end:{line:1,column:1,offset:0})},fe=-1;++fe<t.transforms.length;)V=t.transforms[fe](V)||V;return V}function i(E,V,J){let le=V-1,fe=-1,nt=!1,Lt,vt,cr,hr;for(;++le<=J;){const $e=E[le];switch($e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{$e[0]==="enter"?fe++:fe--,hr=void 0;break}case"lineEndingBlank":{$e[0]==="enter"&&(Lt&&!hr&&!fe&&!cr&&(cr=le),hr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:hr=void 0}if(!fe&&$e[0]==="enter"&&$e[1].type==="listItemPrefix"||fe===-1&&$e[0]==="exit"&&($e[1].type==="listUnordered"||$e[1].type==="listOrdered")){if(Lt){let Wt=le;for(vt=void 0;Wt--;){const yt=E[Wt];if(yt[1].type==="lineEnding"||yt[1].type==="lineEndingBlank"){if(yt[0]==="exit")continue;vt&&(E[vt][1].type="lineEndingBlank",nt=!0),yt[1].type="lineEnding",vt=Wt}else if(!(yt[1].type==="linePrefix"||yt[1].type==="blockQuotePrefix"||yt[1].type==="blockQuotePrefixWhitespace"||yt[1].type==="blockQuoteMarker"||yt[1].type==="listItemIndent"))break}cr&&(!vt||cr<vt)&&(Lt._spread=!0),Lt.end=Object.assign({},vt?E[vt][1].start:$e[1].end),E.splice(vt||le,0,["exit",Lt,$e[2]]),le++,J++}if($e[1].type==="listItemPrefix"){const Wt={type:"listItem",_spread:!1,start:Object.assign({},$e[1].start),end:void 0};Lt=Wt,E.splice(le,0,["enter",Wt,$e[2]]),le++,J++,cr=void 0,hr=!0}}}return E[V][1]._spread=nt,J}function a(E,V){return J;function J(le){s.call(this,E(le),le),V&&V.call(this,le)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(E,V,J){this.stack[this.stack.length-1].children.push(E),this.stack.push(E),this.tokenStack.push([V,J||void 0]),E.position={start:Tt(V.start),end:void 0}}function o(E){return V;function V(J){E&&E.call(this,J),c.call(this,J)}}function c(E,V){const J=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==E.type&&(V?V.call(this,E,le[0]):(le[1]||ia).call(this,E,le[0]));else throw new Error("Cannot close `"+E.type+"` ("+pr({start:E.start,end:E.end})+"): it’s not open");J.position.end=Tt(E.end)}function m(){return T1(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function g(E){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(E),10),this.data.expectingFirstListItemValue=void 0}}function f(){const E=this.resume(),V=this.stack[this.stack.length-1];V.lang=E}function x(){const E=this.resume(),V=this.stack[this.stack.length-1];V.meta=E}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const E=this.resume(),V=this.stack[this.stack.length-1];V.value=E.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const E=this.resume(),V=this.stack[this.stack.length-1];V.value=E.replace(/(\r?\n|\r)$/g,"")}function z(E){const V=this.resume(),J=this.stack[this.stack.length-1];J.label=V,J.identifier=Jt(this.sliceSerialize(E)).toLowerCase()}function I(){const E=this.resume(),V=this.stack[this.stack.length-1];V.title=E}function B(){const E=this.resume(),V=this.stack[this.stack.length-1];V.url=E}function P(E){const V=this.stack[this.stack.length-1];if(!V.depth){const J=this.sliceSerialize(E).length;V.depth=J}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function U(E){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(E).codePointAt(0)===61?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function F(E){const J=this.stack[this.stack.length-1].children;let le=J[J.length-1];(!le||le.type!=="text")&&(le=Fr(),le.position={start:Tt(E.start),end:void 0},J.push(le)),this.stack.push(le)}function X(E){const V=this.stack.pop();V.value+=this.sliceSerialize(E),V.position.end=Tt(E.end)}function G(E){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const J=V.children[V.children.length-1];J.position.end=Tt(E.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&(F.call(this,E),X.call(this,E))}function $(){this.data.atHardBreak=!0}function oe(){const E=this.resume(),V=this.stack[this.stack.length-1];V.value=E}function se(){const E=this.resume(),V=this.stack[this.stack.length-1];V.value=E}function Z(){const E=this.resume(),V=this.stack[this.stack.length-1];V.value=E}function de(){const E=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=V,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function D(){const E=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";E.type+="Reference",E.referenceType=V,delete E.url,delete E.title}else delete E.identifier,delete E.label;this.data.referenceType=void 0}function ne(E){const V=this.sliceSerialize(E),J=this.stack[this.stack.length-2];J.label=Ch(V),J.identifier=Jt(V).toLowerCase()}function we(){const E=this.stack[this.stack.length-1],V=this.resume(),J=this.stack[this.stack.length-1];if(this.data.inReference=!0,J.type==="link"){const le=E.children;J.children=le}else J.alt=V}function k(){const E=this.resume(),V=this.stack[this.stack.length-1];V.url=E}function ke(){const E=this.resume(),V=this.stack[this.stack.length-1];V.title=E}function Re(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function Ee(E){const V=this.resume(),J=this.stack[this.stack.length-1];J.label=V,J.identifier=Jt(this.sliceSerialize(E)).toLowerCase(),this.data.referenceType="full"}function at(E){this.data.characterReferenceType=E.type}function Me(E){const V=this.sliceSerialize(E),J=this.data.characterReferenceType;let le;J?(le=Ol(V,J==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=G0(V);const fe=this.stack[this.stack.length-1];fe.value+=le}function Qe(E){const V=this.stack.pop();V.position.end=Tt(E.end)}function rt(E){X.call(this,E);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(E)}function Ue(E){X.call(this,E);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(E)}function gt(){return{type:"blockquote",children:[]}}function Ft(){return{type:"code",lang:null,meta:null,value:""}}function Ir(){return{type:"inlineCode",value:""}}function Gt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _t(){return{type:"emphasis",children:[]}}function Dr(){return{type:"heading",depth:0,children:[]}}function Br(){return{type:"break"}}function Rr(){return{type:"html",value:""}}function Pr(){return{type:"image",title:null,url:"",alt:null}}function or(){return{type:"link",title:null,url:"",children:[]}}function Ot(E){return{type:"list",ordered:E.type==="listOrdered",start:null,spread:E._spread,children:[]}}function Bn(E){return{type:"listItem",spread:E._spread,checked:null,children:[]}}function Rn(){return{type:"paragraph",children:[]}}function ur(){return{type:"strong",children:[]}}function Fr(){return{type:"text",value:""}}function Or(){return{type:"thematicBreak"}}}function Tt(e){return{line:e.line,column:e.column,offset:e.offset}}function Yl(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?Yl(e,n):Nh(e,n)}}function Nh(e,t){let r;for(r in t)if(Wl.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function ia(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+pr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+pr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+pr({start:t.start,end:t.end})+") is still open")}function Eh(e){const t=this;t.parser=r;function r(n){return zh(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ih(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function Dh(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
`}]}function Bh(e,t){const r=t.value?t.value+`
`:"",n={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};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 Rh(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ph(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Fh(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=ar(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let l,s=e.footnoteCounts.get(n);s===void 0?(s=0,e.footnoteOrder.push(n),l=e.footnoteOrder.length):l=a+1,s+=1,e.footnoteCounts.set(n,s);const o={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,o);const c={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,c),e.applyData(t,c)}function Oh(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Lh(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Xl(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=n:i.push({type:"text",value:n}),i}function jh(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Xl(e,t);const i={src:ar(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function qh(e,t){const r={src:ar(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function Hh(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function Vh(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Xl(e,t);const i={href:ar(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Uh(e,t){const r={href:ar(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $h(e,t,r){const n=e.all(t),i=r?Gh(r):Kl(t),a={},l=[];if(typeof t.checked=="boolean"){const m=n[0];let d;m&&m.type==="element"&&m.tagName==="p"?d=m:(d={type:"element",tagName:"p",properties:{},children:[]},n.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:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const m=n[s];(i||s!==0||m.type!=="element"||m.tagName!=="p")&&l.push({type:"text",value:`
`}),m.type==="element"&&m.tagName==="p"&&!i?l.push(...m.children):l.push(m)}const o=n[n.length-1];o&&(i||o.type!=="element"||o.tagName!=="p")&&l.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:a,children:l};return e.patch(t,c),e.applyData(t,c)}function Gh(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Kl(r[n])}return t}function Kl(e){const t=e.spread;return t??e.children.length>1}function _h(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){const l=n[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function Wh(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Yh(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function Xh(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Kh(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],l),i.push(l)}if(r.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=H0(t.children[1]),o=El(t.children[t.children.length-1]);s&&o&&(l.position={start:s,end:o}),i.push(l)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Qh(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",l=r&&r.type==="table"?r.align:void 0,s=l?l.length:t.children.length;let o=-1;const c=[];for(;++o<s;){const d=t.children[o],g={},f=l?l[o]:void 0;f&&(g.align=f);let x={type:"element",tagName:a,properties:g,children:[]};d&&(x.children=e.all(d),e.patch(d,x),x=e.applyData(d,x)),c.push(x)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,m),e.applyData(t,m)}function Zh(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const aa=9,la=32;function Jh(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(sa(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(sa(t.slice(i),i>0,!1)),a.join("")}function sa(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===aa||a===la;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===aa||a===la;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function e4(e,t){const r={type:"text",value:Jh(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function t4(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const r4={blockquote:Ih,break:Dh,code:Bh,delete:Rh,emphasis:Ph,footnoteReference:Fh,heading:Oh,html:Lh,imageReference:jh,image:qh,inlineCode:Hh,linkReference:Vh,link:Uh,listItem:$h,list:_h,paragraph:Wh,root:Yh,strong:Xh,table:Kh,tableCell:Zh,tableRow:Qh,text:e4,thematicBreak:t4,toml:Ur,yaml:Ur,definition:Ur,footnoteDefinition:Ur};function Ur(){}const Ql=-1,vn=0,vr=1,ln=2,Y0=3,X0=4,K0=5,Q0=6,Zl=7,Jl=8,oa=typeof self=="object"?self:globalThis,n4=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,l]=t[i];switch(a){case vn:case Ql:return r(l,i);case vr:{const s=r([],i);for(const o of l)s.push(n(o));return s}case ln:{const s=r({},i);for(const[o,c]of l)s[n(o)]=n(c);return s}case Y0:return r(new Date(l),i);case X0:{const{source:s,flags:o}=l;return r(new RegExp(s,o),i)}case K0:{const s=r(new Map,i);for(const[o,c]of l)s.set(n(o),n(c));return s}case Q0:{const s=r(new Set,i);for(const o of l)s.add(n(o));return s}case Zl:{const{name:s,message:o}=l;return r(new oa[s](o),i)}case Jl:return r(BigInt(l),i);case"BigInt":return r(Object(BigInt(l)),i);case"ArrayBuffer":return r(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:s}=new Uint8Array(l);return r(new DataView(s),l)}}return r(new oa[a](l),i)};return n},ua=e=>n4(new Map,e)(0),Xt="",{toString:i4}={},{keys:a4}=Object,dr=e=>{const t=typeof e;if(t!=="object"||!e)return[vn,t];const r=i4.call(e).slice(8,-1);switch(r){case"Array":return[vr,Xt];case"Object":return[ln,Xt];case"Date":return[Y0,Xt];case"RegExp":return[X0,Xt];case"Map":return[K0,Xt];case"Set":return[Q0,Xt];case"DataView":return[vr,r]}return r.includes("Array")?[vr,r]:r.includes("Error")?[Zl,r]:[ln,r]},$r=([e,t])=>e===vn&&(t==="function"||t==="symbol"),l4=(e,t,r,n)=>{const i=(l,s)=>{const o=n.push(l)-1;return r.set(s,o),o},a=l=>{if(r.has(l))return r.get(l);let[s,o]=dr(l);switch(s){case vn:{let m=l;switch(o){case"bigint":s=Jl,m=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);m=null;break;case"undefined":return i([Ql],l)}return i([s,m],l)}case vr:{if(o){let g=l;return o==="DataView"?g=new Uint8Array(l.buffer):o==="ArrayBuffer"&&(g=new Uint8Array(l)),i([o,[...g]],l)}const m=[],d=i([s,m],l);for(const g of l)m.push(a(g));return d}case ln:{if(o)switch(o){case"BigInt":return i([o,l.toString()],l);case"Boolean":case"Number":case"String":return i([o,l.valueOf()],l)}if(t&&"toJSON"in l)return a(l.toJSON());const m=[],d=i([s,m],l);for(const g of a4(l))(e||!$r(dr(l[g])))&&m.push([a(g),a(l[g])]);return d}case Y0:return i([s,l.toISOString()],l);case X0:{const{source:m,flags:d}=l;return i([s,{source:m,flags:d}],l)}case K0:{const m=[],d=i([s,m],l);for(const[g,f]of l)(e||!($r(dr(g))||$r(dr(f))))&&m.push([a(g),a(f)]);return d}case Q0:{const m=[],d=i([s,m],l);for(const g of l)(e||!$r(dr(g)))&&m.push(a(g));return d}}const{message:c}=l;return i([s,{name:o,message:c}],l)};return a},ca=(e,{json:t,lossy:r}={})=>{const n=[];return l4(!(t||r),!!t,new Map,n)(e),n},sn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ua(ca(e,t)):structuredClone(e):(e,t)=>ua(ca(e,t));function s4(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function o4(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function u4(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||s4,n=e.options.footnoteBackLabel||o4,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let o=-1;for(;++o<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[o]);if(!c)continue;const m=e.all(c),d=String(c.identifier).toUpperCase(),g=ar(d.toLowerCase());let f=0;const x=[],w=e.footnoteCounts.get(d);for(;w!==void 0&&++f<=w;){x.length>0&&x.push({type:"text",value:" "});let z=typeof r=="string"?r:r(o,f);typeof z=="string"&&(z={type:"text",value:z}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+g+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(o,f),className:["data-footnote-backref"]},children:Array.isArray(z)?z:[z]})}const N=m[m.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const z=N.children[N.children.length-1];z&&z.type==="text"?z.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...x)}else m.push(...x);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+g},children:e.wrap(m,!0)};e.patch(c,T),s.push(T)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...sn(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
`}]}}const Z0=function(e){if(e==null)return d4;if(typeof e=="function")return yn(e);if(typeof e=="object")return Array.isArray(e)?c4(e):h4(e);if(typeof e=="string")return m4(e);throw new Error("Expected function, string, or object as test")};function c4(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Z0(e[r]);return yn(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function h4(e){const t=e;return yn(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function m4(e){return yn(t);function t(r){return r&&r.type===e}}function yn(e){return t;function t(r,n,i){return!!(f4(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function d4(){return!0}function f4(e){return e!==null&&typeof e=="object"&&"type"in e}const es=[],p4=!0,ha=!1,ts="skip";function rs(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=Z0(i),l=n?-1:1;s(e,void 0,[])();function s(o,c,m){const d=o&&typeof o=="object"?o:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(o.type+(f?"<"+f+">":""))+")"})}return g;function g(){let f=es,x,w,N;if((!t||a(o,c,m[m.length-1]||void 0))&&(f=g4(r(o,m)),f[0]===ha))return f;if("children"in o&&o.children){const T=o;if(T.children&&f[0]!==ts)for(w=(n?T.children.length:-1)+l,N=m.concat(T);w>-1&&w<T.children.length;){const z=T.children[w];if(x=s(z,w,N)(),x[0]===ha)return x;w=typeof x[1]=="number"?x[1]:w+l}}return f}}}function g4(e){return Array.isArray(e)?e:typeof e=="number"?[p4,e]:e==null?es:[e]}function ns(e,t,r,n){let i,a,l;typeof t=="function"&&typeof r!="function"?(a=void 0,l=t,i=r):(a=t,l=r,i=n),rs(e,a,s,i);function s(o,c){const m=c[c.length-1],d=m?m.children.indexOf(o):void 0;return l(o,d,m)}}const y0={}.hasOwnProperty,v4={};function y4(e,t){const r=t||v4,n=new Map,i=new Map,a=new Map,l={...r4,...r.handlers},s={all:c,applyData:b4,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:l,one:o,options:r,patch:x4,wrap:k4};return ns(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const d=m.type==="definition"?n:i,g=String(m.identifier).toUpperCase();d.has(g)||d.set(g,m)}}),s;function o(m,d){const g=m.type,f=s.handlers[g];if(y0.call(s.handlers,g)&&f)return f(s,m,d);if(s.options.passThrough&&s.options.passThrough.includes(g)){if("children"in m){const{children:w,...N}=m,T=sn(N);return T.children=s.all(m),T}return sn(m)}return(s.options.unknownHandler||w4)(s,m,d)}function c(m){const d=[];if("children"in m){const g=m.children;let f=-1;for(;++f<g.length;){const x=s.one(g[f],m);if(x){if(f&&g[f-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=ma(x.value)),!Array.isArray(x)&&x.type==="element")){const w=x.children[0];w&&w.type==="text"&&(w.value=ma(w.value))}Array.isArray(x)?d.push(...x):d.push(x)}}}return d}}function x4(e,t){e.position&&(t.position=i1(e))}function b4(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const l="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:l}}r.type==="element"&&a&&Object.assign(r.properties,sn(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function w4(e,t){const r=t.data||{},n="value"in t&&!(y0.call(r,"hProperties")||y0.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function k4(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
`});++n<e.length;)n&&r.push({type:"text",value:`
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
`}),r}function ma(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function da(e,t){const r=y4(e,t),n=r.one(e,void 0),i=u4(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
`},i),a}function S4(e,t){return e&&"run"in e?async function(r,n){const i=da(r,{file:n,...t});await e.run(i,n)}:function(r,n){return da(r,{file:n,...e||t})}}function fa(e){if(e)throw e}var rn=Object.prototype.hasOwnProperty,is=Object.prototype.toString,pa=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,va=function(t){return typeof Array.isArray=="function"?Array.isArray(t):is.call(t)==="[object Array]"},ya=function(t){if(!t||is.call(t)!=="[object Object]")return!1;var r=rn.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&rn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||rn.call(t,i)},xa=function(t,r){pa&&r.name==="__proto__"?pa(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},ba=function(t,r){if(r==="__proto__")if(rn.call(t,r)){if(ga)return ga(t,r).value}else return;return t[r]},A4=function e(){var t,r,n,i,a,l,s=arguments[0],o=1,c=arguments.length,m=!1;for(typeof s=="boolean"&&(m=s,s=arguments[1]||{},o=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});o<c;++o)if(t=arguments[o],t!=null)for(r in t)n=ba(s,r),i=ba(t,r),s!==i&&(m&&i&&(ya(i)||(a=va(i)))?(a?(a=!1,l=n&&va(n)?n:[]):l=n&&ya(n)?n:{},xa(s,{name:r,newValue:e(m,l,i)})):typeof i<"u"&&xa(s,{name:r,newValue:i}));return s};const qn=pl(A4);function x0(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 C4(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);s(null,...i);function s(o,...c){const m=e[++a];let d=-1;if(o){l(o);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,m?T4(m,s)(...c):l(null,...c)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function T4(e,t){let r;return n;function n(...l){const s=e.length>l.length;let o;s&&l.push(i);try{o=e.apply(this,l)}catch(c){const m=c;if(s&&r)throw m;return i(m)}s||(o&&o.then&&typeof o.then=="function"?o.then(a,i):o instanceof Error?i(o):a(o))}function i(l,...s){r||(r=!0,t(l,...s))}function a(l){i(null,l)}}const lt={basename:z4,dirname:M4,extname:N4,join:E4,sep:"/"};function z4(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zr(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let l=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else l<0&&(a=!0,l=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=l));return r===n?n=l:n<0&&(n=e.length),e.slice(r,n)}function M4(e){if(zr(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function N4(e){zr(e);let t=e.length,r=-1,n=0,i=-1,a=0,l;for(;t--;){const s=e.codePointAt(t);if(s===47){if(l){n=t+1;break}continue}r<0&&(l=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function E4(...e){let t=-1,r;for(;++t<e.length;)zr(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":I4(r)}function I4(e){zr(e);const t=e.codePointAt(0)===47;let r=D4(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function D4(e,t){let r="",n=0,i=-1,a=0,l=-1,s,o;for(;++l<=e.length;){if(l<e.length)s=e.codePointAt(l);else{if(s===47)break;s=47}if(s===47){if(!(i===l-1||a===1))if(i!==l-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(o=r.lastIndexOf("/"),o!==r.length-1){o<0?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),i=l,a=0;continue}}else if(r.length>0){r="",n=0,i=l,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,l):r=e.slice(i+1,l),n=l-i-1;i=l,a=0}else s===46&&a>-1?a++:a=-1}return r}function zr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const B4={cwd:R4};function R4(){return"/"}function b0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function P4(e){if(typeof e=="string")e=new URL(e);else if(!b0(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 F4(e)}function F4(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Hn=["history","path","basename","stem","extname","dirname"];class as{constructor(t){let r;t?b0(t)?r={path:t}:typeof t=="string"||O4(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":B4.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Hn.length;){const a=Hn[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)Hn.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?lt.basename(this.path):void 0}set basename(t){Un(t,"basename"),Vn(t,"basename"),this.path=lt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?lt.dirname(this.path):void 0}set dirname(t){wa(this.basename,"dirname"),this.path=lt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?lt.extname(this.path):void 0}set extname(t){if(Vn(t,"extname"),wa(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=lt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){b0(t)&&(t=P4(t)),Un(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?lt.basename(this.path,this.extname):void 0}set stem(t){Un(t,"stem"),Vn(t,"stem"),this.path=lt.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new Be(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Vn(e,t){if(e&&e.includes(lt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+lt.sep+"`")}function Un(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function wa(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function O4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const L4=function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a},j4={}.hasOwnProperty;class J0 extends L4{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=C4()}copy(){const t=new J0;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(qn(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(_n("data",this.frozen),this.namespace[t]=r,this):j4.call(this.namespace,t)&&this.namespace[t]||void 0:t?(_n("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[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Gr(t),n=this.parser||this.Parser;return $n("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),$n("process",this.parser||this.Parser),Gn("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,l){const s=Gr(t),o=n.parse(s);n.run(o,s,function(m,d,g){if(m||!d||!g)return c(m);const f=d,x=n.stringify(f,g);V4(x)?g.value=x:g.result=x,c(m,g)});function c(m,d){m||!d?l(m):a?a(d):r(void 0,d)}}}processSync(t){let r=!1,n;return this.freeze(),$n("processSync",this.parser||this.Parser),Gn("processSync",this.compiler||this.Compiler),this.process(t,i),Sa("processSync","process",r),n;function i(a,l){r=!0,fa(a),n=l}}run(t,r,n){ka(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(l,s){const o=Gr(r);i.run(t,o,c);function c(m,d,g){const f=d||t;m?s(m):l?l(f):n(void 0,f,g)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),Sa("runSync","run",n),i;function a(l,s){fa(l),i=s,n=!0}}stringify(t,r){this.freeze();const n=Gr(r),i=this.compiler||this.Compiler;return Gn("stringify",i),ka(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(_n("use",this.frozen),t!=null)if(typeof t=="function")o(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")o(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[m,...d]=c;o(m,d)}else l(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function l(c){if(!("plugins"in c)&&!("settings"in c))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");s(c.plugins),c.settings&&(i.settings=qn(!0,i.settings,c.settings))}function s(c){let m=-1;if(c!=null)if(Array.isArray(c))for(;++m<c.length;){const d=c[m];a(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function o(c,m){let d=-1,g=-1;for(;++d<n.length;)if(n[d][0]===c){g=d;break}if(g===-1)n.push([c,...m]);else if(m.length>0){let[f,...x]=m;const w=n[g][1];x0(w)&&x0(f)&&(f=qn(!0,w,f)),n[g]=[c,f,...x]}}}}const q4=new J0().freeze();function $n(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Gn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _n(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 ka(e){if(!x0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Sa(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Gr(e){return H4(e)?e:new as(e)}function H4(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function V4(e){return typeof e=="string"||U4(e)}function U4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $4="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Aa=[],Ca={allowDangerousHtml:!0},G4=/^(https?|ircs?|mailto|xmpp)$/i,_4=[{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 W4(e){const t=Y4(e),r=X4(e);return K4(t.runSync(t.parse(r),r),e)}function Y4(e){const t=e.rehypePlugins||Aa,r=e.remarkPlugins||Aa,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ca}:Ca;return q4().use(Eh).use(r).use(S4,n).use(t)}function X4(e){const t=e.children||"",r=new as;return typeof t=="string"&&(r.value=t),r}function K4(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,a=t.disallowedElements,l=t.skipHtml,s=t.unwrapDisallowed,o=t.urlTransform||Q4;for(const m of _4)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+$4+m.id,void 0);return ns(e,c),u1(e,{Fragment:S.Fragment,components:i,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function c(m,d,g){if(m.type==="raw"&&g&&typeof d=="number")return l?g.children.splice(d,1):g.children[d]={type:"text",value:m.value},d;if(m.type==="element"){let f;for(f in On)if(Object.hasOwn(On,f)&&Object.hasOwn(m.properties,f)){const x=m.properties[f],w=On[f];(w===null||w.includes(m.tagName))&&(m.properties[f]=o(String(x||""),f,m))}}if(m.type==="element"){let f=r?!r.includes(m.tagName):a?a.includes(m.tagName):!1;if(!f&&n&&typeof d=="number"&&(f=!n(m,d,g)),f&&g&&typeof d=="number")return s&&m.children?g.children.splice(d,1,...m.children):g.children.splice(d,1),d}}}function Q4(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||n!==-1&&t>n||G4.test(e.slice(0,t))?e:""}function Z4(e,t){const r=String(e);let n=r.indexOf(t),i=n,a=0,l=0;for(;n!==-1;)n===i?++a>l&&(l=a):a=1,i=n+t.length,n=r.indexOf(t,i);return l}function J4(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:s,mathText:l,mathTextData:s}};function e(o){const c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},o)}function t(){this.buffer()}function r(){const o=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=o}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(o){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),m=this.stack[this.stack.length-1];m.type,this.exit(o),m.value=c;const d=m.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function a(o){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},o),this.buffer()}function l(o){const c=this.resume(),m=this.stack[this.stack.length-1];m.type,this.exit(o),m.value=c,m.data.hChildren.push({type:"text",value:c})}function s(o){this.config.enter.data.call(this,o),this.config.exit.data.call(this,o)}}function em(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(a,l,s,o){const c=a.value||"",m=s.createTracker(o),d="$".repeat(Math.max(Z4(c,"$")+1,2)),g=s.enter("mathFlow");let f=m.move(d);if(a.meta){const x=s.enter("mathFlowMeta");f+=m.move(s.safe(a.meta,{after:`
`,before:f,encode:["$"],...m.current()})),x()}return f+=m.move(`
`),c&&(f+=m.move(c+`
`)),f+=m.move(d),g(),f}function n(a,l,s){let o=a.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(o);)c++;const m="$".repeat(c);/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^\$|\$$/.test(o))&&(o=" "+o+" ");let d=-1;for(;++d<s.unsafe.length;){const g=s.unsafe[d];if(!g.atBreak)continue;const f=s.compilePattern(g);let x;for(;x=f.exec(o);){let w=x.index;o.codePointAt(w)===10&&o.codePointAt(w-1)===13&&w--,o=o.slice(0,w)+" "+o.slice(x.index+1)}}return m+o+m}function i(){return"$"}}const tm={tokenize:rm,concrete:!0,name:"mathFlow"},Ta={tokenize:nm,partial:!0};function rm(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let l=0;return s;function s(z){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),o(z)}function o(z){return z===36?(e.consume(z),l++,o):l<2?r(z):(e.exit("mathFlowFenceSequence"),me(e,c,"whitespace")(z))}function c(z){return z===null||K(z)?d(z):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(z))}function m(z){return z===null||K(z)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(z)):z===36?r(z):(e.consume(z),m)}function d(z){return e.exit("mathFlowFence"),n.interrupt?t(z):e.attempt(Ta,g,N)(z)}function g(z){return e.attempt({tokenize:T,partial:!0},N,f)(z)}function f(z){return(a?me(e,x,"linePrefix",a+1):x)(z)}function x(z){return z===null?N(z):K(z)?e.attempt(Ta,g,N)(z):(e.enter("mathFlowValue"),w(z))}function w(z){return z===null||K(z)?(e.exit("mathFlowValue"),x(z)):(e.consume(z),w)}function N(z){return e.exit("mathFlow"),t(z)}function T(z,I,B){let P=0;return me(z,M,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function M(F){return z.enter("mathFlowFence"),z.enter("mathFlowFenceSequence"),U(F)}function U(F){return F===36?(P++,z.consume(F),U):P<l?B(F):(z.exit("mathFlowFenceSequence"),me(z,_,"whitespace")(F))}function _(F){return F===null||K(F)?(z.exit("mathFlowFence"),I(F)):B(F)}}}function nm(e,t,r){const n=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return n.parser.lazy[n.now().line]?r(l):t(l)}}function im(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:am,previous:lm,name:"mathText"};function n(i,a,l){let s=0,o,c;return m;function m(w){return i.enter("mathText"),i.enter("mathTextSequence"),d(w)}function d(w){return w===36?(i.consume(w),s++,d):s<2&&!r?l(w):(i.exit("mathTextSequence"),g(w))}function g(w){return w===null?l(w):w===36?(c=i.enter("mathTextSequence"),o=0,x(w)):w===32?(i.enter("space"),i.consume(w),i.exit("space"),g):K(w)?(i.enter("lineEnding"),i.consume(w),i.exit("lineEnding"),g):(i.enter("mathTextData"),f(w))}function f(w){return w===null||w===32||w===36||K(w)?(i.exit("mathTextData"),g(w)):(i.consume(w),f)}function x(w){return w===36?(i.consume(w),o++,x):o===s?(i.exit("mathTextSequence"),i.exit("mathText"),a(w)):(c.type="mathTextData",f(w))}}}function am(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="mathTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function lm(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function sm(e){return{flow:{36:tm},text:{36:im(e)}}}class L extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,a,l=r&&r.loc;if(l&&l.start<=l.end){var s=l.lexer.input;i=l.start,a=l.end,i===s.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var o=s.slice(i,a).replace(/[^]/g,"$&̲"),c;i>15?c="…"+s.slice(i-15,i):c=s.slice(0,i);var m;a+15<s.length?m=s.slice(a,a+15)+"…":m=s.slice(a),n+=c+o+m}super(n),this.name="ParseError",Object.setPrototypeOf(this,L.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}}var om=/([A-Z])/g,ei=e=>e.replace(om,"-$1").toLowerCase(),um={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},cm=/[&><"']/g,De=e=>String(e).replace(cm,t=>um[t]),yr=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?yr(e.body[0]):e:e.type==="font"?yr(e.body):e,hm=new Set(["mathord","textord","atom"]),St=e=>hm.has(yr(e).type),mm=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},w0={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 dm(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ti{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(w0)){var n=w0[r],i=t[r];this[r]=i!==void 0?n.processor?n.processor(i):i:dm(n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new L("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=mm(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class zt{constructor(t,r,n){this.id=t,this.size=r,this.cramped=n}sup(){return ot[fm[this.id]]}sub(){return ot[pm[this.id]]}fracNum(){return ot[gm[this.id]]}fracDen(){return ot[vm[this.id]]}cramp(){return ot[ym[this.id]]}text(){return ot[xm[this.id]]}isTight(){return this.size>=2}}var ri=0,on=1,er=2,wt=3,Sr=4,Je=5,tr=6,Oe=7,ot=[new zt(ri,0,!1),new zt(on,0,!0),new zt(er,1,!1),new zt(wt,1,!0),new zt(Sr,2,!1),new zt(Je,2,!0),new zt(tr,3,!1),new zt(Oe,3,!0)],fm=[Sr,Je,Sr,Je,tr,Oe,tr,Oe],pm=[Je,Je,Je,Je,Oe,Oe,Oe,Oe],gm=[er,wt,Sr,Je,tr,Oe,tr,Oe],vm=[wt,wt,Je,Je,Oe,Oe,Oe,Oe],ym=[on,on,wt,wt,Je,Je,Oe,Oe],xm=[ri,on,er,wt,er,wt,er,wt],re={DISPLAY:ot[ri],TEXT:ot[er],SCRIPT:ot[Sr],SCRIPTSCRIPT:ot[tr]},k0=[{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 bm(e){for(var t=0;t<k0.length;t++)for(var r=k0[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}var nn=[];k0.forEach(e=>e.blocks.forEach(t=>nn.push(...t)));function ls(e){for(var t=0;t<nn.length;t+=2)if(e>=nn[t]&&e<=nn[t+1])return!0;return!1}var Kt=80,wm=function(t,r){return"M95,"+(622+t+r)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
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
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+t/2.075+" -"+t+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+t)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},km=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+t/2.084+" -"+t+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+t)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Sm=function(t,r){return"M983 "+(10+t+r)+`
l`+t/3.13+" -"+t+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Am=function(t,r){return"M424,"+(2398+t+r)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+t)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
h400000v`+(40+t)+"h-400000z"},Cm=function(t,r){return"M473,"+(2713+t+r)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},Tm=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},zm=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},Mm=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=wm(r,Kt);break;case"sqrtSize1":i=km(r,Kt);break;case"sqrtSize2":i=Sm(r,Kt);break;case"sqrtSize3":i=Am(r,Kt);break;case"sqrtSize4":i=Cm(r,Kt);break;case"sqrtTall":i=zm(r,Kt,n)}return i},Nm=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},za={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
 435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Em=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
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
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-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.")}},S0={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},Im={ex:!0,em:!0,mu:!0},ss=function(t){return typeof t!="string"&&(t=t.unit),t in S0||t in Im||t==="ex"},be=function(t,r){var n;if(t.unit in S0)n=S0[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new L("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},H=function(t){return+t.toFixed(4)+"em"},Et=function(t){return t.filter(r=>r).join(" ")},os=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},us=function(t){var r=document.createElement(t);r.className=Et(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},Dm=/[\s"'>/=\x00-\x1f]/,cs=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+De(Et(this.classes))+'"');var n="";for(var i of Object.keys(this.style))n+=ei(i)+":"+this.style[i]+";";n&&(r+=' style="'+De(n)+'"');for(var a of Object.keys(this.attributes)){if(Dm.test(a))throw new L("Invalid attribute name '"+a+"'");r+=" "+a+'="'+De(this.attributes[a])+'"'}r+=">";for(var l=0;l<this.children.length;l++)r+=this.children[l].toMarkup();return r+="</"+t+">",r};class Mr{constructor(t,r,n,i){os.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return us.call(this,"span")}toMarkup(){return cs.call(this,"span")}}class ni{constructor(t,r,n,i){os.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return us.call(this,"a")}toMarkup(){return cs.call(this,"a")}}class Bm{constructor(t,r,n){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r of Object.keys(this.style))t.style[r]=this.style[r];return t}toMarkup(){var t='<img src="'+De(this.src)+'"'+(' alt="'+De(this.alt)+'"'),r="";for(var n of Object.keys(this.style))r+=ei(n)+":"+this.style[n]+";";return r&&(t+=' style="'+De(r)+'"'),t+="'/>",t}}var Rm={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class et{constructor(t,r,n,i,a,l,s,o){this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=l||0,this.classes=s||[],this.style=o||{},this.maxFontSize=0;var c=bm(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Rm[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=H(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Et(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=De(Et(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var i of Object.keys(this.style))n+=ei(i)+":"+this.style[i]+";";n&&(t=!0,r+=' style="'+De(n)+'"');var a=De(this.text);return t?(r+=">",r+=a,r+="</span>",r):a}}class kt{constructor(t,r){this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+De(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class It{constructor(t,r){this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",za[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+De(this.alternate)+'"/>':'<path d="'+De(za[this.pathName])+'"/>'}}class A0{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+De(this.attributes[r])+'"';return t+="/>",t}}function Ma(e){if(e instanceof et)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Pm(e){if(e instanceof Mr)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var ct={"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]}},_r={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]},Na={Å:"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 Fm(e,t){ct[e]=t}function ii(e,t,r){if(!ct[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=ct[t][n];if(!i&&e[0]in Na&&(n=Na[e[0]].charCodeAt(0),i=ct[t][n]),!i&&r==="text"&&ls(n)&&(i=ct[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Wn={};function Om(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Wn[t]){var r=Wn[t]={cssEmPerMu:_r.quad[t]/18};for(var n in _r)_r.hasOwnProperty(n)&&(r[n]=_r[n][t])}return Wn[t]}var Lm={bin:1,close:1,inner:1,open:1,punct:1,rel:1},jm={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ve={math:{},text:{}};function u(e,t,r,n,i,a){ve[e][i]={font:t,group:r,replace:n},a&&n&&(ve[e][n]=ve[e][i])}var h="math",R="text",p="main",y="ams",ye="accent-token",Y="bin",Le="close",lr="inner",Q="mathord",ze="op-token",Xe="open",xn="punct",b="rel",At="spacing",C="textord";u(h,p,b,"≡","\\equiv",!0);u(h,p,b,"≺","\\prec",!0);u(h,p,b,"≻","\\succ",!0);u(h,p,b,"∼","\\sim",!0);u(h,p,b,"⊥","\\perp");u(h,p,b,"⪯","\\preceq",!0);u(h,p,b,"⪰","\\succeq",!0);u(h,p,b,"≃","\\simeq",!0);u(h,p,b,"∣","\\mid",!0);u(h,p,b,"≪","\\ll",!0);u(h,p,b,"≫","\\gg",!0);u(h,p,b,"≍","\\asymp",!0);u(h,p,b,"∥","\\parallel");u(h,p,b,"⋈","\\bowtie",!0);u(h,p,b,"⌣","\\smile",!0);u(h,p,b,"⊑","\\sqsubseteq",!0);u(h,p,b,"⊒","\\sqsupseteq",!0);u(h,p,b,"≐","\\doteq",!0);u(h,p,b,"⌢","\\frown",!0);u(h,p,b,"∋","\\ni",!0);u(h,p,b,"∝","\\propto",!0);u(h,p,b,"⊢","\\vdash",!0);u(h,p,b,"⊣","\\dashv",!0);u(h,p,b,"∋","\\owns");u(h,p,xn,".","\\ldotp");u(h,p,xn,"⋅","\\cdotp");u(h,p,C,"#","\\#");u(R,p,C,"#","\\#");u(h,p,C,"&","\\&");u(R,p,C,"&","\\&");u(h,p,C,"ℵ","\\aleph",!0);u(h,p,C,"∀","\\forall",!0);u(h,p,C,"ℏ","\\hbar",!0);u(h,p,C,"∃","\\exists",!0);u(h,p,C,"∇","\\nabla",!0);u(h,p,C,"♭","\\flat",!0);u(h,p,C,"ℓ","\\ell",!0);u(h,p,C,"♮","\\natural",!0);u(h,p,C,"♣","\\clubsuit",!0);u(h,p,C,"℘","\\wp",!0);u(h,p,C,"♯","\\sharp",!0);u(h,p,C,"♢","\\diamondsuit",!0);u(h,p,C,"ℜ","\\Re",!0);u(h,p,C,"♡","\\heartsuit",!0);u(h,p,C,"ℑ","\\Im",!0);u(h,p,C,"♠","\\spadesuit",!0);u(h,p,C,"§","\\S",!0);u(R,p,C,"§","\\S");u(h,p,C,"¶","\\P",!0);u(R,p,C,"¶","\\P");u(h,p,C,"†","\\dag");u(R,p,C,"†","\\dag");u(R,p,C,"†","\\textdagger");u(h,p,C,"‡","\\ddag");u(R,p,C,"‡","\\ddag");u(R,p,C,"‡","\\textdaggerdbl");u(h,p,Le,"⎱","\\rmoustache",!0);u(h,p,Xe,"⎰","\\lmoustache",!0);u(h,p,Le,"⟯","\\rgroup",!0);u(h,p,Xe,"⟮","\\lgroup",!0);u(h,p,Y,"∓","\\mp",!0);u(h,p,Y,"⊖","\\ominus",!0);u(h,p,Y,"⊎","\\uplus",!0);u(h,p,Y,"⊓","\\sqcap",!0);u(h,p,Y,"∗","\\ast");u(h,p,Y,"⊔","\\sqcup",!0);u(h,p,Y,"◯","\\bigcirc",!0);u(h,p,Y,"∙","\\bullet",!0);u(h,p,Y,"‡","\\ddagger");u(h,p,Y,"≀","\\wr",!0);u(h,p,Y,"⨿","\\amalg");u(h,p,Y,"&","\\And");u(h,p,b,"⟵","\\longleftarrow",!0);u(h,p,b,"⇐","\\Leftarrow",!0);u(h,p,b,"⟸","\\Longleftarrow",!0);u(h,p,b,"⟶","\\longrightarrow",!0);u(h,p,b,"⇒","\\Rightarrow",!0);u(h,p,b,"⟹","\\Longrightarrow",!0);u(h,p,b,"↔","\\leftrightarrow",!0);u(h,p,b,"⟷","\\longleftrightarrow",!0);u(h,p,b,"⇔","\\Leftrightarrow",!0);u(h,p,b,"⟺","\\Longleftrightarrow",!0);u(h,p,b,"↦","\\mapsto",!0);u(h,p,b,"⟼","\\longmapsto",!0);u(h,p,b,"↗","\\nearrow",!0);u(h,p,b,"↩","\\hookleftarrow",!0);u(h,p,b,"↪","\\hookrightarrow",!0);u(h,p,b,"↘","\\searrow",!0);u(h,p,b,"↼","\\leftharpoonup",!0);u(h,p,b,"⇀","\\rightharpoonup",!0);u(h,p,b,"↙","\\swarrow",!0);u(h,p,b,"↽","\\leftharpoondown",!0);u(h,p,b,"⇁","\\rightharpoondown",!0);u(h,p,b,"↖","\\nwarrow",!0);u(h,p,b,"⇌","\\rightleftharpoons",!0);u(h,y,b,"≮","\\nless",!0);u(h,y,b,"","\\@nleqslant");u(h,y,b,"","\\@nleqq");u(h,y,b,"⪇","\\lneq",!0);u(h,y,b,"≨","\\lneqq",!0);u(h,y,b,"","\\@lvertneqq");u(h,y,b,"⋦","\\lnsim",!0);u(h,y,b,"⪉","\\lnapprox",!0);u(h,y,b,"⊀","\\nprec",!0);u(h,y,b,"⋠","\\npreceq",!0);u(h,y,b,"⋨","\\precnsim",!0);u(h,y,b,"⪹","\\precnapprox",!0);u(h,y,b,"≁","\\nsim",!0);u(h,y,b,"","\\@nshortmid");u(h,y,b,"∤","\\nmid",!0);u(h,y,b,"⊬","\\nvdash",!0);u(h,y,b,"⊭","\\nvDash",!0);u(h,y,b,"⋪","\\ntriangleleft");u(h,y,b,"⋬","\\ntrianglelefteq",!0);u(h,y,b,"⊊","\\subsetneq",!0);u(h,y,b,"","\\@varsubsetneq");u(h,y,b,"⫋","\\subsetneqq",!0);u(h,y,b,"","\\@varsubsetneqq");u(h,y,b,"≯","\\ngtr",!0);u(h,y,b,"","\\@ngeqslant");u(h,y,b,"","\\@ngeqq");u(h,y,b,"⪈","\\gneq",!0);u(h,y,b,"≩","\\gneqq",!0);u(h,y,b,"","\\@gvertneqq");u(h,y,b,"⋧","\\gnsim",!0);u(h,y,b,"⪊","\\gnapprox",!0);u(h,y,b,"⊁","\\nsucc",!0);u(h,y,b,"⋡","\\nsucceq",!0);u(h,y,b,"⋩","\\succnsim",!0);u(h,y,b,"⪺","\\succnapprox",!0);u(h,y,b,"≆","\\ncong",!0);u(h,y,b,"","\\@nshortparallel");u(h,y,b,"∦","\\nparallel",!0);u(h,y,b,"⊯","\\nVDash",!0);u(h,y,b,"⋫","\\ntriangleright");u(h,y,b,"⋭","\\ntrianglerighteq",!0);u(h,y,b,"","\\@nsupseteqq");u(h,y,b,"⊋","\\supsetneq",!0);u(h,y,b,"","\\@varsupsetneq");u(h,y,b,"⫌","\\supsetneqq",!0);u(h,y,b,"","\\@varsupsetneqq");u(h,y,b,"⊮","\\nVdash",!0);u(h,y,b,"⪵","\\precneqq",!0);u(h,y,b,"⪶","\\succneqq",!0);u(h,y,b,"","\\@nsubseteqq");u(h,y,Y,"⊴","\\unlhd");u(h,y,Y,"⊵","\\unrhd");u(h,y,b,"↚","\\nleftarrow",!0);u(h,y,b,"↛","\\nrightarrow",!0);u(h,y,b,"⇍","\\nLeftarrow",!0);u(h,y,b,"⇏","\\nRightarrow",!0);u(h,y,b,"↮","\\nleftrightarrow",!0);u(h,y,b,"⇎","\\nLeftrightarrow",!0);u(h,y,b,"△","\\vartriangle");u(h,y,C,"ℏ","\\hslash");u(h,y,C,"▽","\\triangledown");u(h,y,C,"◊","\\lozenge");u(h,y,C,"Ⓢ","\\circledS");u(h,y,C,"®","\\circledR");u(R,y,C,"®","\\circledR");u(h,y,C,"∡","\\measuredangle",!0);u(h,y,C,"∄","\\nexists");u(h,y,C,"℧","\\mho");u(h,y,C,"Ⅎ","\\Finv",!0);u(h,y,C,"⅁","\\Game",!0);u(h,y,C,"‵","\\backprime");u(h,y,C,"▲","\\blacktriangle");u(h,y,C,"▼","\\blacktriangledown");u(h,y,C,"■","\\blacksquare");u(h,y,C,"⧫","\\blacklozenge");u(h,y,C,"★","\\bigstar");u(h,y,C,"∢","\\sphericalangle",!0);u(h,y,C,"∁","\\complement",!0);u(h,y,C,"ð","\\eth",!0);u(R,p,C,"ð","ð");u(h,y,C,"╱","\\diagup");u(h,y,C,"╲","\\diagdown");u(h,y,C,"□","\\square");u(h,y,C,"□","\\Box");u(h,y,C,"◊","\\Diamond");u(h,y,C,"¥","\\yen",!0);u(R,y,C,"¥","\\yen",!0);u(h,y,C,"✓","\\checkmark",!0);u(R,y,C,"✓","\\checkmark");u(h,y,C,"ℶ","\\beth",!0);u(h,y,C,"ℸ","\\daleth",!0);u(h,y,C,"ℷ","\\gimel",!0);u(h,y,C,"ϝ","\\digamma",!0);u(h,y,C,"ϰ","\\varkappa");u(h,y,Xe,"┌","\\@ulcorner",!0);u(h,y,Le,"┐","\\@urcorner",!0);u(h,y,Xe,"└","\\@llcorner",!0);u(h,y,Le,"┘","\\@lrcorner",!0);u(h,y,b,"≦","\\leqq",!0);u(h,y,b,"⩽","\\leqslant",!0);u(h,y,b,"⪕","\\eqslantless",!0);u(h,y,b,"≲","\\lesssim",!0);u(h,y,b,"⪅","\\lessapprox",!0);u(h,y,b,"≊","\\approxeq",!0);u(h,y,Y,"⋖","\\lessdot");u(h,y,b,"⋘","\\lll",!0);u(h,y,b,"≶","\\lessgtr",!0);u(h,y,b,"⋚","\\lesseqgtr",!0);u(h,y,b,"⪋","\\lesseqqgtr",!0);u(h,y,b,"≑","\\doteqdot");u(h,y,b,"≓","\\risingdotseq",!0);u(h,y,b,"≒","\\fallingdotseq",!0);u(h,y,b,"∽","\\backsim",!0);u(h,y,b,"⋍","\\backsimeq",!0);u(h,y,b,"⫅","\\subseteqq",!0);u(h,y,b,"⋐","\\Subset",!0);u(h,y,b,"⊏","\\sqsubset",!0);u(h,y,b,"≼","\\preccurlyeq",!0);u(h,y,b,"⋞","\\curlyeqprec",!0);u(h,y,b,"≾","\\precsim",!0);u(h,y,b,"⪷","\\precapprox",!0);u(h,y,b,"⊲","\\vartriangleleft");u(h,y,b,"⊴","\\trianglelefteq");u(h,y,b,"⊨","\\vDash",!0);u(h,y,b,"⊪","\\Vvdash",!0);u(h,y,b,"⌣","\\smallsmile");u(h,y,b,"⌢","\\smallfrown");u(h,y,b,"≏","\\bumpeq",!0);u(h,y,b,"≎","\\Bumpeq",!0);u(h,y,b,"≧","\\geqq",!0);u(h,y,b,"⩾","\\geqslant",!0);u(h,y,b,"⪖","\\eqslantgtr",!0);u(h,y,b,"≳","\\gtrsim",!0);u(h,y,b,"⪆","\\gtrapprox",!0);u(h,y,Y,"⋗","\\gtrdot");u(h,y,b,"⋙","\\ggg",!0);u(h,y,b,"≷","\\gtrless",!0);u(h,y,b,"⋛","\\gtreqless",!0);u(h,y,b,"⪌","\\gtreqqless",!0);u(h,y,b,"≖","\\eqcirc",!0);u(h,y,b,"≗","\\circeq",!0);u(h,y,b,"≜","\\triangleq",!0);u(h,y,b,"∼","\\thicksim");u(h,y,b,"≈","\\thickapprox");u(h,y,b,"⫆","\\supseteqq",!0);u(h,y,b,"⋑","\\Supset",!0);u(h,y,b,"⊐","\\sqsupset",!0);u(h,y,b,"≽","\\succcurlyeq",!0);u(h,y,b,"⋟","\\curlyeqsucc",!0);u(h,y,b,"≿","\\succsim",!0);u(h,y,b,"⪸","\\succapprox",!0);u(h,y,b,"⊳","\\vartriangleright");u(h,y,b,"⊵","\\trianglerighteq");u(h,y,b,"⊩","\\Vdash",!0);u(h,y,b,"∣","\\shortmid");u(h,y,b,"∥","\\shortparallel");u(h,y,b,"≬","\\between",!0);u(h,y,b,"⋔","\\pitchfork",!0);u(h,y,b,"∝","\\varpropto");u(h,y,b,"◀","\\blacktriangleleft");u(h,y,b,"∴","\\therefore",!0);u(h,y,b,"∍","\\backepsilon");u(h,y,b,"▶","\\blacktriangleright");u(h,y,b,"∵","\\because",!0);u(h,y,b,"⋘","\\llless");u(h,y,b,"⋙","\\gggtr");u(h,y,Y,"⊲","\\lhd");u(h,y,Y,"⊳","\\rhd");u(h,y,b,"≂","\\eqsim",!0);u(h,p,b,"⋈","\\Join");u(h,y,b,"≑","\\Doteq",!0);u(h,y,Y,"∔","\\dotplus",!0);u(h,y,Y,"∖","\\smallsetminus");u(h,y,Y,"⋒","\\Cap",!0);u(h,y,Y,"⋓","\\Cup",!0);u(h,y,Y,"⩞","\\doublebarwedge",!0);u(h,y,Y,"⊟","\\boxminus",!0);u(h,y,Y,"⊞","\\boxplus",!0);u(h,y,Y,"⋇","\\divideontimes",!0);u(h,y,Y,"⋉","\\ltimes",!0);u(h,y,Y,"⋊","\\rtimes",!0);u(h,y,Y,"⋋","\\leftthreetimes",!0);u(h,y,Y,"⋌","\\rightthreetimes",!0);u(h,y,Y,"⋏","\\curlywedge",!0);u(h,y,Y,"⋎","\\curlyvee",!0);u(h,y,Y,"⊝","\\circleddash",!0);u(h,y,Y,"⊛","\\circledast",!0);u(h,y,Y,"⋅","\\centerdot");u(h,y,Y,"⊺","\\intercal",!0);u(h,y,Y,"⋒","\\doublecap");u(h,y,Y,"⋓","\\doublecup");u(h,y,Y,"⊠","\\boxtimes",!0);u(h,y,b,"⇢","\\dashrightarrow",!0);u(h,y,b,"⇠","\\dashleftarrow",!0);u(h,y,b,"⇇","\\leftleftarrows",!0);u(h,y,b,"⇆","\\leftrightarrows",!0);u(h,y,b,"⇚","\\Lleftarrow",!0);u(h,y,b,"↞","\\twoheadleftarrow",!0);u(h,y,b,"↢","\\leftarrowtail",!0);u(h,y,b,"↫","\\looparrowleft",!0);u(h,y,b,"⇋","\\leftrightharpoons",!0);u(h,y,b,"↶","\\curvearrowleft",!0);u(h,y,b,"↺","\\circlearrowleft",!0);u(h,y,b,"↰","\\Lsh",!0);u(h,y,b,"⇈","\\upuparrows",!0);u(h,y,b,"↿","\\upharpoonleft",!0);u(h,y,b,"⇃","\\downharpoonleft",!0);u(h,p,b,"⊶","\\origof",!0);u(h,p,b,"⊷","\\imageof",!0);u(h,y,b,"⊸","\\multimap",!0);u(h,y,b,"↭","\\leftrightsquigarrow",!0);u(h,y,b,"⇉","\\rightrightarrows",!0);u(h,y,b,"⇄","\\rightleftarrows",!0);u(h,y,b,"↠","\\twoheadrightarrow",!0);u(h,y,b,"↣","\\rightarrowtail",!0);u(h,y,b,"↬","\\looparrowright",!0);u(h,y,b,"↷","\\curvearrowright",!0);u(h,y,b,"↻","\\circlearrowright",!0);u(h,y,b,"↱","\\Rsh",!0);u(h,y,b,"⇊","\\downdownarrows",!0);u(h,y,b,"↾","\\upharpoonright",!0);u(h,y,b,"⇂","\\downharpoonright",!0);u(h,y,b,"⇝","\\rightsquigarrow",!0);u(h,y,b,"⇝","\\leadsto");u(h,y,b,"⇛","\\Rrightarrow",!0);u(h,y,b,"↾","\\restriction");u(h,p,C,"‘","`");u(h,p,C,"$","\\$");u(R,p,C,"$","\\$");u(R,p,C,"$","\\textdollar");u(h,p,C,"%","\\%");u(R,p,C,"%","\\%");u(h,p,C,"_","\\_");u(R,p,C,"_","\\_");u(R,p,C,"_","\\textunderscore");u(h,p,C,"∠","\\angle",!0);u(h,p,C,"∞","\\infty",!0);u(h,p,C,"′","\\prime");u(h,p,C,"△","\\triangle");u(h,p,C,"Γ","\\Gamma",!0);u(h,p,C,"Δ","\\Delta",!0);u(h,p,C,"Θ","\\Theta",!0);u(h,p,C,"Λ","\\Lambda",!0);u(h,p,C,"Ξ","\\Xi",!0);u(h,p,C,"Π","\\Pi",!0);u(h,p,C,"Σ","\\Sigma",!0);u(h,p,C,"Υ","\\Upsilon",!0);u(h,p,C,"Φ","\\Phi",!0);u(h,p,C,"Ψ","\\Psi",!0);u(h,p,C,"Ω","\\Omega",!0);u(h,p,C,"A","Α");u(h,p,C,"B","Β");u(h,p,C,"E","Ε");u(h,p,C,"Z","Ζ");u(h,p,C,"H","Η");u(h,p,C,"I","Ι");u(h,p,C,"K","Κ");u(h,p,C,"M","Μ");u(h,p,C,"N","Ν");u(h,p,C,"O","Ο");u(h,p,C,"P","Ρ");u(h,p,C,"T","Τ");u(h,p,C,"X","Χ");u(h,p,C,"¬","\\neg",!0);u(h,p,C,"¬","\\lnot");u(h,p,C,"⊤","\\top");u(h,p,C,"⊥","\\bot");u(h,p,C,"∅","\\emptyset");u(h,y,C,"∅","\\varnothing");u(h,p,Q,"α","\\alpha",!0);u(h,p,Q,"β","\\beta",!0);u(h,p,Q,"γ","\\gamma",!0);u(h,p,Q,"δ","\\delta",!0);u(h,p,Q,"ϵ","\\epsilon",!0);u(h,p,Q,"ζ","\\zeta",!0);u(h,p,Q,"η","\\eta",!0);u(h,p,Q,"θ","\\theta",!0);u(h,p,Q,"ι","\\iota",!0);u(h,p,Q,"κ","\\kappa",!0);u(h,p,Q,"λ","\\lambda",!0);u(h,p,Q,"μ","\\mu",!0);u(h,p,Q,"ν","\\nu",!0);u(h,p,Q,"ξ","\\xi",!0);u(h,p,Q,"ο","\\omicron",!0);u(h,p,Q,"π","\\pi",!0);u(h,p,Q,"ρ","\\rho",!0);u(h,p,Q,"σ","\\sigma",!0);u(h,p,Q,"τ","\\tau",!0);u(h,p,Q,"υ","\\upsilon",!0);u(h,p,Q,"ϕ","\\phi",!0);u(h,p,Q,"χ","\\chi",!0);u(h,p,Q,"ψ","\\psi",!0);u(h,p,Q,"ω","\\omega",!0);u(h,p,Q,"ε","\\varepsilon",!0);u(h,p,Q,"ϑ","\\vartheta",!0);u(h,p,Q,"ϖ","\\varpi",!0);u(h,p,Q,"ϱ","\\varrho",!0);u(h,p,Q,"ς","\\varsigma",!0);u(h,p,Q,"φ","\\varphi",!0);u(h,p,Y,"∗","*",!0);u(h,p,Y,"+","+");u(h,p,Y,"−","-",!0);u(h,p,Y,"⋅","\\cdot",!0);u(h,p,Y,"∘","\\circ",!0);u(h,p,Y,"÷","\\div",!0);u(h,p,Y,"±","\\pm",!0);u(h,p,Y,"×","\\times",!0);u(h,p,Y,"∩","\\cap",!0);u(h,p,Y,"∪","\\cup",!0);u(h,p,Y,"∖","\\setminus",!0);u(h,p,Y,"∧","\\land");u(h,p,Y,"∨","\\lor");u(h,p,Y,"∧","\\wedge",!0);u(h,p,Y,"∨","\\vee",!0);u(h,p,C,"√","\\surd");u(h,p,Xe,"⟨","\\langle",!0);u(h,p,Xe,"∣","\\lvert");u(h,p,Xe,"∥","\\lVert");u(h,p,Le,"?","?");u(h,p,Le,"!","!");u(h,p,Le,"⟩","\\rangle",!0);u(h,p,Le,"∣","\\rvert");u(h,p,Le,"∥","\\rVert");u(h,p,b,"=","=");u(h,p,b,":",":");u(h,p,b,"≈","\\approx",!0);u(h,p,b,"≅","\\cong",!0);u(h,p,b,"≥","\\ge");u(h,p,b,"≥","\\geq",!0);u(h,p,b,"←","\\gets");u(h,p,b,">","\\gt",!0);u(h,p,b,"∈","\\in",!0);u(h,p,b,"","\\@not");u(h,p,b,"⊂","\\subset",!0);u(h,p,b,"⊃","\\supset",!0);u(h,p,b,"⊆","\\subseteq",!0);u(h,p,b,"⊇","\\supseteq",!0);u(h,y,b,"⊈","\\nsubseteq",!0);u(h,y,b,"⊉","\\nsupseteq",!0);u(h,p,b,"⊨","\\models");u(h,p,b,"←","\\leftarrow",!0);u(h,p,b,"≤","\\le");u(h,p,b,"≤","\\leq",!0);u(h,p,b,"<","\\lt",!0);u(h,p,b,"→","\\rightarrow",!0);u(h,p,b,"→","\\to");u(h,y,b,"≱","\\ngeq",!0);u(h,y,b,"≰","\\nleq",!0);u(h,p,At," ","\\ ");u(h,p,At," ","\\space");u(h,p,At," ","\\nobreakspace");u(R,p,At," ","\\ ");u(R,p,At," "," ");u(R,p,At," ","\\space");u(R,p,At," ","\\nobreakspace");u(h,p,At,null,"\\nobreak");u(h,p,At,null,"\\allowbreak");u(h,p,xn,",",",");u(h,p,xn,";",";");u(h,y,Y,"⊼","\\barwedge",!0);u(h,y,Y,"⊻","\\veebar",!0);u(h,p,Y,"⊙","\\odot",!0);u(h,p,Y,"⊕","\\oplus",!0);u(h,p,Y,"⊗","\\otimes",!0);u(h,p,C,"∂","\\partial",!0);u(h,p,Y,"⊘","\\oslash",!0);u(h,y,Y,"⊚","\\circledcirc",!0);u(h,y,Y,"⊡","\\boxdot",!0);u(h,p,Y,"△","\\bigtriangleup");u(h,p,Y,"▽","\\bigtriangledown");u(h,p,Y,"†","\\dagger");u(h,p,Y,"⋄","\\diamond");u(h,p,Y,"⋆","\\star");u(h,p,Y,"◃","\\triangleleft");u(h,p,Y,"▹","\\triangleright");u(h,p,Xe,"{","\\{");u(R,p,C,"{","\\{");u(R,p,C,"{","\\textbraceleft");u(h,p,Le,"}","\\}");u(R,p,C,"}","\\}");u(R,p,C,"}","\\textbraceright");u(h,p,Xe,"{","\\lbrace");u(h,p,Le,"}","\\rbrace");u(h,p,Xe,"[","\\lbrack",!0);u(R,p,C,"[","\\lbrack",!0);u(h,p,Le,"]","\\rbrack",!0);u(R,p,C,"]","\\rbrack",!0);u(h,p,Xe,"(","\\lparen",!0);u(h,p,Le,")","\\rparen",!0);u(R,p,C,"<","\\textless",!0);u(R,p,C,">","\\textgreater",!0);u(h,p,Xe,"⌊","\\lfloor",!0);u(h,p,Le,"⌋","\\rfloor",!0);u(h,p,Xe,"⌈","\\lceil",!0);u(h,p,Le,"⌉","\\rceil",!0);u(h,p,C,"\\","\\backslash");u(h,p,C,"∣","|");u(h,p,C,"∣","\\vert");u(R,p,C,"|","\\textbar",!0);u(h,p,C,"∥","\\|");u(h,p,C,"∥","\\Vert");u(R,p,C,"∥","\\textbardbl");u(R,p,C,"~","\\textasciitilde");u(R,p,C,"\\","\\textbackslash");u(R,p,C,"^","\\textasciicircum");u(h,p,b,"↑","\\uparrow",!0);u(h,p,b,"⇑","\\Uparrow",!0);u(h,p,b,"↓","\\downarrow",!0);u(h,p,b,"⇓","\\Downarrow",!0);u(h,p,b,"↕","\\updownarrow",!0);u(h,p,b,"⇕","\\Updownarrow",!0);u(h,p,ze,"∐","\\coprod");u(h,p,ze,"⋁","\\bigvee");u(h,p,ze,"⋀","\\bigwedge");u(h,p,ze,"⨄","\\biguplus");u(h,p,ze,"⋂","\\bigcap");u(h,p,ze,"⋃","\\bigcup");u(h,p,ze,"∫","\\int");u(h,p,ze,"∫","\\intop");u(h,p,ze,"∬","\\iint");u(h,p,ze,"∭","\\iiint");u(h,p,ze,"∏","\\prod");u(h,p,ze,"∑","\\sum");u(h,p,ze,"⨂","\\bigotimes");u(h,p,ze,"⨁","\\bigoplus");u(h,p,ze,"⨀","\\bigodot");u(h,p,ze,"∮","\\oint");u(h,p,ze,"∯","\\oiint");u(h,p,ze,"∰","\\oiiint");u(h,p,ze,"⨆","\\bigsqcup");u(h,p,ze,"∫","\\smallint");u(R,p,lr,"…","\\textellipsis");u(h,p,lr,"…","\\mathellipsis");u(R,p,lr,"…","\\ldots",!0);u(h,p,lr,"…","\\ldots",!0);u(h,p,lr,"⋯","\\@cdots",!0);u(h,p,lr,"⋱","\\ddots",!0);u(h,p,C,"⋮","\\varvdots");u(R,p,C,"⋮","\\varvdots");u(h,p,ye,"ˊ","\\acute");u(h,p,ye,"ˋ","\\grave");u(h,p,ye,"¨","\\ddot");u(h,p,ye,"~","\\tilde");u(h,p,ye,"ˉ","\\bar");u(h,p,ye,"˘","\\breve");u(h,p,ye,"ˇ","\\check");u(h,p,ye,"^","\\hat");u(h,p,ye,"⃗","\\vec");u(h,p,ye,"˙","\\dot");u(h,p,ye,"˚","\\mathring");u(h,p,Q,"","\\@imath");u(h,p,Q,"","\\@jmath");u(h,p,C,"ı","ı");u(h,p,C,"ȷ","ȷ");u(R,p,C,"ı","\\i",!0);u(R,p,C,"ȷ","\\j",!0);u(R,p,C,"ß","\\ss",!0);u(R,p,C,"æ","\\ae",!0);u(R,p,C,"œ","\\oe",!0);u(R,p,C,"ø","\\o",!0);u(R,p,C,"Æ","\\AE",!0);u(R,p,C,"Œ","\\OE",!0);u(R,p,C,"Ø","\\O",!0);u(R,p,ye,"ˊ","\\'");u(R,p,ye,"ˋ","\\`");u(R,p,ye,"ˆ","\\^");u(R,p,ye,"˜","\\~");u(R,p,ye,"ˉ","\\=");u(R,p,ye,"˘","\\u");u(R,p,ye,"˙","\\.");u(R,p,ye,"¸","\\c");u(R,p,ye,"˚","\\r");u(R,p,ye,"ˇ","\\v");u(R,p,ye,"¨",'\\"');u(R,p,ye,"˝","\\H");u(R,p,ye,"◯","\\textcircled");var hs={"--":!0,"---":!0,"``":!0,"''":!0};u(R,p,C,"–","--",!0);u(R,p,C,"–","\\textendash");u(R,p,C,"—","---",!0);u(R,p,C,"—","\\textemdash");u(R,p,C,"‘","`",!0);u(R,p,C,"‘","\\textquoteleft");u(R,p,C,"’","'",!0);u(R,p,C,"’","\\textquoteright");u(R,p,C,"“","``",!0);u(R,p,C,"“","\\textquotedblleft");u(R,p,C,"”","''",!0);u(R,p,C,"”","\\textquotedblright");u(h,p,C,"°","\\degree",!0);u(R,p,C,"°","\\degree");u(R,p,C,"°","\\textdegree",!0);u(h,p,C,"£","\\pounds");u(h,p,C,"£","\\mathsterling",!0);u(R,p,C,"£","\\pounds");u(R,p,C,"£","\\textsterling",!0);u(h,y,C,"✠","\\maltese");u(R,y,C,"✠","\\maltese");var Ea='0123456789/@."';for(var Yn=0;Yn<Ea.length;Yn++){var Ia=Ea.charAt(Yn);u(h,p,C,Ia,Ia)}var Da='0123456789!@*()-=+";:?/.,';for(var Xn=0;Xn<Da.length;Xn++){var Ba=Da.charAt(Xn);u(R,p,C,Ba,Ba)}var un="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Kn=0;Kn<un.length;Kn++){var Wr=un.charAt(Kn);u(h,p,Q,Wr,Wr),u(R,p,C,Wr,Wr)}u(h,y,C,"C","ℂ");u(R,y,C,"C","ℂ");u(h,y,C,"H","ℍ");u(R,y,C,"H","ℍ");u(h,y,C,"N","ℕ");u(R,y,C,"N","ℕ");u(h,y,C,"P","ℙ");u(R,y,C,"P","ℙ");u(h,y,C,"Q","ℚ");u(R,y,C,"Q","ℚ");u(h,y,C,"R","ℝ");u(R,y,C,"R","ℝ");u(h,y,C,"Z","ℤ");u(R,y,C,"Z","ℤ");u(h,p,Q,"h","ℎ");u(R,p,Q,"h","ℎ");var ee="";for(var Pe=0;Pe<un.length;Pe++){var Se=un.charAt(Pe);ee=String.fromCharCode(55349,56320+Pe),u(h,p,Q,Se,ee),u(R,p,C,Se,ee),ee=String.fromCharCode(55349,56372+Pe),u(h,p,Q,Se,ee),u(R,p,C,Se,ee),ee=String.fromCharCode(55349,56424+Pe),u(h,p,Q,Se,ee),u(R,p,C,Se,ee),ee=String.fromCharCode(55349,56580+Pe),u(h,p,Q,Se,ee),u(R,p,C,Se,ee),ee=String.fromCharCode(55349,56684+Pe),u(h,p,Q,Se,ee),u(R,p,C,Se,ee),ee=String.fromCharCode(55349,56736+Pe),u(h,p,Q,Se,ee),u(R,p,C,Se,ee),ee=String.fromCharCode(55349,56788+Pe),u(h,p,Q,Se,ee),u(R,p,C,Se,ee),ee=String.fromCharCode(55349,56840+Pe),u(h,p,Q,Se,ee),u(R,p,C,Se,ee),ee=String.fromCharCode(55349,56944+Pe),u(h,p,Q,Se,ee),u(R,p,C,Se,ee),Pe<26&&(ee=String.fromCharCode(55349,56632+Pe),u(h,p,Q,Se,ee),u(R,p,C,Se,ee),ee=String.fromCharCode(55349,56476+Pe),u(h,p,Q,Se,ee),u(R,p,C,Se,ee))}ee="𝕜";u(h,p,Q,"k",ee);u(R,p,C,"k",ee);for(var jt=0;jt<10;jt++){var Mt=jt.toString();ee=String.fromCharCode(55349,57294+jt),u(h,p,Q,Mt,ee),u(R,p,C,Mt,ee),ee=String.fromCharCode(55349,57314+jt),u(h,p,Q,Mt,ee),u(R,p,C,Mt,ee),ee=String.fromCharCode(55349,57324+jt),u(h,p,Q,Mt,ee),u(R,p,C,Mt,ee),ee=String.fromCharCode(55349,57334+jt),u(h,p,Q,Mt,ee),u(R,p,C,Mt,ee)}var C0="ÐÞþ";for(var Qn=0;Qn<C0.length;Qn++){var Yr=C0.charAt(Qn);u(h,p,Q,Yr,Yr),u(R,p,C,Yr,Yr)}var Xr=[["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"]],Ra=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],qm=(e,t)=>{var r=e.charCodeAt(0),n=e.charCodeAt(1),i=(r-55296)*1024+(n-56320)+65536,a=t==="math"?0:1;if(119808<=i&&i<120484){var l=Math.floor((i-119808)/26);return[Xr[l][2],Xr[l][a]]}else if(120782<=i&&i<=120831){var s=Math.floor((i-120782)/10);return[Ra[s][2],Ra[s][a]]}else{if(i===120485||i===120486)return[Xr[0][2],Xr[0][a]];if(120486<i&&i<120782)return["",""];throw new L("Unsupported character: "+e)}};class Nr{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var bn=function(t,r,n){if(ve[n][t]){var i=ve[n][t].replace;i&&(t=i)}return{value:t,metrics:ii(t,r,n)}},Fe=function(t,r,n,i,a){var l=bn(t,r,n),s=l.metrics;t=l.value;var o;if(s){var c=s.italic;(n==="text"||i&&i.font==="mathit")&&(c=0),o=new et(t,s.height,s.depth,c,s.skew,s.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),o=new et(t,0,0,0,0,0,a);if(i){o.maxFontSize=i.sizeMultiplier,i.style.isTight()&&o.classes.push("mtight");var m=i.getColor();m&&(o.style.color=m)}return o},ai=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&bn(t,"Main-Bold",r).metrics?Fe(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||ve[r][t].font==="main"?Fe(t,"Main-Regular",r,n,i):Fe(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},Hm=function(t,r,n,i,a){return a!=="textord"&&bn(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},wn=function(t,r,n){var i=t.mode,a=t.text,l=["mord"],s=i==="math"||i==="text"&&r.font,o=s?r.font:r.fontFamily,c="",m="";if(a.charCodeAt(0)===55349&&([c,m]=qm(a,i)),c.length>0)return Fe(a,c,i,r,l.concat(m));if(o){var d,g;if(o==="boldsymbol"){var f=Hm(a,i,r,l,n);d=f.fontName,g=[f.fontClass]}else s?(d=T0[o].fontName,g=[o]):(d=Kr(o,r.fontWeight,r.fontShape),g=[o,r.fontWeight,r.fontShape]);if(bn(a,d,i).metrics)return Fe(a,d,i,r,l.concat(g));if(hs.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var x=[],w=0;w<a.length;w++)x.push(Fe(a[w],d,i,r,l.concat(g)));return Ct(x)}}if(n==="mathord")return Fe(a,"Math-Italic",i,r,l.concat(["mathnormal"]));if(n==="textord"){var N=ve[i][a]&&ve[i][a].font;if(N==="ams"){var T=Kr("amsrm",r.fontWeight,r.fontShape);return Fe(a,T,i,r,l.concat("amsrm",r.fontWeight,r.fontShape))}else if(N==="main"||!N){var z=Kr("textrm",r.fontWeight,r.fontShape);return Fe(a,z,i,r,l.concat(r.fontWeight,r.fontShape))}else{var I=Kr(N,r.fontWeight,r.fontShape);return Fe(a,I,i,r,l.concat(I,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},Vm=(e,t)=>{if(Et(e.classes)!==Et(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},ms=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof et&&n instanceof et&&Vm(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},li=function(t){for(var r=0,n=0,i=0,a=0;a<t.children.length;a++){var l=t.children[a];l.height>r&&(r=l.height),l.depth>n&&(n=l.depth),l.maxFontSize>i&&(i=l.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},O=function(t,r,n,i){var a=new Mr(t,r,n,i);return li(a),a},Dt=(e,t,r,n)=>new Mr(e,t,r,n),rr=function(t,r,n){var i=O([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=H(i.height),i.maxFontSize=1,i},Um=function(t,r,n,i){var a=new ni(t,r,n,i);return li(a),a},Ct=function(t){var r=new Nr(t);return li(r),r},nr=function(t,r){return t instanceof Nr?O([],[t],r):t},$m=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,l=1;l<r.length;l++){var s=-r[l].shift-a-r[l].elem.depth,o=s-(r[l-1].elem.height+r[l-1].elem.depth);a=a+s,n.push({type:"kern",size:o}),n.push(r[l])}return{children:n,depth:i}}var c;if(t.positionType==="top"){for(var m=t.positionData,d=0;d<t.children.length;d++){var g=t.children[d];m-=g.type==="kern"?g.size:g.elem.height+g.elem.depth}c=m}else if(t.positionType==="bottom")c=-t.positionData;else{var f=t.children[0];if(f.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")c=-f.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")c=-f.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:c}},he=function(t,r){for(var{children:n,depth:i}=$m(t),a=0,l=0;l<n.length;l++){var s=n[l];if(s.type==="elem"){var o=s.elem;a=Math.max(a,o.maxFontSize,o.height)}}a+=2;var c=O(["pstrut"],[]);c.style.height=H(a);for(var m=[],d=i,g=i,f=i,x=0;x<n.length;x++){var w=n[x];if(w.type==="kern")f+=w.size;else{var N=w.elem,T=w.wrapperClasses||[],z=w.wrapperStyle||{},I=O(T,[c,N],void 0,z);I.style.top=H(-a-f-N.depth),w.marginLeft&&(I.style.marginLeft=w.marginLeft),w.marginRight&&(I.style.marginRight=w.marginRight),m.push(I),f+=N.height+N.depth}d=Math.min(d,f),g=Math.max(g,f)}var B=O(["vlist"],m);B.style.height=H(g);var P;if(d<0){var M=O([],[]),U=O(["vlist"],[M]);U.style.height=H(-d);var _=O(["vlist-s"],[new et("​")]);P=[O(["vlist-r"],[B,_]),O(["vlist-r"],[U])]}else P=[O(["vlist-r"],[B])];var F=O(["vlist-t"],P);return P.length===2&&F.classes.push("vlist-t2"),F.height=g,F.depth=-d,F},ds=(e,t)=>{var r=O(["mspace"],[],t),n=be(e,t);return r.style.marginRight=H(n),r},Kr=function(t,r,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},T0={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"}},fs={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ps=function(t,r){var[n,i,a]=fs[t],l=new It(n),s=new kt([l],{width:H(i),height:H(a),style:"width:"+H(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),o=Dt(["overlay"],[s],r);return o.height=a,o.style.height=H(a),o.style.width=H(i),o},xe={number:3,unit:"mu"},qt={number:4,unit:"mu"},xt={number:5,unit:"mu"},Gm={mord:{mop:xe,mbin:qt,mrel:xt,minner:xe},mop:{mord:xe,mop:xe,mrel:xt,minner:xe},mbin:{mord:qt,mop:qt,mopen:qt,minner:qt},mrel:{mord:xt,mop:xt,mopen:xt,minner:xt},mopen:{},mclose:{mop:xe,mbin:qt,mrel:xt,minner:xe},mpunct:{mord:xe,mop:xe,mrel:xt,mopen:xe,mclose:xe,mpunct:xe,minner:xe},minner:{mord:xe,mop:xe,mbin:qt,mrel:xt,mopen:xe,mpunct:xe,minner:xe}},_m={mord:{mop:xe},mop:{mord:xe,mop:xe},mbin:{},mrel:{},mopen:{},mclose:{mop:xe},mpunct:{},minner:{mop:xe}},gs={},cn={},hn={};function W(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:l}=e,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},o=0;o<r.length;++o)gs[r[o]]=s;t&&(a&&(cn[t]=a),l&&(hn[t]=l))}function Ut(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;W({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var mn=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Ce=function(t){return t.type==="ordgroup"?t.body:[t]},Wm=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Ym=new Set(["rightmost","mrel","mclose","mpunct"]),Xm={display:re.DISPLAY,text:re.TEXT,script:re.SCRIPT,scriptscript:re.SCRIPTSCRIPT},Km={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ne=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],l=0;l<t.length;l++){var s=ue(t[l],r);if(s instanceof Nr){var o=s.children;a.push(...o)}else a.push(s)}if(ms(a),!n)return a;var c=r;if(t.length===1){var m=t[0];m.type==="sizing"?c=r.havingSize(m.size):m.type==="styling"&&(c=r.havingStyle(Xm[m.style]))}var d=O([i[0]||"leftmost"],[],r),g=O([i[1]||"rightmost"],[],r),f=n==="root";return z0(a,(x,w)=>{var N=w.classes[0],T=x.classes[0];N==="mbin"&&Ym.has(T)?w.classes[0]="mord":T==="mbin"&&Wm.has(N)&&(x.classes[0]="mord")},{node:d},g,f),z0(a,(x,w)=>{var N,T,z=N0(w),I=N0(x),B=z&&I?x.hasClass("mtight")?(N=_m[z])==null?void 0:N[I]:(T=Gm[z])==null?void 0:T[I]:null;if(B)return ds(B,c)},{node:d},g,f),a},z0=function(t,r,n,i,a){i&&t.push(i);for(var l=0;l<t.length;l++){var s=t[l],o=vs(s);if(o){z0(o.children,r,n,null,a);continue}var c=!s.hasClass("mspace");if(c){var m=r(s,n.node);m&&(n.insertAfter?n.insertAfter(m):(t.unshift(m),l++))}c?n.node=s:a&&s.hasClass("newline")&&(n.node=O(["leftmost"])),n.insertAfter=(d=>g=>{t.splice(d+1,0,g),l++})(l)}i&&t.pop()},vs=function(t){return t instanceof Nr||t instanceof ni||t instanceof Mr&&t.hasClass("enclosing")?t:null},M0=function(t,r){var n=vs(t);if(n){var i=n.children;if(i.length){if(r==="right")return M0(i[i.length-1],"right");if(r==="left")return M0(i[0],"left")}}return t},N0=function(t,r){if(!t)return null;r&&(t=M0(t,r));var n=t.classes[0];return Km[n]||null},Ar=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return O(r.concat(n))},ue=function(t,r,n){if(!t)return O();if(cn[t.type]){var i=cn[t.type](t,r);if(n&&r.size!==n.size){i=O(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new L("Got group of unknown type: '"+t.type+"'")};function Qr(e,t){var r=O(["base"],e,t),n=O(["strut"]);return n.style.height=H(r.height+r.depth),r.depth&&(n.style.verticalAlign=H(-r.depth)),r.children.unshift(n),r}function E0(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=Ne(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],l=[],s=0;s<n.length;s++)if(l.push(n[s]),n[s].hasClass("mbin")||n[s].hasClass("mrel")||n[s].hasClass("allowbreak")){for(var o=!1;s<n.length-1&&n[s+1].hasClass("mspace")&&!n[s+1].hasClass("newline");)s++,l.push(n[s]),n[s].hasClass("nobreak")&&(o=!0);o||(a.push(Qr(l,t)),l=[])}else n[s].hasClass("newline")&&(l.pop(),l.length>0&&(a.push(Qr(l,t)),l=[]),a.push(n[s]));l.length>0&&a.push(Qr(l,t));var c;r?(c=Qr(Ne(r,t,!0),t),c.classes=["tag"],a.push(c)):i&&a.push(i);var m=O(["katex-html"],a);if(m.setAttribute("aria-hidden","true"),c){var d=c.children[0];d.style.height=H(m.height+m.depth),m.depth&&(d.style.verticalAlign=H(-m.depth))}return m}function ys(e){return new Nr(e)}class q{constructor(t,r,n){this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=Et(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Te&&this.children[n+1]instanceof Te){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Te;)i+=this.children[++n].toText();t.appendChild(new Te(i).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=De(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+De(Et(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Te{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return De(this.toText())}toText(){return this.text}}class xs{constructor(t){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",H(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+H(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Qm=new Set(["\\imath","\\jmath"]),Zm=new Set(["mrow","mtable"]),tt=function(t,r,n){return ve[r][t]&&ve[r][t].replace&&t.charCodeAt(0)!==55349&&!(hs.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=ve[r][t].replace),new Te(t)},si=function(t){return t.length===1?t[0]:new q("mrow",t)},oi=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=t.text;if(Qm.has(a))return null;if(ve[i][a]){var l=ve[i][a].replace;l&&(a=l)}var s=T0[n].fontName;return ii(a,s,i)?T0[n].variant:null};function Zn(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Te&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Te&&r.text===","}else return!1}var Ke=function(t,r,n){if(t.length===1){var i=pe(t[0],r);return n&&i instanceof q&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],l,s=0;s<t.length;s++){var o=pe(t[s],r);if(o instanceof q&&l instanceof q){if(o.type==="mtext"&&l.type==="mtext"&&o.getAttribute("mathvariant")===l.getAttribute("mathvariant")){l.children.push(...o.children);continue}else if(o.type==="mn"&&l.type==="mn"){l.children.push(...o.children);continue}else if(Zn(o)&&l.type==="mn"){l.children.push(...o.children);continue}else if(o.type==="mn"&&Zn(l))o.children=[...l.children,...o.children],a.pop();else if((o.type==="msup"||o.type==="msub")&&o.children.length>=1&&(l.type==="mn"||Zn(l))){var c=o.children[0];c instanceof q&&c.type==="mn"&&(c.children=[...l.children,...c.children],a.pop())}else if(l.type==="mi"&&l.children.length===1){var m=l.children[0];if(m instanceof Te&&m.text==="̸"&&(o.type==="mo"||o.type==="mi"||o.type==="mn")){var d=o.children[0];d instanceof Te&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(o),l=o}return a},Bt=function(t,r,n){return si(Ke(t,r,n))},pe=function(t,r){if(!t)return new q("mrow");if(hn[t.type]){var n=hn[t.type](t,r);return n}else throw new L("Got group of unknown type: '"+t.type+"'")};function Pa(e,t,r,n,i){var a=Ke(e,r),l;a.length===1&&a[0]instanceof q&&Zm.has(a[0].type)?l=a[0]:l=new q("mrow",a);var s=new q("annotation",[new Te(t)]);s.setAttribute("encoding","application/x-tex");var o=new q("semantics",[l,s]),c=new q("math",[o]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&c.setAttribute("display","block");var m=i?"katex":"katex-mathml";return O([m],[c])}var Jm=[[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]],Fa=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Oa=function(t,r){return r.size<2?t:Jm[t-1][r.size-1]};class bt{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||bt.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=Fa[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new bt(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Oa(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:Fa[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Oa(bt.BASESIZE,t);return this.size===r&&this.textSize===bt.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}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!==bt.BASESIZE?["sizing","reset-size"+this.size,"size"+bt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Om(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}bt.BASESIZE=6;var bs=function(t){return new bt({style:t.displayMode?re.DISPLAY:re.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},ws=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=O(n,[t])}return t},e2=function(t,r,n){var i=bs(n),a;if(n.output==="mathml")return Pa(t,r,i,n.displayMode,!0);if(n.output==="html"){var l=E0(t,i);a=O(["katex"],[l])}else{var s=Pa(t,r,i,n.displayMode,!1),o=E0(t,i);a=O(["katex"],[s,o])}return ws(a,n)},t2=function(t,r,n){var i=bs(n),a=E0(t,i),l=O(["katex"],[a]);return ws(l,n)},r2={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":"="},kn=function(t){var r=new q("mo",[new Te(r2[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},n2={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]},i2=new Set(["widehat","widecheck","widetilde","utilde"]),Sn=function(t,r){function n(){var s=4e5,o=t.label.slice(1);if(i2.has(o)){var c=t,m=c.base.type==="ordgroup"?c.base.body.length:1,d,g,f;if(m>5)o==="widehat"||o==="widecheck"?(d=420,s=2364,f=.42,g=o+"4"):(d=312,s=2340,f=.34,g="tilde4");else{var x=[1,1,2,2,3,3][m];o==="widehat"||o==="widecheck"?(s=[0,1062,2364,2364,2364][x],d=[0,239,300,360,420][x],f=[0,.24,.3,.3,.36,.42][x],g=o+x):(s=[0,600,1033,2339,2340][x],d=[0,260,286,306,312][x],f=[0,.26,.286,.3,.306,.34][x],g="tilde"+x)}var w=new It(g),N=new kt([w],{width:"100%",height:H(f),viewBox:"0 0 "+s+" "+d,preserveAspectRatio:"none"});return{span:Dt([],[N],r),minWidth:0,height:f}}else{var T=[],z=n2[o],[I,B,P]=z,M=P/1e3,U=I.length,_,F;if(U===1){var X=z[3];_=["hide-tail"],F=[X]}else if(U===2)_=["halfarrow-left","halfarrow-right"],F=["xMinYMin","xMaxYMin"];else if(U===3)_=["brace-left","brace-center","brace-right"],F=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
                    `+U+" children.");for(var G=0;G<U;G++){var $=new It(I[G]),oe=new kt([$],{width:"400em",height:H(M),viewBox:"0 0 "+s+" "+P,preserveAspectRatio:F[G]+" slice"}),se=Dt([_[G]],[oe],r);if(U===1)return{span:se,minWidth:B,height:M};se.style.height=H(M),T.push(se)}return{span:O(["stretchy"],T,r),minWidth:B,height:M}}}var{span:i,minWidth:a,height:l}=n();return i.height=l,i.style.height=H(l),a>0&&(i.style.minWidth=H(a)),i},a2=function(t,r,n,i,a){var l,s=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(l=O(["stretchy",r],[],a),r==="fbox"){var o=a.color&&a.getColor();o&&(l.style.borderColor=o)}}else{var c=[];/^[bx]cancel$/.test(r)&&c.push(new A0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&c.push(new A0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var m=new kt(c,{width:"100%",height:H(s)});l=Dt([],[m],a)}return l.height=s,l.style.height=H(s),l};function ae(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 An(e){var t=Cn(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 Cn(e){return e&&(e.type==="atom"||jm.hasOwnProperty(e.type))?e:null}var ui=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=ae(e.base,"accent"),r=n.base,e.base=r,i=Pm(ue(e,t)),e.base=n):(n=ae(e,"accent"),r=n.base);var a=ue(r,t.havingCrampedStyle()),l=n.isShifty&&St(r),s=0;if(l){var o=yr(r),c=ue(o,t.havingCrampedStyle());s=Ma(c).skew}var m=n.label==="\\c",d=m?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),g;if(n.isStretchy)g=Sn(n,t),g=he({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:g,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+H(2*s)+")",marginLeft:H(2*s)}:void 0}]});else{var f,x;n.label==="\\vec"?(f=ps("vec",t),x=fs.vec[1]):(f=wn({type:"textord",mode:n.mode,text:n.label},t,"textord"),f=Ma(f),f.italic=0,x=f.width,m&&(d+=f.depth)),g=O(["accent-body"],[f]);var w=n.label==="\\textcircled";w&&(g.classes.push("accent-full"),d=a.height);var N=s;w||(N-=x/2),g.style.left=H(N),n.label==="\\textcircled"&&(g.style.top=".2em"),g=he({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:g}]})}var T=O(["mord","accent"],[g],t);return i?(i.children[0]=T,i.height=Math.max(T.height,i.height),i.classes[0]="mord",i):T},ks=(e,t)=>{var r=e.isStretchy?kn(e.label):new q("mo",[tt(e.label,e.mode)]),n=new q("mover",[pe(e.base,t),r]);return n.setAttribute("accent","true"),n},l2=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));W({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 r=mn(t[0]),n=!l2.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:ui,mathmlBuilder:ks});W({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:ui,mathmlBuilder:ks});W({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=ue(e.base,t),n=Sn(e,t),i=e.label==="\\utilde"?.12:0,a=he({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return O(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=kn(e.label),n=new q("munder",[pe(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Zr=e=>{var t=new q("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};W({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,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=nr(ue(e.body,n,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var l;e.below&&(n=t.havingStyle(r.sub()),l=nr(ue(e.below,n,t),t),l.classes.push(a+"-arrow-pad"));var s=Sn(e,t),o=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(c-=i.depth);var m;if(l){var d=-t.fontMetrics().axisHeight+l.height+.5*s.height+.111;m=he({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:o},{type:"elem",elem:l,shift:d}]})}else m=he({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:o}]});return m.children[0].children[0].children[1].classes.push("svg-align"),O(["mrel","x-arrow"],[m],t)},mathmlBuilder(e,t){var r=kn(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=Zr(pe(e.body,t));if(e.below){var a=Zr(pe(e.below,t));n=new q("munderover",[r,a,i])}else n=new q("mover",[r,i])}else if(e.below){var l=Zr(pe(e.below,t));n=new q("munder",[r,l])}else n=Zr(),n=new q("mover",[r,n]);return n}});function Ss(e,t){var r=Ne(e.body,t,!0);return O([e.mclass],r,t)}function As(e,t){var r,n=Ke(e.body,t);return e.mclass==="minner"?r=new q("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new q("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new q("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}W({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Ce(i),isCharacterBox:St(i)}},htmlBuilder:Ss,mathmlBuilder:As});var Tn=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"};W({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Tn(t[0]),body:Ce(t[1]),isCharacterBox:St(t[1])}}});W({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],a=t[0],l;n!=="\\stackrel"?l=Tn(i):l="mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Ce(i)},o={type:"supsub",mode:a.mode,base:s,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:l,body:[o],isCharacterBox:St(o)}},htmlBuilder:Ss,mathmlBuilder:As});W({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Tn(t[0]),body:Ce(t[0])}},htmlBuilder(e,t){var r=Ne(e.body,t,!0),n=O([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Ke(e.body,t),n=new q("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var s2={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},La=()=>({type:"styling",body:[],mode:"math",style:"display"}),ja=e=>e.type==="textord"&&e.text==="@",o2=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function u2(e,t,r){var n=s2[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},l=r.callFunction("\\Big",[a],[]),s=r.callFunction("\\\\cdright",[t[1]],[]),o={type:"ordgroup",mode:"math",body:[i,l,s]};return r.callFunction("\\\\cdparent",[o],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function c2(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 r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new L("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],a=0;a<t.length;a++){for(var l=t[a],s=La(),o=0;o<l.length;o++)if(!ja(l[o]))s.body.push(l[o]);else{n.push(s),o+=1;var c=An(l[o]).text,m=new Array(2);if(m[0]={type:"ordgroup",mode:"math",body:[]},m[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(c))if("<>AV".includes(c))for(var d=0;d<2;d++){for(var g=!0,f=o+1;f<l.length;f++){if(o2(l[f],c)){g=!1,o=f;break}if(ja(l[f]))throw new L("Missing a "+c+" character to complete a CD arrow.",l[f]);m[d].body.push(l[f])}if(g)throw new L("Missing a "+c+" character to complete a CD arrow.",l[o])}else throw new L('Expected one of "<>AV=|." after @',l[o]);var x=u2(c,m,e),w={type:"styling",body:[x],mode:"math",style:"display"};n.push(w),s=La()}a%2===0?n.push(s):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var N=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:N,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}W({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=nr(ue(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=H(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new q("mrow",[pe(e.label,t)]);return r=new q("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new q("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});W({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=nr(ue(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new q("mrow",[pe(e.fragment,t)])}});W({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=ae(t[0],"ordgroup"),i=n.body,a="",l=0;l<i.length;l++){var s=ae(i[l],"textord");a+=s.text}var o=parseInt(a),c;if(isNaN(o))throw new L("\\@char has non-numeric argument "+a);if(o<0||o>=1114111)throw new L("\\@char with invalid code point "+a);return o<=65535?c=String.fromCharCode(o):(o-=65536,c=String.fromCharCode((o>>10)+55296,(o&1023)+56320)),{type:"textord",mode:r.mode,text:c}}});var Cs=(e,t)=>{var r=Ne(e.body,t.withColor(e.color),!1);return Ct(r)},Ts=(e,t)=>{var r=Ke(e.body,t.withColor(e.color)),n=new q("mstyle",r);return n.setAttribute("mathcolor",e.color),n};W({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=ae(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:Ce(i)}},htmlBuilder:Cs,mathmlBuilder:Ts});W({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=ae(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:Cs,mathmlBuilder:Ts});W({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&ae(i,"size").value}},htmlBuilder(e,t){var r=O(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=H(be(e.size,t)))),r},mathmlBuilder(e,t){var r=new q("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",H(be(e.size,t)))),r}});var I0={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},zs=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new L("Expected a control sequence",e);return t},h2=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Ms=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};W({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(I0[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=I0[n.text]),ae(t.parseFunction(),"internal");throw new L("Invalid token after macro prefix",n)}});W({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new L("Expected a control sequence",n);for(var a=0,l,s=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){l=t.gullet.future(),s[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new L('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new L('Argument number "'+n.text+'" out of order');a++,s.push([])}else{if(n.text==="EOF")throw new L("Expected a macro definition");s[a].push(n.text)}var{tokens:o}=t.gullet.consumeArg();return l&&o.unshift(l),(r==="\\edef"||r==="\\xdef")&&(o=t.gullet.expandTokens(o),o.reverse()),t.gullet.macros.set(i,{tokens:o,numArgs:a,delimiters:s},r===I0[r]),{type:"internal",mode:t.mode}}});W({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=zs(t.gullet.popToken());t.gullet.consumeSpaces();var i=h2(t);return Ms(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});W({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=zs(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Ms(t,n,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var fr=function(t,r,n){var i=ve.math[t]&&ve.math[t].replace,a=ii(i||t,r,n);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},ci=function(t,r,n,i){var a=n.havingBaseStyle(r),l=O(i.concat(a.sizingClasses(n)),[t],n),s=a.sizeMultiplier/n.sizeMultiplier;return l.height*=s,l.depth*=s,l.maxFontSize=a.sizeMultiplier,l},Ns=function(t,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=H(a),t.height-=a,t.depth+=a},m2=function(t,r,n,i,a,l){var s=Fe(t,"Main-Regular",a,i),o=ci(s,r,i,l);return Ns(o,i,r),o},d2=function(t,r,n,i){return Fe(t,"Size"+r+"-Regular",n,i)},Es=function(t,r,n,i,a,l){var s=d2(t,r,a,i),o=ci(O(["delimsizing","size"+r],[s],i),re.TEXT,i,l);return n&&Ns(o,i,re.TEXT),o},Jn=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=O(["delimsizinginner",i],[O([],[Fe(t,r,n)])]);return{type:"elem",elem:a}},e0=function(t,r,n){var i=ct["Size4-Regular"][t.charCodeAt(0)]?ct["Size4-Regular"][t.charCodeAt(0)][4]:ct["Size1-Regular"][t.charCodeAt(0)][4],a=new It("inner",Nm(t,Math.round(1e3*r))),l=new kt([a],{width:H(i),height:H(r),style:"width:"+H(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),s=Dt([],[l],n);return s.height=r,s.style.height=H(r),s.style.width=H(i),{type:"elem",elem:s}},D0=.008,Jr={type:"kern",size:-1*D0},f2=new Set(["|","\\lvert","\\rvert","\\vert"]),p2=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Is=function(t,r,n,i,a,l){var s,o,c,m,d="",g=0;s=c=m=t,o=null;var f="Size1-Regular";t==="\\uparrow"?c=m="⏐":t==="\\Uparrow"?c=m="‖":t==="\\downarrow"?s=c="⏐":t==="\\Downarrow"?s=c="‖":t==="\\updownarrow"?(s="\\uparrow",c="⏐",m="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",c="‖",m="\\Downarrow"):f2.has(t)?(c="∣",d="vert",g=333):p2.has(t)?(c="∥",d="doublevert",g=556):t==="["||t==="\\lbrack"?(s="⎡",c="⎢",m="⎣",f="Size4-Regular",d="lbrack",g=667):t==="]"||t==="\\rbrack"?(s="⎤",c="⎥",m="⎦",f="Size4-Regular",d="rbrack",g=667):t==="\\lfloor"||t==="⌊"?(c=s="⎢",m="⎣",f="Size4-Regular",d="lfloor",g=667):t==="\\lceil"||t==="⌈"?(s="⎡",c=m="⎢",f="Size4-Regular",d="lceil",g=667):t==="\\rfloor"||t==="⌋"?(c=s="⎥",m="⎦",f="Size4-Regular",d="rfloor",g=667):t==="\\rceil"||t==="⌉"?(s="⎤",c=m="⎥",f="Size4-Regular",d="rceil",g=667):t==="("||t==="\\lparen"?(s="⎛",c="⎜",m="⎝",f="Size4-Regular",d="lparen",g=875):t===")"||t==="\\rparen"?(s="⎞",c="⎟",m="⎠",f="Size4-Regular",d="rparen",g=875):t==="\\{"||t==="\\lbrace"?(s="⎧",o="⎨",m="⎩",c="⎪",f="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="⎫",o="⎬",m="⎭",c="⎪",f="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(s="⎧",m="⎩",c="⎪",f="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(s="⎫",m="⎭",c="⎪",f="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(s="⎧",m="⎭",c="⎪",f="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(s="⎫",m="⎩",c="⎪",f="Size4-Regular");var x=fr(s,f,a),w=x.height+x.depth,N=fr(c,f,a),T=N.height+N.depth,z=fr(m,f,a),I=z.height+z.depth,B=0,P=1;if(o!==null){var M=fr(o,f,a);B=M.height+M.depth,P=2}var U=w+I+B,_=Math.max(0,Math.ceil((r-U)/(P*T))),F=U+_*P*T,X=i.fontMetrics().axisHeight;n&&(X*=i.sizeMultiplier);var G=F/2-X,$=[];if(d.length>0){var oe=F-w-I,se=Math.round(F*1e3),Z=Em(d,Math.round(oe*1e3)),de=new It(d,Z),D=(g/1e3).toFixed(3)+"em",ne=(se/1e3).toFixed(3)+"em",we=new kt([de],{width:D,height:ne,viewBox:"0 0 "+g+" "+se}),k=Dt([],[we],i);k.height=se/1e3,k.style.width=D,k.style.height=ne,$.push({type:"elem",elem:k})}else{if($.push(Jn(m,f,a)),$.push(Jr),o===null){var ke=F-w-I+2*D0;$.push(e0(c,ke,i))}else{var Re=(F-w-I-B)/2+2*D0;$.push(e0(c,Re,i)),$.push(Jr),$.push(Jn(o,f,a)),$.push(Jr),$.push(e0(c,Re,i))}$.push(Jr),$.push(Jn(s,f,a))}var A=i.havingBaseStyle(re.TEXT),Ee=he({positionType:"bottom",positionData:G,children:$});return ci(O(["delimsizing","mult"],[Ee],A),re.TEXT,i,l)},t0=80,r0=.08,n0=function(t,r,n,i,a){var l=Mm(t,i,n),s=new It(t,l),o=new kt([s],{width:"400em",height:H(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Dt(["hide-tail"],[o],a)},g2=function(t,r){var n=r.havingBaseSizing(),i=Fs("\\surd",t*n.sizeMultiplier,Ps,n),a=n.sizeMultiplier,l=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),s,o=0,c=0,m=0,d;return i.type==="small"?(m=1e3+1e3*l+t0,t<1?a=1:t<1.4&&(a=.7),o=(1+l+r0)/a,c=(1+l)/a,s=n0("sqrtMain",o,m,l,r),s.style.minWidth="0.853em",d=.833/a):i.type==="large"?(m=(1e3+t0)*xr[i.size],c=(xr[i.size]+l)/a,o=(xr[i.size]+l+r0)/a,s=n0("sqrtSize"+i.size,o,m,l,r),s.style.minWidth="1.02em",d=1/a):(o=t+l+r0,c=t+l,m=Math.floor(1e3*t+l)+t0,s=n0("sqrtTall",o,m,l,r),s.style.minWidth="0.742em",d=1.056),s.height=c,s.style.height=H(o),{span:s,advanceWidth:d,ruleWidth:(r.fontMetrics().sqrtRuleThickness+l)*a}},Ds=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),v2=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Bs=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),xr=[0,1.2,1.8,2.4,3],Rs=function(t,r,n,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Ds.has(t)||Bs.has(t))return Es(t,r,!1,n,i,a);if(v2.has(t))return Is(t,xr[r],!1,n,i,a);throw new L("Illegal delimiter: '"+t+"'")},y2=[{type:"small",style:re.SCRIPTSCRIPT},{type:"small",style:re.SCRIPT},{type:"small",style:re.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],x2=[{type:"small",style:re.SCRIPTSCRIPT},{type:"small",style:re.SCRIPT},{type:"small",style:re.TEXT},{type:"stack"}],Ps=[{type:"small",style:re.SCRIPTSCRIPT},{type:"small",style:re.SCRIPT},{type:"small",style:re.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],b2=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},Fs=function(t,r,n,i){for(var a=Math.min(2,3-i.style.size),l=a;l<n.length;l++){var s=n[l];if(s.type==="stack")break;var o=fr(t,b2(s),"math"),c=o.height+o.depth;if(s.type==="small"){var m=i.havingBaseStyle(s.style);c*=m.sizeMultiplier}if(c>r)return s}return n[n.length-1]},B0=function(t,r,n,i,a,l){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;Bs.has(t)?s=y2:Ds.has(t)?s=Ps:s=x2;var o=Fs(t,r,s,i);return o.type==="small"?m2(t,o.style,n,i,a,l):o.type==="large"?Es(t,o.size,n,i,a,l):Is(t,r,n,i,a,l)},i0=function(t,r,n,i,a,l){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,o=901,c=5/i.fontMetrics().ptPerEm,m=Math.max(r-s,n+s),d=Math.max(m/500*o,2*m-c);return B0(t,d,!0,i,a,l)},qa={"\\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}},w2=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function zn(e,t){var r=Cn(e);if(r&&w2.has(r.text))return r;throw r?new L("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new L("Invalid delimiter type '"+e.type+"'",e)}W({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 r=zn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:qa[e.funcName].size,mclass:qa[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?O([e.mclass]):Rs(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(tt(e.delim,e.mode));var r=new q("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=H(xr[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Ha(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}W({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new L("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:zn(t[0],e).text,color:r}}});W({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=zn(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=ae(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Ha(e);for(var r=Ne(e.body,t,!0,["mopen","mclose"]),n=0,i=0,a=!1,l=0;l<r.length;l++)r[l].isMiddle?a=!0:(n=Math.max(r[l].height,n),i=Math.max(r[l].depth,i));n*=t.sizeMultiplier,i*=t.sizeMultiplier;var s;if(e.left==="."?s=Ar(t,["mopen"]):s=i0(e.left,n,i,t,e.mode,["mopen"]),r.unshift(s),a)for(var o=1;o<r.length;o++){var c=r[o],m=c.isMiddle;m&&(r[o]=i0(m.delim,n,i,m.options,e.mode,[]))}var d;if(e.right===".")d=Ar(t,["mclose"]);else{var g=e.rightColor?t.withColor(e.rightColor):t;d=i0(e.right,n,i,g,e.mode,["mclose"])}return r.push(d),O(["minner"],r,t)},mathmlBuilder:(e,t)=>{Ha(e);var r=Ke(e.body,t);if(e.left!=="."){var n=new q("mo",[tt(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new q("mo",[tt(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return si(r)}});W({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=zn(t[0],e);if(!e.parser.leftrightDepth)throw new L("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Ar(t,[]);else{r=Rs(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?tt("|","text"):tt(e.delim,e.mode),n=new q("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var hi=(e,t)=>{var r=nr(ue(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,a,l=0,s=St(e.body);if(n==="sout")a=O(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,l=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var o=be({number:.6,unit:"pt"},t),c=be({number:.35,unit:"ex"},t),m=t.havingBaseSizing();i=i/m.sizeMultiplier;var d=r.height+r.depth+o+c;r.style.paddingLeft=H(d/2+o);var g=Math.floor(1e3*d*i),f=Tm(g),x=new kt([new It("phase",f)],{width:"400em",height:H(g/1e3),viewBox:"0 0 400000 "+g,preserveAspectRatio:"xMinYMin slice"});a=Dt(["hide-tail"],[x],t),a.style.height=H(d),l=r.depth+o+c}else{/cancel/.test(n)?s||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var w=0,N=0,T=0;/box/.test(n)?(T=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),w=t.fontMetrics().fboxsep+(n==="colorbox"?0:T),N=w):n==="angl"?(T=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),w=4*T,N=Math.max(0,.25-r.depth)):(w=s?.2:0,N=w),a=a2(r,n,w,N,t),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=H(T)):n==="angl"&&T!==.049&&(a.style.borderTopWidth=H(T),a.style.borderRightWidth=H(T)),l=r.depth+N,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var z;if(e.backgroundColor)z=he({positionType:"individualShift",children:[{type:"elem",elem:a,shift:l},{type:"elem",elem:r,shift:0}]});else{var I=/cancel|phase/.test(n)?["svg-align"]:[];z=he({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:l,wrapperClasses:I}]})}return/cancel/.test(n)&&(z.height=r.height,z.depth=r.depth),/cancel/.test(n)&&!s?O(["mord","cancel-lap"],[z],t):O(["mord"],[z],t)},mi=(e,t)=>{var r=0,n=new q(e.label.includes("colorbox")?"mpadded":"menclose",[pe(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};W({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=ae(t[0],"color-token").color,l=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:l}},htmlBuilder:hi,mathmlBuilder:mi});W({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=ae(t[0],"color-token").color,l=ae(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:l,borderColor:a,body:s}},htmlBuilder:hi,mathmlBuilder:mi});W({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});W({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:hi,mathmlBuilder:mi});W({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Os={};function dt(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:l}=e,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},o=0;o<r.length;++o)Os[r[o]]=s;a&&(cn[t]=a),l&&(hn[t]=l)}var Ls={};function v(e,t){Ls[e]=t}class qe{constructor(t,r,n){this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new qe(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class Ye{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new Ye(r,qe.range(this,t))}}function Va(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var Mn=e=>{var t=e.parser.settings;if(!t.displayMode)throw new L("{"+e.envName+"} can be used only in display mode.")},k2=new Set(["gather","gather*"]);function di(e){if(!e.includes("ed"))return!e.includes("*")}function Pt(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:l,colSeparationType:s,autoTag:o,singleRow:c,emptySingleRow:m,maxNumCols:d,leqno:g}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var f=e.gullet.expandMacroAsText("\\arraystretch");if(f==null)l=1;else if(l=parseFloat(f),!l||l<0)throw new L("Invalid \\arraystretch: "+f)}e.gullet.beginGroup();var x=[],w=[x],N=[],T=[],z=o!=null?[]:void 0;function I(){o&&e.gullet.macros.set("\\@eqnsw","1",!0)}function B(){z&&(e.gullet.macros.get("\\df@tag")?(z.push(e.subparse([new Ye("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):z.push(!!o&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(I(),T.push(Va(e));;){var P=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var M={type:"ordgroup",mode:e.mode,body:P};r&&(M={type:"styling",mode:e.mode,style:r,body:[M]}),x.push(M);var U=e.fetch().text;if(U==="&"){if(d&&x.length===d){if(c||s)throw new L("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(U==="\\end"){B(),x.length===1&&M.type==="styling"&&M.body.length===1&&M.body[0].type==="ordgroup"&&M.body[0].body.length===0&&(w.length>1||!m)&&w.pop(),T.length<w.length+1&&T.push([]);break}else if(U==="\\\\"){e.consume();var _=void 0;e.gullet.future().text!==" "&&(_=e.parseSizeGroup(!0)),N.push(_?_.value:null),B(),T.push(Va(e)),x=[],w.push(x),I()}else throw new L("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:l,body:w,cols:a,rowGaps:N,hskipBeforeAndAfter:n,hLinesBeforeRow:T,colSeparationType:s,tags:z,leqno:g}}function fi(e){return e.slice(0,1)==="d"?"display":"text"}var ft=function(t,r){var n,i,a=t.body.length,l=t.hLinesBeforeRow,s=0,o=new Array(a),c=[],m=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),d=1/r.fontMetrics().ptPerEm,g=5*d;if(t.colSeparationType&&t.colSeparationType==="small"){var f=r.havingStyle(re.SCRIPT).sizeMultiplier;g=.2778*(f/r.sizeMultiplier)}var x=t.colSeparationType==="CD"?be({number:3,unit:"ex"},r):12*d,w=3*d,N=t.arraystretch*x,T=.7*N,z=.3*N,I=0;function B(J){for(var le=0;le<J.length;++le)le>0&&(I+=.25),c.push({pos:I,isDashed:J[le]})}for(B(l[0]),n=0;n<t.body.length;++n){var P=t.body[n],M=T,U=z;s<P.length&&(s=P.length);var _=new Array(P.length);for(i=0;i<P.length;++i){var F=ue(P[i],r);U<F.depth&&(U=F.depth),M<F.height&&(M=F.height),_[i]=F}var X=t.rowGaps[n],G=0;X&&(G=be(X,r),G>0&&(G+=z,U<G&&(U=G),G=0)),t.addJot&&(U+=w),_.height=M,_.depth=U,I+=M,_.pos=I,I+=U+G,o[n]=_,B(l[n+1])}var $=I/2+r.fontMetrics().axisHeight,oe=t.cols||[],se=[],Z,de,D=[];if(t.tags&&t.tags.some(J=>J))for(n=0;n<a;++n){var ne=o[n],we=ne.pos-$,k=t.tags[n],ke=void 0;k===!0?ke=O(["eqn-num"],[],r):k===!1?ke=O([],[],r):ke=O([],Ne(k,r,!0),r),ke.depth=ne.depth,ke.height=ne.height,D.push({type:"elem",elem:ke,shift:we})}for(i=0,de=0;i<s||de<oe.length;++i,++de){for(var Re,A=oe[de],Ee=!0;((at=A)==null?void 0:at.type)==="separator";){var at;if(Ee||(Z=O(["arraycolsep"],[]),Z.style.width=H(r.fontMetrics().doubleRuleSep),se.push(Z)),A.separator==="|"||A.separator===":"){var Me=A.separator==="|"?"solid":"dashed",Qe=O(["vertical-separator"],[],r);Qe.style.height=H(I),Qe.style.borderRightWidth=H(m),Qe.style.borderRightStyle=Me,Qe.style.margin="0 "+H(-m/2);var rt=I-$;rt&&(Qe.style.verticalAlign=H(-rt)),se.push(Qe)}else throw new L("Invalid separator type: "+A.separator);de++,A=oe[de],Ee=!1}if(!(i>=s)){var Ue=void 0;if(i>0||t.hskipBeforeAndAfter){var gt,Ft;Ue=(gt=(Ft=A)==null?void 0:Ft.pregap)!=null?gt:g,Ue!==0&&(Z=O(["arraycolsep"],[]),Z.style.width=H(Ue),se.push(Z))}var Ir=[];for(n=0;n<a;++n){var Gt=o[n],_t=Gt[i];if(_t){var Dr=Gt.pos-$;_t.depth=Gt.depth,_t.height=Gt.height,Ir.push({type:"elem",elem:_t,shift:Dr})}}var Br=he({positionType:"individualShift",children:Ir}),Rr=O(["col-align-"+(((Re=A)==null?void 0:Re.align)||"c")],[Br]);if(se.push(Rr),i<s-1||t.hskipBeforeAndAfter){var Pr,or;Ue=(Pr=(or=A)==null?void 0:or.postgap)!=null?Pr:g,Ue!==0&&(Z=O(["arraycolsep"],[]),Z.style.width=H(Ue),se.push(Z))}}}var Ot=O(["mtable"],se);if(c.length>0){for(var Bn=rr("hline",r,m),Rn=rr("hdashline",r,m),ur=[{type:"elem",elem:Ot,shift:0}];c.length>0;){var Fr=c.pop(),Or=Fr.pos-$;Fr.isDashed?ur.push({type:"elem",elem:Rn,shift:Or}):ur.push({type:"elem",elem:Bn,shift:Or})}Ot=he({positionType:"individualShift",children:ur})}if(D.length===0)return O(["mord"],[Ot],r);var E=he({positionType:"individualShift",children:D}),V=O(["tag"],[E],r);return Ct([Ot,V])},S2={c:"center ",l:"left ",r:"right "},pt=function(t,r){for(var n=[],i=new q("mtd",[],["mtr-glue"]),a=new q("mtd",[],["mml-eqn-num"]),l=0;l<t.body.length;l++){for(var s=t.body[l],o=[],c=0;c<s.length;c++)o.push(new q("mtd",[pe(s[c],r)]));t.tags&&t.tags[l]&&(o.unshift(i),o.push(i),t.leqno?o.unshift(a):o.push(a)),n.push(new q("mtr",o))}var m=new q("mtable",n),d=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);m.setAttribute("rowspacing",H(d));var g="",f="";if(t.cols&&t.cols.length>0){var x=t.cols,w="",N=!1,T=0,z=x.length;x[0].type==="separator"&&(g+="top ",T=1),x[x.length-1].type==="separator"&&(g+="bottom ",z-=1);for(var I=T;I<z;I++){var B=x[I];B.type==="align"?(f+=S2[B.align],N&&(w+="none "),N=!0):B.type==="separator"&&N&&(w+=B.separator==="|"?"solid ":"dashed ",N=!1)}m.setAttribute("columnalign",f.trim()),/[sd]/.test(w)&&m.setAttribute("columnlines",w.trim())}if(t.colSeparationType==="align"){for(var P=t.cols||[],M="",U=1;U<P.length;U++)M+=U%2?"0em ":"1em ";m.setAttribute("columnspacing",M.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?m.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?m.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?m.setAttribute("columnspacing","0.5em"):m.setAttribute("columnspacing","1em");var _="",F=t.hLinesBeforeRow;g+=F[0].length>0?"left ":"",g+=F[F.length-1].length>0?"right ":"";for(var X=1;X<F.length-1;X++)_+=F[X].length===0?"none ":F[X][0]?"dashed ":"solid ";return/[sd]/.test(_)&&m.setAttribute("rowlines",_.trim()),g!==""&&(m=new q("menclose",[m]),m.setAttribute("notation",g.trim())),t.arraystretch&&t.arraystretch<1&&(m=new q("mstyle",[m]),m.setAttribute("scriptlevel","1")),m},js=function(t,r){t.envName.includes("ed")||Mn(t);var n=[],i=t.envName.includes("at")?"alignat":"align",a=t.envName==="split",l=Pt(t.parser,{cols:n,addJot:!0,autoTag:a?void 0:di(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),s=0,o=0,c={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var m="",d=0;d<r[0].body.length;d++){var g=ae(r[0].body[d],"textord");m+=g.text}s=Number(m),o=s*2}var f=!o;l.body.forEach(function(T){for(var z=1;z<T.length;z+=2){var I=ae(T[z],"styling"),B=ae(I.body[0],"ordgroup");B.body.unshift(c)}if(f)o<T.length&&(o=T.length);else{var P=T.length/2;if(s<P)throw new L("Too many math in a row: "+("expected "+s+", but got "+P),T[0])}});for(var x=0;x<o;++x){var w="r",N=0;x%2===1?w="l":x>0&&f&&(N=1),n[x]={type:"align",align:w,pregap:N,postgap:0}}return l.colSeparationType=f?"align":"alignat",l};dt({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Cn(t[0]),n=r?[t[0]]:ae(t[0],"ordgroup").body,i=n.map(function(l){var s=An(l),o=s.text;if("lcr".includes(o))return{type:"align",align:o};if(o==="|")return{type:"separator",separator:"|"};if(o===":")return{type:"separator",separator:":"};throw new L("Unknown column alignment: "+o,l)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Pt(e.parser,a,fi(e.envName))},htmlBuilder:ft,mathmlBuilder:pt});dt({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("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new L("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=Pt(e.parser,n,fi(e.envName)),l=Math.max(0,...a.body.map(s=>s.length));return a.cols=new Array(l).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:ft,mathmlBuilder:pt});dt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Pt(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:ft,mathmlBuilder:pt});dt({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Cn(t[0]),n=r?[t[0]]:ae(t[0],"ordgroup").body,i=n.map(function(s){var o=An(s),c=o.text;if("lc".includes(c))return{type:"align",align:c};throw new L("Unknown column alignment: "+c,s)});if(i.length>1)throw new L("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},l=Pt(e.parser,a,"script");if(l.body.length>0&&l.body[0].length>1)throw new L("{subarray} can contain only one column");return l},htmlBuilder:ft,mathmlBuilder:pt});dt({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}]},r=Pt(e.parser,t,fi(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:ft,mathmlBuilder:pt});dt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:js,htmlBuilder:ft,mathmlBuilder:pt});dt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){k2.has(e.envName)&&Mn(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:di(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Pt(e.parser,t,"display")},htmlBuilder:ft,mathmlBuilder:pt});dt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:js,htmlBuilder:ft,mathmlBuilder:pt});dt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Mn(e);var t={autoTag:di(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Pt(e.parser,t,"display")},htmlBuilder:ft,mathmlBuilder:pt});dt({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Mn(e),c2(e.parser)},htmlBuilder:ft,mathmlBuilder:pt});v("\\nonumber","\\gdef\\@eqnsw{0}");v("\\notag","\\nonumber");W({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new L(e.funcName+" valid only within array environment")}});var Ua=Os;W({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new L("Invalid environment name",i);for(var a="",l=0;l<i.body.length;++l)a+=ae(i.body[l],"textord").text;if(n==="\\begin"){if(!Ua.hasOwnProperty(a))throw new L("No such environment: "+a,i);var s=Ua[a],{args:o,optArgs:c}=r.parseArguments("\\begin{"+a+"}",s),m={mode:r.mode,envName:a,parser:r},d=s.handler(m,o,c);r.expect("\\end",!1);var g=r.nextToken,f=ae(r.parseFunction(),"environment");if(f.name!==a)throw new L("Mismatch: \\begin{"+a+"} matched by \\end{"+f.name+"}",g);return d}return{type:"environment",mode:r.mode,name:a,nameGroup:i}}});var qs=(e,t)=>{var r=e.font,n=t.withFont(r);return ue(e.body,n)},Hs=(e,t)=>{var r=e.font,n=t.withFont(r);return pe(e.body,n)},$a={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};W({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:r,funcName:n}=e,i=mn(t[0]),a=n;return a in $a&&(a=$a[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:qs,mathmlBuilder:Hs});W({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:Tn(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:St(n)}}});W({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,l=r.parseExpression(!0,i),s="math"+n.slice(1);return{type:"font",mode:a,font:s,body:{type:"ordgroup",mode:r.mode,body:l}}},htmlBuilder:qs,mathmlBuilder:Hs});var A2=(e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),a;a=t.havingStyle(n);var l=ue(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,o=3.5/t.fontMetrics().ptPerEm;l.height=l.height<s?s:l.height,l.depth=l.depth<o?o:l.depth}a=t.havingStyle(i);var c=ue(e.denom,a,t),m,d,g;e.hasBarLine?(e.barSize?(d=be(e.barSize,t),m=rr("frac-line",t,d)):m=rr("frac-line",t),d=m.height,g=m.height):(m=null,d=0,g=t.fontMetrics().defaultRuleThickness);var f,x,w;r.size===re.DISPLAY.size?(f=t.fontMetrics().num1,d>0?x=3*g:x=7*g,w=t.fontMetrics().denom1):(d>0?(f=t.fontMetrics().num2,x=g):(f=t.fontMetrics().num3,x=3*g),w=t.fontMetrics().denom2);var N;if(m){var z=t.fontMetrics().axisHeight;f-l.depth-(z+.5*d)<x&&(f+=x-(f-l.depth-(z+.5*d))),z-.5*d-(c.height-w)<x&&(w+=x-(z-.5*d-(c.height-w)));var I=-(z-.5*d);N=he({positionType:"individualShift",children:[{type:"elem",elem:c,shift:w},{type:"elem",elem:m,shift:I},{type:"elem",elem:l,shift:-f}]})}else{var T=f-l.depth-(c.height-w);T<x&&(f+=.5*(x-T),w+=.5*(x-T)),N=he({positionType:"individualShift",children:[{type:"elem",elem:c,shift:w},{type:"elem",elem:l,shift:-f}]})}a=t.havingStyle(r),N.height*=a.sizeMultiplier/t.sizeMultiplier,N.depth*=a.sizeMultiplier/t.sizeMultiplier;var B;r.size===re.DISPLAY.size?B=t.fontMetrics().delim1:r.size===re.SCRIPTSCRIPT.size?B=t.havingStyle(re.SCRIPT).fontMetrics().delim2:B=t.fontMetrics().delim2;var P,M;return e.leftDelim==null?P=Ar(t,["mopen"]):P=B0(e.leftDelim,B,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?M=O([]):e.rightDelim==null?M=Ar(t,["mclose"]):M=B0(e.rightDelim,B,!0,t.havingStyle(r),e.mode,["mclose"]),O(["mord"].concat(a.sizingClasses(t)),[P,O(["mfrac"],[N]),M],t)},C2=(e,t)=>{var r=new q("mfrac",[pe(e.numer,t),pe(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=be(e.barSize,t);r.setAttribute("linethickness",H(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new q("mo",[new Te(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),e.rightDelim!=null){var l=new q("mo",[new Te(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),i.push(l)}return si(i)}return r},Vs=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};W({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1],l,s=null,o=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,s="(",o=")";break;case"\\\\bracefrac":l=!1,s="\\{",o="\\}";break;case"\\\\brackfrac":l=!1,s="[",o="]";break;default:throw new Error("Unrecognized genfrac command")}var c=n==="\\cfrac",m=null;return c||n.startsWith("\\d")?m="display":n.startsWith("\\t")&&(m="text"),Vs({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:c,hasBarLine:l,leftDelim:s,rightDelim:o,barSize:null},m)},htmlBuilder:A2,mathmlBuilder:C2});W({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var Ga=["display","text","script","scriptscript"],_a=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};W({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],a=mn(t[0]),l=a.type==="atom"&&a.family==="open"?_a(a.text):null,s=mn(t[1]),o=s.type==="atom"&&s.family==="close"?_a(s.text):null,c=ae(t[2],"size"),m,d=null;c.isBlank?m=!0:(d=c.value,m=d.number>0);var g=null,f=t[3];if(f.type==="ordgroup"){if(f.body.length>0){var x=ae(f.body[0],"textord");g=Ga[Number(x.text)]}}else f=ae(f,"textord"),g=Ga[Number(f.text)];return Vs({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:m,barSize:d,leftDelim:l,rightDelim:o},g)}});W({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:ae(t[0],"size").value,token:i}}});W({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=ae(t[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var l=t[2],s=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:l,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var Us=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?ue(e.sup,t.havingStyle(r.sup()),t):ue(e.sub,t.havingStyle(r.sub()),t),i=ae(e.base,"horizBrace")):i=ae(e,"horizBrace");var a=ue(i.base,t.havingBaseStyle(re.DISPLAY)),l=Sn(i,t),s;if(i.isOver?(s=he({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:l}]}),s.children[0].children[0].children[1].classes.push("svg-align")):(s=he({positionType:"bottom",positionData:a.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:a}]}),s.children[0].children[0].children[0].classes.push("svg-align")),n){var o=O(["mord",i.isOver?"mover":"munder"],[s],t);i.isOver?s=he({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.2},{type:"elem",elem:n}]}):s=he({positionType:"bottom",positionData:o.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:o}]})}return O(["mord",i.isOver?"mover":"munder"],[s],t)},T2=(e,t)=>{var r=kn(e.label);return new q(e.isOver?"mover":"munder",[pe(e.base,t),r])};W({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:Us,mathmlBuilder:T2});W({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=ae(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:Ce(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Ne(e.body,t,!1);return Um(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Bt(e.body,t);return r instanceof q||(r=new q("mrow",[r])),r.setAttribute("href",e.href),r}});W({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=ae(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<n.length;a++){var l=n[a];l==="~"&&(l="\\textasciitilde"),i.push({type:"textord",mode:"text",text:l})}var s={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:Ce(s)}}});W({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Ce(t[0])}},htmlBuilder(e,t){var r=Ne(e.body,t,!1);return Ct(r)},mathmlBuilder(e,t){return new q("mrow",Ke(e.body,t))}});W({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:i}=e,a=ae(t[0],"raw").string,l=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,o={};switch(n){case"\\htmlClass":o.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":o.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":o.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c=a.split(","),m=0;m<c.length;m++){var d=c[m],g=d.indexOf("=");if(g<0)throw new L("\\htmlData key/value '"+d+"' missing equals sign");var f=d.slice(0,g),x=d.slice(g+1);o["data-"+f.trim()]=x}s={command:"\\htmlData",attributes:o};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(s)?{type:"html",mode:r.mode,attributes:o,body:Ce(l)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=Ne(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=O(n,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Bt(e.body,t)});W({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Ce(t[0]),mathml:Ce(t[1])}},htmlBuilder:(e,t)=>{var r=Ne(e.html,t,!1);return Ct(r)},mathmlBuilder:(e,t)=>Bt(e.mathml,t)});var a0=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new L("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!ss(n))throw new L("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};W({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},l={number:0,unit:"em"},s="";if(r[0])for(var o=ae(r[0],"raw").string,c=o.split(","),m=0;m<c.length;m++){var d=c[m].split("=");if(d.length===2){var g=d[1].trim();switch(d[0].trim()){case"alt":s=g;break;case"width":i=a0(g);break;case"height":a=a0(g);break;case"totalheight":l=a0(g);break;default:throw new L("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var f=ae(t[0],"url").url;return s===""&&(s=f,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:f})?{type:"includegraphics",mode:n.mode,alt:s,width:i,height:a,totalheight:l,src:f}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=be(e.height,t),n=0;e.totalheight.number>0&&(n=be(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=be(e.width,t));var a={height:H(r+n)};i>0&&(a.width=H(i)),n>0&&(a.verticalAlign=H(-n));var l=new Bm(e.src,e.alt,a);return l.height=r,l.depth=n,l},mathmlBuilder:(e,t)=>{var r=new q("mglyph",[]);r.setAttribute("alt",e.alt);var n=be(e.height,t),i=0;if(e.totalheight.number>0&&(i=be(e.totalheight,t)-n,r.setAttribute("valign",H(-i))),r.setAttribute("height",H(n+i)),e.width.number>0){var a=be(e.width,t);r.setAttribute("width",H(a))}return r.setAttribute("src",e.src),r}});W({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=ae(t[0],"size");if(r.settings.strict){var a=n[1]==="m",l=i.value.unit==="mu";a?(l||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):l&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return ds(e.dimension,t)},mathmlBuilder(e,t){var r=be(e.dimension,t);return new xs(r)}});W({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=O([],[ue(e.body,t)]),r=O(["inner"],[r],t)):r=O(["inner"],[ue(e.body,t)]);var n=O(["fix"],[]),i=O([e.alignment],[r,n],t),a=O(["strut"]);return a.style.height=H(i.height+i.depth),i.depth&&(a.style.verticalAlign=H(-i.depth)),i.children.unshift(a),i=O(["thinbox"],[i],t),O(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new q("mpadded",[pe(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});W({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",l=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:l}}});W({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new L("Mismatched "+e.funcName)}});var Wa=(e,t)=>{switch(t.style.size){case re.DISPLAY.size:return e.display;case re.TEXT.size:return e.text;case re.SCRIPT.size:return e.script;case re.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};W({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Ce(t[0]),text:Ce(t[1]),script:Ce(t[2]),scriptscript:Ce(t[3])}},htmlBuilder:(e,t)=>{var r=Wa(e,t),n=Ne(r,t,!1);return Ct(n)},mathmlBuilder:(e,t)=>{var r=Wa(e,t);return Bt(r,t)}});var $s=(e,t,r,n,i,a,l)=>{e=O([],[e]);var s=r&&St(r),o,c;if(t){var m=ue(t,n.havingStyle(i.sup()),n);c={elem:m,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-m.depth)}}if(r){var d=ue(r,n.havingStyle(i.sub()),n);o={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-d.height)}}var g;if(c&&o){var f=n.fontMetrics().bigOpSpacing5+o.elem.height+o.elem.depth+o.kern+e.depth+l;g=he({positionType:"bottom",positionData:f,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:H(-a)},{type:"kern",size:o.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:H(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(o){var x=e.height-l;g=he({positionType:"top",positionData:x,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:H(-a)},{type:"kern",size:o.kern},{type:"elem",elem:e}]})}else if(c){var w=e.depth+l;g=he({positionType:"bottom",positionData:w,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:H(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var N=[g];if(o&&a!==0&&!s){var T=O(["mspace"],[],n);T.style.marginRight=H(a),N.unshift(T)}return O(["mop","op-limits"],N,n)},Gs=new Set(["\\smallint"]),sr=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=ae(e.base,"op"),i=!0):a=ae(e,"op");var l=t.style,s=!1;l.size===re.DISPLAY.size&&a.symbol&&!Gs.has(a.name)&&(s=!0);var o;if(a.symbol){var c=s?"Size2-Regular":"Size1-Regular",m="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(m=a.name.slice(1),a.name=m==="oiint"?"\\iint":"\\iiint"),o=Fe(a.name,c,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),m.length>0){var d=o.italic,g=ps(m+"Size"+(s?"2":"1"),t);o=he({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:g,shift:s?.08:0}]}),a.name="\\"+m,o.classes.unshift("mop"),o.italic=d}}else if(a.body){var f=Ne(a.body,t,!0);f.length===1&&f[0]instanceof et?(o=f[0],o.classes[0]="mop"):o=O(["mop"],f,t)}else{for(var x=[],w=1;w<a.name.length;w++)x.push(ai(a.name[w],a.mode,t));o=O(["mop"],x,t)}var N=0,T=0;return(o instanceof et||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(N=(o.height-o.depth)/2-t.fontMetrics().axisHeight,T=o.italic||0),i?$s(o,r,n,t,l,T,N):(N&&(o.style.position="relative",o.style.top=H(N)),o)},Er=(e,t)=>{var r;if(e.symbol)r=new q("mo",[tt(e.name,e.mode)]),Gs.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new q("mo",Ke(e.body,t));else{r=new q("mi",[new Te(e.name.slice(1))]);var n=new q("mo",[tt("⁡","text")]);e.parentIsSupSub?r=new q("mrow",[r,n]):r=ys([r,n])}return r},z2={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};W({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:r,funcName:n}=e,i=n;return i.length===1&&(i=z2[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:sr,mathmlBuilder:Er});W({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ce(n)}},htmlBuilder:sr,mathmlBuilder:Er});var M2={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};W({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:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:sr,mathmlBuilder:Er});W({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:sr,mathmlBuilder:Er});W({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=M2[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:sr,mathmlBuilder:Er});var _s=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=ae(e.base,"operatorname"),i=!0):a=ae(e,"operatorname");var l;if(a.body.length>0){for(var s=a.body.map(d=>{var g="text"in d?d.text:void 0;return typeof g=="string"?{type:"textord",mode:d.mode,text:g}:d}),o=Ne(s,t.withFont("mathrm"),!0),c=0;c<o.length;c++){var m=o[c];m instanceof et&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}l=O(["mop"],o,t)}else l=O(["mop"],[],t);return i?$s(l,r,n,t,t.style,0,0):l},N2=(e,t)=>{for(var r=Ke(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var a=r[i];if(!(a instanceof xs))if(a instanceof q)switch(a.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var l=a.children[0];a.children.length===1&&l instanceof Te?l.text=l.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var s=r.map(m=>m.toText()).join("");r=[new Te(s)]}var o=new q("mi",r);o.setAttribute("mathvariant","normal");var c=new q("mo",[tt("⁡","text")]);return e.parentIsSupSub?new q("mrow",[o,c]):ys([o,c])};W({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:Ce(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:_s,mathmlBuilder:N2});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Ut({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Ct(Ne(e.body,t,!1)):O(["mord"],Ne(e.body,t,!0),t)},mathmlBuilder(e,t){return Bt(e.body,t,!0)}});W({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=ue(e.body,t.havingCrampedStyle()),n=rr("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=he({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return O(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new q("mo",[new Te("‾")]);r.setAttribute("stretchy","true");var n=new q("mover",[pe(e.body,t),r]);return n.setAttribute("accent","true"),n}});W({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:Ce(n)}},htmlBuilder:(e,t)=>{var r=Ne(e.body,t.withPhantom(),!1);return Ct(r)},mathmlBuilder:(e,t)=>{var r=Ke(e.body,t);return new q("mphantom",r)}});v("\\hphantom","\\smash{\\phantom{#1}}");W({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=O(["inner"],[ue(e.body,t.withPhantom())]),n=O(["fix"],[]);return O(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Ke(Ce(e.body),t),n=new q("mphantom",r),i=new q("mpadded",[n]);return i.setAttribute("width","0px"),i}});W({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=ae(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=ue(e.body,t),n=be(e.dy,t);return he({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new q("mpadded",[pe(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});W({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});W({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=ae(t[0],"size"),l=ae(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&ae(i,"size").value,width:a.value,height:l.value}},htmlBuilder(e,t){var r=O(["mord","rule"],[],t),n=be(e.width,t),i=be(e.height,t),a=e.shift?be(e.shift,t):0;return r.style.borderRightWidth=H(n),r.style.borderTopWidth=H(i),r.style.bottom=H(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=be(e.width,t),n=be(e.height,t),i=e.shift?be(e.shift,t):0,a=t.color&&t.getColor()||"black",l=new q("mspace");l.setAttribute("mathbackground",a),l.setAttribute("width",H(r)),l.setAttribute("height",H(n));var s=new q("mpadded",[l]);return i>=0?s.setAttribute("height",H(i)):(s.setAttribute("height",H(i)),s.setAttribute("depth",H(-i))),s.setAttribute("voffset",H(i)),s}});function Ws(e,t,r){for(var n=Ne(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,a=0;a<n.length;a++){var l=n[a].classes.indexOf("sizing");l<0?Array.prototype.push.apply(n[a].classes,t.sizingClasses(r)):n[a].classes[l+1]==="reset-size"+t.size&&(n[a].classes[l+1]="reset-size"+r.size),n[a].height*=i,n[a].depth*=i}return Ct(n)}var Ya=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],E2=(e,t)=>{var r=t.havingSize(e.size);return Ws(e.body,r,t)};W({type:"sizing",names:Ya,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:Ya.indexOf(n)+1,body:a}},htmlBuilder:E2,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Ke(e.body,r),i=new q("mstyle",n);return i.setAttribute("mathsize",H(r.sizeMultiplier)),i}});W({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,a=!1,l=r[0]&&ae(r[0],"ordgroup");if(l)for(var s="",o=0;o<l.body.length;++o){var c=l.body[o];if(s=An(c).text,s==="t")i=!0;else if(s==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var m=t[0];return{type:"smash",mode:n.mode,body:m,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var r=O([],[ue(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return O(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var i=he({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return O(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new q("mpadded",[pe(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});W({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=ue(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=nr(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,a=i;t.style.id<re.TEXT.id&&(a=t.fontMetrics().xHeight);var l=i+a/4,s=r.height+r.depth+l+i,{span:o,ruleWidth:c,advanceWidth:m}=g2(s,t),d=o.height-c;d>r.height+r.depth+l&&(l=(l+d-r.height-r.depth)/2);var g=o.height-r.height-l-c;r.style.paddingLeft=H(m);var f=he({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+g)},{type:"elem",elem:o},{type:"kern",size:c}]});if(e.index){var x=t.havingStyle(re.SCRIPTSCRIPT),w=ue(e.index,x,t),N=.6*(f.height-f.depth),T=he({positionType:"shift",positionData:-N,children:[{type:"elem",elem:w}]}),z=O(["root"],[T]);return O(["mord","sqrt"],[z,f],t)}else return O(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new q("mroot",[pe(r,t),pe(n,t)]):new q("msqrt",[pe(r,t)])}});var Xa={display:re.DISPLAY,text:re.TEXT,script:re.SCRIPT,scriptscript:re.SCRIPTSCRIPT};W({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),l=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:l,body:a}},htmlBuilder(e,t){var r=Xa[e.style],n=t.havingStyle(r).withFont("");return Ws(e.body,n,t)},mathmlBuilder(e,t){var r=Xa[e.style],n=t.havingStyle(r),i=Ke(e.body,n),a=new q("mstyle",i),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=l[e.style];return a.setAttribute("scriptlevel",s[0]),a.setAttribute("displaystyle",s[1]),a}});var I2=function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===re.DISPLAY.size||n.alwaysHandleSupSub);return i?sr:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===re.DISPLAY.size||n.limits);return a?_s:null}else{if(n.type==="accent")return St(n.base)?ui:null;if(n.type==="horizBrace"){var l=!t.sub;return l===n.isOver?Us:null}else return null}else return null};Ut({type:"supsub",htmlBuilder(e,t){var r=I2(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:a}=e,l=ue(n,t),s,o,c=t.fontMetrics(),m=0,d=0,g=n&&St(n);if(i){var f=t.havingStyle(t.style.sup());s=ue(i,f,t),g||(m=l.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(a){var x=t.havingStyle(t.style.sub());o=ue(a,x,t),g||(d=l.depth+x.fontMetrics().subDrop*x.sizeMultiplier/t.sizeMultiplier)}var w;t.style===re.DISPLAY?w=c.sup1:t.style.cramped?w=c.sup3:w=c.sup2;var N=t.sizeMultiplier,T=H(.5/c.ptPerEm/N),z=null;if(o){var I=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(l instanceof et||I)&&(z=H(-l.italic))}var B;if(s&&o){m=Math.max(m,w,s.depth+.25*c.xHeight),d=Math.max(d,c.sub2);var P=c.defaultRuleThickness,M=4*P;if(m-s.depth-(o.height-d)<M){d=M-(m-s.depth)+o.height;var U=.8*c.xHeight-(m-s.depth);U>0&&(m+=U,d-=U)}var _=[{type:"elem",elem:o,shift:d,marginRight:T,marginLeft:z},{type:"elem",elem:s,shift:-m,marginRight:T}];B=he({positionType:"individualShift",children:_})}else if(o){d=Math.max(d,c.sub1,o.height-.8*c.xHeight);var F=[{type:"elem",elem:o,marginLeft:z,marginRight:T}];B=he({positionType:"shift",positionData:d,children:F})}else if(s)m=Math.max(m,w,s.depth+.25*c.xHeight),B=he({positionType:"shift",positionData:-m,children:[{type:"elem",elem:s,marginRight:T}]});else throw new Error("supsub must have either sup or sub.");var X=N0(l,"right")||"mord";return O([X],[l,O(["msupsub"],[B])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[pe(e.base,t)];e.sub&&a.push(pe(e.sub,t)),e.sup&&a.push(pe(e.sup,t));var l;if(r)l=n?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===re.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===re.DISPLAY||c.limits)?l="munderover":l="msubsup"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===re.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===re.DISPLAY)?l="munder":l="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===re.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===re.DISPLAY)?l="mover":l="msup"}return new q(l,a)}});Ut({type:"atom",htmlBuilder(e,t){return ai(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new q("mo",[tt(e.text,e.mode)]);if(e.family==="bin"){var n=oi(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var Ys={mi:"italic",mn:"normal",mtext:"normal"};Ut({type:"mathord",htmlBuilder(e,t){return wn(e,t,"mathord")},mathmlBuilder(e,t){var r=new q("mi",[tt(e.text,e.mode,t)]),n=oi(e,t)||"italic";return n!==Ys[r.type]&&r.setAttribute("mathvariant",n),r}});Ut({type:"textord",htmlBuilder(e,t){return wn(e,t,"textord")},mathmlBuilder(e,t){var r=tt(e.text,e.mode,t),n=oi(e,t)||"normal",i;return e.mode==="text"?i=new q("mtext",[r]):/[0-9]/.test(e.text)?i=new q("mn",[r]):e.text==="\\prime"?i=new q("mo",[r]):i=new q("mi",[r]),n!==Ys[i.type]&&i.setAttribute("mathvariant",n),i}});var l0={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},s0={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ut({type:"spacing",htmlBuilder(e,t){if(s0.hasOwnProperty(e.text)){var r=s0[e.text].className||"";if(e.mode==="text"){var n=wn(e,t,"textord");return n.classes.push(r),n}else return O(["mspace",r],[ai(e.text,e.mode,t)],t)}else{if(l0.hasOwnProperty(e.text))return O(["mspace",l0[e.text]],[],t);throw new L('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(s0.hasOwnProperty(e.text))r=new q("mtext",[new Te(" ")]);else{if(l0.hasOwnProperty(e.text))return new q("mspace");throw new L('Unknown type of space "'+e.text+'"')}return r}});var Ka=()=>{var e=new q("mtd",[]);return e.setAttribute("width","50%"),e};Ut({type:"tag",mathmlBuilder(e,t){var r=new q("mtable",[new q("mtr",[Ka(),new q("mtd",[Bt(e.body,t)]),Ka(),new q("mtd",[Bt(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Qa={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Za={"\\textbf":"textbf","\\textmd":"textmd"},D2={"\\textit":"textit","\\textup":"textup"},Ja=(e,t)=>{var r=e.font;if(r){if(Qa[r])return t.withTextFontFamily(Qa[r]);if(Za[r])return t.withTextFontWeight(Za[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(D2[r])};W({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:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:Ce(i),font:n}},htmlBuilder(e,t){var r=Ja(e,t),n=Ne(e.body,r,!0);return O(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Ja(e,t);return Bt(e.body,r)}});W({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=ue(e.body,t),n=rr("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=he({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return O(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new q("mo",[new Te("‾")]);r.setAttribute("stretchy","true");var n=new q("munder",[pe(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});W({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=ue(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return he({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){return new q("mpadded",[pe(e.body,t)],["vcenter"])}});W({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new L("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=el(e),n=[],i=t.havingStyle(t.style.text()),a=0;a<r.length;a++){var l=r[a];l==="~"&&(l="\\textasciitilde"),n.push(Fe(l,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return O(["mord","text"].concat(i.sizingClasses(t)),ms(n),i)},mathmlBuilder(e,t){var r=new Te(el(e)),n=new q("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var el=e=>e.body.replace(/ /g,e.star?"␣":" "),Nt=gs,Xs=`[ \r
	]`,B2="\\\\[a-zA-Z@]+",R2="\\\\[^\uD800-\uDFFF]",P2="("+B2+")"+Xs+"*",F2=`\\\\(
|[ \r	]+
?)[ \r	]*`,R0="[̀-ͯ]",O2=new RegExp(R0+"+$"),L2="("+Xs+"+)|"+(F2+"|")+"([!-\\[\\]-‧‪-퟿豈-]"+(R0+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(R0+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+P2)+("|"+R2+")");class tl{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(L2,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Ye("EOF",new qe(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new L("Unexpected character: '"+t[r]+"'",new Ye(t[r],new qe(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(`
`,this.tokenRegex.lastIndex);return a===-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=a+1,this.lex()}return new Ye(i,new qe(this,r,this.tokenRegex.lastIndex))}}class j2{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new L("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}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,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var q2=Ls;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 r=e.future();return t[0].length===1&&t[0][0].text===r.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 rl={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(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new L("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=rl[t.text],n==null||n>=r)throw new L("Invalid base-"+r+" digit "+t.text);for(var i;(i=rl[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var pi=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new L("\\newcommand's first argument must be a macro name");var a=i[0].text,l=e.isDefined(a);if(l&&!t)throw new L("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!l&&!r)throw new L("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var o="",c=e.expandNextToken();c.text!=="]"&&c.text!=="EOF";)o+=c.text,c=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new L("Invalid number of arguments: "+o);s=parseInt(o),i=e.consumeArg().tokens}return l&&n||e.macros.set(a,{tokens:i,numArgs:s}),""};v("\\newcommand",e=>pi(e,!1,!0,!1));v("\\renewcommand",e=>pi(e,!0,!1,!1));v("\\providecommand",e=>pi(e,!0,!0,!0));v("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});v("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});v("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Nt[r],ve.math[r],ve.text[r]),""});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}\\nobreak}{\\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("\\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 nl={",":"\\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"},H2=new Set(["bin","rel"]);v("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in nl?t=nl[r]:(r.slice(0,4)==="\\not"||r in ve.math&&H2.has(ve.math[r].group))&&(t="\\dotsb"),t});var gi={")":!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 gi?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(e){var t=e.future().text;return t in gi&&t!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(e){var t=e.future().text;return t in gi?"\\@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 L("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 Ks=H(ct["Main-Regular"][84][1]-.7*ct["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ks+"}{\\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 Qs=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,l=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var o=d=>g=>{e&&(g.macros.set("|",l),i.length&&g.macros.set("\\|",s));var f=d;if(!d&&i.length){var x=g.future();x.text==="|"&&(g.popToken(),f=!0)}return{tokens:f?i:n,numArgs:0}};t.macros.set("|",o(!1)),i.length&&t.macros.set("\\|",o(!0));var c=t.consumeArg().tokens,m=t.expandTokens([...a,...c,...r]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};v("\\bra@ket",Qs(!1));v("\\bra@set",Qs(!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 Zs={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class V2{constructor(t,r,n){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new j2(q2,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new tl(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 r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Ye("EOF",n.loc)),this.pushTokens(i),new Ye("",qe.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),a,l=0,s=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++l;else if(a.text==="}"){if(--l,l===-1)throw new L("Extra }",a)}else if(a.text==="EOF")throw new L("Unexpected end of input in a macro argument, expected '"+(t&&n?t[s]:"}")+"'",a);if(t&&n)if((l===0||l===1&&t[s]==="{")&&a.text===t[s]){if(++s,s===t.length){r.splice(-s,s);break}}else s=0}while(l!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new L("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var a=this.popToken();if(n[i]!==a.text)throw new L("Use of the macro doesn't match its definition",a)}}for(var l=[],s=0;s<t;s++)l.push(this.consumeArg(r&&r[s+1]).tokens);return l}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new L("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new L("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,l=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var o=a[s];if(o.text==="#"){if(s===0)throw new L("Incomplete placeholder at end of macro body",o);if(o=a[--s],o.text==="#")a.splice(s+1,1);else if(/^[1-9]$/.test(o.text))a.splice(s,2,...l[+o.text-1]);else throw new L("Not a valid argument number",o)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Ye(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var l=i.replace(/##/g,"");l.includes("#"+(a+1));)++a;for(var s=new tl(i,this.settings),o=[],c=s.lex();c.text!=="EOF";)o.push(c),c=s.lex();o.reverse();var m={tokens:o,numArgs:a};return m}return i}isDefined(t){return this.macros.has(t)||Nt.hasOwnProperty(t)||ve.math.hasOwnProperty(t)||ve.text.hasOwnProperty(t)||Zs.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Nt.hasOwnProperty(t)&&!Nt[t].primitive}}var il=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,en=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),o0={"́":{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"}},al={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Nn{constructor(t,r){this.mode="math",this.gullet=new V2(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new L("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&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 r=this.nextToken;this.consume(),this.gullet.pushToken(new Ye("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Nn.endOfExpression.has(i.text)||r&&i.text===r||t&&Nt[i.text]&&Nt[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++){var a=t[i];if(a.type==="infix"){if(r!==-1)throw new L("only one infix operator per group",a.token);r=i,n=a.replaceWith}}if(r!==-1&&n){var l,s,o=t.slice(0,r),c=t.slice(r+1);o.length===1&&o[0].type==="ordgroup"?l=o[0]:l={type:"ordgroup",mode:this.mode,body:o},c.length===1&&c[0].type==="ordgroup"?s=c[0]:s={type:"ordgroup",mode:this.mode,body:c};var m;return n==="\\\\abovefrac"?m=this.callFunction(n,[l,t[r],s],[]):m=this.callFunction(n,[l,s],[]),[m]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var a;i=this.parseGroup(t)}while(((a=i)==null?void 0:a.type)==="internal");if(!i)throw new L("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var l=a.text==="\\limits";r.limits=l,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new L("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(n)throw new L("Double superscript",a);n=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new L("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(n)throw new L("Double superscript",a);var s={type:"textord",mode:this.mode,text:"\\prime"},o=[s];for(this.consume();this.fetch().text==="'";)o.push(s),this.consume();this.fetch().text==="^"&&o.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:o}}else if(en[a.text]){var c=il.test(a.text),m=[];for(m.push(new Ye(en[a.text])),this.consume();;){var d=this.fetch().text;if(!en[d]||il.test(d)!==c)break;m.unshift(new Ye(en[d])),this.consume()}var g=this.subparse(m);c?i={type:"ordgroup",mode:"math",body:g}:n={type:"ordgroup",mode:"math",body:g}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(t,r){var n=this.fetch(),i=n.text,a=Nt[i];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new L("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!a.allowedInText)throw new L("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&a.allowedInMath===!1)throw new L("Can't use function '"+i+"' in math mode",n);var{args:l,optArgs:s}=this.parseArguments(i,a);return this.callFunction(i,l,s,n,t)}callFunction(t,r,n,i,a){var l={funcName:t,parser:this,token:i,breakOnTokenText:a},s=Nt[t];if(s&&s.handler)return s.handler(l,r,n);throw new L("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],a=[],l=0;l<n;l++){var s=r.argTypes&&r.argTypes[l],o=l<r.numOptionalArgs;("primitive"in r&&r.primitive&&s==null||r.type==="sqrt"&&l===1&&a[0]==null)&&(s="primitive");var c=this.parseGroupOfType("argument to '"+t+"'",s,o);if(o)a.push(c);else if(c!=null)i.push(c);else throw new L("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",n);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(n)throw new L("A primitive argument cannot be optional");var l=this.parseGroup(t);if(l==null)throw new L("Expected group as "+t,this.fetch());return l}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new L("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,a="",l;(l=this.fetch()).text!=="EOF"&&t.test(a+l.text);)i=l,a+=i.text,this.consume();if(a==="")throw new L("Invalid "+r+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new L("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new L("Invalid size: '"+r.text+"'",r);var a={number:+(i[1]+i[2]),unit:i[3]};if(!ss(a))throw new L("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var l={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return r&&this.switchMode(i),l}parseGroup(t,r){var n=this.fetch(),i=n.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var l=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,l),o=this.fetch();this.expect(l),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:qe.range(n,o),body:s,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,t)||this.parseSymbol(),a==null&&i[0]==="\\"&&!Zs.hasOwnProperty(i)){if(this.settings.throwOnError)throw new L("Undefined control sequence: "+i,n);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n];if(i.type==="textord"){var a=i.text,l=t[n+1];if(!(!l||l.type!=="textord")){if(a==="-"&&l.text==="-"){var s=t[n+2];n+1<r&&s&&s.type==="textord"&&s.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:qe.range(i,s),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:qe.range(i,l),text:"--"}),r-=1)}(a==="'"||a==="`")&&l.text===a&&(t.splice(n,2,{type:"textord",mode:"text",loc:qe.range(i,l),text:a+a}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new L(`\\verb assertion failed --
                    please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}al.hasOwnProperty(r[0])&&!ve[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=al[r[0]]+r.slice(1));var a=O2.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var l;if(ve[this.mode][r]){this.settings.strict&&this.mode==="math"&&C0.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var s=ve[this.mode][r].group,o=qe.range(t),c;if(Lm.hasOwnProperty(s)){var m=s;c={type:"atom",mode:this.mode,family:m,loc:o,text:r}}else c={type:s,mode:this.mode,loc:o,text:r};l=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(ls(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),l={type:"textord",mode:"text",loc:qe.range(t),text:r};else return null;if(this.consume(),a)for(var d=0;d<a[0].length;d++){var g=a[0][d];if(!o0[g])throw new L("Unknown accent ' "+g+"'",t);var f=o0[g][this.mode]||o0[g].text;if(!f)throw new L("Accent "+g+" unsupported in "+this.mode+" mode",t);l={type:"accent",mode:this.mode,loc:qe.range(t),label:f,isStretchy:!1,isShifty:!0,base:l}}return l}}Nn.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var vi=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Nn(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new L("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Ye("\\df@tag")])}]}return i},Js=function(t,r,n){r.textContent="";var i=yi(t,n).toNode();r.appendChild(i)};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."),Js=function(){throw new L("KaTeX doesn't work in quirks mode.")});var U2=function(t,r){var n=yi(t,r).toMarkup();return n},$2=function(t,r){var n=new ti(r);return vi(t,n)},eo=function(t,r,n){if(n.throwOnError||!(t instanceof L))throw t;var i=O(["katex-error"],[new et(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},yi=function(t,r){var n=new ti(r);try{var i=vi(t,n);return e2(i,t,n)}catch(a){return eo(a,t,n)}},G2=function(t,r){var n=new ti(r);try{var i=vi(t,n);return t2(i,t,n)}catch(a){return eo(a,t,n)}},_2="0.16.37",W2={Span:Mr,Anchor:ni,SymbolNode:et,SvgNode:kt,PathNode:It,LineNode:A0},ll={version:_2,render:Js,renderToString:U2,ParseError:L,SETTINGS_SCHEMA:w0,__parse:$2,__renderToDomTree:yi,__renderToHTMLTree:G2,__setFontMetrics:Fm,__defineSymbol:u,__defineFunction:W,__defineMacro:v,__domTree:W2};const Y2={};function X2(e){const t=this,r=e||Y2,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),l=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(sm(r)),a.push(J4()),l.push(em(r))}const sl=/[#.]/g;function K2(e,t){const r=e||"",n={};let i=0,a,l;for(;i<r.length;){sl.lastIndex=i;const s=sl.exec(r),o=r.slice(i,s?s.index:r.length);o&&(a?a==="#"?n.id=o:Array.isArray(n.className)?n.className.push(o):n.className=[o]:l=o,i+=o.length),s&&(a=s[0],i++)}return{type:"element",tagName:l||t||"div",properties:n,children:[]}}function to(e,t,r){const n=r?ed(r):void 0;function i(a,l,...s){let o;if(a==null){o={type:"root",children:[]};const c=l;s.unshift(c)}else{o=K2(a,t);const c=o.tagName.toLowerCase(),m=n?n.get(c):void 0;if(o.tagName=m||c,Q2(l))s.unshift(l);else for(const[d,g]of Object.entries(l))Z2(e,o.properties,d,g)}for(const c of s)P0(o.children,c);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return i}function Q2(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const l of a)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Z2(e,t,r,n){const i=Ml(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=ji(n):i.commaSeparated?a=Ri(n):i.commaOrSpaceSeparated?a=ji(Ri(n).join(" ")):a=ol(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?J2(n):String(n);if(Array.isArray(a)){const l=[];for(const s of a)l.push(ol(i,i.property,s));a=l}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function P0(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 r of t)P0(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?P0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function ol(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||wr(r)===wr(t)))return!0}return r}function J2(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function ed(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const td=["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"],rd=to(Nl,"div"),nd=to(fn,"g",td),u0={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function id(e,t){return ro(e,{})||{type:"root",children:[]}}function ro(e,t){const r=ad(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function ad(e,t){switch(e.nodeType){case 1:return ud(e,t);case 3:return sd(e);case 8:return od(e);case 9:return ul(e,t);case 10:return ld();case 11:return ul(e,t);default:return}}function ul(e,t){return{type:"root",children:no(e,t)}}function ld(){return{type:"doctype"}}function sd(e){return{type:"text",value:e.nodeValue||""}}function od(e){return{type:"comment",value:e.nodeValue||""}}function ud(e,t){const r=e.namespaceURI,n=r===u0.svg?nd:rd,i=r===u0.html?e.tagName.toLowerCase():e.tagName,a=r===u0.html&&i==="template"?e.content:e,l=e.getAttributeNames(),s={};let o=-1;for(;++o<l.length;)s[l[o]]=e.getAttribute(l[o])||"";return n(i,s,no(a,t))}function no(e,t){const r=e.childNodes,n=[];let i=-1;for(;++i<r.length;){const a=ro(r[i],t);a!==void 0&&n.push(a)}return n}new DOMParser;function cd(e,t){const r=hd(e);return id(r)}function hd(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const cl=function(e,t,r){const n=Z0(r);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(n(e.children[t],t,e))return e.children[t]},$t=function(e){if(e==null)return fd;if(typeof e=="string")return dd(e);if(typeof e=="object")return md(e);if(typeof e=="function")return xi(e);throw new Error("Expected function, string, or array as `test`")};function md(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=$t(e[r]);return xi(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function dd(e){return xi(t);function t(r){return r.tagName===e}}function xi(e){return t;function t(r,n,i){return!!(pd(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function fd(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function pd(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const hl=/\n/g,ml=/[\t ]+/g,F0=$t("br"),dl=$t(Sd),gd=$t("p"),fl=$t("tr"),vd=$t(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",kd,Ad]),io=$t(["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 yd(e,t){const r=t||{},n="children"in e?e.children:[],i=io(e),a=so(e,{whitespace:r.whitespace||"normal",breakBefore:!1,breakAfter:!1}),l=[];(e.type==="text"||e.type==="comment")&&l.push(...lo(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<n.length;)l.push(...ao(n[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<n.length-1?F0(n[s+1]):i}));const o=[];let c;for(s=-1;++s<l.length;){const m=l[s];typeof m=="number"?c!==void 0&&m>c&&(c=m):m&&(c!==void 0&&c>-1&&o.push(`
`.repeat(c)||" "),c=-1,o.push(m))}return o.join("")}function ao(e,t,r){return e.type==="element"?xd(e,t,r):e.type==="text"?r.whitespace==="normal"?lo(e,r):bd(e):[]}function xd(e,t,r){const n=so(e,r),i=e.children||[];let a=-1,l=[];if(vd(e))return l;let s,o;for(F0(e)||fl(e)&&cl(t,e,fl)?o=`
`:gd(e)?(s=2,o=2):io(e)&&(s=1,o=1);++a<i.length;)l=l.concat(ao(i[a],e,{whitespace:n,breakBefore:a?void 0:s,breakAfter:a<i.length-1?F0(i[a+1]):o}));return dl(e)&&cl(t,e,dl)&&l.push("	"),s&&l.unshift(s),o&&l.push(o),l}function lo(e,t){const r=String(e.value),n=[],i=[];let a=0;for(;a<=r.length;){hl.lastIndex=a;const o=hl.exec(r),c=o&&"index"in o?o.index:r.length;n.push(wd(r.slice(a,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,c===r.length?t.breakAfter:!0)),a=c+1}let l=-1,s;for(;++l<n.length;)n[l].charCodeAt(n[l].length-1)===8203||l<n.length-1&&n[l+1].charCodeAt(0)===8203?(i.push(n[l]),s=void 0):n[l]?(typeof s=="number"&&i.push(s),i.push(n[l]),s=0):(l===0||l===n.length-1)&&i.push(0);return i}function bd(e){return[String(e.value)]}function wd(e,t,r){const n=[];let i=0,a;for(;i<e.length;){ml.lastIndex=i;const l=ml.exec(e);a=l?l.index:e.length,!i&&!a&&l&&!t&&n.push(""),i!==a&&n.push(e.slice(i,a)),i=l?a+l[0].length:a}return i!==a&&!r&&n.push(""),n.join(" ")}function so(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function kd(e){return!!(e.properties||{}).hidden}function Sd(e){return e.tagName==="td"||e.tagName==="th"}function Ad(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const Cd={},Td=[];function zd(e){const t=e||Cd;return function(r,n){rs(r,"element",function(i,a){const l=Array.isArray(i.properties.className)?i.properties.className:Td,s=l.includes("language-math"),o=l.includes("math-display"),c=l.includes("math-inline");let m=o;if(!s&&!o&&!c)return;let d=a[a.length-1],g=i;if(i.tagName==="code"&&s&&d&&d.type==="element"&&d.tagName==="pre"&&(g=d,d=a[a.length-2],m=!0),!d)return;const f=yd(g,{whitespace:"pre"});let x;try{x=ll.renderToString(f,{...t,displayMode:m,throwOnError:!0})}catch(N){const T=N,z=T.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...a,i],cause:T,place:i.position,ruleId:z,source:"rehype-katex"});try{x=ll.renderToString(f,{...t,displayMode:m,strict:"ignore",throwOnError:!1})}catch{x=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(N)},children:[{type:"text",value:f}]}]}}typeof x=="string"&&(x=cd(x).children);const w=d.children.indexOf(g);return d.children.splice(w,1,...x),ts})}}var En="Collapsible",[Md,oo]=gl(En),[Nd,bi]=Md(En),uo=te.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:a,onOpenChange:l,...s}=e,[o,c]=L0({prop:n,defaultProp:i??!1,onChange:l,caller:En});return S.jsx(Nd,{scope:r,disabled:a,contentId:bl(),open:o,onOpenToggle:te.useCallback(()=>c(m=>!m),[c]),children:S.jsx(Cr.div,{"data-state":ki(o),"data-disabled":a?"":void 0,...s,ref:t})})});uo.displayName=En;var co="CollapsibleTrigger",ho=te.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,i=bi(co,r);return S.jsx(Cr.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":ki(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:vl(e.onClick,i.onOpenToggle)})});ho.displayName=co;var wi="CollapsibleContent",mo=te.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=bi(wi,e.__scopeCollapsible);return S.jsx(Eo,{present:r||i.open,children:({present:a})=>S.jsx(Ed,{...n,ref:t,present:a})})});mo.displayName=wi;var Ed=te.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:i,...a}=e,l=bi(wi,r),[s,o]=te.useState(n),c=te.useRef(null),m=yl(t,c),d=te.useRef(0),g=d.current,f=te.useRef(0),x=f.current,w=l.open||s,N=te.useRef(w),T=te.useRef(void 0);return te.useEffect(()=>{const z=requestAnimationFrame(()=>N.current=!1);return()=>cancelAnimationFrame(z)},[]),Io(()=>{const z=c.current;if(z){T.current=T.current||{transitionDuration:z.style.transitionDuration,animationName:z.style.animationName},z.style.transitionDuration="0s",z.style.animationName="none";const I=z.getBoundingClientRect();d.current=I.height,f.current=I.width,N.current||(z.style.transitionDuration=T.current.transitionDuration,z.style.animationName=T.current.animationName),o(n)}},[l.open,n]),S.jsx(Cr.div,{"data-state":ki(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!w,...a,ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:w&&i})});function ki(e){return e?"open":"closed"}var Id=uo,Dd=ho,Bd=mo,it="Accordion",Rd=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Si,Pd,Fd]=Do(it),[In,af]=gl(it,[Fd,oo]),Ai=oo(),fo=We.forwardRef((e,t)=>{const{type:r,...n}=e,i=n,a=n;return S.jsx(Si.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?S.jsx(qd,{...a,ref:t}):S.jsx(jd,{...i,ref:t})})});fo.displayName=it;var[po,Od]=In(it),[go,Ld]=In(it,{collapsible:!1}),jd=We.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},collapsible:a=!1,...l}=e,[s,o]=L0({prop:r,defaultProp:n??"",onChange:i,caller:it});return S.jsx(po,{scope:e.__scopeAccordion,value:We.useMemo(()=>s?[s]:[],[s]),onItemOpen:o,onItemClose:We.useCallback(()=>a&&o(""),[a,o]),children:S.jsx(go,{scope:e.__scopeAccordion,collapsible:a,children:S.jsx(vo,{...l,ref:t})})})}),qd=We.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:i=()=>{},...a}=e,[l,s]=L0({prop:r,defaultProp:n??[],onChange:i,caller:it}),o=We.useCallback(m=>s((d=[])=>[...d,m]),[s]),c=We.useCallback(m=>s((d=[])=>d.filter(g=>g!==m)),[s]);return S.jsx(po,{scope:e.__scopeAccordion,value:l,onItemOpen:o,onItemClose:c,children:S.jsx(go,{scope:e.__scopeAccordion,collapsible:!0,children:S.jsx(vo,{...a,ref:t})})})}),[Hd,Dn]=In(it),vo=We.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:i,orientation:a="vertical",...l}=e,s=We.useRef(null),o=yl(s,t),c=Pd(r),d=Yo(i)==="ltr",g=vl(e.onKeyDown,f=>{var _;if(!Rd.includes(f.key))return;const x=f.target,w=c().filter(F=>{var X;return!((X=F.ref.current)!=null&&X.disabled)}),N=w.findIndex(F=>F.ref.current===x),T=w.length;if(N===-1)return;f.preventDefault();let z=N;const I=0,B=T-1,P=()=>{z=N+1,z>B&&(z=I)},M=()=>{z=N-1,z<I&&(z=B)};switch(f.key){case"Home":z=I;break;case"End":z=B;break;case"ArrowRight":a==="horizontal"&&(d?P():M());break;case"ArrowDown":a==="vertical"&&P();break;case"ArrowLeft":a==="horizontal"&&(d?M():P());break;case"ArrowUp":a==="vertical"&&M();break}const U=z%T;(_=w[U].ref.current)==null||_.focus()});return S.jsx(Hd,{scope:r,disabled:n,direction:i,orientation:a,children:S.jsx(Si.Slot,{scope:r,children:S.jsx(Cr.div,{...l,"data-orientation":a,ref:o,onKeyDown:n?void 0:g})})})}),dn="AccordionItem",[Vd,Ci]=In(dn),yo=We.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...i}=e,a=Dn(dn,r),l=Od(dn,r),s=Ai(r),o=bl(),c=n&&l.value.includes(n)||!1,m=a.disabled||e.disabled;return S.jsx(Vd,{scope:r,open:c,disabled:m,triggerId:o,children:S.jsx(Id,{"data-orientation":a.orientation,"data-state":Ao(c),...s,...i,ref:t,disabled:m,open:c,onOpenChange:d=>{d?l.onItemOpen(n):l.onItemClose(n)}})})});yo.displayName=dn;var xo="AccordionHeader",bo=We.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Dn(it,r),a=Ci(xo,r);return S.jsx(Cr.h3,{"data-orientation":i.orientation,"data-state":Ao(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});bo.displayName=xo;var O0="AccordionTrigger",wo=We.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Dn(it,r),a=Ci(O0,r),l=Ld(O0,r),s=Ai(r);return S.jsx(Si.ItemSlot,{scope:r,children:S.jsx(Dd,{"aria-disabled":a.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...n,ref:t})})});wo.displayName=O0;var ko="AccordionContent",So=We.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,i=Dn(it,r),a=Ci(ko,r),l=Ai(r);return S.jsx(Bd,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...l,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});So.displayName=ko;function Ao(e){return e?"open":"closed"}var Ud=fo,$d=yo,Gd=bo,Co=wo,To=So;const _d=Ud,zo=te.forwardRef(({className:e,...t},r)=>S.jsx($d,{ref:r,className:br("border-b",e),...t}));zo.displayName="AccordionItem";const Mo=te.forwardRef(({className:e,children:t,...r},n)=>S.jsx(Gd,{className:"flex",children:S.jsxs(Co,{ref:n,className:br("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...r,children:[t,S.jsx(qo,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Mo.displayName=Co.displayName;const No=te.forwardRef(({className:e,children:t,...r},n)=>S.jsx(To,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:S.jsx("div",{className:br("pb-4 pt-0",e),children:t})}));No.displayName=To.displayName;function Wd({quiz:e,onComplete:t}){const[r,n]=te.useState(0),[i,a]=te.useState({}),[l,s]=te.useState(!1),[o,c]=te.useState(!1),[m,d]=te.useState(null),g=e.questions[r],f=r===e.questions.length-1,x=i[g==null?void 0:g.id]||[],w=P=>{if(o)return;const M=g.id;g.type==="multiple_select"?a(U=>{const _=U[M]||[];return{...U,[M]:_.includes(P)?_.filter(F=>F!==P):[..._,P]}}):a(U=>({...U,[M]:[P]}))},N=async()=>{if(f){c(!0);try{const P=await t(i);P&&(d({score:P.score,total:P.total}),s(!0))}catch(P){console.error("Failed to submit quiz",P),c(!1)}}else n(P=>P+1)},T=()=>{n(0),a({}),s(!1),c(!1)},z=(m==null?void 0:m.score)||0,I=(m==null?void 0:m.total)||e.questions.length;if(l){const P=Math.round(z/e.questions.length*100);return S.jsxs(Ie.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"glass-card rounded-2xl p-8",children:[S.jsxs("div",{className:"text-center mb-8",children:[S.jsx(Qo,{className:br("w-16 h-16 mx-auto mb-4",P>=70?"text-success":"text-warning")}),S.jsx("h2",{className:"font-heading text-3xl font-bold mb-2",children:"Quiz Complete!"}),S.jsx("p",{className:"text-muted-foreground mb-6",children:"You scored"}),S.jsxs("div",{className:"text-5xl font-heading font-bold mb-2",children:[S.jsx("span",{className:P>=70?"text-success":"text-warning",children:z}),S.jsxs("span",{className:"text-muted-foreground text-2xl",children:["/",I]})]}),S.jsxs("p",{className:"text-muted-foreground",children:[P,"% correct"]})]}),S.jsxs("div",{className:"space-y-6",children:[S.jsx("h3",{className:"font-heading font-semibold text-lg border-b pb-2",children:"Your Answers Submitted"}),S.jsx("p",{className:"text-muted-foreground mt-4",children:"The correct answers are hidden for students. Please review the material and try again to improve your score."})]}),S.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mt-10",children:[S.jsxs(st,{onClick:T,variant:"outline",className:"flex-1 rounded-xl gap-2 font-medium",children:[S.jsx(su,{className:"w-4 h-4"})," Try Again"]}),S.jsx(st,{onClick:()=>window.location.reload(),className:"flex-1 rounded-xl gradient-primary text-primary-foreground border-0 shadow-glow font-medium",children:"Continue Learning"})]})]})}if(!g)return null;const B=g.type==="multiple_choice"?"Single Answer":g.type==="true_false"?"True / False":"Select All That Apply";return S.jsxs("div",{className:"glass-card rounded-2xl p-6",children:[S.jsxs("div",{className:"flex items-center justify-between mb-6",children:[S.jsx(Ho,{variant:"secondary",className:"rounded-lg",children:B}),S.jsxs("span",{className:"text-sm text-muted-foreground",children:["Question ",r+1," of ",e.questions.length]})]}),S.jsx("div",{className:"w-full h-1.5 bg-muted rounded-full mb-6 overflow-hidden",children:S.jsx(Ie.div,{className:"h-full gradient-primary rounded-full",initial:{width:0},animate:{width:`${(r+1)/e.questions.length*100}%`},transition:{duration:.3}})}),S.jsx(c0,{mode:"wait",children:S.jsxs(Ie.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.25},children:[S.jsx("h3",{className:"font-heading text-xl font-semibold mb-6",children:g.question}),S.jsx("div",{className:"space-y-3",children:g.options.map(P=>{const M=x.includes(P.id);return S.jsx(Ie.button,{whileHover:{scale:1.01},whileTap:{scale:.99},onClick:()=>w(P.id),className:br("w-full text-left p-4 rounded-xl border-2 transition-colors",M?"border-primary bg-primary/10 text-foreground":"border-border bg-muted/30 text-muted-foreground hover:border-primary/50 hover:text-foreground"),children:P.text},P.id)})})]},g.id)}),S.jsx("div",{className:"flex justify-end mt-6",children:S.jsxs(st,{onClick:N,disabled:x.length===0||o,className:"rounded-xl gradient-primary text-primary-foreground border-0 shadow-glow gap-2",children:[o?"Submitting...":f?"Finish Quiz":"Next"," ",S.jsx(Qt,{className:"w-4 h-4"})]})})]})}function Yd(e){return console.log(e),S.jsx(W4,{remarkPlugins:[X2],rehypePlugins:[zd],components:{p:({children:t})=>S.jsx("p",{className:"text-foreground/90 leading-relaxed mb-4",children:t}),h1:({children:t})=>S.jsx("h1",{className:"text-2xl font-bold mb-4 mt-6",children:t}),h2:({children:t})=>S.jsx("h2",{className:"text-xl font-bold mb-3 mt-5",children:t}),h3:({children:t})=>S.jsx("h3",{className:"text-lg font-bold mb-2 mt-4",children:t}),ul:({children:t})=>S.jsx("ul",{className:"list-disc pl-6 mb-4 space-y-2",children:t}),ol:({children:t})=>S.jsx("ol",{className:"list-decimal pl-6 mb-4 space-y-2",children:t}),li:({children:t})=>S.jsx("li",{className:"text-foreground/90",children:t}),blockquote:({children:t})=>S.jsx("blockquote",{className:"border-l-4 border-primary/30 pl-4 italic my-4 text-muted-foreground",children:t}),code:({children:t})=>S.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-sm font-mono",children:t}),pre:({children:t})=>S.jsx("pre",{className:"glass-card p-4 rounded-xl overflow-x-auto my-4 font-mono text-sm",children:t}),div:({className:t,children:r})=>t!=null&&t.includes("math-display")?S.jsx("div",{className:"my-6 glass-card rounded-2xl p-6 overflow-x-auto bg-primary/5 border border-primary/10 shadow-glow-sm",children:r}):S.jsx("div",{className:t,children:r})},children:e})}function lf(){var de;const{courseId:e}=Bo(),{user:t}=Ro(),r=Po(),[n,i]=te.useState(null),[a,l]=te.useState(null),[s,o]=te.useState(!0),[c,m]=te.useState(null),{data:d,isLoading:g}=Lr({queryKey:["course",e],queryFn:()=>Yt.getCourse(e),enabled:!!e}),{data:f}=Lr({queryKey:["progress",e],queryFn:()=>Yt.getUserProgress(e),enabled:!!t&&!!e}),{data:x}=Lr({queryKey:["quizzes",e],queryFn:()=>Yt.getQuizzesByCourse(e),enabled:!!e}),{data:w}=Lr({queryKey:["quiz-attempts",a],queryFn:()=>{const D=x==null?void 0:x.find(ne=>ne.chapterId===a);return D?Yt.getQuizAttempts(D.id):Promise.resolve([])},enabled:!!t&&!!a&&!!(x!=null&&x.find(D=>D.chapterId===a))}),N=Vo({mutationFn:({sectionId:D,isCompleted:ne})=>Yt.toggleSectionComplete(D,ne),onSuccess:()=>r.invalidateQueries({queryKey:["progress",e]})}),T=D=>D.reduce((ne,we)=>[...ne,we,...T(we.subsections||[])],[]),z=D=>(f==null?void 0:f.some(ne=>ne.sectionId===D&&ne.isCompleted))??!1,I=D=>{const ne=d==null?void 0:d.chapters.find(k=>k.id===D);if(!ne||ne.sections.length===0)return!1;const we=T(ne.sections);return we.length>0&&we.every(k=>z(k.id))},B=a?void 0:d!=null&&d.chapters?T(d.chapters.flatMap(D=>D.sections)).find(D=>D.id===n):void 0,P=a?x==null?void 0:x.find(D=>D.chapterId===a):void 0,M=a?d==null?void 0:d.chapters.find(D=>D.id===a):void 0;let U="";const _=[];d==null||d.chapters.forEach(D=>{const ne=T(D.sections);!a&&ne.some(k=>k.id===n)&&(U=D.title),ne.forEach(k=>{_.push({type:"section",id:k.id,title:k.title,chapterId:D.id})}),(x==null?void 0:x.find(k=>k.chapterId===D.id))&&_.push({type:"quiz",id:D.id,title:"Chapter Quiz",chapterId:D.id})});const F=_.findIndex(D=>D.type==="section"&&D.id===n||D.type==="quiz"&&D.id===a),X=F>0?_[F-1]:null,G=F<_.length-1?_[F+1]:null,$=D=>{if(D.type==="section")se(D.id);else{if(D.chapterId&&!I(D.chapterId)){Ti.error("Finish Chapter First",{description:"Complete all sections in this chapter to unlock the quiz."});return}Z(D.id)}},oe=(D,ne=0)=>{const we=z(D.id),k=n===D.id&&!a;return S.jsxs("div",{className:"space-y-0.5",children:[S.jsxs(Ie.button,{onClick:()=>se(D.id),whileHover:{x:4},className:`w-full flex items-center gap-2 px-3 py-2 rounded-lg text-left text-sm transition-colors ${k?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,style:{paddingLeft:`${(ne+1)*.75}rem`},children:[we?S.jsx(Ei,{className:"w-4 h-4 text-success flex-shrink-0"}):S.jsx(jo,{className:"w-4 h-4 flex-shrink-0"}),S.jsx("span",{className:"truncate",children:D.title})]}),D.subsections&&D.subsections.length>0&&S.jsx("div",{className:"space-y-0.5",children:D.subsections.map(ke=>oe(ke,ne+1))})]},D.id)};if(!n&&!a&&d){const D=(de=d.chapters[0])==null?void 0:de.sections[0];D&&i(D.id)}const se=D=>{i(D),l(null)},Z=D=>{l(D),i(null)};return g?S.jsxs("div",{className:"min-h-screen bg-background flex flex-col items-center justify-center animated-mesh",children:[S.jsx("div",{className:"gradient-orb gradient-orb-1 opacity-50 absolute"}),S.jsx("div",{className:"gradient-orb gradient-orb-2 opacity-50 absolute"}),S.jsxs("div",{className:"relative z-10 flex flex-col items-center glass-card p-12 rounded-3xl w-full max-w-sm",children:[S.jsx("div",{className:"w-16 h-16 border-4 border-primary/20 border-t-primary rounded-full animate-spin shadow-glow mb-6"}),S.jsx("h2",{className:"text-xl font-heading font-bold bg-clip-text text-transparent bg-gradient-to-r from-primary to-primary/60 animate-pulse text-center",children:"Loading Module..."}),S.jsx("p",{className:"text-muted-foreground mt-3 text-sm text-center leading-relaxed",children:"Gathering your learning materials, sections, and progress."})]})]}):d?S.jsxs("div",{className:"min-h-screen bg-background animated-mesh",children:[S.jsx("div",{className:"gradient-orb gradient-orb-1"}),S.jsx("div",{className:"gradient-orb gradient-orb-2"}),S.jsx(Lo,{}),S.jsxs("div",{className:"pt-12 flex relative z-10",children:[S.jsx(c0,{children:s&&S.jsx(Ie.aside,{initial:{width:0,opacity:0},animate:{width:320,opacity:1},exit:{width:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"fixed left-0 top-16 h-[calc(100vh-4rem)] border-r glass overflow-y-auto z-40",children:S.jsxs("div",{className:"p-4",children:[S.jsxs("div",{className:"flex items-center justify-between mb-4",children:[S.jsx("h2",{className:"font-heading font-semibold text-sm text-muted-foreground uppercase tracking-wider",children:"Contents"}),S.jsx(st,{variant:"ghost",size:"icon",onClick:()=>o(!1),className:"rounded-lg",children:S.jsx(lu,{className:"w-4 h-4"})})]}),S.jsx(_d,{type:"multiple",defaultValue:d.chapters.map(D=>D.id),children:d.chapters.map(D=>S.jsxs(zo,{value:D.id,children:[S.jsx(Mo,{className:"text-sm font-semibold hover:no-underline py-2",children:D.title}),S.jsx(No,{children:S.jsxs("div",{className:"space-y-0.5 pl-1",children:[D.sections.map(ne=>oe(ne)),(x==null?void 0:x.some(ne=>ne.chapterId===D.id))&&S.jsxs(Ie.button,{onClick:()=>{I(D.id)?Z(D.id):Ti.error("Finish Chapter First",{description:"Complete all sections in this chapter to unlock the quiz."})},whileHover:{x:4},className:`w-full flex items-center gap-2 px-3 py-2 rounded-lg text-left text-sm transition-colors mt-1 ${a===D.id?"bg-primary/10 text-primary font-medium":I(D.id)?"text-muted-foreground hover:bg-muted hover:text-foreground":"text-muted-foreground/50"}`,children:[I(D.id)?S.jsx(Mi,{className:"w-4 h-4 flex-shrink-0"}):S.jsx(Zo,{className:"w-4 h-4 flex-shrink-0"}),S.jsx("span",{className:"truncate",children:"Chapter Quiz"})]})]})})]},D.id))})]})})}),!s&&S.jsx(Ie.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},children:S.jsx(st,{variant:"ghost",size:"icon",onClick:()=>o(!0),className:"fixed left-4 top-20 z-40 rounded-xl glass-card",children:S.jsx(Ii,{className:"w-4 h-4"})})}),S.jsx("div",{className:"flex-1 transition-all duration-300",style:{marginLeft:s?320:0},children:S.jsxs("div",{className:"max-w-4xl mx-auto px-6 pt-6 pb-8",children:[S.jsxs("div",{className:"flex items-center justify-between mb-4",children:[S.jsxs(Fo,{to:"/courses",className:"inline-flex items-center text-sm font-medium text-muted-foreground hover:text-primary transition-colors",children:[S.jsx(eu,{className:"w-4 h-4 mr-1.5"})," Back to Courses"]}),S.jsxs("div",{className:"flex items-center gap-2",children:[X&&S.jsxs(st,{variant:"outline",onClick:()=>$(X),size:"sm",className:"gap-1.5 glass hidden sm:flex",children:[S.jsx(Ii,{className:"w-3.5 h-3.5"})," Previous: ",X.title]}),G&&S.jsxs(st,{onClick:()=>$(G),size:"sm",className:"gap-1.5 gradient-primary text-primary-foreground border-0 shadow-glow hidden sm:flex",children:["Next: ",G.title," ",S.jsx(Qt,{className:"w-3.5 h-3.5"})]})]})]}),S.jsx(c0,{mode:"wait",children:B?S.jsxs(Ie.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},exit:{opacity:0,y:-15},transition:{duration:.4,ease:"easeInOut"},children:[S.jsxs("div",{className:"flex items-center flex-wrap gap-2 text-sm text-muted-foreground mb-4",children:[S.jsx(Pn,{className:"w-4 h-4"}),S.jsx("span",{children:d.title}),U&&S.jsxs(S.Fragment,{children:[S.jsx(Qt,{className:"w-3 h-3"}),S.jsx("span",{children:U})]}),S.jsx(Qt,{className:"w-3 h-3"}),S.jsx("span",{children:B.title})]}),S.jsx("h1",{className:"font-heading text-3xl font-bold mb-2",children:B.title}),B.description&&S.jsx("p",{className:"text-muted-foreground mb-6",children:B.description}),S.jsxs(Xo,{defaultValue:"content",className:"w-full",children:[S.jsxs(Ko,{className:"glass-card rounded-xl mb-6 p-1",children:[S.jsxs(qr,{value:"content",className:"rounded-lg gap-1.5 data-[state=active]:shadow-glow",children:[S.jsx(Pn,{className:"w-4 h-4"})," Content"]}),B.notesUrl&&S.jsxs(qr,{value:"notes",className:"rounded-lg gap-1.5 data-[state=active]:shadow-glow",children:[S.jsx(jr,{className:"w-4 h-4"})," Notes"]}),S.jsxs(qr,{value:"video",className:"rounded-lg gap-1.5 data-[state=active]:shadow-glow",children:[S.jsx(tu,{className:"w-4 h-4"})," Video"]}),S.jsxs(qr,{value:"files",className:"rounded-lg gap-1.5 data-[state=active]:shadow-glow",children:[S.jsx(jr,{className:"w-4 h-4"})," Files"]})]}),S.jsx(Hr,{value:"content",children:S.jsxs(Ie.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},className:"space-y-4",children:[B.content&&S.jsx("div",{className:"prose prose-slate dark:prose-invert max-w-none mb-8",children:Yd(B.content)}),!B.content&&S.jsxs("div",{className:"glass-card rounded-2xl p-16 flex flex-col items-center justify-center text-center",children:[S.jsx(Pn,{className:"w-12 h-12 text-muted-foreground/50 mb-4"}),S.jsx("p",{className:"text-muted-foreground font-medium",children:"No text content for this section"})]})]})}),S.jsx(Hr,{value:"video",children:S.jsx(Ie.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},children:B.videoUrl?S.jsx("div",{className:"aspect-video rounded-2xl overflow-hidden glass-card",children:S.jsx("iframe",{src:Oo(B.videoUrl),className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:B.title})}):S.jsxs("div",{className:"glass-card rounded-2xl p-16 flex flex-col items-center justify-center text-center",children:[S.jsx(ou,{className:"w-12 h-12 text-muted-foreground/50 mb-4"}),S.jsx("p",{className:"text-muted-foreground font-medium",children:"No video available for this section"})]})})}),S.jsx(Hr,{value:"notes",children:S.jsx(Ie.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},className:"w-full h-[800px] rounded-2xl overflow-hidden glass-card",children:B.notesUrl?S.jsx("iframe",{src:B.notesUrl,className:"w-full h-full border-0",title:"Section Notes"}):S.jsxs("div",{className:"glass-card rounded-2xl p-16 flex flex-col items-center justify-center text-center",children:[S.jsx(jr,{className:"w-12 h-12 text-muted-foreground/50 mb-4"}),S.jsx("p",{className:"text-muted-foreground font-medium",children:"No notes available for this section"})]})})}),S.jsx(Hr,{value:"files",children:S.jsx(Ie.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},children:B.files&&B.files.length>0?S.jsx("div",{className:"space-y-4",children:B.files.map(D=>S.jsxs("div",{className:"flex flex-col gap-4",children:[S.jsxs("div",{className:"flex items-center justify-between p-4 glass-card rounded-xl",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("div",{className:"p-2 rounded-lg bg-primary/10 text-primary",children:S.jsx(jr,{className:"w-5 h-5"})}),S.jsxs("div",{children:[S.jsx("p",{className:"font-medium text-sm",children:D.fileName}),S.jsxs("p",{className:"text-xs text-muted-foreground",children:[(D.sizeBytes/1024).toFixed(1)," KB"]})]})]}),S.jsxs("div",{className:"flex items-center gap-2",children:[D.fileName.toLowerCase().endsWith(".pdf")&&S.jsx(st,{onClick:()=>m(c===D.id?null:D.id),variant:"ghost",size:"icon",className:"rounded-lg",title:c===D.id?"Hide Preview":"Show Preview",children:c===D.id?S.jsx(nu,{className:"w-4 h-4"}):S.jsx(iu,{className:"w-4 h-4"})}),S.jsx(st,{asChild:!0,variant:"ghost",size:"icon",className:"rounded-lg",children:S.jsx("a",{href:`${zi.apiUrl}/files/${D.id}/download`,download:!0,children:S.jsx(ru,{className:"w-4 h-4"})})})]})]}),c===D.id&&D.fileName.toLowerCase().endsWith(".pdf")&&S.jsx(Ie.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:600},exit:{opacity:0,height:0},className:"w-full rounded-xl overflow-hidden border glass-card bg-white/5",children:S.jsx("iframe",{src:`${zi.apiUrl}/files/${D.id}/download?inline=true`,className:"w-full h-full border-0",title:`Preview of ${D.fileName}`})})]},D.id))}):S.jsxs("div",{className:"glass-card rounded-2xl p-16 flex flex-col items-center justify-center text-center",children:[S.jsx(au,{className:"w-12 h-12 text-muted-foreground/50 mb-4"}),S.jsx("p",{className:"text-muted-foreground font-medium",children:"No files available for this section"})]})})})]}),S.jsx(Ie.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4},className:"mt-12 pt-6 border-t flex flex-col gap-6",children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("div",{className:"text-sm text-muted-foreground",children:z(B.id)?S.jsxs("span",{className:"text-success font-medium flex items-center gap-1",children:[S.jsx(Ei,{className:"w-4 h-4"})," Completed"]}):"Mark this section as complete when you're done"}),S.jsx(st,{onClick:()=>N.mutate({sectionId:B.id,isCompleted:!z(B.id)}),variant:z(B.id)?"outline":"default",className:`rounded-xl ${z(B.id)?"":"gradient-primary text-primary-foreground border-0 shadow-glow"}`,children:z(B.id)?"Mark Incomplete":"Mark Complete"})]})})]},B.id):P&&M?S.jsxs(Ie.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},exit:{opacity:0,y:-15},transition:{duration:.4,ease:"easeInOut"},children:[S.jsxs("div",{className:"flex items-center flex-wrap gap-2 text-sm text-muted-foreground mb-4",children:[S.jsx(Mi,{className:"w-4 h-4"}),S.jsx("span",{children:d.title}),S.jsx(Qt,{className:"w-3 h-3"}),S.jsx("span",{children:M.title}),S.jsx(Qt,{className:"w-3 h-3"}),S.jsx("span",{children:"Quiz"})]}),S.jsx("h1",{className:"font-heading text-3xl font-bold mb-6",children:P.title}),S.jsx(Wd,{quiz:P,onComplete:async D=>t?Yt.submitQuizAttempt({userId:t.id,quizId:P.id,answers:D}):null}),!w||w.length===0?null:S.jsxs("div",{className:"mt-8 pt-8 border-t",children:[S.jsxs("h3",{className:"font-heading text-xl font-semibold mb-4 flex items-center gap-2",children:[S.jsx(Jo,{className:"w-5 h-5 text-primary"}),"Past Attempts"]}),S.jsx("div",{className:"grid gap-3",children:w.map((D,ne)=>S.jsxs("div",{className:"glass-card flex items-center justify-between p-4 rounded-xl",children:[S.jsxs("div",{children:[S.jsxs("div",{className:"text-sm font-medium",children:["Attempt ",w.length-ne]}),S.jsxs("div",{className:"text-xs text-muted-foreground",children:[new Date(D.completedAt).toLocaleDateString()," at ",new Date(D.completedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}),S.jsx("div",{className:"flex items-center gap-3",children:S.jsxs("div",{className:"text-right",children:[S.jsxs("div",{className:"text-lg font-bold text-primary",children:[Math.round(D.score/D.total*100),"%"]}),S.jsxs("div",{className:"text-xs text-muted-foreground",children:[D.score," / ",D.total," correct"]})]})})]},D.id))})]})]},`quiz-${P.id}`):S.jsx("div",{className:"flex items-center justify-center h-64 text-muted-foreground",children:"Select a section to begin learning"})})]})})]})]}):null}export{lf as default};
