@bluepic/embed 0.5.1 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/bash-DI5WKoY1.cjs +1 -0
  2. package/dist/bash-SfqkqXwO.js +169 -0
  3. package/dist/bluepic-embed.iife.js +240 -271
  4. package/dist/bluepic-embed.umd.js +240 -271
  5. package/dist/c-Bwju34J8.js +176 -0
  6. package/dist/c-CxjdkDqU.cjs +1 -0
  7. package/dist/client-zip-Dl4jBUKQ.cjs +1 -0
  8. package/dist/client-zip-DscsL7SZ.js +254 -0
  9. package/dist/components/BxDatePickerPopover.vue.d.ts +1 -1
  10. package/dist/components/BxInput.vue.d.ts +1 -1
  11. package/dist/components/BxTag.vue.d.ts +1 -1
  12. package/dist/components/TemplateEditor/BatchEditor.vue.d.ts +14 -10
  13. package/dist/components/TemplateEditor/BxTemplateEditor.vue.d.ts +80 -64
  14. package/dist/components/TemplateEditor/TemplateView.vue.d.ts +20 -16
  15. package/dist/cpp-BNKWamrP.js +225 -0
  16. package/dist/cpp-BlYqzAb6.cjs +1 -0
  17. package/dist/css-C6p-exw3.cjs +1 -0
  18. package/dist/css-yWyfM7J9.js +140 -0
  19. package/dist/decompress-3ZSaG6Ii.cjs +15 -0
  20. package/dist/decompress-C88dmWOf.js +643 -0
  21. package/dist/embed/embed.d.ts +4416 -1454
  22. package/dist/go-DnIuztGs.js +140 -0
  23. package/dist/go-RBRkffhh.cjs +1 -0
  24. package/dist/java-CYbswnVa.js +169 -0
  25. package/dist/java-DiqBJCuC.cjs +1 -0
  26. package/dist/javascript-DaG6fU1i.js +436 -0
  27. package/dist/javascript-hWWC5YVO.cjs +1 -0
  28. package/dist/json-CW2SpMXu.cjs +1 -0
  29. package/dist/json-Cu6rbgWf.js +36 -0
  30. package/dist/main.cjs +118 -146
  31. package/dist/main.mjs +73680 -85828
  32. package/dist/markdown-BaDHGYjR.cjs +1 -0
  33. package/dist/markdown-D3Gs6FWn.js +181 -0
  34. package/dist/markdown-it-BOugFJd0.cjs +13 -0
  35. package/dist/markdown-it-bsR6HXzL.js +2875 -0
  36. package/dist/postal-mime-BnhFNwEJ.cjs +28 -0
  37. package/dist/postal-mime-Bsdi2kUR.js +3210 -0
  38. package/dist/python-D1ZXre9G.js +238 -0
  39. package/dist/python-DawLCmeM.cjs +1 -0
  40. package/dist/rolldown-runtime-CEFd7nDs.js +30 -0
  41. package/dist/rolldown-runtime-CPUxUITh.cjs +1 -0
  42. package/dist/rust-B47KpJg8.cjs +1 -0
  43. package/dist/rust-DV3X-6zd.js +169 -0
  44. package/dist/scss-BwEwJffF.cjs +1 -0
  45. package/dist/scss-DVPIh7kT.js +150 -0
  46. package/dist/sql-BsfEDS1M.cjs +1 -0
  47. package/dist/sql-CmVzGP4w.js +118 -0
  48. package/dist/style.css +2 -1
  49. package/dist/theme.cjs +1 -1
  50. package/dist/theme.mjs +1394 -1273
  51. package/dist/typescript-CjqyVRRm.cjs +1 -0
  52. package/dist/typescript-DbET6Hbh.js +521 -0
  53. package/dist/unzipit.module-CWI6YKpy.js +697 -0
  54. package/dist/unzipit.module-DLgVBmhU.cjs +1 -0
  55. package/dist/util/gallery.d.ts +21 -37
  56. package/dist/xlsx-Bm1OL5B8.js +16261 -0
  57. package/dist/xlsx-C9EeNB50.cjs +38 -0
  58. package/dist/xml-Bh8MwSUt.cjs +1 -0
  59. package/dist/xml-Bxh-tO8n.js +166 -0
  60. package/dist/yaml-CIP4hiwy.cjs +1 -0
  61. package/dist/yaml-DT7UV549.js +144 -0
  62. package/package.json +9 -5
  63. package/dist/bash-BHkfQ7MG.cjs +0 -1
  64. package/dist/bash-CPB87Egg.js +0 -377
  65. package/dist/c-B4BAHWS4.cjs +0 -1
  66. package/dist/c-C0DTNf68.js +0 -336
  67. package/dist/cpp-BfO2fOQK.cjs +0 -1
  68. package/dist/cpp-DxGBPWa5.js +0 -538
  69. package/dist/css-Cx1gP-zj.js +0 -934
  70. package/dist/css-DTF39MN3.cjs +0 -1
  71. package/dist/decompress-BGiydwyp.cjs +0 -15
  72. package/dist/decompress-D5RzmD-2.js +0 -566
  73. package/dist/go-By8nj0Vi.cjs +0 -1
  74. package/dist/go-C8VcBUsu.js +0 -156
  75. package/dist/index-C99_zLhc.js +0 -175
  76. package/dist/index-D8N6IfRw.cjs +0 -1
  77. package/dist/java-BoRJOXvw.js +0 -249
  78. package/dist/java-DFXAwvvK.cjs +0 -1
  79. package/dist/javascript-C2jY0XE6.cjs +0 -1
  80. package/dist/javascript-CgRUYx2b.js +0 -660
  81. package/dist/json-C4rahuoJ.cjs +0 -1
  82. package/dist/json-DYK-YbD3.js +0 -44
  83. package/dist/markdown-BmL9j9cU.cjs +0 -1
  84. package/dist/markdown-D19noYwn.js +0 -215
  85. package/dist/markdown-it-5-ieF6Bh.js +0 -3790
  86. package/dist/markdown-it-CLB5Jta6.cjs +0 -16
  87. package/dist/postal-mime-Df-WB8Vq.js +0 -3337
  88. package/dist/postal-mime-_7WF5UBe.cjs +0 -28
  89. package/dist/python-BBUuE3AY.js +0 -404
  90. package/dist/python-Clt6L10q.cjs +0 -1
  91. package/dist/rust-DY-oA2gr.js +0 -319
  92. package/dist/rust-_vvcEGSJ.cjs +0 -1
  93. package/dist/scss-BWo_aR1L.js +0 -919
  94. package/dist/scss-ex7iHSUb.cjs +0 -1
  95. package/dist/sql-BSlOauVK.cjs +0 -1
  96. package/dist/sql-IeKX8fQ8.js +0 -615
  97. package/dist/typescript-BHqLHF13.js +0 -755
  98. package/dist/typescript-DYRnLHqF.cjs +0 -1
  99. package/dist/unzipit.module-4zGfAuq6.cjs +0 -1
  100. package/dist/unzipit.module-qN5XWVVT.js +0 -649
  101. package/dist/xlsx-BopDBbWb.js +0 -24176
  102. package/dist/xlsx-qn1xoUuv.cjs +0 -105
  103. package/dist/xml-Bse49fPV.js +0 -212
  104. package/dist/xml-CVmug_x4.cjs +0 -1
  105. package/dist/yaml-BslECvWp.js +0 -183
  106. package/dist/yaml-C6zsmLZx.cjs +0 -1
