@amsom-habitat/ui 2.20.15 → 2.20.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,513 @@
1
+ import { t as e } from "./chunk-foFoljWS.js";
2
+ //#region node_modules/dompurify/dist/purify.js
3
+ var t = /* @__PURE__ */ e(((e, t) => {
4
+ (function(n, r) {
5
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.DOMPurify = r());
6
+ })(e, (function() {
7
+ function e(t) {
8
+ "@babel/helpers - typeof";
9
+ return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
10
+ return typeof e;
11
+ } : function(e) {
12
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
13
+ }, e(t);
14
+ }
15
+ function t(e, n) {
16
+ return t = Object.setPrototypeOf || function(e, t) {
17
+ return e.__proto__ = t, e;
18
+ }, t(e, n);
19
+ }
20
+ function n() {
21
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
22
+ if (typeof Proxy == "function") return !0;
23
+ try {
24
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})), !0;
25
+ } catch {
26
+ return !1;
27
+ }
28
+ }
29
+ function r(e, i, a) {
30
+ return r = n() ? Reflect.construct : function(e, n, r) {
31
+ var i = [null];
32
+ i.push.apply(i, n);
33
+ var a = new (Function.bind.apply(e, i))();
34
+ return r && t(a, r.prototype), a;
35
+ }, r.apply(null, arguments);
36
+ }
37
+ function i(e) {
38
+ return a(e) || o(e) || s(e) || l();
39
+ }
40
+ function a(e) {
41
+ if (Array.isArray(e)) return c(e);
42
+ }
43
+ function o(e) {
44
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
45
+ }
46
+ function s(e, t) {
47
+ if (e) {
48
+ if (typeof e == "string") return c(e, t);
49
+ var n = Object.prototype.toString.call(e).slice(8, -1);
50
+ if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
51
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return c(e, t);
52
+ }
53
+ }
54
+ function c(e, t) {
55
+ (t == null || t > e.length) && (t = e.length);
56
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
57
+ return r;
58
+ }
59
+ function l() {
60
+ throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
61
+ }
62
+ var u = Object.hasOwnProperty, d = Object.setPrototypeOf, f = Object.isFrozen, ee = Object.getPrototypeOf, te = Object.getOwnPropertyDescriptor, p = Object.freeze, m = Object.seal, h = Object.create, ne = typeof Reflect < "u" && Reflect, g = ne.apply, re = ne.construct;
63
+ g ||= function(e, t, n) {
64
+ return e.apply(t, n);
65
+ }, p ||= function(e) {
66
+ return e;
67
+ }, m ||= function(e) {
68
+ return e;
69
+ }, re ||= function(e, t) {
70
+ return r(e, i(t));
71
+ };
72
+ var ie = x(Array.prototype.forEach), ae = x(Array.prototype.pop), _ = x(Array.prototype.push), v = x(String.prototype.toLowerCase), oe = x(String.prototype.toString), se = x(String.prototype.match), y = x(String.prototype.replace), ce = x(String.prototype.indexOf), le = x(String.prototype.trim), b = x(RegExp.prototype.test), ue = S(TypeError);
73
+ function x(e) {
74
+ return function(t) {
75
+ var n = [...arguments].slice(1);
76
+ return g(e, t, n);
77
+ };
78
+ }
79
+ function S(e) {
80
+ return function() {
81
+ return re(e, [...arguments]);
82
+ };
83
+ }
84
+ function C(e, t, n) {
85
+ n ??= v, d && d(e, null);
86
+ for (var r = t.length; r--;) {
87
+ var i = t[r];
88
+ if (typeof i == "string") {
89
+ var a = n(i);
90
+ a !== i && (f(t) || (t[r] = a), i = a);
91
+ }
92
+ e[i] = !0;
93
+ }
94
+ return e;
95
+ }
96
+ function w(e) {
97
+ var t = h(null), n;
98
+ for (n in e) g(u, e, [n]) === !0 && (t[n] = e[n]);
99
+ return t;
100
+ }
101
+ function T(e, t) {
102
+ for (; e !== null;) {
103
+ var n = te(e, t);
104
+ if (n) {
105
+ if (n.get) return x(n.get);
106
+ if (typeof n.value == "function") return x(n.value);
107
+ }
108
+ e = ee(e);
109
+ }
110
+ function r(e) {
111
+ return console.warn("fallback value for", e), null;
112
+ }
113
+ return r;
114
+ }
115
+ var de = p(/* @__PURE__ */ "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".split(".")), fe = p(/* @__PURE__ */ "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".split(".")), pe = p([
116
+ "feBlend",
117
+ "feColorMatrix",
118
+ "feComponentTransfer",
119
+ "feComposite",
120
+ "feConvolveMatrix",
121
+ "feDiffuseLighting",
122
+ "feDisplacementMap",
123
+ "feDistantLight",
124
+ "feFlood",
125
+ "feFuncA",
126
+ "feFuncB",
127
+ "feFuncG",
128
+ "feFuncR",
129
+ "feGaussianBlur",
130
+ "feImage",
131
+ "feMerge",
132
+ "feMergeNode",
133
+ "feMorphology",
134
+ "feOffset",
135
+ "fePointLight",
136
+ "feSpecularLighting",
137
+ "feSpotLight",
138
+ "feTile",
139
+ "feTurbulence"
140
+ ]), me = p([
141
+ "animate",
142
+ "color-profile",
143
+ "cursor",
144
+ "discard",
145
+ "fedropshadow",
146
+ "font-face",
147
+ "font-face-format",
148
+ "font-face-name",
149
+ "font-face-src",
150
+ "font-face-uri",
151
+ "foreignobject",
152
+ "hatch",
153
+ "hatchpath",
154
+ "mesh",
155
+ "meshgradient",
156
+ "meshpatch",
157
+ "meshrow",
158
+ "missing-glyph",
159
+ "script",
160
+ "set",
161
+ "solidcolor",
162
+ "unknown",
163
+ "use"
164
+ ]), he = p(/* @__PURE__ */ "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".split(".")), ge = p([
165
+ "maction",
166
+ "maligngroup",
167
+ "malignmark",
168
+ "mlongdiv",
169
+ "mscarries",
170
+ "mscarry",
171
+ "msgroup",
172
+ "mstack",
173
+ "msline",
174
+ "msrow",
175
+ "semantics",
176
+ "annotation",
177
+ "annotation-xml",
178
+ "mprescripts",
179
+ "none"
180
+ ]), _e = p(["#text"]), ve = p(/* @__PURE__ */ "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".split(".")), ye = p(/* @__PURE__ */ "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".split(".")), be = p(/* @__PURE__ */ "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".split(".")), E = p([
181
+ "xlink:href",
182
+ "xml:id",
183
+ "xlink:title",
184
+ "xml:space",
185
+ "xmlns:xlink"
186
+ ]), xe = m(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Se = m(/<%[\w\W]*|[\w\W]*%>/gm), Ce = m(/\${[\w\W]*}/gm), we = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), Te = m(/^aria-[\-\w]+$/), Ee = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), De = m(/^(?:\w+script|data):/i), Oe = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), ke = m(/^html$/i), Ae = m(/^[a-z][.\w]*(-[.\w]+)+$/i), je = function() {
187
+ return typeof window > "u" ? null : window;
188
+ }, Me = function(t, n) {
189
+ if (e(t) !== "object" || typeof t.createPolicy != "function") return null;
190
+ var r = null, i = "data-tt-policy-suffix";
191
+ n.currentScript && n.currentScript.hasAttribute(i) && (r = n.currentScript.getAttribute(i));
192
+ var a = "dompurify" + (r ? "#" + r : "");
193
+ try {
194
+ return t.createPolicy(a, {
195
+ createHTML: function(e) {
196
+ return e;
197
+ },
198
+ createScriptURL: function(e) {
199
+ return e;
200
+ }
201
+ });
202
+ } catch {
203
+ return console.warn("TrustedTypes policy " + a + " could not be created."), null;
204
+ }
205
+ };
206
+ function Ne() {
207
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : je(), n = function(e) {
208
+ return Ne(e);
209
+ };
210
+ if (n.version = "2.5.9", n.removed = [], !t || !t.document || t.document.nodeType !== 9) return n.isSupported = !1, n;
211
+ var r = t.document, a = t.document, o = t.DocumentFragment, s = t.HTMLTemplateElement, c = t.Node, l = t.Element, u = t.NodeFilter, d = t.NamedNodeMap, f = d === void 0 ? t.NamedNodeMap || t.MozNamedAttrMap : d, ee = t.HTMLFormElement, te = t.DOMParser, m = t.trustedTypes, h = l.prototype, ne = T(h, "cloneNode"), g = T(h, "nextSibling"), re = T(h, "childNodes"), x = T(h, "parentNode");
212
+ if (typeof s == "function") {
213
+ var S = a.createElement("template");
214
+ S.content && S.content.ownerDocument && (a = S.content.ownerDocument);
215
+ }
216
+ var D = Me(m, r), Pe = D ? D.createHTML("") : "", O = a, Fe = O.implementation, Ie = O.createNodeIterator, Le = O.createDocumentFragment, Re = O.getElementsByTagName, ze = r.importNode, Be = {};
217
+ try {
218
+ Be = w(a).documentMode ? a.documentMode : {};
219
+ } catch {}
220
+ var k = {};
221
+ n.isSupported = typeof x == "function" && Fe && Fe.createHTMLDocument !== void 0 && Be !== 9;
222
+ var Ve = xe, He = Se, Ue = Ce, We = we, Ge = Te, Ke = De, qe = Oe, Je = Ae, Ye = Ee, A = null, Xe = C({}, [].concat(i(de), i(fe), i(pe), i(he), i(_e))), j = null, Ze = C({}, [].concat(i(ve), i(ye), i(be), i(E))), M = Object.seal(Object.create(null, {
223
+ tagNameCheck: {
224
+ writable: !0,
225
+ configurable: !1,
226
+ enumerable: !0,
227
+ value: null
228
+ },
229
+ attributeNameCheck: {
230
+ writable: !0,
231
+ configurable: !1,
232
+ enumerable: !0,
233
+ value: null
234
+ },
235
+ allowCustomizedBuiltInElements: {
236
+ writable: !0,
237
+ configurable: !1,
238
+ enumerable: !0,
239
+ value: !1
240
+ }
241
+ })), N = null, Qe = null, $e = !0, et = !0, tt = !1, nt = !0, P = !1, rt = !0, F = !1, it = !1, at = !1, I = !1, L = !1, R = !1, ot = !0, st = !1, ct = "user-content-", lt = !0, z = !1, B = {}, V = null, ut = C({}, [
242
+ "annotation-xml",
243
+ "audio",
244
+ "colgroup",
245
+ "desc",
246
+ "foreignobject",
247
+ "head",
248
+ "iframe",
249
+ "math",
250
+ "mi",
251
+ "mn",
252
+ "mo",
253
+ "ms",
254
+ "mtext",
255
+ "noembed",
256
+ "noframes",
257
+ "noscript",
258
+ "plaintext",
259
+ "script",
260
+ "style",
261
+ "svg",
262
+ "template",
263
+ "thead",
264
+ "title",
265
+ "video",
266
+ "xmp"
267
+ ]), dt = null, ft = C({}, [
268
+ "audio",
269
+ "video",
270
+ "img",
271
+ "source",
272
+ "image",
273
+ "track"
274
+ ]), pt = null, mt = C({}, [
275
+ "alt",
276
+ "class",
277
+ "for",
278
+ "id",
279
+ "label",
280
+ "name",
281
+ "pattern",
282
+ "placeholder",
283
+ "role",
284
+ "summary",
285
+ "title",
286
+ "value",
287
+ "style",
288
+ "xmlns"
289
+ ]), H = "http://www.w3.org/1998/Math/MathML", U = "http://www.w3.org/2000/svg", W = "http://www.w3.org/1999/xhtml", G = W, ht = !1, gt = null, _t = C({}, [
290
+ H,
291
+ U,
292
+ W
293
+ ], oe), K, vt = ["application/xhtml+xml", "text/html"], yt = "text/html", q, J = null, bt = a.createElement("form"), xt = function(e) {
294
+ return e instanceof RegExp || e instanceof Function;
295
+ }, St = function(t) {
296
+ J && J === t || ((!t || e(t) !== "object") && (t = {}), t = w(t), K = K = vt.indexOf(t.PARSER_MEDIA_TYPE) === -1 ? yt : t.PARSER_MEDIA_TYPE, q = K === "application/xhtml+xml" ? oe : v, A = "ALLOWED_TAGS" in t ? C({}, t.ALLOWED_TAGS, q) : Xe, j = "ALLOWED_ATTR" in t ? C({}, t.ALLOWED_ATTR, q) : Ze, gt = "ALLOWED_NAMESPACES" in t ? C({}, t.ALLOWED_NAMESPACES, oe) : _t, pt = "ADD_URI_SAFE_ATTR" in t ? C(w(mt), t.ADD_URI_SAFE_ATTR, q) : mt, dt = "ADD_DATA_URI_TAGS" in t ? C(w(ft), t.ADD_DATA_URI_TAGS, q) : ft, V = "FORBID_CONTENTS" in t ? C({}, t.FORBID_CONTENTS, q) : ut, N = "FORBID_TAGS" in t ? C({}, t.FORBID_TAGS, q) : {}, Qe = "FORBID_ATTR" in t ? C({}, t.FORBID_ATTR, q) : {}, B = "USE_PROFILES" in t ? t.USE_PROFILES : !1, $e = t.ALLOW_ARIA_ATTR !== !1, et = t.ALLOW_DATA_ATTR !== !1, tt = t.ALLOW_UNKNOWN_PROTOCOLS || !1, nt = t.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = t.SAFE_FOR_TEMPLATES || !1, rt = t.SAFE_FOR_XML !== !1, F = t.WHOLE_DOCUMENT || !1, I = t.RETURN_DOM || !1, L = t.RETURN_DOM_FRAGMENT || !1, R = t.RETURN_TRUSTED_TYPE || !1, at = t.FORCE_BODY || !1, ot = t.SANITIZE_DOM !== !1, st = t.SANITIZE_NAMED_PROPS || !1, lt = t.KEEP_CONTENT !== !1, z = t.IN_PLACE || !1, Ye = t.ALLOWED_URI_REGEXP || Ye, G = t.NAMESPACE || W, M = t.CUSTOM_ELEMENT_HANDLING || {}, t.CUSTOM_ELEMENT_HANDLING && xt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (M.tagNameCheck = t.CUSTOM_ELEMENT_HANDLING.tagNameCheck), t.CUSTOM_ELEMENT_HANDLING && xt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (M.attributeNameCheck = t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), t.CUSTOM_ELEMENT_HANDLING && typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (M.allowCustomizedBuiltInElements = t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (et = !1), L && (I = !0), B && (A = C({}, i(_e)), j = [], B.html === !0 && (C(A, de), C(j, ve)), B.svg === !0 && (C(A, fe), C(j, ye), C(j, E)), B.svgFilters === !0 && (C(A, pe), C(j, ye), C(j, E)), B.mathMl === !0 && (C(A, he), C(j, be), C(j, E))), t.ADD_TAGS && (A === Xe && (A = w(A)), C(A, t.ADD_TAGS, q)), t.ADD_ATTR && (j === Ze && (j = w(j)), C(j, t.ADD_ATTR, q)), t.ADD_URI_SAFE_ATTR && C(pt, t.ADD_URI_SAFE_ATTR, q), t.FORBID_CONTENTS && (V === ut && (V = w(V)), C(V, t.FORBID_CONTENTS, q)), lt && (A["#text"] = !0), F && C(A, [
297
+ "html",
298
+ "head",
299
+ "body"
300
+ ]), A.table && (C(A, ["tbody"]), delete N.tbody), p && p(t), J = t);
301
+ }, Ct = C({}, [
302
+ "mi",
303
+ "mo",
304
+ "mn",
305
+ "ms",
306
+ "mtext"
307
+ ]), wt = C({}, ["annotation-xml"]), Tt = C({}, [
308
+ "title",
309
+ "style",
310
+ "font",
311
+ "a",
312
+ "script"
313
+ ]), Y = C({}, fe);
314
+ C(Y, pe), C(Y, me);
315
+ var Et = C({}, he);
316
+ C(Et, ge);
317
+ var Dt = function(e) {
318
+ var t = x(e);
319
+ (!t || !t.tagName) && (t = {
320
+ namespaceURI: G,
321
+ tagName: "template"
322
+ });
323
+ var n = v(e.tagName), r = v(t.tagName);
324
+ return gt[e.namespaceURI] ? e.namespaceURI === U ? t.namespaceURI === W ? n === "svg" : t.namespaceURI === H ? n === "svg" && (r === "annotation-xml" || Ct[r]) : !!Y[n] : e.namespaceURI === H ? t.namespaceURI === W ? n === "math" : t.namespaceURI === U ? n === "math" && wt[r] : !!Et[n] : e.namespaceURI === W ? t.namespaceURI === U && !wt[r] || t.namespaceURI === H && !Ct[r] ? !1 : !Et[n] && (Tt[n] || !Y[n]) : !!(K === "application/xhtml+xml" && gt[e.namespaceURI]) : !1;
325
+ }, X = function(e) {
326
+ _(n.removed, { element: e });
327
+ try {
328
+ e.parentNode.removeChild(e);
329
+ } catch {
330
+ try {
331
+ e.outerHTML = Pe;
332
+ } catch {
333
+ e.remove();
334
+ }
335
+ }
336
+ }, Z = function(e, t) {
337
+ try {
338
+ _(n.removed, {
339
+ attribute: t.getAttributeNode(e),
340
+ from: t
341
+ });
342
+ } catch {
343
+ _(n.removed, {
344
+ attribute: null,
345
+ from: t
346
+ });
347
+ }
348
+ if (t.removeAttribute(e), e === "is" && !j[e]) if (I || L) try {
349
+ X(t);
350
+ } catch {}
351
+ else try {
352
+ t.setAttribute(e, "");
353
+ } catch {}
354
+ }, Ot = function(e) {
355
+ var t, n;
356
+ if (at) e = "<remove></remove>" + e;
357
+ else {
358
+ var r = se(e, /^[\r\n\t ]+/);
359
+ n = r && r[0];
360
+ }
361
+ K === "application/xhtml+xml" && G === W && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
362
+ var i = D ? D.createHTML(e) : e;
363
+ if (G === W) try {
364
+ t = new te().parseFromString(i, K);
365
+ } catch {}
366
+ if (!t || !t.documentElement) {
367
+ t = Fe.createDocument(G, "template", null);
368
+ try {
369
+ t.documentElement.innerHTML = ht ? Pe : i;
370
+ } catch {}
371
+ }
372
+ var o = t.body || t.documentElement;
373
+ return e && n && o.insertBefore(a.createTextNode(n), o.childNodes[0] || null), G === W ? Re.call(t, F ? "html" : "body")[0] : F ? t.documentElement : o;
374
+ }, kt = function(e) {
375
+ return Ie.call(e.ownerDocument || e, e, u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION, null, !1);
376
+ }, At = function(e) {
377
+ return e instanceof ee && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof f) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
378
+ }, Q = function(t) {
379
+ return e(c) === "object" ? t instanceof c : t && e(t) === "object" && typeof t.nodeType == "number" && typeof t.nodeName == "string";
380
+ }, $ = function(e, t, r) {
381
+ k[e] && ie(k[e], function(e) {
382
+ e.call(n, t, r, J);
383
+ });
384
+ }, jt = function(e) {
385
+ var t;
386
+ if ($("beforeSanitizeElements", e, null), At(e) || b(/[\u0080-\uFFFF]/, e.nodeName)) return X(e), !0;
387
+ var r = q(e.nodeName);
388
+ if ($("uponSanitizeElement", e, {
389
+ tagName: r,
390
+ allowedTags: A
391
+ }), e.hasChildNodes() && !Q(e.firstElementChild) && (!Q(e.content) || !Q(e.content.firstElementChild)) && b(/<[/\w]/g, e.innerHTML) && b(/<[/\w]/g, e.textContent) || r === "select" && b(/<template/i, e.innerHTML) || e.nodeType === 7 || rt && e.nodeType === 8 && b(/<[/\w]/g, e.data)) return X(e), !0;
392
+ if (!A[r] || N[r]) {
393
+ if (!N[r] && Nt(r) && (M.tagNameCheck instanceof RegExp && b(M.tagNameCheck, r) || M.tagNameCheck instanceof Function && M.tagNameCheck(r))) return !1;
394
+ if (lt && !V[r]) {
395
+ var i = x(e) || e.parentNode, a = re(e) || e.childNodes;
396
+ if (a && i) for (var o = a.length - 1; o >= 0; --o) {
397
+ var s = ne(a[o], !0);
398
+ s.__removalCount = (e.__removalCount || 0) + 1, i.insertBefore(s, g(e));
399
+ }
400
+ }
401
+ return X(e), !0;
402
+ }
403
+ return e instanceof l && !Dt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && b(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (P && e.nodeType === 3 && (t = e.textContent, t = y(t, Ve, " "), t = y(t, He, " "), t = y(t, Ue, " "), e.textContent !== t && (_(n.removed, { element: e.cloneNode() }), e.textContent = t)), $("afterSanitizeElements", e, null), !1);
404
+ }, Mt = function(e, t, n) {
405
+ if (ot && (t === "id" || t === "name") && (n in a || n in bt)) return !1;
406
+ if (!(et && !Qe[t] && b(We, t)) && !($e && b(Ge, t))) {
407
+ if (!j[t] || Qe[t]) {
408
+ if (!(Nt(e) && (M.tagNameCheck instanceof RegExp && b(M.tagNameCheck, e) || M.tagNameCheck instanceof Function && M.tagNameCheck(e)) && (M.attributeNameCheck instanceof RegExp && b(M.attributeNameCheck, t) || M.attributeNameCheck instanceof Function && M.attributeNameCheck(t)) || t === "is" && M.allowCustomizedBuiltInElements && (M.tagNameCheck instanceof RegExp && b(M.tagNameCheck, n) || M.tagNameCheck instanceof Function && M.tagNameCheck(n)))) return !1;
409
+ } else if (!pt[t] && !b(Ye, y(n, qe, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ce(n, "data:") === 0 && dt[e]) && !(tt && !b(Ke, y(n, qe, ""))) && n) return !1;
410
+ }
411
+ return !0;
412
+ }, Nt = function(e) {
413
+ return e !== "annotation-xml" && se(e, Je);
414
+ }, Pt = function(t) {
415
+ var r, i, a, o;
416
+ $("beforeSanitizeAttributes", t, null);
417
+ var s = t.attributes;
418
+ if (!(!s || At(t))) {
419
+ var c = {
420
+ attrName: "",
421
+ attrValue: "",
422
+ keepAttr: !0,
423
+ allowedAttributes: j
424
+ };
425
+ for (o = s.length; o--;) {
426
+ r = s[o];
427
+ var l = r, u = l.name, d = l.namespaceURI;
428
+ if (i = u === "value" ? r.value : le(r.value), a = q(u), c.attrName = a, c.attrValue = i, c.keepAttr = !0, c.forceKeepAttr = void 0, $("uponSanitizeAttribute", t, c), i = c.attrValue, !c.forceKeepAttr && (Z(u, t), c.keepAttr)) {
429
+ if (!nt && b(/\/>/i, i)) {
430
+ Z(u, t);
431
+ continue;
432
+ }
433
+ P && (i = y(i, Ve, " "), i = y(i, He, " "), i = y(i, Ue, " "));
434
+ var f = q(t.nodeName);
435
+ if (Mt(f, a, i)) {
436
+ if (st && (a === "id" || a === "name") && (Z(u, t), i = ct + i), rt && b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, i)) {
437
+ Z(u, t);
438
+ continue;
439
+ }
440
+ if (D && e(m) === "object" && typeof m.getAttributeType == "function" && !d) switch (m.getAttributeType(f, a)) {
441
+ case "TrustedHTML":
442
+ i = D.createHTML(i);
443
+ break;
444
+ case "TrustedScriptURL":
445
+ i = D.createScriptURL(i);
446
+ break;
447
+ }
448
+ try {
449
+ d ? t.setAttributeNS(d, u, i) : t.setAttribute(u, i), At(t) ? X(t) : ae(n.removed);
450
+ } catch {}
451
+ }
452
+ }
453
+ }
454
+ $("afterSanitizeAttributes", t, null);
455
+ }
456
+ }, Ft = function e(t) {
457
+ var n, r = kt(t);
458
+ for ($("beforeSanitizeShadowDOM", t, null); n = r.nextNode();) $("uponSanitizeShadowNode", n, null), jt(n), Pt(n), n.content instanceof o && e(n.content);
459
+ $("afterSanitizeShadowDOM", t, null);
460
+ };
461
+ return n.sanitize = function(i) {
462
+ var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, l, u, d, f;
463
+ if (ht = !i, ht && (i = "<!-->"), typeof i != "string" && !Q(i)) if (typeof i.toString == "function") {
464
+ if (i = i.toString(), typeof i != "string") throw ue("dirty is not a string, aborting");
465
+ } else throw ue("toString is not a function");
466
+ if (!n.isSupported) {
467
+ if (e(t.toStaticHTML) === "object" || typeof t.toStaticHTML == "function") {
468
+ if (typeof i == "string") return t.toStaticHTML(i);
469
+ if (Q(i)) return t.toStaticHTML(i.outerHTML);
470
+ }
471
+ return i;
472
+ }
473
+ if (it || St(a), n.removed = [], typeof i == "string" && (z = !1), z) {
474
+ if (i.nodeName) {
475
+ var ee = q(i.nodeName);
476
+ if (!A[ee] || N[ee]) throw ue("root node is forbidden and cannot be sanitized in-place");
477
+ }
478
+ } else if (i instanceof c) s = Ot("<!---->"), l = s.ownerDocument.importNode(i, !0), l.nodeType === 1 && l.nodeName === "BODY" || l.nodeName === "HTML" ? s = l : s.appendChild(l);
479
+ else {
480
+ if (!I && !P && !F && i.indexOf("<") === -1) return D && R ? D.createHTML(i) : i;
481
+ if (s = Ot(i), !s) return I ? null : R ? Pe : "";
482
+ }
483
+ s && at && X(s.firstChild);
484
+ for (var te = kt(z ? i : s); u = te.nextNode();) u.nodeType === 3 && u === d || (jt(u), Pt(u), u.content instanceof o && Ft(u.content), d = u);
485
+ if (d = null, z) return i;
486
+ if (I) {
487
+ if (L) for (f = Le.call(s.ownerDocument); s.firstChild;) f.appendChild(s.firstChild);
488
+ else f = s;
489
+ return (j.shadowroot || j.shadowrootmod) && (f = ze.call(r, f, !0)), f;
490
+ }
491
+ var p = F ? s.outerHTML : s.innerHTML;
492
+ return F && A["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && b(ke, s.ownerDocument.doctype.name) && (p = "<!DOCTYPE " + s.ownerDocument.doctype.name + ">\n" + p), P && (p = y(p, Ve, " "), p = y(p, He, " "), p = y(p, Ue, " ")), D && R ? D.createHTML(p) : p;
493
+ }, n.setConfig = function(e) {
494
+ St(e), it = !0;
495
+ }, n.clearConfig = function() {
496
+ J = null, it = !1;
497
+ }, n.isValidAttribute = function(e, t, n) {
498
+ return J || St({}), Mt(q(e), q(t), n);
499
+ }, n.addHook = function(e, t) {
500
+ typeof t == "function" && (k[e] = k[e] || [], _(k[e], t));
501
+ }, n.removeHook = function(e) {
502
+ if (k[e]) return ae(k[e]);
503
+ }, n.removeHooks = function(e) {
504
+ k[e] && (k[e] = []);
505
+ }, n.removeAllHooks = function() {
506
+ k = {};
507
+ }, n;
508
+ }
509
+ return Ne();
510
+ }));
511
+ }));
512
+ //#endregion
513
+ export default t();
@@ -0,0 +1,11 @@
1
+ //#region node_modules/@babel/runtime/helpers/esm/typeof.js
2
+ function e(t) {
3
+ "@babel/helpers - typeof";
4
+ return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
5
+ return typeof e;
6
+ } : function(e) {
7
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
8
+ }, e(t);
9
+ }
10
+ //#endregion
11
+ export { e as t };