@shriyanss/js-recon 1.1.0-beta.1 → 1.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/.github/workflows/{prettier.yaml → build-and-prettify.yaml} +23 -2
  2. package/.github/workflows/npm-publish.yml +2 -2
  3. package/CHANGELOG.md +10 -0
  4. package/README.md +1 -0
  5. package/build/api_gateway/genReq.js +0 -3
  6. package/build/api_gateway/genReq.js.map +1 -1
  7. package/build/api_gateway/index.js +5 -7
  8. package/build/api_gateway/index.js.map +1 -1
  9. package/build/endpoints/gen_report/gen_markdown.js.map +1 -1
  10. package/build/endpoints/index.js.map +1 -1
  11. package/build/endpoints/next_js/client_jsonParse.js +4 -1
  12. package/build/endpoints/next_js/client_jsonParse.js.map +1 -1
  13. package/build/endpoints/next_js/client_subsequentRequests.js +1 -1
  14. package/build/endpoints/next_js/client_subsequentRequests.js.map +1 -1
  15. package/build/globalConfig.js +1 -1
  16. package/build/lazyLoad/globals.js +0 -3
  17. package/build/lazyLoad/globals.js.map +1 -1
  18. package/build/lazyLoad/index.js +0 -1
  19. package/build/lazyLoad/index.js.map +1 -1
  20. package/build/lazyLoad/next_js/next_GetJSScript.js.map +1 -1
  21. package/build/lazyLoad/next_js/next_GetLazyResources.js.map +1 -1
  22. package/build/lazyLoad/next_js/next_SubsequentRequests.js.map +1 -1
  23. package/build/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js.map +1 -1
  24. package/build/lazyLoad/svelte/svelte_stringAnalysisJSFiles.js.map +1 -1
  25. package/build/map/next_js/getFetchInstances.js +4 -1
  26. package/build/map/next_js/getFetchInstances.js.map +1 -1
  27. package/build/map/next_js/getWebpackConnections.js +6 -3
  28. package/build/map/next_js/getWebpackConnections.js.map +1 -1
  29. package/build/map/next_js/resolveFetch.js.map +1 -1
  30. package/build/strings/index.js +4 -1
  31. package/build/strings/index.js.map +1 -1
  32. package/build/techDetect/index.js +6 -1
  33. package/build/techDetect/index.js.map +1 -1
  34. package/build/utility/makeReq.js +2 -2
  35. package/build/utility/makeReq.js.map +1 -1
  36. package/docs/CNAME +1 -0
  37. package/package.json +1 -1
  38. package/.api_gateway_config.json +0 -1
  39. package/.resp_cache.json +0 -1
  40. package/.vscode/launch.json +0 -27
  41. package/endpoints.json +0 -77
  42. package/extracted_urls-openapi.json +0 -225
  43. package/extracted_urls-swagger.json +0 -225
  44. package/extracted_urls.json +0 -47
  45. package/extracted_urls.txt +0 -296
  46. package/mapped.json +0 -3413
  47. package/output/ss0x00.com/_next/data/k7xKVnxmboK4SktY2dZWt/index.json +0 -971
  48. package/output/ss0x00.com/_next/static/chunks/12.7e6d2ac6e1808fc2.js +0 -247
  49. package/output/ss0x00.com/_next/static/chunks/128.160aa801ef0445bc.js +0 -1074
  50. package/output/ss0x00.com/_next/static/chunks/132.55df84f7707fc278.js +0 -102
  51. package/output/ss0x00.com/_next/static/chunks/142.77038c55d9ec10ba.js +0 -96
  52. package/output/ss0x00.com/_next/static/chunks/215.321479e91d330bfa.js +0 -228
  53. package/output/ss0x00.com/_next/static/chunks/229.097c396d86b4a882.js +0 -458
  54. package/output/ss0x00.com/_next/static/chunks/257.5fd052aa4ef06ef9.js +0 -1327
  55. package/output/ss0x00.com/_next/static/chunks/268.72cb3779f66db70b.js +0 -10520
  56. package/output/ss0x00.com/_next/static/chunks/320.57d528b0e9bf86f0.js +0 -186
  57. package/output/ss0x00.com/_next/static/chunks/325.302a44b604c35f17.js +0 -88
  58. package/output/ss0x00.com/_next/static/chunks/328.e4a0307a4fddf318.js +0 -248
  59. package/output/ss0x00.com/_next/static/chunks/432.3621f17504ef18f2.js +0 -443
  60. package/output/ss0x00.com/_next/static/chunks/44.e90dd963003a3d43.js +0 -1094
  61. package/output/ss0x00.com/_next/static/chunks/442.8c054f100f9e5e50.js +0 -1082
  62. package/output/ss0x00.com/_next/static/chunks/460.f8db9a5142598e2c.js +0 -466
  63. package/output/ss0x00.com/_next/static/chunks/487.05ca55420459c002.js +0 -78
  64. package/output/ss0x00.com/_next/static/chunks/567.1909a6b0a920114b.js +0 -1374
  65. package/output/ss0x00.com/_next/static/chunks/586.802fc9214d87fb29.js +0 -752
  66. package/output/ss0x00.com/_next/static/chunks/620.a2a3a6b94d30a4c8.js +0 -1037
  67. package/output/ss0x00.com/_next/static/chunks/642.6b3e487c9604cbb8.js +0 -1628
  68. package/output/ss0x00.com/_next/static/chunks/673.e5d77887e5c6a68c.js +0 -1045
  69. package/output/ss0x00.com/_next/static/chunks/684.8b8e52baca70524b.js +0 -96
  70. package/output/ss0x00.com/_next/static/chunks/686.79480519e5ccfb77.js +0 -296
  71. package/output/ss0x00.com/_next/static/chunks/756.7a3878a2e6765be7.js +0 -504
  72. package/output/ss0x00.com/_next/static/chunks/761.7bea7516c5d22b2a.js +0 -1485
  73. package/output/ss0x00.com/_next/static/chunks/794.e079ef369b41a3c5.js +0 -1350
  74. package/output/ss0x00.com/_next/static/chunks/826.31ba213e1d023c68.js +0 -1031
  75. package/output/ss0x00.com/_next/static/chunks/847.d8397a73efc81848.js +0 -1068
  76. package/output/ss0x00.com/_next/static/chunks/848.5feaeee1e2624aea.js +0 -132
  77. package/output/ss0x00.com/_next/static/chunks/850.ecc7c3c3d787ee03.js +0 -1472
  78. package/output/ss0x00.com/_next/static/chunks/853.50b9eb60b7d0e83c.js +0 -1472
  79. package/output/ss0x00.com/_next/static/chunks/856.7a7bb6c3c7bfc2ba.js +0 -1320
  80. package/output/ss0x00.com/_next/static/chunks/859.df4bd45c03a65f53.js +0 -1306
  81. package/output/ss0x00.com/_next/static/chunks/867.e8633955a147c978.js +0 -541
  82. package/output/ss0x00.com/_next/static/chunks/921.c3123f20a4c8d53c.js +0 -96
  83. package/output/ss0x00.com/_next/static/chunks/932.25cb421c466c99cb.js +0 -999
  84. package/output/ss0x00.com/_next/static/chunks/framework-64ad27b21261a9ce.js +0 -9189
  85. package/output/ss0x00.com/_next/static/chunks/main-710ab85aa9a8f10d.js +0 -6583
  86. package/output/ss0x00.com/_next/static/chunks/pages/5D-af5a23529ce3c337.js +0 -486
  87. package/output/ss0x00.com/_next/static/chunks/pages/_app-c449865c8af1faa0.js +0 -39
  88. package/output/ss0x00.com/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js +0 -6383
  89. package/output/ss0x00.com/_next/static/chunks/webpack-efff35ee26971294.js +0 -271
  90. package/output/ss0x00.com/_next/static/k7xKVnxmboK4SktY2dZWt/_buildManifest.js +0 -8
  91. package/output/ss0x00.com/_next/static/k7xKVnxmboK4SktY2dZWt/_ssgManifest.js +0 -3
  92. package/output/ss0x00.com/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js +0 -82
  93. package/strings.json +0 -7407
