hexo-theme-volantis 4.3.0 → 5.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/_config.yml +434 -142
- package/languages/en.yml +7 -0
- package/languages/zh-CN.yml +13 -2
- package/languages/zh-TW.yml +7 -0
- package/layout/404.ejs +1 -1
- package/layout/_meta/author.ejs +4 -4
- package/layout/_meta/category.ejs +11 -8
- package/layout/_meta/counter.ejs +5 -2
- package/layout/_meta/date.ejs +1 -1
- package/layout/_meta/music.ejs +1 -1
- package/layout/_meta/share.ejs +1 -1
- package/layout/_meta/tags.ejs +3 -0
- package/layout/_meta/thumbnail.ejs +3 -1
- package/layout/_meta/updated.ejs +1 -1
- package/layout/{_cover → _partial/_cover}/blank.ejs +0 -0
- package/layout/{_cover → _partial/_cover}/dock.ejs +1 -1
- package/layout/{_cover → _partial/_cover}/featured.ejs +1 -1
- package/layout/{_cover → _partial/_cover}/focus.ejs +1 -1
- package/layout/_partial/_cover/layout.ejs +8 -0
- package/layout/{_cover → _partial/_cover}/search.ejs +1 -1
- package/layout/_partial/article.ejs +17 -12
- package/layout/_partial/cover.ejs +8 -28
- package/layout/_partial/footer.ejs +18 -10
- package/layout/_partial/head.ejs +55 -110
- package/layout/_partial/header.ejs +16 -10
- package/layout/_partial/meta.ejs +18 -4
- package/layout/_partial/post.ejs +35 -9
- package/layout/_partial/scripts/_ctrl/cdnCtrl.ejs +113 -0
- package/layout/_partial/scripts/{coverCtrl.ejs → _ctrl/coverCtrl.ejs} +22 -26
- package/layout/_partial/scripts/_ctrl.ejs +2 -0
- package/layout/_partial/scripts/content-visibility-scroll-fix.ejs +86 -0
- package/layout/_partial/scripts/global.ejs +355 -0
- package/layout/_partial/scripts/index.ejs +68 -67
- package/layout/_partial/scripts/toc.ejs +74 -67
- package/layout/_partial/side.ejs +4 -1
- package/layout/_plugins/_page_plugins/artitalk/index.ejs +15 -0
- package/layout/_plugins/_page_plugins/bbtalk/index.ejs +10 -0
- package/layout/_plugins/_page_plugins/fcircle/index.ejs +226 -0
- package/layout/_plugins/_page_plugins/gitter/index.ejs +14 -0
- package/layout/_plugins/_page_plugins/hpptalk/index.ejs +14 -0
- package/layout/_plugins/_page_plugins/indent/index.ejs +16 -0
- package/layout/_plugins/_page_plugins/index.ejs +7 -0
- package/layout/_plugins/_page_plugins/katex/index.ejs +13 -0
- package/layout/{_third-party/math/mathjax/script.ejs → _plugins/_page_plugins/mathjax/index.ejs} +2 -2
- package/layout/_plugins/_page_plugins/snackbar/index.ejs +55 -0
- package/layout/{_partial/scripts/counter.ejs → _plugins/analytics/LCCounter.ejs} +0 -0
- package/layout/_plugins/analytics/script.ejs +64 -0
- package/layout/{_third-party → _plugins}/aplayer/layout.ejs +0 -0
- package/layout/_plugins/aplayer/script.ejs +74 -0
- package/layout/_plugins/chat/gitter/script.ejs +17 -0
- package/layout/_plugins/chat/index.ejs +1 -0
- package/layout/_plugins/chat/tidio/script.ejs +1 -0
- package/layout/_plugins/comments/artalk/script.ejs +53 -0
- package/layout/_plugins/comments/beaudar/script.ejs +61 -0
- package/layout/_plugins/comments/disqus/script.ejs +98 -0
- package/layout/_plugins/comments/disqusjs/script.ejs +35 -0
- package/layout/_plugins/comments/giscus/script.ejs +47 -0
- package/layout/_plugins/comments/gitalk/script.ejs +24 -0
- package/layout/_plugins/comments/hashover/script.ejs +5 -0
- package/layout/{_third-party → _plugins}/comments/index.ejs +9 -2
- package/layout/_plugins/comments/isso/script.ejs +27 -0
- package/layout/_plugins/comments/livere/script.ejs +15 -0
- package/layout/_plugins/comments/minivaline/script.ejs +45 -0
- package/layout/_plugins/comments/twikoo/script.ejs +40 -0
- package/layout/_plugins/comments/utterances/script.ejs +43 -0
- package/layout/{_third-party → _plugins}/comments/valine/script.ejs +18 -14
- package/layout/_plugins/comments/vssue/script.ejs +37 -0
- package/layout/_plugins/comments/waline/script.ejs +44 -0
- package/layout/_plugins/comments/z-custom/script.ejs +1 -0
- package/layout/_plugins/darkmode/script.ejs +114 -0
- package/layout/_plugins/end-of-support/script.ejs +62 -0
- package/layout/_plugins/github-api/script.ejs +27 -0
- package/layout/_plugins/highlight/highlightjs/script.ejs +26 -0
- package/layout/_plugins/highlight/prismjs/script.ejs +25 -0
- package/layout/_plugins/highlight/script.ejs +1 -0
- package/layout/{_third-party → _plugins}/lazyload/script.ejs +1 -1
- package/layout/_plugins/nodewaves/script.ejs +12 -0
- package/layout/_plugins/parallax/script.ejs +70 -0
- package/layout/{_third-party → _plugins}/pjax/animate.ejs +31 -26
- package/layout/_plugins/pjax/index.ejs +74 -0
- package/layout/_plugins/pjax/pdata.ejs +57 -0
- package/layout/_plugins/preload/script.ejs +14 -0
- package/layout/_plugins/rightmenu/layout.ejs +119 -0
- package/layout/_plugins/scrollreveal/script.ejs +25 -0
- package/layout/_plugins/search/script.ejs +39 -0
- package/layout/{_third-party → _plugins}/share/layout.ejs +0 -0
- package/layout/_plugins/swiper/script.ejs +37 -0
- package/layout/_pre.ejs +2 -2
- package/layout/_widget/_pre.ejs +5 -0
- package/layout/_widget/blogger.ejs +1 -1
- package/layout/_widget/category.ejs +2 -2
- package/layout/_widget/copyright.ejs +1 -1
- package/layout/_widget/grid.ejs +3 -3
- package/layout/_widget/lastupdate.ejs +27 -0
- package/layout/_widget/list.ejs +2 -2
- package/layout/_widget/load.ejs +18 -0
- package/layout/_widget/music.ejs +3 -2
- package/layout/_widget/page.ejs +1 -1
- package/layout/_widget/qrcode.ejs +1 -1
- package/layout/_widget/related_posts.ejs +1 -1
- package/layout/_widget/tagcloud.ejs +1 -1
- package/layout/_widget/text.ejs +1 -1
- package/layout/_widget/toc.ejs +6 -2
- package/layout/_widget/webinfo.ejs +3 -66
- package/layout/archive.ejs +3 -3
- package/layout/category.ejs +8 -3
- package/layout/docs.ejs +1 -1
- package/layout/friends.ejs +5 -24
- package/layout/index.ejs +1 -1
- package/layout/layout.ejs +13 -12
- package/layout/list.ejs +1 -1
- package/layout/page.ejs +1 -1
- package/layout/post.ejs +1 -1
- package/layout/tag.ejs +8 -3
- package/package.json +4 -3
- package/scripts/events/index.js +12 -0
- package/scripts/events/lib/config.js +27 -8
- package/scripts/events/lib/renderStylus.js +78 -0
- package/scripts/events/lib/utils.js +76 -0
- package/scripts/filters/content-visibility.js +25 -0
- package/scripts/{render → filters}/img.js +0 -0
- package/scripts/filters/replace.js +15 -0
- package/scripts/{z-lazyload → filters/z-lazyload}/index.js +0 -0
- package/scripts/{z-lazyload → filters/z-lazyload}/lib/process.js +1 -1
- package/scripts/helpers/custom-files/index.js +163 -0
- package/scripts/helpers/first-style/index.js +19 -0
- package/scripts/helpers/head/autoCanonical.js +15 -0
- package/scripts/helpers/head/generate_preload_fontfamily.js +22 -0
- package/scripts/helpers/head/generate_seo.js +24 -0
- package/scripts/helpers/head/generate_title__keywords__description.js +91 -0
- package/scripts/{related_posts → helpers/related_posts}/index.js +1 -1
- package/scripts/helpers/structured-data/index.js +2 -0
- package/scripts/helpers/structured-data/lib/blogposting.js +65 -0
- package/scripts/helpers/structured-data/lib/breadcrumblist.js +128 -0
- package/scripts/helpers/structured-data/lib/config.js +31 -0
- package/scripts/helpers/structured-data/lib/index.js +38 -0
- package/scripts/helpers/structured-data/lib/organization.js +15 -0
- package/scripts/helpers/structured-data/lib/person.js +16 -0
- package/scripts/helpers/structured-data/lib/website.js +42 -0
- package/scripts/helpers/tag-plugins-style/index.js +199 -0
- package/scripts/tags/btn.js +6 -1
- package/scripts/tags/btns.js +7 -2
- package/scripts/tags/checkbox.js +12 -2
- package/scripts/tags/contributors.js +100 -0
- package/scripts/tags/dropmenu.js +18 -3
- package/scripts/tags/fancybox.js +44 -10
- package/scripts/tags/folding.js +6 -1
- package/scripts/tags/frame.js +6 -1
- package/scripts/tags/friends.js +99 -0
- package/scripts/tags/ghcard.js +6 -1
- package/scripts/tags/image.js +14 -2
- package/scripts/tags/link.js +6 -1
- package/scripts/tags/md.js +59 -0
- package/scripts/tags/media.js +25 -1
- package/scripts/tags/note.js +12 -2
- package/scripts/tags/site.js +87 -51
- package/scripts/tags/span.js +12 -2
- package/scripts/tags/swiper.js +38 -0
- package/scripts/tags/tabs.js +85 -54
- package/scripts/tags/timeline.js +6 -1
- package/source/css/Readme.md +28 -0
- package/source/css/_defines/AutoPrefixCSS.styl +347 -0
- package/source/css/_defines/Readme.md +3 -0
- package/source/css/_defines/color.styl +19 -0
- package/source/css/_defines/effect.styl +0 -13
- package/source/css/_defines/fonts.styl +17 -18
- package/source/css/_defines/func.styl +12 -30
- package/source/css/_first/base_first.styl +113 -0
- package/source/css/_first/{cover.styl → cover_first.styl} +113 -87
- package/source/css/_first/dark_first.styl +75 -0
- package/source/css/_first/fontfamily_first.styl +17 -0
- package/source/css/_first/{navbar.styl → navbar_first.styl} +4 -10
- package/source/css/_first/search_first.styl +12 -0
- package/source/css/{_base/index.styl → _style/_base/base.styl} +8 -92
- package/source/css/_style/_base/fontfamily_async.styl +8 -0
- package/source/css/{_layout → _style/_layout}/archive.styl +0 -0
- package/source/css/{_layout → _style/_layout}/article.styl +2 -29
- package/source/css/{_layout → _style/_layout}/footer.styl +0 -0
- package/source/css/_style/_layout/friends-simpleuser.styl +23 -0
- package/source/css/_style/_layout/friends-traditional.styl +81 -0
- package/source/css/{_layout → _style/_layout}/img.styl +0 -0
- package/source/css/_style/_layout/loading.styl +14 -0
- package/source/css/{_layout → _style/_layout}/main.styl +17 -7
- package/source/css/{_layout → _style/_layout}/md.styl +0 -0
- package/source/css/{_layout → _style/_layout}/pagination.styl +1 -1
- package/source/css/{_layout → _style/_layout}/posts.styl +2 -0
- package/source/css/{_first → _style/_layout}/search.styl +0 -103
- package/source/css/{_layout → _style/_layout}/sidebar.styl +24 -3
- package/source/css/{_layout → _style/_layout}/snackbar.styl +0 -0
- package/source/css/{_layout → _style/_layout}/toc.styl +1 -1
- package/source/css/{_layout → _style/_layout}/video.styl +0 -0
- package/source/css/_style/_plugins/_dark/dark_async.styl +50 -0
- package/source/css/{_plugins/dark.styl → _style/_plugins/_dark/dark_plugins.styl} +80 -76
- package/source/css/_style/_plugins/_highlight/highlightjs/clipboard.styl +36 -0
- package/source/css/_style/_plugins/_highlight/highlightjs/color.styl +96 -0
- package/source/css/_style/_plugins/_highlight/highlightjs/index.styl +102 -0
- package/source/css/_style/_plugins/_highlight/highlightjs/language.styl +63 -0
- package/source/css/_style/_plugins/_highlight/index.styl +1 -0
- package/source/css/_style/_plugins/_highlight/prismjs/clipboard.styl +33 -0
- package/source/css/_style/_plugins/_highlight/prismjs/index.styl +8 -0
- package/source/css/_style/_plugins/_highlight/prismjs/language.styl +63 -0
- package/source/css/_style/_plugins/_rightmenu/reading.styl +56 -0
- package/source/css/{_plugins → _style/_plugins/_rightmenu}/rightmenu.styl +20 -1
- package/source/css/{_plugins → _style/_plugins}/aplayer.styl +11 -0
- package/source/css/{_plugins → _style/_plugins}/cursor.styl +49 -9
- package/source/css/_style/_plugins/fontcolor.styl +79 -0
- package/source/css/{_plugins → _style/_plugins}/gitalk.styl +0 -0
- package/source/css/{_plugins → _style/_plugins}/index.styl +14 -6
- package/source/css/{_plugins → _style/_plugins}/mathjax.styl +0 -0
- package/source/css/_style/_plugins/message.styl +14 -0
- package/source/css/{_plugins → _style/_plugins}/pjaxanimate.styl +0 -0
- package/source/css/{_plugins → _style/_plugins}/valine.styl +0 -0
- package/source/css/_style/_tag-plugins/Readme.md +9 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/btns.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/checkbox.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/dropmenu.styl +0 -0
- package/source/css/{_plugins → _style/_tag-plugins}/fancybox.styl +8 -9
- package/source/css/{_tag-plugins → _style/_tag-plugins}/folding.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/frame.styl +0 -0
- package/source/css/_style/_tag-plugins/friends.styl +72 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/ghcard.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/image.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/link.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/media.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/note.styl +0 -0
- package/source/css/_style/_tag-plugins/sites.styl +87 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/span.styl +0 -0
- package/source/css/_style/_tag-plugins/swiper.styl +44 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/table.styl +0 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/tabs.styl +0 -0
- package/source/css/_style/_tag-plugins/tag.json +35 -0
- package/source/css/_style/_tag-plugins/text.styl +31 -0
- package/source/css/{_tag-plugins → _style/_tag-plugins}/timeline.styl +0 -0
- package/source/css/_style/index.styl +9 -0
- package/source/css/first.styl +19 -6
- package/source/css/message.css +6 -0
- package/source/css/style.styl +5 -4
- package/source/js/app.js +1021 -277
- package/source/js/plugins/aplayer.js +191 -0
- package/source/js/plugins/contributors.js +92 -0
- package/source/js/plugins/friends.js +93 -0
- package/source/js/plugins/parallax.js +191 -0
- package/source/js/plugins/rightMenu.js +560 -0
- package/source/js/plugins/sites.js +96 -0
- package/source/js/search/hexo.js +178 -374
- package/source/js/thirdparty/message.js +6 -0
- package/source/js/{valine.js → thirdparty/valine.js} +0 -0
- package/source/libs/@fancyapps/ui/LICENSE.md +8 -0
- package/source/libs/@fancyapps/ui/README.md +224 -0
- package/source/libs/@fancyapps/ui/dist/fancybox.css +1 -0
- package/source/libs/@fancyapps/ui/dist/fancybox.umd.js +2 -0
- package/source/libs/@fortawesome/fontawesome-free/LICENSE.txt +34 -0
- package/source/libs/@fortawesome/fontawesome-free/css/all.min.css +5 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.eot +0 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.svg +3637 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff +0 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.eot +0 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.svg +805 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff +0 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.eot +0 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.svg +5015 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff +0 -0
- package/source/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
- package/source/libs/aplayer/LICENSE +21 -0
- package/source/libs/aplayer/README.md +123 -0
- package/source/libs/aplayer/dist/APlayer.min.css +3 -0
- package/source/libs/aplayer/dist/APlayer.min.css.map +1 -0
- package/source/libs/aplayer/dist/APlayer.min.js +2 -0
- package/source/libs/aplayer/dist/APlayer.min.js.map +1 -0
- package/source/libs/busuanzi/LICENSE +21 -0
- package/source/libs/busuanzi/README.md +21 -0
- package/source/libs/busuanzi/js/busuanzi.pure.mini.js +1 -0
- package/source/libs/comment_typing/comment_typing.js +2 -0
- package/source/libs/flying-pages/flying-pages.min.js +1 -0
- package/source/libs/font-awesome-animation/font-awesome-animation.min.css +2 -0
- package/source/libs/github-markdown-css/github-markdown.css +1036 -0
- package/source/libs/github-markdown-css/license +9 -0
- package/source/libs/github-markdown-css/readme.md +63 -0
- package/source/libs/hls.js/LICENSE +28 -0
- package/source/libs/hls.js/README.md +442 -0
- package/source/libs/hls.js/dist/hls.min.js +2 -0
- package/source/libs/hls.js/dist/hls.min.js.map +1 -0
- package/source/libs/instant_page/instant_page.js +2 -0
- package/source/libs/jquery/LICENSE.txt +20 -0
- package/source/libs/jquery/README.md +62 -0
- package/source/libs/jquery/dist/jquery.min.js +2 -0
- package/source/libs/jquery/dist/jquery.min.map +1 -0
- package/source/libs/katex/README.md +119 -0
- package/source/libs/katex/contrib/auto-render.min.js +1 -0
- package/source/libs/katex/contrib/copy-tex.min.css +1 -0
- package/source/libs/katex/contrib/copy-tex.min.js +1 -0
- package/source/libs/katex/contrib/mathtex-script-type.min.js +1 -0
- package/source/libs/katex/contrib/mhchem.min.js +1 -0
- package/source/libs/katex/contrib/render-a11y-string.min.js +1 -0
- package/source/libs/katex/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Main-Bold.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Main-Italic.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Main-Regular.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Math-Italic.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Script-Regular.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/source/libs/katex/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/source/libs/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/source/libs/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/source/libs/katex/katex.min.css +1 -0
- package/source/libs/katex/katex.min.js +1 -0
- package/source/libs/marked/LICENSE.md +44 -0
- package/source/libs/marked/README.md +87 -0
- package/source/libs/marked/marked.min.js +6 -0
- package/source/libs/mathjax/LICENSE +202 -0
- package/source/libs/mathjax/README.md +237 -0
- package/source/libs/mathjax/es5/a11y/assistive-mml.js +1 -0
- package/source/libs/mathjax/es5/a11y/complexity.js +1 -0
- package/source/libs/mathjax/es5/a11y/explorer.js +1 -0
- package/source/libs/mathjax/es5/a11y/semantic-enrich.js +1 -0
- package/source/libs/mathjax/es5/adaptors/liteDOM.js +1 -0
- package/source/libs/mathjax/es5/core.js +1 -0
- package/source/libs/mathjax/es5/input/asciimath.js +1 -0
- package/source/libs/mathjax/es5/input/mml/entities.js +1 -0
- package/source/libs/mathjax/es5/input/mml/extensions/mml3.js +1 -0
- package/source/libs/mathjax/es5/input/mml/extensions/mml3.sef.json +1 -0
- package/source/libs/mathjax/es5/input/mml.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/action.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/all-packages.js +34 -0
- package/source/libs/mathjax/es5/input/tex/extensions/ams.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/amscd.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/autoload.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/bbox.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/boldsymbol.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/braket.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/bussproofs.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/cancel.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/centernot.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/color.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/colortbl.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/colorv2.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/configmacros.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/enclose.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/extpfeil.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/gensymb.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/html.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/mathtools.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/mhchem.js +34 -0
- package/source/libs/mathjax/es5/input/tex/extensions/newcommand.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/noerrors.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/noundefined.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/physics.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/require.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/setoptions.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/tagformat.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/textcomp.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/textmacros.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/unicode.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/upgreek.js +1 -0
- package/source/libs/mathjax/es5/input/tex/extensions/verb.js +1 -0
- package/source/libs/mathjax/es5/input/tex-base.js +1 -0
- package/source/libs/mathjax/es5/input/tex-full.js +34 -0
- package/source/libs/mathjax/es5/input/tex.js +1 -0
- package/source/libs/mathjax/es5/latest.js +1 -0
- package/source/libs/mathjax/es5/loader.js +1 -0
- package/source/libs/mathjax/es5/mml-chtml.js +1 -0
- package/source/libs/mathjax/es5/mml-svg.js +1 -0
- package/source/libs/mathjax/es5/node-main.js +1 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/tex.js +1 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
- package/source/libs/mathjax/es5/output/chtml.js +1 -0
- package/source/libs/mathjax/es5/output/svg/fonts/tex.js +1 -0
- package/source/libs/mathjax/es5/output/svg.js +1 -0
- package/source/libs/mathjax/es5/sre/mathmaps/de.js +125 -0
- package/source/libs/mathjax/es5/sre/mathmaps/en.js +131 -0
- package/source/libs/mathjax/es5/sre/mathmaps/es.js +122 -0
- package/source/libs/mathjax/es5/sre/mathmaps/fr.js +125 -0
- package/source/libs/mathjax/es5/sre/mathmaps/hi.js +125 -0
- package/source/libs/mathjax/es5/sre/mathmaps/it.js +125 -0
- package/source/libs/mathjax/es5/sre/mathmaps/nemeth.js +113 -0
- package/source/libs/mathjax/es5/sre/sre-node.js +11 -0
- package/source/libs/mathjax/es5/sre/sre_browser.js +999 -0
- package/source/libs/mathjax/es5/startup.js +1 -0
- package/source/libs/mathjax/es5/tex-chtml-full.js +34 -0
- package/source/libs/mathjax/es5/tex-chtml.js +1 -0
- package/source/libs/mathjax/es5/tex-mml-chtml.js +1 -0
- package/source/libs/mathjax/es5/tex-mml-svg.js +1 -0
- package/source/libs/mathjax/es5/tex-svg-full.js +34 -0
- package/source/libs/mathjax/es5/tex-svg.js +1 -0
- package/source/libs/mathjax/es5/ui/lazy.js +1 -0
- package/source/libs/mathjax/es5/ui/menu.js +1 -0
- package/source/libs/mathjax/es5/ui/safe.js +1 -0
- package/source/libs/meting/LICENSE +21 -0
- package/source/libs/meting/README.md +125 -0
- package/source/libs/meting/dist/Meting.min.js +1 -0
- package/source/libs/node-waves/LICENSE +21 -0
- package/source/libs/node-waves/README.md +23 -0
- package/source/libs/node-waves/dist/waves.min.css +7 -0
- package/source/libs/node-waves/dist/waves.min.js +2 -0
- package/source/libs/node-waves/dist/waves.min.js.map +1 -0
- package/source/libs/nprogress/License.md +19 -0
- package/source/libs/nprogress/Readme.md +197 -0
- package/source/libs/nprogress/nprogress.js +476 -0
- package/source/libs/pjax/LICENSE +20 -0
- package/source/libs/pjax/README.md +726 -0
- package/source/libs/pjax/pjax.min.js +1 -0
- package/source/libs/scrollreveal/README.md +126 -0
- package/source/libs/scrollreveal/dist/scrollreveal.min.js +12 -0
- package/source/libs/swiper/swiper-bundle.min.css +13 -0
- package/source/libs/swiper/swiper-bundle.min.js +14 -0
- package/source/libs/swiper/swiper-bundle.min.js.map +1 -0
- package/source/libs/vanilla-lazyload/LICENSE +21 -0
- package/source/libs/vanilla-lazyload/README.md +874 -0
- package/source/libs/vanilla-lazyload/dist/lazyload.min.js +1 -0
- package/source/media/cursor/circle.png +0 -0
- package/source/media/cursor/left_ptr.png +0 -0
- package/source/media/cursor/openhand.png +0 -0
- package/source/media/cursor/pointer.png +0 -0
- package/source/media/cursor/text.png +0 -0
- package/source/media/cursor/zoom-in.png +0 -0
- package/source/media/cursor/zoom-out.png +0 -0
- package/source/media/fonts/CascadiaCode/Cascadia.ttf +0 -0
- package/source/media/fonts/CascadiaCode/CascadiaMono.ttf +0 -0
- package/source/media/fonts/CascadiaCode/CascadiaMonoPL.ttf +0 -0
- package/source/media/fonts/CascadiaCode/CascadiaPL.ttf +0 -0
- package/source/media/fonts/CascadiaCode/README.md +9 -0
- package/source/media/fonts/Monaco/Monaco.ttf +0 -0
- package/source/media/fonts/UbuntuMono/UbuntuMono-Regular.ttf +0 -0
- package/source/media/fonts/VarelaRound/VarelaRound-Regular.ttf +0 -0
- package/source/media/org.volantis/README.md +19 -0
- package/source/media/org.volantis/blog/Logo-Cover@3x.png +0 -0
- package/source/media/org.volantis/blog/Logo-NavBar@3x.png +0 -0
- package/source/media/org.volantis/blog/favicon/android-chrome-192x192.png +0 -0
- package/source/media/org.volantis/blog/favicon/android-chrome-512x512.png +0 -0
- package/source/media/org.volantis/blog/favicon/apple-touch-icon.png +0 -0
- package/source/media/org.volantis/blog/favicon/browserconfig.xml +9 -0
- package/source/media/org.volantis/blog/favicon/favicon-16x16.png +0 -0
- package/source/media/org.volantis/blog/favicon/favicon-32x32.png +0 -0
- package/source/media/org.volantis/blog/favicon/favicon.ico +0 -0
- package/source/media/org.volantis/blog/favicon/mstile-150x150.png +0 -0
- package/source/media/org.volantis/blog/favicon/safari-pinned-tab.svg +26 -0
- package/source/media/org.volantis/blog/favicon/site.webmanifest +19 -0
- package/source/media/org.volantis/blog/logo/hexo.jpg +0 -0
- package/source/media/org.volantis/blog/qrcode/github@volantis.png +0 -0
- package/source/media/org.volantis/icon/1322024-social-media/001-google-drive.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/002-myspace.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/003-reddit.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/004-wattpad.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/005-dribbble.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/006-youtube.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/007-forrst.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/008-pinterest.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/009-flickr.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/010-facebook.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/011-team-viewer.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/012-blogger.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/013-grooveshark.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/014-whatsapp.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/015-instagram.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/016-skype.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/017-picasa.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/018-twitter.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/019-yahoo.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/020-rss.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/021-envato.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/022-soundcloud.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/023-kickstarter.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/024-snapchat.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/025-quora.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/026-yelp.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/027-slideshare.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/028-opera.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/029-github.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/030-last-fm.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/031-twitch.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/032-tumblr.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/033-spotify.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/034-foursquare.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/035-hangout.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/036-dropbox.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/037-vine.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/038-google-plus.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/039-path.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/040-vimeo.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/041-addthis.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/042-xing.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/043-stumbleupon.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/044-deviantart.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/045-telegram.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/046-vk.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/047-swarm.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/048-bebo.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/049-technorati.svg +1 -0
- package/source/media/org.volantis/icon/1322024-social-media/050-periscope.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/001-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/002-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/003-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/004-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/005-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/006-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/007-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/008-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/009-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/010-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/011-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/012-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/013-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/014-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/015-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/016-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/017-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/018-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/019-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/020-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/021-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/022-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/023-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/024-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/025-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/026-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/027-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/028-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/029-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/030-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/031-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/032-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/033-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/034-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/035-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/036-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/037-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/038-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/039-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/040-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/041-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/042-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/043-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/044-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/045-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/046-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/047-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/048-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/049-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2439351-arrows/050-arrows.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/001-download.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/002-upload.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/003-cloud.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/004-storage.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/005-downloading.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/006-upload.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/007-direct download.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/008-button.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/009-file.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/010-save file.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/011-save.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/012-image.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/013-bar.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/014-loading.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/015-button.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/016-save button.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/017-download.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/018-upload.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/019-download.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/020-upload.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/021-download.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/022-export.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/023-download.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/024-uploading.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/025-download.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/026-upload.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/027-upload.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/028-upload button.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/029-up arrow.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/030-up arrow.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/031-upload button.svg +1 -0
- package/source/media/org.volantis/icon/2820262-cloud-networking/032-upload file.svg +1 -0
- package/source/media/org.volantis/icon/725277-social-media/001-livejournal.svg +75 -0
- package/source/media/org.volantis/icon/725277-social-media/002-linkedin.svg +67 -0
- package/source/media/org.volantis/icon/725277-social-media/003-ello.svg +60 -0
- package/source/media/org.volantis/icon/725277-social-media/004-hi5.svg +85 -0
- package/source/media/org.volantis/icon/725277-social-media/005-skype.svg +90 -0
- package/source/media/org.volantis/icon/725277-social-media/006-quora.svg +77 -0
- package/source/media/org.volantis/icon/725277-social-media/007-daily-motion.svg +58 -0
- package/source/media/org.volantis/icon/725277-social-media/008-air-bnb.svg +77 -0
- package/source/media/org.volantis/icon/725277-social-media/009-buzznet.svg +55 -0
- package/source/media/org.volantis/icon/725277-social-media/010-meetup.svg +130 -0
- package/source/media/org.volantis/icon/725277-social-media/011-diaspora.svg +64 -0
- package/source/media/org.volantis/icon/725277-social-media/012-bebo.svg +59 -0
- package/source/media/org.volantis/icon/725277-social-media/013-filmaffinity.svg +89 -0
- package/source/media/org.volantis/icon/725277-social-media/014-tinder.svg +57 -0
- package/source/media/org.volantis/icon/725277-social-media/015-skyrock.svg +74 -0
- package/source/media/org.volantis/icon/725277-social-media/016-snapchat.svg +86 -0
- package/source/media/org.volantis/icon/725277-social-media/017-nextdoor.svg +54 -0
- package/source/media/org.volantis/icon/725277-social-media/018-reverbnation.svg +54 -0
- package/source/media/org.volantis/icon/725277-social-media/019-tripadvisor.svg +85 -0
- package/source/media/org.volantis/icon/725277-social-media/020-snapfish.svg +72 -0
- package/source/media/org.volantis/icon/725277-social-media/021-path.svg +73 -0
- package/source/media/org.volantis/icon/725277-social-media/022-etsy.svg +65 -0
- package/source/media/org.volantis/icon/725277-social-media/023-medium.svg +63 -0
- package/source/media/org.volantis/icon/725277-social-media/024-renren.svg +88 -0
- package/source/media/org.volantis/icon/725277-social-media/025-xing.svg +57 -0
- package/source/media/org.volantis/icon/725277-social-media/026-tout.svg +61 -0
- package/source/media/org.volantis/icon/725277-social-media/027-twitter.svg +75 -0
- package/source/media/org.volantis/icon/725277-social-media/028-howcast.svg +64 -0
- package/source/media/org.volantis/icon/725277-social-media/029-yelp.svg +88 -0
- package/source/media/org.volantis/icon/725277-social-media/030-classmates.svg +105 -0
- package/source/media/org.volantis/icon/725277-social-media/031-deviantart.svg +50 -0
- package/source/media/org.volantis/icon/725277-social-media/032-foursquare.svg +62 -0
- package/source/media/org.volantis/icon/725277-social-media/033-kickstarter.svg +56 -0
- package/source/media/org.volantis/icon/725277-social-media/034-dots.svg +76 -0
- package/source/media/org.volantis/icon/725277-social-media/035-tagged.svg +67 -0
- package/source/media/org.volantis/icon/725277-social-media/036-periscope.svg +65 -0
- package/source/media/org.volantis/icon/725277-social-media/037-stumbleupon.svg +66 -0
- package/source/media/org.volantis/icon/725277-social-media/038-youtube.svg +62 -0
- package/source/media/org.volantis/icon/725277-social-media/039-lastfm.svg +76 -0
- package/source/media/org.volantis/icon/725277-social-media/040-reddit.svg +77 -0
- package/source/media/org.volantis/icon/725277-social-media/041-weheartit.svg +66 -0
- package/source/media/org.volantis/icon/725277-social-media/042-pinterest.svg +81 -0
- package/source/media/org.volantis/icon/725277-social-media/043-viadeo.svg +74 -0
- package/source/media/org.volantis/icon/725277-social-media/044-taringa.svg +59 -0
- package/source/media/org.volantis/icon/725277-social-media/045-google-plus.svg +84 -0
- package/source/media/org.volantis/icon/725277-social-media/046-uber.svg +54 -0
- package/source/media/org.volantis/icon/725277-social-media/047-sina-weibo.svg +116 -0
- package/source/media/org.volantis/icon/725277-social-media/048-vimeo.svg +76 -0
- package/source/media/org.volantis/icon/725277-social-media/049-facebook.svg +55 -0
- package/source/media/org.volantis/icon/725277-social-media/050-vk.svg +77 -0
- package/source/media/org.volantis/icon/725277-social-media/051-badoo.svg +60 -0
- package/source/media/org.volantis/icon/725277-social-media/052-dribbble.svg +113 -0
- package/source/media/org.volantis/icon/725277-social-media/053-delicious.svg +45 -0
- package/source/media/org.volantis/icon/725277-social-media/054-soundcloud.svg +67 -0
- package/source/media/org.volantis/icon/725277-social-media/055-tumblr.svg +54 -0
- package/source/media/org.volantis/icon/725277-social-media/056-myspace.svg +69 -0
- package/source/media/org.volantis/icon/725277-social-media/057-spotify.svg +88 -0
- package/source/media/org.volantis/icon/725277-social-media/058-flickr.svg +54 -0
- package/source/media/org.volantis/icon/725277-social-media/059-behance.svg +83 -0
- package/source/media/org.volantis/icon/725277-social-media/060-instagram.svg +61 -0
- package/source/media/org.volantis/icon/ui-interface-21/plus.svg +61 -0
- package/source/media/org.volantis/logo/128/facebook.png +0 -0
- package/source/media/org.volantis/logo/128/github.png +0 -0
- package/source/media/org.volantis/logo/128/google_icon.png +0 -0
- package/source/media/org.volantis/logo/128/google_logo.png +0 -0
- package/source/media/org.volantis/logo/128/googleplus.png +0 -0
- package/source/media/org.volantis/logo/128/linkedin.png +0 -0
- package/source/media/org.volantis/logo/128/qq.png +0 -0
- package/source/media/org.volantis/logo/128/qrcode.png +0 -0
- package/source/media/org.volantis/logo/128/qzone.png +0 -0
- package/source/media/org.volantis/logo/128/telegram.png +0 -0
- package/source/media/org.volantis/logo/128/twitter.png +0 -0
- package/source/media/org.volantis/logo/128/wechat.png +0 -0
- package/source/media/org.volantis/logo/128/weibo.png +0 -0
- package/source/media/org.volantis/logo/128/youdao.png +0 -0
- package/source/media/org.volantis/logo/256/chrome.png +0 -0
- package/source/media/org.volantis/logo/256/facebook.png +0 -0
- package/source/media/org.volantis/logo/256/firefox.png +0 -0
- package/source/media/org.volantis/logo/256/github.png +0 -0
- package/source/media/org.volantis/logo/256/google_icon.png +0 -0
- package/source/media/org.volantis/logo/256/google_logo.png +0 -0
- package/source/media/org.volantis/logo/256/googleplus.png +0 -0
- package/source/media/org.volantis/logo/256/linkedin.png +0 -0
- package/source/media/org.volantis/logo/256/qq.png +0 -0
- package/source/media/org.volantis/logo/256/qrcode.png +0 -0
- package/source/media/org.volantis/logo/256/qzone.png +0 -0
- package/source/media/org.volantis/logo/256/safari.png +0 -0
- package/source/media/org.volantis/logo/256/telegram.png +0 -0
- package/source/media/org.volantis/logo/256/twitter.png +0 -0
- package/source/media/org.volantis/logo/256/wechat.png +0 -0
- package/source/media/org.volantis/logo/256/weibo.png +0 -0
- package/source/media/org.volantis/logo/256/youdao.png +0 -0
- package/source/media/org.volantis/logo/64/chrome.png +0 -0
- package/source/media/org.volantis/logo/64/facebook.png +0 -0
- package/source/media/org.volantis/logo/64/firefox.png +0 -0
- package/source/media/org.volantis/logo/64/github.png +0 -0
- package/source/media/org.volantis/logo/64/google_icon.png +0 -0
- package/source/media/org.volantis/logo/64/google_logo.png +0 -0
- package/source/media/org.volantis/logo/64/googleplus.png +0 -0
- package/source/media/org.volantis/logo/64/linkedin.png +0 -0
- package/source/media/org.volantis/logo/64/qq.png +0 -0
- package/source/media/org.volantis/logo/64/qrcode.png +0 -0
- package/source/media/org.volantis/logo/64/qzone.png +0 -0
- package/source/media/org.volantis/logo/64/safari.png +0 -0
- package/source/media/org.volantis/logo/64/telegram.png +0 -0
- package/source/media/org.volantis/logo/64/twitter.png +0 -0
- package/source/media/org.volantis/logo/64/wechat.png +0 -0
- package/source/media/org.volantis/logo/64/weibo.png +0 -0
- package/source/media/org.volantis/logo/64/youdao.png +0 -0
- package/source/media/org.volantis/placeholder/c617bfd2497fcea598e621413e315c368f8d8e.svg +23 -0
- package/source/media/org.volantis/placeholder/d570170f4f12e1ee829ca0e85a7dffeb77343a.svg +29 -0
- package/source/media/org.volantis/placeholder/f107c4d98691c0e2f4592acf09f83acb46fdf7.svg +20 -0
- package/source/media/placeholder/404/1c830bfcd517d.svg +70 -0
- package/source/media/placeholder/LICENSE +21 -0
- package/source/media/placeholder/README.md +8 -0
- package/source/media/placeholder/arrow/064b95430caf4.svg +11 -0
- package/source/media/placeholder/arrow/f049bbd4e88ec.svg +11 -0
- package/source/media/placeholder/avatar/rect/2922565.svg +1 -0
- package/source/media/placeholder/avatar/round/3442055.svg +1 -0
- package/source/media/placeholder/avatar/round/3442075.svg +1 -0
- package/source/media/placeholder/avatar/round/3442091.svg +1 -0
- package/source/media/placeholder/avatar/round/547413.svg +116 -0
- package/source/media/placeholder/avatar/round/547420.svg +108 -0
- package/source/media/placeholder/avatar/round/rainbow64@2x.webp +0 -0
- package/source/media/placeholder/avatar/round/rainbow64@3x.webp +0 -0
- package/source/media/placeholder/badge/3279dd441df8b.svg +1 -0
- package/source/media/placeholder/cover/76b86c0226ffd.svg +95 -0
- package/source/media/placeholder/frame/iphone11.svg +1 -0
- package/source/media/placeholder/image/2659360.svg +1 -0
- package/source/media/placeholder/link/8f277b4ee0ecd.svg +1 -0
- package/source/media/placeholder/social/08a41b181ce68.svg +27 -0
- package/source/media/placeholder/social/25678f144c438.svg +65 -0
- package/source/media/placeholder/social/3616429.svg +1 -0
- package/source/media/placeholder/social/3845874.svg +114 -0
- package/source/media/placeholder/social/80c07e4dbb303.svg +1 -0
- package/source/media/placeholder/social/8411ed322ced6.svg +21 -0
- package/source/media/placeholder/social/942ebbf1a4b91.svg +43 -0
- package/source/media/placeholder/social/a1b00e20f425d.svg +39 -0
- package/source/media/placeholder/social/b32ef3da1162a.svg +55 -0
- package/source/media/placeholder/social/cf1ae151f9e83.svg +110 -0
- package/source/media/twemoji/LICENSE +19 -0
- package/source/media/twemoji/README.md +256 -0
- package/source/media/twemoji/assets/svg/1f389.svg +1 -0
- package/source/media/twemoji/assets/svg/1f396.svg +1 -0
- package/source/media/twemoji/assets/svg/1f4cc.svg +1 -0
- package/source/media/twemoji/assets/svg/1f4f0.svg +1 -0
- package/source/media/twemoji/assets/svg/1f516.svg +1 -0
- package/source/media/twemoji/assets/svg/1f5c3.svg +1 -0
- package/source/media/twemoji/assets/svg/1f9ec.svg +1 -0
- package/.eslintrc.json +0 -111
- package/layout/_partial/rightmenu.ejs +0 -204
- package/layout/_partial/scripts/cover.ejs +0 -45
- package/layout/_partial/scripts/darkmode.ejs +0 -83
- package/layout/_partial/scripts/issues.ejs +0 -15
- package/layout/_partial/scripts/loadfunction.ejs +0 -72
- package/layout/_partial/scripts/search.ejs +0 -62
- package/layout/_partial/snackbar.ejs +0 -22
- package/layout/_third-party/analytics/script.ejs +0 -24
- package/layout/_third-party/aplayer/script.ejs +0 -24
- package/layout/_third-party/clipboard/script.ejs +0 -53
- package/layout/_third-party/comments/disqus/layout.ejs +0 -5
- package/layout/_third-party/comments/disqus/script.ejs +0 -90
- package/layout/_third-party/comments/disqusjs/layout.ejs +0 -1
- package/layout/_third-party/comments/disqusjs/script.ejs +0 -37
- package/layout/_third-party/comments/gitalk/layout.ejs +0 -1
- package/layout/_third-party/comments/gitalk/script.ejs +0 -22
- package/layout/_third-party/comments/hashover/layout.ejs +0 -2
- package/layout/_third-party/comments/hashover/script.ejs +0 -1
- package/layout/_third-party/comments/isso/layout.ejs +0 -1
- package/layout/_third-party/comments/isso/script.ejs +0 -1
- package/layout/_third-party/comments/livere/layout.ejs +0 -3
- package/layout/_third-party/comments/livere/script.ejs +0 -10
- package/layout/_third-party/comments/minivaline/layout.ejs +0 -3
- package/layout/_third-party/comments/minivaline/script.ejs +0 -36
- package/layout/_third-party/comments/twikoo/layout.ejs +0 -3
- package/layout/_third-party/comments/twikoo/script.ejs +0 -34
- package/layout/_third-party/comments/valine/layout.ejs +0 -3
- package/layout/_third-party/comments/vssue/layout.ejs +0 -1
- package/layout/_third-party/comments/vssue/script.ejs +0 -22
- package/layout/_third-party/comments/waline/layout.ejs +0 -3
- package/layout/_third-party/comments/waline/script.ejs +0 -33
- package/layout/_third-party/fancybox/script.ejs +0 -50
- package/layout/_third-party/killOldVersionsOfIE/script.ejs +0 -7
- package/layout/_third-party/pjax/index.ejs +0 -128
- package/layout/_third-party/pjax/pdata.ejs +0 -47
- package/layout/_third-party/scrollreveal/script.ejs +0 -20
- package/layout/_third-party/tidio/script.ejs +0 -3
- package/layout/artitalk.ejs +0 -13
- package/layout/bb.ejs +0 -10
- package/package-lock.json +0 -916
- package/scripts/tags/issues.js +0 -41
- package/source/css/_highlight/index.styl +0 -316
- package/source/css/_layout/friends.styl +0 -79
- package/source/css/_plugins/clipboard.styl +0 -37
- package/source/css/_plugins/darkmode.styl +0 -9
- package/source/css/_plugins/twikoo.styl +0 -21
- package/source/css/_tag-plugins/simpleuser.styl +0 -21
- package/source/css/_tag-plugins/site-card.styl +0 -70
- package/source/js/aplayer.js +0 -159
- package/source/js/issues.js +0 -186
- package/source/js/search/algolia.js +0 -344
- package/source/js/search/azure.js +0 -355
- package/source/js/search/baidu.js +0 -340
- package/source/js/search/google.js +0 -339
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
# MathJax
|
|
2
|
+
## Beautiful math in all browsers
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+
<a href="http://www.numfocus.org"></a>
|
|
8
|
+

