@pie-players/pie-section-player 0.3.73 → 0.3.75

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 (145) hide show
  1. package/README.md +395 -149
  2. package/dist/browser/assets/evaluation-worker-CORp9m0K.js +156459 -0
  3. package/dist/browser/chunks/ItemToolBar-jx38w99s-58defccc.js +1 -0
  4. package/dist/browser/chunks/PUA-tLuTiQ7--f2b27953.js +1 -0
  5. package/dist/browser/chunks/ToolCoordinator-cc2dc319.js +1 -0
  6. package/dist/browser/chunks/accents-BTUYmhn9-cafeb96e.js +1 -0
  7. package/dist/browser/chunks/accents-b-i-CngHZsLL-e0eb98fd.js +1 -0
  8. package/dist/browser/chunks/arabic-BzEHMVZD-30ac1ade.js +1 -0
  9. package/dist/browser/chunks/arrows-VjxlU-jv-2e17c192.js +1 -0
  10. package/dist/browser/chunks/base-dfd67c41.js +1 -0
  11. package/dist/browser/chunks/braille-BeWC_Ruq-a3bb8ef9.js +1 -0
  12. package/dist/browser/chunks/braille-d-Dk6J96GO-d832bfbf.js +1 -0
  13. package/dist/browser/chunks/browser-a3c32178.js +37 -0
  14. package/dist/browser/chunks/calculator-element-271c142f.js +13 -0
  15. package/dist/browser/chunks/calligraphic-Cew9cU3x-04cf0735.js +1 -0
  16. package/dist/browser/chunks/catalog-context-46d3e50e.js +1 -0
  17. package/dist/browser/chunks/catalog-owner-d602f784.js +1 -0
  18. package/dist/browser/chunks/cherokee-Cny3FYho-4da7d2f3.js +1 -0
  19. package/dist/browser/chunks/classPrivateFieldGet2-338e0179.js +1 -0
  20. package/dist/browser/chunks/cyrillic-CfCDulXU-5550df0b.js +1 -0
  21. package/dist/browser/chunks/cyrillic-ss-lU7bNGG9-12eb0188.js +1 -0
  22. package/dist/browser/chunks/defineProperty-a20a667d.js +1 -0
  23. package/dist/browser/chunks/devanagari-CDIz2h-r-18c38725.js +1 -0
  24. package/dist/browser/chunks/dist-41b39e7f.js +1 -0
  25. package/dist/browser/chunks/dist-59132a53.js +1 -0
  26. package/dist/browser/chunks/dist-60d7afef.js +1 -0
  27. package/dist/browser/chunks/dist-ca9b9622.js +1 -0
  28. package/dist/browser/chunks/double-struck-BpJEQk8y-500ce8dd.js +1 -0
  29. package/dist/browser/chunks/en-5ff22e17.js +1 -0
  30. package/dist/browser/chunks/es-a0ba6cb6.js +1 -0
  31. package/dist/browser/chunks/focus-trap-44913bf3.js +1 -0
  32. package/dist/browser/chunks/fraktur-rLEq9DEH-44cc14d8.js +1 -0
  33. package/dist/browser/chunks/greek-BlraJTyL-90ce8924.js +1 -0
  34. package/dist/browser/chunks/greek-ss-D-EN2PK0-91610739.js +1 -0
  35. package/dist/browser/chunks/hebrew-GiQZeybp-b583f555.js +1 -0
  36. package/dist/browser/chunks/latin-b-BhEnC7R2-d13e06ff.js +1 -0
  37. package/dist/browser/chunks/latin-bi-DqiIKv3U-1dec8705.js +1 -0
  38. package/dist/browser/chunks/latin-i-B1xtwaE1-21637466.js +1 -0
  39. package/dist/browser/chunks/latin-xfWFlLkD-5bcea5cf.js +1 -0
  40. package/dist/browser/chunks/logger-8b07fb72.js +1 -0
  41. package/dist/browser/chunks/marrows-DD1NgMQi-15b63755.js +1 -0
  42. package/dist/browser/chunks/math-DpWn1mbG-38eeb914.js +1 -0
  43. package/dist/browser/chunks/math-rendering-ready-9a0fd90a.js +1 -0
  44. package/dist/browser/chunks/mathjax-BKrHE4xs-3ca05bf6.js +232 -0
  45. package/dist/browser/chunks/module-0191e321.js +74 -0
  46. package/dist/browser/chunks/module-shim-58659a86.js +0 -0
  47. package/dist/browser/chunks/module-shim-b4470740.js +12 -0
  48. package/dist/browser/chunks/monospace-D116QD2a-98d484fd.js +1 -0
  49. package/dist/browser/chunks/monospace-ex-DcXpouKS-456b403c.js +1 -0
  50. package/dist/browser/chunks/monospace-l-Ct5wkMDs-f34a4a9e.js +1 -0
  51. package/dist/browser/chunks/mshapes-DCp86WSX-c0055952.js +1 -0
  52. package/dist/browser/chunks/nl-NL-364d61b9.js +1 -0
  53. package/dist/browser/chunks/nl-NL-8b7e6d4b.js +1 -0
  54. package/dist/browser/chunks/overlay-containment-edaaff13.js +1 -0
  55. package/dist/browser/chunks/overlay-placement-e8058232.js +1 -0
  56. package/dist/browser/chunks/phonetics-BwOCw2Y9-d2e3af59.js +1 -0
  57. package/dist/browser/chunks/phonetics-ss-CRtMn02f-579b6135.js +1 -0
  58. package/dist/browser/chunks/pie-api-client-687c319a.js +1 -0
  59. package/dist/browser/chunks/pointer-gesture-ce75f0a7.js +1 -0
  60. package/dist/browser/chunks/preload-helper-6ad28da3.js +1 -0
  61. package/dist/browser/chunks/provider-4c704118.js +1 -0
  62. package/dist/browser/chunks/rolldown-runtime-1287ba31.js +1 -0
  63. package/dist/browser/chunks/runtime-wcU7KOFU-ac86d7b8.js +8536 -0
  64. package/dist/browser/chunks/sanitize-svg-icon-b9082bba.js +3 -0
  65. package/dist/browser/chunks/sans-serif-BYPZKlE9-2efdbcd9.js +1 -0
  66. package/dist/browser/chunks/sans-serif-b-B0kRKiC--b5530dce.js +1 -0
  67. package/dist/browser/chunks/sans-serif-bi-DXWul6mu-5370dba4.js +1 -0
  68. package/dist/browser/chunks/sans-serif-ex-Boux1kMP-aa178f31.js +1 -0
  69. package/dist/browser/chunks/sans-serif-i-676RFaSO-2db54474.js +1 -0
  70. package/dist/browser/chunks/sans-serif-r-DrN9xdZt-0fc72eea.js +1 -0
  71. package/dist/browser/chunks/script-0ohehnXc-526904f4.js +1 -0
  72. package/dist/browser/chunks/shapes-BG47NodJ-d59b0eca.js +1 -0
  73. package/dist/browser/chunks/src-BcptuNS5-ed25d7fd.js +191 -0
  74. package/dist/browser/chunks/sre-0162a7a9.js +53 -0
  75. package/dist/browser/chunks/sre-engine-ace23548.js +1 -0
  76. package/dist/browser/chunks/sre-engine-jd8cc08x-42d270e5.js +1 -0
  77. package/dist/browser/chunks/sre-locales-112320af.js +1 -0
  78. package/dist/browser/chunks/symbols-BqnUxf_t-83087e87.js +1 -0
  79. package/dist/browser/chunks/symbols-b-i-eg9k5hmF-9c461ac2.js +1 -0
  80. package/dist/browser/chunks/tool-annotation-toolbar-997438b4.js +249 -0
  81. package/dist/browser/chunks/tool-answer-eliminator-35483abd.js +13 -0
  82. package/dist/browser/chunks/tool-color-scheme-b7de5cdf.js +26 -0
  83. package/dist/browser/chunks/tool-dictionary-cecff3b4.js +7 -0
  84. package/dist/browser/chunks/tool-graph-cb0338e8.js +11 -0
  85. package/dist/browser/chunks/tool-host-contract-b93b482c.js +1 -0
  86. package/dist/browser/chunks/tool-instance-id-2a92deb0.js +1 -0
  87. package/dist/browser/chunks/tool-line-reader-f8ef3c6a.js +62 -0
  88. package/dist/browser/chunks/tool-periodic-table-43b133b8.js +153 -0
  89. package/dist/browser/chunks/tool-picture-dictionary-33721e91.js +4 -0
  90. package/dist/browser/chunks/tool-protractor-23f77028.js +17 -0
  91. package/dist/browser/chunks/tool-ruler-1d9a03a6.js +15 -0
  92. package/dist/browser/chunks/tool-tts-inline-98c2ce7a.js +179 -0
  93. package/dist/browser/chunks/tts-runtime-config-a7ab1ad4.js +194 -0
  94. package/dist/browser/chunks/variants-2LRNhOUP-966fc49d.js +1 -0
  95. package/dist/browser/chunks/versioned-tag-54a76be9.js +1 -0
  96. package/dist/browser/pie-section-player.js +1727 -0
  97. package/dist/browser.d.ts +10 -0
  98. package/dist/chunks/ItemToolBar-jx38w99s-1287ba31.js +28 -0
  99. package/dist/chunks/module-shim-58659a86.js +2129 -0
  100. package/dist/chunks/{nl-NL-9312c316.js → nl-NL-364d61b9.js} +9 -26
  101. package/dist/chunks/sre-engine-jd8cc08x-42d270e5.js +8 -0
  102. package/dist/components/shared/composition.d.ts +3 -2
  103. package/dist/components/shared/framework-error-latch.d.ts +32 -0
  104. package/dist/components/shared/host-element.d.ts +10 -0
  105. package/dist/components/shared/kernel-host-default-body.d.ts +14 -0
  106. package/dist/components/shared/layout-host-methods.d.ts +385 -0
  107. package/dist/components/shared/missing-tool-providers.d.ts +16 -0
  108. package/dist/components/shared/player-preload.d.ts +14 -10
  109. package/dist/components/shared/section-player-backend-delivery.d.ts +1 -1
  110. package/dist/components/shared/section-player-card-context.d.ts +5 -1
  111. package/dist/components/shared/section-player-host-runtime.d.ts +32 -19
  112. package/dist/components/shared/section-player-layout-context.d.ts +77 -0
  113. package/dist/components/shared/section-player-own-event.d.ts +10 -0
  114. package/dist/components/shared/section-player-runtime-callbacks.d.ts +1 -1
  115. package/dist/components/shared/section-player-shell-layout.svelte.d.ts +3 -11
  116. package/dist/components/shared/section-player-view-state.d.ts +6 -1
  117. package/dist/components/shared/toolkit-ready-wait.d.ts +16 -0
  118. package/dist/contracts/host-hooks.d.ts +4 -12
  119. package/dist/contracts/host-hooks.js +0 -0
  120. package/dist/contracts/runtime-host-contract.d.ts +0 -5
  121. package/dist/contracts/runtime-host-contract.js +0 -0
  122. package/dist/controllers/SectionController.d.ts +14 -0
  123. package/dist/controllers/toolkit-section-contracts.d.ts +1 -17
  124. package/dist/controllers/types.d.ts +25 -11
  125. package/dist/item-section/index.d.ts +22 -0
  126. package/dist/item-section/index.js +37 -0
  127. package/dist/pie-section-player.d.ts +4 -6
  128. package/dist/pie-section-player.js +22006 -41076
  129. package/dist/policies/index.d.ts +5 -16
  130. package/dist/policies/index.js +17 -0
  131. package/dist/policies/types.d.ts +0 -4
  132. package/package.json +33 -68
  133. package/dist/chunks/module-a516757f.js +0 -73997
  134. package/dist/chunks/nl-NL-ef6dd604.js +0 -505
  135. package/dist/chunks/pie-api-client-22de9d9c.js +0 -168
  136. package/dist/chunks/rolldown-runtime-1287ba31.js +0 -20
  137. package/dist/chunks/sre-0162a7a9.js +0 -17637
  138. package/dist/components/item-shell-element.d.ts +0 -1
  139. package/dist/components/shared/shell-registration.d.ts +0 -55
  140. package/dist/contracts/layout-contract.d.ts +0 -17
  141. package/dist/contracts/layout-parity-metadata.d.ts +0 -4
  142. package/dist/contracts/public-events.d.ts +0 -93
  143. package/dist/contracts/stages.d.ts +0 -10
  144. package/dist/policies/guards.d.ts +0 -2
  145. package/dist/utils/z-index.d.ts +0 -5
@@ -0,0 +1,74 @@
1
+ var mc;function j$(){if(!mc)try{mc={renderer:D$()}}catch(y){mc={error:y}}if("error"in mc)throw mc.error;return mc.renderer}function D$(){var y=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function E2(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var br={},yc={};Object.defineProperty(yc,"__esModule",{value:!0}),yc.VERSION=void 0,yc.VERSION="3.2.2";var Tu={},bo={};Object.defineProperty(bo,"__esModule",{value:!0}),bo.PrioritizedList=void 0,bo.PrioritizedList=(function(){function e(){this.items=[],this.items=[]}return e.prototype[Symbol.iterator]=function(){var t=0,r=this.items;return{next:function(){return{value:r[t++],done:t>r.length}}}},e.prototype.add=function(t,r){r===void 0&&(r=e.DEFAULTPRIORITY);var n=this.items.length;do n--;while(n>=0&&r<this.items[n].priority);return this.items.splice(n+1,0,{item:t,priority:r}),t},e.prototype.remove=function(t){var r=this.items.length;do r--;while(r>=0&&this.items[r].item!==t);r>=0&&this.items.splice(r,1)},e.DEFAULTPRIORITY=5,e})();var dN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),hN=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.HandlerList=void 0,Tu.HandlerList=(function(e){dN(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.register=function(r){return this.add(r,r.priority)},t.prototype.unregister=function(r){this.remove(r)},t.prototype.handlesDocument=function(r){var n,o;try{for(var i=hN(this),a=i.next();!a.done;a=i.next()){var s=a.value.item;if(s.handlesDocument(r))return s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}throw new Error("Can't find handler for document")},t.prototype.document=function(r,n){return n===void 0&&(n=null),this.handlesDocument(r).create(r,n)},t})(bo.PrioritizedList);var vo={};Object.defineProperty(vo,"__esModule",{value:!0}),vo.retryAfter=vo.handleRetriesFor=void 0;function fN(e){return new Promise(function t(r,n){try{r(e())}catch(o){o.retry&&o.retry instanceof Promise?o.retry.then(function(){return t(r,n)}).catch(function(i){return n(i)}):o.restart&&o.restart.isCallback?MathJax.Callback.After(function(){return t(r,n)},o.restart):n(o)}})}vo.handleRetriesFor=fN;function mN(e){var t=new Error("MathJax retry");throw t.retry=e,t}vo.retryAfter=mN,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.mathjax=void 0;var t=yc,r=Tu,n=vo;e.mathjax={version:t.VERSION,handlers:new r.HandlerList,document:function(o,i){return e.mathjax.handlers.document(o,i)},handleRetriesFor:n.handleRetriesFor,retryAfter:n.retryAfter,asyncLoad:null}})(br),ee(br);var ra={};(function(e){var t=y&&y.__values||(function(s){var c=typeof Symbol=="function"&&Symbol.iterator,l=c&&s[c],u=0;if(l)return l.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&u>=s.length&&(s=void 0),{value:s&&s[u++],done:!s}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(e,"__esModule",{value:!0}),e.MathJax=e.combineWithMathJax=e.combineDefaults=e.combineConfig=e.isObject=void 0;var r=yc;function n(s){return typeof s=="object"&&s!==null}e.isObject=n;function o(s,c){var l,u;try{for(var p=t(Object.keys(c)),d=p.next();!d.done;d=p.next()){var h=d.value;h!=="__esModule"&&(n(s[h])&&n(c[h])&&!(c[h]instanceof Promise)?o(s[h],c[h]):c[h]!==null&&c[h]!==void 0&&(s[h]=c[h]))}}catch(f){l={error:f}}finally{try{d&&!d.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}return s}e.combineConfig=o;function i(s,c,l){var u,p;s[c]||(s[c]={}),s=s[c];try{for(var d=t(Object.keys(l)),h=d.next();!h.done;h=d.next()){var f=h.value;n(s[f])&&n(l[f])?i(s,f,l[f]):s[f]==null&&l[f]!=null&&(s[f]=l[f])}}catch(m){u={error:m}}finally{try{h&&!h.done&&(p=d.return)&&p.call(d)}finally{if(u)throw u.error}}return s}e.combineDefaults=i;function a(s){return o(e.MathJax,s)}e.combineWithMathJax=a,typeof y.MathJax>"u"&&(y.MathJax={}),y.MathJax.version||(y.MathJax={version:r.VERSION,_:{},config:y.MathJax}),e.MathJax=y.MathJax})(ra),ee(ra);var Bn={},Wr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.newState=e.STATE=e.AbstractMathItem=e.protoItem=void 0;function t(n,o,i,a,s,c,l){return l===void 0&&(l=null),{open:n,math:o,close:i,n:a,start:{n:s},end:{n:c},display:l}}e.protoItem=t,e.AbstractMathItem=(function(){function n(o,i,a,s,c){a===void 0&&(a=!0),s===void 0&&(s={i:0,n:0,delim:""}),c===void 0&&(c={i:0,n:0,delim:""}),this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={},this._state=e.STATE.UNPROCESSED,this.math=o,this.inputJax=i,this.display=a,this.start=s,this.end=c,this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={}}return Object.defineProperty(n.prototype,"isEscaped",{get:function(){return this.display===null},enumerable:!1,configurable:!0}),n.prototype.render=function(o){o.renderActions.renderMath(this,o)},n.prototype.rerender=function(o,i){i===void 0&&(i=e.STATE.RERENDER),this.state()>=i&&this.state(i-1),o.renderActions.renderMath(this,o,i)},n.prototype.convert=function(o,i){i===void 0&&(i=e.STATE.LAST),o.renderActions.renderConvert(this,o,i)},n.prototype.compile=function(o){this.state()<e.STATE.COMPILED&&(this.root=this.inputJax.compile(this,o),this.state(e.STATE.COMPILED))},n.prototype.typeset=function(o){this.state()<e.STATE.TYPESET&&(this.typesetRoot=o.outputJax[this.isEscaped?"escaped":"typeset"](this,o),this.state(e.STATE.TYPESET))},n.prototype.updateDocument=function(o){},n.prototype.removeFromDocument=function(o){},n.prototype.setMetrics=function(o,i,a,s,c){this.metrics={em:o,ex:i,containerWidth:a,lineWidth:s,scale:c}},n.prototype.state=function(o,i){return o===void 0&&(o=null),i===void 0&&(i=!1),o!=null&&(o<e.STATE.INSERTED&&this._state>=e.STATE.INSERTED&&this.removeFromDocument(i),o<e.STATE.TYPESET&&this._state>=e.STATE.TYPESET&&(this.outputData={}),o<e.STATE.COMPILED&&this._state>=e.STATE.COMPILED&&(this.inputData={}),this._state=o),this._state},n.prototype.reset=function(o){o===void 0&&(o=!1),this.state(e.STATE.UNPROCESSED,o)},n})(),e.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function r(n,o){if(n in e.STATE)throw Error("State "+n+" already exists");e.STATE[n]=o}e.newState=r})(Wr),ee(Wr);var na={},Cu={},gc={},Nu={},oa={},yN=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),x2=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),M2=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(oa,"__esModule",{value:!0}),oa.AbstractFactory=void 0,oa.AbstractFactory=(function(){function e(t){var r,n;t===void 0&&(t=null),this.defaultKind="unknown",this.nodeMap=new Map,this.node={},t===null&&(t=this.constructor.defaultNodes);try{for(var o=yN(Object.keys(t)),i=o.next();!i.done;i=o.next()){var a=i.value;this.setNodeClass(a,t[a])}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}return e.prototype.create=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(this.node[t]||this.node[this.defaultKind]).apply(void 0,M2([],x2(r),!1))},e.prototype.setNodeClass=function(t,r){this.nodeMap.set(t,r);var n=this,o=this.nodeMap.get(t);this.node[t]=function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return new(o.bind.apply(o,M2([void 0,n],x2(i),!1)))}},e.prototype.getNodeClass=function(t){return this.nodeMap.get(t)},e.prototype.deleteNodeClass=function(t){this.nodeMap.delete(t),delete this.node[t]},e.prototype.nodeIsKind=function(t,r){return t instanceof this.getNodeClass(r)},e.prototype.getKinds=function(){return Array.from(this.nodeMap.keys())},e.defaultNodes={},e})();var gN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.AbstractNodeFactory=void 0,Nu.AbstractNodeFactory=(function(e){gN(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.create=function(r,n,o){return n===void 0&&(n={}),o===void 0&&(o=[]),this.node[r](n,o)},t})(oa.AbstractFactory);var _u={},ce={},ei={};(function(e){var t=y&&y.__values||(function(r){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&r[n],i=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(e,"__esModule",{value:!0}),e.Attributes=e.INHERIT=void 0,e.INHERIT="_inherit_",e.Attributes=(function(){function r(n,o){this.global=o,this.defaults=Object.create(o),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,n)}return r.prototype.set=function(n,o){this.attributes[n]=o},r.prototype.setList=function(n){Object.assign(this.attributes,n)},r.prototype.get=function(n){var o=this.attributes[n];return o===e.INHERIT&&(o=this.global[n]),o},r.prototype.getExplicit=function(n){if(this.attributes.hasOwnProperty(n))return this.attributes[n]},r.prototype.getList=function(){for(var n,o,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s={};try{for(var c=t(i),l=c.next();!l.done;l=c.next()){var u=l.value;s[u]=this.get(u)}}catch(p){n={error:p}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return s},r.prototype.setInherited=function(n,o){this.inherited[n]=o},r.prototype.getInherited=function(n){return this.inherited[n]},r.prototype.getDefault=function(n){return this.defaults[n]},r.prototype.isSet=function(n){return this.attributes.hasOwnProperty(n)||this.inherited.hasOwnProperty(n)},r.prototype.hasDefault=function(n){return n in this.defaults},r.prototype.getExplicitNames=function(){return Object.keys(this.attributes)},r.prototype.getInheritedNames=function(){return Object.keys(this.inherited)},r.prototype.getDefaultNames=function(){return Object.keys(this.defaults)},r.prototype.getGlobalNames=function(){return Object.keys(this.global)},r.prototype.getAllAttributes=function(){return this.attributes},r.prototype.getAllInherited=function(){return this.inherited},r.prototype.getAllDefaults=function(){return this.defaults},r.prototype.getAllGlobals=function(){return this.global},r})()})(ei),ee(ei);var ti={},bN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Oy=y&&y.__assign||(function(){return Oy=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Oy.apply(this,arguments)}),bc=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(ti,"__esModule",{value:!0}),ti.AbstractEmptyNode=ti.AbstractNode=void 0;var O2=(function(){function e(t,r,n){var o,i;r===void 0&&(r={}),n===void 0&&(n=[]),this.factory=t,this.parent=null,this.properties={},this.childNodes=[];try{for(var a=bc(Object.keys(r)),s=a.next();!s.done;s=a.next()){var c=s.value;this.setProperty(c,r[c])}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}n.length&&this.setChildren(n)}return Object.defineProperty(e.prototype,"kind",{get:function(){return"unknown"},enumerable:!1,configurable:!0}),e.prototype.setProperty=function(t,r){this.properties[t]=r},e.prototype.getProperty=function(t){return this.properties[t]},e.prototype.getPropertyNames=function(){return Object.keys(this.properties)},e.prototype.getAllProperties=function(){return this.properties},e.prototype.removeProperty=function(){for(var t,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];try{for(var i=bc(n),a=i.next();!a.done;a=i.next()){var s=a.value;delete this.properties[s]}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},e.prototype.isKind=function(t){return this.factory.nodeIsKind(this,t)},e.prototype.setChildren=function(t){var r,n;this.childNodes=[];try{for(var o=bc(t),i=o.next();!i.done;i=o.next()){var a=i.value;this.appendChild(a)}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.prototype.appendChild=function(t){return this.childNodes.push(t),t.parent=this,t},e.prototype.replaceChild=function(t,r){var n=this.childIndex(r);return n!==null&&(this.childNodes[n]=t,t.parent=this,r.parent=null),t},e.prototype.removeChild=function(t){var r=this.childIndex(t);return r!==null&&(this.childNodes.splice(r,1),t.parent=null),t},e.prototype.childIndex=function(t){var r=this.childNodes.indexOf(t);return r===-1?null:r},e.prototype.copy=function(){var t,r,n=this.factory.create(this.kind);n.properties=Oy({},this.properties);try{for(var o=bc(this.childNodes||[]),i=o.next();!i.done;i=o.next()){var a=i.value;a&&n.appendChild(a.copy())}}catch(s){t={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},e.prototype.findNodes=function(t){var r=[];return this.walkTree(function(n){n.isKind(t)&&r.push(n)}),r},e.prototype.walkTree=function(t,r){var n,o;t(this,r);try{for(var i=bc(this.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;s&&s.walkTree(t,r)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return r},e.prototype.toString=function(){return this.kind+"("+this.childNodes.join(",")+")"},e})();ti.AbstractNode=O2,ti.AbstractEmptyNode=(function(e){bN(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setChildren=function(r){},t.prototype.appendChild=function(r){return r},t.prototype.replaceChild=function(r,n){return n},t.prototype.childIndex=function(r){return null},t.prototype.walkTree=function(r,n){return r(this,n),n},t.prototype.toString=function(){return this.kind},t})(O2),(function(e){var t=y&&y.__extends||(function(){var d=function(h,f){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(m,v){m.__proto__=v})||(function(m,v){for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(m[g]=v[g])}),d(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");d(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})(),r=y&&y.__assign||(function(){return r=Object.assign||(function(d){for(var h,f=1,m=arguments.length;f<m;f++){h=arguments[f];for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(d[v]=h[v])}return d}),r.apply(this,arguments)}),n=y&&y.__values||(function(d){var h=typeof Symbol=="function"&&Symbol.iterator,f=h&&d[h],m=0;if(f)return f.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&m>=d.length&&(d=void 0),{value:d&&d[m++],done:!d}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}),o=y&&y.__read||(function(d,h){var f=typeof Symbol=="function"&&d[Symbol.iterator];if(!f)return d;var m=f.call(d),v,g=[],b;try{for(;(h===void 0||h-- >0)&&!(v=m.next()).done;)g.push(v.value)}catch(S){b={error:S}}finally{try{v&&!v.done&&(f=m.return)&&f.call(m)}finally{if(b)throw b.error}}return g});Object.defineProperty(e,"__esModule",{value:!0}),e.XMLNode=e.TextNode=e.AbstractMmlEmptyNode=e.AbstractMmlBaseNode=e.AbstractMmlLayoutNode=e.AbstractMmlTokenNode=e.AbstractMmlNode=e.indentAttributes=e.TEXCLASSNAMES=e.TEXCLASS=void 0;var i=ei,a=ti;e.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},e.TEXCLASSNAMES=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER","VCENTER"];var s=["","thinmathspace","mediummathspace","thickmathspace"],c=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]];e.indentAttributes=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];var l=(function(d){t(h,d);function h(f,m,v){m===void 0&&(m={}),v===void 0&&(v=[]);var g=d.call(this,f)||this;return g.prevClass=null,g.prevLevel=null,g.texclass=null,g.arity<0&&(g.childNodes=[f.create("inferredMrow")],g.childNodes[0].parent=g),g.setChildren(v),g.attributes=new i.Attributes(f.getNodeClass(g.kind).defaults,f.getNodeClass("math").defaults),g.attributes.setList(m),g}return h.prototype.copy=function(f){var m,v,g,b;f===void 0&&(f=!1);var S=this.factory.create(this.kind);if(S.properties=r({},this.properties),this.attributes){var E=this.attributes.getAllAttributes();try{for(var x=n(Object.keys(E)),O=x.next();!O.done;O=x.next()){var A=O.value;(A!=="id"||f)&&S.attributes.set(A,E[A])}}catch(L){m={error:L}}finally{try{O&&!O.done&&(v=x.return)&&v.call(x)}finally{if(m)throw m.error}}}if(this.childNodes&&this.childNodes.length){var M=this.childNodes;M.length===1&&M[0].isInferred&&(M=M[0].childNodes);try{for(var C=n(M),w=C.next();!w.done;w=C.next()){var k=w.value;k?S.appendChild(k.copy()):S.childNodes.push(null)}}catch(L){g={error:L}}finally{try{w&&!w.done&&(b=C.return)&&b.call(C)}finally{if(g)throw g.error}}}return S},Object.defineProperty(h.prototype,"texClass",{get:function(){return this.texclass},set:function(f){this.texclass=f},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"Parent",{get:function(){for(var f=this.parent;f&&f.notParent;)f=f.Parent;return f},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.setChildren=function(f){return this.arity<0?this.childNodes[0].setChildren(f):d.prototype.setChildren.call(this,f)},h.prototype.appendChild=function(f){var m,v,g=this;if(this.arity<0)return this.childNodes[0].appendChild(f),f;if(f.isInferred){if(this.arity===1/0)return f.childNodes.forEach(function(O){return d.prototype.appendChild.call(g,O)}),f;var b=f;f=this.factory.create("mrow"),f.setChildren(b.childNodes),f.attributes=b.attributes;try{for(var S=n(b.getPropertyNames()),E=S.next();!E.done;E=S.next()){var x=E.value;f.setProperty(x,b.getProperty(x))}}catch(O){m={error:O}}finally{try{E&&!E.done&&(v=S.return)&&v.call(S)}finally{if(m)throw m.error}}}return d.prototype.appendChild.call(this,f)},h.prototype.replaceChild=function(f,m){return this.arity<0?(this.childNodes[0].replaceChild(f,m),f):d.prototype.replaceChild.call(this,f,m)},h.prototype.core=function(){return this},h.prototype.coreMO=function(){return this},h.prototype.coreIndex=function(){return 0},h.prototype.childPosition=function(){for(var f,m,v=this,g=v.parent;g&&g.notParent;)v=g,g=g.parent;if(g){var b=0;try{for(var S=n(g.childNodes),E=S.next();!E.done;E=S.next()){if(E.value===v)return b;b++}}catch(x){f={error:x}}finally{try{E&&!E.done&&(m=S.return)&&m.call(S)}finally{if(f)throw f.error}}}return null},h.prototype.setTeXclass=function(f){return this.getPrevClass(f),this.texClass!=null?this:f},h.prototype.updateTeXclass=function(f){f&&(this.prevClass=f.prevClass,this.prevLevel=f.prevLevel,f.prevClass=f.prevLevel=null,this.texClass=f.texClass)},h.prototype.getPrevClass=function(f){f&&(this.prevClass=f.texClass,this.prevLevel=f.attributes.get("scriptlevel"))},h.prototype.texSpacing=function(){var f=this.prevClass!=null?this.prevClass:e.TEXCLASS.NONE,m=this.texClass||e.TEXCLASS.ORD;if(f===e.TEXCLASS.NONE||m===e.TEXCLASS.NONE)return"";f===e.TEXCLASS.VCENTER&&(f=e.TEXCLASS.ORD),m===e.TEXCLASS.VCENTER&&(m=e.TEXCLASS.ORD);var v=c[f][m];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&v>=0?"":s[Math.abs(v)]},h.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},h.prototype.setInheritedAttributes=function(f,m,v,g){var b,S;f===void 0&&(f={}),m===void 0&&(m=!1),v===void 0&&(v=0),g===void 0&&(g=!1);var E=this.attributes.getAllDefaults();try{for(var x=n(Object.keys(f)),O=x.next();!O.done;O=x.next()){var A=O.value;if(E.hasOwnProperty(A)||h.alwaysInherit.hasOwnProperty(A)){var M=o(f[A],2),C=M[0],w=M[1];((h.noInherit[C]||{})[this.kind]||{})[A]||this.attributes.setInherited(A,w)}}}catch(L){b={error:L}}finally{try{O&&!O.done&&(S=x.return)&&S.call(x)}finally{if(b)throw b.error}}this.attributes.getExplicit("displaystyle")===void 0&&this.attributes.setInherited("displaystyle",m),this.attributes.getExplicit("scriptlevel")===void 0&&this.attributes.setInherited("scriptlevel",v),g&&this.setProperty("texprimestyle",g);var k=this.arity;if(k>=0&&k!==1/0&&(k===1&&this.childNodes.length===0||k!==1&&this.childNodes.length!==k))if(k<this.childNodes.length)this.childNodes=this.childNodes.slice(0,k);else for(;this.childNodes.length<k;)this.appendChild(this.factory.create("mrow"));this.setChildInheritedAttributes(f,m,v,g)},h.prototype.setChildInheritedAttributes=function(f,m,v,g){var b,S;try{for(var E=n(this.childNodes),x=E.next();!x.done;x=E.next())x.value.setInheritedAttributes(f,m,v,g)}catch(O){b={error:O}}finally{try{x&&!x.done&&(S=E.return)&&S.call(E)}finally{if(b)throw b.error}}},h.prototype.addInheritedAttributes=function(f,m){var v,g,b=r({},f);try{for(var S=n(Object.keys(m)),E=S.next();!E.done;E=S.next()){var x=E.value;x!=="displaystyle"&&x!=="scriptlevel"&&x!=="style"&&(b[x]=[this.kind,m[x]])}}catch(O){v={error:O}}finally{try{E&&!E.done&&(g=S.return)&&g.call(S)}finally{if(v)throw v.error}}return b},h.prototype.inheritAttributesFrom=function(f){var m=f.attributes,v=m.get("displaystyle"),g=m.get("scriptlevel"),b=m.isSet("mathsize")?{mathsize:["math",m.get("mathsize")]}:{},S=f.getProperty("texprimestyle")||!1;this.setInheritedAttributes(b,v,g,S)},h.prototype.verifyTree=function(f){if(f===void 0&&(f=null),f!==null){this.verifyAttributes(f);var m=this.arity;f.checkArity&&m>=0&&m!==1/0&&(m===1&&this.childNodes.length===0||m!==1&&this.childNodes.length!==m)&&this.mError('Wrong number of children for "'+this.kind+'" node',f,!0),this.verifyChildren(f)}},h.prototype.verifyAttributes=function(f){var m,v;if(f.checkAttributes){var g=this.attributes,b=[];try{for(var S=n(g.getExplicitNames()),E=S.next();!E.done;E=S.next()){var x=E.value;x.substr(0,5)!=="data-"&&g.getDefault(x)===void 0&&!x.match(/^(?:class|style|id|(?:xlink:)?href)$/)&&b.push(x)}}catch(O){m={error:O}}finally{try{E&&!E.done&&(v=S.return)&&v.call(S)}finally{if(m)throw m.error}}b.length&&this.mError("Unknown attributes for "+this.kind+" node: "+b.join(", "),f)}},h.prototype.verifyChildren=function(f){var m,v;try{for(var g=n(this.childNodes),b=g.next();!b.done;b=g.next())b.value.verifyTree(f)}catch(S){m={error:S}}finally{try{b&&!b.done&&(v=g.return)&&v.call(g)}finally{if(m)throw m.error}}},h.prototype.mError=function(f,m,v){if(v===void 0&&(v=!1),this.parent&&this.parent.isKind("merror"))return null;var g=this.factory.create("merror");if(g.attributes.set("data-mjx-message",f),m.fullErrors||v){var b=this.factory.create("mtext"),S=this.factory.create("text");S.setText(m.fullErrors?f:this.kind),b.appendChild(S),g.appendChild(b),this.parent.replaceChild(g,this)}else this.parent.replaceChild(g,this),g.appendChild(this);return g},h.defaults={mathbackground:i.INHERIT,mathcolor:i.INHERIT,mathsize:i.INHERIT,dir:i.INHERIT},h.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}}},h.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0},h.verifyDefaults={checkArity:!0,checkAttributes:!1,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0},h})(a.AbstractNode);e.AbstractMmlNode=l,e.AbstractMmlTokenNode=(function(d){t(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(h.prototype,"isToken",{get:function(){return!0},enumerable:!1,configurable:!0}),h.prototype.getText=function(){var f,m,v="";try{for(var g=n(this.childNodes),b=g.next();!b.done;b=g.next()){var S=b.value;S instanceof p&&(v+=S.getText())}}catch(E){f={error:E}}finally{try{b&&!b.done&&(m=g.return)&&m.call(g)}finally{if(f)throw f.error}}return v},h.prototype.setChildInheritedAttributes=function(f,m,v,g){var b,S;try{for(var E=n(this.childNodes),x=E.next();!x.done;x=E.next()){var O=x.value;O instanceof l&&O.setInheritedAttributes(f,m,v,g)}}catch(A){b={error:A}}finally{try{x&&!x.done&&(S=E.return)&&S.call(E)}finally{if(b)throw b.error}}},h.prototype.walkTree=function(f,m){var v,g;f(this,m);try{for(var b=n(this.childNodes),S=b.next();!S.done;S=b.next()){var E=S.value;E instanceof l&&E.walkTree(f,m)}}catch(x){v={error:x}}finally{try{S&&!S.done&&(g=b.return)&&g.call(b)}finally{if(v)throw v.error}}return m},h.defaults=r(r({},l.defaults),{mathvariant:"normal",mathsize:i.INHERIT}),h})(l),e.AbstractMmlLayoutNode=(function(d){t(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(h.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),h.prototype.core=function(){return this.childNodes[0]},h.prototype.coreMO=function(){return this.childNodes[0].coreMO()},h.prototype.setTeXclass=function(f){return f=this.childNodes[0].setTeXclass(f),this.updateTeXclass(this.childNodes[0]),f},h.defaults=l.defaults,h})(l),e.AbstractMmlBaseNode=(function(d){t(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(h.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),h.prototype.core=function(){return this.childNodes[0]},h.prototype.coreMO=function(){return this.childNodes[0].coreMO()},h.prototype.setTeXclass=function(f){var m,v;this.getPrevClass(f),this.texClass=e.TEXCLASS.ORD;var g=this.childNodes[0];g?this.isEmbellished||g.isKind("mi")?(f=g.setTeXclass(f),this.updateTeXclass(this.core())):(g.setTeXclass(null),f=this):f=this;try{for(var b=n(this.childNodes.slice(1)),S=b.next();!S.done;S=b.next()){var E=S.value;E&&E.setTeXclass(null)}}catch(x){m={error:x}}finally{try{S&&!S.done&&(v=b.return)&&v.call(b)}finally{if(m)throw m.error}}return f},h.defaults=l.defaults,h})(l);var u=(function(d){t(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(h.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"texClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"prevClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"prevLevel",{get:function(){return 0},enumerable:!1,configurable:!0}),h.prototype.hasSpacingAttributes=function(){return!1},Object.defineProperty(h.prototype,"attributes",{get:function(){return null},enumerable:!1,configurable:!0}),h.prototype.core=function(){return this},h.prototype.coreMO=function(){return this},h.prototype.coreIndex=function(){return 0},h.prototype.childPosition=function(){return 0},h.prototype.setTeXclass=function(f){return f},h.prototype.texSpacing=function(){return""},h.prototype.setInheritedAttributes=function(f,m,v,g){},h.prototype.inheritAttributesFrom=function(f){},h.prototype.verifyTree=function(f){},h.prototype.mError=function(f,m,v){return null},h})(a.AbstractEmptyNode);e.AbstractMmlEmptyNode=u;var p=(function(d){t(h,d);function h(){var f=d!==null&&d.apply(this,arguments)||this;return f.text="",f}return Object.defineProperty(h.prototype,"kind",{get:function(){return"text"},enumerable:!1,configurable:!0}),h.prototype.getText=function(){return this.text},h.prototype.setText=function(f){return this.text=f,this},h.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())},h.prototype.toString=function(){return this.text},h})(u);e.TextNode=p,e.XMLNode=(function(d){t(h,d);function h(){var f=d!==null&&d.apply(this,arguments)||this;return f.xml=null,f.adaptor=null,f}return Object.defineProperty(h.prototype,"kind",{get:function(){return"XML"},enumerable:!1,configurable:!0}),h.prototype.getXML=function(){return this.xml},h.prototype.setXML=function(f,m){return m===void 0&&(m=null),this.xml=f,this.adaptor=m,this},h.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)},h.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))},h.prototype.toString=function(){return"XML data"},h})(u)})(ce),ee(ce);var vc={},vN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),wu=y&&y.__assign||(function(){return wu=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),wu.apply(this,arguments)});Object.defineProperty(vc,"__esModule",{value:!0}),vc.MmlMath=void 0;var A2=ce;vc.MmlMath=(function(e){vN(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(r,n,o,i){this.attributes.get("mode")==="display"&&this.attributes.setInherited("display","block"),r=this.addInheritedAttributes(r,this.attributes.getAllAttributes()),n=!!this.attributes.get("displaystyle")||!this.attributes.get("displaystyle")&&this.attributes.get("display")==="block",this.attributes.setInherited("displaystyle",n),o=this.attributes.get("scriptlevel")||this.constructor.defaults.scriptlevel,e.prototype.setChildInheritedAttributes.call(this,r,n,o,i)},t.defaults=wu(wu({},A2.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})(A2.AbstractMmlLayoutNode);var ia={},SN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ay=y&&y.__assign||(function(){return Ay=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Ay.apply(this,arguments)});Object.defineProperty(ia,"__esModule",{value:!0}),ia.MmlMi=void 0;var Ru=ce;ia.MmlMi=(function(e){SN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Ru.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mi"},enumerable:!1,configurable:!0}),t.prototype.setInheritedAttributes=function(r,n,o,i){r===void 0&&(r={}),n===void 0&&(n=!1),o===void 0&&(o=0),i===void 0&&(i=!1),e.prototype.setInheritedAttributes.call(this,r,n,o,i),this.getText().match(t.singleCharacter)&&!r.mathvariant&&this.attributes.setInherited("mathvariant","italic")},t.prototype.setTeXclass=function(r){this.getPrevClass(r);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=Ru.TEXCLASS.OP,this.setProperty("autoOP",!0)),this},t.defaults=Ay({},Ru.AbstractMmlTokenNode.defaults),t.operatorName=/^[a-z][a-z0-9]*$/i,t.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/,t})(Ru.AbstractMmlTokenNode);var Sc={},EN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ty=y&&y.__assign||(function(){return Ty=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Ty.apply(this,arguments)});Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.MmlMn=void 0;var Cy=ce;Sc.MmlMn=(function(e){EN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Cy.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mn"},enumerable:!1,configurable:!0}),t.defaults=Ty({},Cy.AbstractMmlTokenNode.defaults),t})(Cy.AbstractMmlTokenNode);var ri={},Lu={};(function(e){var t=y&&y.__values||(function(i){var a=typeof Symbol=="function"&&Symbol.iterator,s=a&&i[a],c=0;if(s)return s.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(e,"__esModule",{value:!0}),e.OPTABLE=e.MMLSPACING=e.getRange=e.RANGES=e.MO=e.OPDEF=void 0;var r=ce;function n(i,a,s,c){return s===void 0&&(s=r.TEXCLASS.BIN),c===void 0&&(c=null),[i,a,s,c]}e.OPDEF=n,e.MO={ORD:n(0,0,r.TEXCLASS.ORD),ORD11:n(1,1,r.TEXCLASS.ORD),ORD21:n(2,1,r.TEXCLASS.ORD),ORD02:n(0,2,r.TEXCLASS.ORD),ORD55:n(5,5,r.TEXCLASS.ORD),NONE:n(0,0,r.TEXCLASS.NONE),OP:n(1,2,r.TEXCLASS.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:n(1,2,r.TEXCLASS.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:n(0,1,r.TEXCLASS.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:n(1,2,r.TEXCLASS.OP,{largeop:!0,symmetric:!0}),BIN3:n(3,3,r.TEXCLASS.BIN),BIN4:n(4,4,r.TEXCLASS.BIN),BIN01:n(0,1,r.TEXCLASS.BIN),BIN5:n(5,5,r.TEXCLASS.BIN),TALLBIN:n(4,4,r.TEXCLASS.BIN,{stretchy:!0}),BINOP:n(4,4,r.TEXCLASS.BIN,{largeop:!0,movablelimits:!0}),REL:n(5,5,r.TEXCLASS.REL),REL1:n(1,1,r.TEXCLASS.REL,{stretchy:!0}),REL4:n(4,4,r.TEXCLASS.REL),RELSTRETCH:n(5,5,r.TEXCLASS.REL,{stretchy:!0}),RELACCENT:n(5,5,r.TEXCLASS.REL,{accent:!0}),WIDEREL:n(5,5,r.TEXCLASS.REL,{accent:!0,stretchy:!0}),OPEN:n(0,0,r.TEXCLASS.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:n(0,0,r.TEXCLASS.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:n(0,0,r.TEXCLASS.INNER),PUNCT:n(0,3,r.TEXCLASS.PUNCT),ACCENT:n(0,0,r.TEXCLASS.ORD,{accent:!0}),WIDEACCENT:n(0,0,r.TEXCLASS.ORD,{accent:!0,stretchy:!0})},e.RANGES=[[32,127,r.TEXCLASS.REL,"mo"],[160,191,r.TEXCLASS.ORD,"mo"],[192,591,r.TEXCLASS.ORD,"mi"],[688,879,r.TEXCLASS.ORD,"mo"],[880,6688,r.TEXCLASS.ORD,"mi"],[6832,6911,r.TEXCLASS.ORD,"mo"],[6912,7615,r.TEXCLASS.ORD,"mi"],[7616,7679,r.TEXCLASS.ORD,"mo"],[7680,8191,r.TEXCLASS.ORD,"mi"],[8192,8303,r.TEXCLASS.ORD,"mo"],[8304,8351,r.TEXCLASS.ORD,"mo"],[8448,8527,r.TEXCLASS.ORD,"mi"],[8528,8591,r.TEXCLASS.ORD,"mn"],[8592,8703,r.TEXCLASS.REL,"mo"],[8704,8959,r.TEXCLASS.BIN,"mo"],[8960,9215,r.TEXCLASS.ORD,"mo"],[9312,9471,r.TEXCLASS.ORD,"mn"],[9472,10223,r.TEXCLASS.ORD,"mo"],[10224,10239,r.TEXCLASS.REL,"mo"],[10240,10495,r.TEXCLASS.ORD,"mtext"],[10496,10623,r.TEXCLASS.REL,"mo"],[10624,10751,r.TEXCLASS.ORD,"mo"],[10752,11007,r.TEXCLASS.BIN,"mo"],[11008,11055,r.TEXCLASS.ORD,"mo"],[11056,11087,r.TEXCLASS.REL,"mo"],[11088,11263,r.TEXCLASS.ORD,"mo"],[11264,11744,r.TEXCLASS.ORD,"mi"],[11776,11903,r.TEXCLASS.ORD,"mo"],[11904,12255,r.TEXCLASS.ORD,"mi","normal"],[12272,12351,r.TEXCLASS.ORD,"mo"],[12352,42143,r.TEXCLASS.ORD,"mi","normal"],[42192,43055,r.TEXCLASS.ORD,"mi"],[43056,43071,r.TEXCLASS.ORD,"mn"],[43072,55295,r.TEXCLASS.ORD,"mi"],[63744,64255,r.TEXCLASS.ORD,"mi","normal"],[64256,65023,r.TEXCLASS.ORD,"mi"],[65024,65135,r.TEXCLASS.ORD,"mo"],[65136,65791,r.TEXCLASS.ORD,"mi"],[65792,65935,r.TEXCLASS.ORD,"mn"],[65936,74751,r.TEXCLASS.ORD,"mi","normal"],[74752,74879,r.TEXCLASS.ORD,"mn"],[74880,113823,r.TEXCLASS.ORD,"mi","normal"],[113824,119391,r.TEXCLASS.ORD,"mo"],[119648,119679,r.TEXCLASS.ORD,"mn"],[119808,120781,r.TEXCLASS.ORD,"mi"],[120782,120831,r.TEXCLASS.ORD,"mn"],[122624,129023,r.TEXCLASS.ORD,"mo"],[129024,129279,r.TEXCLASS.REL,"mo"],[129280,129535,r.TEXCLASS.ORD,"mo"],[131072,195103,r.TEXCLASS.ORD,"mi","normnal"]];function o(i){var a,s,c=i.codePointAt(0);try{for(var l=t(e.RANGES),u=l.next();!u.done;u=l.next()){var p=u.value;if(c<=p[1]){if(c>=p[0])return p;break}}}catch(d){a={error:d}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}return null}e.getRange=o,e.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]],e.OPTABLE={prefix:{"(":e.MO.OPEN,"+":e.MO.BIN01,"-":e.MO.BIN01,"[":e.MO.OPEN,"{":e.MO.OPEN,"|":e.MO.OPEN,"||":[0,0,r.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,r.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¬":e.MO.ORD21,"±":e.MO.BIN01,"‖":[0,0,r.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"‘":[0,0,r.TEXCLASS.OPEN,{fence:!0}],"“":[0,0,r.TEXCLASS.OPEN,{fence:!0}],"ⅅ":e.MO.ORD21,"ⅆ":n(2,0,r.TEXCLASS.ORD),"∀":e.MO.ORD21,"∂":e.MO.ORD21,"∃":e.MO.ORD21,"∄":e.MO.ORD21,"∇":e.MO.ORD21,"∏":e.MO.OP,"∐":e.MO.OP,"∑":e.MO.OP,"−":e.MO.BIN01,"∓":e.MO.BIN01,"√":[1,1,r.TEXCLASS.ORD,{stretchy:!0}],"∛":e.MO.ORD11,"∜":e.MO.ORD11,"∠":e.MO.ORD,"∡":e.MO.ORD,"∢":e.MO.ORD,"∫":e.MO.INTEGRAL,"∬":e.MO.INTEGRAL,"∭":e.MO.INTEGRAL,"∮":e.MO.INTEGRAL,"∯":e.MO.INTEGRAL,"∰":e.MO.INTEGRAL,"∱":e.MO.INTEGRAL,"∲":e.MO.INTEGRAL,"∳":e.MO.INTEGRAL,"⋀":e.MO.OP,"⋁":e.MO.OP,"⋂":e.MO.OP,"⋃":e.MO.OP,"⌈":e.MO.OPEN,"⌊":e.MO.OPEN,"〈":e.MO.OPEN,"❲":e.MO.OPEN,"⟦":e.MO.OPEN,"⟨":e.MO.OPEN,"⟪":e.MO.OPEN,"⟬":e.MO.OPEN,"⟮":e.MO.OPEN,"⦀":[0,0,r.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦃":e.MO.OPEN,"⦅":e.MO.OPEN,"⦇":e.MO.OPEN,"⦉":e.MO.OPEN,"⦋":e.MO.OPEN,"⦍":e.MO.OPEN,"⦏":e.MO.OPEN,"⦑":e.MO.OPEN,"⦓":e.MO.OPEN,"⦕":e.MO.OPEN,"⦗":e.MO.OPEN,"⧼":e.MO.OPEN,"⨀":e.MO.OP,"⨁":e.MO.OP,"⨂":e.MO.OP,"⨃":e.MO.OP,"⨄":e.MO.OP,"⨅":e.MO.OP,"⨆":e.MO.OP,"⨇":e.MO.OP,"⨈":e.MO.OP,"⨉":e.MO.OP,"⨊":e.MO.OP,"⨋":e.MO.INTEGRAL2,"⨌":e.MO.INTEGRAL,"⨍":e.MO.INTEGRAL2,"⨎":e.MO.INTEGRAL2,"⨏":e.MO.INTEGRAL2,"⨐":e.MO.OP,"⨑":e.MO.OP,"⨒":e.MO.OP,"⨓":e.MO.OP,"⨔":e.MO.OP,"⨕":e.MO.INTEGRAL2,"⨖":e.MO.INTEGRAL2,"⨗":e.MO.INTEGRAL2,"⨘":e.MO.INTEGRAL2,"⨙":e.MO.INTEGRAL2,"⨚":e.MO.INTEGRAL2,"⨛":e.MO.INTEGRAL2,"⨜":e.MO.INTEGRAL2,"⫼":e.MO.OP,"⫿":e.MO.OP},postfix:{"!!":n(1,0),"!":[1,0,r.TEXCLASS.CLOSE,null],'"':e.MO.ACCENT,"&":e.MO.ORD,")":e.MO.CLOSE,"++":n(0,0),"--":n(0,0),"..":n(0,0),"...":e.MO.ORD,"'":e.MO.ACCENT,"]":e.MO.CLOSE,"^":e.MO.WIDEACCENT,_:e.MO.WIDEACCENT,"`":e.MO.ACCENT,"|":e.MO.CLOSE,"}":e.MO.CLOSE,"~":e.MO.WIDEACCENT,"||":[0,0,r.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,r.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¨":e.MO.ACCENT,ª:e.MO.ACCENT,"¯":e.MO.WIDEACCENT,"°":e.MO.ORD,"²":e.MO.ACCENT,"³":e.MO.ACCENT,"´":e.MO.ACCENT,"¸":e.MO.ACCENT,"¹":e.MO.ACCENT,º:e.MO.ACCENT,"ˆ":e.MO.WIDEACCENT,"ˇ":e.MO.WIDEACCENT,"ˉ":e.MO.WIDEACCENT,"ˊ":e.MO.ACCENT,"ˋ":e.MO.ACCENT,"ˍ":e.MO.WIDEACCENT,"˘":e.MO.ACCENT,"˙":e.MO.ACCENT,"˚":e.MO.ACCENT,"˜":e.MO.WIDEACCENT,"˝":e.MO.ACCENT,"˷":e.MO.WIDEACCENT,"̂":e.MO.WIDEACCENT,"̑":e.MO.ACCENT,"϶":e.MO.REL,"‖":[0,0,r.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"’":[0,0,r.TEXCLASS.CLOSE,{fence:!0}],"‚":e.MO.ACCENT,"‛":e.MO.ACCENT,"”":[0,0,r.TEXCLASS.CLOSE,{fence:!0}],"„":e.MO.ACCENT,"‟":e.MO.ACCENT,"′":e.MO.ORD,"″":e.MO.ACCENT,"‴":e.MO.ACCENT,"‵":e.MO.ACCENT,"‶":e.MO.ACCENT,"‷":e.MO.ACCENT,"‾":e.MO.WIDEACCENT,"⁗":e.MO.ACCENT,"⃛":e.MO.ACCENT,"⃜":e.MO.ACCENT,"⌉":e.MO.CLOSE,"⌋":e.MO.CLOSE,"〉":e.MO.CLOSE,"⎴":e.MO.WIDEACCENT,"⎵":e.MO.WIDEACCENT,"⏜":e.MO.WIDEACCENT,"⏝":e.MO.WIDEACCENT,"⏞":e.MO.WIDEACCENT,"⏟":e.MO.WIDEACCENT,"⏠":e.MO.WIDEACCENT,"⏡":e.MO.WIDEACCENT,"■":e.MO.BIN3,"□":e.MO.BIN3,"▪":e.MO.BIN3,"▫":e.MO.BIN3,"▭":e.MO.BIN3,"▮":e.MO.BIN3,"▯":e.MO.BIN3,"▰":e.MO.BIN3,"▱":e.MO.BIN3,"▲":e.MO.BIN4,"▴":e.MO.BIN4,"▶":e.MO.BIN4,"▷":e.MO.BIN4,"▸":e.MO.BIN4,"▼":e.MO.BIN4,"▾":e.MO.BIN4,"◀":e.MO.BIN4,"◁":e.MO.BIN4,"◂":e.MO.BIN4,"◄":e.MO.BIN4,"◅":e.MO.BIN4,"◆":e.MO.BIN4,"◇":e.MO.BIN4,"◈":e.MO.BIN4,"◉":e.MO.BIN4,"◌":e.MO.BIN4,"◍":e.MO.BIN4,"◎":e.MO.BIN4,"●":e.MO.BIN4,"◖":e.MO.BIN4,"◗":e.MO.BIN4,"◦":e.MO.BIN4,"♭":e.MO.ORD02,"♮":e.MO.ORD02,"♯":e.MO.ORD02,"❳":e.MO.CLOSE,"⟧":e.MO.CLOSE,"⟩":e.MO.CLOSE,"⟫":e.MO.CLOSE,"⟭":e.MO.CLOSE,"⟯":e.MO.CLOSE,"⦀":[0,0,r.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦄":e.MO.CLOSE,"⦆":e.MO.CLOSE,"⦈":e.MO.CLOSE,"⦊":e.MO.CLOSE,"⦌":e.MO.CLOSE,"⦎":e.MO.CLOSE,"⦐":e.MO.CLOSE,"⦒":e.MO.CLOSE,"⦔":e.MO.CLOSE,"⦖":e.MO.CLOSE,"⦘":e.MO.CLOSE,"⧽":e.MO.CLOSE},infix:{"!=":e.MO.BIN4,"#":e.MO.ORD,$:e.MO.ORD,"%":[3,3,r.TEXCLASS.ORD,null],"&&":e.MO.BIN4,"":e.MO.ORD,"*":e.MO.BIN3,"**":n(1,1),"*=":e.MO.BIN4,"+":e.MO.BIN4,"+=":e.MO.BIN4,",":[0,3,r.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"-":e.MO.BIN4,"-=":e.MO.BIN4,"->":e.MO.BIN5,".":[0,3,r.TEXCLASS.PUNCT,{separator:!0}],"/":e.MO.ORD11,"//":n(1,1),"/=":e.MO.BIN4,":":[1,2,r.TEXCLASS.REL,null],":=":e.MO.BIN4,";":[0,3,r.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"<":e.MO.REL,"<=":e.MO.BIN5,"<>":n(1,1),"=":e.MO.REL,"==":e.MO.BIN4,">":e.MO.REL,">=":e.MO.BIN5,"?":[1,1,r.TEXCLASS.CLOSE,null],"@":e.MO.ORD11,"\\":e.MO.ORD,"^":e.MO.ORD11,_:e.MO.ORD11,"|":[2,2,r.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,r.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,r.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"±":e.MO.BIN4,"·":e.MO.BIN4,"×":e.MO.BIN4,"÷":e.MO.BIN4,"ʹ":e.MO.ORD,"̀":e.MO.ACCENT,"́":e.MO.ACCENT,"̃":e.MO.WIDEACCENT,"̄":e.MO.ACCENT,"̆":e.MO.ACCENT,"̇":e.MO.ACCENT,"̈":e.MO.ACCENT,"̌":e.MO.ACCENT,"̲":e.MO.WIDEACCENT,"̸":e.MO.REL4,"―":[0,0,r.TEXCLASS.ORD,{stretchy:!0}],"‗":[0,0,r.TEXCLASS.ORD,{stretchy:!0}],"†":e.MO.BIN3,"‡":e.MO.BIN3,"•":e.MO.BIN4,"…":e.MO.INNER,"⁃":e.MO.BIN4,"⁄":e.MO.TALLBIN,"⁡":e.MO.NONE,"⁢":e.MO.NONE,"⁣":[0,0,r.TEXCLASS.NONE,{linebreakstyle:"after",separator:!0}],"⁤":e.MO.NONE,"⃗":e.MO.ACCENT,ℑ:e.MO.ORD,ℓ:e.MO.ORD,"℘":e.MO.ORD,ℜ:e.MO.ORD,"←":e.MO.WIDEREL,"↑":e.MO.RELSTRETCH,"→":e.MO.WIDEREL,"↓":e.MO.RELSTRETCH,"↔":e.MO.WIDEREL,"↕":e.MO.RELSTRETCH,"↖":e.MO.RELSTRETCH,"↗":e.MO.RELSTRETCH,"↘":e.MO.RELSTRETCH,"↙":e.MO.RELSTRETCH,"↚":e.MO.RELACCENT,"↛":e.MO.RELACCENT,"↜":e.MO.WIDEREL,"↝":e.MO.WIDEREL,"↞":e.MO.WIDEREL,"↟":e.MO.WIDEREL,"↠":e.MO.WIDEREL,"↡":e.MO.RELSTRETCH,"↢":e.MO.WIDEREL,"↣":e.MO.WIDEREL,"↤":e.MO.WIDEREL,"↥":e.MO.RELSTRETCH,"↦":e.MO.WIDEREL,"↧":e.MO.RELSTRETCH,"↨":e.MO.RELSTRETCH,"↩":e.MO.WIDEREL,"↪":e.MO.WIDEREL,"↫":e.MO.WIDEREL,"↬":e.MO.WIDEREL,"↭":e.MO.WIDEREL,"↮":e.MO.RELACCENT,"↯":e.MO.RELSTRETCH,"↰":e.MO.RELSTRETCH,"↱":e.MO.RELSTRETCH,"↲":e.MO.RELSTRETCH,"↳":e.MO.RELSTRETCH,"↴":e.MO.RELSTRETCH,"↵":e.MO.RELSTRETCH,"↶":e.MO.RELACCENT,"↷":e.MO.RELACCENT,"↸":e.MO.REL,"↹":e.MO.WIDEREL,"↺":e.MO.REL,"↻":e.MO.REL,"↼":e.MO.WIDEREL,"↽":e.MO.WIDEREL,"↾":e.MO.RELSTRETCH,"↿":e.MO.RELSTRETCH,"⇀":e.MO.WIDEREL,"⇁":e.MO.WIDEREL,"⇂":e.MO.RELSTRETCH,"⇃":e.MO.RELSTRETCH,"⇄":e.MO.WIDEREL,"⇅":e.MO.RELSTRETCH,"⇆":e.MO.WIDEREL,"⇇":e.MO.WIDEREL,"⇈":e.MO.RELSTRETCH,"⇉":e.MO.WIDEREL,"⇊":e.MO.RELSTRETCH,"⇋":e.MO.WIDEREL,"⇌":e.MO.WIDEREL,"⇍":e.MO.RELACCENT,"⇎":e.MO.RELACCENT,"⇏":e.MO.RELACCENT,"⇐":e.MO.WIDEREL,"⇑":e.MO.RELSTRETCH,"⇒":e.MO.WIDEREL,"⇓":e.MO.RELSTRETCH,"⇔":e.MO.WIDEREL,"⇕":e.MO.RELSTRETCH,"⇖":e.MO.RELSTRETCH,"⇗":e.MO.RELSTRETCH,"⇘":e.MO.RELSTRETCH,"⇙":e.MO.RELSTRETCH,"⇚":e.MO.WIDEREL,"⇛":e.MO.WIDEREL,"⇜":e.MO.WIDEREL,"⇝":e.MO.WIDEREL,"⇞":e.MO.REL,"⇟":e.MO.REL,"⇠":e.MO.WIDEREL,"⇡":e.MO.RELSTRETCH,"⇢":e.MO.WIDEREL,"⇣":e.MO.RELSTRETCH,"⇤":e.MO.WIDEREL,"⇥":e.MO.WIDEREL,"⇦":e.MO.WIDEREL,"⇧":e.MO.RELSTRETCH,"⇨":e.MO.WIDEREL,"⇩":e.MO.RELSTRETCH,"⇪":e.MO.RELSTRETCH,"⇫":e.MO.RELSTRETCH,"⇬":e.MO.RELSTRETCH,"⇭":e.MO.RELSTRETCH,"⇮":e.MO.RELSTRETCH,"⇯":e.MO.RELSTRETCH,"⇰":e.MO.WIDEREL,"⇱":e.MO.REL,"⇲":e.MO.REL,"⇳":e.MO.RELSTRETCH,"⇴":e.MO.RELACCENT,"⇵":e.MO.RELSTRETCH,"⇶":e.MO.WIDEREL,"⇷":e.MO.RELACCENT,"⇸":e.MO.RELACCENT,"⇹":e.MO.RELACCENT,"⇺":e.MO.RELACCENT,"⇻":e.MO.RELACCENT,"⇼":e.MO.RELACCENT,"⇽":e.MO.WIDEREL,"⇾":e.MO.WIDEREL,"⇿":e.MO.WIDEREL,"∁":n(1,2,r.TEXCLASS.ORD),"∅":e.MO.ORD,"∆":e.MO.BIN3,"∈":e.MO.REL,"∉":e.MO.REL,"∊":e.MO.REL,"∋":e.MO.REL,"∌":e.MO.REL,"∍":e.MO.REL,"∎":e.MO.BIN3,"−":e.MO.BIN4,"∓":e.MO.BIN4,"∔":e.MO.BIN4,"∕":e.MO.TALLBIN,"∖":e.MO.BIN4,"∗":e.MO.BIN4,"∘":e.MO.BIN4,"∙":e.MO.BIN4,"∝":e.MO.REL,"∞":e.MO.ORD,"∟":e.MO.REL,"∣":e.MO.REL,"∤":e.MO.REL,"∥":e.MO.REL,"∦":e.MO.REL,"∧":e.MO.BIN4,"∨":e.MO.BIN4,"∩":e.MO.BIN4,"∪":e.MO.BIN4,"∴":e.MO.REL,"∵":e.MO.REL,"∶":e.MO.REL,"∷":e.MO.REL,"∸":e.MO.BIN4,"∹":e.MO.REL,"∺":e.MO.BIN4,"∻":e.MO.REL,"∼":e.MO.REL,"∽":e.MO.REL,"∽̱":e.MO.BIN3,"∾":e.MO.REL,"∿":e.MO.BIN3,"≀":e.MO.BIN4,"≁":e.MO.REL,"≂":e.MO.REL,"≂̸":e.MO.REL,"≃":e.MO.REL,"≄":e.MO.REL,"≅":e.MO.REL,"≆":e.MO.REL,"≇":e.MO.REL,"≈":e.MO.REL,"≉":e.MO.REL,"≊":e.MO.REL,"≋":e.MO.REL,"≌":e.MO.REL,"≍":e.MO.REL,"≎":e.MO.REL,"≎̸":e.MO.REL,"≏":e.MO.REL,"≏̸":e.MO.REL,"≐":e.MO.REL,"≑":e.MO.REL,"≒":e.MO.REL,"≓":e.MO.REL,"≔":e.MO.REL,"≕":e.MO.REL,"≖":e.MO.REL,"≗":e.MO.REL,"≘":e.MO.REL,"≙":e.MO.REL,"≚":e.MO.REL,"≛":e.MO.REL,"≜":e.MO.REL,"≝":e.MO.REL,"≞":e.MO.REL,"≟":e.MO.REL,"≠":e.MO.REL,"≡":e.MO.REL,"≢":e.MO.REL,"≣":e.MO.REL,"≤":e.MO.REL,"≥":e.MO.REL,"≦":e.MO.REL,"≦̸":e.MO.REL,"≧":e.MO.REL,"≨":e.MO.REL,"≩":e.MO.REL,"≪":e.MO.REL,"≪̸":e.MO.REL,"≫":e.MO.REL,"≫̸":e.MO.REL,"≬":e.MO.REL,"≭":e.MO.REL,"≮":e.MO.REL,"≯":e.MO.REL,"≰":e.MO.REL,"≱":e.MO.REL,"≲":e.MO.REL,"≳":e.MO.REL,"≴":e.MO.REL,"≵":e.MO.REL,"≶":e.MO.REL,"≷":e.MO.REL,"≸":e.MO.REL,"≹":e.MO.REL,"≺":e.MO.REL,"≻":e.MO.REL,"≼":e.MO.REL,"≽":e.MO.REL,"≾":e.MO.REL,"≿":e.MO.REL,"≿̸":e.MO.REL,"⊀":e.MO.REL,"⊁":e.MO.REL,"⊂":e.MO.REL,"⊂⃒":e.MO.REL,"⊃":e.MO.REL,"⊃⃒":e.MO.REL,"⊄":e.MO.REL,"⊅":e.MO.REL,"⊆":e.MO.REL,"⊇":e.MO.REL,"⊈":e.MO.REL,"⊉":e.MO.REL,"⊊":e.MO.REL,"⊋":e.MO.REL,"⊌":e.MO.BIN4,"⊍":e.MO.BIN4,"⊎":e.MO.BIN4,"⊏":e.MO.REL,"⊏̸":e.MO.REL,"⊐":e.MO.REL,"⊐̸":e.MO.REL,"⊑":e.MO.REL,"⊒":e.MO.REL,"⊓":e.MO.BIN4,"⊔":e.MO.BIN4,"⊕":e.MO.BIN4,"⊖":e.MO.BIN4,"⊗":e.MO.BIN4,"⊘":e.MO.BIN4,"⊙":e.MO.BIN4,"⊚":e.MO.BIN4,"⊛":e.MO.BIN4,"⊜":e.MO.BIN4,"⊝":e.MO.BIN4,"⊞":e.MO.BIN4,"⊟":e.MO.BIN4,"⊠":e.MO.BIN4,"⊡":e.MO.BIN4,"⊢":e.MO.REL,"⊣":e.MO.REL,"⊤":e.MO.ORD55,"⊥":e.MO.REL,"⊦":e.MO.REL,"⊧":e.MO.REL,"⊨":e.MO.REL,"⊩":e.MO.REL,"⊪":e.MO.REL,"⊫":e.MO.REL,"⊬":e.MO.REL,"⊭":e.MO.REL,"⊮":e.MO.REL,"⊯":e.MO.REL,"⊰":e.MO.REL,"⊱":e.MO.REL,"⊲":e.MO.REL,"⊳":e.MO.REL,"⊴":e.MO.REL,"⊵":e.MO.REL,"⊶":e.MO.REL,"⊷":e.MO.REL,"⊸":e.MO.REL,"⊹":e.MO.REL,"⊺":e.MO.BIN4,"⊻":e.MO.BIN4,"⊼":e.MO.BIN4,"⊽":e.MO.BIN4,"⊾":e.MO.BIN3,"⊿":e.MO.BIN3,"⋄":e.MO.BIN4,"⋅":e.MO.BIN4,"⋆":e.MO.BIN4,"⋇":e.MO.BIN4,"⋈":e.MO.REL,"⋉":e.MO.BIN4,"⋊":e.MO.BIN4,"⋋":e.MO.BIN4,"⋌":e.MO.BIN4,"⋍":e.MO.REL,"⋎":e.MO.BIN4,"⋏":e.MO.BIN4,"⋐":e.MO.REL,"⋑":e.MO.REL,"⋒":e.MO.BIN4,"⋓":e.MO.BIN4,"⋔":e.MO.REL,"⋕":e.MO.REL,"⋖":e.MO.REL,"⋗":e.MO.REL,"⋘":e.MO.REL,"⋙":e.MO.REL,"⋚":e.MO.REL,"⋛":e.MO.REL,"⋜":e.MO.REL,"⋝":e.MO.REL,"⋞":e.MO.REL,"⋟":e.MO.REL,"⋠":e.MO.REL,"⋡":e.MO.REL,"⋢":e.MO.REL,"⋣":e.MO.REL,"⋤":e.MO.REL,"⋥":e.MO.REL,"⋦":e.MO.REL,"⋧":e.MO.REL,"⋨":e.MO.REL,"⋩":e.MO.REL,"⋪":e.MO.REL,"⋫":e.MO.REL,"⋬":e.MO.REL,"⋭":e.MO.REL,"⋮":e.MO.ORD55,"⋯":e.MO.INNER,"⋰":e.MO.REL,"⋱":[5,5,r.TEXCLASS.INNER,null],"⋲":e.MO.REL,"⋳":e.MO.REL,"⋴":e.MO.REL,"⋵":e.MO.REL,"⋶":e.MO.REL,"⋷":e.MO.REL,"⋸":e.MO.REL,"⋹":e.MO.REL,"⋺":e.MO.REL,"⋻":e.MO.REL,"⋼":e.MO.REL,"⋽":e.MO.REL,"⋾":e.MO.REL,"⋿":e.MO.REL,"⌅":e.MO.BIN3,"⌆":e.MO.BIN3,"⌢":e.MO.REL4,"⌣":e.MO.REL4,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"⎪":e.MO.ORD,"⎯":[0,0,r.TEXCLASS.ORD,{stretchy:!0}],"⎰":e.MO.OPEN,"⎱":e.MO.CLOSE,"─":e.MO.ORD,"△":e.MO.BIN4,"▵":e.MO.BIN4,"▹":e.MO.BIN4,"▽":e.MO.BIN4,"▿":e.MO.BIN4,"◃":e.MO.BIN4,"◯":e.MO.BIN3,"♠":e.MO.ORD,"♡":e.MO.ORD,"♢":e.MO.ORD,"♣":e.MO.ORD,"❘":e.MO.REL,"⟰":e.MO.RELSTRETCH,"⟱":e.MO.RELSTRETCH,"⟵":e.MO.WIDEREL,"⟶":e.MO.WIDEREL,"⟷":e.MO.WIDEREL,"⟸":e.MO.WIDEREL,"⟹":e.MO.WIDEREL,"⟺":e.MO.WIDEREL,"⟻":e.MO.WIDEREL,"⟼":e.MO.WIDEREL,"⟽":e.MO.WIDEREL,"⟾":e.MO.WIDEREL,"⟿":e.MO.WIDEREL,"⤀":e.MO.RELACCENT,"⤁":e.MO.RELACCENT,"⤂":e.MO.RELACCENT,"⤃":e.MO.RELACCENT,"⤄":e.MO.RELACCENT,"⤅":e.MO.RELACCENT,"⤆":e.MO.RELACCENT,"⤇":e.MO.RELACCENT,"⤈":e.MO.REL,"⤉":e.MO.REL,"⤊":e.MO.RELSTRETCH,"⤋":e.MO.RELSTRETCH,"⤌":e.MO.WIDEREL,"⤍":e.MO.WIDEREL,"⤎":e.MO.WIDEREL,"⤏":e.MO.WIDEREL,"⤐":e.MO.WIDEREL,"⤑":e.MO.RELACCENT,"⤒":e.MO.RELSTRETCH,"⤓":e.MO.RELSTRETCH,"⤔":e.MO.RELACCENT,"⤕":e.MO.RELACCENT,"⤖":e.MO.RELACCENT,"⤗":e.MO.RELACCENT,"⤘":e.MO.RELACCENT,"⤙":e.MO.RELACCENT,"⤚":e.MO.RELACCENT,"⤛":e.MO.RELACCENT,"⤜":e.MO.RELACCENT,"⤝":e.MO.RELACCENT,"⤞":e.MO.RELACCENT,"⤟":e.MO.RELACCENT,"⤠":e.MO.RELACCENT,"⤡":e.MO.RELSTRETCH,"⤢":e.MO.RELSTRETCH,"⤣":e.MO.REL,"⤤":e.MO.REL,"⤥":e.MO.REL,"⤦":e.MO.REL,"⤧":e.MO.REL,"⤨":e.MO.REL,"⤩":e.MO.REL,"⤪":e.MO.REL,"⤫":e.MO.REL,"⤬":e.MO.REL,"⤭":e.MO.REL,"⤮":e.MO.REL,"⤯":e.MO.REL,"⤰":e.MO.REL,"⤱":e.MO.REL,"⤲":e.MO.REL,"⤳":e.MO.RELACCENT,"⤴":e.MO.REL,"⤵":e.MO.REL,"⤶":e.MO.REL,"⤷":e.MO.REL,"⤸":e.MO.REL,"⤹":e.MO.REL,"⤺":e.MO.RELACCENT,"⤻":e.MO.RELACCENT,"⤼":e.MO.RELACCENT,"⤽":e.MO.RELACCENT,"⤾":e.MO.REL,"⤿":e.MO.REL,"⥀":e.MO.REL,"⥁":e.MO.REL,"⥂":e.MO.RELACCENT,"⥃":e.MO.RELACCENT,"⥄":e.MO.RELACCENT,"⥅":e.MO.RELACCENT,"⥆":e.MO.RELACCENT,"⥇":e.MO.RELACCENT,"⥈":e.MO.RELACCENT,"⥉":e.MO.REL,"⥊":e.MO.RELACCENT,"⥋":e.MO.RELACCENT,"⥌":e.MO.REL,"⥍":e.MO.REL,"⥎":e.MO.WIDEREL,"⥏":e.MO.RELSTRETCH,"⥐":e.MO.WIDEREL,"⥑":e.MO.RELSTRETCH,"⥒":e.MO.WIDEREL,"⥓":e.MO.WIDEREL,"⥔":e.MO.RELSTRETCH,"⥕":e.MO.RELSTRETCH,"⥖":e.MO.RELSTRETCH,"⥗":e.MO.RELSTRETCH,"⥘":e.MO.RELSTRETCH,"⥙":e.MO.RELSTRETCH,"⥚":e.MO.WIDEREL,"⥛":e.MO.WIDEREL,"⥜":e.MO.RELSTRETCH,"⥝":e.MO.RELSTRETCH,"⥞":e.MO.WIDEREL,"⥟":e.MO.WIDEREL,"⥠":e.MO.RELSTRETCH,"⥡":e.MO.RELSTRETCH,"⥢":e.MO.RELACCENT,"⥣":e.MO.REL,"⥤":e.MO.RELACCENT,"⥥":e.MO.REL,"⥦":e.MO.RELACCENT,"⥧":e.MO.RELACCENT,"⥨":e.MO.RELACCENT,"⥩":e.MO.RELACCENT,"⥪":e.MO.RELACCENT,"⥫":e.MO.RELACCENT,"⥬":e.MO.RELACCENT,"⥭":e.MO.RELACCENT,"⥮":e.MO.RELSTRETCH,"⥯":e.MO.RELSTRETCH,"⥰":e.MO.RELACCENT,"⥱":e.MO.RELACCENT,"⥲":e.MO.RELACCENT,"⥳":e.MO.RELACCENT,"⥴":e.MO.RELACCENT,"⥵":e.MO.RELACCENT,"⥶":e.MO.RELACCENT,"⥷":e.MO.RELACCENT,"⥸":e.MO.RELACCENT,"⥹":e.MO.RELACCENT,"⥺":e.MO.RELACCENT,"⥻":e.MO.RELACCENT,"⥼":e.MO.RELACCENT,"⥽":e.MO.RELACCENT,"⥾":e.MO.REL,"⥿":e.MO.REL,"⦁":e.MO.BIN3,"⦂":e.MO.BIN3,"⦙":e.MO.BIN3,"⦚":e.MO.BIN3,"⦛":e.MO.BIN3,"⦜":e.MO.BIN3,"⦝":e.MO.BIN3,"⦞":e.MO.BIN3,"⦟":e.MO.BIN3,"⦠":e.MO.BIN3,"⦡":e.MO.BIN3,"⦢":e.MO.BIN3,"⦣":e.MO.BIN3,"⦤":e.MO.BIN3,"⦥":e.MO.BIN3,"⦦":e.MO.BIN3,"⦧":e.MO.BIN3,"⦨":e.MO.BIN3,"⦩":e.MO.BIN3,"⦪":e.MO.BIN3,"⦫":e.MO.BIN3,"⦬":e.MO.BIN3,"⦭":e.MO.BIN3,"⦮":e.MO.BIN3,"⦯":e.MO.BIN3,"⦰":e.MO.BIN3,"⦱":e.MO.BIN3,"⦲":e.MO.BIN3,"⦳":e.MO.BIN3,"⦴":e.MO.BIN3,"⦵":e.MO.BIN3,"⦶":e.MO.BIN4,"⦷":e.MO.BIN4,"⦸":e.MO.BIN4,"⦹":e.MO.BIN4,"⦺":e.MO.BIN4,"⦻":e.MO.BIN4,"⦼":e.MO.BIN4,"⦽":e.MO.BIN4,"⦾":e.MO.BIN4,"⦿":e.MO.BIN4,"⧀":e.MO.REL,"⧁":e.MO.REL,"⧂":e.MO.BIN3,"⧃":e.MO.BIN3,"⧄":e.MO.BIN4,"⧅":e.MO.BIN4,"⧆":e.MO.BIN4,"⧇":e.MO.BIN4,"⧈":e.MO.BIN4,"⧉":e.MO.BIN3,"⧊":e.MO.BIN3,"⧋":e.MO.BIN3,"⧌":e.MO.BIN3,"⧍":e.MO.BIN3,"⧎":e.MO.REL,"⧏":e.MO.REL,"⧏̸":e.MO.REL,"⧐":e.MO.REL,"⧐̸":e.MO.REL,"⧑":e.MO.REL,"⧒":e.MO.REL,"⧓":e.MO.REL,"⧔":e.MO.REL,"⧕":e.MO.REL,"⧖":e.MO.BIN4,"⧗":e.MO.BIN4,"⧘":e.MO.BIN3,"⧙":e.MO.BIN3,"⧛":e.MO.BIN3,"⧜":e.MO.BIN3,"⧝":e.MO.BIN3,"⧞":e.MO.REL,"⧟":e.MO.BIN3,"⧠":e.MO.BIN3,"⧡":e.MO.REL,"⧢":e.MO.BIN4,"⧣":e.MO.REL,"⧤":e.MO.REL,"⧥":e.MO.REL,"⧦":e.MO.REL,"⧧":e.MO.BIN3,"⧨":e.MO.BIN3,"⧩":e.MO.BIN3,"⧪":e.MO.BIN3,"⧫":e.MO.BIN3,"⧬":e.MO.BIN3,"⧭":e.MO.BIN3,"⧮":e.MO.BIN3,"⧯":e.MO.BIN3,"⧰":e.MO.BIN3,"⧱":e.MO.BIN3,"⧲":e.MO.BIN3,"⧳":e.MO.BIN3,"⧴":e.MO.REL,"⧵":e.MO.BIN4,"⧶":e.MO.BIN4,"⧷":e.MO.BIN4,"⧸":e.MO.BIN3,"⧹":e.MO.BIN3,"⧺":e.MO.BIN3,"⧻":e.MO.BIN3,"⧾":e.MO.BIN4,"⧿":e.MO.BIN4,"⨝":e.MO.BIN3,"⨞":e.MO.BIN3,"⨟":e.MO.BIN3,"⨠":e.MO.BIN3,"⨡":e.MO.BIN3,"⨢":e.MO.BIN4,"⨣":e.MO.BIN4,"⨤":e.MO.BIN4,"⨥":e.MO.BIN4,"⨦":e.MO.BIN4,"⨧":e.MO.BIN4,"⨨":e.MO.BIN4,"⨩":e.MO.BIN4,"⨪":e.MO.BIN4,"⨫":e.MO.BIN4,"⨬":e.MO.BIN4,"⨭":e.MO.BIN4,"⨮":e.MO.BIN4,"⨯":e.MO.BIN4,"⨰":e.MO.BIN4,"⨱":e.MO.BIN4,"⨲":e.MO.BIN4,"⨳":e.MO.BIN4,"⨴":e.MO.BIN4,"⨵":e.MO.BIN4,"⨶":e.MO.BIN4,"⨷":e.MO.BIN4,"⨸":e.MO.BIN4,"⨹":e.MO.BIN4,"⨺":e.MO.BIN4,"⨻":e.MO.BIN4,"⨼":e.MO.BIN4,"⨽":e.MO.BIN4,"⨾":e.MO.BIN4,"⨿":e.MO.BIN4,"⩀":e.MO.BIN4,"⩁":e.MO.BIN4,"⩂":e.MO.BIN4,"⩃":e.MO.BIN4,"⩄":e.MO.BIN4,"⩅":e.MO.BIN4,"⩆":e.MO.BIN4,"⩇":e.MO.BIN4,"⩈":e.MO.BIN4,"⩉":e.MO.BIN4,"⩊":e.MO.BIN4,"⩋":e.MO.BIN4,"⩌":e.MO.BIN4,"⩍":e.MO.BIN4,"⩎":e.MO.BIN4,"⩏":e.MO.BIN4,"⩐":e.MO.BIN4,"⩑":e.MO.BIN4,"⩒":e.MO.BIN4,"⩓":e.MO.BIN4,"⩔":e.MO.BIN4,"⩕":e.MO.BIN4,"⩖":e.MO.BIN4,"⩗":e.MO.BIN4,"⩘":e.MO.BIN4,"⩙":e.MO.REL,"⩚":e.MO.BIN4,"⩛":e.MO.BIN4,"⩜":e.MO.BIN4,"⩝":e.MO.BIN4,"⩞":e.MO.BIN4,"⩟":e.MO.BIN4,"⩠":e.MO.BIN4,"⩡":e.MO.BIN4,"⩢":e.MO.BIN4,"⩣":e.MO.BIN4,"⩤":e.MO.BIN4,"⩥":e.MO.BIN4,"⩦":e.MO.REL,"⩧":e.MO.REL,"⩨":e.MO.REL,"⩩":e.MO.REL,"⩪":e.MO.REL,"⩫":e.MO.REL,"⩬":e.MO.REL,"⩭":e.MO.REL,"⩮":e.MO.REL,"⩯":e.MO.REL,"⩰":e.MO.REL,"⩱":e.MO.BIN4,"⩲":e.MO.BIN4,"⩳":e.MO.REL,"⩴":e.MO.REL,"⩵":e.MO.REL,"⩶":e.MO.REL,"⩷":e.MO.REL,"⩸":e.MO.REL,"⩹":e.MO.REL,"⩺":e.MO.REL,"⩻":e.MO.REL,"⩼":e.MO.REL,"⩽":e.MO.REL,"⩽̸":e.MO.REL,"⩾":e.MO.REL,"⩾̸":e.MO.REL,"⩿":e.MO.REL,"⪀":e.MO.REL,"⪁":e.MO.REL,"⪂":e.MO.REL,"⪃":e.MO.REL,"⪄":e.MO.REL,"⪅":e.MO.REL,"⪆":e.MO.REL,"⪇":e.MO.REL,"⪈":e.MO.REL,"⪉":e.MO.REL,"⪊":e.MO.REL,"⪋":e.MO.REL,"⪌":e.MO.REL,"⪍":e.MO.REL,"⪎":e.MO.REL,"⪏":e.MO.REL,"⪐":e.MO.REL,"⪑":e.MO.REL,"⪒":e.MO.REL,"⪓":e.MO.REL,"⪔":e.MO.REL,"⪕":e.MO.REL,"⪖":e.MO.REL,"⪗":e.MO.REL,"⪘":e.MO.REL,"⪙":e.MO.REL,"⪚":e.MO.REL,"⪛":e.MO.REL,"⪜":e.MO.REL,"⪝":e.MO.REL,"⪞":e.MO.REL,"⪟":e.MO.REL,"⪠":e.MO.REL,"⪡":e.MO.REL,"⪡̸":e.MO.REL,"⪢":e.MO.REL,"⪢̸":e.MO.REL,"⪣":e.MO.REL,"⪤":e.MO.REL,"⪥":e.MO.REL,"⪦":e.MO.REL,"⪧":e.MO.REL,"⪨":e.MO.REL,"⪩":e.MO.REL,"⪪":e.MO.REL,"⪫":e.MO.REL,"⪬":e.MO.REL,"⪭":e.MO.REL,"⪮":e.MO.REL,"⪯":e.MO.REL,"⪯̸":e.MO.REL,"⪰":e.MO.REL,"⪰̸":e.MO.REL,"⪱":e.MO.REL,"⪲":e.MO.REL,"⪳":e.MO.REL,"⪴":e.MO.REL,"⪵":e.MO.REL,"⪶":e.MO.REL,"⪷":e.MO.REL,"⪸":e.MO.REL,"⪹":e.MO.REL,"⪺":e.MO.REL,"⪻":e.MO.REL,"⪼":e.MO.REL,"⪽":e.MO.REL,"⪾":e.MO.REL,"⪿":e.MO.REL,"⫀":e.MO.REL,"⫁":e.MO.REL,"⫂":e.MO.REL,"⫃":e.MO.REL,"⫄":e.MO.REL,"⫅":e.MO.REL,"⫆":e.MO.REL,"⫇":e.MO.REL,"⫈":e.MO.REL,"⫉":e.MO.REL,"⫊":e.MO.REL,"⫋":e.MO.REL,"⫌":e.MO.REL,"⫍":e.MO.REL,"⫎":e.MO.REL,"⫏":e.MO.REL,"⫐":e.MO.REL,"⫑":e.MO.REL,"⫒":e.MO.REL,"⫓":e.MO.REL,"⫔":e.MO.REL,"⫕":e.MO.REL,"⫖":e.MO.REL,"⫗":e.MO.REL,"⫘":e.MO.REL,"⫙":e.MO.REL,"⫚":e.MO.REL,"⫛":e.MO.REL,"⫝":e.MO.REL,"⫝̸":e.MO.REL,"⫞":e.MO.REL,"⫟":e.MO.REL,"⫠":e.MO.REL,"⫡":e.MO.REL,"⫢":e.MO.REL,"⫣":e.MO.REL,"⫤":e.MO.REL,"⫥":e.MO.REL,"⫦":e.MO.REL,"⫧":e.MO.REL,"⫨":e.MO.REL,"⫩":e.MO.REL,"⫪":e.MO.REL,"⫫":e.MO.REL,"⫬":e.MO.REL,"⫭":e.MO.REL,"⫮":e.MO.REL,"⫯":e.MO.REL,"⫰":e.MO.REL,"⫱":e.MO.REL,"⫲":e.MO.REL,"⫳":e.MO.REL,"⫴":e.MO.BIN4,"⫵":e.MO.BIN4,"⫶":e.MO.BIN4,"⫷":e.MO.REL,"⫸":e.MO.REL,"⫹":e.MO.REL,"⫺":e.MO.REL,"⫻":e.MO.BIN4,"⫽":e.MO.BIN4,"⫾":e.MO.BIN3,"⭅":e.MO.RELSTRETCH,"⭆":e.MO.RELSTRETCH,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"︷":e.MO.WIDEACCENT,"︸":e.MO.WIDEACCENT}},e.OPTABLE.infix["^"]=e.MO.WIDEREL,e.OPTABLE.infix._=e.MO.WIDEREL,e.OPTABLE.infix["⫝̸"]=e.MO.REL})(Lu),ee(Lu);var it={},xN=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),MN=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(it,"__esModule",{value:!0}),it.split=it.isPercent=it.unicodeString=it.unicodeChars=it.quotePattern=it.sortLength=void 0;function ON(e,t){return e.length!==t.length?t.length-e.length:e===t?0:e<t?-1:1}it.sortLength=ON;function AN(e){return e.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,"\\$1")}it.quotePattern=AN;function TN(e){return Array.from(e).map(function(t){return t.codePointAt(0)})}it.unicodeChars=TN;function CN(e){return String.fromCodePoint.apply(String,MN([],xN(e),!1))}it.unicodeString=CN;function NN(e){return!!e.match(/%\s*$/)}it.isPercent=NN;function _N(e){return e.trim().split(/\s+/)}it.split=_N;var wN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Iu=y&&y.__assign||(function(){return Iu=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Iu.apply(this,arguments)}),T2=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),RN=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(ri,"__esModule",{value:!0}),ri.MmlMo=void 0;var Ve=ce,Ny=Lu,C2=it;ri.MmlMo=(function(e){wN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._texClass=null,r.lspace=5/18,r.rspace=5/18,r}return Object.defineProperty(t.prototype,"texClass",{get:function(){if(this._texClass===null){var r=this.getText(),n=T2(this.handleExplicitForm(this.getForms()),3),o=n[0],i=n[1],a=n[2],s=this.constructor.OPTABLE,c=s[o][r]||s[i][r]||s[a][r];return c?c[2]:Ve.TEXCLASS.REL}return this._texClass},set:function(r){this._texClass=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kind",{get:function(){return"mo"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNewLine",{get:function(){return this.attributes.get("linebreak")==="newline"},enumerable:!1,configurable:!0}),t.prototype.coreParent=function(){for(var r=this,n=this,o=this.factory.getNodeClass("math");n&&n.isEmbellished&&n.coreMO()===this&&!(n instanceof o);)r=n,n=n.parent;return r},t.prototype.coreText=function(r){if(!r)return"";if(r.isEmbellished)return r.coreMO().getText();for(;((r.isKind("mrow")||r.isKind("TeXAtom")&&r.texClass!==Ve.TEXCLASS.VCENTER||r.isKind("mstyle")||r.isKind("mphantom"))&&r.childNodes.length===1||r.isKind("munderover"))&&r.childNodes[0];)r=r.childNodes[0];return r.isToken?r.getText():""},t.prototype.hasSpacingAttributes=function(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")},Object.defineProperty(t.prototype,"isAccent",{get:function(){var r=!1,n=this.coreParent().parent;if(n){var o=n.isKind("mover")?n.childNodes[n.over].coreMO()?"accent":"":n.isKind("munder")?n.childNodes[n.under].coreMO()?"accentunder":"":n.isKind("munderover")?this===n.childNodes[n.over].coreMO()?"accent":this===n.childNodes[n.under].coreMO()?"accentunder":"":"";o&&(r=n.attributes.getExplicit(o)!==void 0?r:this.attributes.get("accent"))}return r},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(r){var n=this.attributes.getList("form","fence"),o=n.form,i=n.fence;return this.getProperty("texClass")===void 0&&(this.attributes.isSet("lspace")||this.attributes.isSet("rspace"))?null:(i&&this.texClass===Ve.TEXCLASS.REL&&(o==="prefix"&&(this.texClass=Ve.TEXCLASS.OPEN),o==="postfix"&&(this.texClass=Ve.TEXCLASS.CLOSE)),this.adjustTeXclass(r))},t.prototype.adjustTeXclass=function(r){var n=this.texClass,o=this.prevClass;if(n===Ve.TEXCLASS.NONE)return r;if(r?(r.getProperty("autoOP")&&(n===Ve.TEXCLASS.BIN||n===Ve.TEXCLASS.REL)&&(o=r.texClass=Ve.TEXCLASS.ORD),o=this.prevClass=r.texClass||Ve.TEXCLASS.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):o=this.prevClass=Ve.TEXCLASS.NONE,n===Ve.TEXCLASS.BIN&&(o===Ve.TEXCLASS.NONE||o===Ve.TEXCLASS.BIN||o===Ve.TEXCLASS.OP||o===Ve.TEXCLASS.REL||o===Ve.TEXCLASS.OPEN||o===Ve.TEXCLASS.PUNCT))this.texClass=Ve.TEXCLASS.ORD;else if(o===Ve.TEXCLASS.BIN&&(n===Ve.TEXCLASS.REL||n===Ve.TEXCLASS.CLOSE||n===Ve.TEXCLASS.PUNCT))r.texClass=this.prevClass=Ve.TEXCLASS.ORD;else if(n===Ve.TEXCLASS.BIN){for(var i=this,a=this.parent;a&&a.parent&&a.isEmbellished&&(a.childNodes.length===1||!a.isKind("mrow")&&a.core()===i);)i=a,a=a.parent;a.childNodes[a.childNodes.length-1]===i&&(this.texClass=Ve.TEXCLASS.ORD)}return this},t.prototype.setInheritedAttributes=function(r,n,o,i){r===void 0&&(r={}),n===void 0&&(n=!1),o===void 0&&(o=0),i===void 0&&(i=!1),e.prototype.setInheritedAttributes.call(this,r,n,o,i);var a=this.getText();this.checkOperatorTable(a),this.checkPseudoScripts(a),this.checkPrimes(a),this.checkMathAccent(a)},t.prototype.checkOperatorTable=function(r){var n,o,i=T2(this.handleExplicitForm(this.getForms()),3),a=i[0],s=i[1],c=i[2];this.attributes.setInherited("form",a);var l=this.constructor.OPTABLE,u=l[a][r]||l[s][r]||l[c][r];if(u){this.getProperty("texClass")===void 0&&(this.texClass=u[2]);try{for(var p=RN(Object.keys(u[3]||{})),d=p.next();!d.done;d=p.next()){var h=d.value;this.attributes.setInherited(h,u[3][h])}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}this.lspace=(u[0]+1)/18,this.rspace=(u[1]+1)/18}else{var f=(0,Ny.getRange)(r);if(f){this.getProperty("texClass")===void 0&&(this.texClass=f[2]);var m=this.constructor.MMLSPACING[f[2]];this.lspace=(m[0]+1)/18,this.rspace=(m[1]+1)/18}}},t.prototype.getForms=function(){for(var r=this,n=this.parent,o=this.Parent;o&&o.isEmbellished;)r=n,n=o.parent,o=o.Parent;if(n&&n.isKind("mrow")&&n.nonSpaceLength()!==1){if(n.firstNonSpace()===r)return["prefix","infix","postfix"];if(n.lastNonSpace()===r)return["postfix","infix","prefix"]}return["infix","prefix","postfix"]},t.prototype.handleExplicitForm=function(r){if(this.attributes.isSet("form")){var n=this.attributes.get("form");r=[n].concat(r.filter(function(o){return o!==n}))}return r},t.prototype.checkPseudoScripts=function(r){var n=this.constructor.pseudoScripts;if(r.match(n)){var o=this.coreParent().Parent,i=!o||!(o.isKind("msubsup")&&!o.isKind("msub"));this.setProperty("pseudoscript",i),i&&(this.attributes.setInherited("lspace",0),this.attributes.setInherited("rspace",0))}},t.prototype.checkPrimes=function(r){var n=this.constructor.primes;if(r.match(n)){var o=this.constructor.remapPrimes,i=(0,C2.unicodeString)((0,C2.unicodeChars)(r).map(function(a){return o[a]}));this.setProperty("primes",i)}},t.prototype.checkMathAccent=function(r){var n=this.Parent;if(!(this.getProperty("mathaccent")!==void 0||!n||!n.isKind("munderover"))){var o=n.childNodes[0];if(!(o.isEmbellished&&o.coreMO()===this)){var i=this.constructor.mathaccents;r.match(i)&&this.setProperty("mathaccent",!0)}}},t.defaults=Iu(Iu({},Ve.AbstractMmlTokenNode.defaults),{form:"infix",fence:!1,separator:!1,lspace:"thickmathspace",rspace:"thickmathspace",stretchy:!1,symmetric:!1,maxsize:"infinity",minsize:"0em",largeop:!1,movablelimits:!1,accent:!1,linebreak:"auto",lineleading:"1ex",linebreakstyle:"before",indentalign:"auto",indentshift:"0",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),t.MMLSPACING=Ny.MMLSPACING,t.OPTABLE=Ny.OPTABLE,t.pseudoScripts=new RegExp(["^[\"'*`","ª","°","²-´","¹","º","‘-‟","′-‷⁗","⁰ⁱ","⁴-ⁿ","₀-₎","]+$"].join("")),t.primes=new RegExp(["^[\"'`","‘-‟","]+$"].join("")),t.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},t.mathaccents=new RegExp(["^[","´́ˊ","`̀ˋ","¨̈","~̃˜","¯̄ˉ","˘̆","ˇ̌","^̂ˆ","→⃗","˙̇","˚̊","⃛","⃜","]$"].join("")),t})(Ve.AbstractMmlTokenNode);var Ec={},LN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),_y=y&&y.__assign||(function(){return _y=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),_y.apply(this,arguments)});Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.MmlMtext=void 0;var wy=ce;Ec.MmlMtext=(function(e){LN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=wy.TEXCLASS.ORD,r}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=_y({},wy.AbstractMmlTokenNode.defaults),t})(wy.AbstractMmlTokenNode);var xc={},IN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Pu=y&&y.__assign||(function(){return Pu=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Pu.apply(this,arguments)});Object.defineProperty(xc,"__esModule",{value:!0}),xc.MmlMspace=void 0;var Ry=ce;xc.MmlMspace=(function(e){IN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Ry.TEXCLASS.NONE,r}return t.prototype.setTeXclass=function(r){return r},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 r=this.attributes;return r.getExplicit("width")==null&&r.getExplicit("height")==null&&r.getExplicit("depth")==null&&r.get("linebreak")==="newline"},enumerable:!1,configurable:!0}),t.defaults=Pu(Pu({},Ry.AbstractMmlTokenNode.defaults),{width:"0em",height:"0ex",depth:"0ex",linebreak:"auto"}),t})(Ry.AbstractMmlTokenNode);var Mc={},PN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ku=y&&y.__assign||(function(){return ku=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),ku.apply(this,arguments)});Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.MmlMs=void 0;var Ly=ce;Mc.MmlMs=(function(e){PN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Ly.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"ms"},enumerable:!1,configurable:!0}),t.defaults=ku(ku({},Ly.AbstractMmlTokenNode.defaults),{lquote:'"',rquote:'"'}),t})(Ly.AbstractMmlTokenNode);var ni={},N2=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Iy=y&&y.__assign||(function(){return Iy=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Iy.apply(this,arguments)}),aa=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(ni,"__esModule",{value:!0}),ni.MmlInferredMrow=ni.MmlMrow=void 0;var Py=ce,ky=(function(e){N2(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._core=null,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mrow"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){var r,n;try{for(var o=aa(this.childNodes),i=o.next();!i.done;i=o.next())if(!i.value.isSpacelike)return!1}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmbellished",{get:function(){var r,n,o=!1,i=0;try{for(var a=aa(this.childNodes),s=a.next();!s.done;s=a.next()){var c=s.value;if(c){if(c.isEmbellished){if(o)return!1;o=!0,this._core=i}else if(!c.isSpacelike)return!1}i++}}catch(l){r={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},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 r,n,o=0;try{for(var i=aa(this.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;s&&!s.isSpacelike&&o++}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},t.prototype.firstNonSpace=function(){var r,n;try{for(var o=aa(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;if(a&&!a.isSpacelike)return a}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},t.prototype.lastNonSpace=function(){for(var r=this.childNodes.length;--r>=0;){var n=this.childNodes[r];if(n&&!n.isSpacelike)return n}return null},t.prototype.setTeXclass=function(r){var n,o,i,a;if(this.getProperty("open")!=null||this.getProperty("close")!=null){this.getPrevClass(r),r=null;try{for(var s=aa(this.childNodes),c=s.next();!c.done;c=s.next()){var l=c.value;r=l.setTeXclass(r)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}this.texClass??(this.texClass=Py.TEXCLASS.INNER)}else{try{for(var u=aa(this.childNodes),p=u.next();!p.done;p=u.next()){var l=p.value;r=l.setTeXclass(r)}}catch(d){i={error:d}}finally{try{p&&!p.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}this.childNodes[0]&&this.updateTeXclass(this.childNodes[0])}return r},t.defaults=Iy({},Py.AbstractMmlNode.defaults),t})(Py.AbstractMmlNode);ni.MmlMrow=ky,ni.MmlInferredMrow=(function(e){N2(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=ky.defaults,t})(ky);var Oc={},kN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Bu=y&&y.__assign||(function(){return Bu=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Bu.apply(this,arguments)}),BN=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.MmlMfrac=void 0;var _2=ce;Oc.MmlMfrac=(function(e){kN(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(r){var n,o;this.getPrevClass(r);try{for(var i=BN(this.childNodes),a=i.next();!a.done;a=i.next())a.value.setTeXclass(null)}catch(s){n={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return this},t.prototype.setChildInheritedAttributes=function(r,n,o,i){(!n||o>0)&&o++,this.childNodes[0].setInheritedAttributes(r,!1,o,i),this.childNodes[1].setInheritedAttributes(r,!1,o,!0)},t.defaults=Bu(Bu({},_2.AbstractMmlBaseNode.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:!1}),t})(_2.AbstractMmlBaseNode);var Ac={},DN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),By=y&&y.__assign||(function(){return By=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),By.apply(this,arguments)});Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.MmlMsqrt=void 0;var Dy=ce;Ac.MmlMsqrt=(function(e){DN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Dy.TEXCLASS.ORD,r}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(r){return this.getPrevClass(r),this.childNodes[0].setTeXclass(null),this},t.prototype.setChildInheritedAttributes=function(r,n,o,i){this.childNodes[0].setInheritedAttributes(r,n,o,!0)},t.defaults=By({},Dy.AbstractMmlNode.defaults),t})(Dy.AbstractMmlNode);var Tc={},jN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),jy=y&&y.__assign||(function(){return jy=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),jy.apply(this,arguments)});Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.MmlMroot=void 0;var Fy=ce;Tc.MmlMroot=(function(e){jN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Fy.TEXCLASS.ORD,r}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(r){return this.getPrevClass(r),this.childNodes[0].setTeXclass(null),this.childNodes[1].setTeXclass(null),this},t.prototype.setChildInheritedAttributes=function(r,n,o,i){this.childNodes[0].setInheritedAttributes(r,n,o,!0),this.childNodes[1].setInheritedAttributes(r,!1,o+2,i)},t.defaults=jy({},Fy.AbstractMmlNode.defaults),t})(Fy.AbstractMmlNode);var Du={},FN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ju=y&&y.__assign||(function(){return ju=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),ju.apply(this,arguments)});Object.defineProperty(Du,"__esModule",{value:!0}),Du.MmlMstyle=void 0;var w2=ce,Cc=ei;Du.MmlMstyle=(function(e){FN(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mstyle"},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.setChildInheritedAttributes=function(r,n,o,i){var a=this.attributes.getExplicit("scriptlevel");a!=null&&(a=a.toString(),a.match(/^\s*[-+]/)?o+=parseInt(a):o=parseInt(a),i=!1);var s=this.attributes.getExplicit("displaystyle");s!=null&&(n=s===!0,i=!1);var c=this.attributes.getExplicit("data-cramped");c!=null&&(i=c),r=this.addInheritedAttributes(r,this.attributes.getAllAttributes()),this.childNodes[0].setInheritedAttributes(r,n,o,i)},t.defaults=ju(ju({},w2.AbstractMmlLayoutNode.defaults),{scriptlevel:Cc.INHERIT,displaystyle:Cc.INHERIT,scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:"8px",mathbackground:Cc.INHERIT,mathcolor:Cc.INHERIT,dir:Cc.INHERIT,infixlinebreakstyle:"before"}),t})(w2.AbstractMmlLayoutNode);var Fu={},UN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Uy=y&&y.__assign||(function(){return Uy=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Uy.apply(this,arguments)});Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.MmlMerror=void 0;var Hy=ce;Fu.MmlMerror=(function(e){UN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Hy.TEXCLASS.ORD,r}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=Uy({},Hy.AbstractMmlNode.defaults),t})(Hy.AbstractMmlNode);var Nc={},HN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Uu=y&&y.__assign||(function(){return Uu=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Uu.apply(this,arguments)});Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.MmlMpadded=void 0;var R2=ce;Nc.MmlMpadded=(function(e){HN(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=Uu(Uu({},R2.AbstractMmlLayoutNode.defaults),{width:"",height:"",depth:"",lspace:0,voffset:0}),t})(R2.AbstractMmlLayoutNode);var Hu={},qN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qy=y&&y.__assign||(function(){return qy=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),qy.apply(this,arguments)});Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.MmlMphantom=void 0;var Gy=ce;Hu.MmlMphantom=(function(e){qN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Gy.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mphantom"},enumerable:!1,configurable:!0}),t.defaults=qy({},Gy.AbstractMmlLayoutNode.defaults),t})(Gy.AbstractMmlLayoutNode);var _c={},GN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qu=y&&y.__assign||(function(){return qu=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),qu.apply(this,arguments)}),L2=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(_c,"__esModule",{value:!0}),_c.MmlMfenced=void 0;var wc=ce;_c.MmlMfenced=(function(e){GN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=wc.TEXCLASS.INNER,r.separators=[],r.open=null,r.close=null,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mfenced"},enumerable:!1,configurable:!0}),t.prototype.setTeXclass=function(r){this.getPrevClass(r),this.open&&(r=this.open.setTeXclass(r)),this.childNodes[0]&&(r=this.childNodes[0].setTeXclass(r));for(var n=1,o=this.childNodes.length;n<o;n++)this.separators[n-1]&&(r=this.separators[n-1].setTeXclass(r)),this.childNodes[n]&&(r=this.childNodes[n].setTeXclass(r));return this.close&&(r=this.close.setTeXclass(r)),this.updateTeXclass(this.open),r},t.prototype.setChildInheritedAttributes=function(r,n,o,i){var a,s;this.addFakeNodes();try{for(var c=L2([this.open,this.close].concat(this.separators)),l=c.next();!l.done;l=c.next()){var u=l.value;u&&u.setInheritedAttributes(r,n,o,i)}}catch(p){a={error:p}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}e.prototype.setChildInheritedAttributes.call(this,r,n,o,i)},t.prototype.addFakeNodes=function(){var r,n,o=this.attributes.getList("open","close","separators"),i=o.open,a=o.close,s=o.separators;if(i=i.replace(/[ \t\n\r]/g,""),a=a.replace(/[ \t\n\r]/g,""),s=s.replace(/[ \t\n\r]/g,""),i&&(this.open=this.fakeNode(i,{fence:!0,form:"prefix"},wc.TEXCLASS.OPEN)),s){for(;s.length<this.childNodes.length-1;)s+=s.charAt(s.length-1);var c=0;try{for(var l=L2(this.childNodes.slice(1)),u=l.next();!u.done;u=l.next())u.value&&this.separators.push(this.fakeNode(s.charAt(c++)))}catch(p){r={error:p}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}a&&(this.close=this.fakeNode(a,{fence:!0,form:"postfix"},wc.TEXCLASS.CLOSE))},t.prototype.fakeNode=function(r,n,o){n===void 0&&(n={}),o===void 0&&(o=null);var i=this.factory.create("text").setText(r),a=this.factory.create("mo",n,[i]);return a.texClass=o,a.parent=this,a},t.defaults=qu(qu({},wc.AbstractMmlNode.defaults),{open:"(",close:")",separators:","}),t})(wc.AbstractMmlNode);var Rc={},XN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Gu=y&&y.__assign||(function(){return Gu=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Gu.apply(this,arguments)});Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.MmlMenclose=void 0;var Xy=ce;Rc.MmlMenclose=(function(e){XN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Xy.TEXCLASS.ORD,r}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(r){return r=this.childNodes[0].setTeXclass(r),this.updateTeXclass(this.childNodes[0]),r},t.defaults=Gu(Gu({},Xy.AbstractMmlNode.defaults),{notation:"longdiv"}),t})(Xy.AbstractMmlNode);var Lc={},VN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Xu=y&&y.__assign||(function(){return Xu=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Xu.apply(this,arguments)});Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.MmlMaction=void 0;var I2=ce;Lc.MmlMaction=(function(e){VN(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 r=this.attributes.get("selection"),n=Math.max(1,Math.min(this.childNodes.length,r))-1;return this.childNodes[n]||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(r){if(e.prototype.verifyAttributes.call(this,r),this.attributes.get("actiontype")!=="toggle"&&this.attributes.getExplicit("selection")!==void 0){var n=this.attributes.getAllAttributes();delete n.selection}},t.prototype.setTeXclass=function(r){this.attributes.get("actiontype")==="tooltip"&&this.childNodes[1]&&this.childNodes[1].setTeXclass(null);var n=this.selected;return r=n.setTeXclass(r),this.updateTeXclass(n),r},t.prototype.nextToggleSelection=function(){var r=Math.max(1,this.attributes.get("selection")+1);r>this.childNodes.length&&(r=1),this.attributes.set("selection",r)},t.defaults=Xu(Xu({},I2.AbstractMmlNode.defaults),{actiontype:"toggle",selection:1}),t})(I2.AbstractMmlNode);var hn={},Vy=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),sa=y&&y.__assign||(function(){return sa=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),sa.apply(this,arguments)});Object.defineProperty(hn,"__esModule",{value:!0}),hn.MmlMsup=hn.MmlMsub=hn.MmlMsubsup=void 0;var P2=ce,Ic=(function(e){Vy(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(r,n,o,i){var a=this.childNodes;a[0].setInheritedAttributes(r,n,o,i),a[1].setInheritedAttributes(r,!1,o+1,i||this.sub===1),a[2]&&a[2].setInheritedAttributes(r,!1,o+1,i||this.sub===2)},t.defaults=sa(sa({},P2.AbstractMmlBaseNode.defaults),{subscriptshift:"",superscriptshift:""}),t})(P2.AbstractMmlBaseNode);hn.MmlMsubsup=Ic,hn.MmlMsub=(function(e){Vy(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=sa({},Ic.defaults),t})(Ic),hn.MmlMsup=(function(e){Vy(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=sa({},Ic.defaults),t})(Ic);var Dn={},Wy=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ca=y&&y.__assign||(function(){return ca=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),ca.apply(this,arguments)});Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.MmlMover=Dn.MmlMunder=Dn.MmlMunderover=void 0;var k2=ce,Pc=(function(e){Wy(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(r,n,o,i){var a=this.childNodes;a[0].setInheritedAttributes(r,n,o,i||!!a[this.over]);var s=!!(!n&&a[0].coreMO().attributes.get("movablelimits")),c=this.constructor.ACCENTS;a[1].setInheritedAttributes(r,!1,this.getScriptlevel(c[1],s,o),i||this.under===1),this.setInheritedAccent(1,c[1],n,o,i,s),a[2]&&(a[2].setInheritedAttributes(r,!1,this.getScriptlevel(c[2],s,o),i||this.under===2),this.setInheritedAccent(2,c[2],n,o,i,s))},t.prototype.getScriptlevel=function(r,n,o){return(n||!this.attributes.get(r))&&o++,o},t.prototype.setInheritedAccent=function(r,n,o,i,a,s){var c=this.childNodes[r];if(this.attributes.getExplicit(n)==null&&c.isEmbellished){var l=c.coreMO().attributes.get("accent");this.attributes.setInherited(n,l),l!==this.attributes.getDefault(n)&&c.setInheritedAttributes({},o,this.getScriptlevel(n,s,i),a)}},t.defaults=ca(ca({},k2.AbstractMmlBaseNode.defaults),{accent:!1,accentunder:!1,align:"center"}),t.ACCENTS=["","accentunder","accent"],t})(k2.AbstractMmlBaseNode);Dn.MmlMunderover=Pc,Dn.MmlMunder=(function(e){Wy(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=ca({},Pc.defaults),t})(Pc),Dn.MmlMover=(function(e){Wy(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=ca({},Pc.defaults),t.ACCENTS=["","accent","accentunder"],t})(Pc);var jn={},$y=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),kc=y&&y.__assign||(function(){return kc=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),kc.apply(this,arguments)});Object.defineProperty(jn,"__esModule",{value:!0}),jn.MmlNone=jn.MmlMprescripts=jn.MmlMmultiscripts=void 0;var Vu=ce,B2=hn;jn.MmlMmultiscripts=(function(e){$y(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(r,n,o,i){this.childNodes[0].setInheritedAttributes(r,n,o,i);for(var a=!1,s=1,c=0;s<this.childNodes.length;s++){var l=this.childNodes[s];if(l.isKind("mprescripts")){if(!a&&(a=!0,s%2===0)){var u=this.factory.create("mrow");this.childNodes.splice(s,0,u),u.parent=this,s++}}else{var p=i||c%2===0;l.setInheritedAttributes(r,!1,o+1,p),c++}}this.childNodes.length%2===(a?1:0)&&(this.appendChild(this.factory.create("mrow")),this.childNodes[this.childNodes.length-1].setInheritedAttributes(r,!1,o+1,i))},t.prototype.verifyChildren=function(r){for(var n=!1,o=r.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,r,!0):(n=!0,i%2===0&&!o&&this.mError("There must be an equal number of prescripts of each type",r)))}this.childNodes.length%2===(n?1:0)&&!o&&this.mError("There must be an equal number of scripts of each type",r),e.prototype.verifyChildren.call(this,r)},t.defaults=kc({},B2.MmlMsubsup.defaults),t})(B2.MmlMsubsup),jn.MmlMprescripts=(function(e){$y(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(r){e.prototype.verifyTree.call(this,r),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",r,!0)},t.defaults=kc({},Vu.AbstractMmlNode.defaults),t})(Vu.AbstractMmlNode),jn.MmlNone=(function(e){$y(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(r){e.prototype.verifyTree.call(this,r),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",r,!0)},t.defaults=kc({},Vu.AbstractMmlNode.defaults),t})(Vu.AbstractMmlNode);var Bc={},WN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Wu=y&&y.__assign||(function(){return Wu=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Wu.apply(this,arguments)}),$u=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.MmlMtable=void 0;var zu=ce,$N=it;Bc.MmlMtable=(function(e){WN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.properties={useHeight:!0},r.texclass=zu.TEXCLASS.ORD,r}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(r,n,o,i){var a,s;try{for(var c=$u(zu.indentAttributes),l=c.next();!l.done;l=c.next()){var u=l.value;r[u]&&this.attributes.setInherited(u,r[u][1]),this.attributes.getExplicit(u)!==void 0&&delete this.attributes.getAllAttributes()[u]}}catch(p){a={error:p}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}e.prototype.setInheritedAttributes.call(this,r,n,o,i)},t.prototype.setChildInheritedAttributes=function(r,n,o,i){var a,s,c,l;try{for(var u=$u(this.childNodes),p=u.next();!p.done;p=u.next()){var d=p.value;d.isKind("mtr")||this.replaceChild(this.factory.create("mtr"),d).appendChild(d)}}catch(g){a={error:g}}finally{try{p&&!p.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}o=this.getProperty("scriptlevel")||o,n=!!(this.attributes.getExplicit("displaystyle")||this.attributes.getDefault("displaystyle")),r=this.addInheritedAttributes(r,{columnalign:this.attributes.get("columnalign"),rowalign:"center"});var h=this.attributes.getExplicit("data-cramped"),f=(0,$N.split)(this.attributes.get("rowalign"));try{for(var m=$u(this.childNodes),v=m.next();!v.done;v=m.next()){var d=v.value;r.rowalign[1]=f.shift()||r.rowalign[1],d.setInheritedAttributes(r,n,o,!!h)}}catch(g){c={error:g}}finally{try{v&&!v.done&&(l=m.return)&&l.call(m)}finally{if(c)throw c.error}}},t.prototype.verifyChildren=function(r){for(var n=null,o=this.factory,i=0;i<this.childNodes.length;i++){var a=this.childNodes[i];if(a.isKind("mtr"))n=null;else{var s=a.isKind("mtd");if(n?(this.removeChild(a),i--):n=this.replaceChild(o.create("mtr"),a),n.appendChild(s?a:o.create("mtd",{},[a])),!r.fixMtables){a.parent.removeChild(a),a.parent=this,s&&n.appendChild(o.create("mtd"));var c=a.mError("Children of "+this.kind+" must be mtr or mlabeledtr",r,s);n.childNodes[n.childNodes.length-1].appendChild(c)}}}e.prototype.verifyChildren.call(this,r)},t.prototype.setTeXclass=function(r){var n,o;this.getPrevClass(r);try{for(var i=$u(this.childNodes),a=i.next();!a.done;a=i.next())a.value.setTeXclass(null)}catch(s){n={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return this},t.defaults=Wu(Wu({},zu.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})(zu.AbstractMmlNode);var oi={},D2=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ku=y&&y.__assign||(function(){return Ku=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Ku.apply(this,arguments)}),Ju=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(oi,"__esModule",{value:!0}),oi.MmlMlabeledtr=oi.MmlMtr=void 0;var j2=ce,zy=ei,zN=it,F2=(function(e){D2(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(r,n,o,i){var a,s,c,l;try{for(var u=Ju(this.childNodes),p=u.next();!p.done;p=u.next()){var d=p.value;d.isKind("mtd")||this.replaceChild(this.factory.create("mtd"),d).appendChild(d)}}catch(v){a={error:v}}finally{try{p&&!p.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}var h=(0,zN.split)(this.attributes.get("columnalign"));this.arity===1&&h.unshift(this.parent.attributes.get("side")),r=this.addInheritedAttributes(r,{rowalign:this.attributes.get("rowalign"),columnalign:"center"});try{for(var f=Ju(this.childNodes),m=f.next();!m.done;m=f.next()){var d=m.value;r.columnalign[1]=h.shift()||r.columnalign[1],d.setInheritedAttributes(r,n,o,i)}}catch(v){c={error:v}}finally{try{m&&!m.done&&(l=f.return)&&l.call(f)}finally{if(c)throw c.error}}},t.prototype.verifyChildren=function(r){var n,o;if(this.parent&&!this.parent.isKind("mtable")){this.mError(this.kind+" can only be a child of an mtable",r,!0);return}try{for(var i=Ju(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),r.fixMtables||s.mError("Children of "+this.kind+" must be mtd",r))}}catch(c){n={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}e.prototype.verifyChildren.call(this,r)},t.prototype.setTeXclass=function(r){var n,o;this.getPrevClass(r);try{for(var i=Ju(this.childNodes),a=i.next();!a.done;a=i.next())a.value.setTeXclass(null)}catch(s){n={error:s}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return this},t.defaults=Ku(Ku({},j2.AbstractMmlNode.defaults),{rowalign:zy.INHERIT,columnalign:zy.INHERIT,groupalign:zy.INHERIT}),t})(j2.AbstractMmlNode);oi.MmlMtr=F2,oi.MmlMlabeledtr=(function(e){D2(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})(F2);var Dc={},KN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Yu=y&&y.__assign||(function(){return Yu=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Yu.apply(this,arguments)});Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.MmlMtd=void 0;var U2=ce,Ky=ei;Dc.MmlMtd=(function(e){KN(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(r){if(this.parent&&!this.parent.isKind("mtr")){this.mError(this.kind+" can only be a child of an mtr or mlabeledtr",r,!0);return}e.prototype.verifyChildren.call(this,r)},t.prototype.setTeXclass=function(r){return this.getPrevClass(r),this.childNodes[0].setTeXclass(null),this},t.defaults=Yu(Yu({},U2.AbstractMmlBaseNode.defaults),{rowspan:1,columnspan:1,rowalign:Ky.INHERIT,columnalign:Ky.INHERIT,groupalign:Ky.INHERIT}),t})(U2.AbstractMmlBaseNode);var Qu={},JN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Zu=y&&y.__assign||(function(){return Zu=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Zu.apply(this,arguments)});Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.MmlMaligngroup=void 0;var H2=ce,YN=ei;Qu.MmlMaligngroup=(function(e){JN(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"maligngroup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setChildInheritedAttributes=function(r,n,o,i){r=this.addInheritedAttributes(r,this.attributes.getAllAttributes()),e.prototype.setChildInheritedAttributes.call(this,r,n,o,i)},t.defaults=Zu(Zu({},H2.AbstractMmlLayoutNode.defaults),{groupalign:YN.INHERIT}),t})(H2.AbstractMmlLayoutNode);var ep={},QN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),tp=y&&y.__assign||(function(){return tp=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),tp.apply(this,arguments)});Object.defineProperty(ep,"__esModule",{value:!0}),ep.MmlMalignmark=void 0;var q2=ce;ep.MmlMalignmark=(function(e){QN(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"malignmark"},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}),t.defaults=tp(tp({},q2.AbstractMmlNode.defaults),{edge:"left"}),t})(q2.AbstractMmlNode);var jc={},ZN=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),rp=y&&y.__assign||(function(){return rp=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),rp.apply(this,arguments)});Object.defineProperty(jc,"__esModule",{value:!0}),jc.MmlMglyph=void 0;var Jy=ce;jc.MmlMglyph=(function(e){ZN(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.texclass=Jy.TEXCLASS.ORD,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"mglyph"},enumerable:!1,configurable:!0}),t.prototype.verifyAttributes=function(r){var n=this.attributes.getList("src","fontfamily","index"),o=n.src,i=n.fontfamily,a=n.index;o===""&&(i===""||a==="")?this.mError("mglyph must have either src or fontfamily and index attributes",r,!0):e.prototype.verifyAttributes.call(this,r)},t.defaults=rp(rp({},Jy.AbstractMmlTokenNode.defaults),{alt:"",src:"",index:"",width:"auto",height:"auto",valign:"0em"}),t})(Jy.AbstractMmlTokenNode);var Fn={},Yy=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ii=y&&y.__assign||(function(){return ii=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),ii.apply(this,arguments)});Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.MmlAnnotation=Fn.MmlAnnotationXML=Fn.MmlSemantics=void 0;var np=ce;Fn.MmlSemantics=(function(e){Yy(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=ii(ii({},np.AbstractMmlBaseNode.defaults),{definitionUrl:null,encoding:null}),t})(np.AbstractMmlBaseNode);var Qy=(function(e){Yy(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=ii(ii({},np.AbstractMmlNode.defaults),{definitionUrl:null,encoding:null,cd:"mathmlkeys",name:"",src:null}),t})(np.AbstractMmlNode);Fn.MmlAnnotationXML=Qy,Fn.MmlAnnotation=(function(e){Yy(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.properties={isChars:!0},r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),t.defaults=ii({},Qy.defaults),t})(Qy);var Fc={},e_=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Zy=y&&y.__assign||(function(){return Zy=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Zy.apply(this,arguments)});Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.TeXAtom=void 0;var e0=ce,t_=ri,G2=(function(e){e_(t,e);function t(r,n,o){var i=e.call(this,r,n,o)||this;return i.texclass=e0.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(r){return this.childNodes[0].setTeXclass(null),this.adjustTeXclass(r)},t.prototype.adjustTeXclass=function(r){return r},t.defaults=Zy({},e0.AbstractMmlBaseNode.defaults),t})(e0.AbstractMmlBaseNode);Fc.TeXAtom=G2,G2.prototype.adjustTeXclass=t_.MmlMo.prototype.adjustTeXclass;var op={},r_=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),t0=y&&y.__assign||(function(){return t0=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),t0.apply(this,arguments)});Object.defineProperty(op,"__esModule",{value:!0}),op.MathChoice=void 0;var X2=ce;op.MathChoice=(function(e){r_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"MathChoice"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arity",{get:function(){return 4},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.setInheritedAttributes=function(r,n,o,i){var a=n?0:Math.max(0,Math.min(o,2))+1,s=this.childNodes[a]||this.factory.create("mrow");this.parent.replaceChild(s,this),s.setInheritedAttributes(r,n,o,i)},t.defaults=t0({},X2.AbstractMmlBaseNode.defaults),t})(X2.AbstractMmlBaseNode);var ve;Object.defineProperty(_u,"__esModule",{value:!0}),_u.MML=void 0;var ip=ce,V2=vc,W2=ia,$2=Sc,z2=ri,K2=Ec,J2=xc,Y2=Mc,ap=ni,Q2=Oc,Z2=Ac,eS=Tc,tS=Du,rS=Fu,nS=Nc,oS=Hu,iS=_c,aS=Rc,sS=Lc,la=hn,ua=Dn,pa=jn,cS=Bc,sp=oi,lS=Dc,uS=Qu,pS=ep,dS=jc,da=Fn,hS=Fc,fS=op;_u.MML=(ve={},ve[V2.MmlMath.prototype.kind]=V2.MmlMath,ve[W2.MmlMi.prototype.kind]=W2.MmlMi,ve[$2.MmlMn.prototype.kind]=$2.MmlMn,ve[z2.MmlMo.prototype.kind]=z2.MmlMo,ve[K2.MmlMtext.prototype.kind]=K2.MmlMtext,ve[J2.MmlMspace.prototype.kind]=J2.MmlMspace,ve[Y2.MmlMs.prototype.kind]=Y2.MmlMs,ve[ap.MmlMrow.prototype.kind]=ap.MmlMrow,ve[ap.MmlInferredMrow.prototype.kind]=ap.MmlInferredMrow,ve[Q2.MmlMfrac.prototype.kind]=Q2.MmlMfrac,ve[Z2.MmlMsqrt.prototype.kind]=Z2.MmlMsqrt,ve[eS.MmlMroot.prototype.kind]=eS.MmlMroot,ve[tS.MmlMstyle.prototype.kind]=tS.MmlMstyle,ve[rS.MmlMerror.prototype.kind]=rS.MmlMerror,ve[nS.MmlMpadded.prototype.kind]=nS.MmlMpadded,ve[oS.MmlMphantom.prototype.kind]=oS.MmlMphantom,ve[iS.MmlMfenced.prototype.kind]=iS.MmlMfenced,ve[aS.MmlMenclose.prototype.kind]=aS.MmlMenclose,ve[sS.MmlMaction.prototype.kind]=sS.MmlMaction,ve[la.MmlMsub.prototype.kind]=la.MmlMsub,ve[la.MmlMsup.prototype.kind]=la.MmlMsup,ve[la.MmlMsubsup.prototype.kind]=la.MmlMsubsup,ve[ua.MmlMunder.prototype.kind]=ua.MmlMunder,ve[ua.MmlMover.prototype.kind]=ua.MmlMover,ve[ua.MmlMunderover.prototype.kind]=ua.MmlMunderover,ve[pa.MmlMmultiscripts.prototype.kind]=pa.MmlMmultiscripts,ve[pa.MmlMprescripts.prototype.kind]=pa.MmlMprescripts,ve[pa.MmlNone.prototype.kind]=pa.MmlNone,ve[cS.MmlMtable.prototype.kind]=cS.MmlMtable,ve[sp.MmlMlabeledtr.prototype.kind]=sp.MmlMlabeledtr,ve[sp.MmlMtr.prototype.kind]=sp.MmlMtr,ve[lS.MmlMtd.prototype.kind]=lS.MmlMtd,ve[uS.MmlMaligngroup.prototype.kind]=uS.MmlMaligngroup,ve[pS.MmlMalignmark.prototype.kind]=pS.MmlMalignmark,ve[dS.MmlMglyph.prototype.kind]=dS.MmlMglyph,ve[da.MmlSemantics.prototype.kind]=da.MmlSemantics,ve[da.MmlAnnotation.prototype.kind]=da.MmlAnnotation,ve[da.MmlAnnotationXML.prototype.kind]=da.MmlAnnotationXML,ve[hS.TeXAtom.prototype.kind]=hS.TeXAtom,ve[fS.MathChoice.prototype.kind]=fS.MathChoice,ve[ip.TextNode.prototype.kind]=ip.TextNode,ve[ip.XMLNode.prototype.kind]=ip.XMLNode,ve);var n_=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(gc,"__esModule",{value:!0});var r0=gc.MmlFactory=void 0,o_=Nu,i_=_u;r0=gc.MmlFactory=(function(e){n_(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"MML",{get:function(){return this.node},enumerable:!1,configurable:!0}),t.defaultNodes=i_.MML,t})(o_.AbstractNodeFactory);var cp={},mS=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),n0=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),o0=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(cp,"__esModule",{value:!0}),cp.AbstractVisitor=void 0;var a_=ti;cp.AbstractVisitor=(function(){function e(t){var r,n;this.nodeHandlers=new Map;try{for(var o=mS(t.getKinds()),i=o.next();!i.done;i=o.next()){var a=i.value,s=this[e.methodName(a)];s&&this.nodeHandlers.set(a,s)}}catch(c){r={error:c}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}return e.methodName=function(t){return"visit"+(t.charAt(0).toUpperCase()+t.substr(1)).replace(/[^a-z0-9_]/gi,"_")+"Node"},e.prototype.visitTree=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return this.visitNode.apply(this,o0([t],n0(r),!1))},e.prototype.visitNode=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=this.nodeHandlers.get(t.kind)||this.visitDefault;return o.call.apply(o,o0([this,t],n0(r),!1))},e.prototype.visitDefault=function(t){for(var r,n,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(t instanceof a_.AbstractNode)try{for(var a=mS(t.childNodes),s=a.next();!s.done;s=a.next()){var c=s.value;this.visitNode.apply(this,o0([c],n0(o),!1))}}catch(l){r={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}},e.prototype.setNodeHandler=function(t,r){this.nodeHandlers.set(t,r)},e.prototype.removeNodeHandler=function(t){this.nodeHandlers.delete(t)},e})();var s_=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.MmlVisitor=void 0;var c_=gc;Cu.MmlVisitor=(function(e){s_(t,e);function t(r){return r===void 0&&(r=null),r||(r=new c_.MmlFactory),e.call(this,r)||this}return t.prototype.visitTextNode=function(r){},t.prototype.visitXMLNode=function(r){},t})(cp.AbstractVisitor),(function(e){var t=y&&y.__extends||(function(){var c=function(l,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(p,d){p.__proto__=d})||(function(p,d){for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(p[h]=d[h])}),c(l,u)};return function(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");c(l,u);function p(){this.constructor=l}l.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}})(),r=y&&y.__values||(function(c){var l=typeof Symbol=="function"&&Symbol.iterator,u=l&&c[l],p=0;if(u)return u.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&p>=c.length&&(c=void 0),{value:c&&c[p++],done:!c}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}),n=y&&y.__read||(function(c,l){var u=typeof Symbol=="function"&&c[Symbol.iterator];if(!u)return c;var p=u.call(c),d,h=[],f;try{for(;(l===void 0||l-- >0)&&!(d=p.next()).done;)h.push(d.value)}catch(m){f={error:m}}finally{try{d&&!d.done&&(u=p.return)&&u.call(p)}finally{if(f)throw f.error}}return h});Object.defineProperty(e,"__esModule",{value:!0}),e.SerializedMmlVisitor=e.toEntity=e.DATAMJX=void 0;var o=Cu,i=ce,a=ia;e.DATAMJX="data-mjx-";var s=function(c){return"&#x"+c.codePointAt(0).toString(16).toUpperCase()+";"};e.toEntity=s,e.SerializedMmlVisitor=(function(c){t(l,c);function l(){return c!==null&&c.apply(this,arguments)||this}return l.prototype.visitTree=function(u){return this.visitNode(u,"")},l.prototype.visitTextNode=function(u,p){return this.quoteHTML(u.getText())},l.prototype.visitXMLNode=function(u,p){return p+u.getSerializedXML()},l.prototype.visitInferredMrowNode=function(u,p){var d,h,f=[];try{for(var m=r(u.childNodes),v=m.next();!v.done;v=m.next()){var g=v.value;f.push(this.visitNode(g,p))}}catch(b){d={error:b}}finally{try{v&&!v.done&&(h=m.return)&&h.call(m)}finally{if(d)throw d.error}}return f.join(`
2
+ `)},l.prototype.visitTeXAtomNode=function(u,p){var d=this.childNodeMml(u,p+" ",`
3
+ `);return p+"<mrow"+this.getAttributes(u)+">"+(d.match(/\S/)?`
4
+ `+d+p:"")+"</mrow>"},l.prototype.visitAnnotationNode=function(u,p){return p+"<annotation"+this.getAttributes(u)+">"+this.childNodeMml(u,"","")+"</annotation>"},l.prototype.visitDefault=function(u,p){var d=u.kind,h=n(u.isToken||u.childNodes.length===0?["",""]:[`
5
+ `,p],2),f=h[0],m=h[1],v=this.childNodeMml(u,p+" ",f);return p+"<"+d+this.getAttributes(u)+">"+(v.match(/\S/)?f+v+m:"")+"</"+d+">"},l.prototype.childNodeMml=function(u,p,d){var h,f,m="";try{for(var v=r(u.childNodes),g=v.next();!g.done;g=v.next()){var b=g.value;m+=this.visitNode(b,p)+d}}catch(S){h={error:S}}finally{try{g&&!g.done&&(f=v.return)&&f.call(v)}finally{if(h)throw h.error}}return m},l.prototype.getAttributes=function(u){var p,d,h=[],f=this.constructor.defaultAttributes[u.kind]||{},m=Object.assign({},f,this.getDataAttributes(u),u.attributes.getAllAttributes()),v=this.constructor.variants;m.hasOwnProperty("mathvariant")&&v.hasOwnProperty(m.mathvariant)&&(m.mathvariant=v[m.mathvariant]);try{for(var g=r(Object.keys(m)),b=g.next();!b.done;b=g.next()){var S=b.value,E=String(m[S]);E!==void 0&&h.push(S+'="'+this.quoteHTML(E)+'"')}}catch(x){p={error:x}}finally{try{b&&!b.done&&(d=g.return)&&d.call(g)}finally{if(p)throw p.error}}return h.length?" "+h.join(" "):""},l.prototype.getDataAttributes=function(u){var p={},d=u.attributes.getExplicit("mathvariant"),h=this.constructor.variants;d&&h.hasOwnProperty(d)&&this.setDataAttribute(p,"variant",d),u.getProperty("variantForm")&&this.setDataAttribute(p,"alternate","1"),u.getProperty("pseudoscript")&&this.setDataAttribute(p,"pseudoscript","true"),u.getProperty("autoOP")===!1&&this.setDataAttribute(p,"auto-op","false");var f=u.getProperty("scriptalign");f&&this.setDataAttribute(p,"script-align",f);var m=u.getProperty("texClass");if(m!==void 0){var v=!0;if(m===i.TEXCLASS.OP&&u.isKind("mi")){var g=u.getText();v=!(g.length>1&&g.match(a.MmlMi.operatorName))}v&&this.setDataAttribute(p,"texclass",m<0?"NONE":i.TEXCLASSNAMES[m])}return u.getProperty("scriptlevel")&&u.getProperty("useHeight")===!1&&this.setDataAttribute(p,"smallmatrix","true"),p},l.prototype.setDataAttribute=function(u,p,d){u[e.DATAMJX+p]=d},l.prototype.quoteHTML=function(u){return u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/[\uD800-\uDBFF]./g,e.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,e.toEntity)},l.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},l.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}},l})(o.MmlVisitor)})(na),ee(na);var tt={};(function(e){var t=y&&y.__values||(function(b){var S=typeof Symbol=="function"&&Symbol.iterator,E=S&&b[S],x=0;if(E)return E.call(b);if(b&&typeof b.length=="number")return{next:function(){return b&&x>=b.length&&(b=void 0),{value:b&&b[x++],done:!b}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")}),r=y&&y.__read||(function(b,S){var E=typeof Symbol=="function"&&b[Symbol.iterator];if(!E)return b;var x=E.call(b),O,A=[],M;try{for(;(S===void 0||S-- >0)&&!(O=x.next()).done;)A.push(O.value)}catch(C){M={error:C}}finally{try{O&&!O.done&&(E=x.return)&&E.call(x)}finally{if(M)throw M.error}}return A}),n=y&&y.__spreadArray||(function(b,S,E){if(E||arguments.length===2)for(var x=0,O=S.length,A;x<O;x++)(A||!(x in S))&&(A||(A=Array.prototype.slice.call(S,0,x)),A[x]=S[x]);return b.concat(A||Array.prototype.slice.call(S))});Object.defineProperty(e,"__esModule",{value:!0}),e.lookup=e.separateOptions=e.selectOptionsFromKeys=e.selectOptions=e.userOptions=e.defaultOptions=e.insert=e.copy=e.keys=e.makeArray=e.expandable=e.Expandable=e.OPTIONS=e.REMOVE=e.APPEND=e.isObject=void 0;var o={}.constructor;function i(b){return typeof b=="object"&&b!==null&&(b.constructor===o||b.constructor===a)}e.isObject=i,e.APPEND="[+]",e.REMOVE="[-]",e.OPTIONS={invalidOption:"warn",optionError:function(b,S){if(e.OPTIONS.invalidOption==="fatal")throw new Error(b);console.warn("MathJax: "+b)}};var a=(function(){function b(){}return b})();e.Expandable=a;function s(b){return Object.assign(Object.create(a.prototype),b)}e.expandable=s;function c(b){return Array.isArray(b)?b:[b]}e.makeArray=c;function l(b){return b?Object.keys(b).concat(Object.getOwnPropertySymbols(b)):[]}e.keys=l;function u(b){var S,E,x={};try{for(var O=t(l(b)),A=O.next();!A.done;A=O.next()){var M=A.value,C=Object.getOwnPropertyDescriptor(b,M),w=C.value;Array.isArray(w)?C.value=p([],w,!1):i(w)&&(C.value=u(w)),C.enumerable&&(x[M]=C)}}catch(k){S={error:k}}finally{try{A&&!A.done&&(E=O.return)&&E.call(O)}finally{if(S)throw S.error}}return Object.defineProperties(b.constructor===a?s({}):{},x)}e.copy=u;function p(b,S,E){var x,O;E===void 0&&(E=!0);var A=function(k){if(E&&b[k]===void 0&&b.constructor!==a)return typeof k=="symbol"&&(k=k.toString()),e.OPTIONS.optionError('Invalid option "'.concat(k,'" (no default value).'),k),"continue";var L=S[k],D=b[k];if(i(L)&&D!==null&&(typeof D=="object"||typeof D=="function")){var P=l(L);Array.isArray(D)&&(P.length===1&&(P[0]===e.APPEND||P[0]===e.REMOVE)&&Array.isArray(L[P[0]])||P.length===2&&P.sort().join(",")===e.APPEND+","+e.REMOVE&&Array.isArray(L[e.APPEND])&&Array.isArray(L[e.REMOVE]))?(L[e.REMOVE]&&(D=b[k]=D.filter(function(F){return L[e.REMOVE].indexOf(F)<0})),L[e.APPEND]&&(b[k]=n(n([],r(D),!1),r(L[e.APPEND]),!1))):p(D,L,E)}else Array.isArray(L)?(b[k]=[],p(b[k],L,!1)):i(L)?b[k]=u(L):b[k]=L};try{for(var M=t(l(S)),C=M.next();!C.done;C=M.next()){var w=C.value;A(w)}}catch(k){x={error:k}}finally{try{C&&!C.done&&(O=M.return)&&O.call(M)}finally{if(x)throw x.error}}return b}e.insert=p;function d(b){for(var S=[],E=1;E<arguments.length;E++)S[E-1]=arguments[E];return S.forEach(function(x){return p(b,x,!1)}),b}e.defaultOptions=d;function h(b){for(var S=[],E=1;E<arguments.length;E++)S[E-1]=arguments[E];return S.forEach(function(x){return p(b,x,!0)}),b}e.userOptions=h;function f(b){for(var S,E,x=[],O=1;O<arguments.length;O++)x[O-1]=arguments[O];var A={};try{for(var M=t(x),C=M.next();!C.done;C=M.next()){var w=C.value;b.hasOwnProperty(w)&&(A[w]=b[w])}}catch(k){S={error:k}}finally{try{C&&!C.done&&(E=M.return)&&E.call(M)}finally{if(S)throw S.error}}return A}e.selectOptions=f;function m(b,S){return f.apply(void 0,n([b],r(Object.keys(S)),!1))}e.selectOptionsFromKeys=m;function v(b){for(var S,E,x,O,A=[],M=1;M<arguments.length;M++)A[M-1]=arguments[M];var C=[];try{for(var w=t(A),k=w.next();!k.done;k=w.next()){var L=k.value,D={},P={};try{for(var F=(x=void 0,t(Object.keys(b||{}))),G=F.next();!G.done;G=F.next()){var Q=G.value;(L[Q]===void 0?P:D)[Q]=b[Q]}}catch(U){x={error:U}}finally{try{G&&!G.done&&(O=F.return)&&O.call(F)}finally{if(x)throw x.error}}C.push(D),b=P}}catch(U){S={error:U}}finally{try{k&&!k.done&&(E=w.return)&&E.call(w)}finally{if(S)throw S.error}}return C.unshift(b),C}e.separateOptions=v;function g(b,S,E){return E===void 0&&(E=null),S.hasOwnProperty(b)?S[b]:E}e.lookup=g})(tt),ee(tt);var i0=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ha=y&&y.__assign||(function(){return ha=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),ha.apply(this,arguments)}),l_=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),u_=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),p_=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Bn,"__esModule",{value:!0});var yS=Bn.AssistiveMmlHandler=Bn.AssistiveMmlMathDocumentMixin=Bn.AssistiveMmlMathItemMixin=Bn.LimitedMmlVisitor=void 0,Uc=Wr,d_=na,h_=tt,gS=(function(e){i0(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getAttributes=function(r){return e.prototype.getAttributes.call(this,r).replace(/ ?id=".*?"/,"")},t})(d_.SerializedMmlVisitor);Bn.LimitedMmlVisitor=gS,(0,Uc.newState)("ASSISTIVEMML",153);function bS(e){return(function(t){i0(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.assistiveMml=function(n,o){if(o===void 0&&(o=!1),!(this.state()>=Uc.STATE.ASSISTIVEMML)){if(!this.isEscaped&&(n.options.enableAssistiveMml||o)){var i=n.adaptor,a=n.toMML(this.root).replace(/\n */g,"").replace(/<!--.*?-->/g,""),s=i.firstChild(i.body(i.parse(a,"text/html"))),c=i.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[s]);i.setAttribute(i.firstChild(this.typesetRoot),"aria-hidden","true"),i.setStyle(this.typesetRoot,"position","relative"),i.append(this.typesetRoot,c)}this.state(Uc.STATE.ASSISTIVEMML)}},r})(e)}Bn.AssistiveMmlMathItemMixin=bS;function vS(e){var t=(function(r){i0(n,r);function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var a=r.apply(this,u_([],l_(o),!1))||this,s=a.constructor,c=s.ProcessBits;return c.has("assistive-mml")||c.allocate("assistive-mml"),a.visitor=new gS(a.mmlFactory),a.options.MathItem=bS(a.options.MathItem),"addStyles"in a&&a.addStyles(s.assistiveStyles),a}return n.prototype.toMML=function(o){return this.visitor.visitTree(o)},n.prototype.assistiveMml=function(){var o,i;if(!this.processed.isSet("assistive-mml")){try{for(var a=p_(this.math),s=a.next();!s.done;s=a.next())s.value.assistiveMml(this)}catch(c){o={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}this.processed.set("assistive-mml")}return this},n.prototype.state=function(o,i){return i===void 0&&(i=!1),r.prototype.state.call(this,o,i),o<Uc.STATE.ASSISTIVEMML&&this.processed.clear("assistive-mml"),this},n})(e);return t.OPTIONS=ha(ha({},e.OPTIONS),{enableAssistiveMml:!0,renderActions:(0,h_.expandable)(ha(ha({},e.OPTIONS.renderActions),{assistiveMml:[Uc.STATE.ASSISTIVEMML]}))}),t.assistiveStyles={"mjx-assistive-mml":{position:"absolute !important",top:"0px",left:"0px",clip:"rect(1px, 1px, 1px, 1px)",padding:"1px 0px 0px 0px !important",border:"0px !important",display:"block !important",width:"auto !important",overflow:"hidden !important","-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},'mjx-assistive-mml[display="block"]':{width:"100% !important"}},t}Bn.AssistiveMmlMathDocumentMixin=vS;function f_(e){return e.documentClass=vS(e.documentClass),e}yS=Bn.AssistiveMmlHandler=f_;var ai={},lp={},up={},Oe={},pt={};Object.defineProperty(pt,"__esModule",{value:!0}),pt.DefaultComparator=pt.DynamicCstrParser=pt.DynamicCstr=pt.DynamicProperties=pt.Axis=void 0;var Lr;(function(e){e.DOMAIN="domain",e.STYLE="style",e.LOCALE="locale",e.TOPIC="topic",e.MODALITY="modality"})(Lr||(pt.Axis=Lr={}));class fa{static createProp(...t){const r=$t.DEFAULT_ORDER,n={};for(let o=0,i=t.length,a=r.length;o<i&&o<a;o++)n[r[o]]=t[o];return new fa(n)}constructor(t,r=Object.keys(t)){this.properties=t,this.order=r}getProperties(){return this.properties}getOrder(){return this.order}getAxes(){return this.order}getProperty(t){return this.properties[t]}updateProperties(t){this.properties=t}allProperties(){const t=[];return this.order.forEach(r=>t.push(this.getProperty(r).slice())),t}toString(){const t=[];return this.order.forEach(r=>t.push(r+": "+this.getProperty(r).toString())),t.join(`
6
+ `)}}pt.DynamicProperties=fa;class $t extends fa{static createCstr(...t){const r=$t.DEFAULT_ORDER,n={};for(let o=0,i=t.length,a=r.length;o<i&&o<a;o++)n[r[o]]=t[o];return new $t(n)}static defaultCstr(){return $t.createCstr.apply(null,$t.DEFAULT_ORDER.map(function(t){return $t.DEFAULT_VALUES[t]}))}static validOrder(t){const r=$t.DEFAULT_ORDER.slice();return t.every(n=>{const o=r.indexOf(n);return o!==-1&&r.splice(o,1)})}constructor(t,r){const n={};for(const[o,i]of Object.entries(t))n[o]=[i];super(n,r),this.components=t}getComponents(){return this.components}getValue(t){return this.components[t]}getValues(){return this.order.map(t=>this.getValue(t))}allProperties(){const t=super.allProperties();for(let r=0,n,o;n=t[r],o=this.order[r];r++){const i=this.getValue(o);n.indexOf(i)===-1&&n.unshift(i)}return t}toString(){return this.getValues().join(".")}equal(t){const r=t.getAxes();if(this.order.length!==r.length)return!1;for(let n=0,o;o=r[n];n++){const i=this.getValue(o);if(!i||t.getValue(o)!==i)return!1}return!0}}pt.DynamicCstr=$t,$t.DEFAULT_ORDER=[Lr.LOCALE,Lr.MODALITY,Lr.DOMAIN,Lr.STYLE,Lr.TOPIC],$t.BASE_LOCALE="base",$t.DEFAULT_VALUE="default",$t.DEFAULT_VALUES={[Lr.LOCALE]:"en",[Lr.DOMAIN]:$t.DEFAULT_VALUE,[Lr.STYLE]:$t.DEFAULT_VALUE,[Lr.TOPIC]:$t.DEFAULT_VALUE,[Lr.MODALITY]:"speech"};class m_{constructor(t){this.order=t}parse(t){const r=t.split("."),n={};if(r.length>this.order.length)throw new Error("Invalid dynamic constraint: "+n);let o=0;for(let i=0,a;a=this.order[i],r.length;i++,o++){const s=r.shift();n[a]=s}return new $t(n,this.order.slice(0,o))}}pt.DynamicCstrParser=m_;class y_{constructor(t,r=new fa(t.getProperties(),t.getOrder())){this.reference=t,this.fallback=r,this.order=this.reference.getOrder()}getReference(){return this.reference}setReference(t,r){this.reference=t,this.fallback=r||new fa(t.getProperties(),t.getOrder()),this.order=this.reference.getOrder()}match(t){const r=t.getAxes();return r.length===this.reference.getAxes().length&&r.every(n=>{const o=t.getValue(n);return o===this.reference.getValue(n)||this.fallback.getProperty(n).indexOf(o)!==-1})}compare(t,r){let n=!1;for(let o=0,i;i=this.order[o];o++){const a=t.getValue(i),s=r.getValue(i);if(!n){const p=this.reference.getValue(i);if(p===a&&p!==s)return-1;if(p===s&&p!==a)return 1;if(p===a&&p===s)continue;p!==a&&p!==s&&(n=!0)}const c=this.fallback.getProperty(i),l=c.indexOf(a),u=c.indexOf(s);if(l<u)return-1;if(u<l)return 1}return 0}toString(){return this.reference.toString()+`
7
+ `+this.fallback.toString()}}pt.DefaultComparator=y_;var De={};Object.defineProperty(De,"__esModule",{value:!0}),De.DOMAIN_TO_STYLES=De.Markup=De.Speech=De.personalityPropList=De.personalityProps=De.Mode=void 0;var SS;(function(e){e.SYNC="sync",e.ASYNC="async",e.HTTP="http"})(SS||(De.Mode=SS={}));var si;(function(e){e.PITCH="pitch",e.RATE="rate",e.VOLUME="volume",e.PAUSE="pause",e.JOIN="join",e.LAYOUT="layout"})(si||(De.personalityProps=si={})),De.personalityPropList=[si.PITCH,si.RATE,si.VOLUME,si.PAUSE,si.JOIN];var ES;(function(e){e.NONE="none",e.SHALLOW="shallow",e.DEEP="deep"})(ES||(De.Speech=ES={}));var xS;(function(e){e.NONE="none",e.LAYOUT="layout",e.COUNTING="counting",e.PUNCTUATION="punctuation",e.SSML="ssml",e.ACSS="acss",e.SABLE="sable",e.VOICEXML="voicexml"})(xS||(De.Markup=xS={})),De.DOMAIN_TO_STYLES={mathspeak:"default",clearspeak:"default"};var $r={},Ir={},So={};Object.defineProperty(So,"__esModule",{value:!0}),So.Variables=void 0;class fn{static ensureLocale(t,r){return fn.LOCALES.get(t)?t:(console.error(`Locale ${t} does not exist! Using ${fn.LOCALES.get(r)} instead.`),r)}}So.Variables=fn,fn.VERSION="4.1.2",fn.LOCALES=new Map([["af","Africaans"],["ca","Catalan"],["da","Danish"],["de","German"],["en","English"],["es","Spanish"],["euro","Euro"],["fr","French"],["hi","Hindi"],["it","Italian"],["ko","Korean"],["nb","Bokmål"],["nn","Nynorsk"],["sv","Swedish"],["nemeth","Nemeth"]]),fn.mathjaxVersion="4.0.0-beta.5",fn.url="https://cdn.jsdelivr.net/npm/speech-rule-engine@"+fn.VERSION+"/lib/mathmaps",fn.WGXpath="https://cdn.jsdelivr.net/npm/wicked-good-xpath@1.3.0/dist/wgxpath.install.js",Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.SystemExternal=void 0;const a0=So;class We{static nodeRequire(){return E2}static extRequire(t){return typeof process<"u"&&typeof E2<"u"?We.nodeRequire()(t):null}}Ir.SystemExternal=We,We.windowSupported=!(typeof window>"u"),We.documentSupported=We.windowSupported&&!(typeof window.document>"u"),We.xmldom=We.documentSupported?window:We.extRequire("@xmldom/xmldom"),We.document=We.documentSupported?window.document:new We.xmldom.DOMImplementation().createDocument("","",0),We.xpath=We.documentSupported?document:(function(){const e={document:{},XPathResult:{}};return We.extRequire("wicked-good-xpath").install(e),e.document.XPathResult=e.XPathResult,e.document})(),We.mathmapsIePath="https://cdn.jsdelivr.net/npm/sre-mathmaps-ie@"+a0.Variables.VERSION+"mathmaps_ie.js",We.fs=We.documentSupported?null:We.extRequire("fs"),We.url=a0.Variables.url,We.jsonPath=(function(){if(We.documentSupported)return We.url;if({}.SRE_JSON_PATH||y.SRE_JSON_PATH)return{}.SRE_JSON_PATH||y.SRE_JSON_PATH;try{return We.nodeRequire().resolve("speech-rule-engine").replace(/sre\.js$/,"")+"mathmaps"}catch{}try{return We.nodeRequire().resolve(".").replace(/sre\.js$/,"")+"mathmaps"}catch{}return typeof __dirname<"u"?__dirname+(__dirname.match(/lib?$/)?"/mathmaps":"/lib/mathmaps"):process.cwd()+"/lib/mathmaps"})(),We.WGXpath=a0.Variables.WGXpath,We.wgxpath=null,Ir.default=We,Object.defineProperty($r,"__esModule",{value:!0}),$r.Debugger=void 0;const g_=Ir;class ma{static getInstance(){return ma.instance=ma.instance||new ma,ma.instance}init(t){return t&&this.startDebugFile_(t),this.isActive_=!0,this.fileHandle}output(...t){this.isActive_&&this.output_(t)}generateOutput(t){this.isActive_&&this.output_(t.apply(t,[]))}exit(t=()=>{}){this.fileHandle.then(()=>{this.isActive_&&this.stream_&&this.stream_.end("","",t)})}constructor(){this.isActive_=!1,this.outputFunction_=console.info,this.fileHandle=Promise.resolve(),this.stream_=null}startDebugFile_(t){this.fileHandle=g_.SystemExternal.fs.promises.open(t,"w"),this.fileHandle=this.fileHandle.then(r=>{this.stream_=r.createWriteStream(t),this.outputFunction_=(function(...n){this.stream_.write(n.join(" ")),this.stream_.write(`
8
+ `)}).bind(this),this.stream_.on("error",(function(n){console.info("Invalid log file. Debug information sent to console."),this.outputFunction_=console.info}).bind(this)),this.stream_.on("finish",function(){console.info("Finalizing debug file.")})})}output_(t){if(console.info===this.outputFunction_){this.outputFunction_.apply(console,["Speech Rule Engine Debugger:"].concat(t));return}this.fileHandle.then(()=>this.outputFunction_.apply(this.outputFunction_,["Speech Rule Engine Debugger:"].concat(t)))}}$r.Debugger=ma,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.EnginePromise=Oe.Engine=Oe.SREError=void 0;const st=pt,Hc=De,b_=$r,v_=So;class S_ extends Error{constructor(t=""){super(),this.message=t,this.name="SRE Error"}}Oe.SREError=S_;class vr{set defaultLocale(t){this._defaultLocale=v_.Variables.ensureLocale(t,this._defaultLocale)}get defaultLocale(){return this._defaultLocale}static getInstance(){return vr.instance=vr.instance||new vr,vr.instance}static defaultEvaluator(t,r){return t}static evaluateNode(t){return vr.nodeEvaluator(t)}getRate(){const t=parseInt(this.rate,10);return isNaN(t)?100:t}setDynamicCstr(t){if(this.defaultLocale&&(st.DynamicCstr.DEFAULT_VALUES[st.Axis.LOCALE]=this.defaultLocale),t){const a=Object.keys(t);for(let s=0;s<a.length;s++){const c=a[s];if(st.DynamicCstr.DEFAULT_ORDER.indexOf(c)!==-1){const l=t[c];this[c]=l}}}Hc.DOMAIN_TO_STYLES[this.domain]=this.style;const r=[this.locale,this.modality,this.domain,this.style].join("."),n=st.DynamicProperties.createProp([st.DynamicCstr.DEFAULT_VALUES[st.Axis.LOCALE]],[st.DynamicCstr.DEFAULT_VALUES[st.Axis.MODALITY]],[st.DynamicCstr.DEFAULT_VALUES[st.Axis.DOMAIN]],[st.DynamicCstr.DEFAULT_VALUES[st.Axis.STYLE]]),o=this.comparators[this.domain],i=this.parsers[this.domain];this.parser=i||this.defaultParser,this.dynamicCstr=this.parser.parse(r),this.dynamicCstr.updateProperties(n.getProperties()),this.comparator=o?o():new st.DefaultComparator(this.dynamicCstr)}constructor(){this.customLoader=null,this.parsers={},this.comparator=null,this.mode=Hc.Mode.SYNC,this.init=!0,this.delay=!1,this.comparators={},this.domain="mathspeak",this.style=st.DynamicCstr.DEFAULT_VALUES[st.Axis.STYLE],this._defaultLocale=st.DynamicCstr.DEFAULT_VALUES[st.Axis.LOCALE],this.locale=st.DynamicCstr.DEFAULT_VALUES[st.Axis.LOCALE],this.subiso="",this.modality=st.DynamicCstr.DEFAULT_VALUES[st.Axis.MODALITY],this.speech=Hc.Speech.NONE,this.markup=Hc.Markup.NONE,this.mark=!0,this.automark=!1,this.character=!0,this.cleanpause=!0,this.cayleyshort=!0,this.linebreaks=!1,this.rate="100",this.walker="Table",this.structure=!1,this.aria=!1,this.ruleSets=[],this.strict=!1,this.isIE=!1,this.isEdge=!1,this.pprint=!1,this.config=!1,this.rules="",this.prune="",this.locale=this.defaultLocale,this.evaluator=vr.defaultEvaluator,this.defaultParser=new st.DynamicCstrParser(st.DynamicCstr.DEFAULT_ORDER),this.parser=this.defaultParser,this.dynamicCstr=st.DynamicCstr.defaultCstr()}configurate(t){this.mode===Hc.Mode.HTTP&&!this.config&&(x_(t),this.config=!0),E_(t)}setCustomLoader(t){t&&(this.customLoader=t)}}Oe.Engine=vr,vr.BINARY_FEATURES=["automark","mark","character","cleanpause","strict","structure","aria","pprint","cayleyshort","linebreaks"],vr.STRING_FEATURES=["markup","style","domain","speech","walker","defaultLocale","locale","delay","modality","rate","rules","subiso","prune"],vr.nodeEvaluator=function(e){return[]},Oe.default=vr;function E_(e){if(typeof SREfeature<"u")for(const[t,r]of Object.entries(SREfeature))e[t]=r}function x_(e){const t=document.documentElement.querySelectorAll('script[type="text/x-sre-config"]');for(let r=0,n=t.length;r<n;r++){let o;try{o=t[r].innerHTML;const i=JSON.parse(o);for(const[a,s]of Object.entries(i))e[a]=s}catch{b_.Debugger.getInstance().output("Illegal configuration ",o)}}}class ya{static get(t=vr.getInstance().locale){return ya.promises[t]||Promise.resolve("")}static getall(){return Promise.all(Object.values(ya.promises))}}Oe.EnginePromise=ya,ya.loaded={},ya.promises={};var ga={},ba={},Ot={},he={},Rt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.xpath=void 0,e.resolveNameSpace=a,e.evalXPath=l,e.evaluateBoolean=u,e.evaluateString=p,e.updateEvaluator=d;const t=Oe,r=De,n=Ir;function o(){return!(typeof XPathResult>"u")}e.xpath={currentDocument:null,evaluate:o()?document.evaluate:n.SystemExternal.xpath.evaluate,result:o()?XPathResult:n.SystemExternal.xpath.XPathResult,createNSResolver:o()?document.createNSResolver:n.SystemExternal.xpath.createNSResolver};const i={xhtml:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",mml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function a(h){return i[h]||null}class s{constructor(){this.lookupNamespaceURI=a}}function c(h,f,m){return t.Engine.getInstance().mode===r.Mode.HTTP&&!t.Engine.getInstance().isIE&&!t.Engine.getInstance().isEdge?e.xpath.currentDocument.evaluate(h,f,a,m,null):e.xpath.evaluate(h,f,new s,m,null)}function l(h,f){let m;try{m=c(h,f,e.xpath.result.ORDERED_NODE_ITERATOR_TYPE)}catch{return[]}const v=[];for(let g=m.iterateNext();g;g=m.iterateNext())v.push(g);return v}function u(h,f){let m;try{m=c(h,f,e.xpath.result.BOOLEAN_TYPE)}catch{return!1}return m.booleanValue}function p(h,f){let m;try{m=c(h,f,e.xpath.result.STRING_TYPE)}catch{return""}return m.stringValue}function d(h){if(t.Engine.getInstance().mode!==r.Mode.HTTP)return;let f=h;for(;f&&!f.evaluate;)f=f.parentNode;f&&f.evaluate?e.xpath.currentDocument=f:h.ownerDocument&&(e.xpath.currentDocument=h.ownerDocument)}})(Rt),ee(Rt),Object.defineProperty(he,"__esModule",{value:!0}),he.NodeType=void 0,he.toArray=dp,he.parseInput=A_,he.replaceNode=T_,he.createElement=C_,he.createElementNS=N_,he.createTextNode=__,he.formatXml=w_,he.querySelectorAllByAttr=L_,he.querySelectorAllByAttrValue=I_,he.querySelectorAll=P_,he.tagName=k_,he.cloneNode=B_,he.serializeXml=D_;const MS=Oe,M_=De,qc=Ir,pp=Rt;function dp(e){const t=[];for(let r=0,n=e.length;r<n;r++)t.push(e[r]);return t}function O_(e){return e=e.replace(/&nbsp;/g," "),e.replace(/>[ \f\n\r\t\v\u200b]+</g,"><").trim()}function A_(e){const t=new qc.SystemExternal.xmldom.DOMParser,r=O_(e),n=!!r.match(/&(?!lt|gt|amp|quot|apos)\w+;/g);if(!r)throw new Error("Empty input!");try{const o=t.parseFromString(r,n?"text/html":"text/xml");return MS.Engine.getInstance().mode===M_.Mode.HTTP?(pp.xpath.currentDocument=o,n?o.body.childNodes[0]:o.documentElement):o.documentElement}catch(o){throw new MS.SREError("Illegal input: "+o.message)}}var OS;(function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e[e.NOTATION_NODE=12]="NOTATION_NODE"})(OS||(he.NodeType=OS={}));function T_(e,t){e.parentNode&&(e.parentNode.insertBefore(t,e),e.parentNode.removeChild(e))}function C_(e){return qc.SystemExternal.document.createElement(e)}function N_(e,t){return qc.SystemExternal.document.createElementNS(e,t)}function __(e){return qc.SystemExternal.document.createTextNode(e)}function w_(e){let t="",r=/(>)(<)(\/*)/g;e=e.replace(r,`$1\r
9
+ $2$3`);let n=0,o=e.split(`\r
10
+ `);for(r=/(\.)*(<)(\/*)/g,o=o.map(i=>i.replace(r,`$1\r
11
+ $2$3`).split(`\r
12
+ `)).reduce((i,a)=>i.concat(a),[]);o.length;){let i=o.shift();if(!i)continue;let a=0;if(i.match(/^<\w[^>/]*>[^>]+$/)){const s=R_(i,o[0]);s[0]?s[1]?(i=i+o.shift().slice(0,-s[1].length),s[1].trim()&&o.unshift(s[1])):i=i+o.shift():a=1}else if(i.match(/^<\/\w/))n!==0&&(n-=1);else if(i.match(/^<\w[^>]*[^/]>.*$/))a=1;else if(i.match(/^<\w[^>]*\/>.+$/)){const s=i.indexOf(">")+1,c=i.slice(s);c.trim()&&o.unshift(),i=i.slice(0,s)+c}else a=0;t+=new Array(n+1).join(" ")+i+`\r
13
+ `,n+=a}return t}function R_(e,t){if(!t)return[!1,""];const r=e.match(/^<([^> ]+).*>/),n=t.match(/^<\/([^>]+)>(.*)/);return r&&n&&r[1]===n[1]?[!0,n[2]]:[!1,""]}function L_(e,t){return e.querySelectorAll?dp(e.querySelectorAll(`[${t}]`)):pp.evalXPath(`.//*[@${t}]`,e)}function I_(e,t,r){return e.querySelectorAll?dp(e.querySelectorAll(`[${t}="${r}"]`)):pp.evalXPath(`.//*[@${t}="${r}"]`,e)}function P_(e,t){return e.querySelectorAll?dp(e.querySelectorAll(t)):pp.evalXPath(`.//${t}`,e)}function k_(e){return e.tagName.toUpperCase()}function B_(e){return e.cloneNode(!0)}function D_(e){return new qc.SystemExternal.xmldom.XMLSerializer().serializeToString(e)}var mt={},Re={},At={},Lt={},Se={},Gc={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.INTERVALS=e.Base=e.Embellish=e.Font=void 0,e.makeInterval=i,e.makeMultiInterval=s,e.makeCodeInterval=c,e.alphabetName=u;var t;(function(p){p.BOLD="bold",p.BOLDFRAKTUR="bold-fraktur",p.BOLDITALIC="bold-italic",p.BOLDSCRIPT="bold-script",p.DOUBLESTRUCK="double-struck",p.DOUBLESTRUCKITALIC="double-struck-italic",p.FULLWIDTH="fullwidth",p.FRAKTUR="fraktur",p.ITALIC="italic",p.MONOSPACE="monospace",p.NORMAL="normal",p.SCRIPT="script",p.SANSSERIF="sans-serif",p.SANSSERIFITALIC="sans-serif-italic",p.SANSSERIFBOLD="sans-serif-bold",p.SANSSERIFBOLDITALIC="sans-serif-bold-italic"})(t||(e.Font=t={}));var r;(function(p){p.SUPER="super",p.SUB="sub",p.CIRCLED="circled",p.PARENTHESIZED="parenthesized",p.PERIOD="period",p.NEGATIVECIRCLED="negative-circled",p.DOUBLECIRCLED="double-circled",p.CIRCLEDSANSSERIF="circled-sans-serif",p.NEGATIVECIRCLEDSANSSERIF="negative-circled-sans-serif",p.COMMA="comma",p.SQUARED="squared",p.NEGATIVESQUARED="negative-squared"})(r||(e.Embellish=r={}));var n;(function(p){p.LATINCAP="latinCap",p.LATINSMALL="latinSmall",p.GREEKCAP="greekCap",p.GREEKSMALL="greekSmall",p.DIGIT="digit"})(n||(e.Base=n={}));function o(p){const d=p.toString(16).toUpperCase();return d.length>3?d:("000"+d).slice(-4)}function i([p,d],h){const f=parseInt(p,16),m=parseInt(d,16),v=[];for(let g=f;g<=m;g++){let b=o(g);h[b]!==!1&&(b=h[b]||b,v.push(b))}return v}function a(p,d={}){return i(p,d).map(h=>String.fromCodePoint(parseInt(h,16)))}function s(p){let d=[];for(const h of p){if(Array.isArray(h)){d=d.concat(a(h));continue}d.push(String.fromCodePoint(parseInt(h,16)))}return d}function c(p){let d=[];for(const h of p){if(Array.isArray(h)){d=d.concat(i(h,{}).map(f=>parseInt(f,16)));continue}d.push(parseInt(h,16))}return d}const l=[{interval:["1D400","1D419"],base:n.LATINCAP,subst:{},capital:!0,category:"Lu",font:t.BOLD},{interval:["1D41A","1D433"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.BOLD},{interval:["1D56C","1D585"],base:n.LATINCAP,subst:{},capital:!0,category:"Lu",font:t.BOLDFRAKTUR},{interval:["1D586","1D59F"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.BOLDFRAKTUR},{interval:["1D468","1D481"],base:n.LATINCAP,subst:{},capital:!0,category:"Lu",font:t.BOLDITALIC},{interval:["1D482","1D49B"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.BOLDITALIC},{interval:["1D4D0","1D4E9"],base:n.LATINCAP,subst:{},capital:!0,category:"Lu",font:t.BOLDSCRIPT},{interval:["1D4EA","1D503"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.BOLDSCRIPT},{interval:["1D538","1D551"],base:n.LATINCAP,subst:{"1D53A":"2102","1D53F":"210D","1D545":"2115","1D547":"2119","1D548":"211A","1D549":"211D","1D551":"2124"},capital:!0,category:"Lu",font:t.DOUBLESTRUCK},{interval:["1D552","1D56B"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.DOUBLESTRUCK},{interval:["1D504","1D51D"],base:n.LATINCAP,subst:{"1D506":"212D","1D50B":"210C","1D50C":"2111","1D515":"211C","1D51D":"2128"},capital:!0,category:"Lu",font:t.FRAKTUR},{interval:["1D51E","1D537"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.FRAKTUR},{interval:["FF21","FF3A"],base:n.LATINCAP,subst:{},capital:!0,category:"Lu",font:t.FULLWIDTH},{interval:["FF41","FF5A"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.FULLWIDTH},{interval:["1D434","1D44D"],base:n.LATINCAP,subst:{},capital:!0,category:"Lu",font:t.ITALIC},{interval:["1D44E","1D467"],base:n.LATINSMALL,subst:{"1D455":"210E"},capital:!1,category:"Ll",font:t.ITALIC},{interval:["1D670","1D689"],base:n.LATINCAP,subst:{},capital:!0,category:"Lu",font:t.MONOSPACE},{interval:["1D68A","1D6A3"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.MONOSPACE},{interval:["0041","005A"],base:n.LATINCAP,subst:{},capital:!0,category:"Lu",font:t.NORMAL},{interval:["0061","007A"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.NORMAL},{interval:["1D49C","1D4B5"],base:n.LATINCAP,subst:{"1D49D":"212C","1D4A0":"2130","1D4A1":"2131","1D4A3":"210B","1D4A4":"2110","1D4A7":"2112","1D4A8":"2133","1D4AD":"211B"},capital:!0,category:"Lu",font:t.SCRIPT},{interval:["1D4B6","1D4CF"],base:n.LATINSMALL,subst:{"1D4BA":"212F","1D4BC":"210A","1D4C4":"2134"},capital:!1,category:"Ll",font:t.SCRIPT},{interval:["1D5A0","1D5B9"],base:n.LATINCAP,subst:{},capital:!0,category:"Lu",font:t.SANSSERIF},{interval:["1D5BA","1D5D3"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.SANSSERIF},{interval:["1D608","1D621"],base:n.LATINCAP,subst:{},capital:!0,category:"Lu",font:t.SANSSERIFITALIC},{interval:["1D622","1D63B"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.SANSSERIFITALIC},{interval:["1D5D4","1D5ED"],base:n.LATINCAP,subst:{},capital:!0,category:"Lu",font:t.SANSSERIFBOLD},{interval:["1D5EE","1D607"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.SANSSERIFBOLD},{interval:["1D63C","1D655"],base:n.LATINCAP,subst:{},capital:!0,category:"Lu",font:t.SANSSERIFBOLDITALIC},{interval:["1D656","1D66F"],base:n.LATINSMALL,subst:{},capital:!1,category:"Ll",font:t.SANSSERIFBOLDITALIC},{interval:["0391","03A9"],base:n.GREEKCAP,subst:{"03A2":"03F4"},capital:!0,category:"Lu",font:t.NORMAL},{interval:["03B0","03D0"],base:n.GREEKSMALL,subst:{"03B0":"2207","03CA":"2202","03CB":"03F5","03CC":"03D1","03CD":"03F0","03CE":"03D5","03CF":"03F1","03D0":"03D6"},capital:!1,category:"Ll",font:t.NORMAL},{interval:["1D6A8","1D6C0"],base:n.GREEKCAP,subst:{},capital:!0,category:"Lu",font:t.BOLD},{interval:["1D6C1","1D6E1"],base:n.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:t.BOLD},{interval:["1D6E2","1D6FA"],base:n.GREEKCAP,subst:{},capital:!0,category:"Lu",font:t.ITALIC},{interval:["1D6FB","1D71B"],base:n.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:t.ITALIC},{interval:["1D71C","1D734"],base:n.GREEKCAP,subst:{},capital:!0,category:"Lu",font:t.BOLDITALIC},{interval:["1D735","1D755"],base:n.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:t.BOLDITALIC},{interval:["1D756","1D76E"],base:n.GREEKCAP,subst:{},capital:!0,category:"Lu",font:t.SANSSERIFBOLD},{interval:["1D76F","1D78F"],base:n.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:t.SANSSERIFBOLD},{interval:["1D790","1D7A8"],base:n.GREEKCAP,subst:{},capital:!0,category:"Lu",font:t.SANSSERIFBOLDITALIC},{interval:["1D7A9","1D7C9"],base:n.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:t.SANSSERIFBOLDITALIC},{interval:["0030","0039"],base:n.DIGIT,subst:{},offset:0,category:"Nd",font:t.NORMAL},{interval:["2070","2079"],base:n.DIGIT,subst:{2071:"00B9",2072:"00B2",2073:"00B3"},offset:0,category:"No",font:r.SUPER},{interval:["2080","2089"],base:n.DIGIT,subst:{},offset:0,category:"No",font:r.SUB},{interval:["245F","2473"],base:n.DIGIT,subst:{"245F":"24EA"},offset:0,category:"No",font:r.CIRCLED},{interval:["3251","325F"],base:n.DIGIT,subst:{},offset:21,category:"No",font:r.CIRCLED},{interval:["32B1","32BF"],base:n.DIGIT,subst:{},offset:36,category:"No",font:r.CIRCLED},{interval:["2474","2487"],base:n.DIGIT,subst:{},offset:1,category:"No",font:r.PARENTHESIZED},{interval:["2487","249B"],base:n.DIGIT,subst:{2487:"1F100"},offset:0,category:"No",font:r.PERIOD},{interval:["2775","277F"],base:n.DIGIT,subst:{2775:"24FF"},offset:0,category:"No",font:r.NEGATIVECIRCLED},{interval:["24EB","24F4"],base:n.DIGIT,subst:{},offset:11,category:"No",font:r.NEGATIVECIRCLED},{interval:["24F5","24FE"],base:n.DIGIT,subst:{},offset:1,category:"No",font:r.DOUBLECIRCLED},{interval:["277F","2789"],base:n.DIGIT,subst:{"277F":"1F10B"},offset:0,category:"No",font:r.CIRCLEDSANSSERIF},{interval:["2789","2793"],base:n.DIGIT,subst:{2789:"1F10C"},offset:0,category:"No",font:r.NEGATIVECIRCLEDSANSSERIF},{interval:["FF10","FF19"],base:n.DIGIT,subst:{},offset:0,category:"Nd",font:t.FULLWIDTH},{interval:["1D7CE","1D7D7"],base:n.DIGIT,subst:{},offset:0,category:"Nd",font:t.BOLD},{interval:["1D7D8","1D7E1"],base:n.DIGIT,subst:{},offset:0,category:"Nd",font:t.DOUBLESTRUCK},{interval:["1D7E2","1D7EB"],base:n.DIGIT,subst:{},offset:0,category:"Nd",font:t.SANSSERIF},{interval:["1D7EC","1D7F5"],base:n.DIGIT,subst:{},offset:0,category:"Nd",font:t.SANSSERIFBOLD},{interval:["1D7F6","1D7FF"],base:n.DIGIT,subst:{},offset:0,category:"Nd",font:t.MONOSPACE},{interval:["1F101","1F10A"],base:n.DIGIT,subst:{},offset:0,category:"No",font:r.COMMA},{interval:["24B6","24CF"],base:n.LATINCAP,subst:{},capital:!0,category:"So",font:r.CIRCLED},{interval:["24D0","24E9"],base:n.LATINSMALL,subst:{},capital:!1,category:"So",font:r.CIRCLED},{interval:["1F110","1F129"],base:n.LATINCAP,subst:{},capital:!0,category:"So",font:r.PARENTHESIZED},{interval:["249C","24B5"],base:n.LATINSMALL,subst:{},capital:!1,category:"So",font:r.PARENTHESIZED},{interval:["1F130","1F149"],base:n.LATINCAP,subst:{},capital:!0,category:"So",font:r.SQUARED},{interval:["1F170","1F189"],base:n.LATINCAP,subst:{},capital:!0,category:"So",font:r.NEGATIVESQUARED},{interval:["1F150","1F169"],base:n.LATINCAP,subst:{},capital:!0,category:"So",font:r.NEGATIVECIRCLED}];e.INTERVALS=new Map;function u(p,d){return p+d.split("-").map(h=>h[0].toUpperCase()+h.slice(1)).join("")}for(const p of l){const d=u(p.base,p.font),h=a(p.interval,p.subst);let f=e.INTERVALS.get(d);if(f){f.unicode=f.unicode.concat(h);continue}f=p,f.unicode=h,e.INTERVALS.set(d,f)}})(Gc),ee(Gc),Object.defineProperty(Se,"__esModule",{value:!0}),Se.SemanticSecondary=Se.SemanticFont=Se.SemanticRole=Se.SemanticType=void 0;const s0=Gc;var c0;(function(e){e.PUNCTUATION="punctuation",e.FENCE="fence",e.NUMBER="number",e.IDENTIFIER="identifier",e.TEXT="text",e.OPERATOR="operator",e.RELATION="relation",e.LARGEOP="largeop",e.FUNCTION="function",e.ACCENT="accent",e.FENCED="fenced",e.FRACTION="fraction",e.PUNCTUATED="punctuated",e.RELSEQ="relseq",e.MULTIREL="multirel",e.INFIXOP="infixop",e.PREFIXOP="prefixop",e.POSTFIXOP="postfixop",e.APPL="appl",e.INTEGRAL="integral",e.BIGOP="bigop",e.SQRT="sqrt",e.ROOT="root",e.LIMUPPER="limupper",e.LIMLOWER="limlower",e.LIMBOTH="limboth",e.SUBSCRIPT="subscript",e.SUPERSCRIPT="superscript",e.UNDERSCORE="underscore",e.OVERSCORE="overscore",e.TENSOR="tensor",e.TABLE="table",e.MULTILINE="multiline",e.MATRIX="matrix",e.VECTOR="vector",e.CASES="cases",e.ROW="row",e.LINE="line",e.CELL="cell",e.ENCLOSE="enclose",e.INFERENCE="inference",e.RULELABEL="rulelabel",e.CONCLUSION="conclusion",e.PREMISES="premises",e.UNKNOWN="unknown",e.EMPTY="empty"})(c0||(c0={})),Se.SemanticType=Object.assign({},c0);var l0;(function(e){e.COMMA="comma",e.SEMICOLON="semicolon",e.ELLIPSIS="ellipsis",e.FULLSTOP="fullstop",e.QUESTION="question",e.EXCLAMATION="exclamation",e.QUOTES="quotes",e.DASH="dash",e.TILDE="tilde",e.PRIME="prime",e.DEGREE="degree",e.VBAR="vbar",e.COLON="colon",e.OPENFENCE="openfence",e.CLOSEFENCE="closefence",e.APPLICATION="application",e.DUMMY="dummy",e.UNIT="unit",e.LABEL="label",e.OPEN="open",e.CLOSE="close",e.TOP="top",e.BOTTOM="bottom",e.NEUTRAL="neutral",e.METRIC="metric",e.LATINLETTER="latinletter",e.GREEKLETTER="greekletter",e.OTHERLETTER="otherletter",e.NUMBERSET="numbersetletter",e.INTEGER="integer",e.FLOAT="float",e.OTHERNUMBER="othernumber",e.INFTY="infty",e.MIXED="mixed",e.MULTIACCENT="multiaccent",e.OVERACCENT="overaccent",e.UNDERACCENT="underaccent",e.UNDEROVER="underover",e.SUBSUP="subsup",e.LEFTSUB="leftsub",e.LEFTSUPER="leftsuper",e.RIGHTSUB="rightsub",e.RIGHTSUPER="rightsuper",e.LEFTRIGHT="leftright",e.ABOVEBELOW="abovebelow",e.SETEMPTY="set empty",e.SETEXT="set extended",e.SETSINGLE="set singleton",e.SETCOLLECT="set collection",e.STRING="string",e.SPACE="space",e.ANNOTATION="annotation",e.TEXT="text",e.SEQUENCE="sequence",e.ENDPUNCT="endpunct",e.STARTPUNCT="startpunct",e.NEGATIVE="negative",e.POSITIVE="positive",e.NEGATION="negation",e.MULTIOP="multiop",e.PREFIXOP="prefix operator",e.POSTFIXOP="postfix operator",e.LIMFUNC="limit function",e.INFIXFUNC="infix function",e.PREFIXFUNC="prefix function",e.POSTFIXFUNC="postfix function",e.SIMPLEFUNC="simple function",e.COMPFUNC="composed function",e.SUM="sum",e.INTEGRAL="integral",e.GEOMETRY="geometry",e.BOX="box",e.BLOCK="block",e.ADDITION="addition",e.MULTIPLICATION="multiplication",e.SUBTRACTION="subtraction",e.IMPLICIT="implicit",e.DIVISION="division",e.VULGAR="vulgar",e.EQUALITY="equality",e.INEQUALITY="inequality",e.ARROW="arrow",e.ELEMENT="element",e.NONELEMENT="nonelement",e.REELEMENT="reelement",e.RENONELEMENT="renonelement",e.SET="set",e.DETERMINANT="determinant",e.ROWVECTOR="rowvector",e.BINOMIAL="binomial",e.SQUAREMATRIX="squarematrix",e.CYCLE="cycle",e.MULTILINE="multiline",e.MATRIX="matrix",e.VECTOR="vector",e.CASES="cases",e.TABLE="table",e.CAYLEY="cayley",e.PROOF="proof",e.LEFT="left",e.RIGHT="right",e.UP="up",e.DOWN="down",e.FINAL="final",e.SINGLE="single",e.HYP="hyp",e.AXIOM="axiom",e.LOGIC="logic",e.UNKNOWN="unknown",e.MGLYPH="mglyph"})(l0||(l0={})),Se.SemanticRole=Object.assign({},l0);var u0;(function(e){e.CALIGRAPHIC="caligraphic",e.CALIGRAPHICBOLD="caligraphic-bold",e.OLDSTYLE="oldstyle",e.OLDSTYLEBOLD="oldstyle-bold",e.UNKNOWN="unknown"})(u0||(u0={})),Se.SemanticFont=Object.assign(Object.assign(Object.assign({},s0.Font),u0),s0.Embellish);var p0;(function(e){e.ALLLETTERS="allLetters",e.D="d",e.BAR="bar",e.TILDE="tilde"})(p0||(p0={})),Se.SemanticSecondary=Object.assign(Object.assign({},s0.Base),p0),(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Combiners=void 0,e.pluralCase=r,e.identityTransformer=n,e.siCombiner=o,e.convertVulgarFraction=i,e.vulgarFractionSmall=a;const t=Se;function r(s,c){return s.toString()}function n(s){return s.toString()}function o(s,c){return s+c.toLowerCase()}e.Combiners={},e.Combiners.identityCombiner=function(s,c,l){return s+c+l},e.Combiners.prefixCombiner=function(s,c,l){return s=l?l+" "+s:s,c?c+" "+s:s},e.Combiners.postfixCombiner=function(s,c,l){return s=l?l+" "+s:s,c?s+" "+c:s},e.Combiners.romanceCombiner=function(s,c,l){return s=l?s+" "+l:s,c?s+" "+c:s};function i(s,c=""){if(!s.childNodes||!s.childNodes[0]||!s.childNodes[0].childNodes||s.childNodes[0].childNodes.length<2||s.childNodes[0].childNodes[0].tagName!==t.SemanticType.NUMBER||s.childNodes[0].childNodes[0].getAttribute("role")!==t.SemanticRole.INTEGER||s.childNodes[0].childNodes[1].tagName!==t.SemanticType.NUMBER||s.childNodes[0].childNodes[1].getAttribute("role")!==t.SemanticRole.INTEGER)return{convertible:!1,content:s.textContent};const l=s.childNodes[0].childNodes[1].textContent,u=s.childNodes[0].childNodes[0].textContent,p=Number(l),d=Number(u);return isNaN(p)||isNaN(d)?{convertible:!1,content:`${u} ${c} ${l}`}:{convertible:!0,enumerator:d,denominator:p}}function a(s,c,l){const u=i(s);if(u.convertible){const p=u.enumerator,d=u.denominator;return p>0&&p<c&&d>0&&d<l}return!1}})(Lt),ee(Lt),Object.defineProperty(At,"__esModule",{value:!0}),At.MESSAGES=j_,At.NUMBERS=F_,At.ALPHABETS=U_,At.FUNCTIONS=H_,At.SUBISO=q_;const Sr=Lt;function j_(){return{MS:{},MSroots:{},font:{},embellish:{},role:{},enclose:{},navigate:{},regexp:{},unitTimes:""}}function F_(e={}){return Object.assign({zero:"zero",ones:[],tens:[],large:[],special:{},wordOrdinal:Sr.identityTransformer,numericOrdinal:Sr.identityTransformer,numberToWords:Sr.identityTransformer,numberToOrdinal:Sr.pluralCase,vulgarSep:" ",numSep:" "},e)}function U_(){return{latinSmall:[],latinCap:[],greekSmall:[],greekCap:[],capPrefix:{default:""},smallPrefix:{default:""},digitPrefix:{default:""},languagePrefix:{},digitTrans:{default:Sr.identityTransformer,mathspeak:Sr.identityTransformer,clearspeak:Sr.identityTransformer},letterTrans:{default:Sr.identityTransformer},combiner:(e,t,r)=>e}}function H_(){return{fracNestDepth:e=>Sr.vulgarFractionSmall(e,10,100),radicalNestDepth:e=>"",combineRootIndex:function(e,t){return e},combineNestedFraction:Sr.Combiners.identityCombiner,combineNestedRadical:Sr.Combiners.identityCombiner,fontRegexp:function(e){return new RegExp("^"+e.split(/ |-/).join("( |-)")+"( |-)")},si:Sr.siCombiner,plural:Sr.identityTransformer}}function q_(){return{default:"",current:"",all:[]}}Object.defineProperty(Re,"__esModule",{value:!0}),Re.LOCALE=void 0,Re.createLocale=AS;const Xc=At;Re.LOCALE=AS();function AS(){return{FUNCTIONS:(0,Xc.FUNCTIONS)(),MESSAGES:(0,Xc.MESSAGES)(),ALPHABETS:(0,Xc.ALPHABETS)(),NUMBERS:(0,Xc.NUMBERS)(),COMBINERS:{},CORRECTIONS:{},SUBISO:(0,Xc.SUBISO)()}}Object.defineProperty(mt,"__esModule",{value:!0}),mt.nestingToString=X_,mt.combinePostfixIndex=V_,mt.localFont=W_,mt.localRole=$_,mt.localEnclose=z_,mt.localeFontCombiner=K_;const mn=Re,G_=Lt;function X_(e){switch(e){case 1:return mn.LOCALE.MESSAGES.MS.ONCE||"";case 2:return mn.LOCALE.MESSAGES.MS.TWICE;default:return e.toString()}}function V_(e,t){return e===mn.LOCALE.MESSAGES.MS.ROOTINDEX||e===mn.LOCALE.MESSAGES.MS.INDEX?e:e+" "+t}function W_(e){return d0(mn.LOCALE.MESSAGES.font[e],e)}function $_(e){return d0(mn.LOCALE.MESSAGES.role[e],e)}function z_(e){return d0(mn.LOCALE.MESSAGES.enclose[e],e)}function d0(e,t){return e===void 0?t:typeof e=="string"?e:e[0]}function K_(e){return typeof e=="string"?{font:e,combiner:mn.LOCALE.ALPHABETS.combiner}:{font:e[0],combiner:mn.LOCALE.COMBINERS[e[1]]||G_.Combiners[e[1]]||mn.LOCALE.ALPHABETS.combiner}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Grammar=e.ATTRIBUTE=void 0,e.correctFont=a;const t=he,r=Oe,n=mt,o=Re;e.ATTRIBUTE="grammar";class i{static getInstance(){return i.instance=i.instance||new i,i.instance}static parseInput(d){const h={},f=d.split(":");for(const m of f){const v=m.split("="),g=v[0].trim();if(v[1]){h[g]=v[1].trim();continue}g.match(/^!/)?h[g.slice(1)]=!1:h[g]=!0}return h}static parseState(d){const h={},f=d.split(" ");for(const m of f){const v=m.split(":"),g=v[0];h[g]=v[1]||!0}return h}static translateString(d){if(d.match(/:unit$/))return i.translateUnit(d);const h=r.Engine.getInstance();let f=h.evaluator(d,h.dynamicCstr);return f=f===null?d:f,i.getInstance().getParameter("plural")&&(f=o.LOCALE.FUNCTIONS.plural(f)),f}static translateUnit(d){d=i.prepareUnit(d);const h=r.Engine.getInstance(),f=i.getInstance().getParameter("plural"),m=h.strict,v=`${h.locale}.${h.modality}.default`;h.strict=!0;let g,b;return f&&(g=h.defaultParser.parse(v+".plural"),b=h.evaluator(d,g)),b?(h.strict=m,b):(g=h.defaultParser.parse(v+".default"),b=h.evaluator(d,g),h.strict=m,b?(f&&(b=o.LOCALE.FUNCTIONS.plural(b)),b):i.cleanUnit(d))}static prepareUnit(d){const h=d.match(/:unit$/);return h?d.slice(0,h.index).replace(/\s+/g," ")+d.slice(h.index):d}static cleanUnit(d){return d.match(/:unit$/)?d.replace(/:unit$/,""):d}clear(){this.parameters_={},this.stateStack_=[]}setParameter(d,h){const f=this.parameters_[d];return h?this.parameters_[d]=h:delete this.parameters_[d],f}getParameter(d){return this.parameters_[d]}setCorrection(d,h){this.corrections_[d]=h}setPreprocessor(d,h){this.preprocessors_[d]=h}getCorrection(d){return this.corrections_[d]}getState(){const d=[];for(const[h,f]of Object.entries(this.parameters_))d.push(typeof f=="string"?h+":"+f:h);return d.join(" ")}processSingles(){const d={};for(const h of this.singles)d[h]=!1;this.singles=[],this.pushState(d)}pushState(d){for(let[h,f]of Object.entries(d))h.match(/^\?/)&&(delete d[h],h=h.slice(1),this.singles.push(h)),d[h]=this.setParameter(h,f);this.stateStack_.push(d)}popState(){const d=this.stateStack_.pop();for(const[h,f]of Object.entries(d))this.setParameter(h,f)}setAttribute(d){if(d&&d.nodeType===t.NodeType.ELEMENT_NODE){const h=this.getState();h&&d.setAttribute(e.ATTRIBUTE,h)}}preprocess(d){return this.runProcessors(d,this.preprocessors_)}correct(d){return this.runProcessors(d,this.corrections_)}apply(d,h){return this.currentFlags=h||{},d=this.currentFlags.adjust||this.currentFlags.preprocess?i.getInstance().preprocess(d):d,(this.parameters_.translate||this.currentFlags.translate)&&(d=i.translateString(d)),d=this.currentFlags.adjust||this.currentFlags.correct?i.getInstance().correct(d):d,this.currentFlags={},d}runProcessors(d,h){for(const[f,m]of Object.entries(this.parameters_)){const v=h[f];v&&(d=m===!0?v(d):v(d,m))}return d}constructor(){this.currentFlags={},this.parameters_={},this.corrections_={},this.preprocessors_={},this.stateStack_=[],this.singles=[]}}e.Grammar=i;function a(p,d){if(!d||!p)return p;const h=o.LOCALE.FUNCTIONS.fontRegexp(n.localFont(d));return p.replace(h,"")}function s(p){let d=o.LOCALE.ALPHABETS.capPrefix[r.Engine.getInstance().domain];return typeof d>"u"&&(d=o.LOCALE.ALPHABETS.capPrefix.default),a(p,d)}function c(p,d){return p+":"+d}function l(p){return p.match(/\d+/)?o.LOCALE.NUMBERS.numberToWords(parseInt(p,10)):p}function u(p){return p.match(new RegExp("^["+o.LOCALE.MESSAGES.regexp.TEXT+"]+$"))&&(i.getInstance().currentFlags.translate=!1),p}i.getInstance().setCorrection("localFont",n.localFont),i.getInstance().setCorrection("localRole",n.localRole),i.getInstance().setCorrection("localEnclose",n.localEnclose),i.getInstance().setCorrection("ignoreFont",a),i.getInstance().setPreprocessor("annotation",c),i.getInstance().setPreprocessor("noTranslateText",u),i.getInstance().setCorrection("ignoreCaps",s),i.getInstance().setPreprocessor("numbers2alpha",l)})(Ot),ee(Ot);var h0={},f0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=At;function r(s){let c=s%1e3,l="",u=e.NUMBERS.ones[Math.floor(c/100)];if(l+=u?u+e.NUMBERS.numSep+"honderd":"",c=c%100,c)if(l+=l?e.NUMBERS.numSep:"",u=e.NUMBERS.ones[c],u)l+=u;else{const p=e.NUMBERS.tens[Math.floor(c/10)];u=e.NUMBERS.ones[c%10],l+=u?u+"-en-"+p:p}return l}function n(s){if(s===0)return e.NUMBERS.zero;if(s>=Math.pow(10,36))return s.toString();let c=0,l="";for(;s>0;){if(s%1e3){const u=r(s%1e3);if(c){const p=e.NUMBERS.large[c];l=u+e.NUMBERS.numSep+p+(l?e.NUMBERS.numSep+l:"")}else l=u+(l?e.NUMBERS.numSep+l:"")}s=Math.floor(s/1e3),c++}return l}function o(s,c){return s===1?"enkel":s===2?c?"helftes":"helfte":s===4?c?"kwarte":"kwart":i(s)+(c?"s":"")}function i(s){return s===1?"eerste":s===3?"derde":s===8?"agste":s===9?"negende":n(s)+(s<19?"de":"ste")}function a(s){return s.toString()+"."}e.NUMBERS=(0,t.NUMBERS)({wordOrdinal:i,numericOrdinal:a,numberToWords:n,numberToOrdinal:o})})(f0),ee(f0),Object.defineProperty(h0,"__esModule",{value:!0}),h0.af=tw;const J_=Ot,Y_=mt,Q_=Re,TS=f0,Z_=Lt,ew=function(e,t,r){return e=r?r+" "+e:e,t?e+" "+t:e};let m0=null;function tw(){return m0||(m0=rw()),m0}function rw(){const e=(0,Q_.createLocale)();return e.NUMBERS=TS.NUMBERS,e.COMBINERS.germanPostfix=ew,e.FUNCTIONS.radicalNestDepth=Y_.nestingToString,e.FUNCTIONS.plural=t=>/.*s$/.test(t)?t:t+"s",e.FUNCTIONS.fontRegexp=function(t){return new RegExp("((^"+t+" )|( "+t+"$))")},e.ALPHABETS.combiner=Z_.Combiners.prefixCombiner,e.ALPHABETS.digitTrans.default=TS.NUMBERS.numberToWords,e.CORRECTIONS.article=t=>J_.Grammar.getInstance().getParameter("noArticle")?"":t,e}var y0={},g0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=Ot,r=At;function n(c){const l=c%100;if(l<20)return e.NUMBERS.ones[l];const u=Math.floor(l/10),p=e.NUMBERS.tens[u],d=e.NUMBERS.ones[l%10];return p&&d?p+(u===2?"-i-":"-")+d:p||d}function o(c){const l=c%1e3,u=Math.floor(l/100),p=u?u===1?"cent":e.NUMBERS.ones[u]+"-cents":"",d=n(l%100);return p&&d?p+e.NUMBERS.numSep+d:p||d}function i(c){if(c===0)return e.NUMBERS.zero;if(c>=Math.pow(10,36))return c.toString();let l=0,u="";for(;c>0;){const p=c%(l>1?1e6:1e3);if(p){let d=e.NUMBERS.large[l];if(!l)u=o(p);else if(l===1)u=(p===1?"":o(p)+e.NUMBERS.numSep)+d+(u?e.NUMBERS.numSep+u:"");else{const h=i(p);d=p===1?d:d.replace(/\u00f3$/,"ons"),u=h+e.NUMBERS.numSep+d+(u?e.NUMBERS.numSep+u:"")}}c=Math.floor(c/(l>1?1e6:1e3)),l++}return u}function a(c,l){if(c>1999)return s(c);if(c<=10)return e.NUMBERS.special.onesOrdinals[c-1];const u=i(c);return u.match(/mil$/)?u.replace(/mil$/,"mil·lèsima"):u.match(/u$/)?u.replace(/u$/,"vena"):u.match(/a$/)?u.replace(/a$/,"ena"):u+(u.match(/e$/)?"na":"ena")}function s(c){const l=t.Grammar.getInstance().getParameter("gender");return c.toString()+(l==="f"?"a":"n")}e.NUMBERS=(0,r.NUMBERS)({numericOrdinal:s,numberToWords:i,numberToOrdinal:a})})(g0),ee(g0),Object.defineProperty(y0,"__esModule",{value:!0}),y0.ca=cw;const nw=Re,ow=mt,iw=g0,aw=Lt,sw=function(e,t,r){return e="sans serif "+(r?r+" "+e:e),t?e+" "+t:e};let b0=null;function cw(){return b0||(b0=lw()),b0}function lw(){const e=(0,nw.createLocale)();return e.NUMBERS=iw.NUMBERS,e.COMBINERS.sansserif=sw,e.FUNCTIONS.fracNestDepth=t=>!1,e.FUNCTIONS.combineRootIndex=ow.combinePostfixIndex,e.FUNCTIONS.combineNestedRadical=(t,r,n)=>t+n,e.FUNCTIONS.fontRegexp=t=>RegExp("^"+t+" "),e.FUNCTIONS.plural=t=>/.*os$/.test(t)?t+"sos":/.*s$/.test(t)?t+"os":/.*ga$/.test(t)?t.slice(0,-2)+"gues":/.*ça$/.test(t)?t.slice(0,-2)+"ces":/.*ca$/.test(t)?t.slice(0,-2)+"ques":/.*ja$/.test(t)?t.slice(0,-2)+"ges":/.*qua$/.test(t)?t.slice(0,-3)+"qües":/.*a$/.test(t)?t.slice(0,-1)+"es":/.*(e|i)$/.test(t)?t+"ns":/.*í$/.test(t)?t.slice(0,-1)+"ins":t+"s",e.FUNCTIONS.si=(t,r)=>(r.match(/^metre/)&&(t=t.replace(/a$/,"à").replace(/o$/,"ò").replace(/i$/,"í")),t+r),e.ALPHABETS.combiner=aw.Combiners.prefixCombiner,e}var v0={},S0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=At;function r(c,l=!1){return c===e.NUMBERS.ones[1]?l?"et":"en":c}function n(c,l=!1){let u=c%1e3,p="",d=e.NUMBERS.ones[Math.floor(u/100)];if(p+=d?r(d,!0)+" hundrede":"",u=u%100,u)if(p+=p?" og ":"",d=l?e.NUMBERS.special.smallOrdinals[u]:e.NUMBERS.ones[u],d)p+=d;else{const h=l?e.NUMBERS.special.tensOrdinals[Math.floor(u/10)]:e.NUMBERS.tens[Math.floor(u/10)];d=e.NUMBERS.ones[u%10],p+=d?r(d)+"og"+h:h}return p}function o(c,l=!1){if(c===0)return e.NUMBERS.zero;if(c>=Math.pow(10,36))return c.toString();let u=0,p="";for(;c>0;){const d=c%1e3;if(d){const h=n(d,l&&!u);if(u){const f=e.NUMBERS.large[u],m=d>1?"er":"";p=r(h,u<=1)+" "+f+m+(p?" og ":"")+p}else p=r(h)+p}c=Math.floor(c/1e3),u++}return p}function i(c,l){return c===1?l?"hel":"hele":c===2?l?"halv":"halve":a(c)+(l?"dele":"del")}function a(c){if(c%100)return o(c,!0);const l=o(c);return l.match(/e$/)?l:l+"e"}function s(c){return c.toString()+"."}e.NUMBERS=(0,t.NUMBERS)({wordOrdinal:a,numericOrdinal:s,numberToWords:o,numberToOrdinal:i})})(S0),ee(S0),Object.defineProperty(v0,"__esModule",{value:!0}),v0.da=hw;const uw=Re,pw=mt,CS=S0,dw=Lt;let E0=null;function hw(){return E0||(E0=fw()),E0}function fw(){const e=(0,uw.createLocale)();return e.NUMBERS=CS.NUMBERS,e.FUNCTIONS.radicalNestDepth=pw.nestingToString,e.FUNCTIONS.fontRegexp=t=>t===e.ALPHABETS.capPrefix.default?RegExp("^"+t+" "):RegExp(" "+t+"$"),e.ALPHABETS.combiner=dw.Combiners.postfixCombiner,e.ALPHABETS.digitTrans.default=CS.NUMBERS.numberToWords,e}var x0={},M0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=At;function r(c,l=!1){return c===e.NUMBERS.ones[1]?l?"eine":"ein":c}function n(c){let l=c%1e3,u="",p=e.NUMBERS.ones[Math.floor(l/100)];if(u+=p?r(p)+"hundert":"",l=l%100,l)if(u+=u?e.NUMBERS.numSep:"",p=e.NUMBERS.ones[l],p)u+=p;else{const d=e.NUMBERS.tens[Math.floor(l/10)];p=e.NUMBERS.ones[l%10],u+=p?r(p)+"und"+d:d}return u}function o(c){if(c===0)return e.NUMBERS.zero;if(c>=Math.pow(10,36))return c.toString();let l=0,u="";for(;c>0;){const p=c%1e3;if(p){const d=n(c%1e3);if(l){const h=e.NUMBERS.large[l],f=l>1&&p>1?h.match(/e$/)?"n":"en":"";u=r(d,l>1)+h+f+u}else u=r(d,l>1)+u}c=Math.floor(c/1e3),l++}return u.replace(/ein$/,"eins")}function i(c,l){return c===1?"eintel":c===2?l?"halbe":"halb":a(c)+"l"}function a(c){return c===1?"erste":c===3?"dritte":c===7?"siebte":c===8?"achte":o(c)+(c<19?"te":"ste")}function s(c){return c.toString()+"."}e.NUMBERS=(0,t.NUMBERS)({wordOrdinal:a,numericOrdinal:s,numberToWords:o,numberToOrdinal:i})})(M0),ee(M0),Object.defineProperty(x0,"__esModule",{value:!0}),x0.de=Sw;const O0=Ot,mw=mt,yw=Re,gw=M0,bw=function(e,t,r){return r==="s"&&(t=t.split(" ").map(function(n){return n.replace(/s$/,"")}).join(" "),r=""),e=r?r+" "+e:e,t?t+" "+e:e},vw=function(e,t,r){return e=!r||r==="s"?e:r+" "+e,t?e+" "+t:e};let A0=null;function Sw(){return A0||(A0=Ew()),A0}function Ew(){const e=(0,yw.createLocale)();return e.NUMBERS=gw.NUMBERS,e.COMBINERS.germanPostfix=vw,e.ALPHABETS.combiner=bw,e.FUNCTIONS.radicalNestDepth=t=>t>1?e.NUMBERS.numberToWords(t)+"fach":"",e.FUNCTIONS.combineRootIndex=(t,r)=>{const n=r?r+"wurzel":"";return t.replace("Wurzel",n)},e.FUNCTIONS.combineNestedRadical=(t,r,n)=>{t=n.match(/exponent$/)?t+"r":t;const o=(r?r+" ":"")+t;return n.match(/ /)?n.replace(/ /," "+o+" "):o+" "+n},e.FUNCTIONS.fontRegexp=function(t){return t=t.split(" ").map(function(r){return r.replace(/s$/,"(|s)")}).join(" "),new RegExp("((^"+t+" )|( "+t+"$))")},e.CORRECTIONS.correctOne=t=>t.replace(/^eins$/,"ein"),e.CORRECTIONS.localFontNumber=t=>(0,mw.localFont)(t).split(" ").map(function(r){return r.replace(/s$/,"")}).join(" "),e.CORRECTIONS.lowercase=t=>t.toLowerCase(),e.CORRECTIONS.article=t=>{const r=O0.Grammar.getInstance().getParameter("case"),n=O0.Grammar.getInstance().getParameter("plural");return r==="dative"?{der:"dem",die:n?"den":"der",das:"dem"}[t]:t},e.CORRECTIONS.masculine=t=>O0.Grammar.getInstance().getParameter("case")==="dative"?t+"n":t,e}var T0={},C0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=At;function r(s){let c=s%1e3,l="";return l+=e.NUMBERS.ones[Math.floor(c/100)]?e.NUMBERS.ones[Math.floor(c/100)]+e.NUMBERS.numSep+"hundred":"",c=c%100,c&&(l+=l?e.NUMBERS.numSep:"",l+=e.NUMBERS.ones[c]||e.NUMBERS.tens[Math.floor(c/10)]+(c%10?e.NUMBERS.numSep+e.NUMBERS.ones[c%10]:"")),l}function n(s){if(s===0)return e.NUMBERS.zero;if(s>=Math.pow(10,36))return s.toString();let c=0,l="";for(;s>0;)s%1e3&&(l=r(s%1e3)+(c?"-"+e.NUMBERS.large[c]+"-":"")+l),s=Math.floor(s/1e3),c++;return l.replace(/-$/,"")}function o(s,c){if(s===1)return c?"oneths":"oneth";if(s===2)return c?"halves":"half";const l=i(s);return c?l+"s":l}function i(s){let c=n(s);return c.match(/one$/)?c=c.slice(0,-3)+"first":c.match(/two$/)?c=c.slice(0,-3)+"second":c.match(/three$/)?c=c.slice(0,-5)+"third":c.match(/five$/)?c=c.slice(0,-4)+"fifth":c.match(/eight$/)?c=c.slice(0,-5)+"eighth":c.match(/nine$/)?c=c.slice(0,-4)+"ninth":c.match(/twelve$/)?c=c.slice(0,-6)+"twelfth":c.match(/ty$/)?c=c.slice(0,-2)+"tieth":c=c+"th",c}function a(s){const c=s%100,l=s.toString();if(c>10&&c<20)return l+"th";switch(s%10){case 1:return l+"st";case 2:return l+"nd";case 3:return l+"rd";default:return l+"th"}}e.NUMBERS=(0,t.NUMBERS)({wordOrdinal:i,numericOrdinal:a,numberToWords:n,numberToOrdinal:o})})(C0),ee(C0),Object.defineProperty(T0,"__esModule",{value:!0}),T0.en=Tw;const xw=Ot,Mw=Re,Ow=mt,NS=C0,Aw=Lt;let N0=null;function Tw(){return N0||(N0=Cw()),N0}function Cw(){const e=(0,Mw.createLocale)();return e.NUMBERS=NS.NUMBERS,e.FUNCTIONS.radicalNestDepth=Ow.nestingToString,e.FUNCTIONS.plural=t=>/.*s$/.test(t)?t:t+"s",e.ALPHABETS.combiner=Aw.Combiners.prefixCombiner,e.ALPHABETS.digitTrans.default=NS.NUMBERS.numberToWords,e.CORRECTIONS.article=t=>xw.Grammar.getInstance().getParameter("noArticle")?"":t,e}var _0={},w0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=Ot,r=At;function n(c){const l=c%100;if(l<30)return e.NUMBERS.ones[l];const u=e.NUMBERS.tens[Math.floor(l/10)],p=e.NUMBERS.ones[l%10];return u&&p?u+" y "+p:u||p}function o(c){const l=c%1e3,u=Math.floor(l/100),p=e.NUMBERS.special.hundreds[u],d=n(l%100);return u===1?d?p+"to "+d:p:p&&d?p+" "+d:p||d}function i(c){if(c===0)return e.NUMBERS.zero;if(c>=Math.pow(10,36))return c.toString();let l=0,u="";for(;c>0;){const p=c%1e3;if(p){let d=e.NUMBERS.large[l];const h=o(p);l?p===1?(d=d.match("/^mil( |$)/")?d:"un "+d,u=d+(u?" "+u:"")):(d=d.replace(/\u00f3n$/,"ones"),u=o(p)+" "+d+(u?" "+u:"")):u=h}c=Math.floor(c/1e3),l++}return u}function a(c,l){if(c>1999)return c.toString()+"a";if(c<=12)return e.NUMBERS.special.onesOrdinals[c-1];const u=[];if(c>=1e3&&(c=c-1e3,u.push("milésima")),!c)return u.join(" ");let p=0;return p=Math.floor(c/100),p>0&&(u.push(e.NUMBERS.special.hundredsOrdinals[p-1]),c=c%100),c<=12?u.push(e.NUMBERS.special.onesOrdinals[c-1]):(p=Math.floor(c/10),p>0&&(u.push(e.NUMBERS.special.tensOrdinals[p-1]),c=c%10),c>0&&u.push(e.NUMBERS.special.onesOrdinals[c-1])),u.join(" ")}function s(c){const l=t.Grammar.getInstance().getParameter("gender");return c.toString()+(l==="f"?"a":"o")}e.NUMBERS=(0,r.NUMBERS)({numericOrdinal:s,numberToWords:i,numberToOrdinal:a})})(w0),ee(w0),Object.defineProperty(_0,"__esModule",{value:!0}),_0.es=Iw;const Nw=Re,_w=mt,ww=w0,Rw=Lt,Lw=function(e,t,r){return e="sans serif "+(r?r+" "+e:e),t?e+" "+t:e};let R0=null;function Iw(){return R0||(R0=Pw()),R0}function Pw(){const e=(0,Nw.createLocale)();return e.NUMBERS=ww.NUMBERS,e.COMBINERS.sansserif=Lw,e.FUNCTIONS.fracNestDepth=t=>!1,e.FUNCTIONS.combineRootIndex=_w.combinePostfixIndex,e.FUNCTIONS.combineNestedRadical=(t,r,n)=>t+n,e.FUNCTIONS.fontRegexp=t=>RegExp("^"+t+" "),e.FUNCTIONS.plural=t=>/.*(a|e|i|o|u)$/.test(t)?t+"s":/.*z$/.test(t)?t.slice(0,-1)+"ces":/.*c$/.test(t)?t.slice(0,-1)+"ques":/.*g$/.test(t)?t+"ues":/.*\u00f3n$/.test(t)?t.slice(0,-2)+"ones":t+"es",e.FUNCTIONS.si=(t,r)=>(r.match(/^metro/)&&(t=t.replace(/a$/,"á").replace(/o$/,"ó").replace(/i$/,"í")),t+r),e.ALPHABETS.combiner=Rw.Combiners.prefixCombiner,e}var L0={};Object.defineProperty(L0,"__esModule",{value:!0}),L0.euro=Bw;const kw=Re;let I0=null;function Bw(){return I0||(I0=(0,kw.createLocale)()),I0}var P0={},k0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=Oe,r=Ot,n=At;function o(u){let p=u%1e3,d="";if(d+=e.NUMBERS.ones[Math.floor(p/100)]?e.NUMBERS.ones[Math.floor(p/100)]+"-cent":"",p=p%100,p){d+=d?"-":"";let f=e.NUMBERS.ones[p];if(f)d+=f;else{const m=e.NUMBERS.tens[Math.floor(p/10)];m.match(/-dix$/)?(f=e.NUMBERS.ones[p%10+10],d+=m.replace(/-dix$/,"")+"-"+f):d+=m+(p%10?"-"+e.NUMBERS.ones[p%10]:"")}}const h=d.match(/s-\w+$/);return h?d.replace(/s-\w+$/,h[0].slice(1)):d.replace(/-un$/,"-et-un")}function i(u){if(u===0)return e.NUMBERS.zero;if(u>=Math.pow(10,36))return u.toString();e.NUMBERS.special["tens-"+t.Engine.getInstance().subiso]&&(e.NUMBERS.tens=e.NUMBERS.special["tens-"+t.Engine.getInstance().subiso]);let p=0,d="";for(;u>0;){const h=u%1e3;if(h){let f=e.NUMBERS.large[p];const m=o(h);if(f&&f.match(/^mille /)){const v=f.replace(/^mille /,"");d.match(RegExp(v))?d=m+(p?"-mille-":"")+d:d.match(RegExp(v.replace(/s$/,"")))?d=m+(p?"-mille-":"")+d.replace(v.replace(/s$/,""),v):d=m+(p?"-"+f+"-":"")+d}else f=h===1&&f?f.replace(/s$/,""):f,d=m+(p?"-"+f+"-":"")+d}u=Math.floor(u/1e3),p++}return d.replace(/-$/,"")}const a={1:"unième",2:"demi",3:"tiers",4:"quart"};function s(u,p){const d=a[u]||c(u);return u===3?d:p?d+"s":d}function c(u){if(u===1)return"première";let p=i(u);return p.match(/^neuf$/)?p=p.slice(0,-1)+"v":p.match(/cinq$/)?p=p+"u":p.match(/trois$/)?p=p+"":(p.match(/e$/)||p.match(/s$/))&&(p=p.slice(0,-1)),p=p+"ième",p}function l(u){const p=r.Grammar.getInstance().getParameter("gender");return u===1?u.toString()+(p==="m"?"er":"re"):u.toString()+"e"}e.NUMBERS=(0,n.NUMBERS)({wordOrdinal:c,numericOrdinal:l,numberToWords:i,numberToOrdinal:s})})(k0),ee(k0),Object.defineProperty(P0,"__esModule",{value:!0}),P0.fr=Hw;const Dw=Ot,jw=Re,_S=mt,Fw=k0,Uw=Lt;let B0=null;function Hw(){return B0||(B0=qw()),B0}function qw(){const e=(0,jw.createLocale)();return e.NUMBERS=Fw.NUMBERS,e.FUNCTIONS.radicalNestDepth=_S.nestingToString,e.FUNCTIONS.combineRootIndex=_S.combinePostfixIndex,e.FUNCTIONS.combineNestedFraction=(t,r,n)=>n.replace(/ $/g,"")+r+t,e.FUNCTIONS.combineNestedRadical=(t,r,n)=>n+" "+t,e.FUNCTIONS.fontRegexp=t=>RegExp(" (en |)"+t+"$"),e.FUNCTIONS.plural=t=>/.*s$/.test(t)?t:t+"s",e.CORRECTIONS.article=t=>Dw.Grammar.getInstance().getParameter("noArticle")?"":t,e.ALPHABETS.combiner=Uw.Combiners.romanceCombiner,e.SUBISO={default:"fr",current:"fr",all:["fr","be","ch"]},e}var D0={},j0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=Ot,r=At;function n(c){let l=c%1e3,u="";return u+=e.NUMBERS.ones[Math.floor(l/100)]?e.NUMBERS.ones[Math.floor(l/100)]+e.NUMBERS.numSep+e.NUMBERS.special.hundred:"",l=l%100,l&&(u+=u?e.NUMBERS.numSep:"",u+=e.NUMBERS.ones[l]),u}function o(c){if(c===0)return e.NUMBERS.zero;if(c>=Math.pow(10,32))return c.toString();let l=0,u="";const p=n(c%1e3);if(c=Math.floor(c/1e3),!c)return p;for(;c>0;){const d=c%100;d&&(u=e.NUMBERS.ones[d]+e.NUMBERS.numSep+e.NUMBERS.large[l]+(u?e.NUMBERS.numSep+u:"")),c=Math.floor(c/100),l++}return p?u+e.NUMBERS.numSep+p:u}function i(c,l){return c<=10?e.NUMBERS.special.smallDenominators[c]:a(c)+" अंश"}function a(c){const l=t.Grammar.getInstance().getParameter("gender");return c<=0?c.toString():c<10?l==="f"?e.NUMBERS.special.ordinalsFeminine[c]:e.NUMBERS.special.ordinalsMasculine[c]:o(c)+(l==="f"?"वीं":"वाँ")}function s(c){const l=t.Grammar.getInstance().getParameter("gender");return c>0&&c<10?l==="f"?e.NUMBERS.special.simpleSmallOrdinalsFeminine[c]:e.NUMBERS.special.simpleSmallOrdinalsMasculine[c]:c.toString().split("").map(function(u){const p=parseInt(u,10);return isNaN(p)?"":e.NUMBERS.special.simpleNumbers[p]}).join("")+(l==="f"?"वीं":"वाँ")}e.NUMBERS=(0,r.NUMBERS)({wordOrdinal:a,numericOrdinal:s,numberToWords:o,numberToOrdinal:i})})(j0),ee(j0),Object.defineProperty(D0,"__esModule",{value:!0}),D0.hi=$w;const Gw=Re,Xw=j0,Vw=Lt,Ww=mt;let F0=null;function $w(){return F0||(F0=zw()),F0}function zw(){const e=(0,Gw.createLocale)();return e.NUMBERS=Xw.NUMBERS,e.ALPHABETS.combiner=Vw.Combiners.prefixCombiner,e.FUNCTIONS.radicalNestDepth=Ww.nestingToString,e}var U0={},H0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=At;function r(s){let c=s%1e4,l="";return l+=e.NUMBERS.ones[Math.floor(c/1e3)]?Math.floor(c/1e3)===1?"천":e.NUMBERS.ones[Math.floor(c/1e3)]+"천":"",c=c%1e3,c&&(l+=e.NUMBERS.ones[Math.floor(c/100)]?Math.floor(c/100)===1?"백":e.NUMBERS.ones[Math.floor(c/100)]+"백":"",c=c%100,l+=e.NUMBERS.tens[Math.floor(c/10)]+(c%10?e.NUMBERS.ones[c%10]:"")),l}function n(s){if(s===0)return e.NUMBERS.zero;if(s>=Math.pow(10,36))return s.toString();let c=0,l="";for(;s>0;)s%1e4&&(l=r(s%1e4)+(c?e.NUMBERS.large[c]+e.NUMBERS.numSep:"")+l),s=Math.floor(s/1e4),c++;return l.replace(/ $/,"")}function o(s,c){return s===1?"첫번째":i(s)+"번째"}function i(s){const c=n(s);s%=100;const l=n(s);if(!l||!s)return c;const u=s===20?"스무":e.NUMBERS.tens[10+Math.floor(s/10)],p=e.NUMBERS.ones[10+Math.floor(s%10)];return c.slice(0,-l.length)+u+p}function a(s){return o(s)}e.NUMBERS=(0,t.NUMBERS)({wordOrdinal:i,numericOrdinal:a,numberToWords:n,numberToOrdinal:o})})(H0),ee(H0),Object.defineProperty(U0,"__esModule",{value:!0}),U0.ko=Qw;const q0=Ot,Kw=Re,Jw=mt,wS=H0,Yw=Lt;let G0=null;function Qw(){return G0||(G0=Zw()),G0}function Zw(){const e=(0,Kw.createLocale)();return e.NUMBERS=wS.NUMBERS,e.FUNCTIONS.radicalNestDepth=Jw.nestingToString,e.FUNCTIONS.plural=function(t){return t},e.FUNCTIONS.si=(t,r)=>t+r,e.FUNCTIONS.combineRootIndex=function(t,r){return t+r},e.ALPHABETS.combiner=Yw.Combiners.prefixCombiner,e.ALPHABETS.digitTrans.default=wS.NUMBERS.numberToWords,e.CORRECTIONS.postposition=t=>{if(["같다","는","와","를","로"].includes(t))return t;const r=t.slice(-1);let n=(r.charCodeAt(0)-44032)%28>0;return r.match(/[r,l,n,m,1,3,6,7,8,0]/i)&&(n=!0),q0.Grammar.getInstance().setParameter("final",n),t},e.CORRECTIONS.article=t=>{const r=q0.Grammar.getInstance().getParameter("final");r&&q0.Grammar.getInstance().setParameter("final",!1),t==="같다"&&(t="는");const n={는:"은",와:"과",를:"을",로:"으로"}[t];return n!==void 0&&r?n:t},e}var X0={},V0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=Ot,r=At;function n(c){let l=c%1e3,u="";if(u+=e.NUMBERS.ones[Math.floor(l/100)]?e.NUMBERS.ones[Math.floor(l/100)]+e.NUMBERS.numSep+"cento":"",l=l%100,l){u+=u?e.NUMBERS.numSep:"";const p=e.NUMBERS.ones[l];if(p)u+=p;else{let d=e.NUMBERS.tens[Math.floor(l/10)];const h=l%10;(h===1||h===8)&&(d=d.slice(0,-1)),u+=d,u+=h?e.NUMBERS.numSep+e.NUMBERS.ones[l%10]:""}}return u}function o(c){if(c===0)return e.NUMBERS.zero;if(c>=Math.pow(10,36))return c.toString();if(c===1&&t.Grammar.getInstance().getParameter("fraction"))return"un";let l=0,u="";for(;c>0;)c%1e3&&(u=n(c%1e3)+(l?"-"+e.NUMBERS.large[l]+"-":"")+u),c=Math.floor(c/1e3),l++;return u.replace(/-$/,"")}function i(c,l){if(c===2)return l?"mezzi":"mezzo";const u=a(c);if(!l)return u;const p=u.match(/o$/)?"i":"e";return u.slice(0,-1)+p}function a(c){const l=t.Grammar.getInstance().getParameter("gender")==="m"?"o":"a";let u=e.NUMBERS.special.onesOrdinals[c];return u?u.slice(0,-1)+l:(u=o(c),u.slice(0,-1)+"esim"+l)}function s(c){const l=t.Grammar.getInstance().getParameter("gender");return c.toString()+(l==="m"?"o":"a")}e.NUMBERS=(0,r.NUMBERS)({wordOrdinal:a,numericOrdinal:s,numberToWords:o,numberToOrdinal:i})})(V0),ee(V0),Object.defineProperty(X0,"__esModule",{value:!0}),X0.it=o8;const RS=mt,e8=Re,t8=V0,r8=Lt,n8=function(e,t,r){return e.match(/^[a-zA-Z]$/)&&(t=t.replace("cerchiato","cerchiata")),e=r?e+" "+r:e,t?e+" "+t:e};let W0=null;function o8(){return W0||(W0=i8()),W0}function i8(){const e=(0,e8.createLocale)();return e.NUMBERS=t8.NUMBERS,e.COMBINERS.italianPostfix=n8,e.FUNCTIONS.radicalNestDepth=RS.nestingToString,e.FUNCTIONS.combineRootIndex=RS.combinePostfixIndex,e.FUNCTIONS.combineNestedFraction=(t,r,n)=>n.replace(/ $/g,"")+r+t,e.FUNCTIONS.combineNestedRadical=(t,r,n)=>n+" "+t,e.FUNCTIONS.fontRegexp=t=>RegExp(" (en |)"+t+"$"),e.ALPHABETS.combiner=r8.Combiners.romanceCombiner,e}var $0={},hp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=Oe,r=At;function n(h,f=!1){let m=h%1e3,v="";const g=Math.floor(m/100),b=e.NUMBERS.ones[g];if(v+=b?(g===1?"":b)+"hundre":"",m=m%100,m){if(v+=v?"og":"",f){const S=e.NUMBERS.special.smallOrdinals[m];if(S)return v+S;if(m%10)return v+e.NUMBERS.tens[Math.floor(m/10)]+e.NUMBERS.special.smallOrdinals[m%10]}v+=e.NUMBERS.ones[m]||e.NUMBERS.tens[Math.floor(m/10)]+(m%10?e.NUMBERS.ones[m%10]:"")}return f?a(v):v}function o(h,f=!1){if(h===0)return f?e.NUMBERS.special.smallOrdinals[0]:e.NUMBERS.zero;if(h>=Math.pow(10,36))return h.toString();let m=0,v="";for(;h>0;){const g=h%1e3;if(g){const b=n(h%1e3,m?!1:f);!m&&f&&(f=!f),v=b+(m?" "+(e.NUMBERS.large[m]+(m>1&&g>1?"er":""))+(v?" ":""):"")+v}h=Math.floor(h/1e3),m++}return f?v+(v.match(/tusen$/)?"de":"te"):v}function i(h,f){return s(h)}function a(h){const f=e.NUMBERS.special.endOrdinal[0];return f==="a"&&h.match(/en$/)?h.slice(0,-2)+e.NUMBERS.special.endOrdinal:h.match(/(d|n)$/)||h.match(/hundre$/)?h+"de":h.match(/i$/)?h+e.NUMBERS.special.endOrdinal:f==="a"&&h.match(/e$/)?h.slice(0,-1)+e.NUMBERS.special.endOrdinal:(h.match(/e$/),h+"nde")}function s(h){return d(h,!0)}function c(h){return h.toString()+"."}e.NUMBERS=(0,r.NUMBERS)({wordOrdinal:s,numericOrdinal:c,numberToWords:d,numberToOrdinal:i});function l(h,f=!1){return h===e.NUMBERS.ones[1]?h==="ein"?"eitt ":f?"et":"ett":h}function u(h,f=!1){let m=h%1e3,v="",g=e.NUMBERS.ones[Math.floor(m/100)];if(v+=g?l(g)+"hundre":"",m=m%100,m){if(v+=v?"og":"",f){const b=e.NUMBERS.special.smallOrdinals[m];if(b)return v+=b}if(g=e.NUMBERS.ones[m],g)v+=g;else{const b=e.NUMBERS.tens[Math.floor(m/10)];g=e.NUMBERS.ones[m%10],v+=g?g+"og"+b:b}}return f?a(v):v}function p(h,f=!1){if(h===0)return f?e.NUMBERS.special.smallOrdinals[0]:e.NUMBERS.zero;if(h>=Math.pow(10,36))return h.toString();let m=0,v="";for(;h>0;){const g=h%1e3;if(g){const b=u(h%1e3,m?!1:f);!m&&f&&(f=!f),v=(m===1?l(b,!0):b)+(m>1?e.NUMBERS.numSep:"")+(m?e.NUMBERS.large[m]+(m>1&&g>1?"er":""):"")+(m>1&&v?e.NUMBERS.numSep:"")+v}h=Math.floor(h/1e3),m++}return f?v+(v.match(/tusen$/)?"de":"te"):v}function d(h,f=!1){return t.Engine.getInstance().subiso==="alt"?p(h,f):o(h,f)}})(hp),ee(hp),Object.defineProperty($0,"__esModule",{value:!0}),$0.nb=l8;const a8=Re,s8=mt,LS=hp,c8=Lt;let z0=null;function l8(){return z0||(z0=u8()),z0}function u8(){const e=(0,a8.createLocale)();return e.NUMBERS=LS.NUMBERS,e.ALPHABETS.combiner=c8.Combiners.prefixCombiner,e.ALPHABETS.digitTrans.default=LS.NUMBERS.numberToWords,e.FUNCTIONS.radicalNestDepth=s8.nestingToString,e}var K0={},J0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=At;function r(n){return n.toString().split("").map(function(o){return e.NUMBERS.ones[parseInt(o,10)]}).join("")}e.NUMBERS=(0,t.NUMBERS)({numberToWords:r,numberToOrdinal:r})})(J0),ee(J0),Object.defineProperty(K0,"__esModule",{value:!0}),K0.nemeth=b8;const p8=Re,IS=J0,d8=Lt,va=function(e){return e.match(RegExp("^"+fp.ALPHABETS.languagePrefix.english))?e.slice(1):e},h8=function(e,t,r){return e=va(e),t?e+t:e},f8=function(e,t,r){return t+va(e)},m8=function(e,t,r){return e=va(e),t+(r||"")+e+"⠻"},y8=function(e,t,r){return e=va(e),t+(r||"")+e+"⠻⠻"},g8=function(e,t,r){return e=va(e),t+e+"⠾"};let fp=null;function b8(){return fp||(fp=v8()),fp}function v8(){const e=(0,p8.createLocale)();return e.NUMBERS=IS.NUMBERS,e.COMBINERS={postfixCombiner:h8,germanCombiner:f8,embellishCombiner:m8,doubleEmbellishCombiner:y8,parensCombiner:g8},e.FUNCTIONS.fracNestDepth=t=>!1,e.FUNCTIONS.fontRegexp=t=>RegExp("^"+t),e.FUNCTIONS.si=d8.identityTransformer,e.ALPHABETS.combiner=(t,r,n)=>r?r+n+t:va(t),e.ALPHABETS.digitTrans={default:IS.NUMBERS.numberToWords},e}var Y0={};Object.defineProperty(Y0,"__esModule",{value:!0}),Y0.nn=M8;const S8=Re,E8=mt,PS=hp,x8=Lt;let Q0=null;function M8(){return Q0||(Q0=O8()),Q0}function O8(){const e=(0,S8.createLocale)();return e.NUMBERS=PS.NUMBERS,e.ALPHABETS.combiner=x8.Combiners.prefixCombiner,e.ALPHABETS.digitTrans.default=PS.NUMBERS.numberToWords,e.FUNCTIONS.radicalNestDepth=E8.nestingToString,e.SUBISO={default:"",current:"",all:["","alt"]},e}var Z0={},eg={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NUMBERS=void 0;const t=At;function r(s){let c=s%1e3,l="";const u=Math.floor(c/100);return l+=e.NUMBERS.ones[u]?(u===1?"":e.NUMBERS.ones[u]+e.NUMBERS.numSep)+"hundra":"",c=c%100,c&&(l+=l?e.NUMBERS.numSep:"",l+=e.NUMBERS.ones[c]||e.NUMBERS.tens[Math.floor(c/10)]+(c%10?e.NUMBERS.numSep+e.NUMBERS.ones[c%10]:"")),l}function n(s,c=!1){if(s===0)return e.NUMBERS.zero;if(s>=Math.pow(10,36))return s.toString();let l=0,u="";for(;s>0;){const p=s%1e3;if(p){const d=e.NUMBERS.large[l],h=p>1&&l>1&&!c?"er":"";u=(l===1&&p===1?"":(l>1&&p===1?"en":r(s%1e3))+(l>1?" ":""))+(l?d+h+(l>1?" ":""):"")+u}s=Math.floor(s/1e3),l++}return u.replace(/ $/,"")}function o(s,c){if(s===1)return"hel";if(s===2)return c?"halva":"halv";let l=i(s);return l=l.match(/de$/)?l.replace(/de$/,""):l,l+(c?"delar":"del")}function i(s){let c=n(s,!0);return c.match(/^noll$/)?c="nollte":c.match(/ett$/)?c=c.replace(/ett$/,"första"):c.match(/två$/)?c=c.replace(/två$/,"andra"):c.match(/tre$/)?c=c.replace(/tre$/,"tredje"):c.match(/fyra$/)?c=c.replace(/fyra$/,"fjärde"):c.match(/fem$/)?c=c.replace(/fem$/,"femte"):c.match(/sex$/)?c=c.replace(/sex$/,"sjätte"):c.match(/sju$/)?c=c.replace(/sju$/,"sjunde"):c.match(/åtta$/)?c=c.replace(/åtta$/,"åttonde"):c.match(/nio$/)?c=c.replace(/nio$/,"nionde"):c.match(/tio$/)?c=c.replace(/tio$/,"tionde"):c.match(/elva$/)?c=c.replace(/elva$/,"elfte"):c.match(/tolv$/)?c=c.replace(/tolv$/,"tolfte"):c.match(/tusen$/)?c=c.replace(/tusen$/,"tusonde"):c.match(/jard$/)||c.match(/jon$/)?c=c+"te":c=c+"de",c}function a(s){const c=s.toString();return c.match(/11$|12$/)?c+":e":c+(c.match(/1$|2$/)?":a":":e")}e.NUMBERS=(0,t.NUMBERS)({wordOrdinal:i,numericOrdinal:a,numberToWords:n,numberToOrdinal:o})})(eg),ee(eg),Object.defineProperty(Z0,"__esModule",{value:!0}),Z0.sv=N8;const A8=Re,T8=mt,kS=eg,C8=Lt;let tg=null;function N8(){return tg||(tg=_8()),tg}function _8(){const e=(0,A8.createLocale)();return e.NUMBERS=kS.NUMBERS,e.FUNCTIONS.radicalNestDepth=T8.nestingToString,e.FUNCTIONS.fontRegexp=function(t){return new RegExp("((^"+t+" )|( "+t+"$))")},e.ALPHABETS.combiner=C8.Combiners.prefixCombiner,e.ALPHABETS.digitTrans.default=kS.NUMBERS.numberToWords,e.CORRECTIONS.correctOne=t=>t.replace(/^ett$/,"en"),e}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.locales=void 0,e.setLocale=E,e.completeLocale=A;const t=Oe,r=So,n=Ot,o=h0,i=y0,a=v0,s=x0,c=T0,l=_0,u=L0,p=P0,d=D0,h=U0,f=X0,m=$0,v=K0,g=Y0,b=Z0,S=Re;e.locales={af:o.af,ca:i.ca,da:a.da,de:s.de,en:c.en,es:l.es,euro:u.euro,fr:p.fr,hi:d.hi,it:f.it,ko:h.ko,nb:m.nb,nn:g.nn,sv:b.sv,nemeth:v.nemeth};function E(){const M=O();if(x(M),M){for(const C of Object.getOwnPropertyNames(M))S.LOCALE[C]=M[C];for(const[C,w]of Object.entries(M.CORRECTIONS))n.Grammar.getInstance().setCorrection(C,w)}}function x(M){const C=t.Engine.getInstance().subiso;M.SUBISO.all.indexOf(C)===-1&&(t.Engine.getInstance().subiso=M.SUBISO.default),M.SUBISO.current=t.Engine.getInstance().subiso}function O(){const M=r.Variables.ensureLocale(t.Engine.getInstance().locale,t.Engine.getInstance().defaultLocale);return t.Engine.getInstance().locale=M,e.locales[M]()}function A(M){const C=e.locales[M.locale];if(!C){console.error("Locale "+M.locale+" does not exist!");return}const w=M.kind.toUpperCase(),k=M.messages;if(!k)return;const L=C();for(const[D,P]of Object.entries(k))L[w][D]=P}})(ba),ee(ba);var Vc={},ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.mapsForIE=void 0,ci.detectIE=w8,ci.detectEdge=R8;const Un=Ir,rg=Rt;function w8(){return typeof window<"u"&&"ActiveXObject"in window&&"clipboardData"in window?(L8(),BS(),!0):!1}function R8(){var e;return typeof window<"u"&&"MSGestureEvent"in window&&((e=window.chrome)===null||e===void 0?void 0:e.loadTimes)===null?(document.evaluate=null,BS(!0),!0):!1}ci.mapsForIE=null;function BS(e){jS(Un.SystemExternal.WGXpath),DS(e)}function DS(e,t){let r=t||1;if(typeof wgxpath>"u"&&r<10){setTimeout(function(){DS(e,r++)},200);return}r>=10||(Un.SystemExternal.wgxpath=wgxpath,e?Un.SystemExternal.wgxpath.install({document}):Un.SystemExternal.wgxpath.install(),rg.xpath.evaluate=document.evaluate,rg.xpath.result=XPathResult,rg.xpath.createNSResolver=document.createNSResolver)}function L8(){jS(Un.SystemExternal.mathmapsIePath)}function jS(e){const t=Un.SystemExternal.document.createElement("script");t.type="text/javascript",t.src=e,Un.SystemExternal.document.head?Un.SystemExternal.document.head.appendChild(t):Un.SystemExternal.document.body.appendChild(t)}var Sa={};Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.makePath=FS,Sa.localePath=P8;const I8=Ir;function FS(e){return e.match("/$")?e:e+"/"}function P8(e,t="json"){return FS(I8.SystemExternal.jsonPath)+e+(t.match(/^\./)?t:"."+t)}var Ea={},Er={};(function(e){var t=y&&y.__rest||(function(S,E){var x={};for(var O in S)Object.prototype.hasOwnProperty.call(S,O)&&E.indexOf(O)<0&&(x[O]=S[O]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,O=Object.getOwnPropertySymbols(S);A<O.length;A++)E.indexOf(O[A])<0&&Object.prototype.propertyIsEnumerable.call(S,O[A])&&(x[O[A]]=S[O[A]]);return x});Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticMap=e.NamedSymbol=void 0,e.addFunctionSemantic=d,e.equal=h,e.isMatchingFence=f;const r=Se,n=Gc;e.NamedSymbol={functionApplication:String.fromCodePoint(8289),invisibleTimes:String.fromCodePoint(8290),invisibleComma:String.fromCodePoint(8291),invisiblePlus:String.fromCodePoint(8292)};class o extends Map{get(E){return super.get(E)||{role:r.SemanticRole.UNKNOWN,type:r.SemanticType.UNKNOWN,font:r.SemanticFont.UNKNOWN}}}class i extends Map{set(E,x,O=""){return super.set(this.secKey(x,E),O||x),this}has(E,x){return super.has(this.secKey(x,E))}get(E,x){return super.get(this.secKey(x,E))}secKey(E,x){return x?`${E} ${x}`:`${E}`}}e.SemanticMap={Meaning:new o,Secondary:new i,FencesHoriz:new Map,FencesVert:new Map,LatexCommands:new Map};function a(S,E){for(const x of S)e.SemanticMap.Meaning.set(x,{role:E.role||r.SemanticRole.UNKNOWN,type:E.type||r.SemanticType.UNKNOWN,font:E.font||r.SemanticFont.UNKNOWN}),E.secondary&&e.SemanticMap.Secondary.set(x,E.secondary)}function s(){[{set:["23","26","40","5c","a1","a7","b6","bf","2017",["2022","2025"],"2027","203b","203c",["2041","2043"],["2047","2049"],["204b","204d"],"2050","2055","2056",["2058","205e"],"2234","2235","fe45","fe46","fe5f","fe60","fe68","fe6b","ff03","ff06","ff0f","ff20","ff3c"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.UNKNOWN},{set:["22","ab","bb","2dd",["2018","201f"],"2039","203a",["301d","301f"],"fe10","ff02","ff07"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.QUOTES},{set:["3b","204f","2a1f","2a3e","fe14","fe54","ff1b"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.SEMICOLON},{set:["3f","203d","fe16","fe56","ff1f"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.QUESTION},{set:["21","fe15","fe57","ff01"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.EXCLAMATION},{set:["5e","60","a8","aa","b4","ba","2c7",["2d8","2da"],"2040","207a","207d","207e","ff3e","ff40"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.OVERACCENT},{set:["b8","2db","2038","203f","2054","208a","208d","208e"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.UNDERACCENT},{set:["3a","2982","fe13","fe30","fe55","ff1a"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.COLON},{set:["2c","2063","fe50","ff0c"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.COMMA},{set:["2026",["22ee","22f1"],"fe19"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.ELLIPSIS},{set:["2e","fe52","ff0e"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.FULLSTOP},{set:["2d","207b","208b","2212","2796","fe63","ff0d"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.DASH,secondary:r.SemanticSecondary.BAR},{set:["5f","af",["2010","2015"],"203e","208b",["fe49","fe4f"],"fe58","ff3f","ffe3"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.DASH,secondary:r.SemanticSecondary.BAR},{set:["7e","2dc","2f7","303","330","334","2053","223c","223d","301c","ff5e"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.TILDE,secondary:r.SemanticSecondary.TILDE},{set:["27","2b9","2ba",["2032","2037"],"2057"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.PRIME},{set:["b0"],type:r.SemanticType.PUNCTUATION,role:r.SemanticRole.DEGREE},{set:["2b","b1","2064","2213","2214","2228","222a",["228c","228e"],"2294","2295","229d","229e","22bb","22bd","22c4","22ce","22d3","2304","271b","271c","2795","27cf","29fa","29fb","29fe",["2a22","2a28"],"2a2d","2a2e","2a39","2a42","2a45","2a46","2a48","2a4a","2a4c","2a4f","2a50","2a52","2a54","2a56","2a57","2a59","2a5b","2a5d",["2a61","2a63"],"2adc","2add","fe62","ff0b"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.ADDITION},{set:["2a","b7","d7","2020","2021","204e","2051","2062",["2217","2219"],"2227","2229","2240","2293","2297",["2299","229b"],"22a0","22a1","22b9","22bc",["22c5","22cc"],"22cf","22d2","22d4","2303","2305","2306","25cb","2715","2716","27ce","27d1",["29d1","29d7"],"29e2","2a1d",["2a2f","2a37"],["2a3b","2a3d"],"2a40","2a43","2a44","2a47","2a49","2a4b","2a4d","2a4e","2a51","2a53","2a55","2a58","2a5a","2a5c",["2a5e","2a60"],"2ada","2adb","fe61","ff0a"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.MULTIPLICATION},{set:["2d","af","2010","2011","2052","207b","208b","2212","2216","2238","2242","2296","229f","2796","29ff",["2a29","2a2c"],"2a3a","2a41","fe63","ff0d"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.SUBTRACTION},{set:["2f","f7","2044","2215","2298","2797","27cc","29bc",["29f5","29f9"],"2a38"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.DIVISION},{set:["25","2030","2031","ff05","fe6a"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.POSTFIXOP},{set:["ac","2200","2201","2203","2204","2206",["221a","221c"],"2310","ffe2"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.PREFIXOP},{set:["2320","2321","23aa","23ae","23af","23b2","23b3","23b6","23b7"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.PREFIXOP},{set:["1d7ca","1d7cb"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.PREFIXOP,font:r.SemanticFont.BOLD},{set:["3d","7e","207c","208c","221d","2237",["223a","223f"],"2243","2245","2248",["224a","224e"],["2251","225f"],"2261","2263","229c","22cd","22d5","29e4","29e6","2a66","2a67",["2a6a","2a6c"],["2a6c","2a78"],"fe66","ff1d"],type:r.SemanticType.RELATION,role:r.SemanticRole.EQUALITY},{set:["3c","3e","2241","2242","2244","2246","2247","2249","224f","2250","2260","2262",["2264","2281"],"22b0","22b1",["22d6","22e1"],["22e6","22e9"],["2976","2978"],"29c0","29c1","29e1","29e3","29e5",["2a79","2abc"],["2af7","2afa"],"fe64","fe65","ff1c","ff1e"],type:r.SemanticType.RELATION,role:r.SemanticRole.INEQUALITY},{set:[["2282","228b"],["228f","2292"],["22b2","22b8"],"22d0","22d1",["22e2","22e5"],["22ea","22ed"],"27c3","27c4",["27c7","27c9"],["27d5","27d7"],"27dc",["2979","297b"],"29df",["2abd","2ad8"]],type:r.SemanticType.RELATION,role:r.SemanticRole.SET},{set:["2236",["27e0","27e5"],"292b","292c",["29b5","29bb"],"29be","29bf",["29c2","29d0"]],type:r.SemanticType.RELATION,role:r.SemanticRole.UNKNOWN},{set:["2205",["29b0","29b4"]],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.SETEMPTY},{set:["1ab2","221e",["29dc","29de"]],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.INFTY},{set:["22a2","22a3",["22a6","22af"],"27da","27db","27dd","27de","2ade",["2ae2","2ae6"],"2aec","2aed"],type:r.SemanticType.RELATION,role:r.SemanticRole.LOGIC},{set:["22a4","22a5","22ba","27d8","27d9","27df","2adf","2ae0",["2ae7","2aeb"],"2af1"],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.LOGIC},{set:[["2190","21ff"],"2301","2324","238b","2794",["2798","27af"],["27b1","27be"],["27f0","27ff"],["2900","292a"],["292d","2975"],["297c","297f"],["2b00","2b11"],["2b30","2b4c"],["ffe9","ffec"]],type:r.SemanticType.RELATION,role:r.SemanticRole.ARROW},{set:["2208","220a",["22f2","22f9"],"22ff","27d2","2ad9"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.ELEMENT},{set:["2209"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.NONELEMENT},{set:["220b","220d",["22fa","22fe"]],type:r.SemanticType.OPERATOR,role:r.SemanticRole.REELEMENT},{set:["220c"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.RENONELEMENT},{set:[["220f","2211"],["22c0","22c3"],["2a00","2a0b"],"2a3f","2afc","2aff"],type:r.SemanticType.LARGEOP,role:r.SemanticRole.SUM},{set:["2140"],type:r.SemanticType.LARGEOP,role:r.SemanticRole.SUM,font:r.SemanticFont.DOUBLESTRUCK},{set:[["222b","2233"],["2a0c","2a17"],["2a17","2a1c"]],type:r.SemanticType.LARGEOP,role:r.SemanticRole.INTEGRAL},{set:[["2500","257F"]],type:r.SemanticType.RELATION,role:r.SemanticRole.BOX},{set:[["2580","259F"]],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.BLOCK},{set:[["25A0","25FF"],["2B12","2B2F"],["2B50","2B59"]],type:r.SemanticType.RELATION,role:r.SemanticRole.GEOMETRY},{set:["220e","2300","2302","2311","29bd","29e0",["29e8","29f3"],"2a1e","2afe","ffed","ffee"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.GEOMETRY},{set:[["221f","2222"],"22be","22bf",["2312","2314"],"237c","27c0",["299b","29af"]],type:r.SemanticType.OPERATOR,role:r.SemanticRole.GEOMETRY},{set:["24",["a2","a5"],"b5","2123",["2125","2127"],"212a","212b","fe69","ff04","ffe0","ffe1","ffe5","ffe6"],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.UNKNOWN},{set:["a9","ae","210f","2114","2116","2117",["211e","2122"],"212e","2132",["2139","213b"],["2141","2144"],"214d","214e",["1f12a","1f12c"],"1f18a"],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.OTHERLETTER},{set:["2224","2226","2239","2307","27b0","27bf","27c1","27c2","27ca","27cb","27cd","27d0","27d3","27d4","2981","2999","299a","29e7","29f4","2a20","2a21","2a64","2a65","2a68","2a69","2ae1",["2aee","2af0"],"2af2","2af3","2af5","2af6","2afb","2afd"],type:r.SemanticType.OPERATOR,role:r.SemanticRole.UNKNOWN},{set:["2605","2606","26aa","26ab",["2720","274d"]],type:r.SemanticType.OPERATOR,role:r.SemanticRole.UNKNOWN},{set:[["2145","2149"]],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.LATINLETTER,font:r.SemanticFont.DOUBLESTRUCKITALIC,secondary:r.SemanticSecondary.ALLLETTERS},{set:[["213c","213f"]],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.GREEKLETTER,font:r.SemanticFont.DOUBLESTRUCK,secondary:r.SemanticSecondary.ALLLETTERS},{set:["3d0","3d7","3f6",["1d26","1d2a"],"1d5e","1d60",["1d66","1d6a"]],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.GREEKLETTER,font:r.SemanticFont.NORMAL,secondary:r.SemanticSecondary.ALLLETTERS},{set:[["2135","2138"]],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.OTHERLETTER,font:r.SemanticFont.NORMAL,secondary:r.SemanticSecondary.ALLLETTERS},{set:["131","237"],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.LATINLETTER,font:r.SemanticFont.NORMAL},{set:["1d6a4","1d6a5"],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.LATINLETTER,font:r.SemanticFont.ITALIC},{set:["2113","2118"],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.LATINLETTER,font:r.SemanticFont.SCRIPT},{set:[["c0","d6"],["d8","f6"],["f8","1bf"],["1c4","2af"],["1d00","1d25"],["1d6b","1d9a"],["1e00","1ef9"],["363","36f"],["1dd3","1de6"],["1d62","1d65"],"1dca","2071","207f",["2090","209c"],"2c7c"],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.LATINLETTER,font:r.SemanticFont.NORMAL},{set:[["00bc","00be"],["2150","215f"],"2189"],type:r.SemanticType.NUMBER,role:r.SemanticRole.FLOAT},{set:["23E8",["3248","324f"]],type:r.SemanticType.NUMBER,role:r.SemanticRole.INTEGER},{set:[["214A","214C"],"2705","2713","2714","2717","2718"],type:r.SemanticType.IDENTIFIER,role:r.SemanticRole.UNKNOWN},{set:["20","a0","ad",["2000","200f"],["2028","202f"],["205f","2060"],"206a","206b","206e","206f","feff",["fff9","fffb"]],type:r.SemanticType.TEXT,role:r.SemanticRole.SPACE},{set:["7c","a6","2223","23b8","23b9","23d0","2758",["fe31","fe34"],"ff5c","ffe4","ffe8"],type:r.SemanticType.FENCE,role:r.SemanticRole.NEUTRAL},{set:["2016","2225","2980","2af4"],type:r.SemanticType.FENCE,role:r.SemanticRole.METRIC}].forEach(S=>{var{set:E}=S,x=t(S,["set"]);return a(n.makeMultiInterval(E),x)})}function c(S,E,x=1){const O={},A=n.makeCodeInterval(E);for(const M of A)O[M]||(S.set(String.fromCodePoint(M),String.fromCodePoint(M+x)),O[M]=!0,O[M+x]=!0)}function l(){c(e.SemanticMap.FencesVert,["23b4",["23dc","23e1"],["fe35","fe44"],"fe47"]),c(e.SemanticMap.FencesHoriz,["28","2045",["2308","230f"],["231c","231f"],"2329","23b0",["2768","2775"],"27c5",["27e6","27ef"],["2983","2998"],["29d8","29db"],"29fc",["2e22","2e29"],["3008","3011"],["3014","301b"],"fd3e","fe17",["fe59","fe5e"],"ff08","ff5f","ff62"]),c(e.SemanticMap.FencesHoriz,["5b","7b","ff3b","ff5b"],2),c(e.SemanticMap.FencesHoriz,[["239b","23a6"]],3),c(e.SemanticMap.FencesHoriz,[["23a7","23a9"]],4),a([...e.SemanticMap.FencesHoriz.keys()],{type:r.SemanticType.FENCE,role:r.SemanticRole.OPEN}),a([...e.SemanticMap.FencesHoriz.values()],{type:r.SemanticType.FENCE,role:r.SemanticRole.CLOSE}),a([...e.SemanticMap.FencesVert.keys()],{type:r.SemanticType.FENCE,role:r.SemanticRole.TOP}),a([...e.SemanticMap.FencesVert.values()],{type:r.SemanticType.FENCE,role:r.SemanticRole.BOTTOM})}const u=["cos","cot","csc","sec","sin","tan","arccos","arccot","arccsc","arcsec","arcsin","arctan"].concat(["cosh","coth","csch","sech","sinh","tanh","arcosh","arcoth","arcsch","arsech","arsinh","artanh"],["deg","det","dim","hom","ker","Tr"],["log","ln","lg","exp","gcd","lcm","arg","im","re","Pr"]);function p(){a(["inf","lim","liminf","limsup","max","min","sup","injlim","projlim"],{type:r.SemanticType.FUNCTION,role:r.SemanticRole.LIMFUNC}),a(u,{type:r.SemanticType.FUNCTION,role:r.SemanticRole.PREFIXFUNC}),a(["mod","rem"],{type:r.SemanticType.OPERATOR,role:r.SemanticRole.PREFIXFUNC})}function d(S,E){a(E,e.SemanticMap.Meaning.get(S)||{type:r.SemanticType.FUNCTION,role:r.SemanticRole.PREFIXFUNC})}function h(S,E){return S.type===E.type&&S.role===E.role&&S.font===E.font}function f(S,E){const x=e.SemanticMap.Meaning.get(S);return x.type!==r.SemanticType.FENCE?!1:x.role===r.SemanticRole.NEUTRAL||x.role===r.SemanticRole.METRIC?S===E:e.SemanticMap.FencesHoriz.get(S)===E||e.SemanticMap.FencesVert.get(S)===E}function m(S,E){for(const[x,O]of Object.entries(E)){const A=S[x];A!==void 0&&e.SemanticMap.Meaning.set(A,O)}}function v(S,E){for(const[x,O]of Object.entries(E)){const A=S[x];A!==void 0&&e.SemanticMap.Secondary.set(A,O)}}function g(S,E,x,O,A,M=[],C={},w={}){const k=n.INTERVALS.get(n.alphabetName(S,O));k&&(k.unicode.forEach(L=>{e.SemanticMap.Meaning.set(L,{type:E,role:x,font:A}),M.forEach(D=>e.SemanticMap.Secondary.set(L,D))}),m(k.unicode,C),v(k.unicode,w))}function b(){for(const[S,E]of Object.entries(r.SemanticFont)){const x=n.Embellish[S]?r.SemanticFont.UNKNOWN:E===r.SemanticFont.FULLWIDTH?r.SemanticFont.NORMAL:E;g(n.Base.LATINCAP,r.SemanticType.IDENTIFIER,r.SemanticRole.LATINLETTER,E,x,[r.SemanticSecondary.ALLLETTERS]),g(n.Base.LATINSMALL,r.SemanticType.IDENTIFIER,r.SemanticRole.LATINLETTER,E,x,[r.SemanticSecondary.ALLLETTERS],{},{3:r.SemanticSecondary.D}),g(n.Base.GREEKCAP,r.SemanticType.IDENTIFIER,r.SemanticRole.GREEKLETTER,E,x,[r.SemanticSecondary.ALLLETTERS]),g(n.Base.GREEKSMALL,r.SemanticType.IDENTIFIER,r.SemanticRole.GREEKLETTER,E,x,[r.SemanticSecondary.ALLLETTERS],{0:{type:r.SemanticType.OPERATOR,role:r.SemanticRole.PREFIXOP,font:x},26:{type:r.SemanticType.OPERATOR,role:r.SemanticRole.PREFIXOP,font:x}}),g(n.Base.DIGIT,r.SemanticType.NUMBER,r.SemanticRole.INTEGER,E,x)}}s(),l(),b(),p()})(Er),ee(Er);var mp={};Object.defineProperty(mp,"__esModule",{value:!0}),mp.MathSimpleStore=void 0;const li=Oe,k8=pt;class ng{constructor(){this.rules=new Map}static parseUnicode(t){const r=parseInt(t,16);return String.fromCodePoint(r)}static testDynamicConstraints_(t,r){return li.Engine.getInstance().strict?r.cstr.equal(t):li.Engine.getInstance().comparator.match(r.cstr)}defineRulesFromMappings(t,r,n){for(const[o,i]of Object.entries(n))for(const[a,s]of Object.entries(i))this.defineRuleFromStrings(t,r,o,a,s)}getRules(t){let r=this.rules.get(t);return r||(r=[],this.rules.set(t,r)),r}defineRuleFromStrings(t,r,n,o,i){let a=this.getRules(t);const s=li.Engine.getInstance().parsers[n]||li.Engine.getInstance().defaultParser,c=li.Engine.getInstance().comparators[n],l=`${t}.${r}.${n}.${o}`,u=s.parse(l),p=c?c():li.Engine.getInstance().comparator,d=p.getReference();p.setReference(u);const h={cstr:u,action:i};a=a.filter(f=>!u.equal(f.cstr)),a.push(h),this.rules.set(t,a),p.setReference(d)}lookupRule(t,r){let n=this.getRules(r.getValue(k8.Axis.LOCALE));return n=n.filter(function(o){return ng.testDynamicConstraints_(r,o)}),n.length===1?n[0]:n.length?n.sort((o,i)=>li.Engine.getInstance().comparator.compare(o.cstr,i.cstr))[0]:null}}mp.MathSimpleStore=ng,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.addCharacterRules=e.baseStores=e.subStores=void 0,e.changeLocale=c,e.setSiPrefixes=u,e.defineRules=h,e.defineRule=f,e.addSymbolRules=m,e.addFunctionRules=S,e.addUnitRules=E,e.lookupRule=O,e.lookupCategory=A,e.lookupString=M,e.enumerate=C,e.reset=k;const t=Oe,r=ba,n=Er,o=mp,i=pt;let a=i.DynamicCstr.DEFAULT_VALUES[i.Axis.LOCALE],s=i.DynamicCstr.DEFAULT_VALUES[i.Axis.MODALITY];function c(L){return!L.locale&&!L.modality?!1:(a=L.locale||a,s=L.modality||s,!0)}let l={};function u(L){l=L}e.subStores=new Map,e.baseStores=new Map;function p(L,D){let P=e.subStores.get(D);return P||(P=new o.MathSimpleStore,P.base=e.baseStores.get(L),e.subStores.set(D,P),P)}function d(L){const D=e.baseStores.get(L.key);if(!D)return;const P=L.names;Object.assign(L,D),P&&D.names&&(L.names=L.names.concat(P))}function h(L,D,P){p(L,D).defineRulesFromMappings(a,s,P)}function f(L,D,P,F){p(P,P).defineRuleFromStrings(a,s,L,D,F)}function m(L){for(const D of L){if(c(D))continue;const P=o.MathSimpleStore.parseUnicode(D.key);if(a==="base"){e.baseStores.set(P,D);continue}h(P,P,D.mappings)}}function v(L){if(!c(L))for(const[D,P]of Object.entries(L))f("default","default",D,P)}const g=L=>L.forEach(v);e.addCharacterRules=g;function b(L){for(let D=0,P;P=L.names[D];D++)h(L.key,P,L.mappings)}function S(L){for(const D of L)if(!c(D)){if((0,n.addFunctionSemantic)(D.key,D.names||[]),a==="base"){e.baseStores.set(D.key,D);continue}d(D),b(D)}}function E(L){for(const D of L)if(!c(D)){if(D.key+=":unit",a==="base"){e.baseStores.set(D.key,D);continue}d(D),D.names&&(D.names=D.names.map(function(P){return P+":unit"})),D.si&&x(D),b(D)}}function x(L){for(const D of Object.keys(l)){const P=Object.assign({},L);P.mappings={};const F=l[D];P.names=P.names.map(function(G){return D+G});for(const G of Object.keys(L.mappings)){P.mappings[G]={};for(const Q of Object.keys(L.mappings[G]))P.mappings[G][Q]=r.locales[a]().FUNCTIONS.si(F,L.mappings[G][Q])}b(P)}}function O(L,D){const P=e.subStores.get(L);return P?P.lookupRule(null,D):null}function A(L){const D=e.subStores.get(L);return D?.base?D.base.category:""}function M(L,D){const P=O(L,D);return P?P.action:null}t.Engine.getInstance().evaluator=M;function C(L={}){for(const D of e.subStores.values())for(const[,P]of D.rules.entries())for(const{cstr:F}of P)L=w(F.getValues(),L);return L}function w(L,D){return D=D||{},L.length&&(D[L[0]]=w(L.slice(1),D[L[0]])),D}function k(){a=i.DynamicCstr.DEFAULT_VALUES[i.Axis.LOCALE],s=i.DynamicCstr.DEFAULT_VALUES[i.Axis.MODALITY]}})(Ea),ee(Ea);var xa={},xr={},Mr={};Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.Span=void 0;class yn{constructor(t,r){this.speech=t,this.attributes=r}static empty(){return new yn("",{})}static stringEmpty(t){return new yn(t,{})}static stringAttr(t,r){return new yn(t,r)}static singleton(t,r={}){return[yn.stringAttr(t,r)]}static node(t,r,n={}){const o=yn.getAttributes(r);return Object.assign(o,n),new yn(t,o)}static getAttributes(t){const r={};for(const n of yn.attributeList)t.hasAttribute(n)&&(r[n]=t.getAttribute(n));return r}}Mr.Span=yn,yn.attributeList=["id","extid"],Object.defineProperty(xr,"__esModule",{value:!0}),xr.AuditoryDescription=xr.AuditoryList=xr.AuditoryItem=void 0;const B8=Ot,D8=Mr;class yp{constructor(t=null){this.data=t,this.prev=null,this.next=null}}xr.AuditoryItem=yp;class j8 extends Set{constructor(t){super(),this.annotations=[],this.anchor=new yp,this.anchor.next=this.anchor,this.anchor.prev=this.anchor,t.forEach(r=>{const n=new yp(r);r.annotation&&this.annotations.push(n),this.push(n)})}first(){return this.empty?null:this.anchor.next}last(){return this.empty?null:this.anchor.prev}push(t){t.next=this.anchor,t.prev=this.anchor.prev,t.prev.next=t,this.anchor.prev=t,super.add(t)}pop(){const t=this.last();return t?(this.delete(t),t):null}delete(t){return this.has(t)?(super.delete(t),t.prev.next=t.next,t.next=t.prev,!0):!1}insertAfter(t,r){this.insertBefore(t,r.next)}insertBefore(t,r){const n=new yp(t);if(!r||!this.has(r)){this.push(n);return}r.prev.next=n,n.prev=r.prev,n.next=r,r.prev=n}prevText(t){do t=t.prev;while(t!==this.anchor&&!t.data.text);return t===this.anchor?null:t}*[Symbol.iterator](){let t=this.anchor.next;for(;t!==this.anchor;)yield t,t=t.next}nextText(t){for(;t!==this.anchor&&!t.data.text;)t=t.next;return t}clear(){this.anchor.next=this.anchor,this.anchor.prev=this.anchor,super.clear()}empty(){return this.anchor.prev===this.anchor&&this.anchor===this.anchor.next}toList(){const t=[];let r=this.anchor.next;for(;r!==this.anchor;)t.push(r.data),r=r.next;return t}}xr.AuditoryList=j8;class gp{static create(t,r={}){return t.text=B8.Grammar.getInstance().apply(t.text,r),new gp(t)}constructor({context:t,text:r,userValue:n,annotation:o,attributes:i,personality:a,layout:s}){this.context=t||"",this.text=r||"",this.userValue=n||"",this.annotation=o||"",this.attributes=i||{},this.personality=a||{},this.layout=s||""}isEmpty(){return this.context.length===0&&this.text.length===0&&this.userValue.length===0&&this.annotation.length===0}clone(){let t;if(this.personality){t={};for(const[n,o]of Object.entries(this.personality))t[n]=o}let r;if(this.attributes){r={};for(const[n,o]of Object.entries(this.attributes))r[n]=o}return new gp({context:this.context,text:this.text,userValue:this.userValue,annotation:this.annotation,personality:t,attributes:r,layout:this.layout})}toString(){return'AuditoryDescription(context="'+this.context+'" text="'+this.text+'" userValue="'+this.userValue+'" annotation="'+this.annotation+'")'}descriptionString(){return this.context&&this.text?this.context+" "+this.text:this.context||this.text}descriptionSpan(){return D8.Span.stringAttr(this.descriptionString(),this.attributes)}equals(t){return this.context===t.context&&this.text===t.text&&this.userValue===t.userValue&&this.annotation===t.annotation}}xr.AuditoryDescription=gp;var ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.addStore=F8,ui.getStore=U8;const og=pt,Wc=new Map;function F8(e,t,r){const n={};if(t){const o=Wc.get(t)||{};Object.assign(n,o)}Wc.set(e,Object.assign(n,r))}function U8(e,t,r){return Wc.get([e,t,r].join("."))||Wc.get([og.DynamicCstr.DEFAULT_VALUES[og.Axis.LOCALE],t,r].join("."))||Wc.get([og.DynamicCstr.BASE_LOCALE,t,r].join("."))||{}}var ig={},ag={},Hn={};Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.nodeCounter=G8,Hn.pauseSeparator=X8,Hn.contentIterator=V8;const US=xr,H8=Rt,q8=Oe;function G8(e,t){const r=e.length;let n=0,o=t;return t||(o=""),function(){return n<r&&(n+=1),o+" "+n}}function X8(e,t){const r=parseFloat(t),n=isNaN(r)?t:r;return function(){return[US.AuditoryDescription.create({text:"",personality:{pause:n}})]}}function V8(e,t){let r;return e.length>0?r=H8.evalXPath("../../content/*",e[0]):r=[],function(){const n=r.shift(),o=t?[US.AuditoryDescription.create({text:t},{translate:!0})]:[];if(!n)return o;const i=q8.Engine.evaluateNode(n);return o.concat(i)}}var zr={},pi={},qn={};Object.defineProperty(qn,"__esModule",{value:!0}),qn.SemanticVisitor=qn.SemanticAnnotator=void 0;class W8{constructor(t,r,n){this.domain=t,this.name=r,this.func=n,this.active=!1}annotate(t){t.childNodes.forEach(this.annotate.bind(this)),t.contentNodes.forEach(this.annotate.bind(this)),t.addAnnotation(this.domain,this.func(t))}}qn.SemanticAnnotator=W8;class $8{constructor(t,r,n,o={}){this.domain=t,this.name=r,this.func=n,this.def=o,this.active=!1}visit(t,r){let n=this.func(t,r);t.addAnnotation(this.domain,n[0]);for(let o=0,i;i=t.childNodes[o];o++)n=this.visit(i,n[1]);for(let o=0,i;i=t.contentNodes[o];o++)n=this.visit(i,n[1]);return n}}qn.SemanticVisitor=$8,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.visitors=e.annotators=void 0,e.register=r,e.activate=n,e.deactivate=o,e.annotate=i;const t=qn;e.annotators=new Map,e.visitors=new Map;function r(a){const s=a.domain+":"+a.name;a instanceof t.SemanticAnnotator?e.annotators.set(s,a):e.visitors.set(s,a)}function n(a,s){const c=a+":"+s,l=e.annotators.get(c)||e.visitors.get(c);l&&(l.active=!0)}function o(a,s){const c=a+":"+s,l=e.annotators.get(c)||e.visitors.get(c);l&&(l.active=!1)}function i(a){for(const s of e.annotators.values())s.active&&s.annotate(a);for(const s of e.visitors.values())s.active&&s.visit(a,Object.assign({},s.def))}})(pi),ee(pi),Object.defineProperty(zr,"__esModule",{value:!0}),zr.nodeCounter=Z8,zr.allCellsSimple=lR,zr.isSmallVulgarFraction=uR,zr.ordinalExponent=hR,zr.nestingDepth=fR,zr.matchingFences=mR,zr.fencedArguments=gR,zr.simpleArguments=bR,zr.wordOrdinal=SR;const sg=Mr,HS=he,z8=Oe,bp=Rt,vp=Re,K8=Lt,J8=Ot,Y8=Hn,qS=pi,GS=qn,Q8=Er,le=Se;function Z8(e,t){const r=t.split("-"),n=Y8.nodeCounter(e,r[0]||""),o=r[1]||"",i=r[2]||"";let a=!0;return function(){const s=n();return a?(a=!1,i+s+o):s+o}}function eR(e){return lg(e)||oR(e)||nR(e)||rR(e)||tR(e)}function tR(e){return e.type===le.SemanticType.APPL&&(e.childNodes[0].role===le.SemanticRole.PREFIXFUNC||e.childNodes[0].role===le.SemanticRole.SIMPLEFUNC)&&(cg(e.childNodes[1])||e.childNodes[1].type===le.SemanticType.FENCED&&cg(e.childNodes[1].childNodes[0]))}function rR(e){return e.type===le.SemanticType.PREFIXOP&&e.role===le.SemanticRole.NEGATIVE&&cg(e.childNodes[0])&&e.childNodes[0].type!==le.SemanticType.PREFIXOP&&e.childNodes[0].type!==le.SemanticType.APPL&&e.childNodes[0].type!==le.SemanticType.PUNCTUATED}function nR(e){return e.type===le.SemanticType.PUNCTUATED&&e.role===le.SemanticRole.ENDPUNCT&&e.childNodes.length===2&&e.childNodes[1].role===le.SemanticRole.DEGREE&&(di(e.childNodes[0])||Sp(e.childNodes[0])||e.childNodes[0].type===le.SemanticType.PREFIXOP&&e.childNodes[0].role===le.SemanticRole.NEGATIVE&&(di(e.childNodes[0].childNodes[0])||Sp(e.childNodes[0].childNodes[0])))}function oR(e){return di(e)||e.type===le.SemanticType.INFIXOP&&e.role===le.SemanticRole.IMPLICIT&&(e.childNodes.length===2&&(di(e.childNodes[0])||lg(e.childNodes[0]))&&di(e.childNodes[1])||e.childNodes.length===3&&lg(e.childNodes[0])&&di(e.childNodes[1])&&di(e.childNodes[2]))}function cg(e){return e.hasAnnotation("clearspeak","simple")}function di(e){return e.type===le.SemanticType.IDENTIFIER&&(e.role===le.SemanticRole.LATINLETTER||e.role===le.SemanticRole.GREEKLETTER||e.role===le.SemanticRole.OTHERLETTER||e.role===le.SemanticRole.SIMPLEFUNC)}function Sp(e){return e.type===le.SemanticType.NUMBER&&(e.role===le.SemanticRole.INTEGER||e.role===le.SemanticRole.FLOAT)}function lg(e){return Sp(e)||iR(e)}function iR(e){if(ug("Fraction_Over")||ug("Fraction_FracOver")||e.type!==le.SemanticType.FRACTION||e.role!==le.SemanticRole.VULGAR)return!1;if(ug("Fraction_Ordinal"))return!0;const t=parseInt(e.childNodes[0].textContent,10),r=parseInt(e.childNodes[1].textContent,10);return t>0&&t<20&&r>0&&r<11}function ug(e){return z8.Engine.getInstance().style===e}(0,qS.register)(new GS.SemanticAnnotator("clearspeak","simple",function(e){return eR(e)?"simple":""}));function aR(e){if(!e.hasAttribute("annotation"))return!1;const t=e.getAttribute("annotation");return!!/clearspeak:simple$|clearspeak:simple;/.exec(t)}function sR(e){if(aR(e))return!0;if(e.tagName!==le.SemanticType.SUBSCRIPT)return!1;const t=e.childNodes[0].childNodes,r=t[1];return t[0].tagName===le.SemanticType.IDENTIFIER&&(XS(r)||r.tagName===le.SemanticType.INFIXOP&&r.hasAttribute("role")&&r.getAttribute("role")===le.SemanticRole.IMPLICIT&&cR(r))}function XS(e){return e.tagName===le.SemanticType.NUMBER&&e.hasAttribute("role")&&e.getAttribute("role")===le.SemanticRole.INTEGER}function cR(e){return bp.evalXPath("children/*",e).every(t=>XS(t)||t.tagName===le.SemanticType.IDENTIFIER)}function lR(e){const t=e.tagName===le.SemanticType.MATRIX?"children/row/children/cell/children/*":"children/line/children/*";return bp.evalXPath(t,e).every(sR)?[e]:[]}function uR(e){return(0,K8.vulgarFractionSmall)(e,20,11)?[e]:[]}function pR(e){return e.type===le.SemanticType.TEXT&&e.role!==le.SemanticRole.LABEL||e.type===le.SemanticType.PUNCTUATED&&e.role===le.SemanticRole.TEXT&&Sp(e.childNodes[0])&&dR(e.childNodes.slice(1))||e.type===le.SemanticType.IDENTIFIER&&e.role===le.SemanticRole.UNIT||e.type===le.SemanticType.INFIXOP&&(e.role===le.SemanticRole.IMPLICIT||e.role===le.SemanticRole.UNIT)}function dR(e){for(let t=0;t<e.length-1;t++)if(!(e[t].type===le.SemanticType.TEXT&&e[t].textContent===""))return!1;return e[e.length-1].type===le.SemanticType.TEXT}(0,qS.register)(new GS.SemanticAnnotator("clearspeak","unit",function(e){return pR(e)?"unit":""}));function hR(e){const t=parseInt(e.textContent,10);return[sg.Span.stringEmpty(isNaN(t)?e.textContent:t>10?vp.LOCALE.NUMBERS.numericOrdinal(t):vp.LOCALE.NUMBERS.wordOrdinal(t))]}let VS=null;function fR(e){let t=0;const r=e.textContent,n=e.getAttribute("role")==="open"?0:1;let o=e.parentNode;for(;o;)o.tagName===le.SemanticType.FENCED&&o.childNodes[0].childNodes[n].textContent===r&&t++,o=o.parentNode;return VS=t>1?vp.LOCALE.NUMBERS.wordOrdinal(t):"",[sg.Span.stringEmpty(VS)]}function mR(e){const t=e.previousSibling;let r,n;return t?(r=t,n=e):(r=e,n=e.nextSibling),n?(0,Q8.isMatchingFence)(r.textContent,n.textContent)?[e]:[]:[]}function yR(e,t){if(!t||!e)return e;const r=e.match(/^(open|close) /);return r?r[0]+t+" "+e.substring(r[0].length):t+" "+e}J8.Grammar.getInstance().setCorrection("insertNesting",yR);function gR(e){const t=HS.toArray(e.parentNode.childNodes),r=bp.evalXPath("../../children/*",e),n=t.indexOf(e);return $S(r[n])||$S(r[n+1])?[e]:[]}function bR(e){const t=HS.toArray(e.parentNode.childNodes),r=bp.evalXPath("../../children/*",e),n=t.indexOf(e);return WS(r[n])&&r[n+1]&&(WS(r[n+1])||r[n+1].tagName===le.SemanticType.ROOT||r[n+1].tagName===le.SemanticType.SQRT||r[n+1].tagName===le.SemanticType.SUPERSCRIPT&&r[n+1].childNodes[0].childNodes[0]&&(r[n+1].childNodes[0].childNodes[0].tagName===le.SemanticType.NUMBER||r[n+1].childNodes[0].childNodes[0].tagName===le.SemanticType.IDENTIFIER)&&(r[n+1].childNodes[0].childNodes[1].textContent==="2"||r[n+1].childNodes[0].childNodes[1].textContent==="3"))?[e]:[]}function WS(e){return!!e&&(e.tagName===le.SemanticType.NUMBER||e.tagName===le.SemanticType.IDENTIFIER||e.tagName===le.SemanticType.FUNCTION||e.tagName===le.SemanticType.APPL||e.tagName===le.SemanticType.FRACTION)}function $S(e){return e&&(e.tagName===le.SemanticType.FENCED||e.hasAttribute("role")&&e.getAttribute("role")===le.SemanticRole.LEFTRIGHT||vR(e))}function vR(e){return!!e&&(e.tagName===le.SemanticType.MATRIX||e.tagName===le.SemanticType.VECTOR)}function SR(e){return[sg.Span.stringEmpty(vp.LOCALE.NUMBERS.wordOrdinal(parseInt(e.textContent,10)))]}var be={},Gn={};Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.removeEmpty=ER,Gn.interleaveLists=xR,Gn.setdifference=MR;function ER(e){return e.filter(t=>t)}function xR(e,t){const r=[];for(;e.length||t.length;)e.length&&r.push(e.shift()),t.length&&r.push(t.shift());return r}function MR(e,t){return e?t?e.filter(r=>t.indexOf(r)<0):e:[]}var Ma={},Oa={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticHeuristics=void 0,e.SemanticHeuristics={factory:null,updateFactory:function(t){e.SemanticHeuristics.factory=t},heuristics:new Map,flags:{combine_juxtaposition:!0,convert_juxtaposition:!0,multioperator:!0},blacklist:{},add:function(t){const r=t.name;e.SemanticHeuristics.heuristics.set(r,t),e.SemanticHeuristics.flags[r]||(e.SemanticHeuristics.flags[r]=!1)},run:function(t,r,n){const o=e.SemanticHeuristics.heuristics.get(t);return o&&!e.SemanticHeuristics.blacklist[t]&&(e.SemanticHeuristics.flags[t]||o.applicable(r))?o.apply(r):n?n(r):r}}})(Oa),ee(Oa);var Aa={},Xn={},pg={};Object.defineProperty(pg,"__esModule",{value:!0}),pg.reduce=TR;const dg=Se,zS=[];function OR(e){zS.push(e)}function KS(e,t){for(let r=0,n;n=zS[r];r++){const o=n.compare(e,t);if(o!==0)return o}return 0}function AR(e){e.sort(KS)}function TR(e){if(e.length<=1)return e;const t=e.slice();AR(t);const r=[];let n;do n=t.pop(),r.push(n);while(n&&t.length&&KS(t[t.length-1],n)===0);return r}class CR{constructor(t,r=null){this.comparator=t,this.type=r,OR(this)}compare(t,r){return this.type&&this.type===t.type&&this.type===r.type?this.comparator(t,r):0}}function NR(e,t){return e.role===dg.SemanticRole.SIMPLEFUNC?1:t.role===dg.SemanticRole.SIMPLEFUNC?-1:0}new CR(NR,dg.SemanticType.IDENTIFIER),Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.SemanticMeaningCollator=Xn.SemanticNodeCollator=Xn.SemanticDefault=void 0;const _R=Er,wR=pg;function $c(e,t){return e.match(/^.+:.+$/)||!t?e:e+":"+t}class JS extends Map{set(t,r){return super.set($c(t,r.font),r),this}setNode(t){this.set(t.textContent,t.meaning())}get(t,r=null){return super.get($c(t,r))}getNode(t){return this.get(t.textContent,t.font)}}Xn.SemanticDefault=JS;class YS extends Map{add(t,r){const n=this.get(t);n?n.push(r):super.set(t,[r])}get(t,r=null){return super.get($c(t,r))}getNode(t){return this.get(t.textContent,t.font)}minimize(){for(const[t,r]of this)r.length===1&&this.delete(t)}isMultiValued(){for(const t of this.values())if(t.length>1)return!0;return!1}}class RR extends YS{add(t,r){super.add($c(t,r.font),r)}addNode(t){this.add(t.textContent,t)}toString(){const t=[];for(const[r,n]of this){const o=Array(r.length+3).join(" "),i=n.map(a=>a.toString()).join(`
14
+ `+o);t.push(r+": "+i)}return t.join(`
15
+ `)}collateMeaning(){const t=new QS;for(const[r,n]of this)t.set(r,n.map(o=>o.meaning()));return t}}Xn.SemanticNodeCollator=RR;class QS extends YS{add(t,r){const n=this.get(t,r.font);(!n||!n.find(function(o){return _R.equal(o,r)}))&&super.add($c(t,r.font),r)}addNode(t){this.add(t.textContent,t.meaning())}toString(){const t=[];for(const[r,n]of this){const o=Array(r.length+3).join(" "),i=n.map(a=>`{type: ${a.type}, role: ${a.role}, font: ${a.font}}`).join(`
16
+ `+o);t.push(r+": "+i)}return t.join(`
17
+ `)}reduce(){for(const[t,r]of this)r.length!==1&&this.set(t,(0,wR.reduce)(r))}default(){const t=new JS;for(const[r,n]of this)n.length===1&&t.set(r,n[0]);return t}newDefault(){const t=this.default();this.reduce();const r=this.default();return t.size!==r.size?r:null}}Xn.SemanticMeaningCollator=QS;var Ta={},je={};Object.defineProperty(je,"__esModule",{value:!0}),je.MMLTAGS=void 0,je.hasMathTag=BR,je.hasIgnoreTag=jR,je.hasEmptyTag=FR,je.hasDisplayTag=UR,je.isOrphanedGlyph=HR,je.purgeNodes=qR,je.isZeroLength=GR,je.addAttributes=XR,je.getEmbellishedInner=tE,je.sliceNodes=rE,je.partitionNodes=VR;const Vn=he;var Ke;(function(e){e.ANNOTATION="ANNOTATION",e.ANNOTATIONXML="ANNOTATION-XML",e.MACTION="MACTION",e.MALIGNGROUP="MALIGNGROUP",e.MALIGNMARK="MALIGNMARK",e.MATH="MATH",e.MENCLOSE="MENCLOSE",e.MERROR="MERROR",e.MFENCED="MFENCED",e.MFRAC="MFRAC",e.MGLYPH="MGLYPH",e.MI="MI",e.MLABELEDTR="MLABELEDTR",e.MMULTISCRIPTS="MMULTISCRIPTS",e.MN="MN",e.MO="MO",e.MOVER="MOVER",e.MPADDED="MPADDED",e.MPHANTOM="MPHANTOM",e.MPRESCRIPTS="MPRESCRIPTS",e.MROOT="MROOT",e.MROW="MROW",e.MS="MS",e.MSPACE="MSPACE",e.MSQRT="MSQRT",e.MSTYLE="MSTYLE",e.MSUB="MSUB",e.MSUBSUP="MSUBSUP",e.MSUP="MSUP",e.MTABLE="MTABLE",e.MTD="MTD",e.MTEXT="MTEXT",e.MTR="MTR",e.MUNDER="MUNDER",e.MUNDEROVER="MUNDEROVER",e.NONE="NONE",e.SEMANTICS="SEMANTICS"})(Ke||(je.MMLTAGS=Ke={}));const LR=Object.values(Ke),IR=[Ke.MO,Ke.MI,Ke.MN,Ke.MTEXT,Ke.MS,Ke.MSPACE],ZS=[Ke.MERROR,Ke.MPHANTOM,Ke.MALIGNGROUP,Ke.MALIGNMARK,Ke.MPRESCRIPTS,Ke.ANNOTATION,Ke.ANNOTATIONXML],eE=[Ke.MATH,Ke.MROW,Ke.MPADDED,Ke.MACTION,Ke.NONE,Ke.MSTYLE,Ke.SEMANTICS],PR=[Ke.MROOT,Ke.MSQRT],kR=["aria-label","exact-speech","alt"];function BR(e){return!!e&&Vn.tagName(e)===Ke.MATH}function DR(e){return!!e&&IR.includes(Vn.tagName(e))}function jR(e){return!!e&&(ZS.includes(Vn.tagName(e))||!LR.includes(Vn.tagName(e)))}function FR(e){return!!e&&eE.includes(Vn.tagName(e))}function UR(e){return!!e&&PR.includes(Vn.tagName(e))}function HR(e){return!!e&&Vn.tagName(e)===Ke.MGLYPH&&!DR(e.parentNode)}function qR(e){const t=[];for(let r=0,n;n=e[r];r++){if(n.nodeType!==Vn.NodeType.ELEMENT_NODE)continue;const o=Vn.tagName(n);ZS.includes(o)||eE.includes(o)&&n.childNodes.length===0||t.push(n)}return t}function GR(e){if(!e)return!1;if(["negativeveryverythinmathspace","negativeverythinmathspace","negativethinmathspace","negativemediummathspace","negativethickmathspace","negativeverythickmathspace","negativeveryverythickmathspace"].includes(e))return!0;const t=e.match(/[0-9.]+/);return t?parseFloat(t[0])===0:!1}function XR(e,t){if(t.hasAttributes()){const r=t.attributes;for(let n=r.length-1;n>=0;n--){const o=r[n].name;o.match(/^ext/)&&(e.attributes[o]=r[n].value,e.nobreaking=!0),kR.includes(o)&&(e.attributes["ext-speech"]=r[n].value,e.nobreaking=!0),o.match(/texclass$/)&&(e.attributes.texclass=r[n].value),o.toLowerCase()==="data-latex"&&(e.attributes.latex=r[n].value),o==="href"&&(e.attributes.href=r[n].value,e.nobreaking=!0)}}}function tE(e){return e&&e.embellished&&e.childNodes.length>0?tE(e.childNodes[0]):e}function rE(e,t,r){r&&e.reverse();const n=[];for(let o=0,i;i=e[o];o++){if(t(i))return r?{head:e.slice(o+1).reverse(),div:i,tail:n.reverse()}:{head:n,div:i,tail:e.slice(o+1)};n.push(i)}return r?{head:[],div:null,tail:n.reverse()}:{head:n,div:null,tail:[]}}function VR(e,t){let r=e;const n=[],o=[];let i=null;do i=rE(r,t),o.push(i.head),n.push(i.div),r=i.tail;while(i.div);return n.pop(),{rel:n,comp:o}}Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.SemanticNode=void 0;const Ca=he,WR=Er,Ep=Se,$R=je;class gn{static fromXml(t){const r=parseInt(t.getAttribute("id"),10),n=new gn(r);return n.type=t.tagName,gn.setAttribute(n,t,"role"),gn.setAttribute(n,t,"font"),gn.setAttribute(n,t,"embellished"),gn.setAttribute(n,t,"fencepointer","fencePointer"),t.getAttribute("annotation")&&n.parseAnnotation(t.getAttribute("annotation")),$R.addAttributes(n,t),gn.processChildren(n,t),n}static setAttribute(t,r,n,o){o=o||n;const i=r.getAttribute(n);i&&(t[o]=i)}static processChildren(t,r){for(const n of Ca.toArray(r.childNodes)){if(n.nodeType===Ca.NodeType.TEXT_NODE){t.textContent=n.textContent;continue}const o=Ca.toArray(n.childNodes).map(gn.fromXml);o.forEach(i=>i.parent=t),Ca.tagName(n)==="CONTENT"?t.contentNodes=o:t.childNodes=o}}constructor(t){this.id=t,this.mathml=[],this.parent=null,this.type=Ep.SemanticType.UNKNOWN,this.role=Ep.SemanticRole.UNKNOWN,this.font=Ep.SemanticFont.UNKNOWN,this.embellished=null,this.fencePointer="",this.childNodes=[],this.textContent="",this.mathmlTree=null,this.contentNodes=[],this.annotation={},this.attributes={},this.nobreaking=!1}querySelectorAll(t){let r=[];for(let n=0,o;o=this.childNodes[n];n++)r=r.concat(o.querySelectorAll(t));for(let n=0,o;o=this.contentNodes[n];n++)r=r.concat(o.querySelectorAll(t));return t(this)&&r.unshift(this),r}xml(t,r){const n=function(i,a){const s=a.map(function(l){return l.xml(t,r)}),c=t.createElementNS("",i);for(let l=0,u;u=s[l];l++)c.appendChild(u);return c},o=t.createElementNS("",this.type);return r||this.xmlAttributes(o),o.textContent=this.textContent,this.contentNodes.length>0&&o.appendChild(n("content",this.contentNodes)),this.childNodes.length>0&&o.appendChild(n("children",this.childNodes)),o}toString(t=!1){const r=Ca.parseInput("<snode/>");return Ca.serializeXml(this.xml(r.ownerDocument,t))}allAttributes(){const t=[];return t.push(["role",this.role]),this.font!==Ep.SemanticFont.UNKNOWN&&t.push(["font",this.font]),Object.keys(this.annotation).length&&t.push(["annotation",this.annotationXml()]),this.embellished&&t.push(["embellished",this.embellished]),this.fencePointer&&t.push(["fencepointer",this.fencePointer]),t.push(["id",this.id.toString()]),t}annotationXml(){const t=[];for(const[r,n]of Object.entries(this.annotation))n.forEach(o=>t.push(r+":"+o));return t.join(";")}attributesXml(){const t=[];for(const[r,n]of Object.entries(this.attributes))t.push(r+":"+gn.escapeValue(n));return t.join(";")}toJson(){const t={};t.type=this.type;const r=this.allAttributes();for(let n=0,o;o=r[n];n++)t[o[0]]=o[1].toString();return this.textContent&&(t.$t=this.textContent),this.childNodes.length&&(t.children=this.childNodes.map(function(n){return n.toJson()})),this.contentNodes.length&&(t.content=this.contentNodes.map(function(n){return n.toJson()})),t}updateContent(t,r){const n=r?t.replace(/^[ \f\n\r\t\v\u200b]*/,"").replace(/[ \f\n\r\t\v\u200b]*$/,""):t.trim();if(t=t&&!n?t:n,this.textContent===t)return;const o=WR.SemanticMap.Meaning.get(t.replace(/\s/g," "));this.textContent=t,this.role=o.role,this.type=o.type,this.font=o.font}addMathmlNodes(t){for(let r=0,n;n=t[r];r++)this.mathml.indexOf(n)===-1&&this.mathml.push(n)}appendChild(t){this.childNodes.push(t),this.addMathmlNodes(t.mathml),t.parent=this}replaceChild(t,r){const n=this.childNodes.indexOf(t);if(n===-1)return;t.parent=null,r.parent=this,this.childNodes[n]=r;const o=t.mathml.filter(function(a){return r.mathml.indexOf(a)===-1}),i=r.mathml.filter(function(a){return t.mathml.indexOf(a)===-1});this.removeMathmlNodes(o),this.addMathmlNodes(i)}appendContentNode(t){t&&(this.contentNodes.push(t),this.addMathmlNodes(t.mathml),t.parent=this)}removeContentNode(t){if(t){const r=this.contentNodes.indexOf(t);r!==-1&&this.contentNodes.slice(r,1)}}equals(t){if(!t||this.type!==t.type||this.role!==t.role||this.textContent!==t.textContent||this.childNodes.length!==t.childNodes.length||this.contentNodes.length!==t.contentNodes.length)return!1;for(let r=0,n,o;n=this.childNodes[r],o=t.childNodes[r];r++)if(!n.equals(o))return!1;for(let r=0,n,o;n=this.contentNodes[r],o=t.contentNodes[r];r++)if(!n.equals(o))return!1;return!0}displayTree(){console.info(this.displayTree_(0))}addAnnotation(t,r){r&&this.addAnnotation_(t,r)}getAnnotation(t){return this.annotation[t]||[]}hasAnnotation(t,r){const n=this.annotation[t];return n?n.indexOf(r)!==-1:!1}parseAnnotation(t){const r=t.split(";");for(let n=0,o=r.length;n<o;n++){const i=r[n].split(":");this.addAnnotation(i[0],i[1])}}meaning(){return{type:this.type,role:this.role,font:this.font}}xmlAttributes(t){const r=this.allAttributes();for(let n=0,o;o=r[n];n++)t.setAttribute(o[0],o[1]);this.addExternalAttributes(t)}addExternalAttributes(t){for(const[r,n]of Object.entries(this.attributes))t.setAttribute(r,n)}static escapeValue(t){return t.replace(/;/g,"\\0003B")}parseAttributes(t){if(!t)return;const r=t.split(";");for(let n=0,o=r.length;n<o;n++){const[i,...a]=r[n].split(":");i&&(this.attributes[i]=a.join("").replace(/\\0003B/g,";"))}}removeMathmlNodes(t){const r=this.mathml;for(let n=0,o;o=t[n];n++){const i=r.indexOf(o);i!==-1&&r.splice(i,1)}this.mathml=r}displayTree_(t){t++;const r=Array(t).join(" ");let n="";n+=`
18
+ `+r+this.toString(),n+=`
19
+ `+r+"MathmlTree:",n+=`
20
+ `+r+this.mathmlTreeString(),n+=`
21
+ `+r+"MathML:";for(let o=0,i;i=this.mathml[o];o++)n+=`
22
+ `+r+i.toString();return n+=`
23
+ `+r+"Begin Content",this.contentNodes.forEach(function(o){n+=o.displayTree_(t)}),n+=`
24
+ `+r+"End Content",n+=`
25
+ `+r+"Begin Children",this.childNodes.forEach(function(o){n+=o.displayTree_(t)}),n+=`
26
+ `+r+"End Children",n}mathmlTreeString(){return this.mathmlTree?this.mathmlTree.toString():"EMPTY"}addAnnotation_(t,r){const n=this.annotation[t];n&&!n.includes(r)?n.push(r):this.annotation[t]=[r]}}Ta.SemanticNode=gn,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.SemanticNodeFactory=void 0;const zR=Se,KR=Xn,JR=Xn,YR=Ta;class QR{constructor(){this.leafMap=new JR.SemanticNodeCollator,this.defaultMap=new KR.SemanticDefault,this.idCounter_=-1}makeNode(t){return this.createNode_(t)}makeUnprocessed(t){const r=this.createNode_();return r.mathml=[t],r.mathmlTree=t,r}makeEmptyNode(){const t=this.createNode_();return t.type=zR.SemanticType.EMPTY,t}makeContentNode(t){const r=this.createNode_();return r.updateContent(t),r}makeMultipleContentNodes(t,r){const n=[];for(let o=0;o<t;o++)n.push(this.makeContentNode(r));return n}makeLeafNode(t,r){if(!t)return this.makeEmptyNode();const n=this.makeContentNode(t);n.font=r||n.font;const o=this.defaultMap.getNode(n);return o&&(n.type=o.type,n.role=o.role,n.font=o.font),this.leafMap.addNode(n),n}makeBranchNode(t,r,n,o){const i=this.createNode_();return o&&i.updateContent(o),i.type=t,i.childNodes=r,i.contentNodes=n,r.concat(n).forEach(function(a){a.parent=i,i.addMathmlNodes(a.mathml)}),i}createNode_(t){return typeof t<"u"?this.idCounter_=Math.max(this.idCounter_,t):t=++this.idCounter_,new YR.SemanticNode(t)}}Aa.SemanticNodeFactory=QR;var Ee={};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.isType=Le,Ee.isRole=Wn,Ee.isAccent=ZR,Ee.isSimpleFunctionScope=eL,Ee.isPrefixFunctionBoundary=tL,Ee.isBigOpBoundary=rL,Ee.isIntegralDxBoundary=nL,Ee.isIntegralDxBoundarySingle=oL,Ee.isGeneralFunctionBoundary=fg,Ee.isEmbellished=iL,Ee.isOperator=mg,Ee.isRelation=oE,Ee.isPunctuation=iE,Ee.isFence=aE,Ee.isElligibleEmbellishedFence=sL,Ee.isTableOrMultiline=cE,Ee.tableIsMatrixOrVector=lL,Ee.isFencedElement=lE,Ee.tableIsCases=uL,Ee.tableIsMultiline=pL,Ee.lineIsLabelled=dL,Ee.isBinomial=hL,Ee.isLimitBase=uE,Ee.isSimpleFunctionHead=fL,Ee.singlePunctAtPosition=mL,Ee.isSimpleFunction=yL,Ee.isSetNode=vL,Ee.isSingletonSetContent=yg,Ee.isUnitCounter=pE,Ee.isPureUnit=gg,Ee.isUnitProduct=ML,Ee.isImplicit=OL,Ee.isImplicitOp=AL,Ee.isNeutralFence=Na,Ee.compareNeutralFences=TL,Ee.elligibleLeftNeutral=CL,Ee.elligibleRightNeutral=NL,Ee.isMembership=_L;const hg=Er,$=Se,nE=je;function Le(e,t){return e.type===t}function xp(e,t){return e.embellished===t}function Wn(e,t){return e.role===t}function ZR(e){return Le(e,$.SemanticType.FENCE)||Le(e,$.SemanticType.PUNCTUATION)||Le(e,$.SemanticType.OPERATOR)||Le(e,$.SemanticType.RELATION)}function eL(e){const t=e.childNodes;if(t.length===0)return!0;if(t.length>1)return!1;const r=t[0];return!(r.type===$.SemanticType.INFIXOP&&(r.role!==$.SemanticRole.IMPLICIT||r.childNodes.some(n=>Le(n,$.SemanticType.INFIXOP))))}function tL(e){return mg(e)&&!Wn(e,$.SemanticRole.DIVISION)||Le(e,$.SemanticType.APPL)||fg(e)}function rL(e){return mg(e)||fg(e)}function nL(e,t){return!!t&&Le(t,$.SemanticType.IDENTIFIER)&&hg.SemanticMap.Secondary.has(e.textContent,$.SemanticSecondary.D)}function oL(e){if(Le(e,$.SemanticType.IDENTIFIER)){const t=e.textContent[0];return t&&e.textContent[1]&&hg.SemanticMap.Secondary.has(t,$.SemanticSecondary.D)}return!1}function fg(e){return oE(e)||iE(e)}function iL(e){return e.embellished?e.embellished:aL(e.type)?e.type:null}function aL(e){return e===$.SemanticType.OPERATOR||e===$.SemanticType.RELATION||e===$.SemanticType.FENCE||e===$.SemanticType.PUNCTUATION}function mg(e){return Le(e,$.SemanticType.OPERATOR)||xp(e,$.SemanticType.OPERATOR)}function oE(e){return Le(e,$.SemanticType.RELATION)||xp(e,$.SemanticType.RELATION)}function iE(e){return Le(e,$.SemanticType.PUNCTUATION)||xp(e,$.SemanticType.PUNCTUATION)}function aE(e){return Le(e,$.SemanticType.FENCE)||xp(e,$.SemanticType.FENCE)}function sL(e){return!e||!aE(e)?!1:e.embellished?sE(e):!0}function cL(e){return Le(e,$.SemanticType.TENSOR)&&(!Le(e.childNodes[1],$.SemanticType.EMPTY)||!Le(e.childNodes[2],$.SemanticType.EMPTY))&&(!Le(e.childNodes[3],$.SemanticType.EMPTY)||!Le(e.childNodes[4],$.SemanticType.EMPTY))}function sE(e){return e.embellished?cL(e)||Wn(e,$.SemanticRole.CLOSE)&&Le(e,$.SemanticType.TENSOR)||Wn(e,$.SemanticRole.OPEN)&&(Le(e,$.SemanticType.SUBSCRIPT)||Le(e,$.SemanticType.SUPERSCRIPT))?!1:sE(e.childNodes[0]):!0}function cE(e){return!!e&&(Le(e,$.SemanticType.TABLE)||Le(e,$.SemanticType.MULTILINE))}function lL(e){return!!e&&lE(e)&&cE(e.childNodes[0])}function lE(e){return!!e&&Le(e,$.SemanticType.FENCED)&&(Wn(e,$.SemanticRole.LEFTRIGHT)||Na(e))&&e.childNodes.length===1}function uL(e,t){return t.length>0&&Wn(t[t.length-1],$.SemanticRole.OPENFENCE)}function pL(e){return e.childNodes.every(function(t){return t.childNodes.length<=1})}function dL(e){return Le(e,$.SemanticType.LINE)&&e.contentNodes.length&&Wn(e.contentNodes[0],$.SemanticRole.LABEL)}function hL(e){return e.childNodes.length===2}function uE(e){return Le(e,$.SemanticType.LARGEOP)||Le(e,$.SemanticType.LIMBOTH)||Le(e,$.SemanticType.LIMLOWER)||Le(e,$.SemanticType.LIMUPPER)||Le(e,$.SemanticType.FUNCTION)&&Wn(e,$.SemanticRole.LIMFUNC)||(Le(e,$.SemanticType.OVERSCORE)||Le(e,$.SemanticType.UNDERSCORE))&&uE(e.childNodes[0])}function fL(e){return e.type===$.SemanticType.IDENTIFIER||e.role===$.SemanticRole.LATINLETTER||e.role===$.SemanticRole.GREEKLETTER||e.role===$.SemanticRole.OTHERLETTER}function mL(e,t,r){return t.length===1&&(e[r].type===$.SemanticType.PUNCTUATION||e[r].embellished===$.SemanticType.PUNCTUATION)&&e[r]===t[0]}function yL(e){return Le(e,$.SemanticType.IDENTIFIER)&&Wn(e,$.SemanticRole.SIMPLEFUNC)}function gL(e){return!!e&&["{","﹛","{"].indexOf(e.textContent)!==-1}function bL(e){return!!e&&["}","﹜","}"].indexOf(e.textContent)!==-1}function vL(e){return gL(e.contentNodes[0])&&bL(e.contentNodes[1])}const SL=[$.SemanticType.PUNCTUATION,$.SemanticType.PUNCTUATED,$.SemanticType.RELSEQ,$.SemanticType.MULTIREL,$.SemanticType.TABLE,$.SemanticType.MULTILINE,$.SemanticType.CASES,$.SemanticType.INFERENCE],EL=[$.SemanticType.LIMUPPER,$.SemanticType.LIMLOWER,$.SemanticType.LIMBOTH,$.SemanticType.SUBSCRIPT,$.SemanticType.SUPERSCRIPT,$.SemanticType.UNDERSCORE,$.SemanticType.OVERSCORE,$.SemanticType.TENSOR];function yg(e){const t=e.type;return SL.indexOf(t)!==-1||t===$.SemanticType.INFIXOP&&e.role!==$.SemanticRole.IMPLICIT?!1:t===$.SemanticType.FENCED?e.role===$.SemanticRole.LEFTRIGHT?yg(e.childNodes[0]):!0:EL.indexOf(t)!==-1?yg(e.childNodes[0]):!0}function xL(e){return e.type===$.SemanticType.NUMBER&&(e.role===$.SemanticRole.INTEGER||e.role===$.SemanticRole.FLOAT)}function pE(e){return xL(e)||e.role===$.SemanticRole.VULGAR||e.role===$.SemanticRole.MIXED}function gg(e){const t=e.childNodes;return e.role===$.SemanticRole.UNIT&&(!t.length||t[0].role===$.SemanticRole.UNIT)}function ML(e){const t=e.childNodes;return e.type===$.SemanticType.INFIXOP&&(e.role===$.SemanticRole.MULTIPLICATION||e.role===$.SemanticRole.IMPLICIT)&&t.length&&(gg(t[0])||pE(t[0]))&&e.childNodes.slice(1).every(gg)}function OL(e){return e.type===$.SemanticType.INFIXOP&&(e.role===$.SemanticRole.IMPLICIT||e.role===$.SemanticRole.UNIT&&!!e.contentNodes.length&&e.contentNodes[0].textContent===hg.NamedSymbol.invisibleTimes)}function AL(e){return e.type===$.SemanticType.INFIXOP&&e.role===$.SemanticRole.IMPLICIT}function Na(e){return e.role===$.SemanticRole.NEUTRAL||e.role===$.SemanticRole.METRIC}function TL(e,t){return Na(e)&&Na(t)&&(0,nE.getEmbellishedInner)(e).textContent===(0,nE.getEmbellishedInner)(t).textContent}function CL(e){return Na(e)?e.embellished?!(e.type===$.SemanticType.SUPERSCRIPT||e.type===$.SemanticType.SUBSCRIPT||e.type===$.SemanticType.TENSOR&&(e.childNodes[3].type!==$.SemanticType.EMPTY||e.childNodes[4].type!==$.SemanticType.EMPTY)):!0:!1}function NL(e){return Na(e)?e.embellished?!(e.type===$.SemanticType.TENSOR&&(e.childNodes[1].type!==$.SemanticType.EMPTY||e.childNodes[2].type!==$.SemanticType.EMPTY)):!0:!1}function _L(e){return[$.SemanticRole.ELEMENT,$.SemanticRole.NONELEMENT,$.SemanticRole.REELEMENT,$.SemanticRole.RENONELEMENT].includes(e.role)}Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.SemanticProcessor=void 0;const bn=he,vn=Er,_=Se,Dt=Oa,wL=Aa,z=Ee,yt=je,gt=je;class R{static getInstance(){return R.instance=R.instance||new R,R.instance}static tableToMultiline(t){if(!z.tableIsMultiline(t))return Dt.SemanticHeuristics.run("rewrite_subcases",t,R.classifyTable);t.type=_.SemanticType.MULTILINE;for(let r=0,n;n=t.childNodes[r];r++)R.rowToLine_(n,_.SemanticRole.MULTILINE);return t.childNodes.length===1&&!z.lineIsLabelled(t.childNodes[0])&&z.isFencedElement(t.childNodes[0].childNodes[0])&&R.tableToMatrixOrVector_(R.rewriteFencedLine_(t)),R.binomialForm_(t),R.classifyMultiline(t),t}static number(t){(t.type===_.SemanticType.UNKNOWN||t.type===_.SemanticType.IDENTIFIER)&&(t.type=_.SemanticType.NUMBER),R.meaningFromContent(t,R.numberRole_),R.exprFont_(t)}static classifyMultiline(t){let r=0;const n=t.childNodes.length;let o;for(;r<n&&(!(o=t.childNodes[r])||!o.childNodes.length);)r++;if(r>=n)return;const i=o.childNodes[0].role;i!==_.SemanticRole.UNKNOWN&&t.childNodes.every(function(a){const s=a.childNodes[0];return!s||s.role===i&&(z.isType(s,_.SemanticType.RELATION)||z.isType(s,_.SemanticType.RELSEQ))})&&(t.role=i)}static classifyTable(t){const r=R.computeColumns_(t);return R.classifyByColumns_(t,r,_.SemanticRole.EQUALITY)||R.classifyByColumns_(t,r,_.SemanticRole.INEQUALITY,[_.SemanticRole.EQUALITY])||R.classifyByColumns_(t,r,_.SemanticRole.ARROW)||R.detectCaleyTable(t),t}static detectCaleyTable(t){if(!t.mathmlTree)return!1;const r=t.mathmlTree,n=r.getAttribute("columnlines"),o=r.getAttribute("rowlines");return!n||!o?!1:R.cayleySpacing(n)&&R.cayleySpacing(o)?(t.role=_.SemanticRole.CAYLEY,!0):!1}static cayleySpacing(t){const r=t.split(" ");return(r[0]==="solid"||r[0]==="dashed")&&r.slice(1).every(n=>n==="none")}static proof(t,r,n){const o=R.separateSemantics(r);return R.getInstance().proof(t,o,n)}static findSemantics(t,r,n){const o=n??null,i=R.getSemantics(t);return!i||!i[r]?!1:o==null?!0:i[r]===o}static getSemantics(t){const r=t.getAttribute("semantics");return r?R.separateSemantics(r):null}static removePrefix(t){const[,...r]=t.split("_");return r.join("_")}static separateSemantics(t){const r={};return t.split(";").forEach(function(n){const[o,i]=n.split(":");r[R.removePrefix(o)]=i}),r}static matchSpaces_(t,r){for(let n=0,o;o=r[n];n++){const i=t[n].mathmlTree,a=t[n+1].mathmlTree;if(!i||!a)continue;const s=i.nextSibling;if(!s||s===a)continue;const c=R.getSpacer_(s);c&&(o.mathml.push(c),o.mathmlTree=c,o.role=_.SemanticRole.SPACE)}}static getSpacer_(t){if(bn.tagName(t)===gt.MMLTAGS.MSPACE)return t;for(;yt.hasEmptyTag(t)&&t.childNodes.length===1;)if(t=t.childNodes[0],bn.tagName(t)===gt.MMLTAGS.MSPACE)return t;return null}static fenceToPunct_(t){const r=R.FENCE_TO_PUNCT_[t.role];if(r){for(;t.embellished;)t.embellished=_.SemanticType.PUNCTUATION,z.isRole(t,_.SemanticRole.SUBSUP)||z.isRole(t,_.SemanticRole.UNDEROVER)||(t.role=r),t=t.childNodes[0];t.type=_.SemanticType.PUNCTUATION,t.role=r}}static classifyFunction_(t,r){if(t.type===_.SemanticType.APPL||t.type===_.SemanticType.BIGOP||t.type===_.SemanticType.INTEGRAL)return"";if(r[0]&&r[0].textContent===vn.NamedSymbol.functionApplication){R.getInstance().funcAppls[t.id]=r.shift();let n=_.SemanticRole.SIMPLEFUNC;return Dt.SemanticHeuristics.run("simple2prefix",t),(t.role===_.SemanticRole.PREFIXFUNC||t.role===_.SemanticRole.LIMFUNC)&&(n=t.role),R.propagateFunctionRole_(t,n),"prefix"}return R.CLASSIFY_FUNCTION_[t.role]||(z.isSimpleFunctionHead(t)?"simple":"")}static propagateFunctionRole_(t,r){if(t){if(t.type===_.SemanticType.INFIXOP)return;z.isRole(t,_.SemanticRole.SUBSUP)||z.isRole(t,_.SemanticRole.UNDEROVER)||(t.role=r),R.propagateFunctionRole_(t.childNodes[0],r)}}static getFunctionOp_(t,r){if(r(t))return t;for(let n=0,o;o=t.childNodes[n];n++){const i=R.getFunctionOp_(o,r);if(i)return i}return null}static tableToMatrixOrVector_(t){const r=t.childNodes[0];z.isType(r,_.SemanticType.MULTILINE)?R.tableToVector_(t):R.tableToMatrix_(t),t.contentNodes.forEach(r.appendContentNode.bind(r));for(let n=0,o;o=r.childNodes[n];n++)R.assignRoleToRow_(o,R.getComponentRoles_(r));return r.parent=null,r}static tableToVector_(t){const r=t.childNodes[0];if(r.type=_.SemanticType.VECTOR,r.childNodes.length===1){R.tableToSquare_(t);return}R.binomialForm_(r)}static binomialForm_(t){z.isRole(t,_.SemanticRole.UNKNOWN)&&z.isBinomial(t)&&(t.role=_.SemanticRole.BINOMIAL,t.childNodes[0].role=_.SemanticRole.BINOMIAL,t.childNodes[1].role=_.SemanticRole.BINOMIAL)}static tableToMatrix_(t){const r=t.childNodes[0];if(r.type=_.SemanticType.MATRIX,r.childNodes&&r.childNodes.length>0&&r.childNodes[0].childNodes&&r.childNodes.length===r.childNodes[0].childNodes.length){R.tableToSquare_(t);return}r.childNodes&&r.childNodes.length===1&&(r.role=_.SemanticRole.ROWVECTOR)}static tableToSquare_(t){const r=t.childNodes[0];if(z.isRole(r,_.SemanticRole.UNKNOWN)){if(z.isNeutralFence(t)){r.role=_.SemanticRole.DETERMINANT;return}r.role=_.SemanticRole.SQUAREMATRIX}}static getComponentRoles_(t){const r=t.role;return r&&r!==_.SemanticRole.UNKNOWN?r:t.type.toLowerCase()||_.SemanticRole.UNKNOWN}static tableToCases_(t,r){for(let n=0,o;o=t.childNodes[n];n++)R.assignRoleToRow_(o,_.SemanticRole.CASES);return t.type=_.SemanticType.CASES,t.appendContentNode(r),z.tableIsMultiline(t)&&R.binomialForm_(t),t}static rewriteFencedLine_(t){const r=t.childNodes[0],n=t.childNodes[0].childNodes[0],o=t.childNodes[0].childNodes[0].childNodes[0];return n.parent=t.parent,t.parent=n,o.parent=r,n.childNodes=[t],r.childNodes=[o],n}static rowToLine_(t,r){const n=r||_.SemanticRole.UNKNOWN;z.isType(t,_.SemanticType.ROW)&&(t.type=_.SemanticType.LINE,t.role=n,t.childNodes.length===1&&z.isType(t.childNodes[0],_.SemanticType.CELL)&&(t.childNodes=t.childNodes[0].childNodes,t.childNodes.forEach(function(o){o.parent=t})))}static assignRoleToRow_(t,r){if(z.isType(t,_.SemanticType.LINE)){t.role=r;return}z.isType(t,_.SemanticType.ROW)&&(t.role=r,t.childNodes.forEach(function(n){z.isType(n,_.SemanticType.CELL)&&(n.role=r)}))}static nextSeparatorFunction_(t){let r;if(t){if(t.match(/^\s+$/))return null;r=t.replace(/\s/g,"").split("").filter(function(n){return n})}else r=[","];return function(){return r.length>1?r.shift():r[0]}}static meaningFromContent(t,r){const n=[...t.textContent].filter(o=>o.match(/[^\s]/));r(t,n,n.map(o=>vn.SemanticMap.Meaning.get(o)))}static numberRole_(t,r,n){if(t.role===_.SemanticRole.UNKNOWN){if(n.every(function(o){return o.type===_.SemanticType.NUMBER&&o.role===_.SemanticRole.INTEGER||o.type===_.SemanticType.PUNCTUATION&&o.role===_.SemanticRole.COMMA})){t.role=_.SemanticRole.INTEGER,r[0]==="0"&&t.addAnnotation("general","basenumber");return}if(n.every(function(o){return o.type===_.SemanticType.NUMBER&&o.role===_.SemanticRole.INTEGER||o.type===_.SemanticType.PUNCTUATION})){t.role=_.SemanticRole.FLOAT;return}t.role=_.SemanticRole.OTHERNUMBER}}static exprFont_(t){t.font===_.SemanticFont.UNKNOWN&&R.compSemantics(t,"font",_.SemanticFont)}static compSemantics(t,r,n){const o=[...t.textContent].map(i=>vn.SemanticMap.Meaning.get(i)).reduce(function(i,a){return!i||!a[r]||a[r]===n.UNKNOWN||a[r]===i?i:i===n.UNKNOWN?a[r]:null},n.UNKNOWN);o&&(t[r]=o)}static purgeFences_(t){const r=t.rel,n=t.comp,o=[],i=[];for(;r.length>0;){const a=r.shift();let s=n.shift();if(z.isElligibleEmbellishedFence(a)){o.push(a),i.push(s);continue}R.fenceToPunct_(a),s.push(a),s=s.concat(n.shift()),n.unshift(s)}return i.push(n.shift()),{rel:o,comp:i}}static rewriteFencedNode_(t){const r=t.contentNodes[0],n=t.contentNodes[1];let o=R.rewriteFence_(t,r);return t.contentNodes[0]=o.fence,o=R.rewriteFence_(o.node,n),t.contentNodes[1]=o.fence,t.contentNodes[0].parent=t,t.contentNodes[1].parent=t,o.node.parent=null,o.node}static rewriteFence_(t,r){if(!r.embellished)return{node:t,fence:r};const n=r.childNodes[0],o=R.rewriteFence_(t,n);return z.isType(r,_.SemanticType.SUPERSCRIPT)||z.isType(r,_.SemanticType.SUBSCRIPT)||z.isType(r,_.SemanticType.TENSOR)?(z.isRole(r,_.SemanticRole.SUBSUP)||(r.role=t.role),n!==o.node&&(r.replaceChild(n,o.node),n.parent=t),R.propagateFencePointer_(r,n),{node:r,fence:o.fence}):(r.replaceChild(n,o.fence),r.mathmlTree&&r.mathml.indexOf(r.mathmlTree)===-1&&r.mathml.push(r.mathmlTree),{node:o.node,fence:r})}static propagateFencePointer_(t,r){t.fencePointer=r.fencePointer||r.id.toString(),t.embellished=null}static classifyByColumns_(t,r,n,o=[]){const i=[n].concat(o),a=l=>R.isPureRelation_(l,i),s=l=>R.isEndRelation_(l,i)||R.isPureRelation_(l,i),c=l=>R.isEndRelation_(l,i,!0)||R.isPureRelation_(l,i);return r.length===3&&R.testColumns_(r,1,a)||r.length===2&&(R.testColumns_(r,1,s)||R.testColumns_(r,0,c))?(t.role=n,!0):!1}static isEndRelation_(t,r,n){const o=n?t.childNodes.length-1:0;return z.isType(t,_.SemanticType.RELSEQ)&&r.some(i=>z.isRole(t,i))&&z.isType(t.childNodes[o],_.SemanticType.EMPTY)}static isPureRelation_(t,r){return z.isType(t,_.SemanticType.RELATION)&&r.some(n=>z.isRole(t,n))}static computeColumns_(t){const r=[];for(let n=0,o;o=t.childNodes[n];n++)for(let i=0,a;a=o.childNodes[i];i++)r[i]?r[i].push(a):r[i]=[a];return r}static testColumns_(t,r,n){const o=t[r];return o?o.some(function(i){return i.childNodes.length&&n(i.childNodes[0])})&&o.every(function(i){return!i.childNodes.length||n(i.childNodes[0])}):!1}setNodeFactory(t){R.getInstance().factory_=t,Dt.SemanticHeuristics.updateFactory(R.getInstance().factory_)}getNodeFactory(){return R.getInstance().factory_}identifierNode(t,r,n){if(n==="MathML-Unit")t.type=_.SemanticType.IDENTIFIER,t.role=_.SemanticRole.UNIT;else if(!r&&t.textContent.length===1&&(t.role===_.SemanticRole.INTEGER||t.role===_.SemanticRole.LATINLETTER||t.role===_.SemanticRole.GREEKLETTER)&&t.font===_.SemanticFont.NORMAL)return t.font=_.SemanticFont.ITALIC,Dt.SemanticHeuristics.run("simpleNamedFunction",t);return t.type===_.SemanticType.UNKNOWN&&(t.type=_.SemanticType.IDENTIFIER),R.exprFont_(t),Dt.SemanticHeuristics.run("simpleNamedFunction",t)}implicitNode(t){if(t=R.getInstance().getMixedNumbers_(t),t=R.getInstance().combineUnits_(t),t.length===1)return t[0];const r=R.getInstance().implicitNode_(t);return Dt.SemanticHeuristics.run("combine_juxtaposition",r)}text(t,r){return R.exprFont_(t),t.type=_.SemanticType.TEXT,r===gt.MMLTAGS.ANNOTATIONXML?(t.role=_.SemanticRole.ANNOTATION,t):r===gt.MMLTAGS.MS?(t.role=_.SemanticRole.STRING,t):r===gt.MMLTAGS.MSPACE||t.textContent.match(/^\s*$/)?(t.role=_.SemanticRole.SPACE,t):/\s/.exec(t.textContent)?(t.role=_.SemanticRole.TEXT,t):(t.role=_.SemanticRole.UNKNOWN,t)}row(t){return t=t.filter(function(r){return!z.isType(r,_.SemanticType.EMPTY)}),t.length===0?R.getInstance().factory_.makeEmptyNode():(t=R.getInstance().getFencesInRow_(t),t=R.getInstance().tablesInRow(t),t=R.getInstance().getPunctuationInRow_(t),t=R.getInstance().getTextInRow_(t),t=R.getInstance().getFunctionsInRow_(t),R.getInstance().relationsInRow_(t))}limitNode(t,r){if(!r.length)return R.getInstance().factory_.makeEmptyNode();let n=r[0],o=_.SemanticType.UNKNOWN;if(!r[1])return n;let i;if(Dt.SemanticHeuristics.run("op_with_limits",r),z.isLimitBase(n)){i=R.MML_TO_LIMIT_[t];const a=i.length;if(o=i.type,r=r.slice(0,i.length+1),a===1&&z.isAccent(r[1])||a===2&&z.isAccent(r[1])&&z.isAccent(r[2]))return i=R.MML_TO_BOUNDS_[t],R.getInstance().accentNode_(n,r,i.type,i.length,i.accent);if(a===2){if(z.isAccent(r[1]))return n=R.getInstance().accentNode_(n,[n,r[1]],{MSUBSUP:_.SemanticType.SUBSCRIPT,MUNDEROVER:_.SemanticType.UNDERSCORE}[t],1,!0),r[2]?R.getInstance().makeLimitNode_(n,[n,r[2]],null,_.SemanticType.LIMUPPER):n;if(r[2]&&z.isAccent(r[2]))return n=R.getInstance().accentNode_(n,[n,r[2]],{MSUBSUP:_.SemanticType.SUPERSCRIPT,MUNDEROVER:_.SemanticType.OVERSCORE}[t],1,!0),R.getInstance().makeLimitNode_(n,[n,r[1]],null,_.SemanticType.LIMLOWER);r[a]||(o=_.SemanticType.LIMLOWER)}return R.getInstance().makeLimitNode_(n,r,null,o)}return i=R.MML_TO_BOUNDS_[t],R.getInstance().accentNode_(n,r,i.type,i.length,i.accent)}tablesInRow(t){let r=yt.partitionNodes(t,z.tableIsMatrixOrVector),n=[];for(let o=0,i;i=r.rel[o];o++)n=n.concat(r.comp.shift()),n.push(R.tableToMatrixOrVector_(i));n=n.concat(r.comp.shift()),r=yt.partitionNodes(n,z.isTableOrMultiline),n=[];for(let o=0,i;i=r.rel[o];o++){const a=r.comp.shift();z.tableIsCases(i,a)&&R.tableToCases_(i,a.pop()),n=n.concat(a),n.push(i)}return n.concat(r.comp.shift())}mfenced(t,r,n,o){if(n&&o.length>0){const i=R.nextSeparatorFunction_(n),a=[o.shift()];o.forEach(s=>{a.push(R.getInstance().factory_.makeContentNode(i())),a.push(s)}),o=a}return t&&r?R.getInstance().horizontalFencedNode_(R.getInstance().factory_.makeContentNode(t),R.getInstance().factory_.makeContentNode(r),o):(t&&o.unshift(R.getInstance().factory_.makeContentNode(t)),r&&o.push(R.getInstance().factory_.makeContentNode(r)),R.getInstance().row(o))}fractionLikeNode(t,r,n,o){let i;if(!o&&yt.isZeroLength(n)){const a=R.getInstance().factory_.makeBranchNode(_.SemanticType.LINE,[t],[]),s=R.getInstance().factory_.makeBranchNode(_.SemanticType.LINE,[r],[]);return i=R.getInstance().factory_.makeBranchNode(_.SemanticType.MULTILINE,[a,s],[]),R.binomialForm_(i),R.classifyMultiline(i),i}else return i=R.getInstance().fractionNode_(t,r),o&&i.addAnnotation("general","bevelled"),i}tensor(t,r,n,o,i){const a=R.getInstance().factory_.makeBranchNode(_.SemanticType.TENSOR,[t,R.getInstance().scriptNode_(r,_.SemanticRole.LEFTSUB),R.getInstance().scriptNode_(n,_.SemanticRole.LEFTSUPER),R.getInstance().scriptNode_(o,_.SemanticRole.RIGHTSUB),R.getInstance().scriptNode_(i,_.SemanticRole.RIGHTSUPER)],[]);return a.role=t.role,a.embellished=z.isEmbellished(t),a}pseudoTensor(t,r,n){const o=l=>!z.isType(l,_.SemanticType.EMPTY),i=r.filter(o).length,a=n.filter(o).length;if(!i&&!a)return t;const s=i?a?gt.MMLTAGS.MSUBSUP:gt.MMLTAGS.MSUB:gt.MMLTAGS.MSUP,c=[t];return i&&c.push(R.getInstance().scriptNode_(r,_.SemanticRole.RIGHTSUB,!0)),a&&c.push(R.getInstance().scriptNode_(n,_.SemanticRole.RIGHTSUPER,!0)),R.getInstance().limitNode(s,c)}font(t){return R.MATHJAX_FONTS[t]||t}proof(t,r,n){if(!r.inference&&!r.axiom&&console.log("Noise"),r.axiom){const i=R.getInstance().cleanInference(t.childNodes),a=i.length?R.getInstance().factory_.makeBranchNode(_.SemanticType.INFERENCE,n(i),[]):R.getInstance().factory_.makeEmptyNode();return a.role=_.SemanticRole.AXIOM,a.mathmlTree=t,a}const o=R.getInstance().inference(t,r,n);return r.proof&&(o.role=_.SemanticRole.PROOF,o.childNodes[0].role=_.SemanticRole.FINAL),o}inference(t,r,n){if(r.inferenceRule){const l=R.getInstance().getFormulas(t,[],n);return R.getInstance().factory_.makeBranchNode(_.SemanticType.INFERENCE,[l.conclusion,l.premises],[])}const o=r.labelledRule,i=bn.toArray(t.childNodes),a=[];(o==="left"||o==="both")&&a.push(R.getInstance().getLabel(t,i,n,_.SemanticRole.LEFT)),(o==="right"||o==="both")&&a.push(R.getInstance().getLabel(t,i,n,_.SemanticRole.RIGHT));const s=R.getInstance().getFormulas(t,i,n),c=R.getInstance().factory_.makeBranchNode(_.SemanticType.INFERENCE,[s.conclusion,s.premises],a);return c.mathmlTree=t,c}getLabel(t,r,n,o){const i=R.getInstance().findNestedRow(r,"prooflabel",o),a=R.getInstance().factory_.makeBranchNode(_.SemanticType.RULELABEL,n(bn.toArray(i.childNodes)),[]);return a.role=o,a.mathmlTree=i,a}getFormulas(t,r,n){const o=r.length?R.getInstance().findNestedRow(r,"inferenceRule"):t,i=R.getSemantics(o).inferenceRule==="up",a=i?o.childNodes[1]:o.childNodes[0],s=i?o.childNodes[0]:o.childNodes[1],c=a.childNodes[0].childNodes[0],l=bn.toArray(c.childNodes[0].childNodes),u=[];let p=1;for(const v of l)p%2&&u.push(v.childNodes[0]),p++;const d=n(u),h=n(bn.toArray(s.childNodes[0].childNodes))[0],f=R.getInstance().factory_.makeBranchNode(_.SemanticType.PREMISES,d,[]);f.mathmlTree=c;const m=R.getInstance().factory_.makeBranchNode(_.SemanticType.CONCLUSION,[h],[]);return m.mathmlTree=s.childNodes[0].childNodes[0],{conclusion:m,premises:f}}findNestedRow(t,r,n){return R.getInstance().findNestedRow_(t,r,0,n)}cleanInference(t){return bn.toArray(t).filter(function(r){return bn.tagName(r)!=="MSPACE"})}operatorNode(t){return t.type===_.SemanticType.UNKNOWN&&(t.type=_.SemanticType.OPERATOR),Dt.SemanticHeuristics.run("multioperator",t)}constructor(){this.funcAppls={},this.splitRoles=new Map([[_.SemanticRole.SUBTRACTION,_.SemanticRole.NEGATIVE],[_.SemanticRole.ADDITION,_.SemanticRole.POSITIVE]]),this.splitOps=["−","-","‐","‑","+"],this.factory_=new wL.SemanticNodeFactory,Dt.SemanticHeuristics.updateFactory(this.factory_)}implicitNode_(t){const r=R.getInstance().factory_.makeMultipleContentNodes(t.length-1,vn.NamedSymbol.invisibleTimes);R.matchSpaces_(t,r);const n=R.getInstance().infixNode_(t,r[0]);return n.role=_.SemanticRole.IMPLICIT,r.forEach(function(o){o.parent=n}),n.contentNodes=r,n}infixNode_(t,r){const n=R.getInstance().factory_.makeBranchNode(_.SemanticType.INFIXOP,t,[r],yt.getEmbellishedInner(r).textContent);return n.role=r.role,Dt.SemanticHeuristics.run("propagateSimpleFunction",n)}explicitMixed_(t){const r=yt.partitionNodes(t,function(o){return o.textContent===vn.NamedSymbol.invisiblePlus});if(!r.rel.length)return t;let n=[];for(let o=0,i;i=r.rel[o];o++){const a=r.comp[o],s=r.comp[o+1],c=a.length-1;if(a[c]&&s[0]&&z.isType(a[c],_.SemanticType.NUMBER)&&!z.isRole(a[c],_.SemanticRole.MIXED)&&z.isType(s[0],_.SemanticType.FRACTION)){const l=R.getInstance().factory_.makeBranchNode(_.SemanticType.NUMBER,[a[c],s[0]],[]);l.role=_.SemanticRole.MIXED,n=n.concat(a.slice(0,c)),n.push(l),s.shift()}else n=n.concat(a),n.push(i)}return n.concat(r.comp[r.comp.length-1])}concatNode_(t,r,n){if(r.length===0)return t;const o=r.map(function(a){return yt.getEmbellishedInner(a).textContent}).join(" "),i=R.getInstance().factory_.makeBranchNode(n,[t],r,o);return r.length>1&&(i.role=_.SemanticRole.MULTIOP),i}prefixNode_(t,r){const n=this.splitSingles(r);let o=t;for(;n.length>0;){const i=n.pop();o=R.getInstance().concatNode_(o,i,_.SemanticType.PREFIXOP),i.length===1&&this.splitOps.indexOf(i[0].textContent)!==-1&&(o.role=this.splitRoles.get(i[0].role))}return o}splitSingles(t){let r=0;const n=[];let o=0;for(;o<t.length;){const i=t[o];this.splitRoles.has(i.role)&&(!t[o-1]||t[o-1].role!==i.role)&&(!t[o+1]||t[o+1].role!==i.role)&&this.splitOps.indexOf(i.textContent)!==-1&&(n.push(t.slice(r,o)),n.push(t.slice(o,o+1)),r=o+1),o++}return r<o&&n.push(t.slice(r,o)),n}postfixNode_(t,r){return r.length?R.getInstance().concatNode_(t,r,_.SemanticType.POSTFIXOP):t}combineUnits_(t){const r=yt.partitionNodes(t,function(a){return!z.isRole(a,_.SemanticRole.UNIT)});if(t.length===r.rel.length)return r.rel;const n=[];let o,i;do{const a=r.comp.shift();o=r.rel.shift();let s=null;i=n.pop(),i&&(!a.length||!z.isUnitCounter(i)?n.push(i):a.unshift(i)),a.length===1&&(s=a.pop()),a.length>1&&(s=R.getInstance().implicitNode_(a),s.role=_.SemanticRole.UNIT),s&&n.push(s),o&&n.push(o)}while(o);return n}getMixedNumbers_(t){const r=yt.partitionNodes(t,function(o){return z.isType(o,_.SemanticType.FRACTION)&&z.isRole(o,_.SemanticRole.VULGAR)});if(!r.rel.length)return t;let n=[];for(let o=0,i;i=r.rel[o];o++){const a=r.comp[o],s=a.length-1;if(a[s]&&z.isType(a[s],_.SemanticType.NUMBER)&&(z.isRole(a[s],_.SemanticRole.INTEGER)||z.isRole(a[s],_.SemanticRole.FLOAT))){const c=R.getInstance().factory_.makeBranchNode(_.SemanticType.NUMBER,[a[s],i],[]);c.role=_.SemanticRole.MIXED,n=n.concat(a.slice(0,s)),n.push(c)}else n=n.concat(a),n.push(i)}return n.concat(r.comp[r.comp.length-1])}getTextInRow_(t){if(t.length===0)return t;if(t.length===1)return t[0].type===_.SemanticType.TEXT&&t[0].role===_.SemanticRole.UNKNOWN&&(t[0].role=_.SemanticRole.ANNOTATION),t;const{rel:r,comp:n}=yt.partitionNodes(t,a=>z.isType(a,_.SemanticType.TEXT));if(r.length===0)return t;const o=[];let i=n.shift();for(;r.length>0;){let a=r.shift(),s=n.shift();const c=[];for(;!s.length&&r.length&&a.role!==_.SemanticRole.SPACE&&r[0].role!==_.SemanticRole.SPACE;)c.push(a),a=r.shift(),s=n.shift();if(c.length){i.length&&o.push(R.getInstance().row(i)),c.push(a);const u=R.getInstance().dummyNode_(c);o.push(u),i=s;continue}if(a.role!==_.SemanticRole.UNKNOWN){i.length&&o.push(R.getInstance().row(i)),o.push(a),i=s;continue}const l=vn.SemanticMap.Meaning.get(a.textContent);if(l.type===_.SemanticType.PUNCTUATION){a.role=l.role,a.font=l.font,i.length&&o.push(R.getInstance().row(i)),o.push(a),i=s;continue}if(l.type!==_.SemanticType.UNKNOWN){a.type=l.type,a.role=l.role,a.font=l.font,a.addAnnotation("general","text"),i.push(a),i=i.concat(s);continue}if(R.meaningFromContent(a,(u,p,d)=>{if(u.role===_.SemanticRole.UNKNOWN){if(R.numberRole_(u,p,d),u.role!==_.SemanticRole.OTHERNUMBER){u.type=_.SemanticType.NUMBER;return}if(d.some(h=>h.type!==_.SemanticType.NUMBER&&h.type!==_.SemanticType.IDENTIFIER)){u.type=_.SemanticType.TEXT,u.role=_.SemanticRole.ANNOTATION;return}u.role=_.SemanticRole.UNKNOWN}}),a.type===_.SemanticType.TEXT&&a.role!==_.SemanticRole.UNKNOWN){i.length&&o.push(R.getInstance().row(i)),o.push(a),i=s;continue}a.role===_.SemanticRole.UNKNOWN&&(r.length||s.length?s.length&&s[0].type===_.SemanticType.FENCED?(a.type=_.SemanticType.FUNCTION,a.role=_.SemanticRole.PREFIXFUNC):a.role=_.SemanticRole.TEXT:(a.type=_.SemanticType.IDENTIFIER,a.role=_.SemanticRole.UNIT)),i.push(a),i=i.concat(s)}return i.length>0&&o.push(R.getInstance().row(i)),o.length>1?[R.getInstance().dummyNode_(o)]:o}relationsInRow_(t){const r=yt.partitionNodes(t,z.isRelation),n=r.rel[0];if(!n)return R.getInstance().operationsInRow_(t);if(t.length===1)return t[0];const o=r.comp.map(R.getInstance().operationsInRow_);let i;return r.rel.some(function(a){return!a.equals(n)})?(i=R.getInstance().factory_.makeBranchNode(_.SemanticType.MULTIREL,o,r.rel),r.rel.every(function(a){return a.role===n.role})&&(i.role=n.role),i):(i=R.getInstance().factory_.makeBranchNode(_.SemanticType.RELSEQ,o,r.rel,yt.getEmbellishedInner(n).textContent),i.role=n.role,i)}operationsInRow_(t){if(t.length===0)return R.getInstance().factory_.makeEmptyNode();if(t=R.getInstance().explicitMixed_(t),t.length===1)return t[0];const r=[];for(;t.length>0&&z.isOperator(t[0]);)r.push(t.shift());if(t.length===0)return R.getInstance().prefixNode_(r.pop(),r);if(t.length===1)return R.getInstance().prefixNode_(t[0],r);t=Dt.SemanticHeuristics.run("convert_juxtaposition",t);const n=yt.sliceNodes(t,z.isOperator),o=R.getInstance().wrapFactor(r,n);return R.getInstance().addFactor(o,n)}wrapPostfix(t){var r;((r=t.div)===null||r===void 0?void 0:r.role)===_.SemanticRole.POSTFIXOP&&(!t.tail.length||t.tail[0].type===_.SemanticType.OPERATOR?(t.head=[R.getInstance().postfixNode_(R.getInstance().implicitNode(t.head),[t.div])],t.div=t.tail.shift(),R.getInstance().wrapPostfix(t)):t.div.role=_.SemanticRole.DIVISION)}wrapFactor(t,r){return R.getInstance().wrapPostfix(r),R.getInstance().prefixNode_(R.getInstance().implicitNode(r.head),t)}addFactor(t,r){return r.div?R.getInstance().operationsTree_(r.tail,t,r.div):(z.isUnitProduct(t)&&(t.role=_.SemanticRole.UNIT),t)}operationsTree_(t,r,n,o=[]){if(t.length===0){if(o.unshift(n),r.type===_.SemanticType.INFIXOP){const c=R.getInstance().postfixNode_(r.childNodes.pop(),o);return r.appendChild(c),r}return R.getInstance().postfixNode_(r,o)}const i=yt.sliceNodes(t,z.isOperator);if(i.head.length===0)return o.push(i.div),R.getInstance().operationsTree_(i.tail,r,n,o);const a=R.getInstance().wrapFactor(o,i),s=R.getInstance().appendOperand_(r,n,a);return R.getInstance().addFactor(s,i)}appendOperand_(t,r,n){return t.type!==_.SemanticType.INFIXOP?R.getInstance().infixNode_([t,n],r):R.getInstance().appendDivisionOp_(t,r,n)||(R.getInstance().appendExistingOperator_(t,r,n)?t:r.role===_.SemanticRole.MULTIPLICATION?R.getInstance().appendMultiplicativeOp_(t,r,n):R.getInstance().appendAdditiveOp_(t,r,n))}appendDivisionOp_(t,r,n){return r.role===_.SemanticRole.DIVISION?z.isImplicit(t)?R.getInstance().infixNode_([t,n],r):R.getInstance().appendLastOperand_(t,r,n):t.role===_.SemanticRole.DIVISION?R.getInstance().infixNode_([t,n],r):null}appendLastOperand_(t,r,n){let o=t,i=t.childNodes[t.childNodes.length-1];for(;i&&i.type===_.SemanticType.INFIXOP&&!z.isImplicit(i);)o=i,i=o.childNodes[t.childNodes.length-1];const a=R.getInstance().infixNode_([o.childNodes.pop(),n],r);return o.appendChild(a),t}appendMultiplicativeOp_(t,r,n){if(z.isImplicit(t))return R.getInstance().infixNode_([t,n],r);let o=t,i=t.childNodes[t.childNodes.length-1];for(;i&&i.type===_.SemanticType.INFIXOP&&!z.isImplicit(i);)o=i,i=o.childNodes[t.childNodes.length-1];const a=R.getInstance().infixNode_([o.childNodes.pop(),n],r);return o.appendChild(a),t}appendAdditiveOp_(t,r,n){return R.getInstance().infixNode_([t,n],r)}appendExistingOperator_(t,r,n){return!t||t.type!==_.SemanticType.INFIXOP||z.isImplicit(t)?!1:t.contentNodes[0].equals(r)?(t.appendContentNode(r),t.appendChild(n),!0):R.getInstance().appendExistingOperator_(t.childNodes[t.childNodes.length-1],r,n)}getFencesInRow_(t){let r=yt.partitionNodes(t,z.isFence);r=R.purgeFences_(r);const n=r.comp.shift();return R.getInstance().fences_(r.rel,r.comp,[],[n])}fences_(t,r,n,o){if(t.length===0&&n.length===0)return o[0];const i=Dt.SemanticHeuristics.run("bracketed_interval",[t[0],t[1],...r[0]||[]],()=>null);if(i){t.shift(),t.shift(),r.shift();const u=o.pop()||[];return o.push([...u,i,...r.shift()]),R.getInstance().fences_(t,r,n,o)}const a=u=>z.isRole(u,_.SemanticRole.OPEN);if(t.length===0){const u=o.shift();for(;n.length>0;){if(a(n[0])){const p=n.shift();R.fenceToPunct_(p),u.push(p)}else{const p=yt.sliceNodes(n,a),d=p.head.length-1,h=R.getInstance().neutralFences_(p.head,o.slice(0,d));o=o.slice(d),u.push(...h),p.div&&p.tail.unshift(p.div),n=p.tail}u.push(...o.shift())}return u}const s=n[n.length-1],c=t[0].role;if(c===_.SemanticRole.OPEN||z.isNeutralFence(t[0])&&!(s&&z.compareNeutralFences(t[0],s))){n.push(t.shift());const u=r.shift();return u&&o.push(u),R.getInstance().fences_(t,r,n,o)}if(s&&c===_.SemanticRole.CLOSE&&s.role===_.SemanticRole.OPEN){const u=R.getInstance().horizontalFencedNode_(n.pop(),t.shift(),o.pop());return o.push(o.pop().concat([u],r.shift())),R.getInstance().fences_(t,r,n,o)}if(s&&z.compareNeutralFences(t[0],s)){if(!z.elligibleLeftNeutral(s)||!z.elligibleRightNeutral(t[0])){n.push(t.shift());const p=r.shift();return p&&o.push(p),R.getInstance().fences_(t,r,n,o)}const u=R.getInstance().horizontalFencedNode_(n.pop(),t.shift(),o.pop());return o.push(o.pop().concat([u],r.shift())),R.getInstance().fences_(t,r,n,o)}if(s&&c===_.SemanticRole.CLOSE&&z.isNeutralFence(s)&&n.some(a)){const u=yt.sliceNodes(n,a,!0),p=o.pop(),d=o.length-u.tail.length+1,h=R.getInstance().neutralFences_(u.tail,o.slice(d));o=o.slice(0,d);const f=R.getInstance().horizontalFencedNode_(u.div,t.shift(),o.pop().concat(h,p));return o.push(o.pop().concat([f],r.shift())),R.getInstance().fences_(t,r,u.head,o)}const l=t.shift();return R.fenceToPunct_(l),o.push(o.pop().concat([l],r.shift())),R.getInstance().fences_(t,r,n,o)}neutralFences_(t,r){if(t.length===0)return t;if(t.length===1)return R.fenceToPunct_(t[0]),t;const n=t.shift();if(!z.elligibleLeftNeutral(n)){R.fenceToPunct_(n);const a=r.shift();return a.unshift(n),a.concat(R.getInstance().neutralFences_(t,r))}const o=yt.sliceNodes(t,function(a){return z.compareNeutralFences(a,n)});if(!o.div){R.fenceToPunct_(n);const a=r.shift();return a.unshift(n),a.concat(R.getInstance().neutralFences_(t,r))}if(!z.elligibleRightNeutral(o.div))return R.fenceToPunct_(o.div),t.unshift(n),R.getInstance().neutralFences_(t,r);const i=R.getInstance().combineFencedContent_(n,o.div,o.head,r);if(o.tail.length>0){const a=i.shift(),s=R.getInstance().neutralFences_(o.tail,i);return a.concat(s)}return i[0]}combineFencedContent_(t,r,n,o){if(n.length===0){const p=R.getInstance().horizontalFencedNode_(t,r,o.shift());return o.length>0?o[0].unshift(p):o=[[p]],o}const i=o.shift(),a=n.length-1,s=o.slice(0,a);o=o.slice(a);const c=o.shift(),l=R.getInstance().neutralFences_(n,s);i.push(...l),i.push(...c);const u=R.getInstance().horizontalFencedNode_(t,r,i);return o.length>0?o[0].unshift(u):o=[[u]],o}horizontalFencedNode_(t,r,n){const o=R.getInstance().row(n);let i=R.getInstance().factory_.makeBranchNode(_.SemanticType.FENCED,[o],[t,r]);return t.role===_.SemanticRole.OPEN?(R.getInstance().classifyHorizontalFence_(i),i=Dt.SemanticHeuristics.run("propagateComposedFunction",i)):i.role=t.role,i=Dt.SemanticHeuristics.run("detect_cycle",i),R.rewriteFencedNode_(i)}classifyHorizontalFence_(t){t.role=_.SemanticRole.LEFTRIGHT;const r=t.childNodes;if(!z.isSetNode(t)||r.length>1)return;if(r.length===0||r[0].type===_.SemanticType.EMPTY){t.role=_.SemanticRole.SETEMPTY;return}const n=r[0].type;if(r.length===1&&z.isSingletonSetContent(r[0])){t.role=_.SemanticRole.SETSINGLE;return}const o=r[0].role;if(!(n!==_.SemanticType.PUNCTUATED||o!==_.SemanticRole.SEQUENCE)){if(r[0].contentNodes[0].role===_.SemanticRole.COMMA){t.role=_.SemanticRole.SETCOLLECT;return}if(r[0].contentNodes.length===1&&(r[0].contentNodes[0].role===_.SemanticRole.VBAR||r[0].contentNodes[0].role===_.SemanticRole.COLON)){t.role=_.SemanticRole.SETEXT,R.getInstance().setExtension_(t);return}}}setExtension_(t){const r=t.childNodes[0].childNodes[0];r&&r.type===_.SemanticType.INFIXOP&&r.contentNodes.length===1&&z.isMembership(r.contentNodes[0])&&(r.addAnnotation("set","intensional"),r.contentNodes[0].addAnnotation("set","intensional"))}getPunctuationInRow_(t){if(t.length<=1)return t;const r=s=>{const c=s.type;return c==="punctuation"||c==="text"||c==="operator"||c==="relation"},n=yt.partitionNodes(t,function(s){if(!z.isPunctuation(s))return!1;if(z.isPunctuation(s)&&!z.isRole(s,_.SemanticRole.ELLIPSIS))return!0;const c=t.indexOf(s);if(c===0)return!(t[1]&&r(t[1]));const l=t[c-1];if(c===t.length-1)return!r(l);const u=t[c+1];return!(r(l)&&r(u))});if(n.rel.length===0)return t;let o=[],i=n.comp.shift();i.length>0&&o.push(R.getInstance().row(i));let a=0;for(;n.comp.length>0;){let s=[];const c=a;do s.push(n.rel[a++]),i=n.comp.shift();while(n.rel[a]&&i&&i.length===0);s=Dt.SemanticHeuristics.run("ellipses",s),n.rel.splice(c,a-c,...s),a=c+s.length,o=o.concat(s),i&&i.length>0&&o.push(R.getInstance().row(i))}return o.length===1&&n.rel.length===1?o:[R.getInstance().punctuatedNode_(o,n.rel)]}punctuatedNode_(t,r){const n=R.getInstance().factory_.makeBranchNode(_.SemanticType.PUNCTUATED,t,r);if(r.length===t.length){const i=r[0].role;if(i!==_.SemanticRole.UNKNOWN&&r.every(function(a){return a.role===i}))return n.role=i,n}const o=r[0];return z.singlePunctAtPosition(t,r,0)?n.role=o.childNodes.length&&!o.embellished?o.role:_.SemanticRole.STARTPUNCT:z.singlePunctAtPosition(t,r,t.length-1)?n.role=o.childNodes.length&&!o.embellished?o.role:_.SemanticRole.ENDPUNCT:r.every(i=>z.isRole(i,_.SemanticRole.DUMMY))?n.role=_.SemanticRole.TEXT:r.every(i=>z.isRole(i,_.SemanticRole.SPACE))?n.role=_.SemanticRole.SPACE:n.role=_.SemanticRole.SEQUENCE,n}dummyNode_(t){const r=R.getInstance().factory_.makeMultipleContentNodes(t.length-1,vn.NamedSymbol.invisibleComma);return r.forEach(function(n){n.role=_.SemanticRole.DUMMY}),R.getInstance().punctuatedNode_(t,r)}accentRole_(t,r){if(!z.isAccent(t))return!1;const n=t.textContent,o=vn.SemanticMap.Secondary.get(n,_.SemanticSecondary.BAR)||vn.SemanticMap.Secondary.get(n,_.SemanticSecondary.TILDE)||t.role;return t.role=r===_.SemanticType.UNDERSCORE?_.SemanticRole.UNDERACCENT:_.SemanticRole.OVERACCENT,t.addAnnotation("accent",o),!0}accentNode_(t,r,n,o,i){r=r.slice(0,o+1);const a=r[1],s=r[2];let c;if(!i&&s&&(c=R.getInstance().factory_.makeBranchNode(_.SemanticType.SUBSCRIPT,[t,a],[]),c.role=_.SemanticRole.SUBSUP,r=[c,s],n=_.SemanticType.SUPERSCRIPT),i){const l=R.getInstance().accentRole_(a,n);s&&(R.getInstance().accentRole_(s,_.SemanticType.OVERSCORE)&&!l?(c=R.getInstance().factory_.makeBranchNode(_.SemanticType.OVERSCORE,[t,s],[]),r=[c,a],n=_.SemanticType.UNDERSCORE):(c=R.getInstance().factory_.makeBranchNode(_.SemanticType.UNDERSCORE,[t,a],[]),r=[c,s],n=_.SemanticType.OVERSCORE),c.role=_.SemanticRole.UNDEROVER)}return R.getInstance().makeLimitNode_(t,r,c,n)}makeLimitNode_(t,r,n,o){if(o===_.SemanticType.LIMUPPER&&t.type===_.SemanticType.LIMLOWER)return t.childNodes.push(r[1]),r[1].parent=t,t.type=_.SemanticType.LIMBOTH,t;if(o===_.SemanticType.LIMLOWER&&t.type===_.SemanticType.LIMUPPER)return t.childNodes.splice(1,-1,r[1]),r[1].parent=t,t.type=_.SemanticType.LIMBOTH,t;const i=R.getInstance().factory_.makeBranchNode(o,r,[]),a=z.isEmbellished(t);return n&&(n.embellished=a),i.embellished=a,i.role=t.role,i}getFunctionsInRow_(t,r){const n=r||[];if(t.length===0)return n;const o=t.shift(),i=R.classifyFunction_(o,t);if(!i)return n.push(o),R.getInstance().getFunctionsInRow_(t,n);const a=R.getInstance().getFunctionsInRow_(t,[]),s=R.getInstance().getFunctionArgs_(o,a,i);return n.concat(s)}getFunctionArgs_(t,r,n){let o,i,a;switch(n){case"integral":{const s=R.getInstance().getIntegralArgs_(r);if(!s.intvar&&!s.integrand.length)return s.rest.unshift(t),s.rest;const c=R.getInstance().row(s.integrand);return a=R.getInstance().integralNode_(t,c,s.intvar),Dt.SemanticHeuristics.run("intvar_from_fraction",a),s.rest.unshift(a),s.rest}case"prefix":if(r[0]&&r[0].type===_.SemanticType.FENCED){const s=r.shift();return z.isNeutralFence(s)||(s.role=_.SemanticRole.LEFTRIGHT),a=R.getInstance().functionNode_(t,s),r.unshift(a),r}if(o=yt.sliceNodes(r,z.isPrefixFunctionBoundary),o.head.length)i=R.getInstance().row(o.head),o.div&&o.tail.unshift(o.div);else{if(!o.div||!z.isType(o.div,_.SemanticType.APPL))return r.unshift(t),r;i=o.div}return a=R.getInstance().functionNode_(t,i),o.tail.unshift(a),o.tail;case"bigop":return o=yt.sliceNodes(r,z.isBigOpBoundary),o.head.length?(i=R.getInstance().row(o.head),a=R.getInstance().bigOpNode_(t,i),o.div&&o.tail.unshift(o.div),o.tail.unshift(a),o.tail):(r.unshift(t),r);default:{if(r.length===0)return[t];const s=r[0];return s.type===_.SemanticType.FENCED&&!z.isNeutralFence(s)&&z.isSimpleFunctionScope(s)?(s.role=_.SemanticRole.LEFTRIGHT,R.propagateFunctionRole_(t,_.SemanticRole.SIMPLEFUNC),a=R.getInstance().functionNode_(t,r.shift()),r.unshift(a),r):(r.unshift(t),r)}}}getIntegralArgs_(t,r=[]){if(t.length===0){const o=yt.sliceNodes(r,z.isBigOpBoundary);return o.div&&o.tail.unshift(o.div),{integrand:o.head,intvar:null,rest:o.tail}}Dt.SemanticHeuristics.run("intvar_from_implicit",t);const n=t[0];if(z.isGeneralFunctionBoundary(n)){const{integrand:o,rest:i}=R.getInstance().getIntegralArgs_(r);return{integrand:o,intvar:null,rest:i.concat(t)}}if(z.isIntegralDxBoundarySingle(n))return n.role=_.SemanticRole.INTEGRAL,{integrand:r,intvar:n,rest:t.slice(1)};if(t[1]&&z.isIntegralDxBoundary(n,t[1])){const o=R.getInstance().prefixNode_(t[1],[n]);return o.role=_.SemanticRole.INTEGRAL,{integrand:r,intvar:o,rest:t.slice(2)}}return r.push(t.shift()),R.getInstance().getIntegralArgs_(t,r)}functionNode_(t,r){const n=R.getInstance().factory_.makeContentNode(vn.NamedSymbol.functionApplication),o=R.getInstance().funcAppls[t.id];o&&(n.mathmlTree=o.mathmlTree,n.mathml=o.mathml,n.annotation=o.annotation,n.attributes=o.attributes,delete R.getInstance().funcAppls[t.id]),n.type=_.SemanticType.PUNCTUATION,n.role=_.SemanticRole.APPLICATION;const i=R.getFunctionOp_(t,function(a){return z.isType(a,_.SemanticType.FUNCTION)||z.isType(a,_.SemanticType.IDENTIFIER)&&z.isRole(a,_.SemanticRole.SIMPLEFUNC)});return R.getInstance().functionalNode_(_.SemanticType.APPL,[t,r],i,[n])}bigOpNode_(t,r){const n=R.getFunctionOp_(t,o=>z.isType(o,_.SemanticType.LARGEOP));return R.getInstance().functionalNode_(_.SemanticType.BIGOP,[t,r],n,[])}integralNode_(t,r,n){r=r||R.getInstance().factory_.makeEmptyNode(),n=n||R.getInstance().factory_.makeEmptyNode();const o=R.getFunctionOp_(t,i=>z.isType(i,_.SemanticType.LARGEOP));return R.getInstance().functionalNode_(_.SemanticType.INTEGRAL,[t,r,n],o,[])}functionalNode_(t,r,n,o){const i=r[0];let a;n&&(a=n.parent,o.push(n));const s=R.getInstance().factory_.makeBranchNode(t,r,o);return s.role=i.role,a&&(n.parent=a),s}fractionNode_(t,r){const n=R.getInstance().factory_.makeBranchNode(_.SemanticType.FRACTION,[t,r],[]);return n.role=n.childNodes.every(function(o){return z.isType(o,_.SemanticType.NUMBER)&&z.isRole(o,_.SemanticRole.INTEGER)})?_.SemanticRole.VULGAR:n.childNodes.every(z.isPureUnit)?_.SemanticRole.UNIT:_.SemanticRole.DIVISION,Dt.SemanticHeuristics.run("propagateSimpleFunction",n)}scriptNode_(t,r,n){let o;switch(t.length){case 0:o=R.getInstance().factory_.makeEmptyNode();break;case 1:if(o=t[0],n)return o;break;default:o=R.getInstance().dummyNode_(t)}return o.role=r,o}findNestedRow_(t,r,n,o){if(n>3)return null;for(let i=0,a;a=t[i];i++){const s=bn.tagName(a);if(s!==gt.MMLTAGS.MSPACE){if(s===gt.MMLTAGS.MROW)return R.getInstance().findNestedRow_(bn.toArray(a.childNodes),r,n+1,o);if(R.findSemantics(a,r,o))return a}}return null}}Ma.SemanticProcessor=R,R.FENCE_TO_PUNCT_={[_.SemanticRole.METRIC]:_.SemanticRole.METRIC,[_.SemanticRole.NEUTRAL]:_.SemanticRole.VBAR,[_.SemanticRole.OPEN]:_.SemanticRole.OPENFENCE,[_.SemanticRole.CLOSE]:_.SemanticRole.CLOSEFENCE},R.MML_TO_LIMIT_={[gt.MMLTAGS.MSUB]:{type:_.SemanticType.LIMLOWER,length:1},[gt.MMLTAGS.MUNDER]:{type:_.SemanticType.LIMLOWER,length:1},[gt.MMLTAGS.MSUP]:{type:_.SemanticType.LIMUPPER,length:1},[gt.MMLTAGS.MOVER]:{type:_.SemanticType.LIMUPPER,length:1},[gt.MMLTAGS.MSUBSUP]:{type:_.SemanticType.LIMBOTH,length:2},[gt.MMLTAGS.MUNDEROVER]:{type:_.SemanticType.LIMBOTH,length:2}},R.MML_TO_BOUNDS_={[gt.MMLTAGS.MSUB]:{type:_.SemanticType.SUBSCRIPT,length:1,accent:!1},[gt.MMLTAGS.MSUP]:{type:_.SemanticType.SUPERSCRIPT,length:1,accent:!1},[gt.MMLTAGS.MSUBSUP]:{type:_.SemanticType.SUBSCRIPT,length:2,accent:!1},[gt.MMLTAGS.MUNDER]:{type:_.SemanticType.UNDERSCORE,length:1,accent:!0},[gt.MMLTAGS.MOVER]:{type:_.SemanticType.OVERSCORE,length:1,accent:!0},[gt.MMLTAGS.MUNDEROVER]:{type:_.SemanticType.UNDERSCORE,length:2,accent:!0}},R.CLASSIFY_FUNCTION_={[_.SemanticRole.INTEGRAL]:"integral",[_.SemanticRole.SUM]:"bigop",[_.SemanticRole.PREFIXFUNC]:"prefix",[_.SemanticRole.LIMFUNC]:"prefix",[_.SemanticRole.SIMPLEFUNC]:"prefix",[_.SemanticRole.COMPFUNC]:"prefix"},R.MATHJAX_FONTS={"-tex-caligraphic":_.SemanticFont.CALIGRAPHIC,"-tex-caligraphic-bold":_.SemanticFont.CALIGRAPHICBOLD,"-tex-calligraphic":_.SemanticFont.CALIGRAPHIC,"-tex-calligraphic-bold":_.SemanticFont.CALIGRAPHICBOLD,"-tex-oldstyle":_.SemanticFont.OLDSTYLE,"-tex-oldstyle-bold":_.SemanticFont.OLDSTYLEBOLD,"-tex-mathit":_.SemanticFont.ITALIC},Object.defineProperty(be,"__esModule",{value:!0}),be.spaceoutText=IL,be.spaceoutNumber=PL,be.spaceoutIdentifier=kL,be.resetNestingDepth=BL,be.fractionNestingDepth=Kc,be.openingFractionVerbose=jL,be.closingFractionVerbose=FL,be.overFractionVerbose=UL,be.openingFractionBrief=HL,be.closingFractionBrief=qL,be.openingFractionSbrief=GL,be.closingFractionSbrief=XL,be.overFractionSbrief=VL,be.isSmallVulgarFraction=WL,be.nestedSubSuper=hi,be.subscriptVerbose=$L,be.subscriptBrief=zL,be.superscriptVerbose=KL,be.superscriptBrief=JL,be.baselineVerbose=YL,be.baselineBrief=QL,be.radicalNestingDepth=mE,be.openingRadicalVerbose=eI,be.closingRadicalVerbose=tI,be.indexRadicalVerbose=rI,be.openingRadicalBrief=nI,be.closingRadicalBrief=oI,be.indexRadicalBrief=iI,be.openingRadicalSbrief=aI,be.indexRadicalSbrief=sI,be.nestedUnderscript=lI,be.endscripts=pI,be.nestedOverscript=dI,be.determinantIsSimple=hI,be.generateBaselineConstraint=fI,be.removeParens=mI,be.generateTensorRules=bI,be.smallRoot=vI;const $e=Mr,RL=Gn,bg=he,dE=Rt,te=Re,Ae=Se,LL=Ma;let _a={};function IL(e){return Array.from(e.textContent).map($e.Span.stringEmpty)}function hE(e,t){const r=Array.from(e.textContent),n=[],o=LL.SemanticProcessor.getInstance(),i=e.ownerDocument;for(let a=0,s;s=r[a];a++){const c=o.getNodeFactory().makeLeafNode(s,Ae.SemanticFont.UNKNOWN),l=o.identifierNode(c,Ae.SemanticFont.UNKNOWN,"");t(l),n.push(l.xml(i))}return n}function PL(e){return hE(e,function(t){t.textContent.match(/\W/)||(t.type=Ae.SemanticType.NUMBER)})}function kL(e){return hE(e,function(t){t.font=Ae.SemanticFont.UNKNOWN,t.type=Ae.SemanticType.IDENTIFIER})}const zc=[Ae.SemanticType.CASES,Ae.SemanticType.CELL,Ae.SemanticType.INTEGRAL,Ae.SemanticType.LINE,Ae.SemanticType.MATRIX,Ae.SemanticType.MULTILINE,Ae.SemanticType.OVERSCORE,Ae.SemanticType.ROOT,Ae.SemanticType.ROW,Ae.SemanticType.SQRT,Ae.SemanticType.SUBSCRIPT,Ae.SemanticType.SUPERSCRIPT,Ae.SemanticType.TABLE,Ae.SemanticType.UNDERSCORE,Ae.SemanticType.VECTOR];function BL(e){return _a={},[e]}function Mp(e,t,r,n,o,i){n=n||zc,o=o||{},i=i||(function(c){return!1});const a=bg.serializeXml(t);if(_a[e]||(_a[e]={}),_a[e][a])return _a[e][a];if(i(t)||r.indexOf(t.tagName)<0)return 0;const s=fE(t,r,RL.setdifference(n,r),o,i,0);return _a[e][a]=s,s}function DL(e,t){if(!e.attributes)return!1;const r=bg.toArray(e.attributes);for(let n=0,o;o=r[n];n++)if(t[o.nodeName]===o.nodeValue)return!0;return!1}function fE(e,t,r,n,o,i){if(o(e)||r.indexOf(e.tagName)>-1||DL(e,n)||(t.indexOf(e.tagName)>-1&&i++,!e.childNodes||e.childNodes.length===0))return i;const a=bg.toArray(e.childNodes);return Math.max.apply(null,a.map(function(s){return fE(s,t,r,n,o,i)}))}function Kc(e){return Mp("fraction",e,["fraction"],zc,{},te.LOCALE.FUNCTIONS.fracNestDepth)}function Jc(e,t,r){const n=Kc(e),o=Array(n).fill(t);return r&&o.push(r),o.join(te.LOCALE.MESSAGES.regexp.JOINER_FRAC)}function jL(e){return $e.Span.singleton(Jc(e,te.LOCALE.MESSAGES.MS.START,te.LOCALE.MESSAGES.MS.FRAC_V))}function FL(e){return $e.Span.singleton(Jc(e,te.LOCALE.MESSAGES.MS.END,te.LOCALE.MESSAGES.MS.FRAC_V),{kind:"LAST"})}function UL(e){return $e.Span.singleton(Jc(e,te.LOCALE.MESSAGES.MS.FRAC_OVER),{})}function HL(e){return $e.Span.singleton(Jc(e,te.LOCALE.MESSAGES.MS.START,te.LOCALE.MESSAGES.MS.FRAC_B))}function qL(e){return $e.Span.singleton(Jc(e,te.LOCALE.MESSAGES.MS.END,te.LOCALE.MESSAGES.MS.FRAC_B),{kind:"LAST"})}function GL(e){const t=Kc(e);return $e.Span.singleton(t===1?te.LOCALE.MESSAGES.MS.FRAC_S:te.LOCALE.FUNCTIONS.combineNestedFraction(te.LOCALE.MESSAGES.MS.NEST_FRAC,te.LOCALE.FUNCTIONS.radicalNestDepth(t-1),te.LOCALE.MESSAGES.MS.FRAC_S))}function XL(e){const t=Kc(e);return $e.Span.singleton(t===1?te.LOCALE.MESSAGES.MS.ENDFRAC:te.LOCALE.FUNCTIONS.combineNestedFraction(te.LOCALE.MESSAGES.MS.NEST_FRAC,te.LOCALE.FUNCTIONS.radicalNestDepth(t-1),te.LOCALE.MESSAGES.MS.ENDFRAC),{kind:"LAST"})}function VL(e){const t=Kc(e);return $e.Span.singleton(t===1?te.LOCALE.MESSAGES.MS.FRAC_OVER:te.LOCALE.FUNCTIONS.combineNestedFraction(te.LOCALE.MESSAGES.MS.NEST_FRAC,te.LOCALE.FUNCTIONS.radicalNestDepth(t-1),te.LOCALE.MESSAGES.MS.FRAC_OVER))}function WL(e){return te.LOCALE.FUNCTIONS.fracNestDepth(e)?[e]:[]}function hi(e,t,r){for(;e.parentNode;){const n=e.parentNode,o=n.parentNode;if(!o)break;const i=e.getAttribute&&e.getAttribute("role");(o.tagName===Ae.SemanticType.SUBSCRIPT&&e===n.childNodes[1]||o.tagName===Ae.SemanticType.TENSOR&&i&&(i===Ae.SemanticRole.LEFTSUB||i===Ae.SemanticRole.RIGHTSUB))&&(t=r.sub+te.LOCALE.MESSAGES.regexp.JOINER_SUBSUPER+t),(o.tagName===Ae.SemanticType.SUPERSCRIPT&&e===n.childNodes[1]||o.tagName===Ae.SemanticType.TENSOR&&i&&(i===Ae.SemanticRole.LEFTSUPER||i===Ae.SemanticRole.RIGHTSUPER))&&(t=r.sup+te.LOCALE.MESSAGES.regexp.JOINER_SUBSUPER+t),e=o}return t.trim()}function $L(e){return $e.Span.singleton(hi(e,te.LOCALE.MESSAGES.MS.SUBSCRIPT,{sup:te.LOCALE.MESSAGES.MS.SUPER,sub:te.LOCALE.MESSAGES.MS.SUB}))}function zL(e){return $e.Span.singleton(hi(e,te.LOCALE.MESSAGES.MS.SUB,{sup:te.LOCALE.MESSAGES.MS.SUP,sub:te.LOCALE.MESSAGES.MS.SUB}))}function KL(e){return $e.Span.singleton(hi(e,te.LOCALE.MESSAGES.MS.SUPERSCRIPT,{sup:te.LOCALE.MESSAGES.MS.SUPER,sub:te.LOCALE.MESSAGES.MS.SUB}))}function JL(e){return $e.Span.singleton(hi(e,te.LOCALE.MESSAGES.MS.SUP,{sup:te.LOCALE.MESSAGES.MS.SUP,sub:te.LOCALE.MESSAGES.MS.SUB}))}function YL(e){const t=hi(e,"",{sup:te.LOCALE.MESSAGES.MS.SUPER,sub:te.LOCALE.MESSAGES.MS.SUB});return $e.Span.singleton(t?t.replace(new RegExp(te.LOCALE.MESSAGES.MS.SUB+"$"),te.LOCALE.MESSAGES.MS.SUBSCRIPT).replace(new RegExp(te.LOCALE.MESSAGES.MS.SUPER+"$"),te.LOCALE.MESSAGES.MS.SUPERSCRIPT):te.LOCALE.MESSAGES.MS.BASELINE)}function QL(e){const t=hi(e,"",{sup:te.LOCALE.MESSAGES.MS.SUP,sub:te.LOCALE.MESSAGES.MS.SUB});return $e.Span.singleton(t||te.LOCALE.MESSAGES.MS.BASE)}function mE(e){return Mp("radical",e,["sqrt","root"],zc,{})}function Eo(e,t,r){const n=mE(e),o=ZL(e);return r=o?te.LOCALE.FUNCTIONS.combineRootIndex(r,o):r,n===1?r:te.LOCALE.FUNCTIONS.combineNestedRadical(t,te.LOCALE.FUNCTIONS.radicalNestDepth(n-1),r)}function ZL(e){const t=e.tagName==="sqrt"?"2":dE.evalXPath("children/*[1]",e)[0].textContent.trim();return te.LOCALE.MESSAGES.MSroots[t]||""}function eI(e){return $e.Span.singleton(Eo(e,te.LOCALE.MESSAGES.MS.NESTED,te.LOCALE.MESSAGES.MS.STARTROOT))}function tI(e){return $e.Span.singleton(Eo(e,te.LOCALE.MESSAGES.MS.NESTED,te.LOCALE.MESSAGES.MS.ENDROOT))}function rI(e){return $e.Span.singleton(Eo(e,te.LOCALE.MESSAGES.MS.NESTED,te.LOCALE.MESSAGES.MS.ROOTINDEX))}function nI(e){return $e.Span.singleton(Eo(e,te.LOCALE.MESSAGES.MS.NEST_ROOT,te.LOCALE.MESSAGES.MS.STARTROOT))}function oI(e){return $e.Span.singleton(Eo(e,te.LOCALE.MESSAGES.MS.NEST_ROOT,te.LOCALE.MESSAGES.MS.ENDROOT))}function iI(e){return $e.Span.singleton(Eo(e,te.LOCALE.MESSAGES.MS.NEST_ROOT,te.LOCALE.MESSAGES.MS.ROOTINDEX))}function aI(e){return $e.Span.singleton(Eo(e,te.LOCALE.MESSAGES.MS.NEST_ROOT,te.LOCALE.MESSAGES.MS.ROOT))}function sI(e){return $e.Span.singleton(Eo(e,te.LOCALE.MESSAGES.MS.NEST_ROOT,te.LOCALE.MESSAGES.MS.INDEX))}function cI(e){return Mp("underscore",e,["underscore"],zc,{},function(t){return t.tagName&&t.tagName===Ae.SemanticType.UNDERSCORE&&t.childNodes[0].childNodes[1].getAttribute("role")===Ae.SemanticRole.UNDERACCENT})}function lI(e){const t=cI(e);return $e.Span.singleton(Array(t).join(te.LOCALE.MESSAGES.MS.UNDER)+te.LOCALE.MESSAGES.MS.UNDERSCRIPT)}function uI(e){return Mp("overscore",e,["overscore"],zc,{},function(t){return t.tagName&&t.tagName===Ae.SemanticType.OVERSCORE&&t.childNodes[0].childNodes[1].getAttribute("role")===Ae.SemanticRole.OVERACCENT})}function pI(e){return $e.Span.singleton(te.LOCALE.MESSAGES.MS.ENDSCRIPTS)}function dI(e){const t=uI(e);return $e.Span.singleton(Array(t).join(te.LOCALE.MESSAGES.MS.OVER)+te.LOCALE.MESSAGES.MS.OVERSCRIPT)}function hI(e){if(e.tagName!==Ae.SemanticType.MATRIX||e.getAttribute("role")!==Ae.SemanticRole.DETERMINANT)return[];const t=dE.evalXPath("children/row/children/cell/children/*",e);for(let r=0,n;n=t[r];r++)if(n.tagName!==Ae.SemanticType.NUMBER){if(n.tagName===Ae.SemanticType.IDENTIFIER){const o=n.getAttribute("role");if(o===Ae.SemanticRole.LATINLETTER||o===Ae.SemanticRole.GREEKLETTER||o===Ae.SemanticRole.OTHERLETTER)continue}return[]}return[e]}function fI(){const e=["subscript","superscript","tensor"],t=["relseq","multrel"],r=["fraction","punctuation","fenced","sqrt","root"],n=u=>u.map(p=>"ancestor::"+p),o=u=>"not("+u+")",i="ancestor::*/following-sibling::*",a=o(n(e).join(" or ")),s=n(t),c=n(r);let l=[];for(let u=0,p;p=c[u];u++)l=l.concat(s.map(function(d){return p+"/"+d}));return[[i,a,o(l.join(" | "))].join(" and ")]}function mI(e){if(!e.childNodes.length||!e.childNodes[0].childNodes.length||!e.childNodes[0].childNodes[0].childNodes.length)return $e.Span.singleton("");const t=e.childNodes[0].childNodes[0].childNodes[0].textContent;return $e.Span.singleton(t.match(/^\(.+\)$/)?t.slice(1,-1):t)}const yE=new Map([[3,"CSFleftsuperscript"],[4,"CSFleftsubscript"],[2,"CSFbaseline"],[1,"CSFrightsubscript"],[0,"CSFrightsuperscript"]]),yI=new Map([[4,2],[3,3],[2,1],[1,4],[0,5]]);function gI(e){const t=[];let r="",n="",o=parseInt(e,2);for(let i=0;i<5;i++){const a="children/*["+yI.get(i)+"]";if(o&1){const s=yE.get(i%5);r="[t] "+s+"Verbose; [n] "+a+";"+r,n="[t] "+s+"Brief; [n] "+a+";"+n}else t.unshift("name("+a+')="empty"');o>>=1}return[t,r,n]}function bI(e,t=!0){for(const r of["11111","11110","11101","11100","10111","10110","10101","10100","01111","01110","01101","01100"]){let n="tensor"+r,[o,i,a]=gI(r);if(e.defineRule(n,"default",i,"self::tensor",...o),t&&(e.defineRule(n,"brief",a,"self::tensor",...o),e.defineRule(n,"sbrief",a,"self::tensor",...o)),!(parseInt(r,2)&3))continue;const s=yE.get(2);i+="; [t]"+s+"Verbose",a+="; [t]"+s+"Brief",n=n+"-baseline";const c="((.//*[not(*)])[last()]/@id)!=(((.//ancestor::fraction|ancestor::root|ancestor::sqrt|ancestor::cell|ancestor::line|ancestor::stree)[1]//*[not(*)])[last()]/@id)";e.defineRule(n,"default",i,"self::tensor",c,...o),t&&(e.defineRule(n,"brief",a,"self::tensor",c,...o),e.defineRule(n,"sbrief",a,"self::tensor",c,...o))}}function vI(e){let t=Object.keys(te.LOCALE.MESSAGES.MSroots).length;if(t)t++;else return[];if(!e.childNodes||e.childNodes.length===0||!e.childNodes[0].childNodes)return[];const r=e.childNodes[0].childNodes[0].textContent;if(!/^\d+$/.test(r))return[];const n=parseInt(r,10);return n>1&&n<=t?[e]:[]}var xo={};Object.defineProperty(xo,"__esModule",{value:!0}),xo.ordinalCounter=xI,xo.wordCounter=MI,xo.vulgarFraction=OI,xo.ordinalPosition=AI;const Yc=Mr,SI=he,fi=Re,EI=Lt;function xI(e,t){let r=0;return function(){return fi.LOCALE.NUMBERS.numericOrdinal(++r)+" "+t}}function MI(e,t){let r=0;return function(){return fi.LOCALE.NUMBERS.numberToOrdinal(++r,!1)+" "+t}}function OI(e){const t=(0,EI.convertVulgarFraction)(e,fi.LOCALE.MESSAGES.MS.FRAC_OVER);return t.convertible&&t.enumerator&&t.denominator?[Yc.Span.node(fi.LOCALE.NUMBERS.numberToWords(t.enumerator),e.childNodes[0].childNodes[0],{separator:""}),Yc.Span.stringAttr(fi.LOCALE.NUMBERS.vulgarSep,{separator:""}),Yc.Span.node(fi.LOCALE.NUMBERS.numberToOrdinal(t.denominator,t.enumerator!==1),e.childNodes[0].childNodes[1])]:[Yc.Span.node(t.content||"",e)]}function AI(e){const t=SI.toArray(e.parentNode.childNodes);return Yc.Span.singleton(fi.LOCALE.NUMBERS.numericOrdinal(t.indexOf(e)+1).toString())}Object.defineProperty(ag,"__esModule",{value:!0}),ag.ClearspeakRules=wI;const TI=pt,gE=Hn,$n=zr,CI=be,NI=xo,_I=ui;function wI(){_I.addStore(TI.DynamicCstr.BASE_LOCALE+".speech.clearspeak","",{CTFpauseSeparator:gE.pauseSeparator,CTFnodeCounter:$n.nodeCounter,CTFcontentIterator:gE.contentIterator,CSFvulgarFraction:NI.vulgarFraction,CQFvulgarFractionSmall:$n.isSmallVulgarFraction,CQFcellsSimple:$n.allCellsSimple,CSFordinalExponent:$n.ordinalExponent,CSFwordOrdinal:$n.wordOrdinal,CQFmatchingFences:$n.matchingFences,CSFnestingDepth:$n.nestingDepth,CQFfencedArguments:$n.fencedArguments,CQFsimpleArguments:$n.simpleArguments,CQFspaceoutNumber:CI.spaceoutNumber})}var vg={},Mo={};Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.baselineVerbose=RI,Mo.baselineBrief=LI,Mo.leftSuperscriptVerbose=II,Mo.leftSubscriptVerbose=PI,Mo.leftSuperscriptBrief=kI,Mo.leftSubscriptBrief=BI;const wa=be;function RI(e){const t=wa.baselineVerbose(e);return t[0].speech=t[0].speech.replace(/-$/,""),t}function LI(e){const t=wa.baselineBrief(e);return t[0].speech=t[0].speech.replace(/-$/,""),t}function II(e){const t=wa.superscriptVerbose(e);return t[0].speech=t[0].speech.replace(/^exposant/,"exposant gauche"),t}function PI(e){const t=wa.subscriptVerbose(e);return t[0].speech=t[0].speech.replace(/^indice/,"indice gauche"),t}function kI(e){const t=wa.superscriptBrief(e);return t[0].speech=t[0].speech.replace(/^sup/,"sup gauche"),t}function BI(e){const t=wa.subscriptBrief(e);return t[0].speech=t[0].speech.replace(/^sub/,"sub gauche"),t}var ze={};Object.defineProperty(ze,"__esModule",{value:!0}),ze.nestedFraction=Zc,ze.openingFractionVerbose=DI,ze.closingFractionVerbose=jI,ze.openingFractionBrief=FI,ze.closingFractionBrief=UI,ze.openingFractionSbrief=HI,ze.closingFractionSbrief=qI,ze.overFractionSbrief=GI,ze.isSimpleIndex=XI,ze.nestedRadical=Ra,ze.openingRadicalVerbose=VI,ze.closingRadicalVerbose=WI,ze.openingRadicalBrief=$I,ze.closingRadicalBrief=zI,ze.openingRadicalSbrief=KI,ze.getRootIndex=bE,ze.indexRadical=Op,ze.indexRadicalVerbose=JI,ze.indexRadicalBrief=YI,ze.indexRadicalSbrief=QI,ze.ordinalConversion=ZI,ze.decreasedOrdinalConversion=e5,ze.listOrdinalConversion=t5,ze.checkDepth=r5,ze.getDepthValue=Sg;const vt=Mr,Qc=be,xe=Re,mi=Rt;function Zc(e,t,r){const n=Qc.fractionNestingDepth(e),o=[...Array(n)].map(i=>t);return r&&o.unshift(r),o.join(xe.LOCALE.MESSAGES.regexp.JOINER_FRAC)}function DI(e){return vt.Span.singleton(Zc(e,xe.LOCALE.MESSAGES.MS.START,xe.LOCALE.MESSAGES.MS.FRAC_V))}function jI(e){return vt.Span.singleton(Zc(e,xe.LOCALE.MESSAGES.MS.END,xe.LOCALE.MESSAGES.MS.FRAC_V))}function FI(e){return vt.Span.singleton(Zc(e,xe.LOCALE.MESSAGES.MS.START,xe.LOCALE.MESSAGES.MS.FRAC_B))}function UI(e){return vt.Span.singleton(Zc(e,xe.LOCALE.MESSAGES.MS.END,xe.LOCALE.MESSAGES.MS.FRAC_B))}function HI(e){const t=Qc.fractionNestingDepth(e);return t===1?vt.Span.singleton(xe.LOCALE.MESSAGES.MS.FRAC_S):vt.Span.singleton(xe.LOCALE.FUNCTIONS.combineNestedFraction(xe.LOCALE.FUNCTIONS.radicalNestDepth(t-1),xe.LOCALE.MESSAGES.MS.NEST_FRAC,xe.LOCALE.MESSAGES.MS.FRAC_S))}function qI(e){const t=Qc.fractionNestingDepth(e);return t===1?vt.Span.singleton(xe.LOCALE.MESSAGES.MS.ENDFRAC):vt.Span.singleton(xe.LOCALE.FUNCTIONS.combineNestedFraction(xe.LOCALE.FUNCTIONS.radicalNestDepth(t-1),xe.LOCALE.MESSAGES.MS.NEST_FRAC,xe.LOCALE.MESSAGES.MS.ENDFRAC))}function GI(e){const t=Qc.fractionNestingDepth(e);return t===1?vt.Span.singleton(xe.LOCALE.MESSAGES.MS.FRAC_OVER):vt.Span.singleton(xe.LOCALE.FUNCTIONS.combineNestedFraction(xe.LOCALE.FUNCTIONS.radicalNestDepth(t-1),xe.LOCALE.MESSAGES.MS.NEST_FRAC,xe.LOCALE.MESSAGES.MS.FRAC_OVER))}function XI(e){return mi.evalXPath("children/*[1]",e)[0].toString().match(/[^>⁢>]+<\/[^>]*>/g).length===1?[e]:[]}function Ra(e,t,r){const n=Qc.radicalNestingDepth(e);return n===1?r:xe.LOCALE.FUNCTIONS.combineNestedRadical(xe.LOCALE.FUNCTIONS.radicalNestDepth(n-1),t,r)}function VI(e){return vt.Span.singleton(Ra(e,xe.LOCALE.MESSAGES.MS.NESTED,xe.LOCALE.MESSAGES.MS.STARTROOT))}function WI(e){return vt.Span.singleton(Ra(e,xe.LOCALE.MESSAGES.MS.NESTED,xe.LOCALE.MESSAGES.MS.ENDROOT))}function $I(e){return vt.Span.singleton(Ra(e,xe.LOCALE.MESSAGES.MS.NEST_ROOT,xe.LOCALE.MESSAGES.MS.STARTROOT))}function zI(e){return vt.Span.singleton(Ra(e,xe.LOCALE.MESSAGES.MS.NEST_ROOT,xe.LOCALE.MESSAGES.MS.ENDROOT))}function KI(e){return vt.Span.singleton(Ra(e,xe.LOCALE.MESSAGES.MS.NEST_ROOT,xe.LOCALE.MESSAGES.MS.ROOT))}function bE(e){const t=mi.evalXPath("children/*[1]",e)[0].textContent.trim();return xe.LOCALE.MESSAGES.MSroots[t]||t+"제곱근"}function Op(e,t){return bE(e)||t}function JI(e){return vt.Span.singleton(Op(e,xe.LOCALE.MESSAGES.MS.ROOTINDEX))}function YI(e){return vt.Span.singleton(Op(e,xe.LOCALE.MESSAGES.MS.ROOTINDEX))}function QI(e){return vt.Span.singleton(Op(e,xe.LOCALE.MESSAGES.MS.INDEX))}function ZI(e){const t=mi.evalXPath("children/*",e);return vt.Span.singleton(xe.LOCALE.NUMBERS.wordOrdinal(t.length))}function e5(e){const t=mi.evalXPath("children/*",e);return vt.Span.singleton(xe.LOCALE.NUMBERS.wordOrdinal(t.length-1))}function t5(e){const t=mi.evalXPath("children/*",e),r=mi.evalXPath("content/*",e);return vt.Span.singleton(xe.LOCALE.NUMBERS.wordOrdinal(t.length-r.length))}function r5(e){return Sg(e,[])>3?[]:[e]}function Sg(e,t){const r=e.getAttribute("role");t.indexOf(r)>-1||t.push(r);const n=mi.evalXPath("children/*",e);let o=0,i=0;return n.length?(n.forEach(a=>{i=Sg(a,t),o=i>o?i:o}),o+1):0}var Ap={};Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.unitMultipliers=i5,Ap.oneLeft=l5;const n5=xr,Eg=Rt,o5=Re,Tp=Se;function i5(e,t){const r=e;let n=0;return function(){const o=n5.AuditoryDescription.create({text:s5(r[n])&&c5(r[n+1])?o5.LOCALE.MESSAGES.unitTimes:""},{});return n++,[o]}}const a5=[Tp.SemanticType.SUPERSCRIPT,Tp.SemanticType.SUBSCRIPT,Tp.SemanticType.OVERSCORE,Tp.SemanticType.UNDERSCORE];function s5(e){for(;e;){if(e.getAttribute("role")==="unit")return!0;const t=e.tagName,r=Eg.evalXPath("children/*",e);e=a5.indexOf(t)!==-1?r[0]:r[r.length-1]}return!1}function c5(e){for(;e;){if(e.getAttribute("role")==="unit")return!0;e=Eg.evalXPath("children/*",e)[0]}return!1}function l5(e){for(;e;){if(e.tagName==="number"&&e.textContent==="1")return[e];if(e.tagName!=="infixop"||e.getAttribute("role")!=="multiplication"&&e.getAttribute("role")!=="implicit")return[];e=Eg.evalXPath("children/*",e)[0]}return[]}Object.defineProperty(vg,"__esModule",{value:!0}),vg.MathspeakRules=p5;const Cp=pt,u5=Hn,La=Mo,Qt=ze,Me=be,xg=xo,Np=ui,vE=Ap;function p5(){Np.addStore(Cp.DynamicCstr.BASE_LOCALE+".speech.mathspeak","",{CQFspaceoutNumber:Me.spaceoutNumber,CQFspaceoutIdentifier:Me.spaceoutIdentifier,CSFspaceoutText:Me.spaceoutText,CSFopenFracVerbose:Me.openingFractionVerbose,CSFcloseFracVerbose:Me.closingFractionVerbose,CSFoverFracVerbose:Me.overFractionVerbose,CSFopenFracBrief:Me.openingFractionBrief,CSFcloseFracBrief:Me.closingFractionBrief,CSFopenFracSbrief:Me.openingFractionSbrief,CSFcloseFracSbrief:Me.closingFractionSbrief,CSFoverFracSbrief:Me.overFractionSbrief,CSFvulgarFraction:xg.vulgarFraction,CQFvulgarFractionSmall:Me.isSmallVulgarFraction,CSFopenRadicalVerbose:Me.openingRadicalVerbose,CSFcloseRadicalVerbose:Me.closingRadicalVerbose,CSFindexRadicalVerbose:Me.indexRadicalVerbose,CSFopenRadicalBrief:Me.openingRadicalBrief,CSFcloseRadicalBrief:Me.closingRadicalBrief,CSFindexRadicalBrief:Me.indexRadicalBrief,CSFopenRadicalSbrief:Me.openingRadicalSbrief,CSFindexRadicalSbrief:Me.indexRadicalSbrief,CQFisSmallRoot:Me.smallRoot,CSFsuperscriptVerbose:Me.superscriptVerbose,CSFsuperscriptBrief:Me.superscriptBrief,CSFsubscriptVerbose:Me.subscriptVerbose,CSFsubscriptBrief:Me.subscriptBrief,CSFbaselineVerbose:Me.baselineVerbose,CSFbaselineBrief:Me.baselineBrief,CSFleftsuperscriptVerbose:Me.superscriptVerbose,CSFleftsubscriptVerbose:Me.subscriptVerbose,CSFrightsuperscriptVerbose:Me.superscriptVerbose,CSFrightsubscriptVerbose:Me.subscriptVerbose,CSFleftsuperscriptBrief:Me.superscriptBrief,CSFleftsubscriptBrief:Me.subscriptBrief,CSFrightsuperscriptBrief:Me.superscriptBrief,CSFrightsubscriptBrief:Me.subscriptBrief,CSFunderscript:Me.nestedUnderscript,CSFoverscript:Me.nestedOverscript,CSFendscripts:Me.endscripts,CTFordinalCounter:xg.ordinalCounter,CTFwordCounter:xg.wordCounter,CTFcontentIterator:u5.contentIterator,CQFdetIsSimple:Me.determinantIsSimple,CSFRemoveParens:Me.removeParens,CQFresetNesting:Me.resetNestingDepth,CGFbaselineConstraint:Me.generateBaselineConstraint,CGFtensorRules:Me.generateTensorRules}),Np.addStore("es.speech.mathspeak",Cp.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CTFunitMultipliers:vE.unitMultipliers,CQFoneLeft:vE.oneLeft}),Np.addStore("fr.speech.mathspeak",Cp.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CSFbaselineVerbose:La.baselineVerbose,CSFbaselineBrief:La.baselineBrief,CSFleftsuperscriptVerbose:La.leftSuperscriptVerbose,CSFleftsubscriptVerbose:La.leftSubscriptVerbose,CSFleftsuperscriptBrief:La.leftSuperscriptBrief,CSFleftsubscriptBrief:La.leftSubscriptBrief}),Np.addStore("ko.speech.mathspeak",Cp.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CSFopenFracVerbose:Qt.openingFractionVerbose,CSFcloseFracVerbose:Qt.closingFractionVerbose,CSFopenFracBrief:Qt.openingFractionBrief,CSFcloseFracBrief:Qt.closingFractionBrief,CSFopenFracSbrief:Qt.openingFractionSbrief,CSFoverFracSbrief:Qt.overFractionSbrief,CSFcloseFracSbrief:Qt.closingFractionSbrief,CQFisSimpleIndex:Qt.isSimpleIndex,CSFindexRadicalVerbose:Qt.indexRadicalVerbose,CSFindexRadicalBrief:Qt.indexRadicalBrief,CSFindexRadicalSbrief:Qt.indexRadicalSbrief,CSFopenRadicalVerbose:Qt.openingRadicalVerbose,CSFcloseRadicalVerbose:Qt.closingRadicalVerbose,CSFopenRadicalBrief:Qt.openingRadicalBrief,CSFcloseRadicalBrief:Qt.closingRadicalBrief,CSFopenRadicalSbrief:Qt.openingRadicalSbrief})}var el={},Or={};Object.defineProperty(Or,"__esModule",{value:!0}),Or.openingFraction=h5,Or.closingFraction=f5,Or.overFraction=m5,Or.overBevelledFraction=y5,Or.hyperFractionBoundary=g5,Or.openingRadical=b5,Or.closingRadical=v5,Or.indexRadical=S5,Or.relationIterator=T5,Or.implicitIterator=C5,Or.contentIterator=_5;const zn=xr,tl=Mr,_p=he,SE=Rt,wp=Ot,Mg=Oe,Og=pi,EE=qn,Tt=Se,It=Re,Ia=be,d5=Hn;function h5(e){const t=Ia.fractionNestingDepth(e);return tl.Span.singleton(new Array(t).join(It.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+It.LOCALE.MESSAGES.MS.FRACTION_START)}function f5(e){const t=Ia.fractionNestingDepth(e);return tl.Span.singleton(new Array(t).join(It.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+It.LOCALE.MESSAGES.MS.FRACTION_END)}function m5(e){const t=Ia.fractionNestingDepth(e);return tl.Span.singleton(new Array(t).join(It.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+It.LOCALE.MESSAGES.MS.FRACTION_OVER)}function y5(e){const t=Ia.fractionNestingDepth(e);return tl.Span.singleton(new Array(t).join(It.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+"⠸"+It.LOCALE.MESSAGES.MS.FRACTION_OVER)}function g5(e){return It.LOCALE.MESSAGES.regexp.HYPER===Ia.fractionNestingDepth(e).toString()?[e]:[]}function Ag(e,t){const r=xE(e);return tl.Span.singleton(r===1?t:new Array(r).join(It.LOCALE.MESSAGES.MS.NESTED)+t)}function xE(e,t){const r=t||0;return e.parentNode?xE(e.parentNode,e.tagName==="root"||e.tagName==="sqrt"?r+1:r):r}function b5(e){return Ag(e,It.LOCALE.MESSAGES.MS.STARTROOT)}function v5(e){return Ag(e,It.LOCALE.MESSAGES.MS.ENDROOT)}function S5(e){return Ag(e,It.LOCALE.MESSAGES.MS.ROOTINDEX)}function E5(e){if(e.length===1)return"⠠"+e;const t="⠳",r=e.split("");return r.every(function(n){return n===t})?"⠠"+r.join("⠠"):e.slice(0,-1)+"⠠"+e.slice(-1)}wp.Grammar.getInstance().setCorrection("enlargeFence",E5);const x5=[Tt.SemanticType.MULTIREL,Tt.SemanticType.RELSEQ,Tt.SemanticType.APPL,Tt.SemanticType.ROW,Tt.SemanticType.LINE],M5=[Tt.SemanticType.SUBSCRIPT,Tt.SemanticType.SUPERSCRIPT,Tt.SemanticType.OVERSCORE,Tt.SemanticType.UNDERSCORE];function ME(e,t){const r=e.parent;if(!r)return!1;const n=r.type;return x5.indexOf(n)!==-1||n===Tt.SemanticType.PREFIXOP&&r.role===Tt.SemanticRole.NEGATIVE&&!t.script&&!t.enclosed||n===Tt.SemanticType.PREFIXOP&&r.role===Tt.SemanticRole.GEOMETRY||n===Tt.SemanticType.PUNCTUATED&&(!t.enclosed||r.role===Tt.SemanticRole.TEXT)}function O5(e,t){return e.childNodes.length?(M5.indexOf(e.type)!==-1&&(t.script=!0),e.type===Tt.SemanticType.FENCED?(t.number=!1,t.enclosed=!0,["",t]):e.type===Tt.SemanticType.PREFIXOP&&e.role!==Tt.SemanticRole.GEOMETRY&&e.role!==Tt.SemanticRole.NEGATIVE?(t.number=!1,["",t]):(ME(e,t)&&(t.number=!0,t.enclosed=!1),["",t])):(ME(e,t)&&(t.number=!0,t.script=!1,t.enclosed=!1),[t.number?"number":"",{number:!1,enclosed:t.enclosed,script:t.script}])}(0,Og.register)(new EE.SemanticVisitor("nemeth","number",O5,{number:!0}));function A5(e){return e.parent?[parseInt(e.parent.annotation.depth[0])+1]:[1]}(0,Og.register)(new EE.SemanticVisitor("depth","depth",A5)),(0,Og.activate)("depth","depth");function T5(e,t){var r;const n=e.slice(0);let o=!0;const i=e[0].parentNode.parentNode,a=(r=i.getAttribute("annotation"))===null||r===void 0?void 0:r.match(/depth:(\d+)/),s=a?a[1]:"";let c;return e.length>0?c=SE.evalXPath("./content/*",i):c=[],function(){const l=c.shift(),u=n.shift(),p=n[0],d=t?[zn.AuditoryDescription.create({text:t},{translate:!0})]:[];if(!l)return d;const h=u?Ia.nestedSubSuper(u,"",{sup:It.LOCALE.MESSAGES.MS.SUPER,sub:It.LOCALE.MESSAGES.MS.SUB}):"",f=u&&_p.tagName(u)!=="EMPTY"||o&&i&&i.previousSibling?[zn.AuditoryDescription.create({text:It.LOCALE.MESSAGES.regexp.SPACE+h},{})]:[],m=p&&_p.tagName(p)!=="EMPTY"||!c.length&&i&&i.nextSibling?[zn.AuditoryDescription.create({text:It.LOCALE.MESSAGES.regexp.SPACE},{})]:[],v=Mg.Engine.evaluateNode(l);return v.unshift(new zn.AuditoryDescription({text:"",layout:`beginrel${s}`})),v.push(new zn.AuditoryDescription({text:"",layout:`endrel${s}`})),o=!1,d.concat(f,v,m)}}function C5(e,t){const r=e.slice(0);let n;return e.length>0?n=SE.evalXPath("../../content/*",e[0]):n=[],function(){const o=r.shift(),i=r[0],a=n.shift(),s=t?[zn.AuditoryDescription.create({text:t},{translate:!0})]:[];if(!a)return s;const c=o&&_p.tagName(o)==="NUMBER",l=i&&_p.tagName(i)==="NUMBER";return s.concat(c&&l&&a.getAttribute("role")===Tt.SemanticRole.SPACE?[zn.AuditoryDescription.create({text:It.LOCALE.MESSAGES.regexp.SPACE},{})]:[])}}function N5(e){return(0,wp.correctFont)(e,It.LOCALE.ALPHABETS.languagePrefix.english)}wp.Grammar.getInstance().setCorrection("ignoreEnglish",N5);function _5(e,t){var r;const n=(0,d5.contentIterator)(e,t),o=(r=e[0].parentNode.parentNode.getAttribute("annotation"))===null||r===void 0?void 0:r.match(/depth:(\d+)/),i=o?o[1]:"";return function(){const a=n();return a.unshift(new zn.AuditoryDescription({text:"",layout:`beginrel${i}`})),a.push(new zn.AuditoryDescription({text:"",layout:`endrel${i}`})),a}}function w5(e){const t=r=>Mg.Engine.getInstance().evaluator(r,Mg.Engine.getInstance().dynamicCstr);return Array.from(e).map(t).join("")}wp.Grammar.getInstance().setCorrection("literal",w5),Object.defineProperty(el,"__esModule",{value:!0}),el.PrefixRules=L5,el.OtherRules=I5,el.BrailleRules=P5;const R5=pt,OE=Hn,Tg=ze,rl=be,Kr=Or,AE=xo,Pa=ui;function L5(){Pa.addStore("en.prefix.default","",{CSFordinalPosition:AE.ordinalPosition})}function I5(){Pa.addStore("en.speech.chromevox","",{CTFnodeCounter:OE.nodeCounter,CTFcontentIterator:OE.contentIterator}),Pa.addStore("en.speech.emacspeak","en.speech.chromevox",{CQFvulgarFractionSmall:rl.isSmallVulgarFraction,CSFvulgarFraction:AE.vulgarFraction}),Pa.addStore("ko.summary.","ko.speech.mathspeak",{CSFordinalConversion:Tg.ordinalConversion,CSFdecreasedOrdinalConversion:Tg.decreasedOrdinalConversion,CSFlistOrdinalConversion:Tg.listOrdinalConversion})}function P5(){Pa.addStore("nemeth.braille.default",R5.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CSFopenFraction:Kr.openingFraction,CSFcloseFraction:Kr.closingFraction,CSFoverFraction:Kr.overFraction,CSFoverBevFraction:Kr.overBevelledFraction,CQFhyperFraction:Kr.hyperFractionBoundary,CSFopenRadical:Kr.openingRadical,CSFcloseRadical:Kr.closingRadical,CSFindexRadical:Kr.indexRadical,CSFsubscript:rl.subscriptVerbose,CSFsuperscript:rl.superscriptVerbose,CSFbaseline:rl.baselineVerbose,CGFtensorRules:e=>rl.generateTensorRules(e,!1),CTFcontentIterator:Kr.contentIterator,CTFrelationIterator:Kr.relationIterator,CTFimplicitIterator:Kr.implicitIterator}),Pa.addStore("euro.braille.default","nemeth.braille.default",{})}Object.defineProperty(ig,"__esModule",{value:!0}),ig.init=D5;const k5=ag,B5=vg,Cg=el;let TE=!1;function D5(){TE||((0,B5.MathspeakRules)(),(0,k5.ClearspeakRules)(),(0,Cg.PrefixRules)(),(0,Cg.OtherRules)(),(0,Cg.BrailleRules)(),TE=!0)}var ka={},nl={},Rp={},Zt={};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.OutputError=Zt.Precondition=Zt.Action=Zt.Component=Zt.ActionType=Zt.SpeechRule=void 0;const j5=Oe,CE=Ot;class F5{constructor(t,r,n,o){this.name=t,this.dynamicCstr=r,this.precondition=n,this.action=o,this.context=null}toString(){return this.name+" | "+this.dynamicCstr.toString()+" | "+this.precondition.toString()+" ==> "+this.action.toString()}}Zt.SpeechRule=F5;var er;(function(e){e.NODE="NODE",e.MULTI="MULTI",e.TEXT="TEXT",e.PERSONALITY="PERSONALITY"})(er||(Zt.ActionType=er={}));function U5(e){switch(e){case"[n]":return er.NODE;case"[m]":return er.MULTI;case"[t]":return er.TEXT;case"[p]":return er.PERSONALITY;default:throw"Parse error: "+e}}function H5(e){switch(e){case er.NODE:return"[n]";case er.MULTI:return"[m]";case er.TEXT:return"[t]";case er.PERSONALITY:return"[p]";default:throw"Unknown type error: "+e}}class Ba{static grammarFromString(t){return CE.Grammar.parseInput(t)}static fromString(t){const r={type:U5(t.substring(0,3))};let n=t.slice(3).trim();if(!n)throw new Da("Missing content.");switch(r.type){case er.TEXT:if(n[0]==='"'){const o=Ng(n,"\\(")[0].trim();if(o.slice(-1)!=='"')throw new Da("Invalid string syntax.");r.content=o,n=n.slice(o.length).trim(),n.indexOf("(")===-1&&(n="");break}case er.NODE:case er.MULTI:{const o=n.indexOf(" (");if(o===-1){r.content=n.trim(),n="";break}r.content=n.substring(0,o).trim(),n=n.slice(o).trim()}}if(n){const o=Ba.attributesFromString(n);o.grammar&&(r.grammar=o.grammar,delete o.grammar),Object.keys(o).length&&(r.attributes=o)}return new Ba(r)}static attributesFromString(t){if(t[0]!=="("||t.slice(-1)!==")")throw new Da("Invalid attribute expression: "+t);const r={},n=Ng(t.slice(1,-1),",");for(const o of n){const i=o.indexOf(":");if(i===-1)r[o.trim()]="true";else{const a=o.substring(0,i).trim(),s=o.slice(i+1).trim();r[a]=a===CE.ATTRIBUTE?Ba.grammarFromString(s):s}}return r}constructor({type:t,content:r,attributes:n,grammar:o}){this.type=t,this.content=r,this.attributes=n,this.grammar=o}toString(){let t="";t+=H5(this.type),t+=this.content?" "+this.content:"";const r=this.attributesToString();return t+=r?" "+r:"",t}grammarToString(){return this.getGrammar().join(":")}getGrammar(){if(!this.grammar)return[];const t=[];for(const[r,n]of Object.entries(this.grammar))t.push(n===!0?r:n===!1?`!${r}`:`${r}=${n}`);return t}attributesToString(){const t=this.getAttributes(),r=this.grammarToString();return r&&t.push("grammar:"+r),t.length>0?"("+t.join(", ")+")":""}getAttributes(){if(!this.attributes)return[];const t=[];for(const[r,n]of Object.entries(this.attributes))t.push(n==="true"?r:`${r}:${n}`);return t}}Zt.Component=Ba;class ol{static fromString(t){const r=Ng(t,";").filter(function(o){return o.match(/\S/)}).map(function(o){return o.trim()}),n=[];for(let o=0,i=r.length;o<i;o++){const a=Ba.fromString(r[o]);a&&n.push(a)}return ol.naiveSpan(n),new ol(n)}static naiveSpan(t){var r;let n=!1;for(let o=0,i;i=t[o];o++){if(n&&(i.type!==er.TEXT||i.content[0]!=='"'&&!i.content.match(/^CSF/))||!n&&i.type===er.PERSONALITY)continue;if(!n){n=!0;continue}if(!((r=i.attributes)===null||r===void 0)&&r.span)continue;const a=t[o+1];a&&a.type!==er.NODE||ol.addNaiveSpan(i,a?a.content:"LAST")}}static addNaiveSpan(t,r){t.attributes||(t.attributes={}),t.attributes.span=r}constructor(t){this.components=t}toString(){return this.components.map(function(t){return t.toString()}).join("; ")}}Zt.Action=ol;class Oo{static constraintValue(t,r){for(let n=0,o;o=r[n];n++)if(t.match(o))return++n;return 0}toString(){const t=this.constraints.join(", ");return`${this.query}, ${t} (${this.priority}, ${this.rank})`}constructor(t,...r){this.query=t,this.constraints=r;const[n,o]=this.presetPriority();this.priority=n?o:this.calculatePriority()}calculatePriority(){const t=Oo.constraintValue(this.query,Oo.queryPriorities);if(!t)return 0;const r=this.query.match(/^self::.+\[(.+)\]/);let n=0;if(r?.length&&r[1]){const o=r[1];n=Oo.constraintValue(o,Oo.attributePriorities)}return t*100+n*10}presetPriority(){if(!this.constraints.length)return[!1,0];const t=this.constraints[this.constraints.length-1].match(/^priority=(.*$)/);if(!t)return[!1,0];this.constraints.pop();const r=parseFloat(t[1]);return[!0,isNaN(r)?0:r]}}Zt.Precondition=Oo,Oo.queryPriorities=[/^self::\*$/,/^self::[\w-]+$/,/^self::\*\[.+\]$/,/^self::[\w-]+\[.+\]$/],Oo.attributePriorities=[/^@[\w-]+$/,/^@[\w-]+!=".+"$/,/^not\(contains\(@[\w-]+,\s*".+"\)\)$/,/^contains\(@[\w-]+,".+"\)$/,/^@[\w-]+=".+"$/];class Da extends j5.SREError{constructor(t){super(t),this.name="RuleError"}}Zt.OutputError=Da;function Ng(e,t){const r=[];let n="";for(;e!=="";){const o=e.search(t);if(o===-1){if((e.match(/"/g)||[]).length%2!==0)throw new Da("Invalid string in expression: "+e);r.push(n+e),n="",e=""}else if((e.substring(0,o).match(/"/g)||[]).length%2===0)r.push(n+e.substring(0,o)),n="",e=e.substring(o+1);else{const i=e.substring(o).search('"');if(i===-1)throw new Da("Invalid string in expression: "+e);n=n+e.substring(0,o+i+1),e=e.substring(o+i+1)}}return n&&r.push(n),r}var Lp={},Sn={};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.CustomGenerators=Sn.ContextFunctions=Sn.CustomStrings=Sn.CustomQueries=void 0;class Ip{constructor(t,r){this.prefix=t,this.store=r}add(t,r){this.checkCustomFunctionSyntax_(t)&&(this.store[t]=r)}addStore(t){const r=Object.keys(t.store);for(let n=0,o;o=r[n];n++)this.add(o,t.store[o])}lookup(t){return this.store[t]}checkCustomFunctionSyntax_(t){const r=new RegExp("^"+this.prefix);return t.match(r)?!0:(console.error("FunctionError: Invalid function name. Expected prefix "+this.prefix),!1)}}class q5 extends Ip{constructor(){super("CQF",{})}}Sn.CustomQueries=q5;class G5 extends Ip{constructor(){super("CSF",{})}}Sn.CustomStrings=G5;class X5 extends Ip{constructor(){super("CTF",{})}}Sn.ContextFunctions=X5;class V5 extends Ip{constructor(){super("CGF",{})}}Sn.CustomGenerators=V5,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.SpeechRuleContext=void 0;const W5=Mr,_g=Rt,Pp=Sn;class $5{constructor(){this.customQueries=new Pp.CustomQueries,this.customStrings=new Pp.CustomStrings,this.contextFunctions=new Pp.ContextFunctions,this.customGenerators=new Pp.CustomGenerators}applyCustomQuery(t,r){const n=this.customQueries.lookup(r);return n?n(t):null}applySelector(t,r){return this.applyCustomQuery(t,r)||_g.evalXPath(r,t)}applyQuery(t,r){const n=this.applySelector(t,r);return n.length>0?n[0]:null}applyConstraint(t,r){return!!this.applyQuery(t,r)||_g.evaluateBoolean(r,t)}constructString(t,r){const n=this.constructString_(t,r);return Array.isArray(n)?n.map(o=>o.speech).join(""):n}constructSpan(t,r,n){const o=this.constructString_(t,r);if(Array.isArray(o)){const i=o[o.length-1];return i.attributes=Object.assign({},n,i.attributes),o}else return[W5.Span.node(o,t,n)]}constructString_(t,r){if(!r)return"";if(r.charAt(0)==='"')return r.slice(1,-1);const n=this.customStrings.lookup(r);return n?n(t):_g.evaluateString(r,t)}parse(t){const r=Array.isArray(t)?t:Object.entries(t);for(const n of r)switch(n[0].slice(0,3)){case"CQF":this.customQueries.add(n[0],n[1]);break;case"CSF":this.customStrings.add(n[0],n[1]);break;case"CTF":this.contextFunctions.add(n[0],n[1]);break;case"CGF":this.customGenerators.add(n[0],n[1]);break;default:console.error("FunctionError: Invalid function name "+n[0])}}}Lp.SpeechRuleContext=$5,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.BaseRuleStore=void 0;const NE=xr,ja=pt,Fa=Zt,z5=Lp;class kp{static compareStaticConstraints_(t,r){if(t.length!==r.length)return!1;for(let n=0,o;o=t[n];n++)if(r.indexOf(o)===-1)return!1;return!0}static comparePreconditions_(t,r){const n=t.precondition,o=r.precondition;return n.query!==o.query?!1:kp.compareStaticConstraints_(n.constraints,o.constraints)}constructor(){this.context=new z5.SpeechRuleContext,this.parseOrder=ja.DynamicCstr.DEFAULT_ORDER,this.parser=new ja.DynamicCstrParser(this.parseOrder),this.locale=ja.DynamicCstr.DEFAULT_VALUES[ja.Axis.LOCALE],this.modality=ja.DynamicCstr.DEFAULT_VALUES[ja.Axis.MODALITY],this.domain="",this.initialized=!1,this.inherits=null,this.kind="standard",this.customTranscriptions={},this.preconditions=new Map,this.speechRules_=[],this.rank=0,this.parseMethods={Rule:this.defineRule,Generator:this.generateRules,Action:this.defineAction,Precondition:this.definePrecondition,Ignore:this.ignoreRules}}defineRule(t,r,n,o,...i){const a=this.parseAction(n),s=this.parsePrecondition(o,i),c=this.parseCstr(r);if(!(a&&s&&c))return console.error(`Rule Error: ${o}, (${r}): ${n}`),null;const l=new Fa.SpeechRule(t,c,s,a);return l.precondition.rank=this.rank++,this.addRule(l),l}addRule(t){t.context=this.context,this.speechRules_.unshift(t)}deleteRule(t){const r=this.speechRules_.indexOf(t);r!==-1&&this.speechRules_.splice(r,1)}findRule(t){for(let r=0,n;n=this.speechRules_[r];r++)if(t(n))return n;return null}findAllRules(t){return this.speechRules_.filter(t)}evaluateDefault(t){const r=t.textContent.slice(0);return r.match(/^\s+$/)?this.evaluateWhitespace(r):this.evaluateString(r)}evaluateWhitespace(t){return[]}evaluateCustom(t){const r=this.customTranscriptions[t];return r!==void 0?NE.AuditoryDescription.create({text:r},{adjust:!0,translate:!1}):null}evaluateCharacter(t){return this.evaluateCustom(t)||NE.AuditoryDescription.create({text:t},{adjust:!0,translate:!0})}removeDuplicates(t){for(let r=this.speechRules_.length-1,n;n=this.speechRules_[r];r--)n!==t&&t.dynamicCstr.equal(n.dynamicCstr)&&kp.comparePreconditions_(n,t)&&this.speechRules_.splice(r,1)}getSpeechRules(){return this.speechRules_}setSpeechRules(t){this.speechRules_=t}getPreconditions(){return this.preconditions}parseCstr(t){try{return this.parser.parse(this.locale+"."+this.modality+(this.domain?"."+this.domain:"")+"."+t)}catch(r){if(r.name==="RuleError")return console.error("Rule Error ",`Illegal Dynamic Constraint: ${t}.`,r.message),null;throw r}}parsePrecondition(t,r){try{const n=this.parsePrecondition_(t);t=n[0];let o=n.slice(1);for(const i of r)o=o.concat(this.parsePrecondition_(i));return new Fa.Precondition(t,...o)}catch(n){if(n.name==="RuleError")return console.error("Rule Error ",`Illegal preconditions: ${t}, ${r}.`,n.message),null;throw n}}parseAction(t){try{return Fa.Action.fromString(t)}catch(r){if(r.name==="RuleError")return console.error("Rule Error ",`Illegal action: ${t}.`,r.message),null;throw r}}parse(t){this.modality=t.modality||this.modality,this.locale=t.locale||this.locale,this.domain=t.domain||this.domain,this.context.parse(t.functions||[]),t.kind!=="actions"&&(this.kind=t.kind||this.kind,this.inheritRules()),this.parseRules(t.rules||[])}parseRules(t){for(let r=0,n;n=t[r];r++){const o=n[0],i=this.parseMethods[o];o&&i&&i.apply(this,n.slice(1))}}generateRules(t){const r=this.context.customGenerators.lookup(t);r&&r(this)}defineAction(t,r){let n;try{n=Fa.Action.fromString(r)}catch(a){if(a.name==="RuleError"){console.error("Action Error ",r,a.message);return}else throw a}const o=this.getFullPreconditions(t);if(!o){console.error(`Action Error: No precondition for action ${t}`);return}this.ignoreRules(t);const i=new RegExp("^\\w+\\.\\w+\\."+(this.domain?"\\w+\\.":""));o.conditions.forEach(([a,s])=>{const c=this.parseCstr(a.toString().replace(i,""));this.addRule(new Fa.SpeechRule(t,c,s,n))})}getFullPreconditions(t){const r=this.preconditions.get(t);return r||!this.inherits?r:this.inherits.getFullPreconditions(t)}definePrecondition(t,r,n,...o){const i=this.parsePrecondition(n,o),a=this.parseCstr(r);if(!(i&&a)){console.error(`Precondition Error: ${n}, (${r})`);return}i.rank=this.rank++,this.preconditions.set(t,new K5(a,i))}inheritRules(){if(!this.inherits||!this.inherits.getSpeechRules().length)return;const t=new RegExp("^\\w+\\.\\w+\\."+(this.domain?"\\w+\\.":""));this.inherits.getSpeechRules().forEach(r=>{const n=this.parseCstr(r.dynamicCstr.toString().replace(t,""));this.addRule(new Fa.SpeechRule(r.name,n,r.precondition,r.action))})}ignoreRules(t,...r){let n=this.findAllRules(i=>i.name===t);if(!r.length){n.forEach(this.deleteRule.bind(this));return}let o=[];for(const i of r){const a=this.parseCstr(i);for(const s of n)a.equal(s.dynamicCstr)?this.deleteRule(s):o.push(s);n=o,o=[]}}parsePrecondition_(t){const r=this.context.customGenerators.lookup(t);return r?r():[t]}}Rp.BaseRuleStore=kp;class K5{constructor(t,r){this.base=t,this._conditions=[],this.constraints=[],this.allCstr={},this.constraints.push(t),this.addCondition(t,r)}get conditions(){return this._conditions}addConstraint(t){if(this.constraints.filter(n=>n.equal(t)).length)return;this.constraints.push(t);const r=[];for(const[n,o]of this.conditions)this.base.equal(n)&&r.push([t,o]);this._conditions=this._conditions.concat(r)}addBaseCondition(t){this.addCondition(this.base,t)}addFullCondition(t){this.constraints.forEach(r=>this.addCondition(r,t))}addCondition(t,r){const n=t.toString()+" "+r.toString();this.allCstr.condStr||(this.allCstr[n]=!0,this._conditions.push([t,r]))}}Object.defineProperty(nl,"__esModule",{value:!0}),nl.MathStore=void 0;const J5=Gn,il=Re,Y5=pi,Q5=Rp,al=Zt;class Ua extends Q5.BaseRuleStore{constructor(){super(),this.annotators=[],this.parseMethods.Alias=this.defineAlias,this.parseMethods.SpecializedRule=this.defineSpecializedRule,this.parseMethods.Specialized=this.defineSpecialized}initialize(){this.initialized||(this.annotations(),this.initialized=!0)}annotations(){for(let t=0,r;r=this.annotators[t];t++)(0,Y5.activate)(this.domain,r)}defineAlias(t,r,...n){const o=this.parsePrecondition(r,n);if(!o){console.error(`Precondition Error: ${r} ${n}`);return}const i=this.preconditions.get(t);if(!i){console.error(`Alias Error: No precondition by the name of ${t}`);return}i.addFullCondition(o)}defineRulesAlias(t,r,...n){const o=this.findAllRules(function(s){return s.name===t});if(o.length===0)throw new al.OutputError("Rule with name "+t+" does not exist.");const i=[],a=s=>{const c=s.dynamicCstr.toString(),l=s.action.toString();for(let u=0,p;p=i[u];u++)if(p.action===l&&p.cstr===c)return!1;return i.push({cstr:c,action:l}),!0};o.forEach(s=>{a(s)&&this.addAlias_(s,r,n)})}defineSpecializedRule(t,r,n,o){const i=this.parseCstr(r),a=this.findRule(u=>u.name===t&&i.equal(u.dynamicCstr)),s=this.parseCstr(n);if(!a&&o)throw new al.OutputError("Rule named "+t+" with style "+r+" does not exist.");const c=o?al.Action.fromString(o):a.action,l=new al.SpeechRule(a.name,s,a.precondition,c);this.addRule(l)}defineSpecialized(t,r,n){const o=this.parseCstr(n);if(!o){console.error(`Dynamic Constraint Error: ${n}`);return}const i=this.preconditions.get(t);if(!i){console.error(`Alias Error: No precondition by the name of ${t}`);return}i.addConstraint(o)}evaluateString(t){const r=[];if(t.match(/^\s+$/))return r;let n=this.matchNumber(t);if(n&&n.length===t.length)return r.push(this.evaluateCharacter(n.number)),r;const o=J5.removeEmpty(t.replace(/\s/g," ").split(" "));for(let i=0,a;a=o[i];i++)if(a.length===1)r.push(this.evaluateCharacter(a));else if(a.match(new RegExp("^["+il.LOCALE.MESSAGES.regexp.TEXT+"]+$")))r.push(this.evaluateCharacter(a));else{let s=a;for(;s;){n=this.matchNumber(s);const c=s.match(new RegExp("^["+il.LOCALE.MESSAGES.regexp.TEXT+"]+"));if(n)r.push(this.evaluateCharacter(n.number)),s=s.substring(n.length);else if(c)r.push(this.evaluateCharacter(c[0])),s=s.substring(c[0].length);else{const l=Array.from(s),u=l[0];r.push(this.evaluateCharacter(u)),s=l.slice(1).join("")}}}return r}parse(t){super.parse(t),this.annotators=t.annotators||[]}addAlias_(t,r,n){const o=this.parsePrecondition(r,n),i=new al.SpeechRule(t.name,t.dynamicCstr,o,t.action);i.name=t.name,this.addRule(i)}matchNumber(t){const r=t.match(new RegExp("^"+il.LOCALE.MESSAGES.regexp.NUMBER)),n=t.match(new RegExp("^"+Ua.regexp.NUMBER));if(!r&&!n)return null;const o=n&&n[0]===t;return r&&r[0]===t||!o?r?{number:r[0],length:r[0].length}:null:{number:n[0].replace(new RegExp(Ua.regexp.DIGIT_GROUP,"g"),"X").replace(new RegExp(Ua.regexp.DECIMAL_MARK,"g"),il.LOCALE.MESSAGES.regexp.DECIMAL_MARK).replace(/X/g,il.LOCALE.MESSAGES.regexp.DIGIT_GROUP.replace(/\\/g,"")),length:n[0].length}}}nl.MathStore=Ua,Ua.regexp={NUMBER:"((\\d{1,3})(?=(,| ))((,| )\\d{3})*(\\.\\d+)?)|^\\d*\\.\\d+|^\\d+",DECIMAL_MARK:"\\.",DIGIT_GROUP:","},Object.defineProperty(ka,"__esModule",{value:!0}),ka.EuroStore=ka.BrailleStore=void 0;const Z5=nl,e6=pi,_E=Er,Bp=Se;class wE extends Z5.MathStore{constructor(){super(...arguments),this.modality="braille",this.customTranscriptions={"⋊":"⠈⠡⠳"}}evaluateString(t){const r=[],n=Array.from(t);for(let o=0;o<n.length;o++)r.push(this.evaluateCharacter(n[o]));return r}annotations(){for(let t=0,r;r=this.annotators[t];t++)(0,e6.activate)(this.locale,r)}}ka.BrailleStore=wE;class t6 extends wE{constructor(){super(...arguments),this.locale="euro",this.customTranscriptions={},this.customCommands={"\\cdot":"*","\\lt":"<","\\gt":">"},this.lastSpecial=!1,this.specialChars=["^","_","{","}"]}evaluateString(t){const r=t.split(/(\\[a-z]+|\\{|\\}|\\\\)/i),n=this.cleanup(r);return super.evaluateString(n)}cleanup(t){const r=[];let n=!1,o=null;for(let i of t){if(i.match(/^\\/)){i==="\\text"&&(n=!0),this.addSpace(_E.SemanticMap.LatexCommands.get(i))&&r.push(" "),i=this.customCommands[i]||i;const s=i.match(/^\\/);s&&i.match(/^\\[a-zA-Z]+$/)&&o&&r.push(" "),o=s?i:null,r.push(i);continue}const a=i.split("");for(const s of a){if(n){r.push(s),n=s!=="}",o=null;continue}if(s.match(/[a-z]/i)&&o){o=null,r.push(" "),r.push(s);continue}s.match(/\s/)||(this.addSpace(s)&&r.push(" "),r.push(s),o=null)}}return r.join("")}addSpace(t){if(!t)return!1;if(this.specialChars.indexOf(t)!==-1)return this.lastSpecial=!0,!1;if(this.lastSpecial)return this.lastSpecial=!1,!1;const r=_E.SemanticMap.Meaning.get(t);return r.type===Bp.SemanticType.OPERATOR||r.type===Bp.SemanticType.RELATION||r.type===Bp.SemanticType.PUNCTUATION&&r.role===Bp.SemanticRole.COLON}}ka.EuroStore=t6;var Dp={},Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.TrieNodeKind=void 0;var RE;(function(e){e.ROOT="root",e.DYNAMIC="dynamic",e.QUERY="query",e.BOOLEAN="boolean",e.STATIC="static"})(RE||(Ha.TrieNodeKind=RE={}));var wg={},yi={};Object.defineProperty(yi,"__esModule",{value:!0}),yi.StaticTrieNode=yi.AbstractTrieNode=void 0;const r6=$r,LE=Ha;class IE{constructor(t,r){this.constraint=t,this.test=r,this.children_={},this.kind=LE.TrieNodeKind.ROOT}getConstraint(){return this.constraint}getKind(){return this.kind}applyTest(t){return this.test(t)}addChild(t){const r=t.getConstraint(),n=this.children_[r];return this.children_[r]=t,n}getChild(t){return this.children_[t]}getChildren(){const t=[];for(const r of Object.values(this.children_))t.push(r);return t}findChildren(t){const r=[];for(const n of Object.values(this.children_))n.applyTest(t)&&r.push(n);return r}removeChild(t){delete this.children_[t]}toString(){return this.constraint}}yi.AbstractTrieNode=IE;class n6 extends IE{constructor(t,r){super(t,r),this.rule_=null,this.kind=LE.TrieNodeKind.STATIC}getRule(){return this.rule_}setRule(t){this.rule_&&r6.Debugger.getInstance().output("Replacing rule "+this.rule_+" with "+t),this.rule_=t}toString(){return this.getRule()?this.constraint+`
27
+ ==> `+this.getRule().action:this.constraint}}yi.StaticTrieNode=n6,Object.defineProperty(wg,"__esModule",{value:!0}),wg.getNode=i6;const PE=he,Rg=Rt,kE=Ot,o6=Ea,BE=yi,DE=yi,Ao=Ha;function i6(e,t,r){switch(e){case Ao.TrieNodeKind.ROOT:return new a6;case Ao.TrieNodeKind.DYNAMIC:return new s6(t);case Ao.TrieNodeKind.QUERY:return new c6(t,r);case Ao.TrieNodeKind.BOOLEAN:return new l6(t,r);default:return null}}class a6 extends BE.AbstractTrieNode{constructor(){super("",()=>!0),this.kind=Ao.TrieNodeKind.ROOT}}class s6 extends BE.AbstractTrieNode{constructor(t){super(t,r=>r===t),this.kind=Ao.TrieNodeKind.DYNAMIC}}const jE={"=":(e,t)=>e===t,"!=":(e,t)=>e!==t,"<":(e,t)=>e<t,">":(e,t)=>e>t,"<=":(e,t)=>e<=t,">=":(e,t)=>e>=t};function FE(e){if(e.match(/^self::\*$/))return t=>!0;if(e.match(/^self::\w+$/)){const t=e.slice(6).toUpperCase();return r=>r.tagName&&PE.tagName(r)===t}if(e.match(/^self::\w+:\w+$/)){const t=e.split(":"),r=Rg.resolveNameSpace(t[2]);if(!r)return null;const n=t[3].toUpperCase();return o=>o.localName&&o.localName.toUpperCase()===n&&o.namespaceURI===r}if(e.match(/^@\w+$/)){const t=e.slice(1);return r=>r.hasAttribute&&r.hasAttribute(t)}if(e.match(/^@\w+="[\w\d ]+"$/)){const t=e.split("="),r=t[0].slice(1),n=t[1].slice(1,-1);return o=>o.hasAttribute&&o.hasAttribute(r)&&o.getAttribute(r)===n}if(e.match(/^@\w+!="[\w\d ]+"$/)){const t=e.split("!="),r=t[0].slice(1),n=t[1].slice(1,-1);return o=>!o.hasAttribute||!o.hasAttribute(r)||o.getAttribute(r)!==n}if(e.match(/^contains\(\s*@grammar\s*,\s*"[\w\d ]+"\s*\)$/)){const t=e.split('"')[1];return r=>!!kE.Grammar.getInstance().getParameter(t)}if(e.match(/^not\(\s*contains\(\s*@grammar\s*,\s*"[\w\d ]+"\s*\)\s*\)$/)){const t=e.split('"')[1];return r=>!kE.Grammar.getInstance().getParameter(t)}if(e.match(/^name\(\.\.\/\.\.\)="\w+"$/)){const t=e.split('"')[1].toUpperCase();return r=>{var n,o;return((o=(n=r.parentNode)===null||n===void 0?void 0:n.parentNode)===null||o===void 0?void 0:o.tagName)&&PE.tagName(r.parentNode.parentNode)===t}}if(e.match(/^count\(preceding-sibling::\*\)=\d+$/)){const t=e.split("="),r=parseInt(t[1],10);return n=>{var o;return((o=n.parentNode)===null||o===void 0?void 0:o.childNodes[r])===n}}if(e.match(/^.+\[@category!?=".+"\]$/)){let[,t,r,n]=e.match(/^(.+)\[@category(!?=)"(.+)"\]$/);const o=n.match(/^unit:(.+)$/);let i="";return o&&(n=o[1],i=":unit"),a=>{const s=Rg.evalXPath(t,a)[0];if(s){const c=o6.lookupCategory(s.textContent+i);return r==="="?c===n:c!==n}return!1}}if(e.match(/^string-length\(.+\)\W+\d+/)){const[,t,r,n]=e.match(/^string-length\((.+)\)(\W+)(\d+)/),o=jE[r]||jE["="],i=parseInt(n,10);return a=>{const s=Rg.evalXPath(t,a)[0];return s?o(Array.from(s.textContent).length,i):!1}}return null}class c6 extends DE.StaticTrieNode{constructor(t,r){super(t,FE(t)),this.context=r,this.kind=Ao.TrieNodeKind.QUERY}applyTest(t){return this.test?this.test(t):this.context.applyQuery(t,this.constraint)===t}}class l6 extends DE.StaticTrieNode{constructor(t,r){super(t,FE(t)),this.context=r,this.kind=Ao.TrieNodeKind.BOOLEAN}applyTest(t){return this.test?this.test(t):this.context.applyConstraint(t,this.constraint)}}Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.Trie=void 0;const To=Ha,UE=wg;class gi{static collectRules_(t){const r=[];let n=[t];for(;n.length;){const o=n.shift();if(o.getKind()===To.TrieNodeKind.QUERY||o.getKind()===To.TrieNodeKind.BOOLEAN){const i=o.getRule();i&&r.unshift(i)}n=n.concat(o.getChildren())}return r}static printWithDepth_(t,r,n){const o=new Array(r+2).join(r.toString())+": ";n+=o+t.toString()+`
28
+ `;const i=t.getChildren();for(let a=0,s;s=i[a];a++)n=gi.printWithDepth_(s,r+1,n);return n}static order_(t){const r=t.getChildren();if(!r.length)return 0;const n=Math.max.apply(null,r.map(gi.order_));return Math.max(r.length,n)}constructor(){this.root=(0,UE.getNode)(To.TrieNodeKind.ROOT,"",null)}addRule(t){let r=this.root;const n=t.context,o=t.dynamicCstr.getValues();for(let a=0,s=o.length;a<s;a++)r=this.addNode_(r,o[a],To.TrieNodeKind.DYNAMIC,n);r=this.addNode_(r,t.precondition.query,To.TrieNodeKind.QUERY,n);const i=t.precondition.constraints;for(let a=0,s=i.length;a<s;a++)r=this.addNode_(r,i[a],To.TrieNodeKind.BOOLEAN,n);r.setRule(t)}lookupRules(t,r){let n=[this.root];const o=[];for(;r.length;){const i=r.shift(),a=[];for(;n.length;)n.shift().getChildren().forEach(s=>{(s.getKind()!==To.TrieNodeKind.DYNAMIC||i.indexOf(s.getConstraint())!==-1)&&a.push(s)});n=a.slice()}for(;n.length;){const i=n.shift();if(i.getRule){const s=i.getRule();s&&o.push(s)}const a=i.findChildren(t);n=n.concat(a)}return o}hasSubtrie(t){let r=this.root;for(let n=0,o=t.length;n<o;n++){const i=t[n];if(r=r.getChild(i),!r)return!1}return!0}toString(){return gi.printWithDepth_(this.root,0,"")}collectRules(t=this.root){return gi.collectRules_(t)}order(){return gi.order_(this.root)}enumerate(t){return this.enumerate_(this.root,t)}byConstraint(t){let r=this.root;for(;t.length&&r;){const n=t.shift();r=r.getChild(n)}return r||null}enumerate_(t,r){r=r||{};const n=t.getChildren();for(let o=0,i;i=n[o];o++)i.kind===To.TrieNodeKind.DYNAMIC&&(r[i.getConstraint()]=this.enumerate_(i,r[i.getConstraint()]));return r}addNode_(t,r,n,o){let i=t.getChild(r);return i||(i=(0,UE.getNode)(n,r,o),t.addChild(i)),i}}Dp.Trie=gi,Object.defineProperty(xa,"__esModule",{value:!0}),xa.SpeechRuleEngine=void 0;const Kn=xr,u6=Mr,Co=$r,Lg=he,Jn=Oe,qa=De,HE=Rt,p6=ui,d6=ig,qE=ka,St=pt,Ga=Ot,h6=nl,jp=Zt,f6=Dp;class Pr{static getInstance(){return Pr.instance=Pr.instance||new Pr,Pr.instance}static debugSpeechRule(t,r){const n=t.precondition,o=t.context.applyQuery(r,n.query);Co.Debugger.getInstance().output(n.query,o&&o.toString()),n.constraints.forEach(i=>Co.Debugger.getInstance().output(i,t.context.applyConstraint(r,i)))}static debugNamedSpeechRule(t,r){const n=Pr.getInstance().trie.collectRules().filter(o=>o.name==t);for(let o=0,i;i=n[o];o++)Co.Debugger.getInstance().output("Rule",t,"DynamicCstr:",i.dynamicCstr.toString(),"number",o),Pr.debugSpeechRule(i,r)}evaluateNode(t){(0,HE.updateEvaluator)(t);const r=new Date().getTime();let n=[];try{n=this.evaluateNode_(t)}catch(i){console.log(i),console.error("Something went wrong computing speech."),Co.Debugger.getInstance().output(i)}const o=new Date().getTime();return Co.Debugger.getInstance().output("Time:",o-r),n}toString(){return this.trie.collectRules().map(t=>t.toString()).join(`
29
+ `)}runInSetting(t,r){const n=Jn.Engine.getInstance(),o={};for(const[a,s]of Object.entries(t))o[a]=n[a],n[a]=s;n.setDynamicCstr();const i=r();for(const[a,s]of Object.entries(o))n[a]=s;return n.setDynamicCstr(),i}static addStore(t){const r=y6(t);r.kind!=="abstract"&&r.getSpeechRules().forEach(n=>Pr.getInstance().trie.addRule(n)),Pr.getInstance().addEvaluator(r)}processGrammar(t,r,n){const o={};for(const[i,a]of Object.entries(n))o[i]=typeof a=="string"?t.constructString(r,a):a;Ga.Grammar.getInstance().pushState(o)}addEvaluator(t){const r=t.evaluateDefault.bind(t),n=this.evaluators_[t.locale];if(n){n[t.modality]=r;return}const o={};o[t.modality]=r,this.evaluators_[t.locale]=o}getEvaluator(t,r){const n=this.evaluators_[t]||this.evaluators_[St.DynamicCstr.DEFAULT_VALUES[St.Axis.LOCALE]];return n[r]||n[St.DynamicCstr.DEFAULT_VALUES[St.Axis.MODALITY]]}enumerate(t){return this.trie.enumerate(t)}constructor(){this.trie=null,this.evaluators_={},this.trie=new f6.Trie}evaluateNode_(t){if(!t)return[];this.updateConstraint_();let r=this.evaluateTree_(t);return r=b6(r),r}evaluateTree_(t){const r=Jn.Engine.getInstance();let n;Co.Debugger.getInstance().output(r.mode!==qa.Mode.HTTP?t.toString():t),Ga.Grammar.getInstance().setAttribute(t);const o=this.lookupRule(t,r.dynamicCstr);if(!o)return r.strict?[]:(n=this.getEvaluator(r.locale,r.modality)(t),t.attributes&&this.addPersonality_(n,{},!1,t),n);Co.Debugger.getInstance().generateOutput(()=>["Apply Rule:",o.name,o.dynamicCstr.toString(),r.mode===qa.Mode.HTTP?Lg.serializeXml(t):t.toString()]),Ga.Grammar.getInstance().processSingles();const i=o.context,a=o.action.components;n=[];for(let s=0,c;c=a[s];s++){let l=[];const u=c.content||"",p=c.attributes||{};let d=!1;c.grammar&&this.processGrammar(i,t,c.grammar);let h=null;if(p.engine){h=Jn.Engine.getInstance().dynamicCstr.getComponents();const f=Object.assign({},h,Ga.Grammar.parseInput(p.engine));Jn.Engine.getInstance().setDynamicCstr(f),this.updateConstraint_()}switch(c.type){case jp.ActionType.NODE:{const f=i.applyQuery(t,u);f&&(l=this.evaluateTree_(f))}break;case jp.ActionType.MULTI:{d=!0;const f=i.applySelector(t,u);f.length>0&&(l=this.evaluateNodeList_(i,f,p.sepFunc,i.constructString(t,p.separator),p.ctxtFunc,i.constructString(t,p.context)))}break;case jp.ActionType.TEXT:{const f=p.span;let m={};if(f){const v=(0,HE.evalXPath)(f,t);m=v.length?u6.Span.getAttributes(v[0]):{kind:f}}l=i.constructSpan(t,u,m).map(function(v){return Kn.AuditoryDescription.create({text:v.speech,attributes:v.attributes},{adjust:!0})})}break;case jp.ActionType.PERSONALITY:default:l=[Kn.AuditoryDescription.create({text:u})]}l[0]&&!d&&(p.context&&(l[0].context=i.constructString(t,p.context)+(l[0].context||"")),p.annotation&&(l[0].annotation=p.annotation)),this.addLayout(l,p,d),c.grammar&&Ga.Grammar.getInstance().popState(),n=n.concat(this.addPersonality_(l,p,d,t)),h&&(Jn.Engine.getInstance().setDynamicCstr(h),this.updateConstraint_())}return Ga.Grammar.getInstance().popState(),n}evaluateNodeList_(t,r,n,o,i,a){if(!r.length)return[];const s=o||"",c=a||"",l=t.contextFunctions.lookup(i),u=l?l(r,c):function(){return c},p=t.contextFunctions.lookup(n),d=p?p(r,s):function(){return[Kn.AuditoryDescription.create({text:s},{translate:!0})]};let h=[];for(let f=0,m;m=r[f];f++){const v=this.evaluateTree_(m);if(v.length>0&&(v[0].context=u()+(v[0].context||""),h=h.concat(v),f<r.length-1)){const g=d();h=h.concat(g)}}return h}addLayout(t,r,n){const o=r.layout;if(o){if(o.match(/^begin/)){t.unshift(new Kn.AuditoryDescription({text:"",layout:o}));return}if(o.match(/^end/)){t.push(new Kn.AuditoryDescription({text:"",layout:o}));return}t.unshift(new Kn.AuditoryDescription({text:"",layout:`begin${o}`})),t.push(new Kn.AuditoryDescription({text:"",layout:`end${o}`}))}}addPersonality_(t,r,n,o){const i={};let a=null;for(const s of qa.personalityPropList){const c=r[s];if(typeof c>"u")continue;const l=parseFloat(c),u=isNaN(l)?c.charAt(0)==='"'?c.slice(1,-1):c:l;s===qa.personalityProps.PAUSE?a=u:i[s]=u}for(let s=0,c;c=t[s];s++)this.addRelativePersonality_(c,i),this.addExternalAttributes_(c,o);if(n&&t.length&&delete t[t.length-1].personality[qa.personalityProps.JOIN],a&&t.length){const s=t[t.length-1];s.text||Object.keys(s.personality).length?t.push(Kn.AuditoryDescription.create({text:"",personality:{pause:a}})):s.personality[qa.personalityProps.PAUSE]=a}return t}addExternalAttributes_(t,r){if(t.attributes.id===void 0&&(t.attributes.id=r.getAttribute("id")),r.hasAttributes()){const n=r.attributes;for(let o=n.length-1;o>=0;o--){const i=n[o].name;!t.attributes[i]&&i.match(/^ext/)&&(t.attributes[i]=n[o].value)}}}addRelativePersonality_(t,r){if(!t.personality)return t.personality=r,t;const n=t.personality;for(const[o,i]of Object.entries(r))n[o]&&typeof n[o]=="number"&&typeof i=="number"?n[o]=(n[o]+i).toString():n[o]||(n[o]=i);return t}updateConstraint_(){const t=Jn.Engine.getInstance().dynamicCstr,r=Jn.Engine.getInstance().strict,n=this.trie,o={};let i=t.getValue(St.Axis.LOCALE),a=t.getValue(St.Axis.MODALITY),s=t.getValue(St.Axis.DOMAIN);n.hasSubtrie([i,a,s])||(s=St.DynamicCstr.DEFAULT_VALUES[St.Axis.DOMAIN],n.hasSubtrie([i,a,s])||(a=St.DynamicCstr.DEFAULT_VALUES[St.Axis.MODALITY],n.hasSubtrie([i,a,s])||(i=St.DynamicCstr.DEFAULT_VALUES[St.Axis.LOCALE]))),o[St.Axis.LOCALE]=[i],o[St.Axis.MODALITY]=[a!=="summary"?a:St.DynamicCstr.DEFAULT_VALUES[St.Axis.MODALITY]],o[St.Axis.DOMAIN]=[a!=="speech"?St.DynamicCstr.DEFAULT_VALUES[St.Axis.DOMAIN]:s];const c=t.getOrder();for(let l=0,u;u=c[l];l++)if(!o[u]){const p=t.getValue(u),d=this.makeSet_(p,t.preference),h=St.DynamicCstr.DEFAULT_VALUES[u];!r&&p!==h&&d.push(h),o[u]=d}t.updateProperties(o)}makeSet_(t,r){return!r||!Object.keys(r).length?[t]:t.split(":")}lookupRule(t,r){if(!t||t.nodeType!==Lg.NodeType.ELEMENT_NODE&&t.nodeType!==Lg.NodeType.TEXT_NODE)return null;const n=this.lookupRules(t,r);return n.length>0?this.pickMostConstraint_(r,n):null}lookupRules(t,r){return this.trie.lookupRules(t,r.allProperties())}pickMostConstraint_(t,r){const n=Jn.Engine.getInstance().comparator;return r.sort(function(o,i){return n.compare(o.dynamicCstr,i.dynamicCstr)||i.precondition.priority-o.precondition.priority||i.precondition.constraints.length-o.precondition.constraints.length||i.precondition.rank-o.precondition.rank}),Co.Debugger.getInstance().generateOutput((()=>r.map(o=>o.name+"("+o.dynamicCstr.toString()+")")).bind(this)),r[0]}}xa.SpeechRuleEngine=Pr;const Ig=new Map;function m6(e,t){return t==="braille"&&e==="euro"?new qE.EuroStore:t==="braille"?new qE.BrailleStore:new h6.MathStore}function y6(e){const t=`${e.locale}.${e.modality}.${e.domain}`;if(e.kind==="actions"){const n=Ig.get(t);return n.parse(e),n}d6.init(),e&&!e.functions&&(e.functions=p6.getStore(e.locale,e.modality,e.domain));const r=m6(e.locale,e.modality);return Ig.set(t,r),e.inherits&&(r.inherits=Ig.get(`${e.inherits}.${e.modality}.${e.domain}`)),r.parse(e),r.initialize(),r}Jn.Engine.nodeEvaluator=Pr.getInstance().evaluateNode.bind(Pr.getInstance());const g6=["⠆","⠒","⠲","⠦","⠴","⠄"];function b6(e){const t=new Kn.AuditoryList(e);for(const r of t.annotations){const n=r.data;if(n.annotation==="punctuation"){const o=t.prevText(r);if(!o)continue;const i=o.data;i.annotation!=="punctuation"&&i.text!=="⠀"&&n.text.length===1&&g6.indexOf(n.text)!==-1&&(n.text="⠸"+n.text)}}return t.toList()}var Fp={};Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.generateBase=E6,Fp.generate=x6;const GE=Gc,Pg=Oe,XE=ba,Yn=Re,v6=mt,kg=Ea,Xa={small:["default"],capital:["default"],digit:["default"]};function S6(){const e=Yn.LOCALE.ALPHABETS,t=(r,n)=>{const o={};return Object.keys(r).forEach(i=>o[i]=!0),Object.keys(n).forEach(i=>o[i]=!0),Object.keys(o)};Xa.small=t(e.smallPrefix,e.letterTrans),Xa.capital=t(e.capPrefix,e.letterTrans),Xa.digit=t(e.digitPrefix,e.digitTrans)}function E6(){for(const e of GE.INTERVALS.values()){const t=e.unicode;for(const r of t)kg.baseStores.set(r,{key:r,category:e.category})}}function x6(e){const t=Pg.Engine.getInstance().locale;Pg.Engine.getInstance().locale=e,XE.setLocale(),kg.changeLocale({locale:e}),S6();for(const r of GE.INTERVALS.values()){const n=r.unicode;if("offset"in r)O6(n,r.font,r.offset||0);else{const o=Yn.LOCALE.ALPHABETS[r.base];M6(n,o,r.font,!!r.capital)}}Pg.Engine.getInstance().locale=t,XE.setLocale()}function VE(e){const t=e==="normal"||e==="fullwidth"?"":Yn.LOCALE.MESSAGES.font[e]||Yn.LOCALE.MESSAGES.embellish[e]||"";return(0,v6.localeFontCombiner)(t)}function M6(e,t,r,n){const o=VE(r);for(let i=0,a,s;a=e[i],s=t[i];i++){const c=n?Yn.LOCALE.ALPHABETS.capPrefix:Yn.LOCALE.ALPHABETS.smallPrefix,l=n?Xa.capital:Xa.small;WE(o.combiner,a,s,o.font,c,Yn.LOCALE.ALPHABETS.letterTrans,l)}}function O6(e,t,r){const n=VE(t);for(let o=0,i;i=e[o];o++){const a=Yn.LOCALE.ALPHABETS.digitPrefix,s=o+r;WE(n.combiner,i,s,n.font,a,Yn.LOCALE.ALPHABETS.digitTrans,Xa.digit)}}function WE(e,t,r,n,o,i,a){for(let s=0,c;c=a[s];s++){const l=c in i?i[c]:i.default,u=c in o?o[c]:o.default;kg.defineRule(c,"default",t,e(l(r),n,u))}}var Bg=y&&y.__awaiter||(function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(p){a(p)}}function c(u){try{l(n.throw(u))}catch(p){a(p)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(e,t||[])).next())})});Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.loadLocale=N6,Vc.standardLoader=QE;const $E=ci,Pt=Oe,Up=De,Dg=Sa,zE=Ir,KE=pt,Va=Ea,A6=xa,T6=ba,JE=Fp,C6={functions:Va.addFunctionRules,symbols:Va.addSymbolRules,units:Va.addUnitRules,si:e=>e.forEach(Va.setSiPrefixes),messages:T6.completeLocale,rules:A6.SpeechRuleEngine.addStore,characters:Va.addCharacterRules};let YE=!1;function N6(){return Bg(this,arguments,void 0,function*(e=Pt.Engine.getInstance().locale){return YE||(JE.generateBase(),Hp(KE.DynamicCstr.BASE_LOCALE),YE=!0),Pt.EnginePromise.promises[KE.DynamicCstr.BASE_LOCALE].then(()=>Bg(this,void 0,void 0,function*(){const t=Pt.Engine.getInstance().defaultLocale;return t?(Hp(t),Pt.EnginePromise.promises[t].then(()=>Bg(this,void 0,void 0,function*(){return Hp(e),Pt.EnginePromise.promises[e]}))):(Hp(e),Pt.EnginePromise.promises[e])}))})}function Hp(e=Pt.Engine.getInstance().locale){Pt.EnginePromise.loaded[e]||(Pt.EnginePromise.loaded[e]=[!1,!1],Va.reset(),L6(e))}function _6(){return Pt.Engine.getInstance().customLoader?Pt.Engine.getInstance().customLoader:QE()}function QE(){switch(Pt.Engine.getInstance().mode){case Up.Mode.ASYNC:return I6;case Up.Mode.HTTP:return k6;case Up.Mode.SYNC:default:return P6}}function w6(e){const t=_6(),r=new Promise(n=>{t(e).then(o=>{R6(o),Pt.EnginePromise.loaded[e]=[!0,!0],n(e)},o=>{Pt.EnginePromise.loaded[e]=[!0,!1],console.error(`Unable to load locale: ${e}`),Pt.Engine.getInstance().locale=Pt.Engine.getInstance().defaultLocale,n(e)})});Pt.EnginePromise.promises[e]=r}function R6(e){ZE(typeof e=="string"?JSON.parse(e):e)}function ZE(e,t){let r=!0;for(let n=0,o;o=Object.keys(e)[n];n++){const i=o.split("/");t&&t!==i[0]||(r&&i[1]==="symbols"&&i[0]!=="base"&&(JE.generate(i[0]),r=!1),C6[i[1]](e[o]))}}function L6(e){if(Pt.Engine.getInstance().isIE&&Pt.Engine.getInstance().mode===Up.Mode.HTTP){ex(e);return}w6(e)}function ex(e,t){let r=t||1;if(!$E.mapsForIE){r<=5&&setTimeout((()=>ex(e,r++)).bind(this),300);return}ZE($E.mapsForIE,e)}function I6(e){const t=Dg.localePath(e);return new Promise((r,n)=>{zE.SystemExternal.fs.readFile(t,"utf8",(o,i)=>{if(o)return n(o);r(i)})})}function P6(e){const t=Dg.localePath(e);return new Promise((r,n)=>{let o="{}";try{o=zE.SystemExternal.fs.readFileSync(t,"utf8")}catch(i){return n(i)}r(o)})}function k6(e){const t=Dg.localePath(e),r=new XMLHttpRequest;return new Promise((n,o)=>{r.onreadystatechange=function(){if(r.readyState===4){const i=r.status;i===0||i>=200&&i<400?n(r.responseText):o(i)}},r.open("GET",t,!0),r.send()})}var B6=y&&y.__awaiter||(function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(p){a(p)}}function c(u){try{l(n.throw(u))}catch(p){a(p)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(e,t||[])).next())})});Object.defineProperty(ga,"__esModule",{value:!0}),ga.setup=X6;const D6=ba,j6=Vc,tx=ci,F6=$r,No=Oe,U6=Sa,rx=Ir,H6=["ca","da","es"],q6=["chromevox","clearspeak","mathspeak","emacspeak","html"];function G6(e){if(e.modality&&e.modality!=="speech"||!e.modality&&No.Engine.getInstance().modality!=="speech"||!e.domain)return;if(e.domain==="default"){e.domain="mathspeak";return}const t=e.locale||No.Engine.getInstance().locale,r=e.domain;if(H6.indexOf(t)!==-1){r!=="mathspeak"&&(e.domain="mathspeak");return}if(t==="en"){q6.indexOf(r)===-1&&(e.domain="mathspeak");return}r!=="mathspeak"&&r!=="clearspeak"&&(e.domain="mathspeak")}function X6(e){return B6(this,void 0,void 0,function*(){G6(e);const t=No.Engine.getInstance(),r=o=>{typeof e[o]<"u"&&(t[o]=!!e[o])},n=o=>{typeof e[o]<"u"&&(t[o]=e[o])};return n("mode"),t.configurate(e),No.Engine.BINARY_FEATURES.forEach(r),No.Engine.STRING_FEATURES.forEach(n),e.debug&&F6.Debugger.getInstance().init(),e.json&&(rx.SystemExternal.jsonPath=U6.makePath(e.json)),e.xpath&&(rx.SystemExternal.WGXpath=e.xpath),t.setCustomLoader(e.custom),V6(t),D6.setLocale(),t.setDynamicCstr(),t.init?(No.EnginePromise.promises.init=new Promise((o,i)=>{setTimeout(()=>{o("init")},10)}),t.init=!1,No.EnginePromise.get()):t.delay?(t.delay=!1,No.EnginePromise.get()):j6.loadLocale()})}function V6(e){e.isIE=tx.detectIE(),e.isEdge=tx.detectEdge()}var sl={},kr={},qp={},Jr={};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.Event=Jr.Move=Jr.KeyCode=void 0;var nx;(function(e){e[e.ENTER=13]="ENTER",e[e.ESC=27]="ESC",e[e.SPACE=32]="SPACE",e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN",e[e.TAB=9]="TAB",e[e.LESS=188]="LESS",e[e.GREATER=190]="GREATER",e[e.DASH=189]="DASH",e[e.ZERO=48]="ZERO",e[e.ONE=49]="ONE",e[e.TWO=50]="TWO",e[e.THREE=51]="THREE",e[e.FOUR=52]="FOUR",e[e.FIVE=53]="FIVE",e[e.SIX=54]="SIX",e[e.SEVEN=55]="SEVEN",e[e.EIGHT=56]="EIGHT",e[e.NINE=57]="NINE",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z"})(nx||(Jr.KeyCode=nx={})),Jr.Move=new Map([[13,"ENTER"],[27,"ESC"],[32,"SPACE"],[33,"PAGE_UP"],[34,"PAGE_DOWN"],[35,"END"],[36,"HOME"],[37,"LEFT"],[38,"UP"],[39,"RIGHT"],[40,"DOWN"],[9,"TAB"],[188,"LESS"],[190,"GREATER"],[189,"DASH"],[48,"ZERO"],[49,"ONE"],[50,"TWO"],[51,"THREE"],[52,"FOUR"],[53,"FIVE"],[54,"SIX"],[55,"SEVEN"],[56,"EIGHT"],[57,"NINE"],[65,"A"],[66,"B"],[67,"C"],[68,"D"],[69,"E"],[70,"F"],[71,"G"],[72,"H"],[73,"I"],[74,"J"],[75,"K"],[76,"L"],[77,"M"],[78,"N"],[79,"O"],[80,"P"],[81,"Q"],[82,"R"],[83,"S"],[84,"T"],[85,"U"],[86,"V"],[87,"W"],[88,"X"],[89,"Y"],[90,"Z"]]);var ox;(function(e){e.CLICK="click",e.DBLCLICK="dblclick",e.MOUSEDOWN="mousedown",e.MOUSEUP="mouseup",e.MOUSEOVER="mouseover",e.MOUSEOUT="mouseout",e.MOUSEMOVE="mousemove",e.SELECTSTART="selectstart",e.KEYPRESS="keypress",e.KEYDOWN="keydown",e.KEYUP="keyup",e.TOUCHSTART="touchstart",e.TOUCHMOVE="touchmove",e.TOUCHEND="touchend",e.TOUCHCANCEL="touchcancel"})(ox||(ox={}));class W6{constructor(t,r,n){this.src=t,this.type=r,this.callback=n}add(){this.src.addEventListener(this.type,this.callback)}remove(){this.src.removeEventListener(this.type,this.callback)}}Jr.Event=W6;var Br={};Object.defineProperty(Br,"__esModule",{value:!0}),Br.mergePause=z6,Br.mergeMarkup=K6,Br.sortClose=J6,Br.personalityMarkup=Y6,Br.isMarkupElement=cl,Br.isPauseElement=bi;const ix=Gn,Yr=De,$6=Oe,ax=Mr;function z6(e,t,r){return e?{pause:jg(e.pause,t.pause,r)}:t}function jg(e,t,r){return(r||(function(n,o){return typeof n=="number"&&typeof o=="number"?n+o:typeof n=="number"?o:typeof o=="number"?n:[e,t].sort()[0]})).call(null,e,t)}function K6(e,t){delete e.open,t.close.forEach(r=>delete e[r]),t.open.forEach(r=>e[r]=t[r]),e.open=Object.keys(e)}function J6(e,t){if(e.length<=1)return e;const r=[];for(let n=0,o;o=t[n],e.length;n++)!o.close||!o.close.length||o.close.forEach(function(i){const a=e.indexOf(i);a!==-1&&(r.unshift(i),e.splice(a,1))});return r}let Gp={},Wa=[];function Y6(e){Gp={},Wa=[];let t=[];const r={};for(let n=0,o;o=e[n];n++){let i=null;const a=o.descriptionSpan(),s=o.personality,c=s[Yr.personalityProps.JOIN];delete s[Yr.personalityProps.JOIN],typeof s[Yr.personalityProps.PAUSE]<"u"&&(i={[Yr.personalityProps.PAUSE]:s[Yr.personalityProps.PAUSE]},delete s[Yr.personalityProps.PAUSE]);const l=r9(s,r);t9(t,a,l,c,i,!0)}return t=t.concat(e9()),t=Z6(t),t=$6.Engine.getInstance().cleanpause?Q6(t):t,t}function Q6(e){for(;bi(e[0]);)e.shift();for(;bi(e[e.length-1]);)e.pop();return e}function sx(e,t){const r=e[e.length-1];if(!r){e.push(t);return}if(Xp(t)&&Xp(r)){if(typeof r.join>"u"){r.span=r.span.concat(t.span);return}const n=r.span.pop(),o=t.span.shift();r.span.push(n+r.join+o),r.span=r.span.concat(t.span),r.join=t.join;return}if(bi(t)&&bi(r)){r.pause=jg(r.pause,t.pause);return}e.push(t)}function Z6(e){const t={},r=[];for(let n=0,o;o=e[n];n++){if(!cl(o)){sx(r,o);continue}if(!o.close||o.close.length!==1||o.open.length){Fg(o,t),r.push(o);continue}let i=e[n+1];if(!i||Xp(i)){Fg(o,t),r.push(o);continue}const a=bi(i)?i:null;a&&(i=e[n+2]),i&&cl(i)&&i.open[0]===o.close[0]&&!i.close.length&&i[i.open[0]]===t[i.open[0]]?a?(sx(r,a),n=n+2):n=n+1:(Fg(o,t),r.push(o))}return r}function Fg(e,t){e.rate&&(t.rate=e.rate),e.pitch&&(t.pitch=e.pitch),e.volume&&(t.volume=e.volume)}function e9(){const e=[];for(let t=Wa.length-1;t>=0;t--){const r=Wa[t];if(r.length){const n={open:[],close:[]};for(let o=0;o<r.length;o++){const i=r[o];n.close.push(i),n[i]=0}e.push(n)}}return e}function cl(e){return typeof e=="object"&&e.open}function bi(e){return typeof e=="object"&&Object.keys(e).length===1&&Object.keys(e)[0]===Yr.personalityProps.PAUSE}function Xp(e){const t=Object.keys(e);return typeof e=="object"&&(t.length===1&&t[0]==="span"||t.length===2&&(t[0]==="span"&&t[1]==="join"||t[1]==="span"&&t[0]==="join"))}function t9(e,t,r,n,o,i=!1){if(i){const a=e[e.length-1];let s;if(a&&(s=a[Yr.personalityProps.JOIN]),a&&!t.speech&&o&&bi(a)){const c=Yr.personalityProps.PAUSE;a[c]=jg(a[c],o[c]),o=null}if(a&&t.speech&&Object.keys(r).length===0&&Xp(a)){if(typeof s<"u"){const c=a.span.pop();t=ax.Span.stringAttr(c.speech+s+t.speech,c.attributes)}a.span.push(t),t=ax.Span.empty(),a[Yr.personalityProps.JOIN]=n}}Object.keys(r).length!==0&&e.push(r),t.speech&&e.push({span:[t],join:n}),o&&e.push(o)}function r9(e,t){if(!t)return e;const r={};for(const n of Yr.personalityPropList){const o=e[n],i=t[n];if(!o&&!i||o&&i&&o===i)continue;const a=o||0;cl(r)||(r.open=[],r.close=[]),o||r.close.push(n),i||r.open.push(n),i&&o&&(r.close.push(n),r.open.push(n)),t[n]=a,r[n]=a,Gp[n]?Gp[n].push(a):Gp[n]=[a]}if(cl(r)){let n=r.close.slice();for(;n.length>0;){let o=Wa.pop();const i=(0,ix.setdifference)(o,n);if(n=(0,ix.setdifference)(n,o),o=i,n.length===0){o.length!==0&&Wa.push(o);continue}if(o.length!==0){r.close=r.close.concat(o),r.open=r.open.concat(o);for(let a=0,s;s=o[a];a++)r[s]=t[s]}}Wa.push(r.open)}return r}var ll={},$a={};Object.defineProperty($a,"__esModule",{value:!0}),$a.AbstractAudioRenderer=void 0;const cx=Oe;class n9{constructor(){this.separator_=" "}set separator(t){this.separator_=t}get separator(){return cx.Engine.getInstance().modality==="braille"?"":this.separator_}error(t){return null}merge(t){let r="";const n=t.length-1;for(let o=0,i;i=t[o];o++)if(r+=i.speech,o<n){const a=i.attributes.separator;r+=a!==void 0?a:this.separator}return r}finalize(t){return t}pauseValue(t){let r;switch(t){case"long":r=750;break;case"medium":r=500;break;case"short":r=250;break;default:r=parseInt(t,10)}return Math.floor(r*cx.Engine.getInstance().getRate()/100)}}$a.AbstractAudioRenderer=n9,Object.defineProperty(ll,"__esModule",{value:!0}),ll.MarkupRenderer=void 0;const o9=De,i9=$a;class a9 extends i9.AbstractAudioRenderer{constructor(){super(...arguments),this.ignoreElements=[o9.personalityProps.LAYOUT],this.scaleFunction=null}setScaleFunction(t,r,n,o,i=0){this.scaleFunction=a=>{const s=(a-t)/(r-t),c=n*(1-s)+o*s;return+(Math.round(c+"e+"+i)+"e-"+i)}}applyScaleFunction(t){return this.scaleFunction?this.scaleFunction(t):t}ignoreElement(t){return this.ignoreElements.indexOf(t)!==-1}}ll.MarkupRenderer=a9,Object.defineProperty(qp,"__esModule",{value:!0}),qp.AcssRenderer=void 0;const Vp=De,s9=Jr,ul=Br,c9=ll;class l9 extends c9.MarkupRenderer{markup(t){this.setScaleFunction(-2,2,0,10,0);const r=ul.personalityMarkup(t),n=[],o={open:[]};let i=null,a=!1;for(let s=0,c;c=r[s];s++){if(ul.isMarkupElement(c)){ul.mergeMarkup(o,c);continue}if(ul.isPauseElement(c)){a&&(i=ul.mergePause(i,c,Math.max));continue}const l='"'+this.merge(c.span)+'"';a=!0,i&&(n.push(this.pause(i)),i=null);const u=this.prosody_(o);n.push(u?"(text ("+u+") "+l+")":l)}return"(exp "+n.join(" ")+")"}error(t){return'(error "'+s9.Move.get(t)+'")'}prosodyElement(t,r){switch(r=this.applyScaleFunction(r),t){case Vp.personalityProps.RATE:return"(richness . "+r+")";case Vp.personalityProps.PITCH:return"(average-pitch . "+r+")";case Vp.personalityProps.VOLUME:return"(stress . "+r+")"}return"(value . "+r+")"}pause(t){return"(pause . "+this.pauseValue(t[Vp.personalityProps.PAUSE])+")"}prosody_(t){const r=t.open,n=[];for(let o=0,i;i=r[o];o++)n.push(this.prosodyElement(i,t[i]));return n.join(" ")}}qp.AcssRenderer=l9;var Wp={},vi={};Object.defineProperty(vi,"__esModule",{value:!0}),vi.XmlRenderer=void 0;const u9=Oe,Ug=Br,p9=ll;class d9 extends p9.MarkupRenderer{markup(t){this.setScaleFunction(-2,2,-100,100,2);const r=Ug.personalityMarkup(t),n=[],o=[];for(let i=0,a;a=r[i];i++){if(a.span){n.push(this.merge(a.span));continue}if(Ug.isPauseElement(a)){n.push(this.pause(a));continue}if(a.close.length)for(let s=0;s<a.close.length;s++){const c=o.pop();if(a.close.indexOf(c)===-1)throw new u9.SREError("Unknown closing markup element: "+c);n.push(this.closeTag(c))}a.open.length&&Ug.sortClose(a.open.slice(),r.slice(i+1)).forEach(s=>{n.push(this.prosodyElement(s,a[s])),o.push(s)})}return n.join(" ")}}vi.XmlRenderer=d9,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.LayoutRenderer=void 0;const h9=$r,Qr=he,f9=De,$p=Oe,lx=Br,m9=vi;class ux extends m9.XmlRenderer{constructor(){super(...arguments),this.values=new Map}finalize(t){return g9(this.values.get("rel")),b9(t)}pause(t){return""}prosodyElement(t,r){return t===f9.personalityProps.LAYOUT?`<${r}>`:""}closeTag(t){return`</${t}>`}markup(t){this.values.clear();const r=[];let n=[];for(const o of t){if(!o.layout){n.push(o);continue}r.push(this.processContent(n)),n=[];const[i,a,s]=this.layoutValue(o.layout);if(i==="begin"){r.push("<"+a+(s?` value="${s}"`:"")+">");continue}if(i==="end"){r.push("</"+a+">");continue}console.warn("Something went wrong with layout markup: "+a)}return r.push(this.processContent(n)),r.join("")}processContent(t){const r=[],n=lx.personalityMarkup(t);for(let o=0,i;i=n[o];o++){if(i.span){r.push(this.merge(i.span));continue}lx.isPauseElement(i)}return r.join("")}layoutValue(t){const r=t.match(/^(begin|end|)(.*\D)(\d*)$/),n=r[3];return n?(t=r[2],this.values.has(t)||this.values.set(t,{}),this.values.get(t)[n]=!0,[r[1],t,n]):[r[1],r[2],""]}}Wp.LayoutRenderer=ux,ux.options={cayleyshort:$p.Engine.getInstance().cayleyshort,linebreaks:$p.Engine.getInstance().linebreaks};let Hg="";const y9={TABLE:x9,CASES:M9,CAYLEY:O9,MATRIX:E9,CELL:Si,FENCE:Si,ROW:Si,FRACTION:T9,NUMERATOR:hx,DENOMINATOR:hx,REL:fx,OP:fx};function pl(e){const t=Qr.tagName(e),r=y9[t];return r?r(e):e.textContent}const qg=new Map;function g9(e){if(qg.clear(),!e)return;const t=Object.keys(e).map(r=>parseInt(r)).sort();for(let r=0,n;n=t[r];r++)qg.set(n,r+1)}function b9(e){Hg="";const t=Qr.parseInput(`<all>${e}</all>`);return h9.Debugger.getInstance().output(Qr.formatXml(t.toString())),Hg=Si(t),Hg}function za(e,t){if(!e||!t)return e+t;const r=zp(e),n=zp(t),o=r-n;e=o<0?Gg(e,n,Ei(e)):e,t=o>0?Gg(t,r,Ei(t)):t;const i=e.split(/\r\n|\r|\n/),a=t.split(/\r\n|\r|\n/),s=[];for(let c=0;c<i.length;c++)s.push(i[c]+a[c]);return s.join(`
30
+ `)}function Si(e){let t="";for(const r of Array.from(e.childNodes)){if(r.nodeType===Qr.NodeType.TEXT_NODE){t=za(t,r.textContent);continue}t=za(t,pl(r))}return t}function zp(e){return e.split(/\r\n|\r|\n/).length}function Ei(e){return e.split(/\r\n|\r|\n/).reduce((t,r)=>Math.max(r.length,t),0)}function v9(e,t){const r=t-zp(e);return e+(r>0?new Array(r+1).join(`
31
+ `):"")}function S9(e,t){const r=e.split(/\r\n|\r|\n/),n=[];for(const o of r){const i=t-o.length;n.push(o+(i>0?new Array(i+1).join("⠀"):""))}return n.join(`
32
+ `)}function Gg(e,t,r){return e=v9(e,t),S9(e,r)}function Kp(e){const t=Array.from(e.childNodes),r=[];for(const n of t)n.nodeType===Qr.NodeType.ELEMENT_NODE&&r.push(A9(n));return r}function Jp(e){const t=e.reduce((n,o)=>Math.max(o.height,n),0),r=[];for(let n=0;n<e[0].width.length;n++)r.push(e.map(o=>o.width[n]).reduce((o,i)=>Math.max(o,i),0));return[t,r]}function Yp(e,t){const r=[];for(const n of e){if(n.height===0)continue;const o=[];for(let i=0;i<n.cells.length;i++)o.push(Gg(n.cells[i],n.height,t[i]));n.cells=o,r.push(n)}return r}function Qp(e,t){if(t===1)return e.map(n=>n.lfence+n.cells.join(n.sep)+n.rfence).join(`
33
+ `);const r=[];for(const n of e){const o=Xg(n.sep,n.height);let i=n.cells.shift();for(;n.cells.length;)i=za(i,o),i=za(i,n.cells.shift());i=za(Xg(n.lfence,n.height),i),i=za(i,Xg(n.rfence,n.height)),r.push(i),r.push(n.lfence+new Array(Ei(i)-3).join(n.sep)+n.rfence)}return r.slice(0,-1).join(`
34
+ `)}function Xg(e,t){let r="";for(;t;)r+=e+`
35
+ `,t--;return r.slice(0,-1)}function px(e){return e.nodeType===Qr.NodeType.ELEMENT_NODE&&Qr.tagName(e)==="FENCE"?pl(e):""}function E9(e){let t=Kp(e);const[r,n]=Jp(t);return t=Yp(t,n),Qp(t,r)}function x9(e){let t=Kp(e);t.forEach(o=>{o.cells=o.cells.slice(1).slice(0,-1),o.width=o.width.slice(1).slice(0,-1)});const[r,n]=Jp(t);return t=Yp(t,n),Qp(t,r)}function M9(e){let t=Kp(e);t.forEach(o=>{o.cells=o.cells.slice(0,-1),o.width=o.width.slice(0,-1)});const[r,n]=Jp(t);return t=Yp(t,n),Qp(t,r)}function O9(e){let t=Kp(e);t.forEach(i=>{i.cells=i.cells.slice(1).slice(0,-1),i.width=i.width.slice(1).slice(0,-1),i.sep=i.sep+i.sep});const[r,n]=Jp(t),o={lfence:"",rfence:"",cells:n.map(i=>"⠐"+new Array(i).join("⠒")),width:n,height:1,sep:t[0].sep};return $p.Engine.getInstance().cayleyshort&&t[0].cells[0]==="⠀"&&(o.cells[0]="⠀"),t.splice(1,0,o),t=Yp(t,n),Qp(t,r)}function A9(e){const t=Array.from(e.childNodes),r=px(t[0]),n=px(t[t.length-1]);r&&t.shift(),n&&t.pop();let o="";const i=[];for(const a of t){if(a.nodeType===Qr.NodeType.TEXT_NODE){o=a.textContent;continue}const s=pl(a);i.push(s)}return{lfence:r,rfence:n,sep:o,cells:i,height:i.reduce((a,s)=>Math.max(zp(s),a),0),width:i.map(Ei)}}function dx(e,t){const r=(t-Ei(e))/2,[n,o]=Math.floor(r)===r?[r,r]:[Math.floor(r),Math.ceil(r)],i=e.split(/\r\n|\r|\n/),a=[],[s,c]=[new Array(n+1).join("⠀"),new Array(o+1).join("⠀")];for(const l of i)a.push(s+l+c);return a.join(`
36
+ `)}function T9(e){const[t,r,,n,o]=Array.from(e.childNodes),i=pl(r),a=pl(n),s=Ei(i),c=Ei(a);let l=Math.max(s,c);const u=t+new Array(l+1).join("⠒")+o;return l=u.length,`${dx(i,l)}
37
+ ${u}
38
+ ${dx(a,l)}`}function hx(e){const t=e.firstChild,r=Si(e);if(t&&t.nodeType===Qr.NodeType.ELEMENT_NODE){if(Qr.tagName(t)==="ENGLISH")return"⠰"+r;if(Qr.tagName(t)==="NUMBER")return"⠼"+r}return r}function fx(e){if(!$p.Engine.getInstance().linebreaks)return Si(e);const t=qg.get(parseInt(e.getAttribute("value")));return(t?`<br value="${t}"/>`:"")+Si(e)}var Zp={};Object.defineProperty(Zp,"__esModule",{value:!0}),Zp.PunctuationRenderer=void 0;const C9=De,N9=$a,Vg=Br;class ed extends N9.AbstractAudioRenderer{markup(t){const r=Vg.personalityMarkup(t);let n="",o=null,i=!1;for(let a=0,s;s=r[a];a++)if(!Vg.isMarkupElement(s)){if(Vg.isPauseElement(s)){o=s;continue}o&&(n+=this.pause(o[C9.personalityProps.PAUSE]),o=null),n+=(i?this.separator:"")+this.merge(s.span),i=!0}return n}pause(t){let r;return typeof t=="number"?t<=250?r="short":t<=500?r="medium":r="long":r=t,ed.PAUSE_PUNCTUATION.get(r)||""}}Zp.PunctuationRenderer=ed,ed.PAUSE_PUNCTUATION=new Map([["short",","],["medium",";"],["long","."]]);var td={};Object.defineProperty(td,"__esModule",{value:!0}),td.SableRenderer=void 0;const rd=De,_9=vi;class w9 extends _9.XmlRenderer{finalize(t){return'<?xml version="1.0"?><!DOCTYPE SABLE PUBLIC "-//SABLE//DTD SABLE speech mark up//EN" "Sable.v0_2.dtd" []><SABLE>'+this.separator+t+this.separator+"</SABLE>"}pause(t){return'<BREAK MSEC="'+this.pauseValue(t[rd.personalityProps.PAUSE])+'"/>'}prosodyElement(t,r){switch(r=this.applyScaleFunction(r),t){case rd.personalityProps.PITCH:return'<PITCH RANGE="'+r+'%">';case rd.personalityProps.RATE:return'<RATE SPEED="'+r+'%">';case rd.personalityProps.VOLUME:return'<VOLUME LEVEL="'+r+'%">';default:return"<"+t.toUpperCase()+' VALUE="'+r+'">'}}closeTag(t){return"</"+t.toUpperCase()+">"}}td.SableRenderer=w9;var nd={};Object.defineProperty(nd,"__esModule",{value:!0}),nd.SsmlRenderer=void 0;const dl=Oe,mx=De,R9=vi;class Dr extends R9.XmlRenderer{finalize(t){return`<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="${dl.Engine.getInstance().locale}"><prosody rate="`+dl.Engine.getInstance().getRate()+'%">'+this.separator+t+this.separator+"</prosody></speak>"}pause(t){return'<break time="'+this.pauseValue(t[mx.personalityProps.PAUSE])+'ms"/>'}prosodyElement(t,r){r=Math.floor(this.applyScaleFunction(r));const n=r<0?r.toString():"+"+r.toString();return"<prosody "+t.toLowerCase()+'="'+n+(t===mx.personalityProps.VOLUME?">":'%">')}closeTag(t){return"</prosody>"}markup(t){return Dr.MARKS={},super.markup(t)}merge(t){const r=[];let n="";for(let o=0;o<t.length;o++){const i=t[o];if(this.isEmptySpan(i))continue;const a=Dr.MARK_KIND?i.attributes.kind:"",s=dl.Engine.getInstance().automark?i.attributes.id:dl.Engine.getInstance().mark?i.attributes.extid:"";s&&s!==n&&!(Dr.MARK_ONCE&&Dr.MARKS[s])&&(r.push(a?`<mark name="${s}" kind="${a}"/>`:`<mark name="${s}"/>`),n=s,Dr.MARKS[s]=!0),dl.Engine.getInstance().character&&i.speech.length===1&&i.speech.match(/[a-zA-Z]/)?r.push('<say-as interpret-as="'+Dr.CHARACTER_ATTR+'">'+i.speech+"</say-as>"):r.push(i.speech)}return r.join(this.separator)}isEmptySpan(t){const r=t.attributes.separator;return t.speech.match(/^\s*$/)&&(!r||r.match(/^\s*$/))}}nd.SsmlRenderer=Dr,Dr.MARK_ONCE=!1,Dr.MARK_KIND=!0,Dr.CHARACTER_ATTR="character",Dr.MARKS={};var Ka={};Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.CountingRenderer=Ka.StringRenderer=void 0;const L9=Oe,I9=$a,P9=Br;class yx extends I9.AbstractAudioRenderer{markup(t){let r="";const n=(0,P9.personalityMarkup)(t).filter(i=>i.span);if(!n.length)return r;const o=n.length-1;for(let i=0,a;a=n[i];i++){if(a.span&&(r+=this.merge(a.span)),i>=o)continue;const s=a.join;r+=typeof s>"u"?this.separator:s}return r}}Ka.StringRenderer=yx;class k9 extends yx{finalize(t){const r=super.finalize(t),n=L9.Engine.getInstance().modality==="braille"?"⣿⠀⣿⠀⣿⠀⣿⠀⣿⠀":"0123456789";let o=new Array(Math.trunc(r.length/10)+1).join(n);return o+=n.slice(0,r.length%10),r+`
39
+ `+o}}Ka.CountingRenderer=k9,Object.defineProperty(kr,"__esModule",{value:!0}),kr.setSeparator=G9,kr.getSeparator=X9,kr.markup=V9,kr.merge=W9,kr.finalize=$9,kr.error=z9,kr.registerRenderer=K9,kr.isXml=J9;const xi=Oe,_o=De,B9=qp,D9=Wp,j9=Zp,F9=td,U9=Mr,H9=nd,gx=Ka,q9=vi,bx=new H9.SsmlRenderer,wo=new Map([[_o.Markup.NONE,new gx.StringRenderer],[_o.Markup.COUNTING,new gx.CountingRenderer],[_o.Markup.PUNCTUATION,new j9.PunctuationRenderer],[_o.Markup.LAYOUT,new D9.LayoutRenderer],[_o.Markup.ACSS,new B9.AcssRenderer],[_o.Markup.SABLE,new F9.SableRenderer],[_o.Markup.VOICEXML,bx],[_o.Markup.SSML,bx]]);function G9(e){const t=wo.get(xi.Engine.getInstance().markup);t&&(t.separator=e)}function X9(){const e=wo.get(xi.Engine.getInstance().markup);return e?e.separator:""}function V9(e){const t=wo.get(xi.Engine.getInstance().markup);return t?t.markup(e):""}function W9(e){const t=e.map(n=>typeof n=="string"?U9.Span.stringEmpty(n):n),r=wo.get(xi.Engine.getInstance().markup);return r?r.merge(t):e.join()}function $9(e){const t=wo.get(xi.Engine.getInstance().markup);return t?t.finalize(e):e}function z9(e){const t=wo.get(xi.Engine.getInstance().markup);return t?t.error(e):""}function K9(e,t){wo.set(e,t)}function J9(){return wo.get(xi.Engine.getInstance().markup)instanceof q9.XmlRenderer}var Mi={},Ja={},Ya={},od={},id={};Object.defineProperty(id,"__esModule",{value:!0}),id.SemanticAbstractParser=void 0;const Y9=Aa;class Q9{constructor(t){this.type=t,this.factory_=new Y9.SemanticNodeFactory}getFactory(){return this.factory_}setFactory(t){this.factory_=t}getType(){return this.type}parseList(t){const r=[];for(let n=0,o;o=t[n];n++)r.push(this.parse(o));return r}}id.SemanticAbstractParser=Q9,Object.defineProperty(od,"__esModule",{value:!0}),od.SemanticMathml=void 0;const Oi=he,kt=Se,Z9=Er,eP=id,tP=Ee,Et=Ma,Qn=je,Te=je,rP=Oa;class hl extends eP.SemanticAbstractParser{static getAttribute_(t,r,n){if(!t.hasAttribute(r))return n;const o=t.getAttribute(r);return o.match(/^\s*$/)?null:o}constructor(){super("MathML"),this.parseMap_=new Map([[Te.MMLTAGS.SEMANTICS,this.semantics_.bind(this)],[Te.MMLTAGS.MATH,this.rows_.bind(this)],[Te.MMLTAGS.MROW,this.rows_.bind(this)],[Te.MMLTAGS.MPADDED,this.rows_.bind(this)],[Te.MMLTAGS.MSTYLE,this.rows_.bind(this)],[Te.MMLTAGS.MFRAC,this.fraction_.bind(this)],[Te.MMLTAGS.MSUB,this.limits_.bind(this)],[Te.MMLTAGS.MSUP,this.limits_.bind(this)],[Te.MMLTAGS.MSUBSUP,this.limits_.bind(this)],[Te.MMLTAGS.MOVER,this.limits_.bind(this)],[Te.MMLTAGS.MUNDER,this.limits_.bind(this)],[Te.MMLTAGS.MUNDEROVER,this.limits_.bind(this)],[Te.MMLTAGS.MROOT,this.root_.bind(this)],[Te.MMLTAGS.MSQRT,this.sqrt_.bind(this)],[Te.MMLTAGS.MTABLE,this.table_.bind(this)],[Te.MMLTAGS.MLABELEDTR,this.tableLabeledRow_.bind(this)],[Te.MMLTAGS.MTR,this.tableRow_.bind(this)],[Te.MMLTAGS.MTD,this.tableCell_.bind(this)],[Te.MMLTAGS.MS,this.text_.bind(this)],[Te.MMLTAGS.MTEXT,this.text_.bind(this)],[Te.MMLTAGS.MSPACE,this.space_.bind(this)],[Te.MMLTAGS.ANNOTATIONXML,this.text_.bind(this)],[Te.MMLTAGS.MI,this.identifier_.bind(this)],[Te.MMLTAGS.MN,this.number_.bind(this)],[Te.MMLTAGS.MO,this.operator_.bind(this)],[Te.MMLTAGS.MFENCED,this.fenced_.bind(this)],[Te.MMLTAGS.MENCLOSE,this.enclosed_.bind(this)],[Te.MMLTAGS.MMULTISCRIPTS,this.multiscripts_.bind(this)],[Te.MMLTAGS.ANNOTATION,this.empty_.bind(this)],[Te.MMLTAGS.NONE,this.empty_.bind(this)],[Te.MMLTAGS.MACTION,this.action_.bind(this)]]);const t={type:kt.SemanticType.IDENTIFIER,role:kt.SemanticRole.NUMBERSET,font:kt.SemanticFont.DOUBLESTRUCK};["C","H","N","P","Q","R","Z","ℂ","ℍ","ℕ","ℙ","ℚ","ℝ","ℤ"].forEach((r=>this.getFactory().defaultMap.set(r,t)).bind(this))}parse(t){Et.SemanticProcessor.getInstance().setNodeFactory(this.getFactory());const r=Oi.toArray(t.childNodes),n=Oi.tagName(t),o=(this.parseMap_.get(n)||this.dummy_.bind(this))(t,r);return Qn.addAttributes(o,t),[Te.MMLTAGS.MATH,Te.MMLTAGS.MROW,Te.MMLTAGS.MPADDED,Te.MMLTAGS.MSTYLE,Te.MMLTAGS.SEMANTICS,Te.MMLTAGS.MACTION].indexOf(n)!==-1||(o.mathml.unshift(t),o.mathmlTree=t),o}semantics_(t,r){return r.length?this.parse(r[0]):this.getFactory().makeEmptyNode()}rows_(t,r){const n=t.getAttribute("semantics");if(n&&n.match("bspr_"))return Et.SemanticProcessor.proof(t,n,this.parseList.bind(this));r=Qn.purgeNodes(r);let o;if(r.length===1)o=this.parse(r[0]),o.type===kt.SemanticType.EMPTY&&!o.mathmlTree&&(o.mathmlTree=t);else{const i=rP.SemanticHeuristics.run("function_from_identifiers",t);o=i&&i!==t?i:Et.SemanticProcessor.getInstance().row(this.parseList(r))}return o.mathml.unshift(t),o}fraction_(t,r){if(!r.length)return this.getFactory().makeEmptyNode();const n=this.parse(r[0]),o=r[1]?this.parse(r[1]):this.getFactory().makeEmptyNode();return Et.SemanticProcessor.getInstance().fractionLikeNode(n,o,t.getAttribute("linethickness"),t.getAttribute("bevelled")==="true")}limits_(t,r){return Et.SemanticProcessor.getInstance().limitNode(Oi.tagName(t),this.parseList(r))}root_(t,r){return r[1]?this.getFactory().makeBranchNode(kt.SemanticType.ROOT,[this.parse(r[1]),this.parse(r[0])],[]):this.sqrt_(t,r)}sqrt_(t,r){const n=this.parseList(Qn.purgeNodes(r));return this.getFactory().makeBranchNode(kt.SemanticType.SQRT,[Et.SemanticProcessor.getInstance().row(n)],[])}table_(t,r){const n=t.getAttribute("semantics");if(n&&n.match("bspr_"))return Et.SemanticProcessor.proof(t,n,this.parseList.bind(this));const o=this.getFactory().makeBranchNode(kt.SemanticType.TABLE,this.parseList(r),[]);return o.mathmlTree=t,Et.SemanticProcessor.tableToMultiline(o)}tableRow_(t,r){const n=this.getFactory().makeBranchNode(kt.SemanticType.ROW,this.parseList(r),[]);return n.role=kt.SemanticRole.TABLE,n}tableLabeledRow_(t,r){var n;if(!r.length)return this.tableRow_(t,r);const o=this.parse(r[0]);o.role=kt.SemanticRole.LABEL,((n=o.childNodes[0])===null||n===void 0?void 0:n.type)===kt.SemanticType.TEXT&&(o.childNodes[0].role=kt.SemanticRole.LABEL);const i=this.getFactory().makeBranchNode(kt.SemanticType.ROW,this.parseList(r.slice(1)),[o]);return i.role=kt.SemanticRole.TABLE,i}tableCell_(t,r){const n=this.parseList(Qn.purgeNodes(r));let o;n.length?n.length===1&&tP.isType(n[0],kt.SemanticType.EMPTY)?o=n:o=[Et.SemanticProcessor.getInstance().row(n)]:o=[];const i=this.getFactory().makeBranchNode(kt.SemanticType.CELL,o,[]);return i.role=kt.SemanticRole.TABLE,i}space_(t,r){const n=t.getAttribute("width"),o=n&&n.match(/[a-z]*$/);if(!o)return this.empty_(t,r);const i={cm:.4,pc:.5,em:.5,ex:1,in:.15,pt:5,mm:5},a=o[0],s=parseFloat(n.slice(0,o.index)),c=i[a];if(!c||isNaN(s)||s<c)return this.empty_(t,r);const l=this.getFactory().makeUnprocessed(t);return Et.SemanticProcessor.getInstance().text(l,Oi.tagName(t))}text_(t,r){const n=this.leaf_(t,r);return t.textContent?(n.updateContent(t.textContent,!0),Et.SemanticProcessor.getInstance().text(n,Oi.tagName(t))):n}identifier_(t,r){const n=this.leaf_(t,r);return Et.SemanticProcessor.getInstance().identifierNode(n,Et.SemanticProcessor.getInstance().font(t.getAttribute("mathvariant")),t.getAttribute("class"))}number_(t,r){const n=this.leaf_(t,r);return Et.SemanticProcessor.number(n),n}operator_(t,r){const n=this.leaf_(t,r);return Et.SemanticProcessor.getInstance().operatorNode(n),n}fenced_(t,r){const n=this.parseList(Qn.purgeNodes(r)),o=hl.getAttribute_(t,"separators",","),i=hl.getAttribute_(t,"open","("),a=hl.getAttribute_(t,"close",")"),s=Et.SemanticProcessor.getInstance().mfenced(i,a,o,n);return Et.SemanticProcessor.getInstance().tablesInRow([s])[0]}enclosed_(t,r){const n=this.parseList(Qn.purgeNodes(r)),o=this.getFactory().makeBranchNode(kt.SemanticType.ENCLOSE,[Et.SemanticProcessor.getInstance().row(n)],[]);return o.role=t.getAttribute("notation")||kt.SemanticRole.UNKNOWN,o}multiscripts_(t,r){if(!r.length)return this.getFactory().makeEmptyNode();const n=this.parse(r.shift());if(!r.length)return n;const o=[],i=[],a=[],s=[];let c=!1,l=0;for(let u=0,p;p=r[u];u++){if(Oi.tagName(p)===Te.MMLTAGS.MPRESCRIPTS){c=!0,l=0;continue}c?l&1?o.push(p):i.push(p):l&1?a.push(p):s.push(p),l++}return!Qn.purgeNodes(o).length&&!Qn.purgeNodes(i).length?Et.SemanticProcessor.getInstance().pseudoTensor(n,this.parseList(s),this.parseList(a)):Et.SemanticProcessor.getInstance().tensor(n,this.parseList(i),this.parseList(o),this.parseList(s),this.parseList(a))}empty_(t,r){return this.getFactory().makeEmptyNode()}action_(t,r){const n=r[t.hasAttribute("selection")?parseInt(t.getAttribute("selection"),10)-1:0],o=this.parse(n);return o.mathmlTree=n,o}dummy_(t,r){const n=this.getFactory().makeUnprocessed(t);return n.role=t.tagName,n.textContent=t.textContent,n}leaf_(t,r){if(r.length===1&&r[0].nodeType!==Oi.NodeType.TEXT_NODE){const o=this.getFactory().makeUnprocessed(t);return o.role=r[0].tagName,Qn.addAttributes(o,r[0]),o}const n=this.getFactory().makeLeafNode(t.textContent,Et.SemanticProcessor.getInstance().font(t.getAttribute("mathvariant")));return t.hasAttribute("data-latex")&&Z9.SemanticMap.LatexCommands.set(t.getAttribute("data-latex"),t.textContent),n}}od.SemanticMathml=hl;var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.SemanticMmlHeuristic=Ro.SemanticMultiHeuristic=Ro.SemanticTreeHeuristic=void 0;class Wg{constructor(t,r,n=o=>!1){this.name=t,this.apply=r,this.applicable=n}}class nP extends Wg{}Ro.SemanticTreeHeuristic=nP;class oP extends Wg{}Ro.SemanticMultiHeuristic=oP;class iP extends Wg{}Ro.SemanticMmlHeuristic=iP;var Zn={},Ie={};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.EnrichAttributes=Ie.Attribute=void 0,Ie.makeIdList=zg,Ie.setAttributes=cP,Ie.removeAttributePrefix=uP,Ie.addPrefix=pP,Ie.addMrow=dP;const aP=he,sP=Se,$g="data-semantic-";var Ue;(function(e){e.ADDED="data-semantic-added",e.ALTERNATIVE="data-semantic-alternative",e.CHILDREN="data-semantic-children",e.COLLAPSED="data-semantic-collapsed",e.CONTENT="data-semantic-content",e.EMBELLISHED="data-semantic-embellished",e.FENCEPOINTER="data-semantic-fencepointer",e.FONT="data-semantic-font",e.ID="data-semantic-id",e.ANNOTATION="data-semantic-annotation",e.ATTRIBUTES="data-semantic-attributes",e.OPERATOR="data-semantic-operator",e.OWNS="data-semantic-owns",e.PARENT="data-semantic-parent",e.POSTFIX="data-semantic-postfix",e.PREFIX="data-semantic-prefix",e.ROLE="data-semantic-role",e.SPEECH="data-semantic-speech",e.STRUCTURE="data-semantic-structure",e.SUMMARY="data-semantic-summary",e.TYPE="data-semantic-type"})(Ue||(Ie.Attribute=Ue={})),Ie.EnrichAttributes=[Ue.ADDED,Ue.ALTERNATIVE,Ue.CHILDREN,Ue.COLLAPSED,Ue.CONTENT,Ue.EMBELLISHED,Ue.FENCEPOINTER,Ue.FONT,Ue.ID,Ue.ANNOTATION,Ue.ATTRIBUTES,Ue.OPERATOR,Ue.OWNS,Ue.PARENT,Ue.POSTFIX,Ue.PREFIX,Ue.ROLE,Ue.SPEECH,Ue.STRUCTURE,Ue.SUMMARY,Ue.TYPE];function zg(e){return e.map(function(t){return t.id}).join(",")}function cP(e,t){e.setAttribute(Ue.TYPE,t.type);const r=t.allAttributes();for(let o=0,i;i=r[o];o++)e.setAttribute($g+i[0].toLowerCase(),i[1]);t.childNodes.length&&e.setAttribute(Ue.CHILDREN,zg(t.childNodes)),t.contentNodes.length&&e.setAttribute(Ue.CONTENT,zg(t.contentNodes)),t.parent&&e.setAttribute(Ue.PARENT,t.parent.id.toString());const n=t.attributesXml();n&&e.setAttribute(Ue.ATTRIBUTES,n),lP(e,t)}function lP(e,t){const r=[];t.role===sP.SemanticRole.MGLYPH&&r.push("image"),t.attributes.href&&r.push("link"),r.length&&e.setAttribute(Ue.POSTFIX,r.join(" "))}function uP(e){return e.toString().replace(new RegExp($g,"g"),"")}function pP(e){return $g+e}function dP(){const e=aP.createElement("mrow");return e.setAttribute(Ue.ADDED,"true"),e}Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.SemanticSkeleton=void 0;const vx=Gn,hP=Oe,Sx=Rt,fl=Ie,Ar=Se;class Ce{static fromTree(t){return Ce.fromNode(t.root)}static fromNode(t){return new Ce(Ce.fromNode_(t))}static fromString(t){return new Ce(Ce.fromString_(t))}static simpleCollapseStructure(t){return typeof t=="number"}static contentCollapseStructure(t){return!!t&&!Ce.simpleCollapseStructure(t)&&t[0]==="c"}static interleaveIds(t,r){return vx.interleaveLists(Ce.collapsedLeafs(t),Ce.collapsedLeafs(r))}static collapsedLeafs(...t){const r=n=>Ce.simpleCollapseStructure(n)?[n]:(n=n,Ce.contentCollapseStructure(n[1])?n.slice(2):n.slice(1));return t.reduce((n,o)=>n.concat(r(o)),[])}static fromStructure(t,r){return new Ce(Ce.tree_(t,r.root))}static combineContentChildren(t,r,n,o){switch(t){case Ar.SemanticType.RELSEQ:case Ar.SemanticType.INFIXOP:case Ar.SemanticType.MULTIREL:return vx.interleaveLists(o,n);case Ar.SemanticType.PREFIXOP:return n.concat(o);case Ar.SemanticType.POSTFIXOP:return o.concat(n);case Ar.SemanticType.MATRIX:case Ar.SemanticType.VECTOR:case Ar.SemanticType.FENCED:return o.unshift(n[0]),o.push(n[1]),o;case Ar.SemanticType.CASES:return o.unshift(n[0]),o;case Ar.SemanticType.APPL:return[o[0],n[0],o[1]];case Ar.SemanticType.ROOT:return[o[0],o[1]];case Ar.SemanticType.ROW:case Ar.SemanticType.LINE:return n.length&&o.unshift(n[0]),o;default:return o}}static makeSexp_(t){return Ce.simpleCollapseStructure(t)?t.toString():Ce.contentCollapseStructure(t)?"(c "+t.slice(1).map(Ce.makeSexp_).join(" ")+")":"("+t.map(Ce.makeSexp_).join(" ")+")"}static fromString_(t){let r=t.replace(/\(/g,"[");return r=r.replace(/\)/g,"]"),r=r.replace(/ /g,","),r=r.replace(/c/g,'"c"'),JSON.parse(r)}static fromNode_(t){if(!t)return[];const r=t.contentNodes;let n;r.length&&(n=r.map(Ce.fromNode_),n.unshift("c"));const o=t.childNodes;if(!o.length)return r.length?[t.id,n]:t.id;const i=o.map(Ce.fromNode_);return r.length&&i.unshift(n),i.unshift(t.id),i}static tree_(t,r,n=0,o=1,i=1){if(!r)return[];const a=r.id,s=[a];Sx.updateEvaluator(t);const c=Sx.evalXPath(`.//self::*[@${fl.Attribute.ID}=${a}]`,t)[0];if(!r.childNodes.length)return Ce.addAria(c,n,o,i),r.id;const l=Ce.combineContentChildren(r.type,r.role,r.contentNodes.map(function(u){return u}),r.childNodes.map(function(u){return u}));c&&Ce.addOwns_(c,l);for(let u=0,p=l.length,d;d=l[u];u++)s.push(Ce.tree_(t,d,n+1,u+1,p));return Ce.addAria(c,n,o,i,"treeitem"),s}static addAria(t,r,n,o,i="treeitem"){!hP.Engine.getInstance().aria||!t||(t.setAttribute("aria-level",r.toString()),t.setAttribute("aria-posinset",n.toString()),t.setAttribute("aria-setsize",o.toString()),t.setAttribute("role",i),t.hasAttribute(fl.Attribute.OWNS)&&t.setAttribute("aria-owns",t.getAttribute(fl.Attribute.OWNS)))}static addOwns_(t,r){const n=t.getAttribute(fl.Attribute.COLLAPSED),o=n?Ce.realLeafs_(Ce.fromString(n).array):r.map(i=>i.id);t.setAttribute(fl.Attribute.OWNS,o.join(" "))}static realLeafs_(t){if(Ce.simpleCollapseStructure(t))return[t];if(Ce.contentCollapseStructure(t))return[];t=t;let r=[];for(let n=1;n<t.length;n++)r=r.concat(Ce.realLeafs_(t[n]));return r}constructor(t){this.parents=null,this.levelsMap=null,t=t===0?t:t||[],this.array=t}populate(){this.parents&&this.levelsMap||(this.parents={},this.levelsMap={},this.populate_(this.array,this.array,[]))}toString(){return Ce.makeSexp_(this.array)}populate_(t,r,n){if(Ce.simpleCollapseStructure(t)){t=t,this.levelsMap[t]=r,this.parents[t]=t===n[0]?n.slice(1):n;return}const o=Ce.contentCollapseStructure(t)?t.slice(1):t,i=[o[0]].concat(n);for(let a=0,s=o.length;a<s;a++){const c=o[a];this.populate_(c,t,i)}}isRoot(t){return t===this.levelsMap[t][0]}directChildren(t){return this.isRoot(t)?this.levelsMap[t].slice(1).map(r=>Ce.simpleCollapseStructure(r)?r:Ce.contentCollapseStructure(r)?r[1]:r[0]):[]}subtreeNodes(t){if(!this.isRoot(t))return[];const r=(i,a)=>{if(Ce.simpleCollapseStructure(i)){a.push(i);return}i=i,Ce.contentCollapseStructure(i)&&(i=i.slice(1)),i.forEach(s=>r(s,a))},n=this.levelsMap[t],o=[];return r(n.slice(1),o),o}}Zn.SemanticSkeleton=Ce;const Lo=$r,ad=Oe,sd=Er,xt=Oa,ir=Ro,re=Se,pr=Ee,Io=Ma,Kg=je,fP=Zn,cd=je,Qa=he;xt.SemanticHeuristics.add(new ir.SemanticTreeHeuristic("combine_juxtaposition",mP));function mP(e){for(let t=e.childNodes.length-1,r;r=e.childNodes[t];t--)!pr.isImplicitOp(r)||r.nobreaking||(e.childNodes.splice(t,1,...r.childNodes),e.contentNodes.splice(t,0,...r.contentNodes),r.childNodes.concat(r.contentNodes).forEach(function(n){n.parent=e}),e.addMathmlNodes(r.mathml));return e}xt.SemanticHeuristics.add(new ir.SemanticTreeHeuristic("propagateSimpleFunction",e=>((e.type===re.SemanticType.INFIXOP||e.type===re.SemanticType.FRACTION)&&e.childNodes.every(pr.isSimpleFunction)&&(e.role=re.SemanticRole.COMPFUNC),e),e=>ad.Engine.getInstance().domain==="clearspeak")),xt.SemanticHeuristics.add(new ir.SemanticTreeHeuristic("simpleNamedFunction",e=>(e.role!==re.SemanticRole.UNIT&&["f","g","h","F","G","H"].indexOf(e.textContent)!==-1&&(e.role=re.SemanticRole.SIMPLEFUNC),e),e=>ad.Engine.getInstance().domain==="clearspeak")),xt.SemanticHeuristics.add(new ir.SemanticTreeHeuristic("propagateComposedFunction",e=>(e.type===re.SemanticType.FENCED&&e.childNodes[0].role===re.SemanticRole.COMPFUNC&&(e.role=re.SemanticRole.COMPFUNC),e),e=>ad.Engine.getInstance().domain==="clearspeak")),xt.SemanticHeuristics.add(new ir.SemanticTreeHeuristic("multioperator",e=>{e.role!==re.SemanticRole.UNKNOWN||e.textContent.length<=1||(Io.SemanticProcessor.compSemantics(e,"role",re.SemanticRole),Io.SemanticProcessor.compSemantics(e,"type",re.SemanticType))})),xt.SemanticHeuristics.add(new ir.SemanticMultiHeuristic("convert_juxtaposition",e=>{let t=Kg.partitionNodes(e,function(r){return r.textContent===sd.NamedSymbol.invisibleTimes&&r.type===re.SemanticType.OPERATOR});t=t.rel.length?yP(t):t,e=t.comp[0];for(let r=1,n,o;n=t.comp[r],o=t.rel[r-1];r++)e.push(o),e=e.concat(n);return t=Kg.partitionNodes(e,function(r){return r.textContent===sd.NamedSymbol.invisibleTimes&&(r.type===re.SemanticType.OPERATOR||r.type===re.SemanticType.INFIXOP)}),t.rel.length?Za(t.comp.shift(),t.rel,t.comp):e})),xt.SemanticHeuristics.add(new ir.SemanticTreeHeuristic("simple2prefix",e=>(e.textContent.length>1&&!e.textContent[0].match(/[A-Z]/)&&(e.role=re.SemanticRole.PREFIXFUNC),e),e=>ad.Engine.getInstance().modality==="braille"&&e.type===re.SemanticType.IDENTIFIER)),xt.SemanticHeuristics.add(new ir.SemanticTreeHeuristic("detect_cycle",e=>{e.type=re.SemanticType.MATRIX,e.role=re.SemanticRole.CYCLE;const t=e.childNodes[0];return t.type=re.SemanticType.ROW,t.role=re.SemanticRole.CYCLE,t.textContent="",t.contentNodes=[],e},e=>e.type===re.SemanticType.FENCED&&e.childNodes[0].type===re.SemanticType.INFIXOP&&e.childNodes[0].role===re.SemanticRole.IMPLICIT&&e.childNodes[0].childNodes.every(function(t){return t.type===re.SemanticType.NUMBER})&&e.childNodes[0].contentNodes.every(function(t){return t.role===re.SemanticRole.SPACE})));function yP(e){const t=[],r=[];let n=e.comp.shift(),o=null,i=[];for(;e.comp.length;){if(i=[],n.length){o&&t.push(o),r.push(n),o=e.rel.shift(),n=e.comp.shift();continue}for(o&&i.push(o);!n.length&&e.comp.length;)n=e.comp.shift(),i.push(e.rel.shift());o=Ex(i,n,r)}return!i.length&&!n.length?(i.push(o),Ex(i,n,r)):(t.push(o),r.push(n)),{rel:t,comp:r}}function Ex(e,t,r){let n=null;if(!e.length)return n;const o=r[r.length-1],i=o&&o.length,a=t&&t.length,s=Io.SemanticProcessor.getInstance();if(i&&a){if(t[0].type===re.SemanticType.INFIXOP&&t[0].role===re.SemanticRole.IMPLICIT)return n=e.pop(),o.push(s.postfixNode_(o.pop(),e)),n;n=e.shift();const c=s.prefixNode_(t.shift(),e);return t.unshift(c),n}return i?(o.push(s.postfixNode_(o.pop(),e)),n):(a&&t.unshift(s.prefixNode_(t.shift(),e)),n)}function Za(e,t,r){if(!t.length)return e;const n=e.pop(),o=t.shift(),i=r.shift();if(o.type===re.SemanticType.INFIXOP&&(o.role===re.SemanticRole.IMPLICIT||o.role===re.SemanticRole.UNIT)){Lo.Debugger.getInstance().output("Juxta Heuristic Case 2");const c=(n?[n,o]:[o]).concat(i);return Za(e.concat(c),t,r)}if(!n)return Lo.Debugger.getInstance().output("Juxta Heuristic Case 3"),Za([o].concat(i),t,r);const a=i.shift();if(!a){Lo.Debugger.getInstance().output("Juxta Heuristic Case 9");const c=xt.SemanticHeuristics.factory.makeBranchNode(re.SemanticType.INFIXOP,[n,t.shift()],[o],o.textContent);return c.role=re.SemanticRole.IMPLICIT,xt.SemanticHeuristics.run("combine_juxtaposition",c),t.unshift(c),Za(e,t,r)}if(pr.isOperator(n)||pr.isOperator(a))return Lo.Debugger.getInstance().output("Juxta Heuristic Case 4"),Za(e.concat([n,o,a]).concat(i),t,r);let s=null;return pr.isImplicitOp(n)&&pr.isImplicitOp(a)?(Lo.Debugger.getInstance().output("Juxta Heuristic Case 5"),n.contentNodes.push(o),n.contentNodes=n.contentNodes.concat(a.contentNodes),n.childNodes.push(a),n.childNodes=n.childNodes.concat(a.childNodes),a.childNodes.forEach(c=>c.parent=n),o.parent=n,n.addMathmlNodes(o.mathml),n.addMathmlNodes(a.mathml),s=n):pr.isImplicitOp(n)?(Lo.Debugger.getInstance().output("Juxta Heuristic Case 6"),n.contentNodes.push(o),n.childNodes.push(a),a.parent=n,o.parent=n,n.addMathmlNodes(o.mathml),n.addMathmlNodes(a.mathml),s=n):pr.isImplicitOp(a)?(Lo.Debugger.getInstance().output("Juxta Heuristic Case 7"),a.contentNodes.unshift(o),a.childNodes.unshift(n),n.parent=a,o.parent=a,a.addMathmlNodes(o.mathml),a.addMathmlNodes(n.mathml),s=a):(Lo.Debugger.getInstance().output("Juxta Heuristic Case 8"),s=xt.SemanticHeuristics.factory.makeBranchNode(re.SemanticType.INFIXOP,[n,a],[o],o.textContent),s.role=re.SemanticRole.IMPLICIT),e.push(s),Za(e.concat(i),t,r)}xt.SemanticHeuristics.add(new ir.SemanticMultiHeuristic("intvar_from_implicit",gP,e=>e[0]&&pr.isImplicit(e[0])));function gP(e){const t=e[0].childNodes;e.splice(0,1,...t)}xt.SemanticHeuristics.add(new ir.SemanticTreeHeuristic("intvar_from_fraction",bP,e=>{if(e.type!==re.SemanticType.INTEGRAL)return!1;const[,t,r]=e.childNodes;return r.type===re.SemanticType.EMPTY&&t.type===re.SemanticType.FRACTION}));function bP(e){const t=e.childNodes[1],r=t.childNodes[0];if(pr.isIntegralDxBoundarySingle(r)){r.role=re.SemanticRole.INTEGRAL;return}if(!pr.isImplicit(r))return;const n=r.childNodes.length,o=r.childNodes[n-2],i=r.childNodes[n-1];if(pr.isIntegralDxBoundarySingle(i)){i.role=re.SemanticRole.INTEGRAL;return}if(pr.isIntegralDxBoundary(o,i)){const a=Io.SemanticProcessor.getInstance().prefixNode_(i,[o]);a.role=re.SemanticRole.INTEGRAL,n===2?t.childNodes[0]=a:(r.childNodes.pop(),r.contentNodes.pop(),r.childNodes[n-2]=a,a.parent=r)}}xt.SemanticHeuristics.add(new ir.SemanticTreeHeuristic("rewrite_subcases",SP,e=>{let t=!0,r=!0;const n=e.childNodes[0].childNodes[0];if(!xx(n.mathmlTree))t=!1;else for(let i=1,a;a=e.childNodes[i];i++)if(a.childNodes[0].childNodes.length){t=!1;break}t&&e.addAnnotation("Emph","left");const o=e.childNodes[0].childNodes[e.childNodes[0].childNodes.length-1];if(!xx(o.mathmlTree))r=!1;else{const i=e.childNodes[0].childNodes.length;for(let a=1,s;s=e.childNodes[a];a++)if(s.childNodes.length>=i){r=!1;break}}return r&&e.addAnnotation("Emph","right"),t||r}));function xx(e){return e.childNodes[0]&&e.childNodes[0].childNodes[0]&&Qa.tagName(e.childNodes[0])===cd.MMLTAGS.MPADDED&&Qa.tagName(e.childNodes[0].childNodes[0])===cd.MMLTAGS.MPADDED&&Qa.tagName(e.childNodes[0].childNodes[e.childNodes[0].childNodes.length-1])===cd.MMLTAGS.MPHANTOM}const vP=[re.SemanticType.PUNCTUATED,re.SemanticType.RELSEQ,re.SemanticType.MULTIREL,re.SemanticType.INFIXOP,re.SemanticType.PREFIXOP,re.SemanticType.POSTFIXOP];function SP(e){e.addAnnotation("Emph","top");let t=[];if(e.hasAnnotation("Emph","left")){const o=e.childNodes[0].childNodes[0].childNodes[0],i=Mx(o,!0);i.forEach(a=>a.addAnnotation("Emph","left")),t=t.concat(i);for(let a=0,s;s=e.childNodes[a];a++)s.childNodes.shift()}if(t.push(e),e.hasAnnotation("Emph","right")){const o=e.childNodes[0].childNodes[e.childNodes[0].childNodes.length-1].childNodes[0],i=Mx(o);i.forEach(a=>a.addAnnotation("Emph","left")),t=t.concat(i),e.childNodes[0].childNodes.pop()}Io.SemanticProcessor.tableToMultiline(e);const r=Io.SemanticProcessor.getInstance().row(t),n=e.annotation.Emph;return e.annotation.Emph=["table"],n.forEach(o=>r.addAnnotation("Emph",o)),r}function Mx(e,t){if(!e.childNodes.length)return Jg(e),[e];let r=null;if(e.type===re.SemanticType.PUNCTUATED&&(t?e.role===re.SemanticRole.ENDPUNCT:e.role===re.SemanticRole.STARTPUNCT)){const n=e.childNodes;Jg(n[t?n.length-1:0])&&(e=n[t?0:n.length-1],r=n[t?n.length-1:0])}if(vP.indexOf(e.type)!==-1){const n=e.childNodes;Jg(n[t?n.length-1:0]);const o=fP.SemanticSkeleton.combineContentChildren(e.type,e.role,e.contentNodes,e.childNodes);return r&&(t?o.push(r):o.unshift(r)),o}return r?t?[e,r]:[r,e]:[e]}const EP={[re.SemanticRole.METRIC]:re.SemanticRole.METRIC,[re.SemanticRole.VBAR]:re.SemanticRole.NEUTRAL,[re.SemanticRole.OPENFENCE]:re.SemanticRole.OPEN,[re.SemanticRole.CLOSEFENCE]:re.SemanticRole.CLOSE};function Jg(e){if(e.type!==re.SemanticType.PUNCTUATION)return!1;const t=EP[e.role];return t?(e.role=t,e.type=re.SemanticType.FENCE,e.addAnnotation("Emph","fence"),!0):!1}xt.SemanticHeuristics.add(new ir.SemanticMultiHeuristic("ellipses",e=>{const t=[];let r=e.shift();for(;r;)[r,e]=Ox(r,e,re.SemanticRole.FULLSTOP,re.SemanticRole.ELLIPSIS),[r,e]=Ox(r,e,re.SemanticRole.DASH),t.push(r),r=e.shift();return t},e=>e.length>1));function Ox(e,t,r,n=r){const o=[];for(;e&&e.role===r;)o.push(e),e=t.shift();return o.length?(e&&t.unshift(e),[o.length===1?o[0]:xP(o,n),t]):[e,t]}function xP(e,t){const r=xt.SemanticHeuristics.factory.makeBranchNode(re.SemanticType.PUNCTUATION,e,[]);return r.role=t,r}xt.SemanticHeuristics.add(new ir.SemanticMultiHeuristic("op_with_limits",e=>{const t=e[0];return t.type=re.SemanticType.LARGEOP,t.role=re.SemanticRole.SUM,e},e=>e[0].type===re.SemanticType.OPERATOR&&e.slice(1).some(t=>t.type===re.SemanticType.RELSEQ||t.type===re.SemanticType.MULTIREL||t.type===re.SemanticType.INFIXOP&&t.role===re.SemanticRole.ELEMENT||t.type===re.SemanticType.PUNCTUATED&&t.role===re.SemanticRole.SEQUENCE))),xt.SemanticHeuristics.add(new ir.SemanticMultiHeuristic("bracketed_interval",e=>{const t=e[0],r=e[1],n=e.slice(2),o=Io.SemanticProcessor.getInstance().row(n),i=xt.SemanticHeuristics.factory.makeBranchNode(re.SemanticType.FENCED,[o],[t,r]);return i.role=re.SemanticRole.LEFTRIGHT,i},e=>{const t=e[0],r=e[1],n=e.slice(2);if(!(t&&(t.textContent==="]"||t.textContent==="[")&&r&&(r.textContent==="]"||r.textContent==="[")))return!1;const o=Kg.partitionNodes(n,pr.isPunctuation);return!!(o.rel.length===1&&o.comp[0].length&&o.comp[1].length)})),xt.SemanticHeuristics.add(new ir.SemanticMmlHeuristic("function_from_identifiers",e=>{const t=Qa.toArray(e.childNodes).map(n=>n.textContent.trim()).join("");if(sd.SemanticMap.Meaning.get(t).type===re.SemanticType.UNKNOWN)return e;const r=xt.SemanticHeuristics.factory.makeLeafNode(t,Io.SemanticProcessor.getInstance().font(e.getAttribute("mathvariant")));return r.mathmlTree=e,r},e=>{const t=Qa.toArray(e.childNodes);return t.length<2?!1:t.every(r=>Qa.tagName(r)===cd.MMLTAGS.MI&&sd.SemanticMap.Meaning.get(r.textContent.trim()).role===re.SemanticRole.LATINLETTER)})),Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.SemanticTree=void 0;const ld=he,MP=pi,OP=qn,AP=Se,Ax=od,TP=Ta,CP=Ee;class es{static empty(){const t=ld.parseInput("<math/>"),r=new es(t);return r.mathml=t,r}static fromNode(t,r){const n=es.empty();return n.root=t,r&&(n.mathml=r),n}static fromRoot(t,r){let n=t;for(;n.parent;)n=n.parent;const o=es.fromNode(n);return r&&(o.mathml=r),o}static fromXml(t){const r=es.empty();return t.childNodes[0]&&(r.root=TP.SemanticNode.fromXml(t.childNodes[0])),r}constructor(t){this.mathml=t,this.parser=new Ax.SemanticMathml,this.root=this.parser.parse(t),this.collator=this.parser.getFactory().leafMap.collateMeaning();const r=this.collator.newDefault();r&&(this.parser=new Ax.SemanticMathml,this.parser.getFactory().defaultMap=r,this.root=this.parser.parse(t)),NP.visit(this.root,{}),(0,MP.annotate)(this.root)}xml(t){const r=ld.parseInput("<stree></stree>"),n=this.root.xml(r.ownerDocument,t);return r.appendChild(n),r}toString(t){return ld.serializeXml(this.xml(t))}formatXml(t){const r=this.toString(t);return ld.formatXml(r)}displayTree(){this.root.displayTree()}replaceNode(t,r){const n=t.parent;if(!n){this.root=r;return}n.replaceChild(t,r)}toJson(){const t={};return t.stree=this.root.toJson(),t}}Ya.SemanticTree=es;const NP=new OP.SemanticVisitor("general","unit",(e,t)=>(CP.isUnitProduct(e)&&(e.role=AP.SemanticRole.UNIT),!1));Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.xmlTree=RP,Ja.getTree=Yg,Ja.getTreeFromString=LP;const _P=he,wP=Ya;function RP(e){return Yg(e).xml()}function Yg(e){return new wP.SemanticTree(e)}function LP(e){return Yg(_P.parseInput(e))}var ct={},ud={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.factory=void 0,e.getCase=t;function t(r){for(let n=0,o;o=e.factory[n];n++)if(o.test(r))return o.constr(r);return null}e.factory=[]})(ud),ee(ud),Object.defineProperty(ct,"__esModule",{value:!0}),ct.enrich=jP,ct.walkTree=ts,ct.introduceNewLayer=Tx,ct.ascendNewNode=ml,ct.addCollapsedAttribute=YP,ct.cloneContentNode=wx,ct.rewriteMfenced=Rx,ct.setOperatorAttribute=Ix,ct.getInnerNode=yl,ct.collapsePunctuated=QP;const zt=$r,lt=he,IP=Oe,PP=Er,Qg=Se,kP=Oa,Zg=Zn,jr=je,BP=je,Ct=Ie,DP=ud,pd={collapsed:!0,implicit:!0,wiki:!0},e1=new Map;function jP(e,t){e1.clear();const r=lt.cloneNode(e);return ts(t.root),IP.Engine.getInstance().structure&&e.setAttribute(Ct.Attribute.STRUCTURE,Zg.SemanticSkeleton.fromStructure(e,t).toString()),zt.Debugger.getInstance().generateOutput(()=>[r1(r,"Original MathML",pd.wiki),r1(t,"Semantic Tree",pd.wiki),r1(e,"Semantically enriched MathML",pd.wiki)]),e}function ts(e){zt.Debugger.getInstance().output("WALKING START: "+e.toString());const t=(0,DP.getCase)(e);let r;if(t)return r=t.getMathml(),zt.Debugger.getInstance().output("WALKING END: "+e.toString()),ml(r);if(e.mathml.length===1){if(zt.Debugger.getInstance().output("Walktree Case 0"),!e.childNodes.length)return zt.Debugger.getInstance().output("Walktree Case 0.1"),r=e.mathml[0],Ct.setAttributes(r,e),zt.Debugger.getInstance().output("WALKING END: "+e.toString()),ml(r);const a=e.childNodes[0];if(e.childNodes.length===1&&a.type===Qg.SemanticType.EMPTY)return zt.Debugger.getInstance().output("Walktree Case 0.2"),r=e.mathml[0],Ct.setAttributes(r,e),r.appendChild(ts(a)),zt.Debugger.getInstance().output("WALKING END: "+e.toString()),ml(r);e.childNodes.forEach(s=>{s.mathml.length||(s.mathml=[Lx(s)])})}const n=e.contentNodes.map(wx);Ix(e,n);const o=e.childNodes.map(ts),i=Zg.SemanticSkeleton.combineContentChildren(e.type,e.role,n,o);if(r=e.mathmlTree,r===null)zt.Debugger.getInstance().output("Walktree Case 1"),r=Tx(i,e);else{const a=dd(i);zt.Debugger.getInstance().output("Walktree Case 2"),a?(zt.Debugger.getInstance().output("Walktree Case 2.1"),r=xn(a)):(zt.Debugger.getInstance().output("Walktree Case 2.2"),r=yl(r))}return r=Rx(r),GP(r,i,e),e1.has(e.id)||(e1.set(e.id,!0),Ct.setAttributes(r,e)),zt.Debugger.getInstance().output("WALKING END: "+e.toString()),ml(r)}function Tx(e,t){const r=$P(e);let n=r.node;const o=r.type;if(o!==En.VALID||!jr.hasEmptyTag(n)||!n.parentNode&&t.parent){if(zt.Debugger.getInstance().output("Walktree Case 1.1"),n=Ct.addMrow(),o===En.PRUNED)zt.Debugger.getInstance().output("Walktree Case 1.1.0"),n=FP(n,r.node,e);else if(e[0]){zt.Debugger.getInstance().output("Walktree Case 1.1.1");const i=dd(e);if(i){const a=UP(xn(i),e);lt.replaceNode(i,n),a.forEach(function(s){n.appendChild(s)})}else Cx(n,e[0]),n=e[0]}}return t.mathmlTree||(t.mathmlTree=n),n}function FP(e,t,r){let n=_x(t);if(jr.hasMathTag(n)){zt.Debugger.getInstance().output("Walktree Case 1.1.0.0"),Cx(n,e),lt.toArray(n.childNodes).forEach(function(a){e.appendChild(a)});const i=e;e=n,n=i}const o=r.indexOf(t);return r[o]=n,lt.replaceNode(n,e),e.appendChild(n),r.forEach(function(i){e.appendChild(i)}),e}function Cx(e,t){for(const r of Ct.EnrichAttributes)e.hasAttribute(r)&&(t.setAttribute(r,e.getAttribute(r)),e.removeAttribute(r))}function UP(e,t){const r=lt.toArray(e.childNodes);let n=1/0,o=-1/0;return t.forEach(function(i){const a=r.indexOf(i);a!==-1&&(n=Math.min(n,a),o=Math.max(o,a))}),r.slice(n,o+1)}function HP(e,t,r){const n=[];let o=lt.toArray(e.childNodes),i=!1;for(;o.length;){const c=o.shift();if(c.hasAttribute(Ct.Attribute.TYPE)){n.push(c);continue}const l=qP(c,t);if(l.length!==0){if(l.length===1){n.push(c);continue}i?c.setAttribute("AuxiliaryImplicit",!0):i=!0,o=l.concat(o)}}const a=[],s=r.childNodes.map(function(c){return c.mathmlTree});for(;s.length;){const c=s.pop();if(c){if(n.indexOf(c)!==-1)break;t.indexOf(c)!==-1&&a.unshift(c)}}return n.concat(a)}function qP(e,t){const r=[];let n=lt.toArray(e.childNodes);for(;n.length;){const o=n.shift();if(o.nodeType===lt.NodeType.ELEMENT_NODE){if(o.hasAttribute(Ct.Attribute.TYPE)||t.indexOf(o)!==-1){r.push(o);continue}n=lt.toArray(o.childNodes).concat(n)}}return r}function GP(e,t,r){if(!t.length||t.length===1&&e===t[0])return;const n=r.role===Qg.SemanticRole.IMPLICIT&&kP.SemanticHeuristics.flags.combine_juxtaposition?HP(e,t,r):lt.toArray(e.childNodes);if(!n.length){t.forEach(function(i){e.appendChild(i)});return}let o=0;for(;t.length;){const i=t[0];if(n[o]===i||WP(n[o],i)){t.shift(),o++;continue}if(n[o]&&t.indexOf(n[o])===-1){o++;continue}if(VP(i,e)){t.shift();continue}const a=n[o];if(!a){if(i.parentNode){e=xn(i),t.shift();continue}const s=t[1];if(s&&s.parentNode){e=xn(s),e.insertBefore(i,s),t.shift(),t.shift();continue}e.insertBefore(i,null),t.shift();continue}XP(e,a,i),t.shift()}}function XP(e,t,r){let n=t,o=xn(n);for(;o&&o.firstChild===n&&!n.hasAttribute("AuxiliaryImplicit")&&o!==e;)n=o,o=xn(n);o&&(o.insertBefore(r,n),n.removeAttribute("AuxiliaryImplicit"))}function VP(e,t){if(!e)return!1;do if(e=xn(e),e===t)return!0;while(e);return!1}function WP(e,t){const r=PP.NamedSymbol.functionApplication;if(e&&t&&e.textContent&&t.textContent&&e.textContent===r&&t.textContent===r&&t.getAttribute(Ct.Attribute.ADDED)==="true"){for(let n=0,o;o=e.attributes[n];n++)t.hasAttribute(o.nodeName)||t.setAttribute(o.nodeName,o.nodeValue);return lt.replaceNode(e,t),!0}return!1}var En;(function(e){e.VALID="valid",e.INVALID="invalid",e.PRUNED="pruned"})(En||(En={}));function $P(e){const t=dd(e);if(!t)return{type:En.INVALID,node:null};const r=dd(e.slice().reverse());if(t===r)return{type:En.VALID,node:t};const n=Nx(t),o=zP(n,e),i=Nx(r,function(c){return o.indexOf(c)!==-1}),a=i[0],s=o.indexOf(a);return s===-1?{type:En.INVALID,node:null}:{type:o.length!==n.length?En.PRUNED:KP(o[s+1],i[1])?En.VALID:En.INVALID,node:a}}function zP(e,t){let r=0;for(;e[r]&&t.indexOf(e[r])===-1;)r++;return e.slice(0,r+1)}function dd(e){let t=0,r=null;for(;!r&&t<e.length;)e[t].parentNode&&(r=e[t]),t++;return r}function Nx(e,t){const r=t||(o=>!1),n=[e];for(;!r(e)&&!jr.hasMathTag(e)&&e.parentNode;)e=xn(e),n.unshift(e);return n}function KP(e,t){return!!(e&&t&&!e.previousSibling&&!t.nextSibling)}function ml(e){for(;!jr.hasMathTag(e)&&JP(e);)e=xn(e);return e}function _x(e){const t=lt.toArray(e.childNodes);if(!t)return e;const r=t.filter(function(n){return n.nodeType===lt.NodeType.ELEMENT_NODE&&!jr.hasIgnoreTag(n)});return r.length===1&&jr.hasEmptyTag(r[0])&&!r[0].hasAttribute(Ct.Attribute.TYPE)?_x(r[0]):e}function JP(e){const t=xn(e);return!t||!jr.hasEmptyTag(t)?!1:lt.toArray(t.childNodes).every(function(r){return r===e||t1(r)})}function t1(e){if(e.nodeType!==lt.NodeType.ELEMENT_NODE||!e||jr.hasIgnoreTag(e))return!0;const t=lt.toArray(e.childNodes);return!jr.hasEmptyTag(e)&&t.length||jr.hasDisplayTag(e)||e.hasAttribute(Ct.Attribute.TYPE)||jr.isOrphanedGlyph(e)?!1:lt.toArray(e.childNodes).every(t1)}function xn(e){return e.parentNode}function YP(e,t){const r=new Zg.SemanticSkeleton(t);e.setAttribute(Ct.Attribute.COLLAPSED,r.toString())}function wx(e){if(e.mathml.length)return ts(e);const t=pd.implicit?Lx(e):Ct.addMrow();return e.mathml=[t],t}function Rx(e){if(lt.tagName(e)!==BP.MMLTAGS.MFENCED)return e;const t=Ct.addMrow();for(let r=0,n;n=e.attributes[r];r++)["open","close","separators"].indexOf(n.name)===-1&&t.setAttribute(n.name,n.value);return lt.toArray(e.childNodes).forEach(function(r){t.appendChild(r)}),lt.replaceNode(e,t),t}function Lx(e){const t=lt.createElement("mo"),r=lt.createTextNode(e.textContent);return t.appendChild(r),Ct.setAttributes(t,e),t.setAttribute(Ct.Attribute.ADDED,"true"),t}function Ix(e,t){const r=e.type+(e.textContent?","+e.textContent:"");t.forEach(function(n){yl(n).setAttribute(Ct.Attribute.OPERATOR,r)})}function yl(e){const t=lt.toArray(e.childNodes);if(!t)return e;const r=t.filter(function(o){return!t1(o)}),n=[];for(let o=0,i;i=r[o];o++)if(jr.hasEmptyTag(i)&&i.getAttribute(Ct.Attribute.TYPE)!==Qg.SemanticType.PUNCTUATION){const a=yl(i);a&&a!==i&&n.push(a)}else n.push(i);return n.length===1?n[0]:e}function r1(e,t,r=!1){const n=Ct.removeAttributePrefix(lt.formatXml(e.toString()));return r?t+":\n```html\n"+n+"\n```\n":n}function QP(e,t){const r=!!t,n=t||[],o=e.parent,i=e.contentNodes.map(function(s){return s.id});i.unshift("c");const a=[e.id,i];for(let s=0,c;c=e.childNodes[s];s++){const l=ts(c);n.push(l);const u=yl(l);o&&!r&&u.setAttribute(Ct.Attribute.PARENT,o.id.toString()),a.push(c.id)}return a}var hd={},Tr={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.AbstractEnrichCase=void 0;class ZP{constructor(t){this.semantic=t}}Tr.AbstractEnrichCase=ZP,Object.defineProperty(hd,"__esModule",{value:!0}),hd.CaseBinomial=void 0;const e3=he,Px=Se,t3=Tr,r3=ct,n1=Ie;class n3 extends t3.AbstractEnrichCase{static test(t){return!t.mathmlTree&&t.type===Px.SemanticType.LINE&&t.role===Px.SemanticRole.BINOMIAL}constructor(t){super(t),this.mml=t.mathmlTree}getMathml(){if(!this.semantic.childNodes.length)return this.mml;const t=this.semantic.childNodes[0];if(this.mml=(0,r3.walkTree)(t),this.mml.hasAttribute(n1.Attribute.TYPE)){const r=(0,n1.addMrow)();e3.replaceNode(this.mml,r),r.appendChild(this.mml),this.mml=r}return(0,n1.setAttributes)(this.mml,this.semantic),this.mml}}hd.CaseBinomial=n3;var gl={};Object.defineProperty(gl,"__esModule",{value:!0}),gl.CaseDoubleScript=void 0;const o3=he,kx=Se,Bx=je,i3=Tr,bl=ct,rs=Ie;class a3 extends i3.AbstractEnrichCase{static test(t){if(!t.mathmlTree||!t.childNodes.length)return!1;const r=o3.tagName(t.mathmlTree),n=t.childNodes[0].role;return r===Bx.MMLTAGS.MSUBSUP&&n===kx.SemanticRole.SUBSUP||r===Bx.MMLTAGS.MUNDEROVER&&n===kx.SemanticRole.UNDEROVER}constructor(t){super(t),this.mml=t.mathmlTree}getMathml(){const t=this.semantic.childNodes[0],r=t.childNodes[0],n=this.semantic.childNodes[1],o=t.childNodes[1],i=bl.walkTree(n),a=bl.walkTree(r),s=bl.walkTree(o);return(0,rs.setAttributes)(this.mml,this.semantic),this.mml.setAttribute(rs.Attribute.CHILDREN,(0,rs.makeIdList)([r,o,n])),[a,s,i].forEach(c=>bl.getInnerNode(c).setAttribute(rs.Attribute.PARENT,this.mml.getAttribute(rs.Attribute.ID))),this.mml.setAttribute(rs.Attribute.TYPE,t.role),bl.addCollapsedAttribute(this.mml,[this.semantic.id,[t.id,r.id,o.id],n.id]),this.mml}}gl.CaseDoubleScript=a3;var fd={},vl={},Sl={};Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.CaseMultiindex=void 0;const md=he,Dx=Se,s3=je,c3=Tr,yd=ct,ns=Ie;class o1 extends c3.AbstractEnrichCase{static multiscriptIndex(t){return t.type===Dx.SemanticType.PUNCTUATED&&t.contentNodes[0].role===Dx.SemanticRole.DUMMY?yd.collapsePunctuated(t):(yd.walkTree(t),t.id)}static createNone_(t){const r=md.createElement("none");return t&&(0,ns.setAttributes)(r,t),r.setAttribute(ns.Attribute.ADDED,"true"),r}constructor(t){super(t),this.mml=t.mathmlTree}completeMultiscript(t,r){const n=md.toArray(this.mml.childNodes).slice(1);let o=0;const i=a=>{for(const s of a){const c=n[o];if(c&&s===parseInt(c.getAttribute(ns.Attribute.ID)))c.setAttribute(ns.Attribute.PARENT,this.semantic.id.toString()),o++;else if(!c||s!==parseInt(yd.getInnerNode(c).getAttribute(ns.Attribute.ID))){const l=this.semantic.querySelectorAll(u=>u.id===s);this.mml.insertBefore(o1.createNone_(l[0]),c||null)}else yd.getInnerNode(c).setAttribute(ns.Attribute.PARENT,this.semantic.id.toString()),o++}};i(t),n[o]&&md.tagName(n[o])!==s3.MMLTAGS.MPRESCRIPTS?this.mml.insertBefore(n[o],md.createElement("mprescripts")):o++,i(r)}}Sl.CaseMultiindex=o1,Object.defineProperty(vl,"__esModule",{value:!0}),vl.CaseMultiscripts=void 0;const l3=he,i1=Se,jx=Zn,u3=je,gd=Sl,bd=ct,vd=Ie;class p3 extends gd.CaseMultiindex{static test(t){return t.mathmlTree?l3.tagName(t.mathmlTree)===u3.MMLTAGS.MMULTISCRIPTS&&(t.type===i1.SemanticType.SUPERSCRIPT||t.type===i1.SemanticType.SUBSCRIPT):!1}constructor(t){super(t)}getMathml(){(0,vd.setAttributes)(this.mml,this.semantic);let t,r,n;if(this.semantic.childNodes[0]&&this.semantic.childNodes[0].role===i1.SemanticRole.SUBSUP){const a=this.semantic.childNodes[0];t=a.childNodes[0],r=gd.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]),n=gd.CaseMultiindex.multiscriptIndex(a.childNodes[1]);const s=[this.semantic.id,[a.id,t.id,n],r];bd.addCollapsedAttribute(this.mml,s),this.mml.setAttribute(vd.Attribute.TYPE,a.role),this.completeMultiscript(jx.SemanticSkeleton.interleaveIds(n,r),[])}else{t=this.semantic.childNodes[0],r=gd.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]);const a=[this.semantic.id,t.id,r];bd.addCollapsedAttribute(this.mml,a)}const o=jx.SemanticSkeleton.collapsedLeafs(n||[],r),i=bd.walkTree(t);return bd.getInnerNode(i).setAttribute(vd.Attribute.PARENT,this.semantic.id.toString()),o.unshift(t.id),this.mml.setAttribute(vd.Attribute.CHILDREN,o.join(",")),this.mml}}vl.CaseMultiscripts=p3;var El={};Object.defineProperty(El,"__esModule",{value:!0}),El.CaseTensor=void 0;const d3=Se,a1=Zn,xl=Sl,Fx=ct,Ux=Ie;class h3 extends xl.CaseMultiindex{static test(t){return!!t.mathmlTree&&t.type===d3.SemanticType.TENSOR}constructor(t){super(t)}getMathml(){Fx.walkTree(this.semantic.childNodes[0]);const t=xl.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]),r=xl.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[2]),n=xl.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[3]),o=xl.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[4]);(0,Ux.setAttributes)(this.mml,this.semantic);const i=[this.semantic.id,this.semantic.childNodes[0].id,t,r,n,o];Fx.addCollapsedAttribute(this.mml,i);const a=a1.SemanticSkeleton.collapsedLeafs(t,r,n,o);return a.unshift(this.semantic.childNodes[0].id),this.mml.setAttribute(Ux.Attribute.CHILDREN,a.join(",")),this.completeMultiscript(a1.SemanticSkeleton.interleaveIds(n,o),a1.SemanticSkeleton.interleaveIds(t,r)),this.mml}}El.CaseTensor=h3,Object.defineProperty(fd,"__esModule",{value:!0}),fd.CaseEmbellished=void 0;const Ai=he,eo=Se,f3=Ta,Hx=je,m3=Tr,y3=gl,g3=vl,b3=El,os=ct,Po=Ie;class is extends m3.AbstractEnrichCase{static test(t){return!!(t.mathmlTree&&t.fencePointer&&!t.mathmlTree.getAttribute("data-semantic-type"))}static makeEmptyNode_(t){const r=(0,Po.addMrow)(),n=new f3.SemanticNode(t);return n.type=eo.SemanticType.EMPTY,n.mathmlTree=r,n}static fencedMap_(t,r){r[t.id]=t.mathmlTree,t.embellished&&is.fencedMap_(t.childNodes[0],r)}constructor(t){super(t),this.fenced=null,this.fencedMml=null,this.fencedMmlNodes=[],this.ofence=null,this.ofenceMml=null,this.ofenceMap={},this.cfence=null,this.cfenceMml=null,this.cfenceMap={},this.parentCleanup=[]}getMathml(){return this.getFenced_(),this.fencedMml=os.walkTree(this.fenced),this.getFencesMml_(),this.fenced.type===eo.SemanticType.EMPTY&&!this.fencedMml.parentNode&&(this.fencedMml.setAttribute(Po.Attribute.ADDED,"true"),this.cfenceMml.parentNode.insertBefore(this.fencedMml,this.cfenceMml)),this.getFencedMml_(),this.rewrite_()}fencedElement(t){return t.type===eo.SemanticType.FENCED||t.type===eo.SemanticType.MATRIX||t.type===eo.SemanticType.VECTOR}getFenced_(){let t=this.semantic;for(;!this.fencedElement(t);)t=t.childNodes[0];this.fenced=t.childNodes[0],this.ofence=t.contentNodes[0],this.cfence=t.contentNodes[1],is.fencedMap_(this.ofence,this.ofenceMap),is.fencedMap_(this.cfence,this.cfenceMap)}getFencedMml_(){let t=this.ofenceMml.nextSibling;for(t=t===this.fencedMml?t:this.fencedMml;t&&t!==this.cfenceMml;)this.fencedMmlNodes.push(t),t=t.nextSibling}getFencesMml_(){let t=this.semantic;const r=Object.keys(this.ofenceMap),n=Object.keys(this.cfenceMap);for(;(!this.ofenceMml||!this.cfenceMml)&&t!==this.fenced;)r.indexOf(t.fencePointer)!==-1&&!this.ofenceMml&&(this.ofenceMml=t.mathmlTree),n.indexOf(t.fencePointer)!==-1&&!this.cfenceMml&&(this.cfenceMml=t.mathmlTree),t=t.childNodes[0];this.ofenceMml||(this.ofenceMml=this.ofence.mathmlTree),this.cfenceMml||(this.cfenceMml=this.cfence.mathmlTree),this.ofenceMml&&(this.ofenceMml=os.ascendNewNode(this.ofenceMml)),this.cfenceMml&&(this.cfenceMml=os.ascendNewNode(this.cfenceMml))}rewrite_(){let t=this.semantic,r=null;const n=this.introduceNewLayer_();for((0,Po.setAttributes)(n,this.fenced.parent);!this.fencedElement(t);){const o=t.mathmlTree,i=this.specialCase_(t,o);if(i)t=i;else{(0,Po.setAttributes)(o,t);const c=[];for(let l=1,u;u=t.childNodes[l];l++)c.push(os.walkTree(u));t=t.childNodes[0]}const a=Ai.createElement("dummy"),s=o.childNodes[0];Ai.replaceNode(o,a),Ai.replaceNode(n,o),Ai.replaceNode(o.childNodes[0],n),Ai.replaceNode(a,s),r||(r=o)}return os.walkTree(this.ofence),os.walkTree(this.cfence),this.cleanupParents_(),r||n}specialCase_(t,r){const n=Ai.tagName(r);let o=null,i;if(n===Hx.MMLTAGS.MSUBSUP?(o=t.childNodes[0],i=y3.CaseDoubleScript):n===Hx.MMLTAGS.MMULTISCRIPTS&&(t.type===eo.SemanticType.SUPERSCRIPT||t.type===eo.SemanticType.SUBSCRIPT?i=g3.CaseMultiscripts:t.type===eo.SemanticType.TENSOR&&(i=b3.CaseTensor),i&&t.childNodes[0]&&t.childNodes[0].role===eo.SemanticRole.SUBSUP?o=t.childNodes[0]:o=t),!o)return null;const a=o.childNodes[0],s=is.makeEmptyNode_(a.id);return o.childNodes[0]=s,r=new i(t).getMathml(),o.childNodes[0]=a,this.parentCleanup.push(r),o.childNodes[0]}introduceNewLayer_(){const t=this.fullFence(this.ofenceMml),r=this.fullFence(this.cfenceMml);let n=(0,Po.addMrow)();if(Ai.replaceNode(this.fencedMml,n),this.fencedMmlNodes.forEach(o=>n.appendChild(o)),n.insertBefore(t,this.fencedMml),n.appendChild(r),!n.parentNode){const o=(0,Po.addMrow)();for(;n.childNodes.length>0;)o.appendChild(n.childNodes[0]);n.appendChild(o),n=o}return n}fullFence(t){const r=this.fencedMml.parentNode;let n=t;for(;n.parentNode&&n.parentNode!==r;)n=n.parentNode;return n}cleanupParents_(){this.parentCleanup.forEach(function(t){const r=t.childNodes[1].getAttribute(Po.Attribute.PARENT);t.childNodes[0].setAttribute(Po.Attribute.PARENT,r)})}}fd.CaseEmbellished=is;var Sd={};Object.defineProperty(Sd,"__esModule",{value:!0}),Sd.CaseEmpheq=void 0;const qx=je,v3=Tr,Ml=ct,Ol=Ie,Gx=he;class S3 extends v3.AbstractEnrichCase{static test(t){return!!t.mathmlTree&&t.hasAnnotation("Emph","top")}constructor(t){super(t),this.mrows=[],this.mml=t.mathmlTree}getMathml(){if(this.recurseToTable(this.semantic),this.mrows.length){const t=(0,Ol.addMrow)();this.mml.parentNode.insertBefore(t,this.mml);for(const r of this.mrows)t.appendChild(r);t.appendChild(this.mml)}return this.mml}recurseToTable(t){var r,n;if(!(t.hasAnnotation("Emph","top")||t.hasAnnotation("Emph","fence"))&&(t.hasAnnotation("Emph","left")||t.hasAnnotation("Emph","right"))){Ml.walkTree(t);return}if(!t.mathmlTree||Gx.tagName(t.mathmlTree)===qx.MMLTAGS.MTABLE&&!((r=t.annotation.Emph)===null||r===void 0)&&r.length&&t.annotation.Emph[0]!=="table"){const o=(0,Ol.addMrow)();(0,Ol.setAttributes)(o,t),this.mrows.unshift(o)}else{if(Gx.tagName(t.mathmlTree)===qx.MMLTAGS.MTABLE&&!((n=t.annotation.Emph)===null||n===void 0)&&n.length&&t.annotation.Emph[0]==="table"){this.finalizeTable(t);return}(0,Ol.setAttributes)(t.mathmlTree,t)}if(t.childNodes.forEach(this.recurseToTable.bind(this)),t.textContent||t.type==="punctuated"){const o=t.contentNodes.map(i=>{const a=Ml.cloneContentNode(i);return a.hasAttribute("data-semantic-added")?this.mrows.unshift(a):this.recurseToTable(i),a});Ml.setOperatorAttribute(t,o);return}t.contentNodes.forEach(this.recurseToTable.bind(this))}finalizeTable(t){(0,Ol.setAttributes)(t.mathmlTree,t),t.contentNodes.forEach(r=>{Ml.walkTree(r)}),t.childNodes.forEach(r=>{Ml.walkTree(r)})}}Sd.CaseEmpheq=S3;var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.CaseLimit=void 0;const E3=he,xd=Se,as=je,x3=Tr,Xx=ct,M3=Ie;class s1 extends x3.AbstractEnrichCase{static test(t){if(!t.mathmlTree||!t.childNodes.length)return!1;const r=E3.tagName(t.mathmlTree),n=t.type;return(n===xd.SemanticType.LIMUPPER||n===xd.SemanticType.LIMLOWER)&&(r===as.MMLTAGS.MSUBSUP||r===as.MMLTAGS.MUNDEROVER)||n===xd.SemanticType.LIMBOTH&&(r===as.MMLTAGS.MSUB||r===as.MMLTAGS.MUNDER||r===as.MMLTAGS.MSUP||r===as.MMLTAGS.MOVER)}static walkTree_(t){t&&Xx.walkTree(t)}constructor(t){super(t),this.mml=t.mathmlTree}getMathml(){const t=this.semantic.childNodes;return this.semantic.type!==xd.SemanticType.LIMBOTH&&this.mml.childNodes.length>=3&&(this.mml=Xx.introduceNewLayer([this.mml],this.semantic)),(0,M3.setAttributes)(this.mml,this.semantic),t[0].mathmlTree||(t[0].mathmlTree=this.semantic.mathmlTree),t.forEach(s1.walkTree_),this.mml}}Ed.CaseLimit=s1;var Md={};Object.defineProperty(Md,"__esModule",{value:!0}),Md.CaseLine=void 0;const O3=Se,A3=Tr,Vx=ct,T3=Ie;class C3 extends A3.AbstractEnrichCase{static test(t){return!!t.mathmlTree&&t.type===O3.SemanticType.LINE}constructor(t){super(t),this.mml=t.mathmlTree}getMathml(){return this.semantic.contentNodes.length&&Vx.walkTree(this.semantic.contentNodes[0]),this.semantic.childNodes.length&&Vx.walkTree(this.semantic.childNodes[0]),(0,T3.setAttributes)(this.mml,this.semantic),this.mml}}Md.CaseLine=C3;var Od={};Object.defineProperty(Od,"__esModule",{value:!0}),Od.CaseProof=void 0;const Wx=Se,N3=Tr,$x=ct,zx=Ie;class _3 extends N3.AbstractEnrichCase{static test(t){return!!t.mathmlTree&&(t.type===Wx.SemanticType.INFERENCE||t.type===Wx.SemanticType.PREMISES)}constructor(t){super(t),this.mml=t.mathmlTree}getMathml(){return this.semantic.childNodes.length?(this.semantic.contentNodes.forEach(function(t){$x.walkTree(t),(0,zx.setAttributes)(t.mathmlTree,t)}),this.semantic.childNodes.forEach(function(t){$x.walkTree(t)}),(0,zx.setAttributes)(this.mml,this.semantic),this.mml.getAttribute("data-semantic-id")===this.mml.getAttribute("data-semantic-parent")&&this.mml.removeAttribute("data-semantic-parent"),this.mml):this.mml}}Od.CaseProof=_3;var Ad={};Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.CaseTable=void 0;const w3=he,c1=Se,R3=je,L3=Tr,ss=ct,I3=Ie;class P3 extends L3.AbstractEnrichCase{static test(t){return t.type===c1.SemanticType.MATRIX||t.type===c1.SemanticType.VECTOR||t.type===c1.SemanticType.CASES}constructor(t){super(t),this.inner=[],this.mml=t.mathmlTree}getMathml(){const t=ss.cloneContentNode(this.semantic.contentNodes[0]),r=this.semantic.contentNodes[1]?ss.cloneContentNode(this.semantic.contentNodes[1]):null;if(this.inner=this.semantic.childNodes.map(ss.walkTree),!this.mml)this.mml=ss.introduceNewLayer([t].concat(this.inner,[r]),this.semantic);else if(w3.tagName(this.mml)===R3.MMLTAGS.MFENCED){const n=this.mml.childNodes;this.mml.insertBefore(t,n[0]||null),r&&this.mml.appendChild(r),this.mml=ss.rewriteMfenced(this.mml)}else{const n=[t,this.mml];r&&n.push(r),this.mml=ss.introduceNewLayer(n,this.semantic)}return(0,I3.setAttributes)(this.mml,this.semantic),this.mml}}Ad.CaseTable=P3;var Td={};Object.defineProperty(Td,"__esModule",{value:!0}),Td.CaseText=void 0;const l1=Se,k3=Tr,u1=ct,Kx=Ie;class B3 extends k3.AbstractEnrichCase{static test(t){return t.type===l1.SemanticType.PUNCTUATED&&(t.role===l1.SemanticRole.TEXT||t.contentNodes.every(r=>r.role===l1.SemanticRole.DUMMY))}constructor(t){super(t),this.mml=t.mathmlTree}getMathml(){const t=[],r=u1.collapsePunctuated(this.semantic,t);return this.mml=u1.introduceNewLayer(t,this.semantic),(0,Kx.setAttributes)(this.mml,this.semantic),this.mml.removeAttribute(Kx.Attribute.CONTENT),u1.addCollapsedAttribute(this.mml,r),this.mml}}Td.CaseText=B3;const Jx=hd,Yx=gl,Qx=fd,Zx=Sd,eM=Ed,tM=Md,rM=vl,nM=Od,oM=Ad,iM=El,aM=Td;ud.factory.push({test:eM.CaseLimit.test,constr:e=>new eM.CaseLimit(e)},{test:Qx.CaseEmbellished.test,constr:e=>new Qx.CaseEmbellished(e)},{test:Yx.CaseDoubleScript.test,constr:e=>new Yx.CaseDoubleScript(e)},{test:iM.CaseTensor.test,constr:e=>new iM.CaseTensor(e)},{test:rM.CaseMultiscripts.test,constr:e=>new rM.CaseMultiscripts(e)},{test:tM.CaseLine.test,constr:e=>new tM.CaseLine(e)},{test:Jx.CaseBinomial.test,constr:e=>new Jx.CaseBinomial(e)},{test:nM.CaseProof.test,constr:e=>new nM.CaseProof(e)},{test:Zx.CaseEmpheq.test,constr:e=>new Zx.CaseEmpheq(e)},{test:oM.CaseTable.test,constr:e=>new oM.CaseTable(e)},{test:aM.CaseText.test,constr:e=>new aM.CaseText(e)}),Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.semanticMathmlNode=d1,Mi.semanticMathmlSync=cM,Mi.semanticMathml=U3,Mi.testTranslation=H3,Mi.prepareMmlString=lM;const sM=$r,p1=he,D3=Oe,j3=Ja,F3=ct;function d1(e){const t=p1.cloneNode(e),r=j3.getTree(t);return F3.enrich(t,r)}function cM(e){return d1(p1.parseInput(e))}function U3(e,t){D3.EnginePromise.getall().then(()=>{t(d1(p1.parseInput(e)))})}function H3(e){sM.Debugger.getInstance().init();const t=cM(lM(e));return sM.Debugger.getInstance().exit(),t}function lM(e){return e.match(/^<math/)||(e="<math>"+e),e.match(/\/math>$/)||(e+="</math>"),e}var cs={},Cd={},ls={},Ti={};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.AbstractHighlighter=void 0;const h1=Rt,Nd=Ie;let q3=0;class G3{constructor(){this.counter=q3++,this.ATTR="sre-highlight-"+this.counter.toString(),this.color=null,this.mactionName="",this.currentHighlights=[]}highlight(t){this.currentHighlights.push(t.map(r=>{const n=this.highlightNode(r);return this.setHighlighted(r),n}))}highlightAll(t){const r=this.getMactionNodes(t);for(let n=0,o;o=r[n];n++)this.highlight([o])}unhighlight(){const t=this.currentHighlights.pop();t&&t.forEach(r=>{this.isHighlighted(r.node)&&(this.unhighlightNode(r),this.unsetHighlighted(r.node))})}unhighlightAll(){for(;this.currentHighlights.length>0;)this.unhighlight()}setColor(t){this.color=t}colorString(){return this.color.rgba()}addEvents(t,r){const n=this.getMactionNodes(t);for(let o=0,i;i=n[o];o++)for(const[a,s]of Object.entries(r))i.addEventListener(a,s)}getMactionNodes(t){return Array.from(t.getElementsByClassName(this.mactionName))}isMactionNode(t){const r=t.className||t.getAttribute("class");return r?!!r.match(new RegExp(this.mactionName)):!1}isHighlighted(t){return t.hasAttribute(this.ATTR)}setHighlighted(t){t.setAttribute(this.ATTR,"true")}unsetHighlighted(t){t.removeAttribute(this.ATTR)}colorizeAll(t){h1.updateEvaluator(t),h1.evalXPath(`.//*[@${Nd.Attribute.ID}]`,t).forEach(r=>this.colorize(r))}uncolorizeAll(t){h1.evalXPath(`.//*[@${Nd.Attribute.ID}]`,t).forEach(r=>this.uncolorize(r))}colorize(t){const r=(0,Nd.addPrefix)("foreground");t.hasAttribute(r)&&(t.setAttribute(r+"-old",t.style.color),t.style.color=t.getAttribute(r))}uncolorize(t){const r=(0,Nd.addPrefix)("foreground")+"-old";t.hasAttribute(r)&&(t.style.color=t.getAttribute(r))}}Ti.AbstractHighlighter=G3,Object.defineProperty(ls,"__esModule",{value:!0}),ls.CssHighlighter=void 0;const X3=Ti;class V3 extends X3.AbstractHighlighter{constructor(){super(),this.mactionName="mjx-maction"}highlightNode(t){const r={node:t,background:t.style.backgroundColor,foreground:t.style.color};if(!this.isHighlighted(t)){const n=this.colorString();t.style.backgroundColor=n.background,t.style.color=n.foreground}return r}unhighlightNode(t){t.node.style.backgroundColor=t.background,t.node.style.color=t.foreground}}ls.CssHighlighter=V3,Object.defineProperty(Cd,"__esModule",{value:!0}),Cd.ChtmlHighlighter=void 0;const W3=ls;class $3 extends W3.CssHighlighter{constructor(){super()}isMactionNode(t){var r;return((r=t.tagName)===null||r===void 0?void 0:r.toUpperCase())===this.mactionName.toUpperCase()}getMactionNodes(t){return Array.from(t.getElementsByTagName(this.mactionName))}}Cd.ChtmlHighlighter=$3;var ko={};Object.defineProperty(ko,"__esModule",{value:!0}),ko.ContrastPicker=ko.ColorPicker=void 0;const uM={red:{red:255,green:0,blue:0},green:{red:0,green:255,blue:0},blue:{red:0,green:0,blue:255},yellow:{red:255,green:255,blue:0},cyan:{red:0,green:255,blue:255},magenta:{red:255,green:0,blue:255},white:{red:255,green:255,blue:255},black:{red:0,green:0,blue:0}};function pM(e,t){const r=e||{color:t};let n=Object.prototype.hasOwnProperty.call(r,"color")?uM[r.color]:r;return n||(n=uM[t]),n.alpha=Object.prototype.hasOwnProperty.call(r,"alpha")?r.alpha:1,z3(n)}function z3(e){const t=r=>(r=Math.max(r,0),r=Math.min(255,r),Math.round(r));return e.red=t(e.red),e.green=t(e.green),e.blue=t(e.blue),e.alpha=Math.max(e.alpha,0),e.alpha=Math.min(1,e.alpha),e}class to{static toHex(t){const r=t.toString(16);return r.length===1?"0"+r:r}constructor(t,r){this.foreground=pM(r,to.DEFAULT_FOREGROUND_),this.background=pM(t,to.DEFAULT_BACKGROUND_)}rgba(){const t=function(r){return"rgba("+r.red+","+r.green+","+r.blue+","+r.alpha+")"};return{background:t(this.background),foreground:t(this.foreground)}}rgb(){const t=function(r){return"rgb("+r.red+","+r.green+","+r.blue+")"};return{background:t(this.background),alphaback:this.background.alpha.toString(),foreground:t(this.foreground),alphafore:this.foreground.alpha.toString()}}hex(){const t=function(r){return"#"+to.toHex(r.red)+to.toHex(r.green)+to.toHex(r.blue)};return{background:t(this.background),alphaback:this.background.alpha.toString(),foreground:t(this.foreground),alphafore:this.foreground.alpha.toString()}}}ko.ColorPicker=to,to.DEFAULT_BACKGROUND_="blue",to.DEFAULT_FOREGROUND_="black";function K3(e,t,r){t=t>1?t/100:t,r=r>1?r/100:r;const n=(1-Math.abs(2*r-1))*t,o=n*(1-Math.abs(e/60%2-1)),i=r-n/2;let a=0,s=0,c=0;return 0<=e&&e<60?[a,s,c]=[n,o,0]:60<=e&&e<120?[a,s,c]=[o,n,0]:120<=e&&e<180?[a,s,c]=[0,n,o]:180<=e&&e<240?[a,s,c]=[0,o,n]:240<=e&&e<300?[a,s,c]=[o,0,n]:300<=e&&e<360&&([a,s,c]=[n,0,o]),{red:a+i,green:s+i,blue:c+i}}function J3(e){return{red:Math.round(255*e.red),green:Math.round(255*e.green),blue:Math.round(255*e.blue)}}function Y3(e){return"rgb("+e.red+","+e.green+","+e.blue+")"}class Q3{constructor(){this.hue=10,this.sat=100,this.light=50,this.incr=50}generate(){return Y3(J3(K3(this.hue,this.sat,this.light)))}increment(){this.hue=(this.hue+this.incr)%360}}ko.ContrastPicker=Q3;var _d={};Object.defineProperty(_d,"__esModule",{value:!0}),_d.HtmlHighlighter=void 0;const Z3=he,e7=Ti;class t7 extends e7.AbstractHighlighter{constructor(){super(),this.mactionName="maction"}highlightNode(t){const r={node:t,foreground:t.style.color,position:t.style.position},n=this.color.rgb();t.style.color=n.foreground,t.style.position="relative";const o=t.bbox;if(o&&o.w){const i=Z3.createElement("span"),a=parseFloat(t.style.paddingLeft||"0");i.style.backgroundColor=n.background,i.style.opacity=n.alphaback.toString(),i.style.display="inline-block",i.style.height=o.h+o.d+.1+"em",i.style.verticalAlign=-o.d+"em",i.style.marginTop=i.style.marginBottom="-0.05em",i.style.width=o.w+0+"em",i.style.marginLeft=a-0+"em",i.style.marginRight=-o.w-0-a+"em",t.parentNode.insertBefore(i,t),r.box=i}return r}unhighlightNode(t){const r=t.node;r.style.color=t.foreground,r.style.position=t.position,t.box&&t.box.parentNode.removeChild(t.box)}}_d.HtmlHighlighter=t7;var wd={};Object.defineProperty(wd,"__esModule",{value:!0}),wd.MmlCssHighlighter=void 0;const r7=ls;class n7 extends r7.CssHighlighter{constructor(){super(),this.mactionName="maction"}getMactionNodes(t){return Array.from(t.getElementsByTagName(this.mactionName))}isMactionNode(t){return t.tagName===this.mactionName}}wd.MmlCssHighlighter=n7;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0}),Rd.MmlHighlighter=void 0;const o7=Ti;class i7 extends o7.AbstractHighlighter{constructor(){super(),this.mactionName="maction"}highlightNode(t){let r=t.getAttribute("style");return r+=";background-color: "+this.colorString().background,r+=";color: "+this.colorString().foreground,t.setAttribute("style",r),{node:t}}unhighlightNode(t){let r=t.node.getAttribute("style");r=r.replace(";background-color: "+this.colorString().background,""),r=r.replace(";color: "+this.colorString().foreground,""),t.node.setAttribute("style",r)}colorString(){return this.color.rgba()}getMactionNodes(t){return Array.from(t.getElementsByTagName(this.mactionName))}isMactionNode(t){return t.tagName===this.mactionName}}Rd.MmlHighlighter=i7;var Al={};Object.defineProperty(Al,"__esModule",{value:!0}),Al.SvgHighlighter=void 0;const dM=he,a7=Ti;class s7 extends a7.AbstractHighlighter{constructor(){super(),this.mactionName="mjx-svg-maction"}highlightNode(t){let r;if(this.isHighlighted(t))return r={node:t.previousSibling||t,background:t.style.backgroundColor,foreground:t.style.color},r;if(t.tagName==="svg"){const s={node:t,background:t.style.backgroundColor,foreground:t.style.color};return t.style.backgroundColor=this.colorString().background,t.style.color=this.colorString().foreground,s}const n=dM.createElementNS("http://www.w3.org/2000/svg","rect"),o=40;let i;if(t.nodeName==="use"){const s=dM.createElementNS("http://www.w3.org/2000/svg","g");t.parentNode.insertBefore(s,t),s.appendChild(t),i=s.getBBox(),s.parentNode.replaceChild(t,s)}else i=t.getBBox();n.setAttribute("x",(i.x-o).toString()),n.setAttribute("y",(i.y-o).toString()),n.setAttribute("width",(i.width+80).toString()),n.setAttribute("height",(i.height+80).toString());const a=t.getAttribute("transform");return a&&n.setAttribute("transform",a),n.setAttribute("fill",this.colorString().background),n.setAttribute(this.ATTR,"true"),t.parentNode.insertBefore(n,t),r={node:n,foreground:t.getAttribute("fill")},t.setAttribute("fill",this.colorString().foreground),r}setHighlighted(t){t.tagName==="svg"&&super.setHighlighted(t)}unhighlightNode(t){if("background"in t){t.node.style.backgroundColor=t.background,t.node.style.color=t.foreground;return}t.foreground?t.node.nextSibling.setAttribute("fill",t.foreground):t.node.nextSibling.removeAttribute("fill"),t.node.parentNode.removeChild(t.node)}isMactionNode(t){let r=t.className||t.getAttribute("class");return r?(r=r.baseVal!==void 0?r.baseVal:r,r?!!r.match(new RegExp(this.mactionName)):!1):!1}}Al.SvgHighlighter=s7;var Ld={};Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.SvgV3Highlighter=void 0;const c7=he,l7=Rt,u7=ko,p7=Al;class d7 extends p7.SvgHighlighter{constructor(){super(),this.mactionName="maction"}highlightNode(t){let r;if(this.isHighlighted(t))return r={node:t,background:this.colorString().background,foreground:this.colorString().foreground},r;if(t.tagName==="svg"||t.tagName==="MJX-CONTAINER")return r={node:t,background:t.style.backgroundColor,foreground:t.style.color},t.style.backgroundColor=this.colorString().background,t.style.color=this.colorString().foreground,r;const n=c7.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("sre-highlighter-added","true");const o=40,i=t.getBBox();n.setAttribute("x",(i.x-o).toString()),n.setAttribute("y",(i.y-o).toString()),n.setAttribute("width",(i.width+80).toString()),n.setAttribute("height",(i.height+80).toString());const a=t.getAttribute("transform");if(a&&n.setAttribute("transform",a),n.setAttribute("fill",this.colorString().background),t.setAttribute(this.ATTR,"true"),t.parentNode.insertBefore(n,t),r={node:t,foreground:t.getAttribute("fill")},t.nodeName==="rect"){const s=new u7.ColorPicker({alpha:0,color:"black"});t.setAttribute("fill",s.rgba().foreground)}else t.setAttribute("fill",this.colorString().foreground);return r}unhighlightNode(t){const r=t.node.previousSibling;if(r&&r.hasAttribute("sre-highlighter-added")){t.foreground?t.node.setAttribute("fill",t.foreground):t.node.removeAttribute("fill"),t.node.parentNode.removeChild(r);return}t.node.style.backgroundColor=t.background,t.node.style.color=t.foreground}isMactionNode(t){return t.getAttribute("data-mml-node")===this.mactionName}getMactionNodes(t){return Array.from(l7.evalXPath(`.//*[@data-mml-node="${this.mactionName}"]`,t))}}Ld.SvgV3Highlighter=d7,Object.defineProperty(cs,"__esModule",{value:!0}),cs.highlighter=S7,cs.update=E7,cs.addEvents=x7;const h7=Cd,hM=ko,f7=ls,m7=_d,y7=wd,g7=Rd,b7=Al,v7=Ld;function S7(e,t,r){const n=new hM.ColorPicker(e,t),o=r.renderer==="NativeMML"&&r.browser==="Safari"?"MML-CSS":r.renderer==="SVG"&&r.browser==="v3"?"SVG-V3":r.renderer,i=new(f1[o]||f1.NativeMML);return i.setColor(n),i}function E7(e,t,r){const n=new hM.ColorPicker(e,t);r.setColor(n)}function x7(e,t,r){const n=f1[r.renderer];n&&new n().addEvents(e,t)}const f1={SVG:b7.SvgHighlighter,"SVG-V3":v7.SvgV3Highlighter,NativeMML:g7.MmlHighlighter,"HTML-CSS":m7.HtmlHighlighter,"MML-CSS":y7.MmlCssHighlighter,CommonHTML:f7.CssHighlighter,CHTML:h7.ChtmlHighlighter};var Tl={},Id={},ro={},Ci={},ar={};Object.defineProperty(ar,"__esModule",{value:!0}),ar.splitAttribute=M7,ar.getAttribute=O7,ar.getSemanticRoot=A7,ar.getBySemanticId=T7,ar.getAllBySemanticId=C7;const m1=he,Bo=Ie;function M7(e){return e?e.split(/,/):[]}function O7(e,t){return e.getAttribute(t)}function A7(e){if(e.hasAttribute(Bo.Attribute.TYPE)&&!e.hasAttribute(Bo.Attribute.PARENT))return e;const t=m1.querySelectorAllByAttr(e,Bo.Attribute.TYPE);for(let r=0,n;n=t[r];r++)if(!n.hasAttribute(Bo.Attribute.PARENT))return n;return e}function T7(e,t){return e.getAttribute(Bo.Attribute.ID)===t?e:m1.querySelectorAllByAttrValue(e,Bo.Attribute.ID,t)[0]}function C7(e,t){return e.getAttribute(Bo.Attribute.ID)===t?[e]:m1.querySelectorAllByAttrValue(e,Bo.Attribute.ID,t)}Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.RebuildStree=void 0;const Fr=Ie,N7=Er,Je=Se,_7=Aa,Cl=Zn,w7=Ya,jt=ar;class us{static textContent(t,r,n){if(!n&&r.textContent){t.textContent=r.textContent;return}const o=jt.splitAttribute(jt.getAttribute(r,Fr.Attribute.OPERATOR));o.length>1&&(t.textContent=o[1])}static isPunctuated(t){return!Cl.SemanticSkeleton.simpleCollapseStructure(t)&&t[1]&&Cl.SemanticSkeleton.contentCollapseStructure(t[1])}constructor(t){this.mathml=t,this.factory=new _7.SemanticNodeFactory,this.nodeDict={},this.mmlRoot=jt.getSemanticRoot(t),this.streeRoot=this.assembleTree(this.mmlRoot),this.stree=w7.SemanticTree.fromNode(this.streeRoot,this.mathml),this.xml=this.stree.xml()}getTree(){return this.stree}assembleTree(t){const r=this.makeNode(t),n=jt.splitAttribute(jt.getAttribute(t,Fr.Attribute.CHILDREN)),o=jt.splitAttribute(jt.getAttribute(t,Fr.Attribute.CONTENT));if(o.length===0&&n.length===0)return us.textContent(r,t),r;if(o.length>0){const a=jt.getBySemanticId(this.mathml,o[0]);a&&us.textContent(r,a,!0)}r.contentNodes=o.map(a=>this.setParent(a,r)),r.childNodes=n.map(a=>this.setParent(a,r));const i=jt.getAttribute(t,Fr.Attribute.COLLAPSED);return i?this.postProcess(r,i):r}makeNode(t){const r=jt.getAttribute(t,Fr.Attribute.TYPE),n=jt.getAttribute(t,Fr.Attribute.ROLE),o=jt.getAttribute(t,Fr.Attribute.FONT),i=jt.getAttribute(t,Fr.Attribute.ANNOTATION)||"",a=jt.getAttribute(t,Fr.Attribute.ATTRIBUTES)||"",s=jt.getAttribute(t,Fr.Attribute.ID),c=jt.getAttribute(t,Fr.Attribute.EMBELLISHED),l=jt.getAttribute(t,Fr.Attribute.FENCEPOINTER),u=this.createNode(parseInt(s,10));return u.type=r,u.role=n,u.font=o||Je.SemanticFont.UNKNOWN,u.parseAnnotation(i),u.parseAttributes(a),l&&(u.fencePointer=l),c&&(u.embellished=c),u}makePunctuation(t){const r=this.createNode(t);return r.updateContent(N7.NamedSymbol.invisibleComma),r.role=Je.SemanticRole.DUMMY,r}makePunctuated(t,r,n){const o=this.createNode(r[0]);o.type=Je.SemanticType.PUNCTUATED,o.embellished=t.embellished,o.fencePointer=t.fencePointer,o.role=n,o.contentNodes=r.splice(1,1)[0].slice(1).map(this.makePunctuation.bind(this)),this.collapsedChildren_(r)}makeEmpty(t,r,n){const o=this.createNode(r);o.type=Je.SemanticType.EMPTY,o.embellished=t.embellished,o.fencePointer=t.fencePointer,o.role=n}makeIndex(t,r,n){if(us.isPunctuated(r)){this.makePunctuated(t,r,n),r=r[0];return}Cl.SemanticSkeleton.simpleCollapseStructure(r)&&!this.nodeDict[r.toString()]&&this.makeEmpty(t,r,n)}postProcess(t,r){const n=Cl.SemanticSkeleton.fromString(r).array;if(t.type===Je.SemanticRole.SUBSUP){const o=this.createNode(n[1][0]);return o.type=Je.SemanticType.SUBSCRIPT,o.role=Je.SemanticRole.SUBSUP,t.type=Je.SemanticType.SUPERSCRIPT,o.embellished=t.embellished,o.fencePointer=t.fencePointer,this.makeIndex(t,n[1][2],Je.SemanticRole.RIGHTSUB),this.makeIndex(t,n[2],Je.SemanticRole.RIGHTSUPER),this.collapsedChildren_(n),t}if(t.type===Je.SemanticType.SUBSCRIPT)return this.makeIndex(t,n[2],Je.SemanticRole.RIGHTSUB),this.collapsedChildren_(n),t;if(t.type===Je.SemanticType.SUPERSCRIPT)return this.makeIndex(t,n[2],Je.SemanticRole.RIGHTSUPER),this.collapsedChildren_(n),t;if(t.type===Je.SemanticType.TENSOR)return this.makeIndex(t,n[2],Je.SemanticRole.LEFTSUB),this.makeIndex(t,n[3],Je.SemanticRole.LEFTSUPER),this.makeIndex(t,n[4],Je.SemanticRole.RIGHTSUB),this.makeIndex(t,n[5],Je.SemanticRole.RIGHTSUPER),this.collapsedChildren_(n),t;if(t.type===Je.SemanticType.PUNCTUATED)return us.isPunctuated(n)&&(t.contentNodes=n.splice(1,1)[0].slice(1).map(this.makePunctuation.bind(this))),t;if(t.type===Je.SemanticRole.UNDEROVER){const o=this.createNode(n[1][0]);return t.childNodes[1].role===Je.SemanticRole.OVERACCENT?(o.type=Je.SemanticType.OVERSCORE,t.type=Je.SemanticType.UNDERSCORE):(o.type=Je.SemanticType.UNDERSCORE,t.type=Je.SemanticType.OVERSCORE),o.role=Je.SemanticRole.UNDEROVER,o.embellished=t.embellished,o.fencePointer=t.fencePointer,this.collapsedChildren_(n),t}return t}createNode(t){const r=this.factory.makeNode(t);return this.nodeDict[t.toString()]=r,r}collapsedChildren_(t){const r=n=>{const o=this.nodeDict[n[0]];o.childNodes=[];for(let i=1,a=n.length;i<a;i++){const s=n[i];o.childNodes.push(Cl.SemanticSkeleton.simpleCollapseStructure(s)?this.nodeDict[s]:r(s))}return o};r(t)}setParent(t,r){const n=jt.getBySemanticId(this.mathml,t),o=this.assembleTree(n);return o.parent=r,o}}Ci.RebuildStree=us;var tr={};Object.defineProperty(tr,"__esModule",{value:!0}),tr.computeSpeech=Pd,tr.computeMarkup=P7,tr.recomputeMarkup=y1,tr.addSpeech=k7,tr.addModality=B7,tr.addPrefix=D7,tr.retrievePrefix=mM,tr.connectMactions=U7,tr.connectAllMactions=H7,tr.retrieveSummary=q7;const Nl=kr,ps=he,R7=Rt,no=Ie,_l=xa,fM=Ya,L7=ar;function Pd(e){return _l.SpeechRuleEngine.getInstance().evaluateNode(e)}function I7(e){return Pd(fM.SemanticTree.fromNode(e).xml())}function P7(e){const t=Pd(e);return Nl.markup(t)}function y1(e){const t=I7(e);return Nl.markup(t)}function k7(e,t,r){const n=ps.querySelectorAllByAttrValue(r,"id",t.id.toString())[0],o=n?Nl.markup(Pd(n)):y1(t);e.setAttribute(no.Attribute.SPEECH,o)}function B7(e,t,r){const n=y1(t);e.setAttribute(r,n)}function D7(e,t){const r=mM(t);r&&e.setAttribute(no.Attribute.PREFIX,r)}function mM(e){const t=j7(e);return Nl.markup(t)}function j7(e){const t=fM.SemanticTree.fromRoot(e),r=R7.evalXPath('.//*[@id="'+e.id+'"]',t.xml());let n=r[0];return r.length>1&&(n=F7(e,r)||n),n?_l.SpeechRuleEngine.getInstance().runInSetting({modality:"prefix",domain:"default",style:"default",strict:!0,speech:!0},function(){return _l.SpeechRuleEngine.getInstance().evaluateNode(n)}):[]}function F7(e,t){const r=t[0];if(!e.parent)return r;const n=[];for(;e;)n.push(e.id),e=e.parent;const o=function(i,a){for(;a.length&&a.shift().toString()===i.getAttribute("id")&&i.parentNode&&i.parentNode.parentNode;)i=i.parentNode.parentNode;return!a.length};for(let i=0,a;a=t[i];i++)if(o(a,n.slice()))return a;return r}function U7(e,t,r){const n=ps.querySelectorAll(t,"maction");for(let o=0,i;i=n[o];o++){const a=i.getAttribute("id"),s=ps.querySelectorAllByAttrValue(e,"id",a)[0];if(!s)continue;const c=i.childNodes[1],l=c.getAttribute(no.Attribute.ID);let u=L7.getBySemanticId(e,l);if(u&&u.getAttribute(no.Attribute.TYPE)!=="dummy"||(u=s.childNodes[0],u.getAttribute("sre-highlighter-added")))continue;const p=c.getAttribute(no.Attribute.PARENT);p&&u.setAttribute(no.Attribute.PARENT,p),u.setAttribute(no.Attribute.TYPE,"dummy"),u.setAttribute(no.Attribute.ID,l),u.setAttribute("role","treeitem"),u.setAttribute("aria-level",c.getAttribute("aria-level")),ps.querySelectorAllByAttrValue(r,"id",l)[0].setAttribute("alternative",l)}}function H7(e,t){const r=ps.querySelectorAll(e,"maction");for(let n=0,o;o=r[n];n++){const i=o.childNodes[1].getAttribute(no.Attribute.ID);ps.querySelectorAllByAttrValue(t,"id",i)[0].setAttribute("alternative",i)}}function q7(e,t={}){const r=G7(e,t);return Nl.markup(r)}function G7(e,t={}){const r=t.locale?{locale:t.locale}:{};return e?_l.SpeechRuleEngine.getInstance().runInSetting(Object.assign(r,{modality:"summary",strict:!1,speech:!0}),function(){return _l.SpeechRuleEngine.getInstance().evaluateNode(e)}):[]}var wl={};Object.defineProperty(wl,"__esModule",{value:!0}),wl.ClearspeakPreferences=void 0;const g1=Oe,X7=De,Ni=pt,rr=pt,V7=Ea,W7=xa,ue=Se;class Ft extends Ni.DynamicCstr{static comparator(){return new $7(g1.Engine.getInstance().dynamicCstr,rr.DynamicProperties.createProp([Ni.DynamicCstr.DEFAULT_VALUES[rr.Axis.LOCALE]],[Ni.DynamicCstr.DEFAULT_VALUES[rr.Axis.MODALITY]],[Ni.DynamicCstr.DEFAULT_VALUES[rr.Axis.DOMAIN]],[Ni.DynamicCstr.DEFAULT_VALUES[rr.Axis.STYLE]]))}static fromPreference(t){const r=t.split(":"),n={},o=b1.getProperties(),i=Object.keys(o);for(let a=0,s;s=r[a];a++){const c=s.split("_");if(i.indexOf(c[0])===-1)continue;const l=c[1];l&&l!==Ft.AUTO&&o[c[0]].indexOf(l)!==-1&&(n[c[0]]=c[1])}return n}static toPreference(t){const r=Object.keys(t),n=[];for(let o=0;o<r.length;o++)n.push(r[o]+"_"+t[r[o]]);return n.length?n.join(":"):Ni.DynamicCstr.DEFAULT_VALUE}static getLocalePreferences(t){const r=t||V7.enumerate(W7.SpeechRuleEngine.getInstance().enumerate());return Ft.getLocalePreferences_(r)}static currentPreference(){return X7.DOMAIN_TO_STYLES.clearspeak}static relevantPreferences(t){const r=J7[t.type];return r&&(r[t.role]||r[""])||"ImpliedTimes"}static findPreference(t,r){return t==="default"?Ft.AUTO:Ft.fromPreference(t)[r]||Ft.AUTO}static addPreference(t,r,n){if(t==="default")return r+"_"+n;const o=Ft.fromPreference(t);return o[r]=n,Ft.toPreference(o)}static getLocalePreferences_(t){const r={};for(const n of Object.keys(t)){if(!t[n].speech||!t[n].speech.clearspeak)continue;const o=Object.keys(t[n].speech.clearspeak);if(o.length<3)continue;const i=r[n]={};for(const a in b1.getProperties()){const s=b1.getProperties()[a],c=[a+"_Auto"];if(s)for(const l of s)o.indexOf(a+"_"+l)!==-1&&c.push(a+"_"+l);i[a]=c}}return r}constructor(t,r){super(t),this.preference=r}equal(t){if(!super.equal(t))return!1;const r=Object.keys(this.preference),n=t.preference;if(r.length!==Object.keys(n).length)return!1;for(let o=0,i;i=r[o];o++)if(this.preference[i]!==n[i])return!1;return!0}}wl.ClearspeakPreferences=Ft,Ft.AUTO="Auto";const b1=new rr.DynamicProperties({AbsoluteValue:["Auto","AbsEnd","Cardinality","Determinant"],Bar:["Auto","Conjugate"],Caps:["Auto","SayCaps"],CombinationPermutation:["Auto","ChoosePermute"],Currency:["Auto","Position","Prefix"],Ellipses:["Auto","AndSoOn"],Enclosed:["Auto","EndEnclose"],Exponent:["Auto","AfterPower","Ordinal","OrdinalPower","Exponent"],Fraction:["Auto","EndFrac","FracOver","General","GeneralEndFrac","Ordinal","Over","OverEndFrac","Per"],Functions:["Auto","None","Reciprocal"],ImpliedTimes:["Auto","MoreImpliedTimes","None"],Log:["Auto","LnAsNaturalLog"],Matrix:["Auto","Combinatoric","EndMatrix","EndVector","SilentColNum","SpeakColNum","Vector"],MultiLineLabel:["Auto","Case","Constraint","Equation","Line","None","Row","Step"],MultiLineOverview:["Auto","None"],MultiLinePausesBetweenColumns:["Auto","Long","Short"],MultsymbolDot:["Auto","Dot"],MultsymbolX:["Auto","By","Cross"],Paren:["Auto","CoordPoint","Interval","Silent","Speak","SpeakNestingLevel"],Prime:["Auto","Angle","Length"],Roots:["Auto","PosNegSqRoot","PosNegSqRootEnd","RootEnd"],SetMemberSymbol:["Auto","Belongs","Element","Member","In"],Sets:["Auto","SilentBracket","woAll"],TriangleSymbol:["Auto","Delta"],Trig:["Auto","ArcTrig","TrigInverse","Reciprocal"],VerticalLine:["Auto","Divides","Given","SuchThat"]});class $7 extends rr.DefaultComparator{constructor(t,r){super(t,r),this.preference=t instanceof Ft?t.preference:{}}match(t){if(!(t instanceof Ft))return super.match(t);if(t.getComponents()[rr.Axis.STYLE]==="default")return!0;const r=Object.keys(t.preference);for(let n=0,o;o=r[n];n++)if(this.preference[o]!==t.preference[o])return!1;return!0}compare(t,r){const n=super.compare(t,r);if(n!==0)return n;const o=t instanceof Ft,i=r instanceof Ft;if(!o&&i)return 1;if(o&&!i)return-1;if(!o&&!i)return 0;const a=Object.keys(t.preference).length,s=Object.keys(r.preference).length;return a>s?-1:a<s?1:0}}class z7 extends rr.DynamicCstrParser{constructor(){super([rr.Axis.LOCALE,rr.Axis.MODALITY,rr.Axis.DOMAIN,rr.Axis.STYLE])}parse(t){const r=super.parse(t);let n=r.getValue(rr.Axis.STYLE);const o=r.getValue(rr.Axis.LOCALE),i=r.getValue(rr.Axis.MODALITY);let a={};return n!==Ni.DynamicCstr.DEFAULT_VALUE&&(a=this.fromPreference(n),n=this.toPreference(a)),new Ft({locale:o,modality:i,domain:"clearspeak",style:n},a)}fromPreference(t){return Ft.fromPreference(t)}toPreference(t){return Ft.toPreference(t)}}const K7=[["AbsoluteValue",ue.SemanticType.FENCED,ue.SemanticRole.NEUTRAL,ue.SemanticRole.METRIC],["Bar",ue.SemanticType.OVERSCORE,ue.SemanticRole.OVERACCENT],["Caps",ue.SemanticType.IDENTIFIER,ue.SemanticRole.LATINLETTER],["CombinationPermutation",ue.SemanticType.APPL,ue.SemanticRole.UNKNOWN],["Ellipses",ue.SemanticType.PUNCTUATION,ue.SemanticRole.ELLIPSIS],["Exponent",ue.SemanticType.SUPERSCRIPT,""],["Fraction",ue.SemanticType.FRACTION,""],["Functions",ue.SemanticType.APPL,ue.SemanticRole.SIMPLEFUNC],["ImpliedTimes",ue.SemanticType.OPERATOR,ue.SemanticRole.IMPLICIT],["Log",ue.SemanticType.APPL,ue.SemanticRole.PREFIXFUNC],["Matrix",ue.SemanticType.MATRIX,""],["Matrix",ue.SemanticType.VECTOR,""],["MultiLineLabel",ue.SemanticType.MULTILINE,ue.SemanticRole.LABEL],["MultiLineOverview",ue.SemanticType.MULTILINE,ue.SemanticRole.TABLE],["MultiLinePausesBetweenColumns",ue.SemanticType.MULTILINE,ue.SemanticRole.TABLE],["MultiLineLabel",ue.SemanticType.TABLE,ue.SemanticRole.LABEL],["MultiLineOverview",ue.SemanticType.TABLE,ue.SemanticRole.TABLE],["MultiLinePausesBetweenColumns",ue.SemanticType.TABLE,ue.SemanticRole.TABLE],["MultiLineLabel",ue.SemanticType.CASES,ue.SemanticRole.LABEL],["MultiLineOverview",ue.SemanticType.CASES,ue.SemanticRole.TABLE],["MultiLinePausesBetweenColumns",ue.SemanticType.CASES,ue.SemanticRole.TABLE],["MultsymbolDot",ue.SemanticType.OPERATOR,ue.SemanticRole.MULTIPLICATION],["MultsymbolX",ue.SemanticType.OPERATOR,ue.SemanticRole.MULTIPLICATION],["Paren",ue.SemanticType.FENCED,ue.SemanticRole.LEFTRIGHT],["Prime",ue.SemanticType.SUPERSCRIPT,ue.SemanticRole.PRIME],["Roots",ue.SemanticType.ROOT,""],["Roots",ue.SemanticType.SQRT,""],["SetMemberSymbol",ue.SemanticType.RELATION,ue.SemanticRole.ELEMENT],["Sets",ue.SemanticType.FENCED,ue.SemanticRole.SETEXT],["TriangleSymbol",ue.SemanticType.IDENTIFIER,ue.SemanticRole.GREEKLETTER],["Trig",ue.SemanticType.APPL,ue.SemanticRole.PREFIXFUNC],["VerticalLine",ue.SemanticType.PUNCTUATED,ue.SemanticRole.VBAR]],J7=(function(){const e={};for(let t=0,r;r=K7[t];t++){const n=r[0];let o=e[r[1]];o||(o={},e[r[1]]=o),o[r[2]]=n}return e})();g1.Engine.getInstance().comparators.clearspeak=Ft.comparator,g1.Engine.getInstance().parsers.clearspeak=new z7,Object.defineProperty(ro,"__esModule",{value:!0}),ro.AbstractSpeechGenerator=void 0;const Y7=ga,yM=Ie,gM=Ci,Q7=tr,bM=De,v1=Re,Rl=wl;class Z7{constructor(){this.modality=yM.addPrefix("speech"),this.rebuilt_=null,this.options_={}}getRebuilt(){return this.rebuilt_}setRebuilt(t){this.rebuilt_=t}computeRebuilt(t,r=!1){return(!this.rebuilt_||r)&&(this.rebuilt_=new gM.RebuildStree(t)),this.rebuilt_}setOptions(t){this.options_=t||{},this.modality=yM.addPrefix(this.options_.modality||"speech")}setOption(t,r){const n=this.getOptions();n[t]=r,this.setOptions(n)}getOptions(){return this.options_}generateSpeech(t,r){return this.rebuilt_||(this.rebuilt_=new gM.RebuildStree(r)),(0,Y7.setup)(this.options_),Q7.computeMarkup(this.getRebuilt().xml)}nextRules(){const t=this.getOptions();t.modality==="speech"&&Rl.ClearspeakPreferences.getLocalePreferences()[t.locale]&&(bM.DOMAIN_TO_STYLES[t.domain]=t.style,t.domain=t.domain==="mathspeak"?"clearspeak":"mathspeak",t.style=bM.DOMAIN_TO_STYLES[t.domain],this.setOptions(t))}nextStyle(t){this.setOption("style",this.nextStyle_(this.getRebuilt().nodeDict[t]))}nextStyle_(t){const{modality:r,domain:n,style:o}=this.getOptions();if(r!=="speech")return o;if(n==="mathspeak"){const i=["default","brief","sbrief"],a=i.indexOf(o);return a===-1?o:a>=i.length-1?i[0]:i[a+1]}if(n==="clearspeak"){const i=Rl.ClearspeakPreferences.getLocalePreferences().en;if(!i)return"default";const a=Rl.ClearspeakPreferences.relevantPreferences(t),s=Rl.ClearspeakPreferences.findPreference(o,a),c=i[a].map(function(p){return p.split("_")[1]}),l=c.indexOf(s);if(l===-1)return o;const u=l>=c.length-1?c[0]:c[l+1];return Rl.ClearspeakPreferences.addPreference(o,a,u)}return o}getLevel(t){return v1.LOCALE.MESSAGES.navigate.LEVEL+" "+t}getActionable(t){return t?t<0?v1.LOCALE.MESSAGES.navigate.EXPANDABLE:v1.LOCALE.MESSAGES.navigate.COLLAPSIBLE:""}}ro.AbstractSpeechGenerator=Z7,Object.defineProperty(Id,"__esModule",{value:!0}),Id.AdhocSpeechGenerator=void 0;const e4=ro;class t4 extends e4.AbstractSpeechGenerator{getSpeech(t,r){const n=this.generateSpeech(t,r);return t.setAttribute(this.modality,n),n}}Id.AdhocSpeechGenerator=t4;var kd={};Object.defineProperty(kd,"__esModule",{value:!0}),kd.ColorGenerator=void 0;const r4=he,n4=Ie,o4=ko,i4=Ci,S1=ar,a4=ro;class Ll extends a4.AbstractSpeechGenerator{constructor(){super(...arguments),this.modality=(0,n4.addPrefix)("foreground"),this.contrast=new o4.ContrastPicker}static visitStree_(t,r,n){if(!t.childNodes.length){n[t.id]||r.push(t.id);return}if(t.contentNodes.length&&(t.type==="punctuated"&&t.contentNodes.forEach(o=>n[o.id]=!0),t.role!=="implicit"&&r.push(t.contentNodes.map(o=>o.id))),t.childNodes.length){if(t.role==="implicit"){const o=[];let i=[];for(const a of t.childNodes){const s=[];Ll.visitStree_(a,s,n),s.length<=2&&o.push(s.shift()),i=i.concat(s)}r.push(o),i.forEach(a=>r.push(a));return}t.childNodes.forEach(o=>Ll.visitStree_(o,r,n))}}getSpeech(t,r){return S1.getAttribute(t,this.modality)}generateSpeech(t,r){return this.getRebuilt()||this.setRebuilt(new i4.RebuildStree(r4.parseInput(r))),this.colorLeaves_(t),S1.getAttribute(t,this.modality)}colorLeaves_(t){const r=[];Ll.visitStree_(this.getRebuilt().streeRoot,r,{});for(const n of r){const o=this.contrast.generate();let i=!1;Array.isArray(n)?i=n.map(a=>this.colorLeave_(t,a,o)).reduce((a,s)=>a||s,!1):i=this.colorLeave_(t,n.toString(),o),i&&this.contrast.increment()}}colorLeave_(t,r,n){const o=S1.getBySemanticId(t,r);return o?(o.setAttribute(this.modality,n),!0):!1}}kd.ColorGenerator=Ll;var Bd={};Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.DirectSpeechGenerator=void 0;const s4=ar,c4=ro;class l4 extends c4.AbstractSpeechGenerator{getSpeech(t,r){return s4.getAttribute(t,this.modality)}}Bd.DirectSpeechGenerator=l4;var Dd={};Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.DummySpeechGenerator=void 0;const u4=ro;class p4 extends u4.AbstractSpeechGenerator{getSpeech(t,r){return""}}Dd.DummySpeechGenerator=p4;var jd={},Il={};Object.defineProperty(Il,"__esModule",{value:!0}),Il.TreeSpeechGenerator=void 0;const vM=Ie,E1=ar,d4=ro,Fd=tr;class h4 extends d4.AbstractSpeechGenerator{getSpeech(t,r,n=null){this.getRebuilt()&&Fd.connectMactions(t,r,this.getRebuilt().xml);const o=this.generateSpeech(t,r),i=this.getRebuilt().nodeDict;for(const[a,s]of Object.entries(i)){const c=E1.getBySemanticId(r,a),l=E1.getBySemanticId(t,a)||n&&E1.getBySemanticId(n,a);!c||!l||(!this.modality||this.modality===vM.Attribute.SPEECH?Fd.addSpeech(l,s,this.getRebuilt().xml):Fd.addModality(l,s,this.modality),this.modality===vM.Attribute.SPEECH&&Fd.addPrefix(l,s))}return o}}Il.TreeSpeechGenerator=h4,Object.defineProperty(jd,"__esModule",{value:!0}),jd.NodeSpeechGenerator=void 0;const f4=ar,m4=Il;class y4 extends m4.TreeSpeechGenerator{getSpeech(t,r){return super.getSpeech(t,r),f4.getAttribute(t,this.modality)}}jd.NodeSpeechGenerator=y4;var Ud={};Object.defineProperty(Ud,"__esModule",{value:!0}),Ud.SummarySpeechGenerator=void 0;const g4=ro,b4=tr,v4=ga,SM=Ie;class S4 extends g4.AbstractSpeechGenerator{getSpeech(t,r){(0,v4.setup)(this.getOptions());const n=t.getAttribute(SM.Attribute.ID),o=this.getRebuilt().streeRoot.querySelectorAll(i=>i.id.toString()===n)[0];return b4.addModality(t,o,this.modality),t.getAttribute(SM.Attribute.SUMMARY)}}Ud.SummarySpeechGenerator=S4,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.generator=N4;const E4=Id,x4=kd,M4=Bd,O4=Dd,A4=jd,T4=Ud,C4=Il;function N4(e){return(EM[e]||EM.Direct)()}const EM={Adhoc:()=>new E4.AdhocSpeechGenerator,Color:()=>new x4.ColorGenerator,Direct:()=>new M4.DirectSpeechGenerator,Dummy:()=>new O4.DummySpeechGenerator,Node:()=>new A4.NodeSpeechGenerator,Summary:()=>new T4.SummarySpeechGenerator,Tree:()=>new C4.TreeSpeechGenerator};var Hd={},qd={},ds={},Gd={};Object.defineProperty(Gd,"__esModule",{value:!0}),Gd.Focus=void 0;const xM=ar;class Do{static factory(t,r,n,o){const i=p=>xM.getBySemanticId(o,p),a=n.nodeDict,s=i(t),c=r.map(i),l=r.map(function(p){return a[p]}),u=new Do(l,a[t]);return u.domNodes=c,u.domPrimary_=s,u.allNodes=Do.generateAllVisibleNodes_(r,c,a,o),u}static generateAllVisibleNodes_(t,r,n,o){let i=[];for(let a=0,s=t.length;a<s;a++){if(r[a]){const p=Do.getAllVisibleNodes([t[a]],o);p.length?i=i.concat(p):i.push(r[a]);continue}const c=n[t[a]];if(!c)continue;const l=c.childNodes.map(p=>p.id.toString()),u=Do.getAllVisibleNodes(l,o);i=i.concat(Do.generateAllVisibleNodes_(l,u,n,o))}return i}static getAllVisibleNodes(t,r){let n=[];for(const o of t)n=n.concat(xM.getAllBySemanticId(r,o));return n}constructor(t,r){this.nodes=t,this.primary=r,this.domNodes=[],this.domPrimary_=null,this.allNodes=[]}getSemanticPrimary(){return this.primary}getSemanticNodes(){return this.nodes}getNodes(){return this.allNodes}getDomNodes(){return this.domNodes}getDomPrimary(){return this.domPrimary_}toString(){return"Primary:"+this.domPrimary_+" Nodes:"+this.domNodes}clone(){const t=new Do(this.nodes,this.primary);return t.domNodes=this.domNodes,t.domPrimary_=this.domPrimary_,t.allNodes=this.allNodes,t}}Gd.Focus=Do;var _i={};Object.defineProperty(_i,"__esModule",{value:!0}),_i.WalkerState=_i.WalkerMoves=void 0;var MM;(function(e){e.UP="up",e.DOWN="down",e.LEFT="left",e.RIGHT="right",e.REPEAT="repeat",e.DEPTH="depth",e.ENTER="enter",e.EXPAND="expand",e.HOME="home",e.SUMMARY="summary",e.DETAIL="detail",e.ROW="row",e.CELL="cell"})(MM||(_i.WalkerMoves=MM={}));class hs{static resetState(t){delete hs.STATE[t]}static setState(t,r){hs.STATE[t]=r}static getState(t){return hs.STATE[t]}}_i.WalkerState=hs,hs.STATE={},Object.defineProperty(ds,"__esModule",{value:!0}),ds.AbstractWalker=void 0;const x1=xr,Xd=kr,M1=he,_4=ga,sr=Jr,oo=Ie,O1=Re,A1=Ot,w4=Zn,R4=Tl,fs=tr,OM=Gd,L4=Ci,dt=_i,Zr=ar,T1=Rt;class io{constructor(t,r,n,o){this.node=t,this.generator=r,this.highlighter=n,this.modifier=!1,this.keyMapping=new Map([[sr.KeyCode.UP,this.up.bind(this)],[sr.KeyCode.DOWN,this.down.bind(this)],[sr.KeyCode.RIGHT,this.right.bind(this)],[sr.KeyCode.LEFT,this.left.bind(this)],[sr.KeyCode.TAB,this.repeat.bind(this)],[sr.KeyCode.DASH,this.expand.bind(this)],[sr.KeyCode.SPACE,this.depth.bind(this)],[sr.KeyCode.HOME,this.home.bind(this)],[sr.KeyCode.X,this.summary.bind(this)],[sr.KeyCode.Z,this.detail.bind(this)],[sr.KeyCode.V,this.virtualize.bind(this)],[sr.KeyCode.P,this.previous.bind(this)],[sr.KeyCode.U,this.undo.bind(this)],[sr.KeyCode.LESS,this.previousRules.bind(this)],[sr.KeyCode.GREATER,this.nextRules.bind(this)]]),this.cursors=[],this.xml_=null,this.rebuilt_=null,this.focus_=null,this.active_=!1,this.node.id?this.id=this.node.id:this.node.hasAttribute(io.SRE_ID_ATTR)?this.id=this.node.getAttribute(io.SRE_ID_ATTR):(this.node.setAttribute(io.SRE_ID_ATTR,io.ID_COUNTER.toString()),this.id=io.ID_COUNTER++),this.rootNode=Zr.getSemanticRoot(t),this.rootId=this.rootNode.getAttribute(oo.Attribute.ID),this.xmlString_=o,this.moved=dt.WalkerMoves.ENTER}getXml(){return this.xml_||(this.xml_=M1.parseInput(this.xmlString_)),this.xml_}getRebuilt(){return this.rebuilt_||this.rebuildStree(),this.rebuilt_}isActive(){return this.active_}activate(){this.isActive()||this.toggleActive_()}deactivate(){this.isActive()&&(dt.WalkerState.setState(this.id,this.primaryId()),this.toggleActive_())}getFocus(t=!1){return this.rootId===null&&this.getRebuilt(),this.focus_||(this.focus_=this.singletonFocus(this.rootId)),t&&this.updateFocus(),this.focus_}setFocus(t){this.focus_=t}getDepth(){return this.levels.depth()-1}isSpeech(){return this.generator.modality===oo.Attribute.SPEECH}focusDomNodes(){return this.getFocus().getDomNodes()}focusSemanticNodes(){return this.getFocus().getSemanticNodes()}speech(){const t=this.focusDomNodes();if(!t.length)return"";const r=this.specialMove();if(r!==null)return r;switch(this.moved){case dt.WalkerMoves.DEPTH:return this.depth_();case dt.WalkerMoves.SUMMARY:return this.summary_();case dt.WalkerMoves.DETAIL:return this.detail_();default:{const n=[],o=this.focusSemanticNodes();for(let i=0,a=t.length;i<a;i++){const s=t[i],c=o[i];n.push(s?this.generator.getSpeech(s,this.getXml(),this.node):fs.recomputeMarkup(c))}return this.mergePrefix_(n)}}}move(t){const r=this.keyMapping.get(t);if(!r)return null;const n=r();return!n||n===this.getFocus()?!1:(this.setFocus(n),this.moved===dt.WalkerMoves.HOME&&(this.levels=this.initLevels()),!0)}up(){return this.moved=dt.WalkerMoves.UP,this.getFocus()}down(){return this.moved=dt.WalkerMoves.DOWN,this.getFocus()}left(){return this.moved=dt.WalkerMoves.LEFT,this.getFocus()}right(){return this.moved=dt.WalkerMoves.RIGHT,this.getFocus()}repeat(){return this.moved=dt.WalkerMoves.REPEAT,this.getFocus().clone()}depth(){return this.moved=this.isSpeech()?dt.WalkerMoves.DEPTH:dt.WalkerMoves.REPEAT,this.getFocus().clone()}home(){return this.moved=dt.WalkerMoves.HOME,this.singletonFocus(this.rootId)}getBySemanticId(t){return Zr.getBySemanticId(this.node,t)}primaryId(){return this.getFocus().getSemanticPrimary().id.toString()}expand(){const t=this.getFocus().getDomPrimary(),r=this.actionable_(t);return r?(this.moved=dt.WalkerMoves.EXPAND,r.dispatchEvent(new Event("click")),this.getFocus().clone()):this.getFocus()}expandable(t){return!!this.actionable_(t)&&t.childNodes.length===0}collapsible(t){return!!this.actionable_(t)&&t.childNodes.length>0}restoreState(){if(!this.highlighter)return;const t=dt.WalkerState.getState(this.id);if(!t)return;let r=this.getRebuilt().nodeDict[t];const n=[];for(;r;)n.push(r.id),r=r.parent;for(n.pop();n.length>0;){this.down();const o=n.pop(),i=this.findFocusOnLevel(o);if(!i)break;this.setFocus(i)}this.moved=dt.WalkerMoves.ENTER}updateFocus(){this.setFocus(OM.Focus.factory(this.getFocus().getSemanticPrimary().id.toString(),this.getFocus().getSemanticNodes().map(t=>t.id.toString()),this.getRebuilt(),this.node))}rebuildStree(){this.rebuilt_=new L4.RebuildStree(this.getXml()),this.rootId=this.rebuilt_.stree.root.id.toString(),this.generator.setRebuilt(this.rebuilt_),this.skeleton=w4.SemanticSkeleton.fromTree(this.rebuilt_.stree),this.skeleton.populate(),this.focus_=this.singletonFocus(this.rootId),this.levels=this.initLevels(),fs.connectMactions(this.node,this.getXml(),this.rebuilt_.xml)}previousLevel(){const t=this.getFocus().getDomPrimary();return t?Zr.getAttribute(t,oo.Attribute.PARENT):this.getFocus().getSemanticPrimary().parent.id.toString()}nextLevel(){const t=this.getFocus().getDomPrimary();let r,n;if(t){r=Zr.splitAttribute(Zr.getAttribute(t,oo.Attribute.CHILDREN)),n=Zr.splitAttribute(Zr.getAttribute(t,oo.Attribute.CONTENT));const a=Zr.getAttribute(t,oo.Attribute.TYPE),s=Zr.getAttribute(t,oo.Attribute.ROLE);return this.combineContentChildren(a,s,n,r)}const o=a=>a.id.toString(),i=this.getRebuilt().nodeDict[this.primaryId()];return r=i.childNodes.map(o),n=i.contentNodes.map(o),r.length===0?[]:this.combineContentChildren(i.type,i.role,n,r)}singletonFocus(t){this.getRebuilt();const r=this.retrieveVisuals(t);return this.focusFromId(t,r)}retrieveVisuals(t){if(!this.skeleton)return[t];const r=parseInt(t,10),n=this.skeleton.subtreeNodes(r);if(!n.length)return[t];n.unshift(r);const o={},i=[];T1.updateEvaluator(this.getXml());for(const a of n)o[a]||(i.push(a.toString()),o[a]=!0,this.subtreeIds(a,o));return i}subtreeIds(t,r){const n=T1.evalXPath(`//*[@data-semantic-id="${t}"]`,this.getXml());T1.evalXPath("*//@data-semantic-id",n[0]).forEach(o=>r[parseInt(o.textContent,10)]=!0)}focusFromId(t,r){return OM.Focus.factory(t,r,this.getRebuilt(),this.node)}summary(){return this.moved=this.isSpeech()?dt.WalkerMoves.SUMMARY:dt.WalkerMoves.REPEAT,this.getFocus().clone()}detail(){return this.moved=this.isSpeech()?dt.WalkerMoves.DETAIL:dt.WalkerMoves.REPEAT,this.getFocus().clone()}specialMove(){return null}virtualize(t){return this.cursors.push({focus:this.getFocus(),levels:this.levels,undo:t||!this.cursors.length}),this.levels=this.levels.clone(),this.getFocus().clone()}previous(){const t=this.cursors.pop();return t?(this.levels=t.levels,t.focus):this.getFocus()}undo(){let t;do t=this.cursors.pop();while(t&&!t.undo);return t?(this.levels=t.levels,t.focus):this.getFocus()}update(t){(0,_4.setup)(t).then(()=>R4.generator("Tree").getSpeech(this.node,this.getXml()))}nextRules(){this.generator.nextRules();const t=this.generator.getOptions();return t.modality!=="speech"?this.getFocus():(this.update(t),this.moved=dt.WalkerMoves.REPEAT,this.getFocus().clone())}previousRules(){var t;this.generator.nextStyle((t=this.getFocus().getSemanticPrimary())===null||t===void 0?void 0:t.id.toString());const r=this.generator.getOptions();return r.modality!=="speech"?this.getFocus():(this.update(r),this.moved=dt.WalkerMoves.REPEAT,this.getFocus().clone())}refocus(){let t=this.getFocus(),r;for(;!t.getNodes().length;){r=this.levels.peek();const n=this.up();if(!n)break;this.setFocus(n),t=this.getFocus(!0)}this.levels.push(r),this.setFocus(t)}toggleActive_(){this.active_=!this.active_}mergePrefix_(t,r=[]){const n=this.isSpeech()?this.prefix_():"";n&&t.unshift(n);const o=this.isSpeech()?this.postfix_():"";return o&&t.push(o),Xd.finalize(Xd.merge(r.concat(t)))}prefix_(){const t=this.getFocus().getDomNodes(),r=this.getFocus().getSemanticNodes();return t[0]?Zr.getAttribute(t[0],oo.Attribute.PREFIX):fs.retrievePrefix(r[0])}postfix_(){const t=this.getFocus().getDomNodes();return t[0]?Zr.getAttribute(t[0],oo.Attribute.POSTFIX):""}depth_(){const t=A1.Grammar.getInstance().getParameter("depth");A1.Grammar.getInstance().setParameter("depth",!0);const r=this.getFocus().getDomPrimary(),n=this.expandable(r)?O1.LOCALE.MESSAGES.navigate.EXPANDABLE:this.collapsible(r)?O1.LOCALE.MESSAGES.navigate.COLLAPSIBLE:"",o=O1.LOCALE.MESSAGES.navigate.LEVEL+" "+this.getDepth(),i=this.getFocus().getSemanticNodes(),a=fs.retrievePrefix(i[0]),s=[new x1.AuditoryDescription({text:o,personality:{}}),new x1.AuditoryDescription({text:a,personality:{}}),new x1.AuditoryDescription({text:n,personality:{}})];return A1.Grammar.getInstance().setParameter("depth",t),Xd.finalize(Xd.markup(s))}actionable_(t){const r=t?.parentNode;return r&&this.highlighter.isMactionNode(r)?r:null}summary_(){const t=this.getFocus().getSemanticPrimary().id.toString(),r=this.getRebuilt().xml.getAttribute("id")===t?this.getRebuilt().xml:M1.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",t)[0],n=fs.retrieveSummary(r);return this.mergePrefix_([n])}detail_(){const t=this.getFocus().getSemanticPrimary().id.toString(),r=this.getRebuilt().xml.getAttribute("id")===t?this.getRebuilt().xml:M1.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",t)[0],n=r.getAttribute("alternative");r.removeAttribute("alternative");const o=fs.computeMarkup(r),i=this.mergePrefix_([o]);return r.setAttribute("alternative",n),i}}ds.AbstractWalker=io,io.ID_COUNTER=0,io.SRE_ID_ATTR="sre-explorer-id",Object.defineProperty(qd,"__esModule",{value:!0}),qd.DummyWalker=void 0;const I4=ds;class P4 extends I4.AbstractWalker{up(){return null}down(){return null}left(){return null}right(){return null}repeat(){return null}depth(){return null}home(){return null}getDepth(){return 0}initLevels(){return null}combineContentChildren(t,r,n,o){return[]}findFocusOnLevel(t){return null}}qd.DummyWalker=P4;var Vd={},Pl={};Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.Levels=void 0;class C1{constructor(){this.level_=[]}push(t){this.level_.push(t)}pop(){return this.level_.pop()}peek(){return this.level_[this.level_.length-1]||null}indexOf(t){const r=this.peek();return r?r.indexOf(t):null}find(t){const r=this.peek();if(!r)return null;for(let n=0,o=r.length;n<o;n++)if(t(r[n]))return r[n];return null}get(t){const r=this.peek();return!r||t<0||t>=r.length?null:r[t]}depth(){return this.level_.length}clone(){const t=new C1;return t.level_=this.level_.slice(0),t}toString(){let t="";for(let r=0,n;n=this.level_[r];r++)t+=`
40
+ `+n.map(function(o){return o.toString()});return t}}Pl.Levels=C1,Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.SemanticWalker=void 0;const Cr=Se,k4=ds,B4=Pl;class D4 extends k4.AbstractWalker{constructor(t,r,n,o){super(t,r,n,o),this.node=t,this.generator=r,this.highlighter=n,this.levels=null,this.restoreState()}initLevels(){const t=new B4.Levels;return t.push([this.getFocus()]),t}up(){super.up();const t=this.previousLevel();return t?(this.levels.pop(),this.levels.find(function(r){return r.getSemanticNodes().some(function(n){return n.id.toString()===t})})):null}down(){super.down();const t=this.nextLevel();return t.length===0?null:(this.levels.push(t),t[0])}combineContentChildren(t,r,n,o){switch(t){case Cr.SemanticType.RELSEQ:case Cr.SemanticType.INFIXOP:case Cr.SemanticType.MULTIREL:return this.makePairList(o,n);case Cr.SemanticType.PREFIXOP:return[this.focusFromId(o[0],n.concat(o))];case Cr.SemanticType.POSTFIXOP:return[this.focusFromId(o[0],o.concat(n))];case Cr.SemanticType.MATRIX:case Cr.SemanticType.VECTOR:case Cr.SemanticType.FENCED:return[this.focusFromId(o[0],[n[0],o[0],n[1]])];case Cr.SemanticType.CASES:return[this.focusFromId(o[0],[n[0],o[0]])];case Cr.SemanticType.PUNCTUATED:return r===Cr.SemanticRole.TEXT?o.map(this.singletonFocus.bind(this)):o.length===n.length?n.map(this.singletonFocus.bind(this)):this.combinePunctuations(o,n,[],[]);case Cr.SemanticType.APPL:return[this.focusFromId(o[0],[o[0],n[0]]),this.singletonFocus(o[1])];case Cr.SemanticType.ROOT:return[this.singletonFocus(o[0]),this.singletonFocus(o[1])];default:return o.map(this.singletonFocus.bind(this))}}combinePunctuations(t,r,n,o){if(t.length===0)return o;const i=t.shift(),a=r.shift();return i===a?(n.push(a),this.combinePunctuations(t,r,n,o)):(r.unshift(a),n.push(i),t.length===r.length?(o.push(this.focusFromId(i,n.concat(r))),o):(o.push(this.focusFromId(i,n)),this.combinePunctuations(t,r,[],o)))}makePairList(t,r){if(t.length===0)return[];if(t.length===1)return[this.singletonFocus(t[0])];const n=[this.singletonFocus(t.shift())];for(let o=0,i=t.length;o<i;o++)n.push(this.focusFromId(t[o],[r[o],t[o]]));return n}left(){super.left();const t=this.levels.indexOf(this.getFocus());return t===null?null:this.levels.get(t-1)||null}right(){super.right();const t=this.levels.indexOf(this.getFocus());return t===null?null:this.levels.get(t+1)||null}findFocusOnLevel(t){return this.levels.find(r=>r.getSemanticPrimary().id===t)}}Vd.SemanticWalker=D4;var kl={};Object.defineProperty(kl,"__esModule",{value:!0}),kl.SyntaxWalker=void 0;const AM=Gn,Nr=Se,j4=ds,F4=Pl;class U4 extends j4.AbstractWalker{constructor(t,r,n,o){super(t,r,n,o),this.node=t,this.generator=r,this.highlighter=n,this.levels=null,this.restoreState()}initLevels(){const t=new F4.Levels;return t.push([this.primaryId()]),t}up(){super.up();const t=this.previousLevel();return t?(this.levels.pop(),this.singletonFocus(t)):null}down(){super.down();const t=this.nextLevel();if(t.length===0)return null;const r=this.singletonFocus(t[0]);return r&&this.levels.push(t),r}combineContentChildren(t,r,n,o){switch(t){case Nr.SemanticType.RELSEQ:case Nr.SemanticType.INFIXOP:case Nr.SemanticType.MULTIREL:return(0,AM.interleaveLists)(o,n);case Nr.SemanticType.PREFIXOP:return n.concat(o);case Nr.SemanticType.POSTFIXOP:return o.concat(n);case Nr.SemanticType.MATRIX:case Nr.SemanticType.VECTOR:case Nr.SemanticType.FENCED:return o.unshift(n[0]),o.push(n[1]),o;case Nr.SemanticType.CASES:return o.unshift(n[0]),o;case Nr.SemanticType.PUNCTUATED:return r===Nr.SemanticRole.TEXT?(0,AM.interleaveLists)(o,n):o;case Nr.SemanticType.APPL:return[o[0],n[0],o[1]];case Nr.SemanticType.ROOT:return[o[0],o[1]];default:return o}}left(){super.left();const t=this.levels.indexOf(this.primaryId());if(t===null)return null;const r=this.levels.get(t-1);return r?this.singletonFocus(r):null}right(){super.right();const t=this.levels.indexOf(this.primaryId());if(t===null)return null;const r=this.levels.get(t+1);return r?this.singletonFocus(r):null}findFocusOnLevel(t){return this.singletonFocus(t.toString())}focusDomNodes(){return[this.getFocus().getDomPrimary()]}focusSemanticNodes(){return[this.getFocus().getSemanticPrimary()]}}kl.SyntaxWalker=U4;var Wd={};Object.defineProperty(Wd,"__esModule",{value:!0}),Wd.TableWalker=void 0;const TM=he,Ur=Jr,cr=Se,H4=kl,Bl=_i;class ms extends H4.SyntaxWalker{constructor(t,r,n,o){super(t,r,n,o),this.node=t,this.generator=r,this.highlighter=n,this.firstJump=null,this.key_=null,this.row_=0,this.currentTable_=null,this.keyMapping.set(Ur.KeyCode.ZERO,this.jumpCell.bind(this)),this.keyMapping.set(Ur.KeyCode.ONE,this.jumpCell.bind(this)),this.keyMapping.set(Ur.KeyCode.TWO,this.jumpCell.bind(this)),this.keyMapping.set(Ur.KeyCode.THREE,this.jumpCell.bind(this)),this.keyMapping.set(Ur.KeyCode.FOUR,this.jumpCell.bind(this)),this.keyMapping.set(Ur.KeyCode.FIVE,this.jumpCell.bind(this)),this.keyMapping.set(Ur.KeyCode.SIX,this.jumpCell.bind(this)),this.keyMapping.set(Ur.KeyCode.SEVEN,this.jumpCell.bind(this)),this.keyMapping.set(Ur.KeyCode.EIGHT,this.jumpCell.bind(this)),this.keyMapping.set(Ur.KeyCode.NINE,this.jumpCell.bind(this))}move(t){this.key_=t;const r=super.move(t);return this.modifier=!1,r}up(){return this.moved=Bl.WalkerMoves.UP,this.eligibleCell_()?this.verticalMove_(!1):super.up()}down(){return this.moved=Bl.WalkerMoves.DOWN,this.eligibleCell_()?this.verticalMove_(!0):super.down()}jumpCell(){if(!this.isInTable_()||this.key_===null)return this.getFocus();if(this.moved===Bl.WalkerMoves.ROW){this.moved=Bl.WalkerMoves.CELL;const r=this.key_-Ur.KeyCode.ZERO;return this.isLegalJump_(this.row_,r)?this.jumpCell_(this.row_,r):this.getFocus()}const t=this.key_-Ur.KeyCode.ZERO;return t>this.currentTable_.childNodes.length?this.getFocus():(this.row_=t,this.moved=Bl.WalkerMoves.ROW,this.getFocus().clone())}undo(){const t=super.undo();return t===this.firstJump&&(this.firstJump=null),t}eligibleCell_(){const t=this.getFocus().getSemanticPrimary();return this.modifier&&t.type===cr.SemanticType.CELL&&ms.ELIGIBLE_CELL_ROLES.indexOf(t.role)!==-1}verticalMove_(t){const r=this.previousLevel();if(!r)return null;const n=this.getFocus(),o=this.levels.indexOf(this.primaryId()),i=this.levels.pop(),a=this.levels.indexOf(r),s=this.levels.get(t?a+1:a-1);if(!s)return this.levels.push(i),null;this.setFocus(this.singletonFocus(s));const c=this.nextLevel();return c[o]?(this.levels.push(c),this.singletonFocus(c[o])):(this.setFocus(n),this.levels.push(i),null)}jumpCell_(t,r){this.firstJump?this.virtualize(!1):(this.firstJump=this.getFocus(),this.virtualize(!0));const n=this.currentTable_.id.toString();let o;do o=this.levels.pop();while(o.indexOf(n)===-1);this.levels.push(o),this.setFocus(this.singletonFocus(n)),this.levels.push(this.nextLevel());const i=this.currentTable_.childNodes[t-1];return this.setFocus(this.singletonFocus(i.id.toString())),this.levels.push(this.nextLevel()),this.singletonFocus(i.childNodes[r-1].id.toString())}isLegalJump_(t,r){const n=TM.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",this.currentTable_.id.toString())[0];if(!n||n.hasAttribute("alternative"))return!1;const o=this.currentTable_.childNodes[t-1];if(!o)return!1;const i=TM.querySelectorAllByAttrValue(n,"id",o.id.toString())[0];return!i||i.hasAttribute("alternative")?!1:!!(o&&o.childNodes[r-1])}isInTable_(){let t=this.getFocus().getSemanticPrimary();for(;t;){if(ms.ELIGIBLE_TABLE_TYPES.indexOf(t.type)!==-1)return this.currentTable_=t,!0;t=t.parent}return!1}}Wd.TableWalker=ms,ms.ELIGIBLE_CELL_ROLES=[cr.SemanticRole.DETERMINANT,cr.SemanticRole.ROWVECTOR,cr.SemanticRole.BINOMIAL,cr.SemanticRole.SQUAREMATRIX,cr.SemanticRole.MULTILINE,cr.SemanticRole.MATRIX,cr.SemanticRole.VECTOR,cr.SemanticRole.CASES,cr.SemanticRole.TABLE],ms.ELIGIBLE_TABLE_TYPES=[cr.SemanticType.MULTILINE,cr.SemanticType.MATRIX,cr.SemanticType.VECTOR,cr.SemanticType.CASES,cr.SemanticType.TABLE],Object.defineProperty(Hd,"__esModule",{value:!0}),Hd.walker=W4;const q4=qd,G4=Vd,X4=kl,V4=Wd;function W4(e,t,r,n,o){return(CM[e.toLowerCase()]||CM.dummy)(t,r,n,o)}const CM={dummy:(e,t,r,n)=>new q4.DummyWalker(e,t,r,n),semantic:(e,t,r,n)=>new G4.SemanticWalker(e,t,r,n),syntax:(e,t,r,n)=>new X4.SyntaxWalker(e,t,r,n),table:(e,t,r,n)=>new V4.TableWalker(e,t,r,n)};var ys={};Object.defineProperty(ys,"__esModule",{value:!0}),ys.KeyProcessor=ys.Processor=void 0;const $4=Jr;class Dl{static stringify_(t){return t&&t.toString()}constructor(t,r){this.name=t,this.process=r.processor,this.postprocess=r.postprocessor||((n,o)=>n),this.processor=this.postprocess?function(n){return this.postprocess(this.process(n),n)}:this.process,this.print=r.print||Dl.stringify_,this.pprint=r.pprint||this.print}}ys.Processor=Dl,Dl.LocalState={walker:null,speechGenerator:null,highlighter:null};class N1 extends Dl{static getKey_(t){return typeof t=="string"?$4.KeyCode[t.toUpperCase()]:t}constructor(t,r){super(t,r),this.key=r.key||N1.getKey_}}ys.KeyProcessor=N1,Object.defineProperty(sl,"__esModule",{value:!0}),sl.process=zd,sl.output=ek,sl.keypress=tk;const jo=kr,z4=Mi,K4=cs,_1=Re,jl=Ja,w1=Tl,gs=tr,J4=Hd,Y4=ar,Q4=Ci,en=he,nr=Oe,wi=De,ht=ys,R1=Rt,NM=new Map;function _r(e){NM.set(e.name,e)}function $d(e){const t=NM.get(e);if(!t)throw new nr.SREError("Unknown processor "+e);return t}function zd(e,t){const r=$d(e);try{return r.processor(t)}catch{throw new nr.SREError("Processing error for expression "+t)}}function Z4(e,t){const r=$d(e);return nr.Engine.getInstance().pprint?r.pprint(t):r.print(t)}function ek(e,t){const r=$d(e);try{const n=r.processor(t);return nr.Engine.getInstance().pprint?r.pprint(n):r.print(n)}catch(n){throw console.log(n),new nr.SREError("Processing error for expression "+t)}}function tk(e,t){const r=$d(e),n=r instanceof ht.KeyProcessor?r.key(t):t,o=r.processor(n);return nr.Engine.getInstance().pprint?r.pprint(o):r.print(o)}_r(new ht.Processor("semantic",{processor:function(e){const t=en.parseInput(e);return jl.xmlTree(t)},postprocessor:function(e,t){const r=nr.Engine.getInstance().speech;if(r===wi.Speech.NONE)return e;const n=en.cloneNode(e);let o=gs.computeMarkup(n);if(r===wi.Speech.SHALLOW)return e.setAttribute("speech",jo.finalize(o)),e;const i=R1.evalXPath(".//*[@id]",e),a=R1.evalXPath(".//*[@id]",n);for(let s=0,c,l;c=i[s],l=a[s];s++)o=gs.computeMarkup(l),c.setAttribute("speech",jo.finalize(o));return e},pprint:function(e){return en.formatXml(e.toString())}})),_r(new ht.Processor("speech",{processor:function(e){const t=en.parseInput(e),r=jl.xmlTree(t),n=gs.computeSpeech(r);return jo.finalize(jo.markup(n))},pprint:function(e){const t=e.toString();return jo.isXml()?en.formatXml(t):t}})),_r(new ht.Processor("json",{processor:function(e){const t=en.parseInput(e);return jl.getTree(t).toJson()},postprocessor:function(e,t){const r=nr.Engine.getInstance().speech;if(r===wi.Speech.NONE)return e;const n=en.parseInput(t),o=jl.xmlTree(n),i=gs.computeMarkup(o);if(r===wi.Speech.SHALLOW)return e.stree.speech=jo.finalize(i),e;const a=s=>{const c=R1.evalXPath(`.//*[@id=${s.id}]`,o)[0],l=gs.computeMarkup(c);s.speech=jo.finalize(l),s.children&&s.children.forEach(a)};return a(e.stree),e},print:function(e){return JSON.stringify(e)},pprint:function(e){return JSON.stringify(e,null,2)}})),_r(new ht.Processor("description",{processor:function(e){const t=en.parseInput(e),r=jl.xmlTree(t);return gs.computeSpeech(r)},print:function(e){return JSON.stringify(e)},pprint:function(e){return JSON.stringify(e,null,2)}})),_r(new ht.Processor("enriched",{processor:function(e){return z4.semanticMathmlSync(e)},postprocessor:function(e,t){const r=Y4.getSemanticRoot(e);let n;switch(nr.Engine.getInstance().speech){case wi.Speech.NONE:break;case wi.Speech.SHALLOW:n=w1.generator("Adhoc"),n.getSpeech(r,e);break;case wi.Speech.DEEP:n=w1.generator("Tree"),n.getSpeech(e,e)}return e},pprint:function(e){return en.formatXml(e.toString())}})),_r(new ht.Processor("rebuild",{processor:function(e){return new Q4.RebuildStree(en.parseInput(e)).stree.xml()},pprint:function(e){return en.formatXml(e.toString())}})),_r(new ht.Processor("walker",{processor:function(e){const t=w1.generator("Node");ht.Processor.LocalState.speechGenerator=t,t.setOptions({modality:nr.Engine.getInstance().modality,locale:nr.Engine.getInstance().locale,domain:nr.Engine.getInstance().domain,style:nr.Engine.getInstance().style}),ht.Processor.LocalState.highlighter=K4.highlighter({color:"black"},{color:"white"},{renderer:"NativeMML"});const r=zd("enriched",e),n=Z4("enriched",r);return ht.Processor.LocalState.walker=J4.walker(nr.Engine.getInstance().walker,r,t,ht.Processor.LocalState.highlighter,n),ht.Processor.LocalState.walker},print:function(e){return ht.Processor.LocalState.walker.speech()}})),_r(new ht.KeyProcessor("move",{processor:function(e){return ht.Processor.LocalState.walker?ht.Processor.LocalState.walker.move(e)===!1?jo.error(e):ht.Processor.LocalState.walker.speech():null}})),_r(new ht.Processor("number",{processor:function(e){const t=parseInt(e,10);return isNaN(t)?"":_1.LOCALE.NUMBERS.numberToWords(t)}})),_r(new ht.Processor("ordinal",{processor:function(e){const t=parseInt(e,10);return isNaN(t)?"":_1.LOCALE.NUMBERS.wordOrdinal(t)}})),_r(new ht.Processor("numericOrdinal",{processor:function(e){const t=parseInt(e,10);return isNaN(t)?"":_1.LOCALE.NUMBERS.numericOrdinal(t)}})),_r(new ht.Processor("vulgar",{processor:function(e){const[t,r]=e.split("/").map(n=>parseInt(n,10));return isNaN(t)||isNaN(r)?"":zd("speech",`<mfrac><mn>${t}</mn><mn>${r}</mn></mfrac>`)}})),_r(new ht.Processor("latex",{processor:function(e){return(nr.Engine.getInstance().modality!=="braille"||nr.Engine.getInstance().locale!=="euro")&&console.info("LaTeX input currently only works for Euro Braille output. Please use the latex-to-speech package from npm for general LaTeX input to SRE."),zd("speech",`<math data-latex="${e}"></math>`)}})),(function(e){var t=y&&y.__awaiter||(function(P,F,G,Q){function U(j){return j instanceof G?j:new G(function(B){B(j)})}return new(G||(G=Promise))(function(j,B){function H(W){try{X(Q.next(W))}catch(Y){B(Y)}}function V(W){try{X(Q.throw(W))}catch(Y){B(Y)}}function X(W){W.done?j(W.value):U(W.value).then(H,V)}X((Q=Q.apply(P,F||[])).next())})});Object.defineProperty(e,"__esModule",{value:!0}),e.localePath=e.file=e.localeLoader=e.version=void 0,e.setupEngine=u,e.engineSetup=p,e.engineReady=d,e.toSpeech=h,e.toSemantic=f,e.toJson=m,e.toDescription=v,e.toEnriched=g,e.number=b,e.ordinal=S,e.numericOrdinal=E,e.vulgar=x,e.processFile=A,e.walk=k,e.move=L,e.exit=D;const r=Oe,n=ga,o=De,i=Sa,a=sl,s=Ir,c=So,l=Vc;e.version=c.Variables.VERSION;function u(P){return t(this,void 0,void 0,function*(){return(0,n.setup)(P)})}function p(){const P=["mode"].concat(r.Engine.STRING_FEATURES,r.Engine.BINARY_FEATURES),F=r.Engine.getInstance(),G={};return P.forEach(function(Q){G[Q]=F[Q]}),G.json=s.SystemExternal.jsonPath,G.xpath=s.SystemExternal.WGXpath,G.rules=F.ruleSets.slice(),G}function d(){return t(this,void 0,void 0,function*(){return u({}).then(()=>r.EnginePromise.getall())})}e.localeLoader=l.standardLoader;function h(P){return O("speech",P)}function f(P){return O("semantic",P)}function m(P){return O("json",P)}function v(P){return O("description",P)}function g(P){return O("enriched",P)}function b(P){return O("number",P)}function S(P){return O("ordinal",P)}function E(P){return O("numericOrdinal",P)}function x(P){return O("vulgar",P)}function O(P,F){return a.process(P,F)}e.file={},e.file.toSpeech=function(P,F){return A("speech",P,F)},e.file.toSemantic=function(P,F){return A("semantic",P,F)},e.file.toJson=function(P,F){return A("json",P,F)},e.file.toDescription=function(P,F){return A("description",P,F)},e.file.toEnriched=function(P,F){return A("enriched",P,F)};function A(P,F,G){switch(r.Engine.getInstance().mode){case o.Mode.ASYNC:return w(P,F,G);case o.Mode.SYNC:return M(P,F,G);default:throw new r.SREError(`Can process files in ${r.Engine.getInstance().mode} mode`)}}function M(P,F,G){const Q=C(F),U=a.output(P,Q);if(G)try{s.SystemExternal.fs.writeFileSync(G,U)}catch{throw new r.SREError("Can not write to file: "+G)}return U}function C(P){let F;try{F=s.SystemExternal.fs.readFileSync(P,{encoding:"utf8"})}catch{throw new r.SREError("Can not open file: "+P)}return F}function w(P,F,G){return t(this,void 0,void 0,function*(){const Q=yield s.SystemExternal.fs.promises.readFile(F,{encoding:"utf8"}),U=a.output(P,Q);if(G)try{s.SystemExternal.fs.promises.writeFile(G,U)}catch{throw new r.SREError("Can not write to file: "+G)}return U})}function k(P){return a.output("walker",P)}function L(P){return a.keypress("move",P)}function D(P){const F=P||0;r.EnginePromise.getall().then(()=>process.exit(F))}e.localePath=i.localePath,s.SystemExternal.documentSupported?u({mode:o.Mode.HTTP}).then(()=>u({})):u({mode:o.Mode.SYNC}).then(()=>u({mode:o.Mode.ASYNC}))})(up),ee(up);var L1={};Object.defineProperty(L1,"__esModule",{value:!0}),L1.default=new Map,(function(e){var t=y&&y.__createBinding||(Object.create?function(g,b,S,E){E===void 0&&(E=S);var x=Object.getOwnPropertyDescriptor(b,S);(!x||("get"in x?!b.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return b[S]}}),Object.defineProperty(g,E,x)}:function(g,b,S,E){E===void 0&&(E=S),g[E]=b[S]}),r=y&&y.__setModuleDefault||(Object.create?function(g,b){Object.defineProperty(g,"default",{enumerable:!0,value:b})}:function(g,b){g.default=b}),n=y&&y.__importStar||(function(g){if(g&&g.__esModule)return g;var b={};if(g!=null)for(var S in g)S!=="default"&&Object.prototype.hasOwnProperty.call(g,S)&&t(b,g,S);return r(b,g),b}),o=y&&y.__awaiter||(function(g,b,S,E){function x(O){return O instanceof S?O:new S(function(A){A(O)})}return new(S||(S=Promise))(function(O,A){function M(k){try{w(E.next(k))}catch(L){A(L)}}function C(k){try{w(E.throw(k))}catch(L){A(L)}}function w(k){k.done?O(k.value):x(k.value).then(M,C)}w((E=E.apply(g,b||[])).next())})}),i=y&&y.__generator||(function(g,b){var S={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},E,x,O,A={next:M(0),throw:M(1),return:M(2)};return typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function M(w){return function(k){return C([w,k])}}function C(w){if(E)throw new TypeError("Generator is already executing.");for(;S;)try{if(E=1,x&&(O=w[0]&2?x.return:w[0]?x.throw||((O=x.return)&&O.call(x),0):x.next)&&!(O=O.call(x,w[1])).done)return O;switch(x=0,O&&(w=[w[0]&2,O.value]),w[0]){case 0:case 1:O=w;break;case 4:return S.label++,{value:w[1],done:!1};case 5:S.label++,x=w[1],w=[0];continue;case 7:w=S.ops.pop(),S.trys.pop();continue;default:if(O=S.trys,!(O=O.length>0&&O[O.length-1])&&(w[0]===6||w[0]===2)){S=0;continue}if(w[0]===3&&(!O||w[1]>O[0]&&w[1]<O[3])){S.label=w[1];break}if(w[0]===6&&S.label<O[1]){S.label=O[1],O=w;break}if(O&&S.label<O[2]){S.label=O[2],S.ops.push(w);break}O[2]&&S.ops.pop(),S.trys.pop();continue}w=b.call(g,S)}catch(k){w=[6,k],x=0}finally{E=O=0}if(w[0]&5)throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}}),a=y&&y.__importDefault||(function(g){return g&&g.__esModule?g:{default:g}});Object.defineProperty(e,"__esModule",{value:!0}),e.sreReady=e.Sre=void 0;var s=n(up),c=n(Hd),l=n(Tl),u=n(De),p=a(Oe),d=wl,h=n(cs),f=So,m=a(L1),v;(function(g){g.locales=f.Variables.LOCALES,g.sreReady=s.engineReady,g.setupEngine=s.setupEngine,g.engineSetup=s.engineSetup,g.toEnriched=s.toEnriched,g.toSpeech=s.toSpeech,g.clearspeakPreferences=d.ClearspeakPreferences,g.getHighlighter=h.highlighter,g.getSpeechGenerator=l.generator,g.getWalker=c.walker,g.clearspeakStyle=function(){return u.DOMAIN_TO_STYLES.clearspeak},g.preloadLocales=function(b){return o(this,void 0,void 0,function(){var S;return i(this,function(E){return S=m.default.get(b),[2,S?new Promise(function(x,O){return x(JSON.stringify(S))}):s.localeLoader()(b)]})})}})(v=e.Sre||(e.Sre={})),e.sreReady=v.sreReady,p.default.getInstance().delay=!0,e.default=v})(lp),ee(lp);var _M=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),bs=y&&y.__assign||(function(){return bs=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),bs.apply(this,arguments)}),Kd=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),rk=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),nk=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),ok=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(ai,"__esModule",{value:!0});var wM=ai.EnrichHandler=ai.EnrichedMathDocumentMixin=ai.EnrichedMathItemMixin=void 0,ik=br,ao=Wr,ak=na,RM=tt,I1=ok(lp),LM="none";(0,ao.newState)("ENRICHED",30),(0,ao.newState)("ATTACHSPEECH",155);function IM(e,t,r){return(function(n){_M(o,n);function o(){return n!==null&&n.apply(this,arguments)||this}return o.prototype.serializeMml=function(i){if("outerHTML"in i)return i.outerHTML;if(typeof Element<"u"&&typeof window<"u"&&i instanceof Element){var a=window.document.createElement("div");return a.appendChild(i),a.innerHTML}return i.toString()},o.prototype.enrich=function(i,a){if(a===void 0&&(a=!1),!(this.state()>=ao.STATE.ENRICHED)){if(!this.isEscaped&&(i.options.enableEnrichment||a)){i.options.sre.speech!==LM&&(LM=i.options.sre.speech,ik.mathjax.retryAfter(I1.default.setupEngine(i.options.sre).then(function(){return I1.default.sreReady()})));var s=new i.options.MathItem("",t);try{var c=this.inputData.originalMml=r(this.root);s.math=this.serializeMml(I1.default.toEnriched(c)),s.display=this.display,s.compile(i),this.root=s.root,this.inputData.enrichedMml=s.math}catch(l){i.options.enrichError(i,this,l)}}this.state(ao.STATE.ENRICHED)}},o.prototype.attachSpeech=function(i){var a,s;if(!(this.state()>=ao.STATE.ATTACHSPEECH)){var c=this.root.attributes.get("aria-label")||this.getSpeech(this.root);if(c){var l=i.adaptor,u=this.typesetRoot;l.setAttribute(u,"aria-label",c);try{for(var p=Kd(l.childNodes(u)),d=p.next();!d.done;d=p.next()){var h=d.value;l.setAttribute(h,"aria-hidden","true")}}catch(f){a={error:f}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}this.state(ao.STATE.ATTACHSPEECH)}},o.prototype.getSpeech=function(i){var a,s,c=i.attributes;if(!c)return"";var l=c.getExplicit("data-semantic-speech");if(!c.getExplicit("data-semantic-parent")&&l)return l;try{for(var u=Kd(i.childNodes),p=u.next();!p.done;p=u.next()){var d=p.value,h=this.getSpeech(d);if(h!=null)return h}}catch(f){a={error:f}}finally{try{p&&!p.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}return""},o})(e)}ai.EnrichedMathItemMixin=IM;function PM(e,t){var r=(function(n){_M(o,n);function o(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=n.apply(this,nk([],rk(i),!1))||this;t.setMmlFactory(s.mmlFactory);var c=s.constructor.ProcessBits;c.has("enriched")||(c.allocate("enriched"),c.allocate("attach-speech"));var l=new ak.SerializedMmlVisitor(s.mmlFactory),u=function(p){return l.visitTree(p)};return s.options.MathItem=IM(s.options.MathItem,t,u),s}return o.prototype.attachSpeech=function(){var i,a;if(!this.processed.isSet("attach-speech")){try{for(var s=Kd(this.math),c=s.next();!c.done;c=s.next())c.value.attachSpeech(this)}catch(l){i={error:l}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}this.processed.set("attach-speech")}return this},o.prototype.enrich=function(){var i,a;if(!this.processed.isSet("enriched")){if(this.options.enableEnrichment)try{for(var s=Kd(this.math),c=s.next();!c.done;c=s.next())c.value.enrich(this)}catch(l){i={error:l}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}this.processed.set("enriched")}return this},o.prototype.enrichError=function(i,a,s){console.warn("Enrichment error:",s)},o.prototype.state=function(i,a){return a===void 0&&(a=!1),n.prototype.state.call(this,i,a),i<ao.STATE.ENRICHED&&this.processed.clear("enriched"),this},o})(e);return r.OPTIONS=bs(bs({},e.OPTIONS),{enableEnrichment:!0,enrichError:function(n,o,i){return n.enrichError(n,o,i)},renderActions:(0,RM.expandable)(bs(bs({},e.OPTIONS.renderActions),{enrich:[ao.STATE.ENRICHED],attachSpeech:[ao.STATE.ATTACHSPEECH]})),sre:(0,RM.expandable)({speech:"none",domain:"mathspeak",style:"default",locale:"en"})}),r}ai.EnrichedMathDocumentMixin=PM;function sk(e,t){return t.setAdaptor(e.adaptor),e.documentClass=PM(e.documentClass,t),e}wM=ai.EnrichHandler=sk;var Ri={},Jd={},Yd={},Fl={},vs={},Ss={},Ul={},Qd={},Es={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.KEY=void 0,(function(t){t[t.RETURN=13]="RETURN",t[t.ESCAPE=27]="ESCAPE",t[t.SPACE=32]="SPACE",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"})(e.KEY||(e.KEY={}))})(Es),ee(Es);var Zd={};Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.MOUSE=void 0,Zd.MOUSE={CLICK:"click",DBLCLICK:"dblclick",DOWN:"mousedown",UP:"mouseup",OVER:"mouseover",OUT:"mouseout",MOVE:"mousemove",SELECTEND:"selectend",SELECTSTART:"selectstart"},Object.defineProperty(Qd,"__esModule",{value:!0}),Qd.AbstractNavigatable=void 0;var Li=Es,Ii=Zd;Qd.AbstractNavigatable=(function(){function e(){this.bubble=!1}return e.prototype.bubbleKey=function(){this.bubble=!0},e.prototype.keydown=function(t){switch(t.keyCode){case Li.KEY.ESCAPE:this.escape(t);break;case Li.KEY.RIGHT:this.right(t);break;case Li.KEY.LEFT:this.left(t);break;case Li.KEY.UP:this.up(t);break;case Li.KEY.DOWN:this.down(t);break;case Li.KEY.RETURN:case Li.KEY.SPACE:this.space(t);break;default:return}this.bubble?this.bubble=!1:this.stop(t)},e.prototype.escape=function(t){},e.prototype.space=function(t){},e.prototype.left=function(t){},e.prototype.right=function(t){},e.prototype.up=function(t){},e.prototype.down=function(t){},e.prototype.stop=function(t){t&&(t.stopPropagation(),t.preventDefault(),t.cancelBubble=!0)},e.prototype.mousedown=function(t){return this.stop(t)},e.prototype.mouseup=function(t){return this.stop(t)},e.prototype.mouseover=function(t){return this.stop(t)},e.prototype.mouseout=function(t){return this.stop(t)},e.prototype.click=function(t){return this.stop(t)},e.prototype.addEvents=function(t){t.addEventListener(Ii.MOUSE.DOWN,this.mousedown.bind(this)),t.addEventListener(Ii.MOUSE.UP,this.mouseup.bind(this)),t.addEventListener(Ii.MOUSE.OVER,this.mouseover.bind(this)),t.addEventListener(Ii.MOUSE.OUT,this.mouseout.bind(this)),t.addEventListener(Ii.MOUSE.CLICK,this.click.bind(this)),t.addEventListener("keydown",this.keydown.bind(this)),t.addEventListener("dragstart",this.stop.bind(this)),t.addEventListener(Ii.MOUSE.SELECTSTART,this.stop.bind(this)),t.addEventListener("contextmenu",this.stop.bind(this)),t.addEventListener(Ii.MOUSE.DBLCLICK,this.stop.bind(this))},e})();var ck=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.MenuElement=void 0,Ul.MenuElement=(function(e){ck(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.addAttributes=function(r){for(var n in r)this.html.setAttribute(n,r[n])},Object.defineProperty(t.prototype,"html",{get:function(){return this._html||this.generateHtml(),this._html},set:function(r){this._html=r,this.addEvents(r)},enumerable:!1,configurable:!0}),t.prototype.generateHtml=function(){var r=document.createElement("div");r.classList.add(this.className),r.setAttribute("role",this.role),this.html=r},t.prototype.focus=function(){var r=this.html;r.setAttribute("tabindex","0"),r.focus()},t.prototype.unfocus=function(){var r=this.html;r.hasAttribute("tabindex")&&r.setAttribute("tabindex","-1");try{r.blur()}catch{}r.blur()},t})(Qd.AbstractNavigatable);var lk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.AbstractPostable=void 0,Ss.AbstractPostable=(function(e){lk(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.posted=!1,r}return t.prototype.isPosted=function(){return this.posted},t.prototype.post=function(r,n){this.posted||(typeof r<"u"&&typeof n<"u"&&this.html.setAttribute("style","left: "+r+"px; top: "+n+"px;"),this.display(),this.posted=!0)},t.prototype.unpost=function(){if(this.posted){var r=this.html;r.parentNode&&r.parentNode.removeChild(r),this.posted=!1}},t})(Ul.MenuElement);var Fo={},Hl={},bt={};Object.defineProperty(bt,"__esModule",{value:!0}),bt.HtmlAttrs=bt.HtmlClasses=void 0;var uk="CtxtMenu";function kM(e){return uk+"_"+e}function He(e){return kM(e)}function ql(e){return kM(e)}bt.HtmlClasses={ATTACHED:He("Attached"),CONTEXTMENU:He("ContextMenu"),MENU:He("Menu"),MENUARROW:He("MenuArrow"),MENUACTIVE:He("MenuActive"),MENUCHECK:He("MenuCheck"),MENUCLOSE:He("MenuClose"),MENUCOMBOBOX:He("MenuComboBox"),MENUDISABLED:He("MenuDisabled"),MENUFRAME:He("MenuFrame"),MENUITEM:He("MenuItem"),MENULABEL:He("MenuLabel"),MENURADIOCHECK:He("MenuRadioCheck"),MENUINPUTBOX:He("MenuInputBox"),MENURULE:He("MenuRule"),MENUSLIDER:He("MenuSlider"),MOUSEPOST:He("MousePost"),RTL:He("RTL"),INFO:He("Info"),INFOCLOSE:He("InfoClose"),INFOCONTENT:He("InfoContent"),INFOSIGNATURE:He("InfoSignature"),INFOTITLE:He("InfoTitle"),SLIDERVALUE:He("SliderValue"),SLIDERBAR:He("SliderBar"),SELECTION:He("Selection"),SELECTIONBOX:He("SelectionBox"),SELECTIONMENU:He("SelectionMenu"),SELECTIONDIVIDER:He("SelectionDivider"),SELECTIONITEM:He("SelectionItem")},bt.HtmlAttrs={COUNTER:ql("Counter"),KEYDOWNFUNC:ql("keydownFunc"),CONTEXTMENUFUNC:ql("contextmenuFunc"),OLDTAB:ql("Oldtabindex"),TOUCHFUNC:ql("TouchFunc")};var pk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.AbstractEntry=void 0;var dk=Ul,hk=bt;Hl.AbstractEntry=(function(e){pk(t,e);function t(r,n){var o=e.call(this)||this;return o._menu=r,o._type=n,o.className=hk.HtmlClasses.MENUITEM,o.role="menuitem",o.hidden=!1,o}return Object.defineProperty(t.prototype,"menu",{get:function(){return this._menu},set:function(r){this._menu=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),t.prototype.hide=function(){this.hidden=!0,this.menu.generateMenu()},t.prototype.show=function(){this.hidden=!1,this.menu.generateMenu()},t.prototype.isHidden=function(){return this.hidden},t})(dk.MenuElement);var tn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MenuUtil=void 0,(function(t){function r(s){var c=s.menu;c.baseMenu?c.baseMenu.unpost():c.unpost()}t.close=r;function n(s){var c=s.menu;return(c.baseMenu?c.baseMenu:c).store.active}t.getActiveElement=n;function o(s,c){console.error("ContextMenu Error: "+c)}t.error=o;function i(){return a++}t.counter=i;var a=0})(e.MenuUtil||(e.MenuUtil={}))})(tn),ee(tn);var fk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),mk=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.AbstractItem=void 0;var yk=Hl,BM=tn,eh=bt;Fo.AbstractItem=(function(e){fk(t,e);function t(r,n,o,i){var a=e.call(this,r,n)||this;return a._content=o,a.disabled=!1,a.callbacks=[],a._id=i||o,a}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(r){this._content=r,this.generateHtml(),this.menu&&this.menu.generateHtml()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t.prototype.press=function(){this.disabled||(this.executeAction(),this.executeCallbacks_())},t.prototype.executeAction=function(){},t.prototype.registerCallback=function(r){this.callbacks.indexOf(r)===-1&&this.callbacks.push(r)},t.prototype.unregisterCallback=function(r){var n=this.callbacks.indexOf(r);n!==-1&&this.callbacks.splice(n,1)},t.prototype.mousedown=function(r){this.press(),this.stop(r)},t.prototype.mouseover=function(r){this.focus(),this.stop(r)},t.prototype.mouseout=function(r){this.deactivate(),this.stop(r)},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this);var r=this.html;r.setAttribute("aria-disabled","false"),r.textContent=this.content},t.prototype.activate=function(){this.disabled||this.html.classList.add(eh.HtmlClasses.MENUACTIVE)},t.prototype.deactivate=function(){this.html.classList.remove(eh.HtmlClasses.MENUACTIVE)},t.prototype.focus=function(){this.menu.focused=this,e.prototype.focus.call(this),this.activate()},t.prototype.unfocus=function(){this.deactivate(),e.prototype.unfocus.call(this)},t.prototype.escape=function(r){BM.MenuUtil.close(this)},t.prototype.up=function(r){this.menu.up(r)},t.prototype.down=function(r){this.menu.down(r)},t.prototype.left=function(r){this.menu.left(r)},t.prototype.right=function(r){this.menu.right(r)},t.prototype.space=function(r){this.press()},t.prototype.disable=function(){this.disabled=!0;var r=this.html;r.classList.add(eh.HtmlClasses.MENUDISABLED),r.setAttribute("aria-disabled","true")},t.prototype.enable=function(){this.disabled=!1;var r=this.html;r.classList.remove(eh.HtmlClasses.MENUDISABLED),r.removeAttribute("aria-disabled")},t.prototype.executeCallbacks_=function(){var r,n;try{for(var o=mk(this.callbacks),i=o.next();!i.done;i=o.next()){var a=i.value;try{a(this)}catch(s){BM.MenuUtil.error(s,"Callback for menu entry "+this.id+" failed.")}}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},t})(yk.AbstractEntry);var xs={},gk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(xs,"__esModule",{value:!0}),xs.Submenu=void 0;var bk=Fo,vk=bt;xs.Submenu=(function(e){gk(t,e);function t(r,n,o){var i=e.call(this,r,"submenu",n,o)||this;return i._submenu=null,i}return t.fromJson=function(r,n,o){var i=n.content,a=n.menu,s=n.id,c=new this(o,i,s);return c.submenu=r.get("subMenu")(r,a,c),c},Object.defineProperty(t.prototype,"submenu",{get:function(){return this._submenu},set:function(r){this._submenu=r},enumerable:!1,configurable:!0}),t.prototype.mouseover=function(r){this.focus(),this.stop(r)},t.prototype.mouseout=function(r){this.stop(r)},t.prototype.unfocus=function(){if(!this.submenu.isPosted()){e.prototype.unfocus.call(this);return}if(this.menu.focused!==this){e.prototype.unfocus.call(this),this.menu.unpostSubmenus();return}this.html.setAttribute("tabindex","-1"),this.html.blur()},t.prototype.focus=function(){e.prototype.focus.call(this),!this.submenu.isPosted()&&!this.disabled&&this.submenu.post()},t.prototype.executeAction=function(){this.submenu.isPosted()?this.submenu.unpost():this.submenu.post()},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this);var r=this.html;this.span=document.createElement("span"),this.span.textContent="►",this.span.classList.add(vk.HtmlClasses.MENUARROW),r.appendChild(this.span),r.setAttribute("aria-haspopup","true")},t.prototype.left=function(r){this.submenu.isPosted()?this.submenu.unpost():e.prototype.left.call(this,r)},t.prototype.right=function(r){this.submenu.isPosted()?this.submenu.down(r):this.submenu.post()},t.prototype.toJson=function(){return{type:""}},t})(bk.AbstractItem);var Sk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),P1=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(vs,"__esModule",{value:!0}),vs.AbstractMenu=void 0;var Ek=Ss,DM=Fo,jM=bt,xk=xs;vs.AbstractMenu=(function(e){Sk(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.className=jM.HtmlClasses.CONTEXTMENU,r.role="menu",r._items=[],r._baseMenu=null,r}return Object.defineProperty(t.prototype,"baseMenu",{get:function(){return this._baseMenu},set:function(r){this._baseMenu=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this._items},set:function(r){this._items=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pool",{get:function(){return this.variablePool},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focused",{get:function(){return this._focused},set:function(r){if(this._focused!==r){this._focused||this.unfocus();var n=this._focused;this._focused=r,n&&n.unfocus()}},enumerable:!1,configurable:!0}),t.prototype.up=function(r){var n=this.items.filter(function(i){return i instanceof DM.AbstractItem&&!i.isHidden()});if(n.length!==0){if(!this.focused){n[n.length-1].focus();return}var o=n.indexOf(this.focused);o!==-1&&(o=o?--o:n.length-1,n[o].focus())}},t.prototype.down=function(r){var n=this.items.filter(function(i){return i instanceof DM.AbstractItem&&!i.isHidden()});if(n.length!==0){if(!this.focused){n[0].focus();return}var o=n.indexOf(this.focused);o!==-1&&(o++,o=o===n.length?0:o,n[o].focus())}},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this),this.generateMenu()},t.prototype.generateMenu=function(){var r,n,o=this.html;o.classList.add(jM.HtmlClasses.MENU);try{for(var i=P1(this.items),a=i.next();!a.done;a=i.next()){var s=a.value;if(!s.isHidden()){o.appendChild(s.html);continue}var c=s.html;c.parentNode&&c.parentNode.removeChild(c)}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},t.prototype.post=function(r,n){this.variablePool.update(),e.prototype.post.call(this,r,n)},t.prototype.unpostSubmenus=function(){var r,n,o=this.items.filter(function(c){return c instanceof xk.Submenu});try{for(var i=P1(o),a=i.next();!a.done;a=i.next()){var s=a.value;s.submenu.unpost(),s!==this.focused&&s.unfocus()}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},t.prototype.unpost=function(){e.prototype.unpost.call(this),this.unpostSubmenus(),this.focused=null},t.prototype.find=function(r){var n,o;try{for(var i=P1(this.items),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.type!=="rule"){if(s.id===r)return s;if(s.type==="submenu"){var c=s.submenu.find(r);if(c)return c}}}}catch(l){n={error:l}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return null},t})(Ek.AbstractPostable);var th={},FM=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(th,"__esModule",{value:!0}),th.MenuStore=void 0;var Mk=tn,Hr=bt,Ok=Es;th.MenuStore=(function(){function e(t){this.menu=t,this.store=[],this._active=null,this.counter=0,this.attachedClass=Hr.HtmlClasses.ATTACHED+"_"+Mk.MenuUtil.counter(),this.taborder=!0,this.attrMap={}}return Object.defineProperty(e.prototype,"active",{get:function(){return this._active},set:function(t){do{if(this.store.indexOf(t)!==-1){this._active=t;break}t=t.parentNode}while(t)},enumerable:!1,configurable:!0}),e.prototype.next=function(){var t=this.store.length;if(t===0)return this.active=null,null;var r=this.store.indexOf(this.active);return r=r===-1?0:r<t-1?r+1:0,this.active=this.store[r],this.active},e.prototype.previous=function(){var t=this.store.length;if(t===0)return this.active=null,null;var r=t-1,n=this.store.indexOf(this.active);return n=n===-1||n===0?r:n-1,this.active=this.store[n],this.active},e.prototype.clear=function(){this.remove(this.store)},e.prototype.insert=function(t){var r,n,o=t instanceof HTMLElement?[t]:t;try{for(var i=FM(o),a=i.next();!a.done;a=i.next()){var s=a.value;this.insertElement(s)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}this.sort()},e.prototype.remove=function(t){var r,n,o=t instanceof HTMLElement?[t]:t;try{for(var i=FM(o),a=i.next();!a.done;a=i.next()){var s=a.value;this.removeElement(s)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}this.sort()},e.prototype.inTaborder=function(t){this.taborder&&!t&&this.removeTaborder(),!this.taborder&&t&&this.insertTaborder(),this.taborder=t},e.prototype.insertTaborder=function(){this.taborder&&this.insertTaborder_()},e.prototype.removeTaborder=function(){this.taborder&&this.removeTaborder_()},e.prototype.insertElement=function(t){t.classList.contains(this.attachedClass)||(t.classList.add(this.attachedClass),this.taborder&&this.addTabindex(t),this.addEvents(t))},e.prototype.removeElement=function(t){t.classList.contains(this.attachedClass)&&(t.classList.remove(this.attachedClass),this.taborder&&this.removeTabindex(t),this.removeEvents(t))},e.prototype.sort=function(){var t=document.getElementsByClassName(this.attachedClass);this.store=[].slice.call(t)},e.prototype.insertTaborder_=function(){this.store.forEach(function(t){return t.setAttribute("tabindex","0")})},e.prototype.removeTaborder_=function(){this.store.forEach(function(t){return t.setAttribute("tabindex","-1")})},e.prototype.addTabindex=function(t){t.hasAttribute("tabindex")&&t.setAttribute(Hr.HtmlAttrs.OLDTAB,t.getAttribute("tabindex")),t.setAttribute("tabindex","0")},e.prototype.removeTabindex=function(t){t.hasAttribute(Hr.HtmlAttrs.OLDTAB)?(t.setAttribute("tabindex",t.getAttribute(Hr.HtmlAttrs.OLDTAB)),t.removeAttribute(Hr.HtmlAttrs.OLDTAB)):t.removeAttribute("tabindex")},e.prototype.addEvents=function(t){t.hasAttribute(Hr.HtmlAttrs.COUNTER)||(this.addEvent(t,"contextmenu",this.menu.post.bind(this.menu)),this.addEvent(t,"keydown",this.keydown.bind(this)),t.setAttribute(Hr.HtmlAttrs.COUNTER,this.counter.toString()),this.counter++)},e.prototype.addEvent=function(t,r,n){var o=Hr.HtmlAttrs[r.toUpperCase()+"FUNC"];this.attrMap[o+this.counter]=n,t.addEventListener(r,n)},e.prototype.removeEvents=function(t){if(t.hasAttribute(Hr.HtmlAttrs.COUNTER)){var r=t.getAttribute(Hr.HtmlAttrs.COUNTER);this.removeEvent(t,"contextmenu",r),this.removeEvent(t,"keydown",r),t.removeAttribute(Hr.HtmlAttrs.COUNTER)}},e.prototype.removeEvent=function(t,r,n){var o=Hr.HtmlAttrs[r.toUpperCase()+"FUNC"],i=this.attrMap[o+n];t.removeEventListener(r,i)},e.prototype.keydown=function(t){t.keyCode===Ok.KEY.SPACE&&(this.menu.post(t),t.preventDefault(),t.stopImmediatePropagation())},e})();var rh={};Object.defineProperty(rh,"__esModule",{value:!0}),rh.VariablePool=void 0,rh.VariablePool=(function(){function e(){this.pool={}}return e.prototype.insert=function(t){this.pool[t.name]=t},e.prototype.lookup=function(t){return this.pool[t]},e.prototype.remove=function(t){delete this.pool[t]},e.prototype.update=function(){for(var t in this.pool)this.pool[t].update()},e})();var Ak=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.ContextMenu=void 0;var Tk=vs,Ck=bt,Nk=th,_k=rh;Fl.ContextMenu=(function(e){Ak(t,e);function t(r){var n=e.call(this)||this;return n.factory=r,n.id="",n.moving=!1,n._store=new Nk.MenuStore(n),n.widgets=[],n.variablePool=new _k.VariablePool,n}return t.fromJson=function(r,n){var o=n.pool,i=n.items,a=n.id,s=a===void 0?"":a,c=new this(r);c.id=s;var l=r.get("variable");return o.forEach(function(u){return l(r,u,c.pool)}),c.items=r.get("items")(r,i,c),c},t.prototype.generateHtml=function(){this.isPosted()&&this.unpost(),e.prototype.generateHtml.call(this),this._frame=document.createElement("div"),this._frame.classList.add(Ck.HtmlClasses.MENUFRAME);var r="left: 0px; top: 0px; z-index: 200; width: 100%; height: 100%; border: 0px; padding: 0px; margin: 0px;";this._frame.setAttribute("style","position: absolute; "+r);var n=document.createElement("div");n.setAttribute("style","position: fixed; "+r),this._frame.appendChild(n),n.addEventListener("mousedown",(function(o){this.unpost(),this.unpostWidgets(),this.stop(o)}).bind(this))},t.prototype.display=function(){document.body.appendChild(this.frame),this.frame.appendChild(this.html),this.focus()},t.prototype.escape=function(r){this.unpost(),this.unpostWidgets()},t.prototype.unpost=function(){if(e.prototype.unpost.call(this),!(this.widgets.length>0)){this.frame.parentNode.removeChild(this.frame);var r=this.store;this.moving||r.insertTaborder(),r.active.focus()}},t.prototype.left=function(r){this.move_(this.store.previous())},t.prototype.right=function(r){this.move_(this.store.next())},Object.defineProperty(t.prototype,"frame",{get:function(){return this._frame},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"store",{get:function(){return this._store},enumerable:!1,configurable:!0}),t.prototype.post=function(r,n){if(typeof n<"u"){this.moving||this.store.removeTaborder(),e.prototype.post.call(this,r,n);return}var o=r,i;o instanceof Event?(i=o.target,this.stop(o)):i=o;var a,s;if(o instanceof MouseEvent&&(a=o.pageX,s=o.pageY,!a&&!s&&o.clientX&&(a=o.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,s=o.clientY+document.body.scrollTop+document.documentElement.scrollTop)),!a&&!s&&i){var c=window.pageXOffset||document.documentElement.scrollLeft,l=window.pageYOffset||document.documentElement.scrollTop,u=i.getBoundingClientRect();a=(u.right+u.left)/2+c,s=(u.bottom+u.top)/2+l}this.store.active=i,this.anchor=this.store.active;var p=this.html,d=5;a+p.offsetWidth>document.body.offsetWidth-d&&(a=document.body.offsetWidth-p.offsetWidth-d),this.post(a,s)},t.prototype.registerWidget=function(r){this.widgets.push(r)},t.prototype.unregisterWidget=function(r){var n=this.widgets.indexOf(r);n>-1&&this.widgets.splice(n,1),this.widgets.length===0&&this.unpost()},t.prototype.unpostWidgets=function(){this.widgets.forEach(function(r){return r.unpost()})},t.prototype.toJson=function(){return{type:""}},t.prototype.move_=function(r){this.anchor&&r!==this.anchor&&(this.moving=!0,this.unpost(),this.post(r),this.moving=!1)},t})(Tk.AbstractMenu);var wk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),nh=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),UM=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(Yd,"__esModule",{value:!0}),Yd.MJContextMenu=void 0;var Rk=Fl,Lk=xs;Yd.MJContextMenu=(function(e){wk(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mathItem=null,r.annotation="",r.annotationTypes={},r}return t.prototype.post=function(r,n){if(this.mathItem){if(n!==void 0){var o=this.mathItem.inputJax.name,i=this.findID("Show","Original");i.content=o==="MathML"?"Original MathML":o+" Commands";var a=this.findID("Copy","Original");a.content=i.content;var s=this.findID("Settings","semantics");o==="MathML"?s.disable():s.enable(),this.getAnnotationMenu(),this.dynamicSubmenus()}e.prototype.post.call(this,r,n)}},t.prototype.unpost=function(){e.prototype.unpost.call(this),this.mathItem=null},t.prototype.findID=function(){for(var r,n,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var a=this,s=null;try{for(var c=nh(o),l=c.next();!l.done;l=c.next()){var u=l.value;a?(s=a.find(u),a=s instanceof Lk.Submenu?s.submenu:null):s=null}}catch(p){r={error:p}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return s},t.prototype.getAnnotationMenu=function(){var r=this,n=this.getAnnotations(this.getSemanticNode());this.createAnnotationMenu("Show",n,function(){return r.showAnnotation.post()}),this.createAnnotationMenu("Copy",n,function(){return r.copyAnnotation()})},t.prototype.getSemanticNode=function(){for(var r=this.mathItem.root;r&&!r.isKind("semantics");){if(r.isToken||r.childNodes.length!==1)return null;r=r.childNodes[0]}return r},t.prototype.getAnnotations=function(r){var n,o,i=[];if(!r)return i;try{for(var a=nh(r.childNodes),s=a.next();!s.done;s=a.next()){var c=s.value;if(c.isKind("annotation")){var l=this.annotationMatch(c);if(l){var u=c.childNodes.reduce(function(p,d){return p+d.toString()},"");i.push([l,u])}}}}catch(p){n={error:p}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},t.prototype.annotationMatch=function(r){var n,o,i=r.attributes.get("encoding");try{for(var a=nh(Object.keys(this.annotationTypes)),s=a.next();!s.done;s=a.next()){var c=s.value;if(this.annotationTypes[c].indexOf(i)>=0)return c}}catch(l){n={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return null},t.prototype.createAnnotationMenu=function(r,n,o){var i=this,a=this.findID(r,"Annotation");a.submenu=this.factory.get("subMenu")(this.factory,{items:n.map(function(s){var c=UM(s,2),l=c[0],u=c[1];return{type:"command",id:l,content:l,action:function(){i.annotation=u,o()}}}),id:"annotations"},a),n.length?a.enable():a.disable()},t.prototype.dynamicSubmenus=function(){var r,n;try{for(var o=nh(t.DynamicSubmenus),i=o.next();!i.done;i=o.next()){var a=UM(i.value,2),s=a[0],c=a[1],l=this.find(s);if(l){var u=c(this,l);l.submenu=u,u.items.length?l.enable():l.disable()}}}catch(p){r={error:p}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},t.DynamicSubmenus=new Map,t})(Rk.ContextMenu);var oh={},Ik=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(oh,"__esModule",{value:!0}),oh.MmlVisitor=void 0;var Pk=na,kk=tt;oh.MmlVisitor=(function(e){Ik(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.options={texHints:!0,semantics:!1},r.mathItem=null,r}return t.prototype.visitTree=function(r,n,o){return n===void 0&&(n=null),o===void 0&&(o={}),this.mathItem=n,(0,kk.userOptions)(this.options,o),this.visitNode(r,"")},t.prototype.visitTeXAtomNode=function(r,n){return this.options.texHints?e.prototype.visitTeXAtomNode.call(this,r,n):r.childNodes[0]&&r.childNodes[0].childNodes.length===1?this.visitNode(r.childNodes[0],n):n+"<mrow"+this.getAttributes(r)+`>
41
+ `+this.childNodeMml(r,n+" ",`
42
+ `)+n+"</mrow>"},t.prototype.visitMathNode=function(r,n){if(!this.options.semantics||this.mathItem.inputJax.name!=="TeX")return e.prototype.visitDefault.call(this,r,n);var o=r.childNodes.length&&r.childNodes[0].childNodes.length>1;return n+"<math"+this.getAttributes(r)+`>
43
+ `+n+` <semantics>
44
+ `+(o?n+` <mrow>
45
+ `:"")+this.childNodeMml(r,n+(o?" ":" "),`
46
+ `)+(o?n+` </mrow>
47
+ `:"")+n+' <annotation encoding="application/x-tex">'+this.mathItem.math+`</annotation>
48
+ `+n+` </semantics>
49
+ `+n+"</math>"},t})(Pk.SerializedMmlVisitor);var ih={},Ms={},ah={},Bk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(ah,"__esModule",{value:!0}),ah.CloseButton=void 0;var Dk=Ss,jk=bt;ah.CloseButton=(function(e){Bk(t,e);function t(r){var n=e.call(this)||this;return n.element=r,n.className=jk.HtmlClasses.MENUCLOSE,n.role="button",n}return t.prototype.generateHtml=function(){var r=document.createElement("span");r.classList.add(this.className),r.setAttribute("role",this.role),r.setAttribute("tabindex","0");var n=document.createElement("span");n.textContent="×",r.appendChild(n),this.html=r},t.prototype.display=function(){},t.prototype.unpost=function(){e.prototype.unpost.call(this),this.element.unpost()},t.prototype.keydown=function(r){this.bubbleKey(),e.prototype.keydown.call(this,r)},t.prototype.space=function(r){this.unpost(),this.stop(r)},t.prototype.mousedown=function(r){this.unpost(),this.stop(r)},t})(Dk.AbstractPostable);var Fk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.Info=void 0;var Uk=ah,Pi=bt;Ms.Info=(function(e){Fk(t,e);function t(r,n,o){var i=e.call(this)||this;return i.title=r,i.signature=o,i.className=Pi.HtmlClasses.INFO,i.role="dialog",i.contentDiv=i.generateContent(),i.close=i.generateClose(),i.content=n||(function(){return""}),i}return t.prototype.attachMenu=function(r){this.menu=r},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this);var r=this.html;r.appendChild(this.generateTitle()),r.appendChild(this.contentDiv),r.appendChild(this.generateSignature()),r.appendChild(this.close.html),r.setAttribute("tabindex","0")},t.prototype.post=function(){e.prototype.post.call(this);var r=document.documentElement,n=this.html,o=window.innerHeight||r.clientHeight||r.scrollHeight||0,i=Math.floor(-n.offsetWidth/2),a=Math.floor((o-n.offsetHeight)/3);n.setAttribute("style","margin-left: "+i+"px; top: "+a+"px;"),window.event instanceof MouseEvent&&n.classList.add(Pi.HtmlClasses.MOUSEPOST),n.focus()},t.prototype.display=function(){this.menu.registerWidget(this),this.contentDiv.innerHTML=this.content();var r=this.menu.html;r.parentNode&&r.parentNode.removeChild(r),this.menu.frame.appendChild(this.html)},t.prototype.click=function(r){},t.prototype.keydown=function(r){this.bubbleKey(),e.prototype.keydown.call(this,r)},t.prototype.escape=function(r){this.unpost()},t.prototype.unpost=function(){e.prototype.unpost.call(this),this.html.classList.remove(Pi.HtmlClasses.MOUSEPOST),this.menu.unregisterWidget(this)},t.prototype.generateClose=function(){var r=new Uk.CloseButton(this),n=r.html;return n.classList.add(Pi.HtmlClasses.INFOCLOSE),n.setAttribute("aria-label","Close Dialog Box"),r},t.prototype.generateTitle=function(){var r=document.createElement("span");return r.innerHTML=this.title,r.classList.add(Pi.HtmlClasses.INFOTITLE),r},t.prototype.generateContent=function(){var r=document.createElement("div");return r.classList.add(Pi.HtmlClasses.INFOCONTENT),r.setAttribute("tabindex","0"),r},t.prototype.generateSignature=function(){var r=document.createElement("span");return r.innerHTML=this.signature,r.classList.add(Pi.HtmlClasses.INFOSIGNATURE),r},t.prototype.toJson=function(){return{type:""}},t})(Ss.AbstractPostable);var Hk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(ih,"__esModule",{value:!0}),ih.SelectableInfo=void 0;var qk=Ms,Gk=bt;ih.SelectableInfo=(function(e){Hk(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.addEvents=function(r){var n=this;r.addEventListener("keypress",function(o){o.key==="a"&&(o.ctrlKey||o.metaKey)&&(n.selectAll(),n.stop(o))})},t.prototype.selectAll=function(){document.getSelection().selectAllChildren(this.html.querySelector("pre"))},t.prototype.copyToClipboard=function(){this.selectAll();try{document.execCommand("copy")}catch(r){alert("Can't copy to clipboard: "+r.message)}document.getSelection().removeAllRanges()},t.prototype.generateHtml=function(){var r=this;e.prototype.generateHtml.call(this);var n=this.html.querySelector("span."+Gk.HtmlClasses.INFOSIGNATURE).appendChild(document.createElement("input"));n.type="button",n.value="Copy to Clipboard",n.addEventListener("click",function(o){return r.copyToClipboard()})},t})(qk.Info);var sh={},ch={},Xk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(ch,"__esModule",{value:!0}),ch.Command=void 0;var Vk=Fo,k1=tn;ch.Command=(function(e){Xk(t,e);function t(r,n,o,i){var a=e.call(this,r,"command",n,i)||this;return a.command=o,a}return t.fromJson=function(r,n,o){var i=n.content,a=n.action,s=n.id;return new this(o,i,a,s)},t.prototype.executeAction=function(){try{this.command(k1.MenuUtil.getActiveElement(this))}catch(r){k1.MenuUtil.error(r,"Illegal command callback.")}k1.MenuUtil.close(this)},t.prototype.toJson=function(){return{type:""}},t})(Vk.AbstractItem);var lh={};Object.defineProperty(lh,"__esModule",{value:!0}),lh.Variable=void 0;var HM=tn;lh.Variable=(function(){function e(t,r,n){this._name=t,this.getter=r,this.setter=n,this.items=[]}return e.fromJson=function(t,r,n){var o=r.name,i=r.getter,a=r.setter,s=new this(o,i,a);n.insert(s)},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.getValue=function(t){try{return this.getter(t)}catch(r){return HM.MenuUtil.error(r,"Command of variable "+this.name+" failed."),null}},e.prototype.setValue=function(t,r){try{this.setter(t,r)}catch(n){HM.MenuUtil.error(n,"Command of variable "+this.name+" failed.")}this.update()},e.prototype.register=function(t){this.items.indexOf(t)===-1&&this.items.push(t)},e.prototype.unregister=function(t){var r=this.items.indexOf(t);r!==-1&&this.items.splice(r,1)},e.prototype.update=function(){this.items.forEach(function(t){return t.update()})},e.prototype.registerCallback=function(t){this.items.forEach(function(r){return r.registerCallback(t)})},e.prototype.unregisterCallback=function(t){this.items.forEach(function(r){return r.unregisterCallback(t)})},e.prototype.toJson=function(){return{type:"variable",name:this.name,getter:this.getter.toString(),setter:this.setter.toString()}},e})();var uh={},ki={},Wk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(ki,"__esModule",{value:!0}),ki.AbstractVariableItem=void 0,ki.AbstractVariableItem=(function(e){Wk(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this);var r=this.html;this.span||this.generateSpan(),r.appendChild(this.span),this.update()},t.prototype.register=function(){this.variable.register(this)},t.prototype.unregister=function(){this.variable.unregister(this)},t.prototype.update=function(){this.updateAria(),this.span&&this.updateSpan()},t})(Fo.AbstractItem);var $k=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(uh,"__esModule",{value:!0}),uh.Checkbox=void 0;var zk=ki,Kk=tn,Jk=bt;uh.Checkbox=(function(e){$k(t,e);function t(r,n,o,i){var a=e.call(this,r,"checkbox",n,i)||this;return a.role="menuitemcheckbox",a.variable=r.pool.lookup(o),a.register(),a}return t.fromJson=function(r,n,o){var i=n.content,a=n.variable,s=n.id;return new this(o,i,a,s)},t.prototype.executeAction=function(){this.variable.setValue(!this.variable.getValue()),Kk.MenuUtil.close(this)},t.prototype.generateSpan=function(){this.span=document.createElement("span"),this.span.textContent="✓",this.span.classList.add(Jk.HtmlClasses.MENUCHECK)},t.prototype.updateAria=function(){this.html.setAttribute("aria-checked",this.variable.getValue()?"true":"false")},t.prototype.updateSpan=function(){this.span.style.display=this.variable.getValue()?"":"none"},t.prototype.toJson=function(){return{type:""}},t})(zk.AbstractVariableItem);var ph={},Yk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(ph,"__esModule",{value:!0}),ph.Combo=void 0;var Qk=ki,B1=tn,qM=bt,GM=Es;ph.Combo=(function(e){Yk(t,e);function t(r,n,o,i){var a=e.call(this,r,"combobox",n,i)||this;return a.role="combobox",a.inputEvent=!1,a.variable=r.pool.lookup(o),a.register(),a}return t.fromJson=function(r,n,o){var i=n.content,a=n.variable,s=n.id;return new this(o,i,a,s)},t.prototype.executeAction=function(){this.variable.setValue(this.input.value,B1.MenuUtil.getActiveElement(this))},t.prototype.space=function(r){e.prototype.space.call(this,r),B1.MenuUtil.close(this)},t.prototype.focus=function(){e.prototype.focus.call(this),this.input.focus()},t.prototype.unfocus=function(){e.prototype.unfocus.call(this),this.updateSpan()},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this),this.html.classList.add(qM.HtmlClasses.MENUCOMBOBOX)},t.prototype.generateSpan=function(){this.span=document.createElement("span"),this.span.classList.add(qM.HtmlClasses.MENUINPUTBOX),this.input=document.createElement("input"),this.input.addEventListener("keydown",this.inputKey.bind(this)),this.input.setAttribute("size","10em"),this.input.setAttribute("type","text"),this.input.setAttribute("tabindex","-1"),this.span.appendChild(this.input)},t.prototype.inputKey=function(r){this.bubbleKey(),this.inputEvent=!0},t.prototype.keydown=function(r){if(this.inputEvent&&r.keyCode!==GM.KEY.ESCAPE&&r.keyCode!==GM.KEY.RETURN){this.inputEvent=!1,r.stopPropagation();return}e.prototype.keydown.call(this,r),r.stopPropagation()},t.prototype.updateAria=function(){},t.prototype.updateSpan=function(){var r;try{r=this.variable.getValue(B1.MenuUtil.getActiveElement(this))}catch{r=""}this.input.value=r},t.prototype.toJson=function(){return{type:""}},t})(Qk.AbstractVariableItem);var dh={},Zk=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(dh,"__esModule",{value:!0}),dh.Label=void 0;var eB=Fo,tB=bt;dh.Label=(function(e){Zk(t,e);function t(r,n,o){return e.call(this,r,"label",n,o)||this}return t.fromJson=function(r,n,o){var i=n.content,a=n.id;return new this(o,i,a)},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this),this.html.classList.add(tB.HtmlClasses.MENULABEL)},t.prototype.toJson=function(){return{type:""}},t})(eB.AbstractItem);var hh={},rB=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(hh,"__esModule",{value:!0}),hh.Radio=void 0;var nB=ki,oB=tn,iB=bt;hh.Radio=(function(e){rB(t,e);function t(r,n,o,i){var a=e.call(this,r,"radio",n,i)||this;return a.role="menuitemradio",a.variable=r.pool.lookup(o),a.register(),a}return t.fromJson=function(r,n,o){var i=n.content,a=n.variable,s=n.id;return new this(o,i,a,s)},t.prototype.executeAction=function(){this.variable.setValue(this.id),oB.MenuUtil.close(this)},t.prototype.generateSpan=function(){this.span=document.createElement("span"),this.span.textContent="✓",this.span.classList.add(iB.HtmlClasses.MENURADIOCHECK)},t.prototype.updateAria=function(){this.html.setAttribute("aria-checked",this.variable.getValue()===this.id?"true":"false")},t.prototype.updateSpan=function(){this.span.style.display=this.variable.getValue()===this.id?"":"none"},t.prototype.toJson=function(){return{type:""}},t})(nB.AbstractVariableItem);var Gl={},aB=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.Rule=void 0;var sB=Hl,XM=bt;Gl.Rule=(function(e){aB(t,e);function t(r){var n=e.call(this,r,"rule")||this;return n.className=XM.HtmlClasses.MENUITEM,n.role="separator",n}return t.fromJson=function(r,n,o){return new this(o)},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this);var r=this.html;r.classList.add(XM.HtmlClasses.MENURULE),r.setAttribute("aria-orientation","vertical")},t.prototype.addEvents=function(r){},t.prototype.toJson=function(){return{type:"rule"}},t})(sB.AbstractEntry);var fh={},cB=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(fh,"__esModule",{value:!0}),fh.Slider=void 0;var lB=ki,Xl=tn,D1=bt,mh=Es;fh.Slider=(function(e){cB(t,e);function t(r,n,o,i){var a=e.call(this,r,"slider",n,i)||this;return a.role="slider",a.labelId="ctx_slideLabel"+Xl.MenuUtil.counter(),a.valueId="ctx_slideValue"+Xl.MenuUtil.counter(),a.inputEvent=!1,a.variable=r.pool.lookup(o),a.register(),a}return t.fromJson=function(r,n,o){var i=n.content,a=n.variable,s=n.id;return new this(o,i,a,s)},t.prototype.executeAction=function(){this.variable.setValue(this.input.value,Xl.MenuUtil.getActiveElement(this)),this.update()},t.prototype.space=function(r){e.prototype.space.call(this,r),Xl.MenuUtil.close(this)},t.prototype.focus=function(){e.prototype.focus.call(this),this.input.focus()},t.prototype.unfocus=function(){e.prototype.unfocus.call(this),this.updateSpan()},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this),this.html.classList.add(D1.HtmlClasses.MENUSLIDER),this.valueSpan=document.createElement("span"),this.valueSpan.setAttribute("id",this.valueId),this.valueSpan.classList.add(D1.HtmlClasses.SLIDERVALUE),this.html.appendChild(this.valueSpan)},t.prototype.generateSpan=function(){this.span=document.createElement("span"),this.labelSpan=document.createElement("span"),this.labelSpan.setAttribute("id",this.labelId),this.labelSpan.appendChild(this.html.childNodes[0]),this.html.appendChild(this.labelSpan),this.input=document.createElement("input"),this.input.setAttribute("type","range"),this.input.setAttribute("min","0"),this.input.setAttribute("max","100"),this.input.setAttribute("aria-valuemin","0"),this.input.setAttribute("aria-valuemax","100"),this.input.setAttribute("aria-labelledby",this.labelId),this.input.addEventListener("keydown",this.inputKey.bind(this)),this.input.addEventListener("input",this.executeAction.bind(this)),this.input.classList.add(D1.HtmlClasses.SLIDERBAR),this.span.appendChild(this.input)},t.prototype.inputKey=function(r){this.inputEvent=!0},t.prototype.mousedown=function(r){r.stopPropagation()},t.prototype.mouseup=function(r){event.stopPropagation()},t.prototype.keydown=function(r){var n=r.keyCode;if(n===mh.KEY.UP||n===mh.KEY.DOWN){r.preventDefault(),e.prototype.keydown.call(this,r);return}if(this.inputEvent&&n!==mh.KEY.ESCAPE&&n!==mh.KEY.RETURN){this.inputEvent=!1,r.stopPropagation();return}e.prototype.keydown.call(this,r),r.stopPropagation()},t.prototype.updateAria=function(){var r=this.variable.getValue();r&&this.input&&(this.input.setAttribute("aria-valuenow",r),this.input.setAttribute("aria-valuetext",r+"%"))},t.prototype.updateSpan=function(){var r;try{r=this.variable.getValue(Xl.MenuUtil.getActiveElement(this)),this.valueSpan.innerHTML=r+"%"}catch{r=""}this.input.value=r},t.prototype.toJson=function(){return{type:""}},t})(lB.AbstractVariableItem);var yh={},uB=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(yh,"__esModule",{value:!0}),yh.SubMenu=void 0,yh.SubMenu=(function(e){uB(t,e);function t(r){var n=e.call(this)||this;return n._anchor=r,n.variablePool=n.anchor.menu.pool,n.setBaseMenu(),n}return t.fromJson=function(r,n,o){var i=n.items,a=new this(o);return a.items=r.get("items")(r,i,a),a},Object.defineProperty(t.prototype,"anchor",{get:function(){return this._anchor},enumerable:!1,configurable:!0}),t.prototype.post=function(){if(this.anchor.menu.isPosted()){for(var r=5,n=this.anchor.html,o=this.html,i=this.baseMenu.frame,a=n.offsetWidth,s=a-2,c=0;n&&n!==i;)s+=n.offsetLeft,c+=n.offsetTop,n=n.parentNode;s+o.offsetWidth>document.body.offsetWidth-r&&(s=Math.max(r,s-a-o.offsetWidth+6)),e.prototype.post.call(this,s,c)}},t.prototype.display=function(){this.baseMenu.frame.appendChild(this.html)},t.prototype.setBaseMenu=function(){var r=this;do r=r.anchor.menu;while(r instanceof t);this.baseMenu=r},t.prototype.left=function(r){this.focused=null,this.anchor.focus()},t.prototype.toJson=function(){return{type:""}},t})(vs.AbstractMenu);var Os={},VM=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),pB=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(Os,"__esModule",{value:!0}),Os.SelectionBox=Os.SelectionMenu=void 0;var dB=tn,Vl=bt,hB=vs,fB=Ms;Os.SelectionMenu=(function(e){VM(t,e);function t(r){var n=e.call(this)||this;return n.anchor=r,n.className=Vl.HtmlClasses.SELECTIONMENU,n.variablePool=n.anchor.menu.pool,n.baseMenu=n.anchor.menu,n}return t.fromJson=function(r,n,o){var i=n.title,a=n.values,s=n.variable,c=new this(o),l=r.get("label")(r,{content:i||"",id:i||"id"},c),u=r.get("rule")(r,{},c),p=a.map(function(d){return r.get("radio")(r,{content:d,variable:s,id:d},c)});return c.items=[l,u].concat(p),c},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this),this.items.forEach(function(r){return r.html.classList.add(Vl.HtmlClasses.SELECTIONITEM)})},t.prototype.display=function(){},t.prototype.right=function(r){this.anchor.right(r)},t.prototype.left=function(r){this.anchor.left(r)},t})(hB.AbstractMenu),Os.SelectionBox=(function(e){VM(t,e);function t(r,n,o,i){o===void 0&&(o="none"),i===void 0&&(i="vertical");var a=e.call(this,r,null,n)||this;return a.style=o,a.grid=i,a._selections=[],a.prefix="ctxt-selection",a._balanced=!0,a}return t.fromJson=function(r,n,o){var i=n.title,a=n.signature,s=n.selections,c=n.order,l=n.grid,u=new this(i,a,c,l);return u.attachMenu(o),u.selections=s.map(function(p){return r.get("selectionMenu")(r,p,u)}),u},t.prototype.attachMenu=function(r){this.menu=r},Object.defineProperty(t.prototype,"selections",{get:function(){return this._selections},set:function(r){var n=this;this._selections=[],r.forEach(function(o){return n.addSelection(o)})},enumerable:!1,configurable:!0}),t.prototype.addSelection=function(r){r.anchor=this,this._selections.push(r)},t.prototype.rowDiv=function(r){var n=this,o=document.createElement("div");this.contentDiv.appendChild(o);var i=r.map(function(l){return o.appendChild(l.html),l.html.id||(l.html.id=n.prefix+dB.MenuUtil.counter()),l.html.getBoundingClientRect()}),a=i.map(function(l){return l.width}),s=a.reduce(function(l,u){return l+u},0),c=i.reduce(function(l,u){return Math.max(l,u.height)},0);return o.classList.add(Vl.HtmlClasses.SELECTIONDIVIDER),o.setAttribute("style","height: "+c+"px;"),[o,s,c,a]},t.prototype.display=function(){if(e.prototype.display.call(this),this.order(),!!this.selections.length){for(var r=[],n=0,o=[],i=this.getChunkSize(this.selections.length),a=function(l){var u=s.selections.slice(l,l+i),p=pB(s.rowDiv(u),4),d=p[0],h=p[1],f=p[2],m=p[3];r.push(d),n=Math.max(n,h),u.forEach(function(v){return v.html.style.height=f+"px"}),o=s.combineColumn(o,m)},s=this,c=0;c<this.selections.length;c+=i)a(c);this._balanced&&(this.balanceColumn(r,o),n=o.reduce(function(l,u){return l+u},20)),r.forEach(function(l){return l.style.width=n+"px"})}},t.prototype.getChunkSize=function(r){switch(this.grid){case"square":return Math.floor(Math.sqrt(r));case"horizontal":return Math.floor(r/t.chunkSize);default:return t.chunkSize}},t.prototype.balanceColumn=function(r,n){r.forEach(function(o){for(var i=Array.from(o.children),a=0,s=void 0;s=i[a];a++)s.style.width=n[a]+"px"})},t.prototype.combineColumn=function(r,n){for(var o=[],i=0;r[i]||n[i];){if(!r[i]){o=o.concat(n.slice(i));break}if(!n[i]){o=o.concat(r.slice(i));break}o.push(Math.max(r[i],n[i])),i++}return o},t.prototype.left=function(r){var n=this;this.move(r,function(o){return(o===0?n.selections.length:o)-1})},t.prototype.right=function(r){var n=this;this.move(r,function(o){return o===n.selections.length-1?0:o+1})},t.prototype.generateHtml=function(){e.prototype.generateHtml.call(this),this.html.classList.add(Vl.HtmlClasses.SELECTION)},t.prototype.generateContent=function(){var r=e.prototype.generateContent.call(this);return r.classList.add(Vl.HtmlClasses.SELECTIONBOX),r.removeAttribute("tabindex"),r},t.prototype.findSelection=function(r){var n=r.target,o=null;if(n.id&&(o=this.selections.find(function(a){return a.html.id===n.id})),!o){var i=n.parentElement.id;o=this.selections.find(function(a){return a.html.id===i})}return o},t.prototype.move=function(r,n){var o=this.findSelection(r);o.focused&&o.focused.unfocus();var i=n(this.selections.indexOf(o));this.selections[i].focus()},t.prototype.order=function(){this.selections.sort(t.orderMethod.get(this.style))},t.prototype.toJson=function(){return{type:""}},t.chunkSize=4,t.orderMethod=new Map([["alphabetical",function(r,n){return r.items[0].content.localeCompare(n.items[0].content)}],["none",function(r,n){return 1}],["decreasing",function(r,n){var o=r.items.length,i=n.items.length;return o<i?1:i<o?-1:0}],["increasing",function(r,n){var o=r.items.length,i=n.items.length;return o<i?-1:i<o?1:0}]]),t})(fB.Info);var gh={};Object.defineProperty(gh,"__esModule",{value:!0}),gh.ParserFactory=void 0,gh.ParserFactory=(function(){function e(t){this._parser=new Map(t)}return e.prototype.get=function(t){return this._parser.get(t)},e.prototype.add=function(t,r){this._parser.set(t,r)},e})();var mB=y&&y.__rest||(function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}),WM=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),yB=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),gB=y&&y.__spread||(function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(WM(arguments[t]));return e});Object.defineProperty(sh,"__esModule",{value:!0}),sh.Parser=void 0;var $M=ch,zM=Fl,KM=lh,JM=uh,YM=ph,QM=dh,ZM=hh,eO=xs,tO=Gl,rO=fh,nO=yh,bh=Os,bB=gh;sh.Parser=(function(){function e(t){var r=this;t===void 0&&(t=[]),this._initList=[["command",$M.Command.fromJson.bind($M.Command)],["checkbox",JM.Checkbox.fromJson.bind(JM.Checkbox)],["combo",YM.Combo.fromJson.bind(YM.Combo)],["slider",rO.Slider.fromJson.bind(rO.Slider)],["label",QM.Label.fromJson.bind(QM.Label)],["radio",ZM.Radio.fromJson.bind(ZM.Radio)],["rule",tO.Rule.fromJson.bind(tO.Rule)],["submenu",eO.Submenu.fromJson.bind(eO.Submenu)],["contextMenu",zM.ContextMenu.fromJson.bind(zM.ContextMenu)],["subMenu",nO.SubMenu.fromJson.bind(nO.SubMenu)],["variable",KM.Variable.fromJson.bind(KM.Variable)],["items",this.items.bind(this)],["selectionMenu",bh.SelectionMenu.fromJson.bind(bh.SelectionMenu)],["selectionBox",bh.SelectionBox.fromJson.bind(bh.SelectionBox)]],this._factory=new bB.ParserFactory(this._initList),t.forEach(function(n){var o=WM(n,2),i=o[0],a=o[1];return r.factory.add(i,a)})}return Object.defineProperty(e.prototype,"factory",{get:function(){return this._factory},enumerable:!1,configurable:!0}),e.prototype.items=function(t,r,n){var o,i,a=[];try{for(var s=yB(r),c=s.next();!c.done;c=s.next()){var l=c.value,u=this.parse(l,n);u&&(n.items.push(u),l.disabled&&u.disable(),l.hidden&&a.push(u))}}catch(p){o={error:p}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a.forEach(function(p){return p.hide()}),n.items},e.prototype.parse=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=t.type,i=mB(t,["type"]),a=this.factory.get(o);return a?a.apply(void 0,gB([this.factory,i],r)):null},e})();var j1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CssStyles=void 0;var t=bt;(function(r){function n(f){return"."+(t.HtmlClasses[f]||f)}var o={};o[n("INFOCLOSE")]="{ top:.2em; right:.2em;}",o[n("INFOCONTENT")]="{ overflow:auto; text-align:left; font-size:80%; padding:.4em .6em; border:1px inset; margin:1em 0px; max-height:20em; max-width:30em; background-color:#EEEEEE; white-space:normal;}",o[n("INFO")+n("MOUSEPOST")]="{outline:none;}",o[n("INFO")]='{ position:fixed; left:50%; width:auto; text-align:center; border:3px outset; padding:1em 2em; background-color:#DDDDDD; color:black; cursor:default; font-family:message-box; font-size:120%; font-style:normal; text-indent:0; text-transform:none; line-height:normal; letter-spacing:normal; word-spacing:normal; word-wrap:normal; white-space:nowrap; float:none; z-index:201; border-radius: 15px; /* Opera 10.5 and IE9 */ -webkit-border-radius:15px; /* Safari and Chrome */ -moz-border-radius:15px; /* Firefox */ -khtml-border-radius:15px; /* Konqueror */ box-shadow:0px 10px 20px #808080; /* Opera 10.5 and IE9 */ -webkit-box-shadow:0px 10px 20px #808080; /* Safari 3 & Chrome */ -moz-box-shadow:0px 10px 20px #808080; /* Forefox 3.5 */ -khtml-box-shadow:0px 10px 20px #808080; /* Konqueror */ filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color="gray", Positive="true"); /* IE */}';var i={};i[n("MENU")]="{ position:absolute; background-color:white; color:black; width:auto; padding:5px 0px; border:1px solid #CCCCCC; margin:0; cursor:default; font: menu; text-align:left; text-indent:0; text-transform:none; line-height:normal; letter-spacing:normal; word-spacing:normal; word-wrap:normal; white-space:nowrap; float:none; z-index:201; border-radius: 5px; /* Opera 10.5 and IE9 */ -webkit-border-radius: 5px; /* Safari and Chrome */ -moz-border-radius: 5px; /* Firefox */ -khtml-border-radius: 5px; /* Konqueror */ box-shadow:0px 10px 20px #808080; /* Opera 10.5 and IE9 */ -webkit-box-shadow:0px 10px 20px #808080; /* Safari 3 & Chrome */ -moz-box-shadow:0px 10px 20px #808080; /* Forefox 3.5 */ -khtml-box-shadow:0px 10px 20px #808080; /* Konqueror */}",i[n("MENUITEM")]="{ padding: 1px 2em; background:transparent;}",i[n("MENUARROW")]="{ position:absolute; right:.5em; padding-top:.25em; color:#666666; font-family: null; font-size: .75em}",i[n("MENUACTIVE")+" "+n("MENUARROW")]="{color:white}",i[n("MENUARROW")+n("RTL")]="{left:.5em; right:auto}",i[n("MENUCHECK")]="{ position:absolute; left:.7em; font-family: null}",i[n("MENUCHECK")+n("RTL")]="{ right:.7em; left:auto }",i[n("MENURADIOCHECK")]="{ position:absolute; left: .7em;}",i[n("MENURADIOCHECK")+n("RTL")]="{ right: .7em; left:auto}",i[n("MENUINPUTBOX")]="{ padding-left: 1em; right:.5em; color:#666666; font-family: null;}",i[n("MENUINPUTBOX")+n("RTL")]="{ left: .1em;}",i[n("MENUCOMBOBOX")]="{ left:.1em; padding-bottom:.5em;}",i[n("MENUSLIDER")]="{ left: .1em;}",i[n("SLIDERVALUE")]="{ position:absolute; right:.1em; padding-top:.25em; color:#333333; font-size: .75em}",i[n("SLIDERBAR")]="{ outline: none; background: #d3d3d3}",i[n("MENULABEL")]="{ padding: 1px 2em 3px 1.33em; font-style:italic}",i[n("MENURULE")]="{ border-top: 1px solid #DDDDDD; margin: 4px 3px;}",i[n("MENUDISABLED")]="{ color:GrayText}",i[n("MENUACTIVE")]="{ background-color: #606872; color: white;}",i[n("MENUDISABLED")+":focus"]="{ background-color: #E8E8E8}",i[n("MENULABEL")+":focus"]="{ background-color: #E8E8E8}",i[n("CONTEXTMENU")+":focus"]="{ outline:none}",i[n("CONTEXTMENU")+" "+n("MENUITEM")+":focus"]="{ outline:none}",i[n("SELECTIONMENU")]="{ position:relative; float:left; border-bottom: none; -webkit-box-shadow:none; -webkit-border-radius:0px; }",i[n("SELECTIONITEM")]="{ padding-right: 1em;}",i[n("SELECTION")]="{ right: 40%; width:50%; }",i[n("SELECTIONBOX")]="{ padding: 0em; max-height:20em; max-width: none; background-color:#FFFFFF;}",i[n("SELECTIONDIVIDER")]="{ clear: both; border-top: 2px solid #000000;}",i[n("MENU")+" "+n("MENUCLOSE")]="{ top:-10px; left:-10px}";var a={};a[n("MENUCLOSE")]='{ position:absolute; cursor:pointer; display:inline-block; border:2px solid #AAA; border-radius:18px; -webkit-border-radius: 18px; /* Safari and Chrome */ -moz-border-radius: 18px; /* Firefox */ -khtml-border-radius: 18px; /* Konqueror */ font-family: "Courier New", Courier; font-size:24px; color:#F0F0F0}',a[n("MENUCLOSE")+" span"]="{ display:block; background-color:#AAA; border:1.5px solid; border-radius:18px; -webkit-border-radius: 18px; /* Safari and Chrome */ -moz-border-radius: 18px; /* Firefox */ -khtml-border-radius: 18px; /* Konqueror */ line-height:0; padding:8px 0 6px /* may need to be browser-specific */}",a[n("MENUCLOSE")+":hover"]="{ color:white!important; border:2px solid #CCC!important}",a[n("MENUCLOSE")+":hover span"]="{ background-color:#CCC!important}",a[n("MENUCLOSE")+":hover:focus"]="{ outline:none}";var s=!1,c=!1,l=!1;function u(f){c||(h(i,f),c=!0,d(f))}r.addMenuStyles=u;function p(f){s||(h(o,f),s=!0,d(f))}r.addInfoStyles=p;function d(f){l||(h(a,f),l=!0)}function h(f,m){var v=m||document,g=v.createElement("style");g.type="text/css";var b="";for(var S in f)b+=S,b+=" ",b+=f[S],b+=`
50
+ `;g.innerHTML=b,v.head.appendChild(g)}})(e.CssStyles||(e.CssStyles={}))})(j1),ee(j1);var vB=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),As=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),SB=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(Jd,"__esModule",{value:!0}),Jd.Menu=void 0;var vh=br,rn=Wr,EB=ra,F1=tt,oO=Yd,xB=oh,U1=ih,H1=Ms,MB=sh,OB=Gl,iO=j1,AB=SB(lp),rt=EB.MathJax,Sh=typeof window<"u"&&window.navigator&&window.navigator.platform.substr(0,3)==="Mac";Jd.Menu=(function(){function e(t,r){r===void 0&&(r={});var n=this;this.settings=null,this.defaultSettings=null,this.menu=null,this.MmlVisitor=new xB.MmlVisitor,this.jax={CHTML:null,SVG:null},this.rerenderStart=rn.STATE.LAST,this.about=new H1.Info('<b style="font-size:120%;">MathJax</b> v'+vh.mathjax.version,function(){var o=[];return o.push("Input Jax: "+n.document.inputJax.map(function(i){return i.name}).join(", ")),o.push("Output Jax: "+n.document.outputJax.name),o.push("Document Type: "+n.document.kind),o.join("<br/>")},'<a href="https://www.mathjax.org">www.mathjax.org</a>'),this.help=new H1.Info("<b>MathJax Help</b>",function(){return["<p><b>MathJax</b> is a JavaScript library that allows page"," authors to include mathematics within their web pages."," As a reader, you don't need to do anything to make that happen.</p>","<p><b>Browsers</b>: MathJax works with all modern browsers including"," Edge, Firefox, Chrome, Safari, Opera, and most mobile browsers.</p>","<p><b>Math Menu</b>: MathJax adds a contextual menu to equations."," Right-click or CTRL-click on any mathematics to access the menu.</p>",'<div style="margin-left: 1em;">',"<p><b>Show Math As:</b> These options allow you to view the formula's"," source markup (as MathML or in its original format).</p>","<p><b>Copy to Clipboard:</b> These options copy the formula's source markup,"," as MathML or in its original format, to the clipboard"," (in browsers that support that).</p>","<p><b>Math Settings:</b> These give you control over features of MathJax,"," such the size of the mathematics, and the mechanism used"," to display equations.</p>","<p><b>Accessibility</b>: MathJax can work with screen"," readers to make mathematics accessible to the visually impaired."," Turn on the explorer to enable generation of speech strings"," and the ability to investigate expressions interactively.</p>","<p><b>Language</b>: This menu lets you select the language used by MathJax"," for its menus and warning messages. (Not yet implemented in version 3.)</p>","</div>","<p><b>Math Zoom</b>: If you are having difficulty reading an"," equation, MathJax can enlarge it to help you see it better, or"," you can scall all the math on the page to make it larger."," Turn these features on in the <b>Math Settings</b> menu.</p>","<p><b>Preferences</b>: MathJax uses your browser's localStorage database"," to save the preferences set via this menu locally in your browser. These"," are not used to track you, and are not transferred or used remotely by"," MathJax in any way.</p>"].join(`
51
+ `)},'<a href="https://www.mathjax.org">www.mathjax.org</a>'),this.mathmlCode=new U1.SelectableInfo("MathJax MathML Expression",function(){if(!n.menu.mathItem)return"";var o=n.toMML(n.menu.mathItem);return"<pre>"+n.formatSource(o)+"</pre>"},""),this.originalText=new U1.SelectableInfo("MathJax Original Source",function(){if(!n.menu.mathItem)return"";var o=n.menu.mathItem.math;return'<pre style="font-size:125%; margin:0">'+n.formatSource(o)+"</pre>"},""),this.annotationText=new U1.SelectableInfo("MathJax Annotation Text",function(){if(!n.menu.mathItem)return"";var o=n.menu.annotation;return'<pre style="font-size:125%; margin:0">'+n.formatSource(o)+"</pre>"},""),this.zoomBox=new H1.Info("MathJax Zoomed Expression",function(){if(!n.menu.mathItem)return"";var o=n.menu.mathItem.typesetRoot.cloneNode(!0);return o.style.margin="0",'<div style="font-size: '+1.25*parseFloat(n.settings.zscale)+'%">'+o.outerHTML+"</div>"},""),this.document=t,this.options=(0,F1.userOptions)((0,F1.defaultOptions)({},this.constructor.OPTIONS),r),this.initSettings(),this.mergeUserSettings(),this.initMenu(),this.applySettings()}return Object.defineProperty(e.prototype,"isLoading",{get:function(){return e.loading>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loadingPromise",{get:function(){return this.isLoading?(e._loadingPromise||(e._loadingPromise=new Promise(function(t,r){e._loadingOK=t,e._loadingFailed=r})),e._loadingPromise):Promise.resolve()},enumerable:!1,configurable:!0}),e.prototype.initSettings=function(){this.settings=this.options.settings,this.jax=this.options.jax;var t=this.document.outputJax;this.jax[t.name]=t,this.settings.renderer=t.name,rt._.a11y&&rt._.a11y.explorer&&Object.assign(this.settings,this.document.options.a11y),this.settings.scale=t.options.scale,this.defaultSettings=Object.assign({},this.settings)},e.prototype.initMenu=function(){var t=this,r=new MB.Parser([["contextMenu",oO.MJContextMenu.fromJson.bind(oO.MJContextMenu)]]);this.menu=r.parse({type:"contextMenu",id:"MathJax_Menu",pool:[this.variable("texHints"),this.variable("semantics"),this.variable("zoom"),this.variable("zscale"),this.variable("renderer",function(o){return t.setRenderer(o)}),this.variable("alt"),this.variable("cmd"),this.variable("ctrl"),this.variable("shift"),this.variable("scale",function(o){return t.setScale(o)}),this.variable("explorer",function(o){return t.setExplorer(o)}),this.a11yVar("highlight"),this.a11yVar("backgroundColor"),this.a11yVar("backgroundOpacity"),this.a11yVar("foregroundColor"),this.a11yVar("foregroundOpacity"),this.a11yVar("speech"),this.a11yVar("subtitles"),this.a11yVar("braille"),this.a11yVar("viewBraille"),this.a11yVar("locale",function(o){return AB.default.setupEngine({locale:o})}),this.a11yVar("speechRules",function(o){var i=vB(o.split("-"),2),a=i[0],s=i[1];t.document.options.sre.domain=a,t.document.options.sre.style=s}),this.a11yVar("magnification"),this.a11yVar("magnify"),this.a11yVar("treeColoring"),this.a11yVar("infoType"),this.a11yVar("infoRole"),this.a11yVar("infoPrefix"),this.variable("autocollapse"),this.variable("collapsible",function(o){return t.setCollapsible(o)}),this.variable("inTabOrder",function(o){return t.setTabOrder(o)}),this.variable("assistiveMml",function(o){return t.setAssistiveMml(o)})],items:[this.submenu("Show","Show Math As",[this.command("MathMLcode","MathML Code",function(){return t.mathmlCode.post()}),this.command("Original","Original Form",function(){return t.originalText.post()}),this.submenu("Annotation","Annotation")]),this.submenu("Copy","Copy to Clipboard",[this.command("MathMLcode","MathML Code",function(){return t.copyMathML()}),this.command("Original","Original Form",function(){return t.copyOriginal()}),this.submenu("Annotation","Annotation")]),this.rule(),this.submenu("Settings","Math Settings",[this.submenu("Renderer","Math Renderer",this.radioGroup("renderer",[["CHTML"],["SVG"]])),this.rule(),this.submenu("ZoomTrigger","Zoom Trigger",[this.command("ZoomNow","Zoom Once Now",function(){return t.zoom(null,"",t.menu.mathItem)}),this.rule(),this.radioGroup("zoom",[["Click"],["DoubleClick","Double-Click"],["NoZoom","No Zoom"]]),this.rule(),this.label("TriggerRequires","Trigger Requires:"),this.checkbox(Sh?"Option":"Alt",Sh?"Option":"Alt","alt"),this.checkbox("Command","Command","cmd",{hidden:!Sh}),this.checkbox("Control","Control","ctrl",{hiddne:Sh}),this.checkbox("Shift","Shift","shift")]),this.submenu("ZoomFactor","Zoom Factor",this.radioGroup("zscale",[["150%"],["175%"],["200%"],["250%"],["300%"],["400%"]])),this.rule(),this.command("Scale","Scale All Math...",function(){return t.scaleAllMath()}),this.rule(),this.checkbox("texHints","Add TeX hints to MathML","texHints"),this.checkbox("semantics","Add original as annotation","semantics"),this.rule(),this.command("Reset","Reset to defaults",function(){return t.resetDefaults()})]),this.submenu("Accessibility","Accessibility",[this.checkbox("Activate","Activate","explorer"),this.submenu("Speech","Speech",[this.checkbox("Speech","Speech Output","speech"),this.checkbox("Subtitles","Speech Subtitles","subtitles"),this.checkbox("Braille","Braille Output","braille"),this.checkbox("View Braille","Braille Subtitles","viewBraille"),this.rule(),this.submenu("A11yLanguage","Language"),this.rule(),this.submenu("Mathspeak","Mathspeak Rules",this.radioGroup("speechRules",[["mathspeak-default","Verbose"],["mathspeak-brief","Brief"],["mathspeak-sbrief","Superbrief"]])),this.submenu("Clearspeak","Clearspeak Rules",this.radioGroup("speechRules",[["clearspeak-default","Auto"]])),this.submenu("ChromeVox","ChromeVox Rules",this.radioGroup("speechRules",[["chromevox-default","Standard"],["chromevox-alternative","Alternative"]]))]),this.submenu("Highlight","Highlight",[this.submenu("Background","Background",this.radioGroup("backgroundColor",[["Blue"],["Red"],["Green"],["Yellow"],["Cyan"],["Magenta"],["White"],["Black"]])),{type:"slider",variable:"backgroundOpacity",content:" "},this.submenu("Foreground","Foreground",this.radioGroup("foregroundColor",[["Black"],["White"],["Magenta"],["Cyan"],["Yellow"],["Green"],["Red"],["Blue"]])),{type:"slider",variable:"foregroundOpacity",content:" "},this.rule(),this.radioGroup("highlight",[["None"],["Hover"],["Flame"]]),this.rule(),this.checkbox("TreeColoring","Tree Coloring","treeColoring")]),this.submenu("Magnification","Magnification",[this.radioGroup("magnification",[["None"],["Keyboard"],["Mouse"]]),this.rule(),this.radioGroup("magnify",[["200%"],["300%"],["400%"],["500%"]])]),this.submenu("Semantic Info","Semantic Info",[this.checkbox("Type","Type","infoType"),this.checkbox("Role","Role","infoRole"),this.checkbox("Prefix","Prefix","infoPrefix")],!0),this.rule(),this.checkbox("Collapsible","Collapsible Math","collapsible"),this.checkbox("AutoCollapse","Auto Collapse","autocollapse",{disabled:!0}),this.rule(),this.checkbox("InTabOrder","Include in Tab Order","inTabOrder"),this.checkbox("AssistiveMml","Include Hidden MathML","assistiveMml")]),this.submenu("Language","Language"),this.rule(),this.command("About","About MathJax",function(){return t.about.post()}),this.command("Help","MathJax Help",function(){return t.help.post()})]});var n=this.menu;this.about.attachMenu(n),this.help.attachMenu(n),this.originalText.attachMenu(n),this.annotationText.attachMenu(n),this.mathmlCode.attachMenu(n),this.zoomBox.attachMenu(n),this.checkLoadableItems(),this.enableExplorerItems(this.settings.explorer),n.showAnnotation=this.annotationText,n.copyAnnotation=this.copyAnnotation.bind(this),n.annotationTypes=this.options.annotationTypes,iO.CssStyles.addInfoStyles(this.document.document),iO.CssStyles.addMenuStyles(this.document.document)},e.prototype.checkLoadableItems=function(){var t,r;if(rt&&rt._&&rt.loader&&rt.startup)this.settings.collapsible&&(!rt._.a11y||!rt._.a11y.complexity)&&this.loadA11y("complexity"),this.settings.explorer&&(!rt._.a11y||!rt._.a11y.explorer)&&this.loadA11y("explorer"),this.settings.assistiveMml&&(!rt._.a11y||!rt._.a11y["assistive-mml"])&&this.loadA11y("assistive-mml");else{var n=this.menu;try{for(var o=As(Object.keys(this.jax)),i=o.next();!i.done;i=o.next()){var a=i.value;this.jax[a]||n.findID("Settings","Renderer",a).disable()}}catch(s){t={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}n.findID("Accessibility","Activate").disable(),n.findID("Accessibility","AutoCollapse").disable(),n.findID("Accessibility","Collapsible").disable()}},e.prototype.enableExplorerItems=function(t){var r,n,o=this.menu.findID("Accessibility","Activate").menu;try{for(var i=As(o.items.slice(1)),a=i.next();!a.done;a=i.next()){var s=a.value;if(s instanceof OB.Rule)break;t?s.enable():s.disable()}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.mergeUserSettings=function(){try{var t=localStorage.getItem(e.MENU_STORAGE);if(!t)return;Object.assign(this.settings,JSON.parse(t)),this.setA11y(this.settings)}catch(r){console.log("MathJax localStorage error: "+r.message)}},e.prototype.saveUserSettings=function(){var t,r,n={};try{for(var o=As(Object.keys(this.settings)),i=o.next();!i.done;i=o.next()){var a=i.value;this.settings[a]!==this.defaultSettings[a]&&(n[a]=this.settings[a])}}catch(s){t={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}try{Object.keys(n).length?localStorage.setItem(e.MENU_STORAGE,JSON.stringify(n)):localStorage.removeItem(e.MENU_STORAGE)}catch(s){console.log("MathJax localStorage error: "+s.message)}},e.prototype.setA11y=function(t){rt._.a11y&&rt._.a11y.explorer&&rt._.a11y.explorer_ts.setA11yOptions(this.document,t)},e.prototype.getA11y=function(t){if(rt._.a11y&&rt._.a11y.explorer)return this.document.options.a11y[t]!==void 0?this.document.options.a11y[t]:this.document.options.sre[t]},e.prototype.applySettings=function(){this.setTabOrder(this.settings.inTabOrder),this.document.options.enableAssistiveMml=this.settings.assistiveMml,this.document.outputJax.options.scale=parseFloat(this.settings.scale),this.settings.renderer!==this.defaultSettings.renderer&&this.setRenderer(this.settings.renderer)},e.prototype.setScale=function(t){this.document.outputJax.options.scale=parseFloat(t),this.document.rerender()},e.prototype.setRenderer=function(t){var r=this;if(this.jax[t])this.setOutputJax(t);else{var n=t.toLowerCase();this.loadComponent("output/"+n,function(){var o=rt.startup;n in o.constructors&&(o.useOutput(n,!0),o.output=o.getOutputJax(),r.jax[t]=o.output,r.setOutputJax(t))})}},e.prototype.setOutputJax=function(t){this.jax[t].setAdaptor(this.document.adaptor),this.document.outputJax=this.jax[t],this.rerender()},e.prototype.setTabOrder=function(t){this.menu.store.inTaborder(t)},e.prototype.setAssistiveMml=function(t){this.document.options.enableAssistiveMml=t,!t||rt._.a11y&&rt._.a11y["assistive-mml"]?this.rerender():this.loadA11y("assistive-mml")},e.prototype.setExplorer=function(t){this.enableExplorerItems(t),this.document.options.enableExplorer=t,!t||rt._.a11y&&rt._.a11y.explorer?this.rerender(this.settings.collapsible?rn.STATE.RERENDER:rn.STATE.COMPILED):this.loadA11y("explorer")},e.prototype.setCollapsible=function(t){this.document.options.enableComplexity=t,!t||rt._.a11y&&rt._.a11y.complexity?this.rerender(rn.STATE.COMPILED):this.loadA11y("complexity")},e.prototype.scaleAllMath=function(){var t=(parseFloat(this.settings.scale)*100).toFixed(1).replace(/.0$/,""),r=prompt("Scale all mathematics (compared to surrounding text) by",t+"%");if(r)if(r.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)){var n=parseFloat(r)/100;n?this.menu.pool.lookup("scale").setValue(String(n)):alert("The scale should not be zero")}else alert("The scale should be a percentage (e.g., 120%)")},e.prototype.resetDefaults=function(){var t,r;e.loading++;var n=this.menu.pool,o=this.defaultSettings;try{for(var i=As(Object.keys(this.settings)),a=i.next();!a.done;a=i.next()){var s=a.value,c=n.lookup(s);if(c){c.setValue(o[s]);var l=c.items[0];l&&l.executeCallbacks_()}else this.settings[s]=o[s]}}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}e.loading--,this.rerender(rn.STATE.COMPILED)},e.prototype.checkComponent=function(t){var r=e.loadingPromises.get(t);r&&vh.mathjax.retryAfter(r)},e.prototype.loadComponent=function(t,r){if(!e.loadingPromises.has(t)){var n=rt.loader;if(n){e.loading++;var o=n.load(t).then(function(){e.loading--,e.loadingPromises.delete(t),r(),e.loading===0&&e._loadingPromise&&(e._loadingPromise=null,e._loadingOK())}).catch(function(i){e._loadingPromise?(e._loadingPromise=null,e._loadingFailed(i)):console.log(i)});e.loadingPromises.set(t,o)}}},e.prototype.loadA11y=function(t){var r=this,n=!rn.STATE.ENRICHED;this.loadComponent("a11y/"+t,function(){var o=rt.startup;vh.mathjax.handlers.unregister(o.handler),o.handler=o.getHandler(),vh.mathjax.handlers.register(o.handler);var i=r.document;r.document=o.document=o.getDocument(),r.document.menu=r,r.document.outputJax.reset(),r.transferMathList(i),r.document.processed=i.processed,e._loadingPromise||(r.document.outputJax.reset(),r.rerender(t==="complexity"||n?rn.STATE.COMPILED:rn.STATE.TYPESET))})},e.prototype.transferMathList=function(t){var r,n,o=this.document.options.MathItem;try{for(var i=As(t.math),a=i.next();!a.done;a=i.next()){var s=a.value,c=new o;Object.assign(c,s),this.document.math.push(c)}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.formatSource=function(t){return t.trim().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},e.prototype.toMML=function(t){return this.MmlVisitor.visitTree(t.root,t,{texHints:this.settings.texHints,semantics:this.settings.semantics&&t.inputJax.name!=="MathML"})},e.prototype.zoom=function(t,r,n){(!t||this.isZoomEvent(t,r))&&(this.menu.mathItem=n,t&&this.menu.post(t),this.zoomBox.post())},e.prototype.isZoomEvent=function(t,r){return this.settings.zoom===r&&(!this.settings.alt||t.altKey)&&(!this.settings.ctrl||t.ctrlKey)&&(!this.settings.cmd||t.metaKey)&&(!this.settings.shift||t.shiftKey)},e.prototype.rerender=function(t){t===void 0&&(t=rn.STATE.TYPESET),this.rerenderStart=Math.min(t,this.rerenderStart),e.loading||(this.rerenderStart<=rn.STATE.COMPILED&&this.document.reset({inputJax:[]}),this.document.rerender(this.rerenderStart),this.rerenderStart=rn.STATE.LAST)},e.prototype.copyMathML=function(){this.copyToClipboard(this.toMML(this.menu.mathItem))},e.prototype.copyOriginal=function(){this.copyToClipboard(this.menu.mathItem.math.trim())},e.prototype.copyAnnotation=function(){this.copyToClipboard(this.menu.annotation.trim())},e.prototype.copyToClipboard=function(t){var r=document.createElement("textarea");r.value=t,r.setAttribute("readonly",""),r.style.cssText="height: 1px; width: 1px; padding: 1px; position: absolute; left: -10px",document.body.appendChild(r),r.select();try{document.execCommand("copy")}catch(n){alert("Can't copy to clipboard: "+n.message)}document.body.removeChild(r)},e.prototype.addMenu=function(t){var r=this,n=t.typesetRoot;n.addEventListener("contextmenu",function(){return r.menu.mathItem=t},!0),n.addEventListener("keydown",function(){return r.menu.mathItem=t},!0),n.addEventListener("click",function(o){return r.zoom(o,"Click",t)},!0),n.addEventListener("dblclick",function(o){return r.zoom(o,"DoubleClick",t)},!0),this.menu.store.insert(n)},e.prototype.clear=function(){this.menu.store.clear()},e.prototype.variable=function(t,r){var n=this;return{name:t,getter:function(){return n.settings[t]},setter:function(o){n.settings[t]=o,r&&r(o),n.saveUserSettings()}}},e.prototype.a11yVar=function(t,r){var n=this;return{name:t,getter:function(){return n.getA11y(t)},setter:function(o){n.settings[t]=o;var i={};i[t]=o,n.setA11y(i),r&&r(o),n.saveUserSettings()}}},e.prototype.submenu=function(t,r,n,o){var i,a;n===void 0&&(n=[]),o===void 0&&(o=!1);var s=[];try{for(var c=As(n),l=c.next();!l.done;l=c.next()){var u=l.value;Array.isArray(u)?s=s.concat(u):s.push(u)}}catch(p){i={error:p}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return{type:"submenu",id:t,content:r,menu:{items:s},disabled:s.length===0||o}},e.prototype.command=function(t,r,n,o){return o===void 0&&(o={}),Object.assign({type:"command",id:t,content:r,action:n},o)},e.prototype.checkbox=function(t,r,n,o){return o===void 0&&(o={}),Object.assign({type:"checkbox",id:t,content:r,variable:n},o)},e.prototype.radioGroup=function(t,r){var n=this;return r.map(function(o){return n.radio(o[0],o[1]||o[0],t)})},e.prototype.radio=function(t,r,n,o){return o===void 0&&(o={}),Object.assign({type:"radio",id:t,content:r,variable:n},o)},e.prototype.label=function(t,r){return{type:"label",id:t,content:r}},e.prototype.rule=function(){return{type:"rule"}},e.MENU_STORAGE="MathJax-Menu-Settings",e.OPTIONS={settings:{texHints:!0,semantics:!1,zoom:"NoZoom",zscale:"200%",renderer:"CHTML",alt:!1,cmd:!1,ctrl:!1,shift:!1,scale:1,autocollapse:!1,collapsible:!1,inTabOrder:!0,assistiveMml:!0,explorer:!1},jax:{CHTML:null,SVG:null},annotationTypes:(0,F1.expandable)({TeX:["TeX","LaTeX","application/x-tex"],StarMath:["StarMath 5.0"],Maple:["Maple"],ContentMathML:["MathML-Content","application/mathml-content+xml"],OpenMath:["OpenMath"]})},e.loading=0,e.loadingPromises=new Map,e._loadingPromise=null,e._loadingOK=null,e._loadingFailed=null,e})();var aO=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ts=y&&y.__assign||(function(){return Ts=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Ts.apply(this,arguments)}),TB=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),CB=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),NB=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Ri,"__esModule",{value:!0});var sO=Ri.MenuHandler=Ri.MenuMathDocumentMixin=Ri.MenuMathItemMixin=void 0,_B=br,Cs=Wr,q1=tt,cO=Jd;(0,Cs.newState)("CONTEXT_MENU",170);function lO(e){return(function(t){aO(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.addMenu=function(n,o){o===void 0&&(o=!1),!(this.state()>=Cs.STATE.CONTEXT_MENU)&&(!this.isEscaped&&(n.options.enableMenu||o)&&n.menu.addMenu(this),this.state(Cs.STATE.CONTEXT_MENU))},r.prototype.checkLoading=function(n){n.checkLoading()},r})(e)}Ri.MenuMathItemMixin=lO;function uO(e){var t=(function(r){aO(n,r);function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var a=r.apply(this,CB([],TB(o),!1))||this;a.menu=new a.options.MenuClass(a,a.options.menuOptions);var s=a.constructor.ProcessBits;return s.has("context-menu")||s.allocate("context-menu"),a.options.MathItem=lO(a.options.MathItem),a}return n.prototype.addMenu=function(){var o,i;if(!this.processed.isSet("context-menu")){try{for(var a=NB(this.math),s=a.next();!s.done;s=a.next())s.value.addMenu(this)}catch(c){o={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}this.processed.set("context-menu")}return this},n.prototype.checkLoading=function(){this.menu.isLoading&&_B.mathjax.retryAfter(this.menu.loadingPromise.catch(function(i){return console.log(i)}));var o=this.menu.settings;return o.collapsible&&(this.options.enableComplexity=!0,this.menu.checkComponent("a11y/complexity")),o.explorer&&(this.options.enableEnrichment=!0,this.options.enableExplorer=!0,this.menu.checkComponent("a11y/explorer")),this},n.prototype.state=function(o,i){return i===void 0&&(i=!1),r.prototype.state.call(this,o,i),o<Cs.STATE.CONTEXT_MENU&&this.processed.clear("context-menu"),this},n.prototype.updateDocument=function(){return r.prototype.updateDocument.call(this),this.menu.menu.store.sort(),this},n})(e);return t.OPTIONS=Ts(Ts({enableEnrichment:!0,enableComplexity:!0,enableExplorer:!0,enrichSpeech:"none",enrichError:function(r,n,o){return console.warn("Enrichment Error:",o)}},e.OPTIONS),{MenuClass:cO.Menu,menuOptions:cO.Menu.OPTIONS,enableMenu:!0,sre:e.OPTIONS.sre||(0,q1.expandable)({}),a11y:e.OPTIONS.a11y||(0,q1.expandable)({}),renderActions:(0,q1.expandable)(Ts(Ts({},e.OPTIONS.renderActions),{addMenu:[Cs.STATE.CONTEXT_MENU],checkLoading:[Cs.STATE.UNPROCESSED+1]}))}),t}Ri.MenuMathDocumentMixin=uO;function wB(e){return e.documentClass=uO(e.documentClass),e}sO=Ri.MenuHandler=wB;var Eh={},Wl={};Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.AbstractFindMath=void 0;var pO=tt;Wl.AbstractFindMath=(function(){function e(t){var r=this.constructor;this.options=(0,pO.userOptions)((0,pO.defaultOptions)({},r.OPTIONS),t)}return e.OPTIONS={},e})();var RB=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),$l=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Eh,"__esModule",{value:!0});var dO=Eh.FindMathML=void 0,LB=Wl,hO="http://www.w3.org/1998/Math/MathML";dO=Eh.FindMathML=(function(e){RB(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.findMath=function(r){var n=new Set;this.findMathNodes(r,n),this.findMathPrefixed(r,n);var o=this.adaptor.root(this.adaptor.document);return this.adaptor.kind(o)==="html"&&n.size===0&&this.findMathNS(r,n),this.processMath(n)},t.prototype.findMathNodes=function(r,n){var o,i;try{for(var a=$l(this.adaptor.tags(r,"math")),s=a.next();!s.done;s=a.next()){var c=s.value;n.add(c)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},t.prototype.findMathPrefixed=function(r,n){var o,i,a,s,c=this.adaptor.root(this.adaptor.document);try{for(var l=$l(this.adaptor.allAttributes(c)),u=l.next();!u.done;u=l.next()){var p=u.value;if(p.name.substr(0,6)==="xmlns:"&&p.value===hO){var d=p.name.substr(6);try{for(var h=(a=void 0,$l(this.adaptor.tags(r,d+":math"))),f=h.next();!f.done;f=h.next()){var m=f.value;n.add(m)}}catch(v){a={error:v}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}}}}catch(v){o={error:v}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}},t.prototype.findMathNS=function(r,n){var o,i;try{for(var a=$l(this.adaptor.tags(r,"math",hO)),s=a.next();!s.done;s=a.next()){var c=s.value;n.add(c)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},t.prototype.processMath=function(r){var n,o,i=[];try{for(var a=$l(Array.from(r)),s=a.next();!s.done;s=a.next()){var c=s.value,l=this.adaptor.getAttribute(c,"display")==="block"||this.adaptor.getAttribute(c,"mode")==="display",u={node:c,n:0,delim:""},p={node:c,n:0,delim:""};i.push({math:this.adaptor.outerHTML(c),start:u,end:p,display:l})}}catch(d){n={error:d}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},t.OPTIONS={},t})(LB.AbstractFindMath);var G1={},Ns={},Uo={},IB=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),PB=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),fO=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),mO=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.FunctionList=void 0,Uo.FunctionList=(function(e){IB(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.execute=function(){for(var r,n,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];try{for(var a=PB(this),s=a.next();!s.done;s=a.next()){var c=s.value;if(c.item.apply(c,mO([],fO(o),!1))===!1)return!1}}catch(l){r={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return!0},t.prototype.asyncExecute=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=-1,i=this.items;return new Promise(function(a,s){(function c(){for(var l;++o<i.length;){var u=(l=i[o]).item.apply(l,mO([],fO(r),!1));if(u instanceof Promise){u.then(c).catch(function(p){return s(p)});return}if(u===!1){a(!1);return}}a(!0)})()})},t})(bo.PrioritizedList),Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.AbstractInputJax=void 0;var yO=tt,gO=Uo;Ns.AbstractInputJax=(function(){function e(t){t===void 0&&(t={}),this.adaptor=null,this.mmlFactory=null;var r=this.constructor;this.options=(0,yO.userOptions)((0,yO.defaultOptions)({},r.OPTIONS),t),this.preFilters=new gO.FunctionList,this.postFilters=new gO.FunctionList}return Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),e.prototype.setAdaptor=function(t){this.adaptor=t},e.prototype.setMmlFactory=function(t){this.mmlFactory=t},e.prototype.initialize=function(){},e.prototype.reset=function(){},Object.defineProperty(e.prototype,"processStrings",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.findMath=function(t,r){return[]},e.prototype.executeFilters=function(t,r,n,o){var i={math:r,document:n,data:o};return t.execute(i),i.data},e.NAME="generic",e.OPTIONS={},e})();var xh={},Bi={},Mh={};Object.defineProperty(Mh,"__esModule",{value:!0}),Mh.asyncLoad=void 0;var bO=br;function kB(e){return bO.mathjax.asyncLoad?new Promise(function(t,r){var n=bO.mathjax.asyncLoad(e);n instanceof Promise?n.then(function(o){return t(o)}).catch(function(o){return r(o)}):t(n)}):Promise.reject("Can't load '".concat(e,"': No asyncLoad method specified"))}Mh.asyncLoad=kB,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numeric=e.translate=e.remove=e.add=e.entities=e.options=void 0;var t=vo,r=Mh;e.options={loadMissingEntities:!0},e.entities={ApplyFunction:"⁡",Backslash:"∖",Because:"∵",Breve:"˘",Cap:"⋒",CenterDot:"·",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",Congruent:"≡",ContourIntegral:"∮",Coproduct:"∐",Cross:"⨯",Cup:"⋓",CupCap:"≍",Dagger:"‡",Del:"∇",Delta:"Δ",Diamond:"⋄",DifferentialD:"ⅆ",DotEqual:"≐",DoubleDot:"¨",DoubleRightTee:"⊨",DoubleVerticalBar:"∥",DownArrow:"↓",DownLeftVector:"↽",DownRightVector:"⇁",DownTee:"⊤",Downarrow:"⇓",Element:"∈",EqualTilde:"≂",Equilibrium:"⇌",Exists:"∃",ExponentialE:"ⅇ",FilledVerySmallSquare:"▪",ForAll:"∀",Gamma:"Γ",Gg:"⋙",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Hacek:"ˇ",Hat:"^",HumpDownHump:"≎",HumpEqual:"≏",Im:"ℑ",ImaginaryI:"ⅈ",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Lambda:"Λ",Larr:"↞",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDownVector:"⇃",LeftFloor:"⌊",LeftRightArrow:"↔",LeftTee:"⊣",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpVector:"↿",LeftVector:"↼",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessSlantEqual:"⩽",LessTilde:"≲",Ll:"⋘",Lleftarrow:"⇚",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lsh:"↰",MinusPlus:"∓",NestedGreaterGreater:"≫",NestedLessLess:"≪",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotPrecedes:"⊀",NotPrecedesSlantEqual:"⋠",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsSlantEqual:"⋡",NotSupersetEqual:"⊉",NotTilde:"≁",NotVerticalBar:"∤",Omega:"Ω",OverBar:"‾",OverBrace:"⏞",PartialD:"∂",Phi:"Φ",Pi:"Π",PlusMinus:"±",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Product:"∏",Proportional:"∝",Psi:"Ψ",Rarr:"↠",Re:"ℜ",ReverseEquilibrium:"⇋",RightAngleBracket:"⟩",RightArrow:"→",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDownVector:"⇂",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpVector:"↾",RightVector:"⇀",Rightarrow:"⇒",Rrightarrow:"⇛",Rsh:"↱",Sigma:"Σ",SmallCircle:"∘",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Star:"⋆",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",Therefore:"∴",Theta:"Θ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",UnderBar:"_",UnderBrace:"⏟",Union:"⋃",UnionPlus:"⊎",UpArrow:"↑",UpDownArrow:"↕",UpTee:"⊥",Uparrow:"⇑",Updownarrow:"⇕",Upsilon:"Υ",Vdash:"⊩",Vee:"⋁",VerticalBar:"∣",VerticalTilde:"≀",Vvdash:"⊪",Wedge:"⋀",Xi:"Ξ",amp:"&",acute:"´",aleph:"ℵ",alpha:"α",amalg:"⨿",and:"∧",ang:"∠",angmsd:"∡",angsph:"∢",ape:"≊",backprime:"‵",backsim:"∽",backsimeq:"⋍",beta:"β",beth:"ℶ",between:"≬",bigcirc:"◯",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",blacklozenge:"⧫",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",bowtie:"⋈",boxdl:"┐",boxdr:"┌",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxur:"└",bsol:"\\",bull:"•",cap:"∩",check:"✓",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",clubs:"♣",colon:":",comp:"∁",ctdot:"⋯",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cup:"∪",curarr:"↷",curlyvee:"⋎",curlywedge:"⋏",dagger:"†",daleth:"ℸ",ddarr:"⇊",deg:"°",delta:"δ",digamma:"ϝ",div:"÷",divideontimes:"⋇",dot:"˙",doteqdot:"≑",dotplus:"∔",dotsquare:"⊡",dtdot:"⋱",ecir:"≖",efDot:"≒",egs:"⪖",ell:"ℓ",els:"⪕",empty:"∅",epsi:"ε",epsiv:"ϵ",erDot:"≓",eta:"η",eth:"ð",flat:"♭",fork:"⋔",frown:"⌢",gEl:"⪌",gamma:"γ",gap:"⪆",gimel:"ℷ",gnE:"≩",gnap:"⪊",gne:"⪈",gnsim:"⋧",gt:">",gtdot:"⋗",harrw:"↭",hbar:"ℏ",hellip:"…",hookleftarrow:"↩",hookrightarrow:"↪",imath:"ı",infin:"∞",intcal:"⊺",iota:"ι",jmath:"ȷ",kappa:"κ",kappav:"ϰ",lEg:"⪋",lambda:"λ",lap:"⪅",larrlp:"↫",larrtl:"↢",lbrace:"{",lbrack:"[",le:"≤",leftleftarrows:"⇇",leftthreetimes:"⋋",lessdot:"⋖",lmoust:"⎰",lnE:"≨",lnap:"⪉",lne:"⪇",lnsim:"⋦",longmapsto:"⟼",looparrowright:"↬",lowast:"∗",loz:"◊",lt:"<",ltimes:"⋉",ltri:"◃",macr:"¯",malt:"✠",mho:"℧",mu:"μ",multimap:"⊸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",natur:"♮",nearr:"↗",nharr:"↮",nlarr:"↚",not:"¬",nrarr:"↛",nu:"ν",nvDash:"⊭",nvdash:"⊬",nwarr:"↖",omega:"ω",omicron:"ο",or:"∨",osol:"⊘",period:".",phi:"φ",phiv:"ϕ",pi:"π",piv:"ϖ",prap:"⪷",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",prime:"′",psi:"ψ",quot:'"',rarrtl:"↣",rbrace:"}",rbrack:"]",rho:"ρ",rhov:"ϱ",rightrightarrows:"⇉",rightthreetimes:"⋌",ring:"˚",rmoust:"⎱",rtimes:"⋊",rtri:"▹",scap:"⪸",scnE:"⪶",scnap:"⪺",scnsim:"⋩",sdot:"⋅",searr:"↘",sect:"§",sharp:"♯",sigma:"σ",sigmav:"ς",simne:"≆",smile:"⌣",spades:"♠",sub:"⊂",subE:"⫅",subnE:"⫋",subne:"⊊",supE:"⫆",supnE:"⫌",supne:"⊋",swarr:"↙",tau:"τ",theta:"θ",thetav:"ϑ",tilde:"˜",times:"×",triangle:"▵",triangleq:"≜",upsi:"υ",upuparrows:"⇈",veebar:"⊻",vellip:"⋮",weierp:"℘",xi:"ξ",yen:"¥",zeta:"ζ",zigrarr:"⇝",nbsp:" ",rsquo:"’",lsquo:"‘"};var n={};function o(l,u){Object.assign(e.entities,l),n[u]=!0}e.add=o;function i(l){delete e.entities[l]}e.remove=i;function a(l){return l.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,s)}e.translate=a;function s(l,u){if(u.charAt(0)==="#")return c(u.slice(1));if(e.entities[u])return e.entities[u];if(e.options.loadMissingEntities){var p=u.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:u.charAt(0).toLowerCase();n[p]||(n[p]=!0,(0,t.retryAfter)((0,r.asyncLoad)("./util/entities/"+p+".js")))}return l}function c(l){var u=l.charAt(0)==="x"?parseInt(l.slice(1),16):parseInt(l);return String.fromCodePoint(u)}e.numeric=c})(Bi),ee(Bi);var X1=y&&y.__assign||(function(){return X1=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),X1.apply(this,arguments)}),BB=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),DB=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),jB=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&BB(t,e,r);return DB(t,e),t}),Oh=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(xh,"__esModule",{value:!0}),xh.MathMLCompile=void 0;var vO=ce,SO=tt,FB=jB(Bi);xh.MathMLCompile=(function(){function e(t){t===void 0&&(t={});var r=this.constructor;this.options=(0,SO.userOptions)((0,SO.defaultOptions)({},r.OPTIONS),t)}return e.prototype.setMmlFactory=function(t){this.factory=t},e.prototype.compile=function(t){var r=this.makeNode(t);return r.verifyTree(this.options.verify),r.setInheritedAttributes({},!1,0,!1),r.walkTree(this.markMrows),r},e.prototype.makeNode=function(t){var r,n,o=this.adaptor,i=!1,a=o.kind(t).replace(/^.*:/,""),s=o.getAttribute(t,"data-mjx-texclass")||"";s&&(s=this.filterAttribute("data-mjx-texclass",s)||"");var c=s&&a==="mrow"?"TeXAtom":a;try{for(var l=Oh(this.filterClassList(o.allClasses(t))),u=l.next();!u.done;u=l.next()){var p=u.value;p.match(/^MJX-TeXAtom-/)&&a==="mrow"?(s=p.substr(12),c="TeXAtom"):p==="MJX-fixedlimits"&&(i=!0)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}this.factory.getNodeClass(c)||this.error('Unknown node type "'+c+'"');var d=this.factory.create(c);return c==="TeXAtom"&&s==="OP"&&!i&&(d.setProperty("movesupsub",!0),d.attributes.setInherited("movablelimits",!0)),s&&(d.texClass=vO.TEXCLASS[s],d.setProperty("texClass",d.texClass)),this.addAttributes(d,t),this.checkClass(d,t),this.addChildren(d,t),d},e.prototype.addAttributes=function(t,r){var n,o,i=!1;try{for(var a=Oh(this.adaptor.allAttributes(r)),s=a.next();!s.done;s=a.next()){var c=s.value,l=c.name,u=this.filterAttribute(l,c.value);if(!(u===null||l==="xmlns")){if(l.substr(0,9)==="data-mjx-")switch(l.substr(9)){case"alternate":t.setProperty("variantForm",!0);break;case"variant":t.attributes.set("mathvariant",u),i=!0;break;case"smallmatrix":t.setProperty("scriptlevel",1),t.setProperty("useHeight",!1);break;case"accent":t.setProperty("mathaccent",u==="true");break;case"auto-op":t.setProperty("autoOP",u==="true");break;case"script-align":t.setProperty("scriptalign",u)}else if(l!=="class"){var p=u.toLowerCase();p==="true"||p==="false"?t.attributes.set(l,p==="true"):(!i||l!=="mathvariant")&&t.attributes.set(l,u)}}}}catch(d){n={error:d}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},e.prototype.filterAttribute=function(t,r){return r},e.prototype.filterClassList=function(t){return t},e.prototype.addChildren=function(t,r){var n,o;if(t.arity!==0){var i=this.adaptor;try{for(var a=Oh(i.childNodes(r)),s=a.next();!s.done;s=a.next()){var c=s.value,l=i.kind(c);if(l!=="#comment")if(l==="#text")this.addText(t,c);else if(t.isKind("annotation-xml"))t.appendChild(this.factory.create("XML").setXML(c,i));else{var u=t.appendChild(this.makeNode(c));u.arity===0&&i.childNodes(c).length&&(this.options.fixMisplacedChildren?this.addChildren(t,c):u.mError("There should not be children for "+u.kind+" nodes",this.options.verify,!0))}}}catch(p){n={error:p}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}}},e.prototype.addText=function(t,r){var n=this.adaptor.value(r);(t.isToken||t.getProperty("isChars"))&&t.arity?(t.isToken&&(n=FB.translate(n),n=this.trimSpace(n)),t.appendChild(this.factory.create("text").setText(n))):n.match(/\S/)&&this.error('Unexpected text node "'+n+'"')},e.prototype.checkClass=function(t,r){var n,o,i=[];try{for(var a=Oh(this.filterClassList(this.adaptor.allClasses(r))),s=a.next();!s.done;s=a.next()){var c=s.value;c.substr(0,4)==="MJX-"?c==="MJX-variant"?t.setProperty("variantForm",!0):c.substr(0,11)!=="MJX-TeXAtom"&&t.attributes.set("mathvariant",this.fixCalligraphic(c.substr(3))):i.push(c)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}i.length&&t.attributes.set("class",i.join(" "))},e.prototype.fixCalligraphic=function(t){return t.replace(/caligraphic/,"calligraphic")},e.prototype.markMrows=function(t){if(t.isKind("mrow")&&!t.isInferred&&t.childNodes.length>=2){var r=t.childNodes[0],n=t.childNodes[t.childNodes.length-1];r.isKind("mo")&&r.attributes.get("fence")&&r.attributes.get("stretchy")&&n.isKind("mo")&&n.attributes.get("fence")&&n.attributes.get("stretchy")&&(r.childNodes.length&&t.setProperty("open",r.getText()),n.childNodes.length&&t.setProperty("close",n.getText()))}},e.prototype.trimSpace=function(t){return t.replace(/[\t\n\r]/g," ").replace(/^ +/,"").replace(/ +$/,"").replace(/ +/g," ")},e.prototype.error=function(t){throw new Error(t)},e.OPTIONS={MmlFactory:null,fixMisplacedChildren:!0,verify:X1({},vO.AbstractMmlNode.verifyDefaults),translateEntities:!0},e})();var UB=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),HB=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(G1,"__esModule",{value:!0});var EO=G1.MathML=void 0,xO=Ns,MO=tt,qB=Uo,OO=Eh,AO=xh;EO=G1.MathML=(function(e){UB(t,e);function t(r){r===void 0&&(r={});var n=this,o=HB((0,MO.separateOptions)(r,OO.FindMathML.OPTIONS,AO.MathMLCompile.OPTIONS),3),i=o[0],a=o[1],s=o[2];return n=e.call(this,i)||this,n.findMathML=n.options.FindMathML||new OO.FindMathML(a),n.mathml=n.options.MathMLCompile||new AO.MathMLCompile(s),n.mmlFilters=new qB.FunctionList,n}return t.prototype.setAdaptor=function(r){e.prototype.setAdaptor.call(this,r),this.findMathML.adaptor=r,this.mathml.adaptor=r},t.prototype.setMmlFactory=function(r){e.prototype.setMmlFactory.call(this,r),this.mathml.setMmlFactory(r)},Object.defineProperty(t.prototype,"processStrings",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.compile=function(r,n){var o=r.start.node;if(!o||!r.end.node||this.options.forceReparse||this.adaptor.kind(o)==="#text"){var i=this.executeFilters(this.preFilters,r,n,(r.math||"<math></math>").trim()),a=this.checkForErrors(this.adaptor.parse(i,"text/"+this.options.parseAs)),s=this.adaptor.body(a);this.adaptor.childNodes(s).length!==1&&this.error("MathML must consist of a single element"),o=this.adaptor.remove(this.adaptor.firstChild(s)),this.adaptor.kind(o).replace(/^[a-z]+:/,"")!=="math"&&this.error("MathML must be formed by a <math> element, not <"+this.adaptor.kind(o)+">")}return o=this.executeFilters(this.mmlFilters,r,n,o),this.executeFilters(this.postFilters,r,n,this.mathml.compile(o))},t.prototype.checkForErrors=function(r){var n=this.adaptor.tags(this.adaptor.body(r),"parsererror")[0];return n&&(this.adaptor.textContent(n)===""&&this.error("Error processing MathML"),this.options.parseError.call(this,n)),r},t.prototype.error=function(r){throw new Error(r)},t.prototype.findMath=function(r){return this.findMathML.findMath(r)},t.NAME="MathML",t.OPTIONS=(0,MO.defaultOptions)({parseAs:"html",forceReparse:!1,FindMathML:null,MathMLCompile:null,parseError:function(r){this.error(this.adaptor.textContent(r).replace(/\n.*/g,""))}},xO.AbstractInputJax.OPTIONS),t})(xO.AbstractInputJax);var V1={},Ah={},GB=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),TO=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(Ah,"__esModule",{value:!0}),Ah.FindTeX=void 0;var XB=Wl,Th=it,W1=Wr;Ah.FindTeX=(function(e){GB(t,e);function t(r){var n=e.call(this,r)||this;return n.getPatterns(),n}return t.prototype.getPatterns=function(){var r=this,n=this.options,o=[],i=[],a=[];this.end={},this.env=this.sub=0;var s=1;n.inlineMath.forEach(function(c){return r.addPattern(o,c,!1)}),n.displayMath.forEach(function(c){return r.addPattern(o,c,!0)}),o.length&&i.push(o.sort(Th.sortLength).join("|")),n.processEnvironments&&(i.push("\\\\begin\\s*\\{([^}]*)\\}"),this.env=s,s++),n.processEscapes&&a.push("\\\\([\\\\$])"),n.processRefs&&a.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})"),a.length&&(i.push("("+a.join("|")+")"),this.sub=s),this.start=new RegExp(i.join("|"),"g"),this.hasPatterns=i.length>0},t.prototype.addPattern=function(r,n,o){var i=TO(n,2),a=i[0],s=i[1];r.push((0,Th.quotePattern)(a)),this.end[a]=[s,o,this.endPattern(s)]},t.prototype.endPattern=function(r,n){return new RegExp((n||(0,Th.quotePattern)(r))+"|\\\\(?:[a-zA-Z]|.)|[{}]","g")},t.prototype.findEnd=function(r,n,o,i){for(var a=TO(i,3),s=a[0],c=a[1],l=a[2],u=l.lastIndex=o.index+o[0].length,p,d=0;p=l.exec(r);){if((p[1]||p[0])===s&&d===0)return(0,W1.protoItem)(o[0],r.substr(u,p.index-u),p[0],n,o.index,p.index+p[0].length,c);p[0]==="{"?d++:p[0]==="}"&&d&&d--}return null},t.prototype.findMathInString=function(r,n,o){var i,a;for(this.start.lastIndex=0;i=this.start.exec(o);){if(i[this.env]!==void 0&&this.env){var s="\\\\end\\s*(\\{"+(0,Th.quotePattern)(i[this.env])+"\\})";a=this.findEnd(o,n,i,["{"+i[this.env]+"}",!0,this.endPattern(null,s)]),a&&(a.math=a.open+a.math+a.close,a.open=a.close="")}else if(i[this.sub]!==void 0&&this.sub){var c=i[this.sub],s=i.index+i[this.sub].length;c.length===2?a=(0,W1.protoItem)("",c.substr(1),"",n,i.index,s):a=(0,W1.protoItem)("",c,"",n,i.index,s,!1)}else a=this.findEnd(o,n,i,this.end[i[0]]);a&&(r.push(a),this.start.lastIndex=a.end.n)}},t.prototype.findMath=function(r){var n=[];if(this.hasPatterns)for(var o=0,i=r.length;o<i;o++)this.findMathInString(n,o,r[o]);return n},t.OPTIONS={inlineMath:[["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEscapes:!0,processEnvironments:!0,processRefs:!0},t})(XB.AbstractFindMath);var $1={},Ye={},z1=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),VB=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),WB=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(Ye,"__esModule",{value:!0});var CO=ce,$B=ri,K1;(function(e){var t=new Map([["autoOP",!0],["fnOP",!0],["movesupsub",!0],["subsupOK",!0],["texprimestyle",!0],["useHeight",!0],["variantForm",!0],["withDelims",!0],["mathaccent",!0],["open",!0],["close",!0]]);function r(A){return String.fromCodePoint(parseInt(A,16))}e.createEntity=r;function n(A){return A.childNodes}e.getChildren=n;function o(A){return A.getText()}e.getText=o;function i(A,M){var C,w;try{for(var k=z1(M),L=k.next();!L.done;L=k.next()){var D=L.value;A.appendChild(D)}}catch(P){C={error:P}}finally{try{L&&!L.done&&(w=k.return)&&w.call(k)}finally{if(C)throw C.error}}}e.appendChildren=i;function a(A,M,C){A.attributes.set(M,C)}e.setAttribute=a;function s(A,M,C){A.setProperty(M,C)}e.setProperty=s;function c(A,M){var C,w;try{for(var k=z1(Object.keys(M)),L=k.next();!L.done;L=k.next()){var D=L.value,P=M[D];D==="texClass"?(A.texClass=P,A.setProperty(D,P)):D==="movablelimits"?(A.setProperty("movablelimits",P),(A.isKind("mo")||A.isKind("mstyle"))&&A.attributes.set("movablelimits",P)):D==="inferred"||(t.has(D)?A.setProperty(D,P):A.attributes.set(D,P))}}catch(F){C={error:F}}finally{try{L&&!L.done&&(w=k.return)&&w.call(k)}finally{if(C)throw C.error}}}e.setProperties=c;function l(A,M){return A.getProperty(M)}e.getProperty=l;function u(A,M){return A.attributes.get(M)}e.getAttribute=u;function p(A){for(var M=[],C=1;C<arguments.length;C++)M[C-1]=arguments[C];A.removeProperty.apply(A,WB([],VB(M),!1))}e.removeProperties=p;function d(A,M){return A.childNodes[M]}e.getChildAt=d;function h(A,M,C){var w=A.childNodes;w[M]=C,C&&(C.parent=A)}e.setChild=h;function f(A,M){for(var C=A.childNodes,w=0;w<C.length;w++)h(M,w,C[w])}e.copyChildren=f;function m(A,M){M.attributes=A.attributes,c(M,A.getAllProperties())}e.copyAttributes=m;function v(A,M){return A.isKind(M)}e.isType=v;function g(A){return A.isEmbellished}e.isEmbellished=g;function b(A){return A.texClass}e.getTexClass=b;function S(A){return A.coreMO()}e.getCoreMO=S;function E(A){return A instanceof CO.AbstractMmlNode||A instanceof CO.AbstractMmlEmptyNode}e.isNode=E;function x(A){return A.isInferred}e.isInferred=x;function O(A){var M,C;if(!v(A,"mo"))return null;var w=A,k=w.getForms();try{for(var L=z1(k),D=L.next();!D.done;D=L.next()){var P=D.value,F=$B.MmlMo.OPTABLE[P][w.getText()];if(F)return F}}catch(G){M={error:G}}finally{try{D&&!D.done&&(C=L.return)&&C.call(L)}finally{if(M)throw M.error}}return null}e.getForm=O})(K1||(K1={})),Ye.default=K1;var Di=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),zB=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty($1,"__esModule",{value:!0});var NO=ce,Kt=zB(Ye),J1;(function(e){e.cleanStretchy=function(i){var a,s,c=i.data;try{for(var l=Di(c.getList("fixStretchy")),u=l.next();!u.done;u=l.next()){var p=u.value;if(Kt.default.getProperty(p,"fixStretchy")){var d=Kt.default.getForm(p);d&&d[3]&&d[3].stretchy&&Kt.default.setAttribute(p,"stretchy",!1);var h=p.parent;if(!Kt.default.getTexClass(p)&&(!d||!d[2])){var f=c.nodeFactory.create("node","TeXAtom",[p]);h.replaceChild(f,p),f.inheritAttributesFrom(p)}Kt.default.removeProperties(p,"fixStretchy")}}}catch(m){a={error:m}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}},e.cleanAttributes=function(i){i.data.root.walkTree(function(a,s){var c,l,u=a.attributes;if(u){var p=new Set((u.get("mjx-keep-attrs")||"").split(/ /));delete u.getAllAttributes()["mjx-keep-attrs"];try{for(var d=Di(u.getExplicitNames()),h=d.next();!h.done;h=d.next()){var f=h.value;!p.has(f)&&u.attributes[f]===a.attributes.getInherited(f)&&delete u.attributes[f]}}catch(m){c={error:m}}finally{try{h&&!h.done&&(l=d.return)&&l.call(d)}finally{if(c)throw c.error}}}},{})},e.combineRelations=function(i){var a,s,c,l,u=[];try{for(var p=Di(i.data.getList("mo")),d=p.next();!d.done;d=p.next()){var h=d.value;if(!(h.getProperty("relationsCombined")||!h.parent||h.parent&&!Kt.default.isType(h.parent,"mrow")||Kt.default.getTexClass(h)!==NO.TEXCLASS.REL)){for(var f=h.parent,m=void 0,v=f.childNodes,g=v.indexOf(h)+1,b=Kt.default.getProperty(h,"variantForm");g<v.length&&(m=v[g])&&Kt.default.isType(m,"mo")&&Kt.default.getTexClass(m)===NO.TEXCLASS.REL;)if(b===Kt.default.getProperty(m,"variantForm")&&r(h,m)){Kt.default.appendChildren(h,Kt.default.getChildren(m)),t(["stretchy","rspace"],h,m);try{for(var S=(c=void 0,Di(m.getPropertyNames())),E=S.next();!E.done;E=S.next()){var x=E.value;h.setProperty(x,m.getProperty(x))}}catch(O){c={error:O}}finally{try{E&&!E.done&&(l=S.return)&&l.call(S)}finally{if(c)throw c.error}}v.splice(g,1),u.push(m),m.parent=null,m.setProperty("relationsCombined",!0)}else{h.attributes.getExplicit("rspace")??Kt.default.setAttribute(h,"rspace","0pt"),m.attributes.getExplicit("lspace")??Kt.default.setAttribute(m,"lspace","0pt");break}h.attributes.setInherited("form",h.getForms()[0])}}}catch(O){a={error:O}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}i.data.removeFromList("mo",u)};var t=function(i,a,s){var c=a.attributes,l=s.attributes;i.forEach(function(u){var p=l.getExplicit(u);p!=null&&c.set(u,p)})},r=function(i,a){var s,c,l=function(g,b){return g.getExplicitNames().filter(function(S){return S!==b&&(S!=="stretchy"||g.getExplicit("stretchy"))})},u=i.attributes,p=a.attributes,d=l(u,"lspace"),h=l(p,"rspace");if(d.length!==h.length)return!1;try{for(var f=Di(d),m=f.next();!m.done;m=f.next()){var v=m.value;if(u.getExplicit(v)!==p.getExplicit(v))return!1}}catch(g){s={error:g}}finally{try{m&&!m.done&&(c=f.return)&&c.call(f)}finally{if(s)throw s.error}}return!0},n=function(i,a,s){var c,l,u=[];try{for(var p=Di(i.getList("m"+a+s)),d=p.next();!d.done;d=p.next()){var h=d.value,f=h.childNodes;if(!(f[h[a]]&&f[h[s]])){var m=h.parent,v=f[h[a]]?i.nodeFactory.create("node","m"+a,[f[h.base],f[h[a]]]):i.nodeFactory.create("node","m"+s,[f[h.base],f[h[s]]]);Kt.default.copyAttributes(h,v),m?m.replaceChild(v,h):i.root=v,u.push(h)}}}catch(g){c={error:g}}finally{try{d&&!d.done&&(l=p.return)&&l.call(p)}finally{if(c)throw c.error}}i.removeFromList("m"+a+s,u)};e.cleanSubSup=function(i){var a=i.data;a.error||(n(a,"sub","sup"),n(a,"under","over"))};var o=function(i,a,s){var c,l,u=[];try{for(var p=Di(i.getList(a)),d=p.next();!d.done;d=p.next()){var h=d.value;if(!h.attributes.get("displaystyle")){var f=h.childNodes[h.base],m=f.coreMO();if(f.getProperty("movablelimits")&&!m.attributes.getExplicit("movablelimits")){var v=i.nodeFactory.create("node",s,h.childNodes);Kt.default.copyAttributes(h,v),h.parent?h.parent.replaceChild(v,h):i.root=v,u.push(h)}}}}catch(g){c={error:g}}finally{try{d&&!d.done&&(l=p.return)&&l.call(p)}finally{if(c)throw c.error}}i.removeFromList(a,u)};e.moveLimits=function(i){var a=i.data;o(a,"munderover","msubsup"),o(a,"munder","msub"),o(a,"mover","msup")},e.setInherited=function(i){i.data.root.setInheritedAttributes({},i.math.display,0,!1)}})(J1||(J1={})),$1.default=J1;var Ut={},qe={},Pe={};Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.default=(function(){function e(t,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this.id=t,this.message=e.processString(r,n)}return e.processString=function(t,r){for(var n=t.split(e.pattern),o=1,i=n.length;o<i;o+=2){var a=n[o].charAt(0);a>="0"&&a<="9"?(n[o]=r[parseInt(n[o],10)-1],typeof n[o]=="number"&&(n[o]=n[o].toString())):a==="{"&&(a=n[o].substr(1),a>="0"&&a<="9"?(n[o]=r[parseInt(n[o].substr(1,n[o].length-2),10)-1],typeof n[o]=="number"&&(n[o]=n[o].toString())):n[o].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/)&&(n[o]="%"+n[o])),n[o]??(n[o]="???")}return n.join("")},e.pattern=/%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g,e})();var Ch=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),_O=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),Y1=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(qe,"__esModule",{value:!0});var _s=ce,nt=Y1(Ye),ws=Y1(Ut),Ho=Y1(Pe),wO=Bi,Q1;(function(e){var t=7.2,r=72,n={em:function(U){return U},ex:function(U){return U*.43},pt:function(U){return U/10},pc:function(U){return U*1.2},px:function(U){return U*t/r},in:function(U){return U*t},cm:function(U){return U*t/2.54},mm:function(U){return U*t/25.4},mu:function(U){return U/18}},o="([-+]?([.,]\\d+|\\d+([.,]\\d*)?))",i="(pt|em|ex|mu|px|mm|cm|in|pc)",a=RegExp("^\\s*"+o+"\\s*"+i+"\\s*$"),s=RegExp("^\\s*"+o+"\\s*"+i+" ?");function c(U,j){j===void 0&&(j=!1);var B=U.match(j?s:a);return B?l([B[1].replace(/,/,"."),B[4],B[0].length]):[null,null,0]}e.matchDimen=c;function l(U){var j=Ch(U,3),B=j[0],H=j[1],V=j[2];return H!=="mu"?[B,H,V]:[p(n[H](parseFloat(B||"1"))).slice(0,-2),"em",V]}function u(U){var j=Ch(c(U),2),B=j[0],H=j[1],V=parseFloat(B||"1"),X=n[H];return X?X(V):0}e.dimen2em=u;function p(U){return Math.abs(U)<6e-4?"0em":U.toFixed(3).replace(/\.?0+$/,"")+"em"}e.Em=p;function d(){for(var U=[],j=0;j<arguments.length;j++)U[j]=arguments[j];return U.map(function(B){return p(B)}).join(" ")}e.cols=d;function h(U,j,B,H,V,X){V===void 0&&(V=""),X===void 0&&(X="");var W=U.nodeFactory,Y=W.create("node","mrow",[],{open:j,close:H,texClass:_s.TEXCLASS.INNER}),J;if(V)J=new ws.default("\\"+V+"l"+j,U.parser.stack.env,U).mml();else{var ae=W.create("text",j);J=W.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:_s.TEXCLASS.OPEN},ae)}if(nt.default.appendChildren(Y,[J,B]),V)J=new ws.default("\\"+V+"r"+H,U.parser.stack.env,U).mml();else{var ye=W.create("text",H);J=W.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:_s.TEXCLASS.CLOSE},ye)}return X&&J.attributes.set("mathcolor",X),nt.default.appendChildren(Y,[J]),Y}e.fenced=h;function f(U,j,B,H){var V=U.nodeFactory.create("node","mrow",[],{open:j,close:H,texClass:_s.TEXCLASS.ORD});return j&&nt.default.appendChildren(V,[m(U,j,"l")]),nt.default.isType(B,"mrow")?nt.default.appendChildren(V,nt.default.getChildren(B)):nt.default.appendChildren(V,[B]),H&&nt.default.appendChildren(V,[m(U,H,"r")]),V}e.fixedFence=f;function m(U,j,B){(j==="{"||j==="}")&&(j="\\"+j);var H="{\\bigg"+B+" "+j+"}",V="{\\big"+B+" "+j+"}";return new ws.default("\\mathchoice"+H+V+V+V,{},U).mml()}e.mathPalette=m;function v(U,j){for(var B=0,H=j.length;B<H;B++){var V=j[B];if(V&&!nt.default.isType(V,"mspace")&&(!nt.default.isType(V,"TeXAtom")||nt.default.getChildren(V)[0]&&nt.default.getChildren(nt.default.getChildren(V)[0]).length)){if(nt.default.isEmbellished(V)||nt.default.isType(V,"TeXAtom")&&nt.default.getTexClass(V)===_s.TEXCLASS.REL){var X=U.nodeFactory.create("node","mi");j.unshift(X)}break}}}e.fixInitialMO=v;function g(U,j,B,H){if(U.configuration.options.internalMath)return U.configuration.options.internalMath(U,j,B,H);var V=H||U.stack.env.font,X=V?{mathvariant:V}:{},W=[],Y=0,J=0,ae,ye,Xe="",Fe=0;if(j.match(/\\?[${}\\]|\\\(|\\(eq)?ref\s*\{/)){for(;Y<j.length;)if(ae=j.charAt(Y++),ae==="$")Xe==="$"&&Fe===0?(ye=U.create("node","TeXAtom",[new ws.default(j.slice(J,Y-1),{},U.configuration).mml()]),W.push(ye),Xe="",J=Y):Xe===""&&(J<Y-1&&W.push(b(U,j.slice(J,Y-1),X)),Xe="$",J=Y);else if(ae==="{"&&Xe!=="")Fe++;else if(ae==="}")if(Xe==="}"&&Fe===0){var ut=new ws.default(j.slice(J,Y),{},U.configuration).mml();ye=U.create("node","TeXAtom",[ut],X),W.push(ye),Xe="",J=Y}else Xe!==""&&Fe&&Fe--;else if(ae==="\\")if(Xe===""&&j.substr(Y).match(/^(eq)?ref\s*\{/)){var Vt=RegExp["$&"].length;J<Y-1&&W.push(b(U,j.slice(J,Y-1),X)),Xe="}",J=Y-1,Y+=Vt}else ae=j.charAt(Y++),ae==="("&&Xe===""?(J<Y-2&&W.push(b(U,j.slice(J,Y-2),X)),Xe=")",J=Y):ae===")"&&Xe===")"&&Fe===0?(ye=U.create("node","TeXAtom",[new ws.default(j.slice(J,Y-2),{},U.configuration).mml()]),W.push(ye),Xe="",J=Y):ae.match(/[${}\\]/)&&Xe===""&&(Y--,j=j.substr(0,Y-1)+j.substr(Y));if(Xe!=="")throw new Ho.default("MathNotTerminated","Math not terminated in text box")}return J<j.length&&W.push(b(U,j.slice(J),X)),B!=null?W=[U.create("node","mstyle",W,{displaystyle:!1,scriptlevel:B})]:W.length>1&&(W=[U.create("node","mrow",W)]),W}e.internalMath=g;function b(U,j,B){j=j.replace(/^\s+/,wO.entities.nbsp).replace(/\s+$/,wO.entities.nbsp);var H=U.create("text",j);return U.create("node","mtext",[],B,H)}e.internalText=b;function S(U,j,B,H,V){if(e.checkMovableLimits(j),nt.default.isType(j,"munderover")&&nt.default.isEmbellished(j)){nt.default.setProperties(nt.default.getCoreMO(j),{lspace:0,rspace:0});var X=U.create("node","mo",[],{rspace:0});j=U.create("node","mrow",[X,j])}var W=U.create("node","munderover",[j]);nt.default.setChild(W,H==="over"?W.over:W.under,B);var Y=W;return V&&(Y=U.create("node","TeXAtom",[W],{texClass:_s.TEXCLASS.OP,movesupsub:!0})),nt.default.setProperty(Y,"subsupOK",!0),Y}e.underOver=S;function E(U){var j=nt.default.isType(U,"mo")?nt.default.getForm(U):null;(nt.default.getProperty(U,"movablelimits")||j&&j[3]&&j[3].movablelimits)&&nt.default.setProperties(U,{movablelimits:!1})}e.checkMovableLimits=E;function x(U){if(typeof U!="string")return U;var j=U.trim();return j.match(/\\$/)&&U.match(/ $/)&&(j+=" "),j}e.trimSpaces=x;function O(U,j){return j=e.trimSpaces(j||""),j==="t"?U.arraydef.align="baseline 1":j==="b"?U.arraydef.align="baseline -1":j==="c"?U.arraydef.align="axis":j&&(U.arraydef.align=j),U}e.setArrayAlign=O;function A(U,j,B){for(var H="",V="",X=0;X<B.length;){var W=B.charAt(X++);if(W==="\\")H+=W+B.charAt(X++);else if(W==="#")if(W=B.charAt(X++),W==="#")H+=W;else{if(!W.match(/[1-9]/)||parseInt(W,10)>j.length)throw new Ho.default("IllegalMacroParam","Illegal macro parameter reference");V=M(U,M(U,V,H),j[parseInt(W,10)-1]),H=""}else H+=W}return M(U,V,H)}e.substituteArgs=A;function M(U,j,B){if(B.match(/^[a-z]/i)&&j.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)&&(j+=" "),j.length+B.length>U.configuration.options.maxBuffer)throw new Ho.default("MaxBufferSize","MathJax internal buffer size exceeded; is there a recursive macro call?");return j+B}e.addArgs=M;function C(U,j){if(j===void 0&&(j=!0),!(++U.macroCount<=U.configuration.options.maxMacros))throw j?new Ho.default("MaxMacroSub1","MathJax maximum macro substitution count exceeded; is here a recursive macro call?"):new Ho.default("MaxMacroSub2","MathJax maximum substitution count exceeded; is there a recursive latex environment?")}e.checkMaxMacros=C;function w(U){if(U.stack.global.eqnenv)throw new Ho.default("ErroneousNestingEq","Erroneous nesting of equation structures");U.stack.global.eqnenv=!0}e.checkEqnEnv=w;function k(U,j){var B=U.copy(),H=j.configuration;return B.walkTree(function(V){var X,W;H.addNode(V.kind,V);var Y=(V.getProperty("in-lists")||"").split(/,/);try{for(var J=_O(Y),ae=J.next();!ae.done;ae=J.next()){var ye=ae.value;ye&&H.addNode(ye,V)}}catch(Xe){X={error:Xe}}finally{try{ae&&!ae.done&&(W=J.return)&&W.call(J)}finally{if(X)throw X.error}}}),B}e.copyNode=k;function L(U,j,B){return B}e.MmlFilterAttribute=L;function D(U){var j=U.stack.env.font;return j?{mathvariant:j}:{}}e.getFontDef=D;function P(U,j,B){var H,V;j===void 0&&(j=null),B===void 0&&(B=!1);var X=F(U);if(j)try{for(var W=_O(Object.keys(X)),Y=W.next();!Y.done;Y=W.next()){var J=Y.value;if(!j.hasOwnProperty(J)){if(B)throw new Ho.default("InvalidOption","Invalid option: %1",J);delete X[J]}}}catch(ae){H={error:ae}}finally{try{Y&&!Y.done&&(V=W.return)&&V.call(W)}finally{if(H)throw H.error}}return X}e.keyvalOptions=P;function F(U){for(var j,B,H={},V=U,X,W,Y;V;)j=Ch(Q(V,["=",","]),3),W=j[0],X=j[1],V=j[2],X==="="?(B=Ch(Q(V,[","]),3),Y=B[0],X=B[1],V=B[2],Y=Y==="false"||Y==="true"?JSON.parse(Y):Y,H[W]=Y):W&&(H[W]=!0);return H}function G(U,j){for(;j>0;)U=U.trim().slice(1,-1),j--;return U.trim()}function Q(U,j){for(var B=U.length,H=0,V="",X=0,W=0,Y=!0,J=!1;X<B;){var ae=U[X++];switch(ae){case" ":break;case"{":Y?W++:(J=!1,W>H&&(W=H)),H++;break;case"}":H&&H--,(Y||J)&&(W--,J=!0),Y=!1;break;default:if(!H&&j.indexOf(ae)!==-1)return[J?"true":G(V,W),ae,U.slice(X)];Y=!1,J=!1}V+=ae}if(H)throw new Ho.default("ExtraOpenMissingClose","Extra open brace or missing close brace");return[J?"true":G(V,W),"",U.slice(X)]}})(Q1||(Q1={})),qe.default=Q1;var Nh={},KB=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),RO=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),JB=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),YB=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(Nh,"__esModule",{value:!0});var QB=YB(Ye);Nh.default=(function(){function e(t,r,n){this._factory=t,this._env=r,this.global={},this.stack=[],this.global={isInner:n},this.stack=[this._factory.create("start",this.global)],r&&(this.stack[0].env=r),this.env=this.stack[0].env}return Object.defineProperty(e.prototype,"env",{get:function(){return this._env},set:function(t){this._env=t},enumerable:!1,configurable:!0}),e.prototype.Push=function(){for(var t,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];try{for(var i=KB(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(s){var c=QB.default.isNode(s)?this._factory.create("mml",s):s;c.global=this.global;var l=RO(this.stack.length?this.Top().checkItem(c):[null,!0],2),u=l[0];if(l[1]){if(u){this.Pop(),this.Push.apply(this,JB([],RO(u),!1));continue}this.stack.push(c),c.env?(c.copyEnv&&Object.assign(c.env,this.env),this.env=c.env):c.env=this.env}}}}catch(p){t={error:p}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},e.prototype.Pop=function(){var t=this.stack.pop();return t.isOpen||delete t.env,this.env=this.stack.length?this.Top().env:{},t},e.prototype.Top=function(t){return t===void 0&&(t=1),this.stack.length<t?null:this.stack[this.stack.length-t]},e.prototype.Prev=function(t){var r=this.Top();return t?r.First:r.Pop()},e.prototype.toString=function(){return`stack[
52
+ `+this.stack.join(`
53
+ `)+`
54
+ ]`},e})();var Z1=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),eb=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),ZB=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),tb=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(Ut,"__esModule",{value:!0});var rb=tb(qe),eD=tb(Nh),Mn=tb(Pe),tD=ce;Ut.default=(function(){function e(t,r,n){var o,i;this._string=t,this.configuration=n,this.macroCount=0,this.i=0,this.currentCS="";var a=r.hasOwnProperty("isInner"),s=r.isInner;delete r.isInner;var c;if(r){c={};try{for(var l=Z1(Object.keys(r)),u=l.next();!u.done;u=l.next()){var p=u.value;c[p]=r[p]}}catch(d){o={error:d}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}}this.configuration.pushParser(this),this.stack=new eD.default(this.itemFactory,c,a?s:!0),this.Parse(),this.Push(this.itemFactory.create("stop"))}return Object.defineProperty(e.prototype,"options",{get:function(){return this.configuration.options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemFactory",{get:function(){return this.configuration.itemFactory},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tags",{get:function(){return this.configuration.tags},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"string",{get:function(){return this._string},set:function(t){this._string=t},enumerable:!1,configurable:!0}),e.prototype.parse=function(t,r){return this.configuration.handlers.get(t).parse(r)},e.prototype.lookup=function(t,r){return this.configuration.handlers.get(t).lookup(r)},e.prototype.contains=function(t,r){return this.configuration.handlers.get(t).contains(r)},e.prototype.toString=function(){var t,r,n="";try{for(var o=Z1(Array.from(this.configuration.handlers.keys())),i=o.next();!i.done;i=o.next()){var a=i.value;n+=a+": "+this.configuration.handlers.get(a)+`
55
+ `}}catch(s){t={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},e.prototype.Parse=function(){for(var t;this.i<this.string.length;)t=this.getCodePoint(),this.i+=t.length,this.parse("character",[this,t])},e.prototype.Push=function(t){t instanceof tD.AbstractMmlNode&&t.isInferred?this.PushAll(t.childNodes):this.stack.Push(t)},e.prototype.PushAll=function(t){var r,n;try{for(var o=Z1(t),i=o.next();!i.done;i=o.next()){var a=i.value;this.stack.Push(a)}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.prototype.mml=function(){if(!this.stack.Top().isKind("mml"))return null;var t=this.stack.Top().First;return this.configuration.popParser(),t},e.prototype.convertDelimiter=function(t){var r=this.lookup("delimiter",t);return r?r.char:null},e.prototype.getCodePoint=function(){var t=this.string.codePointAt(this.i);return t===void 0?"":String.fromCodePoint(t)},e.prototype.nextIsSpace=function(){return!!this.string.charAt(this.i).match(/\s/)},e.prototype.GetNext=function(){for(;this.nextIsSpace();)this.i++;return this.getCodePoint()},e.prototype.GetCS=function(){var t=this.string.slice(this.i).match(/^(([a-z]+) ?|[\uD800-\uDBFF].|.)/i);return t?(this.i+=t[0].length,t[2]||t[1]):(this.i++," ")},e.prototype.GetArgument=function(t,r){switch(this.GetNext()){case"":if(!r)throw new Mn.default("MissingArgFor","Missing argument for %1",this.currentCS);return null;case"}":if(!r)throw new Mn.default("ExtraCloseMissingOpen","Extra close brace or missing open brace");return null;case"\\":return this.i++,"\\"+this.GetCS();case"{":for(var n=++this.i,o=1;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"\\":this.i++;break;case"{":o++;break;case"}":if(--o===0)return this.string.slice(n,this.i-1)}throw new Mn.default("MissingCloseBrace","Missing close brace")}var i=this.getCodePoint();return this.i+=i.length,i},e.prototype.GetBrackets=function(t,r){if(this.GetNext()!=="[")return r;for(var n=++this.i,o=0;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"{":o++;break;case"\\":this.i++;break;case"}":if(o--<=0)throw new Mn.default("ExtraCloseLooking","Extra close brace while looking for %1","']'");break;case"]":if(o===0)return this.string.slice(n,this.i-1)}throw new Mn.default("MissingCloseBracket","Could not find closing ']' for argument to %1",this.currentCS)},e.prototype.GetDelimiter=function(t,r){var n=this.GetNext();if(this.i+=n.length,this.i<=this.string.length&&(n==="\\"?n+=this.GetCS():n==="{"&&r&&(this.i--,n=this.GetArgument(t).trim()),this.contains("delimiter",n)))return this.convertDelimiter(n);throw new Mn.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},e.prototype.GetDimen=function(t){if(this.GetNext()==="{"){var r=this.GetArgument(t),n=eb(rb.default.matchDimen(r),2),o=n[0],i=n[1];if(o)return o+i}else{var r=this.string.slice(this.i),a=eb(rb.default.matchDimen(r,!0),3),o=a[0],i=a[1],s=a[2];if(o)return this.i+=s,o+i}throw new Mn.default("MissingDimOrUnits","Missing dimension or its units for %1",this.currentCS)},e.prototype.GetUpTo=function(t,r){for(;this.nextIsSpace();)this.i++;for(var n=this.i,o=0;this.i<this.string.length;){var i=this.i,a=this.GetNext();switch(this.i+=a.length,a){case"\\":a+=this.GetCS();break;case"{":o++;break;case"}":if(o===0)throw new Mn.default("ExtraCloseLooking","Extra close brace while looking for %1",r);o--}if(o===0&&a===r)return this.string.slice(n,i)}throw new Mn.default("TokenNotFoundForCommand","Could not find %1 for %2",r,this.currentCS)},e.prototype.ParseArg=function(t){return new e(this.GetArgument(t),this.stack.env,this.configuration).mml()},e.prototype.ParseUpTo=function(t,r){return new e(this.GetUpTo(t,r),this.stack.env,this.configuration).mml()},e.prototype.GetDelimiterArg=function(t){var r=rb.default.trimSpaces(this.GetArgument(t));if(r==="")return null;if(this.contains("delimiter",r))return r;throw new Mn.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},e.prototype.GetStar=function(){var t=this.GetNext()==="*";return t&&this.i++,t},e.prototype.create=function(t){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return(r=this.configuration.nodeFactory).create.apply(r,ZB([t],eb(n),!1))},e})();var _h={},nb={},nn={},rD=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ob=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),LO=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),nD=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),oD=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(nn,"__esModule",{value:!0}),nn.BaseItem=nn.MmlStack=void 0;var IO=oD(Pe),PO=(function(){function e(t){this._nodes=t}return Object.defineProperty(e.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),e.prototype.Push=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];(t=this._nodes).push.apply(t,LO([],ob(r),!1))},e.prototype.Pop=function(){return this._nodes.pop()},Object.defineProperty(e.prototype,"First",{get:function(){return this._nodes[this.Size()-1]},set:function(t){this._nodes[this.Size()-1]=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Last",{get:function(){return this._nodes[0]},set:function(t){this._nodes[0]=t},enumerable:!1,configurable:!0}),e.prototype.Peek=function(t){return t??(t=1),this._nodes.slice(this.Size()-t)},e.prototype.Size=function(){return this._nodes.length},e.prototype.Clear=function(){this._nodes=[]},e.prototype.toMml=function(t,r){return t===void 0&&(t=!0),this._nodes.length===1&&!r?this.First:this.create("node",t?"inferredMrow":"mrow",this._nodes,{})},e.prototype.create=function(t){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return(r=this.factory.configuration.nodeFactory).create.apply(r,LO([t],ob(n),!1))},e})();nn.MmlStack=PO,nn.BaseItem=(function(e){rD(t,e);function t(r){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=e.call(this,n)||this;return i.factory=r,i.global={},i._properties={},i.isOpen&&(i._env={}),i}return Object.defineProperty(t.prototype,"kind",{get:function(){return"base"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"env",{get:function(){return this._env},set:function(r){this._env=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyEnv",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProperty=function(r){return this._properties[r]},t.prototype.setProperty=function(r,n){return this._properties[r]=n,this},Object.defineProperty(t.prototype,"isOpen",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFinal",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.isKind=function(r){return r===this.kind},t.prototype.checkItem=function(r){if(r.isKind("over")&&this.isOpen&&(r.setProperty("num",this.toMml(!1)),this.Clear()),r.isKind("cell")&&this.isOpen){if(r.getProperty("linebreak"))return t.fail;throw new IO.default("Misplaced","Misplaced %1",r.getName())}if(r.isClose&&this.getErrors(r.kind)){var n=ob(this.getErrors(r.kind),2),o=n[0],i=n[1];throw new IO.default(o,i,r.getName())}return r.isFinal?(this.Push(r.First),t.fail):t.success},t.prototype.clearEnv=function(){var r,n;try{for(var o=nD(Object.keys(this.env)),i=o.next();!i.done;i=o.next()){var a=i.value;delete this.env[a]}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},t.prototype.setProperties=function(r){return Object.assign(this._properties,r),this},t.prototype.getName=function(){return this.getProperty("name")},t.prototype.toString=function(){return this.kind+"["+this.nodes.join("; ")+"]"},t.prototype.getErrors=function(r){return(this.constructor.errors||{})[r]||t.errors[r]},t.fail=[null,!1],t.success=[null,!0],t.errors={end:["MissingBeginExtraEnd","Missing \\begin{%1} or extra \\end{%1}"],close:["ExtraCloseMissingOpen","Extra close brace or missing open brace"],right:["MissingLeftExtraRight","Missing \\left or extra \\right"],middle:["ExtraMiddle","Extra \\middle"]},t})(PO);var kO=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ib;Object.defineProperty(nb,"__esModule",{value:!0});var iD=nn,aD=oa,BO=(function(e){kO(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(iD.BaseItem);nb.default=(function(e){kO(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.defaultKind="dummy",r.configuration=null,r}return t.DefaultStackItems=(ib={},ib[BO.prototype.kind]=BO,ib),t})(aD.AbstractFactory);var Rs={},sD=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),cD=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),lD=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.NodeFactory=void 0;var uD=lD(Ye);Rs.NodeFactory=(function(){function e(){this.mmlFactory=null,this.factory={node:e.createNode,token:e.createToken,text:e.createText,error:e.createError}}return e.createNode=function(t,r,n,o,i){n===void 0&&(n=[]),o===void 0&&(o={});var a=t.mmlFactory.create(r);return a.setChildren(n),i&&a.appendChild(i),uD.default.setProperties(a,o),a},e.createToken=function(t,r,n,o){n===void 0&&(n={}),o===void 0&&(o="");var i=t.create("text",o);return t.create("node",r,[],n,i)},e.createText=function(t,r){return r==null?null:t.mmlFactory.create("text").setText(r)},e.createError=function(t,r){var n=t.create("text",r),o=t.create("node","mtext",[],{},n);return t.create("node","merror",[o],{"data-mjx-error":r})},e.prototype.setMmlFactory=function(t){this.mmlFactory=t},e.prototype.set=function(t,r){this.factory[t]=r},e.prototype.setCreators=function(t){for(var r in t)this.set(r,t[r])},e.prototype.create=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=(this.factory[t]||this.factory.node).apply(void 0,cD([this,r[0]],sD(r.slice(1)),!1));return t==="node"&&this.configuration.addNode(r[0],o),o},e.prototype.get=function(t){return this.factory[t]},e})();var pD=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),dD=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),DO=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),jO=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(_h,"__esModule",{value:!0});var hD=jO(nb),fD=Rs,FO=jO(Ye),UO=tt;_h.default=(function(){function e(t,r){r===void 0&&(r=[]),this.options={},this.packageData=new Map,this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.handlers=t.handlers,this.nodeFactory=new fD.NodeFactory,this.nodeFactory.configuration=this,this.nodeFactory.setCreators(t.nodes),this.itemFactory=new hD.default(t.items),this.itemFactory.configuration=this,UO.defaultOptions.apply(void 0,dD([this.options],pD(r),!1)),(0,UO.defaultOptions)(this.options,t.options)}return e.prototype.pushParser=function(t){this.parsers.unshift(t)},e.prototype.popParser=function(){this.parsers.shift()},Object.defineProperty(e.prototype,"parser",{get:function(){return this.parsers[0]},enumerable:!1,configurable:!0}),e.prototype.clear=function(){this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.tags.resetTag()},e.prototype.addNode=function(t,r){var n=this.nodeLists[t];if(n||(n=this.nodeLists[t]=[]),n.push(r),r.kind!==t){var o=FO.default.getProperty(r,"in-lists")||"",i=(o?o.split(/,/):[]).concat(t).join(",");FO.default.setProperty(r,"in-lists",i)}},e.prototype.getList=function(t){var r,n,o=this.nodeLists[t]||[],i=[];try{for(var a=DO(o),s=a.next();!s.done;s=a.next()){var c=s.value;this.inTree(c)&&i.push(c)}}catch(l){r={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return this.nodeLists[t]=i,i},e.prototype.removeFromList=function(t,r){var n,o,i=this.nodeLists[t]||[];try{for(var a=DO(r),s=a.next();!s.done;s=a.next()){var c=s.value,l=i.indexOf(c);l>=0&&i.splice(l,1)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},e.prototype.inTree=function(t){for(;t&&t!==this.root;)t=t.parent;return!!t},e})();var On={};(function(e){var t=y&&y.__extends||(function(){var u=function(p,d){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(h,f){h.__proto__=f})||(function(h,f){for(var m in f)Object.prototype.hasOwnProperty.call(f,m)&&(h[m]=f[m])}),u(p,d)};return function(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");u(p,d);function h(){this.constructor=p}p.prototype=d===null?Object.create(d):(h.prototype=d.prototype,new h)}})(),r=y&&y.__values||(function(u){var p=typeof Symbol=="function"&&Symbol.iterator,d=p&&u[p],h=0;if(d)return d.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&h>=u.length&&(u=void 0),{value:u&&u[h++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")}),n=y&&y.__importDefault||(function(u){return u&&u.__esModule?u:{default:u}});Object.defineProperty(e,"__esModule",{value:!0}),e.TagsFactory=e.AllTags=e.NoTags=e.AbstractTags=e.TagInfo=e.Label=void 0;var o=n(Ut),i=(function(){function u(p,d){p===void 0&&(p="???"),d===void 0&&(d=""),this.tag=p,this.id=d}return u})();e.Label=i;var a=(function(){function u(p,d,h,f,m,v,g,b){p===void 0&&(p=""),d===void 0&&(d=!1),h===void 0&&(h=!1),f===void 0&&(f=null),m===void 0&&(m=""),v===void 0&&(v=""),g===void 0&&(g=!1),b===void 0&&(b=""),this.env=p,this.taggable=d,this.defaultTags=h,this.tag=f,this.tagId=m,this.tagFormat=v,this.noTag=g,this.labelId=b}return u})();e.TagInfo=a;var s=(function(){function u(){this.counter=0,this.allCounter=0,this.configuration=null,this.ids={},this.allIds={},this.labels={},this.allLabels={},this.redo=!1,this.refUpdate=!1,this.currentTag=new a,this.history=[],this.stack=[],this.enTag=function(p,d){var h=this.configuration.nodeFactory,f=h.create("node","mtd",[p]),m=h.create("node","mlabeledtr",[d,f]);return h.create("node","mtable",[m],{side:this.configuration.options.tagSide,minlabelspacing:this.configuration.options.tagIndent,displaystyle:!0})}}return u.prototype.start=function(p,d,h){this.currentTag&&this.stack.push(this.currentTag),this.currentTag=new a(p,d,h)},Object.defineProperty(u.prototype,"env",{get:function(){return this.currentTag.env},enumerable:!1,configurable:!0}),u.prototype.end=function(){this.history.push(this.currentTag),this.currentTag=this.stack.pop()},u.prototype.tag=function(p,d){this.currentTag.tag=p,this.currentTag.tagFormat=d?p:this.formatTag(p),this.currentTag.noTag=!1},u.prototype.notag=function(){this.tag("",!0),this.currentTag.noTag=!0},Object.defineProperty(u.prototype,"noTag",{get:function(){return this.currentTag.noTag},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"label",{get:function(){return this.currentTag.labelId},set:function(p){this.currentTag.labelId=p},enumerable:!1,configurable:!0}),u.prototype.formatUrl=function(p,d){return d+"#"+encodeURIComponent(p)},u.prototype.formatTag=function(p){return"("+p+")"},u.prototype.formatId=function(p){return"mjx-eqn:"+p.replace(/\s/g,"_")},u.prototype.formatNumber=function(p){return p.toString()},u.prototype.autoTag=function(){this.currentTag.tag??(this.counter++,this.tag(this.formatNumber(this.counter),!1))},u.prototype.clearTag=function(){this.label="",this.tag(null,!0),this.currentTag.tagId=""},u.prototype.getTag=function(p){if(p===void 0&&(p=!1),p)return this.autoTag(),this.makeTag();var d=this.currentTag;return d.taggable&&!d.noTag&&(d.defaultTags&&this.autoTag(),d.tag)?this.makeTag():null},u.prototype.resetTag=function(){this.history=[],this.redo=!1,this.refUpdate=!1,this.clearTag()},u.prototype.reset=function(p){p===void 0&&(p=0),this.resetTag(),this.counter=this.allCounter=p,this.allLabels={},this.allIds={}},u.prototype.startEquation=function(p){this.history=[],this.stack=[],this.clearTag(),this.currentTag=new a("",void 0,void 0),this.labels={},this.ids={},this.counter=this.allCounter,this.redo=!1;var d=p.inputData.recompile;d&&(this.refUpdate=!0,this.counter=d.counter)},u.prototype.finishEquation=function(p){this.redo&&(p.inputData.recompile={state:p.state(),counter:this.allCounter}),this.refUpdate||(this.allCounter=this.counter),Object.assign(this.allIds,this.ids),Object.assign(this.allLabels,this.labels)},u.prototype.finalize=function(p,d){if(!d.display||this.currentTag.env||this.currentTag.tag==null)return p;var h=this.makeTag();return this.enTag(p,h)},u.prototype.makeId=function(){this.currentTag.tagId=this.formatId(this.configuration.options.useLabelIds?this.label||this.currentTag.tag:this.currentTag.tag)},u.prototype.makeTag=function(){this.makeId(),this.label&&(this.labels[this.label]=new i(this.currentTag.tag,this.currentTag.tagId));var p=new o.default("\\text{"+this.currentTag.tagFormat+"}",{},this.configuration).mml();return this.configuration.nodeFactory.create("node","mtd",[p],{id:this.currentTag.tagId})},u})();e.AbstractTags=s;var c=(function(u){t(p,u);function p(){return u!==null&&u.apply(this,arguments)||this}return p.prototype.autoTag=function(){},p.prototype.getTag=function(){return this.currentTag.tag?u.prototype.getTag.call(this):null},p})(s);e.NoTags=c;var l=(function(u){t(p,u);function p(){return u!==null&&u.apply(this,arguments)||this}return p.prototype.finalize=function(d,h){if(!h.display||this.history.find(function(m){return m.taggable}))return d;var f=this.getTag(!0);return this.enTag(d,f)},p})(s);e.AllTags=l,(function(u){var p=new Map([["none",c],["all",l]]),d="none";u.OPTIONS={tags:d,tagSide:"right",tagIndent:"0.8em",useLabelIds:!0,ignoreDuplicateLabels:!1},u.add=function(h,f){p.set(h,f)},u.addTags=function(h){var f,m;try{for(var v=r(Object.keys(h)),g=v.next();!g.done;g=v.next()){var b=g.value;u.add(b,h[b])}}catch(S){f={error:S}}finally{try{g&&!g.done&&(m=v.return)&&m.call(v)}finally{if(f)throw f.error}}},u.create=function(h){var f=p.get(h)||p.get(d);if(!f)throw Error("Unknown tags class");return new f},u.setDefault=function(h){d=h},u.getDefault=function(){return u.create(d)}})(e.TagsFactory||(e.TagsFactory={}))})(On),ee(On);var _e={},Ls={};(function(e){var t=y&&y.__values||(function(s){var c=typeof Symbol=="function"&&Symbol.iterator,l=c&&s[c],u=0;if(l)return l.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&u>=s.length&&(s=void 0),{value:s&&s[u++],done:!s}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}),r=y&&y.__read||(function(s,c){var l=typeof Symbol=="function"&&s[Symbol.iterator];if(!l)return s;var u=l.call(s),p,d=[],h;try{for(;(c===void 0||c-- >0)&&!(p=u.next()).done;)d.push(p.value)}catch(f){h={error:f}}finally{try{p&&!p.done&&(l=u.return)&&l.call(u)}finally{if(h)throw h.error}}return d});Object.defineProperty(e,"__esModule",{value:!0}),e.SubHandlers=e.SubHandler=e.MapHandler=void 0;var n=bo,o=Uo,i;(function(s){var c=new Map;s.register=function(l){c.set(l.name,l)},s.getMap=function(l){return c.get(l)}})(i=e.MapHandler||(e.MapHandler={}));var a=(function(){function s(){this._configuration=new n.PrioritizedList,this._fallback=new o.FunctionList}return s.prototype.add=function(c,l,u){var p,d;u===void 0&&(u=n.PrioritizedList.DEFAULTPRIORITY);try{for(var h=t(c.slice().reverse()),f=h.next();!f.done;f=h.next()){var m=f.value,v=i.getMap(m);if(!v){this.warn("Configuration "+m+" not found! Omitted.");return}this._configuration.add(v,u)}}catch(g){p={error:g}}finally{try{f&&!f.done&&(d=h.return)&&d.call(h)}finally{if(p)throw p.error}}l&&this._fallback.add(l,u)},s.prototype.parse=function(c){var l,u;try{for(var p=t(this._configuration),d=p.next();!d.done;d=p.next()){var h=d.value.item.parse(c);if(h)return h}}catch(g){l={error:g}}finally{try{d&&!d.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}var f=r(c,2),m=f[0],v=f[1];Array.from(this._fallback)[0].item(m,v)},s.prototype.lookup=function(c){var l=this.applicable(c);return l?l.lookup(c):null},s.prototype.contains=function(c){return!!this.applicable(c)},s.prototype.toString=function(){var c,l,u=[];try{for(var p=t(this._configuration),d=p.next();!d.done;d=p.next()){var h=d.value.item;u.push(h.name)}}catch(f){c={error:f}}finally{try{d&&!d.done&&(l=p.return)&&l.call(p)}finally{if(c)throw c.error}}return u.join(", ")},s.prototype.applicable=function(c){var l,u;try{for(var p=t(this._configuration),d=p.next();!d.done;d=p.next()){var h=d.value.item;if(h.contains(c))return h}}catch(f){l={error:f}}finally{try{d&&!d.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}return null},s.prototype.retrieve=function(c){var l,u;try{for(var p=t(this._configuration),d=p.next();!d.done;d=p.next()){var h=d.value.item;if(h.name===c)return h}}catch(f){l={error:f}}finally{try{d&&!d.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}return null},s.prototype.warn=function(c){console.log("TexParser Warning: "+c)},s})();e.SubHandler=a,e.SubHandlers=(function(){function s(){this.map=new Map}return s.prototype.add=function(c,l,u){var p,d;u===void 0&&(u=n.PrioritizedList.DEFAULTPRIORITY);try{for(var h=t(Object.keys(c)),f=h.next();!f.done;f=h.next()){var m=f.value,v=this.get(m);v||(v=new a,this.set(m,v)),v.add(c[m],l[m],u)}}catch(g){p={error:g}}finally{try{f&&!f.done&&(d=h.return)&&d.call(h)}finally{if(p)throw p.error}}},s.prototype.set=function(c,l){this.map.set(c,l)},s.prototype.get=function(c){return this.map.get(c)},s.prototype.retrieve=function(c){var l,u;try{for(var p=t(this.map.values()),d=p.next();!d.done;d=p.next()){var h=d.value.retrieve(c);if(h)return h}}catch(f){l={error:f}}finally{try{d&&!d.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}return null},s.prototype.keys=function(){return this.map.keys()},s})()})(Ls),ee(Ls),(function(e){var t=y&&y.__values||(function(l){var u=typeof Symbol=="function"&&Symbol.iterator,p=u&&l[u],d=0;if(p)return p.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&d>=l.length&&(l=void 0),{value:l&&l[d++],done:!l}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")}),r=y&&y.__read||(function(l,u){var p=typeof Symbol=="function"&&l[Symbol.iterator];if(!p)return l;var d=p.call(l),h,f=[],m;try{for(;(u===void 0||u-- >0)&&!(h=d.next()).done;)f.push(h.value)}catch(v){m={error:v}}finally{try{h&&!h.done&&(p=d.return)&&p.call(d)}finally{if(m)throw m.error}}return f});Object.defineProperty(e,"__esModule",{value:!0}),e.ParserConfiguration=e.ConfigurationHandler=e.Configuration=void 0;var n=tt,o=Ls,i=Uo,a=bo,s=On;e.Configuration=(function(){function l(u,p,d,h,f,m,v,g,b,S,E,x,O){p===void 0&&(p={}),d===void 0&&(d={}),h===void 0&&(h={}),f===void 0&&(f={}),m===void 0&&(m={}),v===void 0&&(v={}),g===void 0&&(g=[]),b===void 0&&(b=[]),S===void 0&&(S=null),E===void 0&&(E=null),this.name=u,this.handler=p,this.fallback=d,this.items=h,this.tags=f,this.options=m,this.nodes=v,this.preprocessors=g,this.postprocessors=b,this.initMethod=S,this.configMethod=E,this.priority=x,this.parser=O,this.handler=Object.assign({character:[],delimiter:[],macro:[],environment:[]},p)}return l.makeProcessor=function(u,p){return Array.isArray(u)?u:[u,p]},l._create=function(u,p){var d=this;p===void 0&&(p={});var h=p.priority||a.PrioritizedList.DEFAULTPRIORITY,f=p.init?this.makeProcessor(p.init,h):null,m=p.config?this.makeProcessor(p.config,h):null,v=(p.preprocessors||[]).map(function(S){return d.makeProcessor(S,h)}),g=(p.postprocessors||[]).map(function(S){return d.makeProcessor(S,h)}),b=p.parser||"tex";return new l(u,p.handler||{},p.fallback||{},p.items||{},p.tags||{},p.options||{},p.nodes||{},v,g,f,m,h,b)},l.create=function(u,p){p===void 0&&(p={});var d=l._create(u,p);return c.set(u,d),d},l.local=function(u){return u===void 0&&(u={}),l._create("",u)},Object.defineProperty(l.prototype,"init",{get:function(){return this.initMethod?this.initMethod[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"config",{get:function(){return this.configMethod?this.configMethod[0]:null},enumerable:!1,configurable:!0}),l})();var c;(function(l){var u=new Map;l.set=function(p,d){u.set(p,d)},l.get=function(p){return u.get(p)},l.keys=function(){return u.keys()}})(c=e.ConfigurationHandler||(e.ConfigurationHandler={})),e.ParserConfiguration=(function(){function l(u,p){var d,h,f,m;p===void 0&&(p=["tex"]),this.initMethod=new i.FunctionList,this.configMethod=new i.FunctionList,this.configurations=new a.PrioritizedList,this.parsers=[],this.handlers=new o.SubHandlers,this.items={},this.tags={},this.options={},this.nodes={},this.parsers=p;try{for(var v=t(u.slice().reverse()),g=v.next();!g.done;g=v.next()){var b=g.value;this.addPackage(b)}}catch(M){d={error:M}}finally{try{g&&!g.done&&(h=v.return)&&h.call(v)}finally{if(d)throw d.error}}try{for(var S=t(this.configurations),E=S.next();!E.done;E=S.next()){var x=E.value,O=x.item,A=x.priority;this.append(O,A)}}catch(M){f={error:M}}finally{try{E&&!E.done&&(m=S.return)&&m.call(S)}finally{if(f)throw f.error}}}return l.prototype.init=function(){this.initMethod.execute(this)},l.prototype.config=function(u){var p,d;this.configMethod.execute(this,u);try{for(var h=t(this.configurations),f=h.next();!f.done;f=h.next()){var m=f.value;this.addFilters(u,m.item)}}catch(v){p={error:v}}finally{try{f&&!f.done&&(d=h.return)&&d.call(h)}finally{if(p)throw p.error}}},l.prototype.addPackage=function(u){var p=typeof u=="string"?u:u[0],d=this.getPackage(p);d&&this.configurations.add(d,typeof u=="string"?d.priority:u[1])},l.prototype.add=function(u,p,d){var h,f;d===void 0&&(d={});var m=this.getPackage(u);this.append(m),this.configurations.add(m,m.priority),this.init();var v=p.parseOptions;v.nodeFactory.setCreators(m.nodes);try{for(var g=t(Object.keys(m.items)),b=g.next();!b.done;b=g.next()){var S=b.value;v.itemFactory.setNodeClass(S,m.items[S])}}catch(E){h={error:E}}finally{try{b&&!b.done&&(f=g.return)&&f.call(g)}finally{if(h)throw h.error}}s.TagsFactory.addTags(m.tags),(0,n.defaultOptions)(v.options,m.options),(0,n.userOptions)(v.options,d),this.addFilters(p,m),m.config&&m.config(this,p)},l.prototype.getPackage=function(u){var p=c.get(u);if(p&&this.parsers.indexOf(p.parser)<0)throw Error("Package ".concat(u," doesn't target the proper parser"));return p},l.prototype.append=function(u,p){p=p||u.priority,u.initMethod&&this.initMethod.add(u.initMethod[0],u.initMethod[1]),u.configMethod&&this.configMethod.add(u.configMethod[0],u.configMethod[1]),this.handlers.add(u.handler,u.fallback,p),Object.assign(this.items,u.items),Object.assign(this.tags,u.tags),(0,n.defaultOptions)(this.options,u.options),Object.assign(this.nodes,u.nodes)},l.prototype.addFilters=function(u,p){var d,h,f,m;try{for(var v=t(p.preprocessors),g=v.next();!g.done;g=v.next()){var b=r(g.value,2),S=b[0],E=b[1];u.preFilters.add(S,E)}}catch(C){d={error:C}}finally{try{g&&!g.done&&(h=v.return)&&h.call(v)}finally{if(d)throw d.error}}try{for(var x=t(p.postprocessors),O=x.next();!O.done;O=x.next()){var A=r(O.value,2),M=A[0],E=A[1];u.postFilters.add(M,E)}}catch(C){f={error:C}}finally{try{O&&!O.done&&(m=x.return)&&m.call(x)}finally{if(f)throw f.error}}},l})()})(_e),ee(_e);var qo={},de={},on={};Object.defineProperty(on,"__esModule",{value:!0}),on.Macro=on.Symbol=void 0,on.Symbol=(function(){function e(t,r,n){this._symbol=t,this._char=r,this._attributes=n}return Object.defineProperty(e.prototype,"symbol",{get:function(){return this._symbol},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"char",{get:function(){return this._char},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){return this._attributes},enumerable:!1,configurable:!0}),e})(),on.Macro=(function(){function e(t,r,n){n===void 0&&(n=[]),this._symbol=t,this._func=r,this._args=n}return Object.defineProperty(e.prototype,"symbol",{get:function(){return this._symbol},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"func",{get:function(){return this._func},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"args",{get:function(){return this._args},enumerable:!1,configurable:!0}),e})();var ji=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),so=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),HO=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),qO=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(de,"__esModule",{value:!0}),de.EnvironmentMap=de.CommandMap=de.MacroMap=de.DelimiterMap=de.CharacterMap=de.AbstractParseMap=de.RegExpMap=de.AbstractSymbolMap=de.parseResult=void 0;var GO=on,mD=Ls;function zl(e){return e===void 0?!0:e}de.parseResult=zl;var ab=(function(){function e(t,r){this._name=t,this._parser=r,mD.MapHandler.register(this)}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e.prototype.parserFor=function(t){return this.contains(t)?this.parser:null},e.prototype.parse=function(t){var r=so(t,2),n=r[0],o=r[1],i=this.parserFor(o),a=this.lookup(o);return i&&a?zl(i(n,a)):null},Object.defineProperty(e.prototype,"parser",{get:function(){return this._parser},set:function(t){this._parser=t},enumerable:!1,configurable:!0}),e})();de.AbstractSymbolMap=ab,de.RegExpMap=(function(e){ji(t,e);function t(r,n,o){var i=e.call(this,r,n)||this;return i._regExp=o,i}return t.prototype.contains=function(r){return this._regExp.test(r)},t.prototype.lookup=function(r){return this.contains(r)?r:null},t})(ab);var sb=(function(e){ji(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.map=new Map,r}return t.prototype.lookup=function(r){return this.map.get(r)},t.prototype.contains=function(r){return this.map.has(r)},t.prototype.add=function(r,n){this.map.set(r,n)},t.prototype.remove=function(r){this.map.delete(r)},t})(ab);de.AbstractParseMap=sb;var XO=(function(e){ji(t,e);function t(r,n,o){var i,a,s=e.call(this,r,n)||this;try{for(var c=HO(Object.keys(o)),l=c.next();!l.done;l=c.next()){var u=l.value,p=o[u],d=so(typeof p=="string"?[p,null]:p,2),h=d[0],f=d[1],m=new GO.Symbol(u,h,f);s.add(u,m)}}catch(v){i={error:v}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return s}return t})(sb);de.CharacterMap=XO,de.DelimiterMap=(function(e){ji(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.parse=function(r){var n=so(r,2),o=n[0],i=n[1];return e.prototype.parse.call(this,[o,"\\"+i])},t})(XO);var cb=(function(e){ji(t,e);function t(r,n,o){var i,a,s=e.call(this,r,null)||this;try{for(var c=HO(Object.keys(n)),l=c.next();!l.done;l=c.next()){var u=l.value,p=n[u],d=so(typeof p=="string"?[p]:p),h=d[0],f=d.slice(1),m=new GO.Macro(u,o[h],f);s.add(u,m)}}catch(v){i={error:v}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return s}return t.prototype.parserFor=function(r){var n=this.lookup(r);return n?n.func:null},t.prototype.parse=function(r){var n=so(r,2),o=n[0],i=n[1],a=this.lookup(i),s=this.parserFor(i);return!a||!s?null:zl(s.apply(void 0,qO([o,a.symbol],so(a.args),!1)))},t})(sb);de.MacroMap=cb,de.CommandMap=(function(e){ji(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.parse=function(r){var n=so(r,2),o=n[0],i=n[1],a=this.lookup(i),s=this.parserFor(i);if(!a||!s)return null;var c=o.currentCS;o.currentCS="\\"+i;var l=s.apply(void 0,qO([o,"\\"+a.symbol],so(a.args),!1));return o.currentCS=c,zl(l)},t})(cb),de.EnvironmentMap=(function(e){ji(t,e);function t(r,n,o,i){var a=e.call(this,r,o,i)||this;return a.parser=n,a}return t.prototype.parse=function(r){var n=so(r,2),o=n[0],i=n[1],a=this.lookup(i),s=this.parserFor(i);return!a||!s?null:zl(this.parser(o,a.symbol,s,a.args))},t})(cb);var pe={},ft=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),wh=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),lb=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),ub=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(pe,"__esModule",{value:!0}),pe.EquationItem=pe.EqnArrayItem=pe.ArrayItem=pe.DotsItem=pe.NonscriptItem=pe.NotItem=pe.FnItem=pe.MmlItem=pe.CellItem=pe.PositionItem=pe.StyleItem=pe.EndItem=pe.BeginItem=pe.RightItem=pe.Middle=pe.LeftItem=pe.OverItem=pe.SubsupItem=pe.PrimeItem=pe.CloseItem=pe.OpenItem=pe.StopItem=pe.StartItem=void 0;var yD=Ls,gD=Bi,Is=ce,Go=ub(Pe),Xo=ub(qe),we=ub(Ye),ke=nn;pe.StartItem=(function(e){ft(t,e);function t(r,n){var o=e.call(this,r)||this;return o.global=n,o}return Object.defineProperty(t.prototype,"kind",{get:function(){return"start"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("stop")){var n=this.toMml();return this.global.isInner||(n=this.factory.configuration.tags.finalize(n,this.env)),[[this.factory.create("mml",n)],!0]}return e.prototype.checkItem.call(this,r)},t})(ke.BaseItem),pe.StopItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"stop"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t})(ke.BaseItem),pe.OpenItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"open"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("close")){var n=this.toMml(),o=this.create("node","TeXAtom",[n]);return[[this.factory.create("mml",o)],!0]}return e.prototype.checkItem.call(this,r)},t.errors=Object.assign(Object.create(ke.BaseItem.errors),{stop:["ExtraOpenMissingClose","Extra open brace or missing close brace"]}),t})(ke.BaseItem),pe.CloseItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"close"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t})(ke.BaseItem),pe.PrimeItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"prime"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){var n=wh(this.Peek(2),2),o=n[0],i=n[1];return!we.default.isType(o,"msubsup")||we.default.isType(o,"msup")?[[this.create("node","msup",[o,i]),r],!0]:(we.default.setChild(o,o.sup,i),[[o,r],!0])},t})(ke.BaseItem),pe.SubsupItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"subsup"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("open")||r.isKind("left"))return ke.BaseItem.success;var n=this.First,o=this.getProperty("position");if(r.isKind("mml"))return this.getProperty("primes")&&(o!==2?we.default.setChild(n,2,this.getProperty("primes")):(we.default.setProperty(this.getProperty("primes"),"variantForm",!0),r.First=this.create("node","mrow",[this.getProperty("primes"),r.First]))),we.default.setChild(n,o,r.First),this.getProperty("movesupsub")!=null&&we.default.setProperty(n,"movesupsub",this.getProperty("movesupsub")),[[this.factory.create("mml",n)],!0];if(e.prototype.checkItem.call(this,r)[1]){var i=this.getErrors(["","sub","sup"][o]);throw new(Go.default.bind.apply(Go.default,lb([void 0,i[0],i[1]],wh(i.splice(2)),!1)))}return null},t.errors=Object.assign(Object.create(ke.BaseItem.errors),{stop:["MissingScript","Missing superscript or subscript argument"],sup:["MissingOpenForSup","Missing open brace for superscript"],sub:["MissingOpenForSub","Missing open brace for subscript"]}),t})(ke.BaseItem),pe.OverItem=(function(e){ft(t,e);function t(r){var n=e.call(this,r)||this;return n.setProperty("name","\\over"),n}return Object.defineProperty(t.prototype,"kind",{get:function(){return"over"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("over"))throw new Go.default("AmbiguousUseOf","Ambiguous use of %1",r.getName());if(r.isClose){var n=this.create("node","mfrac",[this.getProperty("num"),this.toMml(!1)]);return this.getProperty("thickness")!=null&&we.default.setAttribute(n,"linethickness",this.getProperty("thickness")),(this.getProperty("open")||this.getProperty("close"))&&(we.default.setProperty(n,"withDelims",!0),n=Xo.default.fixedFence(this.factory.configuration,this.getProperty("open"),n,this.getProperty("close"))),[[this.factory.create("mml",n),r],!0]}return e.prototype.checkItem.call(this,r)},t.prototype.toString=function(){return"over["+this.getProperty("num")+" / "+this.nodes.join("; ")+"]"},t})(ke.BaseItem),pe.LeftItem=(function(e){ft(t,e);function t(r,n){var o=e.call(this,r)||this;return o.setProperty("delim",n),o}return Object.defineProperty(t.prototype,"kind",{get:function(){return"left"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("right"))return[[this.factory.create("mml",Xo.default.fenced(this.factory.configuration,this.getProperty("delim"),this.toMml(),r.getProperty("delim"),"",r.getProperty("color")))],!0];if(r.isKind("middle")){var n={stretchy:!0};return r.getProperty("color")&&(n.mathcolor=r.getProperty("color")),this.Push(this.create("node","TeXAtom",[],{texClass:Is.TEXCLASS.CLOSE}),this.create("token","mo",n,r.getProperty("delim")),this.create("node","TeXAtom",[],{texClass:Is.TEXCLASS.OPEN})),this.env={},[[this],!0]}return e.prototype.checkItem.call(this,r)},t.errors=Object.assign(Object.create(ke.BaseItem.errors),{stop:["ExtraLeftMissingRight","Extra \\left or missing \\right"]}),t})(ke.BaseItem),pe.Middle=(function(e){ft(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.setProperty("delim",n),o&&i.setProperty("color",o),i}return Object.defineProperty(t.prototype,"kind",{get:function(){return"middle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t})(ke.BaseItem),pe.RightItem=(function(e){ft(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.setProperty("delim",n),o&&i.setProperty("color",o),i}return Object.defineProperty(t.prototype,"kind",{get:function(){return"right"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t})(ke.BaseItem),pe.BeginItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"begin"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("end")){if(r.getName()!==this.getName())throw new Go.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),r.getName());return this.getProperty("end")?ke.BaseItem.fail:[[this.factory.create("mml",this.toMml())],!0]}if(r.isKind("stop"))throw new Go.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return e.prototype.checkItem.call(this,r)},t})(ke.BaseItem),pe.EndItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"end"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t})(ke.BaseItem),pe.StyleItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"style"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(!r.isClose)return e.prototype.checkItem.call(this,r);var n=this.create("node","mstyle",this.nodes,this.getProperty("styles"));return[[this.factory.create("mml",n),r],!0]},t})(ke.BaseItem),pe.PositionItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"position"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isClose)throw new Go.default("MissingBoxFor","Missing box for %1",this.getName());if(r.isFinal){var n=r.toMml();switch(this.getProperty("move")){case"vertical":return n=this.create("node","mpadded",[n],{height:this.getProperty("dh"),depth:this.getProperty("dd"),voffset:this.getProperty("dh")}),[[this.factory.create("mml",n)],!0];case"horizontal":return[[this.factory.create("mml",this.getProperty("left")),r,this.factory.create("mml",this.getProperty("right"))],!0]}}return e.prototype.checkItem.call(this,r)},t})(ke.BaseItem),pe.CellItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"cell"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),t})(ke.BaseItem),pe.MmlItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"isFinal",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"kind",{get:function(){return"mml"},enumerable:!1,configurable:!0}),t})(ke.BaseItem),pe.FnItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"fn"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){var n=this.First;if(n){if(r.isOpen)return ke.BaseItem.success;if(!r.isKind("fn")){var o=r.First;if(!r.isKind("mml")||!o)return[[n,r],!0];if(we.default.isType(o,"mstyle")&&o.childNodes.length&&we.default.isType(o.childNodes[0].childNodes[0],"mspace")||we.default.isType(o,"mspace"))return[[n,r],!0];we.default.isEmbellished(o)&&(o=we.default.getCoreMO(o));var i=we.default.getForm(o);if(i!=null&&[0,0,1,1,0,1,1,0,0,0][i[2]])return[[n,r],!0]}return[[n,this.create("token","mo",{texClass:Is.TEXCLASS.NONE},gD.entities.ApplyFunction),r],!0]}return e.prototype.checkItem.apply(this,arguments)},t})(ke.BaseItem),pe.NotItem=(function(e){ft(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.remap=yD.MapHandler.getMap("not_remap"),r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"not"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){var n,o,i;if(r.isKind("open")||r.isKind("left"))return ke.BaseItem.success;if(r.isKind("mml")&&(we.default.isType(r.First,"mo")||we.default.isType(r.First,"mi")||we.default.isType(r.First,"mtext"))&&(n=r.First,o=we.default.getText(n),o.length===1&&!we.default.getProperty(n,"movesupsub")&&we.default.getChildren(n).length===1))return this.remap.contains(o)?(i=this.create("text",this.remap.lookup(o).char),we.default.setChild(n,0,i)):(i=this.create("text","̸"),we.default.appendChildren(n,[i])),[[r],!0];i=this.create("text","⧸");var a=this.create("node","mtext",[],{},i),s=this.create("node","mpadded",[a],{width:0});return n=this.create("node","TeXAtom",[s],{texClass:Is.TEXCLASS.REL}),[[n,r],!0]},t})(ke.BaseItem),pe.NonscriptItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"nonscript"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("mml")&&r.Size()===1){var n=r.First;if(n.isKind("mstyle")&&n.notParent&&(n=we.default.getChildren(we.default.getChildren(n)[0])[0]),n.isKind("mspace")){if(n!==r.First){var o=this.create("node","mrow",[r.Pop()]);r.Push(o)}this.factory.configuration.addNode("nonscript",r.First)}}return[[r],!0]},t})(ke.BaseItem),pe.DotsItem=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"dots"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("open")||r.isKind("left"))return ke.BaseItem.success;var n=this.getProperty("ldots"),o=r.First;if(r.isKind("mml")&&we.default.isEmbellished(o)){var i=we.default.getTexClass(we.default.getCoreMO(o));(i===Is.TEXCLASS.BIN||i===Is.TEXCLASS.REL)&&(n=this.getProperty("cdots"))}return[[n,r],!0]},t})(ke.BaseItem);var VO=(function(e){ft(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.table=[],r.row=[],r.frame=[],r.hfill=[],r.arraydef={},r.dashed=!1,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"array"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyEnv",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isClose&&!r.isKind("over")){if(r.getProperty("isEntry"))return this.EndEntry(),this.clearEnv(),ke.BaseItem.fail;if(r.getProperty("isCR"))return this.EndEntry(),this.EndRow(),this.clearEnv(),ke.BaseItem.fail;this.EndTable(),this.clearEnv();var n=this.factory.create("mml",this.createMml());if(this.getProperty("requireClose")){if(r.isKind("close"))return[[n],!0];throw new Go.default("MissingCloseBrace","Missing close brace")}return[[n,r],!0]}return e.prototype.checkItem.call(this,r)},t.prototype.createMml=function(){var r=this.arraydef.scriptlevel;delete this.arraydef.scriptlevel;var n=this.create("node","mtable",this.table,this.arraydef);return r&&n.setProperty("scriptlevel",r),this.frame.length===4?we.default.setAttribute(n,"frame",this.dashed?"dashed":"solid"):this.frame.length&&(this.arraydef.rowlines&&(this.arraydef.rowlines=this.arraydef.rowlines.replace(/none( none)+$/,"none")),we.default.setAttribute(n,"frame",""),n=this.create("node","menclose",[n],{notation:this.frame.join(" ")}),((this.arraydef.columnlines||"none")!=="none"||(this.arraydef.rowlines||"none")!=="none")&&we.default.setAttribute(n,"data-padding",0)),(this.getProperty("open")||this.getProperty("close"))&&(n=Xo.default.fenced(this.factory.configuration,this.getProperty("open"),n,this.getProperty("close"))),n},t.prototype.EndEntry=function(){var r=this.create("node","mtd",this.nodes);this.hfill.length&&(this.hfill[0]===0&&we.default.setAttribute(r,"columnalign","right"),this.hfill[this.hfill.length-1]===this.Size()&&we.default.setAttribute(r,"columnalign",we.default.getAttribute(r,"columnalign")?"center":"left")),this.row.push(r),this.Clear(),this.hfill=[]},t.prototype.EndRow=function(){var r;this.getProperty("isNumbered")&&this.row.length===3?(this.row.unshift(this.row.pop()),r=this.create("node","mlabeledtr",this.row)):r=this.create("node","mtr",this.row),this.table.push(r),this.row=[]},t.prototype.EndTable=function(){(this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.checkLines()},t.prototype.checkLines=function(){if(this.arraydef.rowlines){var r=this.arraydef.rowlines.split(/ /);r.length===this.table.length?(this.frame.push("bottom"),r.pop(),this.arraydef.rowlines=r.join(" ")):r.length<this.table.length-1&&(this.arraydef.rowlines+=" none")}if(this.getProperty("rowspacing")){for(var n=this.arraydef.rowspacing.split(/ /);n.length<this.table.length;)n.push(this.getProperty("rowspacing")+"em");this.arraydef.rowspacing=n.join(" ")}},t.prototype.addRowSpacing=function(r){if(this.arraydef.rowspacing){var n=this.arraydef.rowspacing.split(/ /);if(!this.getProperty("rowspacing")){var o=Xo.default.dimen2em(n[0]);this.setProperty("rowspacing",o)}for(var i=this.getProperty("rowspacing");n.length<this.table.length;)n.push(Xo.default.Em(i));n[this.table.length-1]=Xo.default.Em(Math.max(0,i+Xo.default.dimen2em(r))),this.arraydef.rowspacing=n.join(" ")}},t})(ke.BaseItem);pe.ArrayItem=VO,pe.EqnArrayItem=(function(e){ft(t,e);function t(r){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=e.call(this,r)||this;return i.maxrow=0,i.factory.configuration.tags.start(n[0],n[2],n[1]),i}return Object.defineProperty(t.prototype,"kind",{get:function(){return"eqnarray"},enumerable:!1,configurable:!0}),t.prototype.EndEntry=function(){this.row.length&&Xo.default.fixInitialMO(this.factory.configuration,this.nodes);var r=this.create("node","mtd",this.nodes);this.row.push(r),this.Clear()},t.prototype.EndRow=function(){this.row.length>this.maxrow&&(this.maxrow=this.row.length);var r="mtr",n=this.factory.configuration.tags.getTag();n&&(this.row=[n].concat(this.row),r="mlabeledtr"),this.factory.configuration.tags.clearTag();var o=this.create("node",r,this.row);this.table.push(o),this.row=[]},t.prototype.EndTable=function(){e.prototype.EndTable.call(this),this.factory.configuration.tags.end(),this.extendArray("columnalign",this.maxrow),this.extendArray("columnwidth",this.maxrow),this.extendArray("columnspacing",this.maxrow-1)},t.prototype.extendArray=function(r,n){if(this.arraydef[r]){var o=this.arraydef[r].split(/ /),i=lb([],wh(o),!1);if(i.length>1){for(;i.length<n;)i.push.apply(i,lb([],wh(o),!1));this.arraydef[r]=i.slice(0,n).join(" ")}}},t})(VO),pe.EquationItem=(function(e){ft(t,e);function t(r){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=e.call(this,r)||this;return i.factory.configuration.tags.start("equation",!0,n[0]),i}return Object.defineProperty(t.prototype,"kind",{get:function(){return"equation"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("end")){var n=this.toMml(),o=this.factory.configuration.tags.getTag();return this.factory.configuration.tags.end(),[[o?this.factory.configuration.tags.enTag(n,o):n,r],!0]}if(r.isKind("stop"))throw new Go.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return e.prototype.checkItem.call(this,r)},t})(ke.BaseItem);var Ht={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TexConstant=void 0,(function(t){t.Variant={NORMAL:"normal",BOLD:"bold",ITALIC:"italic",BOLDITALIC:"bold-italic",DOUBLESTRUCK:"double-struck",FRAKTUR:"fraktur",BOLDFRAKTUR:"bold-fraktur",SCRIPT:"script",BOLDSCRIPT:"bold-script",SANSSERIF:"sans-serif",BOLDSANSSERIF:"bold-sans-serif",SANSSERIFITALIC:"sans-serif-italic",SANSSERIFBOLDITALIC:"sans-serif-bold-italic",MONOSPACE:"monospace",INITIAL:"inital",TAILED:"tailed",LOOPED:"looped",STRETCHED:"stretched",CALLIGRAPHIC:"-tex-calligraphic",BOLDCALLIGRAPHIC:"-tex-bold-calligraphic",OLDSTYLE:"-tex-oldstyle",BOLDOLDSTYLE:"-tex-bold-oldstyle",MATHITALIC:"-tex-mathit"},t.Form={PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"},t.LineBreak={AUTO:"auto",NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"},t.LineBreakStyle={BEFORE:"before",AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"infixlinebreakstyle"},t.IndentAlign={LEFT:"left",CENTER:"center",RIGHT:"right",AUTO:"auto",ID:"id",INDENTALIGN:"indentalign"},t.IndentShift={INDENTSHIFT:"indentshift"},t.LineThickness={THIN:"thin",MEDIUM:"medium",THICK:"thick"},t.Notation={LONGDIV:"longdiv",ACTUARIAL:"actuarial",PHASORANGLE:"phasorangle",RADICAL:"radical",BOX:"box",ROUNDEDBOX:"roundedbox",CIRCLE:"circle",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",UPDIAGONALSTRIKE:"updiagonalstrike",DOWNDIAGONALSTRIKE:"downdiagonalstrike",VERTICALSTRIKE:"verticalstrike",HORIZONTALSTRIKE:"horizontalstrike",NORTHEASTARROW:"northeastarrow",MADRUWB:"madruwb",UPDIAGONALARROW:"updiagonalarrow"},t.Align={TOP:"top",BOTTOM:"bottom",CENTER:"center",BASELINE:"baseline",AXIS:"axis",LEFT:"left",RIGHT:"right"},t.Lines={NONE:"none",SOLID:"solid",DASHED:"dashed"},t.Side={LEFT:"left",RIGHT:"right",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"},t.Width={AUTO:"auto",FIT:"fit"},t.Actiontype={TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"},t.Overflow={LINBREAK:"linebreak",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"},t.Unit={EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"}})(e.TexConstant||(e.TexConstant={}))})(Ht),ee(Ht);var dr={},hr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.px=e.emRounded=e.em=e.percent=e.length2em=e.MATHSPACE=e.RELUNITS=e.UNITS=e.BIGDIMEN=void 0,e.BIGDIMEN=1e6,e.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4},e.RELUNITS={em:1,ex:.431,pt:1/10,pc:12/10,mu:1/18},e.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:e.BIGDIMEN};function t(a,s,c,l){if(s===void 0&&(s=0),c===void 0&&(c=1),l===void 0&&(l=16),typeof a!="string"&&(a=String(a)),a===""||a==null)return s;if(e.MATHSPACE[a])return e.MATHSPACE[a];var u=a.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!u)return s;var p=parseFloat(u[1]||"1"),d=u[2];return e.UNITS.hasOwnProperty(d)?p*e.UNITS[d]/l/c:e.RELUNITS.hasOwnProperty(d)?p*e.RELUNITS[d]:d==="%"?p/100*s:p*s}e.length2em=t;function r(a){return(100*a).toFixed(1).replace(/\.?0+$/,"")+"%"}e.percent=r;function n(a){return Math.abs(a)<.001?"0":a.toFixed(3).replace(/\.?0+$/,"")+"em"}e.em=n;function o(a,s){return s===void 0&&(s=16),a=(Math.round(a*s)+.05)/s,Math.abs(a)<.001?"0em":a.toFixed(3).replace(/\.?0+$/,"")+"em"}e.emRounded=o;function i(a,s,c){return s===void 0&&(s=-e.BIGDIMEN),c===void 0&&(c=16),a*=c,s&&a<s&&(a=s),Math.abs(a)<.1?"0":a.toFixed(1).replace(/\.0$/,"")+"px"}e.px=i})(hr),ee(hr);var Ps=y&&y.__assign||(function(){return Ps=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Ps.apply(this,arguments)}),bD=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),vD=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),SD=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&bD(t,e,r);return vD(t,e),t}),pb=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),Rh=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(dr,"__esModule",{value:!0});var db=SD(pe),ne=Rh(Ye),Bt=Rh(Pe),Lh=Rh(Ut),hb=Ht,Mt=Rh(qe),ks=ce,WO=On,$O=hr,fb=Bi,ED=tt,se={},xD=1.2/.85,MD={fontfamily:1,fontsize:1,fontweight:1,fontstyle:1,color:1,background:1,id:1,class:1,href:1,style:1};se.Open=function(e,t){e.Push(e.itemFactory.create("open"))},se.Close=function(e,t){e.Push(e.itemFactory.create("close"))},se.Tilde=function(e,t){e.Push(e.create("token","mtext",{},fb.entities.nbsp))},se.Space=function(e,t){},se.Superscript=function(e,t){var r;e.GetNext().match(/\d/)&&(e.string=e.string.substr(0,e.i+1)+" "+e.string.substr(e.i+1));var n,o,i=e.stack.Top();i.isKind("prime")?(r=pb(i.Peek(2),2),o=r[0],n=r[1],e.stack.Pop()):(o=e.stack.Prev(),o||(o=e.create("token","mi",{},"")));var a=ne.default.getProperty(o,"movesupsub"),s=ne.default.isType(o,"msubsup")?o.sup:o.over;if(ne.default.isType(o,"msubsup")&&!ne.default.isType(o,"msup")&&ne.default.getChildAt(o,o.sup)||ne.default.isType(o,"munderover")&&!ne.default.isType(o,"mover")&&ne.default.getChildAt(o,o.over)&&!ne.default.getProperty(o,"subsupOK"))throw new Bt.default("DoubleExponent","Double exponent: use braces to clarify");(!ne.default.isType(o,"msubsup")||ne.default.isType(o,"msup"))&&(a?((!ne.default.isType(o,"munderover")||ne.default.isType(o,"mover")||ne.default.getChildAt(o,o.over))&&(o=e.create("node","munderover",[o],{movesupsub:!0})),s=o.over):(o=e.create("node","msubsup",[o]),s=o.sup)),e.Push(e.itemFactory.create("subsup",o).setProperties({position:s,primes:n,movesupsub:a}))},se.Subscript=function(e,t){var r;e.GetNext().match(/\d/)&&(e.string=e.string.substr(0,e.i+1)+" "+e.string.substr(e.i+1));var n,o,i=e.stack.Top();i.isKind("prime")?(r=pb(i.Peek(2),2),o=r[0],n=r[1],e.stack.Pop()):(o=e.stack.Prev(),o||(o=e.create("token","mi",{},"")));var a=ne.default.getProperty(o,"movesupsub"),s=ne.default.isType(o,"msubsup")?o.sub:o.under;if(ne.default.isType(o,"msubsup")&&!ne.default.isType(o,"msup")&&ne.default.getChildAt(o,o.sub)||ne.default.isType(o,"munderover")&&!ne.default.isType(o,"mover")&&ne.default.getChildAt(o,o.under)&&!ne.default.getProperty(o,"subsupOK"))throw new Bt.default("DoubleSubscripts","Double subscripts: use braces to clarify");(!ne.default.isType(o,"msubsup")||ne.default.isType(o,"msup"))&&(a?((!ne.default.isType(o,"munderover")||ne.default.isType(o,"mover")||ne.default.getChildAt(o,o.under))&&(o=e.create("node","munderover",[o],{movesupsub:!0})),s=o.under):(o=e.create("node","msubsup",[o]),s=o.sub)),e.Push(e.itemFactory.create("subsup",o).setProperties({position:s,primes:n,movesupsub:a}))},se.Prime=function(e,t){var r=e.stack.Prev();if(r||(r=e.create("node","mi")),ne.default.isType(r,"msubsup")&&!ne.default.isType(r,"msup")&&ne.default.getChildAt(r,r.sup))throw new Bt.default("DoubleExponentPrime","Prime causes double exponent: use braces to clarify");var n="";e.i--;do n+=fb.entities.prime,e.i++,t=e.GetNext();while(t==="'"||t===fb.entities.rsquo);n=["","′","″","‴","⁗"][n.length]||n;var o=e.create("token","mo",{variantForm:!0},n);e.Push(e.itemFactory.create("prime",r,o))},se.Comment=function(e,t){for(;e.i<e.string.length&&e.string.charAt(e.i)!==`
56
+ `;)e.i++},se.Hash=function(e,t){throw new Bt.default("CantUseHash1","You can't use 'macro parameter character #' in math mode")},se.MathFont=function(e,t,r){var n=e.GetArgument(t),o=new Lh.default(n,Ps(Ps({},e.stack.env),{font:r,multiLetterIdentifiers:/^[a-zA-Z]+/,noAutoOP:!0}),e.configuration).mml();e.Push(e.create("node","TeXAtom",[o]))},se.SetFont=function(e,t,r){e.stack.env.font=r},se.SetStyle=function(e,t,r,n,o){e.stack.env.style=r,e.stack.env.level=o,e.Push(e.itemFactory.create("style").setProperty("styles",{displaystyle:n,scriptlevel:o}))},se.SetSize=function(e,t,r){e.stack.env.size=r,e.Push(e.itemFactory.create("style").setProperty("styles",{mathsize:(0,$O.em)(r)}))},se.Spacer=function(e,t,r){var n=e.create("node","mspace",[],{width:(0,$O.em)(r)}),o=e.create("node","mstyle",[n],{scriptlevel:0});e.Push(o)},se.LeftRight=function(e,t){var r=t.substr(1);e.Push(e.itemFactory.create(r,e.GetDelimiter(t),e.stack.env.color))},se.NamedFn=function(e,t,r){r||(r=t.substr(1));var n=e.create("token","mi",{texClass:ks.TEXCLASS.OP},r);e.Push(e.itemFactory.create("fn",n))},se.NamedOp=function(e,t,r){r||(r=t.substr(1)),r=r.replace(/&thinsp;/," ");var n=e.create("token","mo",{movablelimits:!0,movesupsub:!0,form:hb.TexConstant.Form.PREFIX,texClass:ks.TEXCLASS.OP},r);e.Push(n)},se.Limits=function(e,t,r){var n=e.stack.Prev(!0);if(!n||ne.default.getTexClass(ne.default.getCoreMO(n))!==ks.TEXCLASS.OP&&ne.default.getProperty(n,"movesupsub")==null)throw new Bt.default("MisplacedLimits","%1 is allowed only on operators",e.currentCS);var o=e.stack.Top(),i;ne.default.isType(n,"munderover")&&!r?(i=e.create("node","msubsup"),ne.default.copyChildren(n,i),n=o.Last=i):ne.default.isType(n,"msubsup")&&r&&(i=e.create("node","munderover"),ne.default.copyChildren(n,i),n=o.Last=i),ne.default.setProperty(n,"movesupsub",!!r),ne.default.setProperties(ne.default.getCoreMO(n),{movablelimits:!1}),(ne.default.getAttribute(n,"movablelimits")||ne.default.getProperty(n,"movablelimits"))&&ne.default.setProperties(n,{movablelimits:!1})},se.Over=function(e,t,r,n){var o=e.itemFactory.create("over").setProperty("name",e.currentCS);r||n?(o.setProperty("open",r),o.setProperty("close",n)):t.match(/withdelims$/)&&(o.setProperty("open",e.GetDelimiter(t)),o.setProperty("close",e.GetDelimiter(t))),t.match(/^\\above/)?o.setProperty("thickness",e.GetDimen(t)):(t.match(/^\\atop/)||r||n)&&o.setProperty("thickness",0),e.Push(o)},se.Frac=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t),o=e.create("node","mfrac",[r,n]);e.Push(o)},se.Sqrt=function(e,t){var r=e.GetBrackets(t),n=e.GetArgument(t);n==="\\frac"&&(n+="{"+e.GetArgument(n)+"}{"+e.GetArgument(n)+"}");var o=new Lh.default(n,e.stack.env,e.configuration).mml();r?o=e.create("node","mroot",[o,zO(e,r)]):o=e.create("node","msqrt",[o]),e.Push(o)};function zO(e,t){var r=e.stack.env,n=r.inRoot;r.inRoot=!0;var o=new Lh.default(t,r,e.configuration),i=o.mml(),a=o.stack.global;if(a.leftRoot||a.upRoot){var s={};a.leftRoot&&(s.width=a.leftRoot),a.upRoot&&(s.voffset=a.upRoot,s.height=a.upRoot),i=e.create("node","mpadded",[i],s)}return r.inRoot=n,i}se.Root=function(e,t){var r=e.GetUpTo(t,"\\of"),n=e.ParseArg(t),o=e.create("node","mroot",[n,zO(e,r)]);e.Push(o)},se.MoveRoot=function(e,t,r){if(!e.stack.env.inRoot)throw new Bt.default("MisplacedMoveRoot","%1 can appear only within a root",e.currentCS);if(e.stack.global[r])throw new Bt.default("MultipleMoveRoot","Multiple use of %1",e.currentCS);var n=e.GetArgument(t);if(!n.match(/-?[0-9]+/))throw new Bt.default("IntegerArg","The argument to %1 must be an integer",e.currentCS);n=parseInt(n,10)/15+"em",n.substr(0,1)!=="-"&&(n="+"+n),e.stack.global[r]=n},se.Accent=function(e,t,r,n){var o=e.ParseArg(t),i=Ps(Ps({},Mt.default.getFontDef(e)),{accent:!0,mathaccent:!0}),a=ne.default.createEntity(r),s=e.create("token","mo",i,a);ne.default.setAttribute(s,"stretchy",!!n);var c=ne.default.isEmbellished(o)?ne.default.getCoreMO(o):o;(ne.default.isType(c,"mo")||ne.default.getProperty(c,"movablelimits"))&&ne.default.setProperties(c,{movablelimits:!1});var l=e.create("node","munderover");ne.default.setChild(l,0,o),ne.default.setChild(l,1,null),ne.default.setChild(l,2,s);var u=e.create("node","TeXAtom",[l]);e.Push(u)},se.UnderOver=function(e,t,r,n){var o=ne.default.createEntity(r),i=e.create("token","mo",{stretchy:!0,accent:!0},o),a=t.charAt(1)==="o"?"over":"under",s=e.ParseArg(t);e.Push(Mt.default.underOver(e,s,i,a,n))},se.Overset=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t);Mt.default.checkMovableLimits(n),r.isKind("mo")&&ne.default.setAttribute(r,"accent",!1);var o=e.create("node","mover",[n,r]);e.Push(o)},se.Underset=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t);Mt.default.checkMovableLimits(n),r.isKind("mo")&&ne.default.setAttribute(r,"accent",!1);var o=e.create("node","munder",[n,r],{accentunder:!1});e.Push(o)},se.Overunderset=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t),o=e.ParseArg(t);Mt.default.checkMovableLimits(o),r.isKind("mo")&&ne.default.setAttribute(r,"accent",!1),n.isKind("mo")&&ne.default.setAttribute(n,"accent",!1);var i=e.create("node","munderover",[o,n,r],{accent:!1,accentunder:!1});e.Push(i)},se.TeXAtom=function(e,t,r){var n={texClass:r},o,i,a;if(r===ks.TEXCLASS.OP){n.movesupsub=n.movablelimits=!0;var s=e.GetArgument(t),c=s.match(/^\s*\\rm\s+([a-zA-Z0-9 ]+)$/);c?(n.mathvariant=hb.TexConstant.Variant.NORMAL,i=e.create("token","mi",n,c[1])):(a=new Lh.default(s,e.stack.env,e.configuration).mml(),i=e.create("node","TeXAtom",[a],n)),o=e.itemFactory.create("fn",i)}else a=e.ParseArg(t),o=e.create("node","TeXAtom",[a],n);e.Push(o)},se.MmlToken=function(e,t){var r=e.GetArgument(t),n=e.GetBrackets(t,"").replace(/^\s+/,""),o=e.GetArgument(t),i={},a=[],s;try{s=e.create("node",r)}catch{s=null}if(!s||!s.isToken)throw new Bt.default("NotMathMLToken","%1 is not a token element",r);for(;n!=="";){var c=n.match(/^([a-z]+)\s*=\s*('[^']*'|"[^"]*"|[^ ,]*)\s*,?\s*/i);if(!c)throw new Bt.default("InvalidMathMLAttr","Invalid MathML attribute: %1",n);if(!s.attributes.hasDefault(c[1])&&!MD[c[1]])throw new Bt.default("UnknownAttrForElement","%1 is not a recognized attribute for %2",c[1],r);var l=Mt.default.MmlFilterAttribute(e,c[1],c[2].replace(/^(['"])(.*)\1$/,"$2"));l&&(l.toLowerCase()==="true"?l=!0:l.toLowerCase()==="false"&&(l=!1),i[c[1]]=l,a.push(c[1])),n=n.substr(c[0].length)}a.length&&(i["mjx-keep-attrs"]=a.join(" "));var u=e.create("text",o);s.appendChild(u),ne.default.setProperties(s,i),e.Push(s)},se.Strut=function(e,t){var r=e.create("node","mrow"),n=e.create("node","mpadded",[r],{height:"8.6pt",depth:"3pt",width:0});e.Push(n)},se.Phantom=function(e,t,r,n){var o=e.create("node","mphantom",[e.ParseArg(t)]);(r||n)&&(o=e.create("node","mpadded",[o]),n&&(ne.default.setAttribute(o,"height",0),ne.default.setAttribute(o,"depth",0)),r&&ne.default.setAttribute(o,"width",0));var i=e.create("node","TeXAtom",[o]);e.Push(i)},se.Smash=function(e,t){var r=Mt.default.trimSpaces(e.GetBrackets(t,"")),n=e.create("node","mpadded",[e.ParseArg(t)]);switch(r){case"b":ne.default.setAttribute(n,"depth",0);break;case"t":ne.default.setAttribute(n,"height",0);break;default:ne.default.setAttribute(n,"height",0),ne.default.setAttribute(n,"depth",0)}var o=e.create("node","TeXAtom",[n]);e.Push(o)},se.Lap=function(e,t){var r=e.create("node","mpadded",[e.ParseArg(t)],{width:0});t==="\\llap"&&ne.default.setAttribute(r,"lspace","-1width");var n=e.create("node","TeXAtom",[r]);e.Push(n)},se.RaiseLower=function(e,t){var r=e.GetDimen(t),n=e.itemFactory.create("position").setProperties({name:e.currentCS,move:"vertical"});r.charAt(0)==="-"&&(r=r.slice(1),t=t.substr(1)==="raise"?"\\lower":"\\raise"),t==="\\lower"?(n.setProperty("dh","-"+r),n.setProperty("dd","+"+r)):(n.setProperty("dh","+"+r),n.setProperty("dd","-"+r)),e.Push(n)},se.MoveLeftRight=function(e,t){var r=e.GetDimen(t),n=r.charAt(0)==="-"?r.slice(1):"-"+r;if(t==="\\moveleft"){var o=r;r=n,n=o}e.Push(e.itemFactory.create("position").setProperties({name:e.currentCS,move:"horizontal",left:e.create("node","mspace",[],{width:r}),right:e.create("node","mspace",[],{width:n})}))},se.Hskip=function(e,t){var r=e.create("node","mspace",[],{width:e.GetDimen(t)});e.Push(r)},se.Nonscript=function(e,t){e.Push(e.itemFactory.create("nonscript"))},se.Rule=function(e,t,r){var n={width:e.GetDimen(t),height:e.GetDimen(t),depth:e.GetDimen(t)};r!=="blank"&&(n.mathbackground=e.stack.env.color||"black");var o=e.create("node","mspace",[],n);e.Push(o)},se.rule=function(e,t){var r=e.GetBrackets(t),n=e.GetDimen(t),o=e.GetDimen(t),i=e.create("node","mspace",[],{width:n,height:o,mathbackground:e.stack.env.color||"black"});r&&(i=e.create("node","mpadded",[i],{voffset:r}),r.match(/^\-/)?(ne.default.setAttribute(i,"height",r),ne.default.setAttribute(i,"depth","+"+r.substr(1))):ne.default.setAttribute(i,"height","+"+r)),e.Push(i)},se.MakeBig=function(e,t,r,n){n*=xD;var o=String(n).replace(/(\.\d\d\d).+/,"$1")+"em",i=e.GetDelimiter(t,!0),a=e.create("token","mo",{minsize:o,maxsize:o,fence:!0,stretchy:!0,symmetric:!0},i),s=e.create("node","TeXAtom",[a],{texClass:r});e.Push(s)},se.BuildRel=function(e,t){var r=e.ParseUpTo(t,"\\over"),n=e.ParseArg(t),o=e.create("node","munderover");ne.default.setChild(o,0,n),ne.default.setChild(o,1,null),ne.default.setChild(o,2,r);var i=e.create("node","TeXAtom",[o],{texClass:ks.TEXCLASS.REL});e.Push(i)},se.HBox=function(e,t,r,n){e.PushAll(Mt.default.internalMath(e,e.GetArgument(t),r,n))},se.FBox=function(e,t){var r=Mt.default.internalMath(e,e.GetArgument(t)),n=e.create("node","menclose",r,{notation:"box"});e.Push(n)},se.FrameBox=function(e,t){var r=e.GetBrackets(t),n=e.GetBrackets(t)||"c",o=Mt.default.internalMath(e,e.GetArgument(t));r&&(o=[e.create("node","mpadded",o,{width:r,"data-align":(0,ED.lookup)(n,{l:"left",r:"right"},"center")})]);var i=e.create("node","TeXAtom",[e.create("node","menclose",o,{notation:"box"})],{texClass:ks.TEXCLASS.ORD});e.Push(i)},se.Not=function(e,t){e.Push(e.itemFactory.create("not"))},se.Dots=function(e,t){var r=ne.default.createEntity("2026"),n=ne.default.createEntity("22EF"),o=e.create("token","mo",{stretchy:!1},r),i=e.create("token","mo",{stretchy:!1},n);e.Push(e.itemFactory.create("dots").setProperties({ldots:o,cdots:i}))},se.Matrix=function(e,t,r,n,o,i,a,s,c,l){var u=e.GetNext();if(u==="")throw new Bt.default("MissingArgFor","Missing argument for %1",e.currentCS);u==="{"?e.i++:(e.string=u+"}"+e.string.slice(e.i+1),e.i=0);var p=e.itemFactory.create("array").setProperty("requireClose",!0);p.arraydef={rowspacing:a||"4pt",columnspacing:i||"1em"},c&&p.setProperty("isCases",!0),l&&(p.setProperty("isNumbered",!0),p.arraydef.side=l),(r||n)&&(p.setProperty("open",r),p.setProperty("close",n)),s==="D"&&(p.arraydef.displaystyle=!0),o!=null&&(p.arraydef.columnalign=o),e.Push(p)},se.Entry=function(e,t){e.Push(e.itemFactory.create("cell").setProperties({isEntry:!0,name:t}));var r=e.stack.Top(),n=r.getProperty("casesEnv");if(!(!r.getProperty("isCases")&&!n)){for(var o=e.string,i=0,a=-1,s=e.i,c=o.length,l=n?new RegExp("^\\\\end\\s*\\{".concat(n.replace(/\*/,"\\*"),"\\}")):null;s<c;){var u=o.charAt(s);if(u==="{")i++,s++;else if(u==="}")i===0?c=0:(i--,i===0&&a<0&&(a=s-e.i),s++);else{if(u==="&"&&i===0)throw new Bt.default("ExtraAlignTab","Extra alignment tab in \\cases text");if(u==="\\"){var p=o.substr(s);p.match(/^((\\cr)[^a-zA-Z]|\\\\)/)||l&&p.match(l)?c=0:s+=2}else s++}}var d=o.substr(e.i,s-e.i);if(!d.match(/^\s*\\text[^a-zA-Z]/)||a!==d.replace(/\s+$/,"").length-1){var h=Mt.default.internalMath(e,Mt.default.trimSpaces(d),0);e.PushAll(h),e.i=s}}},se.Cr=function(e,t){e.Push(e.itemFactory.create("cell").setProperties({isCR:!0,name:t}))},se.CrLaTeX=function(e,t,r){r===void 0&&(r=!1);var n;if(!r&&(e.string.charAt(e.i)==="*"&&e.i++,e.string.charAt(e.i)==="[")){var o=e.GetBrackets(t,""),i=pb(Mt.default.matchDimen(o),2),a=i[0],s=i[1];if(o&&!a)throw new Bt.default("BracketMustBeDimension","Bracket argument to %1 must be a dimension",e.currentCS);n=a+s}e.Push(e.itemFactory.create("cell").setProperties({isCR:!0,name:t,linebreak:!0}));var c=e.stack.Top(),l;c instanceof db.ArrayItem?n&&c.addRowSpacing(n):(n&&(l=e.create("node","mspace",[],{depth:n}),e.Push(l)),l=e.create("node","mspace",[],{linebreak:hb.TexConstant.LineBreak.NEWLINE}),e.Push(l))},se.HLine=function(e,t,r){r??(r="solid");var n=e.stack.Top();if(!(n instanceof db.ArrayItem)||n.Size())throw new Bt.default("Misplaced","Misplaced %1",e.currentCS);if(!n.table.length)n.frame.push("top");else{for(var o=n.arraydef.rowlines?n.arraydef.rowlines.split(/ /):[];o.length<n.table.length;)o.push("none");o[n.table.length-1]=r,n.arraydef.rowlines=o.join(" ")}},se.HFill=function(e,t){var r=e.stack.Top();if(r instanceof db.ArrayItem)r.hfill.push(r.Size());else throw new Bt.default("UnsupportedHFill","Unsupported use of %1",e.currentCS)},se.BeginEnd=function(e,t){var r=e.GetArgument(t);if(r.match(/\\/i))throw new Bt.default("InvalidEnv","Invalid environment name '%1'",r);var n=e.configuration.handlers.get("environment").lookup(r);if(n&&t==="\\end"){if(!n.args[0]){var o=e.itemFactory.create("end").setProperty("name",r);e.Push(o);return}e.stack.env.closing=r}Mt.default.checkMaxMacros(e,!1),e.parse("environment",[e,r])},se.Array=function(e,t,r,n,o,i,a,s,c){o||(o=e.GetArgument("\\begin{"+t.getName()+"}"));var l=("c"+o).replace(/[^clr|:]/g,"").replace(/[^|:]([|:])+/g,"$1");o=o.replace(/[^clr]/g,"").split("").join(" "),o=o.replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");var u=e.itemFactory.create("array");return u.arraydef={columnalign:o,columnspacing:i||"1em",rowspacing:a||"4pt"},l.match(/[|:]/)&&(l.charAt(0).match(/[|:]/)&&(u.frame.push("left"),u.dashed=l.charAt(0)===":"),l.charAt(l.length-1).match(/[|:]/)&&u.frame.push("right"),l=l.substr(1,l.length-2),u.arraydef.columnlines=l.split("").join(" ").replace(/[^|: ]/g,"none").replace(/\|/g,"solid").replace(/:/g,"dashed")),r&&u.setProperty("open",e.convertDelimiter(r)),n&&u.setProperty("close",e.convertDelimiter(n)),(s||"").charAt(1)==="'"&&(u.arraydef["data-cramped"]=!0,s=s.charAt(0)),s==="D"?u.arraydef.displaystyle=!0:s&&(u.arraydef.displaystyle=!1),s==="S"&&(u.arraydef.scriptlevel=1),c&&(u.arraydef.useHeight=!1),e.Push(t),u},se.AlignedArray=function(e,t){var r=e.GetBrackets("\\begin{"+t.getName()+"}"),n=se.Array(e,t);return Mt.default.setArrayAlign(n,r)},se.Equation=function(e,t,r){return e.Push(t),Mt.default.checkEqnEnv(e),e.itemFactory.create("equation",r).setProperty("name",t.getName())},se.EqnArray=function(e,t,r,n,o,i){e.Push(t),n&&Mt.default.checkEqnEnv(e),o=o.replace(/[^clr]/g,"").split("").join(" "),o=o.replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");var a=e.itemFactory.create("eqnarray",t.getName(),r,n,e.stack.global);return a.arraydef={displaystyle:!0,columnalign:o,columnspacing:i||"1em",rowspacing:"3pt",side:e.options.tagSide,minlabelspacing:e.options.tagIndent},a},se.HandleNoTag=function(e,t){e.tags.notag()},se.HandleLabel=function(e,t){var r=e.GetArgument(t);if(r!==""&&!e.tags.refUpdate){if(e.tags.label)throw new Bt.default("MultipleCommand","Multiple %1",e.currentCS);if(e.tags.label=r,(e.tags.allLabels[r]||e.tags.labels[r])&&!e.options.ignoreDuplicateLabels)throw new Bt.default("MultipleLabel","Label '%1' multiply defined",r);e.tags.labels[r]=new WO.Label}},se.HandleRef=function(e,t,r){var n=e.GetArgument(t),o=e.tags.allLabels[n]||e.tags.labels[n];o||(e.tags.refUpdate||(e.tags.redo=!0),o=new WO.Label);var i=o.tag;r&&(i=e.tags.formatTag(i));var a=e.create("node","mrow",Mt.default.internalMath(e,i),{href:e.tags.formatUrl(o.id,e.options.baseURL),class:"MathJax_ref"});e.Push(a)},se.Macro=function(e,t,r,n,o){if(n){var i=[];if(o!=null){var a=e.GetBrackets(t);i.push(a??o)}for(var s=i.length;s<n;s++)i.push(e.GetArgument(t));r=Mt.default.substituteArgs(e,i,r)}e.string=Mt.default.addArgs(e,r,e.string.slice(e.i)),e.i=0,Mt.default.checkMaxMacros(e)},se.MathChoice=function(e,t){var r=e.ParseArg(t),n=e.ParseArg(t),o=e.ParseArg(t),i=e.ParseArg(t);e.Push(e.create("node","MathChoice",[r,n,o,i]))},dr.default=se;var an={},OD=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),AD=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),KO=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(an,"__esModule",{value:!0});var TD=KO(Ye),mb=Ht,JO=KO(qe),yb;(function(e){function t(l,u){var p=JO.default.getFontDef(l),d=l.stack.env;d.multiLetterIdentifiers&&d.font!==""&&(u=l.string.substr(l.i-1).match(d.multiLetterIdentifiers)[0],l.i+=u.length-1,p.mathvariant===mb.TexConstant.Variant.NORMAL&&d.noAutoOP&&u.length>1&&(p.autoOP=!1));var h=l.create("token","mi",p,u);l.Push(h)}e.variable=t;function r(l,u){var p,d=l.configuration.options.digits,h=l.string.slice(l.i-1).match(d),f=JO.default.getFontDef(l);h?(p=l.create("token","mn",f,h[0].replace(/[{}]/g,"")),l.i+=h[0].length-1):p=l.create("token","mo",f,u),l.Push(p)}e.digit=r;function n(l,u){var p=l.GetCS();l.parse("macro",[l,p])}e.controlSequence=n;function o(l,u){var p=u.attributes||{mathvariant:mb.TexConstant.Variant.ITALIC},d=l.create("token","mi",p,u.char);l.Push(d)}e.mathchar0mi=o;function i(l,u){var p=u.attributes||{};p.stretchy=!1;var d=l.create("token","mo",p,u.char);TD.default.setProperty(d,"fixStretchy",!0),l.configuration.addNode("fixStretchy",d),l.Push(d)}e.mathchar0mo=i;function a(l,u){var p=u.attributes||{mathvariant:mb.TexConstant.Variant.NORMAL};l.stack.env.font&&(p.mathvariant=l.stack.env.font);var d=l.create("token","mi",p,u.char);l.Push(d)}e.mathchar7=a;function s(l,u){var p=u.attributes||{};p=Object.assign({fence:!1,stretchy:!1},p);var d=l.create("token","mo",p,u.char);l.Push(d)}e.delimiter=s;function c(l,u,p,d){var h=d[0],f=l.itemFactory.create("begin").setProperties({name:u,end:h});f=p.apply(void 0,AD([l,f],OD(d.slice(1)),!1)),l.Push(f)}e.environment=c})(yb||(yb={})),an.default=yb;var CD=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ND=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),_D=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&CD(t,e,r);return ND(t,e),t}),gb=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}),sn=_D(de),Z=Ht,bb=gb(dr),Vo=gb(an),wD=gb(qe),fe=ce,fr=hr;new sn.RegExpMap("letter",Vo.default.variable,/[a-z]/i),new sn.RegExpMap("digit",Vo.default.digit,/[0-9.,]/),new sn.RegExpMap("command",Vo.default.controlSequence,/^\\/),new sn.MacroMap("special",{"{":"Open","}":"Close","~":"Tilde","^":"Superscript",_:"Subscript"," ":"Space"," ":"Space","\r":"Space","\n":"Space","'":"Prime","%":"Comment","&":"Entry","#":"Hash"," ":"Space","’":"Prime"},bb.default),new sn.CharacterMap("mathchar0mi",Vo.default.mathchar0mi,{alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ϵ",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigma:"σ",tau:"τ",upsilon:"υ",phi:"ϕ",chi:"χ",psi:"ψ",omega:"ω",varepsilon:"ε",vartheta:"ϑ",varpi:"ϖ",varrho:"ϱ",varsigma:"ς",varphi:"φ",S:["§",{mathvariant:Z.TexConstant.Variant.NORMAL}],aleph:["ℵ",{mathvariant:Z.TexConstant.Variant.NORMAL}],hbar:["ℏ",{variantForm:!0}],imath:"ı",jmath:"ȷ",ell:"ℓ",wp:["℘",{mathvariant:Z.TexConstant.Variant.NORMAL}],Re:["ℜ",{mathvariant:Z.TexConstant.Variant.NORMAL}],Im:["ℑ",{mathvariant:Z.TexConstant.Variant.NORMAL}],partial:["∂",{mathvariant:Z.TexConstant.Variant.ITALIC}],infty:["∞",{mathvariant:Z.TexConstant.Variant.NORMAL}],prime:["′",{variantForm:!0}],emptyset:["∅",{mathvariant:Z.TexConstant.Variant.NORMAL}],nabla:["∇",{mathvariant:Z.TexConstant.Variant.NORMAL}],top:["⊤",{mathvariant:Z.TexConstant.Variant.NORMAL}],bot:["⊥",{mathvariant:Z.TexConstant.Variant.NORMAL}],angle:["∠",{mathvariant:Z.TexConstant.Variant.NORMAL}],triangle:["△",{mathvariant:Z.TexConstant.Variant.NORMAL}],backslash:["∖",{mathvariant:Z.TexConstant.Variant.NORMAL}],forall:["∀",{mathvariant:Z.TexConstant.Variant.NORMAL}],exists:["∃",{mathvariant:Z.TexConstant.Variant.NORMAL}],neg:["¬",{mathvariant:Z.TexConstant.Variant.NORMAL}],lnot:["¬",{mathvariant:Z.TexConstant.Variant.NORMAL}],flat:["♭",{mathvariant:Z.TexConstant.Variant.NORMAL}],natural:["♮",{mathvariant:Z.TexConstant.Variant.NORMAL}],sharp:["♯",{mathvariant:Z.TexConstant.Variant.NORMAL}],clubsuit:["♣",{mathvariant:Z.TexConstant.Variant.NORMAL}],diamondsuit:["♢",{mathvariant:Z.TexConstant.Variant.NORMAL}],heartsuit:["♡",{mathvariant:Z.TexConstant.Variant.NORMAL}],spadesuit:["♠",{mathvariant:Z.TexConstant.Variant.NORMAL}]}),new sn.CharacterMap("mathchar0mo",Vo.default.mathchar0mo,{surd:"√",coprod:["∐",{texClass:fe.TEXCLASS.OP,movesupsub:!0}],bigvee:["⋁",{texClass:fe.TEXCLASS.OP,movesupsub:!0}],bigwedge:["⋀",{texClass:fe.TEXCLASS.OP,movesupsub:!0}],biguplus:["⨄",{texClass:fe.TEXCLASS.OP,movesupsub:!0}],bigcap:["⋂",{texClass:fe.TEXCLASS.OP,movesupsub:!0}],bigcup:["⋃",{texClass:fe.TEXCLASS.OP,movesupsub:!0}],int:["∫",{texClass:fe.TEXCLASS.OP}],intop:["∫",{texClass:fe.TEXCLASS.OP,movesupsub:!0,movablelimits:!0}],iint:["∬",{texClass:fe.TEXCLASS.OP}],iiint:["∭",{texClass:fe.TEXCLASS.OP}],prod:["∏",{texClass:fe.TEXCLASS.OP,movesupsub:!0}],sum:["∑",{texClass:fe.TEXCLASS.OP,movesupsub:!0}],bigotimes:["⨂",{texClass:fe.TEXCLASS.OP,movesupsub:!0}],bigoplus:["⨁",{texClass:fe.TEXCLASS.OP,movesupsub:!0}],bigodot:["⨀",{texClass:fe.TEXCLASS.OP,movesupsub:!0}],oint:["∮",{texClass:fe.TEXCLASS.OP}],bigsqcup:["⨆",{texClass:fe.TEXCLASS.OP,movesupsub:!0}],smallint:["∫",{largeop:!1}],triangleleft:"◃",triangleright:"▹",bigtriangleup:"△",bigtriangledown:"▽",wedge:"∧",land:"∧",vee:"∨",lor:"∨",cap:"∩",cup:"∪",ddagger:"‡",dagger:"†",sqcap:"⊓",sqcup:"⊔",uplus:"⊎",amalg:"⨿",diamond:"⋄",bullet:"∙",wr:"≀",div:"÷",divsymbol:"÷",odot:["⊙",{largeop:!1}],oslash:["⊘",{largeop:!1}],otimes:["⊗",{largeop:!1}],ominus:["⊖",{largeop:!1}],oplus:["⊕",{largeop:!1}],mp:"∓",pm:"±",circ:"∘",bigcirc:"◯",setminus:"∖",cdot:"⋅",ast:"∗",times:"×",star:"⋆",propto:"∝",sqsubseteq:"⊑",sqsupseteq:"⊒",parallel:"∥",mid:"∣",dashv:"⊣",vdash:"⊢",leq:"≤",le:"≤",geq:"≥",ge:"≥",lt:"<",gt:">",succ:"≻",prec:"≺",approx:"≈",succeq:"⪰",preceq:"⪯",supset:"⊃",subset:"⊂",supseteq:"⊇",subseteq:"⊆",in:"∈",ni:"∋",notin:"∉",owns:"∋",gg:"≫",ll:"≪",sim:"∼",simeq:"≃",perp:"⊥",equiv:"≡",asymp:"≍",smile:"⌣",frown:"⌢",ne:"≠",neq:"≠",cong:"≅",doteq:"≐",bowtie:"⋈",models:"⊨",notChar:"⧸",Leftrightarrow:"⇔",Leftarrow:"⇐",Rightarrow:"⇒",leftrightarrow:"↔",leftarrow:"←",gets:"←",rightarrow:"→",to:["→",{accent:!1}],mapsto:"↦",leftharpoonup:"↼",leftharpoondown:"↽",rightharpoonup:"⇀",rightharpoondown:"⇁",nearrow:"↗",searrow:"↘",nwarrow:"↖",swarrow:"↙",rightleftharpoons:"⇌",hookrightarrow:"↪",hookleftarrow:"↩",longleftarrow:"⟵",Longleftarrow:"⟸",longrightarrow:"⟶",Longrightarrow:"⟹",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",ldots:"…",cdots:"⋯",vdots:"⋮",ddots:"⋱",dotsc:"…",dotsb:"⋯",dotsm:"⋯",dotsi:"⋯",dotso:"…",ldotp:[".",{texClass:fe.TEXCLASS.PUNCT}],cdotp:["⋅",{texClass:fe.TEXCLASS.PUNCT}],colon:[":",{texClass:fe.TEXCLASS.PUNCT}]}),new sn.CharacterMap("mathchar7",Vo.default.mathchar7,{Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω",_:"_","#":"#",$:"$","%":"%","&":"&",And:"&"}),new sn.DelimiterMap("delimiter",Vo.default.delimiter,{"(":"(",")":")","[":"[","]":"]","<":"⟨",">":"⟩","\\lt":"⟨","\\gt":"⟩","/":"/","|":["|",{texClass:fe.TEXCLASS.ORD}],".":"","\\\\":"\\","\\lmoustache":"⎰","\\rmoustache":"⎱","\\lgroup":"⟮","\\rgroup":"⟯","\\arrowvert":"⏐","\\Arrowvert":"‖","\\bracevert":"⎪","\\Vert":["‖",{texClass:fe.TEXCLASS.ORD}],"\\|":["‖",{texClass:fe.TEXCLASS.ORD}],"\\vert":["|",{texClass:fe.TEXCLASS.ORD}],"\\uparrow":"↑","\\downarrow":"↓","\\updownarrow":"↕","\\Uparrow":"⇑","\\Downarrow":"⇓","\\Updownarrow":"⇕","\\backslash":"\\","\\rangle":"⟩","\\langle":"⟨","\\rbrace":"}","\\lbrace":"{","\\}":"}","\\{":"{","\\rceil":"⌉","\\lceil":"⌈","\\rfloor":"⌋","\\lfloor":"⌊","\\lbrack":"[","\\rbrack":"]"}),new sn.CommandMap("macros",{displaystyle:["SetStyle","D",!0,0],textstyle:["SetStyle","T",!1,0],scriptstyle:["SetStyle","S",!1,1],scriptscriptstyle:["SetStyle","SS",!1,2],rm:["SetFont",Z.TexConstant.Variant.NORMAL],mit:["SetFont",Z.TexConstant.Variant.ITALIC],oldstyle:["SetFont",Z.TexConstant.Variant.OLDSTYLE],cal:["SetFont",Z.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont",Z.TexConstant.Variant.MATHITALIC],bf:["SetFont",Z.TexConstant.Variant.BOLD],bbFont:["SetFont",Z.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",Z.TexConstant.Variant.SCRIPT],frak:["SetFont",Z.TexConstant.Variant.FRAKTUR],sf:["SetFont",Z.TexConstant.Variant.SANSSERIF],tt:["SetFont",Z.TexConstant.Variant.MONOSPACE],mathrm:["MathFont",Z.TexConstant.Variant.NORMAL],mathup:["MathFont",Z.TexConstant.Variant.NORMAL],mathnormal:["MathFont",""],mathbf:["MathFont",Z.TexConstant.Variant.BOLD],mathbfup:["MathFont",Z.TexConstant.Variant.BOLD],mathit:["MathFont",Z.TexConstant.Variant.MATHITALIC],mathbfit:["MathFont",Z.TexConstant.Variant.BOLDITALIC],mathbb:["MathFont",Z.TexConstant.Variant.DOUBLESTRUCK],Bbb:["MathFont",Z.TexConstant.Variant.DOUBLESTRUCK],mathfrak:["MathFont",Z.TexConstant.Variant.FRAKTUR],mathbffrak:["MathFont",Z.TexConstant.Variant.BOLDFRAKTUR],mathscr:["MathFont",Z.TexConstant.Variant.SCRIPT],mathbfscr:["MathFont",Z.TexConstant.Variant.BOLDSCRIPT],mathsf:["MathFont",Z.TexConstant.Variant.SANSSERIF],mathsfup:["MathFont",Z.TexConstant.Variant.SANSSERIF],mathbfsf:["MathFont",Z.TexConstant.Variant.BOLDSANSSERIF],mathbfsfup:["MathFont",Z.TexConstant.Variant.BOLDSANSSERIF],mathsfit:["MathFont",Z.TexConstant.Variant.SANSSERIFITALIC],mathbfsfit:["MathFont",Z.TexConstant.Variant.SANSSERIFBOLDITALIC],mathtt:["MathFont",Z.TexConstant.Variant.MONOSPACE],mathcal:["MathFont",Z.TexConstant.Variant.CALLIGRAPHIC],mathbfcal:["MathFont",Z.TexConstant.Variant.BOLDCALLIGRAPHIC],symrm:["MathFont",Z.TexConstant.Variant.NORMAL],symup:["MathFont",Z.TexConstant.Variant.NORMAL],symnormal:["MathFont",""],symbf:["MathFont",Z.TexConstant.Variant.BOLD],symbfup:["MathFont",Z.TexConstant.Variant.BOLD],symit:["MathFont",Z.TexConstant.Variant.ITALIC],symbfit:["MathFont",Z.TexConstant.Variant.BOLDITALIC],symbb:["MathFont",Z.TexConstant.Variant.DOUBLESTRUCK],symfrak:["MathFont",Z.TexConstant.Variant.FRAKTUR],symbffrak:["MathFont",Z.TexConstant.Variant.BOLDFRAKTUR],symscr:["MathFont",Z.TexConstant.Variant.SCRIPT],symbfscr:["MathFont",Z.TexConstant.Variant.BOLDSCRIPT],symsf:["MathFont",Z.TexConstant.Variant.SANSSERIF],symsfup:["MathFont",Z.TexConstant.Variant.SANSSERIF],symbfsf:["MathFont",Z.TexConstant.Variant.BOLDSANSSERIF],symbfsfup:["MathFont",Z.TexConstant.Variant.BOLDSANSSERIF],symsfit:["MathFont",Z.TexConstant.Variant.SANSSERIFITALIC],symbfsfit:["MathFont",Z.TexConstant.Variant.SANSSERIFBOLDITALIC],symtt:["MathFont",Z.TexConstant.Variant.MONOSPACE],symcal:["MathFont",Z.TexConstant.Variant.CALLIGRAPHIC],symbfcal:["MathFont",Z.TexConstant.Variant.BOLDCALLIGRAPHIC],textrm:["HBox",null,Z.TexConstant.Variant.NORMAL],textup:["HBox",null,Z.TexConstant.Variant.NORMAL],textnormal:["HBox"],textit:["HBox",null,Z.TexConstant.Variant.ITALIC],textbf:["HBox",null,Z.TexConstant.Variant.BOLD],textsf:["HBox",null,Z.TexConstant.Variant.SANSSERIF],texttt:["HBox",null,Z.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],arcsin:"NamedFn",arccos:"NamedFn",arctan:"NamedFn",arg:"NamedFn",cos:"NamedFn",cosh:"NamedFn",cot:"NamedFn",coth:"NamedFn",csc:"NamedFn",deg:"NamedFn",det:"NamedOp",dim:"NamedFn",exp:"NamedFn",gcd:"NamedOp",hom:"NamedFn",inf:"NamedOp",ker:"NamedFn",lg:"NamedFn",lim:"NamedOp",liminf:["NamedOp","lim&thinsp;inf"],limsup:["NamedOp","lim&thinsp;sup"],ln:"NamedFn",log:"NamedFn",max:"NamedOp",min:"NamedOp",Pr:"NamedOp",sec:"NamedFn",sin:"NamedFn",sinh:"NamedFn",sup:"NamedOp",tan:"NamedFn",tanh:"NamedFn",limits:["Limits",1],nolimits:["Limits",0],overline:["UnderOver","2015"],underline:["UnderOver","2015"],overbrace:["UnderOver","23DE",1],underbrace:["UnderOver","23DF",1],overparen:["UnderOver","23DC"],underparen:["UnderOver","23DD"],overrightarrow:["UnderOver","2192"],underrightarrow:["UnderOver","2192"],overleftarrow:["UnderOver","2190"],underleftarrow:["UnderOver","2190"],overleftrightarrow:["UnderOver","2194"],underleftrightarrow:["UnderOver","2194"],overset:"Overset",underset:"Underset",overunderset:"Overunderset",stackrel:["Macro","\\mathrel{\\mathop{#2}\\limits^{#1}}",2],stackbin:["Macro","\\mathbin{\\mathop{#2}\\limits^{#1}}",2],over:"Over",overwithdelims:"Over",atop:"Over",atopwithdelims:"Over",above:"Over",abovewithdelims:"Over",brace:["Over","{","}"],brack:["Over","[","]"],choose:["Over","(",")"],frac:"Frac",sqrt:"Sqrt",root:"Root",uproot:["MoveRoot","upRoot"],leftroot:["MoveRoot","leftRoot"],left:"LeftRight",right:"LeftRight",middle:"LeftRight",llap:"Lap",rlap:"Lap",raise:"RaiseLower",lower:"RaiseLower",moveleft:"MoveLeftRight",moveright:"MoveLeftRight",",":["Spacer",fr.MATHSPACE.thinmathspace],":":["Spacer",fr.MATHSPACE.mediummathspace],">":["Spacer",fr.MATHSPACE.mediummathspace],";":["Spacer",fr.MATHSPACE.thickmathspace],"!":["Spacer",fr.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",fr.MATHSPACE.thinmathspace],negthinspace:["Spacer",fr.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],nonscript:"Nonscript",big:["MakeBig",fe.TEXCLASS.ORD,.85],Big:["MakeBig",fe.TEXCLASS.ORD,1.15],bigg:["MakeBig",fe.TEXCLASS.ORD,1.45],Bigg:["MakeBig",fe.TEXCLASS.ORD,1.75],bigl:["MakeBig",fe.TEXCLASS.OPEN,.85],Bigl:["MakeBig",fe.TEXCLASS.OPEN,1.15],biggl:["MakeBig",fe.TEXCLASS.OPEN,1.45],Biggl:["MakeBig",fe.TEXCLASS.OPEN,1.75],bigr:["MakeBig",fe.TEXCLASS.CLOSE,.85],Bigr:["MakeBig",fe.TEXCLASS.CLOSE,1.15],biggr:["MakeBig",fe.TEXCLASS.CLOSE,1.45],Biggr:["MakeBig",fe.TEXCLASS.CLOSE,1.75],bigm:["MakeBig",fe.TEXCLASS.REL,.85],Bigm:["MakeBig",fe.TEXCLASS.REL,1.15],biggm:["MakeBig",fe.TEXCLASS.REL,1.45],Biggm:["MakeBig",fe.TEXCLASS.REL,1.75],mathord:["TeXAtom",fe.TEXCLASS.ORD],mathop:["TeXAtom",fe.TEXCLASS.OP],mathopen:["TeXAtom",fe.TEXCLASS.OPEN],mathclose:["TeXAtom",fe.TEXCLASS.CLOSE],mathbin:["TeXAtom",fe.TEXCLASS.BIN],mathrel:["TeXAtom",fe.TEXCLASS.REL],mathpunct:["TeXAtom",fe.TEXCLASS.PUNCT],mathinner:["TeXAtom",fe.TEXCLASS.INNER],vcenter:["TeXAtom",fe.TEXCLASS.VCENTER],buildrel:"BuildRel",hbox:["HBox",0],text:"HBox",mbox:["HBox",0],fbox:"FBox",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],framebox:"FrameBox",strut:"Strut",mathstrut:["Macro","\\vphantom{(}"],phantom:"Phantom",vphantom:["Phantom",1,0],hphantom:["Phantom",0,1],smash:"Smash",acute:["Accent","00B4"],grave:["Accent","0060"],ddot:["Accent","00A8"],tilde:["Accent","007E"],bar:["Accent","00AF"],breve:["Accent","02D8"],check:["Accent","02C7"],hat:["Accent","005E"],vec:["Accent","2192"],dot:["Accent","02D9"],widetilde:["Accent","007E",1],widehat:["Accent","005E",1],matrix:"Matrix",array:"Matrix",pmatrix:["Matrix","(",")"],cases:["Matrix","{","","left left",null,".1em",null,!0],eqalign:["Matrix",null,null,"right left",(0,fr.em)(fr.MATHSPACE.thickmathspace),".5em","D"],displaylines:["Matrix",null,null,"center",null,".5em","D"],cr:"Cr","\\":"CrLaTeX",newline:["CrLaTeX",!0],hline:["HLine","solid"],hdashline:["HLine","dashed"],eqalignno:["Matrix",null,null,"right left",(0,fr.em)(fr.MATHSPACE.thickmathspace),".5em","D",null,"right"],leqalignno:["Matrix",null,null,"right left",(0,fr.em)(fr.MATHSPACE.thickmathspace),".5em","D",null,"left"],hfill:"HFill",hfil:"HFill",hfilll:"HFill",bmod:["Macro",'\\mmlToken{mo}[lspace="thickmathspace" rspace="thickmathspace"]{mod}'],pmod:["Macro","\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",1],mod:["Macro","\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",1],pod:["Macro","\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)",1],iff:["Macro","\\;\\Longleftrightarrow\\;"],skew:["Macro","{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",3],pmb:["Macro","\\rlap{#1}\\kern1px{#1}",1],TeX:["Macro","T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],LaTeX:["Macro","L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX"]," ":["Macro","\\text{ }"],not:"Not",dots:"Dots",space:"Tilde"," ":"Tilde",begin:"BeginEnd",end:"BeginEnd",label:"HandleLabel",ref:"HandleRef",nonumber:"HandleNoTag",mathchoice:"MathChoice",mmlToken:"MmlToken"},bb.default),new sn.EnvironmentMap("environment",Vo.default.environment,{array:["AlignedArray"],equation:["Equation",null,!0],eqnarray:["EqnArray",null,!0,!0,"rcl",wD.default.cols(0,fr.MATHSPACE.thickmathspace),".5em"]},bb.default),new sn.CharacterMap("not_remap",null,{"←":"↚","→":"↛","↔":"↮","⇐":"⇍","⇒":"⇏","⇔":"⇎","∈":"∉","∋":"∌","∣":"∤","∥":"∦","∼":"≁","~":"≁","≃":"≄","≅":"≇","≈":"≉","≍":"≭","=":"≠","≡":"≢","<":"≮",">":"≯","≤":"≰","≥":"≱","≲":"≴","≳":"≵","≶":"≸","≷":"≹","≺":"⊀","≻":"⊁","⊂":"⊄","⊃":"⊅","⊆":"⊈","⊇":"⊉","⊢":"⊬","⊨":"⊭","⊩":"⊮","⊫":"⊯","≼":"⋠","≽":"⋡","⊑":"⋢","⊒":"⋣","⊲":"⋪","⊳":"⋫","⊴":"⋬","⊵":"⋭","∃":"∄"});var RD=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),LD=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ID=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),PD=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&LD(t,e,r);return ID(t,e),t}),kD=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),YO=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}),at;Object.defineProperty(qo,"__esModule",{value:!0}),qo.BaseConfiguration=qo.BaseTags=qo.Other=void 0;var BD=_e,DD=Ls,QO=YO(Pe),jD=YO(Ye),FD=de,me=PD(pe),UD=On,HD=Lu;new FD.CharacterMap("remap",null,{"-":"−","*":"∗","`":"‘"});function ZO(e,t){var r=e.stack.env.font?{mathvariant:e.stack.env.font}:{},n=DD.MapHandler.getMap("remap").lookup(t),o=(0,HD.getRange)(t),i=o?o[3]:"mo",a=e.create("token",i,r,n?n.char:t);o[4]&&a.attributes.set("mathvariant",o[4]),i==="mo"&&(jD.default.setProperty(a,"fixStretchy",!0),e.configuration.addNode("fixStretchy",a)),e.Push(a)}qo.Other=ZO;function qD(e,t){throw new QO.default("UndefinedControlSequence","Undefined control sequence %1","\\"+t)}function GD(e,t){throw new QO.default("UnknownEnv","Unknown environment '%1'",t)}function XD(e){var t,r,n=e.data;try{for(var o=kD(n.getList("nonscript")),i=o.next();!i.done;i=o.next()){var a=i.value;if(a.attributes.get("scriptlevel")>0){var s=a.parent;if(s.childNodes.splice(s.childIndex(a),1),n.removeFromList(a.kind,[a]),a.isKind("mrow")){var c=a.childNodes[0];n.removeFromList("mstyle",[c]),n.removeFromList("mspace",c.childNodes[0].childNodes)}}else a.isKind("mrow")&&(a.parent.replaceChild(a.childNodes[0],a),n.removeFromList("mrow",[a]))}}catch(l){t={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}var eA=(function(e){RD(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(UD.AbstractTags);qo.BaseTags=eA,qo.BaseConfiguration=BD.Configuration.create("base",{handler:{character:["command","special","letter","digit"],delimiter:["delimiter"],macro:["delimiter","macros","mathchar0mi","mathchar0mo","mathchar7"],environment:["environment"]},fallback:{character:ZO,macro:qD,environment:GD},items:(at={},at[me.StartItem.prototype.kind]=me.StartItem,at[me.StopItem.prototype.kind]=me.StopItem,at[me.OpenItem.prototype.kind]=me.OpenItem,at[me.CloseItem.prototype.kind]=me.CloseItem,at[me.PrimeItem.prototype.kind]=me.PrimeItem,at[me.SubsupItem.prototype.kind]=me.SubsupItem,at[me.OverItem.prototype.kind]=me.OverItem,at[me.LeftItem.prototype.kind]=me.LeftItem,at[me.Middle.prototype.kind]=me.Middle,at[me.RightItem.prototype.kind]=me.RightItem,at[me.BeginItem.prototype.kind]=me.BeginItem,at[me.EndItem.prototype.kind]=me.EndItem,at[me.StyleItem.prototype.kind]=me.StyleItem,at[me.PositionItem.prototype.kind]=me.PositionItem,at[me.CellItem.prototype.kind]=me.CellItem,at[me.MmlItem.prototype.kind]=me.MmlItem,at[me.FnItem.prototype.kind]=me.FnItem,at[me.NotItem.prototype.kind]=me.NotItem,at[me.NonscriptItem.prototype.kind]=me.NonscriptItem,at[me.DotsItem.prototype.kind]=me.DotsItem,at[me.ArrayItem.prototype.kind]=me.ArrayItem,at[me.EqnArrayItem.prototype.kind]=me.EqnArrayItem,at[me.EquationItem.prototype.kind]=me.EquationItem,at),options:{maxMacros:1e3,baseURL:typeof document>"u"||document.getElementsByTagName("base").length===0?"":String(document.location).replace(/#.*$/,"")},tags:{base:eA},postprocessors:[[XD,-4]]});var VD=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ih=y&&y.__assign||(function(){return Ih=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Ih.apply(this,arguments)}),WD=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),Kl=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(V1,"__esModule",{value:!0});var tA=V1.TeX=void 0,rA=Ns,nA=tt,oA=Ah,Bs=Kl($1),iA=Kl(Ye),$D=Kl(Ut),zD=Kl(Pe),KD=Kl(_h),Ph=On,JD=_e;tA=V1.TeX=(function(e){VD(t,e);function t(r){r===void 0&&(r={});var n=this,o=WD((0,nA.separateOptions)(r,t.OPTIONS,oA.FindTeX.OPTIONS),3),i=o[0],a=o[1],s=o[2];n=e.call(this,a)||this,n.findTeX=n.options.FindTeX||new oA.FindTeX(s);var c=n.options.packages,l=n.configuration=t.configure(c),u=n._parseOptions=new KD.default(l,[n.options,Ph.TagsFactory.OPTIONS]);return(0,nA.userOptions)(u.options,i),l.config(n),t.tags(u,l),n.postFilters.add(Bs.default.cleanSubSup,-6),n.postFilters.add(Bs.default.setInherited,-5),n.postFilters.add(Bs.default.moveLimits,-4),n.postFilters.add(Bs.default.cleanStretchy,-3),n.postFilters.add(Bs.default.cleanAttributes,-2),n.postFilters.add(Bs.default.combineRelations,-1),n}return t.configure=function(r){var n=new JD.ParserConfiguration(r,["tex"]);return n.init(),n},t.tags=function(r,n){Ph.TagsFactory.addTags(n.tags),Ph.TagsFactory.setDefault(r.options.tags),r.tags=Ph.TagsFactory.getDefault(),r.tags.configuration=r},t.prototype.setMmlFactory=function(r){e.prototype.setMmlFactory.call(this,r),this._parseOptions.nodeFactory.setMmlFactory(r)},Object.defineProperty(t.prototype,"parseOptions",{get:function(){return this._parseOptions},enumerable:!1,configurable:!0}),t.prototype.reset=function(r){r===void 0&&(r=0),this.parseOptions.tags.reset(r)},t.prototype.compile=function(r,n){this.parseOptions.clear(),this.executeFilters(this.preFilters,r,n,this.parseOptions);var o=r.display;this.latex=r.math;var i;this.parseOptions.tags.startEquation(r);var a;try{var s=new $D.default(this.latex,{display:o,isInner:!1},this.parseOptions);i=s.mml(),a=s.stack.global}catch(c){if(!(c instanceof zD.default))throw c;this.parseOptions.error=!0,i=this.options.formatError(this,c)}return i=this.parseOptions.nodeFactory.create("node","math",[i]),a?.indentalign&&iA.default.setAttribute(i,"indentalign",a.indentalign),o&&iA.default.setAttribute(i,"display","block"),this.parseOptions.tags.finishEquation(r),this.parseOptions.root=i,this.executeFilters(this.postFilters,r,n,this.parseOptions),this.mathNode=this.parseOptions.root,this.mathNode},t.prototype.findMath=function(r){return this.findTeX.findMath(r)},t.prototype.formatError=function(r){var n=r.message.replace(/\n.*/,"");return this.parseOptions.nodeFactory.create("error",n,r.id,this.latex)},t.NAME="TeX",t.OPTIONS=Ih(Ih({},rA.AbstractInputJax.OPTIONS),{FindTeX:null,packages:["base"],digits:/^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,maxBuffer:5120,formatError:function(r,n){return r.formatError(n)}}),t})(rA.AbstractInputJax);var vb={},kh={},Jl={};Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.AbstractOutputJax=void 0;var aA=tt,YD=Uo;Jl.AbstractOutputJax=(function(){function e(t){t===void 0&&(t={}),this.adaptor=null;var r=this.constructor;this.options=(0,aA.userOptions)((0,aA.defaultOptions)({},r.OPTIONS),t),this.postFilters=new YD.FunctionList}return Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),e.prototype.setAdaptor=function(t){this.adaptor=t},e.prototype.initialize=function(){},e.prototype.reset=function(){},e.prototype.getMetrics=function(t){},e.prototype.styleSheet=function(t){return null},e.prototype.pageElements=function(t){return null},e.prototype.executeFilters=function(t,r,n,o){var i={math:r,document:n,data:o};return t.execute(i),i.data},e.NAME="generic",e.OPTIONS={},e})();var Yl={},qr=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),Sb=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),QD=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.Styles=void 0;var Ql=["top","right","bottom","left"],Bh=["width","style","color"];function Eb(e){for(var t=e.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g),r=[];t.length>1;)t.shift(),r.push(t.shift());return r}function Dh(e){var t,r,n=Eb(this.styles[e]);n.length===0&&n.push(""),n.length===1&&n.push(n[0]),n.length===2&&n.push(n[0]),n.length===3&&n.push(n[1]);try{for(var o=qr(Wo.connect[e].children),i=o.next();!i.done;i=o.next()){var a=i.value;this.setStyle(this.childName(e,a),n.shift())}}catch(s){t={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}function ZD(e){var t,r,n=Wo.connect[e].children,o=[];try{for(var i=qr(n),a=i.next();!a.done;a=i.next()){var s=a.value,c=this.styles[e+"-"+s];if(!c){delete this.styles[e];return}o.push(c)}}catch(l){t={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}o[3]===o[1]&&(o.pop(),o[2]===o[0]&&(o.pop(),o[1]===o[0]&&o.pop())),this.styles[e]=o.join(" ")}function ej(e){var t,r;try{for(var n=qr(Wo.connect[e].children),o=n.next();!o.done;o=n.next()){var i=o.value;this.setStyle(this.childName(e,i),this.styles[e])}}catch(a){t={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}function tj(e){var t,r,n=QD([],Sb(Wo.connect[e].children),!1),o=this.styles[this.childName(e,n.shift())];try{for(var i=qr(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(this.styles[this.childName(e,s)]!==o){delete this.styles[e];return}}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}this.styles[e]=o}var sA={width:/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,style:/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/};function jh(e){var t,r,n,o,i={width:"",style:"",color:""};try{for(var a=qr(Eb(this.styles[e])),s=a.next();!s.done;s=a.next()){var c=s.value;c.match(sA.width)&&i.width===""?i.width=c:c.match(sA.style)&&i.style===""?i.style=c:i.color=c}}catch(d){t={error:d}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}try{for(var l=qr(Wo.connect[e].children),u=l.next();!u.done;u=l.next()){var p=u.value;this.setStyle(this.childName(e,p),i[p])}}catch(d){n={error:d}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}function Fh(e){var t,r,n=[];try{for(var o=qr(Wo.connect[e].children),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.styles[this.childName(e,a)];s&&n.push(s)}}catch(c){t={error:c}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}n.length?this.styles[e]=n.join(" "):delete this.styles[e]}var cA={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant:new RegExp("^(?:"+["normal|none","inherit|initial|unset","common-ligatures|no-common-ligatures","discretionary-ligatures|no-discretionary-ligatures","historical-ligatures|no-historical-ligatures","contextual|no-contextual","(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)","small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","lining-nums|oldstyle-nums|proportional-nums|tabular-nums","diagonal-fractions|stacked-fractions","ordinal|slashed-zero","jis78|jis83|jis90|jis04|simplified|traditional","full-width|proportional-width","ruby"].join("|")+")$"),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:new RegExp("^(?:"+["normal","(?:(?:ultra|extra|semi)-)?condensed","(?:(?:semi|extra|ulta)-)?expanded","inherit|initial|unset"].join("|")+")$"),size:new RegExp("^(?:"+["xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller","[d.]+%|[d.]+[a-z]+","inherit|initial|unset"].join("|")+")(?:/(?:normal|[d.+](?:%|[a-z]+)?))?$")};function rj(e){var t,r,n,o,i=Eb(this.styles[e]),a={style:"",variant:[],weight:"",stretch:"",size:"",family:"","line-height":""};try{for(var s=qr(i),c=s.next();!c.done;c=s.next()){var l=c.value;a.family=l;try{for(var u=(n=void 0,qr(Object.keys(cA))),p=u.next();!p.done;p=u.next()){var d=p.value;if((Array.isArray(a[d])||a[d]==="")&&l.match(cA[d]))if(d==="size"){var h=Sb(l.split(/\//),2),f=h[0],m=h[1];a[d]=f,m&&(a["line-height"]=m)}else a.size===""&&(Array.isArray(a[d])?a[d].push(l):a[d]=l)}}catch(v){n={error:v}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}}}catch(v){t={error:v}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}nj(e,a),delete this.styles[e]}function nj(e,t){var r,n;try{for(var o=qr(Wo.connect[e].children),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.childName(e,a);if(Array.isArray(t[a])){var c=t[a];c.length&&(this.styles[s]=c.join(" "))}else t[a]!==""&&(this.styles[s]=t[a])}}catch(l){r={error:l}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}function oj(e){}var Wo=(function(){function e(t){t===void 0&&(t=""),this.parse(t)}return Object.defineProperty(e.prototype,"cssText",{get:function(){var t,r,n=[];try{for(var o=qr(Object.keys(this.styles)),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.parentName(a);this.styles[s]||n.push(a+": "+this.styles[a]+";")}}catch(c){t={error:c}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n.join(" ")},enumerable:!1,configurable:!0}),e.prototype.set=function(t,r){for(t=this.normalizeName(t),this.setStyle(t,r),e.connect[t]&&!e.connect[t].combine&&(this.combineChildren(t),delete this.styles[t]);t.match(/-/)&&(t=this.parentName(t),!!e.connect[t]);)e.connect[t].combine.call(this,t)},e.prototype.get=function(t){return t=this.normalizeName(t),this.styles.hasOwnProperty(t)?this.styles[t]:""},e.prototype.setStyle=function(t,r){this.styles[t]=r,e.connect[t]&&e.connect[t].children&&e.connect[t].split.call(this,t),r===""&&delete this.styles[t]},e.prototype.combineChildren=function(t){var r,n,o=this.parentName(t);try{for(var i=qr(e.connect[t].children),a=i.next();!a.done;a=i.next()){var s=a.value,c=this.childName(o,s);e.connect[c].combine.call(this,c)}}catch(l){r={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.parentName=function(t){var r=t.replace(/-[^-]*$/,"");return t===r?"":r},e.prototype.childName=function(t,r){return r.match(/-/)?r:(e.connect[t]&&!e.connect[t].combine&&(r+=t.replace(/.*-/,"-"),t=this.parentName(t)),t+"-"+r)},e.prototype.normalizeName=function(t){return t.replace(/[A-Z]/g,function(r){return"-"+r.toLowerCase()})},e.prototype.parse=function(t){t===void 0&&(t="");var r=this.constructor.pattern;this.styles={};for(var n=t.replace(r.comment,"").split(r.style);n.length>1;){var o=Sb(n.splice(0,3),3),i=o[0],a=o[1],s=o[2];if(i.match(/[^\s\n]/))return;this.set(a,s)}},e.pattern={style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g},e.connect={padding:{children:Ql,split:Dh,combine:ZD},border:{children:Ql,split:ej,combine:tj},"border-top":{children:Bh,split:jh,combine:Fh},"border-right":{children:Bh,split:jh,combine:Fh},"border-bottom":{children:Bh,split:jh,combine:Fh},"border-left":{children:Bh,split:jh,combine:Fh},"border-width":{children:Ql,split:Dh,combine:null},"border-style":{children:Ql,split:Dh,combine:null},"border-color":{children:Ql,split:Dh,combine:null},font:{children:["style","variant","weight","stretch","line-height","size","family"],split:rj,combine:oj}},e})();Yl.Styles=Wo;var Zl={},Uh=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.CssStyles=void 0,Zl.CssStyles=(function(){function e(t){t===void 0&&(t=null),this.styles={},this.addStyles(t)}return Object.defineProperty(e.prototype,"cssText",{get:function(){return this.getStyleString()},enumerable:!1,configurable:!0}),e.prototype.addStyles=function(t){var r,n;if(t)try{for(var o=Uh(Object.keys(t)),i=o.next();!i.done;i=o.next()){var a=i.value;this.styles[a]||(this.styles[a]={}),Object.assign(this.styles[a],t[a])}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.prototype.removeStyles=function(){for(var t,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];try{for(var i=Uh(n),a=i.next();!a.done;a=i.next()){var s=a.value;delete this.styles[s]}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},e.prototype.clear=function(){this.styles={}},e.prototype.getStyleString=function(){return this.getStyleRules().join(`
57
+
58
+ `)},e.prototype.getStyleRules=function(){var t,r,n=Object.keys(this.styles),o=new Array(n.length),i=0;try{for(var a=Uh(n),s=a.next();!s.done;s=a.next()){var c=s.value;o[i++]=c+` {
59
+ `+this.getStyleDefString(this.styles[c])+`
60
+ }`}}catch(l){t={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return o},e.prototype.getStyleDefString=function(t){var r,n,o=Object.keys(t),i=new Array(o.length),a=0;try{for(var s=Uh(o),c=s.next();!c.done;c=s.next()){var l=c.value;i[a++]=" "+l+": "+t[l]+";"}}catch(u){r={error:u}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return i.join(`
61
+ `)},e})();var ij=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Hh=y&&y.__assign||(function(){return Hh=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Hh.apply(this,arguments)}),xb=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),$o=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(kh,"__esModule",{value:!0}),kh.CommonOutputJax=void 0;var lA=Jl,Mb=Wr,aj=tt,sj=hr,cj=Yl,lj=Zl;kh.CommonOutputJax=(function(e){ij(t,e);function t(r,n,o){r===void 0&&(r=null),n===void 0&&(n=null),o===void 0&&(o=null);var i=this,a=xb((0,aj.separateOptions)(r,o.OPTIONS),2),s=a[0],c=a[1];return i=e.call(this,s)||this,i.factory=i.options.wrapperFactory||new n,i.factory.jax=i,i.cssStyles=i.options.cssStyles||new lj.CssStyles,i.font=i.options.font||new o(c),i.unknownCache=new Map,i}return t.prototype.typeset=function(r,n){this.setDocument(n);var o=this.createNode();return this.toDOM(r,o,n),o},t.prototype.createNode=function(){var r=this.constructor.NAME;return this.html("mjx-container",{class:"MathJax",jax:r})},t.prototype.setScale=function(r){var n=this.math.metrics.scale*this.options.scale;n!==1&&this.adaptor.setStyle(r,"fontSize",(0,sj.percent)(n))},t.prototype.toDOM=function(r,n,o){o===void 0&&(o=null),this.setDocument(o),this.math=r,this.pxPerEm=r.metrics.ex/this.font.params.x_height,r.root.setTeXclass(null),this.setScale(n),this.nodeMap=new Map,this.container=n,this.processMath(r.root,n),this.nodeMap=null,this.executeFilters(this.postFilters,r,o,n)},t.prototype.getBBox=function(r,n){this.setDocument(n),this.math=r,r.root.setTeXclass(null),this.nodeMap=new Map;var o=this.factory.wrap(r.root).getOuterBBox();return this.nodeMap=null,o},t.prototype.getMetrics=function(r){var n,o;this.setDocument(r);var i=this.adaptor,a=this.getMetricMaps(r);try{for(var s=$o(r.math),c=s.next();!c.done;c=s.next()){var l=c.value,u=i.parent(l.start.node);if(l.state()<Mb.STATE.METRICS&&u){var p=a[l.display?1:0].get(u),d=p.em,h=p.ex,f=p.containerWidth,m=p.lineWidth,v=p.scale,g=p.family;l.setMetrics(d,h,f,m,v),this.options.mtextInheritFont&&(l.outputData.mtextFamily=g),this.options.merrorInheritFont&&(l.outputData.merrorFamily=g),l.state(Mb.STATE.METRICS)}}}catch(b){n={error:b}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}},t.prototype.getMetricsFor=function(r,n){var o=this.options.mtextInheritFont||this.options.merrorInheritFont,i=this.getTestElement(r,n),a=this.measureMetrics(i,o);return this.adaptor.remove(i),a},t.prototype.getMetricMaps=function(r){var n,o,i,a,s,c,l,u,p,d,h=this.adaptor,f=[new Map,new Map];try{for(var m=$o(r.math),v=m.next();!v.done;v=m.next()){var g=v.value,b=h.parent(g.start.node);if(b&&g.state()<Mb.STATE.METRICS){var S=f[g.display?1:0];S.has(b)||S.set(b,this.getTestElement(b,g.display))}}}catch(F){n={error:F}}finally{try{v&&!v.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}var E=this.options.mtextInheritFont||this.options.merrorInheritFont,x=[new Map,new Map];try{for(var O=$o(x.keys()),A=O.next();!A.done;A=O.next()){var M=A.value;try{for(var C=(s=void 0,$o(f[M].keys())),w=C.next();!w.done;w=C.next()){var b=w.value;x[M].set(b,this.measureMetrics(f[M].get(b),E))}}catch(F){s={error:F}}finally{try{w&&!w.done&&(c=C.return)&&c.call(C)}finally{if(s)throw s.error}}}}catch(F){i={error:F}}finally{try{A&&!A.done&&(a=O.return)&&a.call(O)}finally{if(i)throw i.error}}try{for(var k=$o(x.keys()),L=k.next();!L.done;L=k.next()){var M=L.value;try{for(var D=(p=void 0,$o(f[M].values())),P=D.next();!P.done;P=D.next()){var b=P.value;h.remove(b)}}catch(G){p={error:G}}finally{try{P&&!P.done&&(d=D.return)&&d.call(D)}finally{if(p)throw p.error}}}}catch(F){l={error:F}}finally{try{L&&!L.done&&(u=k.return)&&u.call(k)}finally{if(l)throw l.error}}return x},t.prototype.getTestElement=function(r,n){var o=this.adaptor;if(!this.testInline){this.testInline=this.html("mjx-test",{style:{display:"inline-block",width:"100%","font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","text-indent":0,"text-transform":"none","letter-spacing":"normal","word-spacing":"normal",overflow:"hidden",height:"1px","margin-right":"-1px"}},[this.html("mjx-left-box",{style:{display:"inline-block",width:0,float:"left"}}),this.html("mjx-ex-box",{style:{position:"absolute",overflow:"hidden",width:"1px",height:"60ex"}}),this.html("mjx-right-box",{style:{display:"inline-block",width:0,float:"right"}})]),this.testDisplay=o.clone(this.testInline),o.setStyle(this.testDisplay,"display","table"),o.setStyle(this.testDisplay,"margin-right",""),o.setStyle(o.firstChild(this.testDisplay),"display","none");var i=o.lastChild(this.testDisplay);o.setStyle(i,"display","table-cell"),o.setStyle(i,"width","10000em"),o.setStyle(i,"float","")}return o.append(r,o.clone(n?this.testDisplay:this.testInline))},t.prototype.measureMetrics=function(r,n){var o=this.adaptor,i=n?o.fontFamily(r):"",a=o.fontSize(r),s=xb(o.nodeSize(o.childNode(r,1)),2),c=s[0],l=s[1],u=c?l/60:a*this.options.exFactor;return{em:a,ex:u,containerWidth:c?o.getStyle(r,"display")==="table"?o.nodeSize(o.lastChild(r))[0]-1:o.nodeBBox(o.lastChild(r)).left-o.nodeBBox(o.firstChild(r)).left-2:1e6,lineWidth:1e6,scale:Math.max(this.options.minScale,this.options.matchFontHeight?u/this.font.params.x_height/a:1),family:i}},t.prototype.styleSheet=function(r){var n,o;if(this.setDocument(r),this.cssStyles.clear(),this.cssStyles.addStyles(this.constructor.commonStyles),"getStyles"in r)try{for(var i=$o(r.getStyles()),a=i.next();!a.done;a=i.next()){var s=a.value;this.cssStyles.addStyles(s)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return this.addWrapperStyles(this.cssStyles),this.addFontStyles(this.cssStyles),this.html("style",{id:"MJX-styles"},[this.text(`
62
+ `+this.cssStyles.cssText+`
63
+ `)])},t.prototype.addFontStyles=function(r){r.addStyles(this.font.styles)},t.prototype.addWrapperStyles=function(r){var n,o;try{for(var i=$o(this.factory.getKinds()),a=i.next();!a.done;a=i.next()){var s=a.value;this.addClassStyles(this.factory.getNodeClass(s),r)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.addClassStyles=function(r,n){n.addStyles(r.styles)},t.prototype.setDocument=function(r){r&&(this.document=r,this.adaptor.document=r.document)},t.prototype.html=function(r,n,o,i){return n===void 0&&(n={}),o===void 0&&(o=[]),this.adaptor.node(r,n,o,i)},t.prototype.text=function(r){return this.adaptor.text(r)},t.prototype.fixed=function(r,n){return n===void 0&&(n=3),Math.abs(r)<6e-4?"0":r.toFixed(n).replace(/\.?0+$/,"")},t.prototype.measureText=function(r,n,o){o===void 0&&(o=["",!1,!1]);var i=this.unknownText(r,n);if(n==="-explicitFont"){var a=this.cssFontStyles(o);this.adaptor.setAttributes(i,{style:a})}return this.measureTextNodeWithCache(i,r,n,o)},t.prototype.measureTextNodeWithCache=function(r,n,o,i){i===void 0&&(i=["",!1,!1]),o==="-explicitFont"&&(o=[i[0],i[1]?"T":"F",i[2]?"T":"F",""].join("-")),this.unknownCache.has(o)||this.unknownCache.set(o,new Map);var a=this.unknownCache.get(o),s=a.get(n);if(s)return s;var c=this.measureTextNode(r);return a.set(n,c),c},t.prototype.measureXMLnode=function(r){var n=this.adaptor,o=this.html("mjx-xml-block",{style:{display:"inline-block"}},[n.clone(r)]),i=this.html("mjx-baseline",{style:{display:"inline-block",width:0,height:0}}),a=this.html("mjx-measure-xml",{style:{position:"absolute",display:"inline-block","font-family":"initial","line-height":"normal"}},[i,o]);n.append(n.parent(this.math.start.node),this.container),n.append(this.container,a);var s=this.math.metrics.em*this.math.metrics.scale,c=n.nodeBBox(o),l=c.left,u=c.right,p=c.bottom,d=c.top,h=(u-l)/s,f=(n.nodeBBox(i).top-d)/s,m=(p-d)/s-f;return n.remove(this.container),n.remove(a),{w:h,h:f,d:m}},t.prototype.cssFontStyles=function(r,n){n===void 0&&(n={});var o=xb(r,3),i=o[0],a=o[1],s=o[2];return n["font-family"]=this.font.getFamily(i),a&&(n["font-style"]="italic"),s&&(n["font-weight"]="bold"),n},t.prototype.getFontData=function(r){return r||(r=new cj.Styles),[this.font.getFamily(r.get("font-family")),r.get("font-style")==="italic",r.get("font-weight")==="bold"]},t.NAME="Common",t.OPTIONS=Hh(Hh({},lA.AbstractOutputJax.OPTIONS),{scale:1,minScale:.5,mtextInheritFont:!1,merrorInheritFont:!1,mtextFont:"",merrorFont:"serif",mathmlSpacing:!1,skipAttributes:{},exFactor:.5,displayAlign:"center",displayIndent:"0",wrapperFactory:null,font:null,cssStyles:null}),t.commonStyles={},t})(lA.AbstractOutputJax);var qh={},Gh={},Xh={},uj=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),pj=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),dj=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.AbstractWrapperFactory=void 0,Xh.AbstractWrapperFactory=(function(e){uj(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.wrap=function(r){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return this.create.apply(this,dj([r.kind,r],pj(n),!1))},t})(oa.AbstractFactory);var hj=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.CommonWrapperFactory=void 0,Gh.CommonWrapperFactory=(function(e){hj(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.jax=null,r}return Object.defineProperty(t.prototype,"Wrappers",{get:function(){return this.node},enumerable:!1,configurable:!0}),t.defaultNodes={},t})(Xh.AbstractWrapperFactory);var Vh={},ot={},Wh={},$h={};Object.defineProperty($h,"__esModule",{value:!0}),$h.AbstractWrapper=void 0,$h.AbstractWrapper=(function(){function e(t,r){this.factory=t,this.node=r}return Object.defineProperty(e.prototype,"kind",{get:function(){return this.node.kind},enumerable:!1,configurable:!0}),e.prototype.wrap=function(t){return this.factory.wrap(t)},e})();var cn={};Object.defineProperty(cn,"__esModule",{value:!0}),cn.BBox=void 0;var zo=hr;cn.BBox=(function(){function e(t){t===void 0&&(t={w:0,h:-zo.BIGDIMEN,d:-zo.BIGDIMEN}),this.w=t.w||0,this.h="h"in t?t.h:-zo.BIGDIMEN,this.d="d"in t?t.d:-zo.BIGDIMEN,this.L=this.R=this.ic=this.sk=this.dx=0,this.scale=this.rscale=1,this.pwidth=""}return e.zero=function(){return new e({h:0,d:0,w:0})},e.empty=function(){return new e},e.prototype.empty=function(){return this.w=0,this.h=this.d=-zo.BIGDIMEN,this},e.prototype.clean=function(){this.w===-zo.BIGDIMEN&&(this.w=0),this.h===-zo.BIGDIMEN&&(this.h=0),this.d===-zo.BIGDIMEN&&(this.d=0)},e.prototype.rescale=function(t){this.w*=t,this.h*=t,this.d*=t},e.prototype.combine=function(t,r,n){r===void 0&&(r=0),n===void 0&&(n=0);var o=t.rscale,i=r+o*(t.w+t.L+t.R),a=n+o*t.h,s=o*t.d-n;i>this.w&&(this.w=i),a>this.h&&(this.h=a),s>this.d&&(this.d=s)},e.prototype.append=function(t){var r=t.rscale;this.w+=r*(t.w+t.L+t.R),r*t.h>this.h&&(this.h=r*t.h),r*t.d>this.d&&(this.d=r*t.d)},e.prototype.updateFrom=function(t){this.h=t.h,this.d=t.d,this.w=t.w,t.pwidth&&(this.pwidth=t.pwidth)},e.fullWidth="100%",e.StyleAdjust=[["borderTopWidth","h"],["borderRightWidth","w"],["borderBottomWidth","d"],["borderLeftWidth","w",0],["paddingTop","h"],["paddingRight","w"],["paddingBottom","d"],["paddingLeft","w",0]],e})();var mr={},zh=y&&y.__assign||(function(){return zh=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),zh.apply(this,arguments)}),Ob=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),uA=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),Ds=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(mr,"__esModule",{value:!0}),mr.FontData=mr.NOSTRETCH=mr.H=mr.V=void 0;var pA=tt;mr.V=1,mr.H=2,mr.NOSTRETCH={dir:0},mr.FontData=(function(){function e(t){var r,n,o,i;t===void 0&&(t=null),this.variant={},this.delimiters={},this.cssFontMap={},this.remapChars={},this.skewIcFactor=.75;var a=this.constructor;this.options=(0,pA.userOptions)((0,pA.defaultOptions)({},a.OPTIONS),t),this.params=zh({},a.defaultParams),this.sizeVariants=uA([],Ob(a.defaultSizeVariants),!1),this.stretchVariants=uA([],Ob(a.defaultStretchVariants),!1),this.cssFontMap=zh({},a.defaultCssFonts);try{for(var s=Ds(Object.keys(this.cssFontMap)),c=s.next();!c.done;c=s.next()){var l=c.value;this.cssFontMap[l][0]==="unknown"&&(this.cssFontMap[l][0]=this.options.unknownFamily)}}catch(h){r={error:h}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}this.cssFamilyPrefix=a.defaultCssFamilyPrefix,this.createVariants(a.defaultVariants),this.defineDelimiters(a.defaultDelimiters);try{for(var u=Ds(Object.keys(a.defaultChars)),p=u.next();!p.done;p=u.next()){var d=p.value;this.defineChars(d,a.defaultChars[d])}}catch(h){o={error:h}}finally{try{p&&!p.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}this.defineRemap("accent",a.defaultAccentMap),this.defineRemap("mo",a.defaultMoMap),this.defineRemap("mn",a.defaultMnMap)}return e.charOptions=function(t,r){var n=t[r];return n.length===3&&(n[3]={}),n[3]},Object.defineProperty(e.prototype,"styles",{get:function(){return this._styles},set:function(t){this._styles=t},enumerable:!1,configurable:!0}),e.prototype.createVariant=function(t,r,n){r===void 0&&(r=null),n===void 0&&(n=null);var o={linked:[],chars:r?Object.create(this.variant[r].chars):{}};n&&this.variant[n]&&(Object.assign(o.chars,this.variant[n].chars),this.variant[n].linked.push(o.chars),o.chars=Object.create(o.chars)),this.remapSmpChars(o.chars,t),this.variant[t]=o},e.prototype.remapSmpChars=function(t,r){var n,o,i,a,s=this.constructor;if(s.VariantSmp[r]){var c=s.SmpRemap,l=[null,null,s.SmpRemapGreekU,s.SmpRemapGreekL];try{for(var u=Ds(s.SmpRanges),p=u.next();!p.done;p=u.next()){var d=Ob(p.value,3),h=d[0],f=d[1],m=d[2],v=s.VariantSmp[r][h];if(v){for(var g=f;g<=m;g++)if(g!==930){var b=v+g-f;t[g]=this.smpChar(c[b]||b)}if(l[h])try{for(var S=(i=void 0,Ds(Object.keys(l[h]).map(function(x){return parseInt(x)}))),E=S.next();!E.done;E=S.next()){var g=E.value;t[g]=this.smpChar(v+l[h][g])}}catch(x){i={error:x}}finally{try{E&&!E.done&&(a=S.return)&&a.call(S)}finally{if(i)throw i.error}}}}}catch(x){n={error:x}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}}r==="bold"&&(t[988]=this.smpChar(120778),t[989]=this.smpChar(120779))},e.prototype.smpChar=function(t){return[,,,{smp:t}]},e.prototype.createVariants=function(t){var r,n;try{for(var o=Ds(t),i=o.next();!i.done;i=o.next()){var a=i.value;this.createVariant(a[0],a[1],a[2])}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.prototype.defineChars=function(t,r){var n,o,i=this.variant[t];Object.assign(i.chars,r);try{for(var a=Ds(i.linked),s=a.next();!s.done;s=a.next()){var c=s.value;Object.assign(c,r)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},e.prototype.defineDelimiters=function(t){Object.assign(this.delimiters,t)},e.prototype.defineRemap=function(t,r){this.remapChars.hasOwnProperty(t)||(this.remapChars[t]={}),Object.assign(this.remapChars[t],r)},e.prototype.getDelimiter=function(t){return this.delimiters[t]},e.prototype.getSizeVariant=function(t,r){return this.delimiters[t].variants&&(r=this.delimiters[t].variants[r]),this.sizeVariants[r]},e.prototype.getStretchVariant=function(t,r){return this.stretchVariants[this.delimiters[t].stretchv?this.delimiters[t].stretchv[r]:0]},e.prototype.getChar=function(t,r){return this.variant[t].chars[r]},e.prototype.getVariant=function(t){return this.variant[t]},e.prototype.getCssFont=function(t){return this.cssFontMap[t]||["serif",!1,!1]},e.prototype.getFamily=function(t){return this.cssFamilyPrefix?this.cssFamilyPrefix+", "+t:t},e.prototype.getRemappedChar=function(t,r){return(this.remapChars[t]||{})[r]},e.OPTIONS={unknownFamily:"serif"},e.JAX="common",e.NAME="",e.defaultVariants=[["normal"],["bold","normal"],["italic","normal"],["bold-italic","italic","bold"],["double-struck","bold"],["fraktur","normal"],["bold-fraktur","bold","fraktur"],["script","italic"],["bold-script","bold-italic","script"],["sans-serif","normal"],["bold-sans-serif","bold","sans-serif"],["sans-serif-italic","italic","sans-serif"],["sans-serif-bold-italic","bold-italic","bold-sans-serif"],["monospace","normal"]],e.defaultCssFonts={normal:["unknown",!1,!1],bold:["unknown",!1,!0],italic:["unknown",!0,!1],"bold-italic":["unknown",!0,!0],"double-struck":["unknown",!1,!0],fraktur:["unknown",!1,!1],"bold-fraktur":["unknown",!1,!0],script:["cursive",!1,!1],"bold-script":["cursive",!1,!0],"sans-serif":["sans-serif",!1,!1],"bold-sans-serif":["sans-serif",!1,!0],"sans-serif-italic":["sans-serif",!0,!1],"sans-serif-bold-italic":["sans-serif",!0,!0],monospace:["monospace",!1,!1]},e.defaultCssFamilyPrefix="",e.VariantSmp={bold:[119808,119834,120488,120514,120782],italic:[119860,119886,120546,120572],"bold-italic":[119912,119938,120604,120630],script:[119964,119990],"bold-script":[120016,120042],fraktur:[120068,120094],"double-struck":[120120,120146,,,120792],"bold-fraktur":[120172,120198],"sans-serif":[120224,120250,,,120802],"bold-sans-serif":[120276,120302,120662,120688,120812],"sans-serif-italic":[120328,120354],"sans-serif-bold-italic":[120380,120406,120720,120746],monospace:[120432,120458,,,120822]},e.SmpRanges=[[0,65,90],[1,97,122],[2,913,937],[3,945,969],[4,48,57]],e.SmpRemap={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},e.SmpRemapGreekU={8711:25,1012:17},e.SmpRemapGreekL={977:27,981:29,982:31,1008:28,1009:30,1013:26,8706:25},e.defaultAccentMap={768:"ˋ",769:"ˊ",770:"ˆ",771:"˜",772:"ˉ",774:"˘",775:"˙",776:"¨",778:"˚",780:"ˇ",8594:"⃗",8242:"'",8243:"''",8244:"'''",8245:"`",8246:"``",8247:"```",8279:"''''",8400:"↼",8401:"⇀",8406:"←",8417:"↔",8432:"*",8411:"...",8412:"....",8428:"⇁",8429:"↽",8430:"←",8431:"→"},e.defaultMoMap={45:"−"},e.defaultMnMap={45:"−"},e.defaultParams={x_height:.442,quad:1,num1:.676,num2:.394,num3:.444,denom1:.686,denom2:.345,sup1:.413,sup2:.363,sup3:.289,sub1:.15,sub2:.247,sup_drop:.386,sub_drop:.05,delim1:2.39,delim2:1,axis_height:.25,rule_thickness:.06,big_op_spacing1:.111,big_op_spacing2:.167,big_op_spacing3:.2,big_op_spacing4:.6,big_op_spacing5:.1,surd_height:.075,scriptspace:.05,nulldelimiterspace:.12,delimiterfactor:901,delimitershortfall:.3,min_rule_thickness:1.25,separation_factor:1.75,extra_ic:.033},e.defaultDelimiters={},e.defaultChars={},e.defaultSizeVariants=[],e.defaultStretchVariants=[],e})();var fj=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),mj=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),yj=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),gj=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&mj(t,e,r);return yj(t,e),t}),Kh=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),dA=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),bj=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.CommonWrapper=void 0;var vj=$h,hA=ce,Sj=it,eu=gj(hr),fA=Yl,tu=cn,mA=mr,yA=2/18;function gA(e,t){return e?t<yA?0:yA:t}Wh.CommonWrapper=(function(e){fj(t,e);function t(r,n,o){o===void 0&&(o=null);var i=e.call(this,r,n)||this;return i.parent=null,i.removedStyles=null,i.styles=null,i.variant="",i.bboxComputed=!1,i.stretch=mA.NOSTRETCH,i.font=null,i.parent=o,i.font=r.jax.font,i.bbox=tu.BBox.zero(),i.getStyles(),i.getVariant(),i.getScale(),i.getSpace(),i.childNodes=n.childNodes.map(function(a){var s=i.wrap(a);return s.bbox.pwidth&&(n.notParent||n.isKind("math"))&&(i.bbox.pwidth=tu.BBox.fullWidth),s}),i}return Object.defineProperty(t.prototype,"jax",{get:function(){return this.factory.jax},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"adaptor",{get:function(){return this.factory.jax.adaptor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metrics",{get:function(){return this.factory.jax.math.metrics},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fixesPWidth",{get:function(){return!this.node.notParent&&!this.node.isToken},enumerable:!1,configurable:!0}),t.prototype.wrap=function(r,n){n===void 0&&(n=null);var o=this.factory.wrap(r,n||this);return n&&n.childNodes.push(o),this.jax.nodeMap.set(r,o),o},t.prototype.getBBox=function(r){if(r===void 0&&(r=!0),this.bboxComputed)return this.bbox;var n=r?this.bbox:tu.BBox.zero();return this.computeBBox(n),this.bboxComputed=r,n},t.prototype.getOuterBBox=function(r){var n,o;r===void 0&&(r=!0);var i=this.getBBox(r);if(!this.styles)return i;var a=new tu.BBox;Object.assign(a,i);try{for(var s=Kh(tu.BBox.StyleAdjust),c=s.next();!c.done;c=s.next()){var l=dA(c.value,2),u=l[0],p=l[1],d=this.styles.get(u);d&&(a[p]+=this.length2em(d,1,a.rscale))}}catch(h){n={error:h}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return a},t.prototype.computeBBox=function(r,n){var o,i;n===void 0&&(n=!1),r.empty();try{for(var a=Kh(this.childNodes),s=a.next();!s.done;s=a.next()){var c=s.value;r.append(c.getOuterBBox())}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}r.clean(),this.fixesPWidth&&this.setChildPWidths(n)&&this.computeBBox(r,!0)},t.prototype.setChildPWidths=function(r,n,o){var i,a;if(n===void 0&&(n=null),o===void 0&&(o=!0),r)return!1;o&&(this.bbox.pwidth="");var s=!1;try{for(var c=Kh(this.childNodes),l=c.next();!l.done;l=c.next()){var u=l.value,p=u.getOuterBBox();p.pwidth&&u.setChildPWidths(r,n===null?p.w:n,o)&&(s=!0)}}catch(d){i={error:d}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return s},t.prototype.invalidateBBox=function(){this.bboxComputed&&(this.bboxComputed=!1,this.parent&&this.parent.invalidateBBox())},t.prototype.copySkewIC=function(r){var n=this.childNodes[0];n?.bbox.sk&&(r.sk=n.bbox.sk),n?.bbox.dx&&(r.dx=n.bbox.dx);var o=this.childNodes[this.childNodes.length-1];o?.bbox.ic&&(r.ic=o.bbox.ic,r.w+=r.ic)},t.prototype.getStyles=function(){var r=this.node.attributes.getExplicit("style");if(r)for(var n=this.styles=new fA.Styles(r),o=0,i=t.removeStyles.length;o<i;o++){var a=t.removeStyles[o];n.get(a)&&(this.removedStyles||(this.removedStyles={}),this.removedStyles[a]=n.get(a),n.set(a,""))}},t.prototype.getVariant=function(){if(this.node.isToken){var r=this.node.attributes,n=r.get("mathvariant");if(!r.getExplicit("mathvariant")){var o=r.getList("fontfamily","fontweight","fontstyle");if(this.removedStyles){var i=this.removedStyles;i.fontFamily&&(o.family=i.fontFamily),i.fontWeight&&(o.weight=i.fontWeight),i.fontStyle&&(o.style=i.fontStyle)}o.fontfamily&&(o.family=o.fontfamily),o.fontweight&&(o.weight=o.fontweight),o.fontstyle&&(o.style=o.fontstyle),o.weight&&o.weight.match(/^\d+$/)&&(o.weight=parseInt(o.weight)>600?"bold":"normal"),o.family?n=this.explicitVariant(o.family,o.weight,o.style):(this.node.getProperty("variantForm")&&(n="-tex-variant"),n=(t.BOLDVARIANTS[o.weight]||{})[n]||n,n=(t.ITALICVARIANTS[o.style]||{})[n]||n)}this.variant=n}},t.prototype.explicitVariant=function(r,n,o){var i=this.styles;return i||(i=this.styles=new fA.Styles),i.set("fontFamily",r),n&&i.set("fontWeight",n),o&&i.set("fontStyle",o),"-explicitFont"},t.prototype.getScale=function(){var r=1,n=this.parent,o=n?n.bbox.scale:1,i=this.node.attributes,a=Math.min(i.get("scriptlevel"),2),s=i.get("fontsize"),c=this.node.isToken||this.node.isKind("mstyle")?i.get("mathsize"):i.getInherited("mathsize");if(a!==0){r=Math.pow(i.get("scriptsizemultiplier"),a);var l=this.length2em(i.get("scriptminsize"),.8,1);r<l&&(r=l)}this.removedStyles&&this.removedStyles.fontSize&&!s&&(s=this.removedStyles.fontSize),s&&!i.getExplicit("mathsize")&&(c=s),c!=="1"&&(r*=this.length2em(c,1,1)),this.bbox.scale=r,this.bbox.rscale=r/o},t.prototype.getSpace=function(){var r=this.isTopEmbellished(),n=this.node.hasSpacingAttributes();this.jax.options.mathmlSpacing||n?r&&this.getMathMLSpacing():this.getTeXSpacing(r,n)},t.prototype.getMathMLSpacing=function(){var r=this.node.coreMO(),n=r.coreParent(),o=n.parent;if(!(!o||!o.isKind("mrow")||o.childNodes.length===1)){var i=r.attributes,a=i.get("scriptlevel")>0;this.bbox.L=i.isSet("lspace")?Math.max(0,this.length2em(i.get("lspace"))):gA(a,r.lspace),this.bbox.R=i.isSet("rspace")?Math.max(0,this.length2em(i.get("rspace"))):gA(a,r.rspace);var s=o.childIndex(n);if(s!==0){var c=o.childNodes[s-1];if(c.isEmbellished){var l=this.jax.nodeMap.get(c).getBBox();l.R&&(this.bbox.L=Math.max(0,this.bbox.L-l.R))}}}},t.prototype.getTeXSpacing=function(r,n){if(!n){var o=this.node.texSpacing();o&&(this.bbox.L=this.length2em(o))}if(r||n){var i=this.node.coreMO().attributes;i.isSet("lspace")&&(this.bbox.L=Math.max(0,this.length2em(i.get("lspace")))),i.isSet("rspace")&&(this.bbox.R=Math.max(0,this.length2em(i.get("rspace"))))}},t.prototype.isTopEmbellished=function(){return this.node.isEmbellished&&!(this.node.parent&&this.node.parent.isEmbellished)},t.prototype.core=function(){return this.jax.nodeMap.get(this.node.core())},t.prototype.coreMO=function(){return this.jax.nodeMap.get(this.node.coreMO())},t.prototype.getText=function(){var r,n,o="";if(this.node.isToken)try{for(var i=Kh(this.node.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;s instanceof hA.TextNode&&(o+=s.getText())}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},t.prototype.canStretch=function(r){if(this.stretch=mA.NOSTRETCH,this.node.isEmbellished){var n=this.core();n&&n.node!==this.node&&n.canStretch(r)&&(this.stretch=n.stretch)}return this.stretch.dir!==0},t.prototype.getAlignShift=function(){var r,n=(r=this.node.attributes).getList.apply(r,bj([],dA(hA.indentAttributes),!1)),o=n.indentalign,i=n.indentshift,a=n.indentalignfirst,s=n.indentshiftfirst;a!=="indentalign"&&(o=a),o==="auto"&&(o=this.jax.options.displayAlign),s!=="indentshift"&&(i=s),i==="auto"&&(i=this.jax.options.displayIndent,o==="right"&&!i.match(/^\s*0[a-z]*\s*$/)&&(i=("-"+i.trim()).replace(/^--/,"")));var c=this.length2em(i,this.metrics.containerWidth);return[o,c]},t.prototype.getAlignX=function(r,n,o){return o==="right"?r-(n.w+n.R)*n.rscale:o==="left"?n.L*n.rscale:(r-n.w*n.rscale)/2},t.prototype.getAlignY=function(r,n,o,i,a){return a==="top"?r-o:a==="bottom"?i-n:a==="center"?(r-o-(n-i))/2:0},t.prototype.getWrapWidth=function(r){return this.childNodes[r].getBBox().w},t.prototype.getChildAlign=function(r){return"left"},t.prototype.percent=function(r){return eu.percent(r)},t.prototype.em=function(r){return eu.em(r)},t.prototype.px=function(r,n){return n===void 0&&(n=-eu.BIGDIMEN),eu.px(r,n,this.metrics.em)},t.prototype.length2em=function(r,n,o){return n===void 0&&(n=1),o===void 0&&(o=null),o===null&&(o=this.bbox.scale),eu.length2em(r,n,o,this.jax.pxPerEm)},t.prototype.unicodeChars=function(r,n){n===void 0&&(n=this.variant);var o=(0,Sj.unicodeChars)(r),i=this.font.getVariant(n);if(i&&i.chars){var a=i.chars;o=o.map(function(s){return((a[s]||[])[3]||{}).smp||s})}return o},t.prototype.remapChars=function(r){return r},t.prototype.mmlText=function(r){return this.node.factory.create("text").setText(r)},t.prototype.mmlNode=function(r,n,o){return n===void 0&&(n={}),o===void 0&&(o=[]),this.node.factory.create(r,n,o)},t.prototype.createMo=function(r){var n=this.node.factory,o=n.create("text").setText(r),i=n.create("mo",{stretchy:!0},[o]);i.inheritAttributesFrom(this.node);var a=this.wrap(i);return a.parent=this,a},t.prototype.getVariantChar=function(r,n){var o=this.font.getChar(r,n)||[0,0,0,{unknown:!0}];return o.length===3&&(o[3]={}),o},t.kind="unknown",t.styles={},t.removeStyles=["fontSize","fontFamily","fontWeight","fontStyle","fontVariant","font"],t.skipAttributes={fontfamily:!0,fontsize:!0,fontweight:!0,fontstyle:!0,color:!0,background:!0,class:!0,href:!0,style:!0,xmlns:!0},t.BOLDVARIANTS={bold:{normal:"bold",italic:"bold-italic",fraktur:"bold-fraktur",script:"bold-script","sans-serif":"bold-sans-serif","sans-serif-italic":"sans-serif-bold-italic"},normal:{bold:"normal","bold-italic":"italic","bold-fraktur":"fraktur","bold-script":"script","bold-sans-serif":"sans-serif","sans-serif-bold-italic":"sans-serif-italic"}},t.ITALICVARIANTS={italic:{normal:"italic",bold:"bold-italic","sans-serif":"sans-serif-italic","bold-sans-serif":"sans-serif-bold-italic"},normal:{italic:"normal","bold-italic":"bold","sans-serif-italic":"sans-serif","sans-serif-bold-italic":"bold-sans-serif"}},t})(vj.AbstractWrapper),(function(e){var t=y&&y.__extends||(function(){var p=function(d,h){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(f,m){f.__proto__=m})||(function(f,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(f[v]=m[v])}),p(d,h)};return function(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");p(d,h);function f(){this.constructor=d}d.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}})(),r=y&&y.__createBinding||(Object.create?function(p,d,h,f){f===void 0&&(f=h);var m=Object.getOwnPropertyDescriptor(d,h);(!m||("get"in m?!d.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(p,f,m)}:function(p,d,h,f){f===void 0&&(f=h),p[f]=d[h]}),n=y&&y.__setModuleDefault||(Object.create?function(p,d){Object.defineProperty(p,"default",{enumerable:!0,value:d})}:function(p,d){p.default=d}),o=y&&y.__importStar||(function(p){if(p&&p.__esModule)return p;var d={};if(p!=null)for(var h in p)h!=="default"&&Object.prototype.hasOwnProperty.call(p,h)&&r(d,p,h);return n(d,p),d}),i=y&&y.__values||(function(p){var d=typeof Symbol=="function"&&Symbol.iterator,h=d&&p[d],f=0;if(h)return h.call(p);if(p&&typeof p.length=="number")return{next:function(){return p&&f>=p.length&&(p=void 0),{value:p&&p[f++],done:!p}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")}),a=y&&y.__read||(function(p,d){var h=typeof Symbol=="function"&&p[Symbol.iterator];if(!h)return p;var f=h.call(p),m,v=[],g;try{for(;(d===void 0||d-- >0)&&!(m=f.next()).done;)v.push(m.value)}catch(b){g={error:b}}finally{try{m&&!m.done&&(h=f.return)&&h.call(f)}finally{if(g)throw g.error}}return v}),s;Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLWrapper=e.SPACE=e.FONTSIZE=void 0;var c=o(hr),l=Wh,u=cn;e.FONTSIZE={"70.7%":"s","70%":"s","50%":"ss","60%":"Tn","85%":"sm","120%":"lg","144%":"Lg","173%":"LG","207%":"hg","249%":"HG"},e.SPACE=(s={},s[c.em(2/18)]="1",s[c.em(3/18)]="2",s[c.em(4/18)]="3",s[c.em(5/18)]="4",s[c.em(6/18)]="5",s),e.CHTMLWrapper=(function(p){t(d,p);function d(){var h=p!==null&&p.apply(this,arguments)||this;return h.chtml=null,h}return d.prototype.toCHTML=function(h){var f,m,v=this.standardCHTMLnode(h);try{for(var g=i(this.childNodes),b=g.next();!b.done;b=g.next())b.value.toCHTML(v)}catch(S){f={error:S}}finally{try{b&&!b.done&&(m=g.return)&&m.call(g)}finally{if(f)throw f.error}}},d.prototype.standardCHTMLnode=function(h){this.markUsed();var f=this.createCHTMLnode(h);return this.handleStyles(),this.handleVariant(),this.handleScale(),this.handleColor(),this.handleSpace(),this.handleAttributes(),this.handlePWidth(),f},d.prototype.markUsed=function(){this.jax.wrapperUsage.add(this.kind)},d.prototype.createCHTMLnode=function(h){var f=this.node.attributes.get("href");return f&&(h=this.adaptor.append(h,this.html("a",{href:f}))),this.chtml=this.adaptor.append(h,this.html("mjx-"+this.node.kind)),this.chtml},d.prototype.handleStyles=function(){if(this.styles){var h=this.styles.cssText;if(h){this.adaptor.setAttribute(this.chtml,"style",h);var f=this.styles.get("font-family");f&&this.adaptor.setStyle(this.chtml,"font-family","MJXZERO, "+f)}}},d.prototype.handleVariant=function(){this.node.isToken&&this.variant!=="-explicitFont"&&this.adaptor.setAttribute(this.chtml,"class",(this.font.getVariant(this.variant)||this.font.getVariant("normal")).classes)},d.prototype.handleScale=function(){this.setScale(this.chtml,this.bbox.rscale)},d.prototype.setScale=function(h,f){var m=Math.abs(f-1)<.001?1:f;if(h&&m!==1){var v=this.percent(m);e.FONTSIZE[v]?this.adaptor.setAttribute(h,"size",e.FONTSIZE[v]):this.adaptor.setStyle(h,"fontSize",v)}return h},d.prototype.handleSpace=function(){var h,f;try{for(var m=i([[this.bbox.L,"space","marginLeft"],[this.bbox.R,"rspace","marginRight"]]),v=m.next();!v.done;v=m.next()){var g=v.value,b=a(g,3),S=b[0],E=b[1],x=b[2];if(S){var O=this.em(S);e.SPACE[O]?this.adaptor.setAttribute(this.chtml,E,e.SPACE[O]):this.adaptor.setStyle(this.chtml,x,O)}}}catch(A){h={error:A}}finally{try{v&&!v.done&&(f=m.return)&&f.call(m)}finally{if(h)throw h.error}}},d.prototype.handleColor=function(){var h=this.node.attributes,f=h.getExplicit("mathcolor"),m=h.getExplicit("color"),v=h.getExplicit("mathbackground"),g=h.getExplicit("background");(f||m)&&this.adaptor.setStyle(this.chtml,"color",f||m),(v||g)&&this.adaptor.setStyle(this.chtml,"backgroundColor",v||g)},d.prototype.handleAttributes=function(){var h,f,m,v,g=this.node.attributes,b=g.getAllDefaults(),S=d.skipAttributes;try{for(var E=i(g.getExplicitNames()),x=E.next();!x.done;x=E.next()){var O=x.value;(S[O]===!1||!(O in b)&&!S[O]&&!this.adaptor.hasAttribute(this.chtml,O))&&this.adaptor.setAttribute(this.chtml,O,g.getExplicit(O))}}catch(k){h={error:k}}finally{try{x&&!x.done&&(f=E.return)&&f.call(E)}finally{if(h)throw h.error}}if(g.get("class")){var A=g.get("class").trim().split(/ +/);try{for(var M=i(A),C=M.next();!C.done;C=M.next()){var w=C.value;this.adaptor.addClass(this.chtml,w)}}catch(k){m={error:k}}finally{try{C&&!C.done&&(v=M.return)&&v.call(M)}finally{if(m)throw m.error}}}},d.prototype.handlePWidth=function(){this.bbox.pwidth&&(this.bbox.pwidth===u.BBox.fullWidth?this.adaptor.setAttribute(this.chtml,"width","full"):this.adaptor.setStyle(this.chtml,"width",this.bbox.pwidth))},d.prototype.setIndent=function(h,f,m){var v=this.adaptor;if(f==="center"||f==="left"){var g=this.getBBox().L;v.setStyle(h,"margin-left",this.em(m+g))}if(f==="center"||f==="right"){var b=this.getBBox().R;v.setStyle(h,"margin-right",this.em(-m+b))}},d.prototype.drawBBox=function(){var h=this.getBBox(),f=h.w,m=h.h,v=h.d,g=h.R,b=this.html("mjx-box",{style:{opacity:.25,"margin-left":this.em(-f-g)}},[this.html("mjx-box",{style:{height:this.em(m),width:this.em(f),"background-color":"red"}}),this.html("mjx-box",{style:{height:this.em(v),width:this.em(f),"margin-left":this.em(-f),"vertical-align":this.em(-v),"background-color":"green"}})]),S=this.chtml||this.parent.chtml,E=this.adaptor.getAttribute(S,"size");E&&this.adaptor.setAttribute(b,"size",E);var x=this.adaptor.getStyle(S,"fontSize");x&&this.adaptor.setStyle(b,"fontSize",x),this.adaptor.append(this.adaptor.parent(S),b),this.adaptor.setStyle(S,"backgroundColor","#FFEE00")},d.prototype.html=function(h,f,m){return f===void 0&&(f={}),m===void 0&&(m=[]),this.jax.html(h,f,m)},d.prototype.text=function(h){return this.jax.text(h)},d.prototype.char=function(h){return this.font.charSelector(h).substr(1)},d.kind="unknown",d.autoStyle=!0,d})(l.CommonWrapper)})(ot),ee(ot);var Jh={},Yh={},Ej=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.CommonMathMixin=void 0;function xj(e){return(function(t){Ej(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getWrapWidth=function(n){return this.parent?this.getBBox().w:this.metrics.containerWidth/this.jax.pxPerEm},r})(e)}Yh.CommonMathMixin=xj;var Mj=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Oj=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.CHTMLmath=void 0;var Aj=ot,Tj=Yh,Cj=vc,Nj=cn;Jh.CHTMLmath=(function(e){Mj(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){e.prototype.toCHTML.call(this,r);var n=this.chtml,o=this.adaptor;this.node.attributes.get("display")==="block"?(o.setAttribute(n,"display","true"),o.setAttribute(r,"display","true"),this.handleDisplay(r)):this.handleInline(r),o.addClass(n,"MJX-TEX")},t.prototype.handleDisplay=function(r){var n=this.adaptor,o=Oj(this.getAlignShift(),2),i=o[0],a=o[1];if(i!=="center"&&n.setAttribute(r,"justify",i),this.bbox.pwidth===Nj.BBox.fullWidth){if(n.setAttribute(r,"width","full"),this.jax.table){var s=this.jax.table.getOuterBBox(),c=s.L,l=s.w,u=s.R;i==="right"?u=Math.max(u||-a,-a):i==="left"?c=Math.max(c||a,a):i==="center"&&(l+=2*Math.abs(a));var p=this.em(Math.max(0,c+l+u));n.setStyle(r,"min-width",p),n.setStyle(this.jax.table.chtml,"min-width",p)}}else this.setIndent(this.chtml,i,a)},t.prototype.handleInline=function(r){var n=this.adaptor,o=n.getStyle(this.chtml,"margin-right");o&&(n.setStyle(this.chtml,"margin-right",""),n.setStyle(r,"margin-right",o),n.setStyle(r,"width","0"))},t.prototype.setChildPWidths=function(r,n,o){return n===void 0&&(n=null),o===void 0&&(o=!0),this.parent?e.prototype.setChildPWidths.call(this,r,n,o):!1},t.kind=Cj.MmlMath.prototype.kind,t.styles={"mjx-math":{"line-height":0,"text-align":"left","text-indent":0,"font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","letter-spacing":"normal","border-collapse":"collapse","word-wrap":"normal","word-spacing":"normal","white-space":"nowrap",direction:"ltr",padding:"1px 0"},'mjx-container[jax="CHTML"][display="true"]':{display:"block","text-align":"center",margin:"1em 0"},'mjx-container[jax="CHTML"][display="true"][width="full"]':{display:"flex"},'mjx-container[jax="CHTML"][display="true"] mjx-math':{padding:0},'mjx-container[jax="CHTML"][justify="left"]':{"text-align":"left"},'mjx-container[jax="CHTML"][justify="right"]':{"text-align":"right"}},t})((0,Tj.CommonMathMixin)(Aj.CHTMLWrapper));var Qh={},Zh={},_j=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.CommonMiMixin=void 0;function wj(e){return(function(t){_j(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.computeBBox=function(n,o){t.prototype.computeBBox.call(this,n),this.copySkewIC(n)},r})(e)}Zh.CommonMiMixin=wj;var Rj=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.CHTMLmi=void 0;var Lj=ot,Ij=Zh,Pj=ia;Qh.CHTMLmi=(function(e){Rj(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind=Pj.MmlMi.prototype.kind,t})((0,Ij.CommonMiMixin)(Lj.CHTMLWrapper));var ef={},js={},kj=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),tf=y&&y.__assign||(function(){return tf=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),tf.apply(this,arguments)}),Ko=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),Bj=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),Dj=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),rf;Object.defineProperty(js,"__esModule",{value:!0}),js.CommonMoMixin=js.DirectionVH=void 0;var bA=cn,jj=it,Fj=mr;js.DirectionVH=(rf={},rf[1]="v",rf[2]="h",rf);function Uj(e){return(function(t){kj(r,t);function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,Bj([],Ko(n),!1))||this;return i.size=null,i.isAccent=i.node.isAccent,i}return r.prototype.computeBBox=function(n,o){if(this.protoBBox(n),this.node.attributes.get("symmetric")&&this.stretch.dir!==2){var i=this.getCenterOffset(n);n.h+=i,n.d-=i}this.node.getProperty("mathaccent")&&(this.stretch.dir===0||this.size>=0)&&(n.w=0)},r.prototype.protoBBox=function(n){var o=this.stretch.dir!==0;o&&this.size===null&&this.getStretchedVariant([0]),!(o&&this.size<0)&&(t.prototype.computeBBox.call(this,n),this.copySkewIC(n))},r.prototype.getAccentOffset=function(){var n=bA.BBox.empty();return this.protoBBox(n),-n.w/2},r.prototype.getCenterOffset=function(n){return n===void 0&&(n=null),n||(n=bA.BBox.empty(),t.prototype.computeBBox.call(this,n)),(n.h+n.d)/2+this.font.params.axis_height-n.h},r.prototype.getVariant=function(){if(this.node.attributes.get("largeop")){this.variant=this.node.attributes.get("displaystyle")?"-largeop":"-smallop";return}if(!this.node.attributes.getExplicit("mathvariant")&&this.node.getProperty("pseudoscript")===!1){this.variant="-tex-variant";return}t.prototype.getVariant.call(this)},r.prototype.canStretch=function(n){if(this.stretch.dir!==0)return this.stretch.dir===n;if(!this.node.attributes.get("stretchy"))return!1;var o=this.getText();if(Array.from(o).length!==1)return!1;var i=this.font.getDelimiter(o.codePointAt(0));return this.stretch=i&&i.dir===n?i:Fj.NOSTRETCH,this.stretch.dir!==0},r.prototype.getStretchedVariant=function(n,o){var i,a;if(o===void 0&&(o=!1),this.stretch.dir!==0){var s=this.getWH(n),c=this.getSize("minsize",0),l=this.getSize("maxsize",1/0),u=this.node.getProperty("mathaccent");s=Math.max(c,Math.min(l,s));var p=this.font.params.delimiterfactor/1e3,d=this.font.params.delimitershortfall,h=c||o?s:u?Math.min(s/p,s+d):Math.max(s*p,s-d),f=this.stretch,m=f.c||this.getText().codePointAt(0),v=0;if(f.sizes)try{for(var g=Dj(f.sizes),b=g.next();!b.done;b=g.next()){if(b.value>=h){u&&v&&v--,this.variant=this.font.getSizeVariant(m,v),this.size=v,f.schar&&f.schar[v]&&(this.stretch=tf(tf({},this.stretch),{c:f.schar[v]}));return}v++}}catch(S){i={error:S}}finally{try{b&&!b.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}f.stretch?(this.size=-1,this.invalidateBBox(),this.getStretchBBox(n,this.checkExtendedHeight(s,f),f)):(this.variant=this.font.getSizeVariant(m,v-1),this.size=v-1)}},r.prototype.getSize=function(n,o){var i=this.node.attributes;return i.isSet(n)&&(o=this.length2em(i.get(n),1,1)),o},r.prototype.getWH=function(n){if(n.length===0)return 0;if(n.length===1)return n[0];var o=Ko(n,2),i=o[0],a=o[1],s=this.font.params.axis_height;return this.node.attributes.get("symmetric")?2*Math.max(i-s,a+s):i+a},r.prototype.getStretchBBox=function(n,o,i){var a;i.hasOwnProperty("min")&&i.min>o&&(o=i.min);var s=Ko(i.HDW,3),c=s[0],l=s[1],u=s[2];this.stretch.dir===1?(a=Ko(this.getBaseline(n,o,i),2),c=a[0],l=a[1]):u=o,this.bbox.h=c,this.bbox.d=l,this.bbox.w=u},r.prototype.getBaseline=function(n,o,i){var a=n.length===2&&n[0]+n[1]===o,s=this.node.attributes.get("symmetric"),c=Ko(a?n:[o,0],2),l=c[0],u=c[1],p=Ko([l+u,0],2),d=p[0],h=p[1];if(s){var f=this.font.params.axis_height;a&&(d=2*Math.max(l-f,u+f)),h=d/2-f}else if(a)h=u;else{var m=Ko(i.HDW||[.75,.25],2),v=m[0],g=m[1];h=g*(d/(v+g))}return[d-h,h]},r.prototype.checkExtendedHeight=function(n,o){if(o.fullExt){var i=Ko(o.fullExt,2),a=i[0],s=i[1];n=s+Math.ceil(Math.max(0,n-s)/a)*a}return n},r.prototype.remapChars=function(n){var o=this.node.getProperty("primes");if(o)return(0,jj.unicodeChars)(o);if(n.length===1){var i=this.node.coreParent().parent,a=this.isAccent&&!i.isKind("mrow")?"accent":"mo",s=this.font.getRemappedChar(a,n[0]);s&&(n=this.unicodeChars(s,this.variant))}return n},r})(e)}js.CommonMoMixin=Uj;var Hj=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qj=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(ef,"__esModule",{value:!0}),ef.CHTMLmo=void 0;var Gj=ot,vA=js,Xj=ri;ef.CHTMLmo=(function(e){Hj(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n,o,i=this.node.attributes,a=i.get("symmetric")&&this.stretch.dir!==2,s=this.stretch.dir!==0;s&&this.size===null&&this.getStretchedVariant([]);var c=this.standardCHTMLnode(r);if(s&&this.size<0)this.stretchHTML(c);else{if(a||i.get("largeop")){var l=this.em(this.getCenterOffset());l!=="0"&&this.adaptor.setStyle(c,"verticalAlign",l)}this.node.getProperty("mathaccent")&&(this.adaptor.setStyle(c,"width","0"),this.adaptor.setStyle(c,"margin-left",this.em(this.getAccentOffset())));try{for(var u=qj(this.childNodes),p=u.next();!p.done;p=u.next())p.value.toCHTML(c)}catch(d){n={error:d}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}}},t.prototype.stretchHTML=function(r){var n=this.getText().codePointAt(0);this.font.delimUsage.add(n),this.childNodes[0].markUsed();var o=this.stretch,i=o.stretch,a=[];i[0]&&a.push(this.html("mjx-beg",{},[this.html("mjx-c")])),a.push(this.html("mjx-ext",{},[this.html("mjx-c")])),i.length===4&&a.push(this.html("mjx-mid",{},[this.html("mjx-c")]),this.html("mjx-ext",{},[this.html("mjx-c")])),i[2]&&a.push(this.html("mjx-end",{},[this.html("mjx-c")]));var s={},c=this.bbox,l=c.h,u=c.d,p=c.w;o.dir===1?(a.push(this.html("mjx-mark")),s.height=this.em(l+u),s.verticalAlign=this.em(-u)):s.width=this.em(p);var d=vA.DirectionVH[o.dir],h={class:this.char(o.c||n),style:s},f=this.html("mjx-stretchy-"+d,h,a);this.adaptor.append(r,f)},t.kind=Xj.MmlMo.prototype.kind,t.styles={"mjx-stretchy-h":{display:"inline-table",width:"100%"},"mjx-stretchy-h > *":{display:"table-cell",width:0},"mjx-stretchy-h > * > mjx-c":{display:"inline-block",transform:"scalex(1.0000001)"},"mjx-stretchy-h > * > mjx-c::before":{display:"inline-block",width:"initial"},"mjx-stretchy-h > mjx-ext":{"/* IE */ overflow":"hidden","/* others */ overflow":"clip visible",width:"100%"},"mjx-stretchy-h > mjx-ext > mjx-c::before":{transform:"scalex(500)"},"mjx-stretchy-h > mjx-ext > mjx-c":{width:0},"mjx-stretchy-h > mjx-beg > mjx-c":{"margin-right":"-.1em"},"mjx-stretchy-h > mjx-end > mjx-c":{"margin-left":"-.1em"},"mjx-stretchy-v":{display:"inline-block"},"mjx-stretchy-v > *":{display:"block"},"mjx-stretchy-v > mjx-beg":{height:0},"mjx-stretchy-v > mjx-end > mjx-c":{display:"block"},"mjx-stretchy-v > * > mjx-c":{transform:"scaley(1.0000001)","transform-origin":"left center",overflow:"hidden"},"mjx-stretchy-v > mjx-ext":{display:"block",height:"100%","box-sizing":"border-box",border:"0px solid transparent","/* IE */ overflow":"hidden","/* others */ overflow":"visible clip"},"mjx-stretchy-v > mjx-ext > mjx-c::before":{width:"initial","box-sizing":"border-box"},"mjx-stretchy-v > mjx-ext > mjx-c":{transform:"scaleY(500) translateY(.075em)",overflow:"visible"},"mjx-mark":{display:"inline-block",height:"0px"}},t})((0,vA.CommonMoMixin)(Gj.CHTMLWrapper));var nf={},of={},Vj=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(of,"__esModule",{value:!0}),of.CommonMnMixin=void 0;function Wj(e){return(function(t){Vj(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.remapChars=function(n){if(n.length){var o=this.font.getRemappedChar("mn",n[0]);if(o){var i=this.unicodeChars(o,this.variant);i.length===1?n[0]=i[0]:n=i.concat(n.slice(1))}}return n},r})(e)}of.CommonMnMixin=Wj;var $j=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(nf,"__esModule",{value:!0}),nf.CHTMLmn=void 0;var zj=ot,Kj=of,Jj=Sc;nf.CHTMLmn=(function(e){$j(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind=Jj.MmlMn.prototype.kind,t})((0,Kj.CommonMnMixin)(zj.CHTMLWrapper));var af={},sf={},Yj=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Qj=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),Zj=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(sf,"__esModule",{value:!0}),sf.CommonMsMixin=void 0;function eF(e){return(function(t){Yj(r,t);function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,Zj([],Qj(n),!1))||this,a=i.node.attributes,s=a.getList("lquote","rquote");return i.variant!=="monospace"&&(!a.isSet("lquote")&&s.lquote==='"'&&(s.lquote="“"),!a.isSet("rquote")&&s.rquote==='"'&&(s.rquote="”")),i.childNodes.unshift(i.createText(s.lquote)),i.childNodes.push(i.createText(s.rquote)),i}return r.prototype.createText=function(n){var o=this.wrap(this.mmlText(n));return o.parent=this,o},r})(e)}sf.CommonMsMixin=eF;var tF=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(af,"__esModule",{value:!0}),af.CHTMLms=void 0;var rF=ot,nF=sf,oF=Mc;af.CHTMLms=(function(e){tF(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind=oF.MmlMs.prototype.kind,t})((0,nF.CommonMsMixin)(rF.CHTMLWrapper));var cf={},lf={},iF=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(lf,"__esModule",{value:!0}),lf.CommonMtextMixin=void 0;function aF(e){var t=(function(r){iF(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}return n.prototype.getVariant=function(){var o=this.jax.options,i=this.jax.math.outputData,a=(!!i.merrorFamily||!!o.merrorFont)&&this.node.Parent.isKind("merror");if(i.mtextFamily||o.mtextFont||a){var s=this.node.attributes.get("mathvariant"),c=this.constructor.INHERITFONTS[s]||this.jax.font.getCssFont(s),l=c[0]||(a?i.merrorFamily||o.merrorFont:i.mtextFamily||o.mtextFont);this.variant=this.explicitVariant(l,c[2]?"bold":"",c[1]?"italic":"");return}r.prototype.getVariant.call(this)},n})(e);return t.INHERITFONTS={normal:["",!1,!1],bold:["",!1,!0],italic:["",!0,!1],"bold-italic":["",!0,!0]},t}lf.CommonMtextMixin=aF;var sF=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(cf,"__esModule",{value:!0}),cf.CHTMLmtext=void 0;var cF=ot,lF=lf,uF=Ec;cf.CHTMLmtext=(function(e){sF(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind=uF.MmlMtext.prototype.kind,t})((0,lF.CommonMtextMixin)(cF.CHTMLWrapper));var uf={},pf={},pF=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(pf,"__esModule",{value:!0}),pf.CommonMspaceMixin=void 0;function dF(e){return(function(t){pF(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.computeBBox=function(n,o){var i=this.node.attributes;n.w=this.length2em(i.get("width"),0),n.h=this.length2em(i.get("height"),0),n.d=this.length2em(i.get("depth"),0)},r.prototype.handleVariant=function(){},r})(e)}pf.CommonMspaceMixin=dF;var hF=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(uf,"__esModule",{value:!0});var SA=uf.CHTMLmspace=void 0,fF=ot,mF=pf,yF=xc;SA=uf.CHTMLmspace=(function(e){hF(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n=this.standardCHTMLnode(r),o=this.getBBox(),i=o.w,a=o.h,s=o.d;i<0&&(this.adaptor.setStyle(n,"marginRight",this.em(i)),i=0),i&&this.adaptor.setStyle(n,"width",this.em(i)),a=Math.max(0,a+s),a&&this.adaptor.setStyle(n,"height",this.em(Math.max(0,a))),s&&this.adaptor.setStyle(n,"verticalAlign",this.em(-s))},t.kind=yF.MmlMspace.prototype.kind,t})((0,mF.CommonMspaceMixin)(fF.CHTMLWrapper));var df={},hf={},gF=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),bF=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(hf,"__esModule",{value:!0}),hf.CommonMpaddedMixin=void 0;function vF(e){return(function(t){gF(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getDimens=function(){var n=this.node.attributes.getList("width","height","depth","lspace","voffset"),o=this.childNodes[0].getBBox(),i=o.w,a=o.h,s=o.d,c=i,l=a,u=s,p=0,d=0,h=0;n.width!==""&&(i=this.dimen(n.width,o,"w",0)),n.height!==""&&(a=this.dimen(n.height,o,"h",0)),n.depth!==""&&(s=this.dimen(n.depth,o,"d",0)),n.voffset!==""&&(d=this.dimen(n.voffset,o)),n.lspace!==""&&(p=this.dimen(n.lspace,o));var f=this.node.attributes.get("data-align");return f&&(h=this.getAlignX(i,o,f)),[l,u,c,a-l,s-u,i-c,p,d,h]},r.prototype.dimen=function(n,o,i,a){i===void 0&&(i=""),a===void 0&&(a=null),n=String(n);var s=n.match(/width|height|depth/),c=s?o[s[0].charAt(0)]:i?o[i]:0,l=this.length2em(n,c)||0;return n.match(/^[-+]/)&&i&&(l+=c),a!=null&&(l=Math.max(a,l)),l},r.prototype.computeBBox=function(n,o){o===void 0&&(o=!1);var i=bF(this.getDimens(),6),a=i[0],s=i[1],c=i[2],l=i[3],u=i[4];n.w=c+i[5],n.h=a+l,n.d=s+u,this.setChildPWidths(o,n.w)},r.prototype.getWrapWidth=function(n){return this.getBBox().w},r.prototype.getChildAlign=function(n){return this.node.attributes.get("data-align")||"left"},r})(e)}hf.CommonMpaddedMixin=vF;var SF=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),EF=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),xF=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(df,"__esModule",{value:!0}),df.CHTMLmpadded=void 0;var MF=ot,OF=hf,AF=Nc;df.CHTMLmpadded=(function(e){SF(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n,o,i=this.standardCHTMLnode(r),a=[],s={},c=EF(this.getDimens(),9),l=c[2],u=c[3],p=c[4],d=c[5],h=c[6],f=c[7],m=c[8];if(d&&(s.width=this.em(l+d)),(u||p)&&(s.margin=this.em(u)+" 0 "+this.em(p)),h+m||f){s.position="relative";var v=this.html("mjx-rbox",{style:{left:this.em(h+m),top:this.em(-f),"max-width":s.width}});h+m&&this.childNodes[0].getBBox().pwidth&&(this.adaptor.setAttribute(v,"width","full"),this.adaptor.setStyle(v,"left",this.em(h))),a.push(v)}i=this.adaptor.append(i,this.html("mjx-block",{style:s},a));try{for(var g=xF(this.childNodes),b=g.next();!b.done;b=g.next())b.value.toCHTML(a[0]||i)}catch(S){n={error:S}}finally{try{b&&!b.done&&(o=g.return)&&o.call(g)}finally{if(n)throw n.error}}},t.kind=AF.MmlMpadded.prototype.kind,t.styles={"mjx-mpadded":{display:"inline-block"},"mjx-rbox":{display:"inline-block",position:"relative"}},t})((0,OF.CommonMpaddedMixin)(MF.CHTMLWrapper));var ff={},mf={},ru={};(function(e){var t=y&&y.__read||(function(u,p){var d=typeof Symbol=="function"&&u[Symbol.iterator];if(!d)return u;var h=d.call(u),f,m=[],v;try{for(;(p===void 0||p-- >0)&&!(f=h.next()).done;)m.push(f.value)}catch(g){v={error:g}}finally{try{f&&!f.done&&(d=h.return)&&d.call(h)}finally{if(v)throw v.error}}return m});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonArrow=e.CommonDiagonalArrow=e.CommonDiagonalStrike=e.CommonBorder2=e.CommonBorder=e.arrowBBox=e.diagonalArrowDef=e.arrowDef=e.arrowBBoxW=e.arrowBBoxHD=e.arrowHead=e.fullBorder=e.fullPadding=e.fullBBox=e.sideNames=e.sideIndex=e.SOLID=e.PADDING=e.THICKNESS=e.ARROWY=e.ARROWDX=e.ARROWX=void 0,e.ARROWX=4,e.ARROWDX=1,e.ARROWY=2,e.THICKNESS=.067,e.PADDING=.2,e.SOLID=e.THICKNESS+"em solid",e.sideIndex={top:0,right:1,bottom:2,left:3},e.sideNames=Object.keys(e.sideIndex),e.fullBBox=function(u){return new Array(4).fill(u.thickness+u.padding)},e.fullPadding=function(u){return new Array(4).fill(u.padding)},e.fullBorder=function(u){return new Array(4).fill(u.thickness)};var r=function(u){return Math.max(u.padding,u.thickness*(u.arrowhead.x+u.arrowhead.dx+1))};e.arrowHead=r;var n=function(u,p){if(u.childNodes[0]){var d=u.childNodes[0].getBBox(),h=d.h,f=d.d;p[0]=p[2]=Math.max(0,u.thickness*u.arrowhead.y-(h+f)/2)}return p};e.arrowBBoxHD=n;var o=function(u,p){if(u.childNodes[0]){var d=u.childNodes[0].getBBox().w;p[1]=p[3]=Math.max(0,u.thickness*u.arrowhead.y-d/2)}return p};e.arrowBBoxW=o,e.arrowDef={up:[-Math.PI/2,!1,!0,"verticalstrike"],down:[Math.PI/2,!1,!0,"verticakstrike"],right:[0,!1,!1,"horizontalstrike"],left:[Math.PI,!1,!1,"horizontalstrike"],updown:[Math.PI/2,!0,!0,"verticalstrike uparrow downarrow"],leftright:[0,!0,!1,"horizontalstrike leftarrow rightarrow"]},e.diagonalArrowDef={updiagonal:[-1,0,!1,"updiagonalstrike northeastarrow"],northeast:[-1,0,!1,"updiagonalstrike updiagonalarrow"],southeast:[1,0,!1,"downdiagonalstrike"],northwest:[1,Math.PI,!1,"downdiagonalstrike"],southwest:[-1,Math.PI,!1,"updiagonalstrike"],northeastsouthwest:[-1,0,!0,"updiagonalstrike northeastarrow updiagonalarrow southwestarrow"],northwestsoutheast:[1,0,!0,"downdiagonalstrike northwestarrow southeastarrow"]},e.arrowBBox={up:function(u){return(0,e.arrowBBoxW)(u,[(0,e.arrowHead)(u),0,u.padding,0])},down:function(u){return(0,e.arrowBBoxW)(u,[u.padding,0,(0,e.arrowHead)(u),0])},right:function(u){return(0,e.arrowBBoxHD)(u,[0,(0,e.arrowHead)(u),0,u.padding])},left:function(u){return(0,e.arrowBBoxHD)(u,[0,u.padding,0,(0,e.arrowHead)(u)])},updown:function(u){return(0,e.arrowBBoxW)(u,[(0,e.arrowHead)(u),0,(0,e.arrowHead)(u),0])},leftright:function(u){return(0,e.arrowBBoxHD)(u,[0,(0,e.arrowHead)(u),0,(0,e.arrowHead)(u)])}};var i=function(u){return function(p){var d=e.sideIndex[p];return[p,{renderer:u,bbox:function(h){var f=[0,0,0,0];return f[d]=h.thickness+h.padding,f},border:function(h){var f=[0,0,0,0];return f[d]=h.thickness,f}}]}};e.CommonBorder=i;var a=function(u){return function(p,d,h){var f=e.sideIndex[d],m=e.sideIndex[h];return[p,{renderer:u,bbox:function(v){var g=v.thickness+v.padding,b=[0,0,0,0];return b[f]=b[m]=g,b},border:function(v){var g=[0,0,0,0];return g[f]=g[m]=v.thickness,g},remove:d+" "+h}]}};e.CommonBorder2=a;var s=function(u){return function(p){var d="mjx-"+p.charAt(0)+"strike";return[p+"diagonalstrike",{renderer:u(d),bbox:e.fullBBox}]}};e.CommonDiagonalStrike=s;var c=function(u){return function(p){var d=t(e.diagonalArrowDef[p],4),h=d[0],f=d[1],m=d[2],v=d[3];return[p+"arrow",{renderer:function(g,b){var S=t(g.arrowAW(),2),E=S[0],x=S[1];u(g,g.arrow(x,h*(E-f),m))},bbox:function(g){var b=g.arrowData(),S=b.a,E=b.x,x=b.y,O=t([g.arrowhead.x,g.arrowhead.y,g.arrowhead.dx],3),A=O[0],M=O[1],C=O[2],w=t(g.getArgMod(A+C,M),2),k=w[0],L=w[1],D=x+(k>S?g.thickness*L*Math.sin(k-S):0),P=E+(k>Math.PI/2-S?g.thickness*L*Math.sin(k+S-Math.PI/2):0);return[D,P,D,P]},remove:v}]}};e.CommonDiagonalArrow=c;var l=function(u){return function(p){var d=t(e.arrowDef[p],4),h=d[0],f=d[1],m=d[2],v=d[3];return[p+"arrow",{renderer:function(g,b){var S=g.getBBox(),E=S.w,x=S.h,O=S.d,A=t(m?[x+O,"X"]:[E,"Y"],2),M=A[0],C=A[1],w=g.getOffset(C);u(g,g.arrow(M,h,f,C,w))},bbox:e.arrowBBox[p],remove:v}]}};e.CommonArrow=l})(ru),ee(ru);var TF=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),CF=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),NF=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),_F=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&CF(t,e,r);return NF(t,e),t}),Fi=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),wF=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),Fs=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(mf,"__esModule",{value:!0}),mf.CommonMencloseMixin=void 0;var An=_F(ru),EA=it;function RF(e){return(function(t){TF(r,t);function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,wF([],Fi(n),!1))||this;return i.notations={},i.renderChild=null,i.msqrt=null,i.padding=An.PADDING,i.thickness=An.THICKNESS,i.arrowhead={x:An.ARROWX,y:An.ARROWY,dx:An.ARROWDX},i.TRBL=[0,0,0,0],i.getParameters(),i.getNotations(),i.removeRedundantNotations(),i.initializeNotations(),i.TRBL=i.getBBoxExtenders(),i}return r.prototype.getParameters=function(){var n=this.node.attributes,o=n.get("data-padding");o!==void 0&&(this.padding=this.length2em(o,An.PADDING));var i=n.get("data-thickness");i!==void 0&&(this.thickness=this.length2em(i,An.THICKNESS));var a=n.get("data-arrowhead");if(a!==void 0){var s=Fi((0,EA.split)(a),3),c=s[0],l=s[1],u=s[2];this.arrowhead={x:c?parseFloat(c):An.ARROWX,y:l?parseFloat(l):An.ARROWY,dx:u?parseFloat(u):An.ARROWDX}}},r.prototype.getNotations=function(){var n,o,i=this.constructor.notations;try{for(var a=Fs((0,EA.split)(this.node.attributes.get("notation"))),s=a.next();!s.done;s=a.next()){var c=s.value,l=i.get(c);l&&(this.notations[c]=l,l.renderChild&&(this.renderChild=l.renderer))}}catch(u){n={error:u}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},r.prototype.removeRedundantNotations=function(){var n,o,i,a;try{for(var s=Fs(Object.keys(this.notations)),c=s.next();!c.done;c=s.next()){var l=c.value;if(this.notations[l]){var u=this.notations[l].remove||"";try{for(var p=(i=void 0,Fs(u.split(/ /))),d=p.next();!d.done;d=p.next()){var h=d.value;delete this.notations[h]}}catch(f){i={error:f}}finally{try{d&&!d.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}}}}catch(f){n={error:f}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}},r.prototype.initializeNotations=function(){var n,o;try{for(var i=Fs(Object.keys(this.notations)),a=i.next();!a.done;a=i.next()){var s=a.value,c=this.notations[s].init;c&&c(this)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},r.prototype.computeBBox=function(n,o){o===void 0&&(o=!1);var i=Fi(this.TRBL,4),a=i[0],s=i[1],c=i[2],l=i[3],u=this.childNodes[0].getBBox();n.combine(u,l,0),n.h+=a,n.d+=c,n.w+=s,this.setChildPWidths(o)},r.prototype.getBBoxExtenders=function(){var n,o,i=[0,0,0,0];try{for(var a=Fs(Object.keys(this.notations)),s=a.next();!s.done;s=a.next()){var c=s.value;this.maximizeEntries(i,this.notations[c].bbox(this))}}catch(l){n={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},r.prototype.getPadding=function(){var n,o,i=this,a=[0,0,0,0];try{for(var s=Fs(Object.keys(this.notations)),c=s.next();!c.done;c=s.next()){var l=c.value,u=this.notations[l].border;u&&this.maximizeEntries(a,u(this))}}catch(p){n={error:p}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return[0,1,2,3].map(function(p){return i.TRBL[p]-a[p]})},r.prototype.maximizeEntries=function(n,o){for(var i=0;i<n.length;i++)n[i]<o[i]&&(n[i]=o[i])},r.prototype.getOffset=function(n){var o=Fi(this.TRBL,4),i=o[0],a=o[1],s=o[2],c=o[3],l=(n==="X"?a-c:s-i)/2;return Math.abs(l)>.001?l:0},r.prototype.getArgMod=function(n,o){return[Math.atan2(o,n),Math.sqrt(n*n+o*o)]},r.prototype.arrow=function(n,o,i,a,s){return null},r.prototype.arrowData=function(){var n=Fi([this.padding,this.thickness],2),o=n[0],i=n[1]*(this.arrowhead.x+Math.max(1,this.arrowhead.dx)),a=this.childNodes[0].getBBox(),s=a.h,c=a.d,l=a.w,u=s+c,p=Math.sqrt(u*u+l*l),d=Math.max(o,i*l/p),h=Math.max(o,i*u/p),f=Fi(this.getArgMod(l+2*d,u+2*h),2);return{a:f[0],W:f[1],x:d,y:h}},r.prototype.arrowAW=function(){var n=this.childNodes[0].getBBox(),o=n.h,i=n.d,a=n.w,s=Fi(this.TRBL,4),c=s[0],l=s[1],u=s[2],p=s[3];return this.getArgMod(p+a+l,c+o+i+u)},r.prototype.createMsqrt=function(n){var o=this.node.factory.create("msqrt");o.inheritAttributesFrom(this.node),o.childNodes[0]=n.node;var i=this.wrap(o);return i.parent=this,i},r.prototype.sqrtTRBL=function(){var n=this.msqrt.getBBox(),o=this.msqrt.childNodes[0].getBBox();return[n.h-o.h,0,n.d-o.d,n.w-o.w]},r})(e)}mf.CommonMencloseMixin=RF;var Ab={};(function(e){var t=y&&y.__createBinding||(Object.create?function(h,f,m,v){v===void 0&&(v=m);var g=Object.getOwnPropertyDescriptor(f,m);(!g||("get"in g?!f.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return f[m]}}),Object.defineProperty(h,v,g)}:function(h,f,m,v){v===void 0&&(v=m),h[v]=f[m]}),r=y&&y.__setModuleDefault||(Object.create?function(h,f){Object.defineProperty(h,"default",{enumerable:!0,value:f})}:function(h,f){h.default=f}),n=y&&y.__importStar||(function(h){if(h&&h.__esModule)return h;var f={};if(h!=null)for(var m in h)m!=="default"&&Object.prototype.hasOwnProperty.call(h,m)&&t(f,h,m);return r(f,h),f}),o=y&&y.__exportStar||(function(h,f){for(var m in h)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&t(f,h,m)}),i=y&&y.__read||(function(h,f){var m=typeof Symbol=="function"&&h[Symbol.iterator];if(!m)return h;var v=m.call(h),g,b=[],S;try{for(;(f===void 0||f-- >0)&&!(g=v.next()).done;)b.push(g.value)}catch(E){S={error:E}}finally{try{g&&!g.done&&(m=v.return)&&m.call(v)}finally{if(S)throw S.error}}return b});Object.defineProperty(e,"__esModule",{value:!0}),e.Arrow=e.DiagonalArrow=e.DiagonalStrike=e.Border2=e.Border=e.RenderElement=void 0;var a=n(ru);o(ru,e);var s=function(h,f){return f===void 0&&(f=""),function(m,v){var g=m.adjustBorder(m.html("mjx-"+h));if(f){var b=m.getOffset(f);if(m.thickness!==a.THICKNESS||b){var S="translate".concat(f,"(").concat(m.em(m.thickness/2-b),")");m.adaptor.setStyle(g,"transform",S)}}m.adaptor.append(m.chtml,g)}};e.RenderElement=s;var c=function(h){return a.CommonBorder(function(f,m){f.adaptor.setStyle(m,"border-"+h,f.em(f.thickness)+" solid")})(h)};e.Border=c;var l=function(h,f,m){return a.CommonBorder2(function(v,g){var b=v.em(v.thickness)+" solid";v.adaptor.setStyle(g,"border-"+f,b),v.adaptor.setStyle(g,"border-"+m,b)})(h,f,m)};e.Border2=l;var u=function(h,f){return a.CommonDiagonalStrike(function(m){return function(v,g){var b=v.getBBox(),S=b.w,E=b.h,x=b.d,O=i(v.getArgMod(S,E+x),2),A=O[0],M=O[1],C=f*v.thickness/2,w=v.adjustBorder(v.html(m,{style:{width:v.em(M),transform:"rotate("+v.fixed(-f*A)+"rad) translateY("+C+"em)"}}));v.adaptor.append(v.chtml,w)}})(h)};e.DiagonalStrike=u;var p=function(h){return a.CommonDiagonalArrow(function(f,m){f.adaptor.append(f.chtml,m)})(h)};e.DiagonalArrow=p;var d=function(h){return a.CommonArrow(function(f,m){f.adaptor.append(f.chtml,m)})(h)};e.Arrow=d})(Ab),ee(Ab);var LF=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),IF=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),PF=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),kF=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&IF(t,e,r);return PF(t,e),t}),xA=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),Tb=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(ff,"__esModule",{value:!0}),ff.CHTMLmenclose=void 0;var BF=ot,DF=mf,oe=kF(Ab),jF=Rc,qt=hr;function MA(e,t){return Math.atan2(e,t).toFixed(3).replace(/\.?0+$/,"")}var yf=MA(oe.ARROWDX,oe.ARROWY);ff.CHTMLmenclose=(function(e){LF(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n,o,i,a,s=this.adaptor,c=this.standardCHTMLnode(r),l=s.append(c,this.html("mjx-box"));this.renderChild?this.renderChild(this,l):this.childNodes[0].toCHTML(l);try{for(var u=xA(Object.keys(this.notations)),p=u.next();!p.done;p=u.next()){var d=p.value,h=this.notations[d];!h.renderChild&&h.renderer(this,l)}}catch(S){n={error:S}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}var f=this.getPadding();try{for(var m=xA(oe.sideNames),v=m.next();!v.done;v=m.next()){var g=v.value,b=oe.sideIndex[g];f[b]>0&&s.setStyle(l,"padding-"+g,this.em(f[b]))}}catch(S){i={error:S}}finally{try{v&&!v.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}},t.prototype.arrow=function(r,n,o,i,a){i===void 0&&(i=""),a===void 0&&(a=0);var s=this.getBBox().w,c={width:this.em(r)};s!==r&&(c.left=this.em((s-r)/2)),n&&(c.transform="rotate("+this.fixed(n)+"rad)");var l=this.html("mjx-arrow",{style:c},[this.html("mjx-aline"),this.html("mjx-rthead"),this.html("mjx-rbhead")]);return o&&(this.adaptor.append(l,this.html("mjx-lthead")),this.adaptor.append(l,this.html("mjx-lbhead")),this.adaptor.setAttribute(l,"double","true")),this.adjustArrow(l,o),this.moveArrow(l,i,a),l},t.prototype.adjustArrow=function(r,n){var o=this,i=this.thickness,a=this.arrowhead;if(!(a.x===oe.ARROWX&&a.y===oe.ARROWY&&a.dx===oe.ARROWDX&&i===oe.THICKNESS)){var s=Tb([i*a.x,i*a.y].map(function(g){return o.em(g)}),2),c=s[0],l=s[1],u=MA(a.dx,a.y),p=Tb(this.adaptor.childNodes(r),5),d=p[0],h=p[1],f=p[2],m=p[3],v=p[4];this.adjustHead(h,[l,"0","1px",c],u),this.adjustHead(f,["1px","0",l,c],"-"+u),this.adjustHead(m,[l,c,"1px","0"],"-"+u),this.adjustHead(v,["1px",c,l,"0"],u),this.adjustLine(d,i,a.x,n)}},t.prototype.adjustHead=function(r,n,o){r&&(this.adaptor.setStyle(r,"border-width",n.join(" ")),this.adaptor.setStyle(r,"transform","skewX("+o+"rad)"))},t.prototype.adjustLine=function(r,n,o,i){this.adaptor.setStyle(r,"borderTop",this.em(n)+" solid"),this.adaptor.setStyle(r,"top",this.em(-n/2)),this.adaptor.setStyle(r,"right",this.em(n*(o-1))),i&&this.adaptor.setStyle(r,"left",this.em(n*(o-1)))},t.prototype.moveArrow=function(r,n,o){if(o){var i=this.adaptor.getStyle(r,"transform");this.adaptor.setStyle(r,"transform","translate".concat(n,"(").concat(this.em(-o),")").concat(i?" "+i:""))}},t.prototype.adjustBorder=function(r){return this.thickness!==oe.THICKNESS&&this.adaptor.setStyle(r,"borderWidth",this.em(this.thickness)),r},t.prototype.adjustThickness=function(r){return this.thickness!==oe.THICKNESS&&this.adaptor.setStyle(r,"strokeWidth",this.fixed(this.thickness)),r},t.prototype.fixed=function(r,n){return n===void 0&&(n=3),Math.abs(r)<6e-4?"0":r.toFixed(n).replace(/\.?0+$/,"")},t.prototype.em=function(r){return e.prototype.em.call(this,r)},t.kind=jF.MmlMenclose.prototype.kind,t.styles={"mjx-menclose":{position:"relative"},"mjx-menclose > mjx-dstrike":{display:"inline-block",left:0,top:0,position:"absolute","border-top":oe.SOLID,"transform-origin":"top left"},"mjx-menclose > mjx-ustrike":{display:"inline-block",left:0,bottom:0,position:"absolute","border-top":oe.SOLID,"transform-origin":"bottom left"},"mjx-menclose > mjx-hstrike":{"border-top":oe.SOLID,position:"absolute",left:0,right:0,bottom:"50%",transform:"translateY("+(0,qt.em)(oe.THICKNESS/2)+")"},"mjx-menclose > mjx-vstrike":{"border-left":oe.SOLID,position:"absolute",top:0,bottom:0,right:"50%",transform:"translateX("+(0,qt.em)(oe.THICKNESS/2)+")"},"mjx-menclose > mjx-rbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:oe.SOLID,"border-radius":(0,qt.em)(oe.THICKNESS+oe.PADDING)},"mjx-menclose > mjx-cbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:oe.SOLID,"border-radius":"50%"},"mjx-menclose > mjx-arrow":{position:"absolute",left:0,bottom:"50%",height:0,width:0},"mjx-menclose > mjx-arrow > *":{display:"block",position:"absolute","transform-origin":"bottom","border-left":(0,qt.em)(oe.THICKNESS*oe.ARROWX)+" solid","border-right":0,"box-sizing":"border-box"},"mjx-menclose > mjx-arrow > mjx-aline":{left:0,top:(0,qt.em)(-oe.THICKNESS/2),right:(0,qt.em)(oe.THICKNESS*(oe.ARROWX-1)),height:0,"border-top":(0,qt.em)(oe.THICKNESS)+" solid","border-left":0},"mjx-menclose > mjx-arrow[double] > mjx-aline":{left:(0,qt.em)(oe.THICKNESS*(oe.ARROWX-1)),height:0},"mjx-menclose > mjx-arrow > mjx-rthead":{transform:"skewX("+yf+"rad)",right:0,bottom:"-1px","border-bottom":"1px solid transparent","border-top":(0,qt.em)(oe.THICKNESS*oe.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-rbhead":{transform:"skewX(-"+yf+"rad)","transform-origin":"top",right:0,top:"-1px","border-top":"1px solid transparent","border-bottom":(0,qt.em)(oe.THICKNESS*oe.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lthead":{transform:"skewX(-"+yf+"rad)",left:0,bottom:"-1px","border-left":0,"border-right":(0,qt.em)(oe.THICKNESS*oe.ARROWX)+" solid","border-bottom":"1px solid transparent","border-top":(0,qt.em)(oe.THICKNESS*oe.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lbhead":{transform:"skewX("+yf+"rad)","transform-origin":"top",left:0,top:"-1px","border-left":0,"border-right":(0,qt.em)(oe.THICKNESS*oe.ARROWX)+" solid","border-top":"1px solid transparent","border-bottom":(0,qt.em)(oe.THICKNESS*oe.ARROWY)+" solid transparent"},"mjx-menclose > dbox":{position:"absolute",top:0,bottom:0,left:(0,qt.em)(-1.5*oe.PADDING),width:(0,qt.em)(3*oe.PADDING),border:(0,qt.em)(oe.THICKNESS)+" solid","border-radius":"50%","clip-path":"inset(0 0 0 "+(0,qt.em)(1.5*oe.PADDING)+")","box-sizing":"border-box"}},t.notations=new Map([oe.Border("top"),oe.Border("right"),oe.Border("bottom"),oe.Border("left"),oe.Border2("actuarial","top","right"),oe.Border2("madruwb","bottom","right"),oe.DiagonalStrike("up",1),oe.DiagonalStrike("down",-1),["horizontalstrike",{renderer:oe.RenderElement("hstrike","Y"),bbox:function(r){return[0,r.padding,0,r.padding]}}],["verticalstrike",{renderer:oe.RenderElement("vstrike","X"),bbox:function(r){return[r.padding,0,r.padding,0]}}],["box",{renderer:function(r,n){r.adaptor.setStyle(n,"border",r.em(r.thickness)+" solid")},bbox:oe.fullBBox,border:oe.fullBorder,remove:"left right top bottom"}],["roundedbox",{renderer:oe.RenderElement("rbox"),bbox:oe.fullBBox}],["circle",{renderer:oe.RenderElement("cbox"),bbox:oe.fullBBox}],["phasorangle",{renderer:function(r,n){var o=r.getBBox(),i=o.h,a=o.d,s=Tb(r.getArgMod(1.75*r.padding,i+a),2),c=s[0],l=s[1],u=r.thickness*Math.sin(c)*.9;r.adaptor.setStyle(n,"border-bottom",r.em(r.thickness)+" solid");var p=r.adjustBorder(r.html("mjx-ustrike",{style:{width:r.em(l),transform:"translateX("+r.em(u)+") rotate("+r.fixed(-c)+"rad)"}}));r.adaptor.append(r.chtml,p)},bbox:function(r){var n=r.padding/2,o=r.thickness;return[2*n,n,n+o,3*n+o]},border:function(r){return[0,0,r.thickness,0]},remove:"bottom"}],oe.Arrow("up"),oe.Arrow("down"),oe.Arrow("left"),oe.Arrow("right"),oe.Arrow("updown"),oe.Arrow("leftright"),oe.DiagonalArrow("updiagonal"),oe.DiagonalArrow("northeast"),oe.DiagonalArrow("southeast"),oe.DiagonalArrow("northwest"),oe.DiagonalArrow("southwest"),oe.DiagonalArrow("northeastsouthwest"),oe.DiagonalArrow("northwestsoutheast"),["longdiv",{renderer:function(r,n){var o=r.adaptor;o.setStyle(n,"border-top",r.em(r.thickness)+" solid");var i=o.append(r.chtml,r.html("dbox")),a=r.thickness,s=r.padding;a!==oe.THICKNESS&&o.setStyle(i,"border-width",r.em(a)),s!==oe.PADDING&&(o.setStyle(i,"left",r.em(-1.5*s)),o.setStyle(i,"width",r.em(3*s)),o.setStyle(i,"clip-path","inset(0 0 0 "+r.em(1.5*s)+")"))},bbox:function(r){var n=r.padding,o=r.thickness;return[n+o,n,n,2*n+o/2]}}],["radical",{renderer:function(r,n){r.msqrt.toCHTML(n);var o=r.sqrtTRBL();r.adaptor.setStyle(r.msqrt.chtml,"margin",o.map(function(i){return r.em(-i)}).join(" "))},init:function(r){r.msqrt=r.createMsqrt(r.childNodes[0])},bbox:function(r){return r.sqrtTRBL()},renderChild:!0}]]),t})((0,DF.CommonMencloseMixin)(BF.CHTMLWrapper));var Us={},Ui={},OA=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),FF=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),UF=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),gf=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.CommonInferredMrowMixin=Ui.CommonMrowMixin=void 0;var HF=cn;function qF(e){return(function(t){OA(r,t);function r(){for(var n,o,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=t.apply(this,UF([],FF(i),!1))||this;s.stretchChildren();try{for(var c=gf(s.childNodes),l=c.next();!l.done;l=c.next())if(l.value.bbox.pwidth){s.bbox.pwidth=HF.BBox.fullWidth;break}}catch(u){n={error:u}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return s}return Object.defineProperty(r.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.stretchChildren=function(){var n,o,i,a,s,c,l=[];try{for(var u=gf(this.childNodes),p=u.next();!p.done;p=u.next()){var d=p.value;d.canStretch(1)&&l.push(d)}}catch(k){n={error:k}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}var h=l.length,f=this.childNodes.length;if(h&&f>1){var m=0,v=0,g=h>1&&h===f;try{for(var b=gf(this.childNodes),S=b.next();!S.done;S=b.next()){var d=S.value,E=d.stretch.dir===0;if(g||E){var x=d.getOuterBBox(E),O=x.h,A=x.d,M=x.rscale;O*=M,A*=M,O>m&&(m=O),A>v&&(v=A)}}}catch(k){i={error:k}}finally{try{S&&!S.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}try{for(var C=gf(l),w=C.next();!w.done;w=C.next()){var d=w.value;d.coreMO().getStretchedVariant([m,v])}}catch(k){s={error:k}}finally{try{w&&!w.done&&(c=C.return)&&c.call(C)}finally{if(s)throw s.error}}}},r})(e)}Ui.CommonMrowMixin=qF;function GF(e){return(function(t){OA(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getScale=function(){this.bbox.scale=this.parent.bbox.scale,this.bbox.rscale=1},r})(e)}Ui.CommonInferredMrowMixin=GF;var AA=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),XF=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Us,"__esModule",{value:!0}),Us.CHTMLinferredMrow=Us.CHTMLmrow=void 0;var VF=ot,WF=Ui,$F=Ui,TA=ni,CA=(function(e){AA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n,o,i=this.node.isInferred?this.chtml=r:this.standardCHTMLnode(r),a=!1;try{for(var s=XF(this.childNodes),c=s.next();!c.done;c=s.next()){var l=c.value;l.toCHTML(i),l.bbox.w<0&&(a=!0)}}catch(p){n={error:p}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}if(a){var u=this.getBBox().w;u&&(this.adaptor.setStyle(i,"width",this.em(Math.max(0,u))),u<0&&this.adaptor.setStyle(i,"marginRight",this.em(u)))}},t.kind=TA.MmlMrow.prototype.kind,t})((0,WF.CommonMrowMixin)(VF.CHTMLWrapper));Us.CHTMLmrow=CA,Us.CHTMLinferredMrow=(function(e){AA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind=TA.MmlInferredMrow.prototype.kind,t})((0,$F.CommonInferredMrowMixin)(CA));var bf={},vf={},zF=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),KF=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),JF=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),YF=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(vf,"__esModule",{value:!0}),vf.CommonMfencedMixin=void 0;function QF(e){return(function(t){zF(r,t);function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,JF([],KF(n),!1))||this;return i.mrow=null,i.createMrow(),i.addMrowChildren(),i}return r.prototype.createMrow=function(){var n=this.node.factory.create("inferredMrow");n.inheritAttributesFrom(this.node),this.mrow=this.wrap(n),this.mrow.parent=this},r.prototype.addMrowChildren=function(){var n,o,i=this.node,a=this.mrow;this.addMo(i.open),this.childNodes.length&&a.childNodes.push(this.childNodes[0]);var s=0;try{for(var c=YF(this.childNodes.slice(1)),l=c.next();!l.done;l=c.next()){var u=l.value;this.addMo(i.separators[s++]),a.childNodes.push(u)}}catch(p){n={error:p}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}this.addMo(i.close),a.stretchChildren()},r.prototype.addMo=function(n){if(n){var o=this.wrap(n);this.mrow.childNodes.push(o),o.parent=this.mrow}},r.prototype.computeBBox=function(n,o){o===void 0&&(o=!1),n.updateFrom(this.mrow.getOuterBBox()),this.setChildPWidths(o)},r})(e)}vf.CommonMfencedMixin=QF;var ZF=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(bf,"__esModule",{value:!0}),bf.CHTMLmfenced=void 0;var eU=ot,tU=vf,rU=_c;bf.CHTMLmfenced=(function(e){ZF(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n=this.standardCHTMLnode(r);this.mrow.toCHTML(n)},t.kind=rU.MmlMfenced.prototype.kind,t})((0,tU.CommonMfencedMixin)(eU.CHTMLWrapper));var Sf={},Ef={},nU=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),NA=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),oU=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.CommonMfracMixin=void 0;function iU(e){return(function(t){nU(r,t);function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,oU([],NA(n),!1))||this;if(i.bevel=null,i.pad=i.node.getProperty("withDelims")?0:i.font.params.nulldelimiterspace,i.node.attributes.get("bevelled")){var a=i.getBevelData(i.isDisplay()).H,s=i.bevel=i.createMo("/");s.node.attributes.set("symmetric",!0),s.canStretch(1),s.getStretchedVariant([a],!0)}return i}return r.prototype.computeBBox=function(n,o){o===void 0&&(o=!1),n.empty();var i=this.node.attributes.getList("linethickness","bevelled"),a=i.linethickness,s=i.bevelled,c=this.isDisplay(),l=null;if(s)this.getBevelledBBox(n,c);else{var u=this.length2em(String(a),.06);l=-2*this.pad,u===0?this.getAtopBBox(n,c):(this.getFractionBBox(n,c,u),l-=.2),l+=n.w}n.clean(),this.setChildPWidths(o,l)},r.prototype.getFractionBBox=function(n,o,i){var a=this.childNodes[0].getOuterBBox(),s=this.childNodes[1].getOuterBBox(),c=this.font.params.axis_height,l=this.getTUV(o,i),u=l.T,p=l.u,d=l.v;n.combine(a,0,c+u+Math.max(a.d*a.rscale,p)),n.combine(s,0,c-u-Math.max(s.h*s.rscale,d)),n.w+=2*this.pad+.2},r.prototype.getTUV=function(n,o){var i=this.font.params,a=i.axis_height,s=(n?3.5:1.5)*o;return{T:(n?3.5:1.5)*o,u:(n?i.num1:i.num2)-a-s,v:(n?i.denom1:i.denom2)+a-s}},r.prototype.getAtopBBox=function(n,o){var i=this.getUVQ(o),a=i.u,s=i.v,c=i.nbox,l=i.dbox;n.combine(c,0,a),n.combine(l,0,-s),n.w+=2*this.pad},r.prototype.getUVQ=function(n){var o=this.childNodes[0].getOuterBBox(),i=this.childNodes[1].getOuterBBox(),a=this.font.params,s=NA(n?[a.num1,a.denom1]:[a.num3,a.denom2],2),c=s[0],l=s[1],u=(n?7:3)*a.rule_thickness,p=c-o.d*o.scale-(i.h*i.scale-l);return p<u&&(c+=(u-p)/2,l+=(u-p)/2,p=u),{u:c,v:l,q:p,nbox:o,dbox:i}},r.prototype.getBevelledBBox=function(n,o){var i=this.getBevelData(o),a=i.u,s=i.v,c=i.delta,l=i.nbox,u=i.dbox,p=this.bevel.getOuterBBox();n.combine(l,0,a),n.combine(p,n.w-c/2,0),n.combine(u,n.w-c/2,s)},r.prototype.getBevelData=function(n){var o=this.childNodes[0].getOuterBBox(),i=this.childNodes[1].getOuterBBox(),a=n?.4:.15,s=Math.max(o.scale*(o.h+o.d),i.scale*(i.h+i.d))+2*a,c=this.font.params.axis_height;return{H:s,delta:a,u:o.scale*(o.d-o.h)/2+c+a,v:i.scale*(i.d-i.h)/2+c-a,nbox:o,dbox:i}},r.prototype.canStretch=function(n){return!1},r.prototype.isDisplay=function(){var n=this.node.attributes.getList("displaystyle","scriptlevel"),o=n.displaystyle,i=n.scriptlevel;return o&&i===0},r.prototype.getWrapWidth=function(n){var o=this.node.attributes;return o.get("bevelled")?this.childNodes[n].getOuterBBox().w:this.getBBox().w-(this.length2em(o.get("linethickness"))?.2:0)-2*this.pad},r.prototype.getChildAlign=function(n){var o=this.node.attributes;return o.get("bevelled")?"left":o.get(["numalign","denomalign"][n])},r})(e)}Ef.CommonMfracMixin=iU;var aU=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Tn=y&&y.__assign||(function(){return Tn=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Tn.apply(this,arguments)});Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.CHTMLmfrac=void 0;var sU=ot,cU=Ef,lU=Oc;Sf.CHTMLmfrac=(function(e){aU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){this.standardCHTMLnode(r);var n=this.node.attributes.getList("linethickness","bevelled"),o=n.linethickness,i=n.bevelled,a=this.isDisplay();if(i)this.makeBevelled(a);else{var s=this.length2em(String(o),.06);s===0?this.makeAtop(a):this.makeFraction(a,s)}},t.prototype.makeFraction=function(r,n){var o=this.node.attributes.getList("numalign","denomalign"),i=o.numalign,a=o.denomalign,s=this.node.getProperty("withDelims"),c=r?{type:"d"}:{},l=s?Tn(Tn({},c),{delims:"true"}):Tn({},c),u=i!=="center"?{align:i}:{},p=a!=="center"?{align:a}:{},d=Tn({},c),h=Tn({},c),f=this.font.params;if(n!==.06){var m=f.axis_height,v=this.em(n),g=this.getTUV(r,n),b=g.T,S=g.u,E=g.v,x=(r?this.em(3*n):v)+" -.1em";c.style={height:v,"border-top":v+" solid",margin:x};var O=this.em(Math.max(0,S));h.style={height:O,"vertical-align":"-"+O},d.style={height:this.em(Math.max(0,E))},l.style={"vertical-align":this.em(m-b)}}var A,M;this.adaptor.append(this.chtml,this.html("mjx-frac",l,[A=this.html("mjx-num",u,[this.html("mjx-nstrut",h)]),this.html("mjx-dbox",{},[this.html("mjx-dtable",{},[this.html("mjx-line",c),this.html("mjx-row",{},[M=this.html("mjx-den",p,[this.html("mjx-dstrut",d)])])])])])),this.childNodes[0].toCHTML(A),this.childNodes[1].toCHTML(M)},t.prototype.makeAtop=function(r){var n=this.node.attributes.getList("numalign","denomalign"),o=n.numalign,i=n.denomalign,a=this.node.getProperty("withDelims"),s=r?{type:"d",atop:!0}:{atop:!0},c=a?Tn(Tn({},s),{delims:!0}):Tn({},s),l=o!=="center"?{align:o}:{},u=i!=="center"?{align:i}:{},p=this.getUVQ(r),d=p.v,h=p.q;l.style={"padding-bottom":this.em(h)},c.style={"vertical-align":this.em(-d)};var f,m;this.adaptor.append(this.chtml,this.html("mjx-frac",c,[f=this.html("mjx-num",l),m=this.html("mjx-den",u)])),this.childNodes[0].toCHTML(f),this.childNodes[1].toCHTML(m)},t.prototype.makeBevelled=function(r){var n=this.adaptor;n.setAttribute(this.chtml,"bevelled","ture");var o=n.append(this.chtml,this.html("mjx-num"));this.childNodes[0].toCHTML(o),this.bevel.toCHTML(this.chtml);var i=n.append(this.chtml,this.html("mjx-den"));this.childNodes[1].toCHTML(i);var a=this.getBevelData(r),s=a.u,c=a.v,l=a.delta,u=a.nbox,p=a.dbox;s&&n.setStyle(o,"verticalAlign",this.em(s/u.scale)),c&&n.setStyle(i,"verticalAlign",this.em(c/p.scale));var d=this.em(-l/2);n.setStyle(this.bevel.chtml,"marginLeft",d),n.setStyle(this.bevel.chtml,"marginRight",d)},t.kind=lU.MmlMfrac.prototype.kind,t.styles={"mjx-frac":{display:"inline-block","vertical-align":"0.17em",padding:"0 .22em"},'mjx-frac[type="d"]':{"vertical-align":".04em"},"mjx-frac[delims]":{padding:"0 .1em"},"mjx-frac[atop]":{padding:"0 .12em"},"mjx-frac[atop][delims]":{padding:"0"},"mjx-dtable":{display:"inline-table",width:"100%"},"mjx-dtable > *":{"font-size":"2000%"},"mjx-dbox":{display:"block","font-size":"5%"},"mjx-num":{display:"block","text-align":"center"},"mjx-den":{display:"block","text-align":"center"},"mjx-mfrac[bevelled] > mjx-num":{display:"inline-block"},"mjx-mfrac[bevelled] > mjx-den":{display:"inline-block"},'mjx-den[align="right"], mjx-num[align="right"]':{"text-align":"right"},'mjx-den[align="left"], mjx-num[align="left"]':{"text-align":"left"},"mjx-nstrut":{display:"inline-block",height:".054em",width:0,"vertical-align":"-.054em"},'mjx-nstrut[type="d"]':{height:".217em","vertical-align":"-.217em"},"mjx-dstrut":{display:"inline-block",height:".505em",width:0},'mjx-dstrut[type="d"]':{height:".726em"},"mjx-line":{display:"block","box-sizing":"border-box","min-height":"1px",height:".06em","border-top":".06em solid",margin:".06em -.1em",overflow:"hidden"},'mjx-line[type="d"]':{margin:".18em -.1em"}},t})((0,cU.CommonMfracMixin)(sU.CHTMLWrapper));var nu={},xf={},uU=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),_A=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),pU=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(xf,"__esModule",{value:!0}),xf.CommonMsqrtMixin=void 0;var dU=cn;function hU(e){return(function(t){uU(r,t);function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,pU([],_A(n),!1))||this,a=i.createMo("√");a.canStretch(1);var s=i.childNodes[i.base].getOuterBBox(),c=s.h,l=s.d,u=i.font.params.rule_thickness,p=i.node.attributes.get("displaystyle")?i.font.params.x_height:u;return i.surdH=c+l+2*u+p/4,a.getStretchedVariant([i.surdH-l,l],!0),i}return Object.defineProperty(r.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"surd",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"root",{get:function(){return null},enumerable:!1,configurable:!0}),r.prototype.createMo=function(n){var o=t.prototype.createMo.call(this,n);return this.childNodes.push(o),o},r.prototype.computeBBox=function(n,o){o===void 0&&(o=!1);var i=this.childNodes[this.surd].getBBox(),a=new dU.BBox(this.childNodes[this.base].getOuterBBox()),s=this.getPQ(i)[1],c=this.font.params.rule_thickness,l=a.h+s+c,u=_A(this.getRootDimens(i,l),1)[0];n.h=l+c,this.combineRootBBox(n,i,l),n.combine(i,u,l-i.h),n.combine(a,u+i.w,0),n.clean(),this.setChildPWidths(o)},r.prototype.combineRootBBox=function(n,o,i){},r.prototype.getPQ=function(n){var o=this.font.params.rule_thickness,i=this.node.attributes.get("displaystyle")?this.font.params.x_height:o;return[i,n.h+n.d>this.surdH?(n.h+n.d-(this.surdH-2*o-i/2))/2:o+i/4]},r.prototype.getRootDimens=function(n,o){return[0,0,0,0]},r})(e)}xf.CommonMsqrtMixin=hU;var fU=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),mU=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(nu,"__esModule",{value:!0}),nu.CHTMLmsqrt=void 0;var yU=ot,gU=xf,bU=Ac;nu.CHTMLmsqrt=(function(e){fU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n=this.childNodes[this.surd],o=this.childNodes[this.base],i=n.getBBox(),a=o.getOuterBBox(),s=mU(this.getPQ(i),2)[1],c=this.font.params.rule_thickness,l=a.h+s+c,u=this.standardCHTMLnode(r),p,d,h,f;this.root!=null&&(h=this.adaptor.append(u,this.html("mjx-root")),f=this.childNodes[this.root]);var m=this.adaptor.append(u,this.html("mjx-sqrt",{},[p=this.html("mjx-surd"),d=this.html("mjx-box",{style:{paddingTop:this.em(s)}})]));this.addRoot(h,f,i,l),n.toCHTML(p),o.toCHTML(d),n.size<0&&this.adaptor.addClass(m,"mjx-tall")},t.prototype.addRoot=function(r,n,o,i){},t.kind=bU.MmlMsqrt.prototype.kind,t.styles={"mjx-root":{display:"inline-block","white-space":"nowrap"},"mjx-surd":{display:"inline-block","vertical-align":"top"},"mjx-sqrt":{display:"inline-block","padding-top":".07em"},"mjx-sqrt > mjx-box":{"border-top":".07em solid"},"mjx-sqrt.mjx-tall > mjx-box":{"padding-left":".3em","margin-left":"-.3em"}},t})((0,gU.CommonMsqrtMixin)(yU.CHTMLWrapper));var Mf={},Of={},vU=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Of,"__esModule",{value:!0}),Of.CommonMrootMixin=void 0;function SU(e){return(function(t){vU(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"surd",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"root",{get:function(){return 1},enumerable:!1,configurable:!0}),r.prototype.combineRootBBox=function(n,o,i){var a=this.childNodes[this.root].getOuterBBox(),s=this.getRootDimens(o,i)[1];n.combine(a,0,s)},r.prototype.getRootDimens=function(n,o){var i=this.childNodes[this.surd],a=this.childNodes[this.root].getOuterBBox(),s=(i.size<0?.5:.6)*n.w,c=a.w,l=a.rscale,u=Math.max(c,s/l),p=Math.max(0,u-c),d=this.rootHeight(a,n,i.size,o);return[u*l-s,d,p]},r.prototype.rootHeight=function(n,o,i,a){var s=o.h+o.d;return(i<0?1.9:.55*s)-(s-a)+Math.max(0,n.d*n.rscale)},r})(e)}Of.CommonMrootMixin=SU;var EU=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),xU=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.CHTMLmroot=void 0;var MU=nu,OU=Of,AU=Tc;Mf.CHTMLmroot=(function(e){EU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.addRoot=function(r,n,o,i){n.toCHTML(r);var a=xU(this.getRootDimens(o,i),3),s=a[0],c=a[1],l=a[2];this.adaptor.setStyle(r,"verticalAlign",this.em(c)),this.adaptor.setStyle(r,"width",this.em(s)),l&&this.adaptor.setStyle(this.adaptor.firstChild(r),"paddingLeft",this.em(l))},t.kind=AU.MmlMroot.prototype.kind,t})((0,OU.CommonMrootMixin)(MU.CHTMLmsqrt));var Cn={},Af={},Tf={},TU=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Cb=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),wA=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),Hs=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.CommonScriptbaseMixin=void 0;var CU=ce;function NU(e){var t=(function(r){TU(n,r);function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var a=r.apply(this,wA([],Cb(o),!1))||this;a.baseScale=1,a.baseIc=0,a.baseRemoveIc=!1,a.baseIsChar=!1,a.baseHasAccentOver=null,a.baseHasAccentUnder=null,a.isLineAbove=!1,a.isLineBelow=!1,a.isMathAccent=!1;var s=a.baseCore=a.getBaseCore();return s&&(a.setBaseAccentsFor(s),a.baseScale=a.getBaseScale(),a.baseIc=a.getBaseIc(),a.baseIsChar=a.isCharBase(),a.isMathAccent=a.baseIsChar&&a.scriptChild&&!!a.scriptChild.coreMO().node.getProperty("mathaccent"),a.checkLineAccents(),a.baseRemoveIc=!a.isLineAbove&&!a.isLineBelow&&(!a.constructor.useIC||a.isMathAccent)),a}return Object.defineProperty(n.prototype,"baseChild",{get:function(){return this.childNodes[this.node.base]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"scriptChild",{get:function(){return this.childNodes[1]},enumerable:!1,configurable:!0}),n.prototype.getBaseCore=function(){for(var o=this.getSemanticBase()||this.childNodes[0];o&&(o.childNodes.length===1&&(o.node.isKind("mrow")||o.node.isKind("TeXAtom")&&o.node.texClass!==CU.TEXCLASS.VCENTER||o.node.isKind("mstyle")||o.node.isKind("mpadded")||o.node.isKind("mphantom")||o.node.isKind("semantics"))||o.node.isKind("munderover")&&o.isMathAccent);)this.setBaseAccentsFor(o),o=o.childNodes[0];return o||(this.baseHasAccentOver=this.baseHasAccentUnder=!1),o||this.childNodes[0]},n.prototype.setBaseAccentsFor=function(o){o.node.isKind("munderover")&&(this.baseHasAccentOver===null&&(this.baseHasAccentOver=!!o.node.attributes.get("accent")),this.baseHasAccentUnder===null&&(this.baseHasAccentUnder=!!o.node.attributes.get("accentunder")))},n.prototype.getSemanticBase=function(){var o=this.node.attributes.getExplicit("data-semantic-fencepointer");return this.getBaseFence(this.baseChild,o)},n.prototype.getBaseFence=function(o,i){var a,s;if(!o||!o.node.attributes||!i)return null;if(o.node.attributes.getExplicit("data-semantic-id")===i)return o;try{for(var c=Hs(o.childNodes),l=c.next();!l.done;l=c.next()){var u=l.value,p=this.getBaseFence(u,i);if(p)return p}}catch(d){a={error:d}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}return null},n.prototype.getBaseScale=function(){for(var o=this.baseCore,i=1;o&&o!==this;){var a=o.getOuterBBox();i*=a.rscale,o=o.parent}return i},n.prototype.getBaseIc=function(){return this.baseCore.getOuterBBox().ic*this.baseScale},n.prototype.getAdjustedIc=function(){var o=this.baseCore.getOuterBBox();return(o.ic?1.05*o.ic+.05:0)*this.baseScale},n.prototype.isCharBase=function(){var o=this.baseCore;return(o.node.isKind("mo")&&o.size===null||o.node.isKind("mi")||o.node.isKind("mn"))&&o.bbox.rscale===1&&Array.from(o.getText()).length===1},n.prototype.checkLineAccents=function(){if(this.node.isKind("munderover"))if(this.node.isKind("mover"))this.isLineAbove=this.isLineAccent(this.scriptChild);else if(this.node.isKind("munder"))this.isLineBelow=this.isLineAccent(this.scriptChild);else{var o=this;this.isLineAbove=this.isLineAccent(o.overChild),this.isLineBelow=this.isLineAccent(o.underChild)}},n.prototype.isLineAccent=function(o){var i=o.coreMO().node;return i.isToken&&i.getText()==="―"},n.prototype.getBaseWidth=function(){var o=this.baseChild.getOuterBBox();return o.w*o.rscale-(this.baseRemoveIc?this.baseIc:0)+this.font.params.extra_ic},n.prototype.computeBBox=function(o,i){i===void 0&&(i=!1);var a=this.getBaseWidth(),s=Cb(this.getOffset(),2),c=s[0],l=s[1];o.append(this.baseChild.getOuterBBox()),o.combine(this.scriptChild.getOuterBBox(),a+c,l),o.w+=this.font.params.scriptspace,o.clean(),this.setChildPWidths(i)},n.prototype.getOffset=function(){return[0,0]},n.prototype.baseCharZero=function(o){var i=!!this.baseCore.node.attributes.get("largeop"),a=this.baseScale;return this.baseIsChar&&!i&&a===1?0:o},n.prototype.getV=function(){var o=this.baseCore.getOuterBBox(),i=this.scriptChild.getOuterBBox(),a=this.font.params,s=this.length2em(this.node.attributes.get("subscriptshift"),a.sub1);return Math.max(this.baseCharZero(o.d*this.baseScale+a.sub_drop*i.rscale),s,i.h*i.rscale-.8*a.x_height)},n.prototype.getU=function(){var o=this.baseCore.getOuterBBox(),i=this.scriptChild.getOuterBBox(),a=this.font.params,s=this.node.attributes.getList("displaystyle","superscriptshift"),c=this.node.getProperty("texprimestyle")?a.sup3:s.displaystyle?a.sup1:a.sup2,l=this.length2em(s.superscriptshift,c);return Math.max(this.baseCharZero(o.h*this.baseScale-a.sup_drop*i.rscale),l,i.d*i.rscale+.25*a.x_height)},n.prototype.hasMovableLimits=function(){var o=this.node.attributes.get("displaystyle"),i=this.baseChild.coreMO().node;return!o&&!!i.attributes.get("movablelimits")},n.prototype.getOverKU=function(o,i){var a=this.node.attributes.get("accent"),s=this.font.params,c=i.d*i.rscale,l=s.rule_thickness*s.separation_factor,u=this.baseHasAccentOver?l:0,p=this.isLineAbove?3*s.rule_thickness:l,d=(a?p:Math.max(s.big_op_spacing1,s.big_op_spacing3-Math.max(0,c)))-u;return[d,o.h*o.rscale+d+c]},n.prototype.getUnderKV=function(o,i){var a=this.node.attributes.get("accentunder"),s=this.font.params,c=i.h*i.rscale,l=s.rule_thickness*s.separation_factor,u=this.baseHasAccentUnder?l:0,p=this.isLineBelow?3*s.rule_thickness:l,d=(a?p:Math.max(s.big_op_spacing2,s.big_op_spacing4-c))-u;return[d,-(o.d*o.rscale+d+c)]},n.prototype.getDeltaW=function(o,i){var a,s,c,l;i===void 0&&(i=[0,0,0]);var u=this.node.attributes.get("align"),p=o.map(function(E){return E.w*E.rscale});p[0]-=this.baseRemoveIc&&!this.baseCore.node.attributes.get("largeop")?this.baseIc:0;var d=Math.max.apply(Math,wA([],Cb(p),!1)),h=[],f=0;try{for(var m=Hs(p.keys()),v=m.next();!v.done;v=m.next()){var g=v.value;h[g]=(u==="center"?(d-p[g])/2:u==="right"?d-p[g]:0)+i[g],h[g]<f&&(f=-h[g])}}catch(E){a={error:E}}finally{try{v&&!v.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}if(f)try{for(var b=Hs(h.keys()),S=b.next();!S.done;S=b.next()){var g=S.value;h[g]+=f}}catch(E){c={error:E}}finally{try{S&&!S.done&&(l=b.return)&&l.call(b)}finally{if(c)throw c.error}}return[1,2].map(function(E){return h[E]+=o[E]?o[E].dx*o[0].scale:0}),h},n.prototype.getDelta=function(o){o===void 0&&(o=!1);var i=this.node.attributes.get("accent"),a=this.baseCore.getOuterBBox(),s=a.sk,c=a.ic;return((i&&!o?s:0)+this.font.skewIcFactor*c)*this.baseScale},n.prototype.stretchChildren=function(){var o,i,a,s,c,l,u=[];try{for(var p=Hs(this.childNodes),d=p.next();!d.done;d=p.next()){var h=d.value;h.canStretch(2)&&u.push(h)}}catch(w){o={error:w}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}var f=u.length,m=this.childNodes.length;if(f&&m>1){var v=0,g=f>1&&f===m;try{for(var b=Hs(this.childNodes),S=b.next();!S.done;S=b.next()){var h=S.value,E=h.stretch.dir===0;if(g||E){var x=h.getOuterBBox(E),O=x.w,A=x.rscale;O*A>v&&(v=O*A)}}}catch(w){a={error:w}}finally{try{S&&!S.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}try{for(var M=Hs(u),C=M.next();!C.done;C=M.next()){var h=C.value;h.coreMO().getStretchedVariant([v/h.bbox.rscale])}}catch(w){c={error:w}}finally{try{C&&!C.done&&(l=M.return)&&l.call(M)}finally{if(c)throw c.error}}}},n})(e);return t.useIC=!0,t}Tf.CommonScriptbaseMixin=NU;var _U=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),wU=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),RU=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Af,"__esModule",{value:!0}),Af.CHTMLscriptbase=void 0;var LU=ot;Af.CHTMLscriptbase=(function(e){_U(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){this.chtml=this.standardCHTMLnode(r);var n=wU(this.getOffset(),2),o=n[0],i=n[1],a=o-(this.baseRemoveIc?this.baseIc:0),s={"vertical-align":this.em(i)};a&&(s["margin-left"]=this.em(a)),this.baseChild.toCHTML(this.chtml),this.scriptChild.toCHTML(this.adaptor.append(this.chtml,this.html("mjx-script",{style:s})))},t.prototype.setDeltaW=function(r,n){for(var o=0;o<n.length;o++)n[o]&&this.adaptor.setStyle(r[o],"paddingLeft",this.em(n[o]))},t.prototype.adjustOverDepth=function(r,n){n.d>=0||this.adaptor.setStyle(r,"marginBottom",this.em(n.d*n.rscale))},t.prototype.adjustUnderDepth=function(r,n){var o,i;if(!(n.d>=0)){var a=this.adaptor,s=this.em(n.d),c=this.html("mjx-box",{style:{"margin-bottom":s,"vertical-align":s}});try{for(var l=RU(a.childNodes(a.firstChild(r))),u=l.next();!u.done;u=l.next()){var p=u.value;a.append(c,p)}}catch(d){o={error:d}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}a.append(a.firstChild(r),c)}},t.prototype.adjustBaseHeight=function(r,n){if(this.node.attributes.get("accent")){var o=this.font.params.x_height*n.scale;n.h<o&&(this.adaptor.setStyle(r,"paddingTop",this.em(o-n.h)),n.h=o)}},t.kind="scriptbase",t})((0,Tf.CommonScriptbaseMixin)(LU.CHTMLWrapper));var Nn={},Nb=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),_b=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.CommonMsubsupMixin=Nn.CommonMsupMixin=Nn.CommonMsubMixin=void 0;function IU(e){var t=(function(r){Nb(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:!1,configurable:!0}),n.prototype.getOffset=function(){return[0,-this.getV()]},n})(e);return t.useIC=!1,t}Nn.CommonMsubMixin=IU;function PU(e){return(function(t){Nb(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:!1,configurable:!0}),r.prototype.getOffset=function(){return[this.getAdjustedIc()-(this.baseRemoveIc?0:this.baseIc),this.getU()]},r})(e)}Nn.CommonMsupMixin=PU;function kU(e){var t=(function(r){Nb(n,r);function n(){var o=r!==null&&r.apply(this,arguments)||this;return o.UVQ=null,o}return Object.defineProperty(n.prototype,"subChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"supChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:!1,configurable:!0}),n.prototype.computeBBox=function(o,i){i===void 0&&(i=!1);var a=this.baseChild.getOuterBBox(),s=_b([this.subChild.getOuterBBox(),this.supChild.getOuterBBox()],2),c=s[0],l=s[1];o.empty(),o.append(a);var u=this.getBaseWidth(),p=this.getAdjustedIc(),d=_b(this.getUVQ(),2),h=d[0],f=d[1];o.combine(c,u,f),o.combine(l,u+p,h),o.w+=this.font.params.scriptspace,o.clean(),this.setChildPWidths(i)},n.prototype.getUVQ=function(o,i){o===void 0&&(o=this.subChild.getOuterBBox()),i===void 0&&(i=this.supChild.getOuterBBox());var a=this.baseCore.getOuterBBox();if(this.UVQ)return this.UVQ;var s=this.font.params,c=3*s.rule_thickness,l=this.length2em(this.node.attributes.get("subscriptshift"),s.sub2),u=this.baseCharZero(a.d*this.baseScale+s.sub_drop*o.rscale),p=_b([this.getU(),Math.max(u,l)],2),d=p[0],h=p[1],f=d-i.d*i.rscale-(o.h*o.rscale-h);if(f<c){h+=c-f;var m=4/5*s.x_height-(d-i.d*i.rscale);m>0&&(d+=m,h-=m)}return d=Math.max(this.length2em(this.node.attributes.get("superscriptshift"),d),d),h=Math.max(this.length2em(this.node.attributes.get("subscriptshift"),h),h),f=d-i.d*i.rscale-(o.h*o.rscale-h),this.UVQ=[d,-h,f],this.UVQ},n})(e);return t.useIC=!1,t}Nn.CommonMsubsupMixin=kU;var wb=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),RA=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.CHTMLmsubsup=Cn.CHTMLmsup=Cn.CHTMLmsub=void 0;var Rb=Af,BU=Nn,DU=Nn,jU=Nn,Lb=hn;Cn.CHTMLmsub=(function(e){wb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind=Lb.MmlMsub.prototype.kind,t})((0,BU.CommonMsubMixin)(Rb.CHTMLscriptbase)),Cn.CHTMLmsup=(function(e){wb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind=Lb.MmlMsup.prototype.kind,t})((0,DU.CommonMsupMixin)(Rb.CHTMLscriptbase)),Cn.CHTMLmsubsup=(function(e){wb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n=this.adaptor,o=this.standardCHTMLnode(r),i=RA([this.baseChild,this.supChild,this.subChild],3),a=i[0],s=i[1],c=i[2],l=RA(this.getUVQ(),3),u=l[1],p=l[2],d={"vertical-align":this.em(u)};a.toCHTML(o);var h=n.append(o,this.html("mjx-script",{style:d}));s.toCHTML(h),n.append(h,this.html("mjx-spacer",{style:{"margin-top":this.em(p)}})),c.toCHTML(h);var f=this.getAdjustedIc();f&&n.setStyle(s.chtml,"marginLeft",this.em(f/s.bbox.rscale)),this.baseRemoveIc&&n.setStyle(h,"marginLeft",this.em(-this.baseIc))},t.kind=Lb.MmlMsubsup.prototype.kind,t.styles={"mjx-script":{display:"inline-block","padding-right":".05em","padding-left":".033em"},"mjx-script > mjx-spacer":{display:"block"}},t})((0,jU.CommonMsubsupMixin)(Rb.CHTMLscriptbase));var Jo={},_n={},Ib=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qs=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),Pb=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(_n,"__esModule",{value:!0}),_n.CommonMunderoverMixin=_n.CommonMoverMixin=_n.CommonMunderMixin=void 0;function FU(e){return(function(t){Ib(r,t);function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,Pb([],qs(n),!1))||this;return i.stretchChildren(),i}return Object.defineProperty(r.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.under]},enumerable:!1,configurable:!0}),r.prototype.computeBBox=function(n,o){if(o===void 0&&(o=!1),this.hasMovableLimits()){t.prototype.computeBBox.call(this,n,o);return}n.empty();var i=this.baseChild.getOuterBBox(),a=this.scriptChild.getOuterBBox(),s=this.getUnderKV(i,a)[1],c=this.isLineBelow?0:this.getDelta(!0),l=qs(this.getDeltaW([i,a],[0,-c]),2),u=l[0],p=l[1];n.combine(i,u,0),n.combine(a,p,s),n.d+=this.font.params.big_op_spacing5,n.clean(),this.setChildPWidths(o)},r})(e)}_n.CommonMunderMixin=FU;function UU(e){return(function(t){Ib(r,t);function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,Pb([],qs(n),!1))||this;return i.stretchChildren(),i}return Object.defineProperty(r.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.over]},enumerable:!1,configurable:!0}),r.prototype.computeBBox=function(n){if(this.hasMovableLimits()){t.prototype.computeBBox.call(this,n);return}n.empty();var o=this.baseChild.getOuterBBox(),i=this.scriptChild.getOuterBBox();this.node.attributes.get("accent")&&(o.h=Math.max(o.h,this.font.params.x_height*o.scale));var a=this.getOverKU(o,i)[1],s=this.isLineAbove?0:this.getDelta(),c=qs(this.getDeltaW([o,i],[0,s]),2),l=c[0],u=c[1];n.combine(o,l,0),n.combine(i,u,a),n.h+=this.font.params.big_op_spacing5,n.clean()},r})(e)}_n.CommonMoverMixin=UU;function HU(e){return(function(t){Ib(r,t);function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,Pb([],qs(n),!1))||this;return i.stretchChildren(),i}return Object.defineProperty(r.prototype,"underChild",{get:function(){return this.childNodes[this.node.under]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"overChild",{get:function(){return this.childNodes[this.node.over]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"subChild",{get:function(){return this.underChild},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"supChild",{get:function(){return this.overChild},enumerable:!1,configurable:!0}),r.prototype.computeBBox=function(n){if(this.hasMovableLimits()){t.prototype.computeBBox.call(this,n);return}n.empty();var o=this.overChild.getOuterBBox(),i=this.baseChild.getOuterBBox(),a=this.underChild.getOuterBBox();this.node.attributes.get("accent")&&(i.h=Math.max(i.h,this.font.params.x_height*i.scale));var s=this.getOverKU(i,o)[1],c=this.getUnderKV(i,a)[1],l=this.getDelta(),u=qs(this.getDeltaW([i,a,o],[0,this.isLineBelow?0:-l,this.isLineAbove?0:l]),3),p=u[0],d=u[1],h=u[2];n.combine(i,p,0),n.combine(o,h,s),n.combine(a,d,c);var f=this.font.params.big_op_spacing5;n.h+=f,n.d+=f,n.clean()},r})(e)}_n.CommonMunderoverMixin=HU;var kb=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.CHTMLmunderover=Jo.CHTMLmover=Jo.CHTMLmunder=void 0;var Cf=Cn,qU=_n,GU=_n,XU=_n,Bb=Dn;Jo.CHTMLmunder=(function(e){kb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){if(this.hasMovableLimits()){e.prototype.toCHTML.call(this,r),this.adaptor.setAttribute(this.chtml,"limits","false");return}this.chtml=this.standardCHTMLnode(r);var n=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-base")),o=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-under"));this.baseChild.toCHTML(n),this.scriptChild.toCHTML(o);var i=this.baseChild.getOuterBBox(),a=this.scriptChild.getOuterBBox(),s=this.getUnderKV(i,a)[0],c=this.isLineBelow?0:this.getDelta(!0);this.adaptor.setStyle(o,"paddingTop",this.em(s)),this.setDeltaW([n,o],this.getDeltaW([i,a],[0,-c])),this.adjustUnderDepth(o,a)},t.kind=Bb.MmlMunder.prototype.kind,t.styles={"mjx-over":{"text-align":"left"},'mjx-munder:not([limits="false"])':{display:"inline-table"},"mjx-munder > mjx-row":{"text-align":"left"},"mjx-under":{"padding-bottom":".1em"}},t})((0,qU.CommonMunderMixin)(Cf.CHTMLmsub)),Jo.CHTMLmover=(function(e){kb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){if(this.hasMovableLimits()){e.prototype.toCHTML.call(this,r),this.adaptor.setAttribute(this.chtml,"limits","false");return}this.chtml=this.standardCHTMLnode(r);var n=this.adaptor.append(this.chtml,this.html("mjx-over")),o=this.adaptor.append(this.chtml,this.html("mjx-base"));this.scriptChild.toCHTML(n),this.baseChild.toCHTML(o);var i=this.scriptChild.getOuterBBox(),a=this.baseChild.getOuterBBox();this.adjustBaseHeight(o,a);var s=this.getOverKU(a,i)[0],c=this.isLineAbove?0:this.getDelta();this.adaptor.setStyle(n,"paddingBottom",this.em(s)),this.setDeltaW([o,n],this.getDeltaW([a,i],[0,c])),this.adjustOverDepth(n,i)},t.kind=Bb.MmlMover.prototype.kind,t.styles={'mjx-mover:not([limits="false"])':{"padding-top":".1em"},'mjx-mover:not([limits="false"]) > *':{display:"block","text-align":"left"}},t})((0,GU.CommonMoverMixin)(Cf.CHTMLmsup)),Jo.CHTMLmunderover=(function(e){kb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){if(this.hasMovableLimits()){e.prototype.toCHTML.call(this,r),this.adaptor.setAttribute(this.chtml,"limits","false");return}this.chtml=this.standardCHTMLnode(r);var n=this.adaptor.append(this.chtml,this.html("mjx-over")),o=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-box")),this.html("mjx-munder")),i=this.adaptor.append(this.adaptor.append(o,this.html("mjx-row")),this.html("mjx-base")),a=this.adaptor.append(this.adaptor.append(o,this.html("mjx-row")),this.html("mjx-under"));this.overChild.toCHTML(n),this.baseChild.toCHTML(i),this.underChild.toCHTML(a);var s=this.overChild.getOuterBBox(),c=this.baseChild.getOuterBBox(),l=this.underChild.getOuterBBox();this.adjustBaseHeight(i,c);var u=this.getOverKU(c,s)[0],p=this.getUnderKV(c,l)[0],d=this.getDelta();this.adaptor.setStyle(n,"paddingBottom",this.em(u)),this.adaptor.setStyle(a,"paddingTop",this.em(p)),this.setDeltaW([i,a,n],this.getDeltaW([c,l,s],[0,this.isLineBelow?0:-d,this.isLineAbove?0:d])),this.adjustOverDepth(n,s),this.adjustUnderDepth(a,l)},t.prototype.markUsed=function(){e.prototype.markUsed.call(this),this.jax.wrapperUsage.add(Cf.CHTMLmsubsup.kind)},t.kind=Bb.MmlMunderover.prototype.kind,t.styles={'mjx-munderover:not([limits="false"])':{"padding-top":".1em"},'mjx-munderover:not([limits="false"]) > *':{display:"block"}},t})((0,XU.CommonMunderoverMixin)(Cf.CHTMLmsubsup));var Nf={},Db={};(function(e){var t=y&&y.__extends||(function(){var s=function(c,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(u,p){u.__proto__=p})||(function(u,p){for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&(u[d]=p[d])}),s(c,l)};return function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");s(c,l);function u(){this.constructor=c}c.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})(),r=y&&y.__read||(function(s,c){var l=typeof Symbol=="function"&&s[Symbol.iterator];if(!l)return s;var u=l.call(s),p,d=[],h;try{for(;(c===void 0||c-- >0)&&!(p=u.next()).done;)d.push(p.value)}catch(f){h={error:f}}finally{try{p&&!p.done&&(l=u.return)&&l.call(u)}finally{if(h)throw h.error}}return d}),n=y&&y.__spreadArray||(function(s,c,l){if(l||arguments.length===2)for(var u=0,p=c.length,d;u<p;u++)(d||!(u in c))&&(d||(d=Array.prototype.slice.call(c,0,u)),d[u]=c[u]);return s.concat(d||Array.prototype.slice.call(c))}),o=y&&y.__values||(function(s){var c=typeof Symbol=="function"&&Symbol.iterator,l=c&&s[c],u=0;if(l)return l.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&u>=s.length&&(s=void 0),{value:s&&s[u++],done:!s}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMmultiscriptsMixin=e.ScriptNames=e.NextScript=void 0;var i=cn;e.NextScript={base:"subList",subList:"supList",supList:"subList",psubList:"psupList",psupList:"psubList"},e.ScriptNames=["sup","sup","psup","psub"];function a(s){return(function(c){t(l,c);function l(){for(var u=[],p=0;p<arguments.length;p++)u[p]=arguments[p];var d=c.apply(this,n([],r(u),!1))||this;return d.scriptData=null,d.firstPrescript=0,d.getScriptData(),d}return l.prototype.combinePrePost=function(u,p){var d=new i.BBox(u);return d.combine(p,0,0),d},l.prototype.computeBBox=function(u,p){p===void 0&&(p=!1);var d=this.font.params.scriptspace,h=this.scriptData,f=this.combinePrePost(h.sub,h.psub),m=this.combinePrePost(h.sup,h.psup),v=r(this.getUVQ(f,m),2),g=v[0],b=v[1];if(u.empty(),h.numPrescripts&&(u.combine(h.psup,d,g),u.combine(h.psub,d,b)),u.append(h.base),h.numScripts){var S=u.w;u.combine(h.sup,S,g),u.combine(h.sub,S,b),u.w+=d}u.clean(),this.setChildPWidths(p)},l.prototype.getScriptData=function(){var u=this.scriptData={base:null,sub:i.BBox.empty(),sup:i.BBox.empty(),psub:i.BBox.empty(),psup:i.BBox.empty(),numPrescripts:0,numScripts:0},p=this.getScriptBBoxLists();this.combineBBoxLists(u.sub,u.sup,p.subList,p.supList),this.combineBBoxLists(u.psub,u.psup,p.psubList,p.psupList),u.base=p.base[0],u.numPrescripts=p.psubList.length,u.numScripts=p.subList.length},l.prototype.getScriptBBoxLists=function(){var u,p,d={base:[],subList:[],supList:[],psubList:[],psupList:[]},h="base";try{for(var f=o(this.childNodes),m=f.next();!m.done;m=f.next()){var v=m.value;v.node.isKind("mprescripts")?h="psubList":(d[h].push(v.getOuterBBox()),h=e.NextScript[h])}}catch(g){u={error:g}}finally{try{m&&!m.done&&(p=f.return)&&p.call(f)}finally{if(u)throw u.error}}return this.firstPrescript=d.subList.length+d.supList.length+2,this.padLists(d.subList,d.supList),this.padLists(d.psubList,d.psupList),d},l.prototype.padLists=function(u,p){u.length>p.length&&p.push(i.BBox.empty())},l.prototype.combineBBoxLists=function(u,p,d,h){for(var f=0;f<d.length;f++){var m=r(this.getScaledWHD(d[f]),3),v=m[0],g=m[1],b=m[2],S=r(this.getScaledWHD(h[f]),3),E=S[0],x=S[1],O=S[2],A=Math.max(v,E);u.w+=A,p.w+=A,g>u.h&&(u.h=g),b>u.d&&(u.d=b),x>p.h&&(p.h=x),O>p.d&&(p.d=O)}},l.prototype.getScaledWHD=function(u){var p=u.w,d=u.h,h=u.d,f=u.rscale;return[p*f,d*f,h*f]},l.prototype.getUVQ=function(u,p){var d;if(!this.UVQ){var h=r([0,0,0],3),f=h[0],m=h[1],v=h[2];u.h===0&&u.d===0?f=this.getU():p.h===0&&p.d===0?f=-this.getV():(d=r(c.prototype.getUVQ.call(this,u,p),3),f=d[0],m=d[1],v=d[2]),this.UVQ=[f,m,v]}return this.UVQ},l})(s)}e.CommonMmultiscriptsMixin=a})(Db),ee(Db);var VU=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),LA=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.CHTMLmmultiscripts=void 0;var WU=Cn,$U=Db,zU=jn,KU=it;Nf.CHTMLmmultiscripts=(function(e){VU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n=this.standardCHTMLnode(r),o=this.scriptData,i=this.node.getProperty("scriptalign")||"right left",a=LA((0,KU.split)(i+" "+i),2),s=a[0],c=a[1],l=this.combinePrePost(o.sub,o.psub),u=this.combinePrePost(o.sup,o.psup),p=LA(this.getUVQ(l,u),2),d=p[0],h=p[1];if(o.numPrescripts){var f=this.addScripts(d,-h,!0,o.psub,o.psup,this.firstPrescript,o.numPrescripts);s!=="right"&&this.adaptor.setAttribute(f,"script-align",s)}if(this.childNodes[0].toCHTML(n),o.numScripts){var f=this.addScripts(d,-h,!1,o.sub,o.sup,1,o.numScripts);c!=="left"&&this.adaptor.setAttribute(f,"script-align",c)}},t.prototype.addScripts=function(r,n,o,i,a,s,c){for(var l=this.adaptor,u=r-a.d+(n-i.h),p=r<0&&n===0?i.h+r:r,d=u>0?{style:{height:this.em(u)}}:{},h=p?{style:{"vertical-align":this.em(p)}}:{},f=this.html("mjx-row"),m=this.html("mjx-row",d),v=this.html("mjx-row"),g="mjx-"+(o?"pre":"")+"scripts",b=s+2*c;s<b;)this.childNodes[s++].toCHTML(l.append(v,this.html("mjx-cell"))),this.childNodes[s++].toCHTML(l.append(f,this.html("mjx-cell")));return l.append(this.chtml,this.html(g,h,[f,m,v]))},t.kind=zU.MmlMmultiscripts.prototype.kind,t.styles={"mjx-prescripts":{display:"inline-table","padding-left":".05em"},"mjx-scripts":{display:"inline-table","padding-right":".05em"},"mjx-prescripts > mjx-row > mjx-cell":{"text-align":"right"},'[script-align="left"] > mjx-row > mjx-cell':{"text-align":"left"},'[script-align="center"] > mjx-row > mjx-cell':{"text-align":"center"},'[script-align="right"] > mjx-row > mjx-cell':{"text-align":"right"}},t})((0,$U.CommonMmultiscriptsMixin)(WU.CHTMLmsubsup));var _f={},wf={},Gs={};Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.max=Gs.sum=void 0;function JU(e){return e.reduce(function(t,r){return t+r},0)}Gs.sum=JU;function YU(e){return e.reduce(function(t,r){return Math.max(t,r)},0)}Gs.max=YU;var QU=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),wn=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),ZU=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),Rf=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(wf,"__esModule",{value:!0}),wf.CommonMtableMixin=void 0;var eH=cn,co=it,lo=Gs;function tH(e){return(function(t){QU(r,t);function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,ZU([],wn(n),!1))||this;i.numCols=0,i.numRows=0,i.data=null,i.pwidthCells=[],i.pWidth=0,i.numCols=(0,lo.max)(i.tableRows.map(function(s){return s.numCells})),i.numRows=i.childNodes.length,i.hasLabels=i.childNodes.reduce(function(s,c){return s||c.node.isKind("mlabeledtr")},!1),i.findContainer(),i.isTop=!i.container||i.container.node.isKind("math")&&!i.container.parent,i.isTop&&(i.jax.table=i),i.getPercentageWidth();var a=i.node.attributes;return i.frame=a.get("frame")!=="none",i.fLine=i.frame&&a.get("frame")?.07:0,i.fSpace=i.frame?i.convertLengths(i.getAttributeArray("framespacing")):[0,0],i.cSpace=i.convertLengths(i.getColumnAttributes("columnspacing")),i.rSpace=i.convertLengths(i.getRowAttributes("rowspacing")),i.cLines=i.getColumnAttributes("columnlines").map(function(s){return s==="none"?0:.07}),i.rLines=i.getRowAttributes("rowlines").map(function(s){return s==="none"?0:.07}),i.cWidths=i.getColumnWidths(),i.stretchRows(),i.stretchColumns(),i}return Object.defineProperty(r.prototype,"tableRows",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),r.prototype.findContainer=function(){for(var n=this,o=n.parent;o&&(o.node.notParent||o.node.isKind("mrow"));)n=o,o=o.parent;this.container=o,this.containerI=n.node.childPosition()},r.prototype.getPercentageWidth=function(){if(this.hasLabels)this.bbox.pwidth=eH.BBox.fullWidth;else{var n=this.node.attributes.get("width");(0,co.isPercent)(n)&&(this.bbox.pwidth=n)}},r.prototype.stretchRows=function(){for(var n=this.node.attributes.get("equalrows"),o=n?this.getEqualRowHeight():0,i=n?this.getTableData():{H:[0],D:[0]},a=i.H,s=i.D,c=this.tableRows,l=0;l<this.numRows;l++){var u=n?[(o+a[l]-s[l])/2,(o-a[l]+s[l])/2]:null;c[l].stretchChildren(u)}},r.prototype.stretchColumns=function(){for(var n=0;n<this.numCols;n++){var o=typeof this.cWidths[n]=="number"?this.cWidths[n]:null;this.stretchColumn(n,o)}},r.prototype.stretchColumn=function(n,o){var i,a,s,c,l,u,p=[];try{for(var d=Rf(this.tableRows),h=d.next();!h.done;h=d.next()){var f=h.value,m=f.getChild(n);if(m){var v=m.childNodes[0];v.stretch.dir===0&&v.canStretch(2)&&p.push(v)}}}catch(w){i={error:w}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}var g=p.length,b=this.childNodes.length;if(g&&b>1){if(o===null){o=0;var S=g>1&&g===b;try{for(var E=Rf(this.tableRows),x=E.next();!x.done;x=E.next()){var f=x.value,m=f.getChild(n);if(m){var v=m.childNodes[0],O=v.stretch.dir===0;if(S||O){var A=v.getBBox(O).w;A>o&&(o=A)}}}}catch(w){s={error:w}}finally{try{x&&!x.done&&(c=E.return)&&c.call(E)}finally{if(s)throw s.error}}}try{for(var M=Rf(p),C=M.next();!C.done;C=M.next()){var v=C.value;v.coreMO().getStretchedVariant([o])}}catch(w){l={error:w}}finally{try{C&&!C.done&&(u=M.return)&&u.call(M)}finally{if(l)throw l.error}}}},r.prototype.getTableData=function(){if(this.data)return this.data;for(var n=new Array(this.numRows).fill(0),o=new Array(this.numRows).fill(0),i=new Array(this.numCols).fill(0),a=new Array(this.numRows),s=new Array(this.numRows),c=[0],l=this.tableRows,u=0;u<l.length;u++){for(var p=0,d=l[u],h=d.node.attributes.get("rowalign"),f=0;f<d.numCells;f++){var m=d.getChild(f);p=this.updateHDW(m,f,u,h,n,o,i,p),this.recordPWidthCell(m,f)}a[u]=n[u],s[u]=o[u],d.labeled&&(p=this.updateHDW(d.childNodes[0],0,u,h,n,o,c,p)),this.extendHD(u,n,o,p),this.extendHD(u,a,s,p)}var v=c[0];return this.data={H:n,D:o,W:i,NH:a,ND:s,L:v},this.data},r.prototype.updateHDW=function(n,o,i,a,s,c,l,u){var p=n.getBBox(),d=p.h,h=p.d,f=p.w,m=n.parent.bbox.rscale;n.parent.bbox.rscale!==1&&(d*=m,h*=m,f*=m),this.node.getProperty("useHeight")&&(d<.75&&(d=.75),h<.25&&(h=.25));var v=0;return a=n.node.attributes.get("rowalign")||a,a!=="baseline"&&a!=="axis"&&(v=d+h,d=h=0),d>s[i]&&(s[i]=d),h>c[i]&&(c[i]=h),v>u&&(u=v),l&&f>l[o]&&(l[o]=f),u},r.prototype.extendHD=function(n,o,i,a){var s=(a-(o[n]+i[n]))/2;s<1e-5||(o[n]+=s,i[n]+=s)},r.prototype.recordPWidthCell=function(n,o){n.childNodes[0]&&n.childNodes[0].getBBox().pwidth&&this.pwidthCells.push([n,o])},r.prototype.computeBBox=function(n,o){var i=this.getTableData(),a=i.H,s=i.D,c,l;if(this.node.attributes.get("equalrows")){var u=this.getEqualRowHeight();c=(0,lo.sum)([].concat(this.rLines,this.rSpace))+u*this.numRows}else c=(0,lo.sum)(a.concat(s,this.rLines,this.rSpace));c+=2*(this.fLine+this.fSpace[1]);var p=this.getComputedWidths();l=(0,lo.sum)(p.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]);var d=this.node.attributes.get("width");d!=="auto"&&(l=Math.max(this.length2em(d,0)+2*this.fLine,l));var h=wn(this.getBBoxHD(c),2),f=h[0],m=h[1];n.h=f,n.d=m,n.w=l;var v=wn(this.getBBoxLR(),2),g=v[0],b=v[1];n.L=g,n.R=b,(0,co.isPercent)(d)||this.setColumnPWidths()},r.prototype.setChildPWidths=function(n,o,i){var a=this.node.attributes.get("width");if(!(0,co.isPercent)(a))return!1;this.hasLabels||(this.bbox.pwidth="",this.container.bbox.pwidth="");var s=this.bbox,c=s.w,l=s.L,u=s.R,p=this.node.attributes.get("data-width-includes-label"),d=Math.max(c,this.length2em(a,Math.max(o,l+c+u)))-(p?l+u:0),h=this.node.attributes.get("equalcolumns")?Array(this.numCols).fill(this.percent(1/Math.max(1,this.numCols))):this.getColumnAttributes("columnwidth",0);this.cWidths=this.getColumnWidthsFixed(h,d);var f=this.getComputedWidths();return this.pWidth=(0,lo.sum)(f.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]),this.isTop&&(this.bbox.w=this.pWidth),this.setColumnPWidths(),this.pWidth!==c&&this.parent.invalidateBBox(),this.pWidth!==c},r.prototype.setColumnPWidths=function(){var n,o,i=this.cWidths;try{for(var a=Rf(this.pwidthCells),s=a.next();!s.done;s=a.next()){var c=wn(s.value,2),l=c[0],u=c[1];l.setChildPWidths(!1,i[u])&&(l.invalidateBBox(),l.getBBox())}}catch(p){n={error:p}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},r.prototype.getBBoxHD=function(n){var o=wn(this.getAlignmentRow(),2),i=o[0],a=o[1];if(a===null){var s=this.font.params.axis_height,c=n/2;return{top:[0,n],center:[c,c],bottom:[n,0],baseline:[c,c],axis:[c+s,c-s]}[i]||[c,c]}else{var l=this.getVerticalPosition(a,i);return[l,n-l]}},r.prototype.getBBoxLR=function(){if(this.hasLabels){var n=this.node.attributes,o=n.get("side"),i=wn(this.getPadAlignShift(o),2),a=i[0],s=i[1],c=this.hasLabels&&!!n.get("data-width-includes-label");return c&&this.frame&&this.fSpace[0]&&(a-=this.fSpace[0]),s==="center"&&!c?[a,a]:o==="left"?[a,0]:[0,a]}return[0,0]},r.prototype.getPadAlignShift=function(n){var o=this.getTableData().L+this.length2em(this.node.attributes.get("minlabelspacing")),i=wn(this.styles==null?["",""]:[this.styles.get("padding-left"),this.styles.get("padding-right")],2),a=i[0],s=i[1];(a||s)&&(o=Math.max(o,this.length2em(a||"0"),this.length2em(s||"0")));var c=wn(this.getAlignShift(),2),l=c[0],u=c[1];return l===n&&(u=n==="left"?Math.max(o,u)-o:Math.min(-o,u)+o),[o,l,u]},r.prototype.getAlignShift=function(){return this.isTop?t.prototype.getAlignShift.call(this):[this.container.getChildAlign(this.containerI),0]},r.prototype.getWidth=function(){return this.pWidth||this.getBBox().w},r.prototype.getEqualRowHeight=function(){var n=this.getTableData(),o=n.H,i=n.D,a=Array.from(o.keys()).map(function(s){return o[s]+i[s]});return Math.max.apply(Math,a)},r.prototype.getComputedWidths=function(){var n=this,o=this.getTableData().W,i=Array.from(o.keys()).map(function(a){return typeof n.cWidths[a]=="number"?n.cWidths[a]:o[a]});return this.node.attributes.get("equalcolumns")&&(i=Array(i.length).fill((0,lo.max)(i))),i},r.prototype.getColumnWidths=function(){var n=this.node.attributes.get("width");if(this.node.attributes.get("equalcolumns"))return this.getEqualColumns(n);var o=this.getColumnAttributes("columnwidth",0);return n==="auto"?this.getColumnWidthsAuto(o):(0,co.isPercent)(n)?this.getColumnWidthsPercent(o):this.getColumnWidthsFixed(o,this.length2em(n))},r.prototype.getEqualColumns=function(n){var o=Math.max(1,this.numCols),i;if(n==="auto"){var a=this.getTableData().W;i=(0,lo.max)(a)}else if((0,co.isPercent)(n))i=this.percent(1/o);else{var s=(0,lo.sum)([].concat(this.cLines,this.cSpace))+2*this.fSpace[0];i=Math.max(0,this.length2em(n)-s)/o}return Array(this.numCols).fill(i)},r.prototype.getColumnWidthsAuto=function(n){var o=this;return n.map(function(i){return i==="auto"||i==="fit"?null:(0,co.isPercent)(i)?i:o.length2em(i)})},r.prototype.getColumnWidthsPercent=function(n){var o=this,i=n.indexOf("fit")>=0,a=(i?this.getTableData():{W:null}).W;return Array.from(n.keys()).map(function(s){var c=n[s];return c==="fit"?null:c==="auto"?i?a[s]:null:(0,co.isPercent)(c)?c:o.length2em(c)})},r.prototype.getColumnWidthsFixed=function(n,o){var i=this,a=Array.from(n.keys()),s=a.filter(function(f){return n[f]==="fit"}),c=a.filter(function(f){return n[f]==="auto"}),l=s.length||c.length,u=(l?this.getTableData():{W:null}).W,p=o-(0,lo.sum)([].concat(this.cLines,this.cSpace))-2*this.fSpace[0],d=p;a.forEach(function(f){var m=n[f];d-=m==="fit"||m==="auto"?u[f]:i.length2em(m,p)});var h=l&&d>0?d/l:0;return a.map(function(f){var m=n[f];return m==="fit"?u[f]+h:m==="auto"?u[f]+(s.length===0?h:0):i.length2em(m,p)})},r.prototype.getVerticalPosition=function(n,o){for(var i=this.node.attributes.get("equalrows"),a=this.getTableData(),s=a.H,c=a.D,l=i?this.getEqualRowHeight():0,u=this.getRowHalfSpacing(),p=this.fLine,d=0;d<n;d++)p+=u[d]+(i?l:s[d]+c[d])+u[d+1]+this.rLines[d];var h=wn(i?[(l+s[n]-c[n])/2,(l-s[n]+c[n])/2]:[s[n],c[n]],2),f=h[0],m=h[1],v={top:0,center:u[n]+(f+m)/2,bottom:u[n]+f+m+u[n+1],baseline:u[n]+f,axis:u[n]+f-.25};return p+=v[o]||0,p},r.prototype.getEmHalfSpacing=function(n,o,i){i===void 0&&(i=1);var a=this.em(n*i),s=this.addEm(o,2/i);return s.unshift(a),s.push(a),s},r.prototype.getRowHalfSpacing=function(){var n=this.rSpace.map(function(o){return o/2});return n.unshift(this.fSpace[1]),n.push(this.fSpace[1]),n},r.prototype.getColumnHalfSpacing=function(){var n=this.cSpace.map(function(o){return o/2});return n.unshift(this.fSpace[0]),n.push(this.fSpace[0]),n},r.prototype.getAlignmentRow=function(){var n=wn((0,co.split)(this.node.attributes.get("align")),2),o=n[0],i=n[1];if(i==null)return[o,null];var a=parseInt(i);return a<0&&(a+=this.numRows+1),[o,a<1||a>this.numRows?null:a-1]},r.prototype.getColumnAttributes=function(n,o){o===void 0&&(o=1);var i=this.numCols-o,a=this.getAttributeArray(n);if(a.length===0)return null;for(;a.length<i;)a.push(a[a.length-1]);return a.length>i&&a.splice(i),a},r.prototype.getRowAttributes=function(n,o){o===void 0&&(o=1);var i=this.numRows-o,a=this.getAttributeArray(n);if(a.length===0)return null;for(;a.length<i;)a.push(a[a.length-1]);return a.length>i&&a.splice(i),a},r.prototype.getAttributeArray=function(n){var o=this.node.attributes.get(n);return o?(0,co.split)(o):[this.node.attributes.getDefault(n)]},r.prototype.addEm=function(n,o){var i=this;return o===void 0&&(o=1),n?n.map(function(a){return i.em(a/o)}):null},r.prototype.convertLengths=function(n){var o=this;return n?n.map(function(i){return o.length2em(i)}):null},r})(e)}wf.CommonMtableMixin=tH;var rH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),wr=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),jb=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(_f,"__esModule",{value:!0}),_f.CHTMLmtable=void 0;var nH=ot,oH=wf,iH=Bc,IA=it;_f.CHTMLmtable=(function(e){rH(t,e);function t(r,n,o){o===void 0&&(o=null);var i=e.call(this,r,n,o)||this;return i.itable=i.html("mjx-itable"),i.labels=i.html("mjx-itable"),i}return t.prototype.getAlignShift=function(){var r=e.prototype.getAlignShift.call(this);return this.isTop||(r[1]=0),r},t.prototype.toCHTML=function(r){var n,o,i=this.standardCHTMLnode(r);this.adaptor.append(i,this.html("mjx-table",{},[this.itable]));try{for(var a=wr(this.childNodes),s=a.next();!s.done;s=a.next())s.value.toCHTML(this.itable)}catch(c){n={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}this.padRows(),this.handleColumnSpacing(),this.handleColumnLines(),this.handleColumnWidths(),this.handleRowSpacing(),this.handleRowLines(),this.handleRowHeights(),this.handleFrame(),this.handleWidth(),this.handleLabels(),this.handleAlign(),this.handleJustify(),this.shiftColor()},t.prototype.shiftColor=function(){var r=this.adaptor,n=r.getStyle(this.chtml,"backgroundColor");n&&(r.setStyle(this.chtml,"backgroundColor",""),r.setStyle(this.itable,"backgroundColor",n))},t.prototype.padRows=function(){var r,n,o=this.adaptor;try{for(var i=wr(o.childNodes(this.itable)),a=i.next();!a.done;a=i.next())for(var s=a.value;o.childNodes(s).length<this.numCols;)o.append(s,this.html("mjx-mtd",{extra:!0}))}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},t.prototype.handleColumnSpacing=function(){var r,n,o,i,a=this.childNodes[0]?1/this.childNodes[0].getBBox().rscale:1,s=this.getEmHalfSpacing(this.fSpace[0],this.cSpace,a),c=this.frame;try{for(var l=wr(this.tableRows),u=l.next();!u.done;u=l.next()){var p=u.value,d=0;try{for(var h=(o=void 0,wr(p.tableCells)),f=h.next();!f.done;f=h.next()){var m=f.value,v=s[d++],g=s[d],b=m?m.chtml:this.adaptor.childNodes(p.chtml)[d];(d>1&&v!=="0.4em"||c&&d===1)&&this.adaptor.setStyle(b,"paddingLeft",v),(d<this.numCols&&g!=="0.4em"||c&&d===this.numCols)&&this.adaptor.setStyle(b,"paddingRight",g)}}catch(S){o={error:S}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}}}catch(S){r={error:S}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}},t.prototype.handleColumnLines=function(){var r,n,o,i;if(this.node.attributes.get("columnlines")!=="none"){var a=this.getColumnAttributes("columnlines");try{for(var s=wr(this.childNodes),c=s.next();!c.done;c=s.next()){var l=c.value,u=0;try{for(var p=(o=void 0,wr(this.adaptor.childNodes(l.chtml).slice(1))),d=p.next();!d.done;d=p.next()){var h=d.value,f=a[u++];f!=="none"&&this.adaptor.setStyle(h,"borderLeft",".07em "+f)}}catch(m){o={error:m}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}catch(m){r={error:m}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}},t.prototype.handleColumnWidths=function(){var r,n,o,i;try{for(var a=wr(this.childNodes),s=a.next();!s.done;s=a.next()){var c=s.value,l=0;try{for(var u=(o=void 0,wr(this.adaptor.childNodes(c.chtml))),p=u.next();!p.done;p=u.next()){var d=p.value,h=this.cWidths[l++];if(h!==null){var f=typeof h=="number"?this.em(h):h;this.adaptor.setStyle(d,"width",f),this.adaptor.setStyle(d,"maxWidth",f),this.adaptor.setStyle(d,"minWidth",f)}}}catch(m){o={error:m}}finally{try{p&&!p.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}}}catch(m){r={error:m}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}},t.prototype.handleRowSpacing=function(){var r,n,o,i,a=this.childNodes[0]?1/this.childNodes[0].getBBox().rscale:1,s=this.getEmHalfSpacing(this.fSpace[1],this.rSpace,a),c=this.frame,l=0;try{for(var u=wr(this.childNodes),p=u.next();!p.done;p=u.next()){var d=p.value,h=s[l++],f=s[l];try{for(var m=(o=void 0,wr(d.childNodes)),v=m.next();!v.done;v=m.next()){var g=v.value;(l>1&&h!=="0.215em"||c&&l===1)&&this.adaptor.setStyle(g.chtml,"paddingTop",h),(l<this.numRows&&f!=="0.215em"||c&&l===this.numRows)&&this.adaptor.setStyle(g.chtml,"paddingBottom",f)}}catch(b){o={error:b}}finally{try{v&&!v.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}}}catch(b){r={error:b}}finally{try{p&&!p.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}},t.prototype.handleRowLines=function(){var r,n,o,i;if(this.node.attributes.get("rowlines")!=="none"){var a=this.getRowAttributes("rowlines"),s=0;try{for(var c=wr(this.childNodes.slice(1)),l=c.next();!l.done;l=c.next()){var u=l.value,p=a[s++];if(p!=="none")try{for(var d=(o=void 0,wr(this.adaptor.childNodes(u.chtml))),h=d.next();!h.done;h=d.next()){var f=h.value;this.adaptor.setStyle(f,"borderTop",".07em "+p)}}catch(m){o={error:m}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}catch(m){r={error:m}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}},t.prototype.handleRowHeights=function(){this.node.attributes.get("equalrows")&&this.handleEqualRows()},t.prototype.handleEqualRows=function(){for(var r=this.getRowHalfSpacing(),n=this.getTableData(),o=n.H,i=n.D,a=n.NH,s=n.ND,c=this.getEqualRowHeight(),l=0;l<this.numRows;l++){var u=this.childNodes[l];this.setRowHeight(u,c+r[l]+r[l+1]+this.rLines[l]),c!==a[l]+s[l]&&this.setRowBaseline(u,c,(c-o[l]+i[l])/2)}},t.prototype.setRowHeight=function(r,n){this.adaptor.setStyle(r.chtml,"height",this.em(n))},t.prototype.setRowBaseline=function(r,n,o){var i,a,s=r.node.attributes.get("rowalign");try{for(var c=wr(r.childNodes),l=c.next();!l.done;l=c.next()){var u=l.value;if(this.setCellBaseline(u,s,n,o))break}}catch(p){i={error:p}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}},t.prototype.setCellBaseline=function(r,n,o,i){var a=r.node.attributes.get("rowalign");if(a==="baseline"||a==="axis"){var s=this.adaptor,c=s.lastChild(r.chtml);s.setStyle(c,"height",this.em(o)),s.setStyle(c,"verticalAlign",this.em(-i));var l=r.parent;if((!l.node.isKind("mlabeledtr")||r!==l.childNodes[0])&&(n==="baseline"||n==="axis"))return!0}return!1},t.prototype.handleFrame=function(){this.frame&&this.fLine&&this.adaptor.setStyle(this.itable,"border",".07em "+this.node.attributes.get("frame"))},t.prototype.handleWidth=function(){var r=this.adaptor,n=this.getBBox(),o=n.w,i=n.L,a=n.R;r.setStyle(this.chtml,"minWidth",this.em(i+o+a));var s=this.node.attributes.get("width");if((0,IA.isPercent)(s))r.setStyle(this.chtml,"width",""),r.setAttribute(this.chtml,"width","full");else if(!this.hasLabels){if(s==="auto")return;s=this.em(this.length2em(s)+2*this.fLine)}var c=r.firstChild(this.chtml);if(r.setStyle(c,"width",s),r.setStyle(c,"minWidth",this.em(o)),i||a){r.setStyle(this.chtml,"margin","");var l=this.node.attributes.get("data-width-includes-label")?"padding":"margin";i===a?r.setStyle(c,l,"0 "+this.em(a)):r.setStyle(c,l,"0 "+this.em(a)+" 0 "+this.em(i))}r.setAttribute(this.itable,"width","full")},t.prototype.handleAlign=function(){var r=jb(this.getAlignmentRow(),2),n=r[0],o=r[1];if(o===null)n!=="axis"&&this.adaptor.setAttribute(this.chtml,"align",n);else{var i=this.getVerticalPosition(o,n);this.adaptor.setAttribute(this.chtml,"align","top"),this.adaptor.setStyle(this.chtml,"verticalAlign",this.em(i))}},t.prototype.handleJustify=function(){var r=this.getAlignShift()[0];r!=="center"&&this.adaptor.setAttribute(this.chtml,"justify",r)},t.prototype.handleLabels=function(){if(this.hasLabels){var r=this.labels,n=this.node.attributes,o=this.adaptor,i=n.get("side");o.setAttribute(this.chtml,"side",i),o.setAttribute(r,"align",i),o.setStyle(r,i,"0");var a=jb(this.addLabelPadding(i),2),s=a[0],c=a[1];if(c){var l=o.firstChild(this.chtml);this.setIndent(l,s,c)}this.updateRowHeights(),this.addLabelSpacing()}},t.prototype.addLabelPadding=function(r){var n=jb(this.getPadAlignShift(r),3),o=n[1],i=n[2],a={};if(r==="right"&&!this.node.attributes.get("data-width-includes-label")){var s=this.node.attributes.get("width"),c=this.getBBox(),l=c.w,u=c.L,p=c.R;a.style={width:(0,IA.isPercent)(s)?"calc("+s+" + "+this.em(u+p)+")":this.em(u+l+p)}}return this.adaptor.append(this.chtml,this.html("mjx-labels",a,[this.labels])),[o,i]},t.prototype.updateRowHeights=function(){for(var r=this.getTableData(),n=r.H,o=r.D,i=r.NH,a=r.ND,s=this.getRowHalfSpacing(),c=0;c<this.numRows;c++){var l=this.childNodes[c];this.setRowHeight(l,n[c]+o[c]+s[c]+s[c+1]+this.rLines[c]),n[c]!==i[c]||o[c]!==a[c]?this.setRowBaseline(l,n[c]+o[c],o[c]):l.node.isKind("mlabeledtr")&&this.setCellBaseline(l.childNodes[0],"",n[c]+o[c],o[c])}},t.prototype.addLabelSpacing=function(){for(var r=this.adaptor,n=this.node.attributes.get("equalrows"),o=this.getTableData(),i=o.H,a=o.D,s=n?this.getEqualRowHeight():0,c=this.getRowHalfSpacing(),l=this.fLine,u=r.firstChild(this.labels),p=0;p<this.numRows;p++)this.childNodes[p].node.isKind("mlabeledtr")?(l&&r.insert(this.html("mjx-mtr",{style:{height:this.em(l)}}),u),r.setStyle(u,"height",this.em((n?s:i[p]+a[p])+c[p]+c[p+1])),u=r.next(u),l=this.rLines[p]):l+=c[p]+(n?s:i[p]+a[p])+c[p+1]+this.rLines[p]},t.kind=iH.MmlMtable.prototype.kind,t.styles={"mjx-mtable":{"vertical-align":".25em","text-align":"center",position:"relative","box-sizing":"border-box","border-spacing":0,"border-collapse":"collapse"},'mjx-mstyle[size="s"] mjx-mtable':{"vertical-align":".354em"},"mjx-labels":{position:"absolute",left:0,top:0},"mjx-table":{display:"inline-block","vertical-align":"-.5ex","box-sizing":"border-box"},"mjx-table > mjx-itable":{"vertical-align":"middle","text-align":"left","box-sizing":"border-box"},"mjx-labels > mjx-itable":{position:"absolute",top:0},'mjx-mtable[justify="left"]':{"text-align":"left"},'mjx-mtable[justify="right"]':{"text-align":"right"},'mjx-mtable[justify="left"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="left"][side="right"]':{"padding-left":"0 ! important"},'mjx-mtable[justify="right"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="right"][side="right"]':{"padding-left":"0 ! important"},"mjx-mtable[align]":{"vertical-align":"baseline"},'mjx-mtable[align="top"] > mjx-table':{"vertical-align":"top"},'mjx-mtable[align="bottom"] > mjx-table':{"vertical-align":"bottom"},'mjx-mtable[side="right"] mjx-labels':{"min-width":"100%"}},t})((0,oH.CommonMtableMixin)(nH.CHTMLWrapper));var Xs={},Hi={},PA=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Fb=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.CommonMlabeledtrMixin=Hi.CommonMtrMixin=void 0;function aH(e){return(function(t){PA(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"numCells",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"labeled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tableCells",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),r.prototype.getChild=function(n){return this.childNodes[n]},r.prototype.getChildBBoxes=function(){return this.childNodes.map(function(n){return n.getBBox()})},r.prototype.stretchChildren=function(n){var o,i,a,s,c,l;n===void 0&&(n=null);var u=[],p=this.labeled?this.childNodes.slice(1):this.childNodes;try{for(var d=Fb(p),h=d.next();!h.done;h=d.next()){var f=h.value,m=f.childNodes[0];m.canStretch(1)&&u.push(m)}}catch(D){o={error:D}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}var v=u.length,g=this.childNodes.length;if(v&&g>1){if(n===null){var b=0,S=0,E=v>1&&v===g;try{for(var x=Fb(p),O=x.next();!O.done;O=x.next()){var f=O.value,m=f.childNodes[0],A=m.stretch.dir===0;if(E||A){var M=m.getBBox(A),C=M.h,w=M.d;C>b&&(b=C),w>S&&(S=w)}}}catch(D){a={error:D}}finally{try{O&&!O.done&&(s=x.return)&&s.call(x)}finally{if(a)throw a.error}}n=[b,S]}try{for(var k=Fb(u),L=k.next();!L.done;L=k.next()){var m=L.value;m.coreMO().getStretchedVariant(n)}}catch(D){c={error:D}}finally{try{L&&!L.done&&(l=k.return)&&l.call(k)}finally{if(c)throw c.error}}}},r})(e)}Hi.CommonMtrMixin=aH;function sH(e){return(function(t){PA(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"numCells",{get:function(){return Math.max(0,this.childNodes.length-1)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"labeled",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tableCells",{get:function(){return this.childNodes.slice(1)},enumerable:!1,configurable:!0}),r.prototype.getChild=function(n){return this.childNodes[n+1]},r.prototype.getChildBBoxes=function(){return this.childNodes.slice(1).map(function(n){return n.getBBox()})},r})(e)}Hi.CommonMlabeledtrMixin=sH;var kA=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.CHTMLmlabeledtr=Xs.CHTMLmtr=void 0;var cH=ot,lH=Hi,uH=Hi,BA=oi,Ub=(function(e){kA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){e.prototype.toCHTML.call(this,r);var n=this.node.attributes.get("rowalign");n!=="baseline"&&this.adaptor.setAttribute(this.chtml,"rowalign",n)},t.kind=BA.MmlMtr.prototype.kind,t.styles={"mjx-mtr":{display:"table-row"},'mjx-mtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}},t})((0,lH.CommonMtrMixin)(cH.CHTMLWrapper));Xs.CHTMLmtr=Ub,Xs.CHTMLmlabeledtr=(function(e){kA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){e.prototype.toCHTML.call(this,r);var n=this.adaptor.firstChild(this.chtml);if(n){this.adaptor.remove(n);var o=this.node.attributes.get("rowalign"),i=o!=="baseline"&&o!=="axis"?{rowalign:o}:{},a=this.html("mjx-mtr",i,[n]);this.adaptor.append(this.parent.labels,a)}},t.prototype.markUsed=function(){e.prototype.markUsed.call(this),this.jax.wrapperUsage.add(Ub.kind)},t.kind=BA.MmlMlabeledtr.prototype.kind,t.styles={"mjx-mlabeledtr":{display:"table-row"},'mjx-mlabeledtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mlabeledtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mlabeledtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mlabeledtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mlabeledtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}},t})((0,uH.CommonMlabeledtrMixin)(Ub));var Lf={},If={},pH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(If,"__esModule",{value:!0}),If.CommonMtdMixin=void 0;function dH(e){return(function(t){pH(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.invalidateBBox=function(){this.bboxComputed=!1},r.prototype.getWrapWidth=function(n){var o=this.parent.parent,i=this.parent,a=this.node.childPosition()-(i.labeled?1:0);return typeof o.cWidths[a]=="number"?o.cWidths[a]:o.getTableData().W[a]},r.prototype.getChildAlign=function(n){return this.node.attributes.get("columnalign")},r})(e)}If.CommonMtdMixin=dH;var hH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Lf,"__esModule",{value:!0}),Lf.CHTMLmtd=void 0;var fH=ot,mH=If,yH=Dc;Lf.CHTMLmtd=(function(e){hH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){e.prototype.toCHTML.call(this,r);var n=this.node.attributes.get("rowalign"),o=this.node.attributes.get("columnalign");n!==this.parent.node.attributes.get("rowalign")&&this.adaptor.setAttribute(this.chtml,"rowalign",n),o!=="center"&&(this.parent.kind!=="mlabeledtr"||this!==this.parent.childNodes[0]||o!==this.parent.parent.node.attributes.get("side"))&&this.adaptor.setStyle(this.chtml,"textAlign",o),this.parent.parent.node.getProperty("useHeight")&&this.adaptor.append(this.chtml,this.html("mjx-tstrut"))},t.kind=yH.MmlMtd.prototype.kind,t.styles={"mjx-mtd":{display:"table-cell","text-align":"center",padding:".215em .4em"},"mjx-mtd:first-child":{"padding-left":0},"mjx-mtd:last-child":{"padding-right":0},"mjx-mtable > * > mjx-itable > *:first-child > mjx-mtd":{"padding-top":0},"mjx-mtable > * > mjx-itable > *:last-child > mjx-mtd":{"padding-bottom":0},"mjx-tstrut":{display:"inline-block",height:"1em","vertical-align":"-.25em"},'mjx-labels[align="left"] > mjx-mtr > mjx-mtd':{"text-align":"left"},'mjx-labels[align="right"] > mjx-mtr > mjx-mtd':{"text-align":"right"},"mjx-mtd[extra]":{padding:0},'mjx-mtd[rowalign="top"]':{"vertical-align":"top"},'mjx-mtd[rowalign="center"]':{"vertical-align":"middle"},'mjx-mtd[rowalign="bottom"]':{"vertical-align":"bottom"},'mjx-mtd[rowalign="baseline"]':{"vertical-align":"baseline"},'mjx-mtd[rowalign="axis"]':{"vertical-align":".25em"}},t})((0,mH.CommonMtdMixin)(fH.CHTMLWrapper));var Pf={},kf={};(function(e){var t=y&&y.__extends||(function(){var a=function(s,c){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(l,u){l.__proto__=u})||(function(l,u){for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(l[p]=u[p])}),a(s,c)};return function(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(s,c);function l(){this.constructor=s}s.prototype=c===null?Object.create(c):(l.prototype=c.prototype,new l)}})(),r=y&&y.__read||(function(a,s){var c=typeof Symbol=="function"&&a[Symbol.iterator];if(!c)return a;var l=c.call(a),u,p=[],d;try{for(;(s===void 0||s-- >0)&&!(u=l.next()).done;)p.push(u.value)}catch(h){d={error:h}}finally{try{u&&!u.done&&(c=l.return)&&c.call(l)}finally{if(d)throw d.error}}return p}),n=y&&y.__spreadArray||(function(a,s,c){if(c||arguments.length===2)for(var l=0,u=s.length,p;l<u;l++)(p||!(l in s))&&(p||(p=Array.prototype.slice.call(s,0,l)),p[l]=s[l]);return a.concat(p||Array.prototype.slice.call(s))});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMactionMixin=e.TooltipData=void 0;var o=it;e.TooltipData={dx:".2em",dy:".1em",postDelay:600,clearDelay:100,hoverTimer:new Map,clearTimer:new Map,stopTimers:function(a,s){s.clearTimer.has(a)&&(clearTimeout(s.clearTimer.get(a)),s.clearTimer.delete(a)),s.hoverTimer.has(a)&&(clearTimeout(s.hoverTimer.get(a)),s.hoverTimer.delete(a))}};function i(a){return(function(s){t(c,s);function c(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var p=s.apply(this,n([],r(l),!1))||this,d=p.constructor.actions,h=p.node.attributes.get("actiontype"),f=r(d.get(h)||[function(g,b){},{}],2),m=f[0],v=f[1];return p.action=m,p.data=v,p.getParameters(),p}return Object.defineProperty(c.prototype,"selected",{get:function(){var l=this.node.attributes.get("selection"),u=Math.max(1,Math.min(this.childNodes.length,l))-1;return this.childNodes[u]||this.wrap(this.node.selected)},enumerable:!1,configurable:!0}),c.prototype.getParameters=function(){var l=this.node.attributes.get("data-offsets"),u=r((0,o.split)(l||""),2),p=u[0],d=u[1];this.dx=this.length2em(p||e.TooltipData.dx),this.dy=this.length2em(d||e.TooltipData.dy)},c.prototype.computeBBox=function(l,u){u===void 0&&(u=!1),l.updateFrom(this.selected.getOuterBBox()),this.selected.setChildPWidths(u)},c})(a)}e.CommonMactionMixin=i})(kf),ee(kf);var gH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Pf,"__esModule",{value:!0}),Pf.CHTMLmaction=void 0;var bH=ot,vH=kf,SH=kf,EH=Lc;Pf.CHTMLmaction=(function(e){gH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n=this.standardCHTMLnode(r);this.selected.toCHTML(n),this.action(this,this.data)},t.prototype.setEventHandler=function(r,n){this.chtml.addEventListener(r,n)},t.kind=EH.MmlMaction.prototype.kind,t.styles={"mjx-maction":{position:"relative"},"mjx-maction > mjx-tool":{display:"none",position:"absolute",bottom:0,right:0,width:0,height:0,"z-index":500},"mjx-tool > mjx-tip":{display:"inline-block",padding:".2em",border:"1px solid #888","font-size":"70%","background-color":"#F8F8F8",color:"black","box-shadow":"2px 2px 5px #AAAAAA"},"mjx-maction[toggle]":{cursor:"pointer"},"mjx-status":{display:"block",position:"fixed",left:"1em",bottom:"1em","min-width":"25%",padding:".2em .4em",border:"1px solid #888","font-size":"90%","background-color":"#F8F8F8",color:"black"}},t.actions=new Map([["toggle",[function(r,n){r.adaptor.setAttribute(r.chtml,"toggle",r.node.attributes.get("selection"));var o=r.factory.jax.math,i=r.factory.jax.document,a=r.node;r.setEventHandler("click",function(s){o.end.node||(o.start.node=o.end.node=o.typesetRoot,o.start.n=o.end.n=0),a.nextToggleSelection(),o.rerender(i),s.stopPropagation()})},{}]],["tooltip",[function(r,n){var o=r.childNodes[1];if(o)if(o.node.isKind("mtext")){var i=o.node.getText();r.adaptor.setAttribute(r.chtml,"title",i)}else{var a=r.adaptor,s=a.append(r.chtml,r.html("mjx-tool",{style:{bottom:r.em(-r.dy),right:r.em(-r.dx)}},[r.html("mjx-tip")]));o.toCHTML(a.firstChild(s)),r.setEventHandler("mouseover",function(c){n.stopTimers(r,n);var l=setTimeout(function(){return a.setStyle(s,"display","block")},n.postDelay);n.hoverTimer.set(r,l),c.stopPropagation()}),r.setEventHandler("mouseout",function(c){n.stopTimers(r,n);var l=setTimeout(function(){return a.setStyle(s,"display","")},n.clearDelay);n.clearTimer.set(r,l),c.stopPropagation()})}},SH.TooltipData]],["statusline",[function(r,n){var o=r.childNodes[1];if(o&&o.node.isKind("mtext")){var i=r.adaptor,a=o.node.getText();i.setAttribute(r.chtml,"statusline",a),r.setEventHandler("mouseover",function(s){if(n.status===null){var c=i.body(i.document);n.status=i.append(c,r.html("mjx-status",{},[r.text(a)]))}s.stopPropagation()}),r.setEventHandler("mouseout",function(s){n.status&&(i.remove(n.status),n.status=null),s.stopPropagation()})}},{status:null}]]]),t})((0,vH.CommonMactionMixin)(bH.CHTMLWrapper));var Bf={},Df={},xH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),MH=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),OH=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(Df,"__esModule",{value:!0}),Df.CommonMglyphMixin=void 0;function AH(e){return(function(t){xH(r,t);function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=t.apply(this,OH([],MH(n),!1))||this;return i.getParameters(),i}return r.prototype.getParameters=function(){var n=this.node.attributes.getList("width","height","valign","src","index"),o=n.width,i=n.height,a=n.valign,s=n.src,c=n.index;if(s)this.width=o==="auto"?1:this.length2em(o),this.height=i==="auto"?1:this.length2em(i),this.valign=this.length2em(a||"0");else{var l=String.fromCodePoint(parseInt(c)),u=this.node.factory;this.charWrapper=this.wrap(u.create("text").setText(l)),this.charWrapper.parent=this}},r.prototype.computeBBox=function(n,o){this.charWrapper?n.updateFrom(this.charWrapper.getBBox()):(n.w=this.width,n.h=this.height+this.valign,n.d=-this.valign)},r})(e)}Df.CommonMglyphMixin=AH;var TH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Bf,"__esModule",{value:!0}),Bf.CHTMLmglyph=void 0;var CH=ot,NH=Df,_H=jc;Bf.CHTMLmglyph=(function(e){TH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n=this.standardCHTMLnode(r);if(this.charWrapper){this.charWrapper.toCHTML(n);return}var o=this.node.attributes.getList("src","alt"),i=o.src,a=o.alt,s={width:this.em(this.width),height:this.em(this.height)};this.valign&&(s.verticalAlign=this.em(this.valign));var c=this.html("img",{src:i,style:s,alt:a,title:a});this.adaptor.append(n,c)},t.kind=_H.MmlMglyph.prototype.kind,t.styles={"mjx-mglyph > img":{display:"inline-block",border:0,padding:0}},t})((0,NH.CommonMglyphMixin)(CH.CHTMLWrapper));var Rn={},jf={},wH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(jf,"__esModule",{value:!0}),jf.CommonSemanticsMixin=void 0;function RH(e){return(function(t){wH(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.computeBBox=function(n,o){if(this.childNodes.length){var i=this.childNodes[0].getBBox(),a=i.w,s=i.h,c=i.d;n.w=a,n.h=s,n.d=c}},r})(e)}jf.CommonSemanticsMixin=RH;var Ff=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.CHTMLxml=Rn.CHTMLannotationXML=Rn.CHTMLannotation=Rn.CHTMLsemantics=void 0;var Uf=ot,LH=jf,Hb=Fn,IH=ce;Rn.CHTMLsemantics=(function(e){Ff(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n=this.standardCHTMLnode(r);this.childNodes.length&&this.childNodes[0].toCHTML(n)},t.kind=Hb.MmlSemantics.prototype.kind,t})((0,LH.CommonSemanticsMixin)(Uf.CHTMLWrapper)),Rn.CHTMLannotation=(function(e){Ff(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){e.prototype.toCHTML.call(this,r)},t.prototype.computeBBox=function(){return this.bbox},t.kind=Hb.MmlAnnotation.prototype.kind,t})(Uf.CHTMLWrapper),Rn.CHTMLannotationXML=(function(e){Ff(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.kind=Hb.MmlAnnotationXML.prototype.kind,t.styles={"mjx-annotation-xml":{"font-family":"initial","line-height":"normal"}},t})(Uf.CHTMLWrapper),Rn.CHTMLxml=(function(e){Ff(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){this.chtml=this.adaptor.append(r,this.adaptor.clone(this.node.getXML()))},t.prototype.computeBBox=function(r,n){var o=this.jax.measureXMLnode(this.node.getXML()),i=o.w,a=o.h,s=o.d;r.w=i,r.h=a,r.d=s},t.prototype.getStyles=function(){},t.prototype.getScale=function(){},t.prototype.getVariant=function(){},t.kind=IH.XMLNode.prototype.kind,t.autoStyle=!1,t})(Uf.CHTMLWrapper);var Hf={},qf={},PH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(qf,"__esModule",{value:!0}),qf.CommonTeXAtomMixin=void 0;var kH=ce;function BH(e){return(function(t){PH(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.computeBBox=function(n,o){if(o===void 0&&(o=!1),t.prototype.computeBBox.call(this,n,o),this.childNodes[0]&&this.childNodes[0].bbox.ic&&(n.ic=this.childNodes[0].bbox.ic),this.node.texClass===kH.TEXCLASS.VCENTER){var i=n.h,a=n.d,s=this.font.params.axis_height,c=(i+a)/2+s-i;n.h+=c,n.d-=c}},r})(e)}qf.CommonTeXAtomMixin=BH;var DH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Hf,"__esModule",{value:!0}),Hf.CHTMLTeXAtom=void 0;var jH=ot,FH=qf,UH=Fc,DA=ce;Hf.CHTMLTeXAtom=(function(e){DH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){if(e.prototype.toCHTML.call(this,r),this.adaptor.setAttribute(this.chtml,"texclass",DA.TEXCLASSNAMES[this.node.texClass]),this.node.texClass===DA.TEXCLASS.VCENTER){var n=this.childNodes[0].getBBox(),o=n.h,i=n.d,a=this.font.params.axis_height,s=(o+i)/2+a-o;this.adaptor.setStyle(this.chtml,"verticalAlign",this.em(s))}},t.kind=UH.TeXAtom.prototype.kind,t})((0,FH.CommonTeXAtomMixin)(jH.CHTMLWrapper));var Gf={},Xf={},HH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),qH=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),GH=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(Xf,"__esModule",{value:!0}),Xf.CommonTextNodeMixin=void 0;function XH(e){return(function(t){HH(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.computeBBox=function(n,o){var i,a,s=this.parent.variant,c=this.node.getText();if(s==="-explicitFont"){var l=this.jax.getFontData(this.parent.styles),u=this.jax.measureText(c,s,l),p=u.w,d=u.h,h=u.d;n.h=d,n.d=h,n.w=p}else{var f=this.remappedText(c,s);n.empty();try{for(var m=qH(f),v=m.next();!v.done;v=m.next()){var g=v.value,b=GH(this.getVariantChar(s,g),4),d=b[0],h=b[1],p=b[2],S=b[3];if(S.unknown){var E=this.jax.measureText(String.fromCodePoint(g),s);p=E.w,d=E.h,h=E.d}n.w+=p,d>n.h&&(n.h=d),h>n.d&&(n.d=h),n.ic=S.ic||0,n.sk=S.sk||0,n.dx=S.dx||0}}catch(x){i={error:x}}finally{try{v&&!v.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}f.length>1&&(n.sk=0),n.clean()}},r.prototype.remappedText=function(n,o){var i=this.parent.stretch.c;return i?[i]:this.parent.remapChars(this.unicodeChars(n,o))},r.prototype.getStyles=function(){},r.prototype.getVariant=function(){},r.prototype.getScale=function(){},r.prototype.getSpace=function(){},r})(e)}Xf.CommonTextNodeMixin=XH;var VH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),WH=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Gf,"__esModule",{value:!0}),Gf.CHTMLTextNode=void 0;var $H=ce,zH=ot;Gf.CHTMLTextNode=(function(e){VH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.toCHTML=function(r){var n,o;this.markUsed();var i=this.adaptor,a=this.parent.variant,s=this.node.getText();if(s.length!==0)if(a==="-explicitFont")i.append(r,this.jax.unknownText(s,a,this.getBBox().w));else{var c=this.remappedText(s,a);try{for(var l=WH(c),u=l.next();!u.done;u=l.next()){var p=u.value,d=this.getVariantChar(a,p)[3],h=d.f?" TEX-"+d.f:"",f=d.unknown?this.jax.unknownText(String.fromCodePoint(p),a):this.html("mjx-c",{class:this.char(p)+h});i.append(r,f),!d.unknown&&this.font.charUsage.add([a,p])}}catch(m){n={error:m}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}},t.kind=$H.TextNode.prototype.kind,t.autoStyle=!1,t.styles={"mjx-c":{display:"inline-block"},"mjx-utext":{display:"inline-block",padding:".75em 0 .2em 0"}},t})((0,Xf.CommonTextNodeMixin)(zH.CHTMLWrapper));var Ne;Object.defineProperty(Vh,"__esModule",{value:!0}),Vh.CHTMLWrappers=void 0;var jA=ot,FA=Jh,UA=Qh,HA=ef,qA=nf,GA=af,XA=cf,VA=uf,WA=df,$A=ff,Vf=Us,zA=bf,KA=Sf,JA=nu,YA=Mf,Vs=Cn,Ws=Jo,QA=Nf,ZA=_f,Wf=Xs,eT=Lf,tT=Pf,rT=Bf,Yo=Rn,nT=Hf,oT=Gf;Vh.CHTMLWrappers=(Ne={},Ne[FA.CHTMLmath.kind]=FA.CHTMLmath,Ne[Vf.CHTMLmrow.kind]=Vf.CHTMLmrow,Ne[Vf.CHTMLinferredMrow.kind]=Vf.CHTMLinferredMrow,Ne[UA.CHTMLmi.kind]=UA.CHTMLmi,Ne[HA.CHTMLmo.kind]=HA.CHTMLmo,Ne[qA.CHTMLmn.kind]=qA.CHTMLmn,Ne[GA.CHTMLms.kind]=GA.CHTMLms,Ne[XA.CHTMLmtext.kind]=XA.CHTMLmtext,Ne[VA.CHTMLmspace.kind]=VA.CHTMLmspace,Ne[WA.CHTMLmpadded.kind]=WA.CHTMLmpadded,Ne[$A.CHTMLmenclose.kind]=$A.CHTMLmenclose,Ne[KA.CHTMLmfrac.kind]=KA.CHTMLmfrac,Ne[JA.CHTMLmsqrt.kind]=JA.CHTMLmsqrt,Ne[YA.CHTMLmroot.kind]=YA.CHTMLmroot,Ne[Vs.CHTMLmsub.kind]=Vs.CHTMLmsub,Ne[Vs.CHTMLmsup.kind]=Vs.CHTMLmsup,Ne[Vs.CHTMLmsubsup.kind]=Vs.CHTMLmsubsup,Ne[Ws.CHTMLmunder.kind]=Ws.CHTMLmunder,Ne[Ws.CHTMLmover.kind]=Ws.CHTMLmover,Ne[Ws.CHTMLmunderover.kind]=Ws.CHTMLmunderover,Ne[QA.CHTMLmmultiscripts.kind]=QA.CHTMLmmultiscripts,Ne[zA.CHTMLmfenced.kind]=zA.CHTMLmfenced,Ne[ZA.CHTMLmtable.kind]=ZA.CHTMLmtable,Ne[Wf.CHTMLmtr.kind]=Wf.CHTMLmtr,Ne[Wf.CHTMLmlabeledtr.kind]=Wf.CHTMLmlabeledtr,Ne[eT.CHTMLmtd.kind]=eT.CHTMLmtd,Ne[tT.CHTMLmaction.kind]=tT.CHTMLmaction,Ne[rT.CHTMLmglyph.kind]=rT.CHTMLmglyph,Ne[Yo.CHTMLsemantics.kind]=Yo.CHTMLsemantics,Ne[Yo.CHTMLannotation.kind]=Yo.CHTMLannotation,Ne[Yo.CHTMLannotationXML.kind]=Yo.CHTMLannotationXML,Ne[Yo.CHTMLxml.kind]=Yo.CHTMLxml,Ne[nT.CHTMLTeXAtom.kind]=nT.CHTMLTeXAtom,Ne[oT.CHTMLTextNode.kind]=oT.CHTMLTextNode,Ne[jA.CHTMLWrapper.kind]=jA.CHTMLWrapper,Ne);var KH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(qh,"__esModule",{value:!0});var qb=qh.CHTMLWrapperFactory=void 0,JH=Gh,YH=Vh;qb=qh.CHTMLWrapperFactory=(function(e){KH(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.defaultNodes=YH.CHTMLWrappers,t})(JH.CommonWrapperFactory);var ou={};Object.defineProperty(ou,"__esModule",{value:!0}),ou.Usage=void 0,ou.Usage=(function(){function e(){this.used=new Set,this.needsUpdate=[]}return e.prototype.add=function(t){var r=JSON.stringify(t);this.used.has(r)||this.needsUpdate.push(t),this.used.add(r)},e.prototype.has=function(t){return this.used.has(JSON.stringify(t))},e.prototype.clear=function(){this.used.clear(),this.needsUpdate=[]},e.prototype.update=function(){var t=this.needsUpdate;return this.needsUpdate=[],t},e})();var $f={},Nt={};(function(e){var t=y&&y.__extends||(function(){var p=function(d,h){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(f,m){f.__proto__=m})||(function(f,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(f[v]=m[v])}),p(d,h)};return function(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");p(d,h);function f(){this.constructor=d}d.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}})(),r=y&&y.__assign||(function(){return r=Object.assign||(function(p){for(var d,h=1,f=arguments.length;h<f;h++){d=arguments[h];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(p[m]=d[m])}return p}),r.apply(this,arguments)}),n=y&&y.__createBinding||(Object.create?function(p,d,h,f){f===void 0&&(f=h);var m=Object.getOwnPropertyDescriptor(d,h);(!m||("get"in m?!d.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(p,f,m)}:function(p,d,h,f){f===void 0&&(f=h),p[f]=d[h]}),o=y&&y.__exportStar||(function(p,d){for(var h in p)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&n(d,p,h)}),i=y&&y.__values||(function(p){var d=typeof Symbol=="function"&&Symbol.iterator,h=d&&p[d],f=0;if(h)return h.call(p);if(p&&typeof p.length=="number")return{next:function(){return p&&f>=p.length&&(p=void 0),{value:p&&p[f++],done:!p}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")}),a=y&&y.__read||(function(p,d){var h=typeof Symbol=="function"&&p[Symbol.iterator];if(!h)return p;var f=h.call(p),m,v=[],g;try{for(;(d===void 0||d-- >0)&&!(m=f.next()).done;)v.push(m.value)}catch(b){g={error:b}}finally{try{m&&!m.done&&(h=f.return)&&h.call(f)}finally{if(g)throw g.error}}return v});Object.defineProperty(e,"__esModule",{value:!0}),e.AddCSS=e.CHTMLFontData=void 0;var s=mr,c=ou,l=hr;o(mr,e),e.CHTMLFontData=(function(p){t(d,p);function d(){var h=p!==null&&p.apply(this,arguments)||this;return h.charUsage=new c.Usage,h.delimUsage=new c.Usage,h}return d.charOptions=function(h,f){return p.charOptions.call(this,h,f)},d.prototype.adaptiveCSS=function(h){this.options.adaptiveCSS=h},d.prototype.clearCache=function(){this.options.adaptiveCSS&&(this.charUsage.clear(),this.delimUsage.clear())},d.prototype.createVariant=function(h,f,m){f===void 0&&(f=null),m===void 0&&(m=null),p.prototype.createVariant.call(this,h,f,m);var v=this.constructor;this.variant[h].classes=v.defaultVariantClasses[h],this.variant[h].letter=v.defaultVariantLetters[h]},d.prototype.defineChars=function(h,f){var m,v;p.prototype.defineChars.call(this,h,f);var g=this.variant[h].letter;try{for(var b=i(Object.keys(f)),S=b.next();!S.done;S=b.next()){var E=S.value,x=d.charOptions(f,parseInt(E));x.f===void 0&&(x.f=g)}}catch(O){m={error:O}}finally{try{S&&!S.done&&(v=b.return)&&v.call(b)}finally{if(m)throw m.error}}},Object.defineProperty(d.prototype,"styles",{get:function(){var h=this.constructor,f=r({},h.defaultStyles);return this.addFontURLs(f,h.defaultFonts,this.options.fontURL),this.options.adaptiveCSS?this.updateStyles(f):this.allStyles(f),f},enumerable:!1,configurable:!0}),d.prototype.updateStyles=function(h){var f,m,v,g;try{for(var b=i(this.delimUsage.update()),S=b.next();!S.done;S=b.next()){var E=S.value;this.addDelimiterStyles(h,E,this.delimiters[E])}}catch(w){f={error:w}}finally{try{S&&!S.done&&(m=b.return)&&m.call(b)}finally{if(f)throw f.error}}try{for(var x=i(this.charUsage.update()),O=x.next();!O.done;O=x.next()){var A=a(O.value,2),M=A[0],E=A[1],C=this.variant[M];this.addCharStyles(h,C.letter,E,C.chars[E])}}catch(w){v={error:w}}finally{try{O&&!O.done&&(g=x.return)&&g.call(x)}finally{if(v)throw v.error}}return h},d.prototype.allStyles=function(h){var f,m,v,g,b,S;try{for(var E=i(Object.keys(this.delimiters)),x=E.next();!x.done;x=E.next()){var O=x.value,A=parseInt(O);this.addDelimiterStyles(h,A,this.delimiters[A])}}catch(G){f={error:G}}finally{try{x&&!x.done&&(m=E.return)&&m.call(E)}finally{if(f)throw f.error}}try{for(var M=i(Object.keys(this.variant)),C=M.next();!C.done;C=M.next()){var w=C.value,k=this.variant[w],L=k.letter;try{for(var D=(b=void 0,i(Object.keys(k.chars))),P=D.next();!P.done;P=D.next()){var O=P.value,A=parseInt(O),F=k.chars[A];(F[3]||{}).smp||(F.length<4&&(F[3]={}),this.addCharStyles(h,L,A,F))}}catch(G){b={error:G}}finally{try{P&&!P.done&&(S=D.return)&&S.call(D)}finally{if(b)throw b.error}}}}catch(G){v={error:G}}finally{try{C&&!C.done&&(g=M.return)&&g.call(M)}finally{if(v)throw v.error}}},d.prototype.addFontURLs=function(h,f,m){var v,g;try{for(var b=i(Object.keys(f)),S=b.next();!S.done;S=b.next()){var E=S.value,x=r({},f[E]);x.src=x.src.replace(/%%URL%%/,m),h[E]=x}}catch(O){v={error:O}}finally{try{S&&!S.done&&(g=b.return)&&g.call(b)}finally{if(v)throw v.error}}},d.prototype.addDelimiterStyles=function(h,f,m){var v=this.charSelector(f);m.c&&m.c!==f&&(v=this.charSelector(m.c),h[".mjx-stretched mjx-c"+v+"::before"]={content:this.charContent(m.c)}),m.stretch&&(m.dir===1?this.addDelimiterVStyles(h,v,m):this.addDelimiterHStyles(h,v,m))},d.prototype.addDelimiterVStyles=function(h,f,m){var v=m.HDW,g=a(m.stretch,4),b=g[0],S=g[1],E=g[2],x=g[3],O=this.addDelimiterVPart(h,f,"beg",b,v);this.addDelimiterVPart(h,f,"ext",S,v);var A=this.addDelimiterVPart(h,f,"end",E,v),M={};if(x){var C=this.addDelimiterVPart(h,f,"mid",x,v);M.height="50%",h["mjx-stretchy-v"+f+" > mjx-mid"]={"margin-top":this.em(-C/2),"margin-bottom":this.em(-C/2)}}O&&(M["border-top-width"]=this.em0(O-.03)),A&&(M["border-bottom-width"]=this.em0(A-.03),h["mjx-stretchy-v"+f+" > mjx-end"]={"margin-top":this.em(-A)}),Object.keys(M).length&&(h["mjx-stretchy-v"+f+" > mjx-ext"]=M)},d.prototype.addDelimiterVPart=function(h,f,m,v,g){if(!v)return 0;var b=this.getDelimiterData(v),S=(g[2]-b[2])/2,E={content:this.charContent(v)};return m!=="ext"?E.padding=this.padding(b,S):(E.width=this.em0(g[2]),S&&(E["padding-left"]=this.em0(S))),h["mjx-stretchy-v"+f+" mjx-"+m+" mjx-c::before"]=E,b[0]+b[1]},d.prototype.addDelimiterHStyles=function(h,f,m){var v=a(m.stretch,4),g=v[0],b=v[1],S=v[2],E=v[3],x=m.HDW;this.addDelimiterHPart(h,f,"beg",g,x),this.addDelimiterHPart(h,f,"ext",b,x),this.addDelimiterHPart(h,f,"end",S,x),E&&(this.addDelimiterHPart(h,f,"mid",E,x),h["mjx-stretchy-h"+f+" > mjx-ext"]={width:"50%"})},d.prototype.addDelimiterHPart=function(h,f,m,v,g){if(v){var b=this.getDelimiterData(v)[3],S={content:b&&b.c?'"'+b.c+'"':this.charContent(v)};S.padding=this.padding(g,0,-g[2]),h["mjx-stretchy-h"+f+" mjx-"+m+" mjx-c::before"]=S}},d.prototype.addCharStyles=function(h,f,m,v){var g=v[3],b=g.f!==void 0?g.f:f,S="mjx-c"+this.charSelector(m)+(b?".TEX-"+b:"");h[S+"::before"]={padding:this.padding(v,0,g.ic||0),content:g.c!=null?'"'+g.c+'"':this.charContent(m)}},d.prototype.getDelimiterData=function(h){return this.getChar("-smallop",h)},d.prototype.em=function(h){return(0,l.em)(h)},d.prototype.em0=function(h){return(0,l.em)(Math.max(0,h))},d.prototype.padding=function(h,f,m){var v=a(h,3),g=v[0],b=v[1],S=v[2];return f===void 0&&(f=0),m===void 0&&(m=0),[g,S+m,b,f].map(this.em0).join(" ")},d.prototype.charContent=function(h){return'"'+(h>=32&&h<=126&&h!==34&&h!==39&&h!==92?String.fromCharCode(h):"\\"+h.toString(16).toUpperCase())+'"'},d.prototype.charSelector=function(h){return".mjx-c"+h.toString(16).toUpperCase()},d.OPTIONS=r(r({},s.FontData.OPTIONS),{fontURL:"js/output/chtml/fonts/tex-woff-v2"}),d.JAX="CHTML",d.defaultVariantClasses={},d.defaultVariantLetters={},d.defaultStyles={"mjx-c::before":{display:"block",width:0}},d.defaultFonts={"@font-face /* 0 */":{"font-family":"MJXZERO",src:'url("%%URL%%/MathJax_Zero.woff") format("woff")'}},d})(s.FontData);function u(p,d){var h,f;try{for(var m=i(Object.keys(d)),v=m.next();!v.done;v=m.next()){var g=v.value,b=parseInt(g);Object.assign(s.FontData.charOptions(p,b),d[b])}}catch(S){h={error:S}}finally{try{v&&!v.done&&(f=m.return)&&f.call(m)}finally{if(h)throw h.error}}return p}e.AddCSS=u})(Nt),ee(Nt);var zf={},QH=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Kf=y&&y.__assign||(function(){return Kf=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Kf.apply(this,arguments)}),ZH=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),iT=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(zf,"__esModule",{value:!0}),zf.CommonTeXFontMixin=void 0;function eq(e){var t=(function(r){QH(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}return n.prototype.getDelimiterData=function(o){return this.getChar("-smallop",o)||this.getChar("-size4",o)},n})(e);return t.NAME="TeX",t.defaultVariants=iT(iT([],ZH(e.defaultVariants),!1),[["-smallop","normal"],["-largeop","normal"],["-size3","normal"],["-size4","normal"],["-tex-calligraphic","italic"],["-tex-bold-calligraphic","bold-italic"],["-tex-oldstyle","normal"],["-tex-bold-oldstyle","bold"],["-tex-mathit","italic"],["-tex-variant","normal"]],!1),t.defaultCssFonts=Kf(Kf({},e.defaultCssFonts),{"-smallop":["serif",!1,!1],"-largeop":["serif",!1,!1],"-size3":["serif",!1,!1],"-size4":["serif",!1,!1],"-tex-calligraphic":["cursive",!0,!1],"-tex-bold-calligraphic":["cursive",!0,!0],"-tex-oldstyle":["serif",!1,!1],"-tex-bold-oldstyle":["serif",!1,!0],"-tex-mathit":["serif",!0,!1]}),t.defaultSizeVariants=["normal","-smallop","-largeop","-size3","-size4","-tex-variant"],t.defaultStretchVariants=["-size4"],t}zf.CommonTeXFontMixin=eq;var Jf={},Yf={};Object.defineProperty(Yf,"__esModule",{value:!0}),Yf.boldItalic=void 0,Yf.boldItalic={47:[.711,.21,.894],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}],8260:[.711,.21,.894],8710:[.711,0,.958,{sk:.192}],10744:[.711,.21,.894]},Object.defineProperty(Jf,"__esModule",{value:!0}),Jf.boldItalic=void 0;var tq=Nt,rq=Yf;Jf.boldItalic=(0,tq.AddCSS)(rq.boldItalic,{305:{f:"B"},567:{f:"B"},8260:{c:"/"},8710:{c:"\\394"},10744:{c:"/"}});var Qf={},Zf={};Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.bold=void 0,Zf.bold={33:[.705,0,.35],34:[.694,-.329,.603],35:[.694,.193,.958],36:[.75,.056,.575],37:[.75,.056,.958],38:[.705,.011,.894],39:[.694,-.329,.319],40:[.75,.249,.447],41:[.75,.249,.447],42:[.75,-.306,.575],43:[.633,.131,.894],44:[.171,.194,.319],45:[.278,-.166,.383],46:[.171,0,.319],47:[.75,.25,.575],58:[.444,0,.319],59:[.444,.194,.319],60:[.587,.085,.894],61:[.393,-.109,.894],62:[.587,.085,.894],63:[.7,0,.543],64:[.699,.006,.894],91:[.75,.25,.319],92:[.75,.25,.575],93:[.75,.25,.319],94:[.694,-.52,.575],95:[-.01,.061,.575],96:[.706,-.503,.575],123:[.75,.25,.575],124:[.75,.249,.319],125:[.75,.25,.575],126:[.344,-.202,.575],168:[.695,-.535,.575],172:[.371,-.061,.767],175:[.607,-.54,.575],176:[.702,-.536,.575],177:[.728,.035,.894],180:[.706,-.503,.575],183:[.336,-.166,.319],215:[.53,.028,.894],247:[.597,.096,.894],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.563,-.033,.344],710:[.694,-.52,.575],711:[.66,-.515,.575],713:[.607,-.54,.575],714:[.706,-.503,.575],715:[.706,-.503,.575],728:[.694,-.5,.575],729:[.695,-.525,.575],730:[.702,-.536,.575],732:[.694,-.552,.575],768:[.706,-.503,0],769:[.706,-.503,0],770:[.694,-.52,0],771:[.694,-.552,0],772:[.607,-.54,0],774:[.694,-.5,0],775:[.695,-.525,0],776:[.695,-.535,0],778:[.702,-.536,0],779:[.714,-.511,0],780:[.66,-.515,0],824:[.711,.21,0],8194:[0,0,.5],8195:[0,0,.999],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.083],8211:[.3,-.249,.575],8212:[.3,-.249,1.15],8213:[.3,-.249,1.15],8214:[.75,.248,.575],8215:[-.01,.061,.575],8216:[.694,-.329,.319],8217:[.694,-.329,.319],8220:[.694,-.329,.603],8221:[.694,-.329,.603],8224:[.702,.211,.511],8225:[.702,.202,.511],8226:[.474,-.028,.575],8230:[.171,0,1.295],8242:[.563,-.033,.344],8243:[.563,0,.688],8244:[.563,0,1.032],8254:[.607,-.54,.575],8260:[.75,.25,.575],8279:[.563,0,1.376],8407:[.723,-.513,.575],8463:[.694,.008,.668,{sk:-.0319}],8467:[.702,.019,.474,{sk:.128}],8472:[.461,.21,.74],8501:[.694,0,.703],8592:[.518,.017,1.15],8593:[.694,.193,.575],8594:[.518,.017,1.15],8595:[.694,.194,.575],8596:[.518,.017,1.15],8597:[.767,.267,.575],8598:[.724,.194,1.15],8599:[.724,.193,1.15],8600:[.694,.224,1.15],8601:[.694,.224,1.15],8602:[.711,.21,1.15],8603:[.711,.21,1.15],8614:[.518,.017,1.15],8617:[.518,.017,1.282],8618:[.518,.017,1.282],8622:[.711,.21,1.15],8636:[.518,-.22,1.15],8637:[.281,.017,1.15],8640:[.518,-.22,1.15],8641:[.281,.017,1.15],8652:[.718,.017,1.15],8653:[.711,.21,1.15],8654:[.711,.21,1.15],8655:[.711,.21,1.15],8656:[.547,.046,1.15],8657:[.694,.193,.703],8658:[.547,.046,1.15],8659:[.694,.194,.703],8660:[.547,.046,1.15],8661:[.767,.267,.703],8704:[.694,.016,.639],8707:[.694,0,.639],8708:[.711,.21,.639],8709:[.767,.073,.575],8710:[.698,0,.958],8712:[.587,.086,.767],8713:[.711,.21,.767],8715:[.587,.086,.767],8716:[.711,.21,.767],8722:[.281,-.221,.894],8723:[.537,.227,.894],8725:[.75,.25,.575],8726:[.75,.25,.575],8727:[.472,-.028,.575],8728:[.474,-.028,.575],8729:[.474,-.028,.575],8730:[.82,.18,.958,{ic:.03}],8733:[.451,.008,.894],8734:[.452,.008,1.15],8736:[.714,0,.722],8739:[.75,.249,.319],8740:[.75,.249,.319],8741:[.75,.248,.575],8742:[.75,.248,.575],8743:[.604,.017,.767],8744:[.604,.016,.767],8745:[.603,.016,.767],8746:[.604,.016,.767],8747:[.711,.211,.569,{ic:.063}],8764:[.391,-.109,.894],8768:[.583,.082,.319],8769:[.711,.21,.894],8771:[.502,0,.894],8772:[.711,.21,.894],8773:[.638,.027,.894],8775:[.711,.21,.894],8776:[.524,-.032,.894],8777:[.711,.21,.894],8781:[.533,.032,.894],8784:[.721,-.109,.894],8800:[.711,.21,.894],8801:[.505,0,.894],8802:[.711,.21,.894],8804:[.697,.199,.894],8805:[.697,.199,.894],8810:[.617,.116,1.15],8811:[.618,.116,1.15],8813:[.711,.21,.894],8814:[.711,.21,.894],8815:[.711,.21,.894],8816:[.711,.21,.894],8817:[.711,.21,.894],8826:[.585,.086,.894],8827:[.586,.086,.894],8832:[.711,.21,.894],8833:[.711,.21,.894],8834:[.587,.085,.894],8835:[.587,.086,.894],8836:[.711,.21,.894],8837:[.711,.21,.894],8838:[.697,.199,.894],8839:[.697,.199,.894],8840:[.711,.21,.894],8841:[.711,.21,.894],8846:[.604,.016,.767],8849:[.697,.199,.894],8850:[.697,.199,.894],8851:[.604,0,.767],8852:[.604,0,.767],8853:[.632,.132,.894],8854:[.632,.132,.894],8855:[.632,.132,.894],8856:[.632,.132,.894],8857:[.632,.132,.894],8866:[.693,0,.703],8867:[.693,0,.703],8868:[.694,0,.894],8869:[.693,0,.894],8872:[.75,.249,.974],8876:[.711,.21,.703],8877:[.75,.249,.974],8900:[.523,.021,.575],8901:[.336,-.166,.319],8902:[.502,0,.575],8904:[.54,.039,1],8930:[.711,.21,.894],8931:[.711,.21,.894],8942:[.951,.029,.319],8943:[.336,-.166,1.295],8945:[.871,-.101,1.323],8968:[.75,.248,.511],8969:[.75,.248,.511],8970:[.749,.248,.511],8971:[.749,.248,.511],8994:[.405,-.108,1.15],8995:[.392,-.126,1.15],9001:[.75,.249,.447],9002:[.75,.249,.447],9651:[.711,0,1.022],9653:[.711,0,1.022],9657:[.54,.039,.575],9661:[.5,.21,1.022],9663:[.5,.21,1.022],9667:[.539,.038,.575],9711:[.711,.211,1.15],9824:[.719,.129,.894],9825:[.711,.024,.894],9826:[.719,.154,.894],9827:[.719,.129,.894],9837:[.75,.017,.447],9838:[.741,.223,.447],9839:[.724,.224,.447],10072:[.75,.249,.319],10216:[.75,.249,.447],10217:[.75,.249,.447],10229:[.518,.017,1.805],10230:[.518,.017,1.833],10231:[.518,.017,2.126],10232:[.547,.046,1.868],10233:[.547,.046,1.87],10234:[.547,.046,2.126],10236:[.518,.017,1.833],10744:[.711,.21,.894],10799:[.53,.028,.894],10815:[.686,0,.9],10927:[.696,.199,.894],10928:[.697,.199,.894],12296:[.75,.249,.447],12297:[.75,.249,.447]},Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.bold=void 0;var nq=Nt,oq=Zf;Qf.bold=(0,nq.AddCSS)(oq.bold,{183:{c:"\\22C5"},305:{f:""},567:{f:""},697:{c:"\\2032"},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8407:{c:"\\2192",f:"VB"},8602:{c:"\\2190\\338"},8603:{c:"\\2192\\338"},8622:{c:"\\2194\\338"},8653:{c:"\\21D0\\338"},8654:{c:"\\21D4\\338"},8655:{c:"\\21D2\\338"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8740:{c:"\\2223\\338"},8742:{c:"\\2225\\338"},8769:{c:"\\223C\\338"},8772:{c:"\\2243\\338"},8775:{c:"\\2245\\338"},8777:{c:"\\2248\\338"},8802:{c:"\\2261\\338"},8813:{c:"\\224D\\338"},8814:{c:"<\\338"},8815:{c:">\\338"},8816:{c:"\\2264\\338"},8817:{c:"\\2265\\338"},8832:{c:"\\227A\\338"},8833:{c:"\\227B\\338"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{c:"\\2286\\338"},8841:{c:"\\2287\\338"},8876:{c:"\\22A2\\338"},8877:{c:"\\22A8\\338"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9653:{c:"\\25B3"},9663:{c:"\\25BD"},10072:{c:"\\2223"},10744:{c:"/",f:"BI"},10799:{c:"\\D7"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}});var Gb={},em={};Object.defineProperty(em,"__esModule",{value:!0}),em.doubleStruck=void 0,em.doubleStruck={},(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.doubleStruck=void 0;var t=em;Object.defineProperty(e,"doubleStruck",{enumerable:!0,get:function(){return t.doubleStruck}})})(Gb),ee(Gb);var tm={},rm={};Object.defineProperty(rm,"__esModule",{value:!0}),rm.frakturBold=void 0,rm.frakturBold={33:[.689,.012,.349],34:[.695,-.432,.254],38:[.696,.016,.871],39:[.695,-.436,.25],40:[.737,.186,.459],41:[.735,.187,.459],42:[.692,-.449,.328],43:[.598,.082,.893],44:[.107,.191,.328],45:[.275,-.236,.893],46:[.102,.015,.328],47:[.721,.182,.593],48:[.501,.012,.593],49:[.489,0,.593],50:[.491,0,.593],51:[.487,.193,.593],52:[.495,.196,.593],53:[.481,.19,.593],54:[.704,.012,.593],55:[.479,.197,.593],56:[.714,.005,.593],57:[.487,.195,.593],58:[.457,.012,.255],59:[.458,.19,.255],61:[.343,-.168,.582],63:[.697,.014,.428],91:[.74,.13,.257],93:[.738,.132,.257],94:[.734,-.452,.59],8216:[.708,-.411,.254],8217:[.692,-.394,.254],8260:[.721,.182,.593],58113:[.63,.027,.587],58114:[.693,.212,.394,{ic:.014}],58115:[.681,.219,.387],58116:[.473,.212,.593],58117:[.684,.027,.393],58120:[.679,.22,.981],58121:[.717,.137,.727]},Object.defineProperty(tm,"__esModule",{value:!0}),tm.frakturBold=void 0;var iq=Nt,aq=rm;tm.frakturBold=(0,iq.AddCSS)(aq.frakturBold,{8260:{c:"/"}});var nm={},om={};Object.defineProperty(om,"__esModule",{value:!0}),om.fraktur=void 0,om.fraktur={33:[.689,.012,.296],34:[.695,-.432,.215],38:[.698,.011,.738],39:[.695,-.436,.212],40:[.737,.186,.389],41:[.735,.187,.389],42:[.692,-.449,.278],43:[.598,.082,.756],44:[.107,.191,.278],45:[.275,-.236,.756],46:[.102,.015,.278],47:[.721,.182,.502],48:[.492,.013,.502],49:[.468,0,.502],50:[.474,0,.502],51:[.473,.182,.502],52:[.476,.191,.502],53:[.458,.184,.502],54:[.7,.013,.502],55:[.468,.181,.502],56:[.705,.01,.502],57:[.469,.182,.502],58:[.457,.012,.216],59:[.458,.189,.216],61:[.368,-.132,.756],63:[.693,.011,.362],91:[.74,.13,.278],93:[.738,.131,.278],94:[.734,-.452,.5],8216:[.708,-.41,.215],8217:[.692,-.395,.215],8260:[.721,.182,.502],58112:[.683,.032,.497],58113:[.616,.03,.498],58114:[.68,.215,.333],58115:[.679,.224,.329],58116:[.471,.214,.503],58117:[.686,.02,.333],58118:[.577,.021,.334,{ic:.013}],58119:[.475,.022,.501,{ic:.013}]},Object.defineProperty(nm,"__esModule",{value:!0}),nm.fraktur=void 0;var sq=Nt,cq=om;nm.fraktur=(0,sq.AddCSS)(cq.fraktur,{8260:{c:"/"}});var im={},am={};Object.defineProperty(am,"__esModule",{value:!0}),am.italic=void 0,am.italic={33:[.716,0,.307,{ic:.073}],34:[.694,-.379,.514,{ic:.024}],35:[.694,.194,.818,{ic:.01}],37:[.75,.056,.818,{ic:.029}],38:[.716,.022,.767,{ic:.035}],39:[.694,-.379,.307,{ic:.07}],40:[.75,.25,.409,{ic:.108}],41:[.75,.25,.409],42:[.75,-.32,.511,{ic:.073}],43:[.557,.057,.767],44:[.121,.194,.307],45:[.251,-.18,.358],46:[.121,0,.307],47:[.716,.215,.778],48:[.665,.021,.511,{ic:.051}],49:[.666,0,.511],50:[.666,.022,.511,{ic:.04}],51:[.666,.022,.511,{ic:.051}],52:[.666,.194,.511],53:[.666,.022,.511,{ic:.056}],54:[.665,.022,.511,{ic:.054}],55:[.666,.022,.511,{ic:.123}],56:[.666,.021,.511,{ic:.042}],57:[.666,.022,.511,{ic:.042}],58:[.431,0,.307],59:[.431,.194,.307],61:[.367,-.133,.767],63:[.716,0,.511,{ic:.04}],64:[.705,.011,.767,{ic:.022}],91:[.75,.25,.307,{ic:.139}],93:[.75,.25,.307,{ic:.052}],94:[.694,-.527,.511,{ic:.017}],95:[-.025,.062,.511,{ic:.043}],126:[.318,-.208,.511,{ic:.06}],305:[.441,.01,.307,{ic:.033}],567:[.442,.204,.332],768:[.697,-.5,0],769:[.697,-.5,0,{ic:.039}],770:[.694,-.527,0,{ic:.017}],771:[.668,-.558,0,{ic:.06}],772:[.589,-.544,0,{ic:.054}],774:[.694,-.515,0,{ic:.062}],775:[.669,-.548,0],776:[.669,-.554,0,{ic:.045}],778:[.716,-.542,0],779:[.697,-.503,0,{ic:.065}],780:[.638,-.502,0,{ic:.029}],989:[.605,.085,.778],8211:[.285,-.248,.511,{ic:.043}],8212:[.285,-.248,1.022,{ic:.016}],8213:[.285,-.248,1.022,{ic:.016}],8215:[-.025,.062,.511,{ic:.043}],8216:[.694,-.379,.307,{ic:.055}],8217:[.694,-.379,.307,{ic:.07}],8220:[.694,-.379,.514,{ic:.092}],8221:[.694,-.379,.514,{ic:.024}],8260:[.716,.215,.778],8463:[.695,.013,.54,{ic:.022}],8710:[.716,0,.833,{sk:.167}],10744:[.716,.215,.778]},Object.defineProperty(im,"__esModule",{value:!0}),im.italic=void 0;var lq=Nt,uq=am;im.italic=(0,lq.AddCSS)(uq.italic,{47:{f:"I"},989:{c:"\\E008",f:"A"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/",f:"I"},8710:{c:"\\394",f:"I"},10744:{c:"/",f:"I"}});var sm={},cm={};Object.defineProperty(cm,"__esModule",{value:!0}),cm.largeop=void 0,cm.largeop={40:[1.15,.649,.597],41:[1.15,.649,.597],47:[1.15,.649,.811],91:[1.15,.649,.472],92:[1.15,.649,.811],93:[1.15,.649,.472],123:[1.15,.649,.667],125:[1.15,.649,.667],710:[.772,-.565,1],732:[.75,-.611,1],770:[.772,-.565,0],771:[.75,-.611,0],8214:[.602,0,.778],8260:[1.15,.649,.811],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.95,.45,1.278],8720:[.95,.45,1.278],8721:[.95,.45,1.444],8730:[1.15,.65,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[1.36,.862,.556,{ic:.388}],8748:[1.36,.862,1.084,{ic:.388}],8749:[1.36,.862,1.592,{ic:.388}],8750:[1.36,.862,.556,{ic:.388}],8896:[.95,.45,1.111],8897:[.95,.45,1.111],8898:[.949,.45,1.111],8899:[.95,.449,1.111],8968:[1.15,.649,.528],8969:[1.15,.649,.528],8970:[1.15,.649,.528],8971:[1.15,.649,.528],9001:[1.15,.649,.611],9002:[1.15,.649,.611],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[1.15,.649,.611],10217:[1.15,.649,.611],10752:[.949,.449,1.511],10753:[.949,.449,1.511],10754:[.949,.449,1.511],10756:[.95,.449,1.111],10758:[.95,.45,1.111],10764:[1.36,.862,2.168,{ic:.388}],12296:[1.15,.649,.611],12297:[1.15,.649,.611]},Object.defineProperty(sm,"__esModule",{value:!0}),sm.largeop=void 0;var pq=Nt,dq=cm;sm.largeop=(0,pq.AddCSS)(dq.largeop,{8214:{f:"S1"},8260:{c:"/"},8593:{f:"S1"},8595:{f:"S1"},8657:{f:"S1"},8659:{f:"S1"},8739:{f:"S1"},8741:{f:"S1"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},10072:{c:"\\2223",f:"S1"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}});var lm={},um={};Object.defineProperty(um,"__esModule",{value:!0}),um.monospace=void 0,um.monospace={32:[0,0,.525],33:[.622,0,.525],34:[.623,-.333,.525],35:[.611,0,.525],36:[.694,.082,.525],37:[.694,.083,.525],38:[.622,.011,.525],39:[.611,-.287,.525],40:[.694,.082,.525],41:[.694,.082,.525],42:[.52,-.09,.525],43:[.531,-.081,.525],44:[.14,.139,.525],45:[.341,-.271,.525],46:[.14,0,.525],47:[.694,.083,.525],58:[.431,0,.525],59:[.431,.139,.525],60:[.557,-.055,.525],61:[.417,-.195,.525],62:[.557,-.055,.525],63:[.617,0,.525],64:[.617,.006,.525],91:[.694,.082,.525],92:[.694,.083,.525],93:[.694,.082,.525],94:[.611,-.46,.525],95:[-.025,.095,.525],96:[.681,-.357,.525],123:[.694,.083,.525],124:[.694,.082,.525],125:[.694,.083,.525],126:[.611,-.466,.525],127:[.612,-.519,.525],160:[0,0,.525],305:[.431,0,.525],567:[.431,.228,.525],697:[.623,-.334,.525],768:[.611,-.485,0],769:[.611,-.485,0],770:[.611,-.46,0],771:[.611,-.466,0],772:[.577,-.5,0],774:[.611,-.504,0],776:[.612,-.519,0],778:[.619,-.499,0],780:[.577,-.449,0],913:[.623,0,.525],914:[.611,0,.525],915:[.611,0,.525],916:[.623,0,.525],917:[.611,0,.525],918:[.611,0,.525],919:[.611,0,.525],920:[.621,.01,.525],921:[.611,0,.525],922:[.611,0,.525],923:[.623,0,.525],924:[.611,0,.525],925:[.611,0,.525],926:[.611,0,.525],927:[.621,.01,.525],928:[.611,0,.525],929:[.611,0,.525],931:[.611,0,.525],932:[.611,0,.525],933:[.622,0,.525],934:[.611,0,.525],935:[.611,0,.525],936:[.611,0,.525],937:[.622,0,.525],8215:[-.025,.095,.525],8242:[.623,-.334,.525],8243:[.623,0,1.05],8244:[.623,0,1.575],8260:[.694,.083,.525],8279:[.623,0,2.1],8710:[.623,0,.525]},Object.defineProperty(lm,"__esModule",{value:!0}),lm.monospace=void 0;var hq=Nt,fq=um;lm.monospace=(0,hq.AddCSS)(fq.monospace,{697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8215:{c:"_"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8710:{c:"\\394"}});var pm={},dm={};Object.defineProperty(dm,"__esModule",{value:!0}),dm.normal=void 0,dm.normal={32:[0,0,.25],33:[.716,0,.278],34:[.694,-.379,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.778],39:[.694,-.379,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.32,.5],43:[.583,.082,.778],44:[.121,.194,.278],45:[.252,-.179,.333],46:[.12,0,.278],47:[.75,.25,.5],48:[.666,.022,.5],49:[.666,0,.5],50:[.666,0,.5],51:[.665,.022,.5],52:[.677,0,.5],53:[.666,.022,.5],54:[.666,.022,.5],55:[.676,.022,.5],56:[.666,.022,.5],57:[.666,.022,.5],58:[.43,0,.278],59:[.43,.194,.278],60:[.54,.04,.778],61:[.583,.082,.778],62:[.54,.04,.778],63:[.705,0,.472],64:[.705,.011,.778],65:[.716,0,.75],66:[.683,0,.708],67:[.705,.021,.722],68:[.683,0,.764],69:[.68,0,.681],70:[.68,0,.653],71:[.705,.022,.785],72:[.683,0,.75],73:[.683,0,.361],74:[.683,.022,.514],75:[.683,0,.778],76:[.683,0,.625],77:[.683,0,.917],78:[.683,0,.75],79:[.705,.022,.778],80:[.683,0,.681],81:[.705,.193,.778],82:[.683,.022,.736],83:[.705,.022,.556],84:[.677,0,.722],85:[.683,.022,.75],86:[.683,.022,.75],87:[.683,.022,1.028],88:[.683,0,.75],89:[.683,0,.75],90:[.683,0,.611],91:[.75,.25,.278],92:[.75,.25,.5],93:[.75,.25,.278],94:[.694,-.531,.5],95:[-.025,.062,.5],96:[.699,-.505,.5],97:[.448,.011,.5],98:[.694,.011,.556],99:[.448,.011,.444],100:[.694,.011,.556],101:[.448,.011,.444],102:[.705,0,.306,{ic:.066}],103:[.453,.206,.5],104:[.694,0,.556],105:[.669,0,.278],106:[.669,.205,.306],107:[.694,0,.528],108:[.694,0,.278],109:[.442,0,.833],110:[.442,0,.556],111:[.448,.01,.5],112:[.442,.194,.556],113:[.442,.194,.528],114:[.442,0,.392],115:[.448,.011,.394],116:[.615,.01,.389],117:[.442,.011,.556],118:[.431,.011,.528],119:[.431,.011,.722],120:[.431,0,.528],121:[.431,.204,.528],122:[.431,0,.444],123:[.75,.25,.5],124:[.75,.249,.278],125:[.75,.25,.5],126:[.318,-.215,.5],160:[0,0,.25],163:[.714,.011,.769],165:[.683,0,.75],168:[.669,-.554,.5],172:[.356,-.089,.667],174:[.709,.175,.947],175:[.59,-.544,.5],176:[.715,-.542,.5],177:[.666,0,.778],180:[.699,-.505,.5],183:[.31,-.19,.278],215:[.491,-.009,.778],240:[.749,.021,.556],247:[.537,.036,.778],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.56,-.043,.275],710:[.694,-.531,.5],711:[.644,-.513,.5],713:[.59,-.544,.5],714:[.699,-.505,.5],715:[.699,-.505,.5],728:[.694,-.515,.5],729:[.669,-.549,.5],730:[.715,-.542,.5],732:[.668,-.565,.5],768:[.699,-.505,0],769:[.699,-.505,0],770:[.694,-.531,0],771:[.668,-.565,0],772:[.59,-.544,0],774:[.694,-.515,0],775:[.669,-.549,0],776:[.669,-.554,0],778:[.715,-.542,0],779:[.701,-.51,0],780:[.644,-.513,0],824:[.716,.215,0],913:[.716,0,.75],914:[.683,0,.708],915:[.68,0,.625],916:[.716,0,.833],917:[.68,0,.681],918:[.683,0,.611],919:[.683,0,.75],920:[.705,.022,.778],921:[.683,0,.361],922:[.683,0,.778],923:[.716,0,.694],924:[.683,0,.917],925:[.683,0,.75],926:[.677,0,.667],927:[.705,.022,.778],928:[.68,0,.75],929:[.683,0,.681],931:[.683,0,.722],932:[.677,0,.722],933:[.705,0,.778],934:[.683,0,.722],935:[.683,0,.75],936:[.683,0,.778],937:[.704,0,.722],8192:[0,0,.5],8193:[0,0,1],8194:[0,0,.5],8195:[0,0,1],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.1],8203:[0,0,0],8204:[0,0,0],8211:[.285,-.248,.5],8212:[.285,-.248,1],8213:[.285,-.248,1],8214:[.75,.25,.5],8215:[-.025,.062,.5],8216:[.694,-.379,.278],8217:[.694,-.379,.278],8220:[.694,-.379,.5],8221:[.694,-.379,.5],8224:[.705,.216,.444],8225:[.705,.205,.444],8226:[.444,-.055,.5],8230:[.12,0,1.172],8242:[.56,-.043,.275],8243:[.56,0,.55],8244:[.56,0,.825],8245:[.56,-.043,.275],8246:[.56,0,.55],8247:[.56,0,.825],8254:[.59,-.544,.5],8260:[.75,.25,.5],8279:[.56,0,1.1],8288:[0,0,0],8289:[0,0,0],8290:[0,0,0],8291:[0,0,0],8292:[0,0,0],8407:[.714,-.516,.5],8450:[.702,.019,.722],8459:[.717,.036,.969,{ic:.272,sk:.333}],8460:[.666,.133,.72],8461:[.683,0,.778],8462:[.694,.011,.576,{sk:-.0278}],8463:[.695,.013,.54,{ic:.022}],8464:[.717,.017,.809,{ic:.137,sk:.333}],8465:[.686,.026,.554],8466:[.717,.017,.874,{ic:.161,sk:.306}],8467:[.705,.02,.417,{sk:.111}],8469:[.683,.02,.722],8472:[.453,.216,.636,{sk:.111}],8473:[.683,0,.611],8474:[.701,.181,.778],8475:[.717,.017,.85,{ic:.037,sk:.194}],8476:[.686,.026,.828],8477:[.683,0,.722],8484:[.683,0,.667],8486:[.704,0,.722],8487:[.684,.022,.722],8488:[.729,.139,.602],8492:[.708,.028,.908,{ic:.02,sk:.194}],8493:[.685,.024,.613],8496:[.707,.008,.562,{ic:.156,sk:.139}],8497:[.735,.036,.895,{ic:.095,sk:.222}],8498:[.695,0,.556],8499:[.721,.05,1.08,{ic:.136,sk:.444}],8501:[.694,0,.611],8502:[.763,.021,.667,{ic:.02}],8503:[.764,.043,.444],8504:[.764,.043,.667],8513:[.705,.023,.639],8592:[.511,.011,1],8593:[.694,.193,.5],8594:[.511,.011,1],8595:[.694,.194,.5],8596:[.511,.011,1],8597:[.772,.272,.5],8598:[.72,.195,1],8599:[.72,.195,1],8600:[.695,.22,1],8601:[.695,.22,1],8602:[.437,-.06,1],8603:[.437,-.06,1],8606:[.417,-.083,1],8608:[.417,-.083,1],8610:[.417,-.083,1.111],8611:[.417,-.083,1.111],8614:[.511,.011,1],8617:[.511,.011,1.126],8618:[.511,.011,1.126],8619:[.575,.041,1],8620:[.575,.041,1],8621:[.417,-.083,1.389],8622:[.437,-.06,1],8624:[.722,0,.5],8625:[.722,0,.5],8630:[.461,0,1],8631:[.46,0,1],8634:[.65,.083,.778],8635:[.65,.083,.778],8636:[.511,-.23,1],8637:[.27,.011,1],8638:[.694,.194,.417],8639:[.694,.194,.417],8640:[.511,-.23,1],8641:[.27,.011,1],8642:[.694,.194,.417],8643:[.694,.194,.417],8644:[.667,0,1],8646:[.667,0,1],8647:[.583,.083,1],8648:[.694,.193,.833],8649:[.583,.083,1],8650:[.694,.194,.833],8651:[.514,.014,1],8652:[.671,.011,1],8653:[.534,.035,1],8654:[.534,.037,1],8655:[.534,.035,1],8656:[.525,.024,1],8657:[.694,.194,.611],8658:[.525,.024,1],8659:[.694,.194,.611],8660:[.526,.025,1],8661:[.772,.272,.611],8666:[.611,.111,1],8667:[.611,.111,1],8669:[.417,-.083,1],8672:[.437,-.064,1.334],8674:[.437,-.064,1.334],8704:[.694,.022,.556],8705:[.846,.021,.5],8706:[.715,.022,.531,{ic:.035,sk:.0833}],8707:[.694,0,.556],8708:[.716,.215,.556],8709:[.772,.078,.5],8710:[.716,0,.833],8711:[.683,.033,.833],8712:[.54,.04,.667],8713:[.716,.215,.667],8715:[.54,.04,.667],8716:[.716,.215,.667],8717:[.44,0,.429,{ic:.027}],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8722:[.583,.082,.778],8723:[.5,.166,.778],8724:[.766,.093,.778],8725:[.75,.25,.5],8726:[.75,.25,.5],8727:[.465,-.035,.5],8728:[.444,-.055,.5],8729:[.444,-.055,.5],8730:[.8,.2,.833,{ic:.02}],8733:[.442,.011,.778],8734:[.442,.011,1],8736:[.694,0,.722],8737:[.714,.02,.722],8738:[.551,.051,.722],8739:[.75,.249,.278],8740:[.75,.252,.278,{ic:.019}],8741:[.75,.25,.5],8742:[.75,.25,.5,{ic:.018}],8743:[.598,.022,.667],8744:[.598,.022,.667],8745:[.598,.022,.667],8746:[.598,.022,.667],8747:[.716,.216,.417,{ic:.055}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8756:[.471,.082,.667],8757:[.471,.082,.667],8764:[.367,-.133,.778],8765:[.367,-.133,.778],8768:[.583,.083,.278],8769:[.467,-.032,.778],8770:[.463,-.034,.778],8771:[.464,-.036,.778],8772:[.716,.215,.778],8773:[.589,-.022,.778],8775:[.652,.155,.778],8776:[.483,-.055,.778],8777:[.716,.215,.778],8778:[.579,.039,.778],8781:[.484,-.016,.778],8782:[.492,-.008,.778],8783:[.492,-.133,.778],8784:[.67,-.133,.778],8785:[.609,.108,.778],8786:[.601,.101,.778],8787:[.601,.102,.778],8790:[.367,-.133,.778],8791:[.721,-.133,.778],8796:[.859,-.133,.778],8800:[.716,.215,.778],8801:[.464,-.036,.778],8802:[.716,.215,.778],8804:[.636,.138,.778],8805:[.636,.138,.778],8806:[.753,.175,.778],8807:[.753,.175,.778],8808:[.752,.286,.778],8809:[.752,.286,.778],8810:[.568,.067,1],8811:[.567,.067,1],8812:[.75,.25,.5],8813:[.716,.215,.778],8814:[.708,.209,.778],8815:[.708,.209,.778],8816:[.801,.303,.778],8817:[.801,.303,.778],8818:[.732,.228,.778],8819:[.732,.228,.778],8820:[.732,.228,.778],8821:[.732,.228,.778],8822:[.681,.253,.778],8823:[.681,.253,.778],8824:[.716,.253,.778],8825:[.716,.253,.778],8826:[.539,.041,.778],8827:[.539,.041,.778],8828:[.58,.153,.778],8829:[.58,.154,.778],8830:[.732,.228,.778],8831:[.732,.228,.778],8832:[.705,.208,.778],8833:[.705,.208,.778],8834:[.54,.04,.778],8835:[.54,.04,.778],8836:[.716,.215,.778],8837:[.716,.215,.778],8838:[.636,.138,.778],8839:[.636,.138,.778],8840:[.801,.303,.778],8841:[.801,.303,.778],8842:[.635,.241,.778],8843:[.635,.241,.778],8846:[.598,.022,.667],8847:[.539,.041,.778],8848:[.539,.041,.778],8849:[.636,.138,.778],8850:[.636,.138,.778],8851:[.598,0,.667],8852:[.598,0,.667],8853:[.583,.083,.778],8854:[.583,.083,.778],8855:[.583,.083,.778],8856:[.583,.083,.778],8857:[.583,.083,.778],8858:[.582,.082,.778],8859:[.582,.082,.778],8861:[.582,.082,.778],8862:[.689,0,.778],8863:[.689,0,.778],8864:[.689,0,.778],8865:[.689,0,.778],8866:[.694,0,.611],8867:[.694,0,.611],8868:[.668,0,.778],8869:[.668,0,.778],8872:[.75,.249,.867],8873:[.694,0,.722],8874:[.694,0,.889],8876:[.695,0,.611],8877:[.695,0,.611],8878:[.695,0,.722],8879:[.695,0,.722],8882:[.539,.041,.778],8883:[.539,.041,.778],8884:[.636,.138,.778],8885:[.636,.138,.778],8888:[.408,-.092,1.111],8890:[.431,.212,.556],8891:[.716,0,.611],8892:[.716,0,.611],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8900:[.488,-.012,.5],8901:[.31,-.19,.278],8902:[.486,-.016,.5],8903:[.545,.044,.778],8904:[.505,.005,.9],8905:[.492,-.008,.778],8906:[.492,-.008,.778],8907:[.694,.022,.778],8908:[.694,.022,.778],8909:[.464,-.036,.778],8910:[.578,.021,.76],8911:[.578,.022,.76],8912:[.54,.04,.778],8913:[.54,.04,.778],8914:[.598,.022,.667],8915:[.598,.022,.667],8916:[.736,.022,.667],8918:[.541,.041,.778],8919:[.541,.041,.778],8920:[.568,.067,1.333],8921:[.568,.067,1.333],8922:[.886,.386,.778],8923:[.886,.386,.778],8926:[.734,0,.778],8927:[.734,0,.778],8928:[.801,.303,.778],8929:[.801,.303,.778],8930:[.716,.215,.778],8931:[.716,.215,.778],8934:[.73,.359,.778],8935:[.73,.359,.778],8936:[.73,.359,.778],8937:[.73,.359,.778],8938:[.706,.208,.778],8939:[.706,.208,.778],8940:[.802,.303,.778],8941:[.801,.303,.778],8942:[1.3,.03,.278],8943:[.31,-.19,1.172],8945:[1.52,-.1,1.282],8965:[.716,0,.611],8966:[.813,.097,.611],8968:[.75,.25,.444],8969:[.75,.25,.444],8970:[.75,.25,.444],8971:[.75,.25,.444],8988:[.694,-.306,.5],8989:[.694,-.306,.5],8990:[.366,.022,.5],8991:[.366,.022,.5],8994:[.388,-.122,1],8995:[.378,-.134,1],9001:[.75,.25,.389],9002:[.75,.25,.389],9136:[.744,.244,.412],9137:[.744,.244,.412],9168:[.602,0,.667],9416:[.709,.175,.902],9484:[.694,-.306,.5],9488:[.694,-.306,.5],9492:[.366,.022,.5],9496:[.366,.022,.5],9585:[.694,.195,.889],9586:[.694,.195,.889],9632:[.689,0,.778],9633:[.689,0,.778],9642:[.689,0,.778],9650:[.575,.02,.722],9651:[.716,0,.889],9652:[.575,.02,.722],9653:[.716,0,.889],9654:[.539,.041,.778],9656:[.539,.041,.778],9657:[.505,.005,.5],9660:[.576,.019,.722],9661:[.5,.215,.889],9662:[.576,.019,.722],9663:[.5,.215,.889],9664:[.539,.041,.778],9666:[.539,.041,.778],9667:[.505,.005,.5],9674:[.716,.132,.667],9711:[.715,.215,1],9723:[.689,0,.778],9724:[.689,0,.778],9733:[.694,.111,.944],9824:[.727,.13,.778],9825:[.716,.033,.778],9826:[.727,.162,.778],9827:[.726,.13,.778],9837:[.75,.022,.389],9838:[.734,.223,.389],9839:[.723,.223,.389],10003:[.706,.034,.833],10016:[.716,.022,.833],10072:[.75,.249,.278],10216:[.75,.25,.389],10217:[.75,.25,.389],10222:[.744,.244,.412],10223:[.744,.244,.412],10229:[.511,.011,1.609],10230:[.511,.011,1.638],10231:[.511,.011,1.859],10232:[.525,.024,1.609],10233:[.525,.024,1.638],10234:[.525,.024,1.858],10236:[.511,.011,1.638],10731:[.716,.132,.667],10744:[.716,.215,.778],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],10799:[.491,-.009,.778],10815:[.683,0,.75],10846:[.813,.097,.611],10877:[.636,.138,.778],10878:[.636,.138,.778],10885:[.762,.29,.778],10886:[.762,.29,.778],10887:[.635,.241,.778],10888:[.635,.241,.778],10889:[.761,.387,.778],10890:[.761,.387,.778],10891:[1.003,.463,.778],10892:[1.003,.463,.778],10901:[.636,.138,.778],10902:[.636,.138,.778],10927:[.636,.138,.778],10928:[.636,.138,.778],10933:[.752,.286,.778],10934:[.752,.286,.778],10935:[.761,.294,.778],10936:[.761,.294,.778],10937:[.761,.337,.778],10938:[.761,.337,.778],10949:[.753,.215,.778],10950:[.753,.215,.778],10955:[.783,.385,.778],10956:[.783,.385,.778],12296:[.75,.25,.389],12297:[.75,.25,.389],57350:[.43,.023,.222,{ic:.018}],57351:[.431,.024,.389,{ic:.018}],57352:[.605,.085,.778],57353:[.434,.006,.667,{ic:.067}],57356:[.752,.284,.778],57357:[.752,.284,.778],57358:[.919,.421,.778],57359:[.801,.303,.778],57360:[.801,.303,.778],57361:[.919,.421,.778],57366:[.828,.33,.778],57367:[.752,.332,.778],57368:[.828,.33,.778],57369:[.752,.333,.778],57370:[.634,.255,.778],57371:[.634,.254,.778],119808:[.698,0,.869],119809:[.686,0,.818],119810:[.697,.011,.831],119811:[.686,0,.882],119812:[.68,0,.756],119813:[.68,0,.724],119814:[.697,.01,.904],119815:[.686,0,.9],119816:[.686,0,.436],119817:[.686,.011,.594],119818:[.686,0,.901],119819:[.686,0,.692],119820:[.686,0,1.092],119821:[.686,0,.9],119822:[.696,.01,.864],119823:[.686,0,.786],119824:[.696,.193,.864],119825:[.686,.011,.862],119826:[.697,.011,.639],119827:[.675,0,.8],119828:[.686,.011,.885],119829:[.686,.007,.869],119830:[.686,.007,1.189],119831:[.686,0,.869],119832:[.686,0,.869],119833:[.686,0,.703],119834:[.453,.006,.559],119835:[.694,.006,.639],119836:[.453,.006,.511],119837:[.694,.006,.639],119838:[.452,.006,.527],119839:[.7,0,.351,{ic:.101}],119840:[.455,.201,.575],119841:[.694,0,.639],119842:[.695,0,.319],119843:[.695,.2,.351],119844:[.694,0,.607],119845:[.694,0,.319],119846:[.45,0,.958],119847:[.45,0,.639],119848:[.452,.005,.575],119849:[.45,.194,.639],119850:[.45,.194,.607],119851:[.45,0,.474],119852:[.453,.006,.454],119853:[.635,.005,.447],119854:[.45,.006,.639],119855:[.444,0,.607],119856:[.444,0,.831],119857:[.444,0,.607],119858:[.444,.2,.607],119859:[.444,0,.511],119860:[.716,0,.75,{sk:.139}],119861:[.683,0,.759,{sk:.0833}],119862:[.705,.022,.715,{ic:.045,sk:.0833}],119863:[.683,0,.828,{sk:.0556}],119864:[.68,0,.738,{ic:.026,sk:.0833}],119865:[.68,0,.643,{ic:.106,sk:.0833}],119866:[.705,.022,.786,{sk:.0833}],119867:[.683,0,.831,{ic:.057,sk:.0556}],119868:[.683,0,.44,{ic:.064,sk:.111}],119869:[.683,.022,.555,{ic:.078,sk:.167}],119870:[.683,0,.849,{ic:.04,sk:.0556}],119871:[.683,0,.681,{sk:.0278}],119872:[.683,0,.97,{ic:.081,sk:.0833}],119873:[.683,0,.803,{ic:.085,sk:.0833}],119874:[.704,.022,.763,{sk:.0833}],119875:[.683,0,.642,{ic:.109,sk:.0833}],119876:[.704,.194,.791,{sk:.0833}],119877:[.683,.021,.759,{sk:.0833}],119878:[.705,.022,.613,{ic:.032,sk:.0833}],119879:[.677,0,.584,{ic:.12,sk:.0833}],119880:[.683,.022,.683,{ic:.084,sk:.0278}],119881:[.683,.022,.583,{ic:.186}],119882:[.683,.022,.944,{ic:.104}],119883:[.683,0,.828,{ic:.024,sk:.0833}],119884:[.683,0,.581,{ic:.182}],119885:[.683,0,.683,{ic:.04,sk:.0833}],119886:[.441,.01,.529],119887:[.694,.011,.429],119888:[.442,.011,.433,{sk:.0556}],119889:[.694,.01,.52,{sk:.167}],119890:[.442,.011,.466,{sk:.0556}],119891:[.705,.205,.49,{ic:.06,sk:.167}],119892:[.442,.205,.477,{sk:.0278}],119894:[.661,.011,.345],119895:[.661,.204,.412],119896:[.694,.011,.521],119897:[.694,.011,.298,{sk:.0833}],119898:[.442,.011,.878],119899:[.442,.011,.6],119900:[.441,.011,.485,{sk:.0556}],119901:[.442,.194,.503,{sk:.0833}],119902:[.442,.194,.446,{ic:.014,sk:.0833}],119903:[.442,.011,.451,{sk:.0556}],119904:[.442,.01,.469,{sk:.0556}],119905:[.626,.011,.361,{sk:.0833}],119906:[.442,.011,.572,{sk:.0278}],119907:[.443,.011,.485,{sk:.0278}],119908:[.443,.011,.716,{sk:.0833}],119909:[.442,.011,.572,{sk:.0278}],119910:[.442,.205,.49,{sk:.0556}],119911:[.442,.011,.465,{sk:.0556}],119912:[.711,0,.869,{sk:.16}],119913:[.686,0,.866,{sk:.0958}],119914:[.703,.017,.817,{ic:.038,sk:.0958}],119915:[.686,0,.938,{sk:.0639}],119916:[.68,0,.81,{ic:.015,sk:.0958}],119917:[.68,0,.689,{ic:.12,sk:.0958}],119918:[.703,.016,.887,{sk:.0958}],119919:[.686,0,.982,{ic:.045,sk:.0639}],119920:[.686,0,.511,{ic:.062,sk:.128}],119921:[.686,.017,.631,{ic:.063,sk:.192}],119922:[.686,0,.971,{ic:.032,sk:.0639}],119923:[.686,0,.756,{sk:.0319}],119924:[.686,0,1.142,{ic:.077,sk:.0958}],119925:[.686,0,.95,{ic:.077,sk:.0958}],119926:[.703,.017,.837,{sk:.0958}],119927:[.686,0,.723,{ic:.124,sk:.0958}],119928:[.703,.194,.869,{sk:.0958}],119929:[.686,.017,.872,{sk:.0958}],119930:[.703,.017,.693,{ic:.021,sk:.0958}],119931:[.675,0,.637,{ic:.135,sk:.0958}],119932:[.686,.016,.8,{ic:.077,sk:.0319}],119933:[.686,.016,.678,{ic:.208}],119934:[.686,.017,1.093,{ic:.114}],119935:[.686,0,.947,{sk:.0958}],119936:[.686,0,.675,{ic:.201}],119937:[.686,0,.773,{ic:.032,sk:.0958}],119938:[.452,.008,.633],119939:[.694,.008,.521],119940:[.451,.008,.513,{sk:.0639}],119941:[.694,.008,.61,{sk:.192}],119942:[.452,.008,.554,{sk:.0639}],119943:[.701,.201,.568,{ic:.056,sk:.192}],119944:[.452,.202,.545,{sk:.0319}],119945:[.694,.008,.668,{sk:-.0319}],119946:[.694,.008,.405],119947:[.694,.202,.471],119948:[.694,.008,.604],119949:[.694,.008,.348,{sk:.0958}],119950:[.452,.008,1.032],119951:[.452,.008,.713],119952:[.452,.008,.585,{sk:.0639}],119953:[.452,.194,.601,{sk:.0958}],119954:[.452,.194,.542,{sk:.0958}],119955:[.452,.008,.529,{sk:.0639}],119956:[.451,.008,.531,{sk:.0639}],119957:[.643,.007,.415,{sk:.0958}],119958:[.452,.008,.681,{sk:.0319}],119959:[.453,.008,.567,{sk:.0319}],119960:[.453,.008,.831,{sk:.0958}],119961:[.452,.008,.659,{sk:.0319}],119962:[.452,.202,.59,{sk:.0639}],119963:[.452,.008,.555,{sk:.0639}],119964:[.717,.008,.803,{ic:.213,sk:.389}],119966:[.728,.026,.666,{ic:.153,sk:.278}],119967:[.708,.031,.774,{ic:.081,sk:.111}],119970:[.717,.037,.61,{ic:.128,sk:.25}],119973:[.717,.314,1.052,{ic:.081,sk:.417}],119974:[.717,.037,.914,{ic:.29,sk:.361}],119977:[.726,.036,.902,{ic:.306,sk:.389}],119978:[.707,.008,.738,{ic:.067,sk:.167}],119979:[.716,.037,1.013,{ic:.018,sk:.222}],119980:[.717,.017,.883,{sk:.278}],119982:[.708,.036,.868,{ic:.148,sk:.333}],119983:[.735,.037,.747,{ic:.249,sk:.222}],119984:[.717,.017,.8,{ic:.16,sk:.25}],119985:[.717,.017,.622,{ic:.228,sk:.222}],119986:[.717,.017,.805,{ic:.221,sk:.25}],119987:[.717,.017,.944,{ic:.187,sk:.278}],119988:[.716,.017,.71,{ic:.249,sk:.194}],119989:[.717,.016,.821,{ic:.211,sk:.306}],120068:[.696,.026,.718],120069:[.691,.027,.884],120071:[.685,.027,.832],120072:[.685,.024,.663],120073:[.686,.153,.611],120074:[.69,.026,.785],120077:[.686,.139,.552],120078:[.68,.027,.668,{ic:.014}],120079:[.686,.026,.666],120080:[.692,.027,1.05],120081:[.686,.025,.832],120082:[.729,.027,.827],120083:[.692,.218,.828],120084:[.729,.069,.827],120086:[.692,.027,.829],120087:[.701,.027,.669],120088:[.697,.027,.646,{ic:.019}],120089:[.686,.026,.831],120090:[.686,.027,1.046],120091:[.688,.027,.719],120092:[.686,.218,.833],120094:[.47,.035,.5],120095:[.685,.031,.513],120096:[.466,.029,.389],120097:[.609,.033,.499],120098:[.467,.03,.401],120099:[.681,.221,.326],120100:[.47,.209,.504],120101:[.688,.205,.521],120102:[.673,.02,.279],120103:[.672,.208,.281],120104:[.689,.025,.389],120105:[.685,.02,.28],120106:[.475,.026,.767],120107:[.475,.022,.527],120108:[.48,.028,.489],120109:[.541,.212,.5],120110:[.479,.219,.489],120111:[.474,.021,.389],120112:[.478,.029,.443],120113:[.64,.02,.333,{ic:.015}],120114:[.474,.023,.517],120115:[.53,.028,.512],120116:[.532,.028,.774],120117:[.472,.188,.389],120118:[.528,.218,.499],120119:[.471,.214,.391],120120:[.701,0,.722],120121:[.683,0,.667],120123:[.683,0,.722],120124:[.683,0,.667],120125:[.683,0,.611],120126:[.702,.019,.778],120128:[.683,0,.389],120129:[.683,.077,.5],120130:[.683,0,.778],120131:[.683,0,.667],120132:[.683,0,.944],120134:[.701,.019,.778],120138:[.702,.012,.556],120139:[.683,0,.667],120140:[.683,.019,.722],120141:[.683,.02,.722],120142:[.683,.019,1],120143:[.683,0,.722],120144:[.683,0,.722],120172:[.686,.031,.847],120173:[.684,.031,1.044],120174:[.676,.032,.723],120175:[.683,.029,.982],120176:[.686,.029,.783],120177:[.684,.146,.722],120178:[.687,.029,.927],120179:[.683,.126,.851],120180:[.681,.025,.655],120181:[.68,.141,.652],120182:[.681,.026,.789,{ic:.017}],120183:[.683,.028,.786],120184:[.683,.032,1.239],120185:[.679,.03,.983],120186:[.726,.03,.976],120187:[.688,.223,.977],120188:[.726,.083,.976],120189:[.688,.028,.978],120190:[.685,.031,.978],120191:[.686,.03,.79,{ic:.012}],120192:[.688,.039,.851,{ic:.02}],120193:[.685,.029,.982],120194:[.683,.03,1.235],120195:[.681,.035,.849],120196:[.688,.214,.984],120197:[.677,.148,.711],120198:[.472,.032,.603],120199:[.69,.032,.59],120200:[.473,.026,.464],120201:[.632,.028,.589],120202:[.471,.027,.472],120203:[.687,.222,.388],120204:[.472,.208,.595],120205:[.687,.207,.615],120206:[.686,.025,.331],120207:[.682,.203,.332],120208:[.682,.025,.464],120209:[.681,.024,.337],120210:[.476,.031,.921],120211:[.473,.028,.654],120212:[.482,.034,.609],120213:[.557,.207,.604],120214:[.485,.211,.596],120215:[.472,.026,.46],120216:[.479,.034,.523],120217:[.648,.027,.393,{ic:.014}],120218:[.472,.032,.589,{ic:.014}],120219:[.546,.027,.604],120220:[.549,.032,.918],120221:[.471,.188,.459],120222:[.557,.221,.589],120223:[.471,.214,.461],120224:[.694,0,.667],120225:[.694,0,.667],120226:[.705,.011,.639],120227:[.694,0,.722],120228:[.691,0,.597],120229:[.691,0,.569],120230:[.704,.011,.667],120231:[.694,0,.708],120232:[.694,0,.278],120233:[.694,.022,.472],120234:[.694,0,.694],120235:[.694,0,.542],120236:[.694,0,.875],120237:[.694,0,.708],120238:[.715,.022,.736],120239:[.694,0,.639],120240:[.715,.125,.736],120241:[.694,0,.646],120242:[.716,.022,.556],120243:[.688,0,.681],120244:[.694,.022,.688],120245:[.694,0,.667],120246:[.694,0,.944],120247:[.694,0,.667],120248:[.694,0,.667],120249:[.694,0,.611],120250:[.46,.01,.481],120251:[.694,.011,.517],120252:[.46,.01,.444],120253:[.694,.01,.517],120254:[.461,.01,.444],120255:[.705,0,.306,{ic:.041}],120256:[.455,.206,.5],120257:[.694,0,.517],120258:[.68,0,.239],120259:[.68,.205,.267],120260:[.694,0,.489],120261:[.694,0,.239],120262:[.455,0,.794],120263:[.455,0,.517],120264:[.46,.01,.5],120265:[.455,.194,.517],120266:[.455,.194,.517],120267:[.455,0,.342],120268:[.46,.01,.383],120269:[.571,.01,.361],120270:[.444,.01,.517],120271:[.444,0,.461],120272:[.444,0,.683],120273:[.444,0,.461],120274:[.444,.204,.461],120275:[.444,0,.435],120276:[.694,0,.733],120277:[.694,0,.733],120278:[.704,.011,.703],120279:[.694,0,.794],120280:[.691,0,.642],120281:[.691,0,.611],120282:[.705,.011,.733],120283:[.694,0,.794],120284:[.694,0,.331],120285:[.694,.022,.519],120286:[.694,0,.764],120287:[.694,0,.581],120288:[.694,0,.978],120289:[.694,0,.794],120290:[.716,.022,.794],120291:[.694,0,.703],120292:[.716,.106,.794],120293:[.694,0,.703],120294:[.716,.022,.611],120295:[.688,0,.733],120296:[.694,.022,.764],120297:[.694,0,.733],120298:[.694,0,1.039],120299:[.694,0,.733],120300:[.694,0,.733],120301:[.694,0,.672],120302:[.475,.011,.525],120303:[.694,.01,.561],120304:[.475,.011,.489],120305:[.694,.011,.561],120306:[.474,.01,.511],120307:[.705,0,.336,{ic:.045}],120308:[.469,.206,.55],120309:[.694,0,.561],120310:[.695,0,.256],120311:[.695,.205,.286],120312:[.694,0,.531],120313:[.694,0,.256],120314:[.469,0,.867],120315:[.468,0,.561],120316:[.474,.011,.55],120317:[.469,.194,.561],120318:[.469,.194,.561],120319:[.469,0,.372],120320:[.474,.01,.422],120321:[.589,.01,.404],120322:[.458,.011,.561],120323:[.458,0,.5],120324:[.458,0,.744],120325:[.458,0,.5],120326:[.458,.205,.5],120327:[.458,0,.476],120328:[.694,0,.667],120329:[.694,0,.667,{ic:.029}],120330:[.705,.01,.639,{ic:.08}],120331:[.694,0,.722,{ic:.025}],120332:[.691,0,.597,{ic:.091}],120333:[.691,0,.569,{ic:.104}],120334:[.705,.011,.667,{ic:.063}],120335:[.694,0,.708,{ic:.06}],120336:[.694,0,.278,{ic:.06}],120337:[.694,.022,.472,{ic:.063}],120338:[.694,0,.694,{ic:.091}],120339:[.694,0,.542],120340:[.694,0,.875,{ic:.054}],120341:[.694,0,.708,{ic:.058}],120342:[.716,.022,.736,{ic:.027}],120343:[.694,0,.639,{ic:.051}],120344:[.716,.125,.736,{ic:.027}],120345:[.694,0,.646,{ic:.052}],120346:[.716,.022,.556,{ic:.053}],120347:[.688,0,.681,{ic:.109}],120348:[.694,.022,.688,{ic:.059}],120349:[.694,0,.667,{ic:.132}],120350:[.694,0,.944,{ic:.132}],120351:[.694,0,.667,{ic:.091}],120352:[.694,0,.667,{ic:.143}],120353:[.694,0,.611,{ic:.091}],120354:[.461,.01,.481],120355:[.694,.011,.517,{ic:.022}],120356:[.46,.011,.444,{ic:.055}],120357:[.694,.01,.517,{ic:.071}],120358:[.46,.011,.444,{ic:.028}],120359:[.705,0,.306,{ic:.188}],120360:[.455,.206,.5,{ic:.068}],120361:[.694,0,.517],120362:[.68,0,.239,{ic:.076}],120363:[.68,.204,.267,{ic:.069}],120364:[.694,0,.489,{ic:.054}],120365:[.694,0,.239,{ic:.072}],120366:[.455,0,.794],120367:[.454,0,.517],120368:[.461,.011,.5,{ic:.023}],120369:[.455,.194,.517,{ic:.021}],120370:[.455,.194,.517,{ic:.021}],120371:[.455,0,.342,{ic:.082}],120372:[.461,.011,.383,{ic:.053}],120373:[.571,.011,.361,{ic:.049}],120374:[.444,.01,.517,{ic:.02}],120375:[.444,0,.461,{ic:.079}],120376:[.444,0,.683,{ic:.079}],120377:[.444,0,.461,{ic:.076}],120378:[.444,.205,.461,{ic:.079}],120379:[.444,0,.435,{ic:.059}],120432:[.623,0,.525],120433:[.611,0,.525],120434:[.622,.011,.525],120435:[.611,0,.525],120436:[.611,0,.525],120437:[.611,0,.525],120438:[.622,.011,.525],120439:[.611,0,.525],120440:[.611,0,.525],120441:[.611,.011,.525],120442:[.611,0,.525],120443:[.611,0,.525],120444:[.611,0,.525],120445:[.611,0,.525],120446:[.621,.01,.525],120447:[.611,0,.525],120448:[.621,.138,.525],120449:[.611,.011,.525],120450:[.622,.011,.525],120451:[.611,0,.525],120452:[.611,.011,.525],120453:[.611,.007,.525],120454:[.611,.007,.525],120455:[.611,0,.525],120456:[.611,0,.525],120457:[.611,0,.525],120458:[.439,.006,.525],120459:[.611,.006,.525],120460:[.44,.006,.525],120461:[.611,.006,.525],120462:[.44,.006,.525],120463:[.617,0,.525],120464:[.442,.229,.525],120465:[.611,0,.525],120466:[.612,0,.525],120467:[.612,.228,.525],120468:[.611,0,.525],120469:[.611,0,.525],120470:[.436,0,.525,{ic:.011}],120471:[.436,0,.525],120472:[.44,.006,.525],120473:[.437,.221,.525],120474:[.437,.221,.525,{ic:.02}],120475:[.437,0,.525],120476:[.44,.006,.525],120477:[.554,.006,.525],120478:[.431,.005,.525],120479:[.431,0,.525],120480:[.431,0,.525],120481:[.431,0,.525],120482:[.431,.228,.525],120483:[.431,0,.525],120488:[.698,0,.869],120489:[.686,0,.818],120490:[.68,0,.692],120491:[.698,0,.958],120492:[.68,0,.756],120493:[.686,0,.703],120494:[.686,0,.9],120495:[.696,.01,.894],120496:[.686,0,.436],120497:[.686,0,.901],120498:[.698,0,.806],120499:[.686,0,1.092],120500:[.686,0,.9],120501:[.675,0,.767],120502:[.696,.01,.864],120503:[.68,0,.9],120504:[.686,0,.786],120506:[.686,0,.831],120507:[.675,0,.8],120508:[.697,0,.894],120509:[.686,0,.831],120510:[.686,0,.869],120511:[.686,0,.894],120512:[.696,0,.831],120513:[.686,.024,.958],120546:[.716,0,.75,{sk:.139}],120547:[.683,0,.759,{sk:.0833}],120548:[.68,0,.615,{ic:.106,sk:.0833}],120549:[.716,0,.833,{sk:.167}],120550:[.68,0,.738,{ic:.026,sk:.0833}],120551:[.683,0,.683,{ic:.04,sk:.0833}],120552:[.683,0,.831,{ic:.057,sk:.0556}],120553:[.704,.022,.763,{sk:.0833}],120554:[.683,0,.44,{ic:.064,sk:.111}],120555:[.683,0,.849,{ic:.04,sk:.0556}],120556:[.716,0,.694,{sk:.167}],120557:[.683,0,.97,{ic:.081,sk:.0833}],120558:[.683,0,.803,{ic:.085,sk:.0833}],120559:[.677,0,.742,{ic:.035,sk:.0833}],120560:[.704,.022,.763,{sk:.0833}],120561:[.68,0,.831,{ic:.056,sk:.0556}],120562:[.683,0,.642,{ic:.109,sk:.0833}],120564:[.683,0,.78,{ic:.026,sk:.0833}],120565:[.677,0,.584,{ic:.12,sk:.0833}],120566:[.705,0,.583,{ic:.117,sk:.0556}],120567:[.683,0,.667,{sk:.0833}],120568:[.683,0,.828,{ic:.024,sk:.0833}],120569:[.683,0,.612,{ic:.08,sk:.0556}],120570:[.704,0,.772,{ic:.014,sk:.0833}],120572:[.442,.011,.64,{sk:.0278}],120573:[.705,.194,.566,{sk:.0833}],120574:[.441,.216,.518,{ic:.025}],120575:[.717,.01,.444,{sk:.0556}],120576:[.452,.022,.466,{sk:.0833}],120577:[.704,.204,.438,{ic:.033,sk:.0833}],120578:[.442,.216,.497,{sk:.0556}],120579:[.705,.01,.469,{sk:.0833}],120580:[.442,.01,.354,{sk:.0556}],120581:[.442,.011,.576],120582:[.694,.012,.583],120583:[.442,.216,.603,{sk:.0278}],120584:[.442,0,.494,{ic:.036,sk:.0278}],120585:[.704,.205,.438,{sk:.111}],120586:[.441,.011,.485,{sk:.0556}],120587:[.431,.011,.57],120588:[.442,.216,.517,{sk:.0833}],120589:[.442,.107,.363,{ic:.042,sk:.0833}],120590:[.431,.011,.571],120591:[.431,.013,.437,{ic:.08,sk:.0278}],120592:[.443,.01,.54,{sk:.0278}],120593:[.442,.218,.654,{sk:.0833}],120594:[.442,.204,.626,{sk:.0556}],120595:[.694,.205,.651,{sk:.111}],120596:[.443,.011,.622],120597:[.715,.022,.531,{ic:.035,sk:.0833}],120598:[.431,.011,.406,{sk:.0556}],120599:[.705,.011,.591,{sk:.0833}],120600:[.434,.006,.667,{ic:.067}],120601:[.694,.205,.596,{sk:.0833}],120602:[.442,.194,.517,{sk:.0833}],120603:[.431,.01,.828],120604:[.711,0,.869,{sk:.16}],120605:[.686,0,.866,{sk:.0958}],120606:[.68,0,.657,{ic:.12,sk:.0958}],120607:[.711,0,.958,{sk:.192}],120608:[.68,0,.81,{ic:.015,sk:.0958}],120609:[.686,0,.773,{ic:.032,sk:.0958}],120610:[.686,0,.982,{ic:.045,sk:.0639}],120611:[.702,.017,.867,{sk:.0958}],120612:[.686,0,.511,{ic:.062,sk:.128}],120613:[.686,0,.971,{ic:.032,sk:.0639}],120614:[.711,0,.806,{sk:.192}],120615:[.686,0,1.142,{ic:.077,sk:.0958}],120616:[.686,0,.95,{ic:.077,sk:.0958}],120617:[.675,0,.841,{ic:.026,sk:.0958}],120618:[.703,.017,.837,{sk:.0958}],120619:[.68,0,.982,{ic:.044,sk:.0639}],120620:[.686,0,.723,{ic:.124,sk:.0958}],120622:[.686,0,.885,{ic:.017,sk:.0958}],120623:[.675,0,.637,{ic:.135,sk:.0958}],120624:[.703,0,.671,{ic:.131,sk:.0639}],120625:[.686,0,.767,{sk:.0958}],120626:[.686,0,.947,{sk:.0958}],120627:[.686,0,.714,{ic:.076,sk:.0639}],120628:[.703,0,.879,{sk:.0958}],120630:[.452,.008,.761,{sk:.0319}],120631:[.701,.194,.66,{sk:.0958}],120632:[.451,.211,.59,{ic:.027}],120633:[.725,.008,.522,{sk:.0639}],120634:[.461,.017,.529,{sk:.0958}],120635:[.711,.202,.508,{ic:.013,sk:.0958}],120636:[.452,.211,.6,{sk:.0639}],120637:[.702,.008,.562,{sk:.0958}],120638:[.452,.008,.412,{sk:.0639}],120639:[.452,.008,.668],120640:[.694,.013,.671],120641:[.452,.211,.708,{sk:.0319}],120642:[.452,0,.577,{ic:.031,sk:.0319}],120643:[.711,.201,.508,{sk:.128}],120644:[.452,.008,.585,{sk:.0639}],120645:[.444,.008,.682],120646:[.451,.211,.612,{sk:.0958}],120647:[.451,.105,.424,{ic:.033,sk:.0958}],120648:[.444,.008,.686],120649:[.444,.013,.521,{ic:.089,sk:.0319}],120650:[.453,.008,.631,{sk:.0319}],120651:[.452,.216,.747,{sk:.0958}],120652:[.452,.201,.718,{sk:.0639}],120653:[.694,.202,.758,{sk:.128}],120654:[.453,.008,.718],120655:[.71,.017,.628,{ic:.029,sk:.0958}],120656:[.444,.007,.483,{sk:.0639}],120657:[.701,.008,.692,{sk:.0958}],120658:[.434,.006,.667,{ic:.067}],120659:[.694,.202,.712,{sk:.0958}],120660:[.451,.194,.612,{sk:.0958}],120661:[.444,.008,.975],120662:[.694,0,.733],120663:[.694,0,.733],120664:[.691,0,.581],120665:[.694,0,.917],120666:[.691,0,.642],120667:[.694,0,.672],120668:[.694,0,.794],120669:[.716,.022,.856],120670:[.694,0,.331],120671:[.694,0,.764],120672:[.694,0,.672],120673:[.694,0,.978],120674:[.694,0,.794],120675:[.688,0,.733],120676:[.716,.022,.794],120677:[.691,0,.794],120678:[.694,0,.703],120680:[.694,0,.794],120681:[.688,0,.733],120682:[.715,0,.856],120683:[.694,0,.794],120684:[.694,0,.733],120685:[.694,0,.856],120686:[.716,0,.794],120782:[.654,.01,.575],120783:[.655,0,.575],120784:[.654,0,.575],120785:[.655,.011,.575],120786:[.656,0,.575],120787:[.655,.011,.575],120788:[.655,.011,.575],120789:[.676,.011,.575],120790:[.654,.011,.575],120791:[.654,.011,.575],120802:[.678,.022,.5],120803:[.678,0,.5],120804:[.677,0,.5],120805:[.678,.022,.5],120806:[.656,0,.5],120807:[.656,.021,.5],120808:[.677,.022,.5],120809:[.656,.011,.5],120810:[.678,.022,.5],120811:[.677,.022,.5],120812:[.715,.022,.55],120813:[.716,0,.55],120814:[.716,0,.55],120815:[.716,.022,.55],120816:[.694,0,.55],120817:[.694,.022,.55],120818:[.716,.022,.55],120819:[.695,.011,.55],120820:[.715,.022,.55],120821:[.716,.022,.55],120822:[.621,.01,.525],120823:[.622,0,.525],120824:[.622,0,.525],120825:[.622,.011,.525],120826:[.624,0,.525],120827:[.611,.01,.525],120828:[.622,.011,.525],120829:[.627,.01,.525],120830:[.621,.01,.525],120831:[.622,.011,.525]},Object.defineProperty(pm,"__esModule",{value:!0}),pm.normal=void 0;var mq=Nt,yq=dm;pm.normal=(0,mq.AddCSS)(yq.normal,{163:{f:"MI"},165:{f:"A"},174:{f:"A"},183:{c:"\\22C5"},240:{f:"A"},697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8192:{c:""},8193:{c:""},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8203:{c:""},8204:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8245:{f:"A"},8246:{c:"\\2035\\2035",f:"A"},8247:{c:"\\2035\\2035\\2035",f:"A"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8288:{c:""},8289:{c:""},8290:{c:""},8291:{c:""},8292:{c:""},8407:{c:"\\2192",f:"V"},8450:{c:"C",f:"A"},8459:{c:"H",f:"SC"},8460:{c:"H",f:"FR"},8461:{c:"H",f:"A"},8462:{c:"h",f:"I"},8463:{f:"A"},8464:{c:"I",f:"SC"},8465:{c:"I",f:"FR"},8466:{c:"L",f:"SC"},8469:{c:"N",f:"A"},8473:{c:"P",f:"A"},8474:{c:"Q",f:"A"},8475:{c:"R",f:"SC"},8476:{c:"R",f:"FR"},8477:{c:"R",f:"A"},8484:{c:"Z",f:"A"},8486:{c:"\\3A9"},8487:{f:"A"},8488:{c:"Z",f:"FR"},8492:{c:"B",f:"SC"},8493:{c:"C",f:"FR"},8496:{c:"E",f:"SC"},8497:{c:"F",f:"SC"},8498:{f:"A"},8499:{c:"M",f:"SC"},8502:{f:"A"},8503:{f:"A"},8504:{f:"A"},8513:{f:"A"},8602:{f:"A"},8603:{f:"A"},8606:{f:"A"},8608:{f:"A"},8610:{f:"A"},8611:{f:"A"},8619:{f:"A"},8620:{f:"A"},8621:{f:"A"},8622:{f:"A"},8624:{f:"A"},8625:{f:"A"},8630:{f:"A"},8631:{f:"A"},8634:{f:"A"},8635:{f:"A"},8638:{f:"A"},8639:{f:"A"},8642:{f:"A"},8643:{f:"A"},8644:{f:"A"},8646:{f:"A"},8647:{f:"A"},8648:{f:"A"},8649:{f:"A"},8650:{f:"A"},8651:{f:"A"},8653:{f:"A"},8654:{f:"A"},8655:{f:"A"},8666:{f:"A"},8667:{f:"A"},8669:{f:"A"},8672:{f:"A"},8674:{f:"A"},8705:{f:"A"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8717:{f:"A"},8719:{f:"S1"},8720:{f:"S1"},8721:{f:"S1"},8724:{f:"A"},8737:{f:"A"},8738:{f:"A"},8740:{f:"A"},8742:{f:"A"},8748:{f:"S1"},8749:{f:"S1"},8750:{f:"S1"},8756:{f:"A"},8757:{f:"A"},8765:{f:"A"},8769:{f:"A"},8770:{f:"A"},8772:{c:"\\2243\\338"},8775:{c:"\\2246",f:"A"},8777:{c:"\\2248\\338"},8778:{f:"A"},8782:{f:"A"},8783:{f:"A"},8785:{f:"A"},8786:{f:"A"},8787:{f:"A"},8790:{f:"A"},8791:{f:"A"},8796:{f:"A"},8802:{c:"\\2261\\338"},8806:{f:"A"},8807:{f:"A"},8808:{f:"A"},8809:{f:"A"},8812:{f:"A"},8813:{c:"\\224D\\338"},8814:{f:"A"},8815:{f:"A"},8816:{f:"A"},8817:{f:"A"},8818:{f:"A"},8819:{f:"A"},8820:{c:"\\2272\\338"},8821:{c:"\\2273\\338"},8822:{f:"A"},8823:{f:"A"},8824:{c:"\\2276\\338"},8825:{c:"\\2277\\338"},8828:{f:"A"},8829:{f:"A"},8830:{f:"A"},8831:{f:"A"},8832:{f:"A"},8833:{f:"A"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{f:"A"},8841:{f:"A"},8842:{f:"A"},8843:{f:"A"},8847:{f:"A"},8848:{f:"A"},8858:{f:"A"},8859:{f:"A"},8861:{f:"A"},8862:{f:"A"},8863:{f:"A"},8864:{f:"A"},8865:{f:"A"},8873:{f:"A"},8874:{f:"A"},8876:{f:"A"},8877:{f:"A"},8878:{f:"A"},8879:{f:"A"},8882:{f:"A"},8883:{f:"A"},8884:{f:"A"},8885:{f:"A"},8888:{f:"A"},8890:{f:"A"},8891:{f:"A"},8892:{f:"A"},8896:{f:"S1"},8897:{f:"S1"},8898:{f:"S1"},8899:{f:"S1"},8903:{f:"A"},8905:{f:"A"},8906:{f:"A"},8907:{f:"A"},8908:{f:"A"},8909:{f:"A"},8910:{f:"A"},8911:{f:"A"},8912:{f:"A"},8913:{f:"A"},8914:{f:"A"},8915:{f:"A"},8916:{f:"A"},8918:{f:"A"},8919:{f:"A"},8920:{f:"A"},8921:{f:"A"},8922:{f:"A"},8923:{f:"A"},8926:{f:"A"},8927:{f:"A"},8928:{f:"A"},8929:{f:"A"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},8934:{f:"A"},8935:{f:"A"},8936:{f:"A"},8937:{f:"A"},8938:{f:"A"},8939:{f:"A"},8940:{f:"A"},8941:{f:"A"},8965:{c:"\\22BC",f:"A"},8966:{c:"\\2A5E",f:"A"},8988:{c:"\\250C",f:"A"},8989:{c:"\\2510",f:"A"},8990:{c:"\\2514",f:"A"},8991:{c:"\\2518",f:"A"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},9416:{f:"A"},9484:{f:"A"},9488:{f:"A"},9492:{f:"A"},9496:{f:"A"},9585:{f:"A"},9586:{f:"A"},9632:{f:"A"},9633:{f:"A"},9642:{c:"\\25A0",f:"A"},9650:{f:"A"},9652:{c:"\\25B2",f:"A"},9653:{c:"\\25B3"},9654:{f:"A"},9656:{c:"\\25B6",f:"A"},9660:{f:"A"},9662:{c:"\\25BC",f:"A"},9663:{c:"\\25BD"},9664:{f:"A"},9666:{c:"\\25C0",f:"A"},9674:{f:"A"},9723:{c:"\\25A1",f:"A"},9724:{c:"\\25A0",f:"A"},9733:{f:"A"},10003:{f:"A"},10016:{f:"A"},10072:{c:"\\2223"},10731:{f:"A"},10744:{c:"/",f:"I"},10752:{f:"S1"},10753:{f:"S1"},10754:{f:"S1"},10756:{f:"S1"},10758:{f:"S1"},10764:{c:"\\222C\\222C",f:"S1"},10799:{c:"\\D7"},10846:{f:"A"},10877:{f:"A"},10878:{f:"A"},10885:{f:"A"},10886:{f:"A"},10887:{f:"A"},10888:{f:"A"},10889:{f:"A"},10890:{f:"A"},10891:{f:"A"},10892:{f:"A"},10901:{f:"A"},10902:{f:"A"},10933:{f:"A"},10934:{f:"A"},10935:{f:"A"},10936:{f:"A"},10937:{f:"A"},10938:{f:"A"},10949:{f:"A"},10950:{f:"A"},10955:{f:"A"},10956:{f:"A"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57350:{f:"A"},57351:{f:"A"},57352:{f:"A"},57353:{f:"A"},57356:{f:"A"},57357:{f:"A"},57358:{f:"A"},57359:{f:"A"},57360:{f:"A"},57361:{f:"A"},57366:{f:"A"},57367:{f:"A"},57368:{f:"A"},57369:{f:"A"},57370:{f:"A"},57371:{f:"A"},119808:{c:"A",f:"B"},119809:{c:"B",f:"B"},119810:{c:"C",f:"B"},119811:{c:"D",f:"B"},119812:{c:"E",f:"B"},119813:{c:"F",f:"B"},119814:{c:"G",f:"B"},119815:{c:"H",f:"B"},119816:{c:"I",f:"B"},119817:{c:"J",f:"B"},119818:{c:"K",f:"B"},119819:{c:"L",f:"B"},119820:{c:"M",f:"B"},119821:{c:"N",f:"B"},119822:{c:"O",f:"B"},119823:{c:"P",f:"B"},119824:{c:"Q",f:"B"},119825:{c:"R",f:"B"},119826:{c:"S",f:"B"},119827:{c:"T",f:"B"},119828:{c:"U",f:"B"},119829:{c:"V",f:"B"},119830:{c:"W",f:"B"},119831:{c:"X",f:"B"},119832:{c:"Y",f:"B"},119833:{c:"Z",f:"B"},119834:{c:"a",f:"B"},119835:{c:"b",f:"B"},119836:{c:"c",f:"B"},119837:{c:"d",f:"B"},119838:{c:"e",f:"B"},119839:{c:"f",f:"B"},119840:{c:"g",f:"B"},119841:{c:"h",f:"B"},119842:{c:"i",f:"B"},119843:{c:"j",f:"B"},119844:{c:"k",f:"B"},119845:{c:"l",f:"B"},119846:{c:"m",f:"B"},119847:{c:"n",f:"B"},119848:{c:"o",f:"B"},119849:{c:"p",f:"B"},119850:{c:"q",f:"B"},119851:{c:"r",f:"B"},119852:{c:"s",f:"B"},119853:{c:"t",f:"B"},119854:{c:"u",f:"B"},119855:{c:"v",f:"B"},119856:{c:"w",f:"B"},119857:{c:"x",f:"B"},119858:{c:"y",f:"B"},119859:{c:"z",f:"B"},119860:{c:"A",f:"I"},119861:{c:"B",f:"I"},119862:{c:"C",f:"I"},119863:{c:"D",f:"I"},119864:{c:"E",f:"I"},119865:{c:"F",f:"I"},119866:{c:"G",f:"I"},119867:{c:"H",f:"I"},119868:{c:"I",f:"I"},119869:{c:"J",f:"I"},119870:{c:"K",f:"I"},119871:{c:"L",f:"I"},119872:{c:"M",f:"I"},119873:{c:"N",f:"I"},119874:{c:"O",f:"I"},119875:{c:"P",f:"I"},119876:{c:"Q",f:"I"},119877:{c:"R",f:"I"},119878:{c:"S",f:"I"},119879:{c:"T",f:"I"},119880:{c:"U",f:"I"},119881:{c:"V",f:"I"},119882:{c:"W",f:"I"},119883:{c:"X",f:"I"},119884:{c:"Y",f:"I"},119885:{c:"Z",f:"I"},119886:{c:"a",f:"I"},119887:{c:"b",f:"I"},119888:{c:"c",f:"I"},119889:{c:"d",f:"I"},119890:{c:"e",f:"I"},119891:{c:"f",f:"I"},119892:{c:"g",f:"I"},119894:{c:"i",f:"I"},119895:{c:"j",f:"I"},119896:{c:"k",f:"I"},119897:{c:"l",f:"I"},119898:{c:"m",f:"I"},119899:{c:"n",f:"I"},119900:{c:"o",f:"I"},119901:{c:"p",f:"I"},119902:{c:"q",f:"I"},119903:{c:"r",f:"I"},119904:{c:"s",f:"I"},119905:{c:"t",f:"I"},119906:{c:"u",f:"I"},119907:{c:"v",f:"I"},119908:{c:"w",f:"I"},119909:{c:"x",f:"I"},119910:{c:"y",f:"I"},119911:{c:"z",f:"I"},119912:{c:"A",f:"BI"},119913:{c:"B",f:"BI"},119914:{c:"C",f:"BI"},119915:{c:"D",f:"BI"},119916:{c:"E",f:"BI"},119917:{c:"F",f:"BI"},119918:{c:"G",f:"BI"},119919:{c:"H",f:"BI"},119920:{c:"I",f:"BI"},119921:{c:"J",f:"BI"},119922:{c:"K",f:"BI"},119923:{c:"L",f:"BI"},119924:{c:"M",f:"BI"},119925:{c:"N",f:"BI"},119926:{c:"O",f:"BI"},119927:{c:"P",f:"BI"},119928:{c:"Q",f:"BI"},119929:{c:"R",f:"BI"},119930:{c:"S",f:"BI"},119931:{c:"T",f:"BI"},119932:{c:"U",f:"BI"},119933:{c:"V",f:"BI"},119934:{c:"W",f:"BI"},119935:{c:"X",f:"BI"},119936:{c:"Y",f:"BI"},119937:{c:"Z",f:"BI"},119938:{c:"a",f:"BI"},119939:{c:"b",f:"BI"},119940:{c:"c",f:"BI"},119941:{c:"d",f:"BI"},119942:{c:"e",f:"BI"},119943:{c:"f",f:"BI"},119944:{c:"g",f:"BI"},119945:{c:"h",f:"BI"},119946:{c:"i",f:"BI"},119947:{c:"j",f:"BI"},119948:{c:"k",f:"BI"},119949:{c:"l",f:"BI"},119950:{c:"m",f:"BI"},119951:{c:"n",f:"BI"},119952:{c:"o",f:"BI"},119953:{c:"p",f:"BI"},119954:{c:"q",f:"BI"},119955:{c:"r",f:"BI"},119956:{c:"s",f:"BI"},119957:{c:"t",f:"BI"},119958:{c:"u",f:"BI"},119959:{c:"v",f:"BI"},119960:{c:"w",f:"BI"},119961:{c:"x",f:"BI"},119962:{c:"y",f:"BI"},119963:{c:"z",f:"BI"},119964:{c:"A",f:"SC"},119966:{c:"C",f:"SC"},119967:{c:"D",f:"SC"},119970:{c:"G",f:"SC"},119973:{c:"J",f:"SC"},119974:{c:"K",f:"SC"},119977:{c:"N",f:"SC"},119978:{c:"O",f:"SC"},119979:{c:"P",f:"SC"},119980:{c:"Q",f:"SC"},119982:{c:"S",f:"SC"},119983:{c:"T",f:"SC"},119984:{c:"U",f:"SC"},119985:{c:"V",f:"SC"},119986:{c:"W",f:"SC"},119987:{c:"X",f:"SC"},119988:{c:"Y",f:"SC"},119989:{c:"Z",f:"SC"},120068:{c:"A",f:"FR"},120069:{c:"B",f:"FR"},120071:{c:"D",f:"FR"},120072:{c:"E",f:"FR"},120073:{c:"F",f:"FR"},120074:{c:"G",f:"FR"},120077:{c:"J",f:"FR"},120078:{c:"K",f:"FR"},120079:{c:"L",f:"FR"},120080:{c:"M",f:"FR"},120081:{c:"N",f:"FR"},120082:{c:"O",f:"FR"},120083:{c:"P",f:"FR"},120084:{c:"Q",f:"FR"},120086:{c:"S",f:"FR"},120087:{c:"T",f:"FR"},120088:{c:"U",f:"FR"},120089:{c:"V",f:"FR"},120090:{c:"W",f:"FR"},120091:{c:"X",f:"FR"},120092:{c:"Y",f:"FR"},120094:{c:"a",f:"FR"},120095:{c:"b",f:"FR"},120096:{c:"c",f:"FR"},120097:{c:"d",f:"FR"},120098:{c:"e",f:"FR"},120099:{c:"f",f:"FR"},120100:{c:"g",f:"FR"},120101:{c:"h",f:"FR"},120102:{c:"i",f:"FR"},120103:{c:"j",f:"FR"},120104:{c:"k",f:"FR"},120105:{c:"l",f:"FR"},120106:{c:"m",f:"FR"},120107:{c:"n",f:"FR"},120108:{c:"o",f:"FR"},120109:{c:"p",f:"FR"},120110:{c:"q",f:"FR"},120111:{c:"r",f:"FR"},120112:{c:"s",f:"FR"},120113:{c:"t",f:"FR"},120114:{c:"u",f:"FR"},120115:{c:"v",f:"FR"},120116:{c:"w",f:"FR"},120117:{c:"x",f:"FR"},120118:{c:"y",f:"FR"},120119:{c:"z",f:"FR"},120120:{c:"A",f:"A"},120121:{c:"B",f:"A"},120123:{c:"D",f:"A"},120124:{c:"E",f:"A"},120125:{c:"F",f:"A"},120126:{c:"G",f:"A"},120128:{c:"I",f:"A"},120129:{c:"J",f:"A"},120130:{c:"K",f:"A"},120131:{c:"L",f:"A"},120132:{c:"M",f:"A"},120134:{c:"O",f:"A"},120138:{c:"S",f:"A"},120139:{c:"T",f:"A"},120140:{c:"U",f:"A"},120141:{c:"V",f:"A"},120142:{c:"W",f:"A"},120143:{c:"X",f:"A"},120144:{c:"Y",f:"A"},120172:{c:"A",f:"FRB"},120173:{c:"B",f:"FRB"},120174:{c:"C",f:"FRB"},120175:{c:"D",f:"FRB"},120176:{c:"E",f:"FRB"},120177:{c:"F",f:"FRB"},120178:{c:"G",f:"FRB"},120179:{c:"H",f:"FRB"},120180:{c:"I",f:"FRB"},120181:{c:"J",f:"FRB"},120182:{c:"K",f:"FRB"},120183:{c:"L",f:"FRB"},120184:{c:"M",f:"FRB"},120185:{c:"N",f:"FRB"},120186:{c:"O",f:"FRB"},120187:{c:"P",f:"FRB"},120188:{c:"Q",f:"FRB"},120189:{c:"R",f:"FRB"},120190:{c:"S",f:"FRB"},120191:{c:"T",f:"FRB"},120192:{c:"U",f:"FRB"},120193:{c:"V",f:"FRB"},120194:{c:"W",f:"FRB"},120195:{c:"X",f:"FRB"},120196:{c:"Y",f:"FRB"},120197:{c:"Z",f:"FRB"},120198:{c:"a",f:"FRB"},120199:{c:"b",f:"FRB"},120200:{c:"c",f:"FRB"},120201:{c:"d",f:"FRB"},120202:{c:"e",f:"FRB"},120203:{c:"f",f:"FRB"},120204:{c:"g",f:"FRB"},120205:{c:"h",f:"FRB"},120206:{c:"i",f:"FRB"},120207:{c:"j",f:"FRB"},120208:{c:"k",f:"FRB"},120209:{c:"l",f:"FRB"},120210:{c:"m",f:"FRB"},120211:{c:"n",f:"FRB"},120212:{c:"o",f:"FRB"},120213:{c:"p",f:"FRB"},120214:{c:"q",f:"FRB"},120215:{c:"r",f:"FRB"},120216:{c:"s",f:"FRB"},120217:{c:"t",f:"FRB"},120218:{c:"u",f:"FRB"},120219:{c:"v",f:"FRB"},120220:{c:"w",f:"FRB"},120221:{c:"x",f:"FRB"},120222:{c:"y",f:"FRB"},120223:{c:"z",f:"FRB"},120224:{c:"A",f:"SS"},120225:{c:"B",f:"SS"},120226:{c:"C",f:"SS"},120227:{c:"D",f:"SS"},120228:{c:"E",f:"SS"},120229:{c:"F",f:"SS"},120230:{c:"G",f:"SS"},120231:{c:"H",f:"SS"},120232:{c:"I",f:"SS"},120233:{c:"J",f:"SS"},120234:{c:"K",f:"SS"},120235:{c:"L",f:"SS"},120236:{c:"M",f:"SS"},120237:{c:"N",f:"SS"},120238:{c:"O",f:"SS"},120239:{c:"P",f:"SS"},120240:{c:"Q",f:"SS"},120241:{c:"R",f:"SS"},120242:{c:"S",f:"SS"},120243:{c:"T",f:"SS"},120244:{c:"U",f:"SS"},120245:{c:"V",f:"SS"},120246:{c:"W",f:"SS"},120247:{c:"X",f:"SS"},120248:{c:"Y",f:"SS"},120249:{c:"Z",f:"SS"},120250:{c:"a",f:"SS"},120251:{c:"b",f:"SS"},120252:{c:"c",f:"SS"},120253:{c:"d",f:"SS"},120254:{c:"e",f:"SS"},120255:{c:"f",f:"SS"},120256:{c:"g",f:"SS"},120257:{c:"h",f:"SS"},120258:{c:"i",f:"SS"},120259:{c:"j",f:"SS"},120260:{c:"k",f:"SS"},120261:{c:"l",f:"SS"},120262:{c:"m",f:"SS"},120263:{c:"n",f:"SS"},120264:{c:"o",f:"SS"},120265:{c:"p",f:"SS"},120266:{c:"q",f:"SS"},120267:{c:"r",f:"SS"},120268:{c:"s",f:"SS"},120269:{c:"t",f:"SS"},120270:{c:"u",f:"SS"},120271:{c:"v",f:"SS"},120272:{c:"w",f:"SS"},120273:{c:"x",f:"SS"},120274:{c:"y",f:"SS"},120275:{c:"z",f:"SS"},120276:{c:"A",f:"SSB"},120277:{c:"B",f:"SSB"},120278:{c:"C",f:"SSB"},120279:{c:"D",f:"SSB"},120280:{c:"E",f:"SSB"},120281:{c:"F",f:"SSB"},120282:{c:"G",f:"SSB"},120283:{c:"H",f:"SSB"},120284:{c:"I",f:"SSB"},120285:{c:"J",f:"SSB"},120286:{c:"K",f:"SSB"},120287:{c:"L",f:"SSB"},120288:{c:"M",f:"SSB"},120289:{c:"N",f:"SSB"},120290:{c:"O",f:"SSB"},120291:{c:"P",f:"SSB"},120292:{c:"Q",f:"SSB"},120293:{c:"R",f:"SSB"},120294:{c:"S",f:"SSB"},120295:{c:"T",f:"SSB"},120296:{c:"U",f:"SSB"},120297:{c:"V",f:"SSB"},120298:{c:"W",f:"SSB"},120299:{c:"X",f:"SSB"},120300:{c:"Y",f:"SSB"},120301:{c:"Z",f:"SSB"},120302:{c:"a",f:"SSB"},120303:{c:"b",f:"SSB"},120304:{c:"c",f:"SSB"},120305:{c:"d",f:"SSB"},120306:{c:"e",f:"SSB"},120307:{c:"f",f:"SSB"},120308:{c:"g",f:"SSB"},120309:{c:"h",f:"SSB"},120310:{c:"i",f:"SSB"},120311:{c:"j",f:"SSB"},120312:{c:"k",f:"SSB"},120313:{c:"l",f:"SSB"},120314:{c:"m",f:"SSB"},120315:{c:"n",f:"SSB"},120316:{c:"o",f:"SSB"},120317:{c:"p",f:"SSB"},120318:{c:"q",f:"SSB"},120319:{c:"r",f:"SSB"},120320:{c:"s",f:"SSB"},120321:{c:"t",f:"SSB"},120322:{c:"u",f:"SSB"},120323:{c:"v",f:"SSB"},120324:{c:"w",f:"SSB"},120325:{c:"x",f:"SSB"},120326:{c:"y",f:"SSB"},120327:{c:"z",f:"SSB"},120328:{c:"A",f:"SSI"},120329:{c:"B",f:"SSI"},120330:{c:"C",f:"SSI"},120331:{c:"D",f:"SSI"},120332:{c:"E",f:"SSI"},120333:{c:"F",f:"SSI"},120334:{c:"G",f:"SSI"},120335:{c:"H",f:"SSI"},120336:{c:"I",f:"SSI"},120337:{c:"J",f:"SSI"},120338:{c:"K",f:"SSI"},120339:{c:"L",f:"SSI"},120340:{c:"M",f:"SSI"},120341:{c:"N",f:"SSI"},120342:{c:"O",f:"SSI"},120343:{c:"P",f:"SSI"},120344:{c:"Q",f:"SSI"},120345:{c:"R",f:"SSI"},120346:{c:"S",f:"SSI"},120347:{c:"T",f:"SSI"},120348:{c:"U",f:"SSI"},120349:{c:"V",f:"SSI"},120350:{c:"W",f:"SSI"},120351:{c:"X",f:"SSI"},120352:{c:"Y",f:"SSI"},120353:{c:"Z",f:"SSI"},120354:{c:"a",f:"SSI"},120355:{c:"b",f:"SSI"},120356:{c:"c",f:"SSI"},120357:{c:"d",f:"SSI"},120358:{c:"e",f:"SSI"},120359:{c:"f",f:"SSI"},120360:{c:"g",f:"SSI"},120361:{c:"h",f:"SSI"},120362:{c:"i",f:"SSI"},120363:{c:"j",f:"SSI"},120364:{c:"k",f:"SSI"},120365:{c:"l",f:"SSI"},120366:{c:"m",f:"SSI"},120367:{c:"n",f:"SSI"},120368:{c:"o",f:"SSI"},120369:{c:"p",f:"SSI"},120370:{c:"q",f:"SSI"},120371:{c:"r",f:"SSI"},120372:{c:"s",f:"SSI"},120373:{c:"t",f:"SSI"},120374:{c:"u",f:"SSI"},120375:{c:"v",f:"SSI"},120376:{c:"w",f:"SSI"},120377:{c:"x",f:"SSI"},120378:{c:"y",f:"SSI"},120379:{c:"z",f:"SSI"},120432:{c:"A",f:"T"},120433:{c:"B",f:"T"},120434:{c:"C",f:"T"},120435:{c:"D",f:"T"},120436:{c:"E",f:"T"},120437:{c:"F",f:"T"},120438:{c:"G",f:"T"},120439:{c:"H",f:"T"},120440:{c:"I",f:"T"},120441:{c:"J",f:"T"},120442:{c:"K",f:"T"},120443:{c:"L",f:"T"},120444:{c:"M",f:"T"},120445:{c:"N",f:"T"},120446:{c:"O",f:"T"},120447:{c:"P",f:"T"},120448:{c:"Q",f:"T"},120449:{c:"R",f:"T"},120450:{c:"S",f:"T"},120451:{c:"T",f:"T"},120452:{c:"U",f:"T"},120453:{c:"V",f:"T"},120454:{c:"W",f:"T"},120455:{c:"X",f:"T"},120456:{c:"Y",f:"T"},120457:{c:"Z",f:"T"},120458:{c:"a",f:"T"},120459:{c:"b",f:"T"},120460:{c:"c",f:"T"},120461:{c:"d",f:"T"},120462:{c:"e",f:"T"},120463:{c:"f",f:"T"},120464:{c:"g",f:"T"},120465:{c:"h",f:"T"},120466:{c:"i",f:"T"},120467:{c:"j",f:"T"},120468:{c:"k",f:"T"},120469:{c:"l",f:"T"},120470:{c:"m",f:"T"},120471:{c:"n",f:"T"},120472:{c:"o",f:"T"},120473:{c:"p",f:"T"},120474:{c:"q",f:"T"},120475:{c:"r",f:"T"},120476:{c:"s",f:"T"},120477:{c:"t",f:"T"},120478:{c:"u",f:"T"},120479:{c:"v",f:"T"},120480:{c:"w",f:"T"},120481:{c:"x",f:"T"},120482:{c:"y",f:"T"},120483:{c:"z",f:"T"},120488:{c:"A",f:"B"},120489:{c:"B",f:"B"},120490:{c:"\\393",f:"B"},120491:{c:"\\394",f:"B"},120492:{c:"E",f:"B"},120493:{c:"Z",f:"B"},120494:{c:"H",f:"B"},120495:{c:"\\398",f:"B"},120496:{c:"I",f:"B"},120497:{c:"K",f:"B"},120498:{c:"\\39B",f:"B"},120499:{c:"M",f:"B"},120500:{c:"N",f:"B"},120501:{c:"\\39E",f:"B"},120502:{c:"O",f:"B"},120503:{c:"\\3A0",f:"B"},120504:{c:"P",f:"B"},120506:{c:"\\3A3",f:"B"},120507:{c:"T",f:"B"},120508:{c:"\\3A5",f:"B"},120509:{c:"\\3A6",f:"B"},120510:{c:"X",f:"B"},120511:{c:"\\3A8",f:"B"},120512:{c:"\\3A9",f:"B"},120513:{c:"\\2207",f:"B"},120546:{c:"A",f:"I"},120547:{c:"B",f:"I"},120548:{c:"\\393",f:"I"},120549:{c:"\\394",f:"I"},120550:{c:"E",f:"I"},120551:{c:"Z",f:"I"},120552:{c:"H",f:"I"},120553:{c:"\\398",f:"I"},120554:{c:"I",f:"I"},120555:{c:"K",f:"I"},120556:{c:"\\39B",f:"I"},120557:{c:"M",f:"I"},120558:{c:"N",f:"I"},120559:{c:"\\39E",f:"I"},120560:{c:"O",f:"I"},120561:{c:"\\3A0",f:"I"},120562:{c:"P",f:"I"},120564:{c:"\\3A3",f:"I"},120565:{c:"T",f:"I"},120566:{c:"\\3A5",f:"I"},120567:{c:"\\3A6",f:"I"},120568:{c:"X",f:"I"},120569:{c:"\\3A8",f:"I"},120570:{c:"\\3A9",f:"I"},120572:{c:"\\3B1",f:"I"},120573:{c:"\\3B2",f:"I"},120574:{c:"\\3B3",f:"I"},120575:{c:"\\3B4",f:"I"},120576:{c:"\\3B5",f:"I"},120577:{c:"\\3B6",f:"I"},120578:{c:"\\3B7",f:"I"},120579:{c:"\\3B8",f:"I"},120580:{c:"\\3B9",f:"I"},120581:{c:"\\3BA",f:"I"},120582:{c:"\\3BB",f:"I"},120583:{c:"\\3BC",f:"I"},120584:{c:"\\3BD",f:"I"},120585:{c:"\\3BE",f:"I"},120586:{c:"\\3BF",f:"I"},120587:{c:"\\3C0",f:"I"},120588:{c:"\\3C1",f:"I"},120589:{c:"\\3C2",f:"I"},120590:{c:"\\3C3",f:"I"},120591:{c:"\\3C4",f:"I"},120592:{c:"\\3C5",f:"I"},120593:{c:"\\3C6",f:"I"},120594:{c:"\\3C7",f:"I"},120595:{c:"\\3C8",f:"I"},120596:{c:"\\3C9",f:"I"},120597:{c:"\\2202"},120598:{c:"\\3F5",f:"I"},120599:{c:"\\3D1",f:"I"},120600:{c:"\\E009",f:"A"},120601:{c:"\\3D5",f:"I"},120602:{c:"\\3F1",f:"I"},120603:{c:"\\3D6",f:"I"},120604:{c:"A",f:"BI"},120605:{c:"B",f:"BI"},120606:{c:"\\393",f:"BI"},120607:{c:"\\394",f:"BI"},120608:{c:"E",f:"BI"},120609:{c:"Z",f:"BI"},120610:{c:"H",f:"BI"},120611:{c:"\\398",f:"BI"},120612:{c:"I",f:"BI"},120613:{c:"K",f:"BI"},120614:{c:"\\39B",f:"BI"},120615:{c:"M",f:"BI"},120616:{c:"N",f:"BI"},120617:{c:"\\39E",f:"BI"},120618:{c:"O",f:"BI"},120619:{c:"\\3A0",f:"BI"},120620:{c:"P",f:"BI"},120622:{c:"\\3A3",f:"BI"},120623:{c:"T",f:"BI"},120624:{c:"\\3A5",f:"BI"},120625:{c:"\\3A6",f:"BI"},120626:{c:"X",f:"BI"},120627:{c:"\\3A8",f:"BI"},120628:{c:"\\3A9",f:"BI"},120630:{c:"\\3B1",f:"BI"},120631:{c:"\\3B2",f:"BI"},120632:{c:"\\3B3",f:"BI"},120633:{c:"\\3B4",f:"BI"},120634:{c:"\\3B5",f:"BI"},120635:{c:"\\3B6",f:"BI"},120636:{c:"\\3B7",f:"BI"},120637:{c:"\\3B8",f:"BI"},120638:{c:"\\3B9",f:"BI"},120639:{c:"\\3BA",f:"BI"},120640:{c:"\\3BB",f:"BI"},120641:{c:"\\3BC",f:"BI"},120642:{c:"\\3BD",f:"BI"},120643:{c:"\\3BE",f:"BI"},120644:{c:"\\3BF",f:"BI"},120645:{c:"\\3C0",f:"BI"},120646:{c:"\\3C1",f:"BI"},120647:{c:"\\3C2",f:"BI"},120648:{c:"\\3C3",f:"BI"},120649:{c:"\\3C4",f:"BI"},120650:{c:"\\3C5",f:"BI"},120651:{c:"\\3C6",f:"BI"},120652:{c:"\\3C7",f:"BI"},120653:{c:"\\3C8",f:"BI"},120654:{c:"\\3C9",f:"BI"},120655:{c:"\\2202",f:"B"},120656:{c:"\\3F5",f:"BI"},120657:{c:"\\3D1",f:"BI"},120658:{c:"\\E009",f:"A"},120659:{c:"\\3D5",f:"BI"},120660:{c:"\\3F1",f:"BI"},120661:{c:"\\3D6",f:"BI"},120662:{c:"A",f:"SSB"},120663:{c:"B",f:"SSB"},120664:{c:"\\393",f:"SSB"},120665:{c:"\\394",f:"SSB"},120666:{c:"E",f:"SSB"},120667:{c:"Z",f:"SSB"},120668:{c:"H",f:"SSB"},120669:{c:"\\398",f:"SSB"},120670:{c:"I",f:"SSB"},120671:{c:"K",f:"SSB"},120672:{c:"\\39B",f:"SSB"},120673:{c:"M",f:"SSB"},120674:{c:"N",f:"SSB"},120675:{c:"\\39E",f:"SSB"},120676:{c:"O",f:"SSB"},120677:{c:"\\3A0",f:"SSB"},120678:{c:"P",f:"SSB"},120680:{c:"\\3A3",f:"SSB"},120681:{c:"T",f:"SSB"},120682:{c:"\\3A5",f:"SSB"},120683:{c:"\\3A6",f:"SSB"},120684:{c:"X",f:"SSB"},120685:{c:"\\3A8",f:"SSB"},120686:{c:"\\3A9",f:"SSB"},120782:{c:"0",f:"B"},120783:{c:"1",f:"B"},120784:{c:"2",f:"B"},120785:{c:"3",f:"B"},120786:{c:"4",f:"B"},120787:{c:"5",f:"B"},120788:{c:"6",f:"B"},120789:{c:"7",f:"B"},120790:{c:"8",f:"B"},120791:{c:"9",f:"B"},120802:{c:"0",f:"SS"},120803:{c:"1",f:"SS"},120804:{c:"2",f:"SS"},120805:{c:"3",f:"SS"},120806:{c:"4",f:"SS"},120807:{c:"5",f:"SS"},120808:{c:"6",f:"SS"},120809:{c:"7",f:"SS"},120810:{c:"8",f:"SS"},120811:{c:"9",f:"SS"},120812:{c:"0",f:"SSB"},120813:{c:"1",f:"SSB"},120814:{c:"2",f:"SSB"},120815:{c:"3",f:"SSB"},120816:{c:"4",f:"SSB"},120817:{c:"5",f:"SSB"},120818:{c:"6",f:"SSB"},120819:{c:"7",f:"SSB"},120820:{c:"8",f:"SSB"},120821:{c:"9",f:"SSB"},120822:{c:"0",f:"T"},120823:{c:"1",f:"T"},120824:{c:"2",f:"T"},120825:{c:"3",f:"T"},120826:{c:"4",f:"T"},120827:{c:"5",f:"T"},120828:{c:"6",f:"T"},120829:{c:"7",f:"T"},120830:{c:"8",f:"T"},120831:{c:"9",f:"T"}});var hm={},fm={};Object.defineProperty(fm,"__esModule",{value:!0}),fm.sansSerifBoldItalic=void 0,fm.sansSerifBoldItalic={305:[.458,0,.256],567:[.458,.205,.286]},Object.defineProperty(hm,"__esModule",{value:!0}),hm.sansSerifBoldItalic=void 0;var gq=Nt,bq=fm;hm.sansSerifBoldItalic=(0,gq.AddCSS)(bq.sansSerifBoldItalic,{305:{f:"SSB"},567:{f:"SSB"}});var mm={},ym={};Object.defineProperty(ym,"__esModule",{value:!0}),ym.sansSerifBold=void 0,ym.sansSerifBold={33:[.694,0,.367],34:[.694,-.442,.558],35:[.694,.193,.917],36:[.75,.056,.55],37:[.75,.056,1.029],38:[.716,.022,.831],39:[.694,-.442,.306],40:[.75,.249,.428],41:[.75,.25,.428],42:[.75,-.293,.55],43:[.617,.116,.856],44:[.146,.106,.306],45:[.273,-.186,.367],46:[.146,0,.306],47:[.75,.249,.55],58:[.458,0,.306],59:[.458,.106,.306],61:[.407,-.094,.856],63:[.705,0,.519],64:[.704,.011,.733],91:[.75,.25,.343],93:[.75,.25,.343],94:[.694,-.537,.55],95:[-.023,.11,.55],126:[.344,-.198,.55],305:[.458,0,.256],567:[.458,.205,.286],768:[.694,-.537,0],769:[.694,-.537,0],770:[.694,-.537,0],771:[.694,-.548,0],772:[.66,-.56,0],774:[.694,-.552,0],775:[.695,-.596,0],776:[.695,-.595,0],778:[.694,-.538,0],779:[.694,-.537,0],780:[.657,-.5,0],8211:[.327,-.24,.55],8212:[.327,-.24,1.1],8213:[.327,-.24,1.1],8215:[-.023,.11,.55],8216:[.694,-.443,.306],8217:[.694,-.442,.306],8220:[.694,-.443,.558],8221:[.694,-.442,.558],8260:[.75,.249,.55],8710:[.694,0,.917]},Object.defineProperty(mm,"__esModule",{value:!0}),mm.sansSerifBold=void 0;var vq=Nt,Sq=ym;mm.sansSerifBold=(0,vq.AddCSS)(Sq.sansSerifBold,{8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}});var gm={},bm={};Object.defineProperty(bm,"__esModule",{value:!0}),bm.sansSerifItalic=void 0,bm.sansSerifItalic={33:[.694,0,.319,{ic:.036}],34:[.694,-.471,.5],35:[.694,.194,.833,{ic:.018}],36:[.75,.056,.5,{ic:.065}],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278,{ic:.057}],40:[.75,.25,.389,{ic:.102}],41:[.75,.25,.389],42:[.75,-.306,.5,{ic:.068}],43:[.583,.083,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5,{ic:.1}],48:[.678,.022,.5,{ic:.049}],49:[.678,0,.5],50:[.678,0,.5,{ic:.051}],51:[.678,.022,.5,{ic:.044}],52:[.656,0,.5,{ic:.021}],53:[.656,.022,.5,{ic:.055}],54:[.678,.022,.5,{ic:.048}],55:[.656,.011,.5,{ic:.096}],56:[.678,.022,.5,{ic:.054}],57:[.677,.022,.5,{ic:.045}],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778,{ic:.018}],63:[.704,0,.472,{ic:.064}],64:[.705,.01,.667,{ic:.04}],91:[.75,.25,.289,{ic:.136}],93:[.75,.25,.289,{ic:.064}],94:[.694,-.527,.5,{ic:.033}],95:[-.038,.114,.5,{ic:.065}],126:[.327,-.193,.5,{ic:.06}],305:[.444,0,.239,{ic:.019}],567:[.444,.204,.267,{ic:.019}],768:[.694,-.527,0],769:[.694,-.527,0,{ic:.063}],770:[.694,-.527,0,{ic:.033}],771:[.677,-.543,0,{ic:.06}],772:[.631,-.552,0,{ic:.064}],774:[.694,-.508,0,{ic:.073}],775:[.68,-.576,0],776:[.68,-.582,0,{ic:.04}],778:[.693,-.527,0],779:[.694,-.527,0,{ic:.063}],780:[.654,-.487,0,{ic:.06}],913:[.694,0,.667],914:[.694,0,.667,{ic:.029}],915:[.691,0,.542,{ic:.104}],916:[.694,0,.833],917:[.691,0,.597,{ic:.091}],918:[.694,0,.611,{ic:.091}],919:[.694,0,.708,{ic:.06}],920:[.715,.022,.778,{ic:.026}],921:[.694,0,.278,{ic:.06}],922:[.694,0,.694,{ic:.091}],923:[.694,0,.611],924:[.694,0,.875,{ic:.054}],925:[.694,0,.708,{ic:.058}],926:[.688,0,.667,{ic:.098}],927:[.716,.022,.736,{ic:.027}],928:[.691,0,.708,{ic:.06}],929:[.694,0,.639,{ic:.051}],931:[.694,0,.722,{ic:.091}],932:[.688,0,.681,{ic:.109}],933:[.716,0,.778,{ic:.065}],934:[.694,0,.722,{ic:.021}],935:[.694,0,.667,{ic:.091}],936:[.694,0,.778,{ic:.076}],937:[.716,0,.722,{ic:.047}],8211:[.312,-.236,.5,{ic:.065}],8212:[.312,-.236,1,{ic:.065}],8213:[.312,-.236,1,{ic:.065}],8215:[-.038,.114,.5,{ic:.065}],8216:[.694,-.471,.278,{ic:.058}],8217:[.694,-.471,.278,{ic:.057}],8220:[.694,-.471,.5,{ic:.114}],8221:[.694,-.471,.5],8260:[.75,.25,.5,{ic:.1}],8710:[.694,0,.833]},Object.defineProperty(gm,"__esModule",{value:!0}),gm.sansSerifItalic=void 0;var Eq=Nt,xq=bm;gm.sansSerifItalic=(0,Eq.AddCSS)(xq.sansSerifItalic,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}});var vm={},Sm={};Object.defineProperty(Sm,"__esModule",{value:!0}),Sm.sansSerif=void 0,Sm.sansSerif={33:[.694,0,.319],34:[.694,-.471,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.306,.5],43:[.583,.082,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778],63:[.704,0,.472],64:[.704,.011,.667],91:[.75,.25,.289],93:[.75,.25,.289],94:[.694,-.527,.5],95:[-.038,.114,.5],126:[.327,-.193,.5],305:[.444,0,.239],567:[.444,.205,.267],768:[.694,-.527,0],769:[.694,-.527,0],770:[.694,-.527,0],771:[.677,-.543,0],772:[.631,-.552,0],774:[.694,-.508,0],775:[.68,-.576,0],776:[.68,-.582,0],778:[.694,-.527,0],779:[.694,-.527,0],780:[.654,-.487,0],913:[.694,0,.667],914:[.694,0,.667],915:[.691,0,.542],916:[.694,0,.833],917:[.691,0,.597],918:[.694,0,.611],919:[.694,0,.708],920:[.716,.021,.778],921:[.694,0,.278],922:[.694,0,.694],923:[.694,0,.611],924:[.694,0,.875],925:[.694,0,.708],926:[.688,0,.667],927:[.715,.022,.736],928:[.691,0,.708],929:[.694,0,.639],931:[.694,0,.722],932:[.688,0,.681],933:[.716,0,.778],934:[.694,0,.722],935:[.694,0,.667],936:[.694,0,.778],937:[.716,0,.722],8211:[.312,-.236,.5],8212:[.312,-.236,1],8213:[.312,-.236,1],8215:[-.038,.114,.5],8216:[.694,-.471,.278],8217:[.694,-.471,.278],8220:[.694,-.471,.5],8221:[.694,-.471,.5],8260:[.75,.25,.5],8710:[.694,0,.833]},Object.defineProperty(vm,"__esModule",{value:!0}),vm.sansSerif=void 0;var Mq=Nt,Oq=Sm;vm.sansSerif=(0,Mq.AddCSS)(Oq.sansSerif,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}});var Xb={},Em={};Object.defineProperty(Em,"__esModule",{value:!0}),Em.scriptBold=void 0,Em.scriptBold={},(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.scriptBold=void 0;var t=Em;Object.defineProperty(e,"scriptBold",{enumerable:!0,get:function(){return t.scriptBold}})})(Xb),ee(Xb);var Vb={},xm={};Object.defineProperty(xm,"__esModule",{value:!0}),xm.script=void 0,xm.script={},(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.script=void 0;var t=xm;Object.defineProperty(e,"script",{enumerable:!0,get:function(){return t.script}})})(Vb),ee(Vb);var Mm={},Om={};Object.defineProperty(Om,"__esModule",{value:!0}),Om.smallop=void 0,Om.smallop={40:[.85,.349,.458],41:[.85,.349,.458],47:[.85,.349,.578],91:[.85,.349,.417],92:[.85,.349,.578],93:[.85,.349,.417],123:[.85,.349,.583],125:[.85,.349,.583],710:[.744,-.551,.556],732:[.722,-.597,.556],770:[.744,-.551,0],771:[.722,-.597,0],8214:[.602,0,.778],8260:[.85,.349,.578],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8730:[.85,.35,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[.805,.306,.472,{ic:.138}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8968:[.85,.349,.472],8969:[.85,.349,.472],8970:[.85,.349,.472],8971:[.85,.349,.472],9001:[.85,.35,.472],9002:[.85,.35,.472],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[.85,.35,.472],10217:[.85,.35,.472],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],12296:[.85,.35,.472],12297:[.85,.35,.472]},Object.defineProperty(Mm,"__esModule",{value:!0}),Mm.smallop=void 0;var Aq=Nt,Tq=Om;Mm.smallop=(0,Aq.AddCSS)(Tq.smallop,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},10072:{c:"\\2223"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}});var Am={},Tm={};Object.defineProperty(Tm,"__esModule",{value:!0}),Tm.texCalligraphicBold=void 0,Tm.texCalligraphicBold={65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}]},Object.defineProperty(Am,"__esModule",{value:!0}),Am.texCalligraphicBold=void 0;var Cq=Nt,Nq=Tm;Am.texCalligraphicBold=(0,Cq.AddCSS)(Nq.texCalligraphicBold,{305:{f:"B"},567:{f:"B"}});var Wb={},Cm={};Object.defineProperty(Cm,"__esModule",{value:!0}),Cm.texCalligraphic=void 0,Cm.texCalligraphic={65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]},(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphic=void 0;var t=Cm;Object.defineProperty(e,"texCalligraphic",{enumerable:!0,get:function(){return t.texCalligraphic}})})(Wb),ee(Wb);var $b={},Nm={};Object.defineProperty(Nm,"__esModule",{value:!0}),Nm.texMathit=void 0,Nm.texMathit={65:[.716,0,.743],66:[.683,0,.704],67:[.705,.021,.716],68:[.683,0,.755],69:[.68,0,.678],70:[.68,0,.653],71:[.705,.022,.774],72:[.683,0,.743],73:[.683,0,.386],74:[.683,.021,.525],75:[.683,0,.769],76:[.683,0,.627],77:[.683,0,.897],78:[.683,0,.743],79:[.704,.022,.767],80:[.683,0,.678],81:[.704,.194,.767],82:[.683,.022,.729],83:[.705,.022,.562],84:[.677,0,.716],85:[.683,.022,.743],86:[.683,.022,.743],87:[.683,.022,.999],88:[.683,0,.743],89:[.683,0,.743],90:[.683,0,.613],97:[.442,.011,.511],98:[.694,.011,.46],99:[.441,.01,.46],100:[.694,.011,.511],101:[.442,.01,.46],102:[.705,.204,.307],103:[.442,.205,.46],104:[.694,.011,.511],105:[.656,.01,.307],106:[.656,.204,.307],107:[.694,.011,.46],108:[.694,.011,.256],109:[.442,.011,.818],110:[.442,.011,.562],111:[.442,.011,.511],112:[.442,.194,.511],113:[.442,.194,.46],114:[.442,.011,.422],115:[.442,.011,.409],116:[.626,.011,.332],117:[.441,.011,.537],118:[.443,.01,.46],119:[.443,.011,.664],120:[.442,.011,.464],121:[.441,.205,.486],122:[.442,.011,.409]},(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.texMathit=void 0;var t=Nm;Object.defineProperty(e,"texMathit",{enumerable:!0,get:function(){return t.texMathit}})})($b),ee($b);var zb={},_m={};Object.defineProperty(_m,"__esModule",{value:!0}),_m.texOldstyleBold=void 0,_m.texOldstyleBold={48:[.46,.017,.575],49:[.461,0,.575],50:[.46,0,.575],51:[.461,.211,.575],52:[.469,.194,.575],53:[.461,.211,.575],54:[.66,.017,.575],55:[.476,.211,.575],56:[.661,.017,.575],57:[.461,.21,.575],65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}]},(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyleBold=void 0;var t=_m;Object.defineProperty(e,"texOldstyleBold",{enumerable:!0,get:function(){return t.texOldstyleBold}})})(zb),ee(zb);var Kb={},wm={};Object.defineProperty(wm,"__esModule",{value:!0}),wm.texOldstyle=void 0,wm.texOldstyle={48:[.452,.022,.5],49:[.453,0,.5],50:[.453,0,.5],51:[.452,.216,.5],52:[.464,.194,.5],53:[.453,.216,.5],54:[.665,.022,.5],55:[.463,.216,.5],56:[.666,.021,.5],57:[.453,.216,.5],65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]},(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyle=void 0;var t=wm;Object.defineProperty(e,"texOldstyle",{enumerable:!0,get:function(){return t.texOldstyle}})})(Kb),ee(Kb);var Rm={},Lm={};Object.defineProperty(Lm,"__esModule",{value:!0}),Lm.texSize3=void 0,Lm.texSize3={40:[1.45,.949,.736],41:[1.45,.949,.736],47:[1.45,.949,1.044],91:[1.45,.949,.528],92:[1.45,.949,1.044],93:[1.45,.949,.528],123:[1.45,.949,.75],125:[1.45,.949,.75],710:[.772,-.564,1.444],732:[.749,-.61,1.444],770:[.772,-.564,0],771:[.749,-.61,0],8260:[1.45,.949,1.044],8730:[1.45,.95,1,{ic:.02}],8968:[1.45,.949,.583],8969:[1.45,.949,.583],8970:[1.45,.949,.583],8971:[1.45,.949,.583],9001:[1.45,.95,.75],9002:[1.45,.949,.75],10216:[1.45,.95,.75],10217:[1.45,.949,.75],12296:[1.45,.95,.75],12297:[1.45,.949,.75]},Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.texSize3=void 0;var _q=Nt,wq=Lm;Rm.texSize3=(0,_q.AddCSS)(wq.texSize3,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}});var Im={},Pm={};Object.defineProperty(Pm,"__esModule",{value:!0}),Pm.texSize4=void 0,Pm.texSize4={40:[1.75,1.249,.792],41:[1.75,1.249,.792],47:[1.75,1.249,1.278],91:[1.75,1.249,.583],92:[1.75,1.249,1.278],93:[1.75,1.249,.583],123:[1.75,1.249,.806],125:[1.75,1.249,.806],710:[.845,-.561,1.889,{ic:.013}],732:[.823,-.583,1.889],770:[.845,-.561,0,{ic:.013}],771:[.823,-.583,0],8260:[1.75,1.249,1.278],8730:[1.75,1.25,1,{ic:.02}],8968:[1.75,1.249,.639],8969:[1.75,1.249,.639],8970:[1.75,1.249,.639],8971:[1.75,1.249,.639],9001:[1.75,1.248,.806],9002:[1.75,1.248,.806],9115:[1.154,.655,.875],9116:[.61,.01,.875],9117:[1.165,.644,.875],9118:[1.154,.655,.875],9119:[.61,.01,.875],9120:[1.165,.644,.875],9121:[1.154,.645,.667],9122:[.602,0,.667],9123:[1.155,.644,.667],9124:[1.154,.645,.667],9125:[.602,0,.667],9126:[1.155,.644,.667],9127:[.899,.01,.889],9128:[1.16,.66,.889],9129:[.01,.899,.889],9130:[.29,.015,.889],9131:[.899,.01,.889],9132:[1.16,.66,.889],9133:[.01,.899,.889],9143:[.935,.885,1.056],10216:[1.75,1.248,.806],10217:[1.75,1.248,.806],12296:[1.75,1.248,.806],12297:[1.75,1.248,.806],57344:[.625,.014,1.056],57345:[.605,.014,1.056,{ic:.02}],57680:[.12,.213,.45,{ic:.01}],57681:[.12,.213,.45,{ic:.024}],57682:[.333,0,.45,{ic:.01}],57683:[.333,0,.45,{ic:.024}],57684:[.32,.2,.4,{ic:.01}],57685:[.333,0,.9,{ic:.01}],57686:[.12,.213,.9,{ic:.01}]},Object.defineProperty(Im,"__esModule",{value:!0}),Im.texSize4=void 0;var Rq=Nt,Lq=Pm;Im.texSize4=(0,Rq.AddCSS)(Lq.texSize4,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57685:{c:"\\E153\\E152"},57686:{c:"\\E151\\E150"}});var km={},Bm={};Object.defineProperty(Bm,"__esModule",{value:!0}),Bm.texVariant=void 0,Bm.texVariant={710:[.845,-.561,2.333,{ic:.013}],732:[.899,-.628,2.333],770:[.845,-.561,0,{ic:.013}],771:[.899,-.628,0],1008:[.434,.006,.667,{ic:.067}],8463:[.695,.013,.54,{ic:.022}],8592:[.437,-.064,.5],8594:[.437,-.064,.5],8652:[.514,.014,1],8708:[.86,.166,.556],8709:[.587,0,.778],8722:[.27,-.23,.5],8726:[.43,.023,.778],8733:[.472,-.028,.778],8739:[.43,.023,.222],8740:[.43,.023,.222,{ic:.018}],8741:[.431,.023,.389],8742:[.431,.024,.389,{ic:.018}],8764:[.365,-.132,.778],8776:[.481,-.05,.778],8808:[.752,.284,.778],8809:[.752,.284,.778],8816:[.919,.421,.778],8817:[.919,.421,.778],8840:[.828,.33,.778],8841:[.828,.33,.778],8842:[.634,.255,.778],8843:[.634,.254,.778],8872:[.694,0,.611],8901:[.189,0,.278],8994:[.378,-.122,.778],8995:[.378,-.143,.778],9651:[.575,.02,.722],9661:[.576,.019,.722],10887:[.801,.303,.778],10888:[.801,.303,.778],10955:[.752,.332,.778],10956:[.752,.333,.778]},Object.defineProperty(km,"__esModule",{value:!0}),km.texVariant=void 0;var Iq=Nt,Pq=Bm;km.texVariant=(0,Iq.AddCSS)(Pq.texVariant,{1008:{c:"\\E009"},8463:{f:""},8740:{c:"\\E006"},8742:{c:"\\E007"},8808:{c:"\\E00C"},8809:{c:"\\E00D"},8816:{c:"\\E011"},8817:{c:"\\E00E"},8840:{c:"\\E016"},8841:{c:"\\E018"},8842:{c:"\\E01A"},8843:{c:"\\E01B"},10887:{c:"\\E010"},10888:{c:"\\E00F"},10955:{c:"\\E017"},10956:{c:"\\E019"}});var Jb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.delimiters=e.VSIZES=e.HDW3=e.HDW2=e.HDW1=void 0;var t=mr;e.HDW1=[.75,.25,.875],e.HDW2=[.85,.349,.667],e.HDW3=[.583,.082,.5],e.VSIZES=[1,1.2,1.8,2.4,3];var r={c:47,dir:t.V,sizes:e.VSIZES},n={c:175,dir:t.H,sizes:[.5],stretch:[0,175],HDW:[.59,-.544,.5]},o={c:710,dir:t.H,sizes:[.5,.556,1,1.444,1.889]},i={c:732,dir:t.H,sizes:[.5,.556,1,1.444,1.889]},a={c:8211,dir:t.H,sizes:[.5],stretch:[0,8211],HDW:[.285,-.248,.5]},s={c:8592,dir:t.H,sizes:[1],stretch:[8592,8722],HDW:e.HDW3},c={c:8594,dir:t.H,sizes:[1],stretch:[0,8722,8594],HDW:e.HDW3},l={c:8596,dir:t.H,sizes:[1],stretch:[8592,8722,8594],HDW:e.HDW3},u={c:8612,dir:t.H,stretch:[8592,8722,8739],HDW:e.HDW3,min:1.278},p={c:8614,dir:t.H,sizes:[1],stretch:[8739,8722,8594],HDW:e.HDW3},d={c:8656,dir:t.H,sizes:[1],stretch:[8656,61],HDW:e.HDW3},h={c:8658,dir:t.H,sizes:[1],stretch:[0,61,8658],HDW:e.HDW3},f={c:8660,dir:t.H,sizes:[1],stretch:[8656,61,8658],HDW:e.HDW3},m={c:8722,dir:t.H,sizes:[.778],stretch:[0,8722],HDW:e.HDW3},v={c:8739,dir:t.V,sizes:[1],stretch:[0,8739],HDW:[.627,.015,.333]},g={c:9180,dir:t.H,sizes:[.778,1],schar:[8994,8994],variants:[5,0],stretch:[57680,57684,57681],HDW:[.32,.2,.5]},b={c:9181,dir:t.H,sizes:[.778,1],schar:[8995,8995],variants:[5,0],stretch:[57682,57684,57683],HDW:[.32,.2,.5]},S={c:9182,dir:t.H,stretch:[57680,57684,57681,57685],HDW:[.32,.2,.5],min:1.8},E={c:9183,dir:t.H,stretch:[57682,57684,57683,57686],HDW:[.32,.2,.5],min:1.8},x={c:10216,dir:t.V,sizes:e.VSIZES},O={c:10217,dir:t.V,sizes:e.VSIZES},A={c:10502,dir:t.H,stretch:[8656,61,8739],HDW:e.HDW3,min:1.278},M={c:10503,dir:t.H,stretch:[8872,61,8658],HDW:e.HDW3,min:1.278};e.delimiters={40:{dir:t.V,sizes:e.VSIZES,stretch:[9115,9116,9117],HDW:[.85,.349,.875]},41:{dir:t.V,sizes:e.VSIZES,stretch:[9118,9119,9120],HDW:[.85,.349,.875]},45:m,47:r,61:{dir:t.H,sizes:[.778],stretch:[0,61],HDW:e.HDW3},91:{dir:t.V,sizes:e.VSIZES,stretch:[9121,9122,9123],HDW:e.HDW2},92:{dir:t.V,sizes:e.VSIZES},93:{dir:t.V,sizes:e.VSIZES,stretch:[9124,9125,9126],HDW:e.HDW2},94:o,95:a,123:{dir:t.V,sizes:e.VSIZES,stretch:[9127,9130,9129,9128],HDW:[.85,.349,.889]},124:{dir:t.V,sizes:[1],stretch:[0,8739],HDW:[.75,.25,.333]},125:{dir:t.V,sizes:e.VSIZES,stretch:[9131,9130,9133,9132],HDW:[.85,.349,.889]},126:i,175:n,710:o,713:n,732:i,770:o,771:i,818:a,8211:a,8212:a,8213:a,8214:{dir:t.V,sizes:[.602,1],schar:[0,8741],variants:[1,0],stretch:[0,8741],HDW:[.602,0,.556]},8215:a,8254:n,8407:c,8592:s,8593:{dir:t.V,sizes:[.888],stretch:[8593,9168],HDW:[.6,0,.667]},8594:c,8595:{dir:t.V,sizes:[.888],stretch:[0,9168,8595],HDW:[.6,0,.667]},8596:l,8597:{dir:t.V,sizes:[1.044],stretch:[8593,9168,8595],HDW:e.HDW1},8606:{dir:t.H,sizes:[1],stretch:[8606,8722],HDW:e.HDW3},8608:{dir:t.H,sizes:[1],stretch:[0,8722,8608],HDW:e.HDW3},8612:u,8613:{dir:t.V,stretch:[8593,9168,8869],HDW:e.HDW1,min:1.555},8614:p,8615:{dir:t.V,stretch:[8868,9168,8595],HDW:e.HDW1,min:1.555},8624:{dir:t.V,sizes:[.722],stretch:[8624,9168],HDW:e.HDW1},8625:{dir:t.V,sizes:[.722],stretch:[8625,9168],HDW:e.HDW1},8636:{dir:t.H,sizes:[1],stretch:[8636,8722],HDW:e.HDW3},8637:{dir:t.H,sizes:[1],stretch:[8637,8722],HDW:e.HDW3},8638:{dir:t.V,sizes:[.888],stretch:[8638,9168],HDW:e.HDW1},8639:{dir:t.V,sizes:[.888],stretch:[8639,9168],HDW:e.HDW1},8640:{dir:t.H,sizes:[1],stretch:[0,8722,8640],HDW:e.HDW3},8641:{dir:t.H,sizes:[1],stretch:[0,8722,8641],HDW:e.HDW3},8642:{dir:t.V,sizes:[.888],stretch:[0,9168,8642],HDW:e.HDW1},8643:{dir:t.V,sizes:[.888],stretch:[0,9168,8643],HDW:e.HDW1},8656:d,8657:{dir:t.V,sizes:[.888],stretch:[8657,8214],HDW:[.599,0,.778]},8658:h,8659:{dir:t.V,sizes:[.888],stretch:[0,8214,8659],HDW:[.6,0,.778]},8660:f,8661:{dir:t.V,sizes:[1.044],stretch:[8657,8214,8659],HDW:[.75,.25,.778]},8666:{dir:t.H,sizes:[1],stretch:[8666,8801],HDW:[.464,-.036,.5]},8667:{dir:t.H,sizes:[1],stretch:[0,8801,8667],HDW:[.464,-.036,.5]},8722:m,8725:r,8730:{dir:t.V,sizes:e.VSIZES,stretch:[57345,57344,9143],fullExt:[.65,2.3],HDW:[.85,.35,1.056]},8739:v,8741:{dir:t.V,sizes:[1],stretch:[0,8741],HDW:[.627,.015,.556]},8968:{dir:t.V,sizes:e.VSIZES,stretch:[9121,9122],HDW:e.HDW2},8969:{dir:t.V,sizes:e.VSIZES,stretch:[9124,9125],HDW:e.HDW2},8970:{dir:t.V,sizes:e.VSIZES,stretch:[0,9122,9123],HDW:e.HDW2},8971:{dir:t.V,sizes:e.VSIZES,stretch:[0,9125,9126],HDW:e.HDW2},8978:g,8994:g,8995:b,9001:x,9002:O,9130:{dir:t.V,sizes:[.32],stretch:[9130,9130,9130],HDW:[.29,.015,.889]},9135:a,9136:{dir:t.V,sizes:[.989],stretch:[9127,9130,9133],HDW:[.75,.25,.889]},9137:{dir:t.V,sizes:[.989],stretch:[9131,9130,9129],HDW:[.75,.25,.889]},9140:{dir:t.H,stretch:[9484,8722,9488],HDW:e.HDW3,min:1},9141:{dir:t.H,stretch:[9492,8722,9496],HDW:e.HDW3,min:1},9168:{dir:t.V,sizes:[.602,1],schar:[0,8739],variants:[1,0],stretch:[0,8739],HDW:[.602,0,.333]},9180:g,9181:b,9182:S,9183:E,9184:{dir:t.H,stretch:[714,713,715],HDW:[.59,-.544,.5],min:1},9185:{dir:t.H,stretch:[715,713,714],HDW:[.59,-.544,.5],min:1},9472:a,10072:v,10216:x,10217:O,10222:{dir:t.V,sizes:[.989],stretch:[9127,9130,9129],HDW:[.75,.25,.889]},10223:{dir:t.V,sizes:[.989],stretch:[9131,9130,9133],HDW:[.75,.25,.889]},10229:s,10230:c,10231:l,10232:d,10233:h,10234:f,10235:u,10236:p,10237:A,10238:M,10502:A,10503:M,10574:{dir:t.H,stretch:[8636,8722,8640],HDW:e.HDW3,min:2},10575:{dir:t.V,stretch:[8638,9168,8642],HDW:e.HDW1,min:1.776},10576:{dir:t.H,stretch:[8637,8722,8641],HDW:e.HDW3,min:2},10577:{dir:t.V,stretch:[8639,9168,8643],HDW:e.HDW1,min:.5},10586:{dir:t.H,stretch:[8636,8722,8739],HDW:e.HDW3,min:1.278},10587:{dir:t.H,stretch:[8739,8722,8640],HDW:e.HDW3,min:1.278},10588:{dir:t.V,stretch:[8638,9168,8869],HDW:e.HDW1,min:1.556},10589:{dir:t.V,stretch:[8868,9168,8642],HDW:e.HDW1,min:1.556},10590:{dir:t.H,stretch:[8637,8722,8739],HDW:e.HDW3,min:1.278},10591:{dir:t.H,stretch:[8739,8722,8641],HDW:e.HDW3,min:1.278},10592:{dir:t.V,stretch:[8639,9168,8869],HDW:e.HDW1,min:1.776},10593:{dir:t.V,stretch:[8868,9168,8643],HDW:e.HDW1,min:1.776},12296:x,12297:O,65079:S,65080:E}})(Jb),ee(Jb);var kq=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),$s=y&&y.__assign||(function(){return $s=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),$s.apply(this,arguments)});Object.defineProperty($f,"__esModule",{value:!0}),$f.TeXFont=void 0;var Yb=Nt,Bq=zf,Dq=Jf,jq=Qf,Fq=Gb,Uq=tm,Hq=nm,qq=im,Gq=sm,Xq=lm,Vq=pm,Wq=hm,$q=mm,zq=gm,Kq=vm,Jq=Xb,Yq=Vb,Qq=Mm,Zq=Am,eG=Wb,tG=$b,rG=zb,nG=Kb,oG=Rm,iG=Im,aG=km,sG=Jb;$f.TeXFont=(function(e){kq(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.defaultCssFamilyPrefix="MJXZERO",t.defaultVariantClasses={normal:"mjx-n",bold:"mjx-b",italic:"mjx-i","bold-italic":"mjx-b mjx-i","double-struck":"mjx-ds mjx-b",fraktur:"mjx-fr","bold-fraktur":"mjx-fr mjx-b",script:"mjx-sc mjx-i","bold-script":"mjx-sc mjx-b mjx-i","sans-serif":"mjx-ss","bold-sans-serif":"mjx-ss mjx-b","sans-serif-italic":"mjx-ss mjx-i","sans-serif-bold-italic":"mjx-ss mjx-b mjx-i",monospace:"mjx-ty","-smallop":"mjx-sop","-largeop":"mjx-lop","-size3":"mjx-s3","-size4":"mjx-s4","-tex-calligraphic":"mjx-cal mjx-i","-tex-bold-calligraphic":"mjx-cal mjx-b","-tex-mathit":"mjx-mit mjx-i","-tex-oldstyle":"mjx-os","-tex-bold-oldstyle":"mjx-os mjx-b","-tex-variant":"mjx-var"},t.defaultVariantLetters={normal:"",bold:"B",italic:"MI","bold-italic":"BI","double-struck":"A",fraktur:"FR","bold-fraktur":"FRB",script:"SC","bold-script":"SCB","sans-serif":"SS","bold-sans-serif":"SSB","sans-serif-italic":"SSI","sans-serif-bold-italic":"SSBI",monospace:"T","-smallop":"S1","-largeop":"S2","-size3":"S3","-size4":"S4","-tex-calligraphic":"C","-tex-bold-calligraphic":"CB","-tex-mathit":"MI","-tex-oldstyle":"C","-tex-bold-oldstyle":"CB","-tex-variant":"A"},t.defaultDelimiters=sG.delimiters,t.defaultChars={normal:Vq.normal,bold:jq.bold,italic:qq.italic,"bold-italic":Dq.boldItalic,"double-struck":Fq.doubleStruck,fraktur:Hq.fraktur,"bold-fraktur":Uq.frakturBold,script:Yq.script,"bold-script":Jq.scriptBold,"sans-serif":Kq.sansSerif,"bold-sans-serif":$q.sansSerifBold,"sans-serif-italic":zq.sansSerifItalic,"sans-serif-bold-italic":Wq.sansSerifBoldItalic,monospace:Xq.monospace,"-smallop":Qq.smallop,"-largeop":Gq.largeop,"-size3":oG.texSize3,"-size4":iG.texSize4,"-tex-calligraphic":eG.texCalligraphic,"-tex-bold-calligraphic":Zq.texCalligraphicBold,"-tex-mathit":tG.texMathit,"-tex-oldstyle":nG.texOldstyle,"-tex-bold-oldstyle":rG.texOldstyleBold,"-tex-variant":aG.texVariant},t.defaultStyles=$s($s({},Yb.CHTMLFontData.defaultStyles),{".MJX-TEX":{"font-family":"MJXZERO, MJXTEX"},".TEX-B":{"font-family":"MJXZERO, MJXTEX-B"},".TEX-I":{"font-family":"MJXZERO, MJXTEX-I"},".TEX-MI":{"font-family":"MJXZERO, MJXTEX-MI"},".TEX-BI":{"font-family":"MJXZERO, MJXTEX-BI"},".TEX-S1":{"font-family":"MJXZERO, MJXTEX-S1"},".TEX-S2":{"font-family":"MJXZERO, MJXTEX-S2"},".TEX-S3":{"font-family":"MJXZERO, MJXTEX-S3"},".TEX-S4":{"font-family":"MJXZERO, MJXTEX-S4"},".TEX-A":{"font-family":"MJXZERO, MJXTEX-A"},".TEX-C":{"font-family":"MJXZERO, MJXTEX-C"},".TEX-CB":{"font-family":"MJXZERO, MJXTEX-CB"},".TEX-FR":{"font-family":"MJXZERO, MJXTEX-FR"},".TEX-FRB":{"font-family":"MJXZERO, MJXTEX-FRB"},".TEX-SS":{"font-family":"MJXZERO, MJXTEX-SS"},".TEX-SSB":{"font-family":"MJXZERO, MJXTEX-SSB"},".TEX-SSI":{"font-family":"MJXZERO, MJXTEX-SSI"},".TEX-SC":{"font-family":"MJXZERO, MJXTEX-SC"},".TEX-T":{"font-family":"MJXZERO, MJXTEX-T"},".TEX-V":{"font-family":"MJXZERO, MJXTEX-V"},".TEX-VB":{"font-family":"MJXZERO, MJXTEX-VB"},"mjx-stretchy-v mjx-c, mjx-stretchy-h mjx-c":{"font-family":"MJXZERO, MJXTEX-S1, MJXTEX-S4, MJXTEX, MJXTEX-A ! important"}}),t.defaultFonts=$s($s({},Yb.CHTMLFontData.defaultFonts),{"@font-face /* 1 */":{"font-family":"MJXTEX",src:'url("%%URL%%/MathJax_Main-Regular.woff") format("woff")'},"@font-face /* 2 */":{"font-family":"MJXTEX-B",src:'url("%%URL%%/MathJax_Main-Bold.woff") format("woff")'},"@font-face /* 3 */":{"font-family":"MJXTEX-I",src:'url("%%URL%%/MathJax_Math-Italic.woff") format("woff")'},"@font-face /* 4 */":{"font-family":"MJXTEX-MI",src:'url("%%URL%%/MathJax_Main-Italic.woff") format("woff")'},"@font-face /* 5 */":{"font-family":"MJXTEX-BI",src:'url("%%URL%%/MathJax_Math-BoldItalic.woff") format("woff")'},"@font-face /* 6 */":{"font-family":"MJXTEX-S1",src:'url("%%URL%%/MathJax_Size1-Regular.woff") format("woff")'},"@font-face /* 7 */":{"font-family":"MJXTEX-S2",src:'url("%%URL%%/MathJax_Size2-Regular.woff") format("woff")'},"@font-face /* 8 */":{"font-family":"MJXTEX-S3",src:'url("%%URL%%/MathJax_Size3-Regular.woff") format("woff")'},"@font-face /* 9 */":{"font-family":"MJXTEX-S4",src:'url("%%URL%%/MathJax_Size4-Regular.woff") format("woff")'},"@font-face /* 10 */":{"font-family":"MJXTEX-A",src:'url("%%URL%%/MathJax_AMS-Regular.woff") format("woff")'},"@font-face /* 11 */":{"font-family":"MJXTEX-C",src:'url("%%URL%%/MathJax_Calligraphic-Regular.woff") format("woff")'},"@font-face /* 12 */":{"font-family":"MJXTEX-CB",src:'url("%%URL%%/MathJax_Calligraphic-Bold.woff") format("woff")'},"@font-face /* 13 */":{"font-family":"MJXTEX-FR",src:'url("%%URL%%/MathJax_Fraktur-Regular.woff") format("woff")'},"@font-face /* 14 */":{"font-family":"MJXTEX-FRB",src:'url("%%URL%%/MathJax_Fraktur-Bold.woff") format("woff")'},"@font-face /* 15 */":{"font-family":"MJXTEX-SS",src:'url("%%URL%%/MathJax_SansSerif-Regular.woff") format("woff")'},"@font-face /* 16 */":{"font-family":"MJXTEX-SSB",src:'url("%%URL%%/MathJax_SansSerif-Bold.woff") format("woff")'},"@font-face /* 17 */":{"font-family":"MJXTEX-SSI",src:'url("%%URL%%/MathJax_SansSerif-Italic.woff") format("woff")'},"@font-face /* 18 */":{"font-family":"MJXTEX-SC",src:'url("%%URL%%/MathJax_Script-Regular.woff") format("woff")'},"@font-face /* 19 */":{"font-family":"MJXTEX-T",src:'url("%%URL%%/MathJax_Typewriter-Regular.woff") format("woff")'},"@font-face /* 20 */":{"font-family":"MJXTEX-V",src:'url("%%URL%%/MathJax_Vector-Regular.woff") format("woff")'},"@font-face /* 21 */":{"font-family":"MJXTEX-VB",src:'url("%%URL%%/MathJax_Vector-Bold.woff") format("woff")'}}),t})((0,Bq.CommonTeXFontMixin)(Yb.CHTMLFontData));var cG=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Dm=y&&y.__assign||(function(){return Dm=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Dm.apply(this,arguments)}),lG=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),uG=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),pG=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&lG(t,e,r);return uG(t,e),t}),dG=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(vb,"__esModule",{value:!0});var aT=vb.CHTML=void 0,sT=kh,hG=Zl,fG=qh,mG=ou,yG=$f,cT=pG(hr),gG=it;aT=vb.CHTML=(function(e){cG(t,e);function t(r){r===void 0&&(r=null);var n=e.call(this,r,fG.CHTMLWrapperFactory,yG.TeXFont)||this;return n.chtmlStyles=null,n.font.adaptiveCSS(n.options.adaptiveCSS),n.wrapperUsage=new mG.Usage,n}return t.prototype.escaped=function(r,n){return this.setDocument(n),this.html("span",{},[this.text(r.math)])},t.prototype.styleSheet=function(r){if(this.chtmlStyles){if(this.options.adaptiveCSS){var n=new hG.CssStyles;this.addWrapperStyles(n),this.updateFontStyles(n),this.adaptor.insertRules(this.chtmlStyles,n.getStyleRules())}return this.chtmlStyles}var o=this.chtmlStyles=e.prototype.styleSheet.call(this,r);return this.adaptor.setAttribute(o,"id",t.STYLESHEETID),this.wrapperUsage.update(),o},t.prototype.updateFontStyles=function(r){r.addStyles(this.font.updateStyles({}))},t.prototype.addWrapperStyles=function(r){var n,o;if(!this.options.adaptiveCSS){e.prototype.addWrapperStyles.call(this,r);return}try{for(var i=dG(this.wrapperUsage.update()),a=i.next();!a.done;a=i.next()){var s=a.value,c=this.factory.getNodeClass(s);c&&this.addClassStyles(c,r)}}catch(l){n={error:l}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.addClassStyles=function(r,n){var o,i=r;i.autoStyle&&i.kind!=="unknown"&&n.addStyles((o={},o["mjx-"+i.kind]={display:"inline-block","text-align":"left"},o)),this.wrapperUsage.add(i.kind),e.prototype.addClassStyles.call(this,r,n)},t.prototype.processMath=function(r,n){this.factory.wrap(r).toCHTML(n)},t.prototype.clearCache=function(){this.cssStyles.clear(),this.font.clearCache(),this.wrapperUsage.clear(),this.chtmlStyles=null},t.prototype.reset=function(){this.clearCache()},t.prototype.unknownText=function(r,n,o){o===void 0&&(o=null);var i={},a=100/this.math.metrics.scale;if(a!==100&&(i["font-size"]=this.fixed(a,1)+"%",i.padding=cT.em(75/a)+" 0 "+cT.em(20/a)+" 0"),n!=="-explicitFont"){var s=(0,gG.unicodeChars)(r);(s.length!==1||s[0]<119808||s[0]>120831)&&this.cssFontStyles(this.font.getCssFont(n),i)}if(o!==null){var c=this.math.metrics;i.width=Math.round(o*c.em*c.scale)+"px"}return this.html("mjx-utext",{variant:n,style:i},[this.text(r)])},t.prototype.measureTextNode=function(r){var n=this.adaptor,o=n.clone(r);n.setStyle(o,"font-family",n.getStyle(o,"font-family").replace(/MJXZERO, /g,""));var i=this.html("mjx-measure-text",{style:{position:"absolute","white-space":"nowrap"}},[o]);n.append(n.parent(this.math.start.node),this.container),n.append(this.container,i);var a=n.nodeSize(o,this.math.metrics.em)[0]/this.math.metrics.scale;return n.remove(this.container),n.remove(i),{w:a,h:.75,d:.2}},t.NAME="CHTML",t.OPTIONS=Dm(Dm({},sT.CommonOutputJax.OPTIONS),{adaptiveCSS:!0,matchFontHeight:!0}),t.commonStyles={'mjx-container[jax="CHTML"]':{"line-height":0},'mjx-container [space="1"]':{"margin-left":".111em"},'mjx-container [space="2"]':{"margin-left":".167em"},'mjx-container [space="3"]':{"margin-left":".222em"},'mjx-container [space="4"]':{"margin-left":".278em"},'mjx-container [space="5"]':{"margin-left":".333em"},'mjx-container [rspace="1"]':{"margin-right":".111em"},'mjx-container [rspace="2"]':{"margin-right":".167em"},'mjx-container [rspace="3"]':{"margin-right":".222em"},'mjx-container [rspace="4"]':{"margin-right":".278em"},'mjx-container [rspace="5"]':{"margin-right":".333em"},'mjx-container [size="s"]':{"font-size":"70.7%"},'mjx-container [size="ss"]':{"font-size":"50%"},'mjx-container [size="Tn"]':{"font-size":"60%"},'mjx-container [size="sm"]':{"font-size":"85%"},'mjx-container [size="lg"]':{"font-size":"120%"},'mjx-container [size="Lg"]':{"font-size":"144%"},'mjx-container [size="LG"]':{"font-size":"173%"},'mjx-container [size="hg"]':{"font-size":"207%"},'mjx-container [size="HG"]':{"font-size":"249%"},'mjx-container [width="full"]':{width:"100%"},"mjx-box":{display:"inline-block"},"mjx-block":{display:"block"},"mjx-itable":{display:"inline-table"},"mjx-row":{display:"table-row"},"mjx-row > *":{display:"table-cell"},"mjx-mtext":{display:"inline-block"},"mjx-mstyle":{display:"inline-block"},"mjx-merror":{display:"inline-block",color:"red","background-color":"yellow"},"mjx-mphantom":{visibility:"hidden"},"_::-webkit-full-page-media, _:future, :root mjx-container":{"will-change":"opacity"}},t.STYLESHEETID="MJX-CHTML-styles",t})(sT.CommonOutputJax);var Qb={},jm={},Fm={},Um={},iu={},Zb={};(function(e){var t=y&&y.__generator||(function(a,s){var c={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},l,u,p,d={next:h(0),throw:h(1),return:h(2)};return typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(m){return function(v){return f([m,v])}}function f(m){if(l)throw new TypeError("Generator is already executing.");for(;c;)try{if(l=1,u&&(p=m[0]&2?u.return:m[0]?u.throw||((p=u.return)&&p.call(u),0):u.next)&&!(p=p.call(u,m[1])).done)return p;switch(u=0,p&&(m=[m[0]&2,p.value]),m[0]){case 0:case 1:p=m;break;case 4:return c.label++,{value:m[1],done:!1};case 5:c.label++,u=m[1],m=[0];continue;case 7:m=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(m[0]===6||m[0]===2)){c=0;continue}if(m[0]===3&&(!p||m[1]>p[0]&&m[1]<p[3])){c.label=m[1];break}if(m[0]===6&&c.label<p[1]){c.label=p[1],p=m;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(m);break}p[2]&&c.ops.pop(),c.trys.pop();continue}m=s.call(a,c)}catch(v){m=[6,v],u=0}finally{l=p=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}),r=y&&y.__read||(function(a,s){var c=typeof Symbol=="function"&&a[Symbol.iterator];if(!c)return a;var l=c.call(a),u,p=[],d;try{for(;(s===void 0||s-- >0)&&!(u=l.next()).done;)p.push(u.value)}catch(h){d={error:h}}finally{try{u&&!u.done&&(c=l.return)&&c.call(l)}finally{if(d)throw d.error}}return p}),n=y&&y.__spreadArray||(function(a,s,c){if(c||arguments.length===2)for(var l=0,u=s.length,p;l<u;l++)(p||!(l in s))&&(p||(p=Array.prototype.slice.call(s,0,l)),p[l]=s[l]);return a.concat(p||Array.prototype.slice.call(s))}),o=y&&y.__values||(function(a){var s=typeof Symbol=="function"&&Symbol.iterator,c=s&&a[s],l=0;if(c)return c.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&l>=a.length&&(a=void 0),{value:a&&a[l++],done:!a}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=e.ListItem=e.END=void 0,e.END=Symbol();var i=(function(){function a(s){s===void 0&&(s=null),this.next=null,this.prev=null,this.data=s}return a})();e.ListItem=i,e.LinkedList=(function(){function a(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];this.list=new i(e.END),this.list.next=this.list.prev=this.list,this.push.apply(this,n([],r(s),!1))}return a.prototype.isBefore=function(s,c){return s<c},a.prototype.push=function(){for(var s,c,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];try{for(var p=o(l),d=p.next();!d.done;d=p.next()){var h=d.value,f=new i(h);f.next=this.list,f.prev=this.list.prev,this.list.prev=f,f.prev.next=f}}catch(m){s={error:m}}finally{try{d&&!d.done&&(c=p.return)&&c.call(p)}finally{if(s)throw s.error}}return this},a.prototype.pop=function(){var s=this.list.prev;return s.data===e.END?null:(this.list.prev=s.prev,s.prev.next=this.list,s.next=s.prev=null,s.data)},a.prototype.unshift=function(){for(var s,c,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];try{for(var p=o(l.slice(0).reverse()),d=p.next();!d.done;d=p.next()){var h=d.value,f=new i(h);f.next=this.list.next,f.prev=this.list,this.list.next=f,f.next.prev=f}}catch(m){s={error:m}}finally{try{d&&!d.done&&(c=p.return)&&c.call(p)}finally{if(s)throw s.error}}return this},a.prototype.shift=function(){var s=this.list.next;return s.data===e.END?null:(this.list.next=s.next,s.next.prev=this.list,s.next=s.prev=null,s.data)},a.prototype.remove=function(){for(var s,c,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var p=new Map;try{for(var d=o(l),h=d.next();!h.done;h=d.next()){var f=h.value;p.set(f,!0)}}catch(g){s={error:g}}finally{try{h&&!h.done&&(c=d.return)&&c.call(d)}finally{if(s)throw s.error}}for(var m=this.list.next;m.data!==e.END;){var v=m.next;p.has(m.data)&&(m.prev.next=m.next,m.next.prev=m.prev,m.next=m.prev=null),m=v}},a.prototype.clear=function(){return this.list.next.prev=this.list.prev.next=null,this.list.next=this.list.prev=this.list,this},a.prototype[Symbol.iterator]=function(){var s;return t(this,function(c){switch(c.label){case 0:s=this.list.next,c.label=1;case 1:return s.data===e.END?[3,3]:[4,s.data];case 2:return c.sent(),s=s.next,[3,1];case 3:return[2]}})},a.prototype.reversed=function(){var s;return t(this,function(c){switch(c.label){case 0:s=this.list.prev,c.label=1;case 1:return s.data===e.END?[3,3]:[4,s.data];case 2:return c.sent(),s=s.prev,[3,1];case 3:return[2]}})},a.prototype.insert=function(s,c){c===void 0&&(c=null),c===null&&(c=this.isBefore.bind(this));for(var l=new i(s),u=this.list.next;u.data!==e.END&&c(u.data,l.data);)u=u.next;return l.prev=u.prev,l.next=u,u.prev.next=u.prev=l,this},a.prototype.sort=function(s){var c,l;s===void 0&&(s=null),s===null&&(s=this.isBefore.bind(this));var u=[];try{for(var p=o(this),d=p.next();!d.done;d=p.next()){var h=d.value;u.push(new a(h))}}catch(v){c={error:v}}finally{try{d&&!d.done&&(l=p.return)&&l.call(p)}finally{if(c)throw c.error}}for(this.list.next=this.list.prev=this.list;u.length>1;){var f=u.shift(),m=u.shift();f.merge(m,s),u.push(f)}return u.length&&(this.list=u[0].list),this},a.prototype.merge=function(s,c){var l,u,p,d,h;c===void 0&&(c=null),c===null&&(c=this.isBefore.bind(this));for(var f=this.list.next,m=s.list.next;f.data!==e.END&&m.data!==e.END;)c(m.data,f.data)?(l=r([f,m],2),m.prev.next=l[0],f.prev.next=l[1],u=r([f.prev,m.prev],2),m.prev=u[0],f.prev=u[1],p=r([s.list,this.list],2),this.list.prev.next=p[0],s.list.prev.next=p[1],d=r([s.list.prev,this.list.prev],2),this.list.prev=d[0],s.list.prev=d[1],h=r([m.next,f],2),f=h[0],m=h[1]):f=f.next;return m.data!==e.END&&(this.list.prev.next=s.list.next,s.list.next.prev=this.list.prev,s.list.prev.next=this.list,this.list.prev=s.list.prev,s.list.next=s.list.prev=s.list),this},a})()})(Zb),ee(Zb);var bG=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(iu,"__esModule",{value:!0}),iu.AbstractMathList=void 0,iu.AbstractMathList=(function(e){bG(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isBefore=function(r,n){return r.start.i<n.start.i||r.start.i===n.start.i&&r.start.n<n.start.n},t})(Zb.LinkedList);var zs={},vG=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),SG=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),EG=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),xG=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))});Object.defineProperty(zs,"__esModule",{value:!0}),zs.BitFieldClass=zs.BitField=void 0;var lT=(function(){function e(){this.bits=0}return e.allocate=function(){for(var t,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];try{for(var i=SG(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(this.has(s))throw new Error("Bit already allocated for "+s);if(this.next===e.MAXBIT)throw new Error("Maximum number of bits already allocated");this.names.set(s,this.next),this.next<<=1}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},e.has=function(t){return this.names.has(t)},e.prototype.set=function(t){this.bits|=this.getBit(t)},e.prototype.clear=function(t){this.bits&=~this.getBit(t)},e.prototype.isSet=function(t){return!!(this.bits&this.getBit(t))},e.prototype.reset=function(){this.bits=0},e.prototype.getBit=function(t){var r=this.constructor.names.get(t);if(!r)throw new Error("Unknown bit-field name: "+t);return r},e.MAXBIT=1<<31,e.next=1,e.names=new Map,e})();zs.BitField=lT;function MG(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(function(n){vG(o,n);function o(){return n!==null&&n.apply(this,arguments)||this}return o})(lT);return r.allocate.apply(r,xG([],EG(e),!1)),r}zs.BitFieldClass=MG,(function(e){var t=y&&y.__extends||(function(){var g=function(b,S){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(E,x){E.__proto__=x})||(function(E,x){for(var O in x)Object.prototype.hasOwnProperty.call(x,O)&&(E[O]=x[O])}),g(b,S)};return function(b,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");g(b,S);function E(){this.constructor=b}b.prototype=S===null?Object.create(S):(E.prototype=S.prototype,new E)}})(),r=y&&y.__values||(function(g){var b=typeof Symbol=="function"&&Symbol.iterator,S=b&&g[b],E=0;if(S)return S.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&E>=g.length&&(g=void 0),{value:g&&g[E++],done:!g}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")}),n=y&&y.__read||(function(g,b){var S=typeof Symbol=="function"&&g[Symbol.iterator];if(!S)return g;var E=S.call(g),x,O=[],A;try{for(;(b===void 0||b-- >0)&&!(x=E.next()).done;)O.push(x.value)}catch(M){A={error:M}}finally{try{x&&!x.done&&(S=E.return)&&S.call(E)}finally{if(A)throw A.error}}return O}),o=y&&y.__spreadArray||(function(g,b,S){if(S||arguments.length===2)for(var E=0,x=b.length,O;E<x;E++)(O||!(E in b))&&(O||(O=Array.prototype.slice.call(b,0,E)),O[E]=b[E]);return g.concat(O||Array.prototype.slice.call(b))});Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMathDocument=e.resetAllOptions=e.resetOptions=e.RenderList=void 0;var i=tt,a=Ns,s=Jl,c=iu,l=Wr,u=gc,p=zs,d=(function(g){t(b,g);function b(){return g!==null&&g.apply(this,arguments)||this}return b.create=function(S){var E,x,O=new this;try{for(var A=r(Object.keys(S)),M=A.next();!M.done;M=A.next()){var C=M.value,w=n(this.action(C,S[C]),2),k=w[0],L=w[1];L&&O.add(k,L)}}catch(D){E={error:D}}finally{try{M&&!M.done&&(x=A.return)&&x.call(A)}finally{if(E)throw E.error}}return O},b.action=function(S,E){var x,O,A,M,C,w,k=!0,L=E[0];if(E.length===1||typeof E[1]=="boolean")E.length===2&&(k=E[1]),x=n(this.methodActions(S),2),C=x[0],w=x[1];else if(typeof E[1]=="string")if(typeof E[2]=="string"){E.length===4&&(k=E[3]);var D=n(E.slice(1),2),P=D[0],F=D[1];O=n(this.methodActions(P,F),2),C=O[0],w=O[1]}else E.length===3&&(k=E[2]),A=n(this.methodActions(E[1]),2),C=A[0],w=A[1];else E.length===4&&(k=E[3]),M=n(E.slice(1),2),C=M[0],w=M[1];return[{id:S,renderDoc:C,renderMath:w,convert:k},L]},b.methodActions=function(S,E){return E===void 0&&(E=S),[function(x){return S&&x[S](),!1},function(x,O){return E&&x[E](O),!1}]},b.prototype.renderDoc=function(S,E){var x,O;E===void 0&&(E=l.STATE.UNPROCESSED);try{for(var A=r(this.items),M=A.next();!M.done;M=A.next()){var C=M.value;if(C.priority>=E&&C.item.renderDoc(S))return}}catch(w){x={error:w}}finally{try{M&&!M.done&&(O=A.return)&&O.call(A)}finally{if(x)throw x.error}}},b.prototype.renderMath=function(S,E,x){var O,A;x===void 0&&(x=l.STATE.UNPROCESSED);try{for(var M=r(this.items),C=M.next();!C.done;C=M.next()){var w=C.value;if(w.priority>=x&&w.item.renderMath(S,E))return}}catch(k){O={error:k}}finally{try{C&&!C.done&&(A=M.return)&&A.call(M)}finally{if(O)throw O.error}}},b.prototype.renderConvert=function(S,E,x){var O,A;x===void 0&&(x=l.STATE.LAST);try{for(var M=r(this.items),C=M.next();!C.done;C=M.next()){var w=C.value;if(w.priority>x||w.item.convert&&w.item.renderMath(S,E))return}}catch(k){O={error:k}}finally{try{C&&!C.done&&(A=M.return)&&A.call(M)}finally{if(O)throw O.error}}},b.prototype.findID=function(S){var E,x;try{for(var O=r(this.items),A=O.next();!A.done;A=O.next()){var M=A.value;if(M.item.id===S)return M.item}}catch(C){E={error:C}}finally{try{A&&!A.done&&(x=O.return)&&x.call(O)}finally{if(E)throw E.error}}return null},b})(bo.PrioritizedList);e.RenderList=d,e.resetOptions={all:!1,processed:!1,inputJax:null,outputJax:null},e.resetAllOptions={all:!0,processed:!0,inputJax:[],outputJax:[]};var h=(function(g){t(b,g);function b(){return g!==null&&g.apply(this,arguments)||this}return b.prototype.compile=function(S){return null},b})(a.AbstractInputJax),f=(function(g){t(b,g);function b(){return g!==null&&g.apply(this,arguments)||this}return b.prototype.typeset=function(S,E){return null},b.prototype.escaped=function(S,E){return null},b})(s.AbstractOutputJax),m=(function(g){t(b,g);function b(){return g!==null&&g.apply(this,arguments)||this}return b})(c.AbstractMathList),v=(function(g){t(b,g);function b(){return g!==null&&g.apply(this,arguments)||this}return b})(l.AbstractMathItem);e.AbstractMathDocument=(function(){function g(b,S,E){var x=this,O=this.constructor;this.document=b,this.options=(0,i.userOptions)((0,i.defaultOptions)({},O.OPTIONS),E),this.math=new(this.options.MathList||m),this.renderActions=d.create(this.options.renderActions),this.processed=new g.ProcessBits,this.outputJax=this.options.OutputJax||new f;var A=this.options.InputJax||[new h];Array.isArray(A)||(A=[A]),this.inputJax=A,this.adaptor=S,this.outputJax.setAdaptor(S),this.inputJax.map(function(M){return M.setAdaptor(S)}),this.mmlFactory=this.options.MmlFactory||new u.MmlFactory,this.inputJax.map(function(M){return M.setMmlFactory(x.mmlFactory)}),this.outputJax.initialize(),this.inputJax.map(function(M){return M.initialize()})}return Object.defineProperty(g.prototype,"kind",{get:function(){return this.constructor.KIND},enumerable:!1,configurable:!0}),g.prototype.addRenderAction=function(b){for(var S=[],E=1;E<arguments.length;E++)S[E-1]=arguments[E];var x=n(d.action(b,S),2),O=x[0],A=x[1];this.renderActions.add(O,A)},g.prototype.removeRenderAction=function(b){var S=this.renderActions.findID(b);S&&this.renderActions.remove(S)},g.prototype.render=function(){return this.renderActions.renderDoc(this),this},g.prototype.rerender=function(b){return b===void 0&&(b=l.STATE.RERENDER),this.state(b-1),this.render(),this},g.prototype.convert=function(b,S){S===void 0&&(S={});var E=(0,i.userOptions)({format:this.inputJax[0].name,display:!0,end:l.STATE.LAST,em:16,ex:8,containerWidth:null,lineWidth:1e6,scale:1,family:""},S),x=E.format,O=E.display,A=E.end,M=E.ex,C=E.em,w=E.containerWidth,k=E.lineWidth,L=E.scale,D=E.family;w===null&&(w=80*M);var P=this.inputJax.reduce(function(G,Q){return Q.name===x?Q:G},null),F=new this.options.MathItem(b,P,O);return F.start.node=this.adaptor.body(this.document),F.setMetrics(C,M,w,k,L),this.outputJax.options.mtextInheritFont&&(F.outputData.mtextFamily=D),this.outputJax.options.merrorInheritFont&&(F.outputData.merrorFamily=D),F.convert(this,A),F.typesetRoot||F.root},g.prototype.findMath=function(b){return this.processed.set("findMath"),this},g.prototype.compile=function(){var b,S,E,x;if(!this.processed.isSet("compile")){var O=[];try{for(var A=r(this.math),M=A.next();!M.done;M=A.next()){var C=M.value;this.compileMath(C),C.inputData.recompile!==void 0&&O.push(C)}}catch(D){b={error:D}}finally{try{M&&!M.done&&(S=A.return)&&S.call(A)}finally{if(b)throw b.error}}try{for(var w=r(O),k=w.next();!k.done;k=w.next()){var C=k.value,L=C.inputData.recompile;C.state(L.state),C.inputData.recompile=L,this.compileMath(C)}}catch(D){E={error:D}}finally{try{k&&!k.done&&(x=w.return)&&x.call(w)}finally{if(E)throw E.error}}this.processed.set("compile")}return this},g.prototype.compileMath=function(b){try{b.compile(this)}catch(S){if(S.retry||S.restart)throw S;this.options.compileError(this,b,S),b.inputData.error=S}},g.prototype.compileError=function(b,S){b.root=this.mmlFactory.create("math",null,[this.mmlFactory.create("merror",{"data-mjx-error":S.message,title:S.message},[this.mmlFactory.create("mtext",null,[this.mmlFactory.create("text").setText("Math input error")])])]),b.display&&b.root.attributes.set("display","block"),b.inputData.error=S.message},g.prototype.typeset=function(){var b,S;if(!this.processed.isSet("typeset")){try{for(var E=r(this.math),x=E.next();!x.done;x=E.next()){var O=x.value;try{O.typeset(this)}catch(A){if(A.retry||A.restart)throw A;this.options.typesetError(this,O,A),O.outputData.error=A}}}catch(A){b={error:A}}finally{try{x&&!x.done&&(S=E.return)&&S.call(E)}finally{if(b)throw b.error}}this.processed.set("typeset")}return this},g.prototype.typesetError=function(b,S){b.typesetRoot=this.adaptor.node("mjx-container",{class:"MathJax mjx-output-error",jax:this.outputJax.name},[this.adaptor.node("span",{"data-mjx-error":S.message,title:S.message,style:{color:"red","background-color":"yellow","line-height":"normal"}},[this.adaptor.text("Math output error")])]),b.display&&this.adaptor.setAttributes(b.typesetRoot,{style:{display:"block",margin:"1em 0","text-align":"center"}}),b.outputData.error=S.message},g.prototype.getMetrics=function(){return this.processed.isSet("getMetrics")||(this.outputJax.getMetrics(this),this.processed.set("getMetrics")),this},g.prototype.updateDocument=function(){var b,S;if(!this.processed.isSet("updateDocument")){try{for(var E=r(this.math.reversed()),x=E.next();!x.done;x=E.next())x.value.updateDocument(this)}catch(O){b={error:O}}finally{try{x&&!x.done&&(S=E.return)&&S.call(E)}finally{if(b)throw b.error}}this.processed.set("updateDocument")}return this},g.prototype.removeFromDocument=function(b){return this},g.prototype.state=function(b,S){var E,x;S===void 0&&(S=!1);try{for(var O=r(this.math),A=O.next();!A.done;A=O.next())A.value.state(b,S)}catch(M){E={error:M}}finally{try{A&&!A.done&&(x=O.return)&&x.call(O)}finally{if(E)throw E.error}}return b<l.STATE.INSERTED&&this.processed.clear("updateDocument"),b<l.STATE.TYPESET&&(this.processed.clear("typeset"),this.processed.clear("getMetrics")),b<l.STATE.COMPILED&&this.processed.clear("compile"),this},g.prototype.reset=function(b){var S;return b===void 0&&(b={processed:!0}),b=(0,i.userOptions)(Object.assign({},e.resetOptions),b),b.all&&Object.assign(b,e.resetAllOptions),b.processed&&this.processed.reset(),b.inputJax&&this.inputJax.forEach(function(E){return E.reset.apply(E,o([],n(b.inputJax),!1))}),b.outputJax&&(S=this.outputJax).reset.apply(S,o([],n(b.outputJax),!1)),this},g.prototype.clear=function(){return this.reset(),this.math.clear(),this},g.prototype.concat=function(b){return this.math.merge(b),this},g.prototype.clearMathItemsWithin=function(b){var S,E=this.getMathItemsWithin(b);return(S=this.math).remove.apply(S,o([],n(E),!1)),E},g.prototype.getMathItemsWithin=function(b){var S,E,x,O;Array.isArray(b)||(b=[b]);var A=this.adaptor,M=[],C=A.getElements(b,this.document);try{e:for(var w=r(this.math),k=w.next();!k.done;k=w.next()){var L=k.value;try{for(var D=(x=void 0,r(C)),P=D.next();!P.done;P=D.next()){var F=P.value;if(L.start.node&&A.contains(F,L.start.node)){M.push(L);continue e}}}catch(G){x={error:G}}finally{try{P&&!P.done&&(O=D.return)&&O.call(D)}finally{if(x)throw x.error}}}}catch(G){S={error:G}}finally{try{k&&!k.done&&(E=w.return)&&E.call(w)}finally{if(S)throw S.error}}return M},g.KIND="MathDocument",g.OPTIONS={OutputJax:null,InputJax:null,MmlFactory:null,MathList:m,MathItem:v,compileError:function(b,S,E){b.compileError(S,E)},typesetError:function(b,S,E){b.typesetError(S,E)},renderActions:(0,i.expandable)({find:[l.STATE.FINDMATH,"findMath","",!1],compile:[l.STATE.COMPILED],metrics:[l.STATE.METRICS,"getMetrics","",!1],typeset:[l.STATE.TYPESET],update:[l.STATE.INSERTED,"updateDocument",!1]})},g.ProcessBits=(0,p.BitFieldClass)("findMath","compile","getMetrics","typeset","updateDocument"),g})()})(Um),ee(Um);var OG=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Fm,"__esModule",{value:!0}),Fm.AbstractHandler=void 0;var AG=(function(e){OG(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Um.AbstractMathDocument);Fm.AbstractHandler=(function(){function e(t,r){r===void 0&&(r=5),this.documentClass=AG,this.adaptor=t,this.priority=r}return Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),e.prototype.handlesDocument=function(t){return!1},e.prototype.create=function(t,r){return new this.documentClass(t,this.adaptor,r)},e.NAME="generic",e})();var Hm={},qm={},TG=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(qm,"__esModule",{value:!0}),qm.HTMLMathItem=void 0;var Gm=Wr;qm.HTMLMathItem=(function(e){TG(t,e);function t(r,n,o,i,a){return o===void 0&&(o=!0),i===void 0&&(i={node:null,n:0,delim:""}),a===void 0&&(a={node:null,n:0,delim:""}),e.call(this,r,n,o,i,a)||this}return Object.defineProperty(t.prototype,"adaptor",{get:function(){return this.inputJax.adaptor},enumerable:!1,configurable:!0}),t.prototype.updateDocument=function(r){if(this.state()<Gm.STATE.INSERTED){if(this.inputJax.processStrings){var n=this.start.node;if(n===this.end.node)this.end.n&&this.end.n<this.adaptor.value(this.end.node).length&&this.adaptor.split(this.end.node,this.end.n),this.start.n&&(n=this.adaptor.split(this.start.node,this.start.n)),this.adaptor.replace(this.typesetRoot,n);else{for(this.start.n&&(n=this.adaptor.split(n,this.start.n));n!==this.end.node;){var o=this.adaptor.next(n);this.adaptor.remove(n),n=o}this.adaptor.insert(this.typesetRoot,n),this.end.n<this.adaptor.value(n).length&&this.adaptor.split(n,this.end.n),this.adaptor.remove(n)}}else this.adaptor.replace(this.typesetRoot,this.start.node);this.start.node=this.end.node=this.typesetRoot,this.start.n=this.end.n=0,this.state(Gm.STATE.INSERTED)}},t.prototype.updateStyleSheet=function(r){r.addStyleSheet()},t.prototype.removeFromDocument=function(r){if(r===void 0&&(r=!1),this.state()>=Gm.STATE.TYPESET){var n=this.adaptor,o=this.start.node,i=n.text("");if(r){var a=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings)i=n.text(a);else{var s=n.parse(a,"text/html");i=n.firstChild(n.body(s))}}n.parent(o)&&n.replace(i,o),this.start.node=this.end.node=i,this.start.n=this.end.n=0}},t})(Gm.AbstractMathItem);var Xm={},CG=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Xm,"__esModule",{value:!0}),Xm.HTMLMathList=void 0,Xm.HTMLMathList=(function(e){CG(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(iu.AbstractMathList);var Vm={},uT=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i});Object.defineProperty(Vm,"__esModule",{value:!0});var pT=Vm.HTMLDomStrings=void 0,au=tt;pT=Vm.HTMLDomStrings=(function(){function e(t){t===void 0&&(t=null);var r=this.constructor;this.options=(0,au.userOptions)((0,au.defaultOptions)({},r.OPTIONS),t),this.init(),this.getPatterns()}return e.prototype.init=function(){this.strings=[],this.string="",this.snodes=[],this.nodes=[],this.stack=[]},e.prototype.getPatterns=function(){var t=(0,au.makeArray)(this.options.skipHtmlTags),r=(0,au.makeArray)(this.options.ignoreHtmlClass),n=(0,au.makeArray)(this.options.processHtmlClass);this.skipHtmlTags=new RegExp("^(?:"+t.join("|")+")$","i"),this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+r.join("|")+")(?: |$)"),this.processHtmlClass=new RegExp("(?:^| )(?:"+n+")(?: |$)")},e.prototype.pushString=function(){this.string.match(/\S/)&&(this.strings.push(this.string),this.nodes.push(this.snodes)),this.string="",this.snodes=[]},e.prototype.extendString=function(t,r){this.snodes.push([t,r.length]),this.string+=r},e.prototype.handleText=function(t,r){return r||this.extendString(t,this.adaptor.value(t)),this.adaptor.next(t)},e.prototype.handleTag=function(t,r){if(!r){var n=this.options.includeHtmlTags[this.adaptor.kind(t)];this.extendString(t,n)}return this.adaptor.next(t)},e.prototype.handleContainer=function(t,r){this.pushString();var n=this.adaptor.getAttribute(t,"class")||"",o=this.adaptor.kind(t)||"",i=this.processHtmlClass.exec(n),a=t;return this.adaptor.firstChild(t)&&!this.adaptor.getAttribute(t,"data-MJX")&&(i||!this.skipHtmlTags.exec(o))?(this.adaptor.next(t)&&this.stack.push([this.adaptor.next(t),r]),a=this.adaptor.firstChild(t),r=(r||this.ignoreHtmlClass.exec(n))&&!i):a=this.adaptor.next(t),[a,r]},e.prototype.handleOther=function(t,r){return this.pushString(),this.adaptor.next(t)},e.prototype.find=function(t){var r,n;this.init();for(var o=this.adaptor.next(t),i=!1,a=this.options.includeHtmlTags;t&&t!==o;){var s=this.adaptor.kind(t);s==="#text"?t=this.handleText(t,i):a.hasOwnProperty(s)?t=this.handleTag(t,i):s?(r=uT(this.handleContainer(t,i),2),t=r[0],i=r[1]):t=this.handleOther(t,i),!t&&this.stack.length&&(this.pushString(),n=uT(this.stack.pop(),2),t=n[0],i=n[1])}this.pushString();var c=[this.strings,this.nodes];return this.init(),c},e.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],includeHtmlTags:{br:`
64
+ `,wbr:"","#comment":""},ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"},e})();var NG=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ks=y&&y.__assign||(function(){return Ks=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),Ks.apply(this,arguments)}),Wm=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),qi=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Hm,"__esModule",{value:!0}),Hm.HTMLDocument=void 0;var ev=Um,tv=tt,_G=qm,wG=Xm,dT=Vm,rv=Wr;Hm.HTMLDocument=(function(e){NG(t,e);function t(r,n,o){var i=this,a=Wm((0,tv.separateOptions)(o,dT.HTMLDomStrings.OPTIONS),2),s=a[0],c=a[1];return i=e.call(this,r,n,s)||this,i.domStrings=i.options.DomStrings||new dT.HTMLDomStrings(c),i.domStrings.adaptor=n,i.styles=[],i}return t.prototype.findPosition=function(r,n,o,i){var a,s,c=this.adaptor;try{for(var l=qi(i[r]),u=l.next();!u.done;u=l.next()){var p=u.value,d=Wm(p,2),h=d[0],f=d[1];if(n<=f&&c.kind(h)==="#text")return{node:h,n:Math.max(n,0),delim:o};n-=f}}catch(m){a={error:m}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}return{node:null,n:0,delim:o}},t.prototype.mathItem=function(r,n,o){var i=r.math,a=this.findPosition(r.n,r.start.n,r.open,o),s=this.findPosition(r.n,r.end.n,r.close,o);return new this.options.MathItem(i,n,r.display,a,s)},t.prototype.findMath=function(r){var n,o,i,a,s,c,l,u,p;if(!this.processed.isSet("findMath")){this.adaptor.document=this.document,r=(0,tv.userOptions)({elements:this.options.elements||[this.adaptor.body(this.document)]},r);try{for(var d=qi(this.adaptor.getElements(r.elements,this.document)),h=d.next();!h.done;h=d.next()){var f=h.value,m=Wm([null,null],2),v=m[0],g=m[1];try{for(var b=(i=void 0,qi(this.inputJax)),S=b.next();!S.done;S=b.next()){var E=S.value,x=new this.options.MathList;if(E.processStrings){v===null&&(s=Wm(this.domStrings.find(f),2),v=s[0],g=s[1]);try{for(var O=(c=void 0,qi(E.findMath(v))),A=O.next();!A.done;A=O.next()){var M=A.value;x.push(this.mathItem(M,E,g))}}catch(L){c={error:L}}finally{try{A&&!A.done&&(l=O.return)&&l.call(O)}finally{if(c)throw c.error}}}else try{for(var C=(u=void 0,qi(E.findMath(f))),w=C.next();!w.done;w=C.next()){var M=w.value,k=new this.options.MathItem(M.math,E,M.display,M.start,M.end);x.push(k)}}catch(L){u={error:L}}finally{try{w&&!w.done&&(p=C.return)&&p.call(C)}finally{if(u)throw u.error}}this.math.merge(x)}}catch(L){i={error:L}}finally{try{S&&!S.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}}}catch(L){n={error:L}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}this.processed.set("findMath")}return this},t.prototype.updateDocument=function(){return this.processed.isSet("updateDocument")||(this.addPageElements(),this.addStyleSheet(),e.prototype.updateDocument.call(this),this.processed.set("updateDocument")),this},t.prototype.addPageElements=function(){var r=this.adaptor.body(this.document),n=this.documentPageElements();n&&this.adaptor.append(r,n)},t.prototype.addStyleSheet=function(){var r=this.documentStyleSheet(),n=this.adaptor;if(r&&!n.parent(r)){var o=n.head(this.document),i=this.findSheet(o,n.getAttribute(r,"id"));i?n.replace(r,i):n.append(o,r)}},t.prototype.findSheet=function(r,n){var o,i;if(n)try{for(var a=qi(this.adaptor.tags(r,"style")),s=a.next();!s.done;s=a.next()){var c=s.value;if(this.adaptor.getAttribute(c,"id")===n)return c}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return null},t.prototype.removeFromDocument=function(r){var n,o;if(r===void 0&&(r=!1),this.processed.isSet("updateDocument"))try{for(var i=qi(this.math),a=i.next();!a.done;a=i.next()){var s=a.value;s.state()>=rv.STATE.INSERTED&&s.state(rv.STATE.TYPESET,r)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return this.processed.clear("updateDocument"),this},t.prototype.documentStyleSheet=function(){return this.outputJax.styleSheet(this)},t.prototype.documentPageElements=function(){return this.outputJax.pageElements(this)},t.prototype.addStyles=function(r){this.styles.push(r)},t.prototype.getStyles=function(){return this.styles},t.KIND="HTML",t.OPTIONS=Ks(Ks({},ev.AbstractMathDocument.OPTIONS),{renderActions:(0,tv.expandable)(Ks(Ks({},ev.AbstractMathDocument.OPTIONS.renderActions),{styles:[rv.STATE.INSERTED+1,"","updateStyleSheet",!1]})),MathList:wG.HTMLMathList,MathItem:_G.HTMLMathItem,DomStrings:null}),t})(ev.AbstractMathDocument);var RG=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(jm,"__esModule",{value:!0}),jm.HTMLHandler=void 0;var LG=Fm,IG=Hm;jm.HTMLHandler=(function(e){RG(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.documentClass=IG.HTMLDocument,r}return t.prototype.handlesDocument=function(r){var n=this.adaptor;if(typeof r=="string")try{r=n.parse(r,"text/html")}catch{}return r instanceof n.window.Document||r instanceof n.window.HTMLElement||r instanceof n.window.DocumentFragment},t.prototype.create=function(r,n){var o=this.adaptor;if(typeof r=="string")r=o.parse(r,"text/html");else if(r instanceof o.window.HTMLElement||r instanceof o.window.DocumentFragment){var i=r;r=o.parse("","text/html"),o.append(o.body(r),i)}return e.prototype.create.call(this,r,n)},t})(LG.AbstractHandler),Object.defineProperty(Qb,"__esModule",{value:!0});var hT=Qb.RegisterHTMLHandler=void 0,PG=br,kG=jm;function BG(e){var t=new kG.HTMLHandler(e);return PG.mathjax.handlers.register(t),t}hT=Qb.RegisterHTMLHandler=BG;var nv={},$m={},zm={},Km=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(zm,"__esModule",{value:!0}),zm.AbstractDOMAdaptor=void 0,zm.AbstractDOMAdaptor=(function(){function e(t){t===void 0&&(t=null),this.document=t}return e.prototype.node=function(t,r,n,o){var i,a;r===void 0&&(r={}),n===void 0&&(n=[]);var s=this.create(t,o);this.setAttributes(s,r);try{for(var c=Km(n),l=c.next();!l.done;l=c.next()){var u=l.value;this.append(s,u)}}catch(p){i={error:p}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return s},e.prototype.setAttributes=function(t,r){var n,o,i,a,s,c;if(r.style&&typeof r.style!="string")try{for(var l=Km(Object.keys(r.style)),u=l.next();!u.done;u=l.next()){var p=u.value;this.setStyle(t,p.replace(/-([a-z])/g,function(v,g){return g.toUpperCase()}),r.style[p])}}catch(v){n={error:v}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}if(r.properties)try{for(var d=Km(Object.keys(r.properties)),h=d.next();!h.done;h=d.next()){var p=h.value;t[p]=r.properties[p]}}catch(v){i={error:v}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}try{for(var f=Km(Object.keys(r)),m=f.next();!m.done;m=f.next()){var p=m.value;(p!=="style"||typeof r.style=="string")&&p!=="properties"&&this.setAttribute(t,p,r[p])}}catch(v){s={error:v}}finally{try{m&&!m.done&&(c=f.return)&&c.call(f)}finally{if(s)throw s.error}}},e.prototype.replace=function(t,r){return this.insert(t,r),this.remove(r),r},e.prototype.childNode=function(t,r){return this.childNodes(t)[r]},e.prototype.allClasses=function(t){var r=this.getAttribute(t,"class");return r?r.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /):[]},e})();var DG=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),fT=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty($m,"__esModule",{value:!0}),$m.HTMLAdaptor=void 0,$m.HTMLAdaptor=(function(e){DG(t,e);function t(r){var n=e.call(this,r.document)||this;return n.window=r,n.parser=new r.DOMParser,n}return t.prototype.parse=function(r,n){return n===void 0&&(n="text/html"),this.parser.parseFromString(r,n)},t.prototype.create=function(r,n){return n?this.document.createElementNS(n,r):this.document.createElement(r)},t.prototype.text=function(r){return this.document.createTextNode(r)},t.prototype.head=function(r){return r.head||r},t.prototype.body=function(r){return r.body||r},t.prototype.root=function(r){return r.documentElement||r},t.prototype.doctype=function(r){return r.doctype?"<!DOCTYPE ".concat(r.doctype.name,">"):""},t.prototype.tags=function(r,n,o){o===void 0&&(o=null);var i=o?r.getElementsByTagNameNS(o,n):r.getElementsByTagName(n);return Array.from(i)},t.prototype.getElements=function(r,n){var o,i,a=[];try{for(var s=fT(r),c=s.next();!c.done;c=s.next()){var l=c.value;typeof l=="string"?a=a.concat(Array.from(this.document.querySelectorAll(l))):Array.isArray(l)||l instanceof this.window.NodeList||l instanceof this.window.HTMLCollection?a=a.concat(Array.from(l)):a.push(l)}}catch(u){o={error:u}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a},t.prototype.contains=function(r,n){return r.contains(n)},t.prototype.parent=function(r){return r.parentNode},t.prototype.append=function(r,n){return r.appendChild(n)},t.prototype.insert=function(r,n){return this.parent(n).insertBefore(r,n)},t.prototype.remove=function(r){return this.parent(r).removeChild(r)},t.prototype.replace=function(r,n){return this.parent(n).replaceChild(r,n)},t.prototype.clone=function(r){return r.cloneNode(!0)},t.prototype.split=function(r,n){return r.splitText(n)},t.prototype.next=function(r){return r.nextSibling},t.prototype.previous=function(r){return r.previousSibling},t.prototype.firstChild=function(r){return r.firstChild},t.prototype.lastChild=function(r){return r.lastChild},t.prototype.childNodes=function(r){return Array.from(r.childNodes)},t.prototype.childNode=function(r,n){return r.childNodes[n]},t.prototype.kind=function(r){var n=r.nodeType;return n===1||n===3||n===8?r.nodeName.toLowerCase():""},t.prototype.value=function(r){return r.nodeValue||""},t.prototype.textContent=function(r){return r.textContent},t.prototype.innerHTML=function(r){return r.innerHTML},t.prototype.outerHTML=function(r){return r.outerHTML},t.prototype.serializeXML=function(r){return new this.window.XMLSerializer().serializeToString(r)},t.prototype.setAttribute=function(r,n,o,i){return i===void 0&&(i=null),i?(n=i.replace(/.*\//,"")+":"+n.replace(/^.*:/,""),r.setAttributeNS(i,n,o)):r.setAttribute(n,o)},t.prototype.getAttribute=function(r,n){return r.getAttribute(n)},t.prototype.removeAttribute=function(r,n){return r.removeAttribute(n)},t.prototype.hasAttribute=function(r,n){return r.hasAttribute(n)},t.prototype.allAttributes=function(r){return Array.from(r.attributes).map(function(n){return{name:n.name,value:n.value}})},t.prototype.addClass=function(r,n){r.classList?r.classList.add(n):r.className=(r.className+" "+n).trim()},t.prototype.removeClass=function(r,n){r.classList?r.classList.remove(n):r.className=r.className.split(/ /).filter(function(o){return o!==n}).join(" ")},t.prototype.hasClass=function(r,n){return r.classList?r.classList.contains(n):r.className.split(/ /).indexOf(n)>=0},t.prototype.setStyle=function(r,n,o){r.style[n]=o},t.prototype.getStyle=function(r,n){return r.style[n]},t.prototype.allStyles=function(r){return r.style.cssText},t.prototype.insertRules=function(r,n){var o,i;try{for(var a=fT(n.reverse()),s=a.next();!s.done;s=a.next()){var c=s.value;try{r.sheet.insertRule(c,0)}catch(l){console.warn("MathJax: can't insert css rule '".concat(c,"': ").concat(l.message))}}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},t.prototype.fontSize=function(r){var n=this.window.getComputedStyle(r);return parseFloat(n.fontSize)},t.prototype.fontFamily=function(r){return this.window.getComputedStyle(r).fontFamily||""},t.prototype.nodeSize=function(r,n,o){if(n===void 0&&(n=1),o===void 0&&(o=!1),o&&r.getBBox){var i=r.getBBox(),a=i.width,s=i.height;return[a/n,s/n]}return[r.offsetWidth/n,r.offsetHeight/n]},t.prototype.nodeBBox=function(r){var n=r.getBoundingClientRect();return{left:n.left,right:n.right,top:n.top,bottom:n.bottom}},t})(zm.AbstractDOMAdaptor),Object.defineProperty(nv,"__esModule",{value:!0});var mT=nv.browserAdaptor=void 0,jG=$m;function FG(){return new jG.HTMLAdaptor(window)}mT=nv.browserAdaptor=FG;var ov={},yT={};(function(e){var t=y&&y.__importDefault||(function(a){return a&&a.__esModule?a:{default:a}});Object.defineProperty(e,"__esModule",{value:!0}),e.ActionConfiguration=e.ActionMethods=void 0;var r=_e,n=t(Ut),o=de,i=t(dr);e.ActionMethods={},e.ActionMethods.Macro=i.default.Macro,e.ActionMethods.Toggle=function(a,s){for(var c=[],l;(l=a.GetArgument(s))!=="\\endtoggle";)c.push(new n.default(l,a.stack.env,a.configuration).mml());a.Push(a.create("node","maction",c,{actiontype:"toggle"}))},e.ActionMethods.Mathtip=function(a,s){var c=a.ParseArg(s),l=a.ParseArg(s);a.Push(a.create("node","maction",[c,l],{actiontype:"tooltip"}))},new o.CommandMap("action-macros",{toggle:"Toggle",mathtip:"Mathtip",texttip:["Macro","\\mathtip{#1}{\\text{#2}}",2]},e.ActionMethods),e.ActionConfiguration=r.Configuration.create("action",{handler:{macro:["action-macros"]}})})(yT),ee(yT);var Js={},Gi={},gT=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),iv=y&&y.__assign||(function(){return iv=Object.assign||(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}),iv.apply(this,arguments)}),av=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.FlalignItem=Gi.MultlineItem=void 0;var bT=pe,UG=av(qe),Gr=av(Ye),vT=av(Pe),sv=Ht;Gi.MultlineItem=(function(e){gT(t,e);function t(r){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=e.call(this,r)||this;return i.factory.configuration.tags.start("multline",!0,n[0]),i}return Object.defineProperty(t.prototype,"kind",{get:function(){return"multline"},enumerable:!1,configurable:!0}),t.prototype.EndEntry=function(){this.table.length&&UG.default.fixInitialMO(this.factory.configuration,this.nodes);var r=this.getProperty("shove"),n=this.create("node","mtd",this.nodes,r?{columnalign:r}:{});this.setProperty("shove",null),this.row.push(n),this.Clear()},t.prototype.EndRow=function(){if(this.row.length!==1)throw new vT.default("MultlineRowsOneCol","The rows within the %1 environment must have exactly one column","multline");var r=this.create("node","mtr",this.row);this.table.push(r),this.row=[]},t.prototype.EndTable=function(){if(e.prototype.EndTable.call(this),this.table.length){var r=this.table.length-1,n=-1;Gr.default.getAttribute(Gr.default.getChildren(this.table[0])[0],"columnalign")||Gr.default.setAttribute(Gr.default.getChildren(this.table[0])[0],"columnalign",sv.TexConstant.Align.LEFT),Gr.default.getAttribute(Gr.default.getChildren(this.table[r])[0],"columnalign")||Gr.default.setAttribute(Gr.default.getChildren(this.table[r])[0],"columnalign",sv.TexConstant.Align.RIGHT);var o=this.factory.configuration.tags.getTag();if(o){n=this.arraydef.side===sv.TexConstant.Align.LEFT?0:this.table.length-1;var i=this.table[n],a=this.create("node","mlabeledtr",[o].concat(Gr.default.getChildren(i)));Gr.default.copyAttributes(i,a),this.table[n]=a}}this.factory.configuration.tags.end()},t})(bT.ArrayItem),Gi.FlalignItem=(function(e){gT(t,e);function t(r,n,o,i,a){var s=e.call(this,r)||this;return s.name=n,s.numbered=o,s.padded=i,s.center=a,s.factory.configuration.tags.start(n,o,o),s}return Object.defineProperty(t.prototype,"kind",{get:function(){return"flalign"},enumerable:!1,configurable:!0}),t.prototype.EndEntry=function(){e.prototype.EndEntry.call(this);var r=this.getProperty("xalignat");if(r&&this.row.length>r)throw new vT.default("XalignOverflow","Extra %1 in row of %2","&",this.name)},t.prototype.EndRow=function(){for(var r,n=this.row,o=this.getProperty("xalignat");n.length<o;)n.push(this.create("node","mtd"));for(this.row=[],this.padded&&this.row.push(this.create("node","mtd"));r=n.shift();)this.row.push(r),r=n.shift(),r&&this.row.push(r),(n.length||this.padded)&&this.row.push(this.create("node","mtd"));this.row.length>this.maxrow&&(this.maxrow=this.row.length),e.prototype.EndRow.call(this);var i=this.table[this.table.length-1];if(this.getProperty("zeroWidthLabel")&&i.isKind("mlabeledtr")){var a=Gr.default.getChildren(i)[0],s=this.factory.configuration.options.tagSide,c=iv({width:0},s==="right"?{lspace:"-1width"}:{}),l=this.create("node","mpadded",Gr.default.getChildren(a),c);a.setChildren([l])}},t.prototype.EndTable=function(){if(e.prototype.EndTable.call(this),this.center&&this.maxrow<=2){var r=this.arraydef;delete r.width,delete this.global.indentalign}},t})(bT.EqnArrayItem);var Xi={};(function(e){var t=y&&y.__assign||(function(){return t=Object.assign||(function(m){for(var v,g=1,b=arguments.length;g<b;g++){v=arguments[g];for(var S in v)Object.prototype.hasOwnProperty.call(v,S)&&(m[S]=v[S])}return m}),t.apply(this,arguments)}),r=y&&y.__read||(function(m,v){var g=typeof Symbol=="function"&&m[Symbol.iterator];if(!g)return m;var b=g.call(m),S,E=[],x;try{for(;(v===void 0||v-- >0)&&!(S=b.next()).done;)E.push(S.value)}catch(O){x={error:O}}finally{try{S&&!S.done&&(g=b.return)&&g.call(b)}finally{if(x)throw x.error}}return E}),n=y&&y.__importDefault||(function(m){return m&&m.__esModule?m:{default:m}});Object.defineProperty(e,"__esModule",{value:!0}),e.NEW_OPS=e.AmsMethods=void 0;var o=n(qe),i=n(an),a=n(Ye),s=Ht,c=n(Ut),l=n(Pe),u=on,p=n(dr),d=ce;e.AmsMethods={},e.AmsMethods.AmsEqnArray=function(m,v,g,b,S,E,x){var O=m.GetBrackets("\\begin{"+v.getName()+"}"),A=p.default.EqnArray(m,v,g,b,S,E,x);return o.default.setArrayAlign(A,O)},e.AmsMethods.AlignAt=function(m,v,g,b){var S=v.getName(),E,x,O="",A=[];if(b||(x=m.GetBrackets("\\begin{"+S+"}")),E=m.GetArgument("\\begin{"+S+"}"),E.match(/[^0-9]/))throw new l.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+S+"}");for(var M=parseInt(E,10);M>0;)O+="rl",A.push("0em 0em"),M--;var C=A.join(" ");if(b)return e.AmsMethods.EqnArray(m,v,g,b,O,C);var w=e.AmsMethods.EqnArray(m,v,g,b,O,C);return o.default.setArrayAlign(w,x)},e.AmsMethods.Multline=function(m,v,g){m.Push(v),o.default.checkEqnEnv(m);var b=m.itemFactory.create("multline",g,m.stack);return b.arraydef={displaystyle:!0,rowspacing:".5em",columnspacing:"100%",width:m.options.ams.multlineWidth,side:m.options.tagSide,minlabelspacing:m.options.tagIndent,framespacing:m.options.ams.multlineIndent+" 0",frame:"","data-width-includes-label":!0},b},e.AmsMethods.XalignAt=function(m,v,g,b){var S=m.GetArgument("\\begin{"+v.getName()+"}");if(S.match(/[^0-9]/))throw new l.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+v.getName()+"}");var E=b?"crl":"rlc",x=b?"fit auto auto":"auto auto fit",O=e.AmsMethods.FlalignArray(m,v,g,b,!1,E,x,!0);return O.setProperty("xalignat",2*parseInt(S)),O},e.AmsMethods.FlalignArray=function(m,v,g,b,S,E,x,O){O===void 0&&(O=!1),m.Push(v),o.default.checkEqnEnv(m),E=E.split("").join(" ").replace(/r/g,"right").replace(/l/g,"left").replace(/c/g,"center");var A=m.itemFactory.create("flalign",v.getName(),g,b,S,m.stack);return A.arraydef={width:"100%",displaystyle:!0,columnalign:E,columnspacing:"0em",columnwidth:x,rowspacing:"3pt",side:m.options.tagSide,minlabelspacing:O?"0":m.options.tagIndent,"data-width-includes-label":!0},A.setProperty("zeroWidthLabel",O),A},e.NEW_OPS="ams-declare-ops",e.AmsMethods.HandleDeclareOp=function(m,v){var g=m.GetStar()?"*":"",b=o.default.trimSpaces(m.GetArgument(v));b.charAt(0)==="\\"&&(b=b.substr(1));var S=m.GetArgument(v);m.configuration.handlers.retrieve(e.NEW_OPS).add(b,new u.Macro(b,e.AmsMethods.Macro,["\\operatorname".concat(g,"{").concat(S,"}")]))},e.AmsMethods.HandleOperatorName=function(m,v){var g=m.GetStar(),b=o.default.trimSpaces(m.GetArgument(v)),S=new c.default(b,t(t({},m.stack.env),{font:s.TexConstant.Variant.NORMAL,multiLetterIdentifiers:/^[-*a-z]+/i,operatorLetters:!0}),m.configuration).mml();if(S.isKind("mi")||(S=m.create("node","TeXAtom",[S])),a.default.setProperties(S,{movesupsub:g,movablelimits:!0,texClass:d.TEXCLASS.OP}),!g){var E=m.GetNext(),x=m.i;E==="\\"&&++m.i&&m.GetCS()!=="limits"&&(m.i=x)}m.Push(S)},e.AmsMethods.SideSet=function(m,v){var g=r(h(m.ParseArg(v)),2),b=g[0],S=g[1],E=r(h(m.ParseArg(v)),2),x=E[0],O=E[1],A=m.ParseArg(v),M=A;b&&(S?b.replaceChild(m.create("node","mphantom",[m.create("node","mpadded",[o.default.copyNode(A,m)],{width:0})]),a.default.getChildAt(b,0)):(M=m.create("node","mmultiscripts",[A]),x&&a.default.appendChildren(M,[a.default.getChildAt(x,1)||m.create("node","none"),a.default.getChildAt(x,2)||m.create("node","none")]),a.default.setProperty(M,"scriptalign","left"),a.default.appendChildren(M,[m.create("node","mprescripts"),a.default.getChildAt(b,1)||m.create("node","none"),a.default.getChildAt(b,2)||m.create("node","none")]))),x&&M===A&&(x.replaceChild(A,a.default.getChildAt(x,0)),M=x);var C=m.create("node","TeXAtom",[],{texClass:d.TEXCLASS.OP,movesupsub:!0,movablelimits:!0});S&&(b&&C.appendChild(b),C.appendChild(S)),C.appendChild(M),O&&C.appendChild(O),m.Push(C)};function h(m){if(!m||m.isInferred&&m.childNodes.length===0)return[null,null];if(m.isKind("msubsup")&&f(m))return[m,null];var v=a.default.getChildAt(m,0);return m.isInferred&&v&&f(v)?(m.childNodes.splice(0,1),[v,m]):[null,m]}function f(m){var v=m.childNodes[0];return v&&v.isKind("mi")&&v.getText()===""}e.AmsMethods.operatorLetter=function(m,v){return m.stack.env.operatorLetters?i.default.variable(m,v):!1},e.AmsMethods.MultiIntegral=function(m,v,g){var b=m.GetNext();if(b==="\\"){var S=m.i;b=m.GetArgument(v),m.i=S,b==="\\limits"&&(v==="\\idotsint"?g="\\!\\!\\mathop{\\,\\,"+g+"}":g="\\!\\!\\!\\mathop{\\,\\,\\,"+g+"}")}m.string=g+" "+m.string.slice(m.i),m.i=0},e.AmsMethods.xArrow=function(m,v,g,b,S){var E={width:"+"+o.default.Em((b+S)/18),lspace:o.default.Em(b/18)},x=m.GetBrackets(v),O=m.ParseArg(v),A=m.create("node","mspace",[],{depth:".25em"}),M=m.create("token","mo",{stretchy:!0,texClass:d.TEXCLASS.REL},String.fromCodePoint(g));M=m.create("node","mstyle",[M],{scriptlevel:0});var C=m.create("node","munderover",[M]),w=m.create("node","mpadded",[O,A],E);if(a.default.setAttribute(w,"voffset","-.2em"),a.default.setAttribute(w,"height","-.2em"),a.default.setChild(C,C.over,w),x){var k=new c.default(x,m.stack.env,m.configuration).mml(),L=m.create("node","mspace",[],{height:".75em"});w=m.create("node","mpadded",[k,L],E),a.default.setAttribute(w,"voffset",".15em"),a.default.setAttribute(w,"depth","-.15em"),a.default.setChild(C,C.under,w)}a.default.setProperty(C,"subsupOK",!0),m.Push(C)},e.AmsMethods.HandleShove=function(m,v,g){var b=m.stack.Top();if(b.kind!=="multline")throw new l.default("CommandOnlyAllowedInEnv","%1 only allowed in %2 environment",m.currentCS,"multline");if(b.Size())throw new l.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",m.currentCS);b.setProperty("shove",g)},e.AmsMethods.CFrac=function(m,v){var g=o.default.trimSpaces(m.GetBrackets(v,"")),b=m.GetArgument(v),S=m.GetArgument(v),E={l:s.TexConstant.Align.LEFT,r:s.TexConstant.Align.RIGHT,"":""},x=new c.default("\\strut\\textstyle{"+b+"}",m.stack.env,m.configuration).mml(),O=new c.default("\\strut\\textstyle{"+S+"}",m.stack.env,m.configuration).mml(),A=m.create("node","mfrac",[x,O]);if(g=E[g],g==null)throw new l.default("IllegalAlign","Illegal alignment specified in %1",m.currentCS);g&&a.default.setProperties(A,{numalign:g,denomalign:g}),m.Push(A)},e.AmsMethods.Genfrac=function(m,v,g,b,S,E){g??(g=m.GetDelimiterArg(v)),b??(b=m.GetDelimiterArg(v)),S??(S=m.GetArgument(v)),E??(E=o.default.trimSpaces(m.GetArgument(v)));var x=m.ParseArg(v),O=m.ParseArg(v),A=m.create("node","mfrac",[x,O]);if(S!==""&&a.default.setAttribute(A,"linethickness",S),(g||b)&&(a.default.setProperty(A,"withDelims",!0),A=o.default.fixedFence(m.configuration,g,A,b)),E!==""){var M=parseInt(E,10),C=["D","T","S","SS"][M];if(C==null)throw new l.default("BadMathStyleFor","Bad math style for %1",m.currentCS);A=m.create("node","mstyle",[A]),C==="D"?a.default.setProperties(A,{displaystyle:!0,scriptlevel:0}):a.default.setProperties(A,{displaystyle:!1,scriptlevel:M-1})}m.Push(A)},e.AmsMethods.HandleTag=function(m,v){if(!m.tags.currentTag.taggable&&m.tags.env)throw new l.default("CommandNotAllowedInEnv","%1 not allowed in %2 environment",m.currentCS,m.tags.env);if(m.tags.currentTag.tag)throw new l.default("MultipleCommand","Multiple %1",m.currentCS);var g=m.GetStar(),b=o.default.trimSpaces(m.GetArgument(v));m.tags.tag(b,g)},e.AmsMethods.HandleNoTag=p.default.HandleNoTag,e.AmsMethods.HandleRef=p.default.HandleRef,e.AmsMethods.Macro=p.default.Macro,e.AmsMethods.Accent=p.default.Accent,e.AmsMethods.Tilde=p.default.Tilde,e.AmsMethods.Array=p.default.Array,e.AmsMethods.Spacer=p.default.Spacer,e.AmsMethods.NamedOp=p.default.NamedOp,e.AmsMethods.EqnArray=p.default.EqnArray,e.AmsMethods.Equation=p.default.Equation})(Xi),ee(Xi);var HG=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),qG=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),GG=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&HG(t,e,r);return qG(t,e),t}),ST=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}),Jm=Xi,uo=GG(de),or=Ht,Ys=ST(an),Vi=ST(qe),su=ce,cv=hr;new uo.CharacterMap("AMSmath-mathchar0mo",Ys.default.mathchar0mo,{iiiint:["⨌",{texClass:su.TEXCLASS.OP}]}),new uo.RegExpMap("AMSmath-operatorLetter",Jm.AmsMethods.operatorLetter,/[-*]/i),new uo.CommandMap("AMSmath-macros",{mathring:["Accent","02DA"],nobreakspace:"Tilde",negmedspace:["Spacer",cv.MATHSPACE.negativemediummathspace],negthickspace:["Spacer",cv.MATHSPACE.negativethickmathspace],idotsint:["MultiIntegral","\\int\\cdots\\int"],dddot:["Accent","20DB"],ddddot:["Accent","20DC"],sideset:"SideSet",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],tag:"HandleTag",notag:"HandleNoTag",eqref:["HandleRef",!0],substack:["Macro","\\begin{subarray}{c}#1\\end{subarray}",1],injlim:["NamedOp","inj&thinsp;lim"],projlim:["NamedOp","proj&thinsp;lim"],varliminf:["Macro","\\mathop{\\underline{\\mmlToken{mi}{lim}}}"],varlimsup:["Macro","\\mathop{\\overline{\\mmlToken{mi}{lim}}}"],varinjlim:["Macro","\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}"],varprojlim:["Macro","\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}"],DeclareMathOperator:"HandleDeclareOp",operatorname:"HandleOperatorName",genfrac:"Genfrac",frac:["Genfrac","","","",""],tfrac:["Genfrac","","","","1"],dfrac:["Genfrac","","","","0"],binom:["Genfrac","(",")","0",""],tbinom:["Genfrac","(",")","0","1"],dbinom:["Genfrac","(",")","0","0"],cfrac:"CFrac",shoveleft:["HandleShove",or.TexConstant.Align.LEFT],shoveright:["HandleShove",or.TexConstant.Align.RIGHT],xrightarrow:["xArrow",8594,5,10],xleftarrow:["xArrow",8592,10,5]},Jm.AmsMethods),new uo.EnvironmentMap("AMSmath-environment",Ys.default.environment,{"equation*":["Equation",null,!1],"eqnarray*":["EqnArray",null,!1,!0,"rcl",Vi.default.cols(0,cv.MATHSPACE.thickmathspace),".5em"],align:["EqnArray",null,!0,!0,"rl",Vi.default.cols(0,2)],"align*":["EqnArray",null,!1,!0,"rl",Vi.default.cols(0,2)],multline:["Multline",null,!0],"multline*":["Multline",null,!1],split:["EqnArray",null,!1,!1,"rl",Vi.default.cols(0)],gather:["EqnArray",null,!0,!0,"c"],"gather*":["EqnArray",null,!1,!0,"c"],alignat:["AlignAt",null,!0,!0],"alignat*":["AlignAt",null,!1,!0],alignedat:["AlignAt",null,!1,!1],aligned:["AmsEqnArray",null,null,null,"rl",Vi.default.cols(0,2),".5em","D"],gathered:["AmsEqnArray",null,null,null,"c",null,".5em","D"],xalignat:["XalignAt",null,!0,!0],"xalignat*":["XalignAt",null,!1,!0],xxalignat:["XalignAt",null,!1,!1],flalign:["FlalignArray",null,!0,!1,!0,"rlc","auto auto fit"],"flalign*":["FlalignArray",null,!1,!1,!0,"rlc","auto auto fit"],subarray:["Array",null,null,null,null,Vi.default.cols(0),"0.1em","S",1],smallmatrix:["Array",null,null,null,"c",Vi.default.cols(1/3),".2em","S",1],matrix:["Array",null,null,null,"c"],pmatrix:["Array",null,"(",")","c"],bmatrix:["Array",null,"[","]","c"],Bmatrix:["Array",null,"\\{","\\}","c"],vmatrix:["Array",null,"\\vert","\\vert","c"],Vmatrix:["Array",null,"\\Vert","\\Vert","c"],cases:["Array",null,"\\{",".","ll",null,".2em","T"]},Jm.AmsMethods),new uo.DelimiterMap("AMSmath-delimiter",Ys.default.delimiter,{"\\lvert":["|",{texClass:su.TEXCLASS.OPEN}],"\\rvert":["|",{texClass:su.TEXCLASS.CLOSE}],"\\lVert":["‖",{texClass:su.TEXCLASS.OPEN}],"\\rVert":["‖",{texClass:su.TEXCLASS.CLOSE}]}),new uo.CharacterMap("AMSsymbols-mathchar0mi",Ys.default.mathchar0mi,{digamma:"ϝ",varkappa:"ϰ",varGamma:["Γ",{mathvariant:or.TexConstant.Variant.ITALIC}],varDelta:["Δ",{mathvariant:or.TexConstant.Variant.ITALIC}],varTheta:["Θ",{mathvariant:or.TexConstant.Variant.ITALIC}],varLambda:["Λ",{mathvariant:or.TexConstant.Variant.ITALIC}],varXi:["Ξ",{mathvariant:or.TexConstant.Variant.ITALIC}],varPi:["Π",{mathvariant:or.TexConstant.Variant.ITALIC}],varSigma:["Σ",{mathvariant:or.TexConstant.Variant.ITALIC}],varUpsilon:["Υ",{mathvariant:or.TexConstant.Variant.ITALIC}],varPhi:["Φ",{mathvariant:or.TexConstant.Variant.ITALIC}],varPsi:["Ψ",{mathvariant:or.TexConstant.Variant.ITALIC}],varOmega:["Ω",{mathvariant:or.TexConstant.Variant.ITALIC}],beth:"ℶ",gimel:"ℷ",daleth:"ℸ",backprime:["‵",{variantForm:!0}],hslash:"ℏ",varnothing:["∅",{variantForm:!0}],blacktriangle:"▴",triangledown:["▽",{variantForm:!0}],blacktriangledown:"▾",square:"◻",Box:"◻",blacksquare:"◼",lozenge:"◊",Diamond:"◊",blacklozenge:"⧫",circledS:["Ⓢ",{mathvariant:or.TexConstant.Variant.NORMAL}],bigstar:"★",sphericalangle:"∢",measuredangle:"∡",nexists:"∄",complement:"∁",mho:"℧",eth:["ð",{mathvariant:or.TexConstant.Variant.NORMAL}],Finv:"Ⅎ",diagup:"╱",Game:"⅁",diagdown:"╲",Bbbk:["k",{mathvariant:or.TexConstant.Variant.DOUBLESTRUCK}],yen:"¥",circledR:"®",checkmark:"✓",maltese:"✠"}),new uo.CharacterMap("AMSsymbols-mathchar0mo",Ys.default.mathchar0mo,{dotplus:"∔",ltimes:"⋉",smallsetminus:["∖",{variantForm:!0}],rtimes:"⋊",Cap:"⋒",doublecap:"⋒",leftthreetimes:"⋋",Cup:"⋓",doublecup:"⋓",rightthreetimes:"⋌",barwedge:"⊼",curlywedge:"⋏",veebar:"⊻",curlyvee:"⋎",doublebarwedge:"⩞",boxminus:"⊟",circleddash:"⊝",boxtimes:"⊠",circledast:"⊛",boxdot:"⊡",circledcirc:"⊚",boxplus:"⊞",centerdot:["⋅",{variantForm:!0}],divideontimes:"⋇",intercal:"⊺",leqq:"≦",geqq:"≧",leqslant:"⩽",geqslant:"⩾",eqslantless:"⪕",eqslantgtr:"⪖",lesssim:"≲",gtrsim:"≳",lessapprox:"⪅",gtrapprox:"⪆",approxeq:"≊",lessdot:"⋖",gtrdot:"⋗",lll:"⋘",llless:"⋘",ggg:"⋙",gggtr:"⋙",lessgtr:"≶",gtrless:"≷",lesseqgtr:"⋚",gtreqless:"⋛",lesseqqgtr:"⪋",gtreqqless:"⪌",doteqdot:"≑",Doteq:"≑",eqcirc:"≖",risingdotseq:"≓",circeq:"≗",fallingdotseq:"≒",triangleq:"≜",backsim:"∽",thicksim:["∼",{variantForm:!0}],backsimeq:"⋍",thickapprox:["≈",{variantForm:!0}],subseteqq:"⫅",supseteqq:"⫆",Subset:"⋐",Supset:"⋑",sqsubset:"⊏",sqsupset:"⊐",preccurlyeq:"≼",succcurlyeq:"≽",curlyeqprec:"⋞",curlyeqsucc:"⋟",precsim:"≾",succsim:"≿",precapprox:"⪷",succapprox:"⪸",vartriangleleft:"⊲",lhd:"⊲",vartriangleright:"⊳",rhd:"⊳",trianglelefteq:"⊴",unlhd:"⊴",trianglerighteq:"⊵",unrhd:"⊵",vDash:["⊨",{variantForm:!0}],Vdash:"⊩",Vvdash:"⊪",smallsmile:["⌣",{variantForm:!0}],shortmid:["∣",{variantForm:!0}],smallfrown:["⌢",{variantForm:!0}],shortparallel:["∥",{variantForm:!0}],bumpeq:"≏",between:"≬",Bumpeq:"≎",pitchfork:"⋔",varpropto:["∝",{variantForm:!0}],backepsilon:"∍",blacktriangleleft:"◂",blacktriangleright:"▸",therefore:"∴",because:"∵",eqsim:"≂",vartriangle:["△",{variantForm:!0}],Join:"⋈",nless:"≮",ngtr:"≯",nleq:"≰",ngeq:"≱",nleqslant:["⪇",{variantForm:!0}],ngeqslant:["⪈",{variantForm:!0}],nleqq:["≰",{variantForm:!0}],ngeqq:["≱",{variantForm:!0}],lneq:"⪇",gneq:"⪈",lneqq:"≨",gneqq:"≩",lvertneqq:["≨",{variantForm:!0}],gvertneqq:["≩",{variantForm:!0}],lnsim:"⋦",gnsim:"⋧",lnapprox:"⪉",gnapprox:"⪊",nprec:"⊀",nsucc:"⊁",npreceq:["⋠",{variantForm:!0}],nsucceq:["⋡",{variantForm:!0}],precneqq:"⪵",succneqq:"⪶",precnsim:"⋨",succnsim:"⋩",precnapprox:"⪹",succnapprox:"⪺",nsim:"≁",ncong:"≇",nshortmid:["∤",{variantForm:!0}],nshortparallel:["∦",{variantForm:!0}],nmid:"∤",nparallel:"∦",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",ntriangleleft:"⋪",ntriangleright:"⋫",ntrianglelefteq:"⋬",ntrianglerighteq:"⋭",nsubseteq:"⊈",nsupseteq:"⊉",nsubseteqq:["⊈",{variantForm:!0}],nsupseteqq:["⊉",{variantForm:!0}],subsetneq:"⊊",supsetneq:"⊋",varsubsetneq:["⊊",{variantForm:!0}],varsupsetneq:["⊋",{variantForm:!0}],subsetneqq:"⫋",supsetneqq:"⫌",varsubsetneqq:["⫋",{variantForm:!0}],varsupsetneqq:["⫌",{variantForm:!0}],leftleftarrows:"⇇",rightrightarrows:"⇉",leftrightarrows:"⇆",rightleftarrows:"⇄",Lleftarrow:"⇚",Rrightarrow:"⇛",twoheadleftarrow:"↞",twoheadrightarrow:"↠",leftarrowtail:"↢",rightarrowtail:"↣",looparrowleft:"↫",looparrowright:"↬",leftrightharpoons:"⇋",rightleftharpoons:["⇌",{variantForm:!0}],curvearrowleft:"↶",curvearrowright:"↷",circlearrowleft:"↺",circlearrowright:"↻",Lsh:"↰",Rsh:"↱",upuparrows:"⇈",downdownarrows:"⇊",upharpoonleft:"↿",upharpoonright:"↾",downharpoonleft:"⇃",restriction:"↾",multimap:"⊸",downharpoonright:"⇂",leftrightsquigarrow:"↭",rightsquigarrow:"⇝",leadsto:"⇝",dashrightarrow:"⇢",dashleftarrow:"⇠",nleftarrow:"↚",nrightarrow:"↛",nLeftarrow:"⇍",nRightarrow:"⇏",nleftrightarrow:"↮",nLeftrightarrow:"⇎"}),new uo.DelimiterMap("AMSsymbols-delimiter",Ys.default.delimiter,{"\\ulcorner":"⌜","\\urcorner":"⌝","\\llcorner":"⌞","\\lrcorner":"⌟"}),new uo.CommandMap("AMSsymbols-macros",{implies:["Macro","\\;\\Longrightarrow\\;"],impliedby:["Macro","\\;\\Longleftarrow\\;"]},Jm.AmsMethods);var XG=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ym;Object.defineProperty(Js,"__esModule",{value:!0}),Js.AmsConfiguration=Js.AmsTags=void 0;var ET=_e,Qm=Gi,VG=On,xT=Xi,WG=de,MT=(function(e){XG(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(VG.AbstractTags);Js.AmsTags=MT;var $G=function(e){new WG.CommandMap(xT.NEW_OPS,{},{}),e.append(ET.Configuration.local({handler:{macro:[xT.NEW_OPS]},priority:-1}))};Js.AmsConfiguration=ET.Configuration.create("ams",{handler:{character:["AMSmath-operatorLetter"],delimiter:["AMSsymbols-delimiter","AMSmath-delimiter"],macro:["AMSsymbols-mathchar0mi","AMSsymbols-mathchar0mo","AMSsymbols-delimiter","AMSsymbols-macros","AMSmath-mathchar0mo","AMSmath-macros","AMSmath-delimiter"],environment:["AMSmath-environment"]},items:(Ym={},Ym[Qm.MultlineItem.prototype.kind]=Qm.MultlineItem,Ym[Qm.FlalignItem.prototype.kind]=Qm.FlalignItem,Ym),tags:{ams:MT},init:$G,config:function(e,t){t.parseOptions.options.multlineWidth&&(t.parseOptions.options.ams.multlineWidth=t.parseOptions.options.multlineWidth),delete t.parseOptions.options.multlineWidth},options:{multlineWidth:"",ams:{multlineWidth:"100%",multlineIndent:"1em"}}});var lv={},uv={},OT=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(uv,"__esModule",{value:!0});var Zm=OT(Ut),zG=qo,KG=ce,Qs=OT(Ye),po={};po.CD=function(e,t){e.Push(t);var r=e.itemFactory.create("array"),n=e.configuration.options.amscd;return r.setProperties({minw:e.stack.env.CD_minw||n.harrowsize,minh:e.stack.env.CD_minh||n.varrowsize}),r.arraydef={columnalign:"center",columnspacing:n.colspace,rowspacing:n.rowspace,displaystyle:!0},r},po.arrow=function(e,t){var r=e.string.charAt(e.i);if(r.match(/[><VA.|=]/))e.i++;else return(0,zG.Other)(e,t);var n=e.stack.Top();(!n.isKind("array")||n.Size())&&(po.cell(e,t),n=e.stack.Top());for(var o=n,i=o.table.length%2===1,a=(o.row.length+(i?0:1))%2;a;)po.cell(e,t),a--;var s,c={minsize:o.getProperty("minw"),stretchy:!0},l={minsize:o.getProperty("minh"),stretchy:!0,symmetric:!0,lspace:0,rspace:0};if(r!==".")if(r==="|")s=e.create("token","mo",l,"∥");else if(r==="=")s=e.create("token","mo",c,"=");else{var u={">":"→","<":"←",V:"↓",A:"↑"}[r],p=e.GetUpTo(t+r,r),d=e.GetUpTo(t+r,r);if(r===">"||r==="<"){if(s=e.create("token","mo",c,u),p||(p="\\kern "+o.getProperty("minw")),p||d){var h={width:"+.67em",lspace:".33em"};if(s=e.create("node","munderover",[s]),p){var f=new Zm.default(p,e.stack.env,e.configuration).mml(),m=e.create("node","mpadded",[f],h);Qs.default.setAttribute(m,"voffset",".1em"),Qs.default.setChild(s,s.over,m)}if(d){var v=new Zm.default(d,e.stack.env,e.configuration).mml();Qs.default.setChild(s,s.under,e.create("node","mpadded",[v],h))}e.configuration.options.amscd.hideHorizontalLabels&&(s=e.create("node","mpadded",s,{depth:0,height:".67em"}))}}else{var g=e.create("token","mo",l,u);s=g,(p||d)&&(s=e.create("node","mrow"),p&&Qs.default.appendChildren(s,[new Zm.default("\\scriptstyle\\llap{"+p+"}",e.stack.env,e.configuration).mml()]),g.texClass=KG.TEXCLASS.ORD,Qs.default.appendChildren(s,[g]),d&&Qs.default.appendChildren(s,[new Zm.default("\\scriptstyle\\rlap{"+d+"}",e.stack.env,e.configuration).mml()]))}}s&&e.Push(s),po.cell(e,t)},po.cell=function(e,t){var r=e.stack.Top();(r.table||[]).length%2===0&&(r.row||[]).length===0&&e.Push(e.create("node","mpadded",[],{height:"8.5pt",depth:"2pt"})),e.Push(e.itemFactory.create("cell").setProperties({isEntry:!0,name:t}))},po.minCDarrowwidth=function(e,t){e.stack.env.CD_minw=e.GetDimen(t)},po.minCDarrowheight=function(e,t){e.stack.env.CD_minh=e.GetDimen(t)},uv.default=po;var JG=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),YG=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),QG=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&JG(t,e,r);return YG(t,e),t}),AT=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}),pv=QG(de),ZG=AT(an),dv=AT(uv);new pv.EnvironmentMap("amscd_environment",ZG.default.environment,{CD:"CD"},dv.default),new pv.CommandMap("amscd_macros",{minCDarrowwidth:"minCDarrowwidth",minCDarrowheight:"minCDarrowheight"},dv.default),new pv.MacroMap("amscd_special",{"@":"arrow"},dv.default),Object.defineProperty(lv,"__esModule",{value:!0}),lv.AmsCdConfiguration=void 0,lv.AmsCdConfiguration=_e.Configuration.create("amscd",{handler:{character:["amscd_special"],macro:["amscd_macros"],environment:["amscd_environment"]},options:{amscd:{colspace:"5pt",rowspace:"5pt",harrowsize:"2.75em",varrowsize:"1.75em",hideHorizontalLabels:!1}}});var TT={};(function(e){var t=y&&y.__importDefault||(function(s){return s&&s.__esModule?s:{default:s}});Object.defineProperty(e,"__esModule",{value:!0}),e.BboxConfiguration=e.BboxMethods=void 0;var r=_e,n=de,o=t(Pe);e.BboxMethods={},e.BboxMethods.BBox=function(s,c){for(var l=s.GetBrackets(c,""),u=s.ParseArg(c),p=l.split(/,/),d,h,f,m=0,v=p.length;m<v;m++){var g=p[m].trim(),b=g.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/);if(b){if(d)throw new o.default("MultipleBBoxProperty","%1 specified twice in %2","Padding",c);var S=a(b[1]+b[3]);S&&(d={height:"+"+S,depth:"+"+S,lspace:S,width:"+"+2*parseInt(b[1],10)+b[3]})}else if(g.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)){if(h)throw new o.default("MultipleBBoxProperty","%1 specified twice in %2","Background",c);h=g}else if(g.match(/^[-a-z]+:/i)){if(f)throw new o.default("MultipleBBoxProperty","%1 specified twice in %2","Style",c);f=i(g)}else if(g!=="")throw new o.default("InvalidBBoxProperty",`"%1" doesn't look like a color, a padding dimension, or a style`,g)}d&&(u=s.create("node","mpadded",[u],d)),(h||f)&&(d={},h&&Object.assign(d,{mathbackground:h}),f&&Object.assign(d,{style:f}),u=s.create("node","mstyle",[u],d)),s.Push(u)};var i=function(s){return s},a=function(s){return s};new n.CommandMap("bbox",{bbox:"BBox"},e.BboxMethods),e.BboxConfiguration=r.Configuration.create("bbox",{handler:{macro:["bbox"]}})})(TT),ee(TT);var CT={};(function(e){var t=y&&y.__values||(function(p){var d=typeof Symbol=="function"&&Symbol.iterator,h=d&&p[d],f=0;if(h)return h.call(p);if(p&&typeof p.length=="number")return{next:function(){return p&&f>=p.length&&(p=void 0),{value:p&&p[f++],done:!p}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")}),r=y&&y.__importDefault||(function(p){return p&&p.__esModule?p:{default:p}});Object.defineProperty(e,"__esModule",{value:!0}),e.BoldsymbolConfiguration=e.rewriteBoldTokens=e.createBoldToken=e.BoldsymbolMethods=void 0;var n=_e,o=r(Ye),i=Ht,a=de,s=Rs,c={};c[i.TexConstant.Variant.NORMAL]=i.TexConstant.Variant.BOLD,c[i.TexConstant.Variant.ITALIC]=i.TexConstant.Variant.BOLDITALIC,c[i.TexConstant.Variant.FRAKTUR]=i.TexConstant.Variant.BOLDFRAKTUR,c[i.TexConstant.Variant.SCRIPT]=i.TexConstant.Variant.BOLDSCRIPT,c[i.TexConstant.Variant.SANSSERIF]=i.TexConstant.Variant.BOLDSANSSERIF,c["-tex-calligraphic"]="-tex-bold-calligraphic",c["-tex-oldstyle"]="-tex-bold-oldstyle",c["-tex-mathit"]=i.TexConstant.Variant.BOLDITALIC,e.BoldsymbolMethods={},e.BoldsymbolMethods.Boldsymbol=function(p,d){var h=p.stack.env.boldsymbol;p.stack.env.boldsymbol=!0;var f=p.ParseArg(d);p.stack.env.boldsymbol=h,p.Push(f)},new a.CommandMap("boldsymbol",{boldsymbol:"Boldsymbol"},e.BoldsymbolMethods);function l(p,d,h,f){var m=s.NodeFactory.createToken(p,d,h,f);return d!=="mtext"&&p.configuration.parser.stack.env.boldsymbol&&(o.default.setProperty(m,"fixBold",!0),p.configuration.addNode("fixBold",m)),m}e.createBoldToken=l;function u(p){var d,h;try{for(var f=t(p.data.getList("fixBold")),m=f.next();!m.done;m=f.next()){var v=m.value;if(o.default.getProperty(v,"fixBold")){var g=o.default.getAttribute(v,"mathvariant");g==null?o.default.setAttribute(v,"mathvariant",i.TexConstant.Variant.BOLD):o.default.setAttribute(v,"mathvariant",c[g]||g),o.default.removeProperties(v,"fixBold")}}}catch(b){d={error:b}}finally{try{m&&!m.done&&(h=f.return)&&h.call(f)}finally{if(d)throw d.error}}}e.rewriteBoldTokens=u,e.BoldsymbolConfiguration=n.Configuration.create("boldsymbol",{handler:{macro:["boldsymbol"]},nodes:{token:l},postprocessors:[u]})})(CT),ee(CT);var hv={},ey={},eX=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),tX=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(ey,"__esModule",{value:!0}),ey.BraketItem=void 0;var NT=nn,fv=ce,rX=tX(qe);ey.BraketItem=(function(e){eX(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"braket"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){return r.isKind("close")?[[this.factory.create("mml",this.toMml())],!0]:r.isKind("mml")?(this.Push(r.toMml()),this.getProperty("single")?[[this.toMml()],!0]:NT.BaseItem.fail):e.prototype.checkItem.call(this,r)},t.prototype.toMml=function(){var r=e.prototype.toMml.call(this),n=this.getProperty("open"),o=this.getProperty("close");if(this.getProperty("stretchy"))return rX.default.fenced(this.factory.configuration,n,r,o);var i={fence:!0,stretchy:!1,symmetric:!0,texClass:fv.TEXCLASS.OPEN},a=this.create("token","mo",i,n);i.texClass=fv.TEXCLASS.CLOSE;var s=this.create("token","mo",i,o);return this.create("node","mrow",[a,r,s],{open:n,close:o,texClass:fv.TEXCLASS.INNER})},t})(NT.BaseItem);var mv={},_T=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(mv,"__esModule",{value:!0});var nX=_T(dr),yv=ce,oX=_T(Pe),ty={};ty.Macro=nX.default.Macro,ty.Braket=function(e,t,r,n,o,i){var a=e.GetNext();if(a==="")throw new oX.default("MissingArgFor","Missing argument for %1",e.currentCS);var s=!0;a==="{"&&(e.i++,s=!1),e.Push(e.itemFactory.create("braket").setProperties({barmax:i,barcount:0,open:r,close:n,stretchy:o,single:s}))},ty.Bar=function(e,t){var r=t==="|"?"|":"∥",n=e.stack.Top();if(n.kind!=="braket"||n.getProperty("barcount")>=n.getProperty("barmax")){var o=e.create("token","mo",{texClass:yv.TEXCLASS.ORD,stretchy:!1},r);e.Push(o);return}if(r==="|"&&e.GetNext()==="|"&&(e.i++,r="∥"),!n.getProperty("stretchy")){var i=e.create("token","mo",{stretchy:!1,braketbar:!0},r);e.Push(i);return}var a=e.create("node","TeXAtom",[],{texClass:yv.TEXCLASS.CLOSE});e.Push(a),n.setProperty("barcount",n.getProperty("barcount")+1),a=e.create("token","mo",{stretchy:!0,braketbar:!0},r),e.Push(a),a=e.create("node","TeXAtom",[],{texClass:yv.TEXCLASS.OPEN}),e.Push(a)},mv.default=ty;var iX=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}),wT=de,RT=iX(mv);new wT.CommandMap("Braket-macros",{bra:["Macro","{\\langle {#1} \\vert}",1],ket:["Macro","{\\vert {#1} \\rangle}",1],braket:["Braket","⟨","⟩",!1,1/0],set:["Braket","{","}",!1,1],Bra:["Macro","{\\left\\langle {#1} \\right\\vert}",1],Ket:["Macro","{\\left\\vert {#1} \\right\\rangle}",1],Braket:["Braket","⟨","⟩",!0,1/0],Set:["Braket","{","}",!0,1],ketbra:["Macro","{\\vert {#1} \\rangle\\langle {#2} \\vert}",2],Ketbra:["Macro","{\\left\\vert {#1} \\right\\rangle\\left\\langle {#2} \\right\\vert}",2],"|":"Bar"},RT.default),new wT.MacroMap("Braket-characters",{"|":"Bar"},RT.default);var gv;Object.defineProperty(hv,"__esModule",{value:!0}),hv.BraketConfiguration=void 0;var aX=_e,LT=ey;hv.BraketConfiguration=aX.Configuration.create("braket",{handler:{character:["Braket-characters"],macro:["Braket-macros"]},items:(gv={},gv[LT.BraketItem.prototype.kind]=LT.BraketItem,gv)});var bv={},ry={},cu={};(function(e){var t=y&&y.__read||(function(B,H){var V=typeof Symbol=="function"&&B[Symbol.iterator];if(!V)return B;var X=V.call(B),W,Y=[],J;try{for(;(H===void 0||H-- >0)&&!(W=X.next()).done;)Y.push(W.value)}catch(ae){J={error:ae}}finally{try{W&&!W.done&&(V=X.return)&&V.call(X)}finally{if(J)throw J.error}}return Y}),r=y&&y.__values||(function(B){var H=typeof Symbol=="function"&&Symbol.iterator,V=H&&B[H],X=0;if(V)return V.call(B);if(B&&typeof B.length=="number")return{next:function(){return B&&X>=B.length&&(B=void 0),{value:B&&B[X++],done:!B}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")}),n=y&&y.__importDefault||(function(B){return B&&B.__esModule?B:{default:B}}),o;Object.defineProperty(e,"__esModule",{value:!0}),e.clearDocument=e.saveDocument=e.makeBsprAttributes=e.removeProperty=e.getProperty=e.setProperty=e.balanceRules=void 0;var i=n(Ye),a=n(qe),s=null,c=null,l=function(B){return c.root=B,s.outputJax.getBBox(c,s).w},u=function(B){for(var H=0;B&&!i.default.isType(B,"mtable");){if(i.default.isType(B,"text"))return null;if(i.default.isType(B,"mrow")){B=B.childNodes[0],H=0;continue}B=B.parent.childNodes[H],H++}return B},p=function(B,H){return B.childNodes[H==="up"?1:0].childNodes[0].childNodes[0].childNodes[0].childNodes[0]},d=function(B,H){return B.childNodes[H].childNodes[0].childNodes[0]},h=function(B){return d(B,0)},f=function(B){return d(B,B.childNodes.length-1)},m=function(B,H){return B.childNodes[H==="up"?0:1].childNodes[0].childNodes[0].childNodes[0]},v=function(B){for(;B&&!i.default.isType(B,"mtd");)B=B.parent;return B},g=function(B){return B.parent.childNodes[B.parent.childNodes.indexOf(B)+1]},b=function(B){for(;B&&(0,e.getProperty)(B,"inference")==null;)B=B.parent;return B},S=function(B,H,V){V===void 0&&(V=!1);var X=0;if(B===H)return X;if(B!==H.parent){var W=B.childNodes,Y=V?W.length-1:0;i.default.isType(W[Y],"mspace")&&(X+=l(W[Y])),B=H.parent}if(B===H)return X;var J=B.childNodes,ae=V?J.length-1:0;return J[ae]!==H&&(X+=l(J[ae])),X},E=function(B,H){H===void 0&&(H=!1);var V=u(B),X=m(V,(0,e.getProperty)(V,"inferenceRule"));return S(B,V,H)+(l(V)-l(X))/2},x=function(B,H,V,X){if(X===void 0&&(X=!1),(0,e.getProperty)(H,"inferenceRule")||(0,e.getProperty)(H,"labelledRule")){var W=B.nodeFactory.create("node","mrow");H.parent.replaceChild(W,H),W.setChildren([H]),O(H,W),H=W}var Y=X?H.childNodes.length-1:0,J=H.childNodes[Y];if(i.default.isType(J,"mspace")){i.default.setAttribute(J,"width",a.default.Em(a.default.dimen2em(i.default.getAttribute(J,"width"))+V));return}if(J=B.nodeFactory.create("node","mspace",[],{width:a.default.Em(V)}),X){H.appendChild(J);return}J.parent=H,H.childNodes.unshift(J)},O=function(B,H){["inference","proof","maxAdjust","labelledRule"].forEach(function(V){var X=(0,e.getProperty)(B,V);X!=null&&((0,e.setProperty)(H,V,X),(0,e.removeProperty)(B,V))})},A=function(B){var H=B.nodeLists.sequent;if(H)for(var V=H.length-1,X=void 0;X=H[V];V--){if((0,e.getProperty)(X,"sequentProcessed")){(0,e.removeProperty)(X,"sequentProcessed");continue}var W=[],Y=b(X);if((0,e.getProperty)(Y,"inference")===1){for(W.push(X);(0,e.getProperty)(Y,"inference")===1;){Y=u(Y);var J=h(p(Y,(0,e.getProperty)(Y,"inferenceRule"))),ae=(0,e.getProperty)(J,"inferenceRule")?m(J,(0,e.getProperty)(J,"inferenceRule")):J;(0,e.getProperty)(ae,"sequent")&&(X=ae.childNodes[0],W.push(X),(0,e.setProperty)(X,"sequentProcessed",!0)),Y=J}C(B,W)}}},M=function(B,H,V,X,W){var Y=B.nodeFactory.create("node","mspace",[],{width:a.default.Em(W)});if(X==="left"){var J=H.childNodes[V].childNodes[0];Y.parent=J,J.childNodes.unshift(Y)}else H.childNodes[V].appendChild(Y);(0,e.setProperty)(H.parent,"sequentAdjust_"+X,W)},C=function(B,H){for(var V=H.pop();H.length;){var X=H.pop(),W=t(w(V,X),2),Y=W[0],J=W[1];(0,e.getProperty)(V.parent,"axiom")&&(M(B,Y<0?V:X,0,"left",Math.abs(Y)),M(B,J<0?V:X,2,"right",Math.abs(J))),V=X}},w=function(B,H){var V=l(B.childNodes[2]),X=l(H.childNodes[2]);return[l(B.childNodes[0])-l(H.childNodes[0]),V-X]},k=function(B){var H,V;c=new B.document.options.MathItem("",null,B.math.display);var X=B.data;A(X);var W=X.nodeLists.inference||[];try{for(var Y=r(W),J=Y.next();!J.done;J=Y.next()){var ae=J.value,ye=(0,e.getProperty)(ae,"proof"),Xe=u(ae),Fe=p(Xe,(0,e.getProperty)(Xe,"inferenceRule")),ut=h(Fe);if((0,e.getProperty)(ut,"inference")){var Vt=E(ut);Vt&&(x(X,ut,-Vt),x(X,ae,Vt-S(ae,Xe,!1)))}var pn=f(Fe);if((0,e.getProperty)(pn,"inference")!=null){var lr=E(pn,!0);x(X,pn,-lr,!0);var ur=S(ae,Xe,!0),Ze=(0,e.getProperty)(ae,"maxAdjust");Ze!=null&&(lr=Math.max(lr,Ze));var dn=void 0;if(ye||!(dn=v(ae))){x(X,(0,e.getProperty)(ae,"proof")?ae:ae.parent,lr-ur,!0);continue}var Zo=g(dn);if(Zo){var uc=X.nodeFactory.create("node","mspace",[],{width:lr-ur+"em"});Zo.appendChild(uc),ae.removeProperty("maxAdjust");continue}var kn=b(dn);kn&&(lr=(0,e.getProperty)(kn,"maxAdjust")?Math.max((0,e.getProperty)(kn,"maxAdjust"),lr):lr,(0,e.setProperty)(kn,"maxAdjust",lr))}}}catch(Qi){H={error:Qi}}finally{try{J&&!J.done&&(V=Y.return)&&V.call(Y)}finally{if(H)throw H.error}}};e.balanceRules=k;var L="bspr_",D=(o={},o[L+"maxAdjust"]=!0,o),P=function(B,H,V){i.default.setProperty(B,L+H,V)};e.setProperty=P;var F=function(B,H){return i.default.getProperty(B,L+H)};e.getProperty=F;var G=function(B,H){B.removeProperty(L+H)};e.removeProperty=G;var Q=function(B){B.data.root.walkTree(function(H,V){var X=[];H.getPropertyNames().forEach(function(W){!D[W]&&W.match(RegExp("^"+L))&&X.push(W+":"+H.getProperty(W))}),X.length&&i.default.setAttribute(H,"semantics",X.join(";"))})};e.makeBsprAttributes=Q;var U=function(B){if(s=B.document,!("getBBox"in s.outputJax))throw Error("The bussproofs extension requires an output jax with a getBBox() method")};e.saveDocument=U;var j=function(B){s=null};e.clearDocument=j})(cu),ee(cu);var sX=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),cX=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),lX=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),uX=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&cX(t,e,r);return lX(t,e),t}),IT=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(ry,"__esModule",{value:!0}),ry.ProofTreeItem=void 0;var pX=IT(Pe),PT=nn,dX=IT(Nh),hX=uX(cu);ry.ProofTreeItem=(function(e){sX(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.leftLabel=null,r.rigthLabel=null,r.innerStack=new dX.default(r.factory,{},!0),r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"proofTree"},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("end")&&r.getName()==="prooftree"){var n=this.toMml();return hX.setProperty(n,"proof",!0),[[this.factory.create("mml",n),r],!0]}if(r.isKind("stop"))throw new pX.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return this.innerStack.Push(r),PT.BaseItem.fail},t.prototype.toMml=function(){var r=e.prototype.toMml.call(this),n=this.innerStack.Top();if(n.isKind("start")&&!n.Size())return r;this.innerStack.Push(this.factory.create("stop"));var o=this.innerStack.Top().toMml();return this.create("node","mrow",[o,r],{})},t})(PT.BaseItem);var vv={},fX=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),mX=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),yX=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&fX(t,e,r);return mX(t,e),t}),kT=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),BT=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),Sv=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(vv,"__esModule",{value:!0});var ln=Sv(Pe),Ev=Sv(Ut),xv=Sv(qe),ho=yX(cu),Ln={};Ln.Prooftree=function(e,t){return e.Push(t),e.itemFactory.create("proofTree").setProperties({name:t.getName(),line:"solid",currentLine:"solid",rootAtTop:!1})},Ln.Axiom=function(e,t){var r=e.stack.Top();if(r.kind!=="proofTree")throw new ln.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");var n=DT(e,e.GetArgument(t));ho.setProperty(n,"axiom",!0),r.Push(n)};var DT=function(e,t){var r=xv.default.internalMath(e,xv.default.trimSpaces(t),0);if(!r[0].childNodes[0].childNodes.length)return e.create("node","mrow",[]);var n=e.create("node","mspace",[],{width:".5ex"}),o=e.create("node","mspace",[],{width:".5ex"});return e.create("node","mrow",BT(BT([n],kT(r),!1),[o],!1))};Ln.Inference=function(e,t,r){var n=e.stack.Top();if(n.kind!=="proofTree")throw new ln.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");if(n.Size()<r)throw new ln.default("BadProofTree","Proof tree badly specified.");var o=n.getProperty("rootAtTop"),i=r===1&&!n.Peek()[0].childNodes.length?0:r,a=[];do a.length&&a.unshift(e.create("node","mtd",[],{})),a.unshift(e.create("node","mtd",[n.Pop()],{rowalign:o?"top":"bottom"})),r--;while(r>0);var s=e.create("node","mtr",a,{}),c=e.create("node","mtable",[s],{framespacing:"0 0"}),l=DT(e,e.GetArgument(t)),u=n.getProperty("currentLine");u!==n.getProperty("line")&&n.setProperty("currentLine",n.getProperty("line"));var p=jT(e,c,[l],n.getProperty("left"),n.getProperty("right"),u,o);n.setProperty("left",null),n.setProperty("right",null),ho.setProperty(p,"inference",i),e.configuration.addNode("inference",p),n.Push(p)};function jT(e,t,r,n,o,i,a){var s=e.create("node","mtr",[e.create("node","mtd",[t],{})],{}),c=e.create("node","mtr",[e.create("node","mtd",r,{})],{}),l=e.create("node","mtable",a?[c,s]:[s,c],{align:"top 2",rowlines:i,framespacing:"0 0"});ho.setProperty(l,"inferenceRule",a?"up":"down");var u,p;n&&(u=e.create("node","mpadded",[n],{height:"+.5em",width:"+.5em",voffset:"-.15em"}),ho.setProperty(u,"prooflabel","left")),o&&(p=e.create("node","mpadded",[o],{height:"+.5em",width:"+.5em",voffset:"-.15em"}),ho.setProperty(p,"prooflabel","right"));var d,h;if(n&&o)d=[u,l,p],h="both";else if(n)d=[u,l],h="left";else if(o)d=[l,p],h="right";else return l;return l=e.create("node","mrow",d),ho.setProperty(l,"labelledRule",h),l}Ln.Label=function(e,t,r){var n=e.stack.Top();if(n.kind!=="proofTree")throw new ln.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");var o=xv.default.internalMath(e,e.GetArgument(t),0),i=o.length>1?e.create("node","mrow",o,{}):o[0];n.setProperty(r,i)},Ln.SetLine=function(e,t,r,n){var o=e.stack.Top();if(o.kind!=="proofTree")throw new ln.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");o.setProperty("currentLine",r),n&&o.setProperty("line",r)},Ln.RootAtTop=function(e,t,r){var n=e.stack.Top();if(n.kind!=="proofTree")throw new ln.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");n.setProperty("rootAtTop",r)},Ln.AxiomF=function(e,t){var r=e.stack.Top();if(r.kind!=="proofTree")throw new ln.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");var n=FT(e,t);ho.setProperty(n,"axiom",!0),r.Push(n)};function FT(e,t){if(e.GetNext()!=="$")throw new ln.default("IllegalUseOfCommand","Use of %1 does not match it's definition.",t);e.i++;var r=e.GetUpTo(t,"$");if(r.indexOf("\\fCenter")===-1)throw new ln.default("IllegalUseOfCommand","Missing \\fCenter in %1.",t);var n=kT(r.split("\\fCenter"),2),o=n[0],i=n[1],a=new Ev.default(o,e.stack.env,e.configuration).mml(),s=new Ev.default(i,e.stack.env,e.configuration).mml(),c=new Ev.default("\\fCenter",e.stack.env,e.configuration).mml(),l=e.create("node","mtd",[a],{}),u=e.create("node","mtd",[c],{}),p=e.create("node","mtd",[s],{}),d=e.create("node","mtr",[l,u,p],{}),h=e.create("node","mtable",[d],{columnspacing:".5ex",columnalign:"center 2"});return ho.setProperty(h,"sequent",!0),e.configuration.addNode("sequent",d),h}Ln.FCenter=function(e,t){},Ln.InferenceF=function(e,t,r){var n=e.stack.Top();if(n.kind!=="proofTree")throw new ln.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");if(n.Size()<r)throw new ln.default("BadProofTree","Proof tree badly specified.");var o=n.getProperty("rootAtTop"),i=r===1&&!n.Peek()[0].childNodes.length?0:r,a=[];do a.length&&a.unshift(e.create("node","mtd",[],{})),a.unshift(e.create("node","mtd",[n.Pop()],{rowalign:o?"top":"bottom"})),r--;while(r>0);var s=e.create("node","mtr",a,{}),c=e.create("node","mtable",[s],{framespacing:"0 0"}),l=FT(e,t),u=n.getProperty("currentLine");u!==n.getProperty("line")&&n.setProperty("currentLine",n.getProperty("line"));var p=jT(e,c,[l],n.getProperty("left"),n.getProperty("right"),u,o);n.setProperty("left",null),n.setProperty("right",null),ho.setProperty(p,"inference",i),e.configuration.addNode("inference",p),n.Push(p)},vv.default=Ln;var UT=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}),HT=UT(vv),gX=UT(an),qT=de;new qT.CommandMap("Bussproofs-macros",{AxiomC:"Axiom",UnaryInfC:["Inference",1],BinaryInfC:["Inference",2],TrinaryInfC:["Inference",3],QuaternaryInfC:["Inference",4],QuinaryInfC:["Inference",5],RightLabel:["Label","right"],LeftLabel:["Label","left"],AXC:"Axiom",UIC:["Inference",1],BIC:["Inference",2],TIC:["Inference",3],RL:["Label","right"],LL:["Label","left"],noLine:["SetLine","none",!1],singleLine:["SetLine","solid",!1],solidLine:["SetLine","solid",!1],dashedLine:["SetLine","dashed",!1],alwaysNoLine:["SetLine","none",!0],alwaysSingleLine:["SetLine","solid",!0],alwaysSolidLine:["SetLine","solid",!0],alwaysDashedLine:["SetLine","dashed",!0],rootAtTop:["RootAtTop",!0],alwaysRootAtTop:["RootAtTop",!0],rootAtBottom:["RootAtTop",!1],alwaysRootAtBottom:["RootAtTop",!1],fCenter:"FCenter",Axiom:"AxiomF",UnaryInf:["InferenceF",1],BinaryInf:["InferenceF",2],TrinaryInf:["InferenceF",3],QuaternaryInf:["InferenceF",4],QuinaryInf:["InferenceF",5]},HT.default),new qT.EnvironmentMap("Bussproofs-environments",gX.default.environment,{prooftree:["Prooftree",null,!1]},HT.default);var Mv;Object.defineProperty(bv,"__esModule",{value:!0}),bv.BussproofsConfiguration=void 0;var bX=_e,GT=ry,ny=cu;bv.BussproofsConfiguration=bX.Configuration.create("bussproofs",{handler:{macro:["Bussproofs-macros"],environment:["Bussproofs-environments"]},items:(Mv={},Mv[GT.ProofTreeItem.prototype.kind]=GT.ProofTreeItem,Mv),preprocessors:[[ny.saveDocument,1]],postprocessors:[[ny.clearDocument,3],[ny.makeBsprAttributes,2],[ny.balanceRules,1]]});var XT={},Ov={};(function(e){var t=y&&y.__importDefault||(function(i){return i&&i.__esModule?i:{default:i}});Object.defineProperty(e,"__esModule",{value:!0}),e.EncloseConfiguration=e.EncloseMethods=e.ENCLOSE_OPTIONS=void 0;var r=_e,n=de,o=t(qe);e.ENCLOSE_OPTIONS={"data-arrowhead":1,color:1,mathcolor:1,background:1,mathbackground:1,"data-padding":1,"data-thickness":1},e.EncloseMethods={},e.EncloseMethods.Enclose=function(i,a){var s=i.GetArgument(a).replace(/,/g," "),c=i.GetBrackets(a,""),l=i.ParseArg(a),u=o.default.keyvalOptions(c,e.ENCLOSE_OPTIONS);u.notation=s,i.Push(i.create("node","menclose",[l],u))},new n.CommandMap("enclose",{enclose:"Enclose"},e.EncloseMethods),e.EncloseConfiguration=r.Configuration.create("enclose",{handler:{macro:["enclose"]}})})(Ov),ee(Ov),(function(e){var t=y&&y.__importDefault||(function(s){return s&&s.__esModule?s:{default:s}});Object.defineProperty(e,"__esModule",{value:!0}),e.CancelConfiguration=e.CancelMethods=void 0;var r=_e,n=Ht,o=de,i=t(qe),a=Ov;e.CancelMethods={},e.CancelMethods.Cancel=function(s,c,l){var u=s.GetBrackets(c,""),p=s.ParseArg(c),d=i.default.keyvalOptions(u,a.ENCLOSE_OPTIONS);d.notation=l,s.Push(s.create("node","menclose",[p],d))},e.CancelMethods.CancelTo=function(s,c){var l=s.GetBrackets(c,""),u=s.ParseArg(c),p=s.ParseArg(c),d=i.default.keyvalOptions(l,a.ENCLOSE_OPTIONS);d.notation=[n.TexConstant.Notation.UPDIAGONALSTRIKE,n.TexConstant.Notation.UPDIAGONALARROW,n.TexConstant.Notation.NORTHEASTARROW].join(" "),u=s.create("node","mpadded",[u],{depth:"-.1em",height:"+.1em",voffset:".1em"}),s.Push(s.create("node","msup",[s.create("node","menclose",[p],d),u]))},new o.CommandMap("cancel",{cancel:["Cancel",n.TexConstant.Notation.UPDIAGONALSTRIKE],bcancel:["Cancel",n.TexConstant.Notation.DOWNDIAGONALSTRIKE],xcancel:["Cancel",n.TexConstant.Notation.UPDIAGONALSTRIKE+" "+n.TexConstant.Notation.DOWNDIAGONALSTRIKE],cancelto:"CancelTo"},e.CancelMethods),e.CancelConfiguration=r.Configuration.create("cancel",{handler:{macro:["cancel"]}})})(XT),ee(XT);var VT={},oy={};(function(e){var t=y&&y.__read||(function(s,c){var l=typeof Symbol=="function"&&s[Symbol.iterator];if(!l)return s;var u=l.call(s),p,d=[],h;try{for(;(c===void 0||c-- >0)&&!(p=u.next()).done;)d.push(p.value)}catch(f){h={error:f}}finally{try{p&&!p.done&&(l=u.return)&&l.call(u)}finally{if(h)throw h.error}}return d}),r=y&&y.__spreadArray||(function(s,c,l){if(l||arguments.length===2)for(var u=0,p=c.length,d;u<p;u++)(d||!(u in c))&&(d||(d=Array.prototype.slice.call(c,0,u)),d[u]=c[u]);return s.concat(d||Array.prototype.slice.call(c))}),n=y&&y.__values||(function(s){var c=typeof Symbol=="function"&&Symbol.iterator,l=c&&s[c],u=0;if(l)return l.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&u>=s.length&&(s=void 0),{value:s&&s[u++],done:!s}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")}),o=y&&y.__importDefault||(function(s){return s&&s.__esModule?s:{default:s}});Object.defineProperty(e,"__esModule",{value:!0}),e.EmpheqUtil=void 0;var i=o(qe),a=o(Ut);e.EmpheqUtil={environment:function(s,c,l,u){var p=u[0],d=s.itemFactory.create(p+"-begin").setProperties({name:c,end:p});s.Push(l.apply(void 0,r([s,d],t(u.slice(1)),!1)))},splitOptions:function(s,c){return c===void 0&&(c=null),i.default.keyvalOptions(s,c,!0)},columnCount:function(s){var c,l,u=0;try{for(var p=n(s.childNodes),d=p.next();!d.done;d=p.next()){var h=d.value,f=h.childNodes.length-(h.isKind("mlabeledtr")?1:0);f>u&&(u=f)}}catch(m){c={error:m}}finally{try{d&&!d.done&&(l=p.return)&&l.call(p)}finally{if(c)throw c.error}}return u},cellBlock:function(s,c,l,u){var p,d,h=l.create("node","mpadded",[],{height:0,depth:0,voffset:"-1height"}),f=new a.default(s,l.stack.env,l.configuration),m=f.mml();u&&f.configuration.tags.label&&(f.configuration.tags.currentTag.env=u,f.configuration.tags.getTag(!0));try{for(var v=n(m.isInferred?m.childNodes:[m]),g=v.next();!g.done;g=v.next()){var b=g.value;h.appendChild(b)}}catch(S){p={error:S}}finally{try{g&&!g.done&&(d=v.return)&&d.call(v)}finally{if(p)throw p.error}}return h.appendChild(l.create("node","mphantom",[l.create("node","mpadded",[c],{width:0})])),h},topRowTable:function(s,c){var l=i.default.copyNode(s,c);return l.setChildren(l.childNodes.slice(0,1)),l.attributes.set("align","baseline 1"),s.factory.create("mphantom",{},[c.create("node","mpadded",[l],{width:0})])},rowspanCell:function(s,c,l,u,p){s.appendChild(u.create("node","mpadded",[this.cellBlock(c,i.default.copyNode(l,u),u,p),this.topRowTable(l,u)],{height:0,depth:0,voffset:"height"}))},left:function(s,c,l,u,p){var d,h;p===void 0&&(p=""),s.attributes.set("columnalign","right "+(s.attributes.get("columnalign")||"")),s.attributes.set("columnspacing","0em "+(s.attributes.get("columnspacing")||""));var f;try{for(var m=n(s.childNodes.slice(0).reverse()),v=m.next();!v.done;v=m.next()){var g=v.value;f=u.create("node","mtd"),g.childNodes.unshift(f),f.parent=g,g.isKind("mlabeledtr")&&(g.childNodes[0]=g.childNodes[1],g.childNodes[1]=f)}}catch(b){d={error:b}}finally{try{v&&!v.done&&(h=m.return)&&h.call(m)}finally{if(d)throw d.error}}this.rowspanCell(f,l,c,u,p)},right:function(s,c,l,u,p){p===void 0&&(p=""),s.childNodes.length===0&&s.appendChild(u.create("node","mtr"));for(var d=e.EmpheqUtil.columnCount(s),h=s.childNodes[0];h.childNodes.length<d;)h.appendChild(u.create("node","mtd"));var f=h.appendChild(u.create("node","mtd"));e.EmpheqUtil.rowspanCell(f,l,c,u,p),s.attributes.set("columnalign",(s.attributes.get("columnalign")||"").split(/ /).slice(0,d).join(" ")+" left"),s.attributes.set("columnspacing",(s.attributes.get("columnspacing")||"").split(/ /).slice(0,d-1).join(" ")+" 0em")},adjustTable:function(s,c){var l=s.getProperty("left"),u=s.getProperty("right");if(l||u){var p=s.Last,d=i.default.copyNode(p,c);l&&this.left(p,d,l,c),u&&this.right(p,d,u,c)}},allowEnv:{equation:!0,align:!0,gather:!0,flalign:!0,alignat:!0,multline:!0},checkEnv:function(s){return this.allowEnv.hasOwnProperty(s.replace(/\*$/,""))||!1}}})(oy),ee(oy),(function(e){var t=y&&y.__extends||(function(){var f=function(m,v){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(g,b){g.__proto__=b})||(function(g,b){for(var S in b)Object.prototype.hasOwnProperty.call(b,S)&&(g[S]=b[S])}),f(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");f(m,v);function g(){this.constructor=m}m.prototype=v===null?Object.create(v):(g.prototype=v.prototype,new g)}})(),r=y&&y.__importDefault||(function(f){return f&&f.__esModule?f:{default:f}}),n;Object.defineProperty(e,"__esModule",{value:!0}),e.CasesConfiguration=e.CasesMethods=e.CasesTags=e.CasesBeginItem=void 0;var o=_e,i=de,a=r(qe),s=r(dr),c=r(Pe),l=pe,u=Js,p=oy,d=(function(f){t(m,f);function m(){return f!==null&&f.apply(this,arguments)||this}return Object.defineProperty(m.prototype,"kind",{get:function(){return"cases-begin"},enumerable:!1,configurable:!0}),m.prototype.checkItem=function(v){return v.isKind("end")&&v.getName()===this.getName()&&this.getProperty("end")?(this.setProperty("end",!1),[[],!0]):f.prototype.checkItem.call(this,v)},m})(l.BeginItem);e.CasesBeginItem=d;var h=(function(f){t(m,f);function m(){var v=f!==null&&f.apply(this,arguments)||this;return v.subcounter=0,v}return m.prototype.start=function(v,g,b){this.subcounter=0,f.prototype.start.call(this,v,g,b)},m.prototype.autoTag=function(){this.currentTag.tag??(this.currentTag.env==="subnumcases"?(this.subcounter===0&&this.counter++,this.subcounter++,this.tag(this.formatNumber(this.counter,this.subcounter),!1)):((this.subcounter===0||this.currentTag.env!=="numcases-left")&&this.counter++,this.tag(this.formatNumber(this.counter),!1)))},m.prototype.formatNumber=function(v,g){return g===void 0&&(g=null),v.toString()+(g===null?"":String.fromCharCode(96+g))},m})(u.AmsTags);e.CasesTags=h,e.CasesMethods={NumCases:function(f,m){if(f.stack.env.closing===m.getName()){delete f.stack.env.closing,f.Push(f.itemFactory.create("end").setProperty("name",m.getName()));var v=f.stack.Top(),g=v.Last,b=a.default.copyNode(g,f),S=v.getProperty("left");return p.EmpheqUtil.left(g,b,S+"\\empheqlbrace\\,",f,"numcases-left"),f.Push(f.itemFactory.create("end").setProperty("name",m.getName())),null}else{var S=f.GetArgument("\\begin{"+m.getName()+"}");m.setProperty("left",S);var E=s.default.EqnArray(f,m,!0,!0,"ll");return E.arraydef.displaystyle=!1,E.arraydef.rowspacing=".2em",E.setProperty("numCases",!0),f.Push(m),E}},Entry:function(f,m){if(!f.stack.Top().getProperty("numCases"))return s.default.Entry(f,m);f.Push(f.itemFactory.create("cell").setProperties({isEntry:!0,name:m}));for(var v=f.string,g=0,b=f.i,S=v.length;b<S;){var E=v.charAt(b);if(E==="{")g++,b++;else if(E==="}"){if(g===0)break;g--,b++}else{if(E==="&"&&g===0)throw new c.default("ExtraCasesAlignTab","Extra alignment tab in text for numcase environment");if(E==="\\"&&g===0){var x=(v.slice(b+1).match(/^[a-z]+|./i)||[])[0];if(x==="\\"||x==="cr"||x==="end"||x==="label")break;b+=x.length}else b++}}var O=v.substr(f.i,b-f.i).replace(/^\s*/,"");f.PushAll(a.default.internalMath(f,O,0)),f.i=b}},new i.EnvironmentMap("cases-env",p.EmpheqUtil.environment,{numcases:["NumCases","cases"],subnumcases:["NumCases","cases"]},e.CasesMethods),new i.MacroMap("cases-macros",{"&":"Entry"},e.CasesMethods),e.CasesConfiguration=o.Configuration.create("cases",{handler:{environment:["cases-env"],character:["cases-macros"]},items:(n={},n[d.prototype.kind]=d,n),tags:{cases:h}})})(VT),ee(VT);var lu={},vX=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),Av=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(lu,"__esModule",{value:!0}),lu.CenternotConfiguration=lu.filterCenterOver=void 0;var SX=_e,WT=Av(Ut),$T=Av(Ye),EX=de,xX=Av(dr);new EX.CommandMap("centernot",{centerOver:"CenterOver",centernot:["Macro","\\centerOver{#1}{{⧸}}",1]},{CenterOver:function(e,t){var r="{"+e.GetArgument(t)+"}",n=e.ParseArg(t),o=new WT.default(r,e.stack.env,e.configuration).mml(),i=e.create("node","TeXAtom",[new WT.default(r,e.stack.env,e.configuration).mml(),e.create("node","mpadded",[e.create("node","mpadded",[n],{width:0,lspace:"-.5width"}),e.create("node","mphantom",[o])],{width:0,lspace:"-.5width"})]);e.configuration.addNode("centerOver",o),e.Push(i)},Macro:xX.default.Macro});function zT(e){var t,r,n=e.data;try{for(var o=vX(n.getList("centerOver")),i=o.next();!i.done;i=o.next()){var a=i.value,s=$T.default.getTexClass(a.childNodes[0].childNodes[0]);s!==null&&$T.default.setProperties(a.parent.parent.parent.parent.parent.parent,{texClass:s})}}catch(c){t={error:c}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}lu.filterCenterOver=zT,lu.CenternotConfiguration=SX.Configuration.create("centernot",{handler:{macro:["centernot"]},postprocessors:[zT]});var Tv={},Cv={};(function(e){var t=y&&y.__importDefault||(function(i){return i&&i.__esModule?i:{default:i}});Object.defineProperty(e,"__esModule",{value:!0}),e.ColorMethods=void 0;var r=t(Ye),n=t(qe);function o(i){var a="+".concat(i),s=i.replace(/^.*?([a-z]*)$/,"$1"),c=2*parseFloat(a);return{width:"+".concat(c).concat(s),height:a,depth:a,lspace:i}}e.ColorMethods={},e.ColorMethods.Color=function(i,a){var s=i.GetBrackets(a,""),c=i.GetArgument(a),l=i.configuration.packageData.get("color").model.getColor(s,c),u=i.itemFactory.create("style").setProperties({styles:{mathcolor:l}});i.stack.env.color=l,i.Push(u)},e.ColorMethods.TextColor=function(i,a){var s=i.GetBrackets(a,""),c=i.GetArgument(a),l=i.configuration.packageData.get("color").model.getColor(s,c),u=i.stack.env.color;i.stack.env.color=l;var p=i.ParseArg(a);u?i.stack.env.color=u:delete i.stack.env.color;var d=i.create("node","mstyle",[p],{mathcolor:l});i.Push(d)},e.ColorMethods.DefineColor=function(i,a){var s=i.GetArgument(a),c=i.GetArgument(a),l=i.GetArgument(a);i.configuration.packageData.get("color").model.defineColor(c,s,l)},e.ColorMethods.ColorBox=function(i,a){var s=i.GetArgument(a),c=n.default.internalMath(i,i.GetArgument(a)),l=i.configuration.packageData.get("color").model,u=i.create("node","mpadded",c,{mathbackground:l.getColor("named",s)});r.default.setProperties(u,o(i.options.color.padding)),i.Push(u)},e.ColorMethods.FColorBox=function(i,a){var s=i.GetArgument(a),c=i.GetArgument(a),l=n.default.internalMath(i,i.GetArgument(a)),u=i.options.color,p=i.configuration.packageData.get("color").model,d=i.create("node","mpadded",l,{mathbackground:p.getColor("named",c),style:"border: ".concat(u.borderWidth," solid ").concat(p.getColor("named",s))});r.default.setProperties(d,o(u.padding)),i.Push(d)}})(Cv),ee(Cv);var iy={},ay={};Object.defineProperty(ay,"__esModule",{value:!0}),ay.COLORS=void 0,ay.COLORS=new Map([["Apricot","#FBB982"],["Aquamarine","#00B5BE"],["Bittersweet","#C04F17"],["Black","#221E1F"],["Blue","#2D2F92"],["BlueGreen","#00B3B8"],["BlueViolet","#473992"],["BrickRed","#B6321C"],["Brown","#792500"],["BurntOrange","#F7921D"],["CadetBlue","#74729A"],["CarnationPink","#F282B4"],["Cerulean","#00A2E3"],["CornflowerBlue","#41B0E4"],["Cyan","#00AEEF"],["Dandelion","#FDBC42"],["DarkOrchid","#A4538A"],["Emerald","#00A99D"],["ForestGreen","#009B55"],["Fuchsia","#8C368C"],["Goldenrod","#FFDF42"],["Gray","#949698"],["Green","#00A64F"],["GreenYellow","#DFE674"],["JungleGreen","#00A99A"],["Lavender","#F49EC4"],["LimeGreen","#8DC73E"],["Magenta","#EC008C"],["Mahogany","#A9341F"],["Maroon","#AF3235"],["Melon","#F89E7B"],["MidnightBlue","#006795"],["Mulberry","#A93C93"],["NavyBlue","#006EB8"],["OliveGreen","#3C8031"],["Orange","#F58137"],["OrangeRed","#ED135A"],["Orchid","#AF72B0"],["Peach","#F7965A"],["Periwinkle","#7977B8"],["PineGreen","#008B72"],["Plum","#92268F"],["ProcessBlue","#00B0F0"],["Purple","#99479B"],["RawSienna","#974006"],["Red","#ED1B23"],["RedOrange","#F26035"],["RedViolet","#A1246B"],["Rhodamine","#EF559F"],["RoyalBlue","#0071BC"],["RoyalPurple","#613F99"],["RubineRed","#ED017D"],["Salmon","#F69289"],["SeaGreen","#3FBC9D"],["Sepia","#671800"],["SkyBlue","#46C5DD"],["SpringGreen","#C6DC67"],["Tan","#DA9D76"],["TealBlue","#00AEB3"],["Thistle","#D883B7"],["Turquoise","#00B4CE"],["Violet","#58429B"],["VioletRed","#EF58A0"],["White","#FFFFFF"],["WildStrawberry","#EE2967"],["Yellow","#FFF200"],["YellowGreen","#98CC70"],["YellowOrange","#FAA21A"]]);var KT=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),MX=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(iy,"__esModule",{value:!0}),iy.ColorModel=void 0;var fo=MX(Pe),JT=ay,uu=new Map;iy.ColorModel=(function(){function e(){this.userColors=new Map}return e.prototype.normalizeColor=function(t,r){if(!t||t==="named")return r;if(uu.has(t))return uu.get(t)(r);throw new fo.default("UndefinedColorModel","Color model '%1' not defined",t)},e.prototype.getColor=function(t,r){return!t||t==="named"?this.getColorByName(r):this.normalizeColor(t,r)},e.prototype.getColorByName=function(t){return this.userColors.has(t)?this.userColors.get(t):JT.COLORS.has(t)?JT.COLORS.get(t):t},e.prototype.defineColor=function(t,r,n){var o=this.normalizeColor(t,n);this.userColors.set(r,o)},e})(),uu.set("rgb",function(e){var t,r,n=e.trim().split(/\s*,\s*/),o="#";if(n.length!==3)throw new fo.default("ModelArg1","Color values for the %1 model require 3 numbers","rgb");try{for(var i=KT(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(!s.match(/^(\d+(\.\d*)?|\.\d+)$/))throw new fo.default("InvalidDecimalNumber","Invalid decimal number");var c=parseFloat(s);if(c<0||c>1)throw new fo.default("ModelArg2","Color values for the %1 model must be between %2 and %3","rgb","0","1");var l=Math.floor(c*255).toString(16);l.length<2&&(l="0"+l),o+=l}}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o}),uu.set("RGB",function(e){var t,r,n=e.trim().split(/\s*,\s*/),o="#";if(n.length!==3)throw new fo.default("ModelArg1","Color values for the %1 model require 3 numbers","RGB");try{for(var i=KT(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(!s.match(/^\d+$/))throw new fo.default("InvalidNumber","Invalid number");var c=parseInt(s);if(c>255)throw new fo.default("ModelArg2","Color values for the %1 model must be between %2 and %3","RGB","0","255");var l=c.toString(16);l.length<2&&(l="0"+l),o+=l}}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o}),uu.set("gray",function(e){if(!e.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/))throw new fo.default("InvalidDecimalNumber","Invalid decimal number");var t=parseFloat(e);if(t<0||t>1)throw new fo.default("ModelArg2","Color values for the %1 model must be between %2 and %3","gray","0","1");var r=Math.floor(t*255).toString(16);return r.length<2&&(r="0"+r),"#".concat(r).concat(r).concat(r)}),Object.defineProperty(Tv,"__esModule",{value:!0}),Tv.ColorConfiguration=void 0;var OX=de,AX=_e,TX=Cv,CX=iy;new OX.CommandMap("color",{color:"Color",textcolor:"TextColor",definecolor:"DefineColor",colorbox:"ColorBox",fcolorbox:"FColorBox"},TX.ColorMethods);var NX=function(e,t){t.parseOptions.packageData.set("color",{model:new CX.ColorModel})};Tv.ColorConfiguration=AX.Configuration.create("color",{handler:{macro:["color"]},options:{color:{padding:"5px",borderWidth:"2px"}},config:NX});var YT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorConfiguration=e.ColorV2Methods=void 0;var t=de,r=_e;e.ColorV2Methods={Color:function(n,o){var i=n.GetArgument(o),a=n.stack.env.color;n.stack.env.color=i;var s=n.ParseArg(o);a?n.stack.env.color=a:delete n.stack.env.color;var c=n.create("node","mstyle",[s],{mathcolor:i});n.Push(c)}},new t.CommandMap("colorv2",{color:"Color"},e.ColorV2Methods),e.ColorConfiguration=r.Configuration.create("colorv2",{handler:{macro:["colorv2"]}})})(YT),ee(YT);var pu={},_X=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),wX=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(pu,"__esModule",{value:!0}),pu.ColortblConfiguration=pu.ColorArrayItem=void 0;var RX=pe,QT=_e,LX=de,Nv=wX(Pe),_v=(function(e){_X(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.color={cell:"",row:"",col:[]},r.hasColor=!1,r}return t.prototype.EndEntry=function(){e.prototype.EndEntry.call(this);var r=this.row[this.row.length-1],n=this.color.cell||this.color.row||this.color.col[this.row.length-1];n&&(r.attributes.set("mathbackground",n),this.color.cell="",this.hasColor=!0)},t.prototype.EndRow=function(){e.prototype.EndRow.call(this),this.color.row=""},t.prototype.createMml=function(){var r=e.prototype.createMml.call(this),n=r.isKind("mrow")?r.childNodes[1]:r;return n.isKind("menclose")&&(n=n.childNodes[0].childNodes[0]),this.hasColor&&n.attributes.get("frame")==="none"&&n.attributes.set("frame",""),r},t})(RX.ArrayItem);pu.ColorArrayItem=_v,new LX.CommandMap("colortbl",{cellcolor:["TableColor","cell"],rowcolor:["TableColor","row"],columncolor:["TableColor","col"]},{TableColor:function(e,t,r){var n=e.configuration.packageData.get("color").model,o=e.GetBrackets(t,""),i=n.getColor(o,e.GetArgument(t)),a=e.stack.Top();if(!(a instanceof _v))throw new Nv.default("UnsupportedTableColor","Unsupported use of %1",e.currentCS);if(r==="col"){if(a.table.length)throw new Nv.default("ColumnColorNotTop","%1 must be in the top row",t);a.color.col[a.row.length]=i,e.GetBrackets(t,"")&&e.GetBrackets(t,"")}else if(a.color[r]=i,r==="row"&&(a.Size()||a.row.length))throw new Nv.default("RowColorNotFirst","%1 must be at the beginning of a row",t)}});var IX=function(e,t){t.parseOptions.packageData.has("color")||QT.ConfigurationHandler.get("color").config(e,t)};pu.ColortblConfiguration=QT.Configuration.create("colortbl",{handler:{macro:["colortbl"]},items:{array:_v},priority:10,config:[IX,10]});var wv={},du={},Zs={},ZT=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(Zs,"__esModule",{value:!0});var Rv=ZT(qe),Wi=ZT(Pe),sy=on,Lv;(function(e){function t(d,h){var f=[d,h.char];if(h.attributes)for(var m in h.attributes)f.push(m),f.push(h.attributes[m]);return f}e.disassembleSymbol=t;function r(d){for(var h=d[0],f=d[1],m={},v=2;v<d.length;v=v+2)m[d[v]]=d[v+1];return new sy.Symbol(h,f,m)}e.assembleSymbol=r;function n(d,h){if(d.GetNext()!=="\\")throw new Wi.default("MissingCS","%1 must be followed by a control sequence",h);return Rv.default.trimSpaces(d.GetArgument(h)).substr(1)}e.GetCSname=n;function o(d,h){var f=Rv.default.trimSpaces(d.GetArgument(h));if(f.charAt(0)==="\\"&&(f=f.substr(1)),!f.match(/^(.|[a-z]+)$/i))throw new Wi.default("IllegalControlSequenceName","Illegal control sequence name for %1",h);return f}e.GetCsNameArgument=o;function i(d,h){var f=d.GetBrackets(h);if(f&&(f=Rv.default.trimSpaces(f),!f.match(/^[0-9]+$/)))throw new Wi.default("IllegalParamNumber","Illegal number of parameters specified in %1",h);return f}e.GetArgCount=i;function a(d,h,f){for(var m=d.GetNext(),v=[],g=0,b=d.i;d.i<d.string.length;){if(m=d.GetNext(),m==="#"){if(b!==d.i&&(v[g]=d.string.substr(b,d.i-b)),m=d.string.charAt(++d.i),!m.match(/^[1-9]$/))throw new Wi.default("CantUseHash2","Illegal use of # in template for %1",f);if(parseInt(m)!==++g)throw new Wi.default("SequentialParam","Parameters for %1 must be numbered sequentially",f);b=d.i+1}else if(m==="{")return b!==d.i&&(v[g]=d.string.substr(b,d.i-b)),v.length>0?[g.toString()].concat(v):g;d.i++}throw new Wi.default("MissingReplacementString","Missing replacement string for definition of %1",h)}e.GetTemplate=a;function s(d,h,f){if(f==null)return d.GetArgument(h);for(var m=d.i,v=0,g=0;d.i<d.string.length;){var b=d.string.charAt(d.i);if(b==="{")d.i===m&&(g=1),d.GetArgument(h),v=d.i-m;else{if(c(d,f))return g&&(m++,v-=2),d.string.substr(m,v);if(b==="\\"){d.i++,v++,g=0;var S=d.string.substr(d.i).match(/[a-z]+|./i);S&&(d.i+=S[0].length,v=d.i-m)}else d.i++,v++,g=0}}throw new Wi.default("RunawayArgument","Runaway argument for %1?",h)}e.GetParameter=s;function c(d,h){return d.string.substr(d.i,h.length)!==h||h.match(/\\[a-z]+$/i)&&d.string.charAt(d.i+h.length).match(/[a-z]/i)?0:(d.i+=h.length,1)}e.MatchParam=c;function l(d,h,f,m){d.configuration.handlers.retrieve(e.NEW_DELIMITER).add(h,new sy.Symbol(h,f,m))}e.addDelimiter=l;function u(d,h,f,m,v){v===void 0&&(v=""),d.configuration.handlers.retrieve(e.NEW_COMMAND).add(h,new sy.Macro(v||h,f,m))}e.addMacro=u;function p(d,h,f,m){d.configuration.handlers.retrieve(e.NEW_ENVIRONMENT).add(h,new sy.Macro(h,f,m))}e.addEnvironment=p,e.NEW_DELIMITER="new-Delimiter",e.NEW_COMMAND="new-Command",e.NEW_ENVIRONMENT="new-Environment"})(Lv||(Lv={})),Zs.default=Lv;var PX=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),kX=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),BX=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&PX(t,e,r);return kX(t,e),t}),cy=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(du,"__esModule",{value:!0});var DX=cy(Pe),jX=BX(de),FX=cy(dr),$i=cy(qe),_t=cy(Zs),Rr={};Rr.NewCommand=function(e,t){var r=_t.default.GetCsNameArgument(e,t),n=_t.default.GetArgCount(e,t),o=e.GetBrackets(t),i=e.GetArgument(t);_t.default.addMacro(e,r,Rr.Macro,[i,n,o])},Rr.NewEnvironment=function(e,t){var r=$i.default.trimSpaces(e.GetArgument(t)),n=_t.default.GetArgCount(e,t),o=e.GetBrackets(t),i=e.GetArgument(t),a=e.GetArgument(t);_t.default.addEnvironment(e,r,Rr.BeginEnv,[!0,i,a,n,o])},Rr.MacroDef=function(e,t){var r=_t.default.GetCSname(e,t),n=_t.default.GetTemplate(e,t,"\\"+r),o=e.GetArgument(t);n instanceof Array?_t.default.addMacro(e,r,Rr.MacroWithTemplate,[o].concat(n)):_t.default.addMacro(e,r,Rr.Macro,[o,n])},Rr.Let=function(e,t){var r=_t.default.GetCSname(e,t),n=e.GetNext();n==="="&&(e.i++,n=e.GetNext());var o=e.configuration.handlers;if(n==="\\"){t=_t.default.GetCSname(e,t);var i=o.get("delimiter").lookup("\\"+t);if(i){_t.default.addDelimiter(e,"\\"+r,i.char,i.attributes);return}var a=o.get("macro").applicable(t);if(!a)return;if(a instanceof jX.MacroMap){var s=a.lookup(t);_t.default.addMacro(e,r,s.func,s.args,s.symbol);return}i=a.lookup(t);var c=_t.default.disassembleSymbol(r,i),l=function(p,d){for(var h=[],f=2;f<arguments.length;f++)h[f-2]=arguments[f];var m=_t.default.assembleSymbol(h);return a.parser(p,m)};_t.default.addMacro(e,r,l,c);return}e.i++;var u=o.get("delimiter").lookup(n);if(u){_t.default.addDelimiter(e,"\\"+r,u.char,u.attributes);return}_t.default.addMacro(e,r,Rr.Macro,[n])},Rr.MacroWithTemplate=function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=parseInt(n,10);if(a){var s=[];if(e.GetNext(),o[0]&&!_t.default.MatchParam(e,o[0]))throw new DX.default("MismatchUseDef","Use of %1 doesn't match its definition",t);for(var c=0;c<a;c++)s.push(_t.default.GetParameter(e,t,o[c+1]));r=$i.default.substituteArgs(e,s,r)}e.string=$i.default.addArgs(e,r,e.string.slice(e.i)),e.i=0,$i.default.checkMaxMacros(e)},Rr.BeginEnv=function(e,t,r,n,o,i){if(t.getProperty("end")&&e.stack.env.closing===t.getName()){delete e.stack.env.closing;var a=e.string.slice(e.i);return e.string=n,e.i=0,e.Parse(),e.string=a,e.i=0,e.itemFactory.create("end").setProperty("name",t.getName())}if(o){var s=[];if(i!=null){var c=e.GetBrackets("\\begin{"+t.getName()+"}");s.push(c??i)}for(var l=s.length;l<o;l++)s.push(e.GetArgument("\\begin{"+t.getName()+"}"));r=$i.default.substituteArgs(e,s,r),n=$i.default.substituteArgs(e,[],n)}return e.string=$i.default.addArgs(e,r,e.string.slice(e.i)),e.i=0,e.itemFactory.create("beginEnv").setProperty("name",t.getName())},Rr.Macro=FX.default.Macro,du.default=Rr;var hu={},UX=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),HX=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(hu,"__esModule",{value:!0}),hu.BeginEnvItem=void 0;var eC=HX(Pe);hu.BeginEnvItem=(function(e){UX(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"beginEnv"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.checkItem=function(r){if(r.isKind("end")){if(r.getName()!==this.getName())throw new eC.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),r.getName());return[[this.factory.create("mml",this.toMml())],!0]}if(r.isKind("stop"))throw new eC.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return e.prototype.checkItem.call(this,r)},t})(nn.BaseItem);var tC=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),rC=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}),Iv;Object.defineProperty(wv,"__esModule",{value:!0}),wv.ConfigMacrosConfiguration=void 0;var nC=_e,oC=tt,iC=de,qX=rC(an),Pv=on,kv=rC(du),aC=hu,Bv="configmacros-map",Dv="configmacros-env-map";function GX(e){new iC.CommandMap(Bv,{},{}),new iC.EnvironmentMap(Dv,qX.default.environment,{},{}),e.append(nC.Configuration.local({handler:{macro:[Bv],environment:[Dv]},priority:3}))}function XX(e,t){VX(t),WX(t)}function VX(e){var t,r,n=e.parseOptions.handlers.retrieve(Bv),o=e.parseOptions.options.macros;try{for(var i=tC(Object.keys(o)),a=i.next();!a.done;a=i.next()){var s=a.value,c=typeof o[s]=="string"?[o[s]]:o[s],l=Array.isArray(c[2])?new Pv.Macro(s,kv.default.MacroWithTemplate,c.slice(0,2).concat(c[2])):new Pv.Macro(s,kv.default.Macro,c);n.add(s,l)}}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}function WX(e){var t,r,n=e.parseOptions.handlers.retrieve(Dv),o=e.parseOptions.options.environments;try{for(var i=tC(Object.keys(o)),a=i.next();!a.done;a=i.next()){var s=a.value;n.add(s,new Pv.Macro(s,kv.default.BeginEnv,[!0].concat(o[s])))}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}wv.ConfigMacrosConfiguration=nC.Configuration.create("configmacros",{init:GX,config:XX,items:(Iv={},Iv[aC.BeginEnvItem.prototype.kind]=aC.BeginEnvItem,Iv),options:{macros:(0,oC.expandable)({}),environments:(0,oC.expandable)({})}});var sC={};(function(e){var t=y&&y.__extends||(function(){var d=function(h,f){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(m,v){m.__proto__=v})||(function(m,v){for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(m[g]=v[g])}),d(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");d(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})(),r=y&&y.__read||(function(d,h){var f=typeof Symbol=="function"&&d[Symbol.iterator];if(!f)return d;var m=f.call(d),v,g=[],b;try{for(;(h===void 0||h-- >0)&&!(v=m.next()).done;)g.push(v.value)}catch(S){b={error:S}}finally{try{v&&!v.done&&(f=m.return)&&f.call(m)}finally{if(b)throw b.error}}return g}),n=y&&y.__importDefault||(function(d){return d&&d.__esModule?d:{default:d}}),o;Object.defineProperty(e,"__esModule",{value:!0}),e.EmpheqConfiguration=e.EmpheqMethods=e.EmpheqBeginItem=void 0;var i=_e,a=de,s=n(qe),c=n(Pe),l=pe,u=oy,p=(function(d){t(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(h.prototype,"kind",{get:function(){return"empheq-begin"},enumerable:!1,configurable:!0}),h.prototype.checkItem=function(f){return f.isKind("end")&&f.getName()===this.getName()&&this.setProperty("end",!1),d.prototype.checkItem.call(this,f)},h})(l.BeginItem);e.EmpheqBeginItem=p,e.EmpheqMethods={Empheq:function(d,h){if(d.stack.env.closing===h.getName()){delete d.stack.env.closing,d.Push(d.itemFactory.create("end").setProperty("name",d.stack.global.empheq)),d.stack.global.empheq="";var f=d.stack.Top();u.EmpheqUtil.adjustTable(f,d),d.Push(d.itemFactory.create("end").setProperty("name","empheq"))}else{s.default.checkEqnEnv(d),delete d.stack.global.eqnenv;var m=d.GetBrackets("\\begin{"+h.getName()+"}")||"",v=r((d.GetArgument("\\begin{"+h.getName()+"}")||"").split(/=/),2),g=v[0],b=v[1];if(!u.EmpheqUtil.checkEnv(g))throw new c.default("UnknownEnv",'Unknown environment "%1"',g);m&&h.setProperties(u.EmpheqUtil.splitOptions(m,{left:1,right:1})),d.stack.global.empheq=g,d.string="\\begin{"+g+"}"+(b?"{"+b+"}":"")+d.string.slice(d.i),d.i=0,d.Push(h)}},EmpheqMO:function(d,h,f){d.Push(d.create("token","mo",{},f))},EmpheqDelim:function(d,h){var f=d.GetDelimiter(h);d.Push(d.create("token","mo",{stretchy:!0,symmetric:!0},f))}},new a.EnvironmentMap("empheq-env",u.EmpheqUtil.environment,{empheq:["Empheq","empheq"]},e.EmpheqMethods),new a.CommandMap("empheq-macros",{empheqlbrace:["EmpheqMO","{"],empheqrbrace:["EmpheqMO","}"],empheqlbrack:["EmpheqMO","["],empheqrbrack:["EmpheqMO","]"],empheqlangle:["EmpheqMO","⟨"],empheqrangle:["EmpheqMO","⟩"],empheqlparen:["EmpheqMO","("],empheqrparen:["EmpheqMO",")"],empheqlvert:["EmpheqMO","|"],empheqrvert:["EmpheqMO","|"],empheqlVert:["EmpheqMO","‖"],empheqrVert:["EmpheqMO","‖"],empheqlfloor:["EmpheqMO","⌊"],empheqrfloor:["EmpheqMO","⌋"],empheqlceil:["EmpheqMO","⌈"],empheqrceil:["EmpheqMO","⌉"],empheqbiglbrace:["EmpheqMO","{"],empheqbigrbrace:["EmpheqMO","}"],empheqbiglbrack:["EmpheqMO","["],empheqbigrbrack:["EmpheqMO","]"],empheqbiglangle:["EmpheqMO","⟨"],empheqbigrangle:["EmpheqMO","⟩"],empheqbiglparen:["EmpheqMO","("],empheqbigrparen:["EmpheqMO",")"],empheqbiglvert:["EmpheqMO","|"],empheqbigrvert:["EmpheqMO","|"],empheqbiglVert:["EmpheqMO","‖"],empheqbigrVert:["EmpheqMO","‖"],empheqbiglfloor:["EmpheqMO","⌊"],empheqbigrfloor:["EmpheqMO","⌋"],empheqbiglceil:["EmpheqMO","⌈"],empheqbigrceil:["EmpheqMO","⌉"],empheql:"EmpheqDelim",empheqr:"EmpheqDelim",empheqbigl:"EmpheqDelim",empheqbigr:"EmpheqDelim"},e.EmpheqMethods),e.EmpheqConfiguration=i.Configuration.create("empheq",{handler:{macro:["empheq-macros"],environment:["empheq-env"]},items:(o={},o[p.prototype.kind]=p,o)})})(sC),ee(sC);var cC={},ly={},$X=(y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}))(du);new de.CommandMap("Newcommand-macros",{newcommand:"NewCommand",renewcommand:"NewCommand",newenvironment:"NewEnvironment",renewenvironment:"NewEnvironment",def:"MacroDef",let:"Let"},$X.default);var zX=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),KX=y&&y.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),JX=y&&y.__importStar||(function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&zX(t,e,r);return KX(t,e),t}),lC=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}),jv;Object.defineProperty(ly,"__esModule",{value:!0}),ly.NewcommandConfiguration=void 0;var uC=_e,pC=hu,zi=lC(Zs),dC=lC(an),Fv=JX(de),YX=function(e){new Fv.DelimiterMap(zi.default.NEW_DELIMITER,dC.default.delimiter,{}),new Fv.CommandMap(zi.default.NEW_COMMAND,{},{}),new Fv.EnvironmentMap(zi.default.NEW_ENVIRONMENT,dC.default.environment,{},{}),e.append(uC.Configuration.local({handler:{character:[],delimiter:[zi.default.NEW_DELIMITER],macro:[zi.default.NEW_DELIMITER,zi.default.NEW_COMMAND],environment:[zi.default.NEW_ENVIRONMENT]},priority:-1}))};ly.NewcommandConfiguration=uC.Configuration.create("newcommand",{handler:{macro:["Newcommand-macros"]},items:(jv={},jv[pC.BeginEnvItem.prototype.kind]=pC.BeginEnvItem,jv),options:{maxMacros:1e3},init:YX}),(function(e){var t=y&&y.__importDefault||(function(l){return l&&l.__esModule?l:{default:l}});Object.defineProperty(e,"__esModule",{value:!0}),e.ExtpfeilConfiguration=e.ExtpfeilMethods=void 0;var r=_e,n=de,o=Xi,i=t(Zs),a=ly,s=t(Pe);e.ExtpfeilMethods={},e.ExtpfeilMethods.xArrow=o.AmsMethods.xArrow,e.ExtpfeilMethods.NewExtArrow=function(l,u){var p=l.GetArgument(u),d=l.GetArgument(u),h=l.GetArgument(u);if(!p.match(/^\\([a-z]+|.)$/i))throw new s.default("NewextarrowArg1","First argument to %1 must be a control sequence name",u);if(!d.match(/^(\d+),(\d+)$/))throw new s.default("NewextarrowArg2","Second argument to %1 must be two integers separated by a comma",u);if(!h.match(/^(\d+|0x[0-9A-F]+)$/i))throw new s.default("NewextarrowArg3","Third argument to %1 must be a unicode character number",u);p=p.substr(1);var f=d.split(",");i.default.addMacro(l,p,e.ExtpfeilMethods.xArrow,[parseInt(h),parseInt(f[0]),parseInt(f[1])])},new n.CommandMap("extpfeil",{xtwoheadrightarrow:["xArrow",8608,12,16],xtwoheadleftarrow:["xArrow",8606,17,13],xmapsto:["xArrow",8614,6,7],xlongequal:["xArrow",61,7,7],xtofrom:["xArrow",8644,12,12],Newextarrow:"NewExtArrow"},e.ExtpfeilMethods);var c=function(l){a.NewcommandConfiguration.init(l)};e.ExtpfeilConfiguration=r.Configuration.create("extpfeil",{handler:{macro:["extpfeil"]},init:c})})(cC),ee(cC);var Uv={};Object.defineProperty(Uv,"__esModule",{value:!0}),Uv.GensymbConfiguration=void 0;var QX=_e,ZX=Ht,eV=de;function tV(e,t){var r=t.attributes||{};r.mathvariant=ZX.TexConstant.Variant.NORMAL,r.class="MathML-Unit";var n=e.create("token","mi",r,t.char);e.Push(n)}new eV.CharacterMap("gensymb-symbols",tV,{ohm:"Ω",degree:"°",celsius:"℃",perthousand:"‰",micro:"µ"}),Uv.GensymbConfiguration=QX.Configuration.create("gensymb",{handler:{macro:["gensymb-symbols"]}});var Hv={},qv={},rV=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(qv,"__esModule",{value:!0});var In=rV(Ye),fu={};fu.Href=function(e,t){var r=e.GetArgument(t),n=uy(e,t);In.default.setAttribute(n,"href",r),e.Push(n)},fu.Class=function(e,t){var r=e.GetArgument(t),n=uy(e,t),o=In.default.getAttribute(n,"class");o&&(r=o+" "+r),In.default.setAttribute(n,"class",r),e.Push(n)},fu.Style=function(e,t){var r=e.GetArgument(t),n=uy(e,t),o=In.default.getAttribute(n,"style");o&&(r.charAt(r.length-1)!==";"&&(r+=";"),r=o+" "+r),In.default.setAttribute(n,"style",r),e.Push(n)},fu.Id=function(e,t){var r=e.GetArgument(t),n=uy(e,t);In.default.setAttribute(n,"id",r),e.Push(n)};var uy=function(e,t){var r=e.ParseArg(t);if(!In.default.isInferred(r))return r;var n=In.default.getChildren(r);if(n.length===1)return n[0];var o=e.create("node","mrow");return In.default.copyChildren(r,o),In.default.copyAttributes(r,o),o};qv.default=fu;var nV=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.HtmlConfiguration=void 0;var oV=_e,iV=de,aV=nV(qv);new iV.CommandMap("html_macros",{href:"Href",class:"Class",style:"Style",cssId:"Id"},aV.default),Hv.HtmlConfiguration=oV.Configuration.create("html",{handler:{macro:["html_macros"]}});var Gv={},py={},mu={},sV=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),Xv=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(mu,"__esModule",{value:!0}),mu.MathtoolsUtil=void 0;var cV=pe,dy=Xv(qe),lV=Xv(Ut),hC=Xv(Pe),uV=on,pV=tt,dV=py,hV=Gv;mu.MathtoolsUtil={setDisplayLevel:function(e,t){if(t){var r=sV((0,pV.lookup)(t,{"\\displaystyle":[!0,0],"\\textstyle":[!1,0],"\\scriptstyle":[!1,1],"\\scriptscriptstyle":[!1,2]},[null,null]),2),n=r[0],o=r[1];n!==null&&(e.attributes.set("displaystyle",n),e.attributes.set("scriptlevel",o))}},checkAlignment:function(e,t){var r=e.stack.Top();if(r.kind!==cV.EqnArrayItem.prototype.kind)throw new hC.default("NotInAlignment","%1 can only be used in aligment environments",t);return r},addPairedDelims:function(e,t,r){e.handlers.retrieve(hV.PAIREDDELIMS).add(t,new uV.Macro(t,dV.MathtoolsMethods.PairedDelimiters,r))},spreadLines:function(e,t){if(e.isKind("mtable")){var r=e.attributes.get("rowspacing");if(r){var n=dy.default.dimen2em(t);r=r.split(/ /).map(function(o){return dy.default.Em(Math.max(0,dy.default.dimen2em(o)+n))}).join(" ")}else r=t;e.attributes.set("rowspacing",r)}},plusOrMinus:function(e,t){if(t=t.trim(),!t.match(/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)$/))throw new hC.default("NotANumber","Argument to %1 is not a number",e);return t.match(/^[-+]/)?t:"+"+t},getScript:function(e,t,r){var n=dy.default.trimSpaces(e.GetArgument(t));if(n==="")return e.create("node","none");var o=e.options.mathtools["prescript-".concat(r,"-format")];return o&&(n="".concat(o,"{").concat(n,"}")),new lV.default(n,e.stack.env,e.configuration).mml()}},(function(e){var t=y&&y.__assign||(function(){return t=Object.assign||(function(g){for(var b,S=1,E=arguments.length;S<E;S++){b=arguments[S];for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(g[x]=b[x])}return g}),t.apply(this,arguments)}),r=y&&y.__read||(function(g,b){var S=typeof Symbol=="function"&&g[Symbol.iterator];if(!S)return g;var E=S.call(g),x,O=[],A;try{for(;(b===void 0||b-- >0)&&!(x=E.next()).done;)O.push(x.value)}catch(M){A={error:M}}finally{try{x&&!x.done&&(S=E.return)&&S.call(E)}finally{if(A)throw A.error}}return O}),n=y&&y.__values||(function(g){var b=typeof Symbol=="function"&&Symbol.iterator,S=b&&g[b],E=0;if(S)return S.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&E>=g.length&&(g=void 0),{value:g&&g[E++],done:!g}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")}),o=y&&y.__importDefault||(function(g){return g&&g.__esModule?g:{default:g}});Object.defineProperty(e,"__esModule",{value:!0}),e.MathtoolsMethods=void 0;var i=o(qe),a=Xi,s=o(dr),c=o(Ut),l=o(Pe),u=o(Ye),p=ce,d=hr,h=tt,f=o(Zs),m=o(du),v=mu;e.MathtoolsMethods={MtMatrix:function(g,b,S,E){var x=g.GetBrackets("\\begin{".concat(b.getName(),"}"),"c");return e.MathtoolsMethods.Array(g,b,S,E,x)},MtSmallMatrix:function(g,b,S,E,x){return x||(x=g.GetBrackets("\\begin{".concat(b.getName(),"}"),g.options.mathtools["smallmatrix-align"])),e.MathtoolsMethods.Array(g,b,S,E,x,i.default.Em(1/3),".2em","S",1)},MtMultlined:function(g,b){var S,E="\\begin{".concat(b.getName(),"}"),x=g.GetBrackets(E,g.options.mathtools["multlined-pos"]||"c"),O=x?g.GetBrackets(E,""):"";x&&!x.match(/^[cbt]$/)&&(S=r([x,O],2),O=S[0],x=S[1]),g.Push(b);var A=g.itemFactory.create("multlined",g,b);return A.arraydef={displaystyle:!0,rowspacing:".5em",width:O||"auto",columnwidth:"100%"},i.default.setArrayAlign(A,x||"c")},HandleShove:function(g,b,S){var E=g.stack.Top();if(E.kind!=="multline"&&E.kind!=="multlined")throw new l.default("CommandInMultlined","%1 can only appear within the multline or multlined environments",b);if(E.Size())throw new l.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",b);E.setProperty("shove",S);var x=g.GetBrackets(b),O=g.ParseArg(b);if(x){var A=g.create("node","mrow",[]),M=g.create("node","mspace",[],{width:x});S==="left"?(A.appendChild(M),A.appendChild(O)):(A.appendChild(O),A.appendChild(M)),O=A}g.Push(O)},SpreadLines:function(g,b){var S,E;if(g.stack.env.closing===b.getName()){delete g.stack.env.closing;var x=g.stack.Pop(),O=x.toMml(),A=x.getProperty("spread");if(O.isInferred)try{for(var M=n(u.default.getChildren(O)),C=M.next();!C.done;C=M.next()){var w=C.value;v.MathtoolsUtil.spreadLines(w,A)}}catch(k){S={error:k}}finally{try{C&&!C.done&&(E=M.return)&&E.call(M)}finally{if(S)throw S.error}}else v.MathtoolsUtil.spreadLines(O,A);g.Push(O)}else{var A=g.GetDimen("\\begin{".concat(b.getName(),"}"));b.setProperty("spread",A),g.Push(b)}},Cases:function(g,b,S,E,x){var O=g.itemFactory.create("array").setProperty("casesEnv",b.getName());return O.arraydef={rowspacing:".2em",columnspacing:"1em",columnalign:"left"},x==="D"&&(O.arraydef.displaystyle=!0),O.setProperties({open:S,close:E}),g.Push(b),O},MathLap:function(g,b,S,E){var x=g.GetBrackets(b,"").trim(),O=g.create("node","mstyle",[g.create("node","mpadded",[g.ParseArg(b)],t({width:0},S==="r"?{}:{lspace:S==="l"?"-1width":"-.5width"}))],{"data-cramped":E});v.MathtoolsUtil.setDisplayLevel(O,x),g.Push(g.create("node","TeXAtom",[O]))},Cramped:function(g,b){var S=g.GetBrackets(b,"").trim(),E=g.ParseArg(b),x=g.create("node","mstyle",[E],{"data-cramped":!0});v.MathtoolsUtil.setDisplayLevel(x,S),g.Push(x)},MtLap:function(g,b,S){var E=i.default.internalMath(g,g.GetArgument(b),0),x=g.create("node","mpadded",E,{width:0});S!=="r"&&u.default.setAttribute(x,"lspace",S==="l"?"-1width":"-.5width"),g.Push(x)},MathMakeBox:function(g,b){var S=g.GetBrackets(b),E=g.GetBrackets(b,"c"),x=g.create("node","mpadded",[g.ParseArg(b)]);S&&u.default.setAttribute(x,"width",S);var O=(0,h.lookup)(E,{c:"center",r:"right"},"");O&&u.default.setAttribute(x,"data-align",O),g.Push(x)},MathMBox:function(g,b){g.Push(g.create("node","mrow",[g.ParseArg(b)]))},UnderOverBracket:function(g,b){var S=(0,d.length2em)(g.GetBrackets(b,".1em"),.1),E=g.GetBrackets(b,".2em"),x=g.GetArgument(b),O=r(b.charAt(1)==="o"?["over","accent","bottom"]:["under","accentunder","top"],3),A=O[0],M=O[1],C=O[2],w=(0,d.em)(S),k=new c.default(x,g.stack.env,g.configuration).mml(),L=new c.default(x,g.stack.env,g.configuration).mml(),D=g.create("node","mpadded",[g.create("node","mphantom",[L])],{style:"border: ".concat(w," solid; border-").concat(C,": none"),height:E,depth:0}),P=i.default.underOver(g,k,D,A,!0),F=u.default.getChildAt(u.default.getChildAt(P,0),0);u.default.setAttribute(F,M,!0),g.Push(P)},Aboxed:function(g,b){var S=v.MathtoolsUtil.checkAlignment(g,b);S.row.length%2===1&&S.row.push(g.create("node","mtd",[]));var E=g.GetArgument(b),x=g.string.substr(g.i);g.string=E+"&&\\endAboxed",g.i=0;var O=g.GetUpTo(b,"&"),A=g.GetUpTo(b,"&");g.GetUpTo(b,"\\endAboxed"),g.string=i.default.substituteArgs(g,[O,A],"\\rlap{\\boxed{#1{}#2}}\\kern.267em\\phantom{#1}&\\phantom{{}#2}\\kern.267em")+x,g.i=0},ArrowBetweenLines:function(g,b){var S=v.MathtoolsUtil.checkAlignment(g,b);if(S.Size()||S.row.length)throw new l.default("BetweenLines","%1 must be on a row by itself",b);var E=g.GetStar(),x=g.GetBrackets(b,"\\Updownarrow");E&&(S.EndEntry(),S.EndEntry());var O=E?"\\quad"+x:x+"\\quad",A=new c.default(O,g.stack.env,g.configuration).mml();g.Push(A),S.EndEntry(),S.EndRow()},VDotsWithin:function(g,b){var S=g.stack.Top(),E=S.getProperty("flushspaceabove")===S.table.length,x="\\mmlToken{mi}{}"+g.GetArgument(b)+"\\mmlToken{mi}{}",O=new c.default(x,g.stack.env,g.configuration).mml(),A=g.create("node","mpadded",[g.create("node","mpadded",[g.create("node","mo",[g.create("text","⋮")])],t({width:0,lspace:"-.5width"},E?{height:"-.6em",voffset:"-.18em"}:{})),g.create("node","mphantom",[O])],{lspace:".5width"});g.Push(A)},ShortVDotsWithin:function(g,b){var S=g.stack.Top(),E=g.GetStar();e.MathtoolsMethods.FlushSpaceAbove(g,"\\MTFlushSpaceAbove"),!E&&S.EndEntry(),e.MathtoolsMethods.VDotsWithin(g,"\\vdotswithin"),E&&S.EndEntry(),e.MathtoolsMethods.FlushSpaceBelow(g,"\\MTFlushSpaceBelow")},FlushSpaceAbove:function(g,b){var S=v.MathtoolsUtil.checkAlignment(g,b);S.setProperty("flushspaceabove",S.table.length),S.addRowSpacing("-"+g.options.mathtools.shortvdotsadjustabove)},FlushSpaceBelow:function(g,b){var S=v.MathtoolsUtil.checkAlignment(g,b);S.Size()&&S.EndEntry(),S.EndRow(),S.addRowSpacing("-"+g.options.mathtools.shortvdotsadjustbelow)},PairedDelimiters:function(g,b,S,E,x,O,A,M){x===void 0&&(x="#1"),O===void 0&&(O=1),A===void 0&&(A=""),M===void 0&&(M="");var C=g.GetStar(),w=C?"":g.GetBrackets(b),k=r(C?["\\left","\\right"]:w?[w+"l",w+"r"]:["",""],2),L=k[0],D=k[1],P=C?"\\middle":w||"";if(O){for(var F=[],G=F.length;G<O;G++)F.push(g.GetArgument(b));A=i.default.substituteArgs(g,F,A),x=i.default.substituteArgs(g,F,x),M=i.default.substituteArgs(g,F,M)}x=x.replace(/\\delimsize/g,P),g.string=[A,L,S,x,D,E,M,g.string.substr(g.i)].reduce(function(Q,U){return i.default.addArgs(g,Q,U)},""),g.i=0,i.default.checkMaxMacros(g)},DeclarePairedDelimiter:function(g,b){var S=f.default.GetCsNameArgument(g,b),E=g.GetArgument(b),x=g.GetArgument(b);v.MathtoolsUtil.addPairedDelims(g.configuration,S,[E,x])},DeclarePairedDelimiterX:function(g,b){var S=f.default.GetCsNameArgument(g,b),E=f.default.GetArgCount(g,b),x=g.GetArgument(b),O=g.GetArgument(b),A=g.GetArgument(b);v.MathtoolsUtil.addPairedDelims(g.configuration,S,[x,O,A,E])},DeclarePairedDelimiterXPP:function(g,b){var S=f.default.GetCsNameArgument(g,b),E=f.default.GetArgCount(g,b),x=g.GetArgument(b),O=g.GetArgument(b),A=g.GetArgument(b),M=g.GetArgument(b),C=g.GetArgument(b);v.MathtoolsUtil.addPairedDelims(g.configuration,S,[O,A,C,E,x,M])},CenterColon:function(g,b,S,E,x){E===void 0&&(E=!1),x===void 0&&(x=!1);var O=g.options.mathtools,A=g.create("token","mo",{},":");if(S&&(O.centercolon||E)){var M=O["centercolon-offset"];A=g.create("node","mpadded",[A],t({voffset:M,height:"+".concat(M),depth:"-".concat(M)},x?{width:O["thincolon-dw"],lspace:O["thincolon-dx"]}:{}))}g.Push(A)},Relation:function(g,b,S,E){g.options.mathtools["use-unicode"]&&E?g.Push(g.create("token","mo",{texClass:p.TEXCLASS.REL},E)):(S="\\mathrel{"+S.replace(/:/g,"\\MTThinColon").replace(/-/g,"\\mathrel{-}")+"}",g.string=i.default.addArgs(g,S,g.string.substr(g.i)),g.i=0)},NArrow:function(g,b,S,E){g.Push(g.create("node","TeXAtom",[g.create("token","mtext",{},S),g.create("node","mpadded",[g.create("node","mpadded",[g.create("node","menclose",[g.create("node","mspace",[],{height:".2em",depth:0,width:".4em"})],{notation:"updiagonalstrike","data-thickness":".05em","data-padding":0})],{width:0,lspace:"-.5width",voffset:E}),g.create("node","mphantom",[g.create("token","mtext",{},S)])],{width:0,lspace:"-.5width"})],{texClass:p.TEXCLASS.REL}))},SplitFrac:function(g,b,S){var E=g.ParseArg(b),x=g.ParseArg(b);g.Push(g.create("node","mstyle",[g.create("node","mfrac",[g.create("node","mstyle",[E,g.create("token","mi"),g.create("token","mspace",{width:"1em"})],{scriptlevel:0}),g.create("node","mstyle",[g.create("token","mspace",{width:"1em"}),g.create("token","mi"),x],{scriptlevel:0})],{linethickness:0,numalign:"left",denomalign:"right"})],{displaystyle:S,scriptlevel:0}))},XMathStrut:function(g,b){var S=g.GetBrackets(b),E=g.GetArgument(b);E=v.MathtoolsUtil.plusOrMinus(b,E),S=v.MathtoolsUtil.plusOrMinus(b,S||E),g.Push(g.create("node","TeXAtom",[g.create("node","mpadded",[g.create("node","mphantom",[g.create("token","mo",{stretchy:!1},"(")])],{width:0,height:E+"height",depth:S+"depth"})],{texClass:p.TEXCLASS.ORD}))},Prescript:function(g,b){var S=v.MathtoolsUtil.getScript(g,b,"sup"),E=v.MathtoolsUtil.getScript(g,b,"sub"),x=v.MathtoolsUtil.getScript(g,b,"arg");if(u.default.isType(S,"none")&&u.default.isType(E,"none")){g.Push(x);return}var O=g.create("node","mmultiscripts",[x]);u.default.getChildren(O).push(null,null),u.default.appendChildren(O,[g.create("node","mprescripts"),E,S]),O.setProperty("fixPrescript",!0),g.Push(O)},NewTagForm:function(g,b,S){S===void 0&&(S=!1);var E=g.tags;if(!("mtFormats"in E))throw new l.default("TagsNotMT","%1 can only be used with ams or mathtools tags",b);var x=g.GetArgument(b).trim();if(!x)throw new l.default("InvalidTagFormID","Tag form name can't be empty");var O=g.GetBrackets(b,""),A=g.GetArgument(b),M=g.GetArgument(b);if(!S&&E.mtFormats.has(x))throw new l.default("DuplicateTagForm","Duplicate tag form: %1",x);E.mtFormats.set(x,[A,M,O])},UseTagForm:function(g,b){var S=g.tags;if(!("mtFormats"in S))throw new l.default("TagsNotMT","%1 can only be used with ams or mathtools tags",b);var E=g.GetArgument(b).trim();if(!E){S.mtCurrent=null;return}if(!S.mtFormats.has(E))throw new l.default("UndefinedTagForm","Undefined tag form: %1",E);S.mtCurrent=S.mtFormats.get(E)},SetOptions:function(g,b){var S,E,x=g.options.mathtools;if(!x["allow-mathtoolsset"])throw new l.default("ForbiddenMathtoolsSet","%1 is disabled",b);var O={};Object.keys(x).forEach(function(L){L!=="pariedDelimiters"&&L!=="tagforms"&&L!=="allow-mathtoolsset"&&(O[L]=1)});var A=g.GetArgument(b),M=i.default.keyvalOptions(A,O,!0);try{for(var C=n(Object.keys(M)),w=C.next();!w.done;w=C.next()){var k=w.value;x[k]=M[k]}}catch(L){S={error:L}}finally{try{w&&!w.done&&(E=C.return)&&E.call(C)}finally{if(S)throw S.error}}},Array:s.default.Array,Macro:s.default.Macro,xArrow:a.AmsMethods.xArrow,HandleRef:a.AmsMethods.HandleRef,AmsEqnArray:a.AmsMethods.AmsEqnArray,MacroWithTemplate:m.default.MacroWithTemplate}})(py),ee(py);var fC=(y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}))(an),hy=de,mC=Ht,Vv=py;new hy.CommandMap("mathtools-macros",{shoveleft:["HandleShove",mC.TexConstant.Align.LEFT],shoveright:["HandleShove",mC.TexConstant.Align.RIGHT],xleftrightarrow:["xArrow",8596,10,10],xLeftarrow:["xArrow",8656,12,7],xRightarrow:["xArrow",8658,7,12],xLeftrightarrow:["xArrow",8660,12,12],xhookleftarrow:["xArrow",8617,10,5],xhookrightarrow:["xArrow",8618,5,10],xmapsto:["xArrow",8614,10,10],xrightharpoondown:["xArrow",8641,5,10],xleftharpoondown:["xArrow",8637,10,5],xrightleftharpoons:["xArrow",8652,10,10],xrightharpoonup:["xArrow",8640,5,10],xleftharpoonup:["xArrow",8636,10,5],xleftrightharpoons:["xArrow",8651,10,10],mathllap:["MathLap","l",!1],mathrlap:["MathLap","r",!1],mathclap:["MathLap","c",!1],clap:["MtLap","c"],textllap:["MtLap","l"],textrlap:["MtLap","r"],textclap:["MtLap","c"],cramped:"Cramped",crampedllap:["MathLap","l",!0],crampedrlap:["MathLap","r",!0],crampedclap:["MathLap","c",!0],crampedsubstack:["Macro","\\begin{crampedsubarray}{c}#1\\end{crampedsubarray}",1],mathmbox:"MathMBox",mathmakebox:"MathMakeBox",overbracket:"UnderOverBracket",underbracket:"UnderOverBracket",refeq:"HandleRef",MoveEqLeft:["Macro","\\hspace{#1em}&\\hspace{-#1em}",1,"2"],Aboxed:"Aboxed",ArrowBetweenLines:"ArrowBetweenLines",vdotswithin:"VDotsWithin",shortvdotswithin:"ShortVDotsWithin",MTFlushSpaceAbove:"FlushSpaceAbove",MTFlushSpaceBelow:"FlushSpaceBelow",DeclarePairedDelimiter:"DeclarePairedDelimiter",DeclarePairedDelimiterX:"DeclarePairedDelimiterX",DeclarePairedDelimiterXPP:"DeclarePairedDelimiterXPP",DeclarePairedDelimiters:"DeclarePairedDelimiter",DeclarePairedDelimitersX:"DeclarePairedDelimiterX",DeclarePairedDelimitersXPP:"DeclarePairedDelimiterXPP",centercolon:["CenterColon",!0,!0],ordinarycolon:["CenterColon",!1],MTThinColon:["CenterColon",!0,!0,!0],coloneqq:["Relation",":=","≔"],Coloneqq:["Relation","::=","⩴"],coloneq:["Relation",":-"],Coloneq:["Relation","::-"],eqqcolon:["Relation","=:","≕"],Eqqcolon:["Relation","=::"],eqcolon:["Relation","-:","∹"],Eqcolon:["Relation","-::"],colonapprox:["Relation",":\\approx"],Colonapprox:["Relation","::\\approx"],colonsim:["Relation",":\\sim"],Colonsim:["Relation","::\\sim"],dblcolon:["Relation","::","∷"],nuparrow:["NArrow","↑",".06em"],ndownarrow:["NArrow","↓",".25em"],bigtimes:["Macro","\\mathop{\\Large\\kern-.1em\\boldsymbol{\\times}\\kern-.1em}"],splitfrac:["SplitFrac",!1],splitdfrac:["SplitFrac",!0],xmathstrut:"XMathStrut",prescript:"Prescript",newtagform:["NewTagForm",!1],renewtagform:["NewTagForm",!0],usetagform:"UseTagForm",adjustlimits:["MacroWithTemplate","\\mathop{{#1}\\vphantom{{#3}}}_{{#2}\\vphantom{{#4}}}\\mathop{{#3}\\vphantom{{#1}}}_{{#4}\\vphantom{{#2}}}",4,,"_",,"_"],mathtoolsset:"SetOptions"},Vv.MathtoolsMethods),new hy.EnvironmentMap("mathtools-environments",fC.default.environment,{dcases:["Array",null,"\\{","","ll",null,".2em","D"],rcases:["Array",null,"","\\}","ll",null,".2em"],drcases:["Array",null,"","\\}","ll",null,".2em","D"],"dcases*":["Cases",null,"{","","D"],"rcases*":["Cases",null,"","}"],"drcases*":["Cases",null,"","}","D"],"cases*":["Cases",null,"{",""],"matrix*":["MtMatrix",null,null,null],"pmatrix*":["MtMatrix",null,"(",")"],"bmatrix*":["MtMatrix",null,"[","]"],"Bmatrix*":["MtMatrix",null,"\\{","\\}"],"vmatrix*":["MtMatrix",null,"\\vert","\\vert"],"Vmatrix*":["MtMatrix",null,"\\Vert","\\Vert"],"smallmatrix*":["MtSmallMatrix",null,null,null],psmallmatrix:["MtSmallMatrix",null,"(",")","c"],"psmallmatrix*":["MtSmallMatrix",null,"(",")"],bsmallmatrix:["MtSmallMatrix",null,"[","]","c"],"bsmallmatrix*":["MtSmallMatrix",null,"[","]"],Bsmallmatrix:["MtSmallMatrix",null,"\\{","\\}","c"],"Bsmallmatrix*":["MtSmallMatrix",null,"\\{","\\}"],vsmallmatrix:["MtSmallMatrix",null,"\\vert","\\vert","c"],"vsmallmatrix*":["MtSmallMatrix",null,"\\vert","\\vert"],Vsmallmatrix:["MtSmallMatrix",null,"\\Vert","\\Vert","c"],"Vsmallmatrix*":["MtSmallMatrix",null,"\\Vert","\\Vert"],crampedsubarray:["Array",null,null,null,null,"0em","0.1em","S'",1],multlined:"MtMultlined",spreadlines:["SpreadLines",!0],lgathered:["AmsEqnArray",null,null,null,"l",null,".5em","D"],rgathered:["AmsEqnArray",null,null,null,"r",null,".5em","D"]},Vv.MathtoolsMethods),new hy.DelimiterMap("mathtools-delimiters",fC.default.delimiter,{"\\lparen":"(","\\rparen":")"}),new hy.CommandMap("mathtools-characters",{":":["CenterColon",!0]},Vv.MathtoolsMethods);var fy={},fV=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),mV=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),yV=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),gV=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(fy,"__esModule",{value:!0}),fy.MathtoolsTagFormat=void 0;var bV=gV(Pe),Wv=On,yC=0;function vV(e,t){var r=t.parseOptions.options.tags;r!=="base"&&e.tags.hasOwnProperty(r)&&Wv.TagsFactory.add(r,e.tags[r]);var n=(function(i){fV(a,i);function a(){var s,c,l=i.call(this)||this;l.mtFormats=new Map,l.mtCurrent=null;var u=t.parseOptions.options.mathtools.tagforms;try{for(var p=mV(Object.keys(u)),d=p.next();!d.done;d=p.next()){var h=d.value;if(!Array.isArray(u[h])||u[h].length!==3)throw new bV.default("InvalidTagFormDef",'The tag form definition for "%1" should be an array fo three strings',h);l.mtFormats.set(h,u[h])}}catch(f){s={error:f}}finally{try{d&&!d.done&&(c=p.return)&&c.call(p)}finally{if(s)throw s.error}}return l}return a.prototype.formatTag=function(s){if(this.mtCurrent){var c=yV(this.mtCurrent,3),l=c[0],u=c[1],p=c[2];return p?"".concat(l).concat(p,"{").concat(s,"}").concat(u):"".concat(l).concat(s).concat(u)}return i.prototype.formatTag.call(this,s)},a})(Wv.TagsFactory.create(t.parseOptions.options.tags).constructor);yC++;var o="MathtoolsTags-"+yC;Wv.TagsFactory.add(o,n),t.parseOptions.options.tags=o}fy.MathtoolsTagFormat=vV;var my={},SV=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),EV=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(my,"__esModule",{value:!0}),my.MultlinedItem=void 0;var xV=Gi,ec=EV(Ye),gC=Ht;my.MultlinedItem=(function(e){SV(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return"multlined"},enumerable:!1,configurable:!0}),t.prototype.EndTable=function(){if((this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.table.length>1){var r=this.factory.configuration.options.mathtools,n=r.multlinegap,o=r["firstline-afterskip"]||n,i=r["lastline-preskip"]||n,a=ec.default.getChildren(this.table[0])[0];ec.default.getAttribute(a,"columnalign")!==gC.TexConstant.Align.RIGHT&&a.appendChild(this.create("node","mspace",[],{width:o}));var s=ec.default.getChildren(this.table[this.table.length-1])[0];if(ec.default.getAttribute(s,"columnalign")!==gC.TexConstant.Align.LEFT){var c=ec.default.getChildren(s)[0];c.childNodes.unshift(null);var l=this.create("node","mspace",[],{width:i});ec.default.setChild(c,0,l)}}e.prototype.EndTable.call(this)},t})(xV.MultlineItem),(function(e){var t=y&&y.__values||(function(f){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&f[m],g=0;if(v)return v.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&g>=f.length&&(f=void 0),{value:f&&f[g++],done:!f}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")}),r=y&&y.__importDefault||(function(f){return f&&f.__esModule?f:{default:f}}),n;Object.defineProperty(e,"__esModule",{value:!0}),e.MathtoolsConfiguration=e.fixPrescripts=e.PAIREDDELIMS=void 0;var o=_e,i=de,a=r(Ye),s=tt,c=mu,l=fy,u=my;e.PAIREDDELIMS="mathtools-paired-delims";function p(f){new i.CommandMap(e.PAIREDDELIMS,{},{}),f.append(o.Configuration.local({handler:{macro:[e.PAIREDDELIMS]},priority:-5}))}function d(f,m){var v,g,b=m.parseOptions,S=b.options.mathtools.pairedDelimiters;try{for(var E=t(Object.keys(S)),x=E.next();!x.done;x=E.next()){var O=x.value;c.MathtoolsUtil.addPairedDelims(b,O,S[O])}}catch(A){v={error:A}}finally{try{x&&!x.done&&(g=E.return)&&g.call(E)}finally{if(v)throw v.error}}(0,l.MathtoolsTagFormat)(f,m)}function h(f){var m,v,g,b,S,E,x=f.data;try{for(var O=t(x.getList("mmultiscripts")),A=O.next();!A.done;A=O.next()){var M=A.value;if(M.getProperty("fixPrescript")){var C=a.default.getChildren(M),w=0;try{for(var k=(g=void 0,t([1,2])),L=k.next();!L.done;L=k.next()){var D=L.value;C[D]||(a.default.setChild(M,D,x.nodeFactory.create("node","none")),w++)}}catch(G){g={error:G}}finally{try{L&&!L.done&&(b=k.return)&&b.call(k)}finally{if(g)throw g.error}}try{for(var P=(S=void 0,t([4,5])),F=P.next();!F.done;F=P.next()){var D=F.value;a.default.isType(C[D],"mrow")&&a.default.getChildren(C[D]).length===0&&a.default.setChild(M,D,x.nodeFactory.create("node","none"))}}catch(G){S={error:G}}finally{try{F&&!F.done&&(E=P.return)&&E.call(P)}finally{if(S)throw S.error}}w===2&&C.splice(1,2)}}}catch(G){m={error:G}}finally{try{A&&!A.done&&(v=O.return)&&v.call(O)}finally{if(m)throw m.error}}}e.fixPrescripts=h,e.MathtoolsConfiguration=o.Configuration.create("mathtools",{handler:{macro:["mathtools-macros","mathtools-delimiters"],environment:["mathtools-environments"],delimiter:["mathtools-delimiters"],character:["mathtools-characters"]},items:(n={},n[u.MultlinedItem.prototype.kind]=u.MultlinedItem,n),init:p,config:d,postprocessors:[[h,-6]],options:{mathtools:{multlinegap:"1em","multlined-pos":"c","firstline-afterskip":"","lastline-preskip":"","smallmatrix-align":"c",shortvdotsadjustabove:".2em",shortvdotsadjustbelow:".2em",centercolon:!1,"centercolon-offset":".04em","thincolon-dx":"-.04em","thincolon-dw":"-.08em","use-unicode":!1,"prescript-sub-format":"","prescript-sup-format":"","prescript-arg-format":"","allow-mathtoolsset":!0,pairedDelimiters:(0,s.expandable)({}),tagforms:(0,s.expandable)({})}}})})(Gv),ee(Gv);var $v={},yy={};Object.defineProperty(yy,"__esModule",{value:!0}),yy.mhchemParser=void 0,yy.mhchemParser=(function(){function e(){}return e.toTex=function(t,r){return Qe.go(K.go(t,r),r!=="tex")},e})();function yr(e){var t,r,n={};for(t in e)for(r in e[t]){var o=r.split("|");e[t][r].stateArray=o;for(var i=0;i<o.length;i++)n[o[i]]=[]}for(t in e)for(r in e[t])for(var o=e[t][r].stateArray||[],i=0;i<o.length;i++){var a=e[t][r];a.action_=[].concat(a.action_);for(var s=0;s<a.action_.length;s++)typeof a.action_[s]=="string"&&(a.action_[s]={type_:a.action_[s]});for(var c=t.split("|"),l=0;l<c.length;l++)if(o[i]==="*"){var u=void 0;for(u in n)n[u].push({pattern:c[l],task:a})}else n[o[i]].push({pattern:c[l],task:a})}return n}var K={go:function(e,t){if(!e)return[];t===void 0&&(t="ce");var r="0",n={};n.parenthesisLevel=0,e=e.replace(/\n/g," "),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),e=e.replace(/[\u2026]/g,"...");for(var o,i=10,a=[];;){o!==e?(i=10,o=e):i--;var s=K.stateMachines[t],c=s.transitions[r]||s.transitions["*"];e:for(var l=0;l<c.length;l++){var u=K.patterns.match_(c[l].pattern,e);if(u){for(var p=c[l].task,d=0;d<p.action_.length;d++){var h=void 0;if(s.actions[p.action_[d].type_])h=s.actions[p.action_[d].type_](n,u.match_,p.action_[d].option);else if(K.actions[p.action_[d].type_])h=K.actions[p.action_[d].type_](n,u.match_,p.action_[d].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+p.action_[d].type_+")"];K.concatArray(a,h)}if(r=p.nextState||r,e.length>0){if(p.revisit||(e=u.remainder),!p.toContinue)break e}else return a}}if(i<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Array.isArray(t))for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"(-)(9)^(-9)":/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/,"state of aggregation $":function(e){var t=K.patterns.findObserveGroups(e,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(t&&t.remainder.match(/^($|[\s,;\)\]\}])/))return t;var r=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r?{match_:r[0],remainder:e.substr(r[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". __* ":/^([.\u22C5\u00B7\u2022]|[*])\s*/,"...":/^\.\.\.(?=$|[^.])/,"^{(...)}":function(e){return K.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return K.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return K.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return K.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return K.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return K.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return K.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return K.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}^":/^\{\}(?=\^)/,"{}":/^\{\}/,"{...}":function(e){return K.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return K.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return K.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$__$(...)$":function(e){return K.patterns.findObserveGroups(e,"${","","","}$")||K.patterns.findObserveGroups(e,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return K.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return K.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return K.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return K.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return K.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return K.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return K.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return K.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}":function(e){return K.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}":function(e){return K.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")||K.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return K.patterns.findObserveGroups(e,"\\ce{","","","}")},"\\pu{(...)}":function(e){return K.patterns.findObserveGroups(e,"\\pu{","","","}")},oxidation$:/^(?:[+-][IVX]+|(?:\\pm|\$\\pm\$|\+-|\+\/-)\s*0)$/,"d-oxidation$":/^(?:[+-]?[IVX]+|(?:\\pm|\$\\pm\$|\+-|\+\/-)\s*0)$/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/);if(t)return{match_:t[0],remainder:e.substr(t[0].length)};var r=K.patterns.findObserveGroups(e,"","$","$","");return r&&(t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),t)?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,n,o,i,a,s,c,l){var u=function(g,b){if(typeof b=="string")return g.indexOf(b)!==0?null:b;var S=g.match(b);return S?S[0]:null},p=function(g,b,S){for(var E=0;b<g.length;){var x=g.charAt(b),O=u(g.substr(b),S);if(O!==null&&E===0)return{endMatchBegin:b,endMatchEnd:b+O.length};if(x==="{")E++;else if(x==="}"){if(E===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];E--}b++}return null},d=u(e,t);if(d===null||(e=e.substr(d.length),d=u(e,r),d===null))return null;var h=p(e,d.length,n||o);if(h===null)return null;var f=e.substring(0,n?h.endMatchEnd:h.endMatchBegin);if(i||a){var m=this.findObserveGroups(e.substr(h.endMatchEnd),i,a,s,c);if(m===null)return null;var v=[f,m.match_];return{match_:l?v.join(""):v,remainder:m.remainder}}else return{match_:f,remainder:e.substr(h.endMatchEnd)}},match_:function(e,t){var r=K.patterns.patterns[e];if(r===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if(typeof r=="function")return K.patterns.patterns[e](t);var n=t.match(r);return n?n.length>2?{match_:n.slice(1),remainder:t.substr(n[0].length)}:{match_:n[1]||n[0],remainder:t.substr(n[0].length)}:null}},actions:{"a=":function(e,t){e.a=(e.a||"")+t},"b=":function(e,t){e.b=(e.b||"")+t},"p=":function(e,t){e.p=(e.p||"")+t},"o=":function(e,t){e.o=(e.o||"")+t},"o=+p1":function(e,t,r){e.o=(e.o||"")+r},"q=":function(e,t){e.q=(e.q||"")+t},"d=":function(e,t){e.d=(e.d||"")+t},"rm=":function(e,t){e.rm=(e.rm||"")+t},"text=":function(e,t){e.text_=(e.text_||"")+t},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},write:function(e,t,r){return r},rm:function(e,t){return{type_:"rm",p1:t}},text:function(e,t){return K.go(t,"text")},"tex-math":function(e,t){return K.go(t,"tex-math")},"tex-math tight":function(e,t){return K.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t}},ce:function(e,t){return K.go(t,"ce")},pu:function(e,t){return K.go(t,"pu")},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var n=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return n[1]=n[1].replace(/\$/g,""),r.push({type_:"frac",p1:n[1],p2:n[2]}),n[3]&&(n[3]=n[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:n[3]})),r},"9,9":function(e,t){return K.go(t,"9,9")}},stateMachines:{tex:{transitions:yr({empty:{0:{action_:"copy"}},"\\ce{(...)}":{0:{action_:[{type_:"write",option:"{"},"ce",{type_:"write",option:"}"}]}},"\\pu{(...)}":{0:{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},else:{0:{action_:"copy"}}}),actions:{}},ce:{transitions:yr({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{action_:[]}},space:{a:{action_:[],nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". __* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{action_:[]}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}^":{"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"tinySkip"}],nextState:"1"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}],nextState:"3"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[1-9][0-9]*$/)){var n=e.d;e.d=void 0,r=this.output(e),r.push({type_:"tinySkip"}),e.b=n}else r=this.output(e);return K.actions["o="](e,t),r},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var r=[];return K.concatArray(r,this.output(e)),K.concatArray(r,K.actions.bond(e,t,"-")),r}else{e.d=t;return}},"- after o/d":function(e,t,r){var n=K.patterns.match_("orbital",e.o||""),o=K.patterns.match_("one lowercase greek letter $",e.o||""),i=K.patterns.match_("one lowercase latin letter $",e.o||""),a=K.patterns.match_("$one lowercase latin letter$ $",e.o||""),s=t==="-"&&(n&&n.remainder===""||o||i||a);s&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!n&&i&&(e.o="$"+e.o+"$");var c=[];return s?(K.concatArray(c,this.output(e)),c.push({type_:"hyphen"})):(n=K.patterns.match_("digits",e.d||""),r&&n&&n.remainder===""?(K.concatArray(c,K.actions["d="](e,t)),K.concatArray(c,this.output(e))):(K.concatArray(c,this.output(e)),K.concatArray(c,K.actions.bond(e,t,"-")))),c},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:K.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,"");return r!==t&&e.parenthesisLevel===0?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var n;if(!e.r)n=[],!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r||(e.sb&&n.push({type_:"entitySkip"}),!e.o&&!e.q&&!e.d&&!e.b&&!e.p&&r!==2?(e.o=e.a,e.a=void 0):!e.o&&!e.q&&!e.d&&(e.b||e.p)?(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):e.o&&e.dType==="kv"&&K.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&e.dType==="kv"&&!e.q&&(e.dType=void 0),n.push({type_:"chemfive",a:K.go(e.a,"a"),b:K.go(e.b,"bd"),p:K.go(e.p,"pq"),o:K.go(e.o,"o"),q:K.go(e.q,"pq"),d:K.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType}));else{var o=void 0;e.rdt==="M"?o=K.go(e.rd,"tex-math"):e.rdt==="T"?o=[{type_:"text",p1:e.rd||""}]:o=K.go(e.rd,"ce");var i=void 0;e.rqt==="M"?i=K.go(e.rq,"tex-math"):e.rqt==="T"?i=[{type_:"text",p1:e.rq||""}]:i=K.go(e.rq,"ce"),n={type_:"arrow",r:e.r,rd:o,rq:i}}for(var a in e)a!=="parenthesisLevel"&&a!=="beginsWithBond"&&delete e[a];return n},"oxidation-output":function(e,t){var r=["{"];return K.concatArray(r,K.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:K.go(t[0],"ce"),p2:K.go(t[1],"ce")}},"overset-output":function(e,t){return{type_:"overset",p1:K.go(t[0],"ce"),p2:K.go(t[1],"ce")}},"underset-output":function(e,t){return{type_:"underset",p1:K.go(t[0],"ce"),p2:K.go(t[1],"ce")}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:K.go(t[0],"ce"),p2:K.go(t[1],"ce")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:K.go(t[1],"ce")}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:yr({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:yr({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:[{type_:"write",option:"{"},"text",{type_:"write",option:"}"}]}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:yr({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e)delete e[r];return t}}}},pq:{transitions:yr({empty:{"*":{action_:[]}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{action_:[],nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{action_:[],nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"!f",revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:K.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:K.go(t[1],"pq")}}}},bd:{transitions:yr({empty:{"*":{action_:[]}},x$:{0:{action_:[],nextState:"!f",revisit:!0}},formula$:{0:{action_:[],nextState:"f",revisit:!0}},else:{0:{action_:[],nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:K.go(t[1],"bd")}}}},oxidation:{transitions:yr({empty:{"*":{action_:"roman-numeral"}},"pm-operator":{"*":{action_:{type_:"o=+p1",option:"\\pm"}}},else:{"*":{action_:"o="}}}),actions:{"roman-numeral":function(e){return{type_:"roman numeral",p1:e.o||""}}}},"tex-math":{transitions:yr({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"tex-math tight":{transitions:yr({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"9,9":{transitions:yr({empty:{"*":{action_:[]}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:yr({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{action_:[]}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),t[1]&&(K.concatArray(r,K.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?K.concatArray(r,K.go(t[2],"pu-9,9")):r.push(t[2])),(t[3]||t[4])&&(t[3]==="e"||t[4]==="*"?r.push({type_:"cdot"}):r.push({type_:"times"}))),t[5]&&r.push("10^{"+t[5]+"}"),r},"number^":function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),K.concatArray(r,K.go(t[1],"pu-9,9")),r.push("^{"+t[2]+"}"),r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,r=K.patterns.match_("{(...)}",e.d||"");r&&r.remainder===""&&(e.d=r.match_);var n=K.patterns.match_("{(...)}",e.q||"");if(n&&n.remainder===""&&(e.q=n.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var o={d:K.go(e.d,"pu"),q:K.go(e.q,"pu")};e.o==="//"?t={type_:"pu-frac",p1:o.d,p2:o.q}:(t=o.d,o.d.length>1||o.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),K.concatArray(t,o.q))}else t=K.go(e.d,"pu-2");for(var i in e)delete e[i];return t}}},"pu-2":{transitions:yr({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=K.patterns.match_("{(...)}",e.rm||"");r&&r.remainder===""?t=K.go(r.match_,"pu"):t={type_:"rm",p1:e.rm}}for(var n in e)delete e[n];return t}}},"pu-9,9":{transitions:yr({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length%3;r===0&&(r=3);for(var n=e.text_.length-3;n>0;n-=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var o in e)delete e[o];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length-3,n=void 0;for(n=0;n<r;n+=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(n))}else t.push(e.text_);for(var o in e)delete e[o];return t}}}}},Qe={go:function(e,t){if(!e)return"";for(var r="",n=!1,o=0;o<e.length;o++){var i=e[o];typeof i=="string"?r+=i:(r+=Qe._go2(i),i.type_==="1st-level escape"&&(n=!0))}return t&&!n&&r&&(r="{"+r+"}"),r},_goInner:function(e){return Qe.go(e,!1)},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:Qe._goInner(e.a),b:Qe._goInner(e.b),p:Qe._goInner(e.p),o:Qe._goInner(e.o),q:Qe._goInner(e.q),d:Qe._goInner(e.d)};r.a&&(r.a.match(/^[+\-]/)&&(r.a="{"+r.a+"}"),t+=r.a+"\\,"),(r.b||r.p)&&(t+="{\\vphantom{A}}",t+="^{\\hphantom{"+(r.b||"")+"}}_{\\hphantom{"+(r.p||"")+"}}",t+="\\mkern-1.5mu",t+="{\\vphantom{A}}",t+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(r.b||"")+"}}",t+="_{\\vphantom{2}\\llap{\\smash[t]{"+(r.p||"")+"}}}"),r.o&&(r.o.match(/^[+\-]/)&&(r.o="{"+r.o+"}"),t+=r.o),e.dType==="kv"?((r.d||r.q)&&(t+="{\\vphantom{A}}"),r.d&&(t+="^{"+r.d+"}"),r.q&&(t+="_{\\smash[t]{"+r.q+"}}")):e.dType==="oxidation"?(r.d&&(t+="{\\vphantom{A}}",t+="^{"+r.d+"}"),r.q&&(t+="{\\vphantom{A}}",t+="_{\\smash[t]{"+r.q+"}}")):(r.q&&(t+="{\\vphantom{A}}",t+="_{\\smash[t]{"+r.q+"}}"),r.d&&(t+="{\\vphantom{A}}",t+="^{"+r.d+"}"));break;case"rm":t="\\mathrm{"+e.p1+"}";break;case"text":e.p1.match(/[\^_]/)?(e.p1=e.p1.replace(" ","~").replace("-","\\text{-}"),t="\\mathrm{"+e.p1+"}"):t="\\text{"+e.p1+"}";break;case"roman numeral":t="\\mathrm{"+e.p1+"}";break;case"state of aggregation":t="\\mskip2mu "+Qe._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+Qe._goInner(e.p1);break;case"bond":if(t=Qe._getBond(e.kind_),!t)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e.kind_+")"];break;case"frac":var n="\\frac{"+e.p1+"}{"+e.p2+"}";t="\\mathchoice{\\textstyle"+n+"}{"+n+"}{"+n+"}{"+n+"}";break;case"pu-frac":var o="\\frac{"+Qe._goInner(e.p1)+"}{"+Qe._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+o+"}{"+o+"}{"+o+"}{"+o+"}";break;case"tex-math":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+Qe._goInner(e.p1)+"}{"+Qe._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+Qe._goInner(e.p1)+"}{"+Qe._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+Qe._goInner(e.p1)+"}{"+Qe._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+Qe._goInner(e.p1)+"}_{"+Qe._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+Qe._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var i={rd:Qe._goInner(e.rd),rq:Qe._goInner(e.rq)},a=Qe._getArrow(e.r);i.rd||i.rq?e.r==="<=>"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<-->"?(a="\\long"+a,i.rd&&(a="\\overset{"+i.rd+"}{"+a+"}"),i.rq&&(e.r==="<-->"?a="\\underset{\\lower2mu{"+i.rq+"}}{"+a+"}":a="\\underset{\\lower6mu{"+i.rq+"}}{"+a+"}"),a=" {}\\mathrel{"+a+"}{} "):(i.rq&&(a+="[{"+i.rq+"}]"),a+="{"+i.rd+"}",a=" {}\\mathrel{\\x"+a+"}{} "):a=" {}\\mathrel{\\long"+a+"}{} ",t=a;break;case"operator":t=Qe._getOperator(e.kind_);break;case"1st-level escape":t=e.p1+" ";break;case"space":t=" ";break;case"tinySkip":t="\\mkern2mu";break;case"entitySkip":t="~";break;case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":return"rightarrow";case"→":return"rightarrow";case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"⇌":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}},bC=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty($v,"__esModule",{value:!0}),$v.MhchemConfiguration=void 0;var MV=_e,OV=de,AV=bC(Pe),TV=bC(dr),CV=Xi,NV=yy,gy={};gy.Macro=TV.default.Macro,gy.xArrow=CV.AmsMethods.xArrow,gy.Machine=function(e,t,r){var n=e.GetArgument(t),o;try{o=NV.mhchemParser.toTex(n,r)}catch(i){throw new AV.default(i[0],i[1])}e.string=o+e.string.substr(e.i),e.i=0},new OV.CommandMap("mhchem",{ce:["Machine","ce"],pu:["Machine","pu"],longrightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longRightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{\\leftharpoondown}}"],longLeftrightharpoons:["Macro","\\stackrel{\\textstyle\\vphantom{{-}}{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longleftrightarrows:["Macro","\\stackrel{\\longrightarrow}{\\smash{\\longleftarrow}\\Rule{0px}{.25em}{0px}}"],tripledash:["Macro","\\vphantom{-}\\raise2mu{\\kern2mu\\tiny\\text{-}\\kern1mu\\text{-}\\kern1mu\\text{-}\\kern2mu}"],xleftrightarrow:["xArrow",8596,6,6],xrightleftharpoons:["xArrow",8652,5,7],xRightleftharpoons:["xArrow",8652,5,7],xLeftrightharpoons:["xArrow",8652,5,7]},gy),$v.MhchemConfiguration=MV.Configuration.create("mhchem",{handler:{macro:["mhchem"]}});var zv={};Object.defineProperty(zv,"__esModule",{value:!0}),zv.NoErrorsConfiguration=void 0;var _V=_e;function wV(e,t,r,n){var o=e.create("token","mtext",{},n.replace(/\n/g," "));return e.create("node","merror",[o],{"data-mjx-error":t,title:t})}zv.NoErrorsConfiguration=_V.Configuration.create("noerrors",{nodes:{error:wV}});var Kv={},RV=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.NoUndefinedConfiguration=void 0;var LV=_e;function IV(e,t){var r,n,o=e.create("text","\\"+t),i=e.options.noundefined||{},a={};try{for(var s=RV(["color","background","size"]),c=s.next();!c.done;c=s.next()){var l=c.value;i[l]&&(a["math"+l]=i[l])}}catch(u){r={error:u}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}e.Push(e.create("node","mtext",[],a,o))}Kv.NoUndefinedConfiguration=LV.Configuration.create("noundefined",{fallback:{macro:IV},options:{noundefined:{color:"red",background:"",size:""}},priority:3});var Jv={},by={},PV=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Yv=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(by,"__esModule",{value:!0}),by.AutoOpen=void 0;var vC=nn,kV=Yv(qe),BV=Yv(Ye),DV=Yv(Ut);by.AutoOpen=(function(e){PV(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.openCount=0,r}return Object.defineProperty(t.prototype,"kind",{get:function(){return"auto open"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.toMml=function(){var r=this.factory.configuration.parser,n=this.getProperty("right");if(this.getProperty("smash")){var o=e.prototype.toMml.call(this),i=r.create("node","mpadded",[o],{height:0,depth:0});this.Clear(),this.Push(r.create("node","TeXAtom",[i]))}n&&this.Push(new DV.default(n,r.stack.env,r.configuration).mml());var a=kV.default.fenced(this.factory.configuration,this.getProperty("open"),e.prototype.toMml.call(this),this.getProperty("close"),this.getProperty("big"));return BV.default.removeProperties(a,"open","close","texClass"),a},t.prototype.checkItem=function(r){if(r.isKind("mml")&&r.Size()===1){var n=r.toMml();n.isKind("mo")&&n.getText()===this.getProperty("open")&&this.openCount++}var o=r.getProperty("autoclose");return o&&o===this.getProperty("close")&&!this.openCount--?this.getProperty("ignore")?(this.Clear(),[[],!0]):[[this.toMml()],!0]:e.prototype.checkItem.call(this,r)},t.errors=Object.assign(Object.create(vC.BaseItem.errors),{stop:["ExtraOrMissingDelims","Extra open or missing close delimiter"]}),t})(vC.BaseItem);var Qv={},jV=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),yu=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(Qv,"__esModule",{value:!0});var Zv=yu(dr),Gt=yu(Ut),tc=yu(Pe),e2=ce,gu=yu(qe),t2=yu(Ye),FV=Rs,Ge={},SC={"(":")","[":"]","{":"}","|":"|"},EC=/^(b|B)i(g{1,2})$/;Ge.Quantity=function(e,t,r,n,o,i,a){r===void 0&&(r="("),n===void 0&&(n=")"),o===void 0&&(o=!1),i===void 0&&(i=""),a===void 0&&(a="");var s=o?e.GetStar():!1,c=e.GetNext(),l=e.i,u=null;if(c==="\\"){if(e.i++,u=e.GetCS(),!u.match(EC)){var p=e.create("node","mrow");e.Push(gu.default.fenced(e.configuration,r,p,n)),e.i=l;return}c=e.GetNext()}var d=SC[c];if(o&&c!=="{")throw new tc.default("MissingArgFor","Missing argument for %1",e.currentCS);if(!d){var p=e.create("node","mrow");e.Push(gu.default.fenced(e.configuration,r,p,n)),e.i=l;return}if(i){var h=e.create("token","mi",{texClass:e2.TEXCLASS.OP},i);a&&t2.default.setAttribute(h,"mathvariant",a),e.Push(e.itemFactory.create("fn",h))}if(c==="{"){var f=e.GetArgument(t);c=o?r:"\\{",d=o?n:"\\}",f=s?c+" "+f+" "+d:u?"\\"+u+"l"+c+" "+f+" \\"+u+"r"+d:"\\left"+c+" "+f+" \\right"+d,e.Push(new Gt.default(f,e.stack.env,e.configuration).mml());return}o&&(c=r,d=n),e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:c,close:d,big:u}))},Ge.Eval=function(e,t){var r=e.GetStar(),n=e.GetNext();if(n==="{"){var o=e.GetArgument(t),i="\\left. "+(r?"\\smash{"+o+"}":o)+" \\vphantom{\\int}\\right|";e.string=e.string.slice(0,e.i)+i+e.string.slice(e.i);return}if(n==="("||n==="["){e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:n,close:"|",smash:r,right:"\\vphantom{\\int}"}));return}throw new tc.default("MissingArgFor","Missing argument for %1",e.currentCS)},Ge.Commutator=function(e,t,r,n){r===void 0&&(r="["),n===void 0&&(n="]");var o=e.GetStar(),i=e.GetNext(),a=null;if(i==="\\"){if(e.i++,a=e.GetCS(),!a.match(EC))throw new tc.default("MissingArgFor","Missing argument for %1",e.currentCS);i=e.GetNext()}if(i!=="{")throw new tc.default("MissingArgFor","Missing argument for %1",e.currentCS);var s=e.GetArgument(t),c=e.GetArgument(t),l=s+","+c;l=o?r+" "+l+" "+n:a?"\\"+a+"l"+r+" "+l+" \\"+a+"r"+n:"\\left"+r+" "+l+" \\right"+n,e.Push(new Gt.default(l,e.stack.env,e.configuration).mml())};var UV=[65,90],HV=[97,122],qV=[913,937],GV=[945,969],XV=[48,57];function bu(e,t){return e>=t[0]&&e<=t[1]}function VV(e,t,r,n){var o=e.configuration.parser,i=FV.NodeFactory.createToken(e,t,r,n),a=n.codePointAt(0);return n.length===1&&!o.stack.env.font&&o.stack.env.vectorFont&&(bu(a,UV)||bu(a,HV)||bu(a,qV)||bu(a,XV)||bu(a,GV)&&o.stack.env.vectorStar||t2.default.getAttribute(i,"accent"))&&t2.default.setAttribute(i,"mathvariant",o.stack.env.vectorFont),i}Ge.VectorBold=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),o=e.configuration.nodeFactory.get("token"),i=e.stack.env.font;delete e.stack.env.font,e.configuration.nodeFactory.set("token",VV),e.stack.env.vectorFont=r?"bold-italic":"bold",e.stack.env.vectorStar=r;var a=new Gt.default(n,e.stack.env,e.configuration).mml();i&&(e.stack.env.font=i),delete e.stack.env.vectorFont,delete e.stack.env.vectorStar,e.configuration.nodeFactory.set("token",o),e.Push(a)},Ge.StarMacro=function(e,t,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];var i=e.GetStar(),a=[];if(r)for(var s=a.length;s<r;s++)a.push(e.GetArgument(t));var c=n.join(i?"*":"");c=gu.default.substituteArgs(e,a,c),e.string=gu.default.addArgs(e,c,e.string.slice(e.i)),e.i=0,gu.default.checkMaxMacros(e)};var xC=function(e,t,r,n,o){var i=new Gt.default(n,e.stack.env,e.configuration).mml();e.Push(e.itemFactory.create(t,i));var a=e.GetNext(),s=SC[a];if(s){var c="",l="",u="",p=o.indexOf(a)!==-1;if(a==="{"){u=e.GetArgument(r),c=p?"\\left\\{":"",l=p?"\\right\\}":"",e.string=c+" "+u+" "+l+e.string.slice(e.i),e.i=0;return}p&&(e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:a,close:s})))}};Ge.OperatorApplication=function(e,t,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];xC(e,"fn",t,r,n)},Ge.VectorOperator=function(e,t,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];xC(e,"mml",t,r,n)},Ge.Expression=function(e,t,r,n){r===void 0&&(r=!0),n===void 0&&(n=""),n=n||t.slice(1);var o=r?e.GetBrackets(t):null,i=e.create("token","mi",{texClass:e2.TEXCLASS.OP},n);if(o){var a=new Gt.default(o,e.stack.env,e.configuration).mml();i=e.create("node","msup",[i,a])}e.Push(e.itemFactory.create("fn",i)),e.GetNext()==="("&&(e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:"(",close:")"})))},Ge.Qqtext=function(e,t,r){var n=e.GetStar(),o=r||e.GetArgument(t),i=(n?"":"\\quad")+"\\text{"+o+"}\\quad ";e.string=e.string.slice(0,e.i)+i+e.string.slice(e.i)},Ge.Differential=function(e,t,r){var n=e.GetBrackets(t),o=n!=null?"^{"+n+"}":" ",i=e.GetNext()==="(",a=e.GetNext()==="{",s=r+o;if(!(i||a)){s+=e.GetArgument(t,!0)||"";var c=new Gt.default(s,e.stack.env,e.configuration).mml();e.Push(c);return}if(a){s+=e.GetArgument(t);var c=new Gt.default(s,e.stack.env,e.configuration).mml();e.Push(e.create("node","TeXAtom",[c],{texClass:e2.TEXCLASS.OP}));return}e.Push(new Gt.default(s,e.stack.env,e.configuration).mml()),e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:"(",close:")"}))},Ge.Derivative=function(e,t,r,n){var o=e.GetStar(),i=e.GetBrackets(t),a=1,s=[];for(s.push(e.GetArgument(t));e.GetNext()==="{"&&a<r;)s.push(e.GetArgument(t)),a++;var c=!1,l=" ",u=" ";r>2&&s.length>2?(l="^{"+(s.length-1)+"}",c=!0):i!=null&&(r>2&&s.length>1&&(c=!0),l="^{"+i+"}",u=l);for(var p=o?"\\flatfrac":"\\frac",d=s.length>1?s[0]:"",h=s.length>1?s[1]:s[0],f="",m=2,v=void 0;v=s[m];m++)f+=n+" "+v;var g=p+"{"+n+l+d+"}{"+n+" "+h+u+" "+f+"}";e.Push(new Gt.default(g,e.stack.env,e.configuration).mml()),e.GetNext()==="("&&(e.i++,e.Push(e.itemFactory.create("auto open").setProperties({open:"(",close:")",ignore:c})))},Ge.Bra=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),o="",i=!1,a=!1;if(e.GetNext()==="\\"){var s=e.i;e.i++;var c=e.GetCS(),l=e.lookup("macro",c);l&&l.symbol==="ket"?(i=!0,s=e.i,a=e.GetStar(),e.GetNext()==="{"?o=e.GetArgument(c,!0):(e.i=s,a=!1)):e.i=s}var u="";i?u=r||a?"\\langle{".concat(n,"}\\vert{").concat(o,"}\\rangle"):"\\left\\langle{".concat(n,"}\\middle\\vert{").concat(o,"}\\right\\rangle"):u=r||a?"\\langle{".concat(n,"}\\vert"):"\\left\\langle{".concat(n,"}\\right\\vert{").concat(o,"}"),e.Push(new Gt.default(u,e.stack.env,e.configuration).mml())},Ge.Ket=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),o=r?"\\vert{".concat(n,"}\\rangle"):"\\left\\vert{".concat(n,"}\\right\\rangle");e.Push(new Gt.default(o,e.stack.env,e.configuration).mml())},Ge.BraKet=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),o=null;e.GetNext()==="{"&&(o=e.GetArgument(t,!0));var i="";o==null?i=r?"\\langle{".concat(n,"}\\vert{").concat(n,"}\\rangle"):"\\left\\langle{".concat(n,"}\\middle\\vert{").concat(n,"}\\right\\rangle"):i=r?"\\langle{".concat(n,"}\\vert{").concat(o,"}\\rangle"):"\\left\\langle{".concat(n,"}\\middle\\vert{").concat(o,"}\\right\\rangle"),e.Push(new Gt.default(i,e.stack.env,e.configuration).mml())},Ge.KetBra=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),o=null;e.GetNext()==="{"&&(o=e.GetArgument(t,!0));var i="";o==null?i=r?"\\vert{".concat(n,"}\\rangle\\!\\langle{").concat(n,"}\\vert"):"\\left\\vert{".concat(n,"}\\middle\\rangle\\!\\middle\\langle{").concat(n,"}\\right\\vert"):i=r?"\\vert{".concat(n,"}\\rangle\\!\\langle{").concat(o,"}\\vert"):"\\left\\vert{".concat(n,"}\\middle\\rangle\\!\\middle\\langle{").concat(o,"}\\right\\vert"),e.Push(new Gt.default(i,e.stack.env,e.configuration).mml())};function MC(e,t,r){var n=jV(e,3),o=n[0],i=n[1],a=n[2];return t&&r?"\\left\\langle{".concat(o,"}\\middle\\vert{").concat(i,"}\\middle\\vert{").concat(a,"}\\right\\rangle"):t?"\\langle{".concat(o,"}\\vert{").concat(i,"}\\vert{").concat(a,"}\\rangle"):"\\left\\langle{".concat(o,"}\\right\\vert{").concat(i,"}\\left\\vert{").concat(a,"}\\right\\rangle")}Ge.Expectation=function(e,t){var r=e.GetStar(),n=r&&e.GetStar(),o=e.GetArgument(t),i=null;e.GetNext()==="{"&&(i=e.GetArgument(t,!0));var a=o&&i?MC([i,o,i],r,n):r?"\\langle {".concat(o,"} \\rangle"):"\\left\\langle {".concat(o,"} \\right\\rangle");e.Push(new Gt.default(a,e.stack.env,e.configuration).mml())},Ge.MatrixElement=function(e,t){var r=e.GetStar(),n=r&&e.GetStar(),o=MC([e.GetArgument(t),e.GetArgument(t),e.GetArgument(t)],r,n);e.Push(new Gt.default(o,e.stack.env,e.configuration).mml())},Ge.MatrixQuantity=function(e,t,r){var n=e.GetStar(),o=e.GetNext(),i=r?"smallmatrix":"array",a="",s="",c="";switch(o){case"{":a=e.GetArgument(t);break;case"(":e.i++,s=n?"\\lgroup":"(",c=n?"\\rgroup":")",a=e.GetUpTo(t,")");break;case"[":e.i++,s="[",c="]",a=e.GetUpTo(t,"]");break;case"|":e.i++,s="|",c="|",a=e.GetUpTo(t,"|");break;default:s="(",c=")"}var l=(s?"\\left":"")+s+"\\begin{"+i+"}{} "+a+"\\end{"+i+"}"+(s?"\\right":"")+c;e.Push(new Gt.default(l,e.stack.env,e.configuration).mml())},Ge.IdentityMatrix=function(e,t){var r=e.GetArgument(t),n=parseInt(r,10);if(isNaN(n))throw new tc.default("InvalidNumber","Invalid number");if(n<=1){e.string="1"+e.string.slice(e.i),e.i=0;return}for(var o=Array(n).fill("0"),i=[],a=0;a<n;a++){var s=o.slice();s[a]="1",i.push(s.join(" & "))}e.string=i.join("\\\\ ")+e.string.slice(e.i),e.i=0},Ge.XMatrix=function(e,t){var r=e.GetStar(),n=e.GetArgument(t),o=e.GetArgument(t),i=e.GetArgument(t),a=parseInt(o,10),s=parseInt(i,10);if(isNaN(a)||isNaN(s)||s.toString()!==i||a.toString()!==o)throw new tc.default("InvalidNumber","Invalid number");if(a=a<1?1:a,s=s<1?1:s,!r){var c=Array(s).fill(n).join(" & ");e.string=Array(a).fill(c).join("\\\\ ")+e.string.slice(e.i),e.i=0;return}var l="";if(a===1&&s===1)l=n;else if(a===1){for(var c=[],u=1;u<=s;u++)c.push("".concat(n,"_{").concat(u,"}"));l=c.join(" & ")}else if(s===1){for(var c=[],u=1;u<=a;u++)c.push("".concat(n,"_{").concat(u,"}"));l=c.join("\\\\ ")}else{for(var p=[],u=1;u<=a;u++){for(var c=[],d=1;d<=s;d++)c.push("".concat(n,"_{{").concat(u,"}{").concat(d,"}}"));p.push(c.join(" & "))}l=p.join("\\\\ ")}e.string=l+e.string.slice(e.i),e.i=0},Ge.PauliMatrix=function(e,t){var r=e.GetArgument(t),n=r.slice(1);switch(r[0]){case"0":n+=" 1 & 0\\\\ 0 & 1";break;case"1":case"x":n+=" 0 & 1\\\\ 1 & 0";break;case"2":case"y":n+=" 0 & -i\\\\ i & 0";break;case"3":case"z":n+=" 1 & 0\\\\ 0 & -1"}e.string=n+e.string.slice(e.i),e.i=0},Ge.DiagonalMatrix=function(e,t,r){if(e.GetNext()==="{"){var n=e.i;e.GetArgument(t);var o=e.i;e.i=n+1;for(var i=[],a="",s=e.i;s<o;){try{a=e.GetUpTo(t,",")}catch{e.i=o,i.push(e.string.slice(s,o-1));break}if(e.i>=o){i.push(e.string.slice(s,o));break}s=e.i,i.push(a)}e.string=WV(i,r)+e.string.slice(o),e.i=0}};function WV(e,t){for(var r=e.length,n=[],o=0;o<r;o++)n.push(Array(t?r-o:o+1).join("&")+"\\mqty{"+e[o]+"}");return n.join("\\\\ ")}Ge.AutoClose=function(e,t,r){var n=e.create("token","mo",{stretchy:!1},t),o=e.itemFactory.create("mml",n).setProperties({autoclose:t});e.Push(o)},Ge.Vnabla=function(e,t){var r=e.options.physics.arrowdel?"\\vec{\\gradientnabla}":"{\\gradientnabla}";return e.Push(new Gt.default(r,e.stack.env,e.configuration).mml())},Ge.DiffD=function(e,t){var r=e.options.physics.italicdiff?"d":"{\\rm d}";return e.Push(new Gt.default(r,e.stack.env,e.configuration).mml())},Ge.Macro=Zv.default.Macro,Ge.NamedFn=Zv.default.NamedFn,Ge.Array=Zv.default.Array,Qv.default=Ge;var OC=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}),un=de,mo=OC(Qv),rc=Ht,r2=OC(an),$V=ce;new un.CommandMap("Physics-automatic-bracing-macros",{quantity:"Quantity",qty:"Quantity",pqty:["Quantity","(",")",!0],bqty:["Quantity","[","]",!0],vqty:["Quantity","|","|",!0],Bqty:["Quantity","\\{","\\}",!0],absolutevalue:["Quantity","|","|",!0],abs:["Quantity","|","|",!0],norm:["Quantity","\\|","\\|",!0],evaluated:"Eval",eval:"Eval",order:["Quantity","(",")",!0,"O",rc.TexConstant.Variant.CALLIGRAPHIC],commutator:"Commutator",comm:"Commutator",anticommutator:["Commutator","\\{","\\}"],acomm:["Commutator","\\{","\\}"],poissonbracket:["Commutator","\\{","\\}"],pb:["Commutator","\\{","\\}"]},mo.default),new un.CharacterMap("Physics-vector-mo",r2.default.mathchar0mo,{dotproduct:["⋅",{mathvariant:rc.TexConstant.Variant.BOLD}],vdot:["⋅",{mathvariant:rc.TexConstant.Variant.BOLD}],crossproduct:"×",cross:"×",cp:"×",gradientnabla:["∇",{mathvariant:rc.TexConstant.Variant.BOLD}]}),new un.CharacterMap("Physics-vector-mi",r2.default.mathchar0mi,{real:["ℜ",{mathvariant:rc.TexConstant.Variant.NORMAL}],imaginary:["ℑ",{mathvariant:rc.TexConstant.Variant.NORMAL}]}),new un.CommandMap("Physics-vector-macros",{vnabla:"Vnabla",vectorbold:"VectorBold",vb:"VectorBold",vectorarrow:["StarMacro",1,"\\vec{\\vb","{#1}}"],va:["StarMacro",1,"\\vec{\\vb","{#1}}"],vectorunit:["StarMacro",1,"\\hat{\\vb","{#1}}"],vu:["StarMacro",1,"\\hat{\\vb","{#1}}"],gradient:["OperatorApplication","\\vnabla","(","["],grad:["OperatorApplication","\\vnabla","(","["],divergence:["VectorOperator","\\vnabla\\vdot","(","["],div:["VectorOperator","\\vnabla\\vdot","(","["],curl:["VectorOperator","\\vnabla\\crossproduct","(","["],laplacian:["OperatorApplication","\\nabla^2","(","["]},mo.default),new un.CommandMap("Physics-expressions-macros",{sin:"Expression",sinh:"Expression",arcsin:"Expression",asin:"Expression",cos:"Expression",cosh:"Expression",arccos:"Expression",acos:"Expression",tan:"Expression",tanh:"Expression",arctan:"Expression",atan:"Expression",csc:"Expression",csch:"Expression",arccsc:"Expression",acsc:"Expression",sec:"Expression",sech:"Expression",arcsec:"Expression",asec:"Expression",cot:"Expression",coth:"Expression",arccot:"Expression",acot:"Expression",exp:["Expression",!1],log:"Expression",ln:"Expression",det:["Expression",!1],Pr:["Expression",!1],tr:["Expression",!1],trace:["Expression",!1,"tr"],Tr:["Expression",!1],Trace:["Expression",!1,"Tr"],rank:"NamedFn",erf:["Expression",!1],Residue:["Macro","\\mathrm{Res}"],Res:["OperatorApplication","\\Residue","(","[","{"],principalvalue:["OperatorApplication","{\\cal P}"],pv:["OperatorApplication","{\\cal P}"],PV:["OperatorApplication","{\\rm P.V.}"],Re:["OperatorApplication","\\mathrm{Re}","{"],Im:["OperatorApplication","\\mathrm{Im}","{"],sine:["NamedFn","sin"],hypsine:["NamedFn","sinh"],arcsine:["NamedFn","arcsin"],asine:["NamedFn","asin"],cosine:["NamedFn","cos"],hypcosine:["NamedFn","cosh"],arccosine:["NamedFn","arccos"],acosine:["NamedFn","acos"],tangent:["NamedFn","tan"],hyptangent:["NamedFn","tanh"],arctangent:["NamedFn","arctan"],atangent:["NamedFn","atan"],cosecant:["NamedFn","csc"],hypcosecant:["NamedFn","csch"],arccosecant:["NamedFn","arccsc"],acosecant:["NamedFn","acsc"],secant:["NamedFn","sec"],hypsecant:["NamedFn","sech"],arcsecant:["NamedFn","arcsec"],asecant:["NamedFn","asec"],cotangent:["NamedFn","cot"],hypcotangent:["NamedFn","coth"],arccotangent:["NamedFn","arccot"],acotangent:["NamedFn","acot"],exponential:["NamedFn","exp"],logarithm:["NamedFn","log"],naturallogarithm:["NamedFn","ln"],determinant:["NamedFn","det"],Probability:["NamedFn","Pr"]},mo.default),new un.CommandMap("Physics-quick-quad-macros",{qqtext:"Qqtext",qq:"Qqtext",qcomma:["Macro","\\qqtext*{,}"],qc:["Macro","\\qqtext*{,}"],qcc:["Qqtext","c.c."],qif:["Qqtext","if"],qthen:["Qqtext","then"],qelse:["Qqtext","else"],qotherwise:["Qqtext","otherwise"],qunless:["Qqtext","unless"],qgiven:["Qqtext","given"],qusing:["Qqtext","using"],qassume:["Qqtext","assume"],qsince:["Qqtext","since"],qlet:["Qqtext","let"],qfor:["Qqtext","for"],qall:["Qqtext","all"],qeven:["Qqtext","even"],qodd:["Qqtext","odd"],qinteger:["Qqtext","integer"],qand:["Qqtext","and"],qor:["Qqtext","or"],qas:["Qqtext","as"],qin:["Qqtext","in"]},mo.default),new un.CommandMap("Physics-derivative-macros",{diffd:"DiffD",flatfrac:["Macro","\\left.#1\\middle/#2\\right.",2],differential:["Differential","\\diffd"],dd:["Differential","\\diffd"],variation:["Differential","\\delta"],var:["Differential","\\delta"],derivative:["Derivative",2,"\\diffd"],dv:["Derivative",2,"\\diffd"],partialderivative:["Derivative",3,"\\partial"],pderivative:["Derivative",3,"\\partial"],pdv:["Derivative",3,"\\partial"],functionalderivative:["Derivative",2,"\\delta"],fderivative:["Derivative",2,"\\delta"],fdv:["Derivative",2,"\\delta"]},mo.default),new un.CommandMap("Physics-bra-ket-macros",{bra:"Bra",ket:"Ket",innerproduct:"BraKet",ip:"BraKet",braket:"BraKet",outerproduct:"KetBra",dyad:"KetBra",ketbra:"KetBra",op:"KetBra",expectationvalue:"Expectation",expval:"Expectation",ev:"Expectation",matrixelement:"MatrixElement",matrixel:"MatrixElement",mel:"MatrixElement"},mo.default),new un.CommandMap("Physics-matrix-macros",{matrixquantity:"MatrixQuantity",mqty:"MatrixQuantity",pmqty:["Macro","\\mqty(#1)",1],Pmqty:["Macro","\\mqty*(#1)",1],bmqty:["Macro","\\mqty[#1]",1],vmqty:["Macro","\\mqty|#1|",1],smallmatrixquantity:["MatrixQuantity",!0],smqty:["MatrixQuantity",!0],spmqty:["Macro","\\smqty(#1)",1],sPmqty:["Macro","\\smqty*(#1)",1],sbmqty:["Macro","\\smqty[#1]",1],svmqty:["Macro","\\smqty|#1|",1],matrixdeterminant:["Macro","\\vmqty{#1}",1],mdet:["Macro","\\vmqty{#1}",1],smdet:["Macro","\\svmqty{#1}",1],identitymatrix:"IdentityMatrix",imat:"IdentityMatrix",xmatrix:"XMatrix",xmat:"XMatrix",zeromatrix:["Macro","\\xmat{0}{#1}{#2}",2],zmat:["Macro","\\xmat{0}{#1}{#2}",2],paulimatrix:"PauliMatrix",pmat:"PauliMatrix",diagonalmatrix:"DiagonalMatrix",dmat:"DiagonalMatrix",antidiagonalmatrix:["DiagonalMatrix",!0],admat:["DiagonalMatrix",!0]},mo.default),new un.EnvironmentMap("Physics-aux-envs",r2.default.environment,{smallmatrix:["Array",null,null,null,"c","0.333em",".2em","S",1]},mo.default),new un.MacroMap("Physics-characters",{"|":["AutoClose",$V.TEXCLASS.ORD],")":"AutoClose","]":"AutoClose"},mo.default);var n2;Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.PhysicsConfiguration=void 0;var zV=_e,AC=by;Jv.PhysicsConfiguration=zV.Configuration.create("physics",{handler:{macro:["Physics-automatic-bracing-macros","Physics-vector-macros","Physics-vector-mo","Physics-vector-mi","Physics-derivative-macros","Physics-expressions-macros","Physics-quick-quad-macros","Physics-bra-ket-macros","Physics-matrix-macros"],character:["Physics-characters"],environment:["Physics-aux-envs"]},items:(n2={},n2[AC.AutoOpen.prototype.kind]=AC.AutoOpen,n2),options:{physics:{italicdiff:!1,arrowdel:!1}}});var TC={};(function(e){var t=y&&y.__values||(function(d){var h=typeof Symbol=="function"&&Symbol.iterator,f=h&&d[h],m=0;if(f)return f.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&m>=d.length&&(d=void 0),{value:d&&d[m++],done:!d}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}),r=y&&y.__importDefault||(function(d){return d&&d.__esModule?d:{default:d}});Object.defineProperty(e,"__esModule",{value:!0}),e.SetOptionsConfiguration=e.SetOptionsUtil=void 0;var n=_e,o=de,i=r(Pe),a=r(qe),s=on,c=r(dr),l=tt;e.SetOptionsUtil={filterPackage:function(d,h){if(h!=="tex"&&!n.ConfigurationHandler.get(h))throw new i.default("NotAPackage","Not a defined package: %1",h);var f=d.options.setoptions,m=f.allowOptions[h];if(m===void 0&&!f.allowPackageDefault||m===!1)throw new i.default("PackageNotSettable",`Options can't be set for package "%1"`,h);return!0},filterOption:function(d,h,f){var m,v=d.options.setoptions,g=v.allowOptions[h]||{},b=g.hasOwnProperty(f)&&!(0,l.isObject)(g[f])?g[f]:null;if(b===!1||b===null&&!v.allowOptionsDefault)throw new i.default("OptionNotSettable",'Option "%1" is not allowed to be set',f);if(!(!((m=h==="tex"?d.options:d.options[h])===null||m===void 0)&&m.hasOwnProperty(f)))throw h==="tex"?new i.default("InvalidTexOption",'Invalid TeX option "%1"',f):new i.default("InvalidOptionKey",'Invalid option "%1" for package "%2"',f,h);return!0},filterValue:function(d,h,f,m){return m}};var u=new o.CommandMap("setoptions",{setOptions:"SetOptions"},{SetOptions:function(d,h){var f,m,v=d.GetBrackets(h)||"tex",g=a.default.keyvalOptions(d.GetArgument(h)),b=d.options.setoptions;if(b.filterPackage(d,v))try{for(var S=t(Object.keys(g)),E=S.next();!E.done;E=S.next()){var x=E.value;b.filterOption(d,v,x)&&((v==="tex"?d.options:d.options[v])[x]=b.filterValue(d,v,x,g[x]))}}catch(O){f={error:O}}finally{try{E&&!E.done&&(m=S.return)&&m.call(S)}finally{if(f)throw f.error}}}});function p(d,h){var f=h.parseOptions.handlers.get("macro").lookup("require");f&&(u.add("Require",new s.Macro("Require",f._func)),u.add("require",new s.Macro("require",c.default.Macro,["\\Require{#2}\\setOptions[#2]{#1}",2,""])))}e.SetOptionsConfiguration=n.Configuration.create("setoptions",{handler:{macro:["setoptions"]},config:p,priority:3,options:{setoptions:{filterPackage:e.SetOptionsUtil.filterPackage,filterOption:e.SetOptionsUtil.filterOption,filterValue:e.SetOptionsUtil.filterValue,allowPackageDefault:!0,allowOptionsDefault:!0,allowOptions:(0,l.expandable)({tex:{FindTeX:!1,formatError:!1,package:!1,baseURL:!1,tags:!1,maxBuffer:!1,maxMaxros:!1,macros:!1,environments:!1},setoptions:!1,autoload:!1,require:!1,configmacros:!1,tagformat:!1})}}})})(TC),ee(TC);var vu={},KV=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(vu,"__esModule",{value:!0}),vu.TagFormatConfiguration=vu.tagformatConfig=void 0;var JV=_e,o2=On,CC=0;function NC(e,t){var r=t.parseOptions.options.tags;r!=="base"&&e.tags.hasOwnProperty(r)&&o2.TagsFactory.add(r,e.tags[r]);var n=(function(i){KV(a,i);function a(){return i!==null&&i.apply(this,arguments)||this}return a.prototype.formatNumber=function(s){return t.parseOptions.options.tagformat.number(s)},a.prototype.formatTag=function(s){return t.parseOptions.options.tagformat.tag(s)},a.prototype.formatId=function(s){return t.parseOptions.options.tagformat.id(s)},a.prototype.formatUrl=function(s,c){return t.parseOptions.options.tagformat.url(s,c)},a})(o2.TagsFactory.create(t.parseOptions.options.tags).constructor);CC++;var o="configTags-"+CC;o2.TagsFactory.add(o,n),t.parseOptions.options.tags=o}vu.tagformatConfig=NC,vu.TagFormatConfiguration=JV.Configuration.create("tagformat",{config:[NC,10],options:{tagformat:{number:function(e){return e.toString()},tag:function(e){return"("+e+")"},id:function(e){return"mjx-eqn:"+e.replace(/\s/g,"_")},url:function(e,t){return t+"#"+encodeURIComponent(e)}}}});var i2={},nc={},_C=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(nc,"__esModule",{value:!0}),nc.TextMacrosMethods=void 0;var YV=_C(Ut),QV=vo,oc=_C(dr);nc.TextMacrosMethods={Comment:function(e,t){for(;e.i<e.string.length&&e.string.charAt(e.i)!==`
65
+ `;)e.i++;e.i++},Math:function(e,t){e.saveText();for(var r=e.i,n,o,i=0;o=e.GetNext();)switch(n=e.i++,o){case"\\":e.GetCS()===")"&&(o="\\(");case"$":if(i===0&&t===o){var a=e.texParser.configuration,s=new YV.default(e.string.substr(r,n-r),e.stack.env,a).mml();e.PushMath(s);return}break;case"{":i++;break;case"}":i===0&&e.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace"),i--}e.Error("MathNotTerminated","Math-mode is not properly terminated")},MathModeOnly:function(e,t){e.Error("MathModeOnly","'%1' allowed only in math mode",t)},Misplaced:function(e,t){e.Error("Misplaced","'%1' can not be used here",t)},OpenBrace:function(e,t){var r=e.stack.env;e.envStack.push(r),e.stack.env=Object.assign({},r)},CloseBrace:function(e,t){e.envStack.length?(e.saveText(),e.stack.env=e.envStack.pop()):e.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace")},OpenQuote:function(e,t){e.string.charAt(e.i)===t?(e.text+="“",e.i++):e.text+="‘"},CloseQuote:function(e,t){e.string.charAt(e.i)===t?(e.text+="”",e.i++):e.text+="’"},Tilde:function(e,t){e.text+=" "},Space:function(e,t){for(e.text+=" ";e.GetNext().match(/\s/);)e.i++},SelfQuote:function(e,t){e.text+=t.substr(1)},Insert:function(e,t,r){e.text+=r},Accent:function(e,t,r){var n=e.ParseArg(t),o=e.create("token","mo",{},r);e.addAttributes(o),e.Push(e.create("node","mover",[n,o]))},Emph:function(e,t){var r=e.stack.env.mathvariant==="-tex-mathit"?"normal":"-tex-mathit";e.Push(e.ParseTextArg(t,{mathvariant:r}))},SetFont:function(e,t,r){e.saveText(),e.stack.env.mathvariant=r},SetSize:function(e,t,r){e.saveText(),e.stack.env.mathsize=r},CheckAutoload:function(e,t){var r=e.configuration.packageData.get("autoload"),n=e.texParser;t=t.slice(1);var o=n.lookup("macro",t);if(!o||r&&o._func===r.Autoload){if(n.parse("macro",[n,t]),!o)return;(0,QV.retryAfter)(Promise.resolve())}n.parse("macro",[e,t])},Macro:oc.default.Macro,Spacer:oc.default.Spacer,Hskip:oc.default.Hskip,rule:oc.default.rule,Rule:oc.default.Rule,HandleRef:oc.default.HandleRef};var Su={},ZV=y&&y.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&(function(n,o){n.__proto__=o})||(function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}),e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),wC=y&&y.__values||(function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),eW=y&&y.__read||(function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}),tW=y&&y.__spreadArray||(function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}),vy=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}});Object.defineProperty(Su,"__esModule",{value:!0}),Su.TextParser=void 0;var rW=vy(Ut),RC=vy(Pe),nW=vy(qe),oW=ce,LC=vy(Ye),IC=pe;Su.TextParser=(function(e){ZV(t,e);function t(r,n,o,i){var a=e.call(this,r,n,o)||this;return a.level=i,a}return Object.defineProperty(t.prototype,"texParser",{get:function(){return this.configuration.packageData.get("textmacros").texParser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tags",{get:function(){return this.texParser.tags},enumerable:!1,configurable:!0}),t.prototype.mml=function(){return this.level!=null?this.create("node","mstyle",this.nodes,{displaystyle:!1,scriptlevel:this.level}):this.nodes.length===1?this.nodes[0]:this.create("node","mrow",this.nodes)},t.prototype.Parse=function(){this.text="",this.nodes=[],this.envStack=[],e.prototype.Parse.call(this)},t.prototype.saveText=function(){if(this.text){var r=this.stack.env.mathvariant,n=nW.default.internalText(this,this.text,r?{mathvariant:r}:{});this.text="",this.Push(n)}},t.prototype.Push=function(r){if(this.text&&this.saveText(),r instanceof IC.StopItem)return e.prototype.Push.call(this,r);if(r instanceof IC.StyleItem){this.stack.env.mathcolor=this.stack.env.color;return}r instanceof oW.AbstractMmlNode&&(this.addAttributes(r),this.nodes.push(r))},t.prototype.PushMath=function(r){var n,o,i=this.stack.env;r.isKind("TeXAtom")||(r=this.create("node","TeXAtom",[r]));try{for(var a=wC(["mathsize","mathcolor"]),s=a.next();!s.done;s=a.next()){var c=s.value;i[c]&&!r.attributes.getExplicit(c)&&(!r.isToken&&!r.isKind("mstyle")&&(r=this.create("node","mstyle",[r])),LC.default.setAttribute(r,c,i[c]))}}catch(l){n={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}r.isInferred&&(r=this.create("node","mrow",r.childNodes)),this.nodes.push(r)},t.prototype.addAttributes=function(r){var n,o,i=this.stack.env;if(r.isToken)try{for(var a=wC(["mathsize","mathcolor","mathvariant"]),s=a.next();!s.done;s=a.next()){var c=s.value;i[c]&&!r.attributes.getExplicit(c)&&LC.default.setAttribute(r,c,i[c])}}catch(l){n={error:l}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},t.prototype.ParseTextArg=function(r,n){var o=this.GetArgument(r);return n=Object.assign(Object.assign({},this.stack.env),n),new t(o,n,this.configuration).mml()},t.prototype.ParseArg=function(r){return new t(this.GetArgument(r),this.stack.env,this.configuration).mml()},t.prototype.Error=function(r,n){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];throw new(RC.default.bind.apply(RC.default,tW([void 0,r,n],eW(o),!1)))},t})(rW.default);var iW=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}),aW=de,Xr=Ht,sW=nc,cW=iW(qe),lW=Su;new aW.CommandMap("textcomp-macros",{textasciicircum:["Insert","^"],textasciitilde:["Insert","~"],textasteriskcentered:["Insert","*"],textbackslash:["Insert","\\"],textbar:["Insert","|"],textbraceleft:["Insert","{"],textbraceright:["Insert","}"],textbullet:["Insert","•"],textdagger:["Insert","†"],textdaggerdbl:["Insert","‡"],textellipsis:["Insert","…"],textemdash:["Insert","—"],textendash:["Insert","–"],textexclamdown:["Insert","¡"],textgreater:["Insert",">"],textless:["Insert","<"],textordfeminine:["Insert","ª"],textordmasculine:["Insert","º"],textparagraph:["Insert","¶"],textperiodcentered:["Insert","·"],textquestiondown:["Insert","¿"],textquotedblleft:["Insert","“"],textquotedblright:["Insert","”"],textquoteleft:["Insert","‘"],textquoteright:["Insert","’"],textsection:["Insert","§"],textunderscore:["Insert","_"],textvisiblespace:["Insert","␣"],textacutedbl:["Insert","˝"],textasciiacute:["Insert","´"],textasciibreve:["Insert","˘"],textasciicaron:["Insert","ˇ"],textasciidieresis:["Insert","¨"],textasciimacron:["Insert","¯"],textgravedbl:["Insert","˵"],texttildelow:["Insert","˷"],textbaht:["Insert","฿"],textcent:["Insert","¢"],textcolonmonetary:["Insert","₡"],textcurrency:["Insert","¤"],textdollar:["Insert","$"],textdong:["Insert","₫"],texteuro:["Insert","€"],textflorin:["Insert","ƒ"],textguarani:["Insert","₲"],textlira:["Insert","₤"],textnaira:["Insert","₦"],textpeso:["Insert","₱"],textsterling:["Insert","£"],textwon:["Insert","₩"],textyen:["Insert","¥"],textcircledP:["Insert","℗"],textcompwordmark:["Insert","‌"],textcopyleft:["Insert","🄯"],textcopyright:["Insert","©"],textregistered:["Insert","®"],textservicemark:["Insert","℠"],texttrademark:["Insert","™"],textbardbl:["Insert","‖"],textbigcircle:["Insert","◯"],textblank:["Insert","␢"],textbrokenbar:["Insert","¦"],textdiscount:["Insert","⁒"],textestimated:["Insert","℮"],textinterrobang:["Insert","‽"],textinterrobangdown:["Insert","⸘"],textmusicalnote:["Insert","♪"],textnumero:["Insert","№"],textopenbullet:["Insert","◦"],textpertenthousand:["Insert","‱"],textperthousand:["Insert","‰"],textrecipe:["Insert","℞"],textreferencemark:["Insert","※"],textlangle:["Insert","〈"],textrangle:["Insert","〉"],textlbrackdbl:["Insert","⟦"],textrbrackdbl:["Insert","⟧"],textlquill:["Insert","⁅"],textrquill:["Insert","⁆"],textcelsius:["Insert","℃"],textdegree:["Insert","°"],textdiv:["Insert","÷"],textdownarrow:["Insert","↓"],textfractionsolidus:["Insert","⁄"],textleftarrow:["Insert","←"],textlnot:["Insert","¬"],textmho:["Insert","℧"],textminus:["Insert","−"],textmu:["Insert","µ"],textohm:["Insert","Ω"],textonehalf:["Insert","½"],textonequarter:["Insert","¼"],textonesuperior:["Insert","¹"],textpm:["Insert","±"],textrightarrow:["Insert","→"],textsurd:["Insert","√"],textthreequarters:["Insert","¾"],textthreesuperior:["Insert","³"],texttimes:["Insert","×"],texttwosuperior:["Insert","²"],textuparrow:["Insert","↑"],textborn:["Insert","*"],textdied:["Insert","†"],textdivorced:["Insert","⚮"],textmarried:["Insert","⚭"],textcentoldstyle:["Insert","¢",Xr.TexConstant.Variant.OLDSTYLE],textdollaroldstyle:["Insert","$",Xr.TexConstant.Variant.OLDSTYLE],textzerooldstyle:["Insert","0",Xr.TexConstant.Variant.OLDSTYLE],textoneoldstyle:["Insert","1",Xr.TexConstant.Variant.OLDSTYLE],texttwooldstyle:["Insert","2",Xr.TexConstant.Variant.OLDSTYLE],textthreeoldstyle:["Insert","3",Xr.TexConstant.Variant.OLDSTYLE],textfouroldstyle:["Insert","4",Xr.TexConstant.Variant.OLDSTYLE],textfiveoldstyle:["Insert","5",Xr.TexConstant.Variant.OLDSTYLE],textsixoldstyle:["Insert","6",Xr.TexConstant.Variant.OLDSTYLE],textsevenoldstyle:["Insert","7",Xr.TexConstant.Variant.OLDSTYLE],texteightoldstyle:["Insert","8",Xr.TexConstant.Variant.OLDSTYLE],textnineoldstyle:["Insert","9",Xr.TexConstant.Variant.OLDSTYLE]},{Insert:function(e,t,r,n){if(e instanceof lW.TextParser){if(!n){sW.TextMacrosMethods.Insert(e,t,r);return}e.saveText()}e.Push(cW.default.internalText(e,r,n?{mathvariant:n}:{}))}}),Object.defineProperty(i2,"__esModule",{value:!0}),i2.TextcompConfiguration=void 0,i2.TextcompConfiguration=_e.Configuration.create("textcomp",{handler:{macro:["textcomp-macros"]}});var Eu={},PC=de,Pn=Ht,kC=nc,Ki=hr;new PC.MacroMap("text-special",{$:"Math","%":"Comment","^":"MathModeOnly",_:"MathModeOnly","&":"Misplaced","#":"Misplaced","~":"Tilde"," ":"Space"," ":"Space","\r":"Space","\n":"Space"," ":"Tilde","{":"OpenBrace","}":"CloseBrace","`":"OpenQuote","'":"CloseQuote"},kC.TextMacrosMethods),new PC.CommandMap("text-macros",{"(":"Math",$:"SelfQuote",_:"SelfQuote","%":"SelfQuote","{":"SelfQuote","}":"SelfQuote"," ":"SelfQuote","&":"SelfQuote","#":"SelfQuote","\\":"SelfQuote","'":["Accent","´"],"’":["Accent","´"],"`":["Accent","`"],"‘":["Accent","`"],"^":["Accent","^"],'"':["Accent","¨"],"~":["Accent","~"],"=":["Accent","¯"],".":["Accent","˙"],u:["Accent","˘"],v:["Accent","ˇ"],emph:"Emph",rm:["SetFont",Pn.TexConstant.Variant.NORMAL],mit:["SetFont",Pn.TexConstant.Variant.ITALIC],oldstyle:["SetFont",Pn.TexConstant.Variant.OLDSTYLE],cal:["SetFont",Pn.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont","-tex-mathit"],bf:["SetFont",Pn.TexConstant.Variant.BOLD],bbFont:["SetFont",Pn.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",Pn.TexConstant.Variant.SCRIPT],frak:["SetFont",Pn.TexConstant.Variant.FRAKTUR],sf:["SetFont",Pn.TexConstant.Variant.SANSSERIF],tt:["SetFont",Pn.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],Bbb:["Macro","{\\bbFont #1}",1],textnormal:["Macro","{\\rm #1}",1],textup:["Macro","{\\rm #1}",1],textrm:["Macro","{\\rm #1}",1],textit:["Macro","{\\it #1}",1],textbf:["Macro","{\\bf #1}",1],textsf:["Macro","{\\sf #1}",1],texttt:["Macro","{\\tt #1}",1],dagger:["Insert","†"],ddagger:["Insert","‡"],S:["Insert","§"],",":["Spacer",Ki.MATHSPACE.thinmathspace],":":["Spacer",Ki.MATHSPACE.mediummathspace],">":["Spacer",Ki.MATHSPACE.mediummathspace],";":["Spacer",Ki.MATHSPACE.thickmathspace],"!":["Spacer",Ki.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",Ki.MATHSPACE.thinmathspace],negthinspace:["Spacer",Ki.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],color:"CheckAutoload",textcolor:"CheckAutoload",colorbox:"CheckAutoload",fcolorbox:"CheckAutoload",href:"CheckAutoload",style:"CheckAutoload",class:"CheckAutoload",cssId:"CheckAutoload",unicode:"CheckAutoload",ref:["HandleRef",!1],eqref:["HandleRef",!0]},kC.TextMacrosMethods);var uW=y&&y.__importDefault||(function(e){return e&&e.__esModule?e:{default:e}}),ic;Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.TextMacrosConfiguration=Eu.TextBaseConfiguration=void 0;var a2=_e,pW=uW(_h),BC=On,Qo=pe,DC=Su,dW=nc;Eu.TextBaseConfiguration=a2.Configuration.create("text-base",{parser:"text",handler:{character:["command","text-special"],macro:["text-macros"]},fallback:{character:function(e,t){e.text+=t},macro:function(e,t){var r=e.texParser,n=r.lookup("macro",t);n&&n._func!==dW.TextMacrosMethods.Macro&&e.Error("MathMacro","%1 is only supported in math mode","\\"+t),r.parse("macro",[e,t])}},items:(ic={},ic[Qo.StartItem.prototype.kind]=Qo.StartItem,ic[Qo.StopItem.prototype.kind]=Qo.StopItem,ic[Qo.MmlItem.prototype.kind]=Qo.MmlItem,ic[Qo.StyleItem.prototype.kind]=Qo.StyleItem,ic)});function hW(e,t,r,n){var o=e.configuration.packageData.get("textmacros");return e instanceof DC.TextParser||(o.texParser=e),[new DC.TextParser(t,n?{mathvariant:n}:{},o.parseOptions,r).mml()]}Eu.TextMacrosConfiguration=a2.Configuration.create("textmacros",{config:function(e,t){var r=new a2.ParserConfiguration(t.parseOptions.options.textmacros.packages,["tex","text"]);r.init();var n=new pW.default(r,[]);n.options=t.parseOptions.options,r.config(t),BC.TagsFactory.addTags(r.tags),n.tags=BC.TagsFactory.getDefault(),n.tags.configuration=n,n.packageData=t.parseOptions.packageData,n.packageData.set("textmacros",{parseOptions:n,jax:t,texParser:null}),n.options.internalMath=hW},preprocessors:[function(e){var t=e.data.packageData.get("textmacros");t.parseOptions.nodeFactory.setMmlFactory(t.jax.mmlFactory)}],options:{textmacros:{packages:["text-base"]}}});var s2={};Object.defineProperty(s2,"__esModule",{value:!0}),s2.UpgreekConfiguration=void 0;var fW=_e,mW=de,yW=Ht;function gW(e,t){var r=t.attributes||{};r.mathvariant=yW.TexConstant.Variant.NORMAL;var n=e.create("token","mi",r,t.char);e.Push(n)}new mW.CharacterMap("upgreek",gW,{upalpha:"α",upbeta:"β",upgamma:"γ",updelta:"δ",upepsilon:"ϵ",upzeta:"ζ",upeta:"η",uptheta:"θ",upiota:"ι",upkappa:"κ",uplambda:"λ",upmu:"μ",upnu:"ν",upxi:"ξ",upomicron:"ο",uppi:"π",uprho:"ρ",upsigma:"σ",uptau:"τ",upupsilon:"υ",upphi:"ϕ",upchi:"χ",uppsi:"ψ",upomega:"ω",upvarepsilon:"ε",upvartheta:"ϑ",upvarpi:"ϖ",upvarrho:"ϱ",upvarsigma:"ς",upvarphi:"φ",Upgamma:"Γ",Updelta:"Δ",Uptheta:"Θ",Uplambda:"Λ",Upxi:"Ξ",Uppi:"Π",Upsigma:"Σ",Upupsilon:"Υ",Upphi:"Φ",Uppsi:"Ψ",Upomega:"Ω"}),s2.UpgreekConfiguration=fW.Configuration.create("upgreek",{handler:{macro:["upgreek"]}});var jC={};(function(e){var t=y&&y.__importDefault||(function(l){return l&&l.__esModule?l:{default:l}});Object.defineProperty(e,"__esModule",{value:!0}),e.UnicodeConfiguration=e.UnicodeMethods=void 0;var r=_e,n=t(Pe),o=de,i=t(qe),a=t(Ye),s=Bi;e.UnicodeMethods={};var c={};e.UnicodeMethods.Unicode=function(l,u){var p=l.GetBrackets(u),d=null,h=null;p&&(p.replace(/ /g,"").match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)?(d=p.replace(/ /g,"").split(/,/),h=l.GetBrackets(u)):h=p);var f=i.default.trimSpaces(l.GetArgument(u)).replace(/^0x/,"x");if(!f.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/))throw new n.default("BadUnicode","Argument to \\unicode must be a number");var m=parseInt(f.match(/^x/)?"0"+f:f);c[m]?h||(h=c[m][2]):c[m]=[800,200,h,m],d&&(c[m][0]=Math.floor(parseFloat(d[0])*1e3),c[m][1]=Math.floor(parseFloat(d[1])*1e3));var v=l.stack.env.font,g={};h?(c[m][2]=g.fontfamily=h.replace(/'/g,"'"),v&&(v.match(/bold/)&&(g.fontweight="bold"),v.match(/italic|-mathit/)&&(g.fontstyle="italic"))):v&&(g.mathvariant=v);var b=l.create("token","mtext",g,(0,s.numeric)(f));a.default.setProperty(b,"unicode",!0),l.Push(b)},new o.CommandMap("unicode",{unicode:"Unicode"},e.UnicodeMethods),e.UnicodeConfiguration=r.Configuration.create("unicode",{handler:{macro:["unicode"]}})})(jC),ee(jC);var FC={};(function(e){var t=y&&y.__importDefault||(function(a){return a&&a.__esModule?a:{default:a}});Object.defineProperty(e,"__esModule",{value:!0}),e.VerbConfiguration=e.VerbMethods=void 0;var r=_e,n=Ht,o=de,i=t(Pe);e.VerbMethods={},e.VerbMethods.Verb=function(a,s){var c=a.GetNext(),l=++a.i;if(c==="")throw new i.default("MissingArgFor","Missing argument for %1",s);for(;a.i<a.string.length&&a.string.charAt(a.i)!==c;)a.i++;if(a.i===a.string.length)throw new i.default("NoClosingDelim","Can't find closing delimiter for %1",a.currentCS);var u=a.string.slice(l,a.i).replace(/ /g," ");a.i++,a.Push(a.create("token","mtext",{mathvariant:n.TexConstant.Variant.MONOSPACE},u))},new o.CommandMap("verb",{verb:"Verb"},e.VerbMethods),e.VerbConfiguration=r.Configuration.create("verb",{handler:{macro:["verb"]}})})(FC),ee(FC),Object.defineProperty(ov,"__esModule",{value:!0});var UC=ov.AllPackages=void 0;typeof MathJax<"u"&&MathJax.loader&&MathJax.loader.preLoad("[tex]/action","[tex]/ams","[tex]/amscd","[tex]/bbox","[tex]/boldsymbol","[tex]/braket","[tex]/bussproofs","[tex]/cancel","[tex]/cases","[tex]/centernot","[tex]/color","[tex]/colorv2","[tex]/colortbl","[tex]/empheq","[tex]/enclose","[tex]/extpfeil","[tex]/gensymb","[tex]/html","[tex]/mathtools","[tex]/mhchem","[tex]/newcommand","[tex]/noerrors","[tex]/noundefined","[tex]/physics","[tex]/upgreek","[tex]/unicode","[tex]/verb","[tex]/configmacros","[tex]/tagformat","[tex]/textcomp","[tex]/textmacros","[tex]/setoptions"),UC=ov.AllPackages=["base","action","ams","amscd","bbox","boldsymbol","braket","bussproofs","cancel","cases","centernot","color","colortbl","empheq","enclose","extpfeil","gensymb","html","mathtools","mhchem","newcommand","noerrors","noundefined","upgreek","unicode","verb","configmacros","tagformat","textcomp","textmacros"];var bW=typeof global=="object"&&global&&global.Object===Object&&global,vW=typeof self=="object"&&self&&self.Object===Object&&self,ac=(bW||vW||Function("return this")()).Symbol,HC=Object.prototype,SW=HC.hasOwnProperty,EW=HC.toString,xu=ac?ac.toStringTag:void 0;function xW(e){var t=SW.call(e,xu),r=e[xu];try{e[xu]=void 0;var n=!0}catch{}var o=EW.call(e);return n&&(t?e[xu]=r:delete e[xu]),o}var MW=Object.prototype.toString;function OW(e){return MW.call(e)}var AW="[object Null]",TW="[object Undefined]",qC=ac?ac.toStringTag:void 0;function GC(e){return e==null?e===void 0?TW:AW:qC&&qC in Object(e)?xW(e):OW(e)}function c2(e){return e!=null&&typeof e=="object"}var CW="[object Symbol]";function NW(e){return typeof e=="symbol"||c2(e)&&GC(e)==CW}var _W=Array.isArray,wW=/\s/;function RW(e){for(var t=e.length;t--&&wW.test(e.charAt(t)););return t}var LW=/^\s+/;function IW(e){return e&&e.slice(0,RW(e)+1).replace(LW,"")}function XC(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var VC=NaN,PW=/^[-+]0x[0-9a-f]+$/i,kW=/^0b[01]+$/i,BW=/^0o[0-7]+$/i,DW=parseInt;function jW(e){if(typeof e=="number")return e;if(NW(e))return VC;if(XC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=XC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=IW(e);var r=kW.test(e);return r||BW.test(e)?DW(e.slice(2),r?2:8):PW.test(e)?VC:+e}var WC=1/0,FW=17976931348623157e292;function UW(e){return e?(e=jW(e),e===WC||e===-WC?(e<0?-1:1)*FW:e===e?e:0):e===0?e:0}function HW(e){var t=UW(e),r=t%1;return t===t?r?t-r:t:0}function qW(e){return e}function GW(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var XW="[object Arguments]";function $C(e){return c2(e)&&GC(e)==XW}var zC=Object.prototype,VW=zC.hasOwnProperty,WW=zC.propertyIsEnumerable,$W=$C((function(){return arguments})())?$C:function(e){return c2(e)&&VW.call(e,"callee")&&!WW.call(e,"callee")};function zW(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var KC=ac?ac.isConcatSpreadable:void 0;function KW(e){return _W(e)||$W(e)||!!(KC&&e&&e[KC])}function JC(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=KW),o||(o=[]);++i<a;){var s=e[i];t>0&&r(s)?t>1?JC(s,t-1,r,n,o):zW(o,s):n||(o[o.length]=s)}return o}function JW(e){return e!=null&&e.length?JC(e,1):[]}function YW(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}function QW(e){for(var t=-1,r=e==null?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o}function ZW(e){return typeof e=="function"?e:qW}function e$(e){return e&&e.length?e[0]:void 0}function t$(e){var t=e==null?0:e.length;return t?YW(e,1,t):[]}var r$=9007199254740991,l2=4294967295,n$=Math.min;function o$(e,t){if(e=HW(e),e<1||e>r$)return[];var r=l2,n=n$(e,l2);t=ZW(t),e-=l2;for(var o=GW(n,t);++r<e;)t(r);return o}const i$=(e,t)=>(t.node&&t.node.kind==="text"&&(e+=t.node.text),e);class a${constructor(){this.kind="line"}get columns(){return[]}}class Mu{constructor(t,r){this.kind="row",this.operator=r,this.columns=t}pad(t,r="right"){if(t<this.columns.length)throw new Error("no");const n=o$(t-this.columns.length).map(()=>"__pad__");return r==="right"?[...n,...this.columns]:[...this.columns,...n]}}const u2=e=>e.childNodes.reduce(i$,"").split(""),s$=e=>{if(!e||!e.kind)return[];if(e.kind==="msrow")throw new Error("msrow in msrow?");if(e.kind==="mo")return console.warn("mo that is not 1st node in msrow?"),u2(e);if(e.kind==="mn")return u2(e);if(e.toCHTML)return e},c$=e=>{if(!(!e||!e.kind)){if(e.kind==="msrow"){if(!e.childNodes||e.childNodes.length===0)return new Mu([]);const t=e$(e.childNodes),r=JW((t&&t.kind==="mo"?t$(e.childNodes):e.childNodes).map(s$));return new Mu(r,t.kind==="mo"?t:void 0)}if(e.kind==="mn"){const t=u2(e);return new Mu(t,void 0)}if(e.kind==="mo")return console.warn("mo on its own row?"),new Mu([],e);if(e.kind==="msline")return new a$;if(e.toCHTML)return new Mu([e])}},l$=e=>!e||!e.childNodes?[]:QW(e.childNodes.map(c$));class YC extends ot.CHTMLWrapper{constructor(t,r,n=null){super(t,r,n),this.ce=this.adaptor.document.createElement.bind(this.adaptor.document)}toCHTML(t){const r=this.standardCHTMLnode(t),n=l$(this),o=n.reduce((a,s)=>(s&&s.columns.length>a&&(a=s.columns.length),a),0),i=this.ce("table");r.appendChild(i),n.forEach(a=>{const s=this.ce("tr");if(i.appendChild(s),a.kind==="row"){const c=this.ce("td");s.appendChild(c),a.operator&&a.operator.toCHTML?(c.setAttribute("class","inner"),a.operator.toCHTML(c)):c.textContent="",a.pad(o,"right").forEach(l=>{const u=this.ce("td");s.appendChild(u),l==="__pad__"?u.textContent="":typeof l=="string"?u.textContent=l:l.kind==="none"?u.textContent="":l.toCHTML&&(u.setAttribute("class","inner"),l.toCHTML(u))})}else if(a.kind==="line"){const c=this.ce("td");s.appendChild(c),c.setAttribute("colspan",o+1),c.setAttribute("class","mjx-line"),c.textContent=""}})}}YC.styles={"mjx-mstack > table":{"line-height":"initial",border:"solid 0px red","border-spacing":"0em","border-collapse":"separate"},"mjx-mstack > table > tr":{"line-height":"initial"},"mjx-mstack > table > tr > td":{border:"solid 0px blue","font-family":"sans-serif","line-height":"initial"},"mjx-mstack > table > tr > td.inner":{"font-family":"inherit"},"mjx-mstack > table > tr > .mjx-line":{padding:0,"border-top":"solid 1px black"},".TEX-A":{"font-family":"MJXZERO, MJXTEX !important"}};class u$ extends ce.AbstractMmlNode{get kind(){return"none"}}class p$ extends ce.AbstractMmlNode{get kind(){return"mstack"}}class d$ extends ce.AbstractMmlNode{get kind(){return"msrow"}}class h$ extends ce.AbstractMmlNode{get kind(){return"msline"}}const f$={mstack:YC},m$={mstack:p$,msline:h$,msrow:d$,none:u$};var p2={exports:{}},sc=1e3,cc=sc*60,lc=cc*60,Ji=lc*24,y$=Ji*7,g$=Ji*365.25,b$=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return v$(e);if(r==="number"&&isFinite(e))return t.long?E$(e):S$(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function v$(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*g$;case"weeks":case"week":case"w":return r*y$;case"days":case"day":case"d":return r*Ji;case"hours":case"hour":case"hrs":case"hr":case"h":return r*lc;case"minutes":case"minute":case"mins":case"min":case"m":return r*cc;case"seconds":case"second":case"secs":case"sec":case"s":return r*sc;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function S$(e){var t=Math.abs(e);return t>=Ji?Math.round(e/Ji)+"d":t>=lc?Math.round(e/lc)+"h":t>=cc?Math.round(e/cc)+"m":t>=sc?Math.round(e/sc)+"s":e+"ms"}function E$(e){var t=Math.abs(e);return t>=Ji?Sy(e,t,Ji,"day"):t>=lc?Sy(e,t,lc,"hour"):t>=cc?Sy(e,t,cc,"minute"):t>=sc?Sy(e,t,sc,"second"):e+" ms"}function Sy(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}function x$(e){r.debug=r,r.default=r,r.coerce=c,r.disable=a,r.enable=o,r.enabled=s,r.humanize=b$,r.destroy=l,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let p=0;for(let d=0;d<u.length;d++)p=(p<<5)-p+u.charCodeAt(d),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(u){let p,d=null,h,f;function m(...v){if(!m.enabled)return;const g=m,b=Number(new Date);g.diff=b-(p||b),g.prev=p,g.curr=b,p=b,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let S=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(E,x)=>{if(E==="%%")return"%";S++;const O=r.formatters[x];if(typeof O=="function"){const A=v[S];E=O.call(g,A),v.splice(S,1),S--}return E}),r.formatArgs.call(g,v),(g.log||r.log).apply(g,v)}return m.namespace=u,m.useColors=r.useColors(),m.color=r.selectColor(u),m.extend=n,m.destroy=r.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==r.namespaces&&(h=r.namespaces,f=r.enabled(u)),f),set:v=>{d=v}}),typeof r.init=="function"&&r.init(m),m}function n(u,p){const d=r(this.namespace+(typeof p>"u"?":":p)+u);return d.log=this.log,d}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];const p=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const d of p)d[0]==="-"?r.skips.push(d.slice(1)):r.names.push(d)}function i(u,p){let d=0,h=0,f=-1,m=0;for(;d<u.length;)if(h<p.length&&(p[h]===u[d]||p[h]==="*"))p[h]==="*"?(f=h,m=d,h++):(d++,h++);else if(f!==-1)h=f+1,m++,d=m;else return!1;for(;h<p.length&&p[h]==="*";)h++;return h===p.length}function a(){const u=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),u}function s(u){for(const p of r.skips)if(i(u,p))return!1;for(const p of r.names)if(i(u,p))return!0;return!1}function c(u){return u instanceof Error?u.stack||u.message:u}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var M$=x$;(function(e,t){t.formatArgs=n,t.save=o,t.load=i,t.useColors=r,t.storage=a(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let u=0,p=0;c[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(u++,d==="%c"&&(p=u))}),c.splice(p,0,l)}t.log=console.debug||console.log||(()=>{});function o(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function i(){let c;try{c=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c={}.DEBUG),c}function a(){try{return localStorage}catch{}}e.exports=M$(t);const{formatters:s}=e.exports;s.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(p2,p2.exports);var O$=p2.exports;const Xt={};Xt.ROUND_BRACKETS="round_brackets",Xt.SQUARE_BRACKETS="square_brackets",Xt.DOLLAR="dollar",Xt.DOUBLE_DOLLAR="double_dollar";const QC={[Xt.ROUND_BRACKETS]:["\\(","\\)"],[Xt.SQUARE_BRACKETS]:["\\[","\\]"],[Xt.DOLLAR]:["$","$"],[Xt.DOUBLE_DOLLAR]:["$$","$$"]},ZC=(e,t)=>{t===Xt.SQUARE_BRACKETS&&(console.warn("\\[...\\] is not supported yet"),t=Xt.ROUND_BRACKETS),t===Xt.DOUBLE_DOLLAR&&(console.warn("$$...$$ is not supported yet"),t=Xt.DOLLAR);const[r,n]=QC[t]||QC[Xt.ROUND_BRACKETS];return`${r}${e}${n}`},eN=e=>(e.indexOf("\\displaystyle")!==-1&&(console.warn("\\displaystyle is not supported - removing"),e=e.replace("\\displaystyle","").trim()),e.startsWith("$$")&&e.endsWith("$$")?(console.warn("$$ syntax is not yet supported"),{unwrapped:e.substring(2,e.length-2),wrapType:Xt.DOLLAR}):e.startsWith("$")&&e.endsWith("$")?{unwrapped:e.substring(1,e.length-1),wrapType:Xt.DOLLAR}:e.startsWith("\\[")&&e.endsWith("\\]")?(console.warn("\\[..\\] syntax is not yet supported"),{unwrapped:e.substring(2,e.length-2),wrapType:Xt.ROUND_BRACKETS}):e.startsWith("\\(")&&e.endsWith("\\)")?{unwrapped:e.substring(2,e.length-2),wrapType:Xt.ROUND_BRACKETS}:{unwrapped:e,wrapType:Xt.ROUND_BRACKETS});function d2(e){let t,r=e[0],n=1;for(;n<e.length;){const o=e[n],i=e[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(t=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...a)=>r.call(t,...a)),t=void 0)}return r}typeof window<"u"&&hT(mT());let Ou=!1;up.engineReady().then(()=>{Ou=!0});const A$=new na.SerializedMmlVisitor,tN=e=>A$.visitTree(e),T$=O$("pie-lib:math-rendering"),C$=/\\embed\{newLine\}\[\]/g,N$="\\newline ",Yi=()=>{const e="@pie-lib/math-rendering@2";return typeof window<"u"?(window[e]||(window[e]={}),window[e]):{}},_$=()=>Yi().opts||{},w$=e=>{if(e.dataset.mathHandled)return;let t="innerText";e.textContent&&(t="textContent"),e[t]&&(e[t]=ZC(eN(e[t]).unwrapped),e[t]=e[t].replace(C$,N$),e.dataset.mathHandled=!0)},R$=(e=document)=>{e.querySelectorAll("[data-latex]").forEach(t=>w$(t))},L$=(e=document)=>{e.querySelectorAll("math").forEach(t=>t.setAttribute("displaystyle","true"))};class I$ extends dO{processMath(t){const r=this.adaptor;for(const n of Array.from(t))r.kind(r.parent(n))==="mjx-assistive-mml"&&t.delete(n);return super.processMath(t)}}const rN=(e,t=document)=>{e=e||_$(),e.useSingleDollar&&console.warn("[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)");const r=UC.filter(p=>p!=="bussproofs");r.push("autoload");const n={parallelogram:"\\lower.2em{\\Huge\\unicode{x25B1}}",overarc:"\\overparen",napprox:"\\not\\approx",longdiv:"\\enclose{longdiv}",abs:["\\left|#1\\right|",1]},o=e.useSingleDollar?{packages:r,macros:n,inlineMath:[["$","$"],["\\(","\\)"]],processEscapes:!0}:{packages:r,macros:n},i={parseError:function(p){console.log("error:",p),this.error(this.adaptor.textContent(p).replace(/\n.*/g,""))},FindMathML:new I$};let a;ra.MathJax&&ra.MathJax.version!==br.mathjax.version&&(window.MathJax._=window.MathJax._||{},window.MathJax.config=window.MathJax.config||{},a=window.MathJax,Object.assign(ra.MathJax,br.mathjax));const s={fontURL:`https://unpkg.com/mathjax-full@${br.mathjax.version}/ts/output/chtml/fonts/tex-woff-v2`,wrapperFactory:new qb({...qb.defaultNodes,...f$})},c=new EO(i),l=new r0({...r0.defaultNodes,...m$}),u=wM(sO(yS(br.mathjax.handlers.handlesDocument(t))),c).create(t,{compileError:(p,d,h)=>{console.log("bad math?:",d),console.error(h)},typesetError:function(p,d,h){console.log("typeset error"),console.error(h),p.typesetError(d,h)},sre:{speech:"deep"},enrichSpeech:"deep",InputJax:[new tA(o),c],OutputJax:new aT(s),DomStrings:new pT({skipHtmlTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml","mjx-assistive-mml","mjx-container"]})});return c.setMmlFactory(l),a&&(window.MathJax=a),u};let h2=!1;const P$=e=>{if(typeof window>"u")return{Typeset:()=>({})};const t=rN(e);return{version:br.mathjax.version,html:t,Typeset:function(...r){const n=(o=!1)=>{let i=this.html.findMath(r.length?{elements:r}:{}).compile();if(!o&&Ou)try{i=i.enrich()}catch{console.warn("[math-rendering] Speech-rule-engine not fully initialized, skipping enrichment"),Ou=!1}i=i.getMetrics().typeset();try{i=i.assistiveMml()}catch(a){console.warn("[math-rendering] Failed to attach assistive MathML:",a)}if(!o&&Ou)try{i=i.attachSpeech()}catch{console.warn("[math-rendering] Speech-rule-engine not fully initialized, skipping speech attachment"),Ou=!1}i=i.addMenu().updateDocument(),!h2&&typeof d2([i,"access",a=>a.math,"access",a=>a.list,"optionalAccess",a=>a.next,"optionalAccess",a=>a.data])=="object"&&(h2=!0);try{const a=i.math.list;if(a)for(let s=a.next;typeof s.data!="symbol";s=s.next){const c=tN(s.data.root).replaceAll(`
66
+ `,"");s.data.typesetRoot.setAttribute("data-mathml",c),s.data.typesetRoot.setAttribute("tabindex","-1")}}catch(a){console.error(a.toString())}i.clear()};h2||n(!0),br.mathjax.handleRetriesFor(()=>{n()})}}},k$=(e,t)=>{if(window&&window.MathJax&&window.MathJax.customKey&&window.MathJax.customKey=="@pie-lib/math-rendering-accessible@1")return;const r=typeof e=="string";let n=document.body;if(r){const o=document.createElement("div");o.innerHTML=e,n=o}if(R$(n),L$(n),r){const o=rN(void 0,n).findMath().compile().getMetrics().typeset().updateDocument().math.list.next;return o?tN(o.data.root).replaceAll(`
67
+ `,""):""}if(Yi().instance||(Yi().instance=P$(t)),!e){T$("el is undefined");return}if(e instanceof Element&&d2([Yi,"call",o=>o(),"access",o=>o.instance,"optionalAccess",o=>o.Typeset]))Yi().instance.Typeset(e);else if(e.length&&d2([Yi,"call",o=>o(),"access",o=>o.instance,"optionalAccess",o=>o.Typeset])){const o=Array.from(e);Yi().instance.Typeset(...o)}};SA.styles={"mjx-mspace":{display:"block","text-align":"center",height:"5px"}};var f2={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(y,()=>(()=>{var r={2167:(a,s)=>{function c(p,d){return d===void 0&&(d=Object),d&&typeof d.freeze=="function"?d.freeze(p):p}var l=c({HTML:"text/html",isHTML:function(p){return p===l.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),u=c({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(p){return p===u.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});s.assign=function(p,d){if(p===null||typeof p!="object")throw new TypeError("target is not an object");for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(p[h]=d[h]);return p},s.find=function(p,d,h){if(h===void 0&&(h=Array.prototype),p&&typeof h.find=="function")return h.find.call(p,d);for(var f=0;f<p.length;f++)if(Object.prototype.hasOwnProperty.call(p,f)){var m=p[f];if(d.call(void 0,m,f,p))return m}},s.freeze=c,s.MIME_TYPE=l,s.NAMESPACE=u},6129:(a,s,c)=>{var l=c(2167),u=c(1146),p=c(1045),d=c(6925),h=u.DOMImplementation,f=l.NAMESPACE,m=d.ParseError,v=d.XMLReader;function g(M){return M.replace(/\r[\n\u0085]/g,`
68
+ `).replace(/[\r\u0085\u2028]/g,`
69
+ `)}function b(M){this.options=M||{locator:{}}}function S(){this.cdata=!1}function E(M,C){C.lineNumber=M.lineNumber,C.columnNumber=M.columnNumber}function x(M){if(M)return`
70
+ @`+(M.systemId||"")+"#[line:"+M.lineNumber+",col:"+M.columnNumber+"]"}function O(M,C,w){return typeof M=="string"?M.substr(C,w):M.length>=C+w||C?new java.lang.String(M,C,w)+"":M}function A(M,C){M.currentElement?M.currentElement.appendChild(C):M.doc.appendChild(C)}b.prototype.parseFromString=function(M,C){var w=this.options,k=new v,L=w.domBuilder||new S,D=w.errorHandler,P=w.locator,F=w.xmlns||{},G=/\/x?html?$/.test(C),Q=G?p.HTML_ENTITIES:p.XML_ENTITIES;P&&L.setDocumentLocator(P),k.errorHandler=(function(j,B,H){if(!j){if(B instanceof S)return B;j=B}var V={},X=j instanceof Function;function W(Y){var J=j[Y];!J&&X&&(J=j.length==2?function(ae){j(Y,ae)}:j),V[Y]=J&&(function(ae){J("[xmldom "+Y+"] "+ae+x(H))})||(function(){})}return H=H||{},W("warning"),W("error"),W("fatalError"),V})(D,L,P),k.domBuilder=w.domBuilder||L,G&&(F[""]=f.HTML),F.xml=F.xml||f.XML;var U=w.normalizeLineEndings||g;return M&&typeof M=="string"?k.parse(U(M),F,Q):k.errorHandler.error("invalid doc source"),L.doc},S.prototype={startDocument:function(){this.doc=new h().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(M,C,w,k){var L=this.doc,D=L.createElementNS(M,w||C),P=k.length;A(this,D),this.currentElement=D,this.locator&&E(this.locator,D);for(var F=0;F<P;F++){M=k.getURI(F);var G=k.getValue(F),Q=(w=k.getQName(F),L.createAttributeNS(M,w));this.locator&&E(k.getLocator(F),Q),Q.value=Q.nodeValue=G,D.setAttributeNode(Q)}},endElement:function(M,C,w){var k=this.currentElement;k.tagName,this.currentElement=k.parentNode},startPrefixMapping:function(M,C){},endPrefixMapping:function(M){},processingInstruction:function(M,C){var w=this.doc.createProcessingInstruction(M,C);this.locator&&E(this.locator,w),A(this,w)},ignorableWhitespace:function(M,C,w){},characters:function(M,C,w){if(M=O.apply(this,arguments)){if(this.cdata)var k=this.doc.createCDATASection(M);else k=this.doc.createTextNode(M);this.currentElement?this.currentElement.appendChild(k):/^\s*$/.test(M)&&this.doc.appendChild(k),this.locator&&E(this.locator,k)}},skippedEntity:function(M){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(M){(this.locator=M)&&(M.lineNumber=0)},comment:function(M,C,w){M=O.apply(this,arguments);var k=this.doc.createComment(M);this.locator&&E(this.locator,k),A(this,k)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(M,C,w){var k=this.doc.implementation;if(k&&k.createDocumentType){var L=k.createDocumentType(M,C,w);this.locator&&E(this.locator,L),A(this,L),this.doc.doctype=L}},warning:function(M){console.warn("[xmldom warning] "+M,x(this.locator))},error:function(M){console.error("[xmldom error] "+M,x(this.locator))},fatalError:function(M){throw new m(M,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(M){S.prototype[M]=function(){return null}}),s.DOMParser=b},1146:(a,s,c)=>{var l=c(2167),u=l.find,p=l.NAMESPACE;function d(T){return T!==""}function h(T,N){return T.hasOwnProperty(N)||(T[N]=!0),T}function f(T){if(!T)return[];var N=(function(I){return I?I.split(/[\t\n\f\r ]+/).filter(d):[]})(T);return Object.keys(N.reduce(h,{}))}function m(T,N){for(var I in T)Object.prototype.hasOwnProperty.call(T,I)&&(N[I]=T[I])}function v(T,N){var I=T.prototype;if(!(I instanceof N)){let q=function(){};q.prototype=N.prototype,m(I,q=new q),T.prototype=I=q}I.constructor!=T&&(typeof T!="function"&&console.error("unknown Class:"+T),I.constructor=T)}var g={},b=g.ELEMENT_NODE=1,S=g.ATTRIBUTE_NODE=2,E=g.TEXT_NODE=3,x=g.CDATA_SECTION_NODE=4,O=g.ENTITY_REFERENCE_NODE=5,A=g.ENTITY_NODE=6,M=g.PROCESSING_INSTRUCTION_NODE=7,C=g.COMMENT_NODE=8,w=g.DOCUMENT_NODE=9,k=g.DOCUMENT_TYPE_NODE=10,L=g.DOCUMENT_FRAGMENT_NODE=11,D=g.NOTATION_NODE=12,P={},F={},G=(P.INDEX_SIZE_ERR=(F[1]="Index size error",1),P.DOMSTRING_SIZE_ERR=(F[2]="DOMString size error",2),P.HIERARCHY_REQUEST_ERR=(F[3]="Hierarchy request error",3)),Q=(P.WRONG_DOCUMENT_ERR=(F[4]="Wrong document",4),P.INVALID_CHARACTER_ERR=(F[5]="Invalid character",5),P.NO_DATA_ALLOWED_ERR=(F[6]="No data allowed",6),P.NO_MODIFICATION_ALLOWED_ERR=(F[7]="No modification allowed",7),P.NOT_FOUND_ERR=(F[8]="Not found",8)),U=(P.NOT_SUPPORTED_ERR=(F[9]="Not supported",9),P.INUSE_ATTRIBUTE_ERR=(F[10]="Attribute in use",10));function j(T,N){if(N instanceof Error)var I=N;else I=this,Error.call(this,F[T]),this.message=F[T],Error.captureStackTrace&&Error.captureStackTrace(this,j);return I.code=T,N&&(this.message=this.message+": "+N),I}function B(){}function H(T,N){this._node=T,this._refresh=N,V(this)}function V(T){var N=T._node._inc||T._node.ownerDocument._inc;if(T._inc!==N){var I=T._refresh(T._node);if(lN(T,"length",I.length),!T.$$length||I.length<T.$$length)for(var q=I.length;q in T;q++)Object.prototype.hasOwnProperty.call(T,q)&&delete T[q];m(I,T),T._inc=N}}function X(){}function W(T,N){for(var I=T.length;I--;)if(T[I]===N)return I}function Y(T,N,I,q){if(q?N[W(N,q)]=I:N[N.length++]=I,T){I.ownerElement=T;var ie=T.ownerDocument;ie&&(q&&Vt(ie,T,q),(function(ge,et,Be){ge&&ge._inc++,Be.namespaceURI===p.XMLNS&&(et._nsMap[Be.prefix?Be.localName:""]=Be.value)})(ie,T,I))}}function J(T,N,I){var q=W(N,I);if(!(q>=0))throw new j(Q,new Error(T.tagName+"@"+I));for(var ie=N.length-1;q<ie;)N[q]=N[++q];if(N.length=ie,T){var ge=T.ownerDocument;ge&&(Vt(ge,T,I),I.ownerElement=null)}}function ae(){}function ye(){}function Xe(T){return(T=="<"?"&lt;":T==">"&&"&gt;")||T=="&"&&"&amp;"||T=='"'&&"&quot;"||"&#"+T.charCodeAt()+";"}function Fe(T,N){if(N(T))return!0;if(T=T.firstChild)do if(Fe(T,N))return!0;while(T=T.nextSibling)}function ut(){this.ownerDocument=this}function Vt(T,N,I,q){T&&T._inc++,I.namespaceURI===p.XMLNS&&delete N._nsMap[I.prefix?I.localName:""]}function pn(T,N,I){if(T&&T._inc){T._inc++;var q=N.childNodes;if(I)q[q.length++]=I;else{for(var ie=N.firstChild,ge=0;ie;)q[ge++]=ie,ie=ie.nextSibling;q.length=ge,delete q[q.length]}}}function lr(T,N){var I=N.previousSibling,q=N.nextSibling;return I?I.nextSibling=q:T.firstChild=q,q?q.previousSibling=I:T.lastChild=I,N.parentNode=null,N.previousSibling=null,N.nextSibling=null,pn(T.ownerDocument,T),N}function ur(T){return T&&T.nodeType===ye.DOCUMENT_TYPE_NODE}function Ze(T){return T&&T.nodeType===ye.ELEMENT_NODE}function dn(T){return T&&T.nodeType===ye.TEXT_NODE}function Zo(T,N){var I=T.childNodes||[];if(u(I,Ze)||ur(N))return!1;var q=u(I,ur);return!(N&&q&&I.indexOf(q)>I.indexOf(N))}function uc(T,N){var I=T.childNodes||[];if(u(I,function(ie){return Ze(ie)&&ie!==N}))return!1;var q=u(I,ur);return!(N&&q&&I.indexOf(q)>I.indexOf(N))}function kn(T,N,I){var q=T.childNodes||[],ie=N.childNodes||[];if(N.nodeType===ye.DOCUMENT_FRAGMENT_NODE){var ge=ie.filter(Ze);if(ge.length>1||u(ie,dn))throw new j(G,"More than one element or text in fragment");if(ge.length===1&&!Zo(T,I))throw new j(G,"Element in fragment can not be inserted before doctype")}if(Ze(N)&&!Zo(T,I))throw new j(G,"Only one element can be added and only after doctype");if(ur(N)){if(u(q,ur))throw new j(G,"Only one doctype is allowed");var et=u(q,Ze);if(I&&q.indexOf(et)<q.indexOf(I))throw new j(G,"Doctype can only be inserted before an element");if(!I&&et)throw new j(G,"Doctype can not be appended since element is present")}}function Qi(T,N,I){var q=T.childNodes||[],ie=N.childNodes||[];if(N.nodeType===ye.DOCUMENT_FRAGMENT_NODE){var ge=ie.filter(Ze);if(ge.length>1||u(ie,dn))throw new j(G,"More than one element or text in fragment");if(ge.length===1&&!uc(T,I))throw new j(G,"Element in fragment can not be inserted before doctype")}if(Ze(N)&&!uc(T,I))throw new j(G,"Only one element can be added and only after doctype");if(ur(N)){if(u(q,function(Be){return ur(Be)&&Be!==I}))throw new j(G,"Only one doctype is allowed");var et=u(q,Ze);if(I&&q.indexOf(et)<q.indexOf(I))throw new j(G,"Doctype can only be inserted before an element")}}function wt(T,N,I,q){(function(Jt,gr,Vr){if(!(function(Yt){return Yt&&(Yt.nodeType===ye.DOCUMENT_NODE||Yt.nodeType===ye.DOCUMENT_FRAGMENT_NODE||Yt.nodeType===ye.ELEMENT_NODE)})(Jt))throw new j(G,"Unexpected parent node type "+Jt.nodeType);if(Vr&&Vr.parentNode!==Jt)throw new j(Q,"child not in parent");if(!(function(Yt){return Yt&&(Ze(Yt)||dn(Yt)||ur(Yt)||Yt.nodeType===ye.DOCUMENT_FRAGMENT_NODE||Yt.nodeType===ye.COMMENT_NODE||Yt.nodeType===ye.PROCESSING_INSTRUCTION_NODE)})(gr)||ur(gr)&&Jt.nodeType!==ye.DOCUMENT_NODE)throw new j(G,"Unexpected node type "+gr.nodeType+" for parent node type "+Jt.nodeType)})(T,N,I),T.nodeType===ye.DOCUMENT_NODE&&(q||kn)(T,N,I);var ie=N.parentNode;if(ie&&ie.removeChild(N),N.nodeType===L){var ge=N.firstChild;if(ge==null)return N;var et=N.lastChild}else ge=et=N;var Be=I?I.previousSibling:T.lastChild;ge.previousSibling=Be,et.nextSibling=I,Be?Be.nextSibling=ge:T.firstChild=ge,I==null?T.lastChild=et:I.previousSibling=et;do ge.parentNode=T;while(ge!==et&&(ge=ge.nextSibling));return pn(T.ownerDocument||T,T),N.nodeType==L&&(N.firstChild=N.lastChild=null),N}function Wt(){this._nsMap={}}function yo(){}function Zi(){}function Au(){}function m2(){}function y2(){}function Ey(){}function nN(){}function oN(){}function g2(){}function xy(){}function b2(){}function iN(){}function aN(T,N){var I=[],q=this.nodeType==9&&this.documentElement||this,ie=q.prefix,ge=q.namespaceURI;if(ge&&ie==null&&(ie=q.lookupPrefix(ge))==null)var et=[{namespace:ge,prefix:null}];return pc(this,I,T,N,et),I.join("")}function sN(T,N,I){var q=T.prefix||"",ie=T.namespaceURI;if(!ie||q==="xml"&&ie===p.XML||ie===p.XMLNS)return!1;for(var ge=I.length;ge--;){var et=I[ge];if(et.prefix===q)return et.namespace!==ie}return!0}function v2(T,N,I){T.push(" ",N,'="',I.replace(/[<>&"\t\n\r]/g,Xe),'"')}function pc(T,N,I,q,ie){if(ie||(ie=[]),q){if(!(T=q(T)))return;if(typeof T=="string")return void N.push(T)}switch(T.nodeType){case b:var ge=T.attributes,et=ge.length,Be=T.firstChild,Jt=T.tagName,gr=Jt;if(!(I=p.isHTML(T.namespaceURI)||I)&&!T.prefix&&T.namespaceURI){for(var Vr,Yt=0;Yt<ge.length;Yt++)if(ge.item(Yt).name==="xmlns"){Vr=ge.item(Yt).value;break}if(!Vr){for(var ea=ie.length-1;ea>=0;ea--)if((dc=ie[ea]).prefix===""&&dc.namespace===T.namespaceURI){Vr=dc.namespace;break}}if(Vr!==T.namespaceURI)for(ea=ie.length-1;ea>=0;ea--){var dc;if((dc=ie[ea]).namespace===T.namespaceURI){dc.prefix&&(gr=dc.prefix+":"+Jt);break}}}N.push("<",gr);for(var ta=0;ta<et;ta++)(go=ge.item(ta)).prefix=="xmlns"?ie.push({prefix:go.localName,namespace:go.value}):go.nodeName=="xmlns"&&ie.push({prefix:"",namespace:go.value});for(ta=0;ta<et;ta++){var go,hc,My;sN(go=ge.item(ta),0,ie)&&(v2(N,(hc=go.prefix||"")?"xmlns:"+hc:"xmlns",My=go.namespaceURI),ie.push({prefix:hc,namespace:My})),pc(go,N,I,q,ie)}if(Jt===gr&&sN(T,0,ie)&&(v2(N,(hc=T.prefix||"")?"xmlns:"+hc:"xmlns",My=T.namespaceURI),ie.push({prefix:hc,namespace:My})),Be||I&&!/^(?:meta|link|img|br|hr|input)$/i.test(Jt)){if(N.push(">"),I&&/^script$/i.test(Jt))for(;Be;)Be.data?N.push(Be.data):pc(Be,N,I,q,ie.slice()),Be=Be.nextSibling;else for(;Be;)pc(Be,N,I,q,ie.slice()),Be=Be.nextSibling;N.push("</",gr,">")}else N.push("/>");return;case w:case L:for(Be=T.firstChild;Be;)pc(Be,N,I,q,ie.slice()),Be=Be.nextSibling;return;case S:return v2(N,T.name,T.value);case E:return N.push(T.data.replace(/[<&>]/g,Xe));case x:return N.push("<![CDATA[",T.data,"]]>");case C:return N.push("<!--",T.data,"-->");case k:var uN=T.publicId,fc=T.systemId;if(N.push("<!DOCTYPE ",T.name),uN)N.push(" PUBLIC ",uN),fc&&fc!="."&&N.push(" ",fc),N.push(">");else if(fc&&fc!=".")N.push(" SYSTEM ",fc,">");else{var pN=T.internalSubset;pN&&N.push(" [",pN,"]"),N.push(">")}return;case M:return N.push("<?",T.target," ",T.data,"?>");case O:return N.push("&",T.nodeName,";");default:N.push("??",T.nodeName)}}function cN(T,N,I){var q;switch(N.nodeType){case b:(q=N.cloneNode(!1)).ownerDocument=T;case L:break;case S:I=!0}if(q||(q=N.cloneNode(!1)),q.ownerDocument=T,q.parentNode=null,I)for(var ie=N.firstChild;ie;)q.appendChild(cN(T,ie,I)),ie=ie.nextSibling;return q}function S2(T,N,I){var q=new N.constructor;for(var ie in N)if(Object.prototype.hasOwnProperty.call(N,ie)){var ge=N[ie];typeof ge!="object"&&ge!=q[ie]&&(q[ie]=ge)}switch(N.childNodes&&(q.childNodes=new B),q.ownerDocument=T,q.nodeType){case b:var et=N.attributes,Be=q.attributes=new X,Jt=et.length;Be._ownerElement=q;for(var gr=0;gr<Jt;gr++)q.setAttributeNode(S2(T,et.item(gr),!0));break;case S:I=!0}if(I)for(var Vr=N.firstChild;Vr;)q.appendChild(S2(T,Vr,I)),Vr=Vr.nextSibling;return q}function lN(T,N,I){T[N]=I}P.INVALID_STATE_ERR=(F[11]="Invalid state",11),P.SYNTAX_ERR=(F[12]="Syntax error",12),P.INVALID_MODIFICATION_ERR=(F[13]="Invalid modification",13),P.NAMESPACE_ERR=(F[14]="Invalid namespace",14),P.INVALID_ACCESS_ERR=(F[15]="Invalid access",15),j.prototype=Error.prototype,m(P,j),B.prototype={length:0,item:function(T){return T>=0&&T<this.length?this[T]:null},toString:function(T,N){for(var I=[],q=0;q<this.length;q++)pc(this[q],I,T,N);return I.join("")},filter:function(T){return Array.prototype.filter.call(this,T)},indexOf:function(T){return Array.prototype.indexOf.call(this,T)}},H.prototype.item=function(T){return V(this),this[T]||null},v(H,B),X.prototype={length:0,item:B.prototype.item,getNamedItem:function(T){for(var N=this.length;N--;){var I=this[N];if(I.nodeName==T)return I}},setNamedItem:function(T){var N=T.ownerElement;if(N&&N!=this._ownerElement)throw new j(U);var I=this.getNamedItem(T.nodeName);return Y(this._ownerElement,this,T,I),I},setNamedItemNS:function(T){var N,I=T.ownerElement;if(I&&I!=this._ownerElement)throw new j(U);return N=this.getNamedItemNS(T.namespaceURI,T.localName),Y(this._ownerElement,this,T,N),N},removeNamedItem:function(T){var N=this.getNamedItem(T);return J(this._ownerElement,this,N),N},removeNamedItemNS:function(T,N){var I=this.getNamedItemNS(T,N);return J(this._ownerElement,this,I),I},getNamedItemNS:function(T,N){for(var I=this.length;I--;){var q=this[I];if(q.localName==N&&q.namespaceURI==T)return q}return null}},ae.prototype={hasFeature:function(T,N){return!0},createDocument:function(T,N,I){var q=new ut;if(q.implementation=this,q.childNodes=new B,q.doctype=I||null,I&&q.appendChild(I),N){var ie=q.createElementNS(T,N);q.appendChild(ie)}return q},createDocumentType:function(T,N,I){var q=new Ey;return q.name=T,q.nodeName=T,q.publicId=N||"",q.systemId=I||"",q}},ye.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(T,N){return wt(this,T,N)},replaceChild:function(T,N){wt(this,T,N,Qi),N&&this.removeChild(N)},removeChild:function(T){return lr(this,T)},appendChild:function(T){return this.insertBefore(T,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(T){return S2(this.ownerDocument||this,this,T)},normalize:function(){for(var T=this.firstChild;T;){var N=T.nextSibling;N&&N.nodeType==E&&T.nodeType==E?(this.removeChild(N),T.appendData(N.data)):(T.normalize(),T=N)}},isSupported:function(T,N){return this.ownerDocument.implementation.hasFeature(T,N)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(T){for(var N=this;N;){var I=N._nsMap;if(I){for(var q in I)if(Object.prototype.hasOwnProperty.call(I,q)&&I[q]===T)return q}N=N.nodeType==S?N.ownerDocument:N.parentNode}return null},lookupNamespaceURI:function(T){for(var N=this;N;){var I=N._nsMap;if(I&&Object.prototype.hasOwnProperty.call(I,T))return I[T];N=N.nodeType==S?N.ownerDocument:N.parentNode}return null},isDefaultNamespace:function(T){return this.lookupPrefix(T)==null}},m(g,ye),m(g,ye.prototype),ut.prototype={nodeName:"#document",nodeType:w,doctype:null,documentElement:null,_inc:1,insertBefore:function(T,N){if(T.nodeType==L){for(var I=T.firstChild;I;){var q=I.nextSibling;this.insertBefore(I,N),I=q}return T}return wt(this,T,N),T.ownerDocument=this,this.documentElement===null&&T.nodeType===b&&(this.documentElement=T),T},removeChild:function(T){return this.documentElement==T&&(this.documentElement=null),lr(this,T)},replaceChild:function(T,N){wt(this,T,N,Qi),T.ownerDocument=this,N&&this.removeChild(N),Ze(T)&&(this.documentElement=T)},importNode:function(T,N){return cN(this,T,N)},getElementById:function(T){var N=null;return Fe(this.documentElement,function(I){if(I.nodeType==b&&I.getAttribute("id")==T)return N=I,!0}),N},getElementsByClassName:function(T){var N=f(T);return new H(this,function(I){var q=[];return N.length>0&&Fe(I.documentElement,function(ie){if(ie!==I&&ie.nodeType===b){var ge=ie.getAttribute("class");if(ge){var et=T===ge;if(!et){var Be=f(ge);et=N.every((Jt=Be,function(gr){return Jt&&Jt.indexOf(gr)!==-1}))}et&&q.push(ie)}}var Jt}),q})},createElement:function(T){var N=new Wt;return N.ownerDocument=this,N.nodeName=T,N.tagName=T,N.localName=T,N.childNodes=new B,(N.attributes=new X)._ownerElement=N,N},createDocumentFragment:function(){var T=new xy;return T.ownerDocument=this,T.childNodes=new B,T},createTextNode:function(T){var N=new Au;return N.ownerDocument=this,N.appendData(T),N},createComment:function(T){var N=new m2;return N.ownerDocument=this,N.appendData(T),N},createCDATASection:function(T){var N=new y2;return N.ownerDocument=this,N.appendData(T),N},createProcessingInstruction:function(T,N){var I=new b2;return I.ownerDocument=this,I.tagName=I.nodeName=I.target=T,I.nodeValue=I.data=N,I},createAttribute:function(T){var N=new yo;return N.ownerDocument=this,N.name=T,N.nodeName=T,N.localName=T,N.specified=!0,N},createEntityReference:function(T){var N=new g2;return N.ownerDocument=this,N.nodeName=T,N},createElementNS:function(T,N){var I=new Wt,q=N.split(":"),ie=I.attributes=new X;return I.childNodes=new B,I.ownerDocument=this,I.nodeName=N,I.tagName=N,I.namespaceURI=T,q.length==2?(I.prefix=q[0],I.localName=q[1]):I.localName=N,ie._ownerElement=I,I},createAttributeNS:function(T,N){var I=new yo,q=N.split(":");return I.ownerDocument=this,I.nodeName=N,I.name=N,I.namespaceURI=T,I.specified=!0,q.length==2?(I.prefix=q[0],I.localName=q[1]):I.localName=N,I}},v(ut,ye),Wt.prototype={nodeType:b,hasAttribute:function(T){return this.getAttributeNode(T)!=null},getAttribute:function(T){var N=this.getAttributeNode(T);return N&&N.value||""},getAttributeNode:function(T){return this.attributes.getNamedItem(T)},setAttribute:function(T,N){var I=this.ownerDocument.createAttribute(T);I.value=I.nodeValue=""+N,this.setAttributeNode(I)},removeAttribute:function(T){var N=this.getAttributeNode(T);N&&this.removeAttributeNode(N)},appendChild:function(T){return T.nodeType===L?this.insertBefore(T,null):(function(N,I){return I.parentNode&&I.parentNode.removeChild(I),I.parentNode=N,I.previousSibling=N.lastChild,I.nextSibling=null,I.previousSibling?I.previousSibling.nextSibling=I:N.firstChild=I,N.lastChild=I,pn(N.ownerDocument,N,I),I})(this,T)},setAttributeNode:function(T){return this.attributes.setNamedItem(T)},setAttributeNodeNS:function(T){return this.attributes.setNamedItemNS(T)},removeAttributeNode:function(T){return this.attributes.removeNamedItem(T.nodeName)},removeAttributeNS:function(T,N){var I=this.getAttributeNodeNS(T,N);I&&this.removeAttributeNode(I)},hasAttributeNS:function(T,N){return this.getAttributeNodeNS(T,N)!=null},getAttributeNS:function(T,N){var I=this.getAttributeNodeNS(T,N);return I&&I.value||""},setAttributeNS:function(T,N,I){var q=this.ownerDocument.createAttributeNS(T,N);q.value=q.nodeValue=""+I,this.setAttributeNode(q)},getAttributeNodeNS:function(T,N){return this.attributes.getNamedItemNS(T,N)},getElementsByTagName:function(T){return new H(this,function(N){var I=[];return Fe(N,function(q){q===N||q.nodeType!=b||T!=="*"&&q.tagName!=T||I.push(q)}),I})},getElementsByTagNameNS:function(T,N){return new H(this,function(I){var q=[];return Fe(I,function(ie){ie===I||ie.nodeType!==b||T!=="*"&&ie.namespaceURI!==T||N!=="*"&&ie.localName!=N||q.push(ie)}),q})}},ut.prototype.getElementsByTagName=Wt.prototype.getElementsByTagName,ut.prototype.getElementsByTagNameNS=Wt.prototype.getElementsByTagNameNS,v(Wt,ye),yo.prototype.nodeType=S,v(yo,ye),Zi.prototype={data:"",substringData:function(T,N){return this.data.substring(T,T+N)},appendData:function(T){T=this.data+T,this.nodeValue=this.data=T,this.length=T.length},insertData:function(T,N){this.replaceData(T,0,N)},appendChild:function(T){throw new Error(F[G])},deleteData:function(T,N){this.replaceData(T,N,"")},replaceData:function(T,N,I){I=this.data.substring(0,T)+I+this.data.substring(T+N),this.nodeValue=this.data=I,this.length=I.length}},v(Zi,ye),Au.prototype={nodeName:"#text",nodeType:E,splitText:function(T){var N=this.data,I=N.substring(T);N=N.substring(0,T),this.data=this.nodeValue=N,this.length=N.length;var q=this.ownerDocument.createTextNode(I);return this.parentNode&&this.parentNode.insertBefore(q,this.nextSibling),q}},v(Au,Zi),m2.prototype={nodeName:"#comment",nodeType:C},v(m2,Zi),y2.prototype={nodeName:"#cdata-section",nodeType:x},v(y2,Zi),Ey.prototype.nodeType=k,v(Ey,ye),nN.prototype.nodeType=D,v(nN,ye),oN.prototype.nodeType=A,v(oN,ye),g2.prototype.nodeType=O,v(g2,ye),xy.prototype.nodeName="#document-fragment",xy.prototype.nodeType=L,v(xy,ye),b2.prototype.nodeType=M,v(b2,ye),iN.prototype.serializeToString=function(T,N,I){return aN.call(T,N,I)},ye.prototype.toString=aN;try{if(Object.defineProperty){let T=function(N){switch(N.nodeType){case b:case L:var I=[];for(N=N.firstChild;N;)N.nodeType!==7&&N.nodeType!==8&&I.push(T(N)),N=N.nextSibling;return I.join("");default:return N.nodeValue}};Object.defineProperty(H.prototype,"length",{get:function(){return V(this),this.$$length}}),Object.defineProperty(ye.prototype,"textContent",{get:function(){return T(this)},set:function(N){switch(this.nodeType){case b:case L:for(;this.firstChild;)this.removeChild(this.firstChild);(N||String(N))&&this.appendChild(this.ownerDocument.createTextNode(N));break;default:this.data=N,this.value=N,this.nodeValue=N}}}),lN=function(N,I,q){N["$$"+I]=q}}}catch{}s.DocumentType=Ey,s.DOMException=j,s.DOMImplementation=ae,s.Element=Wt,s.Node=ye,s.NodeList=B,s.XMLSerializer=iN},1045:(a,s,c)=>{var l=c(2167).freeze;s.XML_ENTITIES=l({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),s.HTML_ENTITIES=l({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
71
+ `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),s.entityMap=s.HTML_ENTITIES},3969:(a,s,c)=>{var l=c(1146);s.DOMImplementation=l.DOMImplementation,s.XMLSerializer=l.XMLSerializer,s.DOMParser=c(6129).DOMParser},6925:(a,s,c)=>{var l=c(2167).NAMESPACE,u=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=new RegExp("[\\-\\.0-9"+u.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),d=new RegExp("^"+u.source+p.source+"*(?::"+u.source+p.source+"*)?$");function h(M,C){this.message=M,this.locator=C,Error.captureStackTrace&&Error.captureStackTrace(this,h)}function f(){}function m(M,C){return C.lineNumber=M.lineNumber,C.columnNumber=M.columnNumber,C}function v(M,C,w,k,L,D){function P(B,H,V){w.attributeNames.hasOwnProperty(B)&&D.fatalError("Attribute "+B+" redefined"),w.addValue(B,H.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,L),V)}for(var F,G=++C,Q=0;;){var U=M.charAt(G);switch(U){case"=":if(Q===1)F=M.slice(C,G),Q=3;else{if(Q!==2)throw new Error("attribute equal must after attrName");Q=3}break;case"'":case'"':if(Q===3||Q===1){if(Q===1&&(D.warning('attribute value must after "="'),F=M.slice(C,G)),C=G+1,!((G=M.indexOf(U,C))>0))throw new Error("attribute value no end '"+U+"' match");P(F,j=M.slice(C,G),C-1),Q=5}else{if(Q!=4)throw new Error('attribute value must after "="');P(F,j=M.slice(C,G),C),D.warning('attribute "'+F+'" missed start quot('+U+")!!"),C=G+1,Q=5}break;case"/":switch(Q){case 0:w.setTagName(M.slice(C,G));case 5:case 6:case 7:Q=7,w.closed=!0;case 4:case 1:break;case 2:w.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return D.error("unexpected end of input"),Q==0&&w.setTagName(M.slice(C,G)),G;case">":switch(Q){case 0:w.setTagName(M.slice(C,G));case 5:case 6:case 7:break;case 4:case 1:(j=M.slice(C,G)).slice(-1)==="/"&&(w.closed=!0,j=j.slice(0,-1));case 2:Q===2&&(j=F),Q==4?(D.warning('attribute "'+j+'" missed quot(")!'),P(F,j,C)):(l.isHTML(k[""])&&j.match(/^(?:disabled|checked|selected)$/i)||D.warning('attribute "'+j+'" missed value!! "'+j+'" instead!!'),P(j,j,C));break;case 3:throw new Error("attribute value missed!!")}return G;case"€":U=" ";default:if(U<=" ")switch(Q){case 0:w.setTagName(M.slice(C,G)),Q=6;break;case 1:F=M.slice(C,G),Q=2;break;case 4:var j=M.slice(C,G);D.warning('attribute "'+j+'" missed quot(")!!'),P(F,j,C);case 5:Q=6}else switch(Q){case 2:w.tagName,l.isHTML(k[""])&&F.match(/^(?:disabled|checked|selected)$/i)||D.warning('attribute "'+F+'" missed value!! "'+F+'" instead2!!'),P(F,F,C),C=G,Q=1;break;case 5:D.warning('attribute space is required"'+F+'"!!');case 6:Q=1,C=G;break;case 3:Q=4,C=G;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}G++}}function g(M,C,w){for(var k=M.tagName,L=null,D=M.length;D--;){var P=M[D],F=P.qName,G=P.value;if((B=F.indexOf(":"))>0)var Q=P.prefix=F.slice(0,B),U=F.slice(B+1),j=Q==="xmlns"&&U;else U=F,Q=null,j=F==="xmlns"&&"";P.localName=U,j!==!1&&(L??(L={},E(w,w={})),w[j]=L[j]=G,P.uri=l.XMLNS,C.startPrefixMapping(j,G))}for(D=M.length;D--;)(Q=(P=M[D]).prefix)&&(Q==="xml"&&(P.uri=l.XML),Q!=="xmlns"&&(P.uri=w[Q||""]));var B;(B=k.indexOf(":"))>0?(Q=M.prefix=k.slice(0,B),U=M.localName=k.slice(B+1)):(Q=null,U=M.localName=k);var H=M.uri=w[Q||""];if(C.startElement(H,U,k,M),!M.closed)return M.currentNSMap=w,M.localNSMap=L,!0;if(C.endElement(H,U,k),L)for(Q in L)Object.prototype.hasOwnProperty.call(L,Q)&&C.endPrefixMapping(Q)}function b(M,C,w,k,L){if(/^(?:script|textarea)$/i.test(w)){var D=M.indexOf("</"+w+">",C),P=M.substring(C+1,D);if(/[&<]/.test(P))return/^script$/i.test(w)?(L.characters(P,0,P.length),D):(P=P.replace(/&#?\w+;/g,k),L.characters(P,0,P.length),D)}return C+1}function S(M,C,w,k){var L=k[w];return L??((L=M.lastIndexOf("</"+w+">"))<C&&(L=M.lastIndexOf("</"+w)),k[w]=L),L<C}function E(M,C){for(var w in M)Object.prototype.hasOwnProperty.call(M,w)&&(C[w]=M[w])}function x(M,C,w,k){if(M.charAt(C+2)==="-")return M.charAt(C+3)==="-"?(L=M.indexOf("-->",C+4))>C?(w.comment(M,C+4,L-C-4),L+3):(k.error("Unclosed comment"),-1):-1;if(M.substr(C+3,6)=="CDATA["){var L=M.indexOf("]]>",C+9);return w.startCDATA(),w.characters(M,C+9,L-C-9),w.endCDATA(),L+3}var D=(function(j,B){var H,V=[],X=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(X.lastIndex=B,X.exec(j);H=X.exec(j);)if(V.push(H),H[1])return V})(M,C),P=D.length;if(P>1&&/!doctype/i.test(D[0][0])){var F=D[1][0],G=!1,Q=!1;P>3&&(/^public$/i.test(D[2][0])?(G=D[3][0],Q=P>4&&D[4][0]):/^system$/i.test(D[2][0])&&(Q=D[3][0]));var U=D[P-1];return w.startDTD(F,G,Q),w.endDTD(),U.index+U[0].length}return-1}function O(M,C,w){var k=M.indexOf("?>",C);if(k){var L=M.substring(C,k).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return L?(L[0].length,w.processingInstruction(L[1],L[2]),k+2):-1}return-1}function A(){this.attributeNames={}}h.prototype=new Error,h.prototype.name=h.name,f.prototype={parse:function(M,C,w){var k=this.domBuilder;k.startDocument(),E(C,C={}),(function(L,D,P,F,G){function Q(wt){var Wt=wt.slice(1,-1);return Object.hasOwnProperty.call(P,Wt)?P[Wt]:Wt.charAt(0)==="#"?(function(yo){if(yo>65535){var Zi=55296+((yo-=65536)>>10),Au=56320+(1023&yo);return String.fromCharCode(Zi,Au)}return String.fromCharCode(yo)})(parseInt(Wt.substr(1).replace("x","0x"))):(G.error("entity not found:"+wt),wt)}function U(wt){if(wt>J){var Wt=L.substring(J,wt).replace(/&#?\w+;/g,Q);X&&j(J),F.characters(Wt,0,wt-J),J=wt}}function j(wt,Wt){for(;wt>=H&&(Wt=V.exec(L));)B=Wt.index,H=B+Wt[0].length,X.lineNumber++;X.columnNumber=wt-B+1}for(var B=0,H=0,V=/.*(?:\r\n?|\n)|.*$/g,X=F.locator,W=[{currentNSMap:D}],Y={},J=0;;){try{var ae=L.indexOf("<",J);if(ae<0){if(!L.substr(J).match(/^\s*$/)){var ye=F.doc,Xe=ye.createTextNode(L.substr(J));ye.appendChild(Xe),F.currentElement=Xe}return}switch(ae>J&&U(ae),L.charAt(ae+1)){case"/":var Fe=L.indexOf(">",ae+3),ut=L.substring(ae+2,Fe).replace(/[ \t\n\r]+$/g,""),Vt=W.pop();Fe<0?(ut=L.substring(ae+2).replace(/[\s<].*/,""),G.error("end tag name: "+ut+" is not complete:"+Vt.tagName),Fe=ae+1+ut.length):ut.match(/\s</)&&(ut=ut.replace(/[\s<].*/,""),G.error("end tag name: "+ut+" maybe not complete"),Fe=ae+1+ut.length);var pn=Vt.localNSMap,lr=Vt.tagName==ut;if(lr||Vt.tagName&&Vt.tagName.toLowerCase()==ut.toLowerCase()){if(F.endElement(Vt.uri,Vt.localName,ut),pn)for(var ur in pn)Object.prototype.hasOwnProperty.call(pn,ur)&&F.endPrefixMapping(ur);lr||G.fatalError("end tag name: "+ut+" is not match the current start tagName:"+Vt.tagName)}else W.push(Vt);Fe++;break;case"?":X&&j(ae),Fe=O(L,ae,F);break;case"!":X&&j(ae),Fe=x(L,ae,F,G);break;default:X&&j(ae);var Ze=new A,dn=W[W.length-1].currentNSMap,Zo=(Fe=v(L,ae,Ze,dn,Q,G),Ze.length);if(!Ze.closed&&S(L,Fe,Ze.tagName,Y)&&(Ze.closed=!0,P.nbsp||G.warning("unclosed xml attribute")),X&&Zo){for(var uc=m(X,{}),kn=0;kn<Zo;kn++){var Qi=Ze[kn];j(Qi.offset),Qi.locator=m(X,{})}F.locator=uc,g(Ze,F,dn)&&W.push(Ze),F.locator=X}else g(Ze,F,dn)&&W.push(Ze);l.isHTML(Ze.uri)&&!Ze.closed?Fe=b(L,Fe,Ze.tagName,Q,F):Fe++}}catch(wt){if(wt instanceof h)throw wt;G.error("element parse error: "+wt),Fe=-1}Fe>J?J=Fe:U(Math.max(ae,J)+1)}})(M,C,w,k,this.errorHandler),k.endDocument()}},A.prototype={setTagName:function(M){if(!d.test(M))throw new Error("invalid tagName:"+M);this.tagName=M},addValue:function(M,C,w){if(!d.test(M))throw new Error("invalid attribute:"+M);this.attributeNames[M]=this.length,this[this.length++]={qName:M,value:C,offset:w}},length:0,getLocalName:function(M){return this[M].localName},getLocator:function(M){return this[M].locator},getQName:function(M){return this[M].qName},getURI:function(M){return this[M].uri},getValue:function(M){return this[M].value}},s.XMLReader=f,s.ParseError=h},6036:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.InvalidNumberOfChildrenError=void 0;var l=c(6187);Object.defineProperty(s,"InvalidNumberOfChildrenError",{enumerable:!0,get:function(){return l.InvalidNumberOfChildrenError}})},6187:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.InvalidNumberOfChildrenError=void 0;class c extends Error{constructor(u,p,d,h="exactly"){super(`${u} tag must have ${h} ${p} children. It's actually ${d}`),this.name="InvalidNumberOfChildrenError"}}s.InvalidNumberOfChildrenError=c},8398:function(a,s,c){var l=this&&this.__createBinding||(Object.create?function(p,d,h,f){f===void 0&&(f=h);var m=Object.getOwnPropertyDescriptor(d,h);m&&!("get"in m?!d.__esModule:m.writable||m.configurable)||(m={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(p,f,m)}:function(p,d,h,f){f===void 0&&(f=h),p[f]=d[h]}),u=this&&this.__exportStar||(function(p,d){for(var h in p)h==="default"||Object.prototype.hasOwnProperty.call(d,h)||l(d,p,h)});Object.defineProperty(s,"__esModule",{value:!0}),u(c(8208),s),u(c(7011),s),u(c(3487),s),u(c(5379),s)},7011:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.JoinWithManySeparators=void 0;class c{constructor(u){this._separators=u}static join(u,p){return new c(p)._join(u)}_join(u){return u.reduce((p,d,h,f)=>p+d+(h===f.length-1?"":this._get(h)),"")}_get(u){return this._separators[u]?this._separators[u]:this._separators.length>0?this._separators[this._separators.length-1]:","}}s.JoinWithManySeparators=c},3487:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.mathMLElementToLaTeXConverter=void 0;const l=c(6483);s.mathMLElementToLaTeXConverter=u=>new l.MathMLElementToLatexConverterAdapter(u).toLatexConverter()},5379:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.normalizeWhiteSpaces=void 0,s.normalizeWhiteSpaces=c=>c.replace(/\s+/g," ")},7274:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BracketWrapper=void 0;const l=c(836);s.BracketWrapper=class{constructor(){this._open="{",this._close="}"}wrap(u){return new l.Wrapper(this._open,this._close).wrap(u)}}},5667:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.GenericWrapper=void 0;const l=c(836);s.GenericWrapper=class{constructor(u,p){this._open="\\left"+u,this._close="\\right"+p}wrap(u){return new l.Wrapper(this._open,this._close).wrap(u)}}},8208:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.GenericWrapper=s.ParenthesisWrapper=s.BracketWrapper=void 0;var l=c(7274);Object.defineProperty(s,"BracketWrapper",{enumerable:!0,get:function(){return l.BracketWrapper}});var u=c(3246);Object.defineProperty(s,"ParenthesisWrapper",{enumerable:!0,get:function(){return u.ParenthesisWrapper}});var p=c(5667);Object.defineProperty(s,"GenericWrapper",{enumerable:!0,get:function(){return p.GenericWrapper}})},3246:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ParenthesisWrapper=void 0;const l=c(836);s.ParenthesisWrapper=class{constructor(){this._open="\\left(",this._close="\\right)"}wrap(u){return new l.Wrapper(this._open,this._close).wrap(u)}wrapIfMoreThanOneChar(u){return u.length<=1?u:this.wrap(u)}}},836:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Wrapper=void 0,s.Wrapper=class{constructor(c,l){this._open=c,this._close=l}wrap(c){return this._open+c+this._close}}},7510:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.GenericSpacingWrapper=void 0;const l=c(8398);s.GenericSpacingWrapper=class{constructor(u){this._mathmlElement=u}convert(){return this._mathmlElement.children.map(u=>(0,l.mathMLElementToLaTeXConverter)(u)).map(u=>u.convert()).join(" ")}}},3589:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.GenericUnderOver=void 0;const l=c(3487),u=c(6036),p=c(6626);s.GenericUnderOver=class{constructor(f){this._mathmlElement=f}convert(){const{name:f,children:m}=this._mathmlElement,v=m.length;if(v!==2)throw new u.InvalidNumberOfChildrenError(f,2,v);const g=(0,l.mathMLElementToLaTeXConverter)(m[0]).convert(),b=(0,l.mathMLElementToLaTeXConverter)(m[1]).convert();return this._applyCommand(g,b)}_applyCommand(f,m){const v=this._mathmlElement.name.match(/under/)?h.Under:h.Over;return new d(v).apply(f,m)}};class d{constructor(m){this._type=m}apply(m,v){return p.latexAccents.includes(v)?`${v}{${m}}`:`${this._defaultCommand}{${v}}{${m}}`}get _defaultCommand(){return this._type===h.Under?"\\underset":"\\overset"}}var h;(function(f){f[f.Under=0]="Under",f[f.Over=1]="Over"})(h||(h={}))},1733:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.GenericUnderOver=s.GenericSpacingWrapper=s.MTr=s.MTable=s.MUnderover=s.MText=s.MMultiscripts=s.MSubsup=s.MSub=s.MSup=s.MPhantom=s.MError=s.MEnclose=s.MAction=s.MRoot=s.MFrac=s.MFenced=s.MSqrt=s.MN=s.MO=s.MI=s.Math=void 0;var l=c(2283);Object.defineProperty(s,"Math",{enumerable:!0,get:function(){return l.Math}});var u=c(7523);Object.defineProperty(s,"MI",{enumerable:!0,get:function(){return u.MI}});var p=c(5258);Object.defineProperty(s,"MO",{enumerable:!0,get:function(){return p.MO}});var d=c(411);Object.defineProperty(s,"MN",{enumerable:!0,get:function(){return d.MN}});var h=c(8301);Object.defineProperty(s,"MSqrt",{enumerable:!0,get:function(){return h.MSqrt}});var f=c(5237);Object.defineProperty(s,"MFenced",{enumerable:!0,get:function(){return f.MFenced}});var m=c(4060);Object.defineProperty(s,"MFrac",{enumerable:!0,get:function(){return m.MFrac}});var v=c(5851);Object.defineProperty(s,"MRoot",{enumerable:!0,get:function(){return v.MRoot}});var g=c(916);Object.defineProperty(s,"MAction",{enumerable:!0,get:function(){return g.MAction}});var b=c(7018);Object.defineProperty(s,"MEnclose",{enumerable:!0,get:function(){return b.MEnclose}});var S=c(6752);Object.defineProperty(s,"MError",{enumerable:!0,get:function(){return S.MError}});var E=c(9897);Object.defineProperty(s,"MPhantom",{enumerable:!0,get:function(){return E.MPhantom}});var x=c(5806);Object.defineProperty(s,"MSup",{enumerable:!0,get:function(){return x.MSup}});var O=c(9);Object.defineProperty(s,"MSub",{enumerable:!0,get:function(){return O.MSub}});var A=c(2740);Object.defineProperty(s,"MSubsup",{enumerable:!0,get:function(){return A.MSubsup}});var M=c(4596);Object.defineProperty(s,"MMultiscripts",{enumerable:!0,get:function(){return M.MMultiscripts}});var C=c(3808);Object.defineProperty(s,"MText",{enumerable:!0,get:function(){return C.MText}});var w=c(2710);Object.defineProperty(s,"MUnderover",{enumerable:!0,get:function(){return w.MUnderover}});var k=c(4134);Object.defineProperty(s,"MTable",{enumerable:!0,get:function(){return k.MTable}});var L=c(7188);Object.defineProperty(s,"MTr",{enumerable:!0,get:function(){return L.MTr}});var D=c(7510);Object.defineProperty(s,"GenericSpacingWrapper",{enumerable:!0,get:function(){return D.GenericSpacingWrapper}});var P=c(3589);Object.defineProperty(s,"GenericUnderOver",{enumerable:!0,get:function(){return P.GenericUnderOver}})},916:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MAction=void 0;const l=c(3487);s.MAction=class{constructor(u){this._mathmlElement=u}convert(){const{children:u}=this._mathmlElement;return this._isToggle()?u.map(p=>(0,l.mathMLElementToLaTeXConverter)(p)).map(p=>p.convert()).join(" \\Longrightarrow "):(0,l.mathMLElementToLaTeXConverter)(u[0]).convert()}_isToggle(){const{actiontype:u}=this._mathmlElement.attributes;return u==="toggle"||!u}}},2283:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Math=void 0;const l=c(3487),u=c(5379);s.Math=class{constructor(p){this._mathmlElement=p}convert(){const p=this._mathmlElement.children.map(d=>(0,l.mathMLElementToLaTeXConverter)(d)).map(d=>d.convert()).join(" ");return(0,u.normalizeWhiteSpaces)(p)}}},7018:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MEnclose=void 0;const l=c(3487);s.MEnclose=class{constructor(u){this._mathmlElement=u}convert(){const u=this._mathmlElement.children.map(p=>(0,l.mathMLElementToLaTeXConverter)(p)).map(p=>p.convert()).join(" ");return this._notation==="actuarial"?`\\overline{\\left.${u}\\right|}`:this._notation==="radical"?`\\sqrt{${u}}`:["box","roundedbox","circle"].includes(this._notation)?`\\boxed{${u}}`:this._notation==="left"?`\\left|${u}`:this._notation==="right"?`${u}\\right|`:this._notation==="top"?`\\overline{${u}}`:this._notation==="bottom"?`\\underline{${u}}`:this._notation==="updiagonalstrike"?`\\cancel{${u}}`:this._notation==="downdiagonalstrike"?`\\bcancel{${u}}`:this._notation==="updiagonalarrow"?`\\cancelto{}{${u}}`:["verticalstrike","horizontalstrike"].includes(this._notation)?`\\hcancel{${u}}`:this._notation==="madruwb"?`\\underline{${u}\\right|}`:this._notation==="phasorangle"?`{\\angle \\underline{${u}}}`:this._notation==="longdiv"?`\\longdiv{${u}}`:`\\overline{\\left.\\right)${u}}`}get _notation(){return this._mathmlElement.attributes.notation||"longdiv"}}},6752:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MError=void 0;const l=c(3487);s.MError=class{constructor(u){this._mathmlElement=u}convert(){return`\\color{red}{${this._mathmlElement.children.map(u=>(0,l.mathMLElementToLaTeXConverter)(u)).map(u=>u.convert()).join(" ")}}`}}},5237:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MFenced=void 0;const l=c(3487),u=c(8398);s.MFenced=class{constructor(f){this._mathmlElement=f,this._open=this._mathmlElement.attributes.open||"",this._close=this._mathmlElement.attributes.close||"",this._separators=Array.from(this._mathmlElement.attributes.separators||"")}convert(){const f=this._mathmlElement.children.map(m=>(0,l.mathMLElementToLaTeXConverter)(m)).map(m=>m.convert());return this._isThereRelativeOfName(this._mathmlElement.children,"mtable")?new d(this._open,this._close).apply(f):new p(this._open,this._close,this._separators).apply(f)}_isThereRelativeOfName(f,m){return f.some(v=>v.name===m||this._isThereRelativeOfName(v.children,m))}};class p{constructor(m,v,g){this._open=m||"(",this._close=v||")",this._separators=g}apply(m){const v=u.JoinWithManySeparators.join(m,this._separators);return new u.GenericWrapper(this._open,this._close).wrap(v)}}class d{constructor(m,v){this._genericCommand="matrix",this._separators=new h(m,v)}apply(m){const v=this._command,g=`\\begin{${v}}
72
+ ${m.join("")}
73
+ \\end{${v}}`;return v===this._genericCommand?this._separators.wrap(g):g}get _command(){return this._separators.areParentheses()?"pmatrix":this._separators.areSquareBrackets()?"bmatrix":this._separators.areBrackets()?"Bmatrix":this._separators.areDivides()?"vmatrix":this._separators.areParallels()?"Vmatrix":this._separators.areNotEqual()?this._genericCommand:"bmatrix"}}class h{constructor(m,v){this._open=m,this._close=v}wrap(m){return new u.GenericWrapper(this._open,this._close).wrap(m)}areParentheses(){return this._compare("(",")")}areSquareBrackets(){return this._compare("[","]")}areBrackets(){return this._compare("{","}")}areDivides(){return this._compare("|","|")}areParallels(){return this._compare("||","||")}areNotEqual(){return this._open!==this._close}_compare(m,v){return this._open===m&&this._close===v}}},4060:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MFrac=void 0;const l=c(6036),u=c(8398);s.MFrac=class{constructor(p){this._mathmlElement=p}convert(){const{children:p,name:d}=this._mathmlElement,h=p.length;if(h!==2)throw new l.InvalidNumberOfChildrenError(d,2,h);const f=(0,u.mathMLElementToLaTeXConverter)(p[0]).convert(),m=(0,u.mathMLElementToLaTeXConverter)(p[1]).convert();return this._isBevelled()?`${this._wrapIfMoreThanOneChar(f)}/${this._wrapIfMoreThanOneChar(m)}`:`\\frac{${f}}{${m}}`}_wrapIfMoreThanOneChar(p){return new u.ParenthesisWrapper().wrapIfMoreThanOneChar(p)}_isBevelled(){return!!this._mathmlElement.attributes.bevelled}}},7523:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MI=void 0;const l=c(8398),u=c(2408),p=c(4317);s.MI=class{constructor(h){this.utf8Converter=new p.HashUTF8ToLtXConverter,this._mathmlElement=h}convert(){const h=(0,l.normalizeWhiteSpaces)(this._mathmlElement.value);if(h===" ")return d.apply(h);const f=h.trim(),m=d.apply(f),v=this.utf8Converter.convert(m);return v!==m?v:this.wrapInMathVariant(m,this.getMathVariant(this._mathmlElement.attributes))}getMathVariant(h){if(h&&h.mathvariant)return h.mathvariant}wrapInMathVariant(h,f){switch(f){case"bold":return`\\mathbf{${h}}`;case"italic":return`\\mathit{${h}}`;case"bold-italic":return`\\mathbf{\\mathit{${h}}}`;case"double-struck":return`\\mathbb{${h}}`;case"bold-fraktur":return`\\mathbf{\\mathfrak{${h}}}`;case"script":return`\\mathcal{${h}}`;case"bold-script":return`\\mathbf{\\mathcal{${h}}}`;case"fraktur":return`\\mathfrak{${h}}`;case"sans-serif":return`\\mathsf{${h}}`;case"bold-sans-serif":return`\\mathbf{\\mathsf{${h}}}`;case"sans-serif-italic":return`\\mathsf{\\mathit{${h}}}`;case"sans-serif-bold-italic":return`\\mathbf{\\mathsf{\\mathit{${h}}}}`;case"monospace":return`\\mathtt{${h}}`;default:return h}}};class d{constructor(f){this._value=f}static apply(f){return new d(f)._apply()}_apply(){return this._findByCharacter()||this._findByGlyph()||this._findByNumber()||new p.HashUTF8ToLtXConverter().convert(this._value)}_findByCharacter(){return u.allMathSymbolsByChar[this._value]}_findByGlyph(){return u.allMathSymbolsByGlyphSpecial[`"${this._value}"`]||u.allMathSymbolsByGlyph[this._value]}_findByNumber(){return u.mathNumberByGlyphSpecial[`"${this._value}"`]||u.mathNumberByGlyph[this._value]}}},4596:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MMultiscripts=void 0;const l=c(8398),u=c(6036);s.MMultiscripts=class{constructor(p){this._mathmlElement=p}convert(){const{name:p,children:d}=this._mathmlElement,h=d.length;if(h<3)throw new u.InvalidNumberOfChildrenError(p,3,h,"at least");const f=(0,l.mathMLElementToLaTeXConverter)(d[0]).convert();return this._prescriptLatex()+this._wrapInParenthesisIfThereIsSpace(f)+this._postscriptLatex()}_prescriptLatex(){const{children:p}=this._mathmlElement;let d,h;if(this._isPrescripts(p[1]))d=p[2],h=p[3];else{if(!this._isPrescripts(p[3]))return"";d=p[4],h=p[5]}return`\\_{${(0,l.mathMLElementToLaTeXConverter)(d).convert()}}^{${(0,l.mathMLElementToLaTeXConverter)(h).convert()}}`}_postscriptLatex(){const{children:p}=this._mathmlElement;if(this._isPrescripts(p[1]))return"";const d=p[1],h=p[2];return`_{${(0,l.mathMLElementToLaTeXConverter)(d).convert()}}^{${(0,l.mathMLElementToLaTeXConverter)(h).convert()}}`}_wrapInParenthesisIfThereIsSpace(p){return p.match(/\s+/g)?new l.ParenthesisWrapper().wrap(p):p}_isPrescripts(p){return p?.name==="mprescripts"}}},411:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MN=void 0;const l=c(8398),u=c(2408);s.MN=class{constructor(p){this._mathmlElement=p}convert(){const p=(0,l.normalizeWhiteSpaces)(this._mathmlElement.value).trim();return u.mathNumberByGlyphSpecial[`"${p}"`]||u.mathNumberByGlyph[p]||p}}},5258:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MO=void 0;const l=c(8398),u=c(2408);s.MO=class{constructor(d){this._mathmlElement=d}convert(){const d=(0,l.normalizeWhiteSpaces)(this._mathmlElement.value).trim();return this._mathmlElement.attributes["data-mjx-texclass"]==="OPEN"&&d==="|"?"\\left|":this._mathmlElement.attributes["data-mjx-texclass"]==="CLOSE"&&d==="|"?"\\right|":p.operate(d)}};class p{constructor(h){this._value=h}static operate(h){return new p(h)._operate()}_operate(){return this._findByCharacter()||this._findByGlyph()||this._findByNumber()||new u.HashUTF8ToLtXConverter().convert(this._value)}_findByCharacter(){return u.allMathOperatorsByChar[this._value]}_findByGlyph(){return u.allMathOperatorsByGlyphSpecial[`"${this._value}"`]||u.allMathOperatorsByGlyph[this._value]}_findByNumber(){return u.mathNumberByGlyphSpecial[`"${this._value}"`]||u.mathNumberByGlyph[this._value]}}},9897:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MPhantom=void 0,s.MPhantom=class{constructor(c){this._mathmlElement=c}convert(){return""}}},5851:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MRoot=void 0;const l=c(8398),u=c(6036);s.MRoot=class{constructor(p){this._mathmlElement=p}convert(){const{name:p,children:d}=this._mathmlElement,h=d.length;if(h!==2)throw new u.InvalidNumberOfChildrenError(p,2,h);const f=(0,l.mathMLElementToLaTeXConverter)(d[0]).convert();return`\\sqrt[${(0,l.mathMLElementToLaTeXConverter)(d[1]).convert()}]{${f}}`}}},8301:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MSqrt=void 0;const l=c(8398);s.MSqrt=class{constructor(u){this._mathmlElement=u}convert(){return`\\sqrt{${this._mathmlElement.children.map(u=>(0,l.mathMLElementToLaTeXConverter)(u)).map(u=>u.convert()).join(" ")}}`}}},9:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MSub=void 0;const l=c(8398),u=c(6036);s.MSub=class{constructor(p){this._mathmlElement=p}convert(){const{name:p,children:d}=this._mathmlElement,h=d.length;if(h!==2)throw new u.InvalidNumberOfChildrenError(p,2,h);const f=(0,l.mathMLElementToLaTeXConverter)(d[0]).convert(),m=(0,l.mathMLElementToLaTeXConverter)(d[1]).convert();return f==="log"?`\\${f}_${new l.BracketWrapper().wrap(m)}`:`${f}_${new l.BracketWrapper().wrap(m)}`}}},2740:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MSubsup=void 0;const l=c(8398),u=c(6036);s.MSubsup=class{constructor(p){this._mathmlElement=p}convert(){const{name:p,children:d}=this._mathmlElement,h=d.length;if(h!==3)throw new u.InvalidNumberOfChildrenError(p,3,h);const f=(0,l.mathMLElementToLaTeXConverter)(d[0]).convert(),m=(0,l.mathMLElementToLaTeXConverter)(d[1]).convert(),v=(0,l.mathMLElementToLaTeXConverter)(d[2]).convert(),g=new l.BracketWrapper().wrap(m),b=new l.BracketWrapper().wrap(v);return`${this._wrapInParenthesisIfThereIsSpace(f)}_${g}^${b}`}_wrapInParenthesisIfThereIsSpace(p){return p.match(/\s+/g)?new l.ParenthesisWrapper().wrap(p):p}}},5806:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MSup=void 0;const l=c(8398),u=c(6036);s.MSup=class{constructor(p){this._mathmlElement=p}convert(){const{name:p,children:d}=this._mathmlElement,h=d.length;if(h!==2)throw new u.InvalidNumberOfChildrenError(p,2,h);const f=(0,l.mathMLElementToLaTeXConverter)(d[0]).convert(),m=(0,l.mathMLElementToLaTeXConverter)(d[1]).convert();return["'","″"].indexOf(m)?`${f}${m}`:`${f}^${new l.BracketWrapper().wrap(m)}`}}},4134:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MTable=void 0;const l=c(8398);s.MTable=class{constructor(u){this._mathmlElement=u,this._addFlagRecursiveIfName(this._mathmlElement.children,"mtable","innerTable")}convert(){const u=this._mathmlElement.children.map(p=>(0,l.mathMLElementToLaTeXConverter)(p)).map(p=>p.convert()).join(` \\\\
74
+ `);return this._hasFlag("innerTable")?this._wrap(u):u}_wrap(u){return`\\begin{matrix}${u}\\end{matrix}`}_addFlagRecursiveIfName(u,p,d){u.forEach(h=>{h.name===p&&(h.attributes[d]=d),this._addFlagRecursiveIfName(h.children,p,d)})}_hasFlag(u){return!!this._mathmlElement.attributes[u]}}},3808:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MText=void 0;const l=c(7523);s.MText=class{constructor(p){this._mathmlElement=p}convert(){const{attributes:p,value:d}=this._mathmlElement;return[...d].map(h=>/^[a-zA-Z0-9]$/.test(h)||h==" "?{value:h,isAlphanumeric:!0}:{value:h,isAlphanumeric:!1}).reduce((h,f)=>{if(f.isAlphanumeric){const m=h[h.length-1];if(m&&m.isAlphanumeric)return m.value+=f.value,h}return[...h,f]},[]).map(h=>h.isAlphanumeric?new u(p.mathvariant).apply(h.value):new l.MI({name:"mi",attributes:{},children:[],value:h.value}).convert()).join("")}};class u{constructor(d){this._mathvariant=d||"normal"}apply(d){return this._commands.reduce((h,f,m)=>m===0?`${f}{${d}}`:`${f}{${h}}`,"")}get _commands(){switch(this._mathvariant){case"bold":return["\\textbf"];case"log":return["\\log"];case"italic":return["\\textit"];case"bold-italic":return["\\textit","\\textbf"];case"double-struck":return["\\mathbb"];case"monospace":return["\\mathtt"];case"bold-fraktur":case"fraktur":return["\\mathfrak"];default:return["\\text"]}}}},7188:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MTr=void 0;const l=c(8398);s.MTr=class{constructor(u){this._mathmlElement=u}convert(){return this._mathmlElement.children.map(u=>(0,l.mathMLElementToLaTeXConverter)(u)).map(u=>u.convert()).join(" & ")}}},2710:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MUnderover=void 0;const l=c(8398),u=c(6036);s.MUnderover=class{constructor(p){this._mathmlElement=p}convert(){const{name:p,children:d}=this._mathmlElement,h=d.length;if(h!==3)throw new u.InvalidNumberOfChildrenError(p,3,h);return`${(0,l.mathMLElementToLaTeXConverter)(d[0]).convert()}_{${(0,l.mathMLElementToLaTeXConverter)(d[1]).convert()}}^{${(0,l.mathMLElementToLaTeXConverter)(d[2]).convert()}}`}}},6483:function(a,s,c){var l=this&&this.__createBinding||(Object.create?function(f,m,v,g){g===void 0&&(g=v);var b=Object.getOwnPropertyDescriptor(m,v);b&&!("get"in b?!m.__esModule:b.writable||b.configurable)||(b={enumerable:!0,get:function(){return m[v]}}),Object.defineProperty(f,g,b)}:function(f,m,v,g){g===void 0&&(g=v),f[g]=m[v]}),u=this&&this.__setModuleDefault||(Object.create?function(f,m){Object.defineProperty(f,"default",{enumerable:!0,value:m})}:function(f,m){f.default=m}),p=this&&this.__importStar||(function(f){if(f&&f.__esModule)return f;var m={};if(f!=null)for(var v in f)v!=="default"&&Object.prototype.hasOwnProperty.call(f,v)&&l(m,f,v);return u(m,f),m});Object.defineProperty(s,"__esModule",{value:!0}),s.MathMLElementToLatexConverterAdapter=void 0;const d=p(c(1733));s.MathMLElementToLatexConverterAdapter=class{constructor(f){this._mathMLElement=f}toLatexConverter(){const{name:f}=this._mathMLElement;return new(h[f]||d.GenericSpacingWrapper)(this._mathMLElement)}};const h={math:d.Math,mi:d.MI,mo:d.MO,mn:d.MN,msqrt:d.MSqrt,mfenced:d.MFenced,mfrac:d.MFrac,mroot:d.MRoot,maction:d.MAction,menclose:d.MEnclose,merror:d.MError,mphantom:d.MPhantom,msup:d.MSup,msub:d.MSub,msubsup:d.MSubsup,mmultiscripts:d.MMultiscripts,mtext:d.MText,munderover:d.MUnderover,mtable:d.MTable,mtr:d.MTr,mover:d.GenericUnderOver,munder:d.GenericUnderOver,mrow:d.GenericSpacingWrapper,mpadded:d.GenericSpacingWrapper}},965:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ErrorHandler=void 0,s.ErrorHandler=class{constructor(){this._errors=[],this.errorLocator={}}fixError(c,l){return this._isMissingAttributeValueError(l)?(this._errors.push(l),this._fixMissingAttribute(l,c)):c}isThereAnyErrors(){return this._errors.length>0}cleanErrors(){this._errors=[]}_fixMissingAttribute(c,l){const u=c.split('"')[1];if(u)return l.replace(this._matchMissingValueForAttribute(u),"");for(;this._mathGenericMissingValue().exec(l);)l=l.replace(this._mathGenericMissingValue(),"$1$3");return l}_matchMissingValueForAttribute(c){return new RegExp(`(${c}=(?!("|')))|(${c}(?!("|')))`,"gm")}_mathGenericMissingValue(){return/(\<.* )(\w+=(?!\"|\'))(.*\>)/gm}_isMissingAttributeValueError(c){return!!c.includes("attribute")&&!!c.includes("missed")||c.includes("attribute value missed")}}},6177:function(a,s,c){var l=this&&this.__createBinding||(Object.create?function(p,d,h,f){f===void 0&&(f=h);var m=Object.getOwnPropertyDescriptor(d,h);m&&!("get"in m?!d.__esModule:m.writable||m.configurable)||(m={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(p,f,m)}:function(p,d,h,f){f===void 0&&(f=h),p[f]=d[h]}),u=this&&this.__exportStar||(function(p,d){for(var h in p)h==="default"||Object.prototype.hasOwnProperty.call(d,h)||l(d,p,h)});Object.defineProperty(s,"__esModule",{value:!0}),u(c(5242),s),u(c(965),s),u(c(1877),s)},1877:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ElementsToMathMLAdapter=void 0,s.ElementsToMathMLAdapter=class{convert(c){return c.filter(l=>l.tagName!==void 0).map(l=>this._convertElement(l))}_convertElement(c){return{name:c.tagName,attributes:this._convertElementAttributes(c.attributes),value:this._hasElementChild(c)?"":c.textContent||"",children:this._hasElementChild(c)?this.convert(Array.from(c.childNodes)):[]}}_convertElementAttributes(c){return Array.from(c).reduce((l,u)=>Object.assign({[u.nodeName]:u.nodeValue===u.nodeName?"":u.nodeValue},l),{})}_hasElementChild(c){const l=c.childNodes;return!!l&&l.length!==0&&this._isThereAnyNoTextNode(l)}_isThereAnyNoTextNode(c){return Array.from(c).some(l=>l.nodeName!=="#text")}}},5242:function(a,s,c){var l=this&&this.__importDefault||(function(p){return p&&p.__esModule?p:{default:p}});Object.defineProperty(s,"__esModule",{value:!0}),s.XmlToMathMLAdapter=void 0;const u=l(c(3969));s.XmlToMathMLAdapter=class{constructor(p,d){this._xml="",this._elementsConvertor=p,this._errorHandler=d,this._xmlDOM=new u.default.DOMParser({locator:this._errorHandler.errorLocator,errorHandler:this._fixError.bind(this)})}convert(p){return this._xml=this._removeLineBreaks(p),this._elementsConvertor.convert(this._mathMLElements)}_fixError(p){this._xml=this._errorHandler.fixError(this._xml,p)}_removeLineBreaks(p){return p.replace(/\n|\r\n|\r/g,"")}get _mathMLElements(){let p=this._xmlDOM.parseFromString(this._xml).getElementsByTagName("math");return this._errorHandler.isThereAnyErrors()&&(this._errorHandler.cleanErrors(),p=this._xmlDOM.parseFromString(this._xml).getElementsByTagName("math")),Array.from(p)}}},4150:function(a,s,c){var l=this&&this.__createBinding||(Object.create?function(p,d,h,f){f===void 0&&(f=h);var m=Object.getOwnPropertyDescriptor(d,h);m&&!("get"in m?!d.__esModule:m.writable||m.configurable)||(m={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(p,f,m)}:function(p,d,h,f){f===void 0&&(f=h),p[f]=d[h]}),u=this&&this.__exportStar||(function(p,d){for(var h in p)h==="default"||Object.prototype.hasOwnProperty.call(d,h)||l(d,p,h)});Object.defineProperty(s,"__esModule",{value:!0}),u(c(488),s)},488:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.makeToMathElementsConverter=void 0;const l=c(6177);s.makeToMathElementsConverter=()=>{const u=new l.ElementsToMathMLAdapter,p=new l.ErrorHandler;return new l.XmlToMathMLAdapter(u,p)}},8863:function(a,s,c){var l=this&&this.__createBinding||(Object.create?function(p,d,h,f){f===void 0&&(f=h);var m=Object.getOwnPropertyDescriptor(d,h);m&&!("get"in m?!d.__esModule:m.writable||m.configurable)||(m={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(p,f,m)}:function(p,d,h,f){f===void 0&&(f=h),p[f]=d[h]}),u=this&&this.__exportStar||(function(p,d){for(var h in p)h==="default"||Object.prototype.hasOwnProperty.call(d,h)||l(d,p,h)});Object.defineProperty(s,"__esModule",{value:!0}),u(c(862),s)},862:(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MathMLToLaTeX=void 0;const l=c(6483),u=c(4150);s.MathMLToLaTeX=class{static convert(p){return(0,u.makeToMathElementsConverter)().convert(p).map(d=>new l.MathMLElementToLatexConverterAdapter(d).toLatexConverter()).map(d=>d.convert()).join("").trim()}}},1868:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.allMathOperatorsByChar=void 0,s.allMathOperatorsByChar={_:"\\underline","&#x23E1;":"\\underbrace","&#x23E0;":"\\overbrace","&#x23DF;":"\\underbrace","&#x23DE;":"\\overbrace","&#x23DD;":"\\underbrace","&#x23DC;":"\\overarc","&#x23B5;":"\\underbrace","&#x23B4;":"\\overbrace","&#x20DC;":"\\square","&#x20DB;":"\\square","&#x2064;":"","&#x2057;":"''''","&#x203E;":"\\overline","&#x2015;":"\\overline","&#xAF;":"\\overline","&#x2037;":"```","&#x2036;":"``","&#x2035;":"`","&#x2034;":"'''","&#x2033;":"''","&#x201F;":"``","&#x201E;":",,","&#x201B;":"`","&#x201A;":",","&#x302;":"\\hat","&#x2F7;":"\\sim","&#x2DD;":"\\sim","&#x2DC;":"\\sim","&#x2DA;":"\\degree","&#x2D9;":"\\cdot","&#x2D8;":"","&#x2CD;":"\\_","&#x2CB;":"ˋ","&#x2CA;":"ˊ","&#x2C9;":"ˉ","&#x2C7;":"","&#x2C6;":"\\hat","&#xBA;":"o","&#xB9;":"1","&#xB8;":"¸","&#xB4;":"´","&#xB3;":"3","&#xB2;":"2","&#xB0;":"\\degree","&#xAA;":"a","&#xA8;":"\\cdot\\cdot","~":"\\sim","`":"`","^":"\\hat","--":"--","++":"++","&amp;":"\\&","&#x2061;":"","&#x221C;":"\\sqrt[4]{}","&#x221B;":"\\sqrt[3]{}","&#x221A;":"\\sqrt{}","&#x2146;":"d","&#x2145;":"\\mathbb{D}","?":"?","@":"@","//":"//","!!":"!!","!":"!","&#x266F;":"\\#","&#x266E;":"","&#x266D;":"","&#x2032;":"'","&lt;>":"<>","**":"\\star\\star","&#x2207;":"\\nabla","&#x2202;":"\\partial","&#x2299;":"\\bigodot","&#xAC;":"\\neg","&#x2222;":"\\measuredangle","&#x2221;":"\\measuredangle","&#x2220;":"\\angle","&#xF7;":"\\div","/":"/","&#x2216;":"\\backslash","\\":"\\backslash","%":"\\%","&#x2297;":"\\bigotimes","&#xB7;":"\\cdot","&#x2A3F;":"\\coprod","&#x2A2F;":"\\times","&#x22C5;":"\\cdot","&#x22A1;":"\\boxdot","&#x22A0;":"\\boxtimes","&#x2062;":"","&#x2043;":"-","&#x2022;":"\\cdot","&#xD7;":"\\times",".":".","*":"\\star","&#x222A;":"\\cup","&#x2229;":"\\cap","&#x2210;":"\\coprod","&#x220F;":"\\prod","&#x2240;":"","&#x2AFF;":"","&#x2AFC;":"\\mid\\mid\\mid","&#x2A09;":"\\times","&#x2A08;":"","&#x2A07;":"","&#x2A06;":"\\sqcup","&#x2A05;":"\\sqcap","&#x2A02;":"\\otimes","&#x2A00;":"\\odot","&#x22C2;":"\\cap","&#x22C1;":"\\vee","&#x22C0;":"\\wedge","&#x2A04;":"\\uplus","&#x2A03;":"\\cup","&#x22C3;":"\\cup","&#x2A1C;":"\\underline{\\int}","&#x2A1B;":"\\overline{\\int}","&#x2A1A;":"\\int","&#x2A19;":"\\int","&#x2A18;":"\\int","&#x2A17;":"\\int","&#x2A16;":"\\oint","&#x2A15;":"\\oint","&#x2A14;":"\\int","&#x2A13;":"\\int","&#x2A12;":"\\int","&#x2A11;":"\\int","&#x2A10;":"\\int","&#x2A0F;":"\\bcancel{\\int}","&#x2A0E;":"","&#x2A0D;":"\\hcancel{\\int}","&#x2A0C;":"\\iiiint","&#x2233;":"\\oint","&#x2232;":"\\oint","&#x2231;":"\\int","&#x2230;":"\\oiint","&#x222F;":"\\oiint","&#x222E;":"\\oint","&#x222B;":"\\int","&#x2A01;":"\\oplus","&#x2298;":"\\oslash","&#x2296;":"\\ominus","&#x2295;":"\\oplus","&#x222D;":"\\iiint","&#x222C;":"\\iint","&#x2A0B;":"","&#x2A0A;":"","&#x2211;":"\\sum","&#x229F;":"\\boxminus","&#x229E;":"\\boxplus","&#x2214;":"\\dot{+}","&#x2213;":"+-","&#x2212;":"-","&#xB1;":"\\pm","-":"-","+":"+","&#x2B46;":"\\Rrightarrow","&#x2B45;":"\\Lleftarrow","&#x29F4;":":\\rightarrow","&#x29EF;":"","&#x29DF;":"\\bullet-\\bullet","&#x299F;":"\\angle","&#x299E;":"\\measuredangle","&#x299D;":"\\measuredangle","&#x299C;":"\\perp","&#x299B;":"\\measuredangle","&#x299A;":"","&#x2999;":"\\vdots","&#x297F;":"","&#x297E;":"","&#x297D;":"\\prec","&#x297C;":"\\succ","&#x297B;":"\\underset{\\rightarrow}{\\supset}","&#x297A;":"","&#x2979;":"\\underset{\\rightarrow}{\\subset}","&#x2978;":"\\underset{\\rightarrow}{>}","&#x2977;":"","&#x2976;":"\\underset{\\leftarrow}{<}","&#x2975;":"\\underset{\\approx}{\\rightarrow}","&#x2974;":"\\underset{\\sim}{\\rightarrow}","&#x2973;":"\\underset{\\sim}{\\leftarrow}","&#x2972;":"\\overset{\\sim}{\\rightarrow}","&#x2971;":"\\overset{=}{\\rightarrow}","&#x2970;":"","&#x296F;":"","&#x296E;":"","&#x296D;":"\\overline{\\rightharpoondown}","&#x296C;":"\\underline{\\rightharpoonup}","&#x296B;":"\\overline{\\leftharpoondown}","&#x296A;":"\\underline{\\leftharpoonup}","&#x2969;":"\\rightleftharpoons","&#x2968;":"\\rightleftharpoons","&#x2967;":"\\rightleftharpoons","&#x2966;":"\\rightleftharpoons","&#x2965;":"\\Downarrow","&#x2964;":"\\Rightarrow","&#x2963;":"\\Uparrow","&#x2962;":"\\Leftarrow","&#x2961;":"\\downarrow","&#x2960;":"\\uparrow","&#x295F;":"\\rightarrow","&#x295E;":"\\leftarrow","&#x295D;":"\\downarrow","&#x295C;":"\\uparrow","&#x295B;":"\\rightarrow","&#x295A;":"\\leftarrow","&#x2959;":"\\downarrow","&#x2958;":"\\uparrow","&#x2957;":"\\rightarrow","&#x2956;":"\\leftarrow","&#x2955;":"\\downarrow","&#x2954;":"\\uparrow","&#x2953;":"\\rightarrow","&#x2952;":"\\leftarrow","&#x2951;":"\\updownarrow","&#x2950;":"\\leftrightarrow","&#x294F;":"\\updownarrow","&#x294E;":"\\leftrightarrow","&#x294D;":"\\updownarrow","&#x294C;":"\\updownarrow","&#x294B;":"\\leftrightarrow","&#x294A;":"\\leftrightarrow","&#x2949;":"","&#x2948;":"\\leftrightarrow","&#x2947;":"\\nrightarrow","&#x2946;":"","&#x2945;":"","&#x2944;":"\\rightleftarrows","&#x2943;":"\\leftrightarrows","&#x2942;":"\\rightleftarrows","&#x2941;":"\\circlearrowright","&#x2940;":"\\circlearrowleft","&#x293F;":"\\rightarrow","&#x293E;":"\\leftarrow","&#x293D;":"","&#x293C;":"","&#x293B;":"","&#x293A;":"","&#x2939;":"","&#x2938;":"","&#x2937;":"\\Rsh","&#x2936;":"\\Lsh","&#x2935;":"\\downarrow","&#x2934;":"\\uparrow","&#x2933;":"\\leadsto","&#x2932;":"","&#x2931;":"","&#x2930;":"","&#x292F;":"","&#x292E;":"","&#x292D;":"","&#x292C;":"\\times","&#x292B;":"\\times","&#x292A;":"","&#x2929;":"","&#x2928;":"","&#x2927;":"","&#x2926;":"","&#x2925;":"","&#x2924;":"","&#x2923;":"","&#x2922;":"","&#x2921;":"","&#x2920;":"\\mapsto\\cdot","&#x291F;":"\\cdot\\leftarrow","&#x291E;":"\\rightarrow\\cdot","&#x291D;":"\\leftarrow","&#x291C;":"\\rightarrow","&#x291B;":"\\leftarrow","&#x291A;":"\\rightarrow","&#x2919;":"\\leftarrow","&#x2918;":"\\rightarrow","&#x2917;":"\\rightarrow","&#x2916;":"\\rightarrow","&#x2915;":"\\rightarrow","&#x2914;":"\\rightarrow","&#x2913;":"\\downarrow","&#x2912;":"\\uparrow","&#x2911;":"\\rightarrow","&#x2910;":"\\rightarrow","&#x290F;":"\\rightarrow","&#x290E;":"\\leftarrow","&#x290D;":"\\rightarrow","&#x290C;":"\\leftarrow","&#x290B;":"\\Downarrow","&#x290A;":"\\Uparrow","&#x2909;":"\\uparrow","&#x2908;":"\\downarrow","&#x2907;":"\\Rightarrow","&#x2906;":"\\Leftarrow","&#x2905;":"\\mapsto","&#x2904;":"\\nLeftrightarrow","&#x2903;":"\\nRightarrow","&#x2902;":"\\nLeftarrow","&#x2901;":"\\rightsquigarrow","&#x2900;":"\\rightsquigarrow","&#x27FF;":"\\rightsquigarrow","&#x27FE;":"\\Rightarrow","&#x27FD;":"\\Leftarrow","&#x27FC;":"\\mapsto","&#x27FB;":"\\leftarrow","&#x27FA;":"\\Longleftrightarrow","&#x27F9;":"\\Longrightarrow","&#x27F8;":"\\Longleftarrow","&#x27F7;":"\\leftrightarrow","&#x27F6;":"\\rightarrow","&#x27F5;":"\\leftarrow","&#x27F1;":"\\Downarrow","&#x27F0;":"\\Uparrow","&#x22B8;":"\\rightarrow","&#x21FF;":"\\leftrightarrow","&#x21FE;":"\\rightarrow","&#x21FD;":"\\leftarrow","&#x21FC;":"\\nleftrightarrow","&#x21FB;":"\\nrightarrow","&#x21FA;":"\\nleftarrow","&#x21F9;":"\\nleftrightarrow","&#x21F8;":"\\nrightarrow","&#x21F7;":"\\nleftarrow","&#x21F6;":"\\Rrightarrow","&#x21F5;":"","&#x21F4;":"\\rightarrow","&#x21F3;":"\\Updownarrow","&#x21F2;":"\\searrow","&#x21F1;":"\\nwarrow","&#x21F0;":"\\Leftarrow","&#x21EF;":"\\Uparrow","&#x21EE;":"\\Uparrow","&#x21ED;":"\\Uparrow","&#x21EC;":"\\Uparrow","&#x21EB;":"\\Uparrow","&#x21EA;":"\\Uparrow","&#x21E9;":"\\Downarrow","&#x21E8;":"\\Rightarrow","&#x21E7;":"\\Uparrow","&#x21E6;":"\\Leftarrow","&#x21E5;":"\\rightarrow","&#x21E4;":"\\leftarrow","&#x21E3;":"\\downarrow","&#x21E2;":"\\rightarrow","&#x21E1;":"\\uparrow","&#x21E0;":"\\leftarrow","&#x21DF;":"\\downarrow","&#x21DE;":"\\uparrow","&#x21DD;":"\\rightsquigarrow","&#x21DC;":"\\leftarrow","&#x21DB;":"\\Rrightarrow","&#x21DA;":"\\Lleftarrow","&#x21D9;":"\\swarrow","&#x21D8;":"\\searrow","&#x21D7;":"\\nearrow","&#x21D6;":"\\nwarrow","&#x21D5;":"\\Updownarrow","&#x21D4;":"\\Leftrightarrow","&#x21D3;":"\\Downarrow","&#x21D2;":"\\Rightarrow","&#x21D1;":"\\Uparrow","&#x21D0;":"\\Leftarrow","&#x21CF;":"\\nRightarrow","&#x21CE;":"\\nLeftrightarrow","&#x21CD;":"\\nLeftarrow","&#x21CC;":"\\rightleftharpoons","&#x21CB;":"\\leftrightharpoons","&#x21CA;":"\\downdownarrows","&#x21C9;":"\\rightrightarrows","&#x21C8;":"\\upuparrows","&#x21C7;":"\\leftleftarrows","&#x21C6;":"\\leftrightarrows","&#x21C5;":"","&#x21C4;":"\\rightleftarrows","&#x21C3;":"\\downharpoonleft","&#x21C2;":"\\downharpoonright","&#x21C1;":"\\rightharpoondown","&#x21C0;":"\\rightharpoonup","&#x21BF;":"\\upharpoonleft","&#x21BE;":"\\upharpoonright","&#x21BD;":"\\leftharpoondown","&#x21BC;":"\\leftharpoonup","&#x21BB;":"\\circlearrowright","&#x21BA;":"\\circlearrowleft","&#x21B9;":"\\leftrightarrows","&#x21B8;":"\\overline{\\nwarrow}","&#x21B7;":"\\curvearrowright","&#x21B6;":"\\curvearrowleft","&#x21B5;":"\\swarrow","&#x21B4;":"\\searrow","&#x21B3;":"\\Rsh","&#x21B2;":"\\Lsh","&#x21B1;":"\\Rsh","&#x21B0;":"\\Lsh","&#x21AF;":"\\swarrow","&#x21AE;":"","&#x21AD;":"\\leftrightsquigarrow","&#x21AC;":"\\looparrowright","&#x21AB;":"\\looparrowleft","&#x21AA;":"\\hookrightarrow","&#x21A9;":"\\hookleftarrow","&#x21A8;":"\\underline{\\updownarrow}","&#x21A7;":"\\downarrow","&#x21A6;":"\\rightarrowtail","&#x21A5;":"\\uparrow","&#x21A4;":"\\leftarrowtail","&#x21A3;":"\\rightarrowtail","&#x21A2;":"\\leftarrowtail","&#x21A1;":"\\downarrow","&#x21A0;":"\\twoheadrightarrow","&#x219F;":"\\uparrow","&#x219E;":"\\twoheadleftarrow","&#x219D;":"\\nearrow","&#x219C;":"\\nwarrow","&#x219B;":"","&#x219A;":"","&#x2199;":"\\swarrow","&#x2198;":"\\searrow","&#x2197;":"\\nearrow","&#x2196;":"\\nwarrow","&#x2195;":"\\updownarrow","&#x2194;":"\\leftrightarrow","&#x2193;":"\\downarrow","&#x2192;":"\\rightarrow","&#x2191;":"\\uparrow","&#x2190;":"\\leftarrow","|||":"\\left|||\\right.","||":"\\left||\\right.","|":"\\left|\\right.","&#x2AFE;":"","&#x2AFD;":"//","&#x2AFB;":"///","&#x2AFA;":"","&#x2AF9;":"","&#x2AF8;":"","&#x2AF7;":"","&#x2AF6;":"\\vdots","&#x2AF5;":"","&#x2AF4;":"","&#x2AF3;":"","&#x2AF2;":"\\nparallel","&#x2AF1;":"","&#x2AF0;":"","&#x2AEF;":"","&#x2AEE;":"\\bcancel{\\mid}","&#x2AED;":"","&#x2AEC;":"","&#x2AEB;":"","&#x2AEA;":"","&#x2AE9;":"","&#x2AE8;":"\\underline{\\perp}","&#x2AE7;":"\\overline{\\top}","&#x2AE6;":"","&#x2AE5;":"","&#x2AE4;":"","&#x2AE3;":"","&#x2AE2;":"","&#x2AE1;":"","&#x2AE0;":"\\perp","&#x2ADF;":"\\top","&#x2ADE;":"\\dashv","&#x2ADD;&#x338;":"","&#x2ADD;":"","&#x2ADB;":"\\pitchfork","&#x2ADA;":"","&#x2AD9;":"","&#x2AD8;":"","&#x2AD7;":"","&#x2AD6;":"","&#x2AD5;":"","&#x2AD4;":"","&#x2AD3;":"","&#x2AD2;":"","&#x2AD1;":"","&#x2AD0;":"","&#x2ACF;":"","&#x2ACE;":"","&#x2ACD;":"","&#x2ACC;":"\\underset{\\neq}{\\supset}","&#x2ACB;":"\\underset{\\neq}{\\subset}","&#x2ACA;":"\\underset{\\approx}{\\supset}","&#x2AC9;":"\\underset{\\approx}{\\subset}","&#x2AC8;":"\\underset{\\sim}{\\supset}","&#x2AC7;":"\\underset{\\sim}{\\subset}","&#x2AC6;":"\\supseteqq","&#x2AC5;":"\\subseteqq","&#x2AC4;":"\\dot{\\supseteq}","&#x2AC3;":"\\dot{\\subseteq}","&#x2AC2;":"\\underset{\\times}{\\supset}","&#x2AC1;":"\\underset{\\times}{\\subset}","&#x2AC0;":"\\underset{+}{\\supset}","&#x2ABF;":"\\underset{+}{\\subset}","&#x2ABE;":"","&#x2ABD;":"","&#x2ABC;":"\\gg ","&#x2ABB;":"\\ll","&#x2ABA;":"\\underset{\\cancel{\\approx}}{\\succ}","&#x2AB9;":"\\underset{\\cancel{\\approx}}{\\prec}","&#x2AB8;":"\\underset{\\approx}{\\succ}","&#x2AB7;":"\\underset{\\approx}{\\prec}","&#x2AB6;":"\\underset{\\cancel{=}}{\\succ}","&#x2AB5;":"\\underset{\\cancel{=}}{\\prec}","&#x2AB4;":"\\underset{=}{\\succ}","&#x2AB3;":"\\underset{=}{\\prec}","&#x2AB2;":"","&#x2AB1;":"","&#x2AAE;":"","&#x2AAD;":"\\underline{\\hcancel{>}}","&#x2AAC;":"\\underline{\\hcancel{>}}","&#x2AAB;":"\\hcancel{>}","&#x2AAA;":"\\hcancel{<}","&#x2AA9;":"","&#x2AA8;":"","&#x2AA7;":"\\vartriangleright","&#x2AA6;":"\\vartriangleleft","&#x2AA5;":"><","&#x2AA4;":"><","&#x2AA3;":"\\underline{\\ll}","&#x2AA2;&#x338;":"\\cancel{\\gg}","&#x2AA2;":"\\gg","&#x2AA1;&#x338;":"\\cancel{\\ll}","&#x2AA1;":"\\ll","&#x2AA0;":"\\overset{\\sim}{\\geqq}","&#x2A9F;":"\\overset{\\sim}{\\leqq}","&#x2A9E;":"\\overset{\\sim}{>}","&#x2A9D;":"\\overset{\\sim}{<}","&#x2A9C;":"","&#x2A9B;":"","&#x2A9A;":"\\overset{=}{>}","&#x2A99;":"\\overset{=}{<}","&#x2A98;":"","&#x2A97;":"","&#x2A96;":"","&#x2A95;":"","&#x2A94;":"","&#x2A93;":"","&#x2A92;":"\\underset{=}{\\gtrless}","&#x2A91;":"\\underset{=}{\\lessgtr}","&#x2A90;":"\\underset{<}{\\gtrsim}","&#x2A8F;":"\\underset{>}{\\lesssim}","&#x2A8E;":"\\underset{\\simeq}{>}","&#x2A8D;":"\\underset{\\simeq}{<}","&#x2A8C;":"\\gtreqqless","&#x2A8B;":"\\lesseqqgtr","&#x2A8A;":"\\underset{\\cancel{\\approx}}{>}","&#x2A89;":"\\underset{\\approx}{<}","&#x2A86;":"\\underset{\\approx}{>}","&#x2A85;":"\\underset{\\approx}{<}","&#x2A84;":"","&#x2A83;":"","&#x2A82;":"","&#x2A81;":"","&#x2A80;":"","&#x2A7F;":"","&#x2A7E;&#x338;":"\\bcancel{\\geq}","&#x2A7E;":"\\geq","&#x2A7D;&#x338;":"\\bcancel{\\leq}","&#x2A7D;":"\\leq","&#x2A7C;":"","&#x2A7B;":"","&#x2A7A;":"","&#x2A79;":"","&#x2A78;":"\\overset{\\dots}{\\equiv}","&#x2A77;":"","&#x2A76;":"===","&#x2A75;":"==","&#x2A74;":"::=","&#x2A73;":"","&#x2A72;":"\\underset{=}{+}","&#x2A71;":"\\overset{=}{+}","&#x2A70;":"\\overset{\\approx}{=}","&#x2A6F;":"\\overset{\\wedge}{=}","&#x2A6E;":"\\overset{*}{=}","&#x2A6D;":"\\dot{\\approx}","&#x2A6C;":"","&#x2A6B;":"","&#x2A6A;":"\\dot{\\sim}","&#x2A69;":"","&#x2A68;":"","&#x2A67;":"\\dot{\\equiv}","&#x2A66;":"\\underset{\\cdot}{=}","&#x2A65;":"","&#x2A64;":"","&#x2A63;":"\\underset{=}{\\vee}","&#x2A62;":"\\overset{=}{\\vee}","&#x2A61;":"ul(vv)","&#x2A60;":"\\underset{=}{\\wedge}","&#x2A5F;":"\\underline{\\wedge}","&#x2A5E;":"\\overset{=}{\\wedge}","&#x2A5D;":"\\hcancel{\\vee}","&#x2A5C;":"\\hcancel{\\wedge}","&#x2A5B;":"","&#x2A5A;":"","&#x2A59;":"","&#x2A58;":"\\vee","&#x2A57;":"\\wedge","&#x2A56;":"","&#x2A55;":"","&#x2A54;":"","&#x2A53;":"","&#x2A52;":"\\dot{\\vee}","&#x2A51;":"\\dot{\\wedge}","&#x2A50;":"","&#x2A4F;":"","&#x2A4E;":"","&#x2A4D;":"\\overline{\\cap}","&#x2A4C;":"\\overline{\\cup}","&#x2A4B;":"","&#x2A4A;":"","&#x2A49;":"","&#x2A48;":"","&#x2A47;":"","&#x2A46;":"","&#x2A45;":"","&#x2A44;":"","&#x2A43;":"\\overline{\\cap}","&#x2A42;":"\\overline{\\cup}","&#x2A41;":"","&#x2A40;":"","&#x2A3E;":"","&#x2A3D;":"\\llcorner","&#x2A3C;":"\\lrcorner","&#x2A3B;":"","&#x2A3A;":"","&#x2A39;":"","&#x2A38;":"","&#x2A37;":"","&#x2A36;":"\\hat{\\otimes}","&#x2A35;":"","&#x2A34;":"","&#x2A33;":"","&#x2A32;":"\\underline{\\times}","&#x2A31;":"\\underline{\\times}","&#x2A30;":"\\dot{\\times}","&#x2A2E;":"","&#x2A2D;":"","&#x2A2C;":"","&#x2A2B;":"","&#x2A2A;":"","&#x2A29;":"","&#x2A28;":"","&#x2A27;":"","&#x2A26;":"\\underset{\\sim}{+}","&#x2A25;":"\\underset{\\circ}{+}","&#x2A24;":"\\overset{\\sim}{+}","&#x2A23;":"\\hat{+}","&#x2A22;":"\\dot{+}","&#x2A21;":"\\upharpoonright","&#x2A20;":">>","&#x2A1F;":"","&#x2A1E;":"\\triangleleft","&#x2A1D;":"\\bowtie","&#x29FF;":"","&#x29FE;":"+","&#x29FB;":"\\hcancel{|||}","&#x29FA;":"\\hcancel{||}","&#x29F9;":"\\backslash","&#x29F8;":"/","&#x29F7;":"hcancel{\backslash}","&#x29F6;":"","&#x29F5;":"\\backslash","&#x29F2;":"\\Phi","&#x29F1;":"","&#x29F0;":"","&#x29EE;":"","&#x29ED;":"","&#x29EC;":"","&#x29EB;":"\\lozenge","&#x29EA;":"","&#x29E9;":"","&#x29E8;":"","&#x29E7;":"\\ddagger","&#x29E2;":"\\sqcup\\sqcup","&#x29E1;":"","&#x29E0;":"\\square","&#x29DE;":"","&#x29DD;":"","&#x29DC;":"","&#x29DB;":"\\{\\{","&#x29D9;":"\\{","&#x29D8;":"\\}","&#x29D7;":"","&#x29D6;":"","&#x29D5;":"\\bowtie","&#x29D4;":"\\bowtie","&#x29D3;":"\\bowtie","&#x29D2;":"\\bowtie","&#x29D1;":"\\bowtie","&#x29D0;&#x338;":"| \\not\\triangleright","&#x29D0;":"| \\triangleright","&#x29CF;&#x338;":"\\not\\triangleleft |","&#x29CF;":"\\triangleleft |","&#x29CE;":"","&#x29CD;":"\\triangle","&#x29CC;":"","&#x29CB;":"\\underline{\\triangle}","&#x29CA;":"\\dot{\\triangle}","&#x29C9;":"","&#x29C8;":"\\boxed{\\circ}","&#x29C7;":"\\boxed{\\circ}","&#x29C6;":"\\boxed{\\rightarrow}","&#x29C5;":"\\bcancel{\\square}","&#x29C4;":"\\cancel{\\square}","&#x29C3;":"\\odot","&#x29C2;":"\\odot","&#x29BF;":"\\odot","&#x29BE;":"\\odot","&#x29BD;":"\\varnothing","&#x29BC;":"\\oplus","&#x29BB;":"\\otimes","&#x29BA;":"","&#x29B9;":"\\varnothing","&#x29B8;":"\\varnothing","&#x29B7;":"\\ominus","&#x29B6;":"\\ominus","&#x29B5;":"\\ominus","&#x29B4;":"\\vec{\\varnothing}","&#x29B3;":"\\vec{\\varnothing}","&#x29B2;":"\\dot{\\varnothing}","&#x29B1;":"\\overline{\\varnothing}","&#x29B0;":"\\varnothing","&#x29AF;":"","&#x29AE;":"","&#x29AD;":"","&#x29AC;":"","&#x29AB;":"","&#x29AA;":"","&#x29A9;":"","&#x29A8;":"","&#x29A7;":"","&#x29A6;":"","&#x29A5;":"","&#x29A4;":"","&#x29A3;":"","&#x29A2;":"","&#x29A1;":"\\not\\lor","&#x29A0;":"\\bcancel{>}","&#x2982;":":","&#x2981;":"\\circ","&#x2758;":"|","&#x25B2;":"\\bigtriangleup","&#x22FF;":"\\Epsilon","&#x25FB;":"\\square","&#x22FE;":"\\overline{\\ni}","&#x22FD;":"\\overline{\\ni}","&#x22FC;":"\\in","&#x22FB;":"\\in","&#x22FA;":"\\in","&#x22F9;":"\\underline{\\in}","&#x22F8;":"\\underline{\\in}","&#x22F7;":"\\overline{\\in}","&#x22F6;":"\\overline{\\in}","&#x22F5;":"\\dot{\\in}","&#x22F4;":"\\in","&#x22F3;":"\\in","&#x22F2;":"\\in","&#x22F0;":"\\ddots","&#x22E9;":"\\underset{\\sim}{\\succ}","&#x22E8;":"\\underset{\\sim}{\\prec}","&#x22E7;":"\\underset{\\not\\sim}{>}","&#x22E6;":"\\underset{\\not\\sim}{<}","&#x22E5;":"\\not\\sqsupseteq","&#x22E4;":"\\not\\sqsubseteq","&#x22E3;":"\\not\\sqsupseteq","&#x22E2;":"\\not\\sqsubseteq","&#x22E1;":"\\nsucc","&#x22E0;":"\\nprec","&#x22DF;":"\\succ","&#x22DE;":"\\prec","&#x22DD;":"\\overline{>}","&#x22DC;":"\\overline{<}","&#x22DB;":"\\underset{>}{\\leq}","&#x22DA;":"\\underset{<}{\\geq}","&#x22D5;":"\\#","&#x22D3;":"\\cup","&#x22D2;":"\\cap","&#x22D1;":"\\supset","&#x22D0;":"\\subset","&#x22CF;":"\\wedge","&#x22CE;":"\\vee","&#x22CD;":"\\simeq","&#x22C8;":"\\bowtie","&#x22C7;":"\\ast","&#x22C6;":"\\star","&#x22C4;":"\\diamond","&#x22BF;":"\\triangle","&#x22BE;":"\\measuredangle","&#x22BD;":"\\overline{\\lor}","&#x22BC;":"\\overline{\\land}","&#x22BB;":"\\underline{\\lor}","&#x22BA;":"\\top","&#x22B9;":"","&#x22B7;":"\\circ\\multimap","&#x22B6;":"\\circ\\multimap","&#x22B3;":"\\triangleright","&#x22B2;":"\\triangleleft","&#x22B1;":"\\succ","&#x22B0;":"\\prec","&#x22AB;":"|\\models","&#x22AA;":"|\\models","&#x22A7;":"\\models","&#x22A6;":"\\vdash","&#x229D;":"\\ominus","&#x229C;":"\\ominus","&#x229B;":"\\odot","&#x229A;":"\\odot","&#x2294;":"\\sqcup","&#x2293;":"\\sqcap","&#x2292;":"\\sqsupseteq","&#x2291;":"\\sqsubseteq","&#x2290;&#x338;":"\\not\\sqsupset","&#x2290;":"\\sqsupset","&#x228F;&#x338;":"\\not\\sqsubset","&#x228F;":"\\sqsubset","&#x228E;":"\\cup","&#x228D;":"\\cup","&#x228C;":"\\cup","&#x227F;&#x338;":"\\not\\succsim","&#x227F;":"\\succsim","&#x227E;":"\\precsim","&#x2279;":"\\not\\overset{>}{<}","&#x2278;":"\\not\\overset{>}{<}","&#x2277;":"\\overset{>}{<}","&#x2276;":"\\overset{<}{>}","&#x2275;":"\\not\\geg","&#x2274;":"\\not\\leq","&#x2273;":"\\geg","&#x2272;":"\\leq","&#x226C;":"","&#x2267;":"\\geg","&#x2266;&#x338;":"\\not\\leq","&#x2266;":"\\leq","&#x2263;":"\\overset{=}{=} ","&#x225E;":"\\overset{m}{=} ","&#x225D;":"\\overset{def}{=}","&#x2258;":"=","&#x2256;":"=","&#x2255;":"=:","&#x2253;":"\\doteq","&#x2252;":"\\doteq","&#x2251;":"\\doteq","&#x2250;":"\\doteq","&#x224F;&#x338;":"","&#x224F;":"","&#x224E;&#x338;":"","&#x224E;":"","&#x224C;":"\\approx","&#x224B;":"\\approx","&#x224A;":"\\approx","&#x2242;&#x338;":"\\neq","&#x2242;":"=","&#x223F;":"\\sim","&#x223E;":"\\infty","&#x223D;&#x331;":"\\sim","&#x223D;":"\\sim","&#x223B;":"\\sim","&#x223A;":":-:","&#x2239;":"-:","&#x2238;":"\\bot","&#x2237;":"::","&#x2236;":":","&#x2223;":"|","&#x221F;":"\\llcorner","&#x2219;":"\\cdot","&#x2218;":"\\circ","&#x2217;":"*","&#x2215;":"/","&#x220E;":"\\square","&#x220D;":"\\ni","&#x220A;":"\\in","&#x2206;":"\\Delta","&#x2044;":"/","&#x2AB0;&#x338;":"\\nsucceq","&#x2AB0;":"\\succeq","&#x2AAF;&#x338;":"\\npreceq","&#x2AAF;":"\\preceq","&#x2A88;":"\\ngeqslant","&#x2A87;":"\\nleqslant","&#x29F3;":"\\Phi","&#x29E6;":"\\models","&#x29E5;":"\\not\\equiv","&#x29E4;":"\\approx\\neq","&#x29E3;":"\\neq","&#x29C1;":"\\circle","&#x29C0;":"\\circle","&#x25E6;":"\\circle","&#x25D7;":"\\circle","&#x25D6;":"\\circle","&#x25CF;":"\\circle","&#x25CE;":"\\circledcirc","&#x25CD;":"\\circledcirc","&#x25CC;":"\\circledcirc","&#x25C9;":"\\circledcirc","&#x25C8;":"\\diamond","&#x25C7;":"\\diamond","&#x25C6;":"\\diamond","&#x25C5;":"\\triangleleft","&#x25C4;":"\\triangleleft","&#x25C3;":"\\triangleleft","&#x25C2;":"\\triangleleft","&#x25C1;":"\\triangleleft","&#x25C0;":"\\triangleleft","&#x25BF;":"\\triangledown","&#x25BE;":"\\triangledown","&#x25BD;":"\\triangledown","&#x25BC;":"\\triangledown","&#x25B9;":"\\triangleright","&#x25B8;":"\\triangleright","&#x25B7;":"\\triangleright","&#x25B6;":"\\triangleright","&#x25B5;":"\\triangle","&#x25B4;":"\\triangle","&#x25B3;":"\\triangle","&#x25B1;":"\\square","&#x25B0;":"\\square","&#x25AF;":"\\square","&#x25AE;":"\\square","&#x25AD;":"\\square","&#x25AB;":"\\square","&#x25AA;":"\\square","&#x25A1;":"\\square","&#x25A0;":"\\square","&#x22ED;":"\\not\\triangleright","&#x22EC;":"\\not\\triangleleft","&#x22EB;":"\\not\\triangleright","&#x22EA;":"\\not\\triangleleft","&#x22D9;":"\\ggg","&#x22D8;":"\\lll","&#x22D7;":"*>","&#x22D6;":"<*","&#x22D4;":"\\pitchfork","&#x22CC;":"","&#x22CB;":"","&#x22CA;":"\\rtimes","&#x22C9;":"\\ltimes","&#x22B5;":"\\triangleright","&#x22B4;":"","&#x22A5;":"\\bot","&#x2281;":"\\nsucc","&#x2280;":"\\preceq","&#x227D;":"\\succeq","&#x227C;":"\\preceq","&#x227B;":"\\succ","&#x227A;":"\\prec","&#x2271;":"\\geq/","&#x2270;":"\\leq/","&#x226D;":"\\neq","&#x226B;&#x338;":"\\not\\gg","&#x226B;":"\\gg","&#x226A;&#x338;":"\\not\\ll","&#x226A;":"\\ll","&#x2269;":"\\ngeqslant","&#x2268;":"\\nleqslant","&#x2261;":"\\equiv","&#x225F;":"\\doteq","&#x225C;":"\\triangleq","&#x225B;":"\\doteq","&#x225A;":"\\triangleq","&#x2259;":"\\triangleq","&#x2257;":"\\doteq","&#x2254;":":=","&#x224D;":"\\asymp","&#x2247;":"\\ncong","&#x2246;":"\\ncong","&#x2245;":"\\cong","&#x2244;":"\\not\\simeq","&#x2243;":"\\simeq","&#x2241;":"\\nsim","&#x2226;":"\\not\\parallel","&#x2225;":"\\parallel","&#x2224;":"\\not|","&#x221D;":"\\propto","==":"==","=":"="," ̿":"=","&#x33F;":"=",":=":":=","/=":"=","-=":"-=","+=":"+=","*=":"*=","!=":"!=","&#x2260;":"\\neq","&#x2262;":"\\equiv /","&#x2249;":"\\approx /","&#x223C;":"\\sim","&#x2248;":"\\approx","&#x226E;":"</","&lt;":"<","&#x226F;":">/",">=":">=",">":">","&#x2265;":"\\geq","&#x2264;":"\\leq","&lt;=":"<=","&#x228B;":"\\supsetneq","&#x228A;":"\\subsetneq","&#x2289;":"\\nsupseteq","&#x2288;":"\\nsubseteq","&#x2287;":"\\supseteq","&#x2286;":"\\subseteq","&#x2285;":"\\not\\supset","&#x2284;":"\\not\\subset","&#x2283;&#x20D2;":"\\supset |","&#x2283;":"\\supset","&#x2282;&#x20D2;":"\\subset |","&#x2282;":"\\subset","&#x220C;":"\\not\\in","&#x2209;":"\\notin","&#x2208;":"\\in","&#x2201;":"C","&#x2204;":"\\nexists","&#x2203;":"\\exists","&#x2200;":"\\forall","&#x2227;":"\\land","&amp;&amp;":"\\&\\&","&#x2228;":"\\lor","&#x22AF;":"\\cancel{\\vDash}","&#x22AE;":"\\cancel{\\Vdash}","&#x22AD;":"\\nvDash","&#x22AC;":"\\nvDash","&#x22A9;":"\\Vdash","&#x22A8;":"\\vDash","&#x22A4;":"\\top","&#x22A3;":"\\dashv","&#x22A2;":"\\vdash","&#x220B;":"\\ni","&#x22F1;":"\\ddots","&#x22EF;":"\\hdots","&#x22EE;":"\\vdots","&#x2026;":"\\hdots","&#x3F6;":"\\ni",":":":","...":"\\cdots","..":"..","->":"->","&#x2235;":"\\because","&#x2234;":"\\therefore ","&#x2063;":"",",":",",";":";","&#x29FD;":"\\}","&#x29FC;":"\\{","&#x2998;":"\\]","&#x2997;":"\\[","&#x2996;":"\\ll","&#x2995;":"\\gg","&#x2994;":"\\gg","&#x2993;":"\\ll","&#x2992;":"\\gg","&#x2991;":"\\ll","&#x2990;":"\\]","&#x298F;":"\\]","&#x298E;":"\\]","&#x298D;":"\\[","&#x298C;":"\\[","&#x298B;":"\\]","&#x298A;":"\\triangleright","&#x2989;":"\\triangleleft","&#x2988;":"|\\)","&#x2987;":"\\(|","&#x2986;":"|\\)","&#x2985;":"\\(\\(","&#x2984;":"|\\}","&#x2983;":"\\{|","&#x2980;":"\\||","&#x27EF;":"\\right)","&#x27EE;":"\\left(","&#x27ED;":"\\right]]","&#x27EC;":"\\left[[","&#x27EB;":"\\gg","&#x27EA;":"\\ll","&#x27E9;":"\\rangle","&#x27E8;":"\\langle","&#x27E7;":"\\right]]","&#x27E6;":"\\left[[","&#x2773;":"\\right)","&#x2772;":"\\left(","&#x232A;":"\\rangle","&#x2329;":"\\langle","&#x230B;":"\\rfloor","&#x230A;":"\\lfloor","&#x2309;":"\\rceil","&#x2308;":"\\lceil","&#x2016;":"\\parallel","}":"\\right}","{":"\\left{","]":"\\right]","[":"\\left[",")":"\\right)","(":"\\left(","&#x201D;":'"',"&#x201C;":"``","&#x2019;":"'","&#x2018;":"`","%CE%B1":"\\alpha","%CE%B2":"\\beta","%CE%B3":"\\gamma","%CE%93":"\\Gamma","%CE%B4":"\\delta","%CE%94":"\\Delta","%CF%B5":"\\epsilon","%CE%B6":"\\zeta","%CE%B7":"\\eta","%CE%B8":"\\theta","%CE%98":"\\Theta","%CE%B9":"\\iota","%CE%BA":"\\kappa","%CE%BB":"\\lambda","%CE%BC":"\\mu","%CE%BD":"\\nu","%CE%BF":"\\omicron","%CF%80":"\\pi","%CE%A0":"\\Pi","%CF%81":"\\pho","%CF%83":"\\sigma","%CE%A3":"\\Sigma","%CF%84":"\\tau","%CF%85":"\\upsilon","%CE%A5":"\\Upsilon","%CF%95":"\\phi","%CE%A6":"\\Phi","%CF%87":"\\chi","%CF%88":"\\psi","%CE%A8":"\\Psi","%CF%89":"\\omega","%CE%A9":"\\Omega"}},598:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.allMathOperatorsByGlyph=s.allMathOperatorsByGlyphSpecial=void 0,s.allMathOperatorsByGlyphSpecial={'"ˍ"':"\\_",'"ˋ"':"ˋ",'"ˊ"':"ˊ",'"ˉ"':"ˉ",'"ˇ"':"",'"ˆ"':"\\hat",'"º"':"o",'"ª"':"a",'"ⅆ"':"d",'"ⅅ"':"\\mathbb{D}",'"土"':"\\pm",'"十"':"+",'"α"':"\\alpha",'"β"':"\\beta",'"γ"':"\\gamma",'"Γ"':"\\Gamma",'"δ"':"\\delta",'"Δ"':"\\Delta",'"ϵ"':"\\epsilon",'"ζ"':"\\zeta",'"η"':"\\eta",'"θ"':"\\theta",'"Θ"':"\\Theta",'"ι"':"\\iota",'"κ"':"\\kappa",'"λ"':"\\lambda",'"ν"':"\\nu",'"ο"':"\\omicron",'"π"':"\\pi",'"Π"':"\\Pi",'"ρ"':"\\rho",'"σ"':"\\sigma",'"Σ"':"\\Sigma",'"τ"':"\\tau",'"υ"':"\\upsilon",'"Υ"':"\\Upsilon",'"ϕ"':"\\phi",'"Φ"':"\\Phi",'"χ"':"\\chi",'"ψ"':"\\psi",'"Ψ"':"\\Psi",'"ω"':"\\omega",'"Ω"':"\\Omega",'"Ω"':"\\Omega",'"ℏ"':"\\hbar",'"ℜ"':"\\mathfrak{R}",'"Ѳ"':"\\theta",'"Ø"':"\\emptyset",'"ϱ"':"\\varrho",'"ф"':"\\phi",'"ℇ"':"\\varepsilon",'"Ρ"':"P",'"ᐁ"':"\\nabla",'"ƞ"':"\\eta",'"μ"':"\\mu",'"Ө"':"\\theta",'"ⅇ"':"\\text{e}",'"ɼ"':"r",'"ἱ"':"i",'"ϒ"':"\\Upsilon",'"ѳ"':"\\theta",'"ⁿ"':"^{n}",'"เ"':"\\prime",'"П"':"\\prod",'"о"':"o",'"ђ"':"\\hbar",'"Ʌ"':"\\Lambda",'"ῡ"':"\\bar{u}",'"φ"':"\\varphi",'"ȼ"':"c",'"Χ"':"\\mathsf{X}",'"ₙ"':"_{n}",'"ħ"':"\\hbar",'"T"':"T",'"$"':"\\$",'"𝛿"':"\\delta",'"𝜙"':"\\phi",'"𝞮"':"\\epsilon"},s.allMathOperatorsByGlyph={_:"\\underline","⏡":"\\underbrace","⏠":"\\overbrace","⏟":"\\underbrace","⏞":"\\overbrace","⏝":"\\underbrace","⏜":"\\overarc","⎵":"\\underbrace","⎴":"\\overbrace","⃜":"\\square","⃛":"\\square","⁤":"","⁗":"''''","‾":"\\overline","―":"\\overline","‷":"```","‶":"``","‵":"`","‴":"'''","″":"''","‟":"``","„":",,","‛":"`","‚":",","^":"\\hat","˷":"\\sim","˝":"\\sim","˜":"\\sim","˚":"\\degree","˙":"\\cdot","˘":" ","¹":"1","¸":",","´":"´","³":"3","²":"2","°":"\\degree","¯":"\\overline","↛":"\\nrightarrow","¨":"\\cdot\\cdot","~":"\\sim","`":"`","--":"--","++":"++","&":"\\&","∜":"\\sqrt[4]{}","∛":"\\sqrt[3]{}","√":"\\sqrt{}","?":"?","@":"@","//":"//","!!":"!!","!":"!","♯":"\\#","♮":"","♭":"","′":"'","<>":"<>","**":"\\star\\star","∇":"\\nabla","∂":"\\partial","⊙":"\\bigodot","¬":"\\neg","∢":"\\measuredangle","∡":"\\measuredangle","∠":"\\angle","÷":"\\div","/":"/","∖":"\\backslash","\\":"\\backslash","%":"\\%","⊗":"\\bigotimes","·":"\\cdot","⨿":"\\coprod","⨯":"\\times","⋅":"\\cdot","⊡":"\\boxdot","⊠":"\\boxtimes","⁢":"","⁃":"-","•":"\\cdot",".":".","*":"\\star","∪":"\\cup","∩":"\\cap","∐":"\\coprod","∏":"\\prod","≀":"","⫿":"","⫼":"\\mid\\mid\\mid","⨉":"\\times","⨈":"","⨇":"","⨆":"\\sqcup","⨅":"\\sqcap","⨂":"\\otimes","⨀":"\\odot","⋂":"\\cap","⋁":"\\vee","⋀":"\\wedge","⨄":"\\uplus","⨃":"\\cup","⋃":"\\cup","⨜":"\\underline{\\int}","⨛":"\\overline{\\int}","⨚":"\\int","⨙":"\\int","⨘":"\\int","⨗":"\\int","⨖":"\\oint","⨕":"\\oint","⨔":"\\int","⨓":"\\int","⨒":"\\int","⨑":"\\int","⨐":"\\int","⨏":"\\bcancel{\\int}","⨎":"","⨍":"\\hcancel{\\int}","⨌":"\\iiiint","∳":"\\oint","∲":"\\oint","∱":"\\int","∰":"\\oiint","∯":"\\oiint","∮":"\\oint","∫":"\\int","⨁":"\\oplus","⊘":"\\oslash","⊖":"\\ominus","⊕":"\\oplus","∭":"\\iiint","∬":"\\iint","⨋":"","⨊":"","∑":"\\sum","⊟":"\\boxminus","⊞":"\\boxplus","∔":"\\dot{+}","∓":"+-","−":"-","±":"\\pm","-":"-","+":"+","⭆":"\\Rrightarrow","⭅":"\\Lleftarrow","⧴":":\\rightarrow","⧯":"","⧟":"\\bullet-\\bullet","⦟":"\\angle","⦞":"\\measuredangle","⦝":"\\measuredangle","⦜":"\\perp","⦛":"\\measuredangle","⦚":"","⦙":"\\vdots","⥿":"","⥾":"","⥽":"\\prec","⥼":"\\succ","⥻":"\\underset{\\rightarrow}{\\supset}","⥺":"","⥹":"\\underset{\\rightarrow}{\\subset}","⥸":"\\underset{\\rightarrow}{>}","⥷":"","⥶":"\\underset{\\leftarrow}{<}","⥵":"\\underset{\\approx}{\\rightarrow}","⥴":"\\underset{\\sim}{\\rightarrow}","⥳":"\\underset{\\sim}{\\leftarrow}","⥲":"\\overset{\\sim}{\\rightarrow}","⥱":"\\overset{=}{\\rightarrow}","⥰":"","⥯":"","⥮":"","⥭":"\\overline{\\rightharpoondown}","⥬":"\\underline{\\rightharpoonup}","⥫":"\\overline{\\leftharpoondown}","⥪":"\\underline{\\leftharpoonup}","⥩":"\\rightleftharpoons","⥨":"\\rightleftharpoons","⥧":"\\rightleftharpoons","⥦":"\\rightleftharpoons","⥥":"\\Downarrow","⥤":"\\Rightarrow","⥣":"\\Uparrow","⥢":"\\Leftarrow","⥡":"\\downarrow","⥠":"\\uparrow","⥟":"\\rightarrow","⥞":"\\leftarrow","⥝":"\\downarrow","⥜":"\\uparrow","⥛":"\\rightarrow","⥚":"\\leftarrow","⥙":"\\downarrow","⥘":"\\uparrow","⥗":"\\rightarrow","⥖":"\\leftarrow","⥕":"\\downarrow","⥔":"\\uparrow","⥓":"\\rightarrow","⥒":"\\leftarrow","⥑":"\\updownarrow","⥐":"\\leftrightarrow","⥏":"\\updownarrow","⥎":"\\leftrightarrow","⥍":"\\updownarrow","⥌":"\\updownarrow","⥋":"\\leftrightarrow","⥊":"\\leftrightarrow","⥉":"","⥈":"\\leftrightarrow","⥇":"\\nrightarrow","⥆":"","⥅":"","⥄":"\\rightleftarrows","⥃":"\\leftrightarrows","⥂":"\\rightleftarrows","⥁":"\\circlearrowright","⥀":"\\circlearrowleft","⤿":"\\rightarrow","⤾":"\\leftarrow","⤽":"\\leftarrow","⤼":"\\rightarrow","⤻":"\\rightarrow","⤺":"\\leftarrow","⤹":"\\downarrow","⤸":"\\downarrow","⤷":"\\Rsh","⤶":"\\Lsh","⤵":"\\downarrow","⤴":"\\uparrow","⤳":"\\rightarrow","⤲":"\\leftarrow","⤱":" ","⤰":" ","⤯":" ","⤮":" ","⤭":" ","⤬":"\\times","⤫":"\\times","⤪":" ","⤩":" ","⤨":" ","⤧":" ","⤦":" ","⤥":" ","⤤":" ","⤣":" ","⤢":" ","⤡":" ","⤠":"\\mapsto\\cdot","⤟":"\\cdot\\leftarrow","⤞":"\\rightarrow\\cdot","⤝":"\\leftarrow","⤜":"\\rightarrow","⤛":"\\leftarrow","⤚":"\\rightarrow","⤙":"\\leftarrow","⤘":"\\rightarrow","⤗":"\\rightarrow","⤖":"\\rightarrow","⤕":"\\rightarrow","⤔":"\\rightarrow","⤓":"\\downarrow","⤒":"\\uparrow","⤑":"\\rightarrow","⤐":"\\rightarrow","⤏":"\\rightarrow","⤎":"\\leftarrow","⤍":"\\rightarrow","⤌":"\\leftarrow","⤋":"\\Downarrow","⤊":"\\Uparrow","⤉":"\\uparrow","⤈":"\\downarrow","⤇":"\\Rightarrow","⤆":"\\Leftarrow","⤅":"\\mapsto","⤄":"\\nLeftrightarrow","⤃":"\\nRightarrow","⤂":"\\nLeftarrow","⤁":"\\rightsquigarrow","⤀":"\\rightsquigarrow","⟿":"\\rightsquigarrow","⟾":"\\Rightarrow","⟽":"\\Leftarrow","⟼":"\\mapsto","⟻":"\\leftarrow","⟺":"\\Longleftrightarrow","⟹":"\\Longrightarrow","⟸":"\\Longleftarrow","⟷":"\\leftrightarrow","⟶":"\\rightarrow","⟵":"\\leftarrow","⟱":"\\Downarrow","⟰":"\\Uparrow","⊸":"\\rightarrow","⇿":"\\leftrightarrow","⇾":"\\rightarrow","⇽":"\\leftarrow","⇼":"\\nleftrightarrow","⇻":"\\nrightarrow","⇺":"\\nleftarrow","⇹":"\\nleftrightarrow","⇸":"\\nrightarrow","⇷":"\\nleftarrow","⇶":"\\Rrightarrow","⇵":"","⇴":"\\rightarrow","⇳":"\\Updownarrow","⇲":"\\searrow","⇱":"\\nwarrow","⇰":"\\Leftarrow","⇯":"\\Uparrow","⇮":"\\Uparrow","⇭":"\\Uparrow","⇬":"\\Uparrow","⇫":"\\Uparrow","⇪":"\\Uparrow","⇩":"\\Downarrow","⇨":"\\Rightarrow","⇧":"\\Uparrow","⇦":"\\Leftarrow","⇥":"\\rightarrow","⇤":"\\leftarrow","⇣":"\\downarrow","⇢":"\\rightarrow","⇡":"\\uparrow","⇠":"\\leftarrow","⇟":"\\downarrow","⇞":"\\uparrow","⇝":"\\rightsquigarrow","⇜":"\\leftarrow","⇛":"\\Rrightarrow","⇚":"\\Lleftarrow","⇙":"\\swarrow","⇘":"\\searrow","⇗":"\\nearrow","⇖":"\\nwarrow","⇕":"\\Updownarrow","⇔":"\\Leftrightarrow","⇓":"\\Downarrow","⇒":"\\Rightarrow","⇑":"\\Uparrow","⇐":"\\Leftarrow","⇏":"\\nRightarrow","⇎":"\\nLeftrightarrow","⇍":"\\nLeftarrow","⇌":"\\rightleftharpoons","⇋":"\\leftrightharpoons","⇊":"\\downdownarrows","⇉":"\\rightrightarrows","⇈":"\\upuparrows","⇇":"\\leftleftarrows","⇆":"\\leftrightarrows","⇅":"","⇄":"\\rightleftarrows","⇃":"\\downharpoonleft","⇂":"\\downharpoonright","⇁":"\\rightharpoondown","⇀":"\\rightharpoonup","↿":"\\upharpoonleft","↾":"\\upharpoonright","↽":"\\leftharpoondown","↼":"\\leftharpoonup","↻":"\\circlearrowright","↺":"\\circlearrowleft","↹":"\\leftrightarrows","↸":"\\overline{\\nwarrow}","↷":"\\curvearrowright","↶":"\\curvearrowleft","↵":"\\swarrow","↴":"\\searrow","↳":"\\Rsh","↲":"\\Lsh","↱":"\\Rsh","↰":"\\Lsh","↯":"\\swarrow","↮":"","↭":"\\leftrightsquigarrow","↬":"\\looparrowright","↫":"\\looparrowleft","↪":"\\hookrightarrow","↩":"\\hookleftarrow","↨":"\\underline{\\updownarrow}","↧":"\\downarrow","↦":"\\rightarrowtail","↥":"\\uparrow","↤":"\\leftarrowtail","↣":"\\rightarrowtail","↢":"\\leftarrowtail","↡":"\\downarrow","↠":"\\twoheadrightarrow","↟":"\\uparrow","↞":"\\twoheadleftarrow","↝":"\\nearrow","↜":"\\nwarrow","↚":"","↙":"\\swarrow","↘":"\\searrow","↗":"\\nearrow","↖":"\\nwarrow","↕":"\\updownarrow","↔":"\\overleftrightarrow","↓":"\\downarrow","→":"\\overrightarrow","↑":"\\uparrow","←":"\\leftarrow","|||":"\\left|||\\right.","||":"\\left||\\right.","|":"\\mid","⫾":"","⫽":"//","⫻":"///","⫺":"","⫹":"","⫸":"","⫷":"","⫶":"\\vdots","⫵":"","⫴":"","⫳":"","⫲":"\\nparallel","⫱":"","⫰":"","⫯":"","⫮":"\\bcancel{\\mid}","⫭":"","⫬":"","⫫":"","⫪":"","⫩":"","⫨":"\\underline{\\perp}","⫧":"\\overline{\\top}","⫦":"","⫥":"","⫤":"","⫣":"","⫢":"","⫡":"","⫠":"\\perp","⫟":"\\top","⫞":"\\dashv","⫝̸":"","⫝":"","⫛":"\\pitchfork","⫚":"","⫙":"","⫘":"","⫗":"","⫖":"","⫕":"","⫔":"","⫓":"","⫒":"","⫑":"","⫐":"","⫏":"","⫎":"","⫍":"","⫌":"\\underset{\\neq}{\\supset}","⫋":"\\underset{\\neq}{\\subset}","⫊":"\\underset{\\approx}{\\supset}","⫉":"\\underset{\\approx}{\\subset}","⫈":"\\underset{\\sim}{\\supset}","⫇":"\\underset{\\sim}{\\subset}","⫆":"\\supseteqq","⫅":"\\subseteqq","⫄":"\\dot{\\supseteq}","⫃":"\\dot{\\subseteq}","⫂":"\\underset{\\times}{\\supset}","⫁":"\\underset{\\times}{\\subset}","⫀":"\\underset{+}{\\supset}","⪿":"\\underset{+}{\\subset}","⪾":"","⪽":"","⪼":"\\gg ","⪻":"\\ll","⪺":"\\underset{\\cancel{\\approx}}{\\succ}","⪹":"\\underset{\\cancel{\\approx}}{\\prec}","⪸":"\\underset{\\approx}{\\succ}","⪷":"\\underset{\\approx}{\\prec}","⪶":"\\underset{\\cancel{=}}{\\succ}","⪵":"\\underset{\\cancel{=}}{\\prec}","⪴":"\\underset{=}{\\succ}","⪳":"\\underset{=}{\\prec}","⪲":"","⪱":"","⪮":"","⪭":"\\underline{\\hcancel{>}}","⪬":"\\underline{\\hcancel{>}}","⪫":"\\hcancel{>}","⪪":"\\hcancel{<}","⪩":"","⪨":"","⪧":"\\vartriangleright","⪦":"\\vartriangleleft","⪥":"><","⪤":"><","⪣":"\\underline{\\ll}","⪢̸":"\\cancel{\\gg}","⪢":"\\gg","⪡̸":"\\cancel{\\ll}","⪡":"\\ll","⪠":"\\overset{\\sim}{\\geqq}","⪟":"\\overset{\\sim}{\\leqq}","⪞":"\\overset{\\sim}{>}","⪝":"\\overset{\\sim}{<}","⪜":"","⪛":"","⪚":"\\overset{=}{>}","⪙":"\\overset{=}{<}","⪘":"","⪗":"","⪖":"","⪕":"","⪔":"","⪓":"","⪒":"\\underset{=}{\\gtrless}","⪑":"\\underset{=}{\\lessgtr}","⪐":"\\underset{<}{\\gtrsim}","⪏":"\\underset{>}{\\lesssim}","⪎":"\\underset{\\simeq}{>}","⪍":"\\underset{\\simeq}{<}","⪌":"\\gtreqqless","⪋":"\\lesseqqgtr","⪊":"\\underset{\\cancel{\\approx}}{>}","⪉":"\\underset{\\approx}{<}","⪆":"\\underset{\\approx}{>}","⪅":"\\underset{\\approx}{<}","⪄":"","⪃":"","⪂":"","⪁":"","⪀":"","⩿":"","⩾̸":"\\bcancel{\\geq}","⩾":"\\geq","⩽̸":"\\bcancel{\\leq}","⩽":"\\leq","⩼":"","⩻":"","⩺":"","⩹":"","⩸":"\\overset{\\dots}{\\equiv}","⩷":"","⩶":"===","⩵":"==","⩴":"::=","⩳":"","⩲":"\\underset{=}{+}","⩱":"\\overset{=}{+}","⩰":"\\overset{\\approx}{=}","⩯":"\\overset{\\wedge}{=}","⩮":"\\overset{*}{=}","⩭":"\\dot{\\approx}","⩬":"","⩫":"","⩪":"\\dot{\\sim}","⩩":"","⩨":"","⩧":"\\dot{\\equiv}","⩦":"\\underset{\\cdot}{=}","⩥":"","⩤":"","⩣":"\\underset{=}{\\vee}","⩢":"\\overset{=}{\\vee}","⩡":"ul(vv)","⩠":"\\underset{=}{\\wedge}","⩟":"\\underline{\\wedge}","⩞":"\\overset{=}{\\wedge}","⩝":"\\hcancel{\\vee}","⩜":"\\hcancel{\\wedge}","⩛":"","⩚":"","⩙":"","⩘":"\\vee","⩗":"\\wedge","⩖":"","⩕":"","⩔":"","⩓":"","⩒":"\\dot{\\vee}","⩑":"\\dot{\\wedge}","⩐":"","⩏":"","⩎":"","⩍":"\\overline{\\cap}","⩌":"\\overline{\\cup}","⩋":"","⩊":"","⩉":"","⩈":"","⩇":"","⩆":"","⩅":"","⩄":"","⩃":"\\overline{\\cap}","⩂":"\\overline{\\cup}","⩁":"","⩀":"","⨾":"","⨽":"\\llcorner","⨼":"\\lrcorner","⨻":"","⨺":"","⨹":"","⨸":"","⨷":"","⨶":"\\hat{\\otimes}","⨵":"","⨴":"","⨳":"","⨲":"\\underline{\\times}","⨱":"\\underline{\\times}","⨰":"\\dot{\\times}","⨮":"\\bigodot","⨭":"\\bigodot","⨬":"","⨫":"","⨪":"","⨩":"","⨨":"","⨧":"","◻":"\\square","⨦":"\\underset{\\sim}{+}","⨥":"\\underset{\\circ}{+}","⨤":"\\overset{\\sim}{+}","⨣":"\\hat{+}","⨢":"\\dot{+}","⨡":"\\upharpoonright","⨠":">>","⨟":"","⨞":"\\triangleleft","⨝":"\\bowtie","⧿":"","⧾":"+","⧻":"\\hcancel{|||}","⧺":"\\hcancel{||}","⧹":"\\backslash","⧸":"/","⧷":"hcancel{\backslash}","⧶":"","⧵":"\\backslash","⧲":"\\Phi","⧱":"","⧰":"","⧮":"","⧭":"","⧬":"","⧫":"\\lozenge","⧪":"","⧩":"","⧨":"","⧧":"\\ddagger","⧢":"\\sqcup\\sqcup","⧡":"","⧠":"\\square","⧞":"","⧝":"","⧜":"","⧛":"\\{\\{","⧙":"\\{","⧘":"\\}","⧗":"","⧖":"","⧕":"\\bowtie","⧔":"\\bowtie","⧓":"\\bowtie","⧒":"\\bowtie","⧑":"\\bowtie","⧐̸":"| \\not\\triangleright","⧐":"| \\triangleright","⧏̸":"\\not\\triangleleft |","⧏":"\\triangleleft |","⧎":"","⧍":"\\triangle","⧌":"","⧋":"\\underline{\\triangle}","⧊":"\\dot{\\triangle}","⧉":"","⧈":"\\boxed{\\circ}","⧇":"\\boxed{\\circ}","⧆":"\\boxed{\\rightarrow}","⧅":"\\bcancel{\\square}","⧄":"\\cancel{\\square}","⧃":"\\odot","⧂":"\\odot","⦿":"\\odot","⦾":"\\odot","⦽":"\\varnothing","⦼":"\\oplus","⦻":"\\otimes","⦺":"","⦹":"\\varnothing","⦸":"\\varnothing","⦷":"\\ominus","⦶":"\\ominus","⦵":"\\ominus","⦴":"\\vec{\\varnothing}","⦳":"\\vec{\\varnothing}","⦲":"\\dot{\\varnothing}","⦱":"\\overline{\\varnothing}","⦰":"\\varnothing","⦯":"\\measuredangle","⦮":"\\measuredangle","⦭":"\\measuredangle","⦬":"\\measuredangle","⦫":"\\measuredangle","⦪":"\\measuredangle","⦩":"\\measuredangle","⦨":"\\measuredangle","⦧":"","⦦":"","⦥":"","⦤":"","⦣":"\\ulcorner","⦢":"\\measuredangle","⦡":"\\not\\lor","⦠":"\\bcancel{>}","⦂":":","⦁":"\\cdot","❘":"\\mid","▲":"\\bigtriangleup","⋿":"\\Epsilon","⋾":"\\overline{\\ni}","⋽":"\\overline{\\ni}","⋼":"\\in","⋻":"\\in","⋺":"\\in","⋹":"\\underline{\\in}","⋸":"\\underline{\\in}","⋷":"\\overline{\\in}","⋶":"\\overline{\\in}","⋵":"\\dot{\\in}","⋴":"\\in","⋳":"\\in","⋲":"\\in","⋰":"\\ddots","։":":","⋩":"\\underset{\\sim}{\\succ}","⋨":"\\underset{\\sim}{\\prec}","⋧":"\\underset{\\not\\sim}{>}","⋦":"\\underset{\\not\\sim}{<}","⋥":"\\not\\sqsupseteq","⋤":"\\not\\sqsubseteq","⋣":"\\not\\sqsupseteq","⋢":"\\not\\sqsubseteq","⋡":"\\nsucc","⋠":"\\nprec","⋟":"\\succ","⋞":"\\prec","⋝":"\\overline{>}","⋜":"\\overline{<}","⋛":"\\underset{>}{\\leq}","⋚":"\\underset{<}{\\geq}","⋕":"\\#","⋓":"\\cup","⋒":"\\cap","⋑":"\\supset","⋐":"\\subset","⋏":"\\wedge","⋎":"\\vee","⋍":"\\simeq","⋈":"\\Join","⋇":"\\ast","⋆":"\\star","⋄":"\\diamond","⊿":"\\triangle","⊾":"\\measuredangle","⊽":"\\overline{\\lor}","⊼":"\\overline{\\land}","⊻":"\\underline{\\lor}","⊺":"\\top","⊹":"","⊷":"\\circ\\multimap","⊶":"\\circ\\multimap","⊳":"\\triangleright","⊲":"\\triangleleft","⊱":"\\succ","⊰":"\\prec","⊫":"|\\models","⊪":"|\\models","⊧":"\\models","⊦":"\\vdash","⊝":"\\ominus","⊜":"\\ominus","⊛":"\\odot","⊚":"\\odot","⊔":"\\sqcup","⊓":"\\sqcap","⊒":"\\sqsupseteq","⊑":"\\sqsubseteq","⊐̸":"\\not\\sqsupset","⊐":"\\sqsupset","⊏̸":"\\not\\sqsubset","⊏":"\\sqsubset","⊎":"\\cup","⊍":"\\cup","⊌":"\\cup","≿̸":"\\not\\succsim","≿":"\\succsim","≾":"\\precsim","≹":"\\not\\overset{>}{<}","≸":"\\not\\overset{>}{<}","≷":"\\overset{>}{<}","≶":"\\overset{<}{>}","≵":"\\not\\geg","≴":"\\not\\leq","≳":"\\geg","≲":"\\leq","≬":"","≧":"\\geg","≦̸":"\\not\\leq","≦":"\\leq","≣":"\\overset{=}{=} ","≞":"\\overset{m}{=} ","≝":"\\overset{def}{=}","≘":"=","≖":"=","≕":"=:","≓":"\\doteq","≒":"\\doteq","≑":"\\doteq","≐":"\\doteq","≏̸":"","≏":"","≎̸":"","≎":"","≌":"\\approx","≋":"\\approx","≊":"\\approx","≂̸":"\\neq","≂":"=","∿":"\\sim","∾":"\\infty","∽̱":"\\sim","∽":"\\sim","∻":"\\sim","∺":":-:","∹":"-:","∸":"\\bot","∷":"::","∶":":","∣":"\\mid","∟":"\\llcorner","∘":"\\circ","∗":"*","∕":"/","∎":"\\square","∍":"\\ni","∊":"\\in","∆":"\\Delta","⁄":"/","⪰̸":"\\nsucceq","⪰":"\\succeq","⪯̸":"\\npreceq","⪯":"\\preceq","⪈":"\\ngeqslant","⪇":"\\nleqslant","⧳":"\\Phi","⧦":"\\models","⧥":"\\not\\equiv","⧤":"\\approx\\neq","⧣":"\\neq","⧁":"\\circle","⧀":"\\circle","◦":"\\circle","◗":"\\circle","◖":"\\circle","●":"\\circle","◎":"\\circledcirc","◍":"\\circledcirc","◌":"\\circledcirc","◉":"\\circledcirc","◈":"\\diamond","◇":"\\diamond","◆":"\\diamond","◅":"\\triangleleft","◄":"\\triangleleft","◃":"\\triangleleft","◂":"\\triangleleft","◁":"\\triangleleft","◀":"\\triangleleft","▿":"\\triangledown","▾":"\\triangledown","▽":"\\triangledown","▼":"\\triangledown","▹":"\\triangleright","▸":"\\triangleright","▷":"\\triangleright","▶":"\\triangleright","▵":"\\triangle","▴":"\\triangle","△":"\\triangle","▱":"\\square","▰":"\\blacksquare","▯":"\\square","▮":"\\blacksquare","▭":"\\square","▫":"\\square","▪":"\\square","□":"\\square","■":"\\blacksquare","⋭":"\\not\\triangleright","⋬":"\\not\\triangleleft","⋫":"\\not\\triangleright","⋪":"\\not\\triangleleft","⋙":"\\ggg","⋘":"\\lll","⋗":"*>","⋖":"<*","⋔":"\\pitchfork","⋌":"","⋋":"\\bowtie","⋊":"\\ltimes","⋉":"\\rtimes","⊵":"\\triangleright","\\triangleleft":"","⊥":"\\bot","⊁":"\\nsucc","⊀":"\\preceq","≽":"\\succeq","≼":"\\preceq","≻":"\\succ","≺":"\\prec","≱":"\\geq/","≰":"\\leq/","≭":"\\neq","≫̸":"\\not\\gg","≫":"\\gg","≪̸":"\\not\\ll","≪":"\\ll","≩":"\\ngeqslant","≨":"\\nleqslant","≡":"\\equiv","≟":"\\doteq","≜":"\\triangleq","≛":"\\doteq","≚":"\\triangleq","≙":"\\triangleq","≗":"\\doteq","≔":":=","≍":"\\asymp","≇":"\\ncong","≆":"\\ncong","≅":"\\cong","≄":"\\not\\simeq","≃":"\\simeq","≁":"\\nsim","∦":"\\not\\parallel","∥":"\\parallel","∤":"\\not|","∝":"\\propto","==":"==","=":"=",":=":":=","/=":"=","-=":"-=","+=":"+=","*=":"*=","!=":"!=","≠":"\\neq","≢":"\\equiv /","≉":"\\approx /","∼":"\\sim","≈":"\\approx","≮":"</","<":"<","≯":">/",">=":">=",">":">","≥":"\\geq","≤":"\\leq","<=":"<=","⊋":"\\supsetneq","⊊":"\\subsetneq","⊉":"\\nsupseteq","⊈":"\\nsubseteq","⊇":"\\supseteq","⊆":"\\subseteq","⊅":"\\not\\supset","⊄":"\\not\\subset","⊃⃒":"\\supset |","⊃":"\\supset","⊂⃒":"\\subset |","⊂":"\\subset","∌":"\\not\\in","∉":"\\notin","∈":"\\in","∁":"C","∄":"\\nexists","∃":"\\exists","∀":"\\forall","∧":"\\land","&&":"\\&\\&","∨":"\\lor","⊯":"\\cancel{\\vDash}","⊮":"\\cancel{\\Vdash}","⊭":"\\nvDash","⊬":"\\nvDash","⊩":"\\Vdash","⊨":"\\vDash","⊤":"\\top","⊣":"\\dashv","⊢":"\\vdash","∋":"\\ni","⋱":"\\ddots","⋯":"\\hdots","⋮":"\\vdots","϶":"\\ni",":":":","...":"\\cdots","..":"..","->":"->","∵":"\\because","∴":"\\therefore ","⁣":"\\llbracket",",":",",";":";","⧽":"\\}","⧼":"\\{","⦘":"\\]","⦗":"\\[","⦖":"\\ll","⦕":"\\gg","⦔":"\\gg","⦓":"\\ll","⦒":"\\gg","⦑":"\\ll","⦐":"\\]","⦏":"\\]","⦎":"\\]","⦍":"\\[","⦌":"\\[","⦋":"\\]","⦊":"\\triangleright","⦉":"\\triangleleft","⦈":"|\\)","⦇":"\\(|","⦆":"|\\)","⦅":"\\(\\(","⦄":"|\\}","⦃":"\\{|","⦀":"\\||","⟯":"\\right]","⟮":"\\left[","⟭":"\\right]]","⟬":"\\left[[","⟫":"\\gg","⟪":"\\ll","⟧":"\\)|","⟦":"\\(|","❳":"\\right)","❲":"\\left(","〉":"\\rangle","〈":"\\langle","⌋":"\\rfloor","⌊":"\\lfloor","⌉":"\\rceil","⌈":"\\lceil","‖":"\\parallel","}":"\\right}","{":"\\left{","]":"\\right]","[":"\\left[",")":"\\right)","(":"\\left(","”":'\\"',"“":"\\text{``}","’":"'","‘":"`","∅":"\\emptyset","⟲":"\\circlearrowleft","⟳":"\\circlearrowright","×":"\\times","½":"\\dfrac{1}{2}","✓":"\\checkmark","⟩":"\\rangle","⟨":"\\langle","¼":"\\dfrac{1}{4}","…":"\\ldots","∙":"\\cdot","∞":"\\infty","⁺":"^{+}","⁻":"^{-}","⁼":"^{=}","⁽":"^{(}","⁾":"^{)}","〗":"\\)|","〖":"\\langle",";":";","൦":"\\circ","┴":"\\perp","✕":"\\times","⎻":"-","»":"\\gg","⬆":"\\uparrow","⬇":"\\downarrow","⬅":"\\leftarrow","➡":"\\rightarrow","⎼":"-","⎜":"\\mid","⎥":"\\mid","⮕":"\\rightarrow","・":"\\cdot","¦":"\\mid","£":"\\pounds","¥":"\\yen","✗":"\\times","✔":"\\checkmark","«":"\\ll","†":"\\dagger","│":"\\mid","#":"\\#","℃":"\\text{\\textdegree C}","℉":"\\text{\\textdegree F}","█":"\\blacksquare","℧":"\\mho","‡":"\\ddagger","˳":"\\cdot","।":"\\mid","€":"\\euro"}},2335:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.allMathSymbolsByChar=void 0,s.allMathSymbolsByChar={"&#xA0;":"\\textrm{ }","&#x2203;":"\\exists","&#x2200;":"\\forall","&#x21D4;":"\\iff","&#x21D2;":"=>","&#xAC;":"\\neg","&#x2124;":"\\mathbb{Z}","&#x211D;":"\\mathbb{R}","&#x211A;":"\\mathbb{Q}","&#x2115;":"\\mathbb{N}","&#x2102;":"CC","&#x25A1;":"\\square","&#x22C4;":"\\diamond","&#x25B3;":"\\triangle","&#x2322;":"\\frown","&#x2220;":"\\angle","&#x22F1;":"\\ddots","&#x22EE;":"\\vdots","&#x2235;":"\\because","&#x2234;":"\\therefore","&#x223C;":"\\sim","&#x2241;":"\\nsim","&#x2135;":"\\aleph","&#x2205;":"\\oslash","&#xB1;":"\\pm","&#x2207;":"\\nabla","&#x2202;":"\\partial","&#x222E;":"\\oint","&#x222B;":"\\int","&#x22C3;":"\\cup","&#x222A;":"\\cup","&#x22C2;":"\\cap","&#x2229;":"\\cap","&#x22C1;":"\\vee","&#x2228;":"\\vee","&#x22C0;":"\\wedge","&#x2227;":"\\wedge","&#x220F;":"\\prod","&#x2211;":"\\sum","&#x2299;":"\\bigodot","&#x2297;":"\\bigoplus","&#x2295;":"o+","&#x2218;":"@","&#x22C8;":"\\bowtie","&#x22CA;":"\\rtimes","&#x22C9;":"\\ltimes","&#xF7;":"\\div","&#xD7;":"\\times","\\":"\\backslash","&#x22C6;":"\\star","&#x2217;":"\\star","&#x22C5;":"\\cdot","&#x3A9;":"\\Omega","&#x3C9;":"\\omega","&#x3A8;":"\\Psi","&#x3C8;":"\\psi","&#x3C7;":"\\chi","&#x3C6;":"\\varphi","&#x3A6;":"\\Phi","&#x3D5;":"\\phi","&#x3C5;":"\\upsilon","&#x3C4;":"\\tau","&#x3A3;":"\\Sigma","&#x3C3;":"\\sigma","&#x3C1;":"\\rho","&#x3A0;":"\\Pi","&#x3C0;":"\\pi","&#x39E;":"\\Xi","&#x3BE;":"\\xi","&#x3BD;":"\\nu","&#x3BC;":"\\mu","&#x39B;":"\\Lambda","&#x3BB;":"\\lambda","&#x3BA;":"\\kappa","&#x3B9;":"\\iota","&#x3D1;":"\\vartheta","&#x398;":"\\Theta","&#x3B8;":"\\theta","&#x3B7;":"\\eta","&#x3B6;":"\\zeta","&#x25B;":"\\varepsilon","&#x25FB;":"\\square","&#x3B5;":"\\epsilon","&#x394;":"\\Delta","&#x3B4;":"\\delta","&#x393;":"\\Gamma","&#x3B3;":"\\gamma","&#x3B2;":"\\beta","&#x3B1;":"\\alpha","&#x221E;":"\\infty","‬":"\\text{\\textdir TRT}","‎":"\\text{\\textdir LTR}"}},4104:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.allMathSymbolsByGlyph=s.allMathSymbolsByGlyphSpecial=void 0,s.allMathSymbolsByGlyphSpecial={'"ℵ"':"\\aleph",'"Ω"':"\\Omega",'"ω"':"\\omega",'"Ψ"':"\\Psi",'"ψ"':"\\psi",'"χ"':"\\chi",'"φ"':"\\varphi",'"Φ"':"\\Phi",'"ϕ"':"\\phi",'"υ"':"\\upsilon",'"τ"':"\\tau",'"Σ"':"\\Sigma",'"σ"':"\\sigma",'"ρ"':"\\rho",'"Π"':"\\Pi",'"π"':"\\pi",'"Ξ"':"\\Xi",'"ξ"':"\\xi",'"ν"':"\\nu",'"μ"':"\\mu",'"Λ"':"\\Lambda",'"λ"':"\\lambda",'"κ"':"\\kappa",'"ι"':"\\iota",'"ϑ"':"\\vartheta",'"Θ"':"\\Theta",'"θ"':"\\theta",'"η"':"\\eta",'"ζ"':"\\zeta",'"ɛ"':"\\varepsilon",'"ε"':"\\epsilon",'"Δ"':"\\Delta",'"δ"':"\\delta",'"Γ"':"\\Gamma",'"γ"':"\\gamma",'"β"':"\\beta",'"α"':"\\alpha",'"ϵ"':"\\epsilon",'"µ"':"\\mu",'"ı"':"\\imath",'"ม"':"\\mathbf{m}",'"Ω"':"\\Omega",'"त"':" ",'"ß"':"\\ss",'"Ћ"':"\\hbar",'"เ"':"\\prime",'"白"':" ",'"ℸ"':"\\wp",'"퓰"':" ",'"Ө"':"\\theta",'"ⁿ"':"^{n}",'"ℏ"':"\\hbar",'"ℜ"':"\\mathfrak{R}",'"Ѳ"':"\\theta",'"Ø"':"\\emptyset",'"ϱ"':"\\varrho",'"ф"':"\\phi",'"Ρ"':"P",'"ᐁ"':"\\nabla",'"ƞ"':"\\eta",'"ɣ"':"\\gamma",'"ћ"':"\\hbar",'"Ɛ"':"\\varepsilon",'"ⅅ"':"\\_{D}",'"𝜆"':"\\lambda",'"𝑥"':"x",'"𝑦"':"y",'"𝑧"':"z",'"𝑖"':"i",'"𝑗"':"j",'"𝑘"':"k",'"𝑚"':"m",'"𝑒"':"e",'"𝑟"':"r",'"ɳ"':"\\eta",'"Є"':"\\epsilon",'"є"':"\\epsilon",'"𝜀"':"\\epsilon",'"п"':"\\pi",'"Ν"':"\\nu",'"ɵ"':"\\theta",'"ϴ"':"\\theta",'"ɸ"':"\\phi",'"Ӷ"':"\\Gamma",'"ɭ"':"\\ell",'"ʋ"':"\\upsilon",'"𝛟"':"\\varphi",'"Ф"':"\\Phi",'"ⅈ"':"i",'"ο"':"o",'"ơ"':"o",'"ƒ"':"f",'"ṁ"':"m",'"Փ"':"\\Phi",'"ħ"':"\\hbar",'"ፈ"':" ",'"ế"':"\\hat{e}",'"О"':"0",'"Υ"':"Y",'"х"':"x",'"𝓏"':"z",'"𝓎"':"y",'"𝓍"':"x",'"р"':"p",'"а"':"a",'"ℇ"':"\\varepsilon",'"ⅇ"':"\\text{e}",'"ɼ"':"r",'"ἱ"':"i",'"ˆ"':"\\hat{}",'"ϒ"':"\\Upsilon",'"ѳ"':"\\theta",'"П"':"\\prod",'"о"':"o",'"ђ"':"\\hbar",'"Ʌ"':"\\Lambda",'"土"':"\\pm",'"十"':"+",'"ῡ"':"\\bar{u}",'"ȼ"':"c",'"Χ"':"\\mathsf{X}",'"ₙ"':"_{n}",'"T"':"T",'"∙"':"\\cdot",'"〗"':"\\rangle",'"〖"':"\\langle",'";"':";",'"𝛽"':"\\beta",'"⍵"':"\\omega",'"℘"':"\\wp",'"𝜋"':"\\pi",'"𝜓"':"\\psi",'"⍬"':"\\theta",'"𝜑"':"\\varphi",'"⍴"':"\\rho",'"🇽"':"x",'"𝞮"':"\\epsilon",'"𝜙"':"\\phi",'"𝛿"':"\\delta",'"$"':"\\$",'"m"':"m",'"𝚵"':"\\Xi",'"𝑝"':"p",'"𝑞"':"q",'"𝑠"':"s",'"𝑡"':"t",'"𝑢"':"u",'"𝑣"':"v",'"𝑤"':"w",'"𝑎"':"a",'"𝑏"':"b",'"𝑐"':"c",'"𝑑"':"d",'"𝑓"':"f",'"𝑔"':"g",'"𝑙"':"l",'"𝑛"':"n",'"𝑜"':"o",'"𝔀"':"w",'"𝚟"':"v"},s.allMathSymbolsByGlyph={" ":"\\textrm{ }","∃":"\\exists","∀":"\\forall","⇔":"\\iff","⇒":"\\Rightarrow","¬":"\\neg","□":"\\square","⋄":"\\diamond","△":"\\triangle","⌢":"\\frown","∠":"\\angle","⋱":"\\ddots","⋮":"\\vdots","∵":"\\because","∴":"\\therefore","∅":"\\emptyset","±":"\\pm","∇":"\\nabla","∂":"\\partial","∮":"\\oint","∫":"\\int","⋃":"\\cup","∪":"\\cup","⋂":"\\cap","∩":"\\cap","⋁":"\\vee","∨":"\\vee","⋀":"\\wedge","∧":"\\wedge","∏":"\\prod","∑":"\\sum","⊙":"\\bigodot","⊗":"\\bigoplus","⊕":"o+","∘":"@","⋈":"\\bowtie","⋊":"\\rtimes","⋉":"\\ltimes","÷":"\\div","×":"\\times","\\":"\\backslash","⋆":"\\star","∗":"\\star","⋅":"\\cdot","∞":"\\infty","²":"^{2}","∎":"\\blacksquare","⟲":"\\circlearrowleft","⟳":"\\circlearrowright","¥":"\\yen","⁽":"^{(}","⁾":"^{)}","⦵":"\\ominus","⊿":"\\bigtriangleup","↛'":"\\nrightarrow","†":"\\dagger","⿱":" ","✔":"\\checkmark","✗":"\\times","½":"\\dfrac{1}{2}","✓":"\\checkmark","⟩":"\\rangle","⟨":"\\langle","〈":"\\langle","¼":"\\dfrac{1}{4}","…":"\\ldots","൦":"\\circ","┴":"\\perp","✕":"\\times","∣":"\\mid","⎜":"\\mid","⦨":"\\llbracket","¢":"\\cent","⤹":"\\downarrow","⤸":"\\downarrow","⤷":"\\Rsh","⤶":"\\Lsh","⤵":"\\downarrow","⤴":"\\uparrow","⤳":"\\rightarrow","|":"\\mid","⎥":"\\mid","♥":"\\heartsuit","£":"\\pounds","⓪":"\\textcircled{0}","①":"\\textcircled{1}","②":"\\textcircled{2}","③":"\\textcircled{3}","④":"\\textcircled{4}","⑤":"\\textcircled{5}","⑥":"\\textcircled{6}","⑦":"\\textcircled{7}","⑧":"\\textcircled{8}","⑨":"\\textcircled{9}","⑩":"\\textcircled{10}","⑪":"\\textcircled{11}","⑫":"\\textcircled{12}","⑬":"\\textcircled{13}","⑭":"\\textcircled{14}","⑮":"\\textcircled{15}","⑯":"\\textcircled{16}","⑰":"\\textcircled{17}","⑱":"\\textcircled{18}","⑲":"\\textcircled{19}","⑳":"\\textcircled{20}","㉑":"\\textcircled{21}","㉒":"\\textcircled{22}","㉓":"\\textcircled{23}","㉔":"\\textcircled{24}","㉕":"\\textcircled{25}","㉖":"\\textcircled{26}","㉗":"\\textcircled{27}","㉘":"\\textcircled{28}","㉙":"\\textcircled{29}","㉚":"\\textcircled{30}","㉛":"\\textcircled{31}","㉜":"\\textcircled{32}","㉝":"\\textcircled{33}","㉞":"\\textcircled{34}","㉟":"\\textcircled{35}","㊱":"\\textcircled{36}","㊲":"\\textcircled{37}","㊳":"\\textcircled{38}","㊴":"\\textcircled{39}","㊵":"\\textcircled{40}","㊶":"\\textcircled{41}","㊷":"\\textcircled{42}","㊸":"\\textcircled{43}","㊹":"\\textcircled{44}","㊺":"\\textcircled{45}","㊻":"\\textcircled{46}","㊼":"\\textcircled{47}","㊽":"\\textcircled{48}","㊾":"\\textcircled{49}","㊿":"\\textcircled{50}","&":"\\&","‖":"\\parallel","%":"\\%","“":"\\text{``}","#":"\\#","℃":"\\text{\\textdegree C}","℉":"\\text{\\textdegree F}","█":"\\blacksquare","℧":"\\mho","⌋":"\\rfloor","⌊":"\\lfloor","⌉":"\\rceil","⌈":"\\lceil","↛":"\\nrightarrow","‾":"\\overline","→":"\\overrightarrow","‡":"\\ddagger","・":"\\cdot","▱":"\\square","∆":"\\Delta","∡":"\\angle","↓":"\\downarrow","↑":"\\uparrow","»":"\\gg","⊤":"\\top","⧸":"/","˳":"\\cdot","։":":","⦪":"\\measuredangle","⦩":"\\measuredangle","⦫":"\\measuredangle","⦁":"\\cdot","⦢":"\\measuredangle","¸":",","⎻":"\\overline","⟦":"\\llbracket","≈":"\\approx","≤":"\\leq","⎼":"-","≠":"\\neq","←":"\\leftarrow","।":"\\mid","€":"\\euro","˘":" ","∥":"\\parallel","↔":"\\overleftrightarrow","√":"\\sqrt{}","·":"\\cdot","⦬":"\\measuredangle","⦮":"\\measuredangle","⦭":"\\measuredangle","«":"\\ll","│":"\\mid","〉":"\\rangle","▫":"\\square","●":"\\circle","”":'\\"',"◻":"\\square"}},2408:function(a,s,c){var l=this&&this.__createBinding||(Object.create?function(p,d,h,f){f===void 0&&(f=h);var m=Object.getOwnPropertyDescriptor(d,h);m&&!("get"in m?!d.__esModule:m.writable||m.configurable)||(m={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(p,f,m)}:function(p,d,h,f){f===void 0&&(f=h),p[f]=d[h]}),u=this&&this.__exportStar||(function(p,d){for(var h in p)h==="default"||Object.prototype.hasOwnProperty.call(d,h)||l(d,p,h)});Object.defineProperty(s,"__esModule",{value:!0}),u(c(1868),s),u(c(598),s),u(c(2335),s),u(c(4104),s),u(c(6626),s),u(c(2103),s),u(c(4317),s)},6626:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.latexAccents=void 0,s.latexAccents=["\\hat","\\bar","\\underbrace","\\overarc","\\overline","\\overbrace","\\overrightarrow","\\overleftrightarrow"]},2103:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.mathNumberByGlyph=s.mathNumberByGlyphSpecial=void 0,s.mathNumberByGlyphSpecial={'"ⁿ"':"^{n}",'"ₙ"':"_{n}"},s.mathNumberByGlyph={"₀":"_{0}","₁":"_{1}","₂":"_{2}","₃":"_{3}","₄":"_{4}","₅":"_{5}","₆":"_{6}","₇":"_{7}","₈":"_{8}","₉":"_{9}","⁰":"^{0}","¹":"^{1}","²":"^{2}","³":"^{3}","⁴":"^{4}","⁵":"^{5}","⁶":"^{6}","⁷":"^{7}","⁸":"^{8}","⁹":"^{9}","⓪":"\\textcircled{0}","①":"\\textcircled{1}","②":"\\textcircled{2}","③":"\\textcircled{3}","④":"\\textcircled{4}","⑤":"\\textcircled{5}","⑥":"\\textcircled{6}","⑦":"\\textcircled{7}","⑧":"\\textcircled{8}","⑨":"\\textcircled{9}","⑩":"\\textcircled{10}","⑪":"\\textcircled{11}","⑫":"\\textcircled{12}","⑬":"\\textcircled{13}","⑭":"\\textcircled{14}","⑮":"\\textcircled{15}","⑯":"\\textcircled{16}","⑰":"\\textcircled{17}","⑱":"\\textcircled{18}","⑲":"\\textcircled{19}","⑳":"\\textcircled{20}","㉑":"\\textcircled{21}","㉒":"\\textcircled{22}","㉓":"\\textcircled{23}","㉔":"\\textcircled{24}","㉕":"\\textcircled{25}","㉖":"\\textcircled{26}","㉗":"\\textcircled{27}","㉘":"\\textcircled{28}","㉙":"\\textcircled{29}","㉚":"\\textcircled{30}","㉛":"\\textcircled{31}","㉜":"\\textcircled{32}","㉝":"\\textcircled{33}","㉞":"\\textcircled{34}","㉟":"\\textcircled{35}","㊱":"\\textcircled{36}","㊲":"\\textcircled{37}","㊳":"\\textcircled{38}","㊴":"\\textcircled{39}","㊵":"\\textcircled{40}","㊶":"\\textcircled{41}","㊷":"\\textcircled{42}","㊸":"\\textcircled{43}","㊹":"\\textcircled{44}","㊺":"\\textcircled{45}","㊻":"\\textcircled{46}","㊼":"\\textcircled{47}","㊽":"\\textcircled{48}","㊾":"\\textcircled{49}","㊿":"\\textcircled{50}","½":"\\dfrac{1}{2}","⅓":"\\dfrac{1}{3}","⅔":"\\dfrac{2}{3}","¼":"\\dfrac{1}{4}","¾":"\\dfrac{3}{4}","⅕":"\\dfrac{1}{5}","⅖":"\\dfrac{2}{5}","⅗":"\\dfrac{3}{5}","⅘":"\\dfrac{4}{5}","⅙":"\\dfrac{1}{6}","⅚":"\\dfrac{5}{6}","⅐":"\\dfrac{1}{7}","⅛":"\\dfrac{1}{8}","⅜":"\\dfrac{3}{8}","⅝":"\\dfrac{5}{8}","⅞":"\\dfrac{7}{8}","⅑":"\\dfrac{1}{9}","⅒":"\\dfrac{1}{10}"}},4317:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.HashUTF8ToLtXConverter=void 0,s.HashUTF8ToLtXConverter=class{convert(p){if(p.match(/[a-z0-9]/i))return p;const d=c[p];return d?this.convertAccentCharToLtX(d)||p:this.convertSpecialCharToLtX(p)||p}convertAccentCharToLtX(p){const{char:d,accent:h}=p,f=l[h];return f?`\\${f}{${d}}`:null}convertSpecialCharToLtX(p){const d=u[p];if(!d)return null;const{letter:h,fontCmd:f}=d;return`\\${f}{${h}}`}};const c={á:{char:"a",accent:"´"},à:{char:"a",accent:"`"},â:{char:"a",accent:"^"},ã:{char:"a",accent:"~"},ä:{char:"a",accent:"¨"},å:{char:"a",accent:"˚"},ą:{char:"a",accent:"˙"},ă:{char:"a",accent:"˘"},ǎ:{char:"a",accent:"ˇ"},ǟ:{char:"a",accent:"ˆ"},ǻ:{char:"a",accent:"˙"},ǡ:{char:"a",accent:"-"},ā:{char:"a",accent:"-"},é:{char:"e",accent:"´"},è:{char:"e",accent:"`"},ê:{char:"e",accent:"^"},ë:{char:"e",accent:"¨"},ę:{char:"e",accent:"˙"},ě:{char:"e",accent:"ˇ"},ȇ:{char:"i",accent:"^"},ё:{char:"e",accent:"¨"},ē:{char:"e",accent:"-"},í:{char:"i",accent:"´"},ì:{char:"i",accent:"`"},î:{char:"i",accent:"^"},ï:{char:"i",accent:"¨"},į:{char:"i",accent:"˙"},ǐ:{char:"i",accent:"ˇ"},ȉ:{char:"i",accent:"`"},ȋ:{char:"i",accent:"¨"},ī:{char:"i",accent:"-"},ó:{char:"o",accent:"´"},ò:{char:"o",accent:"`"},ô:{char:"o",accent:"^"},õ:{char:"o",accent:"~"},ö:{char:"o",accent:"¨"},ő:{char:"o",accent:"˝"},ǒ:{char:"o",accent:"ˇ"},ȍ:{char:"o",accent:"`"},ȏ:{char:"o",accent:"¨"},ȫ:{char:"o",accent:"˘"},ȭ:{char:"o",accent:"˝"},ȯ:{char:"o",accent:"˙"},ō:{char:"o",accent:"-"},ú:{char:"u",accent:"´"},ù:{char:"u",accent:"`"},û:{char:"u",accent:"^"},ü:{char:"u",accent:"¨"},ű:{char:"u",accent:"˝"},ǔ:{char:"u",accent:"ˇ"},ǖ:{char:"u",accent:"¨"},ǘ:{char:"u",accent:"¨"},ǚ:{char:"u",accent:"¨"},ǜ:{char:"u",accent:"¨"},ȕ:{char:"u",accent:"`"},ȗ:{char:"u",accent:"¨"},ū:{char:"u",accent:"-"},ý:{char:"y",accent:"´"},ỳ:{char:"y",accent:"`"},ŷ:{char:"y",accent:"^"},ÿ:{char:"y",accent:"¨"},ȳ:{char:"y",accent:"-"},Á:{char:"A",accent:"´"},À:{char:"A",accent:"`"},Â:{char:"A",accent:"^"},Ã:{char:"A",accent:"~"},Ä:{char:"A",accent:"¨"},Å:{char:"A",accent:"˚"},Å:{char:"A",accent:"˚"},Ȧ:{char:"A",accent:"˙"},Ă:{char:"A",accent:"˘"},Ǎ:{char:"A",accent:"ˇ"},Ǟ:{char:"A",accent:"˝"},Ǻ:{char:"A",accent:"˚"},Ǡ:{char:"A",accent:"-"},Ā:{char:"A",accent:"-"},É:{char:"E",accent:"´"},È:{char:"E",accent:"`"},Ė:{char:"E",accent:"˙"},Ê:{char:"E",accent:"^"},Ë:{char:"E",accent:"¨"},Ě:{char:"E",accent:"ˇ"},Ȅ:{char:"E",accent:"`"},Ȇ:{char:"E",accent:"¨"},Ē:{char:"E",accent:"-"},Í:{char:"I",accent:"´"},Ì:{char:"I",accent:"`"},Î:{char:"I",accent:"^"},Ï:{char:"I",accent:"¨"},Ĭ:{char:"I",accent:"˘"},Ǐ:{char:"I",accent:"ˇ"},Ȉ:{char:"I",accent:"`"},Ȋ:{char:"I",accent:"¨"},Ī:{char:"I",accent:"-"},Ó:{char:"O",accent:"´"},Ò:{char:"O",accent:"`"},Ô:{char:"O",accent:"^"},Õ:{char:"O",accent:"~"},Ö:{char:"O",accent:"¨"},Ő:{char:"O",accent:"˝"},Ǒ:{char:"O",accent:"ˇ"},Ȍ:{char:"O",accent:"`"},Ȏ:{char:"O",accent:"¨"},Ȫ:{char:"O",accent:"˘"},Ȭ:{char:"O",accent:"˝"},Ȯ:{char:"O",accent:"˙"},Ō:{char:"O",accent:"-"},Ú:{char:"U",accent:"´"},Ù:{char:"U",accent:"`"},Û:{char:"U",accent:"^"},Ü:{char:"U",accent:"¨"},Ű:{char:"U",accent:"˝"},Ǔ:{char:"U",accent:"ˇ"},Ǖ:{char:"U",accent:"¨"},Ȕ:{char:"U",accent:"`"},Ȗ:{char:"U",accent:"¨"},Ū:{char:"U",accent:"-"},Ý:{char:"Y",accent:"´"},Ỳ:{char:"Y",accent:"`"},Ŷ:{char:"Y",accent:"^"},Ÿ:{char:"Y",accent:"¨"},Ȳ:{char:"Y",accent:"-"},ñ:{char:"n",accent:"~"},Ñ:{char:"N",accent:"~"},ç:{char:"c",accent:"˙"},Ç:{char:"C",accent:"˙"},ṽ:{char:"v",accent:"~"},Ṽ:{char:"V",accent:"~"},ĵ:{char:"j",accent:"^"},Ĵ:{char:"J",accent:"^"},ź:{char:"z",accent:"´"},Ź:{char:"Z",accent:"´"},Ż:{char:"Z",accent:"^"},ż:{char:"z",accent:"^"},Ž:{char:"Z",accent:"ˇ"},ž:{char:"z",accent:"ˇ"},ẑ:{char:"z",accent:"ˆ"}},l={"´":"grave","`":"acute","^":"hat","~":"tilde","¨":"ddot","˚":"mathring","˘":"breve","ˇ":"check","˝":"ddot","˙":"dot","-":"bar","ˆ":"hat","˜":"tilde"},u={"𝐀":{letter:"A",fontCmd:"mathbf"},"𝐁":{letter:"B",fontCmd:"mathbf"},"𝐂":{letter:"C",fontCmd:"mathbf"},"𝐃":{letter:"D",fontCmd:"mathbf"},"𝐄":{letter:"E",fontCmd:"mathbf"},Ε:{letter:"E",fontCmd:"mathbf"},"𝐅":{letter:"F",fontCmd:"mathbf"},"𝐆":{letter:"G",fontCmd:"mathbf"},"𝐇":{letter:"H",fontCmd:"mathbf"},"𝐈":{letter:"I",fontCmd:"mathbf"},"𝐉":{letter:"J",fontCmd:"mathbf"},"𝐊":{letter:"K",fontCmd:"mathbf"},"𝐋":{letter:"L",fontCmd:"mathbf"},"𝐌":{letter:"M",fontCmd:"mathbf"},"𝐍":{letter:"N",fontCmd:"mathbf"},"𝐎":{letter:"O",fontCmd:"mathbf"},"𝐏":{letter:"P",fontCmd:"mathbf"},"𝐐":{letter:"Q",fontCmd:"mathbf"},"𝐑":{letter:"R",fontCmd:"mathbf"},"𝐒":{letter:"S",fontCmd:"mathbf"},"𝐓":{letter:"T",fontCmd:"mathbf"},"𝐔":{letter:"U",fontCmd:"mathbf"},"𝐕":{letter:"V",fontCmd:"mathbf"},"𝐖":{letter:"W",fontCmd:"mathbf"},"𝐗":{letter:"X",fontCmd:"mathbf"},"𝞆":{letter:"X",fontCmd:"mathbf"},"𝐘":{letter:"Y",fontCmd:"mathbf"},"𝐙":{letter:"Z",fontCmd:"mathbf"},"𝟎":{letter:"0",fontCmd:"mathbf"},"𝟏":{letter:"1",fontCmd:"mathbf"},"𝟐":{letter:"2",fontCmd:"mathbf"},"𝟑":{letter:"3",fontCmd:"mathbf"},"𝟒":{letter:"4",fontCmd:"mathbf"},"𝟓":{letter:"5",fontCmd:"mathbf"},"𝟔":{letter:"6",fontCmd:"mathbf"},"𝟕":{letter:"7",fontCmd:"mathbf"},"𝟖":{letter:"8",fontCmd:"mathbf"},"𝟗":{letter:"9",fontCmd:"mathbf"},"𝐴":{letter:"A",fontCmd:"mathit"},"𝐵":{letter:"B",fontCmd:"mathit"},"𝐶":{letter:"C",fontCmd:"mathit"},"𝐷":{letter:"D",fontCmd:"mathit"},"𝐸":{letter:"E",fontCmd:"mathit"},"𝐹":{letter:"F",fontCmd:"mathit"},"𝐺":{letter:"G",fontCmd:"mathit"},"𝐻":{letter:"H",fontCmd:"mathit"},"𝐼":{letter:"I",fontCmd:"mathit"},Ι:{letter:"I",fontCmd:"mathit"},"𝐽":{letter:"J",fontCmd:"mathit"},"𝐾":{letter:"K",fontCmd:"mathit"},"𝐿":{letter:"L",fontCmd:"mathit"},"𝑀":{letter:"M",fontCmd:"mathit"},"𝑁":{letter:"N",fontCmd:"mathit"},"𝑂":{letter:"O",fontCmd:"mathit"},"𝑃":{letter:"P",fontCmd:"mathit"},"𝑄":{letter:"Q",fontCmd:"mathit"},"𝑅":{letter:"R",fontCmd:"mathit"},"𝑆":{letter:"S",fontCmd:"mathit"},"𝑇":{letter:"T",fontCmd:"mathit"},"𝑈":{letter:"U",fontCmd:"mathit"},"𝑉":{letter:"V",fontCmd:"mathit"},"𝑊":{letter:"W",fontCmd:"mathit"},"𝑋":{letter:"X",fontCmd:"mathit"},"𝑌":{letter:"Y",fontCmd:"mathit"},"𝑍":{letter:"Z",fontCmd:"mathit"},"𝔸":{letter:"A",fontCmd:"mathbb"},"𝔹":{letter:"B",fontCmd:"mathbb"},ℂ:{letter:"C",fontCmd:"mathbb"},"𝔻":{letter:"D",fontCmd:"mathbb"},"𝔼":{letter:"E",fontCmd:"mathbb"},"𝔽":{letter:"F",fontCmd:"mathbb"},"𝔾":{letter:"G",fontCmd:"mathbb"},ℍ:{letter:"H",fontCmd:"mathbb"},"𝕀":{letter:"I",fontCmd:"mathbb"},"𝕁":{letter:"J",fontCmd:"mathbb"},"𝕂":{letter:"K",fontCmd:"mathbb"},"𝕃":{letter:"L",fontCmd:"mathbb"},"𝕄":{letter:"M",fontCmd:"mathbb"},ℕ:{letter:"N",fontCmd:"mathbb"},"𝕆":{letter:"O",fontCmd:"mathbb"},ℙ:{letter:"P",fontCmd:"mathbb"},ℚ:{letter:"Q",fontCmd:"mathbb"},ℝ:{letter:"R",fontCmd:"mathbb"},"𝕊":{letter:"S",fontCmd:"mathbb"},"𝕋":{letter:"T",fontCmd:"mathbb"},"𝕌":{letter:"U",fontCmd:"mathbb"},"𝕍":{letter:"V",fontCmd:"mathbb"},"𝕎":{letter:"W",fontCmd:"mathbb"},"𝕏":{letter:"X",fontCmd:"mathbb"},"𝕐":{letter:"Y",fontCmd:"mathbb"},ℤ:{letter:"Z",fontCmd:"mathbb"},"𝟘":{letter:"0",fontCmd:"mathbb"},"𝟙":{letter:"1",fontCmd:"mathbb"},"𝟚":{letter:"2",fontCmd:"mathbb"},"𝟛":{letter:"3",fontCmd:"mathbb"},"𝟜":{letter:"4",fontCmd:"mathbb"},"𝟝":{letter:"5",fontCmd:"mathbb"},"𝟞":{letter:"6",fontCmd:"mathbb"},"𝟟":{letter:"7",fontCmd:"mathbb"},"𝟠":{letter:"8",fontCmd:"mathbb"},"𝟡":{letter:"9",fontCmd:"mathbb"},"𝒜":{letter:"A",fontCmd:"mathcal"},"𝓐":{letter:"A",fontCmd:"mathcal"},ℬ:{letter:"B",fontCmd:"mathcal"},"𝒞":{letter:"C",fontCmd:"mathcal"},"𝒟":{letter:"D",fontCmd:"mathcal"},"𝓓":{letter:"D",fontCmd:"mathcal"},ℰ:{letter:"E",fontCmd:"mathcal"},ℱ:{letter:"F",fontCmd:"mathcal"},"𝓕":{letter:"F",fontCmd:"mathcal"},"𝒢":{letter:"G",fontCmd:"mathcal"},ℋ:{letter:"H",fontCmd:"mathcal"},ℐ:{letter:"I",fontCmd:"mathcal"},"𝒥":{letter:"J",fontCmd:"mathcal"},"𝒦":{letter:"K",fontCmd:"mathcal"},ℒ:{letter:"L",fontCmd:"mathcal"},"𝓛":{letter:"L",fontCmd:"mathcal"},ℳ:{letter:"M",fontCmd:"mathcal"},"𝒩":{letter:"N",fontCmd:"mathcal"},"𝒪":{letter:"O",fontCmd:"mathcal"},"𝓞":{letter:"O",fontCmd:"mathcal"},"𝒫":{letter:"P",fontCmd:"mathcal"},"𝒬":{letter:"Q",fontCmd:"mathcal"},ℛ:{letter:"R",fontCmd:"mathcal"},"𝕽":{letter:"R",fontCmd:"mathcal"},"℟":{letter:"R",fontCmd:"mathcal"},"𝒮":{letter:"S",fontCmd:"mathcal"},"𝒯":{letter:"T",fontCmd:"mathcal"},"𝒰":{letter:"U",fontCmd:"mathcal"},"𝒱":{letter:"V",fontCmd:"mathcal"},"𝒲":{letter:"W",fontCmd:"mathcal"},"𝒳":{letter:"X",fontCmd:"mathcal"},"𝒴":{letter:"Y",fontCmd:"mathcal"},"𝒵":{letter:"Z",fontCmd:"mathcal"},"𝔄":{letter:"A",fontCmd:"mathfrak"},"𝔅":{letter:"B",fontCmd:"mathfrak"},ℭ:{letter:"C",fontCmd:"mathfrak"},"𝔇":{letter:"D",fontCmd:"mathfrak"},"𝔈":{letter:"E",fontCmd:"mathfrak"},"𝔉":{letter:"F",fontCmd:"mathfrak"},"𝔊":{letter:"G",fontCmd:"mathfrak"},ℌ:{letter:"H",fontCmd:"mathfrak"},ℑ:{letter:"I",fontCmd:"mathfrak"},"𝔍":{letter:"J",fontCmd:"mathfrak"},"𝔎":{letter:"K",fontCmd:"mathfrak"},"𝔏":{letter:"L",fontCmd:"mathfrak"},"𝔐":{letter:"M",fontCmd:"mathfrak"},"𝔑":{letter:"N",fontCmd:"mathfrak"},"𝔒":{letter:"O",fontCmd:"mathfrak"},"𝔓":{letter:"P",fontCmd:"mathfrak"},"𝔔":{letter:"Q",fontCmd:"mathfrak"},ℜ:{letter:"R",fontCmd:"mathfrak"},"𝔖":{letter:"S",fontCmd:"mathfrak"},"𝔗":{letter:"T",fontCmd:"mathfrak"},"𝔘":{letter:"U",fontCmd:"mathfrak"},"𝔙":{letter:"V",fontCmd:"mathfrak"},"𝔚":{letter:"W",fontCmd:"mathfrak"},"𝔛":{letter:"X",fontCmd:"mathfrak"},"𝔜":{letter:"Y",fontCmd:"mathfrak"},ℨ:{letter:"Z",fontCmd:"mathfrak"},"𝖠":{letter:"A",fontCmd:"mathsf"},Α:{letter:"A",fontCmd:"mathsf"},"𝖡":{letter:"B",fontCmd:"mathsf"},Β:{letter:"B",fontCmd:"mathsf"},"𝖢":{letter:"C",fontCmd:"mathsf"},"𝖣":{letter:"D",fontCmd:"mathsf"},"𝖤":{letter:"E",fontCmd:"mathsf"},"𝖥":{letter:"F",fontCmd:"mathsf"},"𝖦":{letter:"G",fontCmd:"mathsf"},"𝖧":{letter:"H",fontCmd:"mathsf"},"𝖨":{letter:"I",fontCmd:"mathsf"},"𝖩":{letter:"J",fontCmd:"mathsf"},"ȷ":{letter:"J",fontCmd:"mathsf"},"𝖪":{letter:"K",fontCmd:"mathsf"},Κ:{letter:"K",fontCmd:"mathsf"},"𝖫":{letter:"L",fontCmd:"mathsf"},"𝖬":{letter:"M",fontCmd:"mathsf"},"𝖭":{letter:"N",fontCmd:"mathsf"},"𝖮":{letter:"O",fontCmd:"mathsf"},"𝖯":{letter:"P",fontCmd:"mathsf"},"𝖰":{letter:"Q",fontCmd:"mathsf"},"𝖱":{letter:"R",fontCmd:"mathsf"},"𝖲":{letter:"S",fontCmd:"mathsf"},"𝖳":{letter:"T",fontCmd:"mathsf"},"𝖴":{letter:"U",fontCmd:"mathsf"},"𝖵":{letter:"V",fontCmd:"mathsf"},"𝖶":{letter:"W",fontCmd:"mathsf"},"𝖷":{letter:"X",fontCmd:"mathsf"},Χ:{letter:"X",fontCmd:"mathsf"},"𝖸":{letter:"Y",fontCmd:"mathsf"},"𝖹":{letter:"Z",fontCmd:"mathsf"},"𝚨":{letter:"A",fontCmd:"mathtt"},"𝚩":{letter:"B",fontCmd:"mathtt"},"𝚪":{letter:"\\Gamma",fontCmd:"mathtt"},"𝚫":{letter:"\\Delta",fontCmd:"mathtt"},"𝚬":{letter:"E",fontCmd:"mathtt"},"𝚭":{letter:"F",fontCmd:"mathtt"},"𝚮":{letter:"G",fontCmd:"mathtt"},"𝚯":{letter:"\\Theta",fontCmd:"mathtt"},"𝚰":{letter:"I",fontCmd:"mathtt"},"𝚱":{letter:"J",fontCmd:"mathtt"},"𝚲":{letter:"\\Lambda",fontCmd:"mathtt"},"𝚳":{letter:"L",fontCmd:"mathtt"},"𝚴":{letter:"M",fontCmd:"mathtt"},"𝚵":{letter:"\\Pi",fontCmd:"mathtt"},"𝚶":{letter:"O",fontCmd:"mathtt"},"𝚷":{letter:"\\Pi",fontCmd:"mathtt"},"𝚸":{letter:"Q",fontCmd:"mathtt"},"𝚹":{letter:"R",fontCmd:"mathtt"},"𝚺":{letter:"S",fontCmd:"mathtt"},"𝚻":{letter:"T",fontCmd:"mathtt"},"𝚼":{letter:"U",fontCmd:"mathtt"},"𝚽":{letter:"\\Phi",fontCmd:"mathtt"},"𝚾":{letter:"W",fontCmd:"mathtt"},"𝚿":{letter:"\\Psi",fontCmd:"mathtt"},"𝛀":{letter:"\\Omega",fontCmd:"mathtt"}}}},n={};function o(a){var s=n[a];if(s!==void 0)return s.exports;var c=n[a]={exports:{}};return r[a].call(c.exports,c,c.exports,o),c.exports}var i={};return(()=>{var a=i;Object.defineProperty(a,"__esModule",{value:!0}),a.MathMLToLaTeX=void 0;var s=o(8863);Object.defineProperty(a,"MathMLToLaTeX",{enumerable:!0,get:function(){return s.MathMLToLaTeX}})})(),i})())})(f2),ee(f2.exports);var B$=e=>f2.exports.MathMLToLaTeX.convert(e);return Object.freeze({__proto__:null,renderMath:k$,wrapMath:ZC,unWrapMath:eN,mmlToLatex:B$})}export{j$ as evaluateMathRenderingModule};