@@ -1,1320 +0,0 @@
1
- // JS Source: https://ss0x00.com/_next/static/chunks/856.7a7bb6c3c7bfc2ba.js
2
- (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
3
- [856],
4
- {
5
- 856: function (e, t, r) {
6
- "use strict";
7
- (r.r(t),
8
- r.d(t, {
9
- default: function () {
10
- return s;
11
- },
12
- }));
13
- var n = r(5893);
14
- r(7294);
15
- var l = r(5576),
16
- i = r(3967),
17
- o = r.n(i),
18
- a = r(9754),
19
- c = r(6319);
20
- function s(e) {
21
- let {
22
- type: t,
23
- elementId: r,
24
- colors: i,
25
- quote: s,
26
- name: d,
27
- title: u,
28
- styles: p = {},
29
- } = e;
30
- return (0, n.jsx)(c.Z, {
31
- type: t,
32
- elementId: r,
33
- colors: i,
34
- styles: p.self,
35
- children: (0, n.jsxs)("blockquote", {
36
- children: [
37
- s &&
38
- (0, n.jsx)(l.ZP, {
39
- options: { forceBlock: !0, forceWrapper: !0 },
40
- className: o()(
41
- "sb-markdown",
42
- "text-3xl",
43
- "sm:text-5xl",
44
- "sm:leading-tight",
45
- p.quote ? (0, a.G)(p.quote) : null,
46
- ),
47
- children: s,
48
- }),
49
- (d || u) &&
50
- (0, n.jsxs)("footer", {
51
- className: "mt-8 sm:mt-10",
52
- children: [
53
- d &&
54
- (0, n.jsx)("span", {
55
- className: o()(
56
- "block",
57
- "text-lg",
58
- "sm:text-xl",
59
- p.name ? (0, a.G)(p.name) : null,
60
- ),
61
- children: d,
62
- }),
63
- u &&
64
- (0, n.jsx)("span", {
65
- className: o()(
66
- "block",
67
- "text-lg",
68
- "sm:text-xl",
69
- p.title ? (0, a.G)(p.title) : null,
70
- ),
71
- children: u,
72
- }),
73
- ],
74
- }),
75
- ],
76
- }),
77
- });
78
- }
79
- },
80
- 6319: function (e, t, r) {
81
- "use strict";
82
- r.d(t, {
83
- Z: function () {
84
- return a;
85
- },
86
- });
87
- var n = r(5893);
88
- r(7294);
89
- var l = r(3967),
90
- i = r.n(l),
91
- o = r(9754);
92
- function a(e) {
93
- let { backgroundSize: t = "full", ...r } = e;
94
- return "inset" === t
95
- ? (0, n.jsx)(c, { ...r })
96
- : (0, n.jsx)(s, { ...r });
97
- }
98
- function c(e) {
99
- var t, r, l, a;
100
- let {
101
- type: c,
102
- elementId: s,
103
- colors: d = "colors-f",
104
- styles: u = {},
105
- children: p,
106
- } = e,
107
- f = c && c.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
108
- return (0, n.jsx)("div", {
109
- id: s || null,
110
- className: i()(
111
- "sb-component",
112
- "sb-component-section",
113
- f && "sb-component-".concat(f),
114
- "flex",
115
- (0, o.G)({
116
- justifyContent:
117
- null !== (t = u.justifyContent) && void 0 !== t ? t : "center",
118
- }),
119
- u.margin,
120
- ),
121
- children: (0, n.jsx)("div", {
122
- className: i()(
123
- d,
124
- "flex",
125
- "flex-col",
126
- "justify-center",
127
- "relative",
128
- "w-full",
129
- (0, o.G)({
130
- width: null !== (r = u.width) && void 0 !== r ? r : "wide",
131
- }),
132
- (0, o.G)({
133
- height: null !== (l = u.height) && void 0 !== l ? l : "auto",
134
- }),
135
- null !== (a = u.padding) && void 0 !== a ? a : "py-12 px-4",
136
- u.borderColor,
137
- u.borderStyle ? (0, o.G)({ borderStyle: u.borderStyle }) : null,
138
- u.borderRadius
139
- ? (0, o.G)({ borderRadius: u.borderRadius })
140
- : null,
141
- ),
142
- style: {
143
- borderWidth: u.borderWidth
144
- ? "".concat(u.borderWidth, "px")
145
- : null,
146
- },
147
- children: (0, n.jsx)("div", {
148
- className: "relative w-full",
149
- children: p,
150
- }),
151
- }),
152
- });
153
- }
154
- function s(e) {
155
- var t, r, l, a;
156
- let {
157
- type: c,
158
- elementId: s,
159
- colors: d = "colors-f",
160
- styles: u = {},
161
- children: p,
162
- } = e,
163
- f = c && c.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
164
- return (0, n.jsx)("div", {
165
- id: s || null,
166
- className: i()(
167
- "sb-component",
168
- "sb-component-section",
169
- f && "sb-component-".concat(f),
170
- d,
171
- "flex",
172
- "flex-col",
173
- "justify-center",
174
- (0, o.G)({
175
- height: null !== (t = u.height) && void 0 !== t ? t : "auto",
176
- }),
177
- u.margin,
178
- null !== (r = u.padding) && void 0 !== r ? r : "py-12 px-4",
179
- u.borderColor,
180
- u.borderStyle ? (0, o.G)({ borderStyle: u.borderStyle }) : null,
181
- u.borderRadius ? (0, o.G)({ borderRadius: u.borderRadius }) : null,
182
- ),
183
- style: {
184
- borderWidth: u.borderWidth ? "".concat(u.borderWidth, "px") : null,
185
- },
186
- children: (0, n.jsx)("div", {
187
- className: i()(
188
- "flex",
189
- "w-full",
190
- (0, o.G)({
191
- justifyContent:
192
- null !== (l = u.justifyContent) && void 0 !== l
193
- ? l
194
- : "center",
195
- }),
196
- ),
197
- children: (0, n.jsx)("div", {
198
- className: i()(
199
- "relative",
200
- "w-full",
201
- (0, o.G)({
202
- width: null !== (a = u.width) && void 0 !== a ? a : "wide",
203
- }),
204
- ),
205
- children: p,
206
- }),
207
- }),
208
- });
209
- }
210
- },
211
- 9754: function (e, t, r) {
212
- "use strict";
213
- r.d(t, {
214
- G: function () {
215
- return l;
216
- },
217
- });
218
- let n = {
219
- alignItems: {
220
- "flex-start": "items-start",
221
- "flex-end": "items-end",
222
- center: "items-center",
223
- },
224
- backgroundPosition: {
225
- bottom: "bg-bottom",
226
- center: "bg-center",
227
- left: "bg-left",
228
- "left-bottom": "bg-left-bottom",
229
- "left-top": "bg-left-top",
230
- right: "bg-right",
231
- "right-bottom": "bg-right-bottom",
232
- "right-top": "bg-right-top",
233
- top: "bg-top",
234
- },
235
- backgroundRepeat: {
236
- repeat: "bg-repeat",
237
- "repeat-x": "bg-repeat-x",
238
- "repeat-y": "bg-repeat-y",
239
- "no-repeat": "bg-no-repeat",
240
- },
241
- backgroundSize: {
242
- auto: "bg-auto",
243
- cover: "bg-cover",
244
- contain: "bg-contain",
245
- },
246
- borderRadius: {
247
- none: "rounded-none",
248
- "xx-small": "rounded-sm",
249
- "x-small": "rounded",
250
- small: "rounded-md",
251
- medium: "rounded-lg",
252
- large: "rounded-xl",
253
- "x-large": "rounded-2xl",
254
- "xx-large": "rounded-3xl",
255
- full: "rounded-full",
256
- },
257
- borderStyle: {
258
- none: "border-none",
259
- solid: "border-solid",
260
- dashed: "border-dashed",
261
- dotted: "border-dotted",
262
- double: "border-double",
263
- },
264
- fontStyle: { italic: "italic" },
265
- fontWeight: {
266
- 400: "font-normal",
267
- 500: "font-medium",
268
- 700: "font-bold",
269
- },
270
- height: { auto: "min-h-0", screen: "min-h-screen" },
271
- justifyContent: {
272
- "flex-start": "justify-start",
273
- "flex-end": "justify-end",
274
- center: "justify-center",
275
- },
276
- margin: function (e) {
277
- return Array.isArray(e)
278
- ? e.join(" ")
279
- : (console.warn(
280
- 'cannot convert "margin" style field value to class name',
281
- ),
282
- "");
283
- },
284
- padding: function (e) {
285
- return Array.isArray(e)
286
- ? e.join(" ")
287
- : (console.warn(
288
- 'cannot convert "padding" style field value to class name',
289
- ),
290
- "");
291
- },
292
- textAlign: {
293
- left: "text-left",
294
- center: "text-center",
295
- right: "text-right",
296
- justify: "text-justify",
297
- },
298
- textDecoration: {
299
- underline: "underline",
300
- "line-through": "line-through",
301
- },
302
- width: { narrow: "max-w-5xl", wide: "max-w-7xl", full: "max-w-full" },
303
- };
304
- function l(e) {
305
- return Object.entries(e)
306
- .map((e) => {
307
- let [t, r] = e;
308
- return t in n
309
- ? "function" == typeof n[t]
310
- ? n[t](r)
311
- : r in n[t]
312
- ? n[t][r]
313
- : void 0
314
- : r;
315
- })
316
- .join(" ");
317
- }
318
- },
319
- 3967: function (e, t) {
320
- var r;
321
- !(function () {
322
- "use strict";
323
- var n = {}.hasOwnProperty;
324
- function l() {
325
- for (var e = "", t = 0; t < arguments.length; t++) {
326
- var r = arguments[t];
327
- r &&
328
- (e = i(
329
- e,
330
- (function (e) {
331
- if ("string" == typeof e || "number" == typeof e) return e;
332
- if ("object" != typeof e) return "";
333
- if (Array.isArray(e)) return l.apply(null, e);
334
- if (
335
- e.toString !== Object.prototype.toString &&
336
- !e.toString.toString().includes("[native code]")
337
- )
338
- return e.toString();
339
- var t = "";
340
- for (var r in e) n.call(e, r) && e[r] && (t = i(t, r));
341
- return t;
342
- })(r),
343
- ));
344
- }
345
- return e;
346
- }
347
- function i(e, t) {
348
- return t ? (e ? e + " " + t : e + t) : e;
349
- }
350
- e.exports
351
- ? ((l.default = l), (e.exports = l))
352
- : void 0 !==
353
- (r = function () {
354
- return l;
355
- }.apply(t, [])) && (e.exports = r);
356
- })();
357
- },
358
- 5576: function (e, t, r) {
359
- "use strict";
360
- var n,
361
- l,
362
- i,
363
- o,
364
- a = r(7294);
365
- function c() {
366
- return (c = Object.assign
367
- ? Object.assign.bind()
368
- : function (e) {
369
- for (var t = 1; t < arguments.length; t++) {
370
- var r = arguments[t];
371
- for (var n in r)
372
- Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
373
- }
374
- return e;
375
- }).apply(this, arguments);
376
- }
377
- let s = ["children", "options"];
378
- (((n = i || (i = {})).blockQuote = "0"),
379
- (n.breakLine = "1"),
380
- (n.breakThematic = "2"),
381
- (n.codeBlock = "3"),
382
- (n.codeFenced = "4"),
383
- (n.codeInline = "5"),
384
- (n.footnote = "6"),
385
- (n.footnoteReference = "7"),
386
- (n.gfmTask = "8"),
387
- (n.heading = "9"),
388
- (n.headingSetext = "10"),
389
- (n.htmlBlock = "11"),
390
- (n.htmlComment = "12"),
391
- (n.htmlSelfClosing = "13"),
392
- (n.image = "14"),
393
- (n.link = "15"),
394
- (n.linkAngleBraceStyleDetector = "16"),
395
- (n.linkBareUrlDetector = "17"),
396
- (n.linkMailtoDetector = "18"),
397
- (n.newlineCoalescer = "19"),
398
- (n.orderedList = "20"),
399
- (n.paragraph = "21"),
400
- (n.ref = "22"),
401
- (n.refImage = "23"),
402
- (n.refLink = "24"),
403
- (n.table = "25"),
404
- (n.tableSeparator = "26"),
405
- (n.text = "27"),
406
- (n.textBolded = "28"),
407
- (n.textEmphasized = "29"),
408
- (n.textEscaped = "30"),
409
- (n.textMarked = "31"),
410
- (n.textStrikethroughed = "32"),
411
- (n.unorderedList = "33"),
412
- ((l = o || (o = {}))[(l.MAX = 0)] = "MAX"),
413
- (l[(l.HIGH = 1)] = "HIGH"),
414
- (l[(l.MED = 2)] = "MED"),
415
- (l[(l.LOW = 3)] = "LOW"),
416
- (l[(l.MIN = 4)] = "MIN"));
417
- let d = [
418
- "allowFullScreen",
419
- "allowTransparency",
420
- "autoComplete",
421
- "autoFocus",
422
- "autoPlay",
423
- "cellPadding",
424
- "cellSpacing",
425
- "charSet",
426
- "className",
427
- "classId",
428
- "colSpan",
429
- "contentEditable",
430
- "contextMenu",
431
- "crossOrigin",
432
- "encType",
433
- "formAction",
434
- "formEncType",
435
- "formMethod",
436
- "formNoValidate",
437
- "formTarget",
438
- "frameBorder",
439
- "hrefLang",
440
- "inputMode",
441
- "keyParams",
442
- "keyType",
443
- "marginHeight",
444
- "marginWidth",
445
- "maxLength",
446
- "mediaGroup",
447
- "minLength",
448
- "noValidate",
449
- "radioGroup",
450
- "readOnly",
451
- "rowSpan",
452
- "spellCheck",
453
- "srcDoc",
454
- "srcLang",
455
- "srcSet",
456
- "tabIndex",
457
- "useMap",
458
- ].reduce((e, t) => ((e[t.toLowerCase()] = t), e), { for: "htmlFor" }),
459
- u = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: "\xa0", quot: "“" },
460
- p = ["style", "script"],
461
- f =
462
- /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,
463
- h = /mailto:/i,
464
- m = /\n{2,}$/,
465
- g = /^(\s*>[\s\S]*?)(?=\n{2,})/,
466
- y = /^ *> ?/gm,
467
- x = /^ {2,}\n/,
468
- b = /^(?:( *[-*_])){3,} *(?:\n *)+\n/,
469
- k =
470
- /^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,
471
- v = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,
472
- j = /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,
473
- w = /^(?:\n *)*\n/,
474
- S = /\r\n?/g,
475
- $ = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,
476
- C = /^\[\^([^\]]+)]/,
477
- E = /\f/g,
478
- A = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,
479
- R = /^\s*?\[(x|\s)\]/,
480
- N = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,
481
- O = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,
482
- G = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,
483
- L =
484
- /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,
485
- z = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,
486
- T = /^<!--[\s\S]*?(?:-->)/,
487
- I = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/,
488
- M =
489
- /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,
490
- W = /^\{.*\}$/,
491
- P = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,
492
- Z = /^<([^ >]+@[^ >]+)>/,
493
- _ = /^<([^ >]+:\/[^ >]+)>/,
494
- B = /-([a-z])?/gi,
495
- U = /^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,
496
- D = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,
497
- H = /^!\[([^\]]*)\] ?\[([^\]]*)\]/,
498
- q = /^\[([^\]]*)\] ?\[([^\]]*)\]/,
499
- F = /(\[|\])/g,
500
- V = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,
501
- X = /\t/g,
502
- Q = /(^ *\||\| *$)/g,
503
- J = /^ *:-+: *$/,
504
- K = /^ *:-+ *$/,
505
- Y = /^ *-+: *$/,
506
- ee =
507
- "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",
508
- et = RegExp(`^([*_])\\1${ee}\\1\\1(?!\\1)`),
509
- er = RegExp(`^([*_])${ee}\\1(?!\\1|\\w)`),
510
- en = RegExp(`^==${ee}==`),
511
- el = RegExp(`^~~${ee}~~`),
512
- ei = /^\\([^0-9A-Za-z\s])/,
513
- eo =
514
- /^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,
515
- ea = /^\n+/,
516
- ec = /^([ \t]*)/,
517
- es = /\\([^\\])/g,
518
- ed = / *\n+$/,
519
- eu = /(?:^|\n)( *)$/,
520
- ep = "(?:\\d+\\.)",
521
- ef = "(?:[*+-])";
522
- function eh(e) {
523
- return "( *)(" + (1 === e ? ep : ef) + ") +";
524
- }
525
- let em = eh(1),
526
- eg = eh(2);
527
- function ey(e) {
528
- return RegExp("^" + (1 === e ? em : eg));
529
- }
530
- let ex = ey(1),
531
- eb = ey(2);
532
- function ek(e) {
533
- return RegExp(
534
- "^" +
535
- (1 === e ? em : eg) +
536
- "[^\\n]*(?:\\n(?!\\1" +
537
- (1 === e ? ep : ef) +
538
- " )[^\\n]*)*(\\n|$)",
539
- "gm",
540
- );
541
- }
542
- let ev = ek(1),
543
- ej = ek(2);
544
- function ew(e) {
545
- let t = 1 === e ? ep : ef;
546
- return RegExp(
547
- "^( *)(" +
548
- t +
549
- ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" +
550
- t +
551
- " (?!" +
552
- t +
553
- " ))\\n*|\\s*\\n*$)",
554
- );
555
- }
556
- let eS = ew(1),
557
- e$ = ew(2);
558
- function eC(e, t) {
559
- let r = 1 === t,
560
- n = r ? eS : e$,
561
- l = r ? ev : ej,
562
- i = r ? ex : eb;
563
- return {
564
- match(e, t, r) {
565
- let l = eu.exec(r);
566
- return l && (t.list || (!t.inline && !t.simple))
567
- ? n.exec((e = l[1] + e))
568
- : null;
569
- },
570
- order: 1,
571
- parse(e, t, n) {
572
- let o = r ? +e[2] : void 0,
573
- a = e[0].replace(m, "\n").match(l),
574
- c = !1;
575
- return {
576
- items: a.map(function (e, r) {
577
- let l;
578
- let o = RegExp("^ {1," + i.exec(e)[0].length + "}", "gm"),
579
- s = e.replace(o, "").replace(i, ""),
580
- d = r === a.length - 1,
581
- u = -1 !== s.indexOf("\n\n") || (d && c);
582
- c = u;
583
- let p = n.inline,
584
- f = n.list;
585
- ((n.list = !0),
586
- u
587
- ? ((n.inline = !1), (l = s.replace(ed, "\n\n")))
588
- : ((n.inline = !0), (l = s.replace(ed, ""))));
589
- let h = t(l, n);
590
- return ((n.inline = p), (n.list = f), h);
591
- }),
592
- ordered: r,
593
- start: o,
594
- };
595
- },
596
- render: (t, r, n) =>
597
- e(
598
- t.ordered ? "ol" : "ul",
599
- { key: n.key, start: "20" === t.type ? t.start : void 0 },
600
- t.items.map(function (t, l) {
601
- return e("li", { key: l }, r(t, n));
602
- }),
603
- ),
604
- };
605
- }
606
- let eE = RegExp(
607
- "^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)",
608
- ),
609
- eA = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,
610
- eR = [g, k, v, N, G, O, T, U, ev, eS, ej, e$],
611
- eN = [...eR, /^[^\n]+(?: \n|\n{2,})/, L, M];
612
- function eO(e) {
613
- return e
614
- .replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a")
615
- .replace(/[çÇ]/g, "c")
616
- .replace(/[ðÐ]/g, "d")
617
- .replace(/[ÈÉÊËéèêë]/g, "e")
618
- .replace(/[ÏïÎîÍíÌì]/g, "i")
619
- .replace(/[Ññ]/g, "n")
620
- .replace(/[øØœŒÕõÔôÓóÒò]/g, "o")
621
- .replace(/[ÜüÛûÚúÙù]/g, "u")
622
- .replace(/[ŸÿÝý]/g, "y")
623
- .replace(/[^a-z0-9- ]/gi, "")
624
- .replace(/ /gi, "-")
625
- .toLowerCase();
626
- }
627
- function eG(e) {
628
- return Y.test(e)
629
- ? "right"
630
- : J.test(e)
631
- ? "center"
632
- : K.test(e)
633
- ? "left"
634
- : null;
635
- }
636
- function eL(e, t, r, n) {
637
- let l = r.inTable;
638
- r.inTable = !0;
639
- let i = e
640
- .trim()
641
- .split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/)
642
- .reduce(
643
- (e, l) => (
644
- "|" === l.trim()
645
- ? e.push(n ? { type: "26" } : { type: "27", text: l })
646
- : "" !== l && e.push.apply(e, t(l, r)),
647
- e
648
- ),
649
- [],
650
- );
651
- r.inTable = l;
652
- let o = [[]];
653
- return (
654
- i.forEach(function (e, t) {
655
- "26" === e.type
656
- ? 0 !== t && t !== i.length - 1 && o.push([])
657
- : ("27" !== e.type ||
658
- (null != i[t + 1] && "26" !== i[t + 1].type) ||
659
- (e.text = e.text.trimEnd()),
660
- o[o.length - 1].push(e));
661
- }),
662
- o
663
- );
664
- }
665
- function ez(e, t, r) {
666
- r.inline = !0;
667
- let n = e[2] ? e[2].replace(Q, "").split("|").map(eG) : [],
668
- l = e[3]
669
- ? e[3]
670
- .trim()
671
- .split("\n")
672
- .map(function (e) {
673
- return eL(e, t, r, !0);
674
- })
675
- : [],
676
- i = eL(e[1], t, r, !!l.length);
677
- return (
678
- (r.inline = !1),
679
- l.length
680
- ? { align: n, cells: l, header: i, type: "25" }
681
- : { children: i, type: "21" }
682
- );
683
- }
684
- function eT(e, t) {
685
- return null == e.align[t] ? {} : { textAlign: e.align[t] };
686
- }
687
- function eI(e) {
688
- return function (t, r) {
689
- return r.inline ? e.exec(t) : null;
690
- };
691
- }
692
- function eM(e) {
693
- return function (t, r) {
694
- return r.inline || r.simple ? e.exec(t) : null;
695
- };
696
- }
697
- function eW(e) {
698
- return function (t, r) {
699
- return r.inline || r.simple ? null : e.exec(t);
700
- };
701
- }
702
- function eP(e) {
703
- return function (t) {
704
- return e.exec(t);
705
- };
706
- }
707
- function eZ(e, t, r) {
708
- if (t.inline || t.simple || (r && !r.endsWith("\n"))) return null;
709
- let n = "";
710
- e.split("\n").every(
711
- (e) => !eR.some((t) => t.test(e)) && ((n += e + "\n"), e.trim()),
712
- );
713
- let l = n.trimEnd();
714
- return "" == l ? null : [n, l];
715
- }
716
- function e_(e) {
717
- try {
718
- if (
719
- decodeURIComponent(e)
720
- .replace(/[^A-Za-z0-9/:]/g, "")
721
- .match(/^\s*(javascript|vbscript|data(?!:image)):/i)
722
- )
723
- return;
724
- } catch (e) {
725
- return null;
726
- }
727
- return e;
728
- }
729
- function eB(e) {
730
- return e.replace(es, "$1");
731
- }
732
- function eU(e, t, r) {
733
- let n = r.inline || !1,
734
- l = r.simple || !1;
735
- ((r.inline = !0), (r.simple = !0));
736
- let i = e(t, r);
737
- return ((r.inline = n), (r.simple = l), i);
738
- }
739
- function eD(e, t, r) {
740
- let n = r.inline || !1;
741
- r.inline = !1;
742
- let l = e(t, r);
743
- return ((r.inline = n), l);
744
- }
745
- let eH = (e, t, r) => ({ children: eU(t, e[1], r) });
746
- function eq() {
747
- return {};
748
- }
749
- function eF() {
750
- return null;
751
- }
752
- function eV(e, t, r) {
753
- let n = e,
754
- l = t.split(".");
755
- for (; l.length && void 0 !== (n = n[l[0]]); ) l.shift();
756
- return n || r;
757
- }
758
- t.ZP = (e) => {
759
- let { children: t = "", options: r } = e,
760
- n = (function (e, t) {
761
- if (null == e) return {};
762
- var r,
763
- n,
764
- l = {},
765
- i = Object.keys(e);
766
- for (n = 0; n < i.length; n++)
767
- t.indexOf((r = i[n])) >= 0 || (l[r] = e[r]);
768
- return l;
769
- })(e, s);
770
- return a.cloneElement(
771
- (function (e = "", t = {}) {
772
- var r, n;
773
- let l;
774
- ((t.overrides = t.overrides || {}),
775
- (t.slugify = t.slugify || eO),
776
- (t.namedCodesToUnicode = t.namedCodesToUnicode
777
- ? c({}, u, t.namedCodesToUnicode)
778
- : u));
779
- let i = t.createElement || a.createElement;
780
- function o(e, r, ...n) {
781
- let l = eV(t.overrides, `${e}.props`, {});
782
- return i(
783
- (function (e, t) {
784
- let r = eV(t, e);
785
- return r
786
- ? "function" == typeof r ||
787
- ("object" == typeof r && "render" in r)
788
- ? r
789
- : eV(t, `${e}.component`, e)
790
- : e;
791
- })(e, t.overrides),
792
- c({}, r, l, {
793
- className:
794
- (function (...e) {
795
- return e.filter(Boolean).join(" ");
796
- })(null == r ? void 0 : r.className, l.className) || void 0,
797
- }),
798
- ...n,
799
- );
800
- }
801
- function s(e) {
802
- let r;
803
- e = e.replace(A, "");
804
- let n = !1;
805
- t.forceInline ? (n = !0) : t.forceBlock || (n = !1 === V.test(e));
806
- let l = ee(
807
- Y(
808
- n
809
- ? e
810
- : `${e.trimEnd().replace(ea, "")}
811
-
812
- `,
813
- { inline: n },
814
- ),
815
- );
816
- for (
817
- ;
818
- "string" == typeof l[l.length - 1] && !l[l.length - 1].trim();
819
-
820
- )
821
- l.pop();
822
- if (null === t.wrapper) return l;
823
- let i = t.wrapper || (n ? "span" : "div");
824
- if (l.length > 1 || t.forceWrapper) r = l;
825
- else {
826
- if (1 === l.length)
827
- return "string" == typeof (r = l[0])
828
- ? o("span", { key: "outer" }, r)
829
- : r;
830
- r = null;
831
- }
832
- return a.createElement(i, { key: "outer" }, r);
833
- }
834
- function m(e) {
835
- let t = e.match(f);
836
- return t
837
- ? t.reduce(function (e, t, r) {
838
- let n = t.indexOf("=");
839
- if (-1 !== n) {
840
- var l, i;
841
- let o = (-1 !== (l = t.slice(0, n)).indexOf("-") &&
842
- null === l.match(I) &&
843
- (l = l.replace(B, function (e, t) {
844
- return t.toUpperCase();
845
- })),
846
- l).trim(),
847
- c = (function (e) {
848
- let t = e[0];
849
- return ('"' === t || "'" === t) &&
850
- e.length >= 2 &&
851
- e[e.length - 1] === t
852
- ? e.slice(1, -1)
853
- : e;
854
- })(t.slice(n + 1).trim()),
855
- u = d[o] || o,
856
- p = (e[u] =
857
- ((i = c),
858
- "style" === o
859
- ? i.split(/;\s?/).reduce(function (e, t) {
860
- let r = t.slice(0, t.indexOf(":"));
861
- return (
862
- (e[
863
- r
864
- .trim()
865
- .replace(/(-[a-z])/g, (e) =>
866
- e[1].toUpperCase(),
867
- )
868
- ] = t.slice(r.length + 1).trim()),
869
- e
870
- );
871
- }, {})
872
- : "href" === o || "src" === o
873
- ? e_(i)
874
- : (i.match(W) && (i = i.slice(1, i.length - 1)),
875
- "true" === i || ("false" !== i && i))));
876
- "string" == typeof p &&
877
- (L.test(p) || M.test(p)) &&
878
- (e[u] = a.cloneElement(s(p.trim()), { key: r }));
879
- } else "style" !== t && (e[d[t] || t] = !0);
880
- return e;
881
- }, {})
882
- : null;
883
- }
884
- let Q = [],
885
- J = {},
886
- K = {
887
- 0: {
888
- match: eW(g),
889
- order: 1,
890
- parse: (e, t, r) => ({ children: t(e[0].replace(y, ""), r) }),
891
- render: (e, t, r) =>
892
- o("blockquote", { key: r.key }, t(e.children, r)),
893
- },
894
- 1: {
895
- match: eP(x),
896
- order: 1,
897
- parse: eq,
898
- render: (e, t, r) => o("br", { key: r.key }),
899
- },
900
- 2: {
901
- match: eW(b),
902
- order: 1,
903
- parse: eq,
904
- render: (e, t, r) => o("hr", { key: r.key }),
905
- },
906
- 3: {
907
- match: eW(v),
908
- order: 0,
909
- parse: (e) => ({
910
- lang: void 0,
911
- text: e[0].replace(/^ {4}/gm, "").replace(/\n+$/, ""),
912
- }),
913
- render: (e, t, r) =>
914
- o(
915
- "pre",
916
- { key: r.key },
917
- o(
918
- "code",
919
- c({}, e.attrs, {
920
- className: e.lang ? `lang-${e.lang}` : "",
921
- }),
922
- e.text,
923
- ),
924
- ),
925
- },
926
- 4: {
927
- match: eW(k),
928
- order: 0,
929
- parse: (e) => ({
930
- attrs: m(e[3] || ""),
931
- lang: e[2] || void 0,
932
- text: e[4],
933
- type: "3",
934
- }),
935
- },
936
- 5: {
937
- match: eM(j),
938
- order: 3,
939
- parse: (e) => ({ text: e[2] }),
940
- render: (e, t, r) => o("code", { key: r.key }, e.text),
941
- },
942
- 6: {
943
- match: eW($),
944
- order: 0,
945
- parse: (e) => (
946
- Q.push({ footnote: e[2], identifier: e[1] }),
947
- {}
948
- ),
949
- render: eF,
950
- },
951
- 7: {
952
- match: eI(C),
953
- order: 1,
954
- parse: (e) => ({ target: `#${t.slugify(e[1])}`, text: e[1] }),
955
- render: (e, t, r) =>
956
- o(
957
- "a",
958
- { key: r.key, href: e_(e.target) },
959
- o("sup", { key: r.key }, e.text),
960
- ),
961
- },
962
- 8: {
963
- match: eI(R),
964
- order: 1,
965
- parse: (e) => ({ completed: "x" === e[1].toLowerCase() }),
966
- render: (e, t, r) =>
967
- o("input", {
968
- checked: e.completed,
969
- key: r.key,
970
- readOnly: !0,
971
- type: "checkbox",
972
- }),
973
- },
974
- 9: {
975
- match: eW(t.enforceAtxHeadings ? O : N),
976
- order: 1,
977
- parse: (e, r, n) => ({
978
- children: eU(r, e[2], n),
979
- id: t.slugify(e[2]),
980
- level: e[1].length,
981
- }),
982
- render: (e, t, r) =>
983
- o(
984
- `h${e.level}`,
985
- { id: e.id, key: r.key },
986
- t(e.children, r),
987
- ),
988
- },
989
- 10: {
990
- match: eW(G),
991
- order: 0,
992
- parse: (e, t, r) => ({
993
- children: eU(t, e[1], r),
994
- level: "=" === e[2] ? 1 : 2,
995
- type: "9",
996
- }),
997
- },
998
- 11: {
999
- match: eP(L),
1000
- order: 1,
1001
- parse(e, t, r) {
1002
- let [, n] = e[3].match(ec),
1003
- l = RegExp(`^${n}`, "gm"),
1004
- i = e[3].replace(l, ""),
1005
- o = eN.some((e) => e.test(i)) ? eD : eU,
1006
- a = e[1].toLowerCase(),
1007
- c = -1 !== p.indexOf(a),
1008
- s = {
1009
- attrs: m(e[2]),
1010
- noInnerParse: c,
1011
- tag: (c ? a : e[1]).trim(),
1012
- };
1013
- return (
1014
- (r.inAnchor = r.inAnchor || "a" === a),
1015
- c ? (s.text = e[3]) : (s.children = o(t, i, r)),
1016
- (r.inAnchor = !1),
1017
- s
1018
- );
1019
- },
1020
- render: (e, t, r) =>
1021
- o(
1022
- e.tag,
1023
- c({ key: r.key }, e.attrs),
1024
- e.text || t(e.children, r),
1025
- ),
1026
- },
1027
- 13: {
1028
- match: eP(M),
1029
- order: 1,
1030
- parse: (e) => ({ attrs: m(e[2] || ""), tag: e[1].trim() }),
1031
- render: (e, t, r) => o(e.tag, c({}, e.attrs, { key: r.key })),
1032
- },
1033
- 12: { match: eP(T), order: 1, parse: () => ({}), render: eF },
1034
- 14: {
1035
- match: eM(eA),
1036
- order: 1,
1037
- parse: (e) => ({ alt: e[1], target: eB(e[2]), title: e[3] }),
1038
- render: (e, t, r) =>
1039
- o("img", {
1040
- key: r.key,
1041
- alt: e.alt || void 0,
1042
- title: e.title || void 0,
1043
- src: e_(e.target),
1044
- }),
1045
- },
1046
- 15: {
1047
- match: eI(eE),
1048
- order: 3,
1049
- parse: (e, t, r) => ({
1050
- children: (function (e, t, r) {
1051
- let n = r.inline || !1,
1052
- l = r.simple || !1;
1053
- ((r.inline = !1), (r.simple = !0));
1054
- let i = e(t, r);
1055
- return ((r.inline = n), (r.simple = l), i);
1056
- })(t, e[1], r),
1057
- target: eB(e[2]),
1058
- title: e[3],
1059
- }),
1060
- render: (e, t, r) =>
1061
- o(
1062
- "a",
1063
- { key: r.key, href: e_(e.target), title: e.title },
1064
- t(e.children, r),
1065
- ),
1066
- },
1067
- 16: {
1068
- match: eI(_),
1069
- order: 0,
1070
- parse: (e) => ({
1071
- children: [{ text: e[1], type: "27" }],
1072
- target: e[1],
1073
- type: "15",
1074
- }),
1075
- },
1076
- 17: {
1077
- match: (e, t) => (t.inAnchor ? null : eI(P)(e, t)),
1078
- order: 0,
1079
- parse: (e) => ({
1080
- children: [{ text: e[1], type: "27" }],
1081
- target: e[1],
1082
- title: void 0,
1083
- type: "15",
1084
- }),
1085
- },
1086
- 18: {
1087
- match: eI(Z),
1088
- order: 0,
1089
- parse(e) {
1090
- let t = e[1],
1091
- r = e[1];
1092
- return (
1093
- h.test(r) || (r = "mailto:" + r),
1094
- {
1095
- children: [
1096
- { text: t.replace("mailto:", ""), type: "27" },
1097
- ],
1098
- target: r,
1099
- type: "15",
1100
- }
1101
- );
1102
- },
1103
- },
1104
- 20: eC(o, 1),
1105
- 33: eC(o, 2),
1106
- 19: { match: eW(w), order: 3, parse: eq, render: () => "\n" },
1107
- 21: {
1108
- match: eZ,
1109
- order: 3,
1110
- parse: eH,
1111
- render: (e, t, r) => o("p", { key: r.key }, t(e.children, r)),
1112
- },
1113
- 22: {
1114
- match: eI(D),
1115
- order: 0,
1116
- parse: (e) => ((J[e[1]] = { target: e[2], title: e[4] }), {}),
1117
- render: eF,
1118
- },
1119
- 23: {
1120
- match: eM(H),
1121
- order: 0,
1122
- parse: (e) => ({ alt: e[1] || void 0, ref: e[2] }),
1123
- render: (e, t, r) =>
1124
- J[e.ref]
1125
- ? o("img", {
1126
- key: r.key,
1127
- alt: e.alt,
1128
- src: e_(J[e.ref].target),
1129
- title: J[e.ref].title,
1130
- })
1131
- : null,
1132
- },
1133
- 24: {
1134
- match: eI(q),
1135
- order: 0,
1136
- parse: (e, t, r) => ({
1137
- children: t(e[1], r),
1138
- fallbackChildren: t(e[0].replace(F, "\\$1"), r),
1139
- ref: e[2],
1140
- }),
1141
- render: (e, t, r) =>
1142
- J[e.ref]
1143
- ? o(
1144
- "a",
1145
- {
1146
- key: r.key,
1147
- href: e_(J[e.ref].target),
1148
- title: J[e.ref].title,
1149
- },
1150
- t(e.children, r),
1151
- )
1152
- : o("span", { key: r.key }, t(e.fallbackChildren, r)),
1153
- },
1154
- 25: {
1155
- match: eW(U),
1156
- order: 1,
1157
- parse: ez,
1158
- render: (e, t, r) =>
1159
- o(
1160
- "table",
1161
- { key: r.key },
1162
- o(
1163
- "thead",
1164
- null,
1165
- o(
1166
- "tr",
1167
- null,
1168
- e.header.map(function (n, l) {
1169
- return o(
1170
- "th",
1171
- { key: l, style: eT(e, l) },
1172
- t(n, r),
1173
- );
1174
- }),
1175
- ),
1176
- ),
1177
- o(
1178
- "tbody",
1179
- null,
1180
- e.cells.map(function (n, l) {
1181
- return o(
1182
- "tr",
1183
- { key: l },
1184
- n.map(function (n, l) {
1185
- return o(
1186
- "td",
1187
- { key: l, style: eT(e, l) },
1188
- t(n, r),
1189
- );
1190
- }),
1191
- );
1192
- }),
1193
- ),
1194
- ),
1195
- },
1196
- 27: {
1197
- match: eP(eo),
1198
- order: 4,
1199
- parse: (e) => ({
1200
- text: e[0].replace(z, (e, r) =>
1201
- t.namedCodesToUnicode[r] ? t.namedCodesToUnicode[r] : e,
1202
- ),
1203
- }),
1204
- render: (e) => e.text,
1205
- },
1206
- 28: {
1207
- match: eM(et),
1208
- order: 2,
1209
- parse: (e, t, r) => ({ children: t(e[2], r) }),
1210
- render: (e, t, r) =>
1211
- o("strong", { key: r.key }, t(e.children, r)),
1212
- },
1213
- 29: {
1214
- match: eM(er),
1215
- order: 3,
1216
- parse: (e, t, r) => ({ children: t(e[2], r) }),
1217
- render: (e, t, r) =>
1218
- o("em", { key: r.key }, t(e.children, r)),
1219
- },
1220
- 30: {
1221
- match: eM(ei),
1222
- order: 1,
1223
- parse: (e) => ({ text: e[1], type: "27" }),
1224
- },
1225
- 31: {
1226
- match: eM(en),
1227
- order: 3,
1228
- parse: eH,
1229
- render: (e, t, r) =>
1230
- o("mark", { key: r.key }, t(e.children, r)),
1231
- },
1232
- 32: {
1233
- match: eM(el),
1234
- order: 3,
1235
- parse: eH,
1236
- render: (e, t, r) =>
1237
- o("del", { key: r.key }, t(e.children, r)),
1238
- },
1239
- };
1240
- !0 === t.disableParsingRawHTML && (delete K[11], delete K[13]);
1241
- let Y =
1242
- ((l = Object.keys(K)).sort(function (e, t) {
1243
- let r = K[e].order,
1244
- n = K[t].order;
1245
- return r !== n ? r - n : e < t ? -1 : 1;
1246
- }),
1247
- function (e, t) {
1248
- return (function e(t, r) {
1249
- let n = [],
1250
- i = "";
1251
- for (; t; ) {
1252
- let o = 0;
1253
- for (; o < l.length; ) {
1254
- let a = l[o],
1255
- c = K[a],
1256
- s = c.match(t, r, i);
1257
- if (s) {
1258
- let l = s[0];
1259
- t = t.substring(l.length);
1260
- let o = c.parse(s, e, r);
1261
- (null == o.type && (o.type = a), n.push(o), (i = l));
1262
- break;
1263
- }
1264
- o++;
1265
- }
1266
- }
1267
- return n;
1268
- })(e.replace(S, "\n").replace(E, "").replace(X, " "), t);
1269
- }),
1270
- ee =
1271
- ((n = t.renderRule),
1272
- (r = function (e, t, r) {
1273
- let l = K[e.type].render;
1274
- return n ? n(() => l(e, t, r), e, t, r) : l(e, t, r);
1275
- }),
1276
- function e(t, n = {}) {
1277
- if (Array.isArray(t)) {
1278
- let r = n.key,
1279
- l = [],
1280
- i = !1;
1281
- for (let r = 0; r < t.length; r++) {
1282
- n.key = r;
1283
- let o = e(t[r], n),
1284
- a = "string" == typeof o;
1285
- (a && i
1286
- ? (l[l.length - 1] += o)
1287
- : null !== o && l.push(o),
1288
- (i = a));
1289
- }
1290
- return ((n.key = r), l);
1291
- }
1292
- return r(t, e, n);
1293
- }),
1294
- es = s(e);
1295
- return Q.length
1296
- ? o(
1297
- "div",
1298
- null,
1299
- es,
1300
- o(
1301
- "footer",
1302
- { key: "footer" },
1303
- Q.map(function (e) {
1304
- return o(
1305
- "div",
1306
- { id: t.slugify(e.identifier), key: e.identifier },
1307
- e.identifier,
1308
- ee(Y(e.footnote, { inline: !0 })),
1309
- );
1310
- }),
1311
- ),
1312
- )
1313
- : es;
1314
- })(t, r),
1315
- n,
1316
- );
1317
- };
1318
- },
1319
- },
1320
- ]);