@umijs/plugin-docs 4.0.0-rc.2 → 4.0.0-rc.20
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/client/theme-doc/Head.tsx +28 -16
- package/client/theme-doc/LangSwitch.tsx +13 -4
- package/client/theme-doc/Layout.tsx +36 -25
- package/client/theme-doc/Logo.tsx +13 -5
- package/client/theme-doc/NavBar.tsx +58 -15
- package/client/theme-doc/Search.tsx +54 -24
- package/client/theme-doc/Sidebar.tsx +6 -3
- package/client/theme-doc/ThemeSwitch.tsx +10 -2
- package/client/theme-doc/Toc.tsx +12 -14
- package/client/theme-doc/components/Announcement.tsx +1 -0
- package/client/theme-doc/components/Features.tsx +1 -1
- package/client/theme-doc/components/Message.tsx +39 -21
- package/client/theme-doc/context.ts +10 -1
- package/client/theme-doc/firefox-polyfill.css +6 -5
- package/client/theme-doc/tailwind.css +168 -20
- package/client/theme-doc/tailwind.out.css +556 -166
- package/client/theme-doc/useLanguage.ts +15 -5
- package/client/theme-doc/utils/getLinkFromTitle.ts +15 -0
- package/client/theme-doc/utils/getTocTitle.ts +9 -0
- package/compiled/@mdx-js/mdx/LICENSE +21 -0
- package/compiled/@mdx-js/mdx/index.js +8 -0
- package/compiled/@mdx-js/mdx/package.json +1 -0
- package/compiled/rehype-slug/LICENSE +22 -0
- package/compiled/rehype-slug/index.js +1 -0
- package/compiled/rehype-slug/package.json +1 -0
- package/compiled/remark-gfm/LICENSE +22 -0
- package/compiled/remark-gfm/index.js +1 -0
- package/compiled/remark-gfm/package.json +1 -0
- package/dist/compiler.d.ts +1 -0
- package/dist/compiler.js +55 -21
- package/dist/index.js +49 -22
- package/dist/loader.js +14 -15
- package/dist/markdown.js +3 -1
- package/package.json +18 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"@mdx-js/mdx","author":"John Otander <johnotander@gmail.com> (https://johno.com)","license":"MIT","types":"index.d.ts"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){var u={673:function(u,D,F){const e=F(518);u.exports=BananaSlug;const C=Object.hasOwnProperty;function BananaSlug(){const u=this;if(!(u instanceof BananaSlug))return new BananaSlug;u.reset()}BananaSlug.prototype.slug=function(u,D){const F=this;let e=slugger(u,D===true);const E=e;while(C.call(F.occurrences,e)){F.occurrences[E]++;e=E+"-"+F.occurrences[E]}F.occurrences[e]=0;return e};BananaSlug.prototype.reset=function(){this.occurrences=Object.create(null)};function slugger(u,D){if(typeof u!=="string")return"";if(!D)u=u.toLowerCase();return u.replace(e,"").replace(/ /g,"-")}BananaSlug.slug=slugger},518:function(u){u.exports=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08BE-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D04\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1ABF-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31BB-\u31EF\u3200-\u33FF\u4DB6-\u4DFF\u9FF0-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7C7-\uA7F6\uA828-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB68-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD47-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD-\uDDCF\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC60-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD00-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD823-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D-\uD83F\uD87B-\uD87D\uD87F-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE4-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD822[\uDEF3-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD869[\uDED7-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g}};var D={};function __nccwpck_require__(F){var e=D[F];if(e!==undefined){return e.exports}var C=D[F]={exports:{}};var E=true;try{u[F](C,C.exports,__nccwpck_require__);E=false}finally{if(E)delete D[F]}return C.exports}!function(){__nccwpck_require__.d=function(u,D){for(var F in D){if(__nccwpck_require__.o(D,F)&&!__nccwpck_require__.o(u,F)){Object.defineProperty(u,F,{enumerable:true,get:D[F]})}}}}();!function(){__nccwpck_require__.o=function(u,D){return Object.prototype.hasOwnProperty.call(u,D)}}();!function(){__nccwpck_require__.r=function(u){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(u,"__esModule",{value:true})}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var F={};!function(){"use strict";__nccwpck_require__.r(F);__nccwpck_require__.d(F,{default:function(){return rehypeSlug}});var u=__nccwpck_require__(673);var D={}.hasOwnProperty;function hasProperty(u,F){var e=F&&u&&typeof u==="object"&&u.type==="element"&&u.properties&&D.call(u.properties,F)&&u.properties[F];return e!==null&&e!==undefined&&e!==false}function headingRank(u){var D=u&&u.type==="element"&&u.tagName.toLowerCase()||"";var F=D.length===2&&D.charCodeAt(0)===104?D.charCodeAt(1):0;return F>48&&F<55?F-48:null}function hast_util_to_string_toString(u){if("children"in u){return hast_util_to_string_all(u)}return"value"in u?u.value:""}function one(u){if(u.type==="text"){return u.value}return"children"in u?hast_util_to_string_all(u):""}function hast_util_to_string_all(u){let D=-1;const F=[];while(++D<u.children.length){F[D]=one(u.children[D])}return F.join("")}const e=function is(u,D,F,e,C){const E=convert(D);if(F!==undefined&&F!==null&&(typeof F!=="number"||F<0||F===Number.POSITIVE_INFINITY)){throw new Error("Expected positive finite index")}if(e!==undefined&&e!==null&&(!is(e)||!e.children)){throw new Error("Expected parent node")}if((e===undefined||e===null)!==(F===undefined||F===null)){throw new Error("Expected both parent and index")}return u&&u.type&&typeof u.type==="string"?Boolean(E.call(C,u,F,e)):false};const convert=function(u){if(u===undefined||u===null){return ok}if(typeof u==="string"){return typeFactory(u)}if(typeof u==="object"){return Array.isArray(u)?anyFactory(u):propsFactory(u)}if(typeof u==="function"){return castFactory(u)}throw new Error("Expected function, string, or object as test")};function anyFactory(u){const D=[];let F=-1;while(++F<u.length){D[F]=convert(u[F])}return castFactory(any);function any(...u){let F=-1;while(++F<D.length){if(D[F].call(this,...u))return true}return false}}function propsFactory(u){return castFactory(all);function all(D){let F;for(F in u){if(D[F]!==u[F])return false}return true}}function typeFactory(u){return castFactory(type);function type(D){return D&&D.type===u}}function castFactory(u){return assertion;function assertion(...D){return Boolean(u.call(this,...D))}}function ok(){return true}function color(u){return"[33m"+u+"[39m"}const C=true;const E="skip";const t=false;const visitParents=function(u,D,F,e){if(typeof D==="function"&&typeof F!=="function"){e=F;F=D;D=null}const C=convert(D);const A=e?-1:1;factory(u,null,[])();function factory(u,n,r){const B=typeof u==="object"&&u!==null?u:{};let o;if(typeof B.type==="string"){o=typeof B.tagName==="string"?B.tagName:typeof B.name==="string"?B.name:undefined;Object.defineProperty(visit,"name",{value:"node ("+color(B.type+(o?"<"+o+">":""))+")"})}return visit;function visit(){let B=[];let o;let i;let c;if(!D||C(u,n,r[r.length-1]||null)){B=toResult(F(u,r));if(B[0]===t){return B}}if(u.children&&B[0]!==E){i=(e?u.children.length:-1)+A;c=r.concat(u);while(i>-1&&i<u.children.length){o=factory(u.children[i],i,c)();if(o[0]===t){return o}i=typeof o[1]==="number"?o[1]:i+A}}return B}}};function toResult(u){if(Array.isArray(u)){return u}if(typeof u==="number"){return[C,u]}return[u]}const visit=function(u,D,F,e){if(typeof D==="function"&&typeof F!=="function"){e=F;F=D;D=null}visitParents(u,D,overload,e);function overload(u,D){const e=D[D.length-1];return F(u,e?e.children.indexOf(u):null,e)}};const A=new u;function rehypeSlug(){return u=>{A.reset();visit(u,"element",(u=>{if(headingRank(u)&&u.properties&&!hasProperty(u,"id")){u.properties.id=A.slug(hast_util_to_string_toString(u))}}))}}}();module.exports=F})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"rehype-slug","author":"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)","license":"MIT","types":"index.d.ts"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Titus Wormer <tituswormer@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";var e={};!function(){e.d=function(t,r){for(var n in r){if(e.o(r,n)&&!e.o(t,n)){Object.defineProperty(t,n,{enumerable:true,get:r[n]})}}}}();!function(){e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();if(typeof e!=="undefined")e.ab=__dirname+"/";var t={};e.r(t);e.d(t,{default:function(){return remarkGfm}});function splice(e,t,r,n){const i=e.length;let o=0;let a;if(t<0){t=-t>i?0:i+t}else{t=t>i?i:t}r=r>0?r:0;if(n.length<1e4){a=Array.from(n);a.unshift(t,r);[].splice.apply(e,a)}else{if(r)[].splice.apply(e,[t,r]);while(o<n.length){a=n.slice(o,o+1e4);a.unshift(t,0);[].splice.apply(e,a);o+=1e4;t+=1e4}}}function push(e,t){if(e.length>0){splice(e,e.length,0,t);return e}return t}const r={}.hasOwnProperty;function combineExtensions(e){const t={};let r=-1;while(++r<e.length){syntaxExtension(t,e[r])}return t}function syntaxExtension(e,t){let n;for(n in t){const i=r.call(e,n)?e[n]:undefined;const o=i||(e[n]={});const a=t[n];let l;for(l in a){if(!r.call(o,l))o[l]=[];const e=a[l];constructs(o[l],Array.isArray(e)?e:e?[e]:[])}}}function constructs(e,t){let r=-1;const n=[];while(++r<t.length){(t[r].add==="after"?e:n).push(t[r])}splice(e,0,0,n)}function micromark_util_combine_extensions_combineHtmlExtensions(e){const t={};let r=-1;while(++r<e.length){htmlExtension(t,e[r])}return t}function htmlExtension(e,t){let n;for(n in t){const i=r.call(e,n)?e[n]:undefined;const o=i||(e[n]={});const a=t[n];let l;if(a){for(l in a){o[l]=a[l]}}}}const n=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;const i=regexCheck(/[A-Za-z]/);const o=regexCheck(/\d/);const a=regexCheck(/[\dA-Fa-f]/);const l=regexCheck(/[\dA-Za-z]/);const c=regexCheck(/[!-/:-@[-`{-~]/);const u=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(e){return e!==null&&(e<32||e===127)}function markdownLineEndingOrSpace(e){return e!==null&&(e<0||e===32)}function markdownLineEnding(e){return e!==null&&e<-2}function markdownSpace(e){return e===-2||e===-1||e===32}const f=regexCheck(/\s/);const d=regexCheck(n);function regexCheck(e){return check;function check(t){return t!==null&&e.test(String.fromCharCode(t))}}const h={tokenize:tokenizeWww,partial:true};const g={tokenize:tokenizeDomain,partial:true};const m={tokenize:tokenizePath,partial:true};const b={tokenize:tokenizePunctuation,partial:true};const k={tokenize:tokenizeNamedCharacterReference,partial:true};const w={tokenize:tokenizeWwwAutolink,previous:previousWww};const y={tokenize:tokenizeHttpAutolink,previous:previousHttp};const x={tokenize:tokenizeEmailAutolink,previous:previousEmail};const C={};const v={text:C};let A=48;while(A<123){C[A]=x;A++;if(A===58)A=65;else if(A===91)A=97}C[43]=x;C[45]=x;C[46]=x;C[95]=x;C[72]=[x,y];C[104]=[x,y];C[87]=[x,w];C[119]=[x,w];function tokenizeEmailAutolink(e,t,r){const n=this;let i;let a;return start;function start(t){if(!gfmAtext(t)||!previousEmail(n.previous)||previousUnbalanced(n.events)){return r(t)}e.enter("literalAutolink");e.enter("literalAutolinkEmail");return atext(t)}function atext(t){if(gfmAtext(t)){e.consume(t);return atext}if(t===64){e.consume(t);return label}return r(t)}function label(t){if(t===46){return e.check(b,done,dotContinuation)(t)}if(t===45||t===95){return e.check(b,r,dashOrUnderscoreContinuation)(t)}if(l(t)){if(!a&&o(t)){a=true}e.consume(t);return label}return done(t)}function dotContinuation(t){e.consume(t);i=true;a=undefined;return label}function dashOrUnderscoreContinuation(t){e.consume(t);return afterDashOrUnderscore}function afterDashOrUnderscore(t){if(t===46){return e.check(b,r,dotContinuation)(t)}return label(t)}function done(n){if(i&&!a){e.exit("literalAutolinkEmail");e.exit("literalAutolink");return t(n)}return r(n)}}function tokenizeWwwAutolink(e,t,r){const n=this;return start;function start(t){if(t!==87&&t!==119||!previousWww(n.previous)||previousUnbalanced(n.events)){return r(t)}e.enter("literalAutolink");e.enter("literalAutolinkWww");return e.check(h,e.attempt(g,e.attempt(m,done),r),r)(t)}function done(r){e.exit("literalAutolinkWww");e.exit("literalAutolink");return t(r)}}function tokenizeHttpAutolink(e,t,r){const n=this;return start;function start(t){if(t!==72&&t!==104||!previousHttp(n.previous)||previousUnbalanced(n.events)){return r(t)}e.enter("literalAutolink");e.enter("literalAutolinkHttp");e.consume(t);return t1}function t1(t){if(t===84||t===116){e.consume(t);return t2}return r(t)}function t2(t){if(t===84||t===116){e.consume(t);return p}return r(t)}function p(t){if(t===80||t===112){e.consume(t);return s}return r(t)}function s(t){if(t===83||t===115){e.consume(t);return colon}return colon(t)}function colon(t){if(t===58){e.consume(t);return slash1}return r(t)}function slash1(t){if(t===47){e.consume(t);return slash2}return r(t)}function slash2(t){if(t===47){e.consume(t);return after}return r(t)}function after(t){return t===null||asciiControl(t)||f(t)||d(t)?r(t):e.attempt(g,e.attempt(m,done),r)(t)}function done(r){e.exit("literalAutolinkHttp");e.exit("literalAutolink");return t(r)}}function tokenizeWww(e,t,r){return start;function start(t){e.consume(t);return w2}function w2(t){if(t===87||t===119){e.consume(t);return w3}return r(t)}function w3(t){if(t===87||t===119){e.consume(t);return dot}return r(t)}function dot(t){if(t===46){e.consume(t);return after}return r(t)}function after(e){return e===null||markdownLineEnding(e)?r(e):t(e)}}function tokenizeDomain(e,t,r){let n;let i;return domain;function domain(t){if(t===38){return e.check(k,done,punctuationContinuation)(t)}if(t===46||t===95){return e.check(b,done,punctuationContinuation)(t)}if(t===null||asciiControl(t)||f(t)||t!==45&&d(t)){return done(t)}e.consume(t);return domain}function punctuationContinuation(t){if(t===46){i=n;n=undefined;e.consume(t);return domain}if(t===95)n=true;e.consume(t);return domain}function done(e){if(!i&&!n){return t(e)}return r(e)}}function tokenizePath(e,t){let r=0;return inPath;function inPath(n){if(n===38){return e.check(k,t,continuedPunctuation)(n)}if(n===40){r++}if(n===41){return e.check(b,parenAtPathEnd,continuedPunctuation)(n)}if(pathEnd(n)){return t(n)}if(trailingPunctuation(n)){return e.check(b,t,continuedPunctuation)(n)}e.consume(n);return inPath}function continuedPunctuation(t){e.consume(t);return inPath}function parenAtPathEnd(e){r--;return r<0?t(e):continuedPunctuation(e)}}function tokenizeNamedCharacterReference(e,t,r){return start;function start(t){e.consume(t);return inside}function inside(t){if(i(t)){e.consume(t);return inside}if(t===59){e.consume(t);return after}return r(t)}function after(e){return pathEnd(e)?t(e):r(e)}}function tokenizePunctuation(e,t,r){return start;function start(t){e.consume(t);return after}function after(n){if(trailingPunctuation(n)){e.consume(n);return after}return pathEnd(n)?t(n):r(n)}}function trailingPunctuation(e){return e===33||e===34||e===39||e===41||e===42||e===44||e===46||e===58||e===59||e===60||e===63||e===95||e===126}function pathEnd(e){return e===null||e===60||markdownLineEndingOrSpace(e)}function gfmAtext(e){return e===43||e===45||e===46||e===95||l(e)}function previousWww(e){return e===null||e===40||e===42||e===95||e===126||markdownLineEndingOrSpace(e)}function previousHttp(e){return e===null||!i(e)}function previousEmail(e){return e!==47&&previousHttp(e)}function previousUnbalanced(e){let t=e.length;let r=false;while(t--){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=true;break}if(n._gfmAutolinkLiteralWalkedInto){r=false;break}}if(e.length>0&&!r){e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=true}return r}function factorySpace(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let o=0;return start;function start(n){if(markdownSpace(n)){e.enter(r);return prefix(n)}return t(n)}function prefix(n){if(markdownSpace(n)&&o++<i){e.consume(n);return prefix}e.exit(r);return t(n)}}const D={tokenize:tokenizeBlankLine,partial:true};function tokenizeBlankLine(e,t,r){return factorySpace(e,afterWhitespace,"linePrefix");function afterWhitespace(e){return e===null||markdownLineEnding(e)?t(e):r(e)}}function normalizeIdentifier(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const E={tokenize:tokenizeIndent,partial:true};function gfmFootnote(){return{document:{[91]:{tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{[91]:{tokenize:tokenizeGfmFootnoteCall},[93]:{add:"after",tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(e,t,r){const n=this;let i=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;while(i--){const e=n.events[i][1];if(e.type==="labelImage"){a=e;break}if(e.type==="gfmFootnoteCall"||e.type==="labelLink"||e.type==="label"||e.type==="image"||e.type==="link"){break}}return start;function start(i){if(!a||!a._balanced){return r(i)}const l=normalizeIdentifier(n.sliceSerialize({start:a.end,end:n.now()}));if(l.charCodeAt(0)!==94||!o.includes(l.slice(1))){return r(i)}e.enter("gfmFootnoteCallLabelMarker");e.consume(i);e.exit("gfmFootnoteCallLabelMarker");return t(i)}}function resolveToPotentialGfmFootnoteCall(e,t){let r=e.length;let n;while(r--){if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){n=e[r][1];break}}e[r+1][1].type="data";e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)};const o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++;o.end.offset++;o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)};const l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)};const c=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];e.splice(r,e.length-r+1,...c);return e}function tokenizeGfmFootnoteCall(e,t,r){const n=this;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o=0;let a;return start;function start(t){e.enter("gfmFootnoteCall");e.enter("gfmFootnoteCallLabelMarker");e.consume(t);e.exit("gfmFootnoteCallLabelMarker");return callStart}function callStart(t){if(t!==94)return r(t);e.enter("gfmFootnoteCallMarker");e.consume(t);e.exit("gfmFootnoteCallMarker");e.enter("gfmFootnoteCallString");e.enter("chunkString").contentType="string";return callData}function callData(t){let l;if(t===null||t===91||o++>999){return r(t)}if(t===93){if(!a){return r(t)}e.exit("chunkString");l=e.exit("gfmFootnoteCallString");return i.includes(normalizeIdentifier(n.sliceSerialize(l)))?end(t):r(t)}e.consume(t);if(!markdownLineEndingOrSpace(t)){a=true}return t===92?callEscape:callData}function callEscape(t){if(t===91||t===92||t===93){e.consume(t);o++;return callData}return callData(t)}function end(r){e.enter("gfmFootnoteCallLabelMarker");e.consume(r);e.exit("gfmFootnoteCallLabelMarker");e.exit("gfmFootnoteCall");return t}}function tokenizeDefinitionStart(e,t,r){const n=this;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o;let a=0;let l;return start;function start(t){e.enter("gfmFootnoteDefinition")._container=true;e.enter("gfmFootnoteDefinitionLabel");e.enter("gfmFootnoteDefinitionLabelMarker");e.consume(t);e.exit("gfmFootnoteDefinitionLabelMarker");return labelStart}function labelStart(t){if(t===94){e.enter("gfmFootnoteDefinitionMarker");e.consume(t);e.exit("gfmFootnoteDefinitionMarker");e.enter("gfmFootnoteDefinitionLabelString");return atBreak}return r(t)}function atBreak(t){let i;if(t===null||t===91||a>999){return r(t)}if(t===93){if(!l){return r(t)}i=e.exit("gfmFootnoteDefinitionLabelString");o=normalizeIdentifier(n.sliceSerialize(i));e.enter("gfmFootnoteDefinitionLabelMarker");e.consume(t);e.exit("gfmFootnoteDefinitionLabelMarker");e.exit("gfmFootnoteDefinitionLabel");return labelAfter}if(markdownLineEnding(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");a++;return atBreak}e.enter("chunkString").contentType="string";return label(t)}function label(t){if(t===null||markdownLineEnding(t)||t===91||t===93||a>999){e.exit("chunkString");return atBreak(t)}if(!markdownLineEndingOrSpace(t)){l=true}a++;e.consume(t);return t===92?labelEscape:label}function labelEscape(t){if(t===91||t===92||t===93){e.consume(t);a++;return label}return label(t)}function labelAfter(t){if(t===58){e.enter("definitionMarker");e.consume(t);e.exit("definitionMarker");return factorySpace(e,done,"gfmFootnoteDefinitionWhitespace")}return r(t)}function done(e){if(!i.includes(o)){i.push(o)}return t(e)}}function tokenizeDefinitionContinuation(e,t,r){return e.check(D,t,e.attempt(E,t,r))}function gfmFootnoteDefinitionEnd(e){e.exit("gfmFootnoteDefinition")}function tokenizeIndent(e,t,r){const n=this;return factorySpace(e,afterPrefix,"gfmFootnoteDefinitionIndent",4+1);function afterPrefix(e){const i=n.events[n.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],true).length===4?t(e):r(e)}}function classifyCharacter(e){if(e===null||markdownLineEndingOrSpace(e)||f(e)){return 1}if(d(e)){return 2}}function resolveAll(e,t,r){const n=[];let i=-1;while(++i<e.length){const o=e[i].resolveAll;if(o&&!n.includes(o)){t=o(t,r);n.push(o)}}return t}function gfmStrikethrough(e={}){let t=e.singleTilde;const r={tokenize:tokenizeStrikethrough,resolveAll:resolveAllStrikethrough};if(t===null||t===undefined){t=true}return{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function resolveAllStrikethrough(e,t){let r=-1;while(++r<e.length){if(e[r][0]==="enter"&&e[r][1].type==="strikethroughSequenceTemporary"&&e[r][1]._close){let n=r;while(n--){if(e[n][0]==="exit"&&e[n][1].type==="strikethroughSequenceTemporary"&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset===e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence";e[n][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)};const o={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)};const a=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",o,t]];splice(a,a.length,0,resolveAll(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t));splice(a,a.length,0,[["exit",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]);splice(e,n-1,r-n+3,a);r=n+a.length-2;break}}}}r=-1;while(++r<e.length){if(e[r][1].type==="strikethroughSequenceTemporary"){e[r][1].type="data"}}return e}function tokenizeStrikethrough(e,r,n){const i=this.previous;const o=this.events;let a=0;return start;function start(t){if(i===126&&o[o.length-1][1].type!=="characterEscape"){return n(t)}e.enter("strikethroughSequenceTemporary");return more(t)}function more(o){const l=classifyCharacter(i);if(o===126){if(a>1)return n(o);e.consume(o);a++;return more}if(a<2&&!t)return n(o);const c=e.exit("strikethroughSequenceTemporary");const u=classifyCharacter(o);c._open=!u||u===2&&Boolean(l);c._close=!l||l===2&&Boolean(u);return r(o)}}}const F={flow:{null:{tokenize:tokenizeTable,resolve:resolveTable}}};const q={tokenize:tokenizeNextPrefixedOrBlank,partial:true};function resolveTable(e,t){let r=-1;let n;let i;let o;let a;let l;let c;let u;while(++r<e.length){const f=e[r][1];if(o){if(f.type==="temporaryTableCellContent"){a=a||r;l=r}if((f.type==="tableCellDivider"||f.type==="tableRow")&&l){const n={type:"tableContent",start:e[a][1].start,end:e[l][1].end};const i={type:"chunkText",start:n.start,end:n.end,contentType:"text"};e.splice(a,l-a+1,["enter",n,t],["enter",i,t],["exit",i,t],["exit",n,t]);r-=l-a-3;a=undefined;l=undefined}}if(e[r][0]==="exit"&&c!==undefined&&c+(u?0:1)<r&&(f.type==="tableCellDivider"||f.type==="tableRow"&&(c+3<r||e[c][1].type!=="whitespace"))){const o={type:i?"tableDelimiter":n?"tableHeader":"tableData",start:e[c][1].start,end:e[r][1].end};e.splice(r+(f.type==="tableCellDivider"?1:0),0,["exit",o,t]);e.splice(c,0,["enter",o,t]);r+=2;c=r+1;u=true}if(f.type==="tableRow"){o=e[r][0]==="enter";if(o){c=r+1;u=false}}if(f.type==="tableDelimiterRow"){i=e[r][0]==="enter";if(i){c=r+1;u=false}}if(f.type==="tableHead"){n=e[r][0]==="enter"}}return e}function tokenizeTable(e,t,r){const n=this;const i=[];let o=0;let a;let l;return start;function start(t){e.enter("table")._align=i;e.enter("tableHead");e.enter("tableRow");if(t===124){return cellDividerHead(t)}o++;e.enter("temporaryTableCellContent");return inCellContentHead(t)}function cellDividerHead(t){e.enter("tableCellDivider");e.consume(t);e.exit("tableCellDivider");a=true;return cellBreakHead}function cellBreakHead(t){if(t===null||markdownLineEnding(t)){return atRowEndHead(t)}if(markdownSpace(t)){e.enter("whitespace");e.consume(t);return inWhitespaceHead}if(a){a=undefined;o++}if(t===124){return cellDividerHead(t)}e.enter("temporaryTableCellContent");return inCellContentHead(t)}function inWhitespaceHead(t){if(markdownSpace(t)){e.consume(t);return inWhitespaceHead}e.exit("whitespace");return cellBreakHead(t)}function inCellContentHead(t){if(t===null||t===124||markdownLineEndingOrSpace(t)){e.exit("temporaryTableCellContent");return cellBreakHead(t)}e.consume(t);return t===92?inCellContentEscapeHead:inCellContentHead}function inCellContentEscapeHead(t){if(t===92||t===124){e.consume(t);return inCellContentHead}return inCellContentHead(t)}function atRowEndHead(t){if(t===null){return r(t)}e.exit("tableRow");e.exit("tableHead");const i=n.interrupt;n.interrupt=true;return e.attempt({tokenize:tokenizeRowEnd,partial:true},(function(t){n.interrupt=i;e.enter("tableDelimiterRow");return atDelimiterRowBreak(t)}),(function(e){n.interrupt=i;return r(e)}))(t)}function atDelimiterRowBreak(t){if(t===null||markdownLineEnding(t)){return rowEndDelimiter(t)}if(markdownSpace(t)){e.enter("whitespace");e.consume(t);return inWhitespaceDelimiter}if(t===45){e.enter("tableDelimiterFiller");e.consume(t);l=true;i.push("none");return inFillerDelimiter}if(t===58){e.enter("tableDelimiterAlignment");e.consume(t);e.exit("tableDelimiterAlignment");i.push("left");return afterLeftAlignment}if(t===124){e.enter("tableCellDivider");e.consume(t);e.exit("tableCellDivider");return atDelimiterRowBreak}return r(t)}function inWhitespaceDelimiter(t){if(markdownSpace(t)){e.consume(t);return inWhitespaceDelimiter}e.exit("whitespace");return atDelimiterRowBreak(t)}function inFillerDelimiter(t){if(t===45){e.consume(t);return inFillerDelimiter}e.exit("tableDelimiterFiller");if(t===58){e.enter("tableDelimiterAlignment");e.consume(t);e.exit("tableDelimiterAlignment");i[i.length-1]=i[i.length-1]==="left"?"center":"right";return afterRightAlignment}return atDelimiterRowBreak(t)}function afterLeftAlignment(t){if(t===45){e.enter("tableDelimiterFiller");e.consume(t);l=true;return inFillerDelimiter}return r(t)}function afterRightAlignment(t){if(t===null||markdownLineEnding(t)){return rowEndDelimiter(t)}if(markdownSpace(t)){e.enter("whitespace");e.consume(t);return inWhitespaceDelimiter}if(t===124){e.enter("tableCellDivider");e.consume(t);e.exit("tableCellDivider");return atDelimiterRowBreak}return r(t)}function rowEndDelimiter(t){e.exit("tableDelimiterRow");if(!l||o!==i.length){return r(t)}if(t===null){return tableClose(t)}return e.check(q,tableClose,e.attempt({tokenize:tokenizeRowEnd,partial:true},factorySpace(e,bodyStart,"linePrefix",4),tableClose))(t)}function tableClose(r){e.exit("table");return t(r)}function bodyStart(t){e.enter("tableBody");return rowStartBody(t)}function rowStartBody(t){e.enter("tableRow");if(t===124){return cellDividerBody(t)}e.enter("temporaryTableCellContent");return inCellContentBody(t)}function cellDividerBody(t){e.enter("tableCellDivider");e.consume(t);e.exit("tableCellDivider");return cellBreakBody}function cellBreakBody(t){if(t===null||markdownLineEnding(t)){return atRowEndBody(t)}if(markdownSpace(t)){e.enter("whitespace");e.consume(t);return inWhitespaceBody}if(t===124){return cellDividerBody(t)}e.enter("temporaryTableCellContent");return inCellContentBody(t)}function inWhitespaceBody(t){if(markdownSpace(t)){e.consume(t);return inWhitespaceBody}e.exit("whitespace");return cellBreakBody(t)}function inCellContentBody(t){if(t===null||t===124||markdownLineEndingOrSpace(t)){e.exit("temporaryTableCellContent");return cellBreakBody(t)}e.consume(t);return t===92?inCellContentEscapeBody:inCellContentBody}function inCellContentEscapeBody(t){if(t===92||t===124){e.consume(t);return inCellContentBody}return inCellContentBody(t)}function atRowEndBody(t){e.exit("tableRow");if(t===null){return tableBodyClose(t)}return e.check(q,tableBodyClose,e.attempt({tokenize:tokenizeRowEnd,partial:true},factorySpace(e,rowStartBody,"linePrefix",4),tableBodyClose))(t)}function tableBodyClose(t){e.exit("tableBody");return tableClose(t)}function tokenizeRowEnd(e,t,r){return start;function start(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return factorySpace(e,prefixed,"linePrefix")}function prefixed(i){if(n.parser.lazy[n.now().line]||i===null||markdownLineEnding(i)){return r(i)}const o=n.events[n.events.length-1];if(!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],true).length>=4){return r(i)}n._gfmTableDynamicInterruptHack=true;return e.check(n.parser.constructs.flow,(function(e){n._gfmTableDynamicInterruptHack=false;return r(e)}),(function(e){n._gfmTableDynamicInterruptHack=false;return t(e)}))(i)}}}function tokenizeNextPrefixedOrBlank(e,t,r){let n=0;return start;function start(t){e.enter("check");e.consume(t);return whitespace}function whitespace(i){if(i===-1||i===32){e.consume(i);n++;return n===4?t:whitespace}if(i===null||markdownLineEndingOrSpace(i)){return t(i)}return r(i)}}const S={tokenize:tokenizeTasklistCheck};const L={text:{[91]:S}};function tokenizeTasklistCheck(e,t,r){const n=this;return open;function open(t){if(n.previous!==null||!n._gfmTasklistFirstContentOfListItem){return r(t)}e.enter("taskListCheck");e.enter("taskListCheckMarker");e.consume(t);e.exit("taskListCheckMarker");return inside}function inside(t){if(markdownLineEndingOrSpace(t)){e.enter("taskListCheckValueUnchecked");e.consume(t);e.exit("taskListCheckValueUnchecked");return close}if(t===88||t===120){e.enter("taskListCheckValueChecked");e.consume(t);e.exit("taskListCheckValueChecked");return close}return r(t)}function close(n){if(n===93){e.enter("taskListCheckMarker");e.consume(n);e.exit("taskListCheckMarker");e.exit("taskListCheck");return e.check({tokenize:spaceThenNonSpace},t,r)}return r(n)}}function spaceThenNonSpace(e,t,r){const n=this;return factorySpace(e,after,"whitespace");function after(e){const i=n.events[n.events.length-1];return(i&&i[1].type==="whitespace"||markdownLineEnding(e))&&e!==null?t(e):r(e)}}function gfm(e){return combineExtensions([v,gfmFootnote(),gfmStrikethrough(e),F,L])}function gfmHtml(e){return combineHtmlExtensions([gfmAutolinkLiteralHtml,gfmFootnoteHtml(e),gfmStrikethroughHtml,gfmTableHtml,gfmTagfilterHtml,gfmTaskListItemHtml])}function ccount(e,t){const r=String(e);if(typeof t!=="string"){throw new TypeError("Expected character")}let n=0;let i=r.indexOf(t);while(i!==-1){n++;i=r.indexOf(t,i+t.length)}return n}function escapeStringRegexp(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const T=function is(e,t,r,n,i){const o=convert(t);if(r!==undefined&&r!==null&&(typeof r!=="number"||r<0||r===Number.POSITIVE_INFINITY)){throw new Error("Expected positive finite index")}if(n!==undefined&&n!==null&&(!is(n)||!n.children)){throw new Error("Expected parent node")}if((n===undefined||n===null)!==(r===undefined||r===null)){throw new Error("Expected both parent and index")}return e&&e.type&&typeof e.type==="string"?Boolean(o.call(i,e,r,n)):false};const convert=function(e){if(e===undefined||e===null){return ok}if(typeof e==="string"){return typeFactory(e)}if(typeof e==="object"){return Array.isArray(e)?anyFactory(e):propsFactory(e)}if(typeof e==="function"){return castFactory(e)}throw new Error("Expected function, string, or object as test")};function anyFactory(e){const t=[];let r=-1;while(++r<e.length){t[r]=convert(e[r])}return castFactory(any);function any(...e){let r=-1;while(++r<t.length){if(t[r].call(this,...e))return true}return false}}function propsFactory(e){return castFactory(all);function all(t){let r;for(r in e){if(t[r]!==e[r])return false}return true}}function typeFactory(e){return castFactory(type);function type(t){return t&&t.type===e}}function castFactory(e){return assertion;function assertion(...t){return Boolean(e.call(this,...t))}}function ok(){return true}function color(e){return"[33m"+e+"[39m"}const B=true;const R="skip";const z=false;const visitParents=function(e,t,r,n){if(typeof t==="function"&&typeof r!=="function"){n=r;r=t;t=null}var i=convert(t);var o=n?-1:1;factory(e,null,[])();function factory(e,a,l){var c=typeof e==="object"&&e!==null?e:{};var u;if(typeof c.type==="string"){u=typeof c.tagName==="string"?c.tagName:typeof c.name==="string"?c.name:undefined;Object.defineProperty(visit,"name",{value:"node ("+color(c.type+(u?"<"+u+">":""))+")"})}return visit;function visit(){var c=[];var u;var f;var d;if(!t||i(e,a,l[l.length-1]||null)){c=toResult(r(e,l));if(c[0]===z){return c}}if(e.children&&c[0]!==R){f=(n?e.children.length:-1)+o;d=l.concat(e);while(f>-1&&f<e.children.length){u=factory(e.children[f],f,d)();if(u[0]===z){return u}f=typeof u[1]==="number"?u[1]:f+o}}return c}}};function toResult(e){if(Array.isArray(e)){return e}if(typeof e==="number"){return[B,e]}return[e]}const I={}.hasOwnProperty;const findAndReplace=function(e,t,r,n){let i;let o;if(typeof t==="string"||t instanceof RegExp){o=[[t,r]];i=n}else{o=t;i=r}if(!i){i={}}const a=convert(i.ignore||[]);const l=toPairs(o);let c=-1;while(++c<l.length){visitParents(e,"text",visitor)}return e;function visitor(e,t){let r=-1;let n;while(++r<t.length){const e=t[r];if(a(e,n?n.children.indexOf(e):undefined,n)){return}n=e}if(n){return handler(e,n)}}function handler(e,t){const r=l[c][0];const n=l[c][1];let i=0;let o=t.children.indexOf(e);let a=[];let u;r.lastIndex=0;let f=r.exec(e.value);while(f){u=f.index;let t=n(...f,{index:f.index,input:f.input});if(typeof t==="string"){t=t.length>0?{type:"text",value:t}:undefined}if(t!==false){if(i!==u){a.push({type:"text",value:e.value.slice(i,u)})}if(Array.isArray(t)){a.push(...t)}else if(t){a.push(t)}i=u+f[0].length}if(!r.global){break}f=r.exec(e.value)}if(u===undefined){a=[e];o--}else{if(i<e.value.length){a.push({type:"text",value:e.value.slice(i)})}t.children.splice(o,1,...a)}return o+a.length+1}};function toPairs(e){const t=[];if(typeof e!=="object"){throw new TypeError("Expected array or object as schema")}if(Array.isArray(e)){let r=-1;while(++r<e.length){t.push([toExpression(e[r][0]),toFunction(e[r][1])])}}else{let r;for(r in e){if(I.call(e,r)){t.push([toExpression(r),toFunction(e[r])])}}}return t}function toExpression(e){return typeof e==="string"?new RegExp(escapeStringRegexp(e),"g"):e}function toFunction(e){return typeof e==="function"?e:()=>e}const N="phrasing";const P=["autolink","link","image","label"];const H={transforms:[transformGfmAutolinkLiterals],enter:{literalAutolink:enterLiteralAutolink,literalAutolinkEmail:enterLiteralAutolinkValue,literalAutolinkHttp:enterLiteralAutolinkValue,literalAutolinkWww:enterLiteralAutolinkValue},exit:{literalAutolink:exitLiteralAutolink,literalAutolinkEmail:exitLiteralAutolinkEmail,literalAutolinkHttp:exitLiteralAutolinkHttp,literalAutolinkWww:exitLiteralAutolinkWww}};const O={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:N,notInConstruct:P},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:N,notInConstruct:P},{character:":",before:"[ps]",after:"\\/",inConstruct:N,notInConstruct:P}]};function enterLiteralAutolink(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function enterLiteralAutolinkValue(e){this.config.enter.autolinkProtocol.call(this,e)}function exitLiteralAutolinkHttp(e){this.config.exit.autolinkProtocol.call(this,e)}function exitLiteralAutolinkWww(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function exitLiteralAutolinkEmail(e){this.config.exit.autolinkEmail.call(this,e)}function exitLiteralAutolink(e){this.exit(e)}function transformGfmAutolinkLiterals(e){findAndReplace(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,findUrl],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,findEmail]],{ignore:["link","linkReference"]})}function findUrl(e,t,r,n,i){let o="";if(!previous(i)){return false}if(/^w/i.test(t)){r=t+r;t="";o="http://"}if(!isCorrectDomain(r)){return false}const a=splitUrl(r+n);if(!a[0])return false;const l={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};if(a[1]){return[l,{type:"text",value:a[1]}]}return l}function findEmail(e,t,r,n){if(!previous(n,true)||/[_-\d]$/.test(r)){return false}return{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function isCorrectDomain(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2]))){return false}return true}function splitUrl(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);let r;let n;let i;let o;if(t){e=e.slice(0,t.index);o=t[0];r=o.indexOf(")");n=ccount(e,"(");i=ccount(e,")");while(r!==-1&&n>i){e+=o.slice(0,r+1);o=o.slice(r+1);r=o.indexOf(")");i++}}return[e,o]}function previous(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||f(r)||d(r))&&(!t||r!==47)}const U={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""};const V={}.hasOwnProperty;function decodeNamedCharacterReference(e){return V.call(U,e)?U[e]:false}function decodeNumericCharacterReference(e,t){const r=Number.parseInt(e,t);if(r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111){return"�"}return String.fromCharCode(r)}const j=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(e){return e.replace(j,decode)}function decode(e,t,r){if(t){return t}const n=r.charCodeAt(0);if(n===35){const e=r.charCodeAt(1);const t=e===120||e===88;return decodeNumericCharacterReference(r.slice(t?2:1),t?16:10)}return decodeNamedCharacterReference(r)||e}function association(e){if(e.label||!e.identifier){return e.label||""}return decodeString(e.identifier)}function track(e){const t=e||{};const r=t.now||{};let n=t.lineShift||0;let i=r.line||1;let o=r.column||1;return{move:move,current:current,shift:shift};function current(){return{now:{line:i,column:o},lineShift:n}}function shift(e){n+=e}function move(e=""){const t=e.split(/\r?\n|\r/g);const r=t[t.length-1];i+=t.length-1;o=t.length===1?o+r.length:1+r.length+n;return e}}function containerFlow(e,t,r){const n=t.indexStack;const i=e.children||[];const o=track(r);const a=[];let l=-1;n.push(-1);while(++l<i.length){const r=i[l];n[n.length-1]=l;a.push(o.move(t.handle(r,e,t,{before:"\n",after:"\n",...o.current()})));if(r.type!=="list"){t.bulletLastUsed=undefined}if(l<i.length-1){a.push(o.move(between(r,i[l+1])))}}n.pop();return a.join("");function between(r,n){let i=t.join.length;while(i--){const o=t.join[i](r,n,e,t);if(o===true||o===1){break}if(typeof o==="number"){return"\n".repeat(1+o)}if(o===false){return"\n\n\x3c!----\x3e\n\n"}}return"\n\n"}}const G=/\r?\n|\r/g;function indentLines(e,t){const r=[];let n=0;let i=0;let o;while(o=G.exec(e)){one(e.slice(n,o.index));r.push(o[0]);n=o.index+o[0].length;i++}one(e.slice(n));return r.join("");function one(e){r.push(t(e,i,!e))}}function patternCompile(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function patternInScope(e,t){return listInScope(e,t.inConstruct,true)&&!listInScope(e,t.notInConstruct,false)}function listInScope(e,t,r){if(!t){return r}if(typeof t==="string"){t=[t]}let n=-1;while(++n<t.length){if(e.includes(t[n])){return true}}return false}function safe(e,t,r){const n=(r.before||"")+(t||"")+(r.after||"");const i=[];const o=[];const a={};let l=-1;while(++l<e.unsafe.length){const t=e.unsafe[l];if(!patternInScope(e.stack,t)){continue}const r=patternCompile(t);let o;while(o=r.exec(n)){const e="before"in t||Boolean(t.atBreak);const r="after"in t;const n=o.index+(e?o[1].length:0);if(i.includes(n)){if(a[n].before&&!e){a[n].before=false}if(a[n].after&&!r){a[n].after=false}}else{i.push(n);a[n]={before:e,after:r}}}}i.sort(numerical);let c=r.before?r.before.length:0;const u=n.length-(r.after?r.after.length:0);l=-1;while(++l<i.length){const e=i[l];if(e<c||e>=u){continue}if(e+1<u&&i[l+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||i[l-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after){continue}if(c!==e){o.push(escapeBackslashes(n.slice(c,e),"\\"))}c=e;if(/[!-/:-@[-`{-~]/.test(n.charAt(e))&&(!r.encode||!r.encode.includes(n.charAt(e)))){o.push("\\")}else{o.push("&#x"+n.charCodeAt(e).toString(16).toUpperCase()+";");c++}}o.push(escapeBackslashes(n.slice(c,u),r.after));return o.join("")}function numerical(e,t){return e-t}function escapeBackslashes(e,t){const r=/\\(?=[!-/:-@[-`{-~])/g;const n=[];const i=[];const o=e+t;let a=-1;let l=0;let c;while(c=r.exec(o)){n.push(c.index)}while(++a<n.length){if(l!==n[a]){i.push(e.slice(l,n[a]))}i.push("\\");l=n[a]}i.push(e.slice(l));return i.join("")}function gfmFootnoteFromMarkdown(){return{enter:{gfmFootnoteDefinition:enterFootnoteDefinition,gfmFootnoteDefinitionLabelString:enterFootnoteDefinitionLabelString,gfmFootnoteCall:enterFootnoteCall,gfmFootnoteCallString:enterFootnoteCallString},exit:{gfmFootnoteDefinition:exitFootnoteDefinition,gfmFootnoteDefinitionLabelString:exitFootnoteDefinitionLabelString,gfmFootnoteCall:exitFootnoteCall,gfmFootnoteCallString:exitFootnoteCallString}};function enterFootnoteDefinition(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function enterFootnoteDefinitionLabelString(){this.buffer()}function exitFootnoteDefinitionLabelString(e){const t=this.resume();const r=this.stack[this.stack.length-1];r.label=t;r.identifier=normalizeIdentifier(this.sliceSerialize(e)).toLowerCase()}function exitFootnoteDefinition(e){this.exit(e)}function enterFootnoteCall(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function enterFootnoteCallString(){this.buffer()}function exitFootnoteCallString(e){const t=this.resume();const r=this.stack[this.stack.length-1];r.label=t;r.identifier=normalizeIdentifier(this.sliceSerialize(e)).toLowerCase()}function exitFootnoteCall(e){this.exit(e)}}function gfmFootnoteToMarkdown(){footnoteReference.peek=footnoteReferencePeek;return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:footnoteDefinition,footnoteReference:footnoteReference}};function footnoteReference(e,t,r,n){const i=track(n);let o=i.move("[^");const a=r.enter("footnoteReference");const l=r.enter("reference");o+=i.move(safe(r,association(e),{...i.current(),before:o,after:"]"}));l();a();o+=i.move("]");return o}function footnoteReferencePeek(){return"["}function footnoteDefinition(e,t,r,n){const i=track(n);let o=i.move("[^");const a=r.enter("footnoteDefinition");const l=r.enter("label");o+=i.move(safe(r,association(e),{...i.current(),before:o,after:"]"}));l();o+=i.move("]:"+(e.children&&e.children.length>0?" ":""));i.shift(4);o+=i.move(indentLines(containerFlow(e,r,i.current()),map));a();return o;function map(e,t,r){if(t){return(r?"":" ")+e}return e}}}function containerPhrasing(e,t,r){const n=t.indexStack;const i=e.children||[];const o=[];let a=-1;let l=r.before;n.push(-1);let c=track(r);while(++a<i.length){const u=i[a];let f;n[n.length-1]=a;if(a+1<i.length){let r=t.handle.handlers[i[a+1].type];if(r&&r.peek)r=r.peek;f=r?r(i[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else{f=r.after}if(o.length>0&&(l==="\r"||l==="\n")&&u.type==="html"){o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," ");l=" ";c=track(r);c.move(o.join(""))}o.push(c.move(t.handle(u,e,t,{...c.current(),before:l,after:f})));l=o[o.length-1].slice(-1)}n.pop();return o.join("")}const M={canContainEols:["delete"],enter:{strikethrough:enterStrikethrough},exit:{strikethrough:exitStrikethrough}};const W={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:handleDelete}};handleDelete.peek=peekDelete;function enterStrikethrough(e){this.enter({type:"delete",children:[]},e)}function exitStrikethrough(e){this.exit(e)}function handleDelete(e,t,r,n){const i=track(n);const o=r.enter("emphasis");let a=i.move("~~");a+=containerPhrasing(e,r,{...i.current(),before:a,after:"~"});a+=i.move("~~");o();return a}function peekDelete(){return"~"}inlineCode.peek=inlineCodePeek;function inlineCode(e,t,r){let n=e.value||"";let i="`";let o=-1;while(new RegExp("(^|[^`])"+i+"([^`]|$)").test(n)){i+="`"}if(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))){n=" "+n+" "}while(++o<r.unsafe.length){const e=r.unsafe[o];const t=patternCompile(e);let i;if(!e.atBreak)continue;while(i=t.exec(n)){let e=i.index;if(n.charCodeAt(e)===10&&n.charCodeAt(e-1)===13){e--}n=n.slice(0,e)+" "+n.slice(i.index+1)}}return i+n+i}function inlineCodePeek(){return"`"}function markdownTable(e,t={}){const r=(t.align||[]).concat();const n=t.stringLength||defaultStringLength;const i=[];const o=[];const a=[];const l=[];let c=0;let u=-1;while(++u<e.length){const r=[];const i=[];let f=-1;if(e[u].length>c){c=e[u].length}while(++f<e[u].length){const o=serialize(e[u][f]);if(t.alignDelimiters!==false){const e=n(o);i[f]=e;if(l[f]===undefined||e>l[f]){l[f]=e}}r.push(o)}o[u]=r;a[u]=i}let f=-1;if(typeof r==="object"&&"length"in r){while(++f<c){i[f]=toAlignment(r[f])}}else{const e=toAlignment(r);while(++f<c){i[f]=e}}f=-1;const d=[];const h=[];while(++f<c){const e=i[f];let r="";let n="";if(e===99){r=":";n=":"}else if(e===108){r=":"}else if(e===114){n=":"}let o=t.alignDelimiters===false?1:Math.max(1,l[f]-r.length-n.length);const a=r+"-".repeat(o)+n;if(t.alignDelimiters!==false){o=r.length+o+n.length;if(o>l[f]){l[f]=o}h[f]=o}d[f]=a}o.splice(1,0,d);a.splice(1,0,h);u=-1;const g=[];while(++u<o.length){const e=o[u];const r=a[u];f=-1;const n=[];while(++f<c){const o=e[f]||"";let a="";let u="";if(t.alignDelimiters!==false){const e=l[f]-(r[f]||0);const t=i[f];if(t===114){a=" ".repeat(e)}else if(t===99){if(e%2){a=" ".repeat(e/2+.5);u=" ".repeat(e/2-.5)}else{a=" ".repeat(e/2);u=a}}else{u=" ".repeat(e)}}if(t.delimiterStart!==false&&!f){n.push("|")}if(t.padding!==false&&!(t.alignDelimiters===false&&o==="")&&(t.delimiterStart!==false||f)){n.push(" ")}if(t.alignDelimiters!==false){n.push(a)}n.push(o);if(t.alignDelimiters!==false){n.push(u)}if(t.padding!==false){n.push(" ")}if(t.delimiterEnd!==false||f!==c-1){n.push("|")}}g.push(t.delimiterEnd===false?n.join("").replace(/ +$/,""):n.join(""))}return g.join("\n")}function serialize(e){return e===null||e===undefined?"":String(e)}function defaultStringLength(e){return e.length}function toAlignment(e){const t=typeof e==="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const _={enter:{table:enterTable,tableData:enterCell,tableHeader:enterCell,tableRow:enterRow},exit:{codeText:exitCodeText,table:exitTable,tableData:exit,tableHeader:exit,tableRow:exit}};function enterTable(e){const t=e._align;this.enter({type:"table",align:t.map((e=>e==="none"?null:e)),children:[]},e);this.setData("inTable",true)}function exitTable(e){this.exit(e);this.setData("inTable")}function enterRow(e){this.enter({type:"tableRow",children:[]},e)}function exit(e){this.exit(e)}function enterCell(e){this.enter({type:"tableCell",children:[]},e)}function exitCodeText(e){let t=this.resume();if(this.getData("inTable")){t=t.replace(/\\([\\|])/g,replace)}const r=this.stack[this.stack.length-1];r.value=t;this.exit(e)}function replace(e,t){return t==="|"?t:e}function gfmTableToMarkdown(e){const t=e||{};const r=t.tableCellPadding;const n=t.tablePipeAlign;const i=t.stringLength;const o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:true,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:true,character:":",after:"-"},{atBreak:true,character:"-",after:"[:|-]"}],handlers:{table:handleTable,tableRow:handleTableRow,tableCell:handleTableCell,inlineCode:inlineCodeWithTable}};function handleTable(e,t,r,n){return serializeData(handleTableAsData(e,r,n),e.align)}function handleTableRow(e,t,r,n){const i=handleTableRowAsData(e,r,n);const o=serializeData([i]);return o.slice(0,o.indexOf("\n"))}function handleTableCell(e,t,r,n){const i=r.enter("tableCell");const a=r.enter("phrasing");const l=containerPhrasing(e,r,{...n,before:o,after:o});a();i();return l}function serializeData(e,t){return markdownTable(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function handleTableAsData(e,t,r){const n=e.children;let i=-1;const o=[];const a=t.enter("table");while(++i<n.length){o[i]=handleTableRowAsData(n[i],t,r)}a();return o}function handleTableRowAsData(e,t,r){const n=e.children;let i=-1;const o=[];const a=t.enter("tableRow");while(++i<n.length){o[i]=handleTableCell(n[i],e,t,r)}a();return o}function inlineCodeWithTable(e,t,r){let n=inlineCode(e,t,r);if(r.stack.includes("tableCell")){n=n.replace(/\|/g,"\\$&")}return n}}function checkBullet(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-"){throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`")}return t}function checkListItemIndent(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1"){return"one"}if(t!=="tab"&&t!=="one"&&t!=="mixed"){throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`")}return t}function listItem(e,t,r,n){const i=checkListItemIndent(r);let o=r.bulletCurrent||checkBullet(r);if(t&&t.type==="list"&&t.ordered){o=(typeof t.start==="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===false?0:t.children.indexOf(e))+o}let a=o.length+1;if(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread)){a=Math.ceil(a/4)*4}const l=track(n);l.move(o+" ".repeat(a-o.length));l.shift(a);const c=r.enter("listItem");const u=indentLines(containerFlow(e,r,l.current()),map);c();return u;function map(e,t,r){if(t){return(r?"":" ".repeat(a))+e}return(r?o:o+" ".repeat(a-o.length))+e}}const Z={exit:{taskListCheckValueChecked:exitCheck,taskListCheckValueUnchecked:exitCheck,paragraph:exitParagraphWithTaskListItem}};const Y={unsafe:[{atBreak:true,character:"-",after:"[:|-]"}],handlers:{listItem:listItemWithTaskListItem}};function exitCheck(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function exitParagraphWithTaskListItem(e){const t=this.stack[this.stack.length-2];const r=this.stack[this.stack.length-1];const n=t.children;const i=r.children[0];let o=-1;let a;if(t&&t.type==="listItem"&&typeof t.checked==="boolean"&&i&&i.type==="text"){while(++o<n.length){const e=n[o];if(e.type==="paragraph"){a=e;break}}if(a===r){i.value=i.value.slice(1);if(i.value.length===0){r.children.shift()}else if(r.position&&i.position&&typeof i.position.start.offset==="number"){i.position.start.column++;i.position.start.offset++;r.position.start=Object.assign({},i.position.start)}}}this.exit(e)}function listItemWithTaskListItem(e,t,r,n){const i=e.children[0];const o=typeof e.checked==="boolean"&&i&&i.type==="paragraph";const a="["+(e.checked?"x":" ")+"] ";const l=track(n);if(o){l.move(a)}let c=listItem(e,t,r,{...n,...l.current()});if(o){c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,check)}return c;function check(e){return e+a}}function gfmFromMarkdown(){return[H,gfmFootnoteFromMarkdown(),M,_,Z]}function gfmToMarkdown(e){return{extensions:[O,gfmFootnoteToMarkdown(),W,gfmTableToMarkdown(e),Y]}}function remarkGfm(e={}){const t=this.data();add("micromarkExtensions",gfm(e));add("fromMarkdownExtensions",gfmFromMarkdown());add("toMarkdownExtensions",gfmToMarkdown(e));function add(e,r){const n=t[e]?t[e]:t[e]=[];n.push(r)}}module.exports=t})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"remark-gfm","author":"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)","license":"MIT","types":"index.d.ts"}
|
package/dist/compiler.d.ts
CHANGED
package/dist/compiler.js
CHANGED
|
@@ -1,30 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
4
|
};
|
|
14
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
6
|
exports.compile = void 0;
|
|
7
|
+
const rehype_pretty_code_1 = __importDefault(require("rehype-pretty-code"));
|
|
8
|
+
const plugin_utils_1 = require("umi/plugin-utils");
|
|
16
9
|
// @ts-ignore
|
|
17
10
|
const mdx_1 = require("../compiled/@mdx-js/mdx");
|
|
18
11
|
// @ts-ignore
|
|
19
12
|
const rehype_slug_1 = __importDefault(require("../compiled/rehype-slug"));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
const remark_gfm_1 = __importDefault(require("../compiled/remark-gfm"));
|
|
15
|
+
// https://rehype-pretty-code.netlify.app
|
|
16
|
+
const rehypePrettyCodeOptions = {
|
|
17
|
+
theme: 'dark-plus',
|
|
18
|
+
onVisitLine(node) {
|
|
19
|
+
// Prevent lines from collapsing in `display: grid` mode, and
|
|
20
|
+
// allow empty lines to be copy/pasted
|
|
21
|
+
if (node.children.length === 0) {
|
|
22
|
+
node.children = [{ type: 'text', value: ' ' }];
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
// 允许高亮代码行
|
|
26
|
+
// 对于高亮的代码行,设置为 highlighted 样式表类
|
|
27
|
+
onVisitHighlightedLine(node) {
|
|
28
|
+
node.properties.className.push('highlighted');
|
|
29
|
+
},
|
|
30
|
+
// 允许高亮代码文字
|
|
31
|
+
// 对于高亮的代码文字,设置为 word 样式表类
|
|
32
|
+
onVisitHighlightedWord(node) {
|
|
33
|
+
node.properties.className = ['word'];
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
async function compile(opts) {
|
|
37
|
+
const compiler = (0, mdx_1.createProcessor)({
|
|
38
|
+
jsx: true,
|
|
39
|
+
remarkPlugins: [remark_gfm_1.default],
|
|
40
|
+
rehypePlugins: [rehype_slug_1.default, [rehype_pretty_code_1.default, rehypePrettyCodeOptions]],
|
|
41
|
+
});
|
|
42
|
+
try {
|
|
43
|
+
let result = String(await compiler.process(opts.content));
|
|
28
44
|
result = result.replace('function MDXContent(props = {}) {', `
|
|
29
45
|
import { useEffect } from 'react';
|
|
30
46
|
|
|
@@ -32,14 +48,32 @@ function MDXContent(props = {}) {
|
|
|
32
48
|
|
|
33
49
|
useEffect(() => {
|
|
34
50
|
if (window.location.hash.length !== 0) {
|
|
35
|
-
|
|
36
|
-
window.location.hash
|
|
37
|
-
|
|
51
|
+
// 为了右侧内容区能正常跳转
|
|
52
|
+
const hash = decodeURIComponent(window.location.hash);
|
|
53
|
+
setTimeout(() => {
|
|
54
|
+
document.getElementById(hash.slice(1))?.scrollIntoView();
|
|
55
|
+
}, 100);
|
|
56
|
+
} else {
|
|
57
|
+
window.scrollTo(0, 0);
|
|
38
58
|
}
|
|
59
|
+
document.getElementById('active-nav-item')?.scrollIntoView({
|
|
60
|
+
behavior: 'smooth',
|
|
61
|
+
block: 'center'
|
|
62
|
+
});
|
|
39
63
|
}, []);
|
|
40
64
|
|
|
41
65
|
`);
|
|
42
66
|
return { result };
|
|
43
|
-
}
|
|
67
|
+
}
|
|
68
|
+
catch (e) {
|
|
69
|
+
plugin_utils_1.logger.error(e.reason);
|
|
70
|
+
plugin_utils_1.logger.error(`Above error occurred in ${opts.fileName} at line ${e.line}`);
|
|
71
|
+
plugin_utils_1.logger.error(opts.content
|
|
72
|
+
.split('\n')
|
|
73
|
+
.filter((_, i) => i == e.line - 1)
|
|
74
|
+
.join('\n'));
|
|
75
|
+
plugin_utils_1.logger.error(' '.repeat(e.column - 1) + '^');
|
|
76
|
+
return { result: '' };
|
|
77
|
+
}
|
|
44
78
|
}
|
|
45
79
|
exports.compile = compile;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -25,8 +29,25 @@ const fs_1 = __importStar(require("fs"));
|
|
|
25
29
|
const path_1 = require("path");
|
|
26
30
|
const markdown_1 = require("./markdown");
|
|
27
31
|
exports.default = (api) => {
|
|
32
|
+
// 把用户当前有设置在 docs/locales 下的语系放到变量 locales 中,方便后续使用
|
|
33
|
+
const locales = {};
|
|
34
|
+
const localesPath = (0, path_1.join)(api.cwd, 'docs/locales');
|
|
35
|
+
if ((0, fs_1.existsSync)(localesPath)) {
|
|
36
|
+
fs_1.default.readdirSync(localesPath).forEach((file) => {
|
|
37
|
+
if (file.endsWith('.json')) {
|
|
38
|
+
const filePath = (0, path_1.join)(localesPath, file);
|
|
39
|
+
const content = fs_1.default.readFileSync(filePath).toString();
|
|
40
|
+
const json = JSON.parse(content);
|
|
41
|
+
const localeName = file.replace('.json', '');
|
|
42
|
+
locales[localeName] = json;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
28
46
|
api.modifyDefaultConfig((memo) => {
|
|
29
|
-
memo.conventionRoutes =
|
|
47
|
+
memo.conventionRoutes = {
|
|
48
|
+
...memo.conventionRoutes,
|
|
49
|
+
base: (0, path_1.join)(api.cwd, 'docs'),
|
|
50
|
+
};
|
|
30
51
|
memo.mdx = {
|
|
31
52
|
loader: require.resolve('./loader'),
|
|
32
53
|
loaderOptions: {},
|
|
@@ -56,6 +77,25 @@ exports.default = (api) => {
|
|
|
56
77
|
}
|
|
57
78
|
}
|
|
58
79
|
});
|
|
80
|
+
// 检查路由是否存在其他语言,没有的话做 fallback 处理
|
|
81
|
+
api.modifyRoutes((r) => {
|
|
82
|
+
if (!locales)
|
|
83
|
+
return r;
|
|
84
|
+
for (const route in r) {
|
|
85
|
+
if (r[route].path.match(/^[a-z]{2}-[A-Z]{2}\/.*/))
|
|
86
|
+
continue;
|
|
87
|
+
const defaultLangFile = r[route].file.replace(/(.[a-z]{2}-[A-Z]{2})?.md$/, '');
|
|
88
|
+
Object.keys(locales).map((l) => {
|
|
89
|
+
if (r[defaultLangFile] && !r[defaultLangFile + '.' + l]) {
|
|
90
|
+
r[defaultLangFile + '.' + l] = {
|
|
91
|
+
...r[defaultLangFile],
|
|
92
|
+
path: `/${l}/${r[defaultLangFile].path}`,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
return r;
|
|
98
|
+
});
|
|
59
99
|
api.onGenerateFiles(() => {
|
|
60
100
|
var _a;
|
|
61
101
|
// theme path
|
|
@@ -64,23 +104,10 @@ exports.default = (api) => {
|
|
|
64
104
|
theme = require.resolve('../client/theme-blog/index.ts');
|
|
65
105
|
}
|
|
66
106
|
theme = (0, utils_1.winPath)(theme);
|
|
67
|
-
const themeConfigPath = (0, path_1.join)(api.cwd, 'theme.config.ts');
|
|
107
|
+
const themeConfigPath = (0, utils_1.winPath)((0, path_1.join)(api.cwd, 'theme.config.ts'));
|
|
68
108
|
const themeExists = (0, fs_1.existsSync)(themeConfigPath);
|
|
69
109
|
// 将 docs/locales 目录下的 json 文件注入到 themeConfig.locales 中
|
|
70
|
-
let injectLocale =
|
|
71
|
-
const localesPath = (0, path_1.join)(api.cwd, 'docs/locales');
|
|
72
|
-
if ((0, fs_1.existsSync)(localesPath)) {
|
|
73
|
-
fs_1.default.readdirSync(localesPath).forEach((file) => {
|
|
74
|
-
if (file.endsWith('.json')) {
|
|
75
|
-
const filePath = (0, path_1.join)(localesPath, file);
|
|
76
|
-
const content = fs_1.default.readFileSync(filePath).toString();
|
|
77
|
-
const json = JSON.parse(content);
|
|
78
|
-
const localeName = file.replace('.json', '');
|
|
79
|
-
injectLocale += `themeConfig.locales['${localeName}'] = ${JSON.stringify(json)};
|
|
80
|
-
`;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
110
|
+
let injectLocale = `themeConfig.locales = ${JSON.stringify(locales)};`;
|
|
84
111
|
// exports don't start with $ will be MDX Component
|
|
85
112
|
const [_, exports] = (0, bundler_utils_1.parseModuleSync)({
|
|
86
113
|
content: (0, fs_1.readFileSync)(theme, 'utf-8'),
|
|
@@ -91,15 +118,15 @@ exports.default = (api) => {
|
|
|
91
118
|
content: `
|
|
92
119
|
export { ${exports
|
|
93
120
|
.filter((item) => !item.startsWith('$'))
|
|
94
|
-
.join(', ')} } from '${require.resolve('../client/theme-doc/index.ts')}';
|
|
121
|
+
.join(', ')} } from '${(0, utils_1.winPath)(require.resolve('../client/theme-doc/index.ts'))}';
|
|
95
122
|
`,
|
|
96
123
|
});
|
|
97
124
|
api.writeTmpFile({
|
|
98
125
|
path: 'Layout.tsx',
|
|
99
126
|
content: `
|
|
100
127
|
import React from 'react';
|
|
101
|
-
import { useOutlet, useAppData, useLocation, Link } from 'umi';
|
|
102
|
-
import { $Layout as Layout } from '${require.resolve('../client/theme-doc/index.ts')}';
|
|
128
|
+
import { useOutlet, useAppData, useLocation, Link, history } from 'umi';
|
|
129
|
+
import { $Layout as Layout } from '${(0, utils_1.winPath)(require.resolve('../client/theme-doc/index.ts'))}';
|
|
103
130
|
${themeExists
|
|
104
131
|
? `import themeConfig from '${themeConfigPath}'`
|
|
105
132
|
: `const themeConfig = {}`}
|
|
@@ -111,12 +138,12 @@ export default () => {
|
|
|
111
138
|
const appData = useAppData();
|
|
112
139
|
const location = useLocation();
|
|
113
140
|
return (
|
|
114
|
-
<Layout appData={appData} components={{Link}} themeConfig={themeConfig} location={location}>
|
|
141
|
+
<Layout appData={appData} components={{Link}} themeConfig={themeConfig} location={location} history={history}>
|
|
115
142
|
<div>{ outlet }</div>
|
|
116
143
|
</Layout>
|
|
117
144
|
);
|
|
118
145
|
};
|
|
119
|
-
|
|
146
|
+
`,
|
|
120
147
|
});
|
|
121
148
|
});
|
|
122
149
|
};
|
package/dist/loader.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
const compiler_1 = require("./compiler");
|
|
13
|
-
function default_1(content) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
async function default_1(content) {
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
const filename = this.resourcePath;
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
const callback = this.async();
|
|
9
|
+
try {
|
|
10
|
+
const { result } = await (0, compiler_1.compile)({
|
|
18
11
|
content,
|
|
12
|
+
fileName: filename,
|
|
19
13
|
});
|
|
20
14
|
return callback(null, result);
|
|
21
|
-
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) {
|
|
17
|
+
const err = e;
|
|
18
|
+
e.message = `${filename}: ${e.message}`;
|
|
19
|
+
throw err;
|
|
20
|
+
}
|
|
22
21
|
}
|
|
23
22
|
exports.default = default_1;
|
package/dist/markdown.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.parseTitle = void 0;
|
|
4
4
|
function parseTitle(opts) {
|
|
5
|
-
const lines = opts.content
|
|
5
|
+
const lines = opts.content
|
|
6
|
+
.replace(/{[\n\s\t]*\/\*[\s\S]*?\*\/[\n\s\t]*}/g, '')
|
|
7
|
+
.split('\n');
|
|
6
8
|
let i = 0;
|
|
7
9
|
const ret = [];
|
|
8
10
|
while (i < lines.length) {
|