@leav/ui 0.0.1-alpha-1

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.
@@ -0,0 +1,3622 @@
1
+ import { r as Te, n as Kn, o as pi, s as di, j as An, p as mi } from "./index-PMijvJqf.js";
2
+ import { g as Qn, c as G } from "./minimatch-x8aONUPa.js";
3
+ var Jn = {}, Gt = {};
4
+ Object.defineProperty(Gt, "__esModule", { value: !0 });
5
+ var hi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" };
6
+ Gt.default = hi;
7
+ var er = {}, $t = {};
8
+ (function(e) {
9
+ Object.defineProperty(e, "__esModule", {
10
+ value: !0
11
+ }), Object.defineProperty(e, "default", {
12
+ enumerable: !0,
13
+ get: function() {
14
+ return r;
15
+ }
16
+ });
17
+ var t = Te, n = /* @__PURE__ */ (0, t.createContext)({}), r = n;
18
+ })($t);
19
+ var Vt = {}, at = {}, De = {}, tr = { exports: {} };
20
+ (function(e) {
21
+ function t(n) {
22
+ return n && n.__esModule ? n : {
23
+ default: n
24
+ };
25
+ }
26
+ e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
27
+ })(tr);
28
+ var vi = tr.exports, Xt = {};
29
+ Object.defineProperty(Xt, "__esModule", {
30
+ value: !0
31
+ });
32
+ Xt.default = gi;
33
+ function gi() {
34
+ return !!(typeof window < "u" && window.document && window.document.createElement);
35
+ }
36
+ var Yt = {};
37
+ Object.defineProperty(Yt, "__esModule", {
38
+ value: !0
39
+ });
40
+ Yt.default = yi;
41
+ function yi(e, t) {
42
+ if (!e)
43
+ return !1;
44
+ if (e.contains)
45
+ return e.contains(t);
46
+ for (var n = t; n; ) {
47
+ if (n === e)
48
+ return !0;
49
+ n = n.parentNode;
50
+ }
51
+ return !1;
52
+ }
53
+ var nr = vi.default;
54
+ Object.defineProperty(De, "__esModule", {
55
+ value: !0
56
+ });
57
+ De.clearContainerCache = wi;
58
+ De.injectCSS = qt;
59
+ De.removeCSS = Oi;
60
+ De.updateCSS = Ai;
61
+ var _i = nr(Xt), Ti = nr(Yt), Sn = "data-rc-order", xn = "data-rc-priority", Ei = "rc-util-key", it = /* @__PURE__ */ new Map();
62
+ function rr() {
63
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
64
+ return t ? t.startsWith("data-") ? t : "data-".concat(t) : Ei;
65
+ }
66
+ function lt(e) {
67
+ if (e.attachTo)
68
+ return e.attachTo;
69
+ var t = document.querySelector("head");
70
+ return t || document.body;
71
+ }
72
+ function bi(e) {
73
+ return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
74
+ }
75
+ function ir(e) {
76
+ return Array.from((it.get(e) || e).children).filter(function(t) {
77
+ return t.tagName === "STYLE";
78
+ });
79
+ }
80
+ function qt(e) {
81
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
82
+ if (!(0, _i.default)())
83
+ return null;
84
+ var n = t.csp, r = t.prepend, a = t.priority, p = a === void 0 ? 0 : a, m = bi(r), l = m === "prependQueue", o = document.createElement("style");
85
+ o.setAttribute(Sn, m), l && p && o.setAttribute(xn, "".concat(p)), n != null && n.nonce && (o.nonce = n == null ? void 0 : n.nonce), o.innerHTML = e;
86
+ var s = lt(t), _ = s.firstChild;
87
+ if (r) {
88
+ if (l) {
89
+ var w = ir(s).filter(function(M) {
90
+ if (!["prepend", "prependQueue"].includes(M.getAttribute(Sn)))
91
+ return !1;
92
+ var d = Number(M.getAttribute(xn) || 0);
93
+ return p >= d;
94
+ });
95
+ if (w.length)
96
+ return s.insertBefore(o, w[w.length - 1].nextSibling), o;
97
+ }
98
+ s.insertBefore(o, _);
99
+ } else
100
+ s.appendChild(o);
101
+ return o;
102
+ }
103
+ function or(e) {
104
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = lt(t);
105
+ return ir(n).find(function(r) {
106
+ return r.getAttribute(rr(t)) === e;
107
+ });
108
+ }
109
+ function Oi(e) {
110
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = or(e, t);
111
+ if (n) {
112
+ var r = lt(t);
113
+ r.removeChild(n);
114
+ }
115
+ }
116
+ function Ci(e, t) {
117
+ var n = it.get(e);
118
+ if (!n || !(0, Ti.default)(document, n)) {
119
+ var r = qt("", t), a = r.parentNode;
120
+ it.set(e, a), e.removeChild(r);
121
+ }
122
+ }
123
+ function wi() {
124
+ it.clear();
125
+ }
126
+ function Ai(e, t) {
127
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = lt(n);
128
+ Ci(r, n);
129
+ var a = or(t, n);
130
+ if (a) {
131
+ var p, m;
132
+ if ((p = n.csp) !== null && p !== void 0 && p.nonce && a.nonce !== ((m = n.csp) === null || m === void 0 ? void 0 : m.nonce)) {
133
+ var l;
134
+ a.nonce = (l = n.csp) === null || l === void 0 ? void 0 : l.nonce;
135
+ }
136
+ return a.innerHTML !== e && (a.innerHTML = e), a;
137
+ }
138
+ var o = qt(e, n);
139
+ return o.setAttribute(rr(n), t), o;
140
+ }
141
+ var st = {};
142
+ Object.defineProperty(st, "__esModule", {
143
+ value: !0
144
+ });
145
+ st.getShadowRoot = Si;
146
+ st.inShadow = lr;
147
+ function ar(e) {
148
+ var t;
149
+ return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
150
+ }
151
+ function lr(e) {
152
+ return ar(e) instanceof ShadowRoot;
153
+ }
154
+ function Si(e) {
155
+ return lr(e) ? ar(e) : null;
156
+ }
157
+ var ee = {};
158
+ Object.defineProperty(ee, "__esModule", {
159
+ value: !0
160
+ });
161
+ ee.call = Kt;
162
+ ee.default = void 0;
163
+ ee.note = ur;
164
+ ee.noteOnce = pr;
165
+ ee.preMessage = void 0;
166
+ ee.resetWarned = fr;
167
+ ee.warning = cr;
168
+ ee.warningOnce = He;
169
+ var Ut = {}, Zt = [], sr = function(t) {
170
+ Zt.push(t);
171
+ };
172
+ ee.preMessage = sr;
173
+ function cr(e, t) {
174
+ if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
175
+ var n = Zt.reduce(function(r, a) {
176
+ return a(r ?? "", "warning");
177
+ }, t);
178
+ n && console.error("Warning: ".concat(n));
179
+ }
180
+ }
181
+ function ur(e, t) {
182
+ if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
183
+ var n = Zt.reduce(function(r, a) {
184
+ return a(r ?? "", "note");
185
+ }, t);
186
+ n && console.warn("Note: ".concat(n));
187
+ }
188
+ }
189
+ function fr() {
190
+ Ut = {};
191
+ }
192
+ function Kt(e, t, n) {
193
+ !t && !Ut[n] && (e(!1, n), Ut[n] = !0);
194
+ }
195
+ function He(e, t) {
196
+ Kt(cr, e, t);
197
+ }
198
+ function pr(e, t) {
199
+ Kt(ur, e, t);
200
+ }
201
+ He.preMessage = sr;
202
+ He.resetWarned = fr;
203
+ He.noteOnce = pr;
204
+ var xi = He;
205
+ ee.default = xi;
206
+ (function(e) {
207
+ Object.defineProperty(e, "__esModule", {
208
+ value: !0
209
+ });
210
+ function t(y, x) {
211
+ for (var c in x)
212
+ Object.defineProperty(y, c, {
213
+ enumerable: !0,
214
+ get: x[c]
215
+ });
216
+ }
217
+ t(e, {
218
+ warning: function() {
219
+ return v;
220
+ },
221
+ isIconDefinition: function() {
222
+ return f;
223
+ },
224
+ normalizeAttrs: function() {
225
+ return u;
226
+ },
227
+ generate: function() {
228
+ return b;
229
+ },
230
+ getSecondaryColor: function() {
231
+ return A;
232
+ },
233
+ normalizeTwoToneColors: function() {
234
+ return C;
235
+ },
236
+ svgBaseProps: function() {
237
+ return I;
238
+ },
239
+ iconStyles: function() {
240
+ return k;
241
+ },
242
+ useInsertStyles: function() {
243
+ return K;
244
+ }
245
+ });
246
+ var n = Kn, r = De, a = st, p = /* @__PURE__ */ s(ee), m = /* @__PURE__ */ w(Te), l = /* @__PURE__ */ s($t);
247
+ function o(y, x, c) {
248
+ return x in y ? Object.defineProperty(y, x, {
249
+ value: c,
250
+ enumerable: !0,
251
+ configurable: !0,
252
+ writable: !0
253
+ }) : y[x] = c, y;
254
+ }
255
+ function s(y) {
256
+ return y && y.__esModule ? y : {
257
+ default: y
258
+ };
259
+ }
260
+ function _(y) {
261
+ if (typeof WeakMap != "function")
262
+ return null;
263
+ var x = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap();
264
+ return (_ = function(g) {
265
+ return g ? c : x;
266
+ })(y);
267
+ }
268
+ function w(y, x) {
269
+ if (!x && y && y.__esModule)
270
+ return y;
271
+ if (y === null || typeof y != "object" && typeof y != "function")
272
+ return {
273
+ default: y
274
+ };
275
+ var c = _(x);
276
+ if (c && c.has(y))
277
+ return c.get(y);
278
+ var g = {}, E = Object.defineProperty && Object.getOwnPropertyDescriptor;
279
+ for (var S in y)
280
+ if (S !== "default" && Object.prototype.hasOwnProperty.call(y, S)) {
281
+ var R = E ? Object.getOwnPropertyDescriptor(y, S) : null;
282
+ R && (R.get || R.set) ? Object.defineProperty(g, S, R) : g[S] = y[S];
283
+ }
284
+ return g.default = y, c && c.set(y, g), g;
285
+ }
286
+ function M(y) {
287
+ for (var x = 1; x < arguments.length; x++) {
288
+ var c = arguments[x] != null ? arguments[x] : {}, g = Object.keys(c);
289
+ typeof Object.getOwnPropertySymbols == "function" && (g = g.concat(Object.getOwnPropertySymbols(c).filter(function(E) {
290
+ return Object.getOwnPropertyDescriptor(c, E).enumerable;
291
+ }))), g.forEach(function(E) {
292
+ o(y, E, c[E]);
293
+ });
294
+ }
295
+ return y;
296
+ }
297
+ function d(y) {
298
+ return y.replace(/-(.)/g, function(x, c) {
299
+ return c.toUpperCase();
300
+ });
301
+ }
302
+ function v(y, x) {
303
+ (0, p.default)(y, "[@ant-design/icons] ".concat(x));
304
+ }
305
+ function f(y) {
306
+ return typeof y == "object" && typeof y.name == "string" && typeof y.theme == "string" && (typeof y.icon == "object" || typeof y.icon == "function");
307
+ }
308
+ function u() {
309
+ var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
310
+ return Object.keys(y).reduce(function(x, c) {
311
+ var g = y[c];
312
+ switch (c) {
313
+ case "class":
314
+ x.className = g, delete x.class;
315
+ break;
316
+ default:
317
+ delete x[c], x[d(c)] = g;
318
+ }
319
+ return x;
320
+ }, {});
321
+ }
322
+ function b(y, x, c) {
323
+ return c ? m.default.createElement(y.tag, M({
324
+ key: x
325
+ }, u(y.attrs), c), (y.children || []).map(function(g, E) {
326
+ return b(g, "".concat(x, "-").concat(y.tag, "-").concat(E));
327
+ })) : m.default.createElement(y.tag, M({
328
+ key: x
329
+ }, u(y.attrs)), (y.children || []).map(function(g, E) {
330
+ return b(g, "".concat(x, "-").concat(y.tag, "-").concat(E));
331
+ }));
332
+ }
333
+ function A(y) {
334
+ return (0, n.generate)(y)[0];
335
+ }
336
+ function C(y) {
337
+ return y ? Array.isArray(y) ? y : [
338
+ y
339
+ ] : [];
340
+ }
341
+ var I = {
342
+ width: "1em",
343
+ height: "1em",
344
+ fill: "currentColor",
345
+ "aria-hidden": "true",
346
+ focusable: "false"
347
+ }, k = `
348
+ .anticon {
349
+ display: inline-block;
350
+ color: inherit;
351
+ font-style: normal;
352
+ line-height: 0;
353
+ text-align: center;
354
+ text-transform: none;
355
+ vertical-align: -0.125em;
356
+ text-rendering: optimizeLegibility;
357
+ -webkit-font-smoothing: antialiased;
358
+ -moz-osx-font-smoothing: grayscale;
359
+ }
360
+
361
+ .anticon > * {
362
+ line-height: 1;
363
+ }
364
+
365
+ .anticon svg {
366
+ display: inline-block;
367
+ }
368
+
369
+ .anticon::before {
370
+ display: none;
371
+ }
372
+
373
+ .anticon .anticon-icon {
374
+ display: block;
375
+ }
376
+
377
+ .anticon[tabindex] {
378
+ cursor: pointer;
379
+ }
380
+
381
+ .anticon-spin::before,
382
+ .anticon-spin {
383
+ display: inline-block;
384
+ -webkit-animation: loadingCircle 1s infinite linear;
385
+ animation: loadingCircle 1s infinite linear;
386
+ }
387
+
388
+ @-webkit-keyframes loadingCircle {
389
+ 100% {
390
+ -webkit-transform: rotate(360deg);
391
+ transform: rotate(360deg);
392
+ }
393
+ }
394
+
395
+ @keyframes loadingCircle {
396
+ 100% {
397
+ -webkit-transform: rotate(360deg);
398
+ transform: rotate(360deg);
399
+ }
400
+ }
401
+ `, K = function(y) {
402
+ var x = (0, m.useContext)(l.default), c = x.csp, g = x.prefixCls, E = k;
403
+ g && (E = E.replace(/anticon/g, g)), (0, m.useEffect)(function() {
404
+ var S = y.current, R = (0, a.getShadowRoot)(S);
405
+ (0, r.updateCSS)(E, "@ant-design-icons", {
406
+ prepend: !0,
407
+ csp: c,
408
+ attachTo: R
409
+ });
410
+ }, []);
411
+ };
412
+ })(at);
413
+ (function(e) {
414
+ Object.defineProperty(e, "__esModule", {
415
+ value: !0
416
+ }), Object.defineProperty(e, "default", {
417
+ enumerable: !0,
418
+ get: function() {
419
+ return f;
420
+ }
421
+ });
422
+ var t = /* @__PURE__ */ p(Te), n = at;
423
+ function r(u, b, A) {
424
+ return b in u ? Object.defineProperty(u, b, {
425
+ value: A,
426
+ enumerable: !0,
427
+ configurable: !0,
428
+ writable: !0
429
+ }) : u[b] = A, u;
430
+ }
431
+ function a(u) {
432
+ if (typeof WeakMap != "function")
433
+ return null;
434
+ var b = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap();
435
+ return (a = function(C) {
436
+ return C ? A : b;
437
+ })(u);
438
+ }
439
+ function p(u, b) {
440
+ if (!b && u && u.__esModule)
441
+ return u;
442
+ if (u === null || typeof u != "object" && typeof u != "function")
443
+ return {
444
+ default: u
445
+ };
446
+ var A = a(b);
447
+ if (A && A.has(u))
448
+ return A.get(u);
449
+ var C = {}, I = Object.defineProperty && Object.getOwnPropertyDescriptor;
450
+ for (var k in u)
451
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(u, k)) {
452
+ var K = I ? Object.getOwnPropertyDescriptor(u, k) : null;
453
+ K && (K.get || K.set) ? Object.defineProperty(C, k, K) : C[k] = u[k];
454
+ }
455
+ return C.default = u, A && A.set(u, C), C;
456
+ }
457
+ function m(u) {
458
+ for (var b = 1; b < arguments.length; b++) {
459
+ var A = arguments[b] != null ? arguments[b] : {}, C = Object.keys(A);
460
+ typeof Object.getOwnPropertySymbols == "function" && (C = C.concat(Object.getOwnPropertySymbols(A).filter(function(I) {
461
+ return Object.getOwnPropertyDescriptor(A, I).enumerable;
462
+ }))), C.forEach(function(I) {
463
+ r(u, I, A[I]);
464
+ });
465
+ }
466
+ return u;
467
+ }
468
+ function l(u, b) {
469
+ var A = Object.keys(u);
470
+ if (Object.getOwnPropertySymbols) {
471
+ var C = Object.getOwnPropertySymbols(u);
472
+ b && (C = C.filter(function(I) {
473
+ return Object.getOwnPropertyDescriptor(u, I).enumerable;
474
+ })), A.push.apply(A, C);
475
+ }
476
+ return A;
477
+ }
478
+ function o(u, b) {
479
+ return b = b ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(u, Object.getOwnPropertyDescriptors(b)) : l(Object(b)).forEach(function(A) {
480
+ Object.defineProperty(u, A, Object.getOwnPropertyDescriptor(b, A));
481
+ }), u;
482
+ }
483
+ function s(u, b) {
484
+ if (u == null)
485
+ return {};
486
+ var A = _(u, b), C, I;
487
+ if (Object.getOwnPropertySymbols) {
488
+ var k = Object.getOwnPropertySymbols(u);
489
+ for (I = 0; I < k.length; I++)
490
+ C = k[I], !(b.indexOf(C) >= 0) && Object.prototype.propertyIsEnumerable.call(u, C) && (A[C] = u[C]);
491
+ }
492
+ return A;
493
+ }
494
+ function _(u, b) {
495
+ if (u == null)
496
+ return {};
497
+ var A = {}, C = Object.keys(u), I, k;
498
+ for (k = 0; k < C.length; k++)
499
+ I = C[k], !(b.indexOf(I) >= 0) && (A[I] = u[I]);
500
+ return A;
501
+ }
502
+ var w = {
503
+ primaryColor: "#333",
504
+ secondaryColor: "#E6E6E6",
505
+ calculated: !1
506
+ };
507
+ function M(u) {
508
+ var b = u.primaryColor, A = u.secondaryColor;
509
+ w.primaryColor = b, w.secondaryColor = A || (0, n.getSecondaryColor)(b), w.calculated = !!A;
510
+ }
511
+ function d() {
512
+ return m({}, w);
513
+ }
514
+ var v = function(u) {
515
+ var b = u.icon, A = u.className, C = u.onClick, I = u.style, k = u.primaryColor, K = u.secondaryColor, y = s(u, [
516
+ "icon",
517
+ "className",
518
+ "onClick",
519
+ "style",
520
+ "primaryColor",
521
+ "secondaryColor"
522
+ ]), x = t.useRef(), c = w;
523
+ if (k && (c = {
524
+ primaryColor: k,
525
+ secondaryColor: K || (0, n.getSecondaryColor)(k)
526
+ }), (0, n.useInsertStyles)(x), (0, n.warning)((0, n.isIconDefinition)(b), "icon should be icon definiton, but got ".concat(b)), !(0, n.isIconDefinition)(b))
527
+ return null;
528
+ var g = b;
529
+ return g && typeof g.icon == "function" && (g = o(m({}, g), {
530
+ icon: g.icon(c.primaryColor, c.secondaryColor)
531
+ })), (0, n.generate)(g.icon, "svg-".concat(g.name), o(m({
532
+ className: A,
533
+ onClick: C,
534
+ style: I,
535
+ "data-icon": g.name,
536
+ width: "1em",
537
+ height: "1em",
538
+ fill: "currentColor",
539
+ "aria-hidden": "true"
540
+ }, y), {
541
+ ref: x
542
+ }));
543
+ };
544
+ v.displayName = "IconReact", v.getTwoToneColors = d, v.setTwoToneColors = M;
545
+ var f = v;
546
+ })(Vt);
547
+ var dr = {};
548
+ (function(e) {
549
+ Object.defineProperty(e, "__esModule", {
550
+ value: !0
551
+ });
552
+ function t(d, v) {
553
+ for (var f in v)
554
+ Object.defineProperty(d, f, {
555
+ enumerable: !0,
556
+ get: v[f]
557
+ });
558
+ }
559
+ t(e, {
560
+ setTwoToneColor: function() {
561
+ return w;
562
+ },
563
+ getTwoToneColor: function() {
564
+ return M;
565
+ }
566
+ });
567
+ var n = /* @__PURE__ */ m(Vt), r = at;
568
+ function a(d, v) {
569
+ (v == null || v > d.length) && (v = d.length);
570
+ for (var f = 0, u = new Array(v); f < v; f++)
571
+ u[f] = d[f];
572
+ return u;
573
+ }
574
+ function p(d) {
575
+ if (Array.isArray(d))
576
+ return d;
577
+ }
578
+ function m(d) {
579
+ return d && d.__esModule ? d : {
580
+ default: d
581
+ };
582
+ }
583
+ function l(d, v) {
584
+ var f = d == null ? null : typeof Symbol < "u" && d[Symbol.iterator] || d["@@iterator"];
585
+ if (f != null) {
586
+ var u = [], b = !0, A = !1, C, I;
587
+ try {
588
+ for (f = f.call(d); !(b = (C = f.next()).done) && (u.push(C.value), !(v && u.length === v)); b = !0)
589
+ ;
590
+ } catch (k) {
591
+ A = !0, I = k;
592
+ } finally {
593
+ try {
594
+ !b && f.return != null && f.return();
595
+ } finally {
596
+ if (A)
597
+ throw I;
598
+ }
599
+ }
600
+ return u;
601
+ }
602
+ }
603
+ function o() {
604
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
605
+ }
606
+ function s(d, v) {
607
+ return p(d) || l(d, v) || _(d, v) || o();
608
+ }
609
+ function _(d, v) {
610
+ if (d) {
611
+ if (typeof d == "string")
612
+ return a(d, v);
613
+ var f = Object.prototype.toString.call(d).slice(8, -1);
614
+ if (f === "Object" && d.constructor && (f = d.constructor.name), f === "Map" || f === "Set")
615
+ return Array.from(f);
616
+ if (f === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))
617
+ return a(d, v);
618
+ }
619
+ }
620
+ function w(d) {
621
+ var v = s((0, r.normalizeTwoToneColors)(d), 2), f = v[0], u = v[1];
622
+ return n.default.setTwoToneColors({
623
+ primaryColor: f,
624
+ secondaryColor: u
625
+ });
626
+ }
627
+ function M() {
628
+ var d = n.default.getTwoToneColors();
629
+ return d.calculated ? [
630
+ d.primaryColor,
631
+ d.secondaryColor
632
+ ] : d.primaryColor;
633
+ }
634
+ })(dr);
635
+ (function(e) {
636
+ "use client";
637
+ Object.defineProperty(e, "__esModule", {
638
+ value: !0
639
+ }), Object.defineProperty(e, "default", {
640
+ enumerable: !0,
641
+ get: function() {
642
+ return x;
643
+ }
644
+ });
645
+ var t = /* @__PURE__ */ d(Te), n = /* @__PURE__ */ w(pi), r = Kn, a = /* @__PURE__ */ w($t), p = /* @__PURE__ */ w(Vt), m = dr, l = at;
646
+ function o(c, g) {
647
+ (g == null || g > c.length) && (g = c.length);
648
+ for (var E = 0, S = new Array(g); E < g; E++)
649
+ S[E] = c[E];
650
+ return S;
651
+ }
652
+ function s(c) {
653
+ if (Array.isArray(c))
654
+ return c;
655
+ }
656
+ function _(c, g, E) {
657
+ return g in c ? Object.defineProperty(c, g, {
658
+ value: E,
659
+ enumerable: !0,
660
+ configurable: !0,
661
+ writable: !0
662
+ }) : c[g] = E, c;
663
+ }
664
+ function w(c) {
665
+ return c && c.__esModule ? c : {
666
+ default: c
667
+ };
668
+ }
669
+ function M(c) {
670
+ if (typeof WeakMap != "function")
671
+ return null;
672
+ var g = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
673
+ return (M = function(S) {
674
+ return S ? E : g;
675
+ })(c);
676
+ }
677
+ function d(c, g) {
678
+ if (!g && c && c.__esModule)
679
+ return c;
680
+ if (c === null || typeof c != "object" && typeof c != "function")
681
+ return {
682
+ default: c
683
+ };
684
+ var E = M(g);
685
+ if (E && E.has(c))
686
+ return E.get(c);
687
+ var S = {}, R = Object.defineProperty && Object.getOwnPropertyDescriptor;
688
+ for (var F in c)
689
+ if (F !== "default" && Object.prototype.hasOwnProperty.call(c, F)) {
690
+ var ne = R ? Object.getOwnPropertyDescriptor(c, F) : null;
691
+ ne && (ne.get || ne.set) ? Object.defineProperty(S, F, ne) : S[F] = c[F];
692
+ }
693
+ return S.default = c, E && E.set(c, S), S;
694
+ }
695
+ function v(c, g) {
696
+ var E = c == null ? null : typeof Symbol < "u" && c[Symbol.iterator] || c["@@iterator"];
697
+ if (E != null) {
698
+ var S = [], R = !0, F = !1, ne, de;
699
+ try {
700
+ for (E = E.call(c); !(R = (ne = E.next()).done) && (S.push(ne.value), !(g && S.length === g)); R = !0)
701
+ ;
702
+ } catch (Ee) {
703
+ F = !0, de = Ee;
704
+ } finally {
705
+ try {
706
+ !R && E.return != null && E.return();
707
+ } finally {
708
+ if (F)
709
+ throw de;
710
+ }
711
+ }
712
+ return S;
713
+ }
714
+ }
715
+ function f() {
716
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
717
+ }
718
+ function u(c) {
719
+ for (var g = 1; g < arguments.length; g++) {
720
+ var E = arguments[g] != null ? arguments[g] : {}, S = Object.keys(E);
721
+ typeof Object.getOwnPropertySymbols == "function" && (S = S.concat(Object.getOwnPropertySymbols(E).filter(function(R) {
722
+ return Object.getOwnPropertyDescriptor(E, R).enumerable;
723
+ }))), S.forEach(function(R) {
724
+ _(c, R, E[R]);
725
+ });
726
+ }
727
+ return c;
728
+ }
729
+ function b(c, g) {
730
+ var E = Object.keys(c);
731
+ if (Object.getOwnPropertySymbols) {
732
+ var S = Object.getOwnPropertySymbols(c);
733
+ g && (S = S.filter(function(R) {
734
+ return Object.getOwnPropertyDescriptor(c, R).enumerable;
735
+ })), E.push.apply(E, S);
736
+ }
737
+ return E;
738
+ }
739
+ function A(c, g) {
740
+ return g = g ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(g)) : b(Object(g)).forEach(function(E) {
741
+ Object.defineProperty(c, E, Object.getOwnPropertyDescriptor(g, E));
742
+ }), c;
743
+ }
744
+ function C(c, g) {
745
+ if (c == null)
746
+ return {};
747
+ var E = I(c, g), S, R;
748
+ if (Object.getOwnPropertySymbols) {
749
+ var F = Object.getOwnPropertySymbols(c);
750
+ for (R = 0; R < F.length; R++)
751
+ S = F[R], !(g.indexOf(S) >= 0) && Object.prototype.propertyIsEnumerable.call(c, S) && (E[S] = c[S]);
752
+ }
753
+ return E;
754
+ }
755
+ function I(c, g) {
756
+ if (c == null)
757
+ return {};
758
+ var E = {}, S = Object.keys(c), R, F;
759
+ for (F = 0; F < S.length; F++)
760
+ R = S[F], !(g.indexOf(R) >= 0) && (E[R] = c[R]);
761
+ return E;
762
+ }
763
+ function k(c, g) {
764
+ return s(c) || v(c, g) || K(c, g) || f();
765
+ }
766
+ function K(c, g) {
767
+ if (c) {
768
+ if (typeof c == "string")
769
+ return o(c, g);
770
+ var E = Object.prototype.toString.call(c).slice(8, -1);
771
+ if (E === "Object" && c.constructor && (E = c.constructor.name), E === "Map" || E === "Set")
772
+ return Array.from(E);
773
+ if (E === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))
774
+ return o(c, g);
775
+ }
776
+ }
777
+ (0, m.setTwoToneColor)(r.blue.primary);
778
+ var y = /* @__PURE__ */ t.forwardRef(function(c, g) {
779
+ var E = c.className, S = c.icon, R = c.spin, F = c.rotate, ne = c.tabIndex, de = c.onClick, Ee = c.twoToneColor, Be = C(c, [
780
+ "className",
781
+ "icon",
782
+ "spin",
783
+ "rotate",
784
+ "tabIndex",
785
+ "onClick",
786
+ "twoToneColor"
787
+ ]), z = t.useContext(a.default), Re = z.prefixCls, H = Re === void 0 ? "anticon" : Re, We = z.rootClassName, j, me = (0, n.default)(We, H, (j = {}, _(j, "".concat(H, "-").concat(S.name), !!S.name), _(j, "".concat(H, "-spin"), !!R || S.name === "loading"), j), E), he = ne;
788
+ he === void 0 && de && (he = -1);
789
+ var Ge = F ? {
790
+ msTransform: "rotate(".concat(F, "deg)"),
791
+ transform: "rotate(".concat(F, "deg)")
792
+ } : void 0, be = k((0, l.normalizeTwoToneColors)(Ee), 2), $e = be[0], Ve = be[1];
793
+ return /* @__PURE__ */ t.createElement("span", A(u({
794
+ role: "img",
795
+ "aria-label": S.name
796
+ }, Be), {
797
+ ref: g,
798
+ tabIndex: he,
799
+ onClick: de,
800
+ className: me
801
+ }), /* @__PURE__ */ t.createElement(p.default, {
802
+ icon: S,
803
+ primaryColor: $e,
804
+ secondaryColor: Ve,
805
+ style: Ge
806
+ }));
807
+ });
808
+ y.displayName = "AntdIcon", y.getTwoToneColor = m.getTwoToneColor, y.setTwoToneColor = m.setTwoToneColor;
809
+ var x = y;
810
+ })(er);
811
+ (function(e) {
812
+ Object.defineProperty(e, "__esModule", {
813
+ value: !0
814
+ }), Object.defineProperty(e, "default", {
815
+ enumerable: !0,
816
+ get: function() {
817
+ return M;
818
+ }
819
+ });
820
+ var t = /* @__PURE__ */ l(Te), n = /* @__PURE__ */ p(Gt), r = /* @__PURE__ */ p(er);
821
+ function a(d, v, f) {
822
+ return v in d ? Object.defineProperty(d, v, {
823
+ value: f,
824
+ enumerable: !0,
825
+ configurable: !0,
826
+ writable: !0
827
+ }) : d[v] = f, d;
828
+ }
829
+ function p(d) {
830
+ return d && d.__esModule ? d : {
831
+ default: d
832
+ };
833
+ }
834
+ function m(d) {
835
+ if (typeof WeakMap != "function")
836
+ return null;
837
+ var v = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap();
838
+ return (m = function(u) {
839
+ return u ? f : v;
840
+ })(d);
841
+ }
842
+ function l(d, v) {
843
+ if (!v && d && d.__esModule)
844
+ return d;
845
+ if (d === null || typeof d != "object" && typeof d != "function")
846
+ return {
847
+ default: d
848
+ };
849
+ var f = m(v);
850
+ if (f && f.has(d))
851
+ return f.get(d);
852
+ var u = {}, b = Object.defineProperty && Object.getOwnPropertyDescriptor;
853
+ for (var A in d)
854
+ if (A !== "default" && Object.prototype.hasOwnProperty.call(d, A)) {
855
+ var C = b ? Object.getOwnPropertyDescriptor(d, A) : null;
856
+ C && (C.get || C.set) ? Object.defineProperty(u, A, C) : u[A] = d[A];
857
+ }
858
+ return u.default = d, f && f.set(d, u), u;
859
+ }
860
+ function o(d) {
861
+ for (var v = 1; v < arguments.length; v++) {
862
+ var f = arguments[v] != null ? arguments[v] : {}, u = Object.keys(f);
863
+ typeof Object.getOwnPropertySymbols == "function" && (u = u.concat(Object.getOwnPropertySymbols(f).filter(function(b) {
864
+ return Object.getOwnPropertyDescriptor(f, b).enumerable;
865
+ }))), u.forEach(function(b) {
866
+ a(d, b, f[b]);
867
+ });
868
+ }
869
+ return d;
870
+ }
871
+ function s(d, v) {
872
+ var f = Object.keys(d);
873
+ if (Object.getOwnPropertySymbols) {
874
+ var u = Object.getOwnPropertySymbols(d);
875
+ v && (u = u.filter(function(b) {
876
+ return Object.getOwnPropertyDescriptor(d, b).enumerable;
877
+ })), f.push.apply(f, u);
878
+ }
879
+ return f;
880
+ }
881
+ function _(d, v) {
882
+ return v = v ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(v)) : s(Object(v)).forEach(function(f) {
883
+ Object.defineProperty(d, f, Object.getOwnPropertyDescriptor(v, f));
884
+ }), d;
885
+ }
886
+ var w = function(d, v) {
887
+ return /* @__PURE__ */ t.createElement(r.default, _(o({}, d), {
888
+ ref: v,
889
+ icon: n.default
890
+ }));
891
+ };
892
+ process.env.NODE_ENV !== "production" && (w.displayName = "EllipsisOutlined");
893
+ var M = /* @__PURE__ */ t.forwardRef(w);
894
+ })(Jn);
895
+ const Ni = /* @__PURE__ */ Qn(Jn);
896
+ var mr = {}, ze = {};
897
+ (function(e) {
898
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
899
+ var t;
900
+ (function(r) {
901
+ r.Root = "root", r.Text = "text", r.Directive = "directive", r.Comment = "comment", r.Script = "script", r.Style = "style", r.Tag = "tag", r.CDATA = "cdata", r.Doctype = "doctype";
902
+ })(t = e.ElementType || (e.ElementType = {}));
903
+ function n(r) {
904
+ return r.type === t.Tag || r.type === t.Script || r.type === t.Style;
905
+ }
906
+ e.isTag = n, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype;
907
+ })(ze);
908
+ var P = {}, ce = G && G.__extends || /* @__PURE__ */ function() {
909
+ var e = function(t, n) {
910
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, a) {
911
+ r.__proto__ = a;
912
+ } || function(r, a) {
913
+ for (var p in a)
914
+ Object.prototype.hasOwnProperty.call(a, p) && (r[p] = a[p]);
915
+ }, e(t, n);
916
+ };
917
+ return function(t, n) {
918
+ if (typeof n != "function" && n !== null)
919
+ throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
920
+ e(t, n);
921
+ function r() {
922
+ this.constructor = t;
923
+ }
924
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
925
+ };
926
+ }(), je = G && G.__assign || function() {
927
+ return je = Object.assign || function(e) {
928
+ for (var t, n = 1, r = arguments.length; n < r; n++) {
929
+ t = arguments[n];
930
+ for (var a in t)
931
+ Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
932
+ }
933
+ return e;
934
+ }, je.apply(this, arguments);
935
+ };
936
+ Object.defineProperty(P, "__esModule", { value: !0 });
937
+ P.cloneNode = P.hasChildren = P.isDocument = P.isDirective = P.isComment = P.isText = P.isCDATA = P.isTag = P.Element = P.Document = P.CDATA = P.NodeWithChildren = P.ProcessingInstruction = P.Comment = P.Text = P.DataNode = P.Node = void 0;
938
+ var Y = ze, Qt = (
939
+ /** @class */
940
+ function() {
941
+ function e() {
942
+ this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
943
+ }
944
+ return Object.defineProperty(e.prototype, "parentNode", {
945
+ // Read-write aliases for properties
946
+ /**
947
+ * Same as {@link parent}.
948
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
949
+ */
950
+ get: function() {
951
+ return this.parent;
952
+ },
953
+ set: function(t) {
954
+ this.parent = t;
955
+ },
956
+ enumerable: !1,
957
+ configurable: !0
958
+ }), Object.defineProperty(e.prototype, "previousSibling", {
959
+ /**
960
+ * Same as {@link prev}.
961
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
962
+ */
963
+ get: function() {
964
+ return this.prev;
965
+ },
966
+ set: function(t) {
967
+ this.prev = t;
968
+ },
969
+ enumerable: !1,
970
+ configurable: !0
971
+ }), Object.defineProperty(e.prototype, "nextSibling", {
972
+ /**
973
+ * Same as {@link next}.
974
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
975
+ */
976
+ get: function() {
977
+ return this.next;
978
+ },
979
+ set: function(t) {
980
+ this.next = t;
981
+ },
982
+ enumerable: !1,
983
+ configurable: !0
984
+ }), e.prototype.cloneNode = function(t) {
985
+ return t === void 0 && (t = !1), Jt(this, t);
986
+ }, e;
987
+ }()
988
+ );
989
+ P.Node = Qt;
990
+ var ct = (
991
+ /** @class */
992
+ function(e) {
993
+ ce(t, e);
994
+ function t(n) {
995
+ var r = e.call(this) || this;
996
+ return r.data = n, r;
997
+ }
998
+ return Object.defineProperty(t.prototype, "nodeValue", {
999
+ /**
1000
+ * Same as {@link data}.
1001
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1002
+ */
1003
+ get: function() {
1004
+ return this.data;
1005
+ },
1006
+ set: function(n) {
1007
+ this.data = n;
1008
+ },
1009
+ enumerable: !1,
1010
+ configurable: !0
1011
+ }), t;
1012
+ }(Qt)
1013
+ );
1014
+ P.DataNode = ct;
1015
+ var hr = (
1016
+ /** @class */
1017
+ function(e) {
1018
+ ce(t, e);
1019
+ function t() {
1020
+ var n = e !== null && e.apply(this, arguments) || this;
1021
+ return n.type = Y.ElementType.Text, n;
1022
+ }
1023
+ return Object.defineProperty(t.prototype, "nodeType", {
1024
+ get: function() {
1025
+ return 3;
1026
+ },
1027
+ enumerable: !1,
1028
+ configurable: !0
1029
+ }), t;
1030
+ }(ct)
1031
+ );
1032
+ P.Text = hr;
1033
+ var vr = (
1034
+ /** @class */
1035
+ function(e) {
1036
+ ce(t, e);
1037
+ function t() {
1038
+ var n = e !== null && e.apply(this, arguments) || this;
1039
+ return n.type = Y.ElementType.Comment, n;
1040
+ }
1041
+ return Object.defineProperty(t.prototype, "nodeType", {
1042
+ get: function() {
1043
+ return 8;
1044
+ },
1045
+ enumerable: !1,
1046
+ configurable: !0
1047
+ }), t;
1048
+ }(ct)
1049
+ );
1050
+ P.Comment = vr;
1051
+ var gr = (
1052
+ /** @class */
1053
+ function(e) {
1054
+ ce(t, e);
1055
+ function t(n, r) {
1056
+ var a = e.call(this, r) || this;
1057
+ return a.name = n, a.type = Y.ElementType.Directive, a;
1058
+ }
1059
+ return Object.defineProperty(t.prototype, "nodeType", {
1060
+ get: function() {
1061
+ return 1;
1062
+ },
1063
+ enumerable: !1,
1064
+ configurable: !0
1065
+ }), t;
1066
+ }(ct)
1067
+ );
1068
+ P.ProcessingInstruction = gr;
1069
+ var ut = (
1070
+ /** @class */
1071
+ function(e) {
1072
+ ce(t, e);
1073
+ function t(n) {
1074
+ var r = e.call(this) || this;
1075
+ return r.children = n, r;
1076
+ }
1077
+ return Object.defineProperty(t.prototype, "firstChild", {
1078
+ // Aliases
1079
+ /** First child of the node. */
1080
+ get: function() {
1081
+ var n;
1082
+ return (n = this.children[0]) !== null && n !== void 0 ? n : null;
1083
+ },
1084
+ enumerable: !1,
1085
+ configurable: !0
1086
+ }), Object.defineProperty(t.prototype, "lastChild", {
1087
+ /** Last child of the node. */
1088
+ get: function() {
1089
+ return this.children.length > 0 ? this.children[this.children.length - 1] : null;
1090
+ },
1091
+ enumerable: !1,
1092
+ configurable: !0
1093
+ }), Object.defineProperty(t.prototype, "childNodes", {
1094
+ /**
1095
+ * Same as {@link children}.
1096
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1097
+ */
1098
+ get: function() {
1099
+ return this.children;
1100
+ },
1101
+ set: function(n) {
1102
+ this.children = n;
1103
+ },
1104
+ enumerable: !1,
1105
+ configurable: !0
1106
+ }), t;
1107
+ }(Qt)
1108
+ );
1109
+ P.NodeWithChildren = ut;
1110
+ var yr = (
1111
+ /** @class */
1112
+ function(e) {
1113
+ ce(t, e);
1114
+ function t() {
1115
+ var n = e !== null && e.apply(this, arguments) || this;
1116
+ return n.type = Y.ElementType.CDATA, n;
1117
+ }
1118
+ return Object.defineProperty(t.prototype, "nodeType", {
1119
+ get: function() {
1120
+ return 4;
1121
+ },
1122
+ enumerable: !1,
1123
+ configurable: !0
1124
+ }), t;
1125
+ }(ut)
1126
+ );
1127
+ P.CDATA = yr;
1128
+ var _r = (
1129
+ /** @class */
1130
+ function(e) {
1131
+ ce(t, e);
1132
+ function t() {
1133
+ var n = e !== null && e.apply(this, arguments) || this;
1134
+ return n.type = Y.ElementType.Root, n;
1135
+ }
1136
+ return Object.defineProperty(t.prototype, "nodeType", {
1137
+ get: function() {
1138
+ return 9;
1139
+ },
1140
+ enumerable: !1,
1141
+ configurable: !0
1142
+ }), t;
1143
+ }(ut)
1144
+ );
1145
+ P.Document = _r;
1146
+ var Tr = (
1147
+ /** @class */
1148
+ function(e) {
1149
+ ce(t, e);
1150
+ function t(n, r, a, p) {
1151
+ a === void 0 && (a = []), p === void 0 && (p = n === "script" ? Y.ElementType.Script : n === "style" ? Y.ElementType.Style : Y.ElementType.Tag);
1152
+ var m = e.call(this, a) || this;
1153
+ return m.name = n, m.attribs = r, m.type = p, m;
1154
+ }
1155
+ return Object.defineProperty(t.prototype, "nodeType", {
1156
+ get: function() {
1157
+ return 1;
1158
+ },
1159
+ enumerable: !1,
1160
+ configurable: !0
1161
+ }), Object.defineProperty(t.prototype, "tagName", {
1162
+ // DOM Level 1 aliases
1163
+ /**
1164
+ * Same as {@link name}.
1165
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1166
+ */
1167
+ get: function() {
1168
+ return this.name;
1169
+ },
1170
+ set: function(n) {
1171
+ this.name = n;
1172
+ },
1173
+ enumerable: !1,
1174
+ configurable: !0
1175
+ }), Object.defineProperty(t.prototype, "attributes", {
1176
+ get: function() {
1177
+ var n = this;
1178
+ return Object.keys(this.attribs).map(function(r) {
1179
+ var a, p;
1180
+ return {
1181
+ name: r,
1182
+ value: n.attribs[r],
1183
+ namespace: (a = n["x-attribsNamespace"]) === null || a === void 0 ? void 0 : a[r],
1184
+ prefix: (p = n["x-attribsPrefix"]) === null || p === void 0 ? void 0 : p[r]
1185
+ };
1186
+ });
1187
+ },
1188
+ enumerable: !1,
1189
+ configurable: !0
1190
+ }), t;
1191
+ }(ut)
1192
+ );
1193
+ P.Element = Tr;
1194
+ function Er(e) {
1195
+ return (0, Y.isTag)(e);
1196
+ }
1197
+ P.isTag = Er;
1198
+ function br(e) {
1199
+ return e.type === Y.ElementType.CDATA;
1200
+ }
1201
+ P.isCDATA = br;
1202
+ function Or(e) {
1203
+ return e.type === Y.ElementType.Text;
1204
+ }
1205
+ P.isText = Or;
1206
+ function Cr(e) {
1207
+ return e.type === Y.ElementType.Comment;
1208
+ }
1209
+ P.isComment = Cr;
1210
+ function wr(e) {
1211
+ return e.type === Y.ElementType.Directive;
1212
+ }
1213
+ P.isDirective = wr;
1214
+ function Ar(e) {
1215
+ return e.type === Y.ElementType.Root;
1216
+ }
1217
+ P.isDocument = Ar;
1218
+ function Pi(e) {
1219
+ return Object.prototype.hasOwnProperty.call(e, "children");
1220
+ }
1221
+ P.hasChildren = Pi;
1222
+ function Jt(e, t) {
1223
+ t === void 0 && (t = !1);
1224
+ var n;
1225
+ if (Or(e))
1226
+ n = new hr(e.data);
1227
+ else if (Cr(e))
1228
+ n = new vr(e.data);
1229
+ else if (Er(e)) {
1230
+ var r = t ? Nt(e.children) : [], a = new Tr(e.name, je({}, e.attribs), r);
1231
+ r.forEach(function(o) {
1232
+ return o.parent = a;
1233
+ }), e.namespace != null && (a.namespace = e.namespace), e["x-attribsNamespace"] && (a["x-attribsNamespace"] = je({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (a["x-attribsPrefix"] = je({}, e["x-attribsPrefix"])), n = a;
1234
+ } else if (br(e)) {
1235
+ var r = t ? Nt(e.children) : [], p = new yr(r);
1236
+ r.forEach(function(s) {
1237
+ return s.parent = p;
1238
+ }), n = p;
1239
+ } else if (Ar(e)) {
1240
+ var r = t ? Nt(e.children) : [], m = new _r(r);
1241
+ r.forEach(function(s) {
1242
+ return s.parent = m;
1243
+ }), e["x-mode"] && (m["x-mode"] = e["x-mode"]), n = m;
1244
+ } else if (wr(e)) {
1245
+ var l = new gr(e.name, e.data);
1246
+ e["x-name"] != null && (l["x-name"] = e["x-name"], l["x-publicId"] = e["x-publicId"], l["x-systemId"] = e["x-systemId"]), n = l;
1247
+ } else
1248
+ throw new Error("Not implemented yet: ".concat(e.type));
1249
+ return n.startIndex = e.startIndex, n.endIndex = e.endIndex, e.sourceCodeLocation != null && (n.sourceCodeLocation = e.sourceCodeLocation), n;
1250
+ }
1251
+ P.cloneNode = Jt;
1252
+ function Nt(e) {
1253
+ for (var t = e.map(function(r) {
1254
+ return Jt(r, !0);
1255
+ }), n = 1; n < t.length; n++)
1256
+ t[n].prev = t[n - 1], t[n - 1].next = t[n];
1257
+ return t;
1258
+ }
1259
+ (function(e) {
1260
+ var t = G && G.__createBinding || (Object.create ? function(l, o, s, _) {
1261
+ _ === void 0 && (_ = s);
1262
+ var w = Object.getOwnPropertyDescriptor(o, s);
1263
+ (!w || ("get" in w ? !o.__esModule : w.writable || w.configurable)) && (w = { enumerable: !0, get: function() {
1264
+ return o[s];
1265
+ } }), Object.defineProperty(l, _, w);
1266
+ } : function(l, o, s, _) {
1267
+ _ === void 0 && (_ = s), l[_] = o[s];
1268
+ }), n = G && G.__exportStar || function(l, o) {
1269
+ for (var s in l)
1270
+ s !== "default" && !Object.prototype.hasOwnProperty.call(o, s) && t(o, l, s);
1271
+ };
1272
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
1273
+ var r = ze, a = P;
1274
+ n(P, e);
1275
+ var p = {
1276
+ withStartIndices: !1,
1277
+ withEndIndices: !1,
1278
+ xmlMode: !1
1279
+ }, m = (
1280
+ /** @class */
1281
+ function() {
1282
+ function l(o, s, _) {
1283
+ this.dom = [], this.root = new a.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof s == "function" && (_ = s, s = p), typeof o == "object" && (s = o, o = void 0), this.callback = o ?? null, this.options = s ?? p, this.elementCB = _ ?? null;
1284
+ }
1285
+ return l.prototype.onparserinit = function(o) {
1286
+ this.parser = o;
1287
+ }, l.prototype.onreset = function() {
1288
+ this.dom = [], this.root = new a.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
1289
+ }, l.prototype.onend = function() {
1290
+ this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
1291
+ }, l.prototype.onerror = function(o) {
1292
+ this.handleCallback(o);
1293
+ }, l.prototype.onclosetag = function() {
1294
+ this.lastNode = null;
1295
+ var o = this.tagStack.pop();
1296
+ this.options.withEndIndices && (o.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(o);
1297
+ }, l.prototype.onopentag = function(o, s) {
1298
+ var _ = this.options.xmlMode ? r.ElementType.Tag : void 0, w = new a.Element(o, s, void 0, _);
1299
+ this.addNode(w), this.tagStack.push(w);
1300
+ }, l.prototype.ontext = function(o) {
1301
+ var s = this.lastNode;
1302
+ if (s && s.type === r.ElementType.Text)
1303
+ s.data += o, this.options.withEndIndices && (s.endIndex = this.parser.endIndex);
1304
+ else {
1305
+ var _ = new a.Text(o);
1306
+ this.addNode(_), this.lastNode = _;
1307
+ }
1308
+ }, l.prototype.oncomment = function(o) {
1309
+ if (this.lastNode && this.lastNode.type === r.ElementType.Comment) {
1310
+ this.lastNode.data += o;
1311
+ return;
1312
+ }
1313
+ var s = new a.Comment(o);
1314
+ this.addNode(s), this.lastNode = s;
1315
+ }, l.prototype.oncommentend = function() {
1316
+ this.lastNode = null;
1317
+ }, l.prototype.oncdatastart = function() {
1318
+ var o = new a.Text(""), s = new a.CDATA([o]);
1319
+ this.addNode(s), o.parent = s, this.lastNode = o;
1320
+ }, l.prototype.oncdataend = function() {
1321
+ this.lastNode = null;
1322
+ }, l.prototype.onprocessinginstruction = function(o, s) {
1323
+ var _ = new a.ProcessingInstruction(o, s);
1324
+ this.addNode(_);
1325
+ }, l.prototype.handleCallback = function(o) {
1326
+ if (typeof this.callback == "function")
1327
+ this.callback(o, this.dom);
1328
+ else if (o)
1329
+ throw o;
1330
+ }, l.prototype.addNode = function(o) {
1331
+ var s = this.tagStack[this.tagStack.length - 1], _ = s.children[s.children.length - 1];
1332
+ this.options.withStartIndices && (o.startIndex = this.parser.startIndex), this.options.withEndIndices && (o.endIndex = this.parser.endIndex), s.children.push(o), _ && (o.prev = _, _.next = o), o.parent = s, this.lastNode = null;
1333
+ }, l;
1334
+ }()
1335
+ );
1336
+ e.DomHandler = m, e.default = m;
1337
+ })(mr);
1338
+ var Nn = "html", Pn = "head", Je = "body", Di = /<([a-zA-Z]+[0-9]?)/, Dn = /<head[^]*>/i, Rn = /<body[^]*>/i, ot = function() {
1339
+ throw new Error(
1340
+ "This browser does not support `document.implementation.createHTMLDocument`"
1341
+ );
1342
+ }, Ht = function() {
1343
+ throw new Error(
1344
+ "This browser does not support `DOMParser.prototype.parseFromString`"
1345
+ );
1346
+ }, In = typeof window == "object" && window.DOMParser;
1347
+ if (typeof In == "function") {
1348
+ var Ri = new In(), Ii = "text/html";
1349
+ Ht = function(e, t) {
1350
+ return t && (e = "<" + t + ">" + e + "</" + t + ">"), Ri.parseFromString(e, Ii);
1351
+ }, ot = Ht;
1352
+ }
1353
+ if (typeof document == "object" && document.implementation) {
1354
+ var et = document.implementation.createHTMLDocument();
1355
+ ot = function(e, t) {
1356
+ if (t) {
1357
+ var n = et.documentElement.querySelector(t);
1358
+ return n.innerHTML = e, et;
1359
+ }
1360
+ return et.documentElement.innerHTML = e, et;
1361
+ };
1362
+ }
1363
+ var Pt = typeof document == "object" ? document.createElement("template") : {}, zt;
1364
+ Pt.content && (zt = function(e) {
1365
+ return Pt.innerHTML = e, Pt.content.childNodes;
1366
+ });
1367
+ function Mi(e) {
1368
+ var t, n = e.match(Di);
1369
+ n && n[1] && (t = n[1].toLowerCase());
1370
+ var r, a, p;
1371
+ switch (t) {
1372
+ case Nn:
1373
+ return r = Ht(e), Dn.test(e) || (a = r.querySelector(Pn), a && a.parentNode.removeChild(a)), Rn.test(e) || (a = r.querySelector(Je), a && a.parentNode.removeChild(a)), r.querySelectorAll(Nn);
1374
+ case Pn:
1375
+ case Je:
1376
+ return r = ot(e), p = r.querySelectorAll(t), Rn.test(e) && Dn.test(e) ? p[0].parentNode.childNodes : p;
1377
+ default:
1378
+ return zt ? zt(e) : (a = ot(e, Je).querySelector(Je), a.childNodes);
1379
+ }
1380
+ }
1381
+ var ki = Mi, en = {}, Sr = {}, D = {}, ue = G && G.__extends || /* @__PURE__ */ function() {
1382
+ var e = function(t, n) {
1383
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, a) {
1384
+ r.__proto__ = a;
1385
+ } || function(r, a) {
1386
+ for (var p in a)
1387
+ Object.prototype.hasOwnProperty.call(a, p) && (r[p] = a[p]);
1388
+ }, e(t, n);
1389
+ };
1390
+ return function(t, n) {
1391
+ if (typeof n != "function" && n !== null)
1392
+ throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
1393
+ e(t, n);
1394
+ function r() {
1395
+ this.constructor = t;
1396
+ }
1397
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
1398
+ };
1399
+ }(), Fe = G && G.__assign || function() {
1400
+ return Fe = Object.assign || function(e) {
1401
+ for (var t, n = 1, r = arguments.length; n < r; n++) {
1402
+ t = arguments[n];
1403
+ for (var a in t)
1404
+ Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
1405
+ }
1406
+ return e;
1407
+ }, Fe.apply(this, arguments);
1408
+ };
1409
+ Object.defineProperty(D, "__esModule", { value: !0 });
1410
+ D.cloneNode = D.hasChildren = D.isDocument = D.isDirective = D.isComment = D.isText = D.isCDATA = D.isTag = D.Element = D.Document = D.CDATA = D.NodeWithChildren = D.ProcessingInstruction = D.Comment = D.Text = D.DataNode = D.Node = void 0;
1411
+ var q = ze, tn = (
1412
+ /** @class */
1413
+ function() {
1414
+ function e() {
1415
+ this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
1416
+ }
1417
+ return Object.defineProperty(e.prototype, "parentNode", {
1418
+ // Read-write aliases for properties
1419
+ /**
1420
+ * Same as {@link parent}.
1421
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1422
+ */
1423
+ get: function() {
1424
+ return this.parent;
1425
+ },
1426
+ set: function(t) {
1427
+ this.parent = t;
1428
+ },
1429
+ enumerable: !1,
1430
+ configurable: !0
1431
+ }), Object.defineProperty(e.prototype, "previousSibling", {
1432
+ /**
1433
+ * Same as {@link prev}.
1434
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1435
+ */
1436
+ get: function() {
1437
+ return this.prev;
1438
+ },
1439
+ set: function(t) {
1440
+ this.prev = t;
1441
+ },
1442
+ enumerable: !1,
1443
+ configurable: !0
1444
+ }), Object.defineProperty(e.prototype, "nextSibling", {
1445
+ /**
1446
+ * Same as {@link next}.
1447
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1448
+ */
1449
+ get: function() {
1450
+ return this.next;
1451
+ },
1452
+ set: function(t) {
1453
+ this.next = t;
1454
+ },
1455
+ enumerable: !1,
1456
+ configurable: !0
1457
+ }), e.prototype.cloneNode = function(t) {
1458
+ return t === void 0 && (t = !1), nn(this, t);
1459
+ }, e;
1460
+ }()
1461
+ );
1462
+ D.Node = tn;
1463
+ var ft = (
1464
+ /** @class */
1465
+ function(e) {
1466
+ ue(t, e);
1467
+ function t(n) {
1468
+ var r = e.call(this) || this;
1469
+ return r.data = n, r;
1470
+ }
1471
+ return Object.defineProperty(t.prototype, "nodeValue", {
1472
+ /**
1473
+ * Same as {@link data}.
1474
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1475
+ */
1476
+ get: function() {
1477
+ return this.data;
1478
+ },
1479
+ set: function(n) {
1480
+ this.data = n;
1481
+ },
1482
+ enumerable: !1,
1483
+ configurable: !0
1484
+ }), t;
1485
+ }(tn)
1486
+ );
1487
+ D.DataNode = ft;
1488
+ var xr = (
1489
+ /** @class */
1490
+ function(e) {
1491
+ ue(t, e);
1492
+ function t() {
1493
+ var n = e !== null && e.apply(this, arguments) || this;
1494
+ return n.type = q.ElementType.Text, n;
1495
+ }
1496
+ return Object.defineProperty(t.prototype, "nodeType", {
1497
+ get: function() {
1498
+ return 3;
1499
+ },
1500
+ enumerable: !1,
1501
+ configurable: !0
1502
+ }), t;
1503
+ }(ft)
1504
+ );
1505
+ D.Text = xr;
1506
+ var Nr = (
1507
+ /** @class */
1508
+ function(e) {
1509
+ ue(t, e);
1510
+ function t() {
1511
+ var n = e !== null && e.apply(this, arguments) || this;
1512
+ return n.type = q.ElementType.Comment, n;
1513
+ }
1514
+ return Object.defineProperty(t.prototype, "nodeType", {
1515
+ get: function() {
1516
+ return 8;
1517
+ },
1518
+ enumerable: !1,
1519
+ configurable: !0
1520
+ }), t;
1521
+ }(ft)
1522
+ );
1523
+ D.Comment = Nr;
1524
+ var Pr = (
1525
+ /** @class */
1526
+ function(e) {
1527
+ ue(t, e);
1528
+ function t(n, r) {
1529
+ var a = e.call(this, r) || this;
1530
+ return a.name = n, a.type = q.ElementType.Directive, a;
1531
+ }
1532
+ return Object.defineProperty(t.prototype, "nodeType", {
1533
+ get: function() {
1534
+ return 1;
1535
+ },
1536
+ enumerable: !1,
1537
+ configurable: !0
1538
+ }), t;
1539
+ }(ft)
1540
+ );
1541
+ D.ProcessingInstruction = Pr;
1542
+ var pt = (
1543
+ /** @class */
1544
+ function(e) {
1545
+ ue(t, e);
1546
+ function t(n) {
1547
+ var r = e.call(this) || this;
1548
+ return r.children = n, r;
1549
+ }
1550
+ return Object.defineProperty(t.prototype, "firstChild", {
1551
+ // Aliases
1552
+ /** First child of the node. */
1553
+ get: function() {
1554
+ var n;
1555
+ return (n = this.children[0]) !== null && n !== void 0 ? n : null;
1556
+ },
1557
+ enumerable: !1,
1558
+ configurable: !0
1559
+ }), Object.defineProperty(t.prototype, "lastChild", {
1560
+ /** Last child of the node. */
1561
+ get: function() {
1562
+ return this.children.length > 0 ? this.children[this.children.length - 1] : null;
1563
+ },
1564
+ enumerable: !1,
1565
+ configurable: !0
1566
+ }), Object.defineProperty(t.prototype, "childNodes", {
1567
+ /**
1568
+ * Same as {@link children}.
1569
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1570
+ */
1571
+ get: function() {
1572
+ return this.children;
1573
+ },
1574
+ set: function(n) {
1575
+ this.children = n;
1576
+ },
1577
+ enumerable: !1,
1578
+ configurable: !0
1579
+ }), t;
1580
+ }(tn)
1581
+ );
1582
+ D.NodeWithChildren = pt;
1583
+ var Dr = (
1584
+ /** @class */
1585
+ function(e) {
1586
+ ue(t, e);
1587
+ function t() {
1588
+ var n = e !== null && e.apply(this, arguments) || this;
1589
+ return n.type = q.ElementType.CDATA, n;
1590
+ }
1591
+ return Object.defineProperty(t.prototype, "nodeType", {
1592
+ get: function() {
1593
+ return 4;
1594
+ },
1595
+ enumerable: !1,
1596
+ configurable: !0
1597
+ }), t;
1598
+ }(pt)
1599
+ );
1600
+ D.CDATA = Dr;
1601
+ var Rr = (
1602
+ /** @class */
1603
+ function(e) {
1604
+ ue(t, e);
1605
+ function t() {
1606
+ var n = e !== null && e.apply(this, arguments) || this;
1607
+ return n.type = q.ElementType.Root, n;
1608
+ }
1609
+ return Object.defineProperty(t.prototype, "nodeType", {
1610
+ get: function() {
1611
+ return 9;
1612
+ },
1613
+ enumerable: !1,
1614
+ configurable: !0
1615
+ }), t;
1616
+ }(pt)
1617
+ );
1618
+ D.Document = Rr;
1619
+ var Ir = (
1620
+ /** @class */
1621
+ function(e) {
1622
+ ue(t, e);
1623
+ function t(n, r, a, p) {
1624
+ a === void 0 && (a = []), p === void 0 && (p = n === "script" ? q.ElementType.Script : n === "style" ? q.ElementType.Style : q.ElementType.Tag);
1625
+ var m = e.call(this, a) || this;
1626
+ return m.name = n, m.attribs = r, m.type = p, m;
1627
+ }
1628
+ return Object.defineProperty(t.prototype, "nodeType", {
1629
+ get: function() {
1630
+ return 1;
1631
+ },
1632
+ enumerable: !1,
1633
+ configurable: !0
1634
+ }), Object.defineProperty(t.prototype, "tagName", {
1635
+ // DOM Level 1 aliases
1636
+ /**
1637
+ * Same as {@link name}.
1638
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1639
+ */
1640
+ get: function() {
1641
+ return this.name;
1642
+ },
1643
+ set: function(n) {
1644
+ this.name = n;
1645
+ },
1646
+ enumerable: !1,
1647
+ configurable: !0
1648
+ }), Object.defineProperty(t.prototype, "attributes", {
1649
+ get: function() {
1650
+ var n = this;
1651
+ return Object.keys(this.attribs).map(function(r) {
1652
+ var a, p;
1653
+ return {
1654
+ name: r,
1655
+ value: n.attribs[r],
1656
+ namespace: (a = n["x-attribsNamespace"]) === null || a === void 0 ? void 0 : a[r],
1657
+ prefix: (p = n["x-attribsPrefix"]) === null || p === void 0 ? void 0 : p[r]
1658
+ };
1659
+ });
1660
+ },
1661
+ enumerable: !1,
1662
+ configurable: !0
1663
+ }), t;
1664
+ }(pt)
1665
+ );
1666
+ D.Element = Ir;
1667
+ function Mr(e) {
1668
+ return (0, q.isTag)(e);
1669
+ }
1670
+ D.isTag = Mr;
1671
+ function kr(e) {
1672
+ return e.type === q.ElementType.CDATA;
1673
+ }
1674
+ D.isCDATA = kr;
1675
+ function Lr(e) {
1676
+ return e.type === q.ElementType.Text;
1677
+ }
1678
+ D.isText = Lr;
1679
+ function jr(e) {
1680
+ return e.type === q.ElementType.Comment;
1681
+ }
1682
+ D.isComment = jr;
1683
+ function Fr(e) {
1684
+ return e.type === q.ElementType.Directive;
1685
+ }
1686
+ D.isDirective = Fr;
1687
+ function Ur(e) {
1688
+ return e.type === q.ElementType.Root;
1689
+ }
1690
+ D.isDocument = Ur;
1691
+ function Li(e) {
1692
+ return Object.prototype.hasOwnProperty.call(e, "children");
1693
+ }
1694
+ D.hasChildren = Li;
1695
+ function nn(e, t) {
1696
+ t === void 0 && (t = !1);
1697
+ var n;
1698
+ if (Lr(e))
1699
+ n = new xr(e.data);
1700
+ else if (jr(e))
1701
+ n = new Nr(e.data);
1702
+ else if (Mr(e)) {
1703
+ var r = t ? Dt(e.children) : [], a = new Ir(e.name, Fe({}, e.attribs), r);
1704
+ r.forEach(function(o) {
1705
+ return o.parent = a;
1706
+ }), e.namespace != null && (a.namespace = e.namespace), e["x-attribsNamespace"] && (a["x-attribsNamespace"] = Fe({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (a["x-attribsPrefix"] = Fe({}, e["x-attribsPrefix"])), n = a;
1707
+ } else if (kr(e)) {
1708
+ var r = t ? Dt(e.children) : [], p = new Dr(r);
1709
+ r.forEach(function(s) {
1710
+ return s.parent = p;
1711
+ }), n = p;
1712
+ } else if (Ur(e)) {
1713
+ var r = t ? Dt(e.children) : [], m = new Rr(r);
1714
+ r.forEach(function(s) {
1715
+ return s.parent = m;
1716
+ }), e["x-mode"] && (m["x-mode"] = e["x-mode"]), n = m;
1717
+ } else if (Fr(e)) {
1718
+ var l = new Pr(e.name, e.data);
1719
+ e["x-name"] != null && (l["x-name"] = e["x-name"], l["x-publicId"] = e["x-publicId"], l["x-systemId"] = e["x-systemId"]), n = l;
1720
+ } else
1721
+ throw new Error("Not implemented yet: ".concat(e.type));
1722
+ return n.startIndex = e.startIndex, n.endIndex = e.endIndex, e.sourceCodeLocation != null && (n.sourceCodeLocation = e.sourceCodeLocation), n;
1723
+ }
1724
+ D.cloneNode = nn;
1725
+ function Dt(e) {
1726
+ for (var t = e.map(function(r) {
1727
+ return nn(r, !0);
1728
+ }), n = 1; n < t.length; n++)
1729
+ t[n].prev = t[n - 1], t[n - 1].next = t[n];
1730
+ return t;
1731
+ }
1732
+ (function(e) {
1733
+ var t = G && G.__createBinding || (Object.create ? function(l, o, s, _) {
1734
+ _ === void 0 && (_ = s);
1735
+ var w = Object.getOwnPropertyDescriptor(o, s);
1736
+ (!w || ("get" in w ? !o.__esModule : w.writable || w.configurable)) && (w = { enumerable: !0, get: function() {
1737
+ return o[s];
1738
+ } }), Object.defineProperty(l, _, w);
1739
+ } : function(l, o, s, _) {
1740
+ _ === void 0 && (_ = s), l[_] = o[s];
1741
+ }), n = G && G.__exportStar || function(l, o) {
1742
+ for (var s in l)
1743
+ s !== "default" && !Object.prototype.hasOwnProperty.call(o, s) && t(o, l, s);
1744
+ };
1745
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
1746
+ var r = ze, a = D;
1747
+ n(D, e);
1748
+ var p = {
1749
+ withStartIndices: !1,
1750
+ withEndIndices: !1,
1751
+ xmlMode: !1
1752
+ }, m = (
1753
+ /** @class */
1754
+ function() {
1755
+ function l(o, s, _) {
1756
+ this.dom = [], this.root = new a.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof s == "function" && (_ = s, s = p), typeof o == "object" && (s = o, o = void 0), this.callback = o ?? null, this.options = s ?? p, this.elementCB = _ ?? null;
1757
+ }
1758
+ return l.prototype.onparserinit = function(o) {
1759
+ this.parser = o;
1760
+ }, l.prototype.onreset = function() {
1761
+ this.dom = [], this.root = new a.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
1762
+ }, l.prototype.onend = function() {
1763
+ this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
1764
+ }, l.prototype.onerror = function(o) {
1765
+ this.handleCallback(o);
1766
+ }, l.prototype.onclosetag = function() {
1767
+ this.lastNode = null;
1768
+ var o = this.tagStack.pop();
1769
+ this.options.withEndIndices && (o.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(o);
1770
+ }, l.prototype.onopentag = function(o, s) {
1771
+ var _ = this.options.xmlMode ? r.ElementType.Tag : void 0, w = new a.Element(o, s, void 0, _);
1772
+ this.addNode(w), this.tagStack.push(w);
1773
+ }, l.prototype.ontext = function(o) {
1774
+ var s = this.lastNode;
1775
+ if (s && s.type === r.ElementType.Text)
1776
+ s.data += o, this.options.withEndIndices && (s.endIndex = this.parser.endIndex);
1777
+ else {
1778
+ var _ = new a.Text(o);
1779
+ this.addNode(_), this.lastNode = _;
1780
+ }
1781
+ }, l.prototype.oncomment = function(o) {
1782
+ if (this.lastNode && this.lastNode.type === r.ElementType.Comment) {
1783
+ this.lastNode.data += o;
1784
+ return;
1785
+ }
1786
+ var s = new a.Comment(o);
1787
+ this.addNode(s), this.lastNode = s;
1788
+ }, l.prototype.oncommentend = function() {
1789
+ this.lastNode = null;
1790
+ }, l.prototype.oncdatastart = function() {
1791
+ var o = new a.Text(""), s = new a.CDATA([o]);
1792
+ this.addNode(s), o.parent = s, this.lastNode = o;
1793
+ }, l.prototype.oncdataend = function() {
1794
+ this.lastNode = null;
1795
+ }, l.prototype.onprocessinginstruction = function(o, s) {
1796
+ var _ = new a.ProcessingInstruction(o, s);
1797
+ this.addNode(_);
1798
+ }, l.prototype.handleCallback = function(o) {
1799
+ if (typeof this.callback == "function")
1800
+ this.callback(o, this.dom);
1801
+ else if (o)
1802
+ throw o;
1803
+ }, l.prototype.addNode = function(o) {
1804
+ var s = this.tagStack[this.tagStack.length - 1], _ = s.children[s.children.length - 1];
1805
+ this.options.withStartIndices && (o.startIndex = this.parser.startIndex), this.options.withEndIndices && (o.endIndex = this.parser.endIndex), s.children.push(o), _ && (o.prev = _, _.next = o), o.parent = s, this.lastNode = null;
1806
+ }, l;
1807
+ }()
1808
+ );
1809
+ e.DomHandler = m, e.default = m;
1810
+ })(Sr);
1811
+ var Hr = {};
1812
+ Hr.CASE_SENSITIVE_TAG_NAMES = [
1813
+ "animateMotion",
1814
+ "animateTransform",
1815
+ "clipPath",
1816
+ "feBlend",
1817
+ "feColorMatrix",
1818
+ "feComponentTransfer",
1819
+ "feComposite",
1820
+ "feConvolveMatrix",
1821
+ "feDiffuseLighting",
1822
+ "feDisplacementMap",
1823
+ "feDropShadow",
1824
+ "feFlood",
1825
+ "feFuncA",
1826
+ "feFuncB",
1827
+ "feFuncG",
1828
+ "feFuncR",
1829
+ "feGaussianBlur",
1830
+ "feImage",
1831
+ "feMerge",
1832
+ "feMergeNode",
1833
+ "feMorphology",
1834
+ "feOffset",
1835
+ "fePointLight",
1836
+ "feSpecularLighting",
1837
+ "feSpotLight",
1838
+ "feTile",
1839
+ "feTurbulence",
1840
+ "foreignObject",
1841
+ "linearGradient",
1842
+ "radialGradient",
1843
+ "textPath"
1844
+ ];
1845
+ var dt = Sr, ji = Hr, Mn = ji.CASE_SENSITIVE_TAG_NAMES, Fi = dt.Comment, Ui = dt.Element, Hi = dt.ProcessingInstruction, zi = dt.Text, zr = {}, Rt;
1846
+ for (var It = 0, Bi = Mn.length; It < Bi; It++)
1847
+ Rt = Mn[It], zr[Rt.toLowerCase()] = Rt;
1848
+ function Wi(e) {
1849
+ return zr[e];
1850
+ }
1851
+ function Br(e) {
1852
+ for (var t = {}, n, r = 0, a = e.length; r < a; r++)
1853
+ n = e[r], t[n.name] = n.value;
1854
+ return t;
1855
+ }
1856
+ function Gi(e) {
1857
+ e = e.toLowerCase();
1858
+ var t = Wi(e);
1859
+ return t || e;
1860
+ }
1861
+ function Wr(e, t, n) {
1862
+ t = t || null;
1863
+ for (var r = [], a, p = 0, m = e.length; p < m; p++) {
1864
+ var l = e[p], o;
1865
+ switch (l.nodeType) {
1866
+ case 1:
1867
+ a = Gi(l.nodeName), o = new Ui(a, Br(l.attributes)), o.children = Wr(
1868
+ // template children are on content
1869
+ a === "template" ? l.content.childNodes : l.childNodes,
1870
+ o
1871
+ );
1872
+ break;
1873
+ case 3:
1874
+ o = new zi(l.nodeValue);
1875
+ break;
1876
+ case 8:
1877
+ o = new Fi(l.nodeValue);
1878
+ break;
1879
+ default:
1880
+ continue;
1881
+ }
1882
+ var s = r[p - 1] || null;
1883
+ s && (s.next = o), o.parent = t, o.prev = s, o.next = null, r.push(o);
1884
+ }
1885
+ return n && (o = new Hi(
1886
+ n.substring(0, n.indexOf(" ")).toLowerCase(),
1887
+ n
1888
+ ), o.next = r[0] || null, o.parent = t, r.unshift(o), r[1] && (r[1].prev = r[0])), r;
1889
+ }
1890
+ en.formatAttributes = Br;
1891
+ en.formatDOM = Wr;
1892
+ var $i = ki, Vi = en, Xi = Vi.formatDOM, Yi = /<(![a-zA-Z\s]+)>/;
1893
+ function qi(e) {
1894
+ if (typeof e != "string")
1895
+ throw new TypeError("First argument must be a string");
1896
+ if (e === "")
1897
+ return [];
1898
+ var t = e.match(Yi), n;
1899
+ return t && t[1] && (n = t[1]), Xi($i(e), null, n);
1900
+ }
1901
+ var Zi = qi, te = {}, mt = {}, Ki = 0;
1902
+ mt.SAME = Ki;
1903
+ var Qi = 1;
1904
+ mt.CAMELCASE = Qi;
1905
+ mt.possibleStandardNames = {
1906
+ accept: 0,
1907
+ acceptCharset: 1,
1908
+ "accept-charset": "acceptCharset",
1909
+ accessKey: 1,
1910
+ action: 0,
1911
+ allowFullScreen: 1,
1912
+ alt: 0,
1913
+ as: 0,
1914
+ async: 0,
1915
+ autoCapitalize: 1,
1916
+ autoComplete: 1,
1917
+ autoCorrect: 1,
1918
+ autoFocus: 1,
1919
+ autoPlay: 1,
1920
+ autoSave: 1,
1921
+ capture: 0,
1922
+ cellPadding: 1,
1923
+ cellSpacing: 1,
1924
+ challenge: 0,
1925
+ charSet: 1,
1926
+ checked: 0,
1927
+ children: 0,
1928
+ cite: 0,
1929
+ class: "className",
1930
+ classID: 1,
1931
+ className: 1,
1932
+ cols: 0,
1933
+ colSpan: 1,
1934
+ content: 0,
1935
+ contentEditable: 1,
1936
+ contextMenu: 1,
1937
+ controls: 0,
1938
+ controlsList: 1,
1939
+ coords: 0,
1940
+ crossOrigin: 1,
1941
+ dangerouslySetInnerHTML: 1,
1942
+ data: 0,
1943
+ dateTime: 1,
1944
+ default: 0,
1945
+ defaultChecked: 1,
1946
+ defaultValue: 1,
1947
+ defer: 0,
1948
+ dir: 0,
1949
+ disabled: 0,
1950
+ disablePictureInPicture: 1,
1951
+ disableRemotePlayback: 1,
1952
+ download: 0,
1953
+ draggable: 0,
1954
+ encType: 1,
1955
+ enterKeyHint: 1,
1956
+ for: "htmlFor",
1957
+ form: 0,
1958
+ formMethod: 1,
1959
+ formAction: 1,
1960
+ formEncType: 1,
1961
+ formNoValidate: 1,
1962
+ formTarget: 1,
1963
+ frameBorder: 1,
1964
+ headers: 0,
1965
+ height: 0,
1966
+ hidden: 0,
1967
+ high: 0,
1968
+ href: 0,
1969
+ hrefLang: 1,
1970
+ htmlFor: 1,
1971
+ httpEquiv: 1,
1972
+ "http-equiv": "httpEquiv",
1973
+ icon: 0,
1974
+ id: 0,
1975
+ innerHTML: 1,
1976
+ inputMode: 1,
1977
+ integrity: 0,
1978
+ is: 0,
1979
+ itemID: 1,
1980
+ itemProp: 1,
1981
+ itemRef: 1,
1982
+ itemScope: 1,
1983
+ itemType: 1,
1984
+ keyParams: 1,
1985
+ keyType: 1,
1986
+ kind: 0,
1987
+ label: 0,
1988
+ lang: 0,
1989
+ list: 0,
1990
+ loop: 0,
1991
+ low: 0,
1992
+ manifest: 0,
1993
+ marginWidth: 1,
1994
+ marginHeight: 1,
1995
+ max: 0,
1996
+ maxLength: 1,
1997
+ media: 0,
1998
+ mediaGroup: 1,
1999
+ method: 0,
2000
+ min: 0,
2001
+ minLength: 1,
2002
+ multiple: 0,
2003
+ muted: 0,
2004
+ name: 0,
2005
+ noModule: 1,
2006
+ nonce: 0,
2007
+ noValidate: 1,
2008
+ open: 0,
2009
+ optimum: 0,
2010
+ pattern: 0,
2011
+ placeholder: 0,
2012
+ playsInline: 1,
2013
+ poster: 0,
2014
+ preload: 0,
2015
+ profile: 0,
2016
+ radioGroup: 1,
2017
+ readOnly: 1,
2018
+ referrerPolicy: 1,
2019
+ rel: 0,
2020
+ required: 0,
2021
+ reversed: 0,
2022
+ role: 0,
2023
+ rows: 0,
2024
+ rowSpan: 1,
2025
+ sandbox: 0,
2026
+ scope: 0,
2027
+ scoped: 0,
2028
+ scrolling: 0,
2029
+ seamless: 0,
2030
+ selected: 0,
2031
+ shape: 0,
2032
+ size: 0,
2033
+ sizes: 0,
2034
+ span: 0,
2035
+ spellCheck: 1,
2036
+ src: 0,
2037
+ srcDoc: 1,
2038
+ srcLang: 1,
2039
+ srcSet: 1,
2040
+ start: 0,
2041
+ step: 0,
2042
+ style: 0,
2043
+ summary: 0,
2044
+ tabIndex: 1,
2045
+ target: 0,
2046
+ title: 0,
2047
+ type: 0,
2048
+ useMap: 1,
2049
+ value: 0,
2050
+ width: 0,
2051
+ wmode: 0,
2052
+ wrap: 0,
2053
+ about: 0,
2054
+ accentHeight: 1,
2055
+ "accent-height": "accentHeight",
2056
+ accumulate: 0,
2057
+ additive: 0,
2058
+ alignmentBaseline: 1,
2059
+ "alignment-baseline": "alignmentBaseline",
2060
+ allowReorder: 1,
2061
+ alphabetic: 0,
2062
+ amplitude: 0,
2063
+ arabicForm: 1,
2064
+ "arabic-form": "arabicForm",
2065
+ ascent: 0,
2066
+ attributeName: 1,
2067
+ attributeType: 1,
2068
+ autoReverse: 1,
2069
+ azimuth: 0,
2070
+ baseFrequency: 1,
2071
+ baselineShift: 1,
2072
+ "baseline-shift": "baselineShift",
2073
+ baseProfile: 1,
2074
+ bbox: 0,
2075
+ begin: 0,
2076
+ bias: 0,
2077
+ by: 0,
2078
+ calcMode: 1,
2079
+ capHeight: 1,
2080
+ "cap-height": "capHeight",
2081
+ clip: 0,
2082
+ clipPath: 1,
2083
+ "clip-path": "clipPath",
2084
+ clipPathUnits: 1,
2085
+ clipRule: 1,
2086
+ "clip-rule": "clipRule",
2087
+ color: 0,
2088
+ colorInterpolation: 1,
2089
+ "color-interpolation": "colorInterpolation",
2090
+ colorInterpolationFilters: 1,
2091
+ "color-interpolation-filters": "colorInterpolationFilters",
2092
+ colorProfile: 1,
2093
+ "color-profile": "colorProfile",
2094
+ colorRendering: 1,
2095
+ "color-rendering": "colorRendering",
2096
+ contentScriptType: 1,
2097
+ contentStyleType: 1,
2098
+ cursor: 0,
2099
+ cx: 0,
2100
+ cy: 0,
2101
+ d: 0,
2102
+ datatype: 0,
2103
+ decelerate: 0,
2104
+ descent: 0,
2105
+ diffuseConstant: 1,
2106
+ direction: 0,
2107
+ display: 0,
2108
+ divisor: 0,
2109
+ dominantBaseline: 1,
2110
+ "dominant-baseline": "dominantBaseline",
2111
+ dur: 0,
2112
+ dx: 0,
2113
+ dy: 0,
2114
+ edgeMode: 1,
2115
+ elevation: 0,
2116
+ enableBackground: 1,
2117
+ "enable-background": "enableBackground",
2118
+ end: 0,
2119
+ exponent: 0,
2120
+ externalResourcesRequired: 1,
2121
+ fill: 0,
2122
+ fillOpacity: 1,
2123
+ "fill-opacity": "fillOpacity",
2124
+ fillRule: 1,
2125
+ "fill-rule": "fillRule",
2126
+ filter: 0,
2127
+ filterRes: 1,
2128
+ filterUnits: 1,
2129
+ floodOpacity: 1,
2130
+ "flood-opacity": "floodOpacity",
2131
+ floodColor: 1,
2132
+ "flood-color": "floodColor",
2133
+ focusable: 0,
2134
+ fontFamily: 1,
2135
+ "font-family": "fontFamily",
2136
+ fontSize: 1,
2137
+ "font-size": "fontSize",
2138
+ fontSizeAdjust: 1,
2139
+ "font-size-adjust": "fontSizeAdjust",
2140
+ fontStretch: 1,
2141
+ "font-stretch": "fontStretch",
2142
+ fontStyle: 1,
2143
+ "font-style": "fontStyle",
2144
+ fontVariant: 1,
2145
+ "font-variant": "fontVariant",
2146
+ fontWeight: 1,
2147
+ "font-weight": "fontWeight",
2148
+ format: 0,
2149
+ from: 0,
2150
+ fx: 0,
2151
+ fy: 0,
2152
+ g1: 0,
2153
+ g2: 0,
2154
+ glyphName: 1,
2155
+ "glyph-name": "glyphName",
2156
+ glyphOrientationHorizontal: 1,
2157
+ "glyph-orientation-horizontal": "glyphOrientationHorizontal",
2158
+ glyphOrientationVertical: 1,
2159
+ "glyph-orientation-vertical": "glyphOrientationVertical",
2160
+ glyphRef: 1,
2161
+ gradientTransform: 1,
2162
+ gradientUnits: 1,
2163
+ hanging: 0,
2164
+ horizAdvX: 1,
2165
+ "horiz-adv-x": "horizAdvX",
2166
+ horizOriginX: 1,
2167
+ "horiz-origin-x": "horizOriginX",
2168
+ ideographic: 0,
2169
+ imageRendering: 1,
2170
+ "image-rendering": "imageRendering",
2171
+ in2: 0,
2172
+ in: 0,
2173
+ inlist: 0,
2174
+ intercept: 0,
2175
+ k1: 0,
2176
+ k2: 0,
2177
+ k3: 0,
2178
+ k4: 0,
2179
+ k: 0,
2180
+ kernelMatrix: 1,
2181
+ kernelUnitLength: 1,
2182
+ kerning: 0,
2183
+ keyPoints: 1,
2184
+ keySplines: 1,
2185
+ keyTimes: 1,
2186
+ lengthAdjust: 1,
2187
+ letterSpacing: 1,
2188
+ "letter-spacing": "letterSpacing",
2189
+ lightingColor: 1,
2190
+ "lighting-color": "lightingColor",
2191
+ limitingConeAngle: 1,
2192
+ local: 0,
2193
+ markerEnd: 1,
2194
+ "marker-end": "markerEnd",
2195
+ markerHeight: 1,
2196
+ markerMid: 1,
2197
+ "marker-mid": "markerMid",
2198
+ markerStart: 1,
2199
+ "marker-start": "markerStart",
2200
+ markerUnits: 1,
2201
+ markerWidth: 1,
2202
+ mask: 0,
2203
+ maskContentUnits: 1,
2204
+ maskUnits: 1,
2205
+ mathematical: 0,
2206
+ mode: 0,
2207
+ numOctaves: 1,
2208
+ offset: 0,
2209
+ opacity: 0,
2210
+ operator: 0,
2211
+ order: 0,
2212
+ orient: 0,
2213
+ orientation: 0,
2214
+ origin: 0,
2215
+ overflow: 0,
2216
+ overlinePosition: 1,
2217
+ "overline-position": "overlinePosition",
2218
+ overlineThickness: 1,
2219
+ "overline-thickness": "overlineThickness",
2220
+ paintOrder: 1,
2221
+ "paint-order": "paintOrder",
2222
+ panose1: 0,
2223
+ "panose-1": "panose1",
2224
+ pathLength: 1,
2225
+ patternContentUnits: 1,
2226
+ patternTransform: 1,
2227
+ patternUnits: 1,
2228
+ pointerEvents: 1,
2229
+ "pointer-events": "pointerEvents",
2230
+ points: 0,
2231
+ pointsAtX: 1,
2232
+ pointsAtY: 1,
2233
+ pointsAtZ: 1,
2234
+ prefix: 0,
2235
+ preserveAlpha: 1,
2236
+ preserveAspectRatio: 1,
2237
+ primitiveUnits: 1,
2238
+ property: 0,
2239
+ r: 0,
2240
+ radius: 0,
2241
+ refX: 1,
2242
+ refY: 1,
2243
+ renderingIntent: 1,
2244
+ "rendering-intent": "renderingIntent",
2245
+ repeatCount: 1,
2246
+ repeatDur: 1,
2247
+ requiredExtensions: 1,
2248
+ requiredFeatures: 1,
2249
+ resource: 0,
2250
+ restart: 0,
2251
+ result: 0,
2252
+ results: 0,
2253
+ rotate: 0,
2254
+ rx: 0,
2255
+ ry: 0,
2256
+ scale: 0,
2257
+ security: 0,
2258
+ seed: 0,
2259
+ shapeRendering: 1,
2260
+ "shape-rendering": "shapeRendering",
2261
+ slope: 0,
2262
+ spacing: 0,
2263
+ specularConstant: 1,
2264
+ specularExponent: 1,
2265
+ speed: 0,
2266
+ spreadMethod: 1,
2267
+ startOffset: 1,
2268
+ stdDeviation: 1,
2269
+ stemh: 0,
2270
+ stemv: 0,
2271
+ stitchTiles: 1,
2272
+ stopColor: 1,
2273
+ "stop-color": "stopColor",
2274
+ stopOpacity: 1,
2275
+ "stop-opacity": "stopOpacity",
2276
+ strikethroughPosition: 1,
2277
+ "strikethrough-position": "strikethroughPosition",
2278
+ strikethroughThickness: 1,
2279
+ "strikethrough-thickness": "strikethroughThickness",
2280
+ string: 0,
2281
+ stroke: 0,
2282
+ strokeDasharray: 1,
2283
+ "stroke-dasharray": "strokeDasharray",
2284
+ strokeDashoffset: 1,
2285
+ "stroke-dashoffset": "strokeDashoffset",
2286
+ strokeLinecap: 1,
2287
+ "stroke-linecap": "strokeLinecap",
2288
+ strokeLinejoin: 1,
2289
+ "stroke-linejoin": "strokeLinejoin",
2290
+ strokeMiterlimit: 1,
2291
+ "stroke-miterlimit": "strokeMiterlimit",
2292
+ strokeWidth: 1,
2293
+ "stroke-width": "strokeWidth",
2294
+ strokeOpacity: 1,
2295
+ "stroke-opacity": "strokeOpacity",
2296
+ suppressContentEditableWarning: 1,
2297
+ suppressHydrationWarning: 1,
2298
+ surfaceScale: 1,
2299
+ systemLanguage: 1,
2300
+ tableValues: 1,
2301
+ targetX: 1,
2302
+ targetY: 1,
2303
+ textAnchor: 1,
2304
+ "text-anchor": "textAnchor",
2305
+ textDecoration: 1,
2306
+ "text-decoration": "textDecoration",
2307
+ textLength: 1,
2308
+ textRendering: 1,
2309
+ "text-rendering": "textRendering",
2310
+ to: 0,
2311
+ transform: 0,
2312
+ typeof: 0,
2313
+ u1: 0,
2314
+ u2: 0,
2315
+ underlinePosition: 1,
2316
+ "underline-position": "underlinePosition",
2317
+ underlineThickness: 1,
2318
+ "underline-thickness": "underlineThickness",
2319
+ unicode: 0,
2320
+ unicodeBidi: 1,
2321
+ "unicode-bidi": "unicodeBidi",
2322
+ unicodeRange: 1,
2323
+ "unicode-range": "unicodeRange",
2324
+ unitsPerEm: 1,
2325
+ "units-per-em": "unitsPerEm",
2326
+ unselectable: 0,
2327
+ vAlphabetic: 1,
2328
+ "v-alphabetic": "vAlphabetic",
2329
+ values: 0,
2330
+ vectorEffect: 1,
2331
+ "vector-effect": "vectorEffect",
2332
+ version: 0,
2333
+ vertAdvY: 1,
2334
+ "vert-adv-y": "vertAdvY",
2335
+ vertOriginX: 1,
2336
+ "vert-origin-x": "vertOriginX",
2337
+ vertOriginY: 1,
2338
+ "vert-origin-y": "vertOriginY",
2339
+ vHanging: 1,
2340
+ "v-hanging": "vHanging",
2341
+ vIdeographic: 1,
2342
+ "v-ideographic": "vIdeographic",
2343
+ viewBox: 1,
2344
+ viewTarget: 1,
2345
+ visibility: 0,
2346
+ vMathematical: 1,
2347
+ "v-mathematical": "vMathematical",
2348
+ vocab: 0,
2349
+ widths: 0,
2350
+ wordSpacing: 1,
2351
+ "word-spacing": "wordSpacing",
2352
+ writingMode: 1,
2353
+ "writing-mode": "writingMode",
2354
+ x1: 0,
2355
+ x2: 0,
2356
+ x: 0,
2357
+ xChannelSelector: 1,
2358
+ xHeight: 1,
2359
+ "x-height": "xHeight",
2360
+ xlinkActuate: 1,
2361
+ "xlink:actuate": "xlinkActuate",
2362
+ xlinkArcrole: 1,
2363
+ "xlink:arcrole": "xlinkArcrole",
2364
+ xlinkHref: 1,
2365
+ "xlink:href": "xlinkHref",
2366
+ xlinkRole: 1,
2367
+ "xlink:role": "xlinkRole",
2368
+ xlinkShow: 1,
2369
+ "xlink:show": "xlinkShow",
2370
+ xlinkTitle: 1,
2371
+ "xlink:title": "xlinkTitle",
2372
+ xlinkType: 1,
2373
+ "xlink:type": "xlinkType",
2374
+ xmlBase: 1,
2375
+ "xml:base": "xmlBase",
2376
+ xmlLang: 1,
2377
+ "xml:lang": "xmlLang",
2378
+ xmlns: 0,
2379
+ "xml:space": "xmlSpace",
2380
+ xmlnsXlink: 1,
2381
+ "xmlns:xlink": "xmlnsXlink",
2382
+ xmlSpace: 1,
2383
+ y1: 0,
2384
+ y2: 0,
2385
+ y: 0,
2386
+ yChannelSelector: 1,
2387
+ z: 0,
2388
+ zoomAndPan: 1
2389
+ };
2390
+ Object.defineProperty(te, "__esModule", { value: !0 });
2391
+ function Ji(e, t) {
2392
+ return eo(e) || to(e, t) || no(e, t) || ro();
2393
+ }
2394
+ function eo(e) {
2395
+ if (Array.isArray(e))
2396
+ return e;
2397
+ }
2398
+ function to(e, t) {
2399
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2400
+ if (n != null) {
2401
+ var r = [], a = !0, p = !1, m, l;
2402
+ try {
2403
+ for (n = n.call(e); !(a = (m = n.next()).done) && (r.push(m.value), !(t && r.length === t)); a = !0)
2404
+ ;
2405
+ } catch (o) {
2406
+ p = !0, l = o;
2407
+ } finally {
2408
+ try {
2409
+ !a && n.return != null && n.return();
2410
+ } finally {
2411
+ if (p)
2412
+ throw l;
2413
+ }
2414
+ }
2415
+ return r;
2416
+ }
2417
+ }
2418
+ function no(e, t) {
2419
+ if (e) {
2420
+ if (typeof e == "string")
2421
+ return kn(e, t);
2422
+ var n = Object.prototype.toString.call(e).slice(8, -1);
2423
+ if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set")
2424
+ return Array.from(e);
2425
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
2426
+ return kn(e, t);
2427
+ }
2428
+ }
2429
+ function kn(e, t) {
2430
+ (t == null || t > e.length) && (t = e.length);
2431
+ for (var n = 0, r = new Array(t); n < t; n++)
2432
+ r[n] = e[n];
2433
+ return r;
2434
+ }
2435
+ function ro() {
2436
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2437
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2438
+ }
2439
+ var Gr = 0, fe = 1, ht = 2, vt = 3, rn = 4, $r = 5, Vr = 6;
2440
+ function io(e) {
2441
+ return $.hasOwnProperty(e) ? $[e] : null;
2442
+ }
2443
+ function X(e, t, n, r, a, p, m) {
2444
+ this.acceptsBooleans = t === ht || t === vt || t === rn, this.attributeName = r, this.attributeNamespace = a, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = p, this.removeEmptyString = m;
2445
+ }
2446
+ var $ = {}, oo = [
2447
+ "children",
2448
+ "dangerouslySetInnerHTML",
2449
+ // TODO: This prevents the assignment of defaultValue to regular
2450
+ // elements (not just inputs). Now that ReactDOMInput assigns to the
2451
+ // defaultValue property -- do we need this?
2452
+ "defaultValue",
2453
+ "defaultChecked",
2454
+ "innerHTML",
2455
+ "suppressContentEditableWarning",
2456
+ "suppressHydrationWarning",
2457
+ "style"
2458
+ ];
2459
+ oo.forEach(function(e) {
2460
+ $[e] = new X(
2461
+ e,
2462
+ Gr,
2463
+ !1,
2464
+ // mustUseProperty
2465
+ e,
2466
+ // attributeName
2467
+ null,
2468
+ // attributeNamespace
2469
+ !1,
2470
+ // sanitizeURL
2471
+ !1
2472
+ );
2473
+ });
2474
+ [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) {
2475
+ var t = Ji(e, 2), n = t[0], r = t[1];
2476
+ $[n] = new X(
2477
+ n,
2478
+ fe,
2479
+ !1,
2480
+ // mustUseProperty
2481
+ r,
2482
+ // attributeName
2483
+ null,
2484
+ // attributeNamespace
2485
+ !1,
2486
+ // sanitizeURL
2487
+ !1
2488
+ );
2489
+ });
2490
+ ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) {
2491
+ $[e] = new X(
2492
+ e,
2493
+ ht,
2494
+ !1,
2495
+ // mustUseProperty
2496
+ e.toLowerCase(),
2497
+ // attributeName
2498
+ null,
2499
+ // attributeNamespace
2500
+ !1,
2501
+ // sanitizeURL
2502
+ !1
2503
+ );
2504
+ });
2505
+ ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) {
2506
+ $[e] = new X(
2507
+ e,
2508
+ ht,
2509
+ !1,
2510
+ // mustUseProperty
2511
+ e,
2512
+ // attributeName
2513
+ null,
2514
+ // attributeNamespace
2515
+ !1,
2516
+ // sanitizeURL
2517
+ !1
2518
+ );
2519
+ });
2520
+ [
2521
+ "allowFullScreen",
2522
+ "async",
2523
+ // Note: there is a special case that prevents it from being written to the DOM
2524
+ // on the client side because the browsers are inconsistent. Instead we call focus().
2525
+ "autoFocus",
2526
+ "autoPlay",
2527
+ "controls",
2528
+ "default",
2529
+ "defer",
2530
+ "disabled",
2531
+ "disablePictureInPicture",
2532
+ "disableRemotePlayback",
2533
+ "formNoValidate",
2534
+ "hidden",
2535
+ "loop",
2536
+ "noModule",
2537
+ "noValidate",
2538
+ "open",
2539
+ "playsInline",
2540
+ "readOnly",
2541
+ "required",
2542
+ "reversed",
2543
+ "scoped",
2544
+ "seamless",
2545
+ // Microdata
2546
+ "itemScope"
2547
+ ].forEach(function(e) {
2548
+ $[e] = new X(
2549
+ e,
2550
+ vt,
2551
+ !1,
2552
+ // mustUseProperty
2553
+ e.toLowerCase(),
2554
+ // attributeName
2555
+ null,
2556
+ // attributeNamespace
2557
+ !1,
2558
+ // sanitizeURL
2559
+ !1
2560
+ );
2561
+ });
2562
+ [
2563
+ "checked",
2564
+ // Note: `option.selected` is not updated if `select.multiple` is
2565
+ // disabled with `removeAttribute`. We have special logic for handling this.
2566
+ "multiple",
2567
+ "muted",
2568
+ "selected"
2569
+ // NOTE: if you add a camelCased prop to this list,
2570
+ // you'll need to set attributeName to name.toLowerCase()
2571
+ // instead in the assignment below.
2572
+ ].forEach(function(e) {
2573
+ $[e] = new X(
2574
+ e,
2575
+ vt,
2576
+ !0,
2577
+ // mustUseProperty
2578
+ e,
2579
+ // attributeName
2580
+ null,
2581
+ // attributeNamespace
2582
+ !1,
2583
+ // sanitizeURL
2584
+ !1
2585
+ );
2586
+ });
2587
+ [
2588
+ "capture",
2589
+ "download"
2590
+ // NOTE: if you add a camelCased prop to this list,
2591
+ // you'll need to set attributeName to name.toLowerCase()
2592
+ // instead in the assignment below.
2593
+ ].forEach(function(e) {
2594
+ $[e] = new X(
2595
+ e,
2596
+ rn,
2597
+ !1,
2598
+ // mustUseProperty
2599
+ e,
2600
+ // attributeName
2601
+ null,
2602
+ // attributeNamespace
2603
+ !1,
2604
+ // sanitizeURL
2605
+ !1
2606
+ );
2607
+ });
2608
+ [
2609
+ "cols",
2610
+ "rows",
2611
+ "size",
2612
+ "span"
2613
+ // NOTE: if you add a camelCased prop to this list,
2614
+ // you'll need to set attributeName to name.toLowerCase()
2615
+ // instead in the assignment below.
2616
+ ].forEach(function(e) {
2617
+ $[e] = new X(
2618
+ e,
2619
+ Vr,
2620
+ !1,
2621
+ // mustUseProperty
2622
+ e,
2623
+ // attributeName
2624
+ null,
2625
+ // attributeNamespace
2626
+ !1,
2627
+ // sanitizeURL
2628
+ !1
2629
+ );
2630
+ });
2631
+ ["rowSpan", "start"].forEach(function(e) {
2632
+ $[e] = new X(
2633
+ e,
2634
+ $r,
2635
+ !1,
2636
+ // mustUseProperty
2637
+ e.toLowerCase(),
2638
+ // attributeName
2639
+ null,
2640
+ // attributeNamespace
2641
+ !1,
2642
+ // sanitizeURL
2643
+ !1
2644
+ );
2645
+ });
2646
+ var on = /[\-\:]([a-z])/g, an = function(t) {
2647
+ return t[1].toUpperCase();
2648
+ };
2649
+ [
2650
+ "accent-height",
2651
+ "alignment-baseline",
2652
+ "arabic-form",
2653
+ "baseline-shift",
2654
+ "cap-height",
2655
+ "clip-path",
2656
+ "clip-rule",
2657
+ "color-interpolation",
2658
+ "color-interpolation-filters",
2659
+ "color-profile",
2660
+ "color-rendering",
2661
+ "dominant-baseline",
2662
+ "enable-background",
2663
+ "fill-opacity",
2664
+ "fill-rule",
2665
+ "flood-color",
2666
+ "flood-opacity",
2667
+ "font-family",
2668
+ "font-size",
2669
+ "font-size-adjust",
2670
+ "font-stretch",
2671
+ "font-style",
2672
+ "font-variant",
2673
+ "font-weight",
2674
+ "glyph-name",
2675
+ "glyph-orientation-horizontal",
2676
+ "glyph-orientation-vertical",
2677
+ "horiz-adv-x",
2678
+ "horiz-origin-x",
2679
+ "image-rendering",
2680
+ "letter-spacing",
2681
+ "lighting-color",
2682
+ "marker-end",
2683
+ "marker-mid",
2684
+ "marker-start",
2685
+ "overline-position",
2686
+ "overline-thickness",
2687
+ "paint-order",
2688
+ "panose-1",
2689
+ "pointer-events",
2690
+ "rendering-intent",
2691
+ "shape-rendering",
2692
+ "stop-color",
2693
+ "stop-opacity",
2694
+ "strikethrough-position",
2695
+ "strikethrough-thickness",
2696
+ "stroke-dasharray",
2697
+ "stroke-dashoffset",
2698
+ "stroke-linecap",
2699
+ "stroke-linejoin",
2700
+ "stroke-miterlimit",
2701
+ "stroke-opacity",
2702
+ "stroke-width",
2703
+ "text-anchor",
2704
+ "text-decoration",
2705
+ "text-rendering",
2706
+ "underline-position",
2707
+ "underline-thickness",
2708
+ "unicode-bidi",
2709
+ "unicode-range",
2710
+ "units-per-em",
2711
+ "v-alphabetic",
2712
+ "v-hanging",
2713
+ "v-ideographic",
2714
+ "v-mathematical",
2715
+ "vector-effect",
2716
+ "vert-adv-y",
2717
+ "vert-origin-x",
2718
+ "vert-origin-y",
2719
+ "word-spacing",
2720
+ "writing-mode",
2721
+ "xmlns:xlink",
2722
+ "x-height"
2723
+ // NOTE: if you add a camelCased prop to this list,
2724
+ // you'll need to set attributeName to name.toLowerCase()
2725
+ // instead in the assignment below.
2726
+ ].forEach(function(e) {
2727
+ var t = e.replace(on, an);
2728
+ $[t] = new X(
2729
+ t,
2730
+ fe,
2731
+ !1,
2732
+ // mustUseProperty
2733
+ e,
2734
+ null,
2735
+ // attributeNamespace
2736
+ !1,
2737
+ // sanitizeURL
2738
+ !1
2739
+ );
2740
+ });
2741
+ [
2742
+ "xlink:actuate",
2743
+ "xlink:arcrole",
2744
+ "xlink:role",
2745
+ "xlink:show",
2746
+ "xlink:title",
2747
+ "xlink:type"
2748
+ // NOTE: if you add a camelCased prop to this list,
2749
+ // you'll need to set attributeName to name.toLowerCase()
2750
+ // instead in the assignment below.
2751
+ ].forEach(function(e) {
2752
+ var t = e.replace(on, an);
2753
+ $[t] = new X(
2754
+ t,
2755
+ fe,
2756
+ !1,
2757
+ // mustUseProperty
2758
+ e,
2759
+ "http://www.w3.org/1999/xlink",
2760
+ !1,
2761
+ // sanitizeURL
2762
+ !1
2763
+ );
2764
+ });
2765
+ [
2766
+ "xml:base",
2767
+ "xml:lang",
2768
+ "xml:space"
2769
+ // NOTE: if you add a camelCased prop to this list,
2770
+ // you'll need to set attributeName to name.toLowerCase()
2771
+ // instead in the assignment below.
2772
+ ].forEach(function(e) {
2773
+ var t = e.replace(on, an);
2774
+ $[t] = new X(
2775
+ t,
2776
+ fe,
2777
+ !1,
2778
+ // mustUseProperty
2779
+ e,
2780
+ "http://www.w3.org/XML/1998/namespace",
2781
+ !1,
2782
+ // sanitizeURL
2783
+ !1
2784
+ );
2785
+ });
2786
+ ["tabIndex", "crossOrigin"].forEach(function(e) {
2787
+ $[e] = new X(
2788
+ e,
2789
+ fe,
2790
+ !1,
2791
+ // mustUseProperty
2792
+ e.toLowerCase(),
2793
+ // attributeName
2794
+ null,
2795
+ // attributeNamespace
2796
+ !1,
2797
+ // sanitizeURL
2798
+ !1
2799
+ );
2800
+ });
2801
+ var ao = "xlinkHref";
2802
+ $[ao] = new X(
2803
+ "xlinkHref",
2804
+ fe,
2805
+ !1,
2806
+ // mustUseProperty
2807
+ "xlink:href",
2808
+ "http://www.w3.org/1999/xlink",
2809
+ !0,
2810
+ // sanitizeURL
2811
+ !1
2812
+ );
2813
+ ["src", "href", "action", "formAction"].forEach(function(e) {
2814
+ $[e] = new X(
2815
+ e,
2816
+ fe,
2817
+ !1,
2818
+ // mustUseProperty
2819
+ e.toLowerCase(),
2820
+ // attributeName
2821
+ null,
2822
+ // attributeNamespace
2823
+ !0,
2824
+ // sanitizeURL
2825
+ !0
2826
+ );
2827
+ });
2828
+ var ln = mt, lo = ln.CAMELCASE, so = ln.SAME, Ln = ln.possibleStandardNames, co = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", uo = co + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", fo = RegExp.prototype.test.bind(
2829
+ // eslint-disable-next-line no-misleading-character-class
2830
+ new RegExp("^(data|aria)-[" + uo + "]*$")
2831
+ ), po = Object.keys(Ln).reduce(function(e, t) {
2832
+ var n = Ln[t];
2833
+ return n === so ? e[t] = t : n === lo ? e[t.toLowerCase()] = t : e[t] = n, e;
2834
+ }, {});
2835
+ te.BOOLEAN = vt;
2836
+ te.BOOLEANISH_STRING = ht;
2837
+ te.NUMERIC = $r;
2838
+ te.OVERLOADED_BOOLEAN = rn;
2839
+ te.POSITIVE_NUMERIC = Vr;
2840
+ te.RESERVED = Gr;
2841
+ te.STRING = fe;
2842
+ te.getPropertyInfo = io;
2843
+ te.isCustomAttribute = fo;
2844
+ te.possibleStandardNames = po;
2845
+ var sn = {}, cn = { exports: {} }, jn = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, mo = /\n/g, ho = /^\s*/, vo = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, go = /^:\s*/, yo = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, _o = /^[;\s]*/, To = /^\s+|\s+$/g, Eo = `
2846
+ `, Fn = "/", Un = "*", _e = "", bo = "comment", Oo = "declaration", Co = function(e, t) {
2847
+ if (typeof e != "string")
2848
+ throw new TypeError("First argument must be a string");
2849
+ if (!e)
2850
+ return [];
2851
+ t = t || {};
2852
+ var n = 1, r = 1;
2853
+ function a(v) {
2854
+ var f = v.match(mo);
2855
+ f && (n += f.length);
2856
+ var u = v.lastIndexOf(Eo);
2857
+ r = ~u ? v.length - u : r + v.length;
2858
+ }
2859
+ function p() {
2860
+ var v = { line: n, column: r };
2861
+ return function(f) {
2862
+ return f.position = new m(v), s(), f;
2863
+ };
2864
+ }
2865
+ function m(v) {
2866
+ this.start = v, this.end = { line: n, column: r }, this.source = t.source;
2867
+ }
2868
+ m.prototype.content = e;
2869
+ function l(v) {
2870
+ var f = new Error(
2871
+ t.source + ":" + n + ":" + r + ": " + v
2872
+ );
2873
+ if (f.reason = v, f.filename = t.source, f.line = n, f.column = r, f.source = e, !t.silent)
2874
+ throw f;
2875
+ }
2876
+ function o(v) {
2877
+ var f = v.exec(e);
2878
+ if (f) {
2879
+ var u = f[0];
2880
+ return a(u), e = e.slice(u.length), f;
2881
+ }
2882
+ }
2883
+ function s() {
2884
+ o(ho);
2885
+ }
2886
+ function _(v) {
2887
+ var f;
2888
+ for (v = v || []; f = w(); )
2889
+ f !== !1 && v.push(f);
2890
+ return v;
2891
+ }
2892
+ function w() {
2893
+ var v = p();
2894
+ if (!(Fn != e.charAt(0) || Un != e.charAt(1))) {
2895
+ for (var f = 2; _e != e.charAt(f) && (Un != e.charAt(f) || Fn != e.charAt(f + 1)); )
2896
+ ++f;
2897
+ if (f += 2, _e === e.charAt(f - 1))
2898
+ return l("End of comment missing");
2899
+ var u = e.slice(2, f - 2);
2900
+ return r += 2, a(u), e = e.slice(f), r += 2, v({
2901
+ type: bo,
2902
+ comment: u
2903
+ });
2904
+ }
2905
+ }
2906
+ function M() {
2907
+ var v = p(), f = o(vo);
2908
+ if (f) {
2909
+ if (w(), !o(go))
2910
+ return l("property missing ':'");
2911
+ var u = o(yo), b = v({
2912
+ type: Oo,
2913
+ property: Hn(f[0].replace(jn, _e)),
2914
+ value: u ? Hn(u[0].replace(jn, _e)) : _e
2915
+ });
2916
+ return o(_o), b;
2917
+ }
2918
+ }
2919
+ function d() {
2920
+ var v = [];
2921
+ _(v);
2922
+ for (var f; f = M(); )
2923
+ f !== !1 && (v.push(f), _(v));
2924
+ return v;
2925
+ }
2926
+ return s(), d();
2927
+ };
2928
+ function Hn(e) {
2929
+ return e ? e.replace(To, _e) : _e;
2930
+ }
2931
+ var wo = Co;
2932
+ function Xr(e, t) {
2933
+ var n = null;
2934
+ if (!e || typeof e != "string")
2935
+ return n;
2936
+ for (var r, a = wo(e), p = typeof t == "function", m, l, o = 0, s = a.length; o < s; o++)
2937
+ r = a[o], m = r.property, l = r.value, p ? t(m, l, r) : l && (n || (n = {}), n[m] = l);
2938
+ return n;
2939
+ }
2940
+ cn.exports = Xr;
2941
+ cn.exports.default = Xr;
2942
+ var Ao = cn.exports, gt = {};
2943
+ Object.defineProperty(gt, "__esModule", { value: !0 });
2944
+ gt.camelCase = void 0;
2945
+ var So = /^--[a-zA-Z0-9-]+$/, xo = /-([a-z])/g, No = /^[^-]+$/, Po = /^-(webkit|moz|ms|o|khtml)-/, Do = /^-(ms)-/, Ro = function(e) {
2946
+ return !e || No.test(e) || So.test(e);
2947
+ }, Io = function(e, t) {
2948
+ return t.toUpperCase();
2949
+ }, zn = function(e, t) {
2950
+ return "".concat(t, "-");
2951
+ }, Mo = function(e, t) {
2952
+ return t === void 0 && (t = {}), Ro(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(Do, zn) : e = e.replace(Po, zn), e.replace(xo, Io));
2953
+ };
2954
+ gt.camelCase = Mo;
2955
+ var ko = G && G.__importDefault || function(e) {
2956
+ return e && e.__esModule ? e : { default: e };
2957
+ };
2958
+ Object.defineProperty(sn, "__esModule", { value: !0 });
2959
+ var Lo = ko(Ao), jo = gt;
2960
+ function Fo(e, t) {
2961
+ var n = {};
2962
+ return !e || typeof e != "string" || (0, Lo.default)(e, function(r, a) {
2963
+ r && a && (n[(0, jo.camelCase)(r, t)] = a);
2964
+ }), n;
2965
+ }
2966
+ sn.default = Fo;
2967
+ var Uo = Te, Ho = sn.default;
2968
+ function zo(e, t) {
2969
+ if (!e || typeof e != "object")
2970
+ throw new TypeError("First argument must be an object");
2971
+ var n = typeof t == "function", r = {}, a = {};
2972
+ for (var p in e) {
2973
+ var m = e[p];
2974
+ if (n && (r = t(p, m), r && r.length === 2)) {
2975
+ a[r[0]] = r[1];
2976
+ continue;
2977
+ }
2978
+ typeof m == "string" && (a[m] = p);
2979
+ }
2980
+ return a;
2981
+ }
2982
+ var Bo = /* @__PURE__ */ new Set([
2983
+ "annotation-xml",
2984
+ "color-profile",
2985
+ "font-face",
2986
+ "font-face-src",
2987
+ "font-face-uri",
2988
+ "font-face-format",
2989
+ "font-face-name",
2990
+ "missing-glyph"
2991
+ ]);
2992
+ function Wo(e, t) {
2993
+ return e.indexOf("-") === -1 ? t && typeof t.is == "string" : !Bo.has(e);
2994
+ }
2995
+ var Go = { reactCompat: !0 };
2996
+ function $o(e, t) {
2997
+ if (e != null)
2998
+ try {
2999
+ t.style = Ho(e, Go);
3000
+ } catch {
3001
+ t.style = {};
3002
+ }
3003
+ }
3004
+ var Vo = Uo.version.split(".")[0] >= 16, Yr = /* @__PURE__ */ new Set([
3005
+ "tr",
3006
+ "tbody",
3007
+ "thead",
3008
+ "tfoot",
3009
+ "colgroup",
3010
+ "table",
3011
+ "head",
3012
+ "html",
3013
+ "frameset"
3014
+ ]);
3015
+ function Xo(e) {
3016
+ return !Yr.has(e.name);
3017
+ }
3018
+ function Yo(e) {
3019
+ return e;
3020
+ }
3021
+ var qr = {
3022
+ PRESERVE_CUSTOM_ATTRIBUTES: Vo,
3023
+ ELEMENTS_WITH_NO_TEXT_CHILDREN: Yr,
3024
+ invertObject: zo,
3025
+ isCustomComponent: Wo,
3026
+ setStyleProp: $o,
3027
+ canTextBeChildOfNode: Xo,
3028
+ returnFirstArg: Yo
3029
+ }, Le = te, Bn = qr, qo = ["checked", "value"], Zo = ["input", "select", "textarea"], Ko = {
3030
+ reset: !0,
3031
+ submit: !0
3032
+ }, Zr = function(t, n) {
3033
+ t = t || {};
3034
+ var r, a, p, m, l, o = {}, s = t.type && Ko[t.type];
3035
+ for (r in t) {
3036
+ if (p = t[r], Le.isCustomAttribute(r)) {
3037
+ o[r] = p;
3038
+ continue;
3039
+ }
3040
+ if (a = r.toLowerCase(), m = Wn(a), m) {
3041
+ switch (l = Le.getPropertyInfo(m), qo.indexOf(m) !== -1 && Zo.indexOf(n) !== -1 && !s && (m = Wn("default" + a)), o[m] = p, l && l.type) {
3042
+ case Le.BOOLEAN:
3043
+ o[m] = !0;
3044
+ break;
3045
+ case Le.OVERLOADED_BOOLEAN:
3046
+ p === "" && (o[m] = !0);
3047
+ break;
3048
+ }
3049
+ continue;
3050
+ }
3051
+ Bn.PRESERVE_CUSTOM_ATTRIBUTES && (o[r] = p);
3052
+ }
3053
+ return Bn.setStyleProp(t.style, o), o;
3054
+ };
3055
+ function Wn(e) {
3056
+ return Le.possibleStandardNames[e];
3057
+ }
3058
+ var Qo = Te, Jo = Zr, Ue = qr, ea = Ue.setStyleProp, ta = Ue.canTextBeChildOfNode;
3059
+ function Kr(e, t) {
3060
+ t = t || {};
3061
+ for (var n = t.library || Qo, r = n.cloneElement, a = n.createElement, p = n.isValidElement, m = [], l, o, s = typeof t.replace == "function", _ = t.transform || Ue.returnFirstArg, w, M, d, v = t.trim, f = 0, u = e.length; f < u; f++) {
3062
+ if (l = e[f], s && (w = t.replace(l), p(w))) {
3063
+ u > 1 && (w = r(w, {
3064
+ key: w.key || f
3065
+ })), m.push(_(w, l, f));
3066
+ continue;
3067
+ }
3068
+ if (l.type === "text") {
3069
+ if (o = !l.data.trim().length, o && l.parent && !ta(l.parent) || v && o)
3070
+ continue;
3071
+ m.push(_(l.data, l, f));
3072
+ continue;
3073
+ }
3074
+ switch (M = l.attribs, na(l) ? ea(M.style, M) : M && (M = Jo(M, l.name)), d = null, l.type) {
3075
+ case "script":
3076
+ case "style":
3077
+ l.children[0] && (M.dangerouslySetInnerHTML = {
3078
+ __html: l.children[0].data
3079
+ });
3080
+ break;
3081
+ case "tag":
3082
+ l.name === "textarea" && l.children[0] ? M.defaultValue = l.children[0].data : l.children && l.children.length && (d = Kr(l.children, t));
3083
+ break;
3084
+ default:
3085
+ continue;
3086
+ }
3087
+ u > 1 && (M.key = f), m.push(_(a(l.name, M, d), l, f));
3088
+ }
3089
+ return m.length === 1 ? m[0] : m;
3090
+ }
3091
+ function na(e) {
3092
+ return Ue.PRESERVE_CUSTOM_ATTRIBUTES && e.type === "tag" && Ue.isCustomComponent(e.name, e.attribs);
3093
+ }
3094
+ var ra = Kr, yt = mr, Pe = Zi, ia = Zr, Qr = ra;
3095
+ Pe = /* istanbul ignore next */
3096
+ typeof Pe.default == "function" ? Pe.default : Pe;
3097
+ var oa = { lowerCaseAttributeNames: !1 };
3098
+ function ae(e, t) {
3099
+ if (typeof e != "string")
3100
+ throw new TypeError("First argument must be a string");
3101
+ return e === "" ? [] : (t = t || {}, Qr(
3102
+ Pe(e, t.htmlparser2 || oa),
3103
+ t
3104
+ ));
3105
+ }
3106
+ ae.domToReact = Qr;
3107
+ ae.htmlToDOM = Pe;
3108
+ ae.attributesToProps = ia;
3109
+ ae.Comment = yt.Comment;
3110
+ ae.Element = yt.Element;
3111
+ ae.ProcessingInstruction = yt.ProcessingInstruction;
3112
+ ae.Text = yt.Text;
3113
+ var aa = ae;
3114
+ ae.default = ae;
3115
+ const pe = /* @__PURE__ */ Qn(aa);
3116
+ pe.domToReact;
3117
+ pe.htmlToDOM;
3118
+ pe.attributesToProps;
3119
+ pe.Comment;
3120
+ pe.Element;
3121
+ pe.ProcessingInstruction;
3122
+ pe.Text;
3123
+ /*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */
3124
+ const {
3125
+ entries: Jr,
3126
+ setPrototypeOf: Gn,
3127
+ isFrozen: la,
3128
+ getPrototypeOf: sa,
3129
+ getOwnPropertyDescriptor: ca
3130
+ } = Object;
3131
+ let {
3132
+ freeze: V,
3133
+ seal: ie,
3134
+ create: ua
3135
+ } = Object, {
3136
+ apply: Bt,
3137
+ construct: Wt
3138
+ } = typeof Reflect < "u" && Reflect;
3139
+ Bt || (Bt = function(t, n, r) {
3140
+ return t.apply(n, r);
3141
+ });
3142
+ V || (V = function(t) {
3143
+ return t;
3144
+ });
3145
+ ie || (ie = function(t) {
3146
+ return t;
3147
+ });
3148
+ Wt || (Wt = function(t, n) {
3149
+ return new t(...n);
3150
+ });
3151
+ const fa = J(Array.prototype.forEach), $n = J(Array.prototype.pop), Me = J(Array.prototype.push), rt = J(String.prototype.toLowerCase), Mt = J(String.prototype.toString), pa = J(String.prototype.match), re = J(String.prototype.replace), da = J(String.prototype.indexOf), ma = J(String.prototype.trim), Z = J(RegExp.prototype.test), ke = ha(TypeError);
3152
+ function J(e) {
3153
+ return function(t) {
3154
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
3155
+ r[a - 1] = arguments[a];
3156
+ return Bt(e, t, r);
3157
+ };
3158
+ }
3159
+ function ha(e) {
3160
+ return function() {
3161
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
3162
+ n[r] = arguments[r];
3163
+ return Wt(e, n);
3164
+ };
3165
+ }
3166
+ function N(e, t, n) {
3167
+ var r;
3168
+ n = (r = n) !== null && r !== void 0 ? r : rt, Gn && Gn(e, null);
3169
+ let a = t.length;
3170
+ for (; a--; ) {
3171
+ let p = t[a];
3172
+ if (typeof p == "string") {
3173
+ const m = n(p);
3174
+ m !== p && (la(t) || (t[a] = m), p = m);
3175
+ }
3176
+ e[p] = !0;
3177
+ }
3178
+ return e;
3179
+ }
3180
+ function Ne(e) {
3181
+ const t = ua(null);
3182
+ for (const [n, r] of Jr(e))
3183
+ t[n] = r;
3184
+ return t;
3185
+ }
3186
+ function tt(e, t) {
3187
+ for (; e !== null; ) {
3188
+ const r = ca(e, t);
3189
+ if (r) {
3190
+ if (r.get)
3191
+ return J(r.get);
3192
+ if (typeof r.value == "function")
3193
+ return J(r.value);
3194
+ }
3195
+ e = sa(e);
3196
+ }
3197
+ function n(r) {
3198
+ return console.warn("fallback value for", r), null;
3199
+ }
3200
+ return n;
3201
+ }
3202
+ const Vn = V(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), kt = V(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Lt = V(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), va = V(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), jt = V(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ga = V(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Xn = V(["#text"]), Yn = V(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), Ft = V(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), qn = V(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), nt = V(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ya = ie(/\{\{[\w\W]*|[\w\W]*\}\}/gm), _a = ie(/<%[\w\W]*|[\w\W]*%>/gm), Ta = ie(/\${[\w\W]*}/gm), Ea = ie(/^data-[\-\w.\u00B7-\uFFFF]/), ba = ie(/^aria-[\-\w]+$/), ei = ie(
3203
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
3204
+ // eslint-disable-line no-useless-escape
3205
+ ), Oa = ie(/^(?:\w+script|data):/i), Ca = ie(
3206
+ /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
3207
+ // eslint-disable-line no-control-regex
3208
+ ), ti = ie(/^html$/i);
3209
+ var Zn = /* @__PURE__ */ Object.freeze({
3210
+ __proto__: null,
3211
+ MUSTACHE_EXPR: ya,
3212
+ ERB_EXPR: _a,
3213
+ TMPLIT_EXPR: Ta,
3214
+ DATA_ATTR: Ea,
3215
+ ARIA_ATTR: ba,
3216
+ IS_ALLOWED_URI: ei,
3217
+ IS_SCRIPT_OR_DATA: Oa,
3218
+ ATTR_WHITESPACE: Ca,
3219
+ DOCTYPE_NAME: ti
3220
+ });
3221
+ const wa = () => typeof window > "u" ? null : window, Aa = function(t, n) {
3222
+ if (typeof t != "object" || typeof t.createPolicy != "function")
3223
+ return null;
3224
+ let r = null;
3225
+ const a = "data-tt-policy-suffix";
3226
+ n && n.hasAttribute(a) && (r = n.getAttribute(a));
3227
+ const p = "dompurify" + (r ? "#" + r : "");
3228
+ try {
3229
+ return t.createPolicy(p, {
3230
+ createHTML(m) {
3231
+ return m;
3232
+ },
3233
+ createScriptURL(m) {
3234
+ return m;
3235
+ }
3236
+ });
3237
+ } catch {
3238
+ return console.warn("TrustedTypes policy " + p + " could not be created."), null;
3239
+ }
3240
+ };
3241
+ function ni() {
3242
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : wa();
3243
+ const t = (O) => ni(O);
3244
+ if (t.version = "3.0.5", t.removed = [], !e || !e.document || e.document.nodeType !== 9)
3245
+ return t.isSupported = !1, t;
3246
+ const n = e.document, r = n.currentScript;
3247
+ let {
3248
+ document: a
3249
+ } = e;
3250
+ const {
3251
+ DocumentFragment: p,
3252
+ HTMLTemplateElement: m,
3253
+ Node: l,
3254
+ Element: o,
3255
+ NodeFilter: s,
3256
+ NamedNodeMap: _ = e.NamedNodeMap || e.MozNamedAttrMap,
3257
+ HTMLFormElement: w,
3258
+ DOMParser: M,
3259
+ trustedTypes: d
3260
+ } = e, v = o.prototype, f = tt(v, "cloneNode"), u = tt(v, "nextSibling"), b = tt(v, "childNodes"), A = tt(v, "parentNode");
3261
+ if (typeof m == "function") {
3262
+ const O = a.createElement("template");
3263
+ O.content && O.content.ownerDocument && (a = O.content.ownerDocument);
3264
+ }
3265
+ let C, I = "";
3266
+ const {
3267
+ implementation: k,
3268
+ createNodeIterator: K,
3269
+ createDocumentFragment: y,
3270
+ getElementsByTagName: x
3271
+ } = a, {
3272
+ importNode: c
3273
+ } = n;
3274
+ let g = {};
3275
+ t.isSupported = typeof Jr == "function" && typeof A == "function" && k && k.createHTMLDocument !== void 0;
3276
+ const {
3277
+ MUSTACHE_EXPR: E,
3278
+ ERB_EXPR: S,
3279
+ TMPLIT_EXPR: R,
3280
+ DATA_ATTR: F,
3281
+ ARIA_ATTR: ne,
3282
+ IS_SCRIPT_OR_DATA: de,
3283
+ ATTR_WHITESPACE: Ee
3284
+ } = Zn;
3285
+ let {
3286
+ IS_ALLOWED_URI: Be
3287
+ } = Zn, z = null;
3288
+ const Re = N({}, [...Vn, ...kt, ...Lt, ...jt, ...Xn]);
3289
+ let H = null;
3290
+ const We = N({}, [...Yn, ...Ft, ...qn, ...nt]);
3291
+ let j = Object.seal(Object.create(null, {
3292
+ tagNameCheck: {
3293
+ writable: !0,
3294
+ configurable: !1,
3295
+ enumerable: !0,
3296
+ value: null
3297
+ },
3298
+ attributeNameCheck: {
3299
+ writable: !0,
3300
+ configurable: !1,
3301
+ enumerable: !0,
3302
+ value: null
3303
+ },
3304
+ allowCustomizedBuiltInElements: {
3305
+ writable: !0,
3306
+ configurable: !1,
3307
+ enumerable: !0,
3308
+ value: !1
3309
+ }
3310
+ })), me = null, he = null, Ge = !0, be = !0, $e = !1, Ve = !0, Oe = !1, ve = !1, _t = !1, Tt = !1, Ce = !1, Xe = !1, Ye = !1, un = !0, fn = !1;
3311
+ const ri = "user-content-";
3312
+ let Et = !0, Ie = !1, we = {}, Ae = null;
3313
+ const pn = N({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
3314
+ let dn = null;
3315
+ const mn = N({}, ["audio", "video", "img", "source", "image", "track"]);
3316
+ let bt = null;
3317
+ const hn = N({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), qe = "http://www.w3.org/1998/Math/MathML", Ze = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml";
3318
+ let Se = le, Ot = !1, Ct = null;
3319
+ const ii = N({}, [qe, Ze, le], Mt);
3320
+ let ge;
3321
+ const oi = ["application/xhtml+xml", "text/html"], ai = "text/html";
3322
+ let B, xe = null;
3323
+ const li = a.createElement("form"), vn = function(i) {
3324
+ return i instanceof RegExp || i instanceof Function;
3325
+ }, wt = function(i) {
3326
+ if (!(xe && xe === i)) {
3327
+ if ((!i || typeof i != "object") && (i = {}), i = Ne(i), ge = // eslint-disable-next-line unicorn/prefer-includes
3328
+ oi.indexOf(i.PARSER_MEDIA_TYPE) === -1 ? ge = ai : ge = i.PARSER_MEDIA_TYPE, B = ge === "application/xhtml+xml" ? Mt : rt, z = "ALLOWED_TAGS" in i ? N({}, i.ALLOWED_TAGS, B) : Re, H = "ALLOWED_ATTR" in i ? N({}, i.ALLOWED_ATTR, B) : We, Ct = "ALLOWED_NAMESPACES" in i ? N({}, i.ALLOWED_NAMESPACES, Mt) : ii, bt = "ADD_URI_SAFE_ATTR" in i ? N(
3329
+ Ne(hn),
3330
+ // eslint-disable-line indent
3331
+ i.ADD_URI_SAFE_ATTR,
3332
+ // eslint-disable-line indent
3333
+ B
3334
+ // eslint-disable-line indent
3335
+ ) : hn, dn = "ADD_DATA_URI_TAGS" in i ? N(
3336
+ Ne(mn),
3337
+ // eslint-disable-line indent
3338
+ i.ADD_DATA_URI_TAGS,
3339
+ // eslint-disable-line indent
3340
+ B
3341
+ // eslint-disable-line indent
3342
+ ) : mn, Ae = "FORBID_CONTENTS" in i ? N({}, i.FORBID_CONTENTS, B) : pn, me = "FORBID_TAGS" in i ? N({}, i.FORBID_TAGS, B) : {}, he = "FORBID_ATTR" in i ? N({}, i.FORBID_ATTR, B) : {}, we = "USE_PROFILES" in i ? i.USE_PROFILES : !1, Ge = i.ALLOW_ARIA_ATTR !== !1, be = i.ALLOW_DATA_ATTR !== !1, $e = i.ALLOW_UNKNOWN_PROTOCOLS || !1, Ve = i.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Oe = i.SAFE_FOR_TEMPLATES || !1, ve = i.WHOLE_DOCUMENT || !1, Ce = i.RETURN_DOM || !1, Xe = i.RETURN_DOM_FRAGMENT || !1, Ye = i.RETURN_TRUSTED_TYPE || !1, Tt = i.FORCE_BODY || !1, un = i.SANITIZE_DOM !== !1, fn = i.SANITIZE_NAMED_PROPS || !1, Et = i.KEEP_CONTENT !== !1, Ie = i.IN_PLACE || !1, Be = i.ALLOWED_URI_REGEXP || ei, Se = i.NAMESPACE || le, j = i.CUSTOM_ELEMENT_HANDLING || {}, i.CUSTOM_ELEMENT_HANDLING && vn(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = i.CUSTOM_ELEMENT_HANDLING.tagNameCheck), i.CUSTOM_ELEMENT_HANDLING && vn(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), i.CUSTOM_ELEMENT_HANDLING && typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Oe && (be = !1), Xe && (Ce = !0), we && (z = N({}, [...Xn]), H = [], we.html === !0 && (N(z, Vn), N(H, Yn)), we.svg === !0 && (N(z, kt), N(H, Ft), N(H, nt)), we.svgFilters === !0 && (N(z, Lt), N(H, Ft), N(H, nt)), we.mathMl === !0 && (N(z, jt), N(H, qn), N(H, nt))), i.ADD_TAGS && (z === Re && (z = Ne(z)), N(z, i.ADD_TAGS, B)), i.ADD_ATTR && (H === We && (H = Ne(H)), N(H, i.ADD_ATTR, B)), i.ADD_URI_SAFE_ATTR && N(bt, i.ADD_URI_SAFE_ATTR, B), i.FORBID_CONTENTS && (Ae === pn && (Ae = Ne(Ae)), N(Ae, i.FORBID_CONTENTS, B)), Et && (z["#text"] = !0), ve && N(z, ["html", "head", "body"]), z.table && (N(z, ["tbody"]), delete me.tbody), i.TRUSTED_TYPES_POLICY) {
3343
+ if (typeof i.TRUSTED_TYPES_POLICY.createHTML != "function")
3344
+ throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
3345
+ if (typeof i.TRUSTED_TYPES_POLICY.createScriptURL != "function")
3346
+ throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
3347
+ C = i.TRUSTED_TYPES_POLICY, I = C.createHTML("");
3348
+ } else
3349
+ C === void 0 && (C = Aa(d, r)), C !== null && typeof I == "string" && (I = C.createHTML(""));
3350
+ V && V(i), xe = i;
3351
+ }
3352
+ }, gn = N({}, ["mi", "mo", "mn", "ms", "mtext"]), yn = N({}, ["foreignobject", "desc", "title", "annotation-xml"]), si = N({}, ["title", "style", "font", "a", "script"]), Ke = N({}, kt);
3353
+ N(Ke, Lt), N(Ke, va);
3354
+ const At = N({}, jt);
3355
+ N(At, ga);
3356
+ const ci = function(i) {
3357
+ let h = A(i);
3358
+ (!h || !h.tagName) && (h = {
3359
+ namespaceURI: Se,
3360
+ tagName: "template"
3361
+ });
3362
+ const T = rt(i.tagName), L = rt(h.tagName);
3363
+ return Ct[i.namespaceURI] ? i.namespaceURI === Ze ? h.namespaceURI === le ? T === "svg" : h.namespaceURI === qe ? T === "svg" && (L === "annotation-xml" || gn[L]) : !!Ke[T] : i.namespaceURI === qe ? h.namespaceURI === le ? T === "math" : h.namespaceURI === Ze ? T === "math" && yn[L] : !!At[T] : i.namespaceURI === le ? h.namespaceURI === Ze && !yn[L] || h.namespaceURI === qe && !gn[L] ? !1 : !At[T] && (si[T] || !Ke[T]) : !!(ge === "application/xhtml+xml" && Ct[i.namespaceURI]) : !1;
3364
+ }, ye = function(i) {
3365
+ Me(t.removed, {
3366
+ element: i
3367
+ });
3368
+ try {
3369
+ i.parentNode.removeChild(i);
3370
+ } catch {
3371
+ i.remove();
3372
+ }
3373
+ }, St = function(i, h) {
3374
+ try {
3375
+ Me(t.removed, {
3376
+ attribute: h.getAttributeNode(i),
3377
+ from: h
3378
+ });
3379
+ } catch {
3380
+ Me(t.removed, {
3381
+ attribute: null,
3382
+ from: h
3383
+ });
3384
+ }
3385
+ if (h.removeAttribute(i), i === "is" && !H[i])
3386
+ if (Ce || Xe)
3387
+ try {
3388
+ ye(h);
3389
+ } catch {
3390
+ }
3391
+ else
3392
+ try {
3393
+ h.setAttribute(i, "");
3394
+ } catch {
3395
+ }
3396
+ }, _n = function(i) {
3397
+ let h, T;
3398
+ if (Tt)
3399
+ i = "<remove></remove>" + i;
3400
+ else {
3401
+ const Q = pa(i, /^[\r\n\t ]+/);
3402
+ T = Q && Q[0];
3403
+ }
3404
+ ge === "application/xhtml+xml" && Se === le && (i = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + i + "</body></html>");
3405
+ const L = C ? C.createHTML(i) : i;
3406
+ if (Se === le)
3407
+ try {
3408
+ h = new M().parseFromString(L, ge);
3409
+ } catch {
3410
+ }
3411
+ if (!h || !h.documentElement) {
3412
+ h = k.createDocument(Se, "template", null);
3413
+ try {
3414
+ h.documentElement.innerHTML = Ot ? I : L;
3415
+ } catch {
3416
+ }
3417
+ }
3418
+ const W = h.body || h.documentElement;
3419
+ return i && T && W.insertBefore(a.createTextNode(T), W.childNodes[0] || null), Se === le ? x.call(h, ve ? "html" : "body")[0] : ve ? h.documentElement : W;
3420
+ }, Tn = function(i) {
3421
+ return K.call(
3422
+ i.ownerDocument || i,
3423
+ i,
3424
+ // eslint-disable-next-line no-bitwise
3425
+ s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT,
3426
+ null,
3427
+ !1
3428
+ );
3429
+ }, ui = function(i) {
3430
+ return i instanceof w && (typeof i.nodeName != "string" || typeof i.textContent != "string" || typeof i.removeChild != "function" || !(i.attributes instanceof _) || typeof i.removeAttribute != "function" || typeof i.setAttribute != "function" || typeof i.namespaceURI != "string" || typeof i.insertBefore != "function" || typeof i.hasChildNodes != "function");
3431
+ }, Qe = function(i) {
3432
+ return typeof l == "object" ? i instanceof l : i && typeof i == "object" && typeof i.nodeType == "number" && typeof i.nodeName == "string";
3433
+ }, se = function(i, h, T) {
3434
+ g[i] && fa(g[i], (L) => {
3435
+ L.call(t, h, T, xe);
3436
+ });
3437
+ }, En = function(i) {
3438
+ let h;
3439
+ if (se("beforeSanitizeElements", i, null), ui(i))
3440
+ return ye(i), !0;
3441
+ const T = B(i.nodeName);
3442
+ if (se("uponSanitizeElement", i, {
3443
+ tagName: T,
3444
+ allowedTags: z
3445
+ }), i.hasChildNodes() && !Qe(i.firstElementChild) && (!Qe(i.content) || !Qe(i.content.firstElementChild)) && Z(/<[/\w]/g, i.innerHTML) && Z(/<[/\w]/g, i.textContent))
3446
+ return ye(i), !0;
3447
+ if (!z[T] || me[T]) {
3448
+ if (!me[T] && On(T) && (j.tagNameCheck instanceof RegExp && Z(j.tagNameCheck, T) || j.tagNameCheck instanceof Function && j.tagNameCheck(T)))
3449
+ return !1;
3450
+ if (Et && !Ae[T]) {
3451
+ const L = A(i) || i.parentNode, W = b(i) || i.childNodes;
3452
+ if (W && L) {
3453
+ const Q = W.length;
3454
+ for (let U = Q - 1; U >= 0; --U)
3455
+ L.insertBefore(f(W[U], !0), u(i));
3456
+ }
3457
+ }
3458
+ return ye(i), !0;
3459
+ }
3460
+ return i instanceof o && !ci(i) || (T === "noscript" || T === "noembed" || T === "noframes") && Z(/<\/no(script|embed|frames)/i, i.innerHTML) ? (ye(i), !0) : (Oe && i.nodeType === 3 && (h = i.textContent, h = re(h, E, " "), h = re(h, S, " "), h = re(h, R, " "), i.textContent !== h && (Me(t.removed, {
3461
+ element: i.cloneNode()
3462
+ }), i.textContent = h)), se("afterSanitizeElements", i, null), !1);
3463
+ }, bn = function(i, h, T) {
3464
+ if (un && (h === "id" || h === "name") && (T in a || T in li))
3465
+ return !1;
3466
+ if (!(be && !he[h] && Z(F, h))) {
3467
+ if (!(Ge && Z(ne, h))) {
3468
+ if (!H[h] || he[h]) {
3469
+ if (
3470
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
3471
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
3472
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
3473
+ !(On(i) && (j.tagNameCheck instanceof RegExp && Z(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i)) && (j.attributeNameCheck instanceof RegExp && Z(j.attributeNameCheck, h) || j.attributeNameCheck instanceof Function && j.attributeNameCheck(h)) || // Alternative, second condition checks if it's an `is`-attribute, AND
3474
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
3475
+ h === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && Z(j.tagNameCheck, T) || j.tagNameCheck instanceof Function && j.tagNameCheck(T)))
3476
+ )
3477
+ return !1;
3478
+ } else if (!bt[h]) {
3479
+ if (!Z(Be, re(T, Ee, ""))) {
3480
+ if (!((h === "src" || h === "xlink:href" || h === "href") && i !== "script" && da(T, "data:") === 0 && dn[i])) {
3481
+ if (!($e && !Z(de, re(T, Ee, "")))) {
3482
+ if (T)
3483
+ return !1;
3484
+ }
3485
+ }
3486
+ }
3487
+ }
3488
+ }
3489
+ }
3490
+ return !0;
3491
+ }, On = function(i) {
3492
+ return i.indexOf("-") > 0;
3493
+ }, Cn = function(i) {
3494
+ let h, T, L, W;
3495
+ se("beforeSanitizeAttributes", i, null);
3496
+ const {
3497
+ attributes: Q
3498
+ } = i;
3499
+ if (!Q)
3500
+ return;
3501
+ const U = {
3502
+ attrName: "",
3503
+ attrValue: "",
3504
+ keepAttr: !0,
3505
+ allowedAttributes: H
3506
+ };
3507
+ for (W = Q.length; W--; ) {
3508
+ h = Q[W];
3509
+ const {
3510
+ name: oe,
3511
+ namespaceURI: xt
3512
+ } = h;
3513
+ if (T = oe === "value" ? h.value : ma(h.value), L = B(oe), U.attrName = L, U.attrValue = T, U.keepAttr = !0, U.forceKeepAttr = void 0, se("uponSanitizeAttribute", i, U), T = U.attrValue, U.forceKeepAttr || (St(oe, i), !U.keepAttr))
3514
+ continue;
3515
+ if (!Ve && Z(/\/>/i, T)) {
3516
+ St(oe, i);
3517
+ continue;
3518
+ }
3519
+ Oe && (T = re(T, E, " "), T = re(T, S, " "), T = re(T, R, " "));
3520
+ const wn = B(i.nodeName);
3521
+ if (bn(wn, L, T)) {
3522
+ if (fn && (L === "id" || L === "name") && (St(oe, i), T = ri + T), C && typeof d == "object" && typeof d.getAttributeType == "function" && !xt)
3523
+ switch (d.getAttributeType(wn, L)) {
3524
+ case "TrustedHTML": {
3525
+ T = C.createHTML(T);
3526
+ break;
3527
+ }
3528
+ case "TrustedScriptURL": {
3529
+ T = C.createScriptURL(T);
3530
+ break;
3531
+ }
3532
+ }
3533
+ try {
3534
+ xt ? i.setAttributeNS(xt, oe, T) : i.setAttribute(oe, T), $n(t.removed);
3535
+ } catch {
3536
+ }
3537
+ }
3538
+ }
3539
+ se("afterSanitizeAttributes", i, null);
3540
+ }, fi = function O(i) {
3541
+ let h;
3542
+ const T = Tn(i);
3543
+ for (se("beforeSanitizeShadowDOM", i, null); h = T.nextNode(); )
3544
+ se("uponSanitizeShadowNode", h, null), !En(h) && (h.content instanceof p && O(h.content), Cn(h));
3545
+ se("afterSanitizeShadowDOM", i, null);
3546
+ };
3547
+ return t.sanitize = function(O) {
3548
+ let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, h, T, L, W;
3549
+ if (Ot = !O, Ot && (O = "<!-->"), typeof O != "string" && !Qe(O))
3550
+ if (typeof O.toString == "function") {
3551
+ if (O = O.toString(), typeof O != "string")
3552
+ throw ke("dirty is not a string, aborting");
3553
+ } else
3554
+ throw ke("toString is not a function");
3555
+ if (!t.isSupported)
3556
+ return O;
3557
+ if (_t || wt(i), t.removed = [], typeof O == "string" && (Ie = !1), Ie) {
3558
+ if (O.nodeName) {
3559
+ const oe = B(O.nodeName);
3560
+ if (!z[oe] || me[oe])
3561
+ throw ke("root node is forbidden and cannot be sanitized in-place");
3562
+ }
3563
+ } else if (O instanceof l)
3564
+ h = _n("<!---->"), T = h.ownerDocument.importNode(O, !0), T.nodeType === 1 && T.nodeName === "BODY" || T.nodeName === "HTML" ? h = T : h.appendChild(T);
3565
+ else {
3566
+ if (!Ce && !Oe && !ve && // eslint-disable-next-line unicorn/prefer-includes
3567
+ O.indexOf("<") === -1)
3568
+ return C && Ye ? C.createHTML(O) : O;
3569
+ if (h = _n(O), !h)
3570
+ return Ce ? null : Ye ? I : "";
3571
+ }
3572
+ h && Tt && ye(h.firstChild);
3573
+ const Q = Tn(Ie ? O : h);
3574
+ for (; L = Q.nextNode(); )
3575
+ En(L) || (L.content instanceof p && fi(L.content), Cn(L));
3576
+ if (Ie)
3577
+ return O;
3578
+ if (Ce) {
3579
+ if (Xe)
3580
+ for (W = y.call(h.ownerDocument); h.firstChild; )
3581
+ W.appendChild(h.firstChild);
3582
+ else
3583
+ W = h;
3584
+ return (H.shadowroot || H.shadowrootmode) && (W = c.call(n, W, !0)), W;
3585
+ }
3586
+ let U = ve ? h.outerHTML : h.innerHTML;
3587
+ return ve && z["!doctype"] && h.ownerDocument && h.ownerDocument.doctype && h.ownerDocument.doctype.name && Z(ti, h.ownerDocument.doctype.name) && (U = "<!DOCTYPE " + h.ownerDocument.doctype.name + `>
3588
+ ` + U), Oe && (U = re(U, E, " "), U = re(U, S, " "), U = re(U, R, " ")), C && Ye ? C.createHTML(U) : U;
3589
+ }, t.setConfig = function(O) {
3590
+ wt(O), _t = !0;
3591
+ }, t.clearConfig = function() {
3592
+ xe = null, _t = !1;
3593
+ }, t.isValidAttribute = function(O, i, h) {
3594
+ xe || wt({});
3595
+ const T = B(O), L = B(i);
3596
+ return bn(T, L, h);
3597
+ }, t.addHook = function(O, i) {
3598
+ typeof i == "function" && (g[O] = g[O] || [], Me(g[O], i));
3599
+ }, t.removeHook = function(O) {
3600
+ if (g[O])
3601
+ return $n(g[O]);
3602
+ }, t.removeHooks = function(O) {
3603
+ g[O] && (g[O] = []);
3604
+ }, t.removeAllHooks = function() {
3605
+ g = {};
3606
+ }, t;
3607
+ }
3608
+ var Sa = ni();
3609
+ const xa = di(Ni)`
3610
+ border-width: 1px;
3611
+ border-style: solid;
3612
+ border-color: #d9d9d9;
3613
+ background: white;
3614
+ border-radius: 10px;
3615
+ `;
3616
+ function Ra({ displayedValue: e }) {
3617
+ const t = Sa.sanitize(e), n = pe(t);
3618
+ return /* @__PURE__ */ An.jsx(mi, { overlay: n, children: /* @__PURE__ */ An.jsx(xa, {}) });
3619
+ }
3620
+ export {
3621
+ Ra as default
3622
+ };