@@ -1,3790 +0,0 @@
1
- var En = Object.defineProperty;
2
- var Fn = (e, n, t) => n in e ? En(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var T = (e, n, t) => Fn(e, typeof n != "symbol" ? n + "" : n, t);
4
- const ve = {};
5
- function yn(e) {
6
- let n = ve[e];
7
- if (n)
8
- return n;
9
- n = ve[e] = [];
10
- for (let t = 0; t < 128; t++) {
11
- const i = String.fromCharCode(t);
12
- n.push(i);
13
- }
14
- for (let t = 0; t < e.length; t++) {
15
- const i = e.charCodeAt(t);
16
- n[i] = "%" + ("0" + i.toString(16).toUpperCase()).slice(-2);
17
- }
18
- return n;
19
- }
20
- function Y(e, n) {
21
- typeof n != "string" && (n = Y.defaultChars);
22
- const t = yn(n);
23
- return e.replace(/(%[a-f0-9]{2})+/gi, function(i) {
24
- let r = "";
25
- for (let o = 0, s = i.length; o < s; o += 3) {
26
- const u = parseInt(i.slice(o + 1, o + 3), 16);
27
- if (u < 128) {
28
- r += t[u];
29
- continue;
30
- }
31
- if ((u & 224) === 192 && o + 3 < s) {
32
- const l = parseInt(i.slice(o + 4, o + 6), 16);
33
- if ((l & 192) === 128) {
34
- const c = u << 6 & 1984 | l & 63;
35
- c < 128 ? r += "��" : r += String.fromCharCode(c), o += 3;
36
- continue;
37
- }
38
- }
39
- if ((u & 240) === 224 && o + 6 < s) {
40
- const l = parseInt(i.slice(o + 4, o + 6), 16), c = parseInt(i.slice(o + 7, o + 9), 16);
41
- if ((l & 192) === 128 && (c & 192) === 128) {
42
- const h = u << 12 & 61440 | l << 6 & 4032 | c & 63;
43
- h < 2048 || h >= 55296 && h <= 57343 ? r += "���" : r += String.fromCharCode(h), o += 6;
44
- continue;
45
- }
46
- }
47
- if ((u & 248) === 240 && o + 9 < s) {
48
- const l = parseInt(i.slice(o + 4, o + 6), 16), c = parseInt(i.slice(o + 7, o + 9), 16), h = parseInt(i.slice(o + 10, o + 12), 16);
49
- if ((l & 192) === 128 && (c & 192) === 128 && (h & 192) === 128) {
50
- let f = u << 18 & 1835008 | l << 12 & 258048 | c << 6 & 4032 | h & 63;
51
- f < 65536 || f > 1114111 ? r += "����" : (f -= 65536, r += String.fromCharCode(55296 + (f >> 10), 56320 + (f & 1023))), o += 9;
52
- continue;
53
- }
54
- }
55
- r += "�";
56
- }
57
- return r;
58
- });
59
- }
60
- Y.defaultChars = ";/?:@&=+$,#";
61
- Y.componentChars = "";
62
- const De = {};
63
- function Bn(e) {
64
- let n = De[e];
65
- if (n)
66
- return n;
67
- n = De[e] = [];
68
- for (let t = 0; t < 128; t++) {
69
- const i = String.fromCharCode(t);
70
- /^[0-9a-z]$/i.test(i) ? n.push(i) : n.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2));
71
- }
72
- for (let t = 0; t < e.length; t++)
73
- n[e.charCodeAt(t)] = e[t];
74
- return n;
75
- }
76
- function $(e, n, t) {
77
- typeof n != "string" && (t = n, n = $.defaultChars), typeof t > "u" && (t = !0);
78
- const i = Bn(n);
79
- let r = "";
80
- for (let o = 0, s = e.length; o < s; o++) {
81
- const u = e.charCodeAt(o);
82
- if (t && u === 37 && o + 2 < s && /^[0-9a-f]{2}$/i.test(e.slice(o + 1, o + 3))) {
83
- r += e.slice(o, o + 3), o += 2;
84
- continue;
85
- }
86
- if (u < 128) {
87
- r += i[u];
88
- continue;
89
- }
90
- if (u >= 55296 && u <= 57343) {
91
- if (u >= 55296 && u <= 56319 && o + 1 < s) {
92
- const l = e.charCodeAt(o + 1);
93
- if (l >= 56320 && l <= 57343) {
94
- r += encodeURIComponent(e[o] + e[o + 1]), o++;
95
- continue;
96
- }
97
- }
98
- r += "%EF%BF%BD";
99
- continue;
100
- }
101
- r += encodeURIComponent(e[o]);
102
- }
103
- return r;
104
- }
105
- $.defaultChars = ";/?:@&=+$,-_.!~*'()#";
106
- $.componentChars = "-_.!~*'()";
107
- function ge(e) {
108
- let n = "";
109
- return n += e.protocol || "", n += e.slashes ? "//" : "", n += e.auth ? e.auth + "@" : "", e.hostname && e.hostname.indexOf(":") !== -1 ? n += "[" + e.hostname + "]" : n += e.hostname || "", n += e.port ? ":" + e.port : "", n += e.pathname || "", n += e.search || "", n += e.hash || "", n;
110
- }
111
- function oe() {
112
- this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
113
- }
114
- const Tn = /^([a-z0-9.+-]+:)/i, zn = /:[0-9]*$/, Sn = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, jn = ["<", ">", '"', "`", " ", "\r", `
115
- `, " "], In = ["{", "}", "|", "\\", "^", "`"].concat(jn), Jn = ["'"].concat(In), we = ["%", "/", "?", ";", "#"].concat(Jn), Ae = ["/", "?", "#"], Mn = 255, Ee = /^[+a-z0-9A-Z_-]{0,63}$/, Pn = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Fe = {
116
- javascript: !0,
117
- "javascript:": !0
118
- }, ye = {
119
- http: !0,
120
- https: !0,
121
- ftp: !0,
122
- gopher: !0,
123
- file: !0,
124
- "http:": !0,
125
- "https:": !0,
126
- "ftp:": !0,
127
- "gopher:": !0,
128
- "file:": !0
129
- };
130
- function ke(e, n) {
131
- if (e && e instanceof oe) return e;
132
- const t = new oe();
133
- return t.parse(e, n), t;
134
- }
135
- oe.prototype.parse = function(e, n) {
136
- let t, i, r, o = e;
137
- if (o = o.trim(), !n && e.split("#").length === 1) {
138
- const c = Sn.exec(o);
139
- if (c)
140
- return this.pathname = c[1], c[2] && (this.search = c[2]), this;
141
- }
142
- let s = Tn.exec(o);
143
- if (s && (s = s[0], t = s.toLowerCase(), this.protocol = s, o = o.substr(s.length)), (n || s || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(s && Fe[s]) && (o = o.substr(2), this.slashes = !0)), !Fe[s] && (r || s && !ye[s])) {
144
- let c = -1;
145
- for (let a = 0; a < Ae.length; a++)
146
- i = o.indexOf(Ae[a]), i !== -1 && (c === -1 || i < c) && (c = i);
147
- let h, f;
148
- c === -1 ? f = o.lastIndexOf("@") : f = o.lastIndexOf("@", c), f !== -1 && (h = o.slice(0, f), o = o.slice(f + 1), this.auth = h), c = -1;
149
- for (let a = 0; a < we.length; a++)
150
- i = o.indexOf(we[a]), i !== -1 && (c === -1 || i < c) && (c = i);
151
- c === -1 && (c = o.length), o[c - 1] === ":" && c--;
152
- const d = o.slice(0, c);
153
- o = o.slice(c), this.parseHost(d), this.hostname = this.hostname || "";
154
- const p = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
155
- if (!p) {
156
- const a = this.hostname.split(/\./);
157
- for (let b = 0, g = a.length; b < g; b++) {
158
- const x = a[b];
159
- if (x && !x.match(Ee)) {
160
- let C = "";
161
- for (let m = 0, _ = x.length; m < _; m++)
162
- x.charCodeAt(m) > 127 ? C += "x" : C += x[m];
163
- if (!C.match(Ee)) {
164
- const m = a.slice(0, b), _ = a.slice(b + 1), k = x.match(Pn);
165
- k && (m.push(k[1]), _.unshift(k[2])), _.length && (o = _.join(".") + o), this.hostname = m.join(".");
166
- break;
167
- }
168
- }
169
- }
170
- }
171
- this.hostname.length > Mn && (this.hostname = ""), p && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
172
- }
173
- const u = o.indexOf("#");
174
- u !== -1 && (this.hash = o.substr(u), o = o.slice(0, u));
175
- const l = o.indexOf("?");
176
- return l !== -1 && (this.search = o.substr(l), o = o.slice(0, l)), o && (this.pathname = o), ye[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
177
- };
178
- oe.prototype.parseHost = function(e) {
179
- let n = zn.exec(e);
180
- n && (n = n[0], n !== ":" && (this.port = n.substr(1)), e = e.substr(0, e.length - n.length)), e && (this.hostname = e);
181
- };
182
- const Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
183
- __proto__: null,
184
- decode: Y,
185
- encode: $,
186
- format: ge,
187
- parse: ke
188
- }, Symbol.toStringTag, { value: "Module" })), Ye = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ke = /[\0-\x1F\x7F-\x9F]/, Nn = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, Re = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\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\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\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-\u2E5D\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]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/, He = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/, Ge = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
189
- __proto__: null,
190
- Any: Ye,
191
- Cc: Ke,
192
- Cf: Nn,
193
- P: Re,
194
- S: He,
195
- Z: Ge
196
- }, Symbol.toStringTag, { value: "Module" })), $n = [
197
- 8364,
198
- 0,
199
- 8218,
200
- 402,
201
- 8222,
202
- 8230,
203
- 8224,
204
- 8225,
205
- 710,
206
- 8240,
207
- 352,
208
- 8249,
209
- 338,
210
- 0,
211
- 381,
212
- 0,
213
- 0,
214
- 8216,
215
- 8217,
216
- 8220,
217
- 8221,
218
- 8226,
219
- 8211,
220
- 8212,
221
- 732,
222
- 8482,
223
- 353,
224
- 8250,
225
- 339,
226
- 0,
227
- 382,
228
- 376
229
- ];
230
- function qn(e) {
231
- return e === 0 || e >= 55296 && e <= 57343 || e > 1114111;
232
- }
233
- function Un(e) {
234
- return qn(e) ? 65533 : e >= 128 && e <= 159 && $n[e - 128] || e;
235
- }
236
- function Zn(e) {
237
- return e - 1 >>> 0 < 127 || e - 160 >>> 0 < 55136 ? String.fromCharCode(e) : String.fromCodePoint(Un(e));
238
- }
239
- const M = /* @__PURE__ */ (() => {
240
- const e = new Uint8Array(127);
241
- let n = 0;
242
- for (let t = 33; t <= 126; t++)
243
- t !== 34 && t !== 36 && t !== 92 && (e[t] = n++);
244
- return e;
245
- })();
246
- function Wn(e, n, t, i, r, o) {
247
- const u = e.length, l = o * 90;
248
- let c = 0;
249
- const h = () => {
250
- const D = M[e.charCodeAt(c++)];
251
- return D < o ? D : D * 91 - l + M[e.charCodeAt(c++)];
252
- }, f = t - i, d = t + r, p = new Int32Array(d);
253
- p.fill(-1, i, o), p.fill(-1, o + f, d);
254
- const a = new Int32Array(d), b = new Int32Array(d);
255
- function g(D, y) {
256
- let w = 0, B = y;
257
- const I = y + D;
258
- for (; B < I; ) {
259
- const J = M[e.charCodeAt(c++)];
260
- if (J < 89)
261
- w += J, p[B++] = w;
262
- else if (J === 89) {
263
- let S = M[e.charCodeAt(c++)] + 2;
264
- for (; S--; )
265
- p[B++] = ++w;
266
- } else {
267
- const S = M[e.charCodeAt(c++)];
268
- w += 89 + // eslint-disable-next-line unicorn/prefer-minimal-ternary -- branches read a different number of side-effecting input bytes
269
- (S < 90 ? S * 91 + M[e.charCodeAt(c++)] : M[e.charCodeAt(c++)] * 8281 + M[e.charCodeAt(c++)] * 91 + M[e.charCodeAt(c++)]), p[B++] = w;
270
- }
271
- }
272
- }
273
- g(i, 0), g(f, o);
274
- const x = new Int32Array(r * 2);
275
- let C = 0, m = 0;
276
- function _(D, y) {
277
- for (let w = 0; w < D; w++) {
278
- const B = y + w, I = h(), J = h();
279
- x[m * 2] = I, x[m * 2 + 1] = J, m += 1, a[B] = C;
280
- const S = (p[I] < 0 ? b[I] : 1) + (p[J] < 0 ? b[J] : 1);
281
- b[B] = S, C += S;
282
- }
283
- }
284
- _(r - o + i, o + f), _(o - i, i);
285
- const k = new Uint16Array(C);
286
- let v = 0;
287
- for (let D = 0; D < m; D++)
288
- for (let y = 0; y < 2; y++) {
289
- const w = x[D * 2 + y], B = p[w];
290
- if (B < 0) {
291
- let I = a[w];
292
- const J = I + b[w];
293
- for (; I < J; )
294
- k[v++] = k[I++];
295
- } else
296
- k[v++] = B;
297
- }
298
- const A = new Uint16Array(n);
299
- let F = 0;
300
- for (; c < u; ) {
301
- let D = M[e.charCodeAt(c++)];
302
- D >= o && (D = D * 91 - l + M[e.charCodeAt(c++)]);
303
- const y = p[D];
304
- if (y < 0) {
305
- let w = a[D];
306
- const B = w + b[D];
307
- for (; w < B; )
308
- A[F++] = k[w++];
309
- } else
310
- A[F++] = y;
311
- }
312
- return A;
313
- }
314
- const Xn = /* @__PURE__ */ Wn("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#<nA%#jZ~!H%(~!42##~!*31&~!G%U~#)5~#`3~!J~!Z~%]~%Y~%C~!q~!u~#kz~%#~!6'~!D~!U~!?~#T~!c%~!G#'~%7|~!G~!J~!G&~#pb~(Df}#%}*&}#%##%##%##&#-}&'#'&%#.++}%mI,#,@&(}*%}*'%&##&#%##%}&0}#.},U},%}+%}&%}#%##&}B%(}(%}+%)})%##%#&}&%##%&}<%}>%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-''''++++7}>%4'',##1,#%#&%##&#'##&#*#9)%&%}#*}%,#+P(%A&%#'&##wSD',9E00#y#@}(+}&%&>~!#~!X}#*}(&&}(&}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g>unwfh;9:4E|YjQsBt|vjx'hYq3!(?C2F|J:2<BaY?C2F|GOu!5x,g|p{ah!-(?C2F|c9:4E|OjXuvvNr}:Rh&i[w*t|cd+U#jJvsu)vsSn~Mkfrmu9p}u7vwv]So!McW#Xa!ax5@A5aY:5;5<H|>kJv~vYrquJu3x4ib#T)2@SmZM?C2F|Bj:rmu9@xPhI(a*a#U#`a3-5Abb|L~@:RhK9:4E|0@52B5G|#C::aY?C2F|-:2<BaY?C2F|.5Jvk!a)javYrquJu3x4ia#T)2@SmYM?C2F|HAxPhH(!a#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P", 13494, 2713, 49, 25, 61);
315
- var z;
316
- (function(e) {
317
- e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.FLAG13 = 8192] = "FLAG13", e[e.BRANCH_LENGTH = 8064] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE", e[e.VALUE_MASK = 8191] = "VALUE_MASK";
318
- })(z || (z = {}));
319
- var j;
320
- (function(e) {
321
- e[e.AMP = 38] = "AMP", e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_X = 120] = "LOWER_X";
322
- })(j || (j = {}));
323
- const se = 32, Ve = 21, Yn = 2097151, me = 2047;
324
- let Qe = 0;
325
- function Kn(e) {
326
- const n = e >>> Ve;
327
- return n === me ? Qe : n;
328
- }
329
- function Hn(e) {
330
- return e - j.ZERO >>> 0 <= 9;
331
- }
332
- function Gn(e) {
333
- return (e | se) - j.LOWER_A >>> 0 <= 5;
334
- }
335
- function Vn(e) {
336
- return (e | se) - j.LOWER_A >>> 0 <= 25;
337
- }
338
- var Be;
339
- (function(e) {
340
- e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
341
- })(Be || (Be = {}));
342
- var Te;
343
- (function(e) {
344
- e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
345
- })(Te || (Te = {}));
346
- function Qn(e, n, t, i) {
347
- const r = (n & z.BRANCH_LENGTH) >> 7, o = n & z.JUMP_TABLE;
348
- if (o) {
349
- if (r === 0)
350
- return i === o ? t : -1;
351
- const l = i - o;
352
- if (l >>> 0 >= r)
353
- return -1;
354
- const c = e[t + l];
355
- return c === 0 ? -1 : t + r + c - 1 & 65535;
356
- }
357
- if (r === 0)
358
- return -1;
359
- const s = r + 1 >> 1, u = t + s + r;
360
- for (let l = 0; l < r; l++) {
361
- const h = e[t + (l >> 1)] >> ((l & 1) << 3) & 255;
362
- if (h === i) {
363
- const f = t + s + l;
364
- return u + e[f] & 65535;
365
- }
366
- if (h > i)
367
- return -1;
368
- }
369
- return -1;
370
- }
371
- function ze(e, n, t) {
372
- return t === 1 ? String.fromCharCode(e[n] & z.VALUE_MASK) : t === 2 ? String.fromCharCode(e[n + 1]) : String.fromCharCode(e[n + 1], e[n + 2]);
373
- }
374
- function et(e, n, t) {
375
- let i = n + 1, r = 0, o = i;
376
- if (i < t && (e.charCodeAt(i) | se) === j.LOWER_X)
377
- for (i += 1, o = i; i < t; ) {
378
- const u = e.charCodeAt(i);
379
- if (Hn(u))
380
- r = r * 16 + (u - j.ZERO);
381
- else if (Gn(u))
382
- r = r * 16 + ((u | se) - j.LOWER_A + 10);
383
- else
384
- break;
385
- i += 1;
386
- }
387
- else
388
- for (; i < t; ) {
389
- const u = e.charCodeAt(i) - j.ZERO;
390
- if (u >>> 0 > 9)
391
- break;
392
- r = r * 10 + u, i += 1;
393
- }
394
- if (i === o)
395
- return 0;
396
- i < t && e.charCodeAt(i) === j.SEMI && (i += 1), r > 1114111 && (r = 1114112);
397
- let s = i - n;
398
- return s >= me && (Qe = s, s = me), s << Ve | r;
399
- }
400
- function nt(e, n, t) {
401
- const i = Xn;
402
- let r = e.indexOf("&");
403
- if (r < 0)
404
- return e;
405
- const o = e.length;
406
- let s = 0, u = "";
407
- const l = i[0], c = l & z.JUMP_TABLE, h = (l & z.BRANCH_LENGTH) >> 7;
408
- do {
409
- const f = r + 1, d = e.charCodeAt(f);
410
- let p, a;
411
- if (d === j.NUM) {
412
- const b = et(e, f, o);
413
- p = Kn(b), p > 0 && e.charCodeAt(f + p - 1) !== j.SEMI && (p = 0), a = p === 0 ? "" : Zn(b & Yn);
414
- } else if (Vn(d)) {
415
- p = 0, a = "";
416
- const b = d - c;
417
- let g;
418
- if (b >>> 0 < h) {
419
- const k = i[1 + b];
420
- g = k === 0 ? -1 : h + k & 65535;
421
- } else
422
- g = -1;
423
- let x = 0, C = 0, m = g < 0 ? 0 : i[g], _ = f + 1;
424
- e: for (; _ < o; ) {
425
- for (
426
- ;
427
- // Value-less, non-run node with a nonzero jump offset.
428
- !(m & (z.VALUE_LENGTH | z.FLAG13)) && m & z.JUMP_TABLE;
429
- ) {
430
- const F = m & z.JUMP_TABLE, D = (m & z.BRANCH_LENGTH) >> 7;
431
- if (D === 0) {
432
- if (e.charCodeAt(_) !== F)
433
- break e;
434
- g += 1;
435
- } else {
436
- const y = e.charCodeAt(_) - F;
437
- if (y >>> 0 >= D)
438
- break e;
439
- const w = i[g + 1 + y];
440
- if (w === 0)
441
- break e;
442
- g = g + D + w & 65535;
443
- }
444
- if (m = i[g], _ += 1, _ >= o)
445
- break e;
446
- }
447
- if ((m & (z.VALUE_LENGTH | z.FLAG13)) === z.FLAG13) {
448
- const F = (m & z.BRANCH_LENGTH) >> 7;
449
- if (e.charCodeAt(_) !== (m & z.JUMP_TABLE))
450
- break;
451
- _ += 1;
452
- const D = F - 1;
453
- let y = g + 1, w = 0;
454
- for (; w + 1 < D; w += 2) {
455
- const B = i[y];
456
- if (e.charCodeAt(_) !== (B & 255) || (_ += 1, e.charCodeAt(_) !== (B >> 8 & 255)))
457
- break e;
458
- _ += 1, y += 1;
459
- }
460
- if (w < D) {
461
- if (e.charCodeAt(_) !== (i[y] & 255))
462
- break;
463
- _ += 1;
464
- }
465
- g += 1 + (F >> 1), m = i[g];
466
- continue;
467
- }
468
- const k = m >>> 14, v = e.charCodeAt(_);
469
- if (k !== 0) {
470
- if (v === j.SEMI) {
471
- p = _ - f + 1, a = k === 1 ? String.fromCharCode(m & z.VALUE_MASK) : ze(i, g, k);
472
- break;
473
- }
474
- if (k === 1)
475
- break;
476
- }
477
- const A = Qn(i, m, g + (k || 1), v);
478
- if (A < 0)
479
- break;
480
- g = A, m = i[g], _ += 1;
481
- }
482
- a === "" && p > 0 && (a = ze(i, x, C));
483
- } else
484
- p = 0, a = "";
485
- p === 0 || t ? r = f : (s < r && (u += e.slice(s, r)), u += a, r = s = f + p), e.charCodeAt(r) !== j.AMP && (r = e.indexOf("&", r));
486
- } while (r >= 0);
487
- return u + e.slice(s);
488
- }
489
- function en(e) {
490
- return nt(e, !0, !1);
491
- }
492
- var tt = class {
493
- constructor(e = {}) {
494
- T(this, "src_Any", Ye.source);
495
- T(this, "src_Cc", Ke.source);
496
- T(this, "src_Z", Ge.source);
497
- T(this, "src_P", Re.source);
498
- T(this, "src_ZPCc", [
499
- this.src_Z,
500
- this.src_P,
501
- this.src_Cc
502
- ].join("|"));
503
- T(this, "src_ZCc", [this.src_Z, this.src_Cc].join("|"));
504
- T(this, "cache", {});
505
- T(this, "opts", {
506
- maxLength: 1e4,
507
- urlAuth: !1,
508
- schema_names: []
509
- });
510
- this.opts = {
511
- ...this.opts,
512
- ...e
513
- };
514
- }
515
- set(e = {}) {
516
- return this.opts = {
517
- ...this.opts,
518
- ...e
519
- }, this.cache = {}, this;
520
- }
521
- escapeRE(e) {
522
- return e.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
523
- }
524
- nestedPairRE(e, n, t = 4) {
525
- const i = this.escapeRE(e), r = this.escapeRE(n), o = `(?:(?!${this.src_ZCc}|${i}|${r}).)`;
526
- let s = `${i}${o}{0,1000}${r}`;
527
- for (let u = 2; u <= t; u++) s = `${i}(?:${o}|${s}){0,1000}${r}`;
528
- return s;
529
- }
530
- get_text_separators() {
531
- var e;
532
- return (e = this.cache).text_separators ?? (e.text_separators = /[><\uff5c]/);
533
- }
534
- get_pseudo_letter() {
535
- var e;
536
- return (e = this.cache).src_pseudo_letter ?? (e.src_pseudo_letter = new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`));
537
- }
538
- get_ipv4_addr() {
539
- var e;
540
- return (e = this.cache).src_ip4 ?? (e.src_ip4 = /* @__PURE__ */ new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])"));
541
- }
542
- get_ipv6_addr() {
543
- var t;
544
- const e = "[0-9A-Fa-f]{1,4}", n = `(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;
545
- return (t = this.cache).src_ip6_addr ?? (t.src_ip6_addr = new RegExp(`(?:(?:${e}:){6}${n}|::(?:${e}:){5}${n}|(?:${e})?::(?:${e}:){4}${n}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${n}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${n}|(?:(?:${e}:){0,3}${e})?::${e}:${n}|(?:(?:${e}:){0,4}${e})?::${n}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`));
546
- }
547
- get_ipv6_url_host() {
548
- var e;
549
- return (e = this.cache).src_ip6_host ?? (e.src_ip6_host = new RegExp(`\\[${this.get_ipv6_addr().source}\\]`));
550
- }
551
- get_ipv6_mail_host() {
552
- var e;
553
- return (e = this.cache).src_ipv6_mail_host ?? (e.src_ipv6_mail_host = new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`));
554
- }
555
- get_auth() {
556
- var e;
557
- return (e = this.cache).src_auth ?? (e.src_auth = new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`));
558
- }
559
- get_port() {
560
- var e;
561
- return (e = this.cache).src_port ?? (e.src_port = /* @__PURE__ */ new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?"));
562
- }
563
- get_host_terminator() {
564
- var e;
565
- return (e = this.cache).src_host_terminator ?? (e.src_host_terminator = new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"] ? "-(?!--)|" : "-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`));
566
- }
567
- get_path_terminator() {
568
- var e;
569
- return (e = this.cache).src_path_terminator ?? (e.src_path_terminator = new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`));
570
- }
571
- get_path() {
572
- var e;
573
- return (e = this.cache).src_path ?? (e.src_path = new RegExp(`(?:[/?#](?:${this.nestedPairRE("[", "]")}|${this.nestedPairRE("(", ")")}|${this.nestedPairRE("{", "}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|` + (this.opts["---"] ? "\\-(?!--(?:[^-]|$))(?:-{0,19})|" : "\\-{1,20}|") + `,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|` + this.get_path_extra().source + `[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`));
574
- }
575
- get_mail_name() {
576
- var e;
577
- return (e = this.cache).src_mail_name ?? (e.src_mail_name = /* @__PURE__ */ new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}"));
578
- }
579
- get_xn() {
580
- var e;
581
- return (e = this.cache).src_xn ?? (e.src_xn = /* @__PURE__ */ new RegExp("xn--[a-z0-9\\-]{1,59}"));
582
- }
583
- get_tld() {
584
- if (this.cache.tld) return this.cache.tld;
585
- const e = [...new Set(this.opts.tlds || [])].sort().reverse().join("|");
586
- return this.cache.tld = new RegExp(`${e || "$#none#$"}|${this.get_xn().source}`), this.cache.tld;
587
- }
588
- get_domain_root() {
589
- var e;
590
- return (e = this.cache).src_domain_root ?? (e.src_domain_root = new RegExp("(?:" + this.get_xn().source + `|${this.get_pseudo_letter().source}{1,63})`));
591
- }
592
- get_domain() {
593
- var e;
594
- return (e = this.cache).src_domain ?? (e.src_domain = new RegExp("(?:" + this.get_xn().source + `|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`));
595
- }
596
- get_url_host_port() {
597
- var e;
598
- return (e = this.cache).url_host_port ?? (e.url_host_port = new RegExp("(?:" + this.get_ipv6_url_host().source + `|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))` + this.get_port().source + this.get_host_terminator().source));
599
- }
600
- get_fuzzy_url_host_port() {
601
- var e;
602
- return (e = this.cache).fuzzy_url_host_port ?? (e.fuzzy_url_host_port = new RegExp("(?:" + (this.opts.fuzzyIP ? this.get_ipv4_addr().source + "|" : "") + `(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))` + this.get_host_terminator().source));
603
- }
604
- get_mail_host() {
605
- var e;
606
- return (e = this.cache).src_mail_host ?? (e.src_mail_host = new RegExp("(?:" + this.get_ipv6_mail_host().source + `|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))` + this.get_host_terminator().source));
607
- }
608
- get_fuzzy_mail_host() {
609
- var e;
610
- return (e = this.cache).src_fuzzy_mail_host ?? (e.src_fuzzy_mail_host = new RegExp("(?:" + this.get_ipv6_mail_host().source + `|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))` + this.get_host_terminator().source));
611
- }
612
- get_path_extra() {
613
- var e;
614
- return (e = this.cache).src_path_extra ?? (e.src_path_extra = /* @__PURE__ */ new RegExp(""));
615
- }
616
- get_fuzzy_mail_host_search() {
617
- var e;
618
- return (e = this.cache).mail_fuzzy_host_search ?? (e.mail_fuzzy_host_search = new RegExp(`@${this.get_fuzzy_mail_host().source}`, "ig"));
619
- }
620
- get_fuzzy_link_search() {
621
- var e;
622
- return (e = this.cache).link_fuzzy_search ?? (e.link_fuzzy_search = new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`, "ig"));
623
- }
624
- get_http_validator() {
625
- var e;
626
- return (e = this.cache).http_validator ?? (e.http_validator = new RegExp("\\/\\/" + (this.opts.urlAuth ? this.get_auth().source : "") + this.get_url_host_port().source + this.get_path().source, "iy"));
627
- }
628
- get_relative_proto_validator() {
629
- var e;
630
- return (e = this.cache).relative_proto_validator ?? (e.relative_proto_validator = new RegExp((this.opts.urlAuth ? this.get_auth().source : "") + `(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})` + this.get_port().source + this.get_host_terminator().source + this.get_path().source, "iy"));
631
- }
632
- get_mail_name_validator() {
633
- var e;
634
- return (e = this.cache).mail_name_validator ?? (e.mail_name_validator = new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`));
635
- }
636
- get_mailto_validator() {
637
- var e;
638
- return (e = this.cache).mailto_validator ?? (e.mailto_validator = new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`, "iy"));
639
- }
640
- get_schema_names() {
641
- var e;
642
- return (e = this.cache).schema_names ?? (e.schema_names = new RegExp((this.opts.schema_names || []).map((n) => this.escapeRE(n)).join("|")));
643
- }
644
- get_schema_search() {
645
- var e;
646
- return (e = this.cache).schema_search ?? (e.schema_search = new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`, "ig"));
647
- }
648
- get_schema_at_start() {
649
- var e;
650
- return (e = this.cache).schema_at_start ?? (e.schema_at_start = new RegExp(`^${this.get_schema_search().source}`, "i"));
651
- }
652
- }, ce = {
653
- validate: (e, n, t) => {
654
- const i = t.re.get_http_validator();
655
- i.lastIndex = n;
656
- const r = i.exec(e);
657
- return r ? r[0].length : 0;
658
- },
659
- normalize: (e, n) => n.normalize(e)
660
- }, rt = {
661
- "http:": ce,
662
- "https:": ce,
663
- "ftp:": ce,
664
- "//": {
665
- validate: function(e, n, t) {
666
- const i = t.re.get_relative_proto_validator();
667
- i.lastIndex = n;
668
- const r = i.exec(e);
669
- return r ? n >= 3 && e[n - 3] === ":" || n >= 3 && e[n - 3] === "/" ? 0 : r[0].length : 0;
670
- },
671
- normalize: (e, n) => n.normalize(e)
672
- },
673
- "mailto:": {
674
- validate: function(e, n, t) {
675
- const i = t.re.get_mailto_validator();
676
- i.lastIndex = n;
677
- const r = i.exec(e);
678
- return r ? r[0].length : 0;
679
- },
680
- normalize: (e, n) => n.normalize(e)
681
- }
682
- }, it = "a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw", ot = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";
683
- function st() {
684
- const e = ot.split("|");
685
- return it.split("|").forEach((n) => {
686
- const t = n.indexOf(":"), i = n.slice(0, t);
687
- for (const r of n.slice(t + 1)) e.push(i + r);
688
- }), e;
689
- }
690
- var ut = {
691
- fuzzyLink: !1,
692
- fuzzyEmail: !0,
693
- fuzzyIP: !1,
694
- "---": !1,
695
- tlds: st(),
696
- urlAuth: !1,
697
- maxLength: 1e4
698
- }, Se = class {
699
- constructor(e, n, t, i) {
700
- /** Prefix (protocol) for matched string. Empty for fuzzy links. */
701
- T(this, "schema");
702
- /** First position of matched string. */
703
- T(this, "index");
704
- /** Next position after matched string. */
705
- T(this, "lastIndex");
706
- /** Matched string. */
707
- T(this, "raw");
708
- /** Normalized text of matched string. */
709
- T(this, "text");
710
- /** Normalized URL of matched string. */
711
- T(this, "url");
712
- const r = e.slice(t, i);
713
- this.schema = n.toLowerCase(), this.index = t, this.lastIndex = i, this.raw = r, this.text = r, this.url = r;
714
- }
715
- }, lt = class {
716
- /**
717
- * Creates new linkifier instance.
718
- *
719
- * By default understands:
720
- *
721
- * - `http(s)://...` , `ftp://...`, `mailto:...` & `//...` links
722
- * - "fuzzy" emails (foo@bar.com).
723
- *
724
- * See {@link LinkifyConstructorOptions} for available options.
725
- *
726
- * @param options Recognition options.
727
- *
728
- * @example
729
- * ```javascript
730
- * import { LinkifyIt } from 'linkify-it'
731
- *
732
- * const linkify = new LinkifyIt({ fuzzyLink: true })
733
- *
734
- * linkify
735
- * .tlds(require('tlds')) // Reload with full TLD list
736
- * .tlds('onion', true) // Add unofficial `.onion` domain
737
- * .add('ftp:', null) // Disable `ftp:` protocol
738
- * .set({ fuzzyIP: true }) // Enable IPs in fuzzy links
739
- *
740
- * console.log(linkify.test('Site github.com!')) // true
741
- * console.log(linkify.match('Site github.com!'))
742
- * ```
743
- */
744
- constructor(e = {}) {
745
- T(this, "__opts__");
746
- T(this, "__schemas__");
747
- T(this, "re");
748
- const { rebuilder: n, ...t } = e;
749
- this.__opts__ = {
750
- ...ut,
751
- ...t
752
- }, this.__schemas__ = { ...rt }, this.re = n || new tt(), this.re.set({
753
- ...this.__opts__,
754
- schema_names: Object.keys(this.__schemas__)
755
- });
756
- }
757
- /**
758
- * Add new rule definition.
759
- *
760
- * `schema` is a link prefix (usually, protocol name with `:` at the end,
761
- * `skype:` for example). `linkify-it` makes sure that prefix is not
762
- * preceded with alphanumeric char and symbols. Only whitespaces and
763
- * punctuation allowed.
764
- *
765
- * `definition` is a rule to check tail after link prefix. To disable an
766
- * existing rule, pass `null`.
767
- *
768
- * @param schema Rule name (fixed pattern prefix).
769
- * @param definition Schema definition, or `null` to disable the rule.
770
- *
771
- * See [twitter mentions example](https://github.com/markdown-it/linkify-it/blob/master/examples/twitter.mjs).
772
- */
773
- add(e, n = null) {
774
- if (!n) delete this.__schemas__[e];
775
- else {
776
- const t = {
777
- normalize: (i, r) => r.normalize(i),
778
- ...n
779
- };
780
- this.__schemas__[e] = t;
781
- }
782
- return this.re.set({
783
- ...this.__opts__,
784
- schema_names: Object.keys(this.__schemas__)
785
- }), this;
786
- }
787
- /**
788
- * Set recognition options for links without schema.
789
- *
790
- * @param options Recognition options.
791
- */
792
- set(e = {}) {
793
- return this.__opts__ = {
794
- ...this.__opts__,
795
- ...e
796
- }, this.re.set({
797
- ...this.__opts__,
798
- schema_names: Object.keys(this.__schemas__)
799
- }), this;
800
- }
801
- /**
802
- * Searches linkifiable pattern and returns `true` on success or `false` on fail.
803
- *
804
- * @param text Text to scan.
805
- */
806
- test(e) {
807
- if (!e.length) return !1;
808
- let n, t;
809
- for (t = this.re.get_schema_search(), t.lastIndex = 0; (n = t.exec(e)) !== null; ) if (this.testSchemaAt(e, n[2], t.lastIndex)) return !0;
810
- if (this.__opts__.fuzzyLink && this.__schemas__["http:"] && (t = this.re.get_fuzzy_link_search(), t.lastIndex = 0, t.exec(e) !== null))
811
- return !0;
812
- if (this.__opts__.fuzzyEmail && this.__schemas__["mailto:"] && e.indexOf("@") >= 0) {
813
- const i = this.re.get_fuzzy_mail_host_search(), r = this.re.get_mail_name_validator();
814
- for (i.lastIndex = 0; (n = i.exec(e)) !== null; ) {
815
- const o = e.slice(Math.max(0, n.index - 65), n.index);
816
- if (r.test(o)) return !0;
817
- }
818
- }
819
- return !1;
820
- }
821
- /**
822
- * Similar to {@link LinkifyIt.test} but checks only specific protocol tail exactly
823
- * at given position. Returns length of found pattern (0 on fail).
824
- *
825
- * @param text Text to scan.
826
- * @param schema Rule (schema) name.
827
- * @param pos Text offset to check from.
828
- */
829
- testSchemaAt(e, n, t) {
830
- return this.__schemas__[n.toLowerCase()] ? this.__schemas__[n.toLowerCase()].validate(e.slice(0, t + this.__opts__.maxLength), t, this) : 0;
831
- }
832
- /**
833
- * Returns array of found link descriptions or `null` on fail. We strongly
834
- * recommend to use {@link LinkifyIt.test} first, for best speed.
835
- *
836
- * @param text Text to scan.
837
- */
838
- match(e) {
839
- const n = [], t = this.re.get_schema_search();
840
- let i, r, o, s, u, l, c = !1, h = !1, f = !1, d = 0;
841
- if (!e.length) return null;
842
- for (t.lastIndex = 0, this.__opts__.fuzzyLink && this.__schemas__["http:"] && (i = this.re.get_fuzzy_link_search(), i.lastIndex = 0), this.__opts__.fuzzyEmail && this.__schemas__["mailto:"] && (r = this.re.get_fuzzy_mail_host_search(), r.lastIndex = 0, o = this.re.get_mail_name_validator()); ; ) {
843
- const p = Math.max(d - 1, 0);
844
- if (r && o && !f && (!u || u.index < d))
845
- for (r.lastIndex < p && (r.lastIndex = p); ; ) {
846
- const C = r.exec(e);
847
- if (!C) {
848
- f = !0, u = void 0;
849
- break;
850
- }
851
- const m = o.exec(e.slice(Math.max(0, C.index - 65), C.index));
852
- if (m) {
853
- if (u = {
854
- schema: "mailto:",
855
- index: C.index - m[1].length,
856
- lastIndex: C.index + C[0].length
857
- }, u.index >= d) break;
858
- r.lastIndex < p && (r.lastIndex = p);
859
- }
860
- }
861
- if (i && !h && (!s || s.index < d))
862
- for (i.lastIndex < p && (i.lastIndex = p); ; ) {
863
- const C = i.exec(e);
864
- if (!C) {
865
- h = !0, s = void 0;
866
- break;
867
- }
868
- if (s = {
869
- schema: "",
870
- index: C.index + C[1].length,
871
- lastIndex: C.index + C[0].length
872
- }, s.index >= d) break;
873
- i.lastIndex < p && (i.lastIndex = p);
874
- }
875
- let a = u;
876
- (!a || s && (s.index < a.index || s.index === a.index && s.lastIndex > a.lastIndex)) && (a = s);
877
- let b;
878
- if (!c) for (; ; ) {
879
- if (!l) {
880
- t.lastIndex < p && (t.lastIndex = p);
881
- const _ = t.exec(e);
882
- if (!_) {
883
- c = !0;
884
- break;
885
- }
886
- l = {
887
- schema: _[2],
888
- index: _.index + _[1].length,
889
- lastIndex: _.index + _[0].length
890
- };
891
- }
892
- if (l.index < d) {
893
- l = void 0;
894
- continue;
895
- }
896
- if (a && l.index > a.index) break;
897
- const C = l;
898
- l = void 0;
899
- const m = this.testSchemaAt(e, C.schema, C.lastIndex);
900
- if (m) {
901
- b = {
902
- schema: C.schema,
903
- index: C.index,
904
- lastIndex: C.lastIndex + m
905
- };
906
- break;
907
- }
908
- }
909
- let g = b;
910
- if ((!g || u && (u.index < g.index || u.index === g.index && u.lastIndex > g.lastIndex)) && (g = u), (!g || s && (s.index < g.index || s.index === g.index && s.lastIndex > g.lastIndex)) && (g = s), !g) break;
911
- g === u ? u = void 0 : g === s && (s = void 0);
912
- const x = new Se(e, g.schema, g.index, g.lastIndex);
913
- x.schema ? this.__schemas__[x.schema].normalize(x, this) : this.normalize(x), n.push(x), d = g.lastIndex;
914
- }
915
- return n.length ? n : null;
916
- }
917
- /**
918
- * Returns fully-formed (not fuzzy) link if it starts at the beginning
919
- * of the string, and null otherwise.
920
- *
921
- * @param text Text to scan.
922
- */
923
- matchAtStart(e) {
924
- if (!e.length) return null;
925
- const n = this.re.get_schema_at_start().exec(e);
926
- if (!n) return null;
927
- const t = this.testSchemaAt(e, n[2], n[0].length);
928
- if (!t) return null;
929
- const i = new Se(e, n[2], n.index + n[1].length, n.index + n[0].length + t);
930
- return this.__schemas__[i.schema].normalize(i, this), i;
931
- }
932
- /**
933
- * Load (or merge) new TLDs list. Those are used for fuzzy links (without
934
- * prefix) to avoid false positives. By default this algorithm is used:
935
- *
936
- * - hostname with any 2-letter root zones are ok.
937
- * - biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф
938
- * are ok.
939
- * - encoded (`xn--...`) root zones are ok.
940
- *
941
- * If list is replaced, then exact match for 2-chars root zones will be checked.
942
- *
943
- * @param list List of TLDs.
944
- * @param keepOld Merge with current list if `true` (`false` by default).
945
- */
946
- tlds(e, n = !1) {
947
- return e = Array.isArray(e) ? e : [e], n ? this.__opts__.tlds = this.__opts__.tlds.concat(e) : this.__opts__.tlds = e, this.re.set({
948
- ...this.__opts__,
949
- schema_names: Object.keys(this.__schemas__)
950
- }), this;
951
- }
952
- /**
953
- * Default normalizer (if schema does not define its own).
954
- *
955
- * @param match Match to normalize.
956
- */
957
- normalize(e) {
958
- e.schema || (e.url = `http://${e.url}`), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = `mailto:${e.url}`);
959
- }
960
- };
961
- const X = 2147483647, P = 36, be = 1, H = 26, ct = 38, at = 700, nn = 72, tn = 128, rn = "-", ht = /^xn--/, ft = /[^\0-\x7F]/, pt = /[\x2E\u3002\uFF0E\uFF61]/g, dt = {
962
- overflow: "Overflow: input needs wider integers to process",
963
- "not-basic": "Illegal input >= 0x80 (not a basic code point)",
964
- "invalid-input": "Invalid input"
965
- }, ae = P - be, L = Math.floor, he = String.fromCharCode;
966
- function q(e) {
967
- throw new RangeError(dt[e]);
968
- }
969
- function _t(e, n) {
970
- const t = [];
971
- let i = e.length;
972
- for (; i--; )
973
- t[i] = n(e[i]);
974
- return t;
975
- }
976
- function on(e, n) {
977
- const t = e.split("@");
978
- let i = "";
979
- t.length > 1 && (i = t[0] + "@", e = t[1]), e = e.replace(pt, ".");
980
- const r = e.split("."), o = _t(r, n).join(".");
981
- return i + o;
982
- }
983
- function sn(e) {
984
- const n = [];
985
- let t = 0;
986
- const i = e.length;
987
- for (; t < i; ) {
988
- const r = e.charCodeAt(t++);
989
- if (r >= 55296 && r <= 56319 && t < i) {
990
- const o = e.charCodeAt(t++);
991
- (o & 64512) == 56320 ? n.push(((r & 1023) << 10) + (o & 1023) + 65536) : (n.push(r), t--);
992
- } else
993
- n.push(r);
994
- }
995
- return n;
996
- }
997
- const gt = (e) => String.fromCodePoint(...e), kt = function(e) {
998
- return e >= 48 && e < 58 ? 26 + (e - 48) : e >= 65 && e < 91 ? e - 65 : e >= 97 && e < 123 ? e - 97 : P;
999
- }, je = function(e, n) {
1000
- return e + 22 + 75 * (e < 26) - ((n != 0) << 5);
1001
- }, un = function(e, n, t) {
1002
- let i = 0;
1003
- for (e = t ? L(e / at) : e >> 1, e += L(e / n); e > ae * H >> 1; i += P)
1004
- e = L(e / ae);
1005
- return L(i + (ae + 1) * e / (e + ct));
1006
- }, ln = function(e) {
1007
- const n = [], t = e.length;
1008
- let i = 0, r = tn, o = nn, s = e.lastIndexOf(rn);
1009
- s < 0 && (s = 0);
1010
- for (let u = 0; u < s; ++u)
1011
- e.charCodeAt(u) >= 128 && q("not-basic"), n.push(e.charCodeAt(u));
1012
- for (let u = s > 0 ? s + 1 : 0; u < t; ) {
1013
- const l = i;
1014
- for (let h = 1, f = P; ; f += P) {
1015
- u >= t && q("invalid-input");
1016
- const d = kt(e.charCodeAt(u++));
1017
- d >= P && q("invalid-input"), d > L((X - i) / h) && q("overflow"), i += d * h;
1018
- const p = f <= o ? be : f >= o + H ? H : f - o;
1019
- if (d < p)
1020
- break;
1021
- const a = P - p;
1022
- h > L(X / a) && q("overflow"), h *= a;
1023
- }
1024
- const c = n.length + 1;
1025
- o = un(i - l, c, l == 0), L(i / c) > X - r && q("overflow"), r += L(i / c), i %= c, n.splice(i++, 0, r);
1026
- }
1027
- return String.fromCodePoint(...n);
1028
- }, cn = function(e) {
1029
- const n = [];
1030
- e = sn(e);
1031
- const t = e.length;
1032
- let i = tn, r = 0, o = nn;
1033
- for (const l of e)
1034
- l < 128 && n.push(he(l));
1035
- const s = n.length;
1036
- let u = s;
1037
- for (s && n.push(rn); u < t; ) {
1038
- let l = X;
1039
- for (const h of e)
1040
- h >= i && h < l && (l = h);
1041
- const c = u + 1;
1042
- l - i > L((X - r) / c) && q("overflow"), r += (l - i) * c, i = l;
1043
- for (const h of e)
1044
- if (h < i && ++r > X && q("overflow"), h === i) {
1045
- let f = r;
1046
- for (let d = P; ; d += P) {
1047
- const p = d <= o ? be : d >= o + H ? H : d - o;
1048
- if (f < p)
1049
- break;
1050
- const a = f - p, b = P - p;
1051
- n.push(
1052
- he(je(p + a % b, 0))
1053
- ), f = L(a / b);
1054
- }
1055
- n.push(he(je(f, 0))), o = un(r, c, u === s), r = 0, ++u;
1056
- }
1057
- ++r, ++i;
1058
- }
1059
- return n.join("");
1060
- }, mt = function(e) {
1061
- return on(e, function(n) {
1062
- return ht.test(n) ? ln(n.slice(4).toLowerCase()) : n;
1063
- });
1064
- }, Rt = function(e) {
1065
- return on(e, function(n) {
1066
- return ft.test(n) ? "xn--" + cn(n) : n;
1067
- });
1068
- }, Ie = {
1069
- /**
1070
- * A string representing the current Punycode.js version number.
1071
- * @memberOf punycode
1072
- * @type String
1073
- */
1074
- version: "2.3.1",
1075
- /**
1076
- * An object of methods to convert from JavaScript's internal character
1077
- * representation (UCS-2) to Unicode code points, and back.
1078
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
1079
- * @memberOf punycode
1080
- * @type Object
1081
- */
1082
- ucs2: {
1083
- decode: sn,
1084
- encode: gt
1085
- },
1086
- decode: ln,
1087
- encode: cn,
1088
- toASCII: Rt,
1089
- toUnicode: mt
1090
- };
1091
- /*! markdown-it 15.0.2 https://github.com/markdown-it/markdown-it @license MIT */
1092
- var Je = Object.defineProperty, an = (e, n) => {
1093
- let t = {};
1094
- for (var i in e) Je(t, i, {
1095
- get: e[i],
1096
- enumerable: !0
1097
- });
1098
- return Je(t, Symbol.toStringTag, { value: "Module" }), t;
1099
- }, bt = /* @__PURE__ */ an({
1100
- arrayReplaceAt: () => xt,
1101
- asciiTrim: () => le,
1102
- callable: () => hn,
1103
- escapeHtml: () => U,
1104
- escapeRE: () => Tt,
1105
- fromCodePoint: () => G,
1106
- isMdAsciiPunct: () => ee,
1107
- isPunctChar: () => pn,
1108
- isPunctCharCode: () => Q,
1109
- isSpace: () => E,
1110
- isValidEntityCode: () => xe,
1111
- isWhiteSpace: () => V,
1112
- lib: () => zt,
1113
- normalizeReference: () => ue,
1114
- unescapeAll: () => K,
1115
- unescapeMd: () => wt
1116
- });
1117
- function hn(e) {
1118
- const n = function(...t) {
1119
- return Reflect.construct(e, t, new.target && new.target !== n ? new.target : e);
1120
- };
1121
- return Object.defineProperty(n, "name", { value: e.name }), Object.setPrototypeOf(n, e), n.prototype = e.prototype, n;
1122
- }
1123
- function xt(e, n, t) {
1124
- return [].concat(e.slice(0, n), t, e.slice(n + 1));
1125
- }
1126
- function xe(e) {
1127
- return !(e >= 55296 && e <= 57343 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534 || e >= 0 && e <= 8 || e === 11 || e >= 14 && e <= 31 || e >= 127 && e <= 159 || e > 1114111);
1128
- }
1129
- function G(e) {
1130
- if (e > 65535) {
1131
- e -= 65536;
1132
- const n = 55296 + (e >> 10), t = 56320 + (e & 1023);
1133
- return String.fromCharCode(n, t);
1134
- }
1135
- return String.fromCharCode(e);
1136
- }
1137
- var fn = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, Ct = new RegExp(`${fn.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`, "gi"), vt = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
1138
- function Dt(e, n) {
1139
- if (n.charCodeAt(0) === 35 && vt.test(n)) {
1140
- const i = n[1].toLowerCase() === "x" ? parseInt(n.slice(2), 16) : parseInt(n.slice(1), 10);
1141
- return xe(i) ? G(i) : e;
1142
- }
1143
- const t = en(e);
1144
- return t !== e ? t : e;
1145
- }
1146
- function wt(e) {
1147
- return e.indexOf("\\") < 0 ? e : e.replace(fn, "$1");
1148
- }
1149
- function K(e) {
1150
- return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(Ct, function(n, t, i) {
1151
- return t || Dt(n, i);
1152
- });
1153
- }
1154
- var At = /[&<>"]/, Et = /[&<>"]/g, Ft = {
1155
- "&": "&amp;",
1156
- "<": "&lt;",
1157
- ">": "&gt;",
1158
- '"': "&quot;"
1159
- };
1160
- function yt(e) {
1161
- return Ft[e];
1162
- }
1163
- function U(e) {
1164
- return At.test(e) ? e.replace(Et, yt) : e;
1165
- }
1166
- var Bt = /[.?*+^$[\]\\(){}|-]/g;
1167
- function Tt(e) {
1168
- return e.replace(Bt, "\\$&");
1169
- }
1170
- function E(e) {
1171
- switch (e) {
1172
- case 9:
1173
- case 32:
1174
- return !0;
1175
- }
1176
- return !1;
1177
- }
1178
- function V(e) {
1179
- if (e >= 8192 && e <= 8202) return !0;
1180
- switch (e) {
1181
- case 9:
1182
- case 10:
1183
- case 11:
1184
- case 12:
1185
- case 13:
1186
- case 32:
1187
- case 160:
1188
- case 5760:
1189
- case 8239:
1190
- case 8287:
1191
- case 12288:
1192
- return !0;
1193
- }
1194
- return !1;
1195
- }
1196
- function pn(e) {
1197
- return Re.test(e) || He.test(e);
1198
- }
1199
- function Q(e) {
1200
- return pn(G(e));
1201
- }
1202
- function ee(e) {
1203
- switch (e) {
1204
- case 33:
1205
- case 34:
1206
- case 35:
1207
- case 36:
1208
- case 37:
1209
- case 38:
1210
- case 39:
1211
- case 40:
1212
- case 41:
1213
- case 42:
1214
- case 43:
1215
- case 44:
1216
- case 45:
1217
- case 46:
1218
- case 47:
1219
- case 58:
1220
- case 59:
1221
- case 60:
1222
- case 61:
1223
- case 62:
1224
- case 63:
1225
- case 64:
1226
- case 91:
1227
- case 92:
1228
- case 93:
1229
- case 94:
1230
- case 95:
1231
- case 96:
1232
- case 123:
1233
- case 124:
1234
- case 125:
1235
- case 126:
1236
- return !0;
1237
- default:
1238
- return !1;
1239
- }
1240
- }
1241
- function ue(e) {
1242
- return e = e.trim().replace(/\s+/g, " "), e.toLowerCase().toUpperCase();
1243
- }
1244
- function Me(e) {
1245
- return e === 32 || e === 9 || e === 10 || e === 13;
1246
- }
1247
- function le(e) {
1248
- let n = 0;
1249
- for (; n < e.length && Me(e.charCodeAt(n)); n++) ;
1250
- let t = e.length - 1;
1251
- for (; t >= n && Me(e.charCodeAt(t)); t--) ;
1252
- return e.slice(n, t + 1);
1253
- }
1254
- var zt = {
1255
- mdurl: Ln,
1256
- ucmicro: On
1257
- };
1258
- function St(e, n, t) {
1259
- let i, r, o, s;
1260
- const u = e.posMax, l = e.pos;
1261
- for (e.pos = n + 1, i = 1; e.pos < u; ) {
1262
- if (o = e.src.charCodeAt(e.pos), o === 93 && (i--, i === 0)) {
1263
- r = !0;
1264
- break;
1265
- }
1266
- if (s = e.pos, e.md.inline.skipToken(e), o === 91) {
1267
- if (s === e.pos - 1) i++;
1268
- else if (t)
1269
- return e.pos = l, -1;
1270
- }
1271
- }
1272
- let c = -1;
1273
- return r && (c = e.pos), e.pos = l, c;
1274
- }
1275
- function jt(e, n, t) {
1276
- let i, r = n;
1277
- const o = {
1278
- ok: !1,
1279
- pos: 0,
1280
- str: ""
1281
- };
1282
- if (e.charCodeAt(r) === 60) {
1283
- for (r++; r < t; ) {
1284
- if (i = e.charCodeAt(r), i === 10 || i === 60) return o;
1285
- if (i === 62)
1286
- return o.pos = r + 1, o.str = K(e.slice(n + 1, r)), o.ok = !0, o;
1287
- if (i === 92 && r + 1 < t) {
1288
- r += 2;
1289
- continue;
1290
- }
1291
- r++;
1292
- }
1293
- return o;
1294
- }
1295
- let s = 0;
1296
- for (; r < t && (i = e.charCodeAt(r), !(i === 32 || i < 32 || i === 127)); ) {
1297
- if (i === 92 && r + 1 < t) {
1298
- if (e.charCodeAt(r + 1) === 32) {
1299
- r++;
1300
- continue;
1301
- }
1302
- r += 2;
1303
- continue;
1304
- }
1305
- if (i === 40 && (s++, s > 32))
1306
- return o;
1307
- if (i === 41) {
1308
- if (s === 0) break;
1309
- s--;
1310
- }
1311
- r++;
1312
- }
1313
- return n === r || s !== 0 || (o.str = K(e.slice(n, r)), o.pos = r, o.ok = !0), o;
1314
- }
1315
- function It(e, n, t, i) {
1316
- let r, o = n;
1317
- const s = {
1318
- ok: !1,
1319
- can_continue: !1,
1320
- pos: 0,
1321
- str: "",
1322
- marker: 0
1323
- };
1324
- if (i)
1325
- s.str = i.str, s.marker = i.marker;
1326
- else {
1327
- if (o >= t) return s;
1328
- let u = e.charCodeAt(o);
1329
- if (u !== 34 && u !== 39 && u !== 40) return s;
1330
- n++, o++, u === 40 && (u = 41), s.marker = u;
1331
- }
1332
- for (; o < t; ) {
1333
- if (r = e.charCodeAt(o), r === s.marker)
1334
- return s.pos = o + 1, s.str += K(e.slice(n, o)), s.ok = !0, s;
1335
- if (r === 40 && s.marker === 41) return s;
1336
- r === 92 && o + 1 < t && o++, o++;
1337
- }
1338
- return s.can_continue = !0, s.str += K(e.slice(n, o)), s;
1339
- }
1340
- var Jt = /* @__PURE__ */ an({
1341
- parseLinkDestination: () => jt,
1342
- parseLinkLabel: () => St,
1343
- parseLinkTitle: () => It
1344
- });
1345
- function ne(e) {
1346
- "@babel/helpers - typeof";
1347
- return ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
1348
- return typeof n;
1349
- } : function(n) {
1350
- return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
1351
- }, ne(e);
1352
- }
1353
- function Mt(e, n) {
1354
- if (ne(e) != "object" || !e) return e;
1355
- var t = e[Symbol.toPrimitive];
1356
- if (t !== void 0) {
1357
- var i = t.call(e, n);
1358
- if (ne(i) != "object") return i;
1359
- throw new TypeError("@@toPrimitive must return a primitive value.");
1360
- }
1361
- return (n === "string" ? String : Number)(e);
1362
- }
1363
- function Pt(e) {
1364
- var n = Mt(e, "string");
1365
- return ne(n) == "symbol" ? n : n + "";
1366
- }
1367
- function R(e, n, t) {
1368
- return (n = Pt(n)) in e ? Object.defineProperty(e, n, {
1369
- value: t,
1370
- enumerable: !0,
1371
- configurable: !0,
1372
- writable: !0
1373
- }) : e[n] = t, e;
1374
- }
1375
- var W = class {
1376
- constructor(e, n, t) {
1377
- R(
1378
- this,
1379
- /**
1380
- * Source map info. Format: `[ line_begin, line_end ]`
1381
- */
1382
- "map",
1383
- null
1384
- ), R(
1385
- this,
1386
- /**
1387
- * nesting level, the same as `state.level`
1388
- */
1389
- "level",
1390
- 0
1391
- ), R(
1392
- this,
1393
- /**
1394
- * An array of child nodes (inline and img tokens)
1395
- */
1396
- "children",
1397
- null
1398
- ), R(
1399
- this,
1400
- /**
1401
- * In a case of self-closing tag (code, html, fence, etc.),
1402
- * it has contents of this tag.
1403
- */
1404
- "content",
1405
- ""
1406
- ), R(
1407
- this,
1408
- /**
1409
- * '*' or '_' for emphasis, fence string for fence, etc.
1410
- */
1411
- "markup",
1412
- ""
1413
- ), R(
1414
- this,
1415
- /**
1416
- * Additional information:
1417
- *
1418
- * - Info string for "fence" tokens
1419
- * - The value "auto" for autolink "link_open" and "link_close" tokens
1420
- * - The string value of the item marker for ordered-list "list_item_open" tokens
1421
- */
1422
- "info",
1423
- ""
1424
- ), R(
1425
- this,
1426
- /**
1427
- * True for block-level tokens, false for inline tokens.
1428
- * Used in renderer to calculate line breaks
1429
- */
1430
- "block",
1431
- !1
1432
- ), R(
1433
- this,
1434
- /**
1435
- * If it's true, ignore this element when rendering. Used for tight lists
1436
- * to hide paragraphs.
1437
- */
1438
- "hidden",
1439
- !1
1440
- ), this.type = e, this.tag = n, this.attrs = null, this.nesting = t, this.meta = null;
1441
- }
1442
- /**
1443
- * Search attribute index by name.
1444
- */
1445
- attrIndex(e) {
1446
- if (!this.attrs) return -1;
1447
- const n = this.attrs;
1448
- for (let t = 0, i = n.length; t < i; t++) if (n[t][0] === e) return t;
1449
- return -1;
1450
- }
1451
- /**
1452
- * Add `[ name, value ]` attribute to list. Init attrs if necessary
1453
- */
1454
- attrPush(e) {
1455
- this.attrs ? this.attrs.push(e) : this.attrs = [e];
1456
- }
1457
- /**
1458
- * Set `name` attribute to `value`. Override old value if exists.
1459
- */
1460
- attrSet(e, n) {
1461
- const t = this.attrIndex(e), i = [e, n];
1462
- t < 0 ? this.attrPush(i) : this.attrs[t] = i;
1463
- }
1464
- /**
1465
- * Get the value of attribute `name`, or null if it does not exist.
1466
- */
1467
- attrGet(e) {
1468
- const n = this.attrIndex(e);
1469
- let t = null;
1470
- return n >= 0 && (t = this.attrs[n][1]), t;
1471
- }
1472
- /**
1473
- * Join value to existing attribute via space. Or create new attribute if not
1474
- * exists. Useful to operate with token classes.
1475
- */
1476
- attrJoin(e, n) {
1477
- const t = this.attrIndex(e);
1478
- t < 0 ? this.attrPush([e, n]) : this.attrs[t][1] = `${this.attrs[t][1]} ${n}`;
1479
- }
1480
- }, te = class {
1481
- constructor() {
1482
- R(
1483
- this,
1484
- /** @internal */
1485
- "__rules__",
1486
- []
1487
- ), R(
1488
- this,
1489
- /** @internal */
1490
- "__cache__",
1491
- null
1492
- );
1493
- }
1494
- /** @internal */
1495
- __find__(e) {
1496
- for (let n = 0; n < this.__rules__.length; n++) if (this.__rules__[n].name === e) return n;
1497
- return -1;
1498
- }
1499
- /** @internal */
1500
- __compile__() {
1501
- const e = /* @__PURE__ */ new Set();
1502
- this.__rules__.forEach((n) => {
1503
- n.enabled && n.alt.forEach((t) => {
1504
- t && e.add(t);
1505
- });
1506
- }), this.__cache__ = /* @__PURE__ */ Object.create(null), this.__cache__[""] = [], this.__rules__.forEach((n) => {
1507
- n.enabled && this.__cache__[""].push(n.fn);
1508
- }), e.forEach((n) => {
1509
- this.__cache__[n] = [], this.__rules__.forEach((t) => {
1510
- t.enabled && t.alt.indexOf(n) >= 0 && this.__cache__[n].push(t.fn);
1511
- });
1512
- });
1513
- }
1514
- /**
1515
- * Replace rule by name with new function & options. Throws error if name not
1516
- * found.
1517
- *
1518
- * @example Replace existing typographer replacement rule with new one
1519
- * ```javascript
1520
- * import MarkdownIt from 'markdown-it'
1521
- * const md = new MarkdownIt()
1522
- *
1523
- * md.core.ruler.at('replacements', function replace(state) {
1524
- * //...
1525
- * });
1526
- * ```
1527
- */
1528
- at(e, n, t = {}) {
1529
- const i = this.__find__(e);
1530
- if (i === -1) throw new Error(`Parser rule not found: ${e}`);
1531
- this.__rules__[i].fn = n, this.__rules__[i].alt = t.alt || [], this.__cache__ = null;
1532
- }
1533
- /**
1534
- * Add new rule to chain before one with given name. See also
1535
- * {@link Ruler.after}, {@link Ruler.push}.
1536
- *
1537
- * @example
1538
- * ```javascript
1539
- * import MarkdownIt from 'markdown-it'
1540
- * const md = new MarkdownIt()
1541
- *
1542
- * md.block.ruler.before('paragraph', 'my_rule', function replace(state) {
1543
- * //...
1544
- * });
1545
- * ```
1546
- */
1547
- before(e, n, t, i = {}) {
1548
- const r = this.__find__(e);
1549
- if (r === -1) throw new Error(`Parser rule not found: ${e}`);
1550
- this.__rules__.splice(r, 0, {
1551
- name: n,
1552
- enabled: !0,
1553
- fn: t,
1554
- alt: i.alt || []
1555
- }), this.__cache__ = null;
1556
- }
1557
- /**
1558
- * Add new rule to chain after one with given name. See also
1559
- * {@link Ruler.before}, {@link Ruler.push}.
1560
- *
1561
- * @example
1562
- * ```javascript
1563
- * import MarkdownIt from 'markdown-it'
1564
- * const md = new MarkdownIt()
1565
- *
1566
- * md.inline.ruler.after('text', 'my_rule', function replace(state) {
1567
- * //...
1568
- * });
1569
- * ```
1570
- */
1571
- after(e, n, t, i = {}) {
1572
- const r = this.__find__(e);
1573
- if (r === -1) throw new Error(`Parser rule not found: ${e}`);
1574
- this.__rules__.splice(r + 1, 0, {
1575
- name: n,
1576
- enabled: !0,
1577
- fn: t,
1578
- alt: i.alt || []
1579
- }), this.__cache__ = null;
1580
- }
1581
- /**
1582
- * Push new rule to the end of chain. See also
1583
- * {@link Ruler.before}, {@link Ruler.after}.
1584
- *
1585
- * @example
1586
- * ```javascript
1587
- * import MarkdownIt from 'markdown-it'
1588
- * const md = new MarkdownIt()
1589
- *
1590
- * md.core.ruler.push('my_rule', function replace(state) {
1591
- * //...
1592
- * });
1593
- * ```
1594
- */
1595
- push(e, n, t = {}) {
1596
- this.__rules__.push({
1597
- name: e,
1598
- enabled: !0,
1599
- fn: n,
1600
- alt: t.alt || []
1601
- }), this.__cache__ = null;
1602
- }
1603
- /**
1604
- * Enable rules with given names. If any rule name not found - throw Error.
1605
- * Errors can be disabled by second param.
1606
- *
1607
- * See also {@link Ruler.disable}, {@link Ruler.enableOnly}.
1608
- *
1609
- * Returns list of found rule names (if no exception happened).
1610
- */
1611
- enable(e, n = !1) {
1612
- Array.isArray(e) || (e = [e]);
1613
- const t = [];
1614
- return e.forEach((i) => {
1615
- const r = this.__find__(i);
1616
- if (r < 0) {
1617
- if (n) return;
1618
- throw new Error(`Rules manager: invalid rule name ${i}`);
1619
- }
1620
- this.__rules__[r].enabled = !0, t.push(i);
1621
- }), this.__cache__ = null, t;
1622
- }
1623
- /**
1624
- * Enable rules with given names, and disable everything else. If any rule name
1625
- * not found - throw Error. Errors can be disabled by second param.
1626
- *
1627
- * See also {@link Ruler.disable}, {@link Ruler.enable}.
1628
- */
1629
- enableOnly(e, n = !1) {
1630
- Array.isArray(e) || (e = [e]), this.__rules__.forEach((t) => {
1631
- t.enabled = !1;
1632
- }), this.enable(e, n);
1633
- }
1634
- /**
1635
- * Disable rules with given names. If any rule name not found - throw Error.
1636
- * Errors can be disabled by second param.
1637
- *
1638
- * See also {@link Ruler.enable}, {@link Ruler.enableOnly}.
1639
- *
1640
- * Returns list of found rule names (if no exception happened).
1641
- */
1642
- disable(e, n = !1) {
1643
- Array.isArray(e) || (e = [e]);
1644
- const t = [];
1645
- return e.forEach((i) => {
1646
- const r = this.__find__(i);
1647
- if (r < 0) {
1648
- if (n) return;
1649
- throw new Error(`Rules manager: invalid rule name ${i}`);
1650
- }
1651
- this.__rules__[r].enabled = !1, t.push(i);
1652
- }), this.__cache__ = null, t;
1653
- }
1654
- /**
1655
- * Return array of active functions (rules) for given chain name. It analyzes
1656
- * rules configuration, compiles caches if not exists and returns result.
1657
- *
1658
- * Default chain name is `''` (empty string). It can't be skipped. That's
1659
- * done intentionally, to keep signature monomorphic for high speed.
1660
- */
1661
- getRules(e) {
1662
- return this.__cache__ || this.__compile__(), this.__cache__[e] || [];
1663
- }
1664
- }, N = {};
1665
- N.code_inline = function(e, n, t, i, r) {
1666
- const o = e[n];
1667
- return `<code${r.renderAttrs(o)}>${U(o.content)}</code>`;
1668
- };
1669
- N.code_block = function(e, n, t, i, r) {
1670
- const o = e[n];
1671
- return `<pre${r.renderAttrs(o)}><code>${U(e[n].content)}</code></pre>
1672
- `;
1673
- };
1674
- N.fence = function(e, n, t, i, r) {
1675
- const o = e[n], s = o.info ? K(o.info).trim() : "";
1676
- let u = "", l = "";
1677
- if (s) {
1678
- const h = s.split(/(\s+)/g);
1679
- u = h[0], l = h.slice(2).join("");
1680
- }
1681
- let c;
1682
- if (t.highlight ? c = t.highlight(o.content, u, l) || U(o.content) : c = U(o.content), c.indexOf("<pre") === 0) return c + `
1683
- `;
1684
- if (s) {
1685
- const h = o.attrIndex("class"), f = o.attrs ? o.attrs.slice() : [];
1686
- h < 0 ? f.push(["class", `${t.langPrefix}${u}`]) : (f[h] = [f[h][0], f[h][1]], f[h][1] += ` ${t.langPrefix}${u}`);
1687
- const d = { attrs: f };
1688
- return `<pre><code${r.renderAttrs(d)}>${c}</code></pre>
1689
- `;
1690
- }
1691
- return `<pre><code${r.renderAttrs(o)}>${c}</code></pre>
1692
- `;
1693
- };
1694
- N.image = function(e, n, t, i, r) {
1695
- const o = e[n];
1696
- return o.attrs[o.attrIndex("alt")][1] = r.renderInlineAsText(o.children, t, i), r.renderToken(e, n, t);
1697
- };
1698
- N.hardbreak = function(e, n, t) {
1699
- return t.xhtmlOut ? `<br />
1700
- ` : `<br>
1701
- `;
1702
- };
1703
- N.softbreak = function(e, n, t) {
1704
- return t.breaks ? t.xhtmlOut ? `<br />
1705
- ` : `<br>
1706
- ` : `
1707
- `;
1708
- };
1709
- N.text = function(e, n) {
1710
- return U(e[n].content);
1711
- };
1712
- N.html_block = function(e, n) {
1713
- return e[n].content;
1714
- };
1715
- N.html_inline = function(e, n) {
1716
- return e[n].content;
1717
- };
1718
- var dn = class {
1719
- constructor() {
1720
- R(
1721
- this,
1722
- /**
1723
- * Contains render rules for tokens. Can be updated and extended.
1724
- *
1725
- * See [source code](https://github.com/markdown-it/markdown-it/blob/master/src/renderer.ts)
1726
- * for more details and examples.
1727
- *
1728
- * @example Custom render rules
1729
- * ```javascript
1730
- * import MarkdownIt from 'markdown-it'
1731
- * const md = new MarkdownIt()
1732
- *
1733
- * md.renderer.rules.strong_open = function () { return '<b>'; };
1734
- * md.renderer.rules.strong_close = function () { return '</b>'; };
1735
- *
1736
- * const result = md.renderInline(...);
1737
- * ```
1738
- *
1739
- * @example Each rule is called as independent static function with fixed signature
1740
- * ```javascript
1741
- * function my_token_render(tokens, idx, options, env, renderer) {
1742
- * // ...
1743
- * return renderedHTML;
1744
- * }
1745
- * ```
1746
- */
1747
- "rules",
1748
- Object.assign({}, N)
1749
- );
1750
- }
1751
- /**
1752
- * Render token attributes to string.
1753
- */
1754
- renderAttrs(e) {
1755
- let n, t, i;
1756
- if (!e.attrs) return "";
1757
- for (i = "", n = 0, t = e.attrs.length; n < t; n++) i += ` ${U(e.attrs[n][0])}="${U(String(e.attrs[n][1]))}"`;
1758
- return i;
1759
- }
1760
- /**
1761
- * Default token renderer. Can be overriden by custom function
1762
- * in {@link Renderer.rules}.
1763
- */
1764
- renderToken(e, n, t) {
1765
- const i = e[n];
1766
- let r = "";
1767
- if (i.hidden) return "";
1768
- let o = n - 1;
1769
- for (; o >= 0 && e[o].hidden && e[o].nesting === 0; ) o--;
1770
- i.block && i.nesting !== -1 && o >= 0 && e[o].hidden && e[o].nesting === -1 && (r += `
1771
- `), r += (i.nesting === -1 ? "</" : "<") + i.tag, r += this.renderAttrs(i), i.nesting === 0 && t.xhtmlOut && (r += " /");
1772
- let s = !1;
1773
- if (i.block && (s = !0, i.nesting === 1)) {
1774
- let u = n + 1;
1775
- for (; u < e.length && e[u].hidden && e[u].nesting === 0; ) u++;
1776
- if (u < e.length) {
1777
- const l = e[u];
1778
- (l.type === "inline" || l.hidden || l.nesting === -1 && l.tag === i.tag) && (s = !1);
1779
- }
1780
- }
1781
- return r += s ? `>
1782
- ` : ">", r;
1783
- }
1784
- /**
1785
- * The same as {@link Renderer.render}, but for single token of `inline` type.
1786
- */
1787
- renderInline(e, n, t) {
1788
- let i = "";
1789
- const r = this.rules;
1790
- for (let o = 0, s = e.length; o < s; o++) {
1791
- const u = e[o].type;
1792
- typeof r[u] < "u" ? i += r[u](e, o, n, t, this) : i += this.renderToken(e, o, n);
1793
- }
1794
- return i;
1795
- }
1796
- /**
1797
- * Special kludge for image `alt` attributes to conform CommonMark spec.
1798
- * Don't try to use it! Spec requires to show `alt` content with stripped markup,
1799
- * instead of simple escaping.
1800
- */
1801
- renderInlineAsText(e, n, t) {
1802
- let i = "";
1803
- for (let r = 0, o = e.length; r < o; r++) switch (e[r].type) {
1804
- case "text":
1805
- case "code_inline":
1806
- i += e[r].content;
1807
- break;
1808
- case "image":
1809
- i += this.renderInlineAsText(e[r].children, n, t);
1810
- break;
1811
- case "html_inline":
1812
- case "html_block":
1813
- i += e[r].content;
1814
- break;
1815
- case "softbreak":
1816
- case "hardbreak":
1817
- i += `
1818
- `;
1819
- }
1820
- return i;
1821
- }
1822
- /**
1823
- * Takes token stream and generates HTML. Probably, you will never need to call
1824
- * this method directly.
1825
- */
1826
- render(e, n, t) {
1827
- let i = "";
1828
- const r = this.rules;
1829
- for (let o = 0, s = e.length; o < s; o++) {
1830
- const u = e[o].type;
1831
- u === "inline" ? i += this.renderInline(e[o].children, n, t) : typeof r[u] < "u" ? i += r[u](e, o, n, t, this) : i += this.renderToken(e, o, n);
1832
- }
1833
- return i;
1834
- }
1835
- }, _n = class {
1836
- constructor(e, n, t) {
1837
- R(this, "tokens", []), R(this, "inlineMode", !1), R(this, "Token", W), this.src = e, this.env = t, this.md = n;
1838
- }
1839
- }, Lt = /\r\n?/g, Nt = /\0/g;
1840
- function Ot(e) {
1841
- let n;
1842
- n = e.src.replace(Lt, `
1843
- `), n = n.replace(Nt, "�"), e.src = n;
1844
- }
1845
- function $t(e) {
1846
- let n;
1847
- e.inlineMode ? (n = new e.Token("inline", "", 0), n.content = e.src, n.map = [0, 1], n.children = [], e.tokens.push(n)) : e.md.block.parse(e.src, e.md, e.env, e.tokens);
1848
- }
1849
- function qt(e) {
1850
- const n = e.tokens;
1851
- let t = 0;
1852
- for (let i = 0; i < n.length; i++)
1853
- n[i].type !== "reference_definition" && (i !== t && (n[t] = n[i]), t++);
1854
- n.length !== t && (n.length = t);
1855
- }
1856
- function Ut(e) {
1857
- const n = e.tokens;
1858
- for (let t = 0, i = n.length; t < i; t++) {
1859
- const r = n[t];
1860
- r.type === "inline" && e.md.inline.parse(r.content, e.md, e.env, r.children);
1861
- }
1862
- }
1863
- function Zt(e) {
1864
- return /^<a[>\s]/i.test(e);
1865
- }
1866
- function Wt(e) {
1867
- return /^<\/a\s*>/i.test(e);
1868
- }
1869
- function Xt(e) {
1870
- const n = e.tokens;
1871
- if (e.md.options.linkify)
1872
- for (let t = 0, i = n.length; t < i; t++) {
1873
- if (n[t].type !== "inline" || !e.md.linkify.test(n[t].content)) continue;
1874
- const r = n[t].children, o = [];
1875
- let s = 0;
1876
- for (let u = r.length - 1; u >= 0; u--) {
1877
- const l = r[u];
1878
- if (l.type === "link_close") {
1879
- for (u--; r[u].level !== l.level && r[u].type !== "link_open"; ) u--;
1880
- continue;
1881
- }
1882
- if (l.type === "html_inline" && (Zt(l.content) && s > 0 && s--, Wt(l.content) && s++), !(s > 0) && l.type === "text" && e.md.linkify.test(l.content)) {
1883
- const c = l.content;
1884
- let h = e.md.linkify.match(c);
1885
- const f = [];
1886
- let d = l.level, p = 0;
1887
- h.length > 0 && h[0].index === 0 && u > 0 && r[u - 1].type === "text_special" && (h = h.slice(1));
1888
- for (let a = 0; a < h.length; a++) {
1889
- const b = h[a].url, g = e.md.normalizeLink(b);
1890
- if (!e.md.validateLink(g)) continue;
1891
- let x = h[a].text;
1892
- h[a].schema ? h[a].schema === "mailto:" && !/^mailto:/i.test(x) ? x = e.md.normalizeLinkText(`mailto:${x}`).replace(/^mailto:/, "") : x = e.md.normalizeLinkText(x) : x = e.md.normalizeLinkText(`http://${x}`).replace(/^http:\/\//, "");
1893
- const C = h[a].index;
1894
- if (C > p) {
1895
- const v = new e.Token("text", "", 0);
1896
- v.content = c.slice(p, C), v.level = d, f.push(v);
1897
- }
1898
- const m = new e.Token("link_open", "a", 1);
1899
- m.attrs = [["href", g]], m.level = d++, m.markup = "linkify", m.info = "auto", f.push(m);
1900
- const _ = new e.Token("text", "", 0);
1901
- _.content = x, _.level = d, f.push(_);
1902
- const k = new e.Token("link_close", "a", -1);
1903
- k.level = --d, k.markup = "linkify", k.info = "auto", f.push(k), p = h[a].lastIndex;
1904
- }
1905
- if (p < c.length) {
1906
- const a = new e.Token("text", "", 0);
1907
- a.content = c.slice(p), a.level = d, f.push(a);
1908
- }
1909
- o.push({
1910
- index: u,
1911
- nodes: f
1912
- });
1913
- }
1914
- }
1915
- if (o.length > 0) {
1916
- let u = r.length;
1917
- for (const f of o) u += f.nodes.length - 1;
1918
- const l = new Array(u);
1919
- let c = 0, h = 0;
1920
- o.reverse();
1921
- for (let f = 0; f < r.length; f++) {
1922
- const d = o[c];
1923
- if ((d == null ? void 0 : d.index) === f) {
1924
- for (const p of d.nodes) l[h++] = p;
1925
- c++;
1926
- } else l[h++] = r[f];
1927
- }
1928
- n[t].children = l;
1929
- }
1930
- }
1931
- }
1932
- var gn = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Yt = /\((c|tm|r)\)/i, Kt = /\((c|tm|r)\)/gi, Ht = {
1933
- c: "©",
1934
- r: "®",
1935
- tm: "™"
1936
- };
1937
- function Gt(e, n) {
1938
- return Ht[n.toLowerCase()];
1939
- }
1940
- function Vt(e) {
1941
- let n = 0;
1942
- for (let t = e.length - 1; t >= 0; t--) {
1943
- const i = e[t];
1944
- i.type === "text" && !n && (i.content = i.content.replace(Kt, Gt)), i.type === "link_open" && i.info === "auto" && n--, i.type === "link_close" && i.info === "auto" && n++;
1945
- }
1946
- }
1947
- function Qt(e) {
1948
- let n = 0;
1949
- for (let t = e.length - 1; t >= 0; t--) {
1950
- const i = e[t];
1951
- i.type === "text" && !n && gn.test(i.content) && (i.content = i.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/gm, "$1—").replace(/(^|\s)--(?=\s|$)/gm, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm, "$1–")), i.type === "link_open" && i.info === "auto" && n--, i.type === "link_close" && i.info === "auto" && n++;
1952
- }
1953
- }
1954
- function er(e) {
1955
- let n;
1956
- if (e.md.options.typographer)
1957
- for (n = e.tokens.length - 1; n >= 0; n--)
1958
- e.tokens[n].type === "inline" && (Yt.test(e.tokens[n].content) && Vt(e.tokens[n].children), gn.test(e.tokens[n].content) && Qt(e.tokens[n].children));
1959
- }
1960
- var nr = /['"]/, Pe = /['"]/g, Le = "’", tr = 1e3;
1961
- function Ne(e, n, t) {
1962
- for (; e.length > t; ) {
1963
- const i = e.pop();
1964
- i.isSingleQuote ? n.single = i.prevSameQuoteIdx : n.double = i.prevSameQuoteIdx;
1965
- }
1966
- }
1967
- function re(e, n, t, i) {
1968
- e[n] || (e[n] = []), e[n].push({
1969
- pos: t,
1970
- ch: i
1971
- });
1972
- }
1973
- function rr(e, n) {
1974
- let t = "", i = 0;
1975
- n.sort((r, o) => r.pos - o.pos);
1976
- for (let r = 0; r < n.length; r++) {
1977
- const o = n[r];
1978
- t += e.slice(i, o.pos) + o.ch, i = o.pos + 1;
1979
- }
1980
- return t + e.slice(i);
1981
- }
1982
- function ir(e, n) {
1983
- let t;
1984
- const i = [], r = {
1985
- single: -1,
1986
- double: -1
1987
- }, o = {};
1988
- for (let s = 0; s < e.length; s++) {
1989
- const u = e[s], l = e[s].level;
1990
- for (t = i.length - 1; t >= 0 && !(i[t].level <= l); t--) ;
1991
- if (Ne(i, r, t + 1), u.type !== "text") continue;
1992
- const c = u.content;
1993
- let h = 0;
1994
- const f = c.length;
1995
- e: for (; h < f; ) {
1996
- Pe.lastIndex = h;
1997
- const d = Pe.exec(c);
1998
- if (!d) break;
1999
- let p = !0, a = !0;
2000
- h = d.index + 1;
2001
- const b = d[0] === "'";
2002
- let g = 32;
2003
- if (d.index - 1 >= 0) g = c.charCodeAt(d.index - 1);
2004
- else for (t = s - 1; t >= 0 && !(e[t].type === "softbreak" || e[t].type === "hardbreak"); t--)
2005
- if (e[t].content) {
2006
- g = e[t].content.charCodeAt(e[t].content.length - 1);
2007
- break;
2008
- }
2009
- let x = 32;
2010
- if (h < f) x = c.charCodeAt(h);
2011
- else for (t = s + 1; t < e.length && !(e[t].type === "softbreak" || e[t].type === "hardbreak"); t++)
2012
- if (e[t].content) {
2013
- x = e[t].content.charCodeAt(0);
2014
- break;
2015
- }
2016
- const C = ee(g) || Q(g), m = ee(x) || Q(x), _ = V(g), k = V(x);
2017
- if (k ? p = !1 : m && (_ || C || (p = !1)), _ ? a = !1 : C && (k || m || (a = !1)), x === 34 && d[0] === '"' && g >= 48 && g <= 57 && (a = p = !1), p && a && (p = C, a = m), !p && !a) {
2018
- b && re(o, s, d.index, Le);
2019
- continue;
2020
- }
2021
- if (a && (t = b ? r.single : r.double, t >= 0 && i[t].level === l)) {
2022
- const v = i[t];
2023
- let A, F;
2024
- b ? (A = n.md.options.quotes[2], F = n.md.options.quotes[3]) : (A = n.md.options.quotes[0], F = n.md.options.quotes[1]), re(o, s, d.index, F), re(o, v.tokenIdx, v.contentPos, A), Ne(i, r, t);
2025
- continue e;
2026
- }
2027
- if (p) {
2028
- if (i.length >= tr) return;
2029
- i.push({
2030
- tokenIdx: s,
2031
- contentPos: d.index,
2032
- isSingleQuote: b,
2033
- level: l,
2034
- prevSameQuoteIdx: b ? r.single : r.double
2035
- }), b ? r.single = i.length - 1 : r.double = i.length - 1;
2036
- } else a && b && re(o, s, d.index, Le);
2037
- }
2038
- }
2039
- Object.keys(o).forEach(function(s) {
2040
- const u = Number(s);
2041
- e[u].content = rr(e[u].content, o[s]);
2042
- });
2043
- }
2044
- function or(e) {
2045
- if (e.md.options.typographer)
2046
- for (let n = e.tokens.length - 1; n >= 0; n--)
2047
- e.tokens[n].type !== "inline" || !nr.test(e.tokens[n].content) || ir(e.tokens[n].children, e);
2048
- }
2049
- function sr(e) {
2050
- let n, t;
2051
- const i = e.length;
2052
- for (n = 0; n < i; n++) e[n].type === "text_special" && (e[n].type = "text");
2053
- for (n = t = 0; n < i; n++) e[n].type === "text" && n + 1 < i && e[n + 1].type === "text" ? e[n + 1].content = e[n].content + e[n + 1].content : (n !== t && (e[t] = e[n]), t++);
2054
- n !== t && (e.length = t);
2055
- }
2056
- function ur(e) {
2057
- let n, t;
2058
- const i = e.tokens, r = i.length;
2059
- for (let o = 0; o < r; o++) {
2060
- if (i[o].type !== "inline") continue;
2061
- const s = i[o].children, u = s.length;
2062
- for (n = 0; n < u; n++)
2063
- s[n].type === "text_special" && (s[n].type = "text"), s[n].children && sr(s[n].children);
2064
- for (n = t = 0; n < u; n++) s[n].type === "text" && n + 1 < u && s[n + 1].type === "text" ? s[n + 1].content = s[n].content + s[n + 1].content : (n !== t && (s[t] = s[n]), t++);
2065
- n !== t && (s.length = t);
2066
- }
2067
- }
2068
- var fe = [
2069
- ["normalize", Ot],
2070
- ["block", $t],
2071
- ["strip_references", qt],
2072
- ["inline", Ut],
2073
- ["linkify", Xt],
2074
- ["replacements", er],
2075
- ["smartquotes", or],
2076
- ["text_join", ur]
2077
- ], kn = class {
2078
- constructor() {
2079
- R(
2080
- this,
2081
- /**
2082
- * {@link Ruler} instance. Keep configuration of core rules.
2083
- */
2084
- "ruler",
2085
- new te()
2086
- ), R(this, "State", _n);
2087
- for (let e = 0; e < fe.length; e++) this.ruler.push(fe[e][0], fe[e][1]);
2088
- }
2089
- /**
2090
- * Executes core chain rules.
2091
- */
2092
- process(e) {
2093
- const n = this.ruler.getRules("");
2094
- for (let t = 0, i = n.length; t < i; t++) n[t](e);
2095
- }
2096
- }, mn = class {
2097
- constructor(e, n, t, i) {
2098
- R(this, "bMarks", []), R(this, "eMarks", []), R(this, "tShift", []), R(this, "sCount", []), R(this, "bsCount", []), R(this, "blkIndent", 0), R(this, "line", 0), R(this, "lineMax", 0), R(this, "tight", !1), R(this, "listIndent", -1), R(this, "parentType", "root"), R(this, "level", 0), R(this, "Token", W), this.src = e, this.md = n, this.env = t, this.tokens = i;
2099
- const r = this.src;
2100
- for (let o = 0, s = 0, u = 0, l = 0, c = r.length, h = !1; s < c; s++) {
2101
- const f = r.charCodeAt(s);
2102
- if (!h) if (E(f)) {
2103
- u++, f === 9 ? l += 4 - l % 4 : l++;
2104
- continue;
2105
- } else h = !0;
2106
- (f === 10 || s === c - 1) && (f !== 10 && s++, this.bMarks.push(o), this.eMarks.push(s), this.tShift.push(u), this.sCount.push(l), this.bsCount.push(0), h = !1, u = 0, l = 0, o = s + 1);
2107
- }
2108
- this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
2109
- }
2110
- push(e, n, t) {
2111
- const i = new W(e, n, t);
2112
- return i.block = !0, t < 0 && this.level--, i.level = this.level, t > 0 && this.level++, this.tokens.push(i), i;
2113
- }
2114
- isEmpty(e) {
2115
- return this.bMarks[e] + this.tShift[e] >= this.eMarks[e];
2116
- }
2117
- skipEmptyLines(e) {
2118
- for (let n = this.lineMax; e < n && !(this.bMarks[e] + this.tShift[e] < this.eMarks[e]); e++) ;
2119
- return e;
2120
- }
2121
- skipSpaces(e) {
2122
- for (let n = this.src.length; e < n && E(this.src.charCodeAt(e)); e++) ;
2123
- return e;
2124
- }
2125
- skipSpacesBack(e, n) {
2126
- if (e <= n) return e;
2127
- for (; e > n; ) if (!E(this.src.charCodeAt(--e))) return e + 1;
2128
- return e;
2129
- }
2130
- skipChars(e, n) {
2131
- for (let t = this.src.length; e < t && this.src.charCodeAt(e) === n; e++) ;
2132
- return e;
2133
- }
2134
- skipCharsBack(e, n, t) {
2135
- if (e <= t) return e;
2136
- for (; e > t; ) if (n !== this.src.charCodeAt(--e)) return e + 1;
2137
- return e;
2138
- }
2139
- getLines(e, n, t, i) {
2140
- if (e >= n) return "";
2141
- const r = new Array(n - e);
2142
- for (let o = 0, s = e; s < n; s++, o++) {
2143
- let u = 0;
2144
- const l = this.bMarks[s];
2145
- let c = l, h;
2146
- for (s + 1 < n || i ? h = this.eMarks[s] + 1 : h = this.eMarks[s]; c < h && u < t; ) {
2147
- const f = this.src.charCodeAt(c);
2148
- if (E(f)) f === 9 ? u += 4 - (u + this.bsCount[s]) % 4 : u++;
2149
- else if (c - l < this.tShift[s]) u++;
2150
- else break;
2151
- c++;
2152
- }
2153
- u > t ? r[o] = new Array(u - t + 1).join(" ") + this.src.slice(c, h) : r[o] = this.src.slice(c, h);
2154
- }
2155
- return r.join("");
2156
- }
2157
- }, lr = 65536;
2158
- function pe(e, n) {
2159
- const t = e.bMarks[n] + e.tShift[n], i = e.eMarks[n];
2160
- return e.src.slice(t, i);
2161
- }
2162
- function Oe(e) {
2163
- const n = [], t = e.length;
2164
- let i = 0, r = e.charCodeAt(i), o = !1, s = 0, u = "";
2165
- for (; i < t; )
2166
- r === 124 && (o ? (u += e.substring(s, i - 1), s = i) : (n.push(u + e.substring(s, i)), u = "", s = i + 1)), o = r === 92, i++, r = e.charCodeAt(i);
2167
- return n.push(u + e.substring(s)), n;
2168
- }
2169
- function cr(e, n, t, i) {
2170
- if (n + 2 > t) return !1;
2171
- let r = n + 1;
2172
- if (e.sCount[r] < e.blkIndent || e.sCount[r] - e.blkIndent >= 4) return !1;
2173
- let o = e.bMarks[r] + e.tShift[r];
2174
- if (o >= e.eMarks[r]) return !1;
2175
- const s = e.src.charCodeAt(o++);
2176
- if (s !== 124 && s !== 45 && s !== 58 || o >= e.eMarks[r]) return !1;
2177
- const u = e.src.charCodeAt(o++);
2178
- if (u !== 124 && u !== 45 && u !== 58 && !E(u) || s === 45 && E(u)) return !1;
2179
- for (; o < e.eMarks[r]; ) {
2180
- const _ = e.src.charCodeAt(o);
2181
- if (_ !== 124 && _ !== 45 && _ !== 58 && !E(_)) return !1;
2182
- o++;
2183
- }
2184
- let l = pe(e, n + 1), c = l.split("|");
2185
- const h = [];
2186
- for (let _ = 0; _ < c.length; _++) {
2187
- const k = c[_].trim();
2188
- if (!k) {
2189
- if (_ === 0 || _ === c.length - 1) continue;
2190
- return !1;
2191
- }
2192
- if (!/^:?-+:?$/.test(k)) return !1;
2193
- k.charCodeAt(k.length - 1) === 58 ? h.push(k.charCodeAt(0) === 58 ? "center" : "right") : k.charCodeAt(0) === 58 ? h.push("left") : h.push("");
2194
- }
2195
- if (l = pe(e, n).trim(), l.indexOf("|") === -1 || e.sCount[n] - e.blkIndent >= 4) return !1;
2196
- c = Oe(l), c.length && c[0] === "" && c.shift(), c.length && c[c.length - 1] === "" && c.pop();
2197
- const f = c.length;
2198
- if (f === 0 || f !== h.length) return !1;
2199
- if (i) return !0;
2200
- const d = e.parentType;
2201
- e.parentType = "table";
2202
- const p = e.md.block.ruler.getRules("blockquote"), a = e.push("table_open", "table", 1), b = [n, 0];
2203
- a.map = b;
2204
- const g = e.push("thead_open", "thead", 1);
2205
- g.map = [n, n + 1];
2206
- const x = e.push("tr_open", "tr", 1);
2207
- x.map = [n, n + 1];
2208
- for (let _ = 0; _ < c.length; _++) {
2209
- const k = e.push("th_open", "th", 1);
2210
- h[_] && (k.attrs = [["style", `text-align:${h[_]}`]]);
2211
- const v = e.push("inline", "", 0);
2212
- v.content = c[_].trim(), v.children = [], e.push("th_close", "th", -1);
2213
- }
2214
- e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
2215
- let C, m = 0;
2216
- for (r = n + 2; r < t && !(e.sCount[r] < e.blkIndent); r++) {
2217
- let _ = !1;
2218
- for (let v = 0, A = p.length; v < A; v++) if (p[v](e, r, t, !0)) {
2219
- _ = !0;
2220
- break;
2221
- }
2222
- if (_ || (l = pe(e, r).trim(), !l) || e.sCount[r] - e.blkIndent >= 4 || (c = Oe(l), c.length && c[0] === "" && c.shift(), c.length && c[c.length - 1] === "" && c.pop(), m += f - c.length, m > lr)) break;
2223
- if (r === n + 2) {
2224
- const v = e.push("tbody_open", "tbody", 1);
2225
- v.map = C = [n + 2, 0];
2226
- }
2227
- const k = e.push("tr_open", "tr", 1);
2228
- k.map = [r, r + 1];
2229
- for (let v = 0; v < f; v++) {
2230
- const A = e.push("td_open", "td", 1);
2231
- h[v] && (A.attrs = [["style", `text-align:${h[v]}`]]);
2232
- const F = e.push("inline", "", 0);
2233
- F.content = c[v] ? c[v].trim() : "", F.children = [], e.push("td_close", "td", -1);
2234
- }
2235
- e.push("tr_close", "tr", -1);
2236
- }
2237
- return C && (e.push("tbody_close", "tbody", -1), C[1] = r), e.push("table_close", "table", -1), b[1] = r, e.parentType = d, e.line = r, !0;
2238
- }
2239
- function ar(e, n, t) {
2240
- if (e.sCount[n] - e.blkIndent < 4) return !1;
2241
- let i = n + 1, r = i;
2242
- for (; i < t; ) {
2243
- if (e.isEmpty(i)) {
2244
- i++;
2245
- continue;
2246
- }
2247
- if (e.sCount[i] - e.blkIndent >= 4) {
2248
- i++, r = i;
2249
- continue;
2250
- }
2251
- break;
2252
- }
2253
- e.line = r;
2254
- const o = e.push("code_block", "code", 0);
2255
- return o.content = e.getLines(n, r, 4 + e.blkIndent, !1) + `
2256
- `, o.map = [n, e.line], !0;
2257
- }
2258
- function hr(e, n, t, i) {
2259
- let r = e.bMarks[n] + e.tShift[n], o = e.eMarks[n];
2260
- if (e.sCount[n] - e.blkIndent >= 4 || r + 3 > o) return !1;
2261
- const s = e.src.charCodeAt(r);
2262
- if (s !== 126 && s !== 96) return !1;
2263
- let u = r;
2264
- r = e.skipChars(r, s);
2265
- let l = r - u;
2266
- if (l < 3) return !1;
2267
- const c = e.src.slice(u, r), h = e.src.slice(r, o);
2268
- if (s === 96 && h.indexOf(String.fromCharCode(s)) >= 0)
2269
- return !1;
2270
- if (i) return !0;
2271
- let f = n, d = !1;
2272
- for (; f++, !(f >= t || (r = u = e.bMarks[f] + e.tShift[f], o = e.eMarks[f], r < o && e.sCount[f] < e.blkIndent)); )
2273
- if (e.src.charCodeAt(r) === s && !(e.sCount[f] - e.blkIndent >= 4) && (r = e.skipChars(r, s), !(r - u < l) && (r = e.skipSpaces(r), !(r < o)))) {
2274
- d = !0;
2275
- break;
2276
- }
2277
- l = e.sCount[n], e.line = f + (d ? 1 : 0);
2278
- const p = e.push("fence", "code", 0);
2279
- return p.info = h, p.content = e.getLines(n + 1, f, l, !0), p.markup = c, p.map = [n, e.line], !0;
2280
- }
2281
- function fr(e, n, t, i) {
2282
- let r = e.bMarks[n] + e.tShift[n], o = e.eMarks[n];
2283
- const s = e.lineMax;
2284
- if (e.sCount[n] - e.blkIndent >= 4 || e.src.charCodeAt(r) !== 62) return !1;
2285
- if (i) return !0;
2286
- const u = [], l = [], c = [], h = [], f = e.md.block.ruler.getRules("blockquote"), d = e.parentType;
2287
- e.parentType = "blockquote";
2288
- let p = !1, a;
2289
- for (a = n; a < t; a++) {
2290
- const m = e.sCount[a] < e.blkIndent;
2291
- if (r = e.bMarks[a] + e.tShift[a], o = e.eMarks[a], r >= o) break;
2292
- if (e.src.charCodeAt(r++) === 62 && !m) {
2293
- let k = e.sCount[a] + 1, v, A;
2294
- e.src.charCodeAt(r) === 32 ? (r++, k++, A = !1, v = !0) : e.src.charCodeAt(r) === 9 ? (v = !0, (e.bsCount[a] + k) % 4 === 3 ? (r++, k++, A = !1) : A = !0) : v = !1;
2295
- let F = k;
2296
- for (u.push(e.bMarks[a]), e.bMarks[a] = r; r < o; ) {
2297
- const D = e.src.charCodeAt(r);
2298
- if (E(D)) D === 9 ? F += 4 - (F + e.bsCount[a] + (A ? 1 : 0)) % 4 : F++;
2299
- else break;
2300
- r++;
2301
- }
2302
- p = r >= o, l.push(e.bsCount[a]), e.bsCount[a] = e.sCount[a] + 1 + (v ? 1 : 0), c.push(e.sCount[a]), e.sCount[a] = F - k, h.push(e.tShift[a]), e.tShift[a] = r - e.bMarks[a];
2303
- continue;
2304
- }
2305
- if (p) break;
2306
- let _ = !1;
2307
- for (let k = 0, v = f.length; k < v; k++) if (f[k](e, a, t, !0)) {
2308
- _ = !0;
2309
- break;
2310
- }
2311
- if (_) {
2312
- e.lineMax = a, e.blkIndent !== 0 && (u.push(e.bMarks[a]), l.push(e.bsCount[a]), h.push(e.tShift[a]), c.push(e.sCount[a]), e.sCount[a] -= e.blkIndent);
2313
- break;
2314
- }
2315
- u.push(e.bMarks[a]), l.push(e.bsCount[a]), h.push(e.tShift[a]), c.push(e.sCount[a]), e.sCount[a] = -1;
2316
- }
2317
- const b = e.blkIndent;
2318
- e.blkIndent = 0;
2319
- const g = e.push("blockquote_open", "blockquote", 1);
2320
- g.markup = ">";
2321
- const x = [n, 0];
2322
- g.map = x, e.md.block.tokenize(e, n, a);
2323
- const C = e.push("blockquote_close", "blockquote", -1);
2324
- C.markup = ">", e.lineMax = s, e.parentType = d, x[1] = e.line;
2325
- for (let m = 0; m < h.length; m++)
2326
- e.bMarks[m + n] = u[m], e.tShift[m + n] = h[m], e.sCount[m + n] = c[m], e.bsCount[m + n] = l[m];
2327
- return e.blkIndent = b, !0;
2328
- }
2329
- function pr(e, n, t, i) {
2330
- const r = e.eMarks[n];
2331
- if (e.sCount[n] - e.blkIndent >= 4) return !1;
2332
- let o = e.bMarks[n] + e.tShift[n];
2333
- const s = e.src.charCodeAt(o++);
2334
- if (s !== 42 && s !== 45 && s !== 95) return !1;
2335
- let u = 1;
2336
- for (; o < r; ) {
2337
- const c = e.src.charCodeAt(o++);
2338
- if (c !== s && !E(c)) return !1;
2339
- c === s && u++;
2340
- }
2341
- if (u < 3) return !1;
2342
- if (i) return !0;
2343
- e.line = n + 1;
2344
- const l = e.push("hr", "hr", 0);
2345
- return l.map = [n, e.line], l.markup = Array(u + 1).join(String.fromCharCode(s)), !0;
2346
- }
2347
- function $e(e, n) {
2348
- const t = e.eMarks[n];
2349
- let i = e.bMarks[n] + e.tShift[n];
2350
- const r = e.src.charCodeAt(i++);
2351
- return r !== 42 && r !== 45 && r !== 43 || i < t && !E(e.src.charCodeAt(i)) ? -1 : i;
2352
- }
2353
- function qe(e, n) {
2354
- const t = e.bMarks[n] + e.tShift[n], i = e.eMarks[n];
2355
- let r = t;
2356
- if (r + 1 >= i) return -1;
2357
- let o = e.src.charCodeAt(r++);
2358
- if (o < 48 || o > 57) return -1;
2359
- for (; ; ) {
2360
- if (r >= i) return -1;
2361
- if (o = e.src.charCodeAt(r++), o >= 48 && o <= 57) {
2362
- if (r - t >= 10) return -1;
2363
- continue;
2364
- }
2365
- if (o === 41 || o === 46) break;
2366
- return -1;
2367
- }
2368
- return r < i && (o = e.src.charCodeAt(r), !E(o)) ? -1 : r;
2369
- }
2370
- function dr(e, n) {
2371
- const t = e.level + 2;
2372
- for (let i = n + 2, r = e.tokens.length - 2; i < r; i++) e.tokens[i].level === t && e.tokens[i].type === "paragraph_open" && (e.tokens[i + 2].hidden = !0, e.tokens[i].hidden = !0, i += 2);
2373
- }
2374
- function _r(e, n, t, i) {
2375
- let r, o, s, u, l = n, c = !0;
2376
- if (e.sCount[l] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[l] - e.listIndent >= 4 && e.sCount[l] < e.blkIndent) return !1;
2377
- let h = !1;
2378
- i && e.parentType === "paragraph" && e.sCount[l] >= e.blkIndent && (h = !0);
2379
- let f, d, p;
2380
- if ((p = qe(e, l)) >= 0) {
2381
- if (f = !0, s = e.bMarks[l] + e.tShift[l], d = Number(e.src.slice(s, p - 1)), h && d !== 1) return !1;
2382
- } else if ((p = $e(e, l)) >= 0) f = !1;
2383
- else return !1;
2384
- if (h && e.skipSpaces(p) >= e.eMarks[l])
2385
- return !1;
2386
- if (i) return !0;
2387
- const a = e.src.charCodeAt(p - 1), b = e.tokens.length;
2388
- f ? (u = e.push("ordered_list_open", "ol", 1), d !== 1 && (u.attrs = [["start", d]])) : u = e.push("bullet_list_open", "ul", 1);
2389
- const g = [l, 0];
2390
- u.map = g, u.markup = String.fromCharCode(a);
2391
- let x = !1;
2392
- const C = e.md.block.ruler.getRules("list"), m = e.parentType;
2393
- for (e.parentType = "list"; l < t; ) {
2394
- o = p, r = e.eMarks[l];
2395
- const _ = e.sCount[l] + p - (e.bMarks[l] + e.tShift[l]);
2396
- let k = _;
2397
- for (; o < r; ) {
2398
- const S = e.src.charCodeAt(o);
2399
- if (S === 9) k += 4 - (k + e.bsCount[l]) % 4;
2400
- else if (S === 32) k++;
2401
- else break;
2402
- o++;
2403
- }
2404
- const v = o;
2405
- let A;
2406
- v >= r ? A = 1 : A = k - _, A > 4 && (A = 1);
2407
- const F = _ + A;
2408
- u = e.push("list_item_open", "li", 1), u.markup = String.fromCharCode(a);
2409
- const D = [l, 0];
2410
- u.map = D, f && (u.info = e.src.slice(s, p - 1));
2411
- const y = e.tight, w = e.tShift[l], B = e.sCount[l], I = e.listIndent;
2412
- if (e.listIndent = e.blkIndent, e.blkIndent = F, e.tight = !0, e.tShift[l] = v - e.bMarks[l], e.sCount[l] = k, v >= r && e.isEmpty(l + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, l, t), (!e.tight || x) && (c = !1), x = e.line - l > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = I, e.tShift[l] = w, e.sCount[l] = B, e.tight = y, u = e.push("list_item_close", "li", -1), u.markup = String.fromCharCode(a), l = e.line, D[1] = l, l >= t || e.sCount[l] < e.blkIndent || e.sCount[l] - e.blkIndent >= 4) break;
2413
- let J = !1;
2414
- for (let S = 0, An = C.length; S < An; S++) if (C[S](e, l, t, !0)) {
2415
- J = !0;
2416
- break;
2417
- }
2418
- if (J) break;
2419
- if (f) {
2420
- if (p = qe(e, l), p < 0) break;
2421
- s = e.bMarks[l] + e.tShift[l];
2422
- } else if (p = $e(e, l), p < 0) break;
2423
- if (a !== e.src.charCodeAt(p - 1)) break;
2424
- }
2425
- return f ? u = e.push("ordered_list_close", "ol", -1) : u = e.push("bullet_list_close", "ul", -1), u.markup = String.fromCharCode(a), g[1] = l, e.line = l, e.parentType = m, c && dr(e, b), !0;
2426
- }
2427
- function gr(e, n, t, i) {
2428
- let r = e.bMarks[n] + e.tShift[n], o = e.eMarks[n], s = n + 1;
2429
- if (e.sCount[n] - e.blkIndent >= 4 || e.src.charCodeAt(r) !== 91) return !1;
2430
- function u(_) {
2431
- const k = e.lineMax;
2432
- if (_ >= k || e.isEmpty(_)) return null;
2433
- let v = !1;
2434
- if (e.sCount[_] - e.blkIndent > 3 && (v = !0), e.sCount[_] < 0 && (v = !0), !v) {
2435
- const D = e.md.block.ruler.getRules("reference"), y = e.parentType;
2436
- e.parentType = "reference";
2437
- let w = !1;
2438
- for (let B = 0, I = D.length; B < I; B++) if (D[B](e, _, k, !0)) {
2439
- w = !0;
2440
- break;
2441
- }
2442
- if (e.parentType = y, w) return null;
2443
- }
2444
- const A = e.bMarks[_] + e.tShift[_], F = e.eMarks[_];
2445
- return e.src.slice(A, F + 1);
2446
- }
2447
- let l = e.src.slice(r, o + 1);
2448
- o = l.length;
2449
- let c = -1;
2450
- for (r = 1; r < o; r++) {
2451
- const _ = l.charCodeAt(r);
2452
- if (_ === 91) return !1;
2453
- if (_ === 93) {
2454
- c = r;
2455
- break;
2456
- } else if (_ === 10) {
2457
- const k = u(s);
2458
- k !== null && (l += k, o = l.length, s++);
2459
- } else if (_ === 92 && (r++, r < o && l.charCodeAt(r) === 10)) {
2460
- const k = u(s);
2461
- k !== null && (l += k, o = l.length, s++);
2462
- }
2463
- }
2464
- if (c < 0 || l.charCodeAt(c + 1) !== 58) return !1;
2465
- for (r = c + 2; r < o; r++) {
2466
- const _ = l.charCodeAt(r);
2467
- if (_ === 10) {
2468
- const k = u(s);
2469
- k !== null && (l += k, o = l.length, s++);
2470
- } else if (!E(_)) break;
2471
- }
2472
- const h = e.md.helpers.parseLinkDestination(l, r, o);
2473
- if (!h.ok) return !1;
2474
- const f = e.md.normalizeLink(h.str);
2475
- if (!e.md.validateLink(f)) return !1;
2476
- r = h.pos;
2477
- const d = r, p = s, a = r;
2478
- for (; r < o; r++) {
2479
- const _ = l.charCodeAt(r);
2480
- if (_ === 10) {
2481
- const k = u(s);
2482
- k !== null && (l += k, o = l.length, s++);
2483
- } else if (!E(_)) break;
2484
- }
2485
- let b = e.md.helpers.parseLinkTitle(l, r, o);
2486
- for (; b.can_continue; ) {
2487
- const _ = u(s);
2488
- if (_ === null) break;
2489
- l += _, r = o, o = l.length, s++, b = e.md.helpers.parseLinkTitle(l, r, o, b);
2490
- }
2491
- let g;
2492
- for (r < o && a !== r && b.ok ? (g = b.str, r = b.pos) : (g = "", r = d, s = p); r < o && E(l.charCodeAt(r)); )
2493
- r++;
2494
- if (r < o && l.charCodeAt(r) !== 10 && g)
2495
- for (g = "", r = d, s = p; r < o && E(l.charCodeAt(r)); )
2496
- r++;
2497
- if (r < o && l.charCodeAt(r) !== 10) return !1;
2498
- const x = ue(l.slice(1, c));
2499
- if (!x) return !1;
2500
- if (i) return !0;
2501
- typeof e.env.references > "u" && (e.env.references = {}), typeof e.env.references[x] > "u" && (e.env.references[x] = {
2502
- title: g,
2503
- href: f
2504
- });
2505
- const C = e.push("reference_definition", "", 0);
2506
- C.map = [n, s], C.hidden = !0;
2507
- const m = /* @__PURE__ */ Object.create(null);
2508
- return m.label = x, C.meta = m, e.line = s, !0;
2509
- }
2510
- var kr = [
2511
- "address",
2512
- "article",
2513
- "aside",
2514
- "base",
2515
- "basefont",
2516
- "blockquote",
2517
- "body",
2518
- "caption",
2519
- "center",
2520
- "col",
2521
- "colgroup",
2522
- "dd",
2523
- "details",
2524
- "dialog",
2525
- "dir",
2526
- "div",
2527
- "dl",
2528
- "dt",
2529
- "fieldset",
2530
- "figcaption",
2531
- "figure",
2532
- "footer",
2533
- "form",
2534
- "frame",
2535
- "frameset",
2536
- "h1",
2537
- "h2",
2538
- "h3",
2539
- "h4",
2540
- "h5",
2541
- "h6",
2542
- "head",
2543
- "header",
2544
- "hr",
2545
- "html",
2546
- "iframe",
2547
- "legend",
2548
- "li",
2549
- "link",
2550
- "main",
2551
- "menu",
2552
- "menuitem",
2553
- "nav",
2554
- "noframes",
2555
- "ol",
2556
- "optgroup",
2557
- "option",
2558
- "p",
2559
- "param",
2560
- "search",
2561
- "section",
2562
- "summary",
2563
- "table",
2564
- "tbody",
2565
- "td",
2566
- "tfoot",
2567
- "th",
2568
- "thead",
2569
- "title",
2570
- "tr",
2571
- "track",
2572
- "ul"
2573
- ], Rn = `<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`, bn = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", mr = new RegExp(`^(?:${Rn}|${bn}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`), Rr = new RegExp(`^(?:${Rn}|${bn})`), Z = [
2574
- [
2575
- /^<(script|pre|style|textarea)(?=(\s|>|$))/i,
2576
- /<\/(script|pre|style|textarea)>/i,
2577
- !0
2578
- ],
2579
- [
2580
- /^<!--/,
2581
- /-->/,
2582
- !0
2583
- ],
2584
- [
2585
- /^<\?/,
2586
- /\?>/,
2587
- !0
2588
- ],
2589
- [
2590
- /^<![A-Za-z]/,
2591
- />/,
2592
- !0
2593
- ],
2594
- [
2595
- /^<!\[CDATA\[/,
2596
- /\]\]>/,
2597
- !0
2598
- ],
2599
- [
2600
- new RegExp(`^</?(${kr.join("|")})(?=(\\s|/?>|$))`, "i"),
2601
- /^$/,
2602
- !0
2603
- ],
2604
- [
2605
- new RegExp(`${Rr.source}\\s*$`),
2606
- /^$/,
2607
- !1
2608
- ]
2609
- ];
2610
- function br(e, n, t, i) {
2611
- let r = e.bMarks[n] + e.tShift[n], o = e.eMarks[n];
2612
- if (e.sCount[n] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(r) !== 60) return !1;
2613
- let s = e.src.slice(r, o), u = 0;
2614
- for (; u < Z.length && !Z[u][0].test(s); u++) ;
2615
- if (u === Z.length) return !1;
2616
- if (i) return Z[u][2];
2617
- let l = n + 1;
2618
- const c = Z[u][1].test("");
2619
- if (!Z[u][1].test(s)) {
2620
- for (; l < t && !(e.sCount[l] < e.blkIndent && (c || !e.isEmpty(l))); l++)
2621
- if (r = e.bMarks[l] + e.tShift[l], o = e.eMarks[l], s = e.src.slice(r, o), Z[u][1].test(s)) {
2622
- s.length !== 0 && l++;
2623
- break;
2624
- }
2625
- }
2626
- e.line = l;
2627
- const h = e.push("html_block", "", 0);
2628
- return h.map = [n, l], h.content = e.getLines(n, l, e.blkIndent, !0), !0;
2629
- }
2630
- function xr(e, n, t, i) {
2631
- let r = e.bMarks[n] + e.tShift[n], o = e.eMarks[n];
2632
- if (e.sCount[n] - e.blkIndent >= 4) return !1;
2633
- let s = e.src.charCodeAt(r);
2634
- if (s !== 35 || r >= o) return !1;
2635
- let u = 1;
2636
- for (s = e.src.charCodeAt(++r); s === 35 && r < o && u <= 6; )
2637
- u++, s = e.src.charCodeAt(++r);
2638
- if (u > 6 || r < o && !E(s)) return !1;
2639
- if (i) return !0;
2640
- o = e.skipSpacesBack(o, r);
2641
- const l = e.skipCharsBack(o, 35, r);
2642
- l > r && E(e.src.charCodeAt(l - 1)) && (o = l), e.line = n + 1;
2643
- const c = e.push("heading_open", `h${u}`, 1);
2644
- c.markup = "########".slice(0, u), c.map = [n, e.line];
2645
- const h = e.push("inline", "", 0);
2646
- h.content = le(e.src.slice(r, o)), h.map = [n, e.line], h.children = [];
2647
- const f = e.push("heading_close", `h${u}`, -1);
2648
- return f.markup = "########".slice(0, u), !0;
2649
- }
2650
- function Cr(e, n, t) {
2651
- const i = e.md.block.ruler.getRules("paragraph");
2652
- if (e.sCount[n] - e.blkIndent >= 4) return !1;
2653
- const r = e.parentType;
2654
- e.parentType = "paragraph";
2655
- let o = 0, s, u = n + 1;
2656
- for (; u < t && !e.isEmpty(u); u++) {
2657
- if (e.sCount[u] - e.blkIndent > 3) continue;
2658
- if (e.sCount[u] >= e.blkIndent) {
2659
- let p = e.bMarks[u] + e.tShift[u];
2660
- const a = e.eMarks[u];
2661
- if (p < a && (s = e.src.charCodeAt(p), (s === 45 || s === 61) && (p = e.skipChars(p, s), p = e.skipSpaces(p), p >= a))) {
2662
- o = s === 61 ? 1 : 2;
2663
- break;
2664
- }
2665
- }
2666
- if (e.sCount[u] < 0) continue;
2667
- let d = !1;
2668
- for (let p = 0, a = i.length; p < a; p++) if (i[p](e, u, t, !0)) {
2669
- d = !0;
2670
- break;
2671
- }
2672
- if (d) break;
2673
- }
2674
- if (!o)
2675
- return e.parentType = r, !1;
2676
- const l = le(e.getLines(n, u, e.blkIndent, !1));
2677
- e.line = u + 1;
2678
- const c = e.push("heading_open", `h${o}`, 1);
2679
- c.markup = String.fromCharCode(s), c.map = [n, e.line];
2680
- const h = e.push("inline", "", 0);
2681
- h.content = l, h.map = [n, e.line - 1], h.children = [];
2682
- const f = e.push("heading_close", `h${o}`, -1);
2683
- return f.markup = String.fromCharCode(s), e.parentType = r, !0;
2684
- }
2685
- function vr(e, n, t) {
2686
- const i = e.md.block.ruler.getRules("paragraph"), r = e.parentType;
2687
- let o = n + 1;
2688
- for (e.parentType = "paragraph"; o < t && !e.isEmpty(o); o++) {
2689
- if (e.sCount[o] - e.blkIndent > 3 || e.sCount[o] < 0) continue;
2690
- let c = !1;
2691
- for (let h = 0, f = i.length; h < f; h++) if (i[h](e, o, t, !0)) {
2692
- c = !0;
2693
- break;
2694
- }
2695
- if (c) break;
2696
- }
2697
- const s = le(e.getLines(n, o, e.blkIndent, !1));
2698
- e.line = o;
2699
- const u = e.push("paragraph_open", "p", 1);
2700
- u.map = [n, e.line];
2701
- const l = e.push("inline", "", 0);
2702
- return l.content = s, l.map = [n, e.line], l.children = [], e.push("paragraph_close", "p", -1), e.parentType = r, !0;
2703
- }
2704
- var ie = [
2705
- [
2706
- "table",
2707
- cr,
2708
- ["paragraph", "reference"]
2709
- ],
2710
- ["code", ar],
2711
- [
2712
- "fence",
2713
- hr,
2714
- [
2715
- "paragraph",
2716
- "reference",
2717
- "blockquote",
2718
- "list"
2719
- ]
2720
- ],
2721
- [
2722
- "blockquote",
2723
- fr,
2724
- [
2725
- "paragraph",
2726
- "reference",
2727
- "blockquote",
2728
- "list"
2729
- ]
2730
- ],
2731
- [
2732
- "hr",
2733
- pr,
2734
- [
2735
- "paragraph",
2736
- "reference",
2737
- "blockquote",
2738
- "list"
2739
- ]
2740
- ],
2741
- [
2742
- "list",
2743
- _r,
2744
- [
2745
- "paragraph",
2746
- "reference",
2747
- "blockquote"
2748
- ]
2749
- ],
2750
- ["reference", gr],
2751
- [
2752
- "html_block",
2753
- br,
2754
- [
2755
- "paragraph",
2756
- "reference",
2757
- "blockquote"
2758
- ]
2759
- ],
2760
- [
2761
- "heading",
2762
- xr,
2763
- [
2764
- "paragraph",
2765
- "reference",
2766
- "blockquote"
2767
- ]
2768
- ],
2769
- ["lheading", Cr],
2770
- ["paragraph", vr]
2771
- ], xn = class {
2772
- constructor() {
2773
- R(
2774
- this,
2775
- /**
2776
- * {@link Ruler} instance. Keep configuration of block rules.
2777
- */
2778
- "ruler",
2779
- new te()
2780
- ), R(this, "State", mn);
2781
- for (let e = 0; e < ie.length; e++) this.ruler.push(ie[e][0], ie[e][1], { alt: (ie[e][2] || []).slice() });
2782
- }
2783
- tokenize(e, n, t) {
2784
- const i = this.ruler.getRules(""), r = i.length, o = e.md.options.maxNesting;
2785
- let s = n, u = !1;
2786
- for (; s < t && (e.line = s = e.skipEmptyLines(s), !(s >= t || e.sCount[s] < e.blkIndent)); ) {
2787
- if (e.level >= o) {
2788
- e.line = t;
2789
- break;
2790
- }
2791
- const l = e.line;
2792
- let c = !1;
2793
- for (let h = 0; h < r; h++)
2794
- if (c = i[h](e, s, t, !1), c) {
2795
- if (l >= e.line) throw new Error("block rule didn't increment state.line");
2796
- break;
2797
- }
2798
- if (!c) throw new Error("none of the block rules matched");
2799
- e.tight = !u, e.isEmpty(e.line - 1) && (u = !0), s = e.line, s < t && e.isEmpty(s) && (u = !0, s++, e.line = s);
2800
- }
2801
- }
2802
- /**
2803
- * Process input string and push block tokens into `outTokens`
2804
- */
2805
- parse(e, n, t, i) {
2806
- if (!e) return;
2807
- const r = new this.State(e, n, t, i);
2808
- this.tokenize(r, r.line, r.lineMax);
2809
- }
2810
- }, Cn = class {
2811
- constructor(e, n, t, i) {
2812
- R(this, "pos", 0), R(this, "level", 0), R(this, "pending", ""), R(this, "pendingLevel", 0), R(this, "cache", {}), R(this, "backticks", {}), R(this, "backticksScanned", !1), R(this, "linkLevel", 0), R(this, "delimiters", []), R(this, "_prev_delimiters", []), R(this, "Token", W), this.src = e, this.env = t, this.md = n, this.tokens = i, this.tokens_meta = Array(i.length), this.posMax = this.src.length;
2813
- }
2814
- pushPending() {
2815
- const e = new W("text", "", 0);
2816
- return e.content = this.pending, e.level = this.pendingLevel, this.tokens.push(e), this.pending = "", e;
2817
- }
2818
- push(e, n, t) {
2819
- this.pending && this.pushPending();
2820
- const i = new W(e, n, t);
2821
- let r;
2822
- return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), i.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(i), this.tokens_meta.push(r), i;
2823
- }
2824
- scanDelims(e, n) {
2825
- const t = this.posMax, i = this.src.charCodeAt(e);
2826
- let r;
2827
- if (e === 0) r = 32;
2828
- else if (e === 1)
2829
- r = this.src.charCodeAt(0), (r & 63488) === 55296 && (r = 65533);
2830
- else if (r = this.src.charCodeAt(e - 1), (r & 64512) === 56320) {
2831
- const a = this.src.charCodeAt(e - 2);
2832
- r = (a & 64512) === 55296 ? 65536 + (a - 55296 << 10) + (r - 56320) : 65533;
2833
- } else (r & 64512) === 55296 && (r = 65533);
2834
- let o = e;
2835
- for (; o < t && this.src.charCodeAt(o) === i; ) o++;
2836
- const s = o - e;
2837
- let u = o < t ? this.src.charCodeAt(o) : 32;
2838
- if ((u & 64512) === 55296) {
2839
- const a = this.src.charCodeAt(o + 1);
2840
- u = (a & 64512) === 56320 ? 65536 + (u - 55296 << 10) + (a - 56320) : 65533;
2841
- } else (u & 64512) === 56320 && (u = 65533);
2842
- const l = ee(r) || Q(r), c = ee(u) || Q(u), h = V(r), f = V(u), d = !f && (!c || h || l), p = !h && (!l || f || c);
2843
- return {
2844
- can_open: d && (n || !p || l),
2845
- can_close: p && (n || !d || c),
2846
- length: s
2847
- };
2848
- }
2849
- };
2850
- function Dr(e) {
2851
- switch (e) {
2852
- case 10:
2853
- case 33:
2854
- case 35:
2855
- case 36:
2856
- case 37:
2857
- case 38:
2858
- case 42:
2859
- case 43:
2860
- case 45:
2861
- case 58:
2862
- case 60:
2863
- case 61:
2864
- case 62:
2865
- case 64:
2866
- case 91:
2867
- case 92:
2868
- case 93:
2869
- case 94:
2870
- case 95:
2871
- case 96:
2872
- case 123:
2873
- case 125:
2874
- case 126:
2875
- return !0;
2876
- default:
2877
- return !1;
2878
- }
2879
- }
2880
- function wr(e, n) {
2881
- let t = e.pos;
2882
- for (; t < e.posMax && !Dr(e.src.charCodeAt(t)); ) t++;
2883
- return t === e.pos ? !1 : (n || (e.pending += e.src.slice(e.pos, t)), e.pos = t, !0);
2884
- }
2885
- function Ar(e) {
2886
- return e >= 65 && e <= 90 || e >= 97 && e <= 122;
2887
- }
2888
- function Er(e) {
2889
- return e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 43 || e === 45 || e === 46;
2890
- }
2891
- function Fr(e, n) {
2892
- if (!e.md.options.linkify || e.linkLevel > 0) return !1;
2893
- const t = e.pos, i = e.posMax;
2894
- if (t + 3 > i || e.src.charCodeAt(t) !== 58 || e.src.charCodeAt(t + 1) !== 47 || e.src.charCodeAt(t + 2) !== 47) return !1;
2895
- const r = t - Math.min(10, e.pending.length, t);
2896
- let o = t;
2897
- for (; o > r && Er(e.src.charCodeAt(o - 1)); ) o--;
2898
- if (o === t || !Ar(e.src.charCodeAt(o))) return !1;
2899
- const s = t - o, u = e.md.linkify.matchAtStart(e.src.slice(o));
2900
- if (!u) return !1;
2901
- let l = u.url;
2902
- if (l.length <= s) return !1;
2903
- let c = l.length;
2904
- for (; c > 0 && l.charCodeAt(c - 1) === 42; ) c--;
2905
- c !== l.length && (l = l.slice(0, c));
2906
- const h = e.md.normalizeLink(l);
2907
- if (!e.md.validateLink(h)) return !1;
2908
- if (!n) {
2909
- e.pending = e.pending.slice(0, -s);
2910
- const f = e.push("link_open", "a", 1);
2911
- f.attrs = [["href", h]], f.markup = "linkify", f.info = "auto";
2912
- const d = e.push("text", "", 0);
2913
- d.content = e.md.normalizeLinkText(l);
2914
- const p = e.push("link_close", "a", -1);
2915
- p.markup = "linkify", p.info = "auto";
2916
- }
2917
- return e.pos += l.length - s, !0;
2918
- }
2919
- function yr(e, n) {
2920
- let t = e.pos;
2921
- if (e.src.charCodeAt(t) !== 10) return !1;
2922
- const i = e.pending.length - 1, r = e.posMax;
2923
- if (!n) if (i >= 0 && e.pending.charCodeAt(i) === 32) if (i >= 1 && e.pending.charCodeAt(i - 1) === 32) {
2924
- let o = i - 1;
2925
- for (; o >= 1 && e.pending.charCodeAt(o - 1) === 32; ) o--;
2926
- e.pending = e.pending.slice(0, o), e.push("hardbreak", "br", 0);
2927
- } else
2928
- e.pending = e.pending.slice(0, -1), e.push("softbreak", "br", 0);
2929
- else e.push("softbreak", "br", 0);
2930
- for (t++; t < r && E(e.src.charCodeAt(t)); ) t++;
2931
- return e.pos = t, !0;
2932
- }
2933
- var Ce = [];
2934
- for (let e = 0; e < 256; e++) Ce.push(0);
2935
- "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e) {
2936
- Ce[e.charCodeAt(0)] = 1;
2937
- });
2938
- function Br(e, n) {
2939
- let t = e.pos;
2940
- const i = e.posMax;
2941
- if (e.src.charCodeAt(t) !== 92 || (t++, t >= i)) return !1;
2942
- let r = e.src.charCodeAt(t);
2943
- if (r === 10) {
2944
- for (n || e.push("hardbreak", "br", 0), t++; t < i && (r = e.src.charCodeAt(t), !!E(r)); )
2945
- t++;
2946
- return e.pos = t, !0;
2947
- }
2948
- if (r === 32) {
2949
- if (!n) {
2950
- const u = e.push("text_special", "", 0);
2951
- u.content = "\\", u.markup = "\\", u.info = "escape";
2952
- }
2953
- return e.pos = t, !0;
2954
- }
2955
- let o = e.src[t];
2956
- if (r >= 55296 && r <= 56319 && t + 1 < i) {
2957
- const u = e.src.charCodeAt(t + 1);
2958
- u >= 56320 && u <= 57343 && (o += e.src[t + 1], t++);
2959
- }
2960
- const s = "\\" + o;
2961
- if (!n) {
2962
- const u = e.push("text_special", "", 0);
2963
- r < 256 && Ce[r] !== 0 ? u.content = o : u.content = s, u.markup = s, u.info = "escape";
2964
- }
2965
- return e.pos = t + 1, !0;
2966
- }
2967
- function Tr(e) {
2968
- const n = {};
2969
- let t = 0;
2970
- for (; (t = e.indexOf("`", t)) !== -1; ) {
2971
- const i = t;
2972
- for (; e.charCodeAt(++t) === 96; ) ;
2973
- n[t - i] = i;
2974
- }
2975
- return n;
2976
- }
2977
- function zr(e, n) {
2978
- var t;
2979
- const i = e.pos;
2980
- if (e.src.charCodeAt(i) !== 96) return !1;
2981
- const r = e.posMax;
2982
- let o = i + 1;
2983
- for (; o < r && e.src.charCodeAt(o) === 96; ) o++;
2984
- const s = e.src.slice(i, o), u = s.length;
2985
- if (e.backticksScanned || (e.backticks = Tr(e.src), e.backticksScanned = !0), ((t = e.backticks[u]) !== null && t !== void 0 ? t : -1) >= o) {
2986
- let l = o, c;
2987
- for (; (c = e.src.indexOf("`", l)) !== -1 && c < r; ) {
2988
- for (l = c + 1; e.src.charCodeAt(l) === 96; ) l++;
2989
- if (l > r) break;
2990
- if (l - c === u) {
2991
- if (!n) {
2992
- const h = e.push("code_inline", "code", 0);
2993
- h.markup = s;
2994
- let f = e.src.slice(o, c).replace(/\n/g, " ");
2995
- f.startsWith(" ") && f.endsWith(" ") && /[^ ]/.test(f) && (f = f.slice(1, -1)), h.content = f;
2996
- }
2997
- return e.pos = l, !0;
2998
- }
2999
- }
3000
- }
3001
- return n || (e.pending += s), e.pos = o, !0;
3002
- }
3003
- function Sr(e, n) {
3004
- const t = e.pos, i = e.src.charCodeAt(t);
3005
- if (n || i !== 126) return !1;
3006
- const r = e.scanDelims(e.pos, !0);
3007
- let o = r.length;
3008
- const s = String.fromCharCode(i);
3009
- if (o < 2) return !1;
3010
- let u;
3011
- o % 2 && (u = e.push("text", "", 0), u.content = s, o--);
3012
- for (let l = 0; l < o; l += 2)
3013
- u = e.push("text", "", 0), u.content = s + s, e.delimiters.push({
3014
- marker: i,
3015
- length: 0,
3016
- token: e.tokens.length - 1,
3017
- end: -1,
3018
- open: r.can_open,
3019
- close: r.can_close
3020
- });
3021
- return e.pos += r.length, !0;
3022
- }
3023
- function Ue(e, n) {
3024
- let t;
3025
- const i = [], r = n.length;
3026
- for (let o = 0; o < r; o++) {
3027
- const s = n[o];
3028
- if (s.marker !== 126 || s.end === -1) continue;
3029
- const u = n[s.end];
3030
- t = e.tokens[s.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = e.tokens[u.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", e.tokens[u.token - 1].type === "text" && e.tokens[u.token - 1].content === "~" && i.push(u.token - 1);
3031
- }
3032
- for (; i.length; ) {
3033
- const o = i.pop();
3034
- let s = o + 1;
3035
- for (; s < e.tokens.length && e.tokens[s].type === "s_close"; ) s++;
3036
- s--, o !== s && (t = e.tokens[s], e.tokens[s] = e.tokens[o], e.tokens[o] = t);
3037
- }
3038
- }
3039
- function jr(e) {
3040
- const n = e.tokens_meta, t = e.tokens_meta.length;
3041
- Ue(e, e.delimiters);
3042
- for (let r = 0; r < t; r++) {
3043
- var i;
3044
- const o = (i = n[r]) === null || i === void 0 ? void 0 : i.delimiters;
3045
- o && Ue(e, o);
3046
- }
3047
- }
3048
- var vn = {
3049
- tokenize: Sr,
3050
- postProcess: jr
3051
- };
3052
- function Ir(e, n) {
3053
- const t = e.pos, i = e.src.charCodeAt(t);
3054
- if (n || i !== 95 && i !== 42) return !1;
3055
- const r = e.scanDelims(e.pos, i === 42);
3056
- for (let o = 0; o < r.length; o++) {
3057
- const s = e.push("text", "", 0);
3058
- s.content = String.fromCharCode(i), e.delimiters.push({
3059
- marker: i,
3060
- length: r.length,
3061
- token: e.tokens.length - 1,
3062
- end: -1,
3063
- open: r.can_open,
3064
- close: r.can_close
3065
- });
3066
- }
3067
- return e.pos += r.length, !0;
3068
- }
3069
- function Ze(e, n) {
3070
- const t = n.length;
3071
- for (let i = t - 1; i >= 0; i--) {
3072
- const r = n[i];
3073
- if (r.marker !== 95 && r.marker !== 42 || r.end === -1) continue;
3074
- const o = n[r.end], s = i > 0 && n[i - 1].end === r.end + 1 && n[i - 1].marker === r.marker && n[i - 1].token === r.token - 1 && n[r.end + 1].token === o.token + 1, u = String.fromCharCode(r.marker), l = e.tokens[r.token];
3075
- l.type = s ? "strong_open" : "em_open", l.tag = s ? "strong" : "em", l.nesting = 1, l.markup = s ? u + u : u, l.content = "";
3076
- const c = e.tokens[o.token];
3077
- c.type = s ? "strong_close" : "em_close", c.tag = s ? "strong" : "em", c.nesting = -1, c.markup = s ? u + u : u, c.content = "", s && (e.tokens[n[i - 1].token].content = "", e.tokens[n[r.end + 1].token].content = "", i--);
3078
- }
3079
- }
3080
- function Jr(e) {
3081
- const n = e.tokens_meta, t = e.tokens_meta.length;
3082
- Ze(e, e.delimiters);
3083
- for (let r = 0; r < t; r++) {
3084
- var i;
3085
- const o = (i = n[r]) === null || i === void 0 ? void 0 : i.delimiters;
3086
- o && Ze(e, o);
3087
- }
3088
- }
3089
- var Dn = {
3090
- tokenize: Ir,
3091
- postProcess: Jr
3092
- };
3093
- function Mr(e, n) {
3094
- let t, i, r, o, s = "", u = "", l = e.pos, c = !0;
3095
- if (e.src.charCodeAt(e.pos) !== 91) return !1;
3096
- const h = e.pos, f = e.posMax, d = e.pos + 1, p = e.md.helpers.parseLinkLabel(e, e.pos, !0);
3097
- if (p < 0) return !1;
3098
- let a = p + 1;
3099
- if (a < f && e.src.charCodeAt(a) === 40) {
3100
- for (c = !1, a++; a < f && (t = e.src.charCodeAt(a), !(!E(t) && t !== 10)); a++)
3101
- ;
3102
- if (a >= f) return !1;
3103
- if (l = a, r = e.md.helpers.parseLinkDestination(e.src, a, e.posMax), r.ok) {
3104
- for (s = e.md.normalizeLink(r.str), e.md.validateLink(s) ? a = r.pos : s = "", l = a; a < f && (t = e.src.charCodeAt(a), !(!E(t) && t !== 10)); a++)
3105
- ;
3106
- if (r = e.md.helpers.parseLinkTitle(e.src, a, e.posMax), a < f && l !== a && r.ok)
3107
- for (u = r.str, a = r.pos; a < f && (t = e.src.charCodeAt(a), !(!E(t) && t !== 10)); a++)
3108
- ;
3109
- }
3110
- (a >= f || e.src.charCodeAt(a) !== 41) && (c = !0), a++;
3111
- }
3112
- if (c) {
3113
- if (typeof e.env.references > "u") return !1;
3114
- if (a < f && e.src.charCodeAt(a) === 91 ? (l = a + 1, a = e.md.helpers.parseLinkLabel(e, a), a >= 0 ? i = e.src.slice(l, a++) : a = p + 1) : a = p + 1, i || (i = e.src.slice(d, p)), i = ue(i), o = e.env.references[i], !o)
3115
- return e.pos = h, !1;
3116
- s = o.href, u = o.title;
3117
- }
3118
- if (!n) {
3119
- e.pos = d, e.posMax = p;
3120
- const b = e.push("link_open", "a", 1), g = [["href", s]];
3121
- if (b.attrs = g, u && g.push(["title", u]), i) {
3122
- const x = /* @__PURE__ */ Object.create(null);
3123
- x.label = i, b.meta = x;
3124
- }
3125
- e.linkLevel++, e.md.inline.tokenize(e), e.linkLevel--, e.push("link_close", "a", -1);
3126
- }
3127
- return e.pos = a, e.posMax = f, !0;
3128
- }
3129
- function Pr(e, n) {
3130
- let t, i, r, o, s, u, l, c, h = "";
3131
- const f = e.pos, d = e.posMax;
3132
- if (e.src.charCodeAt(e.pos) !== 33 || e.src.charCodeAt(e.pos + 1) !== 91) return !1;
3133
- const p = e.pos + 2, a = e.md.helpers.parseLinkLabel(e, e.pos + 1, !1);
3134
- if (a < 0) return !1;
3135
- if (o = a + 1, o < d && e.src.charCodeAt(o) === 40) {
3136
- for (o++; o < d && (t = e.src.charCodeAt(o), !(!E(t) && t !== 10)); o++)
3137
- ;
3138
- if (o >= d) return !1;
3139
- for (c = o, u = e.md.helpers.parseLinkDestination(e.src, o, e.posMax), u.ok && (h = e.md.normalizeLink(u.str), e.md.validateLink(h) ? o = u.pos : h = ""), c = o; o < d && (t = e.src.charCodeAt(o), !(!E(t) && t !== 10)); o++)
3140
- ;
3141
- if (u = e.md.helpers.parseLinkTitle(e.src, o, e.posMax), o < d && c !== o && u.ok)
3142
- for (l = u.str, o = u.pos; o < d && (t = e.src.charCodeAt(o), !(!E(t) && t !== 10)); o++)
3143
- ;
3144
- else l = "";
3145
- if (o >= d || e.src.charCodeAt(o) !== 41)
3146
- return e.pos = f, !1;
3147
- o++;
3148
- } else {
3149
- if (typeof e.env.references > "u") return !1;
3150
- if (o < d && e.src.charCodeAt(o) === 91 ? (c = o + 1, o = e.md.helpers.parseLinkLabel(e, o), o >= 0 ? r = e.src.slice(c, o++) : o = a + 1) : o = a + 1, r || (r = e.src.slice(p, a)), r = ue(r), s = e.env.references[r], !s)
3151
- return e.pos = f, !1;
3152
- h = s.href, l = s.title;
3153
- }
3154
- if (!n) {
3155
- i = e.src.slice(p, a);
3156
- const b = [];
3157
- e.md.inline.parse(i, e.md, e.env, b);
3158
- const g = e.push("image", "img", 0), x = [["src", h], ["alt", ""]];
3159
- if (g.attrs = x, g.children = b, g.content = i, l && x.push(["title", l]), r) {
3160
- const C = /* @__PURE__ */ Object.create(null);
3161
- C.label = r, g.meta = C;
3162
- }
3163
- }
3164
- return e.pos = o, e.posMax = d, !0;
3165
- }
3166
- var Lr = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, Nr = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
3167
- function Or(e, n) {
3168
- let t = e.pos;
3169
- if (e.src.charCodeAt(t) !== 60) return !1;
3170
- const i = e.pos, r = e.posMax;
3171
- for (; ; ) {
3172
- if (++t >= r) return !1;
3173
- const s = e.src.charCodeAt(t);
3174
- if (s === 60) return !1;
3175
- if (s === 62) break;
3176
- }
3177
- const o = e.src.slice(i + 1, t);
3178
- if (Nr.test(o)) {
3179
- const s = e.md.normalizeLink(o);
3180
- if (!e.md.validateLink(s)) return !1;
3181
- if (!n) {
3182
- const u = e.push("link_open", "a", 1);
3183
- u.attrs = [["href", s]], u.markup = "autolink", u.info = "auto";
3184
- const l = e.push("text", "", 0);
3185
- l.content = e.md.normalizeLinkText(o);
3186
- const c = e.push("link_close", "a", -1);
3187
- c.markup = "autolink", c.info = "auto";
3188
- }
3189
- return e.pos += o.length + 2, !0;
3190
- }
3191
- if (Lr.test(o)) {
3192
- const s = e.md.normalizeLink(`mailto:${o}`);
3193
- if (!e.md.validateLink(s)) return !1;
3194
- if (!n) {
3195
- const u = e.push("link_open", "a", 1);
3196
- u.attrs = [["href", s]], u.markup = "autolink", u.info = "auto";
3197
- const l = e.push("text", "", 0);
3198
- l.content = e.md.normalizeLinkText(o);
3199
- const c = e.push("link_close", "a", -1);
3200
- c.markup = "autolink", c.info = "auto";
3201
- }
3202
- return e.pos += o.length + 2, !0;
3203
- }
3204
- return !1;
3205
- }
3206
- function $r(e) {
3207
- return /^<a[>\s]/i.test(e);
3208
- }
3209
- function qr(e) {
3210
- return /^<\/a\s*>/i.test(e);
3211
- }
3212
- function Ur(e) {
3213
- const n = e | 32;
3214
- return n >= 97 && n <= 122;
3215
- }
3216
- function Zr(e, n) {
3217
- if (!e.md.options.html) return !1;
3218
- const t = e.posMax, i = e.pos;
3219
- if (e.src.charCodeAt(i) !== 60 || i + 2 >= t) return !1;
3220
- const r = e.src.charCodeAt(i + 1);
3221
- if (r !== 33 && r !== 63 && r !== 47 && !Ur(r)) return !1;
3222
- const o = e.src.slice(i).match(mr);
3223
- if (!o) return !1;
3224
- if (!n) {
3225
- const s = e.push("html_inline", "", 0);
3226
- s.content = o[0], $r(s.content) && e.linkLevel++, qr(s.content) && e.linkLevel--;
3227
- }
3228
- return e.pos += o[0].length, !0;
3229
- }
3230
- var Wr = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Xr = /^&([a-z][a-z0-9]{1,31});/i;
3231
- function Yr(e, n) {
3232
- const t = e.pos, i = e.posMax;
3233
- if (e.src.charCodeAt(t) !== 38 || t + 1 >= i) return !1;
3234
- if (e.src.charCodeAt(t + 1) === 35) {
3235
- const r = e.src.slice(t).match(Wr);
3236
- if (r) {
3237
- if (!n) {
3238
- const o = r[1][0].toLowerCase() === "x" ? parseInt(r[1].slice(1), 16) : parseInt(r[1], 10), s = e.push("text_special", "", 0);
3239
- s.content = xe(o) ? G(o) : G(65533), s.markup = r[0], s.info = "entity";
3240
- }
3241
- return e.pos += r[0].length, !0;
3242
- }
3243
- } else {
3244
- const r = e.src.slice(t).match(Xr);
3245
- if (r) {
3246
- const o = en(r[0]);
3247
- if (o !== r[0]) {
3248
- if (!n) {
3249
- const s = e.push("text_special", "", 0);
3250
- s.content = o, s.markup = r[0], s.info = "entity";
3251
- }
3252
- return e.pos += r[0].length, !0;
3253
- }
3254
- }
3255
- }
3256
- return !1;
3257
- }
3258
- function We(e) {
3259
- const n = {}, t = e.length;
3260
- if (!t) return;
3261
- let i = 0, r = -2;
3262
- const o = [];
3263
- for (let s = 0; s < t; s++) {
3264
- const u = e[s];
3265
- if (o.push(0), (e[i].marker !== u.marker || r !== u.token - 1) && (i = s), r = u.token, u.length = u.length || 0, !u.close) continue;
3266
- n.hasOwnProperty(u.marker) || (n[u.marker] = [
3267
- -1,
3268
- -1,
3269
- -1,
3270
- -1,
3271
- -1,
3272
- -1
3273
- ]);
3274
- const l = n[u.marker][(u.open ? 3 : 0) + u.length % 3];
3275
- let c = i - o[i] - 1, h = c;
3276
- for (; c > l; c -= o[c] + 1) {
3277
- const f = e[c];
3278
- if (f.marker === u.marker && f.open && f.end < 0) {
3279
- let d = !1;
3280
- if ((f.close || u.open) && (f.length + u.length) % 3 === 0 && (f.length % 3 !== 0 || u.length % 3 !== 0) && (d = !0), !d) {
3281
- const p = c > 0 && !e[c - 1].open ? o[c - 1] + 1 : 0;
3282
- o[s] = s - c + p, o[c] = p, u.open = !1, f.end = s, f.close = !1, h = -1, r = -2;
3283
- break;
3284
- }
3285
- }
3286
- }
3287
- h !== -1 && (n[u.marker][(u.open ? 3 : 0) + (u.length || 0) % 3] = h);
3288
- }
3289
- }
3290
- function Kr(e) {
3291
- const n = e.tokens_meta, t = e.tokens_meta.length;
3292
- We(e.delimiters);
3293
- for (let r = 0; r < t; r++) {
3294
- var i;
3295
- const o = (i = n[r]) === null || i === void 0 ? void 0 : i.delimiters;
3296
- o && We(o);
3297
- }
3298
- }
3299
- function Hr(e) {
3300
- let n, t, i = 0;
3301
- const r = e.tokens, o = e.tokens.length;
3302
- for (n = t = 0; n < o; n++)
3303
- r[n].nesting < 0 && i--, r[n].level = i, r[n].nesting > 0 && i++, r[n].type === "text" && n + 1 < o && r[n + 1].type === "text" ? r[n + 1].content = r[n].content + r[n + 1].content : (n !== t && (r[t] = r[n]), t++);
3304
- n !== t && (r.length = t);
3305
- }
3306
- var de = [
3307
- ["text", wr],
3308
- ["linkify", Fr],
3309
- ["newline", yr],
3310
- ["escape", Br],
3311
- ["backticks", zr],
3312
- ["strikethrough", vn.tokenize],
3313
- ["emphasis", Dn.tokenize],
3314
- ["link", Mr],
3315
- ["image", Pr],
3316
- ["autolink", Or],
3317
- ["html_inline", Zr],
3318
- ["entity", Yr]
3319
- ], _e = [
3320
- ["balance_pairs", Kr],
3321
- ["strikethrough", vn.postProcess],
3322
- ["emphasis", Dn.postProcess],
3323
- ["fragments_join", Hr]
3324
- ], wn = class {
3325
- constructor() {
3326
- R(
3327
- this,
3328
- /**
3329
- * {@link Ruler} instance. Keep configuration of inline rules.
3330
- */
3331
- "ruler",
3332
- new te()
3333
- ), R(
3334
- this,
3335
- /**
3336
- * {@link Ruler} instance. Second ruler used for post-processing
3337
- * (e.g. in emphasis-like rules).
3338
- */
3339
- "ruler2",
3340
- new te()
3341
- ), R(this, "State", Cn);
3342
- for (let e = 0; e < de.length; e++) this.ruler.push(de[e][0], de[e][1]);
3343
- for (let e = 0; e < _e.length; e++) this.ruler2.push(_e[e][0], _e[e][1]);
3344
- }
3345
- skipToken(e) {
3346
- const n = e.pos, t = this.ruler.getRules(""), i = t.length, r = e.md.options.maxNesting, o = e.cache;
3347
- if (typeof o[n] < "u") {
3348
- e.pos = o[n];
3349
- return;
3350
- }
3351
- let s = !1;
3352
- if (e.level < r) {
3353
- for (let u = 0; u < i; u++)
3354
- if (e.level++, s = t[u](e, !0), e.level--, s) {
3355
- if (n >= e.pos) throw new Error("inline rule didn't increment state.pos");
3356
- break;
3357
- }
3358
- } else e.pos = e.posMax;
3359
- s || e.pos++, o[n] = e.pos;
3360
- }
3361
- tokenize(e) {
3362
- const n = this.ruler.getRules(""), t = n.length, i = e.posMax, r = e.md.options.maxNesting;
3363
- for (; e.pos < i; ) {
3364
- const o = e.pos;
3365
- let s = !1;
3366
- if (e.level < r) {
3367
- for (let u = 0; u < t; u++)
3368
- if (s = n[u](e, !1), s) {
3369
- if (o >= e.pos) throw new Error("inline rule didn't increment state.pos");
3370
- break;
3371
- }
3372
- }
3373
- if (s) {
3374
- if (e.pos >= i) break;
3375
- continue;
3376
- }
3377
- e.pending += e.src[e.pos++];
3378
- }
3379
- e.pending && e.pushPending();
3380
- }
3381
- /**
3382
- * Process input string and push inline tokens into `outTokens`
3383
- */
3384
- parse(e, n, t, i) {
3385
- const r = new this.State(e, n, t, i);
3386
- this.tokenize(r);
3387
- const o = this.ruler2.getRules(""), s = o.length;
3388
- for (let u = 0; u < s; u++) o[u](r);
3389
- }
3390
- }, Gr = {
3391
- default: {
3392
- options: {
3393
- html: !1,
3394
- xhtmlOut: !1,
3395
- breaks: !1,
3396
- langPrefix: "language-",
3397
- linkify: !1,
3398
- typographer: !1,
3399
- quotes: "“”‘’",
3400
- highlight: null,
3401
- maxNesting: 100
3402
- },
3403
- components: {
3404
- core: {},
3405
- block: {},
3406
- inline: {}
3407
- }
3408
- },
3409
- zero: {
3410
- options: {
3411
- html: !1,
3412
- xhtmlOut: !1,
3413
- breaks: !1,
3414
- langPrefix: "language-",
3415
- linkify: !1,
3416
- typographer: !1,
3417
- quotes: "“”‘’",
3418
- highlight: null,
3419
- maxNesting: 20
3420
- },
3421
- components: {
3422
- core: { rules: [
3423
- "normalize",
3424
- "block",
3425
- "strip_references",
3426
- "inline",
3427
- "text_join"
3428
- ] },
3429
- block: { rules: ["paragraph"] },
3430
- inline: {
3431
- rules: ["text"],
3432
- rules2: ["balance_pairs", "fragments_join"]
3433
- }
3434
- }
3435
- },
3436
- commonmark: {
3437
- options: {
3438
- html: !0,
3439
- xhtmlOut: !0,
3440
- breaks: !1,
3441
- langPrefix: "language-",
3442
- linkify: !1,
3443
- typographer: !1,
3444
- quotes: "“”‘’",
3445
- highlight: null,
3446
- maxNesting: 20
3447
- },
3448
- components: {
3449
- core: { rules: [
3450
- "normalize",
3451
- "block",
3452
- "strip_references",
3453
- "inline",
3454
- "text_join"
3455
- ] },
3456
- block: { rules: [
3457
- "blockquote",
3458
- "code",
3459
- "fence",
3460
- "heading",
3461
- "hr",
3462
- "html_block",
3463
- "lheading",
3464
- "list",
3465
- "reference",
3466
- "paragraph"
3467
- ] },
3468
- inline: {
3469
- rules: [
3470
- "autolink",
3471
- "backticks",
3472
- "emphasis",
3473
- "entity",
3474
- "escape",
3475
- "html_inline",
3476
- "image",
3477
- "link",
3478
- "newline",
3479
- "text"
3480
- ],
3481
- rules2: [
3482
- "balance_pairs",
3483
- "emphasis",
3484
- "fragments_join"
3485
- ]
3486
- }
3487
- }
3488
- }
3489
- }, Vr = /^(vbscript|javascript|file|data):/, Qr = /^data:image\/(gif|png|jpeg|webp);/, Xe = [
3490
- "http:",
3491
- "https:",
3492
- "mailto:"
3493
- ], O = class {
3494
- /**
3495
- * Link validation function. CommonMark allows too much in links. By default
3496
- * we disable `javascript:`, `vbscript:`, `file:` schemas, and almost all `data:...` schemas
3497
- * except some embedded image types.
3498
- *
3499
- * You can change this behaviour:
3500
- *
3501
- * @example
3502
- * ```javascript
3503
- * import MarkdownIt from 'markdown-it'
3504
- * const md = new MarkdownIt()
3505
- *
3506
- * // enable everything
3507
- * md.validateLink = function () { return true; }
3508
- * ```
3509
- */
3510
- validateLink(e) {
3511
- const n = e.trim().toLowerCase();
3512
- return Vr.test(n) ? Qr.test(n) : !0;
3513
- }
3514
- /**
3515
- * Function used to encode link url to a machine-readable format,
3516
- * which includes url-encoding, punycode, etc.
3517
- */
3518
- normalizeLink(e) {
3519
- const n = ke(e, !0);
3520
- if (n.hostname && (!n.protocol || Xe.indexOf(n.protocol) >= 0))
3521
- try {
3522
- n.hostname = Ie.toASCII(n.hostname);
3523
- } catch {
3524
- }
3525
- return n.auth && (n.auth = $(n.auth)), n.hostname && (n.hostname = $(n.hostname)), n.pathname && (n.pathname = $(n.pathname)), n.search && (n.search = $(n.search)), n.hash && (n.hash = $(n.hash)), ge(n);
3526
- }
3527
- /**
3528
- * Function used to decode link url to a human-readable format`
3529
- */
3530
- normalizeLinkText(e) {
3531
- const n = ke(e, !0);
3532
- if (n.hostname && (!n.protocol || Xe.indexOf(n.protocol) >= 0))
3533
- try {
3534
- n.hostname = Ie.toUnicode(n.hostname);
3535
- } catch {
3536
- }
3537
- return Y(ge(n), Y.defaultChars + "%");
3538
- }
3539
- constructor(...e) {
3540
- R(
3541
- this,
3542
- /**
3543
- * Instance of {@link ParserInline}. You may need it to add new rules when
3544
- * writing plugins. For simple rules control use {@link MarkdownIt.disable}
3545
- * and {@link MarkdownIt.enable}.
3546
- */
3547
- "inline",
3548
- new wn()
3549
- ), R(
3550
- this,
3551
- /**
3552
- * Instance of {@link ParserBlock}. You may need it to add new rules when
3553
- * writing plugins. For simple rules control use {@link MarkdownIt.disable}
3554
- * and {@link MarkdownIt.enable}.
3555
- */
3556
- "block",
3557
- new xn()
3558
- ), R(
3559
- this,
3560
- /**
3561
- * Instance of {@link ParserCore} chain executor. You may need it to add new
3562
- * rules when writing plugins. For simple rules control use
3563
- * {@link MarkdownIt.disable} and {@link MarkdownIt.enable}.
3564
- */
3565
- "core",
3566
- new kn()
3567
- ), R(
3568
- this,
3569
- /**
3570
- * Instance of {@link Renderer}. Use it to modify output look. Or to add rendering
3571
- * rules for new token types, generated by plugins.
3572
- *
3573
- * See {@link Renderer} docs and
3574
- * [source code](https://github.com/markdown-it/markdown-it/blob/master/src/renderer.ts).
3575
- *
3576
- * @example
3577
- * ```javascript
3578
- * import MarkdownIt from 'markdown-it'
3579
- * const md = new MarkdownIt()
3580
- *
3581
- * function myToken(tokens, idx, options, env, self) {
3582
- * //...
3583
- * return result;
3584
- * };
3585
- *
3586
- * md.renderer.rules['my_token'] = myToken
3587
- * ```
3588
- */
3589
- "renderer",
3590
- new dn()
3591
- ), R(
3592
- this,
3593
- /**
3594
- * [linkify-it](https://github.com/markdown-it/linkify-it) instance.
3595
- * Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/src/rules_core/linkify.ts)
3596
- * rule.
3597
- */
3598
- "linkify",
3599
- new lt()
3600
- ), R(
3601
- this,
3602
- /**
3603
- * Assorted utility functions, useful to write plugins. See details
3604
- * [here](https://github.com/markdown-it/markdown-it/blob/master/src/common/utils.ts).
3605
- */
3606
- "utils",
3607
- bt
3608
- ), R(
3609
- this,
3610
- /**
3611
- * Link components parser functions, useful to write plugins. See details
3612
- * [here](https://github.com/markdown-it/markdown-it/blob/master/src/helpers).
3613
- */
3614
- "helpers",
3615
- Object.assign({}, Jt)
3616
- );
3617
- const [n, t] = e;
3618
- typeof n == "string" ? (this.configure(n), t && this.set(t)) : (this.configure("default"), this.set(n || {}));
3619
- }
3620
- /**
3621
- * Set parser options (in the same format as in constructor). Probably, you
3622
- * will never need it, but you can change options after constructor call.
3623
- *
3624
- * __Note:__ To achieve the best possible performance, don't modify a
3625
- * `markdown-it` instance options on the fly. If you need multiple configurations
3626
- * it's best to create multiple instances and initialize each with separate
3627
- * config.
3628
- *
3629
- * @example
3630
- * ```javascript
3631
- * import MarkdownIt from 'markdown-it'
3632
- *
3633
- * const md = new MarkdownIt()
3634
- * .set({ html: true, breaks: true })
3635
- * .set({ typographer: true })
3636
- * ```
3637
- */
3638
- set(e) {
3639
- return Object.assign(this.options, e), this;
3640
- }
3641
- /**
3642
- * Batch load of all options and compenent settings. This is internal method,
3643
- * and you probably will not need it. But if you will - see available presets
3644
- * and data structure [here](https://github.com/markdown-it/markdown-it/tree/master/src/presets)
3645
- *
3646
- * We strongly recommend to use presets instead of direct config loads. That
3647
- * will give better compatibility with next versions.
3648
- */
3649
- configure(e) {
3650
- let n;
3651
- if (typeof e == "string") {
3652
- const r = e;
3653
- if (n = Gr[r], !n) throw new Error(`Wrong 'markdown-it' preset "${r}", check name`);
3654
- } else n = e;
3655
- if (!n) throw new Error("Wrong `markdown-it` preset, can't be empty");
3656
- n.options && (this.options = { ...n.options });
3657
- const t = n.components;
3658
- if (t) {
3659
- var i;
3660
- [
3661
- "core",
3662
- "block",
3663
- "inline"
3664
- ].forEach((o) => {
3665
- var s;
3666
- const u = (s = t[o]) === null || s === void 0 ? void 0 : s.rules;
3667
- u && this[o].ruler.enableOnly(u);
3668
- });
3669
- const r = (i = t.inline) === null || i === void 0 ? void 0 : i.rules2;
3670
- r && this.inline.ruler2.enableOnly(r);
3671
- }
3672
- return this;
3673
- }
3674
- /**
3675
- * Enable list or rules. It will automatically find appropriate components,
3676
- * containing rules with given names. If rule not found, and `ignoreInvalid`
3677
- * not set - throws exception.
3678
- *
3679
- * @example
3680
- * ```javascript
3681
- * import MarkdownIt from 'markdown-it'
3682
- *
3683
- * const md = new MarkdownIt()
3684
- * .enable(['sub', 'sup'])
3685
- * .disable('smartquotes')
3686
- * ```
3687
- */
3688
- enable(e, n = !1) {
3689
- let t = [];
3690
- Array.isArray(e) || (e = [e]), [
3691
- "core",
3692
- "block",
3693
- "inline"
3694
- ].forEach((r) => {
3695
- t = t.concat(this[r].ruler.enable(e, !0));
3696
- }), t = t.concat(this.inline.ruler2.enable(e, !0));
3697
- const i = e.filter((r) => t.indexOf(r) < 0);
3698
- if (i.length && !n) throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${i}`);
3699
- return this;
3700
- }
3701
- /**
3702
- * The same as {@link MarkdownIt.enable}, but turn specified rules off.
3703
- */
3704
- disable(e, n = !1) {
3705
- let t = [];
3706
- Array.isArray(e) || (e = [e]), [
3707
- "core",
3708
- "block",
3709
- "inline"
3710
- ].forEach((r) => {
3711
- t = t.concat(this[r].ruler.disable(e, !0));
3712
- }), t = t.concat(this.inline.ruler2.disable(e, !0));
3713
- const i = e.filter((r) => t.indexOf(r) < 0);
3714
- if (i.length && !n) throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${i}`);
3715
- return this;
3716
- }
3717
- /**
3718
- * Load specified plugin with given params into current parser instance.
3719
- * It's just a sugar to call `plugin(md, params)` with curring.
3720
- *
3721
- * @example
3722
- * ```javascript
3723
- * import MarkdownIt from 'markdown-it'
3724
- * import iterator from 'markdown-it-for-inline'
3725
- *
3726
- * const md = new MarkdownIt()
3727
- * .use(iterator, 'foo_replace', 'text', function (tokens, idx) {
3728
- * tokens[idx].content = tokens[idx].content.replace(/foo/g, 'bar')
3729
- * })
3730
- * ```
3731
- */
3732
- use(e, ...n) {
3733
- return e.apply(e, [this, ...n]), this;
3734
- }
3735
- /**
3736
- * Parse input string and return list of block tokens (special token type
3737
- * "inline" will contain list of inline tokens). You should not call this
3738
- * method directly, until you write custom renderer (for example, to produce
3739
- * AST).
3740
- *
3741
- * `env` is used to pass data between "distributed" rules and return additional
3742
- * metadata like reference info, needed for the renderer. It also can be used to
3743
- * inject data in specific cases. Usually, you will be ok to pass `{}`,
3744
- * and then pass updated object to renderer.
3745
- */
3746
- parse(e, n) {
3747
- if (typeof e != "string") throw new Error("Input data should be a String");
3748
- const t = new this.core.State(e, this, n);
3749
- return this.core.process(t), t.tokens;
3750
- }
3751
- /**
3752
- * Render markdown string into html. It does all magic for you :).
3753
- *
3754
- * `env` can be used to inject additional metadata (`{}` by default).
3755
- * But you will not need it with high probability. See also comment
3756
- * in {@link MarkdownIt.parse}.
3757
- */
3758
- render(e, n = {}) {
3759
- return this.renderer.render(this.parse(e, n), this.options, n);
3760
- }
3761
- /**
3762
- * The same as {@link MarkdownIt.parse} but skip all block rules. It returns
3763
- * the block tokens list with the single `inline` element, containing parsed
3764
- * inline tokens in `children` property. Also updates `env` object.
3765
- */
3766
- parseInline(e, n) {
3767
- const t = new this.core.State(e, this, n);
3768
- return t.inlineMode = !0, this.core.process(t), t.tokens;
3769
- }
3770
- /**
3771
- * Similar to {@link MarkdownIt.render} but for single paragraph content.
3772
- * Result will NOT be wrapped into `<p>` tags.
3773
- */
3774
- renderInline(e, n = {}) {
3775
- return this.renderer.render(this.parseInline(e, n), this.options, n);
3776
- }
3777
- };
3778
- R(O, "Token", W);
3779
- R(O, "Ruler", te);
3780
- R(O, "Renderer", dn);
3781
- R(O, "ParserCore", kn);
3782
- R(O, "StateCore", _n);
3783
- R(O, "ParserBlock", xn);
3784
- R(O, "StateBlock", mn);
3785
- R(O, "ParserInline", wn);
3786
- R(O, "StateInline", Cn);
3787
- var ni = hn(O);
3788
- export {
3789
- ni as default
3790
- };