@chunklib/agentic 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/README.md +16 -32
  2. package/bin/agentic.js +66 -64
  3. package/bin/cli/tui/worker.js +7 -3
  4. package/bin/web/assets/{LROKH5N7-Cgdi6ogL.js → LROKH5N7-CufzWEns.js} +2 -2
  5. package/bin/web/assets/ar-BwLzFtrk.js +8 -0
  6. package/bin/web/assets/ar-C3abecgF.js +2 -0
  7. package/bin/web/assets/az-CE5LLqzy.js +8 -0
  8. package/bin/web/assets/az-CTrkzoUY.js +2 -0
  9. package/bin/web/assets/br-C6eWgdLc.js +8 -0
  10. package/bin/web/assets/br-DPsjeLV1.js +2 -0
  11. package/bin/web/assets/bs-Bs-WieSp.js +2 -0
  12. package/bin/web/assets/bs-DXhZIkW2.js +8 -0
  13. package/bin/web/assets/da-CnHHIur0.js +8 -0
  14. package/bin/web/assets/da-DzYOPLp5.js +2 -0
  15. package/bin/web/assets/de-BJacEZDA.js +8 -0
  16. package/bin/web/assets/de-CAZZkD7r.js +2 -0
  17. package/bin/web/assets/{dialog-command-palette-v2-B41e0R0T.js → dialog-command-palette-v2-BdsfOt98.js} +2 -2
  18. package/bin/web/assets/dialog-connect-provider-cMnfONyq.js +2 -0
  19. package/bin/web/assets/{dialog-edit-project-ENsoKieS.js → dialog-edit-project-BTKo4L8c.js} +2 -2
  20. package/bin/web/assets/{dialog-edit-project-v2-TbsDREdW.js → dialog-edit-project-v2-BgxhNrB_.js} +2 -2
  21. package/bin/web/assets/{dialog-fork-CvXAqG0y.js → dialog-fork-DM2MD9h9.js} +2 -2
  22. package/bin/web/assets/{dialog-manage-models-Ca3CtDo1.js → dialog-manage-models-CZ-wSXas.js} +2 -2
  23. package/bin/web/assets/{dialog-select-directory-v2-DgRK6caR.js → dialog-select-directory-v2-BjsOiAsW.js} +2 -2
  24. package/bin/web/assets/{dialog-select-file-W4qjeG1v.js → dialog-select-file-DQfBi0lB.js} +3 -3
  25. package/bin/web/assets/{dialog-select-mcp-MpnNunKg.js → dialog-select-mcp-BAPSNwQR.js} +2 -2
  26. package/bin/web/assets/{dialog-settings-BWcr4izq.js → dialog-settings-DTc_Rfqx.js} +3 -3
  27. package/bin/web/assets/{edit-project-Br24T75k.js → edit-project-CuOMp3mF.js} +2 -2
  28. package/bin/web/assets/es-Bus963Aj.js +2 -0
  29. package/bin/web/assets/es-CoFvHMiq.js +8 -0
  30. package/bin/web/assets/fi-BxFpA3sy.js +2 -0
  31. package/bin/web/assets/fi-DNRVJEPq.js +8 -0
  32. package/bin/web/assets/fr-BSxYcqpM.js +2 -0
  33. package/bin/web/assets/fr-BUGMj6SW.js +8 -0
  34. package/bin/web/assets/{ghostty-web-D7Ty6Ejz.js → ghostty-web-BqSBMlIl.js} +2 -2
  35. package/bin/web/assets/hi-38BcxEkk.js +2 -0
  36. package/bin/web/assets/hi-CKPvfKWe.js +8 -0
  37. package/bin/web/assets/id-CIrwWmtd.js +8 -0
  38. package/bin/web/assets/id-CQavIbiH.js +2 -0
  39. package/bin/web/assets/index-B5UCYzgt.js +3 -0
  40. package/bin/web/assets/index-BH1J9J8E.js +1524 -0
  41. package/bin/web/assets/index-DoggtF0n.css +1 -0
  42. package/bin/web/assets/index-GGAIvKVQ.css +1 -0
  43. package/bin/web/assets/it-17NlHkKQ.js +8 -0
  44. package/bin/web/assets/it-BB46hSUz.js +2 -0
  45. package/bin/web/assets/ja-Cg62k4Hq.js +2 -0
  46. package/bin/web/assets/ja-DTzmMP0I.js +8 -0
  47. package/bin/web/assets/ko-BWAIIDYz.js +8 -0
  48. package/bin/web/assets/ko-k06DU9Nv.js +2 -0
  49. package/bin/web/assets/{list-Bgkj60uj.js → list-BK0ZBxm_.js} +2 -2
  50. package/bin/web/assets/markdown.worker-Bu_Dc9RP.js +503 -0
  51. package/bin/web/assets/mcp-CnUj_8Pe.js +2 -0
  52. package/bin/web/assets/{new-session-HkDD85pv.js → new-session-CexkpdBg.js} +3 -3
  53. package/bin/web/assets/nl-BWmwmMiu.js +2 -0
  54. package/bin/web/assets/nl-Cvn5nbPq.js +8 -0
  55. package/bin/web/assets/no-BxXcGy-n.js +8 -0
  56. package/bin/web/assets/no-DsRI2Z0y.js +2 -0
  57. package/bin/web/assets/pa-D7MCm8Kt.js +8 -0
  58. package/bin/web/assets/pa-W0ArODx2.js +2 -0
  59. package/bin/web/assets/pl-Bet_AQ8e.js +2 -0
  60. package/bin/web/assets/pl-WzVN3ybR.js +8 -0
  61. package/bin/web/assets/{row-DVVVLbFk.css → row-BjpwzvFU.css} +1 -1
  62. package/bin/web/assets/{row-cHDMR1XO.js → row-DgKhGiK9.js} +2 -2
  63. package/bin/web/assets/ru-CwmMfH4n.js +2 -0
  64. package/bin/web/assets/ru-DPS1hMlO.js +8 -0
  65. package/bin/web/assets/{settings-keybinds-DFbfIb2V.js → settings-keybinds-C8R--jLJ.js} +3 -3
  66. package/bin/web/assets/{sprite-Chb7ocDN.svg → sprite-B9ixRF_T.svg} +2 -27
  67. package/bin/web/assets/{status-popover-body-DNA3h-5H.js → status-popover-body-Jl0oR5U2.js} +3 -3
  68. package/bin/web/assets/sv-CNxtFx1x.js +2 -0
  69. package/bin/web/assets/sv-YsyKpECF.js +8 -0
  70. package/bin/web/assets/{switch-D8_cvKev.js → switch-BnUb38m8.js} +2 -2
  71. package/bin/web/assets/th-BM9lxrwF.js +8 -0
  72. package/bin/web/assets/th-VvW38onH.js +2 -0
  73. package/bin/web/assets/tr-BV9Bmn8X.js +2 -0
  74. package/bin/web/assets/tr-DBhHCAc2.js +8 -0
  75. package/bin/web/assets/uk-Bl62aPxY.js +8 -0
  76. package/bin/web/assets/uk-gpwOqShu.js +2 -0
  77. package/bin/web/assets/ur-BbDVKvlg.js +2 -0
  78. package/bin/web/assets/ur-nGv5wQGp.js +8 -0
  79. package/bin/web/assets/vi-DUs03mzm.js +8 -0
  80. package/bin/web/assets/vi-ac_kFMcG.js +2 -0
  81. package/bin/web/assets/zh-BDTj0-qK.js +8 -0
  82. package/bin/web/assets/zh-Db1rGmjT.js +2 -0
  83. package/bin/web/assets/zht-CTieoXNG.js +2 -0
  84. package/bin/web/assets/zht-CU7BHTWv.js +8 -0
  85. package/bin/web/index.html +2 -2
  86. package/docs/configuration.md +16 -32
  87. package/package.json +1 -1
  88. package/bin/web/assets/ar-C4xsRFR0.js +0 -2
  89. package/bin/web/assets/ar-D7_40HDV.js +0 -4
  90. package/bin/web/assets/br-CwfNwpqU.js +0 -4
  91. package/bin/web/assets/br-XyupthPW.js +0 -2
  92. package/bin/web/assets/bs-BW2PeAiy.js +0 -2
  93. package/bin/web/assets/bs-C9w8bnld.js +0 -4
  94. package/bin/web/assets/da-CgNNle9H.js +0 -2
  95. package/bin/web/assets/da-_o-yW1c-.js +0 -4
  96. package/bin/web/assets/de-CELw_bn8.js +0 -2
  97. package/bin/web/assets/de-u4ZRSSGs.js +0 -4
  98. package/bin/web/assets/dialog-connect-provider-B-kgBHKk.js +0 -2
  99. package/bin/web/assets/es-DCGlYCXN.js +0 -2
  100. package/bin/web/assets/es-pMkLqpGW.js +0 -4
  101. package/bin/web/assets/fr-Du5j-zoY.js +0 -2
  102. package/bin/web/assets/fr-Rs650oVj.js +0 -4
  103. package/bin/web/assets/index-B2L_xsSX.js +0 -1831
  104. package/bin/web/assets/index-CFMuAFJa.css +0 -1
  105. package/bin/web/assets/index-CZitxknW.css +0 -1
  106. package/bin/web/assets/index-D9JOa7-H.js +0 -3
  107. package/bin/web/assets/ja-iJh2cVB-.js +0 -2
  108. package/bin/web/assets/ja-mSoA7GSH.js +0 -4
  109. package/bin/web/assets/ko-C92hX257.js +0 -2
  110. package/bin/web/assets/ko-CtAd082Z.js +0 -4
  111. package/bin/web/assets/markdown-shiki.worker-sTYREXj-.js +0 -156
  112. package/bin/web/assets/mcp-C5TFvBHS.js +0 -2
  113. package/bin/web/assets/no-CQNbtNrq.js +0 -4
  114. package/bin/web/assets/no-CsX2bvW2.js +0 -2
  115. package/bin/web/assets/pl-BH_iOtUo.js +0 -4
  116. package/bin/web/assets/pl-U1SU7oID.js +0 -2
  117. package/bin/web/assets/ru-CkmmQ1_k.js +0 -2
  118. package/bin/web/assets/ru-Dj20Kckp.js +0 -4
  119. package/bin/web/assets/th-BWKOZ0j_.js +0 -2
  120. package/bin/web/assets/th-D0m3tYTd.js +0 -4
  121. package/bin/web/assets/tr-DFDOk0cA.js +0 -4
  122. package/bin/web/assets/tr-Ds4_hniB.js +0 -2
  123. package/bin/web/assets/uk-PaABnp9Y.js +0 -4
  124. package/bin/web/assets/uk-fqr0bcE9.js +0 -2
  125. package/bin/web/assets/zh-B268Sls8.js +0 -2
  126. package/bin/web/assets/zh-BSCC1HAl.js +0 -4
  127. package/bin/web/assets/zht-Br909_dL.js +0 -2
  128. package/bin/web/assets/zht-DKWnEJJ6.js +0 -4
@@ -0,0 +1,503 @@
1
+ class Ln{options;tokensStable=[];tokensUnstable=[];lastUnstableCodeChunk="";lastStableGrammarState;constructor(e){this.options=e}async enqueue(e){const t=(this.lastUnstableCodeChunk+e).split(`
2
+ `),n=[];let a=[];const i=this.tokensUnstable.length;return t.forEach((s,o)=>{const l=o===t.length-1,u=this.options.highlighter.codeToTokens(s,{...this.options,grammarState:this.lastStableGrammarState}),d=u.tokens[0];l||d.push({content:`
3
+ `,offset:0}),l?(a=d,this.lastUnstableCodeChunk=s):(this.lastStableGrammarState=u.grammarState,n.push(...d))}),this.tokensStable.push(...n),this.tokensUnstable=a,{recall:i,stable:n,unstable:a}}close(){const e=this.tokensUnstable;return this.tokensUnstable=[],this.lastUnstableCodeChunk="",this.lastStableGrammarState=void 0,{stable:e}}clear(){this.tokensStable=[],this.tokensUnstable=[],this.lastUnstableCodeChunk="",this.lastStableGrammarState=void 0}clone(){const e=new Ln(this.options);return e.lastUnstableCodeChunk=this.lastUnstableCodeChunk,e.tokensUnstable=this.tokensUnstable,e.tokensStable=this.tokensStable,e.lastStableGrammarState=this.lastStableGrammarState,e}}class v2 extends TransformStream{tokenizer;options;constructor(e){const t=new Ln(e),{allowRecalls:n=!1}=e;super({async transform(a,i){const{stable:s,unstable:o,recall:l}=await t.enqueue(a);n&&l>0&&i.enqueue({recall:l});for(const u of s)i.enqueue(u);if(n)for(const u of o)i.enqueue(u)},async flush(a){const{stable:i}=t.close();if(!n)for(const s of i)a.enqueue(s)}}),this.tokenizer=t,this.options=e}}class Ee{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new Ee(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class ze{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new ze(t,Ee.range(this,e))}}class _{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,a,i,s=t&&t.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=o.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+o.slice(a-15,a):u=o.slice(0,a);var d;i+15<o.length?d=o.slice(i,i+15)+"…":d=o.slice(i),n+=u+l+d}var m=new Error(n);return m.name="ParseError",m.__proto__=_.prototype,m.position=a,a!=null&&i!=null&&(m.length=i-a),m.rawMessage=e,m}}_.prototype.__proto__=Error.prototype;var Xu=function(e,t){return e===void 0?t:e},Ku=/([A-Z])/g,Yu=function(e){return e.replace(Ku,"-$1").toLowerCase()},Zu={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Qu=/[&><"']/g;function Ju(r){return String(r).replace(Qu,e=>Zu[e])}var to=function r(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?r(e.body[0]):e:e.type==="font"?r(e.body):e},ec=function(e){var t=to(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},tc=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},rc=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},K={deflt:Xu,escape:Ju,hyphenate:Yu,getBaseElem:to,isCharacterBox:ec,protocolFromUrl:rc},ln={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},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:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function nc(r){if(r.default)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class y0{constructor(e){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||{};for(var t in ln)if(ln.hasOwnProperty(t)){var n=ln[t];this[t]=e[t]!==void 0?n.processor?n.processor(e[t]):e[t]:nc(n)}}reportNonstrict(e,t,n){var a=this.strict;if(typeof a=="function"&&(a=a(e,t,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new _("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),n);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,n){var a=this.strict;if(typeof a=="function")try{a=a(e,t,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=K.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class bt{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Je[ac[this.id]]}sub(){return Je[ic[this.id]]}fracNum(){return Je[sc[this.id]]}fracDen(){return Je[oc[this.id]]}cramp(){return Je[lc[this.id]]}text(){return Je[uc[this.id]]}isTight(){return this.size>=2}}var b0=0,pn=1,ar=2,ct=3,Cr=4,Ge=5,or=6,Ce=7,Je=[new bt(b0,0,!1),new bt(pn,0,!0),new bt(ar,1,!1),new bt(ct,1,!0),new bt(Cr,2,!1),new bt(Ge,2,!0),new bt(or,3,!1),new bt(Ce,3,!0)],ac=[Cr,Ge,Cr,Ge,or,Ce,or,Ce],ic=[Ge,Ge,Ge,Ge,Ce,Ce,Ce,Ce],sc=[ar,ct,Cr,Ge,or,Ce,or,Ce],oc=[ct,ct,Ge,Ge,Ce,Ce,Ce,Ce],lc=[pn,pn,ct,ct,Ge,Ge,Ce,Ce],uc=[b0,pn,ar,ct,ar,ct,ar,ct],G={DISPLAY:Je[b0],TEXT:Je[ar],SCRIPT:Je[Cr],SCRIPTSCRIPT:Je[or]},Ga=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function cc(r){for(var e=0;e<Ga.length;e++)for(var t=Ga[e],n=0;n<t.blocks.length;n++){var a=t.blocks[n];if(r>=a[0]&&r<=a[1])return t.name}return null}var un=[];Ga.forEach(r=>r.blocks.forEach(e=>un.push(...e)));function ro(r){for(var e=0;e<un.length;e+=2)if(r>=un[e]&&r<=un[e+1])return!0;return!1}var Qt=80,hc=function(e,t){return"M95,"+(622+e+t)+`
4
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
5
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
6
+ c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
7
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
8
+ c69,-144,104.5,-217.7,106.5,-221
9
+ l`+e/2.075+" -"+e+`
10
+ c5.3,-9.3,12,-14,20,-14
11
+ H400000v`+(40+e)+`H845.2724
12
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
13
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
14
+ M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},dc=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119
15
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
16
+ c340,-704.7,510.7,-1060.3,512,-1067
17
+ l`+e/2.084+" -"+e+`
18
+ c4.7,-7.3,11,-11,19,-11
19
+ H40000v`+(40+e)+`H1012.3
20
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
21
+ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
22
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
23
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
24
+ M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},mc=function(e,t){return"M983 "+(10+e+t)+`
25
+ l`+e/3.13+" -"+e+`
26
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
27
+ H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
28
+ s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
29
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
30
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
31
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
32
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
33
+ M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},pc=function(e,t){return"M424,"+(2398+e+t)+`
34
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
35
+ c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
36
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
37
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
38
+ l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
39
+ v`+(40+e)+`H1014.6
40
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
41
+ c-2,6,-10,9,-24,9
42
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+`
43
+ h400000v`+(40+e)+"h-400000z"},fc=function(e,t){return"M473,"+(2713+e+t)+`
44
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
45
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
46
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
47
+ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
48
+ c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
49
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
50
+ 606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},gc=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},vc=function(e,t,n){var a=n-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+`
51
+ H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
52
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
53
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
54
+ 219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},yc=function(e,t,n){t=1e3*t;var a="";switch(e){case"sqrtMain":a=hc(t,Qt);break;case"sqrtSize1":a=dc(t,Qt);break;case"sqrtSize2":a=mc(t,Qt);break;case"sqrtSize3":a=pc(t,Qt);break;case"sqrtSize4":a=fc(t,Qt);break;case"sqrtTall":a=vc(t,Qt,n)}return a},bc=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""}},gi={doubleleftarrow:`M262 157
55
+ l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
56
+ 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
57
+ 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
58
+ c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
59
+ 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
60
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
61
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
62
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
63
+ -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
64
+ 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
65
+ -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
66
+ -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
67
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
68
+ c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
69
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
70
+ 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
71
+ -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
72
+ c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
73
+ 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
74
+ 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
75
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
76
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
77
+ 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
78
+ 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
79
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
80
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
81
+ H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
82
+ 435 0h399565z`,leftgroupunder:`M400000 262
83
+ H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
84
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
85
+ -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
86
+ -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
87
+ -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
88
+ 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
89
+ -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
90
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
91
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
92
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
93
+ 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
94
+ -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
95
+ 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
96
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
97
+ v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
98
+ -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
99
+ -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
100
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
101
+ M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
102
+ M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
103
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
104
+ c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
105
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
106
+ M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
107
+ c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
108
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
109
+ 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
110
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
111
+ c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
112
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
113
+ 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
114
+ -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
115
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
116
+ m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
117
+ 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
118
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
119
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
120
+ c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
121
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
122
+ m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
123
+ 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
124
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
125
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
126
+ c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
127
+ -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
128
+ 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
129
+ 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
130
+ -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
131
+ -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
132
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
133
+ -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
134
+ s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
135
+ c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
136
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
137
+ -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
138
+ 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
139
+ 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
140
+ -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
141
+ -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
142
+ 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
143
+ -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
144
+ 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
145
+ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
146
+ 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
147
+ -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
148
+ -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
149
+ 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
150
+ 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
151
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
152
+ m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
153
+ 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
154
+ -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
155
+ 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
156
+ M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
157
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
158
+ -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
159
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
160
+ 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
161
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
162
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
163
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
164
+ 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
165
+ c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
166
+ 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
167
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
168
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
169
+ 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
170
+ -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
171
+ 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
172
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
173
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
174
+ -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
175
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
176
+ c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
177
+ 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
178
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
179
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
180
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
181
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
182
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
183
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
184
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
185
+ -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
186
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
187
+ 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
188
+ -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
189
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
190
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
191
+ c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
192
+ c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
193
+ -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
194
+ -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
195
+ -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,
196
+ -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,
197
+ -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,
198
+ -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,
199
+ -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
200
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
201
+ c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
202
+ s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
203
+ 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
204
+ s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
205
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
206
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
207
+ -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
208
+ 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
209
+ -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
210
+ -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
211
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
212
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
213
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
214
+ c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
215
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
216
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
217
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
218
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
219
+ -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
220
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
221
+ M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
222
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
223
+ 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
224
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
225
+ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
226
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
227
+ -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
228
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
229
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},wc=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84
230
+ H403z 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
231
+ M347 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
232
+ c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
233
+ c-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
234
+ c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
235
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
236
+ M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
237
+ c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
238
+ c-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
239
+ MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z
240
+ MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z
241
+ M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z
242
+ M347 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
243
+ c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
244
+ -36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
245
+ 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
246
+ c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
247
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
248
+ l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
249
+ -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,
250
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
251
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
252
+ c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
253
+ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
254
+ c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
255
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
256
+ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
257
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Ir{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;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){var e=t=>t.toText();return this.children.map(e).join("")}}var et={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Hr={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]},vi={Å:"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 xc(r,e){et[r]=e}function w0(r,e,t){if(!et[e])throw new Error("Font metrics not found for font: "+e+".");var n=r.charCodeAt(0),a=et[e][n];if(!a&&r[0]in vi&&(n=vi[r[0]].charCodeAt(0),a=et[e][n]),!a&&t==="text"&&ro(n)&&(a=et[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var oa={};function kc(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!oa[e]){var t=oa[e]={cssEmPerMu:Hr.quad[e]/18};for(var n in Hr)Hr.hasOwnProperty(n)&&(t[n]=Hr[n][e])}return oa[e]}var Sc=[[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]],yi=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],bi=function(e,t){return t.size<2?e:Sc[e-1][t.size-1]};class lt{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||lt.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=yi[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 n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return new lt(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:bi(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:yi[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=bi(lt.BASESIZE,e);return this.size===t&&this.textSize===lt.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!==lt.BASESIZE?["sizing","reset-size"+this.size,"size"+lt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=kc(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}lt.BASESIZE=6;var Fa={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Cc={ex:!0,em:!0,mu:!0},no=function(e){return typeof e!="string"&&(e=e.unit),e in Fa||e in Cc||e==="ex"},ie=function(e,t){var n;if(e.unit in Fa)n=Fa[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")n=t.fontMetrics().cssEmPerMu;else{var a;if(t.style.isTight()?a=t.havingStyle(t.style.text()):a=t,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new _("Invalid unit: '"+e.unit+"'");a!==t&&(n*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},I=function(e){return+e.toFixed(4)+"em"},Tt=function(e){return e.filter(t=>t).join(" ")},ao=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var a=t.getColor();a&&(this.style.color=a)}},io=function(e){var t=document.createElement(e);t.className=Tt(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&t.setAttribute(a,this.attributes[a]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t},Ac=/[\s"'>/=\x00-\x1f]/,so=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+K.escape(Tt(this.classes))+'"');var n="";for(var a in this.style)this.style.hasOwnProperty(a)&&(n+=K.hyphenate(a)+":"+this.style[a]+";");n&&(t+=' style="'+K.escape(n)+'"');for(var i in this.attributes)if(this.attributes.hasOwnProperty(i)){if(Ac.test(i))throw new _("Invalid attribute name '"+i+"'");t+=" "+i+'="'+K.escape(this.attributes[i])+'"'}t+=">";for(var s=0;s<this.children.length;s++)t+=this.children[s].toMarkup();return t+="</"+e+">",t};class Lr{constructor(e,t,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ao.call(this,e,n,a),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return io.call(this,"span")}toMarkup(){return so.call(this,"span")}}class x0{constructor(e,t,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ao.call(this,t,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return io.call(this,"a")}toMarkup(){return so.call(this,"a")}}class Tc{constructor(e,t,n){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=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+K.escape(this.src)+'"'+(' alt="'+K.escape(this.alt)+'"'),t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=K.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+K.escape(t)+'"'),e+="'/>",e}}var Mc={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class qe{constructor(e,t,n,a,i,s,o,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=s||0,this.classes=o||[],this.style=l||{},this.maxFontSize=0;var u=cc(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Mc[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=I(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=Tt(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(t=t||document.createElement("span"),t.style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=K.escape(Tt(this.classes)),t+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var a in this.style)this.style.hasOwnProperty(a)&&(n+=K.hyphenate(a)+":"+this.style[a]+";");n&&(e=!0,t+=' style="'+K.escape(n)+'"');var i=K.escape(this.text);return e?(t+=">",t+=i,t+="</span>",t):i}}class mt{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+K.escape(this.attributes[t])+'"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}}class Mt{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"path");return this.alternate?t.setAttribute("d",this.alternate):t.setAttribute("d",gi[this.pathName]),t}toMarkup(){return this.alternate?'<path d="'+K.escape(this.alternate)+'"/>':'<path d="'+K.escape(gi[this.pathName])+'"/>'}}class qa{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);return t}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+K.escape(this.attributes[t])+'"');return e+="/>",e}}function wi(r){if(r instanceof qe)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function Ec(r){if(r instanceof Lr)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var Rc={bin:1,close:1,inner:1,open:1,punct:1,rel:1},_c={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},te={math:{},text:{}};function c(r,e,t,n,a,i){te[r][a]={font:e,group:t,replace:n},i&&n&&(te[r][n]=te[r][a])}var h="math",E="text",p="main",b="ams",ne="accent-token",B="bin",Te="close",ur="inner",O="mathord",he="op-token",$e="open",zn="punct",w="rel",gt="spacing",x="textord";c(h,p,w,"≡","\\equiv",!0);c(h,p,w,"≺","\\prec",!0);c(h,p,w,"≻","\\succ",!0);c(h,p,w,"∼","\\sim",!0);c(h,p,w,"⊥","\\perp");c(h,p,w,"⪯","\\preceq",!0);c(h,p,w,"⪰","\\succeq",!0);c(h,p,w,"≃","\\simeq",!0);c(h,p,w,"∣","\\mid",!0);c(h,p,w,"≪","\\ll",!0);c(h,p,w,"≫","\\gg",!0);c(h,p,w,"≍","\\asymp",!0);c(h,p,w,"∥","\\parallel");c(h,p,w,"⋈","\\bowtie",!0);c(h,p,w,"⌣","\\smile",!0);c(h,p,w,"⊑","\\sqsubseteq",!0);c(h,p,w,"⊒","\\sqsupseteq",!0);c(h,p,w,"≐","\\doteq",!0);c(h,p,w,"⌢","\\frown",!0);c(h,p,w,"∋","\\ni",!0);c(h,p,w,"∝","\\propto",!0);c(h,p,w,"⊢","\\vdash",!0);c(h,p,w,"⊣","\\dashv",!0);c(h,p,w,"∋","\\owns");c(h,p,zn,".","\\ldotp");c(h,p,zn,"⋅","\\cdotp");c(h,p,x,"#","\\#");c(E,p,x,"#","\\#");c(h,p,x,"&","\\&");c(E,p,x,"&","\\&");c(h,p,x,"ℵ","\\aleph",!0);c(h,p,x,"∀","\\forall",!0);c(h,p,x,"ℏ","\\hbar",!0);c(h,p,x,"∃","\\exists",!0);c(h,p,x,"∇","\\nabla",!0);c(h,p,x,"♭","\\flat",!0);c(h,p,x,"ℓ","\\ell",!0);c(h,p,x,"♮","\\natural",!0);c(h,p,x,"♣","\\clubsuit",!0);c(h,p,x,"℘","\\wp",!0);c(h,p,x,"♯","\\sharp",!0);c(h,p,x,"♢","\\diamondsuit",!0);c(h,p,x,"ℜ","\\Re",!0);c(h,p,x,"♡","\\heartsuit",!0);c(h,p,x,"ℑ","\\Im",!0);c(h,p,x,"♠","\\spadesuit",!0);c(h,p,x,"§","\\S",!0);c(E,p,x,"§","\\S");c(h,p,x,"¶","\\P",!0);c(E,p,x,"¶","\\P");c(h,p,x,"†","\\dag");c(E,p,x,"†","\\dag");c(E,p,x,"†","\\textdagger");c(h,p,x,"‡","\\ddag");c(E,p,x,"‡","\\ddag");c(E,p,x,"‡","\\textdaggerdbl");c(h,p,Te,"⎱","\\rmoustache",!0);c(h,p,$e,"⎰","\\lmoustache",!0);c(h,p,Te,"⟯","\\rgroup",!0);c(h,p,$e,"⟮","\\lgroup",!0);c(h,p,B,"∓","\\mp",!0);c(h,p,B,"⊖","\\ominus",!0);c(h,p,B,"⊎","\\uplus",!0);c(h,p,B,"⊓","\\sqcap",!0);c(h,p,B,"∗","\\ast");c(h,p,B,"⊔","\\sqcup",!0);c(h,p,B,"◯","\\bigcirc",!0);c(h,p,B,"∙","\\bullet",!0);c(h,p,B,"‡","\\ddagger");c(h,p,B,"≀","\\wr",!0);c(h,p,B,"⨿","\\amalg");c(h,p,B,"&","\\And");c(h,p,w,"⟵","\\longleftarrow",!0);c(h,p,w,"⇐","\\Leftarrow",!0);c(h,p,w,"⟸","\\Longleftarrow",!0);c(h,p,w,"⟶","\\longrightarrow",!0);c(h,p,w,"⇒","\\Rightarrow",!0);c(h,p,w,"⟹","\\Longrightarrow",!0);c(h,p,w,"↔","\\leftrightarrow",!0);c(h,p,w,"⟷","\\longleftrightarrow",!0);c(h,p,w,"⇔","\\Leftrightarrow",!0);c(h,p,w,"⟺","\\Longleftrightarrow",!0);c(h,p,w,"↦","\\mapsto",!0);c(h,p,w,"⟼","\\longmapsto",!0);c(h,p,w,"↗","\\nearrow",!0);c(h,p,w,"↩","\\hookleftarrow",!0);c(h,p,w,"↪","\\hookrightarrow",!0);c(h,p,w,"↘","\\searrow",!0);c(h,p,w,"↼","\\leftharpoonup",!0);c(h,p,w,"⇀","\\rightharpoonup",!0);c(h,p,w,"↙","\\swarrow",!0);c(h,p,w,"↽","\\leftharpoondown",!0);c(h,p,w,"⇁","\\rightharpoondown",!0);c(h,p,w,"↖","\\nwarrow",!0);c(h,p,w,"⇌","\\rightleftharpoons",!0);c(h,b,w,"≮","\\nless",!0);c(h,b,w,"","\\@nleqslant");c(h,b,w,"","\\@nleqq");c(h,b,w,"⪇","\\lneq",!0);c(h,b,w,"≨","\\lneqq",!0);c(h,b,w,"","\\@lvertneqq");c(h,b,w,"⋦","\\lnsim",!0);c(h,b,w,"⪉","\\lnapprox",!0);c(h,b,w,"⊀","\\nprec",!0);c(h,b,w,"⋠","\\npreceq",!0);c(h,b,w,"⋨","\\precnsim",!0);c(h,b,w,"⪹","\\precnapprox",!0);c(h,b,w,"≁","\\nsim",!0);c(h,b,w,"","\\@nshortmid");c(h,b,w,"∤","\\nmid",!0);c(h,b,w,"⊬","\\nvdash",!0);c(h,b,w,"⊭","\\nvDash",!0);c(h,b,w,"⋪","\\ntriangleleft");c(h,b,w,"⋬","\\ntrianglelefteq",!0);c(h,b,w,"⊊","\\subsetneq",!0);c(h,b,w,"","\\@varsubsetneq");c(h,b,w,"⫋","\\subsetneqq",!0);c(h,b,w,"","\\@varsubsetneqq");c(h,b,w,"≯","\\ngtr",!0);c(h,b,w,"","\\@ngeqslant");c(h,b,w,"","\\@ngeqq");c(h,b,w,"⪈","\\gneq",!0);c(h,b,w,"≩","\\gneqq",!0);c(h,b,w,"","\\@gvertneqq");c(h,b,w,"⋧","\\gnsim",!0);c(h,b,w,"⪊","\\gnapprox",!0);c(h,b,w,"⊁","\\nsucc",!0);c(h,b,w,"⋡","\\nsucceq",!0);c(h,b,w,"⋩","\\succnsim",!0);c(h,b,w,"⪺","\\succnapprox",!0);c(h,b,w,"≆","\\ncong",!0);c(h,b,w,"","\\@nshortparallel");c(h,b,w,"∦","\\nparallel",!0);c(h,b,w,"⊯","\\nVDash",!0);c(h,b,w,"⋫","\\ntriangleright");c(h,b,w,"⋭","\\ntrianglerighteq",!0);c(h,b,w,"","\\@nsupseteqq");c(h,b,w,"⊋","\\supsetneq",!0);c(h,b,w,"","\\@varsupsetneq");c(h,b,w,"⫌","\\supsetneqq",!0);c(h,b,w,"","\\@varsupsetneqq");c(h,b,w,"⊮","\\nVdash",!0);c(h,b,w,"⪵","\\precneqq",!0);c(h,b,w,"⪶","\\succneqq",!0);c(h,b,w,"","\\@nsubseteqq");c(h,b,B,"⊴","\\unlhd");c(h,b,B,"⊵","\\unrhd");c(h,b,w,"↚","\\nleftarrow",!0);c(h,b,w,"↛","\\nrightarrow",!0);c(h,b,w,"⇍","\\nLeftarrow",!0);c(h,b,w,"⇏","\\nRightarrow",!0);c(h,b,w,"↮","\\nleftrightarrow",!0);c(h,b,w,"⇎","\\nLeftrightarrow",!0);c(h,b,w,"△","\\vartriangle");c(h,b,x,"ℏ","\\hslash");c(h,b,x,"▽","\\triangledown");c(h,b,x,"◊","\\lozenge");c(h,b,x,"Ⓢ","\\circledS");c(h,b,x,"®","\\circledR");c(E,b,x,"®","\\circledR");c(h,b,x,"∡","\\measuredangle",!0);c(h,b,x,"∄","\\nexists");c(h,b,x,"℧","\\mho");c(h,b,x,"Ⅎ","\\Finv",!0);c(h,b,x,"⅁","\\Game",!0);c(h,b,x,"‵","\\backprime");c(h,b,x,"▲","\\blacktriangle");c(h,b,x,"▼","\\blacktriangledown");c(h,b,x,"■","\\blacksquare");c(h,b,x,"⧫","\\blacklozenge");c(h,b,x,"★","\\bigstar");c(h,b,x,"∢","\\sphericalangle",!0);c(h,b,x,"∁","\\complement",!0);c(h,b,x,"ð","\\eth",!0);c(E,p,x,"ð","ð");c(h,b,x,"╱","\\diagup");c(h,b,x,"╲","\\diagdown");c(h,b,x,"□","\\square");c(h,b,x,"□","\\Box");c(h,b,x,"◊","\\Diamond");c(h,b,x,"¥","\\yen",!0);c(E,b,x,"¥","\\yen",!0);c(h,b,x,"✓","\\checkmark",!0);c(E,b,x,"✓","\\checkmark");c(h,b,x,"ℶ","\\beth",!0);c(h,b,x,"ℸ","\\daleth",!0);c(h,b,x,"ℷ","\\gimel",!0);c(h,b,x,"ϝ","\\digamma",!0);c(h,b,x,"ϰ","\\varkappa");c(h,b,$e,"┌","\\@ulcorner",!0);c(h,b,Te,"┐","\\@urcorner",!0);c(h,b,$e,"└","\\@llcorner",!0);c(h,b,Te,"┘","\\@lrcorner",!0);c(h,b,w,"≦","\\leqq",!0);c(h,b,w,"⩽","\\leqslant",!0);c(h,b,w,"⪕","\\eqslantless",!0);c(h,b,w,"≲","\\lesssim",!0);c(h,b,w,"⪅","\\lessapprox",!0);c(h,b,w,"≊","\\approxeq",!0);c(h,b,B,"⋖","\\lessdot");c(h,b,w,"⋘","\\lll",!0);c(h,b,w,"≶","\\lessgtr",!0);c(h,b,w,"⋚","\\lesseqgtr",!0);c(h,b,w,"⪋","\\lesseqqgtr",!0);c(h,b,w,"≑","\\doteqdot");c(h,b,w,"≓","\\risingdotseq",!0);c(h,b,w,"≒","\\fallingdotseq",!0);c(h,b,w,"∽","\\backsim",!0);c(h,b,w,"⋍","\\backsimeq",!0);c(h,b,w,"⫅","\\subseteqq",!0);c(h,b,w,"⋐","\\Subset",!0);c(h,b,w,"⊏","\\sqsubset",!0);c(h,b,w,"≼","\\preccurlyeq",!0);c(h,b,w,"⋞","\\curlyeqprec",!0);c(h,b,w,"≾","\\precsim",!0);c(h,b,w,"⪷","\\precapprox",!0);c(h,b,w,"⊲","\\vartriangleleft");c(h,b,w,"⊴","\\trianglelefteq");c(h,b,w,"⊨","\\vDash",!0);c(h,b,w,"⊪","\\Vvdash",!0);c(h,b,w,"⌣","\\smallsmile");c(h,b,w,"⌢","\\smallfrown");c(h,b,w,"≏","\\bumpeq",!0);c(h,b,w,"≎","\\Bumpeq",!0);c(h,b,w,"≧","\\geqq",!0);c(h,b,w,"⩾","\\geqslant",!0);c(h,b,w,"⪖","\\eqslantgtr",!0);c(h,b,w,"≳","\\gtrsim",!0);c(h,b,w,"⪆","\\gtrapprox",!0);c(h,b,B,"⋗","\\gtrdot");c(h,b,w,"⋙","\\ggg",!0);c(h,b,w,"≷","\\gtrless",!0);c(h,b,w,"⋛","\\gtreqless",!0);c(h,b,w,"⪌","\\gtreqqless",!0);c(h,b,w,"≖","\\eqcirc",!0);c(h,b,w,"≗","\\circeq",!0);c(h,b,w,"≜","\\triangleq",!0);c(h,b,w,"∼","\\thicksim");c(h,b,w,"≈","\\thickapprox");c(h,b,w,"⫆","\\supseteqq",!0);c(h,b,w,"⋑","\\Supset",!0);c(h,b,w,"⊐","\\sqsupset",!0);c(h,b,w,"≽","\\succcurlyeq",!0);c(h,b,w,"⋟","\\curlyeqsucc",!0);c(h,b,w,"≿","\\succsim",!0);c(h,b,w,"⪸","\\succapprox",!0);c(h,b,w,"⊳","\\vartriangleright");c(h,b,w,"⊵","\\trianglerighteq");c(h,b,w,"⊩","\\Vdash",!0);c(h,b,w,"∣","\\shortmid");c(h,b,w,"∥","\\shortparallel");c(h,b,w,"≬","\\between",!0);c(h,b,w,"⋔","\\pitchfork",!0);c(h,b,w,"∝","\\varpropto");c(h,b,w,"◀","\\blacktriangleleft");c(h,b,w,"∴","\\therefore",!0);c(h,b,w,"∍","\\backepsilon");c(h,b,w,"▶","\\blacktriangleright");c(h,b,w,"∵","\\because",!0);c(h,b,w,"⋘","\\llless");c(h,b,w,"⋙","\\gggtr");c(h,b,B,"⊲","\\lhd");c(h,b,B,"⊳","\\rhd");c(h,b,w,"≂","\\eqsim",!0);c(h,p,w,"⋈","\\Join");c(h,b,w,"≑","\\Doteq",!0);c(h,b,B,"∔","\\dotplus",!0);c(h,b,B,"∖","\\smallsetminus");c(h,b,B,"⋒","\\Cap",!0);c(h,b,B,"⋓","\\Cup",!0);c(h,b,B,"⩞","\\doublebarwedge",!0);c(h,b,B,"⊟","\\boxminus",!0);c(h,b,B,"⊞","\\boxplus",!0);c(h,b,B,"⋇","\\divideontimes",!0);c(h,b,B,"⋉","\\ltimes",!0);c(h,b,B,"⋊","\\rtimes",!0);c(h,b,B,"⋋","\\leftthreetimes",!0);c(h,b,B,"⋌","\\rightthreetimes",!0);c(h,b,B,"⋏","\\curlywedge",!0);c(h,b,B,"⋎","\\curlyvee",!0);c(h,b,B,"⊝","\\circleddash",!0);c(h,b,B,"⊛","\\circledast",!0);c(h,b,B,"⋅","\\centerdot");c(h,b,B,"⊺","\\intercal",!0);c(h,b,B,"⋒","\\doublecap");c(h,b,B,"⋓","\\doublecup");c(h,b,B,"⊠","\\boxtimes",!0);c(h,b,w,"⇢","\\dashrightarrow",!0);c(h,b,w,"⇠","\\dashleftarrow",!0);c(h,b,w,"⇇","\\leftleftarrows",!0);c(h,b,w,"⇆","\\leftrightarrows",!0);c(h,b,w,"⇚","\\Lleftarrow",!0);c(h,b,w,"↞","\\twoheadleftarrow",!0);c(h,b,w,"↢","\\leftarrowtail",!0);c(h,b,w,"↫","\\looparrowleft",!0);c(h,b,w,"⇋","\\leftrightharpoons",!0);c(h,b,w,"↶","\\curvearrowleft",!0);c(h,b,w,"↺","\\circlearrowleft",!0);c(h,b,w,"↰","\\Lsh",!0);c(h,b,w,"⇈","\\upuparrows",!0);c(h,b,w,"↿","\\upharpoonleft",!0);c(h,b,w,"⇃","\\downharpoonleft",!0);c(h,p,w,"⊶","\\origof",!0);c(h,p,w,"⊷","\\imageof",!0);c(h,b,w,"⊸","\\multimap",!0);c(h,b,w,"↭","\\leftrightsquigarrow",!0);c(h,b,w,"⇉","\\rightrightarrows",!0);c(h,b,w,"⇄","\\rightleftarrows",!0);c(h,b,w,"↠","\\twoheadrightarrow",!0);c(h,b,w,"↣","\\rightarrowtail",!0);c(h,b,w,"↬","\\looparrowright",!0);c(h,b,w,"↷","\\curvearrowright",!0);c(h,b,w,"↻","\\circlearrowright",!0);c(h,b,w,"↱","\\Rsh",!0);c(h,b,w,"⇊","\\downdownarrows",!0);c(h,b,w,"↾","\\upharpoonright",!0);c(h,b,w,"⇂","\\downharpoonright",!0);c(h,b,w,"⇝","\\rightsquigarrow",!0);c(h,b,w,"⇝","\\leadsto");c(h,b,w,"⇛","\\Rrightarrow",!0);c(h,b,w,"↾","\\restriction");c(h,p,x,"‘","`");c(h,p,x,"$","\\$");c(E,p,x,"$","\\$");c(E,p,x,"$","\\textdollar");c(h,p,x,"%","\\%");c(E,p,x,"%","\\%");c(h,p,x,"_","\\_");c(E,p,x,"_","\\_");c(E,p,x,"_","\\textunderscore");c(h,p,x,"∠","\\angle",!0);c(h,p,x,"∞","\\infty",!0);c(h,p,x,"′","\\prime");c(h,p,x,"△","\\triangle");c(h,p,x,"Γ","\\Gamma",!0);c(h,p,x,"Δ","\\Delta",!0);c(h,p,x,"Θ","\\Theta",!0);c(h,p,x,"Λ","\\Lambda",!0);c(h,p,x,"Ξ","\\Xi",!0);c(h,p,x,"Π","\\Pi",!0);c(h,p,x,"Σ","\\Sigma",!0);c(h,p,x,"Υ","\\Upsilon",!0);c(h,p,x,"Φ","\\Phi",!0);c(h,p,x,"Ψ","\\Psi",!0);c(h,p,x,"Ω","\\Omega",!0);c(h,p,x,"A","Α");c(h,p,x,"B","Β");c(h,p,x,"E","Ε");c(h,p,x,"Z","Ζ");c(h,p,x,"H","Η");c(h,p,x,"I","Ι");c(h,p,x,"K","Κ");c(h,p,x,"M","Μ");c(h,p,x,"N","Ν");c(h,p,x,"O","Ο");c(h,p,x,"P","Ρ");c(h,p,x,"T","Τ");c(h,p,x,"X","Χ");c(h,p,x,"¬","\\neg",!0);c(h,p,x,"¬","\\lnot");c(h,p,x,"⊤","\\top");c(h,p,x,"⊥","\\bot");c(h,p,x,"∅","\\emptyset");c(h,b,x,"∅","\\varnothing");c(h,p,O,"α","\\alpha",!0);c(h,p,O,"β","\\beta",!0);c(h,p,O,"γ","\\gamma",!0);c(h,p,O,"δ","\\delta",!0);c(h,p,O,"ϵ","\\epsilon",!0);c(h,p,O,"ζ","\\zeta",!0);c(h,p,O,"η","\\eta",!0);c(h,p,O,"θ","\\theta",!0);c(h,p,O,"ι","\\iota",!0);c(h,p,O,"κ","\\kappa",!0);c(h,p,O,"λ","\\lambda",!0);c(h,p,O,"μ","\\mu",!0);c(h,p,O,"ν","\\nu",!0);c(h,p,O,"ξ","\\xi",!0);c(h,p,O,"ο","\\omicron",!0);c(h,p,O,"π","\\pi",!0);c(h,p,O,"ρ","\\rho",!0);c(h,p,O,"σ","\\sigma",!0);c(h,p,O,"τ","\\tau",!0);c(h,p,O,"υ","\\upsilon",!0);c(h,p,O,"ϕ","\\phi",!0);c(h,p,O,"χ","\\chi",!0);c(h,p,O,"ψ","\\psi",!0);c(h,p,O,"ω","\\omega",!0);c(h,p,O,"ε","\\varepsilon",!0);c(h,p,O,"ϑ","\\vartheta",!0);c(h,p,O,"ϖ","\\varpi",!0);c(h,p,O,"ϱ","\\varrho",!0);c(h,p,O,"ς","\\varsigma",!0);c(h,p,O,"φ","\\varphi",!0);c(h,p,B,"∗","*",!0);c(h,p,B,"+","+");c(h,p,B,"−","-",!0);c(h,p,B,"⋅","\\cdot",!0);c(h,p,B,"∘","\\circ",!0);c(h,p,B,"÷","\\div",!0);c(h,p,B,"±","\\pm",!0);c(h,p,B,"×","\\times",!0);c(h,p,B,"∩","\\cap",!0);c(h,p,B,"∪","\\cup",!0);c(h,p,B,"∖","\\setminus",!0);c(h,p,B,"∧","\\land");c(h,p,B,"∨","\\lor");c(h,p,B,"∧","\\wedge",!0);c(h,p,B,"∨","\\vee",!0);c(h,p,x,"√","\\surd");c(h,p,$e,"⟨","\\langle",!0);c(h,p,$e,"∣","\\lvert");c(h,p,$e,"∥","\\lVert");c(h,p,Te,"?","?");c(h,p,Te,"!","!");c(h,p,Te,"⟩","\\rangle",!0);c(h,p,Te,"∣","\\rvert");c(h,p,Te,"∥","\\rVert");c(h,p,w,"=","=");c(h,p,w,":",":");c(h,p,w,"≈","\\approx",!0);c(h,p,w,"≅","\\cong",!0);c(h,p,w,"≥","\\ge");c(h,p,w,"≥","\\geq",!0);c(h,p,w,"←","\\gets");c(h,p,w,">","\\gt",!0);c(h,p,w,"∈","\\in",!0);c(h,p,w,"","\\@not");c(h,p,w,"⊂","\\subset",!0);c(h,p,w,"⊃","\\supset",!0);c(h,p,w,"⊆","\\subseteq",!0);c(h,p,w,"⊇","\\supseteq",!0);c(h,b,w,"⊈","\\nsubseteq",!0);c(h,b,w,"⊉","\\nsupseteq",!0);c(h,p,w,"⊨","\\models");c(h,p,w,"←","\\leftarrow",!0);c(h,p,w,"≤","\\le");c(h,p,w,"≤","\\leq",!0);c(h,p,w,"<","\\lt",!0);c(h,p,w,"→","\\rightarrow",!0);c(h,p,w,"→","\\to");c(h,b,w,"≱","\\ngeq",!0);c(h,b,w,"≰","\\nleq",!0);c(h,p,gt," ","\\ ");c(h,p,gt," ","\\space");c(h,p,gt," ","\\nobreakspace");c(E,p,gt," ","\\ ");c(E,p,gt," "," ");c(E,p,gt," ","\\space");c(E,p,gt," ","\\nobreakspace");c(h,p,gt,null,"\\nobreak");c(h,p,gt,null,"\\allowbreak");c(h,p,zn,",",",");c(h,p,zn,";",";");c(h,b,B,"⊼","\\barwedge",!0);c(h,b,B,"⊻","\\veebar",!0);c(h,p,B,"⊙","\\odot",!0);c(h,p,B,"⊕","\\oplus",!0);c(h,p,B,"⊗","\\otimes",!0);c(h,p,x,"∂","\\partial",!0);c(h,p,B,"⊘","\\oslash",!0);c(h,b,B,"⊚","\\circledcirc",!0);c(h,b,B,"⊡","\\boxdot",!0);c(h,p,B,"△","\\bigtriangleup");c(h,p,B,"▽","\\bigtriangledown");c(h,p,B,"†","\\dagger");c(h,p,B,"⋄","\\diamond");c(h,p,B,"⋆","\\star");c(h,p,B,"◃","\\triangleleft");c(h,p,B,"▹","\\triangleright");c(h,p,$e,"{","\\{");c(E,p,x,"{","\\{");c(E,p,x,"{","\\textbraceleft");c(h,p,Te,"}","\\}");c(E,p,x,"}","\\}");c(E,p,x,"}","\\textbraceright");c(h,p,$e,"{","\\lbrace");c(h,p,Te,"}","\\rbrace");c(h,p,$e,"[","\\lbrack",!0);c(E,p,x,"[","\\lbrack",!0);c(h,p,Te,"]","\\rbrack",!0);c(E,p,x,"]","\\rbrack",!0);c(h,p,$e,"(","\\lparen",!0);c(h,p,Te,")","\\rparen",!0);c(E,p,x,"<","\\textless",!0);c(E,p,x,">","\\textgreater",!0);c(h,p,$e,"⌊","\\lfloor",!0);c(h,p,Te,"⌋","\\rfloor",!0);c(h,p,$e,"⌈","\\lceil",!0);c(h,p,Te,"⌉","\\rceil",!0);c(h,p,x,"\\","\\backslash");c(h,p,x,"∣","|");c(h,p,x,"∣","\\vert");c(E,p,x,"|","\\textbar",!0);c(h,p,x,"∥","\\|");c(h,p,x,"∥","\\Vert");c(E,p,x,"∥","\\textbardbl");c(E,p,x,"~","\\textasciitilde");c(E,p,x,"\\","\\textbackslash");c(E,p,x,"^","\\textasciicircum");c(h,p,w,"↑","\\uparrow",!0);c(h,p,w,"⇑","\\Uparrow",!0);c(h,p,w,"↓","\\downarrow",!0);c(h,p,w,"⇓","\\Downarrow",!0);c(h,p,w,"↕","\\updownarrow",!0);c(h,p,w,"⇕","\\Updownarrow",!0);c(h,p,he,"∐","\\coprod");c(h,p,he,"⋁","\\bigvee");c(h,p,he,"⋀","\\bigwedge");c(h,p,he,"⨄","\\biguplus");c(h,p,he,"⋂","\\bigcap");c(h,p,he,"⋃","\\bigcup");c(h,p,he,"∫","\\int");c(h,p,he,"∫","\\intop");c(h,p,he,"∬","\\iint");c(h,p,he,"∭","\\iiint");c(h,p,he,"∏","\\prod");c(h,p,he,"∑","\\sum");c(h,p,he,"⨂","\\bigotimes");c(h,p,he,"⨁","\\bigoplus");c(h,p,he,"⨀","\\bigodot");c(h,p,he,"∮","\\oint");c(h,p,he,"∯","\\oiint");c(h,p,he,"∰","\\oiiint");c(h,p,he,"⨆","\\bigsqcup");c(h,p,he,"∫","\\smallint");c(E,p,ur,"…","\\textellipsis");c(h,p,ur,"…","\\mathellipsis");c(E,p,ur,"…","\\ldots",!0);c(h,p,ur,"…","\\ldots",!0);c(h,p,ur,"⋯","\\@cdots",!0);c(h,p,ur,"⋱","\\ddots",!0);c(h,p,x,"⋮","\\varvdots");c(E,p,x,"⋮","\\varvdots");c(h,p,ne,"ˊ","\\acute");c(h,p,ne,"ˋ","\\grave");c(h,p,ne,"¨","\\ddot");c(h,p,ne,"~","\\tilde");c(h,p,ne,"ˉ","\\bar");c(h,p,ne,"˘","\\breve");c(h,p,ne,"ˇ","\\check");c(h,p,ne,"^","\\hat");c(h,p,ne,"⃗","\\vec");c(h,p,ne,"˙","\\dot");c(h,p,ne,"˚","\\mathring");c(h,p,O,"","\\@imath");c(h,p,O,"","\\@jmath");c(h,p,x,"ı","ı");c(h,p,x,"ȷ","ȷ");c(E,p,x,"ı","\\i",!0);c(E,p,x,"ȷ","\\j",!0);c(E,p,x,"ß","\\ss",!0);c(E,p,x,"æ","\\ae",!0);c(E,p,x,"œ","\\oe",!0);c(E,p,x,"ø","\\o",!0);c(E,p,x,"Æ","\\AE",!0);c(E,p,x,"Œ","\\OE",!0);c(E,p,x,"Ø","\\O",!0);c(E,p,ne,"ˊ","\\'");c(E,p,ne,"ˋ","\\`");c(E,p,ne,"ˆ","\\^");c(E,p,ne,"˜","\\~");c(E,p,ne,"ˉ","\\=");c(E,p,ne,"˘","\\u");c(E,p,ne,"˙","\\.");c(E,p,ne,"¸","\\c");c(E,p,ne,"˚","\\r");c(E,p,ne,"ˇ","\\v");c(E,p,ne,"¨",'\\"');c(E,p,ne,"˝","\\H");c(E,p,ne,"◯","\\textcircled");var oo={"--":!0,"---":!0,"``":!0,"''":!0};c(E,p,x,"–","--",!0);c(E,p,x,"–","\\textendash");c(E,p,x,"—","---",!0);c(E,p,x,"—","\\textemdash");c(E,p,x,"‘","`",!0);c(E,p,x,"‘","\\textquoteleft");c(E,p,x,"’","'",!0);c(E,p,x,"’","\\textquoteright");c(E,p,x,"“","``",!0);c(E,p,x,"“","\\textquotedblleft");c(E,p,x,"”","''",!0);c(E,p,x,"”","\\textquotedblright");c(h,p,x,"°","\\degree",!0);c(E,p,x,"°","\\degree");c(E,p,x,"°","\\textdegree",!0);c(h,p,x,"£","\\pounds");c(h,p,x,"£","\\mathsterling",!0);c(E,p,x,"£","\\pounds");c(E,p,x,"£","\\textsterling",!0);c(h,b,x,"✠","\\maltese");c(E,b,x,"✠","\\maltese");var xi='0123456789/@."';for(var la=0;la<xi.length;la++){var ki=xi.charAt(la);c(h,p,x,ki,ki)}var Si='0123456789!@*()-=+";:?/.,';for(var ua=0;ua<Si.length;ua++){var Ci=Si.charAt(ua);c(E,p,x,Ci,Ci)}var fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var ca=0;ca<fn.length;ca++){var Ur=fn.charAt(ca);c(h,p,O,Ur,Ur),c(E,p,x,Ur,Ur)}c(h,b,x,"C","ℂ");c(E,b,x,"C","ℂ");c(h,b,x,"H","ℍ");c(E,b,x,"H","ℍ");c(h,b,x,"N","ℕ");c(E,b,x,"N","ℕ");c(h,b,x,"P","ℙ");c(E,b,x,"P","ℙ");c(h,b,x,"Q","ℚ");c(E,b,x,"Q","ℚ");c(h,b,x,"R","ℝ");c(E,b,x,"R","ℝ");c(h,b,x,"Z","ℤ");c(E,b,x,"Z","ℤ");c(h,p,O,"h","ℎ");c(E,p,O,"h","ℎ");var F="";for(var ke=0;ke<fn.length;ke++){var se=fn.charAt(ke);F=String.fromCharCode(55349,56320+ke),c(h,p,O,se,F),c(E,p,x,se,F),F=String.fromCharCode(55349,56372+ke),c(h,p,O,se,F),c(E,p,x,se,F),F=String.fromCharCode(55349,56424+ke),c(h,p,O,se,F),c(E,p,x,se,F),F=String.fromCharCode(55349,56580+ke),c(h,p,O,se,F),c(E,p,x,se,F),F=String.fromCharCode(55349,56684+ke),c(h,p,O,se,F),c(E,p,x,se,F),F=String.fromCharCode(55349,56736+ke),c(h,p,O,se,F),c(E,p,x,se,F),F=String.fromCharCode(55349,56788+ke),c(h,p,O,se,F),c(E,p,x,se,F),F=String.fromCharCode(55349,56840+ke),c(h,p,O,se,F),c(E,p,x,se,F),F=String.fromCharCode(55349,56944+ke),c(h,p,O,se,F),c(E,p,x,se,F),ke<26&&(F=String.fromCharCode(55349,56632+ke),c(h,p,O,se,F),c(E,p,x,se,F),F=String.fromCharCode(55349,56476+ke),c(h,p,O,se,F),c(E,p,x,se,F))}F="𝕜";c(h,p,O,"k",F);c(E,p,x,"k",F);for(var It=0;It<10;It++){var wt=It.toString();F=String.fromCharCode(55349,57294+It),c(h,p,O,wt,F),c(E,p,x,wt,F),F=String.fromCharCode(55349,57314+It),c(h,p,O,wt,F),c(E,p,x,wt,F),F=String.fromCharCode(55349,57324+It),c(h,p,O,wt,F),c(E,p,x,wt,F),F=String.fromCharCode(55349,57334+It),c(h,p,O,wt,F),c(E,p,x,wt,F)}var Ha="ÐÞþ";for(var ha=0;ha<Ha.length;ha++){var jr=Ha.charAt(ha);c(h,p,O,jr,jr),c(E,p,x,jr,jr)}var Wr=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Ai=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Nc=function(e,t){var n=e.charCodeAt(0),a=e.charCodeAt(1),i=(n-55296)*1024+(a-56320)+65536,s=t==="math"?0:1;if(119808<=i&&i<120484){var o=Math.floor((i-119808)/26);return[Wr[o][2],Wr[o][s]]}else if(120782<=i&&i<=120831){var l=Math.floor((i-120782)/10);return[Ai[l][2],Ai[l][s]]}else{if(i===120485||i===120486)return[Wr[0][2],Wr[0][s]];if(120486<i&&i<120782)return["",""];throw new _("Unsupported character: "+e)}},$n=function(e,t,n){return te[n][e]&&te[n][e].replace&&(e=te[n][e].replace),{value:e,metrics:w0(e,t,n)}},Ue=function(e,t,n,a,i){var s=$n(e,t,n),o=s.metrics;e=s.value;var l;if(o){var u=o.italic;(n==="text"||a&&a.font==="mathit")&&(u=0),l=new qe(e,o.height,o.depth,u,o.skew,o.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+t+"' and mode '"+n+"'")),l=new qe(e,0,0,0,0,0,i);if(a){l.maxFontSize=a.sizeMultiplier,a.style.isTight()&&l.classes.push("mtight");var d=a.getColor();d&&(l.style.color=d)}return l},Ic=function(e,t,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&$n(e,"Main-Bold",t).metrics?Ue(e,"Main-Bold",t,n,a.concat(["mathbf"])):e==="\\"||te[t][e].font==="main"?Ue(e,"Main-Regular",t,n,a):Ue(e,"AMS-Regular",t,n,a.concat(["amsrm"]))},Lc=function(e,t,n,a,i){return i!=="textord"&&$n(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},zc=function(e,t,n){var a=e.mode,i=e.text,s=["mord"],o=a==="math"||a==="text"&&t.font,l=o?t.font:t.fontFamily,u="",d="";if(i.charCodeAt(0)===55349&&([u,d]=Nc(i,a)),u.length>0)return Ue(i,u,a,t,s.concat(d));if(l){var m,f;if(l==="boldsymbol"){var v=Lc(i,a,t,s,n);m=v.fontName,f=[v.fontClass]}else o?(m=co[l].fontName,f=[l]):(m=Vr(l,t.fontWeight,t.fontShape),f=[l,t.fontWeight,t.fontShape]);if($n(i,m,a).metrics)return Ue(i,m,a,t,s.concat(f));if(oo.hasOwnProperty(i)&&m.slice(0,10)==="Typewriter"){for(var y=[],k=0;k<i.length;k++)y.push(Ue(i[k],m,a,t,s.concat(f)));return uo(y)}}if(n==="mathord")return Ue(i,"Math-Italic",a,t,s.concat(["mathnormal"]));if(n==="textord"){var C=te[a][i]&&te[a][i].font;if(C==="ams"){var S=Vr("amsrm",t.fontWeight,t.fontShape);return Ue(i,S,a,t,s.concat("amsrm",t.fontWeight,t.fontShape))}else if(C==="main"||!C){var T=Vr("textrm",t.fontWeight,t.fontShape);return Ue(i,T,a,t,s.concat(t.fontWeight,t.fontShape))}else{var M=Vr(C,t.fontWeight,t.fontShape);return Ue(i,M,a,t,s.concat(M,t.fontWeight,t.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},$c=(r,e)=>{if(Tt(r.classes)!==Tt(e.classes)||r.skew!==e.skew||r.maxFontSize!==e.maxFontSize)return!1;if(r.classes.length===1){var t=r.classes[0];if(t==="mbin"||t==="mord")return!1}for(var n in r.style)if(r.style.hasOwnProperty(n)&&r.style[n]!==e.style[n])return!1;for(var a in e.style)if(e.style.hasOwnProperty(a)&&r.style[a]!==e.style[a])return!1;return!0},Bc=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],n=r[e+1];t instanceof qe&&n instanceof qe&&$c(t,n)&&(t.text+=n.text,t.height=Math.max(t.height,n.height),t.depth=Math.max(t.depth,n.depth),t.italic=n.italic,r.splice(e+1,1),e--)}return r},k0=function(e){for(var t=0,n=0,a=0,i=0;i<e.children.length;i++){var s=e.children[i];s.height>t&&(t=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=a},Me=function(e,t,n,a){var i=new Lr(e,t,n,a);return k0(i),i},lo=(r,e,t,n)=>new Lr(r,e,t,n),Pc=function(e,t,n){var a=Me([e],[],t);return a.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),a.style.borderBottomWidth=I(a.height),a.maxFontSize=1,a},Dc=function(e,t,n,a){var i=new x0(e,t,n,a);return k0(i),i},uo=function(e){var t=new Ir(e);return k0(t),t},Oc=function(e,t){return e instanceof Ir?Me([],[e],t):e},Gc=function(e){if(e.positionType==="individualShift"){for(var t=e.children,n=[t[0]],a=-t[0].shift-t[0].elem.depth,i=a,s=1;s<t.length;s++){var o=-t[s].shift-i-t[s].elem.depth,l=o-(t[s-1].elem.height+t[s-1].elem.depth);i=i+o,n.push({type:"kern",size:l}),n.push(t[s])}return{children:n,depth:a}}var u;if(e.positionType==="top"){for(var d=e.positionData,m=0;m<e.children.length;m++){var f=e.children[m];d-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}u=d}else if(e.positionType==="bottom")u=-e.positionData;else{var v=e.children[0];if(v.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")u=-v.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")u=-v.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:u}},Fc=function(e,t){for(var{children:n,depth:a}=Gc(e),i=0,s=0;s<n.length;s++){var o=n[s];if(o.type==="elem"){var l=o.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var u=Me(["pstrut"],[]);u.style.height=I(i);for(var d=[],m=a,f=a,v=a,y=0;y<n.length;y++){var k=n[y];if(k.type==="kern")v+=k.size;else{var C=k.elem,S=k.wrapperClasses||[],T=k.wrapperStyle||{},M=Me(S,[u,C],void 0,T);M.style.top=I(-i-v-C.depth),k.marginLeft&&(M.style.marginLeft=k.marginLeft),k.marginRight&&(M.style.marginRight=k.marginRight),d.push(M),v+=C.height+C.depth}m=Math.min(m,v),f=Math.max(f,v)}var $=Me(["vlist"],d);$.style.height=I(f);var L;if(m<0){var P=Me([],[]),D=Me(["vlist"],[P]);D.style.height=I(-m);var W=Me(["vlist-s"],[new qe("​")]);L=[Me(["vlist-r"],[$,W]),Me(["vlist-r"],[D])]}else L=[Me(["vlist-r"],[$])];var V=Me(["vlist-t"],L);return L.length===2&&V.classes.push("vlist-t2"),V.height=f,V.depth=-m,V},qc=(r,e)=>{var t=Me(["mspace"],[],e),n=ie(r,e);return t.style.marginRight=I(n),t},Vr=function(e,t,n){var a="";switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}var i;return t==="textbf"&&n==="textit"?i="BoldItalic":t==="textbf"?i="Bold":t==="textit"?i="Italic":i="Regular",a+"-"+i},co={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},ho={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Hc=function(e,t){var[n,a,i]=ho[e],s=new Mt(n),o=new mt([s],{width:I(a),height:I(i),style:"width:"+I(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=lo(["overlay"],[o],t);return l.height=i,l.style.height=I(i),l.style.width=I(a),l},A={fontMap:co,makeSymbol:Ue,mathsym:Ic,makeSpan:Me,makeSvgSpan:lo,makeLineSpan:Pc,makeAnchor:Dc,makeFragment:uo,wrapFragment:Oc,makeVList:Fc,makeOrd:zc,makeGlue:qc,staticSvg:Hc,svgData:ho,tryCombineChars:Bc},ae={number:3,unit:"mu"},Lt={number:4,unit:"mu"},it={number:5,unit:"mu"},Uc={mord:{mop:ae,mbin:Lt,mrel:it,minner:ae},mop:{mord:ae,mop:ae,mrel:it,minner:ae},mbin:{mord:Lt,mop:Lt,mopen:Lt,minner:Lt},mrel:{mord:it,mop:it,mopen:it,minner:it},mopen:{},mclose:{mop:ae,mbin:Lt,mrel:it,minner:ae},mpunct:{mord:ae,mop:ae,mrel:it,mopen:ae,mclose:ae,mpunct:ae,minner:ae},minner:{mord:ae,mop:ae,mbin:Lt,mrel:it,mopen:ae,mpunct:ae,minner:ae}},jc={mord:{mop:ae},mop:{mord:ae,mop:ae},mbin:{},mrel:{},mopen:{},mclose:{mop:ae},mpunct:{},minner:{mop:ae}},mo={},gn={},vn={};function z(r){for(var{type:e,names:t,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=r,o={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},l=0;l<t.length;++l)mo[t[l]]=o;e&&(i&&(gn[e]=i),s&&(vn[e]=s))}function Ht(r){var{type:e,htmlBuilder:t,mathmlBuilder:n}=r;z({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:n})}var yn=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},ue=function(e){return e.type==="ordgroup"?e.body:[e]},pt=A.makeSpan,Wc=["leftmost","mbin","mopen","mrel","mop","mpunct"],Vc=["rightmost","mrel","mclose","mpunct"],Xc={display:G.DISPLAY,text:G.TEXT,script:G.SCRIPT,scriptscript:G.SCRIPTSCRIPT},Kc={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},pe=function(e,t,n,a){a===void 0&&(a=[null,null]);for(var i=[],s=0;s<e.length;s++){var o=X(e[s],t);if(o instanceof Ir){var l=o.children;i.push(...l)}else i.push(o)}if(A.tryCombineChars(i),!n)return i;var u=t;if(e.length===1){var d=e[0];d.type==="sizing"?u=t.havingSize(d.size):d.type==="styling"&&(u=t.havingStyle(Xc[d.style]))}var m=pt([a[0]||"leftmost"],[],t),f=pt([a[1]||"rightmost"],[],t),v=n==="root";return Ti(i,(y,k)=>{var C=k.classes[0],S=y.classes[0];C==="mbin"&&Vc.includes(S)?k.classes[0]="mord":S==="mbin"&&Wc.includes(C)&&(y.classes[0]="mord")},{node:m},f,v),Ti(i,(y,k)=>{var C=Ua(k),S=Ua(y),T=C&&S?y.hasClass("mtight")?jc[C][S]:Uc[C][S]:null;if(T)return A.makeGlue(T,u)},{node:m},f,v),i},Ti=function r(e,t,n,a,i){a&&e.push(a);for(var s=0;s<e.length;s++){var o=e[s],l=po(o);if(l){r(l.children,t,n,null,i);continue}var u=!o.hasClass("mspace");if(u){var d=t(o,n.node);d&&(n.insertAfter?n.insertAfter(d):(e.unshift(d),s++))}u?n.node=o:i&&o.hasClass("newline")&&(n.node=pt(["leftmost"])),n.insertAfter=(m=>f=>{e.splice(m+1,0,f),s++})(s)}a&&e.pop()},po=function(e){return e instanceof Ir||e instanceof x0||e instanceof Lr&&e.hasClass("enclosing")?e:null},Yc=function r(e,t){var n=po(e);if(n){var a=n.children;if(a.length){if(t==="right")return r(a[a.length-1],"right");if(t==="left")return r(a[0],"left")}}return e},Ua=function(e,t){return e?(t&&(e=Yc(e,t)),Kc[e.classes[0]]||null):null},Ar=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return pt(t.concat(n))},X=function(e,t,n){if(!e)return pt();if(gn[e.type]){var a=gn[e.type](e,t);if(n&&t.size!==n.size){a=pt(t.sizingClasses(n),[a],t);var i=t.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new _("Got group of unknown type: '"+e.type+"'")};function Xr(r,e){var t=pt(["base"],r,e),n=pt(["strut"]);return n.style.height=I(t.height+t.depth),t.depth&&(n.style.verticalAlign=I(-t.depth)),t.children.unshift(n),t}function ja(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var n=pe(r,e,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var l=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(l=!0);l||(i.push(Xr(s,e)),s=[])}else n[o].hasClass("newline")&&(s.pop(),s.length>0&&(i.push(Xr(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(Xr(s,e));var u;t?(u=Xr(pe(t,e,!0)),u.classes=["tag"],i.push(u)):a&&i.push(a);var d=pt(["katex-html"],i);if(d.setAttribute("aria-hidden","true"),u){var m=u.children[0];m.style.height=I(d.height+d.depth),d.depth&&(m.style.verticalAlign=I(-d.depth))}return d}function fo(r){return new Ir(r)}class Le{constructor(e,t,n){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=n||[]}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=Tt(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof tt&&this.children[n+1]instanceof tt){for(var a=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof tt;)a+=this.children[++n].toText();e.appendChild(new tt(a).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=K.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+K.escape(Tt(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class tt{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return K.escape(this.toText())}toText(){return this.text}}class Zc{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",I(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+I(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var R={MathNode:Le,TextNode:tt,SpaceNode:Zc,newDocumentFragment:fo},He=function(e,t,n){return te[t][e]&&te[t][e].replace&&e.charCodeAt(0)!==55349&&!(oo.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=te[t][e].replace),new R.TextNode(e)},S0=function(e){return e.length===1?e[0]:new R.MathNode("mrow",e)},C0=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var n=t.font;if(!n||n==="mathnormal")return null;var a=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var i=e.text;if(["\\imath","\\jmath"].includes(i))return null;te[a][i]&&te[a][i].replace&&(i=te[a][i].replace);var s=A.fontMap[n].fontName;return w0(i,s,a)?A.fontMap[n].variant:null};function da(r){if(!r)return!1;if(r.type==="mi"&&r.children.length===1){var e=r.children[0];return e instanceof tt&&e.text==="."}else if(r.type==="mo"&&r.children.length===1&&r.getAttribute("separator")==="true"&&r.getAttribute("lspace")==="0em"&&r.getAttribute("rspace")==="0em"){var t=r.children[0];return t instanceof tt&&t.text===","}else return!1}var Re=function(e,t,n){if(e.length===1){var a=Q(e[0],t);return n&&a instanceof Le&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o<e.length;o++){var l=Q(e[o],t);if(l instanceof Le&&s instanceof Le){if(l.type==="mtext"&&s.type==="mtext"&&l.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...l.children);continue}else if(l.type==="mn"&&s.type==="mn"){s.children.push(...l.children);continue}else if(da(l)&&s.type==="mn"){s.children.push(...l.children);continue}else if(l.type==="mn"&&da(s))l.children=[...s.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(s.type==="mn"||da(s))){var u=l.children[0];u instanceof Le&&u.type==="mn"&&(u.children=[...s.children,...u.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof tt&&d.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var m=l.children[0];m instanceof tt&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),i.pop())}}}i.push(l),s=l}return i},Et=function(e,t,n){return S0(Re(e,t,n))},Q=function(e,t){if(!e)return new R.MathNode("mrow");if(vn[e.type]){var n=vn[e.type](e,t);return n}else throw new _("Got group of unknown type: '"+e.type+"'")};function Mi(r,e,t,n,a){var i=Re(r,t),s;i.length===1&&i[0]instanceof Le&&["mrow","mtable"].includes(i[0].type)?s=i[0]:s=new R.MathNode("mrow",i);var o=new R.MathNode("annotation",[new R.TextNode(e)]);o.setAttribute("encoding","application/x-tex");var l=new R.MathNode("semantics",[s,o]),u=new R.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var d=a?"katex":"katex-mathml";return A.makeSpan([d],[u])}var go=function(e){return new lt({style:e.displayMode?G.DISPLAY:G.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},vo=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=A.makeSpan(n,[e])}return e},Qc=function(e,t,n){var a=go(n),i;if(n.output==="mathml")return Mi(e,t,a,n.displayMode,!0);if(n.output==="html"){var s=ja(e,a);i=A.makeSpan(["katex"],[s])}else{var o=Mi(e,t,a,n.displayMode,!1),l=ja(e,a);i=A.makeSpan(["katex"],[o,l])}return vo(i,n)},Jc=function(e,t,n){var a=go(n),i=ja(e,a),s=A.makeSpan(["katex"],[i]);return vo(s,n)},eh={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":"="},th=function(e){var t=new R.MathNode("mo",[new R.TextNode(eh[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},rh={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]},nh=function(e){return e.type==="ordgroup"?e.body.length:1},ah=function(e,t){function n(){var o=4e5,l=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(l)){var u=e,d=nh(u.base),m,f,v;if(d>5)l==="widehat"||l==="widecheck"?(m=420,o=2364,v=.42,f=l+"4"):(m=312,o=2340,v=.34,f="tilde4");else{var y=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][y],m=[0,239,300,360,420][y],v=[0,.24,.3,.3,.36,.42][y],f=l+y):(o=[0,600,1033,2339,2340][y],m=[0,260,286,306,312][y],v=[0,.26,.286,.3,.306,.34][y],f="tilde"+y)}var k=new Mt(f),C=new mt([k],{width:"100%",height:I(v),viewBox:"0 0 "+o+" "+m,preserveAspectRatio:"none"});return{span:A.makeSvgSpan([],[C],t),minWidth:0,height:v}}else{var S=[],T=rh[l],[M,$,L]=T,P=L/1e3,D=M.length,W,V;if(D===1){var Ne=T[3];W=["hide-tail"],V=[Ne]}else if(D===2)W=["halfarrow-left","halfarrow-right"],V=["xMinYMin","xMaxYMin"];else if(D===3)W=["brace-left","brace-center","brace-right"],V=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
258
+ `+D+" children.");for(var oe=0;oe<D;oe++){var Z=new Mt(M[oe]),Ke=new mt([Z],{width:"400em",height:I(P),viewBox:"0 0 "+o+" "+L,preserveAspectRatio:V[oe]+" slice"}),re=A.makeSvgSpan([W[oe]],[Ke],t);if(D===1)return{span:re,minWidth:$,height:P};re.style.height=I(P),S.push(re)}return{span:A.makeSpan(["stretchy"],S,t),minWidth:$,height:P}}}var{span:a,minWidth:i,height:s}=n();return a.height=s,a.style.height=I(s),i>0&&(a.style.minWidth=I(i)),a},ih=function(e,t,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(t)){if(s=A.makeSpan(["stretchy",t],[],i),t==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(t)&&u.push(new qa({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&u.push(new qa({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new mt(u,{width:"100%",height:I(o)});s=A.makeSvgSpan([],[d],i)}return s.height=o,s.style.height=I(o),s},ft={encloseSpan:ih,mathMLnode:th,svgSpan:ah};function U(r,e){if(!r||r.type!==e)throw new Error("Expected node of type "+e+", but got "+(r?"node of type "+r.type:String(r)));return r}function A0(r){var e=Bn(r);if(!e)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return e}function Bn(r){return r&&(r.type==="atom"||_c.hasOwnProperty(r.type))?r:null}var T0=(r,e)=>{var t,n,a;r&&r.type==="supsub"?(n=U(r.base,"accent"),t=n.base,r.base=t,a=Ec(X(r,e)),r.base=n):(n=U(r,"accent"),t=n.base);var i=X(t,e.havingCrampedStyle()),s=n.isShifty&&K.isCharacterBox(t),o=0;if(s){var l=K.getBaseElem(t),u=X(l,e.havingCrampedStyle());o=wi(u).skew}var d=n.label==="\\c",m=d?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),f;if(n.isStretchy)f=ft.svgSpan(n,e),f=A.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+I(2*o)+")",marginLeft:I(2*o)}:void 0}]},e);else{var v,y;n.label==="\\vec"?(v=A.staticSvg("vec",e),y=A.svgData.vec[1]):(v=A.makeOrd({mode:n.mode,text:n.label},e,"textord"),v=wi(v),v.italic=0,y=v.width,d&&(m+=v.depth)),f=A.makeSpan(["accent-body"],[v]);var k=n.label==="\\textcircled";k&&(f.classes.push("accent-full"),m=i.height);var C=o;k||(C-=y/2),f.style.left=I(C),n.label==="\\textcircled"&&(f.style.top=".2em"),f=A.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-m},{type:"elem",elem:f}]},e)}var S=A.makeSpan(["mord","accent"],[f],e);return a?(a.children[0]=S,a.height=Math.max(S.height,a.height),a.classes[0]="mord",a):S},yo=(r,e)=>{var t=r.isStretchy?ft.mathMLnode(r.label):new R.MathNode("mo",[He(r.label,r.mode)]),n=new R.MathNode("mover",[Q(r.base,e),t]);return n.setAttribute("accent","true"),n},sh=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));z({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:(r,e)=>{var t=yn(e[0]),n=!sh.test(r.funcName),a=!n||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:n,isShifty:a,base:t}},htmlBuilder:T0,mathmlBuilder:yo});z({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,e)=>{var t=e[0],n=r.parser.mode;return n==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:T0,mathmlBuilder:yo});z({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0];return{type:"accentUnder",mode:t.mode,label:n,base:a}},htmlBuilder:(r,e)=>{var t=X(r.base,e),n=ft.svgSpan(r,e),a=r.label==="\\utilde"?.12:0,i=A.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:t}]},e);return A.makeSpan(["mord","accentunder"],[i],e)},mathmlBuilder:(r,e)=>{var t=ft.mathMLnode(r.label),n=new R.MathNode("munder",[Q(r.base,e),t]);return n.setAttribute("accentunder","true"),n}});var Kr=r=>{var e=new R.MathNode("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};z({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(r,e,t){var{parser:n,funcName:a}=r;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,n=e.havingStyle(t.sup()),a=A.wrapFragment(X(r.body,n,e),e),i=r.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;r.below&&(n=e.havingStyle(t.sub()),s=A.wrapFragment(X(r.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=ft.svgSpan(r,e),l=-e.fontMetrics().axisHeight+.5*o.height,u=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||r.label==="\\xleftequilibrium")&&(u-=a.depth);var d;if(s){var m=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=A.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:m}]},e)}else d=A.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:o,shift:l}]},e);return d.children[0].children[0].children[1].classes.push("svg-align"),A.makeSpan(["mrel","x-arrow"],[d],e)},mathmlBuilder(r,e){var t=ft.mathMLnode(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(r.body){var a=Kr(Q(r.body,e));if(r.below){var i=Kr(Q(r.below,e));n=new R.MathNode("munderover",[t,i,a])}else n=new R.MathNode("mover",[t,a])}else if(r.below){var s=Kr(Q(r.below,e));n=new R.MathNode("munder",[t,s])}else n=Kr(),n=new R.MathNode("mover",[t,n]);return n}});var oh=A.makeSpan;function bo(r,e){var t=pe(r.body,e,!0);return oh([r.mclass],t,e)}function wo(r,e){var t,n=Re(r.body,e);return r.mclass==="minner"?t=new R.MathNode("mpadded",n):r.mclass==="mord"?r.isCharacterBox?(t=n[0],t.type="mi"):t=new R.MathNode("mi",n):(r.isCharacterBox?(t=n[0],t.type="mo"):t=new R.MathNode("mo",n),r.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):r.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):r.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}z({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:n}=r,a=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+n.slice(5),body:ue(a),isCharacterBox:K.isCharacterBox(a)}},htmlBuilder:bo,mathmlBuilder:wo});var Pn=r=>{var e=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};z({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:Pn(e[0]),body:ue(e[1]),isCharacterBox:K.isCharacterBox(e[1])}}});z({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,e){var{parser:t,funcName:n}=r,a=e[1],i=e[0],s;n!=="\\stackrel"?s=Pn(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ue(a)},l={type:"supsub",mode:i.mode,base:o,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:t.mode,mclass:s,body:[l],isCharacterBox:K.isCharacterBox(l)}},htmlBuilder:bo,mathmlBuilder:wo});z({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:Pn(e[0]),body:ue(e[0])}},htmlBuilder(r,e){var t=pe(r.body,e,!0),n=A.makeSpan([r.mclass],t,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(r,e){var t=Re(r.body,e),n=new R.MathNode("mstyle",t);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var lh={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ei=()=>({type:"styling",body:[],mode:"math",style:"display"}),Ri=r=>r.type==="textord"&&r.text==="@",uh=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function ch(r,e,t){var n=lh[r];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=t.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=t.callFunction("\\Big",[i],[]),o=t.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[a,s,o]};return t.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function hh(r){var e=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){e.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var t=r.fetch().text;if(t==="&"||t==="\\\\")r.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new _("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var n=[],a=[n],i=0;i<e.length;i++){for(var s=e[i],o=Ei(),l=0;l<s.length;l++)if(!Ri(s[l]))o.body.push(s[l]);else{n.push(o),l+=1;var u=A0(s[l]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(u)>-1))if("<>AV".indexOf(u)>-1)for(var m=0;m<2;m++){for(var f=!0,v=l+1;v<s.length;v++){if(uh(s[v],u)){f=!1,l=v;break}if(Ri(s[v]))throw new _("Missing a "+u+" character to complete a CD arrow.",s[v]);d[m].body.push(s[v])}if(f)throw new _("Missing a "+u+" character to complete a CD arrow.",s[l])}else throw new _('Expected one of "<>AV=|." after @',s[l]);var y=ch(u,d,r),k={type:"styling",body:[y],mode:"math",style:"display"};n.push(k),o=Ei()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}r.gullet.endGroup(),r.gullet.endGroup();var C=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}z({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:n}=r;return{type:"cdlabel",mode:t.mode,side:n.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),n=A.wrapFragment(X(r.label,t,e),e);return n.classes.push("cd-label-"+r.side),n.style.bottom=I(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(r,e){var t=new R.MathNode("mrow",[Q(r.label,e)]);return t=new R.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new R.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});z({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,e){var{parser:t}=r;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=A.wrapFragment(X(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new R.MathNode("mrow",[Q(r.fragment,e)])}});z({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(r,e){for(var{parser:t}=r,n=U(e[0],"ordgroup"),a=n.body,i="",s=0;s<a.length;s++){var o=U(a[s],"textord");i+=o.text}var l=parseInt(i),u;if(isNaN(l))throw new _("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new _("\\@char with invalid code point "+i);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:t.mode,text:u}}});var xo=(r,e)=>{var t=pe(r.body,e.withColor(r.color),!1);return A.makeFragment(t)},ko=(r,e)=>{var t=Re(r.body,e.withColor(r.color)),n=new R.MathNode("mstyle",t);return n.setAttribute("mathcolor",r.color),n};z({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,n=U(e[0],"color-token").color,a=e[1];return{type:"color",mode:t.mode,color:n,body:ue(a)}},htmlBuilder:xo,mathmlBuilder:ko});z({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(r,e){var{parser:t,breakOnTokenText:n}=r,a=U(e[0],"color-token").color;t.gullet.macros.set("\\current@color",a);var i=t.parseExpression(!0,n);return{type:"color",mode:t.mode,color:a,body:i}},htmlBuilder:xo,mathmlBuilder:ko});z({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,e,t){var{parser:n}=r,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&&U(a,"size").value}},htmlBuilder(r,e){var t=A.makeSpan(["mspace"],[],e);return r.newLine&&(t.classes.push("newline"),r.size&&(t.style.marginTop=I(ie(r.size,e)))),t},mathmlBuilder(r,e){var t=new R.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",I(ie(r.size,e)))),t}});var Wa={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},So=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new _("Expected a control sequence",r);return e},dh=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},Co=(r,e,t,n)=>{var a=r.gullet.macros.get(t.text);a==null&&(t.noexpand=!0,a={tokens:[t],numArgs:0,unexpandable:!r.gullet.isExpandable(t.text)}),r.gullet.macros.set(e,a,n)};z({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e,funcName:t}=r;e.consumeSpaces();var n=e.fetch();if(Wa[n.text])return(t==="\\global"||t==="\\\\globallong")&&(n.text=Wa[n.text]),U(e.parseFunction(),"internal");throw new _("Invalid token after macro prefix",n)}});z({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,n=e.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new _("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new _('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new _('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new _("Expected a macro definition");o[i].push(n.text)}var{tokens:l}=e.gullet.consumeArg();return s&&l.unshift(s),(t==="\\edef"||t==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(a,{tokens:l,numArgs:i,delimiters:o},t===Wa[t]),{type:"internal",mode:e.mode}}});z({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,n=So(e.gullet.popToken());e.gullet.consumeSpaces();var a=dh(e);return Co(e,n,a,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});z({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,n=So(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return Co(e,n,i,t==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var yr=function(e,t,n){var a=te.math[e]&&te.math[e].replace,i=w0(a||e,t,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return i},M0=function(e,t,n,a){var i=n.havingBaseStyle(t),s=A.makeSpan(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},Ao=function(e,t,n){var a=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/a.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=I(i),e.height-=i,e.depth+=i},mh=function(e,t,n,a,i,s){var o=A.makeSymbol(e,"Main-Regular",i,a),l=M0(o,t,a,s);return n&&Ao(l,a,t),l},ph=function(e,t,n,a){return A.makeSymbol(e,"Size"+t+"-Regular",n,a)},To=function(e,t,n,a,i,s){var o=ph(e,t,i,a),l=M0(A.makeSpan(["delimsizing","size"+t],[o],a),G.TEXT,a,s);return n&&Ao(l,a,G.TEXT),l},ma=function(e,t,n){var a;t==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=A.makeSpan(["delimsizinginner",a],[A.makeSpan([],[A.makeSymbol(e,t,n)])]);return{type:"elem",elem:i}},pa=function(e,t,n){var a=et["Size4-Regular"][e.charCodeAt(0)]?et["Size4-Regular"][e.charCodeAt(0)][4]:et["Size1-Regular"][e.charCodeAt(0)][4],i=new Mt("inner",bc(e,Math.round(1e3*t))),s=new mt([i],{width:I(a),height:I(t),style:"width:"+I(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=A.makeSvgSpan([],[s],n);return o.height=t,o.style.height=I(t),o.style.width=I(a),{type:"elem",elem:o}},Va=.008,Yr={type:"kern",size:-1*Va},fh=["|","\\lvert","\\rvert","\\vert"],gh=["\\|","\\lVert","\\rVert","\\Vert"],Mo=function(e,t,n,a,i,s){var o,l,u,d,m="",f=0;o=u=d=e,l=null;var v="Size1-Regular";e==="\\uparrow"?u=d="⏐":e==="\\Uparrow"?u=d="‖":e==="\\downarrow"?o=u="⏐":e==="\\Downarrow"?o=u="‖":e==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):fh.includes(e)?(u="∣",m="vert",f=333):gh.includes(e)?(u="∥",m="doublevert",f=556):e==="["||e==="\\lbrack"?(o="⎡",u="⎢",d="⎣",v="Size4-Regular",m="lbrack",f=667):e==="]"||e==="\\rbrack"?(o="⎤",u="⎥",d="⎦",v="Size4-Regular",m="rbrack",f=667):e==="\\lfloor"||e==="⌊"?(u=o="⎢",d="⎣",v="Size4-Regular",m="lfloor",f=667):e==="\\lceil"||e==="⌈"?(o="⎡",u=d="⎢",v="Size4-Regular",m="lceil",f=667):e==="\\rfloor"||e==="⌋"?(u=o="⎥",d="⎦",v="Size4-Regular",m="rfloor",f=667):e==="\\rceil"||e==="⌉"?(o="⎤",u=d="⎥",v="Size4-Regular",m="rceil",f=667):e==="("||e==="\\lparen"?(o="⎛",u="⎜",d="⎝",v="Size4-Regular",m="lparen",f=875):e===")"||e==="\\rparen"?(o="⎞",u="⎟",d="⎠",v="Size4-Regular",m="rparen",f=875):e==="\\{"||e==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",v="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",v="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",d="⎩",u="⎪",v="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",d="⎭",u="⎪",v="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",d="⎭",u="⎪",v="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",d="⎩",u="⎪",v="Size4-Regular");var y=yr(o,v,i),k=y.height+y.depth,C=yr(u,v,i),S=C.height+C.depth,T=yr(d,v,i),M=T.height+T.depth,$=0,L=1;if(l!==null){var P=yr(l,v,i);$=P.height+P.depth,L=2}var D=k+M+$,W=Math.max(0,Math.ceil((t-D)/(L*S))),V=D+W*L*S,Ne=a.fontMetrics().axisHeight;n&&(Ne*=a.sizeMultiplier);var oe=V/2-Ne,Z=[];if(m.length>0){var Ke=V-k-M,re=Math.round(V*1e3),ge=wc(m,Math.round(Ke*1e3)),Be=new Mt(m,ge),Vt=(f/1e3).toFixed(3)+"em",Xt=(re/1e3).toFixed(3)+"em",na=new mt([Be],{width:Vt,height:Xt,viewBox:"0 0 "+f+" "+re}),vt=A.makeSvgSpan([],[na],a);vt.height=re/1e3,vt.style.width=Vt,vt.style.height=Xt,Z.push({type:"elem",elem:vt})}else{if(Z.push(ma(d,v,i)),Z.push(Yr),l===null){var yt=V-k-M+2*Va;Z.push(pa(u,yt,a))}else{var Pe=(V-k-M-$)/2+2*Va;Z.push(pa(u,Pe,a)),Z.push(Yr),Z.push(ma(l,v,i)),Z.push(Yr),Z.push(pa(u,Pe,a))}Z.push(Yr),Z.push(ma(o,v,i))}var fr=a.havingBaseStyle(G.TEXT),aa=A.makeVList({positionType:"bottom",positionData:oe,children:Z},fr);return M0(A.makeSpan(["delimsizing","mult"],[aa],fr),G.TEXT,a,s)},fa=80,ga=.08,va=function(e,t,n,a,i){var s=yc(e,a,n),o=new Mt(e,s),l=new mt([o],{width:"400em",height:I(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return A.makeSvgSpan(["hide-tail"],[l],i)},vh=function(e,t){var n=t.havingBaseSizing(),a=No("\\surd",e*n.sizeMultiplier,_o,n),i=n.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,m;return a.type==="small"?(d=1e3+1e3*s+fa,e<1?i=1:e<1.4&&(i=.7),l=(1+s+ga)/i,u=(1+s)/i,o=va("sqrtMain",l,d,s,t),o.style.minWidth="0.853em",m=.833/i):a.type==="large"?(d=(1e3+fa)*xr[a.size],u=(xr[a.size]+s)/i,l=(xr[a.size]+s+ga)/i,o=va("sqrtSize"+a.size,l,d,s,t),o.style.minWidth="1.02em",m=1/i):(l=e+s+ga,u=e+s,d=Math.floor(1e3*e+s)+fa,o=va("sqrtTall",l,d,s,t),o.style.minWidth="0.742em",m=1.056),o.height=u,o.style.height=I(l),{span:o,advanceWidth:m,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*i}},Eo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],yh=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Ro=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],xr=[0,1.2,1.8,2.4,3],bh=function(e,t,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),Eo.includes(e)||Ro.includes(e))return To(e,t,!1,n,a,i);if(yh.includes(e))return Mo(e,xr[t],!1,n,a,i);throw new _("Illegal delimiter: '"+e+"'")},wh=[{type:"small",style:G.SCRIPTSCRIPT},{type:"small",style:G.SCRIPT},{type:"small",style:G.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],xh=[{type:"small",style:G.SCRIPTSCRIPT},{type:"small",style:G.SCRIPT},{type:"small",style:G.TEXT},{type:"stack"}],_o=[{type:"small",style:G.SCRIPTSCRIPT},{type:"small",style:G.SCRIPT},{type:"small",style:G.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],kh=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},No=function(e,t,n,a){for(var i=Math.min(2,3-a.style.size),s=i;s<n.length&&n[s].type!=="stack";s++){var o=yr(e,kh(n[s]),"math"),l=o.height+o.depth;if(n[s].type==="small"){var u=a.havingBaseStyle(n[s].style);l*=u.sizeMultiplier}if(l>t)return n[s]}return n[n.length-1]},Io=function(e,t,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;Ro.includes(e)?o=wh:Eo.includes(e)?o=_o:o=xh;var l=No(e,t,o,a);return l.type==="small"?mh(e,l.style,n,a,i,s):l.type==="large"?To(e,l.size,n,a,i,s):Mo(e,t,n,a,i,s)},Sh=function(e,t,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,u=5/a.fontMetrics().ptPerEm,d=Math.max(t-o,n+o),m=Math.max(d/500*l,2*d-u);return Io(e,m,!0,a,i,s)},ht={sqrtImage:vh,sizedDelim:bh,sizeToMaxHeight:xr,customSizedDelim:Io,leftRightDelim:Sh},_i={"\\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}},Ch=["(","\\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 Dn(r,e){var t=Bn(r);if(t&&Ch.includes(t.text))return t;throw t?new _("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",r):new _("Invalid delimiter type '"+r.type+"'",r)}z({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:(r,e)=>{var t=Dn(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:_i[r.funcName].size,mclass:_i[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?A.makeSpan([r.mclass]):ht.sizedDelim(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(He(r.delim,r.mode));var t=new R.MathNode("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var n=I(ht.sizeToMaxHeight[r.size]);return t.setAttribute("minsize",n),t.setAttribute("maxsize",n),t}});function Ni(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}z({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=r.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new _("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:Dn(e[0],r).text,color:t}}});z({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Dn(e[0],r),n=r.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=U(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:t.text,right:i.delim,rightColor:i.color}},htmlBuilder:(r,e)=>{Ni(r);for(var t=pe(r.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s<t.length;s++)t[s].isMiddle?i=!0:(n=Math.max(t[s].height,n),a=Math.max(t[s].depth,a));n*=e.sizeMultiplier,a*=e.sizeMultiplier;var o;if(r.left==="."?o=Ar(e,["mopen"]):o=ht.leftRightDelim(r.left,n,a,e,r.mode,["mopen"]),t.unshift(o),i)for(var l=1;l<t.length;l++){var u=t[l],d=u.isMiddle;d&&(t[l]=ht.leftRightDelim(d.delim,n,a,d.options,r.mode,[]))}var m;if(r.right===".")m=Ar(e,["mclose"]);else{var f=r.rightColor?e.withColor(r.rightColor):e;m=ht.leftRightDelim(r.right,n,a,f,r.mode,["mclose"])}return t.push(m),A.makeSpan(["minner"],t,e)},mathmlBuilder:(r,e)=>{Ni(r);var t=Re(r.body,e);if(r.left!=="."){var n=new R.MathNode("mo",[He(r.left,r.mode)]);n.setAttribute("fence","true"),t.unshift(n)}if(r.right!=="."){var a=new R.MathNode("mo",[He(r.right,r.mode)]);a.setAttribute("fence","true"),r.rightColor&&a.setAttribute("mathcolor",r.rightColor),t.push(a)}return S0(t)}});z({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Dn(e[0],r);if(!r.parser.leftrightDepth)throw new _("\\middle without preceding \\left",t);return{type:"middle",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;if(r.delim===".")t=Ar(e,[]);else{t=ht.sizedDelim(r.delim,1,e,r.mode,[]);var n={delim:r.delim,options:e};t.isMiddle=n}return t},mathmlBuilder:(r,e)=>{var t=r.delim==="\\vert"||r.delim==="|"?He("|","text"):He(r.delim,r.mode),n=new R.MathNode("mo",[t]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var E0=(r,e)=>{var t=A.wrapFragment(X(r.body,e),e),n=r.label.slice(1),a=e.sizeMultiplier,i,s=0,o=K.isCharacterBox(r.body);if(n==="sout")i=A.makeSpan(["stretchy","sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=ie({number:.6,unit:"pt"},e),u=ie({number:.35,unit:"ex"},e),d=e.havingBaseSizing();a=a/d.sizeMultiplier;var m=t.height+t.depth+l+u;t.style.paddingLeft=I(m/2+l);var f=Math.floor(1e3*m*a),v=gc(f),y=new mt([new Mt("phase",v)],{width:"400em",height:I(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});i=A.makeSvgSpan(["hide-tail"],[y],e),i.style.height=I(m),s=t.depth+l+u}else{/cancel/.test(n)?o||t.classes.push("cancel-pad"):n==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var k=0,C=0,S=0;/box/.test(n)?(S=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),k=e.fontMetrics().fboxsep+(n==="colorbox"?0:S),C=k):n==="angl"?(S=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),k=4*S,C=Math.max(0,.25-t.depth)):(k=o?.2:0,C=k),i=ft.encloseSpan(t,n,k,C,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=I(S)):n==="angl"&&S!==.049&&(i.style.borderTopWidth=I(S),i.style.borderRightWidth=I(S)),s=t.depth+C,r.backgroundColor&&(i.style.backgroundColor=r.backgroundColor,r.borderColor&&(i.style.borderColor=r.borderColor))}var T;if(r.backgroundColor)T=A.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:t,shift:0}]},e);else{var M=/cancel|phase/.test(n)?["svg-align"]:[];T=A.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:M}]},e)}return/cancel/.test(n)&&(T.height=t.height,T.depth=t.depth),/cancel/.test(n)&&!o?A.makeSpan(["mord","cancel-lap"],[T],e):A.makeSpan(["mord"],[T],e)},R0=(r,e)=>{var t=0,n=new R.MathNode(r.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Q(r.body,e)]);switch(r.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(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*t+"pt"),n.setAttribute("height","+"+2*t+"pt"),n.setAttribute("lspace",t+"pt"),n.setAttribute("voffset",t+"pt"),r.label==="\\fcolorbox"){var a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+a+"em solid "+String(r.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&n.setAttribute("mathbackground",r.backgroundColor),n};z({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(r,e,t){var{parser:n,funcName:a}=r,i=U(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:E0,mathmlBuilder:R0});z({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(r,e,t){var{parser:n,funcName:a}=r,i=U(e[0],"color-token").color,s=U(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:E0,mathmlBuilder:R0});z({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});z({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:n}=r,a=e[0];return{type:"enclose",mode:t.mode,label:n,body:a}},htmlBuilder:E0,mathmlBuilder:R0});z({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var Lo={};function rt(r){for(var{type:e,names:t,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=r,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<t.length;++l)Lo[t[l]]=o;i&&(gn[e]=i),s&&(vn[e]=s)}var zo={};function g(r,e){zo[r]=e}function Ii(r){var e=[];r.consumeSpaces();var t=r.fetch().text;for(t==="\\relax"&&(r.consume(),r.consumeSpaces(),t=r.fetch().text);t==="\\hline"||t==="\\hdashline";)r.consume(),e.push(t==="\\hdashline"),r.consumeSpaces(),t=r.fetch().text;return e}var On=r=>{var e=r.parser.settings;if(!e.displayMode)throw new _("{"+r.envName+"} can be used only in display mode.")};function _0(r){if(r.indexOf("ed")===-1)return r.indexOf("*")===-1}function Nt(r,e,t){var{hskipBeforeAndAfter:n,addJot:a,cols:i,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:m,leqno:f}=e;if(r.gullet.beginGroup(),u||r.gullet.macros.set("\\cr","\\\\\\relax"),!s){var v=r.gullet.expandMacroAsText("\\arraystretch");if(v==null)s=1;else if(s=parseFloat(v),!s||s<0)throw new _("Invalid \\arraystretch: "+v)}r.gullet.beginGroup();var y=[],k=[y],C=[],S=[],T=l!=null?[]:void 0;function M(){l&&r.gullet.macros.set("\\@eqnsw","1",!0)}function $(){T&&(r.gullet.macros.get("\\df@tag")?(T.push(r.subparse([new ze("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):T.push(!!l&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(M(),S.push(Ii(r));;){var L=r.parseExpression(!1,u?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup(),L={type:"ordgroup",mode:r.mode,body:L},t&&(L={type:"styling",mode:r.mode,style:t,body:[L]}),y.push(L);var P=r.fetch().text;if(P==="&"){if(m&&y.length===m){if(u||o)throw new _("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if(P==="\\end"){$(),y.length===1&&L.type==="styling"&&L.body[0].body.length===0&&(k.length>1||!d)&&k.pop(),S.length<k.length+1&&S.push([]);break}else if(P==="\\\\"){r.consume();var D=void 0;r.gullet.future().text!==" "&&(D=r.parseSizeGroup(!0)),C.push(D?D.value:null),$(),S.push(Ii(r)),y=[],k.push(y),M()}else throw new _("Expected & or \\\\ or \\cr or \\end",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:r.mode,addJot:a,arraystretch:s,body:k,cols:i,rowGaps:C,hskipBeforeAndAfter:n,hLinesBeforeRow:S,colSeparationType:o,tags:T,leqno:f}}function N0(r){return r.slice(0,1)==="d"?"display":"text"}var nt=function(e,t){var n,a,i=e.body.length,s=e.hLinesBeforeRow,o=0,l=new Array(i),u=[],d=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),m=1/t.fontMetrics().ptPerEm,f=5*m;if(e.colSeparationType&&e.colSeparationType==="small"){var v=t.havingStyle(G.SCRIPT).sizeMultiplier;f=.2778*(v/t.sizeMultiplier)}var y=e.colSeparationType==="CD"?ie({number:3,unit:"ex"},t):12*m,k=3*m,C=e.arraystretch*y,S=.7*C,T=.3*C,M=0;function $(Fr){for(var qr=0;qr<Fr.length;++qr)qr>0&&(M+=.25),u.push({pos:M,isDashed:Fr[qr]})}for($(s[0]),n=0;n<e.body.length;++n){var L=e.body[n],P=S,D=T;o<L.length&&(o=L.length);var W=new Array(L.length);for(a=0;a<L.length;++a){var V=X(L[a],t);D<V.depth&&(D=V.depth),P<V.height&&(P=V.height),W[a]=V}var Ne=e.rowGaps[n],oe=0;Ne&&(oe=ie(Ne,t),oe>0&&(oe+=T,D<oe&&(D=oe),oe=0)),e.addJot&&(D+=k),W.height=P,W.depth=D,M+=P,W.pos=M,M+=D+oe,l[n]=W,$(s[n+1])}var Z=M/2+t.fontMetrics().axisHeight,Ke=e.cols||[],re=[],ge,Be,Vt=[];if(e.tags&&e.tags.some(Fr=>Fr))for(n=0;n<i;++n){var Xt=l[n],na=Xt.pos-Z,vt=e.tags[n],yt=void 0;vt===!0?yt=A.makeSpan(["eqn-num"],[],t):vt===!1?yt=A.makeSpan([],[],t):yt=A.makeSpan([],pe(vt,t,!0),t),yt.depth=Xt.depth,yt.height=Xt.height,Vt.push({type:"elem",elem:yt,shift:na})}for(a=0,Be=0;a<o||Be<Ke.length;++a,++Be){for(var Pe=Ke[Be]||{},fr=!0;Pe.type==="separator";){if(fr||(ge=A.makeSpan(["arraycolsep"],[]),ge.style.width=I(t.fontMetrics().doubleRuleSep),re.push(ge)),Pe.separator==="|"||Pe.separator===":"){var aa=Pe.separator==="|"?"solid":"dashed",Kt=A.makeSpan(["vertical-separator"],[],t);Kt.style.height=I(M),Kt.style.borderRightWidth=I(d),Kt.style.borderRightStyle=aa,Kt.style.margin="0 "+I(-d/2);var mi=M-Z;mi&&(Kt.style.verticalAlign=I(-mi)),re.push(Kt)}else throw new _("Invalid separator type: "+Pe.separator);Be++,Pe=Ke[Be]||{},fr=!1}if(!(a>=o)){var Yt=void 0;(a>0||e.hskipBeforeAndAfter)&&(Yt=K.deflt(Pe.pregap,f),Yt!==0&&(ge=A.makeSpan(["arraycolsep"],[]),ge.style.width=I(Yt),re.push(ge)));var Zt=[];for(n=0;n<i;++n){var Or=l[n],Gr=Or[a];if(Gr){var ju=Or.pos-Z;Gr.depth=Or.depth,Gr.height=Or.height,Zt.push({type:"elem",elem:Gr,shift:ju})}}Zt=A.makeVList({positionType:"individualShift",children:Zt},t),Zt=A.makeSpan(["col-align-"+(Pe.align||"c")],[Zt]),re.push(Zt),(a<o-1||e.hskipBeforeAndAfter)&&(Yt=K.deflt(Pe.postgap,f),Yt!==0&&(ge=A.makeSpan(["arraycolsep"],[]),ge.style.width=I(Yt),re.push(ge)))}}if(l=A.makeSpan(["mtable"],re),u.length>0){for(var Wu=A.makeLineSpan("hline",t,d),Vu=A.makeLineSpan("hdashline",t,d),ia=[{type:"elem",elem:l,shift:0}];u.length>0;){var pi=u.pop(),fi=pi.pos-Z;pi.isDashed?ia.push({type:"elem",elem:Vu,shift:fi}):ia.push({type:"elem",elem:Wu,shift:fi})}l=A.makeVList({positionType:"individualShift",children:ia},t)}if(Vt.length===0)return A.makeSpan(["mord"],[l],t);var sa=A.makeVList({positionType:"individualShift",children:Vt},t);return sa=A.makeSpan(["tag"],[sa],t),A.makeFragment([l,sa])},Ah={c:"center ",l:"left ",r:"right "},at=function(e,t){for(var n=[],a=new R.MathNode("mtd",[],["mtr-glue"]),i=new R.MathNode("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var o=e.body[s],l=[],u=0;u<o.length;u++)l.push(new R.MathNode("mtd",[Q(o[u],t)]));e.tags&&e.tags[s]&&(l.unshift(a),l.push(a),e.leqno?l.unshift(i):l.push(i)),n.push(new R.MathNode("mtr",l))}var d=new R.MathNode("mtable",n),m=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);d.setAttribute("rowspacing",I(m));var f="",v="";if(e.cols&&e.cols.length>0){var y=e.cols,k="",C=!1,S=0,T=y.length;y[0].type==="separator"&&(f+="top ",S=1),y[y.length-1].type==="separator"&&(f+="bottom ",T-=1);for(var M=S;M<T;M++)y[M].type==="align"?(v+=Ah[y[M].align],C&&(k+="none "),C=!0):y[M].type==="separator"&&C&&(k+=y[M].separator==="|"?"solid ":"dashed ",C=!1);d.setAttribute("columnalign",v.trim()),/[sd]/.test(k)&&d.setAttribute("columnlines",k.trim())}if(e.colSeparationType==="align"){for(var $=e.cols||[],L="",P=1;P<$.length;P++)L+=P%2?"0em ":"1em ";d.setAttribute("columnspacing",L.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?d.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?d.setAttribute("columnspacing","0.5em"):d.setAttribute("columnspacing","1em");var D="",W=e.hLinesBeforeRow;f+=W[0].length>0?"left ":"",f+=W[W.length-1].length>0?"right ":"";for(var V=1;V<W.length-1;V++)D+=W[V].length===0?"none ":W[V][0]?"dashed ":"solid ";return/[sd]/.test(D)&&d.setAttribute("rowlines",D.trim()),f!==""&&(d=new R.MathNode("menclose",[d]),d.setAttribute("notation",f.trim())),e.arraystretch&&e.arraystretch<1&&(d=new R.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},$o=function(e,t){e.envName.indexOf("ed")===-1&&On(e);var n=[],a=e.envName.indexOf("at")>-1?"alignat":"align",i=e.envName==="split",s=Nt(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:_0(e.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),o,l=0,u={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var d="",m=0;m<t[0].body.length;m++){var f=U(t[0].body[m],"textord");d+=f.text}o=Number(d),l=o*2}var v=!l;s.body.forEach(function(S){for(var T=1;T<S.length;T+=2){var M=U(S[T],"styling"),$=U(M.body[0],"ordgroup");$.body.unshift(u)}if(v)l<S.length&&(l=S.length);else{var L=S.length/2;if(o<L)throw new _("Too many math in a row: "+("expected "+o+", but got "+L),S[0])}});for(var y=0;y<l;++y){var k="r",C=0;y%2===1?k="l":y>0&&v&&(C=1),n[y]={type:"align",align:k,pregap:C,postgap:0}}return s.colSeparationType=v?"align":"alignat",s};rt({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=Bn(e[0]),n=t?[e[0]]:U(e[0],"ordgroup").body,a=n.map(function(s){var o=A0(s),l=o.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new _("Unknown column alignment: "+l,s)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Nt(r.parser,i,N0(r.envName))},htmlBuilder:nt,mathmlBuilder:at});rt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],t="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(r.envName.charAt(r.envName.length-1)==="*"){var a=r.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),t=a.fetch().text,"lcr".indexOf(t)===-1)throw new _("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:t}]}}var i=Nt(r.parser,n,N0(r.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:t}),e?{type:"leftright",mode:r.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:nt,mathmlBuilder:at});rt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=Nt(r.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:nt,mathmlBuilder:at});rt({type:"array",names:["subarray"],props:{numArgs:1},handler(r,e){var t=Bn(e[0]),n=t?[e[0]]:U(e[0],"ordgroup").body,a=n.map(function(s){var o=A0(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new _("Unknown column alignment: "+l,s)});if(a.length>1)throw new _("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5};if(i=Nt(r.parser,i,"script"),i.body.length>0&&i.body[0].length>1)throw new _("{subarray} can contain only one column");return i},htmlBuilder:nt,mathmlBuilder:at});rt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=Nt(r.parser,e,N0(r.envName));return{type:"leftright",mode:r.mode,body:[t],left:r.envName.indexOf("r")>-1?".":"\\{",right:r.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:nt,mathmlBuilder:at});rt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:$o,htmlBuilder:nt,mathmlBuilder:at});rt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){["gather","gather*"].includes(r.envName)&&On(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:_0(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return Nt(r.parser,e,"display")},htmlBuilder:nt,mathmlBuilder:at});rt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:$o,htmlBuilder:nt,mathmlBuilder:at});rt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){On(r);var e={autoTag:_0(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return Nt(r.parser,e,"display")},htmlBuilder:nt,mathmlBuilder:at});rt({type:"array",names:["CD"],props:{numArgs:0},handler(r){return On(r),hh(r.parser)},htmlBuilder:nt,mathmlBuilder:at});g("\\nonumber","\\gdef\\@eqnsw{0}");g("\\notag","\\nonumber");z({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,e){throw new _(r.funcName+" valid only within array environment")}});var Li=Lo;z({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(r,e){var{parser:t,funcName:n}=r,a=e[0];if(a.type!=="ordgroup")throw new _("Invalid environment name",a);for(var i="",s=0;s<a.body.length;++s)i+=U(a.body[s],"textord").text;if(n==="\\begin"){if(!Li.hasOwnProperty(i))throw new _("No such environment: "+i,a);var o=Li[i],{args:l,optArgs:u}=t.parseArguments("\\begin{"+i+"}",o),d={mode:t.mode,envName:i,parser:t},m=o.handler(d,l,u);t.expect("\\end",!1);var f=t.nextToken,v=U(t.parseFunction(),"environment");if(v.name!==i)throw new _("Mismatch: \\begin{"+i+"} matched by \\end{"+v.name+"}",f);return m}return{type:"environment",mode:t.mode,name:i,nameGroup:a}}});var Bo=(r,e)=>{var t=r.font,n=e.withFont(t);return X(r.body,n)},Po=(r,e)=>{var t=r.font,n=e.withFont(t);return Q(r.body,n)},zi={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};z({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=yn(e[0]),i=n;return i in zi&&(i=zi[i]),{type:"font",mode:t.mode,font:i.slice(1),body:a}},htmlBuilder:Bo,mathmlBuilder:Po});z({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,n=e[0],a=K.isCharacterBox(n);return{type:"mclass",mode:t.mode,mclass:Pn(n),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:n}],isCharacterBox:a}}});z({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:n,breakOnTokenText:a}=r,{mode:i}=t,s=t.parseExpression(!0,a),o="math"+n.slice(1);return{type:"font",mode:i,font:o,body:{type:"ordgroup",mode:t.mode,body:s}}},htmlBuilder:Bo,mathmlBuilder:Po});var Do=(r,e)=>{var t=e;return r==="display"?t=t.id>=G.SCRIPT.id?t.text():G.DISPLAY:r==="text"&&t.size===G.DISPLAY.size?t=G.TEXT:r==="script"?t=G.SCRIPT:r==="scriptscript"&&(t=G.SCRIPTSCRIPT),t},I0=(r,e)=>{var t=Do(r.size,e.style),n=t.fracNum(),a=t.fracDen(),i;i=e.havingStyle(n);var s=X(r.numer,i,e);if(r.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<l?l:s.depth}i=e.havingStyle(a);var u=X(r.denom,i,e),d,m,f;r.hasBarLine?(r.barSize?(m=ie(r.barSize,e),d=A.makeLineSpan("frac-line",e,m)):d=A.makeLineSpan("frac-line",e),m=d.height,f=d.height):(d=null,m=0,f=e.fontMetrics().defaultRuleThickness);var v,y,k;t.size===G.DISPLAY.size||r.size==="display"?(v=e.fontMetrics().num1,m>0?y=3*f:y=7*f,k=e.fontMetrics().denom1):(m>0?(v=e.fontMetrics().num2,y=f):(v=e.fontMetrics().num3,y=3*f),k=e.fontMetrics().denom2);var C;if(d){var T=e.fontMetrics().axisHeight;v-s.depth-(T+.5*m)<y&&(v+=y-(v-s.depth-(T+.5*m))),T-.5*m-(u.height-k)<y&&(k+=y-(T-.5*m-(u.height-k)));var M=-(T-.5*m);C=A.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:k},{type:"elem",elem:d,shift:M},{type:"elem",elem:s,shift:-v}]},e)}else{var S=v-s.depth-(u.height-k);S<y&&(v+=.5*(y-S),k+=.5*(y-S)),C=A.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:k},{type:"elem",elem:s,shift:-v}]},e)}i=e.havingStyle(t),C.height*=i.sizeMultiplier/e.sizeMultiplier,C.depth*=i.sizeMultiplier/e.sizeMultiplier;var $;t.size===G.DISPLAY.size?$=e.fontMetrics().delim1:t.size===G.SCRIPTSCRIPT.size?$=e.havingStyle(G.SCRIPT).fontMetrics().delim2:$=e.fontMetrics().delim2;var L,P;return r.leftDelim==null?L=Ar(e,["mopen"]):L=ht.customSizedDelim(r.leftDelim,$,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?P=A.makeSpan([]):r.rightDelim==null?P=Ar(e,["mclose"]):P=ht.customSizedDelim(r.rightDelim,$,!0,e.havingStyle(t),r.mode,["mclose"]),A.makeSpan(["mord"].concat(i.sizingClasses(e)),[L,A.makeSpan(["mfrac"],[C]),P],e)},L0=(r,e)=>{var t=new R.MathNode("mfrac",[Q(r.numer,e),Q(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var n=ie(r.barSize,e);t.setAttribute("linethickness",I(n))}var a=Do(r.size,e.style);if(a.size!==e.style.size){t=new R.MathNode("mstyle",[t]);var i=a.size===G.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",i),t.setAttribute("scriptlevel","0")}if(r.leftDelim!=null||r.rightDelim!=null){var s=[];if(r.leftDelim!=null){var o=new R.MathNode("mo",[new R.TextNode(r.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(t),r.rightDelim!=null){var l=new R.MathNode("mo",[new R.TextNode(r.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return S0(s)}return t};z({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0],i=e[1],s,o=null,l=null,u="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:t.mode,continued:!1,numer:a,denom:i,hasBarLine:s,leftDelim:o,rightDelim:l,size:u,barSize:null}},htmlBuilder:I0,mathmlBuilder:L0});z({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0],i=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:a,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});z({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(r){var{parser:e,funcName:t,token:n}=r,a;switch(t){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});var $i=["display","text","script","scriptscript"],Bi=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};z({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(r,e){var{parser:t}=r,n=e[4],a=e[5],i=yn(e[0]),s=i.type==="atom"&&i.family==="open"?Bi(i.text):null,o=yn(e[1]),l=o.type==="atom"&&o.family==="close"?Bi(o.text):null,u=U(e[2],"size"),d,m=null;u.isBlank?d=!0:(m=u.value,d=m.number>0);var f="auto",v=e[3];if(v.type==="ordgroup"){if(v.body.length>0){var y=U(v.body[0],"textord");f=$i[Number(y.text)]}}else v=U(v,"textord"),f=$i[Number(v.text)];return{type:"genfrac",mode:t.mode,numer:n,denom:a,continued:!1,hasBarLine:d,barSize:m,leftDelim:s,rightDelim:l,size:f}},htmlBuilder:I0,mathmlBuilder:L0});z({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(r,e){var{parser:t,funcName:n,token:a}=r;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:U(e[0],"size").value,token:a}}});z({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0],i=tc(U(e[1],"infix").size),s=e[2],o=i.number>0;return{type:"genfrac",mode:t.mode,numer:a,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:I0,mathmlBuilder:L0});var Oo=(r,e)=>{var t=e.style,n,a;r.type==="supsub"?(n=r.sup?X(r.sup,e.havingStyle(t.sup()),e):X(r.sub,e.havingStyle(t.sub()),e),a=U(r.base,"horizBrace")):a=U(r,"horizBrace");var i=X(a.base,e.havingBaseStyle(G.DISPLAY)),s=ft.svgSpan(a,e),o;if(a.isOver?(o=A.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]},e),o.children[0].children[0].children[1].classes.push("svg-align")):(o=A.makeVList({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]},e),o.children[0].children[0].children[0].classes.push("svg-align")),n){var l=A.makeSpan(["mord",a.isOver?"mover":"munder"],[o],e);a.isOver?o=A.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},e):o=A.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},e)}return A.makeSpan(["mord",a.isOver?"mover":"munder"],[o],e)},Th=(r,e)=>{var t=ft.mathMLnode(r.label);return new R.MathNode(r.isOver?"mover":"munder",[Q(r.base,e),t])};z({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:n}=r;return{type:"horizBrace",mode:t.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:Oo,mathmlBuilder:Th});z({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=e[1],a=U(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:t.mode,href:a,body:ue(n)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=pe(r.body,e,!1);return A.makeAnchor(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=Et(r.body,e);return t instanceof Le||(t=new Le("mrow",[t])),t.setAttribute("href",r.href),t}});z({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=U(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:n}))return t.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var s=n[i];s==="~"&&(s="\\textasciitilde"),a.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:t.mode,font:"\\texttt",body:a};return{type:"href",mode:t.mode,href:n,body:ue(o)}}});z({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(r,e){var{parser:t}=r;return{type:"hbox",mode:t.mode,body:ue(e[0])}},htmlBuilder(r,e){var t=pe(r.body,e,!1);return A.makeFragment(t)},mathmlBuilder(r,e){return new R.MathNode("mrow",Re(r.body,e))}});z({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:n,token:a}=r,i=U(e[0],"raw").string,s=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(n){case"\\htmlClass":l.class=i,o={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,o={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,o={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),d=0;d<u.length;d++){var m=u[d],f=m.indexOf("=");if(f<0)throw new _("\\htmlData key/value '"+m+"' missing equals sign");var v=m.slice(0,f),y=m.slice(f+1);l["data-"+v.trim()]=y}o={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return t.settings.isTrusted(o)?{type:"html",mode:t.mode,attributes:l,body:ue(s)}:t.formatUnsupportedCmd(n)},htmlBuilder:(r,e)=>{var t=pe(r.body,e,!1),n=["enclosing"];r.attributes.class&&n.push(...r.attributes.class.trim().split(/\s+/));var a=A.makeSpan(n,t,e);for(var i in r.attributes)i!=="class"&&r.attributes.hasOwnProperty(i)&&a.setAttribute(i,r.attributes[i]);return a},mathmlBuilder:(r,e)=>Et(r.body,e)});z({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:ue(e[0]),mathml:ue(e[1])}},htmlBuilder:(r,e)=>{var t=pe(r.html,e,!1);return A.makeFragment(t)},mathmlBuilder:(r,e)=>Et(r.mathml,e)});var ya=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 _("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!no(n))throw new _("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};z({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,e,t)=>{var{parser:n}=r,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(t[0])for(var l=U(t[0],"raw").string,u=l.split(","),d=0;d<u.length;d++){var m=u[d].split("=");if(m.length===2){var f=m[1].trim();switch(m[0].trim()){case"alt":o=f;break;case"width":a=ya(f);break;case"height":i=ya(f);break;case"totalheight":s=ya(f);break;default:throw new _("Invalid key: '"+m[0]+"' in \\includegraphics.")}}}var v=U(e[0],"url").url;return o===""&&(o=v,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:v})?{type:"includegraphics",mode:n.mode,alt:o,width:a,height:i,totalheight:s,src:v}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(r,e)=>{var t=ie(r.height,e),n=0;r.totalheight.number>0&&(n=ie(r.totalheight,e)-t);var a=0;r.width.number>0&&(a=ie(r.width,e));var i={height:I(t+n)};a>0&&(i.width=I(a)),n>0&&(i.verticalAlign=I(-n));var s=new Tc(r.src,r.alt,i);return s.height=t,s.depth=n,s},mathmlBuilder:(r,e)=>{var t=new R.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var n=ie(r.height,e),a=0;if(r.totalheight.number>0&&(a=ie(r.totalheight,e)-n,t.setAttribute("valign",I(-a))),t.setAttribute("height",I(n+a)),r.width.number>0){var i=ie(r.width,e);t.setAttribute("width",I(i))}return t.setAttribute("src",r.src),t}});z({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:n}=r,a=U(e[0],"size");if(t.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:a.value}},htmlBuilder(r,e){return A.makeGlue(r.dimension,e)},mathmlBuilder(r,e){var t=ie(r.dimension,e);return new R.SpaceNode(t)}});z({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0];return{type:"lap",mode:t.mode,alignment:n.slice(5),body:a}},htmlBuilder:(r,e)=>{var t;r.alignment==="clap"?(t=A.makeSpan([],[X(r.body,e)]),t=A.makeSpan(["inner"],[t],e)):t=A.makeSpan(["inner"],[X(r.body,e)]);var n=A.makeSpan(["fix"],[]),a=A.makeSpan([r.alignment],[t,n],e),i=A.makeSpan(["strut"]);return i.style.height=I(a.height+a.depth),a.depth&&(i.style.verticalAlign=I(-a.depth)),a.children.unshift(i),a=A.makeSpan(["thinbox"],[a],e),A.makeSpan(["mord","vbox"],[a],e)},mathmlBuilder:(r,e)=>{var t=new R.MathNode("mpadded",[Q(r.body,e)]);if(r.alignment!=="rlap"){var n=r.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",n+"width")}return t.setAttribute("width","0px"),t}});z({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){var{funcName:t,parser:n}=r,a=n.mode;n.switchMode("math");var i=t==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:s}}});z({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new _("Mismatched "+r.funcName)}});var Pi=(r,e)=>{switch(e.style.size){case G.DISPLAY.size:return r.display;case G.TEXT.size:return r.text;case G.SCRIPT.size:return r.script;case G.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};z({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:ue(e[0]),text:ue(e[1]),script:ue(e[2]),scriptscript:ue(e[3])}},htmlBuilder:(r,e)=>{var t=Pi(r,e),n=pe(t,e,!1);return A.makeFragment(n)},mathmlBuilder:(r,e)=>{var t=Pi(r,e);return Et(t,e)}});var Go=(r,e,t,n,a,i,s)=>{r=A.makeSpan([],[r]);var o=t&&K.isCharacterBox(t),l,u;if(e){var d=X(e,n.havingStyle(a.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(t){var m=X(t,n.havingStyle(a.sub()),n);l={elem:m,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-m.height)}}var f;if(u&&l){var v=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+r.depth+s;f=A.makeVList({positionType:"bottom",positionData:v,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:I(-i)},{type:"kern",size:l.kern},{type:"elem",elem:r},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:I(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(l){var y=r.height-s;f=A.makeVList({positionType:"top",positionData:y,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:I(-i)},{type:"kern",size:l.kern},{type:"elem",elem:r}]},n)}else if(u){var k=r.depth+s;f=A.makeVList({positionType:"bottom",positionData:k,children:[{type:"elem",elem:r},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:I(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return r;var C=[f];if(l&&i!==0&&!o){var S=A.makeSpan(["mspace"],[],n);S.style.marginRight=I(i),C.unshift(S)}return A.makeSpan(["mop","op-limits"],C,n)},Fo=["\\smallint"],cr=(r,e)=>{var t,n,a=!1,i;r.type==="supsub"?(t=r.sup,n=r.sub,i=U(r.base,"op"),a=!0):i=U(r,"op");var s=e.style,o=!1;s.size===G.DISPLAY.size&&i.symbol&&!Fo.includes(i.name)&&(o=!0);var l;if(i.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(d=i.name.slice(1),i.name=d==="oiint"?"\\iint":"\\iiint"),l=A.makeSymbol(i.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var m=l.italic,f=A.staticSvg(d+"Size"+(o?"2":"1"),e);l=A.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]},e),i.name="\\"+d,l.classes.unshift("mop"),l.italic=m}}else if(i.body){var v=pe(i.body,e,!0);v.length===1&&v[0]instanceof qe?(l=v[0],l.classes[0]="mop"):l=A.makeSpan(["mop"],v,e)}else{for(var y=[],k=1;k<i.name.length;k++)y.push(A.mathsym(i.name[k],i.mode,e));l=A.makeSpan(["mop"],y,e)}var C=0,S=0;return(l instanceof qe||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(C=(l.height-l.depth)/2-e.fontMetrics().axisHeight,S=l.italic),a?Go(l,t,n,e,s,S,C):(C&&(l.style.position="relative",l.style.top=I(C)),l)},zr=(r,e)=>{var t;if(r.symbol)t=new Le("mo",[He(r.name,r.mode)]),Fo.includes(r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new Le("mo",Re(r.body,e));else{t=new Le("mi",[new tt(r.name.slice(1))]);var n=new Le("mo",[He("⁡","text")]);r.parentIsSupSub?t=new Le("mrow",[t,n]):t=fo([t,n])}return t},Mh={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};z({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=n;return a.length===1&&(a=Mh[a]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:cr,mathmlBuilder:zr});z({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,n=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ue(n)}},htmlBuilder:cr,mathmlBuilder:zr});var Eh={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};z({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(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:cr,mathmlBuilder:zr});z({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:cr,mathmlBuilder:zr});z({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(r){var{parser:e,funcName:t}=r,n=t;return n.length===1&&(n=Eh[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:cr,mathmlBuilder:zr});var qo=(r,e)=>{var t,n,a=!1,i;r.type==="supsub"?(t=r.sup,n=r.sub,i=U(r.base,"operatorname"),a=!0):i=U(r,"operatorname");var s;if(i.body.length>0){for(var o=i.body.map(m=>{var f=m.text;return typeof f=="string"?{type:"textord",mode:m.mode,text:f}:m}),l=pe(o,e.withFont("mathrm"),!0),u=0;u<l.length;u++){var d=l[u];d instanceof qe&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=A.makeSpan(["mop"],l,e)}else s=A.makeSpan(["mop"],[],e);return a?Go(s,t,n,e,e.style,0,0):s},Rh=(r,e)=>{for(var t=Re(r.body,e.withFont("mathrm")),n=!0,a=0;a<t.length;a++){var i=t[a];if(!(i instanceof R.SpaceNode))if(i instanceof R.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var s=i.children[0];i.children.length===1&&s instanceof R.TextNode?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=t.map(d=>d.toText()).join("");t=[new R.TextNode(o)]}var l=new R.MathNode("mi",t);l.setAttribute("mathvariant","normal");var u=new R.MathNode("mo",[He("⁡","text")]);return r.parentIsSupSub?new R.MathNode("mrow",[l,u]):R.newDocumentFragment([l,u])};z({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:n}=r,a=e[0];return{type:"operatorname",mode:t.mode,body:ue(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:qo,mathmlBuilder:Rh});g("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Ht({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?A.makeFragment(pe(r.body,e,!1)):A.makeSpan(["mord"],pe(r.body,e,!0),e)},mathmlBuilder(r,e){return Et(r.body,e,!0)}});z({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,e){var{parser:t}=r,n=e[0];return{type:"overline",mode:t.mode,body:n}},htmlBuilder(r,e){var t=X(r.body,e.havingCrampedStyle()),n=A.makeLineSpan("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=A.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]},e);return A.makeSpan(["mord","overline"],[i],e)},mathmlBuilder(r,e){var t=new R.MathNode("mo",[new R.TextNode("‾")]);t.setAttribute("stretchy","true");var n=new R.MathNode("mover",[Q(r.body,e),t]);return n.setAttribute("accent","true"),n}});z({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=e[0];return{type:"phantom",mode:t.mode,body:ue(n)}},htmlBuilder:(r,e)=>{var t=pe(r.body,e.withPhantom(),!1);return A.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=Re(r.body,e);return new R.MathNode("mphantom",t)}});z({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=e[0];return{type:"hphantom",mode:t.mode,body:n}},htmlBuilder:(r,e)=>{var t=A.makeSpan([],[X(r.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var n=0;n<t.children.length;n++)t.children[n].height=0,t.children[n].depth=0;return t=A.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e),A.makeSpan(["mord"],[t],e)},mathmlBuilder:(r,e)=>{var t=Re(ue(r.body),e),n=new R.MathNode("mphantom",t),a=new R.MathNode("mpadded",[n]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}});z({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,n=e[0];return{type:"vphantom",mode:t.mode,body:n}},htmlBuilder:(r,e)=>{var t=A.makeSpan(["inner"],[X(r.body,e.withPhantom())]),n=A.makeSpan(["fix"],[]);return A.makeSpan(["mord","rlap"],[t,n],e)},mathmlBuilder:(r,e)=>{var t=Re(ue(r.body),e),n=new R.MathNode("mphantom",t),a=new R.MathNode("mpadded",[n]);return a.setAttribute("width","0px"),a}});z({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r,n=U(e[0],"size").value,a=e[1];return{type:"raisebox",mode:t.mode,dy:n,body:a}},htmlBuilder(r,e){var t=X(r.body,e),n=ie(r.dy,e);return A.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new R.MathNode("mpadded",[Q(r.body,e)]),n=r.dy.number+r.dy.unit;return t.setAttribute("voffset",n),t}});z({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});z({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(r,e,t){var{parser:n}=r,a=t[0],i=U(e[0],"size"),s=U(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&U(a,"size").value,width:i.value,height:s.value}},htmlBuilder(r,e){var t=A.makeSpan(["mord","rule"],[],e),n=ie(r.width,e),a=ie(r.height,e),i=r.shift?ie(r.shift,e):0;return t.style.borderRightWidth=I(n),t.style.borderTopWidth=I(a),t.style.bottom=I(i),t.width=n,t.height=a+i,t.depth=-i,t.maxFontSize=a*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=ie(r.width,e),n=ie(r.height,e),a=r.shift?ie(r.shift,e):0,i=e.color&&e.getColor()||"black",s=new R.MathNode("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",I(t)),s.setAttribute("height",I(n));var o=new R.MathNode("mpadded",[s]);return a>=0?o.setAttribute("height",I(a)):(o.setAttribute("height",I(a)),o.setAttribute("depth",I(-a))),o.setAttribute("voffset",I(a)),o}});function Ho(r,e,t){for(var n=pe(r,e,!1),a=e.sizeMultiplier/t.sizeMultiplier,i=0;i<n.length;i++){var s=n[i].classes.indexOf("sizing");s<0?Array.prototype.push.apply(n[i].classes,e.sizingClasses(t)):n[i].classes[s+1]==="reset-size"+e.size&&(n[i].classes[s+1]="reset-size"+t.size),n[i].height*=a,n[i].depth*=a}return A.makeFragment(n)}var Di=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],_h=(r,e)=>{var t=e.havingSize(r.size);return Ho(r.body,t,e)};z({type:"sizing",names:Di,props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{breakOnTokenText:t,funcName:n,parser:a}=r,i=a.parseExpression(!1,t);return{type:"sizing",mode:a.mode,size:Di.indexOf(n)+1,body:i}},htmlBuilder:_h,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),n=Re(r.body,t),a=new R.MathNode("mstyle",n);return a.setAttribute("mathsize",I(t.sizeMultiplier)),a}});z({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,e,t)=>{var{parser:n}=r,a=!1,i=!1,s=t[0]&&U(t[0],"ordgroup");if(s)for(var o="",l=0;l<s.body.length;++l){var u=s.body[l];if(o=u.text,o==="t")a=!0;else if(o==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var d=e[0];return{type:"smash",mode:n.mode,body:d,smashHeight:a,smashDepth:i}},htmlBuilder:(r,e)=>{var t=A.makeSpan([],[X(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0,t.children))for(var n=0;n<t.children.length;n++)t.children[n].height=0;if(r.smashDepth&&(t.depth=0,t.children))for(var a=0;a<t.children.length;a++)t.children[a].depth=0;var i=A.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e);return A.makeSpan(["mord"],[i],e)},mathmlBuilder:(r,e)=>{var t=new R.MathNode("mpadded",[Q(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});z({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:n}=r,a=t[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(r,e){var t=X(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=A.wrapFragment(t,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;e.style.id<G.TEXT.id&&(i=e.fontMetrics().xHeight);var s=a+i/4,o=t.height+t.depth+s+a,{span:l,ruleWidth:u,advanceWidth:d}=ht.sqrtImage(o,e),m=l.height-u;m>t.height+t.depth+s&&(s=(s+m-t.height-t.depth)/2);var f=l.height-t.height-s-u;t.style.paddingLeft=I(d);var v=A.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]},e);if(r.index){var y=e.havingStyle(G.SCRIPTSCRIPT),k=X(r.index,y,e),C=.6*(v.height-v.depth),S=A.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:k}]},e),T=A.makeSpan(["root"],[S]);return A.makeSpan(["mord","sqrt"],[T,v],e)}else return A.makeSpan(["mord","sqrt"],[v],e)},mathmlBuilder(r,e){var{body:t,index:n}=r;return n?new R.MathNode("mroot",[Q(t,e),Q(n,e)]):new R.MathNode("msqrt",[Q(t,e)])}});var Oi={display:G.DISPLAY,text:G.TEXT,script:G.SCRIPT,scriptscript:G.SCRIPTSCRIPT};z({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r,e){var{breakOnTokenText:t,funcName:n,parser:a}=r,i=a.parseExpression(!0,t),s=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(r,e){var t=Oi[r.style],n=e.havingStyle(t).withFont("");return Ho(r.body,n,e)},mathmlBuilder(r,e){var t=Oi[r.style],n=e.havingStyle(t),a=Re(r.body,n),i=new R.MathNode("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[r.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var Nh=function(e,t){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(t.style.size===G.DISPLAY.size||n.alwaysHandleSupSub);return a?cr:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(t.style.size===G.DISPLAY.size||n.limits);return i?qo:null}else{if(n.type==="accent")return K.isCharacterBox(n.base)?T0:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Oo:null}else return null}else return null};Ht({type:"supsub",htmlBuilder(r,e){var t=Nh(r,e);if(t)return t(r,e);var{base:n,sup:a,sub:i}=r,s=X(n,e),o,l,u=e.fontMetrics(),d=0,m=0,f=n&&K.isCharacterBox(n);if(a){var v=e.havingStyle(e.style.sup());o=X(a,v,e),f||(d=s.height-v.fontMetrics().supDrop*v.sizeMultiplier/e.sizeMultiplier)}if(i){var y=e.havingStyle(e.style.sub());l=X(i,y,e),f||(m=s.depth+y.fontMetrics().subDrop*y.sizeMultiplier/e.sizeMultiplier)}var k;e.style===G.DISPLAY?k=u.sup1:e.style.cramped?k=u.sup3:k=u.sup2;var C=e.sizeMultiplier,S=I(.5/u.ptPerEm/C),T=null;if(l){var M=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(s instanceof qe||M)&&(T=I(-s.italic))}var $;if(o&&l){d=Math.max(d,k,o.depth+.25*u.xHeight),m=Math.max(m,u.sub2);var L=u.defaultRuleThickness,P=4*L;if(d-o.depth-(l.height-m)<P){m=P-(d-o.depth)+l.height;var D=.8*u.xHeight-(d-o.depth);D>0&&(d+=D,m-=D)}var W=[{type:"elem",elem:l,shift:m,marginRight:S,marginLeft:T},{type:"elem",elem:o,shift:-d,marginRight:S}];$=A.makeVList({positionType:"individualShift",children:W},e)}else if(l){m=Math.max(m,u.sub1,l.height-.8*u.xHeight);var V=[{type:"elem",elem:l,marginLeft:T,marginRight:S}];$=A.makeVList({positionType:"shift",positionData:m,children:V},e)}else if(o)d=Math.max(d,k,o.depth+.25*u.xHeight),$=A.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:S}]},e);else throw new Error("supsub must have either sup or sub.");var Ne=Ua(s,"right")||"mord";return A.makeSpan([Ne],[s,A.makeSpan(["msupsub"],[$])],e)},mathmlBuilder(r,e){var t=!1,n,a;r.base&&r.base.type==="horizBrace"&&(a=!!r.sup,a===r.base.isOver&&(t=!0,n=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var i=[Q(r.base,e)];r.sub&&i.push(Q(r.sub,e)),r.sup&&i.push(Q(r.sup,e));var s;if(t)s=n?"mover":"munder";else if(r.sub)if(r.sup){var u=r.base;u&&u.type==="op"&&u.limits&&e.style===G.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(e.style===G.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=r.base;l&&l.type==="op"&&l.limits&&(e.style===G.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===G.DISPLAY)?s="munder":s="msub"}else{var o=r.base;o&&o.type==="op"&&o.limits&&(e.style===G.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===G.DISPLAY)?s="mover":s="msup"}return new R.MathNode(s,i)}});Ht({type:"atom",htmlBuilder(r,e){return A.mathsym(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new R.MathNode("mo",[He(r.text,r.mode)]);if(r.family==="bin"){var n=C0(r,e);n==="bold-italic"&&t.setAttribute("mathvariant",n)}else r.family==="punct"?t.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&t.setAttribute("stretchy","false");return t}});var Uo={mi:"italic",mn:"normal",mtext:"normal"};Ht({type:"mathord",htmlBuilder(r,e){return A.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new R.MathNode("mi",[He(r.text,r.mode,e)]),n=C0(r,e)||"italic";return n!==Uo[t.type]&&t.setAttribute("mathvariant",n),t}});Ht({type:"textord",htmlBuilder(r,e){return A.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=He(r.text,r.mode,e),n=C0(r,e)||"normal",a;return r.mode==="text"?a=new R.MathNode("mtext",[t]):/[0-9]/.test(r.text)?a=new R.MathNode("mn",[t]):r.text==="\\prime"?a=new R.MathNode("mo",[t]):a=new R.MathNode("mi",[t]),n!==Uo[a.type]&&a.setAttribute("mathvariant",n),a}});var ba={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},wa={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ht({type:"spacing",htmlBuilder(r,e){if(wa.hasOwnProperty(r.text)){var t=wa[r.text].className||"";if(r.mode==="text"){var n=A.makeOrd(r,e,"textord");return n.classes.push(t),n}else return A.makeSpan(["mspace",t],[A.mathsym(r.text,r.mode,e)],e)}else{if(ba.hasOwnProperty(r.text))return A.makeSpan(["mspace",ba[r.text]],[],e);throw new _('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(wa.hasOwnProperty(r.text))t=new R.MathNode("mtext",[new R.TextNode(" ")]);else{if(ba.hasOwnProperty(r.text))return new R.MathNode("mspace");throw new _('Unknown type of space "'+r.text+'"')}return t}});var Gi=()=>{var r=new R.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};Ht({type:"tag",mathmlBuilder(r,e){var t=new R.MathNode("mtable",[new R.MathNode("mtr",[Gi(),new R.MathNode("mtd",[Et(r.body,e)]),Gi(),new R.MathNode("mtd",[Et(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var Fi={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},qi={"\\textbf":"textbf","\\textmd":"textmd"},Ih={"\\textit":"textit","\\textup":"textup"},Hi=(r,e)=>{var t=r.font;if(t){if(Fi[t])return e.withTextFontFamily(Fi[t]);if(qi[t])return e.withTextFontWeight(qi[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Ih[t])};z({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:n}=r,a=e[0];return{type:"text",mode:t.mode,body:ue(a),font:n}},htmlBuilder(r,e){var t=Hi(r,e),n=pe(r.body,t,!0);return A.makeSpan(["mord","text"],n,t)},mathmlBuilder(r,e){var t=Hi(r,e);return Et(r.body,t)}});z({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=X(r.body,e),n=A.makeLineSpan("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=A.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:t}]},e);return A.makeSpan(["mord","underline"],[i],e)},mathmlBuilder(r,e){var t=new R.MathNode("mo",[new R.TextNode("‾")]);t.setAttribute("stretchy","true");var n=new R.MathNode("munder",[Q(r.body,e),t]);return n.setAttribute("accentunder","true"),n}});z({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=X(r.body,e),n=e.fontMetrics().axisHeight,a=.5*(t.height-n-(t.depth+n));return A.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){return new R.MathNode("mpadded",[Q(r.body,e)],["vcenter"])}});z({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,e,t){throw new _("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){for(var t=Ui(r),n=[],a=e.havingStyle(e.style.text()),i=0;i<t.length;i++){var s=t[i];s==="~"&&(s="\\textasciitilde"),n.push(A.makeSymbol(s,"Typewriter-Regular",r.mode,a,["mord","texttt"]))}return A.makeSpan(["mord","text"].concat(a.sizingClasses(e)),A.tryCombineChars(n),a)},mathmlBuilder(r,e){var t=new R.TextNode(Ui(r)),n=new R.MathNode("mtext",[t]);return n.setAttribute("mathvariant","monospace"),n}});var Ui=r=>r.body.replace(/ /g,r.star?"␣":" "),Ct=mo,jo=`[ \r
259
+ ]`,Lh="\\\\[a-zA-Z@]+",zh="\\\\[^\uD800-\uDFFF]",$h="("+Lh+")"+jo+"*",Bh=`\\\\(
260
+ |[ \r ]+
261
+ ?)[ \r ]*`,Xa="[̀-ͯ]",Ph=new RegExp(Xa+"+$"),Dh="("+jo+"+)|"+(Bh+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Xa+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Xa+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+$h)+("|"+zh+")");class ji{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=new RegExp(Dh,"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 ze("EOF",new Ee(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new _("Unexpected character: '"+e[t]+"'",new ze(e[t],new Ee(this,t,t+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(`
262
+ `,this.tokenRegex.lastIndex);return i===-1?(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=i+1,this.lex()}return new ze(a,new Ee(this,t,this.tokenRegex.lastIndex))}}class Oh{constructor(e,t){e===void 0&&(e={}),t===void 0&&(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(this.undefStack.length===0)throw new _("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)&&(e[t]==null?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,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}}var Gh=zo;g("\\noexpand",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});g("\\expandafter",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});g("\\@firstoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});g("\\@secondoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});g("\\@ifnextchar",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});g("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");g("\\TextOrMath",function(r){var e=r.consumeArgs(2);return r.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Wi={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};g("\\char",function(r){var e=r.popToken(),t,n="";if(e.text==="'")t=8,e=r.popToken();else if(e.text==='"')t=16,e=r.popToken();else if(e.text==="`")if(e=r.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new _("\\char` missing argument");n=e.text.charCodeAt(0)}else t=10;if(t){if(n=Wi[e.text],n==null||n>=t)throw new _("Invalid base-"+t+" digit "+e.text);for(var a;(a=Wi[r.future().text])!=null&&a<t;)n*=t,n+=a,r.popToken()}return"\\@char{"+n+"}"});var z0=(r,e,t,n)=>{var a=r.consumeArg().tokens;if(a.length!==1)throw new _("\\newcommand's first argument must be a macro name");var i=a[0].text,s=r.isDefined(i);if(s&&!e)throw new _("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!t)throw new _("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=r.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var l="",u=r.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=r.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new _("Invalid number of arguments: "+l);o=parseInt(l),a=r.consumeArg().tokens}return s&&n||r.macros.set(i,{tokens:a,numArgs:o}),""};g("\\newcommand",r=>z0(r,!1,!0,!1));g("\\renewcommand",r=>z0(r,!0,!1,!1));g("\\providecommand",r=>z0(r,!0,!0,!0));g("\\message",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});g("\\errmessage",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});g("\\show",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),Ct[t],te.math[t],te.text[t]),""});g("\\bgroup","{");g("\\egroup","}");g("~","\\nobreakspace");g("\\lq","`");g("\\rq","'");g("\\aa","\\r a");g("\\AA","\\r A");g("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");g("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");g("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");g("ℬ","\\mathscr{B}");g("ℰ","\\mathscr{E}");g("ℱ","\\mathscr{F}");g("ℋ","\\mathscr{H}");g("ℐ","\\mathscr{I}");g("ℒ","\\mathscr{L}");g("ℳ","\\mathscr{M}");g("ℛ","\\mathscr{R}");g("ℭ","\\mathfrak{C}");g("ℌ","\\mathfrak{H}");g("ℨ","\\mathfrak{Z}");g("\\Bbbk","\\Bbb{k}");g("·","\\cdotp");g("\\llap","\\mathllap{\\textrm{#1}}");g("\\rlap","\\mathrlap{\\textrm{#1}}");g("\\clap","\\mathclap{\\textrm{#1}}");g("\\mathstrut","\\vphantom{(}");g("\\underbar","\\underline{\\text{#1}}");g("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');g("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");g("\\ne","\\neq");g("≠","\\neq");g("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");g("∉","\\notin");g("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");g("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");g("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");g("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");g("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");g("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");g("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");g("⟂","\\perp");g("‼","\\mathclose{!\\mkern-0.8mu!}");g("∌","\\notni");g("⌜","\\ulcorner");g("⌝","\\urcorner");g("⌞","\\llcorner");g("⌟","\\lrcorner");g("©","\\copyright");g("®","\\textregistered");g("️","\\textregistered");g("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');g("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');g("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');g("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');g("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");g("⋮","\\vdots");g("\\varGamma","\\mathit{\\Gamma}");g("\\varDelta","\\mathit{\\Delta}");g("\\varTheta","\\mathit{\\Theta}");g("\\varLambda","\\mathit{\\Lambda}");g("\\varXi","\\mathit{\\Xi}");g("\\varPi","\\mathit{\\Pi}");g("\\varSigma","\\mathit{\\Sigma}");g("\\varUpsilon","\\mathit{\\Upsilon}");g("\\varPhi","\\mathit{\\Phi}");g("\\varPsi","\\mathit{\\Psi}");g("\\varOmega","\\mathit{\\Omega}");g("\\substack","\\begin{subarray}{c}#1\\end{subarray}");g("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");g("\\boxed","\\fbox{$\\displaystyle{#1}$}");g("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");g("\\implies","\\DOTSB\\;\\Longrightarrow\\;");g("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");g("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");g("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Vi={",":"\\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"};g("\\dots",function(r){var e="\\dotso",t=r.expandAfterFuture().text;return t in Vi?e=Vi[t]:(t.slice(0,4)==="\\not"||t in te.math&&["bin","rel"].includes(te.math[t].group))&&(e="\\dotsb"),e});var $0={")":!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};g("\\dotso",function(r){var e=r.future().text;return e in $0?"\\ldots\\,":"\\ldots"});g("\\dotsc",function(r){var e=r.future().text;return e in $0&&e!==","?"\\ldots\\,":"\\ldots"});g("\\cdots",function(r){var e=r.future().text;return e in $0?"\\@cdots\\,":"\\@cdots"});g("\\dotsb","\\cdots");g("\\dotsm","\\cdots");g("\\dotsi","\\!\\cdots");g("\\dotsx","\\ldots\\,");g("\\DOTSI","\\relax");g("\\DOTSB","\\relax");g("\\DOTSX","\\relax");g("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");g("\\,","\\tmspace+{3mu}{.1667em}");g("\\thinspace","\\,");g("\\>","\\mskip{4mu}");g("\\:","\\tmspace+{4mu}{.2222em}");g("\\medspace","\\:");g("\\;","\\tmspace+{5mu}{.2777em}");g("\\thickspace","\\;");g("\\!","\\tmspace-{3mu}{.1667em}");g("\\negthinspace","\\!");g("\\negmedspace","\\tmspace-{4mu}{.2222em}");g("\\negthickspace","\\tmspace-{5mu}{.277em}");g("\\enspace","\\kern.5em ");g("\\enskip","\\hskip.5em\\relax");g("\\quad","\\hskip1em\\relax");g("\\qquad","\\hskip2em\\relax");g("\\tag","\\@ifstar\\tag@literal\\tag@paren");g("\\tag@paren","\\tag@literal{({#1})}");g("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new _("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});g("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");g("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");g("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");g("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");g("\\newline","\\\\\\relax");g("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Wo=I(et["Main-Regular"][84][1]-.7*et["Main-Regular"][65][1]);g("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Wo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");g("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Wo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");g("\\hspace","\\@ifstar\\@hspacer\\@hspace");g("\\@hspace","\\hskip #1\\relax");g("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");g("\\ordinarycolon",":");g("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");g("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');g("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');g("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');g("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');g("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');g("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');g("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');g("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');g("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');g("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');g("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');g("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');g("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');g("∷","\\dblcolon");g("∹","\\eqcolon");g("≔","\\coloneqq");g("≕","\\eqqcolon");g("⩴","\\Coloneqq");g("\\ratio","\\vcentcolon");g("\\coloncolon","\\dblcolon");g("\\colonequals","\\coloneqq");g("\\coloncolonequals","\\Coloneqq");g("\\equalscolon","\\eqqcolon");g("\\equalscoloncolon","\\Eqqcolon");g("\\colonminus","\\coloneq");g("\\coloncolonminus","\\Coloneq");g("\\minuscolon","\\eqcolon");g("\\minuscoloncolon","\\Eqcolon");g("\\coloncolonapprox","\\Colonapprox");g("\\coloncolonsim","\\Colonsim");g("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");g("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");g("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");g("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");g("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");g("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");g("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");g("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");g("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");g("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");g("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");g("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");g("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");g("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");g("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");g("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");g("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");g("\\nleqq","\\html@mathml{\\@nleqq}{≰}");g("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");g("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");g("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");g("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");g("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");g("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");g("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");g("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");g("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");g("\\imath","\\html@mathml{\\@imath}{ı}");g("\\jmath","\\html@mathml{\\@jmath}{ȷ}");g("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");g("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");g("⟦","\\llbracket");g("⟧","\\rrbracket");g("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");g("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");g("⦃","\\lBrace");g("⦄","\\rBrace");g("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");g("⦵","\\minuso");g("\\darr","\\downarrow");g("\\dArr","\\Downarrow");g("\\Darr","\\Downarrow");g("\\lang","\\langle");g("\\rang","\\rangle");g("\\uarr","\\uparrow");g("\\uArr","\\Uparrow");g("\\Uarr","\\Uparrow");g("\\N","\\mathbb{N}");g("\\R","\\mathbb{R}");g("\\Z","\\mathbb{Z}");g("\\alef","\\aleph");g("\\alefsym","\\aleph");g("\\Alpha","\\mathrm{A}");g("\\Beta","\\mathrm{B}");g("\\bull","\\bullet");g("\\Chi","\\mathrm{X}");g("\\clubs","\\clubsuit");g("\\cnums","\\mathbb{C}");g("\\Complex","\\mathbb{C}");g("\\Dagger","\\ddagger");g("\\diamonds","\\diamondsuit");g("\\empty","\\emptyset");g("\\Epsilon","\\mathrm{E}");g("\\Eta","\\mathrm{H}");g("\\exist","\\exists");g("\\harr","\\leftrightarrow");g("\\hArr","\\Leftrightarrow");g("\\Harr","\\Leftrightarrow");g("\\hearts","\\heartsuit");g("\\image","\\Im");g("\\infin","\\infty");g("\\Iota","\\mathrm{I}");g("\\isin","\\in");g("\\Kappa","\\mathrm{K}");g("\\larr","\\leftarrow");g("\\lArr","\\Leftarrow");g("\\Larr","\\Leftarrow");g("\\lrarr","\\leftrightarrow");g("\\lrArr","\\Leftrightarrow");g("\\Lrarr","\\Leftrightarrow");g("\\Mu","\\mathrm{M}");g("\\natnums","\\mathbb{N}");g("\\Nu","\\mathrm{N}");g("\\Omicron","\\mathrm{O}");g("\\plusmn","\\pm");g("\\rarr","\\rightarrow");g("\\rArr","\\Rightarrow");g("\\Rarr","\\Rightarrow");g("\\real","\\Re");g("\\reals","\\mathbb{R}");g("\\Reals","\\mathbb{R}");g("\\Rho","\\mathrm{P}");g("\\sdot","\\cdot");g("\\sect","\\S");g("\\spades","\\spadesuit");g("\\sub","\\subset");g("\\sube","\\subseteq");g("\\supe","\\supseteq");g("\\Tau","\\mathrm{T}");g("\\thetasym","\\vartheta");g("\\weierp","\\wp");g("\\Zeta","\\mathrm{Z}");g("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");g("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");g("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");g("\\bra","\\mathinner{\\langle{#1}|}");g("\\ket","\\mathinner{|{#1}\\rangle}");g("\\braket","\\mathinner{\\langle{#1}\\rangle}");g("\\Bra","\\left\\langle#1\\right|");g("\\Ket","\\left|#1\\right\\rangle");var Vo=r=>e=>{var t=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=m=>f=>{r&&(f.macros.set("|",s),a.length&&f.macros.set("\\|",o));var v=m;if(!m&&a.length){var y=f.future();y.text==="|"&&(f.popToken(),v=!0)}return{tokens:v?a:n,numArgs:0}};e.macros.set("|",l(!1)),a.length&&e.macros.set("\\|",l(!0));var u=e.consumeArg().tokens,d=e.expandTokens([...i,...u,...t]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};g("\\bra@ket",Vo(!1));g("\\bra@set",Vo(!0));g("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");g("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");g("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");g("\\angln","{\\angl n}");g("\\blue","\\textcolor{##6495ed}{#1}");g("\\orange","\\textcolor{##ffa500}{#1}");g("\\pink","\\textcolor{##ff00af}{#1}");g("\\red","\\textcolor{##df0030}{#1}");g("\\green","\\textcolor{##28ae7b}{#1}");g("\\gray","\\textcolor{gray}{#1}");g("\\purple","\\textcolor{##9d38bd}{#1}");g("\\blueA","\\textcolor{##ccfaff}{#1}");g("\\blueB","\\textcolor{##80f6ff}{#1}");g("\\blueC","\\textcolor{##63d9ea}{#1}");g("\\blueD","\\textcolor{##11accd}{#1}");g("\\blueE","\\textcolor{##0c7f99}{#1}");g("\\tealA","\\textcolor{##94fff5}{#1}");g("\\tealB","\\textcolor{##26edd5}{#1}");g("\\tealC","\\textcolor{##01d1c1}{#1}");g("\\tealD","\\textcolor{##01a995}{#1}");g("\\tealE","\\textcolor{##208170}{#1}");g("\\greenA","\\textcolor{##b6ffb0}{#1}");g("\\greenB","\\textcolor{##8af281}{#1}");g("\\greenC","\\textcolor{##74cf70}{#1}");g("\\greenD","\\textcolor{##1fab54}{#1}");g("\\greenE","\\textcolor{##0d923f}{#1}");g("\\goldA","\\textcolor{##ffd0a9}{#1}");g("\\goldB","\\textcolor{##ffbb71}{#1}");g("\\goldC","\\textcolor{##ff9c39}{#1}");g("\\goldD","\\textcolor{##e07d10}{#1}");g("\\goldE","\\textcolor{##a75a05}{#1}");g("\\redA","\\textcolor{##fca9a9}{#1}");g("\\redB","\\textcolor{##ff8482}{#1}");g("\\redC","\\textcolor{##f9685d}{#1}");g("\\redD","\\textcolor{##e84d39}{#1}");g("\\redE","\\textcolor{##bc2612}{#1}");g("\\maroonA","\\textcolor{##ffbde0}{#1}");g("\\maroonB","\\textcolor{##ff92c6}{#1}");g("\\maroonC","\\textcolor{##ed5fa6}{#1}");g("\\maroonD","\\textcolor{##ca337c}{#1}");g("\\maroonE","\\textcolor{##9e034e}{#1}");g("\\purpleA","\\textcolor{##ddd7ff}{#1}");g("\\purpleB","\\textcolor{##c6b9fc}{#1}");g("\\purpleC","\\textcolor{##aa87ff}{#1}");g("\\purpleD","\\textcolor{##7854ab}{#1}");g("\\purpleE","\\textcolor{##543b78}{#1}");g("\\mintA","\\textcolor{##f5f9e8}{#1}");g("\\mintB","\\textcolor{##edf2df}{#1}");g("\\mintC","\\textcolor{##e0e5cc}{#1}");g("\\grayA","\\textcolor{##f6f7f7}{#1}");g("\\grayB","\\textcolor{##f0f1f2}{#1}");g("\\grayC","\\textcolor{##e3e5e6}{#1}");g("\\grayD","\\textcolor{##d6d8da}{#1}");g("\\grayE","\\textcolor{##babec2}{#1}");g("\\grayF","\\textcolor{##888d93}{#1}");g("\\grayG","\\textcolor{##626569}{#1}");g("\\grayH","\\textcolor{##3b3e40}{#1}");g("\\grayI","\\textcolor{##21242c}{#1}");g("\\kaBlue","\\textcolor{##314453}{#1}");g("\\kaGreen","\\textcolor{##71B307}{#1}");var Xo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Fh{constructor(e,t,n){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 Oh(Gh,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new ji(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:t,end:n}=this.consumeArg());return this.pushToken(new ze("EOF",n.loc)),this.pushTokens(a),new ze("",Ee.range(t,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),t.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new _("Extra }",i)}else if(i.text==="EOF")throw new _("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:a,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new _("The length of delimiters doesn't match the number of args!");for(var n=t[0],a=0;a<n.length;a++){var i=this.popToken();if(n[a]!==i.text)throw new _("Use of the macro doesn't match its definition",i)}}for(var s=[],o=0;o<e;o++)s.push(this.consumeArg(t&&t[o+1]).tokens);return s}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new _("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),n=t.text,a=t.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new _("Undefined control sequence: "+n);return this.pushToken(t),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if(l.text==="#"){if(o===0)throw new _("Incomplete placeholder at end of macro body",l);if(l=i[--o],l.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(l.text))i.splice(o,2,...s[+l.text-1]);else throw new _("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new ze(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),t.push(a)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(n=>n.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var a=typeof t=="function"?t(this):t;if(typeof a=="string"){var i=0;if(a.indexOf("#")!==-1)for(var s=a.replace(/##/g,"");s.indexOf("#"+(i+1))!==-1;)++i;for(var o=new ji(a,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:i};return d}return a}isDefined(e){return this.macros.has(e)||Ct.hasOwnProperty(e)||te.math.hasOwnProperty(e)||te.text.hasOwnProperty(e)||Xo.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:Ct.hasOwnProperty(e)&&!Ct[e].primitive}}var Xi=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Zr=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),xa={"́":{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"}},Ki={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Gn{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 Fh(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new _("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(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 ze("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(e,t){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(Gn.endOfExpression.indexOf(a.text)!==-1||t&&a.text===t||e&&Ct[a.text]&&Ct[a.text].infix)break;var i=this.parseAtom(t);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var t=-1,n,a=0;a<e.length;a++)if(e[a].type==="infix"){if(t!==-1)throw new _("only one infix operator per group",e[a].token);t=a,n=e[a].replaceWith}if(t!==-1&&n){var i,s,o=e.slice(0,t),l=e.slice(t+1);o.length===1&&o[0].type==="ordgroup"?i=o[0]:i={type:"ordgroup",mode:this.mode,body:o},l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l};var u;return n==="\\\\abovefrac"?u=this.callFunction(n,[i,e[t],s],[]):u=this.callFunction(n,[i,s],[]),[u]}else return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(e)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new _("Expected group after '"+n+"'",t);return a}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var a={type:"text",mode:this.mode,body:t},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(e){var t=this.parseGroup("atom",e);if(t?.type==="internal"||this.mode==="text")return t;for(var n,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(t&&t.type==="op"){var s=i.text==="\\limits";t.limits=s,t.alwaysHandleSupSub=!0}else if(t&&t.type==="operatorname")t.alwaysHandleSupSub&&(t.limits=i.text==="\\limits");else throw new _("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new _("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new _("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new _("Double superscript",i);var o={type:"textord",mode:this.mode,text:"\\prime"},l=[o];for(this.consume();this.fetch().text==="'";)l.push(o),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:l}}else if(Zr[i.text]){var u=Xi.test(i.text),d=[];for(d.push(new ze(Zr[i.text])),this.consume();;){var m=this.fetch().text;if(!Zr[m]||Xi.test(m)!==u)break;d.unshift(new ze(Zr[m])),this.consume()}var f=this.subparse(d);u?a={type:"ordgroup",mode:"math",body:f}:n={type:"ordgroup",mode:"math",body:f}}else break}return n||a?{type:"supsub",mode:this.mode,base:t,sup:n,sub:a}:t}parseFunction(e,t){var n=this.fetch(),a=n.text,i=Ct[a];if(!i)return null;if(this.consume(),t&&t!=="atom"&&!i.allowedInArgument)throw new _("Got function '"+a+"' with no arguments"+(t?" as "+t:""),n);if(this.mode==="text"&&!i.allowedInText)throw new _("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new _("Can't use function '"+a+"' in math mode",n);var{args:s,optArgs:o}=this.parseArguments(a,i);return this.callFunction(a,s,o,n,e)}callFunction(e,t,n,a,i){var s={funcName:e,parser:this,token:a,breakOnTokenText:i},o=Ct[e];if(o&&o.handler)return o.handler(s,t,n);throw new _("No function handler for "+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var a=[],i=[],s=0;s<n;s++){var o=t.argTypes&&t.argTypes[s],l=s<t.numOptionalArgs;(t.primitive&&o==null||t.type==="sqrt"&&s===1&&i[0]==null)&&(o="primitive");var u=this.parseGroupOfType("argument to '"+e+"'",o,l);if(l)i.push(u);else if(u!=null)a.push(u);else throw new _("Null argument, please report this as a bug")}return{args:a,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",n);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(n)throw new _("A primitive argument cannot be optional");var s=this.parseGroup(e);if(s==null)throw new _("Expected group as "+e,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new _("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(n==null)return null;for(var a="",i;(i=this.fetch()).text!=="EOF";)a+=i.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(e,t){for(var n=this.fetch(),a=n,i="",s;(s=this.fetch()).text!=="EOF"&&e.test(i+s.text);)a=s,i+=a.text,this.consume();if(i==="")throw new _("Invalid "+t+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new _("Invalid color: '"+t.text+"'",t);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?t=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):t=this.parseStringGroup("size",e),!t)return null;!e&&t.text.length===0&&(t.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!a)throw new _("Invalid size: '"+t.text+"'",t);var i={number:+(a[1]+a[2]),unit:a[3]};if(!no(i))throw new _("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var a=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(a),s}parseGroup(e,t){var n=this.fetch(),a=n.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var s=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),l=this.fetch();this.expect(s),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:Ee.range(n,l),body:o,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&a[0]==="\\"&&!Xo.hasOwnProperty(a)){if(this.settings.throwOnError)throw new _("Undefined control sequence: "+a,n);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var a=e[n],i=a.text;i==="-"&&e[n+1].text==="-"&&(n+1<t&&e[n+2].text==="-"?(e.splice(n,3,{type:"textord",mode:"text",loc:Ee.range(a,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:Ee.range(a,e[n+1]),text:"--"}),t-=1)),(i==="'"||i==="`")&&e[n+1].text===i&&(e.splice(n,2,{type:"textord",mode:"text",loc:Ee.range(a,e[n+1]),text:i+i}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new _(`\\verb assertion failed --
263
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}Ki.hasOwnProperty(t[0])&&!te[this.mode][t[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Ki[t[0]]+t.slice(1));var i=Ph.exec(t);i&&(t=t.substring(0,i.index),t==="i"?t="ı":t==="j"&&(t="ȷ"));var s;if(te[this.mode][t]){this.settings.strict&&this.mode==="math"&&Ha.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o=te[this.mode][t].group,l=Ee.range(e),u;if(Rc.hasOwnProperty(o)){var d=o;u={type:"atom",mode:this.mode,family:d,loc:l,text:t}}else u={type:o,mode:this.mode,loc:l,text:t};s=u}else if(t.charCodeAt(0)>=128)this.settings.strict&&(ro(t.charCodeAt(0))?this.mode==="math"&&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)),s={type:"textord",mode:"text",loc:Ee.range(e),text:t};else return null;if(this.consume(),i)for(var m=0;m<i[0].length;m++){var f=i[0][m];if(!xa[f])throw new _("Unknown accent ' "+f+"'",e);var v=xa[f][this.mode]||xa[f].text;if(!v)throw new _("Accent "+f+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:Ee.range(e),label:v,isStretchy:!1,isShifty:!0,base:s}}return s}}Gn.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var B0=function(e,t){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Gn(e,t);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new _("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new ze("\\df@tag")])}]}return a},Ko=function(e,t,n){t.textContent="";var a=P0(e,n).toNode();t.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Ko=function(){throw new _("KaTeX doesn't work in quirks mode.")});var qh=function(e,t){var n=P0(e,t).toMarkup();return n},Hh=function(e,t){var n=new y0(t);return B0(e,n)},Yo=function(e,t,n){if(n.throwOnError||!(e instanceof _))throw e;var a=A.makeSpan(["katex-error"],[new qe(t)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},P0=function(e,t){var n=new y0(t);try{var a=B0(e,n);return Qc(a,e,n)}catch(i){return Yo(i,e,n)}},Uh=function(e,t){var n=new y0(t);try{var a=B0(e,n);return Jc(a,e,n)}catch(i){return Yo(i,e,n)}},jh="0.16.27",Wh={Span:Lr,Anchor:x0,SymbolNode:qe,SvgNode:mt,PathNode:Mt,LineNode:qa},Vh={version:jh,render:Ko,renderToString:qh,ParseError:_,SETTINGS_SCHEMA:ln,__parse:Hh,__renderToDomTree:P0,__renderToHTMLTree:Uh,__setFontMetrics:xc,__defineSymbol:c,__defineFunction:z,__defineMacro:g,__domTree:Wh};function D0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ut=D0();function Zo(r){Ut=r}var Bt={exec:()=>null};function Jt(r){let e=[];return t=>{let n=Math.max(0,Math.min(3,t-1)),a=e[n];return a||(a=r(n),e[n]=a),a}}function j(r,e=""){let t=typeof r=="string"?r:r.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(xe.caret,"$1"),t=t.replace(a,s),n},getRegex:()=>new RegExp(t,e)};return n}var Xh=((r="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+r)}catch{return!1}})(),xe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Jt(r=>new RegExp(`^ {0,${r}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Jt(r=>new RegExp(`^ {0,${r}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Jt(r=>new RegExp(`^ {0,${r}}(?:\`\`\`|~~~)`)),headingBeginRegex:Jt(r=>new RegExp(`^ {0,${r}}#`)),htmlBeginRegex:Jt(r=>new RegExp(`^ {0,${r}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Jt(r=>new RegExp(`^ {0,${r}}>`))},Kh=/^(?:[ \t]*(?:\n|$))+/,Yh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Zh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$r=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Qh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,O0=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Qo=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Jo=j(Qo).replace(/bull/g,O0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Jh=j(Qo).replace(/bull/g,O0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),G0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,e1=/^[^\n]+/,F0=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,t1=j(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",F0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),r1=j(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,O0).getRegex(),Fn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",q0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,n1=j("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",q0).replace("tag",Fn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),el=r=>j(G0).replace("hr",$r).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",r).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Fn).getRegex(),a1=el(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),i1=el(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),s1=j(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",i1).getRegex(),H0={blockquote:s1,code:Yh,def:t1,fences:Zh,heading:Qh,hr:$r,html:n1,lheading:Jo,list:r1,newline:Kh,paragraph:a1,table:Bt,text:e1},Yi=j("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$r).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Fn).getRegex(),o1={...H0,lheading:Jh,table:Yi,paragraph:j(G0).replace("hr",$r).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Yi).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Fn).getRegex()},l1={...H0,html:j(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",q0).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Bt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:j(G0).replace("hr",$r).replace("heading",` *#{1,6} *[^
264
+ ]`).replace("lheading",Jo).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},u1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,c1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,tl=/^( {2,}|\\)\n(?!\s*$)/,h1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,hr=/[\p{P}\p{S}]/u,qn=/[\s\p{P}\p{S}]/u,U0=/[^\s\p{P}\p{S}]/u,d1=j(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,qn).getRegex(),rl=/(?!~)[\p{P}\p{S}]/u,m1=/(?!~)[\s\p{P}\p{S}]/u,p1=/(?:[^\s\p{P}\p{S}]|~)/u,f1=j(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Xh?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),nl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,g1=j(nl,"u").replace(/punct/g,hr).getRegex(),v1=j(nl,"u").replace(/punct/g,rl).getRegex(),al="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",y1=j(al,"gu").replace(/notPunctSpace/g,U0).replace(/punctSpace/g,qn).replace(/punct/g,hr).getRegex(),b1=j(al,"gu").replace(/notPunctSpace/g,p1).replace(/punctSpace/g,m1).replace(/punct/g,rl).getRegex(),w1=j("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,U0).replace(/punctSpace/g,qn).replace(/punct/g,hr).getRegex(),x1=j(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,hr).getRegex(),k1="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",S1=j(k1,"gu").replace(/notPunctSpace/g,U0).replace(/punctSpace/g,qn).replace(/punct/g,hr).getRegex(),C1=j(/\\(punct)/,"gu").replace(/punct/g,hr).getRegex(),A1=j(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),T1=j(q0).replace("(?:-->|$)","-->").getRegex(),M1=j("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",T1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,E1=j(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",bn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),il=j(/^!?\[(label)\]\[(ref)\]/).replace("label",bn).replace("ref",F0).getRegex(),sl=j(/^!?\[(ref)\](?:\[\])?/).replace("ref",F0).getRegex(),R1=j("reflink|nolink(?!\\()","g").replace("reflink",il).replace("nolink",sl).getRegex(),Zi=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,j0={_backpedal:Bt,anyPunctuation:C1,autolink:A1,blockSkip:f1,br:tl,code:c1,del:Bt,delLDelim:Bt,delRDelim:Bt,emStrongLDelim:g1,emStrongRDelimAst:y1,emStrongRDelimUnd:w1,escape:u1,link:E1,nolink:sl,punctuation:d1,reflink:il,reflinkSearch:R1,tag:M1,text:h1,url:Bt},_1={...j0,link:j(/^!?\[(label)\]\((.*?)\)/).replace("label",bn).getRegex(),reflink:j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",bn).getRegex()},Ka={...j0,emStrongRDelimAst:b1,emStrongLDelim:v1,delLDelim:x1,delRDelim:S1,url:j(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Zi).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:j(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Zi).getRegex()},N1={...Ka,br:j(tl).replace("{2,}","*").getRegex(),text:j(Ka.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Qr={normal:H0,gfm:o1,pedantic:l1},gr={normal:j0,gfm:Ka,breaks:N1,pedantic:_1},I1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Qi=r=>I1[r];function Ye(r,e){if(e){if(xe.escapeTest.test(r))return r.replace(xe.escapeReplace,Qi)}else if(xe.escapeTestNoEncode.test(r))return r.replace(xe.escapeReplaceNoEncode,Qi);return r}function Ji(r){try{r=encodeURI(r).replace(xe.percentDecode,"%")}catch{return null}return r}function es(r,e){let t=r.replace(xe.findPipe,(i,s,o)=>{let l=!1,u=s;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),n=t.split(xe.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(xe.slashPipe,"|");return n}function xt(r,e,t){let n=r.length;if(n===0)return"";let a=0;for(;a<n&&r.charAt(n-a-1)===e;)a++;return r.slice(0,n-a)}function ts(r){let e=r.split(`
265
+ `),t=e.length-1;for(;t>=0&&xe.blankLine.test(e[t]);)t--;return e.length-t<=2?r:e.slice(0,t+1).join(`
266
+ `)}function L1(r,e){if(r.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<r.length;n++)if(r[n]==="\\")n++;else if(r[n]===e[0])t++;else if(r[n]===e[1]&&(t--,t<0))return n;return t>0?-2:-1}function z1(r,e=0){let t=e,n="";for(let a of r)if(a===" "){let i=4-t%4;n+=" ".repeat(i),t+=i}else n+=a,t++;return n}function rs(r,e,t,n,a){let i=e.href,s=e.title||null,o=r[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:r[0].charAt(0)==="!"?"image":"link",raw:t,href:i,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}function $1(r,e,t){let n=r.match(t.other.indentCodeCompensation);if(n===null)return e;let a=n[1];return e.split(`
267
+ `).map(i=>{let s=i.match(t.other.beginningSpace);if(s===null)return i;let[o]=s;return o.length>=a.length?i.slice(a.length):i}).join(`
268
+ `)}var wn=class{options;rules;lexer;constructor(e){this.options=e||Ut}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:ts(t[0]),a=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:a}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],a=$1(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:a}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let a=xt(n,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(n=a.trim())}return{type:"heading",raw:xt(t[0],`
269
+ `),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:xt(t[0],`
270
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=xt(t[0],`
271
+ `).split(`
272
+ `),a="",i="",s=[];for(;n.length>0;){let o=!1,l=[],u;for(u=0;u<n.length;u++)if(this.rules.other.blockquoteStart.test(n[u]))l.push(n[u]),o=!0;else if(!o)l.push(n[u]);else break;n=n.slice(u);let d=l.join(`
273
+ `),m=d.replace(this.rules.other.blockquoteSetextReplace,`
274
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
275
+ ${d}`:d,i=i?`${i}
276
+ ${m}`:m;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,s,!0),this.lexer.state.top=f,n.length===0)break;let v=s.at(-1);if(v?.type==="code")break;if(v?.type==="blockquote"){let y=v,k=y.raw+`
277
+ `+n.join(`
278
+ `),C=this.blockquote(k);s[s.length-1]=C,a=a.substring(0,a.length-y.raw.length)+C.raw,i=i.substring(0,i.length-y.text.length)+C.text;break}else if(v?.type==="list"){let y=v,k=y.raw+`
279
+ `+n.join(`
280
+ `),C=this.list(k);s[s.length-1]=C,a=a.substring(0,a.length-v.raw.length)+C.raw,i=i.substring(0,i.length-y.raw.length)+C.raw,n=k.substring(s.at(-1).raw.length).split(`
281
+ `);continue}}return{type:"blockquote",raw:a,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),a=n.length>1,i={type:"list",raw:"",ordered:a,start:a?+n.slice(0,-1):"",loose:!1,items:[]};n=a?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=a?n:"[*+-]");let s=this.rules.other.listItemRegex(n),o=!1;for(;e;){let u=!1,d="",m="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let f=z1(t[2].split(`
282
+ `,1)[0],t[1].length),v=e.split(`
283
+ `,1)[0],y=!f.trim(),k=0;if(this.options.pedantic?(k=2,m=f.trimStart()):y?k=t[1].length+1:(k=f.search(this.rules.other.nonSpaceChar),k=k>4?1:k,m=f.slice(k),k+=t[1].length),y&&this.rules.other.blankLine.test(v)&&(d+=v+`
284
+ `,e=e.substring(v.length+1),u=!0),!u){let C=this.rules.other.nextBulletRegex(k),S=this.rules.other.hrRegex(k),T=this.rules.other.fencesBeginRegex(k),M=this.rules.other.headingBeginRegex(k),$=this.rules.other.htmlBeginRegex(k),L=this.rules.other.blockquoteBeginRegex(k);for(;e;){let P=e.split(`
285
+ `,1)[0],D;if(v=P,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),D=v):D=v.replace(this.rules.other.tabCharGlobal," "),T.test(v)||M.test(v)||$.test(v)||L.test(v)||C.test(v)||S.test(v))break;if(D.search(this.rules.other.nonSpaceChar)>=k||!v.trim())m+=`
286
+ `+D.slice(k);else{if(y||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(f)||M.test(f)||S.test(f))break;m+=`
287
+ `+v}y=!v.trim(),d+=P+`
288
+ `,e=e.substring(P.length+1),f=D.slice(k)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(o=!0)),i.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(m),loose:!1,text:m,tokens:[]}),i.raw+=d}let l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u of i.items){this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]);let d=u.tokens[0];if(u.task&&(d?.type==="text"||d?.type==="paragraph")){u.text=u.text.replace(this.rules.other.listReplaceTask,""),d.raw=d.raw.replace(this.rules.other.listReplaceTask,""),d.text=d.text.replace(this.rules.other.listReplaceTask,"");for(let f=this.lexer.inlineQueue.length-1;f>=0;f--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[f].src)){this.lexer.inlineQueue[f].src=this.lexer.inlineQueue[f].src.replace(this.rules.other.listReplaceTask,"");break}let m=this.rules.other.listTaskCheckbox.exec(u.raw);if(m){let f={type:"checkbox",raw:m[0]+" ",checked:m[0]!=="[ ]"};u.checked=f.checked,i.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=f.raw+u.tokens[0].raw,u.tokens[0].text=f.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(f)):u.tokens.unshift({type:"paragraph",raw:f.raw,text:f.raw,tokens:[f]}):u.tokens.unshift(f)}}else u.task&&(u.task=!1);if(!i.loose){let m=u.tokens.filter(v=>v.type==="space"),f=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));i.loose=f}}if(i.loose)for(let u of i.items){u.loose=!0;for(let d of u.tokens)d.type==="text"&&(d.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=ts(t[0]);return{type:"html",block:!0,raw:n,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:xt(t[0],`
289
+ `),href:a,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=es(t[1]),a=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
290
+ `):[],s={type:"table",raw:xt(t[0],`
291
+ `),header:[],align:[],rows:[]};if(n.length===a.length){for(let o of a)this.rules.other.tableAlignRight.test(o)?s.align.push("right"):this.rules.other.tableAlignCenter.test(o)?s.align.push("center"):this.rules.other.tableAlignLeft.test(o)?s.align.push("left"):s.align.push(null);for(let o=0;o<n.length;o++)s.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:s.align[o]});for(let o of i)s.rows.push(es(o,s.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[u]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:xt(t[0],`
292
+ `),depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
293
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=xt(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=L1(t[2],"()");if(s===-2)return;if(s>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let a=t[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(a);s&&(a=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?a=a.slice(1):a=a.slice(1,-1)),rs(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let a=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[a.toLowerCase()];if(!i){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return rs(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||!a[1]&&!a[2]&&!a[3]&&!a[4]||a[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...a[0]].length-1,s,o,l=i,u=0,d=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(a=d.exec(t))!==null;){if(s=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!s)continue;if(o=[...s].length,a[3]||a[4]){l+=o;continue}else if((a[5]||a[6])&&i%3&&!((i+o)%3)){u+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+u);let m=[...a[0]][0].length,f=e.slice(0,i+a.index+m+o);if(Math.min(i,o)%2){let y=f.slice(1,-1);return{type:"em",raw:f,text:y,tokens:this.lexer.inlineTokens(y)}}let v=f.slice(2,-2);return{type:"strong",raw:f,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return a&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let a=this.rules.inline.delLDelim.exec(e);if(a&&(!a[1]||!n||this.rules.inline.punctuation.exec(n))){let i=[...a[0]].length-1,s,o,l=i,u=this.rules.inline.delRDelim;for(u.lastIndex=0,t=t.slice(-1*e.length+i);(a=u.exec(t))!==null;){if(s=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!s||(o=[...s].length,o!==i))continue;if(a[3]||a[4]){l+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l);let d=[...a[0]][0].length,m=e.slice(0,i+a.index+d+o),f=m.slice(i,-i);return{type:"del",raw:m,text:f,tokens:this.lexer.inlineTokens(f)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,a;return t[2]==="@"?(n=t[1],a="mailto:"+n):(n=t[1],a=n),{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,a;if(t[2]==="@")n=t[0],a="mailto:"+n;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);n=t[0],t[1]==="www."?a="http://"+t[0]:a=t[0]}return{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},je=class Ya{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ut,this.options.tokenizer=this.options.tokenizer||new wn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:xe,block:Qr.normal,inline:gr.normal};this.options.pedantic?(t.block=Qr.pedantic,t.inline=gr.pedantic):this.options.gfm&&(t.block=Qr.gfm,this.options.breaks?t.inline=gr.breaks:t.inline=gr.gfm),this.tokenizer.rules=t}static get rules(){return{block:Qr,inline:gr}}static lex(e,t){return new Ya(t).lex(e)}static lexInline(e,t){return new Ya(t).inlineTokens(e)}lex(e){e=e.replace(xe.carriageReturn,`
294
+ `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(xe.tabCharGlobal," ").replace(xe.spaceLine,""));let a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(o=>(i=o.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let o=t.at(-1);i.raw.length===1&&o!==void 0?o.raw+=`
295
+ `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let o=t.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
296
+ `)?"":`
297
+ `)+i.raw,o.text+=`
298
+ `+i.text,this.inlineQueue.at(-1).src=o.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let o=t.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
299
+ `)?"":`
300
+ `)+i.raw,o.text+=`
301
+ `+i.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let s=e;if(this.options.extensions?.startBlock){let o=1/0,l=e.slice(1),u;this.options.extensions.startBlock.forEach(d=>{u=d.call({lexer:this},l),typeof u=="number"&&u>=0&&(o=Math.min(o,u))}),o<1/0&&o>=0&&(s=e.substring(0,o+1))}if(this.state.top&&(i=this.tokenizer.paragraph(s))){let o=t.at(-1);n&&o?.type==="paragraph"?(o.raw+=(o.raw.endsWith(`
302
+ `)?"":`
303
+ `)+i.raw,o.text+=`
304
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(i),n=s.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let o=t.at(-1);o?.type==="text"?(o.raw+=(o.raw.endsWith(`
305
+ `)?"":`
306
+ `)+i.raw,o.text+=`
307
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links){let o=Object.keys(this.tokens.links);o.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,l=>o.includes(l.slice(l.lastIndexOf("[")+1,-1))?"["+"a".repeat(l.length-2)+"]":l))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),n=n.replace(this.tokenizer.rules.inline.blockSkip,(o,l,u)=>{let d=u?u.length:0;return o.slice(0,d)+"["+"a".repeat(o.length-d-2)+"]"}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,i="",s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(i=""),a=!1;let o;if(this.options.extensions?.inline?.some(u=>(o=u.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let u=t.at(-1);o.type==="text"&&u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let l=e;if(this.options.extensions?.startInline){let u=1/0,d=e.slice(1),m;this.options.extensions.startInline.forEach(f=>{m=f.call({lexer:this},d),typeof m=="number"&&m>=0&&(u=Math.min(u,m))}),u<1/0&&u>=0&&(l=e.substring(0,u+1))}if(o=this.tokenizer.inlineText(l)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(i=o.raw.slice(-1)),a=!0;let u=t.at(-1);u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw new Error(t)}},xn=class{options;parser;constructor(e){this.options=e||Ut}space(e){return""}code({text:e,lang:t,escaped:n}){let a=(t||"").match(xe.notSpaceStart)?.[0],i=e.replace(xe.endingNewline,"")+`
308
+ `;return a?'<pre><code class="language-'+Ye(a)+'">'+(n?i:Ye(i,!0))+`</code></pre>
309
+ `:"<pre><code>"+(n?i:Ye(i,!0))+`</code></pre>
310
+ `}blockquote({tokens:e}){return`<blockquote>
311
+ ${this.parser.parse(e)}</blockquote>
312
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
313
+ `}hr(e){return`<hr>
314
+ `}list(e){let t=e.ordered,n=e.start,a="";for(let o=0;o<e.items.length;o++){let l=e.items[o];a+=this.listitem(l)}let i=t?"ol":"ul",s=t&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
315
+ `+a+"</"+i+`>
316
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
317
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
318
+ `}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let a="";for(let i=0;i<e.rows.length;i++){let s=e.rows[i];n="";for(let o=0;o<s.length;o++)n+=this.tablecell(s[o]);a+=this.tablerow({text:n})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
319
+ <thead>
320
+ `+t+`</thead>
321
+ `+a+`</table>
322
+ `}tablerow({text:e}){return`<tr>
323
+ ${e}</tr>
324
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
325
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ye(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let a=this.parser.parseInline(n),i=Ji(e);if(i===null)return a;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+Ye(t)+'"'),s+=">"+a+"</a>",s}image({href:e,title:t,text:n,tokens:a}){a&&(n=this.parser.parseInline(a,this.parser.textRenderer));let i=Ji(e);if(i===null)return Ye(n);e=i;let s=`<img src="${e}" alt="${Ye(n)}"`;return t&&(s+=` title="${Ye(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ye(e.text)}},W0=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},We=class Za{options;renderer;textRenderer;constructor(e){this.options=e||Ut,this.options.renderer=this.options.renderer||new xn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new W0}static parse(e,t){return new Za(t).parse(e)}static parseInline(e,t){return new Za(t).parseInline(e)}parse(e){this.renderer.parser=this;let t="";for(let n=0;n<e.length;n++){let a=e[n];if(this.options.extensions?.renderers?.[a.type]){let s=a,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){t+=o||"";continue}}let i=a;switch(i.type){case"space":{t+=this.renderer.space(i);break}case"hr":{t+=this.renderer.hr(i);break}case"heading":{t+=this.renderer.heading(i);break}case"code":{t+=this.renderer.code(i);break}case"table":{t+=this.renderer.table(i);break}case"blockquote":{t+=this.renderer.blockquote(i);break}case"list":{t+=this.renderer.list(i);break}case"checkbox":{t+=this.renderer.checkbox(i);break}case"html":{t+=this.renderer.html(i);break}case"def":{t+=this.renderer.def(i);break}case"paragraph":{t+=this.renderer.paragraph(i);break}case"text":{t+=this.renderer.text(i);break}default:{let s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n="";for(let a=0;a<e.length;a++){let i=e[a];if(this.options.extensions?.renderers?.[i.type]){let o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=o||"";continue}}let s=i;switch(s.type){case"escape":{n+=t.text(s);break}case"html":{n+=t.html(s);break}case"link":{n+=t.link(s);break}case"image":{n+=t.image(s);break}case"checkbox":{n+=t.checkbox(s);break}case"strong":{n+=t.strong(s);break}case"em":{n+=t.em(s);break}case"codespan":{n+=t.codespan(s);break}case"br":{n+=t.br(s);break}case"del":{n+=t.del(s);break}case"text":{n+=t.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}},br=class{options;block;constructor(e){this.options=e||Ut}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?je.lex:je.lexInline}provideParser(e=this.block){return e?We.parse:We.parseInline}},ol=class{defaults=D0();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=We;Renderer=xn;TextRenderer=W0;Lexer=je;Tokenizer=wn;Hooks=br;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":{let i=a;for(let s of i.header)n=n.concat(this.walkTokens(s.tokens,t));for(let s of i.rows)for(let o of s)n=n.concat(this.walkTokens(o.tokens,t));break}case"list":{let i=a;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=a;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{let o=i[s].flat(1/0);n=n.concat(this.walkTokens(o,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let a={...n};if(a.async=this.defaults.async||a.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=t.renderers[i.name];s?t.renderers[i.name]=function(...o){let l=i.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=t[i.level];s?s.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),a.extensions=t),n.renderer){let i=this.defaults.renderer||new xn(this.defaults);for(let s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=n.renderer[o],u=i[o];i[o]=(...d)=>{let m=l.apply(i,d);return m===!1&&(m=u.apply(i,d)),m||""}}a.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new wn(this.defaults);for(let s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=n.tokenizer[o],u=i[o];i[o]=(...d)=>{let m=l.apply(i,d);return m===!1&&(m=u.apply(i,d)),m}}a.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new br;for(let s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=n.hooks[o],u=i[o];br.passThroughHooks.has(s)?i[o]=d=>{if(this.defaults.async&&br.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(i,d);return u.call(i,f)})();let m=l.call(i,d);return u.call(i,m)}:i[o]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(i,d);return f===!1&&(f=await u.apply(i,d)),f})();let m=l.apply(i,d);return m===!1&&(m=u.apply(i,d)),m}}a.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,s=n.walkTokens;a.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),i&&(l=l.concat(i.call(this,o))),l}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return je.lex(e,t??this.defaults)}parser(e,t){return We.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let a={...n},i={...this.defaults,...a},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&a.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let o=i.hooks?await i.hooks.preprocess(t):t,l=await(i.hooks?await i.hooks.provideLexer(e):e?je.lex:je.lexInline)(o,i),u=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(u,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser(e):e?We.parse:We.parseInline)(u,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(s);try{i.hooks&&(t=i.hooks.preprocess(t));let o=(i.hooks?i.hooks.provideLexer(e):e?je.lex:je.lexInline)(t,i);i.hooks&&(o=i.hooks.processAllTokens(o)),i.walkTokens&&this.walkTokens(o,i.walkTokens);let l=(i.hooks?i.hooks.provideParser(e):e?We.parse:We.parseInline)(o,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(o){return s(o)}}}onError(e,t){return n=>{if(n.message+=`
326
+ Please report this to https://github.com/markedjs/marked.`,e){let a="<p>An error occurred:</p><pre>"+Ye(n.message+"",!0)+"</pre>";return t?Promise.resolve(a):a}if(t)return Promise.reject(n);throw n}}},Gt=new ol;function Y(r,e){return Gt.parse(r,e)}Y.options=Y.setOptions=function(r){return Gt.setOptions(r),Y.defaults=Gt.defaults,Zo(Y.defaults),Y};Y.getDefaults=D0;Y.defaults=Ut;Y.use=function(...r){return Gt.use(...r),Y.defaults=Gt.defaults,Zo(Y.defaults),Y};Y.walkTokens=function(r,e){return Gt.walkTokens(r,e)};Y.parseInline=Gt.parseInline;Y.Parser=We;Y.parser=We.parse;Y.Renderer=xn;Y.TextRenderer=W0;Y.Lexer=je;Y.lexer=je.lex;Y.Tokenizer=wn;Y.Hooks=br;Y.parse=Y;Y.options;Y.setOptions;Y.use;Y.walkTokens;Y.parseInline;We.parse;je.lex;function B1(r={}){const{highlight:e,container:t}=r;return{async:!0,async walkTokens(n){var a;if(n.type!=="code"||typeof e!="function")return;const[i="text",...s]=((a=n.lang)==null?void 0:a.split(" "))??[],{text:o}=n,l=await e(o,i,s),u=t?t.replace("%l",String(i).toUpperCase()).replace("%s",l).replace("%t",o):l;Object.assign(n,{type:"html",block:!0,text:`${u}
327
+ `})}}}function P1(r){return new ol({renderer:{link({href:e,title:t,text:n}){const a=t?` title="${t}"`:"";return`<a href="${e}"${a} class="external-link" target="_blank" rel="noopener noreferrer">${n}</a>`}}},G1,B1({highlight:r}))}const D1=/^\\\(((?:\\.|[^\\\n])*?)\\\)/,O1=/^\$\$\n([\s\S]+?)\n\$\$(?:\n|$)/,G1={extensions:[{name:"inlineKatex",level:"inline",start(r){const e=r.indexOf("\\(");if(e!==-1)return e},tokenizer(r){const e=r.match(D1);if(e)return{type:"inlineKatex",raw:e[0],text:e[1].trim(),displayMode:!1}},renderer:ns},{name:"blockKatex",level:"block",tokenizer(r){const e=r.match(O1);if(e)return{type:"blockKatex",raw:e[0],text:e[1].trim(),displayMode:!0}},renderer:ns}]};function ns(r){return Vh.renderToString(typeof r.text=="string"?r.text:"",{displayMode:r.displayMode===!0,throwOnError:!1})}const F1={name:"OpenCode",bg:"var(--color-background-stronger)",fg:"var(--text-base)",colors:{"editor.background":"var(--color-background-stronger)","editor.foreground":"var(--text-base)","gitDecoration.addedResourceForeground":"var(--syntax-diff-add)","gitDecoration.deletedResourceForeground":"var(--syntax-diff-delete)","gitDecoration.modifiedResourceForeground":"var(--syntax-diff-unknown)"},tokenColors:[{scope:["comment","punctuation.definition.comment","string.comment"],settings:{foreground:"var(--syntax-comment)"}},{scope:["entity.other.attribute-name"],settings:{foreground:"var(--syntax-property)"}},{scope:["constant","entity.name.constant","variable.other.constant","variable.language","entity"],settings:{foreground:"var(--syntax-constant)"}},{scope:["entity.name","meta.export.default","meta.definition.variable"],settings:{foreground:"var(--syntax-type)"}},{scope:["meta.object.member"],settings:{foreground:"var(--syntax-primitive)"}},{scope:["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.embedded.expression","meta.template.expression","string.other.begin.yaml","string.other.end.yaml"],settings:{foreground:"var(--syntax-punctuation)"}},{scope:["entity.name.function","support.type.primitive"],settings:{foreground:"var(--syntax-primitive)"}},{scope:["support.class.component"],settings:{foreground:"var(--syntax-type)"}},{scope:"keyword",settings:{foreground:"var(--syntax-keyword)"}},{scope:["keyword.operator","storage.type.function.arrow","punctuation.separator.key-value.css","entity.name.tag.yaml","punctuation.separator.key-value.mapping.yaml"],settings:{foreground:"var(--syntax-operator)"}},{scope:["storage","storage.type"],settings:{foreground:"var(--syntax-keyword)"}},{scope:["storage.modifier.package","storage.modifier.import","storage.type.java"],settings:{foreground:"var(--syntax-primitive)"}},{scope:["string","punctuation.definition.string","string punctuation.section.embedded source","entity.name.tag"],settings:{foreground:"var(--syntax-string)"}},{scope:"support",settings:{foreground:"var(--syntax-primitive)"}},{scope:["support.type.object.module","variable.other.object","support.type.property-name.css"],settings:{foreground:"var(--syntax-object)"}},{scope:"meta.property-name",settings:{foreground:"var(--syntax-property)"}},{scope:"variable",settings:{foreground:"var(--syntax-variable)"}},{scope:"variable.other",settings:{foreground:"var(--syntax-variable)"}},{scope:["invalid.broken","invalid.illegal","invalid.unimplemented","invalid.deprecated","message.error","markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted","brackethighlighter.unmatched","token.error-token"],settings:{foreground:"var(--syntax-critical)"}},{scope:"carriage-return",settings:{foreground:"var(--syntax-keyword)"}},{scope:"string source",settings:{foreground:"var(--syntax-variable)"}},{scope:"string variable",settings:{foreground:"var(--syntax-constant)"}},{scope:["source.regexp","string.regexp","string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition","string.regexp constant.character.escape"],settings:{foreground:"var(--syntax-regexp)"}},{scope:"support.constant",settings:{foreground:"var(--syntax-primitive)"}},{scope:"support.variable",settings:{foreground:"var(--syntax-variable)"}},{scope:"meta.module-reference",settings:{foreground:"var(--syntax-info)"}},{scope:"punctuation.definition.list.begin.markdown",settings:{foreground:"var(--syntax-punctuation)"}},{scope:["markup.heading","markup.heading entity.name"],settings:{fontStyle:"bold",foreground:"var(--syntax-info)"}},{scope:"markup.quote",settings:{foreground:"var(--syntax-info)"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"var(--text-strong)"}},{scope:["markup.raw","markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted","markup.changed","punctuation.definition.changed","markup.ignored","markup.untracked"],settings:{foreground:"var(--text-base)"}},{scope:"meta.diff.range",settings:{fontStyle:"bold",foreground:"var(--syntax-unknown)"}},{scope:"meta.diff.header",settings:{foreground:"var(--syntax-unknown)"}},{scope:"meta.separator",settings:{fontStyle:"bold",foreground:"var(--syntax-unknown)"}},{scope:"meta.output",settings:{foreground:"var(--syntax-unknown)"}},{scope:"meta.export.default",settings:{foreground:"var(--syntax-unknown)"}},{scope:["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],settings:{foreground:"var(--syntax-unknown)"}},{scope:["constant.other.reference.link","string.other.link"],settings:{fontStyle:"underline",foreground:"var(--syntax-unknown)"}},{scope:"token.info-token",settings:{foreground:"var(--syntax-info)"}},{scope:"token.warn-token",settings:{foreground:"var(--syntax-warning)"}},{scope:"token.debug-token",settings:{foreground:"var(--syntax-info)"}}],semanticTokenColors:{comment:"var(--syntax-comment)",string:"var(--syntax-string)",number:"var(--syntax-constant)",regexp:"var(--syntax-regexp)",keyword:"var(--syntax-keyword)",variable:"var(--syntax-variable)",parameter:"var(--syntax-variable)",property:"var(--syntax-property)",function:"var(--syntax-primitive)",method:"var(--syntax-primitive)",type:"var(--syntax-type)",class:"var(--syntax-type)",namespace:"var(--syntax-type)",enumMember:"var(--syntax-primitive)","variable.constant":"var(--syntax-constant)","variable.defaultLibrary":"var(--syntax-unknown)"}};var Qa=Object.defineProperty,q1=Object.getOwnPropertyDescriptor,H1=Object.getOwnPropertyNames,U1=Object.prototype.hasOwnProperty,V0=(r,e)=>{let t={};for(var n in r)Qa(t,n,{get:r[n],enumerable:!0});return Qa(t,Symbol.toStringTag,{value:"Module"}),t},j1=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(var a=H1(e),i=0,s=a.length,o;i<s;i++)o=a[i],!U1.call(r,o)&&o!==t&&Qa(r,o,{get:(l=>e[l]).bind(null,o),enumerable:!(n=q1(e,o))||n.enumerable});return r},ll=(r,e,t)=>(j1(r,e,"default"),t);const Hn=[{id:"abap",name:"ABAP",import:(()=>import("./abap-Dg923wIy.js"))},{id:"actionscript-3",name:"ActionScript",import:(()=>import("./actionscript-3-8WTK4YD2.js"))},{id:"ada",name:"Ada",import:(()=>import("./ada-CTi7YQtL.js"))},{id:"angular-html",name:"Angular HTML",import:(()=>import("./angular-html-BOXu3q2S.js").then(function(r){return r.a}))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>import("./angular-ts-Ch9MZP00.js"))},{id:"apache",name:"Apache Conf",import:(()=>import("./apache-PcO-DBxQ.js"))},{id:"apex",name:"Apex",import:(()=>import("./apex-4lMl2vhg.js"))},{id:"apl",name:"APL",import:(()=>import("./apl-Dz5ncP8G.js"))},{id:"applescript",name:"AppleScript",import:(()=>import("./applescript-Ds_W2jPS.js"))},{id:"ara",name:"Ara",import:(()=>import("./ara-C1--7J61.js"))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>import("./asciidoc-nTfEFGxb.js"))},{id:"asm",name:"Assembly",import:(()=>import("./asm-CTFRnVOM.js"))},{id:"astro",name:"Astro",import:(()=>import("./astro-BWgTGUF8.js"))},{id:"awk",name:"AWK",import:(()=>import("./awk-CrWgQKhV.js"))},{id:"ballerina",name:"Ballerina",import:(()=>import("./ballerina-a0yOSyc5.js"))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>import("./bat-B0cHNp6s.js"))},{id:"beancount",name:"Beancount",import:(()=>import("./beancount-dPJi_gci.js"))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>import("./berry-CVKoklHx.js"))},{id:"bibtex",name:"BibTeX",import:(()=>import("./bibtex-DRcCXNgM.js"))},{id:"bicep",name:"Bicep",import:(()=>import("./bicep-jWz-hQ8I.js"))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>import("./bird2-OwWL2xOz.js"))},{id:"blade",name:"Blade",import:(()=>import("./blade-DFktsHST.js"))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>import("./bsl-jNujDQK2.js"))},{id:"c",name:"C",import:(()=>import("./c-BG-tZi7o.js"))},{id:"c3",name:"C3",import:(()=>import("./c3-crbJOFTy.js"))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>import("./cadence-BuaeHeSu.js"))},{id:"cairo",name:"Cairo",import:(()=>import("./cairo-BYiDgOF2.js"))},{id:"clarity",name:"Clarity",import:(()=>import("./clarity-CC_0IFDj.js"))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>import("./clojure-KnfDkB_V.js"))},{id:"cmake",name:"CMake",import:(()=>import("./cmake-bh2MLnkv.js"))},{id:"cobol",name:"COBOL",import:(()=>import("./cobol-DbURsbuN.js"))},{id:"codeowners",name:"CODEOWNERS",import:(()=>import("./codeowners-CtwIM3TN.js"))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>import("./codeql-D164juXQ.js"))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>import("./coffee-Bk-z6oI_.js"))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>import("./common-lisp-DXc9XcIM.js"))},{id:"coq",name:"Coq",import:(()=>import("./coq-BBL5-mG4.js"))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>import("./cpp-B28oCXVK.js"))},{id:"crystal",name:"Crystal",import:(()=>import("./crystal-Dvqzbpz8.js"))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>import("./csharp-CFxe5pRo.js"))},{id:"css",name:"CSS",import:(()=>import("./css-Br67jR8j.js"))},{id:"csv",name:"CSV",import:(()=>import("./csv-D5aBhKLr.js"))},{id:"cue",name:"CUE",import:(()=>import("./cue-WCin6O4e.js"))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>import("./cypher-DYQk2G82.js"))},{id:"d",name:"D",import:(()=>import("./d-DVc-yF-l.js"))},{id:"dart",name:"Dart",import:(()=>import("./dart-ByalkS20.js"))},{id:"dax",name:"DAX",import:(()=>import("./dax-oldcCaJg.js"))},{id:"desktop",name:"Desktop",import:(()=>import("./desktop-DZfyBMgF.js"))},{id:"diff",name:"Diff",import:(()=>import("./diff-jW5kmiru.js"))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>import("./docker-DG9neUKd.js"))},{id:"dotenv",name:"dotEnv",import:(()=>import("./dotenv-Bea-FkXq.js"))},{id:"dream-maker",name:"Dream Maker",import:(()=>import("./dream-maker-DAHQwpwp.js"))},{id:"edge",name:"Edge",import:(()=>import("./edge-DTiORMU5.js"))},{id:"elixir",name:"Elixir",import:(()=>import("./elixir-DnIH90qd.js"))},{id:"elm",name:"Elm",import:(()=>import("./elm-BjIDgKzz.js"))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>import("./emacs-lisp-DaE6cnv4.js"))},{id:"erb",name:"ERB",import:(()=>import("./erb-DjWesHSX.js"))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>import("./erlang-DNeY46SW.js"))},{id:"fennel",name:"Fennel",import:(()=>import("./fennel-DBMsxtrh.js"))},{id:"fish",name:"Fish",import:(()=>import("./fish-BxskpYPN.js"))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>import("./fluent-Bwo2XpEt.js"))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>import("./fortran-fixed-form-DFFnVrrY.js"))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>import("./fortran-free-form-DB5N_DgY.js"))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>import("./fsharp-DRAF1jsN.js"))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>import("./gdresource-BD-1uzY7.js"))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>import("./gdscript-C3mT4Uym.js"))},{id:"gdshader",name:"GDShader",import:(()=>import("./gdshader-G7X6ysY3.js"))},{id:"genie",name:"Genie",import:(()=>import("./genie-DSsjfZMX.js"))},{id:"gherkin",name:"Gherkin",import:(()=>import("./gherkin-Cl2Fw-_0.js"))},{id:"git-commit",name:"Git Commit Message",import:(()=>import("./git-commit-CJPsQObV.js"))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>import("./git-rebase-DeZqv4fp.js"))},{id:"gleam",name:"Gleam",import:(()=>import("./gleam-BeBqoPwE.js"))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>import("./glimmer-js-F_qk9EQT.js"))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>import("./glimmer-ts-Dhzi-GJU.js"))},{id:"glsl",name:"GLSL",import:(()=>import("./glsl-BOG9l2nV.js"))},{id:"gn",name:"GN",import:(()=>import("./gn-Dxr0sSUf.js"))},{id:"gnuplot",name:"Gnuplot",import:(()=>import("./gnuplot-CtW3R_Hz.js"))},{id:"go",name:"Go",import:(()=>import("./go-B7VTfpnm.js"))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>import("./graphql-B6XHM4uj.js"))},{id:"groovy",name:"Groovy",import:(()=>import("./groovy-DFxE31Qs.js"))},{id:"hack",name:"Hack",import:(()=>import("./hack-CJGL07zV.js"))},{id:"haml",name:"Ruby Haml",import:(()=>import("./haml-C4vGXCDX.js"))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>import("./handlebars-BsldGL5W.js"))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>import("./haskell-BfdhR_WN.js"))},{id:"haxe",name:"Haxe",import:(()=>import("./haxe-DVIybFAS.js"))},{id:"hcl",name:"HashiCorp HCL",import:(()=>import("./hcl-B6OePqme.js"))},{id:"hjson",name:"Hjson",import:(()=>import("./hjson-D2jn7IRw.js"))},{id:"hlsl",name:"HLSL",import:(()=>import("./hlsl-MKeth5V9.js"))},{id:"html",name:"HTML",import:(()=>import("./html-BW_6VhB7.js"))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>import("./html-derivative-BxANmYVz.js"))},{id:"http",name:"HTTP",import:(()=>import("./http-CG3jvXcS.js"))},{id:"hurl",name:"Hurl",import:(()=>import("./hurl-CxQrh4RI.js"))},{id:"hxml",name:"HXML",import:(()=>import("./hxml-CkS3Eie7.js"))},{id:"hy",name:"Hy",import:(()=>import("./hy-DI6mCUnw.js"))},{id:"imba",name:"Imba",import:(()=>import("./imba-D-Pk5S0X.js"))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>import("./ini-Dix3pTmg.js"))},{id:"java",name:"Java",import:(()=>import("./java-BTDmaRNO.js"))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>import("./javascript-WyGyM1wV.js"))},{id:"jinja",name:"Jinja",import:(()=>import("./jinja-CGKoJZuT.js"))},{id:"jison",name:"Jison",import:(()=>import("./jison-B9XHrcYJ.js"))},{id:"json",name:"JSON",import:(()=>import("./json-B8JryHcM.js"))},{id:"json5",name:"JSON5",import:(()=>import("./json5-Cdatmj9n.js"))},{id:"jsonc",name:"JSON with Comments",import:(()=>import("./jsonc-CvUCa1o5.js"))},{id:"jsonl",name:"JSON Lines",import:(()=>import("./jsonl-9I_GBd5L.js"))},{id:"jsonnet",name:"Jsonnet",import:(()=>import("./jsonnet-XoenQ2oc.js"))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>import("./jssm-CWE2S0Z5.js"))},{id:"jsx",name:"JSX",import:(()=>import("./jsx-8cLv2Six.js"))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>import("./julia-z72n2X8P.js"))},{id:"just",name:"Just",import:(()=>import("./just-WcmGqwHQ.js"))},{id:"kdl",name:"KDL",import:(()=>import("./kdl-CMbyIXjQ.js"))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>import("./kotlin-BQy537ds.js"))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>import("./kusto-Bh6esMjd.js"))},{id:"latex",name:"LaTeX",import:(()=>import("./latex-DDhGBJRe.js"))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>import("./lean-C4RHkN41.js"))},{id:"less",name:"Less",import:(()=>import("./less-XNfgnZC7.js"))},{id:"liquid",name:"Liquid",import:(()=>import("./liquid-VEiCTF4k.js"))},{id:"llvm",name:"LLVM IR",import:(()=>import("./llvm-BJRUtCev.js"))},{id:"log",name:"Log file",import:(()=>import("./log-CcaF_xNv.js"))},{id:"logo",name:"Logo",import:(()=>import("./logo-D9WQLoKQ.js"))},{id:"lua",name:"Lua",import:(()=>import("./lua-8Av-h-ns.js"))},{id:"luau",name:"Luau",import:(()=>import("./luau-CrdyyxLX.js"))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>import("./make-DXVx14cr.js"))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>import("./markdown-DX-TNHnc.js"))},{id:"marko",name:"Marko",import:(()=>import("./marko-6XzqJfhW.js"))},{id:"matlab",name:"MATLAB",import:(()=>import("./matlab-DzreyMvm.js"))},{id:"mdc",name:"MDC",import:(()=>import("./mdc-DuMdwZAv.js"))},{id:"mdx",name:"MDX",import:(()=>import("./mdx-C2fqO2XY.js"))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>import("./mermaid-Cwy4Up_p.js"))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>import("./mipsasm-yE_Aqo9y.js"))},{id:"mojo",name:"Mojo",import:(()=>import("./mojo-M6pJPbMk.js"))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>import("./moonbit-CR8uFLGd.js"))},{id:"move",name:"Move",import:(()=>import("./move-CyYMWVy5.js"))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>import("./narrat-DXUZ_ZkW.js"))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>import("./nextflow-D9i3Mg89.js"))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>import("./nextflow-groovy-BtKenbWl.js"))},{id:"nginx",name:"Nginx",import:(()=>import("./nginx-DSXkacNc.js"))},{id:"nim",name:"Nim",import:(()=>import("./nim-D9lokC5T.js"))},{id:"nix",name:"Nix",import:(()=>import("./nix-Ckjrpg0r.js"))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>import("./nushell-DtHLcZf1.js"))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>import("./objective-c-BoaBTdtz.js"))},{id:"objective-cpp",name:"Objective-C++",import:(()=>import("./objective-cpp-DstR8hNy.js"))},{id:"ocaml",name:"OCaml",import:(()=>import("./ocaml-DTbn2Hv7.js"))},{id:"odin",name:"Odin",import:(()=>import("./odin-Bxc4S6Xn.js"))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>import("./openscad-CXHpNBsb.js"))},{id:"pascal",name:"Pascal",import:(()=>import("./pascal-Sr-XLSE6.js"))},{id:"perl",name:"Perl",import:(()=>import("./perl-CP_GSK0L.js"))},{id:"php",name:"PHP",import:(()=>import("./php-CNeTOyEV.js"))},{id:"pkl",name:"Pkl",import:(()=>import("./pkl-CRusufhw.js"))},{id:"plsql",name:"PL/SQL",import:(()=>import("./plsql-Dbm3tV2N.js"))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>import("./po-LG0lFwH4.js"))},{id:"polar",name:"Polar",import:(()=>import("./polar-DjOs3GWb.js"))},{id:"postcss",name:"PostCSS",import:(()=>import("./postcss-GRRkWn2F.js"))},{id:"powerquery",name:"PowerQuery",import:(()=>import("./powerquery-DHf-dtTS.js"))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>import("./powershell-DXrKVo3G.js"))},{id:"prisma",name:"Prisma",import:(()=>import("./prisma-Dgf8IN_C.js"))},{id:"prolog",name:"Prolog",import:(()=>import("./prolog-9JcfiY6I.js"))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>import("./proto-dqx_Sj2i.js"))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>import("./pug-kUpeg2wB.js"))},{id:"puppet",name:"Puppet",import:(()=>import("./puppet-Di57VbSS.js"))},{id:"purescript",name:"PureScript",import:(()=>import("./purescript-BgpM7rDH.js"))},{id:"python",name:"Python",aliases:["py"],import:(()=>import("./python-B6Ihcp-E.js"))},{id:"qml",name:"QML",import:(()=>import("./qml-DmGQGbca.js"))},{id:"qmldir",name:"QML Directory",import:(()=>import("./qmldir-DXd9s5XC.js"))},{id:"qss",name:"Qt Style Sheets",import:(()=>import("./qss-B7NnhfIi.js"))},{id:"r",name:"R",import:(()=>import("./r-1ts4xG1r.js"))},{id:"racket",name:"Racket",import:(()=>import("./racket-CeDx7KO2.js"))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>import("./raku-BMJwmrCS.js"))},{id:"razor",name:"ASP.NET Razor",import:(()=>import("./razor-C2a5o_rD.js"))},{id:"reg",name:"Windows Registry Script",import:(()=>import("./reg-Cvyu2Gnx.js"))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>import("./regexp-DK-WlHNu.js"))},{id:"rel",name:"Rel",import:(()=>import("./rel-BlqNHz8k.js"))},{id:"riscv",name:"RISC-V",import:(()=>import("./riscv-C5dpdlr7.js"))},{id:"ron",name:"RON",import:(()=>import("./ron-j5NfrB3z.js"))},{id:"rosmsg",name:"ROS Interface",import:(()=>import("./rosmsg-ZkSIzPhc.js"))},{id:"rst",name:"reStructuredText",import:(()=>import("./rst-DNugHtZA.js"))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>import("./ruby-DtA7rz7D.js"))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>import("./rust-CxuBE0J8.js"))},{id:"sas",name:"SAS",import:(()=>import("./sas-DPMpzP9X.js"))},{id:"sass",name:"Sass",import:(()=>import("./sass-bfEVHPJ8.js"))},{id:"scala",name:"Scala",import:(()=>import("./scala-Dtw19ca_.js"))},{id:"scheme",name:"Scheme",import:(()=>import("./scheme-OJppFQF3.js"))},{id:"scss",name:"SCSS",import:(()=>import("./scss-n48HZsmL.js"))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>import("./sdbl-CvZs3G9c.js"))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>import("./shaderlab-CEJedz68.js"))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>import("./shellscript-DgJyDXW6.js"))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>import("./shellsession-DSlzxnCM.js"))},{id:"smalltalk",name:"Smalltalk",import:(()=>import("./smalltalk-B9IHbYt7.js"))},{id:"solidity",name:"Solidity",import:(()=>import("./solidity-B3CjIuAd.js"))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>import("./soy-DEV4yxgM.js"))},{id:"sparql",name:"SPARQL",import:(()=>import("./sparql-BJh4JEw-.js"))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>import("./splunk-h-bNAnbk.js"))},{id:"sql",name:"SQL",import:(()=>import("./sql-Dq2MiB0T.js"))},{id:"ssh-config",name:"SSH Config",import:(()=>import("./ssh-config-CywOjoXH.js"))},{id:"stata",name:"Stata",import:(()=>import("./stata-BcICKvEt.js"))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>import("./stylus-CIg617SB.js"))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>import("./surrealql-2KNEnAt7.js"))},{id:"svelte",name:"Svelte",import:(()=>import("./svelte-B-Z8GLL9.js"))},{id:"swift",name:"Swift",import:(()=>import("./swift-tEesUtni.js"))},{id:"system-verilog",name:"SystemVerilog",import:(()=>import("./system-verilog-Qdm_1g2q.js"))},{id:"systemd",name:"Systemd Units",import:(()=>import("./systemd-DKMPPZjB.js"))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>import("./talonscript-eRuyeYHl.js"))},{id:"tasl",name:"Tasl",import:(()=>import("./tasl-B9CVvjfG.js"))},{id:"tcl",name:"Tcl",import:(()=>import("./tcl-Bq9dbVAF.js"))},{id:"templ",name:"Templ",import:(()=>import("./templ-W185oS4p.js"))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>import("./terraform-CAp711iT.js"))},{id:"tex",name:"TeX",import:(()=>import("./tex-BHxF5DMe.js"))},{id:"toml",name:"TOML",import:(()=>import("./toml-Ms459DBw.js"))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>import("./ts-tags-xUT7JH_c.js"))},{id:"tsv",name:"TSV",import:(()=>import("./tsv-BFtm7NXx.js"))},{id:"tsx",name:"TSX",import:(()=>import("./tsx-D6116Ycy.js"))},{id:"turtle",name:"Turtle",import:(()=>import("./turtle-DpRhbQZY.js"))},{id:"twig",name:"Twig",import:(()=>import("./twig-7VFzIvA2.js"))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>import("./typescript-BqvgUolh.js"))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>import("./typespec-B09nCZui.js"))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>import("./typst-Dfd71gQj.js"))},{id:"v",name:"V",import:(()=>import("./v-BH76v7br.js"))},{id:"vala",name:"Vala",import:(()=>import("./vala-z59IxkFd.js"))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>import("./vb-4AxSLKIU.js"))},{id:"verilog",name:"Verilog",import:(()=>import("./verilog-LfQUkHDc.js"))},{id:"vhdl",name:"VHDL",import:(()=>import("./vhdl-DJCsFYgn.js"))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>import("./viml-pbKHW3Ia.js"))},{id:"vue",name:"Vue",import:(()=>import("./vue-CzubQWux.js"))},{id:"vue-html",name:"Vue HTML",import:(()=>import("./vue-html-zEfNEgpj.js"))},{id:"vue-vine",name:"Vue Vine",import:(()=>import("./vue-vine-DQRWX4iy.js"))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>import("./vyper-DpazWNpx.js"))},{id:"wasm",name:"WebAssembly",import:(()=>import("./wasm-CFi-k9--.js"))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>import("./wenyan-CYFFG9DK.js"))},{id:"wgsl",name:"WGSL",import:(()=>import("./wgsl-CxjTZs-b.js"))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>import("./wikitext-Bx2qct8O.js"))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>import("./wit-DDW3hD69.js"))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>import("./wolfram-pu21K997.js"))},{id:"xml",name:"XML",import:(()=>import("./xml-BkAJuBCc.js"))},{id:"xsl",name:"XSL",import:(()=>import("./xsl-C6UUWSil.js"))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>import("./yaml-Bopit2L3.js"))},{id:"zenscript",name:"ZenScript",import:(()=>import("./zenscript-BIAKq-aR.js"))},{id:"zig",name:"Zig",import:(()=>import("./zig-bSFrHQ7n.js"))}],X0=Object.fromEntries(Hn.map(r=>[r.id,r.import])),K0=Object.fromEntries(Hn.flatMap(r=>r.aliases?.map(e=>[e,r.import])||[])),Ft={...X0,...K0},Y0=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>import("./andromeeda-CT0vplkN.js"))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>import("./aurora-x-C0VKFdlO.js"))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>import("./ayu-dark-wZ6ORhBL.js"))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>import("./ayu-light-xXLJ_Ch1.js"))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>import("./ayu-mirage-CQckA_sP.js"))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>import("./catppuccin-frappe-CfssSZMA.js"))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>import("./catppuccin-latte-DoBaWTGn.js"))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>import("./catppuccin-macchiato-BkAuvdZC.js"))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>import("./catppuccin-mocha-D9fcC0iT.js"))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>import("./dark-plus-DLU5INA3.js"))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>import("./dracula-XcYHBZy6.js"))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>import("./dracula-soft-BPeX9gxW.js"))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>import("./everforest-dark-WOub3wle.js"))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>import("./everforest-light-DCUg8VH8.js"))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>import("./github-dark-BQV5ugrc.js"))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>import("./github-dark-default-DLWDM7FH.js"))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>import("./github-dark-dimmed-D1FmiR_p.js"))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>import("./github-dark-high-contrast-BilLoi0o.js"))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>import("./github-light-Rcb2q3L5.js"))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>import("./github-light-default-CQ75esMw.js"))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>import("./github-light-high-contrast-CRF1wyLy.js"))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>import("./gruvbox-dark-hard-C37G1gbc.js"))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>import("./gruvbox-dark-medium-C3G9m3TV.js"))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>import("./gruvbox-dark-soft-eZmcmZ9I.js"))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>import("./gruvbox-light-hard-BYj-vz_3.js"))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>import("./gruvbox-light-medium-BdQlDiiF.js"))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>import("./gruvbox-light-soft-BGNwjiRh.js"))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>import("./horizon-cslQss18.js"))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>import("./horizon-bright-BVMyA0so.js"))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>import("./houston-RHIKkNfR.js"))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>import("./kanagawa-dragon-BOvIHJVT.js"))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>import("./kanagawa-lotus-Bwcd7Bvx.js"))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>import("./kanagawa-wave-0SAlpf0s.js"))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>import("./laserwave-si7wuSrt.js"))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>import("./light-plus-g_Fi9vkG.js"))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>import("./material-theme-CIJ3cGaW.js"))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>import("./material-theme-darker-BWg3m1GB.js"))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>import("./material-theme-lighter-DR8HWMN7.js"))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>import("./material-theme-ocean-CZf9pk28.js"))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>import("./material-theme-palenight-BF01YeZy.js"))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>import("./min-dark-DhfaepVE.js"))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>import("./min-light-6xx0uMgm.js"))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>import("./monokai-BodnsaDQ.js"))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>import("./night-owl-EdP2Hztp.js"))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>import("./night-owl-light-Bk-lYVyk.js"))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>import("./nord-BAu0wM6c.js"))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>import("./one-dark-pro-utPxbBbJ.js"))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>import("./one-light-BuCQ22aO.js"))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>import("./plastic-CXnNNlFZ.js"))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>import("./poimandres-BrOVMvuE.js"))},{id:"red",displayName:"Red",type:"dark",import:(()=>import("./red-DR6ZwibK.js"))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>import("./rose-pine-CN2F2lJl.js"))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>import("./rose-pine-dawn-0S8NEhsA.js"))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>import("./rose-pine-moon-DzBDT4rc.js"))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>import("./slack-dark-CWRQmTmo.js"))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>import("./slack-ochin-DO_ok7XK.js"))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>import("./snazzy-light-B5llO_gK.js"))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>import("./solarized-dark-G9yBjKj_.js"))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>import("./solarized-light-DeSzljQz.js"))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>import("./synthwave-84-DRVv-_m_.js"))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>import("./tokyo-night-BvwC8l2v.js"))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>import("./vesper-DxfWgk_t.js"))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>import("./vitesse-black-B_BYPdvp.js"))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>import("./vitesse-dark-DOSOf2Sz.js"))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>import("./vitesse-light-gUX51GpB.js"))}],Z0=Object.fromEntries(Y0.map(r=>[r.id,r.import]));var Q0=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function W1(){return 2147483648}function V1(){return typeof performance<"u"?performance.now():Date.now()}const X1=(r,e)=>r+(e-r%e)%e;async function K1(r){let e,t;const n={};function a(v){t=v,n.HEAPU8=new Uint8Array(v),n.HEAPU32=new Uint32Array(v)}function i(v,y,k){n.HEAPU8.copyWithin(v,y,y+k)}function s(v){try{return e.grow(v-t.byteLength+65535>>>16),a(e.buffer),1}catch{}}function o(v){const y=n.HEAPU8.length;v=v>>>0;const k=W1();if(v>k)return!1;for(let C=1;C<=4;C*=2){let S=y*(1+.2/C);S=Math.min(S,v+100663296);const T=Math.min(k,X1(Math.max(v,S),65536));if(s(T))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(v,y,k=1024){const C=y+k;let S=y;for(;v[S]&&!(S>=C);)++S;if(S-y>16&&v.buffer&&l)return l.decode(v.subarray(y,S));let T="";for(;y<S;){let M=v[y++];if(!(M&128)){T+=String.fromCharCode(M);continue}const $=v[y++]&63;if((M&224)===192){T+=String.fromCharCode((M&31)<<6|$);continue}const L=v[y++]&63;if((M&240)===224?M=(M&15)<<12|$<<6|L:M=(M&7)<<18|$<<12|L<<6|v[y++]&63,M<65536)T+=String.fromCharCode(M);else{const P=M-65536;T+=String.fromCharCode(55296|P>>10,56320|P&1023)}}return T}function d(v,y){return v?u(n.HEAPU8,v,y):""}const m={emscripten_get_now:V1,emscripten_memcpy_big:i,emscripten_resize_heap:o,fd_write:()=>0};async function f(){const y=await r({env:m,wasi_snapshot_preview1:m});e=y.memory,a(e.buffer),Object.assign(n,y),n.UTF8ToString=d}return await f(),n}var Y1=Object.defineProperty,Z1=(r,e,t)=>e in r?Y1(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,de=(r,e,t)=>Z1(r,typeof e!="symbol"?e+"":e,t);let ve=null;function Q1(r){throw new Q0(r.UTF8ToString(r.getLastOnigError()))}class Un{constructor(e){de(this,"utf16Length"),de(this,"utf8Length"),de(this,"utf16Value"),de(this,"utf8Value"),de(this,"utf16OffsetToUtf8"),de(this,"utf8OffsetToUtf16");const t=e.length,n=Un._utf8ByteLength(e),a=n!==t,i=a?new Uint32Array(t+1):null;a&&(i[t]=n);const s=a?new Uint32Array(n+1):null;a&&(s[n]=t);const o=new Uint8Array(n);let l=0;for(let u=0;u<t;u++){const d=e.charCodeAt(u);let m=d,f=!1;if(d>=55296&&d<=56319&&u+1<t){const v=e.charCodeAt(u+1);v>=56320&&v<=57343&&(m=(d-55296<<10)+65536|v-56320,f=!0)}a&&(i[u]=l,f&&(i[u+1]=l),m<=127?s[l+0]=u:m<=2047?(s[l+0]=u,s[l+1]=u):m<=65535?(s[l+0]=u,s[l+1]=u,s[l+2]=u):(s[l+0]=u,s[l+1]=u,s[l+2]=u,s[l+3]=u)),m<=127?o[l++]=m:m<=2047?(o[l++]=192|(m&1984)>>>6,o[l++]=128|(m&63)>>>0):m<=65535?(o[l++]=224|(m&61440)>>>12,o[l++]=128|(m&4032)>>>6,o[l++]=128|(m&63)>>>0):(o[l++]=240|(m&1835008)>>>18,o[l++]=128|(m&258048)>>>12,o[l++]=128|(m&4032)>>>6,o[l++]=128|(m&63)>>>0),f&&u++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let t=0;for(let n=0,a=e.length;n<a;n++){const i=e.charCodeAt(n);let s=i,o=!1;if(i>=55296&&i<=56319&&n+1<a){const l=e.charCodeAt(n+1);l>=56320&&l<=57343&&(s=(i-55296<<10)+65536|l-56320,o=!0)}s<=127?t+=1:s<=2047?t+=2:s<=65535?t+=3:t+=4,o&&n++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const jn=class Ze{constructor(e){if(de(this,"id",++Ze.LAST_ID),de(this,"_onigBinding"),de(this,"content"),de(this,"utf16Length"),de(this,"utf8Length"),de(this,"utf16OffsetToUtf8"),de(this,"utf8OffsetToUtf16"),de(this,"ptr"),!ve)throw new Q0("Must invoke loadWasm first.");this._onigBinding=ve,this.content=e;const t=new Un(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!Ze._sharedPtrInUse?(Ze._sharedPtr||(Ze._sharedPtr=ve.omalloc(1e4)),Ze._sharedPtrInUse=!0,ve.HEAPU8.set(t.utf8Value,Ze._sharedPtr),this.ptr=Ze._sharedPtr):this.ptr=t.createString(ve)}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===Ze._sharedPtr?Ze._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};de(jn,"LAST_ID",0);de(jn,"_sharedPtr",0);de(jn,"_sharedPtrInUse",!1);let ul=jn;class J1{constructor(e){if(de(this,"_onigBinding"),de(this,"_ptr"),!ve)throw new Q0("Must invoke loadWasm first.");const t=[],n=[];for(let o=0,l=e.length;o<l;o++){const u=new Un(e[o]);t[o]=u.createString(ve),n[o]=u.utf8Length}const a=ve.omalloc(4*e.length);ve.HEAPU32.set(t,a/4);const i=ve.omalloc(4*e.length);ve.HEAPU32.set(n,i/4);const s=ve.createOnigScanner(a,i,e.length);for(let o=0,l=e.length;o<l;o++)ve.ofree(t[o]);ve.ofree(i),ve.ofree(a),s===0&&Q1(ve),this._onigBinding=ve,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let a=0;if(typeof n=="number"&&(a=n),typeof e=="string"){e=new ul(e);const i=this._findNextMatchSync(e,t,!1,a);return e.dispose(),i}return this._findNextMatchSync(e,t,!1,a)}_findNextMatchSync(e,t,n,a){const i=this._onigBinding,s=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),a);if(s===0)return null;const o=i.HEAPU32;let l=s/4;const u=o[l++],d=o[l++],m=[];for(let f=0;f<d;f++){const v=e.convertUtf8OffsetToUtf16(o[l++]),y=e.convertUtf8OffsetToUtf16(o[l++]);m[f]={start:v,end:y,length:y-v}}return{index:u,captureIndices:m}}}function ed(r){return typeof r.instantiator=="function"}function td(r){return typeof r.default=="function"}function rd(r){return typeof r.data<"u"}function nd(r){return typeof Response<"u"&&r instanceof Response}function ad(r){return typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||typeof Buffer<"u"&&Buffer.isBuffer?.(r)||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&r instanceof Uint32Array}let Jr;function J0(r){if(Jr)return Jr;async function e(){ve=await K1(async t=>{let n=r;return n=await n,typeof n=="function"&&(n=await n(t)),typeof n=="function"&&(n=await n(t)),ed(n)?n=await n.instantiator(t):td(n)?n=await n.default(t):(rd(n)&&(n=n.data),nd(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await id(n)(t):n=await sd(n)(t):ad(n)?n=await ka(n)(t):n instanceof WebAssembly.Module?n=await ka(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await ka(n.default)(t))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return Jr=e(),Jr}function ka(r){return e=>WebAssembly.instantiate(r,e)}function id(r){return e=>WebAssembly.instantiateStreaming(r,e)}function sd(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}let cl;function od(r){cl=r}function ld(){return cl}async function hl(r){return r&&await J0(r),{createScanner(e){return new J1(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new ul(e)}}}var ud=Object.freeze({__proto__:null,createOnigurumaEngine:hl,getDefaultWasmLoader:ld,loadWasm:J0,setDefaultWasmLoader:od}),dl=V0({});ll(dl,ud);var ee=class extends Error{constructor(r){super(r),this.name="ShikiError"}};function cd(r){return ei(r)}function ei(r){return Array.isArray(r)?hd(r):r instanceof RegExp?r:typeof r=="object"?dd(r):r}function hd(r){let e=[];for(let t=0,n=r.length;t<n;t++)e[t]=ei(r[t]);return e}function dd(r){let e={};for(let t in r)e[t]=ei(r[t]);return e}function ml(r,...e){return e.forEach(t=>{for(let n in t)r[n]=t[n]}),r}function pl(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?pl(r.substring(0,r.length-1)):r.substr(~e+1)}var Sa=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,en=class{static hasCaptures(r){return r===null?!1:(Sa.lastIndex=0,Sa.test(r))}static replaceCaptures(r,e,t){return r.replace(Sa,(n,a,i,s)=>{let o=t[parseInt(a||i,10)];if(o){let l=e.substring(o.start,o.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return n})}};function fl(r,e){return r<e?-1:r>e?1:0}function gl(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,n=e.length;if(t===n){for(let a=0;a<t;a++){let i=fl(r[a],e[a]);if(i!==0)return i}return 0}return t-n}function as(r){return!!(/^#[0-9a-f]{6}$/i.test(r)||/^#[0-9a-f]{8}$/i.test(r)||/^#[0-9a-f]{3}$/i.test(r)||/^#[0-9a-f]{4}$/i.test(r))}function vl(r){return r.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var yl=class{constructor(r){this.fn=r}cache=new Map;get(r){if(this.cache.has(r))return this.cache.get(r);const e=this.fn(r);return this.cache.set(r,e),e}},kn=class{constructor(r,e,t){this._colorMap=r,this._defaults=e,this._root=t}static createFromRawTheme(r,e){return this.createFromParsedTheme(fd(r),e)}static createFromParsedTheme(r,e){return vd(r,e)}_cachedMatchRoot=new yl(r=>this._root.match(r));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(r){if(r===null)return this._defaults;const e=r.scopeName,n=this._cachedMatchRoot.get(e).find(a=>md(r.parent,a.parentScopes));return n?new bl(n.fontStyle,n.foreground,n.background):null}},Ca=class cn{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const n of t)e=new cn(e,n);return e}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new cn(t,e[n]);return t}push(e){return new cn(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function md(r,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let n=e[t],a=!1;if(n===">"){if(t===e.length-1)return!1;n=e[++t],a=!0}for(;r&&!pd(r.scopeName,n);){if(a)return!1;r=r.parent}if(!r)return!1;r=r.parent}return!0}function pd(r,e){return e===r||r.startsWith(e)&&r[e.length]==="."}var bl=class{constructor(r,e,t){this.fontStyle=r,this.foregroundId=e,this.backgroundId=t}};function fd(r){if(!r)return[];if(!r.settings||!Array.isArray(r.settings))return[];let e=r.settings,t=[],n=0;for(let a=0,i=e.length;a<i;a++){let s=e[a];if(!s.settings)continue;let o;if(typeof s.scope=="string"){let m=s.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),o=m.split(",")}else Array.isArray(s.scope)?o=s.scope:o=[""];let l=-1;if(typeof s.settings.fontStyle=="string"){l=0;let m=s.settings.fontStyle.split(" ");for(let f=0,v=m.length;f<v;f++)switch(m[f]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof s.settings.foreground=="string"&&as(s.settings.foreground)&&(u=s.settings.foreground);let d=null;typeof s.settings.background=="string"&&as(s.settings.background)&&(d=s.settings.background);for(let m=0,f=o.length;m<f;m++){let y=o[m].trim().split(" "),k=y[y.length-1],C=null;y.length>1&&(C=y.slice(0,y.length-1),C.reverse()),t[n++]=new gd(k,C,a,l,u,d)}}return t}var gd=class{constructor(r,e,t,n,a,i){this.scope=r,this.parentScopes=e,this.index=t,this.fontStyle=n,this.foreground=a,this.background=i}},we=(r=>(r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline",r[r.Strikethrough=8]="Strikethrough",r))(we||{});function vd(r,e){r.sort((l,u)=>{let d=fl(l.scope,u.scope);return d!==0||(d=gl(l.parentScopes,u.parentScopes),d!==0)?d:l.index-u.index});let t=0,n="#000000",a="#ffffff";for(;r.length>=1&&r[0].scope==="";){let l=r.shift();l.fontStyle!==-1&&(t=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(a=l.background)}let i=new yd(e),s=new bl(t,i.getId(n),i.getId(a)),o=new wd(new Ja(0,null,-1,0,0),[]);for(let l=0,u=r.length;l<u;l++){let d=r[l];o.insert(0,d.scope,d.parentScopes,d.fontStyle,i.getId(d.foreground),i.getId(d.background))}return new kn(i,s,o)}var yd=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(r){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(r)){this._isFrozen=!0;for(let e=0,t=r.length;e<t;e++)this._color2id[r[e]]=e,this._id2color[e]=r[e]}else this._isFrozen=!1}getId(r){if(r===null)return 0;r=r.toUpperCase();let e=this._color2id[r];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${r}`);return e=++this._lastColorId,this._color2id[r]=e,this._id2color[e]=r,e}getColorMap(){return this._id2color.slice(0)}},bd=Object.freeze([]),Ja=class wl{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,a,i){this.scopeDepth=e,this.parentScopes=t||bd,this.fontStyle=n,this.foreground=a,this.background=i}clone(){return new wl(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,a=e.length;n<a;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,a){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),a!==0&&(this.background=a)}},wd=class e0{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,a=0;for(;e.parentScopes[n]===">"&&n++,t.parentScopes[a]===">"&&a++,!(n>=e.parentScopes.length||a>=t.parentScopes.length);){const i=t.parentScopes[a].length-e.parentScopes[n].length;if(i!==0)return i;n++,a++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),a,i;if(n===-1?(a=e,i=""):(a=e.substring(0,n),i=e.substring(n+1)),this._children.hasOwnProperty(a))return this._children[a].match(i)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(e0._cmpBySpecificity),t}insert(e,t,n,a,i,s){if(t===""){this._doInsertHere(e,n,a,i,s);return}let o=t.indexOf("."),l,u;o===-1?(l=t,u=""):(l=t.substring(0,o),u=t.substring(o+1));let d;this._children.hasOwnProperty(l)?d=this._children[l]:(d=new e0(this._mainRule.clone(),Ja.cloneArr(this._rulesWithParentScopes)),this._children[l]=d),d.insert(e+1,u,n,a,i,s)}_doInsertHere(e,t,n,a,i){if(t===null){this._mainRule.acceptOverwrite(e,n,a,i);return}for(let s=0,o=this._rulesWithParentScopes.length;s<o;s++){let l=this._rulesWithParentScopes[s];if(gl(l.parentScopes,t)===0){l.acceptOverwrite(e,n,a,i);return}}n===-1&&(n=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new Ja(e,t,n,a,i))}},lr=class De{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=De.getLanguageId(e),n=De.getTokenType(e),a=De.getFontStyle(e),i=De.getForeground(e),s=De.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:a,foreground:i,background:s})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,n,a,i,s,o){let l=De.getLanguageId(e),u=De.getTokenType(e),d=De.containsBalancedBrackets(e)?1:0,m=De.getFontStyle(e),f=De.getForeground(e),v=De.getBackground(e);return t!==0&&(l=t),n!==8&&(u=n),a!==null&&(d=a?1:0),i!==-1&&(m=i),s!==0&&(f=s),o!==0&&(v=o),(l<<0|u<<8|d<<10|m<<11|f<<15|v<<24)>>>0}};function Sn(r,e){const t=[],n=xd(r);let a=n.next();for(;a!==null;){let l=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=n.next()}let u=s();if(t.push({matcher:u,priority:l}),a!==",")break;a=n.next()}return t;function i(){if(a==="-"){a=n.next();const l=i();return u=>!!l&&!l(u)}if(a==="("){a=n.next();const l=o();return a===")"&&(a=n.next()),l}if(is(a)){const l=[];do l.push(a),a=n.next();while(is(a));return u=>e(l,u)}return null}function s(){const l=[];let u=i();for(;u;)l.push(u),u=i();return d=>l.every(m=>m(d))}function o(){const l=[];let u=s();for(;u&&(l.push(u),a==="|"||a===",");){do a=n.next();while(a==="|"||a===",");u=s()}return d=>l.some(m=>m(d))}}function is(r){return!!r&&!!r.match(/[\w\.:]+/)}function xd(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const n=t[0];return t=e.exec(r),n}}}function xl(r){typeof r.dispose=="function"&&r.dispose()}var Tr=class{constructor(r){this.scopeName=r}toKey(){return this.scopeName}},kd=class{constructor(r,e){this.scopeName=r,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Sd=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(r){const e=r.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(r))}},Cd=class{constructor(r,e){this.repo=r,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Tr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const r=this.Q;this.Q=[];const e=new Sd;for(const t of r)Ad(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Tr){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Ad(r,e,t,n){const a=t.lookup(r.scopeName);if(!a){if(r.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const i=t.lookup(e);r instanceof Tr?hn({baseGrammar:i,selfGrammar:a},n):t0(r.ruleName,{baseGrammar:i,selfGrammar:a,repository:a.repository},n);const s=t.injections(r.scopeName);if(s)for(const o of s)n.add(new Tr(o))}function t0(r,e,t){if(e.repository&&e.repository[r]){const n=e.repository[r];Cn([n],e,t)}}function hn(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&Cn(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&Cn(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function Cn(r,e,t){for(const n of r){if(t.visitedRule.has(n))continue;t.visitedRule.add(n);const a=n.repository?ml({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&Cn(n.patterns,{...e,repository:a},t);const i=n.include;if(!i)continue;const s=kl(i);switch(s.kind){case 0:hn({...e,selfGrammar:e.baseGrammar},t);break;case 1:hn(e,t);break;case 2:t0(s.ruleName,{...e,repository:a},t);break;case 3:case 4:const o=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(o){const l={baseGrammar:e.baseGrammar,selfGrammar:o,repository:a};s.kind===4?t0(s.ruleName,l,t):hn(l,t)}else s.kind===4?t.add(new kd(s.scopeName,s.ruleName)):t.add(new Tr(s.scopeName));break}}}var Td=class{kind=0},Md=class{kind=1},Ed=class{constructor(r){this.ruleName=r}kind=2},Rd=class{constructor(r){this.scopeName=r}kind=3},_d=class{constructor(r,e){this.scopeName=r,this.ruleName=e}kind=4};function kl(r){if(r==="$base")return new Td;if(r==="$self")return new Md;const e=r.indexOf("#");if(e===-1)return new Rd(r);if(e===0)return new Ed(r.substring(1));{const t=r.substring(0,e),n=r.substring(e+1);return new _d(t,n)}}var Nd=/\\(\d+)/,ss=/\\(\d+)/g,Id=-1,Sl=-2;var Br=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(r,e,t,n){this.$location=r,this.id=e,this._name=t||null,this._nameIsCapturing=en.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=en.hasCaptures(this._contentName)}get debugName(){const r=this.$location?`${pl(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${r}`}getName(r,e){return!this._nameIsCapturing||this._name===null||r===null||e===null?this._name:en.replaceCaptures(this._name,r,e)}getContentName(r,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:en.replaceCaptures(this._contentName,r,e)}},Ld=class extends Br{retokenizeCapturedWithRuleId;constructor(r,e,t,n,a){super(r,e,t,n),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(r,e){throw new Error("Not supported!")}compile(r,e){throw new Error("Not supported!")}compileAG(r,e,t,n){throw new Error("Not supported!")}},zd=class extends Br{_match;captures;_cachedCompiledPatterns;constructor(r,e,t,n,a){super(r,e,t,null),this._match=new Mr(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(r,e){e.push(this._match)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,n){return this._getCachedCompiledPatterns(r).compileAG(r,t,n)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Er,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},os=class extends Br{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,t,n,a){super(r,e,t,n),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(r,e){for(const t of this.patterns)r.getRule(t).collectPatterns(r,e)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,n){return this._getCachedCompiledPatterns(r).compileAG(r,t,n)}_getCachedCompiledPatterns(r){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Er,this.collectPatterns(r,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},r0=class extends Br{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(r,e,t,n,a,i,s,o,l,u){super(r,e,t,n),this._begin=new Mr(a,this.id),this.beginCaptures=i,this._end=new Mr(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.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(r,e){return this._end.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r,e).compile(r)}compileAG(r,e,t,n){return this._getCachedCompiledPatterns(r,e).compileAG(r,t,n)}_getCachedCompiledPatterns(r,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Er;for(const t of this.patterns)r.getRule(t).collectPatterns(r,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,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},An=class extends Br{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(r,e,t,n,a,i,s,o,l){super(r,e,t,n),this._begin=new Mr(a,this.id),this.beginCaptures=i,this.whileCaptures=o,this._while=new Mr(s,Sl),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(r,e){return this._while.resolveBackReferences(r,e)}collectPatterns(r,e){e.push(this._begin)}compile(r,e){return this._getCachedCompiledPatterns(r).compile(r)}compileAG(r,e,t,n){return this._getCachedCompiledPatterns(r).compileAG(r,t,n)}_getCachedCompiledPatterns(r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Er;for(const e of this.patterns)r.getRule(e).collectPatterns(r,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(r,e){return this._getCachedCompiledWhilePatterns(r,e).compile(r)}compileWhileAG(r,e,t,n){return this._getCachedCompiledWhilePatterns(r,e).compileAG(r,t,n)}_getCachedCompiledWhilePatterns(r,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Er,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Cl=class be{static createCaptureRule(e,t,n,a,i){return e.registerRule(s=>new Ld(t,s,n,a,i))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule(a=>{if(e.id=a,e.match)return new zd(e.$vscodeTextmateLocation,e.id,e.name,e.match,be._compileCaptures(e.captures,t,n));if(typeof e.begin>"u"){e.repository&&(n=ml({},n,e.repository));let i=e.patterns;return typeof i>"u"&&e.include&&(i=[{include:e.include}]),new os(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,be._compilePatterns(i,t,n))}return e.while?new An(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,be._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,be._compileCaptures(e.whileCaptures||e.captures,t,n),be._compilePatterns(e.patterns,t,n)):new r0(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,be._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,be._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,be._compilePatterns(e.patterns,t,n))}),e.id}static _compileCaptures(e,t,n){let a=[];if(e){let i=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const o=parseInt(s,10);o>i&&(i=o)}for(let s=0;s<=i;s++)a[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const o=parseInt(s,10);let l=0;e[s].patterns&&(l=be.getCompiledRuleId(e[s],t,n)),a[o]=be.createCaptureRule(t,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,l)}}return a}static _compilePatterns(e,t,n){let a=[];if(e)for(let i=0,s=e.length;i<s;i++){const o=e[i];let l=-1;if(o.include){const u=kl(o.include);switch(u.kind){case 0:case 1:l=be.getCompiledRuleId(n[o.include],t,n);break;case 2:let d=n[u.ruleName];d&&(l=be.getCompiledRuleId(d,t,n));break;case 3:case 4:const m=u.scopeName,f=u.kind===4?u.ruleName:null,v=t.getExternalGrammar(m,n);if(v)if(f){let y=v.repository[f];y&&(l=be.getCompiledRuleId(y,t,v.repository))}else l=be.getCompiledRuleId(v.repository.$self,t,v.repository);break}}else l=be.getCompiledRuleId(o,t,n);if(l!==-1){const u=t.getRule(l);let d=!1;if((u instanceof os||u instanceof r0||u instanceof An)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;a.push(l)}}return{patterns:a,hasMissingPatterns:(e?e.length:0)!==a.length}}},Mr=class Al{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e=="string"){const n=e.length;let a=0,i=[],s=!1;for(let o=0;o<n;o++)if(e.charAt(o)==="\\"&&o+1<n){const u=e.charAt(o+1);u==="z"?(i.push(e.substring(a,o)),i.push("$(?!\\n)(?<!\\n)"),a=o+2):(u==="A"||u==="G")&&(s=!0),o++}this.hasAnchor=s,a===0?this.source=e:(i.push(e.substring(a,n)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Nd.test(this.source):this.hasBackReferences=!1}clone(){return new Al(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=t.map(a=>e.substring(a.start,a.end));return ss.lastIndex=0,this.source.replace(ss,(a,i)=>vl(n[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],n=[],a=[],i,s,o,l;for(i=0,s=this.source.length;i<s;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,a[i]=o,o==="\\"&&i+1<s&&(l=this.source.charAt(i+1),l==="A"?(e[i+1]="￿",t[i+1]="￿",n[i+1]="A",a[i+1]="A"):l==="G"?(e[i+1]="￿",t[i+1]="G",n[i+1]="￿",a[i+1]="G"):(e[i+1]=l,t[i+1]=l,n[i+1]=l,a[i+1]=l),i++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:n.join(""),A1_G1:a.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Er=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(r){this._items.push(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}unshift(r){this._items.unshift(r),this._hasAnchors=this._hasAnchors||r.hasAnchor}length(){return this._items.length}setSource(r,e){this._items[r].source!==e&&(this._disposeCaches(),this._items[r].setSource(e))}compile(r){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new ls(r,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(r,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(r,e,t)),this._anchorCache.A0_G0):this.compile(r)}_resolveAnchors(r,e,t){let n=this._items.map(a=>a.resolveAnchors(e,t));return new ls(r,n,this._items.map(a=>a.ruleId))}},ls=class{constructor(r,e,t){this.regExps=e,this.rules=t,this.scanner=r.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const r=[];for(let e=0,t=this.rules.length;e<t;e++)r.push(" - "+this.rules[e]+": "+this.regExps[e]);return r.join(`
328
+ `)}findNextMatchSync(r,e,t){const n=this.scanner.findNextMatchSync(r,e,t);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},Aa=class{constructor(r,e){this.languageId=r,this.tokenType=e}},$d=class n0{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Aa(e,8),this._embeddedLanguagesMatcher=new Bd(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?n0._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new Aa(0,0);_getBasicScopeAttributes=new yl(e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new Aa(t,n)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(n0.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Bd=class{values;scopesRegExp;constructor(r){if(r.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(r);const e=r.map(([t,n])=>vl(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(r){if(!this.scopesRegExp)return;const e=r.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},us=class{constructor(r,e){this.stack=r,this.stoppedEarly=e}};function Tl(r,e,t,n,a,i,s,o){const l=e.content.length;let u=!1,d=-1;if(s){const v=Pd(r,e,t,n,a,i);a=v.stack,n=v.linePos,t=v.isFirstLine,d=v.anchorPosition}const m=Date.now();for(;!u;){if(o!==0&&Date.now()-m>o)return new us(a,!0);f()}return new us(a,!1);function f(){const v=Dd(r,e,t,n,a,d);if(!v){i.produce(a,l),u=!0;return}const y=v.captureIndices,k=v.matchedRuleId,C=y&&y.length>0?y[0].end>n:!1;if(k===Id){const S=a.getRule(r);i.produce(a,y[0].start),a=a.withContentNameScopesList(a.nameScopesList),wr(r,e,t,a,i,S.endCaptures,y),i.produce(a,y[0].end);const T=a;if(a=a.parent,d=T.getAnchorPos(),!C&&T.getEnterPos()===n){a=T,i.produce(a,l),u=!0;return}}else{const S=r.getRule(k);i.produce(a,y[0].start);const T=a,M=S.getName(e.content,y),$=a.contentNameScopesList.pushAttributed(M,r);if(a=a.push(k,n,d,y[0].end===l,null,$,$),S instanceof r0){const L=S;wr(r,e,t,a,i,L.beginCaptures,y),i.produce(a,y[0].end),d=y[0].end;const P=L.getContentName(e.content,y),D=$.pushAttributed(P,r);if(a=a.withContentNameScopesList(D),L.endHasBackReferences&&(a=a.withEndRule(L.getEndWithResolvedBackReferences(e.content,y))),!C&&T.hasSameRuleAs(a)){a=a.pop(),i.produce(a,l),u=!0;return}}else if(S instanceof An){const L=S;wr(r,e,t,a,i,L.beginCaptures,y),i.produce(a,y[0].end),d=y[0].end;const P=L.getContentName(e.content,y),D=$.pushAttributed(P,r);if(a=a.withContentNameScopesList(D),L.whileHasBackReferences&&(a=a.withEndRule(L.getWhileWithResolvedBackReferences(e.content,y))),!C&&T.hasSameRuleAs(a)){a=a.pop(),i.produce(a,l),u=!0;return}}else if(wr(r,e,t,a,i,S.captures,y),i.produce(a,y[0].end),a=a.pop(),!C){a=a.safePop(),i.produce(a,l),u=!0;return}}y[0].end>n&&(n=y[0].end,t=!1)}}function Pd(r,e,t,n,a,i){let s=a.beginRuleCapturedEOL?0:-1;const o=[];for(let l=a;l;l=l.pop()){const u=l.getRule(r);u instanceof An&&o.push({rule:u,stack:l})}for(let l=o.pop();l;l=o.pop()){const{ruleScanner:u,findOptions:d}=Fd(l.rule,r,l.stack.endRule,t,n===s),m=u.findNextMatchSync(e,n,d);if(m){if(m.ruleId!==Sl){a=l.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(l.stack,m.captureIndices[0].start),wr(r,e,t,l.stack,i,l.rule.whileCaptures,m.captureIndices),i.produce(l.stack,m.captureIndices[0].end),s=m.captureIndices[0].end,m.captureIndices[0].end>n&&(n=m.captureIndices[0].end,t=!1))}else{a=l.stack.pop();break}}return{stack:a,linePos:n,anchorPosition:s,isFirstLine:t}}function Dd(r,e,t,n,a,i){const s=Od(r,e,t,n,a,i),o=r.getInjections();if(o.length===0)return s;const l=Gd(o,r,e,t,n,a,i);if(!l)return s;if(!s)return l;const u=s.captureIndices[0].start,d=l.captureIndices[0].start;return d<u||l.priorityMatch&&d===u?l:s}function Od(r,e,t,n,a,i){const s=a.getRule(r),{ruleScanner:o,findOptions:l}=Ml(s,r,a.endRule,t,n===i),u=o.findNextMatchSync(e,n,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function Gd(r,e,t,n,a,i,s){let o=Number.MAX_VALUE,l=null,u,d=0;const m=i.contentNameScopesList.getScopeNames();for(let f=0,v=r.length;f<v;f++){const y=r[f];if(!y.matcher(m))continue;const k=e.getRule(y.ruleId),{ruleScanner:C,findOptions:S}=Ml(k,e,null,n,a===s),T=C.findNextMatchSync(t,a,S);if(!T)continue;const M=T.captureIndices[0].start;if(!(M>=o)&&(o=M,l=T.captureIndices,u=T.ruleId,d=y.priority,o===a))break}return l?{priorityMatch:d===-1,captureIndices:l,matchedRuleId:u}:null}function Ml(r,e,t,n,a){return{ruleScanner:r.compileAG(e,t,n,a),findOptions:0}}function Fd(r,e,t,n,a){return{ruleScanner:r.compileWhileAG(e,t,n,a),findOptions:0}}function wr(r,e,t,n,a,i,s){if(i.length===0)return;const o=e.content,l=Math.min(i.length,s.length),u=[],d=s[0].end;for(let m=0;m<l;m++){const f=i[m];if(f===null)continue;const v=s[m];if(v.length===0)continue;if(v.start>d)break;for(;u.length>0&&u[u.length-1].endPos<=v.start;)a.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?a.produceFromScopes(u[u.length-1].scopes,v.start):a.produce(n,v.start),f.retokenizeCapturedWithRuleId){const k=f.getName(o,s),C=n.contentNameScopesList.pushAttributed(k,r),S=f.getContentName(o,s),T=C.pushAttributed(S,r),M=n.push(f.retokenizeCapturedWithRuleId,v.start,-1,!1,null,C,T),$=r.createOnigString(o.substring(0,v.end));Tl(r,$,t&&v.start===0,v.start,M,a,!1,0),xl($);continue}const y=f.getName(o,s);if(y!==null){const C=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(y,r);u.push(new qd(C,v.end))}}for(;u.length>0;)a.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var qd=class{scopes;endPos;constructor(r,e){this.scopes=r,this.endPos=e}};function Hd(r,e,t,n,a,i,s,o){return new jd(r,e,t,n,a,i,s,o)}function cs(r,e,t,n,a){const i=Sn(e,Tn),s=Cl.getCompiledRuleId(t,n,a.repository);for(const o of i)r.push({debugSelector:e,matcher:o.matcher,ruleId:s,grammar:a,priority:o.priority})}function Tn(r,e){if(e.length<r.length)return!1;let t=0;return r.every(n=>{for(let a=t;a<e.length;a++)if(Ud(e[a],n))return t=a+1,!0;return!1})}function Ud(r,e){if(!r)return!1;if(r===e)return!0;const t=e.length;return r.length>t&&r.substr(0,t)===e&&r[t]==="."}var jd=class{constructor(r,e,t,n,a,i,s,o){if(this._rootScopeName=r,this.balancedBracketSelectors=i,this._onigLib=o,this._basicScopeAttributesProvider=new $d(t,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=hs(e,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const l of Object.keys(a)){const u=Sn(l,Tn);for(const d of u)this._tokenTypeMatchers.push({matcher:d.matcher,type:a[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const r of this._ruleId2desc)r&&r.dispose()}createOnigScanner(r){return this._onigLib.createOnigScanner(r)}createOnigString(r){return this._onigLib.createOnigString(r)}getMetadataForScope(r){return this._basicScopeAttributesProvider.getBasicScopeAttributes(r)}_collectInjections(){const r={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},e=[],t=this._rootScopeName,n=r.lookup(t);if(n){const a=n.injections;if(a)for(let s in a)cs(e,s,a[s],this,n);const i=this._grammarRepository.injections(t);i&&i.forEach(s=>{const o=this.getExternalGrammar(s);if(o){const l=o.injectionSelector;l&&cs(e,l,o,this,o)}})}return e.sort((a,i)=>a.priority-i.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(r){const e=++this._lastRuleId,t=r(e);return this._ruleId2desc[e]=t,t}getRule(r){return this._ruleId2desc[r]}getExternalGrammar(r,e){if(this._includedGrammars[r])return this._includedGrammars[r];if(this._grammarRepository){const t=this._grammarRepository.lookup(r);if(t)return this._includedGrammars[r]=hs(t,e&&e.$base),this._includedGrammars[r]}}tokenizeLine(r,e,t=0){const n=this._tokenize(r,e,!1,t);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(r,e,t=0){const n=this._tokenize(r,e,!0,t);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(r,e,t,n){this._rootId===-1&&(this._rootId=Cl.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!e||e===a0.NULL){a=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),m=lr.set(0,u.languageId,u.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),f=this.getRule(this._rootId).getName(null,null);let v;f?v=kr.createRootAndLookUpScopeName(f,m,this):v=kr.createRoot("unknown",m),e=new a0(null,this._rootId,-1,-1,!1,null,v,v)}else a=!1,e.reset();r=r+`
329
+ `;const i=this.createOnigString(r),s=i.content.length,o=new Vd(t,r,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Tl(this,i,a,0,e,o,!0,n);return xl(i),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function hs(r,e){return r=cd(r),r.repository=r.repository||{},r.repository.$self={$vscodeTextmateLocation:r.$vscodeTextmateLocation,patterns:r.patterns,name:r.scopeName},r.repository.$base=e||r.repository.$self,r}var kr=class Qe{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(e,t){let n=e,a=e?.scopePath??null;for(const i of t)a=Ca.push(a,i.scopeNames),n=new Qe(n,a,i.encodedTokenAttributes);return n}static createRoot(e,t){return new Qe(null,new Ca(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const a=n.getMetadataForScope(e),i=new Ca(null,e),s=n.themeProvider.themeMatch(i),o=Qe.mergeAttributes(t,a,s);return new Qe(null,i,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return Qe.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let a=-1,i=0,s=0;return n!==null&&(a=n.fontStyle,i=n.foregroundId,s=n.backgroundId),lr.set(e,t.languageId,t.tokenType,null,a,i,s)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return Qe._pushAttributed(this,e,t);const n=e.split(/ /g);let a=this;for(const i of n)a=Qe._pushAttributed(a,i,t);return a}static _pushAttributed(e,t,n){const a=n.getMetadataForScope(t),i=e.scopePath.push(t),s=n.themeProvider.themeMatch(i),o=Qe.mergeAttributes(e.tokenAttributes,a,s);return new Qe(e,i,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},a0=class $t{constructor(e,t,n,a,i,s,o,l){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=s,this.nameScopesList=o,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new $t(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:$t._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?kr.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){$t._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,a,i,s,o){return new $t(this,e,t,n,a,i,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new $t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,t){const n=kr.fromExtension(e?.nameScopesList??null,t.nameScopesList);return new $t(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,kr.fromExtension(n,t.contentNameScopesList))}},Wd=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(r,e){this.balancedBracketScopes=r.flatMap(t=>t==="*"?(this.allowAny=!0,[]):Sn(t,Tn).map(n=>n.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>Sn(t,Tn).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(r){for(const e of this.unbalancedBracketScopes)if(e(r))return!1;for(const e of this.balancedBracketScopes)if(e(r))return!0;return this.allowAny}},Vd=class{constructor(r,e,t,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=r,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(r,e){this.produceFromScopes(r.contentNameScopesList,e)}produceFromScopes(r,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=r?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=r?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(i)&&(n=lr.set(n,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(i))}if(a&&(n=lr.set(n,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const t=r?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(r,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(r,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(r,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let n=0,a=this._binaryTokens.length;n<a;n++)t[n]=this._binaryTokens[n];return t}},Xd=class{constructor(r,e){this._onigLib=e,this._theme=r}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const r of this._grammars.values())r.dispose()}setTheme(r){this._theme=r}getColorMap(){return this._theme.getColorMap()}addGrammar(r,e){this._rawGrammars.set(r.scopeName,r),e&&this._injectionGrammars.set(r.scopeName,e)}lookup(r){return this._rawGrammars.get(r)}injections(r){return this._injectionGrammars.get(r)}getDefaults(){return this._theme.getDefaults()}themeMatch(r){return this._theme.match(r)}grammarForScopeName(r,e,t,n,a){if(!this._grammars.has(r)){let i=this._rawGrammars.get(r);if(!i)return null;this._grammars.set(r,Hd(r,i,e,t,n,a,this,this._onigLib))}return this._grammars.get(r)}},Kd=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Xd(kn.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(kn.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new Wd(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,a,i){const s=new Cd(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(o=>this._loadSingleGrammar(o.scopeName)),s.processQueue();return this._grammarForScopeName(e,t,n,a,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,a=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,a)}_grammarForScopeName(e,t=0,n=null,a=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,a,i)}},i0=a0.NULL;function Mn(r,e){const t=typeof r=="string"?{}:{...r.colorReplacements},n=typeof r=="string"?r:r.name;for(const[a,i]of Object.entries(e?.colorReplacements||{}))typeof i=="string"?t[a]=i:a===n&&Object.assign(t,i);return t}function At(r,e){return r&&(e?.[r?.toLowerCase()]||r)}function Yd(r){return Array.isArray(r)?r:[r]}async function El(r){return Promise.resolve(typeof r=="function"?r():r).then(e=>e.default||e)}function Wn(r){return!r||["plaintext","txt","text","plain"].includes(r)}function Rl(r){return r==="ansi"||Wn(r)}function Vn(r){return r==="none"}function _l(r){return Vn(r)}const Zd=/(\r?\n)/g;function Xn(r,e=!1){if(r.length===0)return[["",0]];const t=r.split(Zd);let n=0;const a=[];for(let i=0;i<t.length;i+=2){const s=e?t[i]+(t[i+1]||""):t[i];a.push([s,n]),n+=t[i].length,n+=t[i+1]?.length||0}return a}const ds={light:"#333333",dark:"#bbbbbb"},ms={light:"#fffffe",dark:"#1e1e1e"},ps="__shiki_resolved";function ti(r){if(r?.[ps])return r;const e={...r};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:t,fg:n}=e;if(!t||!n){const o=e.settings?e.settings.find(l=>!l.name&&!l.scope):void 0;o?.settings?.foreground&&(n=o.settings.foreground),o?.settings?.background&&(t=o.settings.background),!n&&e?.colors?.["editor.foreground"]&&(n=e.colors["editor.foreground"]),!t&&e?.colors?.["editor.background"]&&(t=e.colors["editor.background"]),n||(n=e.type==="light"?ds.light:ds.dark),t||(t=e.type==="light"?ms.light:ms.dark),e.fg=n,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let a=0;const i=new Map;function s(o){if(i.has(o))return i.get(o);a+=1;const l=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${l}`]?s(o):(i.set(o,l),l)}e.settings=e.settings.map(o=>{const l=o.settings?.foreground&&!o.settings.foreground.startsWith("#"),u=o.settings?.background&&!o.settings.background.startsWith("#");if(!l&&!u)return o;const d={...o,settings:{...o.settings}};if(l){const m=s(o.settings.foreground);e.colorReplacements[m]=o.settings.foreground,d.settings.foreground=m}if(u){const m=s(o.settings.background);e.colorReplacements[m]=o.settings.background,d.settings.background=m}return d});for(const o of Object.keys(e.colors||{}))if((o==="editor.foreground"||o==="editor.background"||o.startsWith("terminal.ansi"))&&!e.colors[o]?.startsWith("#")){const l=s(e.colors[o]);e.colorReplacements[l]=e.colors[o],e.colors[o]=l}return Object.defineProperty(e,ps,{enumerable:!1,writable:!1,value:!0}),e}async function Nl(r){return[...new Set((await Promise.all(r.filter(e=>!Rl(e)).map(async e=>await El(e).then(t=>Array.isArray(t)?t:[t])))).flat())]}async function Il(r){return(await Promise.all(r.map(async e=>_l(e)?null:ti(await El(e))))).filter(e=>!!e)}function Ll(r,e){if(!e)return r;if(e[r]){const t=new Set([r]);for(;e[r];){if(r=e[r],t.has(r))throw new ee(`Circular alias \`${[...t].join(" -> ")} -> ${r}\``);t.add(r)}}return r}var Qd=class extends Kd{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(r,e,t,n={}){super(r),this._resolver=r,this._themes=e,this._langs=t,this._alias=n,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const e=ti(r);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let e=this._textmateThemeCache.get(r);e||(e=kn.createFromRawTheme(r),this._textmateThemeCache.set(r,e)),this._syncRegistry.setTheme(e)}getGrammar(r){return r=Ll(r,this._alias),this._resolvedGrammars.get(r)}loadLanguage(r){if(this.getGrammar(r.name))return;const e=new Set([...this._langMap.values()].filter(a=>a.embeddedLangsLazy?.includes(r.name)));this._resolver.addLanguage(r);const t={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const n=this.loadGrammarWithConfiguration(r.scopeName,1,t);if(n.name=r.name,this._resolvedGrammars.set(r.name,n),r.aliases&&r.aliases.forEach(a=>{this._alias[a]=r.name}),this._loadedLanguagesCache=null,e.size)for(const a of e)this._resolvedGrammars.delete(a.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(a.scopeName),this._syncRegistry?._grammars?.delete(a.scopeName),this.loadLanguage(this._langMap.get(a.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const n of r)this.resolveEmbeddedLanguages(n);const e=[...this._langGraph.entries()],t=e.filter(([n,a])=>!a);if(t.length){const n=e.filter(([a,i])=>i?(i.embeddedLanguages||i.embeddedLangs)?.some(s=>t.map(([o])=>o).includes(s)):!1).filter(a=>!t.includes(a));throw new ee(`Missing languages ${t.map(([a])=>`\`${a}\``).join(", ")}, required by ${n.map(([a])=>`\`${a}\``).join(", ")}`)}for(const[n,a]of e)this._resolver.addLanguage(a);for(const[n,a]of e)this.loadLanguage(a)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){this._langMap.set(r.name,r),this._langGraph.set(r.name,r);const e=r.embeddedLanguages??r.embeddedLangs;if(e)for(const t of e)this._langGraph.set(t,this._langMap.get(t))}},Jd=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(r,e){this._onigLib={createOnigScanner:t=>r.createScanner(t),createOnigString:t=>r.createString(t)},e.forEach(t=>this.addLanguage(t))}get onigLib(){return this._onigLib}getLangRegistration(r){return this._langs.get(r)}loadGrammar(r){return this._scopeToLang.get(r)}addLanguage(r){this._langs.set(r.name,r),r.aliases&&r.aliases.forEach(e=>{this._langs.set(e,r)}),this._scopeToLang.set(r.scopeName,r),r.injectTo&&r.injectTo.forEach(e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(r.scopeName)})}getInjections(r){const e=r.split(".");let t=[];for(let n=1;n<=e.length;n++){const a=e.slice(0,n).join(".");t=[...t,...this._injections.get(a)||[]]}return t}};let vr=0;function em(r){vr+=1,r.warnings!==!1&&vr>=10&&vr%10===0&&console.warn(`[Shiki] ${vr} 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 e=!1;if(!r.engine)throw new ee("`engine` option is required for synchronous mode");const t=(r.langs||[]).flat(1),n=(r.themes||[]).flat(1).map(ti),a=new Qd(new Jd(r.engine,t),n,t,r.langAlias);let i;function s(T){return Ll(T,r.langAlias)}function o(T){C();const M=a.getGrammar(typeof T=="string"?T:T.name);if(!M)throw new ee(`Language \`${T}\` not found, you may need to load it first`);return M}function l(T){if(T==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const M=a.getTheme(T);if(!M)throw new ee(`Theme \`${T}\` not found, you may need to load it first`);return M}function u(T){C();const M=l(T);return i!==T&&(a.setTheme(M),i=T),{theme:M,colorMap:a.getColorMap()}}function d(){return C(),a.getLoadedThemes()}function m(){return C(),a.getLoadedLanguages()}function f(...T){C(),a.loadLanguages(T.flat(1))}async function v(...T){return f(await Nl(T))}function y(...T){C();for(const M of T.flat(1))a.loadTheme(M)}async function k(...T){return C(),y(await Il(T))}function C(){if(e)throw new ee("Shiki instance has been disposed")}function S(){e||(e=!0,a.dispose(),vr-=1)}return{setTheme:u,getTheme:l,getLanguage:o,getLoadedThemes:d,getLoadedLanguages:m,resolveLangAlias:s,loadLanguage:v,loadLanguageSync:f,loadTheme:k,loadThemeSync:y,dispose:S,[Symbol.dispose]:S}}async function tm(r){r.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,t,n]=await Promise.all([Il(r.themes||[]),Nl(r.langs||[]),r.engine]);return em({...r,themes:e,langs:t,engine:n})}const zl=new WeakMap;function Kn(r,e){zl.set(r,e)}function Rr(r){return zl.get(r)}var Yn=class $l{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new $l(Object.fromEntries(Yd(t).map(n=>[n,i0])),e)}constructor(...e){if(e.length===2){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,a]=e;this.lang=n,this._stacks={[a]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return rm(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function rm(r){const e=[],t=new Set;function n(a){if(t.has(a))return;t.add(a);const i=a?.nameScopesList?.scopeName;i&&e.push(i),a.parent&&n(a.parent)}return n(r),e}function nm(r,e){if(!(r instanceof Yn))throw new ee("Invalid grammar state");return r.getInternalStack(e)}const am=/,/,im=/ /;function Bl(r,e,t={}){const{theme:n=r.getLoadedThemes()[0]}=t;if(Wn(r.resolveLangAlias(t.lang||"text"))||Vn(n))return Xn(e).map(o=>[{content:o[0],offset:o[1]}]);const{theme:a,colorMap:i}=r.setTheme(n),s=r.getLanguage(t.lang||"text");if(t.grammarState){if(t.grammarState.lang!==s.name)throw new ee(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${s.name}"`);if(!t.grammarState.themes.includes(a.name))throw new ee(`Grammar state themes "${t.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return om(e,s,a,i,t)}function sm(...r){if(r.length===2)return Rr(r[1]);const[e,t,n={}]=r,{lang:a="text",theme:i=e.getLoadedThemes()[0]}=n;if(Wn(a)||Vn(i))throw new ee("Plain language does not have grammar state");if(a==="ansi")throw new ee("ANSI language does not have grammar state");const{theme:s,colorMap:o}=e.setTheme(i),l=e.getLanguage(a);return new Yn(ri(t,l,s,o,n).stateStack,l.name,s.name)}function om(r,e,t,n,a){const i=ri(r,e,t,n,a),s=new Yn(i.stateStack,e.name,t.name);return Kn(i.tokens,s),i.tokens}function ri(r,e,t,n,a){const i=Mn(t,a),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:o=500}=a,l=Xn(r);let u=a.grammarState?nm(a.grammarState,t.name)??i0:a.grammarContextCode!=null?ri(a.grammarContextCode,e,t,n,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:i0,d=[];const m=[];for(let f=0,v=l.length;f<v;f++){const[y,k]=l[f];if(y===""){d=[],m.push([]);continue}if(s>0&&y.length>=s){d=[],m.push([{content:y,offset:k,color:"",fontStyle:0}]);continue}let C,S,T;a.includeExplanation&&(C=e.tokenizeLine(y,u,o),S=C.tokens,T=0);const M=e.tokenizeLine2(y,u,o),$=M.tokens.length/2;for(let L=0;L<$;L++){const P=M.tokens[2*L],D=L+1<$?M.tokens[2*L+2]:y.length;if(P===D)continue;const W=M.tokens[2*L+1],V=At(n[lr.getForeground(W)],i),Ne=lr.getFontStyle(W),oe={content:y.substring(P,D),offset:k+P,color:V,fontStyle:Ne};if(a.includeExplanation){const Z=[];if(a.includeExplanation!=="scopeName")for(const re of t.settings){let ge;switch(typeof re.scope){case"string":ge=re.scope.split(am).map(Be=>Be.trim());break;case"object":ge=re.scope;break;default:continue}Z.push({settings:re,selectors:ge.map(Be=>Be.split(im))})}oe.explanation=[];let Ke=0;for(;P+Ke<D;){const re=S[T],ge=y.substring(re.startIndex,re.endIndex);Ke+=ge.length,oe.explanation.push({content:ge,scopes:a.includeExplanation==="scopeName"?lm(re.scopes):um(Z,re.scopes)}),T+=1}}d.push(oe)}m.push(d),d=[],u=M.ruleStack}return{tokens:m,stateStack:u}}function lm(r){return r.map(e=>({scopeName:e}))}function um(r,e){const t=[];for(let n=0,a=e.length;n<a;n++){const i=e[n];t[n]={scopeName:i,themeMatches:hm(r,i,e.slice(0,n))}}return t}function fs(r,e){return r===e||e.substring(0,r.length)===r&&e[r.length]==="."}function cm(r,e,t){if(!fs(r.at(-1),e))return!1;let n=r.length-2,a=t.length-1;for(;n>=0&&a>=0;)fs(r[n],t[a])&&(n-=1),a-=1;return n===-1}function hm(r,e,t){const n=[];for(const{selectors:a,settings:i}of r)for(const s of a)if(cm(s,e,t)){n.push(i);break}return n}function Pl(r,e,t,n=Bl){const a=Object.entries(t.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),i=a.map(u=>{const d=n(r,e,{...t,theme:u.theme});return{tokens:d,state:Rr(d),theme:typeof u.theme=="string"?u.theme:u.theme.name}}),s=dm(...i.map(u=>u.tokens)),o=s[0].map((u,d)=>u.map((m,f)=>{const v={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in t&&t.includeExplanation&&(v.explanation=m.explanation),s.forEach((y,k)=>{const{content:C,explanation:S,offset:T,...M}=y[d][f];v.variants[a[k].color]=M}),v})),l=i[0].state?new Yn(Object.fromEntries(i.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),i[0].state.lang):void 0;return l&&Kn(o,l),o}function dm(...r){const e=r.map(()=>[]),t=r.length;for(let n=0;n<r[0].length;n++){const a=r.map(l=>l[n]),i=e.map(()=>[]);e.forEach((l,u)=>l.push(i[u]));const s=a.map(()=>0),o=a.map(l=>l[0]);for(;o.every(l=>l);){const l=Math.min(...o.map(u=>u.content.length));for(let u=0;u<t;u++){const d=o[u];d.content.length===l?(i[u].push(d),s[u]+=1,o[u]=a[u][s[u]]):(i[u].push({...d,content:d.content.slice(0,l)}),o[u]={...d,content:d.content.slice(l),offset:d.offset+l})}}}return e}const mm=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Pr{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}Pr.prototype.normal={};Pr.prototype.property={};Pr.prototype.space=void 0;function Dl(r,e){const t={},n={};for(const a of r)Object.assign(t,a.property),Object.assign(n,a.normal);return new Pr(t,n,e)}function s0(r){return r.toLowerCase()}class _e{constructor(e,t){this.attribute=t,this.property=e}}_e.prototype.attribute="";_e.prototype.booleanish=!1;_e.prototype.boolean=!1;_e.prototype.commaOrSpaceSeparated=!1;_e.prototype.commaSeparated=!1;_e.prototype.defined=!1;_e.prototype.mustUseProperty=!1;_e.prototype.number=!1;_e.prototype.overloadedBoolean=!1;_e.prototype.property="";_e.prototype.spaceSeparated=!1;_e.prototype.space=void 0;let pm=0;const H=jt(),ce=jt(),o0=jt(),N=jt(),J=jt(),ir=jt(),Ie=jt();function jt(){return 2**++pm}var l0=Object.freeze({__proto__:null,boolean:H,booleanish:ce,commaOrSpaceSeparated:Ie,commaSeparated:ir,number:N,overloadedBoolean:o0,spaceSeparated:J});const Ta=Object.keys(l0);class ni extends _e{constructor(e,t,n,a){let i=-1;if(super(e,t),gs(this,"space",a),typeof n=="number")for(;++i<Ta.length;){const s=Ta[i];gs(this,Ta[i],(n&l0[s])===l0[s])}}}ni.prototype.defined=!0;function gs(r,e,t){t&&(r[e]=t)}function dr(r){const e={},t={};for(const[n,a]of Object.entries(r.properties)){const i=new ni(n,r.transform(r.attributes||{},n),a,r.space);r.mustUseProperty&&r.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),e[n]=i,t[s0(n)]=n,t[s0(i.attribute)]=n}return new Pr(e,t,r.space)}const Ol=dr({properties:{ariaActiveDescendant:null,ariaAtomic:ce,ariaAutoComplete:null,ariaBusy:ce,ariaChecked:ce,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:ce,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:ce,ariaFlowTo:J,ariaGrabbed:ce,ariaHasPopup:null,ariaHidden:ce,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:N,ariaLive:null,ariaModal:ce,ariaMultiLine:ce,ariaMultiSelectable:ce,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:ce,ariaReadOnly:ce,ariaRelevant:null,ariaRequired:ce,ariaRoleDescription:J,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:ce,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,ariaValueText:null,role:null},transform(r,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Gl(r,e){return e in r?r[e]:e}function Fl(r,e){return Gl(r,e.toLowerCase())}const fm=dr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ir,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:J,autoFocus:H,autoPlay:H,blocking:J,capture:null,charSet:null,checked:H,cite:null,className:J,cols:N,colSpan:null,content:null,contentEditable:ce,controls:H,controlsList:J,coords:N|ir,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:o0,draggable:ce,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:J,height:N,hidden:o0,high:N,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:J,itemRef:J,itemScope:H,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:H,optimum:N,pattern:null,ping:J,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:J,required:H,reversed:H,rows:N,rowSpan:N,sandbox:J,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:ce,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:ce,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:ce,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:N,security:null,unselectable:null},space:"html",transform:Fl}),gm=dr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ie,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ir,g2:ir,glyphName:ir,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:Ie,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:N,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ie,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ie,rev:Ie,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ie,requiredFeatures:Ie,requiredFonts:Ie,requiredFormats:Ie,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:Ie,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ie,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ie,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Gl}),ql=dr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(r,e){return"xlink:"+e.slice(5).toLowerCase()}}),Hl=dr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fl}),Ul=dr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(r,e){return"xml:"+e.slice(3).toLowerCase()}}),vm=/[A-Z]/g,vs=/-[a-z]/g,ym=/^data[-\w.:]+$/i;function bm(r,e){const t=s0(e);let n=e,a=_e;if(t in r.normal)return r.property[r.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ym.test(e)){if(e.charAt(4)==="-"){const i=e.slice(5).replace(vs,xm);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=e.slice(4);if(!vs.test(i)){let s=i.replace(vm,wm);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}a=ni}return new a(n,e)}function wm(r){return"-"+r.toLowerCase()}function xm(r){return r.charAt(1).toUpperCase()}const km=Dl([Ol,fm,ql,Hl,Ul],"html"),jl=Dl([Ol,gm,ql,Hl,Ul],"svg"),ys={}.hasOwnProperty;function Sm(r,e){const t=e||{};function n(a,...i){let s=n.invalid;const o=n.handlers;if(a&&ys.call(a,r)){const l=String(a[r]);s=ys.call(o,l)?o[l]:n.unknown}if(s)return s.call(this,a,...i)}return n.handlers=t.handlers||{},n.invalid=t.invalid,n.unknown=t.unknown,n}const Cm=/["&'<>`]/g,Am=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Tm=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Mm=/[|\\{}()[\]^$+*?.]/g,bs=new WeakMap;function Em(r,e){if(r=r.replace(e.subset?Rm(e.subset):Cm,n),e.subset||e.escapeOnly)return r;return r.replace(Am,t).replace(Tm,n);function t(a,i,s){return e.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),e)}function n(a,i,s){return e.format(a.charCodeAt(0),s.charCodeAt(i+1),e)}}function Rm(r){let e=bs.get(r);return e||(e=_m(r),bs.set(r,e)),e}function _m(r){const e=[];let t=-1;for(;++t<r.length;)e.push(r[t].replace(Mm,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Nm=/[\dA-Fa-f]/;function Im(r,e,t){const n="&#x"+r.toString(16).toUpperCase();return t&&e&&!Nm.test(String.fromCharCode(e))?n:n+";"}const Lm=/\d/;function zm(r,e,t){const n="&#"+String(r);return t&&e&&!Lm.test(String.fromCharCode(e))?n:n+";"}const $m=["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"],Ma={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:"€"},Bm=["cent","copy","divide","gt","lt","not","para","times"],Wl={}.hasOwnProperty,u0={};let tn;for(tn in Ma)Wl.call(Ma,tn)&&(u0[Ma[tn]]=tn);const Pm=/[^\dA-Za-z]/;function Dm(r,e,t,n){const a=String.fromCharCode(r);if(Wl.call(u0,a)){const i=u0[a],s="&"+i;return t&&$m.includes(i)&&!Bm.includes(i)&&(!n||e&&e!==61&&Pm.test(String.fromCharCode(e)))?s:s+";"}return""}function Om(r,e,t){let n=Im(r,e,t.omitOptionalSemicolons),a;if((t.useNamedReferences||t.useShortestReferences)&&(a=Dm(r,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!a)&&t.useShortestReferences){const i=zm(r,e,t.omitOptionalSemicolons);i.length<n.length&&(n=i)}return a&&(!t.useShortestReferences||a.length<n.length)?a:n}function sr(r,e){return Em(r,Object.assign({format:Om},e))}const Gm=/^>|^->|<!--|-->|--!>|<!-$/g,Fm=[">"],qm=["<",">"];function Hm(r,e,t,n){return n.settings.bogusComments?"<?"+sr(r.value,Object.assign({},n.settings.characterReferences,{subset:Fm}))+">":"<!--"+r.value.replace(Gm,a)+"-->";function a(i){return sr(i,Object.assign({},n.settings.characterReferences,{subset:qm}))}}function Um(r,e,t,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function ws(r,e){const t=String(r);if(typeof e!="string")throw new TypeError("Expected character");let n=0,a=t.indexOf(e);for(;a!==-1;)n++,a=t.indexOf(e,a+e.length);return n}function jm(r,e){const t=e||{};return(r[r.length-1]===""?[...r,""]:r).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function Wm(r){return r.join(" ").trim()}const Vm=/[ \t\n\f\r]/g;function ai(r){return typeof r=="object"?r.type==="text"?xs(r.value):!1:xs(r)}function xs(r){return r.replace(Vm,"")===""}const fe=Xl(1),Vl=Xl(-1),Xm=[];function Xl(r){return e;function e(t,n,a){const i=t?t.children:Xm;let s=(n||0)+r,o=i[s];if(!a)for(;o&&ai(o);)s+=r,o=i[s];return o}}const Km={}.hasOwnProperty;function Kl(r){return e;function e(t,n,a){return Km.call(r,t.tagName)&&r[t.tagName](t,n,a)}}const ii=Kl({body:Zm,caption:Ea,colgroup:Ea,dd:tp,dt:ep,head:Ea,html:Ym,li:Jm,optgroup:rp,option:np,p:Qm,rp:ks,rt:ks,tbody:ip,td:Ss,tfoot:sp,th:Ss,thead:ap,tr:op});function Ea(r,e,t){const n=fe(t,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&ai(n.value.charAt(0)))}function Ym(r,e,t){const n=fe(t,e);return!n||n.type!=="comment"}function Zm(r,e,t){const n=fe(t,e);return!n||n.type!=="comment"}function Qm(r,e,t){const n=fe(t,e);return n?n.type==="element"&&(n.tagName==="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"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function Jm(r,e,t){const n=fe(t,e);return!n||n.type==="element"&&n.tagName==="li"}function ep(r,e,t){const n=fe(t,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function tp(r,e,t){const n=fe(t,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function ks(r,e,t){const n=fe(t,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function rp(r,e,t){const n=fe(t,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function np(r,e,t){const n=fe(t,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function ap(r,e,t){const n=fe(t,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function ip(r,e,t){const n=fe(t,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function sp(r,e,t){return!fe(t,e)}function op(r,e,t){const n=fe(t,e);return!n||n.type==="element"&&n.tagName==="tr"}function Ss(r,e,t){const n=fe(t,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const lp=Kl({body:hp,colgroup:dp,head:cp,html:up,tbody:mp});function up(r){const e=fe(r,-1);return!e||e.type!=="comment"}function cp(r){const e=new Set;for(const n of r.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const t=r.children[0];return!t||t.type==="element"}function hp(r){const e=fe(r,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&ai(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function dp(r,e,t){const n=Vl(t,e),a=fe(r,-1,!0);return t&&n&&n.type==="element"&&n.tagName==="colgroup"&&ii(n,t.children.indexOf(n),t)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function mp(r,e,t){const n=Vl(t,e),a=fe(r,-1);return t&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&ii(n,t.children.indexOf(n),t)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const rn={name:[[`
330
+ \f\r &/=>`.split(""),`
331
+ \f\r "&'/=>\``.split("")],[`\0
332
+ \f\r "&'/<=>`.split(""),`\0
333
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
334
+ \f\r &>`.split(""),`\0
335
+ \f\r "&'<=>\``.split("")],[`\0
336
+ \f\r "&'<=>\``.split(""),`\0
337
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function pp(r,e,t,n){const a=n.schema,i=a.space==="svg"?!1:n.settings.omitOptionalTags;let s=a.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(r.tagName.toLowerCase());const o=[];let l;a.space==="html"&&r.tagName==="svg"&&(n.schema=jl);const u=fp(n,r.properties),d=n.all(a.space==="html"&&r.tagName==="template"?r.content:r);return n.schema=a,d&&(s=!1),(u||!i||!lp(r,e,t))&&(o.push("<",r.tagName,u?" "+u:""),s&&(a.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(d),!s&&(!i||!ii(r,e,t))&&o.push("</"+r.tagName+">"),o.join("")}function fp(r,e){const t=[];let n=-1,a;if(e){for(a in e)if(e[a]!==null&&e[a]!==void 0){const i=gp(r,a,e[a]);i&&t.push(i)}}for(;++n<t.length;){const i=r.settings.tightAttributes?t[n].charAt(t[n].length-1):void 0;n!==t.length-1&&i!=='"'&&i!=="'"&&(t[n]+=" ")}return t.join("")}function gp(r,e,t){const n=bm(r.schema,e),a=r.settings.allowParseErrors&&r.schema.space==="html"?0:1,i=r.settings.allowDangerousCharacters?0:1;let s=r.quote,o;if(n.overloadedBoolean&&(t===n.attribute||t==="")?t=!0:(n.boolean||n.overloadedBoolean)&&(typeof t!="string"||t===n.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const l=sr(n.attribute,Object.assign({},r.settings.characterReferences,{subset:rn.name[a][i]}));return t===!0||(t=Array.isArray(t)?(n.commaSeparated?jm:Wm)(t,{padLeft:!r.settings.tightCommaSeparatedLists}):String(t),r.settings.collapseEmptyAttributes&&!t)?l:(r.settings.preferUnquoted&&(o=sr(t,Object.assign({},r.settings.characterReferences,{attribute:!0,subset:rn.unquoted[a][i]}))),o!==t&&(r.settings.quoteSmart&&ws(t,s)>ws(t,r.alternative)&&(s=r.alternative),o=s+sr(t,Object.assign({},r.settings.characterReferences,{subset:(s==="'"?rn.single:rn.double)[a][i],attribute:!0}))+s),l+(o&&"="+o))}const vp=["<","&"];function Yl(r,e,t,n){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?r.value:sr(r.value,Object.assign({},n.settings.characterReferences,{subset:vp}))}function yp(r,e,t,n){return n.settings.allowDangerousHtml?r.value:Yl(r,e,t,n)}function bp(r,e,t,n){return n.all(r)}const wp=Sm("type",{invalid:xp,unknown:kp,handlers:{comment:Hm,doctype:Um,element:pp,raw:yp,root:bp,text:Yl}});function xp(r){throw new Error("Expected node, not `"+r+"`")}function kp(r){const e=r;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Sp={},Cp={},Ap=[];function Tp(r,e){const t=e||Sp,n=t.quote||'"',a=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:Mp,all:Ep,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||mm,characterReferences:t.characterReferences||Cp,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?jl:km,quote:n,alternative:a}.one(Array.isArray(r)?{type:"root",children:r}:r,void 0,void 0)}function Mp(r,e,t){return wp(r,e,t,this)}function Ep(r){const e=[],t=r&&r.children||Ap;let n=-1;for(;++n<t.length;)e[n]=this.one(t[n],n,r);return e.join("")}const Cs=/\s+/g;function Zl(r,e){if(!e)return r;r.properties||={},r.properties.class||=[],typeof r.properties.class=="string"&&(r.properties.class=r.properties.class.split(Cs)),Array.isArray(r.properties.class)||(r.properties.class=[]);const t=Array.isArray(e)?e:e.split(Cs);for(const n of t)n&&!r.properties.class.includes(n)&&r.properties.class.push(n);return r}const Rp=/:?lang=["']([^"']+)["']/g,_p=/(?:```|~~~)([\w-]+)/g,Np=/\\begin\{([\w-]+)\}/g,Ip=/<script\s+(?:type|lang)=["']([^"']+)["']/gi;function Lp(r){const e=Xn(r,!0).map(([a])=>a);function t(a){if(a===r.length)return{line:e.length-1,character:e.at(-1).length};let i=a,s=0;for(const o of e){if(i<o.length)break;i-=o.length,s++}return{line:s,character:i}}function n(a,i){let s=0;for(let o=0;o<a;o++)s+=e[o].length;return s+=i,s}return{lines:e,indexToPos:t,posToIndex:n}}function zp(r,e,t){const n=new Set;for(const i of r.matchAll(Rp)){const s=i[1].toLowerCase().trim();s&&n.add(s)}for(const i of r.matchAll(_p)){const s=i[1].toLowerCase().trim();s&&n.add(s)}for(const i of r.matchAll(Np)){const s=i[1].toLowerCase().trim();s&&n.add(s)}for(const i of r.matchAll(Ip)){const s=i[1].toLowerCase().trim(),o=s.includes("/")?s.split("/").pop():s;o&&n.add(o)}if(!t)return[...n];const a=t.getBundledLanguages();return[...n].filter(i=>i&&a[i])}const $p=["color","background-color"];function Bp(r,e){let t=0;const n=[];for(const a of e)a>t&&n.push({...r,content:r.content.slice(t,a),offset:r.offset+t}),t=a;return t<r.content.length&&n.push({...r,content:r.content.slice(t),offset:r.offset+t}),n}function Pp(r,e){const t=[...e instanceof Set?e:new Set(e)].sort((n,a)=>n-a);return t.length?r.map(n=>n.flatMap(a=>{const i=t.filter(s=>a.offset<s&&s<a.offset+a.content.length).map(s=>s-a.offset).sort((s,o)=>s-o);return i.length?Bp(a,i):a})):r}function Dp(r,e,t,n,a="css-vars"){const i={content:r.content,explanation:r.explanation,offset:r.offset},s=e.map(d=>_r(r.variants[d])),o=new Set(s.flatMap(d=>Object.keys(d))),l={},u=(d,m)=>{const f=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return t+e[d]+(m==="color"?"":f)};return s.forEach((d,m)=>{for(const f of o){const v=d[f]||"inherit";if(m===0&&n&&$p.includes(f))if(n==="light-dark()"&&s.length>1){const y=e.findIndex(C=>C==="light"),k=e.findIndex(C=>C==="dark");if(y===-1||k===-1)throw new ee('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[f]=`light-dark(${s[y][f]||"inherit"}, ${s[k][f]||"inherit"})`,a==="css-vars"&&(l[u(m,f)]=v)}else l[f]=v;else a==="css-vars"&&(l[u(m,f)]=v)}}),i.htmlStyle=l,i}function _r(r){const e={};if(r.color&&(e.color=r.color),r.bgColor&&(e["background-color"]=r.bgColor),r.fontStyle){r.fontStyle&we.Italic&&(e["font-style"]="italic"),r.fontStyle&we.Bold&&(e["font-weight"]="bold");const t=[];r.fontStyle&we.Underline&&t.push("underline"),r.fontStyle&we.Strikethrough&&t.push("line-through"),t.length&&(e["text-decoration"]=t.join(" "))}return e}function En(r){return typeof r=="string"?r:Object.entries(r).map(([e,t])=>`${e}:${t}`).join(";")}function Op(){const r=new WeakMap;function e(t){if(!r.has(t.meta)){let i=function(o){if(typeof o=="number"){if(o<0||o>t.source.length)throw new ee(`Invalid decoration offset: ${o}. Code length: ${t.source.length}`);return{...a.indexToPos(o),offset:o}}else{const l=a.lines[o.line];if(l===void 0)throw new ee(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${a.lines.length}`);let u=o.character;if(u<0&&(u=l.length+u),u<0||u>l.length)throw new ee(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${l.length}`);return{...o,character:u,offset:a.posToIndex(o.line,u)}}};var n=i;const a=Lp(t.source),s=(t.options.decorations||[]).map(o=>({...o,start:i(o.start),end:i(o.end)}));Gp(s),r.set(t.meta,{decorations:s,converter:a,source:t.source})}return r.get(t.meta)}return{name:"shiki:decorations",tokens(t){if(this.options.decorations?.length)return Pp(t,e(this).decorations.flatMap(n=>[n.start.offset,n.end.offset]))},code(t){if(!this.options.decorations?.length)return;const n=e(this),a=[...t.children].filter(d=>d.type==="element"&&d.tagName==="span");if(a.length!==n.converter.lines.length)throw new ee(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(d,m,f,v){const y=a[d];let k="",C=-1,S=-1;if(m===0&&(C=0),f===0&&(S=0),f===Number.POSITIVE_INFINITY&&(S=y.children.length),C===-1||S===-1)for(let M=0;M<y.children.length;M++)k+=Ql(y.children[M]),C===-1&&k.length===m&&(C=M+1),S===-1&&k.length===f&&(S=M+1);if(C===-1)throw new ee(`Failed to find start index for decoration ${JSON.stringify(v.start)}`);if(S===-1)throw new ee(`Failed to find end index for decoration ${JSON.stringify(v.end)}`);const T=y.children.slice(C,S);if(!v.alwaysWrap&&T.length===y.children.length)o(y,v,"line");else if(!v.alwaysWrap&&T.length===1&&T[0].type==="element")o(T[0],v,"token");else{const M={type:"element",tagName:"span",properties:{},children:T};o(M,v,"wrapper"),y.children.splice(C,T.length,M)}}function s(d,m){a[d]=o(a[d],m,"line")}function o(d,m,f){const v=m.properties||{},y=m.transform||(k=>k);return d.tagName=m.tagName||"span",d.properties={...d.properties,...v,class:d.properties.class},m.properties?.class&&Zl(d,m.properties.class),d=y(d,f)||d,d}const l=[],u=n.decorations.sort((d,m)=>m.start.offset-d.start.offset||d.end.offset-m.end.offset);for(const d of u){const{start:m,end:f}=d;if(m.line===f.line)i(m.line,m.character,f.character,d);else if(m.line<f.line){i(m.line,m.character,Number.POSITIVE_INFINITY,d);for(let v=m.line+1;v<f.line;v++)l.unshift(()=>s(v,d));i(f.line,0,f.character,d)}}l.forEach(d=>d())}}}function Gp(r){for(let e=0;e<r.length;e++){const t=r[e];if(t.start.offset>t.end.offset)throw new ee(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let n=e+1;n<r.length;n++){const a=r[n],i=t.start.offset<=a.start.offset&&a.start.offset<t.end.offset,s=t.start.offset<a.end.offset&&a.end.offset<=t.end.offset,o=a.start.offset<=t.start.offset&&t.start.offset<a.end.offset,l=a.start.offset<t.end.offset&&t.end.offset<=a.end.offset;if(i||s||o||l){if(i&&s||o&&l||o&&t.start.offset===t.end.offset||s&&a.start.offset===a.end.offset)continue;throw new ee(`Decorations ${JSON.stringify(t.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function Ql(r){return r.type==="text"?r.value:r.type==="element"?r.children.map(Ql).join(""):""}const Fp=[Op()];function Rn(r){const e=qp(r.transformers||[]);return[...e.pre,...e.normal,...e.post,...Fp]}function qp(r){const e=[],t=[],n=[];for(const a of r)switch(a.enforce){case"pre":e.push(a);break;case"post":t.push(a);break;default:n.push(a)}return{pre:e,post:t,normal:n}}var Dt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ra={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Hp(r,e){const t=r.indexOf("\x1B",e);if(t!==-1&&r[t+1]==="["){const n=r.indexOf("m",t);if(n!==-1)return{sequence:r.substring(t+2,n).split(";"),startPosition:t,position:n+1}}return{position:r.length}}function As(r){const e=r.shift();if(e==="2"){const t=r.splice(0,3).map(n=>Number.parseInt(n));return t.length!==3||t.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:t}}else if(e==="5"){const t=r.shift();if(t)return{type:"table",index:Number(t)}}}function Up(r){const e=[];for(;r.length>0;){const t=r.shift();if(!t)continue;const n=Number.parseInt(t);if(!Number.isNaN(n))if(n===0)e.push({type:"resetAll"});else if(n<=9)Ra[n]&&e.push({type:"setDecoration",value:Ra[n]});else if(n<=29){const a=Ra[n-20];a&&(e.push({type:"resetDecoration",value:a}),a==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Dt[n-30]}});else if(n===38){const a=As(r);a&&e.push({type:"setForegroundColor",value:a})}else if(n===39)e.push({type:"resetForegroundColor"});else if(n<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Dt[n-40]}});else if(n===48){const a=As(r);a&&e.push({type:"setBackgroundColor",value:a})}else n===49?e.push({type:"resetBackgroundColor"}):n===53?e.push({type:"setDecoration",value:"overline"}):n===55?e.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Dt[n-90+8]}}):n>=100&&n<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Dt[n-100+8]}})}return e}function jp(){let r=null,e=null,t=new Set;return{parse(n){const a=[];let i=0;do{const s=Hp(n,i),o=s.sequence?n.substring(i,s.startPosition):n.substring(i);if(o.length>0&&a.push({value:o,foreground:r,background:e,decorations:new Set(t)}),s.sequence){const l=Up(s.sequence);for(const u of l)u.type==="resetAll"?(r=null,e=null,t.clear()):u.type==="resetForegroundColor"?r=null:u.type==="resetBackgroundColor"?e=null:u.type==="resetDecoration"&&t.delete(u.value);for(const u of l)u.type==="setForegroundColor"?r=u.value:u.type==="setBackgroundColor"?e=u.value:u.type==="setDecoration"&&t.add(u.value)}i=s.position}while(i<n.length);return a}}}var Wp={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"};function Vp(r=Wp){function e(o){return r[o]}function t(o){return`#${o.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let n;function a(){if(n)return n;n=[];for(let u=0;u<Dt.length;u++)n.push(e(Dt[u]));let o=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let d=0;d<6;d++)for(let m=0;m<6;m++)n.push(t([o[u],o[d],o[m]]));let l=8;for(let u=0;u<24;u++,l+=10)n.push(t([l,l,l]));return n}function i(o){return a()[o]}function s(o){switch(o.type){case"named":return e(o.name);case"rgb":return t(o.rgb);case"table":return i(o.index)}}return{value:s}}const Xp=/#([0-9a-f]{3,8})/i,Kp=/var\((--[\w-]+-ansi-[\w-]+)\)/,Yp={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 Zp(r,e,t){const n=Mn(r,t),a=Xn(e),i=Vp(Object.fromEntries(Dt.map(o=>{const l=`terminal.ansi${o[0].toUpperCase()}${o.substring(1)}`;return[o,r.colors?.[l]||Yp[o]]}))),s=jp();return a.map(o=>s.parse(o[0]).map(l=>{let u,d;l.decorations.has("reverse")?(u=l.background?i.value(l.background):r.bg,d=l.foreground?i.value(l.foreground):r.fg):(u=l.foreground?i.value(l.foreground):r.fg,d=l.background?i.value(l.background):void 0),u=At(u,n),d=At(d,n),l.decorations.has("dim")&&(u=Qp(u));let m=we.None;return l.decorations.has("bold")&&(m|=we.Bold),l.decorations.has("italic")&&(m|=we.Italic),l.decorations.has("underline")&&(m|=we.Underline),l.decorations.has("strikethrough")&&(m|=we.Strikethrough),{content:l.value,offset:o[1],color:u,bgColor:d,fontStyle:m}}))}function Qp(r){const e=r.match(Xp);if(e){const n=e[1];if(n.length===8){const a=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${a}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const a=n[0],i=n[1],s=n[2],o=n[3];return`#${a}${a}${i}${i}${s}${s}${Math.round(Number.parseInt(`${o}${o}`,16)/2).toString(16).padStart(2,"0")}`}else if(n.length===3){const a=n[0],i=n[1],s=n[2];return`#${a}${a}${i}${i}${s}${s}80`}}}const t=r.match(Kp);return t?`var(${t[1]}-dim)`:r}function c0(r,e,t={}){const n=r.resolveLangAlias(t.lang||"text"),{theme:a=r.getLoadedThemes()[0]}=t;if(!Wn(n)&&!Vn(a)&&n==="ansi"){const{theme:i}=r.setTheme(a);return Zp(i,e,t)}return Bl(r,e,t)}function _n(r,e,t){let n,a,i,s,o,l;if("themes"in t){const{defaultColor:u="light",cssVariablePrefix:d="--shiki-",colorsRendering:m="css-vars"}=t,f=Object.entries(t.themes).filter(S=>S[1]).map(S=>({color:S[0],theme:S[1]})).sort((S,T)=>S.color===u?-1:T.color===u?1:0);if(f.length===0)throw new ee("`themes` option must not be empty");const v=Pl(r,e,t,c0);if(l=Rr(v),u&&u!=="light-dark()"&&!f.some(S=>S.color===u))throw new ee(`\`themes\` option must contain the defaultColor key \`${u}\``);const y=f.map(S=>r.getTheme(S.theme)),k=f.map(S=>S.color);i=v.map(S=>S.map(T=>Dp(T,k,d,u,m))),l&&Kn(i,l);const C=f.map(S=>Mn(S.theme,t));a=Ts(f,y,C,d,u,"fg",m),n=Ts(f,y,C,d,u,"bg",m),s=`shiki-themes ${y.map(S=>S.name).join(" ")}`,o=u?void 0:[a,n].join(";")}else if("theme"in t){const u=Mn(t.theme,t);i=c0(r,e,t);const d=r.getTheme(t.theme);n=At(d.bg,u),a=At(d.fg,u),s=d.name,l=Rr(i)}else throw new ee("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:a,bg:n,themeName:s,rootStyle:o,grammarState:l}}function Ts(r,e,t,n,a,i,s){return r.map((o,l)=>{const u=At(e[l][i],t[l])||"inherit",d=`${n+o.color}${i==="bg"?"-bg":""}:${u}`;if(l===0&&a){if(a==="light-dark()"&&r.length>1){const m=r.findIndex(v=>v.color==="light"),f=r.findIndex(v=>v.color==="dark");if(m===-1||f===-1)throw new ee('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${At(e[m][i],t[m])||"inherit"}, ${At(e[f][i],t[f])||"inherit"});${d}`}return u}return s==="css-vars"?d:null}).filter(o=>!!o).join(";")}const Jl=/^\s+$/,Jp=/^(\s*)(.*?)(\s*)$/;function Nn(r,e,t,n={meta:{},options:t,codeToHast:(a,i)=>Nn(r,a,i),codeToTokens:(a,i)=>_n(r,a,i)}){let a=e;for(const y of Rn(t))a=y.preprocess?.call(n,a,t)||a;let{tokens:i,fg:s,bg:o,themeName:l,rootStyle:u,grammarState:d}=_n(r,a,t);const{mergeWhitespaces:m=!0,mergeSameStyleTokens:f=!1}=t;m===!0?i=tf(i):m==="never"&&(i=rf(i)),f&&(i=nf(i));const v={...n,get source(){return a}};for(const y of Rn(t))i=y.tokens?.call(v,i)||i;return ef(i,{...t,fg:s,bg:o,themeName:l,rootStyle:t.rootStyle===!1?!1:t.rootStyle??u},v,d)}function ef(r,e,t,n=Rr(r)){const a=Rn(e),i=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=e,u={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?u.style=e.rootStyle:u.style=`background-color:${e.bg};color:${e.fg}`),l!==!1&&l!=null&&(u.tabindex=l.toString());for(const[k,C]of Object.entries(e.meta||{}))k.startsWith("_")||(u[k]=C);let d={type:"element",tagName:"pre",properties:u,children:[],data:e.data},m={type:"element",tagName:"code",properties:{},children:i};const f=[],v={...t,structure:o,addClassToHast:Zl,get source(){return t.source},get tokens(){return r},get options(){return e},get root(){return s},get pre(){return d},get code(){return m},get lines(){return f}};if(r.forEach((k,C)=>{C&&(o==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):o==="classic"&&i.push({type:"text",value:`
338
+ `}));let S={type:"element",tagName:"span",properties:{class:"line"},children:[]},T=0;for(const M of k){let $={type:"element",tagName:"span",properties:{...M.htmlAttrs},children:[{type:"text",value:M.content}]};const L=En(M.htmlStyle||_r(M));L&&($.properties.style=L);for(const P of a)$=P?.span?.call(v,$,C+1,T,S,M)||$;o==="inline"?s.children.push($):o==="classic"&&S.children.push($),T+=M.content.length}if(o==="classic"){for(const M of a)S=M?.line?.call(v,S,C+1)||S;f.push(S),i.push(S)}else o==="inline"&&f.push(S)}),o==="classic"){for(const k of a)m=k?.code?.call(v,m)||m;d.children.push(m);for(const k of a)d=k?.pre?.call(v,d)||d;s.children.push(d)}else if(o==="inline"){const k=[];let C={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const T of s.children)T.type==="element"&&T.tagName==="br"?(k.push(C),C={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(T.type==="element"||T.type==="text")&&C.children.push(T);k.push(C);let S={type:"element",tagName:"code",properties:{},children:k};for(const T of a)S=T?.code?.call(v,S)||S;s.children=[];for(let T=0;T<S.children.length;T++){T>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const M=S.children[T];M.type==="element"&&s.children.push(...M.children)}}let y=s;for(const k of a)y=k?.root?.call(v,y)||y;return n&&Kn(y,n),y}function tf(r){return r.map(e=>{const t=[];let n="",a;return e.forEach((i,s)=>{const o=!(i.fontStyle&&(i.fontStyle&we.Underline||i.fontStyle&we.Strikethrough));o&&Jl.test(i.content)&&e[s+1]?(a===void 0&&(a=i.offset),n+=i.content):n?(o?t.push({...i,offset:a,content:n+i.content}):t.push({content:n,offset:a},i),a=void 0,n=""):t.push(i)}),t})}function rf(r){return r.map(e=>e.flatMap(t=>{if(Jl.test(t.content))return t;const n=t.content.match(Jp);if(!n)return t;const[,a,i,s]=n;if(!a&&!s)return t;const o=[{...t,offset:t.offset+a.length,content:i}];return a&&o.unshift({content:a,offset:t.offset}),s&&o.push({content:s,offset:t.offset+a.length+i.length}),o}))}function nf(r){return r.map(e=>{const t=[];for(const n of e){if(t.length===0){t.push({...n});continue}const a=t.at(-1),i=En(a.htmlStyle||_r(a)),s=En(n.htmlStyle||_r(n)),o=a.fontStyle&&(a.fontStyle&we.Underline||a.fontStyle&we.Strikethrough),l=n.fontStyle&&(n.fontStyle&we.Underline||n.fontStyle&we.Strikethrough);!o&&!l&&i===s?a.content+=n.content:t.push({...n})}return t})}const af=Tp;function sf(r,e,t){const n={meta:{},options:t,codeToHast:(i,s)=>Nn(r,i,s),codeToTokens:(i,s)=>_n(r,i,s)};let a=af(Nn(r,e,t,n));for(const i of Rn(t))a=i.postprocess?.call(n,a,t)||a;return a}async function of(r){const e=await tm(r);return{getLastGrammarState:(...t)=>sm(e,...t),codeToTokensBase:(t,n)=>c0(e,t,n),codeToTokensWithThemes:(t,n)=>Pl(e,t,n),codeToTokens:(t,n)=>_n(e,t,n),codeToHast:(t,n)=>Nn(e,t,n),codeToHtml:(t,n)=>sf(e,t,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function lf(r){const e=r.langs,t=r.themes,n=r.engine;async function a(i){function s(m){if(typeof m=="string"){if(m=i.langAlias?.[m]||m,Rl(m))return[];const f=e[m];if(!f)throw new ee(`Language \`${m}\` is not included in this bundle. You may want to load it from external source.`);return f}return m}function o(m){if(_l(m))return"none";if(typeof m=="string"){const f=t[m];if(!f)throw new ee(`Theme \`${m}\` is not included in this bundle. You may want to load it from external source.`);return f}return m}const l=(i.themes??[]).map(m=>o(m)),u=(i.langs??[]).map(m=>s(m)),d=await of({engine:i.engine??n(),...i,themes:l,langs:u});return{...d,loadLanguage(...m){return d.loadLanguage(...m.map(s))},loadTheme(...m){return d.loadTheme(...m.map(o))},getBundledLanguages(){return e},getBundledThemes(){return t}}}return a}function uf(r){let e;async function t(n={}){if(e){const a=await e;return await Promise.all([a.loadTheme(...n.themes||[]),a.loadLanguage(...n.langs||[])]),a}else{e=r({...n,themes:[],langs:[]});const a=await e;return await Promise.all([a.loadTheme(...n.themes||[]),a.loadLanguage(...n.langs||[])]),a}}return t}function cf(r,e){const t=uf(r);async function n(a,i){const s=await t({langs:[i.lang],themes:"theme"in i?[i.theme]:Object.values(i.themes)}),o=await e?.guessEmbeddedLanguages?.(a,i.lang,s);return o&&await s.loadLanguage(...o),s}return{getSingletonHighlighter(a){return t(a)},async codeToHtml(a,i){return(await n(a,i)).codeToHtml(a,i)},async codeToHast(a,i){return(await n(a,i)).codeToHast(a,i)},async codeToTokens(a,i){return(await n(a,i)).codeToTokens(a,i)},async codeToTokensBase(a,i){return(await n(a,i)).codeToTokensBase(a,i)},async codeToTokensWithThemes(a,i){return(await n(a,i)).codeToTokensWithThemes(a,i)},async getLastGrammarState(a,i){return(await t({langs:[i.lang],themes:[i.theme]})).getLastGrammarState(a,i)}}}var hf=V0({bundledLanguages:()=>Ft,bundledLanguagesAlias:()=>K0,bundledLanguagesBase:()=>X0,bundledLanguagesInfo:()=>Hn,bundledThemes:()=>Z0,bundledThemesInfo:()=>Y0,codeToHast:()=>tu,codeToHtml:()=>eu,codeToTokens:()=>ru,codeToTokensBase:()=>nu,codeToTokensWithThemes:()=>au,createHighlighter:()=>Zn,getLastGrammarState:()=>su,getSingletonHighlighter:()=>iu});const Zn=lf({langs:Ft,themes:Z0,engine:()=>(0,dl.createOnigurumaEngine)(import("./wasm-CG6Dc4jp.js"))}),{codeToHtml:eu,codeToHast:tu,codeToTokens:ru,codeToTokensBase:nu,codeToTokensWithThemes:au,getSingletonHighlighter:iu,getLastGrammarState:su}=cf(Zn,{guessEmbeddedLanguages:zp}),Ms=4294967295;var df=class{patterns;options;regexps;constructor(r,e={}){this.patterns=r,this.options=e;const{forgiving:t=!1,cache:n,regexConstructor:a}=e;if(!a)throw new Error("Option `regexConstructor` is not provided");this.regexps=r.map(i=>{if(typeof i!="string")return i;const s=n?.get(i);if(s){if(s instanceof RegExp)return s;if(t)return null;throw s}try{const o=a(i);return n?.set(i,o),o}catch(o){if(n?.set(i,o),t)return null;throw o}})}findNextMatchSync(r,e,t){const n=typeof r=="string"?r:r.content,a=[];function i(s,o,l=0){return{index:s,captureIndices:o.indices.map(u=>u==null?{start:Ms,end:Ms,length:0}:{start:u[0]+l,end:u[1]+l,length:u[1]-u[0]})}}for(let s=0;s<this.regexps.length;s++){const o=this.regexps[s];if(o)try{o.lastIndex=e;const l=o.exec(n);if(!l)continue;if(l.index===e)return i(s,l,0);a.push([s,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(a.length){const s=Math.min(...a.map(o=>o[1].index));for(const[o,l,u]of a)if(l.index===s)return i(o,l,u)}return null}};function mr(r){if([...r].length!==1)throw new Error(`Expected "${r}" to be a single code point`);return r.codePointAt(0)}function mf(r,e,t){return r.has(e)||r.set(e,t),r.get(e)}const si=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),ye=String.raw;function pr(r,e){if(r==null)throw new Error(e??"Value expected");return r}const ou=ye`\[\^?`,lu=`c.? | C(?:-.?)?|${ye`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${ye`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${ye`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${ye`o\{[^\}]*\}?`}|${ye`\d{1,3}`}`,oi=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,nn=new RegExp(ye`
339
+ \\ (?:
340
+ ${lu}
341
+ | [gk]<[^>]*>?
342
+ | [gk]'[^']*'?
343
+ | .
344
+ )
345
+ | \( (?:
346
+ \? (?:
347
+ [:=!>({]
348
+ | <[=!]
349
+ | <[^>]*>
350
+ | '[^']*'
351
+ | ~\|?
352
+ | #(?:[^)\\]|\\.?)*
353
+ | [^:)]*[:)]
354
+ )?
355
+ | \*[^\)]*\)?
356
+ )?
357
+ | (?:${oi.source})+
358
+ | ${ou}
359
+ | .
360
+ `.replace(/\s+/g,""),"gsu"),_a=new RegExp(ye`
361
+ \\ (?:
362
+ ${lu}
363
+ | .
364
+ )
365
+ | \[:(?:\^?\p{Alpha}+|\^):\]
366
+ | ${ou}
367
+ | &&
368
+ | .
369
+ `.replace(/\s+/g,""),"gsu");function pf(r,e={}){const t={flags:"",...e,rules:{captureGroup:!1,singleline:!1,...e.rules}};if(typeof r!="string")throw new Error("String expected as pattern");const n=Lf(t.flags),a=[n.extended],i={captureGroup:t.rules.captureGroup,getCurrentModX(){return a.at(-1)},numOpenGroups:0,popModX(){a.pop()},pushModX(m){a.push(m)},replaceCurrentModX(m){a[a.length-1]=m},singleline:t.rules.singleline};let s=[],o;for(nn.lastIndex=0;o=nn.exec(r);){const m=ff(i,r,o[0],nn.lastIndex);m.tokens?s.push(...m.tokens):m.token&&s.push(m.token),m.lastIndex!==void 0&&(nn.lastIndex=m.lastIndex)}const l=[];let u=0;s.filter(m=>m.type==="GroupOpen").forEach(m=>{m.kind==="capturing"?m.number=++u:m.raw==="("&&l.push(m)}),u||l.forEach((m,f)=>{m.kind="capturing",m.number=f+1});const d=u||l.length;return{tokens:s.map(m=>m.type==="EscapedNumber"?$f(m,d):m).flat(),flags:n}}function ff(r,e,t,n){const[a,i]=t;if(t==="["||t==="[^"){const s=gf(e,t,n);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(a==="\\"){if("AbBGyYzZ".includes(i))return{token:Es(t,t)};if(/^\\g[<']/.test(t)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(t))throw new Error(`Invalid group name "${t}"`);return{token:Tf(t)}}if(/^\\k[<']/.test(t)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(t))throw new Error(`Invalid group name "${t}"`);return{token:cu(t)}}if(i==="K")return{token:hu("keep",t)};if(i==="N"||i==="R")return{token:Ot("newline",t,{negate:i==="N"})};if(i==="O")return{token:Ot("any",t)};if(i==="X")return{token:Ot("text_segment",t)};const s=uu(t,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(a==="("){if(i==="*")return{token:_f(t)};if(t==="(?{")throw new Error(`Unsupported callout "${t}"`);if(t.startsWith("(?#")){if(e[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(t))return{token:Rf(t,r)};if(r.pushModX(r.getCurrentModX()),r.numOpenGroups++,t==="("&&!r.captureGroup||t==="(?:")return{token:rr("group",t)};if(t==="(?>")return{token:rr("atomic",t)};if(t==="(?="||t==="(?!"||t==="(?<="||t==="(?<!")return{token:rr(t[2]==="<"?"lookbehind":"lookahead",t,{negate:t.endsWith("!")})};if(t==="("&&r.captureGroup||t.startsWith("(?<")&&t.endsWith(">")||t.startsWith("(?'")&&t.endsWith("'"))return{token:rr("capturing",t,{...t!=="("&&{name:t.slice(3,-1)}})};if(t.startsWith("(?~")){if(t==="(?~|")throw new Error(`Unsupported absence function kind "${t}"`);return{token:rr("absence_repeater",t)}}throw t==="(?("?new Error(`Unsupported conditional "${t}"`):new Error(`Invalid or unsupported group option "${t}"`)}if(t===")"){if(r.popModX(),r.numOpenGroups--,r.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:Sf(t)}}if(r.getCurrentModX()){if(t==="#"){const s=e.indexOf(`
370
+ `,n);return{lastIndex:s===-1?e.length:s}}if(/^\s$/.test(t)){const s=/\s+/y;return s.lastIndex=n,{lastIndex:s.exec(e)?s.lastIndex:n}}}if(t===".")return{token:Ot("dot",t)};if(t==="^"||t==="$"){const s=r.singleline?{"^":ye`\A`,$:ye`\Z`}[t]:t;return{token:Es(s,t)}}return t==="|"?{token:yf(t)}:oi.test(t)?{tokens:Bf(t)}:{token:ut(mr(t),t)}}function gf(r,e,t){const n=[Rs(e[1]==="^",e)];let a=1,i;for(_a.lastIndex=t;i=_a.exec(r);){const s=i[0];if(s[0]==="["&&s[1]!==":")a++,n.push(Rs(s[1]==="^",s));else if(s==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(ut(93,s));else if(a--,n.push(bf(s)),!a)break}else{const o=vf(s);Array.isArray(o)?n.push(...o):n.push(o)}}return{tokens:n,lastIndex:_a.lastIndex||r.length}}function vf(r){if(r[0]==="\\")return uu(r,{inCharClass:!0});if(r[0]==="["){const e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(r);if(!e||!si.has(e.groups.name))throw new Error(`Invalid POSIX class "${r}"`);return Ot("posix",r,{value:e.groups.name,negate:!!e.groups.negate})}return r==="-"?wf(r):r==="&&"?xf(r):ut(mr(r),r)}function uu(r,{inCharClass:e}){const t=r[1];if(t==="c"||t==="C")return Ef(r);if("dDhHsSwW".includes(t))return Nf(r);if(r.startsWith(ye`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${r}"`);if(/^\\[pP]\{/.test(r)){if(r.length===3)throw new Error(`Incomplete or invalid Unicode property "${r}"`);return If(r)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(r))try{const n=r.split(/\\x/).slice(1).map(s=>parseInt(s,16)),a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),i=new TextEncoder;return[...a].map(s=>{const o=[...i.encode(s)].map(l=>`\\x${l.toString(16)}`).join("");return ut(mr(s),o)})}catch{throw new Error(`Multibyte code "${r}" incomplete or invalid in Oniguruma`)}if(t==="u"||t==="x")return ut(zf(r),r);if(_s.has(t))return ut(_s.get(t),r);if(/\d/.test(t))return kf(e,r);if(r==="\\")throw new Error(ye`Incomplete escape "\"`);if(t==="M")throw new Error(`Unsupported meta "${r}"`);if([...r].length===2)return ut(r.codePointAt(1),r);throw new Error(`Unexpected escape "${r}"`)}function yf(r){return{type:"Alternator",raw:r}}function Es(r,e){return{type:"Assertion",kind:r,raw:e}}function cu(r){return{type:"Backreference",raw:r}}function ut(r,e){return{type:"Character",value:r,raw:e}}function bf(r){return{type:"CharacterClassClose",raw:r}}function wf(r){return{type:"CharacterClassHyphen",raw:r}}function xf(r){return{type:"CharacterClassIntersector",raw:r}}function Rs(r,e){return{type:"CharacterClassOpen",negate:r,raw:e}}function Ot(r,e,t={}){return{type:"CharacterSet",kind:r,...t,raw:e}}function hu(r,e,t={}){return r==="keep"?{type:"Directive",kind:r,raw:e}:{type:"Directive",kind:r,flags:pr(t.flags),raw:e}}function kf(r,e){return{type:"EscapedNumber",inCharClass:r,raw:e}}function Sf(r){return{type:"GroupClose",raw:r}}function rr(r,e,t={}){return{type:"GroupOpen",kind:r,...t,raw:e}}function Cf(r,e,t,n){return{type:"NamedCallout",kind:r,tag:e,arguments:t,raw:n}}function Af(r,e,t,n){return{type:"Quantifier",kind:r,min:e,max:t,raw:n}}function Tf(r){return{type:"Subroutine",raw:r}}const Mf=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),_s=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Ef(r){const e=r[1]==="c"?r[2]:r[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${r}"`);return ut(mr(e.toUpperCase())-64,r)}function Rf(r,e){let{on:t,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(r).groups;n??="";const a=(e.getCurrentModX()||t.includes("x"))&&!n.includes("x"),i=Is(t),s=Is(n),o={};if(i&&(o.enable=i),s&&(o.disable=s),r.endsWith(")"))return e.replaceCurrentModX(a),hu("flags",r,{flags:o});if(r.endsWith(":"))return e.pushModX(a),e.numOpenGroups++,rr("group",r,{...(i||s)&&{flags:o}});throw new Error(`Unexpected flag modifier "${r}"`)}function _f(r){const e=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(r);if(!e)throw new Error(`Incomplete or invalid named callout "${r}"`);const{name:t,tag:n,args:a}=e.groups;if(!t)throw new Error(`Invalid named callout "${r}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${r}"`);const i=a?a.split(",").filter(d=>d!=="").map(d=>/^[+-]?\d+$/.test(d)?+d:d):[],[s,o,l]=i,u=Mf.has(t)?t.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(i.length>0)throw new Error(`Named callout arguments not allowed "${i}"`);break;case"error":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(typeof s=="string")throw new Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!i.length||i.length>2)throw new Error(`Named callout must have one or two arguments "${i}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(i.length===2&&(typeof o=="number"||!/^[<>X]$/.test(o)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${o}"`);break;case"count":case"total_count":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(i.length===1&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(i.length!==3)throw new Error(`Named callout must have three arguments "${i}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof o=="number"||!/^(?:[<>!=]=|[<>])$/.test(o))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${o}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${t}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return Cf(u,n??null,a?.split(",")??null,r)}function Ns(r){let e=null,t,n;if(r[0]==="{"){const{minStr:a,maxStr:i}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(r).groups,s=1e5;if(+a>s||i&&+i>s)throw new Error("Quantifier value unsupported in Oniguruma");if(t=+a,n=i===void 0?+a:i===""?1/0:+i,t>n&&(e="possessive",[t,n]=[n,t]),r.endsWith("?")){if(e==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');e="lazy"}else e||(e="greedy")}else t=r[0]==="+"?1:0,n=r[0]==="?"?1:1/0,e=r[1]==="+"?"possessive":r[1]==="?"?"lazy":"greedy";return Af(e,t,n,r)}function Nf(r){const e=r[1].toLowerCase();return Ot({d:"digit",h:"hex",s:"space",w:"word"}[e],r,{negate:r[1]!==e})}function If(r){const{p:e,neg:t,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(r).groups;return Ot("property",r,{value:n,negate:e==="P"&&!t||e==="p"&&!!t})}function Is(r){const e={};return r.includes("i")&&(e.ignoreCase=!0),r.includes("m")&&(e.dotAll=!0),r.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function Lf(r){const e={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let t=0;t<r.length;t++){const n=r[t];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(r.slice(t)))throw new Error('Invalid or unspecified flag "y" mode');e.textSegmentMode=r[t+2]==="g"?"grapheme":"word",t+=3;continue}e[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return e}function zf(r){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(r))throw new Error(`Incomplete or invalid escape "${r}"`);const e=r[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(r).groups.hex:r.slice(2);return parseInt(e,16)}function $f(r,e){const{raw:t,inCharClass:n}=r,a=t.slice(1);if(!n&&(a!=="0"&&a.length===1||a[0]!=="0"&&+a<=e))return[cu(t)];const i=[],s=a.match(/^[0-7]+|\d/g);for(let o=0;o<s.length;o++){const l=s[o];let u;if(o===0&&l!=="8"&&l!=="9"){if(u=parseInt(l,8),u>127)throw new Error(ye`Octal encoded byte above 177 unsupported "${t}"`)}else u=mr(l);i.push(ut(u,(o===0?"\\":"")+l))}return i}function Bf(r){const e=[],t=new RegExp(oi,"gy");let n;for(;n=t.exec(r);){const a=n[0];if(a[0]==="{"){const i=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);if(i){const{min:s,max:o}=i.groups;if(+s>+o&&a.endsWith("?")){t.lastIndex--,e.push(Ns(a.slice(0,-1)));continue}}}e.push(Ns(a))}return e}function du(r,e){if(!Array.isArray(r.body))throw new Error("Expected node with body array");if(r.body.length!==1)return!1;const t=r.body[0];return!e||Object.keys(e).every(n=>e[n]===t[n])}function Pf(r){return Df.has(r.type)}const Df=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function mu(r,e={}){const t={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e,rules:{captureGroup:!1,singleline:!1,...e.rules}},n=pf(r,{flags:t.flags,rules:{captureGroup:t.rules.captureGroup,singleline:t.rules.singleline}}),a=(f,v)=>{const y=n.tokens[i.nextIndex];switch(i.parent=f,i.nextIndex++,y.type){case"Alternator":return qt();case"Assertion":return Of(y);case"Backreference":return Gf(y,i);case"Character":return Qn(y.value,{useLastValid:!!v.isCheckingRangeEnd});case"CharacterClassHyphen":return Ff(y,i,v);case"CharacterClassOpen":return qf(y,i,v);case"CharacterSet":return Hf(y,i);case"Directive":return Kf(y.kind,{flags:y.flags});case"GroupOpen":return Uf(y,i,v);case"NamedCallout":return Zf(y.kind,y.tag,y.arguments);case"Quantifier":return jf(y,i);case"Subroutine":return Wf(y,i);default:throw new Error(`Unexpected token type "${y.type}"`)}},i={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:t.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:t.skipBackrefValidation,skipLookbehindValidation:t.skipLookbehindValidation,skipPropertyNameValidation:t.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:t.unicodePropertyMap,walk:a},s=Jf(Yf(n.flags));let o=s.body[0];for(;i.nextIndex<n.tokens.length;){const f=a(o,{});f.type==="Alternative"?(s.body.push(f),o=f):o.body.push(f)}const{capturingGroups:l,hasNumberedRef:u,namedGroupsByName:d,subroutines:m}=i;if(u&&d.size&&!t.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:f}of m)if(typeof f=="number"){if(f>l.length)throw new Error("Subroutine uses a group number that's not defined");f&&(l[f-1].isSubroutined=!0)}else if(d.has(f)){if(d.get(f).length>1)throw new Error(ye`Subroutine uses a duplicate group name "\g<${f}>"`);d.get(f)[0].isSubroutined=!0}else throw new Error(ye`Subroutine uses a group name that's not defined "\g<${f}>"`);return s}function Of({kind:r}){return h0(pr({"^":"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"}[r],`Unexpected assertion kind "${r}"`),{negate:r===ye`\B`||r===ye`\Y`})}function Gf({raw:r},e){const t=/^\\k[<']/.test(r),n=t?r.slice(3,-1):r.slice(1),a=(i,s=!1)=>{const o=e.capturingGroups.length;let l=!1;if(i>o)if(e.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${r}"`);return e.hasNumberedRef=!0,d0(s?o+1-i:i,{orphan:l})};if(t){const i=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(i)return a(+i.groups.num,!!i.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${r}"`);if(!e.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${r}"`);return d0(n)}return a(+n)}function Ff(r,e,t){const{tokens:n,walk:a}=e,i=e.parent,s=i.body.at(-1),o=n[e.nextIndex];if(!t.isCheckingRangeEnd&&s&&s.type!=="CharacterClass"&&s.type!=="CharacterClassRange"&&o&&o.type!=="CharacterClassOpen"&&o.type!=="CharacterClassClose"&&o.type!=="CharacterClassIntersector"){const l=a(i,{...t,isCheckingRangeEnd:!0});if(s.type==="Character"&&l.type==="Character")return i.body.pop(),Xf(s,l);throw new Error("Invalid character class range")}return Qn(mr("-"))}function qf({negate:r},e,t){const{tokens:n,walk:a}=e,i=[dn()],s=n[e.nextIndex];let o=$s(s);for(;o.type!=="CharacterClassClose";){if(o.type==="CharacterClassIntersector")i.push(dn()),e.nextIndex++;else{const u=i.at(-1);u.body.push(a(u,t))}o=$s(n[e.nextIndex],s)}const l=dn({negate:r});return i.length===1?l.body=i[0].body:(l.kind="intersection",l.body=i.map(u=>u.body.length===1?u.body[0]:u)),e.nextIndex++,l}function Hf({kind:r,negate:e,value:t},n){const{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:i,unicodePropertyMap:s}=n;if(r==="property"){const o=Jn(t);if(si.has(o)&&!s?.has(o))r="posix",t=o;else return nr(t,{negate:e,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:i,unicodePropertyMap:s})}return r==="posix"?Qf(t,{negate:e}):m0(r,{negate:e})}function Uf(r,e,t){const{tokens:n,capturingGroups:a,namedGroupsByName:i,skipLookbehindValidation:s,walk:o}=e,l=e4(r),u=l.type==="AbsenceFunction",d=zs(l),m=d&&l.negate;if(l.type==="CapturingGroup"&&(a.push(l),l.name&&mf(i,l.name,[]).push(l)),u&&t.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let f=Bs(n[e.nextIndex]);for(;f.type!=="GroupClose";){if(f.type==="Alternator")l.body.push(qt()),e.nextIndex++;else{const v=l.body.at(-1),y=o(v,{...t,isInAbsenceFunction:t.isInAbsenceFunction||u,isInLookbehind:t.isInLookbehind||d,isInNegLookbehind:t.isInNegLookbehind||m});if(v.body.push(y),(d||t.isInLookbehind)&&!s){const k="Lookbehind includes a pattern not allowed by Oniguruma";if(m||t.isInNegLookbehind){if(Ls(y)||y.type==="CapturingGroup")throw new Error(k)}else if(Ls(y)||zs(y)&&y.negate)throw new Error(k)}}f=Bs(n[e.nextIndex])}return e.nextIndex++,l}function jf({kind:r,min:e,max:t},n){const a=n.parent,i=a.body.at(-1);if(!i||!Pf(i))throw new Error("Quantifier requires a repeatable token");const s=fu(r,e,t,i);return a.body.pop(),s}function Wf({raw:r},e){const{capturingGroups:t,subroutines:n}=e;let a=r.slice(3,-1);const i=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(i){const o=+i.groups.num,l=t.length;if(e.hasNumberedRef=!0,a={"":o,"+":l+o,"-":l+1-o}[i.groups.sign],a<1)throw new Error("Invalid subroutine number")}else a==="0"&&(a=0);const s=gu(a);return n.push(s),s}function Vf(r,e){return{type:"AbsenceFunction",kind:r,body:Dr(e?.body)}}function qt(r){return{type:"Alternative",body:vu(r?.body)}}function h0(r,e){const t={type:"Assertion",kind:r};return(r==="word_boundary"||r==="text_segment_boundary")&&(t.negate=!!e?.negate),t}function d0(r,e){const t=!!e?.orphan;return{type:"Backreference",ref:r,...t&&{orphan:t}}}function pu(r,e){const t={name:void 0,isSubroutined:!1,...e};if(t.name!==void 0&&!t4(t.name))throw new Error(`Group name "${t.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:r,...t.name&&{name:t.name},...t.isSubroutined&&{isSubroutined:t.isSubroutined},body:Dr(e?.body)}}function Qn(r,e){const t={useLastValid:!1,...e};if(r>1114111){const n=r.toString(16);if(t.useLastValid)r=1114111;else throw r>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:r}}function dn(r){const e={kind:"union",negate:!1,...r};return{type:"CharacterClass",kind:e.kind,negate:e.negate,body:vu(r?.body)}}function Xf(r,e){if(e.value<r.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:r,max:e}}function m0(r,e){const t=!!e?.negate,n={type:"CharacterSet",kind:r};return(r==="digit"||r==="hex"||r==="newline"||r==="space"||r==="word")&&(n.negate=t),(r==="text_segment"||r==="newline"&&!t)&&(n.variableLength=!0),n}function Kf(r,e={}){if(r==="keep")return{type:"Directive",kind:r};if(r==="flags")return{type:"Directive",kind:r,flags:pr(e.flags)};throw new Error(`Unexpected directive kind "${r}"`)}function Yf(r){return{type:"Flags",...r}}function Ve(r){const e=r?.atomic,t=r?.flags;if(e&&t)throw new Error("Atomic group cannot have flags");return{type:"Group",...e&&{atomic:e},...t&&{flags:t},body:Dr(r?.body)}}function Pt(r){const e={behind:!1,negate:!1,...r};return{type:"LookaroundAssertion",kind:e.behind?"lookbehind":"lookahead",negate:e.negate,body:Dr(r?.body)}}function Zf(r,e,t){return{type:"NamedCallout",kind:r,tag:e,arguments:t}}function Qf(r,e){const t=!!e?.negate;if(!si.has(r))throw new Error(`Invalid POSIX class "${r}"`);return{type:"CharacterSet",kind:"posix",value:r,negate:t}}function fu(r,e,t,n){if(e>t)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:r,min:e,max:t,body:n}}function Jf(r,e){return{type:"Regex",body:Dr(e?.body),flags:r}}function gu(r){return{type:"Subroutine",ref:r}}function nr(r,e){const t={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e};let n=t.unicodePropertyMap?.get(Jn(r));if(!n){if(t.normalizeUnknownPropertyNames)n=r4(r);else if(t.unicodePropertyMap&&!t.skipPropertyNameValidation)throw new Error(ye`Invalid Unicode property "\p{${r}}"`)}return{type:"CharacterSet",kind:"property",value:n??r,negate:t.negate}}function e4({flags:r,kind:e,name:t,negate:n,number:a}){switch(e){case"absence_repeater":return Vf("repeater");case"atomic":return Ve({atomic:!0});case"capturing":return pu(a,{name:t});case"group":return Ve({flags:r});case"lookahead":case"lookbehind":return Pt({behind:e==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${e}"`)}}function Dr(r){if(r===void 0)r=[qt()];else if(!Array.isArray(r)||!r.length||!r.every(e=>e.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return r}function vu(r){if(r===void 0)r=[];else if(!Array.isArray(r)||!r.every(e=>!!e.type))throw new Error("Invalid body; expected array of nodes");return r}function Ls(r){return r.type==="LookaroundAssertion"&&r.kind==="lookahead"}function zs(r){return r.type==="LookaroundAssertion"&&r.kind==="lookbehind"}function t4(r){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(r)}function r4(r){return r.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function Jn(r){return r.replace(/[- _]+/g,"").toLowerCase()}function $s(r,e){const t=e;return pr(r,`Unclosed character class${t?.type==="Character"&&t.value===93&&t.raw==="]"?' (started with "]")':""}`)}function Bs(r){return pr(r,"Unclosed group")}function Sr(r,e,t=null){function n(i,s){for(let o=0;o<i.length;o++){const l=a(i[o],s,o,i);o=Math.max(-1,o+l)}}function a(i,s=null,o=null,l=null){let u=0,d=!1;const m={node:i,parent:s,key:o,container:l,root:r,remove(){an(l).splice(Math.max(0,er(o)+u),1),u--,d=!0},removeAllNextSiblings(){return an(l).splice(er(o)+1)},removeAllPrevSiblings(){const S=er(o)+u;return u-=S,an(l).splice(0,Math.max(0,S))},replaceWith(S,T={}){const M=!!T.traverse;l?l[Math.max(0,er(o)+u)]=S:pr(s,"Can't replace root node")[o]=S,M&&a(S,s,o,l),d=!0},replaceWithMultiple(S,T={}){const M=!!T.traverse;if(an(l).splice(Math.max(0,er(o)+u),1,...S),u+=S.length-1,M){let $=0;for(let L=0;L<S.length;L++)$+=a(S[L],s,er(o)+L+$,l)}d=!0},skip(){d=!0}},{type:f}=i,v=e["*"],y=e[f],k=typeof v=="function"?v:v?.enter,C=typeof y=="function"?y:y?.enter;if(k?.(m,t),C?.(m,t),!d)switch(f){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":n(i.body,i);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(i.min,i,"min"),a(i.max,i,"max");break;case"Quantifier":a(i.body,i,"body");break;case"Regex":n(i.body,i),a(i.flags,i,"flags");break;default:throw new Error(`Unexpected node type "${f}"`)}return y?.exit?.(m,t),v?.exit?.(m,t),u}return a(r),r}function an(r){if(!Array.isArray(r))throw new Error("Container expected");return r}function er(r){if(typeof r!="number")throw new Error("Numeric key expected");return r}const n4=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function a4(r,e){for(let t=0;t<r.length;t++)r[t]>=e&&r[t]++}function i4(r,e,t,n){return r.slice(0,e)+n+r.slice(e+t.length)}const Fe=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function li(r,e,t,n){const a=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),i=[!1];let s=0,o="";for(const l of r.matchAll(a)){const{0:u,groups:{$skip:d}}=l;if(!d&&(!n||n===Fe.DEFAULT==!s)){t instanceof Function?o+=t(l,{context:s?Fe.CHAR_CLASS:Fe.DEFAULT,negated:i[i.length-1]}):o+=t;continue}u[0]==="["?(s++,i.push(u[1]==="^")):u==="]"&&s&&(s--,i.pop()),o+=u}return o}function yu(r,e,t,n){li(r,e,t,n)}function s4(r,e,t=0,n){if(!new RegExp(e,"su").test(r))return null;const a=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=t;let i=0,s;for(;s=a.exec(r);){const{0:o,groups:{$skip:l}}=s;if(!l&&(!n||n===Fe.DEFAULT==!i))return s;o==="["?i++:o==="]"&&i&&i--,a.lastIndex==s.index&&a.lastIndex++}return null}function sn(r,e,t){return!!s4(r,e,0,t)}function o4(r,e){const t=/\\?./gsu;t.lastIndex=e;let n=r.length,a=0,i=1,s;for(;s=t.exec(r);){const[o]=s;if(o==="[")a++;else if(a)o==="]"&&a--;else if(o==="(")i++;else if(o===")"&&(i--,!i)){n=s.index;break}}return r.slice(e,n)}const Ps=new RegExp(String.raw`(?<noncapturingStart>${n4})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function l4(r,e){const t=e?.hiddenCaptures??[];let n=e?.captureTransfers??new Map;if(!/\(\?>/.test(r))return{pattern:r,captureTransfers:n,hiddenCaptures:t};const a="(?>",i="(?:(?=(",s=[0],o=[];let l=0,u=0,d=NaN,m;do{m=!1;let f=0,v=0,y=!1,k;for(Ps.lastIndex=Number.isNaN(d)?0:d+i.length;k=Ps.exec(r);){const{0:C,index:S,groups:{capturingStart:T,noncapturingStart:M}}=k;if(C==="[")f++;else if(f)C==="]"&&f--;else if(C===a&&!y)d=S,y=!0;else if(y&&M)v++;else if(T)y?v++:(l++,s.push(l+u));else if(C===")"&&y){if(!v){u++;const $=l+u;if(r=`${r.slice(0,d)}${i}${r.slice(d+a.length,S)}))<$$${$}>)${r.slice(S+1)}`,m=!0,o.push($),a4(t,$),n.size){const L=new Map;n.forEach((P,D)=>{L.set(D>=$?D+1:D,P.map(W=>W>=$?W+1:W))}),n=L}break}v--}}}while(m);return t.push(...o),r=li(r,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:f,groups:{backrefNum:v,wrappedBackrefNum:y}})=>{if(v){const k=+v;if(k>s.length-1)throw new Error(`Backref "${f}" greater than number of captures`);return`\\${s[k]}`}return`\\${y}`},Fe.DEFAULT),{pattern:r,captureTransfers:n,hiddenCaptures:t}}const bu=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Na=new RegExp(String.raw`
371
+ \\(?: \d+
372
+ | c[A-Za-z]
373
+ | [gk]<[^>]+>
374
+ | [pPu]\{[^\}]+\}
375
+ | u[A-Fa-f\d]{4}
376
+ | x[A-Fa-f\d]{2}
377
+ )
378
+ | \((?: \? (?: [:=!>]
379
+ | <(?:[=!]|[^>]+>)
380
+ | [A-Za-z\-]+:
381
+ | \(DEFINE\)
382
+ ))?
383
+ | (?<qBase>${bu})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
384
+ | \\?.
385
+ `.replace(/\s+/g,""),"gsu");function u4(r){if(!new RegExp(`${bu}\\+`).test(r))return{pattern:r};const e=[];let t=null,n=null,a="",i=0,s;for(Na.lastIndex=0;s=Na.exec(r);){const{0:o,index:l,groups:{qBase:u,qMod:d,invalidQ:m}}=s;if(o==="[")i||(n=l),i++;else if(o==="]")i?i--:n=null;else if(!i)if(d==="+"&&a&&!a.startsWith("(")){if(m)throw new Error(`Invalid quantifier "${o}"`);let f=-1;if(/^\{\d+\}$/.test(u))r=i4(r,l+u.length,d,"");else{if(a===")"||a==="]"){const v=a===")"?t:n;if(v===null)throw new Error(`Invalid unmatched "${a}"`);r=`${r.slice(0,v)}(?>${r.slice(v,l)}${u})${r.slice(l+o.length)}`}else r=`${r.slice(0,l-a.length)}(?>${a}${u})${r.slice(l+o.length)}`;f+=4}Na.lastIndex+=f}else o[0]==="("?e.push(l):o===")"&&(t=e.length?e.pop():null);a=o}return{pattern:r}}const Oe=String.raw,c4=Oe`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,p0=Oe`\(\?R=(?<rDepth>[^\)]+)\)|${c4}`,ea=Oe`\(\?<(?![=!])(?<captureName>[^>]+)>`,wu=Oe`${ea}|(?<unnamed>\()(?!\?)`,zt=new RegExp(Oe`${ea}|${p0}|\(\?|\\?.`,"gsu"),Ia="Cannot use multiple overlapping recursions";function h4(r,e){const{hiddenCaptures:t,mode:n}={hiddenCaptures:[],mode:"plugin",...e};let a=e?.captureTransfers??new Map;if(!new RegExp(p0,"su").test(r))return{pattern:r,captureTransfers:a,hiddenCaptures:t};if(n==="plugin"&&sn(r,Oe`\(\?\(DEFINE\)`,Fe.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const i=[],s=sn(r,Oe`\\[1-9]`,Fe.DEFAULT),o=new Map,l=[];let u=!1,d=0,m=0,f;for(zt.lastIndex=0;f=zt.exec(r);){const{0:v,groups:{captureName:y,rDepth:k,gRNameOrNum:C,gRDepth:S}}=f;if(v==="[")d++;else if(d)v==="]"&&d--;else if(k){if(Ds(k),u)throw new Error(Ia);if(s)throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const T=r.slice(0,f.index),M=r.slice(zt.lastIndex);if(sn(M,p0,Fe.DEFAULT))throw new Error(Ia);const $=+k-1;r=Os(T,M,$,!1,t,i,m),a=Fs(a,T,$,i.length,0,m);break}else if(C){Ds(S);let T=!1;for(const Z of l)if(Z.name===C||Z.num===+C){if(T=!0,Z.hasRecursedWithin)throw new Error(Ia);break}if(!T)throw new Error(Oe`Recursive \g cannot be used outside the referenced group "${n==="external"?C:Oe`\g<${C}&R=${S}>`}"`);const M=o.get(C),$=o4(r,M);if(s&&sn($,Oe`${ea}|\((?!\?)`,Fe.DEFAULT))throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const L=r.slice(M,f.index),P=$.slice(L.length+v.length),D=i.length,W=+S-1,V=Os(L,P,W,!0,t,i,m);a=Fs(a,L,W,i.length-D,D,m);const Ne=r.slice(0,M),oe=r.slice(M+$.length);r=`${Ne}${V}${oe}`,zt.lastIndex+=V.length-v.length-L.length-P.length,l.forEach(Z=>Z.hasRecursedWithin=!0),u=!0}else if(y)m++,o.set(String(m),zt.lastIndex),o.set(y,zt.lastIndex),l.push({num:m,name:y});else if(v[0]==="("){const T=v==="(";T&&(m++,o.set(String(m),zt.lastIndex)),l.push(T?{num:m}:{})}else v===")"&&l.pop()}return t.push(...i),{pattern:r,captureTransfers:a,hiddenCaptures:t}}function Ds(r){const e=`Max depth must be integer between 2 and 100; used ${r}`;if(!/^[1-9]\d*$/.test(r))throw new Error(e);if(r=+r,r<2||r>100)throw new Error(e)}function Os(r,e,t,n,a,i,s){const o=new Set;n&&yu(r+e,ea,({groups:{captureName:u}})=>{o.add(u)},Fe.DEFAULT);const l=[t,n?o:null,a,i,s];return`${r}${Gs(`(?:${r}`,"forward",...l)}(?:)${Gs(`${e})`,"backward",...l)}${e}`}function Gs(r,e,t,n,a,i,s){const l=d=>e==="forward"?d+2:t-d+2-1;let u="";for(let d=0;d<t;d++){const m=l(d);u+=li(r,Oe`${wu}|\\k<(?<backref>[^>]+)>`,({0:f,groups:{captureName:v,unnamed:y,backref:k}})=>{if(k&&n&&!n.has(k))return f;const C=`_$${m}`;if(y||v){const S=s+i.length+1;return i.push(S),d4(a,S),y?f:`(?<${v}${C}>`}return Oe`\k<${k}${C}>`},Fe.DEFAULT)}return u}function d4(r,e){for(let t=0;t<r.length;t++)r[t]>=e&&r[t]++}function Fs(r,e,t,n,a,i){if(r.size&&n){let s=0;yu(e,wu,()=>s++,Fe.DEFAULT);const o=i-s+a,l=new Map;return r.forEach((u,d)=>{const m=(n-s*t)/t,f=s*t,v=d>o+s?d+n:d,y=[];for(const k of u)if(k<=o)y.push(k);else if(k>o+s+m)y.push(k+n);else if(k<=o+s)for(let C=0;C<=t;C++)y.push(k+s*C);else for(let C=0;C<=t;C++)y.push(k+f+m*C);l.set(v,y)}),l}return r}var me=String.fromCodePoint,q=String.raw,Xe={},ta=globalThis.RegExp;Xe.flagGroups=(()=>{try{new ta("(?i:)")}catch{return!1}return!0})();Xe.unicodeSets=(()=>{try{new ta("[[]]","v")}catch{return!1}return!0})();Xe.bugFlagVLiteralHyphenIsRange=Xe.unicodeSets?(()=>{try{new ta(q`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Xe.bugNestedClassIgnoresNegation=Xe.unicodeSets&&new ta("[[^a]]","v").test("a");function In(r,{enable:e,disable:t}){return{dotAll:!t?.dotAll&&!!(e?.dotAll||r.dotAll),ignoreCase:!t?.ignoreCase&&!!(e?.ignoreCase||r.ignoreCase)}}function Nr(r,e,t){return r.has(e)||r.set(e,t),r.get(e)}function f0(r,e){return qs[r]>=qs[e]}function m4(r,e){if(r==null)throw new Error(e??"Value expected");return r}var qs={ES2025:2025,ES2024:2024,ES2018:2018},p4={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function xu(r={}){if({}.toString.call(r)!=="[object Object]")throw new Error("Unexpected options");if(r.target!==void 0&&!p4[r.target])throw new Error(`Unexpected target "${r.target}"`);const e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...r,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...r.rules}};return e.target==="auto"&&(e.target=Xe.flagGroups?"ES2025":Xe.unicodeSets?"ES2024":"ES2018"),e}var f4="[ -\r ]",g4=new Set([me(304),me(305)]),st=q`[\p{L}\p{M}\p{N}\p{Pc}]`;function ku(r){if(g4.has(r))return[r];const e=new Set,t=r.toLowerCase(),n=t.toUpperCase(),a=b4.get(t),i=v4.get(t),s=y4.get(t);return[...n].length===1&&e.add(n),s&&e.add(s),a&&e.add(a),e.add(t),i&&e.add(i),[...e]}var ui=new Map(`C Other
386
+ Cc Control cntrl
387
+ Cf Format
388
+ Cn Unassigned
389
+ Co Private_Use
390
+ Cs Surrogate
391
+ L Letter
392
+ LC Cased_Letter
393
+ Ll Lowercase_Letter
394
+ Lm Modifier_Letter
395
+ Lo Other_Letter
396
+ Lt Titlecase_Letter
397
+ Lu Uppercase_Letter
398
+ M Mark Combining_Mark
399
+ Mc Spacing_Mark
400
+ Me Enclosing_Mark
401
+ Mn Nonspacing_Mark
402
+ N Number
403
+ Nd Decimal_Number digit
404
+ Nl Letter_Number
405
+ No Other_Number
406
+ P Punctuation punct
407
+ Pc Connector_Punctuation
408
+ Pd Dash_Punctuation
409
+ Pe Close_Punctuation
410
+ Pf Final_Punctuation
411
+ Pi Initial_Punctuation
412
+ Po Other_Punctuation
413
+ Ps Open_Punctuation
414
+ S Symbol
415
+ Sc Currency_Symbol
416
+ Sk Modifier_Symbol
417
+ Sm Math_Symbol
418
+ So Other_Symbol
419
+ Z Separator
420
+ Zl Line_Separator
421
+ Zp Paragraph_Separator
422
+ Zs Space_Separator
423
+ ASCII
424
+ ASCII_Hex_Digit AHex
425
+ Alphabetic Alpha
426
+ Any
427
+ Assigned
428
+ Bidi_Control Bidi_C
429
+ Bidi_Mirrored Bidi_M
430
+ Case_Ignorable CI
431
+ Cased
432
+ Changes_When_Casefolded CWCF
433
+ Changes_When_Casemapped CWCM
434
+ Changes_When_Lowercased CWL
435
+ Changes_When_NFKC_Casefolded CWKCF
436
+ Changes_When_Titlecased CWT
437
+ Changes_When_Uppercased CWU
438
+ Dash
439
+ Default_Ignorable_Code_Point DI
440
+ Deprecated Dep
441
+ Diacritic Dia
442
+ Emoji
443
+ Emoji_Component EComp
444
+ Emoji_Modifier EMod
445
+ Emoji_Modifier_Base EBase
446
+ Emoji_Presentation EPres
447
+ Extended_Pictographic ExtPict
448
+ Extender Ext
449
+ Grapheme_Base Gr_Base
450
+ Grapheme_Extend Gr_Ext
451
+ Hex_Digit Hex
452
+ IDS_Binary_Operator IDSB
453
+ IDS_Trinary_Operator IDST
454
+ ID_Continue IDC
455
+ ID_Start IDS
456
+ Ideographic Ideo
457
+ Join_Control Join_C
458
+ Logical_Order_Exception LOE
459
+ Lowercase Lower
460
+ Math
461
+ Noncharacter_Code_Point NChar
462
+ Pattern_Syntax Pat_Syn
463
+ Pattern_White_Space Pat_WS
464
+ Quotation_Mark QMark
465
+ Radical
466
+ Regional_Indicator RI
467
+ Sentence_Terminal STerm
468
+ Soft_Dotted SD
469
+ Terminal_Punctuation Term
470
+ Unified_Ideograph UIdeo
471
+ Uppercase Upper
472
+ Variation_Selector VS
473
+ White_Space space
474
+ XID_Continue XIDC
475
+ XID_Start XIDS`.split(/\s/).map(r=>[Jn(r),r])),v4=new Map([["s",me(383)],[me(383),"s"]]),y4=new Map([[me(223),me(7838)],[me(107),me(8490)],[me(229),me(8491)],[me(969),me(8486)]]),b4=new Map([kt(453),kt(456),kt(459),kt(498),...La(8072,8079),...La(8088,8095),...La(8104,8111),kt(8124),kt(8140),kt(8188)]),w4=new Map([["alnum",q`[\p{Alpha}\p{Nd}]`],["alpha",q`\p{Alpha}`],["ascii",q`\p{ASCII}`],["blank",q`[\p{Zs}\t]`],["cntrl",q`\p{Cc}`],["digit",q`\p{Nd}`],["graph",q`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",q`\p{Lower}`],["print",q`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",q`[\p{P}\p{S}]`],["space",q`\p{space}`],["upper",q`\p{Upper}`],["word",q`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",q`\p{AHex}`]]);function x4(r,e){const t=[];for(let n=r;n<=e;n++)t.push(n);return t}function kt(r){const e=me(r);return[e.toLowerCase(),e]}function La(r,e){return x4(r,e).map(t=>kt(t))}var Su=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function k4(r,e){const t={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e};Cu(r);const n={accuracy:t.accuracy,asciiWordBoundaries:t.asciiWordBoundaries,avoidSubclass:t.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:f0(t.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:r.flags.digitIsAscii,spaceIsAscii:r.flags.spaceIsAscii,wordIsAscii:r.flags.wordIsAscii};Sr(r,S4,n);const a={dotAll:r.flags.dotAll,ignoreCase:r.flags.ignoreCase},i={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};Sr(r,C4,i);const s={groupsByName:i.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:i.reffedNodesByReferencer};return Sr(r,A4,s),r._originMap=i.groupOriginByCopy,r._strategy=n.strategy,r}var S4={AbsenceFunction({node:r,parent:e,replaceWith:t}){const{body:n,kind:a}=r;if(a==="repeater"){const i=Ve();i.body[0].body.push(Pt({negate:!0,body:n}),nr("Any"));const s=Ve();s.body[0].body.push(fu("greedy",0,1/0,i)),t(le(s,e),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:r,parent:e,key:t},{flagDirectivesByAlt:n}){const a=r.body.filter(i=>i.kind==="flags");for(let i=t+1;i<e.body.length;i++){const s=e.body[i];Nr(n,s,[]).push(...a)}},exit({node:r},{flagDirectivesByAlt:e}){if(e.get(r)?.length){const t=Tu(e.get(r));if(t){const n=Ve({flags:t});n.body[0].body=r.body,r.body=[le(n,r)]}}}},Assertion({node:r,parent:e,key:t,container:n,root:a,remove:i,replaceWith:s},o){const{kind:l,negate:u}=r,{asciiWordBoundaries:d,avoidSubclass:m,supportedGNodes:f,wordIsAscii:v}=o;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(l==="line_end")s(le(Pt({body:[qt({body:[h0("string_end")]}),qt({body:[Qn(10)]})]}),e));else if(l==="line_start")s(le(ot(q`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),e));else if(l==="search_start")if(f.has(r))a.flags.sticky=!0,i();else{const y=n[t-1];if(y&&N4(y))s(le(Pt({negate:!0}),e));else{if(m)throw new Error(q`Uses "\G" in a way that requires a subclass`);s(St(h0("string_start"),e)),o.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")s(le(ot(q`(?=\n?\z)`),e));else if(l==="word_boundary"){if(!v&&!d){const y=`(?:(?<=${st})(?!${st})|(?<!${st})(?=${st}))`,k=`(?:(?<=${st})(?=${st})|(?<!${st})(?!${st}))`;s(le(ot(u?k:y),e))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:r},{jsGroupNameMap:e}){let{ref:t}=r;typeof t=="string"&&!$a(t)&&(t=za(t,e),r.ref=t)},CapturingGroup({node:r},{jsGroupNameMap:e,subroutineRefMap:t}){let{name:n}=r;n&&!$a(n)&&(n=za(n,e),r.name=n),t.set(r.number,r),n&&t.set(n,r)},CharacterClassRange({node:r,parent:e,replaceWith:t}){if(e.kind==="intersection"){const n=dn({body:[r]});t(le(n,e),{traverse:!0})}},CharacterSet({node:r,parent:e,replaceWith:t},{accuracy:n,minTargetEs2024:a,digitIsAscii:i,spaceIsAscii:s,wordIsAscii:o}){const{kind:l,negate:u,value:d}=r;if(i&&(l==="digit"||d==="digit")){t(St(m0("digit",{negate:u}),e));return}if(s&&(l==="space"||d==="space")){t(le(Ba(ot(f4),u),e));return}if(o&&(l==="word"||d==="word")){t(St(m0("word",{negate:u}),e));return}if(l==="any")t(St(nr("Any"),e));else if(l==="digit")t(St(nr("Nd",{negate:u}),e));else if(l!=="dot")if(l==="text_segment"){if(n==="strict")throw new Error(q`Use of "\X" requires non-strict accuracy`);const m="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",f=q`\p{RI}{2}|${m}(?:\u200D${m})*`;t(le(ot(q`(?>\r\n|${a?q`\p{RGI_Emoji}`:f}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),e))}else if(l==="hex")t(St(nr("AHex",{negate:u}),e));else if(l==="newline")t(le(ot(u?`[^
476
+ ]`:`(?>\r
477
+ ?|[
478
+ \v\f…\u2028\u2029])`),e));else if(l==="posix")if(!a&&(d==="graph"||d==="print")){if(n==="strict")throw new Error(`POSIX class "${d}" requires min target ES2024 or non-strict accuracy`);let m={graph:"!-~",print:" -~"}[d];u&&(m=`\0-${me(m.codePointAt(0)-1)}${me(m.codePointAt(2)+1)}-􏿿`),t(le(ot(`[${m}]`),e))}else t(le(Ba(ot(w4.get(d)),u),e));else if(l==="property")ui.has(Jn(d))||(r.key="sc");else if(l==="space")t(St(nr("space",{negate:u}),e));else if(l==="word")t(le(Ba(ot(st),u),e));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:r,parent:e,root:t,remove:n,replaceWith:a,removeAllPrevSiblings:i,removeAllNextSiblings:s}){const{kind:o,flags:l}=r;if(o==="flags")if(!l.enable&&!l.disable)n();else{const u=Ve({flags:l});u.body[0].body=s(),a(le(u,e),{traverse:!0})}else if(o==="keep"){const u=t.body[0],m=t.body.length===1&&du(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:t;if(e.parent!==m||m.body.length>1)throw new Error(q`Uses "\K" in a way that's unsupported`);const f=Pt({behind:!0});f.body[0].body=i(),a(le(f,e))}else throw new Error(`Unexpected directive kind "${o}"`)},Flags({node:r,parent:e}){if(r.posixIsAscii)throw new Error('Unsupported flag "P"');if(r.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete r[t]),Object.assign(r,{global:!1,hasIndices:!1,multiline:!1,sticky:r.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:r}){if(!r.flags)return;const{enable:e,disable:t}=r.flags;e?.extended&&delete e.extended,t?.extended&&delete t.extended,e?.dotAll&&t?.dotAll&&delete e.dotAll,e?.ignoreCase&&t?.ignoreCase&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete r.flags.enable,t&&!Object.keys(t).length&&delete r.flags.disable,!r.flags.enable&&!r.flags.disable&&delete r.flags},LookaroundAssertion({node:r},e){const{kind:t}=r;t==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:r,parent:e,replaceWith:t}){const{kind:n}=r;if(n==="fail")t(le(Pt({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:r}){if(r.body.type==="Quantifier"){const e=Ve();e.body[0].body.push(r.body),r.body=le(e,r)}},Regex:{enter({node:r},{supportedGNodes:e}){const t=[];let n=!1,a=!1;for(const i of r.body)if(i.body.length===1&&i.body[0].kind==="search_start")i.body.pop();else{const s=Eu(i.body);s?(n=!0,Array.isArray(s)?t.push(...s):t.push(s)):a=!0}n&&!a&&t.forEach(i=>e.add(i))},exit(r,{accuracy:e,passedLookbehind:t,strategy:n}){if(e==="strict"&&t&&n)throw new Error(q`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:r},{jsGroupNameMap:e}){let{ref:t}=r;typeof t=="string"&&!$a(t)&&(t=za(t,e),r.ref=t)}},C4={Backreference({node:r},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:t}){const{orphan:n,ref:a}=r;n||t.set(r,[...e.get(a).map(({node:i})=>i)])},CapturingGroup:{enter({node:r,parent:e,replaceWith:t,skip:n},{groupOriginByCopy:a,groupsByName:i,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:l}){const u=a.get(r);if(u&&o.has(r.number)){const m=St(Hs(r.number),e);l.set(m,o.get(r.number)),t(m);return}o.set(r.number,r),s.set(r.number,[]),r.name&&Nr(s,r.name,[]);const d=s.get(r.name??r.number);for(let m=0;m<d.length;m++){const f=d[m];if(u===f.node||u&&u===f.origin||r===f.origin){d.splice(m,1);break}}if(s.get(r.number).push({node:r,origin:u}),r.name&&s.get(r.name).push({node:r,origin:u}),r.name){const m=Nr(i,r.name,new Map);let f=!1;if(u)f=!0;else for(const v of m.values())if(!v.hasDuplicateNameToRemove){f=!0;break}i.get(r.name).set(r,{node:r,hasDuplicateNameToRemove:f})}},exit({node:r},{openRefs:e}){e.get(r.number)===r&&e.delete(r.number)}},Group:{enter({node:r},e){e.prevFlags=e.currentFlags,r.flags&&(e.currentFlags=In(e.currentFlags,r.flags))},exit(r,e){e.currentFlags=e.prevFlags}},Subroutine({node:r,parent:e,replaceWith:t},n){const{isRecursive:a,ref:i}=r;if(a){let d=e;for(;(d=d.parent)&&!(d.type==="CapturingGroup"&&(d.name===i||d.number===i)););n.reffedNodesByReferencer.set(r,d);return}const s=n.subroutineRefMap.get(i),o=i===0,l=o?Hs(0):Au(s,n.groupOriginByCopy,null);let u=l;if(!o){const d=Tu(E4(s,f=>f.type==="Group"&&!!f.flags)),m=d?In(n.globalFlags,d):n.globalFlags;T4(m,n.currentFlags)||(u=Ve({flags:R4(m)}),u.body[0].body.push(l))}t(le(u,e),{traverse:!o})}},A4={Backreference({node:r,parent:e,replaceWith:t},n){if(r.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,r.ref);return}const i=n.reffedNodesByReferencer.get(r).filter(s=>M4(s,r));if(!i.length)t(le(Pt({negate:!0}),e));else if(i.length>1){const s=Ve({atomic:!0,body:i.reverse().map(o=>qt({body:[d0(o.number)]}))});t(le(s,e))}else r.ref=i[0].number},CapturingGroup({node:r},e){r.number=++e.numCapturesToLeft,r.name&&e.groupsByName.get(r.name).get(r).hasDuplicateNameToRemove&&delete r.name},Regex:{exit({node:r},e){const t=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let n=0;n<t;n++){const a=pu();r.body.at(-1).body.push(a)}}},Subroutine({node:r},e){!r.isRecursive||r.ref===0||(r.ref=e.reffedNodesByReferencer.get(r).number)}};function Cu(r){Sr(r,{"*"({node:e,parent:t}){e.parent=t}})}function T4(r,e){return r.dotAll===e.dotAll&&r.ignoreCase===e.ignoreCase}function M4(r,e){let t=e;do{if(t.type==="Regex")return!1;if(t.type==="Alternative")continue;if(t===r)return!1;const n=Mu(t.parent);for(const a of n){if(a===t)break;if(a===r||Ru(a,r))return!0}}while(t=t.parent);throw new Error("Unexpected path")}function Au(r,e,t,n){const a=Array.isArray(r)?[]:{};for(const[i,s]of Object.entries(r))i==="parent"?a.parent=Array.isArray(t)?n:t:s&&typeof s=="object"?a[i]=Au(s,e,a,t):(i==="type"&&s==="CapturingGroup"&&e.set(a,e.get(r)??r),a[i]=s);return a}function Hs(r){const e=gu(r);return e.isRecursive=!0,e}function E4(r,e){const t=[];for(;r=r.parent;)(!e||e(r))&&t.push(r);return t}function za(r,e){if(e.has(r))return e.get(r);const t=`$${e.size}_${r.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(r,t),t}function Tu(r){const e=["dotAll","ignoreCase"],t={enable:{},disable:{}};return r.forEach(({flags:n})=>{e.forEach(a=>{n.enable?.[a]&&(delete t.disable[a],t.enable[a]=!0),n.disable?.[a]&&(t.disable[a]=!0)})}),Object.keys(t.enable).length||delete t.enable,Object.keys(t.disable).length||delete t.disable,t.enable||t.disable?t:null}function R4({dotAll:r,ignoreCase:e}){const t={};return(r||e)&&(t.enable={},r&&(t.enable.dotAll=!0),e&&(t.enable.ignoreCase=!0)),(!r||!e)&&(t.disable={},!r&&(t.disable.dotAll=!0),!e&&(t.disable.ignoreCase=!0)),t}function Mu(r){if(!r)throw new Error("Node expected");const{body:e}=r;return Array.isArray(e)?e:e?[e]:null}function Eu(r){const e=r.find(t=>t.kind==="search_start"||I4(t,{negate:!1})||!_4(t));if(!e)return null;if(e.kind==="search_start")return e;if(e.type==="LookaroundAssertion")return e.body[0].body[0];if(e.type==="CapturingGroup"||e.type==="Group"){const t=[];for(const n of e.body){const a=Eu(n.body);if(!a)return null;Array.isArray(a)?t.push(...a):t.push(a)}return t}return null}function Ru(r,e){const t=Mu(r)??[];for(const n of t)if(n===e||Ru(n,e))return!0;return!1}function _4({type:r}){return r==="Assertion"||r==="Directive"||r==="LookaroundAssertion"}function N4(r){const e=["Character","CharacterClass","CharacterSet"];return e.includes(r.type)||r.type==="Quantifier"&&r.min&&e.includes(r.body.type)}function I4(r,e){const t={negate:null,...e};return r.type==="LookaroundAssertion"&&(t.negate===null||r.negate===t.negate)&&r.body.length===1&&du(r.body[0],{type:"Assertion",kind:"search_start"})}function $a(r){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(r)}function ot(r,e){const n=mu(r,{...e,unicodePropertyMap:ui}).body;return n.length>1||n[0].body.length>1?Ve({body:n}):n[0].body[0]}function Ba(r,e){return r.negate=e,r}function St(r,e){return r.parent=e,r}function le(r,e){return Cu(r),r.parent=e,r}function L4(r,e){const t=xu(e),n=f0(t.target,"ES2024"),a=f0(t.target,"ES2025"),i=t.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw new Error("Invalid recursionLimit; use 2-20");let s=null,o=null;if(!a){const v=[r.flags.ignoreCase];Sr(r,z4,{getCurrentModI:()=>v.at(-1),popModI(){v.pop()},pushModI(y){v.push(y)},setHasCasedChar(){v.at(-1)?s=!0:o=!0}})}const l={dotAll:r.flags.dotAll,ignoreCase:!!((r.flags.ignoreCase||s)&&!o)};let u=r;const d={accuracy:t.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:r.flags.dotAll,ignoreCase:r.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:r._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!a&&s&&o),useFlagMods:a,useFlagV:n,verbose:t.verbose};function m(v){return d.lastNode=u,u=v,m4($4[v.type],`Unexpected node type "${v.type}"`)(v,d,m)}const f={pattern:r.body.map(m).join("|"),flags:m(r.flags),options:{...r.options}};return n||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],d.captureMap.forEach((v,y)=>{v.hidden&&f._hiddenCaptures.push(y),v.transferTo&&Nr(f._captureTransfers,v.transferTo,[]).push(y)}),f}var z4={"*":{enter({node:r},e){if(js(r)){const t=e.getCurrentModI();e.pushModI(r.flags?In({ignoreCase:t},r.flags).ignoreCase:t)}},exit({node:r},e){js(r)&&e.popModI()}},Backreference(r,e){e.setHasCasedChar()},Character({node:r},e){ci(me(r.value))&&e.setHasCasedChar()},CharacterClassRange({node:r,skip:e},t){e(),_u(r,{firstOnly:!0}).length&&t.setHasCasedChar()},CharacterSet({node:r},e){r.kind==="property"&&Su.has(r.value)&&e.setHasCasedChar()}},$4={Alternative({body:r},e,t){return r.map(t).join("")},Assertion({kind:r,negate:e}){if(r==="string_end")return"$";if(r==="string_start")return"^";if(r==="word_boundary")return e?q`\B`:q`\b`;throw new Error(`Unexpected assertion kind "${r}"`)},Backreference({ref:r},e){if(typeof r!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(r).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+r},CapturingGroup(r,e,t){const{body:n,name:a,number:i}=r,s={ignoreCase:e.currentFlags.ignoreCase},o=e.originMap.get(r);return o&&(s.hidden=!0,i>o.number&&(s.transferTo=o.number)),e.captureMap.set(i,s),`(${a?`?<${a}>`:""}${n.map(t).join("|")})`},Character({value:r},e){const t=me(r),n=tr(r,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(n!==t)return n;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&ci(t)){const a=ku(t);return e.inCharClass?a.join(""):a.length>1?`[${a.join("")}]`:a[0]}return t},CharacterClass(r,e,t){const{kind:n,negate:a,parent:i}=r;let{body:s}=r;if(n==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Xe.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&s.some(Ws)&&(s=[Qn(45),...s.filter(u=>!Ws(u))]);const o=()=>`[${a?"^":""}${s.map(t).join(n==="intersection"?"&&":"")}]`;if(!e.inCharClass){if((!e.useFlagV||Xe.bugNestedClassIgnoresNegation)&&!a){const d=s.filter(m=>m.type==="CharacterClass"&&m.kind==="union"&&m.negate);if(d.length){const m=Ve(),f=m.body[0];return m.parent=i,f.parent=m,s=s.filter(v=>!d.includes(v)),r.body=s,s.length?(r.parent=f,f.body.push(r)):m.body.pop(),d.forEach(v=>{const y=qt({body:[v]});v.parent=y,y.parent=m,m.body.push(y)}),t(m)}}e.inCharClass=!0;const u=o();return e.inCharClass=!1,u}const l=s[0];if(n==="union"&&!a&&l&&((!e.useFlagV||!e.verbose)&&i.kind==="union"&&!(Xe.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&i.kind==="intersection"&&s.length===1&&l.type!=="CharacterClassRange"))return s.map(t).join("");if(!e.useFlagV&&i.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return o()},CharacterClassRange(r,e){const t=r.min.value,n=r.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},i=tr(t,a),s=tr(n,a),o=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){const l=_u(r);G4(l).forEach(d=>{o.add(Array.isArray(d)?`${tr(d[0],a)}-${tr(d[1],a)}`:tr(d,a))})}return`${i}-${s}${[...o].join("")}`},CharacterSet({kind:r,negate:e,value:t,key:n},a){if(r==="dot")return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":q`[^\n]`;if(r==="digit")return e?q`\D`:q`\d`;if(r==="property"){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&Su.has(t))throw new Error(`Unicode property "${t}" can't be case-insensitive when other chars have specific case`);return`${e?q`\P`:q`\p`}{${n?`${n}=`:""}${t}}`}if(r==="word")return e?q`\W`:q`\w`;throw new Error(`Unexpected character set kind "${r}"`)},Flags(r,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(r.dotAll?"s":"")+(r.sticky?"y":"")},Group({atomic:r,body:e,flags:t,parent:n},a,i){const s=a.currentFlags;t&&(a.currentFlags=In(s,t));const o=e.map(i).join("|"),l=!a.verbose&&e.length===1&&n.type!=="Quantifier"&&!r&&(!a.useFlagMods||!t)?o:`(?${F4(r,t,a.useFlagMods)}${o})`;return a.currentFlags=s,l},LookaroundAssertion({body:r,kind:e,negate:t},n,a){return`(?${`${e==="lookahead"?"":"<"}${t?"!":"="}`}${r.map(a).join("|")})`},Quantifier(r,e,t){return t(r.body)+q4(r)},Subroutine({isRecursive:r,ref:e},t){if(!r)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=t.recursionLimit;return e===0?`(?R=${n})`:q`\g<${e}&R=${n}>`}},B4=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),P4=new Set(["-","\\","]","^","["]),D4=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Us=new Map([[9,q`\t`],[10,q`\n`],[11,q`\v`],[12,q`\f`],[13,q`\r`],[8232,q`\u2028`],[8233,q`\u2029`],[65279,q`\uFEFF`]]),O4=/^\p{Cased}$/u;function ci(r){return O4.test(r)}function _u(r,e){const t=!!e?.firstOnly,n=r.min.value,a=r.max.value,i=[];if(n<65&&(a===65535||a>=131071)||n===65536&&a>=131071)return i;for(let s=n;s<=a;s++){const o=me(s);if(!ci(o))continue;const l=ku(o).filter(u=>{const d=u.codePointAt(0);return d<n||d>a});if(l.length&&(i.push(...l),t))break}return i}function tr(r,{escDigit:e,inCharClass:t,useFlagV:n}){if(Us.has(r))return Us.get(r);if(r<32||r>126&&r<160||r>262143||e&&H4(r))return r>255?`\\u{${r.toString(16).toUpperCase()}}`:`\\x${r.toString(16).toUpperCase().padStart(2,"0")}`;const a=t?n?D4:P4:B4,i=me(r);return(a.has(i)?"\\":"")+i}function G4(r){const e=r.map(a=>a.codePointAt(0)).sort((a,i)=>a-i),t=[];let n=null;for(let a=0;a<e.length;a++)e[a+1]===e[a]+1?n??=e[a]:n===null?t.push(e[a]):(t.push([n,e[a]]),n=null);return t}function F4(r,e,t){if(r)return">";let n="";if(e&&t){const{enable:a,disable:i}=e;n=(a?.ignoreCase?"i":"")+(a?.dotAll?"s":"")+(i?"-":"")+(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")}return`${n}:`}function q4({kind:r,max:e,min:t}){let n;return!t&&e===1?n="?":!t&&e===1/0?n="*":t===1&&e===1/0?n="+":t===e?n=`{${t}}`:n=`{${t},${e===1/0?"":e}}`,n+{greedy:"",lazy:"?",possessive:"+"}[r]}function js({type:r}){return r==="CapturingGroup"||r==="Group"||r==="LookaroundAssertion"}function H4(r){return r>47&&r<58}function Ws({type:r,value:e}){return r==="Character"&&e===45}var U4=class g0 extends RegExp{#t=new Map;#e=null;#n;#r=null;#a=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(e,t,n){const a=!!n?.lazyCompile;if(e instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");const i=e;super(i,t),this.#n=i.source,i instanceof g0&&(this.#t=i.#t,this.#r=i.#r,this.#a=i.#a,this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...n};super(a?"":e,t),this.#n=e,this.#t=W4(i.hiddenCaptures,i.transfers),this.#a=i.strategy,this.rawOptions=n??{}}a||(this.#e=this)}exec(e){if(!this.#e){const{lazyCompile:a,...i}=this.rawOptions;this.#e=new g0(this.#n,this.flags,i)}const t=this.global||this.sticky,n=this.lastIndex;if(this.#a==="clip_search"&&t&&n){this.lastIndex=0;const a=this.#i(e.slice(n));return a&&(j4(a,n,e,this.hasIndices),this.lastIndex+=n),a}return this.#i(e)}#i(e){this.#e.lastIndex=this.lastIndex;const t=super.exec.call(this.#e,e);if(this.lastIndex=this.#e.lastIndex,!t||!this.#t.size)return t;const n=[...t];t.length=1;let a;this.hasIndices&&(a=[...t.indices],t.indices.length=1);const i=[0];for(let s=1;s<n.length;s++){const{hidden:o,transferTo:l}=this.#t.get(s)??{};if(o?i.push(null):(i.push(t.length),t.push(n[s]),this.hasIndices&&t.indices.push(a[s])),l&&n[s]!==void 0){const u=i[l];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(t[u]=n[s],this.hasIndices&&(t.indices[u]=a[s]),t.groups){this.#r||(this.#r=V4(this.source));const d=this.#r.get(l);d&&(t.groups[d]=n[s],this.hasIndices&&(t.indices.groups[d]=a[s]))}}}return t}};function j4(r,e,t,n){if(r.index+=e,r.input=t,n){const a=r.indices;for(let s=0;s<a.length;s++){const o=a[s];o&&(a[s]=[o[0]+e,o[1]+e])}const i=a.groups;i&&Object.keys(i).forEach(s=>{const o=i[s];o&&(i[s]=[o[0]+e,o[1]+e])})}}function W4(r,e){const t=new Map;for(const n of r)t.set(n,{hidden:!0});for(const[n,a]of e)for(const i of a)Nr(t,i,{}).transferTo=n;return t}function V4(r){const e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,t=new Map;let n=0,a=0,i;for(;i=e.exec(r);){const{0:s,groups:{capture:o,name:l}}=i;s==="["?n++:n?s==="]"&&n--:o&&(a++,l&&t.set(a,l))}return t}function X4(r,e){const t=K4(r,e);return t.options?new U4(t.pattern,t.flags,t.options):new RegExp(t.pattern,t.flags)}function K4(r,e){const t=xu(e),n=mu(r,{flags:t.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:t.rules.captureGroup,singleline:t.rules.singleline},skipBackrefValidation:t.rules.allowOrphanBackrefs,unicodePropertyMap:ui}),a=k4(n,{accuracy:t.accuracy,asciiWordBoundaries:t.rules.asciiWordBoundaries,avoidSubclass:t.avoidSubclass,bestEffortTarget:t.target}),i=L4(a,t),s=h4(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),o=u4(s.pattern),l=l4(o.pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),u={pattern:l.pattern,flags:`${t.hasIndices?"d":""}${t.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(t.avoidSubclass){if(t.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const d=l.hiddenCaptures.sort((y,k)=>y-k),m=Array.from(l.captureTransfers),f=a._strategy,v=u.pattern.length>=t.lazyCompileLength;(d.length||m.length||f||v)&&(u.options={...d.length&&{hiddenCaptures:d},...m.length&&{transfers:m},...f&&{strategy:f},...v&&{lazyCompile:v}})}return u}function Nu(r,e){return X4(r,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function Y4(r={}){const e={target:"auto",cache:new Map,...r};return e.regexConstructor||=t=>Nu(t,{target:e.target}),{createScanner(t){return new df(t,e)},createString(t){return{content:t}}}}ll(V0({bundledLanguages:()=>Ft,bundledLanguagesAlias:()=>K0,bundledLanguagesBase:()=>X0,bundledLanguagesInfo:()=>Hn,bundledThemes:()=>Z0,bundledThemesInfo:()=>Y0,codeToHast:()=>tu,codeToHtml:()=>eu,codeToTokens:()=>ru,codeToTokensBase:()=>nu,codeToTokensWithThemes:()=>au,createHighlighter:()=>Zn,createJavaScriptRegexEngine:()=>Y4,createOnigurumaEngine:()=>hl,defaultJavaScriptRegexConstructor:()=>Nu,getLastGrammarState:()=>su,getSingletonHighlighter:()=>iu,loadWasm:()=>J0}),hf);function Iu(r){const e=[],t=new Map;let n,a=0;const i=()=>{n||(n=Promise.resolve().then(async()=>{for(;a<e.length;){const s=e[a++];if(s.type==="dispose"){r.dispose(s.key);continue}t.get(s.key)===s&&t.delete(s.key);const o=s.request;s.request=void 0,o&&await r.run(o)}}).finally(()=>{e.splice(0,a),a=0,n=void 0,e.length>0&&i()}))};return{highlight(s){const o=t.get(s.key);if(o){o.request&&r.supersede(o.request),o.request=s;return}const l={type:"highlight",key:s.key,request:s};t.set(s.key,l),e.push(l),i()},dispose(s){const o=t.get(s);o?.request&&r.supersede(o.request),o&&(o.request=void 0,t.delete(s)),e.push({type:"dispose",key:s}),i()},pending:()=>t.size,async idle(){for(;n;)await n}}}var Z4=Object.defineProperty,Q4=Object.defineProperties,J4=Object.getOwnPropertyDescriptors,Vs=Object.getOwnPropertySymbols,eg=Object.prototype.hasOwnProperty,tg=Object.prototype.propertyIsEnumerable,Xs=(r,e,t)=>e in r?Z4(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Lu=(r,e)=>{for(var t in e||(e={}))eg.call(e,t)&&Xs(r,t,e[t]);if(Vs)for(var t of Vs(e))tg.call(e,t)&&Xs(r,t,e[t]);return r},zu=(r,e)=>Q4(r,J4(e)),Ae=(r,e)=>{let t=!1,n=!1;for(let a=0;a<e;a+=1){if(r[a]==="\\"&&a+1<r.length&&r[a+1]==="`"){a+=1;continue}if(r.substring(a,a+3)==="```"){n=!n,a+=2;continue}!n&&r[a]==="`"&&(t=!t)}return t||n},rg=(r,e)=>{let t=r.substring(e,e+3)==="```",n=e>0&&r.substring(e-1,e+2)==="```",a=e>1&&r.substring(e-2,e+1)==="```";return t||n||a},ng=r=>{let e=0;for(let t=0;t<r.length;t+=1){if(r[t]==="\\"&&t+1<r.length&&r[t+1]==="`"){t+=1;continue}r[t]==="`"&&!rg(r,t)&&(e+=1)}return e},Rt=(r,e)=>{let t=!1,n=!1,a=-1;for(let i=0;i<r.length;i+=1){if(r[i]==="\\"&&i+1<r.length&&r[i+1]==="`"){i+=1;continue}if(r.substring(i,i+3)==="```"){n=!n,i+=2;continue}if(!n&&r[i]==="`")if(t){if(a<e&&e<i)return!0;t=!1,a=-1}else t=!0,a=i}return!1},ag=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,ig=r=>!r||typeof r!="string"||!r.includes(">")?r:r.replace(ag,(e,t,n,a)=>Ae(r,a)?e:`${t}\\>${n}`),sg=/(\*\*)([^*]*\*?)$/,og=/(__)([^_]*?)$/,lg=/(\*\*\*)([^*]*?)$/,ug=/(\*)([^*]*?)$/,cg=/(_)([^_]*?)$/,hg=/(`)([^`]*?)$/,dg=/(~~)([^~]*?)$/,Wt=/^[\s_~*`]*$/,$u=/^[\s]*[-*+][\s]+$/,mg=/[\p{L}\p{N}_]/u,pg=/^```[^`\n]*```?$/,fg=/^\*{4,}$/,gg=/(__)([^_]+)_$/,vg=/(~~)([^~]+)~$/,Ks=/~~/g,_t=r=>{if(!r)return!1;let e=r.charCodeAt(0);return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e===95?!0:mg.test(r)},yg=(r,e)=>{let t=1;for(let n=e-1;n>=0;n-=1)if(r[n]==="]")t+=1;else if(r[n]==="["&&(t-=1,t===0))return n;return-1},Bu=(r,e)=>{let t=1;for(let n=e+1;n<r.length;n+=1)if(r[n]==="[")t+=1;else if(r[n]==="]"&&(t-=1,t===0))return n;return-1},ra=(r,e)=>{let t=!1,n=!1;for(let a=0;a<r.length&&a<e;a+=1){if(r[a]==="\\"&&r[a+1]==="$"){a+=1;continue}r[a]==="$"&&(r[a+1]==="$"?(n=!n,a+=1,t=!1):n||(t=!t))}return t||n},bg=(r,e)=>{for(let t=e;t<r.length;t+=1){if(r[t]===")")return!0;if(r[t]===`
479
+ `)return!1}return!1},Pu=(r,e)=>{for(let t=e-1;t>=0;t-=1){if(r[t]===")")return!1;if(r[t]==="(")return t>0&&r[t-1]==="]"?bg(r,e):!1;if(r[t]===`
480
+ `)return!1}return!1},wg=(r,e)=>{for(let t=e-1;t>=0;t-=1){if(r[t]===">")return!1;if(r[t]==="<"){let n=t+1<r.length?r[t+1]:"";return n>="a"&&n<="z"||n>="A"&&n<="Z"||n==="/"}if(r[t]===`
481
+ `)return!1}return!1},hi=(r,e,t)=>{let n=0;for(let l=e-1;l>=0;l-=1)if(r[l]===`
482
+ `){n=l+1;break}let a=r.length;for(let l=e;l<r.length;l+=1)if(r[l]===`
483
+ `){a=l;break}let i=r.substring(n,a),s=0,o=!1;for(let l of i)if(l===t)s+=1;else if(l!==" "&&l!==" "){o=!0;break}return s>=3&&!o},xg=(r,e,t,n)=>t==="\\"||r.includes("$")&&ra(r,e)?!0:t!=="*"&&n==="*"?(e<r.length-2?r[e+2]:"")!=="*":!!(t==="*"||t&&n&&_t(t)&&_t(n)||(!t||t===" "||t===" "||t===`
484
+ `)&&(!n||n===" "||n===" "||n===`
485
+ `)),Du=r=>{let e=0,t=!1,n=r.length;for(let a=0;a<n;a+=1){if(r[a]==="`"&&a+2<n&&r[a+1]==="`"&&r[a+2]==="`"){t=!t,a+=2;continue}if(t||r[a]!=="*")continue;let i=a>0?r[a-1]:"",s=a<n-1?r[a+1]:"";xg(r,a,i,s)||(e+=1)}return e},kg=(r,e,t,n)=>!!(t==="\\"||r.includes("$")&&ra(r,e)||Pu(r,e)||wg(r,e)||t==="_"||n==="_"||t&&n&&_t(t)&&_t(n)),Sg=r=>{let e=0,t=!1,n=r.length;for(let a=0;a<n;a+=1){if(r[a]==="`"&&a+2<n&&r[a+1]==="`"&&r[a+2]==="`"){t=!t,a+=2;continue}if(t||r[a]!=="_")continue;let i=a>0?r[a-1]:"",s=a<n-1?r[a+1]:"";kg(r,a,i,s)||(e+=1)}return e},Cg=r=>{let e=0,t=0,n=!1;for(let a=0;a<r.length;a+=1){if(r[a]==="`"&&a+2<r.length&&r[a+1]==="`"&&r[a+2]==="`"){t>=3&&(e+=Math.floor(t/3)),t=0,n=!n,a+=2;continue}n||(r[a]==="*"?t+=1:(t>=3&&(e+=Math.floor(t/3)),t=0))}return t>=3&&(e+=Math.floor(t/3)),e},di=r=>{let e=0,t=!1;for(let n=0;n<r.length;n+=1){if(r[n]==="`"&&n+2<r.length&&r[n+1]==="`"&&r[n+2]==="`"){t=!t,n+=2;continue}t||r[n]==="*"&&n+1<r.length&&r[n+1]==="*"&&(e+=1,n+=1)}return e},Ys=r=>{let e=0,t=!1;for(let n=0;n<r.length;n+=1){if(r[n]==="`"&&n+2<r.length&&r[n+1]==="`"&&r[n+2]==="`"){t=!t,n+=2;continue}t||r[n]==="_"&&n+1<r.length&&r[n+1]==="_"&&(e+=1,n+=1)}return e},Ag=(r,e,t)=>{if(!e||Wt.test(e))return!0;let n=r.substring(0,t).lastIndexOf(`
486
+ `),a=n===-1?0:n+1,i=r.substring(a,t);return $u.test(i)&&e.includes(`
487
+ `)?!0:hi(r,t,"*")},Tg=r=>{let e=r.match(sg);if(!e)return r;let t=e[2],n=r.lastIndexOf(e[1]);return Ae(r,n)||Rt(r,n)||Ag(r,t,n)?r:di(r)%2===1?t.endsWith("*")?`${r}*`:`${r}**`:r},Mg=(r,e,t)=>{if(!e||Wt.test(e))return!0;let n=r.substring(0,t).lastIndexOf(`
488
+ `),a=n===-1?0:n+1,i=r.substring(a,t);return $u.test(i)&&e.includes(`
489
+ `)?!0:hi(r,t,"_")},Eg=r=>{let e=r.match(og);if(!e){let a=r.match(gg);if(a){let i=r.lastIndexOf(a[1]);if(!(Ae(r,i)||Rt(r,i))&&Ys(r)%2===1)return`${r}_`}return r}let t=e[2],n=r.lastIndexOf(e[1]);return Ae(r,n)||Rt(r,n)||Mg(r,t,n)?r:Ys(r)%2===1?`${r}__`:r},Rg=r=>{let e=!1;for(let t=0;t<r.length;t+=1){if(r[t]==="`"&&t+2<r.length&&r[t+1]==="`"&&r[t+2]==="`"){e=!e,t+=2;continue}if(!e&&r[t]==="*"&&r[t-1]!=="*"&&r[t+1]!=="*"&&r[t-1]!=="\\"&&!ra(r,t)){let n=t>0?r[t-1]:"",a=t<r.length-1?r[t+1]:"";if((!n||n===" "||n===" "||n===`
490
+ `)&&(!a||a===" "||a===" "||a===`
491
+ `)||n&&a&&_t(n)&&_t(a))continue;return t}}return-1},_g=r=>{if(!r.match(ug))return r;let e=Rg(r);if(e===-1||Ae(r,e)||Rt(r,e))return r;let t=r.substring(e+1);return!t||Wt.test(t)?r:Du(r)%2===1?`${r}*`:r},Ou=r=>{let e=!1;for(let t=0;t<r.length;t+=1){if(r[t]==="`"&&t+2<r.length&&r[t+1]==="`"&&r[t+2]==="`"){e=!e,t+=2;continue}if(!e&&r[t]==="_"&&r[t-1]!=="_"&&r[t+1]!=="_"&&r[t-1]!=="\\"&&!ra(r,t)&&!Pu(r,t)){let n=t>0?r[t-1]:"",a=t<r.length-1?r[t+1]:"";if(n&&a&&_t(n)&&_t(a))continue;return t}}return-1},Ng=r=>{let e=r.length;for(;e>0&&r[e-1]===`
492
+ `;)e-=1;if(e<r.length){let t=r.slice(0,e),n=r.slice(e);return`${t}_${n}`}return`${r}_`},Ig=r=>{if(!r.endsWith("**"))return null;let e=r.slice(0,-2);if(di(e)%2!==1)return null;let t=e.indexOf("**"),n=Ou(e);return t!==-1&&n!==-1&&t<n?`${e}_**`:null},Lg=r=>{if(!r.match(cg))return r;let e=Ou(r);if(e===-1)return r;let t=r.substring(e+1);if(!t||Wt.test(t)||Ae(r,e)||Rt(r,e))return r;if(Sg(r)%2===1){let n=Ig(r);return n!==null?n:Ng(r)}return r},zg=r=>{let e=di(r),t=Du(r);return e%2===0&&t%2===0},$g=(r,e,t)=>!e||Wt.test(e)||Ae(r,t)||Rt(r,t)?!0:hi(r,t,"*"),Bg=r=>{if(fg.test(r))return r;let e=r.match(lg);if(!e)return r;let t=e[2],n=r.lastIndexOf(e[1]);return $g(r,t,n)?r:Cg(r)%2===1?zg(r)?r:`${r}***`:r},Pg=/<[a-zA-Z/][^>]*$/,Dg=r=>{let e=r.match(Pg);return!e||e.index===void 0||Ae(r,e.index)?r:r.substring(0,e.index).trimEnd()},Og=r=>!r.match(pg)||r.includes(`
493
+ `)?null:r.endsWith("``")&&!r.endsWith("```")?`${r}\``:r,Gg=r=>(r.match(/```/g)||[]).length%2===1,Fg=r=>{let e=Og(r);if(e!==null)return e;let t=r.match(hg);if(t&&!Gg(r)){let n=t[2];if(!n||Wt.test(n))return r;if(ng(r)%2===1)return`${r}\``}return r},Gu=(r,e)=>e>=2&&r.substring(e-2,e+1)==="```"||e>=1&&r.substring(e-1,e+2)==="```"||e<=r.length-3&&r.substring(e,e+3)==="```",qg=r=>{let e=0,t=!1;for(let n=0;n<r.length-1;n+=1)r[n]==="`"&&!Gu(r,n)&&(t=!t),!t&&r[n]==="$"&&r[n+1]==="$"&&(e+=1,n+=1);return e},Hg=r=>{let e=0,t=!1;for(let n=0;n<r.length;n+=1){if(r[n]==="\\"){n+=1;continue}if(r[n]==="`"&&!Gu(r,n)){t=!t;continue}!t&&r[n]==="$"&&(n+1<r.length&&r[n+1]==="$"?n+=1:e+=1)}return e},Ug=r=>{if(r.endsWith("$")&&!r.endsWith("$$"))return`${r}$`;let e=r.indexOf("$$");return e!==-1&&r.indexOf(`
494
+ `,e)!==-1&&!r.endsWith(`
495
+ `)?`${r}
496
+ $$`:`${r}$$`},jg=r=>qg(r)%2===0?r:Ug(r),Wg=r=>Hg(r)%2===1?`${r}$`:r,Vg=(r,e,t)=>{if(r.substring(e+2).includes(")"))return null;let n=yg(r,e);if(n===-1||Ae(r,n))return null;let a=n>0&&r[n-1]==="!",i=a?n-1:n,s=r.substring(0,i);if(a)return s;let o=r.substring(n+1,e);return t==="text-only"?`${s}${o}`:`${s}[${o}](streamdown:incomplete-link)`},Zs=(r,e)=>{for(let t=0;t<e;t++)if(r[t]==="["&&!Ae(r,t)){if(t>0&&r[t-1]==="!")continue;let n=Bu(r,t);if(n===-1)return t;if(n+1<r.length&&r[n+1]==="("){let a=r.indexOf(")",n+2);a!==-1&&(t=a)}}return e},Xg=(r,e,t)=>{let n=e>0&&r[e-1]==="!",a=n?e-1:e;if(!r.substring(e+1).includes("]")){let i=r.substring(0,a);if(n)return i;if(t==="text-only"){let s=Zs(r,e);return r.substring(0,s)+r.substring(s+1)}return`${r}](streamdown:incomplete-link)`}if(Bu(r,e)===-1){let i=r.substring(0,a);if(n)return i;if(t==="text-only"){let s=Zs(r,e);return r.substring(0,s)+r.substring(s+1)}return`${r}](streamdown:incomplete-link)`}return null},Fu=(r,e="protocol")=>{let t=r.lastIndexOf("](");if(t!==-1&&!Ae(r,t)){let n=Vg(r,t,e);if(n!==null)return n}for(let n=r.length-1;n>=0;n-=1)if(r[n]==="["&&!Ae(r,n)){let a=Xg(r,n,e);if(a!==null)return a}return r},Kg=/^-{1,2}$/,Yg=/^[\s]*-{1,2}[\s]+$/,Zg=/^={1,2}$/,Qg=/^[\s]*={1,2}[\s]+$/,Jg=r=>{if(!r||typeof r!="string")return r;let e=r.lastIndexOf(`
497
+ `);if(e===-1)return r;let t=r.substring(e+1),n=r.substring(0,e),a=t.trim();if(Kg.test(a)&&!t.match(Yg)){let i=n.split(`
498
+ `).at(-1);if(i&&i.trim().length>0)return`${r}​`}if(Zg.test(a)&&!t.match(Qg)){let i=n.split(`
499
+ `).at(-1);if(i&&i.trim().length>0)return`${r}​`}return r},e2=new RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),t2=r=>!r||typeof r!="string"||!r.includes("~")?r:r.replace(e2,(e,t)=>Ae(r,t)?e:"\\~"),r2=r=>{var e,t;let n=r.match(dg);if(n){let a=n[2];if(!a||Wt.test(a))return r;let i=r.lastIndexOf(n[1]);if(Ae(r,i)||Rt(r,i))return r;if(((e=r.match(Ks))==null?void 0:e.length)%2===1)return`${r}~~`}else{let a=r.match(vg);if(a){let i=r.lastIndexOf(a[0].slice(0,2));if(Ae(r,i)||Rt(r,i))return r;if(((t=r.match(Ks))==null?void 0:t.length)%2===1)return`${r}~`}}return r},Pa=r=>r!==!1,n2=r=>r===!0,Se={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},a2=[{handler:{name:"singleTilde",handle:t2,priority:Se.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:ig,priority:Se.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:Dg,priority:Se.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:Jg,priority:Se.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:Fu,priority:Se.LINKS},optionKey:"links",earlyReturn:r=>r.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:Bg,priority:Se.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:Tg,priority:Se.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:Eg,priority:Se.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:_g,priority:Se.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:Lg,priority:Se.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:Fg,priority:Se.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:r2,priority:Se.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:jg,priority:Se.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:Wg,priority:Se.INLINE_KATEX},optionKey:"inlineKatex"}],i2=r=>{var e;let t=(e=r?.linkMode)!=null?e:"protocol";return a2.filter(({handler:n,optionKey:a})=>n.name==="links"?Pa(r?.links)||Pa(r?.images):n.name==="inlineKatex"?n2(r?.inlineKatex):Pa(r?.[a])).map(({handler:n,earlyReturn:a})=>n.name==="links"?{handler:zu(Lu({},n),{handle:i=>Fu(i,t)}),earlyReturn:t==="protocol"?a:void 0}:{handler:n,earlyReturn:a})},s2=(r,e)=>{var t;if(!r||typeof r!="string")return r;let n=r.endsWith(" ")&&!r.endsWith(" ")?r.slice(0,-1):r,a=i2(e),i=((t=e?.handlers)!=null?t:[]).map(o=>{var l;return{handler:zu(Lu({},o),{priority:(l=o.priority)!=null?l:Se.DEFAULT}),earlyReturn:void 0}}),s=[...a,...i].sort((o,l)=>{var u,d;return((u=o.handler.priority)!=null?u:0)-((d=l.handler.priority)!=null?d:0)});for(let{handler:o,earlyReturn:l}of s)if(n=o.handle(n),l!=null&&l(n))return n;return n},o2=s2;function qu(r){return{text:r,blocks:[{raw:r,src:r,mode:"full"}]}}function l2(r){return r.includes("]:")?/^[ \t]{0,3}\[[^\]]+\]:[ \t]*(?:\S+|\r?\n[ \t]+\S+)/m.test(r):!1}function Da(r){return r?.trim().split(/\s+/,1)[0]||void 0}function u2(r){const e=r.indexOf(`
500
+ `);return e<0?"":r.slice(e+1)}function c2(r){const e=r.match(/^[ \t]{0,3}(`{3,}|~{3,})/);if(!e)return!1;const t=e[1];if(!t)return!1;const n=t[0],a=t.length,i=r.trimEnd().split(`
501
+ `).at(-1)?.trim()??"";return!new RegExp(`^[\\t ]{0,3}${n}{${a},}[\\t ]*$`).test(i)}function h2(r,e){const t=r.match(/^[ \t]{0,3}(`{3,}|~{3,})/)?.[1];return t?`${r.slice(-(t.length-1))}${e}`.includes(t):e.includes("```")||e.includes("~~~")}function on(r){return o2(r,{linkMode:"text-only"})}function Qs(r,e){if(!e)return qu(r).blocks;if(l2(r))return[{raw:r,src:on(r),mode:"live"}];const t=Y.lexer(r),n=t.findLastIndex(l=>l.type!=="space");if(n<0)return[{raw:r,src:on(r),mode:"live"}];const a=t[n];if(!a)return[{raw:r,src:on(r),mode:"live"}];const i=[];for(let l=0;l<n;l++){const u=t[l];if(!u||u.type==="space")continue;let d=u.raw;for(;t[l+1]?.type==="space"&&l+1<n;)d+=t[++l].raw;if(u.type==="code"){const m=u;i.push({raw:d,src:m.text,mode:"code",language:Da(m.lang),complete:!0});continue}i.push({raw:d,src:d,mode:"full"})}const s=t.slice(n).map(l=>l.raw).join("");if(a.type!=="code")return[...i,{raw:s,src:on(s),mode:"live"}];const o=a;return c2(o.raw)?[...i,{raw:s,src:u2(o.raw),mode:"code",language:Da(o.lang)}]:[...i,{raw:s,src:o.text,mode:"code",language:Da(o.lang),complete:!0}]}function Hu(r,e,t){if(!t){const i=r?.text===e?r:r&&e.startsWith(r.text)?Hu(r,e,!0):void 0;return i?{text:e,blocks:i.blocks.map(s=>s.mode==="live"?{raw:s.raw,src:s.raw,mode:"full"}:s.mode==="code"&&!s.complete?{...s,complete:!0}:s)}:qu(e)}if(!r||!e.startsWith(r.text))return{text:e,blocks:Qs(e,t)};const n=r.blocks.at(-1),a=e.slice(r.text.length);return!a||n?.mode!=="code"||n.complete||h2(n.raw,a)?{text:e,blocks:Qs(e,t)}:{text:e,blocks:[...r.blocks.slice(0,-1),{...n,raw:n.raw+a,src:n.src+a}]}}const mn=new Map,v0=new Map;let d2;const Js=Iu({run:g2,supersede:r=>dt({type:"superseded",id:r.id,key:r.key}),dispose:r=>void mn.delete(r)}),eo=Iu({run:f2,supersede:r=>dt({type:"superseded",id:r.id,key:r.key}),dispose:r=>void v0.delete(r)}),m2=P1(async(r,e)=>{const t=await Uu(),n=e in Ft?e:"text";return t.getLoadedLanguages().includes(n)||await t.loadLanguage(Ft[n]),t.codeToHtml(r,{lang:n,theme:"OpenCode",tabindex:!1})});self.onmessage=r=>{if(r.data.type==="dispose"){Js.dispose(r.data.key),eo.dispose(r.data.key);return}if(r.data.type==="parse"){p2(r.data);return}if(r.data.type==="project"){eo.highlight(r.data);return}Js.highlight(r.data)};async function p2(r){try{dt({type:"parse",id:r.id,html:await m2.parse(r.text)})}catch(e){dt({type:"error",id:r.id,message:e instanceof Error?e.message:String(e)})}}async function f2(r){try{const e=Hu(v0.get(r.key),r.text,r.live);v0.set(r.key,e),dt({type:"project",id:r.id,key:r.key,projection:e})}catch(e){dt({type:"error",id:r.id,key:r.key,message:e instanceof Error?e.message:String(e)})}}async function g2(r){try{const e=await Uu(),t=r.language in Ft?r.language:"text";if(e.getLoadedLanguages().includes(t)||await e.loadLanguage(Ft[t]),r.complete){const o=e.codeToTokens(r.text,{lang:t,theme:"OpenCode"});mn.delete(r.key),dt({type:"highlight",id:r.id,key:r.key,language:t,reset:!0,stable:o.tokens.flatMap((l,u)=>u===o.tokens.length-1?l:[...l,{content:`
502
+ `,offset:0}]).map(Oa),unstable:[]});return}const n=mn.get(r.key),a=!n||n.language!==t||!r.text.startsWith(n.source),i=a?{language:t,source:"",tokenizer:new Ln({highlighter:e,lang:t,theme:"OpenCode"})}:n,s=await i.tokenizer.enqueue(r.text.slice(i.source.length));i.source=r.text,mn.set(r.key,i),dt({type:"highlight",id:r.id,key:r.key,language:t,reset:a,stable:s.stable.filter(o=>o.content.length>0).map(Oa),unstable:s.unstable.filter(o=>o.content.length>0).map(Oa)})}catch(e){dt({type:"error",id:r.id,key:r.key,message:e instanceof Error?e.message:String(e)})}}function Uu(){return d2??=Zn({themes:[F1],langs:[]})}function dt(r){self.postMessage(r)}function Oa(r){return[r.content,En(r.htmlStyle??_r(r))]}
503
+ //# sourceMappingURL=markdown.worker-Bu_Dc9RP.js.map