@okhay-p/mivra 0.1.3 → 0.1.5

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 (39) hide show
  1. package/README.md +1 -0
  2. package/dist/{chunk-3RMHLZ2Z.js → chunk-KUKQU7EQ.js} +24 -5
  3. package/dist/{chunk-3RMHLZ2Z.js.map → chunk-KUKQU7EQ.js.map} +2 -2
  4. package/dist/{chunk-EICBRY5M.js → chunk-ODFBAPPH.js} +113 -5
  5. package/dist/chunk-ODFBAPPH.js.map +7 -0
  6. package/dist/{chunk-FBDML53R.js → chunk-YACRW47X.js} +447 -177
  7. package/dist/chunk-YACRW47X.js.map +7 -0
  8. package/dist/cli.js +109 -23
  9. package/dist/cli.js.map +4 -4
  10. package/dist/{client-VU3KWV3U.js → client-5YDLS4KV.js} +2 -2
  11. package/dist/extract-child.js +1 -1
  12. package/dist/{start-3J3JSJEX.js → start-2RXX57ZZ.js} +3535 -518
  13. package/dist/start-2RXX57ZZ.js.map +7 -0
  14. package/drizzle/0013_next_dormammu.sql +1 -0
  15. package/drizzle/0014_furry_inertia.sql +1 -0
  16. package/drizzle/0015_spotty_warstar.sql +1 -0
  17. package/drizzle/0016_fresh_wiccan.sql +1 -0
  18. package/drizzle/0017_amusing_james_howlett.sql +28 -0
  19. package/drizzle/0018_happy_hairball.sql +43 -0
  20. package/drizzle/meta/0013_snapshot.json +1749 -0
  21. package/drizzle/meta/0014_snapshot.json +1756 -0
  22. package/drizzle/meta/0015_snapshot.json +1763 -0
  23. package/drizzle/meta/0016_snapshot.json +1770 -0
  24. package/drizzle/meta/0017_snapshot.json +1956 -0
  25. package/drizzle/meta/0018_snapshot.json +2280 -0
  26. package/drizzle/meta/_journal.json +42 -0
  27. package/package.json +2 -1
  28. package/web/assets/index-DJ2D5ZXo.css +1 -0
  29. package/web/assets/index-DcYzUL1W.js +413 -0
  30. package/web/assets/notes-graph.worker-DaVQvftJ.js +1 -0
  31. package/web/assets/render.worker-BAfybD27.js +416 -0
  32. package/web/index.html +8 -3
  33. package/dist/chunk-EICBRY5M.js.map +0 -7
  34. package/dist/chunk-FBDML53R.js.map +0 -7
  35. package/dist/start-3J3JSJEX.js.map +0 -7
  36. package/web/assets/index-BUYWW1Mc.js +0 -406
  37. package/web/assets/index-Cmq-m9fI.css +0 -1
  38. package/web/assets/render.worker-BEpv9w1x.js +0 -413
  39. /package/dist/{client-VU3KWV3U.js.map → client-5YDLS4KV.js.map} +0 -0
