@janbox/storefront-builder 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2718 @@
1
+ import { jsx as b, Fragment as ae, jsxs as L } from "@emotion/react/jsx-runtime";
2
+ import { Grid as Ue, Cell as Ve, Link as ze, Button as Xe, Flexbox as We, FlexItem as Ye, Text as ie, Image as Ze, Marquee as Ke, MarqueeDataAttributes as Je, MarqueeItem as Qe, Tabs as $e, TabList as et, Tab as tt, TabContent as nt, TabPanel as rt, Swiper as at, SwiperSlide as it, Icon as ot, Accordion as st, AccordionSummary as lt, AccordionContent as ct, AccordionGroup as ut, Video as dt, Box as ft, CountdownTimer as pt, Primitive as ue } from "@janbox/storefront-ui";
3
+ import { useEditor as ht, useNode as O } from "@craftjs/core";
4
+ import { useMergeRefs as F } from "@floating-ui/react";
5
+ import { parseInt as mt, isString as de, isNil as G } from "lodash-es";
6
+ import { mediaQuery as vt } from "@janbox/storefront-ui/theme";
7
+ import De, { isValidElement as gt, useCallback as fe, useMemo as ke, forwardRef as yt, useId as Et, cloneElement as bt } from "react";
8
+ import { clsx as Tt } from "clsx";
9
+ import { twMerge as _t } from "tailwind-merge";
10
+ var R = /* @__PURE__ */ ((e) => (e.Root = "root", e.Unknown = "unknown", e.Box = "box", e.Paragraph = "paragraph", e.Heading = "heading", e.Image = "image", e.Button = "button", e.IconButton = "icon-button", e.Link = "link", e.Video = "video", e.Grid = "grid", e.Cell = "cell", e.Flexbox = "flexbox", e.FlexItem = "flex-item", e.UnorderedList = "unordered-list", e.ListItem = "list-item", e.Swiper = "swiper", e.SwiperSlide = "swiper-slide", e.Icon = "icon", e.Tabs = "tabs", e.TabList = "tab-list", e.Tab = "tab", e.TabContent = "tab-content", e.TabPanel = "tab-panel", e.Marquee = "marquee", e.MarqueeItem = "marquee-item", e.AccordionGroup = "accordion-group", e.Accordion = "accordion", e.AccordionSummary = "accordion-summary", e.AccordionContent = "accordion-content", e.CountdownTimer = "countdown-timer", e))(R || {}), U = /* @__PURE__ */ ((e) => (e.DATA_NODE_ID = "data-node-id", e.DATA_NODE_EDITABLE = "data-node-editable", e.DATA_NODE_SELECTABLE = "data-node-selectable", e.DATA_NODE_NAME = "data-node-name", e.DATA_NODE_RESOLVED = "data-node-resolved", e.DATA_NODE_INDICATOR_ERROR = "data-node-indicator-error", e.DATA_NODE_INDICATOR_TARGET = "data-node-indicator-target", e.DATA_NODE_DROP_TARGET = "data-node-drop-target", e.DATA_NODE_DROP_TARGET_ERROR = "data-node-drop-target-error", e))(U || {}), Pe = /* @__PURE__ */ ((e) => (e.True = "true", e.False = "false", e))(Pe || {});
11
+ function At(e) {
12
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
13
+ }
14
+ var J = {}, W = {}, ne = {}, B = {}, X = {}, se = {}, pe;
15
+ function Me() {
16
+ return pe || (pe = 1, (function(e) {
17
+ 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;
18
+ var n;
19
+ (function(r) {
20
+ 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";
21
+ })(n = e.ElementType || (e.ElementType = {}));
22
+ function i(r) {
23
+ return r.type === n.Tag || r.type === n.Script || r.type === n.Style;
24
+ }
25
+ e.isTag = i, e.Root = n.Root, e.Text = n.Text, e.Directive = n.Directive, e.Comment = n.Comment, e.Script = n.Script, e.Style = n.Style, e.Tag = n.Tag, e.CDATA = n.CDATA, e.Doctype = n.Doctype;
26
+ })(se)), se;
27
+ }
28
+ var T = {}, he;
29
+ function me() {
30
+ if (he) return T;
31
+ he = 1;
32
+ var e = T && T.__extends || /* @__PURE__ */ (function() {
33
+ var t = function(l, u) {
34
+ return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(m, g) {
35
+ m.__proto__ = g;
36
+ } || function(m, g) {
37
+ for (var S in g) Object.prototype.hasOwnProperty.call(g, S) && (m[S] = g[S]);
38
+ }, t(l, u);
39
+ };
40
+ return function(l, u) {
41
+ if (typeof u != "function" && u !== null)
42
+ throw new TypeError("Class extends value " + String(u) + " is not a constructor or null");
43
+ t(l, u);
44
+ function m() {
45
+ this.constructor = l;
46
+ }
47
+ l.prototype = u === null ? Object.create(u) : (m.prototype = u.prototype, new m());
48
+ };
49
+ })(), n = T && T.__assign || function() {
50
+ return n = Object.assign || function(t) {
51
+ for (var l, u = 1, m = arguments.length; u < m; u++) {
52
+ l = arguments[u];
53
+ for (var g in l) Object.prototype.hasOwnProperty.call(l, g) && (t[g] = l[g]);
54
+ }
55
+ return t;
56
+ }, n.apply(this, arguments);
57
+ };
58
+ Object.defineProperty(T, "__esModule", { value: !0 }), T.cloneNode = T.hasChildren = T.isDocument = T.isDirective = T.isComment = T.isText = T.isCDATA = T.isTag = T.Element = T.Document = T.CDATA = T.NodeWithChildren = T.ProcessingInstruction = T.Comment = T.Text = T.DataNode = T.Node = void 0;
59
+ var i = /* @__PURE__ */ Me(), r = (
60
+ /** @class */
61
+ (function() {
62
+ function t() {
63
+ this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
64
+ }
65
+ return Object.defineProperty(t.prototype, "parentNode", {
66
+ // Read-write aliases for properties
67
+ /**
68
+ * Same as {@link parent}.
69
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
70
+ */
71
+ get: function() {
72
+ return this.parent;
73
+ },
74
+ set: function(l) {
75
+ this.parent = l;
76
+ },
77
+ enumerable: !1,
78
+ configurable: !0
79
+ }), Object.defineProperty(t.prototype, "previousSibling", {
80
+ /**
81
+ * Same as {@link prev}.
82
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
83
+ */
84
+ get: function() {
85
+ return this.prev;
86
+ },
87
+ set: function(l) {
88
+ this.prev = l;
89
+ },
90
+ enumerable: !1,
91
+ configurable: !0
92
+ }), Object.defineProperty(t.prototype, "nextSibling", {
93
+ /**
94
+ * Same as {@link next}.
95
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
96
+ */
97
+ get: function() {
98
+ return this.next;
99
+ },
100
+ set: function(l) {
101
+ this.next = l;
102
+ },
103
+ enumerable: !1,
104
+ configurable: !0
105
+ }), t.prototype.cloneNode = function(l) {
106
+ return l === void 0 && (l = !1), D(this, l);
107
+ }, t;
108
+ })()
109
+ );
110
+ T.Node = r;
111
+ var s = (
112
+ /** @class */
113
+ (function(t) {
114
+ e(l, t);
115
+ function l(u) {
116
+ var m = t.call(this) || this;
117
+ return m.data = u, m;
118
+ }
119
+ return Object.defineProperty(l.prototype, "nodeValue", {
120
+ /**
121
+ * Same as {@link data}.
122
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
123
+ */
124
+ get: function() {
125
+ return this.data;
126
+ },
127
+ set: function(u) {
128
+ this.data = u;
129
+ },
130
+ enumerable: !1,
131
+ configurable: !0
132
+ }), l;
133
+ })(r)
134
+ );
135
+ T.DataNode = s;
136
+ var f = (
137
+ /** @class */
138
+ (function(t) {
139
+ e(l, t);
140
+ function l() {
141
+ var u = t !== null && t.apply(this, arguments) || this;
142
+ return u.type = i.ElementType.Text, u;
143
+ }
144
+ return Object.defineProperty(l.prototype, "nodeType", {
145
+ get: function() {
146
+ return 3;
147
+ },
148
+ enumerable: !1,
149
+ configurable: !0
150
+ }), l;
151
+ })(s)
152
+ );
153
+ T.Text = f;
154
+ var h = (
155
+ /** @class */
156
+ (function(t) {
157
+ e(l, t);
158
+ function l() {
159
+ var u = t !== null && t.apply(this, arguments) || this;
160
+ return u.type = i.ElementType.Comment, u;
161
+ }
162
+ return Object.defineProperty(l.prototype, "nodeType", {
163
+ get: function() {
164
+ return 8;
165
+ },
166
+ enumerable: !1,
167
+ configurable: !0
168
+ }), l;
169
+ })(s)
170
+ );
171
+ T.Comment = h;
172
+ var d = (
173
+ /** @class */
174
+ (function(t) {
175
+ e(l, t);
176
+ function l(u, m) {
177
+ var g = t.call(this, m) || this;
178
+ return g.name = u, g.type = i.ElementType.Directive, g;
179
+ }
180
+ return Object.defineProperty(l.prototype, "nodeType", {
181
+ get: function() {
182
+ return 1;
183
+ },
184
+ enumerable: !1,
185
+ configurable: !0
186
+ }), l;
187
+ })(s)
188
+ );
189
+ T.ProcessingInstruction = d;
190
+ var o = (
191
+ /** @class */
192
+ (function(t) {
193
+ e(l, t);
194
+ function l(u) {
195
+ var m = t.call(this) || this;
196
+ return m.children = u, m;
197
+ }
198
+ return Object.defineProperty(l.prototype, "firstChild", {
199
+ // Aliases
200
+ /** First child of the node. */
201
+ get: function() {
202
+ var u;
203
+ return (u = this.children[0]) !== null && u !== void 0 ? u : null;
204
+ },
205
+ enumerable: !1,
206
+ configurable: !0
207
+ }), Object.defineProperty(l.prototype, "lastChild", {
208
+ /** Last child of the node. */
209
+ get: function() {
210
+ return this.children.length > 0 ? this.children[this.children.length - 1] : null;
211
+ },
212
+ enumerable: !1,
213
+ configurable: !0
214
+ }), Object.defineProperty(l.prototype, "childNodes", {
215
+ /**
216
+ * Same as {@link children}.
217
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
218
+ */
219
+ get: function() {
220
+ return this.children;
221
+ },
222
+ set: function(u) {
223
+ this.children = u;
224
+ },
225
+ enumerable: !1,
226
+ configurable: !0
227
+ }), l;
228
+ })(r)
229
+ );
230
+ T.NodeWithChildren = o;
231
+ var a = (
232
+ /** @class */
233
+ (function(t) {
234
+ e(l, t);
235
+ function l() {
236
+ var u = t !== null && t.apply(this, arguments) || this;
237
+ return u.type = i.ElementType.CDATA, u;
238
+ }
239
+ return Object.defineProperty(l.prototype, "nodeType", {
240
+ get: function() {
241
+ return 4;
242
+ },
243
+ enumerable: !1,
244
+ configurable: !0
245
+ }), l;
246
+ })(o)
247
+ );
248
+ T.CDATA = a;
249
+ var c = (
250
+ /** @class */
251
+ (function(t) {
252
+ e(l, t);
253
+ function l() {
254
+ var u = t !== null && t.apply(this, arguments) || this;
255
+ return u.type = i.ElementType.Root, u;
256
+ }
257
+ return Object.defineProperty(l.prototype, "nodeType", {
258
+ get: function() {
259
+ return 9;
260
+ },
261
+ enumerable: !1,
262
+ configurable: !0
263
+ }), l;
264
+ })(o)
265
+ );
266
+ T.Document = c;
267
+ var p = (
268
+ /** @class */
269
+ (function(t) {
270
+ e(l, t);
271
+ function l(u, m, g, S) {
272
+ g === void 0 && (g = []), S === void 0 && (S = u === "script" ? i.ElementType.Script : u === "style" ? i.ElementType.Style : i.ElementType.Tag);
273
+ var M = t.call(this, g) || this;
274
+ return M.name = u, M.attribs = m, M.type = S, M;
275
+ }
276
+ return Object.defineProperty(l.prototype, "nodeType", {
277
+ get: function() {
278
+ return 1;
279
+ },
280
+ enumerable: !1,
281
+ configurable: !0
282
+ }), Object.defineProperty(l.prototype, "tagName", {
283
+ // DOM Level 1 aliases
284
+ /**
285
+ * Same as {@link name}.
286
+ * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
287
+ */
288
+ get: function() {
289
+ return this.name;
290
+ },
291
+ set: function(u) {
292
+ this.name = u;
293
+ },
294
+ enumerable: !1,
295
+ configurable: !0
296
+ }), Object.defineProperty(l.prototype, "attributes", {
297
+ get: function() {
298
+ var u = this;
299
+ return Object.keys(this.attribs).map(function(m) {
300
+ var g, S;
301
+ return {
302
+ name: m,
303
+ value: u.attribs[m],
304
+ namespace: (g = u["x-attribsNamespace"]) === null || g === void 0 ? void 0 : g[m],
305
+ prefix: (S = u["x-attribsPrefix"]) === null || S === void 0 ? void 0 : S[m]
306
+ };
307
+ });
308
+ },
309
+ enumerable: !1,
310
+ configurable: !0
311
+ }), l;
312
+ })(o)
313
+ );
314
+ T.Element = p;
315
+ function y(t) {
316
+ return (0, i.isTag)(t);
317
+ }
318
+ T.isTag = y;
319
+ function _(t) {
320
+ return t.type === i.ElementType.CDATA;
321
+ }
322
+ T.isCDATA = _;
323
+ function N(t) {
324
+ return t.type === i.ElementType.Text;
325
+ }
326
+ T.isText = N;
327
+ function E(t) {
328
+ return t.type === i.ElementType.Comment;
329
+ }
330
+ T.isComment = E;
331
+ function v(t) {
332
+ return t.type === i.ElementType.Directive;
333
+ }
334
+ T.isDirective = v;
335
+ function A(t) {
336
+ return t.type === i.ElementType.Root;
337
+ }
338
+ T.isDocument = A;
339
+ function P(t) {
340
+ return Object.prototype.hasOwnProperty.call(t, "children");
341
+ }
342
+ T.hasChildren = P;
343
+ function D(t, l) {
344
+ l === void 0 && (l = !1);
345
+ var u;
346
+ if (N(t))
347
+ u = new f(t.data);
348
+ else if (E(t))
349
+ u = new h(t.data);
350
+ else if (y(t)) {
351
+ var m = l ? k(t.children) : [], g = new p(t.name, n({}, t.attribs), m);
352
+ m.forEach(function(oe) {
353
+ return oe.parent = g;
354
+ }), t.namespace != null && (g.namespace = t.namespace), t["x-attribsNamespace"] && (g["x-attribsNamespace"] = n({}, t["x-attribsNamespace"])), t["x-attribsPrefix"] && (g["x-attribsPrefix"] = n({}, t["x-attribsPrefix"])), u = g;
355
+ } else if (_(t)) {
356
+ var m = l ? k(t.children) : [], S = new a(m);
357
+ m.forEach(function(w) {
358
+ return w.parent = S;
359
+ }), u = S;
360
+ } else if (A(t)) {
361
+ var m = l ? k(t.children) : [], M = new c(m);
362
+ m.forEach(function(w) {
363
+ return w.parent = M;
364
+ }), t["x-mode"] && (M["x-mode"] = t["x-mode"]), u = M;
365
+ } else if (v(t)) {
366
+ var q = new d(t.name, t.data);
367
+ t["x-name"] != null && (q["x-name"] = t["x-name"], q["x-publicId"] = t["x-publicId"], q["x-systemId"] = t["x-systemId"]), u = q;
368
+ } else
369
+ throw new Error("Not implemented yet: ".concat(t.type));
370
+ return u.startIndex = t.startIndex, u.endIndex = t.endIndex, t.sourceCodeLocation != null && (u.sourceCodeLocation = t.sourceCodeLocation), u;
371
+ }
372
+ T.cloneNode = D;
373
+ function k(t) {
374
+ for (var l = t.map(function(m) {
375
+ return D(m, !0);
376
+ }), u = 1; u < l.length; u++)
377
+ l[u].prev = l[u - 1], l[u - 1].next = l[u];
378
+ return l;
379
+ }
380
+ return T;
381
+ }
382
+ var ve;
383
+ function Le() {
384
+ return ve || (ve = 1, (function(e) {
385
+ var n = X && X.__createBinding || (Object.create ? (function(d, o, a, c) {
386
+ c === void 0 && (c = a);
387
+ var p = Object.getOwnPropertyDescriptor(o, a);
388
+ (!p || ("get" in p ? !o.__esModule : p.writable || p.configurable)) && (p = { enumerable: !0, get: function() {
389
+ return o[a];
390
+ } }), Object.defineProperty(d, c, p);
391
+ }) : (function(d, o, a, c) {
392
+ c === void 0 && (c = a), d[c] = o[a];
393
+ })), i = X && X.__exportStar || function(d, o) {
394
+ for (var a in d) a !== "default" && !Object.prototype.hasOwnProperty.call(o, a) && n(o, d, a);
395
+ };
396
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
397
+ var r = /* @__PURE__ */ Me(), s = /* @__PURE__ */ me();
398
+ i(/* @__PURE__ */ me(), e);
399
+ var f = {
400
+ withStartIndices: !1,
401
+ withEndIndices: !1,
402
+ xmlMode: !1
403
+ }, h = (
404
+ /** @class */
405
+ (function() {
406
+ function d(o, a, c) {
407
+ this.dom = [], this.root = new s.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof a == "function" && (c = a, a = f), typeof o == "object" && (a = o, o = void 0), this.callback = o ?? null, this.options = a ?? f, this.elementCB = c ?? null;
408
+ }
409
+ return d.prototype.onparserinit = function(o) {
410
+ this.parser = o;
411
+ }, d.prototype.onreset = function() {
412
+ this.dom = [], this.root = new s.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
413
+ }, d.prototype.onend = function() {
414
+ this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
415
+ }, d.prototype.onerror = function(o) {
416
+ this.handleCallback(o);
417
+ }, d.prototype.onclosetag = function() {
418
+ this.lastNode = null;
419
+ var o = this.tagStack.pop();
420
+ this.options.withEndIndices && (o.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(o);
421
+ }, d.prototype.onopentag = function(o, a) {
422
+ var c = this.options.xmlMode ? r.ElementType.Tag : void 0, p = new s.Element(o, a, void 0, c);
423
+ this.addNode(p), this.tagStack.push(p);
424
+ }, d.prototype.ontext = function(o) {
425
+ var a = this.lastNode;
426
+ if (a && a.type === r.ElementType.Text)
427
+ a.data += o, this.options.withEndIndices && (a.endIndex = this.parser.endIndex);
428
+ else {
429
+ var c = new s.Text(o);
430
+ this.addNode(c), this.lastNode = c;
431
+ }
432
+ }, d.prototype.oncomment = function(o) {
433
+ if (this.lastNode && this.lastNode.type === r.ElementType.Comment) {
434
+ this.lastNode.data += o;
435
+ return;
436
+ }
437
+ var a = new s.Comment(o);
438
+ this.addNode(a), this.lastNode = a;
439
+ }, d.prototype.oncommentend = function() {
440
+ this.lastNode = null;
441
+ }, d.prototype.oncdatastart = function() {
442
+ var o = new s.Text(""), a = new s.CDATA([o]);
443
+ this.addNode(a), o.parent = a, this.lastNode = o;
444
+ }, d.prototype.oncdataend = function() {
445
+ this.lastNode = null;
446
+ }, d.prototype.onprocessinginstruction = function(o, a) {
447
+ var c = new s.ProcessingInstruction(o, a);
448
+ this.addNode(c);
449
+ }, d.prototype.handleCallback = function(o) {
450
+ if (typeof this.callback == "function")
451
+ this.callback(o, this.dom);
452
+ else if (o)
453
+ throw o;
454
+ }, d.prototype.addNode = function(o) {
455
+ var a = this.tagStack[this.tagStack.length - 1], c = a.children[a.children.length - 1];
456
+ this.options.withStartIndices && (o.startIndex = this.parser.startIndex), this.options.withEndIndices && (o.endIndex = this.parser.endIndex), a.children.push(o), c && (o.prev = c, c.next = o), o.parent = a, this.lastNode = null;
457
+ }, d;
458
+ })()
459
+ );
460
+ e.DomHandler = h, e.default = h;
461
+ })(X)), X;
462
+ }
463
+ var le = {}, ge;
464
+ function Ct() {
465
+ return ge || (ge = 1, (function(e) {
466
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = e.CARRIAGE_RETURN_PLACEHOLDER = e.CARRIAGE_RETURN_REGEX = e.CARRIAGE_RETURN = e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES = void 0, e.CASE_SENSITIVE_TAG_NAMES = [
467
+ "animateMotion",
468
+ "animateTransform",
469
+ "clipPath",
470
+ "feBlend",
471
+ "feColorMatrix",
472
+ "feComponentTransfer",
473
+ "feComposite",
474
+ "feConvolveMatrix",
475
+ "feDiffuseLighting",
476
+ "feDisplacementMap",
477
+ "feDropShadow",
478
+ "feFlood",
479
+ "feFuncA",
480
+ "feFuncB",
481
+ "feFuncG",
482
+ "feFuncR",
483
+ "feGaussianBlur",
484
+ "feImage",
485
+ "feMerge",
486
+ "feMergeNode",
487
+ "feMorphology",
488
+ "feOffset",
489
+ "fePointLight",
490
+ "feSpecularLighting",
491
+ "feSpotLight",
492
+ "feTile",
493
+ "feTurbulence",
494
+ "foreignObject",
495
+ "linearGradient",
496
+ "radialGradient",
497
+ "textPath"
498
+ ], e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES.reduce(function(n, i) {
499
+ return n[i.toLowerCase()] = i, n;
500
+ }, {}), e.CARRIAGE_RETURN = "\r", e.CARRIAGE_RETURN_REGEX = new RegExp(e.CARRIAGE_RETURN, "g"), e.CARRIAGE_RETURN_PLACEHOLDER = "__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(), "__"), e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER, "g");
501
+ })(le)), le;
502
+ }
503
+ var ye;
504
+ function Fe() {
505
+ if (ye) return B;
506
+ ye = 1, Object.defineProperty(B, "__esModule", { value: !0 }), B.formatAttributes = r, B.hasOpenTag = f, B.escapeSpecialCharacters = h, B.revertEscapedCharacters = d, B.formatDOM = o;
507
+ var e = /* @__PURE__ */ Le(), n = Ct();
508
+ function i(a) {
509
+ return n.CASE_SENSITIVE_TAG_NAMES_MAP[a];
510
+ }
511
+ function r(a) {
512
+ for (var c = {}, p = 0, y = a.length; p < y; p++) {
513
+ var _ = a[p];
514
+ c[_.name] = _.value;
515
+ }
516
+ return c;
517
+ }
518
+ function s(a) {
519
+ a = a.toLowerCase();
520
+ var c = i(a);
521
+ return c || a;
522
+ }
523
+ function f(a, c) {
524
+ var p = "<" + c, y = a.toLowerCase().indexOf(p);
525
+ if (y === -1)
526
+ return !1;
527
+ var _ = a[y + p.length];
528
+ return _ === ">" || _ === " " || _ === " " || _ === `
529
+ ` || _ === "\r" || _ === "/";
530
+ }
531
+ function h(a) {
532
+ return a.replace(n.CARRIAGE_RETURN_REGEX, n.CARRIAGE_RETURN_PLACEHOLDER);
533
+ }
534
+ function d(a) {
535
+ return a.replace(n.CARRIAGE_RETURN_PLACEHOLDER_REGEX, n.CARRIAGE_RETURN);
536
+ }
537
+ function o(a, c, p) {
538
+ var y, _, N, E;
539
+ c === void 0 && (c = null);
540
+ for (var v = [], A, P = 0, D = a.length; P < D; P++) {
541
+ var k = a[P];
542
+ switch (k.nodeType) {
543
+ case 1: {
544
+ var t = s(k.nodeName);
545
+ A = new e.Element(t, r(k.attributes)), A.children = o(
546
+ // template children are on content
547
+ t === "template" ? k.content.childNodes : k.childNodes,
548
+ A
549
+ );
550
+ break;
551
+ }
552
+ case 3:
553
+ A = new e.Text(d((y = k.nodeValue) !== null && y !== void 0 ? y : ""));
554
+ break;
555
+ case 8:
556
+ A = new e.Comment((_ = k.nodeValue) !== null && _ !== void 0 ? _ : "");
557
+ break;
558
+ default:
559
+ continue;
560
+ }
561
+ var l = (N = v[P - 1]) !== null && N !== void 0 ? N : null;
562
+ l && (l.next = A), A.parent = c, A.prev = l, A.next = null, v.push(A);
563
+ }
564
+ return p && (A = new e.ProcessingInstruction(p.substring(0, p.indexOf(" ")).toLowerCase(), p), A.next = (E = v[0]) !== null && E !== void 0 ? E : null, A.parent = c, v.unshift(A), v[1] && (v[1].prev = v[0])), v;
565
+ }
566
+ return B;
567
+ }
568
+ var Ee;
569
+ function Rt() {
570
+ if (Ee) return ne;
571
+ Ee = 1, Object.defineProperty(ne, "__esModule", { value: !0 }), ne.default = N;
572
+ var e = Fe(), n = "html", i = "head", r = "body", s = /<([a-zA-Z]+[0-9]?)/, f = function(E, v) {
573
+ throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
574
+ }, h = function(E, v) {
575
+ throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
576
+ }, d = typeof window == "object" && window.DOMParser;
577
+ if (typeof d == "function") {
578
+ var o = new d(), a = "text/html";
579
+ h = function(E, v) {
580
+ return v && (E = "<".concat(v, ">").concat(E, "</").concat(v, ">")), o.parseFromString(E, a);
581
+ }, f = h;
582
+ }
583
+ if (typeof document == "object" && document.implementation) {
584
+ var c = document.implementation.createHTMLDocument();
585
+ f = function(E, v) {
586
+ if (v) {
587
+ var A = c.documentElement.querySelector(v);
588
+ return A && (A.innerHTML = E), c;
589
+ }
590
+ return c.documentElement.innerHTML = E, c;
591
+ };
592
+ }
593
+ var p = typeof document == "object" && document.createElement("template"), y;
594
+ p && p.content && (y = function(E) {
595
+ return p.innerHTML = E, p.content.childNodes;
596
+ });
597
+ var _ = (
598
+ /* istanbul ignore next */
599
+ function() {
600
+ return document.createDocumentFragment().childNodes;
601
+ }
602
+ );
603
+ function N(E) {
604
+ var v, A, P, D, k, t;
605
+ E = (0, e.escapeSpecialCharacters)(E);
606
+ var l = s.exec(E), u = (v = l?.[1]) === null || v === void 0 ? void 0 : v.toLowerCase();
607
+ switch (u) {
608
+ case n: {
609
+ var m = h(E);
610
+ if (!(0, e.hasOpenTag)(E, i)) {
611
+ var g = m.querySelector(i);
612
+ (A = g?.parentNode) === null || A === void 0 || A.removeChild(g);
613
+ }
614
+ if (!(0, e.hasOpenTag)(E, r)) {
615
+ var g = m.querySelector(r);
616
+ (P = g?.parentNode) === null || P === void 0 || P.removeChild(g);
617
+ }
618
+ return m.querySelectorAll(n);
619
+ }
620
+ case i:
621
+ case r: {
622
+ var S = f(E).querySelectorAll(u);
623
+ return (0, e.hasOpenTag)(E, r) && (0, e.hasOpenTag)(E, i) ? (k = (D = S[0].parentNode) === null || D === void 0 ? void 0 : D.childNodes) !== null && k !== void 0 ? k : _() : S;
624
+ }
625
+ // low-level tag or text
626
+ default: {
627
+ if (y)
628
+ return y(E);
629
+ var g = f(E, r).querySelector(r);
630
+ return (t = g?.childNodes) !== null && t !== void 0 ? t : _();
631
+ }
632
+ }
633
+ }
634
+ return ne;
635
+ }
636
+ var be;
637
+ function wt() {
638
+ if (be) return W;
639
+ be = 1;
640
+ var e = W && W.__importDefault || function(f) {
641
+ return f && f.__esModule ? f : { default: f };
642
+ };
643
+ Object.defineProperty(W, "__esModule", { value: !0 }), W.default = s;
644
+ var n = e(Rt()), i = Fe(), r = /<(![a-zA-Z\s]+)>/;
645
+ function s(f) {
646
+ if (typeof f != "string")
647
+ throw new TypeError("First argument must be a string");
648
+ if (!f)
649
+ return [];
650
+ var h = r.exec(f), d = h ? h[1] : void 0;
651
+ return (0, i.formatDOM)((0, n.default)(f), null, d);
652
+ }
653
+ return W;
654
+ }
655
+ var re = {}, H = {}, Q = {}, Te;
656
+ function St() {
657
+ if (Te) return Q;
658
+ Te = 1;
659
+ var e = 0;
660
+ Q.SAME = e;
661
+ var n = 1;
662
+ return Q.CAMELCASE = n, Q.possibleStandardNames = {
663
+ accept: 0,
664
+ acceptCharset: 1,
665
+ "accept-charset": "acceptCharset",
666
+ accessKey: 1,
667
+ action: 0,
668
+ allowFullScreen: 1,
669
+ alt: 0,
670
+ as: 0,
671
+ async: 0,
672
+ autoCapitalize: 1,
673
+ autoComplete: 1,
674
+ autoCorrect: 1,
675
+ autoFocus: 1,
676
+ autoPlay: 1,
677
+ autoSave: 1,
678
+ capture: 0,
679
+ cellPadding: 1,
680
+ cellSpacing: 1,
681
+ challenge: 0,
682
+ charSet: 1,
683
+ checked: 0,
684
+ children: 0,
685
+ cite: 0,
686
+ class: "className",
687
+ classID: 1,
688
+ className: 1,
689
+ cols: 0,
690
+ colSpan: 1,
691
+ content: 0,
692
+ contentEditable: 1,
693
+ contextMenu: 1,
694
+ controls: 0,
695
+ controlsList: 1,
696
+ coords: 0,
697
+ crossOrigin: 1,
698
+ dangerouslySetInnerHTML: 1,
699
+ data: 0,
700
+ dateTime: 1,
701
+ default: 0,
702
+ defaultChecked: 1,
703
+ defaultValue: 1,
704
+ defer: 0,
705
+ dir: 0,
706
+ disabled: 0,
707
+ disablePictureInPicture: 1,
708
+ disableRemotePlayback: 1,
709
+ download: 0,
710
+ draggable: 0,
711
+ encType: 1,
712
+ enterKeyHint: 1,
713
+ for: "htmlFor",
714
+ form: 0,
715
+ formMethod: 1,
716
+ formAction: 1,
717
+ formEncType: 1,
718
+ formNoValidate: 1,
719
+ formTarget: 1,
720
+ frameBorder: 1,
721
+ headers: 0,
722
+ height: 0,
723
+ hidden: 0,
724
+ high: 0,
725
+ href: 0,
726
+ hrefLang: 1,
727
+ htmlFor: 1,
728
+ httpEquiv: 1,
729
+ "http-equiv": "httpEquiv",
730
+ icon: 0,
731
+ id: 0,
732
+ innerHTML: 1,
733
+ inputMode: 1,
734
+ integrity: 0,
735
+ is: 0,
736
+ itemID: 1,
737
+ itemProp: 1,
738
+ itemRef: 1,
739
+ itemScope: 1,
740
+ itemType: 1,
741
+ keyParams: 1,
742
+ keyType: 1,
743
+ kind: 0,
744
+ label: 0,
745
+ lang: 0,
746
+ list: 0,
747
+ loop: 0,
748
+ low: 0,
749
+ manifest: 0,
750
+ marginWidth: 1,
751
+ marginHeight: 1,
752
+ max: 0,
753
+ maxLength: 1,
754
+ media: 0,
755
+ mediaGroup: 1,
756
+ method: 0,
757
+ min: 0,
758
+ minLength: 1,
759
+ multiple: 0,
760
+ muted: 0,
761
+ name: 0,
762
+ noModule: 1,
763
+ nonce: 0,
764
+ noValidate: 1,
765
+ open: 0,
766
+ optimum: 0,
767
+ pattern: 0,
768
+ placeholder: 0,
769
+ playsInline: 1,
770
+ poster: 0,
771
+ preload: 0,
772
+ profile: 0,
773
+ radioGroup: 1,
774
+ readOnly: 1,
775
+ referrerPolicy: 1,
776
+ rel: 0,
777
+ required: 0,
778
+ reversed: 0,
779
+ role: 0,
780
+ rows: 0,
781
+ rowSpan: 1,
782
+ sandbox: 0,
783
+ scope: 0,
784
+ scoped: 0,
785
+ scrolling: 0,
786
+ seamless: 0,
787
+ selected: 0,
788
+ shape: 0,
789
+ size: 0,
790
+ sizes: 0,
791
+ span: 0,
792
+ spellCheck: 1,
793
+ src: 0,
794
+ srcDoc: 1,
795
+ srcLang: 1,
796
+ srcSet: 1,
797
+ start: 0,
798
+ step: 0,
799
+ style: 0,
800
+ summary: 0,
801
+ tabIndex: 1,
802
+ target: 0,
803
+ title: 0,
804
+ type: 0,
805
+ useMap: 1,
806
+ value: 0,
807
+ width: 0,
808
+ wmode: 0,
809
+ wrap: 0,
810
+ about: 0,
811
+ accentHeight: 1,
812
+ "accent-height": "accentHeight",
813
+ accumulate: 0,
814
+ additive: 0,
815
+ alignmentBaseline: 1,
816
+ "alignment-baseline": "alignmentBaseline",
817
+ allowReorder: 1,
818
+ alphabetic: 0,
819
+ amplitude: 0,
820
+ arabicForm: 1,
821
+ "arabic-form": "arabicForm",
822
+ ascent: 0,
823
+ attributeName: 1,
824
+ attributeType: 1,
825
+ autoReverse: 1,
826
+ azimuth: 0,
827
+ baseFrequency: 1,
828
+ baselineShift: 1,
829
+ "baseline-shift": "baselineShift",
830
+ baseProfile: 1,
831
+ bbox: 0,
832
+ begin: 0,
833
+ bias: 0,
834
+ by: 0,
835
+ calcMode: 1,
836
+ capHeight: 1,
837
+ "cap-height": "capHeight",
838
+ clip: 0,
839
+ clipPath: 1,
840
+ "clip-path": "clipPath",
841
+ clipPathUnits: 1,
842
+ clipRule: 1,
843
+ "clip-rule": "clipRule",
844
+ color: 0,
845
+ colorInterpolation: 1,
846
+ "color-interpolation": "colorInterpolation",
847
+ colorInterpolationFilters: 1,
848
+ "color-interpolation-filters": "colorInterpolationFilters",
849
+ colorProfile: 1,
850
+ "color-profile": "colorProfile",
851
+ colorRendering: 1,
852
+ "color-rendering": "colorRendering",
853
+ contentScriptType: 1,
854
+ contentStyleType: 1,
855
+ cursor: 0,
856
+ cx: 0,
857
+ cy: 0,
858
+ d: 0,
859
+ datatype: 0,
860
+ decelerate: 0,
861
+ descent: 0,
862
+ diffuseConstant: 1,
863
+ direction: 0,
864
+ display: 0,
865
+ divisor: 0,
866
+ dominantBaseline: 1,
867
+ "dominant-baseline": "dominantBaseline",
868
+ dur: 0,
869
+ dx: 0,
870
+ dy: 0,
871
+ edgeMode: 1,
872
+ elevation: 0,
873
+ enableBackground: 1,
874
+ "enable-background": "enableBackground",
875
+ end: 0,
876
+ exponent: 0,
877
+ externalResourcesRequired: 1,
878
+ fill: 0,
879
+ fillOpacity: 1,
880
+ "fill-opacity": "fillOpacity",
881
+ fillRule: 1,
882
+ "fill-rule": "fillRule",
883
+ filter: 0,
884
+ filterRes: 1,
885
+ filterUnits: 1,
886
+ floodOpacity: 1,
887
+ "flood-opacity": "floodOpacity",
888
+ floodColor: 1,
889
+ "flood-color": "floodColor",
890
+ focusable: 0,
891
+ fontFamily: 1,
892
+ "font-family": "fontFamily",
893
+ fontSize: 1,
894
+ "font-size": "fontSize",
895
+ fontSizeAdjust: 1,
896
+ "font-size-adjust": "fontSizeAdjust",
897
+ fontStretch: 1,
898
+ "font-stretch": "fontStretch",
899
+ fontStyle: 1,
900
+ "font-style": "fontStyle",
901
+ fontVariant: 1,
902
+ "font-variant": "fontVariant",
903
+ fontWeight: 1,
904
+ "font-weight": "fontWeight",
905
+ format: 0,
906
+ from: 0,
907
+ fx: 0,
908
+ fy: 0,
909
+ g1: 0,
910
+ g2: 0,
911
+ glyphName: 1,
912
+ "glyph-name": "glyphName",
913
+ glyphOrientationHorizontal: 1,
914
+ "glyph-orientation-horizontal": "glyphOrientationHorizontal",
915
+ glyphOrientationVertical: 1,
916
+ "glyph-orientation-vertical": "glyphOrientationVertical",
917
+ glyphRef: 1,
918
+ gradientTransform: 1,
919
+ gradientUnits: 1,
920
+ hanging: 0,
921
+ horizAdvX: 1,
922
+ "horiz-adv-x": "horizAdvX",
923
+ horizOriginX: 1,
924
+ "horiz-origin-x": "horizOriginX",
925
+ ideographic: 0,
926
+ imageRendering: 1,
927
+ "image-rendering": "imageRendering",
928
+ in2: 0,
929
+ in: 0,
930
+ inlist: 0,
931
+ intercept: 0,
932
+ k1: 0,
933
+ k2: 0,
934
+ k3: 0,
935
+ k4: 0,
936
+ k: 0,
937
+ kernelMatrix: 1,
938
+ kernelUnitLength: 1,
939
+ kerning: 0,
940
+ keyPoints: 1,
941
+ keySplines: 1,
942
+ keyTimes: 1,
943
+ lengthAdjust: 1,
944
+ letterSpacing: 1,
945
+ "letter-spacing": "letterSpacing",
946
+ lightingColor: 1,
947
+ "lighting-color": "lightingColor",
948
+ limitingConeAngle: 1,
949
+ local: 0,
950
+ markerEnd: 1,
951
+ "marker-end": "markerEnd",
952
+ markerHeight: 1,
953
+ markerMid: 1,
954
+ "marker-mid": "markerMid",
955
+ markerStart: 1,
956
+ "marker-start": "markerStart",
957
+ markerUnits: 1,
958
+ markerWidth: 1,
959
+ mask: 0,
960
+ maskContentUnits: 1,
961
+ maskUnits: 1,
962
+ mathematical: 0,
963
+ mode: 0,
964
+ numOctaves: 1,
965
+ offset: 0,
966
+ opacity: 0,
967
+ operator: 0,
968
+ order: 0,
969
+ orient: 0,
970
+ orientation: 0,
971
+ origin: 0,
972
+ overflow: 0,
973
+ overlinePosition: 1,
974
+ "overline-position": "overlinePosition",
975
+ overlineThickness: 1,
976
+ "overline-thickness": "overlineThickness",
977
+ paintOrder: 1,
978
+ "paint-order": "paintOrder",
979
+ panose1: 0,
980
+ "panose-1": "panose1",
981
+ pathLength: 1,
982
+ patternContentUnits: 1,
983
+ patternTransform: 1,
984
+ patternUnits: 1,
985
+ pointerEvents: 1,
986
+ "pointer-events": "pointerEvents",
987
+ points: 0,
988
+ pointsAtX: 1,
989
+ pointsAtY: 1,
990
+ pointsAtZ: 1,
991
+ prefix: 0,
992
+ preserveAlpha: 1,
993
+ preserveAspectRatio: 1,
994
+ primitiveUnits: 1,
995
+ property: 0,
996
+ r: 0,
997
+ radius: 0,
998
+ refX: 1,
999
+ refY: 1,
1000
+ renderingIntent: 1,
1001
+ "rendering-intent": "renderingIntent",
1002
+ repeatCount: 1,
1003
+ repeatDur: 1,
1004
+ requiredExtensions: 1,
1005
+ requiredFeatures: 1,
1006
+ resource: 0,
1007
+ restart: 0,
1008
+ result: 0,
1009
+ results: 0,
1010
+ rotate: 0,
1011
+ rx: 0,
1012
+ ry: 0,
1013
+ scale: 0,
1014
+ security: 0,
1015
+ seed: 0,
1016
+ shapeRendering: 1,
1017
+ "shape-rendering": "shapeRendering",
1018
+ slope: 0,
1019
+ spacing: 0,
1020
+ specularConstant: 1,
1021
+ specularExponent: 1,
1022
+ speed: 0,
1023
+ spreadMethod: 1,
1024
+ startOffset: 1,
1025
+ stdDeviation: 1,
1026
+ stemh: 0,
1027
+ stemv: 0,
1028
+ stitchTiles: 1,
1029
+ stopColor: 1,
1030
+ "stop-color": "stopColor",
1031
+ stopOpacity: 1,
1032
+ "stop-opacity": "stopOpacity",
1033
+ strikethroughPosition: 1,
1034
+ "strikethrough-position": "strikethroughPosition",
1035
+ strikethroughThickness: 1,
1036
+ "strikethrough-thickness": "strikethroughThickness",
1037
+ string: 0,
1038
+ stroke: 0,
1039
+ strokeDasharray: 1,
1040
+ "stroke-dasharray": "strokeDasharray",
1041
+ strokeDashoffset: 1,
1042
+ "stroke-dashoffset": "strokeDashoffset",
1043
+ strokeLinecap: 1,
1044
+ "stroke-linecap": "strokeLinecap",
1045
+ strokeLinejoin: 1,
1046
+ "stroke-linejoin": "strokeLinejoin",
1047
+ strokeMiterlimit: 1,
1048
+ "stroke-miterlimit": "strokeMiterlimit",
1049
+ strokeWidth: 1,
1050
+ "stroke-width": "strokeWidth",
1051
+ strokeOpacity: 1,
1052
+ "stroke-opacity": "strokeOpacity",
1053
+ suppressContentEditableWarning: 1,
1054
+ suppressHydrationWarning: 1,
1055
+ surfaceScale: 1,
1056
+ systemLanguage: 1,
1057
+ tableValues: 1,
1058
+ targetX: 1,
1059
+ targetY: 1,
1060
+ textAnchor: 1,
1061
+ "text-anchor": "textAnchor",
1062
+ textDecoration: 1,
1063
+ "text-decoration": "textDecoration",
1064
+ textLength: 1,
1065
+ textRendering: 1,
1066
+ "text-rendering": "textRendering",
1067
+ to: 0,
1068
+ transform: 0,
1069
+ typeof: 0,
1070
+ u1: 0,
1071
+ u2: 0,
1072
+ underlinePosition: 1,
1073
+ "underline-position": "underlinePosition",
1074
+ underlineThickness: 1,
1075
+ "underline-thickness": "underlineThickness",
1076
+ unicode: 0,
1077
+ unicodeBidi: 1,
1078
+ "unicode-bidi": "unicodeBidi",
1079
+ unicodeRange: 1,
1080
+ "unicode-range": "unicodeRange",
1081
+ unitsPerEm: 1,
1082
+ "units-per-em": "unitsPerEm",
1083
+ unselectable: 0,
1084
+ vAlphabetic: 1,
1085
+ "v-alphabetic": "vAlphabetic",
1086
+ values: 0,
1087
+ vectorEffect: 1,
1088
+ "vector-effect": "vectorEffect",
1089
+ version: 0,
1090
+ vertAdvY: 1,
1091
+ "vert-adv-y": "vertAdvY",
1092
+ vertOriginX: 1,
1093
+ "vert-origin-x": "vertOriginX",
1094
+ vertOriginY: 1,
1095
+ "vert-origin-y": "vertOriginY",
1096
+ vHanging: 1,
1097
+ "v-hanging": "vHanging",
1098
+ vIdeographic: 1,
1099
+ "v-ideographic": "vIdeographic",
1100
+ viewBox: 1,
1101
+ viewTarget: 1,
1102
+ visibility: 0,
1103
+ vMathematical: 1,
1104
+ "v-mathematical": "vMathematical",
1105
+ vocab: 0,
1106
+ widths: 0,
1107
+ wordSpacing: 1,
1108
+ "word-spacing": "wordSpacing",
1109
+ writingMode: 1,
1110
+ "writing-mode": "writingMode",
1111
+ x1: 0,
1112
+ x2: 0,
1113
+ x: 0,
1114
+ xChannelSelector: 1,
1115
+ xHeight: 1,
1116
+ "x-height": "xHeight",
1117
+ xlinkActuate: 1,
1118
+ "xlink:actuate": "xlinkActuate",
1119
+ xlinkArcrole: 1,
1120
+ "xlink:arcrole": "xlinkArcrole",
1121
+ xlinkHref: 1,
1122
+ "xlink:href": "xlinkHref",
1123
+ xlinkRole: 1,
1124
+ "xlink:role": "xlinkRole",
1125
+ xlinkShow: 1,
1126
+ "xlink:show": "xlinkShow",
1127
+ xlinkTitle: 1,
1128
+ "xlink:title": "xlinkTitle",
1129
+ xlinkType: 1,
1130
+ "xlink:type": "xlinkType",
1131
+ xmlBase: 1,
1132
+ "xml:base": "xmlBase",
1133
+ xmlLang: 1,
1134
+ "xml:lang": "xmlLang",
1135
+ xmlns: 0,
1136
+ "xml:space": "xmlSpace",
1137
+ xmlnsXlink: 1,
1138
+ "xmlns:xlink": "xmlnsXlink",
1139
+ xmlSpace: 1,
1140
+ y1: 0,
1141
+ y2: 0,
1142
+ y: 0,
1143
+ yChannelSelector: 1,
1144
+ z: 0,
1145
+ zoomAndPan: 1
1146
+ }, Q;
1147
+ }
1148
+ var _e;
1149
+ function Nt() {
1150
+ if (_e) return H;
1151
+ _e = 1;
1152
+ const e = 0, n = 1, i = 2, r = 3, s = 4, f = 5, h = 6;
1153
+ function d(t) {
1154
+ return a.hasOwnProperty(t) ? a[t] : null;
1155
+ }
1156
+ function o(t, l, u, m, g, S, M) {
1157
+ this.acceptsBooleans = l === i || l === r || l === s, this.attributeName = m, this.attributeNamespace = g, this.mustUseProperty = u, this.propertyName = t, this.type = l, this.sanitizeURL = S, this.removeEmptyString = M;
1158
+ }
1159
+ const a = {};
1160
+ [
1161
+ "children",
1162
+ "dangerouslySetInnerHTML",
1163
+ // TODO: This prevents the assignment of defaultValue to regular
1164
+ // elements (not just inputs). Now that ReactDOMInput assigns to the
1165
+ // defaultValue property -- do we need this?
1166
+ "defaultValue",
1167
+ "defaultChecked",
1168
+ "innerHTML",
1169
+ "suppressContentEditableWarning",
1170
+ "suppressHydrationWarning",
1171
+ "style"
1172
+ ].forEach((t) => {
1173
+ a[t] = new o(
1174
+ t,
1175
+ e,
1176
+ !1,
1177
+ // mustUseProperty
1178
+ t,
1179
+ // attributeName
1180
+ null,
1181
+ // attributeNamespace
1182
+ !1,
1183
+ // sanitizeURL
1184
+ !1
1185
+ // removeEmptyString
1186
+ );
1187
+ }), [
1188
+ ["acceptCharset", "accept-charset"],
1189
+ ["className", "class"],
1190
+ ["htmlFor", "for"],
1191
+ ["httpEquiv", "http-equiv"]
1192
+ ].forEach(([t, l]) => {
1193
+ a[t] = new o(
1194
+ t,
1195
+ n,
1196
+ !1,
1197
+ // mustUseProperty
1198
+ l,
1199
+ // attributeName
1200
+ null,
1201
+ // attributeNamespace
1202
+ !1,
1203
+ // sanitizeURL
1204
+ !1
1205
+ // removeEmptyString
1206
+ );
1207
+ }), ["contentEditable", "draggable", "spellCheck", "value"].forEach((t) => {
1208
+ a[t] = new o(
1209
+ t,
1210
+ i,
1211
+ !1,
1212
+ // mustUseProperty
1213
+ t.toLowerCase(),
1214
+ // attributeName
1215
+ null,
1216
+ // attributeNamespace
1217
+ !1,
1218
+ // sanitizeURL
1219
+ !1
1220
+ // removeEmptyString
1221
+ );
1222
+ }), [
1223
+ "autoReverse",
1224
+ "externalResourcesRequired",
1225
+ "focusable",
1226
+ "preserveAlpha"
1227
+ ].forEach((t) => {
1228
+ a[t] = new o(
1229
+ t,
1230
+ i,
1231
+ !1,
1232
+ // mustUseProperty
1233
+ t,
1234
+ // attributeName
1235
+ null,
1236
+ // attributeNamespace
1237
+ !1,
1238
+ // sanitizeURL
1239
+ !1
1240
+ // removeEmptyString
1241
+ );
1242
+ }), [
1243
+ "allowFullScreen",
1244
+ "async",
1245
+ // Note: there is a special case that prevents it from being written to the DOM
1246
+ // on the client side because the browsers are inconsistent. Instead we call focus().
1247
+ "autoFocus",
1248
+ "autoPlay",
1249
+ "controls",
1250
+ "default",
1251
+ "defer",
1252
+ "disabled",
1253
+ "disablePictureInPicture",
1254
+ "disableRemotePlayback",
1255
+ "formNoValidate",
1256
+ "hidden",
1257
+ "loop",
1258
+ "noModule",
1259
+ "noValidate",
1260
+ "open",
1261
+ "playsInline",
1262
+ "readOnly",
1263
+ "required",
1264
+ "reversed",
1265
+ "scoped",
1266
+ "seamless",
1267
+ // Microdata
1268
+ "itemScope"
1269
+ ].forEach((t) => {
1270
+ a[t] = new o(
1271
+ t,
1272
+ r,
1273
+ !1,
1274
+ // mustUseProperty
1275
+ t.toLowerCase(),
1276
+ // attributeName
1277
+ null,
1278
+ // attributeNamespace
1279
+ !1,
1280
+ // sanitizeURL
1281
+ !1
1282
+ // removeEmptyString
1283
+ );
1284
+ }), [
1285
+ "checked",
1286
+ // Note: `option.selected` is not updated if `select.multiple` is
1287
+ // disabled with `removeAttribute`. We have special logic for handling this.
1288
+ "multiple",
1289
+ "muted",
1290
+ "selected"
1291
+ // NOTE: if you add a camelCased prop to this list,
1292
+ // you'll need to set attributeName to name.toLowerCase()
1293
+ // instead in the assignment below.
1294
+ ].forEach((t) => {
1295
+ a[t] = new o(
1296
+ t,
1297
+ r,
1298
+ !0,
1299
+ // mustUseProperty
1300
+ t,
1301
+ // attributeName
1302
+ null,
1303
+ // attributeNamespace
1304
+ !1,
1305
+ // sanitizeURL
1306
+ !1
1307
+ // removeEmptyString
1308
+ );
1309
+ }), [
1310
+ "capture",
1311
+ "download"
1312
+ // NOTE: if you add a camelCased prop to this list,
1313
+ // you'll need to set attributeName to name.toLowerCase()
1314
+ // instead in the assignment below.
1315
+ ].forEach((t) => {
1316
+ a[t] = new o(
1317
+ t,
1318
+ s,
1319
+ !1,
1320
+ // mustUseProperty
1321
+ t,
1322
+ // attributeName
1323
+ null,
1324
+ // attributeNamespace
1325
+ !1,
1326
+ // sanitizeURL
1327
+ !1
1328
+ // removeEmptyString
1329
+ );
1330
+ }), [
1331
+ "cols",
1332
+ "rows",
1333
+ "size",
1334
+ "span"
1335
+ // NOTE: if you add a camelCased prop to this list,
1336
+ // you'll need to set attributeName to name.toLowerCase()
1337
+ // instead in the assignment below.
1338
+ ].forEach((t) => {
1339
+ a[t] = new o(
1340
+ t,
1341
+ h,
1342
+ !1,
1343
+ // mustUseProperty
1344
+ t,
1345
+ // attributeName
1346
+ null,
1347
+ // attributeNamespace
1348
+ !1,
1349
+ // sanitizeURL
1350
+ !1
1351
+ // removeEmptyString
1352
+ );
1353
+ }), ["rowSpan", "start"].forEach((t) => {
1354
+ a[t] = new o(
1355
+ t,
1356
+ f,
1357
+ !1,
1358
+ // mustUseProperty
1359
+ t.toLowerCase(),
1360
+ // attributeName
1361
+ null,
1362
+ // attributeNamespace
1363
+ !1,
1364
+ // sanitizeURL
1365
+ !1
1366
+ // removeEmptyString
1367
+ );
1368
+ });
1369
+ const p = /[\-\:]([a-z])/g, y = (t) => t[1].toUpperCase();
1370
+ [
1371
+ "accent-height",
1372
+ "alignment-baseline",
1373
+ "arabic-form",
1374
+ "baseline-shift",
1375
+ "cap-height",
1376
+ "clip-path",
1377
+ "clip-rule",
1378
+ "color-interpolation",
1379
+ "color-interpolation-filters",
1380
+ "color-profile",
1381
+ "color-rendering",
1382
+ "dominant-baseline",
1383
+ "enable-background",
1384
+ "fill-opacity",
1385
+ "fill-rule",
1386
+ "flood-color",
1387
+ "flood-opacity",
1388
+ "font-family",
1389
+ "font-size",
1390
+ "font-size-adjust",
1391
+ "font-stretch",
1392
+ "font-style",
1393
+ "font-variant",
1394
+ "font-weight",
1395
+ "glyph-name",
1396
+ "glyph-orientation-horizontal",
1397
+ "glyph-orientation-vertical",
1398
+ "horiz-adv-x",
1399
+ "horiz-origin-x",
1400
+ "image-rendering",
1401
+ "letter-spacing",
1402
+ "lighting-color",
1403
+ "marker-end",
1404
+ "marker-mid",
1405
+ "marker-start",
1406
+ "overline-position",
1407
+ "overline-thickness",
1408
+ "paint-order",
1409
+ "panose-1",
1410
+ "pointer-events",
1411
+ "rendering-intent",
1412
+ "shape-rendering",
1413
+ "stop-color",
1414
+ "stop-opacity",
1415
+ "strikethrough-position",
1416
+ "strikethrough-thickness",
1417
+ "stroke-dasharray",
1418
+ "stroke-dashoffset",
1419
+ "stroke-linecap",
1420
+ "stroke-linejoin",
1421
+ "stroke-miterlimit",
1422
+ "stroke-opacity",
1423
+ "stroke-width",
1424
+ "text-anchor",
1425
+ "text-decoration",
1426
+ "text-rendering",
1427
+ "underline-position",
1428
+ "underline-thickness",
1429
+ "unicode-bidi",
1430
+ "unicode-range",
1431
+ "units-per-em",
1432
+ "v-alphabetic",
1433
+ "v-hanging",
1434
+ "v-ideographic",
1435
+ "v-mathematical",
1436
+ "vector-effect",
1437
+ "vert-adv-y",
1438
+ "vert-origin-x",
1439
+ "vert-origin-y",
1440
+ "word-spacing",
1441
+ "writing-mode",
1442
+ "xmlns:xlink",
1443
+ "x-height"
1444
+ // NOTE: if you add a camelCased prop to this list,
1445
+ // you'll need to set attributeName to name.toLowerCase()
1446
+ // instead in the assignment below.
1447
+ ].forEach((t) => {
1448
+ const l = t.replace(p, y);
1449
+ a[l] = new o(
1450
+ l,
1451
+ n,
1452
+ !1,
1453
+ // mustUseProperty
1454
+ t,
1455
+ null,
1456
+ // attributeNamespace
1457
+ !1,
1458
+ // sanitizeURL
1459
+ !1
1460
+ // removeEmptyString
1461
+ );
1462
+ }), [
1463
+ "xlink:actuate",
1464
+ "xlink:arcrole",
1465
+ "xlink:role",
1466
+ "xlink:show",
1467
+ "xlink:title",
1468
+ "xlink:type"
1469
+ // NOTE: if you add a camelCased prop to this list,
1470
+ // you'll need to set attributeName to name.toLowerCase()
1471
+ // instead in the assignment below.
1472
+ ].forEach((t) => {
1473
+ const l = t.replace(p, y);
1474
+ a[l] = new o(
1475
+ l,
1476
+ n,
1477
+ !1,
1478
+ // mustUseProperty
1479
+ t,
1480
+ "http://www.w3.org/1999/xlink",
1481
+ !1,
1482
+ // sanitizeURL
1483
+ !1
1484
+ // removeEmptyString
1485
+ );
1486
+ }), [
1487
+ "xml:base",
1488
+ "xml:lang",
1489
+ "xml:space"
1490
+ // NOTE: if you add a camelCased prop to this list,
1491
+ // you'll need to set attributeName to name.toLowerCase()
1492
+ // instead in the assignment below.
1493
+ ].forEach((t) => {
1494
+ const l = t.replace(p, y);
1495
+ a[l] = new o(
1496
+ l,
1497
+ n,
1498
+ !1,
1499
+ // mustUseProperty
1500
+ t,
1501
+ "http://www.w3.org/XML/1998/namespace",
1502
+ !1,
1503
+ // sanitizeURL
1504
+ !1
1505
+ // removeEmptyString
1506
+ );
1507
+ }), ["tabIndex", "crossOrigin"].forEach((t) => {
1508
+ a[t] = new o(
1509
+ t,
1510
+ n,
1511
+ !1,
1512
+ // mustUseProperty
1513
+ t.toLowerCase(),
1514
+ // attributeName
1515
+ null,
1516
+ // attributeNamespace
1517
+ !1,
1518
+ // sanitizeURL
1519
+ !1
1520
+ // removeEmptyString
1521
+ );
1522
+ });
1523
+ const _ = "xlinkHref";
1524
+ a[_] = new o(
1525
+ "xlinkHref",
1526
+ n,
1527
+ !1,
1528
+ // mustUseProperty
1529
+ "xlink:href",
1530
+ "http://www.w3.org/1999/xlink",
1531
+ !0,
1532
+ // sanitizeURL
1533
+ !1
1534
+ // removeEmptyString
1535
+ ), ["src", "href", "action", "formAction"].forEach((t) => {
1536
+ a[t] = new o(
1537
+ t,
1538
+ n,
1539
+ !1,
1540
+ // mustUseProperty
1541
+ t.toLowerCase(),
1542
+ // attributeName
1543
+ null,
1544
+ // attributeNamespace
1545
+ !0,
1546
+ // sanitizeURL
1547
+ !0
1548
+ // removeEmptyString
1549
+ );
1550
+ });
1551
+ const {
1552
+ CAMELCASE: N,
1553
+ SAME: E,
1554
+ possibleStandardNames: v
1555
+ } = St(), P = ":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" + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", D = RegExp.prototype.test.bind(
1556
+ // eslint-disable-next-line no-misleading-character-class
1557
+ new RegExp("^(data|aria)-[" + P + "]*$")
1558
+ ), k = Object.keys(
1559
+ v
1560
+ ).reduce((t, l) => {
1561
+ const u = v[l];
1562
+ return u === E ? t[l] = l : u === N ? t[l.toLowerCase()] = l : t[l] = u, t;
1563
+ }, {});
1564
+ return H.BOOLEAN = r, H.BOOLEANISH_STRING = i, H.NUMERIC = f, H.OVERLOADED_BOOLEAN = s, H.POSITIVE_NUMERIC = h, H.RESERVED = e, H.STRING = n, H.getPropertyInfo = d, H.isCustomAttribute = D, H.possibleStandardNames = k, H;
1565
+ }
1566
+ var $ = {}, Y = {}, ce, Ae;
1567
+ function Ot() {
1568
+ if (Ae) return ce;
1569
+ Ae = 1;
1570
+ var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, i = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, s = /^:\s*/, f = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, h = /^[;\s]*/, d = /^\s+|\s+$/g, o = `
1571
+ `, a = "/", c = "*", p = "", y = "comment", _ = "declaration";
1572
+ function N(v, A) {
1573
+ if (typeof v != "string")
1574
+ throw new TypeError("First argument must be a string");
1575
+ if (!v) return [];
1576
+ A = A || {};
1577
+ var P = 1, D = 1;
1578
+ function k(w) {
1579
+ var C = w.match(n);
1580
+ C && (P += C.length);
1581
+ var j = w.lastIndexOf(o);
1582
+ D = ~j ? w.length - j : D + w.length;
1583
+ }
1584
+ function t() {
1585
+ var w = { line: P, column: D };
1586
+ return function(C) {
1587
+ return C.position = new l(w), g(), C;
1588
+ };
1589
+ }
1590
+ function l(w) {
1591
+ this.start = w, this.end = { line: P, column: D }, this.source = A.source;
1592
+ }
1593
+ l.prototype.content = v;
1594
+ function u(w) {
1595
+ var C = new Error(
1596
+ A.source + ":" + P + ":" + D + ": " + w
1597
+ );
1598
+ if (C.reason = w, C.filename = A.source, C.line = P, C.column = D, C.source = v, !A.silent) throw C;
1599
+ }
1600
+ function m(w) {
1601
+ var C = w.exec(v);
1602
+ if (C) {
1603
+ var j = C[0];
1604
+ return k(j), v = v.slice(j.length), C;
1605
+ }
1606
+ }
1607
+ function g() {
1608
+ m(i);
1609
+ }
1610
+ function S(w) {
1611
+ var C;
1612
+ for (w = w || []; C = M(); )
1613
+ C !== !1 && w.push(C);
1614
+ return w;
1615
+ }
1616
+ function M() {
1617
+ var w = t();
1618
+ if (!(a != v.charAt(0) || c != v.charAt(1))) {
1619
+ for (var C = 2; p != v.charAt(C) && (c != v.charAt(C) || a != v.charAt(C + 1)); )
1620
+ ++C;
1621
+ if (C += 2, p === v.charAt(C - 1))
1622
+ return u("End of comment missing");
1623
+ var j = v.slice(2, C - 2);
1624
+ return D += 2, k(j), v = v.slice(C), D += 2, w({
1625
+ type: y,
1626
+ comment: j
1627
+ });
1628
+ }
1629
+ }
1630
+ function q() {
1631
+ var w = t(), C = m(r);
1632
+ if (C) {
1633
+ if (M(), !m(s)) return u("property missing ':'");
1634
+ var j = m(f), Be = w({
1635
+ type: _,
1636
+ property: E(C[0].replace(e, p)),
1637
+ value: j ? E(j[0].replace(e, p)) : p
1638
+ });
1639
+ return m(h), Be;
1640
+ }
1641
+ }
1642
+ function oe() {
1643
+ var w = [];
1644
+ S(w);
1645
+ for (var C; C = q(); )
1646
+ C !== !1 && (w.push(C), S(w));
1647
+ return w;
1648
+ }
1649
+ return g(), oe();
1650
+ }
1651
+ function E(v) {
1652
+ return v ? v.replace(d, p) : p;
1653
+ }
1654
+ return ce = N, ce;
1655
+ }
1656
+ var Ce;
1657
+ function xt() {
1658
+ if (Ce) return Y;
1659
+ Ce = 1;
1660
+ var e = Y && Y.__importDefault || function(r) {
1661
+ return r && r.__esModule ? r : { default: r };
1662
+ };
1663
+ Object.defineProperty(Y, "__esModule", { value: !0 }), Y.default = i;
1664
+ const n = e(Ot());
1665
+ function i(r, s) {
1666
+ let f = null;
1667
+ if (!r || typeof r != "string")
1668
+ return f;
1669
+ const h = (0, n.default)(r), d = typeof s == "function";
1670
+ return h.forEach((o) => {
1671
+ if (o.type !== "declaration")
1672
+ return;
1673
+ const { property: a, value: c } = o;
1674
+ d ? s(a, c, o) : c && (f = f || {}, f[a] = c);
1675
+ }), f;
1676
+ }
1677
+ return Y;
1678
+ }
1679
+ var ee = {}, Re;
1680
+ function It() {
1681
+ if (Re) return ee;
1682
+ Re = 1, Object.defineProperty(ee, "__esModule", { value: !0 }), ee.camelCase = void 0;
1683
+ var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, i = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, s = /^-(ms)-/, f = function(a) {
1684
+ return !a || i.test(a) || e.test(a);
1685
+ }, h = function(a, c) {
1686
+ return c.toUpperCase();
1687
+ }, d = function(a, c) {
1688
+ return "".concat(c, "-");
1689
+ }, o = function(a, c) {
1690
+ return c === void 0 && (c = {}), f(a) ? a : (a = a.toLowerCase(), c.reactCompat ? a = a.replace(s, d) : a = a.replace(r, d), a.replace(n, h));
1691
+ };
1692
+ return ee.camelCase = o, ee;
1693
+ }
1694
+ var te, we;
1695
+ function Dt() {
1696
+ if (we) return te;
1697
+ we = 1;
1698
+ var e = te && te.__importDefault || function(s) {
1699
+ return s && s.__esModule ? s : { default: s };
1700
+ }, n = e(xt()), i = It();
1701
+ function r(s, f) {
1702
+ var h = {};
1703
+ return !s || typeof s != "string" || (0, n.default)(s, function(d, o) {
1704
+ d && o && (h[(0, i.camelCase)(d, f)] = o);
1705
+ }), h;
1706
+ }
1707
+ return r.default = r, te = r, te;
1708
+ }
1709
+ var Se;
1710
+ function He() {
1711
+ return Se || (Se = 1, (function(e) {
1712
+ var n = $ && $.__importDefault || function(c) {
1713
+ return c && c.__esModule ? c : { default: c };
1714
+ };
1715
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.returnFirstArg = e.canTextBeChildOfNode = e.ELEMENTS_WITH_NO_TEXT_CHILDREN = e.PRESERVE_CUSTOM_ATTRIBUTES = void 0, e.isCustomComponent = f, e.setStyleProp = d;
1716
+ var i = De, r = n(Dt()), s = /* @__PURE__ */ new Set([
1717
+ "annotation-xml",
1718
+ "color-profile",
1719
+ "font-face",
1720
+ "font-face-src",
1721
+ "font-face-uri",
1722
+ "font-face-format",
1723
+ "font-face-name",
1724
+ "missing-glyph"
1725
+ ]);
1726
+ function f(c, p) {
1727
+ return c.includes("-") ? !s.has(c) : !!(p && typeof p.is == "string");
1728
+ }
1729
+ var h = {
1730
+ reactCompat: !0
1731
+ };
1732
+ function d(c, p) {
1733
+ if (typeof c == "string") {
1734
+ if (!c.trim()) {
1735
+ p.style = {};
1736
+ return;
1737
+ }
1738
+ try {
1739
+ p.style = (0, r.default)(c, h);
1740
+ } catch {
1741
+ p.style = {};
1742
+ }
1743
+ }
1744
+ }
1745
+ e.PRESERVE_CUSTOM_ATTRIBUTES = Number(i.version.split(".")[0]) >= 16, e.ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
1746
+ "tr",
1747
+ "tbody",
1748
+ "thead",
1749
+ "tfoot",
1750
+ "colgroup",
1751
+ "table",
1752
+ "head",
1753
+ "html",
1754
+ "frameset"
1755
+ ]);
1756
+ var o = function(c) {
1757
+ return !e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(c.name);
1758
+ };
1759
+ e.canTextBeChildOfNode = o;
1760
+ var a = function(c) {
1761
+ return c;
1762
+ };
1763
+ e.returnFirstArg = a;
1764
+ })($)), $;
1765
+ }
1766
+ var Ne;
1767
+ function je() {
1768
+ if (Ne) return re;
1769
+ Ne = 1, Object.defineProperty(re, "__esModule", { value: !0 }), re.default = f;
1770
+ var e = Nt(), n = He(), i = ["checked", "value"], r = ["input", "select", "textarea"], s = {
1771
+ reset: !0,
1772
+ submit: !0
1773
+ };
1774
+ function f(d, o) {
1775
+ d === void 0 && (d = {});
1776
+ var a = {}, c = !!(d.type && s[d.type]);
1777
+ for (var p in d) {
1778
+ var y = d[p];
1779
+ if ((0, e.isCustomAttribute)(p)) {
1780
+ a[p] = y;
1781
+ continue;
1782
+ }
1783
+ var _ = p.toLowerCase(), N = h(_);
1784
+ if (N) {
1785
+ var E = (0, e.getPropertyInfo)(N);
1786
+ switch (i.includes(N) && r.includes(o) && !c && (N = h("default" + _)), a[N] = y, E?.type) {
1787
+ case e.BOOLEAN:
1788
+ a[N] = !0;
1789
+ break;
1790
+ case e.OVERLOADED_BOOLEAN:
1791
+ y === "" && (a[N] = !0);
1792
+ break;
1793
+ }
1794
+ continue;
1795
+ }
1796
+ n.PRESERVE_CUSTOM_ATTRIBUTES && (a[p] = y);
1797
+ }
1798
+ return (0, n.setStyleProp)(d.style, a), a;
1799
+ }
1800
+ function h(d) {
1801
+ return e.possibleStandardNames[d];
1802
+ }
1803
+ return re;
1804
+ }
1805
+ var Z = {}, Oe;
1806
+ function kt() {
1807
+ if (Oe) return Z;
1808
+ Oe = 1;
1809
+ var e = Z && Z.__importDefault || function(d) {
1810
+ return d && d.__esModule ? d : { default: d };
1811
+ };
1812
+ Object.defineProperty(Z, "__esModule", { value: !0 }), Z.default = f;
1813
+ var n = De, i = e(je()), r = He(), s = {
1814
+ cloneElement: n.cloneElement,
1815
+ createElement: n.createElement,
1816
+ isValidElement: n.isValidElement
1817
+ };
1818
+ function f(d, o) {
1819
+ var a, c, p, y, _;
1820
+ o === void 0 && (o = {});
1821
+ for (var N = [], E = typeof o.replace == "function", v = (a = o.transform) !== null && a !== void 0 ? a : r.returnFirstArg, A = (c = o.library) !== null && c !== void 0 ? c : s, P = A.cloneElement, D = A.createElement, k = A.isValidElement, t = d.length, l = 0; l < t; l++) {
1822
+ var u = d[l];
1823
+ if (E) {
1824
+ var m = (p = o.replace) === null || p === void 0 ? void 0 : p.call(o, u, l);
1825
+ if (k(m)) {
1826
+ t > 1 && (m = P(m, {
1827
+ key: (y = m.key) !== null && y !== void 0 ? y : l
1828
+ })), N.push(v(m, u, l));
1829
+ continue;
1830
+ }
1831
+ }
1832
+ if (u.type === "text") {
1833
+ var g = !u.data.trim().length;
1834
+ if (g && u.parent && !(0, r.canTextBeChildOfNode)(u.parent) || o.trim && g)
1835
+ continue;
1836
+ N.push(v(u.data, u, l));
1837
+ continue;
1838
+ }
1839
+ var S = u, M = {};
1840
+ h(S) ? ((0, r.setStyleProp)(S.attribs.style, S.attribs), M = S.attribs) : S.attribs && (M = (0, i.default)(S.attribs, S.name));
1841
+ var q = void 0;
1842
+ switch (u.type) {
1843
+ case "script":
1844
+ case "style":
1845
+ u.children[0] && (M.dangerouslySetInnerHTML = {
1846
+ __html: u.children[0].data
1847
+ });
1848
+ break;
1849
+ case "tag":
1850
+ u.name === "textarea" && u.children[0] ? M.defaultValue = u.children[0].data : !((_ = u.children) === null || _ === void 0) && _.length && (q = f(u.children, o));
1851
+ break;
1852
+ // skip all other cases (e.g., comment)
1853
+ default:
1854
+ continue;
1855
+ }
1856
+ t > 1 && (M.key = l), N.push(v(D(u.name, M, q), u, l));
1857
+ }
1858
+ return N.length === 1 ? N[0] : N;
1859
+ }
1860
+ function h(d) {
1861
+ return r.PRESERVE_CUSTOM_ATTRIBUTES && d.type === "tag" && (0, r.isCustomComponent)(d.name, d.attribs);
1862
+ }
1863
+ return Z;
1864
+ }
1865
+ var xe;
1866
+ function Pt() {
1867
+ return xe || (xe = 1, (function(e) {
1868
+ var n = J && J.__importDefault || function(o) {
1869
+ return o && o.__esModule ? o : { default: o };
1870
+ };
1871
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.htmlToDOM = e.domToReact = e.attributesToProps = e.Text = e.ProcessingInstruction = e.Element = e.Comment = void 0, e.default = d;
1872
+ var i = n(wt());
1873
+ e.htmlToDOM = i.default;
1874
+ var r = n(je());
1875
+ e.attributesToProps = r.default;
1876
+ var s = n(kt());
1877
+ e.domToReact = s.default;
1878
+ var f = /* @__PURE__ */ Le();
1879
+ Object.defineProperty(e, "Comment", { enumerable: !0, get: function() {
1880
+ return f.Comment;
1881
+ } }), Object.defineProperty(e, "Element", { enumerable: !0, get: function() {
1882
+ return f.Element;
1883
+ } }), Object.defineProperty(e, "ProcessingInstruction", { enumerable: !0, get: function() {
1884
+ return f.ProcessingInstruction;
1885
+ } }), Object.defineProperty(e, "Text", { enumerable: !0, get: function() {
1886
+ return f.Text;
1887
+ } });
1888
+ var h = { lowerCaseAttributeNames: !1 };
1889
+ function d(o, a) {
1890
+ var c;
1891
+ if (typeof o != "string")
1892
+ throw new TypeError("First argument must be a string");
1893
+ return o ? (0, s.default)((0, i.default)(o, (c = a?.htmlparser2) !== null && c !== void 0 ? c : h), a) : [];
1894
+ }
1895
+ })(J)), J;
1896
+ }
1897
+ var Mt = Pt();
1898
+ const Ie = /* @__PURE__ */ At(Mt), Lt = Ie.default || Ie, In = (e, n = "int", i = ",") => {
1899
+ const s = (n === "int" ? mt : parseFloat)((e ?? "").toString().trim().replaceAll(i, ""));
1900
+ return isNaN(s) ? void 0 : s;
1901
+ };
1902
+ function Ft(e, n) {
1903
+ const i = (h) => `${h}-${n}`, s = Lt(e, {
1904
+ replace(h) {
1905
+ if (h.type === "tag" && "attribs" in h && h.attribs) {
1906
+ const d = h;
1907
+ d.attribs.id && (d.attribs.id = i(d.attribs.id));
1908
+ const o = [
1909
+ "fill",
1910
+ "stroke",
1911
+ "filter",
1912
+ "clip-path",
1913
+ "mask",
1914
+ "marker-start",
1915
+ "marker-mid",
1916
+ "marker-end",
1917
+ "style"
1918
+ ];
1919
+ for (const a of o) {
1920
+ const c = d.attribs[a];
1921
+ if (c)
1922
+ if (a === "style") {
1923
+ const p = c?.match(/url\(#(.+?)\)/);
1924
+ p && (d.attribs[a] = c.replace(p[1], i(p[1])));
1925
+ } else {
1926
+ const p = c?.match(/^url\(#(.+?)\)$/);
1927
+ p && (d.attribs[a] = `url(#${i(p[1])})`);
1928
+ }
1929
+ }
1930
+ return d;
1931
+ }
1932
+ },
1933
+ trim: !0
1934
+ });
1935
+ return gt(s) && s.type === "svg" ? s : null;
1936
+ }
1937
+ const Ht = (...e) => _t(Tt(...e)), qe = (e) => e.info ?? {}, Ge = (e) => e.data?.custom ?? {}, jt = (e) => {
1938
+ const n = Ge(e);
1939
+ if (de(n.displayName))
1940
+ return n.displayName;
1941
+ const i = qe(e);
1942
+ return de(i.displayName) ? i.displayName : i.displayName?.(e.data.props) ?? e.data.displayName;
1943
+ }, V = (e) => e.data.displayName, Dn = (e) => e.related ?? {}, qt = (e) => Ge(e).selectable ?? qe(e).selectable ?? !0, kn = (e, n) => {
1944
+ try {
1945
+ e.craft && (e.craft = {
1946
+ ...e.craft,
1947
+ related: {
1948
+ ...e.craft?.related,
1949
+ ...n
1950
+ }
1951
+ });
1952
+ } catch (i) {
1953
+ console.error(`Error setting related for ${e.craft?.displayName}`, i);
1954
+ }
1955
+ }, Pn = (e, n = "xs") => n === "xs" ? e : { [n]: e }, x = (e, n) => {
1956
+ const { resolved: i, ...r } = n;
1957
+ return e.craft = {
1958
+ displayName: i,
1959
+ ...r,
1960
+ related: r.related ?? {}
1961
+ }, e;
1962
+ }, K = (e = () => ({})) => {
1963
+ const n = ht(e), { query: i, actions: r } = n, s = fe(
1964
+ (h, d, o) => {
1965
+ const a = i.node(h).get(), c = d ?? a.data.parent, p = c ? i.node(c).get() : null;
1966
+ if (!p)
1967
+ throw new Error("Parent node not found");
1968
+ const y = {
1969
+ data: {
1970
+ ...a.data,
1971
+ nodes: [],
1972
+ linkedNodes: {}
1973
+ }
1974
+ }, _ = i.parseFreshNode(y).toNode();
1975
+ return r.add(_, p.id, o ?? p.data.nodes.length), a.data.nodes.forEach((N, E) => {
1976
+ s(N, _.id, E);
1977
+ }), i.node(_.id).get();
1978
+ },
1979
+ [r, i]
1980
+ ), f = fe(
1981
+ (h) => {
1982
+ const d = h.parentId ?? i.node(h.nodeId).get().data.parent;
1983
+ if (!d)
1984
+ throw new Error("Parent node not found");
1985
+ let o;
1986
+ if ("sourceIndex" in h) {
1987
+ const { sourceIndex: a, destinationIndex: c } = h;
1988
+ o = c > a ? c + 1 : c;
1989
+ } else
1990
+ o = h.moveIndex;
1991
+ r.move(h.nodeId, d, o);
1992
+ },
1993
+ [r, i]
1994
+ );
1995
+ return ke(() => ({
1996
+ ...n,
1997
+ actions: {
1998
+ ...n.actions,
1999
+ move: f,
2000
+ duplicate: s
2001
+ }
2002
+ }), [s, n, f]);
2003
+ }, I = (e = {}) => {
2004
+ const { enabled: n, indicator: i } = K((a) => ({
2005
+ enabled: a.options.enabled,
2006
+ indicator: a.indicator
2007
+ })), { id: r, selectable: s, displayName: f, resolvedId: h } = O((a) => ({
2008
+ selectable: qt(a),
2009
+ displayName: jt(a),
2010
+ resolvedId: V(a)
2011
+ }));
2012
+ if (!n) return {};
2013
+ const d = i?.placement?.parent?.id === r, o = d && !!i?.error;
2014
+ return {
2015
+ [U.DATA_NODE_ID]: r,
2016
+ [U.DATA_NODE_EDITABLE]: Pe.True,
2017
+ [U.DATA_NODE_SELECTABLE]: s.toString(),
2018
+ [U.DATA_NODE_NAME]: f,
2019
+ [U.DATA_NODE_RESOLVED]: h,
2020
+ [U.DATA_NODE_DROP_TARGET]: d.toString(),
2021
+ [U.DATA_NODE_DROP_TARGET_ERROR]: o.toString(),
2022
+ ...e
2023
+ };
2024
+ }, Gt = (e) => {
2025
+ const { connectors: n } = O(), i = I();
2026
+ return /* @__PURE__ */ b(
2027
+ Ue,
2028
+ {
2029
+ ...e,
2030
+ ref: (r) => {
2031
+ r && n.connect(r);
2032
+ },
2033
+ ...i
2034
+ }
2035
+ );
2036
+ };
2037
+ x(Gt, {
2038
+ resolved: R.Grid,
2039
+ isCanvas: !0,
2040
+ rules: {
2041
+ canMoveIn: (e) => e.every((n) => V(n) == R.Cell)
2042
+ },
2043
+ info: {
2044
+ displayName: "Grid"
2045
+ }
2046
+ });
2047
+ const Bt = yt(({ source: e, ...n }, i) => {
2048
+ const r = Et(), s = ke(() => Ft(e, r), [e, r]);
2049
+ return /* @__PURE__ */ b(ae, { children: !!s && bt(s, {
2050
+ ...n,
2051
+ ref: i
2052
+ }) });
2053
+ }), Ut = `<svg width="24" height="24" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2054
+ <path d="M12.8002 7.5002H8.5002V3.2002C8.5002 2.9002 8.3002 2.7002 8.0002 2.7002C7.7002 2.7002 7.5002 2.9002 7.5002 3.2002V7.5002H3.2002C2.9002 7.5002 2.7002 7.7002 2.7002 8.0002C2.7002 8.3002 2.9002 8.5002 3.2002 8.5002H7.5002V12.8002C7.5002 13.1002 7.7002 13.3002 8.0002 13.3002C8.3002 13.3002 8.5002 13.1002 8.5002 12.8002V8.5002H12.8002C13.1002 8.5002 13.3002 8.3002 13.3002 8.0002C13.3002 7.7002 13.1002 7.5002 12.8002 7.5002Z" fill="currentColor"/>
2055
+ </svg>
2056
+ `, z = ({ placeholder: e = "Drop here" }) => {
2057
+ const { enabled: n } = K((r) => ({
2058
+ enabled: r.options.enabled
2059
+ }));
2060
+ if (!n) return /* @__PURE__ */ b(ae, {});
2061
+ const i = {
2062
+ "--drop-placeholder": `'${e}'`,
2063
+ [vt("sm")]: {
2064
+ "--drop-placeholder": "'Drop element here'"
2065
+ },
2066
+ ":before": {
2067
+ content: "var(--drop-placeholder)"
2068
+ }
2069
+ };
2070
+ return /* @__PURE__ */ b(
2071
+ "div",
2072
+ {
2073
+ className: Ht(
2074
+ "tw:grid tw:place-items-center tw:p-2 tw:relative tw:outline-1 tw:outline-dashed tw:outline-ic-ink-3s tw:-outline-offset-1 tw:min-h-full"
2075
+ ),
2076
+ children: /* @__PURE__ */ L("div", { className: "tw:flex tw:flex-col tw:items-center", children: [
2077
+ /* @__PURE__ */ b(Bt, { source: Ut, width: 16, height: 16 }),
2078
+ /* @__PURE__ */ b("p", { css: i, className: "tw:text-xs tw:text-center tw:mt-1" })
2079
+ ] })
2080
+ }
2081
+ );
2082
+ }, Vt = ({ children: e, ...n }) => {
2083
+ const { connectors: i } = O(), r = I(), s = F([
2084
+ (f) => {
2085
+ f && i.connect(f);
2086
+ }
2087
+ ]);
2088
+ return /* @__PURE__ */ L(Ve, { ...n, ...r, ref: s, children: [
2089
+ e,
2090
+ G(e) && /* @__PURE__ */ b(z, {})
2091
+ ] });
2092
+ };
2093
+ x(Vt, {
2094
+ resolved: R.Cell,
2095
+ isCanvas: !0,
2096
+ info: {
2097
+ displayName: "Cell"
2098
+ }
2099
+ });
2100
+ const zt = (e) => {
2101
+ const n = I(), { enabled: i } = K((f) => ({
2102
+ enabled: f.options.enabled
2103
+ })), { connectors: r } = O();
2104
+ return /* @__PURE__ */ b(
2105
+ ze,
2106
+ {
2107
+ ...e,
2108
+ ...n,
2109
+ css: i && {
2110
+ ":empty": {
2111
+ ":after": {
2112
+ display: "block",
2113
+ content: '"Drag or type something"',
2114
+ opacity: 0.5,
2115
+ paddingTop: 8,
2116
+ paddingBottom: 8,
2117
+ paddingLeft: 8,
2118
+ paddingRight: 8
2119
+ }
2120
+ }
2121
+ },
2122
+ onClick: (f) => {
2123
+ i && f.preventDefault(), e.onClick?.(f);
2124
+ },
2125
+ ref: (f) => {
2126
+ f && r.connect(f);
2127
+ }
2128
+ }
2129
+ );
2130
+ };
2131
+ x(zt, {
2132
+ resolved: R.Link,
2133
+ isCanvas: !0,
2134
+ rules: {
2135
+ canMoveIn(e, n) {
2136
+ return G(n.data.props.dangerouslySetInnerHTML);
2137
+ }
2138
+ },
2139
+ info: {
2140
+ displayName: "Link"
2141
+ }
2142
+ });
2143
+ const Xt = ({ anchor: e, ...n }) => {
2144
+ const i = I(), { enabled: r } = K((f) => ({
2145
+ enabled: f.options.enabled
2146
+ })), { connectors: s } = O();
2147
+ return /* @__PURE__ */ b(
2148
+ Xe,
2149
+ {
2150
+ anchor: r ? void 0 : e,
2151
+ ...n,
2152
+ ...i,
2153
+ ref: (f) => {
2154
+ f && s.connect(f);
2155
+ }
2156
+ }
2157
+ );
2158
+ };
2159
+ x(Xt, {
2160
+ resolved: R.Button,
2161
+ isCanvas: !1,
2162
+ info: {
2163
+ displayName: "Button"
2164
+ }
2165
+ });
2166
+ const Wt = (e) => {
2167
+ const { connectors: n } = O(), i = I(), r = F([
2168
+ (s) => {
2169
+ s && n.connect(s);
2170
+ }
2171
+ ]);
2172
+ return /* @__PURE__ */ b(We, { ...e, ...i, ref: r });
2173
+ }, Yt = "Flexbox";
2174
+ x(Wt, {
2175
+ resolved: R.Flexbox,
2176
+ isCanvas: !0,
2177
+ rules: {
2178
+ canMoveIn: (e) => e.every((n) => V(n) == R.FlexItem)
2179
+ },
2180
+ info: {
2181
+ displayName: Yt
2182
+ }
2183
+ });
2184
+ const Zt = ({ children: e, ...n }) => {
2185
+ const { connectors: i } = O(), r = I(), s = F([
2186
+ (f) => {
2187
+ f && i.connect(f);
2188
+ }
2189
+ ]);
2190
+ return /* @__PURE__ */ L(Ye, { ...n, ...r, ref: s, children: [
2191
+ e,
2192
+ G(e) && /* @__PURE__ */ b(z, {})
2193
+ ] });
2194
+ };
2195
+ x(Zt, {
2196
+ resolved: R.FlexItem,
2197
+ isCanvas: !0,
2198
+ info: {
2199
+ displayName: "Flex item"
2200
+ },
2201
+ rules: {
2202
+ canDrag: () => !1
2203
+ }
2204
+ });
2205
+ const Kt = (e) => /* @__PURE__ */ b(ie, { ...e, as: "div" }), Jt = (e) => {
2206
+ const { connectors: n } = O(), i = I(), r = F([
2207
+ (s) => {
2208
+ s && n.connect(s);
2209
+ }
2210
+ ]);
2211
+ return /* @__PURE__ */ b(Kt, { ...e, ref: r, ...i });
2212
+ };
2213
+ x(Jt, {
2214
+ resolved: R.Paragraph,
2215
+ isCanvas: !1,
2216
+ info: {
2217
+ displayName: "Paragraph"
2218
+ }
2219
+ });
2220
+ const Qt = ({ ...e }) => /* @__PURE__ */ b(ie, { ...e }), $t = (e) => {
2221
+ const { connectors: n } = O(), i = I(), r = F([
2222
+ (s) => {
2223
+ s && n.connect(s);
2224
+ }
2225
+ ]);
2226
+ return /* @__PURE__ */ b(Qt, { ...e, ref: r, ...i });
2227
+ };
2228
+ x($t, {
2229
+ resolved: R.Heading,
2230
+ isCanvas: !1,
2231
+ info: {
2232
+ displayName: "Heading"
2233
+ }
2234
+ });
2235
+ const en = (e) => {
2236
+ const n = I(), { connectors: i } = O(), r = F([
2237
+ (s) => {
2238
+ s && i.connect(s);
2239
+ }
2240
+ ]);
2241
+ return /* @__PURE__ */ b(Ze, { ...e, ...n, ref: r });
2242
+ };
2243
+ x(en, {
2244
+ resolved: R.Image,
2245
+ isCanvas: !1,
2246
+ info: {
2247
+ displayName: "Image"
2248
+ }
2249
+ });
2250
+ const tn = (e) => {
2251
+ const { connectors: n } = O(), { enabled: i } = K((f) => ({
2252
+ enabled: f.options.enabled
2253
+ })), r = I(), s = F([
2254
+ (f) => {
2255
+ f && n.connect(f);
2256
+ }
2257
+ ]);
2258
+ return /* @__PURE__ */ b(
2259
+ Ke,
2260
+ {
2261
+ ...e,
2262
+ ...r,
2263
+ autoScrollOptions: i ? {
2264
+ ...e.autoScrollOptions,
2265
+ playOnInit: !1
2266
+ } : e.autoScrollOptions,
2267
+ ...i ? {
2268
+ [Je.PlayState]: "off"
2269
+ } : {},
2270
+ ref: s
2271
+ }
2272
+ );
2273
+ };
2274
+ x(tn, {
2275
+ resolved: R.Marquee,
2276
+ isCanvas: !0,
2277
+ rules: {
2278
+ canMoveIn: (e) => e.every((n) => V(n) == R.MarqueeItem)
2279
+ },
2280
+ info: {
2281
+ displayName: "Marquee"
2282
+ }
2283
+ });
2284
+ const nn = ({ children: e, ...n }) => {
2285
+ const { connectors: i } = O(), r = I(), s = F([
2286
+ (f) => {
2287
+ f && i.connect(f);
2288
+ }
2289
+ ]);
2290
+ return /* @__PURE__ */ L(Qe, { ...n, ...r, ref: s, children: [
2291
+ e,
2292
+ G(e) && /* @__PURE__ */ b(z, {})
2293
+ ] });
2294
+ };
2295
+ x(nn, {
2296
+ resolved: R.MarqueeItem,
2297
+ isCanvas: !0,
2298
+ info: {
2299
+ selectable: !1,
2300
+ displayName: "Marquee item"
2301
+ }
2302
+ });
2303
+ const rn = (e) => {
2304
+ const { connectors: n } = O(), i = F([
2305
+ (r) => {
2306
+ r && n.connect(r);
2307
+ }
2308
+ ]);
2309
+ return /* @__PURE__ */ b($e, { ...e, ref: i });
2310
+ };
2311
+ x(rn, {
2312
+ resolved: R.Tabs,
2313
+ isCanvas: !1,
2314
+ info: {
2315
+ displayName: "Tabs"
2316
+ }
2317
+ });
2318
+ const an = (e) => {
2319
+ const { connectors: n } = O(), i = I(), r = F([
2320
+ (s) => {
2321
+ s && n.connect(s);
2322
+ }
2323
+ ]);
2324
+ return /* @__PURE__ */ b(et, { ...e, ...i, ref: r });
2325
+ };
2326
+ x(an, {
2327
+ resolved: R.TabList,
2328
+ isCanvas: !0,
2329
+ rules: {
2330
+ canMoveIn: (e) => e.every((n) => V(n) == R.Tab)
2331
+ },
2332
+ info: {
2333
+ selectable: !1,
2334
+ displayName: "Tab list"
2335
+ }
2336
+ });
2337
+ const on = (e) => {
2338
+ const n = I(), { connectors: i } = O(), r = F([
2339
+ (s) => {
2340
+ s && i.connect(s);
2341
+ }
2342
+ ]);
2343
+ return /* @__PURE__ */ b(tt, { ...e, ref: r, ...n });
2344
+ };
2345
+ x(on, {
2346
+ resolved: R.Tab,
2347
+ isCanvas: !1,
2348
+ info: {
2349
+ selectable: !1,
2350
+ displayName: "Tab"
2351
+ }
2352
+ });
2353
+ const sn = (e) => {
2354
+ const { connectors: n } = O(), i = I(), r = F([
2355
+ (s) => {
2356
+ s && n.connect(s);
2357
+ }
2358
+ ]);
2359
+ return /* @__PURE__ */ b(nt, { ...e, ...i, ref: r });
2360
+ };
2361
+ x(sn, {
2362
+ resolved: R.TabContent,
2363
+ isCanvas: !0,
2364
+ rules: {
2365
+ canMoveIn: (e) => e.every((n) => V(n) == R.TabPanel)
2366
+ },
2367
+ info: {
2368
+ selectable: !1,
2369
+ displayName: "Tab content"
2370
+ }
2371
+ });
2372
+ const ln = ({ children: e, ...n }) => {
2373
+ const { connectors: i } = O(), r = I(), s = F([
2374
+ (f) => {
2375
+ f && i.connect(f);
2376
+ }
2377
+ ]);
2378
+ return /* @__PURE__ */ L(rt, { ...n, ...r, ref: s, children: [
2379
+ e,
2380
+ G(e) && /* @__PURE__ */ b(z, {})
2381
+ ] });
2382
+ };
2383
+ x(ln, {
2384
+ resolved: R.TabPanel,
2385
+ isCanvas: !0,
2386
+ info: {
2387
+ selectable: !1,
2388
+ displayName: "Tab panel"
2389
+ }
2390
+ });
2391
+ const cn = (e) => {
2392
+ const { connectors: n } = O();
2393
+ return /* @__PURE__ */ b(
2394
+ at,
2395
+ {
2396
+ ...e,
2397
+ ref: (i) => {
2398
+ i && n.connect(i);
2399
+ }
2400
+ }
2401
+ );
2402
+ }, un = "Carousel";
2403
+ x(cn, {
2404
+ resolved: R.Swiper,
2405
+ isCanvas: !0,
2406
+ rules: {
2407
+ canMoveIn: (e) => e.every((n) => V(n) == R.SwiperSlide)
2408
+ },
2409
+ info: {
2410
+ displayName: un
2411
+ }
2412
+ });
2413
+ const dn = ({ children: e, ...n }) => {
2414
+ const i = I(), { connectors: r } = O(), s = F([
2415
+ (f) => {
2416
+ f && r.connect(f);
2417
+ }
2418
+ ]);
2419
+ return /* @__PURE__ */ L(it, { ...n, ...i, ref: s, children: [
2420
+ e,
2421
+ G(e) && /* @__PURE__ */ b(z, {})
2422
+ ] });
2423
+ };
2424
+ x(dn, {
2425
+ resolved: R.SwiperSlide,
2426
+ info: {
2427
+ selectable: !1,
2428
+ displayName: "Swiper Slide"
2429
+ }
2430
+ });
2431
+ const fn = (e) => {
2432
+ const { connectors: n } = O(), i = I();
2433
+ return /* @__PURE__ */ b(
2434
+ ot,
2435
+ {
2436
+ ...i,
2437
+ ...e,
2438
+ ref: (r) => {
2439
+ r && n.connect(r);
2440
+ }
2441
+ }
2442
+ );
2443
+ };
2444
+ x(fn, {
2445
+ resolved: R.Icon,
2446
+ isCanvas: !1,
2447
+ info: {
2448
+ displayName: "Icon"
2449
+ }
2450
+ });
2451
+ const pn = (e) => {
2452
+ const { connectors: n } = O(), i = I(), r = F([
2453
+ (s) => {
2454
+ s && n.connect(s);
2455
+ }
2456
+ ]);
2457
+ return /* @__PURE__ */ b(st, { ...e, ...i, ref: r });
2458
+ };
2459
+ x(pn, {
2460
+ resolved: R.Accordion,
2461
+ isCanvas: !1,
2462
+ info: {
2463
+ selectable: !1
2464
+ }
2465
+ });
2466
+ const hn = ({ children: e, ...n }) => {
2467
+ const { connectors: i } = O(), r = I();
2468
+ return /* @__PURE__ */ L(
2469
+ lt,
2470
+ {
2471
+ ...n,
2472
+ ...r,
2473
+ ref: (s) => {
2474
+ s && i.connect(s);
2475
+ },
2476
+ children: [
2477
+ e,
2478
+ G(e) && /* @__PURE__ */ b(z, { placeholder: mn })
2479
+ ]
2480
+ }
2481
+ );
2482
+ }, mn = "Accordion summary";
2483
+ x(hn, {
2484
+ resolved: R.AccordionSummary,
2485
+ isCanvas: !0,
2486
+ rules: {
2487
+ canMoveIn: () => !0,
2488
+ canMoveOut: () => !1
2489
+ },
2490
+ info: {
2491
+ selectable: !1
2492
+ }
2493
+ });
2494
+ const vn = ({ children: e, ...n }) => {
2495
+ const { connectors: i } = O(), r = I();
2496
+ return /* @__PURE__ */ L(
2497
+ ct,
2498
+ {
2499
+ ...n,
2500
+ ...r,
2501
+ containerProps: {
2502
+ ref: (s) => {
2503
+ s && i.connect(s);
2504
+ }
2505
+ },
2506
+ children: [
2507
+ e,
2508
+ G(e) && /* @__PURE__ */ b(z, { placeholder: gn })
2509
+ ]
2510
+ }
2511
+ );
2512
+ }, gn = "Accordion Content";
2513
+ x(vn, {
2514
+ resolved: R.AccordionContent,
2515
+ isCanvas: !0,
2516
+ rules: {
2517
+ canMoveIn: () => !0,
2518
+ canMoveOut: () => !1
2519
+ },
2520
+ info: {
2521
+ selectable: !1
2522
+ }
2523
+ });
2524
+ const yn = (e) => {
2525
+ const { connectors: n } = O(), i = I();
2526
+ return /* @__PURE__ */ b(
2527
+ ut,
2528
+ {
2529
+ ...e,
2530
+ ...i,
2531
+ ref: (r) => {
2532
+ r && n.connect(r);
2533
+ }
2534
+ }
2535
+ );
2536
+ };
2537
+ x(yn, {
2538
+ resolved: R.AccordionGroup,
2539
+ isCanvas: !0,
2540
+ rules: {
2541
+ canMoveIn: (e) => e.every((n) => V(n) == R.Accordion)
2542
+ },
2543
+ info: {
2544
+ displayName: "Accordion"
2545
+ }
2546
+ });
2547
+ const En = ({ ...e }) => {
2548
+ const n = I(), { connectors: i } = O();
2549
+ return /* @__PURE__ */ b(
2550
+ dt,
2551
+ {
2552
+ ...e,
2553
+ ref: (r) => {
2554
+ r && i.connect(r);
2555
+ },
2556
+ ...n
2557
+ }
2558
+ );
2559
+ };
2560
+ x(En, {
2561
+ resolved: R.Video,
2562
+ isCanvas: !1,
2563
+ info: {
2564
+ displayName: "Video"
2565
+ }
2566
+ });
2567
+ const bn = ({ children: e, ...n }) => {
2568
+ const i = I(), { connectors: r } = O();
2569
+ return /* @__PURE__ */ L(
2570
+ ft,
2571
+ {
2572
+ ...n,
2573
+ ...i,
2574
+ ref: (s) => {
2575
+ s && r.connect(s);
2576
+ },
2577
+ children: [
2578
+ e,
2579
+ G(e) && /* @__PURE__ */ b(z, {})
2580
+ ]
2581
+ }
2582
+ );
2583
+ };
2584
+ x(bn, {
2585
+ resolved: R.Box,
2586
+ isCanvas: !0,
2587
+ rules: {
2588
+ canMoveIn: () => !0
2589
+ },
2590
+ info: {
2591
+ displayName: "Block"
2592
+ }
2593
+ });
2594
+ const Tn = ({
2595
+ unitItemProps: e,
2596
+ captionProps: n,
2597
+ timeProps: i,
2598
+ units: r,
2599
+ date: s,
2600
+ hideAfterExpired: f,
2601
+ ...h
2602
+ }) => {
2603
+ const { enabled: d } = K((p) => ({
2604
+ enabled: p.options.enabled
2605
+ })), { connectors: o } = O(), c = Object.fromEntries(
2606
+ ["years", "months", "weeks", "days", "hours", "minutes", "seconds"].map((p) => [p, r.every((y) => y.value !== p)])
2607
+ );
2608
+ return /* @__PURE__ */ b(pt, { date: s, omit: c, children: (p) => /* @__PURE__ */ L(
2609
+ ue,
2610
+ {
2611
+ ...h,
2612
+ ref: (y) => {
2613
+ y && o.connect(y);
2614
+ },
2615
+ sx: {
2616
+ display: "flex",
2617
+ maxWidth: "100%",
2618
+ ":empty": {
2619
+ display: "none"
2620
+ },
2621
+ ...h?.sx
2622
+ },
2623
+ children: [
2624
+ f && p.isFinished ? /* @__PURE__ */ b(ae, { children: d && /* @__PURE__ */ L("div", { className: "tw:flex tw:flex-col tw:items-center tw:gap-1 tw:p-2 tw:bg-neutral-100", children: [
2625
+ /* @__PURE__ */ b("p", { children: "Countdown is run out of time" }),
2626
+ /* @__PURE__ */ b("p", { className: "tw:text-xs tw:text-neutral-500", children: "(this only visible in the editor)" })
2627
+ ] }) }) : /* @__PURE__ */ L(ae, { children: [
2628
+ r.map((y) => {
2629
+ const _ = p[y.value];
2630
+ return /* @__PURE__ */ L(
2631
+ ue,
2632
+ {
2633
+ className: "tw:flex tw:flex-col tw:items-center",
2634
+ ...e,
2635
+ sx: {
2636
+ display: "flex",
2637
+ flexDirection: "column",
2638
+ alignItems: "center",
2639
+ ...e?.sx
2640
+ },
2641
+ children: [
2642
+ /* @__PURE__ */ b(ie, { ...i, children: _.toString().padStart(2, "0") }),
2643
+ /* @__PURE__ */ b(ie, { ...n, children: y.caption })
2644
+ ]
2645
+ },
2646
+ y.value
2647
+ );
2648
+ }),
2649
+ d && r.length === 0 && /* @__PURE__ */ L("div", { className: "tw:flex tw:flex-col tw:items-center tw:gap-1 tw:p-2 tw:bg-neutral-100 tw:w-full", children: [
2650
+ /* @__PURE__ */ b("p", { children: "No units selected" }),
2651
+ /* @__PURE__ */ b("p", { className: "tw:text-xs tw:text-neutral-500", children: "(this only visible in the editor)" })
2652
+ ] })
2653
+ ] }),
2654
+ d && r.length === 0 && /* @__PURE__ */ L("div", { className: "tw:flex tw:flex-col tw:items-center tw:gap-1 tw:p-2 tw:bg-neutral-100 tw:w-full", children: [
2655
+ /* @__PURE__ */ b("p", { children: "No units selected" }),
2656
+ /* @__PURE__ */ b("p", { className: "tw:text-xs tw:text-neutral-500", children: "(this only visible in the editor)" })
2657
+ ] })
2658
+ ]
2659
+ }
2660
+ ) });
2661
+ };
2662
+ x(Tn, {
2663
+ resolved: R.CountdownTimer,
2664
+ isCanvas: !1,
2665
+ info: {
2666
+ displayName: "Countdown timer"
2667
+ }
2668
+ });
2669
+ export {
2670
+ yn as A,
2671
+ Pe as B,
2672
+ Vt as C,
2673
+ R as D,
2674
+ z as E,
2675
+ Wt as F,
2676
+ Gt as G,
2677
+ $t as H,
2678
+ en as I,
2679
+ x as J,
2680
+ Ge as K,
2681
+ zt as L,
2682
+ tn as M,
2683
+ U as N,
2684
+ qe as O,
2685
+ Ut as P,
2686
+ Ft as Q,
2687
+ kn as R,
2688
+ cn as S,
2689
+ rn as T,
2690
+ En as V,
2691
+ Bt as W,
2692
+ V as a,
2693
+ jt as b,
2694
+ Ht as c,
2695
+ bn as d,
2696
+ Zt as e,
2697
+ pn as f,
2698
+ Dn as g,
2699
+ hn as h,
2700
+ qt as i,
2701
+ Jt as j,
2702
+ vn as k,
2703
+ dn as l,
2704
+ nn as m,
2705
+ fn as n,
2706
+ Xt as o,
2707
+ an as p,
2708
+ on as q,
2709
+ sn as r,
2710
+ ln as s,
2711
+ Tn as t,
2712
+ K as u,
2713
+ In as v,
2714
+ Pn as w,
2715
+ I as x,
2716
+ Kt as y,
2717
+ Qt as z
2718
+ };