first commit

This commit is contained in:
2025-12-22 12:20:15 +08:00
commit d77a09bdaa
1027 changed files with 54150 additions and 0 deletions

2
mathjax/.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1,2 @@
github: [numfocus]
custom: ['https://numfocus.org/donate-to-mathjax']

View File

@@ -0,0 +1,54 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Replace the text below with the details of the issue you are facing.
DO NOT simply erase the form and type a free-form response.**
-----
### Issue Summary
A summary of the issue and the browser/OS environment in which it occurs. If
suitable, include the steps required to reproduce the bug.
### Steps to Reproduce:
1. This is the first step
2. This is the second step
3. Further steps, etc.
Any other information you want to share that is relevant to the issue
being reported. Especially, why do you consider this to be a bug? What
do you expect to happen instead?
### Technical details:
* MathJax Version: 3.2
* Client OS: (e.g., Mac OS X 10.8.4)
* Browser: (e.g., Chrome 29.0.1547.57)
I am using the following MathJax configuration:
``` js
MathJax = {
...
};
```
and loading MathJax via
``` html
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
```
### Supporting information:
* Please supply a link to a (live) minimal example page, when possible.
* If your issue is with the display of the mathematics produced by MathJax, include a screen snapshot that illustrates the problem, when possible.
* Check your browser console window for any error messages, and include them here.
* Include the MathJax configuration you are using, and the script tag that loads MathJax itself.

View File

@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

34
mathjax/.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Release
on:
release:
types: [published]
jobs:
setup:
runs-on: ubuntu-latest
name: Build and publish MathJax
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
registry-url: 'https://registry.npmjs.org'
- name: Temp fix to publish
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
echo "always-auth=true" >> ~/.npmrc
- name: Publish to npmjs
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

2
mathjax/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.DS_Store