@@ -0,0 +1,416 @@
1
+ (function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));let u={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]};var d=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},f=/([A-Z])/g,p=e=>e.replace(f,`-$1`).toLowerCase(),m={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},h=/[&><"']/g,g=e=>String(e).replace(h,e=>m[e]),_=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?_(e.body[0]):e:e.type===`font`?_(e.body):e,v=/* @__PURE__ */ new Set([`mathord`,`textord`,`atom`]),y=e=>v.has(_(e).type),b=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`},x={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function ee(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function S(e){return e.default===void 0?ee(Array.isArray(e.type)?e.type[0]:e.type):e.default}function te(e,t,n,r){var i=n[t];e[t]=i===void 0?S(r):r.processor?r.processor(i):i}var ne=class{constructor(e){e===void 0&&(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||={};for(var t of Object.keys(x)){var n=x[t];n&&te(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),r&&r!==`ignore`){if(r===!0||r===`error`)throw new d(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`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 '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`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 '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=b(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},C=class{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 de[fe[this.id]]}sub(){return de[pe[this.id]]}fracNum(){return de[me[this.id]]}fracDen(){return de[he[this.id]]}cramp(){return de[ge[this.id]]}text(){return de[_e[this.id]]}isTight(){return this.size>=2}},re=0,ie=1,ae=2,oe=3,se=4,ce=5,le=6,ue=7,de=[new C(re,0,!1),new C(ie,0,!0),new C(ae,1,!1),new C(oe,1,!0),new C(se,2,!1),new C(ce,2,!0),new C(le,3,!1),new C(ue,3,!0)],fe=[se,ce,se,ce,le,ue,le,ue],pe=[ce,ce,ce,ce,ue,ue,ue,ue],me=[ae,oe,se,ce,le,ue,le,ue],he=[oe,oe,ce,ce,ue,ue,ue,ue],ge=[ie,ie,oe,oe,ce,ce,ue,ue],_e=[re,ie,ae,oe,ae,oe,ae,oe],w={DISPLAY:de[re],TEXT:de[ae],SCRIPT:de[se],SCRIPTSCRIPT:de[le]},ve=[{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 ye(e){for(var t=0;t<ve.length;t++)for(var n=ve[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var be=[];ve.forEach(e=>e.blocks.forEach(e=>be.push(...e)));function xe(e){for(var t=0;t<be.length;t+=2)if(e>=be[t]&&e<=be[t+1])return!0;return!1}var Se=e=>e+` `+e,Ce=80,we=function(e,t){return`M95,`+(622+e+t)+`
2
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
3
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
4
+ 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
5
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
6
+ c69,-144,104.5,-217.7,106.5,-221
7
+ l`+e/2.075+` -`+e+`
8
+ c5.3,-9.3,12,-14,20,-14
9
+ H400000v`+(40+e)+`H845.2724
10
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
11
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
12
+ M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Te=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
13
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
14
+ c340,-704.7,510.7,-1060.3,512,-1067
15
+ l`+e/2.084+` -`+e+`
16
+ c4.7,-7.3,11,-11,19,-11
17
+ H40000v`+(40+e)+`H1012.3
18
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
19
+ 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
20
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
21
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
22
+ M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Ee=function(e,t){return`M983 `+(10+e+t)+`
23
+ l`+e/3.13+` -`+e+`
24
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
25
+ 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
26
+ 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
27
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
28
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
29
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
30
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
31
+ M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},De=function(e,t){return`M424,`+(2398+e+t)+`
32
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
33
+ 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
34
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
35
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
36
+ l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000
37
+ v`+(40+e)+`H1014.6
38
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
39
+ c-2,6,-10,9,-24,9
40
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
41
+ h400000v`+(40+e)+`h-400000z`},Oe=function(e,t){return`M473,`+(2713+e+t)+`
42
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
43
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
44
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
45
+ 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
46
+ 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
47
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
48
+ 606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},ke=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},Ae=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
49
+ H742v`+r+`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
50
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
51
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
52
+ 219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},je=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=we(t,Ce);break;case`sqrtSize1`:r=Te(t,Ce);break;case`sqrtSize2`:r=Ee(t,Ce);break;case`sqrtSize3`:r=De(t,Ce);break;case`sqrtSize4`:r=Oe(t,Ce);break;case`sqrtTall`:r=Ae(t,Ce,n)}return r},Me=function(e,t){switch(e){case`⎜`:return Se(`M291 0 H417 V`+t+` H291z`);case`∣`:return Se(`M145 0 H188 V`+t+` H145z`);case`∥`:return Se(`M145 0 H188 V`+t+` H145z`)+Se(`M367 0 H410 V`+t+` H367z`);case`⎟`:return Se(`M457 0 H583 V`+t+` H457z`);case`⎢`:return Se(`M319 0 H403 V`+t+` H319z`);case`⎥`:return Se(`M263 0 H347 V`+t+` H263z`);case`⎪`:return Se(`M384 0 H504 V`+t+` H384z`);case`⏐`:return Se(`M312 0 H355 V`+t+` H312z`);case`‖`:return Se(`M257 0 H300 V`+t+` H257z`)+Se(`M478 0 H521 V`+t+` H478z`);default:return``}},Ne={doubleleftarrow:`M262 157
53
+ 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
54
+ 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
55
+ 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
56
+ 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
57
+ 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
58
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
59
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
60
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
61
+ -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
62
+ 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
63
+ -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
64
+ -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
65
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
66
+ 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
67
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
68
+ 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
69
+ -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
70
+ 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
71
+ 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
72
+ 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
73
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
74
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
75
+ 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
76
+ 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
77
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
78
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
79
+ 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
80
+ 435 0h399565z`,leftgroupunder:`M400000 262
81
+ 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
82
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
83
+ -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
84
+ -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
85
+ -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
86
+ 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
87
+ -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
88
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
89
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
90
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
91
+ 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
92
+ -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
93
+ 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
94
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
95
+ 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
96
+ -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
97
+ -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
98
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Se(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:Se(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:Se(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:Se(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
99
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
100
+ 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
101
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Se(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
102
+ 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
103
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
104
+ 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
105
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
106
+ 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
107
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
108
+ 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
109
+ -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
110
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
111
+ 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
112
+ 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
113
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
114
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
115
+ 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
116
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
117
+ 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
118
+ 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
119
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
120
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
121
+ 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
122
+ -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
123
+ 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
124
+ 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
125
+ -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
126
+ -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
127
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
128
+ -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
129
+ 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
130
+ 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
131
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
132
+ -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
133
+ 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
134
+ 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
135
+ -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
136
+ -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
137
+ 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
138
+ -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
139
+ 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
140
+ 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
141
+ 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
142
+ -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
143
+ -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
144
+ 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
145
+ 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
146
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
147
+ 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
148
+ 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
149
+ -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
150
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Se(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:Se(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:Se(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
151
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
152
+ -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
153
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
154
+ 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
155
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
156
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
157
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
158
+ 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
159
+ 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
160
+ 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
161
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
162
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
163
+ 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
164
+ -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
165
+ 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
166
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
167
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
168
+ -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
169
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
170
+ 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
171
+ 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
172
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
173
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
174
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
175
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
176
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
178
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
179
+ -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
180
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
181
+ 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
182
+ -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
183
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
184
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
185
+ 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
186
+ 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
187
+ -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
188
+ -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
189
+ -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,
190
+ -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,
191
+ -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,
192
+ -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,
193
+ -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
194
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
195
+ 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
196
+ 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
197
+ 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
198
+ 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
199
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
200
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
201
+ -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
202
+ 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
203
+ -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
204
+ -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
205
+ -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
206
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
207
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
208
+ 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
209
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
210
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
211
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
212
+ 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,
213
+ -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
214
+ 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
215
+ 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
216
+ 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,
217
+ 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,
218
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
219
+ 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
220
+ 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,
221
+ -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
222
+ 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
223
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Pe=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
224
+ H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z
225
+ 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
226
+ c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
227
+ 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
228
+ c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
229
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
230
+ M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
231
+ c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
232
+ 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
233
+ MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z
234
+ MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z
235
+ M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z
236
+ 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
237
+ 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,
238
+ -36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
239
+ 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
240
+ 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,
241
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
242
+ l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
243
+ -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,
244
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
245
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
246
+ 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
247
+ 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
248
+ 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
249
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
250
+ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
251
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function Fe(e){return`toText`in e}var Ie=class{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(){return this.children.map(e=>{if(Fe(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},Le={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},Re={ex:!0,em:!0,mu:!0},ze=function(e){return typeof e!=`string`&&(e=e.unit),e in Le||e in Re||e===`ex`},Be=function(e,t){var n;if(e.unit in Le)n=Le[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new d(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},T=function(e){return+e.toFixed(4)+`em`},Ve=function(e){return e.filter(e=>e).join(` `)},He=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=p(n)+`:`+r+`;`)}return t},Ue=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 r=t.getColor();r&&(this.style.color=r)}},We=function(e){var t=document.createElement(e);t.className=Ve(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},Ge=/[\s"'>/=\x00-\x1f]/,Ke=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+g(Ve(this.classes))+`"`);var n=He(this.style);n&&(t+=` style="`+g(n)+`"`);for(var r of Object.keys(this.attributes)){if(Ge.test(r))throw new d(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+g(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},qe=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,Ue.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return We.call(this,`span`)}toMarkup(){return Ke.call(this,`span`)}},Je=class{constructor(e,t,n,r){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,Ue.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return We.call(this,`a`)}toMarkup(){return Ke.call(this,`a`)}},Ye=class{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.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+g(this.src)+`"`+(` alt="`+g(this.alt)+`"`),t=He(this.style);return t&&(e+=` style="`+g(t)+`"`),e+=`'/>`,e}},Xe={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Ze=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=ye(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Xe[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=T(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=Ve(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=g(Ve(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+T(this.italic)+`;`),n+=He(this.style),n&&(e=!0,t+=` style="`+g(n)+`"`);var r=g(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},Qe=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+g(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},$e=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,Ne[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+g(this.alternate)+`"/>`:`<path d="`+g(Ne[this.pathName])+`"/>`}},et=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+g(this.attributes[t])+`"`;return e+=`/>`,e}};function tt(e){if(e instanceof Ze)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function nt(e){if(e instanceof qe)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var rt=e=>e instanceof qe||e instanceof Je||e instanceof Ie,it={"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]}},at={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]},ot={Å:`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 st(e,t){it[e]=t}function ct(e,t,n){if(!it[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=it[t][r];if(!i&&e[0]in ot&&(r=ot[e[0]].charCodeAt(0),i=it[t][r]),!i&&n===`text`&&xe(r)&&(i=it[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var lt={};function ut(e){var t=e>=5?0:e>=3?1:2;if(!lt[t]){var n=lt[t]={cssEmPerMu:at.quad[t]/18};for(var r in at)at.hasOwnProperty(r)&&(n[r]=at[r][t])}return lt[t]}var dt={math:{},text:{}};function E(e,t,n,r,i,a){dt[e][i]={font:t,group:n,replace:r},a&&r&&(dt[e][r]=dt[e][i])}var D=`math`,O=`text`,k=`main`,A=`ams`,ft=`accent-token`,j=`bin`,pt=`close`,mt=`inner`,M=`mathord`,ht=`op-token`,gt=`open`,_t=`punct`,N=`rel`,vt=`spacing`,P=`textord`;E(D,k,N,`≡`,`\\equiv`,!0),E(D,k,N,`≺`,`\\prec`,!0),E(D,k,N,`≻`,`\\succ`,!0),E(D,k,N,`∼`,`\\sim`,!0),E(D,k,N,`⊥`,`\\perp`),E(D,k,N,`⪯`,`\\preceq`,!0),E(D,k,N,`⪰`,`\\succeq`,!0),E(D,k,N,`≃`,`\\simeq`,!0),E(D,k,N,`∣`,`\\mid`,!0),E(D,k,N,`≪`,`\\ll`,!0),E(D,k,N,`≫`,`\\gg`,!0),E(D,k,N,`≍`,`\\asymp`,!0),E(D,k,N,`∥`,`\\parallel`),E(D,k,N,`⋈`,`\\bowtie`,!0),E(D,k,N,`⌣`,`\\smile`,!0),E(D,k,N,`⊑`,`\\sqsubseteq`,!0),E(D,k,N,`⊒`,`\\sqsupseteq`,!0),E(D,k,N,`≐`,`\\doteq`,!0),E(D,k,N,`⌢`,`\\frown`,!0),E(D,k,N,`∋`,`\\ni`,!0),E(D,k,N,`∝`,`\\propto`,!0),E(D,k,N,`⊢`,`\\vdash`,!0),E(D,k,N,`⊣`,`\\dashv`,!0),E(D,k,N,`∋`,`\\owns`),E(D,k,_t,`.`,`\\ldotp`),E(D,k,_t,`⋅`,`\\cdotp`),E(D,k,_t,`⋅`,`·`),E(O,k,P,`⋅`,`·`),E(D,k,P,`#`,`\\#`),E(O,k,P,`#`,`\\#`),E(D,k,P,`&`,`\\&`),E(O,k,P,`&`,`\\&`),E(D,k,P,`ℵ`,`\\aleph`,!0),E(D,k,P,`∀`,`\\forall`,!0),E(D,k,P,`ℏ`,`\\hbar`,!0),E(D,k,P,`∃`,`\\exists`,!0),E(D,k,P,`∇`,`\\nabla`,!0),E(D,k,P,`♭`,`\\flat`,!0),E(D,k,P,`ℓ`,`\\ell`,!0),E(D,k,P,`♮`,`\\natural`,!0),E(D,k,P,`♣`,`\\clubsuit`,!0),E(D,k,P,`℘`,`\\wp`,!0),E(D,k,P,`♯`,`\\sharp`,!0),E(D,k,P,`♢`,`\\diamondsuit`,!0),E(D,k,P,`ℜ`,`\\Re`,!0),E(D,k,P,`♡`,`\\heartsuit`,!0),E(D,k,P,`ℑ`,`\\Im`,!0),E(D,k,P,`♠`,`\\spadesuit`,!0),E(D,k,P,`§`,`\\S`,!0),E(O,k,P,`§`,`\\S`),E(D,k,P,`¶`,`\\P`,!0),E(O,k,P,`¶`,`\\P`),E(D,k,P,`†`,`\\dag`),E(O,k,P,`†`,`\\dag`),E(O,k,P,`†`,`\\textdagger`),E(D,k,P,`‡`,`\\ddag`),E(O,k,P,`‡`,`\\ddag`),E(O,k,P,`‡`,`\\textdaggerdbl`),E(D,k,pt,`⎱`,`\\rmoustache`,!0),E(D,k,gt,`⎰`,`\\lmoustache`,!0),E(D,k,pt,`⟯`,`\\rgroup`,!0),E(D,k,gt,`⟮`,`\\lgroup`,!0),E(D,k,j,`∓`,`\\mp`,!0),E(D,k,j,`⊖`,`\\ominus`,!0),E(D,k,j,`⊎`,`\\uplus`,!0),E(D,k,j,`⊓`,`\\sqcap`,!0),E(D,k,j,`∗`,`\\ast`),E(D,k,j,`⊔`,`\\sqcup`,!0),E(D,k,j,`◯`,`\\bigcirc`,!0),E(D,k,j,`∙`,`\\bullet`,!0),E(D,k,j,`‡`,`\\ddagger`),E(D,k,j,`≀`,`\\wr`,!0),E(D,k,j,`⨿`,`\\amalg`),E(D,k,j,`&`,`\\And`),E(D,k,N,`⟵`,`\\longleftarrow`,!0),E(D,k,N,`⇐`,`\\Leftarrow`,!0),E(D,k,N,`⟸`,`\\Longleftarrow`,!0),E(D,k,N,`⟶`,`\\longrightarrow`,!0),E(D,k,N,`⇒`,`\\Rightarrow`,!0),E(D,k,N,`⟹`,`\\Longrightarrow`,!0),E(D,k,N,`↔`,`\\leftrightarrow`,!0),E(D,k,N,`⟷`,`\\longleftrightarrow`,!0),E(D,k,N,`⇔`,`\\Leftrightarrow`,!0),E(D,k,N,`⟺`,`\\Longleftrightarrow`,!0),E(D,k,N,`↦`,`\\mapsto`,!0),E(D,k,N,`⟼`,`\\longmapsto`,!0),E(D,k,N,`↗`,`\\nearrow`,!0),E(D,k,N,`↩`,`\\hookleftarrow`,!0),E(D,k,N,`↪`,`\\hookrightarrow`,!0),E(D,k,N,`↘`,`\\searrow`,!0),E(D,k,N,`↼`,`\\leftharpoonup`,!0),E(D,k,N,`⇀`,`\\rightharpoonup`,!0),E(D,k,N,`↙`,`\\swarrow`,!0),E(D,k,N,`↽`,`\\leftharpoondown`,!0),E(D,k,N,`⇁`,`\\rightharpoondown`,!0),E(D,k,N,`↖`,`\\nwarrow`,!0),E(D,k,N,`⇌`,`\\rightleftharpoons`,!0),E(D,A,N,`≮`,`\\nless`,!0),E(D,A,N,``,`\\@nleqslant`),E(D,A,N,``,`\\@nleqq`),E(D,A,N,`⪇`,`\\lneq`,!0),E(D,A,N,`≨`,`\\lneqq`,!0),E(D,A,N,``,`\\@lvertneqq`),E(D,A,N,`⋦`,`\\lnsim`,!0),E(D,A,N,`⪉`,`\\lnapprox`,!0),E(D,A,N,`⊀`,`\\nprec`,!0),E(D,A,N,`⋠`,`\\npreceq`,!0),E(D,A,N,`⋨`,`\\precnsim`,!0),E(D,A,N,`⪹`,`\\precnapprox`,!0),E(D,A,N,`≁`,`\\nsim`,!0),E(D,A,N,``,`\\@nshortmid`),E(D,A,N,`∤`,`\\nmid`,!0),E(D,A,N,`⊬`,`\\nvdash`,!0),E(D,A,N,`⊭`,`\\nvDash`,!0),E(D,A,N,`⋪`,`\\ntriangleleft`),E(D,A,N,`⋬`,`\\ntrianglelefteq`,!0),E(D,A,N,`⊊`,`\\subsetneq`,!0),E(D,A,N,``,`\\@varsubsetneq`),E(D,A,N,`⫋`,`\\subsetneqq`,!0),E(D,A,N,``,`\\@varsubsetneqq`),E(D,A,N,`≯`,`\\ngtr`,!0),E(D,A,N,``,`\\@ngeqslant`),E(D,A,N,``,`\\@ngeqq`),E(D,A,N,`⪈`,`\\gneq`,!0),E(D,A,N,`≩`,`\\gneqq`,!0),E(D,A,N,``,`\\@gvertneqq`),E(D,A,N,`⋧`,`\\gnsim`,!0),E(D,A,N,`⪊`,`\\gnapprox`,!0),E(D,A,N,`⊁`,`\\nsucc`,!0),E(D,A,N,`⋡`,`\\nsucceq`,!0),E(D,A,N,`⋩`,`\\succnsim`,!0),E(D,A,N,`⪺`,`\\succnapprox`,!0),E(D,A,N,`≆`,`\\ncong`,!0),E(D,A,N,``,`\\@nshortparallel`),E(D,A,N,`∦`,`\\nparallel`,!0),E(D,A,N,`⊯`,`\\nVDash`,!0),E(D,A,N,`⋫`,`\\ntriangleright`),E(D,A,N,`⋭`,`\\ntrianglerighteq`,!0),E(D,A,N,``,`\\@nsupseteqq`),E(D,A,N,`⊋`,`\\supsetneq`,!0),E(D,A,N,``,`\\@varsupsetneq`),E(D,A,N,`⫌`,`\\supsetneqq`,!0),E(D,A,N,``,`\\@varsupsetneqq`),E(D,A,N,`⊮`,`\\nVdash`,!0),E(D,A,N,`⪵`,`\\precneqq`,!0),E(D,A,N,`⪶`,`\\succneqq`,!0),E(D,A,N,``,`\\@nsubseteqq`),E(D,A,j,`⊴`,`\\unlhd`),E(D,A,j,`⊵`,`\\unrhd`),E(D,A,N,`↚`,`\\nleftarrow`,!0),E(D,A,N,`↛`,`\\nrightarrow`,!0),E(D,A,N,`⇍`,`\\nLeftarrow`,!0),E(D,A,N,`⇏`,`\\nRightarrow`,!0),E(D,A,N,`↮`,`\\nleftrightarrow`,!0),E(D,A,N,`⇎`,`\\nLeftrightarrow`,!0),E(D,A,N,`△`,`\\vartriangle`),E(D,A,P,`ℏ`,`\\hslash`),E(D,A,P,`▽`,`\\triangledown`),E(D,A,P,`◊`,`\\lozenge`),E(D,A,P,`Ⓢ`,`\\circledS`),E(D,A,P,`®`,`\\circledR`),E(O,A,P,`®`,`\\circledR`),E(D,A,P,`∡`,`\\measuredangle`,!0),E(D,A,P,`∄`,`\\nexists`),E(D,A,P,`℧`,`\\mho`),E(D,A,P,`Ⅎ`,`\\Finv`,!0),E(D,A,P,`⅁`,`\\Game`,!0),E(D,A,P,`‵`,`\\backprime`),E(D,A,P,`▲`,`\\blacktriangle`),E(D,A,P,`▼`,`\\blacktriangledown`),E(D,A,P,`■`,`\\blacksquare`),E(D,A,P,`⧫`,`\\blacklozenge`),E(D,A,P,`★`,`\\bigstar`),E(D,A,P,`∢`,`\\sphericalangle`,!0),E(D,A,P,`∁`,`\\complement`,!0),E(D,A,P,`ð`,`\\eth`,!0),E(O,k,P,`ð`,`ð`),E(D,A,P,`╱`,`\\diagup`),E(D,A,P,`╲`,`\\diagdown`),E(D,A,P,`□`,`\\square`),E(D,A,P,`□`,`\\Box`),E(D,A,P,`◊`,`\\Diamond`),E(D,A,P,`¥`,`\\yen`,!0),E(O,A,P,`¥`,`\\yen`,!0),E(D,A,P,`✓`,`\\checkmark`,!0),E(O,A,P,`✓`,`\\checkmark`),E(D,A,P,`ℶ`,`\\beth`,!0),E(D,A,P,`ℸ`,`\\daleth`,!0),E(D,A,P,`ℷ`,`\\gimel`,!0),E(D,A,P,`ϝ`,`\\digamma`,!0),E(D,A,P,`ϰ`,`\\varkappa`),E(D,A,gt,`┌`,`\\@ulcorner`,!0),E(D,A,pt,`┐`,`\\@urcorner`,!0),E(D,A,gt,`└`,`\\@llcorner`,!0),E(D,A,pt,`┘`,`\\@lrcorner`,!0),E(D,A,N,`≦`,`\\leqq`,!0),E(D,A,N,`⩽`,`\\leqslant`,!0),E(D,A,N,`⪕`,`\\eqslantless`,!0),E(D,A,N,`≲`,`\\lesssim`,!0),E(D,A,N,`⪅`,`\\lessapprox`,!0),E(D,A,N,`≊`,`\\approxeq`,!0),E(D,A,j,`⋖`,`\\lessdot`),E(D,A,N,`⋘`,`\\lll`,!0),E(D,A,N,`≶`,`\\lessgtr`,!0),E(D,A,N,`⋚`,`\\lesseqgtr`,!0),E(D,A,N,`⪋`,`\\lesseqqgtr`,!0),E(D,A,N,`≑`,`\\doteqdot`),E(D,A,N,`≓`,`\\risingdotseq`,!0),E(D,A,N,`≒`,`\\fallingdotseq`,!0),E(D,A,N,`∽`,`\\backsim`,!0),E(D,A,N,`⋍`,`\\backsimeq`,!0),E(D,A,N,`⫅`,`\\subseteqq`,!0),E(D,A,N,`⋐`,`\\Subset`,!0),E(D,A,N,`⊏`,`\\sqsubset`,!0),E(D,A,N,`≼`,`\\preccurlyeq`,!0),E(D,A,N,`⋞`,`\\curlyeqprec`,!0),E(D,A,N,`≾`,`\\precsim`,!0),E(D,A,N,`⪷`,`\\precapprox`,!0),E(D,A,N,`⊲`,`\\vartriangleleft`),E(D,A,N,`⊴`,`\\trianglelefteq`),E(D,A,N,`⊨`,`\\vDash`,!0),E(D,A,N,`⊪`,`\\Vvdash`,!0),E(D,A,N,`⌣`,`\\smallsmile`),E(D,A,N,`⌢`,`\\smallfrown`),E(D,A,N,`≏`,`\\bumpeq`,!0),E(D,A,N,`≎`,`\\Bumpeq`,!0),E(D,A,N,`≧`,`\\geqq`,!0),E(D,A,N,`⩾`,`\\geqslant`,!0),E(D,A,N,`⪖`,`\\eqslantgtr`,!0),E(D,A,N,`≳`,`\\gtrsim`,!0),E(D,A,N,`⪆`,`\\gtrapprox`,!0),E(D,A,j,`⋗`,`\\gtrdot`),E(D,A,N,`⋙`,`\\ggg`,!0),E(D,A,N,`≷`,`\\gtrless`,!0),E(D,A,N,`⋛`,`\\gtreqless`,!0),E(D,A,N,`⪌`,`\\gtreqqless`,!0),E(D,A,N,`≖`,`\\eqcirc`,!0),E(D,A,N,`≗`,`\\circeq`,!0),E(D,A,N,`≜`,`\\triangleq`,!0),E(D,A,N,`∼`,`\\thicksim`),E(D,A,N,`≈`,`\\thickapprox`),E(D,A,N,`⫆`,`\\supseteqq`,!0),E(D,A,N,`⋑`,`\\Supset`,!0),E(D,A,N,`⊐`,`\\sqsupset`,!0),E(D,A,N,`≽`,`\\succcurlyeq`,!0),E(D,A,N,`⋟`,`\\curlyeqsucc`,!0),E(D,A,N,`≿`,`\\succsim`,!0),E(D,A,N,`⪸`,`\\succapprox`,!0),E(D,A,N,`⊳`,`\\vartriangleright`),E(D,A,N,`⊵`,`\\trianglerighteq`),E(D,A,N,`⊩`,`\\Vdash`,!0),E(D,A,N,`∣`,`\\shortmid`),E(D,A,N,`∥`,`\\shortparallel`),E(D,A,N,`≬`,`\\between`,!0),E(D,A,N,`⋔`,`\\pitchfork`,!0),E(D,A,N,`∝`,`\\varpropto`),E(D,A,N,`◀`,`\\blacktriangleleft`),E(D,A,N,`∴`,`\\therefore`,!0),E(D,A,N,`∍`,`\\backepsilon`),E(D,A,N,`▶`,`\\blacktriangleright`),E(D,A,N,`∵`,`\\because`,!0),E(D,A,N,`⋘`,`\\llless`),E(D,A,N,`⋙`,`\\gggtr`),E(D,A,j,`⊲`,`\\lhd`),E(D,A,j,`⊳`,`\\rhd`),E(D,A,N,`≂`,`\\eqsim`,!0),E(D,k,N,`⋈`,`\\Join`),E(D,A,N,`≑`,`\\Doteq`,!0),E(D,A,j,`∔`,`\\dotplus`,!0),E(D,A,j,`∖`,`\\smallsetminus`),E(D,A,j,`⋒`,`\\Cap`,!0),E(D,A,j,`⋓`,`\\Cup`,!0),E(D,A,j,`⩞`,`\\doublebarwedge`,!0),E(D,A,j,`⊟`,`\\boxminus`,!0),E(D,A,j,`⊞`,`\\boxplus`,!0),E(D,A,j,`⋇`,`\\divideontimes`,!0),E(D,A,j,`⋉`,`\\ltimes`,!0),E(D,A,j,`⋊`,`\\rtimes`,!0),E(D,A,j,`⋋`,`\\leftthreetimes`,!0),E(D,A,j,`⋌`,`\\rightthreetimes`,!0),E(D,A,j,`⋏`,`\\curlywedge`,!0),E(D,A,j,`⋎`,`\\curlyvee`,!0),E(D,A,j,`⊝`,`\\circleddash`,!0),E(D,A,j,`⊛`,`\\circledast`,!0),E(D,A,j,`⋅`,`\\centerdot`),E(D,A,j,`⊺`,`\\intercal`,!0),E(D,A,j,`⋒`,`\\doublecap`),E(D,A,j,`⋓`,`\\doublecup`),E(D,A,j,`⊠`,`\\boxtimes`,!0),E(D,A,N,`⇢`,`\\dashrightarrow`,!0),E(D,A,N,`⇠`,`\\dashleftarrow`,!0),E(D,A,N,`⇇`,`\\leftleftarrows`,!0),E(D,A,N,`⇆`,`\\leftrightarrows`,!0),E(D,A,N,`⇚`,`\\Lleftarrow`,!0),E(D,A,N,`↞`,`\\twoheadleftarrow`,!0),E(D,A,N,`↢`,`\\leftarrowtail`,!0),E(D,A,N,`↫`,`\\looparrowleft`,!0),E(D,A,N,`⇋`,`\\leftrightharpoons`,!0),E(D,A,N,`↶`,`\\curvearrowleft`,!0),E(D,A,N,`↺`,`\\circlearrowleft`,!0),E(D,A,N,`↰`,`\\Lsh`,!0),E(D,A,N,`⇈`,`\\upuparrows`,!0),E(D,A,N,`↿`,`\\upharpoonleft`,!0),E(D,A,N,`⇃`,`\\downharpoonleft`,!0),E(D,k,N,`⊶`,`\\origof`,!0),E(D,k,N,`⊷`,`\\imageof`,!0),E(D,A,N,`⊸`,`\\multimap`,!0),E(D,A,N,`↭`,`\\leftrightsquigarrow`,!0),E(D,A,N,`⇉`,`\\rightrightarrows`,!0),E(D,A,N,`⇄`,`\\rightleftarrows`,!0),E(D,A,N,`↠`,`\\twoheadrightarrow`,!0),E(D,A,N,`↣`,`\\rightarrowtail`,!0),E(D,A,N,`↬`,`\\looparrowright`,!0),E(D,A,N,`↷`,`\\curvearrowright`,!0),E(D,A,N,`↻`,`\\circlearrowright`,!0),E(D,A,N,`↱`,`\\Rsh`,!0),E(D,A,N,`⇊`,`\\downdownarrows`,!0),E(D,A,N,`↾`,`\\upharpoonright`,!0),E(D,A,N,`⇂`,`\\downharpoonright`,!0),E(D,A,N,`⇝`,`\\rightsquigarrow`,!0),E(D,A,N,`⇝`,`\\leadsto`),E(D,A,N,`⇛`,`\\Rrightarrow`,!0),E(D,A,N,`↾`,`\\restriction`),E(D,k,P,`‘`,"`"),E(D,k,P,`$`,`\\$`),E(O,k,P,`$`,`\\$`),E(O,k,P,`$`,`\\textdollar`),E(D,k,P,`%`,`\\%`),E(O,k,P,`%`,`\\%`),E(D,k,P,`_`,`\\_`),E(O,k,P,`_`,`\\_`),E(O,k,P,`_`,`\\textunderscore`),E(D,k,P,`∠`,`\\angle`,!0),E(D,k,P,`∞`,`\\infty`,!0),E(D,k,P,`′`,`\\prime`),E(D,k,P,`△`,`\\triangle`),E(D,k,P,`Γ`,`\\Gamma`,!0),E(D,k,P,`Δ`,`\\Delta`,!0),E(D,k,P,`Θ`,`\\Theta`,!0),E(D,k,P,`Λ`,`\\Lambda`,!0),E(D,k,P,`Ξ`,`\\Xi`,!0),E(D,k,P,`Π`,`\\Pi`,!0),E(D,k,P,`Σ`,`\\Sigma`,!0),E(D,k,P,`Υ`,`\\Upsilon`,!0),E(D,k,P,`Φ`,`\\Phi`,!0),E(D,k,P,`Ψ`,`\\Psi`,!0),E(D,k,P,`Ω`,`\\Omega`,!0),E(D,k,P,`A`,`Α`),E(D,k,P,`B`,`Β`),E(D,k,P,`E`,`Ε`),E(D,k,P,`Z`,`Ζ`),E(D,k,P,`H`,`Η`),E(D,k,P,`I`,`Ι`),E(D,k,P,`K`,`Κ`),E(D,k,P,`M`,`Μ`),E(D,k,P,`N`,`Ν`),E(D,k,P,`O`,`Ο`),E(D,k,P,`P`,`Ρ`),E(D,k,P,`T`,`Τ`),E(D,k,P,`X`,`Χ`),E(D,k,P,`¬`,`\\neg`,!0),E(D,k,P,`¬`,`\\lnot`),E(D,k,P,`⊤`,`\\top`),E(D,k,P,`⊥`,`\\bot`),E(D,k,P,`∅`,`\\emptyset`),E(D,A,P,`∅`,`\\varnothing`),E(D,k,M,`α`,`\\alpha`,!0),E(D,k,M,`β`,`\\beta`,!0),E(D,k,M,`γ`,`\\gamma`,!0),E(D,k,M,`δ`,`\\delta`,!0),E(D,k,M,`ϵ`,`\\epsilon`,!0),E(D,k,M,`ζ`,`\\zeta`,!0),E(D,k,M,`η`,`\\eta`,!0),E(D,k,M,`θ`,`\\theta`,!0),E(D,k,M,`ι`,`\\iota`,!0),E(D,k,M,`κ`,`\\kappa`,!0),E(D,k,M,`λ`,`\\lambda`,!0),E(D,k,M,`μ`,`\\mu`,!0),E(D,k,M,`ν`,`\\nu`,!0),E(D,k,M,`ξ`,`\\xi`,!0),E(D,k,M,`ο`,`\\omicron`,!0),E(D,k,M,`π`,`\\pi`,!0),E(D,k,M,`ρ`,`\\rho`,!0),E(D,k,M,`σ`,`\\sigma`,!0),E(D,k,M,`τ`,`\\tau`,!0),E(D,k,M,`υ`,`\\upsilon`,!0),E(D,k,M,`ϕ`,`\\phi`,!0),E(D,k,M,`χ`,`\\chi`,!0),E(D,k,M,`ψ`,`\\psi`,!0),E(D,k,M,`ω`,`\\omega`,!0),E(D,k,M,`ε`,`\\varepsilon`,!0),E(D,k,M,`ϑ`,`\\vartheta`,!0),E(D,k,M,`ϖ`,`\\varpi`,!0),E(D,k,M,`ϱ`,`\\varrho`,!0),E(D,k,M,`ς`,`\\varsigma`,!0),E(D,k,M,`φ`,`\\varphi`,!0),E(D,k,j,`∗`,`*`,!0),E(D,k,j,`+`,`+`),E(D,k,j,`−`,`-`,!0),E(D,k,j,`⋅`,`\\cdot`,!0),E(D,k,j,`∘`,`\\circ`,!0),E(D,k,j,`÷`,`\\div`,!0),E(D,k,j,`±`,`\\pm`,!0),E(D,k,j,`×`,`\\times`,!0),E(D,k,j,`∩`,`\\cap`,!0),E(D,k,j,`∪`,`\\cup`,!0),E(D,k,j,`∖`,`\\setminus`,!0),E(D,k,j,`∧`,`\\land`),E(D,k,j,`∨`,`\\lor`),E(D,k,j,`∧`,`\\wedge`,!0),E(D,k,j,`∨`,`\\vee`,!0),E(D,k,P,`√`,`\\surd`),E(D,k,gt,`⟨`,`\\langle`,!0),E(D,k,gt,`∣`,`\\lvert`),E(D,k,gt,`∥`,`\\lVert`),E(D,k,pt,`?`,`?`),E(D,k,pt,`!`,`!`),E(D,k,pt,`⟩`,`\\rangle`,!0),E(D,k,pt,`∣`,`\\rvert`),E(D,k,pt,`∥`,`\\rVert`),E(D,k,N,`=`,`=`),E(D,k,N,`:`,`:`),E(D,k,N,`≈`,`\\approx`,!0),E(D,k,N,`≅`,`\\cong`,!0),E(D,k,N,`≥`,`\\ge`),E(D,k,N,`≥`,`\\geq`,!0),E(D,k,N,`←`,`\\gets`),E(D,k,N,`>`,`\\gt`,!0),E(D,k,N,`∈`,`\\in`,!0),E(D,k,N,``,`\\@not`),E(D,k,N,`⊂`,`\\subset`,!0),E(D,k,N,`⊃`,`\\supset`,!0),E(D,k,N,`⊆`,`\\subseteq`,!0),E(D,k,N,`⊇`,`\\supseteq`,!0),E(D,A,N,`⊈`,`\\nsubseteq`,!0),E(D,A,N,`⊉`,`\\nsupseteq`,!0),E(D,k,N,`⊨`,`\\models`),E(D,k,N,`←`,`\\leftarrow`,!0),E(D,k,N,`≤`,`\\le`),E(D,k,N,`≤`,`\\leq`,!0),E(D,k,N,`<`,`\\lt`,!0),E(D,k,N,`→`,`\\rightarrow`,!0),E(D,k,N,`→`,`\\to`),E(D,A,N,`≱`,`\\ngeq`,!0),E(D,A,N,`≰`,`\\nleq`,!0),E(D,k,vt,`\xA0`,`\\ `),E(D,k,vt,`\xA0`,`\\space`),E(D,k,vt,`\xA0`,`\\nobreakspace`),E(O,k,vt,`\xA0`,`\\ `),E(O,k,vt,`\xA0`,` `),E(O,k,vt,`\xA0`,`\\space`),E(O,k,vt,`\xA0`,`\\nobreakspace`),E(D,k,vt,``,`\\nobreak`),E(D,k,vt,``,`\\allowbreak`),E(D,k,_t,`,`,`,`),E(D,k,_t,`;`,`;`),E(D,A,j,`⊼`,`\\barwedge`,!0),E(D,A,j,`⊻`,`\\veebar`,!0),E(D,k,j,`⊙`,`\\odot`,!0),E(D,k,j,`⊕`,`\\oplus`,!0),E(D,k,j,`⊗`,`\\otimes`,!0),E(D,k,P,`∂`,`\\partial`,!0),E(D,k,j,`⊘`,`\\oslash`,!0),E(D,A,j,`⊚`,`\\circledcirc`,!0),E(D,A,j,`⊡`,`\\boxdot`,!0),E(D,k,j,`△`,`\\bigtriangleup`),E(D,k,j,`▽`,`\\bigtriangledown`),E(D,k,j,`†`,`\\dagger`),E(D,k,j,`⋄`,`\\diamond`),E(D,k,j,`⋆`,`\\star`),E(D,k,j,`◃`,`\\triangleleft`),E(D,k,j,`▹`,`\\triangleright`),E(D,k,gt,`{`,`\\{`),E(O,k,P,`{`,`\\{`),E(O,k,P,`{`,`\\textbraceleft`),E(D,k,pt,`}`,`\\}`),E(O,k,P,`}`,`\\}`),E(O,k,P,`}`,`\\textbraceright`),E(D,k,gt,`{`,`\\lbrace`),E(D,k,pt,`}`,`\\rbrace`),E(D,k,gt,`[`,`\\lbrack`,!0),E(O,k,P,`[`,`\\lbrack`,!0),E(D,k,pt,`]`,`\\rbrack`,!0),E(O,k,P,`]`,`\\rbrack`,!0),E(D,k,gt,`(`,`\\lparen`,!0),E(D,k,pt,`)`,`\\rparen`,!0),E(O,k,P,`<`,`\\textless`,!0),E(O,k,P,`>`,`\\textgreater`,!0),E(D,k,gt,`⌊`,`\\lfloor`,!0),E(D,k,pt,`⌋`,`\\rfloor`,!0),E(D,k,gt,`⌈`,`\\lceil`,!0),E(D,k,pt,`⌉`,`\\rceil`,!0),E(D,k,P,`\\`,`\\backslash`),E(D,k,P,`∣`,`|`),E(D,k,P,`∣`,`\\vert`),E(O,k,P,`|`,`\\textbar`,!0),E(D,k,P,`∥`,`\\|`),E(D,k,P,`∥`,`\\Vert`),E(O,k,P,`∥`,`\\textbardbl`),E(O,k,P,`~`,`\\textasciitilde`),E(O,k,P,`\\`,`\\textbackslash`),E(O,k,P,`^`,`\\textasciicircum`),E(D,k,N,`↑`,`\\uparrow`,!0),E(D,k,N,`⇑`,`\\Uparrow`,!0),E(D,k,N,`↓`,`\\downarrow`,!0),E(D,k,N,`⇓`,`\\Downarrow`,!0),E(D,k,N,`↕`,`\\updownarrow`,!0),E(D,k,N,`⇕`,`\\Updownarrow`,!0),E(D,k,ht,`∐`,`\\coprod`),E(D,k,ht,`⋁`,`\\bigvee`),E(D,k,ht,`⋀`,`\\bigwedge`),E(D,k,ht,`⨄`,`\\biguplus`),E(D,k,ht,`⋂`,`\\bigcap`),E(D,k,ht,`⋃`,`\\bigcup`),E(D,k,ht,`∫`,`\\int`),E(D,k,ht,`∫`,`\\intop`),E(D,k,ht,`∬`,`\\iint`),E(D,k,ht,`∭`,`\\iiint`),E(D,k,ht,`∏`,`\\prod`),E(D,k,ht,`∑`,`\\sum`),E(D,k,ht,`⨂`,`\\bigotimes`),E(D,k,ht,`⨁`,`\\bigoplus`),E(D,k,ht,`⨀`,`\\bigodot`),E(D,k,ht,`∮`,`\\oint`),E(D,k,ht,`∯`,`\\oiint`),E(D,k,ht,`∰`,`\\oiiint`),E(D,k,ht,`⨆`,`\\bigsqcup`),E(D,k,ht,`∫`,`\\smallint`),E(O,k,mt,`…`,`\\textellipsis`),E(D,k,mt,`…`,`\\mathellipsis`),E(O,k,mt,`…`,`\\ldots`,!0),E(D,k,mt,`…`,`\\ldots`,!0),E(D,k,mt,`⋯`,`\\@cdots`,!0),E(D,k,mt,`⋱`,`\\ddots`,!0),E(D,k,P,`⋮`,`\\varvdots`),E(O,k,P,`⋮`,`\\varvdots`),E(D,k,ft,`ˊ`,`\\acute`),E(D,k,ft,`ˋ`,`\\grave`),E(D,k,ft,`¨`,`\\ddot`),E(D,k,ft,`~`,`\\tilde`),E(D,k,ft,`ˉ`,`\\bar`),E(D,k,ft,`˘`,`\\breve`),E(D,k,ft,`ˇ`,`\\check`),E(D,k,ft,`^`,`\\hat`),E(D,k,ft,`⃗`,`\\vec`),E(D,k,ft,`˙`,`\\dot`),E(D,k,ft,`˚`,`\\mathring`),E(D,k,M,``,`\\@imath`),E(D,k,M,``,`\\@jmath`),E(D,k,P,`ı`,`ı`),E(D,k,P,`ȷ`,`ȷ`),E(O,k,P,`ı`,`\\i`,!0),E(O,k,P,`ȷ`,`\\j`,!0),E(O,k,P,`ß`,`\\ss`,!0),E(O,k,P,`æ`,`\\ae`,!0),E(O,k,P,`œ`,`\\oe`,!0),E(O,k,P,`ø`,`\\o`,!0),E(O,k,P,`Æ`,`\\AE`,!0),E(O,k,P,`Œ`,`\\OE`,!0),E(O,k,P,`Ø`,`\\O`,!0),E(O,k,ft,`ˊ`,`\\'`),E(O,k,ft,`ˋ`,"\\`"),E(O,k,ft,`ˆ`,`\\^`),E(O,k,ft,`˜`,`\\~`),E(O,k,ft,`ˉ`,`\\=`),E(O,k,ft,`˘`,`\\u`),E(O,k,ft,`˙`,`\\.`),E(O,k,ft,`¸`,`\\c`),E(O,k,ft,`˚`,`\\r`),E(O,k,ft,`ˇ`,`\\v`),E(O,k,ft,`¨`,`\\"`),E(O,k,ft,`˝`,`\\H`),E(O,k,ft,`◯`,`\\textcircled`);var yt={"--":!0,"---":!0,"``":!0,"''":!0};E(O,k,P,`–`,`--`,!0),E(O,k,P,`–`,`\\textendash`),E(O,k,P,`—`,`---`,!0),E(O,k,P,`—`,`\\textemdash`),E(O,k,P,`‘`,"`",!0),E(O,k,P,`‘`,`\\textquoteleft`),E(O,k,P,`’`,`'`,!0),E(O,k,P,`’`,`\\textquoteright`),E(O,k,P,`“`,"``",!0),E(O,k,P,`“`,`\\textquotedblleft`),E(O,k,P,`”`,`''`,!0),E(O,k,P,`”`,`\\textquotedblright`),E(D,k,P,`°`,`\\degree`,!0),E(O,k,P,`°`,`\\degree`),E(O,k,P,`°`,`\\textdegree`,!0),E(D,k,P,`£`,`\\pounds`),E(D,k,P,`£`,`\\mathsterling`,!0),E(O,k,P,`£`,`\\pounds`),E(O,k,P,`£`,`\\textsterling`,!0),E(D,A,P,`✠`,`\\maltese`),E(O,A,P,`✠`,`\\maltese`);for(var bt=`0123456789/@."`,xt=0;xt<bt.length;xt++){var St=bt.charAt(xt);E(D,k,P,St,St)}for(var Ct=`0123456789!@*()-=+";:?/.,`,wt=0;wt<Ct.length;wt++){var Tt=Ct.charAt(wt);E(O,k,P,Tt,Tt)}for(var Et=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,Dt=0;Dt<Et.length;Dt++){var Ot=Et.charAt(Dt);E(D,k,M,Ot,Ot),E(O,k,P,Ot,Ot)}E(D,A,P,`C`,`ℂ`),E(O,A,P,`C`,`ℂ`),E(D,A,P,`H`,`ℍ`),E(O,A,P,`H`,`ℍ`),E(D,A,P,`N`,`ℕ`),E(O,A,P,`N`,`ℕ`),E(D,A,P,`P`,`ℙ`),E(O,A,P,`P`,`ℙ`),E(D,A,P,`Q`,`ℚ`),E(O,A,P,`Q`,`ℚ`),E(D,A,P,`R`,`ℝ`),E(O,A,P,`R`,`ℝ`),E(D,A,P,`Z`,`ℤ`),E(O,A,P,`Z`,`ℤ`),E(D,k,M,`h`,`ℎ`),E(O,k,M,`h`,`ℎ`);for(var F,kt=0;kt<Et.length;kt++){var At=Et.charAt(kt);F=String.fromCharCode(55349,56320+kt),E(D,k,M,At,F),E(O,k,P,At,F),F=String.fromCharCode(55349,56372+kt),E(D,k,M,At,F),E(O,k,P,At,F),F=String.fromCharCode(55349,56424+kt),E(D,k,M,At,F),E(O,k,P,At,F),F=String.fromCharCode(55349,56580+kt),E(D,k,M,At,F),E(O,k,P,At,F),F=String.fromCharCode(55349,56684+kt),E(D,k,M,At,F),E(O,k,P,At,F),F=String.fromCharCode(55349,56736+kt),E(D,k,M,At,F),E(O,k,P,At,F),F=String.fromCharCode(55349,56788+kt),E(D,k,M,At,F),E(O,k,P,At,F),F=String.fromCharCode(55349,56840+kt),E(D,k,M,At,F),E(O,k,P,At,F),F=String.fromCharCode(55349,56944+kt),E(D,k,M,At,F),E(O,k,P,At,F),kt<26&&(F=String.fromCharCode(55349,56632+kt),E(D,k,M,At,F),E(O,k,P,At,F),F=String.fromCharCode(55349,56476+kt),E(D,k,M,At,F),E(O,k,P,At,F))}F=String.fromCharCode(55349,56668),E(D,k,M,`k`,F),E(O,k,P,`k`,F);for(var jt=0;jt<10;jt++){var Mt=jt.toString();F=String.fromCharCode(55349,57294+jt),E(D,k,M,Mt,F),E(O,k,P,Mt,F),F=String.fromCharCode(55349,57314+jt),E(D,k,M,Mt,F),E(O,k,P,Mt,F),F=String.fromCharCode(55349,57324+jt),E(D,k,M,Mt,F),E(O,k,P,Mt,F),F=String.fromCharCode(55349,57334+jt),E(D,k,M,Mt,F),E(O,k,P,Mt,F)}for(var Nt=`ÐÞþ`,Pt=0;Pt<Nt.length;Pt++){var Ft=Nt.charAt(Pt);E(D,k,M,Ft,Ft),E(O,k,P,Ft,Ft)}var It={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},Lt={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},Rt={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},zt={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},Bt={mathClass:``,textClass:``,font:``},Vt={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},Ht={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},Ut={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},Wt={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},Gt={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},Kt={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},qt={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},Jt=[It,It,Lt,Lt,Rt,Rt,zt,Bt,Bt,Bt,Vt,Vt,Ht,Ht,Ut,Ut,Wt,Wt,Gt,Gt,Kt,Kt,Bt,Bt,qt,qt],Yt=[It,Bt,Wt,Gt,qt],Xt=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return Jt[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return Yt[Math.floor((r-120782)/10)];if(r===120485||r===120486)return Jt[0];if(120486<r&&r<120782)return Bt;throw new d(`Unsupported character: `+e)},Zt=function(e,t,n){if(dt[n][e]){var r=dt[n][e].replace;r&&(e=r)}return{value:e,metrics:ct(e,t,n)}},Qt=function(e,t,n,r,i){var a=Zt(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new Ze(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new Ze(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},$t=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&Zt(e,`Main-Bold`,t).metrics?Qt(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||dt[t][e].font===`main`?Qt(e,`Main-Regular`,t,n,r):Qt(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},en=function(e,t,n){return n!==`textord`&&Zt(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},tn=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],{font:o,fontFamily:s,fontWeight:c,fontShape:l}=t,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=Xt(i);f=m.font,p=m[r+`Class`]}if(f)return Qt(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=en(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=mn[o].fontName,g=[o]):(h=pn(s,c,l),g=[s,c,l]);if(Zt(i,h,r).metrics)return Qt(i,h,r,t,a.concat(g));if(yt.hasOwnProperty(i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(Qt(i[y],h,r,t,a.concat(g)));return ln(v)}}if(n===`mathord`)return Qt(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=dt[r][i]&&dt[r][i].font;if(b===`ams`)return Qt(i,pn(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return Qt(i,pn(`textrm`,c,l),r,t,a.concat(c,l));var x=pn(b,c,l);return Qt(i,x,r,t,a.concat(x,c,l))}throw Error(`unexpected type: `+n+` in makeOrd`)},nn=(e,t)=>{if(Ve(e.classes)!==Ve(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},rn=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Ze&&r instanceof Ze&&nn(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},an=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},I=function(e,t,n,r){var i=new qe(e,t,n,r);return an(i),i},on=(e,t,n,r)=>new qe(e,t,n,r),sn=function(e,t,n){var r=I([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=T(r.height),r.maxFontSize=1,r},cn=function(e,t,n,r){var i=new Je(e,t,n,r);return an(i),i},ln=function(e){var t=new Ie(e);return an(t),t},un=function(e,t){return e instanceof Ie?I([],[e],t):e},dn=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},L=function(e,t){for(var{children:n,depth:r}=dn(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=I([`pstrut`],[]);c.style.height=T(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=I(g,[c,h],void 0,_);v.style.top=T(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=I([`vlist`],l);y.style.height=T(d);var b;if(u<0){var x=I([`vlist`],[I([],[])]);x.style.height=T(-u),b=[I([`vlist-r`],[y,I([`vlist-s`],[new Ze(`​`)])]),I([`vlist-r`],[x])]}else b=[I([`vlist-r`],[y])];var ee=I([`vlist-t`],b);return b.length===2&&ee.classes.push(`vlist-t2`),ee.height=d,ee.depth=-u,ee},fn=(e,t)=>{var n=I([`mspace`],[],t),r=Be(e,t);return n.style.marginRight=T(r),n},pn=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},mn={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`}},hn={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},gn=function(e,t){var[n,r,i]=hn[e],a=on([`overlay`],[new Qe([new $e(n)],{width:T(r),height:T(i),style:`width:`+T(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=T(i),a.style.width=T(r),a},_n={number:3,unit:`mu`},vn={number:4,unit:`mu`},yn={number:5,unit:`mu`},bn={mord:{mop:_n,mbin:vn,mrel:yn,minner:_n},mop:{mord:_n,mop:_n,mrel:yn,minner:_n},mbin:{mord:vn,mop:vn,mopen:vn,minner:vn},mrel:{mord:yn,mop:yn,mopen:yn,minner:yn},mopen:{},mclose:{mop:_n,mbin:vn,mrel:yn,minner:_n},mpunct:{mord:_n,mop:_n,mrel:yn,mopen:_n,mclose:_n,mpunct:_n,minner:_n},minner:{mord:_n,mop:_n,mbin:vn,mrel:yn,mopen:_n,mpunct:_n,minner:_n}},xn={mord:{mop:_n},mop:{mord:_n,mop:_n},mbin:{},mrel:{},mopen:{},mclose:{mop:_n},mpunct:{},minner:{mop:_n}},Sn={},Cn={},wn={};function R(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)Sn[n[c]]=s;t&&(a&&(Cn[t]=a),o&&(wn[t]=o))}function Tn(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;R({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var En=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},Dn=function(e){return e.type===`ordgroup`?e.body:[e]},On=/* @__PURE__ */ new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),kn=/* @__PURE__ */ new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),An={display:w.DISPLAY,text:w.TEXT,script:w.SCRIPT,scriptscript:w.SCRIPTSCRIPT},jn={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},Mn=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=z(e[a],t);if(o instanceof Ie){var s=o.children;i.push(...s)}else i.push(o)}if(rn(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(An[l.style]))}var u=I([r[0]||`leftmost`],[],t),d=I([r[1]||`rightmost`],[],t),f=n===`root`;return Nn(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&kn.has(r)?t.classes[0]=`mord`:r===`mbin`&&On.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),Nn(i,(e,t)=>{var n=In(t),r=In(e),i=n&&r?e.hasClass(`mtight`)?xn[n]?.[r]:bn[n]?.[r]:null;if(i)return fn(i,c)},{node:u},d,f),i},Nn=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=Pn(o);if(s)Nn(s.children,t,n,null,i);else{var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=I([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}}r&&e.pop()},Pn=function(e){return e instanceof Ie||e instanceof Je||e instanceof qe&&e.hasClass(`enclosing`)?e:null},Fn=function(e,t){var n=Pn(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Fn(r[r.length-1],`right`);if(t===`left`)return Fn(r[0],`left`)}}return e},In=function(e,t){return e?(t&&(e=Fn(e,t)),jn[e.classes[0]]||null):null},Ln=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return I(t.concat(n))},z=function(e,t,n){if(!e)return I();if(Cn[e.type]){var r=Cn[e.type](e,t);if(n&&t.size!==n.size){r=I(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new d(`Got group of unknown type: '`+e.type+`'`)};function Rn(e,t){var n=I([`base`],e,t),r=I([`strut`]);return r.style.height=T(n.height+n.depth),n.depth&&(r.style.verticalAlign=T(-n.depth)),n.children.unshift(r),n}function zn(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=Mn(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(Rn(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(Rn(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Rn(o,t));var l;n?(l=Rn(Mn(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=I([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=T(u.height+u.depth),u.depth&&(d.style.verticalAlign=T(-u.depth))}return u}function Bn(e){return new Ie(e)}var B=class{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=Ve(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Vn&&this.children[n+1]instanceof Vn){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Vn;)r+=this.children[++n].toText();e.appendChild(new Vn(r).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+=g(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+g(Ve(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(``)}},Vn=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return g(this.toText())}toText(){return this.text}},Hn=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?`  `:e>=-.05556&&e<=-.05555?` ⁣`:e>=-.1667&&e<=-.1666?` ⁣`:e>=-.2223&&e<=-.2222?` ⁣`:e>=-.2778&&e<=-.2777?` ⁣`: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`,T(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+T(this.width)+`"/>`}toText(){return this.character?this.character:` `}},Un=/* @__PURE__ */ new Set([`\\imath`,`\\jmath`]),Wn=/* @__PURE__ */ new Set([`mrow`,`mtable`]),Gn=function(e,t,n){return dt[t][e]&&dt[t][e].replace&&e.charCodeAt(0)!==55349&&!(yt.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=dt[t][e].replace),new Vn(e)},Kn=function(e){return e.length===1?e[0]:new B(`mrow`,e)},qn={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},Jn=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=qn[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(Un.has(a))return null;if(dt[r][a]){var o=dt[r][a].replace;o&&(a=o)}var s=mn[n].fontName;return ct(a,s,r)?mn[n].variant:null};function Yn(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Vn&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof Vn&&n.text===`,`}return!1}var Xn=function(e,t,n){if(e.length===1){var r=Qn(e[0],t);return n&&r instanceof B&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=Qn(e[o],t);if(s instanceof B&&a instanceof B){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)||s.type===`mn`&&a.type===`mn`||Yn(s)&&a.type===`mn`){a.children.push(...s.children);continue}if(s.type===`mn`&&Yn(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||Yn(a))){var c=s.children[0];c instanceof B&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof Vn&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof Vn&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},Zn=function(e,t,n){return Kn(Xn(e,t,n))},Qn=function(e,t){if(!e)return new B(`mrow`);if(wn[e.type])return wn[e.type](e,t);throw new d(`Got group of unknown type: '`+e.type+`'`)};function $n(e,t,n,r,i){var a=Xn(e,n),o=a.length===1&&a[0]instanceof B&&Wn.has(a[0].type)?a[0]:new B(`mrow`,a),s=new B(`annotation`,[new Vn(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new B(`math`,[new B(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),I([i?`katex`:`katex-mathml`],[c])}var er=[[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]],tr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],nr=function(e,t){return t.size<2?e:er[e-1][t.size-1]},rr=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=tr[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:nr(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:tr[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=nr(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}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===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=ut(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};rr.BASESIZE=6;var ir=function(e){return new rr({style:e.displayMode?w.DISPLAY:w.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},ar=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=I(n,[e])}return e},or=function(e,t,n){var r=ir(n),i;return n.output===`mathml`?$n(e,t,r,n.displayMode,!0):(i=n.output===`html`?I([`katex`],[zn(e,r)]):I([`katex`],[$n(e,t,r,n.displayMode,!1),zn(e,r)]),ar(i,n))},sr=function(e,t,n){return ar(I([`katex`],[zn(e,ir(n))]),n)},cr={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},lr=function(e){var t=new B(`mo`,[new Vn(cr[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},ur={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},dr=/* @__PURE__ */ new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),fr=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(dr.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:on([],[new Qe([new $e(o)],{width:`100%`,height:T(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var l=[],u=ur[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var[d,f,p]=u,m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
252
+ `+h+` children.`);for(var v=0;v<h;v++){var y=new Qe([new $e(d[v])],{width:`400em`,height:T(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=on([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=T(m),l.push(b)}return{span:I([`stretchy`],l,t),minWidth:f,height:m}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=T(a),i>0&&(r.style.minWidth=T(i)),r},pr=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=I([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new et({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new et({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=on([],[new Qe(c,{width:`100%`,height:T(o)})],i)}return a.height=o,a.style.height=T(o),a},mr={bin:1,close:1,inner:1,open:1,punct:1,rel:1},hr={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function gr(e){return e in mr}function V(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function _r(e){var t=vr(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function vr(e){return e&&(e.type===`atom`||hr.hasOwnProperty(e.type))?e:null}var yr=e=>{if(e instanceof Ze)return e;if(rt(e)&&e.children.length===1)return yr(e.children[0])},br=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=V(e.base,`accent`),n=r.base,e.base=n,i=nt(z(e,t)),e.base=r):(r=V(e,`accent`),n=r.base);var a=z(n,t.havingCrampedStyle()),o=r.isShifty&&y(n),s=0;o&&(s=yr(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=fr(r,t),u=L({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+T(2*s)+`)`,marginLeft:T(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=gn(`vec`,t),f=hn.vec[1]):(d=tn({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=tt(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=I([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=T(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=L({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=I([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},xr=(e,t)=>{var n=e.isStretchy?lr(e.label):new B(`mo`,[Gn(e.label,e.mode)]),r=new B(`mover`,[Qn(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},Sr=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));R({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=En(t[0]),r=!Sr.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:br,mathmlBuilder:xr}),R({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:br,mathmlBuilder:xr}),R({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=z(e.base,t),r=fr(e,t),i=e.label===`\\utilde`?.12:0;return I([`mord`,`accentunder`],[L({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=lr(e.label),r=new B(`munder`,[Qn(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var Cr=e=>{var t=new B(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};R({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=un(z(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=un(z(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=fr(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=L({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=L({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return I([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=lr(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=Cr(Qn(e.body,t));r=e.below?new B(`munderover`,[n,Cr(Qn(e.below,t)),i]):new B(`mover`,[n,i])}else e.below?r=new B(`munder`,[n,Cr(Qn(e.below,t))]):(r=Cr(),r=new B(`mover`,[n,r]));return r}});function wr(e,t){var n=Mn(e.body,t,!0);return I([e.mclass],n,t)}function Tr(e,t){var n,r=Xn(e.body,t);return e.mclass===`minner`?n=new B(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new B(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new B(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}R({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:Dn(i),isCharacterBox:y(i)}},htmlBuilder:wr,mathmlBuilder:Tr});var Er=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};R({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:Er(t[0]),body:Dn(t[1]),isCharacterBox:y(t[1])}}}),R({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:Er(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Dn(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:y(c)}},htmlBuilder:wr,mathmlBuilder:Tr}),R({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:Er(t[0]),body:Dn(t[0])}},htmlBuilder(e,t){var n=Mn(e.body,t,!0),r=I([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new B(`mstyle`,Xn(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var Dr={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},Or=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),kr=e=>e.type===`textord`&&e.text===`@`,Ar=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function jr(e,t,n){var r=Dr[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function Mr(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new d(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=Or(),c=0;c<o.length;c++)if(!kr(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=_r(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l)){if(`<>AV`.includes(l))for(var f=0;f<2;f++){for(var p=!0,m=c+1;m<o.length;m++){if(Ar(o[m],l)){p=!1,c=m;break}if(kr(o[m]))throw new d(`Missing a `+l+` character to complete a CD arrow.`,o[m]);u[f].body.push(o[m])}if(p)throw new d(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new d(`Expected one of "<>AV=|." after @`,o[c])}var h={type:`styling`,body:[jr(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(h),s=Or()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}R({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=un(z(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=T(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new B(`mrow`,[Qn(e.label,t)]);return n=new B(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new B(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),R({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=un(z(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new B(`mrow`,[Qn(e.fragment,t)])}}),R({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=V(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=V(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new d(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new d(`\\@char with invalid code point `+i);return s<=65535?c=String.fromCharCode(s):(s-=65536,c=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:c}}});var Nr=(e,t)=>ln(Mn(e.body,t.withColor(e.color),!1)),Pr=(e,t)=>{var n=new B(`mstyle`,Xn(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};R({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=V(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Dn(i)}},htmlBuilder:Nr,mathmlBuilder:Pr}),R({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=V(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:Nr,mathmlBuilder:Pr}),R({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&V(i,`size`).value}},htmlBuilder(e,t){var n=I([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=T(Be(e.size,t)))),n},mathmlBuilder(e,t){var n=new B(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,T(Be(e.size,t)))),n}});var Fr={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},Ir=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new d(`Expected a control sequence`,e);return t},Lr=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},Rr=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};R({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Fr[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=Fr[r.text]),V(t.parseFunction(),`internal`);throw new d(`Invalid token after macro prefix`,r)}}),R({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new d(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new d(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new d(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new d(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===Fr[n]),{type:`internal`,mode:t.mode}}}),R({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Ir(t.gullet.popToken());return t.gullet.consumeSpaces(),Rr(t,r,Lr(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),R({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Ir(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Rr(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var zr=function(e,t,n){var r=ct(dt.math[e]&&dt.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Br=function(e,t,n,r){var i=n.havingBaseStyle(t),a=I(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},Vr=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=T(i),e.height-=i,e.depth+=i},Hr=function(e,t,n,r,i,a){var o=Br(Qt(e,`Main-Regular`,i,r),t,r,a);return n&&Vr(o,r,t),o},Ur=function(e,t,n,r){return Qt(e,`Size`+t+`-Regular`,n,r)},Wr=function(e,t,n,r,i,a){var o=Ur(e,t,i,r),s=Br(I([`delimsizing`,`size`+t],[o],r),w.TEXT,r,a);return n&&Vr(s,r,w.TEXT),s},Gr=function(e,t,n){return{type:`elem`,elem:I([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[I([],[Qt(e,t,n)])])}},Kr=function(e,t,n){var r=it[`Size4-Regular`][e.charCodeAt(0)]?it[`Size4-Regular`][e.charCodeAt(0)][4]:it[`Size1-Regular`][e.charCodeAt(0)][4],i=on([],[new Qe([new $e(`inner`,Me(e,Math.round(1e3*t)))],{width:T(r),height:T(t),style:`width:`+T(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=T(t),i.style.width=T(r),{type:`elem`,elem:i}},qr=.008,Jr={type:`kern`,size:-1*qr},Yr=/* @__PURE__ */ new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Xr=/* @__PURE__ */ new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Zr=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):Yr.has(e)?(c=`∣`,u=`vert`,d=333):Xr.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=zr(o,f,i),m=p.height+p.depth,h=zr(c,f,i),g=h.height+h.depth,_=zr(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=zr(s,f,i);y=x.height+x.depth,b=2}var ee=m+v+y,S=ee+Math.max(0,Math.ceil((t-ee)/(b*g)))*b*g,te=r.fontMetrics().axisHeight;n&&(te*=r.sizeMultiplier);var ne=S/2-te,C=[];if(u.length>0){var re=S-m-v,ie=Math.round(S*1e3),ae=Pe(u,Math.round(re*1e3)),oe=new $e(u,ae),se=T(d/1e3),ce=T(ie/1e3),le=on([],[new Qe([oe],{width:se,height:ce,viewBox:`0 0 `+d+` `+ie})],r);le.height=ie/1e3,le.style.width=se,le.style.height=ce,C.push({type:`elem`,elem:le})}else{if(C.push(Gr(l,f,i)),C.push(Jr),s===null){var ue=S-m-v+2*qr;C.push(Kr(c,ue,r))}else{var de=(S-m-v-y)/2+2*qr;C.push(Kr(c,de,r)),C.push(Jr),C.push(Gr(s,f,i)),C.push(Jr),C.push(Kr(c,de,r))}C.push(Jr),C.push(Gr(o,f,i))}var fe=r.havingBaseStyle(w.TEXT);return Br(I([`delimsizing`,`mult`],[L({positionType:`bottom`,positionData:ne,children:C})],fe),w.TEXT,r,a)},Qr=80,$r=.08,ei=function(e,t,n,r,i){return on([`hide-tail`],[new Qe([new $e(e,je(e,r,n))],{width:`400em`,height:T(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},ti=function(e,t){var n=t.havingBaseSizing(),r=di(`\\surd`,e*n.sizeMultiplier,li,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+Qr,e<1?i=1:e<1.4&&(i=.7),s=(1+a+$r)/i,c=(1+a)/i,o=ei(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+Qr)*ai[r.size],c=(ai[r.size]+a)/i,s=(ai[r.size]+a+$r)/i,o=ei(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+$r,c=e+a,l=Math.floor(1e3*e+a)+Qr,o=ei(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=T(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},ni=/* @__PURE__ */ new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),ri=/* @__PURE__ */ new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),ii=/* @__PURE__ */ new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),ai=[0,1.2,1.8,2.4,3],oi=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),ni.has(e)||ii.has(e))return Wr(e,t,!1,n,r,i);if(ri.has(e))return Zr(e,ai[t],!1,n,r,i);throw new d(`Illegal delimiter: '`+e+`'`)},si=[{type:`small`,style:w.SCRIPTSCRIPT},{type:`small`,style:w.SCRIPT},{type:`small`,style:w.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],ci=[{type:`small`,style:w.SCRIPTSCRIPT},{type:`small`,style:w.SCRIPT},{type:`small`,style:w.TEXT},{type:`stack`}],li=[{type:`small`,style:w.SCRIPTSCRIPT},{type:`small`,style:w.SCRIPT},{type:`small`,style:w.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],ui=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`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},di=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=zr(e,ui(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},fi=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=ii.has(e)?si:ni.has(e)?li:ci,s=di(e,t,o,r);return s.type===`small`?Hr(e,s.style,n,r,i,a):s.type===`large`?Wr(e,s.size,n,r,i,a):Zr(e,t,n,r,i,a)},pi=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return fi(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},mi={"\\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}},hi=/* @__PURE__ */ new Set(/* @__PURE__ */ `(,\\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,.`.split(`,`));function gi(e){return`isMiddle`in e}function _i(e,t){var n=vr(e);if(n&&hi.has(n.text))return n;throw n?new d(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new d(`Invalid delimiter type '`+e.type+`'`,e)}R({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=_i(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:mi[e.funcName].size,mclass:mi[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?I([e.mclass]):oi(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(Gn(e.delim,e.mode));var n=new B(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=T(ai[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function vi(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}R({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new d(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:_i(t[0],e).text,color:n}}}),R({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=_i(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=V(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{vi(e);for(var n=Mn(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];gi(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?Ln(t,[`mopen`]):pi(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(gi(u)){var d=u.isMiddle;n[l]=pi(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=Ln(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=pi(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),I([`minner`],n,t)},mathmlBuilder:(e,t)=>{vi(e);var n=Xn(e.body,t);if(e.left!==`.`){var r=new B(`mo`,[Gn(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new B(`mo`,[Gn(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return Kn(n)}}),R({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=_i(t[0],e);if(!e.parser.leftrightDepth)throw new d(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=Ln(t,[]):(n=oi(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new B(`mo`,[e.delim===`\\vert`||e.delim===`|`?Gn(`|`,`text`):Gn(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var yi=(e,t)=>{var n=un(z(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=y(e.body);if(r===`sout`)a=I([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=Be({number:.6,unit:`pt`},t),l=Be({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=T(d/2+c);var f=Math.floor(1e3*d*i);a=on([`hide-tail`],[new Qe([new $e(`phase`,ke(f))],{width:`400em`,height:T(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=T(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=pr(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=T(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=T(h),a.style.borderRightWidth=T(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=L({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=L({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?I([`mord`,`cancel-lap`],[g],t):I([`mord`],[g],t)},bi=(e,t)=>{var n,r=new B(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Qn(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+T(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};R({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=V(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:yi,mathmlBuilder:bi}),R({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=V(t[0],`color-token`).color,o=V(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:yi,mathmlBuilder:bi}),R({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),R({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:yi,mathmlBuilder:bi}),R({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:yi,mathmlBuilder:bi}),R({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var xi={};function Si(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)xi[n[c]]=s;a&&(Cn[t]=a),o&&(wn[t]=o)}var Ci={};function H(e,t){Ci[e]=t}var wi=class e{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(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},Ti=class e{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(t,n){return new e(n,wi.range(this,t))}};function Ei(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var Di=e=>{if(!e.parser.settings.displayMode)throw new d(`{`+e.envName+`} can be used only in display mode.`)},Oi=/* @__PURE__ */ new Set([`gather`,`gather*`]);function ki(e){if(!e.includes(`ed`))return!e.includes(`*`)}function Ai(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:f,leqno:p}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var m=e.gullet.expandMacroAsText(`\\arraystretch`);if(m==null)o=1;else if(o=parseFloat(m),!o||o<0)throw new d(`Invalid \\arraystretch: `+m)}e.gullet.beginGroup();var h=[],g=[h],_=[],v=[],y=c==null?void 0:[];function b(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function x(){y&&(e.gullet.macros.get(`\\df@tag`)?(y.push(e.subparse([new Ti(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):y.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(b(),v.push(Ei(e));;){var ee=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:ee};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),h.push(S);var te=e.fetch().text;if(te===`&`){if(f&&h.length===f){if(l||s)throw new d(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(te===`\\end`){x(),h.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(g.length>1||!u)&&g.pop(),v.length<g.length+1&&v.push([]);break}else if(te===`\\\\`){e.consume();var ne=void 0;e.gullet.future().text!==` `&&(ne=e.parseSizeGroup(!0)),_.push(ne?ne.value:null),x(),v.push(Ei(e)),h=[],g.push(h),b()}else throw new d(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:g,cols:a,rowGaps:_,hskipBeforeAndAfter:r,hLinesBeforeRow:v,colSeparationType:s,tags:y,leqno:p}}function ji(e){return e.slice(0,1)===`d`?`display`:`text`}var Mi=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,f=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(f=.2778*(t.havingStyle(w.SCRIPT).sizeMultiplier/t.sizeMultiplier));var p=e.colSeparationType===`CD`?Be({number:3,unit:`ex`},t):12*u,m=3*u,h=e.arraystretch*p,g=.7*h,_=.3*h,v=0;function y(e){for(var t=0;t<e.length;++t)t>0&&(v+=.25),c.push({pos:v,isDashed:e[t]})}for(y(a[0]),n=0;n<e.body.length;++n){var b=e.body[n],x=g,ee=_;o<b.length&&(o=b.length);var S={cells:Array(b.length),height:0,depth:0,pos:0};for(r=0;r<b.length;++r){var te=z(b[r],t);ee<te.depth&&(ee=te.depth),x<te.height&&(x=te.height),S.cells[r]=te}var ne=e.rowGaps[n],C=0;ne&&(C=Be(ne,t),C>0&&(C+=_,ee<C&&(ee=C),C=0)),e.addJot&&n<e.body.length-1&&(ee+=m),S.height=x,S.depth=ee,v+=x,S.pos=v,v+=ee+C,s[n]=S,y(a[n+1])}var re=v/2+t.fontMetrics().axisHeight,ie=e.cols||[],ae=[],oe,se,ce=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var le=s[n],ue=le.pos-re,de=e.tags[n],fe=void 0;fe=de===!0?I([`eqn-num`],[],t):de===!1?I([],[],t):I([],Mn(de,t,!0),t),fe.depth=le.depth,fe.height=le.height,ce.push({type:`elem`,elem:fe,shift:ue})}for(r=0,se=0;r<o||se<ie.length;++r,++se){for(var pe=ie[se],me=!0;(he=pe)?.type===`separator`;){var he;if(me||(oe=I([`arraycolsep`],[]),oe.style.width=T(t.fontMetrics().doubleRuleSep),ae.push(oe)),pe.separator===`|`||pe.separator===`:`){var ge=pe.separator===`|`?`solid`:`dashed`,_e=I([`vertical-separator`],[],t);_e.style.height=T(v),_e.style.borderRightWidth=T(l),_e.style.borderRightStyle=ge,_e.style.margin=`0 `+T(-l/2);var ve=v-re;ve&&(_e.style.verticalAlign=T(-ve)),ae.push(_e)}else throw new d(`Invalid separator type: `+pe.separator);se++,pe=ie[se],me=!1}if(!(r>=o)){var ye=void 0;(r>0||e.hskipBeforeAndAfter)&&(ye=pe?.pregap??f,ye!==0&&(oe=I([`arraycolsep`],[]),oe.style.width=T(ye),ae.push(oe)));var be=[];for(n=0;n<i;++n){var xe=s[n],Se=xe.cells[r];if(Se){var Ce=xe.pos-re;Se.depth=xe.depth,Se.height=xe.height,be.push({type:`elem`,elem:Se,shift:Ce})}}var we=L({positionType:`individualShift`,children:be}),Te=I([`col-align-`+(pe?.align||`c`)],[we]);ae.push(Te),(r<o-1||e.hskipBeforeAndAfter)&&(ye=pe?.postgap??f,ye!==0&&(oe=I([`arraycolsep`],[]),oe.style.width=T(ye),ae.push(oe)))}}var Ee=I([`mtable`],ae);if(c.length>0){for(var De=sn(`hline`,t,l),Oe=sn(`hdashline`,t,l),ke=[{type:`elem`,elem:Ee,shift:0}];c.length>0;){var Ae=c.pop(),je=Ae.pos-re;Ae.isDashed?ke.push({type:`elem`,elem:Oe,shift:je}):ke.push({type:`elem`,elem:De,shift:je})}Ee=L({positionType:`individualShift`,children:ke})}if(ce.length===0)return I([`mord`],[Ee],t);var Me=I([`tag`],[L({positionType:`individualShift`,children:ce})],t);return ln([Ee,Me])},Ni={c:`center `,l:`left `,r:`right `},Pi=function(e,t){for(var n=[],r=new B(`mtd`,[],[`mtr-glue`]),i=new B(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new B(`mtd`,[Qn(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new B(`mtr`,s))}var l=new B(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,T(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=Ni[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,ee=1;ee<b.length;ee++)x+=ee%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var S=``,te=e.hLinesBeforeRow;d+=te[0].length>0?`left `:``,d+=te[te.length-1].length>0?`right `:``;for(var ne=1;ne<te.length-1;ne++)S+=te[ne].length===0?`none `:te[ne][0]?`dashed `:`solid `;return/[sd]/.test(S)&&l.setAttribute(`rowlines`,S.trim()),d!==``&&(l=new B(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new B(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},Fi=function(e,t){e.envName.includes(`ed`)||Di(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=Ai(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:ki(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o=0,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u<t[0].body.length;u++){var f=V(t[0].body[u],`textord`);l+=f.text}o=Number(l),s=o*2}var p=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2)V(V(e[t],`styling`).body[0],`ordgroup`).body.unshift(c);if(p)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new d(`Too many math in a row: `+(`expected `+o+`, but got `+n),e[0])}});for(var m=0;m<s;++m){var h=`r`,g=0;m%2==1?h=`l`:m>0&&p&&(g=1),n[m]={type:`align`,align:h,pregap:g,postgap:0}}return a.colSeparationType=p?`align`:`alignat`,a};Si({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(vr(t[0])?[t[0]]:V(t[0],`ordgroup`).body).map(function(e){var t=_r(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new d(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Ai(e.parser,r,ji(e.envName))},htmlBuilder:Mi,mathmlBuilder:Pi}),Si({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new d(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=Ai(e.parser,r,ji(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Mi,mathmlBuilder:Pi}),Si({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=Ai(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Mi,mathmlBuilder:Pi}),Si({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(vr(t[0])?[t[0]]:V(t[0],`ordgroup`).body).map(function(e){var t=_r(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new d(`Unknown column alignment: `+t,e)});if(n.length>1)throw new d(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=Ai(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new d(`{subarray} can contain only one column`);return i},htmlBuilder:Mi,mathmlBuilder:Pi}),Si({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=Ai(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},ji(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Mi,mathmlBuilder:Pi}),Si({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Fi,htmlBuilder:Mi,mathmlBuilder:Pi}),Si({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){Oi.has(e.envName)&&Di(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:ki(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Ai(e.parser,t,`display`)},htmlBuilder:Mi,mathmlBuilder:Pi}),Si({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Fi,htmlBuilder:Mi,mathmlBuilder:Pi}),Si({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){Di(e);var t={autoTag:ki(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Ai(e.parser,t,`display`)},htmlBuilder:Mi,mathmlBuilder:Pi}),Si({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return Di(e),Mr(e.parser)},htmlBuilder:Mi,mathmlBuilder:Pi}),H(`\\nonumber`,`\\gdef\\@eqnsw{0}`),H(`\\notag`,`\\nonumber`),R({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new d(e.funcName+` valid only within array environment`)}});var Ii=xi;R({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new d(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=V(i.body[o],`textord`).text;if(r===`\\begin`){if(!Ii.hasOwnProperty(a))throw new d(`No such environment: `+a,i);var s=Ii[a],{args:c,optArgs:l}=n.parseArguments(`\\begin{`+a+`}`,s),u={mode:n.mode,envName:a,parser:n},f=s.handler(u,c,l);n.expect(`\\end`,!1);var p=n.nextToken,m=V(n.parseFunction(),`environment`);if(m.name!==a)throw new d(`Mismatch: \\begin{`+a+`} matched by \\end{`+m.name+`}`,p);return f}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var Li=(e,t)=>{var n=e.font,r=t.withFont(n);return z(e.body,r)},Ri=(e,t)=>{var n=e.font,r=t.withFont(n);return Qn(e.body,r)},zi={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};R({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=En(t[0]),a=r;return a in zi&&(a=zi[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Li,mathmlBuilder:Ri}),R({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:Er(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:y(r)}}}),R({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:Li,mathmlBuilder:Ri});var Bi=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=z(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=z(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=Be(e.barSize,t),u=sn(`frac-line`,t,d)):u=sn(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===w.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=L({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=L({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===w.DISPLAY.size?t.fontMetrics().delim1:n.size===w.SCRIPTSCRIPT.size?t.havingStyle(w.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?Ln(t,[`mopen`]):fi(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),ee=e.continued?I([]):e.rightDelim==null?Ln(t,[`mclose`]):fi(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return I([`mord`].concat(a.sizingClasses(t)),[x,I([`mfrac`],[g]),ee],t)},Vi=(e,t)=>{var n=new B(`mfrac`,[Qn(e.numer,t),Qn(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Be(e.barSize,t);n.setAttribute(`linethickness`,T(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new B(`mo`,[new Vn(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new B(`mo`,[new Vn(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return Kn(i)}return n},Hi=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;R({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),Hi({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:Bi,mathmlBuilder:Vi}),R({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var Ui=[`display`,`text`,`script`,`scriptscript`],Wi=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};R({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=En(t[0]),o=a.type===`atom`&&a.family===`open`?Wi(a.text):null,s=En(t[1]),c=s.type===`atom`&&s.family===`close`?Wi(s.text):null,l=V(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=V(p.body[0],`textord`);f=Ui[Number(m.text)]}}else p=V(p,`textord`),f=Ui[Number(p.text)];return Hi({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),R({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:V(t[0],`size`).value,token:i}}}),R({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=V(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var Gi=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?z(e.sup,t.havingStyle(n.sup()),t):z(e.sub,t.havingStyle(n.sub()),t),i=V(e.base,`horizBrace`)):i=V(e,`horizBrace`);var a=z(i.base,t.havingBaseStyle(w.DISPLAY)),o=fr(i,t),s=i.isOver?L({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):L({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=I([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?L({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):L({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return I([`minner`,i.isOver?`mover`:`munder`],[s],t)};R({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:Gi,mathmlBuilder:(e,t)=>{var n=lr(e.label);return new B(e.isOver?`mover`:`munder`,[Qn(e.base,t),n])}}),R({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=V(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Dn(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=Mn(e.body,t,!1);return cn(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Zn(e.body,t);return n instanceof B||(n=new B(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),R({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=V(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:Dn(s)}}}),R({type:`hbox`,names:[`\\hbox`],props:{numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:`hbox`,mode:n.mode,body:Dn(t[0])}},htmlBuilder(e,t){return ln(Mn(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new B(`mrow`,Xn(e.body,t.withFont(``)))}}),R({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],props:{numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=V(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u<l.length;u++){var f=l[u],p=f.indexOf(`=`);if(p<0)throw new d(`\\htmlData key/value '`+f+`' missing equals sign`);var m=f.slice(0,p),h=f.slice(p+1);c[`data-`+m.trim()]=h}s={command:`\\htmlData`,attributes:c};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(s)?{type:`html`,mode:n.mode,attributes:c,body:Dn(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Mn(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=I(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Zn(e.body,t)}),R({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:Dn(t[0]),mathml:Dn(t[1])}},htmlBuilder:(e,t)=>ln(Mn(e.html,t,!1)),mathmlBuilder:(e,t)=>Zn(e.mathml,t)});var Ki=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 d(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!ze(n))throw new d(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};R({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=V(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var f=u[1].trim();switch(u[0].trim()){case`alt`:s=f;break;case`width`:i=Ki(f);break;case`height`:a=Ki(f);break;case`totalheight`:o=Ki(f);break;default:throw new d(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var p=V(t[0],`url`).url;return s===``&&(s=p,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:p})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:p}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=Be(e.height,t),r=0;e.totalheight.number>0&&(r=Be(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Be(e.width,t));var a={height:T(n+r)};i>0&&(a.width=T(i)),r>0&&(a.verticalAlign=T(-r));var o=new Ye(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new B(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Be(e.height,t),i=0;if(e.totalheight.number>0&&(i=Be(e.totalheight,t)-r,n.setAttribute(`valign`,T(-i))),n.setAttribute(`height`,T(r+i)),e.width.number>0){var a=Be(e.width,t);n.setAttribute(`width`,T(a))}return n.setAttribute(`src`,e.src),n}}),R({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=V(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return fn(e.dimension,t)},mathmlBuilder(e,t){return new Hn(Be(e.dimension,t))}}),R({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=I([],[z(e.body,t)]),n=I([`inner`],[n],t)):n=I([`inner`],[z(e.body,t)]);var r=I([`fix`],[]),i=I([e.alignment],[n,r],t),a=I([`strut`]);return a.style.height=T(i.height+i.depth),i.depth&&(a.style.verticalAlign=T(-i.depth)),i.children.unshift(a),i=I([`thinbox`],[i],t),I([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new B(`mpadded`,[Qn(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),R({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),R({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new d(`Mismatched `+e.funcName)}});var qi=(e,t)=>{switch(t.style.size){case w.DISPLAY.size:return e.display;case w.TEXT.size:return e.text;case w.SCRIPT.size:return e.script;case w.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};R({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:Dn(t[0]),text:Dn(t[1]),script:Dn(t[2]),scriptscript:Dn(t[3])}},htmlBuilder:(e,t)=>ln(Mn(qi(e,t),t,!1)),mathmlBuilder:(e,t)=>Zn(qi(e,t),t)});var Ji=(e,t,n,r,i,a,o)=>{e=I([],[e]);var s=n&&y(n),c,l;if(t){var u=z(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=z(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=L({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:T(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:T(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=L({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:T(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=L({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:T(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=I([`mspace`],[],r);m.style.marginRight=T(a),p.unshift(m)}return I([`mop`,`op-limits`],p,r)},Yi=/* @__PURE__ */ new Set([`\\smallint`]),Xi=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=V(e.base,`op`),i=!0):a=V(e,`op`);var o=t.style,s=!1;o.size===w.DISPLAY.size&&a.symbol&&!Yi.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=Qt(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=gn(d+`Size`+(s?`2`:`1`),t);c=L({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=Mn(a.body,t,!0);p.length===1&&p[0]instanceof Ze?(c=p[0],c.classes[0]=`mop`):c=I([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push($t(a.name[h],a.mode,t));c=I([`mop`],m,t)}var g=0,_=0;return(c instanceof Ze||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?Ji(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=T(g)),c)},Zi=(e,t)=>{var n;if(e.symbol)n=new B(`mo`,[Gn(e.name,e.mode)]),Yi.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new B(`mo`,Xn(e.body,t));else{n=new B(`mi`,[new Vn(e.name.slice(1))]);var r=new B(`mo`,[Gn(`⁡`,`text`)]);n=e.parentIsSupSub?new B(`mrow`,[n,r]):Bn([n,r])}return n},Qi={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};R({type:`op`,names:/* @__PURE__ */ `\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Qi[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Xi,mathmlBuilder:Zi}),R({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Dn(r)}},htmlBuilder:Xi,mathmlBuilder:Zi});var $i={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};R({type:`op`,names:/* @__PURE__ */ `\\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`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Xi,mathmlBuilder:Zi}),R({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Xi,mathmlBuilder:Zi}),R({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=$i[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Xi,mathmlBuilder:Zi});var ea=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=V(e.base,`operatorname`),i=!0):a=V(e,`operatorname`);var o;if(a.body.length>0){for(var s=Mn(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof Ze&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=I([`mop`],s,t)}else o=I([`mop`],[],t);return i?Ji(o,n,r,t,t.style,0,0):o};R({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:Dn(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:ea,mathmlBuilder:(e,t)=>{for(var n=Xn(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof Hn)){if(a instanceof B)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof Vn?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}}r&&(n=[new Vn(n.map(e=>e.toText()).join(``))]);var s=new B(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new B(`mo`,[Gn(`⁡`,`text`)]);return e.parentIsSupSub?new B(`mrow`,[s,c]):Bn([s,c])}}),H(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Tn({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?ln(Mn(e.body,t,!1)):I([`mord`],Mn(e.body,t,!0),t)},mathmlBuilder(e,t){return Zn(e.body,t,!0)}}),R({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=z(e.body,t.havingCrampedStyle()),r=sn(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return I([`mord`,`overline`],[L({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new B(`mo`,[new Vn(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new B(`mover`,[Qn(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),R({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:Dn(r)}},htmlBuilder:(e,t)=>ln(Mn(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new B(`mphantom`,Xn(e.body,t))}),H(`\\hphantom`,`\\smash{\\phantom{#1}}`),R({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>I([`mord`,`rlap`],[I([`inner`],[z(e.body,t.withPhantom())]),I([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new B(`mpadded`,[new B(`mphantom`,Xn(Dn(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),R({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=V(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=z(e.body,t);return L({positionType:`shift`,positionData:-Be(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new B(`mpadded`,[Qn(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),R({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),R({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=V(t[0],`size`),o=V(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&V(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=I([`mord`,`rule`],[],t),r=Be(e.width,t),i=Be(e.height,t),a=e.shift?Be(e.shift,t):0;return n.style.borderRightWidth=T(r),n.style.borderTopWidth=T(i),n.style.bottom=T(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Be(e.width,t),r=Be(e.height,t),i=e.shift?Be(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new B(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,T(n)),o.setAttribute(`height`,T(r));var s=new B(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,T(i)):(s.setAttribute(`height`,T(i)),s.setAttribute(`depth`,T(-i))),s.setAttribute(`voffset`,T(i)),s}});function ta(e,t,n){for(var r=Mn(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return ln(r)}var na=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];R({type:`sizing`,names:na,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:na.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return ta(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new B(`mstyle`,Xn(e.body,n));return r.setAttribute(`mathsize`,T(n.sizeMultiplier)),r}}),R({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&V(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=_r(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=I([],[z(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return I([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return I([`mord`],[L({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new B(`mpadded`,[Qn(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),R({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=z(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=un(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<w.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=ti(n.height+n.depth+a+r,t),l=o.height-s;l>n.height+n.depth+a&&(a=(a+l-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=T(c);var d=L({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+u)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var f=t.havingStyle(w.SCRIPTSCRIPT),p=z(e.index,f,t);return I([`mord`,`sqrt`],[I([`root`],[L({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}return I([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new B(`mroot`,[Qn(n,t),Qn(r,t)]):new B(`msqrt`,[Qn(n,t)])}});var ra={display:w.DISPLAY,text:w.TEXT,script:w.SCRIPT,scriptscript:w.SCRIPTSCRIPT};function ia(e){return e in ra}R({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!ia(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=ra[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),ta(e.body,r,t)},mathmlBuilder(e,t){var n=ra[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new B(`mstyle`,Xn(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var aa=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===w.DISPLAY.size||n.alwaysHandleSupSub)?Xi:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===w.DISPLAY.size||n.limits)?ea:null:n.type===`accent`?y(n.base)?br:null:n.type===`horizBrace`&&!e.sub===n.isOver?Gi:null:null};Tn({type:`supsub`,htmlBuilder(e,t){var n=aa(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=z(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&y(r);if(i){var p=t.havingStyle(t.style.sup());s=z(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=z(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===w.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=T(.5/l.ptPerEm/g),v=null;if(c){var b=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof Ze||b)&&(v=T(-(o.italic??0)))}var x;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var ee=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<ee){d=ee-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}x=L({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),x=L({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),x=L({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return I([In(o,`right`)||`mord`],[o,I([`msupsub`],[x])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Qn(e.base,t)];e.sub&&a.push(Qn(e.sub,t)),e.sup&&a.push(Qn(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===w.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===w.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===w.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===w.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===w.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===w.DISPLAY)?`munder`:`msub`}return new B(o,a)}}),Tn({type:`atom`,htmlBuilder(e,t){return $t(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new B(`mo`,[Gn(e.text,e.mode)]);if(e.family===`bin`){var r=Jn(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var oa={mi:`italic`,mn:`normal`,mtext:`normal`};Tn({type:`mathord`,htmlBuilder(e,t){return tn(e,t,`mathord`)},mathmlBuilder(e,t){var n=new B(`mi`,[Gn(e.text,e.mode,t)]),r=Jn(e,t)||`italic`;return r!==oa[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Tn({type:`textord`,htmlBuilder(e,t){return tn(e,t,`textord`)},mathmlBuilder(e,t){var n=Gn(e.text,e.mode,t),r=Jn(e,t)||`normal`,i=e.mode===`text`?new B(`mtext`,[n]):/[0-9]/.test(e.text)?new B(`mn`,[n]):e.text===`\\prime`?new B(`mo`,[n]):new B(`mi`,[n]);return r!==oa[i.type]&&i.setAttribute(`mathvariant`,r),i}});var sa={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},ca={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};Tn({type:`spacing`,htmlBuilder(e,t){if(ca.hasOwnProperty(e.text)){var n=ca[e.text].className||``;if(e.mode===`text`){var r=tn(e,t,`textord`);return r.classes.push(n),r}return I([`mspace`,n],[$t(e.text,e.mode,t)],t)}if(sa.hasOwnProperty(e.text))return I([`mspace`,sa[e.text]],[],t);throw new d(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(ca.hasOwnProperty(e.text))n=new B(`mtext`,[new Vn(`\xA0`)]);else if(sa.hasOwnProperty(e.text))return new B(`mspace`);else throw new d(`Unknown type of space "`+e.text+`"`);return n}});var la=()=>{var e=new B(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};Tn({type:`tag`,mathmlBuilder(e,t){var n=new B(`mtable`,[new B(`mtr`,[la(),new B(`mtd`,[Zn(e.body,t)]),la(),new B(`mtd`,[Zn(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var ua={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},da={"\\textbf":`textbf`,"\\textmd":`textmd`},fa={"\\textit":`textit`,"\\textup":`textup`},pa=(e,t)=>{var n=e.font;return n?ua[n]?t.withTextFontFamily(ua[n]):da[n]?t.withTextFontWeight(da[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(fa[n]):t};R({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:Dn(i),font:r}},htmlBuilder(e,t){var n=pa(e,t);return I([`mord`,`text`],Mn(e.body,n,!0),n)},mathmlBuilder(e,t){var n=pa(e,t);return Zn(e.body,n)}}),R({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=z(e.body,t),r=sn(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return I([`mord`,`underline`],[L({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new B(`mo`,[new Vn(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new B(`munder`,[Qn(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),R({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=z(e.body,t),r=t.fontMetrics().axisHeight;return L({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new B(`mrow`,[new B(`mpadded`,[Qn(e.body,t)],[`vcenter`])])}}),R({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new d(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=ma(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(Qt(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return I([`mord`,`text`].concat(i.sizingClasses(t)),rn(r),i)},mathmlBuilder(e,t){var n=new B(`mtext`,[new Vn(ma(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var ma=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),ha=Sn,ga=`[ \r
253
+ ]`,_a=`\\\\[a-zA-Z@]+`,va=`\\\\[^\ud800-\udfff]`,ya=`(`+_a+`)`+ga+`*`,ba=`\\\\(
254
+ |[ \r ]+
255
+ ?)[ \r ]*`,xa=`[̀-ͯ]`,Sa=RegExp(xa+`+$`),Ca=`(`+ga+`+)|`+(ba+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(xa+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(xa+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+ya)+(`|`+va+`)`),wa=class{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(Ca,`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 Ti(`EOF`,new wi(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new d(`Unexpected character: '`+e[t]+`'`,new Ti(e[t],new wi(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
256
+ `,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 Ti(r,new wi(this,t,this.tokenRegex.lastIndex))}},Ta=class{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 d(`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 r=0;r<this.undefStack.length;r++)delete this.undefStack[r][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}},Ea=Ci;H(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),H(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),H(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),H(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),H(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),H(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),H(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Da={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};H(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new d("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Da[t.text],r==null||r>=n)throw new d(`Invalid base-`+n+` digit `+t.text);for(var i;(i=Da[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var Oa=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new d(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new d(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new d(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new d(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};H(`\\newcommand`,e=>Oa(e,!1,!0,!1)),H(`\\renewcommand`,e=>Oa(e,!0,!1,!1)),H(`\\providecommand`,e=>Oa(e,!0,!0,!0)),H(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),H(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),H(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),ha[n],dt.math[n],dt.text[n]),``}),H(`\\bgroup`,`{`),H(`\\egroup`,`}`),H(`~`,`\\nobreakspace`),H(`\\lq`,"`"),H(`\\rq`,`'`),H(`\\aa`,`\\r a`),H(`\\AA`,`\\r A`),H(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),H(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),H(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),H(`ℬ`,`\\mathscr{B}`),H(`ℰ`,`\\mathscr{E}`),H(`ℱ`,`\\mathscr{F}`),H(`ℋ`,`\\mathscr{H}`),H(`ℐ`,`\\mathscr{I}`),H(`ℒ`,`\\mathscr{L}`),H(`ℳ`,`\\mathscr{M}`),H(`ℛ`,`\\mathscr{R}`),H(`ℭ`,`\\mathfrak{C}`),H(`ℌ`,`\\mathfrak{H}`),H(`ℨ`,`\\mathfrak{Z}`),H(`\\Bbbk`,`\\Bbb{k}`),H(`\\llap`,`\\mathllap{\\textrm{#1}}`),H(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),H(`\\clap`,`\\mathclap{\\textrm{#1}}`),H(`\\mathstrut`,`\\vphantom{(}`),H(`\\underbar`,`\\underline{\\text{#1}}`),H(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),H(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),H(`\\ne`,`\\neq`),H(`≠`,`\\neq`),H(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),H(`∉`,`\\notin`),H(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),H(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),H(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),H(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),H(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),H(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),H(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),H(`⟂`,`\\perp`),H(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),H(`∌`,`\\notni`),H(`⌜`,`\\ulcorner`),H(`⌝`,`\\urcorner`),H(`⌞`,`\\llcorner`),H(`⌟`,`\\lrcorner`),H(`©`,`\\copyright`),H(`®`,`\\textregistered`),H(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),H(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),H(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),H(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),H(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),H(`⋮`,`\\vdots`),H(`\\varGamma`,`\\mathit{\\Gamma}`),H(`\\varDelta`,`\\mathit{\\Delta}`),H(`\\varTheta`,`\\mathit{\\Theta}`),H(`\\varLambda`,`\\mathit{\\Lambda}`),H(`\\varXi`,`\\mathit{\\Xi}`),H(`\\varPi`,`\\mathit{\\Pi}`),H(`\\varSigma`,`\\mathit{\\Sigma}`),H(`\\varUpsilon`,`\\mathit{\\Upsilon}`),H(`\\varPhi`,`\\mathit{\\Phi}`),H(`\\varPsi`,`\\mathit{\\Psi}`),H(`\\varOmega`,`\\mathit{\\Omega}`),H(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),H(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),H(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),H(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),H(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),H(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),H(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),H(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var ka={",":`\\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`},Aa=/* @__PURE__ */ new Set([`bin`,`rel`]);H(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in ka?t=ka[n]:(n.slice(0,4)===`\\not`||n in dt.math&&Aa.has(dt.math[n].group))&&(t=`\\dotsb`),t});var ja={")":!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};H(`\\dotso`,function(e){return e.future().text in ja?`\\ldots\\,`:`\\ldots`}),H(`\\dotsc`,function(e){var t=e.future().text;return t in ja&&t!==`,`?`\\ldots\\,`:`\\ldots`}),H(`\\cdots`,function(e){return e.future().text in ja?`\\@cdots\\,`:`\\@cdots`}),H(`\\dotsb`,`\\cdots`),H(`\\dotsm`,`\\cdots`),H(`\\dotsi`,`\\!\\cdots`),H(`\\dotsx`,`\\ldots\\,`),H(`\\DOTSI`,`\\relax`),H(`\\DOTSB`,`\\relax`),H(`\\DOTSX`,`\\relax`),H(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),H(`\\,`,`\\tmspace+{3mu}{.1667em}`),H(`\\thinspace`,`\\,`),H(`\\>`,`\\mskip{4mu}`),H(`\\:`,`\\tmspace+{4mu}{.2222em}`),H(`\\medspace`,`\\:`),H(`\\;`,`\\tmspace+{5mu}{.2777em}`),H(`\\thickspace`,`\\;`),H(`\\!`,`\\tmspace-{3mu}{.1667em}`),H(`\\negthinspace`,`\\!`),H(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),H(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),H(`\\enspace`,`\\kern.5em `),H(`\\enskip`,`\\hskip.5em\\relax`),H(`\\quad`,`\\hskip1em\\relax`),H(`\\qquad`,`\\hskip2em\\relax`),H(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),H(`\\tag@paren`,`\\tag@literal{({#1})}`),H(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new d(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),H(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),H(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),H(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),H(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),H(`\\newline`,`\\\\\\relax`),H(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var Ma=T(it[`Main-Regular`][84][1]-.7*it[`Main-Regular`][65][1]);H(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Ma+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),H(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Ma+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),H(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),H(`\\@hspace`,`\\hskip #1\\relax`),H(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),H(`\\ordinarycolon`,`:`),H(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),H(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),H(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),H(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),H(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),H(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),H(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),H(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),H(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),H(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),H(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),H(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),H(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),H(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),H(`∷`,`\\dblcolon`),H(`∹`,`\\eqcolon`),H(`≔`,`\\coloneqq`),H(`≕`,`\\eqqcolon`),H(`⩴`,`\\Coloneqq`),H(`\\ratio`,`\\vcentcolon`),H(`\\coloncolon`,`\\dblcolon`),H(`\\colonequals`,`\\coloneqq`),H(`\\coloncolonequals`,`\\Coloneqq`),H(`\\equalscolon`,`\\eqqcolon`),H(`\\equalscoloncolon`,`\\Eqqcolon`),H(`\\colonminus`,`\\coloneq`),H(`\\coloncolonminus`,`\\Coloneq`),H(`\\minuscolon`,`\\eqcolon`),H(`\\minuscoloncolon`,`\\Eqcolon`),H(`\\coloncolonapprox`,`\\Colonapprox`),H(`\\coloncolonsim`,`\\Colonsim`),H(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),H(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),H(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),H(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),H(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),H(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),H(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),H(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),H(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),H(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),H(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),H(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),H(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),H(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),H(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),H(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),H(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),H(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),H(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),H(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),H(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),H(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),H(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),H(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),H(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),H(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),H(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),H(`\\imath`,`\\html@mathml{\\@imath}{ı}`),H(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),H(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),H(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),H(`⟦`,`\\llbracket`),H(`⟧`,`\\rrbracket`),H(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),H(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),H(`⦃`,`\\lBrace`),H(`⦄`,`\\rBrace`),H(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),H(`⦵`,`\\minuso`),H(`\\darr`,`\\downarrow`),H(`\\dArr`,`\\Downarrow`),H(`\\Darr`,`\\Downarrow`),H(`\\lang`,`\\langle`),H(`\\rang`,`\\rangle`),H(`\\uarr`,`\\uparrow`),H(`\\uArr`,`\\Uparrow`),H(`\\Uarr`,`\\Uparrow`),H(`\\N`,`\\mathbb{N}`),H(`\\R`,`\\mathbb{R}`),H(`\\Z`,`\\mathbb{Z}`),H(`\\alef`,`\\aleph`),H(`\\alefsym`,`\\aleph`),H(`\\Alpha`,`\\mathrm{A}`),H(`\\Beta`,`\\mathrm{B}`),H(`\\bull`,`\\bullet`),H(`\\Chi`,`\\mathrm{X}`),H(`\\clubs`,`\\clubsuit`),H(`\\cnums`,`\\mathbb{C}`),H(`\\Complex`,`\\mathbb{C}`),H(`\\Dagger`,`\\ddagger`),H(`\\diamonds`,`\\diamondsuit`),H(`\\empty`,`\\emptyset`),H(`\\Epsilon`,`\\mathrm{E}`),H(`\\Eta`,`\\mathrm{H}`),H(`\\exist`,`\\exists`),H(`\\harr`,`\\leftrightarrow`),H(`\\hArr`,`\\Leftrightarrow`),H(`\\Harr`,`\\Leftrightarrow`),H(`\\hearts`,`\\heartsuit`),H(`\\image`,`\\Im`),H(`\\infin`,`\\infty`),H(`\\Iota`,`\\mathrm{I}`),H(`\\isin`,`\\in`),H(`\\Kappa`,`\\mathrm{K}`),H(`\\larr`,`\\leftarrow`),H(`\\lArr`,`\\Leftarrow`),H(`\\Larr`,`\\Leftarrow`),H(`\\lrarr`,`\\leftrightarrow`),H(`\\lrArr`,`\\Leftrightarrow`),H(`\\Lrarr`,`\\Leftrightarrow`),H(`\\Mu`,`\\mathrm{M}`),H(`\\natnums`,`\\mathbb{N}`),H(`\\Nu`,`\\mathrm{N}`),H(`\\Omicron`,`\\mathrm{O}`),H(`\\plusmn`,`\\pm`),H(`\\rarr`,`\\rightarrow`),H(`\\rArr`,`\\Rightarrow`),H(`\\Rarr`,`\\Rightarrow`),H(`\\real`,`\\Re`),H(`\\reals`,`\\mathbb{R}`),H(`\\Reals`,`\\mathbb{R}`),H(`\\Rho`,`\\mathrm{P}`),H(`\\sdot`,`\\cdot`),H(`\\sect`,`\\S`),H(`\\spades`,`\\spadesuit`),H(`\\sub`,`\\subset`),H(`\\sube`,`\\subseteq`),H(`\\supe`,`\\supseteq`),H(`\\Tau`,`\\mathrm{T}`),H(`\\thetasym`,`\\vartheta`),H(`\\weierp`,`\\wp`),H(`\\Zeta`,`\\mathrm{Z}`),H(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),H(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),H(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),H(`\\bra`,`\\mathinner{\\langle{#1}|}`),H(`\\ket`,`\\mathinner{|{#1}\\rangle}`),H(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),H(`\\Bra`,`\\left\\langle#1\\right|`),H(`\\Ket`,`\\left|#1\\right\\rangle`);var Na=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};H(`\\bra@ket`,Na(!1)),H(`\\bra@set`,Na(!0)),H(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),H(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),H(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),H(`\\angln`,`{\\angl n}`),H(`\\blue`,`\\textcolor{##6495ed}{#1}`),H(`\\orange`,`\\textcolor{##ffa500}{#1}`),H(`\\pink`,`\\textcolor{##ff00af}{#1}`),H(`\\red`,`\\textcolor{##df0030}{#1}`),H(`\\green`,`\\textcolor{##28ae7b}{#1}`),H(`\\gray`,`\\textcolor{gray}{#1}`),H(`\\purple`,`\\textcolor{##9d38bd}{#1}`),H(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),H(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),H(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),H(`\\blueD`,`\\textcolor{##11accd}{#1}`),H(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),H(`\\tealA`,`\\textcolor{##94fff5}{#1}`),H(`\\tealB`,`\\textcolor{##26edd5}{#1}`),H(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),H(`\\tealD`,`\\textcolor{##01a995}{#1}`),H(`\\tealE`,`\\textcolor{##208170}{#1}`),H(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),H(`\\greenB`,`\\textcolor{##8af281}{#1}`),H(`\\greenC`,`\\textcolor{##74cf70}{#1}`),H(`\\greenD`,`\\textcolor{##1fab54}{#1}`),H(`\\greenE`,`\\textcolor{##0d923f}{#1}`),H(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),H(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),H(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),H(`\\goldD`,`\\textcolor{##e07d10}{#1}`),H(`\\goldE`,`\\textcolor{##a75a05}{#1}`),H(`\\redA`,`\\textcolor{##fca9a9}{#1}`),H(`\\redB`,`\\textcolor{##ff8482}{#1}`),H(`\\redC`,`\\textcolor{##f9685d}{#1}`),H(`\\redD`,`\\textcolor{##e84d39}{#1}`),H(`\\redE`,`\\textcolor{##bc2612}{#1}`),H(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),H(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),H(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),H(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),H(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),H(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),H(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),H(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),H(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),H(`\\purpleE`,`\\textcolor{##543b78}{#1}`),H(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),H(`\\mintB`,`\\textcolor{##edf2df}{#1}`),H(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),H(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),H(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),H(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),H(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),H(`\\grayE`,`\\textcolor{##babec2}{#1}`),H(`\\grayF`,`\\textcolor{##888d93}{#1}`),H(`\\grayG`,`\\textcolor{##626569}{#1}`),H(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),H(`\\grayI`,`\\textcolor{##21242c}{#1}`),H(`\\kaBlue`,`\\textcolor{##314453}{#1}`),H(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var Pa={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Fa=class{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 Ta(Ea,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new wa(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,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new Ti(`EOF`,n.loc)),this.pushTokens(r),new Ti(``,wi.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new d(`Extra }`,i)}else if(i.text===`EOF`)throw new d(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new d(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new d(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new d(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new d(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new d(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new d(`Not a valid argument number`,s)}}}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}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Ti(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 r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.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 r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new wa(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||ha.hasOwnProperty(e)||dt.math.hasOwnProperty(e)||dt.text.hasOwnProperty(e)||Pa.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?ha.hasOwnProperty(e)&&!ha[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Ia=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,La=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`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Ra={"́":{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`}},za={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Ba=class e{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 Fa(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new d(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return 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 Ti(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&ha[i.text]&&ha[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new d(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new d(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new d(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new d(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new d(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new d(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(La[i.text]){var s=Ia.test(i.text),c=[];for(c.push(new Ti(La[i.text])),this.consume();;){var l=this.fetch().text;if(!La[l]||Ia.test(l)!==s)break;c.unshift(new Ti(La[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n||r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=ha[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new d(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new d(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new d(`Can't use function '`+r+`' in math mode`,n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=ha[e];if(o&&o.handler)return o.handler(a,t,n);throw new d(`No function handler for `+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;(`primitive`in t&&t.primitive&&o==null||t.type===`sqrt`&&a===1&&i[0]==null)&&(o=`primitive`);var c=this.parseGroupOfType(`argument to '`+e+`'`,o,s);if(s)i.push(c);else if(c!=null)r.push(c);else throw new d(`Null argument, please report this as a bug`)}return{args:r,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 r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(`raw`,n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new d(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new d(`Expected group as `+e,this.fetch());return a;case`original`:case null:case void 0:return this.parseArgumentGroup(n);default:throw new d(`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 r=``,i;(i=this.fetch()).text!==`EOF`;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new d(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,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 d(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(`size`,e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new d(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!ze(i))throw new d(`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 r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:wi.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Pa.hasOwnProperty(r)){if(this.settings.throwOnError)throw new d(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(a&&a.type===`textord`){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:wi.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:wi.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:wi.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new d(`\\verb assertion failed --
257
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}za.hasOwnProperty(t[0])&&!dt[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=za[t[0]]+t.slice(1));var i=Sa.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(dt[this.mode][t]){this.settings.strict&&this.mode===`math`&&Nt.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=dt[this.mode][t].group,s=wi.range(e);a=gr(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(xe(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)),a={type:`textord`,mode:`text`,loc:wi.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!Ra[l])throw new d(`Unknown accent ' `+l+`'`,e);var u=Ra[l][this.mode]||Ra[l].text;if(!u)throw new d(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:wi.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};Ba.endOfExpression=/* @__PURE__ */ new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var Va=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new Ba(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=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 d(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new Ti(`\\df@tag`)])}]}return r},Ha=function(e,t,n){t.textContent=``;var r=Ka(e,n).toNode();t.appendChild(r)};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.`),Ha=function(){throw new d(`KaTeX doesn't work in quirks mode.`)});var Ua=function(e,t){return Ka(e,t).toMarkup()},Wa=function(e,t){return Va(e,new ne(t))},Ga=function(e,t,n){if(n.throwOnError||!(e instanceof d))throw e;var r=I([`katex-error`],[new Ze(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},Ka=function(e,t){var n=new ne(t);try{return or(Va(e,n),e,n)}catch(t){return Ga(t,e,n)}},qa={version:`0.16.47`,render:Ha,renderToString:Ua,ParseError:d,SETTINGS_SCHEMA:x,__parse:Wa,__renderToDomTree:Ka,__renderToHTMLTree:function(e,t){var n=new ne(t);try{return sr(Va(e,n),e,n)}catch(t){return Ga(t,e,n)}},__setFontMetrics:st,__defineSymbol:E,__defineFunction:R,__defineMacro:H,__domTree:{Span:qe,Anchor:Je,SymbolNode:Ze,SvgNode:Qe,PathNode:$e,LineNode:et}};function Ja(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}let Ya=ao(/[A-Za-z]/),Xa=ao(/[\dA-Za-z]/),Za=ao(/[#-'*+\--9=?A-Z^-~]/);function Qa(e){return e!==null&&(e<32||e===127)}let $a=ao(/\d/),eo=ao(/[\dA-Fa-f]/),to=ao(/[!-/:-@[-`{-~]/);function U(e){return e!==null&&e<-2}function no(e){return e!==null&&(e<0||e===32)}function W(e){return e===-2||e===-1||e===32}let ro=ao(/\p{P}|\p{S}/u),io=ao(/\s/);function ao(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function oo(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}let so=(function(e){if(e==null)return po;if(typeof e==`function`)return fo(e);if(typeof e==`object`)return Array.isArray(e)?co(e):lo(e);if(typeof e==`string`)return uo(e);throw Error(`Expected function, string, or object as test`)});function co(e){let t=[],n=-1;for(;++n<e.length;)t[n]=so(e[n]);return fo(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function lo(e){let t=e;return fo(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function uo(e){return fo(t);function t(t){return t&&t.type===e}}function fo(e){return t;function t(t,n,r){return!!(mo(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function po(){return!0}function mo(e){return typeof e==`object`&&!!e&&`type`in e}function ho(e){return e}let go=[];function _o(e,t,n,r){if(!e||typeof e!=`object`)throw Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,a,o,s,c;if(typeof n==`function`||n&&typeof n==`object`?(a=t,o=n,r&&(i=!1)):(o=t,n&&(i=!1)),typeof o==`function`)s=o;else if(o&&typeof o==`object`){if(o.enter!==null&&o.enter!==void 0){if(typeof o.enter==`function`)s=o.enter;else throw Error("Unexpected value `"+o.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof o.exit==`function`)c=o.exit;else throw Error("Unexpected value `"+o.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw Error("Unexpected value `"+o+"` for `enter` or `visitors`, expected visitor or object with visitors");let l=so(a),u=i?1:-1;d(e,void 0,[])();function d(e,t,n){let r=e&&typeof e==`object`?e:{};if(typeof r.type==`string`){let t=typeof r.tagName==`string`?r.tagName:typeof r.name==`string`?r.name:void 0;Object.defineProperty(o,"name",{value:`node (`+ho(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=go;if(s&&r&&(o=vo(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e<t.children.length;){let n=t.children[e],i=d(n,e,r)();if(i[0]===!1)return i;e=typeof i[1]==`number`?i[1]:e+u}}}if(c&&r){let r=vo(c(e,n,t));if(r[0]===`skip`)throw Error("Unexpected value `"+r[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(r[0]===!1||typeof r[1]==`number`)return r}return o}}}function vo(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?go:[e]}function yo(e,t,n){let r=so((n||{}).ignore||[]),i=bo(t),a=-1;for(;++a<i.length;)_o(e,o);function o(e,t,n){if(e.type===`text`&&typeof n==`number`)return s(e,t,n);if(r(e,n,t[t.length-1]))return`skip`}function s(e,t,n){let r=t[t.length-1],o=i[a][0],s=i[a][1],c=0,l=!1,u=[];o.lastIndex=0;let d=o.exec(e.value);for(;d;){let n=d.index,r={index:d.index,input:d.input,stack:[...t,e]},i=s(...d,r);if(typeof i==`string`&&(i=i.length>0?{type:`text`,value:i}:void 0),i===!1)o.lastIndex=n+1;else{if(c!==n&&f({type:`text`,value:e.value.slice(c,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);c=n+d[0].length,l=!0}if(!o.global)break;d=o.exec(e.value)}return l?(c<e.value.length&&f({type:`text`,value:e.value.slice(c)}),r.children.splice(n,1,...u)):u=[e],n+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function bo(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([xo(e[0]),So(e[1])])}return t}function xo(e){return typeof e==`string`?new RegExp(oo(e),`g`):e}function So(e){return typeof e==`function`?e:function(){return e}}let Co=`phrasing`,wo=[`autolink`,`link`,`image`,`label`];function To(){return{transforms:[No],enter:{literalAutolink:Do,literalAutolinkEmail:Oo,literalAutolinkHttp:Oo,literalAutolinkWww:Oo},exit:{literalAutolink:Mo,literalAutolinkEmail:jo,literalAutolinkHttp:ko,literalAutolinkWww:Ao}}}function Eo(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:Co,notInConstruct:wo},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:Co,notInConstruct:wo},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:Co,notInConstruct:wo}]}}function Do(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function Oo(e){this.config.enter.autolinkProtocol.call(this,e)}function ko(e){this.config.exit.autolinkProtocol.call(this,e)}function Ao(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function jo(e){this.config.exit.autolinkEmail.call(this,e)}function Mo(e){this.exit(e)}function No(e){yo(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Po],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Fo]],{ignore:[`link`,`linkReference`]})}function Po(e,t,n,r,i){let a=``;if(!Ro(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!Io(n)))return!1;let o=Lo(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function Fo(e,t,n,r){return!Ro(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function Io(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Lo(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=Ja(e,`(`),a=Ja(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function Ro(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||io(n)||ro(n))&&(!t||n!==47)}function zo(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}Yo.peek=Jo;function Bo(){this.buffer()}function Vo(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function Ho(){this.buffer()}function Uo(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function Wo(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=zo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Go(e){this.exit(e)}function Ko(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=zo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function qo(e){this.exit(e)}function Jo(){return`[`}function Yo(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Xo(){return{enter:{gfmFootnoteCallString:Bo,gfmFootnoteCall:Vo,gfmFootnoteDefinitionLabelString:Ho,gfmFootnoteDefinition:Uo},exit:{gfmFootnoteCallString:Wo,gfmFootnoteCall:Go,gfmFootnoteDefinitionLabelString:Ko,gfmFootnoteDefinition:qo}}}function Zo(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Yo},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
258
+ `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?$o:Qo))),s(),o}}function Qo(e,t,n){return t===0?e:$o(e,t,n)}function $o(e,t,n){return(n?``:` `)+e}let es=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];as.attention=os,as.peek=ss;function ts(){return{canContainEols:[`delete`],enter:{strikethrough:rs},exit:{strikethrough:is}}}function ns(){return{handlers:{delete:as},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:es}]}}function rs(e){this.enter({type:`delete`,children:[],position:void 0},e)}function is(e){this.exit(e)}function as(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function os(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function ss(){return`~`}function cs(e){return e.length}function ls(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||cs,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=us(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=ds(r[d]);else{let e=ds(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding===!1||n.alignDelimiters===!1&&i===``||n.delimiterStart===!1&&!d||r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
259
+ `)}function us(e){return e==null?``:String(e)}function ds(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}let fs=so([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function ps(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),ms);return i(),o}function ms(e,t,n){return`>`+(n?``:` `)+e}function hs(e,t){return gs(e,t.inConstruct,!0)&&!gs(e,t.notInConstruct,!1)}function gs(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function _s(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
260
+ `&&!e.before&&!e.after&&hs(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
261
+ `}function vs(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function ys(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function bs(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function xs(e,t,n,r){let i=bs(n),a=e.value||``;if(ys(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,Ss);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(vs(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:`
262
+ `,encode:["`"],...o.current()})),t()}return u+=o.move(`
263
+ `),a&&(u+=o.move(a+`
264
+ `)),u+=o.move(s),c(),u}function Ss(e,t,n){return(n?``:` `)+e}function Cs(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ws(e,t,n,r){let i=Cs(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
265
+ `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function Ts(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Es(e){if(e===null||no(e)||io(e))return 1;if(ro(e))return 2}function Ds(e){let t=e.codePointAt(0);return t===void 0?``:String.fromCodePoint(t)}function Os(e){let t=e.codePointAt(e.length-2);return t!==void 0&&t>65535?e.slice(-2):e.slice(-1)}function ks(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function As(e,t,n){let r=Es(e),i=Es(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}let js=/* @__PURE__ */ `address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Ms=[`pre`,`script`,`style`,`textarea`];function Ns(e){if(e.charCodeAt(0)!==60)return;let t=e.charCodeAt(1);if(t===33){let t=e.charCodeAt(2);return t===45?2:t===91?5:Ya(t)?4:void 0}if(t===63)return 3;let n=t===47,r=n?2:1,i=r,a=e.charCodeAt(i);if(!Ya(a))return;for(;a===45||Xa(a);)a=e.charCodeAt(++i);let o=e.slice(r,i).toLowerCase();return!n&&a!==47&&Ms.includes(o)?1:js.includes(o)?6:7}let Ps=/* @__PURE__ */ new Map([[`*`,!1],[`_`,!0]]);function Fs(e,t,n){let r=/* @__PURE__ */ new Set;for(let i of e){let e=n.get(i);if(e&&i.attention&&t.some(e=>e.attention===i.attention))for(let t of e.tokens)r.add(t.attention)}let i=[];for(let t of e)t.attention&&r.delete(t.attention)&&i.push(t.attention);return i.reverse(),i}function Is(e,t,n){let r=[],i=/* @__PURE__ */ new Map,a=/* @__PURE__ */ new Map,o=0;for(;o<e.length;){if(!e[o].attention){o++;continue}let s=e[o].value.charAt(0),c=Ps.get(s),l=o+1;for(;l<e.length&&e[l].attention&&e[l].value.charAt(0)===s;)l++;let u=o?e[o-1].value:t,d=Es(u.charCodeAt(u.length-1)),f=Es((l<e.length?e[l].value:n).charCodeAt(0)),p=!f||f===2&&!!d,m=!d||d===2&&!!f,h={tokens:e.slice(o,l),markers:[],start:0,end:0,open:c?p&&(!!d||!m):p,close:c?m&&(!!f||!p):m,split:c!==void 0};for(let e of h.tokens){i.set(e,[...h.tokens]),a.set(e,h);let t=e.value.length;for(;t--;)h.markers.push(e)}h.end=h.markers.length,r.push(h),o=l}for(zs(r,i),o=-1;++o<e.length;){let t=i.get(e[o]);if(t)return{attention:Fs(e,t,a),index:o}}}function Ls(e,t){let n=e[t?0:e.length-1];if(!n||n.attention)return;let r=t?Ds(n.value):Os(n.value),i=ks(r.codePointAt(0));if(t)n.value=i+n.value.slice(r.length);else{let e=n.value.slice(0,n.value.length-r.length),t=0;for(;e.charCodeAt(e.length-1-t)===92;)t++;t%2&&(e+=`\\`),n.value=e+i}}function Rs(e,t,n,r,i){for(let a of n.attention){let o=t.get(a)||a.sequences[0];for(let s of a.sequences){if(s===o)continue;let c=new Map(t);c.set(a,s);let l=Us(e,c,r,i),u=Is(l,r,i);if(!u||u.index>n.index)return{chosen:c,mistake:u,tokens:l}}}}function zs(e,t){let n=/* @__PURE__ */ new Map;for(let r of e){let e=r.tokens[0].value.charAt(0),i=n.get(e);i||(i=[],n.set(e,i));let a=r.close?i.length:0;for(;a--&&r.start<r.end;){let e=i[a],n=e.end-e.start,o=r.end-r.start;if(r.split?(e.close||r.open)&&o%3&&!((n+o)%3):n!==e.markers.length||n!==o)continue;let s=r.split?n>1&&o>1?2:1:o,c=e.markers.slice(e.end-s,e.end),l=r.markers.slice(r.start,r.start+s),u=c[0],d=l[0];if(u===c[s-1]&&u.value.length===s&&d===l[s-1]&&d.value.length===s&&u.attention===d.attention)t.delete(u),t.delete(d);else{let e=[.../* @__PURE__ */ new Set([...c,...l])];for(let n of e){let r=t.get(n);r&&r.push(...e)}}e.end-=s,r.start+=s,e.start===e.end&&i.splice(a,1),a=i.length}r.open&&r.start<r.end&&i.push(r)}}function Bs(e,t,n){if(t.length===0)throw Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(n.length===0)throw Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(let t of n)if(!Number.isSafeInteger(t)||t<1)throw Error("Cannot serialize `"+e+"` as attention with `"+t+"` as size, expected positive integer");let r=[];for(let i of t){if(i.length!==1)throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected a single ascii character");if(!to(i.charCodeAt(0)))throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected ascii punctuation");for(let e of n)r.push(i.repeat(e))}return r}function Vs(e,t,n){let r=t.indexStack,i=e.children||[],a=[],o=-1,s=n.before;r.push(-1);let c=t.createTracker(n);for(;++o<i.length;){let l=i[o],u;if(r[r.length-1]=o,o+1<i.length){let n=t.handle.handlers[i[o+1].type];n&&n.peek&&(n=n.peek),u=n?Ds(n(i[o+1],e,t,{before:``,after:``,...c.current()})):``}else u=n.after;let d=a[a.length-1];typeof d==`string`&&(s===`\r`||s===`
266
+ `)&&l.type===`html`&&Ns(l.value)!==7&&(a[a.length-1]=d.replace(/(\r?\n|\r)$/,` `),s=` `,c=t.createTracker(n),c.move(Ws(a,n.before,n.after)));let f=t.handle.handlers[l.type];if(f&&f.attention){let e=Hs(l,f.attention,t,c);a.push(e),s=Os(e.sequences[0])}else{let n=t.handle(l,e,t,{...c.current(),after:u,before:s});if(!n)continue;c.move(n),a.push(n),s=Os(n)}}return r.pop(),a}function Hs(e,t,n,r){let{construct:i,markers:a,sizes:o}=t(e,n),s=Bs(e.type,a,o),c=s[0],l=n.enter(i);r.move(c);let u=Vs(e,n,{...r.current(),before:c,after:c});return r.move(Ws(u,c,c)),r.move(c),l(),{children:u,sequences:s}}function Us(e,t,n,r){let i=[],a,o=Os(n),s=-1;for(;++s<e.length;){let n=e[s];if(typeof n==`string`){let e={value:n,attention:void 0};a&&a===Ds(n)&&Ls([e],!0),a=void 0,i.push(e),e.value&&(o=Os(e.value));continue}let c=t.get(n)||n.sequences[0],l=c.charAt(0),u=e[s+1],d=o,f=Ds(u===void 0?r:typeof u==`string`?u:t.get(u)||u.sequences[0]),p=Us(n.children,t,c,c),m=p.length>0?p[0].value:``,h=As(d.charCodeAt(d.length-1),m.charCodeAt(0),l);h.inside&&Ls(p,!0);let g=p.length>0?Os(p[p.length-1].value):``,_=As(f.charCodeAt(0),g.charCodeAt(g.length-1),l);_.inside&&Ls(p,!1),h.outside&&d!==`
267
+ `&&d!==`\r`&&Ls(i,!1),_.outside&&(a=f),i.push({value:c,attention:n},...p,{value:c,attention:n}),o=c.charAt(c.length-1)}return i}function Ws(e,t,n){let r=/* @__PURE__ */ new Map,i=Us(e,r,t,n),a=i,o=Is(a,t,n);for(;o;){let s=Rs(e,r,o,t,n);if(!s){a=i;break}r=s.chosen,a=s.tokens,o=s.mistake}let s=``;for(let e of a)s+=e.value;return s}Gs.attention=Ks,Gs.peek=qs;function Gs(e,t,n,r){let i=n.enter(`phrasing`),a=Ws([Hs(e,Ks,n,n.createTracker(r))],r.before,r.after);return i(),a}function Ks(e,t){return{construct:`emphasis`,markers:Ts(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function qs(e,t,n){return n.options.emphasis||`*`}function Js(e,t,n,r){let i,a,o;typeof n==`function`||n&&typeof n==`object`?(i=t,a=n,o=r):(a=t,o=n),typeof a==`function`?_o(e,i,Xs(a),o):_o(e,i,Ys(a),o)}function Ys(e){return!e||typeof e!=`object`?e:{enter:typeof e.enter==`function`?Xs(e.enter):e.enter,exit:typeof e.exit==`function`?Xs(e.exit):e.exit}}function Xs(e){return t;function t(t,n,r){return e(t,r,n[n.length-1])}}let Zs={};function Qs(e,t){let n=t||Zs;return $s(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function $s(e,t,n){if(tc(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return ec(e.children,t,n)}return Array.isArray(e)?ec(e,t,n):``}function ec(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=$s(e[i],t,n);return r.join(``)}function tc(e){return!!(e&&typeof e==`object`)}function nc(e,t){let n=!1;return Js(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&Qs(e)&&(t.options.setext||n))}function rc(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(nc(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
268
+ `,after:`
269
+ `});return r(),t(),o+`
270
+ `+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
271
+ `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
272
+ `,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=ks(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}ic.peek=ac;function ic(e){return e.value||``}function ac(){return`<`}oc.peek=sc;function oc(e,t,n,r){let i=Cs(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function sc(){return`!`}cc.peek=lc;function cc(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function lc(){return`!`}uc.peek=dc;function uc(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function dc(){return"`"}function fc(e,t){let n=Qs(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][+\-.a-z]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}pc.peek=mc;function pc(e,t,n,r){let i=Cs(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(fc(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`),u=n.containerPhrasing(e,{before:l,after:`](`,...o.current()});l+=o.move(u),c(),l+=o.move(`](`);let d=/[\0- \u007F]/.test(e.url),f=r.before.charAt(r.before.length-1),p=e.title||void 0;if(!p&&!d&&(f===`
273
+ `||f===`\r`)){let e=0;for(;e<u.length&&u.charCodeAt(e)!==93;)e+=u.charCodeAt(e)===92?2:1;u.charCodeAt(e+1)===58&&(p=``)}return!e.url&&typeof p==`string`||d?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:typeof p==`string`?` `:`)`,...o.current()}))),c(),typeof p==`string`&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(p,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function mc(e,t,n){return fc(e,n)?`<`:`[`}hc.peek=gc;function hc(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function gc(){return`[`}function _c(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function vc(e){let t=_c(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function yc(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function bc(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function xc(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?yc(n):_c(n),s=e.ordered?o===`.`?`)`:`.`:vc(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.children[0]||n.stack[n.stack.length-1]!==`list`||n.stack[n.stack.length-2]!==`listItem`||n.stack[n.stack.length-3]!==`list`||n.stack[n.stack.length-4]!==`listItem`||n.indexStack[n.indexStack.length-1]!==0||n.indexStack[n.indexStack.length-2]!==0||n.indexStack[n.indexStack.length-3]!==0||(c=!0),bc(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function Sc(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Cc(e,t,n,r){let i=Sc(n),a=n.bulletCurrent||_c(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function wc(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function Tc(e,t,n,r){if(!e.children.some(function(e){return fs(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function Ec(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Dc.attention=Oc,Dc.peek=kc;function Dc(e,t,n,r){let i=n.enter(`phrasing`),a=Ws([Hs(e,Oc,n,n.createTracker(r))],r.before,r.after);return i(),a}function Oc(e,t){return{construct:`strong`,markers:Ec(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function kc(e,t,n){return n.options.strong||`*`}function Ac(e,t,n,r){
274
+ /* c8 ignore next -- parent always passed */
275
+ let i=t?t.children:[],a=n.indexStack[n.indexStack.length-1];return n.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function jc(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Mc(e,t,n){let r=(bc(n)+(n.options.ruleSpaces?` `:``)).repeat(jc(n));return n.options.ruleSpaces?r.slice(0,-1):r}let Nc={blockquote:ps,break:_s,code:xs,definition:ws,emphasis:Gs,hardBreak:_s,heading:rc,html:ic,image:oc,imageReference:cc,inlineCode:uc,link:pc,linkReference:hc,list:xc,listItem:Cc,paragraph:wc,root:Tc,strong:Dc,text:Ac,thematicBreak:Mc},Pc=document.createElement(`i`);function Fc(e){let t=`&`+e+`;`;Pc.innerHTML=t;let n=Pc.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function Ic(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}let Lc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Rc(e){return e.replace(Lc,zc)}function zc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Ic(n.slice(t?2:1),t?16:10)}return Fc(n)||e}function Bc(){return{enter:{table:Vc,tableData:Gc,tableHeader:Gc,tableRow:Uc},exit:{codeText:Kc,table:Hc,tableData:Wc,tableHeader:Wc,tableRow:Wc}}}function Vc(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function Hc(e){this.exit(e),this.data.inTable=void 0}function Uc(e){this.enter({type:`tableRow`,children:[]},e)}function Wc(e){this.exit(e)}function Gc(e){this.enter({type:`tableCell`,children:[]},e)}function Kc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,qc));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function qc(e,t){return t===`|`?t:e}function Jc(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
276
+ `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
277
+ `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return ls(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=Nc.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function Yc(){return{exit:{taskListCheckValueChecked:Zc,taskListCheckValueUnchecked:Zc,paragraph:Qc}}}function Xc(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:$c}}}function Zc(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Qc(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function $c(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Nc.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function el(){return[To(),Xo(),ts(),Bc(),Yc()]}function tl(e){return{extensions:[Eo(),Zo(e),ns(),Jc(e),Xc()]}}function nl(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function rl(e,t){return e.length>0?(nl(e,e.length,0,t),e):t}let il={}.hasOwnProperty;function al(e){let t={},n=-1;for(;++n<e.length;)ol(t,e[n]);return t}function ol(e,t){let n;for(n in t){let r=(il.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){il.call(r,a)||(r[a]=[]);let e=i[a];sl(r[a],Array.isArray(e)?e:e?[e]:[])}}}function sl(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);nl(e,0,0,r)}let cl={tokenize:Sl,partial:!0},ll={tokenize:Cl,partial:!0},ul={tokenize:wl,partial:!0},dl={tokenize:Tl,partial:!0},fl={tokenize:El,partial:!0},pl={name:`wwwAutolink`,tokenize:bl,previous:Dl},ml={name:`protocolAutolink`,tokenize:xl,previous:Ol},hl={name:`emailAutolink`,tokenize:yl,previous:kl},gl={};function _l(){return{text:gl}}let vl=48;for(;vl<123;)gl[vl]=hl,vl++,vl===58?vl=65:vl===91&&(vl=97);gl[43]=hl,gl[45]=hl,gl[46]=hl,gl[95]=hl,gl[72]=[hl,ml],gl[104]=[hl,ml],gl[87]=[hl,pl],gl[119]=[hl,pl];function yl(e,t,n){let r=this,i,a;return o;function o(t){return!Al(t)||!kl.call(r,r.previous)||jl(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Al(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(fl,u,l)(t):t===45||t===95||Xa(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&Ya(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function bl(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!Dl.call(r,r.previous)||jl(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(cl,e.attempt(ll,e.attempt(ul,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function xl(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Ol.call(r,r.previous)&&!jl(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(Ya(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Qa(t)||no(t)||io(t)||ro(t)?n(t):e.attempt(ll,e.attempt(ul,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Sl(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Cl(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(dl,c,s)(t):t===null||no(t)||io(t)||t!==45&&ro(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function wl(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(dl,t,a)(o):o===null||no(o)||io(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Tl(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||no(o)||io(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||no(e)||io(e)?t(e):r(e)}function a(e){return Ya(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):Ya(t)?(e.consume(t),o):n(t)}}function El(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return Xa(e)?n(e):t(e)}}function Dl(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||no(e)}function Ol(e){return!Ya(e)}function kl(e){return!(e===47||Al(e))}function Al(e){return e===43||e===45||e===46||e===95||Xa(e)}function jl(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Ml(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&Xa(e.charCodeAt(n+1))&&Xa(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Nl(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}let Pl={name:`attention`,resolveAll:Fl,tokenize:Il};function Fl(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};Ll(o,-a),Ll(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=rl(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=rl(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=rl(r,Nl(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=rl(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=rl(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),nl(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function Il(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Es(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Es(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function Ll(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let Rl={name:`autolink`,tokenize:zl};function zl(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Ya(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Xa(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Xa(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Qa(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Za(t)?(e.consume(t),l):n(t)}function u(e){return Xa(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Xa(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}function G(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return W(r)?(e.enter(n),s(r)):t(r)}function s(r){return W(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function Bl(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&W(t)?(e.enter(r),c(t)):l(t)}function c(t){return W(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}let Vl={partial:!0,tokenize:Hl};function Hl(e,t,n){return r;function r(t){return W(t)?G(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||U(e)?t(e):n(e)}}let Ul={continuation:{tokenize:Gl},exit:Kl,name:`blockQuote`,tokenize:Wl};function Wl(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return W(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Gl(e,t,n){let r=this;return i;function i(t){return W(t)?G(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(Ul,t,n)(r)}}function Kl(e){e.exit(`blockQuote`)}let ql={name:`characterEscape`,tokenize:Jl};function Jl(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return to(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}let Yl={name:`characterReference`,tokenize:Xl};function Xl(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Xa,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=eo,u):(e.enter(`characterReferenceValue`),a=7,o=$a,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Xa&&!Fc(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}let Zl={partial:!0,tokenize:Ql};function Ql(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}let $l={concrete:!0,name:`codeFenced`,tokenize:eu};function eu(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),W(t)?G(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||U(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(Zl,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||U(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):W(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),G(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||U(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||U(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&W(t)?G(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||U(t)?e.check(Zl,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||U(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),W(t)?G(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),W(t)?G(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||U(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}let tu={name:`codeIndented`,tokenize:ru},nu={partial:!0,tokenize:iu};function ru(e,t,n){return r;function r(t){return e.enter(`codeIndented`),Bl(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):U(t)?e.attempt(nu,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||U(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function iu(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):U(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):Bl(e,t,a,`linePrefix`,4,4)(o)}function a(e){return U(e)?i(e):n(e)}}let au={name:`codeText`,previous:su,resolve:ou,tokenize:cu};function ou(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function su(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function cu(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):U(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||U(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var lu=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&uu(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),uu(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),uu(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);uu(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);uu(this.left,t.reverse())}}}};function uu(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function du(e){let t={},n=-1,r,i,a,o,s,c,l,u=new lu(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,fu(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return nl(e,0,1/0,u.slice(0)),!l}function fu(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}let pu={resolve:hu,tokenize:gu},mu={partial:!0,tokenize:_u};function hu(e){return du(e),e}function gu(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):U(t)?e.check(mu,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function _u(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),G(e,a,`linePrefix`)}function a(i){if(i===null||U(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function vu(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Qa(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||U(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||no(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Qa(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function yu(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||
278
+ /* c8 ignore next 3 */
279
+ l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):U(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||U(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!W(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function bu(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):U(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),G(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||U(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function xu(e,t){let n;return r;function r(i){return U(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):W(i)?G(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}let Su={name:`definition`,tokenize:wu},Cu={partial:!0,tokenize:Tu};function wu(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return yu.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=zo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return no(t)?xu(e,l)(t):l(t)}function l(t){return vu(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Cu,d,d)(t)}function d(t){return W(t)?G(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||U(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Tu(e,t,n){return r;function r(t){return no(t)?xu(e,i)(t):n(t)}function i(t){return bu(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return W(t)?G(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||U(e)?t(e):n(e)}}let Eu={name:`hardBreakEscape`,tokenize:Du};function Du(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return U(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}let Ou={name:`headingAtx`,resolve:ku,tokenize:Au};function ku(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};nl(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function Au(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||no(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||U(n)?(e.exit(`atxHeading`),t(n)):W(n)?G(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||no(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}let ju={concrete:!0,name:`htmlFlow`,resolveTo:Nu,tokenize:Pu},Mu={partial:!0,tokenize:Fu};function Nu(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Pu(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:fe):Ya(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Ya(a)?(e.consume(a),i=4,r.interrupt?t:fe):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:fe):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:ie:m):n(i)}function h(t){return Ya(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||no(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Ms.includes(l)?(i=1,r.interrupt?t(s):ie(s)):js.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):ie(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Xa(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:ie):n(i)}function v(t){return W(t)?(e.consume(t),v):C(t)}function y(t){return t===47?(e.consume(t),C):t===58||t===95||Ya(t)?(e.consume(t),b):W(t)?(e.consume(t),y):C(t)}function b(t){return t===45||t===46||t===58||t===95||Xa(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),ee):W(t)?(e.consume(t),x):y(t)}function ee(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,S):W(t)?(e.consume(t),ee):te(t)}function S(t){return t===c?(e.consume(t),c=null,ne):t===null||U(t)?n(t):(e.consume(t),S)}function te(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||no(t)?x(t):(e.consume(t),te)}function ne(e){return e===47||e===62||W(e)?y(e):n(e)}function C(t){return t===62?(e.consume(t),re):n(t)}function re(t){return t===null||U(t)?ie(t):W(t)?(e.consume(t),re):n(t)}function ie(t){return t===45&&i===2?(e.consume(t),ce):t===60&&i===1?(e.consume(t),le):t===62&&i===4?(e.consume(t),pe):t===63&&i===3?(e.consume(t),fe):t===93&&i===5?(e.consume(t),de):U(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Mu,me,ae)(t)):t===null||U(t)?(e.exit(`htmlFlowData`),ae(t)):(e.consume(t),ie)}function ae(t){return e.check(Zl,oe,me)(t)}function oe(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),se}function se(t){return t===null||U(t)?ae(t):(e.enter(`htmlFlowData`),ie(t))}function ce(t){return t===45?(e.consume(t),fe):ie(t)}function le(t){return t===47?(e.consume(t),o=``,ue):ie(t)}function ue(t){if(t===62){let n=o.toLowerCase();return Ms.includes(n)?(e.consume(t),pe):ie(t)}return Ya(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),ue):ie(t)}function de(t){return t===93?(e.consume(t),fe):ie(t)}function fe(t){return t===62?(e.consume(t),pe):t===45&&i===2?(e.consume(t),fe):ie(t)}function pe(t){return t===null||U(t)?(e.exit(`htmlFlowData`),me(t)):(e.consume(t),pe)}function me(n){return e.exit(`htmlFlow`),t(n)}}function Fu(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Vl,t,n)}}let Iu={name:`htmlText`,tokenize:Lu};function Lu(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Ya(t)?(e.consume(t),te):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Ya(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):U(t)?(o=d,le(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?ce(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):U(t)?(o=h,le(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?ce(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?ce(t):U(t)?(o=v,le(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):U(t)?(o=y,le(t)):(e.consume(t),y)}function b(e){return e===62?ce(e):y(e)}function x(t){return Ya(t)?(e.consume(t),ee):n(t)}function ee(t){return t===45||Xa(t)?(e.consume(t),ee):S(t)}function S(t){return U(t)?(o=S,le(t)):W(t)?(e.consume(t),S):ce(t)}function te(t){return t===45||Xa(t)?(e.consume(t),te):t===47||t===62||no(t)?ne(t):n(t)}function ne(t){return t===47?(e.consume(t),ce):t===58||t===95||Ya(t)?(e.consume(t),C):U(t)?(o=ne,le(t)):W(t)?(e.consume(t),ne):ce(t)}function C(t){return t===45||t===46||t===58||t===95||Xa(t)?(e.consume(t),C):re(t)}function re(t){return t===61?(e.consume(t),ie):U(t)?(o=re,le(t)):W(t)?(e.consume(t),re):ne(t)}function ie(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ae):U(t)?(o=ie,le(t)):W(t)?(e.consume(t),ie):(e.consume(t),oe)}function ae(t){return t===i?(e.consume(t),i=void 0,se):t===null?n(t):U(t)?(o=ae,le(t)):(e.consume(t),ae)}function oe(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||no(t)?ne(t):(e.consume(t),oe)}function se(e){return e===47||e===62||no(e)?ne(e):n(e)}function ce(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function le(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ue}function ue(t){return W(t)?G(e,de,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):de(t)}function de(t){return e.enter(`htmlTextData`),o(t)}}let Ru={name:`labelEnd`,resolveAll:Hu,resolveTo:Uu,tokenize:Wu},zu={tokenize:Gu},Bu={tokenize:Ku},Vu={tokenize:qu};function Hu(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&nl(e,0,e.length,n),e}function Uu(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=rl(o,e.slice(i+1,i+r+3)),o=rl(o,[[`enter`,l,t]]),o=rl(o,Nl(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=rl(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=rl(o,e.slice(a+1)),o=rl(o,[[`exit`,s,t]]),nl(e,i,e.length,o),e}function Wu(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(zo(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(zu,u,o?u:d)(t):t===91?e.attempt(Bu,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Vu,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function Gu(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return no(t)?xu(e,a)(t):a(t)}function a(t){return t===41?u(t):vu(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return no(t)?xu(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?bu(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return no(t)?xu(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Ku(e,t,n){let r=this;return i;function i(t){return yu.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(zo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function qu(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}let Ju={name:`labelStartImage`,resolveAll:Ru.resolveAll,tokenize:Yu};function Yu(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}let Xu={name:`labelStartLink`,resolveAll:Ru.resolveAll,tokenize:Zu};function Zu(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}let Qu={name:`lineEnding`,tokenize:$u};function $u(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),G(e,t,`linePrefix`)}}let ed={name:`thematicBreak`,tokenize:td};function td(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||U(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),W(t)?G(e,s,`whitespace`)(t):s(t))}}let nd={continuation:{tokenize:od},exit:cd,name:`list`,tokenize:ad},rd={partial:!0,tokenize:ld},id={partial:!0,tokenize:sd};function ad(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:$a(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(ed,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return $a(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Vl,r.interrupt?n:u,e.attempt(rd,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return W(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function od(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Vl,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,G(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!W(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(id,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,G(e,e.attempt(nd,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function sd(e,t,n){let r=this;return G(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function cd(e){e.exit(this.containerState.type)}function ld(e,t,n){let r=this;return G(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!W(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var ud=class{constructor(){this.index=/* @__PURE__ */ new Map,this.map=[]}add(e,t,n){dd(this,e,t,n,!1)}addBefore(e,t,n){dd(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function dd(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}let fd={name:`setextUnderline`,resolveTo:pd,tokenize:md};function pd(e,t){let n=new ud,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function md(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),W(t)?G(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||U(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}let hd={tokenize:Cd,partial:!0};function gd(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:bd,continuation:{tokenize:xd},exit:Sd}},text:{91:{name:`gfmFootnoteCall`,tokenize:yd},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:_d,resolveTo:vd}}}}function _d(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=zo(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function vd(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function yd(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||no(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(zo(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return no(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function bd(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||no(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=zo(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return no(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),G(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function xd(e,t,n){return e.check(Vl,t,e.attempt(hd,t,n))}function Sd(e){e.exit(`gfmFootnoteDefinition`)}function Cd(e,t,n){let r=this;return G(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function wd(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&nl(o,o.length,0,Nl(s,e.slice(r+1,n),t)),nl(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),nl(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Es(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Es(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Td=class{constructor(){this.map=[],this.index=/* @__PURE__ */ new Map}add(e,t,n){Ed(this,e,t,n)}consume(e){
280
+ /* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
281
+ if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function Ed(e,t,n,r){
282
+ /* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
283
+ if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function Dd(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Od(){return{flow:{null:{name:`table`,tokenize:kd,resolveAll:Ad}}}}function kd(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?ee:c;return a===ee&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):U(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):W(t)?G(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||no(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,W(t)?G(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return W(t)?G(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||U(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return W(t)?G(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||U(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function ee(t){return e.enter(`tableRow`),S(t)}function S(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),S):n===null||U(n)?(e.exit(`tableRow`),t(n)):W(n)?G(e,S,`whitespace`)(n):(e.enter(`data`),te(n))}function te(t){return t===null||t===124||no(t)?(e.exit(`data`),S(t)):(e.consume(t),t===92?ne:te)}function ne(t){return t===92||t===124?(e.consume(t),te):te(t)}}function Ad(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Td;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Md(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=jd(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=jd(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=jd(f,t,o,i,n,d)):(o[0]=o[1],d=jd(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Md(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Dd(t.events,n))}return e}function jd(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},Nd(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=Nd(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=Nd(t.events,n[2]),a=Nd(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},Nd(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Md(e,t,n,r,i){let a=[],o=Nd(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function Nd(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}let Pd={name:`tasklistCheck`,tokenize:Id};function Fd(){return{text:{91:Pd}}}function Id(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return no(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return U(r)?t(r):W(r)?e.check({tokenize:Ld},t,n)(r):n(r)}}function Ld(e,t,n){return G(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Rd(e){return al([_l(),gd(),wd(e),Od(),Fd()])}let zd={};function Bd(e){let t=this,n=e||zd,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Rd(n)),a.push(el()),o.push(tl(n))}function Vd(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(e){this.enter({type:`math`,meta:null,value:``,data:{hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[]}]}},e)}function t(){this.buffer()}function n(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:`text`,value:t}),this.data.mathFlowInside=void 0}function a(e){this.enter({type:`inlineMath`,value:``,data:{hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[]}},e),this.buffer()}function o(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:`text`,value:t})}function s(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function Hd(e){let t=(e||{}).singleDollarTextMath;return t??=!0,r.peek=i,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:`
284
+ `,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(vs(i,`$`)+1,2)),s=n.enter(`mathFlow`),c=a.move(o);if(e.meta){let t=n.enter(`mathFlowMeta`);c+=a.move(n.safe(e.meta,{after:`
285
+ `,before:c,encode:[`$`],...a.current()})),t()}return c+=a.move(`
286
+ `),i&&(c+=a.move(i+`
287
+ `)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function i(){return`$`}}let Ud={tokenize:Gd,concrete:!0,name:`mathFlow`},Wd={tokenize:Kd,partial:!0};function Gd(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(e.consume(t),o++,c):o<2?n(t):(e.exit(`mathFlowFenceSequence`),G(e,l,`whitespace`)(t))}function l(t){return t===null||U(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||U(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),d(t)):t===36?n(t):(e.consume(t),u)}function d(n){return e.exit(`mathFlowFence`),r.interrupt?t(n):e.attempt(Wd,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?G(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):U(t)?e.attempt(Wd,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||U(t)?(e.exit(`mathFlowValue`),m(t)):(e.consume(t),h)}function g(n){return e.exit(`mathFlow`),t(n)}function _(e,t,n){let i=0;return G(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),s(t)}function s(t){return t===36?(i++,e.consume(t),s):i<o?n(t):(e.exit(`mathFlowFenceSequence`),G(e,c,`whitespace`)(t))}function c(r){return r===null||U(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function Kd(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function qd(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:Jd,previous:Yd,name:`mathText`};function n(e,n,r){let i=0,a,o;return s;function s(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),c(t)}function c(n){return n===36?(e.consume(n),i++,c):i<2&&!t?r(n):(e.exit(`mathTextSequence`),l(n))}function l(t){return t===null?r(t):t===36?(o=e.enter(`mathTextSequence`),a=0,d(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),l):U(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),l):(e.enter(`mathTextData`),u(t))}function u(t){return t===null||t===32||t===36||U(t)?(e.exit(`mathTextData`),l(t)):(e.consume(t),u)}function d(t){return t===36?(e.consume(t),a++,d):a===i?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(o.type=`mathTextData`,u(t))}}}function Jd(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`mathTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Yd(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function Xd(e){return{flow:{36:Ud},text:{36:qd(e)}}}let Zd={};function Qd(e){let t=this,n=e||Zd,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Xd(n)),a.push(Vd()),o.push(Hd(n))}let $d={tokenize:ef};function ef(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),G(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return U(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}let tf={tokenize:rf},nf={tokenize:af};function rf(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new ud;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(nf,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(nf,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return U(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new ud;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function af(e,t,n){return G(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}let of={tokenize:sf};function sf(e){let t=this,n=e.attempt(Vl,r,e.attempt(this.parser.constructs.flowInitial,i,G(e,e.attempt(this.parser.constructs.flow,i,e.attempt(pu,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}let cf={resolveAll:ff()},lf=df(`string`),uf=df(`text`);function df(e){return{resolveAll:ff(e===`text`?pf:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function ff(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function pf(e,t){let n=new ud,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var mf=/* @__PURE__ */ s({attentionMarkers:()=>Sf,contentInitial:()=>gf,disable:()=>Cf,document:()=>hf,flow:()=>vf,flowInitial:()=>_f,insideSpan:()=>xf,string:()=>yf,text:()=>bf});let hf={42:nd,43:nd,45:nd,48:nd,49:nd,50:nd,51:nd,52:nd,53:nd,54:nd,55:nd,56:nd,57:nd,62:Ul},gf={91:Su},_f={[-2]:tu,[-1]:tu,32:tu},vf={35:Ou,42:ed,45:[fd,ed],60:ju,61:fd,95:ed,96:$l,126:$l},yf={38:Yl,92:ql},bf={[-5]:Qu,[-4]:Qu,[-3]:Qu,33:Ju,38:Yl,42:Pl,60:[Rl,Iu],91:Xu,92:[Eu,ql],93:Ru,95:Pl,96:au},xf={null:[Pl,cf]},Sf={null:[42,95]},Cf={null:[]};function wf(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:S(x),check:S(ee),consume:v,enter:y,exit:b,interrupt:S(ee,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=rl(o,e),g(),o[o.length-1]===null?(te(t,0),l.events=Nl(a,l.events,l),l.events):[]}function f(e,t){return Ef(p(e),t)}function p(e){return Tf(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,C()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){U(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,C()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){te(e,t.from)}function ee(e,t){t.restore()}function S(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=ne(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function te(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&nl(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function ne(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,C()}}function C(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Tf(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Ef(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
288
+ `;break;case-3:o=`\r
289
+ `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Df(e){let t={constructs:al([mf,...(e||{}).extensions||[]]),content:n($d),defined:[],document:n(tf),flow:n(of),lazy:{},string:n(lf),text:n(uf)};return t;function n(e){return n;function n(n){return wf(t,e,n)}}}function Of(e){for(;!du(e););return e}let kf=/[\0\t\n\r]/g;function Af(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){kf.lastIndex=c;let n=kf.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}function jf(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Nf(e.position):`start`in e||`end`in e?Nf(e):`line`in e||`column`in e?Mf(e):``}function Mf(e){return Pf(e&&e.line)+`:`+Pf(e&&e.column)}function Nf(e){return Mf(e&&e.start)+`-`+Mf(e&&e.end)}function Pf(e){return e&&typeof e==`number`?e:1}let Ff={}.hasOwnProperty;function If(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Lf(n)(Of(Df(n).document().write(Af()(e,t,!0))))}function Lf(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(je),autolinkProtocol:C,autolinkEmail:C,atxHeading:o(De),blockQuote:o(Se),characterEscape:C,characterReference:C,codeFenced:o(Ce),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Ce,s),codeText:o(we,s),codeTextData:C,data:C,codeFlowValue:C,definition:o(Te),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Ee),hardBreakEscape:o(Oe),hardBreakTrailing:o(Oe),htmlFlow:o(ke,s),htmlFlowData:C,htmlText:o(ke,s),htmlTextData:C,image:o(Ae),label:s,link:o(je),listItem:o(Ne),listItemValue:p,listOrdered:o(Me,f),listUnordered:o(Me),paragraph:o(Pe),reference:ge,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(De),strong:o(Fe),thematicBreak:o(Le)},exit:{atxHeading:l(),atxHeadingSequence:ee,autolink:l(),autolinkEmail:xe,autolinkProtocol:be,blockQuote:l(),characterEscapeValue:re,characterReferenceMarkerHexadecimal:w,characterReferenceMarkerNumeric:w,characterReferenceValue:ve,characterReference:ye,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:re,codeIndented:l(v),codeText:l(ce),codeTextData:re,data:re,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(ae),hardBreakTrailing:l(ae),htmlFlow:l(oe),htmlFlowData:re,htmlText:l(se),htmlTextData:re,image:l(ue),label:fe,labelText:de,lineEnding:ie,link:l(le),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:_e,resourceDestinationString:pe,resourceTitleString:me,resource:he,setextHeading:l(ne),setextHeadingLineSequence:te,setextHeadingText:S,strong:l(),thematicBreak:l()}};zf(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),Ff.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||Vf).call(o,void 0,e[0])}for(r.position={start:Rf(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Rf(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Rf(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+jf({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Vf).call(this,e,r[0])),n.position.end=Rf(e.end)}function d(){return Qs(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=zo(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ee(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function te(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function C(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=Ie(),n.position={start:Rf(e.start),end:void 0},t.push(n)),this.stack.push(n)}function re(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Rf(e.end)}function ie(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Rf(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(C.call(this,e),re.call(this,e))}function ae(){this.data.atHardBreak=!0}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function se(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ce(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function le(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ue(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function de(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Rc(t),n.identifier=zo(t).toLowerCase()}function fe(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function pe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function me(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function he(){this.data.inReference=void 0}function ge(){this.data.referenceType=`collapsed`}function _e(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=zo(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function w(e){this.data.characterReferenceType=e.type}function ve(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Ic(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Fc(t);let i=this.stack[this.stack.length-1];i.value+=r}function ye(e){let t=this.stack.pop();t.position.end=Rf(e.end)}function be(e){re.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function xe(e){re.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function Se(){return{type:`blockquote`,children:[],position:void 0}}function Ce(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function we(){return{type:`inlineCode`,value:``,position:void 0}}function Te(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function Ee(){return{type:`emphasis`,children:[],position:void 0}}function De(){return{type:`heading`,depth:0,children:[],position:void 0}}function Oe(){return{type:`break`,position:void 0}}function ke(){return{type:`html`,value:``,position:void 0}}function Ae(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function je(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function Me(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function Ne(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function Pe(){return{type:`paragraph`,children:[],position:void 0}}function Fe(){return{type:`strong`,children:[],position:void 0}}function Ie(){return{type:`text`,value:``,position:void 0}}function Le(){return{type:`thematicBreak`,position:void 0}}}function Rf(e){return{line:e.line,column:e.column,offset:e.offset}}function zf(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?zf(e,r):Bf(e,r)}}function Bf(e,t){let n;for(n in t)if(Ff.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Vf(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+jf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+jf({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+jf({start:t.start,end:t.end})+`) is still open`)}function Hf(e){let t=this;t.parser=n;function n(n){return If(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Uf(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Wf(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
290
+ `}]}function Gf(e,t){let n=t.value?t.value+`
291
+ `:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Kf(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qf(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jf(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Ml(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Yf(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xf(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Zf(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Qf(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zf(e,t);let i={src:Ml(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function $f(e,t){let n={src:Ml(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ep(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function tp(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zf(e,t);let i={href:Ml(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function np(e,t){let n={href:Ml(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function rp(e,t,n){let r=e.all(t),i=n?ip(n):ap(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
292
+ `}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
293
+ `});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function ip(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=ap(n[r])}return t}function ap(e){return e.spread??e.children.length>1}function op(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function sp(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cp(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function lp(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}let up=fp(`end`),dp=fp(`start`);function fp(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function pp(e){let t=dp(e),n=up(e);if(t&&n)return{start:t,end:n}}function mp(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=dp(t.children[1]),o=up(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function hp(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function gp(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _p(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(vp(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(vp(t.slice(i),i>0,!1)),a.join(``)}function vp(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===9||t===32;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===9||t===32;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function yp(e,t){let n={type:`text`,value:_p(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function bp(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}let xp={blockquote:Uf,break:Wf,code:Gf,delete:Kf,emphasis:qf,footnoteReference:Jf,heading:Yf,html:Xf,imageReference:Qf,image:$f,inlineCode:ep,linkReference:tp,link:np,listItem:rp,list:op,paragraph:sp,root:cp,strong:lp,table:mp,tableCell:gp,tableRow:hp,text:yp,thematicBreak:bp,toml:Sp,yaml:Sp,definition:Sp,footnoteDefinition:Sp};function Sp(){}let{defineProperty:Cp}=Object,wp=typeof self==`object`?self:globalThis,Tp=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new wp[e](t)},Ep=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?Cp(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(/* @__PURE__ */ new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(/* @__PURE__ */ new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof wp[e]==`function`?Tp(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(Tp(a,o),i)};return r},Dp=e=>Ep(/* @__PURE__ */ new Map,e)(0),{toString:Op}={},{keys:kp,is:Ap}=Object,jp=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Op.call(e).slice(8,-1);switch(n){case`Array`:return[1,``];case`Object`:return[2,``];case`Date`:return[3,``];case`RegExp`:return[4,``];case`Map`:return[5,``];case`Set`:return[6,``];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},Mp=([e,t])=>e===0&&(t===`function`||t===`symbol`),Np=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=jp(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&Ap(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of kp(o))(e||!Mp(jp(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?``:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(Mp(jp(n))||Mp(jp(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!Mp(jp(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},Pp=(e,{json:t,lossy:n}={})=>{let r=[];return Np(!(t||n),!!t,/* @__PURE__ */ new Map,r)(e),r};var Fp=typeof structuredClone==`function`?
294
+ /* c8 ignore start */
295
+ (e,t)=>t&&(`json`in t||`lossy`in t)?Dp(Pp(e,t)):structuredClone(e):(e,t)=>Dp(Pp(e,t));function Ip(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function Lp(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Rp(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Ip,r=e.options.footnoteBackLabel||Lp,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=Ml(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...Fp(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
296
+ `},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
297
+ `}]}}let zp={}.hasOwnProperty,Bp={};function Vp(e,t){let n=t||Bp,r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Map,a={all:s,applyData:Up,definitionById:r,footnoteById:i,footnoteCounts:/* @__PURE__ */ new Map,footnoteOrder:[],handlers:{...xp,...n.handlers},one:o,options:n,patch:Hp,wrap:Gp};return Js(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(zp.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=Fp(n);return r.children=a.all(e),r}return Fp(e)}return(a.options.unknownHandler||Wp)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=Kp(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=Kp(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function Hp(e,t){e.position&&(t.position=pp(e))}function Up(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,Fp(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function Wp(e,t){let n=t.data||{},r=`value`in t&&!(zp.call(n,`hProperties`)||zp.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Gp(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
298
+ `});++r<e.length;)r&&n.push({type:`text`,value:`
299
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
300
+ `}),n}function Kp(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function qp(e,t){let n=Vp(e,t),r=n.one(e,void 0),i=Rp(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
301
+ `},i)),a}function Jp(e,t){return e&&`run`in e?async function(n,r){let i=qp(n,{file:r,...t});await e.run(i,r)}:function(n,r){return qp(n,{file:r,...e||t})}}function Yp(e){if(e)throw e}var Xp=/* @__PURE__ */ o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function Zp(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Qp(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?$p(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function $p(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var em=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=jf(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};em.prototype.file=``,em.prototype.name=``,em.prototype.reason=``,em.prototype.message=``,em.prototype.stack=``,em.prototype.column=void 0,em.prototype.line=void 0,em.prototype.ancestors=void 0,em.prototype.cause=void 0,em.prototype.fatal=void 0,em.prototype.place=void 0,em.prototype.ruleId=void 0,em.prototype.source=void 0;let tm={basename:nm,dirname:rm,extname:im,join:am,sep:`/`};function nm(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);cm(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function rm(e){if(cm(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function im(e){cm(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function am(...e){let t=-1,n;for(;++t<e.length;)cm(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:om(n)}function om(e){cm(e);let t=e.codePointAt(0)===47,n=sm(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function sm(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function cm(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}let lm={cwd:um};function um(){return`/`}function dm(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function fm(e){if(typeof e==`string`)e=new URL(e);else if(!dm(e)){let t=/* @__PURE__ */ TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=/* @__PURE__ */ TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return pm(e)}function pm(e){if(e.hostname!==``){let e=/* @__PURE__ */ TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=/* @__PURE__ */ TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}let mm=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`];var hm=class{constructor(e){let t;t=e?dm(e)?{path:e}:typeof e==`string`||ym(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:lm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<mm.length;){let e=mm[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)mm.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?tm.basename(this.path):void 0}set basename(e){_m(e,`basename`),gm(e,`basename`),this.path=tm.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?tm.dirname(this.path):void 0}set dirname(e){vm(this.basename,`dirname`),this.path=tm.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?tm.extname(this.path):void 0}set extname(e){if(gm(e,`extname`),vm(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=tm.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){dm(e)&&(e=fm(e)),_m(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?tm.basename(this.path,this.extname):void 0}set stem(e){_m(e,`stem`),gm(e,`stem`),this.path=tm.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new em(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function gm(e,t){if(e&&e.includes(tm.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+tm.sep+"`")}function _m(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function vm(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function ym(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}let bm=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r});var xm=/* @__PURE__ */ l(Xp(),1);let Sm={}.hasOwnProperty,Cm=new class e extends bm{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Qp()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,xm.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(Em(`data`,this.frozen),this.namespace[e]=t,this):Sm.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Em(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=km(e),n=this.parser||this.Parser;return wm(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),wm(`process`,this.parser||this.Parser),Tm(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=km(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);jm(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),wm(`processSync`,this.parser||this.Parser),Tm(`processSync`,this.compiler||this.Compiler),this.process(e,r),Om(`processSync`,`process`,t),n;function r(e,r){t=!0,Yp(e),n=r}}run(e,t,n){Dm(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=km(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),Om(`runSync`,`run`,n),r;function i(e,t){Yp(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=km(t),r=this.compiler||this.Compiler;return Tm(`stringify`,r),Dm(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(Em(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,xm.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Zp(o)&&Zp(r)&&(r=(0,xm.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function wm(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function Tm(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function Em(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Dm(e){if(!Zp(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function Om(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function km(e){return Am(e)?e:new hm(e)}function Am(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function jm(e){return typeof e==`string`||Mm(e)}function Mm(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}function Nm(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Pm(e,t=`|`){return e.map(e=>ah(e)).join(t)}function Fm(e,t){return typeof t==`bigint`?t.toString():t}var Im=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function Lm(e){return new Im(e)}function Rm(e){return e==null}function zm(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Bm(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function Vm(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Hm(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function Um(e){return Hm(e._zod.def)??e._zod.def.shape}function Wm(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return Vm(this,t,e),e},enumerable:!0,configurable:!0})}function Gm(e,t,n){t in e?Vm(e,t,n):e[t]=n}function Km(e,t,n,r){let i=Um(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?Wm(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):Gm(e,a,r?r(n.value,a):n.value))}}function qm(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?Wm(e,n,()=>t[n]):Gm(e,n,r.value))}}function Jm(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function Ym(e){return JSON.stringify(e)}function Xm(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}let Zm=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Qm(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}let $m=/* @__PURE__*/ Lm(()=>{if(qh.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function eh(e){if(Qm(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return Qm(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function th(e){return eh(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let nh=/* @__PURE__*/ new Set([`string`,`number`,`symbol`]);function rh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ih(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function K(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function ah(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function oh(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}let sh={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ch={int64:[/* @__PURE__*/ BigInt(`-9223372036854775808`),/* @__PURE__*/ BigInt(`9223372036854775807`)],uint64:[/* @__PURE__*/ BigInt(0),/* @__PURE__*/ BigInt(`18446744073709551615`)]};function lh(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return Km(i,e,uh(e,t)),ih(e,Jm(n,{shape:i,checks:[]}))}function uh(e,t){let n=Um(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function dh(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(uh(e,t)),a={};return Km(a,e,Reflect.ownKeys(Um(e)).filter(e=>!i.has(e))),ih(e,Jm(n,{shape:a,checks:[]}))}function fh(e,t){if(!eh(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=Um(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ih(e,Jm(e._zod.def,{shape:ph(e,t)}))}function ph(e,t){let n={};return Km(n,e,Reflect.ownKeys(Um(e))),qm(n,t),n}function mh(e,t){if(!eh(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return ih(e,Jm(e._zod.def,{shape:ph(e,t)}))}function hh(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return Km(n,e,Reflect.ownKeys(Um(e))),Km(n,t,Reflect.ownKeys(Um(t))),ih(e,Jm(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function gh(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(uh(t,n)):void 0,o={};return Km(o,t,Reflect.ownKeys(Um(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),ih(t,Jm(t._zod.def,{shape:o,checks:[]}))}function _h(e,t,n){let r=n?new Set(uh(t,n)):void 0,i={};return Km(i,t,Reflect.ownKeys(Um(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),ih(t,Jm(t._zod.def,{shape:i}))}function vh(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function yh(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function bh(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function xh(e){return typeof e==`string`?e:e?.message}function Sh(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function Ch(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function wh(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:xh(e.inst?._zod.def?.error?.(e))??xh(a?.(e))??xh(t?.error?.(e))??xh(n.customError?.(e))??xh(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}let Th=/[\uD800-\uDBFF]/;function Eh(e){let t=e.length;if(!Th.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function Dh(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Oh(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function kh(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Ah(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Ph(e,n,r.value)}}function jh(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Mh(e,t,n){return jh(e,t,n,!1)}/* @__NO_SIDE_EFFECTS__ */
302
+ function Nh(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return jh(this,n,r(this))},set(e){jh(this,n,e)}})}return t}function Ph(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:jh(this,t,n.bind(this))},set(e){jh(this,t,e)}})}function Fh(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}let Ih,Lh=!1,Rh={configurable:!0,get(){Lh=!0}};function q(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&Ih!==e._zod?Ih=void 0:(Ih=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Rh);let e=Lh;Lh=!1;try{let r=n(this);return Lh?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),Lh||=e,r}catch(n){throw delete this[t],Lh||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function zh(e,t,n,r){let i=Fh(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}function Bh(e){let t=()=>e;return t[`~constantCatch`]=!0,t}var Vh;let Hh={value:void 0,enumerable:!1},Uh=`captureStackTrace`in Error?Error:null;function Wh(e){let t=Uh;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Uh=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}/* @__NO_SIDE_EFFECTS__ */
303
+ function J(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=/* @__PURE__ */ new Set}a.prototype=i;let o=n,s=o&&/* @__PURE__ */ new WeakSet;function c(n,r){if(!n._zod){Hh.value=new a(r);try{Object.defineProperty(n,"_zod",Hh)}finally{Hh.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),Ah(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?Wh(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var Gh=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Kh=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(Vh=globalThis).__zod_globalConfig??(Vh.__zod_globalConfig={});let qh=globalThis.__zod_globalConfig;function Jh(e){return e&&Object.assign(qh,e),qh}function Yh(){let e=this._zod;return e.message??=JSON.stringify(e.def,Fm,2),e.message}function Xh(e){this._zod.message=e}let Zh={get:Yh,set:Xh,enumerable:!0,configurable:!0},Qh={value:void 0,enumerable:!1},$h=/* @__PURE__ */ new WeakSet([Object.prototype,Error.prototype]),eg=/* @__PURE__ */ J(`$ZodError`,(e,t)=>{e.name=`$ZodError`,Qh.value=t,Object.defineProperty(e,"issues",Qh),Qh.value=void 0,Object.defineProperty(e,"message",Zh);let n=Object.getPrototypeOf(e);$h.has(n)||($h.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))});function tg(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function ng(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?tg(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function rg(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function ig(e,t){return{callee:t?.callee??e,Err:t?.Err}}let ag=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new Gh;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>wh(e,o,Jh())));throw Zm(n,a?.callee??t),n}return s.value};return t},og=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>wh(e,o,Jh())));throw Zm(n,a?.callee??t),n}return s.value};return t},sg=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Gh;return a.issues.length?cg(e,a.issues,i):{success:!0,data:a.value}};function cg(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>wh(e,n,Jh()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}let lg=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?cg(e,a.issues,i):{success:!0,data:a.value}},ug=/* @__PURE__ */ Symbol.for(`zod.compile.invalid`),dg=/* @__PURE__ */ Symbol.for(`zod.compile.fallback`),fg=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==ug)return!0;if(r.definite===!0&&n===void 0)return!1}return pg(e,t,n)});function pg(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[dg]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new Gh;return a.issues.length===0}let mg=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},hg=e=>{let t=ag(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,ig(n,a))};return n},gg=e=>{let t=ag(e),n=(e,r,i,a)=>t(e,r,i,ig(n,a));return n},_g=e=>{let t=og(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,ig(n,a))};return n},vg=e=>{let t=og(e),n=async(e,r,i,a)=>await t(e,r,i,ig(n,a));return n},yg=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return sg(e)(t,n,i)},bg=e=>(t,n,r)=>sg(e)(t,n,r),xg=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return lg(e)(t,n,i)},Sg=e=>async(t,n,r)=>lg(e)(t,n,r),Cg=/^[cC][0-9a-z]{6,}$/,wg=/^[0-9a-z]+$/,Tg=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Eg=/^[0-9a-vA-V]{20}$/,Dg=/^[A-Za-z0-9]{27}$/,Og=/^[a-zA-Z0-9_-]{21}$/;function kg(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}let Ag=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jg=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Mg=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ng=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function Pg(){return/* @__PURE__ */ RegExp(`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`,`u`)}let Fg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ig=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Lg=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Rg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Bg=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Vg=/^https?$/,Hg=/^\+[1-9]\d{6,14}$/,Ug=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function Wg(e){return RegExp(`^${e}$`)}let Gg=/*@__PURE__*/ Wg(Ug);function Kg(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function qg(e){return RegExp(`^${Kg(e)}$`)}function Jg(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${Kg({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${Kg({precision:e.precision})}`:n;return RegExp(`^${Ug}T(?:${r})$`)}let Yg=/^[\s\S]{0,}$/,Xg=/^-?\d+(?:\.\d+)?$/,Zg=/^(?:true|false)$/i,Qg=/^[^A-Z]*$/,$g=/^[^a-z]*$/,e_=/*@__PURE__*/ J(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),t_=e=>{let t=e.value;return!Rm(t)&&t.length!==void 0},n_={number:`number`,bigint:`bigint`,object:`date`},r_=/*@__PURE__*/ J(`$ZodCheckLessThan`,(e,t)=>{e_.init(e,t);let n=n_[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n_[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),i_=/*@__PURE__*/ J(`$ZodCheckGreaterThan`,(e,t)=>{e_.init(e,t);let n=n_[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n_[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),a_=/*@__PURE__*/ J(`$ZodCheckMultipleOf`,(e,t)=>{e_.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Bm(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),o_=/*@__PURE__*/ J(`$ZodCheckNumberFormat`,(e,t)=>{e_.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=sh[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),s_=/*@__PURE__*/ J(`$ZodCheckMaxLength`,(e,t)=>{var n;e_.init(e,t),(n=e._zod.def).when??(n.when=t_),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?Eh(r):i)<=t.maximum)return;let a=Dh(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),c_=/*@__PURE__*/ J(`$ZodCheckMinLength`,(e,t)=>{var n;e_.init(e,t),(n=e._zod.def).when??(n.when=t_),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Eh(r):i)>=t.minimum)return;let a=Dh(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),l_=/*@__PURE__*/ J(`$ZodCheckLengthEquals`,(e,t)=>{var n;e_.init(e,t),(n=e._zod.def).when??(n.when=t_),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?Eh(r):i;if(a===t.length)return;let o=Dh(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),u_=/*@__PURE__*/ J(`$ZodCheckStringFormat`,(e,t)=>{var n,r;e_.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),d_=/*@__PURE__*/ J(`$ZodCheckRegex`,(e,t)=>{u_.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),f_=/*@__PURE__*/ J(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Qg,u_.init(e,t)}),p_=/*@__PURE__*/ J(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=$g,u_.init(e,t)}),m_=/*@__PURE__*/ J(`$ZodCheckIncludes`,(e,t)=>{e_.init(e,t);let n=rh(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),h_=/*@__PURE__*/ J(`$ZodCheckStartsWith`,(e,t)=>{e_.init(e,t);let n=RegExp(`^${rh(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),g_=/*@__PURE__*/ J(`$ZodCheckEndsWith`,(e,t)=>{e_.init(e,t);let n=RegExp(`.*${rh(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),__=/*@__PURE__*/ J(`$ZodCheckOverwrite`,(e,t)=>{e_.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});var v_=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
304
+ `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
305
+ `)}\n};`)(...Object.values(this.closed))}};let y_={major:4,minor:6,patch:7},b_=/*@__PURE__*/ J(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=y_;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=vh(t),a;for(let o of n){if(o._zod.def.when){if(yh(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new Gh;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(Ch(t.issues,n,e),i||=vh(t,n))});else{if(t.issues.length===n)continue;Ch(t.issues,n,e),i||=vh(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(vh(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new Gh;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new Gh;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Mh(this,`~standard`,C_(this))},set"~standard"(e){jh(this,`~standard`,e)}}),x_=(e,t)=>e.issues.length?{issues:e.issues.map(e=>wh(e,t,Jh()))}:{value:e.value};async function S_(e,t){let n={async:!0};return x_(await e._zod.run({value:t,issues:[]},n),n)}function C_(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return x_(r,n)}catch{}return S_(e,t)},vendor:`zod`,version:1}}let w_=/*@__PURE__*/ J(`$ZodString`,(e,t)=>{b_.init(e,t),e._zod.pattern=t.pattern??Yg,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),T_=/*@__PURE__*/ J(`$ZodStringFormat`,(e,t)=>{u_.init(e,t),w_.init(e,t)}),E_=/*@__PURE__*/ J(`$ZodGUID`,(e,t)=>{t.pattern??=jg,T_.init(e,t)}),D_=/*@__PURE__*/ J(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Mg(e)}else t.pattern??=Mg();T_.init(e,t)}),O_=/*@__PURE__*/ J(`$ZodEmail`,(e,t)=>{t.pattern??=Ng,T_.init(e,t)});function k_(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function A_(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?k_(e)||2:j_(e,t)}function j_(e,t){if(!t.normalize&&t.protocol?.source===Vg.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<`u`){let t=URL;if(typeof t.parse==`function`)return t.parse(e)??2}return new URL(e)}catch{return 2}}let M_=/[\t\n\r]/g;function N_(e){return e.replace(M_,``)}function P_(e,t){return t.lastIndex=0,t.test(e.hostname)}function F_(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}let I_=/*@__PURE__*/ J(`$ZodURL`,(e,t)=>{T_.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=A_(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=N_(r);return}t.hostname&&!P_(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!F_(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:N_(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),L_=/*@__PURE__*/ J(`$ZodEmoji`,(e,t)=>{t.pattern??=Pg(),T_.init(e,t)}),R_=/*@__PURE__*/ J(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?Og:kg(t.length),T_.init(e,t)}),z_=/*@__PURE__*/ J(`$ZodCUID`,(e,t)=>{t.pattern??=Cg,T_.init(e,t)}),B_=/*@__PURE__*/ J(`$ZodCUID2`,(e,t)=>{t.pattern??=wg,T_.init(e,t)}),V_=/*@__PURE__*/ J(`$ZodULID`,(e,t)=>{t.pattern??=Tg,T_.init(e,t)}),H_=/*@__PURE__*/ J(`$ZodXID`,(e,t)=>{t.pattern??=Eg,T_.init(e,t)}),U_=/*@__PURE__*/ J(`$ZodKSUID`,(e,t)=>{t.pattern??=Dg,T_.init(e,t)}),W_=/*@__PURE__*/ J(`$ZodISODateTime`,(e,t)=>{t.pattern??=Jg(t),T_.init(e,t)}),G_=/*@__PURE__*/ J(`$ZodISODate`,(e,t)=>{t.pattern??=Gg,T_.init(e,t)}),K_=/*@__PURE__*/ J(`$ZodISOTime`,(e,t)=>{t.pattern??=qg(t),T_.init(e,t)}),q_=/*@__PURE__*/ J(`$ZodISODuration`,(e,t)=>{t.pattern??=Ag,T_.init(e,t)}),J_=/*@__PURE__*/ J(`$ZodIPv4`,(e,t)=>{t.pattern??=Fg,T_.init(e,t)}),Y_=/^[0-9a-fA-F:.]+$/;function X_(e){return Y_.test(e)?k_(`http://[${e}]`):!1}let Z_=/*@__PURE__*/ J(`$ZodIPv6`,(e,t)=>{t.pattern??=Ig,T_.init(e,t),e._zod.check=n=>{X_(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),Q_=/*@__PURE__*/ J(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Lg,T_.init(e,t)});function $_(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:X_(n)}let ev=/*@__PURE__*/ J(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Rg,T_.init(e,t),e._zod.check=n=>{$_(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function tv(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let nv=/^[0-9a-zA-Z+/]*={0,2}$/,rv=/*@__PURE__*/ J(`$ZodBase64`,(e,t)=>{t.pattern??=nv,T_.init(e,t),e._zod.check=n=>{tv(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),iv=/^[A-Za-z0-9_-]*$/;function av(e){if(!iv.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return tv(t.padEnd(Math.ceil(t.length/4)*4,`=`))}let ov=/*@__PURE__*/ J(`$ZodBase64URL`,(e,t)=>{t.pattern??=iv,T_.init(e,t),e._zod.check=n=>{av(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),sv=/*@__PURE__*/ J(`$ZodE164`,(e,t)=>{t.pattern??=Hg,T_.init(e,t)});function cv(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}let lv=/*@__PURE__*/ J(`$ZodJWT`,(e,t)=>{T_.init(e,t),e._zod.check=n=>{cv(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),uv=/*@__PURE__*/ J(`$ZodNumber`,(e,t)=>{b_.init(e,t),e._zod.pattern=Xg,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),dv=/*@__PURE__*/ J(`$ZodNumberFormat`,(e,t)=>{o_.init(e,t),uv.init(e,t)}),fv=/*@__PURE__*/ J(`$ZodBoolean`,(e,t)=>{b_.init(e,t),e._zod.pattern=Zg,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),pv=/*@__PURE__*/ J(`$ZodUnknown`,(e,t)=>{b_.init(e,t),e._zod.parse=e=>e}),mv=/*@__PURE__*/ J(`$ZodNever`,(e,t)=>{b_.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function hv(e,t){let n=Sh(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,a)=>{let o=t(n.value);if(o>r&&!a?.skipChecks&&a?.direction!==`backward`){for(let[t,r]of Sh(e._zod.def.checks))if(o>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=!1,Ch(n.issues,t,e),n}}return i(n,a)}}let gv=e=>Array.isArray(e)?e.length:-1;function _v(e,t,n){e.issues.length&&t.issues.push(...bh(n,e.issues)),t.value[n]=e.value}let vv=/*@__PURE__*/ J(`$ZodArray`,(e,t)=>{b_.init(e,t);let n=qh.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>_v(t,r,e)));else if(_v(c,r,e),s&&c.issues.length!==0&&vh(c))break}return o.length?Promise.all(o).then(()=>r):r},hv(e,gv)});function yv(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...bh(n,e.issues))}!o&&i===void 0?e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]}):e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}let bv=[];function xv(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:bv,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=oh(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function Sv(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(vh(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>yv(e,n,i,t,d,f))):yv(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}let Cv=/*@__PURE__*/ J(`$ZodObject`,(e,t)=>{b_.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=Lm(()=>xv(t));q(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||Vm(n,e,/* @__PURE__ */ new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=Qm,o=t.catchall,s,c=qh.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(vh(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>yv(n,t,e,r,a,o))):yv(s,t,e,r,a,o)}return o?Sv(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),wv=/*@__PURE__*/ J(`$ZodObjectJIT`,(e,t)=>{Cv.init(e,t);let n=e._zod.parse,r=Lm(()=>xv(t)),i=qh.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new v_([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
306
+ let ${e}_ab = false;
307
+ for (let i = 0; i < ${e}.issues.length; i++) {
308
+ const iss = ${e}.issues[i];
309
+ iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
310
+ payload.issues.push(iss);
311
+ if (iss.continue !== true) ${e}_ab = true;
312
+ }
313
+ if (${e}_ab && ctx && ctx.abortEarly) {
314
+ payload.value = newResult;
315
+ return payload;
316
+ }`;o.write(`const input = payload.value;`);let l=Object.create(null),u=0;for(let e of n.allKeys)l[e]=`key_${u++}`;o.write(i?`const newResult = memo.alloc(inst, payload, {}, ctx);`:`const newResult = {};`);for(let e of n.allKeys){if(e===`__proto__`)continue;let n=l[e],r=typeof e==`symbol`?`syms[${a.indexOf(e)}]`:Ym(e),i=`${r} in input`,u=t[e],d=u?._zod?.optin,f=d!==void 0,p=u?._zod?.optout===`optional`;if(o.write(`const ${n} = ${s(r)};`),f&&p){let e=d===`optional`?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(`
317
+ const ${n}_present = ${i};
318
+ if (!${n}.issues.length || ${n}_present) {
319
+ if (${n}.issues.length) {${c(n,r)}
320
+ }
321
+
322
+ if (${e}) {
323
+ newResult[${r}] = ${n}.value;
324
+ }
325
+ }
326
+
327
+ `)}else f?(o.write(`
328
+ if (${n}.issues.length) {${c(n,r)}
329
+ }
330
+ `),d===`defaulted`?o.write(`newResult[${r}] = ${n}.value;`):o.write(`
331
+ if (${n}.value !== undefined || ${i}) {
332
+ newResult[${r}] = ${n}.value;
333
+ }
334
+ `)):o.write(`
335
+ const ${n}_present = ${i};
336
+ if (${n}.issues.length) {${c(n,r)}
337
+ }
338
+ if (!${n}_present && !${n}.issues.length) {
339
+ payload.issues.push({
340
+ code: "invalid_type",
341
+ expected: "nonoptional",
342
+ input: undefined,
343
+ path: [${r}]
344
+ });
345
+ if (ctx && ctx.abortEarly) {
346
+ payload.value = newResult;
347
+ return payload;
348
+ }
349
+ }
350
+
351
+ if (${n}_present) {
352
+ newResult[${r}] = ${n}.value;
353
+ }
354
+
355
+ `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=Qm,c=!qh.jitless,l=c&&$m.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?Sv([],p,i,f,d,e,f?.abortEarly===!0):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function Tv(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!vh(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>wh(e,r,Jh())))}),t)}let Ev=/*@__PURE__*/ J(`$ZodUnion`,(e,t)=>{b_.init(e,t),q(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),q(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),q(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),q(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>zm(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Tv(t,r,e,i)):Tv(o,r,e,i)}});function Dv(e){let t=/* @__PURE__ */ new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}let Ov=/*@__PURE__*/ J(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Ev.init(e,t);let n=e._zod.parse;q(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||Vm(t,e,/* @__PURE__ */ new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=Hm(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=Lm(()=>Dv(t));e._zod.parse=(i,a)=>{let o=i.value;if(!Qm(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),kv=/*@__PURE__*/ J(`$ZodIntersection`,(e,t)=>{b_.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>jv(e,t,n)):jv(e,i,a)}});function Av(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(eh(e)&&eh(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=Av(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Av(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function jv(e,t,n){let r=/* @__PURE__ */ new Map,i,a=/* @__PURE__ */ new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=Av(t.value,n.value);if(!c.valid){if(vh(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}let Mv=/*@__PURE__*/ J(`$ZodEnum`,(e,t)=>{b_.init(e,t);let n=Nm(t.entries),r=new Set(n);e._zod.values=r,q(e,`pattern`,e=>{let t=Nm(e.def.entries).filter(e=>nh.has(typeof e));return RegExp(t.length?`^(${t.map(e=>rh(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Nv=/*@__PURE__*/ J(`$ZodLiteral`,(e,t)=>{b_.init(e,t);let n=new Set(t.values);e._zod.values=n,q(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?rh(e):e?rh(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Pv=/*@__PURE__*/ J(`$ZodTransform`,(e,t)=>{b_.init(e,t),e._zod.optin=`optional`,qh.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Kh(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new Gh;return n.value=i,n}});function Fv(e,t){return e.value=t.issues.length?void 0:t.value,e}let Iv=/*@__PURE__*/ J(`$ZodOptional`,(e,t)=>{b_.init(e,t),q(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,q(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?/* @__PURE__ */ new Set([...t,void 0]):void 0}),q(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${zm(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>Fv(e,t)):Fv(e,r)}return t.innerType._zod.run(e,n)}}),Lv=/*@__PURE__*/ J(`$ZodExactOptional`,(e,t)=>{Iv.init(e,t),q(e,`values`,e=>e.def.innerType._zod.values),q(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Rv=/*@__PURE__*/ J(`$ZodNullable`,(e,t)=>{b_.init(e,t),q(e,`optin`,e=>e.def.innerType._zod.optin),q(e,`optout`,e=>e.def.innerType._zod.optout),q(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${zm(t.source)}|null)$`):void 0}),q(e,`values`,e=>e.def.innerType._zod.values?/* @__PURE__ */ new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),zv=/*@__PURE__*/ J(`$ZodDefault`,(e,t)=>{b_.init(e,t),e._zod.optin=`defaulted`,q(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Bv(e,t)):Bv(r,t)}});function Bv(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}let Vv=/*@__PURE__*/ J(`$ZodPrefault`,(e,t)=>{b_.init(e,t),e._zod.optin=`defaulted`,q(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Hv=/*@__PURE__*/ J(`$ZodNonOptional`,(e,t)=>{b_.init(e,t),q(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Uv(t,e)):Uv(i,e)}});function Uv(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Wv(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>wh(e,r,Jh()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}let Gv=/*@__PURE__*/ J(`$ZodCatch`,(e,t)=>{b_.init(e,t),q(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),q(e,`optout`,e=>e.def.innerType._zod.optout),q(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>Wv(e,r,t,n)):Wv(e,r,t,n)}}),Kv=/*@__PURE__*/ J(`$ZodPipe`,(e,t)=>{b_.init(e,t),q(e,`values`,e=>e.def.in._zod.values),q(e,`optin`,e=>e.def.in._zod.optin),q(e,`optout`,e=>e.def.out._zod.optout),q(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>qv(e,t.in,n)):qv(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>qv(e,t.out,n)):qv(r,t.out,n)}});function qv(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}let Jv=/*@__PURE__*/ J(`$ZodReadonly`,(e,t)=>{b_.init(e,t),q(e,`propValues`,e=>e.def.innerType._zod.propValues),q(e,`values`,e=>e.def.innerType._zod.values),q(e,`optin`,e=>e.def.innerType?._zod?.optin),q(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Yv):Yv(r)}});function Yv(e){return e.memo||(e.value=Object.freeze(e.value)),e}let Xv=/*@__PURE__*/ J(`$ZodCustom`,(e,t)=>{e_.init(e,t),b_.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Zv(t,n,r,e));Zv(i,n,r,e)}});function Zv(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(kh(e))}}var Qv=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}};let $v=`~memo`,ey=[];function ty(e){return typeof e==`object`&&!!e}function ny(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}let ry=/*@__PURE__*/ new WeakMap;function iy(e,t,n){let r=ry.get(e);if(r!==void 0)return r?2:0;if(t.has(e))return 2;t.add(e);let i=0,a=e=>{if(i!==2&&e?._zod){let r=iy(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=0;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?1:o.value?._zod?iy(o.value,t,n):0;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=Hm(c);s(e?o(e,!0):1),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?iy(r,t,!1):1);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),ay(e,i)}function ay(e,t){return t!==1&&ry.set(e,t===2),t}function oy(e,t){let n=e.buckets.get(t);return n||(n=/* @__PURE__ */ new WeakMap,e.buckets.set(t,n)),n}let sy,cy=[],ly={alloc(e,t,n){let r=sy;if(!r)return n;sy=void 0;let i={value:n,issues:null};return r.set(t.value,i),cy.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&dy(n,e.value))throw new Qv;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=iy(e,/* @__PURE__ */ new Set,!1);if(i===0)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===2||r?n=!0:r=!0}let l=s.value;if(!ty(l))return t(s,c);let u=c[$v];u||(u={buckets:/* @__PURE__ */ new WeakMap,backEdges:void 0},c[$v]=u);let d;i===c?d=a:(d=oy(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...ny(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=/* @__PURE__ */ new WeakSet),u.backEdges.add(f.value)),s;sy=d;let p=cy.length,m=t(s,c);sy=void 0;let h=cy.length>p?cy.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?ny(e.issues):ey),e)):(h&&(h.issues=m.issues.length?ny(m.issues):ey),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function uy(){return ly}function dy(e,t){let n=e[$v]?.backEdges;return n!==void 0&&ty(t)&&n.has(t)}let fy=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(Oh(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${ah(e.values[0])}`:`Invalid option: expected one of ${Pm(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${Pm(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function py(){return{localeError:fy()}}var my,hy=class{constructor(){this._map=/* @__PURE__ */ new WeakMap,this._idmap=/* @__PURE__ */ new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=/* @__PURE__ */ new WeakMap,this._idmap=/* @__PURE__ */ new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function gy(){return new hy}(my=globalThis).__zod_globalRegistry??(my.__zod_globalRegistry=gy());let _y=globalThis.__zod_globalRegistry;function vy(e){return e.checks&&=[...e.checks],e}// @__NO_SIDE_EFFECTS__
356
+ function yy(e,t){return new e(vy({type:`string`,...K(t)}))}// @__NO_SIDE_EFFECTS__
357
+ function by(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
358
+ function xy(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
359
+ function Sy(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
360
+ function Cy(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...K(t)})}// @__NO_SIDE_EFFECTS__
361
+ function wy(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...K(t)})}// @__NO_SIDE_EFFECTS__
362
+ function Ty(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...K(t)})}// @__NO_SIDE_EFFECTS__
363
+ function Ey(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
364
+ function Dy(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
365
+ function Oy(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
366
+ function ky(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
367
+ function Ay(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
368
+ function jy(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
369
+ function My(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
370
+ function Ny(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
371
+ function Py(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
372
+ function Fy(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
373
+ function Iy(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
374
+ function Ly(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
375
+ function Ry(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
376
+ function zy(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
377
+ function By(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
378
+ function Vy(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...K(t)})}// @__NO_SIDE_EFFECTS__
379
+ function Hy(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...K(t)})}// @__NO_SIDE_EFFECTS__
380
+ function Uy(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...K(t)})}// @__NO_SIDE_EFFECTS__
381
+ function Wy(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...K(t)})}// @__NO_SIDE_EFFECTS__
382
+ function Gy(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...K(t)})}// @__NO_SIDE_EFFECTS__
383
+ function Ky(e,t){return new e(vy({type:`number`,checks:[],...K(t)}))}// @__NO_SIDE_EFFECTS__
384
+ function qy(e,t){return new e(vy({type:`number`,coerce:!0,checks:[],...K(t)}))}// @__NO_SIDE_EFFECTS__
385
+ function Jy(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...K(t)})}// @__NO_SIDE_EFFECTS__
386
+ function Yy(e,t){return new e({type:`boolean`,...K(t)})}// @__NO_SIDE_EFFECTS__
387
+ function Xy(e){return new e({type:`unknown`})}// @__NO_SIDE_EFFECTS__
388
+ function Zy(e,t){return new e({type:`never`,...K(t)})}// @__NO_SIDE_EFFECTS__
389
+ function Qy(e,t){return new r_({check:`less_than`,...K(t),value:e,inclusive:!1})}// @__NO_SIDE_EFFECTS__
390
+ function $y(e,t){return new r_({check:`less_than`,...K(t),value:e,inclusive:!0})}// @__NO_SIDE_EFFECTS__
391
+ function eb(e,t){return new i_({check:`greater_than`,...K(t),value:e,inclusive:!1})}// @__NO_SIDE_EFFECTS__
392
+ function tb(e,t){return new i_({check:`greater_than`,...K(t),value:e,inclusive:!0})}// @__NO_SIDE_EFFECTS__
393
+ function nb(e,t){return new a_({check:`multiple_of`,...K(t),value:e})}// @__NO_SIDE_EFFECTS__
394
+ function rb(e,t){return new s_({check:`max_length`,...K(t),maximum:e})}// @__NO_SIDE_EFFECTS__
395
+ function ib(e,t){return new c_({check:`min_length`,...K(t),minimum:e})}// @__NO_SIDE_EFFECTS__
396
+ function ab(e,t){return new l_({check:`length_equals`,...K(t),length:e})}// @__NO_SIDE_EFFECTS__
397
+ function ob(e,t){return new d_({check:`string_format`,format:`regex`,...K(t),pattern:e})}// @__NO_SIDE_EFFECTS__
398
+ function sb(e){return new f_({check:`string_format`,format:`lowercase`,...K(e)})}// @__NO_SIDE_EFFECTS__
399
+ function cb(e){return new p_({check:`string_format`,format:`uppercase`,...K(e)})}// @__NO_SIDE_EFFECTS__
400
+ function lb(e,t){return new m_({check:`string_format`,format:`includes`,...K(t),includes:e})}// @__NO_SIDE_EFFECTS__
401
+ function ub(e,t){return new h_({check:`string_format`,format:`starts_with`,...K(t),prefix:e})}// @__NO_SIDE_EFFECTS__
402
+ function db(e,t){return new g_({check:`string_format`,format:`ends_with`,...K(t),suffix:e})}// @__NO_SIDE_EFFECTS__
403
+ function fb(e){return new __({check:`overwrite`,tx:e})}// @__NO_SIDE_EFFECTS__
404
+ function pb(e){return/* @__PURE__ */ fb(t=>t.normalize(e))}// @__NO_SIDE_EFFECTS__
405
+ function mb(){return/* @__PURE__ */ fb(e=>e.trim())}// @__NO_SIDE_EFFECTS__
406
+ function hb(){return/* @__PURE__ */ fb(e=>e.toLowerCase())}// @__NO_SIDE_EFFECTS__
407
+ function gb(){return/* @__PURE__ */ fb(e=>e.toUpperCase())}// @__NO_SIDE_EFFECTS__
408
+ function _b(){return/* @__PURE__ */ fb(e=>Xm(e))}// @__NO_SIDE_EFFECTS__
409
+ function vb(e,t,n){return new e({type:`array`,element:t,...K(n)})}// @__NO_SIDE_EFFECTS__
410
+ function yb(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...K(n)})}// @__NO_SIDE_EFFECTS__
411
+ function bb(e,t){let n=/* @__PURE__ */ xb(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(kh(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(kh(r))}},e(t.value,t)),t);return n}// @__NO_SIDE_EFFECTS__
412
+ function xb(e,t){let n=new e_({check:`custom`,...K(t)});return n._zod.check=e,n}function Sb(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&Vm(e,t,n[t]);return e}function Cb(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??_y,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:/* @__PURE__ */ new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function wb(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function Tb(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Tb(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Sb(o.schema,c),t.io===`input`&&Fb(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Eb(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Db(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=/* @__PURE__ */ new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${Eb(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+Eb(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
413
+
414
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function Ob(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;Ob(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}let kb=/* @__PURE__ */ new Set([`type`,`properties`,`required`,`additionalProperties`]),Ab=[`oneOf`,`anyOf`];function jb(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function Mb(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!kb.has(e))return null;t.push(n)}let n={},r=/* @__PURE__ */ new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??jb(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}Vm(n,r,e.length===1?e[0]:Mb(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=jb(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Nb(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of kb)if(t in e)return;let n=t.filter(e=>Ab.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=Mb(t);else{let e=n[0],i=Ab.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>Mb([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Sb(e,r))}function Pb(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Sb(i,s),Sb(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())Ob(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=/* @__PURE__ */ new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Nb(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Sb(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,Vm(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Lb(t,`input`,e.processors),output:Lb(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Fb(e,t){let n=t??{seen:/* @__PURE__ */ new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Fb(r.element,n);if(r.type===`set`)return Fb(r.valueType,n);if(r.type===`lazy`)return Fb(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return Fb(r.innerType,n);if(r.type===`intersection`)return Fb(r.left,n)||Fb(r.right,n);if(r.type===`record`||r.type===`map`)return Fb(r.keyType,n)||Fb(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Fb(r.in,n)||Fb(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Fb(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Fb(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Fb(e,n))return!0;return!!(r.rest&&Fb(r.rest,n))}return!1}let Ib=(e,t={})=>n=>{let r=Cb({...n,processors:t});return Tb(e,r),Db(r,e),Pb(r,e)},Lb=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Cb({...i??{},target:a,io:t,processors:n});return Tb(e,o),Db(o,e),Pb(o,e)},Rb=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},zb=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Bb=(e,t)=>{Rb(e,`minimum`,t),zb(e,`maximum`,t)},Vb=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},Hb=(e,t)=>{e.patterns??=/* @__PURE__ */ new Set,e.patterns.add(t)},Ub=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},Wb=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},Gb=(e,t)=>Rb(e,`minimum`,t.minimum),Kb=(e,t)=>zb(e,`maximum`,t.maximum),qb=e=>(t,n)=>{Wb(t,n.format);let[r,i]=e[n.format];Rb(t,`minimum`,r),zb(t,`maximum`,i)},Jb={greater_than:(e,t)=>Rb(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>zb(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>Vb(e,t.value),number_format:qb(sh),bigint_format:qb(ch),min_length:Gb,max_length:Kb,length_equals:(e,t)=>Bb(e,t.length),min_size:Gb,max_size:Kb,size_equals:(e,t)=>Bb(e,t.size),string_format:(e,t)=>{Wb(e,t.format),t.pattern&&Hb(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Ub(e,t.mime)};function Yb(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Jb[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&Rb(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&Rb(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&zb(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&zb(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&Vb(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&Ub(t,i.mime);for(let e of i.patterns??[])Hb(t,e);return t}let Xb={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Zb=/* @__PURE__ */ new Map([[nv,zg],[iv,Bg]]),Qb=e=>Zb.get(e)??e,$b=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=Yb(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Xb[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(Qb);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},ex=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=Yb(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=/* @__PURE__ */ new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):wb(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},tx=(e,t,n,r)=>{n.type=`boolean`},nx=(e,t,n,r)=>{n.not={}},rx=(e,t,n,r)=>{let i=e._zod.def,a=Nm(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},ix=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(wb(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(wb(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},ax=(e,t,n,r)=>{wb(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},ox=(e,t,n,r)=>{wb(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},sx=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=Yb(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Tb(a.element,t,{...r,path:[...r.path,`items`]})};function cx(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?cx(t.out):t.type===`catch`?cx(t.innerType):e._zod.optin}let lx=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&wb(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)Vm(i.properties,e,Tb(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?cx(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Tb(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},ux=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Tb(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},dx=(e,t,n,r)=>{let i=e._zod.def,a=Tb(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Tb(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},fx=(e,t,n,r)=>{let i=e._zod.def,a=Tb(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},px=(e,t,n,r)=>{let i=e._zod.def;Tb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},mx=Symbol();function hx(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(wb(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),mx):JSON.parse(o)}let gx=(e,t,n,r)=>{let i=e._zod.def;Tb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=hx(i.defaultValue,e,t,n,r);o!==mx&&(n.default=o)},_x=(e,t,n,r)=>{let i=e._zod.def;Tb(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=hx(i.defaultValue,e,t,n,r);o!==mx&&(n._prefault=o)},vx=(e,t,n,r)=>{let i=e._zod.def;Tb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{wb(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},yx=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Tb(o,t,r);let s=t.seen.get(e);s.ref=o},bx=(e,t,n,r)=>{let i=e._zod.def;Tb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},xx=(e,t,n,r)=>{let i=e._zod.def;Tb(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Sx=/* @__PURE__ */ new WeakSet([Object.prototype,Error.prototype]);function Cx(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}let wx=/*@__PURE__*/ J(`ZodError`,(e,t)=>{eg.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);Sx.has(n)||(Sx.add(n),Cx(n,`format`,e=>t=>rg(e,t)),Cx(n,`flatten`,e=>t=>ng(e,t)),Cx(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Fm,2)}),Cx(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Fm,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),Tx=/* @__PURE__ */ ag(wx),Ex=/* @__PURE__ */ og(wx),Dx=/* @__PURE__ */ sg(wx),Ox=/* @__PURE__ */ lg(wx),kx=/* @__PURE__ */ hg(wx),Ax=/* @__PURE__ */ gg(wx),jx=/* @__PURE__ */ _g(wx),Mx=/* @__PURE__ */ vg(wx),Nx=/* @__PURE__ */ yg(wx),Px=/* @__PURE__ */ bg(wx),Fx=/* @__PURE__ */ xg(wx),Ix=/* @__PURE__ */ Sg(wx);function Lx(){qh.localeError||Jh(py())}function Rx(){qh.memoizer||Jh({memoizer:uy()})}let zx=/*@__PURE__*/ J(`ZodType`,(e,t)=>(Lx(),b_.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(Jm(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ih(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check($S(e,t))},superRefine(e,t){return this.check(eC(e,t))},overwrite(e){return this.check(/* @__PURE__ */ fb(e))},optional(){return FS(this)},exactOptional(){return LS(this)},nullable(){return zS(this)},nullish(){return FS(zS(this))},nonoptional(e){return GS(this,e)},array(){return Z(this)},or(e){return wS([this,e])},and(e){return OS(this,e)},transform(e){return YS(this,NS(e))},default(e){return VS(this,e)},prefault(e){return US(this,e)},catch(e){return qS(this,e)},pipe(e){return YS(this,e)},readonly(){return ZS(this)},describe(e){let t=this.clone();return _y.add(t,{description:e}),t},meta(...e){if(e.length===0)return _y.get(this);let t=this.clone();return _y.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Mh(this,`~standard`,{...C_(this),jsonSchema:{input:Lb(this,`input`),output:Lb(this,`output`)}})},set"~standard"(e){jh(this,`~standard`,e)},parse:function e(t,n){return Tx(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Ex(this,t,n,{callee:e})},safeParse(e,t){return Dx(this,e,t)},async safeParseAsync(e,t){return Ox(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){jh(this,`spa`,e)},validate(e,t){return fg(this,e,t)},validateAsync(e,t){return mg(this,e,t)},encode:function e(t,n){return kx(this,t,n,{callee:e})},decode:function e(t,n){return Ax(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await jx(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Mx(this,t,n,{callee:e})},safeEncode(e,t){return Nx(this,e,t)},safeDecode(e,t){return Px(this,e,t)},async safeEncodeAsync(e,t){return Fx(this,e,t)},async safeDecodeAsync(e,t){return Ix(this,e,t)},toJSONSchema(e){return Ib(this,{})(e)},get description(){return _y.get(this)?.description},get _def(){return this._zod.def}}),Bx=/*@__PURE__*/ J(`_ZodString`,(e,t)=>{w_.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$b(e,t,n,r)},/*@__PURE__*/ Nh({format:e=>Yb(e).format??null,minLength:e=>Yb(e).minimum??null,maxLength:e=>Yb(e).maximum??null},{regex(...e){return this.check(/* @__PURE__ */ ob(...e))},includes(...e){return this.check(/* @__PURE__ */ lb(...e))},startsWith(...e){return this.check(/* @__PURE__ */ ub(...e))},endsWith(...e){return this.check(/* @__PURE__ */ db(...e))},min(...e){return this.check(/* @__PURE__ */ ib(...e))},max(...e){return this.check(/* @__PURE__ */ rb(...e))},length(...e){return this.check(/* @__PURE__ */ ab(...e))},nonempty(...e){return this.check(/* @__PURE__ */ ib(1,...e))},lowercase(e){return this.check(/* @__PURE__ */ sb(e))},uppercase(e){return this.check(/* @__PURE__ */ cb(e))},trim(){return this.check(/* @__PURE__ */ mb())},normalize(...e){return this.check(/* @__PURE__ */ pb(...e))},toLowerCase(){return this.check(/* @__PURE__ */ hb())},toUpperCase(){return this.check(/* @__PURE__ */ gb())},slugify(){return this.check(/* @__PURE__ */ _b())}})),Vx=/*@__PURE__*/ J(`ZodString`,(e,t)=>{w_.init(e,t),Bx.init(e,t)},{email(e){return this.check(/* @__PURE__ */ by(qx,e))},url(e){return this.check(/* @__PURE__ */ Ey(Xx,e))},jwt(e){return this.check(/* @__PURE__ */ Vy(dS,e))},emoji(e){return this.check(/* @__PURE__ */ Dy(Zx,e))},guid(e){return this.check(/* @__PURE__ */ xy(Jx,e))},uuid(e){return this.check(/* @__PURE__ */ Sy(Yx,e))},uuidv4(e){return this.check(/* @__PURE__ */ Cy(Yx,e))},uuidv6(e){return this.check(/* @__PURE__ */ wy(Yx,e))},uuidv7(e){return this.check(/* @__PURE__ */ Ty(Yx,e))},nanoid(e){return this.check(/* @__PURE__ */ Oy(Qx,e))},cuid(e){return this.check(/* @__PURE__ */ ky($x,e))},cuid2(e){return this.check(/* @__PURE__ */ Ay(eS,e))},ulid(e){return this.check(/* @__PURE__ */ jy(tS,e))},base64(e){return this.check(/* @__PURE__ */ Ry(cS,e))},base64url(e){return this.check(/* @__PURE__ */ zy(lS,e))},xid(e){return this.check(/* @__PURE__ */ My(nS,e))},ksuid(e){return this.check(/* @__PURE__ */ Ny(rS,e))},ipv4(e){return this.check(/* @__PURE__ */ Py(iS,e))},ipv6(e){return this.check(/* @__PURE__ */ Fy(aS,e))},cidrv4(e){return this.check(/* @__PURE__ */ Iy(oS,e))},cidrv6(e){return this.check(/* @__PURE__ */ Ly(sS,e))},e164(e){return this.check(/* @__PURE__ */ By(uS,e))},datetime(e){return this.check(/* @__PURE__ */ Hy(Ux,e))},date(e){return this.check(/* @__PURE__ */ Uy(Wx,e))},time(e){return this.check(/* @__PURE__ */ Wy(Gx,e))},duration(e){return this.check(/* @__PURE__ */ Gy(Kx,e))}});function Y(e){return/* @__PURE__ */ yy(Vx,e)}let Hx=/*@__PURE__*/ J(`ZodStringFormat`,(e,t)=>{T_.init(e,t),Bx.init(e,t)}),Ux=/*@__PURE__*/ J(`ZodISODateTime`,(e,t)=>{W_.init(e,t),Hx.init(e,t)}),Wx=/*@__PURE__*/ J(`ZodISODate`,(e,t)=>{G_.init(e,t),Hx.init(e,t)}),Gx=/*@__PURE__*/ J(`ZodISOTime`,(e,t)=>{K_.init(e,t),Hx.init(e,t)}),Kx=/*@__PURE__*/ J(`ZodISODuration`,(e,t)=>{q_.init(e,t),Hx.init(e,t)}),qx=/*@__PURE__*/ J(`ZodEmail`,(e,t)=>{O_.init(e,t),Hx.init(e,t)}),Jx=/*@__PURE__*/ J(`ZodGUID`,(e,t)=>{E_.init(e,t),Hx.init(e,t)}),Yx=/*@__PURE__*/ J(`ZodUUID`,(e,t)=>{D_.init(e,t),Hx.init(e,t)}),Xx=/*@__PURE__*/ J(`ZodURL`,(e,t)=>{I_.init(e,t),Hx.init(e,t)}),Zx=/*@__PURE__*/ J(`ZodEmoji`,(e,t)=>{L_.init(e,t),Hx.init(e,t)}),Qx=/*@__PURE__*/ J(`ZodNanoID`,(e,t)=>{R_.init(e,t),Hx.init(e,t)}),$x=/*@__PURE__*/ J(`ZodCUID`,(e,t)=>{z_.init(e,t),Hx.init(e,t)}),eS=/*@__PURE__*/ J(`ZodCUID2`,(e,t)=>{B_.init(e,t),Hx.init(e,t)}),tS=/*@__PURE__*/ J(`ZodULID`,(e,t)=>{V_.init(e,t),Hx.init(e,t)}),nS=/*@__PURE__*/ J(`ZodXID`,(e,t)=>{H_.init(e,t),Hx.init(e,t)}),rS=/*@__PURE__*/ J(`ZodKSUID`,(e,t)=>{U_.init(e,t),Hx.init(e,t)}),iS=/*@__PURE__*/ J(`ZodIPv4`,(e,t)=>{J_.init(e,t),Hx.init(e,t)}),aS=/*@__PURE__*/ J(`ZodIPv6`,(e,t)=>{Z_.init(e,t),Hx.init(e,t)}),oS=/*@__PURE__*/ J(`ZodCIDRv4`,(e,t)=>{Q_.init(e,t),Hx.init(e,t)}),sS=/*@__PURE__*/ J(`ZodCIDRv6`,(e,t)=>{ev.init(e,t),Hx.init(e,t)}),cS=/*@__PURE__*/ J(`ZodBase64`,(e,t)=>{rv.init(e,t),Hx.init(e,t)}),lS=/*@__PURE__*/ J(`ZodBase64URL`,(e,t)=>{ov.init(e,t),Hx.init(e,t)}),uS=/*@__PURE__*/ J(`ZodE164`,(e,t)=>{sv.init(e,t),Hx.init(e,t)}),dS=/*@__PURE__*/ J(`ZodJWT`,(e,t)=>{lv.init(e,t),Hx.init(e,t)}),fS=/*@__PURE__*/ J(`ZodNumber`,(e,t)=>{uv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ex(e,t,n,r),e.isFinite=!0},/*@__PURE__*/ Nh({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Yb(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Yb(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=Yb(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>Yb(e).format??null},{gt(e,t){return this.check(/* @__PURE__ */ eb(e,t))},gte(e,t){return this.check(/* @__PURE__ */ tb(e,t))},min(e,t){return this.check(/* @__PURE__ */ tb(e,t))},lt(e,t){return this.check(/* @__PURE__ */ Qy(e,t))},lte(e,t){return this.check(/* @__PURE__ */ $y(e,t))},max(e,t){return this.check(/* @__PURE__ */ $y(e,t))},int(e){return this.check(mS(e))},safe(e){return this.check(mS(e))},positive(e){return this.check(/* @__PURE__ */ eb(0,e))},nonnegative(e){return this.check(/* @__PURE__ */ tb(0,e))},negative(e){return this.check(/* @__PURE__ */ Qy(0,e))},nonpositive(e){return this.check(/* @__PURE__ */ $y(0,e))},multipleOf(e,t){return this.check(/* @__PURE__ */ nb(e,t))},step(e,t){return this.check(/* @__PURE__ */ nb(e,t))},finite(){return this}}));function X(e){return/* @__PURE__ */ Ky(fS,e)}let pS=/*@__PURE__*/ J(`ZodNumberFormat`,(e,t)=>{dv.init(e,t),fS.init(e,t)});function mS(e){return/* @__PURE__ */ Jy(pS,e)}let hS=/*@__PURE__*/ J(`ZodBoolean`,(e,t)=>{fv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tx(e,t,n,r)});function gS(e){return/* @__PURE__ */ Yy(hS,e)}let _S=/*@__PURE__*/ J(`ZodUnknown`,(e,t)=>{pv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function vS(){return/* @__PURE__ */ Xy(_S)}let yS=/*@__PURE__*/ J(`ZodNever`,(e,t)=>{mv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nx(e,t,n,r)});function bS(e){return/* @__PURE__ */ Zy(yS,e)}let xS=/*@__PURE__*/ J(`ZodArray`,(e,t)=>{Rx(),vv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sx(e,t,n,r),e.element=t.element},{min(e,t){return this.check(/* @__PURE__ */ ib(e,t))},nonempty(e){return this.check(/* @__PURE__ */ ib(1,e))},max(e,t){return this.check(/* @__PURE__ */ rb(e,t))},length(e,t){return this.check(/* @__PURE__ */ ab(e,t))},unwrap(){return this.element}});function Z(e,t){return/* @__PURE__ */ vb(xS,e,t)}let SS=/*@__PURE__*/ J(`ZodObject`,(e,t)=>{Rx(),wv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lx(e,t,n,r),zh(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return AS(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(Jm(this._zod.def,{catchall:e}))},passthrough(){return this.clone(Jm(this._zod.def,{catchall:vS()}))},loose(){return this.clone(Jm(this._zod.def,{catchall:vS()}))},strict(){return this.clone(Jm(this._zod.def,{catchall:bS()}))},strip(){return this.clone(Jm(this._zod.def,{catchall:void 0}))},extend(e){return fh(this,e)},safeExtend(e){return mh(this,e)},merge(e){return hh(this,e)},pick(e){return lh(this,e)},omit(e){return dh(this,e)},partial(...e){return gh(PS,this,e[0])},exactPartial(...e){return gh(IS,this,e[0],`exactPartial`)},required(...e){return _h(WS,this,e[0])}});function Q(e,t){let n={type:`object`,shape:e??{},...K(t)};return new SS(n)}let CS=/*@__PURE__*/ J(`ZodUnion`,(e,t)=>{Ev.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ux(e,t,n,r),e.options=t.options});function wS(e,t){return new CS({type:`union`,options:e,...K(t)})}let TS=/*@__PURE__*/ J(`ZodDiscriminatedUnion`,(e,t)=>{CS.init(e,t),Ov.init(e,t)});function ES(e,t,n){return new TS({type:`union`,options:t,discriminator:e,...K(n)})}let DS=/*@__PURE__*/ J(`ZodIntersection`,(e,t)=>{kv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dx(e,t,n,r)});function OS(e,t){return new DS({type:`intersection`,left:e,right:t})}let kS=/*@__PURE__*/ J(`ZodEnum`,(e,t)=>{Mv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rx(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new kS({...t,checks:[],...K(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new kS({...t,checks:[],...K(r),entries:i})}});function AS(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new kS({type:`enum`,entries:n,...K(t)})}let jS=/*@__PURE__*/ J(`ZodLiteral`,(e,t)=>{Nv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ix(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function $(e,t){return new jS({type:`literal`,values:Array.isArray(e)?e:[e],...K(t)})}let MS=/*@__PURE__*/ J(`ZodTransform`,(e,t)=>{Rx(),Pv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ox(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Kh(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(kh(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(kh(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function NS(e){return new MS({type:`transform`,transform:e})}let PS=/*@__PURE__*/ J(`ZodOptional`,(e,t)=>{Iv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xx(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function FS(e){return new PS({type:`optional`,innerType:e})}let IS=/*@__PURE__*/ J(`ZodExactOptional`,(e,t)=>{Lv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xx(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function LS(e){return new IS({type:`optional`,innerType:e})}let RS=/*@__PURE__*/ J(`ZodNullable`,(e,t)=>{Rv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fx(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function zS(e){return new RS({type:`nullable`,innerType:e})}let BS=/*@__PURE__*/ J(`ZodDefault`,(e,t)=>{zv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gx(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function VS(e,t){return new BS({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():th(t)}})}let HS=/*@__PURE__*/ J(`ZodPrefault`,(e,t)=>{Vv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_x(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function US(e,t){return new HS({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():th(t)}})}let WS=/*@__PURE__*/ J(`ZodNonOptional`,(e,t)=>{Hv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>px(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function GS(e,t){return new WS({type:`nonoptional`,innerType:e,...K(t)})}let KS=/*@__PURE__*/ J(`ZodCatch`,(e,t)=>{Gv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vx(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function qS(e,t){return new KS({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Bh(t)})}let JS=/*@__PURE__*/ J(`ZodPipe`,(e,t)=>{Kv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yx(e,t,n,r),e.in=t.in,e.out=t.out});function YS(e,t){return new JS({type:`pipe`,in:e,out:t})}let XS=/*@__PURE__*/ J(`ZodReadonly`,(e,t)=>{Jv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bx(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ZS(e){return new XS({type:`readonly`,innerType:e})}let QS=/*@__PURE__*/ J(`ZodCustom`,(e,t)=>{Xv.init(e,t),zx.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ax(e,t,n,r)});function $S(e,t={}){return/* @__PURE__ */ yb(QS,e,t)}function eC(e,t){return/* @__PURE__ */ bb(e,t)}function tC(e){return/* @__PURE__ */ qy(fS,e)}let nC=e=>e!==void 0&&/\s/.test(e),rC=e=>e!==void 0&&e>=`0`&&e<=`9`;function iC(e){let t=[],n=``,r=0;for(;r<e.length;){let i=e[r];if(i===`\\`&&e[r+1]===`$`)n+=`$`,r+=2;else if(i!==`$`)n+=i,r+=1;else if(e[r+1]===`$`)for(;e[r]===`$`;)n+=`$`,r+=1;else{let i=aC(e,r);i===void 0?(n+=`$`,r+=1):(n&&t.push({text:n}),n=``,t.push({formula:e.slice(r+1,i)}),r=i+1)}}return n&&t.push({text:n}),t}function aC(e,t){let n=t+1;for(;n<e.length&&e[n]!==`$`;)n+=e[n]===`\\`&&(e[n+1]===`$`||e[n+1]===`\\`)?2:1;if(!(n>=e.length||n===t+1||e[n+1]===`$`)&&!(nC(e[t+1])||nC(e[n-1])||rC(e[n+1])))return/`|\n\s*\n/.test(e.slice(t,n))?void 0:n}let oC=String.raw`Wrap LaTeX commands in single-dollar math delimiters, with no spaces inside: $\displaystyle\sum_{i=1}^{n} i$. Put \displaystyle inside the dollars. For literal backslashes followed by two or more letters (such as C:\Users), use forward slashes, Unicode symbols such as ∖, or describe them in words; backticks do not escape artifact math. Correct the affected field and retry this tool call.`;function sC(e,t,n){typeof e==`string`&&iC(e).some(e=>`text`in e&&/\\[a-zA-Z]{2,}/.test(e.text))&&n.addIssue({code:`custom`,path:t,message:oC})}function cC(e,t,n){return e.superRefine((e,r)=>{let i=(e,t,n)=>{if(t.length===0)return sC(e,n,r);let[a,...o]=t;a===`*`&&Array.isArray(e)?e.forEach((e,t)=>i(e,o,[...n,t])):e&&typeof e==`object`&&a!==void 0&&i(e[a],o,[...n,a])};for(let n of t)i(e,n.split(`.`),[]);n?.(e,r)})}function lC(e){return e.replace(/\r\n?/g,`
415
+ `).replace(/\n$/,``).split(`
416
+ `)}let uC=Y().trim().min(1).max(40),dC=wS([X(),Y().max(24)]),fC=X().int().nonnegative(),pC=Q({name:uC.describe(`Pointer label shown under the cell, e.g. "left", "right", "mid", "i".`),index:fC.describe(`0-based index into the sequence as it is at this step.`)}).strict(),mC=Q({start:fC.describe(`0-based start index, inclusive, within the sequence as it is at this step.`),end:fC.describe(`0-based end index, inclusive. Must be >= start and within the sequence.`),label:uC.optional().describe(`Optional label, e.g. "window".`),tone:AS([`active`,`done`,`muted`]).optional().describe(`active = current focus, done = finished/sorted, muted = ruled out. Defaults to active.`)}).strict(),hC=Q({name:uC,value:wS([X(),Y().max(80),gS()])}).strict(),gC=Q({language:Y().trim().min(1).max(30).describe(`The language the code is written in, e.g. "Python", "TypeScript", "Java" or "pseudocode". Shown as a label.`),source:Y().min(1).max(4e3).describe(`The code, as plain text with newlines and its real indentation: at most 40 lines of at most 120 characters. Line 1 is the first line. No Markdown fences.`)}).strict().superRefine((e,t)=>{let n=lC(e.source);n.every(e=>e.trim()===``)&&t.addIssue({code:`custom`,path:[`source`],message:`source has no code`}),n.length>40&&t.addIssue({code:`custom`,path:[`source`],message:`source has ${n.length} lines; at most 40 are allowed`});let r=n.findIndex(e=>e.length>120);r>=0&&t.addIssue({code:`custom`,path:[`source`],message:`line ${r+1} is longer than 120 characters`})}),_C=Q({explanation:Y().trim().min(1).max(500).describe(`What happens in this step, in one or two sentences.`),values:Z(dC).min(1).max(64).optional().describe(`The whole sequence after this step. Omit unless the values changed (e.g. a swap); omitted means unchanged.`),pointers:Z(pC).max(8).optional().describe(`All pointers to show at this step. Not carried over from earlier steps: repeat any that still apply.`),ranges:Z(mC).max(8).optional().describe(`All highlighted ranges at this step. Not carried over from earlier steps.`),variables:Z(hC).max(12).optional().describe(`All running state at this step, e.g. current sum, best so far. Not carried over from earlier steps.`),lines:Z(X().int().positive()).max(40).optional().describe(`Only with code: the 1-based line numbers in code.source this step is running, highlighted beside the values. Not carried over from earlier steps; omit or leave empty to highlight none.`)}).strict(),vC=Q({title:Y().trim().min(1).max(120),values:Z(dC).min(1).max(64).describe(`The input sequence before the first step.`),code:gC.optional().describe("Optional source code shown beside the values, with each step's `lines` highlighted. Include it only when the code itself is the point."),steps:Z(_C).min(1).max(200)}).strict().superRefine((e,t)=>{let n=e.values.length,r=e.code?lC(e.code.source).length:0;e.steps.forEach((i,a)=>{i.lines&&!e.code?t.addIssue({code:`custom`,path:[`steps`,a,`lines`],message:`lines need code: add code, or remove lines`}):i.lines?.forEach((e,n)=>{e>r&&t.addIssue({code:`custom`,path:[`steps`,a,`lines`,n],message:`line ${e} is outside the code (${r} lines)`})}),i.values&&(n=i.values.length),i.pointers?.forEach((e,r)=>{e.index>=n&&t.addIssue({code:`custom`,path:[`steps`,a,`pointers`,r,`index`],message:`index ${e.index} is outside the sequence (length ${n})`})}),i.ranges?.forEach((e,r)=>{(e.end>=n||e.start>e.end)&&t.addIssue({code:`custom`,path:[`steps`,a,`ranges`,r],message:`range ${e.start}..${e.end} is invalid for a sequence of length ${n}`})})})}),yC=Q({explanation:Y().trim().min(1).max(500).describe(`What happens at this step and why, in one or two sentences.`),label:Y().trim().min(1).max(80).optional().describe(`Optional short name for the step, e.g. "Initial render", "Click handler", "Render 2".`),lines:Z(X().int().positive()).max(40).optional().describe(`The 1-based line numbers in code.source this step is at. Not carried over: omit or leave empty to highlight none.`),variables:Z(hC).max(12).describe(`All the state visible at this step, each name once, e.g. "n", "render.count", "handler.count", "queued update". Not carried over: list everything that still applies, or [] for none. Values are plain text, numbers or booleans; write undefined, null or a short object as a string.`),output:Y().max(4e3).describe(`Everything visible as output at this step, as plain text, e.g. printed lines or what the page shows ("Count: 0"). Not carried over: repeat earlier output that is still visible, or "" for none.`)}).strict(),bC=Q({title:Y().trim().min(1).max(120),code:gC.describe(`The source shown on every step. It stays the same across steps.`),steps:Z(yC).min(1).max(200)}).strict().superRefine((e,t)=>{let n=lC(e.code.source).length;e.steps.forEach((e,r)=>{e.lines?.forEach((e,i)=>{e>n&&t.addIssue({code:`custom`,path:[`steps`,r,`lines`,i],message:`line ${e} is outside the code (${n} lines)`})});let i=/* @__PURE__ */ new Set;e.variables.forEach((e,n)=>{i.has(e.name)&&t.addIssue({code:`custom`,path:[`steps`,r,`variables`,n,`name`],message:`variable "${e.name}" appears twice in this step`}),i.add(e.name)})})});Q({goal:Y().trim().min(1).max(300)}).strict();let xC=Y().trim().min(1).max(80),SC=Q({concept:xC.describe(`The single concept this question probes, e.g. "chain rule". Reuse the exact name from the learner's record when it is there.`),question:Y().trim().min(1).max(1e3),options:Z(Q({text:Y().trim().min(1).max(300)}).strict()).min(2).max(5).describe(`2-5 options with distinct text. For true/false or yes/no use two options, e.g. "True" and "False". Never add a "Not sure" option: the UI always offers one.`),correctOptionIndex:X().int().nonnegative().describe(`0-based index of the single correct option.`),explanation:Y().trim().min(1).max(600).describe(`One or two sentences shown after answering: why the correct option is correct.`)}).strict().superRefine((e,t)=>{e.correctOptionIndex>=e.options.length&&t.addIssue({code:`custom`,path:[`correctOptionIndex`],message:`correctOptionIndex must point at one of the options`});let n=/* @__PURE__ */ new Map;e.options.forEach((e,r)=>{let i=e.text.normalize(`NFC`),a=n.get(i);a===void 0?n.set(i,r):t.addIssue({code:`custom`,path:[`options`,r,`text`],message:`duplicates option ${a}`}),/^\s*(not sure|i don'?t know|unsure|skip)\W*$/i.test(e.text)&&t.addIssue({code:`custom`,path:[`options`,r,`text`],message:`Leave out Not sure / Skip: the UI always offers them`})})}),CC=Q({concept:Y(),question:Y(),options:Z(Q({text:Y()}).strict())}).strict(),wC=wS([Q({optionIndex:X().int().nonnegative()}).strict(),Q({unsure:$(!0)}).strict(),Q({skipped:$(!0)}).strict()]),TC=Q({result:AS([`correct`,`incorrect`,`unsure`,`skipped`]),correctOptionIndex:X().int().nonnegative(),explanation:Y()}).strict(),EC=Q({question:Y().trim().min(1).max(300).describe(`The question, e.g. "Anything else you'd like us to know about what you already understand or what you want to explore?"`)}).strict(),DC=wS([Q({text:Y().trim().max(2e3)}).strict(),Q({skipped:$(!0)}).strict()]),OC=Q({result:AS([`answered`,`skipped`])}).strict(),kC=AS([`memory`,`test`,`guess`]),AC=Q({title:Y().trim().min(1).max(120),summary:Y().trim().min(1).max(400).describe(`What the lesson on this topic will cover, in one or two sentences.`),reason:Y().trim().min(1).max(300).describe(`Why this topic is here for this learner, e.g. "You missed the question on local minima".`),requestedByLearner:gS().describe(`True if the learner explicitly asked for this topic. Such topics are never removed automatically.`),concepts:Z(xC).min(1).max(8).describe(`Concept names this topic teaches; reuse names from the learner's record and the placement questions.`)}).strict(),jC=AS(/* @__PURE__ */ `sigma.calculator.code.terminal.cpu.database.network.shield.flask-conical.atom.dna.leaf.telescope.globe.landmark.book-open.pen-tool.languages.music.palette.camera.brain.users.chart-line.briefcase.scale.stethoscope.heart-pulse.wrench.dumbbell`.split(`.`)),MC=Q({title:Y().trim().min(1).max(60).optional().catch(void 0).describe(`A short name for the course, 2-5 words, shown in the sidebar, e.g. "Discrete Math: Induction". Name what the syllabus covers, not the request.`),icon:jC.optional().catch(void 0).describe(`The subject icon that best fits the course: sigma = maths, calculator = arithmetic or accounting, code/terminal = programming, cpu = hardware, flask-conical = chemistry, atom = physics, dna = biology, leaf = ecology, telescope = astronomy, globe = geography, landmark = history, book-open = literature, pen-tool = writing, languages = languages, palette = art, brain = psychology, users = sociology, chart-line = economics or statistics, briefcase = business, scale = law, stethoscope/heart-pulse = medicine, wrench = engineering, dumbbell = sport.`),topics:Z(AC).min(1).max(20).describe(`The ordered topics, first to learn first. Each topic gets one lesson.`),known:Z(Q({concept:xC,source:kC.describe(`memory = from their record or memories; test = from this placement interview; guess = your inference`),note:Y().trim().min(1).max(200)}).strict()).max(20).describe(`What the learner already knows or doesn't, each labelled with where that comes from. Shown to the learner.`)}).strict().superRefine((e,t)=>{let n=/* @__PURE__ */ new Set;e.topics.forEach((e,r)=>{let i=e.title.trim().toLowerCase();n.has(i)&&t.addIssue({code:`custom`,path:[`topics`,r,`title`],message:`Topic titles must be distinct`}),n.add(i)})}),NC=AC.extend({id:Y()}).strict(),PC=Q({version:X().int().positive(),source:AS([`interview`,`tutor`,`adaptive`,`undo`]),reason:Y().nullable(),changedTopicIds:Z(Y()),canUndo:gS(),topics:Z(NC),known:MC.shape.known,createdAt:Y().datetime()}).strict(),FC=AS([`interviewing`,`active`,`complete`]);Q({id:Y(),sessionId:Y(),goal:Y(),status:FC,syllabus:PC.nullable(),interviewMessageId:Y().nullable(),createdAt:Y().datetime()}).strict();let IC=Y().trim().min(1).max(24),LC=Y().trim().min(1).max(24),RC=AS([`active`,`done`,`muted`]).optional().describe(`active = current focus, done = finished/visited, muted = ruled out. Defaults to active.`),zC=Q({id:IC.describe(`Unique id, used by edges and steps. Shown on the node if it has no label.`),label:LC.optional().describe(`Short text on the node. Only $...$ is a formula, e.g. $v_1$.`)}).strict(),BC=Q({from:IC.describe(`Id of a node. In a tree, the parent.`),to:IC.describe("Id of a node, the same as `from` for a self-loop. In a tree, the child; children appear left to right in edge order unless they have a `side`."),side:AS([`left`,`right`]).optional().describe("Only when kind is tree: which child this is of `from`, its parent. Set it on every edge of a binary search tree or binary tree traversal, because a lone left child and a lone right child are different trees. A node has at most one child per side, and either all of its children have a side or none do."),weight:X().optional().describe(`Numeric weight shown on the edge. Give a weight or a label, not both.`),label:LC.optional().describe(`Text shown on the edge. Only $...$ is a formula.`)}).strict(),VC=Q({id:IC.describe(`Id of a node.`),tone:RC}).strict(),HC=Q({from:IC,to:IC,nth:X().int().nonnegative().optional().describe("Only for parallel edges, and then required: which of the edges joining these nodes, 0-based in the order of `edges`."),tone:RC}).strict().describe(`An edge of the graph. In an undirected graph, from and to may be in either order.`),UC=Q({explanation:Y().trim().min(1).max(500).describe(`What happens in this step, in one or two sentences.`),nodeStates:Z(VC).max(60).optional().describe(`The state of every node that has one at this step, at most one each. Not carried over from earlier steps: repeat any that still apply.`),edgeStates:Z(HC).max(200).optional().describe(`The state of every edge that has one at this step, at most one each. Not carried over from earlier steps: repeat any that still apply.`),variables:Z(hC).max(12).optional().describe(`All running state at this step, e.g. the queue or current distances. Not carried over from earlier steps.`)}).strict(),WC=(e,t,n)=>JSON.stringify(n||e<=t?[e,t]:[t,e]);function GC(e){let t=/* @__PURE__ */ new Map;return e.edges.forEach((n,r)=>{let i=WC(n.from,n.to,e.directed),a=t.get(i);a?a.push(r):t.set(i,[r])}),n=>{let r=`${n.from} ${e.directed?`->`:`--`} ${n.to}`,i=t.get(WC(n.from,n.to,e.directed));if(!i)return{error:`there is no edge ${r}`};if(n.nth===void 0&&i.length>1)return{error:`${i.length} edges match ${r}: set nth to pick one`};let a=i[n.nth??0];return a===void 0?{error:`nth ${n.nth} is out of range: ${i.length} edges match ${r}`}:{index:a}}}function KC(e){if(e.edges.length!==e.nodes.length-1)return;let t=e.nodes.map(e=>e.id),n=new Map(t.map(e=>[e,[]]));for(let{from:t,to:r}of e.edges)n.get(t).push(r),!e.directed&&t!==r&&n.get(r).push(t);let r=e.directed?t.filter(t=>!e.edges.some(e=>e.to===t)):t.slice(0,1),i=r[0];if(r.length!==1||i===void 0)return;let a=/* @__PURE__ */ new Map,o=[i];for(;o.length;){let e=o.pop(),t=n.get(e).filter(e=>!a.has(e));a.set(e,t),o.push(...t)}return a.size===t.length?{root:i,children:a}:void 0}function qC(e,t){let n=e.edges.flatMap((e,t)=>e.side?[{edge:e,side:e.side,path:[`edges`,t,`side`]}]:[]),r=n[0];if(!r)return;if(e.kind!==`tree`){for(let{path:e}of n)t.addIssue({code:`custom`,path:e,message:`side only applies when kind is "tree": remove it, or set kind`});return}let i=KC(e);if(!i){t.addIssue({code:`custom`,path:r.path,message:`side needs a real tree: connected with no cycles, and when directed, edges going parent to child from one root`});return}let a=/* @__PURE__ */ new Map;for(let{edge:e,side:r,path:o}of n)i.children.get(e.from).includes(e.to)?a.set(e.to,r):t.addIssue({code:`custom`,path:o,message:`side needs from to be the parent, but ${e.to} is the parent of ${e.from} here: swap them`});for(let[e,n]of i.children){let r=n.flatMap(e=>a.get(e)??[]);r.length>0&&r.length<n.length&&t.addIssue({code:`custom`,path:[`edges`],message:`node ${e} mixes children with and without a side: give all of them one, or none`});for(let n of[`left`,`right`])r.filter(e=>e===n).length>1&&t.addIssue({code:`custom`,path:[`edges`],message:`node ${e} has two ${n} children`})}}let JC=Q({title:Y().trim().min(1).max(120),directed:gS().describe("True draws arrowheads from `from` to `to`."),kind:AS([`tree`,`graph`]).optional().describe("Layout hint. tree draws a rooted tree top-down, and needs a real tree: connected with no cycles, and when directed, edges going parent to child from one root. When undirected, the first node is the root. Anything else falls back to the general layout, unless an edge has a `side`, which is then an error. Defaults to graph."),nodes:Z(zC).min(1).max(60),edges:Z(BC).max(200).describe(`Self-loops and parallel edges are allowed.`),steps:Z(UC).min(1).max(200).optional().describe(`Omit to show the graph without stepping through it.`)}).strict().superRefine((e,t)=>{let n=/* @__PURE__ */ new Set;e.nodes.forEach((e,r)=>{n.has(e.id)&&t.addIssue({code:`custom`,path:[`nodes`,r,`id`],message:`duplicate node id ${e.id}`}),n.add(e.id)}),e.edges.forEach((e,r)=>{for(let i of[`from`,`to`])n.has(e[i])||t.addIssue({code:`custom`,path:[`edges`,r,i],message:`no node has id ${e[i]}`});e.weight!==void 0&&e.label!==void 0&&t.addIssue({code:`custom`,path:[`edges`,r],message:`give a weight or a label, not both`})}),e.edges.every(e=>n.has(e.from)&&n.has(e.to))&&qC(e,t);let r=GC(e);e.steps?.forEach((e,i)=>{let a=/* @__PURE__ */ new Set;e.nodeStates?.forEach((e,r)=>{let o=[`steps`,i,`nodeStates`,r];n.has(e.id)||t.addIssue({code:`custom`,path:o,message:`no node has id ${e.id}`}),a.has(e.id)&&t.addIssue({code:`custom`,path:o,message:`node ${e.id} has two states in one step`}),a.add(e.id)});let o=/* @__PURE__ */ new Set;e.edgeStates?.forEach((e,n)=>{let a=[`steps`,i,`edgeStates`,n],s=r(e);if(`error`in s)return t.addIssue({code:`custom`,path:a,message:s.error});o.has(s.index)&&t.addIssue({code:`custom`,path:a,message:`edge ${s.index} has two states in one step`}),o.add(s.index)})})}),YC=Q({text:Y().trim().min(1).max(300),feedback:Y().trim().min(1).max(500).optional().describe(`Shown if the learner picks this option: why it is right or what misconception it reflects.`)}).strict(),XC=Q({concept:Y().trim().min(1).max(80).describe(`Short label for the concept being checked, e.g. "sliding window invariant". Used to track progress.`),question:Y().trim().min(1).max(1e3),options:Z(YC).min(2).max(6).describe(`2-6 options with distinct text.`),correctOptionIndex:X().int().nonnegative().describe(`0-based index of the single correct option; must be less than the number of options.`),explanation:Y().trim().min(1).max(1e3).describe(`Shown after answering: why the correct option is correct.`)}).strict().superRefine((e,t)=>{e.correctOptionIndex>=e.options.length&&t.addIssue({code:`custom`,path:[`correctOptionIndex`],message:`correctOptionIndex must point at one of the options`});let n=/* @__PURE__ */ new Map;e.options.forEach((e,r)=>{let i=e.text.normalize(`NFC`),a=n.get(i);a===void 0?n.set(i,r):t.addIssue({code:`custom`,path:[`options`,r,`text`],message:`duplicates option ${a}`})})}),ZC=Q({concept:Y(),question:Y(),options:Z(Q({text:Y()}).strict())}).strict(),QC=Q({optionIndex:X().int().nonnegative()}).strict(),$C=Q({correct:gS(),correctOptionIndex:X().int().nonnegative(),explanation:Y(),feedback:Y().optional()}).strict(),ew=Y().trim().min(1).max(24),tw=/^[^\n\r\v\f\u0085\u2028\u2029]*$/,nw=e=>Y().trim().min(1).max(e).regex(tw,`must not contain line breaks`),rw=wS([X(),nw(24)]);function iw(e){return JSON.stringify([...e].sort())}let aw=Z(ew).max(3),ow=Q({id:ew.describe(`Short id used to refer to this set, e.g. "a". Unique within the diagram.`),label:nw(32).describe(`Shown next to the circle, e.g. "$A$" or "Multiples of 3", on one line. Only $...$ is a formula.`)}).strict(),sw=Q({in:aw.describe('Ids of the sets this region is inside. It is outside all the others: with sets a, b, c, ["a","b"] means in a and b, not c. [] means outside every set and needs `universe`. No id twice.'),elements:Z(rw).max(30).describe(`What the region contains, each short and on one line. No element may appear twice, in this list or across regions, and 1 and "1" count as the same element. Empty if you only know the count, or the region is empty.`),count:X().int().nonnegative().max(1e6).optional().describe(`How many elements the region has, when that's more than you list, e.g. for inclusion-exclusion. At least the number of elements listed.`)}).strict(),cw=Q({in:aw.describe("The region to highlight, named like a region's `in`, with no id twice. Any region of the diagram can be highlighted, listed or not."),tone:AS([`active`,`done`,`muted`]).optional().describe(`active = current focus, done = finished, muted = ruled out. Defaults to active.`)}).strict(),lw=Q({explanation:Y().trim().min(1).max(500).describe(`What this step shows, in one or two sentences.`),highlights:Z(cw).max(8).optional().describe(`All regions highlighted at this step, each at most once. They apply to this step only, not carried over: repeat any that still apply.`),variables:Z(hC).max(12).optional().describe(`All running state at this step, e.g. |A ∪ B| so far. Not carried over from earlier steps.`)}).strict(),uw=Q({title:Y().trim().min(1).max(120),sets:Z(ow).min(1).max(3).describe(`The circles, 1 to 3.`),universe:nw(24).optional().describe(`Label of the rectangle around the sets, e.g. "$U$", on one line. Needed to show or highlight the region outside every set, such as a complement.`),regions:Z(sw).max(8).describe(`What each region contains, each region at most once.`),steps:Z(lw).min(1).max(40).optional().describe(`Optional walk through the diagram. Omit for a static diagram.`)}).strict().superRefine((e,t)=>{let n=e.sets.map(e=>e.id);e.sets.forEach((e,r)=>{n.indexOf(e.id)!==r&&t.addIssue({code:`custom`,path:[`sets`,r,`id`],message:`duplicate set id "${e.id}"`})});let r=(r,i)=>{let a=/* @__PURE__ */ new Set;r.forEach((r,o)=>{let s=[...i,o,`in`];r.in.forEach((e,i)=>{n.includes(e)||t.addIssue({code:`custom`,path:[...s,i],message:`unknown set "${e}"`}),r.in.indexOf(e)!==i&&t.addIssue({code:`custom`,path:[...s,i],message:`set "${e}" is named twice`})}),r.in.length===0&&e.universe===void 0&&t.addIssue({code:`custom`,path:s,message:"the region outside every set needs `universe`"});let c=iw(r.in);a.has(c)&&t.addIssue({code:`custom`,path:s,message:`region ${c} appears more than once`}),a.add(c)})};r(e.regions,[`regions`]),e.steps?.forEach((e,t)=>r(e.highlights??[],[`steps`,t,`highlights`]));let i=/* @__PURE__ */ new Set;e.regions.forEach((e,n)=>{e.elements.forEach((e,r)=>{i.has(String(e))&&t.addIssue({code:`custom`,path:[`regions`,n,`elements`,r],message:`element "${e}" appears more than once; regions don't overlap`}),i.add(String(e))}),e.count!==void 0&&e.count<e.elements.length&&t.addIssue({code:`custom`,path:[`regions`,n,`count`],message:`count ${e.count} is less than the ${e.elements.length} elements listed`})})}),dw=Y().trim().min(1).max(80),fw=wS([X(),gS(),Y().max(120)]),pw=X().int().nonnegative(),mw=Q({row:pw.optional().describe(`0-based data row, below the number of rows. With no column, highlights the whole row. A highlight must give a row, a column or both.`),column:pw.optional().describe(`0-based data column, below the number of columns. With no row, highlights the whole column. With both, highlights one cell.`),tone:AS([`active`,`done`,`muted`]).optional().describe(`active = current focus, done = finished, muted = ruled out. Defaults to active. Where highlights overlap, the later one wins.`)}).strict(),hw=Q({row:pw.describe(`0-based data row, below the number of rows.`),column:pw.describe(`0-based data column, below the number of columns.`),value:fw.describe(`The cell's value from this step on.`)}).strict(),gw=Q({explanation:Y().trim().min(1).max(500).describe(`What happens in this step, in one or two sentences.`),highlight:Z(mw).max(32).optional().describe(`All cells, rows and columns to highlight at this step. Not carried over from earlier steps.`),cells:Z(hw).max(64).optional().describe(`Cells this step fills in or changes. They keep the new value on later steps. To reveal working, start a cell as "" and set it here.`)}).strict(),_w=Q({title:Y().trim().min(1).max(120),columns:Z(dw).min(1).max(16).describe(`Column headers, one per data column. Don't include a header for rowHeaders.`),rows:Z(Z(fw).min(1).max(16)).min(1).max(64).describe(`Data rows, each with exactly one cell per column. A boolean shows as T or F; "" is a blank cell.`),rowHeaders:Z(dw).max(64).optional().describe(`Optional label for each row, e.g. a relation matrix's elements. Exactly one per row.`),steps:Z(gw).min(1).max(100).optional().describe(`Omit for a static table. With steps, the learner steps through them.`)}).strict().superRefine((e,t)=>{let n=e.rows.length,r=e.columns.length;e.rows.forEach((e,n)=>{e.length!==r&&t.addIssue({code:`custom`,path:[`rows`,n],message:`row has ${e.length} cells but there are ${r} columns`})}),e.rowHeaders&&e.rowHeaders.length!==n&&t.addIssue({code:`custom`,path:[`rowHeaders`],message:`${e.rowHeaders.length} row headers for ${n} rows`});let i=(e,r)=>{e>=n&&t.addIssue({code:`custom`,path:r,message:`row ${e} is outside the table (${n} rows)`})},a=(e,n)=>{e>=r&&t.addIssue({code:`custom`,path:n,message:`column ${e} is outside the table (${r} columns)`})};e.steps?.forEach((e,n)=>{e.highlight?.forEach((e,r)=>{let o=[`steps`,n,`highlight`,r];e.row===void 0&&e.column===void 0&&t.addIssue({code:`custom`,path:o,message:`a highlight needs a row, a column or both`}),e.row!==void 0&&i(e.row,[...o,`row`]),e.column!==void 0&&a(e.column,[...o,`column`])}),e.cells?.forEach((e,t)=>{i(e.row,[`steps`,n,`cells`,t,`row`]),a(e.column,[`steps`,n,`cells`,t,`column`])})})}),vw=Q({label:Y().trim().min(1).max(40).optional().describe(`Optional heading for this part of the working, e.g. "Base case", "Inductive step".`),statement:Y().trim().min(1).max(1e3).describe(`What this step establishes, mostly as a formula in $...$. For large sums and fractions, put \\displaystyle INSIDE the dollars, e.g. $\\displaystyle\\sum_{i=1}^{n} i$; $$ is not available.`),justification:Y().trim().min(1).max(500).describe(`Why it follows, e.g. "by the inductive hypothesis".`)}).strict(),yw=Q({title:Y().trim().min(1).max(120),goal:Y().trim().min(1).max(500).optional().describe(`Optional statement of what is being shown, e.g. the claim to prove.`),steps:Z(vw).min(1).max(50)}).strict(),bw=AS([`prose`,`algorithm_trace`,`code_walkthrough`,`graph`,`multiple_choice`,`set_diagram`,`table`,`worked_steps`]);Q({title:Y().trim().min(1).max(120),sections:Z(Q({title:Y().trim().min(1).max(120),kind:bw.describe(`prose = write_lesson_text; multiple_choice = ask_multiple_choice (a check); the others = the matching show_* tool.`),purpose:Y().trim().min(1).max(300).describe(`What this section does for the learner, in one sentence.`)}).strict()).min(2).max(10).describe(`2-10 sections in reading order. Include at least one multiple_choice check, usually after the idea it checks.`)}).strict().superRefine((e,t)=>{e.sections.some(e=>e.kind===`multiple_choice`)||t.addIssue({code:`custom`,path:[`sections`],message:`Include at least one multiple_choice check`})}),Q({markdown:Y().trim().min(1).max(6e3).describe(`The section's prose, as markdown with $...$ and $$...$$ maths. Don't repeat the section title as a heading.`),revisits:Z(Y().min(1)).max(5).optional().describe(`sectionIds from <previous_lesson> this section revisits. The page links back to them, so don't write links yourself.`)}).strict();let xw=AS([`generating`,`ready`,`failed`,`finished`]),Sw=Q({title:Y(),sections:Z(Q({title:Y(),kind:bw}).strict())}).strict();Q({id:Y(),courseId:Y(),topicId:Y(),topicTitle:Y(),position:X().int().nonnegative(),status:xw,version:X().int().positive().nullable(),outline:Sw.nullable(),sections:Z(ES(`kind`,[Q({id:Y(),title:Y(),kind:$(`prose`),markdown:Y(),revisits:Z(Q({lessonId:Y(),sectionId:Y(),title:Y(),lessonTitle:Y()}).strict())}).strict(),Q({id:Y(),title:Y(),kind:$(`artifact`),artifact:vS()}).strict()])),checks:Q({total:X().int().nonnegative(),answered:X().int().nonnegative()}).strict(),syllabusVersion:X().int().positive().nullable(),changedSectionIds:Z(Y()),changeReason:Y().nullable(),canFinish:gS(),error:Y().nullable(),errorAction:AS([`lesson-model`]).nullable(),createdAt:Y().datetime(),finishedAt:Y().datetime().nullable()}).strict(),Q({topics:Z(Q({topicId:Y(),title:Y(),lesson:Q({id:Y(),status:xw}).strict().nullable()}).strict()),currentLessonId:Y().nullable(),nextTopicId:Y().nullable()}).strict();let Cw=Y().trim().min(1).max(120),ww=Y().trim().min(1).max(6e3),Tw=Y().trim().min(1).max(300);Q({reason:Tw.describe(`What the learner asked for, in a few words, e.g. "Simpler intro with an example".`),operations:Z(ES(`op`,[Q({op:$(`rewrite`),sectionId:Y().min(1),markdown:ww,title:Cw.optional()}).strict().describe(`Replace a prose section's text (and optionally its title).`),Q({op:$(`insert`),afterSectionId:Y().min(1).nullable(),title:Cw,markdown:ww}).strict().describe(`Add a prose section after the given section, or first if null.`),Q({op:$(`insert_artifact`),afterSectionId:Y().min(1).nullable(),title:Cw,artifactId:Y().min(1)}).strict().describe(`Add a card you created earlier in this reply (its artifactId) as a section.`),Q({op:$(`remove`),sectionId:Y().min(1)}).strict(),Q({op:$(`move`),sectionId:Y().min(1),afterSectionId:Y().min(1).nullable()}).strict()])).min(1).max(10)}).strict(),Q({reason:Tw.describe(`What the learner asked for, e.g. "Add a topic on vectors before gradients".`),operations:Z(ES(`op`,[Q({op:$(`insert`),afterTopicId:Y().min(1).nullable().describe(`Insert after this topic; null to insert before the first future topic.`),title:Cw,summary:Y().trim().min(1).max(400),reason:Tw,concepts:Z(Y().trim().min(1).max(80)).min(1).max(8)}).strict(),Q({op:$(`edit`),topicId:Y().min(1),title:Cw.optional(),summary:Y().trim().min(1).max(400).optional()}).strict(),Q({op:$(`remove`),topicId:Y().min(1)}).strict(),Q({op:$(`move`),topicId:Y().min(1),afterTopicId:Y().min(1).nullable()}).strict()])).min(1).max(10)}).strict(),Q({messageId:Y().min(1).max(128),afterSectionId:Y().min(1).max(128).nullable(),title:Cw}).strict();let Ew=Q({title:Cw,summary:Y().trim().min(1).max(400),concepts:Z(Y().trim().min(1).max(80)).min(1).max(8)}).strict();Q({reason:Tw.describe(`Shown to the learner, with the evidence, e.g. "Added a chain rule refresher: you missed 3 of 4 checks on derivatives".`),operation:ES(`op`,[Ew.extend({op:$(`insert`),afterTopicId:Y().min(1).nullable().describe(`null = straight after this lesson's topic`)}).strict(),Q({op:$(`split`),topicId:Y().min(1),into:Z(Ew).min(2).max(3)}).strict(),Q({op:$(`move`),topicId:Y().min(1),afterTopicId:Y().min(1).nullable()}).strict()])}).strict();let Dw=AS([`goal`,`preference`,`misconception`,`known`]),Ow=AS([`goal`,`preference`,`misconception`]),kw=Y().trim().min(1).max(300);Q({kind:Ow.describe(`goal = what they want to learn or do; preference = how they like to learn; misconception = something they believe that is wrong.`),text:kw.describe(`One short sentence about the learner. Never include the answer to a check they haven't answered.`),concept:Y().trim().min(1).max(80).optional().describe(`Required for a misconception: the concept it is about. Use the exact name from the check or from their record, so it can be linked to their answers.`),replaces:Y().min(1).optional().describe(`The id of a known memory this one corrects or updates.`)}).strict().superRefine((e,t)=>{e.kind===`misconception`&&!e.concept&&t.addIssue({code:`custom`,path:[`concept`],message:`A misconception needs a concept`})});let Aw=AS([`wrong_answer`,`chat`,`import`]);Q({id:Y(),kind:Dw,held:gS(),text:Y().nullable(),concept:Y().nullable(),basis:Aw.nullable(),source:Q({noteId:Y(),importId:Y(),importName:Y(),path:Y(),title:Y()}).strict().nullable(),createdAt:Y().datetime(),editedAt:Y().datetime().nullable()}).strict(),Q({text:kw}).strict(),Q({basis:$(`import`)}).strict(),Q({id:Y(),sessionId:Y(),messageId:Y().nullable(),filename:Y(),kind:AS([`pdf`,`pptx`]),byteSize:X().int(),pageCount:X().int(),pagesWithText:X().int(),status:$(`ready`),createdAt:Y().datetime()});let jw=Y().regex(/^n\d{1,3}$/),Mw=Y().trim().min(1).max(80),Nw=AS([`prerequisite`,`related`]);Q({concepts:Z(Q({name:Mw.describe(`A name from <existing_concepts> or <vault_tags> when one fits. Otherwise a new name, written as it appears in the notes.`),notes:Z(jw).min(1).max(20).describe(`The refs of the notes that cover it.`)}).strict()).max(30),edges:Z(Q({from:Mw,to:Mw,kind:Nw.describe(`prerequisite = from must be understood before to; related = they're closely linked.`),note:jw.describe(`The ref of the note that shows this link.`)}).strict()).max(40).describe(`Edges between concepts named in this call or in <existing_concepts>.`),memories:Z(Q({kind:AS([`known`,`goal`,`misconception`]).describe(`known = the notes cover this concept; goal = a goal the notes state; misconception = a wrong belief the notes state.`),text:kw.describe(`One short sentence about the learner.`),concept:Mw.optional().describe(`Required for known and misconception: a concept named in this call or in <existing_concepts>.`),note:jw.describe(`The ref of the note it comes from.`)}).strict()).max(30)}).strict();let Pw=Q({status:AS([`idle`,`queued`,`running`,`cancelled`,`failed`]),pendingNotes:X().int(),groups:X().int(),groupsDone:X().int(),error:Y().nullable(),concepts:X().int(),memories:X().int()}).strict();Q({concepts:Z(Q({id:Y(),name:Y(),notes:Z(Y())}).strict()),edges:Z(Q({from:Y(),to:Y(),kind:Nw,notes:Z(Y())}).strict())}).strict();let Fw=Z(Q({path:Y().min(1).max(512),text:Y().max(1e6)}).strict()).max(1e4);Q({name:Y().trim().min(1).max(120),files:Fw}).strict(),Q({files:Fw}).strict();let Iw=Q({id:Y(),name:Y(),source:$(`obsidian`),noteCount:X().int(),createdAt:Y().datetime(),updatedAt:Y().datetime(),distillation:Pw}).strict(),Lw=AS([`not_markdown`,`hidden`,`bad_path`,`duplicate`,`too_long`,`symlink`,`generated`]);Q({import:Iw,added:X().int(),updated:X().int(),removed:X().int(),unchanged:X().int(),skippedCount:X().int(),skipped:Z(Q({path:Y(),reason:Lw}).strict()),truncated:gS()}).strict(),Q({id:Y(),importId:Y(),path:Y(),title:Y(),aliases:Z(Y()),tags:Z(Y()),body:Y(),updatedAt:Y().datetime()}).strict(),Q({notes:Z(Q({id:Y(),path:Y(),title:Y(),tags:Z(Y())}).strict()),links:Z(Q({from:Y(),to:Y().nullable(),target:Y(),kind:AS([`link`,`embed`])}).strict())}).strict(),Q({mode:AS([`auto`,`local`]).default(`auto`),focus:Y().max(64).optional(),depth:tC().int().min(1).max(3).default(2),tag:Y().max(200).optional(),folder:Y().max(512).optional()}).strict();let Rw=AS([`note`,`ghost`,`tag`,`concept`]),zw=AS([`link`,`tag`,`concept`,`prerequisite`,`related`]);Q({mode:AS([`whole`,`local`]),focus:Y().nullable(),depth:X().int(),totalNotes:X().int(),matchingNotes:X().int(),truncated:gS(),nodes:Z(Q({id:Y(),kind:Rw,label:Y(),path:Y().optional(),notes:X().int().optional(),hops:X().int().optional()}).strict()),edges:Z(Q({from:Y(),to:Y(),kind:zw}).strict()),tags:Z(Q({name:Y(),notes:X().int()}).strict()),folders:Z(Q({path:Y(),notes:X().int()}).strict())}).strict(),Q({id:Y(),title:Y(),path:Y()}).strict();let Bw={algorithm_trace:{version:1,toolName:`show_algorithm_trace`,description:"Show the learner an interactive step-by-step trace of an algorithm running over a sequence (e.g. sliding window, two pointers, binary search, a simple sort). The learner steps through it with play/pause/step controls. Use it when watching state change step by step will make the idea click. Keep traces short (roughly 5-20 steps) and make each step's explanation say what changed and why. A code pane is optional: add `code` and each step's `lines` only when the code itself is the point, such as how an implementation's lines move the state, and leave it out when the idea matters more than any code. Write that code in the programming language the learner has shown proficiency in according to <learner_memories>; if they show none, use Python or pseudocode. Keep the code short, and highlight the lines each step is running. For code that doesn't move over a sequence, such as a plain function or a React render, use show_code_walkthrough instead of inventing an array.",spec:vC,input:cC(vC,[`title`,`steps.*.explanation`])},code_walkthrough:{version:1,toolName:`show_code_walkthrough`,description:`Show the learner a step-by-step walkthrough of a short piece of code that isn't about a sequence: a plain function's parameters, locals and return value, or a React component's renders, handlers and state updates. Each step highlights the source lines it is at and gives a complete snapshot of the visible state (\`variables\`) and the visible output (\`output\`, plain text such as printed lines or what the page shows, e.g. "Count: 0"); nothing carries over between steps, so repeat whatever still applies and use [] or "" for none. The source stays the same on every step. Use show_algorithm_trace instead for an algorithm moving over an array or other sequence, and show_graph for a component hierarchy. Keep the code short (a few to about 20 lines) and the walkthrough short (roughly 3-12 steps). Write the code in the language the concept belongs to (JSX for React); for a language-neutral idea, use the language the learner knows from <learner_memories>, else Python or pseudocode. The snapshots are your illustration, not a real run, so get them right. For React, keep the state a render or handler sees apart from updates it queues: inside a handler, state still has the value from the render it belongs to (name it, e.g. "handler.count" = 0, with "queued update" = "count + 1"), and the new value and its output appear only at the next render's step.`,spec:bC,input:cC(bC,[`title`,`steps.*.explanation`])},graph:{version:1,toolName:`show_graph`,description:`Show the learner a graph or tree, drawn for you, optionally with steps they can walk through. Use it for graphs, trees, BFS, DFS, shortest paths, spanning trees and tree traversals, whenever seeing the structure or watching an algorithm move over it will help. Never give coordinates: the layout is automatic. For a binary search tree or binary tree traversal, set kind to tree and give every edge a side, so a lone left child and a lone right child are drawn differently. The automatic layout may draw crossing edges that mean nothing, even when the graph is planar, so don't use this to show whether a graph is planar. Keep it small enough to read (roughly 4-15 nodes, 5-20 steps) and make each step's explanation say what changed and why. For a component hierarchy (such as React components), set kind to tree and directed to true, with one node per component instance (distinct ids for two instances of the same component, labelled with the short component name) and one edge from each parent to each child it renders, labelled with the props it passes (e.g. "count" or "onClick"). Use steps to highlight where state is owned and the nodes and edges its value flows through, with variables for simple state such as count = 1. The nodes and edges stay the same on every step: don't add callback edges back up the tree, and don't suggest that a component's output changes just because it re-renders.`,spec:JC,input:cC(JC,[`title`,`nodes.*.label`,`edges.*.label`,`steps.*.explanation`],(e,t)=>{e.nodes.forEach((e,n)=>{e.label===void 0&&sC(e.id,[`nodes`,n,`id`],t)})})},interview_context:{version:1,toolName:`ask_interview_context`,description:`Course placement interview only: ask the learner once, as the last question of the interview and in the same reply as the placement questions, whether there is anything else they want you to know about what they already understand or want to explore. They answer in their own words in the UI, or leave it blank; the answer is reported back to you with the placement results. Not graded.`,spec:EC,input:cC(EC,[`question`])},multiple_choice:{version:1,toolName:`ask_multiple_choice`,description:`Ask the learner one multiple-choice question to check understanding of a concept you just taught. Exactly one option is correct. Write plausible wrong options that reflect real misconceptions, and give per-option feedback where useful. The learner answers in the UI; the result is reported back to you on the next turn, so do not reveal the answer in your reply. For a code prediction, put the short snippet in a fenced code block in your reply text before this call and ask what it returns, prints or displays; the question and options render maths and plain text only, so never put code fences in them.`,spec:XC,input:cC(XC,[`question`,`options.*.text`,`options.*.feedback`,`explanation`])},placement_question:{version:1,toolName:`ask_placement_question`,description:`Course placement interview only: ask the learner one quick question to find out what they already know about one concept, before the syllabus is written. Use multiple choice, true/false or yes/no. The UI always adds "Not sure" and "Skip", so never include those as options. The learner answers in the UI and the result is reported back to you, so don't reveal the answer.`,spec:SC,input:cC(SC,[`question`,`options.*.text`,`explanation`])},set_diagram:{version:1,toolName:`show_set_diagram`,description:"Show the learner a Venn diagram of 1 to 3 sets, with what each region contains. Use it for set operations (union, intersection, complement, difference) and inclusion-exclusion, not for more than 3 sets. Keep elements short, because they are drawn in their region. Add steps to walk through it: each step highlights exact regions (any of them, including outside every set, which needs `universe`) and says what changed and why.",spec:uw,input:cC(uw,[`title`,`universe`,`sets.*.label`,`regions.*.elements.*`,`steps.*.explanation`,`steps.*.variables.*.name`,`steps.*.variables.*.value`])},table:{version:1,toolName:`show_table`,description:`Show the learner a table: a truth table, a relation matrix or other tabular working. Use it whenever the content is really rows and columns. Add steps when filling it in or highlighting it one part at a time will help, such as working out a truth table column by column; leave them out for a table to read at a glance. Keep steps short and make each explanation say what changed and why.`,spec:_w,input:cC(_w,[`title`,`columns.*`,`rowHeaders.*`,`rows.*.*`,`steps.*.explanation`,`steps.*.cells.*.value`])},worked_steps:{version:1,toolName:`show_worked_steps`,description:`Show the learner a proof, an induction or combinatorics working as a sequence of steps they reveal one at a time, each a statement with its justification. Use it when the reasoning is the point and each line follows from the ones before. Use show_algorithm_trace instead for an algorithm's state changing over a sequence.`,spec:yw,input:cC(yw,[`title`,`goal`,`steps.*.label`,`steps.*.statement`,`steps.*.justification`])}};AS(Object.keys(Bw));let Vw={id:Y(),createdAt:Y().datetime()},Hw=Q({answer:QC,grade:$C,createdAt:Y().datetime()}).strict(),Uw=Q({answer:DC,grade:OC,createdAt:Y().datetime()}).strict(),Ww=Q({answer:wC,grade:TC,createdAt:Y().datetime()}).strict();ES(`kind`,[Q({...Vw,kind:$(`algorithm_trace`),version:$(1),spec:vC}).strict(),Q({...Vw,kind:$(`code_walkthrough`),version:$(1),spec:bC}).strict(),Q({...Vw,kind:$(`graph`),version:$(1),spec:JC}).strict(),Q({...Vw,kind:$(`interview_context`),version:$(1),spec:EC,latestAttempt:Uw.optional()}).strict(),Q({...Vw,kind:$(`multiple_choice`),version:$(1),spec:ZC,latestAttempt:Hw.optional()}).strict(),Q({...Vw,kind:$(`placement_question`),version:$(1),spec:CC,latestAttempt:Ww.optional()}).strict(),Q({...Vw,kind:$(`set_diagram`),version:$(1),spec:uw}).strict(),Q({...Vw,kind:$(`table`),version:$(1),spec:_w}).strict(),Q({...Vw,kind:$(`worked_steps`),version:$(1),spec:yw}).strict()]);let Gw=e=>e!==null&&e<-2,Kw=e=>e===null||e<0||e===32,qw=e=>e!==null&&e>=48&&e<=57;function Jw(e,t,n){let r=0,i=0,a,o=null,s=t=>t===36?(e.consume(t),r+=1,s):r>2||r===1&&Kw(t)?n(t):(e.exit(`mathTextSequence`),c(t)),c=t=>{if(t===null||t===96)return n(t);if(t===36)return a=e.enter(`mathTextSequence`),i=0,d(t);if(t===32||Gw(t)){let n=t===32?`space`:`lineEnding`;return e.enter(n),e.consume(t),e.exit(n),o=t,c}return e.enter(`mathTextData`),l(t)},l=t=>t===null||t===96||t===32||t===36||Gw(t)?(e.exit(`mathTextData`),c(t)):(e.consume(t),o=t,t===92?u:l),u=t=>t!==36&&t!==92?l(t):(e.consume(t),o=t,l),d=s=>s===36?(e.consume(s),i+=1,d):i===r?qw(s)||r===1&&Kw(o)?n(s):(e.exit(`mathTextSequence`),e.exit(`mathText`),t(s)):r===1?n(s):(a.type=`mathTextData`,l(s));return t=>(e.enter(`mathText`),e.enter(`mathTextSequence`),s(t))}function Yw(){for(let e of this.data().micromarkExtensions??[]){let t=e.text?.[36];t&&(e.text[36]={...t,tokenize:Jw})}}let Xw=[`http:`,`https:`,`mailto:`];function Zw(e){try{let t=new URL(e);return Xw.includes(t.protocol)?t.href:``}catch{return``}}function Qw(){return(e,t)=>{let n=String(t.value),r=e=>{for(let t of e.children??[]){let e=t.position?.start.offset;t.type===`inlineMath`&&e!==void 0&&n.startsWith(`$$`,e)&&(t.data={...t.data,hProperties:{...t.data?.hProperties,className:[`language-math`,`math-display`]}}),r(t)}};r(e)}}let $w=[Bd,Qd,Yw,Qw],eT=Cm().use(Hf).use($w).use(Jp,{allowDangerousHtml:!0}),tT=/* @__PURE__ */ new Map;function nT(e,t){let n=`${t?`D`:`I`}${e}`,r=tT.get(n);if(r!==void 0)return tT.delete(n),tT.set(n,r),r;let i;try{i=qa.renderToString(e,{displayMode:t,trust:!1,strict:`ignore`,throwOnError:!1,errorColor:`var(--destructive)`})}catch{return}return tT.set(n,i),tT.size>1e3&&tT.delete(tT.keys().next().value),i}let rT=e=>{let t=e.properties.className;return Array.isArray(t)?t.map(String):[]},iT=e=>e?.type===`element`&&e.tagName===`code`&&rT(e).includes(`language-math`),aT=e=>e.children.map(e=>e.type===`text`?e.value:``).join(``);function oT(e){let t=eT.runSync(eT.parse(e),e),n=[],r=(e,t)=>{let r=nT(e,t);return r===void 0?{type:`element`,tagName:`span`,properties:{className:[`katex-error`]},children:[{type:`text`,value:e}]}:(n.push(r),{type:`element`,tagName:`span`,properties:{className:[`math-text-formula`],dataFormula:n.length-1},children:[]})};return Js(t,(e,t,n)=>{if(delete e.position,n&&t!==void 0){if(e.type===`raw`)n.children[t]={type:`text`,value:e.value};else if(e.type===`element`){if(e.tagName===`pre`&&e.children.length===1&&iT(e.children[0]))return n.children[t]=r(aT(e.children[0]).replace(/\n$/,``),!0),`skip`;if(iT(e))return n.children[t]=r(aT(e),rT(e).includes(`math-display`)),`skip`;for(let[t,n]of Object.entries(u))Object.hasOwn(e.properties,t)&&(n===null||n.includes(e.tagName))&&(e.properties[t]=Zw(String(e.properties[t]??``)))}}}),{tree:t,formulas:n}}let sT=self;sT.onmessage=e=>{let{id:t,text:n}=e.data,r;try{r={id:t,block:oT(n)}}catch{r={id:t}}sT.postMessage(r)}})();