;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="edc666eb-b012-a633-89ff-291ef8bfdc4a")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68322,522281,314429,498660,e=>{"use strict";var t=e.i(566710);e.s([],68322),e.s(["Streamdown",()=>t.C],522281),e.s(["defaultRehypePlugins",()=>t.y],314429),e.s(["defaultRemarkPlugins",()=>t.z],498660)},242073,544980,97651,56517,960327,632197,511350,617346,e=>{"use strict";e.s(["processInlineEntities",0,function(e,t,r){let n,a=new Map,i=new Map,s=new Map;if(!e)return{processedText:"",citationMap:a,widgetMap:i,latexMap:s};if(!t||0===t.length)return{processedText:e,citationMap:a,widgetMap:i,latexMap:s};let o=new Map;t.forEach((e,t)=>{e?.key&&o.set(e.key,{index:t+1,entity:e})});let l=/\{\{(IE_\d+)\}\}([\s\S]*?)\{\{\/\1\}\}/g,c=[];for(;null!==(n=l.exec(e));){let e=n[1],t=n[2];e&&void 0!==t&&c.push({fullMatch:n[0],key:e,content:t,startIndex:n.index,endIndex:n.index+n[0].length})}if(0===c.length)return{processedText:e,citationMap:a,widgetMap:i,latexMap:s};let h=e;for(let e=c.length-1;e>=0;e--){let t=c[e];if(!t)continue;let n=o.get(t.key);if(!n)continue;let s=n.entity?.metadata;if(!s)continue;let l=s.__typename;if("GenAIAdsReferenceItem"===l){var u,p,m;let e=t.content||s.display_name||"",r=function(e){if(!e)return null;try{let t=new URL(e);return"https:"===t.protocol||"http:"===t.protocol?e:null}catch{return null}}(s.ads_manager_url),n=r?`[${e.replace(/([\\[\]])/g,"\\$1")}](${r.replace(/\\/g,"\\\\").replace(/\)/g,"\\)")})`:e;u=h,p=t.startIndex,m=t.endIndex,h=u.substring(0,p)+n+u.substring(m);continue}if("GenAIClippyWidgetPrimitive"===l&&s.widget_type){let e={key:t.key,widgetType:s.widget_type,version:s.version??1,data:s.data??"{}",uuid:s.uuid??null},n=`#widget-${r}-${t.key}`;i.set(n,e);let a=`[WIDGET:${s.widget_type}:${t.content}](${n})`;h=h.substring(0,t.startIndex)+a+h.substring(t.endIndex);continue}if("GenAILatexItem"===l){let e,r,n=s.latex_image?.url??null,a=t.content.trim(),i=a.startsWith("$")&&!a.startsWith("$$"),o=a.startsWith("$$")&&a.endsWith("$$"),l=/\\begin\{/.test(a),c=o||i&&a.endsWith("$")&&(a.includes("\n")||l);if(e=o?a.slice(2,-2).trim():i&&a.endsWith("$")?a.slice(1,-1).trim():a,n){let t=s.latex_image?.height,a=s.font_height,i=t&&a?t/a:null,o=i?`${n}#h=${i.toFixed(2)}`:n,l=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');r=c?` ![latex-display](${o} "${l}") `:`![latex](${o} "${l}")`}else r=c?` $$ ${e} $$ `:`$${e}$`;h=h.substring(0,t.startIndex)+r+h.substring(t.endIndex);continue}if("GenAISearchCitationItem"===l){let e=[];if(s.sources&&s.sources.length>0){for(let r of s.sources)if(r?.source_url){let n=r.source_media_preview;e.push({key:t.key,referenceUrl:r.source_url,referenceDisplayName:function(e,t,r){if(r)return r;try{return new URL(e).hostname.replace("www.","")}catch{return e}}(r.source_url,r.source_type,r.source_subtitle),sourceType:r.source_type??null,description:r.source_display_name??null,previewImageUrl:n?.url??null,previewImageAspectRatio:n?.width&&n?.height?n.width/n.height:null,faviconUrl:r.favicon?.url??null,profileImageUrl:r.source_author_media?.url??null})}}else s.reference_url&&e.push({key:t.key,referenceUrl:s.reference_url,referenceDisplayName:s.reference_display_name||function(e){try{return new URL(e).hostname.replace("www.","")}catch{return e}}(s.reference_url),sourceType:null,description:s.reference_title??null,faviconUrl:s.reference_favicon?.url??null,previewImageUrl:null,profileImageUrl:null});if(0===e.length)continue;let i=`#citation-${r}-${n.index}`;a.set(i,e);let o=`[${t.content}](${i})`;h=h.substring(0,t.startIndex)+o+h.substring(t.endIndex)}}return{processedText:h,citationMap:a,widgetMap:i,latexMap:s}}],242073);var t=e.i(733783),r=e.i(908464),n=e.i(472361);let a=(0,n.createContext)(null);function i(e){let t,i=(0,r.c)(4),s=(0,n.useContext)(a);if(!s){let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],i[0]=e):e=i[0],e}return i[1]!==s.citations||i[2]!==e?(t=s.citations.get(e)??[],i[1]=s.citations,i[2]=e,i[3]=t):t=i[3],t}e.s(["CitationProvider",0,function(e){let n,i,s=(0,r.c)(5),{citations:o,children:l}=e;return s[0]!==o?(n={citations:o},s[0]=o,s[1]=n):n=s[1],s[2]!==l||s[3]!==n?(i=(0,t.jsx)(a.Provider,{value:n,children:l}),s[2]=l,s[3]=n,s[4]=i):i=s[4],i},"useCitations",0,i],544980);let s=(0,n.createContext)(null);function o(e){let t,a=(0,r.c)(3),i=(0,n.useContext)(s);return i?(a[0]!==i.widgets||a[1]!==e?(t=i.widgets.get(e)??null,a[0]=i.widgets,a[1]=e,a[2]=t):t=a[2],t):null}e.s(["WidgetProvider",0,function(e){let n,a,i=(0,r.c)(5),{widgets:o,children:l}=e;return i[0]!==o?(n={widgets:o},i[0]=o,i[1]=n):n=i[1],i[2]!==l||i[3]!==n?(a=(0,t.jsx)(s.Provider,{value:n,children:l}),i[2]=l,i[3]=n,i[4]=a):a=i[4],a},"useWidget",0,o],97651);var l=e.i(827003),c=e.i(434703),h=e.i(145074),u=e.i(680540);function p(e){let a,i,s,o=(0,r.c)(7),{faviconUrl:c,sourceUrl:h}=e,[u,p]=(0,n.useState)(!1);o[0]!==c||o[1]!==h?(a=c||function(e){try{let t=new URL(e);return`https://www.google.com/s2/favicons?domain=${t.hostname}&sz=32`}catch{return null}}(h),o[0]=c,o[1]=h,o[2]=a):a=o[2];let m=a;if(!m||u){let e;return o[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(l.GlobeIcon,{size:14,className:"ur-hovercard-globe"}),o[3]=e):e=o[3],e}return o[4]===Symbol.for("react.memo_cache_sentinel")?(i=()=>p(!0),o[4]=i):i=o[4],o[5]!==m?(s=(0,t.jsx)("img",{src:m,alt:"",className:"ur-hovercard-favicon",onError:i}),o[5]=m,o[6]=s):s=o[6],s}function m(e){let a,i,s,o,m,d,g,f,y,b,v,x,w,k=(0,r.c)(47),{citations:A,children:S}=e,[C,_]=(0,n.useState)(0),[M,T]=(0,n.useState)(!1),N=(0,u.useURIsMobile)();if(0===A.length){let e;return k[0]!==S?(e=(0,t.jsx)(t.Fragment,{children:S}),k[0]=S,k[1]=e):e=k[1],e}let E=A[C];if(!E){let e;return k[2]!==S?(e=(0,t.jsx)(t.Fragment,{children:S}),k[2]=S,k[3]=e):e=k[3],e}let z=A.length>1;k[4]!==A.length?(a=e=>{e.preventDefault(),e.stopPropagation(),_(e=>e>0?e-1:A.length-1),T(!1)},k[4]=A.length,k[5]=a):a=k[5];let I=a;k[6]!==A.length?(i=e=>{e.preventDefault(),e.stopPropagation(),_(e=>eT(!0)})}),k[30]=E.description,k[31]=E.previewImageUrl,k[32]=E.referenceDisplayName,k[33]=M,k[34]=b):b=k[34],k[35]!==b||k[36]!==o||k[37]!==m||k[38]!==y?(v=(0,t.jsxs)("div",{className:"ur-hovercard-content",children:[o,m,y,b]}),k[35]=b,k[36]=o,k[37]=m,k[38]=y,k[39]=v):v=k[39],k[40]!==E.referenceUrl||k[41]!==v?(x=(0,t.jsx)(h.HoverCardContent,{children:(0,t.jsx)("a",{href:E.referenceUrl,target:"_blank",rel:"noopener noreferrer",className:"ur-hovercard-link",children:v})}),k[40]=E.referenceUrl,k[41]=v,k[42]=x):x=k[42],k[43]!==N||k[44]!==x||k[45]!==s?(w=(0,t.jsxs)(c.ResponsiveHoverCard,{isMobile:N,children:[s,x]}),k[43]=N,k[44]=x,k[45]=s,k[46]=w):w=k[46],w}let d=new Set(["FACEBOOK_POST","INSTAGRAM_POST","THREADS_POST"]);function g(e){let a,i,s,o,c=(0,r.c)(11),{faviconUrl:h,sourceUrl:u,size:p}=e,m=void 0===p?10:p,[d,g]=(0,n.useState)(!1);c[0]!==h||c[1]!==u?(a=h||function(e){try{let t=new URL(e);return`https://www.google.com/s2/favicons?domain=${t.hostname}&sz=32`}catch{return null}}(u),c[0]=h,c[1]=u,c[2]=a):a=c[2];let f=a;if(!f||d){let e;return c[3]!==m?(e=(0,t.jsx)(l.GlobeIcon,{size:m,className:"ur-citation-icon"}),c[3]=m,c[4]=e):e=c[4],e}return c[5]!==m?(i={width:m,height:m},c[5]=m,c[6]=i):i=c[6],c[7]===Symbol.for("react.memo_cache_sentinel")?(s=()=>g(!0),c[7]=s):s=c[7],c[8]!==f||c[9]!==i?(o=(0,t.jsx)("img",{src:f,alt:"",className:"ur-citation-favicon",style:i,onError:s}),c[8]=f,c[9]=i,c[10]=o):o=c[10],o}function f(e){let n,a=(0,r.c)(6),{citation:i,size:s,variant:o}=e;if("compact"===o){let e;return a[0]!==s?(e=(0,t.jsx)(l.ChainIcon,{size:s}),a[0]=s,a[1]=e):e=a[1],e}let c=i.profileImageUrl??i.faviconUrl;return a[2]!==i.referenceUrl||a[3]!==s||a[4]!==c?(n=(0,t.jsx)(g,{faviconUrl:c,sourceUrl:i.referenceUrl,size:s}),a[2]=i.referenceUrl,a[3]=s,a[4]=c,a[5]=n):n=a[5],n}function y(e){let n,a,i,s,o,c=(0,r.c)(32),{citations:h,className:u,variant:p,showHoverCard:g,renderLink:y,renderHoverCard:b}=e,v=void 0===u?"":u,x=void 0===p?"compact":p,w=void 0===g||g;if(0===h.length)return null;let k=h[0];if(!k)return null;let A=k.referenceDisplayName,S=h.length-1,C=S>0?`${A} +${S}`:A;if(c[0]!==k.sourceType){var _;n=null!=(_=k.sourceType)&&d.has(_),c[0]=k.sourceType,c[1]=n}else n=c[1];let M=n;c[2]!==k.sourceType||c[3]!==M||c[4]!==x?(a=M&&"rich"===x?` ur-citation-pill-rich--${k.sourceType?.toLowerCase().replace("_post","")}`:"",c[2]=k.sourceType,c[3]=M,c[4]=x,c[5]=a):a=c[5];let T=a;if(c[6]!==h||c[7]!==v||c[8]!==A||c[9]!==k||c[10]!==C||c[11]!==T||c[12]!==b||c[13]!==y||c[14]!==w||c[15]!==x){s=Symbol.for("react.early_return_sentinel");e:{let e,r,n,a="rich"===x?`ur-citation-pill-rich${T} ${v}`.trim():`ur-citation-pill ${v}`.trim(),o="rich"===x?12:10;c[18]!==k||c[19]!==o||c[20]!==x?(e=(0,t.jsx)(f,{citation:k,size:o,variant:x}),c[18]=k,c[19]=o,c[20]=x,c[21]=e):e=c[21],c[22]!==k.isVerified||c[23]!==C||c[24]!==x?(r="rich"===x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"ur-citation-label",children:C}),k.isVerified&&(0,t.jsx)(l.CitationVerifiedBadge,{className:"ur-citation-verified"})]}),c[22]=k.isVerified,c[23]=C,c[24]=x,c[25]=r):r=c[25],c[26]!==e||c[27]!==r?(n=(0,t.jsxs)(t.Fragment,{children:[e,r]}),c[26]=e,c[27]=r,c[28]=n):n=c[28];let u=n;if(i=y?y({href:k.referenceUrl,className:a,title:k.description??A,children:u}):(0,t.jsx)("a",{href:k.referenceUrl,target:"_blank",rel:"noopener noreferrer",className:a,title:k.description??A,children:u}),null===b||!w){s=(0,t.jsx)(t.Fragment,{children:i});break e}if(b){s=(0,t.jsx)(t.Fragment,{children:b({citations:h,children:i})});break e}}c[6]=h,c[7]=v,c[8]=A,c[9]=k,c[10]=C,c[11]=T,c[12]=b,c[13]=y,c[14]=w,c[15]=x,c[16]=i,c[17]=s}else i=c[16],s=c[17];return s!==Symbol.for("react.early_return_sentinel")?s:(c[29]!==h||c[30]!==i?(o=(0,t.jsx)(m,{citations:h,children:i}),c[29]=h,c[30]=i,c[31]=o):o=c[31],o)}e.s(["CitationPill",0,y],56517);var b=e.i(600802);function v(e){if(null==e||""===e)return;let t="string"==typeof e?parseFloat(e):e;return isNaN(t)?void 0:t}function x(e,t=2){return null==e||isNaN(e)?"—":e.toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:t})}function w(e){if(!e)return null;try{return JSON.parse(e)}catch{return null}}function k(e){let n,a,i,s,o,l,c,h,u,p,m,d,g,f,y,b,v,x=(0,r.c)(44),{data:w,isPositive:k,xLabels:_}=e;if(w.length<2)return null;if(x[0]!==w){let e=w.map(C);n=Math.min(...e),a=Math.max(...e),x[0]=w,x[1]=n,x[2]=a}else n=x[1],a=x[2];let M=a,T=.1*(M-n||1),N=n-T,E=M+T-N;x[3]===Symbol.for("react.memo_cache_sentinel")?(i={top:4,bottom:4},x[3]=i):i=x[3];let z=i,I=100-z.top-z.bottom;if(x[4]!==w||x[5]!==N||x[6]!==E){let e;x[10]!==w.length||x[11]!==N||x[12]!==E?(e=(e,t)=>({x:t/(w.length-1)*320,y:z.top+I-(e.price-N)/E*I}),x[10]=w.length,x[11]=N,x[12]=E,x[13]=e):e=x[13];let t=w.map(e);s=t[0],o=t[t.length-1],l=t.map(S).join(" "),x[4]=w,x[5]=N,x[6]=E,x[7]=s,x[8]=o,x[9]=l}else s=x[7],o=x[8],l=x[9];let L=l,R=L+` L ${o.x} ${z.top+I}`+` L ${s.x} ${z.top+I} Z`,B=k?"#16a34a":"#dc2626";x[14]===Symbol.for("react.memo_cache_sentinel")?(c=Math.random().toString(36).slice(2),x[14]=c):c=x[14];let $=`stock-gradient-${k?"up":"down"}-${c}`;x[15]!==B?(h=(0,t.jsx)("stop",{offset:"0%",stopColor:B,stopOpacity:"0.3"}),u=(0,t.jsx)("stop",{offset:"100%",stopColor:B,stopOpacity:"0.05"}),x[15]=B,x[16]=h,x[17]=u):(h=x[16],u=x[17]),x[18]!==$||x[19]!==h||x[20]!==u?(p=(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:$,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[h,u]})}),x[18]=$,x[19]=h,x[20]=u,x[21]=p):p=x[21];let P=`url(#${$})`;return x[22]!==R||x[23]!==P?(m=(0,t.jsx)("path",{d:R,fill:P}),x[22]=R,x[23]=P,x[24]=m):m=x[24],x[25]!==B||x[26]!==L?(d=(0,t.jsx)("path",{d:L,fill:"none",stroke:B,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),x[25]=B,x[26]=L,x[27]=d):d=x[27],x[28]!==o.x||x[29]!==o.y||x[30]!==B?(g=(0,t.jsx)("circle",{cx:o.x,cy:o.y,r:"4",fill:B}),x[28]=o.x,x[29]=o.y,x[30]=B,x[31]=g):g=x[31],x[32]!==d||x[33]!==g||x[34]!==p||x[35]!==m?(f=(0,t.jsxs)("svg",{width:"100%",height:100,viewBox:"0 0 320 100",preserveAspectRatio:"none",className:"ur-widget-stock-svg",children:[p,m,d,g]}),x[32]=d,x[33]=g,x[34]=p,x[35]=m,x[36]=f):f=x[36],x[37]!==_?(y=_.map(A),x[37]=_,x[38]=y):y=x[38],x[39]!==y?(b=(0,t.jsx)("div",{className:"ur-widget-stock-xlabels",children:y}),x[39]=y,x[40]=b):b=x[40],x[41]!==f||x[42]!==b?(v=(0,t.jsxs)("div",{className:"ur-widget-stock-chart",children:[f,b]}),x[41]=f,x[42]=b,x[43]=v):v=x[43],v}function A(e,r){return(0,t.jsx)("span",{className:"ur-widget-stock-xlabel",children:e},r)}function S(e,t){return`${0===t?"M":"L"} ${e.x} ${e.y}`}function C(e){return e.price}function _(e){let n,a,i=(0,r.c)(4),{selected:s,onChange:o}=e;i[0]===Symbol.for("react.memo_cache_sentinel")?(n=["1W","1M","1Y","5Y"],i[0]=n):n=i[0];let l=n;return i[1]!==o||i[2]!==s?(a=(0,t.jsx)("div",{className:"ur-widget-stock-tabs",children:l.map(e=>(0,t.jsx)("button",{onClick:()=>o(e),className:`ur-widget-stock-tab ${s===e?"ur-widget-stock-tab-active":""}`,children:e},e))}),i[1]=o,i[2]=s,i[3]=a):a=i[3],a}function M(e){let a,i,s,o,l,c,h,u,p,m,d,g,f,y,b,A,S=(0,r.c)(73),{widget:C,className:M}=e,[T,N]=(0,n.useState)("1W");S[0]!==C.data?(a=function(e){try{return JSON.parse(e)}catch{return null}}(C.data),S[0]=C.data,S[1]=a):a=S[1];let E=a,z=E?.last_updated??Math.floor(Date.now()/1e3);e:{let e;if(!E){let e;S[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],S[2]=e):e=S[2],i=e;break e}S[3]!==z||S[4]!==T||S[5]!==E?(e=function(e,t,r){let n=null,a=0;switch(e){case"1W":n=w(t.thirty_minute_candles),a=r-432e3;break;case"1M":n=w(t.daily_candles),a=r-2592e3;break;case"1Y":n=w(t.daily_candles),a=r-31536e3;break;case"5Y":n=w(t.weekly_candles),a=r-15768e4}if(!n||!n.closePrice||!n.timestamp)return[];let i=[];for(let e=0;e=a&&i.push({timestamp:t,price:r})}return i}(T,E,z),S[3]=z,S[4]=T,S[5]=E,S[6]=e):e=S[6],i=e}let I=i;S[7]!==I||S[8]!==T?(s=function(e,t){if(0===t.length)return[];let r=Math.max(1,Math.floor(t.length/5)),n=[];for(let a=0;a=0;let d=v(U);o="USD"===X?"$":X;let g=`ur-widget ur-widget-stock ${M||""}`;S[30]!==g?(c=g.trim(),S[30]=g,S[31]=c):c=S[31],h="ur-widget-card";let f=`ur-widget-stock-arrow ${l?"ur-widget-stock-positive":"ur-widget-stock-negative"}`,y=l?"▲":"▼";S[32]!==f||S[33]!==y?(e=(0,t.jsx)("span",{className:f,children:y}),S[32]=f,S[33]=y,S[34]=e):e=S[34],S[35]!==W?(r=(0,t.jsx)("span",{className:"ur-widget-stock-symbol",children:W}),S[35]=W,S[36]=r):r=S[36],S[37]!==V?(n=V&&(0,t.jsx)("span",{className:"ur-widget-stock-name",children:V}),S[37]=V,S[38]=n):n=S[38],S[39]!==e||S[40]!==r||S[41]!==n?(a=(0,t.jsxs)("div",{className:"ur-widget-stock-ticker",children:[e,r,n]}),S[39]=e,S[40]=r,S[41]=n,S[42]=a):a=S[42],S[43]!==T?(i=(0,t.jsx)(_,{selected:T,onChange:N}),S[43]=T,S[44]=i):i=S[44],S[45]!==a||S[46]!==i?(u=(0,t.jsxs)("div",{className:"ur-widget-stock-header",children:[a,i]}),S[45]=a,S[46]=i,S[47]=u):u=S[47],p=null!=d&&(0,t.jsxs)("div",{className:"ur-widget-stock-price-section",children:[(0,t.jsxs)("div",{className:"ur-widget-stock-price",children:[o,x(d)]}),(0,t.jsxs)("div",{className:`ur-widget-stock-change ${l?"ur-widget-stock-positive":"ur-widget-stock-negative"}`,children:[l?"+":"",o,x(Math.abs(s))," (",l?"+":"",x(m),"%)"]})]}),S[14]=$,S[15]=M,S[16]=X,S[17]=U,S[18]=V,S[19]=P,S[20]=O,S[21]=j,S[22]=T,S[23]=W,S[24]=o,S[25]=l,S[26]=c,S[27]=h,S[28]=u,S[29]=p}else o=S[24],l=S[25],c=S[26],h=S[27],u=S[28],p=S[29];if(S[48]!==I||S[49]!==l||S[50]!==L?(m=I.length>0&&(0,t.jsx)("div",{className:"ur-widget-stock-chart-container",children:(0,t.jsx)(k,{data:I,isPositive:l,xLabels:L})}),S[48]=I,S[49]=l,S[50]=L,S[51]=m):m=S[51],S[52]!==q){var Y;d=null!=q&&(0,t.jsxs)("div",{className:"ur-widget-stock-stat",children:[(0,t.jsx)("span",{className:"ur-widget-stock-stat-label",children:"Mkt Cap"}),(0,t.jsx)("span",{className:"ur-widget-stock-stat-value",children:(Y=(v(q)??0)*1e6,isNaN(Y))?"—":Y>=1e12?`$${(Y/1e12).toFixed(2)}T`:Y>=1e9?`$${(Y/1e9).toFixed(2)}B`:Y>=1e6?`$${(Y/1e6).toFixed(2)}M`:Y>=1e3?`$${(Y/1e3).toFixed(1)}K`:`$${Y.toFixed(2)}`})]}),S[52]=q,S[53]=d}else d=S[53];return S[54]!==F?(g=null!=F&&(0,t.jsxs)("div",{className:"ur-widget-stock-stat",children:[(0,t.jsx)("span",{className:"ur-widget-stock-stat-label",children:"P/E"}),(0,t.jsx)("span",{className:"ur-widget-stock-stat-value",children:x(v(F))})]}),S[54]=F,S[55]=g):g=S[55],S[56]!==o||S[57]!==G||S[58]!==H?(f=(null!=G||null!=H)&&(0,t.jsxs)("div",{className:"ur-widget-stock-stat",children:[(0,t.jsx)("span",{className:"ur-widget-stock-stat-label",children:"52W"}),(0,t.jsxs)("span",{className:"ur-widget-stock-stat-value",children:[o,x(v(H),2)," - ",o,x(v(G),2)]})]}),S[56]=o,S[57]=G,S[58]=H,S[59]=f):f=S[59],S[60]!==d||S[61]!==g||S[62]!==f?(y=(0,t.jsxs)("div",{className:"ur-widget-stock-stats",children:[d,g,f]}),S[60]=d,S[61]=g,S[62]=f,S[63]=y):y=S[63],S[64]!==m||S[65]!==y||S[66]!==h||S[67]!==u||S[68]!==p?(b=(0,t.jsxs)("div",{className:h,children:[u,p,m,y]}),S[64]=m,S[65]=y,S[66]=h,S[67]=u,S[68]=p,S[69]=b):b=S[69],S[70]!==c||S[71]!==b?(A=(0,t.jsx)("div",{className:c,children:b}),S[70]=c,S[71]=b,S[72]=A):A=S[72],A}function T(e,t){if(!e)return t;let r=e.match(/#h=(\d+(?:\.\d+)?)/);return r?`${r[1]}em`:t}function N(e){return e.replace(//g,"\\gt ")}function E(e,t,r){let n=!1,a=!1;for(let i=r;i0){let e;return p[26]!==v||p[27]!==m?(e=(0,t.jsx)(y,{citations:v,className:m}),p[26]=v,p[27]=m,p[28]=e):e=p[28],e}let i=`ur-citation-fallback ${m}`;return p[29]!==i?(e=i.trim(),p[29]=i,p[30]=e):e=p[30],p[31]!==n||p[32]!==a||p[33]!==s||p[34]!==e?(r=(0,t.jsx)("a",{href:a,className:e,...s,children:n}),p[31]=n,p[32]=a,p[33]=s,p[34]=e,p[35]=r):r=p[35],r}if(d){let e,r,i=`ur-link ur-link-external ${m}`;return p[36]!==i?(e=i.trim(),p[36]=i,p[37]=e):e=p[37],p[38]!==n||p[39]!==a||p[40]!==s||p[41]!==e?(r=(0,t.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:e,...s,children:n}),p[38]=n,p[39]=a,p[40]=s,p[41]=e,p[42]=r):r=p[42],r}let k=`ur-link ${m}`;return p[43]!==k?(c=k.trim(),p[43]=k,p[44]=c):c=p[44],p[45]!==n||p[46]!==a||p[47]!==s||p[48]!==c?(h=(0,t.jsx)("a",{href:a,className:c,...s,children:n}),p[45]=n,p[46]=a,p[47]=s,p[48]=c,p[49]=h):h=p[49],h}],960327),e.s(["URMarkdownImage",0,function(e){let a,i,s,o,l,c,h,u,p=(0,r.c)(43);p[0]!==e?({alt:a,src:s,title:l,className:o,...i}=e,p[0]=e,p[1]=a,p[2]=i,p[3]=s,p[4]=o,p[5]=l):(a=p[1],i=p[2],s=p[3],o=p[4],l=p[5]);let m=void 0===o?"":o,d="string"==typeof s?s:void 0,[g,f]=(0,n.useState)(!1),y=l??"";if(p[6]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{f(!1)},p[6]=c):c=p[6],p[7]!==s?(h=[s],p[7]=s,p[8]=h):h=p[8],(0,n.useEffect)(c,h),("latex-display"===a||"latex"===a)&&g){let e;return p[9]!==y?(e=(0,t.jsx)("span",{children:y}),p[9]=y,p[10]=e):e=p[10],e}if("latex-display"===a){let e,r,n,a,s;p[11]===Symbol.for("react.memo_cache_sentinel")?(e=()=>f(!0),p[11]=e):e=p[11];let o=`w-auto dark:invert ${m}`;return p[12]!==o?(r=o.trim(),p[12]=o,p[13]=r):r=p[13],p[14]!==d?(n=T(d,"1.6em"),p[14]=d,p[15]=n):n=p[15],p[16]!==n?(a={height:n},p[16]=n,p[17]=a):a=p[17],p[18]!==y||p[19]!==d||p[20]!==i||p[21]!==r||p[22]!==a?(s=(0,t.jsx)("span",{className:"my-2 flex justify-center",children:(0,t.jsx)("img",{alt:y,src:d,onError:e,className:r,style:a,...i})}),p[18]=y,p[19]=d,p[20]=i,p[21]=r,p[22]=a,p[23]=s):s=p[23],s}if("latex"===a){let e,r,n,a,s;p[24]===Symbol.for("react.memo_cache_sentinel")?(e=()=>f(!0),p[24]=e):e=p[24];let o=`inline-block align-middle dark:invert ${m}`;return p[25]!==o?(r=o.trim(),p[25]=o,p[26]=r):r=p[26],p[27]!==d?(n=T(d,"1.6em"),p[27]=d,p[28]=n):n=p[28],p[29]!==n?(a={height:n},p[29]=n,p[30]=a):a=p[30],p[31]!==y||p[32]!==d||p[33]!==i||p[34]!==r||p[35]!==a?(s=(0,t.jsx)("img",{alt:y,src:d,onError:e,className:r,style:a,...i}),p[31]=y,p[32]=d,p[33]=i,p[34]=r,p[35]=a,p[36]=s):s=p[36],s}let b=m||void 0;return p[37]!==a||p[38]!==d||p[39]!==i||p[40]!==b||p[41]!==l?(u=(0,t.jsx)("img",{alt:a,src:d,title:l,className:b,...i}),p[37]=a,p[38]=d,p[39]=i,p[40]=b,p[41]=l,p[42]=u):u=p[42],u}],632197),e.s(["processMathContent",0,function(e){if(!e)return e;let t="",r=0,n=!1,a=!1,i=!1;for(;r0&&"\n"!==t[t.length-1]&&(t+="\n"),t+="$$\n"+N(a)+"\n$$",(r=n+2)0&&"\n"!==a[0]&&a.includes("\n")?t+="$$"+N(a.replace(/\n/g," "))+"$$":t+=e.substring(r,n+2),r=n+2}else t+="\\$\\$",r+=2;continue}if(!n){t+="$",r++;continue}let a=/\s/.test(n),i=-1;for(let t=r+1;t{if(!i)return e;let o=i.split("\n"),l=1/0;for(let e of o){if(0===e.trim().length)continue;let t=e.match(/^[ \t]*/),r=t?t[0].length:0;if(0===(l=Math.min(l,r)))break}return 0===l||l===1/0?e:t+r+n+a+o.map(e=>0===e.trim().length?e:e.slice(l)).join("\n")+s}):e}],617346)},717995,156292,e=>{"use strict";let t,r,n,a,i,s;var o,l,c,h,u,p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,f=e.i(844620),y=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function b(){return"u">typeof performance?performance.now():Date.now()}let v=(e,t)=>e+(t-e%t)%t;async function x(e){let t,r,n={};function a(e){r=e,n.HEAPU8=new Uint8Array(e),n.HEAPU32=new Uint32Array(e)}let i="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,r=1024){let n=t+r,a=t;for(;e[a]&&!(a>=n);)++a;if(a-t>16&&e.buffer&&i)return i.decode(e.subarray(t,a));let s="";for(;t>10,56320|1023&e)}}return s}(n.HEAPU8,e,t):""}let o={emscripten_get_now:b,emscripten_memcpy_big:function(e,t,r){n.HEAPU8.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){let i=n.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let n=1;n<=4;n*=2){let s=i*(1+.2/n);if(s=Math.min(s,e+0x6000000),function(e){try{return t.grow(e-r.byteLength+65535>>>16),a(t.buffer),1}catch{}}(Math.min(0x80000000,v(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function l(){let r=await e({env:o,wasi_snapshot_preview1:o});a((t=r.memory).buffer),Object.assign(n,r),n.UTF8ToString=s}return await l(),n}var w=Object.defineProperty,k=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?w(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};let A=null;class S{constructor(e){k(this,"utf16Length"),k(this,"utf8Length"),k(this,"utf16Value"),k(this,"utf8Value"),k(this,"utf16OffsetToUtf8"),k(this,"utf8OffsetToUtf16");const t=e.length,r=S._utf8ByteLength(e),n=r!==t,a=n?new Uint32Array(t+1):null;n&&(a[t]=r);const i=n?new Uint32Array(r+1):null;n&&(i[r]=t);const s=new Uint8Array(r);let o=0;for(let r=0;r=55296&&l<=56319&&r+1=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,h=!0)}n&&(a[r]=o,h&&(a[r+1]=o),c<=127?i[o+0]=r:c<=2047?(i[o+0]=r,i[o+1]=r):c<=65535?(i[o+0]=r,i[o+1]=r,i[o+2]=r):(i[o+0]=r,i[o+1]=r,i[o+2]=r,i[o+3]=r)),c<=127?s[o++]=c:(c<=2047?s[o++]=192|(1984&c)>>>6:(c<=65535?s[o++]=224|(61440&c)>>>12:(s[o++]=240|(1835008&c)>>>18,s[o++]=128|(258048&c)>>>12),s[o++]=128|(4032&c)>>>6),s[o++]=128|(63&c)>>>0),h&&r++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=i}static _utf8ByteLength(e){let t=0;for(let r=0,n=e.length;r=55296&&a<=56319&&r+1=56320&&t<=57343&&(i=(a-55296<<10)+65536|t-56320,s=!0)}i<=127?t+=1:i<=2047?t+=2:i<=65535?t+=3:t+=4,s&&r++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let C=class e{constructor(t){if(k(this,"id",++e.LAST_ID),k(this,"_onigBinding"),k(this,"content"),k(this,"utf16Length"),k(this,"utf8Length"),k(this,"utf16OffsetToUtf8"),k(this,"utf8OffsetToUtf16"),k(this,"ptr"),!A)throw new y("Must invoke loadWasm first.");this._onigBinding=A,this.content=t;const r=new S(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=A.omalloc(1e4)),e._sharedPtrInUse=!0,A.HEAPU8.set(r.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=r.createString(A)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};k(C,"LAST_ID",0),k(C,"_sharedPtr",0),k(C,"_sharedPtrInUse",!1);class _{constructor(e){if(k(this,"_onigBinding"),k(this,"_ptr"),!A)throw new y("Must invoke loadWasm first.");const t=[],r=[];for(let n=0,a=e.length;n{let r=e;if("function"==typeof(r=await r)&&(r=await r(t)),"function"==typeof r&&(r=await r(t)),"function"==typeof r.instantiator)r=await r.instantiator(t);else if("function"==typeof r.default)r=await r.default(t);else{var n,a,i,s;if(void 0!==r.data&&(r=r.data),n=r,"u">typeof Response&&n instanceof Response){r="function"==typeof WebAssembly.instantiateStreaming?await (i=r,e=>WebAssembly.instantiateStreaming(i,e))(t):await (s=r,async e=>{let t=await s.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(a=r,"u">typeof ArrayBuffer&&(a instanceof ArrayBuffer||ArrayBuffer.isView(a))||void 0!==f.Buffer&&f.Buffer.isBuffer?.(a)||"u">typeof SharedArrayBuffer&&a instanceof SharedArrayBuffer||"u">typeof Uint32Array&&a instanceof Uint32Array||r instanceof WebAssembly.Module)?r=await T(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await T(r.default)(t))}return"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}())}function T(e){return t=>WebAssembly.instantiate(e,t)}async function N(e){return e&&await M(e),{createScanner:e=>new _(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new C(e)}}e.s(["createOnigurumaEngine",0,N,"getDefaultWasmLoader",0,function(){return r},"loadWasm",0,M,"setDefaultWasmLoader",0,function(e){r=e}],661324);var E=e.i(661324),z=(e=>{let t={};for(var r in e)p(t,r,{get:e[r],enumerable:!0});return p(t,Symbol.toStringTag,{value:"Module"}),t})({});((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,i=d(t),s=0,o=i.length;st[e]).bind(null,a),enumerable:!(n=m(t,a))||n.enumerable});return})(z,E,"default");let I=[{id:"abap",name:"ABAP",import:()=>e.A(372911)},{id:"actionscript-3",name:"ActionScript",import:()=>e.A(210843)},{id:"ada",name:"Ada",import:()=>e.A(810046)},{id:"angular-html",name:"Angular HTML",import:()=>e.A(675374)},{id:"angular-ts",name:"Angular TypeScript",import:()=>e.A(621128)},{id:"apache",name:"Apache Conf",import:()=>e.A(512456)},{id:"apex",name:"Apex",import:()=>e.A(351581)},{id:"apl",name:"APL",import:()=>e.A(107619)},{id:"applescript",name:"AppleScript",import:()=>e.A(528452)},{id:"ara",name:"Ara",import:()=>e.A(459310)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>e.A(554289)},{id:"asm",name:"Assembly",import:()=>e.A(29317)},{id:"astro",name:"Astro",import:()=>e.A(441208)},{id:"awk",name:"AWK",import:()=>e.A(317309)},{id:"ballerina",name:"Ballerina",import:()=>e.A(416302)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>e.A(930269)},{id:"beancount",name:"Beancount",import:()=>e.A(320243)},{id:"berry",name:"Berry",aliases:["be"],import:()=>e.A(574231)},{id:"bibtex",name:"BibTeX",import:()=>e.A(671461)},{id:"bicep",name:"Bicep",import:()=>e.A(855913)},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>e.A(136218)},{id:"blade",name:"Blade",import:()=>e.A(955180)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>e.A(146033)},{id:"c",name:"C",import:()=>e.A(403454)},{id:"c3",name:"C3",import:()=>e.A(265801)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>e.A(238897)},{id:"cairo",name:"Cairo",import:()=>e.A(790343)},{id:"clarity",name:"Clarity",import:()=>e.A(813599)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>e.A(804585)},{id:"cmake",name:"CMake",import:()=>e.A(92443)},{id:"cobol",name:"COBOL",import:()=>e.A(155560)},{id:"codeowners",name:"CODEOWNERS",import:()=>e.A(60755)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>e.A(205488)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>e.A(719466)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>e.A(38519)},{id:"coq",name:"Coq",import:()=>e.A(713173)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>e.A(101570)},{id:"crystal",name:"Crystal",import:()=>e.A(460547)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>e.A(210124)},{id:"css",name:"CSS",import:()=>e.A(285647)},{id:"csv",name:"CSV",import:()=>e.A(362699)},{id:"cue",name:"CUE",import:()=>e.A(162725)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>e.A(130863)},{id:"d",name:"D",import:()=>e.A(364202)},{id:"dart",name:"Dart",import:()=>e.A(474085)},{id:"dax",name:"DAX",import:()=>e.A(7169)},{id:"desktop",name:"Desktop",import:()=>e.A(432008)},{id:"diff",name:"Diff",import:()=>e.A(315021)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>e.A(313009)},{id:"dotenv",name:"dotEnv",import:()=>e.A(782209)},{id:"dream-maker",name:"Dream Maker",import:()=>e.A(647204)},{id:"edge",name:"Edge",import:()=>e.A(374002)},{id:"elixir",name:"Elixir",import:()=>e.A(827968)},{id:"elm",name:"Elm",import:()=>e.A(261887)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>e.A(233296)},{id:"erb",name:"ERB",import:()=>e.A(863717)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>e.A(857099)},{id:"fennel",name:"Fennel",import:()=>e.A(109955)},{id:"fish",name:"Fish",import:()=>e.A(491345)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>e.A(607143)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>e.A(723240)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>e.A(698002)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>e.A(459856)},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>e.A(400174)},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>e.A(919704)},{id:"gdshader",name:"GDShader",import:()=>e.A(141451)},{id:"genie",name:"Genie",import:()=>e.A(355998)},{id:"gherkin",name:"Gherkin",import:()=>e.A(336529)},{id:"git-commit",name:"Git Commit Message",import:()=>e.A(458420)},{id:"git-rebase",name:"Git Rebase Message",import:()=>e.A(117191)},{id:"gleam",name:"Gleam",import:()=>e.A(601964)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>e.A(79535)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>e.A(230995)},{id:"glsl",name:"GLSL",import:()=>e.A(528754)},{id:"gn",name:"GN",import:()=>e.A(561015)},{id:"gnuplot",name:"Gnuplot",import:()=>e.A(13605)},{id:"go",name:"Go",import:()=>e.A(348368)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>e.A(603250)},{id:"groovy",name:"Groovy",import:()=>e.A(329128)},{id:"hack",name:"Hack",import:()=>e.A(332468)},{id:"haml",name:"Ruby Haml",import:()=>e.A(421221)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>e.A(18523)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>e.A(243339)},{id:"haxe",name:"Haxe",import:()=>e.A(861507)},{id:"hcl",name:"HashiCorp HCL",import:()=>e.A(447996)},{id:"hjson",name:"Hjson",import:()=>e.A(744295)},{id:"hlsl",name:"HLSL",import:()=>e.A(504591)},{id:"html",name:"HTML",import:()=>e.A(580086)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>e.A(275731)},{id:"http",name:"HTTP",import:()=>e.A(754737)},{id:"hurl",name:"Hurl",import:()=>e.A(288709)},{id:"hxml",name:"HXML",import:()=>e.A(354375)},{id:"hy",name:"Hy",import:()=>e.A(345636)},{id:"imba",name:"Imba",import:()=>e.A(331425)},{id:"ini",name:"INI",aliases:["properties"],import:()=>e.A(215831)},{id:"java",name:"Java",import:()=>e.A(197725)},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>e.A(426664)},{id:"jinja",name:"Jinja",import:()=>e.A(854038)},{id:"jison",name:"Jison",import:()=>e.A(117896)},{id:"json",name:"JSON",import:()=>e.A(231569)},{id:"json5",name:"JSON5",import:()=>e.A(586773)},{id:"jsonc",name:"JSON with Comments",import:()=>e.A(753838)},{id:"jsonl",name:"JSON Lines",import:()=>e.A(629391)},{id:"jsonnet",name:"Jsonnet",import:()=>e.A(892914)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>e.A(814221)},{id:"jsx",name:"JSX",import:()=>e.A(781998)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>e.A(67808)},{id:"just",name:"Just",import:()=>e.A(952661)},{id:"kdl",name:"KDL",import:()=>e.A(489096)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>e.A(347074)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>e.A(909274)},{id:"latex",name:"LaTeX",import:()=>e.A(389140)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>e.A(278968)},{id:"less",name:"Less",import:()=>e.A(367712)},{id:"liquid",name:"Liquid",import:()=>e.A(193702)},{id:"llvm",name:"LLVM IR",import:()=>e.A(46223)},{id:"log",name:"Log file",import:()=>e.A(545981)},{id:"logo",name:"Logo",import:()=>e.A(654210)},{id:"lua",name:"Lua",import:()=>e.A(338974)},{id:"luau",name:"Luau",import:()=>e.A(951997)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>e.A(850833)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>e.A(385633)},{id:"marko",name:"Marko",import:()=>e.A(440342)},{id:"matlab",name:"MATLAB",import:()=>e.A(795128)},{id:"mdc",name:"MDC",import:()=>e.A(521890)},{id:"mdx",name:"MDX",import:()=>e.A(432442)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>e.A(355074)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>e.A(732504)},{id:"mojo",name:"Mojo",import:()=>e.A(296973)},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>e.A(203147)},{id:"move",name:"Move",import:()=>e.A(421077)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>e.A(357281)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>e.A(151588)},{id:"nextflow-groovy",name:"Nextflow Groovy",import:()=>e.A(98113)},{id:"nginx",name:"Nginx",import:()=>e.A(86530)},{id:"nim",name:"Nim",import:()=>e.A(836600)},{id:"nix",name:"Nix",import:()=>e.A(20784)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>e.A(603967)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>e.A(898090)},{id:"objective-cpp",name:"Objective-C++",import:()=>e.A(804653)},{id:"ocaml",name:"OCaml",import:()=>e.A(20125)},{id:"odin",name:"Odin",import:()=>e.A(790399)},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>e.A(634893)},{id:"pascal",name:"Pascal",import:()=>e.A(488965)},{id:"perl",name:"Perl",import:()=>e.A(283010)},{id:"php",name:"PHP",import:()=>e.A(123007)},{id:"pkl",name:"Pkl",import:()=>e.A(710816)},{id:"plsql",name:"PL/SQL",import:()=>e.A(232581)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>e.A(564943)},{id:"polar",name:"Polar",import:()=>e.A(233794)},{id:"postcss",name:"PostCSS",import:()=>e.A(854773)},{id:"powerquery",name:"PowerQuery",import:()=>e.A(776069)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>e.A(104414)},{id:"prisma",name:"Prisma",import:()=>e.A(586577)},{id:"prolog",name:"Prolog",import:()=>e.A(176833)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>e.A(25448)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>e.A(69196)},{id:"puppet",name:"Puppet",import:()=>e.A(431843)},{id:"purescript",name:"PureScript",import:()=>e.A(724400)},{id:"python",name:"Python",aliases:["py"],import:()=>e.A(463765)},{id:"qml",name:"QML",import:()=>e.A(493558)},{id:"qmldir",name:"QML Directory",import:()=>e.A(309577)},{id:"qss",name:"Qt Style Sheets",import:()=>e.A(39083)},{id:"r",name:"R",import:()=>e.A(585697)},{id:"racket",name:"Racket",import:()=>e.A(905797)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>e.A(410870)},{id:"razor",name:"ASP.NET Razor",import:()=>e.A(327619)},{id:"reg",name:"Windows Registry Script",import:()=>e.A(23233)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>e.A(481225)},{id:"rel",name:"Rel",import:()=>e.A(381082)},{id:"riscv",name:"RISC-V",import:()=>e.A(801525)},{id:"ron",name:"RON",import:()=>e.A(776692)},{id:"rosmsg",name:"ROS Interface",import:()=>e.A(499938)},{id:"rst",name:"reStructuredText",import:()=>e.A(734993)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>e.A(827940)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>e.A(888200)},{id:"sas",name:"SAS",import:()=>e.A(155521)},{id:"sass",name:"Sass",import:()=>e.A(665190)},{id:"scala",name:"Scala",import:()=>e.A(576633)},{id:"scheme",name:"Scheme",import:()=>e.A(499899)},{id:"scss",name:"SCSS",import:()=>e.A(229644)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>e.A(79554)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>e.A(644459)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>e.A(113325)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>e.A(346358)},{id:"smalltalk",name:"Smalltalk",import:()=>e.A(492853)},{id:"solidity",name:"Solidity",import:()=>e.A(832075)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>e.A(897337)},{id:"sparql",name:"SPARQL",import:()=>e.A(595954)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>e.A(93187)},{id:"sql",name:"SQL",import:()=>e.A(297535)},{id:"ssh-config",name:"SSH Config",import:()=>e.A(513359)},{id:"stata",name:"Stata",import:()=>e.A(417476)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>e.A(771165)},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>e.A(579752)},{id:"svelte",name:"Svelte",import:()=>e.A(371927)},{id:"swift",name:"Swift",import:()=>e.A(231050)},{id:"system-verilog",name:"SystemVerilog",import:()=>e.A(754754)},{id:"systemd",name:"Systemd Units",import:()=>e.A(175312)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>e.A(917780)},{id:"tasl",name:"Tasl",import:()=>e.A(116972)},{id:"tcl",name:"Tcl",import:()=>e.A(878697)},{id:"templ",name:"Templ",import:()=>e.A(390784)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>e.A(91987)},{id:"tex",name:"TeX",import:()=>e.A(773973)},{id:"toml",name:"TOML",import:()=>e.A(62101)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>e.A(679776)},{id:"tsv",name:"TSV",import:()=>e.A(822862)},{id:"tsx",name:"TSX",import:()=>e.A(980518)},{id:"turtle",name:"Turtle",import:()=>e.A(647895)},{id:"twig",name:"Twig",import:()=>e.A(313199)},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>e.A(706152)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>e.A(116181)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>e.A(303369)},{id:"v",name:"V",import:()=>e.A(167695)},{id:"vala",name:"Vala",import:()=>e.A(24030)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>e.A(547912)},{id:"verilog",name:"Verilog",import:()=>e.A(448620)},{id:"vhdl",name:"VHDL",import:()=>e.A(49761)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>e.A(324476)},{id:"vue",name:"Vue",import:()=>e.A(518650)},{id:"vue-html",name:"Vue HTML",import:()=>e.A(812821)},{id:"vue-vine",name:"Vue Vine",import:()=>e.A(922614)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>e.A(748672)},{id:"wasm",name:"WebAssembly",import:()=>e.A(191718)},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>e.A(165460)},{id:"wgsl",name:"WGSL",import:()=>e.A(168808)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>e.A(308774)},{id:"wit",name:"WebAssembly Interface Types",import:()=>e.A(920072)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>e.A(761964)},{id:"xml",name:"XML",import:()=>e.A(956054)},{id:"xsl",name:"XSL",import:()=>e.A(737577)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>e.A(174647)},{id:"zenscript",name:"ZenScript",import:()=>e.A(80303)},{id:"zig",name:"Zig",import:()=>e.A(332854)}],L=Object.fromEntries(I.map(e=>[e.id,e.import])),R=Object.fromEntries(I.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),B={...L,...R},$=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>e.A(369535)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>e.A(912789)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>e.A(805356)},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>e.A(753788)},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>e.A(658560)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>e.A(798446)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>e.A(995192)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>e.A(601956)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>e.A(981852)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>e.A(894385)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>e.A(4756)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>e.A(112452)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>e.A(201517)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>e.A(938758)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>e.A(337397)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>e.A(368772)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>e.A(911097)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>e.A(92803)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>e.A(375307)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>e.A(868776)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>e.A(319627)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>e.A(451146)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>e.A(433938)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>e.A(180063)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>e.A(277394)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>e.A(83447)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>e.A(988191)},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>e.A(240922)},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:()=>e.A(716067)},{id:"houston",displayName:"Houston",type:"dark",import:()=>e.A(896014)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>e.A(436018)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>e.A(910092)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>e.A(192796)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>e.A(510016)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>e.A(59772)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>e.A(927844)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>e.A(738791)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>e.A(868387)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>e.A(725980)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>e.A(21359)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>e.A(186101)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>e.A(45939)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>e.A(835004)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>e.A(784792)},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>e.A(335609)},{id:"nord",displayName:"Nord",type:"dark",import:()=>e.A(821035)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>e.A(929285)},{id:"one-light",displayName:"One Light",type:"light",import:()=>e.A(310218)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>e.A(912139)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>e.A(54330)},{id:"red",displayName:"Red",type:"dark",import:()=>e.A(520245)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>e.A(205922)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>e.A(448612)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>e.A(608137)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>e.A(253005)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>e.A(534582)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>e.A(459472)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>e.A(544639)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>e.A(543065)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>e.A(912675)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>e.A(857259)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>e.A(701461)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>e.A(767249)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>e.A(447509)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>e.A(542111)}].map(e=>[e.id,e.import]));var P=class extends Error{constructor(e){super(e),this.name="ShikiError"}},O=e.i(178414);function j(e,...t){return t.forEach(t=>{for(let r in t)e[r]=t[r]}),e}var D=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,q=class{static hasCaptures(e){return null!==e&&(D.lastIndex=0,D.test(e))}static replaceCaptures(e,t,r){return e.replace(D,(e,n,a,i)=>{let s=r[parseInt(n||a,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(i){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function F(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let n=0;ni));if(0!==r)return r}return 0}return r-n}function G(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function H(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var U=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},W=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let e=0,a=t.length;e1&&(h=i.slice(0,i.length-1)).reverse(),r[n++]=new Y(c,h,e,s,o,l)}}return r}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var r,n;let a=(r=e.scope,r<(n=t.scope)?-1:+(r>n));return 0!==a||0!==(a=F(e.parentScopes,t.parentScopes))?a:e.index-t.index});let r=0,n="#000000",a="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(r=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(a=t.background)}let i=new K(t),s=new X(r,i.getId(n),i.getId(a)),o=new ee(new Q(0,null,-1,0,0),[]);for(let t=0,r=e.length;tthis._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,r=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let a=0;a"===i){if(a===t.length-1)return!1;i=t[++a],s=!0}for(;e&&(r=e.scopeName,!((n=i)===r||r.startsWith(n)&&"."===r[n.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return r?new X(r.fontStyle,r.foreground,r.background):null}},V=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,r){for(let n of r)t=new e(t,n);return t}static from(...t){let r=null;for(let n=0;ne?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==r&&(this.foreground=r),0!==n&&(this.background=n)}},ee=class e{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;">"===e.parentScopes[r]&&r++,">"===t.parentScopes[n]&&n++,!(r>=e.parentScopes.length)&&!(n>=t.parentScopes.length);){let a=t.parentScopes[n].length-e.parentScopes[r].length;if(0!==a)return a;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,r,n=t.indexOf(".");if(-1===n?(e=t,r=""):(e=t.substring(0,n),r=t.substring(n+1)),this._children.hasOwnProperty(e))return this._children[e].match(r)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(e._cmpBySpecificity),r}insert(t,r,n,a,i,s){let o,l,c;if(""===r)return void this._doInsertHere(t,n,a,i,s);let h=r.indexOf(".");-1===h?(o=r,l=""):(o=r.substring(0,h),l=r.substring(h+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),Q.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,n,a,i,s)}_doInsertHere(e,t,r,n,a){if(null===t)return void this._mainRule.acceptOverwrite(e,r,n,a);for(let i=0,s=this._rulesWithParentScopes.length;i>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,r,n,a,i,s,o){let l=e.getLanguageId(t),c=e.getTokenType(t),h=+!!e.containsBalancedBrackets(t),u=e.getFontStyle(t),p=e.getForeground(t),m=e.getBackground(t);return 0!==r&&(l=r),8!==n&&(c=n),null!==a&&(h=+!!a),-1!==i&&(u=i),0!==s&&(p=s),0!==o&&(m=o),(l|c<<8|h<<10|u<<11|p<<15|m<<24)>>>0}};function er(e,t){var r;let n,a,i=[],s=(r=e,a=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(r),{next:()=>{if(!a)return null;let e=a[0];return a=n.exec(r),e}}),o=s.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=s.next()}let t=c();if(i.push({matcher:t,priority:e}),","!==o)break;o=s.next()}return i;function l(){if("-"===o){o=s.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=s.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o)t=c()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if(en(o)){let e=[];do e.push(o),o=s.next();while(en(o))return r=>t(e,r)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function en(e){return!!e&&!!e.match(/[\w\.:]+/)}var ea=((l=ea||{})[l.None=0]="None",l[l.NotBeginString=1]="NotBeginString",l[l.NotEndString=2]="NotEndString",l[l.NotBeginPosition=4]="NotBeginPosition",l[l.DebugCall=8]="DebugCall",l);function ei(e){"function"==typeof e.dispose&&e.dispose()}var es=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},eo=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},el=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ec=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new es(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new el;for(let r of e)!function(e,t,r,n){let a=r.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let i=r.lookup(t);e instanceof es?eu({baseGrammar:i,selfGrammar:a},n):eh(e.ruleName,{baseGrammar:i,selfGrammar:a,repository:a.repository},n);let s=r.injections(e.scopeName);if(s)for(let e of s)n.add(new es(e))}(r,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof es){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function eh(e,t,r){t.repository&&t.repository[e]&&ep([t.repository[e]],t,r)}function eu(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ep(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ep(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ep(e,t,r){for(let n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);let e=n.repository?j({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&ep(n.patterns,{...t,repository:e},r);let a=n.include;if(!a)continue;let i=eb(a);switch(i.kind){case 0:eu({...t,selfGrammar:t.baseGrammar},r);break;case 1:eu(t,r);break;case 2:eh(i.ruleName,{...t,repository:e},r);break;case 3:case 4:let s=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===i.kind?eh(i.ruleName,n,r):eu(n,r)}else 4===i.kind?r.add(new eo(i.scopeName,i.ruleName)):r.add(new es(i.scopeName))}}}var em=class{kind=0},ed=class{kind=1},eg=class{constructor(e){this.ruleName=e}kind=2},ef=class{constructor(e){this.scopeName=e}kind=3},ey=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function eb(e){if("$base"===e)return new em;if("$self"===e)return new ed;let t=e.indexOf("#");return -1===t?new ef(e):0===t?new eg(e.substring(1)):new ey(e.substring(0,t),e.substring(t+1))}var ev=/\\(\d+)/,ex=/\\(\d+)/g;Symbol("RuleId");var ew=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=q.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=q.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let r=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===r?t:~r==t.length-1?e(t.substring(0,t.length-1)):t.substr(~r+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?q.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?q.replaceCaptures(this._contentName,e,t):this._contentName}},ek=class extends ew{retokenizeCapturedWithRuleId;constructor(e,t,r,n,a){super(e,t,r,n),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,r,n){throw Error("Not supported!")}},eA=class extends ew{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,a){super(e,t,r,null),this._match=new eT(n,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new eN,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eS=class extends ew{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,a){super(e,t,r,n),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new eN,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eC=class extends ew{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,a,i,s,o,l,c){super(e,t,r,n),this._begin=new eT(a,this.id),this.beginCaptures=i,this._end=new eT(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new eN,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},e_=class extends ew{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,a,i,s,o,l){super(e,t,r,n),this._begin=new eT(a,this.id),this.beginCaptures=i,this.whileCaptures=o,this._while=new eT(s,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new eN,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new eN,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},eM=class e{static createCaptureRule(e,t,r,n,a){return e.registerRule(e=>new ek(t,e,r,n,a))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(a=>{if(t.id=a,t.match)return new eA(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,r,n));if(void 0===t.begin){t.repository&&(n=j({},n,t.repository));let a=t.patterns;return void 0===a&&t.include&&(a=[{include:t.include}]),new eS(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(a,r,n))}return t.while?new e_(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,e._compileCaptures(t.whileCaptures||t.captures,r,n),e._compilePatterns(t.patterns,r,n)):new eC(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,e._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,e._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let a=[];if(t){let i=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>i&&(i=t)}for(let e=0;e<=i;e++)a[e]=null;for(let i in t){if("$vscodeTextmateLocation"===i)continue;let s=parseInt(i,10),o=0;t[i].patterns&&(o=e.getCompiledRuleId(t[i],r,n)),a[s]=e.createCaptureRule(r,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,o)}}return a}static _compilePatterns(t,r,n){let a=[];if(t)for(let i=0,s=t.length;ie.substring(t.start,t.end));return ex.lastIndex=0,this.source.replace(ex,(e,t)=>H(r[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,r,n;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let a=[],i=[],s=[],o=[];for(e=0,t=this.source.length;ee.source);this._cached=new eE(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,r){if(!this._hasAnchors)return this.compile(e);if(t)if(r)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0;return r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,r){return new eE(e,this._items.map(e=>e.resolveAnchors(t,r)),this._items.map(e=>e.ruleId))}},eE=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;tnew ez(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let r=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},eL=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>H(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==O.default&&O.default.env.VSCODE_TEXTMATE_DEBUG;var eR=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function eB(e,t,r,n,a,i,s,o){let l=t.content.length,c=!1,h=-1;if(s){let s=function(e,t,r,n,a,i){let s=a.beginRuleCapturedEOL?0:-1,o=[];for(let t=a;t;t=t.pop()){let r=t.getRule(e);r instanceof e_&&o.push({rule:r,stack:t})}for(let m=o.pop();m;m=o.pop()){var l,c,h,u,p;let{ruleScanner:o,findOptions:d}=(l=m.rule,c=e,h=m.stack.endRule,u=r,p=n===s,{ruleScanner:l.compileWhileAG(c,h,u,p),findOptions:0}),g=o.findNextMatchSync(t,n,d);if(g){if(-2!==g.ruleId){a=m.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(i.produce(m.stack,g.captureIndices[0].start),eP(e,t,r,m.stack,i,m.rule.whileCaptures,g.captureIndices),i.produce(m.stack,g.captureIndices[0].end),s=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,r=!1))}else{a=m.stack.pop();break}}return{stack:a,linePos:n,anchorPosition:s,isFirstLine:r}}(e,t,r,n,a,i);a=s.stack,n=s.linePos,r=s.isFirstLine,h=s.anchorPosition}let u=Date.now();for(;!c;){if(0!==o&&Date.now()-u>o)return new eR(a,!0);!function(){let s=function(e,t,r,n,a,i){let s=function(e,t,r,n,a,i){let{ruleScanner:s,findOptions:o}=e$(a.getRule(e),e,a.endRule,r,n===i),l=s.findNextMatchSync(t,n,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,r,n,a,i),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,r,n,a,i,s){let o,l=Number.MAX_VALUE,c=null,h=0,u=i.contentNameScopesList.getScopeNames();for(let i=0,p=e.length;i=l)&&(l=f,c=g.captureIndices,o=g.ruleId,h=p.priority,l===a))break}return c?{priorityMatch:-1===h,captureIndices:c,matchedRuleId:o}:null}(o,e,t,r,n,a,i);if(!l)return s;if(!s)return l;let c=s.captureIndices[0].start,h=l.captureIndices[0].start;return h0&&o[0].end>n;if(-1===u){let s=a.getRule(e);i.produce(a,o[0].start),a=a.withContentNameScopesList(a.nameScopesList),eP(e,t,r,a,i,s.endCaptures,o),i.produce(a,o[0].end);let u=a;if(a=a.parent,h=u.getAnchorPos(),!p&&u.getEnterPos()===n){a=u,i.produce(a,l),c=!0;return}}else{let s=e.getRule(u);i.produce(a,o[0].start);let m=a,d=s.getName(t.content,o),g=a.contentNameScopesList.pushAttributed(d,e);if(a=a.push(u,n,h,o[0].end===l,null,g,g),s instanceof eC){eP(e,t,r,a,i,s.beginCaptures,o),i.produce(a,o[0].end),h=o[0].end;let n=s.getContentName(t.content,o),u=g.pushAttributed(n,e);if(a=a.withContentNameScopesList(u),s.endHasBackReferences&&(a=a.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!p&&m.hasSameRuleAs(a)){a=a.pop(),i.produce(a,l),c=!0;return}}else if(s instanceof e_){eP(e,t,r,a,i,s.beginCaptures,o),i.produce(a,o[0].end),h=o[0].end;let n=s.getContentName(t.content,o),u=g.pushAttributed(n,e);if(a=a.withContentNameScopesList(u),s.whileHasBackReferences&&(a=a.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!p&&m.hasSameRuleAs(a)){a=a.pop(),i.produce(a,l),c=!0;return}}else if(eP(e,t,r,a,i,s.captures,o),i.produce(a,o[0].end),a=a.pop(),!p){a=a.safePop(),i.produce(a,l),c=!0;return}}o[0].end>n&&(n=o[0].end,r=!1)}()}return new eR(a,!1)}function e$(e,t,r,n,a){return{ruleScanner:e.compileAG(t,r,n,a),findOptions:0}}function eP(e,t,r,n,a,i,s){if(0===i.length)return;let o=t.content,l=Math.min(i.length,s.length),c=[],h=s[0].end;for(let t=0;th)break;for(;c.length>0&&c[c.length-1].endPos<=u.start;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?a.produceFromScopes(c[c.length-1].scopes,u.start):a.produce(n,u.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),i=n.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,s),h=i.pushAttributed(c,e),p=n.push(l.retokenizeCapturedWithRuleId,u.start,-1,!1,null,i,h),m=e.createOnigString(o.substring(0,u.end));eB(e,m,r&&0===u.start,u.start,p,a,!1,0),ei(m);continue}let p=l.getName(o,s);if(null!==p){let t=(c.length>0?c[c.length-1].scopes:n.contentNameScopesList).pushAttributed(p,e);c.push(new eO(t,u.end))}}for(;c.length>0;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var eO=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ej(e,t,r,n,a){let i=er(t,eD),s=eM.getCompiledRuleId(r,n,a.repository);for(let r of i)e.push({debugSelector:t,matcher:r.matcher,ruleId:s,grammar:a,priority:r.priority})}function eD(e,t){if(t.length{for(let n=r;nr&&e.substr(0,r)===t&&"."===e[r]}(t[n],e))return r=n+1,!0;return!1})}var eq=class{constructor(e,t,r,n,a,i,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=o,this._basicScopeAttributesProvider=new eI(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=eF(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const e of Object.keys(a))for(const t of er(e,eD))this._tokenTypeMatchers.push({matcher:t.matcher,type:a[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,r=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(r){let n=r.injections;if(n)for(let t in n)ej(e,t,n[t],this,r);let a=this._grammarRepository.injections(t);a&&a.forEach(t=>{let r=this.getExternalGrammar(t);if(r){let t=r.injectionSelector;t&&ej(e,t,r,this,r)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=eF(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){let n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){let a;if(-1===this._rootId&&(this._rootId=eM.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eH.NULL)a=!1,t.reset();else{let e;a=!0;let r=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),i=et.set(0,r.languageId,r.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?eG.createRootAndLookUpScopeName(s,i,this):eG.createRoot("unknown",i),t=new eH(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let i=this.createOnigString(e),s=i.content.length,o=new eW(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=eB(this,i,a,0,t,o,!0,n);return ei(i),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eF(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let r=[];for(let n=0,a=t.length;n"*"===e?(this.allowAny=!0,[]):er(e,eD).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>er(e,eD).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},eW=class{constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(r=et.set(r,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(t))}if(n&&(r=et.set(r,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let r=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e0;)i.Q.map(e=>this._loadSingleGrammar(e.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,r,n,a)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let r="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,a=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,a)}},eY=eH.NULL;function eZ(e,t){let r="string"==typeof e?{}:{...e.colorReplacements},n="string"==typeof e?e:e.name;for(let[e,a]of Object.entries(t?.colorReplacements||{}))"string"==typeof a?r[e]=a:e===n&&Object.assign(r,a);return r}function eK(e,t){return e&&t?.[e?.toLowerCase()]||e}async function eJ(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function eQ(e){return!e||["plaintext","txt","text","plain"].includes(e)}function e0(e){return"ansi"===e||eQ(e)}function e1(e){return"none"===e}let e4=/(\r?\n)/g;function e5(e,t=!1){if(0===e.length)return[["",0]];let r=e.split(e4),n=0,a=[];for(let e=0;e!e.name&&!e.scope):void 0;e?.settings?.foreground&&(n=e.settings.foreground),e?.settings?.background&&(r=e.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n="light"===t.type?"#333333":"#bbbbbb"),r||(r="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0,i=new Map;function s(e){if(i.has(e))return i.get(e);a+=1;let r=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${r}`]?s(e):(i.set(e,r),r)}for(let e of(t.settings=t.settings.map(e=>{let r=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),n=e.settings?.background&&!e.settings.background.startsWith("#");if(!r&&!n)return e;let a={...e,settings:{...e.settings}};if(r){let r=s(e.settings.foreground);t.colorReplacements[r]=e.settings.foreground,a.settings.foreground=r}if(n){let r=s(e.settings.background);t.colorReplacements[r]=e.settings.background,a.settings.background=r}return a}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let r=s(t.colors[e]);t.colorReplacements[r]=t.colors[e],t.colors[e]=r}return Object.defineProperty(t,e3,{enumerable:!1,writable:!1,value:!0}),t}async function e7(e){return[...new Set((await Promise.all(e.filter(e=>!e0(e)).map(async e=>await eJ(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function e2(e){return(await Promise.all(e.map(async e=>e1(e)?null:e6(await eJ(e))))).filter(e=>!!e)}function e8(e,t){if(!t)return e;if(t[e]){let r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new P(`Circular alias \`${[...r].join(" -> ")} -> ${e}\``);r.add(e)}}return e}var e9=class extends eX{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,r,n={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=n,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=e6(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=W.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=e8(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let n=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],r=t.filter(([e,t])=>!t);if(r.length){let e=t.filter(([e,t])=>!!t&&(t.embeddedLanguages||t.embeddedLangs)?.some(e=>r.map(([e])=>e).includes(e))).filter(e=>!r.includes(e));throw new P(`Missing languages ${r.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,r]of t)this._resolver.addLanguage(r);for(let[e,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},te=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),r=[];for(let e=1;e<=t.length;e++){let n=t.slice(0,e).join(".");r=[...r,...this._injections.get(n)||[]]}return r}};let tt=0;async function tr(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,n]=await Promise.all([e2(e.themes||[]),e7(e.langs||[]),e.engine]);return function(e){let t;tt+=1,!1!==e.warnings&&tt>=10&&tt%10==0&&console.warn(`[Shiki] ${tt} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let r=!1;if(!e.engine)throw new P("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map(e6),i=new e9(new te(e.engine,n),a,n,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=i.getTheme(e);if(!t)throw new P(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){c(),i.loadLanguages(e.flat(1))}function l(...e){for(let t of(c(),e.flat(1)))i.loadTheme(t)}function c(){if(r)throw new P("Shiki instance has been disposed")}function h(){r||(r=!0,i.dispose(),tt-=1)}return{setTheme:function(e){c();let r=s(e);return t!==e&&(i.setTheme(r),t=e),{theme:r,colorMap:i.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=i.getGrammar("string"==typeof e?e:e.name);if(!t)throw new P(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),i.getLoadedThemes()},getLoadedLanguages:function(){return c(),i.getLoadedLanguages()},resolveLangAlias:function(t){return e8(t,e.langAlias)},loadLanguage:async function(...e){return o(await e7(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await e2(e))},loadThemeSync:l,dispose:h,[Symbol.dispose]:h}}({...e,themes:t,langs:r,engine:n})}let tn=new WeakMap;function ta(e,t){tn.set(e,t)}function ti(e){return tn.get(e)}var ts=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new e(Object.fromEntries((Array.isArray(r)?r:[r]).map(e=>[e,eY])),t)}constructor(...e){if(2===e.length){const[t,r]=e;this.lang=r,this._stacks=t}else{const[t,r,n]=e;this.lang=r,this._stacks={[n]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let r,n;return t=this._stacks[e],r=[],n=new Set,!function e(t){if(n.has(t))return;n.add(t);let a=t?.nameScopesList?.scopeName;a&&r.push(a),t.parent&&e(t.parent)}(t),r}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};let to=/,/,tl=/ /;function tc(e,t,r={}){var n,a;let i,s,{theme:o=e.getLoadedThemes()[0]}=r;if(eQ(e.resolveLangAlias(r.lang||"text"))||e1(o))return e5(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:l,colorMap:c}=e.setTheme(o),h=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==h.name)throw new P(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${h.name}"`);if(!r.grammarState.themes.includes(l.name))throw new P(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${l.name}"`)}return s=new ts((i=th(t,n=h,a=l,c,r)).stateStack,n.name,a.name),ta(i.tokens,s),i.tokens}function th(e,t,r,n,a){let i=eZ(r,a),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:o=500}=a,l=e5(e),c=a.grammarState?function(e,t){if(!(e instanceof ts))throw new P("Invalid grammar state");return e.getInternalStack(t)}(a.grammarState,r.name)??eY:null!=a.grammarContextCode?th(a.grammarContextCode,t,r,n,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:eY,h=[],u=[];for(let e=0,p=l.length;e0&&d.length>=s){h=[],u.push([{content:d,offset:g,color:"",fontStyle:0}]);continue}a.includeExplanation&&(p=t.tokenizeLine(d,c,o).tokens,m=0);let f=t.tokenizeLine2(d,c,o),y=f.tokens.length/2;for(let e=0;ee.trim());break;case"object":r=t.scope;break;default:continue}e.push({settings:t,selectors:r.map(e=>e.split(tl))})}u.explanation=[];let n=0;for(;t+n({scopeName:e})):function(e,t){let r=[];for(let n=0,a=t.length;n=0&&a>=0;)tu(e[n],r[a])&&(n-=1),a-=1;return -1===n}(e,t,r)){n.push(i);break}return n}(e,a,t.slice(0,n))}}return r}(e,t.scopes)}),m+=1}}h.push(u)}u.push(h),h=[],c=f.ruleStack}return{tokens:u,stateStack:c}}function tu(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tp(e,t,r,n=tc){let a=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=a.map(a=>{let i=n(e,t,{...r,theme:a.theme});return{tokens:i,state:ti(i),theme:"string"==typeof a.theme?a.theme:a.theme.name}}),s=function(...e){let t=e.map(()=>[]),r=e.length;for(let n=0;ne[n]),i=t.map(()=>[]);t.forEach((e,t)=>e.push(i[t]));let s=a.map(()=>0),o=a.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;te.tokens)),o=s[0].map((e,t)=>e.map((e,n)=>{let i={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in r&&r.includeExplanation&&(i.explanation=e.explanation),s.forEach((e,r)=>{let{content:s,explanation:o,offset:l,...c}=e[t][n];i.variants[a[r].color]=c}),i})),l=i[0].state?new ts(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return l&&ta(o,l),o}var tm=e.i(600577),td=e.i(913800),tg=e.i(79694);let tf=/["&'<>`]/g,ty=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tb=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tv=/[|\\{}()[\]^$+*?.]/g,tx=new WeakMap,tw=/[\dA-Fa-f]/,tk=/\d/,tA=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],tS={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},tC=["cent","copy","divide","gt","lt","not","para","times"],t_={}.hasOwnProperty,tM={};for(n in tS)t_.call(tS,n)&&(tM[tS[n]]=n);let tT=/[^\dA-Za-z]/;function tN(e,t,r){var n,a;let i,s,o=(n=r.omitOptionalSemicolons,i="&#x"+e.toString(16).toUpperCase(),n&&t&&!tw.test(String.fromCharCode(t))?i:i+";");if((r.useNamedReferences||r.useShortestReferences)&&(s=function(e,t,r,n){let a=String.fromCharCode(e);if(t_.call(tM,a)){let e=tM[a],i="&"+e;return r&&tA.includes(e)&&!tC.includes(e)&&(!n||t&&61!==t&&tT.test(String.fromCharCode(t)))?i:i+";"}return""}(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!s)&&r.useShortestReferences){let n,i=(a=r.omitOptionalSemicolons,n="&#"+String(e),a&&t&&!tk.test(String.fromCharCode(t))?n:n+";");i.length|^->||--!>|"],tL=["<",">"];var tR=e.i(470284),tB=e.i(816220),t$=e.i(873138),tP=e.i(722365),tO=e.i(158206);let tj=tF(1),tD=tF(-1),tq=[];function tF(e){return function(t,r,n){let a=t?t.children:tq,i=(r||0)+e,s=a[i];if(!n)for(;s&&(0,tO.whitespace)(s);)i+=e,s=a[i];return s}}let tG={}.hasOwnProperty;function tH(e){return function(t,r,n){return tG.call(e,t.tagName)&&e[t.tagName](t,r,n)}}let tU=tH({body:function(e,t,r){let n=tj(r,t);return!n||"comment"!==n.type},caption:tW,colgroup:tW,dd:function(e,t,r){let n=tj(r,t);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)},dt:function(e,t,r){let n=tj(r,t);return!!(n&&"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName))},head:tW,html:function(e,t,r){let n=tj(r,t);return!n||"comment"!==n.type},li:function(e,t,r){let n=tj(r,t);return!n||"element"===n.type&&"li"===n.tagName},optgroup:function(e,t,r){let n=tj(r,t);return!n||"element"===n.type&&"optgroup"===n.tagName},option:function(e,t,r){let n=tj(r,t);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)},p:function(e,t,r){let n=tj(r,t);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!r||"element"!==r.type||"a"!==r.tagName&&"audio"!==r.tagName&&"del"!==r.tagName&&"ins"!==r.tagName&&"map"!==r.tagName&&"noscript"!==r.tagName&&"video"!==r.tagName},rp:tV,rt:tV,tbody:function(e,t,r){let n=tj(r,t);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)},td:tX,tfoot:function(e,t,r){return!tj(r,t)},th:tX,thead:function(e,t,r){let n=tj(r,t);return!!(n&&"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName))},tr:function(e,t,r){let n=tj(r,t);return!n||"element"===n.type&&"tr"===n.tagName}});function tW(e,t,r){let n=tj(r,t,!0);return!n||"comment"!==n.type&&!("text"===n.type&&(0,tO.whitespace)(n.value.charAt(0)))}function tV(e,t,r){let n=tj(r,t);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function tX(e,t,r){let n=tj(r,t);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}let tY=tH({body:function(e){let t=tj(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,tO.whitespace)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,r){let n=tD(r,t),a=tj(e,-1,!0);return!(r&&n&&"element"===n.type&&"colgroup"===n.tagName&&tU(n,r.children.indexOf(n),r))&&!!(a&&"element"===a.type&&"col"===a.tagName)},head:function(e){let t=new Set;for(let r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}let r=e.children[0];return!r||"element"===r.type},html:function(e){let t=tj(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,r){let n=tD(r,t),a=tj(e,-1);return!(r&&n&&"element"===n.type&&("thead"===n.tagName||"tbody"===n.tagName)&&tU(n,r.children.indexOf(n),r))&&!!(a&&"element"===a.type&&"tr"===a.tagName)}}),tZ={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},tK=["<","&"];function tJ(e,t,r,n){return r&&"element"===r.type&&("script"===r.tagName||"style"===r.tagName)?e.value:tE(e.value,Object.assign({},n.settings.characterReferences,{subset:tK}))}let tQ=(0,tg.zwitch)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,r,n){return n.settings.bogusComments?"":""},doctype:function(e,t,r,n){return""},element:function(e,t,r,n){let a,i=n.schema,s="svg"!==i.space&&n.settings.omitOptionalTags,o="svg"===i.space?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===i.space&&"svg"===e.tagName&&(n.schema=td.svg);let c=function(e,t){let r,n=[],a=-1;if(t){for(r in t)if(null!==t[r]&&void 0!==t[r]){let a=function(e,t,r){let n,a=(0,t$.find)(e.schema,t),i=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=+!e.settings.allowDangerousCharacters,o=e.quote;if(a.overloadedBoolean&&(r===a.attribute||""===r)?r=!0:(a.boolean||a.overloadedBoolean)&&("string"!=typeof r||r===a.attribute||""===r)&&(r=!!r),null==r||!1===r||"number"==typeof r&&Number.isNaN(r))return"";let l=tE(a.attribute,Object.assign({},e.settings.characterReferences,{subset:tZ.name[i][s]}));return!0===r||(r=Array.isArray(r)?(a.commaSeparated?tB.stringify:tP.stringify)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(n=tE(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:tZ.unquoted[i][s]}))),n!==r&&(e.settings.quoteSmart&&(0,tR.ccount)(r,o)>(0,tR.ccount)(r,e.alternative)&&(o=e.alternative),n=o+tE(r,Object.assign({},e.settings.characterReferences,{subset:("'"===o?tZ.single:tZ.double)[i][s],attribute:!0}))+o),l+(n?"="+n:n))}(e,r,t[r]);a&&n.push(a)}}for(;++a")),l.push(h),o||s&&tU(e,t,r)||l.push(""),l.join("")},raw:function(e,t,r,n){return n.settings.allowDangerousHtml?e.value:tJ(e,t,r,n)},root:function(e,t,r,n){return n.all(e)},text:tJ}}),t0={},t1={},t4=[];function t5(e,t,r){return tQ(e,t,r,this)}function t3(e){let t=[],r=e&&e.children||t4,n=-1;for(;++n`${e}:${t}`).join(";")}let re=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var r;let a,i={lines:a=e5(r=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===r.length)return{line:a.length-1,character:a.at(-1).length};let t=e,n=0;for(let e of a){if(tt.source.length)throw new P(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...i.indexToPos(e),offset:e}}{let t=i.lines[e.line];if(void 0===t)throw new P(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${i.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new P(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:i.posToIndex(e.line,r)}}}let s=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;tr.end.offset)throw new P(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n[e.start.offset,e.end.offset]))instanceof Set?r:new Set(r)].sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offsett-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let r=0,a=[];for(let n of t)n>r&&a.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r"element"===e.type&&"span"===e.tagName);if(n.length!==r.converter.lines.length)throw new P(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(e,t,r,a){let s=n[e],o="",l=-1,c=-1;if(0===t&&(l=0),0===r&&(c=0),r===1/0&&(c=s.children.length),-1===l||-1===c)for(let e=0;ee);return e.tagName=t.tagName||"span",e.properties={...e.properties,...n,class:e.properties.class},t.properties?.class&&t7(e,t.properties.class),e=a(e,r)||e}let s=[];for(let e of r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:r}=e;if(t.line===r.line)a(t.line,t.character,r.character,e);else if(t.line{var t;n[t=a]=i(n[t],e,"line")});a(r.line,0,r.character,e)}}s.forEach(e=>e())}}}()];function rt(e){let t=function(e){let t=[],r=[],n=[];for(let a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":r.push(a);break;default:n.push(a)}return{pre:t,post:r,normal:n}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...re]}var rr=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],rn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function ra(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var ri={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let rs=/#([0-9a-f]{3,8})/i,ro=/var\((--[\w-]+-ansi-[\w-]+)\)/,rl={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function rc(e,t,r={}){let n=e.resolveLangAlias(r.lang||"text"),{theme:a=e.getLoadedThemes()[0]}=r;if(!eQ(n)&&!e1(a)&&"ansi"===n){let n,i,s,o,l,c,h,{theme:u}=e.setTheme(a);return n=eZ(u,r),i=e5(t),s=function(e=ri){let t;function r(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(n){switch(n.type){case"named":return e[n.name];case"rgb":return r(n.rgb);case"table":var a;return a=n.index,function(){if(t)return t;t=[];for(let r=0;r{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,u.colors?.[t]||rl[e]]}))),o=null,l=null,c=new Set,h={parse(e){let t=[],r=0;do{let n=function(e,t){let r=e.indexOf("\x1b",t);if(-1!==r&&"["===e[r+1]){let t=e.indexOf("m",r);if(-1!==t)return{sequence:e.substring(r+2,t).split(";"),startPosition:r,position:t+1}}return{position:e.length}}(e,r),a=n.sequence?e.substring(r,n.startPosition):e.substring(r);if(a.length>0&&t.push({value:a,foreground:o,background:l,decorations:new Set(c)}),n.sequence){let e=function(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let n=Number.parseInt(r);if(!Number.isNaN(n))if(0===n)t.push({type:"resetAll"});else if(n<=9)rn[n]&&t.push({type:"setDecoration",value:rn[n]});else if(n<=29){let e=rn[n-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:rr[n-30]}});else if(38===n){let r=ra(e);r&&t.push({type:"setForegroundColor",value:r})}else if(39===n)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:rr[n-40]}});else if(48===n){let r=ra(e);r&&t.push({type:"setBackgroundColor",value:r})}else 49===n?t.push({type:"resetBackgroundColor"}):53===n?t.push({type:"setDecoration",value:"overline"}):55===n?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:rr[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:rr[n-100+8]}})}return t}(n.sequence);for(let t of e)"resetAll"===t.type?(o=null,l=null,c.clear()):"resetForegroundColor"===t.type?o=null:"resetBackgroundColor"===t.type?l=null:"resetDecoration"===t.type&&c.delete(t.value);for(let t of e)"setForegroundColor"===t.type?o=t.value:"setBackgroundColor"===t.type?l=t.value:"setDecoration"===t.type&&c.add(t.value)}r=n.position}while(rh.parse(e[0]).map(t=>{let r,a;t.decorations.has("reverse")?(r=t.background?s.value(t.background):u.bg,a=t.foreground?s.value(t.foreground):u.fg):(r=t.foreground?s.value(t.foreground):u.fg,a=t.background?s.value(t.background):void 0),r=eK(r,n),a=eK(a,n),t.decorations.has("dim")&&(r=function(e){let t=e.match(rs);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],r=e[1],n=e[2],a=e[3];return`#${t}${t}${r}${r}${n}${n}${Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0")}`}else if(3===e.length){let t=e[0],r=e[1],n=e[2];return`#${t}${t}${r}${r}${n}${n}80`}}let r=e.match(ro);return r?`var(${r[1]}-dim)`:e}(r));let i=Z.None;return t.decorations.has("bold")&&(i|=Z.Bold),t.decorations.has("italic")&&(i|=Z.Italic),t.decorations.has("underline")&&(i|=Z.Underline),t.decorations.has("strikethrough")&&(i|=Z.Strikethrough),{content:t.value,offset:e[1],color:r,bgColor:a,fontStyle:i}}))}return tc(e,t,r)}function rh(e,t,r){let n,a,i,s,o,l;if("themes"in r){let{defaultColor:c="light",cssVariablePrefix:h="--shiki-",colorsRendering:u="css-vars"}=r,p=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:+(t.color===c));if(0===p.length)throw new P("`themes` option must not be empty");let m=tp(e,t,r,rc);if(l=ti(m),c&&"light-dark()"!==c&&!p.some(e=>e.color===c))throw new P(`\`themes\` option must contain the defaultColor key \`${c}\``);let d=p.map(t=>e.getTheme(t.theme)),g=p.map(e=>e.color);i=m.map(e=>e.map(e=>(function(e,t,r,n,a="css-vars"){let i={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(t=>t8(e.variants[t])),o=new Set(s.flatMap(e=>Object.keys(e))),l={},c=(e,n)=>{let a="color"===n?"":"background-color"===n?"-bg":`-${n}`;return r+t[e]+("color"===n?"":a)};return s.forEach((e,r)=>{for(let i of o){let o=e[i]||"inherit";if(0===r&&n&&t2.includes(i))if("light-dark()"===n&&s.length>1){let e=t.findIndex(e=>"light"===e),n=t.findIndex(e=>"dark"===e);if(-1===e||-1===n)throw new P('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[i]=`light-dark(${s[e][i]||"inherit"}, ${s[n][i]||"inherit"})`,"css-vars"===a&&(l[c(r,i)]=o)}else l[i]=o;else"css-vars"===a&&(l[c(r,i)]=o)}}),i.htmlStyle=l,i})(e,g,h,c,u))),l&&ta(i,l);let f=p.map(e=>eZ(e.theme,r));a=ru(p,d,f,h,c,"fg",u),n=ru(p,d,f,h,c,"bg",u),s=`shiki-themes ${d.map(e=>e.name).join(" ")}`,o=c?void 0:[a,n].join(";")}else if("theme"in r){let o=eZ(r.theme,r);i=rc(e,t,r);let c=e.getTheme(r.theme);n=eK(c.bg,o),a=eK(c.fg,o),s=c.name,l=ti(i)}else throw new P("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:a,bg:n,themeName:s,rootStyle:o,grammarState:l}}function ru(e,t,r,n,a,i,s){return e.map((o,l)=>{let c=eK(t[l][i],r[l])||"inherit",h=`${n+o.color}${"bg"===i?"-bg":""}:${c}`;if(0===l&&a){if("light-dark()"===a&&e.length>1){let n=e.findIndex(e=>"light"===e.color),a=e.findIndex(e=>"dark"===e.color);if(-1===n||-1===a)throw new P('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${eK(t[n][i],r[n])||"inherit"}, ${eK(t[a][i],r[a])||"inherit"});${h}`}return c}return"css-vars"===s?h:null}).filter(e=>!!e).join(";")}let rp=/^\s+$/,rm=/^(\s*)(.*?)(\s*)$/;function rd(e,t,r,n={meta:{},options:r,codeToHast:(t,r)=>rd(e,t,r),codeToTokens:(t,r)=>rh(e,t,r)}){let a=t;for(let e of rt(r))a=e.preprocess?.call(n,a,r)||a;let{tokens:i,fg:s,bg:o,themeName:l,rootStyle:c,grammarState:h}=rh(e,a,r),{mergeWhitespaces:u=!0,mergeSameStyleTokens:p=!1}=r;!0===u?i=i.map(e=>{let t,r=[],n="";return e.forEach((a,i)=>{let s=!(a.fontStyle&&(a.fontStyle&Z.Underline||a.fontStyle&Z.Strikethrough));s&&rp.test(a.content)&&e[i+1]?(void 0===t&&(t=a.offset),n+=a.content):n?(s?r.push({...a,offset:t,content:n+a.content}):r.push({content:n,offset:t},a),t=void 0,n=""):r.push(a)}),r}):"never"===u&&(i=i.map(e=>e.flatMap(e=>{if(rp.test(e.content))return e;let t=e.content.match(rm);if(!t)return e;let[,r,n,a]=t;if(!r&&!a)return e;let i=[{...e,offset:e.offset+r.length,content:n}];return r&&i.unshift({content:r,offset:e.offset}),a&&i.push({content:a,offset:e.offset+r.length+n.length}),i}))),p&&(i=i.map(e=>{let t=[];for(let r of e){if(0===t.length){t.push({...r});continue}let e=t.at(-1),n=t9(e.htmlStyle||t8(e)),a=t9(r.htmlStyle||t8(r)),i=e.fontStyle&&(e.fontStyle&Z.Underline||e.fontStyle&Z.Strikethrough),s=r.fontStyle&&(r.fontStyle&Z.Underline||r.fontStyle&Z.Strikethrough);i||s||n!==a?t.push({...r}):e.content+=r.content}return t}));let m={...n,get source(){return a}};for(let e of rt(r))i=e.tokens?.call(m,i)||i;return function(e,t,r,n=ti(e)){let a=rt(t),i=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};for(let[e,r]of(!1!==t.rootStyle&&(null!=t.rootStyle?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(c.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(c[e]=r);let h={type:"element",tagName:"pre",properties:c,children:[],data:t.data},u={type:"element",tagName:"code",properties:{},children:i},p=[],m={...r,structure:o,addClassToHast:t7,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return h},get code(){return u},get lines(){return p}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&i.push({type:"text",value:"\n"}));let r={type:"element",tagName:"span",properties:{class:"line"},children:[]},n=0;for(let i of e){let e={type:"element",tagName:"span",properties:{...i.htmlAttrs},children:[{type:"text",value:i.content}]},l=t9(i.htmlStyle||t8(i));for(let s of(l&&(e.properties.style=l),a))e=s?.span?.call(m,e,t+1,n,r,i)||e;"inline"===o?s.children.push(e):"classic"===o&&r.children.push(e),n+=i.content.length}if("classic"===o){for(let e of a)r=e?.line?.call(m,r,t+1)||r;p.push(r),i.push(r)}else"inline"===o&&p.push(r)}),"classic"===o){for(let e of a)u=e?.code?.call(m,u)||u;for(let e of(h.children.push(u),a))h=e?.pre?.call(m,h)||h;s.children.push(h)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let r of s.children)"element"===r.type&&"br"===r.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===r.type||"text"===r.type)&&t.children.push(r);e.push(t);let r={type:"element",tagName:"code",properties:{},children:e};for(let e of a)r=e?.code?.call(m,r)||r;s.children=[];for(let e=0;e0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=r.children[e];"element"===t.type&&s.children.push(...t.children)}}let d=s;for(let e of a)d=e?.root?.call(m,d)||d;return n&&ta(d,n),d}(i,{...r,fg:s,bg:o,themeName:l,rootStyle:!1!==r.rootStyle&&(r.rootStyle??c)},m,h)}let rg=function(e,t){let r=t||t0,n=r.quote||'"';if('"'!==n&&"'"!==n)throw Error("Invalid quote `"+n+"`, expected `'` or `\"`");return({one:t5,all:t3,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||tm.htmlVoidElements,characterReferences:r.characterReferences||t1,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:"svg"===r.space?td.svg:td.html,quote:n,alternative:'"'===n?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};async function rf(e){let t=await tr(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return ti(e[1]);let[t,r,n={}]=e,{lang:a="text",theme:i=t.getLoadedThemes()[0]}=n;if(eQ(a)||e1(i))throw new P("Plain language does not have grammar state");if("ansi"===a)throw new P("ANSI language does not have grammar state");let{theme:s,colorMap:o}=t.setTheme(i),l=t.getLanguage(a);return new ts(th(r,l,s,o,n).stateStack,l.name,s.name)})(t,...e),codeToTokensBase:(e,r)=>rc(t,e,r),codeToTokensWithThemes:(e,r)=>tp(t,e,r),codeToTokens:(e,r)=>rh(t,e,r),codeToHast:(e,r)=>rd(t,e,r),codeToHtml:(e,r)=>(function(e,t,r){let n={meta:{},options:r,codeToHast:(t,r)=>rd(e,t,r),codeToTokens:(t,r)=>rh(e,t,r)},a=rg(rd(e,t,r,n));for(let e of rt(r))a=e.postprocess?.call(n,a,r)||a;return a})(t,e,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let ry=(a=(c={langs:B,themes:$,engine:()=>(0,z.createOnigurumaEngine)(e.A(142296))}).langs,i=c.themes,s=c.engine,async function(e){function t(t){if("string"==typeof t){if(e0(t=e.langAlias?.[t]||t))return[];let r=a[t];if(!r)throw new P(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return r}return t}function r(e){if(e1(e))return"none";if("string"==typeof e){let t=i[e];if(!t)throw new P(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let n=(e.themes??[]).map(e=>r(e)),o=(e.langs??[]).map(e=>t(e)),l=await rf({engine:e.engine??s(),...e,themes:n,langs:o});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(t)),loadTheme:(...e)=>l.loadTheme(...e.map(r)),getBundledLanguages:()=>a,getBundledThemes:()=>i}});var rb=class{patterns;options;regexps;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:r=!1,cache:n,regexConstructor:a}=t;if(!a)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=n?.get(e);if(t){if(t instanceof RegExp)return t;if(r)return null;throw t}try{let t=a(e);return n?.set(e,t),t}catch(t){if(n?.set(e,t),r)return null;throw t}})}findNextMatchSync(e,t,r){let n="string"==typeof e?e:e.content,a=[];function i(e,t,r=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+r,end:e[1]+r,length:e[1]-e[0]})}}for(let e=0;ee[1].index));for(let[t,r,n]of a)if(r.index===e)return i(t,r,n)}return null}};function rv(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let rx=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),rw=String.raw;function rk(e,t){if(null==e)throw Error(t??"Value expected");return e}let rA=rw`\[\^?`,rS=`c.? | C(?:-.?)?|${rw`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${rw`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${rw`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${rw`o\{[^\}]*\}?`}|${rw`\d{1,3}`}`,rC=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,r_=RegExp(rw` \\ (?: ${rS} | [gk]<[^>]*>? | [gk]'[^']*'? | . ) | \( (?: \? (?: [:=!>({] | <[=!] | <[^>]*> | '[^']*' | ~\|? | #(?:[^)\\]|\\.?)* | [^:)]*[:)] )? | \*[^\)]*\)? )? | (?:${rC.source})+ | ${rA} | . `.replace(/\s+/g,""),"gsu"),rM=RegExp(rw` \\ (?: ${rS} | . ) | \[:(?:\^?\p{Alpha}+|\^):\] | ${rA} | && | . `.replace(/\s+/g,""),"gsu");function rT(e,{inCharClass:t}){let r=e[1];if("c"===r||"C"===r){var n,a=e;let t="c"===a[1]?a[2]:a[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${a}"`);return rz(rv(t.toUpperCase())-64,a)}if("dDhHsSwW".includes(r)){let t;return rL({d:"digit",h:"hex",s:"space",w:"word"}[t=(n=e)[1].toLowerCase()],n,{negate:n[1]!==t})}if(e.startsWith(rw`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(3===e.length)throw Error(`Incomplete or invalid Unicode property "${e}"`);return function(e){let{p:t,neg:r,value:n}=/^\\(?

[pP])\{(?\^?)(?[^}]+)/.exec(e).groups;return rL("property",e,{value:n,negate:"P"===t&&!r||"p"===t&&!!r})}(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),r=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),n=new TextEncoder;return[...r].map(e=>{let t=[...n.encode(e)].map(e=>`\\x${e.toString(16)}`).join("");return rz(rv(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if("u"===r||"x"===r)return rz(function(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);return parseInt("{"===e[2]?/^\\x\{\s*(?\p{AHex}+)/u.exec(e).groups.hex:e.slice(2),16)}(e),e);if(rP.has(r))return rz(rP.get(r),e);if(/\d/.test(r))return{type:"EscapedNumber",inCharClass:t,raw:e};if("\\"===e)throw Error(rw`Incomplete escape "\"`);if("M"===r)throw Error(`Unsupported meta "${e}"`);if(2==[...e].length)return rz(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function rN(e,t){return{type:"Assertion",kind:e,raw:t}}function rE(e){return{type:"Backreference",raw:e}}function rz(e,t){return{type:"Character",value:e,raw:t}}function rI(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function rL(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function rR(e,t,r={}){return"keep"===e?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:rk(r.flags),raw:t}}function rB(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}let r$=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),rP=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function rO(e){let t=null,r,n;if("{"===e[0]){let{minStr:a,maxStr:i}=/^\{(?\d*)(?:,(?\d*))?/.exec(e).groups;if(+a>1e5||i&&+i>1e5)throw Error("Quantifier value unsupported in Oniguruma");if((r=+a)>(n=void 0===i?+a:""===i?1/0:+i)&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if("possessive"===t)throw Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=+("+"===e[0]),n="?"===e[0]?1:1/0,t="+"===e[1]?"possessive":"?"===e[1]?"lazy":"greedy";return{type:"Quantifier",kind:t,min:r,max:n,raw:e}}function rj(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function rD(e,t){if(!Array.isArray(e.body))throw Error("Expected node with body array");if(1!==e.body.length)return!1;let r=e.body[0];return!t||Object.keys(t).every(e=>t[e]===r[e])}let rq=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function rF(e,t={}){var r;let n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},a=function(e,t={}){let r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if("string"!=typeof e)throw Error("String expected as pattern");let n=function(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;ra.at(-1),numOpenGroups:0,popModX(){a.pop()},pushModX(e){a.push(e)},replaceCurrentModX(e){a[a.length-1]=e},singleline:r.rules.singleline},s=[],o;for(r_.lastIndex=0;o=r_.exec(e);){let t=function(e,t,r,n){let[a,i]=r;if("["===r||"[^"===r){let e=function(e,t,r){let n=[rI("^"===t[1],t)],a=1,i;for(rM.lastIndex=r;i=rM.exec(e);){let e=i[0];if("["===e[0]&&":"!==e[1])a++,n.push(rI("^"===e[1],e));else if("]"===e){if("CharacterClassOpen"===n.at(-1).type)n.push(rz(93,e));else if(a--,n.push({type:"CharacterClassClose",raw:e}),!a)break}else{let t=function(e){if("\\"===e[0])return rT(e,{inCharClass:!0});if("["===e[0]){let t=/\[:(?\^?)(?[a-z]+):\]/.exec(e);if(!t||!rx.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return rL("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return"-"===e?{type:"CharacterClassHyphen",raw:e}:"&&"===e?{type:"CharacterClassIntersector",raw:e}:rz(rv(e),e)}(e);Array.isArray(t)?n.push(...t):n.push(t)}}return{tokens:n,lastIndex:rM.lastIndex||e.length}}(t,r,n);return{tokens:e.tokens,lastIndex:e.lastIndex}}if("\\"===a){if("AbBGyYzZ".includes(i))return{token:rN(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:{type:"Subroutine",raw:r}}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw Error(`Invalid group name "${r}"`);return{token:rE(r)}}if("K"===i)return{token:rR("keep",r)};if("N"===i||"R"===i)return{token:rL("newline",r,{negate:"N"===i})};if("O"===i)return{token:rL("any",r)};if("X"===i)return{token:rL("text_segment",r)};let e=rT(r,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if("("===a){if("*"===i)return{token:function(e){let t=/\(\*(?[A-Za-z_]\w*)?(?:\[(?(?:[A-Za-z_]\w*)?)\])?(?:\{(?[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:n,args:a}=t.groups;if(!r)throw Error(`Invalid named callout "${e}"`);if(""===n)throw Error(`Named callout tag with empty value not allowed "${e}"`);let i=a?a.split(",").filter(e=>""!==e).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[s,o,l]=i,c=r$.has(r)?r.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(i.length>0)throw Error(`Named callout arguments not allowed "${i}"`);break;case"error":if(i.length>1)throw Error(`Named callout allows only one argument "${i}"`);if("string"==typeof s)throw Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!i.length||i.length>2)throw Error(`Named callout must have one or two arguments "${i}"`);if("string"==typeof s&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if(2===i.length&&("number"==typeof o||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(i.length>1)throw Error(`Named callout allows only one argument "${i}"`);if(1===i.length&&("number"==typeof s||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(3!==i.length)throw Error(`Named callout must have three arguments "${i}"`);if("string"==typeof s&&!/^[A-Za-z_]\w*$/.test(s))throw Error(`Named callout argument one must be a tag or number "${s}"`);if("number"==typeof o||!/^(?:[<>!=]=|[<>])$/.test(o))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if("string"==typeof l&&!/^[A-Za-z_]\w*$/.test(l))throw Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw Error(`Undefined callout name "${r}"`);default:throw Error(`Unexpected named callout kind "${c}"`)}return{type:"NamedCallout",kind:c,tag:n??null,arguments:a?.split(",")??null,raw:e}}(r)};if("(?{"===r)throw Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(")"!==t[n])throw Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:function(e,t){let{on:r,off:n}=/^\(\?(?[imx]*)(?:-(?[-imx]*))?/.exec(e).groups;n??="";let a=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),i=rj(r),s=rj(n),o={};if(i&&(o.enable=i),s&&(o.disable=s),e.endsWith(")"))return t.replaceCurrentModX(a),rR("flags",e,{flags:o});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,rB("group",e,{...(i||s)&&{flags:o}});throw Error(`Unexpected flag modifier "${e}"`)}(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,"("===r&&!e.captureGroup||"(?:"===r)return{token:rB("group",r)};if("(?>"===r)return{token:rB("atomic",r)};if("(?="===r||"(?!"===r||"(?<="===r||"(?")||r.startsWith("(?'")&&r.endsWith("'"))return{token:rB("capturing",r,{..."("!==r&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if("(?~|"===r)throw Error(`Unsupported absence function kind "${r}"`);return{token:rB("absence_repeater",r)}}throw"(?("===r?Error(`Unsupported conditional "${r}"`):Error(`Invalid or unsupported group option "${r}"`)}if(")"===r){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error('Unmatched ")"');return{token:{type:"GroupClose",raw:r}}}if(e.getCurrentModX()){if("#"===r){let e=t.indexOf(` `,n);return{lastIndex:-1===e?t.length:e}}if(/^\s$/.test(r)){let e=/\s+/y;return e.lastIndex=n,{lastIndex:e.exec(t)?e.lastIndex:n}}}return"."===r?{token:rL("dot",r)}:"^"===r||"$"===r?{token:rN(e.singleline?({"^":rw`\A`,$:rw`\Z`})[r]:r,r)}:"|"===r?{token:{type:"Alternator",raw:r}}:rC.test(r)?{tokens:function(e){let t,r=[],n=RegExp(rC,"gy");for(;t=n.exec(e);){let e=t[0];if("{"===e[0]){let t=/^\{(?\d+),(?\d+)\}\??$/.exec(e);if(t){let{min:a,max:i}=t.groups;if(+a>+i&&e.endsWith("?")){n.lastIndex--,r.push(rO(e.slice(0,-1)));continue}}}r.push(rO(e))}return r}(r)}:{token:rz(rv(r),r)}}(i,e,o[0],r_.lastIndex);t.tokens?s.push(...t.tokens):t.token&&s.push(t.token),void 0!==t.lastIndex&&(r_.lastIndex=t.lastIndex)}let l=[],c=0;s.filter(e=>"GroupOpen"===e.type).forEach(e=>{"capturing"===e.kind?e.number=++c:"("===e.raw&&l.push(e)}),c||l.forEach((e,t)=>{e.kind="capturing",e.number=t+1});let h=c||l.length;return{tokens:s.map(e=>"EscapedNumber"===e.type?function(e,t){let{raw:r,inCharClass:n}=e,a=r.slice(1);if(!n&&("0"!==a&&1===a.length||"0"!==a[0]&&+a<=t))return[rE(r)];let i=[],s=a.match(/^[0-7]+|\d/g);for(let e=0;e127)throw Error(rw`Octal encoded byte above 177 unsupported "${r}"`)}else t=rv(n);i.push(rz(t,(0===e?"\\":"")+n))}return i}(e,h):e).flat(),flags:n}}(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(e,t)=>{let r=a.tokens[s.nextIndex];switch(s.parent=e,s.nextIndex++,r.type){case"Alternator":return rG();case"Assertion":return function({kind:e}){return rH(rk({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===rw`\B`||e===rw`\Y`})}(r);case"Backreference":return function({raw:e},t){let r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),a=(r,n=!1)=>{let a=t.capturingGroups.length,i=!1;if(r>a)if(t.skipBackrefValidation)i=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,rU(n?a+1-r:r,{orphan:i})};if(r){let r=/^(?-?)0*(?[1-9]\d*)$/.exec(n);if(r)return a(+r.groups.num,!!r.groups.sign);if(/[-+]/.test(n))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw Error(`Group name not defined to the left "${e}"`);return rU(n)}return a(+n)}(r,s);case"Character":return rV(r.value,{useLastValid:!!t.isCheckingRangeEnd});case"CharacterClassHyphen":return function(e,t){let{tokens:r,walk:n}=e,a=e.parent,i=a.body.at(-1),s=r[e.nextIndex];if(!t.isCheckingRangeEnd&&i&&"CharacterClass"!==i.type&&"CharacterClassRange"!==i.type&&s&&"CharacterClassOpen"!==s.type&&"CharacterClassClose"!==s.type&&"CharacterClassIntersector"!==s.type){let e=n(a,{...t,isCheckingRangeEnd:!0});if("Character"===i.type&&"Character"===e.type)return a.body.pop(),function(e,t){if(t.value1===e.body.length?e.body[0]:e)),t.nextIndex++,l}(r,s,t);case"CharacterSet":return function({kind:e,negate:t,value:r},n){let{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:i,unicodePropertyMap:s}=n;if("property"===e){let n=r6(r);if(!rx.has(n)||s?.has(n))return r0(r,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:i,unicodePropertyMap:s});e="posix",r=n}return"posix"===e?function(e,t){let r=!!t?.negate;if(!rx.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}(r,{negate:t}):rY(e,{negate:t})}(r,s);case"Directive":return function(e,t={}){if("keep"===e)return{type:"Directive",kind:e};if("flags"===e)return{type:"Directive",kind:e,flags:rk(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}(r.kind,{flags:r.flags});case"GroupOpen":return function(e,t,r){var n,a;let{tokens:i,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:l,walk:c}=t,h=function({flags:e,kind:t,name:r,negate:n,number:a}){switch(t){case"absence_repeater":var i="repeater";!1;return{type:"AbsenceFunction",kind:i,body:r1(void 0)};case"atomic":return rZ({atomic:!0});case"capturing":return rW(a,{name:r});case"group":return rZ({flags:e});case"lookahead":case"lookbehind":return rK({behind:"lookbehind"===t,negate:n});default:throw Error(`Unexpected group kind "${t}"`)}}(e),u="AbsenceFunction"===h.type,p=r3(h),m=p&&h.negate;if("CapturingGroup"===h.type&&(s.push(h),h.name&&(n=h.name,a=[],o.has(n)||o.set(n,a),o.get(n)).push(h)),u&&r.isInAbsenceFunction)throw Error("Nested absence function not supported by Oniguruma");let d=r2(i[t.nextIndex]);for(;"GroupClose"!==d.type;){if("Alternator"===d.type)h.body.push(rG()),t.nextIndex++;else{let e=h.body.at(-1),t=c(e,{...r,isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||p,isInNegLookbehind:r.isInNegLookbehind||m});if(e.body.push(t),(p||r.isInLookbehind)&&!l){let e="Lookbehind includes a pattern not allowed by Oniguruma";if(m||r.isInNegLookbehind){if(r5(t)||"CapturingGroup"===t.type)throw Error(e)}else if(r5(t)||r3(t)&&t.negate)throw Error(e)}}d=r2(i[t.nextIndex])}return t.nextIndex++,h}(r,s,t);case"NamedCallout":var n,i;return n=r.kind,i=r.tag,{type:"NamedCallout",kind:n,tag:i,arguments:r.arguments};case"Quantifier":return function({kind:e,min:t,max:r},n){let a=n.parent,i=a.body.at(-1);if(!i||!rq.has(i.type))throw Error("Quantifier requires a repeatable token");let s=rJ(e,t,r,i);return a.body.pop(),s}(r,s);case"Subroutine":return function({raw:e},t){let{capturingGroups:r,subroutines:n}=t,a=e.slice(3,-1),i=/^(?[-+]?)0*(?[1-9]\d*)$/.exec(a);if(i){let e=+i.groups.num,n=r.length;if(t.hasNumberedRef=!0,(a=({"":e,"+":n+e,"-":n+1-e})[i.groups.sign])<1)throw Error("Invalid subroutine number")}else"0"===a&&(a=0);let s=rQ(a);return n.push(s),s}(r,s);default:throw Error(`Unexpected token type "${r.type}"`)}},s={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:a.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},o=(r={type:"Flags",...a.flags},{type:"Regex",body:r1(void 0),flags:r}),l=o.body[0];for(;s.nextIndexc.length)throw Error("Subroutine uses a group number that's not defined");e&&(c[e-1].isSubroutined=!0)}else if(u.has(e)){if(u.get(e).length>1)throw Error(rw`Subroutine uses a duplicate group name "\g<${e}>"`);u.get(e)[0].isSubroutined=!0}else throw Error(rw`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function rG(e){return{type:"Alternative",body:r4(e?.body)}}function rH(e,t){let r={type:"Assertion",kind:e};return("word_boundary"===e||"text_segment_boundary"===e)&&(r.negate=!!t?.negate),r}function rU(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function rW(e,t){var r;let n={name:void 0,isSubroutined:!1,...t};if(void 0!==n.name&&(r=n.name,!/^[\p{Alpha}\p{Pc}][^)]*$/u.test(r)))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:r1(t?.body)}}function rV(e,t){let r={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${t}}"`):Error(`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:"Character",value:e}}function rX(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:r4(e?.body)}}function rY(e,t){let r=!!t?.negate,n={type:"CharacterSet",kind:e};return("digit"===e||"hex"===e||"newline"===e||"space"===e||"word"===e)&&(n.negate=r),"text_segment"!==e&&("newline"!==e||r)||(n.variableLength=!0),n}function rZ(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:r1(e?.body)}}function rK(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:r1(e?.body)}}function rJ(e,t,r,n){if(t>r)throw Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function rQ(e){return{type:"Subroutine",ref:e}}function r0(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},n=r.unicodePropertyMap?.get(r6(e));if(!n){if(r.normalizeUnknownPropertyNames)n=e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase());else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw Error(rw`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function r1(e){if(void 0===e)e=[rG()];else if(!Array.isArray(e)||!e.length||!e.every(e=>"Alternative"===e.type))throw Error("Invalid body; expected array of one or more Alternative nodes");return e}function r4(e){if(void 0===e)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error("Invalid body; expected array of nodes");return e}function r5(e){return"LookaroundAssertion"===e.type&&"lookahead"===e.kind}function r3(e){return"LookaroundAssertion"===e.type&&"lookbehind"===e.kind}function r6(e){return e.replace(/[- _]+/g,"").toLowerCase()}function r7(e,t){return rk(e,`Unclosed character class${t?.type==="Character"&&93===t.value&&"]"===t.raw?' (started with "]")':""}`)}function r2(e){return rk(e,"Unclosed group")}function r8(e,t,r=null){function n(e,t){for(let r=0;rr9(l).splice(ne(o)+1),removeAllPrevSiblings(){let e=ne(o)+c;return c-=e,r9(l).splice(0,Math.max(0,e))},replaceWith(e,t={}){let r=!!t.traverse;l?l[Math.max(0,ne(o)+c)]=e:rk(s,"Can't replace root node")[o]=e,r&&a(e,s,o,l),h=!0},replaceWithMultiple(e,t={}){let r=!!t.traverse;if(r9(l).splice(Math.max(0,ne(o)+c),1,...e),c+=e.length-1,r){let t=0;for(let r=0;rA-Za-z\-]|<[=!]|\(DEFINE\))`,nr=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function nn(e,t,r,n){let a=RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),i=[!1],s=0,o="";for(let t of e.matchAll(a)){let{0:e,groups:{$skip:a}}=t;if(!a&&(!n||n===nr.DEFAULT==!s)){r instanceof Function?o+=r(t,{context:s?nr.CHAR_CLASS:nr.DEFAULT,negated:i[i.length-1]}):o+=r;continue}"["===e[0]?(s++,i.push("^"===e[1])):"]"===e&&s&&(s--,i.pop()),o+=e}return o}function na(e,t,r){return!!function(e,t,r=0,n){let a;if(!RegExp(t,"su").test(e))return null;let i=RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=r;let s=0;for(;a=i.exec(e);){let{0:e,groups:{$skip:t}}=a;if(!t&&(!n||n===nr.DEFAULT==!s))return a;"["===e?s++:"]"===e&&s&&s--,i.lastIndex==a.index&&i.lastIndex++}return null}(e,t,0,r)}let ni=RegExp(String.raw`(?${nt})|(?\((?:\?<[^>]+>)?)|\\?.`,"gsu"),ns=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,no=RegExp(String.raw` \\(?: \d+ | c[A-Za-z] | [gk]<[^>]+> | [pPu]\{[^\}]+\} | u[A-Fa-f\d]{4} | x[A-Fa-f\d]{2} ) | \((?: \? (?: [:=!>] | <(?:[=!]|[^>]+>) | [A-Za-z\-]+: | \(DEFINE\) ))? | (?${ns})(?[?+]?)(?[?*+\{]?) | \\?. `.replace(/\s+/g,""),"gsu"),nl=String.raw,nc=nl`\\g<(?[^>&]+)&R=(?[^>]+)>`,nh=nl`\(\?R=(?[^\)]+)\)|${nc}`,nu=nl`\(\?<(?![=!])(?[^>]+)>`,np=nl`${nu}|(?\()(?!\?)`,nm=RegExp(nl`${nu}|${nh}|\(\?|\\?.`,"gsu"),nd="Cannot use multiple overlapping recursions";function ng(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e*=1)<2||e>100)throw Error(t)}function nf(e,t,r,n,a,i,s){let o=new Set;n&&nn(e+t,nu,({groups:{captureName:e}})=>{o.add(e)},nr.DEFAULT);let l=[r,n?o:null,a,i,s];return`${e}${ny(`(?:${e}`,"forward",...l)}(?:)${ny(`${t})`,"backward",...l)}${t}`}function ny(e,t,r,n,a,i,s){let o=e=>"forward"===t?e+2:r-e+2-1,l="";for(let t=0;t[^>]+)>`,({0:e,groups:{captureName:t,unnamed:o,backref:l}})=>{if(l&&n&&!n.has(l))return e;let c=`_$${r}`;if(o||t){let r=s+i.length+1;return i.push(r),function(e,t){for(let r=0;r=t&&e[r]++}(a,r),o?e:`(?<${t}${c}>`}return nl`\k<${l}${c}>`},nr.DEFAULT)}return l}function nb(e,t,r,n,a,i){if(e.size&&n){let s=0;nn(t,np,()=>s++,nr.DEFAULT);let o=i-s+a,l=new Map;return e.forEach((e,t)=>{let a=(n-s*r)/r,i=s*r,c=t>o+s?t+n:t,h=[];for(let t of e)if(t<=o)h.push(t);else if(t>o+s+a)h.push(t+n);else if(t<=o+s)for(let e=0;e<=r;e++)h.push(t+s*e);else for(let e=0;e<=r;e++)h.push(t+i+a*e);l.set(c,h)}),l}return e}var nv=String.fromCodePoint,nx=String.raw,nw={},nk=globalThis.RegExp;function nA(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function nS(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}nw.flagGroups=(()=>{try{new nk("(?i:)")}catch{return!1}return!0})(),nw.unicodeSets=(()=>{try{new nk("[[]]","v")}catch{return!1}return!0})(),nw.bugFlagVLiteralHyphenIsRange=!!nw.unicodeSets&&(()=>{try{new nk(nx`[\d\-a]`,"v")}catch{return!0}return!1})(),nw.bugNestedClassIgnoresNegation=nw.unicodeSets&&new nk("[[^a]]","v").test("a");var nC={ES2025:2025,ES2024:2024,ES2018:2018},n_={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function nM(e={}){if("[object Object]"!==({}).toString.call(e))throw Error("Unexpected options");if(void 0!==e.target&&!n_[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return"auto"===t.target&&(t.target=nw.flagGroups?"ES2025":nw.unicodeSets?"ES2024":"ES2018"),t}var nT=new Set([nv(304),nv(305)]),nN=nx`[\p{L}\p{M}\p{N}\p{Pc}]`;function nE(e){if(nT.has(e))return[e];let t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),a=nR.get(r),i=nI.get(r),s=nL.get(r);return 1==[...n].length&&t.add(n),s&&t.add(s),a&&t.add(a),t.add(r),i&&t.add(i),[...t]}var nz=new Map(`C Other Cc Control cntrl Cf Format Cn Unassigned Co Private_Use Cs Surrogate L Letter LC Cased_Letter Ll Lowercase_Letter Lm Modifier_Letter Lo Other_Letter Lt Titlecase_Letter Lu Uppercase_Letter M Mark Combining_Mark Mc Spacing_Mark Me Enclosing_Mark Mn Nonspacing_Mark N Number Nd Decimal_Number digit Nl Letter_Number No Other_Number P Punctuation punct Pc Connector_Punctuation Pd Dash_Punctuation Pe Close_Punctuation Pf Final_Punctuation Pi Initial_Punctuation Po Other_Punctuation Ps Open_Punctuation S Symbol Sc Currency_Symbol Sk Modifier_Symbol Sm Math_Symbol So Other_Symbol Z Separator Zl Line_Separator Zp Paragraph_Separator Zs Space_Separator ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component EComp Emoji_Modifier EMod Emoji_Modifier_Base EBase Emoji_Presentation EPres Extended_Pictographic ExtPict Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`.split(/\s/).map(e=>[r6(e),e])),nI=new Map([["s",nv(383)],[nv(383),"s"]]),nL=new Map([[nv(223),nv(7838)],[nv(107),nv(8490)],[nv(229),nv(8491)],[nv(969),nv(8486)]]),nR=new Map([n$(453),n$(456),n$(459),n$(498),...nP(8072,8079),...nP(8088,8095),...nP(8104,8111),n$(8124),n$(8140),n$(8188)]),nB=new Map([["alnum",nx`[\p{Alpha}\p{Nd}]`],["alpha",nx`\p{Alpha}`],["ascii",nx`\p{ASCII}`],["blank",nx`[\p{Zs}\t]`],["cntrl",nx`\p{Cc}`],["digit",nx`\p{Nd}`],["graph",nx`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",nx`\p{Lower}`],["print",nx`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",nx`[\p{P}\p{S}]`],["space",nx`\p{space}`],["upper",nx`\p{Upper}`],["word",nx`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",nx`\p{AHex}`]]);function n$(e){let t=nv(e);return[t.toLowerCase(),t]}function nP(e,t){return(function(e,t){let r=[];for(let n=e;n<=t;n++)r.push(n);return r})(e,t).map(e=>n$(e))}var nO=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),nj={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:n,kind:a}=e;if("repeater"===a){let e=rZ();e.body[0].body.push(rK({negate:!0,body:n}),r0("Any"));let a=rZ();a.body[0].body.push(rJ("greedy",0,1/0,e)),r(nK(a,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){let a=e.body.filter(e=>"flags"===e.kind);for(let e=r+1;e\r\n|${a?nx`\p{RGI_Emoji}`:i}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)r(nZ(r0("AHex",{negate:c}),t));else if("newline"===l)r(nK(nX(c?"[^\n]":"(?>\r\n?|[\n\v\f…\u2028\u2029])"),t));else if("posix"===l)if(a||"graph"!==h&&"print"!==h)r(nK(nY(nX(nB.get(h)),c),t));else{if("strict"===n)throw Error(`POSIX class "${h}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[h];c&&(e=`\0-${nv(e.codePointAt(0)-1)}${nv(e.codePointAt(2)+1)}-\u{10FFFF}`),r(nK(nX(`[${e}]`),t))}else if("property"===l)nz.has(r6(h))||(e.key="sc");else if("space"===l)r(nZ(r0("space",{negate:c}),t));else if("word"===l)r(nK(nY(nX(nN),c),t));else throw Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:a,removeAllPrevSiblings:i,removeAllNextSiblings:s}){let{kind:o,flags:l}=e;if("flags"===o)if(l.enable||l.disable){let e=rZ({flags:l});e.body[0].body=s(),a(nK(e,t),{traverse:!0})}else n();else if("keep"===o){let e=r.body[0],n=1===r.body.length&&rD(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:r;if(t.parent!==n||n.body.length>1)throw Error(nx`Uses "\K" in a way that's unsupported`);let s=rK({behind:!0});s.body[0].body=i(),a(nK(s,t))}else throw Error(`Unexpected directive kind "${o}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if("word"===e.textSegmentMode)throw Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,e.flags.enable||e.flags.disable||delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;"lookbehind"===r&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:n}=e;if("fail"===n)r(nK(rK({negate:!0}),t));else throw Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=rZ();t.body[0].body.push(e.body),e.body=nK(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],n=!1,a=!1;for(let t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{let e=function e(t){let r=t.find(e=>"search_start"===e.kind||function(e,t){let r={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===r.negate||e.negate===r.negate)&&1===e.body.length&&rD(e.body[0],{type:"Assertion",kind:"search_start"})}(e,{negate:!1})||!function({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}(e));if(!r)return null;if("search_start"===r.kind)return r;if("LookaroundAssertion"===r.type)return r.body[0].body[0];if("CapturingGroup"===r.type||"Group"===r.type){let t=[];for(let n of r.body){let r=e(n.body);if(!r)return null;Array.isArray(r)?t.push(...r):t.push(r)}return t}return null}(t.body);e?(n=!0,Array.isArray(e)?r.push(...e):r.push(e)):a=!0}n&&!a&&r.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if("strict"===t&&r&&n)throw Error(nx`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||nV(r)||(e.ref=r=nH(r,t))}},nD={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:n,ref:a}=e;n||r.set(e,[...t.get(a).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:a,groupsByName:i,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:l}){let c=a.get(e);if(c&&o.has(e.number)){let n=nZ(nG(e.number),t);l.set(n,o.get(e.number)),r(n);return}o.set(e.number,e),s.set(e.number,[]),e.name&&nS(s,e.name,[]);let h=s.get(e.name??e.number);for(let t=0;t"Group"===e.type&&!!e.flags)),t=e?nA(n.globalFlags,e):n.globalFlags;h=t,u=n.currentFlags,(h.dotAll!==u.dotAll||h.ignoreCase!==u.ignoreCase)&&(c=rZ({flags:function({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),e&&t||(r.disable={},e||(r.disable.dotAll=!0),t||(r.disable.ignoreCase=!0)),r}(t)})).body[0].body.push(l)}r(nK(c,t),{traverse:!o})}},nq={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}let a=n.reffedNodesByReferencer.get(e).filter(t=>(function(e,t){let r=t;do{if("Regex"===r.type)return!1;if("Alternative"===r.type)continue;if(r===e)return!1;for(let t of nW(r.parent)){if(t===r)break;if(t===e||function e(t,r){for(let n of nW(t)??[])if(n===r||e(n,r))return!0;return!1}(t,e))return!0}}while(r=r.parent)throw Error("Unexpected path")})(t,e));a.length?a.length>1?r(nK(rZ({atomic:!0,body:a.reverse().map(e=>rG({body:[rU(e.number)]}))}),t)):e.ref=a[0].number:r(nK(rK({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t{t.forEach(t=>{e.enable?.[t]&&(delete r.disable[t],r.enable[t]=!0),e.disable?.[t]&&(r.disable[t]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable)?r:null}function nW(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function nV(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function nX(e,t){let r=rF(e,{...t,unicodePropertyMap:nz}).body;return r.length>1||r[0].body.length>1?rZ({body:r}):r[0].body[0]}function nY(e,t){return e.negate=t,e}function nZ(e,t){return e.parent=t,e}function nK(e,t){return nF(e),e.parent=t,e}var nJ={"*":{enter({node:e},t){if(n8(e)){let r=t.getCurrentModI();t.pushModI(e.flags?nA({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){n8(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){n6(nv(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),n7(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&nO.has(e.value)&&t.setHasCasedChar()}},nQ={Alternative:({body:e},t,r)=>e.map(r).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?nx`\B`:nx`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:n,name:a,number:i}=e,s={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(s.hidden=!0,i>o.number&&(s.transferTo=o.number)),t.captureMap.set(i,s),`(${a?`?<${a}>`:""}${n.map(r).join("|")})`},Character({value:e},t){let r=nv(e),n=n2(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&n6(r)){let e=nE(r);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return r},CharacterClass(e,t,r){let{kind:n,negate:a,parent:i}=e,{body:s}=e;if("intersection"===n&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");nw.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(n9)&&(s=[rV(45),...s.filter(e=>!n9(e))]);let o=()=>`[${a?"^":""}${s.map(r).join("intersection"===n?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||nw.bugNestedClassIgnoresNegation)&&!a){let t=s.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let n=rZ(),a=n.body[0];return n.parent=i,a.parent=n,e.body=s=s.filter(e=>!t.includes(e)),s.length?(e.parent=a,a.body.push(e)):n.body.pop(),t.forEach(e=>{let t=rG({body:[e]});e.parent=t,t.parent=n,n.body.push(t)}),r(n)}}t.inCharClass=!0;let n=o();return t.inCharClass=!1,n}let l=s[0];if("union"===n&&!a&&l&&((!t.useFlagV||!t.verbose)&&"union"===i.kind&&!(nw.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===i.kind&&1===s.length&&"CharacterClassRange"!==l.type))return s.map(r).join("");if(!t.useFlagV&&"CharacterClass"===i.type)throw Error("Uses nested character class in a way that requires min target ES2024");return o()},CharacterClassRange(e,t){let r=e.min.value,n=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},i=n2(r,a),s=n2(n,a),o=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&(function(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),r=[],n=null;for(let e=0;e{o.add(Array.isArray(e)?`${n2(e[0],a)}-${n2(e[1],a)}`:n2(e,a))}),`${i}-${s}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},a){if("dot"===e)return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":nx`[^\n]`;if("digit"===e)return t?nx`\D`:nx`\d`;if("property"===e){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&nO.has(r))throw Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?nx`\P`:nx`\p`}{${n?`${n}=`:""}${r}}`}if("word"===e)return t?nx`\W`:nx`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:r,parent:n},a,i){let s=a.currentFlags;r&&(a.currentFlags=nA(s,r));let o=t.map(i).join("|"),l=a.verbose||1!==t.length||"Quantifier"===n.type||e||a.useFlagMods&&r?`(?${function(e,t,r){if(e)return">";let n="";if(t&&r){let{enable:e,disable:r}=t;n=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(r?"-":"")+(r?.ignoreCase?"i":"")+(r?.dotAll?"s":"")}return`${n}:`}(e,r,a.useFlagMods)}${o})`:o;return a.currentFlags=s,l},LookaroundAssertion({body:e,kind:t,negate:r},n,a){let i=`${"lookahead"===t?"":"<"}${r?"!":"="}`;return`(?${i}${e.map(a).join("|")})`},Quantifier:(e,t,r)=>r(e.body)+function({kind:e,max:t,min:r}){return(r||1!==t?r||t!==1/0?1===r&&t===1/0?"+":r===t?`{${r}}`:`{${r},${t===1/0?"":t}}`:"*":"?")+({greedy:"",lazy:"?",possessive:"+"})[e]}(e),Subroutine({isRecursive:e,ref:t},r){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let n=r.recursionLimit;return 0===t?`(?R=${n})`:nx`\g<${t}&R=${n}>`}},n0=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),n1=new Set(["-","\\","]","^","["]),n4=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),n5=new Map([[9,nx`\t`],[10,nx`\n`],[11,nx`\v`],[12,nx`\f`],[13,nx`\r`],[8232,nx`\u2028`],[8233,nx`\u2029`],[65279,nx`\uFEFF`]]),n3=/^\p{Cased}$/u;function n6(e){return n3.test(e)}function n7(e,t){let r=!!t?.firstOnly,n=e.min.value,a=e.max.value,i=[];if(n<65&&(65535===a||a>=131071)||65536===n&&a>=131071)return i;for(let e=n;e<=a;e++){let t=nv(e);if(!n6(t))continue;let s=nE(t).filter(e=>{let t=e.codePointAt(0);return ta});if(s.length&&(i.push(...s),r))break}return i}function n2(e,{escDigit:t,inCharClass:r,useFlagV:n}){var a;if(n5.has(e))return n5.get(e);if(e<32||e>126&&e<160||e>262143||t&&(a=e)>47&&a<58)return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let i=nv(e);return((r?n?n4:n1:n0).has(i)?"\\":"")+i}function n8({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function n9({type:e,value:t}){return"Character"===e&&45===t}var ae=class e extends RegExp{#e=new Map;#t=null;#r;#n=null;#a=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,r,n){const a=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw Error("Cannot provide options when copying a regexp");super(t,r),this.#r=t.source,t instanceof e&&(this.#e=t.#e,this.#n=t.#n,this.#a=t.#a,this.rawOptions=t.rawOptions)}else{const e={hiddenCaptures:[],strategy:null,transfers:[],...n};super(a?"":t,r),this.#r=t,this.#e=function(e,t){let r=new Map;for(let t of e)r.set(t,{hidden:!0});for(let[e,n]of t)for(let t of n)nS(r,t,{}).transferTo=e;return r}(e.hiddenCaptures,e.transfers),this.#a=e.strategy,this.rawOptions=n??{}}a||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...r}=this.rawOptions;this.#t=new e(this.#r,this.flags,r)}let r=this.global||this.sticky,n=this.lastIndex;if("clip_search"===this.#a&&r&&n){this.lastIndex=0;let e=this.#i(t.slice(n));return e&&(function(e,t,r,n){if(e.index+=t,e.input=r,n){let r=e.indices;for(let e=0;e{let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])})}}(e,n,t,this.hasIndices),this.lastIndex+=n),e}return this.#i(t)}#i(e){let t;this.#t.lastIndex=this.lastIndex;let r=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!r||!this.#e.size)return r;let n=[...r];r.length=1,this.hasIndices&&(t=[...r.indices],r.indices.length=1);let a=[0];for(let e=1;e\((?:\?<(?![=!])(?[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,a=0,i=0;for(;t=r.exec(e);){let{0:e,groups:{capture:r,name:s}}=t;"["===e?a++:a?"]"===e&&a--:r&&(i++,s&&n.set(i,s))}return n}(this.source));let a=this.#n.get(s);a&&(r.groups[a]=n[e],this.hasIndices&&(r.indices.groups[a]=t[e]))}}}return r}};let at=function(e={}){let t={target:"auto",cache:new Map,...e};return t.regexConstructor||=e=>{let r;return(r=function(e,t){var r;let n,a,i,s,o=nM(t),l=(r=rF(e,{flags:o.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:o.rules.captureGroup,singleline:o.rules.singleline},skipBackrefValidation:o.rules.allowOrphanBackrefs,unicodePropertyMap:nz}),n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...{accuracy:o.accuracy,asciiWordBoundaries:o.rules.asciiWordBoundaries,avoidSubclass:o.avoidSubclass,bestEffortTarget:o.target}},nF(r),a={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:nC[n.bestEffortTarget]>=nC.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:r.flags.digitIsAscii,spaceIsAscii:r.flags.spaceIsAscii,wordIsAscii:r.flags.wordIsAscii},r8(r,nj,a),s={currentFlags:i={dotAll:r.flags.dotAll,ignoreCase:r.flags.ignoreCase},prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:a.subroutineRefMap},r8(r,nD,s),r8(r,nq,{groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer}),r._originMap=s.groupOriginByCopy,r._strategy=a.strategy,r),c=function(e,t){let r=nM(t),n=nC[r.target]>=nC.ES2024,a=nC[r.target]>=nC.ES2025,i=r.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw Error("Invalid recursionLimit; use 2-20");let s=null,o=null;if(!a){let t=[e.flags.ignoreCase];r8(e,nJ,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?s=!0:o=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!o)},c=e,h={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!a&&s&&o),useFlagMods:a,useFlagV:n,verbose:r.verbose};function u(e){return h.lastNode=c,c=e,(function(e,t){if(null==e)throw Error(t??"Value expected");return e})(nQ[e.type],`Unexpected node type "${e.type}"`)(e,h,u)}let p={pattern:e.body.map(u).join("|"),flags:u(e.flags),options:{...e.options}};return n||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],h.captureMap.forEach((e,t)=>{e.hidden&&p._hiddenCaptures.push(t),e.transferTo&&nS(p._captureTransfers,e.transferTo,[]).push(t)}),p}(l,o),h=function(e,t){let r,{hiddenCaptures:n,mode:a}={hiddenCaptures:[],mode:"plugin",...t},i=t?.captureTransfers??new Map;if(!RegExp(nh,"su").test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if("plugin"===a&&na(e,nl`\(\?\(DEFINE\)`,nr.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let s=[],o=na(e,nl`\\[1-9]`,nr.DEFAULT),l=new Map,c=[],h=!1,u=0,p=0;for(nm.lastIndex=0;r=nm.exec(e);){let{0:t,groups:{captureName:m,rDepth:d,gRNameOrNum:g,gRDepth:f}}=r;if("["===t)u++;else if(u)"]"===t&&u--;else if(d){if(ng(d),h)throw Error(nd);if(o)throw Error(`${"external"===a?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let t=e.slice(0,r.index),l=e.slice(nm.lastIndex);if(na(l,nh,nr.DEFAULT))throw Error(nd);let c=d-1;e=nf(t,l,c,!1,n,s,p),i=nb(i,t,c,s.length,0,p);break}else if(g){ng(f);let u=!1;for(let e of c)if(e.name===g||e.num===+g){if(u=!0,e.hasRecursedWithin)throw Error(nd);break}if(!u)throw Error(nl`Recursive \g cannot be used outside the referenced group "${"external"===a?g:nl`\g<${g}&R=${f}>`}"`);let m=l.get(g),d=function(e,t){let r,n=/\\?./gsu;n.lastIndex=t;let a=e.length,i=0,s=1;for(;r=n.exec(e);){let[e]=r;if("["===e)i++;else if(i)"]"===e&&i--;else if("("===e)s++;else if(")"===e&&!--s){a=r.index;break}}return e.slice(t,a)}(e,m);if(o&&na(d,nl`${nu}|\((?!\?)`,nr.DEFAULT))throw Error(`${"external"===a?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let y=e.slice(m,r.index),b=d.slice(y.length+t.length),v=s.length,x=f-1,w=nf(y,b,x,!0,n,s,p);i=nb(i,y,x,s.length-v,v,p);let k=e.slice(0,m),A=e.slice(m+d.length);e=`${k}${w}${A}`,nm.lastIndex+=w.length-t.length-y.length-b.length,c.forEach(e=>e.hasRecursedWithin=!0),h=!0}else if(m)p++,l.set(String(p),nm.lastIndex),l.set(m,nm.lastIndex),c.push({num:p,name:m});else if("("===t[0]){let e="("===t;e&&(p++,l.set(String(p),nm.lastIndex)),c.push(e?{num:p}:{})}else")"===t&&c.pop()}return n.push(...s),{pattern:e,captureTransfers:i,hiddenCaptures:n}}(c.pattern,{captureTransfers:c._captureTransfers,hiddenCaptures:c._hiddenCaptures,mode:"external"}),u=function(e,t){let r,n=t?.hiddenCaptures??[],a=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};let i="(?:(?=(",s=[0],o=[],l=0,c=0,h=NaN;do{let t;r=!1;let u=0,p=0,m=!1;for(ni.lastIndex=Number.isNaN(h)?0:h+i.length;t=ni.exec(e);){let{0:d,index:g,groups:{capturingStart:f,noncapturingStart:y}}=t;if("["===d)u++;else if(u)"]"===d&&u--;else if("(?>"!==d||m){if(m&&y)p++;else if(f)m?p++:(l++,s.push(l+c));else if(")"===d&&m){if(!p){let t=l+ ++c;e=`${e.slice(0,h)}${i}${e.slice(h+3,g)}))<$$${t}>)${e.slice(g+1)}`,r=!0,o.push(t);for(let e=0;e=t&&n[e]++;if(a.size){let e=new Map;a.forEach((r,n)=>{e.set(n>=t?n+1:n,r.map(e=>e>=t?e+1:e))}),a=e}break}p--}}else h=g,m=!0}}while(r)return n.push(...o),{pattern:e=nn(e,String.raw`\\(?[1-9]\d*)|<\$\$(?\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:r}})=>{if(t){let r=+t;if(r>s.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${s[r]}`}return`\\${r}`},nr.DEFAULT),captureTransfers:a,hiddenCaptures:n}}(function(e){let t;if(!RegExp(`${ns}\\+`).test(e))return{pattern:e};let r=[],n=null,a=null,i="",s=0;for(no.lastIndex=0;t=no.exec(e);){let{0:c,index:h,groups:{qBase:u,qMod:p,invalidQ:m}}=t;if("["===c)s||(a=h),s++;else if("]"===c)s?s--:a=null;else if(!s)if("+"===p&&i&&!i.startsWith("(")){if(m)throw Error(`Invalid quantifier "${c}"`);let t=-1;if(/^\{\d+\}$/.test(u)){var o,l;o=e,l=h+u.length,e=o.slice(0,l)+""+o.slice(l+p.length)}else{if(")"===i||"]"===i){let t=")"===i?n:a;if(null===t)throw Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,t)}(?>${e.slice(t,h)}${u})${e.slice(h+c.length)}`}else e=`${e.slice(0,h-i.length)}(?>${i}${u})${e.slice(h+c.length)}`;t+=4}no.lastIndex+=t}else"("===c[0]?r.push(h):")"===c&&(n=r.length?r.pop():null);i=c}return{pattern:e}}(h.pattern).pattern,{captureTransfers:h.captureTransfers,hiddenCaptures:h.hiddenCaptures}),p={pattern:u.pattern,flags:`${o.hasIndices?"d":""}${o.global?"g":""}${c.flags}${c.options.disable.v?"u":"v"}`};if(o.avoidSubclass){if(o.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=u.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(u.captureTransfers),r=l._strategy,n=p.pattern.length>=o.lazyCompileLength;(e.length||t.length||r||n)&&(p.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...r&&{strategy:r},...n&&{lazyCompile:n}})}return p}(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...{target:t.target}})).options?new ae(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)},{createScanner:e=>new rb(e,t),createString:e=>({content:e})}}({forgiving:!0}),ar=Promise.resolve(),an=new Map,aa=new Map,ai=new Map,as=new Map;function ao(e){return`${e[0]}:${e[1]}`}let al={svg:"xml"},ac=new Set(Object.keys(B)),ah=new Map;function au(e){var t;let r=ah.get(e);if(void 0!==r)return r;let n=al[e]??e,a=(t=n,ac.has(t))?n:"text";return ah.set(e,a),a}let ap={color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0};function am(e){return[{content:e,...ap}]}function ad(e,t,r){let n=aa.get(ao(r));return n&&("text"===t||ai.get(ao(r))?.has(t))?n.codeToTokens(e,{lang:t,themes:{light:r[0],dark:r[1]}}):null}function ag(e,t,r,n){let a;if(e===n.code)return n.result;let{tokens:i,fg:s,bg:o}=n.result,l=i.length-1,c=n.code,h=e.length>c.length&&e.startsWith(c);if(h){let e=c.length;a=c.lastIndexOf("\n",e-1)+1}else{let t=0;for(let r=0;re.content).join(""):"")!==g;if(m<=1&&!y)return n.result;if(h&&!y&&m>1){let e=Array(l+m);for(let t=0;t100?e.slice(-100):"";return`${t}:${r[0]}:${r[1]}:${e.length}:${n}:${a}`}let ab=()=>!1;e.s(["createShikiPlugin",0,function(e,t=ab){let r=null,n=!1,a=null;function i(e,s,o,l){let c=c=>{if(c&&(r={code:e,result:c},t()||function(e,t){if(af.size>=128){let e=af.keys().next().value;void 0!==e&&af.delete(e)}af.set(e,t)}(ay(e,s,o),c)),n=!1,null!==a&&a!==e){let e=a;a=null,n=!0,i(e,s,o,l);return}c&&l?.(c)};(async()=>{let t=aa.get(ao(o));return t||(t=await function(e){let t=ao(e),r=an.get(t);if(r)return r;let n=ry({themes:e,langs:[],engine:at}).then(e=>(aa.set(t,e),e));return an.set(t,n),n}(o)),"text"!==s&&await function(e,t,r){let n=ao(r),a=ai.get(n);if(a||(a=new Set,ai.set(n,a)),a.has(t))return ar;let i=as.get(n);i||(i=new Map,as.set(n,i));let s=i.get(t);if(s)return s;let o=e.loadLanguage(t).then(()=>{a.add(t)});return i.set(t,o),o}(t,s,o),t.codeToTokens(e,{lang:s,themes:{light:o[0],dark:o[1]}})})().then(e=>{c(e)}).catch(()=>{c()})}return{name:"shiki",type:"code-highlighter",highlight:(e,s)=>{let{code:o,language:l,themes:c}=e,h=au(l);if(t()){if(n?a=o:(n=!0,a=null,i(o,h,c,s)),!r){let e=ad(o,h,c);return e?(r={code:o,result:e},e):{tokens:o.split("\n").map(am)}}return ag(o,h,c,r)}let u=ay(o,h,c),p=af.get(u);if(p)return r={code:o,result:p},p;let m=s?e=>{r={code:o,result:e},s(e)}:void 0;if(n=!0,i(o,h,c,m),r)return ag(o,h,c,r);let d=ad(o,h,c);return d?(r={code:o,result:d},d):{tokens:o.split("\n").map(am)}},supportsLanguage:e=>{var t;return t=au(e),ac.has(t)},getSupportedLanguages:()=>Object.keys(B),getThemes:()=>e}}],717995);var av=e.i(897802),ax=e.i(907714),aw=e.i(133220),ak=e.i(455470);let aA={tokenize:function(e,t,r){let n=this,a=n.events[n.events.length-1],i=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,s=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(n){return 36===n?(e.consume(n),s++,t):s<2?r(n):(e.exit("mathFlowFenceSequence"),(0,aw.factorySpace)(e,o,"whitespace")(n))}(t)};function o(t){return null===t||(0,ak.markdownLineEnding)(t)?l(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(n){return null===n||(0,ak.markdownLineEnding)(n)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),l(n)):36===n?r(n):(e.consume(n),t)}(t))}function l(r){return(e.exit("mathFlowFence"),n.interrupt)?t(r):e.attempt(aS,c,p)(r)}function c(t){return e.attempt({tokenize:m,partial:!0},p,h)(t)}function h(t){return(i?(0,aw.factorySpace)(e,u,"linePrefix",i+1):u)(t)}function u(t){return null===t?p(t):(0,ak.markdownLineEnding)(t)?e.attempt(aS,c,p)(t):(e.enter("mathFlowValue"),function t(r){return null===r||(0,ak.markdownLineEnding)(r)?(e.exit("mathFlowValue"),u(r)):(e.consume(r),t)}(t))}function p(r){return e.exit("mathFlow"),t(r)}function m(e,t,r){let a=0;return(0,aw.factorySpace)(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(n){return 36===n?(a++,e.consume(n),t):a15?"…"+s.slice(a-15,a):s.slice(0,a))+o+(i+15":">","<":"<",'"':""","'":"'"},a0=/[&><"']/g,a1=function e(t){if("ordgroup"===t.type||"color"===t.type)if(1===t.body.length)return e(t.body[0]);else return t;return"font"===t.type?e(t.body):t},a4=function(e){if(!e)throw Error("Expected non-null, but got "+String(e));return e},a5=function(e,t){return void 0===e?t:e},a3=function(e){return String(e).replace(a0,e=>aQ[e])},a6=function(e){return e.replace(aJ,"-$1").toLowerCase()},a7=function(e){var t=a1(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},a2=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"===t[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"},a8={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 "},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 ",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 ",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 ",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 ",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 ",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};class a9{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},a8)if(a8.hasOwnProperty(t)){var r=a8[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:function(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}(r)}}reportNonstrict(e,t,r){var n=this.strict;if("function"==typeof n&&(n=n(e,t,r)),n&&"ignore"!==n){if(!0===n||"error"===n)throw new aK("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" [")+e+"]",r);"warn"===n?"u">typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" [")+e+"]"):"u">typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" [")+e+"]")}}useStrictBehavior(e,t,r){var n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(e){n="error"}return!!n&&"ignore"!==n&&(!0===n||"error"===n||("warn"===n?("u">typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" [")+e+"]"),!1):("u">typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" [")+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=a2(e.url);if(null==t)return!1;e.protocol=t}return!!("function"==typeof this.trust?this.trust(e):this.trust)}}class ie{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return it[ir[this.id]]}sub(){return it[ia[this.id]]}fracNum(){return it[ii[this.id]]}fracDen(){return it[is[this.id]]}cramp(){return it[io[this.id]]}text(){return it[il[this.id]]}isTight(){return this.size>=2}}var it=[new ie(0,0,!1),new ie(1,0,!0),new ie(2,1,!1),new ie(3,1,!0),new ie(4,2,!1),new ie(5,2,!0),new ie(6,3,!1),new ie(7,3,!0)],ir=[4,5,4,5,6,7,6,7],ia=[5,5,5,5,7,7,7,7],ii=[2,3,4,5,6,7,6,7],is=[3,3,5,5,7,7,7,7],io=[1,1,3,3,5,5,7,7],il=[0,1,2,3,2,3,2,3],ic={DISPLAY:it[0],TEXT:it[2],SCRIPT:it[4],SCRIPTSCRIPT:it[6]},ih=[{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]]}],iu=[];function ip(e){for(var t=0;t=iu[t]&&e<=iu[t+1])return!0;return!1}ih.forEach(e=>e.blocks.forEach(e=>iu.push(...e)));var im=function(e,t,r){t*=1e3;var n,a,i,s,o,l,c="";switch(e){case"sqrtMain":c="M95,"+(622+(n=t)+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.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\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+n/2.075+" -"+n+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+n)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+n)+" 80h400000v"+(40+n)+"h-400000z";break;case"sqrtSize1":c="M263,"+(601+(a=t)+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+a/2.084+" -"+a+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+a)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+a)+" 80h400000v"+(40+a)+"h-400000z";break;case"sqrtSize2":c="M983 "+(10+(i=t)+80)+"\nl"+i/3.13+" -"+i+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+i)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+i)+" 80h400000v"+(40+i)+"h-400000z";break;case"sqrtSize3":c="M424,"+(2398+(s=t)+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-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\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+s/4.223+" -"+s+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+s)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+s)+" 80\nh400000v"+(40+s)+"h-400000z";break;case"sqrtSize4":c="M473,"+(2713+(o=t)+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+o/5.298+" -"+o+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+o)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-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\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+o)+" 80h400000v"+(40+o)+"H1017.7z";break;case"sqrtTall":c="M702 "+((l=t)+80)+"H400000"+(40+l)+"\nH742v"+(r-54-80-l)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+l)+"H742z"}return c},id=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V")+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V")+t+" H478z";default:return""}},ig={doubleleftarrow:"M262 157\nl10-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\n 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\n 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\nc2 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\n 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\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-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\n 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\n-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\n-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\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-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\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 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\n-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\nc-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\n 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\n 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\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 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\n 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\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 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\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-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\n-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\n-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\n 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\n-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\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 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\n-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\n 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\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-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\n-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\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.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\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-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\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 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\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.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\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 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\n-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\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.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\n60.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\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 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\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.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\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 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\n-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\n 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\n 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\n-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\n-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\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-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\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.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\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-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\n 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\n 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\n-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\n-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\n 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\n-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\n 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\nm0 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\n 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\n-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\n-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\n 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\n 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\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-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\n 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\n-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\n 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\nM399960 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\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-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\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 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\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 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\nc-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\n 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\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 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\n-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\n 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\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-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\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 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\n 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\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -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\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-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\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-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\n-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\n-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\n-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,\n-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,\n-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,\n-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,\n-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\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-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\ns-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\n121.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\ns2.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\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-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\n13.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\n-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\n-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\n-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\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,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\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM0 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\nc1.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,\n1c0,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,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 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\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-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\nc-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\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},iy=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" 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\nc-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,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.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\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-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,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-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\nc-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\nc0,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\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw Error("Unknown stretchy delimiter.")}};class ib{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;te.toText()).join("")}}var iv={"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]}},ix={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]},iw={Å:"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 ik(e,t,r){if(!iv[t])throw Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=iv[t][n];if(!a&&e[0]in iw&&(n=iw[e[0]].charCodeAt(0),a=iv[t][n]),!a&&"text"===r&&ip(n)&&(a=iv[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var iA={},iS=[[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]],iC=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],i_=function(e,t){return t.size<2?e:iS[e-1][t.size-1]};class iM{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||iM.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=iC[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new iM(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:i_(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:iC[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=i_(iM.BASESIZE,e);return this.size===t&&this.textSize===iM.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==iM.BASESIZE?["sizing","reset-size"+this.size,"size"+iM.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!iA[t=e>=5?0:e>=3?1:2]){var r=iA[t]={cssEmPerMu:ix.quad[t]/18};for(var n in ix)ix.hasOwnProperty(n)&&(r[n]=ix[n][t])}return iA[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}iM.BASESIZE=6;var iT={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},iN={ex:!0,em:!0,mu:!0},iE=function(e){return"string"!=typeof e&&(e=e.unit),e in iT||e in iN||"ex"===e},iz=function(e,t){var r,n;if(e.unit in iT)r=iT[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{if(n=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=n.fontMetrics().xHeight;else if("em"===e.unit)r=n.fontMetrics().quad;else throw new aK("Invalid unit: '"+e.unit+"'");n!==t&&(r*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},iI=function(e){return+e.toFixed(4)+"em"},iL=function(e){return e.filter(e=>e).join(" ")},iR=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},iB=function(e){var t=document.createElement(e);for(var r in t.className=iL(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var a=0;a/=\x00-\x1f]/,iP=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+a3(iL(this.classes))+'"');var r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=a6(n)+":"+this.style[n]+";");for(var a in r&&(t+=' style="'+a3(r)+'"'),this.attributes)if(this.attributes.hasOwnProperty(a)){if(i$.test(a))throw new aK("Invalid attribute name '"+a+"'");t+=" "+a+'="'+a3(this.attributes[a])+'"'}t+=">";for(var i=0;i")};class iO{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,iR.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return iB.call(this,"span")}toMarkup(){return iP.call(this,"span")}}class ij{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,iR.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return iB.call(this,"a")}toMarkup(){return iP.call(this,"a")}}class iD{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=''+a3(this.alt)+'=a[0]&&e<=a[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=iq[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=iI(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=iL(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=a6(n)+":"+this.style[n]+";");r&&(e=!0,t+=' style="'+a3(r)+'"');var a=a3(this.text);return e?(t+=">",t+=a,t+=""):a}}class iG{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r"}}class iH{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",ig[this.pathName]),e}toMarkup(){return this.alternate?'':''}}class iU{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=""}}function iW(e){if(e instanceof iF)return e;throw Error("Expected symbolNode but got "+String(e)+".")}var iV={bin:1,close:1,inner:1,open:1,punct:1,rel:1},iX={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},iY={math:{},text:{}};function iZ(e,t,r,n,a,i){iY[e][a]={font:t,group:r,replace:n},i&&n&&(iY[e][n]=iY[e][a])}var iK="math",iJ="text",iQ="main",i0="accent-token",i1="close",i4="inner",i5="mathord",i3="op-token",i6="open",i7="punct",i2="spacing",i8="textord";iZ(iK,iQ,"rel","≡","\\equiv",!0),iZ(iK,iQ,"rel","≺","\\prec",!0),iZ(iK,iQ,"rel","≻","\\succ",!0),iZ(iK,iQ,"rel","∼","\\sim",!0),iZ(iK,iQ,"rel","⊥","\\perp"),iZ(iK,iQ,"rel","⪯","\\preceq",!0),iZ(iK,iQ,"rel","⪰","\\succeq",!0),iZ(iK,iQ,"rel","≃","\\simeq",!0),iZ(iK,iQ,"rel","∣","\\mid",!0),iZ(iK,iQ,"rel","≪","\\ll",!0),iZ(iK,iQ,"rel","≫","\\gg",!0),iZ(iK,iQ,"rel","≍","\\asymp",!0),iZ(iK,iQ,"rel","∥","\\parallel"),iZ(iK,iQ,"rel","⋈","\\bowtie",!0),iZ(iK,iQ,"rel","⌣","\\smile",!0),iZ(iK,iQ,"rel","⊑","\\sqsubseteq",!0),iZ(iK,iQ,"rel","⊒","\\sqsupseteq",!0),iZ(iK,iQ,"rel","≐","\\doteq",!0),iZ(iK,iQ,"rel","⌢","\\frown",!0),iZ(iK,iQ,"rel","∋","\\ni",!0),iZ(iK,iQ,"rel","∝","\\propto",!0),iZ(iK,iQ,"rel","⊢","\\vdash",!0),iZ(iK,iQ,"rel","⊣","\\dashv",!0),iZ(iK,iQ,"rel","∋","\\owns"),iZ(iK,iQ,i7,".","\\ldotp"),iZ(iK,iQ,i7,"⋅","\\cdotp"),iZ(iK,iQ,i8,"#","\\#"),iZ(iJ,iQ,i8,"#","\\#"),iZ(iK,iQ,i8,"&","\\&"),iZ(iJ,iQ,i8,"&","\\&"),iZ(iK,iQ,i8,"ℵ","\\aleph",!0),iZ(iK,iQ,i8,"∀","\\forall",!0),iZ(iK,iQ,i8,"ℏ","\\hbar",!0),iZ(iK,iQ,i8,"∃","\\exists",!0),iZ(iK,iQ,i8,"∇","\\nabla",!0),iZ(iK,iQ,i8,"♭","\\flat",!0),iZ(iK,iQ,i8,"ℓ","\\ell",!0),iZ(iK,iQ,i8,"♮","\\natural",!0),iZ(iK,iQ,i8,"♣","\\clubsuit",!0),iZ(iK,iQ,i8,"℘","\\wp",!0),iZ(iK,iQ,i8,"♯","\\sharp",!0),iZ(iK,iQ,i8,"♢","\\diamondsuit",!0),iZ(iK,iQ,i8,"ℜ","\\Re",!0),iZ(iK,iQ,i8,"♡","\\heartsuit",!0),iZ(iK,iQ,i8,"ℑ","\\Im",!0),iZ(iK,iQ,i8,"♠","\\spadesuit",!0),iZ(iK,iQ,i8,"§","\\S",!0),iZ(iJ,iQ,i8,"§","\\S"),iZ(iK,iQ,i8,"¶","\\P",!0),iZ(iJ,iQ,i8,"¶","\\P"),iZ(iK,iQ,i8,"†","\\dag"),iZ(iJ,iQ,i8,"†","\\dag"),iZ(iJ,iQ,i8,"†","\\textdagger"),iZ(iK,iQ,i8,"‡","\\ddag"),iZ(iJ,iQ,i8,"‡","\\ddag"),iZ(iJ,iQ,i8,"‡","\\textdaggerdbl"),iZ(iK,iQ,i1,"⎱","\\rmoustache",!0),iZ(iK,iQ,i6,"⎰","\\lmoustache",!0),iZ(iK,iQ,i1,"⟯","\\rgroup",!0),iZ(iK,iQ,i6,"⟮","\\lgroup",!0),iZ(iK,iQ,"bin","∓","\\mp",!0),iZ(iK,iQ,"bin","⊖","\\ominus",!0),iZ(iK,iQ,"bin","⊎","\\uplus",!0),iZ(iK,iQ,"bin","⊓","\\sqcap",!0),iZ(iK,iQ,"bin","∗","\\ast"),iZ(iK,iQ,"bin","⊔","\\sqcup",!0),iZ(iK,iQ,"bin","◯","\\bigcirc",!0),iZ(iK,iQ,"bin","∙","\\bullet",!0),iZ(iK,iQ,"bin","‡","\\ddagger"),iZ(iK,iQ,"bin","≀","\\wr",!0),iZ(iK,iQ,"bin","⨿","\\amalg"),iZ(iK,iQ,"bin","&","\\And"),iZ(iK,iQ,"rel","⟵","\\longleftarrow",!0),iZ(iK,iQ,"rel","⇐","\\Leftarrow",!0),iZ(iK,iQ,"rel","⟸","\\Longleftarrow",!0),iZ(iK,iQ,"rel","⟶","\\longrightarrow",!0),iZ(iK,iQ,"rel","⇒","\\Rightarrow",!0),iZ(iK,iQ,"rel","⟹","\\Longrightarrow",!0),iZ(iK,iQ,"rel","↔","\\leftrightarrow",!0),iZ(iK,iQ,"rel","⟷","\\longleftrightarrow",!0),iZ(iK,iQ,"rel","⇔","\\Leftrightarrow",!0),iZ(iK,iQ,"rel","⟺","\\Longleftrightarrow",!0),iZ(iK,iQ,"rel","↦","\\mapsto",!0),iZ(iK,iQ,"rel","⟼","\\longmapsto",!0),iZ(iK,iQ,"rel","↗","\\nearrow",!0),iZ(iK,iQ,"rel","↩","\\hookleftarrow",!0),iZ(iK,iQ,"rel","↪","\\hookrightarrow",!0),iZ(iK,iQ,"rel","↘","\\searrow",!0),iZ(iK,iQ,"rel","↼","\\leftharpoonup",!0),iZ(iK,iQ,"rel","⇀","\\rightharpoonup",!0),iZ(iK,iQ,"rel","↙","\\swarrow",!0),iZ(iK,iQ,"rel","↽","\\leftharpoondown",!0),iZ(iK,iQ,"rel","⇁","\\rightharpoondown",!0),iZ(iK,iQ,"rel","↖","\\nwarrow",!0),iZ(iK,iQ,"rel","⇌","\\rightleftharpoons",!0),iZ(iK,"ams","rel","≮","\\nless",!0),iZ(iK,"ams","rel","","\\@nleqslant"),iZ(iK,"ams","rel","","\\@nleqq"),iZ(iK,"ams","rel","⪇","\\lneq",!0),iZ(iK,"ams","rel","≨","\\lneqq",!0),iZ(iK,"ams","rel","","\\@lvertneqq"),iZ(iK,"ams","rel","⋦","\\lnsim",!0),iZ(iK,"ams","rel","⪉","\\lnapprox",!0),iZ(iK,"ams","rel","⊀","\\nprec",!0),iZ(iK,"ams","rel","⋠","\\npreceq",!0),iZ(iK,"ams","rel","⋨","\\precnsim",!0),iZ(iK,"ams","rel","⪹","\\precnapprox",!0),iZ(iK,"ams","rel","≁","\\nsim",!0),iZ(iK,"ams","rel","","\\@nshortmid"),iZ(iK,"ams","rel","∤","\\nmid",!0),iZ(iK,"ams","rel","⊬","\\nvdash",!0),iZ(iK,"ams","rel","⊭","\\nvDash",!0),iZ(iK,"ams","rel","⋪","\\ntriangleleft"),iZ(iK,"ams","rel","⋬","\\ntrianglelefteq",!0),iZ(iK,"ams","rel","⊊","\\subsetneq",!0),iZ(iK,"ams","rel","","\\@varsubsetneq"),iZ(iK,"ams","rel","⫋","\\subsetneqq",!0),iZ(iK,"ams","rel","","\\@varsubsetneqq"),iZ(iK,"ams","rel","≯","\\ngtr",!0),iZ(iK,"ams","rel","","\\@ngeqslant"),iZ(iK,"ams","rel","","\\@ngeqq"),iZ(iK,"ams","rel","⪈","\\gneq",!0),iZ(iK,"ams","rel","≩","\\gneqq",!0),iZ(iK,"ams","rel","","\\@gvertneqq"),iZ(iK,"ams","rel","⋧","\\gnsim",!0),iZ(iK,"ams","rel","⪊","\\gnapprox",!0),iZ(iK,"ams","rel","⊁","\\nsucc",!0),iZ(iK,"ams","rel","⋡","\\nsucceq",!0),iZ(iK,"ams","rel","⋩","\\succnsim",!0),iZ(iK,"ams","rel","⪺","\\succnapprox",!0),iZ(iK,"ams","rel","≆","\\ncong",!0),iZ(iK,"ams","rel","","\\@nshortparallel"),iZ(iK,"ams","rel","∦","\\nparallel",!0),iZ(iK,"ams","rel","⊯","\\nVDash",!0),iZ(iK,"ams","rel","⋫","\\ntriangleright"),iZ(iK,"ams","rel","⋭","\\ntrianglerighteq",!0),iZ(iK,"ams","rel","","\\@nsupseteqq"),iZ(iK,"ams","rel","⊋","\\supsetneq",!0),iZ(iK,"ams","rel","","\\@varsupsetneq"),iZ(iK,"ams","rel","⫌","\\supsetneqq",!0),iZ(iK,"ams","rel","","\\@varsupsetneqq"),iZ(iK,"ams","rel","⊮","\\nVdash",!0),iZ(iK,"ams","rel","⪵","\\precneqq",!0),iZ(iK,"ams","rel","⪶","\\succneqq",!0),iZ(iK,"ams","rel","","\\@nsubseteqq"),iZ(iK,"ams","bin","⊴","\\unlhd"),iZ(iK,"ams","bin","⊵","\\unrhd"),iZ(iK,"ams","rel","↚","\\nleftarrow",!0),iZ(iK,"ams","rel","↛","\\nrightarrow",!0),iZ(iK,"ams","rel","⇍","\\nLeftarrow",!0),iZ(iK,"ams","rel","⇏","\\nRightarrow",!0),iZ(iK,"ams","rel","↮","\\nleftrightarrow",!0),iZ(iK,"ams","rel","⇎","\\nLeftrightarrow",!0),iZ(iK,"ams","rel","△","\\vartriangle"),iZ(iK,"ams",i8,"ℏ","\\hslash"),iZ(iK,"ams",i8,"▽","\\triangledown"),iZ(iK,"ams",i8,"◊","\\lozenge"),iZ(iK,"ams",i8,"Ⓢ","\\circledS"),iZ(iK,"ams",i8,"®","\\circledR"),iZ(iJ,"ams",i8,"®","\\circledR"),iZ(iK,"ams",i8,"∡","\\measuredangle",!0),iZ(iK,"ams",i8,"∄","\\nexists"),iZ(iK,"ams",i8,"℧","\\mho"),iZ(iK,"ams",i8,"Ⅎ","\\Finv",!0),iZ(iK,"ams",i8,"⅁","\\Game",!0),iZ(iK,"ams",i8,"‵","\\backprime"),iZ(iK,"ams",i8,"▲","\\blacktriangle"),iZ(iK,"ams",i8,"▼","\\blacktriangledown"),iZ(iK,"ams",i8,"■","\\blacksquare"),iZ(iK,"ams",i8,"⧫","\\blacklozenge"),iZ(iK,"ams",i8,"★","\\bigstar"),iZ(iK,"ams",i8,"∢","\\sphericalangle",!0),iZ(iK,"ams",i8,"∁","\\complement",!0),iZ(iK,"ams",i8,"ð","\\eth",!0),iZ(iJ,iQ,i8,"ð","ð"),iZ(iK,"ams",i8,"╱","\\diagup"),iZ(iK,"ams",i8,"╲","\\diagdown"),iZ(iK,"ams",i8,"□","\\square"),iZ(iK,"ams",i8,"□","\\Box"),iZ(iK,"ams",i8,"◊","\\Diamond"),iZ(iK,"ams",i8,"¥","\\yen",!0),iZ(iJ,"ams",i8,"¥","\\yen",!0),iZ(iK,"ams",i8,"✓","\\checkmark",!0),iZ(iJ,"ams",i8,"✓","\\checkmark"),iZ(iK,"ams",i8,"ℶ","\\beth",!0),iZ(iK,"ams",i8,"ℸ","\\daleth",!0),iZ(iK,"ams",i8,"ℷ","\\gimel",!0),iZ(iK,"ams",i8,"ϝ","\\digamma",!0),iZ(iK,"ams",i8,"ϰ","\\varkappa"),iZ(iK,"ams",i6,"┌","\\@ulcorner",!0),iZ(iK,"ams",i1,"┐","\\@urcorner",!0),iZ(iK,"ams",i6,"└","\\@llcorner",!0),iZ(iK,"ams",i1,"┘","\\@lrcorner",!0),iZ(iK,"ams","rel","≦","\\leqq",!0),iZ(iK,"ams","rel","⩽","\\leqslant",!0),iZ(iK,"ams","rel","⪕","\\eqslantless",!0),iZ(iK,"ams","rel","≲","\\lesssim",!0),iZ(iK,"ams","rel","⪅","\\lessapprox",!0),iZ(iK,"ams","rel","≊","\\approxeq",!0),iZ(iK,"ams","bin","⋖","\\lessdot"),iZ(iK,"ams","rel","⋘","\\lll",!0),iZ(iK,"ams","rel","≶","\\lessgtr",!0),iZ(iK,"ams","rel","⋚","\\lesseqgtr",!0),iZ(iK,"ams","rel","⪋","\\lesseqqgtr",!0),iZ(iK,"ams","rel","≑","\\doteqdot"),iZ(iK,"ams","rel","≓","\\risingdotseq",!0),iZ(iK,"ams","rel","≒","\\fallingdotseq",!0),iZ(iK,"ams","rel","∽","\\backsim",!0),iZ(iK,"ams","rel","⋍","\\backsimeq",!0),iZ(iK,"ams","rel","⫅","\\subseteqq",!0),iZ(iK,"ams","rel","⋐","\\Subset",!0),iZ(iK,"ams","rel","⊏","\\sqsubset",!0),iZ(iK,"ams","rel","≼","\\preccurlyeq",!0),iZ(iK,"ams","rel","⋞","\\curlyeqprec",!0),iZ(iK,"ams","rel","≾","\\precsim",!0),iZ(iK,"ams","rel","⪷","\\precapprox",!0),iZ(iK,"ams","rel","⊲","\\vartriangleleft"),iZ(iK,"ams","rel","⊴","\\trianglelefteq"),iZ(iK,"ams","rel","⊨","\\vDash",!0),iZ(iK,"ams","rel","⊪","\\Vvdash",!0),iZ(iK,"ams","rel","⌣","\\smallsmile"),iZ(iK,"ams","rel","⌢","\\smallfrown"),iZ(iK,"ams","rel","≏","\\bumpeq",!0),iZ(iK,"ams","rel","≎","\\Bumpeq",!0),iZ(iK,"ams","rel","≧","\\geqq",!0),iZ(iK,"ams","rel","⩾","\\geqslant",!0),iZ(iK,"ams","rel","⪖","\\eqslantgtr",!0),iZ(iK,"ams","rel","≳","\\gtrsim",!0),iZ(iK,"ams","rel","⪆","\\gtrapprox",!0),iZ(iK,"ams","bin","⋗","\\gtrdot"),iZ(iK,"ams","rel","⋙","\\ggg",!0),iZ(iK,"ams","rel","≷","\\gtrless",!0),iZ(iK,"ams","rel","⋛","\\gtreqless",!0),iZ(iK,"ams","rel","⪌","\\gtreqqless",!0),iZ(iK,"ams","rel","≖","\\eqcirc",!0),iZ(iK,"ams","rel","≗","\\circeq",!0),iZ(iK,"ams","rel","≜","\\triangleq",!0),iZ(iK,"ams","rel","∼","\\thicksim"),iZ(iK,"ams","rel","≈","\\thickapprox"),iZ(iK,"ams","rel","⫆","\\supseteqq",!0),iZ(iK,"ams","rel","⋑","\\Supset",!0),iZ(iK,"ams","rel","⊐","\\sqsupset",!0),iZ(iK,"ams","rel","≽","\\succcurlyeq",!0),iZ(iK,"ams","rel","⋟","\\curlyeqsucc",!0),iZ(iK,"ams","rel","≿","\\succsim",!0),iZ(iK,"ams","rel","⪸","\\succapprox",!0),iZ(iK,"ams","rel","⊳","\\vartriangleright"),iZ(iK,"ams","rel","⊵","\\trianglerighteq"),iZ(iK,"ams","rel","⊩","\\Vdash",!0),iZ(iK,"ams","rel","∣","\\shortmid"),iZ(iK,"ams","rel","∥","\\shortparallel"),iZ(iK,"ams","rel","≬","\\between",!0),iZ(iK,"ams","rel","⋔","\\pitchfork",!0),iZ(iK,"ams","rel","∝","\\varpropto"),iZ(iK,"ams","rel","◀","\\blacktriangleleft"),iZ(iK,"ams","rel","∴","\\therefore",!0),iZ(iK,"ams","rel","∍","\\backepsilon"),iZ(iK,"ams","rel","▶","\\blacktriangleright"),iZ(iK,"ams","rel","∵","\\because",!0),iZ(iK,"ams","rel","⋘","\\llless"),iZ(iK,"ams","rel","⋙","\\gggtr"),iZ(iK,"ams","bin","⊲","\\lhd"),iZ(iK,"ams","bin","⊳","\\rhd"),iZ(iK,"ams","rel","≂","\\eqsim",!0),iZ(iK,iQ,"rel","⋈","\\Join"),iZ(iK,"ams","rel","≑","\\Doteq",!0),iZ(iK,"ams","bin","∔","\\dotplus",!0),iZ(iK,"ams","bin","∖","\\smallsetminus"),iZ(iK,"ams","bin","⋒","\\Cap",!0),iZ(iK,"ams","bin","⋓","\\Cup",!0),iZ(iK,"ams","bin","⩞","\\doublebarwedge",!0),iZ(iK,"ams","bin","⊟","\\boxminus",!0),iZ(iK,"ams","bin","⊞","\\boxplus",!0),iZ(iK,"ams","bin","⋇","\\divideontimes",!0),iZ(iK,"ams","bin","⋉","\\ltimes",!0),iZ(iK,"ams","bin","⋊","\\rtimes",!0),iZ(iK,"ams","bin","⋋","\\leftthreetimes",!0),iZ(iK,"ams","bin","⋌","\\rightthreetimes",!0),iZ(iK,"ams","bin","⋏","\\curlywedge",!0),iZ(iK,"ams","bin","⋎","\\curlyvee",!0),iZ(iK,"ams","bin","⊝","\\circleddash",!0),iZ(iK,"ams","bin","⊛","\\circledast",!0),iZ(iK,"ams","bin","⋅","\\centerdot"),iZ(iK,"ams","bin","⊺","\\intercal",!0),iZ(iK,"ams","bin","⋒","\\doublecap"),iZ(iK,"ams","bin","⋓","\\doublecup"),iZ(iK,"ams","bin","⊠","\\boxtimes",!0),iZ(iK,"ams","rel","⇢","\\dashrightarrow",!0),iZ(iK,"ams","rel","⇠","\\dashleftarrow",!0),iZ(iK,"ams","rel","⇇","\\leftleftarrows",!0),iZ(iK,"ams","rel","⇆","\\leftrightarrows",!0),iZ(iK,"ams","rel","⇚","\\Lleftarrow",!0),iZ(iK,"ams","rel","↞","\\twoheadleftarrow",!0),iZ(iK,"ams","rel","↢","\\leftarrowtail",!0),iZ(iK,"ams","rel","↫","\\looparrowleft",!0),iZ(iK,"ams","rel","⇋","\\leftrightharpoons",!0),iZ(iK,"ams","rel","↶","\\curvearrowleft",!0),iZ(iK,"ams","rel","↺","\\circlearrowleft",!0),iZ(iK,"ams","rel","↰","\\Lsh",!0),iZ(iK,"ams","rel","⇈","\\upuparrows",!0),iZ(iK,"ams","rel","↿","\\upharpoonleft",!0),iZ(iK,"ams","rel","⇃","\\downharpoonleft",!0),iZ(iK,iQ,"rel","⊶","\\origof",!0),iZ(iK,iQ,"rel","⊷","\\imageof",!0),iZ(iK,"ams","rel","⊸","\\multimap",!0),iZ(iK,"ams","rel","↭","\\leftrightsquigarrow",!0),iZ(iK,"ams","rel","⇉","\\rightrightarrows",!0),iZ(iK,"ams","rel","⇄","\\rightleftarrows",!0),iZ(iK,"ams","rel","↠","\\twoheadrightarrow",!0),iZ(iK,"ams","rel","↣","\\rightarrowtail",!0),iZ(iK,"ams","rel","↬","\\looparrowright",!0),iZ(iK,"ams","rel","↷","\\curvearrowright",!0),iZ(iK,"ams","rel","↻","\\circlearrowright",!0),iZ(iK,"ams","rel","↱","\\Rsh",!0),iZ(iK,"ams","rel","⇊","\\downdownarrows",!0),iZ(iK,"ams","rel","↾","\\upharpoonright",!0),iZ(iK,"ams","rel","⇂","\\downharpoonright",!0),iZ(iK,"ams","rel","⇝","\\rightsquigarrow",!0),iZ(iK,"ams","rel","⇝","\\leadsto"),iZ(iK,"ams","rel","⇛","\\Rrightarrow",!0),iZ(iK,"ams","rel","↾","\\restriction"),iZ(iK,iQ,i8,"‘","`"),iZ(iK,iQ,i8,"$","\\$"),iZ(iJ,iQ,i8,"$","\\$"),iZ(iJ,iQ,i8,"$","\\textdollar"),iZ(iK,iQ,i8,"%","\\%"),iZ(iJ,iQ,i8,"%","\\%"),iZ(iK,iQ,i8,"_","\\_"),iZ(iJ,iQ,i8,"_","\\_"),iZ(iJ,iQ,i8,"_","\\textunderscore"),iZ(iK,iQ,i8,"∠","\\angle",!0),iZ(iK,iQ,i8,"∞","\\infty",!0),iZ(iK,iQ,i8,"′","\\prime"),iZ(iK,iQ,i8,"△","\\triangle"),iZ(iK,iQ,i8,"Γ","\\Gamma",!0),iZ(iK,iQ,i8,"Δ","\\Delta",!0),iZ(iK,iQ,i8,"Θ","\\Theta",!0),iZ(iK,iQ,i8,"Λ","\\Lambda",!0),iZ(iK,iQ,i8,"Ξ","\\Xi",!0),iZ(iK,iQ,i8,"Π","\\Pi",!0),iZ(iK,iQ,i8,"Σ","\\Sigma",!0),iZ(iK,iQ,i8,"Υ","\\Upsilon",!0),iZ(iK,iQ,i8,"Φ","\\Phi",!0),iZ(iK,iQ,i8,"Ψ","\\Psi",!0),iZ(iK,iQ,i8,"Ω","\\Omega",!0),iZ(iK,iQ,i8,"A","Α"),iZ(iK,iQ,i8,"B","Β"),iZ(iK,iQ,i8,"E","Ε"),iZ(iK,iQ,i8,"Z","Ζ"),iZ(iK,iQ,i8,"H","Η"),iZ(iK,iQ,i8,"I","Ι"),iZ(iK,iQ,i8,"K","Κ"),iZ(iK,iQ,i8,"M","Μ"),iZ(iK,iQ,i8,"N","Ν"),iZ(iK,iQ,i8,"O","Ο"),iZ(iK,iQ,i8,"P","Ρ"),iZ(iK,iQ,i8,"T","Τ"),iZ(iK,iQ,i8,"X","Χ"),iZ(iK,iQ,i8,"¬","\\neg",!0),iZ(iK,iQ,i8,"¬","\\lnot"),iZ(iK,iQ,i8,"⊤","\\top"),iZ(iK,iQ,i8,"⊥","\\bot"),iZ(iK,iQ,i8,"∅","\\emptyset"),iZ(iK,"ams",i8,"∅","\\varnothing"),iZ(iK,iQ,i5,"α","\\alpha",!0),iZ(iK,iQ,i5,"β","\\beta",!0),iZ(iK,iQ,i5,"γ","\\gamma",!0),iZ(iK,iQ,i5,"δ","\\delta",!0),iZ(iK,iQ,i5,"ϵ","\\epsilon",!0),iZ(iK,iQ,i5,"ζ","\\zeta",!0),iZ(iK,iQ,i5,"η","\\eta",!0),iZ(iK,iQ,i5,"θ","\\theta",!0),iZ(iK,iQ,i5,"ι","\\iota",!0),iZ(iK,iQ,i5,"κ","\\kappa",!0),iZ(iK,iQ,i5,"λ","\\lambda",!0),iZ(iK,iQ,i5,"μ","\\mu",!0),iZ(iK,iQ,i5,"ν","\\nu",!0),iZ(iK,iQ,i5,"ξ","\\xi",!0),iZ(iK,iQ,i5,"ο","\\omicron",!0),iZ(iK,iQ,i5,"π","\\pi",!0),iZ(iK,iQ,i5,"ρ","\\rho",!0),iZ(iK,iQ,i5,"σ","\\sigma",!0),iZ(iK,iQ,i5,"τ","\\tau",!0),iZ(iK,iQ,i5,"υ","\\upsilon",!0),iZ(iK,iQ,i5,"ϕ","\\phi",!0),iZ(iK,iQ,i5,"χ","\\chi",!0),iZ(iK,iQ,i5,"ψ","\\psi",!0),iZ(iK,iQ,i5,"ω","\\omega",!0),iZ(iK,iQ,i5,"ε","\\varepsilon",!0),iZ(iK,iQ,i5,"ϑ","\\vartheta",!0),iZ(iK,iQ,i5,"ϖ","\\varpi",!0),iZ(iK,iQ,i5,"ϱ","\\varrho",!0),iZ(iK,iQ,i5,"ς","\\varsigma",!0),iZ(iK,iQ,i5,"φ","\\varphi",!0),iZ(iK,iQ,"bin","∗","*",!0),iZ(iK,iQ,"bin","+","+"),iZ(iK,iQ,"bin","−","-",!0),iZ(iK,iQ,"bin","⋅","\\cdot",!0),iZ(iK,iQ,"bin","∘","\\circ",!0),iZ(iK,iQ,"bin","÷","\\div",!0),iZ(iK,iQ,"bin","±","\\pm",!0),iZ(iK,iQ,"bin","×","\\times",!0),iZ(iK,iQ,"bin","∩","\\cap",!0),iZ(iK,iQ,"bin","∪","\\cup",!0),iZ(iK,iQ,"bin","∖","\\setminus",!0),iZ(iK,iQ,"bin","∧","\\land"),iZ(iK,iQ,"bin","∨","\\lor"),iZ(iK,iQ,"bin","∧","\\wedge",!0),iZ(iK,iQ,"bin","∨","\\vee",!0),iZ(iK,iQ,i8,"√","\\surd"),iZ(iK,iQ,i6,"⟨","\\langle",!0),iZ(iK,iQ,i6,"∣","\\lvert"),iZ(iK,iQ,i6,"∥","\\lVert"),iZ(iK,iQ,i1,"?","?"),iZ(iK,iQ,i1,"!","!"),iZ(iK,iQ,i1,"⟩","\\rangle",!0),iZ(iK,iQ,i1,"∣","\\rvert"),iZ(iK,iQ,i1,"∥","\\rVert"),iZ(iK,iQ,"rel","=","="),iZ(iK,iQ,"rel",":",":"),iZ(iK,iQ,"rel","≈","\\approx",!0),iZ(iK,iQ,"rel","≅","\\cong",!0),iZ(iK,iQ,"rel","≥","\\ge"),iZ(iK,iQ,"rel","≥","\\geq",!0),iZ(iK,iQ,"rel","←","\\gets"),iZ(iK,iQ,"rel",">","\\gt",!0),iZ(iK,iQ,"rel","∈","\\in",!0),iZ(iK,iQ,"rel","","\\@not"),iZ(iK,iQ,"rel","⊂","\\subset",!0),iZ(iK,iQ,"rel","⊃","\\supset",!0),iZ(iK,iQ,"rel","⊆","\\subseteq",!0),iZ(iK,iQ,"rel","⊇","\\supseteq",!0),iZ(iK,"ams","rel","⊈","\\nsubseteq",!0),iZ(iK,"ams","rel","⊉","\\nsupseteq",!0),iZ(iK,iQ,"rel","⊨","\\models"),iZ(iK,iQ,"rel","←","\\leftarrow",!0),iZ(iK,iQ,"rel","≤","\\le"),iZ(iK,iQ,"rel","≤","\\leq",!0),iZ(iK,iQ,"rel","<","\\lt",!0),iZ(iK,iQ,"rel","→","\\rightarrow",!0),iZ(iK,iQ,"rel","→","\\to"),iZ(iK,"ams","rel","≱","\\ngeq",!0),iZ(iK,"ams","rel","≰","\\nleq",!0),iZ(iK,iQ,i2," ","\\ "),iZ(iK,iQ,i2," ","\\space"),iZ(iK,iQ,i2," ","\\nobreakspace"),iZ(iJ,iQ,i2," ","\\ "),iZ(iJ,iQ,i2," "," "),iZ(iJ,iQ,i2," ","\\space"),iZ(iJ,iQ,i2," ","\\nobreakspace"),iZ(iK,iQ,i2,null,"\\nobreak"),iZ(iK,iQ,i2,null,"\\allowbreak"),iZ(iK,iQ,i7,",",","),iZ(iK,iQ,i7,";",";"),iZ(iK,"ams","bin","⊼","\\barwedge",!0),iZ(iK,"ams","bin","⊻","\\veebar",!0),iZ(iK,iQ,"bin","⊙","\\odot",!0),iZ(iK,iQ,"bin","⊕","\\oplus",!0),iZ(iK,iQ,"bin","⊗","\\otimes",!0),iZ(iK,iQ,i8,"∂","\\partial",!0),iZ(iK,iQ,"bin","⊘","\\oslash",!0),iZ(iK,"ams","bin","⊚","\\circledcirc",!0),iZ(iK,"ams","bin","⊡","\\boxdot",!0),iZ(iK,iQ,"bin","△","\\bigtriangleup"),iZ(iK,iQ,"bin","▽","\\bigtriangledown"),iZ(iK,iQ,"bin","†","\\dagger"),iZ(iK,iQ,"bin","⋄","\\diamond"),iZ(iK,iQ,"bin","⋆","\\star"),iZ(iK,iQ,"bin","◃","\\triangleleft"),iZ(iK,iQ,"bin","▹","\\triangleright"),iZ(iK,iQ,i6,"{","\\{"),iZ(iJ,iQ,i8,"{","\\{"),iZ(iJ,iQ,i8,"{","\\textbraceleft"),iZ(iK,iQ,i1,"}","\\}"),iZ(iJ,iQ,i8,"}","\\}"),iZ(iJ,iQ,i8,"}","\\textbraceright"),iZ(iK,iQ,i6,"{","\\lbrace"),iZ(iK,iQ,i1,"}","\\rbrace"),iZ(iK,iQ,i6,"[","\\lbrack",!0),iZ(iJ,iQ,i8,"[","\\lbrack",!0),iZ(iK,iQ,i1,"]","\\rbrack",!0),iZ(iJ,iQ,i8,"]","\\rbrack",!0),iZ(iK,iQ,i6,"(","\\lparen",!0),iZ(iK,iQ,i1,")","\\rparen",!0),iZ(iJ,iQ,i8,"<","\\textless",!0),iZ(iJ,iQ,i8,">","\\textgreater",!0),iZ(iK,iQ,i6,"⌊","\\lfloor",!0),iZ(iK,iQ,i1,"⌋","\\rfloor",!0),iZ(iK,iQ,i6,"⌈","\\lceil",!0),iZ(iK,iQ,i1,"⌉","\\rceil",!0),iZ(iK,iQ,i8,"\\","\\backslash"),iZ(iK,iQ,i8,"∣","|"),iZ(iK,iQ,i8,"∣","\\vert"),iZ(iJ,iQ,i8,"|","\\textbar",!0),iZ(iK,iQ,i8,"∥","\\|"),iZ(iK,iQ,i8,"∥","\\Vert"),iZ(iJ,iQ,i8,"∥","\\textbardbl"),iZ(iJ,iQ,i8,"~","\\textasciitilde"),iZ(iJ,iQ,i8,"\\","\\textbackslash"),iZ(iJ,iQ,i8,"^","\\textasciicircum"),iZ(iK,iQ,"rel","↑","\\uparrow",!0),iZ(iK,iQ,"rel","⇑","\\Uparrow",!0),iZ(iK,iQ,"rel","↓","\\downarrow",!0),iZ(iK,iQ,"rel","⇓","\\Downarrow",!0),iZ(iK,iQ,"rel","↕","\\updownarrow",!0),iZ(iK,iQ,"rel","⇕","\\Updownarrow",!0),iZ(iK,iQ,i3,"∐","\\coprod"),iZ(iK,iQ,i3,"⋁","\\bigvee"),iZ(iK,iQ,i3,"⋀","\\bigwedge"),iZ(iK,iQ,i3,"⨄","\\biguplus"),iZ(iK,iQ,i3,"⋂","\\bigcap"),iZ(iK,iQ,i3,"⋃","\\bigcup"),iZ(iK,iQ,i3,"∫","\\int"),iZ(iK,iQ,i3,"∫","\\intop"),iZ(iK,iQ,i3,"∬","\\iint"),iZ(iK,iQ,i3,"∭","\\iiint"),iZ(iK,iQ,i3,"∏","\\prod"),iZ(iK,iQ,i3,"∑","\\sum"),iZ(iK,iQ,i3,"⨂","\\bigotimes"),iZ(iK,iQ,i3,"⨁","\\bigoplus"),iZ(iK,iQ,i3,"⨀","\\bigodot"),iZ(iK,iQ,i3,"∮","\\oint"),iZ(iK,iQ,i3,"∯","\\oiint"),iZ(iK,iQ,i3,"∰","\\oiiint"),iZ(iK,iQ,i3,"⨆","\\bigsqcup"),iZ(iK,iQ,i3,"∫","\\smallint"),iZ(iJ,iQ,i4,"…","\\textellipsis"),iZ(iK,iQ,i4,"…","\\mathellipsis"),iZ(iJ,iQ,i4,"…","\\ldots",!0),iZ(iK,iQ,i4,"…","\\ldots",!0),iZ(iK,iQ,i4,"⋯","\\@cdots",!0),iZ(iK,iQ,i4,"⋱","\\ddots",!0),iZ(iK,iQ,i8,"⋮","\\varvdots"),iZ(iJ,iQ,i8,"⋮","\\varvdots"),iZ(iK,iQ,i0,"ˊ","\\acute"),iZ(iK,iQ,i0,"ˋ","\\grave"),iZ(iK,iQ,i0,"¨","\\ddot"),iZ(iK,iQ,i0,"~","\\tilde"),iZ(iK,iQ,i0,"ˉ","\\bar"),iZ(iK,iQ,i0,"˘","\\breve"),iZ(iK,iQ,i0,"ˇ","\\check"),iZ(iK,iQ,i0,"^","\\hat"),iZ(iK,iQ,i0,"⃗","\\vec"),iZ(iK,iQ,i0,"˙","\\dot"),iZ(iK,iQ,i0,"˚","\\mathring"),iZ(iK,iQ,i5,"","\\@imath"),iZ(iK,iQ,i5,"","\\@jmath"),iZ(iK,iQ,i8,"ı","ı"),iZ(iK,iQ,i8,"ȷ","ȷ"),iZ(iJ,iQ,i8,"ı","\\i",!0),iZ(iJ,iQ,i8,"ȷ","\\j",!0),iZ(iJ,iQ,i8,"ß","\\ss",!0),iZ(iJ,iQ,i8,"æ","\\ae",!0),iZ(iJ,iQ,i8,"œ","\\oe",!0),iZ(iJ,iQ,i8,"ø","\\o",!0),iZ(iJ,iQ,i8,"Æ","\\AE",!0),iZ(iJ,iQ,i8,"Œ","\\OE",!0),iZ(iJ,iQ,i8,"Ø","\\O",!0),iZ(iJ,iQ,i0,"ˊ","\\'"),iZ(iJ,iQ,i0,"ˋ","\\`"),iZ(iJ,iQ,i0,"ˆ","\\^"),iZ(iJ,iQ,i0,"˜","\\~"),iZ(iJ,iQ,i0,"ˉ","\\="),iZ(iJ,iQ,i0,"˘","\\u"),iZ(iJ,iQ,i0,"˙","\\."),iZ(iJ,iQ,i0,"¸","\\c"),iZ(iJ,iQ,i0,"˚","\\r"),iZ(iJ,iQ,i0,"ˇ","\\v"),iZ(iJ,iQ,i0,"¨",'\\"'),iZ(iJ,iQ,i0,"˝","\\H"),iZ(iJ,iQ,i0,"◯","\\textcircled");var i9={"--":!0,"---":!0,"``":!0,"''":!0};iZ(iJ,iQ,i8,"–","--",!0),iZ(iJ,iQ,i8,"–","\\textendash"),iZ(iJ,iQ,i8,"—","---",!0),iZ(iJ,iQ,i8,"—","\\textemdash"),iZ(iJ,iQ,i8,"‘","`",!0),iZ(iJ,iQ,i8,"‘","\\textquoteleft"),iZ(iJ,iQ,i8,"’","'",!0),iZ(iJ,iQ,i8,"’","\\textquoteright"),iZ(iJ,iQ,i8,"“","``",!0),iZ(iJ,iQ,i8,"“","\\textquotedblleft"),iZ(iJ,iQ,i8,"”","''",!0),iZ(iJ,iQ,i8,"”","\\textquotedblright"),iZ(iK,iQ,i8,"°","\\degree",!0),iZ(iJ,iQ,i8,"°","\\degree"),iZ(iJ,iQ,i8,"°","\\textdegree",!0),iZ(iK,iQ,i8,"£","\\pounds"),iZ(iK,iQ,i8,"£","\\mathsterling",!0),iZ(iJ,iQ,i8,"£","\\pounds"),iZ(iJ,iQ,i8,"£","\\textsterling",!0),iZ(iK,"ams",i8,"✠","\\maltese"),iZ(iJ,"ams",i8,"✠","\\maltese");for(var se='0123456789/@."',st=0;sttypeof console&&console.warn("No character metrics "+("for '"+e+"' in style '"+t+"' and mode '")+r+"'"),i=new iF(e,0,0,0,0,0,a);if(n){i.maxFontSize=n.sizeMultiplier,n.style.isTight()&&i.classes.push("mtight");var c=n.getColor();c&&(i.style.color=c)}return i},sk=(e,t)=>{if(iL(e.classes)!==iL(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},sA=function(e){for(var t=0,r=0,n=0,a=0;at&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>n&&(n=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},sS=function(e,t,r,n){var a=new iO(e,t,r,n);return sA(a),a},sC=(e,t,r,n)=>new iO(e,t,r,n),s_=function(e){var t=new ib(e);return sA(t),t},sM=function(e){if("individualShift"===e.positionType){for(var t,r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s0)return sw(a,l,n,t,i.concat(c));if(o){if("boldsymbol"===o){var h,u,p="textord"!==r&&sx(a,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"};h=p.fontName,u=[p.fontClass]}else s?(h=sN[o].fontName,u=[o]):(h=sT(o,t.fontWeight,t.fontShape),u=[o,t.fontWeight,t.fontShape]);if(sx(a,h,n).metrics)return sw(a,h,n,t,i.concat(u));if(i9.hasOwnProperty(a)&&"Typewriter"===h.slice(0,10)){for(var m=[],d=0;d{var r=sS(["mspace"],[],t),n=iz(e,t);return r.style.marginRight=iI(n),r},sO=function(e,t){var[r,n,a]=sE[e],i=sC(["overlay"],[new iG([new iH(r)],{width:iI(n),height:iI(a),style:"width:"+iI(n),viewBox:"0 0 "+1e3*n+" "+1e3*a,preserveAspectRatio:"xMinYMin"})],t);return i.height=a,i.style.height=iI(a),i.style.width=iI(n),i},sj=e=>{for(var t=0;t{var r=t.classes[0],n=e.classes[0];"mbin"===r&&sQ.includes(n)?t.classes[0]="mord":"mbin"===n&&sJ.includes(r)&&(e.classes[0]="mord")},{node:h},u,p),s5(a,(e,t)=>{var r=s7(t),n=s7(e),a=r&&n?e.hasClass("mtight")?sH[r][n]:sG[r][n]:null;if(a)return sP(a,l)},{node:h},u,p),a},s5=function e(t,r,n,a,i){a&&t.push(a);for(var s=0;s{t.splice(a+1,0,e),s++}}a&&t.pop()},s3=function(e){return e instanceof ib||e instanceof ij||e instanceof iO&&e.hasClass("enclosing")?e:null},s6=function e(t,r){var n=s3(t);if(n){var a=n.children;if(a.length){if("right"===r)return e(a[a.length-1],"right");else if("left"===r)return e(a[0],"left")}}return t},s7=function(e,t){return e?(t&&(e=s6(e,t)),s1[e.classes[0]]||null):null},s2=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return sS(t.concat(r))},s8=function(e,t,r){if(!e)return sS();if(sW[e.type]){var n=sW[e.type](e,t);if(r&&t.size!==r.size){n=sS(t.sizingClasses(r),[n],t);var a=t.sizeMultiplier/r.sizeMultiplier;n.height*=a,n.depth*=a}return n}throw new aK("Got group of unknown type: '"+e.type+"'")};function s9(e,t){var r=sS(["base"],e,t),n=sS(["strut"]);return n.style.height=iI(r.height+r.depth),r.depth&&(n.style.verticalAlign=iI(-r.depth)),r.children.unshift(n),r}function oe(e,t){var r,n,a=null;1===e.length&&"tag"===e[0].type&&(a=e[0].tag,e=e[0].body);var i=s4(e,t,"root");2===i.length&&i[1].hasClass("tag")&&(r=i.pop());for(var s=[],o=[],l=0;l0&&(s.push(s9(o,t)),o=[]),s.push(i[l]));o.length>0&&s.push(s9(o,t)),a?((n=s9(s4(a,t,!0))).classes=["tag"],s.push(n)):r&&s.push(r);var h=sS(["katex-html"],s);if(h.setAttribute("aria-hidden","true"),n){var u=n.children[0];u.style.height=iI(h.height+h.depth),h.depth&&(u.style.verticalAlign=iI(-h.depth))}return h}function ot(e){return new ib(e)}class or{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=iL(this.classes));for(var r=0;r0&&(e+=' class ="'+a3(iL(this.classes))+'"'),e+=">";for(var r=0;r")}toText(){return this.children.map(e=>e.toText()).join("")}}class on{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return a3(this.toText())}toText(){return this.text}}var oa=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",iI(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},oi=function(e,t,r){return iY[t][e]&&iY[t][e].replace&&55349!==e.charCodeAt(0)&&!(i9.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6)))&&(e=iY[t][e].replace),new on(e)},os=function(e){return 1===e.length?e[0]:new or("mrow",e)},oo=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"sans-serif-bold-italic";else if("textit"===t.fontShape)return"sans-serif-italic";else if("textbf"===t.fontWeight)return"bold-sans-serif";else return"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathsfit"===r)return"sans-serif-italic";else if("mathfrak"===r)return"fraktur";else if("mathscr"===r||"mathcal"===r)return"script";else if("mathsf"===r)return"sans-serif";else if("mathtt"===r)return"monospace";var a=e.text;return["\\imath","\\jmath"].includes(a)?null:(iY[n][a]&&iY[n][a].replace&&(a=iY[n][a].replace),ik(a,sN[r].fontName,n))?sN[r].variant:null};function ol(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof on&&"."===t.text}if("mo"!==e.type||1!==e.children.length||"true"!==e.getAttribute("separator")||"0em"!==e.getAttribute("lspace")||"0em"!==e.getAttribute("rspace"))return!1;var r=e.children[0];return r instanceof on&&","===r.text}var oc=function(e,t,r){if(1===e.length){var n,a=ou(e[0],t);return r&&a instanceof or&&"mo"===a.type&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s=0;s=1&&("mn"===n.type||ol(n))){var l=o.children[0];l instanceof or&&"mn"===l.type&&(l.children=[...n.children,...l.children],i.pop())}else if("mi"===n.type&&1===n.children.length){var c=n.children[0];if(c instanceof on&&"̸"===c.text&&("mo"===o.type||"mi"===o.type||"mn"===o.type)){var h=o.children[0];h instanceof on&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),i.pop())}}}i.push(o),n=o}return i},oh=function(e,t,r){return os(oc(e,t,r))},ou=function(e,t){if(!e)return new or("mrow");if(sV[e.type])return sV[e.type](e,t);throw new aK("Got group of unknown type: '"+e.type+"'")};function op(e,t,r,n,a){var i,s=oc(e,r);i=1===s.length&&s[0]instanceof or&&["mrow","mtable"].includes(s[0].type)?s[0]:new or("mrow",s);var o=new or("annotation",[new on(t)]);o.setAttribute("encoding","application/x-tex");var l=new or("semantics",[i,o]),c=new or("math",[l]);return c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&c.setAttribute("display","block"),sS([a?"katex":"katex-mathml"],[c])}var om=function(e){return new iM({style:e.displayMode?ic.DISPLAY:ic.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},od=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=sS(r,[e])}return e},og=function(e,t,r){var n,a=om(r);return"mathml"===r.output?op(e,t,a,r.displayMode,!0):od(n="html"===r.output?sS(["katex"],[oe(e,a)]):sS(["katex"],[op(e,t,a,r.displayMode,!1),oe(e,a)]),r)},of={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":"="},oy={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]},ob=function(e,t,r,n,a){var i,s=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(i=sS(["stretchy",t],[],a),"fbox"===t){var o=a.color&&a.getColor();o&&(i.style.borderColor=o)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new iU({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new iU({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),i=sC([],[new iG(l,{width:"100%",height:iI(s)})],a)}return i.height=s,i.style.height=iI(s),i},ov=function(e){var t=new or("mo",[new on(of[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},ox=function(e,t){var{span:r,minWidth:n,height:a}=function(){var r=4e5,n=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(n)){var a,i,s,o,l="ordgroup"===(o=e.base).type?o.body.length:1;if(l>5)"widehat"===n||"widecheck"===n?(a=420,r=2364,s=.42,i=n+"4"):(a=312,r=2340,s=.34,i="tilde4");else{var c=[1,1,2,2,3,3][l];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],i=n+c):(r=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],i="tilde"+c)}return{span:sC([],[new iG([new iH(i)],{width:"100%",height:iI(s),viewBox:"0 0 "+r+" "+a,preserveAspectRatio:"none"})],t),minWidth:0,height:s}}var h,u,p=[],m=oy[n],[d,g,f]=m,y=f/1e3,b=d.length;if(1===b)h=["hide-tail"],u=[m[3]];else if(2===b)h=["halfarrow-left","halfarrow-right"],u=["xMinYMin","xMaxYMin"];else if(3===b)h=["brace-left","brace-center","brace-right"],u=["xMinYMin","xMidYMin","xMaxYMin"];else throw Error("Correct katexImagesData or update code here to support\n "+b+" children.");for(var v=0;v0&&(r.style.minWidth=iI(n)),r};function ow(e,t){if(!e||e.type!==t)throw Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function ok(e){var t=oA(e);if(!t)throw Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function oA(e){return e&&("atom"===e.type||iX.hasOwnProperty(e.type))?e:null}var oS=(e,t)=>{e&&"supsub"===e.type?(o=(l=ow(e.base,"accent")).base,e.base=o,c=function(e){if(e instanceof iO)return e;throw Error("Expected span but got "+String(e)+".")}(s8(e,t)),e.base=l):o=(l=ow(e,"accent")).base;var r=s8(o,t.havingCrampedStyle()),n=l.isShifty&&a7(o),a=0;n&&(a=iW(s8(a1(o),t.havingCrampedStyle())).skew);var i="\\c"===l.label,s=i?r.height+r.depth:Math.min(r.height,t.fontMetrics().xHeight);if(l.isStretchy)p=sB({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"elem",elem:p=ox(l,t),wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+iI(2*a)+")",marginLeft:iI(2*a)}:void 0}]},t);else{"\\vec"===l.label?(h=sO("vec",t),u=sE.vec[1]):((h=iW(h=s$({mode:l.mode,text:l.label},t,"textord"))).italic=0,u=h.width,i&&(s+=h.depth));var o,l,c,h,u,p=sS(["accent-body"],[h]),m="\\textcircled"===l.label;m&&(p.classes.push("accent-full"),s=r.height);var d=a;m||(d-=u/2),p.style.left=iI(d),"\\textcircled"===l.label&&(p.style.top=".2em"),p=sB({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:-s},{type:"elem",elem:p}]},t)}var g=sS(["mord","accent"],[p],t);return c?(c.children[0]=g,c.height=Math.max(g.height,c.height),c.classes[0]="mord",c):g},oC=(e,t)=>{var r=e.isStretchy?ov(e.label):new or("mo",[oi(e.label,e.mode)]),n=new or("mover",[ou(e.base,t),r]);return n.setAttribute("accent","true"),n},o_=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));sX({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=sZ(t[0]),n=!o_.test(e.funcName),a=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:oS,mathmlBuilder:oC}),sX({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"math"===n&&(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:oS,mathmlBuilder:oC}),sX({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(e,t)=>{var r=s8(e.base,t),n=ox(e,t),a=.12*("\\utilde"===e.label);return sS(["mord","accentunder"],[sB({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]},t)],t)},mathmlBuilder:(e,t)=>{var r=ov(e.label),n=new or("munder",[ou(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var oM=e=>{var t=new or("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};function oT(e,t){var r=s4(e.body,t,!0);return sS([e.mclass],r,t)}function oN(e,t){var r,n=oc(e.body,t);return"minner"===e.mclass?r=new or("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(r=n[0]).type="mi":r=new or("mi",n):(e.isCharacterBox?(r=n[0]).type="mo":r=new or("mo",n),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}sX({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:a}=e;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,n,a=t.style,i=t.havingStyle(a.sup()),s=sR(s8(e.body,i,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";s.classes.push(o+"-arrow-pad"),e.below&&(i=t.havingStyle(a.sub()),(r=sR(s8(e.below,i,t),t)).classes.push(o+"-arrow-pad"));var l=ox(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,h=-t.fontMetrics().axisHeight-.5*l.height-.111;if((s.depth>.25||"\\xleftequilibrium"===e.label)&&(h-=s.depth),r){var u=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;n=sB({positionType:"individualShift",children:[{type:"elem",elem:s,shift:h},{type:"elem",elem:l,shift:c},{type:"elem",elem:r,shift:u}]},t)}else n=sB({positionType:"individualShift",children:[{type:"elem",elem:s,shift:h},{type:"elem",elem:l,shift:c}]},t);return n.children[0].children[0].children[1].classes.push("svg-align"),sS(["mrel","x-arrow"],[n],t)},mathmlBuilder(e,t){var r,n=ov(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var a=oM(ou(e.body,t));r=e.below?new or("munderover",[n,oM(ou(e.below,t)),a]):new or("mover",[n,a])}else r=e.below?new or("munder",[n,oM(ou(e.below,t))]):new or("mover",[n,r=oM()]);return r}}),sX({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:sK(a),isCharacterBox:a7(a)}},htmlBuilder:oT,mathmlBuilder:oN});var oE=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"===t.type&&("bin"===t.family||"rel"===t.family)?"m"+t.family:"mord"};sX({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:oE(t[0]),body:sK(t[1]),isCharacterBox:a7(t[1])}}}),sX({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:n,funcName:a}=e,i=t[1],s=t[0];r="\\stackrel"!==a?oE(i):"mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==a,body:sK(i)},l={type:"supsub",mode:s.mode,base:o,sup:"\\underset"===a?null:s,sub:"\\underset"===a?s:null};return{type:"mclass",mode:n.mode,mclass:r,body:[l],isCharacterBox:a7(l)}},htmlBuilder:oT,mathmlBuilder:oN}),sX({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:oE(t[0]),body:sK(t[0])}},htmlBuilder(e,t){var r=s4(e.body,t,!0),n=sS([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=new or("mstyle",oc(e.body,t));return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var oz={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},oI=()=>({type:"styling",body:[],mode:"math",style:"display"}),oL=e=>"textord"===e.type&&"@"===e.text,oR=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;sX({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=sR(s8(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=iI(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new or("mrow",[ou(e.label,t)]);return(r=new or("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new or("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),sX({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=sR(s8(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new or("mrow",[ou(e.fragment,t)])}),sX({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var r,{parser:n}=e,a=ow(t[0],"ordgroup").body,i="",s=0;s=1114111)throw new aK("\\@char with invalid code point "+i);return o<=65535?r=String.fromCharCode(o):(o-=65536,r=String.fromCharCode((o>>10)+55296,(1023&o)+56320)),{type:"textord",mode:n.mode,text:r}}});var oB=(e,t)=>s_(s4(e.body,t.withColor(e.color),!1)),o$=(e,t)=>{var r=new or("mstyle",oc(e.body,t.withColor(e.color)));return r.setAttribute("mathcolor",e.color),r};sX({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=ow(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:sK(a)}},htmlBuilder:oB,mathmlBuilder:o$}),sX({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,a=ow(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:oB,mathmlBuilder:o$}),sX({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,a="["===n.gullet.future().text?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&ow(a,"size").value}},htmlBuilder(e,t){var r=sS(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=iI(iz(e.size,t)))),r},mathmlBuilder(e,t){var r=new or("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",iI(iz(e.size,t)))),r}});var oP={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},oO=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new aK("Expected a control sequence",e);return t},oj=(e,t,r,n)=>{var a=e.gullet.macros.get(r.text);null==a&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};sX({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(oP[n.text])return("\\global"===r||"\\\\globallong"===r)&&(n.text=oP[n.text]),ow(t.parseFunction(),"internal");throw new aK("Invalid token after macro prefix",n)}}),sX({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var t,{parser:r,funcName:n}=e,a=r.gullet.popToken(),i=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new aK("Expected a control sequence",a);for(var s=0,o=[[]];"{"!==r.gullet.future().text;)if("#"===(a=r.gullet.popToken()).text){if("{"===r.gullet.future().text){t=r.gullet.future(),o[s].push("{");break}if(a=r.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new aK('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new aK('Argument number "'+a.text+'" out of order');s++,o.push([])}else if("EOF"===a.text)throw new aK("Expected a macro definition");else o[s].push(a.text);var{tokens:l}=r.gullet.consumeArg();return t&&l.unshift(t),("\\edef"===n||"\\xdef"===n)&&(l=r.gullet.expandTokens(l)).reverse(),r.gullet.macros.set(i,{tokens:l,numArgs:s,delimiters:o},n===oP[n]),{type:"internal",mode:r.mode}}}),sX({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var t,{parser:r,funcName:n}=e,a=oO(r.gullet.popToken());r.gullet.consumeSpaces();var i=("="===(t=r.gullet.popToken()).text&&" "===(t=r.gullet.popToken()).text&&(t=r.gullet.popToken()),t);return oj(r,a,i,"\\\\globallet"===n),{type:"internal",mode:r.mode}}}),sX({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=oO(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return oj(t,n,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var oD=function(e,t,r){var n=ik(iY.math[e]&&iY.math[e].replace||e,t,r);if(!n)throw Error("Unsupported symbol "+e+" and font size "+t+".");return n},oq=function(e,t,r,n){var a=r.havingBaseStyle(t),i=sS(n.concat(a.sizingClasses(r)),[e],r),s=a.sizeMultiplier/r.sizeMultiplier;return i.height*=s,i.depth*=s,i.maxFontSize=a.sizeMultiplier,i},oF=function(e,t,r){var n=t.havingBaseStyle(r),a=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=iI(a),e.height-=a,e.depth+=a},oG=function(e,t,r,n,a,i){var s=oq(sw(e,"Main-Regular",a,n),t,n,i);return r&&oF(s,n,t),s},oH=function(e,t,r,n,a,i){var s=sw(e,"Size"+t+"-Regular",a,n),o=oq(sS(["delimsizing","size"+t],[s],n),ic.TEXT,n,i);return r&&oF(o,n,ic.TEXT),o},oU=function(e,t,r){return{type:"elem",elem:sS(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[sS([],[sw(e,t,r)])])}},oW=function(e,t,r){var n=iv["Size4-Regular"][e.charCodeAt(0)]?iv["Size4-Regular"][e.charCodeAt(0)][4]:iv["Size1-Regular"][e.charCodeAt(0)][4],a=sC([],[new iG([new iH("inner",id(e,Math.round(1e3*t)))],{width:iI(n),height:iI(t),style:"width:"+iI(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"})],r);return a.height=t,a.style.height=iI(t),a.style.width=iI(n),{type:"elem",elem:a}},oV={type:"kern",size:-.008},oX=["|","\\lvert","\\rvert","\\vert"],oY=["\\|","\\lVert","\\rVert","\\Vert"],oZ=function(e,t,r,n,a,i){var s,o,l,c,h="",u=0;s=l=c=e,o=null;var p="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?s=l="⏐":"\\Downarrow"===e?s=l="‖":"\\updownarrow"===e?(s="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(s="\\Uparrow",l="‖",c="\\Downarrow"):oX.includes(e)?(l="∣",h="vert",u=333):oY.includes(e)?(l="∥",h="doublevert",u=556):"["===e||"\\lbrack"===e?(s="⎡",l="⎢",c="⎣",p="Size4-Regular",h="lbrack",u=667):"]"===e||"\\rbrack"===e?(s="⎤",l="⎥",c="⎦",p="Size4-Regular",h="rbrack",u=667):"\\lfloor"===e||"⌊"===e?(l=s="⎢",c="⎣",p="Size4-Regular",h="lfloor",u=667):"\\lceil"===e||"⌈"===e?(s="⎡",l=c="⎢",p="Size4-Regular",h="lceil",u=667):"\\rfloor"===e||"⌋"===e?(l=s="⎥",c="⎦",p="Size4-Regular",h="rfloor",u=667):"\\rceil"===e||"⌉"===e?(s="⎤",l=c="⎥",p="Size4-Regular",h="rceil",u=667):"("===e||"\\lparen"===e?(s="⎛",l="⎜",c="⎝",p="Size4-Regular",h="lparen",u=875):")"===e||"\\rparen"===e?(s="⎞",l="⎟",c="⎠",p="Size4-Regular",h="rparen",u=875):"\\{"===e||"\\lbrace"===e?(s="⎧",o="⎨",c="⎩",l="⎪",p="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(s="⎫",o="⎬",c="⎭",l="⎪",p="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(s="⎧",c="⎩",l="⎪",p="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(s="⎫",c="⎭",l="⎪",p="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(s="⎧",c="⎭",l="⎪",p="Size4-Regular"):("\\rmoustache"===e||"⎱"===e)&&(s="⎫",c="⎩",l="⎪",p="Size4-Regular");var m=oD(s,p,a),d=m.height+m.depth,g=oD(l,p,a),f=g.height+g.depth,y=oD(c,p,a),b=y.height+y.depth,v=0,x=1;if(null!==o){var w=oD(o,p,a);v=w.height+w.depth,x=2}var k=d+b+v,A=Math.max(0,Math.ceil((t-k)/(x*f))),S=k+A*x*f,C=n.fontMetrics().axisHeight;r&&(C*=n.sizeMultiplier);var _=S/2-C,M=[];if(h.length>0){var T=Math.round(1e3*S),N=iy(h,Math.round(1e3*(S-d-b))),E=new iH(h,N),z=(u/1e3).toFixed(3)+"em",I=(T/1e3).toFixed(3)+"em",L=sC([],[new iG([E],{width:z,height:I,viewBox:"0 0 "+u+" "+T})],n);L.height=T/1e3,L.style.width=z,L.style.height=I,M.push({type:"elem",elem:L})}else{if(M.push(oU(c,p,a)),M.push(oV),null===o)M.push(oW(l,S-d-b+.016,n));else{var R=(S-d-b-v)/2+.016;M.push(oW(l,R,n)),M.push(oV),M.push(oU(o,p,a)),M.push(oV),M.push(oW(l,R,n))}M.push(oV),M.push(oU(s,p,a))}var B=n.havingBaseStyle(ic.TEXT);return oq(sS(["delimsizing","mult"],[sB({positionType:"bottom",positionData:_,children:M},B)],B),ic.TEXT,n,i)},oK=function(e,t,r,n,a){var i=im(e,n,r);return sC(["hide-tail"],[new iG([new iH(e,i)],{width:"400em",height:iI(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"})],a)},oJ=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],oQ=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],o0=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],o1=[0,1.2,1.8,2.4,3],o4=[{type:"small",style:ic.SCRIPTSCRIPT},{type:"small",style:ic.SCRIPT},{type:"small",style:ic.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],o5=[{type:"small",style:ic.SCRIPTSCRIPT},{type:"small",style:ic.SCRIPT},{type:"small",style:ic.TEXT},{type:"stack"}],o3=[{type:"small",style:ic.SCRIPTSCRIPT},{type:"small",style:ic.SCRIPT},{type:"small",style:ic.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],o6=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw Error("Add support for delim type '"+e.type+"' here.")},o7=function(e,t,r,n){for(var a=Math.min(2,3-n.style.size),i=a;it)return r[i]}return r[r.length-1]},o2=function(e,t,r,n,a,i){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle");var s=o0.includes(e)?o4:oJ.includes(e)?o3:o5,o=o7(e,t,s,n);return"small"===o.type?oG(e,o.style,r,n,a,i):"large"===o.type?oH(e,o.size,r,n,a,i):oZ(e,t,r,n,a,i)},o8=function(e,t){var r,n,a=t.havingBaseSizing(),i=o7("\\surd",e*a.sizeMultiplier,o3,a),s=a.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,h=0;return"small"===i.type?(h=1e3+1e3*o+80,e<1?s=1:e<1.4&&(s=.7),l=(1+o+.08)/s,c=(1+o)/s,(r=oK("sqrtMain",l,h,o,t)).style.minWidth="0.853em",n=.833/s):"large"===i.type?(h=1080*o1[i.size],c=(o1[i.size]+o)/s,l=(o1[i.size]+o+.08)/s,(r=oK("sqrtSize"+i.size,l,h,o,t)).style.minWidth="1.02em",n=1/s):(l=e+o+.08,c=e+o,(r=oK("sqrtTall",l,h=Math.floor(1e3*e+o)+80,o,t)).style.minWidth="0.742em",n=1.056),r.height=c,r.style.height=iI(l),{span:r,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},o9=function(e,t,r,n,a){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle"),oJ.includes(e)||o0.includes(e))return oH(e,t,!1,r,n,a);if(oQ.includes(e))return oZ(e,o1[t],!1,r,n,a);throw new aK("Illegal delimiter: '"+e+"'")},le=function(e,t,r,n,a,i){var s=n.fontMetrics().axisHeight*n.sizeMultiplier,o=5/n.fontMetrics().ptPerEm,l=Math.max(t-s,r+s);return o2(e,Math.max(l/500*901,2*l-o),!0,n,a,i)},lt={"\\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}},lr=["(","\\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 ln(e,t){var r=oA(e);if(r&&lr.includes(r.text))return r;if(r)throw new aK("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e);throw new aK("Invalid delimiter type '"+e.type+"'",e)}function la(e){if(!e.body)throw Error("Bug: The leftright ParseNode wasn't fully parsed.")}sX({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=ln(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:lt[e.funcName].size,mclass:lt[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?sS([e.mclass]):o9(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(oi(e.delim,e.mode));var r=new or("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=iI(o1[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),sX({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new aK("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:ln(t[0],e).text,color:r}}}),sX({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=ln(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=ow(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{la(e);for(var r,n,a=s4(e.body,t,!0,["mopen","mclose"]),i=0,s=0,o=!1,l=0;l{la(e);var r=oc(e.body,t);if("."!==e.left){var n=new or("mo",[oi(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if("."!==e.right){var a=new or("mo",[oi(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return os(r)}}),sX({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=ln(t[0],e);if(!e.parser.leftrightDepth)throw new aK("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=s2(t,[]);else{r=o9(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=new or("mo",["\\vert"===e.delim||"|"===e.delim?oi("|","text"):oi(e.delim,e.mode)]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var li=(e,t)=>{var r,n,a=sR(s8(e.body,t),t),i=e.label.slice(1),s=t.sizeMultiplier,o=0,l=a7(e.body);if("sout"===i)(r=sS(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,o=-.5*t.fontMetrics().xHeight;else if("phase"===i){var c=iz({number:.6,unit:"pt"},t),h=iz({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var u=a.height+a.depth+c+h;a.style.paddingLeft=iI(u/2+c);var p=Math.floor(1e3*u*s);(r=sC(["hide-tail"],[new iG([new iH("phase","M400000 "+p+" H0 L"+p/2+" 0 l65 45 L145 "+(p-80)+" H400000z")],{width:"400em",height:iI(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"})],t)).style.height=iI(u),o=a.depth+c+h}else{/cancel/.test(i)?l||a.classes.push("cancel-pad"):"angl"===i?a.classes.push("anglpad"):a.classes.push("boxpad");var m=0,d=0,g=0;/box/.test(i)?(g=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),d=m=t.fontMetrics().fboxsep+("colorbox"===i?0:g)):"angl"===i?(m=4*(g=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),d=Math.max(0,.25-a.depth)):d=m=.2*!!l,r=ob(a,i,m,d,t),/fbox|boxed|fcolorbox/.test(i)?(r.style.borderStyle="solid",r.style.borderWidth=iI(g)):"angl"===i&&.049!==g&&(r.style.borderTopWidth=iI(g),r.style.borderRightWidth=iI(g)),o=a.depth+d,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}return n=e.backgroundColor?sB({positionType:"individualShift",children:[{type:"elem",elem:r,shift:o},{type:"elem",elem:a,shift:0}]},t):sB({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:r,shift:o,wrapperClasses:/cancel|phase/.test(i)?["svg-align"]:[]}]},t),(/cancel/.test(i)&&(n.height=a.height,n.depth=a.depth),/cancel/.test(i)&&!l)?sS(["mord","cancel-lap"],[n],t):sS(["mord"],[n],t)},ls=(e,t)=>{var r=0,n=new or(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ou(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"),"\\fcolorbox"===e.label){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};sX({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=ow(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:li,mathmlBuilder:ls}),sX({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=ow(t[0],"color-token").color,s=ow(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:li,mathmlBuilder:ls}),sX({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]}}}),sX({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:li,mathmlBuilder:ls}),sX({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 lo={};function ll(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=e,o={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l{if(!e.parser.settings.displayMode)throw new aK("{"+e.envName+"} can be used only in display mode.")};function lp(e){if(-1===e.indexOf("ed"))return -1===e.indexOf("*")}function lm(e,t,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:c,emptySingleRow:h,maxNumCols:u,leqno:p}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var m=e.gullet.expandMacroAsText("\\arraystretch");if(null==m)s=1;else if(!(s=parseFloat(m))||s<0)throw new aK("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var d=[],g=[d],f=[],y=[],b=null!=l?[]:void 0;function v(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function x(){b&&(e.gullet.macros.get("\\df@tag")?(b.push(e.subparse([new aZ("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(v(),y.push(lh(e));;){var w=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),w={type:"ordgroup",mode:e.mode,body:w},r&&(w={type:"styling",mode:e.mode,style:r,body:[w]}),d.push(w);var k=e.fetch().text;if("&"===k){if(u&&d.length===u)if(c||o)throw new aK("Too many tab characters: &",e.nextToken);else e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.");e.consume()}else if("\\end"===k){x(),1===d.length&&"styling"===w.type&&0===w.body[0].body.length&&(g.length>1||!h)&&g.pop(),y.length0&&(v+=.25),h.push({pos:v,isDashed:e[t]})}for(x(o[0]),r=0;r0&&(A<(M+=b)&&(A=M),M=0),e.addJot&&(A+=g),S.height=k,S.depth=A,S.pos=v+=k,v+=A+M,c[r]=S,x(o[r+1])}var T=v/2+t.fontMetrics().axisHeight,N=e.cols||[],E=[],z=[];if(e.tags&&e.tags.some(e=>e))for(r=0;r=l)){var q=void 0;(n>0||e.hskipBeforeAndAfter)&&0!==(q=a5($.pregap,m))&&((a=sS(["arraycolsep"],[])).style.width=iI(q),E.push(a));var F=[];for(r=0;r0){for(var W=sI("hline",t,u),V=sI("hdashline",t,u),X=[{type:"elem",elem:c,shift:0}];h.length>0;){var Y=h.pop(),Z=Y.pos-T;Y.isDashed?X.push({type:"elem",elem:V,shift:Z}):X.push({type:"elem",elem:W,shift:Z})}c=sB({positionType:"individualShift",children:X},t)}if(0===z.length)return sS(["mord"],[c],t);var K=sB({positionType:"individualShift",children:z},t);return s_([c,K=sS(["tag"],[K],t)])},lf={c:"center ",l:"left ",r:"right "},ly=function(e,t){for(var r=[],n=new or("mtd",[],["mtr-glue"]),a=new or("mtd",[],["mml-eqn-num"]),i=0;i0){var m=e.cols,d="",g=!1,f=0,y=m.length;"separator"===m[0].type&&(u+="top ",f=1),"separator"===m[m.length-1].type&&(u+="bottom ",y-=1);for(var b=f;b0?"left ":"")+(A[A.length-1].length>0?"right ":"");for(var S=1;S-1?"alignat":"align",i="split"===e.envName,s=lm(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:lp(e.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),o=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",h=0;h0&&u&&(d=1),n[p]={type:"align",align:m,pregap:d,postgap:0}}return s.colSeparationType=u?"align":"alignat",s};ll({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(oA(t[0])?[t[0]]:ow(t[0],"ordgroup").body).map(function(e){var t=ok(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new aK("Unknown column alignment: "+t,e)}),n={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return lm(e.parser,n,ld(e.envName))},htmlBuilder:lg,mathmlBuilder:ly}),ll({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 a=e.parser;if(a.consumeSpaces(),"["===a.fetch().text){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,-1==="lcr".indexOf(r))throw new aK("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=lm(e.parser,n,ld(e.envName)),s=Math.max(0,...i.body.map(e=>e.length));return i.cols=Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:lg,mathmlBuilder:ly}),ll({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=lm(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:lg,mathmlBuilder:ly}),ll({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(oA(t[0])?[t[0]]:ow(t[0],"ordgroup").body).map(function(e){var t=ok(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new aK("Unknown column alignment: "+t,e)});if(r.length>1)throw new aK("{subarray} can contain only one column");var n={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((n=lm(e.parser,n,"script")).body.length>0&&n.body[0].length>1)throw new aK("{subarray} can contain only one column");return n},htmlBuilder:lg,mathmlBuilder:ly}),ll({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=lm(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},ld(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:lg,mathmlBuilder:ly}),ll({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:lb,htmlBuilder:lg,mathmlBuilder:ly}),ll({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&lu(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:lp(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return lm(e.parser,t,"display")},htmlBuilder:lg,mathmlBuilder:ly}),ll({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:lb,htmlBuilder:lg,mathmlBuilder:ly}),ll({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){lu(e);var t={autoTag:lp(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return lm(e.parser,t,"display")},htmlBuilder:lg,mathmlBuilder:ly}),ll({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(lu(e),function(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("\\end"===r){0===t[t.length-1].length&&t.pop();break}else throw new aK("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],a=[n],i=0;i-1);else if("<>AV".indexOf(c)>-1)for(var u=0;u<2;u++){for(var p=!0,m=l+1;mAV=|." after @',s[l]);var d={type:"styling",body:[function(e,t,r){var n=oz[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var a=r.callFunction("\\\\cdleft",[t[0]],[]),i=r.callFunction("\\Big",[{type:"atom",text:n,mode:"math",family:"rel"}],[]),s=r.callFunction("\\\\cdright",[t[1]],[]);return r.callFunction("\\\\cdparent",[{type:"ordgroup",mode:"math",body:[a,i,s]}],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}(c,h,e)],mode:"math",style:"display"};n.push(d),o=oI()}else o.body.push(s[l]);i%2==0?n.push(o):n.shift(),n=[],a.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var g=Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:g,colSeparationType:"CD",hLinesBeforeRow:Array(a.length+1).fill([])}}(e.parser)),htmlBuilder:lg,mathmlBuilder:ly}),lc["\\nonumber"]="\\gdef\\@eqnsw{0}",lc["\\notag"]="\\nonumber",sX({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new aK(e.funcName+" valid only within array environment")}}),sX({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];if("ordgroup"!==a.type)throw new aK("Invalid environment name",a);for(var i="",s=0;s{var r=e.font,n=t.withFont(r);return s8(e.body,n)},lx=(e,t)=>{var r=e.font,n=t.withFont(r);return ou(e.body,n)},lw={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};sX({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,a=sZ(t[0]),i=n;return i in lw&&(i=lw[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:lv,mathmlBuilder:lx}),sX({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],a=a7(n);return{type:"mclass",mode:r.mode,mclass:oE(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:a}}}),sX({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:a}=e,{mode:i}=r,s=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:lv,mathmlBuilder:lx});var lk=(e,t)=>{var r=t;return"display"===e?r=r.id>=ic.SCRIPT.id?r.text():ic.DISPLAY:"text"===e&&r.size===ic.DISPLAY.size?r=ic.TEXT:"script"===e?r=ic.SCRIPT:"scriptscript"===e&&(r=ic.SCRIPTSCRIPT),r},lA=(e,t)=>{var r,n,a,i,s,o,l,c,h,u,p,m=lk(e.size,t.style),d=m.fracNum(),g=m.fracDen();r=t.havingStyle(d);var f=s8(e.numer,r,t);if(e.continued){var y=8.5/t.fontMetrics().ptPerEm,b=3.5/t.fontMetrics().ptPerEm;f.height=f.height0?3*i:7*i,l=t.fontMetrics().denom1):(a>0?(s=t.fontMetrics().num2,o=i):(s=t.fontMetrics().num3,o=3*i),l=t.fontMetrics().denom2),n){var x=t.fontMetrics().axisHeight;s-f.depth-(x+.5*a){var r=new or("mfrac",[ou(e.numer,t),ou(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var n=iz(e.barSize,t);r.setAttribute("linethickness",iI(n))}}else r.setAttribute("linethickness","0px");var a=lk(e.size,t.style);if(a.size!==t.style.size){r=new or("mstyle",[r]);var i=a.size===ic.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var s=[];if(null!=e.leftDelim){var o=new or("mo",[new on(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(r),null!=e.rightDelim){var l=new or("mo",[new on(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return os(s)}return r};sX({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:n,funcName:a}=e,i=t[0],s=t[1],o=null,l=null,c="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,o="(",l=")";break;case"\\\\bracefrac":r=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,o="[",l="]";break;default:throw Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text"}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:s,hasBarLine:r,leftDelim:o,rightDelim:l,size:c,barSize:null}},htmlBuilder:lA,mathmlBuilder:lS}),sX({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:a,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),sX({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:n,token:a}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:a}}});var lC=["display","text","script","scriptscript"],l_=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};sX({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:n}=e,a=t[4],i=t[5],s=sZ(t[0]),o="atom"===s.type&&"open"===s.family?l_(s.text):null,l=sZ(t[1]),c="atom"===l.type&&"close"===l.family?l_(l.text):null,h=ow(t[2],"size"),u=null;r=!!h.isBlank||(u=h.value).number>0;var p="auto",m=t[3];return"ordgroup"===m.type?m.body.length>0&&(p=lC[Number(ow(m.body[0],"textord").text)]):p=lC[Number((m=ow(m,"textord")).text)],{type:"genfrac",mode:n.mode,numer:a,denom:i,continued:!1,hasBarLine:r,barSize:u,leftDelim:o,rightDelim:c,size:p}},htmlBuilder:lA,mathmlBuilder:lS}),sX({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:a}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:ow(t[0],"size").value,token:a}}}),sX({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=a4(ow(t[1],"infix").size),s=t[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:lA,mathmlBuilder:lS});var lM=(e,t)=>{var r,n,a,i=t.style;"supsub"===e.type?(r=e.sup?s8(e.sup,t.havingStyle(i.sup()),t):s8(e.sub,t.havingStyle(i.sub()),t),n=ow(e.base,"horizBrace")):n=ow(e,"horizBrace");var s=s8(n.base,t.havingBaseStyle(ic.DISPLAY)),o=ox(n,t);if(n.isOver?(a=sB({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(a=sB({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=sS(["mord",n.isOver?"mover":"munder"],[a],t);a=n.isOver?sB({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):sB({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return sS(["mord",n.isOver?"mover":"munder"],[a],t)};sX({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:lM,mathmlBuilder:(e,t)=>{var r=ov(e.label);return new or(e.isOver?"mover":"munder",[ou(e.base,t),r])}}),sX({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],a=ow(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:sK(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=s4(e.body,t,!1);return sL(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=oh(e.body,t);return r instanceof or||(r=new or("mrow",[r])),r.setAttribute("href",e.href),r}}),sX({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=ow(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;is_(s4(e.body,t,!1)),mathmlBuilder:(e,t)=>new or("mrow",oc(e.body,t))}),sX({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:n,funcName:a,token:i}=e,s=ow(t[0],"raw").string,o=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(a){case"\\htmlClass":l.class=s,r={command:"\\htmlClass",class:s};break;case"\\htmlId":l.id=s,r={command:"\\htmlId",id:s};break;case"\\htmlStyle":l.style=s,r={command:"\\htmlStyle",style:s};break;case"\\htmlData":for(var c=s.split(","),h=0;h{var r=s4(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var a=sS(n,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>oh(e.body,t)}),sX({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:sK(t[0]),mathml:sK(t[1])}},htmlBuilder:(e,t)=>s_(s4(e.html,t,!1)),mathmlBuilder:(e,t)=>oh(e.mathml,t)});var lT=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new aK("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!iE(r))throw new aK("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};sX({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=ow(r[0],"raw").string.split(","),c=0;c{var r=iz(e.height,t),n=0;e.totalheight.number>0&&(n=iz(e.totalheight,t)-r);var a=0;e.width.number>0&&(a=iz(e.width,t));var i={height:iI(r+n)};a>0&&(i.width=iI(a)),n>0&&(i.verticalAlign=iI(-n));var s=new iD(e.src,e.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(e,t)=>{var r=new or("mglyph",[]);r.setAttribute("alt",e.alt);var n=iz(e.height,t),a=0;if(e.totalheight.number>0&&(a=iz(e.totalheight,t)-n,r.setAttribute("valign",iI(-a))),r.setAttribute("height",iI(n+a)),e.width.number>0){var i=iz(e.width,t);r.setAttribute("width",iI(i))}return r.setAttribute("src",e.src),r}}),sX({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,a=ow(t[0],"size");if(r.settings.strict){var i="m"===n[1],s="mu"===a.value.unit;i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+a.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder:(e,t)=>sP(e.dimension,t),mathmlBuilder:(e,t)=>new oa(iz(e.dimension,t))}),sX({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(e,t)=>{"clap"===e.alignment?(r=sS([],[s8(e.body,t)]),r=sS(["inner"],[r],t)):r=sS(["inner"],[s8(e.body,t)]);var r,n=sS(["fix"],[]),a=sS([e.alignment],[r,n],t),i=sS(["strut"]);return i.style.height=iI(a.height+a.depth),a.depth&&(i.style.verticalAlign=iI(-a.depth)),a.children.unshift(i),a=sS(["thinbox"],[a],t),sS(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var r=new or("mpadded",[ou(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),sX({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,a=n.mode;n.switchMode("math");var i="\\("===r?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:s}}}),sX({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new aK("Mismatched "+e.funcName)}});var lN=(e,t)=>{switch(t.style.size){case ic.DISPLAY.size:return e.display;case ic.TEXT.size:return e.text;case ic.SCRIPT.size:return e.script;case ic.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};sX({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:sK(t[0]),text:sK(t[1]),script:sK(t[2]),scriptscript:sK(t[3])}},htmlBuilder:(e,t)=>s_(s4(lN(e,t),t,!1)),mathmlBuilder:(e,t)=>oh(lN(e,t),t)});var lE=(e,t,r,n,a,i,s)=>{e=sS([],[e]);var o,l,c,h=r&&a7(r);if(t){var u=s8(t,n.havingStyle(a.sup()),n);l={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-u.depth)}}if(r){var p=s8(r,n.havingStyle(a.sub()),n);o={elem:p,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-p.height)}}if(l&&o)c=sB({positionType:"bottom",positionData:n.fontMetrics().bigOpSpacing5+o.elem.height+o.elem.depth+o.kern+e.depth+s,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:iI(-i)},{type:"kern",size:o.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:iI(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n);else if(o)c=sB({positionType:"top",positionData:e.height-s,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:iI(-i)},{type:"kern",size:o.kern},{type:"elem",elem:e}]},n);else{if(!l)return e;c=sB({positionType:"bottom",positionData:e.depth+s,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:iI(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}var m=[c];if(o&&0!==i&&!h){var d=sS(["mspace"],[],n);d.style.marginRight=iI(i),m.unshift(d)}return sS(["mop","op-limits"],m,n)},lz=["\\smallint"],lI=(e,t)=>{var r,n,a,i,s=!1;"supsub"===e.type?(r=e.sup,n=e.sub,a=ow(e.base,"op"),s=!0):a=ow(e,"op");var o=t.style,l=!1;if(o.size===ic.DISPLAY.size&&a.symbol&&!lz.includes(a.name)&&(l=!0),a.symbol){var c=l?"Size2-Regular":"Size1-Regular",h="";if(("\\oiint"===a.name||"\\oiiint"===a.name)&&(h=a.name.slice(1),a.name="oiint"===h?"\\iint":"\\iiint"),i=sw(a.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),h.length>0){var u=i.italic;i=sB({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:sO(h+"Size"+(l?"2":"1"),t),shift:.08*!!l}]},t),a.name="\\"+h,i.classes.unshift("mop"),i.italic=u}}else if(a.body){var p=s4(a.body,t,!0);1===p.length&&p[0]instanceof iF?(i=p[0]).classes[0]="mop":i=sS(["mop"],p,t)}else{for(var m=[],d=1;d{var r;if(e.symbol)r=new or("mo",[oi(e.name,e.mode)]),lz.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new or("mo",oc(e.body,t));else{r=new or("mi",[new on(e.name.slice(1))]);var n=new or("mo",[oi("⁡","text")]);r=e.parentIsSupSub?new or("mrow",[r,n]):ot([r,n])}return r},lR={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};sX({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,a=n;return 1===a.length&&(a=lR[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:lI,mathmlBuilder:lL}),sX({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:sK(n)}},htmlBuilder:lI,mathmlBuilder:lL});var lB={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};sX({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:lI,mathmlBuilder:lL}),sX({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:lI,mathmlBuilder:lL}),sX({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return 1===n.length&&(n=lB[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:lI,mathmlBuilder:lL});var l$=(e,t)=>{var r,n,a,i,s=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,a=ow(e.base,"operatorname"),s=!0):a=ow(e,"operatorname"),a.body.length>0){for(var o=s4(a.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),t.withFont("mathrm"),!0),l=0;l{var{parser:r,funcName:n}=e,a=t[0];return{type:"operatorname",mode:r.mode,body:sK(a),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:l$,mathmlBuilder:(e,t)=>{for(var r=oc(e.body,t.withFont("mathrm")),n=!0,a=0;ae.toText()).join(""))]);var o=new or("mi",r);o.setAttribute("mathvariant","normal");var l=new or("mo",[oi("⁡","text")]);return e.parentIsSupSub?new or("mrow",[o,l]):ot([o,l])}}),lc["\\operatorname"]="\\@ifstar\\operatornamewithlimits\\operatorname@",sY({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?s_(s4(e.body,t,!1)):sS(["mord"],s4(e.body,t,!0),t),mathmlBuilder:(e,t)=>oh(e.body,t,!0)}),sX({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=s8(e.body,t.havingCrampedStyle()),n=sI("overline-line",t),a=t.fontMetrics().defaultRuleThickness;return sS(["mord","overline"],[sB({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]},t)],t)},mathmlBuilder(e,t){var r=new or("mo",[new on("‾")]);r.setAttribute("stretchy","true");var n=new or("mover",[ou(e.body,t),r]);return n.setAttribute("accent","true"),n}}),sX({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:sK(n)}},htmlBuilder:(e,t)=>s_(s4(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new or("mphantom",oc(e.body,t))}),sX({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=sS([],[s8(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n{var r=new or("mphantom",oc(sK(e.body),t)),n=new or("mpadded",[r]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}}),sX({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=sS(["inner"],[s8(e.body,t.withPhantom())]),n=sS(["fix"],[]);return sS(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=new or("mphantom",oc(sK(e.body),t)),n=new or("mpadded",[r]);return n.setAttribute("width","0px"),n}}),sX({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=ow(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(e,t){var r=s8(e.body,t);return sB({positionType:"shift",positionData:-iz(e.dy,t),children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new or("mpadded",[ou(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),sX({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),sX({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,a=r[0],i=ow(t[0],"size"),s=ow(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&ow(a,"size").value,width:i.value,height:s.value}},htmlBuilder(e,t){var r=sS(["mord","rule"],[],t),n=iz(e.width,t),a=iz(e.height,t),i=e.shift?iz(e.shift,t):0;return r.style.borderRightWidth=iI(n),r.style.borderTopWidth=iI(a),r.style.bottom=iI(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=1.125*a*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=iz(e.width,t),n=iz(e.height,t),a=e.shift?iz(e.shift,t):0,i=t.color&&t.getColor()||"black",s=new or("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",iI(r)),s.setAttribute("height",iI(n));var o=new or("mpadded",[s]);return a>=0?o.setAttribute("height",iI(a)):(o.setAttribute("height",iI(a)),o.setAttribute("depth",iI(-a))),o.setAttribute("voffset",iI(a)),o}});var lO=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];sX({type:"sizing",names:lO,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:lO.indexOf(n)+1,body:i}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return lP(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=new or("mstyle",oc(e.body,r));return n.setAttribute("mathsize",iI(r.sizeMultiplier)),n}}),sX({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,a=!1,i=!1,s=r[0]&&ow(r[0],"ordgroup");if(s)for(var o="",l=0;l{var r=sS([],[s8(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n{var r=new or("mpadded",[ou(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),sX({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,a=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(e,t){var r=s8(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=sR(r,t);var n=t.fontMetrics().defaultRuleThickness,a=n;t.style.idr.height+r.depth+i&&(i=(i+c-r.height-r.depth)/2);var h=s.height-r.height-i-o;r.style.paddingLeft=iI(l);var u=sB({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+h)},{type:"elem",elem:s},{type:"kern",size:o}]},t);if(!e.index)return sS(["mord","sqrt"],[u],t);var p=t.havingStyle(ic.SCRIPTSCRIPT),m=s8(e.index,p,t),d=sS(["root"],[sB({positionType:"shift",positionData:-(.6*(u.height-u.depth)),children:[{type:"elem",elem:m}]},t)]);return sS(["mord","sqrt"],[d,u],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new or("mroot",[ou(r,t),ou(n,t)]):new or("msqrt",[ou(r,t)])}});var lj={display:ic.DISPLAY,text:ic.TEXT,script:ic.SCRIPT,scriptscript:ic.SCRIPTSCRIPT};sX({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(e,t){var r=lj[e.style],n=t.havingStyle(r).withFont("");return lP(e.body,n,t)},mathmlBuilder(e,t){var r=lj[e.style],n=t.havingStyle(r),a=new or("mstyle",oc(e.body,n)),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return a.setAttribute("scriptlevel",i[0]),a.setAttribute("displaystyle",i[1]),a}});var lD=function(e,t){var r=e.base;if(!r)return null;if("op"===r.type)return r.limits&&(t.style.size===ic.DISPLAY.size||r.alwaysHandleSupSub)?lI:null;if("operatorname"===r.type)return r.alwaysHandleSupSub&&(t.style.size===ic.DISPLAY.size||r.limits)?l$:null;if("accent"===r.type)return a7(r.base)?oS:null;if("horizBrace"===r.type)return!e.sub===r.isOver?lM:null;else return null};sY({type:"supsub",htmlBuilder(e,t){var r,n,a,i,s=lD(e,t);if(s)return s(e,t);var{base:o,sup:l,sub:c}=e,h=s8(o,t),u=t.fontMetrics(),p=0,m=0,d=o&&a7(o);if(l){var g=t.havingStyle(t.style.sup());r=s8(l,g,t),d||(p=h.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(c){var f=t.havingStyle(t.style.sub());n=s8(c,f,t),d||(m=h.depth+f.fontMetrics().subDrop*f.sizeMultiplier/t.sizeMultiplier)}a=t.style===ic.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var y=t.sizeMultiplier,b=iI(.5/u.ptPerEm/y),v=null;if(n){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(h instanceof iF||x)&&(v=iI(-h.italic))}if(r&&n){p=Math.max(p,a,r.depth+.25*u.xHeight),m=Math.max(m,u.sub2);var w=4*u.defaultRuleThickness;if(p-r.depth-(n.height-m)0&&(p+=k,m-=k)}i=sB({positionType:"individualShift",children:[{type:"elem",elem:n,shift:m,marginRight:b,marginLeft:v},{type:"elem",elem:r,shift:-p,marginRight:b}]},t)}else if(n)i=sB({positionType:"shift",positionData:m=Math.max(m,u.sub1,n.height-.8*u.xHeight),children:[{type:"elem",elem:n,marginLeft:v,marginRight:b}]},t);else if(r)i=sB({positionType:"shift",positionData:-(p=Math.max(p,a,r.depth+.25*u.xHeight)),children:[{type:"elem",elem:r,marginRight:b}]},t);else throw Error("supsub must have either sup or sub.");return sS([s7(h,"right")||"mord"],[h,sS(["msupsub"],[i])],t)},mathmlBuilder(e,t){var r,n,a=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(a=!0,r=e.base.isOver),e.base&&("op"===e.base.type||"operatorname"===e.base.type)&&(e.base.parentIsSupSub=!0);var i=[ou(e.base,t)];if(e.sub&&i.push(ou(e.sub,t)),e.sup&&i.push(ou(e.sup,t)),a)n=r?"mover":"munder";else if(e.sub)if(e.sup){var s=e.base;n=s&&"op"===s.type&&s.limits&&t.style===ic.DISPLAY||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(t.style===ic.DISPLAY||s.limits)?"munderover":"msubsup"}else{var o=e.base;n=o&&"op"===o.type&&o.limits&&(t.style===ic.DISPLAY||o.alwaysHandleSupSub)||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(o.limits||t.style===ic.DISPLAY)?"munder":"msub"}else{var l=e.base;n=l&&"op"===l.type&&l.limits&&(t.style===ic.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===ic.DISPLAY)?"mover":"msup"}return new or(n,i)}}),sY({type:"atom",htmlBuilder:(e,t)=>sz(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new or("mo",[oi(e.text,e.mode)]);if("bin"===e.family){var n=oo(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):("open"===e.family||"close"===e.family)&&r.setAttribute("stretchy","false");return r}});var lq={mi:"italic",mn:"normal",mtext:"normal"};sY({type:"mathord",htmlBuilder:(e,t)=>s$(e,t,"mathord"),mathmlBuilder(e,t){var r=new or("mi",[oi(e.text,e.mode,t)]),n=oo(e,t)||"italic";return n!==lq[r.type]&&r.setAttribute("mathvariant",n),r}}),sY({type:"textord",htmlBuilder:(e,t)=>s$(e,t,"textord"),mathmlBuilder(e,t){var r,n=oi(e.text,e.mode,t),a=oo(e,t)||"normal";return a!==lq[(r="text"===e.mode?new or("mtext",[n]):/[0-9]/.test(e.text)?new or("mn",[n]):"\\prime"===e.text?new or("mo",[n]):new or("mi",[n])).type]&&r.setAttribute("mathvariant",a),r}});var lF={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},lG={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};sY({type:"spacing",htmlBuilder(e,t){if(lG.hasOwnProperty(e.text)){var r=lG[e.text].className||"";if("text"!==e.mode)return sS(["mspace",r],[sz(e.text,e.mode,t)],t);var n=s$(e,t,"textord");return n.classes.push(r),n}if(lF.hasOwnProperty(e.text))return sS(["mspace",lF[e.text]],[],t);throw new aK('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){var r;if(lG.hasOwnProperty(e.text))r=new or("mtext",[new on(" ")]);else if(lF.hasOwnProperty(e.text))return new or("mspace");else throw new aK('Unknown type of space "'+e.text+'"');return r}});var lH=()=>{var e=new or("mtd",[]);return e.setAttribute("width","50%"),e};sY({type:"tag",mathmlBuilder(e,t){var r=new or("mtable",[new or("mtr",[lH(),new or("mtd",[oh(e.body,t)]),lH(),new or("mtd",[oh(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var lU={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},lW={"\\textbf":"textbf","\\textmd":"textmd"},lV={"\\textit":"textit","\\textup":"textup"},lX=(e,t)=>{var r=e.font;return r?lU[r]?t.withTextFontFamily(lU[r]):lW[r]?t.withTextFontWeight(lW[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(lV[r]):t};sX({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,a=t[0];return{type:"text",mode:r.mode,body:sK(a),font:n}},htmlBuilder(e,t){var r=lX(e,t);return sS(["mord","text"],s4(e.body,r,!0),r)},mathmlBuilder(e,t){var r=lX(e,t);return oh(e.body,r)}}),sX({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=s8(e.body,t),n=sI("underline-line",t),a=t.fontMetrics().defaultRuleThickness;return sS(["mord","underline"],[sB({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]},t)],t)},mathmlBuilder(e,t){var r=new or("mo",[new on("‾")]);r.setAttribute("stretchy","true");var n=new or("munder",[ou(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),sX({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=s8(e.body,t),n=t.fontMetrics().axisHeight;return sB({positionType:"shift",positionData:.5*(r.height-n-(r.depth+n)),children:[{type:"elem",elem:r}]},t)},mathmlBuilder:(e,t)=>new or("mpadded",[ou(e.body,t)],["vcenter"])}),sX({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new aK("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=lY(e),n=[],a=t.havingStyle(t.style.text()),i=0;ie.body.replace(/ /g,e.star?"␣":" "),lZ="[ \r\n ]",lK="[̀-ͯ]",lJ=RegExp(lK+"+$"),lQ="("+lZ+"+)|\\\\(\n|[ \r ]+\n?)[ \r ]*|([!-\\[\\]-‧‪-퟿豈-￿]"+lK+"*|[\uD800-\uDBFF][\uDC00-\uDFFF]"+lK+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)"+lZ+"*|\\\\[^\uD800-\uDFFF])";class l0{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=RegExp(lQ,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new aZ("EOF",new aY(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new aK("Unexpected character: '"+e[t]+"'",new aZ(e[t],new aY(this,t,t+1)));var n=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[n]){var a=e.indexOf("\n",this.tokenRegex.lastIndex);return -1===a?(this.tokenRegex.lastIndex=e.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 aZ(n,new aY(this,t,this.tokenRegex.lastIndex))}}class l1{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new aK("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var n=0;n0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}lc["\\noexpand"]=function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}},lc["\\expandafter"]=function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}},lc["\\@firstoftwo"]=function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}},lc["\\@secondoftwo"]=function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}},lc["\\@ifnextchar"]=function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}},lc["\\@ifstar"]="\\@ifnextchar *{\\@firstoftwo{#1}}",lc["\\TextOrMath"]=function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}};var l4={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};lc["\\char"]=function(e){var t,r,n=e.popToken(),a="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])a=n.text.charCodeAt(1);else if("EOF"===n.text)throw new aK("\\char` missing argument");else a=n.text.charCodeAt(0);else t=10;if(t){if(null==(a=l4[n.text])||a>=t)throw new aK("Invalid base-"+t+" digit "+n.text);for(;null!=(r=l4[e.future().text])&&r{var a=e.consumeArg().tokens;if(1!==a.length)throw new aK("\\newcommand's first argument must be a macro name");var i=a[0].text,s=e.isDefined(i);if(s&&!t)throw new aK("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!s&&!r)throw new aK("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(1===(a=e.consumeArg().tokens).length&&"["===a[0].text){for(var l="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new aK("Invalid number of arguments: "+l);o=parseInt(l),a=e.consumeArg().tokens}return s&&n||e.macros.set(i,{tokens:a,numArgs:o}),""};lc["\\newcommand"]=e=>l5(e,!1,!0,!1),lc["\\renewcommand"]=e=>l5(e,!0,!1,!1),lc["\\providecommand"]=e=>l5(e,!0,!0,!0),lc["\\message"]=e=>(console.log(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),""),lc["\\errmessage"]=e=>(console.error(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),""),lc["\\show"]=e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),sU[r],iY.math[r],iY.text[r]),""},lc["\\bgroup"]="{",lc["\\egroup"]="}",lc["~"]="\\nobreakspace",lc["\\lq"]="`",lc["\\rq"]="'",lc["\\aa"]="\\r a",lc["\\AA"]="\\r A",lc["\\textcopyright"]="\\html@mathml{\\textcircled{c}}{\\char`©}",lc["\\copyright"]="\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}",lc["\\textregistered"]="\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}",lc["ℬ"]="\\mathscr{B}",lc["ℰ"]="\\mathscr{E}",lc["ℱ"]="\\mathscr{F}",lc["ℋ"]="\\mathscr{H}",lc["ℐ"]="\\mathscr{I}",lc["ℒ"]="\\mathscr{L}",lc["ℳ"]="\\mathscr{M}",lc["ℛ"]="\\mathscr{R}",lc["ℭ"]="\\mathfrak{C}",lc["ℌ"]="\\mathfrak{H}",lc["ℨ"]="\\mathfrak{Z}",lc["\\Bbbk"]="\\Bbb{k}",lc["·"]="\\cdotp",lc["\\llap"]="\\mathllap{\\textrm{#1}}",lc["\\rlap"]="\\mathrlap{\\textrm{#1}}",lc["\\clap"]="\\mathclap{\\textrm{#1}}",lc["\\mathstrut"]="\\vphantom{(}",lc["\\underbar"]="\\underline{\\text{#1}}",lc["\\not"]='\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}',lc["\\neq"]="\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}",lc["\\ne"]="\\neq",lc["≠"]="\\neq",lc["\\notin"]="\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}",lc["∉"]="\\notin",lc["≘"]="\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}",lc["≙"]="\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}",lc["≚"]="\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}",lc["≛"]="\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}",lc["≝"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}",lc["≞"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}",lc["≟"]="\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}",lc["⟂"]="\\perp",lc["‼"]="\\mathclose{!\\mkern-0.8mu!}",lc["∌"]="\\notni",lc["⌜"]="\\ulcorner",lc["⌝"]="\\urcorner",lc["⌞"]="\\llcorner",lc["⌟"]="\\lrcorner",lc["©"]="\\copyright",lc["®"]="\\textregistered",lc["️"]="\\textregistered",lc["\\ulcorner"]='\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}',lc["\\urcorner"]='\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}',lc["\\llcorner"]='\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}',lc["\\lrcorner"]='\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}',lc["\\vdots"]="{\\varvdots\\rule{0pt}{15pt}}",lc["⋮"]="\\vdots",lc["\\varGamma"]="\\mathit{\\Gamma}",lc["\\varDelta"]="\\mathit{\\Delta}",lc["\\varTheta"]="\\mathit{\\Theta}",lc["\\varLambda"]="\\mathit{\\Lambda}",lc["\\varXi"]="\\mathit{\\Xi}",lc["\\varPi"]="\\mathit{\\Pi}",lc["\\varSigma"]="\\mathit{\\Sigma}",lc["\\varUpsilon"]="\\mathit{\\Upsilon}",lc["\\varPhi"]="\\mathit{\\Phi}",lc["\\varPsi"]="\\mathit{\\Psi}",lc["\\varOmega"]="\\mathit{\\Omega}",lc["\\substack"]="\\begin{subarray}{c}#1\\end{subarray}",lc["\\colon"]="\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax",lc["\\boxed"]="\\fbox{$\\displaystyle{#1}$}",lc["\\iff"]="\\DOTSB\\;\\Longleftrightarrow\\;",lc["\\implies"]="\\DOTSB\\;\\Longrightarrow\\;",lc["\\impliedby"]="\\DOTSB\\;\\Longleftarrow\\;",lc["\\dddot"]="{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}",lc["\\ddddot"]="{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}";var l3={",":"\\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"};lc["\\dots"]=function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in l3?t=l3[r]:"\\not"===r.slice(0,4)?t="\\dotsb":r in iY.math&&["bin","rel"].includes(iY.math[r].group)&&(t="\\dotsb"),t};var l6={")":!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};lc["\\dotso"]=function(e){return e.future().text in l6?"\\ldots\\,":"\\ldots"},lc["\\dotsc"]=function(e){var t=e.future().text;return t in l6&&","!==t?"\\ldots\\,":"\\ldots"},lc["\\cdots"]=function(e){return e.future().text in l6?"\\@cdots\\,":"\\@cdots"},lc["\\dotsb"]="\\cdots",lc["\\dotsm"]="\\cdots",lc["\\dotsi"]="\\!\\cdots",lc["\\dotsx"]="\\ldots\\,",lc["\\DOTSI"]="\\relax",lc["\\DOTSB"]="\\relax",lc["\\DOTSX"]="\\relax",lc["\\tmspace"]="\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax",lc["\\,"]="\\tmspace+{3mu}{.1667em}",lc["\\thinspace"]="\\,",lc["\\>"]="\\mskip{4mu}",lc["\\:"]="\\tmspace+{4mu}{.2222em}",lc["\\medspace"]="\\:",lc["\\;"]="\\tmspace+{5mu}{.2777em}",lc["\\thickspace"]="\\;",lc["\\!"]="\\tmspace-{3mu}{.1667em}",lc["\\negthinspace"]="\\!",lc["\\negmedspace"]="\\tmspace-{4mu}{.2222em}",lc["\\negthickspace"]="\\tmspace-{5mu}{.277em}",lc["\\enspace"]="\\kern.5em ",lc["\\enskip"]="\\hskip.5em\\relax",lc["\\quad"]="\\hskip1em\\relax",lc["\\qquad"]="\\hskip2em\\relax",lc["\\tag"]="\\@ifstar\\tag@literal\\tag@paren",lc["\\tag@paren"]="\\tag@literal{({#1})}",lc["\\tag@literal"]=e=>{if(e.macros.get("\\df@tag"))throw new aK("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"},lc["\\bmod"]="\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}",lc["\\pod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)",lc["\\pmod"]="\\pod{{\\rm mod}\\mkern6mu#1}",lc["\\mod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1",lc["\\newline"]="\\\\\\relax",lc["\\TeX"]="\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}";var l7=iI(iv["Main-Regular"][84][1]-.7*iv["Main-Regular"][65][1]);lc["\\LaTeX"]="\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+l7+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}",lc["\\KaTeX"]="\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+l7+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}",lc["\\hspace"]="\\@ifstar\\@hspacer\\@hspace",lc["\\@hspace"]="\\hskip #1\\relax",lc["\\@hspacer"]="\\rule{0pt}{0pt}\\hskip #1\\relax",lc["\\ordinarycolon"]=":",lc["\\vcentcolon"]="\\mathrel{\\mathop\\ordinarycolon}",lc["\\dblcolon"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}',lc["\\coloneqq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}',lc["\\Coloneqq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}',lc["\\coloneq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}',lc["\\Coloneq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}',lc["\\eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}',lc["\\Eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}',lc["\\eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}',lc["\\Eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}',lc["\\colonapprox"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}',lc["\\Colonapprox"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}',lc["\\colonsim"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}',lc["\\Colonsim"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}',lc["∷"]="\\dblcolon",lc["∹"]="\\eqcolon",lc["≔"]="\\coloneqq",lc["≕"]="\\eqqcolon",lc["⩴"]="\\Coloneqq",lc["\\ratio"]="\\vcentcolon",lc["\\coloncolon"]="\\dblcolon",lc["\\colonequals"]="\\coloneqq",lc["\\coloncolonequals"]="\\Coloneqq",lc["\\equalscolon"]="\\eqqcolon",lc["\\equalscoloncolon"]="\\Eqqcolon",lc["\\colonminus"]="\\coloneq",lc["\\coloncolonminus"]="\\Coloneq",lc["\\minuscolon"]="\\eqcolon",lc["\\minuscoloncolon"]="\\Eqcolon",lc["\\coloncolonapprox"]="\\Colonapprox",lc["\\coloncolonsim"]="\\Colonsim",lc["\\simcolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",lc["\\simcoloncolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",lc["\\approxcolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",lc["\\approxcoloncolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",lc["\\notni"]="\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}",lc["\\limsup"]="\\DOTSB\\operatorname*{lim\\,sup}",lc["\\liminf"]="\\DOTSB\\operatorname*{lim\\,inf}",lc["\\injlim"]="\\DOTSB\\operatorname*{inj\\,lim}",lc["\\projlim"]="\\DOTSB\\operatorname*{proj\\,lim}",lc["\\varlimsup"]="\\DOTSB\\operatorname*{\\overline{lim}}",lc["\\varliminf"]="\\DOTSB\\operatorname*{\\underline{lim}}",lc["\\varinjlim"]="\\DOTSB\\operatorname*{\\underrightarrow{lim}}",lc["\\varprojlim"]="\\DOTSB\\operatorname*{\\underleftarrow{lim}}",lc["\\gvertneqq"]="\\html@mathml{\\@gvertneqq}{≩}",lc["\\lvertneqq"]="\\html@mathml{\\@lvertneqq}{≨}",lc["\\ngeqq"]="\\html@mathml{\\@ngeqq}{≱}",lc["\\ngeqslant"]="\\html@mathml{\\@ngeqslant}{≱}",lc["\\nleqq"]="\\html@mathml{\\@nleqq}{≰}",lc["\\nleqslant"]="\\html@mathml{\\@nleqslant}{≰}",lc["\\nshortmid"]="\\html@mathml{\\@nshortmid}{∤}",lc["\\nshortparallel"]="\\html@mathml{\\@nshortparallel}{∦}",lc["\\nsubseteqq"]="\\html@mathml{\\@nsubseteqq}{⊈}",lc["\\nsupseteqq"]="\\html@mathml{\\@nsupseteqq}{⊉}",lc["\\varsubsetneq"]="\\html@mathml{\\@varsubsetneq}{⊊}",lc["\\varsubsetneqq"]="\\html@mathml{\\@varsubsetneqq}{⫋}",lc["\\varsupsetneq"]="\\html@mathml{\\@varsupsetneq}{⊋}",lc["\\varsupsetneqq"]="\\html@mathml{\\@varsupsetneqq}{⫌}",lc["\\imath"]="\\html@mathml{\\@imath}{ı}",lc["\\jmath"]="\\html@mathml{\\@jmath}{ȷ}",lc["\\llbracket"]="\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}",lc["\\rrbracket"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}",lc["⟦"]="\\llbracket",lc["⟧"]="\\rrbracket",lc["\\lBrace"]="\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}",lc["\\rBrace"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}",lc["⦃"]="\\lBrace",lc["⦄"]="\\rBrace",lc["\\minuso"]="\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}",lc["⦵"]="\\minuso",lc["\\darr"]="\\downarrow",lc["\\dArr"]="\\Downarrow",lc["\\Darr"]="\\Downarrow",lc["\\lang"]="\\langle",lc["\\rang"]="\\rangle",lc["\\uarr"]="\\uparrow",lc["\\uArr"]="\\Uparrow",lc["\\Uarr"]="\\Uparrow",lc["\\N"]="\\mathbb{N}",lc["\\R"]="\\mathbb{R}",lc["\\Z"]="\\mathbb{Z}",lc["\\alef"]="\\aleph",lc["\\alefsym"]="\\aleph",lc["\\Alpha"]="\\mathrm{A}",lc["\\Beta"]="\\mathrm{B}",lc["\\bull"]="\\bullet",lc["\\Chi"]="\\mathrm{X}",lc["\\clubs"]="\\clubsuit",lc["\\cnums"]="\\mathbb{C}",lc["\\Complex"]="\\mathbb{C}",lc["\\Dagger"]="\\ddagger",lc["\\diamonds"]="\\diamondsuit",lc["\\empty"]="\\emptyset",lc["\\Epsilon"]="\\mathrm{E}",lc["\\Eta"]="\\mathrm{H}",lc["\\exist"]="\\exists",lc["\\harr"]="\\leftrightarrow",lc["\\hArr"]="\\Leftrightarrow",lc["\\Harr"]="\\Leftrightarrow",lc["\\hearts"]="\\heartsuit",lc["\\image"]="\\Im",lc["\\infin"]="\\infty",lc["\\Iota"]="\\mathrm{I}",lc["\\isin"]="\\in",lc["\\Kappa"]="\\mathrm{K}",lc["\\larr"]="\\leftarrow",lc["\\lArr"]="\\Leftarrow",lc["\\Larr"]="\\Leftarrow",lc["\\lrarr"]="\\leftrightarrow",lc["\\lrArr"]="\\Leftrightarrow",lc["\\Lrarr"]="\\Leftrightarrow",lc["\\Mu"]="\\mathrm{M}",lc["\\natnums"]="\\mathbb{N}",lc["\\Nu"]="\\mathrm{N}",lc["\\Omicron"]="\\mathrm{O}",lc["\\plusmn"]="\\pm",lc["\\rarr"]="\\rightarrow",lc["\\rArr"]="\\Rightarrow",lc["\\Rarr"]="\\Rightarrow",lc["\\real"]="\\Re",lc["\\reals"]="\\mathbb{R}",lc["\\Reals"]="\\mathbb{R}",lc["\\Rho"]="\\mathrm{P}",lc["\\sdot"]="\\cdot",lc["\\sect"]="\\S",lc["\\spades"]="\\spadesuit",lc["\\sub"]="\\subset",lc["\\sube"]="\\subseteq",lc["\\supe"]="\\supseteq",lc["\\Tau"]="\\mathrm{T}",lc["\\thetasym"]="\\vartheta",lc["\\weierp"]="\\wp",lc["\\Zeta"]="\\mathrm{Z}",lc["\\argmin"]="\\DOTSB\\operatorname*{arg\\,min}",lc["\\argmax"]="\\DOTSB\\operatorname*{arg\\,max}",lc["\\plim"]="\\DOTSB\\mathop{\\operatorname{plim}}\\limits",lc["\\bra"]="\\mathinner{\\langle{#1}|}",lc["\\ket"]="\\mathinner{|{#1}\\rangle}",lc["\\braket"]="\\mathinner{\\langle{#1}\\rangle}",lc["\\Bra"]="\\left\\langle#1\\right|",lc["\\Ket"]="\\left|#1\\right\\rangle";var l2=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{e&&(r.macros.set("|",s),a.length&&r.macros.set("\\|",o));var i=t;return!t&&a.length&&"|"===r.future().text&&(r.popToken(),i=!0),{tokens:i?a:n,numArgs:0}};t.macros.set("|",l(!1)),a.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,h=t.expandTokens([...i,...c,...r]);return t.macros.endGroup(),{tokens:h.reverse(),numArgs:0}};h=l2(!1),lc["\\bra@ket"]=h,u=l2(!0),lc["\\bra@set"]=u,lc["\\Braket"]="\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}",lc["\\Set"]="\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}",lc["\\set"]="\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}",lc["\\angln"]="{\\angl n}",lc["\\blue"]="\\textcolor{##6495ed}{#1}",lc["\\orange"]="\\textcolor{##ffa500}{#1}",lc["\\pink"]="\\textcolor{##ff00af}{#1}",lc["\\red"]="\\textcolor{##df0030}{#1}",lc["\\green"]="\\textcolor{##28ae7b}{#1}",lc["\\gray"]="\\textcolor{gray}{#1}",lc["\\purple"]="\\textcolor{##9d38bd}{#1}",lc["\\blueA"]="\\textcolor{##ccfaff}{#1}",lc["\\blueB"]="\\textcolor{##80f6ff}{#1}",lc["\\blueC"]="\\textcolor{##63d9ea}{#1}",lc["\\blueD"]="\\textcolor{##11accd}{#1}",lc["\\blueE"]="\\textcolor{##0c7f99}{#1}",lc["\\tealA"]="\\textcolor{##94fff5}{#1}",lc["\\tealB"]="\\textcolor{##26edd5}{#1}",lc["\\tealC"]="\\textcolor{##01d1c1}{#1}",lc["\\tealD"]="\\textcolor{##01a995}{#1}",lc["\\tealE"]="\\textcolor{##208170}{#1}",lc["\\greenA"]="\\textcolor{##b6ffb0}{#1}",lc["\\greenB"]="\\textcolor{##8af281}{#1}",lc["\\greenC"]="\\textcolor{##74cf70}{#1}",lc["\\greenD"]="\\textcolor{##1fab54}{#1}",lc["\\greenE"]="\\textcolor{##0d923f}{#1}",lc["\\goldA"]="\\textcolor{##ffd0a9}{#1}",lc["\\goldB"]="\\textcolor{##ffbb71}{#1}",lc["\\goldC"]="\\textcolor{##ff9c39}{#1}",lc["\\goldD"]="\\textcolor{##e07d10}{#1}",lc["\\goldE"]="\\textcolor{##a75a05}{#1}",lc["\\redA"]="\\textcolor{##fca9a9}{#1}",lc["\\redB"]="\\textcolor{##ff8482}{#1}",lc["\\redC"]="\\textcolor{##f9685d}{#1}",lc["\\redD"]="\\textcolor{##e84d39}{#1}",lc["\\redE"]="\\textcolor{##bc2612}{#1}",lc["\\maroonA"]="\\textcolor{##ffbde0}{#1}",lc["\\maroonB"]="\\textcolor{##ff92c6}{#1}",lc["\\maroonC"]="\\textcolor{##ed5fa6}{#1}",lc["\\maroonD"]="\\textcolor{##ca337c}{#1}",lc["\\maroonE"]="\\textcolor{##9e034e}{#1}",lc["\\purpleA"]="\\textcolor{##ddd7ff}{#1}",lc["\\purpleB"]="\\textcolor{##c6b9fc}{#1}",lc["\\purpleC"]="\\textcolor{##aa87ff}{#1}",lc["\\purpleD"]="\\textcolor{##7854ab}{#1}",lc["\\purpleE"]="\\textcolor{##543b78}{#1}",lc["\\mintA"]="\\textcolor{##f5f9e8}{#1}",lc["\\mintB"]="\\textcolor{##edf2df}{#1}",lc["\\mintC"]="\\textcolor{##e0e5cc}{#1}",lc["\\grayA"]="\\textcolor{##f6f7f7}{#1}",lc["\\grayB"]="\\textcolor{##f0f1f2}{#1}",lc["\\grayC"]="\\textcolor{##e3e5e6}{#1}",lc["\\grayD"]="\\textcolor{##d6d8da}{#1}",lc["\\grayE"]="\\textcolor{##babec2}{#1}",lc["\\grayF"]="\\textcolor{##888d93}{#1}",lc["\\grayG"]="\\textcolor{##626569}{#1}",lc["\\grayH"]="\\textcolor{##3b3e40}{#1}",lc["\\grayI"]="\\textcolor{##21242c}{#1}",lc["\\kaBlue"]="\\textcolor{##314453}{#1}",lc["\\kaGreen"]="\\textcolor{##71B307}{#1}";var l8={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class l9{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new l1(lc,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new l0(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:n,end:r}=this.consumeArg(["]"])}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new aZ("EOF",r.loc)),this.pushTokens(n),new aZ("",aY.range(t,r))}consumeSpaces(){for(;;)if(" "===this.future().text)this.stack.pop();else break}consumeArg(e){var t,r=[],n=e&&e.length>0;n||this.consumeSpaces();var a=this.future(),i=0,s=0;do{if(t=this.popToken(),r.push(t),"{"===t.text)++i;else if("}"===t.text){if(-1==--i)throw new aK("Extra }",t)}else if("EOF"===t.text)throw new aK("Unexpected end of input in a macro argument, expected '"+(e&&n?e[s]:"}")+"'",t);if(e&&n)if((0===i||1===i&&"{"===e[s])&&t.text===e[s]){if(++s===e.length){r.splice(-s,s);break}}else s=0}while(0!==i||n)return"{"===a.text&&"}"===r[r.length-1].text&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:t}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new aK("The length of delimiters doesn't match the number of args!");for(var r=t[0],n=0;nthis.settings.maxExpand)throw new aK("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,n=t.noexpand?null:this._getExpansion(r);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===r[0]&&!this.isDefined(r))throw new aK("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var a=n.tokens,i=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var o=a[s];if("#"===o.text){if(0===s)throw new aK("Incomplete placeholder at end of macro body",o);if("#"===(o=a[--s]).text)a.splice(s+1,1);else if(/^[1-9]$/.test(o.text))a.splice(s,2,...i[o.text-1]);else throw new aK("Not a valid argument number",o)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw Error()}expandMacro(e){return this.macros.has(e)?this.expandTokens([new aZ(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var n="function"==typeof t?t(this):t;if("string"==typeof n){var a=0;if(-1!==n.indexOf("#"))for(var i=n.replace(/##/g,"");-1!==i.indexOf("#"+(a+1));)++a;for(var s=new l0(n,this.settings),o=[],l=s.lex();"EOF"!==l.text;)o.push(l),l=s.lex();return o.reverse(),{tokens:o,numArgs:a}}return n}isDefined(e){return this.macros.has(e)||sU.hasOwnProperty(e)||iY.math.hasOwnProperty(e)||iY.text.hasOwnProperty(e)||l8.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:sU.hasOwnProperty(e)&&!sU[e].primitive}}var ce=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,ct=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",ᵝ:"β",ᵞ:"γ",ᵟ:"δ",ᵠ:"ϕ",ᵡ:"χ",ᶿ:"θ"}),cr={"́":{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"}},cn={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class ca{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new l9(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new aK("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new aZ("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==ca.endOfExpression.indexOf(n.text)||t&&n.text===t||e&&sU[n.text]&&sU[n.text].infix)break;var a=this.parseAtom(t);if(a){if("internal"===a.type)continue}else break;r.push(a)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,r=0;r=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var i,s=iY[this.mode][t].group,o=aY.range(e);i=iV.hasOwnProperty(s)?{type:"atom",mode:this.mode,family:s,loc:o,text:t}:{type:s,mode:this.mode,loc:o,text:t}}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(ip(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:aY.range(e),text:t}}if(this.consume(),a)for(var l=0;ltypeof document&&"CSS1Compat"!==document.compatMode&&"u">typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.");var cs=function(e,t,r){if(r.throwOnError||!(e instanceof aK))throw e;var n=sS(["katex-error"],[new iF(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+r.errorColor),n},co=function(e,t){var r=new a9(t);try{var n=ci(e,r);return og(n,e,r)}catch(t){return cs(t,e,r)}},cl=function(e,t){return co(e,t).toMarkup()},cc=e.i(402652);let ch=[];function cu(e){return Array.isArray(e.children)}e.s(["createMathPlugin",0,function(e){let{singleDollarTextMath:t=!0,katexErrorFallback:r="raw-text"}=e??{};return{name:"katex",type:"math",remarkPlugin:[aT,{singleDollarTextMath:t}],rehypePlugin:function(e){let t,n=(t={...e,output:"htmlAndMathml"},function(e,r){(0,cc.visitParents)(e,"element",function(e,n){var a,i,s;let o,l,c=Array.isArray(e.properties.className)?e.properties.className:ch,h=c.includes("language-math"),u=c.includes("math-display"),p=c.includes("math-inline"),m=u;if(!h&&!u&&!p)return;let d=n[n.length-1],g=e;if("code"===e.tagName&&h&&d&&"element"===d.type&&"pre"===d.tagName&&(g=d,d=n[n.length-2],m=!0),!d)return;let f=function(e,t){let r,n="children"in e?e.children:[],a=aW(e),i=aX(e,{whitespace:(t||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),s=[];("text"===e.type||"comment"===e.type)&&s.push(...aV(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let o=-1;for(;++or&&(r=e):e&&(void 0!==r&&r>-1&&l.push("\n".repeat(r)||" "),r=-1,l.push(e))}return l.join("")}(g,{whitespace:"pre"});try{l=cl(f,{...t,displayMode:m,throwOnError:!0})}catch(i){let a=i.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...n,e],cause:i,place:e.position,ruleId:a,source:"rehype-katex"});try{l=cl(f,{...t,displayMode:m,strict:"ignore",throwOnError:!1})}catch{l=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(i)},children:[{type:"text",value:f}]}]}}"string"==typeof l&&(l=(a=l,i={fragment:!0},az(i?.fragment?(s=a,(o=document.createElement("template")).innerHTML=s,o.content):aL.parseFromString(a,"text/html"),{})||{type:"root",children:[]}).children);let y=d.children.indexOf(g);return d.children.splice(y,1,...l),cc.SKIP})});return(e,t)=>{n(e,t),"raw-text"===r&&function e(t){t.children=t.children.flatMap(t=>!function(e){if("element"!==e.type)return!1;let t=e.properties?.className;return Array.isArray(t)&&t.includes("katex-error")}(t)?(cu(t)&&e(t),[t]):[{type:"text",value:function e(t){return"text"===t.type&&"string"==typeof t.value?t.value:cu(t)?t.children.map(e).join(""):""}(t)}])}(e)}}}}],156292)},979686,e=>{"use strict";var t=e.i(472361),r=e.i(733783);let n={animation:"ur-word-fade-in 200ms ease-out forwards",opacity:0},a=["p","h1","h2","h3","h4","h5","h6","li","blockquote","td","th"],i={p:{},h1:{className:"mt-6 mb-2 font-semibold text-3xl",dataStreamdown:"heading-1"},h2:{className:"mt-6 mb-2 font-semibold text-2xl",dataStreamdown:"heading-2"},h3:{className:"mt-6 mb-2 font-semibold text-xl",dataStreamdown:"heading-3"},h4:{className:"mt-6 mb-2 font-semibold text-lg",dataStreamdown:"heading-4"},h5:{className:"mt-6 mb-2 font-semibold text-base",dataStreamdown:"heading-5"},h6:{className:"mt-6 mb-2 font-semibold text-sm",dataStreamdown:"heading-6"},li:{className:"py-1 [&>p]:inline",dataStreamdown:"list-item"},blockquote:{className:"my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",dataStreamdown:"blockquote"},td:{dataStreamdown:"table-cell"},th:{className:"font-semibold",dataStreamdown:"table-header"}};e.s(["createAnimatedTextComponents",0,function(e){let s={};for(let o of a)s[o]=function(e,a){let s=i[e];return function(i){let{children:o,node:l}=i,c={};s.className&&(c.className=s.className),s.dataStreamdown&&(c["data-streamdown"]=s.dataStreamdown);let h=a?function e(r,n){return t.Children.map(r,(r,a)=>{if("string"==typeof r)return n(r,`text-${a}`);if((0,t.isValidElement)(r)){let a=r.props;if(a.children)return(0,t.cloneElement)(r,{children:e(a.children,n)})}return r})}(o,(e,a)=>(0,r.jsx)(t.Fragment,{children:e.split(" ").map((e,t)=>(0,r.jsxs)("span",{style:n,children:[t>0?" ":null,e]},t))},a)):o;return(0,t.createElement)(e,c,h)}}(o,e);return s}],979686)},148295,707380,e=>{"use strict";e.s(["default",0,function(){return function(e){!function e(t){for(let r of t.children)"paragraph"===r.type?r.children.some(e=>"inlineMath"===e.type||"math"===e.type)||(r.children=function(e){let t=[];for(let r of e){if("text"!==r.type||!r.value.includes("\n")){t.push(r);continue}for(let e of r.value.split(/(\r?\n|\r)/))/^\r?\n$|^\r$/.test(e)?t.push({type:"break"}):e.length>0&&t.push({type:"text",value:e})}return t}(r.children)):"children"in r&&e(r)}(e)}}],148295),e.s(["default",0,function(){return function(e){!function e(t){for(let r=0;r{"use strict";let t=/^\[Image blocked: (.*)\]$/;e.s(["default",0,function(){return e=>{!function e(r){var n;if("text"===r.type&&"string"==typeof r.value){n=r.value,r.value=null==t.exec(n)?n:"Image unavailable. Please retry the request.";return}if(Array.isArray(r.children))for(let t of r.children)e(t)}(e)}}])},570790,e=>{"use strict";var t=e.i(733783),r=e.i(472361);e.i(68322);var n=e.i(522281),a=e.i(314429),i=e.i(498660),s=e.i(242073),o=e.i(544980),l=e.i(97651),c=e.i(960327),h=e.i(632197),u=e.i(511350),p=e.i(617346),m=e.i(717995),d=e.i(156292),g=e.i(979686),f=e.i(680540),y=e.i(148295),b=e.i(707380),v=e.i(672871);let x={code:!1},w=[...Object.values(a.defaultRehypePlugins),v.default];e.s(["EctoMarkdown",0,function({text:e,inlineEntities:a,className:v,isStreaming:k=!1,shikiTheme:A=["github-light","github-dark"],messageIdPrefix:S,trimmed:C=!1,preProcessedText:_,preProcessedCitations:M,preProcessedWidgets:T,components:N,controls:E,codeOnly:z=!1}){let I=(0,f.useURClassName)("markdown","ur-markdown"),L=(0,r.useRef)(k);L.current=k;let R=(0,r.useMemo)(()=>S??function(e){let t=0;for(let r=0;rz?{processedText:e,citationMap:new Map,widgetMap:new Map}:void 0!==_?{processedText:_,citationMap:M??new Map,widgetMap:T??new Map}:a&&0!==a.length?(0,s.processInlineEntities)(e,a,R):{processedText:e,citationMap:new Map,widgetMap:new Map},[e,a,R,_,M,T,z]),O=(0,r.useMemo)(()=>{if(z)return B;let e=L.current?B:(0,p.dedentCodeBlocks)(B);return void 0===_&&(e=(0,u.processMathContent)(e)),e},[B,z,_]),j=(0,r.useMemo)(()=>(0,g.createAnimatedTextComponents)(k&&!z),[z,k]),D=[I,"prose",C&&"prose-trimmed",v].filter(Boolean).join(" ")||void 0,q=$.size>0,F=P.size>0,G=A[0],H=A[1],U=(0,r.useMemo)(()=>(0,m.createShikiPlugin)([G,H],()=>L.current),[G,H]),W=(0,r.useMemo)(()=>({code:U,math:(0,d.createMathPlugin)({singleDollarTextMath:!1})}),[U]),V=(0,r.useMemo)(()=>N?{...j,...N}:{...j,a:c.URMarkdownLink,img:h.URMarkdownImage},[j,N]),X=(0,r.useMemo)(()=>void 0===E?x:"boolean"==typeof E?E:{code:!1,...E},[E]),Y=(0,t.jsx)("div",{dir:"auto",className:D,children:(0,t.jsx)(n.Streamdown,{mode:k?"streaming":"static",isAnimating:k,className:"mb-4 flex flex-col gap-6",shikiTheme:A,plugins:W,rehypePlugins:w,remarkPlugins:[...Object.values(i.defaultRemarkPlugins),y.default,b.default],components:V,controls:X,children:O})});return F&&(Y=(0,t.jsx)(l.WidgetProvider,{widgets:P,children:Y})),q&&(Y=(0,t.jsx)(o.CitationProvider,{citations:$,children:Y})),Y}])},275235,e=>{"use strict";var t=e.i(472361);e.s(["useClipboard",0,function(e={}){let{resetDelay:r=2e3,onSuccess:n,onError:a}=e,[i,s]=(0,t.useState)(!1),[o,l]=(0,t.useState)(null),c=(0,t.useRef)(null);return(0,t.useEffect)(()=>()=>{c.current&&clearTimeout(c.current)},[]),{copy:(0,t.useCallback)(async e=>{c.current&&clearTimeout(c.current);try{return await navigator.clipboard.writeText(e),s(!0),l(null),n?.(),c.current=setTimeout(()=>{s(!1)},r),!0}catch(t){let e=t instanceof Error?t:Error("Failed to copy to clipboard");return l(e),s(!1),a?.(e),!1}},[r,n,a]),copied:i,error:o}}])},830239,993232,860705,e=>{"use strict";e.s(["EctoCodeBlock",()=>b,"createCodeBlock",()=>y,"getDisplayLanguage",()=>g,"getFileExtension",()=>m,"getMimeType",()=>d],830239);var t=e.i(733783),r=e.i(908464),n=e.i(570790),a=e.i(275235);e.s(["CodeBlockLayout",()=>s],993232);var i=e.i(899272);function s(e){let n,a,s,o,l,c,h,u,p=(0,r.c)(22),{language:d,variant:f,className:y,headerRight:b,children:v}=e,x="file"===f,w=y?`ur-code-block ${y}`:"ur-code-block",k=x&&"ur-code-block__header--file";return p[0]!==k?(n=(0,i.cn)("ur-code-block__header",k),p[0]=k,p[1]=n):n=p[1],p[2]!==x||p[3]!==d?(a=x&&(0,t.jsx)("span",{className:"ur-code-block__filename",children:`code.${m(d)}`}),p[2]=x,p[3]=d,p[4]=a):a=p[4],p[5]!==d?(s=g(d),p[5]=d,p[6]=s):s=p[6],p[7]!==s?(o=(0,t.jsx)("span",{className:"ur-code-block__metadata",children:s}),p[7]=s,p[8]=o):o=p[8],p[9]!==a||p[10]!==o?(l=(0,t.jsxs)("div",{className:"ur-code-block__header-left",children:[a,o]}),p[9]=a,p[10]=o,p[11]=l):l=p[11],p[12]!==b?(c=(0,t.jsx)("div",{className:"ur-code-block__header-right",children:b}),p[12]=b,p[13]=c):c=p[13],p[14]!==n||p[15]!==l||p[16]!==c?(h=(0,t.jsxs)("div",{className:n,children:[l,c]}),p[14]=n,p[15]=l,p[16]=c,p[17]=h):h=p[17],p[18]!==v||p[19]!==w||p[20]!==h?(u=(0,t.jsxs)("div",{className:w,children:[h,v]}),p[18]=v,p[19]=w,p[20]=h,p[21]=u):u=p[21],u}var o=e.i(472361);function l(e){let t=1;for(let r=0;-1!==(r=e.indexOf("\n",r));r++)t++;return t}function c(e,t,r){let{collapsedLineThreshold:n,collapsedStyle:a}=t,i=Math.max(1,Math.floor(t.v2VisibleLines??5)),s=null!=n?e>n:e>=5,o="teaser"===a&&null!=n&&s,l="v2"===a&&s,c=s&&!r;return{className:["ur-code-block__content",c&&!o&&!l&&"ur-code-block__content--hidden",o&&"ur-code-block__content--teaser",o&&r&&"ur-code-block__content--teaser-expanded",o&&c&&"ur-code-block__content--teaser-collapsed",l&&"ur-code-block__content--v2",l&&r&&"ur-code-block__content--v2-expanded",l&&!r&&"ur-code-block__content--v2-collapsed"].filter(Boolean).join(" "),style:o&&null!=n?{"--ur-code-block-collapsed-lines":n}:l?{"--ur-code-block-v2-visible-height":`${i}lh`}:void 0,showTeaserFade:o&&c,isCollapsible:s,usesTeaserCollapse:o,usesV2Collapse:l,canExpand:c}}function h(e){let t,n,a,i,s,h,p,m=(0,r.c)(24),{code:d,config:g,isStreaming:f,language:y}=e,b=l(d),v=g.expandDuringStreaming??!0,x=Math.max(1,Math.floor(g.v2VisibleLines??5));m[0]!==g||m[1]!==f||m[2]!==v||m[3]!==b?(t=()=>{let{isCollapsible:e}=c(b,g,!0);return!e||!0===f&&!!v||!g.defaultCollapsed},m[0]=g,m[1]=f,m[2]=v,m[3]=b,m[4]=t):t=m[4];let[w,k]=(0,o.useState)(t);m[5]!==g||m[6]!==w||m[7]!==b?(n=c(b,g,w),m[5]=g,m[6]=w,m[7]=b,m[8]=n):n=m[8];let A=n,{isCollapsible:S}=A,C=(0,o.useRef)(!1),_=(0,o.useRef)(!0===f),M=(0,o.useRef)(`${y??""}\u0000${d}`);m[9]!==d||m[10]!==g.defaultCollapsed||m[11]!==S||m[12]!==f||m[13]!==y||m[14]!==v?(a=()=>{let e=_.current,t=M.current,r=`${y??""}\u0000${d}`,n=t!==r;n&&!0!==f&&(C.current=!1),!C.current&&(S?g.defaultCollapsed?!0===f?k(v):(e||n)&&k(!1):n&&k(!0):k(!0)),_.current=!0===f,M.current=r},i=[d,g.defaultCollapsed,S,f,y,v],m[9]=d,m[10]=g.defaultCollapsed,m[11]=S,m[12]=f,m[13]=y,m[14]=v,m[15]=a,m[16]=i):(a=m[15],i=m[16]),(0,o.useEffect)(a,i),m[17]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{C.current=!0,k(e)},m[17]=s):s=m[17];let T=s;m[18]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{T(u)},m[18]=h):h=m[18];let N=h,E=Math.max(0,b-x);return m[19]!==A||m[20]!==w||m[21]!==E||m[22]!==b?(p={contentProps:A,hiddenLineCount:E,isExpanded:w,setExpandedFromUser:T,toggleExpandedFromUser:N,totalLines:b},m[19]=A,m[20]=w,m[21]=E,m[22]=b,m[23]=p):p=m[23],p}function u(e){return!e}e.s(["V2_VISIBLE_LINES",0,5,"countLines",0,l,"getCodeBlockContentProps",0,c],860705);let p={showLanguage:!0,showCopyButton:!0,showLineNumbers:!1,defaultCollapsed:!1,collapsedStyle:"hidden-lines"};function m(e){if(!e)return"txt";let t=e.toLowerCase();return({javascript:"js",typescript:"ts",tsx:"tsx",jsx:"jsx",python:"py",py:"py",ruby:"rb",rb:"rb",bash:"sh",shell:"sh",sh:"sh",zsh:"sh",json:"json",yaml:"yaml",yml:"yml",html:"html",css:"css",scss:"scss",sql:"sql",graphql:"graphql",markdown:"md",md:"md",go:"go",rust:"rs",rs:"rs",java:"java",kotlin:"kt",kt:"kt",swift:"swift",c:"c",cpp:"cpp","c++":"cpp",csharp:"cs",cs:"cs",php:"php",r:"r",scala:"scala",perl:"pl",lua:"lua",elixir:"ex",ex:"ex",erlang:"erl",erl:"erl",clojure:"clj",clj:"clj",haskell:"hs",hs:"hs",dockerfile:"dockerfile",docker:"dockerfile",makefile:"makefile",make:"makefile",toml:"toml",ini:"ini",xml:"xml",diff:"diff",patch:"diff"})[t]||t}function d(e){return({js:"text/javascript",ts:"text/typescript",tsx:"text/typescript",jsx:"text/javascript",py:"text/x-python",rb:"text/x-ruby",sh:"text/x-shellscript",json:"application/json",yaml:"text/yaml",yml:"text/yaml",html:"text/html",css:"text/css",scss:"text/x-scss",sql:"text/x-sql",graphql:"text/x-graphql",md:"text/markdown",go:"text/x-go",rs:"text/x-rust",java:"text/x-java",kt:"text/x-kotlin",swift:"text/x-swift",c:"text/x-csrc",cpp:"text/x-c++src",cs:"text/x-csharp",php:"text/x-php",r:"text/x-r",scala:"text/x-scala",pl:"text/x-perl",lua:"text/x-lua",ex:"text/x-elixir",erl:"text/x-erlang",clj:"text/x-clojure",hs:"text/x-haskell",xml:"text/xml",toml:"text/x-toml",ini:"text/x-ini",diff:"text/x-diff",patch:"text/x-diff",dockerfile:"text/x-dockerfile",makefile:"text/x-makefile"})[e]||"text/plain"}function g(e){return e?({javascript:"JavaScript",js:"JavaScript",typescript:"TypeScript",ts:"TypeScript",tsx:"TSX",jsx:"JSX",python:"Python",py:"Python",ruby:"Ruby",rb:"Ruby",bash:"Bash",shell:"Shell",sh:"Shell",zsh:"Zsh",json:"JSON",yaml:"YAML",yml:"YAML",html:"HTML",css:"CSS",scss:"SCSS",sql:"SQL",graphql:"GraphQL",markdown:"Markdown",md:"Markdown",go:"Go",rust:"Rust",rs:"Rust",java:"Java",kotlin:"Kotlin",kt:"Kotlin",swift:"Swift",c:"C",cpp:"C++","c++":"C++",csharp:"C#",cs:"C#",php:"PHP",r:"R",scala:"Scala",perl:"Perl",lua:"Lua",elixir:"Elixir",ex:"Elixir",erlang:"Erlang",erl:"Erlang",clojure:"Clojure",clj:"Clojure",haskell:"Haskell",hs:"Haskell",dockerfile:"Dockerfile",docker:"Dockerfile",makefile:"Makefile",make:"Makefile",toml:"TOML",ini:"INI",xml:"XML",diff:"Diff",patch:"Diff",text:"Text",txt:"Text",plaintext:"Text"})[e.toLowerCase()]||e:"Code"}function f(e){let n,a=(0,r.c)(2),{text:i}=e;return a[0]!==i?(n=(0,t.jsx)("pre",{className:"ur-code-block__pre",children:(0,t.jsx)("code",{children:i})}),a[0]=i,a[1]=n):n=a[1],n}function y(e){let{strings:r,icons:n,toast:i,config:l,MarkdownComponent:c,CopyButtonComponent:u,ExpandButtonComponent:g,V2ToggleComponent:y,DownloadButtonComponent:b}=e,v={...p,...l},x=c??f,w=function(e){let{strings:r,icons:n,showCopyButton:i=!0,toast:l,CopyButtonComponent:c,config:u={showLanguage:!0,showCopyButton:!0,showLineNumbers:!1,defaultCollapsed:!1,collapsedStyle:"hidden-lines"},V2ToggleComponent:p}=e;return function({code:e,language:m,className:d,variant:g,isStreaming:f}){let y=(0,o.useMemo)(()=>{let t;return(t=e.split("\n")).length>0&&""===t[t.length-1]&&t.pop(),t.map((e,t)=>({type:e.startsWith("@@")?"hunk":e.startsWith("+++ ")||e.startsWith("--- ")||e.startsWith("diff ")?"meta":e.startsWith("+")?"add":e.startsWith("-")?"del":"context",content:e,lineNumber:t+1}))},[e]),{contentProps:b,hiddenLineCount:v,isExpanded:x,toggleExpandedFromUser:w,totalLines:k}=h({code:e,config:u,isStreaming:f,language:m}),{isCollapsible:A,usesV2Collapse:S}=b,{copy:C,copied:_}=(0,a.useClipboard)({onSuccess:()=>l?.success(r.copied),onError:()=>l?.error(r.copyFailed)}),M=async t=>{t.stopPropagation(),await C(e)},T=n.Copy,N=n.Chevron,E=!1===i?null:c?(0,t.jsx)(c,{content:e}):(0,t.jsx)("button",{type:"button",onClick:M,className:"ur-code-block__action-button","aria-label":_?r.copied:r.copy,children:(0,t.jsx)(T,{size:20})}),z=r.expand?.(k)??`See all ${k} lines`,I=r.collapse??"Collapse",L=S&&A&&!1!==u.showV2ToggleRow&&(p?(0,t.jsx)(p,{isExpanded:x,hiddenLineCount:v,onToggle:w}):(0,t.jsxs)("button",{type:"button",className:"ur-code-block__v2-toggle",onClick:e=>{e?.stopPropagation(),w()},"aria-label":x?I:z,"aria-expanded":x,children:[N?(0,t.jsx)(N,{size:16,className:["ur-code-block__v2-chevron",x&&"ur-code-block__v2-chevron--expanded"].filter(Boolean).join(" ")}):(0,t.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:["ur-code-block__v2-chevron",x&&"ur-code-block__v2-chevron--expanded"].filter(Boolean).join(" "),children:(0,t.jsx)("polyline",{points:"6 9 12 15 18 9"})}),(0,t.jsx)("span",{className:"ur-code-block__v2-label",children:r.v2HiddenLines?.(v)??`${v} lines hidden`})]})),R=S?d?`ur-code-block--v2 ${d}`:"ur-code-block--v2":d;return(0,t.jsxs)(s,{language:m,variant:g,className:R,headerRight:E,children:[(0,t.jsx)("div",{className:b.className,style:b.style,children:(0,t.jsx)("div",{className:"ur-diff-code-block__body",children:(0,t.jsx)("table",{className:"ur-diff-code-block__table",children:(0,t.jsx)("tbody",{children:y.map(e=>(0,t.jsxs)("tr",{className:`ur-diff-code-block__line--${e.type}`,children:[(0,t.jsx)("td",{className:"ur-diff-code-block__line-number",children:e.lineNumber}),(0,t.jsx)("td",{className:"ur-diff-code-block__line-content",children:e.content})]},e.lineNumber))})})})}),L]})}}({strings:{copy:r.copy,copied:r.copied,copyFailed:r.copyFailed,expand:r.expand,collapse:r.collapse,v2HiddenLines:r.v2HiddenLines},icons:{Copy:n.Copy,Chevron:n.Chevron},showCopyButton:v.showCopyButton,toast:i,CopyButtonComponent:u,config:v,V2ToggleComponent:y});return function({code:e,language:o,isStreaming:l,variant:c,className:p}){let f,k,A;if(null!=o&&("diff"===o.toLowerCase()||"patch"===o.toLowerCase()))return(0,t.jsx)(w,{code:e,language:o,isStreaming:l,variant:c,className:p});let{contentProps:S,hiddenLineCount:C,isExpanded:_,setExpandedFromUser:M,toggleExpandedFromUser:T,totalLines:N}=h({code:e,config:v,isStreaming:l,language:o}),{isCollapsible:E,usesTeaserCollapse:z,usesV2Collapse:I,canExpand:L}=S,{copy:R,copied:B}=(0,a.useClipboard)({onSuccess:()=>i?.success(r.copied),onError:()=>i?.error(r.copyFailed)}),$=l?`\`\`\`${o||""} ${e}`:`\`\`\`${o||""} ${e} \`\`\``,P=async t=>{t.stopPropagation(),await R(e)},O=e=>{e.stopPropagation(),T()},j=()=>{L&&z&&M(!0)},D=n.Copy,q=n.Expand,F=n.Collapse,G=n.Download,H=v.showDownloadButton&&G,U=(0,t.jsxs)(t.Fragment,{children:[E&&!I&&(g?(0,t.jsx)(g,{isExpanded:_,totalLines:N,onToggle:T}):(0,t.jsx)("button",{type:"button",onClick:O,className:"ur-code-block__action-button","aria-label":_?r.collapse:r.expand(N),children:_&&F?(0,t.jsx)(F,{size:20}):(0,t.jsx)(q,{size:20,className:["ur-code-block__expand-icon",_&&"ur-code-block__expand-icon--expanded"].filter(Boolean).join(" ")})})),v.showCopyButton&&(u?(0,t.jsx)(u,{content:e}):(0,t.jsx)("button",{type:"button",onClick:P,className:"ur-code-block__action-button","aria-label":B?r.copied:r.copy,children:(0,t.jsx)(D,{size:20})})),H&&(f=m(o),k=`code.${f}`,A=d(f),b?(0,t.jsx)(b,{code:e,language:o??null,filename:k,mimeType:A}):(0,t.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation();let r=new Blob([e],{type:A}),n=URL.createObjectURL(r),a=document.createElement("a");a.href=n,a.download=k,a.click(),URL.revokeObjectURL(n)},className:"ur-code-block__action-button","aria-label":r.download??"Download",children:(0,t.jsx)(G,{size:20})}))]}),W=n.Chevron,V=I&&E&&!1!==v.showV2ToggleRow&&(y?(0,t.jsx)(y,{isExpanded:_,hiddenLineCount:C,onToggle:T}):(0,t.jsxs)("button",{type:"button",className:"ur-code-block__v2-toggle",onClick:O,"aria-label":_?r.collapse:r.expand(N),"aria-expanded":_,children:[W?(0,t.jsx)(W,{size:16,className:["ur-code-block__v2-chevron",_&&"ur-code-block__v2-chevron--expanded"].filter(Boolean).join(" ")}):(0,t.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:["ur-code-block__v2-chevron",_&&"ur-code-block__v2-chevron--expanded"].filter(Boolean).join(" "),children:(0,t.jsx)("polyline",{points:"6 9 12 15 18 9"})}),(0,t.jsx)("span",{className:"ur-code-block__v2-label",children:r.v2HiddenLines?.(C)??`${C} lines hidden`})]})),X=I?p?`ur-code-block--v2 ${p}`:"ur-code-block--v2":p;return(0,t.jsxs)(s,{language:o,variant:c,className:X,headerRight:U,children:[L&&!z&&!I&&(0,t.jsx)("div",{className:"ur-code-block__collapsed-message",onClick:j,children:r.collapsedLines?.(N)??`${N} hidden lines`}),(0,t.jsxs)("div",{className:S.className,style:S.style,onClick:j,onKeyDown:e=>{L&&z&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),M(!0))},role:L&&z?"button":void 0,tabIndex:L&&z?0:void 0,"aria-label":L&&z?r.expand(N):void 0,children:[(0,t.jsx)(x,{text:$,isStreaming:l}),S.showTeaserFade&&(0,t.jsx)("div",{className:"ur-code-block__teaser-fade","aria-hidden":"true"})]}),V]})}}let b=y({strings:{copy:"Copy",copied:"Copied!",copyFailed:"Failed to copy",expand:e=>`See all ${e} lines`,collapse:"Collapse"},icons:{Copy:function(e){let n,a,i,s=(0,r.c)(4),{size:o}=e,l=void 0===o?20:o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),a=(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"}),s[0]=n,s[1]=a):(n=s[0],a=s[1]),s[2]!==l?(i=(0,t.jsxs)("svg",{width:l,height:l,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n,a]}),s[2]=l,s[3]=i):i=s[3],i},Expand:function(e){let n,a,i,s=(0,r.c)(5),{size:o,className:l}=e,c=void 0===o?20:o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("polyline",{points:"7 13 12 18 17 13"}),a=(0,t.jsx)("polyline",{points:"7 6 12 11 17 6"}),s[0]=n,s[1]=a):(n=s[0],a=s[1]),s[2]!==l||s[3]!==c?(i=(0,t.jsxs)("svg",{width:c,height:c,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:l,children:[n,a]}),s[2]=l,s[3]=c,s[4]=i):i=s[4],i}},toast:{success:e=>console.log("[SUCCESS]",e),error:e=>console.error("[ERROR]",e)},MarkdownComponent:n.EctoMarkdown})},978511,e=>{"use strict";var t=e.i(830239),r=e.i(211961);function n(e){return e.replace(/[/\\?%*:|"<>]/g,"-").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").slice(0,100)}e.s(["downloadCodeFile",0,function({code:e,filename:t,mimeType:r}){let n=new Blob([e],{type:r}),a=URL.createObjectURL(n),i=document.createElement("a");i.href=a,i.download=t,i.click(),URL.revokeObjectURL(a)},"resolveCodeDownloadFilename",0,function({conversationTitle:e,defaultFilename:a,language:i,mimeType:s}){let o=function({defaultFilename:e,language:n,mimeType:a}){if(null!=e&&null!=a)return{defaultFilename:e,mimeType:a};let i=(0,r.extensionFromFilename)(e)??(0,t.getFileExtension)(n),s=a??("svg"===i?"image/svg+xml":(0,t.getMimeType)(i));return{defaultFilename:e??`code.${i}`,mimeType:s}}({defaultFilename:a,language:i,mimeType:s});if(null==e)return{filename:o.defaultFilename,mimeType:o.mimeType};let l=(0,r.extensionFromFilename)(o.defaultFilename);return{filename:null!=l?`${n(e)}.${l}`:n(e),mimeType:o.mimeType}},"sanitizeCodeDownloadFilename",0,n])},692608,e=>{"use strict";let t=(0,e.i(840387).createClientLogger)("applyArtifactReKey");e.s(["applyArtifactReKey",0,function(e,r,n){if(!r||!n)return;let a=e.get(r);a?(a.setValue(n,"uuid"),a.setValue("PRIVATE","visibility")):t.error({artifactRelayId:r,newArtifactUuid:n},"Artifact record not found on unshare re-key; re-keyed uuid not applied")}])}]); //# debugId=edc666eb-b012-a633-89ff-291ef8bfdc4a