discourse_math_bundle 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/discourse_math_bundle/version.rb +7 -0
- data/lib/discourse_math_bundle.rb +55 -0
- data/vendor/assets/katex/contrib/copy-tex.min.js +1 -0
- data/vendor/assets/katex/contrib/mhchem.min.js +1 -0
- data/vendor/assets/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Main-Bold.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Main-Italic.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Main-Regular.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Math-Italic.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Script-Regular.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- data/vendor/assets/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- data/vendor/assets/katex/katex.min.css +1 -0
- data/vendor/assets/katex/katex.min.js +1 -0
- data/vendor/assets/mathjax/a11y/assistive-mml.js +1 -0
- data/vendor/assets/mathjax/a11y/complexity.js +1 -0
- data/vendor/assets/mathjax/a11y/explorer.js +1 -0
- data/vendor/assets/mathjax/a11y/semantic-enrich.js +1 -0
- data/vendor/assets/mathjax/a11y/speech.js +1 -0
- data/vendor/assets/mathjax/a11y/sre.js +1 -0
- data/vendor/assets/mathjax/adaptors/jsdom.js +1 -0
- data/vendor/assets/mathjax/adaptors/linkedom.js +1 -0
- data/vendor/assets/mathjax/adaptors/liteDOM.js +1 -0
- data/vendor/assets/mathjax/core.js +1 -0
- data/vendor/assets/mathjax/input/asciimath.js +1 -0
- data/vendor/assets/mathjax/input/mml/entities.js +1 -0
- data/vendor/assets/mathjax/input/mml/extensions/mml3.js +1 -0
- data/vendor/assets/mathjax/input/mml/extensions/mml3.sef.json +1 -0
- data/vendor/assets/mathjax/input/mml.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/action.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/ams.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/amscd.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/autoload.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/bbm.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/bboldx.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/bbox.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/begingroup.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/boldsymbol.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/braket.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/bussproofs.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/cancel.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/cases.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/centernot.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/color.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/colortbl.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/colorv2.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/configmacros.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/dsfont.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/empheq.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/enclose.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/extpfeil.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/gensymb.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/html.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/mathtools.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/mhchem.js +34 -0
- data/vendor/assets/mathjax/input/tex/extensions/newcommand.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/noerrors.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/noundefined.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/physics.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/require.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/setoptions.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/tagformat.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/texhtml.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/textcomp.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/textmacros.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/unicode.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/units.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/upgreek.js +1 -0
- data/vendor/assets/mathjax/input/tex/extensions/verb.js +1 -0
- data/vendor/assets/mathjax/input/tex-base.js +1 -0
- data/vendor/assets/mathjax/input/tex.js +1 -0
- data/vendor/assets/mathjax/loader.js +1 -0
- data/vendor/assets/mathjax/mml-chtml-nofont.js +1 -0
- data/vendor/assets/mathjax/mml-chtml.js +1 -0
- data/vendor/assets/mathjax/mml-svg-nofont.js +1 -0
- data/vendor/assets/mathjax/mml-svg.js +1 -0
- data/vendor/assets/mathjax/output/chtml.js +1 -0
- data/vendor/assets/mathjax/output/svg.js +1 -0
- data/vendor/assets/mathjax/sre/mathmaps/af.json +146 -0
- data/vendor/assets/mathjax/sre/mathmaps/base.json +137 -0
- data/vendor/assets/mathjax/sre/mathmaps/ca.json +140 -0
- data/vendor/assets/mathjax/sre/mathmaps/da.json +140 -0
- data/vendor/assets/mathjax/sre/mathmaps/de.json +146 -0
- data/vendor/assets/mathjax/sre/mathmaps/en.json +158 -0
- data/vendor/assets/mathjax/sre/mathmaps/es.json +140 -0
- data/vendor/assets/mathjax/sre/mathmaps/euro.json +32 -0
- data/vendor/assets/mathjax/sre/mathmaps/fr.json +146 -0
- data/vendor/assets/mathjax/sre/mathmaps/hi.json +146 -0
- data/vendor/assets/mathjax/sre/mathmaps/it.json +146 -0
- data/vendor/assets/mathjax/sre/mathmaps/ko.json +146 -0
- data/vendor/assets/mathjax/sre/mathmaps/nb.json +146 -0
- data/vendor/assets/mathjax/sre/mathmaps/nemeth.json +125 -0
- data/vendor/assets/mathjax/sre/mathmaps/nn.json +146 -0
- data/vendor/assets/mathjax/sre/mathmaps/sv.json +146 -0
- data/vendor/assets/mathjax/sre/require.d.mts +1 -0
- data/vendor/assets/mathjax/sre/require.mjs +2 -0
- data/vendor/assets/mathjax/sre/speech-worker.js +1 -0
- data/vendor/assets/mathjax/startup.js +1 -0
- data/vendor/assets/mathjax/tex-chtml-nofont.js +1 -0
- data/vendor/assets/mathjax/tex-chtml.js +1 -0
- data/vendor/assets/mathjax/tex-mml-chtml-nofont.js +1 -0
- data/vendor/assets/mathjax/tex-mml-chtml.js +1 -0
- data/vendor/assets/mathjax/tex-mml-svg-nofont.js +1 -0
- data/vendor/assets/mathjax/tex-mml-svg.js +1 -0
- data/vendor/assets/mathjax/tex-svg-nofont.js +1 -0
- data/vendor/assets/mathjax/tex-svg.js +1 -0
- data/vendor/assets/mathjax/ui/lazy.js +1 -0
- data/vendor/assets/mathjax/ui/menu.js +1 -0
- data/vendor/assets/mathjax/ui/safe.js +1 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ab.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-abi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ai.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ar.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-arl.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-b-a.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-b.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-bi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-br.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-brd.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-brk.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-c.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-cb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ch.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-chb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-chbi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-chi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-cy.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-cyb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-cybi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-cyi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-cyss.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-cyssb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-cyssbi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-cyssi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ds.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-dv.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-em.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-f.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-fb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-gk.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-gkb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-gkbi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-gki.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-gkss.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-gkssb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-gkssbi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-gkssi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-he.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-heb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-hebi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-hei.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-i.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-lb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-li.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-lib.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-lo.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-lr.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-lt.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-m.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-mar.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-mi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ml.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-mm.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-msh.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-mx.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-n.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ob.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-os.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ph.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-phb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-phbi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-phi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-phss.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-phssb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-phssbi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-phssi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-pu.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-pub.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-pubi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-pui.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-rb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-s.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-s3.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-s4.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-s5.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-s6.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-s7.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-sb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-sh.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-shb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-shbi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-shi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-so.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ss.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssbi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssbix.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssbx.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssix.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-sslb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssli.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-sslib.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-sslr.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssx.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-sy.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-syb.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-sybi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-syi.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-u-a.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-u.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-v.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-vx.woff2 +0 -0
- data/vendor/assets/mathjax/woff-v2/mjx-ncm-zero.woff2 +0 -0
- metadata +304 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
(()=>{"use strict";var t={d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{MhchemConfiguration:()=>M,MhchemMethods:()=>w,MhchemReplacements:()=>v,MhchemUtils:()=>q});const o=("undefined"!=typeof window?window:t.g).MathJax._.components.global,n=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults),a=o.combineWithMathJax,r=(o.MathJax,MathJax._.input.tex.HandlerTypes),i=r.ConfigurationType,c=r.HandlerType,p=MathJax._.input.tex.Configuration,s=p.Configuration,u=(p.ConfigurationHandler,p.ParserConfiguration,MathJax._.input.tex.TokenMap),_=(u.parseResult,u.AbstractTokenMap,u.RegExpMap,u.AbstractParseMap,u.CharacterMap),h=(u.DelimiterMap,u.MacroMap,u.CommandMap),m=(u.EnvironmentMap,MathJax._.input.tex.TexError.default),l=MathJax._.input.tex.base.BaseMethods,d=(l.splitAlignArray,l.default),f=MathJax._.input.tex.ams.AmsMethods.AmsMethods;
|
|
2
|
+
/*!
|
|
3
|
+
*************************************************************************
|
|
4
|
+
*
|
|
5
|
+
* mhchemParser.ts
|
|
6
|
+
* 4.2.1
|
|
7
|
+
*
|
|
8
|
+
* Parser for the \ce command and \pu command for MathJax and Co.
|
|
9
|
+
*
|
|
10
|
+
* mhchem's \ce is a tool for writing beautiful chemical equations easily.
|
|
11
|
+
* mhchem's \pu is a tool for writing physical units easily.
|
|
12
|
+
*
|
|
13
|
+
* ----------------------------------------------------------------------
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) 2015-2023 Martin Hensel
|
|
16
|
+
*
|
|
17
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
18
|
+
* you may not use this file except in compliance with the License.
|
|
19
|
+
* You may obtain a copy of the License at
|
|
20
|
+
*
|
|
21
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
22
|
+
*
|
|
23
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
24
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
25
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
26
|
+
* See the License for the specific language governing permissions and
|
|
27
|
+
* limitations under the License.
|
|
28
|
+
*
|
|
29
|
+
* ----------------------------------------------------------------------
|
|
30
|
+
*
|
|
31
|
+
* https://github.com/mhchem/mhchemParser
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
class x{static toTex(t,e){return y.go(b.go(t,e),"tex"!==e)}}function g(t){let e,o,n={};for(e in t)for(o in t[e]){let a=o.split("|");t[e][o].stateArray=a;for(let t=0;t<a.length;t++)n[a[t]]=[]}for(e in t)for(o in t[e]){let a=t[e][o].stateArray||[];for(let r=0;r<a.length;r++){const i=t[e][o];i.action_=[].concat(i.action_);for(let t=0;t<i.action_.length;t++)"string"==typeof i.action_[t]&&(i.action_[t]={type_:i.action_[t]});const c=e.split("|");for(let t=0;t<c.length;t++)if("*"===a[r]){let e;for(e in n)n[e].push({pattern:c[t],task:i})}else n[a[r]].push({pattern:c[t],task:i})}}return n}const b={go:function(t,e){if(!t)return[];void 0===e&&(e="ce");let o,n="0",a={};a.parenthesisLevel=0,t=(t=(t=t.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");let r=10,i=[];for(;;){o!==t?(r=10,o=t):r--;let c=b.stateMachines[e],p=c.transitions[n]||c.transitions["*"];t:for(let e=0;e<p.length;e++){let o=b.patterns.match_(p[e].pattern,t);if(o){const r=p[e].task;for(let t=0;t<r.action_.length;t++){let e;if(c.actions[r.action_[t].type_])e=c.actions[r.action_[t].type_](a,o.match_,r.action_[t].option);else{if(!b.actions[r.action_[t].type_])throw["MhchemBugA","mhchem bug A. Please report. ("+r.action_[t].type_+")"];e=b.actions[r.action_[t].type_](a,o.match_,r.action_[t].option)}b.concatArray(i,e)}if(n=r.nextState||n,!(t.length>0))return i;if(r.revisit||(t=o.remainder),!r.toContinue)break t}}if(r<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(t,e){if(e)if(Array.isArray(e))for(let o=0;o<e.length;o++)t.push(e[o]);else t.push(e)},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(t){const e=t.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 e&&e[0]?{match_:e.slice(1),remainder:t.substr(e[0].length)}:null},"(-)(9)^(-9)":/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/,"state of aggregation $":function(t){const e=b.patterns.findObserveGroups(t,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(e&&e.remainder.match(/^($|[\s,;\)\]\}])/))return e;const o=t.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return o?{match_:o[0],remainder:t.substr(o[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". __* ":/^([.\u22C5\u00B7\u2022]|[*])\s*/,"...":/^\.\.\.(?=$|[^.])/,"^{(...)}":function(t){return b.patterns.findObserveGroups(t,"^{","","","}")},"^($...$)":function(t){return b.patterns.findObserveGroups(t,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(t){return b.patterns.findObserveGroups(t,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(t){return b.patterns.findObserveGroups(t,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(t){return b.patterns.findObserveGroups(t,"_{","","","}")},"_($...$)":function(t){return b.patterns.findObserveGroups(t,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(t){return b.patterns.findObserveGroups(t,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(t){return b.patterns.findObserveGroups(t,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}^":/^\{\}(?=\^)/,"{}":/^\{\}/,"{...}":function(t){return b.patterns.findObserveGroups(t,"","{","}","")},"{(...)}":function(t){return b.patterns.findObserveGroups(t,"{","","","}")},"$...$":function(t){return b.patterns.findObserveGroups(t,"","$","$","")},"${(...)}$__$(...)$":function(t){return b.patterns.findObserveGroups(t,"${","","","}$")||b.patterns.findObserveGroups(t,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\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(t){return b.patterns.findObserveGroups(t,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(t){return b.patterns.findObserveGroups(t,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(t){return b.patterns.findObserveGroups(t,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(t){return b.patterns.findObserveGroups(t,"",/^\\[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(t){return b.patterns.findObserveGroups(t,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\color{","","","}")},"\\color{(...)}{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\color{","","","}","{","","","}")||b.patterns.findObserveGroups(t,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\ce{","","","}")},"\\pu{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\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(t){let e;if(e=t.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))/),e)return{match_:e[0],remainder:t.substr(e[0].length)};const o=b.patterns.findObserveGroups(t,"","$","$","");return o&&(e=o.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),e)?{match_:e[0],remainder:t.substr(e[0].length)}:null},amount2:function(t){return this.amount(t)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(t){if(t.match(/^\([a-z]+\)$/))return null;const e=t.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return e?{match_:e[0],remainder:t.substr(e[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(t,e,o,n,a,r,i,c,p,s){const u=function(t,e){if("string"==typeof e)return 0!==t.indexOf(e)?null:e;{const o=t.match(e);return o?o[0]:null}};let _=u(t,e);if(null===_)return null;if(t=t.substr(_.length),_=u(t,o),null===_)return null;const h=function(t,e,o){let n=0;for(;e<t.length;){let a=t.charAt(e);const r=u(t.substr(e),o);if(null!==r&&0===n)return{endMatchBegin:e,endMatchEnd:e+r.length};if("{"===a)n++;else if("}"===a){if(0===n)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];n--}e++}return null}(t,_.length,n||a);if(null===h)return null;const m=t.substring(0,n?h.endMatchEnd:h.endMatchBegin);if(r||i){const e=this.findObserveGroups(t.substr(h.endMatchEnd),r,i,c,p);if(null===e)return null;const o=[m,e.match_];return{match_:s?o.join(""):o,remainder:e.remainder}}return{match_:m,remainder:t.substr(h.endMatchEnd)}},match_:function(t,e){const o=b.patterns.patterns[t];if(void 0===o)throw["MhchemBugP","mhchem bug P. Please report. ("+t+")"];if("function"==typeof o)return b.patterns.patterns[t](e);{const t=e.match(o);return t?t.length>2?{match_:t.slice(1),remainder:e.substr(t[0].length)}:{match_:t[1]||t[0],remainder:e.substr(t[0].length)}:null}}},actions:{"a=":function(t,e){t.a=(t.a||"")+e},"b=":function(t,e){t.b=(t.b||"")+e},"p=":function(t,e){t.p=(t.p||"")+e},"o=":function(t,e){t.o=(t.o||"")+e},"o=+p1":function(t,e,o){t.o=(t.o||"")+o},"q=":function(t,e){t.q=(t.q||"")+e},"d=":function(t,e){t.d=(t.d||"")+e},"rm=":function(t,e){t.rm=(t.rm||"")+e},"text=":function(t,e){t.text_=(t.text_||"")+e},insert:function(t,e,o){return{type_:o}},"insert+p1":function(t,e,o){return{type_:o,p1:e}},"insert+p1+p2":function(t,e,o){return{type_:o,p1:e[0],p2:e[1]}},copy:function(t,e){return e},write:function(t,e,o){return o},rm:function(t,e){return{type_:"rm",p1:e}},text:function(t,e){return b.go(e,"text")},"tex-math":function(t,e){return b.go(e,"tex-math")},"tex-math tight":function(t,e){return b.go(e,"tex-math tight")},bond:function(t,e,o){return{type_:"bond",kind_:o||e}},"color0-output":function(t,e){return{type_:"color0",color:e}},ce:function(t,e){return b.go(e,"ce")},pu:function(t,e){return b.go(e,"pu")},"1/2":function(t,e){let o=[];e.match(/^[+\-]/)&&(o.push(e.substr(0,1)),e=e.substr(1));const n=e.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return n[1]=n[1].replace(/\$/g,""),o.push({type_:"frac",p1:n[1],p2:n[2]}),n[3]&&(n[3]=n[3].replace(/\$/g,""),o.push({type_:"tex-math",p1:n[3]})),o},"9,9":function(t,e){return b.go(e,"9,9")}},stateMachines:{tex:{transitions:g({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:g({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(t,e){let o;if((t.d||"").match(/^[1-9][0-9]*$/)){const e=t.d;t.d=void 0,o=this.output(t),o.push({type_:"tinySkip"}),t.b=e}else o=this.output(t);return b.actions["o="](t,e),o},"d= kv":function(t,e){t.d=e,t.dType="kv"},"charge or bond":function(t,e){if(t.beginsWithBond){let o=[];return b.concatArray(o,this.output(t)),b.concatArray(o,b.actions.bond(t,e,"-")),o}t.d=e},"- after o/d":function(t,e,o){let n=b.patterns.match_("orbital",t.o||"");const a=b.patterns.match_("one lowercase greek letter $",t.o||""),r=b.patterns.match_("one lowercase latin letter $",t.o||""),i=b.patterns.match_("$one lowercase latin letter$ $",t.o||""),c="-"===e&&(n&&""===n.remainder||a||r||i);!c||t.a||t.b||t.p||t.d||t.q||n||!r||(t.o="$"+t.o+"$");let p=[];return c?(b.concatArray(p,this.output(t)),p.push({type_:"hyphen"})):(n=b.patterns.match_("digits",t.d||""),o&&n&&""===n.remainder?(b.concatArray(p,b.actions["d="](t,e)),b.concatArray(p,this.output(t))):(b.concatArray(p,this.output(t)),b.concatArray(p,b.actions.bond(t,e,"-")))),p},"a to o":function(t){t.o=t.a,t.a=void 0},"sb=true":function(t){t.sb=!0},"sb=false":function(t){t.sb=!1},"beginsWithBond=true":function(t){t.beginsWithBond=!0},"beginsWithBond=false":function(t){t.beginsWithBond=!1},"parenthesisLevel++":function(t){t.parenthesisLevel++},"parenthesisLevel--":function(t){t.parenthesisLevel--},"state of aggregation":function(t,e){return{type_:"state of aggregation",p1:b.go(e,"o")}},comma:function(t,e){const o=e.replace(/\s*$/,"");return o!==e&&0===t.parenthesisLevel?{type_:"comma enumeration L",p1:o}:{type_:"comma enumeration M",p1:o}},output:function(t,e,o){let n;if(t.r){let e,o;e="M"===t.rdt?b.go(t.rd,"tex-math"):"T"===t.rdt?[{type_:"text",p1:t.rd||""}]:b.go(t.rd,"ce"),o="M"===t.rqt?b.go(t.rq,"tex-math"):"T"===t.rqt?[{type_:"text",p1:t.rq||""}]:b.go(t.rq,"ce"),n={type_:"arrow",r:t.r,rd:e,rq:o}}else n=[],(t.a||t.b||t.p||t.o||t.q||t.d||o)&&(t.sb&&n.push({type_:"entitySkip"}),t.o||t.q||t.d||t.b||t.p||2===o?t.o||t.q||t.d||!t.b&&!t.p?t.o&&"kv"===t.dType&&b.patterns.match_("d-oxidation$",t.d||"")?t.dType="oxidation":t.o&&"kv"===t.dType&&!t.q&&(t.dType=void 0):(t.o=t.a,t.d=t.b,t.q=t.p,t.a=t.b=t.p=void 0):(t.o=t.a,t.a=void 0),n.push({type_:"chemfive",a:b.go(t.a,"a"),b:b.go(t.b,"bd"),p:b.go(t.p,"pq"),o:b.go(t.o,"o"),q:b.go(t.q,"pq"),d:b.go(t.d,"oxidation"===t.dType?"oxidation":"bd"),dType:t.dType}));for(const e in t)"parenthesisLevel"!==e&&"beginsWithBond"!==e&&delete t[e];return n},"oxidation-output":function(t,e){let o=["{"];return b.concatArray(o,b.go(e,"oxidation")),o.push("}"),o},"frac-output":function(t,e){return{type_:"frac-ce",p1:b.go(e[0],"ce"),p2:b.go(e[1],"ce")}},"overset-output":function(t,e){return{type_:"overset",p1:b.go(e[0],"ce"),p2:b.go(e[1],"ce")}},"underset-output":function(t,e){return{type_:"underset",p1:b.go(e[0],"ce"),p2:b.go(e[1],"ce")}},"underbrace-output":function(t,e){return{type_:"underbrace",p1:b.go(e[0],"ce"),p2:b.go(e[1],"ce")}},"color-output":function(t,e){return{type_:"color",color1:e[0],color2:b.go(e[1],"ce")}},"r=":function(t,e){t.r=e},"rdt=":function(t,e){t.rdt=e},"rd=":function(t,e){t.rd=e},"rqt=":function(t,e){t.rqt=e},"rq=":function(t,e){t.rq=e},operator:function(t,e,o){return{type_:"operator",kind_:o||e}}}},a:{transitions:g({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:g({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:g({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(t){if(t.text_){let e={type_:"text",p1:t.text_};for(const e in t)delete t[e];return e}}}},pq:{transitions:g({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(t,e){return{type_:"state of aggregation subscript",p1:b.go(e,"o")}},"color-output":function(t,e){return{type_:"color",color1:e[0],color2:b.go(e[1],"pq")}}}},bd:{transitions:g({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(t,e){return{type_:"color",color1:e[0],color2:b.go(e[1],"bd")}}}},oxidation:{transitions:g({empty:{"*":{action_:"roman-numeral"}},"pm-operator":{"*":{action_:{type_:"o=+p1",option:"\\pm"}}},else:{"*":{action_:"o="}}}),actions:{"roman-numeral":function(t){return{type_:"roman numeral",p1:t.o||""}}}},"tex-math":{transitions:g({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(t){if(t.o){let e={type_:"tex-math",p1:t.o};for(const e in t)delete t[e];return e}}}},"tex-math tight":{transitions:g({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(t,e){t.o=(t.o||"")+"{"+e+"}"},output:function(t){if(t.o){let e={type_:"tex-math",p1:t.o};for(const e in t)delete t[e];return e}}}},"9,9":{transitions:g({empty:{"*":{action_:[]}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:g({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(t,e){let o=[];return"+-"===e[0]||"+/-"===e[0]?o.push("\\pm "):e[0]&&o.push(e[0]),e[1]&&(b.concatArray(o,b.go(e[1],"pu-9,9")),e[2]&&(e[2].match(/[,.]/)?b.concatArray(o,b.go(e[2],"pu-9,9")):o.push(e[2])),(e[3]||e[4])&&("e"===e[3]||"*"===e[4]?o.push({type_:"cdot"}):o.push({type_:"times"}))),e[5]&&o.push("10^{"+e[5]+"}"),o},"number^":function(t,e){let o=[];return"+-"===e[0]||"+/-"===e[0]?o.push("\\pm "):e[0]&&o.push(e[0]),b.concatArray(o,b.go(e[1],"pu-9,9")),o.push("^{"+e[2]+"}"),o},operator:function(t,e,o){return{type_:"operator",kind_:o||e}},space:function(){return{type_:"pu-space-1"}},output:function(t){let e;const o=b.patterns.match_("{(...)}",t.d||"");o&&""===o.remainder&&(t.d=o.match_);const n=b.patterns.match_("{(...)}",t.q||"");if(n&&""===n.remainder&&(t.q=n.match_),t.d&&(t.d=t.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),t.d=t.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),t.q){t.q=t.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),t.q=t.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");const o={d:b.go(t.d,"pu"),q:b.go(t.q,"pu")};"//"===t.o?e={type_:"pu-frac",p1:o.d,p2:o.q}:(e=o.d,o.d.length>1||o.q.length>1?e.push({type_:" / "}):e.push({type_:"/"}),b.concatArray(e,o.q))}else e=b.go(t.d,"pu-2");for(const e in t)delete t[e];return e}}},"pu-2":{transitions:g({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(t,e){t.rm+="^{"+e+"}"},space:function(){return{type_:"pu-space-2"}},output:function(t){let e=[];if(t.rm){const o=b.patterns.match_("{(...)}",t.rm||"");e=o&&""===o.remainder?b.go(o.match_,"pu"):{type_:"rm",p1:t.rm}}for(const e in t)delete t[e];return e}}},"pu-9,9":{transitions:g({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(t){let e=[];if(t.text_=t.text_||"",t.text_.length>4){let o=t.text_.length%3;0===o&&(o=3);for(let o=t.text_.length-3;o>0;o-=3)e.push(t.text_.substr(o,3)),e.push({type_:"1000 separator"});e.push(t.text_.substr(0,o)),e.reverse()}else e.push(t.text_);for(const e in t)delete t[e];return e},"output-o":function(t){let e=[];if(t.text_=t.text_||"",t.text_.length>4){const o=t.text_.length-3;let n;for(n=0;n<o;n+=3)e.push(t.text_.substr(n,3)),e.push({type_:"1000 separator"});e.push(t.text_.substr(n))}else e.push(t.text_);for(const e in t)delete t[e];return e}}}}},y={go:function(t,e){if(!t)return"";let o="",n=!1;for(let e=0;e<t.length;e++){const a=t[e];"string"==typeof a?o+=a:(o+=y._go2(a),"1st-level escape"===a.type_&&(n=!0))}return e&&!n&&o&&(o="{"+o+"}"),o},_goInner:function(t){return y.go(t,!1)},_go2:function(t){let e;switch(t.type_){case"chemfive":e="";const o={a:y._goInner(t.a),b:y._goInner(t.b),p:y._goInner(t.p),o:y._goInner(t.o),q:y._goInner(t.q),d:y._goInner(t.d)};o.a&&(o.a.match(/^[+\-]/)&&(o.a="{"+o.a+"}"),e+=o.a+"\\,"),(o.b||o.p)&&(e+="{\\vphantom{A}}",e+="^{\\hphantom{"+(o.b||"")+"}}_{\\hphantom{"+(o.p||"")+"}}",e+="\\mkern-1.5mu",e+="{\\vphantom{A}}",e+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(o.b||"")+"}}",e+="_{\\vphantom{2}\\llap{\\smash[t]{"+(o.p||"")+"}}}"),o.o&&(o.o.match(/^[+\-]/)&&(o.o="{"+o.o+"}"),e+=o.o),"kv"===t.dType?((o.d||o.q)&&(e+="{\\vphantom{A}}"),o.d&&(e+="^{"+o.d+"}"),o.q&&(e+="_{\\smash[t]{"+o.q+"}}")):"oxidation"===t.dType?(o.d&&(e+="{\\vphantom{A}}",e+="^{"+o.d+"}"),o.q&&(e+="{\\vphantom{A}}",e+="_{\\smash[t]{"+o.q+"}}")):(o.q&&(e+="{\\vphantom{A}}",e+="_{\\smash[t]{"+o.q+"}}"),o.d&&(e+="{\\vphantom{A}}",e+="^{"+o.d+"}"));break;case"rm":case"roman numeral":e="\\mathrm{"+t.p1+"}";break;case"text":t.p1.match(/[\^_]/)?(t.p1=t.p1.replace(" ","~").replace("-","\\text{-}"),e="\\mathrm{"+t.p1+"}"):e="\\text{"+t.p1+"}";break;case"state of aggregation":e="\\mskip2mu "+y._goInner(t.p1);break;case"state of aggregation subscript":e="\\mskip1mu "+y._goInner(t.p1);break;case"bond":if(e=y._getBond(t.kind_),!e)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+t.kind_+")"];break;case"frac":const n="\\frac{"+t.p1+"}{"+t.p2+"}";e="\\mathchoice{\\textstyle"+n+"}{"+n+"}{"+n+"}{"+n+"}";break;case"pu-frac":const a="\\frac{"+y._goInner(t.p1)+"}{"+y._goInner(t.p2)+"}";e="\\mathchoice{\\textstyle"+a+"}{"+a+"}{"+a+"}{"+a+"}";break;case"tex-math":case"1st-level escape":e=t.p1+" ";break;case"frac-ce":e="\\frac{"+y._goInner(t.p1)+"}{"+y._goInner(t.p2)+"}";break;case"overset":e="\\overset{"+y._goInner(t.p1)+"}{"+y._goInner(t.p2)+"}";break;case"underset":e="\\underset{"+y._goInner(t.p1)+"}{"+y._goInner(t.p2)+"}";break;case"underbrace":e="\\underbrace{"+y._goInner(t.p1)+"}_{"+y._goInner(t.p2)+"}";break;case"color":e="{\\color{"+t.color1+"}{"+y._goInner(t.color2)+"}}";break;case"color0":e="\\color{"+t.color+"}";break;case"arrow":const r={rd:y._goInner(t.rd),rq:y._goInner(t.rq)};let i=y._getArrow(t.r);r.rd||r.rq?"<=>"===t.r||"<=>>"===t.r||"<<=>"===t.r||"<--\x3e"===t.r?(i="\\long"+i,r.rd&&(i="\\overset{"+r.rd+"}{"+i+"}"),r.rq&&(i="<--\x3e"===t.r?"\\underset{\\lower2mu{"+r.rq+"}}{"+i+"}":"\\underset{\\lower6mu{"+r.rq+"}}{"+i+"}"),i=" {}\\mathrel{"+i+"}{} "):(r.rq&&(i+="[{"+r.rq+"}]"),i+="{"+r.rd+"}",i=" {}\\mathrel{\\x"+i+"}{} "):i=" {}\\mathrel{\\long"+i+"}{} ",e=i;break;case"operator":e=y._getOperator(t.kind_);break;case"space":e=" ";break;case"tinySkip":e="\\mkern2mu";break;case"entitySkip":case"pu-space-1":e="~";break;case"pu-space-2":e="\\mkern3mu ";break;case"1000 separator":e="\\mkern2mu ";break;case"commaDecimal":e="{,}";break;case"comma enumeration L":e="{"+t.p1+"}\\mkern6mu ";break;case"comma enumeration M":e="{"+t.p1+"}\\mkern3mu ";break;case"comma enumeration S":e="{"+t.p1+"}\\mkern1mu ";break;case"hyphen":e="\\text{-}";break;case"addition compound":e="\\,{\\cdot}\\,";break;case"electron dot":e="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":e="{\\times}";break;case"prime":e="\\prime ";break;case"cdot":e="\\cdot ";break;case"tight cdot":e="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":e="\\times ";break;case"circa":e="{\\sim}";break;case"^":e="uparrow";break;case"v":e="downarrow";break;case"ellipsis":e="\\ldots ";break;case"/":e="/";break;case" / ":e="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return e},_getArrow:function(t){switch(t){case"->":case"\u2192":case"\u27f6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<--\x3e":return"leftrightarrows";case"<=>":case"\u21cc":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(t){switch(t){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":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(t){switch(t){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};const $=MathJax._.core.MmlTree.MmlNode,S=$.TEXCLASS,q=($.TEXCLASSNAMES,$.MATHVARIANTS,$.indentAttributes,$.AbstractMmlNode,$.AbstractMmlTokenNode,$.AbstractMmlLayoutNode,$.AbstractMmlBaseNode,$.AbstractMmlEmptyNode,$.TextNode,$.XMLNode,{relmo(t,e){const o=Object.assign({stretchy:!0,texClass:S.REL,mathvariant:"-mhchem"},e.attributes||{}),n=t.create("token","mo",o,e.char);t.Push(n)}}),v=new Map([["\\mhchemx$3[$1]{$2}",/\\underset{\\lower2mu{(.*?)}}{\\overset{(.*?)}{\\long(.*?)}}/g],["\\mhchemx$2{$1}",/\\overset{(.*?)}{\\long(.*?)}/g],["\\mhchemBondTD",/\\rlap\{\\lower\.1em\{-\}\}\\raise\.1em\{\\tripledash\}/g],["\\mhchemBondTDD",/\\rlap\{\\lower\.2em\{-\}\}\\rlap\{\\raise\.2em\{\\tripledash\}\}-/g],["\\mhchemBondDTD",/\\rlap\{\\lower\.2em\{-\}\}\\rlap\{\\raise.2em\{-\}\}\\tripledash/g],[(t,e)=>{const o=`mhchem${e}`;return A.lookup(o)||k.lookup(o)?`\\${o}`:t},/\\(x?(?:long)?(?:left|right|[Ll]eftright|[Rr]ightleft)(?:arrow|harpoons))/g]]),w={Machine(t,e,o){const n=t.GetArgument(e);let a;try{a=x.toTex(n,o);for(const[t,e]of v.entries())a=a.replace(e,t)}catch(t){throw new m(t[0],t[1])}t.string=a+t.string.substring(t.i),t.i=0},Macro:d.Macro,xArrow:f.xArrow},k=new h("mhchem",{ce:[w.Machine,"ce"],pu:[w.Machine,"pu"],mhchemxrightarrow:[w.xArrow,58409,5,9],mhchemxleftarrow:[w.xArrow,58408,9,5],mhchemxleftrightarrow:[w.xArrow,58410,9,9],mhchemxleftrightarrows:[w.xArrow,58411,9,9],mhchemxrightleftharpoons:[w.xArrow,58376,5,9],mhchemxRightleftharpoons:[w.xArrow,58377,5,9],mhchemxLeftrightharpoons:[w.xArrow,58378,9,11]}),A=new _("mhchem-chars",q.relmo,{tripledash:["\ue410",{stretchy:!1}],mhchemBondTD:["\ue411",{stretchy:!1}],mhchemBondTDD:["\ue412",{stretchy:!1}],mhchemBondDTD:["\ue413",{stretchy:!1}],mhchemlongleftarrow:"\ue428",mhchemlongrightarrow:"\ue429",mhchemlongleftrightarrow:"\ue42a",mhchemlongrightleftharpoons:"\ue408",mhchemlongRightleftharpoons:"\ue409",mhchemlongLeftrightharpoons:"\ue40a",mhchemlongleftrightarrows:"\ue42b",mhchemrightarrow:"\ue42d",mhchemleftarrow:"\ue42c",mhchemleftrightarrow:"\ue42e"}),M=s.create("mhchem",{[i.HANDLER]:{[c.MACRO]:["mhchem","mhchem-chars"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/mhchem","4.1.0","tex-extension"),a({_:{input:{tex:{mhchem:{MhchemConfiguration:e}}}}}),function(t,e,o=`[fonts]/${e}`){if(MathJax.loader){const a=e.replace(/-font-extension$/,"-extension"),r=MathJax.config?.startup?.output||"chtml";n(MathJax.config.loader,"paths",{[a]:o}),MathJax._.output?.[r]||n(MathJax.config.loader,"dependencies",{[`[${a}]/${r}`]:[`output/${r}`]}),MathJax.loader.addPackageData(t,{extraLoads:[`[${a}]/${r}`],rendererExtensions:[a]})}}("[tex]/mhchem","mathjax-mhchem-font-extension")})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{BeginEnvItem:()=>M});var n={};e.r(n),e.d(n,{NewcommandPriority:()=>v,NewcommandTables:()=>k,NewcommandUtil:()=>G});var a={};e.r(a),e.d(a,{default:()=>S});var r={};e.r(r),e.d(r,{NewcommandConfig:()=>L,NewcommandConfiguration:()=>J});const i=("undefined"!=typeof window?window:e.g).MathJax._.components.global,o=(i.GLOBAL,i.isObject,i.combineConfig,i.combineDefaults,i.combineWithMathJax),s=(i.MathJax,MathJax._.input.tex.HandlerTypes),c=s.ConfigurationType,l=s.HandlerType,m=MathJax._.input.tex.Configuration,d=m.Configuration,u=(m.ConfigurationHandler,m.ParserConfiguration,MathJax._.input.tex.TexError.default),g=MathJax._.input.tex.StackItem,h=(g.MmlStack,g.BaseItem);class M extends h{get kind(){return"beginEnv"}get isOpen(){return!0}checkItem(e){if(e.isKind("end")){if(e.getName()!==this.getName())throw new u("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),e.getName());return[[this.factory.create("mml",this.toMml())],!0]}if(e.isKind("stop"))throw new u("EnvMissingEnd","Missing \\end{%1}",this.getName());return super.checkItem(e)}}const f=MathJax._.input.tex.MapHandler,p=(f.MapHandler,f.SubHandler),b=(f.SubHandlers,MathJax._.input.tex.UnitUtil.UnitUtil),w=MathJax._.input.tex.Token,N=w.Token,E=w.Macro;var k;!function(e){e.NEW_DELIMITER="new-Delimiter",e.NEW_COMMAND="new-Command",e.NEW_ENVIRONMENT="new-Environment"}(k||(k={}));const v=-100,G={GetCSname(e,t){if("\\"!==e.GetNext())throw new u("MissingCS","%1 must be followed by a control sequence",t);const n=b.trimSpaces(e.GetArgument(t)).substring(1);return this.checkProtectedMacros(e,n),n},GetCsNameArgument(e,t){let n=b.trimSpaces(e.GetArgument(t));if("\\"===n.charAt(0)&&(n=n.substring(1)),!n.match(/^(.|[a-z]+)$/i))throw new u("IllegalControlSequenceName","Illegal control sequence name for %1",t);return this.checkProtectedMacros(e,n),n},GetArgCount(e,t){let n=e.GetBrackets(t);if(n&&(n=b.trimSpaces(n),!n.match(/^[0-9]+$/)))throw new u("IllegalParamNumber","Illegal number of parameters specified in %1",t);return n},GetTemplate(e,t,n){let a=e.GetNext();const r=[];let i=0,o=e.i;for(;e.i<e.string.length;){if(a=e.GetNext(),"#"===a){if(o!==e.i&&(r[i]=e.string.substring(o,e.i)),a=e.string.charAt(++e.i),!a.match(/^[1-9]$/))throw new u("CantUseHash2","Illegal use of # in template for %1",n);if(parseInt(a)!==++i)throw new u("SequentialParam","Parameters for %1 must be numbered sequentially",n);o=e.i+1}else if("{"===a)return o!==e.i&&(r[i]=e.string.substring(o,e.i)),r.length>0?[i.toString()].concat(r):i;e.i++}throw new u("MissingReplacementString","Missing replacement string for definition of %1",t)},GetParameter(e,t,n){if(null==n)return e.GetArgument(t);let a=e.i,r=0,i=!1;for(;e.i<e.string.length;){const o=e.string.charAt(e.i);if("{"===o)i=e.i===a,e.GetArgument(t),r=e.i-a;else{if(this.MatchParam(e,n))return i&&(a++,r-=2),e.string.substring(a,a+r);if("\\"===o){e.i++,r++,i=!1;const t=e.string.substring(e.i).match(/[a-z]+|./i);t&&(e.i+=t[0].length,r=e.i-a)}else e.i++,r++,i=!1}}throw new u("RunawayArgument","Runaway argument for %1?",t)},MatchParam:(e,t)=>e.string.substring(e.i,e.i+t.length)!==t||t.match(/\\[a-z]+$/i)&&e.string.charAt(e.i+t.length).match(/[a-z]/i)?0:(e.i+=t.length,1),checkGlobal:(e,t,n)=>e.stack.env.isGlobal?e.configuration.packageData.get("begingroup").stack.checkGlobal(t,n):n.map((t=>e.configuration.handlers.retrieve(t))),checkProtectedMacros(e,t){var n;if(null===(n=e.options.protectedMacros)||void 0===n?void 0:n.includes(t))throw new u("ProtectedMacro","The control sequence %1 can't be redefined",`\\${t}`)},addDelimiter(e,t,n,a){const r=t.substring(1);this.checkProtectedMacros(e,r);const[i,o]=G.checkGlobal(e,[r,t],[k.NEW_COMMAND,k.NEW_DELIMITER]);r!==t&&i.remove(r),o.add(t,new N(t,n,a)),delete e.stack.env.isGlobal},addMacro(e,t,n,a,r=""){this.checkProtectedMacros(e,t);const i=G.checkGlobal(e,[t],[k.NEW_COMMAND])[0];this.undefineDelimiter(e,"\\"+t),i.add(t,new E(r||t,n,a)),delete e.stack.env.isGlobal},addEnvironment(e,t,n,a){G.checkGlobal(e,[t],[k.NEW_ENVIRONMENT])[0].add(t,new E(t,n,a)),delete e.stack.env.isGlobal},undefineMacro(e,t){const n=G.checkGlobal(e,[t],[k.NEW_COMMAND])[0];n.remove(t),e.configuration.handlers.get(l.MACRO).applicable(t)&&(n.add(t,new E(t,(()=>p.FALLBACK),[])),this.undefineDelimiter(e,"\\"+t)),delete e.stack.env.isGlobal},undefineDelimiter(e,t){const n=G.checkGlobal(e,[t],[k.NEW_DELIMITER])[0];n.remove(t),e.configuration.handlers.get(l.DELIMITER).applicable(t)&&n.add(t,new N(t,null,{})),delete e.stack.env.isGlobal}},A=MathJax._.input.tex.TokenMap,x=(A.parseResult,A.AbstractTokenMap,A.RegExpMap,A.AbstractParseMap,A.CharacterMap),I=A.DelimiterMap,C=A.MacroMap,T=A.CommandMap,y=A.EnvironmentMap,D=MathJax._.input.tex.base.BaseMethods,P=(D.splitAlignArray,D.default),_=MathJax._.input.tex.ParseUtil,O=(_.KeyValueDef,_.KeyValueTypes,_.ParseUtil),R={NewCommand(e,t){const n=G.GetCsNameArgument(e,t),a=G.GetArgCount(e,t),r=e.GetBrackets(t),i=e.GetArgument(t);G.addMacro(e,n,R.Macro,[i,a,r]),e.Push(e.itemFactory.create("null"))},NewEnvironment(e,t){const n=b.trimSpaces(e.GetArgument(t)),a=G.GetArgCount(e,t),r=e.GetBrackets(t),i=e.GetArgument(t),o=e.GetArgument(t);G.addEnvironment(e,n,R.BeginEnv,[!0,i,o,a,r]),e.Push(e.itemFactory.create("null"))},MacroDef(e,t){const n=G.GetCSname(e,t),a=G.GetTemplate(e,t,"\\"+n),r=e.GetArgument(t);a instanceof Array?G.addMacro(e,n,R.MacroWithTemplate,[r].concat(a)):G.addMacro(e,n,R.Macro,[r,a]),e.Push(e.itemFactory.create("null"))},Let(e,t){const n=G.GetCSname(e,t);let a=e.GetNext();"="===a&&(e.i++,a=e.GetNext());const r=e.configuration.handlers;if(e.Push(e.itemFactory.create("null")),"\\"===a){if(n===(t=G.GetCSname(e,t)))return;const a=r.get(l.MACRO).applicable(t);if(a instanceof C){const r=a.lookup(t);return void G.addMacro(e,n,r.func,r.args,r.token)}if(a instanceof x&&!(a instanceof I)){const r=a.lookup(t),i=e=>a.parser(e,r);return void G.addMacro(e,n,i,[n,r.char])}const i=r.get(l.DELIMITER).lookup("\\"+t);return i?void G.addDelimiter(e,"\\"+n,i.char,i.attributes):(G.checkProtectedMacros(e,n),G.undefineMacro(e,n),void G.undefineDelimiter(e,"\\"+n))}e.i++;const i=r.get(l.DELIMITER).lookup(a);i?G.addDelimiter(e,"\\"+n,i.char,i.attributes):G.addMacro(e,n,R.Macro,[a])},MacroWithTemplate(e,t,n,a,...r){const i=parseInt(a,10);if(r.length){const a=[];if(e.GetNext(),r[0]&&!G.MatchParam(e,r[0]))throw new u("MismatchUseDef","Use of %1 doesn't match its definition",t);if(i){for(let n=0;n<i;n++)a.push(G.GetParameter(e,t,r[n+1]));n=O.substituteArgs(e,a,n)}}e.string=O.addArgs(e,n,e.string.slice(e.i)),e.i=0,O.checkMaxMacros(e)},BeginEnv(e,t,n,a,r,i){const o=t.getName();if(e.stack.env.closing===o){delete e.stack.env.closing;if(e.stack.global.beginEnv&&(e.stack.global.beginEnv--,a)){const t=e.string.slice(e.i);e.string=O.addArgs(e,e.string.substring(0,e.i),a),e.Parse(),e.string=t,e.i=0}return e.itemFactory.create("end").setProperty("name",o)}if(r){const t=[];if(null!=i){const n=e.GetBrackets(`\\begin{${o}}`);t.push(null==n?i:n)}for(let n=t.length;n<r;n++)t.push(e.GetArgument(`\\begin{${o}}`));n=O.substituteArgs(e,t,n),a=O.substituteArgs(e,[],a)}return e.string=O.addArgs(e,n,e.string.slice(e.i)),e.i=0,e.stack.global.beginEnv=(e.stack.global.beginEnv||0)+1,e.itemFactory.create("beginEnv").setProperty("name",o)},Macro:P.Macro},S=R;new T("Newcommand-macros",{newcommand:S.NewCommand,renewcommand:S.NewCommand,newenvironment:S.NewEnvironment,renewenvironment:S.NewEnvironment,def:S.MacroDef,let:S.Let});const W=MathJax._.input.tex.ParseMethods.default;function L(e,t){t.parseOptions.packageData.has("newcommand")||(t.parseOptions.packageData.set("newcommand",{}),new I(k.NEW_DELIMITER,W.delimiter,{}),new T(k.NEW_COMMAND,{}),new y(k.NEW_ENVIRONMENT,W.environment,{}),t.parseOptions.handlers.add({[l.CHARACTER]:[],[l.DELIMITER]:[k.NEW_DELIMITER],[l.MACRO]:[k.NEW_DELIMITER,k.NEW_COMMAND],[l.ENVIRONMENT]:[k.NEW_ENVIRONMENT]},{},v))}const J=d.create("newcommand",{[c.HANDLER]:{macro:["Newcommand-macros"]},[c.ITEMS]:{[M.prototype.kind]:M},[c.OPTIONS]:{maxMacros:1e3,protectedMacros:["begingroupSandbox"]},[c.CONFIG]:L});MathJax.loader&&MathJax.loader.checkVersion("[tex]/newcommand","4.1.0","tex-extension"),o({_:{input:{tex:{newcommand:{NewcommandConfiguration:r,NewcommandItems:t,NewcommandMethods:a,NewcommandUtil:n}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={d:(o,t)=>{for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};e.r(o),e.d(o,{NoErrorsConfiguration:()=>u});const t=("undefined"!=typeof window?window:e.g).MathJax._.components.global,r=(t.GLOBAL,t.isObject,t.combineConfig,t.combineDefaults,t.combineWithMathJax),n=(t.MathJax,MathJax._.input.tex.HandlerTypes),a=n.ConfigurationType,i=(n.HandlerType,MathJax._.input.tex.Configuration),c=i.Configuration;i.ConfigurationHandler,i.ParserConfiguration;const u=c.create("noerrors",{[a.NODES]:{error:function(e,o,t,r){const n=e.create("token","mtext",{},r.replace(/\n/g," "));return e.create("node","merror",[n],{"data-mjx-error":o,title:o})}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/noerrors","4.1.0","tex-extension"),r({_:{input:{tex:{noerrors:{NoErrorsConfiguration:o}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={d:(n,o)=>{for(var t in o)e.o(o,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:o[t]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};e.r(n),e.d(n,{NoUndefinedConfiguration:()=>f});const o=("undefined"!=typeof window?window:e.g).MathJax._.components.global,t=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults,o.combineWithMathJax),i=(o.MathJax,MathJax._.input.tex.HandlerTypes),r=i.ConfigurationType,a=i.HandlerType,d=MathJax._.input.tex.Configuration,u=d.Configuration;d.ConfigurationHandler,d.ParserConfiguration;const f=u.create("noundefined",{[r.FALLBACK]:{[a.MACRO]:function(e,n){const o=e.create("text","\\"+n),t=e.options.noundefined,i={};for(const e of["color","background","size"])t[e]&&(i["math"+e]=t[e]);e.Push(e.create("node","mtext",[],i,o))}},[r.OPTIONS]:{noundefined:{color:"red",background:"",size:""}},[r.PRIORITY]:3});MathJax.loader&&MathJax.loader.checkVersion("[tex]/noundefined","4.1.0","tex-extension"),t({_:{input:{tex:{noundefined:{NoUndefinedConfiguration:n}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var t={d:(e,a)=>{for(var r in a)t.o(a,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{AutoOpen:()=>v});var a={};t.r(a),t.d(a,{default:()=>V});var r={};t.r(r),t.d(r,{PhysicsConfiguration:()=>J});const n=("undefined"!=typeof window?window:t.g).MathJax._.components.global,i=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),o=(n.MathJax,MathJax._.input.tex.HandlerTypes),s=o.ConfigurationType,c=o.HandlerType,l=MathJax._.input.tex.Configuration,m=l.Configuration,u=(l.ConfigurationHandler,l.ParserConfiguration,MathJax._.input.tex.StackItem),g=(u.MmlStack,u.BaseItem),p=MathJax._.input.tex.ParseUtil,d=(p.KeyValueDef,p.KeyValueTypes,p.ParseUtil),h=MathJax._.input.tex.NodeUtil.default,x=MathJax._.input.tex.TexParser.default;class v extends g{constructor(){super(...arguments),this.openCount=0}get kind(){return"auto open"}get isOpen(){return!0}toMml(t=!0,e){if(!t)return super.toMml(t,e);const a=this.factory.configuration.parser,r=this.getProperty("right");if(this.getProperty("smash")){const t=super.toMml(),e=a.create("node","mpadded",[t],{height:0,depth:0});this.Clear(),this.Push(a.create("node","TeXAtom",[e]))}r&&this.Push(new x(r,a.stack.env,a.configuration).mml());const n=d.fenced(this.factory.configuration,this.getProperty("open"),super.toMml(),this.getProperty("close"),this.getProperty("big"));return h.removeProperties(n,"open","close","texClass"),n}closing(t){return t===this.getProperty("close")&&!this.openCount--}checkItem(t){if(t.getProperty("pre-autoclose"))return g.fail;if(t.getProperty("autoclose"))return this.getProperty("ignore")?(this.Clear(),[[],!0]):[[this.toMml()],!0];if(t.isKind("mml")&&1===t.Size()){const e=t.toMml();e.isKind("mo")&&e.getText()===this.getProperty("open")&&this.openCount++}return super.checkItem(t)}}v.errors=Object.assign(Object.create(g.errors),{stop:["ExtraOrMissingDelims","Extra open or missing close delimiter"]});const f=MathJax._.input.tex.TokenMap,y=(f.parseResult,f.AbstractTokenMap,f.RegExpMap,f.AbstractParseMap,f.CharacterMap),M=(f.DelimiterMap,f.MacroMap),P=f.CommandMap,q=f.EnvironmentMap,A=MathJax._.input.tex.base.BaseMethods,b=(A.splitAlignArray,A.default),$=MathJax._.input.tex.TexError.default,G=MathJax._.core.MmlTree.MmlNode,N=G.TEXCLASS,k=(G.TEXCLASSNAMES,G.MATHVARIANTS,G.indentAttributes,G.AbstractMmlNode,G.AbstractMmlTokenNode,G.AbstractMmlLayoutNode,G.AbstractMmlBaseNode,G.AbstractMmlEmptyNode,G.TextNode,G.XMLNode,MathJax._.input.tex.NodeFactory.NodeFactory),E={"(":")","[":"]","{":"}","|":"|"},w=/^(b|B)i(g{1,2})$/,F=[65,90],S=[97,122],C=[913,937],O=[945,969],Q=[48,57];function T(t,e){return t>=e[0]&&t<=e[1]}function D(t,e,a,r){const n=t.configuration.parser,i=k.createToken(t,e,a,r),o=r.codePointAt(0);return 1===r.length&&!n.stack.env.font&&n.stack.env.vectorFont&&(T(o,F)||T(o,S)||T(o,C)||T(o,Q)||T(o,O)&&n.stack.env.vectorStar||h.getAttribute(i,"accent"))&&h.setAttribute(i,"mathvariant",n.stack.env.vectorFont),i}function B(t,e,a,r,n){const i=new x(r,t.stack.env,t.configuration).mml();t.Push(t.itemFactory.create(e,i));const o=t.GetNext(),s=E[o];if(!s)return;let c="",l="",m="";const u=n.includes(o);if("{"===o){m=t.GetArgument(a),c=u?"\\left\\{":"",l=u?"\\right\\}":"";const e=`${c} ${m} ${l}`;return t.string=e+t.string.slice(t.i),void(t.i=0)}u&&(t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:o,close:s})))}function I([t,e,a],r,n){return r&&n?`\\left\\langle{${t}}\\middle\\vert{${e}}\\middle\\vert{${a}}\\right\\rangle`:r?`\\langle{${t}}\\vert{${e}}\\vert{${a}}\\rangle`:`\\left\\langle{${t}}\\right\\vert{${e}}\\left\\vert{${a}}\\right\\rangle`}const V={Quantity(t,e,a="(",r=")",n=!1,i="",o=""){const s=!!n&&t.GetStar();let c=t.GetNext();const l=t.i;let m=null;if("\\"===c){if(t.i++,m=t.GetCS(),!m.match(w)){const e=t.create("node","mrow");return t.Push(d.fenced(t.configuration,a,e,r)),void(t.i=l)}c=t.GetNext()}let u=E[c];if(n&&"{"!==c)throw new $("MissingArgFor","Missing argument for %1",t.currentCS);if(!u){const e=t.create("node","mrow");return t.Push(d.fenced(t.configuration,a,e,r)),void(t.i=l)}if(i){const e=t.create("token","mi",{texClass:N.OP},i);o&&h.setAttribute(e,"mathvariant",o),t.Push(t.itemFactory.create("fn",e))}if("{"===c){let i=t.GetArgument(e);return c=n?a:"\\{",u=n?r:"\\}",i=s?`${c} ${i} ${u}`:m?`\\${m}l${c} ${i} \\${m}r${u}`:`\\left${c} ${i} \\right${u}`,void t.Push(new x(i,t.stack.env,t.configuration).mml())}t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:c,close:u,big:m}))},Eval(t,e){const a=t.GetStar(),r=t.GetNext();if("("===r||"["===r)return t.i++,void t.Push(t.itemFactory.create("auto open").setProperties({open:r,close:"|",smash:a,right:"\\vphantom{\\int}"}));let n="\\left.\\vphantom{\\int}\\right|";if("{"===r){const r=t.GetArgument(e);n=`\\left.${a?`\\smash{${r}}`:r}\\vphantom{\\int}\\right|`}t.string=t.string.substring(0,t.i)+n+t.string.slice(t.i)},Commutator(t,e,a="[",r="]"){const n=t.GetStar();let i=t.GetNext(),o=null;if("\\"===i){if(t.i++,o=t.GetCS(),!o.match(w))throw new $("MissingArgFor","Missing argument for %1",t.currentCS);i=t.GetNext()}if("{"!==i)throw new $("MissingArgFor","Missing argument for %1",t.currentCS);let s=t.GetArgument(e)+","+t.GetArgument(e);s=n?`${a} ${s} ${r}`:o?`\\${o}l${a} ${s} \\${o}r${r}`:`\\left${a} ${s} \\right${r}`,t.Push(new x(s,t.stack.env,t.configuration).mml())},VectorBold(t,e){const a=t.GetStar(),r=t.GetArgument(e),n=t.configuration.nodeFactory.get("token"),i=t.stack.env.font;delete t.stack.env.font,t.configuration.nodeFactory.set("token",D),t.stack.env.vectorFont=a?"bold-italic":"bold",t.stack.env.vectorStar=a;const o=new x(r,t.stack.env,t.configuration).mml();i&&(t.stack.env.font=i),delete t.stack.env.vectorFont,delete t.stack.env.vectorStar,t.configuration.nodeFactory.set("token",n),t.Push(o)},StarMacro(t,e,a,...r){const n=t.GetStar(),i=[];if(a)for(let r=i.length;r<a;r++)i.push(t.GetArgument(e));let o=r.join(n?"*":"");o=d.substituteArgs(t,i,o),t.string=d.addArgs(t,o,t.string.slice(t.i)),t.i=0,d.checkMaxMacros(t)},OperatorApplication(t,e,a,...r){B(t,"fn",e,a,r)},VectorOperator(t,e,a,...r){B(t,"mml",e,a,r)},Expression(t,e,a=!0,r=""){r=r||e.slice(1);const n=a?t.GetBrackets(e):null;let i=t.create("token","mi",{texClass:N.OP},r);if(n){const e=new x(n,t.stack.env,t.configuration).mml();i=t.create("node","msup",[i,e])}t.Push(t.itemFactory.create("fn",i)),"("===t.GetNext()&&(t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:"(",close:")"})))},Qqtext(t,e,a){const r=(t.GetStar()?"":"\\quad")+"\\text{"+(a||t.GetArgument(e))+"}\\quad ";t.string=t.string.slice(0,t.i)+r+t.string.slice(t.i)},Differential(t,e,a){const r=t.GetBrackets(e),n=null!=r?"^{"+r+"}":" ",i="("===t.GetNext(),o="{"===t.GetNext();let s=a+n;if(i||o)if(o){s+=t.GetArgument(e);const a=new x(s,t.stack.env,t.configuration).mml();t.Push(t.create("node","TeXAtom",[a],{texClass:N.OP}))}else t.Push(new x(s,t.stack.env,t.configuration).mml()),t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:"(",close:")"}));else{s+=t.GetArgument(e,!0)||"";const a=new x(s,t.stack.env,t.configuration).mml();t.Push(a)}},Derivative(t,e,a,r){const n=t.GetStar(),i=t.GetBrackets(e);let o=1;const s=[];for(s.push(t.GetArgument(e));"{"===t.GetNext()&&o<a;)s.push(t.GetArgument(e)),o++;let c=!1,l=" ",m=" ";a>2&&s.length>2?(l="^{"+(s.length-1)+"}",c=!0):null!=i&&(a>2&&s.length>1&&(c=!0),l=`^{${i}}`,m=l);const u=n?"\\flatfrac":"\\frac",g=s.length>1?s[0]:"",p=s.length>1?s[1]:s[0];let d="";for(let t,e=2;t=s[e];e++)d+=r+" "+t;const h=`${u}{${r}${l}${g}}{${r} ${p}${m} ${d}}`;t.Push(new x(h,t.stack.env,t.configuration).mml()),"("===t.GetNext()&&(t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:"(",close:")",ignore:c})))},Bra(t,e){const a=t.GetStar(),r=t.GetArgument(e);let n="",i=!1,o=!1;if("\\"===t.GetNext()){let e=t.i;t.i++;const a=t.GetCS(),r=t.lookup(c.MACRO,a);r&&"ket"===r.token?(i=!0,e=t.i,o=t.GetStar(),"{"===t.GetNext()?n=t.GetArgument(a,!0):(t.i=e,o=!1)):t.i=e}let s="";s=i?a||o?`\\langle{${r}}\\vert{${n}}\\rangle`:`\\left\\langle{${r}}\\middle\\vert{${n}}\\right\\rangle`:a?`\\langle{${r}}\\vert`:`\\left\\langle{${r}}\\right\\vert{${n}}`,t.Push(new x(s,t.stack.env,t.configuration).mml())},Ket(t,e){const a=t.GetStar(),r=t.GetArgument(e),n=a?`\\vert{${r}}\\rangle`:`\\left\\vert{${r}}\\right\\rangle`;t.Push(new x(n,t.stack.env,t.configuration).mml())},BraKet(t,e){const a=t.GetStar(),r=t.GetArgument(e);let n=null;"{"===t.GetNext()&&(n=t.GetArgument(e,!0));let i="";i=null==n?a?`\\langle{${r}}\\vert{${r}}\\rangle`:`\\left\\langle{${r}}\\middle\\vert{${r}}\\right\\rangle`:a?`\\langle{${r}}\\vert{${n}}\\rangle`:`\\left\\langle{${r}}\\middle\\vert{${n}}\\right\\rangle`,t.Push(new x(i,t.stack.env,t.configuration).mml())},KetBra(t,e){const a=t.GetStar(),r=t.GetArgument(e);let n=null;"{"===t.GetNext()&&(n=t.GetArgument(e,!0));let i="";i=null==n?a?`\\vert{${r}}\\rangle\\!\\langle{${r}}\\vert`:`\\left\\vert{${r}}\\middle\\rangle\\!\\middle\\langle{${r}}\\right\\vert`:a?`\\vert{${r}}\\rangle\\!\\langle{${n}}\\vert`:`\\left\\vert{${r}}\\middle\\rangle\\!\\middle\\langle{${n}}\\right\\vert`,t.Push(new x(i,t.stack.env,t.configuration).mml())},Expectation(t,e){const a=t.GetStar(),r=a&&t.GetStar(),n=t.GetArgument(e);let i=null;"{"===t.GetNext()&&(i=t.GetArgument(e,!0));const o=n&&i?I([i,n,i],a,r):a?`\\langle {${n}} \\rangle`:`\\left\\langle {${n}} \\right\\rangle`;t.Push(new x(o,t.stack.env,t.configuration).mml())},MatrixElement(t,e){const a=t.GetStar(),r=a&&t.GetStar(),n=I([t.GetArgument(e),t.GetArgument(e),t.GetArgument(e)],a,r);t.Push(new x(n,t.stack.env,t.configuration).mml())},MatrixQuantity(t,e,a){const r=t.GetStar(),n=a?"smallmatrix":"array";let i="",o="",s="";switch(t.GetNext()){case"{":i=t.GetArgument(e);break;case"(":t.i++,o=r?"\\lgroup":"(",s=r?"\\rgroup":")",i=t.GetUpTo(e,")");break;case"[":t.i++,o="[",s="]",i=t.GetUpTo(e,"]");break;case"|":t.i++,o="|",s="|",i=t.GetUpTo(e,"|");break;default:o="(",s=")"}const c=(o?"\\left":"")+`${o}\\begin{${n}}{} ${i}\\end{${n}}`+(o?"\\right":"")+s;t.Push(new x(c,t.stack.env,t.configuration).mml())},IdentityMatrix(t,e){const a=t.GetArgument(e),r=parseInt(a,10);if(isNaN(r))throw new $("InvalidNumber","Invalid number");if(r<=1)return t.string="1"+t.string.slice(t.i),void(t.i=0);const n=Array(r).fill("0"),i=[];for(let t=0;t<r;t++){const e=n.slice();e[t]="1",i.push(e.join(" & "))}t.string=i.join("\\\\ ")+t.string.slice(t.i),t.i=0},XMatrix(t,e){const a=t.GetStar(),r=t.GetArgument(e),n=t.GetArgument(e),i=t.GetArgument(e);let o=parseInt(n,10),s=parseInt(i,10);if(isNaN(o)||isNaN(s)||s.toString()!==i||o.toString()!==n)throw new $("InvalidNumber","Invalid number");if(o=o<1?1:o,s=s<1?1:s,!a){const e=Array(s).fill(r).join(" & "),a=Array(o).fill(e).join("\\\\ ");return t.string=a+t.string.slice(t.i),void(t.i=0)}let c="";if(1===o&&1===s)c=r;else if(1===o){const t=[];for(let e=1;e<=s;e++)t.push(`${r}_{${e}}`);c=t.join(" & ")}else if(1===s){const t=[];for(let e=1;e<=o;e++)t.push(`${r}_{${e}}`);c=t.join("\\\\ ")}else{const t=[];for(let e=1;e<=o;e++){const a=[];for(let t=1;t<=s;t++)a.push(`${r}_{{${e}}{${t}}}`);t.push(a.join(" & "))}c=t.join("\\\\ ")}t.string=c+t.string.slice(t.i),t.i=0},PauliMatrix(t,e){const a=t.GetArgument(e);let r=a.slice(1);switch(a[0]){case"0":r+=" 1 & 0\\\\ 0 & 1";break;case"1":case"x":r+=" 0 & 1\\\\ 1 & 0";break;case"2":case"y":r+=" 0 & -i\\\\ i & 0";break;case"3":case"z":r+=" 1 & 0\\\\ 0 & -1"}t.string=r+t.string.slice(t.i),t.i=0},DiagonalMatrix(t,e,a){if("{"!==t.GetNext())return;const r=t.i;t.GetArgument(e);const n=t.i;t.i=r+1;const i=[];let o="",s=t.i;for(;s<n;){try{o=t.GetUpTo(e,",")}catch(e){t.i=n,i.push(t.string.slice(s,n-1));break}s=t.i,i.push(o)}t.string=function(t,e){const a=t.length,r=[];for(let n=0;n<a;n++)r.push(Array(e?a-n:n+1).join("&")+`\\mqty{${t[n]}}`);return r.join("\\\\ ")}(i,a)+t.string.slice(n),t.i=0},AutoClose(t,e,a){let r=t.stack.Top();if(r.isKind("over")&&(r=t.stack.Top(2)),!r.isKind("auto open")||!r.closing(e))return!1;const n=t.create("token","mo",{texClass:a},e);return t.Push(t.itemFactory.create("close").setProperties({"pre-autoclose":!0})),t.Push(t.itemFactory.create("mml",n).setProperties({autoclose:!0})),!0},Vnabla(t,e){const a=t.options.physics.arrowdel?"\\vec{\\gradientnabla}":"{\\gradientnabla}";return t.Push(new x(a,t.stack.env,t.configuration).mml())},DiffD(t,e){const a=t.options.physics.italicdiff?"d":"{\\rm d}";return t.Push(new x(a,t.stack.env,t.configuration).mml())},Macro:b.Macro,NamedFn:b.NamedFn,Array:b.Array},j=MathJax._.input.tex.TexConstants.TexConstant,_=MathJax._.input.tex.ParseMethods.default;new P("Physics-automatic-bracing-macros",{quantity:V.Quantity,qty:V.Quantity,pqty:[V.Quantity,"(",")",!0],bqty:[V.Quantity,"[","]",!0],vqty:[V.Quantity,"|","|",!0],Bqty:[V.Quantity,"\\{","\\}",!0],absolutevalue:[V.Quantity,"|","|",!0],abs:[V.Quantity,"|","|",!0],norm:[V.Quantity,"\\|","\\|",!0],evaluated:V.Eval,eval:V.Eval,order:[V.Quantity,"(",")",!0,"O",j.Variant.CALLIGRAPHIC],commutator:V.Commutator,comm:V.Commutator,anticommutator:[V.Commutator,"\\{","\\}"],acomm:[V.Commutator,"\\{","\\}"],poissonbracket:[V.Commutator,"\\{","\\}"],pb:[V.Commutator,"\\{","\\}"]}),new y("Physics-vector-mo",_.mathchar0mo,{dotproduct:["\u22c5",{mathvariant:j.Variant.BOLD}],vdot:["\u22c5",{mathvariant:j.Variant.BOLD}],crossproduct:"\xd7",cross:"\xd7",cp:"\xd7",gradientnabla:["\u2207",{mathvariant:j.Variant.BOLD}],divsymbol:"\xf7",divisionsymbol:"\xf7"}),new y("Physics-vector-mi",_.mathchar0mi,{real:["\u211c",{mathvariant:j.Variant.NORMAL}],imaginary:["\u2111",{mathvariant:j.Variant.NORMAL}]}),new P("Physics-vector-macros",{vnabla:V.Vnabla,vectorbold:V.VectorBold,vb:V.VectorBold,vectorarrow:[V.StarMacro,1,"\\vec{\\vb","{#1}}"],va:[V.StarMacro,1,"\\vec{\\vb","{#1}}"],vectorunit:[V.StarMacro,1,"\\hat{\\vb","{#1}}"],vu:[V.StarMacro,1,"\\hat{\\vb","{#1}}"],gradient:[V.OperatorApplication,"\\vnabla","(","["],grad:[V.OperatorApplication,"\\vnabla","(","["],divergence:[V.VectorOperator,"\\vnabla\\vdot","(","["],div:[V.VectorOperator,"\\vnabla\\vdot","(","["],curl:[V.VectorOperator,"\\vnabla\\crossproduct","(","["],laplacian:[V.OperatorApplication,"\\nabla^2","(","["]}),new P("Physics-expressions-macros",{sin:V.Expression,sinh:V.Expression,arcsin:V.Expression,asin:V.Expression,cos:V.Expression,cosh:V.Expression,arccos:V.Expression,acos:V.Expression,tan:V.Expression,tanh:V.Expression,arctan:V.Expression,atan:V.Expression,csc:V.Expression,csch:V.Expression,arccsc:V.Expression,acsc:V.Expression,sec:V.Expression,sech:V.Expression,arcsec:V.Expression,asec:V.Expression,cot:V.Expression,coth:V.Expression,arccot:V.Expression,acot:V.Expression,exp:[V.Expression,!1],log:V.Expression,ln:V.Expression,det:[V.Expression,!1],Pr:[V.Expression,!1],tr:[V.Expression,!1],trace:[V.Expression,!1,"tr"],Tr:[V.Expression,!1],Trace:[V.Expression,!1,"Tr"],rank:V.NamedFn,erf:[V.Expression,!1],Residue:[V.Macro,"\\mathrm{Res}"],Res:[V.OperatorApplication,"\\Residue","(","[","{"],principalvalue:[V.OperatorApplication,"{\\cal P}"],pv:[V.OperatorApplication,"{\\cal P}"],PV:[V.OperatorApplication,"{\\rm P.V.}"],Re:[V.OperatorApplication,"\\mathrm{Re}","{"],Im:[V.OperatorApplication,"\\mathrm{Im}","{"],sine:[V.NamedFn,"sin"],hypsine:[V.NamedFn,"sinh"],arcsine:[V.NamedFn,"arcsin"],asine:[V.NamedFn,"asin"],cosine:[V.NamedFn,"cos"],hypcosine:[V.NamedFn,"cosh"],arccosine:[V.NamedFn,"arccos"],acosine:[V.NamedFn,"acos"],tangent:[V.NamedFn,"tan"],hyptangent:[V.NamedFn,"tanh"],arctangent:[V.NamedFn,"arctan"],atangent:[V.NamedFn,"atan"],cosecant:[V.NamedFn,"csc"],hypcosecant:[V.NamedFn,"csch"],arccosecant:[V.NamedFn,"arccsc"],acosecant:[V.NamedFn,"acsc"],secant:[V.NamedFn,"sec"],hypsecant:[V.NamedFn,"sech"],arcsecant:[V.NamedFn,"arcsec"],asecant:[V.NamedFn,"asec"],cotangent:[V.NamedFn,"cot"],hypcotangent:[V.NamedFn,"coth"],arccotangent:[V.NamedFn,"arccot"],acotangent:[V.NamedFn,"acot"],exponential:[V.NamedFn,"exp"],logarithm:[V.NamedFn,"log"],naturallogarithm:[V.NamedFn,"ln"],determinant:[V.NamedFn,"det"],Probability:[V.NamedFn,"Pr"]}),new P("Physics-quick-quad-macros",{qqtext:V.Qqtext,qq:V.Qqtext,qcomma:[V.Macro,"\\qqtext*{,}"],qc:[V.Macro,"\\qqtext*{,}"],qcc:[V.Qqtext,"c.c."],qif:[V.Qqtext,"if"],qthen:[V.Qqtext,"then"],qelse:[V.Qqtext,"else"],qotherwise:[V.Qqtext,"otherwise"],qunless:[V.Qqtext,"unless"],qgiven:[V.Qqtext,"given"],qusing:[V.Qqtext,"using"],qassume:[V.Qqtext,"assume"],qsince:[V.Qqtext,"since"],qlet:[V.Qqtext,"let"],qfor:[V.Qqtext,"for"],qall:[V.Qqtext,"all"],qeven:[V.Qqtext,"even"],qodd:[V.Qqtext,"odd"],qinteger:[V.Qqtext,"integer"],qand:[V.Qqtext,"and"],qor:[V.Qqtext,"or"],qas:[V.Qqtext,"as"],qin:[V.Qqtext,"in"]}),new P("Physics-derivative-macros",{diffd:V.DiffD,flatfrac:[V.Macro,"\\left.#1\\middle/#2\\right.",2],differential:[V.Differential,"\\diffd"],dd:[V.Differential,"\\diffd"],variation:[V.Differential,"\\delta"],var:[V.Differential,"\\delta"],derivative:[V.Derivative,2,"\\diffd"],dv:[V.Derivative,2,"\\diffd"],partialderivative:[V.Derivative,3,"\\partial"],pderivative:[V.Derivative,3,"\\partial"],pdv:[V.Derivative,3,"\\partial"],functionalderivative:[V.Derivative,2,"\\delta"],fderivative:[V.Derivative,2,"\\delta"],fdv:[V.Derivative,2,"\\delta"]}),new P("Physics-bra-ket-macros",{bra:V.Bra,ket:V.Ket,innerproduct:V.BraKet,ip:V.BraKet,braket:V.BraKet,outerproduct:V.KetBra,dyad:V.KetBra,ketbra:V.KetBra,op:V.KetBra,expectationvalue:V.Expectation,expval:V.Expectation,ev:V.Expectation,matrixelement:V.MatrixElement,matrixel:V.MatrixElement,mel:V.MatrixElement}),new P("Physics-matrix-macros",{matrixquantity:V.MatrixQuantity,mqty:V.MatrixQuantity,pmqty:[V.Macro,"\\mqty(#1)",1],Pmqty:[V.Macro,"\\mqty*(#1)",1],bmqty:[V.Macro,"\\mqty[#1]",1],vmqty:[V.Macro,"\\mqty|#1|",1],smallmatrixquantity:[V.MatrixQuantity,!0],smqty:[V.MatrixQuantity,!0],spmqty:[V.Macro,"\\smqty(#1)",1],sPmqty:[V.Macro,"\\smqty*(#1)",1],sbmqty:[V.Macro,"\\smqty[#1]",1],svmqty:[V.Macro,"\\smqty|#1|",1],matrixdeterminant:[V.Macro,"\\vmqty{#1}",1],mdet:[V.Macro,"\\vmqty{#1}",1],smdet:[V.Macro,"\\svmqty{#1}",1],identitymatrix:V.IdentityMatrix,imat:V.IdentityMatrix,xmatrix:V.XMatrix,xmat:V.XMatrix,zeromatrix:[V.Macro,"\\xmat{0}{#1}{#2}",2],zmat:[V.Macro,"\\xmat{0}{#1}{#2}",2],paulimatrix:V.PauliMatrix,pmat:V.PauliMatrix,diagonalmatrix:V.DiagonalMatrix,dmat:V.DiagonalMatrix,antidiagonalmatrix:[V.DiagonalMatrix,!0],admat:[V.DiagonalMatrix,!0]}),new q("Physics-aux-envs",_.environment,{smallmatrix:[V.Array,null,null,null,"c","0.333em",".2em","S",1]}),new M("Physics-characters",{"|":[V.AutoClose,N.ORD],")":V.AutoClose,"]":V.AutoClose});const J=m.create("physics",{[s.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"],[c.CHARACTER]:["Physics-characters"],[c.ENVIRONMENT]:["Physics-aux-envs"]},[s.ITEMS]:{[v.prototype.kind]:v},[s.OPTIONS]:{physics:{italicdiff:!1,arrowdel:!1}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/physics","4.1.0","tex-extension"),i({_:{input:{tex:{physics:{PhysicsConfiguration:r,PhysicsItems:e,PhysicsMethods:a}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={d:(t,a)=>{for(var o in a)e.o(a,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:a[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{RequireConfiguration:()=>_,RequireLoad:()=>j,RequireMethods:()=>A,options:()=>J});const a=("undefined"!=typeof window?window:e.g).MathJax._.components.global,o=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),r=(a.MathJax,MathJax._.input.tex.HandlerTypes),n=r.ConfigurationType,i=r.HandlerType,s=MathJax._.input.tex.Configuration,p=s.Configuration,u=s.ConfigurationHandler,c=(s.ParserConfiguration,MathJax._.input.tex.TokenMap),l=(c.parseResult,c.AbstractTokenMap,c.RegExpMap,c.AbstractParseMap,c.CharacterMap,c.DelimiterMap,c.MacroMap,c.CommandMap),d=(c.EnvironmentMap,MathJax._.input.tex.TexError.default),f=("undefined"!=typeof window?window:e.g).MathJax._.components.startup,h=(f.Startup,f.MathJax),g=(f.CONFIG,MathJax._.components.package),x=(g.PackageError,g.Package),w=("undefined"!=typeof window?window:e.g).MathJax._.components.loader,m=(w.PathFilters,w.Loader),O=(w.MathJax,w.CONFIG),M=MathJax._.mathjax.mathjax,b=MathJax._.util.Options,y=(b.isObject,b.APPEND,b.REMOVE,b.OPTIONS,b.Expandable,b.expandable),q=(b.makeArray,b.keys,b.copy,b.insert,b.defaultOptions,b.userOptions,b.selectOptions,b.selectOptionsFromKeys,b.separateOptions,b.lookup,h.config);function k(e,t){const a=e.parseOptions.options.require,o=e.parseOptions.packageData.get("require").required,r=t.substring(a.prefix.length);if(!o.includes(r)){o.push(r);const a=function(e,t=[]){const a=e.parseOptions.options.require.prefix,o=[];for(const r of t)if(r.substring(0,a.length)===a)try{k(e,r)}catch(e){if(!e.retry)throw e;o.push(e.retry)}return o.length?Promise.all(o):null}(e,O.dependencies[t]);a?M.retryAfter(a.then((()=>P(e,t,r)))):P(e,t,r)}}function P(e,t,a){const o=u.get(a);if(o){let r=q[t]||{};o.options&&1===Object.keys(o.options).length&&o.options[a]&&(r={[a]:r}),e.configuration.add(a,e,r);const n=e.parseOptions.packageData.get("require").configured;o.preprocessors.length&&!n.has(a)&&(n.set(a,!0),M.retryAfter(Promise.resolve()))}}function j(e,t){var a,o;const r=e.options.require,n=r.allow,i=("["===t.substring(0,1)?"":r.prefix)+t;if(!(Object.hasOwn(n,i)?n[i]:Object.hasOwn(n,t)?n[t]:r.defaultAllow))throw new d("BadRequire",'Extension "%1" is not allowed to be loaded',i);const s=x.packages.get(i);if(s||M.retryAfter(m.load(i).catch((e=>{}))),s.hasFailed)throw new d("RequireFail",'Extension "%1" failed to load',t);const p=null===(a=O[i])||void 0===a?void 0:a.rendererExtensions,u=null===(o=h.startup.document)||void 0===o?void 0:o.menu;p&&u&&u.addRequiredExtensions(p),k(e.configuration.packageData.get("require").jax,i)}const A={Require(e,t){const a=e.GetArgument(t);if(a.match(/[^_a-zA-Z0-9]/)||""===a)throw new d("BadPackageName","Argument for %1 is not a valid package name",t);j(e,a),e.Push(e.itemFactory.create("null"))}},J={require:{allow:y({base:!1,autoload:!1,configmacros:!1,tagformat:!1,setoptions:!1,texhtml:!1}),defaultAllow:!0,prefix:"tex"}};new l("require",{require:A.Require});const _=p.create("require",{[n.HANDLER]:{[i.MACRO]:["require"]},[n.CONFIG]:function(e,t){t.parseOptions.packageData.set("require",{jax:t,required:[...t.options.packages],configured:new Map});const a=t.parseOptions.options.require,o=a.prefix;if(o.match(/[^_a-zA-Z0-9]/))throw Error("Illegal characters used in \\require prefix");O.paths[o]||(O.paths[o]="[mathjax]/input/tex/extensions"),a.prefix="["+o+"]/"},[n.OPTIONS]:J});MathJax.loader&&MathJax.loader.checkVersion("[tex]/require","4.1.0","tex-extension"),o({_:{input:{tex:{require:{RequireConfiguration:t}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var t={d:(e,o)=>{for(var a in o)t.o(o,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:o[a]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{SetOptionsConfiguration:()=>T,SetOptionsUtil:()=>m});const o=("undefined"!=typeof window?window:t.g).MathJax._.components.global,a=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults,o.combineWithMathJax),n=(o.MathJax,MathJax._.input.tex.HandlerTypes),i=n.ConfigurationType,r=n.HandlerType,s=MathJax._.input.tex.Configuration,l=s.Configuration,p=s.ConfigurationHandler,u=(s.ParserConfiguration,MathJax._.input.tex.TokenMap),c=(u.parseResult,u.AbstractTokenMap,u.RegExpMap,u.AbstractParseMap,u.CharacterMap,u.DelimiterMap,u.MacroMap,u.CommandMap),f=(u.EnvironmentMap,MathJax._.input.tex.TexError.default),O=MathJax._.input.tex.ParseUtil,d=(O.KeyValueDef,O.KeyValueTypes,O.ParseUtil),g=MathJax._.input.tex.Token,x=(g.Token,g.Macro),w=MathJax._.input.tex.base.BaseMethods,b=(w.splitAlignArray,w.default),h=MathJax._.util.Options,M=h.isObject,y=(h.APPEND,h.REMOVE,h.OPTIONS,h.Expandable,h.expandable),k=(h.makeArray,h.keys,h.copy,h.insert,h.defaultOptions,h.userOptions,h.selectOptions,h.selectOptionsFromKeys,h.separateOptions,h.lookup,MathJax._.util.PrioritizedList.PrioritizedList),m={filterPackage(t,e){if("tex"!==e&&!p.get(e))throw new f("NotAPackage","Not a defined package: %1",e);const o=t.options.setoptions,a=o.allowOptions[e];if(void 0===a&&!o.allowPackageDefault||!1===a)throw new f("PackageNotSettable",'Options can\'t be set for package "%1"',e);return!0},filterOption(t,e,o){const a=t.options.setoptions,n=a.allowOptions[e]||{},i="tex"===e,r=Object.hasOwn(n,o)&&!M(n[o])?n[o]:null;if(!1===r||null===r&&!a.allowOptionsDefault)throw i?new f("TeXOptionNotSettable",'Option "%1" is not allowed to be set',o):new f("OptionNotSettable",'Option "%1" is not allowed to be set for package %2',o,e);const s=i?t.options:t.options[e];if(!s||!Object.hasOwn(s,o))throw i?new f("InvalidTexOption",'Invalid TeX option "%1"',o):new f("InvalidOptionKey",'Invalid option "%1" for package "%2"',o,e);return!0},filterValue(t,e,o,a){if("string"!=typeof a)return a;const n=a.match(/^\/(.*)\/([dgimsuvy]*)$/);return n?new RegExp(n[1],n[2]):a}};function P(t,e){const o=t.GetBrackets(e)||"tex",a=d.keyvalOptions(t.GetArgument(e)),n=t.options.setoptions;if(n.filterPackage(t,o)){for(const e of Object.keys(a))n.filterOption(t,o,e)&&(("tex"===o?t.options:t.options[o])[e]=n.filterValue(t,o,e,a[e]));t.Push(t.itemFactory.create("null"))}}const T=l.create("setoptions",{[i.CONFIG]:function(t,e){const o=new c("setoptions",{setOptions:P}),a=e.parseOptions.handlers.get(r.MACRO);a.add(["setoptions"],null,k.DEFAULTPRIORITY-1);const n=a.lookup("require");n&&(o.add("Require",new x("Require",n._func)),o.add("require",new x("require",b.Macro,["\\Require{#2}\\setOptions[#2]{#1}",2,""])))},[i.PRIORITY]:3,[i.OPTIONS]:{setoptions:{filterPackage:m.filterPackage,filterOption:m.filterOption,filterValue:m.filterValue,allowPackageDefault:!0,allowOptionsDefault:!0,allowOptions:y({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})}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/setoptions","4.1.0","tex-extension"),a({_:{input:{tex:{setoptions:{SetOptionsConfiguration:e}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var t={d:(o,a)=>{for(var e in a)t.o(a,e)&&!t.o(o,e)&&Object.defineProperty(o,e,{enumerable:!0,get:a[e]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};t.r(o),t.d(o,{TagFormatConfiguration:()=>c,tagformatConfig:()=>u});const a=("undefined"!=typeof window?window:t.g).MathJax._.components.global,e=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),n=(a.MathJax,MathJax._.input.tex.HandlerTypes),r=n.ConfigurationType,i=(n.HandlerType,MathJax._.input.tex.Configuration),s=i.Configuration,g=(i.ConfigurationHandler,i.ParserConfiguration,MathJax._.input.tex.Tags),f=(g.Label,g.TagInfo,g.AbstractTags,g.NoTags,g.AllTags,g.TagsFactory);let p=0;function u(t,o){const a=o.parseOptions.options.tags;"base"!==a&&Object.hasOwn(t.tags,a)&&f.add(a,t.tags[a]);const e=f.create(o.parseOptions.options.tags).constructor;p++;const n="configTags-"+p;f.add(n,class extends e{formatNumber(t){return o.parseOptions.options.tagformat.number(t)}formatTag(t){return o.parseOptions.options.tagformat.tag(t)}formatRef(t){const a=o.parseOptions.options.tagformat.ref;return a?a(t):this.formatTag(t)}formatId(t){return o.parseOptions.options.tagformat.id(t)}formatUrl(t,a){return o.parseOptions.options.tagformat.url(t,a)}}),o.parseOptions.options.tags=n}const c=s.create("tagformat",{[r.CONFIG]:[u,10],[r.OPTIONS]:{tagformat:{number:t=>t.toString(),tag:t=>["(",t,")"],ref:"",id:t=>"mjx-eqn:"+t.replace(/\s/g,"_"),url:(t,o)=>o+"#"+encodeURIComponent(t)}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/tagformat","4.1.0","tex-extension"),e({_:{input:{tex:{tagformat:{TagFormatConfiguration:o}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var t={d:(e,n)=>{for(var a in n)t.o(n,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{HtmlNodeMethods:()=>u,TexHtmlConfiguration:()=>m});const n=("undefined"!=typeof window?window:t.g).MathJax._.components.global,a=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),o=(n.MathJax,MathJax._.input.tex.HandlerTypes),r=o.ConfigurationType,i=o.HandlerType,l=MathJax._.input.tex.Configuration,s=l.Configuration,h=(l.ConfigurationHandler,l.ParserConfiguration,MathJax._.input.tex.TokenMap),d=(h.parseResult,h.AbstractTokenMap,h.RegExpMap,h.AbstractParseMap,h.CharacterMap,h.DelimiterMap,h.MacroMap),c=(h.CommandMap,h.EnvironmentMap,MathJax._.input.tex.TexError.default),x=MathJax._.handlers.html.HTMLDomStrings.HTMLDomStrings,u={TexHTML(t,e){if(!t.options.allowTexHTML)return!1;const n=t.string.slice(t.i).match(/^tex-html(?: n="(\d+)")?>/);if(!n)return!1;t.i+=n[0].length;const a=(n[1]?`<!${n[1]}>`:"")+"</tex-html>",o=t.string.slice(t.i).indexOf(a);if(o<0)throw new c("TokenNotFoundForCommand","Could not find %1 for %2",a,"<"+n[0]);const r=t.string.substring(t.i,t.i+o).trim();t.i+=o+11+(n[1]?3+n[1].length:0);const i=t.configuration.packageData.get("texhtml").adaptor,l=i.childNodes(i.body(i.parse(r)));if(0===l.length)return!0;const s=1===l.length?l[0]:i.node("div",{},l),h=t.create("node","html").setHTML(s,i);return t.Push(t.create("node","mtext",[h])),!0}};new d("tex-html",{"<":u.TexHTML});const m=s.create("texhtml",{[r.HANDLER]:{[i.CHARACTER]:["tex-html"]},[r.OPTIONS]:{allowTexHTML:!1},[r.CONFIG]:()=>{if(x){const t=x.OPTIONS.includeHtmlTags;t["tex-html"]||(t["tex-html"]=(t,e)=>{const n=e.innerHTML(t),a=n.split(/<\/tex-html>/).length;return`<tex-html${a>1?` n="${a}"`:""}>`+n+(a>1?`<!${a}>`:"")+"</tex-html>"})}},[r.PREPROCESSORS]:[t=>{t.data.packageData.set("texhtml",{adaptor:t.document.adaptor})}],[r.POSTPROCESSORS]:[t=>{t.data.packageData.set("texhtml",{adaptor:null})}]});MathJax.loader&&MathJax.loader.checkVersion("[tex]/texhtml","4.1.0","tex-extension"),a({_:{input:{tex:{texhtml:{TexHtmlConfiguration:e}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var t={d:(e,a)=>{for(var r in a)t.o(a,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{TextcompConfiguration:()=>h});const a=("undefined"!=typeof window?window:t.g).MathJax._.components.global,r=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),o=(a.MathJax,MathJax._.input.tex.HandlerTypes),x=o.ConfigurationType,n=o.HandlerType,i=MathJax._.input.tex.Configuration,s=i.Configuration,l=(i.ConfigurationHandler,i.ParserConfiguration,MathJax._.input.tex.TokenMap),c=(l.parseResult,l.AbstractTokenMap,l.RegExpMap,l.AbstractParseMap,l.CharacterMap,l.DelimiterMap,l.MacroMap,l.CommandMap),d=(l.EnvironmentMap,MathJax._.input.tex.TexConstants.TexConstant),p=MathJax._.input.tex.textmacros.TextMacrosMethods.TextMacrosMethods,u=MathJax._.input.tex.ParseUtil,m=(u.KeyValueDef,u.KeyValueTypes,u.ParseUtil),b=MathJax._.input.tex.textmacros.TextParser.TextParser;function g(t,e,a,r){if(t instanceof b){if(!r)return void p.Insert(t,e,a);t.saveText()}t.Push(m.internalText(t,a,r?{mathvariant:r}:{}))}new c("textcomp-macros",{textasciicircum:[g,"^"],textasciitilde:[g,"~"],textasteriskcentered:[g,"*"],textbackslash:[g,"\\"],textbar:[g,"|"],textbraceleft:[g,"{"],textbraceright:[g,"}"],textbullet:[g,"\u2022"],textdagger:[g,"\u2020"],textdaggerdbl:[g,"\u2021"],textellipsis:[g,"\u2026"],textemdash:[g,"\u2014"],textendash:[g,"\u2013"],textexclamdown:[g,"\xa1"],textgreater:[g,">"],textless:[g,"<"],textordfeminine:[g,"\xaa"],textordmasculine:[g,"\xba"],textparagraph:[g,"\xb6"],textperiodcentered:[g,"\xb7"],textquestiondown:[g,"\xbf"],textquotedblleft:[g,"\u201c"],textquotedblright:[g,"\u201d"],textquoteleft:[g,"\u2018"],textquoteright:[g,"\u2019"],textsection:[g,"\xa7"],textunderscore:[g,"_"],textvisiblespace:[g,"\u2423"],textacutedbl:[g,"\u02dd"],textasciiacute:[g,"\xb4"],textasciibreve:[g,"\u02d8"],textasciicaron:[g,"\u02c7"],textasciidieresis:[g,"\xa8"],textasciimacron:[g,"\xaf"],textgravedbl:[g,"\u02f5"],texttildelow:[g,"\u02f7"],textbaht:[g,"\u0e3f"],textcent:[g,"\xa2"],textcolonmonetary:[g,"\u20a1"],textcurrency:[g,"\xa4"],textdollar:[g,"$"],textdong:[g,"\u20ab"],texteuro:[g,"\u20ac"],textflorin:[g,"\u0192"],textguarani:[g,"\u20b2"],textlira:[g,"\u20a4"],textnaira:[g,"\u20a6"],textpeso:[g,"\u20b1"],textsterling:[g,"\xa3"],textwon:[g,"\u20a9"],textyen:[g,"\xa5"],textcircledP:[g,"\u2117"],textcompwordmark:[g,"\u200c"],textcopyleft:[g,"\u{1f12f}"],textcopyright:[g,"\xa9"],textregistered:[g,"\xae"],textservicemark:[g,"\u2120"],texttrademark:[g,"\u2122"],textbardbl:[g,"\u2016"],textbigcircle:[g,"\u25ef"],textblank:[g,"\u2422"],textbrokenbar:[g,"\xa6"],textdiscount:[g,"\u2052"],textestimated:[g,"\u212e"],textinterrobang:[g,"\u203d"],textinterrobangdown:[g,"\u2e18"],textmusicalnote:[g,"\u266a"],textnumero:[g,"\u2116"],textopenbullet:[g,"\u25e6"],textpertenthousand:[g,"\u2031"],textperthousand:[g,"\u2030"],textrecipe:[g,"\u211e"],textreferencemark:[g,"\u203b"],textlangle:[g,"\u2329"],textrangle:[g,"\u232a"],textlbrackdbl:[g,"\u27e6"],textrbrackdbl:[g,"\u27e7"],textlquill:[g,"\u2045"],textrquill:[g,"\u2046"],textcelsius:[g,"\u2103"],textdegree:[g,"\xb0"],textdiv:[g,"\xf7"],textdownarrow:[g,"\u2193"],textfractionsolidus:[g,"\u2044"],textleftarrow:[g,"\u2190"],textlnot:[g,"\xac"],textmho:[g,"\u2127"],textminus:[g,"\u2212"],textmu:[g,"\xb5"],textohm:[g,"\u2126"],textonehalf:[g,"\xbd"],textonequarter:[g,"\xbc"],textonesuperior:[g,"\xb9"],textpm:[g,"\xb1"],textrightarrow:[g,"\u2192"],textsurd:[g,"\u221a"],textthreequarters:[g,"\xbe"],textthreesuperior:[g,"\xb3"],texttimes:[g,"\xd7"],texttwosuperior:[g,"\xb2"],textuparrow:[g,"\u2191"],textborn:[g,"*"],textdied:[g,"\u2020"],textdivorced:[g,"\u26ae"],textmarried:[g,"\u26ad"],textcentoldstyle:[g,"\xa2",d.Variant.OLDSTYLE],textdollaroldstyle:[g,"$",d.Variant.OLDSTYLE],textzerooldstyle:[g,"0",d.Variant.OLDSTYLE],textoneoldstyle:[g,"1",d.Variant.OLDSTYLE],texttwooldstyle:[g,"2",d.Variant.OLDSTYLE],textthreeoldstyle:[g,"3",d.Variant.OLDSTYLE],textfouroldstyle:[g,"4",d.Variant.OLDSTYLE],textfiveoldstyle:[g,"5",d.Variant.OLDSTYLE],textsixoldstyle:[g,"6",d.Variant.OLDSTYLE],textsevenoldstyle:[g,"7",d.Variant.OLDSTYLE],texteightoldstyle:[g,"8",d.Variant.OLDSTYLE],textnineoldstyle:[g,"9",d.Variant.OLDSTYLE]}),s.create("text-textcomp",{[x.PARSER]:"text",[x.HANDLER]:{[n.MACRO]:["textcomp-macros"]}});const h=s.create("textcomp",{[x.HANDLER]:{macro:["textcomp-macros"]},config(t,e){const a=e.parseOptions.packageData.get("textmacros");a&&(a.parseOptions.options.textmacros.packages.push("text-textcomp"),a.textConf.add("text-textcomp",e,{}))}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/textcomp","4.1.0","tex-extension"),r({_:{input:{tex:{textcomp:{TextcompConfiguration:e}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var t={d:(e,a)=>{for(var o in a)t.o(a,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:a[o]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{TextParser:()=>P});var a={};t.r(a),t.d(a,{TextMacrosMethods:()=>L});var o={};t.r(o),t.d(o,{TextBaseConfiguration:()=>z,TextMacrosConfiguration:()=>j});const s=("undefined"!=typeof window?window:t.g).MathJax._.components.global,r=(s.GLOBAL,s.isObject,s.combineConfig,s.combineDefaults,s.combineWithMathJax),n=(s.MathJax,MathJax._.input.tex.HandlerTypes),i=n.ConfigurationType,c=n.HandlerType,l=MathJax._.input.tex.Configuration,h=l.Configuration,p=(l.ConfigurationHandler,l.ParserConfiguration),m=MathJax._.input.tex.ParseOptions.default,u=MathJax._.input.tex.Tags,d=(u.Label,u.TagInfo,u.AbstractTags,u.NoTags,u.AllTags,u.TagsFactory),x=MathJax._.input.tex.base.BaseItems,M=x.StartItem,g=x.StopItem,S=(x.OpenItem,x.CloseItem,x.NullItem,x.PrimeItem,x.SubsupItem,x.OverItem,x.LeftItem,x.Middle,x.RightItem,x.BreakItem,x.BeginItem,x.EndItem,x.StyleItem),f=(x.PositionItem,x.CellItem,x.MmlItem),A=(x.FnItem,x.NotItem,x.NonscriptItem,x.DotsItem,x.ArrayItem,x.EqnArrayItem,x.MstyleItem,x.EquationItem,MathJax._.input.tex.TexParser.default),k=MathJax._.input.tex.TexError.default,T=MathJax._.input.tex.ParseUtil,C=(T.KeyValueDef,T.KeyValueTypes,T.ParseUtil),b=MathJax._.core.MmlTree.MmlNode,v=(b.TEXCLASS,b.TEXCLASSNAMES,b.MATHVARIANTS,b.indentAttributes,b.AbstractMmlNode),O=(b.AbstractMmlTokenNode,b.AbstractMmlLayoutNode,b.AbstractMmlBaseNode,b.AbstractMmlEmptyNode,b.TextNode,b.XMLNode,MathJax._.input.tex.NodeUtil.default);class P extends A{get texParser(){return this.configuration.packageData.get("textmacros").texParser}get tags(){return this.texParser.tags}constructor(t,e,a,o){super(t,e,a),this.level=o}mml(){return this.copyLists(),this.configuration.popParser(),null!=this.level?this.create("node","mstyle",this.nodes,{displaystyle:!1,scriptlevel:this.level}):1===this.nodes.length?this.nodes[0]:this.create("node","mrow",this.nodes)}copyLists(){const t=this.texParser.configuration;for(const[e,a]of Object.entries(this.configuration.nodeLists))for(const o of a)t.addNode(e,o);this.configuration.nodeLists={}}Parse(){this.text="",this.nodes=[],this.envStack=[],super.Parse()}saveText(){if(this.text){const t=this.stack.env.mathvariant,e=C.internalText(this,this.text,t?{mathvariant:t}:{});this.text="",this.Push(e)}}Push(t){if(this.text&&this.saveText(),t instanceof g)return super.Push(t);t instanceof S?this.stack.env.mathcolor=this.stack.env.color:t instanceof v&&(this.addAttributes(t),this.nodes.push(t))}PushMath(t){const e=this.stack.env;for(const a of["mathsize","mathcolor"])e[a]&&!t.attributes.hasExplicit(a)&&(t.isToken||t.isKind("mstyle")||(t=this.create("node","mstyle",[t])),O.setAttribute(t,a,e[a]));t.isInferred&&(t=this.create("node","mrow",t.childNodes)),t.isKind("TeXAtom")||(t=this.create("node","TeXAtom",[t])),this.nodes.push(t)}addAttributes(t){const e=this.stack.env;if(t.isToken)for(const a of["mathsize","mathcolor","mathvariant"])e[a]&&!t.attributes.hasExplicit(a)&&O.setAttribute(t,a,e[a])}ParseTextArg(t,e){const a=this.GetArgument(t);return e=Object.assign(Object.assign({},this.stack.env),e),new P(a,e,this.configuration).mml()}ParseArg(t){return new P(this.GetArgument(t),this.stack.env,this.configuration).mml()}Error(t,e,...a){throw new k(t,e,...a)}}const y=MathJax._.util.Retries,I=(y.handleRetriesFor,y.retryAfter),R=MathJax._.input.tex.base.BaseMethods,E=(R.splitAlignArray,R.default),L={Comment(t,e){for(;t.i<t.string.length&&"\n"!==t.string.charAt(t.i);)t.i++;t.i++},Math(t,e){t.saveText();const a=t.i;let o,s,r=0;for(;s=t.GetNext();)switch(o=t.i++,s){case"\\":")"===t.GetCS()&&(s="\\(");case"$":if(0===r&&e===s){const e=t.texParser.configuration,s=new A(t.string.substring(a,o),t.stack.env,e).mml();return void t.PushMath(s)}break;case"{":r++;break;case"}":0===r&&t.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace"),r--}t.Error("MathNotTerminated","Math mode is not properly terminated")},MathModeOnly(t,e){t.Error("MathModeOnly","'%1' allowed only in math mode",e)},Misplaced(t,e){t.Error("Misplaced","Misplaced '%1'",e)},OpenBrace(t,e){const a=t.stack.env;t.envStack.push(a),t.stack.env=Object.assign({},a)},CloseBrace(t,e){t.envStack.length?(t.saveText(),t.stack.env=t.envStack.pop()):t.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace")},OpenQuote(t,e){t.string.charAt(t.i)===e?(t.text+="\u201c",t.i++):t.text+="\u2018"},CloseQuote(t,e){t.string.charAt(t.i)===e?(t.text+="\u201d",t.i++):t.text+="\u2019"},Tilde(t,e){t.text+="\xa0"},Space(t,e){t.text+=" ",t.GetNext()},SelfQuote(t,e){t.text+=e.substring(1)},Insert(t,e,a){t.text+=a},Accent(t,e,a){const o=t.ParseArg(e),s=t.create("token","mo",{},a);t.addAttributes(s),t.Push(t.create("node","mover",[o,s]))},Emph(t,e){const a="-tex-mathit"===t.stack.env.mathvariant?"normal":"-tex-mathit";t.Push(t.ParseTextArg(e,{mathvariant:a}))},TextFont(t,e,a){t.saveText(),t.Push(t.ParseTextArg(e,{mathvariant:a}))},SetFont(t,e,a){t.saveText(),t.stack.env.mathvariant=a},SetSize(t,e,a){t.saveText(),t.stack.env.mathsize=a},CheckAutoload(t,e){const a=t.configuration.packageData.get("autoload"),o=t.texParser;e=e.slice(1);const s=o.lookup(c.MACRO,e);if(!s||a&&s._func===a.Autoload){if(o.parse(c.MACRO,[o,e]),!s)return;I(Promise.resolve())}o.parse(c.MACRO,[t,e])},Macro:E.Macro,Spacer:E.Spacer,Hskip:E.Hskip,rule:E.rule,Rule:E.Rule,HandleRef:E.HandleRef,UnderOver:E.UnderOver,Lap:E.Lap,Phantom:E.Phantom,Smash:E.Smash,MmlToken:E.MmlToken},N=MathJax._.input.tex.TokenMap,w=(N.parseResult,N.AbstractTokenMap,N.RegExpMap,N.AbstractParseMap,N.CharacterMap,N.DelimiterMap,N.MacroMap),F=N.CommandMap,_=(N.EnvironmentMap,MathJax._.input.tex.TexConstants.TexConstant),H=MathJax._.util.lengths,J=(H.BIGDIMEN,H.UNITS,H.RELUNITS,H.MATHSPACE),D=(H.length2em,H.percent,H.em,H.px,_.Variant);new w("text-special",{$:L.Math,"%":L.Comment,"^":L.MathModeOnly,_:L.MathModeOnly,"&":L.Misplaced,"#":L.Misplaced,"~":L.Tilde," ":L.Space,"\t":L.Space,"\r":L.Space,"\n":L.Space,"\xa0":L.Tilde,"{":L.OpenBrace,"}":L.CloseBrace,"`":L.OpenQuote,"'":L.CloseQuote}),new F("text-macros",{"(":L.Math,$:L.SelfQuote,_:L.SelfQuote,"%":L.SelfQuote,"{":L.SelfQuote,"}":L.SelfQuote," ":L.SelfQuote,"&":L.SelfQuote,"#":L.SelfQuote,"\\":[L.Macro,"$\\\\$"],"'":[L.Accent,"\xb4"],"\u2019":[L.Accent,"\xb4"],"`":[L.Accent,"`"],"\u2018":[L.Accent,"`"],"^":[L.Accent,"^"],'"':[L.Accent,"\xa8"],"~":[L.Accent,"~"],"=":[L.Accent,"\xaf"],".":[L.Accent,"\u02d9"],u:[L.Accent,"\u02d8"],v:[L.Accent,"\u02c7"],emph:L.Emph,rm:[L.SetFont,D.NORMAL],mit:[L.SetFont,D.ITALIC],oldstyle:[L.SetFont,D.OLDSTYLE],cal:[L.SetFont,D.CALLIGRAPHIC],it:[L.SetFont,"-tex-mathit"],bf:[L.SetFont,D.BOLD],sf:[L.SetFont,D.SANSSERIF],tt:[L.SetFont,D.MONOSPACE],frak:[L.TextFont,D.FRAKTUR],Bbb:[L.TextFont,D.DOUBLESTRUCK],tiny:[L.SetSize,.5],Tiny:[L.SetSize,.6],scriptsize:[L.SetSize,.7],small:[L.SetSize,.85],normalsize:[L.SetSize,1],large:[L.SetSize,1.2],Large:[L.SetSize,1.44],LARGE:[L.SetSize,1.73],huge:[L.SetSize,2.07],Huge:[L.SetSize,2.49],textnormal:[L.Macro,"{\\rm #1}",1],textup:[L.Macro,"{\\rm #1}",1],textrm:[L.Macro,"{\\rm #1}",1],textit:[L.Macro,"{\\it #1}",1],textbf:[L.Macro,"{\\bf #1}",1],textsf:[L.Macro,"{\\sf #1}",1],texttt:[L.Macro,"{\\tt #1}",1],dagger:[L.Insert,"\u2020"],ddagger:[L.Insert,"\u2021"],S:[L.Insert,"\xa7"],AA:[L.Insert,"\u212b"],ldots:[L.Insert,"\u2026"],vdots:[L.Insert,"\u22ee"],",":[L.Spacer,J.thinmathspace],":":[L.Spacer,J.mediummathspace],">":[L.Spacer,J.mediummathspace],";":[L.Spacer,J.thickmathspace],"!":[L.Spacer,J.negativethinmathspace],enspace:[L.Spacer,.5],quad:[L.Spacer,1],qquad:[L.Spacer,2],thinspace:[L.Spacer,J.thinmathspace],negthinspace:[L.Spacer,J.negativethinmathspace],hskip:L.Hskip,hspace:L.Hskip,kern:L.Hskip,mskip:L.Hskip,mspace:L.Hskip,mkern:L.Hskip,rule:L.rule,Rule:[L.Rule],Space:[L.Rule,"blank"],color:L.CheckAutoload,textcolor:L.CheckAutoload,colorbox:L.CheckAutoload,fcolorbox:L.CheckAutoload,href:L.CheckAutoload,style:L.CheckAutoload,class:L.CheckAutoload,data:L.CheckAutoload,cssId:L.CheckAutoload,unicode:L.CheckAutoload,U:L.CheckAutoload,char:L.CheckAutoload,ref:[L.HandleRef,!1],eqref:[L.HandleRef,!0],underline:[L.UnderOver,"2015"],llap:L.Lap,rlap:L.Lap,phantom:L.Phantom,vphantom:[L.Phantom,1,0],hphantom:[L.Phantom,0,1],smash:L.Smash,mmlToken:L.MmlToken});const z=h.create("text-base",{[i.PARSER]:"text",[i.PRIORITY]:1,[i.HANDLER]:{[c.CHARACTER]:["command","text-special"],[c.MACRO]:["text-macros"]},[i.FALLBACK]:{[c.CHARACTER]:(t,e)=>{t.text+=e},[c.MACRO]:(t,e)=>{const a=t.texParser,o=a.lookup(c.MACRO,e);o&&o._func!==L.Macro&&t.Error("MathMacro","%1 is only supported in math mode","\\"+e),a.parse(c.MACRO,[t,e])}},[i.ITEMS]:{[M.prototype.kind]:M,[g.prototype.kind]:g,[f.prototype.kind]:f,[S.prototype.kind]:S}});function B(t,e,a,o){const s=t.configuration.packageData.get("textmacros");return t instanceof P||(s.texParser=t),s.parseOptions.clear(),[new P(e,o?{mathvariant:o}:{},s.parseOptions,a).mml()]}const j=h.create("textmacros",{[i.PRIORITY]:1,[i.CONFIG]:(t,e)=>{const a=new p(e.parseOptions.options.textmacros.packages,["tex","text"]);a.init();const o=new m(a,[]);o.options=e.parseOptions.options,a.config(e),d.addTags(a.tags),o.tags=d.getDefault(),o.tags.configuration=o,o.packageData=e.parseOptions.packageData,o.packageData.set("textmacros",{textConf:a,parseOptions:o,jax:e,texParser:null}),o.options.internalMath=B},[i.PREPROCESSORS]:[t=>{const e=t.data.packageData.get("textmacros");e.parseOptions.nodeFactory.setMmlFactory(e.jax.mmlFactory)}],[i.OPTIONS]:{textmacros:{packages:["text-base"]}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/textmacros","4.1.0","tex-extension"),r({_:{input:{tex:{textmacros:{TextMacrosConfiguration:o,TextMacrosMethods:a,TextParser:e}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var t={d:(e,n)=>{for(var a in n)t.o(n,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{UnicodeConfiguration:()=>w});const n=("undefined"!=typeof window?window:t.g).MathJax._.components.global,a=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),o=(n.MathJax,MathJax._.input.tex.HandlerTypes),i=o.ConfigurationType,r=o.HandlerType,c=MathJax._.input.tex.Configuration,s=c.Configuration,u=(c.ConfigurationHandler,c.ParserConfiguration,MathJax._.input.tex.TexError.default),l=MathJax._.input.tex.TokenMap,d=(l.parseResult,l.AbstractTokenMap,l.RegExpMap,l.AbstractParseMap,l.CharacterMap,l.DelimiterMap,l.MacroMap,l.CommandMap),h=(l.EnvironmentMap,MathJax._.input.tex.UnitUtil.UnitUtil),m=MathJax._.input.tex.NodeUtil.default,f=MathJax._.util.Entities,p=(f.options,f.entities,f.add,f.remove,f.translate,f.numeric),g=MathJax._.input.tex.base.BaseConfiguration,x=g.Other,M=(g.BaseTags,g.BaseConfiguration,{}),b={Unicode(t,e){const n=t.GetBrackets(e);let a=null,o="";if(n&&(n.replace(/ /g,"").match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)?(a=n.replace(/ /g,"").split(/,/),o=t.GetBrackets(e)||""):o=n),o.match(/;/))throw new u("BadFont","Font name for %1 can't contain semicolons",t.currentCS);const i=h.trimSpaces(t.GetArgument(e)).replace(/^0x/,"x");if(!i.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/))throw new u("BadUnicode","Argument to %1 must be a number",t.currentCS);const r=parseInt(i.match(/^x/)?"0"+i:i);M[r]?o||(o=M[r][2]):M[r]=[800,200,o,r],a&&(M[r][0]=Math.floor(1e3*parseFloat(a[0])),M[r][1]=Math.floor(1e3*parseFloat(a[1])));const c=t.stack.env.font,s={};o?(M[r][2]=s.fontfamily=o.replace(/'/g,"'"),c&&(c.match(/bold/)&&(s.fontweight="bold"),c.match(/italic|-mathit/)&&(s.fontstyle="italic"))):c&&(s.mathvariant=c);const l=t.create("token","mtext",s,p(i));m.setProperty(l,"unicode",!0),t.Push(l)},RawUnicode(t,e){const n=t.GetArgument(e).trim();if(!n.match(/^[0-9A-F]{1,6}$/))throw new u("BadRawUnicode","Argument to %1 must a hexadecimal number with 1 to 6 digits",t.currentCS);const a=parseInt(n,16);t.string=String.fromCodePoint(a)+t.string.substring(t.i),t.i=0},Char(t,e){let n;const a=t.GetNext();let o="";const i=t.string.substring(t.i);if("'"===a)n=i.match(/^'([0-7]{1,7}) ?/u),n&&(o=String.fromCodePoint(parseInt(n[1],8)));else if('"'===a)n=i.match(/^"([0-9A-F]{1,6}) ?/),n&&(o=String.fromCodePoint(parseInt(n[1],16)));else if("`"===a){if(n=i.match(/^`(?:(\\\S)|(.))/u),n)if(n[2])o=n[2];else{t.i+=2;const e=[...t.GetCS()];if(e.length>1)throw new u("InvalidAlphanumeric","Invalid alphanumeric constant for %1",t.currentCS);o=e[0],n=[""]}}else n=i.match(/^([0-9]{1,7}) ?/),n&&(o=String.fromCodePoint(parseInt(n[1])));if(!o)throw new u("MissingNumber","Missing numeric constant for %1",t.currentCS);t.i+=n[0].length,o>="0"&&o<="9"?t.Push(t.create("token","mn",{},o)):o.match(/[A-Za-z]/)?t.Push(t.create("token","mi",{},o)):x(t,o)}};new d("unicode",{unicode:b.Unicode,U:b.RawUnicode,char:b.Char});const w=s.create("unicode",{[i.HANDLER]:{[r.MACRO]:["unicode"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/unicode","4.1.0","tex-extension"),a({_:{input:{tex:{unicode:{UnicodeConfiguration:e}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{UnitsConfiguration:()=>f,UnitsMethods:()=>p});const n=("undefined"!=typeof window?window:t.g).MathJax._.components.global,i=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),a=(n.MathJax,MathJax._.input.tex.HandlerTypes),o=a.ConfigurationType,r=a.HandlerType,s=MathJax._.input.tex.Configuration,c=s.Configuration,u=(s.ConfigurationHandler,s.ParserConfiguration,MathJax._.input.tex.TexParser.default),l=MathJax._.input.tex.TokenMap,g=(l.parseResult,l.AbstractTokenMap,l.RegExpMap,l.AbstractParseMap,l.CharacterMap,l.DelimiterMap,l.MacroMap,l.CommandMap),p=(l.EnvironmentMap,{Unit(t,e){const n=t.GetBrackets(e);let i=`\\mathrm{${t.GetArgument(e)}}`;n&&(i=n+(t.options.units.loose?"~":"\\,")+i),t.string=i+t.string.slice(t.i),t.i=0},UnitFrac(t,e){const n=t.GetBrackets(e);let i=`\\nicefrac[\\mathrm]{${t.GetArgument(e)}}{${t.GetArgument(e)}}`;n&&(i=n+(t.options.units.loose?"~":"\\,")+i),t.string=i+t.string.slice(t.i),t.i=0},NiceFrac(t,e){const n=t.GetBrackets(e,"\\mathrm"),i=t.GetArgument(e),a=t.GetArgument(e),o=new u(`${n}{${i}}`,Object.assign({},t.stack.env),t.configuration).mml(),r=new u(`${n}{${a}}`,Object.assign({},t.stack.env),t.configuration).mml(),s=t.options.units.ugly?{}:{bevelled:!0},c=t.create("node","mfrac",[o,r],s);t.Push(c)}});new g("units",{units:p.Unit,unitfrac:p.UnitFrac,nicefrac:p.NiceFrac});const f=c.create("units",{[o.HANDLER]:{[r.MACRO]:["units"]},[o.OPTIONS]:{units:{loose:!1,ugly:!1}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/units","4.1.0","tex-extension"),i({_:{input:{tex:{units:{UnitsConfiguration:e}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={d:(a,t)=>{for(var p in t)e.o(t,p)&&!e.o(a,p)&&Object.defineProperty(a,p,{enumerable:!0,get:t[p]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};e.r(a),e.d(a,{UpgreekConfiguration:()=>l});const t=("undefined"!=typeof window?window:e.g).MathJax._.components.global,p=(t.GLOBAL,t.isObject,t.combineConfig,t.combineDefaults,t.combineWithMathJax),n=(t.MathJax,MathJax._.input.tex.HandlerTypes),o=n.ConfigurationType,i=n.HandlerType,r=MathJax._.input.tex.Configuration,u=r.Configuration,s=(r.ConfigurationHandler,r.ParserConfiguration,MathJax._.input.tex.TokenMap),c=(s.parseResult,s.AbstractTokenMap,s.RegExpMap,s.AbstractParseMap,s.CharacterMap),g=(s.DelimiterMap,s.MacroMap,s.CommandMap,s.EnvironmentMap,MathJax._.input.tex.TexConstants.TexConstant);new c("upgreek",(function(e,a){const t=a.attributes||{};t.mathvariant=g.Variant.NORMAL;const p=e.create("token","mi",t,a.char);e.Push(p)}),{upalpha:"\u03b1",upbeta:"\u03b2",upgamma:"\u03b3",updelta:"\u03b4",upepsilon:"\u03f5",upzeta:"\u03b6",upeta:"\u03b7",uptheta:"\u03b8",upiota:"\u03b9",upkappa:"\u03ba",uplambda:"\u03bb",upmu:"\u03bc",upnu:"\u03bd",upxi:"\u03be",upomicron:"\u03bf",uppi:"\u03c0",uprho:"\u03c1",upsigma:"\u03c3",uptau:"\u03c4",upupsilon:"\u03c5",upphi:"\u03d5",upchi:"\u03c7",uppsi:"\u03c8",upomega:"\u03c9",upvarepsilon:"\u03b5",upvartheta:"\u03d1",upvarpi:"\u03d6",upvarrho:"\u03f1",upvarsigma:"\u03c2",upvarphi:"\u03c6",Upgamma:"\u0393",Updelta:"\u0394",Uptheta:"\u0398",Uplambda:"\u039b",Upxi:"\u039e",Uppi:"\u03a0",Upsigma:"\u03a3",Upupsilon:"\u03a5",Upphi:"\u03a6",Uppsi:"\u03a8",Upomega:"\u03a9"});const l=u.create("upgreek",{[o.HANDLER]:{[i.MACRO]:["upgreek"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/upgreek","4.1.0","tex-extension"),p({_:{input:{tex:{upgreek:{UpgreekConfiguration:a}}}}})})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{VerbConfiguration:()=>b});const n=("undefined"!=typeof window?window:e.g).MathJax._.components.global,r=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),a=(n.MathJax,MathJax._.input.tex.HandlerTypes),i=a.ConfigurationType,o=a.HandlerType,s=MathJax._.input.tex.Configuration,c=s.Configuration,l=(s.ConfigurationHandler,s.ParserConfiguration,MathJax._.input.tex.TexConstants.TexConstant),u=MathJax._.input.tex.TokenMap,g=(u.parseResult,u.AbstractTokenMap,u.RegExpMap,u.AbstractParseMap,u.CharacterMap,u.DelimiterMap,u.MacroMap,u.CommandMap),p=(u.EnvironmentMap,MathJax._.input.tex.TexError.default);new g("verb",{verb:{Verb(e,t){const n=e.GetNext(),r=++e.i;if(""===n)throw new p("MissingArgFor","Missing argument for %1",t);for(;e.i<e.string.length&&e.string.charAt(e.i)!==n;)e.i++;if(e.i===e.string.length)throw new p("NoClosingDelim","Can't find closing delimiter for %1",e.currentCS);const a=e.string.slice(r,e.i).replace(/ /g,"\xa0");e.i++,e.Push(e.create("token","mtext",{mathvariant:l.Variant.MONOSPACE},a))}}.Verb});const b=c.create("verb",{[i.HANDLER]:{[o.MACRO]:["verb"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/verb","4.1.0","tex-extension"),r({_:{input:{tex:{verb:{VerbConfiguration:t}}}}})})();
|