314
mathjax/CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,314 @@
# Contributing to MathJax
You are interested in giving us a hand? That's awesome! We've put
together some brief guidelines that should help you get started
quickly and easily.
There are lots and lots of ways to get involved, this document covers:
* [reporting an issue](#reporting-an-issue)
* [bug reports](#bug-reports)
* [feature requests](#feature-requests)
* [change requests](#change-requests)
* [working on MathJax core](#working-on-mathjax-core)
* [key branches and tags](#key-branches--tags)
* [submitting pull requests](#submitting-pull-requests)
* [testing and quality assurance](#testing-and-quality-assurance)
* [writing documentation](#writing-documentation)
* [translation](#translation)
* [Conduct](#conduct)
## Reporting An Issue
If you're about to raise an issue because you think you've found a
problem with MathJax, or you'd like to make a request for a new
feature in the codebase, or any other reason, please read this first.
The [MathJax issue
tracker](https://github.com/mathjax/MathJax/issues) is the
preferred channel for [bug reports](#bug-reports), [feature
requests](#feature-requests), [change requests](#change-requests), and
[submitting pull requests](#submitting-pull-requests), but please
respect the following restrictions:
* Please **search for existing issues**. Help us keep duplicate issues
to a minimum by checking to see if someone has already reported your
problem or requested your idea.
* Please **do not** use the issue tracker for personal support
requests (use [the MathJax User Group](https://groups.google.com/forum/#!forum/mathjax-users)).
* Please **be civil**. Keep the discussion on topic and respect the
opinions of others. See also our [Conduct Guidelines](#conduct)
### Bug Reports
A bug is a *demonstrable problem* that is caused by the code in the
repository. Good bug reports are extremely helpful &mdash; thank you!
Guidelines for bug reports:
1. **Use the GitHub issue search** &mdash; check if the issue has already been
reported.
2. **Check if the issue has been fixed** &mdash; look for [closed
issues in the current
milestone](https://github.com/mathjax/MathJax/issues?q=is%3Aclosed)
or try to reproduce it using the latest `develop` branch. Please
note that you will need to
[compile MathJax and make the components](https://docs.mathjax.org/en/latest/web/hosting.html#getting-mathjax-via-git)
in order to test MathJax from the source repository.
3. **Share a live sample of the problem** &mdash; without a live page
it is usually impossible to debug problems; see also the [Bug Report
Template](#template) below.
4. **Isolate the problem** &mdash; a live sample is a starting point
but if you want to speed things up, create a [reduced test
case](https://css-tricks.com/reduced-test-cases/). Be specific
about your setup (browser, OS versions, etc). Use services like
[jsbin](http://jsbin.com), [CodePen](http://codepen.io), or
[jsFiddle](http://jsfiddle.com) to make collaboration on minimal
test cases easier for everyone.
5. **Include a screenshot/cast as a last resort** &mdash; Is your
issue about a layout or design feature or bug that is hard to reproduce
or isolate? Then please provide a screenshot or screencast. Tools
like [LICEcap](http://www.cockos.com/licecap/) or
[SauceLabs](http://www.saucelabs.com) allow you to quickly and
easily record a screencasts. If you make it an animated gif, you can
embed it directly into your GitHub issue.
6. Use the [Bug Report Template](#template) below or [click this
link](https://github.com/MathJax/MathJax/issues/new?title=Bug%3A&body=%23%23%23%20Issue%20Summary%0A%0A%23%23%23%20Steps%20to%20Reproduce%0A%0A1.%20This%20is%20the%20first%20step%0A%0AThis%20is%20a%20bug%20because...%0A%0A%23%23%23%20Technical%20details%0A%0A*%20MathJax%20Version%3A%20master%20-%20latest%20commit%3A%20%20INSERT%20COMMIT%20REF%0A*%20Client%20OS%3A%20%0A*%20Browser%3A%20%0A*%20)
to start creating a bug report with the template automatically.
A good bug report shouldn't leave others needing to request
more information from you. Be sure to include the details of your environment.
<a id="template"></a>
Template Example ([click to use](https://github.com/MathJax/MathJax/issues/new?title=Bug%3A&body=%23%23%23%20Issue%20Summary%0A%0A%23%23%23%20Steps%20to%20Reproduce%0A%0A1.%20This%20is%20the%20first%20step%0A%0AThis%20is%20a%20bug%20because...%0A%0A%23%23%23%20Technical%20details%0A%0A*%20MathJax%20Version%3A%20master%20-%20latest%20commit%3A%20%20INSERT%20COMMIT%20REF%0A*%20Client%20OS%3A%20%0A*%20Browser%3A%20%0A*%20)):
```
Short and descriptive example bug report title
### Issue Summary
A summary of the issue and the browser/OS environment in which it occurs. If
suitable, include the steps required to reproduce the bug.
### Steps to Reproduce
1. This is the first step
2. This is the second step
3. Further steps, etc.
Any other information you want to share that is relevant to the issue
being reported. Especially, why do you consider this to be a bug? What
do you expect to happen instead?
### Technical details:
* MathJax Version: 2.3 (latest commit: f3aaf3a2a3e964df2770dc4aaaa9c87ce5f47e2c)
* Client OS: Mac OS X 10.8.4
* Browser: Chrome 29.0.1547.57
```
### Feature Requests
Feature requests are welcome. Before you submit one, be sure to have:
1. **Used the GitHub search** to check that the feature hasn't already
been requested.
2. Take a moment to think about whether your idea fits with the scope
and aims of the project, or if it might better fit being a [custom
extension](https://github.com/mathjax/MathJax-third-party-extensions).
3. Remember, it's up to *you* to make a strong case to convince the
project's leaders of the merits of this feature. Please provide as
much detail and context as possible, this means explaining the use
case and why it is likely to be common.
### Change Requests
Change requests cover both architectural and functional changes to how
MathJax works. If you have an idea for a new or different dependency,
a refactor, or an improvement to a feature, etc., please be sure to:
1. **Use the GitHub search** to check that someone else didn't get there first.
2. Take a moment to think about the best way to make a case for, and
explain what you're thinking. Are you sure this shouldn't really be
a [bug report](#bug-reports) or a [feature
request](#feature-requests)? Is it really one idea or is it many?
What's the context? What problem are you solving? Why is what you
are suggesting better than what's already there?
## Working on MathJax core
You want to contribute code? We describe how below. First, note that
the MathJax source code is in the
<https://github.com/mathjax/MathJax-src> repository, not the
<https://github.com/mathjax/MathJax> repository, which contains the
packaged component files for distribution on CDNs and the [mathjax npm
package](https://www.npmjs.com/package/mathjax) (the source code is
included in the [mathjax-full npm
package](https://www.npmjs.com/package/mathjax-full)).
### Key Branches & Tags
MathJax uses several permanent branches in the [MathJax source repository](https://github.com/mathjax/MathJax-src):
- **[develop](https://github.com/mathjax/MathJax-src/tree/develop)**
is the development branch. All work on the next release happens here
so you should generally branch off `develop` if you are going to
submit a pull request. Do **NOT** use this branch for a production
site.
- **[master](https://github.com/mathjax/MathJax-src)** contains the latest
release of MathJax. This branch may be used in production. Do
**NOT** use this branch to work on MathJax's source.
These branches reflect version 3 of MathJax, which is substantially
different from the version 2 codebase. Version 2 will continue to be
maintained while web sites transition to version 3, with work being
done using the following branches in the [MathJax distribution
repository](https://github.com/mathjax/MathJax):
- **[legacy-v2-develop](https://github.com/mathjax/MathJax/tree/legacy-v2-develop)**
is the development branch for changes to the legacy version 2 code.
Any pull requests for version 2 should be branched from here. Do
**NOT** use this branch for a production site.
- **[legacy-v2](https://github.com/mathjax/MathJax/tree/legacy-v2)**
is the branch that contains any updates to version 2 following
the release of version 3. Do **NOT** use this branch to work on
MathJax's source.
In addition to these branches, MathJax uses tags to identify the
various versions. These can be checked out to obtain the specified
release; for example, `git checkout 2.7.5` would get you the files for
version 2.7.5 of MathJax.
Note that version 3 is written in Typescript, and so must be compiled
to obtain usable javascript files, and that the components need to be
built once that is done. See the
[documentation](https://docs.mathjax.org/en/latest/web/hosting.html#getting-mathjax-via-git)
for details. For version 2, the source javascript files are not
compressed until a release is made, so you should use the copies in
the `unpacked` directory during development.
### Submitting Pull Requests
Pull requests are welcome. If you're looking to submit a PR for
something that doesn't have an open issue, please consider [raising an
issue](#reporting-an-issue) that your PR can close, especially if
you're fixing a bug. This makes it more likely that there will be
enough information available for your PR to be properly tested and
merged.
##### Need Help?
If you're not completely clear on how to submit/update/*do* Pull
Requests, please check out our [source control
policies](https://github.com/mathjax/MathJax/wiki/Source-control-policies). For
more insights, check the excellent in depth [Git Workflow
guide](https://github.com/TryGhost/Ghost/wiki/Git-Workflow) from
Ghost, in particular
* [Ghost Workflow guide: commit messages](https://github.com/TryGhost/Ghost/wiki/Git-workflow#commit-messages)
### Testing and Quality Assurance
If you're
looking to get involved with the code base and don't know where to
start, checking out and testing a pull request is one of the most
useful things you could do.
These are some [excellent
instructions](https://gist.github.com/piscisaureus/3342247) on
configuring your GitHub repository to allow you to checkout pull
requests in the same way as branches.
### Writing documentation
MathJax's main documentation can be found at [docs.mathjax.org](http://docs.mathjax.org).
The source of the docs is hosted in the
[mathjax/MathJax-docs](http://github.com/mathjax/MathJax-docs) repo here on GitHub.
The documentation is generated using
[Sphinx-doc](http://sphinx-doc.org/) and hosted on [Read the
docs](http://readthedocs.org). You can clone the repo and submit pull
requests following the [pull-request](#submitting-pull-requests)
guidelines.
### Translation
If you wish to add or update translations of MathJax, please do it on
[TranslateWiki.net](https://translatewiki.net/w/i.php?title=Special:Translate&group=out-mathjax-0-all)
(and while you're there you can help other open source projects,
too).
For bug reports and other questions that don't fit on
TranslateWiki.net, head over to the
[mathjax/mathjax-i18n](https://github.com/mathjax/MathJax-i18n)
repository.
The translation files currently are for version 2, as localization
hasn't been added to version 3 yet.
## Conduct
As a NumFOCUS fiscally sponsored project, MathJax is governed by the
[NumFOCUS code of conduct](https://numfocus.org/code-of-conduct),
which we summarize as follows:
We are committed to providing a friendly, safe and welcoming
environment for all, regardless of gender, sexual orientation,
disability, ethnicity, religion, or similar personal characteristic.
Please be kind and courteous. There's no need to be mean or rude.
Respect that people have differences of opinion and that every design
or implementation choice carries a trade-off and numerous costs. There
is seldom a right answer, merely an optimal answer given a set of
values and circumstances.
Please keep unstructured critique to a minimum. If you have solid
ideas you want to experiment with, make a fork and see how it works.
We will exclude you from interaction if you insult, demean or harass
anyone. That is not welcome behaviour. We interpret the term
"harassment" as including the definition in the [Unacceptable
Behavior](https://numfocus.org/code-of-conduct#unacceptable-behavior)
section of the [NumFOCUS code of
conduct](https://numfocus.org/code-of-conduct); if you have any lack
of clarity about what might be included in that concept, please read
that definition. In particular, we don't tolerate behavior that
excludes people in socially marginalized groups.
Private harassment is also unacceptable. No matter who you are, if you
feel you have been or are being harassed or made uncomfortable by a
community member, please contact one of the channel ops or any of the
[MathJax](https://github.com/MathJax/MathJax) core team
immediately. Whether you're a regular contributor or a newcomer, we
care about making this community a safe place for you and we've got
your back.
Likewise any spamming, trolling, flaming, baiting, or other
attention-stealing behaviour is not welcome.
We also recommend that you read [discourse's
rules](http://blog.discourse.org/2013/03/the-universal-rules-of-civilized-discourse/)
for further suggestions on appropriate behavior.
## References
* We heavily borrowed from Mozilla and Ghost -- thank you!
* <https://github.com/TryGhost/Ghost/blob/master/CONTRIBUTING.md>
* <https://github.com/mozilla/rust/wiki/Note-development-policy>
* <https://github.com/jden/CONTRIBUTING.md/blob/master/CONTRIBUTING.md>
* <http://blog.discourse.org/2013/03/the-universal-rules-of-civilized-discourse/>

202
mathjax/LICENSE Normal file
View File

@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

257
mathjax/README.md Normal file
View File

@@ -0,0 +1,257 @@
# MathJax
## Beautiful math in all browsers
![GitHub release version](https://img.shields.io/github/v/release/mathjax/MathJax-src.svg?sort=semver)
![GitHub release version (v3)](https://img.shields.io/github/package-json/v/mathjax/MathJax/legacy-v3.svg?label=release-v3)
![GitHub release version (v2)](https://img.shields.io/github/package-json/v/mathjax/MathJax/legacy-v2.svg?label=release-v2)
![NPM version](https://img.shields.io/npm/v/mathjax.svg?style=flat)
![jsdelivr rank](https://flat.badgen.net/jsdelivr/rank/npm/mathjax?color=green)
![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hm/mathjax)
![npm monthly downloads (full)](https://img.shields.io/npm/dm/mathjax?label=npm)
![npm total downloads](https://img.shields.io/npm/dt/mathjax.svg?style=flat&label=npm%20total)
MathJax is an open-source JavaScript display engine for LaTeX, MathML,
and AsciiMath notation that works in all modern browsers, with
built-in support for assistive technology like screen readers,
including automatic speech generation and an expression explorer that
can be used to investigate typeset mathematics on a more granular
level than the complete expression. It requires no setup on the part
of the user (no plugins to download or software to install), so the
page author can write web documents that include mathematics and be
confident that users will be able to view it naturally and easily.
Simply include MathJax and some mathematics in a web page, and MathJax
does the rest.
Some of the main features of MathJax include:
- High-quality display of LaTeX, MathML, and AsciiMath notation in HTML pages
- Supported in most browsers with no plug-ins, extra fonts, or special
setup for the reader
- Easy for authors, flexible for publishers, extensible for developers
- Supports math accessibility, cut-and-paste interoperability, and other
advanced functionality
- Powerful API for integration with other web applications
See <http://www.mathjax.org/> for additional details about MathJax,
and <https://docs.mathjax.org> for the MathJax documentation.
## MathJax Components
MathJax uses files called *components* that contain the
various MathJax modules that you can include in your web pages or
access on a server through NodeJS. Some components combine all the
pieces you need to run MathJax with one or more input formats and a
particular output format, while other components are pieces that can
be loaded on demand when needed, or by a configuration that specifies
the pieces you want to combine in a custom way. For usage
instructions, see the [MathJax documentation](https://docs.mathjax.org).
Components provide a convenient packaging of MathJax's modules, but it
is possible for you to form your own custom components, or to use
MathJax's modules directly in a node application on a server. There
are [web examples](https://github.com/mathjax/MathJax-demos-web)
showing how to use MathJax in web pages and how to build your own
components, and [node
examples](https://github.com/mathjax/MathJax-demos-node) illustrating
how to use components in node applications or call MathJax modules
directly.
## What's in this Repository
This repository contains only the component files for MathJax, not the
source code for MathJax (which are available in a separate [MathJax
source repository](https://github.com/mathjax/MathJax-src/)). These
component files are the ones served by the CDNs that offer MathJax to
the web. In version 2, the files used on the web were also the source
files for MathJax, but in version 3 and above, the source files are no
longer on the CDN, as they are not what are run in the browser.
The components are ES6 format as CommonJS modules.
## Installation and Use
### Using MathJax components from a CDN on the web
If you are loading MathJax from a CDN into a web page, there is no
need to install anything. Simply use a `script` tag that loads
MathJax from the CDN. E.g.,
``` html
<script src="https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js" defer></script>
```
See the [MathJax
documentation](https://docs.mathjax.org/en/latest/index.html#browser-components)
and the [MathJax Web Demos](https://github.com/mathjax/MathJax-demos-web), and the [MathJax
Node Demos](https://github.com/mathjax/MathJax-demos-node) for more
information.
### Hosting your own copy of the MathJax Components
If you want to host MathJax from your own server, you can do so by
installing the `mathjax` package using `npm` and moving the contents
to an appropriate location on your server:
```
npm install mathjax@4
mv node_modules/mathjax <path-to-server-location>/mathjax
```
Alternatively, you can get the files via GitHub:
```
git clone https://github.com/mathjax/MathJax.git mathjax
mv mathjax <path-to-server-location>/mathjax
rm -rf mathjax
```
Then (in either case) you can use a script tag like the following:
``` html
<script src="<url-to-your-site>/mathjax/tex-chtml.js" defer></script>
```
where `<url-to-your-site>` is replaced by the URL to the location
where you moved the MathJax files above.
See the
[documentation](https://docs.mathjax.org/en/latest/web/hosting.html)
for details.
### Using MathJax components in a node application
To use MathJax components in a node application, install the `mathjax`
package:
``` bash
npm install mathjax@4
```
Then import `mathjax` within your application and initialize it:
``` js
import MathJax from 'mathjax';
await MathJax.init({ ... });
```
where `{ ... }` is the MathJax configuration you want to use. E.g.,
``` js
import MathJax from 'mathjax';
await MathJax.init({
loader: {load: ['input/tex', 'output/svg']}
});
const svg = await MathJax.tex2svgPromise('\\frac{1}{x^2-1}', {display: true});
console.log(MathJax.startup.adaptor.outerHTML(svg));
```
Alternatively, in an ES5 node application, you can use
```js
const MathJax = require('mathjax');
MathJax.init({ ... }).then(() => { ... });
```
where the first `{ ... }` is a MathJax configuration, and the second
`{ ... }` is the code to run after MathJax has been loaded. E.g.
```js
const MathJax = require('mathjax');
MathJax.init({
loader: {load: ['input/tex', 'output/svg']}
}).then(() => {
const svg = MathJax.tex2svg('\\frac{1}{x^2-1}', {display: true});
console.log(MathJax.startup.adaptor.outerHTML(svg));
}).catch((err) => console.log(err.message));
```
**Note:** the technique in the two examples above is for node-based
application only, not for browser applications. This method sets up
an alternative DOM implementation, which you don't need in the
browser, and it depends on node and the local file system in other
ways. This setup will not work properly in the browser, even if you
webpack it or use some other bundler.
See the
[documentation](https://docs.mathjax.org/en/latest/index.html#server-nodejs)
and the [MathJax Node
Repository](https://github.com/mathjax/MathJax-demos-node) for more details.
## Reducing the Size of the Components Directory
Since the MathJax package contains *all* the component files, so if
you are only planning one use one configuration, you can reduce the
size of the MathJax directory by removing unused components. For
example, if you are using the `tex-chtml.js` component, then you can
remove the `tex-mml-chtml.js`, `tex-svg.js`, `tex-mml-svg.js`, and the
files ending in `-nofont.js`, which will save considerable space.
Indeed, you should be able to remove everything other than
`tex-chtml.js`, and the `input/tex/extensions`, `adaptors`, `a11y`,
and `sre` directories. If you are using the results only on the web,
you can remove `adaptors` as well. If you are using MathML input
rather than TeX (e.g., `mml-chtml.js` rather than `tex-chtml.js`),
then you can remove `input/tex/extensions` as well.
If you are using a font other than the default `mathjax-newcm` font in
a node application, then you will need to install that font as well.
E.g.,
``` bash
npm install @mathjax/mathjax-stix2-font@4
```
to install the `mathjax-stix2` font locally. On the web, MathJax will
look for the font and its dynamic ranges on the `cdn.jsdelivr.net` CDN
service, so if you want to use the font from your own server, you will
need to configure the path to the font. For example:
``` js
MathJax = {
loader: {
paths: {
'mathjax-stix2': '<url-to-your-server>/mathjax-stix2-font'
}
}
};
```
to set the location for the `mathjax-stix2` font to a URL on your server.
## The Component Files and Pull Requests
The contents of this repository are generated automatically, so you
should not submit pull requests that modify this repository. If you
wish to submit a modification to MathJax, you should make a pull
request in the [MathJax source
repository](https://github.com/mathjax/MathJax-src).
## MathJax Community
The main MathJax website is <http://www.mathjax.org>, and it includes
announcements and other important information. A [MathJax user
forum](http://groups.google.com/group/mathjax-users) for asking
questions and getting assistance is hosted at Google, and the [MathJax
bug tracker](https://github.com/mathjax/MathJax/issues) is hosted
at GitHub.
Before reporting a bug, please check that it has not already been
reported. Also, please use the bug tracker (rather than the help
forum) for reporting bugs, and use the user's forum (rather than the
bug tracker) for questions about how to use MathJax.
## MathJax Resources
* [MathJax Documentation](https://docs.mathjax.org)
* [MathJax Components](https://github.com/mathjax/MathJax)
* [MathJax Source Code](https://github.com/mathjax/MathJax-src)
* [MathJax Web Examples](https://github.com/mathjax/MathJax-demos-web)
* [MathJax Node Examples](https://github.com/mathjax/MathJax-demos-node)
* [MathJax Bug Tracker](https://github.com/mathjax/MathJax/issues)
* [MathJax Users' Group](http://groups.google.com/group/mathjax-users)

View File

@@ -0,0 +1 @@
(()=>{"use strict";var t={d:(e,s)=>{for(var i in s)t.o(s,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:s[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AssistiveMmlHandler:()=>M,AssistiveMmlMathDocumentMixin:()=>h,AssistiveMmlMathItemMixin:()=>d,LimitedMmlVisitor:()=>c});const s=("undefined"!=typeof window?window:global).MathJax._.components.global,i=(s.GLOBAL,s.isObject,s.combineConfig,s.combineDefaults),o=s.combineWithMathJax,a=(s.MathJax,MathJax._.core.MathItem),n=(a.protoItem,a.AbstractMathItem,a.STATE),r=a.newState,l=MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor,p=MathJax._.util.Options,m=(p.isObject,p.APPEND,p.REMOVE,p.OPTIONS,p.Expandable,p.expandable);p.makeArray,p.keys,p.copy,p.insert,p.defaultOptions,p.userOptions,p.selectOptions,p.selectOptionsFromKeys,p.separateOptions,p.lookup;class c extends l{getAttributes(t){return super.getAttributes(t).replace(/ ?id=".*?"/,"")}}function d(t){return class extends t{assistiveMml(t,e=!1){if(!(this.state()>=n.ASSISTIVEMML)){if(!this.isEscaped&&(t.options.enableAssistiveMml||e)){const e=t.adaptor,s=t.toMML(this.root).replace(/\n */g,"").replace(/<!--.*?-->/g,""),i=e.firstChild(e.body(e.parse(s,"text/html"))),o=e.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[i]);e.setAttribute(e.firstChild(this.typesetRoot),"aria-hidden","true"),e.setStyle(this.typesetRoot,"position","relative"),e.append(this.typesetRoot,o)}this.state(n.ASSISTIVEMML)}}}}function h(t){var e;return(e=class extends t{constructor(...t){super(...t);const e=this.constructor,s=e.ProcessBits;s.has("assistive-mml")||s.allocate("assistive-mml"),this.visitor=new c(this.mmlFactory),this.options.MathItem=d(this.options.MathItem),"addStyles"in this&&this.addStyles(e.assistiveStyles)}toMML(t){return this.visitor.visitTree(t)}assistiveMml(){if(!this.processed.isSet("assistive-mml")){for(const t of this.math)t.assistiveMml(this);this.processed.set("assistive-mml")}return this}state(t,e=!1){return super.state(t,e),t<n.ASSISTIVEMML&&this.processed.clear("assistive-mml"),this}}).OPTIONS=Object.assign(Object.assign({},t.OPTIONS),{enableAssistiveMml:!0,renderActions:m(Object.assign(Object.assign({},t.OPTIONS.renderActions),{assistiveMml:[n.ASSISTIVEMML]}))}),e.assistiveStyles={"mjx-assistive-mml":{position:"absolute !important",top:"0px",left:"0px",bottom:"0px",right:"0px",clip:"rect(1px, 1px, 1px, 1px)","clip-path":"polygon(0 0, 0 1px, 1px 1px, 1px 0)",padding:"1px 0px 0px 0px !important",border:"0px !important",display:"block !important",width:"auto !important",overflow:"hidden !important","text-indent":"0px ! important","-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},'mjx-assistive-mml[display="block"]':{width:"100% !important"}},e}function M(t){return t.documentClass=h(t.documentClass),t}r("ASSISTIVEMML",153),MathJax.loader&&MathJax.loader.checkVersion("a11y/assistive-mml","4.0.0","a11y"),o({_:{a11y:{"assistive-mml":e}}}),MathJax.startup&&(MathJax.config.options&&!1!==MathJax.config.options.enableAssistiveMml&&i(MathJax.config,"options",{menuOptions:{settings:{assistiveMml:!0}}}),MathJax.startup.extendHandler((t=>M(t))))})();

File diff suppressed because one or more lines are too long

1
mathjax/a11y/explorer.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(()=>{"use strict";var t={d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{EnrichHandler:()=>f,EnrichedMathDocumentMixin:()=>M,EnrichedMathItemMixin:()=>u,enrichVisitor:()=>p});const i=("undefined"!=typeof window?window:global).MathJax._.components.global,n=(i.GLOBAL,i.isObject,i.combineConfig,i.combineDefaults,i.combineWithMathJax),s=(i.MathJax,MathJax._.core.MathItem),r=(s.protoItem,s.AbstractMathItem,s.STATE),a=s.newState,o=MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor,c=MathJax._.util.Options,h=(c.isObject,c.APPEND,c.REMOVE,c.OPTIONS,c.Expandable,c.expandable),l=(c.makeArray,c.keys,c.copy,c.insert,c.defaultOptions,c.userOptions,c.selectOptions,c.selectOptionsFromKeys,c.separateOptions,c.lookup,MathJax._.a11y.sre_ts),d=(l.locales,l.setupEngine),m=(l.engineSetup,l.toEnriched);l.parseDOM,l.addPreference,l.fromPreference,l.toPreference;a("ENRICHED",r.COMPILED+10);class p extends o{visitTree(t,e){this.mactionId=0;const i=super.visitTree(t);return this.mactionId&&(e.inputData.hasMaction=!0),i}visitHtmlNode(t,e){return t.getSerializedXML()}visitMactionNode(t,e){const[i,n]=0===t.childNodes.length?["",""]:["\n",e],s=this.childNodeMml(t,e+" ",i);let r=this.getAttributes(t);if("toggle"===t.attributes.get("actiontype")){const e=++this.mactionId;t.setProperty("mactionId",e),r=` data-maction-id="${e}" selection="${t.attributes.get("selection")}"`+r.replace(/ selection="\d+"/,"").replace(/ data-maction-id="\d+"/,"")}return`${e}<maction${r}>`+(s.match(/\S/)?i+s+n:"")+"</maction>"}}function u(t,e,i){return class extends t{constructor(){super(...arguments),this.toMathML=i}serializeMml(t){if("outerHTML"in t)return t.outerHTML;if("undefined"!=typeof Element&&"undefined"!=typeof window&&t instanceof Element){const e=window.document.createElement("div");return e.appendChild(t),e.innerHTML}return t.toString()}enrich(t,i=!1){if(!(this.state()>=r.ENRICHED)){if(!this.isEscaped&&(t.options.enableEnrichment||i)){const i=new t.options.MathItem("",e);try{let e;e=this.inputData.originalMml?this.adjustSelections():this.inputData.originalMml=this.toMathML(this.root,this);const n=m(e);this.inputData.enrichedMml=i.math=this.serializeMml(n),i.math=i.math.replace(/ role="treeitem"/g,' data-speech-node="true"').replace(/ aria-(?:posinset|owns|setsize)=".*?"/g,""),i.display=this.display,i.compile(t),this.root=i.root}catch(e){t.options.enrichError(t,this,e)}}this.state(r.ENRICHED)}}toEnriched(t){return this.serializeMml(m(t))}unEnrich(t){const i=this.inputData.originalMml;if(!i)return;const n=new t.options.MathItem("",e);n.math=i,n.display=this.display,n.compile(t),this.root=n.root}adjustSelections(){const t=this.inputData.originalMml;if(!this.inputData.hasMaction)return t;const e=[];return this.root.walkTree((t=>{t.isKind("maction")&&(e[t.attributes.get("data-maction-id")]=t)})),t.replace(/(data-maction-id="(\d+)" selection=)"\d+"/g,((t,i,n)=>`${i}"${e[n].attributes.get("selection")}"`))}}}function M(t,e){var i;return(i=class extends t{constructor(...t){super(...t),e.setMmlFactory(this.mmlFactory);const i=this.constructor.ProcessBits;i.has("enriched")||i.allocate("enriched");const n=new p(this.mmlFactory);this.options.MathItem=u(this.options.MathItem,e,((t,e)=>n.visitTree(t,e)))}enrich(){if(!this.processed.isSet("enriched")){if(this.options.enableEnrichment){d(this.options.sre);for(const t of this.math)t.enrich(this)}this.processed.set("enriched")}return this}enrichError(t,e,i){console.warn("Enrichment error:",i)}state(t,e=!1){if(super.state(t,e),t<r.ENRICHED&&(this.processed.clear("enriched"),t>=r.COMPILED))for(const t of this.math)t.unEnrich(this);return this}}).OPTIONS=Object.assign(Object.assign({},t.OPTIONS),{enableEnrichment:!0,enrichError:(t,e,i)=>t.enrichError(t,e,i),renderActions:h(Object.assign(Object.assign({},t.OPTIONS.renderActions),{enrich:[r.ENRICHED]})),sre:h({speech:"none",locale:"en",domain:"clearspeak",style:"default",braille:"nemeth",structure:!0,aria:!0})}),i}function f(t,e){return e.setAdaptor(t.adaptor),t.documentClass=M(t.documentClass,e),t}MathJax.loader&&MathJax.loader.checkVersion("a11y/semantic-enrich","4.0.0","a11y"),n({_:{a11y:{"semantic-enrich":e}}});const E=MathJax._.input.mathml_ts.MathML;MathJax.startup&&MathJax.startup.extendHandler((t=>f(t,new E({allowHtmlInTokenNodes:!0}))))})();

1
mathjax/a11y/speech.js Normal file

File diff suppressed because one or more lines are too long

1
mathjax/a11y/sre.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +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]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{JsdomAdaptor:()=>u,jsdomAdaptor:()=>h});const o=("undefined"!=typeof window?window:global).MathJax._.components.global,n=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults,o.combineWithMathJax),r=(o.MathJax,MathJax._.adaptors.HTMLAdaptor.HTMLAdaptor),a=MathJax._.util.Options,s=(a.isObject,a.APPEND,a.REMOVE,a.OPTIONS,a.Expandable,a.expandable,a.makeArray,a.keys,a.copy,a.insert,a.defaultOptions),i=a.userOptions,d=(a.selectOptions,a.selectOptionsFromKeys,a.separateOptions,a.lookup,MathJax._.util.AsyncLoad.asyncLoad);var c=function(t,e,o,n){return new(o||(o=Promise))((function(r,a){function s(t){try{d(n.next(t))}catch(t){a(t)}}function i(t){try{d(n.throw(t))}catch(t){a(t)}}function d(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(s,i)}d((n=n.apply(t,e||[])).next())}))};const p={badCSS:!0,badSizes:!0};class u extends(function(t,e={}){var o;return e=i(s({},p),e),(o=class extends t{constructor(...t){super(t[0]),this.canMeasureNodes=!1;const e=this.constructor;this.options=i(s({},e.OPTIONS),t[1])}fontSize(t){return e.badCSS?this.options.fontSize:super.fontSize(t)}fontFamily(t){return e.badCSS?this.options.fontFamily:super.fontFamily(t)}nodeSize(t,n=1,r=null){if(!e.badSizes)return super.nodeSize(t,n,r);const a=this.textContent(t),s=Array.from(a.replace(o.cjkPattern,"")).length;return[(Array.from(a).length-s)*this.options.cjkCharWidth+s*this.options.unknownCharWidth,this.options.unknownCharHeight]}nodeBBox(t){return e.badSizes?{left:0,right:0,top:0,bottom:0}:super.nodeBBox(t)}createWorker(t,e){return c(this,void 0,void 0,(function*(){const{Worker:o}=yield d("node:worker_threads");const{path:n,maps:r}=e,a=`${n}/${e.worker}`,s=new class{constructor(t,e={}){this.worker=new o(t,e)}addEventListener(t,e){this.worker.on(t,e)}postMessage(t){this.worker.postMessage({data:t})}terminate(){this.worker.terminate()}}(a,{type:"module",workerData:{maps:r}});return s.addEventListener("message",t),s}))}}).OPTIONS=Object.assign(Object.assign({},e.badCSS?{fontSize:16,fontFamily:"Times"}:{}),e.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),o.cjkPattern=new RegExp(["[","\u1100-\u115f","\u2329\u232a","\u2e80-\u303e","\u3040-\u3247","\u3250-\u4dbf","\u4e00-\ua4c6","\ua960-\ua97c","\uac00-\ud7a3","\uf900-\ufaff","\ufe10-\ufe19","\ufe30-\ufe6b","\uff01-\uff60\uffe0-\uffe6","\u{1b000}-\u{1b001}","\u{1f200}-\u{1f251}","\u{20000}-\u{3fffd}","]"].join(""),"gu"),o}(r)){}function h(t,e=null){return new u((new t).window,e)}MathJax.loader&&MathJax.loader.checkVersion("adaptors/jsdom","4.0.0","adaptors"),n({_:{adaptors:{jsdomAdaptor:e}}}),MathJax.startup&&(MathJax.startup.registerConstructor("jsdomAdaptor",(t=>h(MathJax.config.JSDOM,t))),MathJax.startup.useAdaptor("jsdomAdaptor",!0))})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{LinkedomAdaptor:()=>h,linkedomAdaptor:()=>p});const n=("undefined"!=typeof window?window:global).MathJax._.components.global,o=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),r=(n.MathJax,MathJax._.adaptors.HTMLAdaptor.HTMLAdaptor),a=MathJax._.util.Options,s=(a.isObject,a.APPEND,a.REMOVE,a.OPTIONS,a.Expandable,a.expandable,a.makeArray,a.keys,a.copy,a.insert,a.defaultOptions),i=a.userOptions,d=(a.selectOptions,a.selectOptionsFromKeys,a.separateOptions,a.lookup,MathJax._.util.AsyncLoad.asyncLoad);var c=function(t,e,n,o){return new(n||(n=Promise))((function(r,a){function s(t){try{d(o.next(t))}catch(t){a(t)}}function i(t){try{d(o.throw(t))}catch(t){a(t)}}function d(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,i)}d((o=o.apply(t,e||[])).next())}))};const u={badCSS:!0,badSizes:!0};class h extends(function(t,e={}){var n;return e=i(s({},u),e),(n=class extends t{constructor(...t){super(t[0]),this.canMeasureNodes=!1;const e=this.constructor;this.options=i(s({},e.OPTIONS),t[1])}fontSize(t){return e.badCSS?this.options.fontSize:super.fontSize(t)}fontFamily(t){return e.badCSS?this.options.fontFamily:super.fontFamily(t)}nodeSize(t,o=1,r=null){if(!e.badSizes)return super.nodeSize(t,o,r);const a=this.textContent(t),s=Array.from(a.replace(n.cjkPattern,"")).length;return[(Array.from(a).length-s)*this.options.cjkCharWidth+s*this.options.unknownCharWidth,this.options.unknownCharHeight]}nodeBBox(t){return e.badSizes?{left:0,right:0,top:0,bottom:0}:super.nodeBBox(t)}createWorker(t,e){return c(this,void 0,void 0,(function*(){const{Worker:n}=yield d("node:worker_threads");const{path:o,maps:r}=e,a=`${o}/${e.worker}`,s=new class{constructor(t,e={}){this.worker=new n(t,e)}addEventListener(t,e){this.worker.on(t,e)}postMessage(t){this.worker.postMessage({data:t})}terminate(){this.worker.terminate()}}(a,{type:"module",workerData:{maps:r}});return s.addEventListener("message",t),s}))}}).OPTIONS=Object.assign(Object.assign({},e.badCSS?{fontSize:16,fontFamily:"Times"}:{}),e.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),n.cjkPattern=new RegExp(["[","\u1100-\u115f","\u2329\u232a","\u2e80-\u303e","\u3040-\u3247","\u3250-\u4dbf","\u4e00-\ua4c6","\ua960-\ua97c","\uac00-\ud7a3","\uf900-\ufaff","\ufe10-\ufe19","\ufe30-\ufe6b","\uff01-\uff60\uffe0-\uffe6","\u{1b000}-\u{1b001}","\u{1f200}-\u{1f251}","\u{20000}-\u{3fffd}","]"].join(""),"gu"),n}(r)){parse(t,e="text/html"){return t.match(/^(?:\s|\n)*</)||(t="<html>"+t+"</html>"),this.parser.parseFromString(t,e)}serializeXML(t){return this.outerHTML(t)}}function p(t,e=null){const n=t("<html></html>");return n.HTMLCollection=class{},n.Text.prototype.splitText=function(t){const e=this.data;if(t>e.length)throw Error("Index Size Error");const o=n.document.createTextNode(e.substring(t));return this.parentNode.insertBefore(o,this.nextSibling),this.data=e.substring(0,t),o},new h(n,e)}MathJax.loader&&MathJax.loader.checkVersion("adaptors/linkedom","4.0.0","adaptors"),o({_:{adaptors:{linkedomAdaptor:e}}}),MathJax.startup&&(MathJax.startup.registerConstructor("linkedomAdaptor",(t=>p(MathJax.config.LINKEDOM,t))),MathJax.startup.useAdaptor("linkedomAdaptor",!0))})();

File diff suppressed because one or more lines are too long

11
mathjax/bower.json Normal file
View File

@@ -0,0 +1,11 @@
{
"name": "MathJax",
"main": "./MathJax.js",
"homepage": "http://www.mathjax.org/",
"ignore": [
"**/.*",
"node_modules",
"components"
],
"keywords": ["math", "js", "LaTeX", "MathML", "AsciiMath"]
}

14
mathjax/composer.json Normal file
View File

@@ -0,0 +1,14 @@
{
"name": "mathjax/mathjax",
"type": "library",
"description": "MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers.",
"keywords": ["math", "js", "LaTeX", "MathML", "AsciiMath"],
"homepage": "http://www.mathjax.org/",
"license": "Apache-2.0",
"authors": [
{
"name": "MathJax Consortium",
"homepage": "https://github.com/mathjax"
}
]
}

1
mathjax/core.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
mathjax/input/mml.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
mathjax/input/tex.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +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]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{ActionConfiguration:()=>h,ActionMethods:()=>d});const a=("undefined"!=typeof window?window:global).MathJax._.components.global,o=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),n=(a.MathJax,MathJax._.input.tex.HandlerTypes),i=n.ConfigurationType,r=n.HandlerType,c=MathJax._.input.tex.Configuration,p=c.Configuration,l=(c.ConfigurationHandler,c.ParserConfiguration,MathJax._.input.tex.TexParser.default),s=MathJax._.input.tex.TokenMap,g=(s.parseResult,s.AbstractTokenMap,s.RegExpMap,s.AbstractParseMap,s.CharacterMap,s.DelimiterMap,s.MacroMap,s.CommandMap),u=(s.EnvironmentMap,MathJax._.input.tex.base.BaseMethods),M=(u.splitAlignArray,u.default),d={Toggle(t,e){const a=[];let o;for(;"\\endtoggle"!==(o=t.GetArgument(e));)a.push(new l(o,t.stack.env,t.configuration).mml());t.Push(t.create("node","maction",a,{actiontype:"toggle"}))},Mathtip(t,e){const a=t.ParseArg(e),o=t.ParseArg(e);t.Push(t.create("node","maction",[a,o],{actiontype:"tooltip"}))},Macro:M.Macro};new g("action-macros",{toggle:d.Toggle,mathtip:d.Mathtip,texttip:[d.Macro,"\\mathtip{#1}{\\text{#2}}",2]});const h=p.create("action",{[i.HANDLER]:{[r.MACRO]:["action-macros"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/action","4.0.0","tex-extension"),o({_:{input:{tex:{action:{ActionConfiguration:e}}}}})})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={d:(t,a)=>{for(var n in a)e.o(a,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:a[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>x});var a={};e.r(a),e.d(a,{AmsCdConfiguration:()=>A});const n=("undefined"!=typeof window?window:global).MathJax._.components.global,o=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),r=(n.MathJax,MathJax._.input.tex.HandlerTypes),i=r.ConfigurationType,s=r.HandlerType,c=MathJax._.input.tex.Configuration,m=c.Configuration,d=(c.ConfigurationHandler,c.ParserConfiguration,MathJax._.input.tex.TokenMap),l=(d.parseResult,d.AbstractTokenMap,d.RegExpMap,d.AbstractParseMap,d.CharacterMap,d.DelimiterMap,d.MacroMap),p=d.CommandMap,h=d.EnvironmentMap,u=MathJax._.input.tex.ParseMethods.default,g=MathJax._.input.tex.TexParser.default,f=MathJax._.input.tex.base.BaseConfiguration,w=f.Other,C=(f.BaseTags,f.BaseConfiguration,MathJax._.core.MmlTree.MmlNode),M=C.TEXCLASS,y=(C.TEXCLASSNAMES,C.MATHVARIANTS,C.indentAttributes,C.AbstractMmlNode,C.AbstractMmlTokenNode,C.AbstractMmlLayoutNode,C.AbstractMmlBaseNode,C.AbstractMmlEmptyNode,C.TextNode,C.XMLNode,MathJax._.input.tex.NodeUtil.default),b={CD(e,t){e.Push(t);const a=e.itemFactory.create("array"),n=e.configuration.options.amscd;return a.setProperties({minw:e.stack.env.CD_minw||n.harrowsize,minh:e.stack.env.CD_minh||n.varrowsize}),a.arraydef={columnalign:"center",columnspacing:n.colspace,rowspacing:n.rowspace,displaystyle:!0},a},arrow(e,t){const a=e.string.charAt(e.i);if(!a.match(/[><VA.|=]/))return w(e,t);e.i++;let n=e.stack.Top();n.isKind("array")&&!n.Size()||(b.cell(e,t),n=e.stack.Top());const o=n,r=o.table.length%2==1;let i,s=(o.row.length+(r?0:1))%2;for(;s;)b.cell(e,t),s--;const c={minsize:o.getProperty("minw"),stretchy:!0},m={minsize:o.getProperty("minh"),stretchy:!0,symmetric:!0,lspace:0,rspace:0};if("|"===a)i=e.create("token","mo",m,"\u2225");else if("="===a)i=e.create("token","mo",c,"=");else if("."!==a){const n={">":"\u2192","<":"\u2190",V:"\u2193",A:"\u2191"}[a];let r=e.GetUpTo(t+a,a);const s=e.GetUpTo(t+a,a);if(">"===a||"<"===a){i=e.create("token","mo",c,n),r||(r="\\kern "+o.getProperty("minw"));const t={width:"+.67em",lspace:".33em"};i=e.create("node","munderover",[i]);const a=new g(r,e.stack.env,e.configuration).mml(),m=e.create("node","mpadded",[a],t);if(y.setAttribute(m,"voffset",".1em"),y.setChild(i,i.over,m),s){const a=new g(s,e.stack.env,e.configuration).mml();y.setChild(i,i.under,e.create("node","mpadded",[a],t))}e.configuration.options.amscd.hideHorizontalLabels&&(i=e.create("node","mpadded",[i],{depth:0,height:".67em"}))}else{const t=e.create("token","mo",m,n);i=t,(r||s)&&(i=e.create("node","mrow"),r&&y.appendChildren(i,[new g("\\scriptstyle\\llap{"+r+"}",e.stack.env,e.configuration).mml()]),t.texClass=M.ORD,y.appendChildren(i,[t]),s&&y.appendChildren(i,[new g("\\scriptstyle\\rlap{"+s+"}",e.stack.env,e.configuration).mml()]))}}i&&e.Push(i),b.cell(e,t)},cell(e,t){const a=e.stack.Top();(a.table||[]).length%2==0&&0===(a.row||[]).length&&e.Push(e.create("node","mpadded",[],{height:"8.5pt",depth:"2pt"})),e.Push(e.itemFactory.create("cell").setProperties({isEntry:!0,name:t}))},minCDarrowwidth(e,t){e.stack.env.CD_minw=e.GetDimen(t)},minCDarrowheight(e,t){e.stack.env.CD_minh=e.GetDimen(t)}},x=b;new h("amscd_environment",u.environment,{CD:x.CD}),new p("amscd_macros",{minCDarrowwidth:x.minCDarrowwidth,minCDarrowheight:x.minCDarrowheight}),new l("amscd_special",{"@":x.arrow});const A=m.create("amscd",{[i.HANDLER]:{[s.CHARACTER]:["amscd_special"],[s.MACRO]:["amscd_macros"],[s.ENVIRONMENT]:["amscd_environment"]},[i.OPTIONS]:{amscd:{colspace:"5pt",rowspace:"5pt",harrowsize:"2.75em",varrowsize:"1.75em",hideHorizontalLabels:!1}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/amscd","4.0.0","tex-extension"),o({_:{input:{tex:{amscd:{AmsCdConfiguration:a,AmsCdMethods:t}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var o={d:(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o:(o,e)=>Object.prototype.hasOwnProperty.call(o,e),r:o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}},e={};o.r(e),o.d(e,{AutoloadConfiguration:()=>C});const t=("undefined"!=typeof window?window:global).MathJax._.components.global,a=(t.GLOBAL,t.isObject,t.combineConfig,t.combineDefaults,t.combineWithMathJax),n=(t.MathJax,MathJax._.input.tex.HandlerTypes),r=n.ConfigurationType,i=n.HandlerType,s=MathJax._.input.tex.Configuration,c=s.Configuration,l=(s.ConfigurationHandler,s.ParserConfiguration,MathJax._.input.tex.TokenMap),p=(l.parseResult,l.AbstractTokenMap,l.RegExpMap,l.AbstractParseMap,l.CharacterMap,l.DelimiterMap,l.MacroMap,l.CommandMap),u=(l.EnvironmentMap,MathJax._.input.tex.Token),d=(u.Token,u.Macro),f=MathJax._.input.tex.require.RequireConfiguration,b=f.RequireLoad,x=(f.RequireMethods,f.options,f.RequireConfiguration),m=MathJax._.components.package,g=(m.PackageError,m.Package),h=MathJax._.util.Options,M=(h.isObject,h.APPEND,h.REMOVE,h.OPTIONS,h.Expandable,h.expandable),O=(h.makeArray,h.keys,h.copy,h.insert,h.defaultOptions);h.userOptions,h.selectOptions,h.selectOptionsFromKeys,h.separateOptions,h.lookup;function y(o,e,t,a){if(g.packages.has(o.options.require.prefix+t)){const n=o.options.autoload[t],[r,i]=2===n.length&&Array.isArray(n[0])?n:[n,[]];for(const o of r)k.remove(o);for(const o of i)w.remove(o);o.string=(a?e+" ":"\\begin{"+e.slice(1)+"}")+o.string.slice(o.i),o.i=0}b(o,t)}const k=new p("autoload-macros",{}),w=new p("autoload-environments",{}),C=c.create("autoload",{[r.HANDLER]:{[i.MACRO]:["autoload-macros"],[i.ENVIRONMENT]:["autoload-environments"]},[r.OPTIONS]:{autoload:M({action:["toggle","mathtip","texttip"],amscd:[[],["CD"]],bbox:["bbox"],boldsymbol:["boldsymbol"],braket:["bra","ket","braket","set","Bra","Ket","Braket","Set","ketbra","Ketbra"],bussproofs:[[],["prooftree"]],cancel:["cancel","bcancel","xcancel","cancelto"],color:["color","definecolor","textcolor","colorbox","fcolorbox"],enclose:["enclose"],extpfeil:["xtwoheadrightarrow","xtwoheadleftarrow","xmapsto","xlongequal","xtofrom","Newextarrow"],html:["data","href","class","style","cssId"],mhchem:["ce","pu"],newcommand:["newcommand","renewcommand","newenvironment","renewenvironment","def","let"],unicode:["unicode","U","char"],verb:["verb"]})},[r.CONFIG]:function(o,e){const t=e.parseOptions,a=t.handlers.get(i.MACRO),n=t.handlers.get(i.ENVIRONMENT),r=t.options.autoload;t.packageData.set("autoload",{Autoload:y});for(const o of Object.keys(r)){const e=r[o],[t,i]=2===e.length&&Array.isArray(e[0])?e:[e,[]];for(const e of t)a.lookup(e)&&"color"!==e||k.add(e,new d(e,y,[o,!0]));for(const e of i)n.lookup(e)||w.add(e,new d(e,y,[o,!1]))}t.packageData.get("require")||x.config(o,e)},[r.INIT]:function(o){o.options.require||O(o.options,x.options)},[r.PRIORITY]:10});MathJax.loader&&MathJax.loader.checkVersion("[tex]/autoload","4.0.0","tex-extension"),a({_:{input:{tex:{autoload:{AutoloadConfiguration:e}}}}})})();

View File

@@ -0,0 +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]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{BbmConfiguration:()=>x,BbmMethods:()=>c});const a=("undefined"!=typeof window?window:global).MathJax._.components.global,o=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults),n=a.combineWithMathJax,b=(a.MathJax,MathJax._.input.tex.HandlerTypes),i=b.ConfigurationType,r=b.HandlerType,s=MathJax._.input.tex.Configuration,m=s.Configuration,d=(s.ConfigurationHandler,s.ParserConfiguration,MathJax._.input.tex.TokenMap),l=(d.parseResult,d.AbstractTokenMap,d.RegExpMap,d.AbstractParseMap,d.CharacterMap,d.DelimiterMap,d.MacroMap,d.CommandMap),h=(d.EnvironmentMap,MathJax._.input.tex.base.BaseMethods),p=(h.splitAlignArray,h.default),c={ChooseFont(t,e,a,o){p.MathFont(t,e,t.options.bbm.bold?o:a)},ChangeBold(t,e){const a=t.GetArgument(e);t.options.bbm.bold="bold"===a},MathFont:p.MathFont};new l("bbm",{mathversion:c.ChangeBold,mathbbm:[c.ChooseFont,"-bbm-normal","-bbm-bold"],mathbbmss:[c.ChooseFont,"-bbm-sans-serif","-bbm-sans-serif-bold"],mathbbmtt:[c.MathFont,"-bbm-monospace"]});const x=m.create("bbm",{[i.HANDLER]:{[r.MACRO]:["bbm"]},[i.OPTIONS]:{bbm:{bold:!1}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/bbm","4.0.0","tex-extension"),n({_:{input:{tex:{bbm:{BbmConfiguration:e}}}}});const M=MathJax._.util.context,u=M.hasWindow;M.context;!function(t,e,a=`@mathjax/${e}`){if(MathJax.loader){const n=u?`https://cdn.jsdelivr.net/npm/${a}`:a,b=e.replace(/-font-extension$/,"-extension"),i=MathJax.config?.startup?.output||"chtml";o(MathJax.config.loader,"paths",{[b]:n}),o(MathJax.config.loader,"dependencies",{[`[${b}]/${i}`]:[`output/${i}`]}),MathJax.loader.addPackageData(t,{extraLoads:[`[${b}]/${i}`],rendererExtensions:[b]})}}("[tex]/bbm","mathjax-bbm-font-extension")})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={d:(t,o)=>{for(var a in o)e.o(o,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:o[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{BboxConfiguration:()=>b});const o=("undefined"!=typeof window?window:global).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,l=MathJax._.input.tex.Configuration,p=l.Configuration,c=(l.ConfigurationHandler,l.ParserConfiguration,MathJax._.input.tex.TokenMap),s=(c.parseResult,c.AbstractTokenMap,c.RegExpMap,c.AbstractParseMap,c.CharacterMap,c.DelimiterMap,c.MacroMap,c.CommandMap),d=(c.EnvironmentMap,MathJax._.input.tex.TexError.default),x={BBox(e,t){const o=e.GetBrackets(t,"");let a=e.ParseArg(t);const n=o.split(/,/);let i,r,l;for(let e=0,o=n.length;e<o;e++){const o=n[e].trim(),a=o.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/);if(a){if(i)throw new d("MultipleBBoxProperty","%1 specified twice in %2","Padding",t);const e=a[1]+a[3];e&&(i={height:"+"+e,depth:"+"+e,lspace:e,width:"+"+2*parseInt(a[1],10)+a[3]})}else if(o.match(/^([a-z0-9]+|#[0-9a-f]{6}|#[0-9a-f]{3})$/i)){if(r)throw new d("MultipleBBoxProperty","%1 specified twice in %2","Background",t);r=o}else if(o.match(/^[-a-z]+:/i)){if(l)throw new d("MultipleBBoxProperty","%1 specified twice in %2","Style",t);l=o}else if(""!==o)throw new d("InvalidBBoxProperty",'"%1" doesn\'t look like a color, a padding dimension, or a style',o)}i&&(a=e.create("node","mpadded",[a],i)),(r||l)&&(i={},r&&Object.assign(i,{mathbackground:r}),l&&Object.assign(i,{style:l}),a=e.create("node","mstyle",[a],i)),e.Push(a)}};new s("bbox",{bbox:x.BBox});const b=p.create("bbox",{[i.HANDLER]:{[r.MACRO]:["bbox"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/bbox","4.0.0","tex-extension"),a({_:{input:{tex:{bbox:{BboxConfiguration:t}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={d:(o,t)=>{for(var a in t)e.o(t,a)&&!e.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:t[a]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{BegingroupStack:()=>R,begingroupStack:()=>O});var t={};e.r(t),e.d(t,{BegingroupMethods:()=>T});var a={};e.r(a),e.d(a,{BegingroupConfiguration:()=>C});const n=("undefined"!=typeof window?window:global).MathJax._.components.global,i=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),r=(n.MathJax,MathJax._.input.tex.HandlerTypes),s=r.ConfigurationType,g=r.HandlerType,l=MathJax._.input.tex.Configuration,p=l.Configuration,u=(l.ConfigurationHandler,l.ParserConfiguration,MathJax._.input.tex.TokenMap),d=(u.parseResult,u.AbstractTokenMap,u.RegExpMap,u.AbstractParseMap,u.CharacterMap,u.DelimiterMap),b=(u.MacroMap,u.CommandMap),h=u.EnvironmentMap,M=MathJax._.input.tex.MapHandler,E=M.MapHandler,c=(M.SubHandler,M.SubHandlers,MathJax._.input.tex.TexError.default),N=MathJax._.input.tex.newcommand.NewcommandUtil,f=N.NewcommandTables,x=N.NewcommandPriority,m=(N.NewcommandUtil,MathJax._.input.tex.ParseMethods.default);class R{constructor(e){this.i=x,this.top=x,this.base=x,this.MARKER=Symbol("marker"),this.handlers=e.handlers,this.getGlobal()}getGlobal(){this.global={[f.NEW_DELIMITER]:E.getMap(f.NEW_DELIMITER),[f.NEW_ENVIRONMENT]:E.getMap(f.NEW_ENVIRONMENT),[f.NEW_COMMAND]:E.getMap(f.NEW_COMMAND)}}checkGlobal(e,o){for(const t of o){const o=e.shift(),a=this.handlers.get(R.handlerMap[t]);let n;this.global[t].add(o,this.MARKER);do{const e=a.applicable(o);n=e.lookup(o),e.remove(o)}while(n&&n!==this.MARKER)}return o.map((e=>this.global[e]))}push(){new d(f.NEW_DELIMITER,m.delimiter,{}),new b(f.NEW_COMMAND,{}),new h(f.NEW_ENVIRONMENT,m.environment,{}),this.handlers.add(R.handlerConfig,{},--this.i)}pop(){if(this.i===this.base)throw new c("MissingBegingroup","Missing \\begingroup or extra \\endgroup");this.handlers.remove(R.handlerConfig,{});for(const e of[f.NEW_COMMAND,f.NEW_ENVIRONMENT,f.NEW_DELIMITER])E.register(this.handlers.retrieve(e));this.i++}finish(){this.top=this.i}remove(){for(;this.i<this.top;)this.pop()}reset(){this.top=this.base,this.remove()}sandbox(){this.base=x,this.reset(),this.push(),this.getGlobal(),this.base=x-1}}function O(e){return e.packageData.get("begingroup").stack}R.handlerConfig={[g.DELIMITER]:[f.NEW_DELIMITER],[g.ENVIRONMENT]:[f.NEW_ENVIRONMENT],[g.MACRO]:[f.NEW_DELIMITER,f.NEW_COMMAND]},R.handlerMap={[f.NEW_DELIMITER]:g.DELIMITER,[f.NEW_ENVIRONMENT]:g.ENVIRONMENT,[f.NEW_COMMAND]:g.MACRO};const _=MathJax._.input.tex.base.BaseMethods,I=(_.splitAlignArray,_.default),T={begingroup(e,o){O(e.configuration).push()},endgroup(e,o){O(e.configuration).pop()},reset(e,o){O(e.configuration).reset()},sandbox(e,o){O(e.configuration).sandbox(),e.stack.global.isSandbox=!0},global(e,o){const t=e.i,a="\\"===e.GetNext()?(e.i++,e.GetCS()):"";if(e.i=t,!e.options.begingroup.allowGlobal.includes(a))throw new c("IllegalGlobal","Invalid use of %1",e.currentCS);e.stack.env.isGlobal=!0},macro:I.Macro};new b("begingroup",{begingroup:T.begingroup,endgroup:T.endgroup,global:T.global,gdef:[T.macro,"\\global\\def"],begingroupReset:T.reset,begingroupSandbox:T.sandbox}),new b("begingroup",{begingroup:T.begingroup,endgroup:T.endgroup,global:T.global,gdef:[T.macro,"\\global\\def"],begingroupReset:T.reset,begingroupSandbox:T.sandbox});const C=p.create("begingroup",{[s.HANDLER]:{[g.MACRO]:["begingroup"]},[s.CONFIG]:(e,o)=>{o.parseOptions.packageData.set("begingroup",{stack:new R(o.parseOptions)})},[s.OPTIONS]:{begingroup:{allowGlobal:["let","def","newcommand","DeclareMathOperator","Newextarrow"]}},[s.PREPROCESSORS]:[({data:e})=>O(e).remove()],[s.POSTPROCESSORS]:[({data:e})=>O(e).finish()]});MathJax.loader&&MathJax.loader.checkVersion("[tex]/begingroup","4.0.0","tex-extension"),i({_:{input:{tex:{begingroup:{BegingroupConfiguration:a,BegingroupMethods:t,BegingroupStack:o}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var t={d:(o,e)=>{for(var a in e)t.o(e,a)&&!t.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:e[a]})},o:(t,o)=>Object.prototype.hasOwnProperty.call(t,o),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},o={};t.r(o),t.d(o,{BoldsymbolConfiguration:()=>M,BoldsymbolMethods:()=>u,createBoldToken:()=>m,rewriteBoldTokens:()=>f});const e=("undefined"!=typeof window?window:global).MathJax._.components.global,a=(e.GLOBAL,e.isObject,e.combineConfig,e.combineDefaults,e.combineWithMathJax),n=(e.MathJax,MathJax._.input.tex.HandlerTypes),r=n.ConfigurationType,i=n.HandlerType,l=MathJax._.input.tex.Configuration,s=l.Configuration,d=(l.ConfigurationHandler,l.ParserConfiguration,MathJax._.input.tex.NodeUtil.default),b=MathJax._.input.tex.TexConstants.TexConstant,c=MathJax._.input.tex.TokenMap,p=(c.parseResult,c.AbstractTokenMap,c.RegExpMap,c.AbstractParseMap,c.CharacterMap,c.DelimiterMap,c.MacroMap,c.CommandMap),x=(c.EnvironmentMap,MathJax._.input.tex.NodeFactory.NodeFactory),y={};y[b.Variant.NORMAL]=b.Variant.BOLD,y[b.Variant.ITALIC]=b.Variant.BOLDITALIC,y[b.Variant.FRAKTUR]=b.Variant.BOLDFRAKTUR,y[b.Variant.SCRIPT]=b.Variant.BOLDSCRIPT,y[b.Variant.SANSSERIF]=b.Variant.BOLDSANSSERIF,y["-tex-calligraphic"]="-tex-bold-calligraphic",y["-tex-oldstyle"]="-tex-bold-oldstyle",y["-tex-mathit"]=b.Variant.BOLDITALIC;const u={Boldsymbol(t,o){const e=t.stack.env.boldsymbol;t.stack.env.boldsymbol=!0;const a=t.ParseArg(o);t.stack.env.boldsymbol=e,t.Push(a)}};function m(t,o,e,a){const n=x.createToken(t,o,e,a);return"mtext"!==o&&t.configuration.parser.stack.env.boldsymbol&&(d.setProperty(n,"fixBold",!0),t.configuration.addNode("fixBold",n)),n}function f(t){for(const o of t.data.getList("fixBold"))if(d.getProperty(o,"fixBold")){const t=d.getAttribute(o,"mathvariant");d.setAttribute(o,"mathvariant",y[t]||t),d.removeProperties(o,"fixBold")}}new p("boldsymbol",{boldsymbol:u.Boldsymbol});const M=s.create("boldsymbol",{[r.HANDLER]:{[i.MACRO]:["boldsymbol"]},[r.NODES]:{token:m},[r.POSTPROCESSORS]:[f]});MathJax.loader&&MathJax.loader.checkVersion("[tex]/boldsymbol","4.0.0","tex-extension"),a({_:{input:{tex:{boldsymbol:{BoldsymbolConfiguration:o}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={d:(t,r)=>{for(var a in r)e.o(r,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:r[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{BraketItem:()=>x});var r={};e.r(r),e.d(r,{default:()=>S});var a={};e.r(a),e.d(a,{BraketConfiguration:()=>v});const o=("undefined"!=typeof window?window:global).MathJax._.components.global,s=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults,o.combineWithMathJax),n=(o.MathJax,MathJax._.input.tex.HandlerTypes),i=n.ConfigurationType,c=n.HandlerType,l=MathJax._.input.tex.Configuration,h=l.Configuration,p=(l.ConfigurationHandler,l.ParserConfiguration,MathJax._.input.tex.StackItem),M=(p.MmlStack,p.BaseItem),d=MathJax._.core.MmlTree.MmlNode,m=d.TEXCLASS,u=(d.TEXCLASSNAMES,d.MATHVARIANTS,d.indentAttributes,d.AbstractMmlNode,d.AbstractMmlTokenNode,d.AbstractMmlLayoutNode,d.AbstractMmlBaseNode,d.AbstractMmlEmptyNode,d.TextNode,d.XMLNode,MathJax._.input.tex.ParseUtil),b=(u.KeyValueDef,u.KeyValueTypes,u.ParseUtil),g=MathJax._.util.lengths,k=(g.BIGDIMEN,g.UNITS,g.RELUNITS,g.MATHSPACE),y=(g.length2em,g.percent,g.em),f=(g.px,y(k.thinmathspace));class x extends M{constructor(){super(...arguments),this.barNodes=[]}get kind(){return"braket"}get isOpen(){return!0}checkItem(e){return e.isKind("close")?e.getProperty("braketbar")?(this.barNodes.push(...super.toMml(!0,!0).childNodes),this.Clear(),M.fail):[[this.factory.create("mml",this.toMml())],!0]:e.isKind("mml")?(this.Push(e.toMml()),this.getProperty("single")?[[this.toMml()],!0]:M.fail):super.checkItem(e)}toMml(e=!0,t){let r=super.toMml(e,t);if(!e)return r;const a=this.getProperty("open"),o=this.getProperty("close");if(this.barNodes.length&&(r=this.create("node","inferredMrow",[...this.barNodes,r])),this.getProperty("stretchy"))return this.getProperty("space")&&(r=this.create("node","inferredMrow",[this.create("token","mspace",{width:f}),r,this.create("token","mspace",{width:f})])),b.fenced(this.factory.configuration,a,r,o);const s={fence:!0,stretchy:!1,symmetric:!0,texClass:m.OPEN},n=this.create("token","mo",s,a);s.texClass=m.CLOSE;const i=this.create("token","mo",s,o);return this.create("node","mrow",[n,r,i],{open:a,close:o})}}const P=MathJax._.input.tex.TokenMap,A=(P.parseResult,P.AbstractTokenMap,P.RegExpMap,P.AbstractParseMap,P.CharacterMap,P.DelimiterMap,P.MacroMap),C=P.CommandMap,B=(P.EnvironmentMap,MathJax._.input.tex.base.BaseMethods),N=(B.splitAlignArray,B.default),T=MathJax._.input.tex.TexError.default,S={Braket(e,t,r,a,o,s,n=!1){const i=e.GetNext();if(""===i)throw new T("MissingArgFor","Missing argument for %1",e.currentCS);let c=!0;"{"===i&&(e.i++,c=!1);const l=e.itemFactory.create("braket");l.setProperties({barcount:0,barmax:s,open:r,close:a,stretchy:o,single:c,space:n}),e.Push(l),l.env.braketItem=e.stack.height-1},Bar(e,t){let r="|"===t?"|":"\u2016";const a=e.stack.height-e.stack.env.braketItem,o=e.stack.Top(a);if(!o||!o.isKind("braket")||o.getProperty("barcount")>=o.getProperty("barmax"))return!1;if("|"===r&&"|"===e.GetNext()&&(e.i++,r="\u2016"),!o.getProperty("stretchy")){const t=e.create("token","mo",{stretchy:!1,"data-braketbar":!0,texClass:m.ORD},r);return e.Push(t),!0}const s=e.itemFactory.create("close").setProperty("braketbar",!0);return e.Push(s),o.barNodes.push(e.create("node","TeXAtom",[],{texClass:m.CLOSE}),e.create("token","mo",{stretchy:!0,"data-braketbar":!0,texClass:m.BIN},r),e.create("node","TeXAtom",[],{texClass:m.OPEN})),o.setProperty("barcount",o.getProperty("barcount")+1),!0},Macro:N.Macro};new C("Braket-macros",{bra:[S.Macro,"{\\langle {#1} \\vert}",1],ket:[S.Macro,"{\\vert {#1} \\rangle}",1],braket:[S.Braket,"\u27e8","\u27e9",!1,1/0],set:[S.Braket,"{","}",!1,1],Bra:[S.Macro,"{\\left\\langle {#1} \\right\\vert}",1],Ket:[S.Macro,"{\\left\\vert {#1} \\right\\rangle}",1],Braket:[S.Braket,"\u27e8","\u27e9",!0,1/0],Set:[S.Braket,"{","}",!0,1,!0],ketbra:[S.Macro,"{\\vert {#1} \\rangle\\langle {#2} \\vert}",2],Ketbra:[S.Macro,"{\\left\\vert {#1} \\right\\rangle\\left\\langle {#2} \\right\\vert}",2],"|":S.Bar}),new A("Braket-characters",{"|":S.Bar});const v=h.create("braket",{[i.HANDLER]:{[c.CHARACTER]:["Braket-characters"],[c.MACRO]:["Braket-macros"]},[i.ITEMS]:{[x.prototype.kind]:x},[i.PRIORITY]:3});MathJax.loader&&MathJax.loader.checkVersion("[tex]/braket","4.0.0","tex-extension"),s({_:{input:{tex:{braket:{BraketConfiguration:a,BraketItems:t,BraketMethods:r}}}}})})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={d:(t,a)=>{for(var n in a)e.o(a,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:a[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{CancelConfiguration:()=>A,CancelMethods:()=>O});const a=("undefined"!=typeof window?window:global).MathJax._.components.global,n=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),o=(a.MathJax,MathJax._.input.tex.HandlerTypes),c=o.ConfigurationType,i=o.HandlerType,r=MathJax._.input.tex.Configuration,l=r.Configuration,s=(r.ConfigurationHandler,r.ParserConfiguration,MathJax._.input.tex.TexConstants.TexConstant),p=MathJax._.input.tex.TokenMap,u=(p.parseResult,p.AbstractTokenMap,p.RegExpMap,p.AbstractParseMap,p.CharacterMap,p.DelimiterMap,p.MacroMap,p.CommandMap),d=(p.EnvironmentMap,MathJax._.input.tex.ParseUtil),M=(d.KeyValueDef,d.KeyValueTypes,d.ParseUtil),x=MathJax._.input.tex.enclose.EncloseConfiguration,C=x.ENCLOSE_OPTIONS,O=(x.EncloseMethods,x.EncloseConfiguration,{Cancel(e,t,a){const n=e.GetBrackets(t,""),o=e.ParseArg(t),c=M.keyvalOptions(n,C);c.notation=a,e.Push(e.create("node","menclose",[o],c))},CancelTo(e,t){const a=e.GetBrackets(t,"");let n=e.ParseArg(t);const o=e.ParseArg(t),c=M.keyvalOptions(a,C);c.notation=[s.Notation.UPDIAGONALSTRIKE,s.Notation.UPDIAGONALARROW,s.Notation.NORTHEASTARROW].join(" "),n=e.create("node","mpadded",[n],{depth:"-.1em",height:"+.1em",voffset:".1em"}),e.Push(e.create("node","msup",[e.create("node","menclose",[o],c),n]))}});new u("cancel",{cancel:[O.Cancel,s.Notation.UPDIAGONALSTRIKE],bcancel:[O.Cancel,s.Notation.DOWNDIAGONALSTRIKE],xcancel:[O.Cancel,s.Notation.UPDIAGONALSTRIKE+" "+s.Notation.DOWNDIAGONALSTRIKE],cancelto:O.CancelTo});const A=l.create("cancel",{[c.HANDLER]:{[i.MACRO]:["cancel"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/cancel","4.0.0","tex-extension"),n({_:{input:{tex:{cancel:{CancelConfiguration:t}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={d:(t,a)=>{for(var s in a)e.o(a,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:a[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{CasesBeginItem:()=>C,CasesConfiguration:()=>E,CasesMethods:()=>T,CasesTags:()=>P});const a=("undefined"!=typeof window?window:global).MathJax._.components.global,s=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),n=(a.MathJax,MathJax._.input.tex.HandlerTypes),r=n.ConfigurationType,o=n.HandlerType,i=MathJax._.input.tex.Configuration,u=i.Configuration,m=(i.ConfigurationHandler,i.ParserConfiguration,MathJax._.input.tex.TokenMap),c=(m.parseResult,m.AbstractTokenMap,m.RegExpMap,m.AbstractParseMap,m.CharacterMap,m.DelimiterMap,m.MacroMap),l=(m.CommandMap,m.EnvironmentMap),p=MathJax._.input.tex.ParseUtil,h=(p.KeyValueDef,p.KeyValueTypes,p.ParseUtil),g=MathJax._.input.tex.base.BaseMethods,d=(g.splitAlignArray,g.default),f=MathJax._.input.tex.TexError.default,y=MathJax._.input.tex.base.BaseItems,b=(y.StartItem,y.StopItem,y.OpenItem,y.CloseItem,y.NullItem,y.PrimeItem,y.SubsupItem,y.OverItem,y.LeftItem,y.Middle,y.RightItem,y.BreakItem,y.BeginItem),x=(y.EndItem,y.StyleItem,y.PositionItem,y.CellItem,y.MmlItem,y.FnItem,y.NotItem,y.NonscriptItem,y.DotsItem,y.ArrayItem,y.EqnArrayItem,y.MstyleItem,y.EquationItem,MathJax._.input.tex.ams.AmsConfiguration),M=x.AmsTags,I=(x.AmsConfiguration,MathJax._.input.tex.empheq.EmpheqUtil.EmpheqUtil);class C extends b{get kind(){return"cases-begin"}checkItem(e){return e.isKind("end")&&e.getName()===this.getName()&&this.getProperty("end")?(this.setProperty("end",!1),[[],!0]):super.checkItem(e)}}class P extends M{constructor(){super(...arguments),this.subcounter=0}start(e,t,a){this.subcounter=0,super.start(e,t,a)}autoTag(){null==this.currentTag.tag&&("subnumcases"===this.currentTag.env?(0===this.subcounter&&this.counter++,this.subcounter++,this.tag(this.formatNumber(this.counter,this.subcounter),!1)):("numcases-left"!==this.currentTag.env&&this.counter++,this.tag(this.formatNumber(this.counter),!1)))}formatNumber(e,t=null){return e.toString()+(null===t?"":String.fromCharCode(96+t))}}const T={NumCases(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing,e.Push(e.itemFactory.create("end").setProperty("name",t.getName()));const a=e.stack.Top(),s=a.Last,n=h.copyNode(s,e),r=a.getProperty("left");return I.left(s,n,r+"\\mmlToken{mo}{\\U{7B}}\\,",e,"numcases-left"),e.Push(e.itemFactory.create("end").setProperty("name",t.getName())),null}{const a=e.GetArgument("\\begin{"+t.getName()+"}");t.setProperty("left",a);const s=d.EqnArray(e,t,!0,!0,"ll","tt");return s.arraydef.displaystyle=!1,s.arraydef.rowspacing=".2em",s.setProperty("numCases",!0),e.Push(t),s}},Entry(e,t){if(!e.stack.Top().getProperty("numCases"))return d.Entry(e,t);e.Push(e.itemFactory.create("cell").setProperties({isEntry:!0,name:t}));const a=e.string;let s=0,n=e.i;const r=a.length;for(;n<r;){const e=a.charAt(n);if("{"===e)s++,n++;else if("}"===e){if(0===s)break;s--,n++}else{if("&"===e&&0===s)throw new f("ExtraCasesAlignTab","Extra alignment tab in text for numcase environment");if("\\"===e&&0===s){const e=(a.slice(n+1).match(/^[a-z]+|./i)||[])[0];if("\\"===e||"cr"===e||"end"===e||"label"===e||void 0===e)break;n+=e.length}else n++}}const o=a.substring(e.i,n).replace(/^\s*/,"");return e.PushAll(h.internalMath(e,o,0)),e.i=n,null},environment(e,t,a,s){const n=e.itemFactory.create("cases-begin").setProperties({name:t,end:!0});e.Push(a(e,n,...s))}};new l("cases-env",T.environment,{numcases:[T.NumCases,"cases"],subnumcases:[T.NumCases,"cases"]}),new c("cases-macros",{"&":T.Entry});const E=u.create("cases",{[r.HANDLER]:{[o.ENVIRONMENT]:["cases-env"],[o.CHARACTER]:["cases-macros"]},[r.ITEMS]:{[C.prototype.kind]:C},[r.TAGS]:{cases:P}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/cases","4.0.0","tex-extension"),s({_:{input:{tex:{cases:{CasesConfiguration:t}}}}})})();

View File

@@ -0,0 +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]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{CenternotConfiguration:()=>x,filterCenterOver:()=>f});const n=("undefined"!=typeof window?window:global).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,MathJax._.input.tex.Configuration),c=i.Configuration,d=(i.ConfigurationHandler,i.ParserConfiguration,MathJax._.input.tex.TexParser.default),p=MathJax._.input.tex.NodeUtil.default,s=MathJax._.input.tex.TokenMap,l=(s.parseResult,s.AbstractTokenMap,s.RegExpMap,s.AbstractParseMap,s.CharacterMap,s.DelimiterMap,s.MacroMap,s.CommandMap),u=(s.EnvironmentMap,MathJax._.input.tex.base.BaseMethods);u.splitAlignArray;function f({data:e}){for(const t of e.getList("centerOver")){const e=p.getTexClass(t.childNodes[0].childNodes[0]);null!==e&&p.setProperties(t.parent.parent.parent.parent.parent.parent,{texClass:e})}}new l("centernot",{centerOver:function(e,t){const n="{"+e.GetArgument(t)+"}",a=e.ParseArg(t),o=new d(n,e.stack.env,e.configuration).mml(),r=e.create("node","TeXAtom",[new d(n,e.stack.env,e.configuration).mml(),e.create("node","mpadded",[e.create("node","mpadded",[a],{width:0,lspace:"-.5width"}),e.create("node","mphantom",[o])],{width:0,lspace:"-.5width"})]);e.configuration.addNode("centerOver",o),e.Push(r)},centernot:[u.default.Macro,"\\centerOver{#1}{{\u29f8}}",1]});const x=c.create("centernot",{[r.HANDLER]:{macro:["centernot"]},[r.POSTPROCESSORS]:[f]});MathJax.loader&&MathJax.loader.checkVersion("[tex]/centernot","4.0.0","tex-extension"),a({_:{input:{tex:{centernot:{CenternotConfiguration:t}}}}})})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(()=>{"use strict";var t={d:(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{ColorArrayItem:()=>g,ColortblConfiguration:()=>f});const o=("undefined"!=typeof window?window:global).MathJax._.components.global,r=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults,o.combineWithMathJax),a=(o.MathJax,MathJax._.input.tex.HandlerTypes),n=a.ConfigurationType,l=a.HandlerType,i=MathJax._.input.tex.base.BaseItems,s=(i.StartItem,i.StopItem,i.OpenItem,i.CloseItem,i.NullItem,i.PrimeItem,i.SubsupItem,i.OverItem,i.LeftItem,i.Middle,i.RightItem,i.BreakItem,i.BeginItem,i.EndItem,i.StyleItem,i.PositionItem,i.CellItem,i.MmlItem,i.FnItem,i.NotItem,i.NonscriptItem,i.DotsItem,i.ArrayItem),c=(i.EqnArrayItem,i.MstyleItem,i.EquationItem,MathJax._.input.tex.Configuration),m=c.Configuration,p=c.ConfigurationHandler,u=(c.ParserConfiguration,MathJax._.input.tex.TokenMap),d=(u.parseResult,u.AbstractTokenMap,u.RegExpMap,u.AbstractParseMap,u.CharacterMap,u.DelimiterMap,u.MacroMap,u.CommandMap),h=(u.EnvironmentMap,MathJax._.input.tex.TexError.default);class g extends s{constructor(){super(...arguments),this.color={cell:"",row:"",col:[]},this.hasColor=!1}EndEntry(){super.EndEntry();const t=this.row[this.row.length-1],e=this.color.cell||this.color.row||this.color.col[this.row.length-1];e&&(t.attributes.set("mathbackground",e),this.color.cell="",this.hasColor=!0)}EndRow(){super.EndRow(),this.color.row=""}createMml(){const t=super.createMml();let e=t.isKind("mrow")?t.childNodes[1]:t;if(e.isKind("mstyle")&&(e=e.childNodes[0].childNodes[0]),e.isKind("menclose")&&(e=e.childNodes[0].childNodes[0]),this.hasColor){const t=e.attributes;"none"===t.get("frame")&&void 0===t.get("data-frame-styles")&&t.set("data-frame-styles","")}return t}}function b(t,e,o){const r=t.configuration.packageData.get("color").model,a=t.GetBrackets(e,""),n=r.getColor(a,t.GetArgument(e)),l=t.stack.Top();if(!(l instanceof g))throw new h("UnsupportedTableColor","Unsupported use of %1",t.currentCS);if("col"===o){if(l.table.length&&l.color.col[l.row.length]!==n)throw new h("ColumnColorNotTop","%1 must be in the top row or preamble",e);l.color.col[l.row.length]=n,t.GetBrackets(e,"")&&t.GetBrackets(e,"")}else if(l.color[o]=n,"row"===o&&(l.Size()||l.row.length))throw new h("RowColorNotFirst","%1 must be at the beginning of a row",e)}new d("colortbl",{cellcolor:[b,"cell"],rowcolor:[b,"row"],columncolor:[b,"col"]});const f=m.create("colortbl",{[n.HANDLER]:{[l.MACRO]:["colortbl"]},[n.ITEMS]:{array:g},[n.PRIORITY]:10,[n.CONFIG]:[function(t,e){e.parseOptions.packageData.has("color")||p.get("color").config(t,e)},10]});MathJax.loader&&MathJax.loader.checkVersion("[tex]/colortbl","4.0.0","tex-extension"),r({_:{input:{tex:{colortbl:{ColortblConfiguration:e}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var o={d:(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o:(o,e)=>Object.prototype.hasOwnProperty.call(o,e),r:o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}},e={};o.r(e),o.d(e,{ColorConfiguration:()=>u});const t=("undefined"!=typeof window?window:global).MathJax._.components.global,a=(t.GLOBAL,t.isObject,t.combineConfig,t.combineDefaults,t.combineWithMathJax),n=(t.MathJax,MathJax._.input.tex.HandlerTypes),r=n.ConfigurationType,i=n.HandlerType,c=MathJax._.input.tex.TokenMap,l=(c.parseResult,c.AbstractTokenMap,c.RegExpMap,c.AbstractParseMap,c.CharacterMap,c.DelimiterMap,c.MacroMap,c.CommandMap),s=(c.EnvironmentMap,MathJax._.input.tex.Configuration),p=s.Configuration;s.ConfigurationHandler,s.ParserConfiguration;new l("colorv2",{color:{Color(o,e){const t=o.GetArgument(e),a=o.stack.env.color;o.stack.env.color=t;const n=o.ParseArg(e);a?o.stack.env.color=a:delete o.stack.env.color;const r=o.create("node","mstyle",[n],{mathcolor:t});o.Push(r)}}.Color});const u=p.create("colorv2",{[r.HANDLER]:{[i.MACRO]:["colorv2"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/colorv2","4.0.0","tex-extension"),a({_:{input:{tex:{colorv2:{ColorV2Configuration:e}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={d:(n,t)=>{for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{ConfigMacrosConfiguration:()=>T});const t=("undefined"!=typeof window?window:global).MathJax._.components.global,o=(t.GLOBAL,t.isObject,t.combineConfig,t.combineDefaults,t.combineWithMathJax),a=(t.MathJax,MathJax._.input.tex.HandlerTypes),i=a.ConfigurationType,r=a.HandlerType,s=MathJax._.input.tex.Configuration,c=s.Configuration,p=(s.ConfigurationHandler,s.ParserConfiguration,MathJax._.util.Options),d=(p.isObject,p.APPEND,p.REMOVE,p.OPTIONS,p.Expandable,p.expandable),f=(p.makeArray,p.keys,p.copy,p.insert,p.defaultOptions,p.userOptions,p.selectOptions,p.selectOptionsFromKeys,p.separateOptions,p.lookup,MathJax._.input.tex.TokenMap),m=(f.parseResult,f.AbstractTokenMap,f.RegExpMap,f.AbstractParseMap,f.CharacterMap,f.DelimiterMap,f.MacroMap),l=f.CommandMap,u=f.EnvironmentMap,M=MathJax._.input.tex.ParseMethods.default,O=MathJax._.input.tex.Token,g=(O.Token,O.Macro),x=MathJax._.input.tex.newcommand.NewcommandMethods.default,y=MathJax._.input.tex.newcommand.NewcommandItems.BeginEnvItem,h="configmacros-map",b="configmacros-active-map",v="configmacros-env-map";function C(e,n,t){const o=t.parseOptions.handlers.retrieve(n),a=t.parseOptions.options[e];for(const e of Object.keys(a)){const n="string"==typeof a[e]?[a[e]]:a[e],t=Array.isArray(n[2])?new g(e,x.MacroWithTemplate,n.slice(0,2).concat(n[2])):new g(e,x.Macro,n);o.add(e,t)}}const T=c.create("configmacros",{[i.INIT]:function(e){new m(b,{}),new l(h,{}),new u(v,M.environment,{}),e.append(c.local({handler:{[r.CHARACTER]:[b],[r.MACRO]:[h],[r.ENVIRONMENT]:[v]},priority:3}))},[i.CONFIG]:function(e,n){!function(e){C("active",b,e)}(n),function(e){C("macros",h,e)}(n),function(e){const n=e.parseOptions.handlers.retrieve(v),t=e.parseOptions.options.environments;for(const e of Object.keys(t))n.add(e,new g(e,x.BeginEnv,[!0].concat(t[e])))}(n)},[i.ITEMS]:{[y.prototype.kind]:y},[i.OPTIONS]:{active:d({}),macros:d({}),environments:d({})}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/configmacros","4.0.0","tex-extension"),o({_:{input:{tex:{configmacros:{ConfigMacrosConfiguration:n}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var t={d:(e,a)=>{for(var n in a)t.o(a,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:a[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{DsfontConfiguration:()=>u});const a=("undefined"!=typeof window?window:global).MathJax._.components.global,n=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults),o=a.combineWithMathJax,i=(a.MathJax,MathJax._.input.tex.HandlerTypes),r=i.ConfigurationType,s=i.HandlerType,d=MathJax._.input.tex.Configuration,p=d.Configuration,f=(d.ConfigurationHandler,d.ParserConfiguration,MathJax._.input.tex.TokenMap),c=(f.parseResult,f.AbstractTokenMap,f.RegExpMap,f.AbstractParseMap,f.CharacterMap,f.DelimiterMap,f.MacroMap,f.CommandMap),x=(f.EnvironmentMap,MathJax._.input.tex.base.BaseMethods),l=(x.splitAlignArray,x.default);new c("dsfont",{mathds:function(t,e){l.MathFont(t,e,t.options.dsfont.sans?"-ds-ss":"-ds-rm")}});const u=p.create("dsfont",{[r.HANDLER]:{[s.MACRO]:["dsfont"]},[r.OPTIONS]:{dsfont:{sans:!1}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/dsfont","4.0.0","tex-extension"),o({_:{input:{tex:{dsfont:{DsfontConfiguration:e}}}}});const M=MathJax._.util.context,h=M.hasWindow;M.context;!function(t,e,a=`@mathjax/${e}`){if(MathJax.loader){const o=h?`https://cdn.jsdelivr.net/npm/${a}`:a,i=e.replace(/-font-extension$/,"-extension"),r=MathJax.config?.startup?.output||"chtml";n(MathJax.config.loader,"paths",{[i]:o}),n(MathJax.config.loader,"dependencies",{[`[${i}]/${r}`]:[`output/${r}`]}),MathJax.loader.addPackageData(t,{extraLoads:[`[${i}]/${r}`],rendererExtensions:[i]})}}("[tex]/dsfont","mathjax-dsfont-font-extension")})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={d:(a,t)=>{for(var o in t)e.o(t,o)&&!e.o(a,o)&&Object.defineProperty(a,o,{enumerable:!0,get:t[o]})},o:(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},a={};e.r(a),e.d(a,{ENCLOSE_OPTIONS:()=>M,EncloseConfiguration:()=>h,EncloseMethods:()=>g});const t=("undefined"!=typeof window?window:global).MathJax._.components.global,o=(t.GLOBAL,t.isObject,t.combineConfig,t.combineDefaults,t.combineWithMathJax),n=(t.MathJax,MathJax._.input.tex.HandlerTypes),r=n.ConfigurationType,i=n.HandlerType,l=MathJax._.input.tex.Configuration,c=l.Configuration,s=(l.ConfigurationHandler,l.ParserConfiguration,MathJax._.input.tex.TokenMap),p=(s.parseResult,s.AbstractTokenMap,s.RegExpMap,s.AbstractParseMap,s.CharacterMap,s.DelimiterMap,s.MacroMap,s.CommandMap),d=(s.EnvironmentMap,MathJax._.input.tex.ParseUtil),u=(d.KeyValueDef,d.KeyValueTypes,d.ParseUtil),M={"data-arrowhead":1,color:1,mathcolor:1,background:1,mathbackground:1,"data-padding":1,"data-thickness":1},g={Enclose(e,a){const t=e.GetArgument(a).replace(/,/g," "),o=e.GetBrackets(a,""),n=e.ParseArg(a),r=u.keyvalOptions(o,M);r.notation=t,e.Push(e.create("node","menclose",[n],r))}};new p("enclose",{enclose:g.Enclose});const h=c.create("enclose",{[r.HANDLER]:{[i.MACRO]:["enclose"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/enclose","4.0.0","tex-extension"),o({_:{input:{tex:{enclose:{EncloseConfiguration:a}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={d:(t,a)=>{for(var r in a)e.o(a,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:a[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ExtpfeilConfiguration:()=>h});const a=("undefined"!=typeof window?window:global).MathJax._.components.global,r=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),o=(a.MathJax,MathJax._.input.tex.HandlerTypes),n=o.ConfigurationType,i=o.HandlerType,m=MathJax._.input.tex.Configuration,x=m.Configuration,w=(m.ConfigurationHandler,m.ParserConfiguration,MathJax._.input.tex.TokenMap),c=(w.parseResult,w.AbstractTokenMap,w.RegExpMap,w.AbstractParseMap,w.CharacterMap,w.DelimiterMap,w.MacroMap,w.CommandMap),p=(w.EnvironmentMap,MathJax._.input.tex.ams.AmsMethods.AmsMethods),u=MathJax._.input.tex.newcommand.NewcommandUtil,d=(u.NewcommandTables,u.NewcommandPriority,u.NewcommandUtil),l=MathJax._.input.tex.newcommand.NewcommandConfiguration,s=l.NewcommandConfig,f=(l.NewcommandConfiguration,MathJax._.input.tex.TexError.default),g={NewExtArrow(e,t){let a=e.GetArgument(t);const r=e.GetArgument(t),o=e.GetArgument(t);if(!a.match(/^\\([a-z]+|.)$/i))throw new f("NewextarrowArg1","First argument to %1 must be a control sequence name",t);if(!r.match(/^(\d+),(\d+)$/))throw new f("NewextarrowArg2","Second argument to %1 must be two integers separated by a comma",t);if(!o.match(/^(\d+|0x[0-9A-F]+)$/i))throw new f("NewextarrowArg3","Third argument to %1 must be a unicode character number",t);a=a.substring(1);const n=r.split(",");d.addMacro(e,a,g.xArrow,[parseInt(o),parseInt(n[0]),parseInt(n[1])]),e.Push(e.itemFactory.create("null"))},xArrow:p.xArrow};new c("extpfeil",{xtwoheadrightarrow:[g.xArrow,8608,12,16],xtwoheadleftarrow:[g.xArrow,8606,17,13],xmapsto:[g.xArrow,8614,6,7],xlongequal:[g.xArrow,61,7,7],xtofrom:[g.xArrow,8644,12,12],Newextarrow:g.NewExtArrow});const h=x.create("extpfeil",{[n.HANDLER]:{[i.MACRO]:["extpfeil"]},[n.CONFIG]:s});MathJax.loader&&MathJax.loader.checkVersion("[tex]/extpfeil","4.0.0","tex-extension"),r({_:{input:{tex:{extpfeil:{ExtpfeilConfiguration:t}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={d:(t,a)=>{for(var n in a)e.o(a,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:a[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{GensymbConfiguration:()=>l});const a=("undefined"!=typeof window?window:global).MathJax._.components.global,n=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),o=(a.MathJax,MathJax._.input.tex.HandlerTypes),r=o.ConfigurationType,i=o.HandlerType,s=MathJax._.input.tex.Configuration,p=s.Configuration,c=(s.ConfigurationHandler,s.ParserConfiguration,MathJax._.input.tex.TexConstants.TexConstant),u=MathJax._.input.tex.TokenMap,b=(u.parseResult,u.AbstractTokenMap,u.RegExpMap,u.AbstractParseMap,u.CharacterMap);u.DelimiterMap,u.MacroMap,u.CommandMap,u.EnvironmentMap;new b("gensymb-symbols",(function(e,t){const a=t.attributes||{};a.mathvariant=c.Variant.NORMAL,a.class="MathML-Unit";const n=e.create("token","mi",a,t.char);e.Push(n)}),{ohm:"\u2126",degree:"\xb0",celsius:"\u2103",perthousand:"\u2030",micro:"\xb5"});const l=p.create("gensymb",{[r.HANDLER]:{[i.MACRO]:["gensymb-symbols"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/gensymb","4.0.0","tex-extension"),n({_:{input:{tex:{gensymb:{GensymbConfiguration:t}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var t={d:(e,F)=>{for(var a in F)t.o(F,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:F[a]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>g});var F={};t.r(F),t.d(F,{HtmlConfiguration:()=>y});const a=("undefined"!=typeof window?window:global).MathJax._.components.global,u=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),r=(a.MathJax,MathJax._.input.tex.HandlerTypes),n=r.ConfigurationType,o=r.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.NodeUtil.default),f=MathJax._.input.tex.ParseUtil,h=(f.KeyValueDef,f.KeyValueTypes,f.ParseUtil),p=MathJax._.input.tex.TexError.default,m=/[\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;function x(t){return!(t.match(/[\x00-\x1f\x7f-\x9f "'>/=]/)||t.match(m))}const M={Data(t,e){const F=t.GetArgument(e),a=b(t,e),u=h.keyvalOptions(F);for(const t in u){if(!x(t))throw new p("InvalidHTMLAttr","Invalid HTML attribute: %1",`data-${t}`);d.setAttribute(a,`data-${t}`,u[t])}t.Push(a)},Href(t,e){const F=t.GetArgument(e),a=b(t,e);d.setAttribute(a,"href",F),t.Push(a)},Class(t,e){let F=t.GetArgument(e);const a=b(t,e),u=d.getAttribute(a,"class");u&&(F=u+" "+F),d.setAttribute(a,"class",F),t.Push(a)},Style(t,e){let F=t.GetArgument(e);const a=b(t,e);let u=d.getAttribute(a,"style");u&&(";"!==u.charAt(F.length-1)&&(u+=";"),F=u+" "+F),d.setAttribute(a,"style",F),t.Push(a)},Id(t,e){const F=t.GetArgument(e),a=b(t,e);d.setAttribute(a,"id",F),t.Push(a)}},b=function(t,e){const F=t.ParseArg(e);if(!d.isInferred(F))return F;const a=t.create("node","mrow");return d.copyChildren(F,a),d.copyAttributes(F,a),a},g=M;new c("html_macros",{data:g.Data,href:g.Href,class:g.Class,style:g.Style,cssId:g.Id});const y=s.create("html",{[n.HANDLER]:{[o.MACRO]:["html_macros"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/html","4.0.0","tex-extension"),u({_:{input:{tex:{html:{HtmlConfiguration:F,HtmlMethods:e}}}}})})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(()=>{"use strict";var e={d:(o,r)=>{for(var t in r)e.o(r,t)&&!e.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:r[t]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{NoErrorsConfiguration:()=>c});const r=("undefined"!=typeof window?window:global).MathJax._.components.global,t=(r.GLOBAL,r.isObject,r.combineConfig,r.combineDefaults,r.combineWithMathJax),n=(r.MathJax,MathJax._.input.tex.HandlerTypes),a=n.ConfigurationType,i=(n.HandlerType,MathJax._.input.tex.Configuration),l=i.Configuration;i.ConfigurationHandler,i.ParserConfiguration;const c=l.create("noerrors",{[a.NODES]:{error:function(e,o,r,t){const n=e.create("token","mtext",{},t.replace(/\n/g," "));return e.create("node","merror",[n],{"data-mjx-error":o,title:o})}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/noerrors","4.0.0","tex-extension"),t({_:{input:{tex:{noerrors:{NoErrorsConfiguration:o}}}}})})();

View File

@@ -0,0 +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]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{NoUndefinedConfiguration:()=>f});const o=("undefined"!=typeof window?window:global).MathJax._.components.global,t=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults,o.combineWithMathJax),i=(o.MathJax,MathJax._.input.tex.HandlerTypes),a=i.ConfigurationType,r=i.HandlerType,d=MathJax._.input.tex.Configuration,u=d.Configuration;d.ConfigurationHandler,d.ParserConfiguration;const f=u.create("noundefined",{[a.FALLBACK]:{[r.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))}},[a.OPTIONS]:{noundefined:{color:"red",background:"",size:""}},[a.PRIORITY]:3});MathJax.loader&&MathJax.loader.checkVersion("[tex]/noundefined","4.0.0","tex-extension"),t({_:{input:{tex:{noundefined:{NoUndefinedConfiguration:n}}}}})})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +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]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{RequireConfiguration:()=>j,RequireLoad:()=>A,RequireMethods:()=>J,options:()=>_});const a=("undefined"!=typeof window?window:global).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:global).MathJax._.components.startup,g=(f.Startup,f.MathJax),h=(f.CONFIG,MathJax._.components.package),x=(h.PackageError,h.Package),m=("undefined"!=typeof window?window:global).MathJax._.components.loader,O=(m.PathFilters,m.Loader),M=(m.MathJax,m.CONFIG),w=MathJax._.mathjax.mathjax,b=MathJax._.util.Options,q=(b.isObject,b.APPEND,b.REMOVE,b.OPTIONS,b.Expandable,b.expandable),y=(b.makeArray,b.keys,b.copy,b.insert,b.defaultOptions,b.userOptions,b.selectOptions,b.selectOptionsFromKeys,b.separateOptions,b.lookup,g.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,M.dependencies[t]);a?w.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=y[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),w.retryAfter(Promise.resolve()))}}function A(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||w.retryAfter(O.load(i).catch((e=>{}))),s.hasFailed)throw new d("RequireFail",'Extension "%1" failed to load',t);const p=null===(a=M[i])||void 0===a?void 0:a.rendererExtensions,u=null===(o=g.startup.document)||void 0===o?void 0:o.menu;p&&u&&u.addRequiredExtensions(p),k(e.configuration.packageData.get("require").jax,i)}const J={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);A(e,a),e.Push(e.itemFactory.create("null"))}},_={require:{allow:q({base:!1,autoload:!1,configmacros:!1,tagformat:!1,setoptions:!1,texhtml:!1}),defaultAllow:!0,prefix:"tex"}};new l("require",{require:J.Require});const j=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");M.paths[o]||(M.paths[o]="[mathjax]/input/tex/extensions"),a.prefix="["+o+"]/"},[n.OPTIONS]:_});MathJax.loader&&MathJax.loader.checkVersion("[tex]/require","4.0.0","tex-extension"),o({_:{input:{tex:{require:{RequireConfiguration:t}}}}})})();

View File

@@ -0,0 +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]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{SetOptionsConfiguration:()=>T,SetOptionsUtil:()=>m});const o=("undefined"!=typeof window?window:global).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),M=MathJax._.input.tex.base.BaseMethods,b=(M.splitAlignArray,M.default),w=MathJax._.util.Options,h=w.isObject,y=(w.APPEND,w.REMOVE,w.OPTIONS,w.Expandable,w.expandable),k=(w.makeArray,w.keys,w.copy,w.insert,w.defaultOptions,w.userOptions,w.selectOptions,w.selectOptionsFromKeys,w.separateOptions,w.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)&&!h(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.0.0","tex-extension"),a({_:{input:{tex:{setoptions:{SetOptionsConfiguration:e}}}}})})();

View File

@@ -0,0 +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]})},o:(t,o)=>Object.prototype.hasOwnProperty.call(t,o),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},o={};t.r(o),t.d(o,{TagFormatConfiguration:()=>c,tagformatConfig:()=>u});const a=("undefined"!=typeof window?window:global).MathJax._.components.global,e=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),n=(a.MathJax,MathJax._.input.tex.HandlerTypes),r=n.ConfigurationType,s=(n.HandlerType,MathJax._.input.tex.Configuration),i=s.Configuration,g=(s.ConfigurationHandler,s.ParserConfiguration,MathJax._.input.tex.Tags),p=(g.Label,g.TagInfo,g.AbstractTags,g.NoTags,g.AllTags,g.TagsFactory);let f=0;function u(t,o){const a=o.parseOptions.options.tags;"base"!==a&&Object.hasOwn(t.tags,a)&&p.add(a,t.tags[a]);const e=p.create(o.parseOptions.options.tags).constructor;f++;const n="configTags-"+f;p.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=i.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.0.0","tex-extension"),e({_:{input:{tex:{tagformat:{TagFormatConfiguration:o}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var t={d:(e,a)=>{for(var n in a)t.o(a,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:a[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{HtmlNodeMethods:()=>c,TexHtmlConfiguration:()=>p});const a=("undefined"!=typeof window?window:global).MathJax._.components.global,n=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),o=(a.MathJax,MathJax._.input.tex.HandlerTypes),r=o.ConfigurationType,i=o.HandlerType,l=MathJax._.input.tex.Configuration,s=l.Configuration,d=(l.ConfigurationHandler,l.ParserConfiguration,MathJax._.input.tex.TokenMap),x=(d.parseResult,d.AbstractTokenMap,d.RegExpMap,d.AbstractParseMap,d.CharacterMap,d.DelimiterMap,d.MacroMap),h=(d.CommandMap,d.EnvironmentMap,MathJax._.input.tex.TexError.default),m=MathJax._.handlers.html.HTMLDomStrings.HTMLDomStrings,c={TexHTML(t,e){if(!t.options.allowTexHTML)return!1;const a=t.string.slice(t.i).match(/^tex-html(?: n="(\d+)")?>/);if(!a)return!1;t.i+=a[0].length;const n=(a[1]?`<!${a[1]}>`:"")+"</tex-html>",o=t.string.slice(t.i).indexOf(n);if(o<0)throw new h("TokenNotFoundForCommand","Could not find %1 for %2",n,"<"+a[0]);const r=t.string.substring(t.i,t.i+o).trim();t.i+=o+11+(a[1]?3+a[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),d=t.create("node","html").setHTML(s,i);return t.Push(t.create("node","mtext",[d])),!0}};new x("tex-html",{"<":c.TexHTML});const p=s.create("texhtml",{[r.HANDLER]:{[i.CHARACTER]:["tex-html"]},[r.OPTIONS]:{allowTexHTML:!1},[r.CONFIG]:()=>{if(m){const t=m.OPTIONS.includeHtmlTags;t["tex-html"]||(t["tex-html"]=(t,e)=>{const a=e.innerHTML(t),n=a.split(/<\/tex-html>/).length;return`<tex-html${n>1?` n="${n}"`:""}>`+a+(n>1?`<!${n}>`:"")+"</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.0.0","tex-extension"),n({_:{input:{tex:{texhtml:{TexHtmlConfiguration:e}}}}})})();

View File

@@ -0,0 +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]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{TextcompConfiguration:()=>h});const a=("undefined"!=typeof window?window:global).MathJax._.components.global,r=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),x=(a.MathJax,MathJax._.input.tex.HandlerTypes),o=x.ConfigurationType,n=x.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",{[o.PARSER]:"text",[o.HANDLER]:{[n.MACRO]:["textcomp-macros"]}});const h=s.create("textcomp",{[o.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.0.0","tex-extension"),r({_:{input:{tex:{textcomp:{TextcompConfiguration:e}}}}})})();

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +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]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{UnicodeConfiguration:()=>C});const n=("undefined"!=typeof window?window:global).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),m=(l.EnvironmentMap,MathJax._.input.tex.UnitUtil.UnitUtil),h=MathJax._.input.tex.NodeUtil.default,p=MathJax._.util.Entities,f=(p.options,p.entities,p.add,p.remove,p.translate,p.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=m.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,f(i));h.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 C=s.create("unicode",{[i.HANDLER]:{[r.MACRO]:["unicode"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/unicode","4.0.0","tex-extension"),a({_:{input:{tex:{unicode:{UnicodeConfiguration:e}}}}})})();

View File

@@ -0,0 +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]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{UnitsConfiguration:()=>m,UnitsMethods:()=>p});const n=("undefined"!=typeof window?window:global).MathJax._.components.global,a=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),i=(n.MathJax,MathJax._.input.tex.HandlerTypes),o=i.ConfigurationType,r=i.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 a=`\\mathrm{${t.GetArgument(e)}}`;n&&(a=n+(t.options.units.loose?"~":"\\,")+a),t.string=a+t.string.slice(t.i),t.i=0},UnitFrac(t,e){const n=t.GetBrackets(e);let a=`\\nicefrac[\\mathrm]{${t.GetArgument(e)}}{${t.GetArgument(e)}}`;n&&(a=n+(t.options.units.loose?"~":"\\,")+a),t.string=a+t.string.slice(t.i),t.i=0},NiceFrac(t,e){const n=t.GetBrackets(e,"\\mathrm"),a=t.GetArgument(e),i=t.GetArgument(e),o=new u(`${n}{${a}}`,Object.assign({},t.stack.env),t.configuration).mml(),r=new u(`${n}{${i}}`,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 m=c.create("units",{[o.HANDLER]:{[r.MACRO]:["units"]},[o.OPTIONS]:{units:{loose:!1,ugly:!1}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/units","4.0.0","tex-extension"),a({_:{input:{tex:{units:{UnitsConfiguration:e}}}}})})();

View File

@@ -0,0 +1 @@
(()=>{"use strict";var a={d:(e,p)=>{for(var t in p)a.o(p,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:p[t]})},o:(a,e)=>Object.prototype.hasOwnProperty.call(a,e),r:a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})}},e={};a.r(e),a.d(e,{UpgreekConfiguration:()=>c});const p=("undefined"!=typeof window?window:global).MathJax._.components.global,t=(p.GLOBAL,p.isObject,p.combineConfig,p.combineDefaults,p.combineWithMathJax),n=(p.MathJax,MathJax._.input.tex.HandlerTypes),o=n.ConfigurationType,i=n.HandlerType,u=MathJax._.input.tex.Configuration,r=u.Configuration,s=(u.ConfigurationHandler,u.ParserConfiguration,MathJax._.input.tex.TokenMap),l=(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 l("upgreek",(function(a,e){const p=e.attributes||{};p.mathvariant=g.Variant.NORMAL;const t=a.create("token","mi",p,e.char);a.Push(t)}),{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 c=r.create("upgreek",{[o.HANDLER]:{[i.MACRO]:["upgreek"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/upgreek","4.0.0","tex-extension"),t({_:{input:{tex:{upgreek:{UpgreekConfiguration:e}}}}})})();

View File

@@ -0,0 +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]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{VerbConfiguration:()=>b});const n=("undefined"!=typeof window?window:global).MathJax._.components.global,a=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),r=(n.MathJax,MathJax._.input.tex.HandlerTypes),o=r.ConfigurationType,i=r.HandlerType,s=MathJax._.input.tex.Configuration,l=s.Configuration,p=(s.ConfigurationHandler,s.ParserConfiguration,MathJax._.input.tex.TexConstants.TexConstant),g=MathJax._.input.tex.TokenMap,c=(g.parseResult,g.AbstractTokenMap,g.RegExpMap,g.AbstractParseMap,g.CharacterMap,g.DelimiterMap,g.MacroMap,g.CommandMap),u=(g.EnvironmentMap,MathJax._.input.tex.TexError.default);new c("verb",{verb:{Verb(e,t){const n=e.GetNext(),a=++e.i;if(""===n)throw new u("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 u("NoClosingDelim","Can't find closing delimiter for %1",e.currentCS);const r=e.string.slice(a,e.i).replace(/ /g,"\xa0");e.i++,e.Push(e.create("token","mtext",{mathvariant:p.Variant.MONOSPACE},r))}}.Verb});const b=l.create("verb",{[o.HANDLER]:{[i.MACRO]:["verb"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/verb","4.0.0","tex-extension"),a({_:{input:{tex:{verb:{VerbConfiguration:t}}}}})})();

1
mathjax/loader.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
mathjax/mml-chtml.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
mathjax/mml-svg.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,7 @@
import {createRequire} from 'module';
global.require = createRequire(import.meta.url);
const path = require("path");
if (!global.MathJax) global.MathJax = {};
global.MathJax.__dirname = path.dirname(new URL(import.meta.url).pathname);

5
mathjax/node-main.cjs Normal file
View File

@@ -0,0 +1,5 @@
if (!global.MathJax) global.MathJax = {};
global.MathJax.__dirname = __dirname;
module.exports = require('./node-main.js').MathJax;

1
mathjax/node-main.js Normal file

File diff suppressed because one or more lines are too long

4
mathjax/node-main.mjs Normal file
View File

@@ -0,0 +1,4 @@
import './node-main-setup.mjs';
import {MathJax} from './node-main.js';
export default MathJax;
export const init = MathJax.init;

1
mathjax/output/chtml.js Normal file

File diff suppressed because one or more lines are too long

1
mathjax/output/svg.js Normal file

File diff suppressed because one or more lines are too long

75
mathjax/package.json Normal file
View File

@@ -0,0 +1,75 @@
{
"name": "mathjax",
"version": "4.0.0",
"description": "Beautiful and accessible math in all browsers. MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all browsers. This package includes the packaged components (install mathjax-full to get the source code).",
"keywords": [
"MathJax",
"math",
"svg",
"mathml",
"tex",
"latex",
"asciimath",
"browser",
"node"
],
"license": "Apache-2.0",
"maintainers": [
"MathJax Consortium <info@mathjax.org> (http://www.mathjax.org)"
],
"bugs": {
"url": "http://github.com/mathjax/MathJax/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/mathjax/MathJax"
},
"main": "node-main.mjs",
"exports": {
".": {
"import": "./node-main.mjs",
"require": "./node-main.cjs"
},
"./es5/*": "./*",
"./*": "./*"
},
"files": [
"LICENSE",
"CONTRIBUTING.md",
"README.md",
"*.js",
"*.mjs",
"*.cjs",
"a11y",
"adaptors",
"input",
"output",
"sre",
"ui"
],
"scripts": {
"test": "echo 'No tests defined'",
"===================================================================== clean": "",
"clean": "npm run -s clean:bundle && npm run -s clean:node",
"clean:bundle": "rm -rf *.*js a11y adaptors input output sre ui",
"clean:node": "rm -rf node_modules package-lock.json",
"===================================================================== message": "",
"message": "msg() { echo \"$(tput setaf 4)$1$(tput setaf 0)\"; }; msg",
"===================================================================== install": "",
"preinstall:mj4": "npm run -s message 'Installing MathJax...'",
"install:mj4": "npm install",
"===================================================================== move": "",
"premove": "npm run -s message 'Moving MathJax Components...'",
"move": "npm run -s clean:bundle && mv -n node_modules/@mathjax/src/bundle/* .",
"===================================================================== build": "",
"prebuild": "npm run -s clean:node",
"build": "npm run -s install:mj4 && npm run -s move",
"postbuild": "npm run -s message 'Cleaning Up...' && npm run -s clean:node"
},
"devDependencies": {
"@mathjax/src": "^4.0.0"
},
"dependencies": {
"@mathjax/mathjax-newcm-font": "^4.0.0"
}
}

2
mathjax/require.mjs Normal file
View File

@@ -0,0 +1,2 @@
import {createRequire} from 'module';
global.require = createRequire(import.meta.url);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,32 @@
{
"euro/characters/ANSI.min":
[{"locale":"euro"},{"modality":"braille"},{"0":"⠬","1":"⠡","2":"⠣","3":"⠩","4":"⠹","5":"⠱","6":"⠫","7":"⠻","8":"⠳","9":"⠪","\\x00":"⣜","\\x01":"⣁","\\x02":"⣃","\\x03":"⣉","\\x04":"⣙","\\x05":"⣑","\\x06":"⣋","\\x07":"⣛","\\b":"⣓","\\t":"⣊","\\n":"⣚","\\x0B":"⣅","\\f":"⣇","\\r":"⣍","\\x0E":"⣝","\\x0F":"⣕","\\x10":"⣏","\\x11":"⣟","\\x12":"⣗","\\x13":"⣎","\\x14":"⣞","\\x15":"⣥","\\x16":"⣧","\\x17":"⣺","\\x18":"⣭","\\x19":"⣽","\\x1A":"⣵","\\x1B":"⣷","\\x1C":"⣌","\\x1D":"⣾","\\x1E":"⣮","\\x1F":"⣸"," ":"","!":"⠐","\"":"⠈","#":"⠼","$":"⠨","%":"⠿","&":"⠯","'":"⠠","(":"⠦",")":"⠴","*":"⠔","+":"⠖",",":"⠂","-":"⠤",".":"⠄","/":"⠲",":":"⠒",";":"⠆","<":"⠰","=":"⠶",">":"⠘","?":"⠢","@":"⡜","A":"⡁","B":"⡃","C":"⡉","D":"⡙","E":"⡑","F":"⡋","G":"⡛","H":"⡓","I":"⡊","J":"⡚","K":"⡅","L":"⡇","M":"⡍","N":"⡝","O":"⡕","P":"⡏","Q":"⡟","R":"⡗","S":"⡎","T":"⡞","U":"⡥","V":"⡧","W":"⡺","X":"⡭","Y":"⡽","Z":"⡵","[":"⡷","\\":"⡌","]":"⡾","^":"⡮","_":"⡸","`":"⠜","a":"⠁","b":"⠃","c":"⠉","d":"⠙","e":"⠑","f":"⠋","g":"⠛","h":"⠓","i":"⠊","j":"⠚","k":"⠅","l":"⠇","m":"⠍","n":"⠝","o":"⠕","p":"⠏","q":"⠟","r":"⠗","s":"⠎","t":"⠞","u":"⠥","v":"⠧","w":"⠺","x":"⠭","y":"⠽","z":"⠵","{":"⠷","|":"⠌","}":"⠾","~":"⠮","\\127":"⠸"}]
,
"euro/characters/Braille.min":
[{"locale":"euro"},{"modality":"braille"},{"":"","⠁":"⠁","⠂":"⠂","⠃":"⠃","⠄":"⠄","⠅":"⠅","⠆":"⠆","⠇":"⠇","⠈":"⠈","⠉":"⠉","⠊":"⠊","⠋":"⠋","⠌":"⠌","⠍":"⠍","⠎":"⠎","⠏":"⠏","⠐":"⠐","⠑":"⠑","⠒":"⠒","⠓":"⠓","⠔":"⠔","⠕":"⠕","⠖":"⠖","⠗":"⠗","⠘":"⠘","⠙":"⠙","⠚":"⠚","⠛":"⠛","⠜":"⠜","⠝":"⠝","⠞":"⠞","⠟":"⠟","⠠":"⠠","⠡":"⠡","⠢":"⠢","⠣":"⠣","⠤":"⠤","⠥":"⠥","⠦":"⠦","⠧":"⠧","⠨":"⠨","⠩":"⠩","⠪":"⠪","⠫":"⠫","⠬":"⠬","⠭":"⠭","⠮":"⠮","⠯":"⠯","⠰":"⠰","⠱":"⠱","⠲":"⠲","⠳":"⠳","⠴":"⠴","⠵":"⠵","⠶":"⠶","⠷":"⠷","⠸":"⠸","⠹":"⠹","⠺":"⠺","⠻":"⠻","⠼":"⠼","⠽":"⠽","⠾":"⠾","⠿":"⠿","⡀":"⡀","⡁":"⡁","⡂":"⡂","⡃":"⡃","⡄":"⡄","⡅":"⡅","⡆":"⡆","⡇":"⡇","⡈":"⡈","⡉":"⡉","⡊":"⡊","⡋":"⡋","⡌":"⡌","⡍":"⡍","⡎":"⡎","⡏":"⡏","⡐":"⡐","⡑":"⡑","⡒":"⡒","⡓":"⡓","⡔":"⡔","⡕":"⡕","⡖":"⡖","⡗":"⡗","⡘":"⡘","⡙":"⡙","⡚":"⡚","⡛":"⡛","⡜":"⡜","⡝":"⡝","⡞":"⡞","⡟":"⡟","⡠":"⡠","⡡":"⡡","⡢":"⡢","⡣":"⡣","⡤":"⡤","⡥":"⡥","⡦":"⡦","⡧":"⡧","⡨":"⡨","⡩":"⡩","⡪":"⡪","⡫":"⡫","⡬":"⡬","⡭":"⡭","⡮":"⡮","⡯":"⡯","⡰":"⡰","⡱":"⡱","⡲":"⡲","⡳":"⡳","⡴":"⡴","⡵":"⡵","⡶":"⡶","⡷":"⡷","⡸":"⡸","⡹":"⡹","⡺":"⡺","⡻":"⡻","⡼":"⡼","⡽":"⡽","⡾":"⡾","⡿":"⡿","⢀":"⢀","⢁":"⢁","⢂":"⢂","⢃":"⢃","⢄":"⢄","⢅":"⢅","⢆":"⢆","⢇":"⢇","⢈":"⢈","⢉":"⢉","⢊":"⢊","⢋":"⢋","⢌":"⢌","⢍":"⢍","⢎":"⢎","⢏":"⢏","⢐":"⢐","⢑":"⢑","⢒":"⢒","⢓":"⢓","⢔":"⢔","⢕":"⢕","⢖":"⢖","⢗":"⢗","⢘":"⢘","⢙":"⢙","⢚":"⢚","⢛":"⢛","⢜":"⢜","⢝":"⢝","⢞":"⢞","⢟":"⢟","⢠":"⢠","⢡":"⢡","⢢":"⢢","⢣":"⢣","⢤":"⢤","⢥":"⢥","⢦":"⢦","⢧":"⢧","⢨":"⢨","⢩":"⢩","⢪":"⢪","⢫":"⢫","⢬":"⢬","⢭":"⢭","⢮":"⢮","⢯":"⢯","⢰":"⢰","⢱":"⢱","⢲":"⢲","⢳":"⢳","⢴":"⢴","⢵":"⢵","⢶":"⢶","⢷":"⢷","⢸":"⢸","⢹":"⢹","⢺":"⢺","⢻":"⢻","⢼":"⢼","⢽":"⢽","⢾":"⢾","⢿":"⢿","⣀":"⣀","⣁":"⣁","⣂":"⣂","⣃":"⣃","⣄":"⣄","⣅":"⣅","⣆":"⣆","⣇":"⣇","⣈":"⣈","⣉":"⣉","⣊":"⣊","⣋":"⣋","⣌":"⣌","⣍":"⣍","⣎":"⣎","⣏":"⣏","⣐":"⣐","⣑":"⣑","⣒":"⣒","⣓":"⣓","⣔":"⣔","⣕":"⣕","⣖":"⣖","⣗":"⣗","⣘":"⣘","⣙":"⣙","⣚":"⣚","⣛":"⣛","⣜":"⣜","⣝":"⣝","⣞":"⣞","⣟":"⣟","⣠":"⣠","⣡":"⣡","⣢":"⣢","⣣":"⣣","⣤":"⣤","⣥":"⣥","⣦":"⣦","⣧":"⣧","⣨":"⣨","⣩":"⣩","⣪":"⣪","⣫":"⣫","⣬":"⣬","⣭":"⣭","⣮":"⣮","⣯":"⣯","⣰":"⣰","⣱":"⣱","⣲":"⣲","⣳":"⣳","⣴":"⣴","⣵":"⣵","⣶":"⣶","⣷":"⣷","⣸":"⣸","⣹":"⣹","⣺":"⣺","⣻":"⣻","⣼":"⣼","⣽":"⣽","⣾":"⣾","⣿":"⣿","蜢":"⠤","靄":"⠣⠀⠜⠀","靅":"⠣⠭⠜⠀"}]
,
"euro/characters/Cyrillic.min":
[{"locale":"euro"},{"modality":"braille"},{"Ё":"⣡","Є":"⣜","І":"⣽","Ї":"⣹","А":"⣁","Б":"⣃","В":"⣺","Г":"⣛","Д":"⣙","Е":"⣑","Ж":"⣚","З":"⣵","И":"⣊","Й":"⣯","К":"⣅","Л":"⣇","М":"⣍","Н":"⣝","О":"⣕","П":"⣏","Р":"⣗","С":"⣎","Т":"⣞","У":"⣥","Ф":"⣋","Х":"⣓","Ц":"⣉","Ч":"⣟","Ш":"⣱","Щ":"⣭","Ъ":"⣷","Ы":"⣮","Ь":"⣾","Э":"⣪","Ю":"⣳","Я":"⣫","а":"⢁","б":"⢃","в":"⢺","г":"⢛","д":"⢙","е":"⢑","ж":"⢚","з":"⢵","и":"⢊","й":"⢯","к":"⢅","л":"⢇","м":"⢍","н":"⢝","о":"⢕","п":"⢏","р":"⢗","с":"⢎","т":"⢞","у":"⢥","ф":"⢋","х":"⢓","ц":"⢉","ч":"⢟","ш":"⢱","щ":"⢭","ъ":"⢷","ы":"⢮","ь":"⢾","э":"⢪","ю":"⢳","я":"⢫","ћ":"⢩","ё":"⢡","ђ":"⢩","є":"⢜","ѕ":"⢧","і":"⢽","ї":"⢹","ј":"⢜","љ":"⢣","њ":"⢫","ў":"⢬","ѣ":"⢜","ѧ":"⢁","ѫ":"⢻","ѹ":"⢬","҄":"⣈","Ґ":"⣻","ґ":"⢻","ң":"⢝","ү":"⢳","һ":"⢃","ә":"⢪"}]
,
"euro/characters/Fullwidth.min":
[{"locale":"euro"},{"modality":"braille"},{"":"⠬","":"⠡","":"⠣","":"⠩","":"⠹","":"⠱","":"⠫","":"⠻","":"⠳","":"⠪","":"⡁","":"⡃","":"⡉","":"⡙","":"⡑","":"⡋","":"⡛","":"⡓","":"⡊","":"⡚","":"⡅","":"⡇","":"⡍","":"⡝","":"⡕","":"⡏","":"⡟","":"⡗","":"⡎","":"⡞","":"⡥","":"⡧","":"⡺","":"⡭","":"⡽","":"⡵","":"⠁","":"⠃","":"⠉","":"⠙","":"⠑","":"⠋","":"⠛","":"⠓","":"⠊","":"⠚","":"⠅","":"⠇","":"⠍","":"⠝","":"⠕","":"⠏","":"⠟","":"⠗","":"⠎","":"⠞","":"⠥","":"⠧","":"⠺","":"⠭","":"⠽","":"⠵"}]
,
"euro/characters/Greek.min":
[{"locale":"euro"},{"modality":"braille"},{"ʹ":"⠼","͵":"⣰",";":"⠢","΄":"⠈","΅":"⠘","Ά":"⣜","·":"⡨","Έ":"⣫","Ή":"⣿","Ί":"⣻","Ό":"⣪","Ύ":"⣳","Ώ":"⣚","ΐ":"⢊","Α":"⣁","Β":"⣃","Γ":"⣛","Δ":"⣙","Ε":"⣑","Ζ":"⣵","Η":"⣱","Θ":"⣹","Ι":"⢊","Κ":"⣅","Λ":"⣇","Μ":"⣍","Ν":"⣝","Ξ":"⣭","Ο":"⣕","Π":"⣏","Ρ":"⣗","Σ":"⣎","Τ":"⣞","Υ":"⣥","Φ":"⣋","Χ":"⣯","Ψ":"⣽","Ω":"⣺","Ϊ":"⣊","Ϋ":"⣽","ά":"⢜","έ":"⢫","ή":"⢿","ί":"⢻","ΰ":"⢽","α":"⢁","β":"⢃","γ":"⢛","δ":"⢙","ε":"⢑","ζ":"⢵","η":"⢱","θ":"⢹","ι":"⢊","κ":"⢅","λ":"⢇","μ":"⢍","ν":"⢝","ξ":"⢭","ο":"⢕","π":"⢏","ρ":"⢗","ς":"⢎","σ":"⢎","τ":"⢞","υ":"⢥","φ":"⢋","χ":"⢯","ψ":"⠽","ω":"⢺","ϊ":"⢌","ϋ":"⢾","ό":"⢪","ύ":"⢳","ώ":"⢚","ϐ":"⣃","ϑ":"⣹","ϒ":"⢧","ϓ":"⠾","ϔ":"⢥","ϕ":"⣋","ϖ":"⣏","ϗ":"⠯","Ϙ":"⣣","ϙ":"⢣","Ϛ":"⣧","ϛ":"⢧","Ϝ":"⣹","ϝ":"⢧","Ϟ":"⣟","ϟ":"⢟","Ϡ":"⣜","ϡ":"⢜","ϰ":"⣟","ϱ":"⣗","ϲ":"⣎","ϴ":"⣹","ϵ":"⣑","Ϻ":"⣮","ϻ":"⢮"}]
,
"euro/characters/Hebrew.min":
[{"locale":"euro"},{"modality":"braille"},{"א":"⢁","ב":"⢃","ג":"⠛","ד":"⢙","ה":"⢓","ו":"⢺","ז":"⢵","ח":"⢭","ט":"⢞","י":"⢚","ך":"⢅","כ":"⢡","ל":"⢇","ם":"⢍","מ":"⢍","ן":"⢝","נ":"⢝","ס":"⢎","ע":"⢫","ף":"⢏","פ":"⢏","ץ":"⢮","צ":"⢮","ק":"⢟","ר":"⢗","ש":"⢩","ת":"⢹","ְ":"⠄","ֱ":"⠢","ֲ":"⠒","ֳ":"⠜","ִ":"⠊","ֵ":"⠌","ֶ":"⠑","ַ":"⠉","ָ":"⠣","ֹ":"⠕","ֻ":"⠥","ּ":"⠐","ֽ":"⠈","ׁ":"⢱","ׂ":"⢎"}]
,
"euro/characters/Latin.min":
[{"locale":"euro"},{"modality":"braille"},{"":"⢀","†":"⢋","‰":"⢊","":"⡒","":"⡫","":"⣫","—":"⢵","›":"⢟","":"⡻","ž":"⣶"," ":"⡀","¡":"⡤","¢":"⢐","£":"⡨","¤":"⣨","¥":"⢨","¦":"⢑","§":"⡔","¨":"⢈","©":"⢯","ª":"⢓","«":"⣰","¬":"⣲","­":"⢤","®":"⢗","¯":"⢘","°":"⢸","±":"⣖","²":"⢃","³":"⢉","´":"⢰","µ":"⢍","¶":"⢙","·":"⡄","¸":"⢠","¹":"⢁","º":"⢚","»":"⣘","¼":"⢥","½":"⢧","¾":"⢭","¿":"⢄","À":"⣦","Á":"⢂","Â":"⡡","Ã":"⡬","Ä":"⡰","Å":"⡼","Æ":"⡈","Ç":"⡯","È":"⣔","É":"⡿","Ê":"⡣","Ë":"⢖","Ì":"⡐","Í":"⢒","Î":"⡩","Ï":"⢶","Ð":"⡴","Ñ":"⡲","Ò":"⣐","Ó":"⢲","Ô":"⡹","Õ":"⡢","Ö":"⢔","×":"⢎","Ø":"⡪","Ù":"⣴","Ú":"⢢","Û":"⡱","Ü":"⢦","Ý":"⢴","Þ":"⡖","ß":"⢼","à":"⢷","á":"⢡","â":"⣡","ã":"⣬","ä":"⢜","å":"⣼","æ":"⣈","ç":"⣯","è":"⢮","é":"⢿","ê":"⣣","ë":"⢫","ì":"⢌","í":"⢩","î":"⣩","ï":"⢻","ð":"⢞","ñ":"⢝","ò":"⢬","ó":"⢹","ô":"⣹","õ":"⢕","ö":"⢪","÷":"⣳","ø":"⣪","ù":"⢾","ú":"⢱","û":"⣱","ü":"⢳","ý":"⢺","þ":"⢏","ÿ":"⢽"}]
,
"euro/characters/Multilingual.min":
[{"locale":"euro"},{"modality":"braille"},{"Ā":"⣡","ā":"⢡","Ă":"⣷","ă":"⢷","Ą":"⢽","ą":"⢡","Ć":"⣩","ć":"⢩","Ĉ":"⣩","ĉ":"⢩","Č":"⣩","č":"⢩","Đ":"⣹","đ":"⢹","Ē":"⣱","ē":"⢱","Ę":"⣣","ę":"⢣","ě":"⠣","Ĝ":"⣻","ĝ":"⢻","Ğ":"⡻","ğ":"⠻","Ģ":"⣻","ģ":"⢻","Ĥ":"⣳","ĥ":"⢳","ī":"⢪","İ":"⣌","ı":"⢌","Ĵ":"⣺","ĵ":"⢺","Ķ":"⣥","ķ":"⢥","Ļ":"⣧","ļ":"⢧","Ł":"⢽","ł":"⢱","Ń":"⣹","ń":"⢹","Ņ":"⣽","ņ":"⢽","Ő":"⣻","ő":"⢻","Œ":"⡆","œ":"⡨","Ŗ":"⣷","ŗ":"⢷","ř":"⠺","Ś":"⢽","ś":"⢽","Ŝ":"⣮","ŝ":"⢮","Ş":"⢽","ş":"⢯","Š":"⣠","š":"⢱","Ţ":"⣪","ţ":"⢞","Ť":"⣳","ť":"⠳","Ū":"⣬","ū":"⢬","Ŭ":"⣬","ŭ":"⢬","ů":"⠾","Ű":"⣾","ű":"⢾","Ÿ":"⣿","Ź":"⢽","ź":"⢽","Ż":"⢽","ż":"⢯","Ž":"⡳","ž":"⠮","ƒ":"⣀","Ơ":"⡧","ơ":"⠧","ɜ":"⡵","ˆ":"⣄","ˇ":"⢽","˘":"⢽","˙":"⠐","˛":"⢽","˜":"⣒"}]
,
"euro/characters/Special.min":
[{"locale":"euro"},{"modality":"braille"},{"":"","":"⠤","":"⢤","—":"⠤","―":"⠤","‗":"⠤","":"⡦","":"⡈","":"⢙","":"⣤","“":"⢅","”":"⢇","„":"⢣","†":"⢋","‡":"⢛","•":"⠔","…":"⢆","‰":"⢊","":"⡂","":"⢟","ⁿ":"⡭","€":"⡘","₯":"⣹","№":"⠼","™":"⣻","∙":"⢈","√":"⡩","∞":"⣮","∩":"⣐","≈":"⣔","≡":"⢶","≤":"⢰","≥":"⢘","⌐":"⡹","⌠":"⡌","⌡":"⡱","─":"⡠","│":"⡆","┌":"⡒","┐":"⣂","└":"⣄","┘":"⣠","├":"⡦","┤":"⢵","┬":"⢅","┴":"⡂","═":"⣒","║":"⢿","╒":"⢯","╓":"⢕","╔":"⡶","╕":"⢉","╖":"⢤","╗":"⢛","╘":"⢊","╙":"⢇","╚":"⣆","╛":"⣬","╜":"⣨","╝":"⣢","╞":"⢠","╟":"⡒","╠":"⢋","╡":"⢢","╢":"⢺","╣":"⡷","╤":"⡬","╥":"⢂","╦":"⢟","╧":"⡡","╨":"⡐","╩":"⢀","╪":"⡴","╫":"⢗","╬":"⣰","▄":"⡣","█":"⣿","▀":"⡾","▌":"⣦","▐":"⣴","░":"⣀","▒":"⣤","▓":"⣶","■":"⡿","●":"⠔"}]
,
"euro/rules/euro.min":
{"locale":"euro","modality":"braille","domain":"default","rules":[["Rule","stree","default","[n] ./*[1]","self::stree"],["Rule","direct-speech","default","[t] @ext-speech (grammar:literal)","self::*[@ext-speech]","priority=Infinity"],["Rule","latex","default","[n] @latex","self::*[@latex]"],["Rule","nolatex-fallback","default","[m] children/* (separator:\"\")","self::*","not(@latex)"],["Rule","row","default","[m] children/* (separator:\"⠀⠯⠀\")","self::row[not(@latex)]"],["Precondition","binary-operation","default","self::infixop"],["Alias","binary-operation","self::relseq"],["Alias","binary-operation","self::multirel"],["Action","binary-operation","[m] children/* (sepFunc:CTFcontentIterator);"],["Rule","fences-open-close","default","[n] content/*[1]; [n] children/*[1]; [n] content/*[2]","self::fenced"],["Rule","prefix-operation","default","[m] content/*; [n] children/*[1]","self::prefixop"],["Rule","postfix-operation","default","[n] children/*[1]; [m] content/*","self::postfixop"],["Rule","colon","default","[t] \"\"; [t] text()","self::punctuation[@role=\"colon\"]"]]}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
export function require(file: string): any;

2
mathjax/sre/require.mjs Normal file
View File

@@ -0,0 +1,2 @@
import {createRequire} from 'module';
global.require = createRequire(import.meta.url);

File diff suppressed because one or more lines are too long

1
mathjax/startup.js Normal file

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More