@file-viewer/vue3 3.1.2 → 3.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 (33) hide show
  1. package/README.en.md +3 -426
  2. package/README.md +3 -429
  3. package/dist/components/export.js +78 -78
  4. package/dist/components/export2.js +377 -357
  5. package/dist/components/fit.js +153 -93
  6. package/dist/components/image.js +49 -53
  7. package/dist/components/objectSpread2.js +6 -6
  8. package/dist/components/print-mask.js +4 -12
  9. package/dist/components/printMask.js +2 -5
  10. package/dist/index.mjs +1761 -1561
  11. package/dist/src/package/browser/printLayout.d.ts +0 -4
  12. package/dist/src/package/common/type.d.ts +0 -171
  13. package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +1 -1
  14. package/dist/src/package/components/FileViewer/ShadowFileViewer.vue.d.ts +1 -1
  15. package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +0 -8
  16. package/dist/src/package/components/FileViewer/hooks/useLoading.d.ts +0 -6
  17. package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +0 -6
  18. package/dist/src/package/components/FileViewer/hooks/useViewerLifecycle.d.ts +0 -6
  19. package/dist/src/package/components/FileViewer/hooks/useViewerPresentation.d.ts +0 -6
  20. package/dist/src/package/components/FileViewer/hooks/useViewerPreviewLifecycle.d.ts +0 -6
  21. package/dist/src/package/components/FileViewer/hooks/useViewerPublicApi.d.ts +0 -6
  22. package/dist/src/package/components/FileViewer/hooks/useViewerRenderSurface.d.ts +2 -8
  23. package/dist/src/package/components/FileViewer/hooks/useViewerSourceLoading.d.ts +1 -7
  24. package/dist/src/package/components/FileViewer/hooks/useViewerToolbar.d.ts +0 -6
  25. package/dist/src/package/components/FileViewer/hooks/useViewerViewState.d.ts +0 -6
  26. package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +3 -8
  27. package/dist/src/package/components/FileViewer/index.d.ts +1 -1
  28. package/dist/src/package/components/FileViewer/rendererBridge.d.ts +0 -8
  29. package/dist/src/package/index.d.ts +6 -10
  30. package/dist/src/package/native.d.ts +1 -8
  31. package/dist/src/package/vendors/nestedRender.d.ts +0 -7
  32. package/dist/vue3.css +1 -1
  33. package/package.json +53 -25
@@ -1,21 +1,27 @@
1
1
  import { r as e, t } from "./objectSpread2.js";
2
2
  import { a as n, c as r, i, l as a, n as o, o as s, r as c, s as l, t as u } from "./export.js";
3
3
  import { i as d, n as f, r as p, t as m } from "./printMask.js";
4
- //#region ../../../node_modules/.pnpm/dompurify@3.4.15/node_modules/dompurify/dist/purify.es.mjs
4
+ //#region ../../../node_modules/.pnpm/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.mjs
5
5
  function h(e, t) {
6
+ this.v = e, this.k = t;
7
+ }
8
+ function g(e, t) {
6
9
  (t == null || t > e.length) && (t = e.length);
7
10
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
8
11
  return r;
9
12
  }
