mulmoclaude 2.4.1 → 2.5.0

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 (115) hide show
  1. package/README.md +1 -0
  2. package/client/assets/{AllPackages-Dw2RXFr1.js → AllPackages-BEk5YJDm.js} +1 -1
  3. package/client/assets/{BaseConfiguration-D3cG9hNe.js → BaseConfiguration-BNAavVmS.js} +1 -1
  4. package/client/assets/{Element-Cv7I_0yC.js → Element-9N081W6i.js} +1 -1
  5. package/client/assets/{Entities-C8-4eSNA.js → Entities-CStqDzQa.js} +1 -1
  6. package/client/assets/{FunctionList-vF4juMGB.js → FunctionList-BiRbmGuH.js} +1 -1
  7. package/client/assets/{InputJax-DgXeQ-Ah.js → InputJax-BIXwEG13.js} +1 -1
  8. package/client/assets/{JsonEditor-ZvNJuqs_.js → JsonEditor-FKfzzMkt.js} +1 -1
  9. package/client/assets/{MathItem-Detxmt2G.js → MathItem-BGdp9nCn.js} +1 -1
  10. package/client/assets/{MmlFactory-CIQ3138s.js → MmlFactory-BtWqthmC.js} +1 -1
  11. package/client/assets/{Options-DmQY5iBM.js → Options-D4NRwRVE.js} +1 -1
  12. package/client/assets/{OutputJax-CAQGaq8b.js → OutputJax-ClIqqRdT.js} +1 -1
  13. package/client/assets/{PrioritizedList-kZ7_WZX-.js → PrioritizedList-CnJ310Kt.js} +1 -1
  14. package/client/assets/{Styles-B53-i2nc.js → Styles-D3y1lCFc.js} +1 -1
  15. package/client/assets/{TeXAtom-Dwnbvu2N.js → TeXAtom-ZEaqimtW.js} +1 -1
  16. package/client/assets/__vite-browser-external-B2LgiLf-.js +1 -0
  17. package/client/assets/{abnfDiagram-YUKMZFIV-D2izv3tI.js → abnfDiagram-WEYOIA3C-BscsEU67.js} +1 -1
  18. package/client/assets/{arc-Dy-vWwtK.js → arc-Dl4OzSiI.js} +1 -1
  19. package/client/assets/{architectureDiagram-47P4ROYG-BMqz_hfK.js → architectureDiagram-ZHVYKT53-DVrv2QNl.js} +1 -1
  20. package/client/assets/{assistive-mml-BBZjDstH.js → assistive-mml-x7F99dtt.js} +1 -1
  21. package/client/assets/{blockDiagram-E7TT5TSB-BC_6nVzg.js → blockDiagram-RJAE7QA3-CL9VjhIy.js} +1 -1
  22. package/client/assets/{c4Diagram-CRA5TL53-CMlgEq-D.js → c4Diagram-XDPPPE54-ClAuW1Su.js} +1 -1
  23. package/client/assets/channel-C7tbw03E.js +1 -0
  24. package/client/assets/{chunk-AW2ZBBNX-CRAjzqLf.js → chunk-2E7WHVMD-BpfatsVl.js} +1 -1
  25. package/client/assets/{chunk-HTAEGDNF-BpIQa4ai.js → chunk-4EMNKR2T-CNryqYUD.js} +1 -1
  26. package/client/assets/{chunk-7TKQ45FW-BY_vhyym.js → chunk-55XCU76K-CQJx4wsK.js} +1 -1
  27. package/client/assets/{chunk-3YJQHVM4-B_LDijS0.js → chunk-7S6XSTFO-B8TJqaKm.js} +1 -1
  28. package/client/assets/{chunk-E2ZNV5FY-CRk3Pfq3.js → chunk-AQDTSKZB-dUGlA8XM.js} +1 -1
  29. package/client/assets/{chunk-VPRB5NB3-CYQe0pjV.js → chunk-DSNLSHJZ-Bc29O7Kj.js} +2 -2
  30. package/client/assets/chunk-HAGFOTED-SRXWMJmA.js +62 -0
  31. package/client/assets/chunk-HNE4Q36P-XIsiGulF.js +1 -0
  32. package/client/assets/{chunk-EU5HNXII-C7SKkz7x.js → chunk-NQOKRVIF-CNDyB28A.js} +1 -1
  33. package/client/assets/{chunk-4EA7E6EY-DB8ZoOxD.js → chunk-UHW7PFBP-D7z_YIHC.js} +1 -1
  34. package/client/assets/{chunk-KQW6MTUR-CzqgqmsR.js → chunk-VQ5W62QI-CfTNhJXC.js} +1 -1
  35. package/client/assets/chunk-WQQL4CDK--oD9-mIV.js +10 -0
  36. package/client/assets/{chunk-XXDRQBXY-DCiQN07N.js → chunk-XXDRQBXY-BuQ7FvNe.js} +1 -1
  37. package/client/assets/{chunk-HJ2JQQFS-CdiwUyEn.js → chunk-YZO67HFG-CVfUxFvr.js} +1 -1
  38. package/client/assets/{chunk-DBDB3WZW-CfsLqRL8.js → chunk-ZAUX2LTX-DPy60Elv.js} +1 -1
  39. package/client/assets/{chunk-FVRAUYC3-9lHES_Ib.js → chunk-ZCHMQSOR-4NYZgH42.js} +1 -1
  40. package/client/assets/{classDiagram-v2-K4WV4PDN-BNPHLuup.js → classDiagram-v2-4MYWR3UA-lJp1Kd7m.js} +1 -1
  41. package/client/assets/{cose-bilkent-JH36ORCC-dF6741Or.js → cose-bilkent-JH36ORCC-DcDTRz3u.js} +1 -1
  42. package/client/assets/{cynefinDiagram-3GCD6N5R-4XXRJFyl.js → cynefinDiagram-WF24UDRP-QSqrt6_X.js} +1 -1
  43. package/client/assets/{dagre-W4DXFKR2-PkNbgDcl.js → dagre-NK4GIZVX-8E7OP13B.js} +1 -1
  44. package/client/assets/{diagram-OVF4WLC6-Cy-3YXv9.js → diagram-CBK3MWTC-C2JHQxLJ.js} +1 -1
  45. package/client/assets/{diagram-UMYRVEAY-BWotPjlO.js → diagram-I5XIIV2D-xBXWQfqG.js} +1 -1
  46. package/client/assets/{diagram-PFPMY2P6-ckbdhYhd.js → diagram-ODIL2UCW-sA3o0YaV.js} +1 -1
  47. package/client/assets/{diagram-ZIFT7M5P-DIZ_YPN4.js → diagram-PFBEJUXE-Bzk9qOX0.js} +1 -1
  48. package/client/assets/{diagram-YEKJPTXX-Drfsm5Ei.js → diagram-RJA3I4VV-BwqRpVus.js} +1 -1
  49. package/client/assets/{diagram-2UJZ2QOL-D5UsCT69.js → diagram-TYUNFSNR-DOTRQeA3.js} +1 -1
  50. package/client/assets/{dist-DovUe4bX.js → dist-COSwdJCZ.js} +1 -1
  51. package/client/assets/{ebnfDiagram-VR2GEFS7-BZqd1z6D.js → ebnfDiagram-V4P3TTPT-C39RhWYu.js} +1 -1
  52. package/client/assets/elk-QONTBCTQ-dPy-h9Po.js +27 -0
  53. package/client/assets/{erDiagram-O2IAPWRE-B62N9MOe.js → erDiagram-KYQIGQAA-B5Fn1BL_.js} +1 -1
  54. package/client/assets/flowDiagram-IUGLLWBU-sQjDH9CV.js +1 -0
  55. package/client/assets/{ganttDiagram-R7TSEDQI-yzG4IDV2.js → ganttDiagram-R7GPNTJY-DSvw-AAx.js} +1 -1
  56. package/client/assets/{gitGraphDiagram-XJZIOB7I-DKNU3c7Q.js → gitGraphDiagram-PDYL7XHY-DwXIb1T8.js} +1 -1
  57. package/client/assets/{heic2any-B4wtRmxS.js → heic2any-7DJPuAa-.js} +1 -1
  58. package/client/assets/{html-CR7kQNkU.js → html-Ct7pOTau.js} +1 -1
  59. package/client/assets/index-BII5bTJI.css +2 -0
  60. package/client/assets/{index-CkmW0yWc.js → index-CoMmb_Su.js} +2170 -411
  61. package/client/assets/{infoDiagram-5W2HQ5XZ-1fGGWi6i.js → infoDiagram-MVDRKAX5-BP0sp6PG.js} +1 -1
  62. package/client/assets/{ishikawaDiagram-K3B6WC7H-D8UbvNjQ.js → ishikawaDiagram-HPEHV2GE-DkZCnfkB.js} +1 -1
  63. package/client/assets/{journeyDiagram-COXZFDF6-DODfPsn6.js → journeyDiagram-BOSHW7O7-C5lBrmWk.js} +1 -1
  64. package/client/assets/{kanban-definition-P3RFRI5V-C_4kym-D.js → kanban-definition-FNSA4HC5-k1P4cerJ.js} +1 -1
  65. package/client/assets/katex-B940_AAO.js +257 -0
  66. package/client/assets/{lengths-BWBolkW1.js → lengths-DaFrXNkv.js} +1 -1
  67. package/client/assets/{line-CHud_SQT.js → line-DG8MUuK4.js} +1 -1
  68. package/client/assets/{linear-N0xOv4AO.js → linear-QypFZXrA.js} +1 -1
  69. package/client/assets/{liteAdaptor-BcJ0akeI.js → liteAdaptor-Bcghdd_u.js} +1 -1
  70. package/client/assets/{manifold-DUBpAdN8.js → manifold-CyOGI3vv.js} +2 -2
  71. package/client/assets/{marp-OXXg-yyV.js → marp-uBg3qXiP.js} +1 -1
  72. package/client/assets/{mathjax-B2LxS74s.js → mathjax-D7JHkqwo.js} +1 -1
  73. package/client/assets/{mermaid.core-Ck4FoAPC.js → mermaid.core-DGklhdAB.js} +5 -5
  74. package/client/assets/{mindmap-definition-LZFPQGKD-2U3eDZgj.js → mindmap-definition-6OY57UG3-gzS6FyZY.js} +11 -9
  75. package/client/assets/{mo-C-TLAbzI.js → mo-BjiDe2hG.js} +1 -1
  76. package/client/assets/{pegDiagram-BGZESJAR-CPSrx-ye.js → pegDiagram-ECIUJNBX-Cq66EodD.js} +1 -1
  77. package/client/assets/{pieDiagram-CAPJLFHJ-5f_PIyeW.js → pieDiagram-GNMPY74T-xAtnNnqX.js} +1 -1
  78. package/client/assets/purify.es-BXhPiKO5.js +3 -0
  79. package/client/assets/{quadrantDiagram-GDMTTRAM-DtTnwXGk.js → quadrantDiagram-D57K4MC3-Du892PsV.js} +1 -1
  80. package/client/assets/{railroadDiagram-SM67HX2B-D_vgpY1Q.js → railroadDiagram-Y72NRBL7-CKdD2y_X.js} +1 -1
  81. package/client/assets/{requirementDiagram-X7JNWC4A-D73sEQMU.js → requirementDiagram-EQYSW5RA-Bq_GbYUM.js} +1 -1
  82. package/client/assets/{runtime-protocol-vue-CSgbWzhp.js → runtime-protocol-vue-DDgG0sdu.js} +1 -1
  83. package/client/assets/{runtime-vue-vwmCYkQi.js → runtime-vue-D3lOcL9y.js} +1 -1
  84. package/client/assets/{sankeyDiagram-UM26HJRW-D937W4Di.js → sankeyDiagram-SY24JHO5-CfVDH0Xd.js} +1 -1
  85. package/client/assets/{sequenceDiagram-ZO4K6R2Y-CQxSGPhF.js → sequenceDiagram-BLEHNHQU-BfLzBJr6.js} +1 -1
  86. package/client/assets/{src-tZFcq4Tp.js → src-BgGykKNK.js} +1 -1
  87. package/client/assets/{stateDiagram-v2-TBUQTH76-Dh3_ywoS.js → stateDiagram-v2-A6IESKWZ-Drw4P5gp.js} +1 -1
  88. package/client/assets/{svg-DmHVKe1q.js → svg-Cqon0dX1.js} +1 -1
  89. package/client/assets/swimlanes-B3ENRKFQ-BQFHcOaN.js +1 -0
  90. package/client/assets/swimlanesDiagram-AYQRV4AK-BCeSnUvS.js +8 -0
  91. package/client/assets/{tex-ClbW-kMH.js → tex-CPHJ5d-t.js} +1 -1
  92. package/client/assets/{timeline-definition-YOQAKGHF-CLrIBvH8.js → timeline-definition-JXYKGLGB-DKG-sSoZ.js} +1 -1
  93. package/client/assets/{usecaseDiagram-VIAY4XPW-E2sLzIvc.js → usecaseDiagram-WPOLBNNX-6b-VgS7o.js} +1 -1
  94. package/client/assets/{vennDiagram-BLWOH2XV-DRtM4O4i.js → vennDiagram-Q3Y3IDCW-DWz364sx.js} +1 -1
  95. package/client/assets/{vue-i18n-BbRMUmOW.js → vue-i18n-2bgWpywp.js} +1 -1
  96. package/client/assets/{vue-C_VSdwOG.js → vue-imO0VoyF.js} +1 -1
  97. package/client/assets/vue.runtime.esm-bundler-Cwm3cFXF.js +5 -0
  98. package/client/assets/{wardleyDiagram-YMQ3BMBF-CK584zEb.js → wardleyDiagram-IVAIDKWA-C43sB-35.js} +1 -1
  99. package/client/assets/{xychartDiagram-TAQBALBS-D47LTZYZ.js → xychartDiagram-4URNHDU4-D-n9TuYW.js} +1 -1
  100. package/client/index.html +9 -9
  101. package/package.json +7 -6
  102. package/server/build/mcp-server.mjs +554 -552
  103. package/client/assets/__vite-browser-external-0OnNcCAs.js +0 -1
  104. package/client/assets/channel-D5MgCXLU.js +0 -1
  105. package/client/assets/chunk-2BW5OAIV-BmsIcsho.js +0 -10
  106. package/client/assets/chunk-NTY3LDVX-DJFUMgKq.js +0 -1
  107. package/client/assets/chunk-XC4XBNZT-Crw0ZTTY.js +0 -62
  108. package/client/assets/elk-IJKZMXRS-CU7dBhBG.js +0 -27
  109. package/client/assets/flowDiagram-OXPTDLAJ-BWPfh4Ws.js +0 -1
  110. package/client/assets/index-Da2v4SOh.css +0 -2
  111. package/client/assets/katex-DJhrJSbw.js +0 -257
  112. package/client/assets/purify.es-B0LuI4JX.js +0 -3
  113. package/client/assets/swimlanes-N4OXWK64-CzBA2aUH.js +0 -1
  114. package/client/assets/swimlanesDiagram-K3J5GTZL-DpGZyRA0.js +0 -8
  115. package/client/assets/vue.runtime.esm-bundler-C6akXk9q.js +0 -5
