@deot/docs-client 1.1.9 → 1.2.0

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.
Files changed (87) hide show
  1. package/README.md +6 -4
  2. package/dist/{chunks/chunk-rhk8Qtmk-CUgXtmq_.js → bundle/chunk-rhk8Qtmk-CbLEbM7n.js} +0 -1
  3. package/dist/{chunks/compile-BHlM2G35-gLGYT56A.js → bundle/compile-D33div4Y-CVbeyITp.js} +21848 -21852
  4. package/dist/{chunks/compiler-sfc.esm-browser-5dA1IWMJ.js → bundle/compiler-sfc.esm-browser-DmhYZRPB.js} +1374 -1378
  5. package/dist/bundle/css-sV_dM9Hl-BpgypWsW.js +18927 -0
  6. package/dist/{chunks/echarts-BBzcOaek.js → bundle/echarts-BWkcVFuU.js} +1 -2
  7. package/dist/bundle/index.js +103578 -0
  8. package/dist/{eval → bundle}/index.style.css +1 -1
  9. package/dist/{chunks/jsx-CwMPlI4_-CBhlIHLh.js → bundle/jsx-CwMPlI4_-D02C9U5w.js} +9057 -9061
  10. package/dist/{chunks/photoswipe.esm-D52MAtDT.js → bundle/photoswipe.esm-CvVKUjTj.js} +114 -116
  11. package/dist/{chunks/rolldown-runtime-Ce3zPWPd.js → bundle/rolldown-runtime-DArdT4gl.js} +0 -1
  12. package/dist/index.d.ts +0 -1
  13. package/dist/index.js +6839 -103273
  14. package/dist/index.style.css +1 -1
  15. package/package.json +10 -9
  16. package/dist/chunks/browser-Cmwcvs-d.js +0 -505
  17. package/dist/chunks/css-C25yWQa_-B6uwKgDA.js +0 -15160
  18. package/dist/chunks/dayjs.min-B3g34Qcz.js +0 -300
  19. package/dist/chunks/dist-0ySyXNpo.js +0 -415
  20. package/dist/chunks/dist-B44jICwZ.js +0 -22
  21. package/dist/chunks/dist-BUw25nXJ.js +0 -65
  22. package/dist/chunks/dist-BeOE8qTX.js +0 -345
  23. package/dist/chunks/dist-C3V7reR4.js +0 -197
  24. package/dist/chunks/dist-CI9Lp9Cj.js +0 -247
  25. package/dist/chunks/dist-CQir6D4y.js +0 -244
  26. package/dist/chunks/dist-Cxf7_ocf.js +0 -44
  27. package/dist/chunks/dist-DF4kisl2.js +0 -43
  28. package/dist/chunks/dist-DHJhaOSs.js +0 -426
  29. package/dist/chunks/dist-DLj8yJdm.js +0 -38
  30. package/dist/chunks/dist-DSypl37f.js +0 -58
  31. package/dist/chunks/dist-DWn6r6un.js +0 -76
  32. package/dist/chunks/dist-DWqBe2Ah.js +0 -132
  33. package/dist/chunks/dist-D_Uqh6m9.js +0 -80
  34. package/dist/chunks/dist-DcIU51zW.js +0 -166
  35. package/dist/chunks/dist-Wm6vE6kM.js +0 -17
  36. package/dist/chunks/dist-kiZUqqzR.js +0 -27
  37. package/dist/chunks/dist-oZ12SGqg.js +0 -6
  38. package/dist/chunks/dist-va7FmnW4.js +0 -156
  39. package/dist/chunks/html2canvas-DoKTvaOT.js +0 -4012
  40. package/dist/chunks/index.es-wVPQxEPP.js +0 -5752
  41. package/dist/chunks/jspdf.es.min-Zm27YeAg.js +0 -17900
  42. package/dist/chunks/jszip.min-Da8UgalE.js +0 -3044
  43. package/dist/chunks/lodash-CYyW02I7.js +0 -5157
  44. package/dist/chunks/purify.es-DhHsvqCe.js +0 -845
  45. package/dist/chunks/vue-router-LT2FR3OX.js +0 -1208
  46. package/dist/chunks/vue.runtime.esm-bundler-Bk0CnRBe.js +0 -4851
  47. package/dist/eval/chunks/browser-Cmwcvs-d.js +0 -4
  48. package/dist/eval/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +0 -4
  49. package/dist/eval/chunks/compile-BHlM2G35-gLGYT56A.js +0 -7
  50. package/dist/eval/chunks/compiler-sfc.esm-browser-5dA1IWMJ.js +0 -4
  51. package/dist/eval/chunks/css-C25yWQa_-B6uwKgDA.js +0 -8
  52. package/dist/eval/chunks/dayjs.min-B3g34Qcz.js +0 -4
  53. package/dist/eval/chunks/dist-0ySyXNpo.js +0 -4
  54. package/dist/eval/chunks/dist-B44jICwZ.js +0 -5
  55. package/dist/eval/chunks/dist-BUw25nXJ.js +0 -6
  56. package/dist/eval/chunks/dist-BeOE8qTX.js +0 -4
  57. package/dist/eval/chunks/dist-C3V7reR4.js +0 -4
  58. package/dist/eval/chunks/dist-CI9Lp9Cj.js +0 -4
  59. package/dist/eval/chunks/dist-CQir6D4y.js +0 -5
  60. package/dist/eval/chunks/dist-Cxf7_ocf.js +0 -4
  61. package/dist/eval/chunks/dist-DF4kisl2.js +0 -5
  62. package/dist/eval/chunks/dist-DHJhaOSs.js +0 -5
  63. package/dist/eval/chunks/dist-DLj8yJdm.js +0 -4
  64. package/dist/eval/chunks/dist-DSypl37f.js +0 -5
  65. package/dist/eval/chunks/dist-DWn6r6un.js +0 -4
  66. package/dist/eval/chunks/dist-DWqBe2Ah.js +0 -6
  67. package/dist/eval/chunks/dist-D_Uqh6m9.js +0 -4
  68. package/dist/eval/chunks/dist-DcIU51zW.js +0 -4
  69. package/dist/eval/chunks/dist-Wm6vE6kM.js +0 -1
  70. package/dist/eval/chunks/dist-kiZUqqzR.js +0 -4
  71. package/dist/eval/chunks/dist-oZ12SGqg.js +0 -4
  72. package/dist/eval/chunks/dist-va7FmnW4.js +0 -4
  73. package/dist/eval/chunks/echarts-BBzcOaek.js +0 -4
  74. package/dist/eval/chunks/eval-runtime-e7f6eb9af5d4.js +0 -1
  75. package/dist/eval/chunks/html2canvas-DoKTvaOT.js +0 -4
  76. package/dist/eval/chunks/index.es-wVPQxEPP.js +0 -5
  77. package/dist/eval/chunks/jspdf.es.min-Zm27YeAg.js +0 -78
  78. package/dist/eval/chunks/jsx-CwMPlI4_-CBhlIHLh.js +0 -4
  79. package/dist/eval/chunks/jszip.min-Da8UgalE.js +0 -4
  80. package/dist/eval/chunks/lodash-CYyW02I7.js +0 -4
  81. package/dist/eval/chunks/photoswipe.esm-D52MAtDT.js +0 -4
  82. package/dist/eval/chunks/purify.es-DhHsvqCe.js +0 -4
  83. package/dist/eval/chunks/rolldown-runtime-Ce3zPWPd.js +0 -4
  84. package/dist/eval/chunks/vue-router-LT2FR3OX.js +0 -5
  85. package/dist/eval/chunks/vue.runtime.esm-bundler-Bk0CnRBe.js +0 -4
  86. package/dist/eval/index.js +0 -24
  87. package/dist/index.cjs +0 -23
