@plumile/ui 0.1.156 → 0.1.157

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.
@@ -49,20 +49,20 @@ d ||= function(e) {
49
49
  }, te ||= function(e) {
50
50
  return new e(...[...arguments].slice(1));
51
51
  };
52
- var h = T(Array.prototype.forEach), ne = T(Array.prototype.lastIndexOf), re = T(Array.prototype.pop), g = T(Array.prototype.push), ie = T(Array.prototype.splice), _ = Array.isArray, v = T(String.prototype.toLowerCase), ae = T(String.prototype.toString), oe = T(String.prototype.match), y = T(String.prototype.replace), se = T(String.prototype.indexOf), ce = T(String.prototype.trim), le = T(Number.prototype.toString), b = T(Boolean.prototype.toString), x = typeof BigInt > "u" ? null : T(BigInt.prototype.toString), ue = typeof Symbol > "u" ? null : T(Symbol.prototype.toString), S = T(Object.prototype.hasOwnProperty), C = T(Object.prototype.toString), w = T(RegExp.prototype.test), de = E(TypeError);
53
- function T(e) {
52
+ var h = E(Array.prototype.forEach), ne = E(Array.prototype.lastIndexOf), re = E(Array.prototype.pop), g = E(Array.prototype.push), ie = E(Array.prototype.splice), _ = Array.isArray, v = E(String.prototype.toLowerCase), ae = E(String.prototype.toString), oe = E(String.prototype.match), y = E(String.prototype.replace), se = E(String.prototype.indexOf), ce = E(String.prototype.trim), le = E(Number.prototype.toString), b = E(Boolean.prototype.toString), x = typeof BigInt > "u" ? null : E(BigInt.prototype.toString), S = typeof Symbol > "u" ? null : E(Symbol.prototype.toString), C = E(Object.prototype.hasOwnProperty), w = E(Object.prototype.toString), T = E(RegExp.prototype.test), ue = D(TypeError);
53
+ function E(e) {
54
54
  return function(t) {
55
55
  t instanceof RegExp && (t.lastIndex = 0);
56
56
  var n = [...arguments].slice(1);
57
57
  return ee(e, t, n);
58
58
  };
59
59
  }
60
- function E(e) {
60
+ function D(e) {
61
61
  return function() {
62
62
  return te(e, [...arguments]);
63
63
  };
64
64
  }
65
- function D(e, t) {
65
+ function O(e, t) {
66
66
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : v;
67
67
  if (s && s(e, null), !_(t)) return e;
68
68
  let r = t.length;
@@ -76,46 +76,46 @@ function D(e, t) {
76
76
  }
77
77
  return e;
78
78
  }
79
- function O(e) {
80
- for (let t = 0; t < e.length; t++) S(e, t) || (e[t] = null);
79
+ function k(e) {
80
+ for (let t = 0; t < e.length; t++) C(e, t) || (e[t] = null);
81
81
  return e;
82
82
  }
83
- function k(e) {
83
+ function A(e) {
84
84
  let t = p(null);
85
85
  for (let r of o(e)) {
86
86
  var n = i(r, 2);
87
87
  let a = n[0], o = n[1];
88
- S(e, a) && (_(o) ? t[a] = O(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = k(o) : t[a] = o);
88
+ C(e, a) && (_(o) ? t[a] = k(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = A(o) : t[a] = o);
89
89
  }
90
90
  return t;
91
91
  }
92
- function fe(e) {
92
+ function de(e) {
93
93
  switch (typeof e) {
94
94
  case "string": return e;
95
95
  case "number": return le(e);
96
96
  case "boolean": return b(e);
97
97
  case "bigint": return x ? x(e) : "0";
98
- case "symbol": return ue ? ue(e) : "Symbol()";
99
- case "undefined": return C(e);
98
+ case "symbol": return S ? S(e) : "Symbol()";
99
+ case "undefined": return w(e);
100
100
  case "function":
101
101
  case "object": {
102
- if (e === null) return C(e);
103
- let t = e, n = A(t, "toString");
102
+ if (e === null) return w(e);
103
+ let t = e, n = j(t, "toString");
104
104
  if (typeof n == "function") {
105
105
  let e = n(t);
106
- return typeof e == "string" ? e : C(e);
106
+ return typeof e == "string" ? e : w(e);
107
107
  }
108
- return C(e);
108
+ return w(e);
109
109
  }
110
- default: return C(e);
110
+ default: return w(e);
111
111
  }
112
112
  }
113
- function A(e, t) {
113
+ function j(e, t) {
114
114
  for (; e !== null;) {
115
115
  let n = u(e, t);
116
116
  if (n) {
117
- if (n.get) return T(n.get);
118
- if (typeof n.value == "function") return T(n.value);
117
+ if (n.get) return E(n.get);
118
+ if (typeof n.value == "function") return E(n.value);
119
119
  }
120
120
  e = l(e);
121
121
  }
@@ -124,14 +124,14 @@ function A(e, t) {
124
124
  }
125
125
  return n;
126
126
  }
127
- function pe(e) {
127
+ function fe(e) {
128
128
  try {
129
- return w(e, ""), !0;
129
+ return T(e, ""), !0;
130
130
  } catch {
131
131
  return !1;
132
132
  }
133
133
  }
134
- var me = d(/* @__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.search.section.select.shadow.slot.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(".")), he = d(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), ge = d([
134
+ var pe = d(/* @__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.search.section.select.shadow.slot.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(".")), me = d(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), he = d([
135
135
  "feBlend",
136
136
  "feColorMatrix",
137
137
  "feComponentTransfer",
@@ -157,7 +157,7 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
157
157
  "feSpotLight",
158
158
  "feTile",
159
159
  "feTurbulence"
160
- ]), _e = d([
160
+ ]), ge = d([
161
161
  "animate",
162
162
  "color-profile",
163
163
  "cursor",
@@ -180,7 +180,7 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
180
180
  "solidcolor",
181
181
  "unknown",
182
182
  "use"
183
- ]), ve = d(/* @__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.mprescripts".split(".")), ye = d([
183
+ ]), _e = d(/* @__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.mprescripts".split(".")), ve = d([
184
184
  "maction",
185
185
  "maligngroup",
186
186
  "malignmark",
@@ -196,13 +196,13 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
196
196
  "annotation-xml",
197
197
  "mprescripts",
198
198
  "none"
199
- ]), be = d(["#text"]), xe = d(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.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.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Se = d(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.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.exponent.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.intercept.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.mask-type.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.slope.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.tablevalues.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(".")), Ce = d(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.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(".")), we = d([
199
+ ]), ye = d(["#text"]), be = d(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.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.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), xe = d(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.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.exponent.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.intercept.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.mask-type.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.slope.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.tablevalues.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(".")), Se = d(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.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(".")), Ce = d([
200
200
  "xlink:href",
201
201
  "xml:id",
202
202
  "xlink:title",
203
203
  "xml:space",
204
204
  "xmlns:xlink"
205
- ]), Te = f(/{{[\w\W]*|^[\w\W]*}}/g), Ee = f(/<%[\w\W]*|^[\w\W]*%>/g), De = f(/\${[\w\W]*/g), Oe = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), ke = f(/^aria-[\-\w]+$/), Ae = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), je = f(/^(?:\w+script|data):/i), Me = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ne = f(/^html$/i), Pe = f(/^[a-z][.\w]*(-[.\w]+)+$/i), j = {
205
+ ]), we = f(/{{[\w\W]*|^[\w\W]*}}/g), Te = f(/<%[\w\W]*|^[\w\W]*%>/g), Ee = f(/\${[\w\W]*/g), De = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), Oe = f(/^aria-[\-\w]+$/), ke = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ae = f(/^(?:\w+script|data):/i), je = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Me = f(/^html$/i), Ne = f(/^[a-z][.\w]*(-[.\w]+)+$/i), M = {
206
206
  element: 1,
207
207
  attribute: 2,
208
208
  text: 3,
@@ -215,9 +215,9 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
215
215
  documentType: 10,
216
216
  documentFragment: 11,
217
217
  notation: 12
218
- }, Fe = function() {
218
+ }, Pe = function() {
219
219
  return typeof window > "u" ? null : window;
220
- }, Ie = function(e, t) {
220
+ }, Fe = function(e, t) {
221
221
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
222
222
  let n = null, r = "data-tt-policy-suffix";
223
223
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -234,7 +234,7 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
234
234
  } catch {
235
235
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
236
236
  }
237
- }, Le = function() {
237
+ }, Ie = function() {
238
238
  return {
239
239
  afterSanitizeAttributes: [],
240
240
  afterSanitizeElements: [],
@@ -247,32 +247,32 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
247
247
  uponSanitizeShadowNode: []
248
248
  };
249
249
  };
250
- function Re() {
251
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Fe(), t = (e) => Re(e);
252
- if (t.version = "3.4.6", t.removed = [], !e || !e.document || e.document.nodeType !== j.document || !e.Element) return t.isSupported = !1, t;
250
+ function Le() {
251
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Pe(), t = (e) => Le(e);
252
+ if (t.version = "3.4.7", t.removed = [], !e || !e.document || e.document.nodeType !== M.document || !e.Element) return t.isSupported = !1, t;
253
253
  let n = e.document, r = n, i = r.currentScript;
254
254
  e.DocumentFragment;
255
255
  let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
256
256
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
257
- let u = e.DOMParser, f = e.trustedTypes, m = c.prototype, ee = A(m, "cloneNode"), te = A(m, "remove"), le = A(m, "nextSibling"), b = A(m, "childNodes"), x = A(m, "parentNode"), ue = A(m, "shadowRoot"), C = A(m, "attributes"), T = s && s.prototype ? A(s.prototype, "nodeType") : null, E = s && s.prototype ? A(s.prototype, "nodeName") : null;
257
+ let u = e.DOMParser, f = e.trustedTypes, m = c.prototype, ee = j(m, "cloneNode"), te = j(m, "remove"), le = j(m, "nextSibling"), b = j(m, "childNodes"), x = j(m, "parentNode"), S = j(m, "shadowRoot"), w = j(m, "attributes"), E = s && s.prototype ? j(s.prototype, "nodeType") : null, D = s && s.prototype ? j(s.prototype, "nodeName") : null;
258
258
  if (typeof a == "function") {
259
259
  let e = n.createElement("template");
260
260
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
261
261
  }
262
- let O, M = "", ze = n, Be = ze.implementation, Ve = ze.createNodeIterator, He = ze.createDocumentFragment, Ue = ze.getElementsByTagName, We = r.importNode, N = Le();
263
- t.isSupported = typeof o == "function" && typeof x == "function" && Be && Be.createHTMLDocument !== void 0;
264
- let Ge = Te, Ke = Ee, qe = De, Je = Oe, Ye = ke, Xe = je, Ze = Me, Qe = Pe, $e = Ae, P = null, et = D({}, [
262
+ let k, N = "", Re = n, ze = Re.implementation, Be = Re.createNodeIterator, Ve = Re.createDocumentFragment, He = Re.getElementsByTagName, Ue = r.importNode, P = Ie();
263
+ t.isSupported = typeof o == "function" && typeof x == "function" && ze && ze.createHTMLDocument !== void 0;
264
+ let We = we, Ge = Te, Ke = Ee, qe = De, Je = Oe, Ye = Ae, Xe = je, Ze = Ne, Qe = ke, F = null, $e = O({}, [
265
+ ...pe,
265
266
  ...me,
266
267
  ...he,
267
- ...ge,
268
- ...ve,
269
- ...be
270
- ]), F = null, tt = D({}, [
268
+ ..._e,
269
+ ...ye
270
+ ]), I = null, et = O({}, [
271
+ ...be,
271
272
  ...xe,
272
273
  ...Se,
273
- ...Ce,
274
- ...we
275
- ]), I = Object.seal(p(null, {
274
+ ...Ce
275
+ ]), L = Object.seal(p(null, {
276
276
  tagNameCheck: {
277
277
  writable: !0,
278
278
  configurable: !1,
@@ -291,7 +291,7 @@ function Re() {
291
291
  enumerable: !0,
292
292
  value: !1
293
293
  }
294
- })), L = null, nt = null, R = Object.seal(p(null, {
294
+ })), R = null, tt = null, z = Object.seal(p(null, {
295
295
  tagCheck: {
296
296
  writable: !0,
297
297
  configurable: !1,
@@ -304,7 +304,7 @@ function Re() {
304
304
  enumerable: !0,
305
305
  value: null
306
306
  }
307
- })), rt = !0, it = !0, at = !1, ot = !0, z = !1, B = !0, V = !1, st = !1, ct = !1, H = !1, lt = !1, ut = !1, dt = !0, ft = !1, pt = "user-content-", mt = !0, U = !1, W = {}, G = null, ht = D({}, [
307
+ })), nt = !0, rt = !0, it = !1, at = !0, B = !1, V = !0, H = !1, ot = !1, st = !1, U = !1, ct = !1, lt = !1, ut = !0, dt = !1, ft = "user-content-", pt = !0, mt = !1, W = {}, G = null, ht = O({}, [
308
308
  "annotation-xml",
309
309
  "audio",
310
310
  "colgroup",
@@ -330,14 +330,14 @@ function Re() {
330
330
  "title",
331
331
  "video",
332
332
  "xmp"
333
- ]), gt = null, _t = D({}, [
333
+ ]), gt = null, _t = O({}, [
334
334
  "audio",
335
335
  "video",
336
336
  "img",
337
337
  "source",
338
338
  "image",
339
339
  "track"
340
- ]), vt = null, yt = D({}, [
340
+ ]), vt = null, yt = O({}, [
341
341
  "alt",
342
342
  "class",
343
343
  "for",
@@ -352,65 +352,65 @@ function Re() {
352
352
  "value",
353
353
  "style",
354
354
  "xmlns"
355
- ]), bt = "http://www.w3.org/1998/Math/MathML", xt = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, St = !1, Ct = null, wt = D({}, [
355
+ ]), bt = "http://www.w3.org/1998/Math/MathML", xt = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, St = !1, Ct = null, wt = O({}, [
356
356
  bt,
357
357
  xt,
358
358
  K
359
- ], ae), Tt = D({}, [
359
+ ], ae), Tt = O({}, [
360
360
  "mi",
361
361
  "mo",
362
362
  "mn",
363
363
  "ms",
364
364
  "mtext"
365
- ]), Et = D({}, ["annotation-xml"]), Dt = D({}, [
365
+ ]), Et = O({}, ["annotation-xml"]), Dt = O({}, [
366
366
  "title",
367
367
  "style",
368
368
  "font",
369
369
  "a",
370
370
  "script"
371
- ]), J = null, Ot = ["application/xhtml+xml", "text/html"], Y = null, X = null, kt = n.createElement("form"), At = function(e) {
371
+ ]), Ot = null, kt = ["application/xhtml+xml", "text/html"], J = null, Y = null, At = n.createElement("form"), jt = function(e) {
372
372
  return e instanceof RegExp || e instanceof Function;
373
- }, jt = function() {
373
+ }, Mt = function() {
374
374
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
375
- if (X && X === e) return;
376
- (!e || typeof e != "object") && (e = {}), e = k(e), J = Ot.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = J === "application/xhtml+xml" ? ae : v, P = S(e, "ALLOWED_TAGS") && _(e.ALLOWED_TAGS) ? D({}, e.ALLOWED_TAGS, Y) : et, F = S(e, "ALLOWED_ATTR") && _(e.ALLOWED_ATTR) ? D({}, e.ALLOWED_ATTR, Y) : tt, Ct = S(e, "ALLOWED_NAMESPACES") && _(e.ALLOWED_NAMESPACES) ? D({}, e.ALLOWED_NAMESPACES, ae) : wt, vt = S(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) ? D(k(yt), e.ADD_URI_SAFE_ATTR, Y) : yt, gt = S(e, "ADD_DATA_URI_TAGS") && _(e.ADD_DATA_URI_TAGS) ? D(k(_t), e.ADD_DATA_URI_TAGS, Y) : _t, G = S(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) ? D({}, e.FORBID_CONTENTS, Y) : ht, L = S(e, "FORBID_TAGS") && _(e.FORBID_TAGS) ? D({}, e.FORBID_TAGS, Y) : k({}), nt = S(e, "FORBID_ATTR") && _(e.FORBID_ATTR) ? D({}, e.FORBID_ATTR, Y) : k({}), W = S(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? k(e.USE_PROFILES) : e.USE_PROFILES : !1, rt = e.ALLOW_ARIA_ATTR !== !1, it = e.ALLOW_DATA_ATTR !== !1, at = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ot = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, z = e.SAFE_FOR_TEMPLATES || !1, B = e.SAFE_FOR_XML !== !1, V = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, lt = e.RETURN_DOM_FRAGMENT || !1, ut = e.RETURN_TRUSTED_TYPE || !1, ct = e.FORCE_BODY || !1, dt = e.SANITIZE_DOM !== !1, ft = e.SANITIZE_NAMED_PROPS || !1, mt = e.KEEP_CONTENT !== !1, U = e.IN_PLACE || !1, $e = pe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ae, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Tt = S(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? k(e.MATHML_TEXT_INTEGRATION_POINTS) : D({}, [
375
+ if (Y && Y === e) return;
376
+ (!e || typeof e != "object") && (e = {}), e = A(e), Ot = kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Ot === "application/xhtml+xml" ? ae : v, F = C(e, "ALLOWED_TAGS") && _(e.ALLOWED_TAGS) ? O({}, e.ALLOWED_TAGS, J) : $e, I = C(e, "ALLOWED_ATTR") && _(e.ALLOWED_ATTR) ? O({}, e.ALLOWED_ATTR, J) : et, Ct = C(e, "ALLOWED_NAMESPACES") && _(e.ALLOWED_NAMESPACES) ? O({}, e.ALLOWED_NAMESPACES, ae) : wt, vt = C(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) ? O(A(yt), e.ADD_URI_SAFE_ATTR, J) : yt, gt = C(e, "ADD_DATA_URI_TAGS") && _(e.ADD_DATA_URI_TAGS) ? O(A(_t), e.ADD_DATA_URI_TAGS, J) : _t, G = C(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) ? O({}, e.FORBID_CONTENTS, J) : ht, R = C(e, "FORBID_TAGS") && _(e.FORBID_TAGS) ? O({}, e.FORBID_TAGS, J) : A({}), tt = C(e, "FORBID_ATTR") && _(e.FORBID_ATTR) ? O({}, e.FORBID_ATTR, J) : A({}), W = C(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? A(e.USE_PROFILES) : e.USE_PROFILES : !1, nt = e.ALLOW_ARIA_ATTR !== !1, rt = e.ALLOW_DATA_ATTR !== !1, it = e.ALLOW_UNKNOWN_PROTOCOLS || !1, at = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, V = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, U = e.RETURN_DOM || !1, ct = e.RETURN_DOM_FRAGMENT || !1, lt = e.RETURN_TRUSTED_TYPE || !1, st = e.FORCE_BODY || !1, ut = e.SANITIZE_DOM !== !1, dt = e.SANITIZE_NAMED_PROPS || !1, pt = e.KEEP_CONTENT !== !1, mt = e.IN_PLACE || !1, Qe = fe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : ke, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Tt = C(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? A(e.MATHML_TEXT_INTEGRATION_POINTS) : O({}, [
377
377
  "mi",
378
378
  "mo",
379
379
  "mn",
380
380
  "ms",
381
381
  "mtext"
382
- ]), Et = S(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? k(e.HTML_INTEGRATION_POINTS) : D({}, ["annotation-xml"]);
383
- let t = S(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? k(e.CUSTOM_ELEMENT_HANDLING) : p(null);
384
- if (I = p(null), S(t, "tagNameCheck") && At(t.tagNameCheck) && (I.tagNameCheck = t.tagNameCheck), S(t, "attributeNameCheck") && At(t.attributeNameCheck) && (I.attributeNameCheck = t.attributeNameCheck), S(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), z && (it = !1), lt && (H = !0), W && (P = D({}, be), F = p(null), W.html === !0 && (D(P, me), D(F, xe)), W.svg === !0 && (D(P, he), D(F, Se), D(F, we)), W.svgFilters === !0 && (D(P, ge), D(F, Se), D(F, we)), W.mathMl === !0 && (D(P, ve), D(F, Ce), D(F, we))), R.tagCheck = null, R.attributeCheck = null, S(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? R.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (P === et && (P = k(P)), D(P, e.ADD_TAGS, Y))), S(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? R.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (F === tt && (F = k(F)), D(F, e.ADD_ATTR, Y))), S(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) && D(vt, e.ADD_URI_SAFE_ATTR, Y), S(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) && (G === ht && (G = k(G)), D(G, e.FORBID_CONTENTS, Y)), S(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (G === ht && (G = k(G)), D(G, e.ADD_FORBID_CONTENTS, Y)), mt && (P["#text"] = !0), V && D(P, [
382
+ ]), Et = C(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? A(e.HTML_INTEGRATION_POINTS) : O({}, ["annotation-xml"]);
383
+ let t = C(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? A(e.CUSTOM_ELEMENT_HANDLING) : p(null);
384
+ if (L = p(null), C(t, "tagNameCheck") && jt(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), C(t, "attributeNameCheck") && jt(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), C(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), B && (rt = !1), ct && (U = !0), W && (F = O({}, ye), I = p(null), W.html === !0 && (O(F, pe), O(I, be)), W.svg === !0 && (O(F, me), O(I, xe), O(I, Ce)), W.svgFilters === !0 && (O(F, he), O(I, xe), O(I, Ce)), W.mathMl === !0 && (O(F, _e), O(I, Se), O(I, Ce))), z.tagCheck = null, z.attributeCheck = null, C(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (F === $e && (F = A(F)), O(F, e.ADD_TAGS, J))), C(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (I === et && (I = A(I)), O(I, e.ADD_ATTR, J))), C(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) && O(vt, e.ADD_URI_SAFE_ATTR, J), C(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) && (G === ht && (G = A(G)), O(G, e.FORBID_CONTENTS, J)), C(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (G === ht && (G = A(G)), O(G, e.ADD_FORBID_CONTENTS, J)), pt && (F["#text"] = !0), H && O(F, [
385
385
  "html",
386
386
  "head",
387
387
  "body"
388
- ]), P.table && (D(P, ["tbody"]), delete L.tbody), e.TRUSTED_TYPES_POLICY) {
389
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
390
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw de("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
391
- O = e.TRUSTED_TYPES_POLICY, M = O.createHTML("");
392
- } else O === void 0 && (O = Ie(f, i)), O !== null && typeof M == "string" && (M = O.createHTML(""));
393
- d && d(e), X = e;
394
- }, Mt = D({}, [
388
+ ]), F.table && (O(F, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
389
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw ue("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
390
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw ue("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
391
+ k = e.TRUSTED_TYPES_POLICY, N = k.createHTML("");
392
+ } else k === void 0 && (k = Fe(f, i)), k !== null && typeof N == "string" && (N = k.createHTML(""));
393
+ (P.uponSanitizeElement.length > 0 || P.uponSanitizeAttribute.length > 0) && F === $e && (F = A(F)), P.uponSanitizeAttribute.length > 0 && I === et && (I = A(I)), d && d(e), Y = e;
394
+ }, Nt = O({}, [
395
+ ...me,
395
396
  ...he,
396
- ...ge,
397
- ..._e
398
- ]), Nt = D({}, [...ve, ...ye]), Pt = function(e) {
397
+ ...ge
398
+ ]), Pt = O({}, [..._e, ...ve]), Ft = function(e) {
399
399
  let t = x(e);
400
400
  (!t || !t.tagName) && (t = {
401
401
  namespaceURI: q,
402
402
  tagName: "template"
403
403
  });
404
404
  let n = v(e.tagName), r = v(t.tagName);
405
- return Ct[e.namespaceURI] ? e.namespaceURI === xt ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === bt ? n === "svg" && (r === "annotation-xml" || Tt[r]) : !!Mt[n] : e.namespaceURI === bt ? t.namespaceURI === K ? n === "math" : t.namespaceURI === xt ? n === "math" && Et[r] : !!Nt[n] : e.namespaceURI === K ? t.namespaceURI === xt && !Et[r] || t.namespaceURI === bt && !Tt[r] ? !1 : !Nt[n] && (Dt[n] || !Mt[n]) : !!(J === "application/xhtml+xml" && Ct[e.namespaceURI]) : !1;
406
- }, Z = function(e) {
405
+ return Ct[e.namespaceURI] ? e.namespaceURI === xt ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === bt ? n === "svg" && (r === "annotation-xml" || Tt[r]) : !!Nt[n] : e.namespaceURI === bt ? t.namespaceURI === K ? n === "math" : t.namespaceURI === xt ? n === "math" && Et[r] : !!Pt[n] : e.namespaceURI === K ? t.namespaceURI === xt && !Et[r] || t.namespaceURI === bt && !Tt[r] ? !1 : !Pt[n] && (Dt[n] || !Nt[n]) : !!(Ot === "application/xhtml+xml" && Ct[e.namespaceURI]) : !1;
406
+ }, X = function(e) {
407
407
  g(t.removed, { element: e });
408
408
  try {
409
409
  x(e).removeChild(e);
410
410
  } catch {
411
411
  te(e);
412
412
  }
413
- }, Q = function(e, n) {
413
+ }, Z = function(e, n) {
414
414
  try {
415
415
  g(t.removed, {
416
416
  attribute: n.getAttributeNode(e),
@@ -422,82 +422,82 @@ function Re() {
422
422
  from: n
423
423
  });
424
424
  }
425
- if (n.removeAttribute(e), e === "is") if (H || lt) try {
426
- Z(n);
425
+ if (n.removeAttribute(e), e === "is") if (U || ct) try {
426
+ X(n);
427
427
  } catch {}
428
428
  else try {
429
429
  n.setAttribute(e, "");
430
430
  } catch {}
431
- }, Ft = function(e) {
431
+ }, It = function(e) {
432
432
  let t = null, r = null;
433
- if (ct) e = "<remove></remove>" + e;
433
+ if (st) e = "<remove></remove>" + e;
434
434
  else {
435
435
  let t = oe(e, /^[\r\n\t ]+/);
436
436
  r = t && t[0];
437
437
  }
438
- J === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
439
- let i = O ? O.createHTML(e) : e;
438
+ Ot === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
439
+ let i = k ? k.createHTML(e) : e;
440
440
  if (q === K) try {
441
- t = new u().parseFromString(i, J);
441
+ t = new u().parseFromString(i, Ot);
442
442
  } catch {}
443
443
  if (!t || !t.documentElement) {
444
- t = Be.createDocument(q, "template", null);
444
+ t = ze.createDocument(q, "template", null);
445
445
  try {
446
- t.documentElement.innerHTML = St ? M : i;
446
+ t.documentElement.innerHTML = St ? N : i;
447
447
  } catch {}
448
448
  }
449
449
  let a = t.body || t.documentElement;
450
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? Ue.call(t, V ? "html" : "body")[0] : V ? t.documentElement : a;
451
- }, It = function(e) {
452
- return Ve.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
450
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? He.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
453
451
  }, Lt = function(e) {
452
+ return Be.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
453
+ }, Rt = function(e) {
454
454
  e.normalize();
455
- let t = Ve.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
455
+ let t = Be.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
456
456
  for (; n;) {
457
457
  let e = n.data;
458
458
  h([
459
+ We,
459
460
  Ge,
460
- Ke,
461
- qe
461
+ Ke
462
462
  ], (t) => {
463
463
  e = y(e, t, " ");
464
464
  }), n.data = e, n = t.nextNode();
465
465
  }
466
- }, Rt = function(e) {
467
- let t = E ? E(e) : null;
468
- return typeof t != "string" || Y(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== C(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.childNodes !== b(e);
469
466
  }, zt = function(e) {
470
- if (!T || typeof e != "object" || !e) return !1;
467
+ let t = D ? D(e) : null;
468
+ return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== w(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== E(e) || e.childNodes !== b(e);
469
+ }, Bt = function(e) {
470
+ if (!E || typeof e != "object" || !e) return !1;
471
471
  try {
472
- return T(e) === j.documentFragment;
472
+ return E(e) === M.documentFragment;
473
473
  } catch {
474
474
  return !1;
475
475
  }
476
- }, Bt = function(e) {
477
- if (!T || typeof e != "object" || !e) return !1;
476
+ }, Vt = function(e) {
477
+ if (!E || typeof e != "object" || !e) return !1;
478
478
  try {
479
- return typeof T(e) == "number";
479
+ return typeof E(e) == "number";
480
480
  } catch {
481
481
  return !1;
482
482
  }
483
483
  };
484
- function $(e, n, r) {
484
+ function Q(e, n, r) {
485
485
  h(e, (e) => {
486
- e.call(t, n, r, X);
486
+ e.call(t, n, r, Y);
487
487
  });
488
488
  }
489
- let Vt = function(e) {
489
+ let Ht = function(e) {
490
490
  let n = null;
491
- if ($(N.beforeSanitizeElements, e, null), Rt(e)) return Z(e), !0;
492
- let r = Y(e.nodeName);
493
- if ($(N.uponSanitizeElement, e, {
491
+ if (Q(P.beforeSanitizeElements, e, null), zt(e)) return X(e), !0;
492
+ let r = J(e.nodeName);
493
+ if (Q(P.uponSanitizeElement, e, {
494
494
  tagName: r,
495
- allowedTags: P
496
- }), B && e.hasChildNodes() && !Bt(e.firstElementChild) && w(/<[/\w!]/g, e.innerHTML) && w(/<[/\w!]/g, e.textContent) || B && e.namespaceURI === K && r === "style" && Bt(e.firstElementChild) || e.nodeType === j.progressingInstruction || B && e.nodeType === j.comment && w(/<[/\w]/g, e.data)) return Z(e), !0;
497
- if (L[r] || !(R.tagCheck instanceof Function && R.tagCheck(r)) && !P[r]) {
498
- if (!L[r] && Wt(r) && (I.tagNameCheck instanceof RegExp && w(I.tagNameCheck, r) || I.tagNameCheck instanceof Function && I.tagNameCheck(r))) return !1;
499
- if (mt && !G[r]) {
500
- let t = x(e) || e.parentNode, n = b(e) || e.childNodes;
495
+ allowedTags: F
496
+ }), V && e.hasChildNodes() && !Vt(e.firstElementChild) && T(/<[/\w!]/g, e.innerHTML) && T(/<[/\w!]/g, e.textContent) || V && e.namespaceURI === K && r === "style" && Vt(e.firstElementChild) || e.nodeType === M.progressingInstruction || V && e.nodeType === M.comment && T(/<[/\w]/g, e.data)) return X(e), !0;
497
+ if (R[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !F[r]) {
498
+ if (!R[r] && Gt(r) && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r))) return !1;
499
+ if (pt && !G[r]) {
500
+ let t = x(e), n = b(e);
501
501
  if (n && t) {
502
502
  let r = n.length;
503
503
  for (let i = r - 1; i >= 0; --i) {
@@ -506,25 +506,25 @@ function Re() {
506
506
  }
507
507
  }
508
508
  }
509
- return Z(e), !0;
509
+ return X(e), !0;
510
510
  }
511
- return (T ? T(e) : e.nodeType) === j.element && !Pt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && w(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Z(e), !0) : (z && e.nodeType === j.text && (n = e.textContent, h([
511
+ return (E ? E(e) : e.nodeType) === M.element && !Ft(e) || (r === "noscript" || r === "noembed" || r === "noframes") && T(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (B && e.nodeType === M.text && (n = e.textContent, h([
512
+ We,
512
513
  Ge,
513
- Ke,
514
- qe
514
+ Ke
515
515
  ], (e) => {
516
516
  n = y(n, e, " ");
517
- }), e.textContent !== n && (g(t.removed, { element: e.cloneNode() }), e.textContent = n)), $(N.afterSanitizeElements, e, null), !1);
518
- }, Ht = function(e, t, r) {
519
- if (nt[t] || dt && (t === "id" || t === "name") && (r in n || r in kt)) return !1;
520
- let i = F[t] || R.attributeCheck instanceof Function && R.attributeCheck(t, e);
521
- if (!(it && !nt[t] && w(Je, t)) && !(rt && w(Ye, t))) {
522
- if (!i || nt[t]) {
523
- if (!(Wt(e) && (I.tagNameCheck instanceof RegExp && w(I.tagNameCheck, e) || I.tagNameCheck instanceof Function && I.tagNameCheck(e)) && (I.attributeNameCheck instanceof RegExp && w(I.attributeNameCheck, t) || I.attributeNameCheck instanceof Function && I.attributeNameCheck(t, e)) || t === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && w(I.tagNameCheck, r) || I.tagNameCheck instanceof Function && I.tagNameCheck(r)))) return !1;
524
- } else if (!vt[t] && !w($e, y(r, Ze, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && se(r, "data:") === 0 && gt[e]) && !(at && !w(Xe, y(r, Ze, ""))) && r) return !1;
517
+ }), e.textContent !== n && (g(t.removed, { element: e.cloneNode() }), e.textContent = n)), Q(P.afterSanitizeElements, e, null), !1);
518
+ }, Ut = function(e, t, r) {
519
+ if (tt[t] || ut && (t === "id" || t === "name") && (r in n || r in At)) return !1;
520
+ let i = I[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
521
+ if (!(rt && !tt[t] && T(qe, t)) && !(nt && T(Je, t))) {
522
+ if (!i || tt[t]) {
523
+ if (!(Gt(e) && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, e) || L.tagNameCheck instanceof Function && L.tagNameCheck(e)) && (L.attributeNameCheck instanceof RegExp && T(L.attributeNameCheck, t) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(t, e)) || t === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r)))) return !1;
524
+ } else if (!vt[t] && !T(Qe, y(r, Xe, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && se(r, "data:") === 0 && gt[e]) && !(it && !T(Ye, y(r, Xe, ""))) && r) return !1;
525
525
  }
526
526
  return !0;
527
- }, Ut = D({}, [
527
+ }, Wt = O({}, [
528
528
  "annotation-xml",
529
529
  "color-profile",
530
530
  "font-face",
@@ -533,138 +533,149 @@ function Re() {
533
533
  "font-face-src",
534
534
  "font-face-uri",
535
535
  "missing-glyph"
536
- ]), Wt = function(e) {
537
- return !Ut[v(e)] && w(Qe, e);
538
- }, Gt = function(e) {
539
- $(N.beforeSanitizeAttributes, e, null);
536
+ ]), Gt = function(e) {
537
+ return !Wt[v(e)] && T(Ze, e);
538
+ }, Kt = function(e) {
539
+ Q(P.beforeSanitizeAttributes, e, null);
540
540
  let n = e.attributes;
541
- if (!n || Rt(e)) return;
541
+ if (!n || zt(e)) return;
542
542
  let r = {
543
543
  attrName: "",
544
544
  attrValue: "",
545
545
  keepAttr: !0,
546
- allowedAttributes: F,
546
+ allowedAttributes: I,
547
547
  forceKeepAttr: void 0
548
548
  }, i = n.length;
549
549
  for (; i--;) {
550
- let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l = Y(o), u = c, d = o === "value" ? u : ce(u);
551
- if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, $(N.uponSanitizeAttribute, e, r), d = r.attrValue, ft && (l === "id" || l === "name") && se(d, pt) !== 0 && (Q(o, e), d = pt + d), B && w(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
552
- Q(o, e);
550
+ let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : ce(u);
551
+ if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, Q(P.uponSanitizeAttribute, e, r), d = r.attrValue, dt && (l === "id" || l === "name") && se(d, ft) !== 0 && (Z(o, e), d = ft + d), V && T(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
552
+ Z(o, e);
553
553
  continue;
554
554
  }
555
555
  if (l === "attributename" && oe(d, "href")) {
556
- Q(o, e);
556
+ Z(o, e);
557
557
  continue;
558
558
  }
559
559
  if (r.forceKeepAttr) continue;
560
560
  if (!r.keepAttr) {
561
- Q(o, e);
561
+ Z(o, e);
562
562
  continue;
563
563
  }
564
- if (!ot && w(/\/>/i, d)) {
565
- Q(o, e);
564
+ if (!at && T(/\/>/i, d)) {
565
+ Z(o, e);
566
566
  continue;
567
567
  }
568
- z && h([
568
+ B && h([
569
+ We,
569
570
  Ge,
570
- Ke,
571
- qe
571
+ Ke
572
572
  ], (e) => {
573
573
  d = y(d, e, " ");
574
574
  });
575
- let p = Y(e.nodeName);
576
- if (!Ht(p, l, d)) {
577
- Q(o, e);
575
+ let p = J(e.nodeName);
576
+ if (!Ut(p, l, d)) {
577
+ Z(o, e);
578
578
  continue;
579
579
  }
580
- if (O && typeof f == "object" && typeof f.getAttributeType == "function" && !s) switch (f.getAttributeType(p, l)) {
580
+ if (k && typeof f == "object" && typeof f.getAttributeType == "function" && !s) switch (f.getAttributeType(p, l)) {
581
581
  case "TrustedHTML":
582
- d = O.createHTML(d);
582
+ d = k.createHTML(d);
583
583
  break;
584
584
  case "TrustedScriptURL":
585
- d = O.createScriptURL(d);
585
+ d = k.createScriptURL(d);
586
586
  break;
587
587
  }
588
588
  if (d !== u) try {
589
- s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), Rt(e) ? Z(e) : re(t.removed);
589
+ s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), zt(e) ? X(e) : re(t.removed);
590
590
  } catch {
591
- Q(o, e);
591
+ Z(o, e);
592
592
  }
593
593
  }
594
- $(N.afterSanitizeAttributes, e, null);
595
- }, Kt = function(e) {
596
- let t = null, n = It(e);
597
- for ($(N.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) $(N.uponSanitizeShadowNode, t, null), Vt(t), Gt(t), zt(t.content) && Kt(t.content);
598
- $(N.afterSanitizeShadowDOM, e, null);
594
+ Q(P.afterSanitizeAttributes, e, null);
599
595
  }, qt = function(e) {
600
- if ((T ? T(e) : e.nodeType) === j.element) {
601
- let t = ue ? ue(e) : e.shadowRoot;
602
- zt(t) && (qt(t), Kt(t));
596
+ let t = null, n = Lt(e);
597
+ for (Q(P.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(P.uponSanitizeShadowNode, t, null), Ht(t), Kt(t), Bt(t.content) && qt(t.content), (E ? E(t) : t.nodeType) === M.element) {
598
+ let e = S ? S(t) : t.shadowRoot;
599
+ Bt(e) && ($(e), qt(e));
600
+ }
601
+ Q(P.afterSanitizeShadowDOM, e, null);
602
+ }, $ = function(e) {
603
+ let t = E ? E(e) : e.nodeType;
604
+ if (t === M.element) {
605
+ let t = S ? S(e) : e.shadowRoot;
606
+ Bt(t) && ($(t), qt(t));
603
607
  }
604
- let t = b ? b(e) : e.childNodes;
605
- if (!t) return;
606
- let n = [];
607
- h(t, (e) => {
608
- g(n, e);
608
+ let n = b ? b(e) : e.childNodes;
609
+ if (!n) return;
610
+ let r = [];
611
+ h(n, (e) => {
612
+ g(r, e);
609
613
  });
610
- for (let e of n) qt(e);
614
+ for (let e of r) $(e);
615
+ if (t === M.element) {
616
+ let t = D ? D(e) : null;
617
+ if (typeof t == "string" && J(t) === "template") {
618
+ let t = e.content;
619
+ Bt(t) && $(t);
620
+ }
621
+ }
611
622
  };
612
623
  return t.sanitize = function(e) {
613
624
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
614
- if (St = !e, St && (e = "<!-->"), typeof e != "string" && !Bt(e) && (e = fe(e), typeof e != "string")) throw de("dirty is not a string, aborting");
625
+ if (St = !e, St && (e = "<!-->"), typeof e != "string" && !Vt(e) && (e = de(e), typeof e != "string")) throw ue("dirty is not a string, aborting");
615
626
  if (!t.isSupported) return e;
616
- if (st || jt(n), t.removed = [], typeof e == "string" && (U = !1), U) {
617
- let t = E ? E(e) : e.nodeName;
627
+ if (ot || Mt(n), t.removed = [], typeof e == "string" && (mt = !1), mt) {
628
+ let t = D ? D(e) : e.nodeName;
618
629
  if (typeof t == "string") {
619
- let e = Y(t);
620
- if (!P[e] || L[e]) throw de("root node is forbidden and cannot be sanitized in-place");
630
+ let e = J(t);
631
+ if (!F[e] || R[e]) throw ue("root node is forbidden and cannot be sanitized in-place");
621
632
  }
622
- if (Rt(e)) throw de("root node is clobbered and cannot be sanitized in-place");
623
- qt(e);
624
- } else if (Bt(e)) i = Ft("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === j.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), qt(a);
633
+ if (zt(e)) throw ue("root node is clobbered and cannot be sanitized in-place");
634
+ $(e);
635
+ } else if (Vt(e)) i = It("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === M.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), $(a);
625
636
  else {
626
- if (!H && !z && !V && e.indexOf("<") === -1) return O && ut ? O.createHTML(e) : e;
627
- if (i = Ft(e), !i) return H ? null : ut ? M : "";
637
+ if (!U && !B && !H && e.indexOf("<") === -1) return k && lt ? k.createHTML(e) : e;
638
+ if (i = It(e), !i) return U ? null : lt ? N : "";
628
639
  }
629
- i && ct && Z(i.firstChild);
630
- let c = It(U ? e : i);
631
- for (; o = c.nextNode();) Vt(o), Gt(o), zt(o.content) && Kt(o.content);
632
- if (U) return z && Lt(e), e;
633
- if (H) {
634
- if (z && Lt(i), lt) for (s = He.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
640
+ i && st && X(i.firstChild);
641
+ let c = Lt(mt ? e : i);
642
+ for (; o = c.nextNode();) Ht(o), Kt(o), Bt(o.content) && qt(o.content);
643
+ if (mt) return B && Rt(e), e;
644
+ if (U) {
645
+ if (B && Rt(i), ct) for (s = Ve.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
635
646
  else s = i;
636
- return (F.shadowroot || F.shadowrootmode) && (s = We.call(r, s, !0)), s;
647
+ return (I.shadowroot || I.shadowrootmode) && (s = Ue.call(r, s, !0)), s;
637
648
  }
638
- let l = V ? i.outerHTML : i.innerHTML;
639
- return V && P["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && w(Ne, i.ownerDocument.doctype.name) && (l = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + l), z && h([
649
+ let l = H ? i.outerHTML : i.innerHTML;
650
+ return H && F["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && T(Me, i.ownerDocument.doctype.name) && (l = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + l), B && h([
651
+ We,
640
652
  Ge,
641
- Ke,
642
- qe
653
+ Ke
643
654
  ], (e) => {
644
655
  l = y(l, e, " ");
645
- }), O && ut ? O.createHTML(l) : l;
656
+ }), k && lt ? k.createHTML(l) : l;
646
657
  }, t.setConfig = function() {
647
- jt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), st = !0;
658
+ Mt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), ot = !0;
648
659
  }, t.clearConfig = function() {
649
- X = null, st = !1;
660
+ Y = null, ot = !1;
650
661
  }, t.isValidAttribute = function(e, t, n) {
651
- return X || jt({}), Ht(Y(e), Y(t), n);
662
+ return Y || Mt({}), Ut(J(e), J(t), n);
652
663
  }, t.addHook = function(e, t) {
653
- typeof t == "function" && g(N[e], t);
664
+ typeof t == "function" && g(P[e], t);
654
665
  }, t.removeHook = function(e, t) {
655
666
  if (t !== void 0) {
656
- let n = ne(N[e], t);
657
- return n === -1 ? void 0 : ie(N[e], n, 1)[0];
667
+ let n = ne(P[e], t);
668
+ return n === -1 ? void 0 : ie(P[e], n, 1)[0];
658
669
  }
659
- return re(N[e]);
670
+ return re(P[e]);
660
671
  }, t.removeHooks = function(e) {
661
- N[e] = [];
672
+ P[e] = [];
662
673
  }, t.removeAllHooks = function() {
663
- N = Le();
674
+ P = Ie();
664
675
  }, t;
665
676
  }
666
- var M = Re();
677
+ var N = Le();
667
678
  //#endregion
668
- export { M as purify };
679
+ export { N as purify };
669
680
 
670
681
  //# sourceMappingURL=purify.es.js.map