@@ -1 +1 @@
1
- import{Pr as e}from"./vue.runtime.esm-bundler-C6akXk9q.js";import{i as t,n,o as r,t as i}from"./mo-C-TLAbzI.js";var a=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMath=void 0;var i=t();e.MmlMath=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`math`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(t,n,r,i){this.attributes.get(`mode`)===`display`&&this.attributes.setInherited(`display`,`block`),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),n=!!this.attributes.get(`displaystyle`)||!this.attributes.get(`displaystyle`)&&this.attributes.get(`display`)===`block`,this.attributes.setInherited(`displaystyle`,n),r=this.attributes.get(`scriptlevel`)||this.constructor.defaults.scriptlevel,e.prototype.setChildInheritedAttributes.call(this,t,n,r,i)},t.defaults=r(r({},i.AbstractMmlLayoutNode.defaults),{mathvariant:`normal`,mathsize:`normal`,mathcolor:``,mathbackground:`transparent`,dir:`ltr`,scriptlevel:0,displaystyle:!1,display:`inline`,maxwidth:``,overflow:`linebreak`,altimg:``,"altimg-width":``,"altimg-height":``,"altimg-valign":``,alttext:``,cdgroup:``,scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:`8px`,infixlinebreakstyle:`before`,lineleading:`1ex`,linebreakmultchar:`⁢`,indentshift:`auto`,indentalign:`auto`,indenttarget:``,indentalignfirst:`indentalign`,indentshiftfirst:`indentshift`,indentalignlast:`indentalign`,indentshiftlast:`indentshift`}),t}(i.AbstractMmlLayoutNode)})),o=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMi=void 0;var i=t();e.MmlMi=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mi`},enumerable:!1,configurable:!0}),t.prototype.setInheritedAttributes=function(n,r,i,a){n===void 0&&(n={}),r===void 0&&(r=!1),i===void 0&&(i=0),a===void 0&&(a=!1),e.prototype.setInheritedAttributes.call(this,n,r,i,a),this.getText().match(t.singleCharacter)&&!n.mathvariant&&this.attributes.setInherited(`mathvariant`,`italic`)},t.prototype.setTeXclass=function(e){this.getPrevClass(e);var n=this.getText();return n.length>1&&n.match(t.operatorName)&&this.attributes.get(`mathvariant`)===`normal`&&this.getProperty(`autoOP`)===void 0&&this.getProperty(`texClass`)===void 0&&(this.texClass=i.TEXCLASS.OP,this.setProperty(`autoOP`,!0)),this},t.defaults=r({},i.AbstractMmlTokenNode.defaults),t.operatorName=/^[a-z][a-z0-9]*$/i,t.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/,t}(i.AbstractMmlTokenNode)})),s=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMn=void 0;var i=t();e.MmlMn=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mn`},enumerable:!1,configurable:!0}),t.defaults=r({},i.AbstractMmlTokenNode.defaults),t}(i.AbstractMmlTokenNode)})),c=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtext=void 0;var i=t();e.MmlMtext=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mtext`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=r({},i.AbstractMmlTokenNode.defaults),t}(i.AbstractMmlTokenNode)})),l=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMspace=void 0;var i=t();e.MmlMspace=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.NONE,t}return t.prototype.setTeXclass=function(e){return e},Object.defineProperty(t.prototype,"kind",{get:function(){return`mspace`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNewline",{get:function(){var e=this.attributes;return e.getExplicit(`width`)==null&&e.getExplicit(`height`)==null&&e.getExplicit(`depth`)==null&&e.get(`linebreak`)===`newline`},enumerable:!1,configurable:!0}),t.defaults=r(r({},i.AbstractMmlTokenNode.defaults),{width:`0em`,height:`0ex`,depth:`0ex`,linebreak:`auto`}),t}(i.AbstractMmlTokenNode)})),u=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMs=void 0;var i=t();e.MmlMs=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`ms`},enumerable:!1,configurable:!0}),t.defaults=r(r({},i.AbstractMmlTokenNode.defaults),{lquote:`"`,rquote:`"`}),t}(i.AbstractMmlTokenNode)})),d=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlInferredMrow=e.MmlMrow=void 0;var a=t(),o=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._core=null,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mrow`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){var e,t;try{for(var n=i(this.childNodes),r=n.next();!r.done;r=n.next())if(!r.value.isSpacelike)return!1}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){var e,t,n=!1,r=0;try{for(var a=i(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;if(s){if(s.isEmbellished){if(n)return!1;n=!0,this._core=r}else if(!s.isSpacelike)return!1}r++}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return n},enumerable:!1,configurable:!0}),t.prototype.core=function(){return!this.isEmbellished||this._core==null?this:this.childNodes[this._core]},t.prototype.coreMO=function(){return!this.isEmbellished||this._core==null?this:this.childNodes[this._core].coreMO()},t.prototype.nonSpaceLength=function(){var e,t,n=0;try{for(var r=i(this.childNodes),a=r.next();!a.done;a=r.next()){var o=a.value;o&&!o.isSpacelike&&n++}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},t.prototype.firstNonSpace=function(){var e,t;try{for(var n=i(this.childNodes),r=n.next();!r.done;r=n.next()){var a=r.value;if(a&&!a.isSpacelike)return a}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return null},t.prototype.lastNonSpace=function(){for(var e=this.childNodes.length;--e>=0;){var t=this.childNodes[e];if(t&&!t.isSpacelike)return t}return null},t.prototype.setTeXclass=function(e){var t,n,r,o;if(this.getProperty(`open`)!=null||this.getProperty(`close`)!=null){this.getPrevClass(e),e=null;try{for(var s=i(this.childNodes),c=s.next();!c.done;c=s.next()){var l=c.value;e=l.setTeXclass(e)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}this.texClass??=a.TEXCLASS.INNER}else{try{for(var u=i(this.childNodes),d=u.next();!d.done;d=u.next()){var l=d.value;e=l.setTeXclass(e)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}this.childNodes[0]&&this.updateTeXclass(this.childNodes[0])}return e},t.defaults=r({},a.AbstractMmlNode.defaults),t}(a.AbstractMmlNode);e.MmlMrow=o,e.MmlInferredMrow=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`inferredMrow`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInferred",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return`[`+this.childNodes.join(`,`)+`]`},t.defaults=o.defaults,t}(o)})),f=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfrac=void 0;var a=t();e.MmlMfrac=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mfrac`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){var t,n;this.getPrevClass(e);try{for(var r=i(this.childNodes),a=r.next();!a.done;a=r.next())a.value.setTeXclass(null)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},t.prototype.setChildInheritedAttributes=function(e,t,n,r){(!t||n>0)&&n++,this.childNodes[0].setInheritedAttributes(e,!1,n,r),this.childNodes[1].setInheritedAttributes(e,!1,n,!0)},t.defaults=r(r({},a.AbstractMmlBaseNode.defaults),{linethickness:`medium`,numalign:`center`,denomalign:`center`,bevelled:!1}),t}(a.AbstractMmlBaseNode)})),p=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMsqrt=void 0;var i=t();e.MmlMsqrt=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`msqrt`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.childNodes[0].setTeXclass(null),this},t.prototype.setChildInheritedAttributes=function(e,t,n,r){this.childNodes[0].setInheritedAttributes(e,t,n,!0)},t.defaults=r({},i.AbstractMmlNode.defaults),t}(i.AbstractMmlNode)})),m=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMroot=void 0;var i=t();e.MmlMroot=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mroot`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.childNodes[0].setTeXclass(null),this.childNodes[1].setTeXclass(null),this},t.prototype.setChildInheritedAttributes=function(e,t,n,r){this.childNodes[0].setInheritedAttributes(e,t,n,!0),this.childNodes[1].setInheritedAttributes(e,!1,n+2,r)},t.defaults=r({},i.AbstractMmlNode.defaults),t}(i.AbstractMmlNode)})),h=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMerror=void 0;var i=t();e.MmlMerror=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`merror`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=r({},i.AbstractMmlNode.defaults),t}(i.AbstractMmlNode)})),g=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMpadded=void 0;var i=t();e.MmlMpadded=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mpadded`},enumerable:!1,configurable:!0}),t.defaults=r(r({},i.AbstractMmlLayoutNode.defaults),{width:``,height:``,depth:``,lspace:0,voffset:0}),t}(i.AbstractMmlLayoutNode)})),_=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMphantom=void 0;var i=t();e.MmlMphantom=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mphantom`},enumerable:!1,configurable:!0}),t.defaults=r({},i.AbstractMmlLayoutNode.defaults),t}(i.AbstractMmlLayoutNode)})),v=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfenced=void 0;var a=t();e.MmlMfenced=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=a.TEXCLASS.INNER,t.separators=[],t.open=null,t.close=null,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mfenced`},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){this.getPrevClass(e),this.open&&(e=this.open.setTeXclass(e)),this.childNodes[0]&&(e=this.childNodes[0].setTeXclass(e));for(var t=1,n=this.childNodes.length;t<n;t++)this.separators[t-1]&&(e=this.separators[t-1].setTeXclass(e)),this.childNodes[t]&&(e=this.childNodes[t].setTeXclass(e));return this.close&&(e=this.close.setTeXclass(e)),this.updateTeXclass(this.open),e},t.prototype.setChildInheritedAttributes=function(t,n,r,a){var o,s;this.addFakeNodes();try{for(var c=i([this.open,this.close].concat(this.separators)),l=c.next();!l.done;l=c.next()){var u=l.value;u&&u.setInheritedAttributes(t,n,r,a)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(o)throw o.error}}e.prototype.setChildInheritedAttributes.call(this,t,n,r,a)},t.prototype.addFakeNodes=function(){var e,t,n=this.attributes.getList(`open`,`close`,`separators`),r=n.open,o=n.close,s=n.separators;if(r=r.replace(/[ \t\n\r]/g,``),o=o.replace(/[ \t\n\r]/g,``),s=s.replace(/[ \t\n\r]/g,``),r&&(this.open=this.fakeNode(r,{fence:!0,form:`prefix`},a.TEXCLASS.OPEN)),s){for(;s.length<this.childNodes.length-1;)s+=s.charAt(s.length-1);var c=0;try{for(var l=i(this.childNodes.slice(1)),u=l.next();!u.done;u=l.next())u.value&&this.separators.push(this.fakeNode(s.charAt(c++)))}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}}o&&(this.close=this.fakeNode(o,{fence:!0,form:`postfix`},a.TEXCLASS.CLOSE))},t.prototype.fakeNode=function(e,t,n){t===void 0&&(t={}),n===void 0&&(n=null);var r=this.factory.create(`text`).setText(e),i=this.factory.create(`mo`,t,[r]);return i.texClass=n,i.parent=this,i},t.defaults=r(r({},a.AbstractMmlNode.defaults),{open:`(`,close:`)`,separators:`,`}),t}(a.AbstractMmlNode)})),y=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMenclose=void 0;var i=t();e.MmlMenclose=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`menclose`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContininer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){return e=this.childNodes[0].setTeXclass(e),this.updateTeXclass(this.childNodes[0]),e},t.defaults=r(r({},i.AbstractMmlNode.defaults),{notation:`longdiv`}),t}(i.AbstractMmlNode)})),b=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMaction=void 0;var i=t();e.MmlMaction=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`maction`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){var e=this.attributes.get(`selection`),t=Math.max(1,Math.min(this.childNodes.length,e))-1;return this.childNodes[t]||this.factory.create(`mrow`)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){return this.selected.isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return this.selected.isSpacelike},enumerable:!1,configurable:!0}),t.prototype.core=function(){return this.selected.core()},t.prototype.coreMO=function(){return this.selected.coreMO()},t.prototype.verifyAttributes=function(t){if(e.prototype.verifyAttributes.call(this,t),this.attributes.get(`actiontype`)!==`toggle`&&this.attributes.getExplicit(`selection`)!==void 0){var n=this.attributes.getAllAttributes();delete n.selection}},t.prototype.setTeXclass=function(e){this.attributes.get(`actiontype`)===`tooltip`&&this.childNodes[1]&&this.childNodes[1].setTeXclass(null);var t=this.selected;return e=t.setTeXclass(e),this.updateTeXclass(t),e},t.prototype.nextToggleSelection=function(){var e=Math.max(1,this.attributes.get(`selection`)+1);e>this.childNodes.length&&(e=1),this.attributes.set(`selection`,e)},t.defaults=r(r({},i.AbstractMmlNode.defaults),{actiontype:`toggle`,selection:1}),t}(i.AbstractMmlNode)})),x=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMsup=e.MmlMsub=e.MmlMsubsup=void 0;var i=t(),a=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`msubsup`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sub",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sup",{get:function(){return 2},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,n,r){var i=this.childNodes;i[0].setInheritedAttributes(e,t,n,r),i[1].setInheritedAttributes(e,!1,n+1,r||this.sub===1),i[2]&&i[2].setInheritedAttributes(e,!1,n+1,r||this.sub===2)},t.defaults=r(r({},i.AbstractMmlBaseNode.defaults),{subscriptshift:``,superscriptshift:``}),t}(i.AbstractMmlBaseNode);e.MmlMsubsup=a,e.MmlMsub=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`msub`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=r({},a.defaults),t}(a),e.MmlMsup=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`msup`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sup",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sub",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=r({},a.defaults),t}(a)})),S=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMover=e.MmlMunder=e.MmlMunderover=void 0;var i=t(),a=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`munderover`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"under",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,n,r){var i=this.childNodes;i[0].setInheritedAttributes(e,t,n,r||!!i[this.over]);var a=!(t||!i[0].coreMO().attributes.get(`movablelimits`)),o=this.constructor.ACCENTS;i[1].setInheritedAttributes(e,!1,this.getScriptlevel(o[1],a,n),r||this.under===1),this.setInheritedAccent(1,o[1],t,n,r,a),i[2]&&(i[2].setInheritedAttributes(e,!1,this.getScriptlevel(o[2],a,n),r||this.under===2),this.setInheritedAccent(2,o[2],t,n,r,a))},t.prototype.getScriptlevel=function(e,t,n){return(t||!this.attributes.get(e))&&n++,n},t.prototype.setInheritedAccent=function(e,t,n,r,i,a){var o=this.childNodes[e];if(this.attributes.getExplicit(t)==null&&o.isEmbellished){var s=o.coreMO().attributes.get(`accent`);this.attributes.setInherited(t,s),s!==this.attributes.getDefault(t)&&o.setInheritedAttributes({},n,this.getScriptlevel(t,a,r),i)}},t.defaults=r(r({},i.AbstractMmlBaseNode.defaults),{accent:!1,accentunder:!1,align:`center`}),t.ACCENTS=[``,`accentunder`,`accent`],t}(i.AbstractMmlBaseNode);e.MmlMunderover=a,e.MmlMunder=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`munder`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=r({},a.defaults),t}(a),e.MmlMover=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mover`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"under",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=r({},a.defaults),t.ACCENTS=[``,`accent`,`accentunder`],t}(a)})),C=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlNone=e.MmlMprescripts=e.MmlMmultiscripts=void 0;var i=t(),a=x();e.MmlMmultiscripts=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mmultiscripts`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,n,r){this.childNodes[0].setInheritedAttributes(e,t,n,r);for(var i=!1,a=1,o=0;a<this.childNodes.length;a++){var s=this.childNodes[a];if(s.isKind(`mprescripts`)){if(!i&&(i=!0,a%2==0)){var c=this.factory.create(`mrow`);this.childNodes.splice(a,0,c),c.parent=this,a++}}else{var l=r||o%2==0;s.setInheritedAttributes(e,!1,n+1,l),o++}}this.childNodes.length%2==+!!i&&(this.appendChild(this.factory.create(`mrow`)),this.childNodes[this.childNodes.length-1].setInheritedAttributes(e,!1,n+1,r))},t.prototype.verifyChildren=function(t){for(var n=!1,r=t.fixMmultiscripts,i=0;i<this.childNodes.length;i++){var a=this.childNodes[i];a.isKind(`mprescripts`)&&(n?a.mError(a.kind+` can only appear once in `+this.kind,t,!0):(n=!0,i%2==0&&!r&&this.mError(`There must be an equal number of prescripts of each type`,t)))}this.childNodes.length%2==+!!n&&!r&&this.mError(`There must be an equal number of scripts of each type`,t),e.prototype.verifyChildren.call(this,t)},t.defaults=r({},a.MmlMsubsup.defaults),t}(a.MmlMsubsup),e.MmlMprescripts=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mprescripts`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),t.prototype.verifyTree=function(t){e.prototype.verifyTree.call(this,t),this.parent&&!this.parent.isKind(`mmultiscripts`)&&this.mError(this.kind+` must be a child of mmultiscripts`,t,!0)},t.defaults=r({},i.AbstractMmlNode.defaults),t}(i.AbstractMmlNode),e.MmlNone=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`none`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),t.prototype.verifyTree=function(t){e.prototype.verifyTree.call(this,t),this.parent&&!this.parent.isKind(`mmultiscripts`)&&this.mError(this.kind+` must be a child of mmultiscripts`,t,!0)},t.defaults=r({},i.AbstractMmlNode.defaults),t}(i.AbstractMmlNode)})),w=e((e=>{var r=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),i=e&&e.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtable=void 0;var o=t(),s=n();e.MmlMtable=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.properties={useHeight:!0},t.texclass=o.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mtable`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setInheritedAttributes=function(t,n,r,i){var s,c;try{for(var l=a(o.indentAttributes),u=l.next();!u.done;u=l.next()){var d=u.value;t[d]&&this.attributes.setInherited(d,t[d][1]),this.attributes.getExplicit(d)!==void 0&&delete this.attributes.getAllAttributes()[d]}}catch(e){s={error:e}}finally{try{u&&!u.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}e.prototype.setInheritedAttributes.call(this,t,n,r,i)},t.prototype.setChildInheritedAttributes=function(e,t,n,r){var i,o,c,l;try{for(var u=a(this.childNodes),d=u.next();!d.done;d=u.next()){var f=d.value;f.isKind(`mtr`)||this.replaceChild(this.factory.create(`mtr`),f).appendChild(f)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}n=this.getProperty(`scriptlevel`)||n,t=!!(this.attributes.getExplicit(`displaystyle`)||this.attributes.getDefault(`displaystyle`)),e=this.addInheritedAttributes(e,{columnalign:this.attributes.get(`columnalign`),rowalign:`center`});var p=this.attributes.getExplicit(`data-cramped`),m=(0,s.split)(this.attributes.get(`rowalign`));try{for(var h=a(this.childNodes),g=h.next();!g.done;g=h.next()){var f=g.value;e.rowalign[1]=m.shift()||e.rowalign[1],f.setInheritedAttributes(e,t,n,!!p)}}catch(e){c={error:e}}finally{try{g&&!g.done&&(l=h.return)&&l.call(h)}finally{if(c)throw c.error}}},t.prototype.verifyChildren=function(t){for(var n=null,r=this.factory,i=0;i<this.childNodes.length;i++){var a=this.childNodes[i];if(a.isKind(`mtr`))n=null;else{var o=a.isKind(`mtd`);if(n?(this.removeChild(a),i--):n=this.replaceChild(r.create(`mtr`),a),n.appendChild(o?a:r.create(`mtd`,{},[a])),!t.fixMtables){a.parent.removeChild(a),a.parent=this,o&&n.appendChild(r.create(`mtd`));var s=a.mError(`Children of `+this.kind+` must be mtr or mlabeledtr`,t,o);n.childNodes[n.childNodes.length-1].appendChild(s)}}}e.prototype.verifyChildren.call(this,t)},t.prototype.setTeXclass=function(e){var t,n;this.getPrevClass(e);try{for(var r=a(this.childNodes),i=r.next();!i.done;i=r.next())i.value.setTeXclass(null)}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},t.defaults=i(i({},o.AbstractMmlNode.defaults),{align:`axis`,rowalign:`baseline`,columnalign:`center`,groupalign:`{left}`,alignmentscope:!0,columnwidth:`auto`,width:`auto`,rowspacing:`1ex`,columnspacing:`.8em`,rowlines:`none`,columnlines:`none`,frame:`none`,framespacing:`0.4em 0.5ex`,equalrows:!1,equalcolumns:!1,displaystyle:!1,side:`right`,minlabelspacing:`0.8em`}),t}(o.AbstractMmlNode)})),T=e((e=>{var i=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),a=e&&e.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)},o=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMlabeledtr=e.MmlMtr=void 0;var s=t(),c=r(),l=n(),u=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mtr`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,n,r){var i,a,s,c;try{for(var u=o(this.childNodes),d=u.next();!d.done;d=u.next()){var f=d.value;f.isKind(`mtd`)||this.replaceChild(this.factory.create(`mtd`),f).appendChild(f)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}var p=(0,l.split)(this.attributes.get(`columnalign`));this.arity===1&&p.unshift(this.parent.attributes.get(`side`)),e=this.addInheritedAttributes(e,{rowalign:this.attributes.get(`rowalign`),columnalign:`center`});try{for(var m=o(this.childNodes),h=m.next();!h.done;h=m.next()){var f=h.value;e.columnalign[1]=p.shift()||e.columnalign[1],f.setInheritedAttributes(e,t,n,r)}}catch(e){s={error:e}}finally{try{h&&!h.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}},t.prototype.verifyChildren=function(t){var n,r;if(this.parent&&!this.parent.isKind(`mtable`))this.mError(this.kind+` can only be a child of an mtable`,t,!0);else{try{for(var i=o(this.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;s.isKind(`mtd`)||(this.replaceChild(this.factory.create(`mtd`),s).appendChild(s),t.fixMtables||s.mError(`Children of `+this.kind+` must be mtd`,t))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.prototype.verifyChildren.call(this,t)}},t.prototype.setTeXclass=function(e){var t,n;this.getPrevClass(e);try{for(var r=o(this.childNodes),i=r.next();!i.done;i=r.next())i.value.setTeXclass(null)}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},t.defaults=a(a({},s.AbstractMmlNode.defaults),{rowalign:c.INHERIT,columnalign:c.INHERIT,groupalign:c.INHERIT}),t}(s.AbstractMmlNode);e.MmlMtr=u,e.MmlMlabeledtr=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mlabeledtr`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(u)})),E=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),i=e&&e.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtd=void 0;var a=t(),o=r();e.MmlMtd=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mtd`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.verifyChildren=function(t){this.parent&&!this.parent.isKind(`mtr`)?this.mError(this.kind+` can only be a child of an mtr or mlabeledtr`,t,!0):e.prototype.verifyChildren.call(this,t)},t.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.childNodes[0].setTeXclass(null),this},t.defaults=i(i({},a.AbstractMmlBaseNode.defaults),{rowspan:1,columnspan:1,rowalign:o.INHERIT,columnalign:o.INHERIT,groupalign:o.INHERIT}),t}(a.AbstractMmlBaseNode)})),D=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMglyph=void 0;var i=t();e.MmlMglyph=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mglyph`},enumerable:!1,configurable:!0}),t.prototype.verifyAttributes=function(t){var n=this.attributes.getList(`src`,`fontfamily`,`index`),r=n.src,i=n.fontfamily,a=n.index;r===``&&(i===``||a===``)?this.mError(`mglyph must have either src or fontfamily and index attributes`,t,!0):e.prototype.verifyAttributes.call(this,t)},t.defaults=r(r({},i.AbstractMmlTokenNode.defaults),{alt:``,src:``,index:``,width:`auto`,height:`auto`,valign:`0em`}),t}(i.AbstractMmlTokenNode)})),O=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlAnnotation=e.MmlAnnotationXML=e.MmlSemantics=void 0;var i=t();e.MmlSemantics=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`semantics`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=r(r({},i.AbstractMmlBaseNode.defaults),{definitionUrl:null,encoding:null}),t}(i.AbstractMmlBaseNode);var a=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`annotation-xml`},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(){},t.defaults=r(r({},i.AbstractMmlNode.defaults),{definitionUrl:null,encoding:null,cd:`mathmlkeys`,name:``,src:null}),t}(i.AbstractMmlNode);e.MmlAnnotationXML=a,e.MmlAnnotation=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.properties={isChars:!0},t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`annotation`},enumerable:!1,configurable:!0}),t.defaults=r({},a.defaults),t}(a)})),k=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.TeXAtom=void 0;var a=t(),o=i(),s=function(e){n(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.texclass=a.TEXCLASS.ORD,i.setProperty(`texClass`,i.texClass),i}return Object.defineProperty(t.prototype,"kind",{get:function(){return`TeXAtom`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return this.childNodes[0]&&this.childNodes[0].childNodes.length===1},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){return this.childNodes[0].setTeXclass(null),this.adjustTeXclass(e)},t.prototype.adjustTeXclass=function(e){return e},t.defaults=r({},a.AbstractMmlBaseNode.defaults),t}(a.AbstractMmlBaseNode);e.TeXAtom=s,s.prototype.adjustTeXclass=o.MmlMo.prototype.adjustTeXclass}));export{s as C,c as S,a as T,p as _,T as a,u as b,S as c,y as d,v as f,m as g,h,E as i,x as l,g as m,O as n,w as o,_ as p,D as r,C as s,k as t,b as u,f as v,o as w,l as x,d as y};
1
+ import{Pr as e}from"./vue.runtime.esm-bundler-Cwm3cFXF.js";import{i as t,n,o as r,t as i}from"./mo-BjiDe2hG.js";var a=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMath=void 0;var i=t();e.MmlMath=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`math`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(t,n,r,i){this.attributes.get(`mode`)===`display`&&this.attributes.setInherited(`display`,`block`),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),n=!!this.attributes.get(`displaystyle`)||!this.attributes.get(`displaystyle`)&&this.attributes.get(`display`)===`block`,this.attributes.setInherited(`displaystyle`,n),r=this.attributes.get(`scriptlevel`)||this.constructor.defaults.scriptlevel,e.prototype.setChildInheritedAttributes.call(this,t,n,r,i)},t.defaults=r(r({},i.AbstractMmlLayoutNode.defaults),{mathvariant:`normal`,mathsize:`normal`,mathcolor:``,mathbackground:`transparent`,dir:`ltr`,scriptlevel:0,displaystyle:!1,display:`inline`,maxwidth:``,overflow:`linebreak`,altimg:``,"altimg-width":``,"altimg-height":``,"altimg-valign":``,alttext:``,cdgroup:``,scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:`8px`,infixlinebreakstyle:`before`,lineleading:`1ex`,linebreakmultchar:`⁢`,indentshift:`auto`,indentalign:`auto`,indenttarget:``,indentalignfirst:`indentalign`,indentshiftfirst:`indentshift`,indentalignlast:`indentalign`,indentshiftlast:`indentshift`}),t}(i.AbstractMmlLayoutNode)})),o=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMi=void 0;var i=t();e.MmlMi=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mi`},enumerable:!1,configurable:!0}),t.prototype.setInheritedAttributes=function(n,r,i,a){n===void 0&&(n={}),r===void 0&&(r=!1),i===void 0&&(i=0),a===void 0&&(a=!1),e.prototype.setInheritedAttributes.call(this,n,r,i,a),this.getText().match(t.singleCharacter)&&!n.mathvariant&&this.attributes.setInherited(`mathvariant`,`italic`)},t.prototype.setTeXclass=function(e){this.getPrevClass(e);var n=this.getText();return n.length>1&&n.match(t.operatorName)&&this.attributes.get(`mathvariant`)===`normal`&&this.getProperty(`autoOP`)===void 0&&this.getProperty(`texClass`)===void 0&&(this.texClass=i.TEXCLASS.OP,this.setProperty(`autoOP`,!0)),this},t.defaults=r({},i.AbstractMmlTokenNode.defaults),t.operatorName=/^[a-z][a-z0-9]*$/i,t.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/,t}(i.AbstractMmlTokenNode)})),s=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMn=void 0;var i=t();e.MmlMn=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mn`},enumerable:!1,configurable:!0}),t.defaults=r({},i.AbstractMmlTokenNode.defaults),t}(i.AbstractMmlTokenNode)})),c=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtext=void 0;var i=t();e.MmlMtext=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mtext`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=r({},i.AbstractMmlTokenNode.defaults),t}(i.AbstractMmlTokenNode)})),l=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMspace=void 0;var i=t();e.MmlMspace=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.NONE,t}return t.prototype.setTeXclass=function(e){return e},Object.defineProperty(t.prototype,"kind",{get:function(){return`mspace`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNewline",{get:function(){var e=this.attributes;return e.getExplicit(`width`)==null&&e.getExplicit(`height`)==null&&e.getExplicit(`depth`)==null&&e.get(`linebreak`)===`newline`},enumerable:!1,configurable:!0}),t.defaults=r(r({},i.AbstractMmlTokenNode.defaults),{width:`0em`,height:`0ex`,depth:`0ex`,linebreak:`auto`}),t}(i.AbstractMmlTokenNode)})),u=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMs=void 0;var i=t();e.MmlMs=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`ms`},enumerable:!1,configurable:!0}),t.defaults=r(r({},i.AbstractMmlTokenNode.defaults),{lquote:`"`,rquote:`"`}),t}(i.AbstractMmlTokenNode)})),d=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlInferredMrow=e.MmlMrow=void 0;var a=t(),o=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._core=null,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mrow`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){var e,t;try{for(var n=i(this.childNodes),r=n.next();!r.done;r=n.next())if(!r.value.isSpacelike)return!1}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){var e,t,n=!1,r=0;try{for(var a=i(this.childNodes),o=a.next();!o.done;o=a.next()){var s=o.value;if(s){if(s.isEmbellished){if(n)return!1;n=!0,this._core=r}else if(!s.isSpacelike)return!1}r++}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return n},enumerable:!1,configurable:!0}),t.prototype.core=function(){return!this.isEmbellished||this._core==null?this:this.childNodes[this._core]},t.prototype.coreMO=function(){return!this.isEmbellished||this._core==null?this:this.childNodes[this._core].coreMO()},t.prototype.nonSpaceLength=function(){var e,t,n=0;try{for(var r=i(this.childNodes),a=r.next();!a.done;a=r.next()){var o=a.value;o&&!o.isSpacelike&&n++}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},t.prototype.firstNonSpace=function(){var e,t;try{for(var n=i(this.childNodes),r=n.next();!r.done;r=n.next()){var a=r.value;if(a&&!a.isSpacelike)return a}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return null},t.prototype.lastNonSpace=function(){for(var e=this.childNodes.length;--e>=0;){var t=this.childNodes[e];if(t&&!t.isSpacelike)return t}return null},t.prototype.setTeXclass=function(e){var t,n,r,o;if(this.getProperty(`open`)!=null||this.getProperty(`close`)!=null){this.getPrevClass(e),e=null;try{for(var s=i(this.childNodes),c=s.next();!c.done;c=s.next()){var l=c.value;e=l.setTeXclass(e)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}this.texClass??=a.TEXCLASS.INNER}else{try{for(var u=i(this.childNodes),d=u.next();!d.done;d=u.next()){var l=d.value;e=l.setTeXclass(e)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}this.childNodes[0]&&this.updateTeXclass(this.childNodes[0])}return e},t.defaults=r({},a.AbstractMmlNode.defaults),t}(a.AbstractMmlNode);e.MmlMrow=o,e.MmlInferredMrow=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`inferredMrow`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInferred",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return`[`+this.childNodes.join(`,`)+`]`},t.defaults=o.defaults,t}(o)})),f=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfrac=void 0;var a=t();e.MmlMfrac=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mfrac`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){var t,n;this.getPrevClass(e);try{for(var r=i(this.childNodes),a=r.next();!a.done;a=r.next())a.value.setTeXclass(null)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},t.prototype.setChildInheritedAttributes=function(e,t,n,r){(!t||n>0)&&n++,this.childNodes[0].setInheritedAttributes(e,!1,n,r),this.childNodes[1].setInheritedAttributes(e,!1,n,!0)},t.defaults=r(r({},a.AbstractMmlBaseNode.defaults),{linethickness:`medium`,numalign:`center`,denomalign:`center`,bevelled:!1}),t}(a.AbstractMmlBaseNode)})),p=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMsqrt=void 0;var i=t();e.MmlMsqrt=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`msqrt`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.childNodes[0].setTeXclass(null),this},t.prototype.setChildInheritedAttributes=function(e,t,n,r){this.childNodes[0].setInheritedAttributes(e,t,n,!0)},t.defaults=r({},i.AbstractMmlNode.defaults),t}(i.AbstractMmlNode)})),m=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMroot=void 0;var i=t();e.MmlMroot=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mroot`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.childNodes[0].setTeXclass(null),this.childNodes[1].setTeXclass(null),this},t.prototype.setChildInheritedAttributes=function(e,t,n,r){this.childNodes[0].setInheritedAttributes(e,t,n,!0),this.childNodes[1].setInheritedAttributes(e,!1,n+2,r)},t.defaults=r({},i.AbstractMmlNode.defaults),t}(i.AbstractMmlNode)})),h=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMerror=void 0;var i=t();e.MmlMerror=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`merror`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=r({},i.AbstractMmlNode.defaults),t}(i.AbstractMmlNode)})),g=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMpadded=void 0;var i=t();e.MmlMpadded=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mpadded`},enumerable:!1,configurable:!0}),t.defaults=r(r({},i.AbstractMmlLayoutNode.defaults),{width:``,height:``,depth:``,lspace:0,voffset:0}),t}(i.AbstractMmlLayoutNode)})),_=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMphantom=void 0;var i=t();e.MmlMphantom=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mphantom`},enumerable:!1,configurable:!0}),t.defaults=r({},i.AbstractMmlLayoutNode.defaults),t}(i.AbstractMmlLayoutNode)})),v=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfenced=void 0;var a=t();e.MmlMfenced=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=a.TEXCLASS.INNER,t.separators=[],t.open=null,t.close=null,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mfenced`},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){this.getPrevClass(e),this.open&&(e=this.open.setTeXclass(e)),this.childNodes[0]&&(e=this.childNodes[0].setTeXclass(e));for(var t=1,n=this.childNodes.length;t<n;t++)this.separators[t-1]&&(e=this.separators[t-1].setTeXclass(e)),this.childNodes[t]&&(e=this.childNodes[t].setTeXclass(e));return this.close&&(e=this.close.setTeXclass(e)),this.updateTeXclass(this.open),e},t.prototype.setChildInheritedAttributes=function(t,n,r,a){var o,s;this.addFakeNodes();try{for(var c=i([this.open,this.close].concat(this.separators)),l=c.next();!l.done;l=c.next()){var u=l.value;u&&u.setInheritedAttributes(t,n,r,a)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(o)throw o.error}}e.prototype.setChildInheritedAttributes.call(this,t,n,r,a)},t.prototype.addFakeNodes=function(){var e,t,n=this.attributes.getList(`open`,`close`,`separators`),r=n.open,o=n.close,s=n.separators;if(r=r.replace(/[ \t\n\r]/g,``),o=o.replace(/[ \t\n\r]/g,``),s=s.replace(/[ \t\n\r]/g,``),r&&(this.open=this.fakeNode(r,{fence:!0,form:`prefix`},a.TEXCLASS.OPEN)),s){for(;s.length<this.childNodes.length-1;)s+=s.charAt(s.length-1);var c=0;try{for(var l=i(this.childNodes.slice(1)),u=l.next();!u.done;u=l.next())u.value&&this.separators.push(this.fakeNode(s.charAt(c++)))}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}}o&&(this.close=this.fakeNode(o,{fence:!0,form:`postfix`},a.TEXCLASS.CLOSE))},t.prototype.fakeNode=function(e,t,n){t===void 0&&(t={}),n===void 0&&(n=null);var r=this.factory.create(`text`).setText(e),i=this.factory.create(`mo`,t,[r]);return i.texClass=n,i.parent=this,i},t.defaults=r(r({},a.AbstractMmlNode.defaults),{open:`(`,close:`)`,separators:`,`}),t}(a.AbstractMmlNode)})),y=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMenclose=void 0;var i=t();e.MmlMenclose=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`menclose`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContininer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){return e=this.childNodes[0].setTeXclass(e),this.updateTeXclass(this.childNodes[0]),e},t.defaults=r(r({},i.AbstractMmlNode.defaults),{notation:`longdiv`}),t}(i.AbstractMmlNode)})),b=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMaction=void 0;var i=t();e.MmlMaction=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`maction`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){var e=this.attributes.get(`selection`),t=Math.max(1,Math.min(this.childNodes.length,e))-1;return this.childNodes[t]||this.factory.create(`mrow`)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){return this.selected.isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return this.selected.isSpacelike},enumerable:!1,configurable:!0}),t.prototype.core=function(){return this.selected.core()},t.prototype.coreMO=function(){return this.selected.coreMO()},t.prototype.verifyAttributes=function(t){if(e.prototype.verifyAttributes.call(this,t),this.attributes.get(`actiontype`)!==`toggle`&&this.attributes.getExplicit(`selection`)!==void 0){var n=this.attributes.getAllAttributes();delete n.selection}},t.prototype.setTeXclass=function(e){this.attributes.get(`actiontype`)===`tooltip`&&this.childNodes[1]&&this.childNodes[1].setTeXclass(null);var t=this.selected;return e=t.setTeXclass(e),this.updateTeXclass(t),e},t.prototype.nextToggleSelection=function(){var e=Math.max(1,this.attributes.get(`selection`)+1);e>this.childNodes.length&&(e=1),this.attributes.set(`selection`,e)},t.defaults=r(r({},i.AbstractMmlNode.defaults),{actiontype:`toggle`,selection:1}),t}(i.AbstractMmlNode)})),x=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMsup=e.MmlMsub=e.MmlMsubsup=void 0;var i=t(),a=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`msubsup`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sub",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sup",{get:function(){return 2},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,n,r){var i=this.childNodes;i[0].setInheritedAttributes(e,t,n,r),i[1].setInheritedAttributes(e,!1,n+1,r||this.sub===1),i[2]&&i[2].setInheritedAttributes(e,!1,n+1,r||this.sub===2)},t.defaults=r(r({},i.AbstractMmlBaseNode.defaults),{subscriptshift:``,superscriptshift:``}),t}(i.AbstractMmlBaseNode);e.MmlMsubsup=a,e.MmlMsub=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`msub`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=r({},a.defaults),t}(a),e.MmlMsup=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`msup`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sup",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sub",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=r({},a.defaults),t}(a)})),S=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMover=e.MmlMunder=e.MmlMunderover=void 0;var i=t(),a=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`munderover`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"under",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,n,r){var i=this.childNodes;i[0].setInheritedAttributes(e,t,n,r||!!i[this.over]);var a=!(t||!i[0].coreMO().attributes.get(`movablelimits`)),o=this.constructor.ACCENTS;i[1].setInheritedAttributes(e,!1,this.getScriptlevel(o[1],a,n),r||this.under===1),this.setInheritedAccent(1,o[1],t,n,r,a),i[2]&&(i[2].setInheritedAttributes(e,!1,this.getScriptlevel(o[2],a,n),r||this.under===2),this.setInheritedAccent(2,o[2],t,n,r,a))},t.prototype.getScriptlevel=function(e,t,n){return(t||!this.attributes.get(e))&&n++,n},t.prototype.setInheritedAccent=function(e,t,n,r,i,a){var o=this.childNodes[e];if(this.attributes.getExplicit(t)==null&&o.isEmbellished){var s=o.coreMO().attributes.get(`accent`);this.attributes.setInherited(t,s),s!==this.attributes.getDefault(t)&&o.setInheritedAttributes({},n,this.getScriptlevel(t,a,r),i)}},t.defaults=r(r({},i.AbstractMmlBaseNode.defaults),{accent:!1,accentunder:!1,align:`center`}),t.ACCENTS=[``,`accentunder`,`accent`],t}(i.AbstractMmlBaseNode);e.MmlMunderover=a,e.MmlMunder=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`munder`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=r({},a.defaults),t}(a),e.MmlMover=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mover`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"under",{get:function(){return 2},enumerable:!1,configurable:!0}),t.defaults=r({},a.defaults),t.ACCENTS=[``,`accent`,`accentunder`],t}(a)})),C=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlNone=e.MmlMprescripts=e.MmlMmultiscripts=void 0;var i=t(),a=x();e.MmlMmultiscripts=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mmultiscripts`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,n,r){this.childNodes[0].setInheritedAttributes(e,t,n,r);for(var i=!1,a=1,o=0;a<this.childNodes.length;a++){var s=this.childNodes[a];if(s.isKind(`mprescripts`)){if(!i&&(i=!0,a%2==0)){var c=this.factory.create(`mrow`);this.childNodes.splice(a,0,c),c.parent=this,a++}}else{var l=r||o%2==0;s.setInheritedAttributes(e,!1,n+1,l),o++}}this.childNodes.length%2==+!!i&&(this.appendChild(this.factory.create(`mrow`)),this.childNodes[this.childNodes.length-1].setInheritedAttributes(e,!1,n+1,r))},t.prototype.verifyChildren=function(t){for(var n=!1,r=t.fixMmultiscripts,i=0;i<this.childNodes.length;i++){var a=this.childNodes[i];a.isKind(`mprescripts`)&&(n?a.mError(a.kind+` can only appear once in `+this.kind,t,!0):(n=!0,i%2==0&&!r&&this.mError(`There must be an equal number of prescripts of each type`,t)))}this.childNodes.length%2==+!!n&&!r&&this.mError(`There must be an equal number of scripts of each type`,t),e.prototype.verifyChildren.call(this,t)},t.defaults=r({},a.MmlMsubsup.defaults),t}(a.MmlMsubsup),e.MmlMprescripts=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mprescripts`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),t.prototype.verifyTree=function(t){e.prototype.verifyTree.call(this,t),this.parent&&!this.parent.isKind(`mmultiscripts`)&&this.mError(this.kind+` must be a child of mmultiscripts`,t,!0)},t.defaults=r({},i.AbstractMmlNode.defaults),t}(i.AbstractMmlNode),e.MmlNone=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`none`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),t.prototype.verifyTree=function(t){e.prototype.verifyTree.call(this,t),this.parent&&!this.parent.isKind(`mmultiscripts`)&&this.mError(this.kind+` must be a child of mmultiscripts`,t,!0)},t.defaults=r({},i.AbstractMmlNode.defaults),t}(i.AbstractMmlNode)})),w=e((e=>{var r=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),i=e&&e.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},a=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtable=void 0;var o=t(),s=n();e.MmlMtable=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.properties={useHeight:!0},t.texclass=o.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mtable`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setInheritedAttributes=function(t,n,r,i){var s,c;try{for(var l=a(o.indentAttributes),u=l.next();!u.done;u=l.next()){var d=u.value;t[d]&&this.attributes.setInherited(d,t[d][1]),this.attributes.getExplicit(d)!==void 0&&delete this.attributes.getAllAttributes()[d]}}catch(e){s={error:e}}finally{try{u&&!u.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}e.prototype.setInheritedAttributes.call(this,t,n,r,i)},t.prototype.setChildInheritedAttributes=function(e,t,n,r){var i,o,c,l;try{for(var u=a(this.childNodes),d=u.next();!d.done;d=u.next()){var f=d.value;f.isKind(`mtr`)||this.replaceChild(this.factory.create(`mtr`),f).appendChild(f)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}n=this.getProperty(`scriptlevel`)||n,t=!!(this.attributes.getExplicit(`displaystyle`)||this.attributes.getDefault(`displaystyle`)),e=this.addInheritedAttributes(e,{columnalign:this.attributes.get(`columnalign`),rowalign:`center`});var p=this.attributes.getExplicit(`data-cramped`),m=(0,s.split)(this.attributes.get(`rowalign`));try{for(var h=a(this.childNodes),g=h.next();!g.done;g=h.next()){var f=g.value;e.rowalign[1]=m.shift()||e.rowalign[1],f.setInheritedAttributes(e,t,n,!!p)}}catch(e){c={error:e}}finally{try{g&&!g.done&&(l=h.return)&&l.call(h)}finally{if(c)throw c.error}}},t.prototype.verifyChildren=function(t){for(var n=null,r=this.factory,i=0;i<this.childNodes.length;i++){var a=this.childNodes[i];if(a.isKind(`mtr`))n=null;else{var o=a.isKind(`mtd`);if(n?(this.removeChild(a),i--):n=this.replaceChild(r.create(`mtr`),a),n.appendChild(o?a:r.create(`mtd`,{},[a])),!t.fixMtables){a.parent.removeChild(a),a.parent=this,o&&n.appendChild(r.create(`mtd`));var s=a.mError(`Children of `+this.kind+` must be mtr or mlabeledtr`,t,o);n.childNodes[n.childNodes.length-1].appendChild(s)}}}e.prototype.verifyChildren.call(this,t)},t.prototype.setTeXclass=function(e){var t,n;this.getPrevClass(e);try{for(var r=a(this.childNodes),i=r.next();!i.done;i=r.next())i.value.setTeXclass(null)}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},t.defaults=i(i({},o.AbstractMmlNode.defaults),{align:`axis`,rowalign:`baseline`,columnalign:`center`,groupalign:`{left}`,alignmentscope:!0,columnwidth:`auto`,width:`auto`,rowspacing:`1ex`,columnspacing:`.8em`,rowlines:`none`,columnlines:`none`,frame:`none`,framespacing:`0.4em 0.5ex`,equalrows:!1,equalcolumns:!1,displaystyle:!1,side:`right`,minlabelspacing:`0.8em`}),t}(o.AbstractMmlNode)})),T=e((e=>{var i=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),a=e&&e.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)},o=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMlabeledtr=e.MmlMtr=void 0;var s=t(),c=r(),l=n(),u=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mtr`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(e,t,n,r){var i,a,s,c;try{for(var u=o(this.childNodes),d=u.next();!d.done;d=u.next()){var f=d.value;f.isKind(`mtd`)||this.replaceChild(this.factory.create(`mtd`),f).appendChild(f)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}var p=(0,l.split)(this.attributes.get(`columnalign`));this.arity===1&&p.unshift(this.parent.attributes.get(`side`)),e=this.addInheritedAttributes(e,{rowalign:this.attributes.get(`rowalign`),columnalign:`center`});try{for(var m=o(this.childNodes),h=m.next();!h.done;h=m.next()){var f=h.value;e.columnalign[1]=p.shift()||e.columnalign[1],f.setInheritedAttributes(e,t,n,r)}}catch(e){s={error:e}}finally{try{h&&!h.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}},t.prototype.verifyChildren=function(t){var n,r;if(this.parent&&!this.parent.isKind(`mtable`))this.mError(this.kind+` can only be a child of an mtable`,t,!0);else{try{for(var i=o(this.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;s.isKind(`mtd`)||(this.replaceChild(this.factory.create(`mtd`),s).appendChild(s),t.fixMtables||s.mError(`Children of `+this.kind+` must be mtd`,t))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.prototype.verifyChildren.call(this,t)}},t.prototype.setTeXclass=function(e){var t,n;this.getPrevClass(e);try{for(var r=o(this.childNodes),i=r.next();!i.done;i=r.next())i.value.setTeXclass(null)}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},t.defaults=a(a({},s.AbstractMmlNode.defaults),{rowalign:c.INHERIT,columnalign:c.INHERIT,groupalign:c.INHERIT}),t}(s.AbstractMmlNode);e.MmlMtr=u,e.MmlMlabeledtr=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mlabeledtr`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(u)})),E=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),i=e&&e.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtd=void 0;var a=t(),o=r();e.MmlMtd=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mtd`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.verifyChildren=function(t){this.parent&&!this.parent.isKind(`mtr`)?this.mError(this.kind+` can only be a child of an mtr or mlabeledtr`,t,!0):e.prototype.verifyChildren.call(this,t)},t.prototype.setTeXclass=function(e){return this.getPrevClass(e),this.childNodes[0].setTeXclass(null),this},t.defaults=i(i({},a.AbstractMmlBaseNode.defaults),{rowspan:1,columnspan:1,rowalign:o.INHERIT,columnalign:o.INHERIT,groupalign:o.INHERIT}),t}(a.AbstractMmlBaseNode)})),D=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMglyph=void 0;var i=t();e.MmlMglyph=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.texclass=i.TEXCLASS.ORD,t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`mglyph`},enumerable:!1,configurable:!0}),t.prototype.verifyAttributes=function(t){var n=this.attributes.getList(`src`,`fontfamily`,`index`),r=n.src,i=n.fontfamily,a=n.index;r===``&&(i===``||a===``)?this.mError(`mglyph must have either src or fontfamily and index attributes`,t,!0):e.prototype.verifyAttributes.call(this,t)},t.defaults=r(r({},i.AbstractMmlTokenNode.defaults),{alt:``,src:``,index:``,width:`auto`,height:`auto`,valign:`0em`}),t}(i.AbstractMmlTokenNode)})),O=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlAnnotation=e.MmlAnnotationXML=e.MmlSemantics=void 0;var i=t();e.MmlSemantics=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`semantics`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),t.defaults=r(r({},i.AbstractMmlBaseNode.defaults),{definitionUrl:null,encoding:null}),t}(i.AbstractMmlBaseNode);var a=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`annotation-xml`},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(){},t.defaults=r(r({},i.AbstractMmlNode.defaults),{definitionUrl:null,encoding:null,cd:`mathmlkeys`,name:``,src:null}),t}(i.AbstractMmlNode);e.MmlAnnotationXML=a,e.MmlAnnotation=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.properties={isChars:!0},t}return Object.defineProperty(t.prototype,"kind",{get:function(){return`annotation`},enumerable:!1,configurable:!0}),t.defaults=r({},a.defaults),t}(a)})),k=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.TeXAtom=void 0;var a=t(),o=i(),s=function(e){n(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.texclass=a.TEXCLASS.ORD,i.setProperty(`texClass`,i.texClass),i}return Object.defineProperty(t.prototype,"kind",{get:function(){return`TeXAtom`},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return this.childNodes[0]&&this.childNodes[0].childNodes.length===1},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(e){return this.childNodes[0].setTeXclass(null),this.adjustTeXclass(e)},t.prototype.adjustTeXclass=function(e){return e},t.defaults=r({},a.AbstractMmlBaseNode.defaults),t}(a.AbstractMmlBaseNode);e.TeXAtom=s,s.prototype.adjustTeXclass=o.MmlMo.prototype.adjustTeXclass}));export{s as C,c as S,a as T,p as _,T as a,u as b,S as c,y as d,v as f,m as g,h,E as i,x as l,g as m,O as n,w as o,_ as p,D as r,C as s,k as t,b as u,f as v,o as w,l as x,d as y};
@@ -0,0 +1 @@
1
+ import{Pr as e}from"./vue.runtime.esm-bundler-Cwm3cFXF.js";var t=e(((e,t)=>{t.exports={}}));export{t};
@@ -1 +1 @@
1
- import{m as e,t}from"./mermaid-parser.core-B5c-1CnP.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-tZFcq4Tp.js";import"./chunk-VPRB5NB3-CYQe0pjV.js";import{n as i,r as a,t as o}from"./chunk-AW2ZBBNX-CRAjzqLf.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-Ck4FoAPC.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
1
+ import{m as e,t}from"./mermaid-parser.core-B5c-1CnP.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-BgGykKNK.js";import"./chunk-DSNLSHJZ-Bc29O7Kj.js";import{n as i,r as a,t as o}from"./chunk-2E7WHVMD-BpfatsVl.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-DGklhdAB.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
@@ -1 +1 @@
1
- import{n as e,t}from"./path-fybaL0A-.js";import{a as n,c as r,d as i,f as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,u as p}from"./dist-DovUe4bX.js";function m(e){return e.innerRadius}function h(e){return e.outerRadius}function g(e){return e.startAngle}function _(e){return e.endAngle}function v(e){return e&&e.padAngle}function y(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function b(e,t,n,r,i,a,o){var c=e-n,l=t-r,u=(o?a:-a)/d(c*c+l*l),f=u*l,p=-u*c,m=e+f,h=t+p,g=n+f,_=r+p,v=(m+g)/2,y=(h+_)/2,b=g-m,x=_-h,S=b*b+x*x,C=i-a,w=m*_-g*h,T=(x<0?-1:1)*d(s(0,C*C*S-w*w)),E=(w*x-b*T)/S,D=(-w*b-x*T)/S,O=(w*x+b*T)/S,k=(-w*b+x*T)/S,A=E-v,j=D-y,M=O-v,N=k-y;return A*A+j*j>M*M+N*N&&(E=O,D=k),{cx:E,cy:D,x01:-f,y01:-p,x11:E*(i/C-1),y11:D*(i/C-1)}}function x(){var s=m,x=h,S=e(0),C=null,w=g,T=_,E=v,D=null,O=t(k);function k(){var e,t,m=+s.apply(this,arguments),h=+x.apply(this,arguments),g=w.apply(this,arguments)-r,_=T.apply(this,arguments)-r,v=l(_-g),k=_>g;if(D||=e=O(),h<m&&(t=h,h=m,m=t),!(h>1e-12))D.moveTo(0,0);else if(v>c-1e-12)D.moveTo(h*u(g),h*a(g)),D.arc(0,0,h,g,_,!k),m>1e-12&&(D.moveTo(m*u(_),m*a(_)),D.arc(0,0,m,_,g,k));else{var A=g,j=_,M=g,N=_,P=v,F=v,I=E.apply(this,arguments)/2,L=I>1e-12&&(C?+C.apply(this,arguments):d(m*m+h*h)),R=p(l(h-m)/2,+S.apply(this,arguments)),z=R,B=R,V,H;if(L>1e-12){var U=o(L/m*a(I)),W=o(L/h*a(I));(P-=U*2)>1e-12?(U*=k?1:-1,M+=U,N-=U):(P=0,M=N=(g+_)/2),(F-=W*2)>1e-12?(W*=k?1:-1,A+=W,j-=W):(F=0,A=j=(g+_)/2)}var G=h*u(A),K=h*a(A),q=m*u(N),J=m*a(N);if(R>1e-12){var Y=h*u(j),X=h*a(j),Z=m*u(M),Q=m*a(M),$;if(v<i){if($=y(G,K,Z,Q,Y,X,q,J)){var ee=G-$[0],te=K-$[1],ne=Y-$[0],re=X-$[1],ie=1/a(f((ee*ne+te*re)/(d(ee*ee+te*te)*d(ne*ne+re*re)))/2),ae=d($[0]*$[0]+$[1]*$[1]);z=p(R,(m-ae)/(ie-1)),B=p(R,(h-ae)/(ie+1))}else z=B=0}}F>1e-12?B>1e-12?(V=b(Z,Q,G,K,h,B,k),H=b(Y,X,q,J,h,B,k),D.moveTo(V.cx+V.x01,V.cy+V.y01),B<R?D.arc(V.cx,V.cy,B,n(V.y01,V.x01),n(H.y01,H.x01),!k):(D.arc(V.cx,V.cy,B,n(V.y01,V.x01),n(V.y11,V.x11),!k),D.arc(0,0,h,n(V.cy+V.y11,V.cx+V.x11),n(H.cy+H.y11,H.cx+H.x11),!k),D.arc(H.cx,H.cy,B,n(H.y11,H.x11),n(H.y01,H.x01),!k))):(D.moveTo(G,K),D.arc(0,0,h,A,j,!k)):D.moveTo(G,K),!(m>1e-12)||!(P>1e-12)?D.lineTo(q,J):z>1e-12?(V=b(q,J,Y,X,m,-z,k),H=b(G,K,Z,Q,m,-z,k),D.lineTo(V.cx+V.x01,V.cy+V.y01),z<R?D.arc(V.cx,V.cy,z,n(V.y01,V.x01),n(H.y01,H.x01),!k):(D.arc(V.cx,V.cy,z,n(V.y01,V.x01),n(V.y11,V.x11),!k),D.arc(0,0,m,n(V.cy+V.y11,V.cx+V.x11),n(H.cy+H.y11,H.cx+H.x11),k),D.arc(H.cx,H.cy,z,n(H.y11,H.x11),n(H.y01,H.x01),!k))):D.arc(0,0,m,N,M,k)}if(D.closePath(),e)return D=null,e+``||null}return k.centroid=function(){var e=(+s.apply(this,arguments)+ +x.apply(this,arguments))/2,t=(+w.apply(this,arguments)+ +T.apply(this,arguments))/2-i/2;return[u(t)*e,a(t)*e]},k.innerRadius=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),k):s},k.outerRadius=function(t){return arguments.length?(x=typeof t==`function`?t:e(+t),k):x},k.cornerRadius=function(t){return arguments.length?(S=typeof t==`function`?t:e(+t),k):S},k.padRadius=function(t){return arguments.length?(C=t==null?null:typeof t==`function`?t:e(+t),k):C},k.startAngle=function(t){return arguments.length?(w=typeof t==`function`?t:e(+t),k):w},k.endAngle=function(t){return arguments.length?(T=typeof t==`function`?t:e(+t),k):T},k.padAngle=function(t){return arguments.length?(E=typeof t==`function`?t:e(+t),k):E},k.context=function(e){return arguments.length?(D=e??null,k):D},k}export{x as t};
1
+ import{n as e,t}from"./path-fybaL0A-.js";import{a as n,c as r,d as i,f as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,u as p}from"./dist-COSwdJCZ.js";function m(e){return e.innerRadius}function h(e){return e.outerRadius}function g(e){return e.startAngle}function _(e){return e.endAngle}function v(e){return e&&e.padAngle}function y(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function b(e,t,n,r,i,a,o){var c=e-n,l=t-r,u=(o?a:-a)/d(c*c+l*l),f=u*l,p=-u*c,m=e+f,h=t+p,g=n+f,_=r+p,v=(m+g)/2,y=(h+_)/2,b=g-m,x=_-h,S=b*b+x*x,C=i-a,w=m*_-g*h,T=(x<0?-1:1)*d(s(0,C*C*S-w*w)),E=(w*x-b*T)/S,D=(-w*b-x*T)/S,O=(w*x+b*T)/S,k=(-w*b+x*T)/S,A=E-v,j=D-y,M=O-v,N=k-y;return A*A+j*j>M*M+N*N&&(E=O,D=k),{cx:E,cy:D,x01:-f,y01:-p,x11:E*(i/C-1),y11:D*(i/C-1)}}function x(){var s=m,x=h,S=e(0),C=null,w=g,T=_,E=v,D=null,O=t(k);function k(){var e,t,m=+s.apply(this,arguments),h=+x.apply(this,arguments),g=w.apply(this,arguments)-r,_=T.apply(this,arguments)-r,v=l(_-g),k=_>g;if(D||=e=O(),h<m&&(t=h,h=m,m=t),!(h>1e-12))D.moveTo(0,0);else if(v>c-1e-12)D.moveTo(h*u(g),h*a(g)),D.arc(0,0,h,g,_,!k),m>1e-12&&(D.moveTo(m*u(_),m*a(_)),D.arc(0,0,m,_,g,k));else{var A=g,j=_,M=g,N=_,P=v,F=v,I=E.apply(this,arguments)/2,L=I>1e-12&&(C?+C.apply(this,arguments):d(m*m+h*h)),R=p(l(h-m)/2,+S.apply(this,arguments)),z=R,B=R,V,H;if(L>1e-12){var U=o(L/m*a(I)),W=o(L/h*a(I));(P-=U*2)>1e-12?(U*=k?1:-1,M+=U,N-=U):(P=0,M=N=(g+_)/2),(F-=W*2)>1e-12?(W*=k?1:-1,A+=W,j-=W):(F=0,A=j=(g+_)/2)}var G=h*u(A),K=h*a(A),q=m*u(N),J=m*a(N);if(R>1e-12){var Y=h*u(j),X=h*a(j),Z=m*u(M),Q=m*a(M),$;if(v<i){if($=y(G,K,Z,Q,Y,X,q,J)){var ee=G-$[0],te=K-$[1],ne=Y-$[0],re=X-$[1],ie=1/a(f((ee*ne+te*re)/(d(ee*ee+te*te)*d(ne*ne+re*re)))/2),ae=d($[0]*$[0]+$[1]*$[1]);z=p(R,(m-ae)/(ie-1)),B=p(R,(h-ae)/(ie+1))}else z=B=0}}F>1e-12?B>1e-12?(V=b(Z,Q,G,K,h,B,k),H=b(Y,X,q,J,h,B,k),D.moveTo(V.cx+V.x01,V.cy+V.y01),B<R?D.arc(V.cx,V.cy,B,n(V.y01,V.x01),n(H.y01,H.x01),!k):(D.arc(V.cx,V.cy,B,n(V.y01,V.x01),n(V.y11,V.x11),!k),D.arc(0,0,h,n(V.cy+V.y11,V.cx+V.x11),n(H.cy+H.y11,H.cx+H.x11),!k),D.arc(H.cx,H.cy,B,n(H.y11,H.x11),n(H.y01,H.x01),!k))):(D.moveTo(G,K),D.arc(0,0,h,A,j,!k)):D.moveTo(G,K),!(m>1e-12)||!(P>1e-12)?D.lineTo(q,J):z>1e-12?(V=b(q,J,Y,X,m,-z,k),H=b(G,K,Z,Q,m,-z,k),D.lineTo(V.cx+V.x01,V.cy+V.y01),z<R?D.arc(V.cx,V.cy,z,n(V.y01,V.x01),n(H.y01,H.x01),!k):(D.arc(V.cx,V.cy,z,n(V.y01,V.x01),n(V.y11,V.x11),!k),D.arc(0,0,m,n(V.cy+V.y11,V.cx+V.x11),n(H.cy+H.y11,H.cx+H.x11),k),D.arc(H.cx,H.cy,z,n(H.y11,H.x11),n(H.y01,H.x01),!k))):D.arc(0,0,m,N,M,k)}if(D.closePath(),e)return D=null,e+``||null}return k.centroid=function(){var e=(+s.apply(this,arguments)+ +x.apply(this,arguments))/2,t=(+w.apply(this,arguments)+ +T.apply(this,arguments))/2-i/2;return[u(t)*e,a(t)*e]},k.innerRadius=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),k):s},k.outerRadius=function(t){return arguments.length?(x=typeof t==`function`?t:e(+t),k):x},k.cornerRadius=function(t){return arguments.length?(S=typeof t==`function`?t:e(+t),k):S},k.padRadius=function(t){return arguments.length?(C=t==null?null:typeof t==`function`?t:e(+t),k):C},k.startAngle=function(t){return arguments.length?(w=typeof t==`function`?t:e(+t),k):w},k.endAngle=function(t){return arguments.length?(T=typeof t==`function`?t:e(+t),k):T},k.padAngle=function(t){return arguments.length?(E=typeof t==`function`?t:e(+t),k):E},k.context=function(e){return arguments.length?(D=e??null,k):D},k}export{x as t};