@@ -1,845 +0,0 @@
1
- globalThis.process;
2
- //#region node_modules/.pnpm/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.mjs
3
- function e(e, t) {
4
- this.v = e, this.k = t;
5
- }
6
- function t(e, t) {
7
- (t == null || t > e.length) && (t = e.length);
8
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
9
- return r;
10
- }
11
- function n(e) {
12
- if (Array.isArray(e)) return e;
13
- }
14
- function r(e, t) {
15
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
16
- if (n != null) {
17
- var r, i, a, o, s = [], c = !0, l = !1;
18
- try {
19
- if (a = (n = n.call(e)).next, t === 0) {
20
- if (Object(n) !== n) return;
21
- c = !1;
22
- } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
23
- } catch (e) {
24
- l = !0, i = e;
25
- } finally {
26
- try {
27
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
28
- } finally {
29
- if (l) throw i;
30
- }
31
- }
32
- return s;
33
- }
34
- }
35
- function i() {
36
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
37
- }
38
- function a(e, t) {
39
- return n(e) || r(e, t) || o(e, t) || i();
40
- }
41
- function o(e, n) {
42
- if (e) {
43
- if (typeof e == "string") return t(e, n);
44
- var r = {}.toString.call(e).slice(8, -1);
45
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? t(e, n) : void 0;
46
- }
47
- }
48
- function s(t) {
49
- var n, r;
50
- function i(n, r) {
51
- try {
52
- var o = t[n](r), s = o.value, c = s instanceof e;
53
- Promise.resolve(c ? s.v : s).then(function(e) {
54
- if (c) {
55
- var r = n === "return" && s.k ? n : "next";
56
- if (!s.k || e.done) return i(r, e);
57
- e = t[r](e).value;
58
- }
59
- a(!!o.done, e);
60
- }, function(e) {
61
- i("throw", e);
62
- });
63
- } catch (e) {
64
- a(2, e);
65
- }
66
- }
67
- function a(e, t) {
68
- e === 2 ? n.reject(t) : n.resolve({
69
- value: t,
70
- done: e
71
- }), (n = n.next) ? i(n.key, n.arg) : r = null;
72
- }
73
- this._invoke = function(e, t) {
74
- return new Promise(function(a, o) {
75
- var s = {
76
- key: e,
77
- arg: t,
78
- resolve: a,
79
- reject: o,
80
- next: null
81
- };
82
- r ? r = r.next = s : (n = r = s, i(e, t));
83
- });
84
- }, typeof t.return != "function" && (this.return = void 0);
85
- }
86
- s.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
87
- return this;
88
- }, s.prototype.next = function(e) {
89
- return this._invoke("next", e);
90
- }, s.prototype.throw = function(e) {
91
- return this._invoke("throw", e);
92
- }, s.prototype.return = function(e) {
93
- return this._invoke("return", e);
94
- };
95
- var c = Object.entries, l = Object.setPrototypeOf, u = Object.isFrozen, d = Object.getPrototypeOf, f = Object.getOwnPropertyDescriptor, p = Object.freeze, m = Object.seal, h = Object.create, ee = typeof Reflect < "u" && Reflect, te = ee.apply, ne = ee.construct;
96
- p ||= function(e) {
97
- return e;
98
- }, m ||= function(e) {
99
- return e;
100
- }, te ||= function(e, t) {
101
- var n = [...arguments].slice(2);
102
- return e.apply(t, n);
103
- }, ne ||= function(e) {
104
- return new e(...[...arguments].slice(1));
105
- };
106
- var g = w(Array.prototype.forEach);
107
- Array.prototype.indexOf;
108
- var re = w(Array.prototype.lastIndexOf), ie = w(Array.prototype.pop), ae = w(Array.prototype.push);
109
- Array.prototype.slice;
110
- var oe = w(Array.prototype.splice), _ = Array.isArray, se = w(String.prototype.toLowerCase), ce = w(String.prototype.toString), le = w(String.prototype.match), ue = w(String.prototype.replace), de = w(String.prototype.indexOf), fe = w(String.prototype.trim), pe = w(Number.prototype.toString), v = w(Boolean.prototype.toString), y = typeof BigInt > "u" ? null : w(BigInt.prototype.toString), me = 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);
111
- function w(e) {
112
- return function(t) {
113
- t instanceof RegExp && (t.lastIndex = 0);
114
- var n = [...arguments].slice(1);
115
- return te(e, t, n);
116
- };
117
- }
118
- function T(e) {
119
- return function() {
120
- return ne(e, [...arguments]);
121
- };
122
- }
123
- function E(e, t) {
124
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : se;
125
- if (l && l(e, null), !_(t)) return e;
126
- let r = t.length;
127
- for (; r--;) {
128
- let i = t[r];
129
- if (typeof i == "string") {
130
- let e = n(i);
131
- e !== i && (u(t) || (t[r] = e), i = e);
132
- }
133
- e[i] = !0;
134
- }
135
- return e;
136
- }
137
- function he(e) {
138
- for (let t = 0; t < e.length; t++) b(e, t) || (e[t] = null);
139
- return e;
140
- }
141
- function D(e) {
142
- let t = h(null);
143
- for (let r of c(e)) {
144
- var n = a(r, 2);
145
- let i = n[0], o = n[1];
146
- b(e, i) && (t[i] = _(o) ? he(o) : o && typeof o == "object" && o.constructor === Object ? D(o) : o);
147
- }
148
- return t;
149
- }
150
- function ge(e) {
151
- switch (typeof e) {
152
- case "string": return e;
153
- case "number": return pe(e);
154
- case "boolean": return v(e);
155
- case "bigint": return y ? y(e) : "0";
156
- case "symbol": return me ? me(e) : "Symbol()";
157
- case "undefined": return x(e);
158
- case "function":
159
- case "object": {
160
- if (e === null) return x(e);
161
- let t = e, n = O(t, "toString");
162
- if (typeof n == "function") {
163
- let e = n(t);
164
- return typeof e == "string" ? e : x(e);
165
- }
166
- return x(e);
167
- }
168
- default: return x(e);
169
- }
170
- }
171
- function O(e, t) {
172
- for (; e !== null;) {
173
- let n = f(e, t);
174
- if (n) {
175
- if (n.get) return w(n.get);
176
- if (typeof n.value == "function") return w(n.value);
177
- }
178
- e = d(e);
179
- }
180
- function n() {
181
- return null;
182
- }
183
- return n;
184
- }
185
- function _e(e) {
186
- try {
187
- return S(e, ""), !0;
188
- } catch {
189
- return !1;
190
- }
191
- }
192
- var ve = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.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(".")), ye = p(/* @__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(".")), be = p([
193
- "feBlend",
194
- "feColorMatrix",
195
- "feComponentTransfer",
196
- "feComposite",
197
- "feConvolveMatrix",
198
- "feDiffuseLighting",
199
- "feDisplacementMap",
200
- "feDistantLight",
201
- "feDropShadow",
202
- "feFlood",
203
- "feFuncA",
204
- "feFuncB",
205
- "feFuncG",
206
- "feFuncR",
207
- "feGaussianBlur",
208
- "feImage",
209
- "feMerge",
210
- "feMergeNode",
211
- "feMorphology",
212
- "feOffset",
213
- "fePointLight",
214
- "feSpecularLighting",
215
- "feSpotLight",
216
- "feTile",
217
- "feTurbulence"
218
- ]), xe = p([
219
- "animate",
220
- "color-profile",
221
- "cursor",
222
- "discard",
223
- "font-face",
224
- "font-face-format",
225
- "font-face-name",
226
- "font-face-src",
227
- "font-face-uri",
228
- "foreignobject",
229
- "hatch",
230
- "hatchpath",
231
- "mesh",
232
- "meshgradient",
233
- "meshpatch",
234
- "meshrow",
235
- "missing-glyph",
236
- "script",
237
- "set",
238
- "solidcolor",
239
- "unknown",
240
- "use"
241
- ]), Se = p(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Ce = p([
242
- "maction",
243
- "maligngroup",
244
- "malignmark",
245
- "mlongdiv",
246
- "mscarries",
247
- "mscarry",
248
- "msgroup",
249
- "mstack",
250
- "msline",
251
- "msrow",
252
- "semantics",
253
- "annotation",
254
- "annotation-xml",
255
- "mprescripts",
256
- "none"
257
- ]), we = p(["#text"]), Te = p(/* @__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(".")), Ee = p(/* @__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.dominant-baseline.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.pointer-events.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-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.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(".")), De = p(/* @__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(".")), Oe = p([
258
- "xlink:href",
259
- "xml:id",
260
- "xlink:title",
261
- "xml:space",
262
- "xmlns:xlink"
263
- ]), ke = m(/{{[\w\W]*|^[\w\W]*}}/g), Ae = m(/<%[\w\W]*|^[\w\W]*%>/g), je = m(/\${[\w\W]*/g), Me = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ne = m(/^aria-[\-\w]+$/), Pe = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Fe = m(/^(?:\w+script|data):/i), Ie = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Le = m(/^html$/i), Re = m(/^[a-z][.\w]*(-[.\w]+)+$/i), ze = m(/<[/\w!]/g), Be = m(/<[/\w]/g), Ve = m(/<\/no(script|embed|frames)/i), He = m(/\/>/i), k = {
264
- element: 1,
265
- attribute: 2,
266
- text: 3,
267
- cdataSection: 4,
268
- entityReference: 5,
269
- entityNode: 6,
270
- processingInstruction: 7,
271
- comment: 8,
272
- document: 9,
273
- documentType: 10,
274
- documentFragment: 11,
275
- notation: 12
276
- }, A = [
277
- "style",
278
- "script",
279
- "xmp",
280
- "iframe",
281
- "noembed",
282
- "noframes",
283
- "plaintext",
284
- "noscript"
285
- ], Ue = p(E({}, A)), We = function() {
286
- let e = {};
287
- return g(A, (t) => {
288
- e[t] = m(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
289
- }), p(e);
290
- }(), Ge = function() {
291
- return typeof window > "u" ? null : window;
292
- }, Ke = function(e, t) {
293
- if (typeof e != "object" || typeof e.createPolicy != "function") return null;
294
- let n = null, r = "data-tt-policy-suffix";
295
- t && t.hasAttribute(r) && (n = t.getAttribute(r));
296
- let i = "dompurify" + (n ? "#" + n : "");
297
- try {
298
- return e.createPolicy(i, {
299
- createHTML(e) {
300
- return e;
301
- },
302
- createScriptURL(e) {
303
- return e;
304
- }
305
- });
306
- } catch {
307
- return console.warn("TrustedTypes policy " + i + " could not be created."), null;
308
- }
309
- }, qe = function() {
310
- return {
311
- afterSanitizeAttributes: [],
312
- afterSanitizeElements: [],
313
- afterSanitizeShadowDOM: [],
314
- beforeSanitizeAttributes: [],
315
- beforeSanitizeElements: [],
316
- beforeSanitizeShadowDOM: [],
317
- uponSanitizeAttribute: [],
318
- uponSanitizeElement: [],
319
- uponSanitizeShadowNode: []
320
- };
321
- }, j = function(e, t, n, r) {
322
- return b(e, t) && _(e[t]) ? E(r.base ? D(r.base) : {}, e[t], r.transform) : n;
323
- }, Je = function(e, t, n) {
324
- let r = b(e, t) ? e[t] : void 0;
325
- return r && typeof r == "object" ? D(r) : n();
326
- };
327
- function Ye() {
328
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ge(), t = (e) => Ye(e);
329
- if (t.version = "3.4.16", t.removed = [], !e || !e.document || e.document.nodeType !== k.document || !e.Element) return t.isSupported = !1, t;
330
- let n = e.document, r = n, i = r.currentScript;
331
- e.DocumentFragment;
332
- let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, l = e.NodeFilter;
333
- e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
334
- let u = e.DOMParser, d = e.trustedTypes, f = s.prototype, ee = O(f, "cloneNode"), te = O(f, "remove"), ne = O(f, "removeAttributeNode"), pe = O(f, "nextSibling"), v = O(f, "childNodes"), y = O(f, "parentNode"), me = O(f, "shadowRoot"), x = O(f, "attributes"), w = o && o.prototype ? O(o.prototype, "nodeType") : null, T = o && o.prototype ? O(o.prototype, "nodeName") : null, he = o && o.prototype ? O(o.prototype, "ownerDocument") : null, A = function(e) {
335
- return w ? w(e) : e.nodeType;
336
- }, Xe = function(e) {
337
- return T ? T(e) : e.nodeName;
338
- };
339
- if (typeof a == "function") {
340
- let e = n.createElement("template");
341
- e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
342
- }
343
- let M, N = "", Ze, Qe = !1, $e = 0, et = function() {
344
- if ($e > 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.");
345
- }, P = function(e) {
346
- et(), $e++;
347
- try {
348
- return M.createHTML(e);
349
- } finally {
350
- $e--;
351
- }
352
- }, tt = function(e) {
353
- et(), $e++;
354
- try {
355
- return M.createScriptURL(e);
356
- } finally {
357
- $e--;
358
- }
359
- }, nt = function() {
360
- return Qe ||= (Ze = Ke(d, i), !0), Ze;
361
- }, rt = n, it = rt.implementation, at = rt.createNodeIterator, ot = rt.createDocumentFragment, st = rt.getElementsByTagName, ct = r.importNode, F = qe();
362
- t.isSupported = typeof c == "function" && typeof y == "function" && it && it.createHTMLDocument !== void 0;
363
- let lt = ke, ut = Ae, dt = je, ft = Me, pt = Ne, mt = Fe, ht = Ie, gt = Re, _t = Pe, I = null, vt = E({}, [
364
- ...ve,
365
- ...ye,
366
- ...be,
367
- ...Se,
368
- ...we
369
- ]), L = null, yt = E({}, [
370
- ...Te,
371
- ...Ee,
372
- ...De,
373
- ...Oe
374
- ]), R = Object.seal(h(null, {
375
- tagNameCheck: {
376
- writable: !0,
377
- configurable: !1,
378
- enumerable: !0,
379
- value: null
380
- },
381
- attributeNameCheck: {
382
- writable: !0,
383
- configurable: !1,
384
- enumerable: !0,
385
- value: null
386
- },
387
- allowCustomizedBuiltInElements: {
388
- writable: !0,
389
- configurable: !1,
390
- enumerable: !0,
391
- value: !1
392
- }
393
- })), bt = null, xt = null, z = Object.seal(h(null, {
394
- tagCheck: {
395
- writable: !0,
396
- configurable: !1,
397
- enumerable: !0,
398
- value: null
399
- },
400
- attributeCheck: {
401
- writable: !0,
402
- configurable: !1,
403
- enumerable: !0,
404
- value: null
405
- }
406
- })), St = !0, Ct = !0, wt = !1, Tt = !0, B = !1, V = !0, H = !1, Et = !1, Dt = null, Ot = null, kt = !1, U = !1, At = !1, jt = !1, Mt = !0, Nt = !1, Pt = "user-content-", Ft = !0, It = !1, W = {}, G = null, Lt = 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(".")), Rt = null, zt = E({}, [
407
- "audio",
408
- "video",
409
- "img",
410
- "source",
411
- "image",
412
- "track"
413
- ]), Bt = null, Vt = E({}, [
414
- "alt",
415
- "class",
416
- "for",
417
- "id",
418
- "label",
419
- "name",
420
- "pattern",
421
- "placeholder",
422
- "role",
423
- "summary",
424
- "title",
425
- "value",
426
- "style",
427
- "xmlns"
428
- ]), Ht = "http://www.w3.org/1998/Math/MathML", Ut = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, Wt = !1, Gt = null, Kt = E({}, [
429
- Ht,
430
- Ut,
431
- K
432
- ], ce), qt = p([
433
- "mi",
434
- "mo",
435
- "mn",
436
- "ms",
437
- "mtext"
438
- ]), Jt = E({}, qt), Yt = p(["annotation-xml"]), Xt = E({}, Yt), Zt = E({}, [
439
- "title",
440
- "style",
441
- "font",
442
- "a",
443
- "script"
444
- ]), Qt = null, $t = ["application/xhtml+xml", "text/html"], J = null, Y = null, en = n.createElement("form"), tn = function(e) {
445
- return e instanceof RegExp || e instanceof Function;
446
- }, nn = function() {
447
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
448
- if (Y && Y === e) return;
449
- (!e || typeof e != "object") && (e = {}), e = D(e), Qt = $t.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Qt === "application/xhtml+xml" ? ce : se, I = j(e, "ALLOWED_TAGS", vt, { transform: J }), L = j(e, "ALLOWED_ATTR", yt, { transform: J }), Gt = j(e, "ALLOWED_NAMESPACES", Kt, { transform: ce }), Bt = j(e, "ADD_URI_SAFE_ATTR", Vt, {
450
- transform: J,
451
- base: Vt
452
- }), Rt = j(e, "ADD_DATA_URI_TAGS", zt, {
453
- transform: J,
454
- base: zt
455
- }), G = j(e, "FORBID_CONTENTS", Lt, { transform: J }), bt = j(e, "FORBID_TAGS", D({}), { transform: J }), xt = j(e, "FORBID_ATTR", D({}), { transform: J }), W = b(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? D(e.USE_PROFILES) : e.USE_PROFILES : !1, St = e.ALLOW_ARIA_ATTR !== !1, Ct = e.ALLOW_DATA_ATTR !== !1, wt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Tt = 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, At = e.RETURN_DOM_FRAGMENT || !1, jt = e.RETURN_TRUSTED_TYPE || !1, kt = e.FORCE_BODY || !1, Mt = e.SANITIZE_DOM !== !1, Nt = e.SANITIZE_NAMED_PROPS || !1, Ft = e.KEEP_CONTENT !== !1, It = e.IN_PLACE || !1, _t = _e(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Pe, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Jt = Je(e, "MATHML_TEXT_INTEGRATION_POINTS", () => E({}, qt)), Xt = Je(e, "HTML_INTEGRATION_POINTS", () => E({}, Yt));
456
- let t = Je(e, "CUSTOM_ELEMENT_HANDLING", () => h(null));
457
- if (R = h(null), b(t, "tagNameCheck") && tn(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), b(t, "attributeNameCheck") && tn(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), b(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), m(R), B && (Ct = !1), At && (U = !0), W && (I = E({}, we), L = h(null), W.html === !0 && (E(I, ve), E(L, Te)), W.svg === !0 && (E(I, ye), E(L, Ee), E(L, Oe)), W.svgFilters === !0 && (E(I, be), E(L, Ee), E(L, Oe)), W.mathMl === !0 && (E(I, Se), E(L, De), E(L, Oe))), z.tagCheck = null, z.attributeCheck = null, b(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (I === vt && (I = D(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 === yt && (L = D(L)), E(L, e.ADD_ATTR, J))), b(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (G === Lt && (G = D(G)), E(G, e.ADD_FORBID_CONTENTS, J)), Ft && (I["#text"] = !0), H && E(I, [
458
- "html",
459
- "head",
460
- "body"
461
- ]), I.table && (E(I, ["tbody"]), delete bt.tbody), e.TRUSTED_TYPES_POLICY) {
462
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
463
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
464
- let t = M;
465
- M = e.TRUSTED_TYPES_POLICY;
466
- try {
467
- N = P("");
468
- } catch (e) {
469
- throw M = t, e;
470
- }
471
- } else e.TRUSTED_TYPES_POLICY === null ? (M = void 0, N = "") : (M === void 0 && (M = nt()), M && typeof N == "string" && (N = P("")));
472
- p && p(e), Y = e;
473
- }, rn = E({}, [
474
- ...ye,
475
- ...be,
476
- ...xe
477
- ]), an = E({}, [...Se, ...Ce]), on = function(e, t, n) {
478
- return t.namespaceURI === K ? e === "svg" : t.namespaceURI === Ht ? e === "svg" && (n === "annotation-xml" || Jt[n]) : !!rn[e];
479
- }, sn = function(e, t, n) {
480
- return t.namespaceURI === K ? e === "math" : t.namespaceURI === Ut ? e === "math" && Xt[n] : !!an[e];
481
- }, cn = function(e, t, n) {
482
- return t.namespaceURI === Ut && !Xt[n] || t.namespaceURI === Ht && !Jt[n] ? !1 : !an[e] && (Zt[e] || !rn[e]);
483
- }, ln = function(e) {
484
- let t = y(e);
485
- (!t || !t.tagName) && (t = {
486
- namespaceURI: q,
487
- tagName: "template"
488
- });
489
- let n = se(e.tagName), r = se(t.tagName);
490
- return Gt[e.namespaceURI] ? e.namespaceURI === Ut ? on(n, t, r) : e.namespaceURI === Ht ? sn(n, t, r) : e.namespaceURI === K ? cn(n, t, r) : !!(Qt === "application/xhtml+xml" && Gt[e.namespaceURI]) : !1;
491
- }, X = function(e) {
492
- ae(t.removed, { element: e });
493
- try {
494
- y(e).removeChild(e);
495
- } catch {
496
- if (te(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");
497
- }
498
- }, un = function(e, t, n) {
499
- try {
500
- ne(e, t);
501
- } catch {
502
- try {
503
- e.removeAttribute(n);
504
- } catch {}
505
- }
506
- }, dn = function(e) {
507
- pn(e);
508
- let t = v(e);
509
- if (t) {
510
- let e = [];
511
- g(t, (t) => {
512
- ae(e, t);
513
- }), g(e, (e) => {
514
- try {
515
- te(e);
516
- } catch {}
517
- });
518
- }
519
- let n = x(e);
520
- if (n) for (let t = n.length - 1; t >= 0; --t) {
521
- let r = n[t], i = r && r.name;
522
- typeof i == "string" && un(e, r, i);
523
- }
524
- }, Z = function(e, n, r) {
525
- if (!r) try {
526
- r = n.getAttributeNode(e);
527
- } catch {
528
- r = null;
529
- }
530
- ae(t.removed, {
531
- attribute: r || null,
532
- from: n
533
- });
534
- try {
535
- r ? ne(n, r) : n.removeAttribute(e);
536
- } catch {
537
- try {
538
- n.removeAttribute(e);
539
- } catch {}
540
- }
541
- if (e === "is") {
542
- if (U || At) try {
543
- X(n);
544
- } catch {}
545
- else try {
546
- n.setAttribute(e, "");
547
- } catch {}
548
- }
549
- }, fn = function(e) {
550
- let t = x(e);
551
- if (t) for (let n = t.length - 1; n >= 0; --n) {
552
- let r = t[n], i = r && r.name;
553
- typeof i != "string" || L[J(i)] || un(e, r, i);
554
- }
555
- }, pn = function(e) {
556
- let t = [e];
557
- for (; t.length > 0;) {
558
- let e = t.pop();
559
- A(e) === k.element && fn(e);
560
- let n = v(e);
561
- if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
562
- }
563
- }, mn = function(e, t) {
564
- return V ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
565
- }, hn = function(e) {
566
- if (!V) return;
567
- let t = [e];
568
- for (; t.length > 0;) {
569
- let e = t.pop(), n = A(e);
570
- if (n === k.processingInstruction || n === k.comment && S(Be, e.data)) {
571
- try {
572
- te(e);
573
- } catch {}
574
- continue;
575
- }
576
- if (n === k.element) {
577
- let t = e, n = J(Xe(e));
578
- try {
579
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && mn("for", n) && t.removeAttribute("for");
580
- } catch {}
581
- }
582
- let r = v(e);
583
- if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
584
- }
585
- }, gn = function(e) {
586
- let t = null, r = null;
587
- if (kt) e = "<remove></remove>" + e;
588
- else {
589
- let t = le(e, /^[\r\n\t ]+/);
590
- r = t && t[0];
591
- }
592
- Qt === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
593
- let i = M ? P(e) : e;
594
- if (q === K) try {
595
- t = new u().parseFromString(i, Qt);
596
- } catch {}
597
- if (!t || !t.documentElement) {
598
- t = it.createDocument(q, "template", null);
599
- try {
600
- t.documentElement.innerHTML = Wt ? N : i;
601
- } catch {}
602
- }
603
- let a = t.body || t.documentElement;
604
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? st.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
605
- }, _n = function(e) {
606
- let t = he ? he(e) : e.ownerDocument;
607
- return at.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
608
- }, vn = function(e) {
609
- return e = ue(e, lt, " "), e = ue(e, ut, " "), e = ue(e, dt, " "), e;
610
- }, yn = function(e) {
611
- e.normalize();
612
- let t = he ? he(e) : e.ownerDocument, n = at.call(t || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
613
- for (; r;) r.data = vn(r.data), r = n.nextNode();
614
- let i = e.querySelectorAll?.call(e, "template");
615
- i && g(i, (e) => {
616
- xn(e.content) && yn(e.content);
617
- });
618
- }, bn = function(e) {
619
- let t = T ? T(e) : null;
620
- return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== x(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== w(e) || e.childNodes !== v(e);
621
- }, xn = function(e) {
622
- if (!w || typeof e != "object" || !e) return !1;
623
- try {
624
- return w(e) === k.documentFragment;
625
- } catch {
626
- return !1;
627
- }
628
- }, Sn = function(e) {
629
- if (!w || typeof e != "object" || !e) return !1;
630
- try {
631
- return typeof w(e) == "number";
632
- } catch {
633
- return !1;
634
- }
635
- };
636
- function Q(e, n, r) {
637
- e.length !== 0 && g(e, (e) => {
638
- e.call(t, n, r, Y);
639
- });
640
- }
641
- let Cn = function(e, t) {
642
- return !!(V && e.hasChildNodes() && !Sn(e.firstElementChild) && S(ze, e.textContent) && S(ze, e.innerHTML) || V && e.namespaceURI === K && Ue[t] && (Sn(e.firstElementChild) || typeof e.textContent == "string" && S(We[t], e.textContent)) || e.nodeType === k.processingInstruction || V && e.nodeType === k.comment && S(Be, e.data));
643
- }, wn = function(e, t) {
644
- return e instanceof RegExp ? S(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
645
- }, Tn = function(e, t, n) {
646
- if (!bt[t] && An(t) && wn(R.tagNameCheck, t)) return !1;
647
- if (Ft && !G[t]) {
648
- let t = y(e), r = v(e);
649
- if (r && t) {
650
- let i = r.length;
651
- for (let a = i - 1; a >= 0; --a) {
652
- let i = e === n ? ee(r[a], !0) : r[a];
653
- t.insertBefore(i, pe(e));
654
- }
655
- }
656
- }
657
- return X(e), !0;
658
- }, En = function(e, t, n, r) {
659
- return e.length === 0 ? t : t === n || t === r ? D(t) : t;
660
- }, $ = function(e, t) {
661
- return e === t || y(e) !== null ? !1 : (It && pn(e), !0);
662
- }, Dn = function(e, n) {
663
- if (Q(F.beforeSanitizeElements, e, null), $(e, n)) return !0;
664
- if (bn(e)) return X(e), !0;
665
- let r = J(Xe(e));
666
- if (I = En(F.uponSanitizeElement, I, vt, Dt), Q(F.uponSanitizeElement, e, {
667
- tagName: r,
668
- allowedTags: I
669
- }), $(e, n)) return !0;
670
- if (Cn(e, r)) return X(e), !0;
671
- if (bt[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !I[r]) {
672
- let t = Tn(e, r, n);
673
- return t === !1 && (Q(F.afterSanitizeElements, e, null), $(e, n)) ? !0 : t;
674
- }
675
- if (A(e) === k.element && !ln(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(Ve, e.innerHTML)) return X(e), !0;
676
- if (B && e.nodeType === k.text) {
677
- let n = vn(e.textContent);
678
- e.textContent !== n && (ae(t.removed, { element: e.cloneNode() }), e.textContent = n);
679
- }
680
- return Q(F.afterSanitizeElements, e, null), $(e, n);
681
- }, On = function(e, t, r) {
682
- if (xt[t] || mn(t, e) || Mt && (t === "id" || t === "name") && (r in n || r in en)) return !1;
683
- let i = L[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
684
- return Ct && S(ft, t) || St && S(pt, t) ? !0 : i ? Bt[t] || S(_t, ue(r, ht, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && de(r, "data:") === 0 && Rt[e] || wt && !S(mt, ue(r, ht, "")) ? !0 : !r : An(e) && wn(R.tagNameCheck, e) && wn(R.attributeNameCheck, t, e) || t === "is" && R.allowCustomizedBuiltInElements && wn(R.tagNameCheck, r);
685
- }, kn = E({}, [
686
- "annotation-xml",
687
- "color-profile",
688
- "font-face",
689
- "font-face-format",
690
- "font-face-name",
691
- "font-face-src",
692
- "font-face-uri",
693
- "missing-glyph"
694
- ]), An = function(e) {
695
- return !kn[se(e)] && S(gt, e);
696
- }, jn = function(e, t, n, r) {
697
- if (M && typeof d == "object" && typeof d.getAttributeType == "function" && !n) switch (d.getAttributeType(e, t)) {
698
- case "TrustedHTML": return P(r);
699
- case "TrustedScriptURL": return tt(r);
700
- }
701
- return r;
702
- }, Mn = function(e, t, n, r) {
703
- try {
704
- return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !bn(e) || (X(e), !1);
705
- } catch {
706
- return Z(t, e), !1;
707
- }
708
- }, Nn = function(e, n) {
709
- if (Q(F.beforeSanitizeAttributes, e, null), $(e, n)) return;
710
- let r = e.attributes;
711
- if (!r || bn(e)) return;
712
- L = En(F.uponSanitizeAttribute, L, yt, Ot);
713
- let i = {
714
- attrName: "",
715
- attrValue: "",
716
- keepAttr: !0,
717
- allowedAttributes: L,
718
- forceKeepAttr: void 0
719
- }, a = r.length, o = J(e.nodeName);
720
- for (; a--;) {
721
- let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = J(s), d = l, f = s === "value" ? d : fe(d), p = !1;
722
- i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, Q(F.uponSanitizeAttribute, e, i), f = i.attrValue, Nt && (u === "id" || u === "name") && de(f, Pt) !== 0 && (Z(s, e, n), f = Pt + f, p = !0), V && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f) || u === "attributename" && le(f, "href") ? Z(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !Tt && S(He, f) ? Z(s, e, n) : (B && (f = vn(f)), On(o, u, f) ? (f = jn(o, u, c, f), f !== d && Mn(e, s, c, f) && p && ie(t.removed)) : Z(s, e, n)) : Z(s, e, n));
723
- }
724
- Q(F.afterSanitizeAttributes, e, null), $(e, n);
725
- }, Pn = function(e) {
726
- let t = null, n = _n(e);
727
- for (Q(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(F.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t, e), xn(t.content) && Pn(t.content), A(t) === k.element) {
728
- let e = me(t);
729
- xn(e) && (Fn(e), Pn(e));
730
- }
731
- Q(F.afterSanitizeShadowDOM, e, null);
732
- }, Fn = function(e) {
733
- let t = [{
734
- node: e,
735
- shadow: null
736
- }];
737
- for (; t.length > 0;) {
738
- let e = t.pop();
739
- if (e.shadow) {
740
- Pn(e.shadow);
741
- continue;
742
- }
743
- let n = e.node, r = A(n) === k.element, i = v(n);
744
- if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
745
- node: i[e],
746
- shadow: null
747
- });
748
- if (r) {
749
- let e = T ? T(n) : null;
750
- if (typeof e == "string" && J(e) === "template") {
751
- let e = n.content;
752
- xn(e) && t.push({
753
- node: e,
754
- shadow: null
755
- });
756
- }
757
- }
758
- if (r) {
759
- let e = me(n);
760
- xn(e) && t.push({
761
- node: null,
762
- shadow: e
763
- }, {
764
- node: e,
765
- shadow: null
766
- });
767
- }
768
- }
769
- };
770
- return t.sanitize = function(e) {
771
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
772
- if (Wt = !e, Wt && (e = "<!-->"), typeof e != "string" && !Sn(e) && (e = ge(e), typeof e != "string")) throw C("dirty is not a string, aborting");
773
- if (!t.isSupported) return e;
774
- Et ? (I = Dt, L = Ot) : nn(n), (F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && (I = D(I)), F.uponSanitizeAttribute.length > 0 && (L = D(L)), t.removed = [];
775
- let c = It && typeof e != "string" && Sn(e);
776
- if (c) {
777
- hn(e);
778
- let t = Xe(e);
779
- if (typeof t == "string") {
780
- let n = J(t);
781
- if (!I[n] || bt[n]) throw dn(e), C("root node is forbidden and cannot be sanitized in-place");
782
- }
783
- if (bn(e)) throw dn(e), C("root node is clobbered and cannot be sanitized in-place");
784
- try {
785
- Fn(e);
786
- } catch (t) {
787
- throw dn(e), t;
788
- }
789
- } else if (Sn(e)) i = gn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === k.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
790
- else {
791
- if (!U && !B && !H && e.indexOf("<") === -1) return M && jt ? P(e) : e;
792
- if (i = gn(e), !i) return U ? null : jt ? N : "";
793
- }
794
- i && kt && X(i.firstChild);
795
- let l = c ? e : i;
796
- try {
797
- let e = _n(l);
798
- for (; o = e.nextNode();) Dn(o, l), Nn(o, l), xn(o.content) && Pn(o.content);
799
- } catch (n) {
800
- throw c && (dn(e), g(t.removed, (e) => {
801
- e.element && pn(e.element);
802
- })), n;
803
- }
804
- if (c) {
805
- let n = !1;
806
- if (g(t.removed, (t) => {
807
- t.element && (t.element === e && (n = !0), pn(t.element));
808
- }), n) throw C("a node selected for removal could not be safely returned; refusing to sanitize in place");
809
- return B && yn(e), e;
810
- }
811
- if (U) {
812
- if (B && yn(i), At) for (s = ot.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
813
- else s = i;
814
- return (L.shadowroot || L.shadowrootmode) && (s = ct.call(r, s, !0)), s;
815
- }
816
- let u = H ? i.outerHTML : i.innerHTML;
817
- return H && I["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Le, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = vn(u)), M && jt ? P(u) : u;
818
- }, t.setConfig = function() {
819
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
820
- nn(e), Et = !0, Dt = I, Ot = L;
821
- }, t.clearConfig = function() {
822
- Y = null, Et = !1, Dt = null, Ot = null, M = Ze, N = "";
823
- }, t.isValidAttribute = function(e, t, n) {
824
- Y || nn({});
825
- let r = J(e), i = J(t);
826
- return On(r, i, n);
827
- }, t.addHook = function(e, t) {
828
- typeof t == "function" && b(F, e) && ae(F[e], t);
829
- }, t.removeHook = function(e, t) {
830
- if (b(F, e)) {
831
- if (t !== void 0) {
832
- let n = re(F[e], t);
833
- return n === -1 ? void 0 : oe(F[e], n, 1)[0];
834
- }
835
- return ie(F[e]);
836
- }
837
- }, t.removeHooks = function(e) {
838
- b(F, e) && (F[e] = []);
839
- }, t.removeAllHooks = function() {
840
- F = qe();
841
- }, t;
842
- }
843
- var Xe = Ye();
844
- //#endregion
845
- export { Xe as default };