|
|
9
|
+

|
|
10
|
+

|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
MathJax is an open-source JavaScript display engine for LaTeX, MathML,
|
|
14
|
+
and AsciiMath notation that works in all modern browsers. It was
|
|
15
|
+
designed with the goal of consolidating the recent advances in web
|
|
16
|
+
technologies into a single, definitive, math-on-the-web platform
|
|
17
|
+
supporting the major browsers and operating systems. It requires no
|
|
18
|
+
setup on the part of the user (no plugins to download or software to
|
|
19
|
+
install), so the page author can write web documents that include
|
|
20
|
+
mathematics and be confident that users will be able to view it
|
|
21
|
+
naturally and easily. Simply include MathJax and some mathematics in
|
|
22
|
+
a web page, and MathJax does the rest.
|
|
23
|
+
|
|
24
|
+
Some of the main features of MathJax include:
|
|
25
|
+
|
|
26
|
+
- High-quality display of LaTeX, MathML, and AsciiMath notation in HTML pages
|
|
27
|
+
|
|
28
|
+
- Supported in most browsers with no plug-ins, extra fonts, or special
|
|
29
|
+
setup for the reader
|
|
30
|
+
|
|
31
|
+
- Easy for authors, flexible for publishers, extensible for developers
|
|
32
|
+
|
|
33
|
+
- Supports math accessibility, cut-and-paste interoperability, and other
|
|
34
|
+
advanced functionality
|
|
35
|
+
|
|
36
|
+
- Powerful API for integration with other web applications
|
|
37
|
+
|
|
38
|
+
See <http://www.mathjax.org/> for additional details about MathJax,
|
|
39
|
+
and <https://docs.mathjax.org> for the MathJax documentation.
|
|
40
|
+
|
|
41
|
+
## MathJax Components
|
|
42
|
+
|
|
43
|
+
MathJax version 3 uses files called *components* that contain the
|
|
44
|
+
various MathJax modules that you can include in your web pages or
|
|
45
|
+
access on a server through NodeJS. Some components combine all the
|
|
46
|
+
pieces you need to run MathJax with one or more input formats and a
|
|
47
|
+
particular output format, while other components are pieces that can
|
|
48
|
+
be loaded on demand when needed, or by a configuration that specifies
|
|
49
|
+
the pieces you want to combine in a custom way. For usage
|
|
50
|
+
instructions, see the [MathJax documentation](https://docs.mathjax.org).
|
|
51
|
+
|
|
52
|
+
Components provide a convenient packaging of MathJax's modules, but it
|
|
53
|
+
is possible for you to form your own custom components, or to use
|
|
54
|
+
MathJax's modules directly in a node application on a server. There
|
|
55
|
+
are [web examples](https://github.com/mathjax/MathJax-demos-web)
|
|
56
|
+
showing how to use MathJax in web pages and how to build your own
|
|
57
|
+
components, and [node
|
|
58
|
+
examples](https://github.com/mathjax/MathJax-demos-node) illustrating
|
|
59
|
+
how to use components in node applications or call MathJax modules
|
|
60
|
+
directly.
|
|
61
|
+
|
|
62
|
+
## What's in this Repository
|
|
63
|
+
|
|
64
|
+
This repository contains only the component files for MathJax, not the
|
|
65
|
+
source code for MathJax (which are available in a separate [MathJax
|
|
66
|
+
source repository](https://github.com/mathjax/MathJax-src/)). These
|
|
67
|
+
component files are the ones served by the CDNs that offer MathJax to
|
|
68
|
+
the web. In version 2, the files used on the web were also the source
|
|
69
|
+
files for MathJax, but in version 3, the source files are no longer on
|
|
70
|
+
the CDN, as they are not what are run in the browser.
|
|
71
|
+
|
|
72
|
+
The components are stored in the `es5` directory, and are in ES5 format
|
|
73
|
+
for the widest possible compatibility. In the future, we may make an
|
|
74
|
+
`es6` directory containing ES6 versions of the components.
|
|
75
|
+
|
|
76
|
+
## Installation and Use
|
|
77
|
+
|
|
78
|
+
### Using MathJax components from a CDN on the web
|
|
79
|
+
|
|
80
|
+
If you are loading MathJax from a CDN into a web page, there is no
|
|
81
|
+
need to install anything. Simply use a `script` tag that loads
|
|
82
|
+
MathJax from the CDN. E.g.,
|
|
83
|
+
|
|
84
|
+
``` html
|
|
85
|
+
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
See the [MathJax
|
|
89
|
+
documentation](https://docs.mathjax.org/en/latest/index.html#browser-components),
|
|
90
|
+
the [MathJax Web Demos](https://github.com/mathjax/MathJax-demos-web),
|
|
91
|
+
and the [MathJax Component
|
|
92
|
+
Repository](https://github.com/mathjax/MathJax-demos-web) for more information.
|
|
93
|
+
|
|
94
|
+
### Hosting your own copy of the MathJax Components
|
|
95
|
+
|
|
96
|
+
If you want to host MathJax from your own server, you can do so by
|
|
97
|
+
installing the `mathjax` package using `npm` and moving the `es5`
|
|
98
|
+
directory to an appropriate location on your server:
|
|
99
|
+
|
|
100
|
+
``` bash
|
|
101
|
+
npm install mathjax@3
|
|
102
|
+
mv node_modules/mathjax/es5 <path-to-server-location>/mathjax
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Note that we are still making updates to version 2, so include `@3`
|
|
106
|
+
when you install, since the latest chronological version may not be
|
|
107
|
+
version 3.
|
|
108
|
+
|
|
109
|
+
Alternatively, you can get the files via GitHub:
|
|
110
|
+
|
|
111
|
+
``` bash
|
|
112
|
+
git clone https://github.com/mathjax/MathJax.git mj-tmp
|
|
113
|
+
mv mj-tmp/es5 <path-to-server-location>/mathjax
|
|
114
|
+
rm -rf mj-tmp
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Then (in either case) you can use a script tag like the following:
|
|
118
|
+
|
|
119
|
+
``` html
|
|
120
|
+
<script id="MathJax-script" async src="<url-to-your-site>/mathjax/tex-chtml.js"></script>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
where `<url-to-your-site>` is replaced by the URL to the location
|
|
124
|
+
where you moved the MathJax files above.
|
|
125
|
+
|
|
126
|
+
See the
|
|
127
|
+
[documentation](https://docs.mathjax.org/en/latest/web/hosting.html)
|
|
128
|
+
for details.
|
|
129
|
+
|
|
130
|
+
### Using MathJax components in a node application
|
|
131
|
+
|
|
132
|
+
To use MathJax components in a node application, install the `mathjax` package:
|
|
133
|
+
|
|
134
|
+
``` bash
|
|
135
|
+
npm install mathjax@3
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
(we are still making updates to version 2, so you should include `@3`
|
|
139
|
+
since the latest chronological version may not be version 3).
|
|
140
|
+
|
|
141
|
+
Then require `mathjax` within your application:
|
|
142
|
+
|
|
143
|
+
```js
|
|
144
|
+
require('mathjax').init({ ... }).then((MathJax) => { ... });
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
where the first `{ ... }` is a MathJax configuration, and the second
|
|
148
|
+
`{ ... }` is the code to run after MathJax has been loaded. E.g.
|
|
149
|
+
|
|
150
|
+
```js
|
|
151
|
+
require('mathjax').init({
|
|
152
|
+
loader: {load: ['input/tex', 'output/svg']}
|
|
153
|
+
}).then((MathJax) => {
|
|
154
|
+
const svg = MathJax.tex2svg('\\frac{1}{x^2-1}', {display: true});
|
|
155
|
+
console.log(MathJax.startup.adaptor.outerHTML(svg));
|
|
156
|
+
}).catch((err) => console.log(err.message));
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
**Note:** this technique is for node-based application only, not for
|
|
160
|
+
browser applications. This method sets up an alternative DOM
|
|
161
|
+
implementation, which you don't need in the browser, and tells MathJax
|
|
162
|
+
to use node's `require()` command to load external modules. This
|
|
163
|
+
setup will not work properly in the browser, even if you webpack it or
|
|
164
|
+
bundle it in other ways.
|
|
165
|
+
|
|
166
|
+
See the
|
|
167
|
+
[documentation](https://docs.mathjax.org/en/latest/index.html#server-nodejs)
|
|
168
|
+
and the [MathJax Node
|
|
169
|
+
Repository](https://github.com/mathjax/MathJax-demos-node) for more details.
|
|
170
|
+
|
|
171
|
+
## Reducing the Size of the Components Directory
|
|
172
|
+
|
|
173
|
+
Since the `es5` directory contains *all* the component files, so if
|
|
174
|
+
you are only planning one use one configuration, you can reduce the
|
|
175
|
+
size of the MathJax directory by removing unused components. For
|
|
176
|
+
example, if you are using the `tex-chtml.js` component, then you can
|
|
177
|
+
remove the `tex-mml-chtml.js`, `tex-svg.js`, `tex-mml-svg.js`,
|
|
178
|
+
`tex-chtml-full.js`, and `tex-svg-full.js` configurations, which will
|
|
179
|
+
save considerable space. Indeed, you should be able to remove
|
|
180
|
+
everything other than `tex-chtml.js`, and the `input/tex/extensions`,
|
|
181
|
+
`output/chtml/fonts/woff-v2`, `adaptors`, `a11y`, and `sre`
|
|
182
|
+
directories. If you are using the results only on the web, you can
|
|
183
|
+
remove `adaptors` as well.
|
|
184
|
+
|
|
185
|
+
If you are not using A11Y support (e.g., speech generation, or
|
|
186
|
+
semantic enrichment), then you can remove `a11y` and `sre` as well
|
|
187
|
+
(though in this case you may need to disable the assistive tools in
|
|
188
|
+
the MathJax contextual menu in order to avoid MathJax trying to load
|
|
189
|
+
them when they aren't there).
|
|
190
|
+
|
|
191
|
+
If you are using SVG rather than CommonHTML output (e.g., `tex-svg.js`
|
|
192
|
+
rather than `tex-chtml.js`), you can remove the
|
|
193
|
+
`output/chtml/fonts/woff-v2` directory. If you are using MathML input
|
|
194
|
+
rather than TeX (e.g., `mml-chtml.js` rather than `tex-chtml.js`),
|
|
195
|
+
then you can remove `input/tex/extensions` as well.
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
## The Component Files and Pull Requests
|
|
199
|
+
|
|
200
|
+
The `es5` directory is generated automatically from the contents of the
|
|
201
|
+
MathJax source repository. You can rebuild the components using the
|
|
202
|
+
command
|
|
203
|
+
|
|
204
|
+
``` bash
|
|
205
|
+
npm run make-es5 --silent
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
Note that since the contents of this repository are generated
|
|
209
|
+
automatically, you should not submit pull requests that modify the
|
|
210
|
+
contents of the `es5` directory. If you wish to submit a modification
|
|
211
|
+
to MathJax, you should make a pull request in the [MathJax source
|
|
212
|
+
repository](https://github.com/mathjax/MathJax-src).
|
|
213
|
+
|
|
214
|
+
## MathJax Community
|
|
215
|
+
|
|
216
|
+
The main MathJax website is <http://www.mathjax.org>, and it includes
|
|
217
|
+
announcements and other important information. A [MathJax user
|
|
218
|
+
forum](http://groups.google.com/group/mathjax-users) for asking
|
|
219
|
+
questions and getting assistance is hosted at Google, and the [MathJax
|
|
220
|
+
bug tracker](https://github.com/mathjax/MathJax/issues) is hosted
|
|
221
|
+
at GitHub.
|
|
222
|
+
|
|
223
|
+
Before reporting a bug, please check that it has not already been
|
|
224
|
+
reported. Also, please use the bug tracker (rather than the help
|
|
225
|
+
forum) for reporting bugs, and use the user's forum (rather than the
|
|
226
|
+
bug tracker) for questions about how to use MathJax.
|
|
227
|
+
|
|
228
|
+
## MathJax Resources
|
|
229
|
+
|
|
230
|
+
* [MathJax Documentation](https://docs.mathjax.org)
|
|
231
|
+
* [MathJax Components](https://github.com/mathjax/MathJax)
|
|
232
|
+
* [MathJax Source Code](https://github.com/mathjax/MathJax-src)
|
|
233
|
+
* [MathJax Web Examples](https://github.com/mathjax/MathJax-demos-web)
|
|
234
|
+
* [MathJax Node Examples](https://github.com/mathjax/MathJax-demos-node)
|
|
235
|
+
* [MathJax Bug Tracker](https://github.com/mathjax/MathJax/issues)
|
|
236
|
+
* [MathJax Users' Group](http://groups.google.com/group/mathjax-users)
|
|
237
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){"use strict";var t,e,i={62:function(t,e,i){var o,s=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},r=this&&this.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var o,s,n=i.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(o=n.next()).done;)r.push(o.value)}catch(t){s={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(s)throw s.error}}return r},a=this&&this.__spreadArray||function(t,e){for(var i=0,o=e.length,s=t.length;i<o;i++,s++)t[s]=e[i];return t},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AssistiveMmlHandler=e.AssistiveMmlMathDocumentMixin=e.AssistiveMmlMathItemMixin=e.LimitedMmlVisitor=void 0;var p=i(769),u=i(433),c=i(77),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getAttributes=function(e){return t.prototype.getAttributes.call(this,e).replace(/ ?id=".*?"/,"")},e}(u.SerializedMmlVisitor);function m(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.assistiveMml=function(t,e){if(void 0===e&&(e=!1),!(this.state()>=p.STATE.ASSISTIVEMML)){if(!this.isEscaped&&(t.options.enableAssistiveMml||e)){var i=t.adaptor,o=t.toMML(this.root).replace(/\n */g,"").replace(/<!--.*?-->/g,""),s=i.firstChild(i.body(i.parse(o,"text/html"))),n=i.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[s]);i.setAttribute(i.firstChild(this.typesetRoot),"aria-hidden","true"),i.setStyle(this.typesetRoot,"position","relative"),i.append(this.typesetRoot,n)}this.state(p.STATE.ASSISTIVEMML)}},e}(t)}function M(t){var e;return(e=function(t){function e(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=t.apply(this,a([],r(e)))||this,s=o.constructor,n=s.ProcessBits;return n.has("assistive-mml")||n.allocate("assistive-mml"),o.visitor=new h(o.mmlFactory),o.options.MathItem=m(o.options.MathItem),"addStyles"in o&&o.addStyles(s.assistiveStyles),o}return s(e,t),e.prototype.toMML=function(t){return this.visitor.visitTree(t)},e.prototype.assistiveMml=function(){var t,e;if(!this.processed.isSet("assistive-mml")){try{for(var i=l(this.math),o=i.next();!o.done;o=i.next()){o.value.assistiveMml(this)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.processed.set("assistive-mml")}return this},e.prototype.state=function(e,i){return void 0===i&&(i=!1),t.prototype.state.call(this,e,i),e<p.STATE.ASSISTIVEMML&&this.processed.clear("assistive-mml"),this},e}(t)).OPTIONS=n(n({},t.OPTIONS),{enableAssistiveMml:!0,renderActions:c.expandable(n(n({},t.OPTIONS.renderActions),{assistiveMml:[p.STATE.ASSISTIVEMML]}))}),e.assistiveStyles={"mjx-assistive-mml":{position:"absolute !important",top:"0px",left:"0px",clip:"rect(1px, 1px, 1px, 1px)",padding:"1px 0px 0px 0px !important",border:"0px !important",display:"block !important",width:"auto !important",overflow:"hidden !important","-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},'mjx-assistive-mml[display="block"]':{width:"100% !important"}},e}e.LimitedMmlVisitor=h,p.newState("ASSISTIVEMML",153),e.AssistiveMmlMathItemMixin=m,e.AssistiveMmlMathDocumentMixin=M,e.AssistiveMmlHandler=function(t){return t.documentClass=M(t.documentClass),t}},723:function(t,e){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,e.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},769:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.protoItem=MathJax._.core.MathItem.protoItem,e.AbstractMathItem=MathJax._.core.MathItem.AbstractMathItem,e.STATE=MathJax._.core.MathItem.STATE,e.newState=MathJax._.core.MathItem.newState},433:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.DATAMJX=MathJax._.core.MmlTree.SerializedMmlVisitor.DATAMJX,e.toEntity=MathJax._.core.MmlTree.SerializedMmlVisitor.toEntity,e.SerializedMmlVisitor=MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor},77:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=MathJax._.util.Options.isObject,e.APPEND=MathJax._.util.Options.APPEND,e.REMOVE=MathJax._.util.Options.REMOVE,e.OPTIONS=MathJax._.util.Options.OPTIONS,e.Expandable=MathJax._.util.Options.Expandable,e.expandable=MathJax._.util.Options.expandable,e.makeArray=MathJax._.util.Options.makeArray,e.keys=MathJax._.util.Options.keys,e.copy=MathJax._.util.Options.copy,e.insert=MathJax._.util.Options.insert,e.defaultOptions=MathJax._.util.Options.defaultOptions,e.userOptions=MathJax._.util.Options.userOptions,e.selectOptions=MathJax._.util.Options.selectOptions,e.selectOptionsFromKeys=MathJax._.util.Options.selectOptionsFromKeys,e.separateOptions=MathJax._.util.Options.separateOptions,e.lookup=MathJax._.util.Options.lookup}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return i[t].call(n.exports,n,n.exports,s),n.exports}t=s(723),e=s(62),(0,t.r8)({_:{a11y:{"assistive-mml":e}}}),MathJax.startup&&MathJax.startup.extendHandler((function(t){return(0,e.AssistiveMmlHandler)(t)}))}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){"use strict";var t,e,o,i,r,n,l={589:function(t,e,o){var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},l=this&&this.__read||function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,r,n=o.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(i=n.next()).done;)l.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return l},s=this&&this.__spreadArray||function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ComplexityHandler=e.ComplexityMathDocumentMixin=e.ComplexityMathItemMixin=void 0;var p=o(769),c=o(511),u=o(175),h=o(77);function y(t,e){return function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return r(o,t),o.prototype.complexity=function(t,o){void 0===o&&(o=!1),this.state()>=p.STATE.COMPLEXITY||(this.isEscaped||!t.options.enableComplexity&&!o||(this.enrich(t,!0),e(this.root)),this.state(p.STATE.COMPLEXITY))},o}(t)}function d(t){var e;return(e=function(t){function e(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var i=t.apply(this,s([],l(e)))||this,r=i.constructor.ProcessBits;r.has("complexity")||r.allocate("complexity");var n=h.selectOptionsFromKeys(i.options,i.options.ComplexityVisitor.OPTIONS);i.complexityVisitor=new i.options.ComplexityVisitor(i.mmlFactory,n);var a=function(t){return i.complexityVisitor.visitTree(t)};return i.options.MathItem=y(i.options.MathItem,a),i}return r(e,t),e.prototype.complexity=function(){var t,e;if(!this.processed.isSet("complexity")){if(this.options.enableComplexity)try{for(var o=a(this.math),i=o.next();!i.done;i=o.next()){i.value.complexity(this)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}this.processed.set("complexity")}return this},e.prototype.state=function(e,o){return void 0===o&&(o=!1),t.prototype.state.call(this,e,o),e<p.STATE.COMPLEXITY&&this.processed.clear("complexity"),this},e}(t)).OPTIONS=n(n(n({},t.OPTIONS),u.ComplexityVisitor.OPTIONS),{enableComplexity:!0,ComplexityVisitor:u.ComplexityVisitor,renderActions:h.expandable(n(n({},t.OPTIONS.renderActions),{complexity:[p.STATE.COMPLEXITY]}))}),e}p.newState("COMPLEXITY",40),e.ComplexityMathItemMixin=y,e.ComplexityMathDocumentMixin=d,e.ComplexityHandler=function(t,e){return void 0===e&&(e=null),!t.documentClass.prototype.enrich&&e&&(t=c.EnrichHandler(t,e)),t.documentClass=d(t.documentClass),t}},850:function(t,e){var o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Collapse=void 0;var i=function(){function t(e){var o=this;this.cutoff={identifier:3,number:3,text:10,infixop:15,relseq:15,multirel:15,fenced:18,bigop:20,integral:20,fraction:12,sqrt:9,root:12,vector:15,matrix:15,cases:15,superscript:9,subscript:9,subsup:9,punctuated:{endpunct:t.NOCOLLAPSE,startpunct:t.NOCOLLAPSE,value:12}},this.marker={identifier:"x",number:"#",text:"...",appl:{"limit function":"lim",value:"f()"},fraction:"/",sqrt:"\u221a",root:"\u221a",superscript:"\u25fd\u02d9",subscript:"\u25fd.",subsup:"\u25fd:",vector:{binomial:"(:)",determinant:"|:|",value:"\u27e8:\u27e9"},matrix:{squarematrix:"[::]",rowvector:"\u27e8\u22ef\u27e9",columnvector:"\u27e8\u22ee\u27e9",determinant:"|::|",value:"(::)"},cases:"{:",infixop:{addition:"+",subtraction:"\u2212",multiplication:"\u22c5",implicit:"\u22c5",value:"+"},punctuated:{text:"...",value:","}},this.collapse=new Map([["fenced",function(t,e){return(e=o.uncollapseChild(e,t,1))>o.cutoff.fenced&&"leftright"===t.attributes.get("data-semantic-role")&&(e=o.recordCollapse(t,e,o.getText(t.childNodes[0])+o.getText(t.childNodes[t.childNodes.length-1]))),e}],["appl",function(t,e){if(o.canUncollapse(t,2,2)){e=o.complexity.visitNode(t,!1);var i=o.marker.appl,r=i[t.attributes.get("data-semantic-role")]||i.value;e=o.recordCollapse(t,e,r)}return e}],["sqrt",function(t,e){return(e=o.uncollapseChild(e,t,0))>o.cutoff.sqrt&&(e=o.recordCollapse(t,e,o.marker.sqrt)),e}],["root",function(t,e){return(e=o.uncollapseChild(e,t,0,2))>o.cutoff.sqrt&&(e=o.recordCollapse(t,e,o.marker.sqrt)),e}],["enclose",function(t,e){if(1===o.splitAttribute(t,"children").length){var i=o.canUncollapse(t,1);if(i){var r=i.getProperty("collapse-marker");o.unrecordCollapse(i),e=o.recordCollapse(t,o.complexity.visitNode(t,!1),r)}}return e}],["bigop",function(t,e){if(e>o.cutoff.bigop||!t.isKind("mo")){var i=o.splitAttribute(t,"content").pop(),r=o.findChildText(t,i);e=o.recordCollapse(t,e,r)}return e}],["integral",function(t,e){if(e>o.cutoff.integral||!t.isKind("mo")){var i=o.splitAttribute(t,"content").pop(),r=o.findChildText(t,i);e=o.recordCollapse(t,e,r)}return e}],["relseq",function(t,e){if(e>o.cutoff.relseq){var i=o.splitAttribute(t,"content")[0],r=o.findChildText(t,i);e=o.recordCollapse(t,e,r)}return e}],["multirel",function(t,e){if(e>o.cutoff.relseq){var i=o.splitAttribute(t,"content")[0],r=o.findChildText(t,i)+"\u22ef";e=o.recordCollapse(t,e,r)}return e}],["superscript",function(t,e){return(e=o.uncollapseChild(e,t,0,2))>o.cutoff.superscript&&(e=o.recordCollapse(t,e,o.marker.superscript)),e}],["subscript",function(t,e){return(e=o.uncollapseChild(e,t,0,2))>o.cutoff.subscript&&(e=o.recordCollapse(t,e,o.marker.subscript)),e}],["subsup",function(t,e){return(e=o.uncollapseChild(e,t,0,3))>o.cutoff.subsup&&(e=o.recordCollapse(t,e,o.marker.subsup)),e}]]),this.idCount=0,this.complexity=e}return t.prototype.check=function(t,e){var o=t.attributes.get("data-semantic-type");return this.collapse.has(o)?this.collapse.get(o).call(this,t,e):this.cutoff.hasOwnProperty(o)?this.defaultCheck(t,e,o):e},t.prototype.defaultCheck=function(t,e,o){var i=t.attributes.get("data-semantic-role"),r=this.cutoff[o];if(e>("number"==typeof r?r:r[i]||r.value)){var n=this.marker[o]||"??",l="string"==typeof n?n:n[i]||n.value;e=this.recordCollapse(t,e,l)}return e},t.prototype.recordCollapse=function(t,e,o){return o="\u25c2"+o+"\u25b8",t.setProperty("collapse-marker",o),t.setProperty("collapse-complexity",e),o.length*this.complexity.complexity.text},t.prototype.unrecordCollapse=function(t){var e=t.getProperty("collapse-complexity");null!=e&&(t.attributes.set("data-semantic-complexity",e),t.removeProperty("collapse-complexity"),t.removeProperty("collapse-marker"))},t.prototype.canUncollapse=function(t,e,o){if(void 0===o&&(o=1),this.splitAttribute(t,"children").length===o){var i=1===t.childNodes.length&&t.childNodes[0].isInferred?t.childNodes[0]:t;if(i&&i.childNodes[e]){var r=i.childNodes[e];if(r.getProperty("collapse-marker"))return r}}return null},t.prototype.uncollapseChild=function(t,e,o,i){void 0===i&&(i=1);var r=this.canUncollapse(e,o,i);return r&&(this.unrecordCollapse(r),r.parent!==e&&r.parent.attributes.set("data-semantic-complexity",void 0),t=this.complexity.visitNode(e,!1)),t},t.prototype.splitAttribute=function(t,e){return(t.attributes.get("data-semantic-"+e)||"").split(/,/)},t.prototype.getText=function(t){var e=this;return t.isToken?t.getText():t.childNodes.map((function(t){return e.getText(t)})).join("")},t.prototype.findChildText=function(t,e){var o=this.findChild(t,e);return this.getText(o.coreMO()||o)},t.prototype.findChild=function(t,e){var i,r;if(!t||t.attributes.get("data-semantic-id")===e)return t;if(!t.isToken)try{for(var n=o(t.childNodes),l=n.next();!l.done;l=n.next()){var s=l.value,a=this.findChild(s,e);if(a)return a}}catch(t){i={error:t}}finally{try{l&&!l.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return null},t.prototype.makeCollapse=function(t){var e=[];t.walkTree((function(t){t.getProperty("collapse-marker")&&e.push(t)})),this.makeActions(e)},t.prototype.makeActions=function(t){var e,i;try{for(var r=o(t),n=r.next();!n.done;n=r.next()){var l=n.value;this.makeAction(l)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},t.prototype.makeId=function(){return"mjx-collapse-"+this.idCount++},t.prototype.makeAction=function(t){t.isKind("math")&&(t=this.addMrow(t));var e=this.complexity.factory,o=t.getProperty("collapse-marker"),i=t.parent,r=e.create("maction",{actiontype:"toggle",selection:2,"data-collapsible":!0,id:this.makeId(),"data-semantic-complexity":t.attributes.get("data-semantic-complexity")},[e.create("mtext",{mathcolor:"blue"},[e.create("text").setText(o)])]);r.inheritAttributesFrom(t),t.attributes.set("data-semantic-complexity",t.getProperty("collapse-complexity")),t.removeProperty("collapse-marker"),t.removeProperty("collapse-complexity"),i.replaceChild(r,t),r.appendChild(t)},t.prototype.addMrow=function(t){var e,i,r=this.complexity.factory.create("mrow",null,t.childNodes[0].childNodes);t.childNodes[0].setChildren([r]);var n=t.attributes.getAllAttributes();try{for(var l=o(Object.keys(n)),s=l.next();!s.done;s=l.next()){var a=s.value;"data-semantic-"===a.substr(0,14)&&(r.attributes.set(a,n[a]),delete n[a])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=l.return)&&i.call(l)}finally{if(e)throw e.error}}return r.setProperty("collapse-marker",t.getProperty("collapse-marker")),r.setProperty("collapse-complexity",t.getProperty("collapse-complexity")),t.removeProperty("collapse-marker"),t.removeProperty("collapse-complexity"),r},t.NOCOLLAPSE=1e7,t}();e.Collapse=i},175:function(t,e,o){var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],i=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ComplexityVisitor=void 0;var l=o(176),s=o(850),a=o(77),p=function(t){function e(e,o){var i=t.call(this,e)||this;i.complexity={text:.5,token:.5,child:1,script:.8,sqrt:2,subsup:2,underover:2,fraction:2,enclose:2,action:2,phantom:0,xml:2,glyph:2};var r=i.constructor;return i.options=a.userOptions(a.defaultOptions({},r.OPTIONS),o),i.collapse=new i.options.Collapse(i),i.factory=e,i}return r(e,t),e.prototype.visitTree=function(e){t.prototype.visitTree.call(this,e,!0),this.options.makeCollapsible&&this.collapse.makeCollapse(e)},e.prototype.visitNode=function(e,o){if(!e.attributes.get("data-semantic-complexity"))return t.prototype.visitNode.call(this,e,o)},e.prototype.visitDefault=function(t,e){var o;if(t.isToken){var i=t.getText();o=this.complexity.text*i.length+this.complexity.token}else o=this.childrenComplexity(t);return this.setComplexity(t,o,e)},e.prototype.visitMfracNode=function(t,e){var o=this.childrenComplexity(t)*this.complexity.script+this.complexity.fraction;return this.setComplexity(t,o,e)},e.prototype.visitMsqrtNode=function(t,e){var o=this.childrenComplexity(t)+this.complexity.sqrt;return this.setComplexity(t,o,e)},e.prototype.visitMrootNode=function(t,e){var o=this.childrenComplexity(t)+this.complexity.sqrt-(1-this.complexity.script)*this.getComplexity(t.childNodes[1]);return this.setComplexity(t,o,e)},e.prototype.visitMphantomNode=function(t,e){return this.setComplexity(t,this.complexity.phantom,e)},e.prototype.visitMsNode=function(t,e){var o=(t.attributes.get("lquote")+t.getText()+t.attributes.get("rquote")).length*this.complexity.text;return this.setComplexity(t,o,e)},e.prototype.visitMsubsupNode=function(e,o){t.prototype.visitDefault.call(this,e,!0);var i=e.childNodes[e.sub],r=e.childNodes[e.sup],n=e.childNodes[e.base],l=Math.max(i?this.getComplexity(i):0,r?this.getComplexity(r):0)*this.complexity.script;return l+=this.complexity.child*((i?1:0)+(r?1:0)),l+=n?this.getComplexity(n)+this.complexity.child:0,l+=this.complexity.subsup,this.setComplexity(e,l,o)},e.prototype.visitMsubNode=function(t,e){return this.visitMsubsupNode(t,e)},e.prototype.visitMsupNode=function(t,e){return this.visitMsubsupNode(t,e)},e.prototype.visitMunderoverNode=function(e,o){t.prototype.visitDefault.call(this,e,!0);var i=e.childNodes[e.under],r=e.childNodes[e.over],n=e.childNodes[e.base],l=Math.max(i?this.getComplexity(i):0,r?this.getComplexity(r):0)*this.complexity.script;return n&&(l=Math.max(this.getComplexity(n),l)),l+=this.complexity.child*((i?1:0)+(r?1:0)+(n?1:0)),l+=this.complexity.underover,this.setComplexity(e,l,o)},e.prototype.visitMunderNode=function(t,e){return this.visitMunderoverNode(t,e)},e.prototype.visitMoverNode=function(t,e){return this.visitMunderoverNode(t,e)},e.prototype.visitMencloseNode=function(t,e){var o=this.childrenComplexity(t)+this.complexity.enclose;return this.setComplexity(t,o,e)},e.prototype.visitMactionNode=function(t,e){this.childrenComplexity(t);var o=this.getComplexity(t.selected);return this.setComplexity(t,o,e)},e.prototype.visitMsemanticsNode=function(t,e){var o=t.childNodes[0],i=0;return o&&(this.visitNode(o,!0),i=this.getComplexity(o)),this.setComplexity(t,i,e)},e.prototype.visitAnnotationNode=function(t,e){return this.setComplexity(t,this.complexity.xml,e)},e.prototype.visitAnnotation_xmlNode=function(t,e){return this.setComplexity(t,this.complexity.xml,e)},e.prototype.visitMglyphNode=function(t,e){return this.setComplexity(t,this.complexity.glyph,e)},e.prototype.getComplexity=function(t){var e=t.getProperty("collapsedComplexity");return null!=e?e:t.attributes.get("data-semantic-complexity")},e.prototype.setComplexity=function(t,e,o){return o&&(this.options.identifyCollapsible&&(e=this.collapse.check(t,e)),t.attributes.set("data-semantic-complexity",e)),e},e.prototype.childrenComplexity=function(e){var o,i;t.prototype.visitDefault.call(this,e,!0);var r=0;try{for(var l=n(e.childNodes),s=l.next();!s.done;s=l.next()){var a=s.value;r+=this.getComplexity(a)}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return e.childNodes.length>1&&(r+=e.childNodes.length*this.complexity.child),r},e.OPTIONS={identifyCollapsible:!0,makeCollapsible:!0,Collapse:s.Collapse},e}(l.MmlVisitor);e.ComplexityVisitor=p},511:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.EnrichedMathItemMixin=MathJax._.a11y["semantic-enrich"].EnrichedMathItemMixin,e.EnrichedMathDocumentMixin=MathJax._.a11y["semantic-enrich"].EnrichedMathDocumentMixin,e.EnrichHandler=MathJax._.a11y["semantic-enrich"].EnrichHandler},961:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.sreReady=MathJax._.a11y.sre.sreReady},723:function(t,e){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,e.PV=MathJax._.components.global.combineDefaults,e.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},769:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.protoItem=MathJax._.core.MathItem.protoItem,e.AbstractMathItem=MathJax._.core.MathItem.AbstractMathItem,e.STATE=MathJax._.core.MathItem.STATE,e.newState=MathJax._.core.MathItem.newState},176:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MmlVisitor=MathJax._.core.MmlTree.MmlVisitor.MmlVisitor},77:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=MathJax._.util.Options.isObject,e.APPEND=MathJax._.util.Options.APPEND,e.REMOVE=MathJax._.util.Options.REMOVE,e.OPTIONS=MathJax._.util.Options.OPTIONS,e.Expandable=MathJax._.util.Options.Expandable,e.expandable=MathJax._.util.Options.expandable,e.makeArray=MathJax._.util.Options.makeArray,e.keys=MathJax._.util.Options.keys,e.copy=MathJax._.util.Options.copy,e.insert=MathJax._.util.Options.insert,e.defaultOptions=MathJax._.util.Options.defaultOptions,e.userOptions=MathJax._.util.Options.userOptions,e.selectOptions=MathJax._.util.Options.selectOptions,e.selectOptionsFromKeys=MathJax._.util.Options.selectOptionsFromKeys,e.separateOptions=MathJax._.util.Options.separateOptions,e.lookup=MathJax._.util.Options.lookup}},s={};function a(t){var e=s[t];if(void 0!==e)return e.exports;var o=s[t]={exports:{}};return l[t].call(o.exports,o,o.exports,a),o.exports}t=a(723),e=a(589),o=a(850),i=a(175),r=a(511),n=a(961),(0,t.r8)({_:{a11y:{complexity_ts:e,complexity:{collapse:o,visitor:i},"semantic-enrich":r,sre:n}}}),MathJax.startup&&(MathJax.startup.extendHandler((function(t){return(0,e.ComplexityHandler)(t)})),(0,t.PV)(MathJax.config,"options",MathJax.config["a11y/complexity"]||{}))}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){"use strict";var t={18:function(t,e,o){var r,n=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return a},l=this&&this.__spreadArray||function(t,e){for(var o=0,r=e.length,n=t.length;o<r;o++,n++)t[n]=e[o];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.setA11yOption=e.setA11yOptions=e.ExplorerHandler=e.ExplorerMathDocumentMixin=e.ExplorerMathItemMixin=void 0;var h=o(769),c=o(511),p=o(77),u=o(433),d=o(850),f=o(269),y=o(85),v=o(854),g=o(367);function m(t,e){return function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.explorers={},e.attached=[],e.restart=[],e.refocus=!1,e.savedId=null,e}return n(o,t),o.prototype.explorable=function(t,o){if(void 0===o&&(o=!1),!(this.state()>=h.STATE.EXPLORER)){if(!this.isEscaped&&(t.options.enableExplorer||o)){var r=this.typesetRoot,n=e(this.root);this.savedId&&(this.typesetRoot.setAttribute("sre-explorer-id",this.savedId),this.savedId=null),this.explorers=function(t,e,o){var r,n,i={};try{for(var s=a(Object.keys(_)),l=s.next();!l.done;l=s.next()){var h=l.value;i[h]=_[h](t,e,o)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return i}(t,r,n),this.attachExplorers(t)}this.state(h.STATE.EXPLORER)}},o.prototype.attachExplorers=function(t){var e,o,r,n;this.attached=[];var i=[];try{for(var s=a(Object.keys(this.explorers)),l=s.next();!l.done;l=s.next()){var h=l.value;(u=this.explorers[h])instanceof f.AbstractKeyExplorer&&(u.AddEvents(),u.stoppable=!1,i.unshift(u)),t.options.a11y[h]?(u.Attach(),this.attached.push(h)):u.Detach()}}catch(t){e={error:t}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(e)throw e.error}}try{for(var c=a(i),p=c.next();!p.done;p=c.next()){var u;if((u=p.value).attached){u.stoppable=!0;break}}}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}},o.prototype.rerender=function(e,o){var r,n;void 0===o&&(o=h.STATE.RERENDER),this.savedId=this.typesetRoot.getAttribute("sre-explorer-id"),this.refocus=window.document.activeElement===this.typesetRoot;try{for(var i=a(this.attached),s=i.next();!s.done;s=i.next()){var l=s.value,c=this.explorers[l];c.active&&(this.restart.push(l),c.Stop())}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.prototype.rerender.call(this,e,o)},o.prototype.updateDocument=function(e){var o=this;t.prototype.updateDocument.call(this,e),this.refocus&&this.typesetRoot.focus(),this.restart.forEach((function(t){return o.explorers[t].Start()})),this.restart=[],this.refocus=!1},o}(t)}function x(t){var e;return(e=function(t){function e(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var r=t.apply(this,l([],s(e)))||this,n=r.constructor.ProcessBits;n.has("explorer")||n.allocate("explorer");var i=new u.SerializedMmlVisitor(r.mmlFactory),a=function(t){return i.visitTree(t)};return r.options.MathItem=m(r.options.MathItem,a),r.explorerRegions=b(r),r}return n(e,t),e.prototype.explorable=function(){var t,e;if(!this.processed.isSet("explorer")){if(this.options.enableExplorer)try{for(var o=a(this.math),r=o.next();!r.done;r=o.next()){r.value.explorable(this)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}this.processed.set("explorer")}return this},e.prototype.state=function(e,o){return void 0===o&&(o=!1),t.prototype.state.call(this,e,o),e<h.STATE.EXPLORER&&this.processed.clear("explorer"),this},e}(t)).OPTIONS=i(i({},t.OPTIONS),{enableExplorer:!0,renderActions:p.expandable(i(i({},t.OPTIONS.renderActions),{explorable:[h.STATE.EXPLORER]})),sre:p.expandable(i(i({},t.OPTIONS.sre),{speech:"shallow"})),a11y:{align:"top",backgroundColor:"Blue",backgroundOpacity:20,braille:!1,flame:!1,foregroundColor:"Black",foregroundOpacity:100,highlight:"None",hover:!1,infoPrefix:!1,infoRole:!1,infoType:!1,keyMagnifier:!1,magnification:"None",magnify:"400%",mouseMagnifier:!1,speech:!0,subtitles:!0,treeColoring:!1,viewBraille:!1}}),e}function b(t){return{speechRegion:new g.LiveRegion(t),brailleRegion:new g.LiveRegion(t),magnifier:new g.HoverRegion(t),tooltip1:new g.ToolTip(t),tooltip2:new g.ToolTip(t),tooltip3:new g.ToolTip(t)}}h.newState("EXPLORER",160),e.ExplorerMathItemMixin=m,e.ExplorerMathDocumentMixin=x,e.ExplorerHandler=function(t,e){return void 0===e&&(e=null),!t.documentClass.prototype.enrich&&e&&(t=c.EnrichHandler(t,e)),t.documentClass=x(t.documentClass),t};var _={speech:function(t,e){for(var o,r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=(o=f.SpeechExplorer).create.apply(o,l([t,t.explorerRegions.speechRegion,e],s(r)));return i.speechGenerator.setOptions({locale:t.options.sre.locale,domain:t.options.sre.domain,style:t.options.sre.style,modality:"speech",cache:!1}),i.showRegion="subtitles",i},braille:function(t,e){for(var o,r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=(o=f.SpeechExplorer).create.apply(o,l([t,t.explorerRegions.brailleRegion,e],s(r)));return i.speechGenerator.setOptions({locale:"nemeth",domain:"default",style:"default",modality:"braille"}),i.showRegion="viewBraille",i},keyMagnifier:function(t,e){for(var o,r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return(o=f.Magnifier).create.apply(o,l([t,t.explorerRegions.magnifier,e],s(r)))},mouseMagnifier:function(t,e){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return y.ContentHoverer.create(t,t.explorerRegions.magnifier,e,(function(t){return t.hasAttribute("data-semantic-type")}),(function(t){return t}))},hover:function(t,e){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return y.FlameHoverer.create(t,null,e)},infoType:function(t,e){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return y.ValueHoverer.create(t,t.explorerRegions.tooltip1,e,(function(t){return t.hasAttribute("data-semantic-type")}),(function(t){return t.getAttribute("data-semantic-type")}))},infoRole:function(t,e){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return y.ValueHoverer.create(t,t.explorerRegions.tooltip2,e,(function(t){return t.hasAttribute("data-semantic-role")}),(function(t){return t.getAttribute("data-semantic-role")}))},infoPrefix:function(t,e){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return y.ValueHoverer.create(t,t.explorerRegions.tooltip3,e,(function(t){return t.hasAttribute("data-semantic-prefix")}),(function(t){return t.getAttribute("data-semantic-prefix")}))},flame:function(t,e){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return v.FlameColorer.create(t,null,e)},treeColoring:function(t,e){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return v.TreeColorer.create.apply(v.TreeColorer,l([t,null,e],s(o)))}};function M(t,e,o){switch(e){case"magnification":switch(o){case"None":t.options.a11y.magnification=o,t.options.a11y.keyMagnifier=!1,t.options.a11y.mouseMagnifier=!1;break;case"Keyboard":t.options.a11y.magnification=o,t.options.a11y.keyMagnifier=!0,t.options.a11y.mouseMagnifier=!1;break;case"Mouse":t.options.a11y.magnification=o,t.options.a11y.keyMagnifier=!1,t.options.a11y.mouseMagnifier=!0}break;case"highlight":switch(o){case"None":t.options.a11y.highlight=o,t.options.a11y.hover=!1,t.options.a11y.flame=!1;break;case"Hover":t.options.a11y.highlight=o,t.options.a11y.hover=!0,t.options.a11y.flame=!1;break;case"Flame":t.options.a11y.highlight=o,t.options.a11y.hover=!1,t.options.a11y.flame=!0}break;default:t.options.a11y[e]=o}}e.setA11yOptions=function(t,e){var o,r,n=SRE.engineSetup();for(var i in e)void 0===t.options.a11y[i]?void 0!==n[i]&&(t.options.sre[i]=e[i]):(M(t,i,e[i]),"locale"===i&&(t.options.sre[i]=e[i]));try{for(var s=a(t.math),l=s.next();!l.done;l=s.next()){l.value.attachExplorers(t)}}catch(t){o={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}},e.setA11yOption=M;var w={},S=function(t,e){var o,r,n=sre.ClearspeakPreferences.getLocalePreferences()[e];if(!n){var i=t.findID("Accessibility","Speech","Clearspeak");return i&&i.disable(),null}!function(t,e){var o,r,n=t.pool.lookup("speechRules"),i=function(e){if(w[e])return"continue";t.factory.get("variable")(t.factory,{name:"csprf_"+e,setter:function(t){w[e]=t,n.setValue("clearspeak-"+sre.ClearspeakPreferences.addPreference(sre.Engine.DOMAIN_TO_STYLES.clearspeak,e,t))},getter:function(){return w[e]||"Auto"}},t.pool)};try{for(var s=a(e),l=s.next();!l.done;l=s.next())i(l.value)}catch(t){o={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}}(t,Object.keys(n));var s=[],l=function(t){s.push({title:t,values:n[t].map((function(e){return e.replace(RegExp("^"+t+"_"),"")})),variable:"csprf_"+t})};try{for(var h=a(Object.getOwnPropertyNames(n)),c=h.next();!c.done;c=h.next()){l(c.value)}}catch(t){o={error:t}}finally{try{c&&!c.done&&(r=h.return)&&r.call(h)}finally{if(o)throw o.error}}var p=t.factory.get("selectionBox")(t.factory,{title:"Clearspeak Preferences",signature:"",order:"alphabetic",grid:"square",selections:s},t);return{type:"command",id:"ClearspeakPreferences",content:"Select Preferences",action:function(){return p.post(0,0)}}};d.MJContextMenu.DynamicSubmenus.set("Clearspeak",(function(t,e){var o=t.pool.lookup("locale").getValue(),r=S(t,o),n=[];try{n=sre.ClearspeakPreferences.smartPreferences(t.mathItem,o)}catch(t){}return r&&n.splice(2,0,r),t.factory.get("subMenu")(t.factory,{items:n,id:"Clearspeak"},e)}));var O={de:"German",en:"English",es:"Spanish",fr:"French",hi:"Hindi",it:"Italian"};d.MJContextMenu.DynamicSubmenus.set("A11yLanguage",(function(t,e){var o,r,n=[];try{for(var i=a(sre.Variables.LOCALES),s=i.next();!s.done;s=i.next()){var l=s.value;"nemeth"!==l&&n.push({type:"radio",id:l,content:O[l]||l,variable:"locale"})}}catch(t){o={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return n.sort((function(t,e){return t.content.localeCompare(e.content,"en")})),t.factory.get("subMenu")(t.factory,{items:n,id:"Language"},e)}))},724:function(t,e,o){var r=this&&this.__read||function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return a},n=this&&this.__spreadArray||function(t,e){for(var o=0,r=e.length,n=t.length;o<r;o++,n++)t[n]=e[o];return t},i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],r=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractExplorer=void 0,o(961);var a=function(){function t(t,e,o){for(var r=[],n=3;n<arguments.length;n++)r[n-3]=arguments[n];this.document=t,this.region=e,this.node=o,this.stoppable=!0,this.events=[],this.highlighter=this.getHighlighter(),this._active=!1}return t.stopEvent=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopImmediatePropagation?t.stopImmediatePropagation():t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},t.create=function(t,e,o){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];var s=new(this.bind.apply(this,n([void 0,t,e,o],r(i))));return s},t.prototype.Events=function(){return this.events},Object.defineProperty(t.prototype,"active",{get:function(){return this._active},set:function(t){this._active=t},enumerable:!1,configurable:!0}),t.prototype.Attach=function(){this.AddEvents()},t.prototype.Detach=function(){this.RemoveEvents()},t.prototype.Start=function(){this.highlighter=this.getHighlighter(),this.active=!0},t.prototype.Stop=function(){this.active&&(this.region.Clear(),this.region.Hide(),this.active=!1)},t.prototype.AddEvents=function(){var t,e;try{for(var o=i(this.events),n=o.next();!n.done;n=o.next()){var a=r(n.value,2),s=a[0],l=a[1];this.node.addEventListener(s,l)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t.prototype.RemoveEvents=function(){var t,e;try{for(var o=i(this.events),n=o.next();!n.done;n=o.next()){var a=r(n.value,2),s=a[0],l=a[1];this.node.removeEventListener(s,l)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t.prototype.Update=function(t){void 0===t&&(t=!1)},t.prototype.getHighlighter=function(){var t=this.document.options.a11y,e={color:t.foregroundColor.toLowerCase(),alpha:t.foregroundOpacity/100},o={color:t.backgroundColor.toLowerCase(),alpha:t.backgroundOpacity/100};return sre.HighlighterFactory.highlighter(o,e,{renderer:this.document.outputJax.name,browser:"v3"})},t.prototype.stopEvent=function(e){this.stoppable&&t.stopEvent(e)},t}();e.AbstractExplorer=a},269:function(t,e,o){var r,n=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.Magnifier=e.SpeechExplorer=e.AbstractKeyExplorer=void 0;var i=o(724),a=o(961),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.attached=!1,e.eventsAttached=!1,e.events=t.prototype.Events.call(e).concat([["keydown",e.KeyDown.bind(e)],["focusin",e.FocusIn.bind(e)],["focusout",e.FocusOut.bind(e)]]),e.oldIndex=null,e}return n(e,t),e.prototype.FocusIn=function(t){},e.prototype.FocusOut=function(t){this.Stop()},e.prototype.Update=function(t){if(void 0===t&&(t=!1),this.active||t){this.highlighter.unhighlight();var e=this.walker.getFocus(!0).getNodes();e.length||(this.walker.refocus(),e=this.walker.getFocus().getNodes()),this.highlighter.highlight(e)}},e.prototype.Attach=function(){t.prototype.Attach.call(this),this.attached=!0,this.oldIndex=this.node.tabIndex,this.node.tabIndex=1,this.node.setAttribute("role","application")},e.prototype.AddEvents=function(){this.eventsAttached||(t.prototype.AddEvents.call(this),this.eventsAttached=!0)},e.prototype.Detach=function(){this.active&&(this.node.tabIndex=this.oldIndex,this.oldIndex=null,this.node.removeAttribute("role")),this.attached=!1},e.prototype.Stop=function(){this.active&&(this.highlighter.unhighlight(),this.walker.deactivate()),t.prototype.Stop.call(this)},e}(i.AbstractExplorer);e.AbstractKeyExplorer=s;var l=function(t){function e(e,o,r,n){var i=t.call(this,e,o,r)||this;return i.document=e,i.region=o,i.node=r,i.mml=n,i.showRegion="subtitles",i.init=!1,i.restarted=!1,i.initWalker(),i}return n(e,t),e.prototype.Start=function(){var e=this;if(this.attached){var o=this.getOptions();if(!this.init)return this.init=!0,void a.sreReady().then((function(){SRE.engineSetup().locale!==o.locale&&SRE.setupEngine({locale:o.locale}),a.sreReady().then((function(){e.Speech(e.walker),e.Start()}))})).catch((function(t){return console.log(t.message)}));t.prototype.Start.call(this),this.speechGenerator=sre.SpeechGeneratorFactory.generator("Direct"),this.speechGenerator.setOptions(o),this.walker=sre.WalkerFactory.walker("table",this.node,this.speechGenerator,this.highlighter,this.mml),this.walker.activate(),this.Update(),this.document.options.a11y[this.showRegion]&&this.region.Show(this.node,this.highlighter),this.restarted=!0}},e.prototype.Update=function(e){void 0===e&&(e=!1),t.prototype.Update.call(this,e);var o=this.speechGenerator.getOptions();SRE.setupEngine({modality:o.modality,locale:o.locale}),this.region.Update(this.walker.speech()),"speech"===o.modality&&(this.document.options.sre.domain=o.domain,this.document.options.sre.style=o.style,this.document.options.a11y.speechRules=o.domain+"-"+o.style)},e.prototype.Speech=function(t){t.speech(),this.node.setAttribute("hasspeech","true"),this.Update(),this.restarted&&this.document.options.a11y[this.showRegion]&&this.region.Show(this.node,this.highlighter)},e.prototype.KeyDown=function(t){var e=t.keyCode;if(this.walker.modifier=t.shiftKey,27===e)return this.Stop(),void this.stopEvent(t);if(this.active){if(this.Move(e),this.triggerLink(e))return;this.stopEvent(t)}else(32===e&&t.shiftKey||13===e)&&(this.Start(),this.stopEvent(t))},e.prototype.triggerLink=function(t){var e,o;if(13!==t)return!1;var r=null===(e=this.walker.getFocus().getNodes())||void 0===e?void 0:e[0];return!!(null===(o=null==r?void 0:r.getAttribute("data-semantic-postfix"))||void 0===o?void 0:o.match(/(^| )link($| )/))&&(r.parentNode.dispatchEvent(new MouseEvent("click")),!0)},e.prototype.Move=function(t){this.walker.move(t),this.Update()},e.prototype.initWalker=function(){this.speechGenerator=sre.SpeechGeneratorFactory.generator("Tree");var t=sre.WalkerFactory.walker("dummy",this.node,this.speechGenerator,this.highlighter,this.mml);this.walker=t},e.prototype.getOptions=function(){var t=this.speechGenerator.getOptions(),e=this.document.options.sre;return"speech"!==t.modality||t.locale===e.locale&&t.domain===e.domain&&t.style===e.style||(t.domain=e.domain,t.style=e.style,t.locale=e.locale,this.walker.update(t)),t},e}(s);e.SpeechExplorer=l;var h=function(t){function e(e,o,r,n){var i=t.call(this,e,o,r)||this;return i.document=e,i.region=o,i.node=r,i.mml=n,i.walker=sre.WalkerFactory.walker("table",i.node,sre.SpeechGeneratorFactory.generator("Dummy"),i.highlighter,i.mml),i}return n(e,t),e.prototype.Update=function(e){void 0===e&&(e=!1),t.prototype.Update.call(this,e),this.showFocus()},e.prototype.Start=function(){t.prototype.Start.call(this),this.attached&&(this.region.Show(this.node,this.highlighter),this.walker.activate(),this.Update())},e.prototype.showFocus=function(){var t=this.walker.getFocus().getNodes()[0];this.region.Show(t,this.highlighter)},e.prototype.Move=function(t){this.walker.move(t)&&this.Update()},e.prototype.KeyDown=function(t){var e=t.keyCode;return this.walker.modifier=t.shiftKey,27===e?(this.Stop(),void this.stopEvent(t)):this.active&&13!==e?(this.Move(e),void this.stopEvent(t)):void((32===e&&t.shiftKey||13===e)&&(this.Start(),this.stopEvent(t)))},e}(s);e.Magnifier=h},85:function(t,e,o){var r,n=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__read||function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var r,n,i=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.FlameHoverer=e.ContentHoverer=e.ValueHoverer=e.Hoverer=e.AbstractMouseExplorer=void 0;var a=o(367),s=o(724);o(961);var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.events=t.prototype.Events.call(e).concat([["mouseover",e.MouseOver.bind(e)],["mouseout",e.MouseOut.bind(e)]]),e}return n(e,t),e.prototype.MouseOver=function(t){this.Start()},e.prototype.MouseOut=function(t){this.Stop()},e}(s.AbstractExplorer);e.AbstractMouseExplorer=l;var h=function(t){function e(e,o,r,n,i){var a=t.call(this,e,o,r)||this;return a.document=e,a.region=o,a.node=r,a.nodeQuery=n,a.nodeAccess=i,a}return n(e,t),e.prototype.MouseOut=function(e){e.clientX===this.coord[0]&&e.clientY===this.coord[1]||(this.highlighter.unhighlight(),this.region.Hide(),t.prototype.MouseOut.call(this,e))},e.prototype.MouseOver=function(e){t.prototype.MouseOver.call(this,e);var o=e.target;this.coord=[e.clientX,e.clientY];var r=i(this.getNode(o),2),n=r[0],a=r[1];n&&(this.highlighter.unhighlight(),this.highlighter.highlight([n]),this.region.Update(a),this.region.Show(n,this.highlighter))},e.prototype.getNode=function(t){for(var e=t;t&&t!==this.node;){if(this.nodeQuery(t))return[t,this.nodeAccess(t)];t=t.parentNode}for(t=e;t;){if(this.nodeQuery(t))return[t,this.nodeAccess(t)];var o=t.childNodes[0];t=o&&"defs"===o.tagName?t.childNodes[1]:o}return[null,null]},e}(l);e.Hoverer=h;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(h);e.ValueHoverer=c;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(h);e.ContentHoverer=p;var u=function(t){function e(e,o,r){var n=t.call(this,e,new a.DummyRegion(e),r,(function(t){return n.highlighter.isMactionNode(t)}),(function(){}))||this;return n.document=e,n.node=r,n}return n(e,t),e}(h);e.FlameHoverer=u},367:function(t,e,o){var r,n,i,a,s=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.HoverRegion=e.LiveRegion=e.ToolTip=e.StringRegion=e.DummyRegion=e.AbstractRegion=void 0;var l=o(888);o(961);var h=function(){function t(t){this.document=t,this.CLASS=this.constructor,this.AddStyles(),this.AddElement()}return t.prototype.AddStyles=function(){if(!this.CLASS.styleAdded){var t=this.document.adaptor.node("style");t.innerHTML=this.CLASS.style.cssText,this.document.adaptor.head(this.document.adaptor.document).appendChild(t),this.CLASS.styleAdded=!0}},t.prototype.AddElement=function(){var t=this.document.adaptor.node("div");t.classList.add(this.CLASS.className),t.style.backgroundColor="white",this.div=t,this.inner=this.document.adaptor.node("div"),this.div.appendChild(this.inner),this.document.adaptor.body(this.document.adaptor.document).appendChild(this.div)},t.prototype.Show=function(t,e){this.position(t),this.highlight(e),this.div.classList.add(this.CLASS.className+"_Show")},t.prototype.Hide=function(){this.div.classList.remove(this.CLASS.className+"_Show")},t.prototype.stackRegions=function(t){for(var e=t.getBoundingClientRect(),o=0,r=Number.POSITIVE_INFINITY,n=this.document.adaptor.document.getElementsByClassName(this.CLASS.className+"_Show"),i=0,a=void 0;a=n[i];i++)a!==this.div&&(o=Math.max(a.getBoundingClientRect().bottom,o),r=Math.min(a.getBoundingClientRect().left,r));var s=(o||e.bottom+10)+window.pageYOffset,l=(r<Number.POSITIVE_INFINITY?r:e.left)+window.pageXOffset;this.div.style.top=s+"px",this.div.style.left=l+"px"},t.styleAdded=!1,t}();e.AbstractRegion=h;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.Clear=function(){},e.prototype.Update=function(){},e.prototype.Hide=function(){},e.prototype.Show=function(){},e.prototype.AddElement=function(){},e.prototype.AddStyles=function(){},e.prototype.position=function(){},e.prototype.highlight=function(t){},e}(h);e.DummyRegion=c;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.Clear=function(){this.Update(""),this.inner.style.top="",this.inner.style.backgroundColor=""},e.prototype.Update=function(t){this.inner.textContent="",this.inner.textContent=t},e.prototype.position=function(t){this.stackRegions(t)},e.prototype.highlight=function(t){var e=t.colorString();this.inner.style.backgroundColor=e.background,this.inner.style.color=e.foreground},e}(h);e.StringRegion=p;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.className="MJX_ToolTip",e.style=new l.CssStyles(((n={})["."+e.className]={position:"absolute",display:"inline-block",height:"1px",width:"1px"},n["."+e.className+"_Show"]={width:"auto",height:"auto",opacity:1,"text-align":"center","border-radius":"6px",padding:"0px 0px","border-bottom":"1px dotted black",position:"absolute","z-index":202},n)),e}(p);e.ToolTip=u;var d=function(t){function e(e){var o=t.call(this,e)||this;return o.document=e,o.div.setAttribute("aria-live","assertive"),o}return s(e,t),e.className="MJX_LiveRegion",e.style=new l.CssStyles(((i={})["."+e.className]={position:"absolute",top:"0",height:"1px",width:"1px",padding:"1px",overflow:"hidden"},i["."+e.className+"_Show"]={top:"0",position:"absolute",width:"auto",height:"auto",padding:"0px 0px",opacity:1,"z-index":"202",left:0,right:0,margin:"0 auto","background-color":"rgba(0, 0, 255, 0.2)","box-shadow":"0px 10px 20px #888",border:"2px solid #CCCCCC"},i)),e}(p);e.LiveRegion=d;var f=function(t){function e(e){var o=t.call(this,e)||this;return o.document=e,o.inner.style.lineHeight="0",o}return s(e,t),e.prototype.position=function(t){var e,o=t.getBoundingClientRect(),r=this.div.getBoundingClientRect(),n=o.left+o.width/2-r.width/2;switch(n=n<0?0:n,n+=window.pageXOffset,this.document.options.a11y.align){case"top":e=o.top-r.height-10;break;case"bottom":e=o.bottom+10;break;case"center":default:e=o.top+o.height/2-r.height/2}e=(e+=window.pageYOffset)<0?0:e,this.div.style.top=e+"px",this.div.style.left=n+"px"},e.prototype.highlight=function(t){if(!this.inner.firstChild||this.inner.firstChild.hasAttribute("sre-highlight")){var e=t.colorString();this.inner.style.backgroundColor=e.background,this.inner.style.color=e.foreground}},e.prototype.Show=function(e,o){this.div.style.fontSize=this.document.options.a11y.magnify,this.Update(e),t.prototype.Show.call(this,e,o)},e.prototype.Clear=function(){this.inner.textContent="",this.inner.style.top="",this.inner.style.backgroundColor=""},e.prototype.Update=function(t){this.Clear();var e=this.cloneNode(t);this.inner.appendChild(e)},e.prototype.cloneNode=function(t){var e=t.cloneNode(!0);if("MJX-CONTAINER"!==e.nodeName){"g"!==e.nodeName&&(e.style.marginLeft=e.style.marginRight="0");for(var o=t;o&&"MJX-CONTAINER"!==o.nodeName;)o=o.parentNode;if("MJX-MATH"!==e.nodeName&&"svg"!==e.nodeName)if("svg"===(e=o.firstChild.cloneNode(!1).appendChild(e).parentNode).nodeName){e.firstChild.setAttribute("transform","matrix(1 0 0 -1 0 0)");var r=parseFloat(e.getAttribute("viewBox").split(/ /)[2]),n=parseFloat(e.getAttribute("width")),i=t.getBBox(),a=i.x,s=i.y,l=i.width,h=i.height;e.setAttribute("viewBox",[a,-(s+h),l,h].join(" ")),e.removeAttribute("style"),e.setAttribute("width",n/r*l+"ex"),e.setAttribute("height",n/r*h+"ex"),o.setAttribute("sre-highlight","false")}(e=o.cloneNode(!1).appendChild(e).parentNode).style.margin="0"}return e},e.className="MJX_HoverRegion",e.style=new l.CssStyles(((a={})["."+e.className]={position:"absolute",height:"1px",width:"1px",padding:"1px",overflow:"hidden"},a["."+e.className+"_Show"]={position:"absolute",width:"max-content",height:"auto",padding:"0px 0px",opacity:1,"z-index":"202",margin:"0 auto","background-color":"rgba(0, 0, 255, 0.2)","box-shadow":"0px 10px 20px #888",border:"2px solid #CCCCCC"},a)),e}(h);e.HoverRegion=f},854:function(t,e,o){var r,n=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0}),e.TreeColorer=e.FlameColorer=e.AbstractTreeExplorer=void 0;var i=o(724);o(961);var a=function(t){function e(e,o,r,n){var i=t.call(this,e,null,r)||this;return i.document=e,i.region=o,i.node=r,i.mml=n,i.stoppable=!1,i}return n(e,t),e.prototype.Attach=function(){t.prototype.Attach.call(this),this.Start()},e.prototype.Detach=function(){this.Stop(),t.prototype.Detach.call(this)},e}(i.AbstractExplorer);e.AbstractTreeExplorer=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.Start=function(){this.active||(this.active=!0,this.highlighter.highlightAll(this.node))},e.prototype.Stop=function(){this.active&&this.highlighter.unhighlightAll(this.node),this.active=!1},e}(a);e.FlameColorer=s;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.Start=function(){if(!this.active){this.active=!0;var t=sre.SpeechGeneratorFactory.generator("Color");this.node.hasAttribute("hasforegroundcolor")||(t.generateSpeech(this.node,this.mml),this.node.setAttribute("hasforegroundcolor","true")),this.highlighter.colorizeAll(this.node)}},e.prototype.Stop=function(){this.active&&this.highlighter.uncolorizeAll(this.node),this.active=!1},e}(a);e.TreeColorer=l},511:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.EnrichedMathItemMixin=MathJax._.a11y["semantic-enrich"].EnrichedMathItemMixin,e.EnrichedMathDocumentMixin=MathJax._.a11y["semantic-enrich"].EnrichedMathDocumentMixin,e.EnrichHandler=MathJax._.a11y["semantic-enrich"].EnrichHandler},961:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.sreReady=MathJax._.a11y.sre.sreReady},723:function(t,e){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,e.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},769:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.protoItem=MathJax._.core.MathItem.protoItem,e.AbstractMathItem=MathJax._.core.MathItem.AbstractMathItem,e.STATE=MathJax._.core.MathItem.STATE,e.newState=MathJax._.core.MathItem.newState},433:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.DATAMJX=MathJax._.core.MmlTree.SerializedMmlVisitor.DATAMJX,e.toEntity=MathJax._.core.MmlTree.SerializedMmlVisitor.toEntity,e.SerializedMmlVisitor=MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor},77:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=MathJax._.util.Options.isObject,e.APPEND=MathJax._.util.Options.APPEND,e.REMOVE=MathJax._.util.Options.REMOVE,e.OPTIONS=MathJax._.util.Options.OPTIONS,e.Expandable=MathJax._.util.Options.Expandable,e.expandable=MathJax._.util.Options.expandable,e.makeArray=MathJax._.util.Options.makeArray,e.keys=MathJax._.util.Options.keys,e.copy=MathJax._.util.Options.copy,e.insert=MathJax._.util.Options.insert,e.defaultOptions=MathJax._.util.Options.defaultOptions,e.userOptions=MathJax._.util.Options.userOptions,e.selectOptions=MathJax._.util.Options.selectOptions,e.selectOptionsFromKeys=MathJax._.util.Options.selectOptionsFromKeys,e.separateOptions=MathJax._.util.Options.separateOptions,e.lookup=MathJax._.util.Options.lookup},888:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CssStyles=MathJax._.util.StyleList.CssStyles},850:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MJContextMenu=MathJax._.ui.menu.MJContextMenu.MJContextMenu}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,o),i.exports}!function(){var t=o(723),e=o(18),r=o(724),n=o(269),i=o(85),a=o(367),s=o(854),l=o(961);(0,t.r8)({_:{a11y:{explorer_ts:e,explorer:{Explorer:r,KeyExplorer:n,MouseExplorer:i,Region:a,TreeExplorer:s},sre:l}}}),MathJax.startup&&MathJax.startup.extendHandler((function(t){return(0,e.ExplorerHandler)(t)}))}()}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){"use strict";var t={433:function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,a=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},c=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.EnrichHandler=e.EnrichedMathDocumentMixin=e.EnrichedMathItemMixin=void 0;var l=r(184),h=r(769),u=r(758),p=r(77),d=r(905),f="none";function y(t,e,r){return function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.serializeMml=function(t){if("outerHTML"in t)return t.outerHTML;if("undefined"!=typeof Element&&"undefined"!=typeof window&&t instanceof Element){var e=window.document.createElement("div");return e.appendChild(t),e.innerHTML}return t.toString()},n.prototype.enrich=function(t,n){if(void 0===n&&(n=!1),!(this.state()>=h.STATE.ENRICHED)){if(!this.isEscaped&&(t.options.enableEnrichment||n)){"undefined"!=typeof sre&&sre.Engine.isReady()||l.mathjax.retryAfter(d.sreReady()),t.options.sre.speech!==f&&(SRE.setupEngine(t.options.sre),f=t.options.sre.speech);var i=new t.options.MathItem("",e);try{var a=this.inputData.originalMml=r(this.root);i.math=this.serializeMml(SRE.toEnriched(a)),i.display=this.display,i.compile(t),this.root=i.root,this.inputData.enrichedMml=i.math}catch(e){t.options.enrichError(t,this,e)}}this.state(h.STATE.ENRICHED)}},n.prototype.attachSpeech=function(t){var e,r;if(!(this.state()>=h.STATE.ATTACHSPEECH)){var n=this.root.attributes.get("aria-label")||this.getSpeech(this.root);if(n){var i=t.adaptor,a=this.typesetRoot;i.setAttribute(a,"aria-label",n);try{for(var s=o(i.childNodes(a)),c=s.next();!c.done;c=s.next()){var l=c.value;i.setAttribute(l,"aria-hidden","true")}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}}this.state(h.STATE.ATTACHSPEECH)}},n.prototype.getSpeech=function(t){var e,r,n=t.attributes;if(!n)return"";var i=n.getExplicit("data-semantic-speech");if(!n.getExplicit("data-semantic-parent")&&i)return i;try{for(var a=o(t.childNodes),s=a.next();!s.done;s=a.next()){var c=s.value,l=this.getSpeech(c);if(null!=l)return l}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return""},n}(t)}function m(t,e){var r;return(r=function(t){function r(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,c([],s(r)))||this;e.setMmlFactory(i.mmlFactory);var a=i.constructor.ProcessBits;a.has("enriched")||(a.allocate("enriched"),a.allocate("attach-speech"));var o=new u.SerializedMmlVisitor(i.mmlFactory),l=function(t){return o.visitTree(t)};return i.options.MathItem=y(i.options.MathItem,e,l),i}return i(r,t),r.prototype.attachSpeech=function(){var t,e;if(!this.processed.isSet("attach-speech")){try{for(var r=o(this.math),n=r.next();!n.done;n=r.next()){n.value.attachSpeech(this)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.processed.set("attach-speech")}return this},r.prototype.enrich=function(){var t,e;if(!this.processed.isSet("enriched")){if(this.options.enableEnrichment)try{for(var r=o(this.math),n=r.next();!n.done;n=r.next()){n.value.enrich(this)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.processed.set("enriched")}return this},r.prototype.enrichError=function(t,e,r){console.warn("Enrichment error:",r)},r.prototype.state=function(e,r){return void 0===r&&(r=!1),t.prototype.state.call(this,e,r),e<h.STATE.ENRICHED&&this.processed.clear("enriched"),this},r}(t)).OPTIONS=a(a({},t.OPTIONS),{enableEnrichment:!0,enrichError:function(t,e,r){return t.enrichError(t,e,r)},renderActions:p.expandable(a(a({},t.OPTIONS.renderActions),{enrich:[h.STATE.ENRICHED],attachSpeech:[h.STATE.ATTACHSPEECH]})),sre:p.expandable({speech:"none",domain:"mathspeak",style:"default",locale:"en"})}),r}h.newState("ENRICHED",30),h.newState("ATTACHSPEECH",155),e.EnrichedMathItemMixin=y,e.EnrichedMathDocumentMixin=m,e.EnrichHandler=function(t,e){return e.setAdaptor(t.adaptor),t.documentClass=m(t.documentClass,e),t}},905:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.sreReady=void 0;var n=r(534),i="undefined"==typeof window?"./a11y/sre-node.js":"../../../speech-rule-engine/lib/sre_browser.js",a="undefined"==typeof sre?n.asyncLoad(i):Promise.resolve();e.sreReady=function(){return new Promise((function(t,e){a.then((function(){var r=(new Date).getTime(),n=function(){sre.Engine.isReady()?t():(new Date).getTime()-r<2e4?setTimeout(n,100):e("Timed out waiting for Speech-Rule-Engine")};n()})).catch((function(t){return e(t.message||t)}))}))}},723:function(t,e){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,e.PV=MathJax._.components.global.combineDefaults,e.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},769:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.protoItem=MathJax._.core.MathItem.protoItem,e.AbstractMathItem=MathJax._.core.MathItem.AbstractMathItem,e.STATE=MathJax._.core.MathItem.STATE,e.newState=MathJax._.core.MathItem.newState},758:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.DATAMJX=MathJax._.core.MmlTree.SerializedMmlVisitor.DATAMJX,e.toEntity=MathJax._.core.MmlTree.SerializedMmlVisitor.toEntity,e.SerializedMmlVisitor=MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor},184:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.mathjax=MathJax._.mathjax.mathjax},534:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.asyncLoad=MathJax._.util.AsyncLoad.asyncLoad},77:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=MathJax._.util.Options.isObject,e.APPEND=MathJax._.util.Options.APPEND,e.REMOVE=MathJax._.util.Options.REMOVE,e.OPTIONS=MathJax._.util.Options.OPTIONS,e.Expandable=MathJax._.util.Options.Expandable,e.expandable=MathJax._.util.Options.expandable,e.makeArray=MathJax._.util.Options.makeArray,e.keys=MathJax._.util.Options.keys,e.copy=MathJax._.util.Options.copy,e.insert=MathJax._.util.Options.insert,e.defaultOptions=MathJax._.util.Options.defaultOptions,e.userOptions=MathJax._.util.Options.userOptions,e.selectOptions=MathJax._.util.Options.selectOptions,e.selectOptionsFromKeys=MathJax._.util.Options.selectOptionsFromKeys,e.separateOptions=MathJax._.util.Options.separateOptions,e.lookup=MathJax._.util.Options.lookup},475:function(t,e){e.K=MathJax._.input.mathml_ts.MathML}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n].call(a.exports,a,a.exports,r),a.exports}!function(){var t=r(723),e=r(433),n=r(905);(0,t.r8)({_:{a11y:{"semantic-enrich":e,sre:n}}});var i=r(475);MathJax.loader&&(0,t.PV)(MathJax.config.loader,"a11y/semantic-enrich",{checkReady:function(){return(0,n.sreReady)()}}),MathJax.startup&&MathJax.startup.extendHandler((function(t){return(0,e.EnrichHandler)(t,new i.K)}))}()}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){"use strict";var t,e,n,r,o,i,a,l,u={877:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.LiteDocument=void 0;var r=n(946),o=function(){function t(){this.root=new r.LiteElement("html",{},[this.head=new r.LiteElement("head"),this.body=new r.LiteElement("body")]),this.type=""}return Object.defineProperty(t.prototype,"kind",{get:function(){return"#document"},enumerable:!1,configurable:!0}),t}();e.LiteDocument=o},946:function(t,e){var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteElement=void 0;var a=function(t,e,a){var l,u;void 0===e&&(e={}),void 0===a&&(a=[]),this.kind=t,this.attributes=n({},e),this.children=o([],r(a));try{for(var s=i(this.children),c=s.next();!c.done;c=s.next())c.value.parent=this}catch(t){l={error:t}}finally{try{c&&!c.done&&(u=s.return)&&u.call(s)}finally{if(l)throw l.error}}this.styles=null};e.LiteElement=a},6:function(t,e){var n=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteList=void 0;var o=function(){function t(t){this.nodes=[],this.nodes=r([],n(t))}return t.prototype.append=function(t){this.nodes.push(t)},t.prototype[Symbol.iterator]=function(){var t=0;return{next:function(){return t===this.nodes.length?{value:null,done:!0}:{value:this.nodes[t++],done:!1}}}},t}();e.LiteList=o},246:function(t,e,n){var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteParser=e.PATTERNS=void 0;var i,a=n(29),l=n(946),u=n(735);!function(t){t.TAGNAME="[a-z][^\\s\\n>]*",t.ATTNAME="[a-z][^\\s\\n>=]*",t.VALUE="(?:'[^']*'|\"[^\"]*\"|[^\\s\\n]+)",t.VALUESPLIT="(?:'([^']*)'|\"([^\"]*)\"|([^\\s\\n]+))",t.SPACE="(?:\\s|\\n)+",t.OPTIONALSPACE="(?:\\s|\\n)*",t.ATTRIBUTE=t.ATTNAME+"(?:"+t.OPTIONALSPACE+"="+t.OPTIONALSPACE+t.VALUE+")?",t.ATTRIBUTESPLIT="("+t.ATTNAME+")(?:"+t.OPTIONALSPACE+"="+t.OPTIONALSPACE+t.VALUESPLIT+")?",t.TAG="(<(?:"+t.TAGNAME+"(?:"+t.SPACE+t.ATTRIBUTE+")*"+t.OPTIONALSPACE+"/?|/"+t.TAGNAME+"|!--[^]*?--|![^]*?)(?:>|$))",t.tag=new RegExp(t.TAG,"i"),t.attr=new RegExp(t.ATTRIBUTE,"i"),t.attrsplit=new RegExp(t.ATTRIBUTESPLIT,"i")}(i=e.PATTERNS||(e.PATTERNS={}));var s=function(){function t(){}return t.prototype.parseFromString=function(t,e,n){void 0===e&&(e="text/html"),void 0===n&&(n=null);for(var r=n.createDocument(),o=n.body(r),a=t.replace(/<\?.*?\?>/g,"").split(i.tag);a.length;){var l=a.shift(),u=a.shift();l&&this.addText(n,o,l),u&&">"===u.charAt(u.length-1)&&("!"===u.charAt(1)?this.addComment(n,o,u):o="/"===u.charAt(1)?this.closeTag(n,o,u):this.openTag(n,o,u,a))}return this.checkDocument(n,r),r},t.prototype.addText=function(t,e,n){return n=a.translate(n),t.append(e,t.text(n))},t.prototype.addComment=function(t,e,n){return t.append(e,new u.LiteComment(n))},t.prototype.closeTag=function(t,e,n){for(var r=n.slice(2,n.length-1).toLowerCase();t.parent(e)&&t.kind(e)!==r;)e=t.parent(e);return t.parent(e)},t.prototype.openTag=function(t,e,n,r){var o=this.constructor.PCDATA,a=this.constructor.SELF_CLOSING,l=n.match(/<(.*?)[\s\n>\/]/)[1].toLowerCase(),u=t.node(l),s=n.replace(/^<.*?[\s\n>]/,"").split(i.attrsplit);return(s.pop().match(/>$/)||s.length<5)&&(this.addAttributes(t,u,s),t.append(e,u),a[l]||n.match(/\/>$/)||(o[l]?this.handlePCDATA(t,u,l,r):e=u)),e},t.prototype.addAttributes=function(t,e,n){for(var o=this.constructor.CDATA_ATTR;n.length;){var i=r(n.splice(0,5),5),l=i[1],u=i[2],s=i[3],c=i[4],p=u||s||c||"";o[l]||(p=a.translate(p)),t.setAttribute(e,l,p)}},t.prototype.handlePCDATA=function(t,e,n,r){for(var o=[],i="</"+n+">",a="";r.length&&a!==i;)o.push(a),o.push(r.shift()),a=r.shift();t.append(e,t.text(o.join("")))},t.prototype.checkDocument=function(t,e){var n,r,i,a,l=this.getOnlyChild(t,t.body(e));if(l){try{for(var s=o(t.childNodes(t.body(e))),c=s.next();!c.done;c=s.next()){if((f=c.value)===l)break;f instanceof u.LiteComment&&f.value.match(/^<!DOCTYPE/)&&(e.type=f.value)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}switch(t.kind(l)){case"html":try{for(var p=o(l.children),h=p.next();!h.done;h=p.next()){var f=h.value;switch(t.kind(f)){case"head":e.head=f;break;case"body":e.body=f}}}catch(t){i={error:t}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}e.root=l,t.remove(l),t.parent(e.body)!==l&&t.append(l,e.body),t.parent(e.head)!==l&&t.insert(e.head,e.body);break;case"head":e.head=t.replace(l,e.head);break;case"body":e.body=t.replace(l,e.body)}}},t.prototype.getOnlyChild=function(t,e){var n,r,i=null;try{for(var a=o(t.childNodes(e)),u=a.next();!u.done;u=a.next()){var s=u.value;if(s instanceof l.LiteElement){if(i)return null;i=s}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},t.prototype.serialize=function(t,e,n){var r=this;void 0===n&&(n=!1);var o=this.constructor.SELF_CLOSING,i=this.constructor.CDATA_ATTR,a=t.kind(e),l=t.allAttributes(e).map((function(t){return t.name+'="'+(i[t.name]?t.value:r.protectAttribute(t.value))+'"'})).join(" "),u=this.serializeInner(t,e,n);return"<"+a+(l?" "+l:"")+(n&&!u||o[a]?n?"/>":">":">"+u+"</"+a+">")},t.prototype.serializeInner=function(t,e,n){var r=this;return void 0===n&&(n=!1),this.constructor.PCDATA.hasOwnProperty(e.kind)?t.childNodes(e).map((function(e){return t.value(e)})).join(""):t.childNodes(e).map((function(e){var o=t.kind(e);return"#text"===o?r.protectHTML(t.value(e)):"#comment"===o?e.value:r.serialize(t,e,n)})).join("")},t.prototype.protectAttribute=function(t){return"string"!=typeof t&&(t=String(t)),t.replace(/"/g,""")},t.prototype.protectHTML=function(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},t.SELF_CLOSING={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},t.PCDATA={option:!0,textarea:!0,fieldset:!0,title:!0,style:!0,script:!0},t.CDATA_ATTR={style:!0,datafld:!0,datasrc:!0,href:!0,src:!0,longdesc:!0,usemap:!0,cite:!0,datetime:!0,action:!0,axis:!0,profile:!0,content:!0,scheme:!0},t}();e.LiteParser=s},735:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.LiteComment=e.LiteText=void 0;var o=function(){function t(t){void 0===t&&(t=""),this.value=t}return Object.defineProperty(t.prototype,"kind",{get:function(){return"#text"},enumerable:!1,configurable:!0}),t}();e.LiteText=o;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"#comment"},enumerable:!1,configurable:!0}),e}(o);e.LiteComment=i},492:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.LiteWindow=void 0;var r=n(946),o=n(877),i=n(6),a=n(246),l=function(){this.DOMParser=a.LiteParser,this.NodeList=i.LiteList,this.HTMLCollection=i.LiteList,this.HTMLElement=r.LiteElement,this.DocumentFragment=i.LiteList,this.Document=o.LiteDocument,this.document=new o.LiteDocument};e.LiteWindow=l},250:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.liteAdaptor=e.LiteAdaptor=void 0;var s=n(857),c=n(877),p=n(946),h=n(735),f=n(492),d=n(246),y=n(878),v=n(77),m=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this,r=n.constructor;return n.options=v.userOptions(v.defaultOptions({},r.OPTIONS),e),n.parser=new d.LiteParser,n.window=new f.LiteWindow,n}return o(e,t),e.prototype.parse=function(t,e){return this.parser.parseFromString(t,e,this)},e.prototype.create=function(t,e){return void 0===e&&(e=null),new p.LiteElement(t)},e.prototype.text=function(t){return new h.LiteText(t)},e.prototype.comment=function(t){return new h.LiteComment(t)},e.prototype.createDocument=function(){return new c.LiteDocument},e.prototype.head=function(t){return t.head},e.prototype.body=function(t){return t.body},e.prototype.root=function(t){return t.root},e.prototype.doctype=function(t){return t.type},e.prototype.tags=function(t,e,n){void 0===n&&(n=null);var r=[],o=[];if(n)return o;for(var i=t;i;){var a=i.kind;"#text"!==a&&"#comment"!==a&&(i=i,a===e&&o.push(i),i.children.length&&(r=i.children.concat(r))),i=r.shift()}return o},e.prototype.elementById=function(t,e){for(var n=[],r=t;r;){if("#text"!==r.kind&&"#comment"!==r.kind){if((r=r).attributes.id===e)return r;r.children.length&&(n=r.children.concat(n))}r=n.shift()}return null},e.prototype.elementsByClass=function(t,e){for(var n=[],r=[],o=t;o;){if("#text"!==o.kind&&"#comment"!==o.kind)((o=o).attributes.class||"").trim().split(/ +/).includes(e)&&r.push(o),o.children.length&&(n=o.children.concat(n));o=n.shift()}return r},e.prototype.getElements=function(t,e){var n,r,o=[],i=this.body(e);try{for(var l=a(t),u=l.next();!u.done;u=l.next()){var s=u.value;if("string"==typeof s)if("#"===s.charAt(0)){var c=this.elementById(i,s.slice(1));c&&o.push(c)}else"."===s.charAt(0)?o=o.concat(this.elementsByClass(i,s.slice(1))):s.match(/^[-a-z][-a-z0-9]*$/i)&&(o=o.concat(this.tags(i,s)));else Array.isArray(s)?o=o.concat(s):s instanceof this.window.NodeList||s instanceof this.window.HTMLCollection?o=o.concat(s.nodes):o.push(s)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return o},e.prototype.contains=function(t,e){for(;e&&e!==t;)e=this.parent(e);return!!e},e.prototype.parent=function(t){return t.parent},e.prototype.childIndex=function(t){return t.parent?t.parent.children.findIndex((function(e){return e===t})):-1},e.prototype.append=function(t,e){return e.parent&&this.remove(e),t.children.push(e),e.parent=t,e},e.prototype.insert=function(t,e){if(t.parent&&this.remove(t),e&&e.parent){var n=this.childIndex(e);e.parent.children.splice(n,0,t),t.parent=e.parent}},e.prototype.remove=function(t){var e=this.childIndex(t);return e>=0&&t.parent.children.splice(e,1),t.parent=null,t},e.prototype.replace=function(t,e){var n=this.childIndex(e);return n>=0&&(e.parent.children[n]=t,t.parent=e.parent,e.parent=null),e},e.prototype.clone=function(t){var e=this,n=new p.LiteElement(t.kind);return n.attributes=i({},t.attributes),n.children=t.children.map((function(t){if("#text"===t.kind)return new h.LiteText(t.value);if("#comment"===t.kind)return new h.LiteComment(t.value);var r=e.clone(t);return r.parent=n,r})),n},e.prototype.split=function(t,e){var n=new h.LiteText(t.value.slice(e));return t.value=t.value.slice(0,e),t.parent.children.splice(this.childIndex(t)+1,0,n),n.parent=t.parent,n},e.prototype.next=function(t){var e=t.parent;if(!e)return null;var n=this.childIndex(t)+1;return n>=0&&n<e.children.length?e.children[n]:null},e.prototype.previous=function(t){var e=t.parent;if(!e)return null;var n=this.childIndex(t)-1;return n>=0?e.children[n]:null},e.prototype.firstChild=function(t){return t.children[0]},e.prototype.lastChild=function(t){return t.children[t.children.length-1]},e.prototype.childNodes=function(t){return u([],l(t.children))},e.prototype.childNode=function(t,e){return t.children[e]},e.prototype.kind=function(t){return t.kind},e.prototype.value=function(t){return"#text"===t.kind?t.value:"#comment"===t.kind?t.value.replace(/^<!(--)?((?:.|\n)*)\1>$/,"$2"):""},e.prototype.textContent=function(t){var e=this;return t.children.reduce((function(t,n){return t+("#text"===n.kind?n.value:"#comment"===n.kind?"":e.textContent(n))}),"")},e.prototype.innerHTML=function(t){return this.parser.serializeInner(this,t)},e.prototype.outerHTML=function(t){return this.parser.serialize(this,t)},e.prototype.serializeXML=function(t){return this.parser.serialize(this,t,!0)},e.prototype.setAttribute=function(t,e,n,r){void 0===r&&(r=null),"string"!=typeof n&&(n=String(n)),r&&(e=r.replace(/.*\//,"")+":"+e.replace(/^.*:/,"")),t.attributes[e]=n,"style"===e&&(t.styles=null)},e.prototype.getAttribute=function(t,e){return t.attributes[e]},e.prototype.removeAttribute=function(t,e){delete t.attributes[e]},e.prototype.hasAttribute=function(t,e){return t.attributes.hasOwnProperty(e)},e.prototype.allAttributes=function(t){var e,n,r=t.attributes,o=[];try{for(var i=a(Object.keys(r)),l=i.next();!l.done;l=i.next()){var u=l.value;o.push({name:u,value:r[u]})}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o},e.prototype.addClass=function(t,e){var n=(t.attributes.class||"").split(/ /);n.find((function(t){return t===e}))||(n.push(e),t.attributes.class=n.join(" "))},e.prototype.removeClass=function(t,e){var n=(t.attributes.class||"").split(/ /),r=n.findIndex((function(t){return t===e}));r>=0&&(n.splice(r,1),t.attributes.class=n.join(" "))},e.prototype.hasClass=function(t,e){return!!(t.attributes.class||"").split(/ /).find((function(t){return t===e}))},e.prototype.setStyle=function(t,e,n){t.styles||(t.styles=new y.Styles(this.getAttribute(t,"style"))),t.styles.set(e,n),t.attributes.style=t.styles.cssText},e.prototype.getStyle=function(t,e){if(!t.styles){var n=this.getAttribute(t,"style");if(!n)return"";t.styles=new y.Styles(n)}return t.styles.get(e)},e.prototype.allStyles=function(t){return this.getAttribute(t,"style")},e.prototype.insertRules=function(t,e){t.children=[this.text(e.join("\n\n")+"\n\n"+this.textContent(t))]},e.prototype.fontSize=function(t){return this.options.fontSize},e.prototype.fontFamily=function(t){return this.options.fontFamily},e.prototype.nodeSize=function(t,n,r){void 0===n&&(n=1),void 0===r&&(r=null);var o=this.textContent(t),i=Array.from(o.replace(e.cjkPattern,"")).length;return[(Array.from(o).length-i)*this.options.cjkCharWidth+i*this.options.unknownCharWidth,this.options.unknownCharHeight]},e.prototype.nodeBBox=function(t){return{left:0,right:0,top:0,bottom:0}},e.OPTIONS={fontSize:16,fontFamily:"Times",cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8},e.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","\ud82c\udc00-\ud82c\udc01","\ud83c\ude00-\ud83c\ude51","\ud840\udc00-\ud8bf\udffd","]"].join(""),"gu"),e}(s.AbstractDOMAdaptor);e.LiteAdaptor=m,e.liteAdaptor=function(t){return void 0===t&&(t=null),new m(t)}},723:function(t,e){MathJax._.components.global.isObject,MathJax._.components.global.combineConfig,MathJax._.components.global.combineDefaults,e.r8=MathJax._.components.global.combineWithMathJax,MathJax._.components.global.MathJax},857:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDOMAdaptor=MathJax._.core.DOMAdaptor.AbstractDOMAdaptor},29:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.options=MathJax._.util.Entities.options,e.entities=MathJax._.util.Entities.entities,e.add=MathJax._.util.Entities.add,e.remove=MathJax._.util.Entities.remove,e.translate=MathJax._.util.Entities.translate,e.numeric=MathJax._.util.Entities.numeric},77:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=MathJax._.util.Options.isObject,e.APPEND=MathJax._.util.Options.APPEND,e.REMOVE=MathJax._.util.Options.REMOVE,e.OPTIONS=MathJax._.util.Options.OPTIONS,e.Expandable=MathJax._.util.Options.Expandable,e.expandable=MathJax._.util.Options.expandable,e.makeArray=MathJax._.util.Options.makeArray,e.keys=MathJax._.util.Options.keys,e.copy=MathJax._.util.Options.copy,e.insert=MathJax._.util.Options.insert,e.defaultOptions=MathJax._.util.Options.defaultOptions,e.userOptions=MathJax._.util.Options.userOptions,e.selectOptions=MathJax._.util.Options.selectOptions,e.selectOptionsFromKeys=MathJax._.util.Options.selectOptionsFromKeys,e.separateOptions=MathJax._.util.Options.separateOptions,e.lookup=MathJax._.util.Options.lookup},878:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Styles=MathJax._.util.Styles.Styles}},s={};function c(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={exports:{}};return u[t].call(n.exports,n,n.exports,c),n.exports}t=c(723),e=c(250),n=c(877),r=c(946),o=c(6),i=c(246),a=c(735),l=c(492),(0,t.r8)({_:{adaptors:{liteAdaptor:e,lite:{Document:n,Element:r,List:o,Parser:i,Text:a,Window:l}}}}),MathJax.startup&&(MathJax.startup.registerConstructor("liteAdaptor",e.liteAdaptor),MathJax.startup.useAdaptor("liteAdaptor",!0))}();
|