10
- function g(e) {
13
+ function _(e) {
11
14
  if (Array.isArray(e)) return e;
12
15
  }
13
- function _(e, t) {
16
+ function ee(e, t) {
14
17
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
15
18
  if (n != null) {
16
19
  var r, i, a, o, s = [], c = !0, l = !1;
17
20
  try {
18
- if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
21
+ if (a = (n = n.call(e)).next, t === 0) {
22
+ if (Object(n) !== n) return;
23
+ c = !1;
24
+ } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
19
25
  } catch (e) {
20
26
  l = !0, i = e;
21
27
  } finally {
@@ -28,46 +34,97 @@ function _(e, t) {
28
34
  return s;
29
35
  }
30
36
  }
31
- function ee() {
37
+ function te() {
32
38
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
33
39
  }
34
- function te(e, t) {
35
- return g(e) || _(e, t) || v(e, t) || ee();
36
- }
37
40
  function v(e, t) {
41
+ return _(e) || ee(e, t) || y(e, t) || te();
42
+ }
43
+ function y(e, t) {
38
44
  if (e) {
39
- if (typeof e == "string") return h(e, t);
45
+ if (typeof e == "string") return g(e, t);
40
46
  var n = {}.toString.call(e).slice(8, -1);
41
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? h(e, t) : void 0;
47
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? g(e, t) : void 0;
42
48
  }
43
49
  }
44
- var ne = Object.entries, y = Object.setPrototypeOf, re = Object.isFrozen, b = Object.getPrototypeOf, ie = Object.getOwnPropertyDescriptor, x = Object.freeze, S = Object.seal, C = Object.create, w = typeof Reflect < "u" && Reflect, T = w.apply, E = w.construct;
45
- x || (x = function(e) {
50
+ function b(e) {
51
+ var t, n;
52
+ function r(t, n) {
53
+ try {
54
+ var a = e[t](n), o = a.value, s = o instanceof h;
55
+ Promise.resolve(s ? o.v : o).then(function(n) {
56
+ if (s) {
57
+ var c = t === "return" && o.k ? t : "next";
58
+ if (!o.k || n.done) return r(c, n);
59
+ n = e[c](n).value;
60
+ }
61
+ i(!!a.done, n);
62
+ }, function(e) {
63
+ r("throw", e);
64
+ });
65
+ } catch (e) {
66
+ i(2, e);
67
+ }
68
+ }
69
+ function i(e, i) {
70
+ e === 2 ? t.reject(i) : t.resolve({
71
+ value: i,
72
+ done: e
73
+ }), (t = t.next) ? r(t.key, t.arg) : n = null;
74
+ }
75
+ this._invoke = function(e, i) {
76
+ return new Promise(function(a, o) {
77
+ var s = {
78
+ key: e,
79
+ arg: i,
80
+ resolve: a,
81
+ reject: o,
82
+ next: null
83
+ };
84
+ n ? n = n.next = s : (t = n = s, r(e, i));
85
+ });
86
+ }, typeof e.return != "function" && (this.return = void 0);
87
+ }
88
+ b.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
89
+ return this;
90
+ }, b.prototype.next = function(e) {
91
+ return this._invoke("next", e);
92
+ }, b.prototype.throw = function(e) {
93
+ return this._invoke("throw", e);
94
+ }, b.prototype.return = function(e) {
95
+ return this._invoke("return", e);
96
+ };
97
+ var ne = Object.entries, x = Object.setPrototypeOf, re = Object.isFrozen, S = Object.getPrototypeOf, C = Object.getOwnPropertyDescriptor, w = Object.freeze, T = Object.seal, E = Object.create, ie = typeof Reflect < "u" && Reflect, ae = ie.apply, D = ie.construct;
98
+ w || (w = function(e) {
46
99
  return e;
47
- }), S || (S = function(e) {
100
+ }), T || (T = function(e) {
48
101
  return e;
49
- }), T || (T = function(e, t) {
102
+ }), ae || (ae = function(e, t) {
50
103
  var n = [...arguments].slice(2);
51
104
  return e.apply(t, n);
52
- }), E || (E = function(e) {
105
+ }), D || (D = function(e) {
53
106
  return new e(...[...arguments].slice(1));
54
107
  });
55
- var D = N(Array.prototype.forEach), ae = N(Array.prototype.lastIndexOf), oe = N(Array.prototype.pop), se = N(Array.prototype.push), ce = N(Array.prototype.splice), O = Array.isArray, le = N(String.prototype.toLowerCase), ue = N(String.prototype.toString), de = N(String.prototype.match), fe = N(String.prototype.replace), pe = N(String.prototype.indexOf), me = N(String.prototype.trim), he = N(Number.prototype.toString), ge = N(Boolean.prototype.toString), _e = typeof BigInt > "u" ? null : N(BigInt.prototype.toString), k = typeof Symbol > "u" ? null : N(Symbol.prototype.toString), A = N(Object.prototype.hasOwnProperty), ve = N(Object.prototype.toString), j = N(RegExp.prototype.test), M = ye(TypeError);
56
- function N(e) {
108
+ var O = P(Array.prototype.forEach);
109
+ Array.prototype.indexOf;
110
+ var oe = P(Array.prototype.lastIndexOf), se = P(Array.prototype.pop), ce = P(Array.prototype.push);
111
+ Array.prototype.slice;
112
+ var le = P(Array.prototype.splice), ue = Array.isArray, de = P(String.prototype.toLowerCase), fe = P(String.prototype.toString), pe = P(String.prototype.match), me = P(String.prototype.replace), he = P(String.prototype.indexOf), ge = P(String.prototype.trim), _e = P(Number.prototype.toString), k = P(Boolean.prototype.toString), ve = typeof BigInt > "u" ? null : P(BigInt.prototype.toString), ye = typeof Symbol > "u" ? null : P(Symbol.prototype.toString), A = P(Object.prototype.hasOwnProperty), j = P(Object.prototype.toString), M = P(RegExp.prototype.test), N = be(TypeError);
113
+ function P(e) {
57
114
  return function(t) {
58
115
  t instanceof RegExp && (t.lastIndex = 0);
59
116
  var n = [...arguments].slice(1);
60
- return T(e, t, n);
117
+ return ae(e, t, n);
61
118
  };
62
119
  }
63
- function ye(e) {
120
+ function be(e) {
64
121
  return function() {
65
- return E(e, [...arguments]);
122
+ return D(e, [...arguments]);
66
123
  };
67
124
  }
68
- function P(e, t) {
69
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : le;
70
- if (y && y(e, null), !O(t)) return e;
125
+ function F(e, t) {
126
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : de;
127
+ if (x && x(e, null), !ue(t)) return e;
71
128
  let r = t.length;
72
129
  for (; r--;) {
73
130
  let i = t[r];
@@ -79,62 +136,62 @@ function P(e, t) {
79
136
  }
80
137
  return e;
81
138
  }
82
- function be(e) {
139
+ function xe(e) {
83
140
  for (let t = 0; t < e.length; t++) A(e, t) || (e[t] = null);
84
141
  return e;
85
142
  }
86
- function F(e) {
87
- let t = C(null);
143
+ function I(e) {
144
+ let t = E(null);
88
145
  for (let r of ne(e)) {
89
- var n = te(r, 2);
146
+ var n = v(r, 2);
90
147
  let i = n[0], a = n[1];
91
- A(e, i) && (t[i] = O(a) ? be(a) : a && typeof a == "object" && a.constructor === Object ? F(a) : a);
148
+ A(e, i) && (t[i] = ue(a) ? xe(a) : a && typeof a == "object" && a.constructor === Object ? I(a) : a);
92
149
  }
93
150
  return t;
94
151
  }
95
- function xe(e) {
152
+ function Se(e) {
96
153
  switch (typeof e) {
97
154
  case "string": return e;
98
- case "number": return he(e);
99
- case "boolean": return ge(e);
100
- case "bigint": return _e ? _e(e) : "0";
101
- case "symbol": return k ? k(e) : "Symbol()";
102
- case "undefined": return ve(e);
155
+ case "number": return _e(e);
156
+ case "boolean": return k(e);
157
+ case "bigint": return ve ? ve(e) : "0";
158
+ case "symbol": return ye ? ye(e) : "Symbol()";
159
+ case "undefined": return j(e);
103
160
  case "function":
104
161
  case "object": {
105
- if (e === null) return ve(e);
106
- let t = e, n = I(t, "toString");
162
+ if (e === null) return j(e);
163
+ let t = e, n = L(t, "toString");
107
164
  if (typeof n == "function") {
108
165
  let e = n(t);
109
- return typeof e == "string" ? e : ve(e);
166
+ return typeof e == "string" ? e : j(e);
110
167
  }
111
- return ve(e);
168
+ return j(e);
112
169
  }
113
- default: return ve(e);
170
+ default: return j(e);
114
171
  }
115
172
  }
116
- function I(e, t) {
173
+ function L(e, t) {
117
174
  for (; e !== null;) {
118
- let n = ie(e, t);
175
+ let n = C(e, t);
119
176
  if (n) {
120
- if (n.get) return N(n.get);
121
- if (typeof n.value == "function") return N(n.value);
177
+ if (n.get) return P(n.get);
178
+ if (typeof n.value == "function") return P(n.value);
122
179
  }
123
- e = b(e);
180
+ e = S(e);
124
181
  }
125
182
  function n() {
126
183
  return null;
127
184
  }
128
185
  return n;
129
186
  }
130
- function Se(e) {
187
+ function Ce(e) {
131
188
  try {
132
- return j(e, ""), !0;
189
+ return M(e, ""), !0;
133
190
  } catch (e) {
134
191
  return !1;
135
192
  }
136
193
  }
137
- var Ce = x(/* @__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(".")), we = x(/* @__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(".")), Te = x([
194
+ var we = w(/* @__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(".")), Te = w(/* @__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(".")), Ee = w([
138
195
  "feBlend",
139
196
  "feColorMatrix",
140
197
  "feComponentTransfer",
@@ -160,7 +217,7 @@ var Ce = x(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
160
217
  "feSpotLight",
161
218
  "feTile",
162
219
  "feTurbulence"
163
- ]), Ee = x([
220
+ ]), De = w([
164
221
  "animate",
165
222
  "color-profile",
166
223
  "cursor",
@@ -183,7 +240,7 @@ var Ce = x(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
183
240
  "solidcolor",
184
241
  "unknown",
185
242
  "use"
186
- ]), De = x(/* @__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(".")), Oe = x([
243
+ ]), Oe = w(/* @__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(".")), ke = w([
187
244
  "maction",
188
245
  "maligngroup",
189
246
  "malignmark",
@@ -199,13 +256,13 @@ var Ce = x(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
199
256
  "annotation-xml",
200
257
  "mprescripts",
201
258
  "none"
202
- ]), ke = x(["#text"]), Ae = x(/* @__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(".")), je = x(/* @__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(".")), Me = x(/* @__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(".")), Ne = x([
259
+ ]), Ae = w(["#text"]), je = w(/* @__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(".")), Me = w(/* @__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(".")), Ne = w(/* @__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(".")), Pe = w([
203
260
  "xlink:href",
204
261
  "xml:id",
205
262
  "xlink:title",
206
263
  "xml:space",
207
264
  "xmlns:xlink"
208
- ]), Pe = S(/{{[\w\W]*|^[\w\W]*}}/g), Fe = S(/<%[\w\W]*|^[\w\W]*%>/g), Ie = S(/\${[\w\W]*/g), Le = S(/^data-[\-\w.\u00B7-\uFFFF]+$/), Re = S(/^aria-[\-\w]+$/), ze = S(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Be = S(/^(?:\w+script|data):/i), Ve = S(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), He = S(/^html$/i), Ue = S(/^[a-z][.\w]*(-[.\w]+)+$/i), We = S(/<[/\w!]/g), Ge = S(/<[/\w]/g), Ke = S(/<\/no(script|embed|frames)/i), qe = S(/\/>/i), L = {
265
+ ]), Fe = T(/{{[\w\W]*|^[\w\W]*}}/g), Ie = T(/<%[\w\W]*|^[\w\W]*%>/g), Le = T(/\${[\w\W]*/g), Re = T(/^data-[\-\w.\u00B7-\uFFFF]+$/), ze = T(/^aria-[\-\w]+$/), Be = T(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ve = T(/^(?:\w+script|data):/i), He = T(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ue = T(/^html$/i), We = T(/^[a-z][.\w]*(-[.\w]+)+$/i), Ge = T(/<[/\w!]/g), Ke = T(/<[/\w]/g), qe = T(/<\/no(script|embed|frames)/i), Je = T(/\/>/i), R = {
209
266
  element: 1,
210
267
  attribute: 2,
211
268
  text: 3,
@@ -218,7 +275,7 @@ var Ce = x(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
218
275
  documentType: 10,
219
276
  documentFragment: 11,
220
277
  notation: 12
221
- }, Je = [
278
+ }, Ye = [
222
279
  "style",
223
280
  "script",
224
281
  "xmp",
@@ -227,14 +284,14 @@ var Ce = x(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
227
284
  "noframes",
228
285
  "plaintext",
229
286
  "noscript"
230
- ], Ye = x(P({}, Je)), Xe = function() {
287
+ ], Xe = w(F({}, Ye)), Ze = function() {
231
288
  let e = {};
232
- return D(Je, (t) => {
233
- e[t] = S(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
234
- }), x(e);
235
- }(), Ze = function() {
289
+ return O(Ye, (t) => {
290
+ e[t] = T(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
291
+ }), w(e);
292
+ }(), Qe = function() {
236
293
  return typeof window > "u" ? null : window;
237
- }, Qe = function(e, t) {
294
+ }, $e = function(e, t) {
238
295
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
239
296
  let n = null, r = "data-tt-policy-suffix";
240
297
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -251,7 +308,7 @@ var Ce = x(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
251
308
  } catch (e) {
252
309
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
253
310
  }
254
- }, $e = function() {
311
+ }, et = function() {
255
312
  return {
256
313
  afterSanitizeAttributes: [],
257
314
  afterSanitizeElements: [],
@@ -263,60 +320,60 @@ var Ce = x(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
263
320
  uponSanitizeElement: [],
264
321
  uponSanitizeShadowNode: []
265
322
  };
266
- }, R = function(e, t, n, r) {
267
- return A(e, t) && O(e[t]) ? P(r.base ? F(r.base) : {}, e[t], r.transform) : n;
268
- }, et = function(e, t, n) {
323
+ }, z = function(e, t, n, r) {
324
+ return A(e, t) && ue(e[t]) ? F(r.base ? I(r.base) : {}, e[t], r.transform) : n;
325
+ }, tt = function(e, t, n) {
269
326
  let r = A(e, t) ? e[t] : void 0;
270
- return r && typeof r == "object" ? F(r) : n();
327
+ return r && typeof r == "object" ? I(r) : n();
271
328
  };
272
- function tt() {
273
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ze(), t = (e) => tt(e);
274
- if (t.version = "3.4.15", t.removed = [], !e || !e.document || e.document.nodeType !== L.document || !e.Element) return t.isSupported = !1, t;
329
+ function nt() {
330
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Qe(), t = (e) => nt(e);
331
+ if (t.version = "3.4.16", t.removed = [], !e || !e.document || e.document.nodeType !== R.document || !e.Element) return t.isSupported = !1, t;
275
332
  let n = e.document, r = n, i = r.currentScript;
276
333
  e.DocumentFragment;
277
334
  let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
278
335
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
279
- let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = I(d, "cloneNode"), p = I(d, "remove"), m = I(d, "removeAttributeNode"), h = I(d, "nextSibling"), g = I(d, "childNodes"), _ = I(d, "parentNode"), ee = I(d, "shadowRoot"), te = I(d, "attributes"), v = o && o.prototype ? I(o.prototype, "nodeType") : null, y = o && o.prototype ? I(o.prototype, "nodeName") : null, re = o && o.prototype ? I(o.prototype, "ownerDocument") : null, b = function(e) {
336
+ let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = L(d, "cloneNode"), p = L(d, "remove"), m = L(d, "removeAttributeNode"), h = L(d, "nextSibling"), g = L(d, "childNodes"), _ = L(d, "parentNode"), ee = L(d, "shadowRoot"), te = L(d, "attributes"), v = o && o.prototype ? L(o.prototype, "nodeType") : null, y = o && o.prototype ? L(o.prototype, "nodeName") : null, b = o && o.prototype ? L(o.prototype, "ownerDocument") : null, x = function(e) {
280
337
  return v ? v(e) : e.nodeType;
281
- }, ie = function(e) {
338
+ }, re = function(e) {
282
339
  return y ? y(e) : e.nodeName;
283
340
  };
284
341
  if (typeof a == "function") {
285
342
  let e = n.createElement("template");
286
343
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
287
344
  }
288
- let w, T = "", E, he = !1, ge = 0, _e = function() {
289
- if (ge > 0) throw M("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
+ let S, C = "", ie, ae = !1, D = 0, _e = function() {
346
+ if (D > 0) throw N("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.");
290
347
  }, k = function(e) {
291
- _e(), ge++;
348
+ _e(), D++;
292
349
  try {
293
- return w.createHTML(e);
350
+ return S.createHTML(e);
294
351
  } finally {
295
- ge--;
352
+ D--;
296
353
  }
297
354
  }, ve = function(e) {
298
- _e(), ge++;
355
+ _e(), D++;
299
356
  try {
300
- return w.createScriptURL(e);
357
+ return S.createScriptURL(e);
301
358
  } finally {
302
- ge--;
359
+ D--;
303
360
  }
304
- }, N = function() {
305
- return he || (E = Qe(u, i), he = !0), E;
306
- }, ye = n, be = ye.implementation, Je = ye.createNodeIterator, nt = ye.createDocumentFragment, rt = ye.getElementsByTagName, it = r.importNode, z = $e();
307
- t.isSupported = typeof ne == "function" && typeof _ == "function" && be && be.createHTMLDocument !== void 0;
308
- let at = Pe, ot = Fe, st = Ie, ct = Le, lt = Re, ut = Be, dt = Ve, ft = Ue, pt = ze, B = null, mt = P({}, [
309
- ...Ce,
361
+ }, ye = function() {
362
+ return ae || (ie = $e(u, i), ae = !0), ie;
363
+ }, j = n, P = j.implementation, be = j.createNodeIterator, xe = j.createDocumentFragment, Ye = j.getElementsByTagName, rt = r.importNode, B = et();
364
+ t.isSupported = typeof ne == "function" && typeof _ == "function" && P && P.createHTMLDocument !== void 0;
365
+ let it = Fe, at = Ie, ot = Le, st = Re, ct = ze, lt = Ve, ut = He, dt = We, ft = Be, V = null, pt = F({}, [
310
366
  ...we,
311
367
  ...Te,
312
- ...De,
313
- ...ke
314
- ]), V = null, ht = P({}, [
315
- ...Ae,
368
+ ...Ee,
369
+ ...Oe,
370
+ ...Ae
371
+ ]), H = null, mt = F({}, [
316
372
  ...je,
317
373
  ...Me,
318
- ...Ne
319
- ]), H = Object.seal(C(null, {
374
+ ...Ne,
375
+ ...Pe
376
+ ]), U = Object.seal(E(null, {
320
377
  tagNameCheck: {
321
378
  writable: !0,
322
379
  configurable: !1,
@@ -335,7 +392,7 @@ function tt() {
335
392
  enumerable: !0,
336
393
  value: !1
337
394
  }
338
- })), U = null, gt = null, W = Object.seal(C(null, {
395
+ })), ht = null, gt = null, W = Object.seal(E(null, {
339
396
  tagCheck: {
340
397
  writable: !0,
341
398
  configurable: !1,
@@ -348,14 +405,14 @@ function tt() {
348
405
  enumerable: !0,
349
406
  value: null
350
407
  }
351
- })), _t = !0, vt = !0, yt = !1, bt = !0, G = !1, K = !0, q = !1, xt = !1, St = null, Ct = null, wt = !1, J = !1, Tt = !1, Et = !1, Dt = !0, Ot = !1, kt = "user-content-", At = !0, jt = !1, Mt = {}, Nt = null, Pt = P({}, /* @__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(".")), Ft = null, It = P({}, [
408
+ })), _t = !0, vt = !0, yt = !1, bt = !0, G = !1, K = !0, q = !1, xt = !1, St = null, Ct = null, wt = !1, J = !1, Tt = !1, Et = !1, Dt = !0, Ot = !1, kt = "user-content-", At = !0, jt = !1, Y = {}, Mt = null, Nt = F({}, /* @__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(".")), Pt = null, Ft = F({}, [
352
409
  "audio",
353
410
  "video",
354
411
  "img",
355
412
  "source",
356
413
  "image",
357
414
  "track"
358
- ]), Lt = null, Rt = P({}, [
415
+ ]), It = null, Lt = F({}, [
359
416
  "alt",
360
417
  "class",
361
418
  "for",
@@ -370,77 +427,77 @@ function tt() {
370
427
  "value",
371
428
  "style",
372
429
  "xmlns"
373
- ]), zt = "http://www.w3.org/1998/Math/MathML", Bt = "http://www.w3.org/2000/svg", Y = "http://www.w3.org/1999/xhtml", Vt = Y, Ht = !1, Ut = null, Wt = P({}, [
430
+ ]), Rt = "http://www.w3.org/1998/Math/MathML", zt = "http://www.w3.org/2000/svg", X = "http://www.w3.org/1999/xhtml", Bt = X, Vt = !1, Ht = null, Ut = F({}, [
431
+ Rt,
374
432
  zt,
375
- Bt,
376
- Y
377
- ], ue), Gt = x([
433
+ X
434
+ ], fe), Wt = w([
378
435
  "mi",
379
436
  "mo",
380
437
  "mn",
381
438
  "ms",
382
439
  "mtext"
383
- ]), Kt = P({}, Gt), qt = x(["annotation-xml"]), Jt = P({}, qt), Yt = P({}, [
440
+ ]), Gt = F({}, Wt), Kt = w(["annotation-xml"]), qt = F({}, Kt), Jt = F({}, [
384
441
  "title",
385
442
  "style",
386
443
  "font",
387
444
  "a",
388
445
  "script"
389
- ]), Xt = null, Zt = ["application/xhtml+xml", "text/html"], X = null, Qt = null, $t = n.createElement("form"), en = function(e) {
446
+ ]), Yt = null, Xt = ["application/xhtml+xml", "text/html"], Z = null, Zt = null, Qt = n.createElement("form"), $t = function(e) {
390
447
  return e instanceof RegExp || e instanceof Function;
391
- }, tn = function() {
448
+ }, en = function() {
392
449
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
393
- if (Qt && Qt === e) return;
394
- (!e || typeof e != "object") && (e = {}), e = F(e), Xt = Zt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = Xt === "application/xhtml+xml" ? ue : le, B = R(e, "ALLOWED_TAGS", mt, { transform: X }), V = R(e, "ALLOWED_ATTR", ht, { transform: X }), Ut = R(e, "ALLOWED_NAMESPACES", Wt, { transform: ue }), Lt = R(e, "ADD_URI_SAFE_ATTR", Rt, {
395
- transform: X,
396
- base: Rt
397
- }), Ft = R(e, "ADD_DATA_URI_TAGS", It, {
398
- transform: X,
399
- base: It
400
- }), Nt = R(e, "FORBID_CONTENTS", Pt, { transform: X }), U = R(e, "FORBID_TAGS", F({}), { transform: X }), gt = R(e, "FORBID_ATTR", F({}), { transform: X }), Mt = A(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? F(e.USE_PROFILES) : e.USE_PROFILES : !1, _t = e.ALLOW_ARIA_ATTR !== !1, vt = e.ALLOW_DATA_ATTR !== !1, yt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, bt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, G = e.SAFE_FOR_TEMPLATES || !1, K = e.SAFE_FOR_XML !== !1, q = e.WHOLE_DOCUMENT || !1, J = e.RETURN_DOM || !1, Tt = e.RETURN_DOM_FRAGMENT || !1, Et = e.RETURN_TRUSTED_TYPE || !1, wt = e.FORCE_BODY || !1, Dt = e.SANITIZE_DOM !== !1, Ot = e.SANITIZE_NAMED_PROPS || !1, At = e.KEEP_CONTENT !== !1, jt = e.IN_PLACE || !1, pt = Se(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : ze, Vt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Y, Kt = et(e, "MATHML_TEXT_INTEGRATION_POINTS", () => P({}, Gt)), Jt = et(e, "HTML_INTEGRATION_POINTS", () => P({}, qt));
401
- let t = et(e, "CUSTOM_ELEMENT_HANDLING", () => C(null));
402
- if (H = C(null), A(t, "tagNameCheck") && en(t.tagNameCheck) && (H.tagNameCheck = t.tagNameCheck), A(t, "attributeNameCheck") && en(t.attributeNameCheck) && (H.attributeNameCheck = t.attributeNameCheck), A(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), S(H), G && (vt = !1), Tt && (J = !0), Mt && (B = P({}, ke), V = C(null), Mt.html === !0 && (P(B, Ce), P(V, Ae)), Mt.svg === !0 && (P(B, we), P(V, je), P(V, Ne)), Mt.svgFilters === !0 && (P(B, Te), P(V, je), P(V, Ne)), Mt.mathMl === !0 && (P(B, De), P(V, Me), P(V, Ne))), W.tagCheck = null, W.attributeCheck = null, A(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? W.tagCheck = e.ADD_TAGS : O(e.ADD_TAGS) && (B === mt && (B = F(B)), P(B, e.ADD_TAGS, X))), A(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? W.attributeCheck = e.ADD_ATTR : O(e.ADD_ATTR) && (V === ht && (V = F(V)), P(V, e.ADD_ATTR, X))), A(e, "ADD_FORBID_CONTENTS") && O(e.ADD_FORBID_CONTENTS) && (Nt === Pt && (Nt = F(Nt)), P(Nt, e.ADD_FORBID_CONTENTS, X)), At && (B["#text"] = !0), q && P(B, [
450
+ if (Zt && Zt === e) return;
451
+ (!e || typeof e != "object") && (e = {}), e = I(e), Yt = Xt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Z = Yt === "application/xhtml+xml" ? fe : de, V = z(e, "ALLOWED_TAGS", pt, { transform: Z }), H = z(e, "ALLOWED_ATTR", mt, { transform: Z }), Ht = z(e, "ALLOWED_NAMESPACES", Ut, { transform: fe }), It = z(e, "ADD_URI_SAFE_ATTR", Lt, {
452
+ transform: Z,
453
+ base: Lt
454
+ }), Pt = z(e, "ADD_DATA_URI_TAGS", Ft, {
455
+ transform: Z,
456
+ base: Ft
457
+ }), Mt = z(e, "FORBID_CONTENTS", Nt, { transform: Z }), ht = z(e, "FORBID_TAGS", I({}), { transform: Z }), gt = z(e, "FORBID_ATTR", I({}), { transform: Z }), Y = A(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? I(e.USE_PROFILES) : e.USE_PROFILES : !1, _t = e.ALLOW_ARIA_ATTR !== !1, vt = e.ALLOW_DATA_ATTR !== !1, yt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, bt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, G = e.SAFE_FOR_TEMPLATES || !1, K = e.SAFE_FOR_XML !== !1, q = e.WHOLE_DOCUMENT || !1, J = e.RETURN_DOM || !1, Tt = e.RETURN_DOM_FRAGMENT || !1, Et = e.RETURN_TRUSTED_TYPE || !1, wt = e.FORCE_BODY || !1, Dt = e.SANITIZE_DOM !== !1, Ot = e.SANITIZE_NAMED_PROPS || !1, At = e.KEEP_CONTENT !== !1, jt = e.IN_PLACE || !1, ft = Ce(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Be, Bt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : X, Gt = tt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => F({}, Wt)), qt = tt(e, "HTML_INTEGRATION_POINTS", () => F({}, Kt));
458
+ let t = tt(e, "CUSTOM_ELEMENT_HANDLING", () => E(null));
459
+ if (U = E(null), A(t, "tagNameCheck") && $t(t.tagNameCheck) && (U.tagNameCheck = t.tagNameCheck), A(t, "attributeNameCheck") && $t(t.attributeNameCheck) && (U.attributeNameCheck = t.attributeNameCheck), A(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (U.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), T(U), G && (vt = !1), Tt && (J = !0), Y && (V = F({}, Ae), H = E(null), Y.html === !0 && (F(V, we), F(H, je)), Y.svg === !0 && (F(V, Te), F(H, Me), F(H, Pe)), Y.svgFilters === !0 && (F(V, Ee), F(H, Me), F(H, Pe)), Y.mathMl === !0 && (F(V, Oe), F(H, Ne), F(H, Pe))), W.tagCheck = null, W.attributeCheck = null, A(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? W.tagCheck = e.ADD_TAGS : ue(e.ADD_TAGS) && (V === pt && (V = I(V)), F(V, e.ADD_TAGS, Z))), A(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? W.attributeCheck = e.ADD_ATTR : ue(e.ADD_ATTR) && (H === mt && (H = I(H)), F(H, e.ADD_ATTR, Z))), A(e, "ADD_FORBID_CONTENTS") && ue(e.ADD_FORBID_CONTENTS) && (Mt === Nt && (Mt = I(Mt)), F(Mt, e.ADD_FORBID_CONTENTS, Z)), At && (V["#text"] = !0), q && F(V, [
403
460
  "html",
404
461
  "head",
405
462
  "body"
406
- ]), B.table && (P(B, ["tbody"]), delete U.tbody), e.TRUSTED_TYPES_POLICY) {
407
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw M("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
408
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw M("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
409
- let t = w;
410
- w = e.TRUSTED_TYPES_POLICY;
463
+ ]), V.table && (F(V, ["tbody"]), delete ht.tbody), e.TRUSTED_TYPES_POLICY) {
464
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw N("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
465
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw N("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
466
+ let t = S;
467
+ S = e.TRUSTED_TYPES_POLICY;
411
468
  try {
412
- T = k("");
469
+ C = k("");
413
470
  } catch (e) {
414
- throw w = t, e;
471
+ throw S = t, e;
415
472
  }
416
- } else e.TRUSTED_TYPES_POLICY === null ? (w = void 0, T = "") : (w === void 0 && (w = N()), w && typeof T == "string" && (T = k("")));
417
- x && x(e), Qt = e;
418
- }, nn = P({}, [
419
- ...we,
473
+ } else e.TRUSTED_TYPES_POLICY === null ? (S = void 0, C = "") : (S === void 0 && (S = ye()), S && typeof C == "string" && (C = k("")));
474
+ w && w(e), Zt = e;
475
+ }, tn = F({}, [
420
476
  ...Te,
421
- ...Ee
422
- ]), rn = P({}, [...De, ...Oe]), an = function(e, t, n) {
423
- return t.namespaceURI === Y ? e === "svg" : t.namespaceURI === zt ? e === "svg" && (n === "annotation-xml" || Kt[n]) : !!nn[e];
477
+ ...Ee,
478
+ ...De
479
+ ]), nn = F({}, [...Oe, ...ke]), rn = function(e, t, n) {
480
+ return t.namespaceURI === X ? e === "svg" : t.namespaceURI === Rt ? e === "svg" && (n === "annotation-xml" || Gt[n]) : !!tn[e];
481
+ }, an = function(e, t, n) {
482
+ return t.namespaceURI === X ? e === "math" : t.namespaceURI === zt ? e === "math" && qt[n] : !!nn[e];
424
483
  }, on = function(e, t, n) {
425
- return t.namespaceURI === Y ? e === "math" : t.namespaceURI === Bt ? e === "math" && Jt[n] : !!rn[e];
426
- }, sn = function(e, t, n) {
427
- return t.namespaceURI === Bt && !Jt[n] || t.namespaceURI === zt && !Kt[n] ? !1 : !rn[e] && (Yt[e] || !nn[e]);
428
- }, cn = function(e) {
484
+ return t.namespaceURI === zt && !qt[n] || t.namespaceURI === Rt && !Gt[n] ? !1 : !nn[e] && (Jt[e] || !tn[e]);
485
+ }, sn = function(e) {
429
486
  let t = _(e);
430
487
  (!t || !t.tagName) && (t = {
431
- namespaceURI: Vt,
488
+ namespaceURI: Bt,
432
489
  tagName: "template"
433
490
  });
434
- let n = le(e.tagName), r = le(t.tagName);
435
- return Ut[e.namespaceURI] ? e.namespaceURI === Bt ? an(n, t, r) : e.namespaceURI === zt ? on(n, t, r) : e.namespaceURI === Y ? sn(n, t, r) : !!(Xt === "application/xhtml+xml" && Ut[e.namespaceURI]) : !1;
436
- }, Z = function(e) {
437
- se(t.removed, { element: e });
491
+ let n = de(e.tagName), r = de(t.tagName);
492
+ return Ht[e.namespaceURI] ? e.namespaceURI === zt ? rn(n, t, r) : e.namespaceURI === Rt ? an(n, t, r) : e.namespaceURI === X ? on(n, t, r) : !!(Yt === "application/xhtml+xml" && Ht[e.namespaceURI]) : !1;
493
+ }, Q = function(e) {
494
+ ce(t.removed, { element: e });
438
495
  try {
439
496
  _(e).removeChild(e);
440
497
  } catch (t) {
441
- if (p(e), !_(e)) throw M("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
498
+ if (p(e), !_(e)) throw N("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
442
499
  }
443
- }, ln = function(e, t, n) {
500
+ }, cn = function(e, t, n) {
444
501
  try {
445
502
  m(e, t);
446
503
  } catch (t) {
@@ -448,14 +505,14 @@ function tt() {
448
505
  e.removeAttribute(n);
449
506
  } catch (e) {}
450
507
  }
451
- }, un = function(e) {
508
+ }, ln = function(e) {
452
509
  fn(e);
453
510
  let t = g(e);
454
511
  if (t) {
455
512
  let e = [];
456
- D(t, (t) => {
457
- se(e, t);
458
- }), D(e, (e) => {
513
+ O(t, (t) => {
514
+ ce(e, t);
515
+ }), O(e, (e) => {
459
516
  try {
460
517
  p(e);
461
518
  } catch (e) {}
@@ -464,15 +521,15 @@ function tt() {
464
521
  let n = te(e);
465
522
  if (n) for (let t = n.length - 1; t >= 0; --t) {
466
523
  let r = n[t], i = r && r.name;
467
- typeof i == "string" && ln(e, r, i);
524
+ typeof i == "string" && cn(e, r, i);
468
525
  }
469
- }, Q = function(e, n, r) {
526
+ }, un = function(e, n, r) {
470
527
  if (!r) try {
471
528
  r = n.getAttributeNode(e);
472
529
  } catch (e) {
473
530
  r = null;
474
531
  }
475
- se(t.removed, {
532
+ ce(t.removed, {
476
533
  attribute: r || null,
477
534
  from: n
478
535
  });
@@ -485,7 +542,7 @@ function tt() {
485
542
  }
486
543
  if (e === "is") {
487
544
  if (J || Tt) try {
488
- Z(n);
545
+ Q(n);
489
546
  } catch (e) {}
490
547
  else try {
491
548
  n.setAttribute(e, "");
@@ -495,13 +552,13 @@ function tt() {
495
552
  let t = te(e);
496
553
  if (t) for (let n = t.length - 1; n >= 0; --n) {
497
554
  let r = t[n], i = r && r.name;
498
- typeof i != "string" || V[X(i)] || ln(e, r, i);
555
+ typeof i != "string" || H[Z(i)] || cn(e, r, i);
499
556
  }
500
557
  }, fn = function(e) {
501
558
  let t = [e];
502
559
  for (; t.length > 0;) {
503
560
  let e = t.pop();
504
- b(e) === L.element && dn(e);
561
+ x(e) === R.element && dn(e);
505
562
  let n = g(e);
506
563
  if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
507
564
  }
@@ -511,15 +568,15 @@ function tt() {
511
568
  if (!K) return;
512
569
  let t = [e];
513
570
  for (; t.length > 0;) {
514
- let e = t.pop(), n = b(e);
515
- if (n === L.processingInstruction || n === L.comment && j(Ge, e.data)) {
571
+ let e = t.pop(), n = x(e);
572
+ if (n === R.processingInstruction || n === R.comment && M(Ke, e.data)) {
516
573
  try {
517
574
  p(e);
518
575
  } catch (e) {}
519
576
  continue;
520
577
  }
521
- if (n === L.element) {
522
- let t = e, n = X(ie(e));
578
+ if (n === R.element) {
579
+ let t = e, n = Z(re(e));
523
580
  try {
524
581
  t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && pn("for", n) && t.removeAttribute("for");
525
582
  } catch (e) {}
@@ -531,43 +588,43 @@ function tt() {
531
588
  let t = null, r = null;
532
589
  if (wt) e = "<remove></remove>" + e;
533
590
  else {
534
- let t = de(e, /^[\r\n\t ]+/);
591
+ let t = pe(e, /^[\r\n\t ]+/);
535
592
  r = t && t[0];
536
593
  }
537
- Xt === "application/xhtml+xml" && Vt === Y && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
538
- let i = w ? k(e) : e;
539
- if (Vt === Y) try {
540
- t = new l().parseFromString(i, Xt);
594
+ Yt === "application/xhtml+xml" && Bt === X && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
595
+ let i = S ? k(e) : e;
596
+ if (Bt === X) try {
597
+ t = new l().parseFromString(i, Yt);
541
598
  } catch (e) {}
542
599
  if (!t || !t.documentElement) {
543
- t = be.createDocument(Vt, "template", null);
600
+ t = P.createDocument(Bt, "template", null);
544
601
  try {
545
- t.documentElement.innerHTML = Ht ? T : i;
602
+ t.documentElement.innerHTML = Vt ? C : i;
546
603
  } catch (e) {}
547
604
  }
548
605
  let a = t.body || t.documentElement;
549
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Vt === Y ? rt.call(t, q ? "html" : "body")[0] : q ? t.documentElement : a;
606
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Bt === X ? Ye.call(t, q ? "html" : "body")[0] : q ? t.documentElement : a;
550
607
  }, gn = function(e) {
551
- let t = re ? re(e) : e.ownerDocument;
552
- return Je.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
608
+ let t = b ? b(e) : e.ownerDocument;
609
+ return be.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
553
610
  }, _n = function(e) {
554
- return e = fe(e, at, " "), e = fe(e, ot, " "), e = fe(e, st, " "), e;
611
+ return e = me(e, it, " "), e = me(e, at, " "), e = me(e, ot, " "), e;
555
612
  }, vn = function(e) {
556
613
  var t;
557
614
  e.normalize();
558
- let n = re ? re(e) : e.ownerDocument, r = Je.call(n || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), i = r.nextNode();
615
+ let n = b ? b(e) : e.ownerDocument, r = be.call(n || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), i = r.nextNode();
559
616
  for (; i;) i.data = _n(i.data), i = r.nextNode();
560
617
  let a = (t = e.querySelectorAll) == null ? void 0 : t.call(e, "template");
561
- a && D(a, (e) => {
618
+ a && O(a, (e) => {
562
619
  bn(e.content) && vn(e.content);
563
620
  });
564
621
  }, yn = function(e) {
565
622
  let t = y ? y(e) : null;
566
- return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== te(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 !== v(e) || e.childNodes !== g(e);
623
+ return typeof t != "string" || Z(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== te(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 !== v(e) || e.childNodes !== g(e);
567
624
  }, bn = function(e) {
568
625
  if (!v || typeof e != "object" || !e) return !1;
569
626
  try {
570
- return v(e) === L.documentFragment;
627
+ return v(e) === R.documentFragment;
571
628
  } catch (e) {
572
629
  return !1;
573
630
  }
@@ -580,17 +637,17 @@ function tt() {
580
637
  }
581
638
  };
582
639
  function $(e, n, r) {
583
- e.length !== 0 && D(e, (e) => {
584
- e.call(t, n, r, Qt);
640
+ e.length !== 0 && O(e, (e) => {
641
+ e.call(t, n, r, Zt);
585
642
  });
586
643
  }
587
644
  let Sn = function(e, t) {
588
- return !!(K && e.hasChildNodes() && !xn(e.firstElementChild) && j(We, e.textContent) && j(We, e.innerHTML) || K && e.namespaceURI === Y && Ye[t] && (xn(e.firstElementChild) || typeof e.textContent == "string" && j(Xe[t], e.textContent)) || e.nodeType === L.processingInstruction || K && e.nodeType === L.comment && j(Ge, e.data));
645
+ return !!(K && e.hasChildNodes() && !xn(e.firstElementChild) && M(Ge, e.textContent) && M(Ge, e.innerHTML) || K && e.namespaceURI === X && Xe[t] && (xn(e.firstElementChild) || typeof e.textContent == "string" && M(Ze[t], e.textContent)) || e.nodeType === R.processingInstruction || K && e.nodeType === R.comment && M(Ke, e.data));
589
646
  }, Cn = function(e, t) {
590
- return e instanceof RegExp ? j(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
647
+ return e instanceof RegExp ? M(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
591
648
  }, wn = function(e, t, n) {
592
- if (!U[t] && An(t) && Cn(H.tagNameCheck, t)) return !1;
593
- if (At && !Nt[t]) {
649
+ if (!ht[t] && An(t) && Cn(U.tagNameCheck, t)) return !1;
650
+ if (At && !Mt[t]) {
594
651
  let t = _(e), r = g(e);
595
652
  if (r && t) {
596
653
  let i = r.length;
@@ -600,35 +657,35 @@ function tt() {
600
657
  }
601
658
  }
602
659
  }
603
- return Z(e), !0;
660
+ return Q(e), !0;
604
661
  }, Tn = function(e, t, n, r) {
605
- return e.length === 0 ? t : t === n || t === r ? F(t) : t;
662
+ return e.length === 0 ? t : t === n || t === r ? I(t) : t;
606
663
  }, En = function(e, t) {
607
664
  return e === t || _(e) !== null ? !1 : (jt && fn(e), !0);
608
665
  }, Dn = function(e, n) {
609
- if ($(z.beforeSanitizeElements, e, null), En(e, n)) return !0;
610
- if (yn(e)) return Z(e), !0;
611
- let r = X(ie(e));
612
- if (B = Tn(z.uponSanitizeElement, B, mt, St), $(z.uponSanitizeElement, e, {
666
+ if ($(B.beforeSanitizeElements, e, null), En(e, n)) return !0;
667
+ if (yn(e)) return Q(e), !0;
668
+ let r = Z(re(e));
669
+ if (V = Tn(B.uponSanitizeElement, V, pt, St), $(B.uponSanitizeElement, e, {
613
670
  tagName: r,
614
- allowedTags: B
671
+ allowedTags: V
615
672
  }), En(e, n)) return !0;
616
- if (Sn(e, r)) return Z(e), !0;
617
- if (U[r] || !(W.tagCheck instanceof Function && W.tagCheck(r)) && !B[r]) {
673
+ if (Sn(e, r)) return Q(e), !0;
674
+ if (ht[r] || !(W.tagCheck instanceof Function && W.tagCheck(r)) && !V[r]) {
618
675
  let t = wn(e, r, n);
619
- return t === !1 && $(z.afterSanitizeElements, e, null), t;
676
+ return t === !1 && ($(B.afterSanitizeElements, e, null), En(e, n)) ? !0 : t;
620
677
  }
621
- if (b(e) === L.element && !cn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && j(Ke, e.innerHTML)) return Z(e), !0;
622
- if (G && e.nodeType === L.text) {
678
+ if (x(e) === R.element && !sn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && M(qe, e.innerHTML)) return Q(e), !0;
679
+ if (G && e.nodeType === R.text) {
623
680
  let n = _n(e.textContent);
624
- e.textContent !== n && (se(t.removed, { element: e.cloneNode() }), e.textContent = n);
681
+ e.textContent !== n && (ce(t.removed, { element: e.cloneNode() }), e.textContent = n);
625
682
  }
626
- return $(z.afterSanitizeElements, e, null), !1;
683
+ return $(B.afterSanitizeElements, e, null), En(e, n);
627
684
  }, On = function(e, t, r) {
628
- if (gt[t] || pn(t, e) || Dt && (t === "id" || t === "name") && (r in n || r in $t)) return !1;
629
- let i = V[t] || W.attributeCheck instanceof Function && W.attributeCheck(t, e);
630
- return vt && j(ct, t) || _t && j(lt, t) ? !0 : i ? Lt[t] || j(pt, fe(r, dt, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && pe(r, "data:") === 0 && Ft[e] || yt && !j(ut, fe(r, dt, "")) ? !0 : !r : An(e) && Cn(H.tagNameCheck, e) && Cn(H.attributeNameCheck, t, e) || t === "is" && H.allowCustomizedBuiltInElements && Cn(H.tagNameCheck, r);
631
- }, kn = P({}, [
685
+ if (gt[t] || pn(t, e) || Dt && (t === "id" || t === "name") && (r in n || r in Qt)) return !1;
686
+ let i = H[t] || W.attributeCheck instanceof Function && W.attributeCheck(t, e);
687
+ return vt && M(st, t) || _t && M(ct, t) ? !0 : i ? It[t] || M(ft, me(r, ut, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && he(r, "data:") === 0 && Pt[e] || yt && !M(lt, me(r, ut, "")) ? !0 : !r : An(e) && Cn(U.tagNameCheck, e) && Cn(U.attributeNameCheck, t, e) || t === "is" && U.allowCustomizedBuiltInElements && Cn(U.tagNameCheck, r);
688
+ }, kn = F({}, [
632
689
  "annotation-xml",
633
690
  "color-profile",
634
691
  "font-face",
@@ -638,65 +695,43 @@ function tt() {
638
695
  "font-face-uri",
639
696
  "missing-glyph"
640
697
  ]), An = function(e) {
641
- return !kn[le(e)] && j(ft, e);
698
+ return !kn[de(e)] && M(dt, e);
642
699
  }, jn = function(e, t, n, r) {
643
- if (w && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
700
+ if (S && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
644
701
  case "TrustedHTML": return k(r);
645
702
  case "TrustedScriptURL": return ve(r);
646
703
  }
647
704
  return r;
648
705
  }, Mn = function(e, t, n, r) {
649
706
  try {
650
- return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !yn(e) || (Z(e), !1);
707
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !yn(e) || (Q(e), !1);
651
708
  } catch (n) {
652
- return Q(t, e), !1;
709
+ return un(t, e), !1;
653
710
  }
654
- }, Nn = function(e) {
655
- $(z.beforeSanitizeAttributes, e, null);
656
- let n = e.attributes;
657
- if (!n || yn(e)) return;
658
- V = Tn(z.uponSanitizeAttribute, V, ht, Ct);
659
- let r = {
711
+ }, Nn = function(e, n) {
712
+ if ($(B.beforeSanitizeAttributes, e, null), En(e, n)) return;
713
+ let r = e.attributes;
714
+ if (!r || yn(e)) return;
715
+ H = Tn(B.uponSanitizeAttribute, H, mt, Ct);
716
+ let i = {
660
717
  attrName: "",
661
718
  attrValue: "",
662
719
  keepAttr: !0,
663
- allowedAttributes: V,
720
+ allowedAttributes: H,
664
721
  forceKeepAttr: void 0
665
- }, i = n.length, a = X(e.nodeName);
666
- for (; i--;) {
667
- let o = n[i], s = o.name, c = o.namespaceURI, l = o.value, u = X(s), d = l, f = s === "value" ? d : me(d), p = !1;
668
- if (r.attrName = u, r.attrValue = f, r.keepAttr = !0, r.forceKeepAttr = void 0, $(z.uponSanitizeAttribute, e, r), f = r.attrValue, Ot && (u === "id" || u === "name") && pe(f, kt) !== 0 && (Q(s, e, o), f = kt + f, p = !0), K && j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
669
- Q(s, e, o);
670
- continue;
671
- }
672
- if (u === "attributename" && de(f, "href")) {
673
- Q(s, e, o);
674
- continue;
675
- }
676
- if (!r.forceKeepAttr) {
677
- if (!r.keepAttr) {
678
- Q(s, e, o);
679
- continue;
680
- }
681
- if (!bt && j(qe, f)) {
682
- Q(s, e, o);
683
- continue;
684
- }
685
- if (G && (f = _n(f)), !On(a, u, f)) {
686
- Q(s, e, o);
687
- continue;
688
- }
689
- f = jn(a, u, c, f), f !== d && Mn(e, s, c, f) && p && oe(t.removed);
690
- }
722
+ }, a = r.length, o = Z(e.nodeName);
723
+ for (; a--;) {
724
+ let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = Z(s), d = l, f = s === "value" ? d : ge(d), p = !1;
725
+ i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(B.uponSanitizeAttribute, e, i), f = i.attrValue, Ot && (u === "id" || u === "name") && he(f, kt) !== 0 && (un(s, e, n), f = kt + f, p = !0), K && M(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f) || u === "attributename" && pe(f, "href") ? un(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !bt && M(Je, f) ? un(s, e, n) : (G && (f = _n(f)), On(o, u, f) ? (f = jn(o, u, c, f), f !== d && Mn(e, s, c, f) && p && se(t.removed)) : un(s, e, n)) : un(s, e, n));
691
726
  }
692
- $(z.afterSanitizeAttributes, e, null);
727
+ $(B.afterSanitizeAttributes, e, null), En(e, n);
693
728
  }, Pn = function(e) {
694
729
  let t = null, n = gn(e);
695
- for ($(z.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(z.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t), bn(t.content) && Pn(t.content), b(t) === L.element) {
730
+ for ($(B.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(B.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t, e), bn(t.content) && Pn(t.content), x(t) === R.element) {
696
731
  let e = ee(t);
697
732
  bn(e) && (Fn(e), Pn(e));
698
733
  }
699
- $(z.afterSanitizeShadowDOM, e, null);
734
+ $(B.afterSanitizeShadowDOM, e, null);
700
735
  }, Fn = function(e) {
701
736
  let t = [{
702
737
  node: e,
@@ -708,14 +743,14 @@ function tt() {
708
743
  Pn(e.shadow);
709
744
  continue;
710
745
  }
711
- let n = e.node, r = b(n) === L.element, i = g(n);
746
+ let n = e.node, r = x(n) === R.element, i = g(n);
712
747
  if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
713
748
  node: i[e],
714
749
  shadow: null
715
750
  });
716
751
  if (r) {
717
752
  let e = y ? y(n) : null;
718
- if (typeof e == "string" && X(e) === "template") {
753
+ if (typeof e == "string" && Z(e) === "template") {
719
754
  let e = n.content;
720
755
  bn(e) && t.push({
721
756
  node: e,
@@ -737,74 +772,78 @@ function tt() {
737
772
  };
738
773
  return t.sanitize = function(e) {
739
774
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
740
- if (Ht = !e, Ht && (e = "<!-->"), typeof e != "string" && !xn(e) && (e = xe(e), typeof e != "string")) throw M("dirty is not a string, aborting");
775
+ if (Vt = !e, Vt && (e = "<!-->"), typeof e != "string" && !xn(e) && (e = Se(e), typeof e != "string")) throw N("dirty is not a string, aborting");
741
776
  if (!t.isSupported) return e;
742
- xt ? (B = St, V = Ct) : tn(n), (z.uponSanitizeElement.length > 0 || z.uponSanitizeAttribute.length > 0) && (B = F(B)), z.uponSanitizeAttribute.length > 0 && (V = F(V)), t.removed = [];
777
+ xt ? (V = St, H = Ct) : en(n), (B.uponSanitizeElement.length > 0 || B.uponSanitizeAttribute.length > 0) && (V = I(V)), B.uponSanitizeAttribute.length > 0 && (H = I(H)), t.removed = [];
743
778
  let c = jt && typeof e != "string" && xn(e);
744
779
  if (c) {
745
780
  mn(e);
746
- let t = ie(e);
781
+ let t = re(e);
747
782
  if (typeof t == "string") {
748
- let n = X(t);
749
- if (!B[n] || U[n]) throw un(e), M("root node is forbidden and cannot be sanitized in-place");
783
+ let n = Z(t);
784
+ if (!V[n] || ht[n]) throw ln(e), N("root node is forbidden and cannot be sanitized in-place");
750
785
  }
751
- if (yn(e)) throw un(e), M("root node is clobbered and cannot be sanitized in-place");
786
+ if (yn(e)) throw ln(e), N("root node is clobbered and cannot be sanitized in-place");
752
787
  try {
753
788
  Fn(e);
754
789
  } catch (t) {
755
- throw un(e), t;
790
+ throw ln(e), t;
756
791
  }
757
- } else if (xn(e)) i = hn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === L.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
792
+ } else if (xn(e)) i = hn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === R.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
758
793
  else {
759
- if (!J && !G && !q && e.indexOf("<") === -1) return w && Et ? k(e) : e;
760
- if (i = hn(e), !i) return J ? null : Et ? T : "";
794
+ if (!J && !G && !q && e.indexOf("<") === -1) return S && Et ? k(e) : e;
795
+ if (i = hn(e), !i) return J ? null : Et ? C : "";
761
796
  }
762
- i && wt && Z(i.firstChild);
797
+ i && wt && Q(i.firstChild);
763
798
  let l = c ? e : i;
764
799
  try {
765
800
  let e = gn(l);
766
- for (; o = e.nextNode();) Dn(o, l), Nn(o), bn(o.content) && Pn(o.content);
801
+ for (; o = e.nextNode();) Dn(o, l), Nn(o, l), bn(o.content) && Pn(o.content);
767
802
  } catch (n) {
768
- throw c && (un(e), D(t.removed, (e) => {
803
+ throw c && (ln(e), O(t.removed, (e) => {
769
804
  e.element && fn(e.element);
770
805
  })), n;
771
806
  }
772
- if (c) return D(t.removed, (e) => {
773
- e.element && fn(e.element);
774
- }), G && vn(e), e;
807
+ if (c) {
808
+ let n = !1;
809
+ if (O(t.removed, (t) => {
810
+ t.element && (t.element === e && (n = !0), fn(t.element));
811
+ }), n) throw N("a node selected for removal could not be safely returned; refusing to sanitize in place");
812
+ return G && vn(e), e;
813
+ }
775
814
  if (J) {
776
- if (G && vn(i), Tt) for (s = nt.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
815
+ if (G && vn(i), Tt) for (s = xe.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
777
816
  else s = i;
778
- return (V.shadowroot || V.shadowrootmode) && (s = it.call(r, s, !0)), s;
817
+ return (H.shadowroot || H.shadowrootmode) && (s = rt.call(r, s, !0)), s;
779
818
  }
780
819
  let u = q ? i.outerHTML : i.innerHTML;
781
- return q && B["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && j(He, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), G && (u = _n(u)), w && Et ? k(u) : u;
820
+ return q && V["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && M(Ue, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), G && (u = _n(u)), S && Et ? k(u) : u;
782
821
  }, t.setConfig = function() {
783
822
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
784
- tn(e), xt = !0, St = B, Ct = V;
823
+ en(e), xt = !0, St = V, Ct = H;
785
824
  }, t.clearConfig = function() {
786
- Qt = null, xt = !1, St = null, Ct = null, w = E, T = "";
825
+ Zt = null, xt = !1, St = null, Ct = null, S = ie, C = "";
787
826
  }, t.isValidAttribute = function(e, t, n) {
788
- Qt || tn({});
789
- let r = X(e), i = X(t);
827
+ Zt || en({});
828
+ let r = Z(e), i = Z(t);
790
829
  return On(r, i, n);
791
830
  }, t.addHook = function(e, t) {
792
- typeof t == "function" && A(z, e) && se(z[e], t);
831
+ typeof t == "function" && A(B, e) && ce(B[e], t);
793
832
  }, t.removeHook = function(e, t) {
794
- if (A(z, e)) {
833
+ if (A(B, e)) {
795
834
  if (t !== void 0) {
796
- let n = ae(z[e], t);
797
- return n === -1 ? void 0 : ce(z[e], n, 1)[0];
835
+ let n = oe(B[e], t);
836
+ return n === -1 ? void 0 : le(B[e], n, 1)[0];
798
837
  }
799
- return oe(z[e]);
838
+ return se(B[e]);
800
839
  }
801
840
  }, t.removeHooks = function(e) {
802
- A(z, e) && (z[e] = []);
841
+ A(B, e) && (B[e] = []);
803
842
  }, t.removeAllHooks = function() {
804
- z = $e();
843
+ B = et();
805
844
  }, t;
806
845
  }
807
- var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), it = {
846
+ var rt = nt(), B = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), it = {
808
847
  WHOLE_DOCUMENT: !0,
809
848
  USE_PROFILES: {
810
849
  html: !0,
@@ -828,7 +867,7 @@ var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").repl
828
867
  "link"
829
868
  ],
830
869
  FORBID_ATTR: ["srcdoc"]
831
- }, z = (e) => e || globalThis.document || null, at = (e) => /[A-Za-z0-9_-]/.test(e), ot = (e, t) => {
870
+ }, at = (e) => e || globalThis.document || null, ot = (e) => /[A-Za-z0-9_-]/.test(e), st = (e, t) => {
832
871
  let n = t + 1, r = e[n] || "";
833
872
  if (!r) return {
834
873
  value: "",
@@ -852,7 +891,7 @@ var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").repl
852
891
  value: r,
853
892
  nextIndex: n + 1
854
893
  };
855
- }, st = (e) => {
894
+ }, ct = (e) => {
856
895
  let t = "", n = "", r = 0;
857
896
  for (; r < e.length;) {
858
897
  let i = e[r] || "";
@@ -874,7 +913,7 @@ var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").repl
874
913
  continue;
875
914
  }
876
915
  if (i === "\\") {
877
- let n = ot(e, r);
916
+ let n = st(e, r);
878
917
  t += n.value, r = n.nextIndex;
879
918
  continue;
880
919
  }
@@ -882,7 +921,7 @@ var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").repl
882
921
  t += a < 32 && i !== " " && i !== "\n" && i !== "\r" ? " " : i, r += 1;
883
922
  }
884
923
  return t;
885
- }, ct = /^data:(?:image\/(?:avif|bmp|gif|jpeg|png|webp|x-icon)|font\/(?:collection|otf|sfnt|ttf|woff2?)|application\/(?:font-sfnt|font-woff|vnd\.ms-fontobject|x-font-opentype|x-font-ttf|x-font-woff));/i, lt = (e) => {
924
+ }, lt = /^data:(?:image\/(?:avif|bmp|gif|jpeg|png|webp|x-icon)|font\/(?:collection|otf|sfnt|ttf|woff2?)|application\/(?:font-sfnt|font-woff|vnd\.ms-fontobject|x-font-opentype|x-font-ttf|x-font-woff));/i, ut = (e) => {
886
925
  let t = /^data:image\/svg\+xml(?:;charset=[A-Za-z0-9._-]+)?,([\s\S]*)$/i.exec(e);
887
926
  if (!t || t[1].length > 1048576) return !1;
888
927
  let n;
@@ -893,43 +932,40 @@ var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").repl
893
932
  }
894
933
  if (!/^\s*<svg(?:\s|>)/i.test(n) || /<\/?(?:script|style|foreignObject|iframe|object|embed|form|link)\b/i.test(n) || /<!\s*(?:doctype|entity)\b/i.test(n) || /\son[a-z0-9_-]+\s*=/i.test(n) || /@import\b/i.test(n) || /url\s*\(\s*(?!["']?#)/i.test(n)) return !1;
895
934
  for (let e of n.matchAll(/\s(?:href|xlink:href|src)\s*=\s*(["'])([\s\S]*?)\1/gi)) {
896
- let t = dt(e[2] || "");
897
- if (!/^#[A-Za-z0-9_.:-]+$/.test(t) && !ct.test(t)) return !1;
935
+ let t = ft(e[2] || "");
936
+ if (!/^#[A-Za-z0-9_.:-]+$/.test(t) && !lt.test(t)) return !1;
898
937
  }
899
938
  return !0;
900
- }, ut = (e) => {
939
+ }, dt = (e) => {
901
940
  let t = "";
902
941
  for (let n of e) {
903
942
  let e = n.charCodeAt(0);
904
943
  e <= 32 || e >= 127 && e <= 159 || (t += n);
905
944
  }
906
945
  return t.trim();
907
- }, dt = ut, ft = /^data:(?:image\/(?:avif|bmp|gif|jpeg|png|webp|x-icon)|audio\/[a-z0-9.+-]+|video\/[a-z0-9.+-]+|text\/vtt)(?:;[^,]*)?,/i, pt = (e) => {
908
- let t = ut(e);
909
- return t ? t.startsWith("#") || /^blob:/i.test(t) ? !0 : ft.test(t) : !1;
910
- }, B = (e, t, n = {}) => {
946
+ }, ft = dt, V = /^data:(?:image\/(?:avif|bmp|gif|jpeg|png|webp|x-icon)|audio\/[a-z0-9.+-]+|video\/[a-z0-9.+-]+|text\/vtt)(?:;[^,]*)?,/i, pt = (e) => {
947
+ let t = dt(e);
948
+ return t ? t.startsWith("#") || /^blob:/i.test(t) ? !0 : V.test(t) : !1;
949
+ }, H = (e, t, n = {}) => {
911
950
  if (!e.hasAttribute(t)) return;
912
- let r = ut(e.getAttribute(t) || "");
951
+ let r = dt(e.getAttribute(t) || "");
913
952
  (n.fragmentOnly ? /^#[A-Za-z0-9_.:-]+$/.test(r) : pt(r)) ? e.setAttribute(t, r) : e.removeAttribute(t);
914
953
  }, mt = (e) => {
915
954
  let t = e.trim(), n = t[0];
916
- return (n === "\"" || n === "'") && t[t.length - 1] === n && (t = t.slice(1, -1).trim()), ut(t);
917
- }, V = (e) => {
955
+ return (n === "\"" || n === "'") && t[t.length - 1] === n && (t = t.slice(1, -1).trim()), dt(t);
956
+ }, U = (e) => {
918
957
  let t = mt(e);
919
- return t ? t.startsWith("#") || /^blob:/i.test(t) ? !0 : ct.test(t) || lt(t) : !1;
958
+ return t ? t.startsWith("#") || /^blob:/i.test(t) ? !0 : lt.test(t) || ut(t) : !1;
920
959
  }, ht = (e, t) => {
921
960
  let n = "";
922
961
  for (let r = t; r < e.length; r += 1) {
923
962
  let t = e[r] || "";
924
- if (n) {
925
- t === "\\" ? r += 1 : t === n && (n = "");
926
- continue;
927
- }
928
- if (t === "\"" || t === "'") n = t;
963
+ if (n) t === "\\" ? r += 1 : t === n && (n = "");
964
+ else if (t === "\"" || t === "'") n = t;
929
965
  else if (t === ")") return r;
930
966
  }
931
967
  return -1;
932
- }, H = (e) => {
968
+ }, gt = (e) => {
933
969
  let t = !1, n = !1, r = "", i = 0;
934
970
  for (; i < e.length;) {
935
971
  let a = e[i] || "";
@@ -939,38 +975,30 @@ var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").repl
939
975
  continue;
940
976
  }
941
977
  a === r && (r = ""), i += 1;
942
- continue;
943
- }
944
- if (a === "/" && e[i + 1] === "*") {
978
+ } else if (a === "/" && e[i + 1] === "*") {
945
979
  let t = e.indexOf("*/", i + 2);
946
980
  i = t < 0 ? e.length : t + 2;
947
- continue;
948
- }
949
- if (a === "\"" || a === "'") {
950
- r = a, i += 1;
951
- continue;
952
- }
953
- if (a === "\\") {
954
- i += 2;
955
- continue;
956
- }
957
- if (a === "@" && e.slice(i + 1, i + 7).toLowerCase() === "import") {
958
- let n = e[i + 7] || "";
959
- (!n || !at(n)) && (t = !0);
960
- }
961
- if (e.slice(i, i + 3).toLowerCase() === "url" && !at(e[i - 1] || "")) {
962
- let t = i + 3;
963
- for (; /\s/.test(e[t] || "");) t += 1;
964
- e[t] === "(" && (n = !0);
981
+ } else if (a === "\"" || a === "'") r = a, i += 1;
982
+ else if (a === "\\") i += 2;
983
+ else {
984
+ if (a === "@" && e.slice(i + 1, i + 7).toLowerCase() === "import") {
985
+ let n = e[i + 7] || "";
986
+ (!n || !ot(n)) && (t = !0);
987
+ }
988
+ if (e.slice(i, i + 3).toLowerCase() === "url" && !ot(e[i - 1] || "")) {
989
+ let t = i + 3;
990
+ for (; /\s/.test(e[t] || "");) t += 1;
991
+ e[t] === "(" && (n = !0);
992
+ }
993
+ i += 1;
965
994
  }
966
- i += 1;
967
995
  }
968
996
  return {
969
997
  hasImport: t,
970
998
  hasUrl: n
971
999
  };
972
- }, U = (e) => {
973
- let t = H(st(e)), n = H(e);
1000
+ }, W = (e) => {
1001
+ let t = gt(ct(e)), n = gt(e);
974
1002
  if (t.hasImport || t.hasUrl && !n.hasUrl) return "";
975
1003
  if (!n.hasUrl) return e;
976
1004
  let r = "", i = "", a = 0;
@@ -982,48 +1010,40 @@ var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").repl
982
1010
  continue;
983
1011
  }
984
1012
  t === i && (i = ""), a += 1;
985
- continue;
986
- }
987
- if (t === "\"" || t === "'") {
988
- i = t, r += t, a += 1;
989
- continue;
990
- }
991
- if (t === "/" && e[a + 1] === "*") {
1013
+ } else if (t === "\"" || t === "'") i = t, r += t, a += 1;
1014
+ else if (t === "/" && e[a + 1] === "*") {
992
1015
  let t = e.indexOf("*/", a + 2);
993
1016
  if (t < 0) {
994
1017
  r += e.slice(a);
995
1018
  break;
996
1019
  }
997
1020
  r += e.slice(a, t + 2), a = t + 2;
998
- continue;
999
- }
1000
- if (t === "\\") {
1001
- r += t, r += e[a + 1] || "", a += 2;
1002
- continue;
1003
- }
1004
- if (e.slice(a, a + 3).toLowerCase() === "url" && !at(e[a - 1] || "")) {
1005
- let t = a + 3;
1006
- for (; /\s/.test(e[t] || "");) t += 1;
1007
- if (e[t] === "(") {
1008
- let n = ht(e, t + 1);
1009
- if (n < 0) return "";
1010
- let i = e.slice(t + 1, n);
1011
- r += V(i) ? e.slice(a, n + 1) : "none", a = n + 1;
1012
- continue;
1021
+ } else if (t === "\\") r += t, r += e[a + 1] || "", a += 2;
1022
+ else {
1023
+ if (e.slice(a, a + 3).toLowerCase() === "url" && !ot(e[a - 1] || "")) {
1024
+ let t = a + 3;
1025
+ for (; /\s/.test(e[t] || "");) t += 1;
1026
+ if (e[t] === "(") {
1027
+ let n = ht(e, t + 1);
1028
+ if (n < 0) return "";
1029
+ let i = e.slice(t + 1, n);
1030
+ r += U(i) ? e.slice(a, n + 1) : "none", a = n + 1;
1031
+ continue;
1032
+ }
1013
1033
  }
1034
+ r += t, a += 1;
1014
1035
  }
1015
- r += t, a += 1;
1016
1036
  }
1017
1037
  return r;
1018
- }, gt = (e) => {
1038
+ }, _t = (e) => {
1019
1039
  let t = e.defaultView;
1020
1040
  if (!t) return null;
1021
- let n = nt(t);
1041
+ let n = rt(t);
1022
1042
  return n.isSupported ? (n.addHook("afterSanitizeElements", (e) => {
1023
1043
  var t;
1024
1044
  let n = e;
1025
1045
  if (((t = n.localName) == null ? void 0 : t.toLowerCase()) !== "style") return;
1026
- let r = U(n.textContent || "");
1046
+ let r = W(n.textContent || "");
1027
1047
  r ? n.textContent = r : n.remove();
1028
1048
  }), n.addHook("afterSanitizeAttributes", (e) => {
1029
1049
  var t;
@@ -1035,24 +1055,24 @@ var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").repl
1035
1055
  "source",
1036
1056
  "track",
1037
1057
  "input"
1038
- ].includes(r || "") && B(n, "src"), r === "video" && B(n, "poster"), n.hasAttribute("background") && B(n, "background"), n.namespaceURI === "http://www.w3.org/2000/svg" && r !== "a") {
1058
+ ].includes(r || "") && H(n, "src"), r === "video" && H(n, "poster"), n.hasAttribute("background") && H(n, "background"), n.namespaceURI === "http://www.w3.org/2000/svg" && r !== "a") {
1039
1059
  let e = r === "use" || r === "mpath";
1040
- B(n, "href", { fragmentOnly: e }), B(n, "xlink:href", { fragmentOnly: e });
1060
+ H(n, "href", { fragmentOnly: e }), H(n, "xlink:href", { fragmentOnly: e });
1041
1061
  }
1042
1062
  if (n.hasAttribute("style")) {
1043
- let e = U(n.getAttribute("style") || "");
1063
+ let e = W(n.getAttribute("style") || "");
1044
1064
  e ? n.setAttribute("style", e) : n.removeAttribute("style");
1045
1065
  }
1046
1066
  }), n) : null;
1047
- }, W = ["<meta charset=\"utf-8\" />", "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />"].join("\n "), _t = (e, t) => {
1048
- let n = z(t), r = n ? gt(n) : null;
1049
- return r ? `<!doctype html>\n${String(r.sanitize(e, it)).replace("<head>", `<head>\n ${W}`)}` : "<!doctype html>\n<html lang=\"en\"><head><meta charset=\"utf-8\" /></head><body></body></html>";
1050
- }, vt = (e) => {
1067
+ }, vt = ["<meta charset=\"utf-8\" />", "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />"].join("\n "), yt = (e, t) => {
1068
+ let n = at(t), r = n ? _t(n) : null;
1069
+ return r ? `<!doctype html>\n${String(r.sanitize(e, it)).replace("<head>", `<head>\n ${vt}`)}` : "<!doctype html>\n<html lang=\"en\"><head><meta charset=\"utf-8\" /></head><body></body></html>";
1070
+ }, bt = (e) => {
1051
1071
  let t = e.createElement("html");
1052
1072
  t.lang = "en";
1053
1073
  let n = e.createElement("head"), r = e.createElement("meta");
1054
1074
  return r.setAttribute("charset", "utf-8"), n.append(r), t.append(n, e.createElement("body")), t;
1055
- }, yt = (e) => {
1075
+ }, G = (e) => {
1056
1076
  let t = e.querySelector(":scope > head");
1057
1077
  if (!t) return e;
1058
1078
  if (!t.querySelector("meta[charset]")) {
@@ -1066,15 +1086,15 @@ var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").repl
1066
1086
  r == null || r.after(n);
1067
1087
  }
1068
1088
  return e;
1069
- }, bt = (e, n) => {
1070
- let r = z(n);
1089
+ }, K = (e, n) => {
1090
+ let r = at(n);
1071
1091
  if (!r) throw Error("A browser document is required to build printable DOM.");
1072
- let i = gt(r);
1073
- if (!i) return vt(r);
1092
+ let i = _t(r);
1093
+ if (!i) return bt(r);
1074
1094
  let a = i.sanitize(e, t(t({}, it), {}, { RETURN_DOM: !0 }));
1075
- return !a || a.nodeType !== 1 || a.localName.toLowerCase() !== "html" ? vt(r) : yt(a);
1076
- }, G = "\n * { box-sizing: border-box; }\n html, body { margin: 0; min-height: 100%; background: #f2f4f7; color: #172033; font-family: Aptos, \"Segoe UI\", \"PingFang SC\", \"Microsoft YaHei\", sans-serif; print-color-adjust: exact; -webkit-print-color-adjust: exact; }\n body { padding: 24px; }\n .viewer-export-shell { position: relative; min-height: calc(100vh - 48px); overflow: visible; background: #f2f4f7; }\n .viewer-export-content { position: relative; z-index: 1; contain: none; width: 100%; min-height: 100%; overflow: visible; }\n .viewer-export-watermark { position: absolute; inset: 0; pointer-events: none; z-index: 20; background-repeat: repeat; print-color-adjust: exact; -webkit-print-color-adjust: exact; }\n .viewer-export-content .file-render,\n .viewer-export-content .file-viewer,\n .viewer-export-content .viewer-stage,\n .viewer-export-content .content,\n .viewer-export-content .pdf-shell,\n .viewer-export-content .pdf-content,\n .viewer-export-content .pdf-viewport,\n .viewer-export-content .pdf-wrapper,\n .viewer-export-content .docx-fit-viewer,\n .viewer-export-content .docx-wrapper,\n .viewer-export-content .docx-canvas-wrapper,\n .viewer-export-content .msdoc-stage,\n .viewer-export-content .msdoc-paged-view,\n .viewer-export-content .code-viewer,\n .viewer-export-content .markdown-viewer,\n .viewer-export-content .email-shell,\n .viewer-export-content .archive-shell,\n .viewer-export-content .eda-shell,\n .viewer-export-content .ebook-shell,\n .viewer-export-content .umd-shell,\n .viewer-export-content .drawing-shell,\n .viewer-export-content .audio-shell,\n .viewer-export-content .cad-shell,\n .viewer-export-content .cad-body,\n .viewer-export-content .cad-canvas-wrap,\n .viewer-export-content .dwg-preview-frame {\n position: relative !important;\n inset: auto !important;\n contain: none !important;\n width: 100% !important;\n height: auto !important;\n min-height: 0 !important;\n max-height: none !important;\n overflow: visible !important;\n }\n .viewer-export-content .docx-wrapper {\n display: block !important;\n padding: 0 !important;\n background: transparent !important;\n }\n .viewer-export-content .docx-canvas-wrapper {\n display: block !important;\n padding: 0 !important;\n background: transparent !important;\n }\n .viewer-export-content .docx-print-document {\n display: block !important;\n width: fit-content !important;\n max-width: 100% !important;\n height: auto !important;\n overflow: visible !important;\n margin: 0 auto !important;\n }\n .viewer-export-content .docx-page-frame {\n position: relative !important;\n width: var(--viewer-print-page-width, fit-content) !important;\n height: var(--viewer-print-page-height, auto) !important;\n min-height: var(--viewer-print-page-height, 0) !important;\n max-width: 100% !important;\n margin: 0 auto 18px !important;\n overflow: hidden !important;\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .docx-canvas-sheet {\n position: relative !important;\n contain: none !important;\n width: var(--viewer-print-page-width, 794px) !important;\n height: var(--viewer-print-page-height, 1123px) !important;\n min-height: var(--viewer-print-page-height, 1123px) !important;\n max-width: 100% !important;\n margin: 0 auto 18px !important;\n overflow: hidden !important;\n box-shadow: none !important;\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .docx-canvas-sheet > img {\n display: block !important;\n width: 100% !important;\n height: 100% !important;\n max-width: none !important;\n object-fit: fill;\n }\n .viewer-export-content .msdoc-page {\n position: relative !important;\n width: var(--viewer-print-page-width, 794px) !important;\n min-height: var(--viewer-print-page-height, 1123px) !important;\n max-width: 100% !important;\n height: auto !important;\n margin: 0 auto 18px !important;\n overflow: visible !important;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .docx-page-frame:last-child,\n .viewer-export-content .docx-canvas-sheet:last-child,\n .viewer-export-content .msdoc-page:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .docx-page-frame > section.docx {\n position: relative !important;\n top: auto !important;\n left: auto !important;\n width: var(--viewer-print-page-width, auto) !important;\n min-height: var(--viewer-print-page-height, auto) !important;\n max-width: none !important;\n margin: 0 auto !important;\n overflow: visible !important;\n transform: none !important;\n box-shadow: none !important;\n break-inside: avoid;\n page-break-inside: avoid;\n }\n .viewer-export-content .msdoc-stage {\n display: block !important;\n padding: 0 !important;\n background: transparent !important;\n }\n .viewer-export-content .msdoc-paged-view {\n display: block !important;\n gap: 0 !important;\n padding: 0 !important;\n background: transparent !important;\n }\n .viewer-export-content .msdoc-page > .msdoc-root {\n margin: 0 auto !important;\n box-shadow: none !important;\n overflow: visible !important;\n }\n .viewer-export-content .pdf-toolbar,\n .viewer-export-content .pdf-nav-pane,\n .viewer-export-content .viewer-actions,\n .viewer-export-content .code-toolbar,\n .viewer-export-content .umd-toolbar,\n .viewer-export-content .drawing-toolbar,\n .viewer-export-content .cad-toolbar {\n display: none !important;\n }\n .viewer-export-content .pdf-content,\n .viewer-export-content .pdf-shell--nav-hidden .pdf-content,\n .viewer-export-content .cad-body.without-layers {\n display: block !important;\n grid-template-columns: none !important;\n }\n .viewer-export-content .pdfViewer { padding: 0 !important; }\n .viewer-export-content .pdfViewer .page {\n margin: 0 auto 16px !important;\n border: 0 !important;\n box-shadow: none !important;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .pdfViewer .page:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .pdf-export-document {\n display: grid;\n justify-items: center;\n gap: 18px;\n padding: 4px 0;\n }\n .viewer-export-content .pdf-export-page {\n width: var(--viewer-print-page-width, auto);\n height: var(--viewer-print-page-height, auto);\n max-width: 100%;\n overflow: hidden;\n background: #ffffff;\n box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .pdf-export-page:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .pdf-export-page img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .viewer-export-content .pptx-wrapper {\n width: 100% !important;\n max-width: 100% !important;\n height: auto !important;\n overflow: visible !important;\n transform: none !important;\n }\n .viewer-export-content .pptx-wrapper .slide {\n margin: 0 auto 18px !important;\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n box-shadow: none !important;\n }\n .viewer-export-content .pptx-wrapper .slide:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .ofd-stage {\n padding: 0 !important;\n overflow: visible !important;\n }\n .viewer-export-content .ofd-page,\n .viewer-export-content .drawing-svg,\n .viewer-export-content .cad-canvas-wrap,\n .viewer-export-content .dwg-preview-frame {\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n box-shadow: none !important;\n }\n .viewer-export-content .ofd-page:last-child,\n .viewer-export-content .drawing-svg:last-child,\n .viewer-export-content .cad-canvas-wrap:last-child,\n .viewer-export-content .dwg-preview-frame:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .code-area {\n overflow: visible !important;\n white-space: pre-wrap !important;\n word-break: break-word !important;\n }\n .viewer-export-content .umd-body,\n .viewer-export-content .umd-stage-wrap,\n .viewer-export-content .umd-stage {\n display: block !important;\n height: auto !important;\n max-height: none !important;\n overflow: visible !important;\n }\n .viewer-export-content .umd-toc {\n display: none !important;\n }\n img, canvas, svg, video { max-width: 100%; }\n @media print {\n @page { margin: 12mm; }\n html, body { min-height: auto; background: #ffffff; }\n body { padding: 0; }\n .viewer-export-shell,\n .viewer-export-content {\n min-height: 0;\n overflow: visible;\n background: #ffffff;\n }\n .viewer-export-content .pdf-export-document {\n display: block;\n padding: 0;\n }\n .viewer-export-content .pdf-export-page {\n width: var(--viewer-print-page-width, auto) !important;\n height: var(--viewer-print-page-height, auto) !important;\n max-width: none !important;\n margin: 0;\n overflow: hidden;\n box-shadow: none;\n }\n .viewer-export-content .docx-page-frame {\n width: var(--viewer-print-page-width, auto) !important;\n height: var(--viewer-print-page-height, auto) !important;\n min-height: var(--viewer-print-page-height, 0) !important;\n max-width: none !important;\n margin: 0 !important;\n overflow: hidden !important;\n }\n .viewer-export-content .docx-canvas-sheet {\n contain: none !important;\n width: var(--viewer-print-page-width, 794px) !important;\n height: var(--viewer-print-page-height, 1123px) !important;\n min-height: var(--viewer-print-page-height, 1123px) !important;\n max-width: none !important;\n margin: 0 !important;\n overflow: hidden !important;\n box-shadow: none !important;\n }\n .viewer-export-content .msdoc-page {\n width: var(--viewer-print-page-width, 794px) !important;\n min-height: var(--viewer-print-page-height, 1123px) !important;\n max-width: none !important;\n margin: 0 !important;\n overflow: visible !important;\n }\n .viewer-export-content .docx-page-frame > section.docx,\n .viewer-export-content .msdoc-page > .msdoc-root {\n width: var(--viewer-print-page-width, 100%) !important;\n max-width: none !important;\n border: 0 !important;\n }\n .viewer-export-content .pptx-wrapper .slide,\n .viewer-export-content .ofd-page,\n .viewer-export-content .drawing-svg,\n .viewer-export-content .cad-canvas-wrap,\n .viewer-export-content .dwg-preview-frame {\n box-shadow: none !important;\n }\n }\n", K = (e) => {
1077
- let t = z(e);
1095
+ return !a || a.nodeType !== 1 || a.localName.toLowerCase() !== "html" ? bt(r) : G(a);
1096
+ }, q = "\n * { box-sizing: border-box; }\n html, body { margin: 0; min-height: 100%; background: #f2f4f7; color: #172033; font-family: Aptos, \"Segoe UI\", \"PingFang SC\", \"Microsoft YaHei\", sans-serif; print-color-adjust: exact; -webkit-print-color-adjust: exact; }\n body { padding: 24px; }\n .viewer-export-shell { position: relative; min-height: calc(100vh - 48px); overflow: visible; background: #f2f4f7; }\n .viewer-export-content { position: relative; z-index: 1; contain: none; width: 100%; min-height: 100%; overflow: visible; }\n .viewer-export-watermark { position: absolute; inset: 0; pointer-events: none; z-index: 20; background-repeat: repeat; print-color-adjust: exact; -webkit-print-color-adjust: exact; }\n .viewer-export-content .file-render,\n .viewer-export-content .file-viewer,\n .viewer-export-content .viewer-stage,\n .viewer-export-content .content,\n .viewer-export-content .pdf-shell,\n .viewer-export-content .pdf-content,\n .viewer-export-content .pdf-viewport,\n .viewer-export-content .pdf-wrapper,\n .viewer-export-content .docx-fit-viewer,\n .viewer-export-content .docx-wrapper,\n .viewer-export-content .docx-canvas-wrapper,\n .viewer-export-content .msdoc-stage,\n .viewer-export-content .msdoc-paged-view,\n .viewer-export-content .code-viewer,\n .viewer-export-content .markdown-viewer,\n .viewer-export-content .email-shell,\n .viewer-export-content .archive-shell,\n .viewer-export-content .eda-shell,\n .viewer-export-content .ebook-shell,\n .viewer-export-content .umd-shell,\n .viewer-export-content .drawing-shell,\n .viewer-export-content .audio-shell,\n .viewer-export-content .cad-shell,\n .viewer-export-content .cad-body,\n .viewer-export-content .cad-canvas-wrap,\n .viewer-export-content .dwg-preview-frame {\n position: relative !important;\n inset: auto !important;\n contain: none !important;\n width: 100% !important;\n height: auto !important;\n min-height: 0 !important;\n max-height: none !important;\n overflow: visible !important;\n }\n .viewer-export-content .docx-wrapper {\n display: block !important;\n padding: 0 !important;\n background: transparent !important;\n }\n .viewer-export-content .docx-canvas-wrapper {\n display: block !important;\n padding: 0 !important;\n background: transparent !important;\n }\n .viewer-export-content .docx-print-document {\n display: block !important;\n width: fit-content !important;\n max-width: 100% !important;\n height: auto !important;\n overflow: visible !important;\n margin: 0 auto !important;\n }\n .viewer-export-content .docx-page-frame {\n position: relative !important;\n width: var(--viewer-print-page-width, fit-content) !important;\n height: var(--viewer-print-page-height, auto) !important;\n min-height: var(--viewer-print-page-height, 0) !important;\n max-width: 100% !important;\n margin: 0 auto 18px !important;\n overflow: hidden !important;\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .docx-canvas-sheet {\n position: relative !important;\n contain: none !important;\n width: var(--viewer-print-page-width, 794px) !important;\n height: var(--viewer-print-page-height, 1123px) !important;\n min-height: var(--viewer-print-page-height, 1123px) !important;\n max-width: 100% !important;\n margin: 0 auto 18px !important;\n overflow: hidden !important;\n box-shadow: none !important;\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .docx-canvas-sheet > img {\n display: block !important;\n width: 100% !important;\n height: 100% !important;\n max-width: none !important;\n object-fit: fill;\n }\n .viewer-export-content .msdoc-page {\n position: relative !important;\n width: var(--viewer-print-page-width, 794px) !important;\n min-height: var(--viewer-print-page-height, 1123px) !important;\n max-width: 100% !important;\n height: auto !important;\n margin: 0 auto 18px !important;\n overflow: visible !important;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .docx-page-frame:last-child,\n .viewer-export-content .docx-canvas-sheet:last-child,\n .viewer-export-content .msdoc-page:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .docx-page-frame > section.docx {\n position: relative !important;\n top: auto !important;\n left: auto !important;\n width: var(--viewer-print-page-width, auto) !important;\n min-height: var(--viewer-print-page-height, auto) !important;\n max-width: none !important;\n margin: 0 auto !important;\n overflow: visible !important;\n transform: none !important;\n box-shadow: none !important;\n break-inside: avoid;\n page-break-inside: avoid;\n }\n .viewer-export-content .msdoc-stage {\n display: block !important;\n padding: 0 !important;\n background: transparent !important;\n }\n .viewer-export-content .msdoc-paged-view {\n display: block !important;\n gap: 0 !important;\n padding: 0 !important;\n background: transparent !important;\n }\n .viewer-export-content .msdoc-page > .msdoc-root {\n margin: 0 auto !important;\n box-shadow: none !important;\n overflow: visible !important;\n }\n .viewer-export-content .pdf-toolbar,\n .viewer-export-content .pdf-nav-pane,\n .viewer-export-content .viewer-actions,\n .viewer-export-content .code-toolbar,\n .viewer-export-content .umd-toolbar,\n .viewer-export-content .drawing-toolbar,\n .viewer-export-content .cad-toolbar {\n display: none !important;\n }\n .viewer-export-content .pdf-content,\n .viewer-export-content .pdf-shell--nav-hidden .pdf-content,\n .viewer-export-content .cad-body.without-layers {\n display: block !important;\n grid-template-columns: none !important;\n }\n .viewer-export-content .pdfViewer { padding: 0 !important; }\n .viewer-export-content .pdfViewer .page {\n margin: 0 auto 16px !important;\n border: 0 !important;\n box-shadow: none !important;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .pdfViewer .page:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .pdf-export-document {\n display: grid;\n justify-items: center;\n gap: 18px;\n padding: 4px 0;\n }\n .viewer-export-content .pdf-export-page {\n width: var(--viewer-print-page-width, auto);\n height: var(--viewer-print-page-height, auto);\n max-width: 100%;\n overflow: hidden;\n background: #ffffff;\n box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .pdf-export-page:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .pdf-export-page img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .viewer-export-content .pptx-wrapper {\n width: 100% !important;\n max-width: 100% !important;\n height: auto !important;\n overflow: visible !important;\n transform: none !important;\n }\n .viewer-export-content .pptx-wrapper .slide {\n margin: 0 auto 18px !important;\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n box-shadow: none !important;\n }\n .viewer-export-content .pptx-wrapper .slide:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .ofd-stage {\n padding: 0 !important;\n overflow: visible !important;\n }\n .viewer-export-content .ofd-page,\n .viewer-export-content .drawing-svg,\n .viewer-export-content .cad-canvas-wrap,\n .viewer-export-content .dwg-preview-frame {\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n box-shadow: none !important;\n }\n .viewer-export-content .ofd-page:last-child,\n .viewer-export-content .drawing-svg:last-child,\n .viewer-export-content .cad-canvas-wrap:last-child,\n .viewer-export-content .dwg-preview-frame:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .code-area {\n overflow: visible !important;\n white-space: pre-wrap !important;\n word-break: break-word !important;\n }\n .viewer-export-content .umd-body,\n .viewer-export-content .umd-stage-wrap,\n .viewer-export-content .umd-stage {\n display: block !important;\n height: auto !important;\n max-height: none !important;\n overflow: visible !important;\n }\n .viewer-export-content .umd-toc {\n display: none !important;\n }\n img, canvas, svg, video { max-width: 100%; }\n @media print {\n @page { margin: 12mm; }\n html, body { min-height: auto; background: #ffffff; }\n body { padding: 0; }\n .viewer-export-shell,\n .viewer-export-content {\n min-height: 0;\n overflow: visible;\n background: #ffffff;\n }\n .viewer-export-content .docx-print-document {\n width: auto !important;\n max-width: none !important;\n margin: 0 !important;\n }\n .viewer-export-content .pdf-export-document {\n display: block;\n padding: 0;\n }\n .viewer-export-content .pdf-export-page {\n width: var(--viewer-print-page-width, auto) !important;\n height: var(--viewer-print-page-height, auto) !important;\n max-width: none !important;\n margin: 0;\n overflow: hidden;\n box-shadow: none;\n }\n .viewer-export-content .docx-page-frame {\n width: var(--viewer-print-page-width, auto) !important;\n height: var(--viewer-print-page-height, auto) !important;\n min-height: var(--viewer-print-page-height, 0) !important;\n max-width: none !important;\n margin: 0 !important;\n overflow: hidden !important;\n }\n .viewer-export-content .docx-canvas-sheet {\n contain: none !important;\n width: var(--viewer-print-page-width, 794px) !important;\n height: var(--viewer-print-page-height, 1123px) !important;\n min-height: var(--viewer-print-page-height, 1123px) !important;\n max-width: none !important;\n margin: 0 !important;\n overflow: hidden !important;\n box-shadow: none !important;\n }\n .viewer-export-content .msdoc-page {\n width: var(--viewer-print-page-width, 794px) !important;\n min-height: var(--viewer-print-page-height, 1123px) !important;\n max-width: none !important;\n margin: 0 !important;\n overflow: visible !important;\n }\n .viewer-export-content .docx-page-frame > section.docx,\n .viewer-export-content .msdoc-page > .msdoc-root {\n width: var(--viewer-print-page-width, 100%) !important;\n max-width: none !important;\n border: 0 !important;\n }\n .viewer-export-content .pptx-wrapper .slide,\n .viewer-export-content .ofd-page,\n .viewer-export-content .drawing-svg,\n .viewer-export-content .cad-canvas-wrap,\n .viewer-export-content .dwg-preview-frame {\n box-shadow: none !important;\n }\n }\n", xt = (e) => {
1097
+ let t = at(e);
1078
1098
  return t ? Array.from(t.querySelectorAll("style, link[rel=\"stylesheet\"]")).map((e) => {
1079
1099
  var t;
1080
1100
  if (e.localName.toLowerCase() === "style") return `<style>${e.textContent || ""}</style>`;
@@ -1086,21 +1106,21 @@ var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").repl
1086
1106
  return "";
1087
1107
  }
1088
1108
  }).filter(Boolean).join("\n") : "";
1089
- }, q = ({ contentHtml: e, includeDocumentStyles: n = !0, printStyle: r = "", title: i, watermarkInlineStyle: a = "", mask: o = null, documentRef: s }) => {
1109
+ }, St = ({ contentHtml: e, includeDocumentStyles: n = !0, printStyle: r = "", title: i, watermarkInlineStyle: a = "", mask: o = null, documentRef: s }) => {
1090
1110
  var c, l;
1091
- let u = a ? `<div class="viewer-export-watermark" style="${rt(a)}"></div>` : "", h = d(o), g = h ? t(t({}, h), {}, {
1111
+ let u = a ? `<div class="viewer-export-watermark" style="${B(a)}"></div>` : "", h = d(o), g = h ? t(t({}, h), {}, {
1092
1112
  regions: (c = h.regions) == null ? void 0 : c.filter((e) => e.pageIndex === void 0),
1093
1113
  stamps: (l = h.stamps) == null ? void 0 : l.filter((e) => e.pageIndex === void 0)
1094
- }) : null, _ = p(g), ee = f(e, h), te = n ? K(s) : "", v = r ? `<style data-viewer-print-style>${r}</style>` : "", ne = h ? `<style data-viewer-print-mask-style>${m}</style>` : "";
1114
+ }) : null, _ = p(g), ee = f(e, h), te = n ? xt(s) : "", v = r ? `<style data-viewer-print-style>${r}</style>` : "", y = h ? `<style data-viewer-print-mask-style>${m}</style>` : "";
1095
1115
  return `<!doctype html>
1096
1116
  <html lang="zh-CN">
1097
1117
  <head>
1098
1118
  <meta charset="utf-8" />
1099
1119
  <meta name="viewport" content="width=device-width,initial-scale=1" />
1100
- <title>${rt(i)}</title>
1120
+ <title>${B(i)}</title>
1101
1121
  ${te}
1102
- <style>${G}</style>
1103
- ${ne}
1122
+ <style>${q}</style>
1123
+ ${y}
1104
1124
  </head>
1105
1125
  <body>
1106
1126
  <main class="viewer-export-shell">
@@ -1111,7 +1131,7 @@ var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").repl
1111
1131
  ${v}
1112
1132
  </body>
1113
1133
  </html>`;
1114
- }, xt = (e) => _t(q(e), e.documentRef), St = (e) => bt(q(e), e.documentRef), Ct = function() {
1134
+ }, Ct = (e) => yt(St(e), e.documentRef), wt = (e) => K(St(e), e.documentRef), J = function() {
1115
1135
  var t = e(function* ({ source: e, mode: t = "export", title: n, adapter: r = null, watermarkInlineStyle: a = "", mask: s = null }) {
1116
1136
  let l = {
1117
1137
  mode: t,
@@ -1146,20 +1166,20 @@ var nt = tt(), rt = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").repl
1146
1166
  return function(e) {
1147
1167
  return t.apply(this, arguments);
1148
1168
  };
1149
- }(), wt = function() {
1169
+ }(), Tt = function() {
1150
1170
  var t = e(function* (e) {
1151
- return xt(yield Ct(e));
1171
+ return Ct(yield J(e));
1152
1172
  });
1153
1173
  return function(e) {
1154
1174
  return t.apply(this, arguments);
1155
1175
  };
1156
- }(), J = function() {
1176
+ }(), Et = function() {
1157
1177
  var t = e(function* (e) {
1158
- return St(yield Ct(e));
1178
+ return wt(yield J(e));
1159
1179
  });
1160
1180
  return function(e) {
1161
1181
  return t.apply(this, arguments);
1162
1182
  };
1163
1183
  }();
1164
1184
  //#endregion
1165
- export { St as buildExportDomDocument, xt as buildExportHtmlDocument, J as buildFileViewerRenderedDomDocument, wt as buildFileViewerRenderedHtmlDocument, K as collectDocumentStyles, u as inlineFileViewerBlobUrlsInHtml, o as prepareFileViewerRenderedContentForSnapshot, c as replaceFileViewerCanvasWithImages, i as resolveFileViewerPrintStyle, bt as sanitizeFileViewerExportDocumentDom, _t as sanitizeFileViewerExportDocumentHtml, n as triggerFileViewerBlobDownload, s as triggerFileViewerUrlDownload, l as waitForFileViewerImages, r as waitForFileViewerNextPaint, a as waitForFileViewerPrintWindowReady };
1185
+ export { wt as buildExportDomDocument, Ct as buildExportHtmlDocument, Et as buildFileViewerRenderedDomDocument, Tt as buildFileViewerRenderedHtmlDocument, xt as collectDocumentStyles, u as inlineFileViewerBlobUrlsInHtml, o as prepareFileViewerRenderedContentForSnapshot, c as replaceFileViewerCanvasWithImages, i as resolveFileViewerPrintStyle, K as sanitizeFileViewerExportDocumentDom, yt as sanitizeFileViewerExportDocumentHtml, n as triggerFileViewerBlobDownload, s as triggerFileViewerUrlDownload, l as waitForFileViewerImages, r as waitForFileViewerNextPaint, a as waitForFileViewerPrintWindowReady };