@plumile/ui 0.1.183 → 0.1.185
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.
- package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +2 -0
- package/lib/esm/admin/theme/adminDensity.css.js +0 -2
- package/lib/esm/atomic/molecules/markdown/components/MarkdownDelete.css.js +0 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownInlineCode.css.js +1 -0
- package/lib/esm/node_modules/dompurify/dist/purify.es.js +255 -267
- package/lib/esm/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/_internal/globalThis.js +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/_internal/globalThis.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/function/memoize.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/clone.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/cloneDeep.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/merge.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/mergeWith.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArguments.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArray.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/function/noop.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/object/clone.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/object/cloneDeepWith.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isBuffer.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isLength.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isPrimitive.js.map +1 -1
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isTypedArray.js.map +1 -1
- package/package.json +3 -3
|
@@ -38,31 +38,31 @@ function a(t, n) {
|
|
|
38
38
|
return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? e(t, n) : void 0;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
var o = Object.entries, s = Object.setPrototypeOf, c = Object.isFrozen, l = Object.getPrototypeOf, u = Object.getOwnPropertyDescriptor, d = Object.freeze, f = Object.seal, p = Object.create, m = typeof Reflect < "u" && Reflect,
|
|
41
|
+
var o = Object.entries, s = Object.setPrototypeOf, c = Object.isFrozen, l = Object.getPrototypeOf, u = Object.getOwnPropertyDescriptor, d = Object.freeze, f = Object.seal, p = Object.create, m = typeof Reflect < "u" && Reflect, h = m.apply, ee = m.construct;
|
|
42
42
|
d ||= function(e) {
|
|
43
43
|
return e;
|
|
44
44
|
}, f ||= function(e) {
|
|
45
45
|
return e;
|
|
46
|
-
},
|
|
46
|
+
}, h ||= function(e, t) {
|
|
47
47
|
var n = [...arguments].slice(2);
|
|
48
48
|
return e.apply(t, n);
|
|
49
|
-
},
|
|
49
|
+
}, ee ||= function(e) {
|
|
50
50
|
return new e(...[...arguments].slice(1));
|
|
51
51
|
};
|
|
52
|
-
var
|
|
53
|
-
function
|
|
52
|
+
var te = w(Array.prototype.forEach), ne = w(Array.prototype.lastIndexOf), re = w(Array.prototype.pop), g = w(Array.prototype.push), ie = w(Array.prototype.splice), _ = Array.isArray, ae = w(String.prototype.toLowerCase), oe = w(String.prototype.toString), se = w(String.prototype.match), ce = w(String.prototype.replace), le = w(String.prototype.indexOf), ue = w(String.prototype.trim), de = w(Number.prototype.toString), fe = w(Boolean.prototype.toString), v = typeof BigInt > "u" ? null : w(BigInt.prototype.toString), y = typeof Symbol > "u" ? null : w(Symbol.prototype.toString), b = w(Object.prototype.hasOwnProperty), x = w(Object.prototype.toString), S = w(RegExp.prototype.test), C = T(TypeError);
|
|
53
|
+
function w(e) {
|
|
54
54
|
return function(t) {
|
|
55
55
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
56
56
|
var n = [...arguments].slice(1);
|
|
57
|
-
return
|
|
57
|
+
return h(e, t, n);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function T(e) {
|
|
61
61
|
return function() {
|
|
62
|
-
return
|
|
62
|
+
return ee(e, [...arguments]);
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function E(e, t) {
|
|
66
66
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ae;
|
|
67
67
|
if (s && s(e, null), !_(t)) return e;
|
|
68
68
|
let r = t.length;
|
|
@@ -76,46 +76,46 @@ function O(e, t) {
|
|
|
76
76
|
}
|
|
77
77
|
return e;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
for (let t = 0; t < e.length; t++)
|
|
79
|
+
function D(e) {
|
|
80
|
+
for (let t = 0; t < e.length; t++) b(e, t) || (e[t] = null);
|
|
81
81
|
return e;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function O(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
|
-
|
|
88
|
+
b(e, a) && (_(o) ? t[a] = D(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = O(o) : t[a] = o);
|
|
89
89
|
}
|
|
90
90
|
return t;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function pe(e) {
|
|
93
93
|
switch (typeof e) {
|
|
94
94
|
case "string": return e;
|
|
95
|
-
case "number": return
|
|
96
|
-
case "boolean": return
|
|
97
|
-
case "bigint": return
|
|
98
|
-
case "symbol": return
|
|
99
|
-
case "undefined": return
|
|
95
|
+
case "number": return de(e);
|
|
96
|
+
case "boolean": return fe(e);
|
|
97
|
+
case "bigint": return v ? v(e) : "0";
|
|
98
|
+
case "symbol": return y ? y(e) : "Symbol()";
|
|
99
|
+
case "undefined": return x(e);
|
|
100
100
|
case "function":
|
|
101
101
|
case "object": {
|
|
102
|
-
if (e === null) return
|
|
103
|
-
let t = e, n =
|
|
102
|
+
if (e === null) return x(e);
|
|
103
|
+
let t = e, n = k(t, "toString");
|
|
104
104
|
if (typeof n == "function") {
|
|
105
105
|
let e = n(t);
|
|
106
|
-
return typeof e == "string" ? e :
|
|
106
|
+
return typeof e == "string" ? e : x(e);
|
|
107
107
|
}
|
|
108
|
-
return
|
|
108
|
+
return x(e);
|
|
109
109
|
}
|
|
110
|
-
default: return
|
|
110
|
+
default: return x(e);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function k(e, t) {
|
|
114
114
|
for (; e !== null;) {
|
|
115
115
|
let n = u(e, t);
|
|
116
116
|
if (n) {
|
|
117
|
-
if (n.get) return
|
|
118
|
-
if (typeof n.value == "function") return
|
|
117
|
+
if (n.get) return w(n.get);
|
|
118
|
+
if (typeof n.value == "function") return w(n.value);
|
|
119
119
|
}
|
|
120
120
|
e = l(e);
|
|
121
121
|
}
|
|
@@ -124,14 +124,14 @@ function j(e, t) {
|
|
|
124
124
|
}
|
|
125
125
|
return n;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function me(e) {
|
|
128
128
|
try {
|
|
129
|
-
return
|
|
129
|
+
return S(e, ""), !0;
|
|
130
130
|
} catch {
|
|
131
131
|
return !1;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var he = 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(".")), ge = 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(".")), _e = d([
|
|
135
135
|
"feBlend",
|
|
136
136
|
"feColorMatrix",
|
|
137
137
|
"feComponentTransfer",
|
|
@@ -157,7 +157,7 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
157
157
|
"feSpotLight",
|
|
158
158
|
"feTile",
|
|
159
159
|
"feTurbulence"
|
|
160
|
-
]),
|
|
160
|
+
]), ve = d([
|
|
161
161
|
"animate",
|
|
162
162
|
"color-profile",
|
|
163
163
|
"cursor",
|
|
@@ -180,7 +180,7 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
180
180
|
"solidcolor",
|
|
181
181
|
"unknown",
|
|
182
182
|
"use"
|
|
183
|
-
]),
|
|
183
|
+
]), ye = 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(".")), be = d([
|
|
184
184
|
"maction",
|
|
185
185
|
"maligngroup",
|
|
186
186
|
"malignmark",
|
|
@@ -196,28 +196,28 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
196
196
|
"annotation-xml",
|
|
197
197
|
"mprescripts",
|
|
198
198
|
"none"
|
|
199
|
-
]),
|
|
199
|
+
]), xe = d(["#text"]), Se = 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(".")), Ce = 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(".")), we = 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(".")), Te = d([
|
|
200
200
|
"xlink:href",
|
|
201
201
|
"xml:id",
|
|
202
202
|
"xlink:title",
|
|
203
203
|
"xml:space",
|
|
204
204
|
"xmlns:xlink"
|
|
205
|
-
]),
|
|
205
|
+
]), Ee = f(/{{[\w\W]*|^[\w\W]*}}/g), De = f(/<%[\w\W]*|^[\w\W]*%>/g), Oe = f(/\${[\w\W]*/g), ke = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ae = f(/^aria-[\-\w]+$/), je = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Me = f(/^(?:\w+script|data):/i), Ne = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Pe = f(/^html$/i), Fe = f(/^[a-z][.\w]*(-[.\w]+)+$/i), Ie = f(/<[/\w!]/g), Le = f(/<[/\w]/g), Re = f(/<\/no(script|embed|frames)/i), ze = f(/\/>/i), A = {
|
|
206
206
|
element: 1,
|
|
207
207
|
attribute: 2,
|
|
208
208
|
text: 3,
|
|
209
209
|
cdataSection: 4,
|
|
210
210
|
entityReference: 5,
|
|
211
211
|
entityNode: 6,
|
|
212
|
-
|
|
212
|
+
processingInstruction: 7,
|
|
213
213
|
comment: 8,
|
|
214
214
|
document: 9,
|
|
215
215
|
documentType: 10,
|
|
216
216
|
documentFragment: 11,
|
|
217
217
|
notation: 12
|
|
218
|
-
},
|
|
218
|
+
}, Be = function() {
|
|
219
219
|
return typeof window > "u" ? null : window;
|
|
220
|
-
},
|
|
220
|
+
}, Ve = 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 pe = 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
|
-
},
|
|
237
|
+
}, He = function() {
|
|
238
238
|
return {
|
|
239
239
|
afterSanitizeAttributes: [],
|
|
240
240
|
afterSanitizeElements: [],
|
|
@@ -246,50 +246,52 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
246
246
|
uponSanitizeElement: [],
|
|
247
247
|
uponSanitizeShadowNode: []
|
|
248
248
|
};
|
|
249
|
+
}, j = function(e, t, n, r) {
|
|
250
|
+
return b(e, t) && _(e[t]) ? E(r.base ? O(r.base) : {}, e[t], r.transform) : n;
|
|
249
251
|
};
|
|
250
|
-
function
|
|
251
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
252
|
-
if (t.version = "3.4.
|
|
252
|
+
function Ue() {
|
|
253
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Be(), t = (e) => Ue(e);
|
|
254
|
+
if (t.version = "3.4.10", t.removed = [], !e || !e.document || e.document.nodeType !== A.document || !e.Element) return t.isSupported = !1, t;
|
|
253
255
|
let n = e.document, r = n, i = r.currentScript;
|
|
254
256
|
e.DocumentFragment;
|
|
255
257
|
let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
|
|
256
258
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
257
|
-
let u = e.DOMParser,
|
|
259
|
+
let u = e.DOMParser, m = e.trustedTypes, h = c.prototype, ee = k(h, "cloneNode"), de = k(h, "remove"), fe = k(h, "nextSibling"), v = k(h, "childNodes"), y = k(h, "parentNode"), x = k(h, "shadowRoot"), w = k(h, "attributes"), T = s && s.prototype ? k(s.prototype, "nodeType") : null, D = s && s.prototype ? k(s.prototype, "nodeName") : null;
|
|
258
260
|
if (typeof a == "function") {
|
|
259
261
|
let e = n.createElement("template");
|
|
260
262
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
261
263
|
}
|
|
262
|
-
let
|
|
263
|
-
if (
|
|
264
|
+
let M, N = "", We, Ge = !1, Ke = 0, qe = function() {
|
|
265
|
+
if (Ke > 0) throw C("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
264
266
|
}, P = function(e) {
|
|
265
|
-
|
|
267
|
+
qe(), Ke++;
|
|
266
268
|
try {
|
|
267
|
-
return
|
|
269
|
+
return M.createHTML(e);
|
|
268
270
|
} finally {
|
|
269
|
-
|
|
271
|
+
Ke--;
|
|
270
272
|
}
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
+
}, Je = function(e) {
|
|
274
|
+
qe(), Ke++;
|
|
273
275
|
try {
|
|
274
|
-
return
|
|
276
|
+
return M.createScriptURL(e);
|
|
275
277
|
} finally {
|
|
276
|
-
|
|
278
|
+
Ke--;
|
|
277
279
|
}
|
|
278
|
-
},
|
|
279
|
-
return
|
|
280
|
-
},
|
|
281
|
-
t.isSupported = typeof o == "function" && typeof
|
|
282
|
-
let
|
|
283
|
-
...pe,
|
|
284
|
-
...me,
|
|
280
|
+
}, Ye = function() {
|
|
281
|
+
return Ge ||= (We = Ve(m, i), !0), We;
|
|
282
|
+
}, Xe = n, Ze = Xe.implementation, Qe = Xe.createNodeIterator, $e = Xe.createDocumentFragment, et = Xe.getElementsByTagName, tt = r.importNode, F = He();
|
|
283
|
+
t.isSupported = typeof o == "function" && typeof y == "function" && Ze && Ze.createHTMLDocument !== void 0;
|
|
284
|
+
let nt = Ee, rt = De, it = Oe, at = ke, ot = Ae, st = Me, ct = Ne, lt = Fe, ut = je, I = null, dt = E({}, [
|
|
285
285
|
...he,
|
|
286
|
+
...ge,
|
|
286
287
|
..._e,
|
|
287
|
-
...ye
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
...xe,
|
|
288
|
+
...ye,
|
|
289
|
+
...xe
|
|
290
|
+
]), L = null, ft = E({}, [
|
|
291
291
|
...Se,
|
|
292
|
-
...Ce
|
|
292
|
+
...Ce,
|
|
293
|
+
...we,
|
|
294
|
+
...Te
|
|
293
295
|
]), R = Object.seal(p(null, {
|
|
294
296
|
tagNameCheck: {
|
|
295
297
|
writable: !0,
|
|
@@ -309,7 +311,7 @@ function Le() {
|
|
|
309
311
|
enumerable: !0,
|
|
310
312
|
value: !1
|
|
311
313
|
}
|
|
312
|
-
})),
|
|
314
|
+
})), pt = null, mt = null, z = Object.seal(p(null, {
|
|
313
315
|
tagCheck: {
|
|
314
316
|
writable: !0,
|
|
315
317
|
configurable: !1,
|
|
@@ -322,14 +324,14 @@ function Le() {
|
|
|
322
324
|
enumerable: !0,
|
|
323
325
|
value: null
|
|
324
326
|
}
|
|
325
|
-
})),
|
|
327
|
+
})), ht = !0, gt = !0, _t = !1, vt = !0, B = !1, yt = !0, V = !1, bt = !1, xt = !1, H = !1, St = !1, Ct = !1, wt = !0, Tt = !1, Et = "user-content-", Dt = !0, Ot = !1, U = {}, W = null, kt = E({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), At = null, jt = E({}, [
|
|
326
328
|
"audio",
|
|
327
329
|
"video",
|
|
328
330
|
"img",
|
|
329
331
|
"source",
|
|
330
332
|
"image",
|
|
331
333
|
"track"
|
|
332
|
-
]),
|
|
334
|
+
]), Mt = null, Nt = E({}, [
|
|
333
335
|
"alt",
|
|
334
336
|
"class",
|
|
335
337
|
"for",
|
|
@@ -344,83 +346,89 @@ function Le() {
|
|
|
344
346
|
"value",
|
|
345
347
|
"style",
|
|
346
348
|
"xmlns"
|
|
347
|
-
]),
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
], oe),
|
|
349
|
+
]), Pt = "http://www.w3.org/1998/Math/MathML", Ft = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", K = G, It = !1, Lt = null, Rt = E({}, [
|
|
350
|
+
Pt,
|
|
351
|
+
Ft,
|
|
352
|
+
G
|
|
353
|
+
], oe), zt = d([
|
|
352
354
|
"mi",
|
|
353
355
|
"mo",
|
|
354
356
|
"mn",
|
|
355
357
|
"ms",
|
|
356
358
|
"mtext"
|
|
357
|
-
]),
|
|
359
|
+
]), Bt = E({}, zt), Vt = d(["annotation-xml"]), Ht = E({}, Vt), Ut = E({}, [
|
|
358
360
|
"title",
|
|
359
361
|
"style",
|
|
360
362
|
"font",
|
|
361
363
|
"a",
|
|
362
364
|
"script"
|
|
363
|
-
]),
|
|
365
|
+
]), q = null, Wt = ["application/xhtml+xml", "text/html"], J = null, Y = null, Gt = n.createElement("form"), Kt = function(e) {
|
|
364
366
|
return e instanceof RegExp || e instanceof Function;
|
|
365
|
-
},
|
|
367
|
+
}, qt = function() {
|
|
366
368
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
367
369
|
if (Y && Y === e) return;
|
|
368
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
let t =
|
|
376
|
-
if (R = p(null),
|
|
370
|
+
(!e || typeof e != "object") && (e = {}), e = O(e), q = Wt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = q === "application/xhtml+xml" ? oe : ae, I = j(e, "ALLOWED_TAGS", dt, { transform: J }), L = j(e, "ALLOWED_ATTR", ft, { transform: J }), Lt = j(e, "ALLOWED_NAMESPACES", Rt, { transform: oe }), Mt = j(e, "ADD_URI_SAFE_ATTR", Nt, {
|
|
371
|
+
transform: J,
|
|
372
|
+
base: Nt
|
|
373
|
+
}), At = j(e, "ADD_DATA_URI_TAGS", jt, {
|
|
374
|
+
transform: J,
|
|
375
|
+
base: jt
|
|
376
|
+
}), W = j(e, "FORBID_CONTENTS", kt, { transform: J }), pt = j(e, "FORBID_TAGS", O({}), { transform: J }), mt = j(e, "FORBID_ATTR", O({}), { transform: J }), U = b(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? O(e.USE_PROFILES) : e.USE_PROFILES : !1, ht = e.ALLOW_ARIA_ATTR !== !1, gt = e.ALLOW_DATA_ATTR !== !1, _t = e.ALLOW_UNKNOWN_PROTOCOLS || !1, vt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, yt = e.SAFE_FOR_XML !== !1, V = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, St = e.RETURN_DOM_FRAGMENT || !1, Ct = e.RETURN_TRUSTED_TYPE || !1, xt = e.FORCE_BODY || !1, wt = e.SANITIZE_DOM !== !1, Tt = e.SANITIZE_NAMED_PROPS || !1, Dt = e.KEEP_CONTENT !== !1, Ot = e.IN_PLACE || !1, ut = me(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : je, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, Bt = b(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? O(e.MATHML_TEXT_INTEGRATION_POINTS) : E({}, zt), Ht = b(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? O(e.HTML_INTEGRATION_POINTS) : E({}, Vt);
|
|
377
|
+
let t = b(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? O(e.CUSTOM_ELEMENT_HANDLING) : p(null);
|
|
378
|
+
if (R = p(null), b(t, "tagNameCheck") && Kt(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), b(t, "attributeNameCheck") && Kt(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), b(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(R), B && (gt = !1), St && (H = !0), U && (I = E({}, xe), L = p(null), U.html === !0 && (E(I, he), E(L, Se)), U.svg === !0 && (E(I, ge), E(L, Ce), E(L, Te)), U.svgFilters === !0 && (E(I, _e), E(L, Ce), E(L, Te)), U.mathMl === !0 && (E(I, ye), E(L, we), E(L, Te))), z.tagCheck = null, z.attributeCheck = null, b(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (I === dt && (I = O(I)), E(I, e.ADD_TAGS, J))), b(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (L === ft && (L = O(L)), E(L, e.ADD_ATTR, J))), b(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) && E(Mt, e.ADD_URI_SAFE_ATTR, J), b(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) && (W === kt && (W = O(W)), E(W, e.FORBID_CONTENTS, J)), b(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (W === kt && (W = O(W)), E(W, e.ADD_FORBID_CONTENTS, J)), Dt && (I["#text"] = !0), V && E(I, [
|
|
377
379
|
"html",
|
|
378
380
|
"head",
|
|
379
381
|
"body"
|
|
380
|
-
]), I.table && (
|
|
381
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
382
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
383
|
-
let t =
|
|
384
|
-
|
|
382
|
+
]), I.table && (E(I, ["tbody"]), delete pt.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
383
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
384
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
385
|
+
let t = M;
|
|
386
|
+
M = e.TRUSTED_TYPES_POLICY;
|
|
385
387
|
try {
|
|
386
388
|
N = P("");
|
|
387
389
|
} catch (e) {
|
|
388
|
-
throw
|
|
390
|
+
throw M = t, e;
|
|
389
391
|
}
|
|
390
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
391
|
-
(F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && I ===
|
|
392
|
-
},
|
|
393
|
-
...
|
|
394
|
-
...
|
|
395
|
-
...
|
|
396
|
-
]),
|
|
397
|
-
|
|
392
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (M = void 0, N = "") : (M === void 0 && (M = Ye()), M && typeof N == "string" && (N = P("")));
|
|
393
|
+
(F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && I === dt && (I = O(I)), F.uponSanitizeAttribute.length > 0 && L === ft && (L = O(L)), d && d(e), Y = e;
|
|
394
|
+
}, Jt = E({}, [
|
|
395
|
+
...ge,
|
|
396
|
+
..._e,
|
|
397
|
+
...ve
|
|
398
|
+
]), Yt = E({}, [...ye, ...be]), Xt = function(e, t, n) {
|
|
399
|
+
return t.namespaceURI === G ? e === "svg" : t.namespaceURI === Pt ? e === "svg" && (n === "annotation-xml" || Bt[n]) : !!Jt[e];
|
|
400
|
+
}, Zt = function(e, t, n) {
|
|
401
|
+
return t.namespaceURI === G ? e === "math" : t.namespaceURI === Ft ? e === "math" && Ht[n] : !!Yt[e];
|
|
402
|
+
}, Qt = function(e, t, n) {
|
|
403
|
+
return t.namespaceURI === Ft && !Ht[n] || t.namespaceURI === Pt && !Bt[n] ? !1 : !Yt[e] && (Ut[e] || !Jt[e]);
|
|
404
|
+
}, $t = function(e) {
|
|
405
|
+
let t = y(e);
|
|
398
406
|
(!t || !t.tagName) && (t = {
|
|
399
|
-
namespaceURI:
|
|
407
|
+
namespaceURI: K,
|
|
400
408
|
tagName: "template"
|
|
401
409
|
});
|
|
402
410
|
let n = ae(e.tagName), r = ae(t.tagName);
|
|
403
|
-
return
|
|
411
|
+
return Lt[e.namespaceURI] ? e.namespaceURI === Ft ? Xt(n, t, r) : e.namespaceURI === Pt ? Zt(n, t, r) : e.namespaceURI === G ? Qt(n, t, r) : !!(q === "application/xhtml+xml" && Lt[e.namespaceURI]) : !1;
|
|
404
412
|
}, X = function(e) {
|
|
405
413
|
g(t.removed, { element: e });
|
|
406
414
|
try {
|
|
407
|
-
|
|
415
|
+
y(e).removeChild(e);
|
|
408
416
|
} catch {
|
|
409
|
-
if (
|
|
417
|
+
if (de(e), !y(e)) throw C("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
410
418
|
}
|
|
411
|
-
},
|
|
412
|
-
let t =
|
|
419
|
+
}, en = function(e) {
|
|
420
|
+
let t = v(e);
|
|
413
421
|
if (t) {
|
|
414
422
|
let e = [];
|
|
415
|
-
|
|
423
|
+
te(t, (t) => {
|
|
416
424
|
g(e, t);
|
|
417
|
-
}),
|
|
425
|
+
}), te(e, (e) => {
|
|
418
426
|
try {
|
|
419
|
-
|
|
427
|
+
de(e);
|
|
420
428
|
} catch {}
|
|
421
429
|
});
|
|
422
430
|
}
|
|
423
|
-
let n =
|
|
431
|
+
let n = w(e);
|
|
424
432
|
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
425
433
|
let r = n[t], i = r && r.name;
|
|
426
434
|
if (typeof i == "string") try {
|
|
@@ -439,129 +447,122 @@ function Le() {
|
|
|
439
447
|
from: n
|
|
440
448
|
});
|
|
441
449
|
}
|
|
442
|
-
if (n.removeAttribute(e), e === "is") if (
|
|
450
|
+
if (n.removeAttribute(e), e === "is") if (H || St) try {
|
|
443
451
|
X(n);
|
|
444
452
|
} catch {}
|
|
445
453
|
else try {
|
|
446
454
|
n.setAttribute(e, "");
|
|
447
455
|
} catch {}
|
|
448
|
-
},
|
|
449
|
-
let t =
|
|
456
|
+
}, tn = function(e) {
|
|
457
|
+
let t = w(e);
|
|
450
458
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
451
459
|
let r = t[n], i = r && r.name;
|
|
452
460
|
if (!(typeof i != "string" || L[J(i)])) try {
|
|
453
461
|
e.removeAttribute(i);
|
|
454
462
|
} catch {}
|
|
455
463
|
}
|
|
456
|
-
},
|
|
464
|
+
}, nn = function(e) {
|
|
457
465
|
let t = [e];
|
|
458
466
|
for (; t.length > 0;) {
|
|
459
467
|
let e = t.pop();
|
|
460
|
-
(
|
|
461
|
-
let n =
|
|
468
|
+
(T ? T(e) : e.nodeType) === A.element && tn(e);
|
|
469
|
+
let n = v(e);
|
|
462
470
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
463
471
|
}
|
|
464
|
-
},
|
|
472
|
+
}, rn = function(e) {
|
|
465
473
|
let t = null, r = null;
|
|
466
|
-
if (
|
|
474
|
+
if (xt) e = "<remove></remove>" + e;
|
|
467
475
|
else {
|
|
468
476
|
let t = se(e, /^[\r\n\t ]+/);
|
|
469
477
|
r = t && t[0];
|
|
470
478
|
}
|
|
471
|
-
|
|
472
|
-
let i =
|
|
473
|
-
if (
|
|
474
|
-
t = new u().parseFromString(i,
|
|
479
|
+
q === "application/xhtml+xml" && K === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
480
|
+
let i = M ? P(e) : e;
|
|
481
|
+
if (K === G) try {
|
|
482
|
+
t = new u().parseFromString(i, q);
|
|
475
483
|
} catch {}
|
|
476
484
|
if (!t || !t.documentElement) {
|
|
477
|
-
t =
|
|
485
|
+
t = Ze.createDocument(K, "template", null);
|
|
478
486
|
try {
|
|
479
|
-
t.documentElement.innerHTML =
|
|
487
|
+
t.documentElement.innerHTML = It ? N : i;
|
|
480
488
|
} catch {}
|
|
481
489
|
}
|
|
482
490
|
let a = t.body || t.documentElement;
|
|
483
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
484
|
-
},
|
|
485
|
-
return
|
|
486
|
-
},
|
|
491
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), K === G ? et.call(t, V ? "html" : "body")[0] : V ? t.documentElement : a;
|
|
492
|
+
}, an = function(e) {
|
|
493
|
+
return Qe.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
|
|
494
|
+
}, on = function(e) {
|
|
495
|
+
return e = ce(e, nt, " "), e = ce(e, rt, " "), e = ce(e, it, " "), e;
|
|
496
|
+
}, sn = function(e) {
|
|
487
497
|
e.normalize();
|
|
488
|
-
let t =
|
|
489
|
-
for (; n;)
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
Ze,
|
|
494
|
-
Qe
|
|
495
|
-
], (t) => {
|
|
496
|
-
e = v(e, t, " ");
|
|
497
|
-
}), n.data = e, n = t.nextNode();
|
|
498
|
-
}
|
|
499
|
-
let r = e.querySelectorAll?.call(e, "template") ?? [];
|
|
500
|
-
h(Array.from(r), (e) => {
|
|
501
|
-
Q(e.content) && Jt(e.content);
|
|
498
|
+
let t = Qe.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
|
|
499
|
+
for (; n;) n.data = on(n.data), n = t.nextNode();
|
|
500
|
+
let r = e.querySelectorAll?.call(e, "template");
|
|
501
|
+
r && te(r, (e) => {
|
|
502
|
+
Q(e.content) && sn(e.content);
|
|
502
503
|
});
|
|
503
|
-
},
|
|
504
|
+
}, cn = function(e) {
|
|
504
505
|
let t = D ? D(e) : null;
|
|
505
|
-
return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !==
|
|
506
|
+
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 !== T(e) || e.childNodes !== v(e);
|
|
506
507
|
}, Q = function(e) {
|
|
507
|
-
if (!
|
|
508
|
+
if (!T || typeof e != "object" || !e) return !1;
|
|
508
509
|
try {
|
|
509
|
-
return
|
|
510
|
+
return T(e) === A.documentFragment;
|
|
510
511
|
} catch {
|
|
511
512
|
return !1;
|
|
512
513
|
}
|
|
513
|
-
},
|
|
514
|
-
if (!
|
|
514
|
+
}, ln = function(e) {
|
|
515
|
+
if (!T || typeof e != "object" || !e) return !1;
|
|
515
516
|
try {
|
|
516
|
-
return typeof
|
|
517
|
+
return typeof T(e) == "number";
|
|
517
518
|
} catch {
|
|
518
519
|
return !1;
|
|
519
520
|
}
|
|
520
521
|
};
|
|
521
522
|
function $(e, n, r) {
|
|
522
|
-
|
|
523
|
+
e.length !== 0 && te(e, (e) => {
|
|
523
524
|
e.call(t, n, r, Y);
|
|
524
525
|
});
|
|
525
526
|
}
|
|
526
|
-
let
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
if (
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
let t = b(e), n = y(e);
|
|
538
|
-
if (n && t) {
|
|
539
|
-
let r = n.length;
|
|
540
|
-
for (let i = r - 1; i >= 0; --i) {
|
|
541
|
-
let r = xt ? n[i] : ee(n[i], !0);
|
|
542
|
-
t.insertBefore(r, ue(e));
|
|
543
|
-
}
|
|
527
|
+
let un = function(e, t) {
|
|
528
|
+
return !!(yt && e.hasChildNodes() && !ln(e.firstElementChild) && S(Ie, e.textContent) && S(Ie, e.innerHTML) || yt && e.namespaceURI === G && t === "style" && ln(e.firstElementChild) || e.nodeType === A.processingInstruction || yt && e.nodeType === A.comment && S(Le, e.data));
|
|
529
|
+
}, dn = function(e, t) {
|
|
530
|
+
if (!pt[t] && hn(t) && (R.tagNameCheck instanceof RegExp && S(R.tagNameCheck, t) || R.tagNameCheck instanceof Function && R.tagNameCheck(t))) return !1;
|
|
531
|
+
if (Dt && !W[t]) {
|
|
532
|
+
let t = y(e), n = v(e);
|
|
533
|
+
if (n && t) {
|
|
534
|
+
let r = n.length;
|
|
535
|
+
for (let i = r - 1; i >= 0; --i) {
|
|
536
|
+
let r = Ot ? n[i] : ee(n[i], !0);
|
|
537
|
+
t.insertBefore(r, fe(e));
|
|
544
538
|
}
|
|
545
539
|
}
|
|
546
|
-
return X(e), !0;
|
|
547
540
|
}
|
|
548
|
-
return
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
if (
|
|
557
|
-
|
|
558
|
-
if (
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
541
|
+
return X(e), !0;
|
|
542
|
+
}, fn = function(e) {
|
|
543
|
+
if ($(F.beforeSanitizeElements, e, null), cn(e)) return X(e), !0;
|
|
544
|
+
let n = J(D ? D(e) : e.nodeName);
|
|
545
|
+
if ($(F.uponSanitizeElement, e, {
|
|
546
|
+
tagName: n,
|
|
547
|
+
allowedTags: I
|
|
548
|
+
}), un(e, n)) return X(e), !0;
|
|
549
|
+
if (pt[n] || !(z.tagCheck instanceof Function && z.tagCheck(n)) && !I[n]) return dn(e, n);
|
|
550
|
+
if ((T ? T(e) : e.nodeType) === A.element && !$t(e) || (n === "noscript" || n === "noembed" || n === "noframes") && S(Re, e.innerHTML)) return X(e), !0;
|
|
551
|
+
if (B && e.nodeType === A.text) {
|
|
552
|
+
let n = on(e.textContent);
|
|
553
|
+
e.textContent !== n && (g(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
554
|
+
}
|
|
555
|
+
return $(F.afterSanitizeElements, e, null), !1;
|
|
556
|
+
}, pn = function(e, t, r) {
|
|
557
|
+
if (mt[t] || wt && (t === "id" || t === "name") && (r in n || r in Gt)) return !1;
|
|
558
|
+
let i = L[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
|
|
559
|
+
if (!(gt && S(at, t)) && !(ht && S(ot, t))) {
|
|
560
|
+
if (!i) {
|
|
561
|
+
if (!(hn(e) && (R.tagNameCheck instanceof RegExp && S(R.tagNameCheck, e) || R.tagNameCheck instanceof Function && R.tagNameCheck(e)) && (R.attributeNameCheck instanceof RegExp && S(R.attributeNameCheck, t) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(t, e)) || t === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && S(R.tagNameCheck, r) || R.tagNameCheck instanceof Function && R.tagNameCheck(r)))) return !1;
|
|
562
|
+
} else if (!Mt[t] && !S(ut, ce(r, ct, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && le(r, "data:") === 0 && At[e]) && !(_t && !S(st, ce(r, ct, ""))) && r) return !1;
|
|
562
563
|
}
|
|
563
564
|
return !0;
|
|
564
|
-
},
|
|
565
|
+
}, mn = E({}, [
|
|
565
566
|
"annotation-xml",
|
|
566
567
|
"color-profile",
|
|
567
568
|
"font-face",
|
|
@@ -570,22 +571,34 @@ function Le() {
|
|
|
570
571
|
"font-face-src",
|
|
571
572
|
"font-face-uri",
|
|
572
573
|
"missing-glyph"
|
|
573
|
-
]),
|
|
574
|
-
return
|
|
575
|
-
},
|
|
574
|
+
]), hn = function(e) {
|
|
575
|
+
return !mn[ae(e)] && S(lt, e);
|
|
576
|
+
}, gn = function(e, t, n, r) {
|
|
577
|
+
if (M && typeof m == "object" && typeof m.getAttributeType == "function" && !n) switch (m.getAttributeType(e, t)) {
|
|
578
|
+
case "TrustedHTML": return P(r);
|
|
579
|
+
case "TrustedScriptURL": return Je(r);
|
|
580
|
+
}
|
|
581
|
+
return r;
|
|
582
|
+
}, _n = function(e, n, r, i) {
|
|
583
|
+
try {
|
|
584
|
+
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), cn(e) ? X(e) : re(t.removed);
|
|
585
|
+
} catch {
|
|
586
|
+
Z(n, e);
|
|
587
|
+
}
|
|
588
|
+
}, vn = function(e) {
|
|
576
589
|
$(F.beforeSanitizeAttributes, e, null);
|
|
577
|
-
let
|
|
578
|
-
if (!
|
|
579
|
-
let
|
|
590
|
+
let t = e.attributes;
|
|
591
|
+
if (!t || cn(e)) return;
|
|
592
|
+
let n = {
|
|
580
593
|
attrName: "",
|
|
581
594
|
attrValue: "",
|
|
582
595
|
keepAttr: !0,
|
|
583
596
|
allowedAttributes: L,
|
|
584
597
|
forceKeepAttr: void 0
|
|
585
|
-
}, i =
|
|
586
|
-
for (;
|
|
587
|
-
let a =
|
|
588
|
-
if (
|
|
598
|
+
}, r = t.length, i = J(e.nodeName);
|
|
599
|
+
for (; r--;) {
|
|
600
|
+
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : ue(u);
|
|
601
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(F.uponSanitizeAttribute, e, n), d = n.attrValue, Tt && (l === "id" || l === "name") && le(d, Et) !== 0 && (Z(o, e), d = Et + d), yt && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
589
602
|
Z(o, e);
|
|
590
603
|
continue;
|
|
591
604
|
}
|
|
@@ -593,50 +606,31 @@ function Le() {
|
|
|
593
606
|
Z(o, e);
|
|
594
607
|
continue;
|
|
595
608
|
}
|
|
596
|
-
if (
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
d = v(d, e, " ");
|
|
611
|
-
});
|
|
612
|
-
let p = J(e.nodeName);
|
|
613
|
-
if (!Qt(p, l, d)) {
|
|
614
|
-
Z(o, e);
|
|
615
|
-
continue;
|
|
616
|
-
}
|
|
617
|
-
if (k && typeof f == "object" && typeof f.getAttributeType == "function" && !s) switch (f.getAttributeType(p, l)) {
|
|
618
|
-
case "TrustedHTML":
|
|
619
|
-
d = P(d);
|
|
620
|
-
break;
|
|
621
|
-
case "TrustedScriptURL":
|
|
622
|
-
d = He(d);
|
|
623
|
-
break;
|
|
624
|
-
}
|
|
625
|
-
if (d !== u) try {
|
|
626
|
-
s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), Yt(e) ? X(e) : re(t.removed);
|
|
627
|
-
} catch {
|
|
628
|
-
Z(o, e);
|
|
609
|
+
if (!n.forceKeepAttr) {
|
|
610
|
+
if (!n.keepAttr) {
|
|
611
|
+
Z(o, e);
|
|
612
|
+
continue;
|
|
613
|
+
}
|
|
614
|
+
if (!vt && S(ze, d)) {
|
|
615
|
+
Z(o, e);
|
|
616
|
+
continue;
|
|
617
|
+
}
|
|
618
|
+
if (B && (d = on(d)), !pn(i, l, d)) {
|
|
619
|
+
Z(o, e);
|
|
620
|
+
continue;
|
|
621
|
+
}
|
|
622
|
+
d = gn(i, l, s, d), d !== u && _n(e, o, s, d);
|
|
629
623
|
}
|
|
630
624
|
}
|
|
631
625
|
$(F.afterSanitizeAttributes, e, null);
|
|
632
|
-
},
|
|
633
|
-
let t = null, n =
|
|
634
|
-
for ($(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(F.uponSanitizeShadowNode, t, null),
|
|
635
|
-
let e = x
|
|
636
|
-
Q(e) && (
|
|
626
|
+
}, yn = function(e) {
|
|
627
|
+
let t = null, n = an(e);
|
|
628
|
+
for ($(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(F.uponSanitizeShadowNode, t, null), fn(t), vn(t), Q(t.content) && yn(t.content), (T ? T(t) : t.nodeType) === A.element) {
|
|
629
|
+
let e = x(t);
|
|
630
|
+
Q(e) && (bn(e), yn(e));
|
|
637
631
|
}
|
|
638
632
|
$(F.afterSanitizeShadowDOM, e, null);
|
|
639
|
-
},
|
|
633
|
+
}, bn = function(e) {
|
|
640
634
|
let t = [{
|
|
641
635
|
node: e,
|
|
642
636
|
shadow: null
|
|
@@ -644,10 +638,10 @@ function Le() {
|
|
|
644
638
|
for (; t.length > 0;) {
|
|
645
639
|
let e = t.pop();
|
|
646
640
|
if (e.shadow) {
|
|
647
|
-
|
|
641
|
+
yn(e.shadow);
|
|
648
642
|
continue;
|
|
649
643
|
}
|
|
650
|
-
let n = e.node, r = (
|
|
644
|
+
let n = e.node, r = (T ? T(n) : n.nodeType) === A.element, i = v(n);
|
|
651
645
|
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
652
646
|
node: i[e],
|
|
653
647
|
shadow: null
|
|
@@ -663,7 +657,7 @@ function Le() {
|
|
|
663
657
|
}
|
|
664
658
|
}
|
|
665
659
|
if (r) {
|
|
666
|
-
let e = x
|
|
660
|
+
let e = x(n);
|
|
667
661
|
Q(e) && t.push({
|
|
668
662
|
node: null,
|
|
669
663
|
shadow: e
|
|
@@ -676,56 +670,50 @@ function Le() {
|
|
|
676
670
|
};
|
|
677
671
|
return t.sanitize = function(e) {
|
|
678
672
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
679
|
-
if (
|
|
673
|
+
if (It = !e, It && (e = "<!-->"), typeof e != "string" && !ln(e) && (e = pe(e), typeof e != "string")) throw C("dirty is not a string, aborting");
|
|
680
674
|
if (!t.isSupported) return e;
|
|
681
|
-
|
|
682
|
-
let c =
|
|
675
|
+
bt || qt(n), t.removed = [];
|
|
676
|
+
let c = Ot && typeof e != "string" && ln(e);
|
|
683
677
|
if (c) {
|
|
684
678
|
let t = D ? D(e) : e.nodeName;
|
|
685
679
|
if (typeof t == "string") {
|
|
686
680
|
let e = J(t);
|
|
687
|
-
if (!I[e] ||
|
|
681
|
+
if (!I[e] || pt[e]) throw C("root node is forbidden and cannot be sanitized in-place");
|
|
688
682
|
}
|
|
689
|
-
if (
|
|
683
|
+
if (cn(e)) throw C("root node is clobbered and cannot be sanitized in-place");
|
|
690
684
|
try {
|
|
691
|
-
|
|
685
|
+
bn(e);
|
|
692
686
|
} catch (t) {
|
|
693
|
-
throw
|
|
687
|
+
throw en(e), t;
|
|
694
688
|
}
|
|
695
|
-
} else if (
|
|
689
|
+
} else if (ln(e)) i = rn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === A.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), bn(a);
|
|
696
690
|
else {
|
|
697
|
-
if (!
|
|
698
|
-
if (i =
|
|
691
|
+
if (!H && !B && !V && e.indexOf("<") === -1) return M && Ct ? P(e) : e;
|
|
692
|
+
if (i = rn(e), !i) return H ? null : Ct ? N : "";
|
|
699
693
|
}
|
|
700
|
-
i &&
|
|
701
|
-
let l =
|
|
694
|
+
i && xt && X(i.firstChild);
|
|
695
|
+
let l = an(c ? e : i);
|
|
702
696
|
try {
|
|
703
|
-
for (; o = l.nextNode();)
|
|
697
|
+
for (; o = l.nextNode();) fn(o), vn(o), Q(o.content) && yn(o.content);
|
|
704
698
|
} catch (t) {
|
|
705
|
-
throw c &&
|
|
699
|
+
throw c && en(e), t;
|
|
706
700
|
}
|
|
707
|
-
if (c) return
|
|
708
|
-
e.element &&
|
|
709
|
-
}),
|
|
710
|
-
if (
|
|
711
|
-
if (
|
|
701
|
+
if (c) return te(t.removed, (e) => {
|
|
702
|
+
e.element && nn(e.element);
|
|
703
|
+
}), B && sn(e), e;
|
|
704
|
+
if (H) {
|
|
705
|
+
if (B && sn(i), St) for (s = $e.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
712
706
|
else s = i;
|
|
713
|
-
return (L.shadowroot || L.shadowrootmode) && (s =
|
|
707
|
+
return (L.shadowroot || L.shadowrootmode) && (s = tt.call(r, s, !0)), s;
|
|
714
708
|
}
|
|
715
|
-
let u =
|
|
716
|
-
return
|
|
717
|
-
Xe,
|
|
718
|
-
Ze,
|
|
719
|
-
Qe
|
|
720
|
-
], (e) => {
|
|
721
|
-
u = v(u, e, " ");
|
|
722
|
-
}), k && gt ? P(u) : u;
|
|
709
|
+
let u = V ? i.outerHTML : i.innerHTML;
|
|
710
|
+
return V && I["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Pe, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = on(u)), M && Ct ? P(u) : u;
|
|
723
711
|
}, t.setConfig = function() {
|
|
724
|
-
|
|
712
|
+
qt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), bt = !0;
|
|
725
713
|
}, t.clearConfig = function() {
|
|
726
|
-
Y = null,
|
|
714
|
+
Y = null, bt = !1, M = We, N = "";
|
|
727
715
|
}, t.isValidAttribute = function(e, t, n) {
|
|
728
|
-
return Y ||
|
|
716
|
+
return Y || qt({}), pn(J(e), J(t), n);
|
|
729
717
|
}, t.addHook = function(e, t) {
|
|
730
718
|
typeof t == "function" && g(F[e], t);
|
|
731
719
|
}, t.removeHook = function(e, t) {
|
|
@@ -737,11 +725,11 @@ function Le() {
|
|
|
737
725
|
}, t.removeHooks = function(e) {
|
|
738
726
|
F[e] = [];
|
|
739
727
|
}, t.removeAllHooks = function() {
|
|
740
|
-
F =
|
|
728
|
+
F = He();
|
|
741
729
|
}, t;
|
|
742
730
|
}
|
|
743
|
-
var
|
|
731
|
+
var M = Ue();
|
|
744
732
|
//#endregion
|
|
745
|
-
export {
|
|
733
|
+
export { M as purify };
|
|
746
734
|
|
|
747
735
|
//# sourceMappingURL=purify.es.js.map
|