@norio-office/rich-text 0.3.0 → 0.7.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.
- package/README.md +1368 -200
- package/dist/components/BlockColorPanel.vue.d.ts +21 -0
- package/dist/components/ColorPalettePanel.vue.d.ts +13 -0
- package/dist/components/FormulaEditorDialog.vue.d.ts +2 -2
- package/dist/components/ImageBlockView.vue.d.ts +3 -0
- package/dist/components/RichTextEditor.vue.d.ts +50 -10
- package/dist/components/RichTextOutline.vue.d.ts +2 -2
- package/dist/components/TableThemePanel.vue.d.ts +25 -0
- package/dist/components/TextSelectionMenu.vue.d.ts +28 -0
- package/dist/composables/useNodeViewEditable.d.ts +2 -0
- package/dist/composables/useRichTextEditor.d.ts +2 -1
- package/dist/extensions/comment-mark.d.ts +2 -0
- package/dist/extensions/styled-horizontal-rule.d.ts +1 -0
- package/dist/extensions/themed-table.d.ts +1 -0
- package/dist/feature-codes.d.ts +45 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +10119 -7059
- package/dist/index.umd.cjs +2669 -1711
- package/dist/style.css +1 -1
- package/dist/types.d.ts +133 -4
- package/dist/utils/color-palette.d.ts +2 -0
- package/dist/utils/divider.d.ts +13 -0
- package/dist/utils/table-theme.d.ts +44 -0
- package/docs/usage.md +32 -1
- package/package.json +9 -2
- package/yjs/README.md +63 -0
- package/yjs/index.js +224 -0
- package/yjs/package.json +14 -0
- package/dist/index.es-D5dDjrL4.js +0 -5751
- package/dist/jspdf.es.min-B2a2-__Q.js +0 -18214
- package/dist/purify.es-jA1o6Tcu.js +0 -597
- package/dist/typeof-Dz1Ap89p.js +0 -11
- /package/dist/{html2canvas-CmV4ppBE.js → html2canvas-4hiP1s1t.js} +0 -0
|
@@ -1,597 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/dompurify/dist/purify.es.mjs
|
|
2
|
-
var { entries: e, setPrototypeOf: t, isFrozen: n, getPrototypeOf: r, getOwnPropertyDescriptor: i } = Object, { freeze: a, seal: o, create: s } = Object, { apply: c, construct: l } = typeof Reflect < "u" && Reflect;
|
|
3
|
-
a ||= function(e) {
|
|
4
|
-
return e;
|
|
5
|
-
}, o ||= function(e) {
|
|
6
|
-
return e;
|
|
7
|
-
}, c ||= function(e, t) {
|
|
8
|
-
var n = [...arguments].slice(2);
|
|
9
|
-
return e.apply(t, n);
|
|
10
|
-
}, l ||= function(e) {
|
|
11
|
-
return new e(...[...arguments].slice(1));
|
|
12
|
-
};
|
|
13
|
-
var u = x(Array.prototype.forEach), d = x(Array.prototype.lastIndexOf), ee = x(Array.prototype.pop), f = x(Array.prototype.push), te = x(Array.prototype.splice), p = Array.isArray, m = x(String.prototype.toLowerCase), ne = x(String.prototype.toString), re = x(String.prototype.match), h = x(String.prototype.replace), ie = x(String.prototype.indexOf), ae = x(String.prototype.trim), oe = x(Number.prototype.toString), se = x(Boolean.prototype.toString), g = typeof BigInt > "u" ? null : x(BigInt.prototype.toString), ce = typeof Symbol > "u" ? null : x(Symbol.prototype.toString), _ = x(Object.prototype.hasOwnProperty), v = x(Object.prototype.toString), y = x(RegExp.prototype.test), b = S(TypeError);
|
|
14
|
-
function x(e) {
|
|
15
|
-
return function(t) {
|
|
16
|
-
t instanceof RegExp && (t.lastIndex = 0);
|
|
17
|
-
var n = [...arguments].slice(1);
|
|
18
|
-
return c(e, t, n);
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function S(e) {
|
|
22
|
-
return function() {
|
|
23
|
-
return l(e, [...arguments]);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function C(e, r) {
|
|
27
|
-
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : m;
|
|
28
|
-
if (t && t(e, null), !p(r)) return e;
|
|
29
|
-
let a = r.length;
|
|
30
|
-
for (; a--;) {
|
|
31
|
-
let t = r[a];
|
|
32
|
-
if (typeof t == "string") {
|
|
33
|
-
let e = i(t);
|
|
34
|
-
e !== t && (n(r) || (r[a] = e), t = e);
|
|
35
|
-
}
|
|
36
|
-
e[t] = !0;
|
|
37
|
-
}
|
|
38
|
-
return e;
|
|
39
|
-
}
|
|
40
|
-
function w(e) {
|
|
41
|
-
for (let t = 0; t < e.length; t++) _(e, t) || (e[t] = null);
|
|
42
|
-
return e;
|
|
43
|
-
}
|
|
44
|
-
function T(t) {
|
|
45
|
-
let n = s(null);
|
|
46
|
-
for (let [r, i] of e(t)) _(t, r) && (p(i) ? n[r] = w(i) : i && typeof i == "object" && i.constructor === Object ? n[r] = T(i) : n[r] = i);
|
|
47
|
-
return n;
|
|
48
|
-
}
|
|
49
|
-
function le(e) {
|
|
50
|
-
switch (typeof e) {
|
|
51
|
-
case "string": return e;
|
|
52
|
-
case "number": return oe(e);
|
|
53
|
-
case "boolean": return se(e);
|
|
54
|
-
case "bigint": return g ? g(e) : "0";
|
|
55
|
-
case "symbol": return ce ? ce(e) : "Symbol()";
|
|
56
|
-
case "undefined": return v(e);
|
|
57
|
-
case "function":
|
|
58
|
-
case "object": {
|
|
59
|
-
if (e === null) return v(e);
|
|
60
|
-
let t = e, n = E(t, "toString");
|
|
61
|
-
if (typeof n == "function") {
|
|
62
|
-
let e = n(t);
|
|
63
|
-
return typeof e == "string" ? e : v(e);
|
|
64
|
-
}
|
|
65
|
-
return v(e);
|
|
66
|
-
}
|
|
67
|
-
default: return v(e);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function E(e, t) {
|
|
71
|
-
for (; e !== null;) {
|
|
72
|
-
let n = i(e, t);
|
|
73
|
-
if (n) {
|
|
74
|
-
if (n.get) return x(n.get);
|
|
75
|
-
if (typeof n.value == "function") return x(n.value);
|
|
76
|
-
}
|
|
77
|
-
e = r(e);
|
|
78
|
-
}
|
|
79
|
-
function n() {
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
return n;
|
|
83
|
-
}
|
|
84
|
-
function ue(e) {
|
|
85
|
-
try {
|
|
86
|
-
return y(e, ""), !0;
|
|
87
|
-
} catch {
|
|
88
|
-
return !1;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
var de = a(/* @__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(".")), fe = a(/* @__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(".")), pe = a([
|
|
92
|
-
"feBlend",
|
|
93
|
-
"feColorMatrix",
|
|
94
|
-
"feComponentTransfer",
|
|
95
|
-
"feComposite",
|
|
96
|
-
"feConvolveMatrix",
|
|
97
|
-
"feDiffuseLighting",
|
|
98
|
-
"feDisplacementMap",
|
|
99
|
-
"feDistantLight",
|
|
100
|
-
"feDropShadow",
|
|
101
|
-
"feFlood",
|
|
102
|
-
"feFuncA",
|
|
103
|
-
"feFuncB",
|
|
104
|
-
"feFuncG",
|
|
105
|
-
"feFuncR",
|
|
106
|
-
"feGaussianBlur",
|
|
107
|
-
"feImage",
|
|
108
|
-
"feMerge",
|
|
109
|
-
"feMergeNode",
|
|
110
|
-
"feMorphology",
|
|
111
|
-
"feOffset",
|
|
112
|
-
"fePointLight",
|
|
113
|
-
"feSpecularLighting",
|
|
114
|
-
"feSpotLight",
|
|
115
|
-
"feTile",
|
|
116
|
-
"feTurbulence"
|
|
117
|
-
]), me = a([
|
|
118
|
-
"animate",
|
|
119
|
-
"color-profile",
|
|
120
|
-
"cursor",
|
|
121
|
-
"discard",
|
|
122
|
-
"font-face",
|
|
123
|
-
"font-face-format",
|
|
124
|
-
"font-face-name",
|
|
125
|
-
"font-face-src",
|
|
126
|
-
"font-face-uri",
|
|
127
|
-
"foreignobject",
|
|
128
|
-
"hatch",
|
|
129
|
-
"hatchpath",
|
|
130
|
-
"mesh",
|
|
131
|
-
"meshgradient",
|
|
132
|
-
"meshpatch",
|
|
133
|
-
"meshrow",
|
|
134
|
-
"missing-glyph",
|
|
135
|
-
"script",
|
|
136
|
-
"set",
|
|
137
|
-
"solidcolor",
|
|
138
|
-
"unknown",
|
|
139
|
-
"use"
|
|
140
|
-
]), he = a(/* @__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(".")), ge = a([
|
|
141
|
-
"maction",
|
|
142
|
-
"maligngroup",
|
|
143
|
-
"malignmark",
|
|
144
|
-
"mlongdiv",
|
|
145
|
-
"mscarries",
|
|
146
|
-
"mscarry",
|
|
147
|
-
"msgroup",
|
|
148
|
-
"mstack",
|
|
149
|
-
"msline",
|
|
150
|
-
"msrow",
|
|
151
|
-
"semantics",
|
|
152
|
-
"annotation",
|
|
153
|
-
"annotation-xml",
|
|
154
|
-
"mprescripts",
|
|
155
|
-
"none"
|
|
156
|
-
]), _e = a(["#text"]), ve = a(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.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(".")), ye = a(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), be = a(/* @__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(".")), xe = a([
|
|
157
|
-
"xlink:href",
|
|
158
|
-
"xml:id",
|
|
159
|
-
"xlink:title",
|
|
160
|
-
"xml:space",
|
|
161
|
-
"xmlns:xlink"
|
|
162
|
-
]), Se = o(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ce = o(/<%[\w\W]*|[\w\W]*%>/gm), we = o(/\$\{[\w\W]*/gm), Te = o(/^data-[\-\w.\u00B7-\uFFFF]+$/), D = o(/^aria-[\-\w]+$/), Ee = o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), O = o(/^(?:\w+script|data):/i), k = o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), De = o(/^html$/i), A = o(/^[a-z][.\w]*(-[.\w]+)+$/i), Oe = /* @__PURE__ */ Object.freeze({
|
|
163
|
-
__proto__: null,
|
|
164
|
-
ARIA_ATTR: D,
|
|
165
|
-
ATTR_WHITESPACE: k,
|
|
166
|
-
CUSTOM_ELEMENT: A,
|
|
167
|
-
DATA_ATTR: Te,
|
|
168
|
-
DOCTYPE_NAME: De,
|
|
169
|
-
ERB_EXPR: Ce,
|
|
170
|
-
IS_ALLOWED_URI: Ee,
|
|
171
|
-
IS_SCRIPT_OR_DATA: O,
|
|
172
|
-
MUSTACHE_EXPR: Se,
|
|
173
|
-
TMPLIT_EXPR: we
|
|
174
|
-
}), j = {
|
|
175
|
-
element: 1,
|
|
176
|
-
text: 3,
|
|
177
|
-
progressingInstruction: 7,
|
|
178
|
-
comment: 8,
|
|
179
|
-
document: 9
|
|
180
|
-
}, ke = function() {
|
|
181
|
-
return typeof window > "u" ? null : window;
|
|
182
|
-
}, Ae = function(e, t) {
|
|
183
|
-
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
184
|
-
let n = null, r = "data-tt-policy-suffix";
|
|
185
|
-
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
186
|
-
let i = "dompurify" + (n ? "#" + n : "");
|
|
187
|
-
try {
|
|
188
|
-
return e.createPolicy(i, {
|
|
189
|
-
createHTML(e) {
|
|
190
|
-
return e;
|
|
191
|
-
},
|
|
192
|
-
createScriptURL(e) {
|
|
193
|
-
return e;
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
} catch {
|
|
197
|
-
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
198
|
-
}
|
|
199
|
-
}, je = function() {
|
|
200
|
-
return {
|
|
201
|
-
afterSanitizeAttributes: [],
|
|
202
|
-
afterSanitizeElements: [],
|
|
203
|
-
afterSanitizeShadowDOM: [],
|
|
204
|
-
beforeSanitizeAttributes: [],
|
|
205
|
-
beforeSanitizeElements: [],
|
|
206
|
-
beforeSanitizeShadowDOM: [],
|
|
207
|
-
uponSanitizeAttribute: [],
|
|
208
|
-
uponSanitizeElement: [],
|
|
209
|
-
uponSanitizeShadowNode: []
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
function Me() {
|
|
213
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ke(), n = (e) => Me(e);
|
|
214
|
-
if (n.version = "3.4.2", n.removed = [], !t || !t.document || t.document.nodeType !== j.document || !t.Element) return n.isSupported = !1, n;
|
|
215
|
-
let { document: r } = t, i = r, o = i.currentScript, { DocumentFragment: c, HTMLTemplateElement: l, Node: oe, Element: se, NodeFilter: g, NamedNodeMap: ce = t.NamedNodeMap || t.MozNamedAttrMap, HTMLFormElement: v, DOMParser: x, trustedTypes: S } = t, w = se.prototype, Se = E(w, "cloneNode"), Ce = E(w, "remove"), we = E(w, "nextSibling"), Te = E(w, "childNodes"), D = E(w, "parentNode");
|
|
216
|
-
if (typeof l == "function") {
|
|
217
|
-
let e = r.createElement("template");
|
|
218
|
-
e.content && e.content.ownerDocument && (r = e.content.ownerDocument);
|
|
219
|
-
}
|
|
220
|
-
let O, k = "", { implementation: A, createNodeIterator: Ne, createDocumentFragment: Pe, getElementsByTagName: Fe } = r, { importNode: Ie } = i, M = je();
|
|
221
|
-
n.isSupported = typeof e == "function" && typeof D == "function" && A && A.createHTMLDocument !== void 0;
|
|
222
|
-
let { MUSTACHE_EXPR: Le, ERB_EXPR: Re, TMPLIT_EXPR: N, DATA_ATTR: ze, ARIA_ATTR: Be, IS_SCRIPT_OR_DATA: Ve, ATTR_WHITESPACE: He, CUSTOM_ELEMENT: Ue } = Oe, { IS_ALLOWED_URI: We } = Oe, P = null, Ge = C({}, [
|
|
223
|
-
...de,
|
|
224
|
-
...fe,
|
|
225
|
-
...pe,
|
|
226
|
-
...he,
|
|
227
|
-
..._e
|
|
228
|
-
]), F = null, Ke = C({}, [
|
|
229
|
-
...ve,
|
|
230
|
-
...ye,
|
|
231
|
-
...be,
|
|
232
|
-
...xe
|
|
233
|
-
]), I = Object.seal(s(null, {
|
|
234
|
-
tagNameCheck: {
|
|
235
|
-
writable: !0,
|
|
236
|
-
configurable: !1,
|
|
237
|
-
enumerable: !0,
|
|
238
|
-
value: null
|
|
239
|
-
},
|
|
240
|
-
attributeNameCheck: {
|
|
241
|
-
writable: !0,
|
|
242
|
-
configurable: !1,
|
|
243
|
-
enumerable: !0,
|
|
244
|
-
value: null
|
|
245
|
-
},
|
|
246
|
-
allowCustomizedBuiltInElements: {
|
|
247
|
-
writable: !0,
|
|
248
|
-
configurable: !1,
|
|
249
|
-
enumerable: !0,
|
|
250
|
-
value: !1
|
|
251
|
-
}
|
|
252
|
-
})), L = null, qe = null, R = Object.seal(s(null, {
|
|
253
|
-
tagCheck: {
|
|
254
|
-
writable: !0,
|
|
255
|
-
configurable: !1,
|
|
256
|
-
enumerable: !0,
|
|
257
|
-
value: null
|
|
258
|
-
},
|
|
259
|
-
attributeCheck: {
|
|
260
|
-
writable: !0,
|
|
261
|
-
configurable: !1,
|
|
262
|
-
enumerable: !0,
|
|
263
|
-
value: null
|
|
264
|
-
}
|
|
265
|
-
})), Je = !0, Ye = !0, Xe = !1, Ze = !0, z = !1, B = !0, V = !1, Qe = !1, $e = !1, H = !1, et = !1, tt = !1, nt = !0, rt = !1, it = "user-content-", at = !0, U = !1, W = {}, G = null, ot = C({}, [
|
|
266
|
-
"annotation-xml",
|
|
267
|
-
"audio",
|
|
268
|
-
"colgroup",
|
|
269
|
-
"desc",
|
|
270
|
-
"foreignobject",
|
|
271
|
-
"head",
|
|
272
|
-
"iframe",
|
|
273
|
-
"math",
|
|
274
|
-
"mi",
|
|
275
|
-
"mn",
|
|
276
|
-
"mo",
|
|
277
|
-
"ms",
|
|
278
|
-
"mtext",
|
|
279
|
-
"noembed",
|
|
280
|
-
"noframes",
|
|
281
|
-
"noscript",
|
|
282
|
-
"plaintext",
|
|
283
|
-
"script",
|
|
284
|
-
"style",
|
|
285
|
-
"svg",
|
|
286
|
-
"template",
|
|
287
|
-
"thead",
|
|
288
|
-
"title",
|
|
289
|
-
"video",
|
|
290
|
-
"xmp"
|
|
291
|
-
]), st = null, ct = C({}, [
|
|
292
|
-
"audio",
|
|
293
|
-
"video",
|
|
294
|
-
"img",
|
|
295
|
-
"source",
|
|
296
|
-
"image",
|
|
297
|
-
"track"
|
|
298
|
-
]), lt = null, ut = C({}, [
|
|
299
|
-
"alt",
|
|
300
|
-
"class",
|
|
301
|
-
"for",
|
|
302
|
-
"id",
|
|
303
|
-
"label",
|
|
304
|
-
"name",
|
|
305
|
-
"pattern",
|
|
306
|
-
"placeholder",
|
|
307
|
-
"role",
|
|
308
|
-
"summary",
|
|
309
|
-
"title",
|
|
310
|
-
"value",
|
|
311
|
-
"style",
|
|
312
|
-
"xmlns"
|
|
313
|
-
]), dt = "http://www.w3.org/1998/Math/MathML", ft = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, pt = !1, mt = null, ht = C({}, [
|
|
314
|
-
dt,
|
|
315
|
-
ft,
|
|
316
|
-
K
|
|
317
|
-
], ne), gt = C({}, [
|
|
318
|
-
"mi",
|
|
319
|
-
"mo",
|
|
320
|
-
"mn",
|
|
321
|
-
"ms",
|
|
322
|
-
"mtext"
|
|
323
|
-
]), _t = C({}, ["annotation-xml"]), vt = C({}, [
|
|
324
|
-
"title",
|
|
325
|
-
"style",
|
|
326
|
-
"font",
|
|
327
|
-
"a",
|
|
328
|
-
"script"
|
|
329
|
-
]), J = null, yt = ["application/xhtml+xml", "text/html"], Y = null, X = null, bt = r.createElement("form"), xt = function(e) {
|
|
330
|
-
return e instanceof RegExp || e instanceof Function;
|
|
331
|
-
}, St = function() {
|
|
332
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
333
|
-
if (X && X === e) return;
|
|
334
|
-
(!e || typeof e != "object") && (e = {}), e = T(e), J = yt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = J === "application/xhtml+xml" ? ne : m, P = _(e, "ALLOWED_TAGS") && p(e.ALLOWED_TAGS) ? C({}, e.ALLOWED_TAGS, Y) : Ge, F = _(e, "ALLOWED_ATTR") && p(e.ALLOWED_ATTR) ? C({}, e.ALLOWED_ATTR, Y) : Ke, mt = _(e, "ALLOWED_NAMESPACES") && p(e.ALLOWED_NAMESPACES) ? C({}, e.ALLOWED_NAMESPACES, ne) : ht, lt = _(e, "ADD_URI_SAFE_ATTR") && p(e.ADD_URI_SAFE_ATTR) ? C(T(ut), e.ADD_URI_SAFE_ATTR, Y) : ut, st = _(e, "ADD_DATA_URI_TAGS") && p(e.ADD_DATA_URI_TAGS) ? C(T(ct), e.ADD_DATA_URI_TAGS, Y) : ct, G = _(e, "FORBID_CONTENTS") && p(e.FORBID_CONTENTS) ? C({}, e.FORBID_CONTENTS, Y) : ot, L = _(e, "FORBID_TAGS") && p(e.FORBID_TAGS) ? C({}, e.FORBID_TAGS, Y) : T({}), qe = _(e, "FORBID_ATTR") && p(e.FORBID_ATTR) ? C({}, e.FORBID_ATTR, Y) : T({}), W = _(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? T(e.USE_PROFILES) : e.USE_PROFILES : !1, Je = e.ALLOW_ARIA_ATTR !== !1, Ye = e.ALLOW_DATA_ATTR !== !1, Xe = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ze = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, z = e.SAFE_FOR_TEMPLATES || !1, B = e.SAFE_FOR_XML !== !1, V = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, et = e.RETURN_DOM_FRAGMENT || !1, tt = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, nt = e.SANITIZE_DOM !== !1, rt = e.SANITIZE_NAMED_PROPS || !1, at = e.KEEP_CONTENT !== !1, U = e.IN_PLACE || !1, We = ue(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ee, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, gt = _(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? T(e.MATHML_TEXT_INTEGRATION_POINTS) : C({}, [
|
|
335
|
-
"mi",
|
|
336
|
-
"mo",
|
|
337
|
-
"mn",
|
|
338
|
-
"ms",
|
|
339
|
-
"mtext"
|
|
340
|
-
]), _t = _(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? T(e.HTML_INTEGRATION_POINTS) : C({}, ["annotation-xml"]);
|
|
341
|
-
let t = _(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? T(e.CUSTOM_ELEMENT_HANDLING) : s(null);
|
|
342
|
-
if (I = s(null), _(t, "tagNameCheck") && xt(t.tagNameCheck) && (I.tagNameCheck = t.tagNameCheck), _(t, "attributeNameCheck") && xt(t.attributeNameCheck) && (I.attributeNameCheck = t.attributeNameCheck), _(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), z && (Ye = !1), et && (H = !0), W && (P = C({}, _e), F = s(null), W.html === !0 && (C(P, de), C(F, ve)), W.svg === !0 && (C(P, fe), C(F, ye), C(F, xe)), W.svgFilters === !0 && (C(P, pe), C(F, ye), C(F, xe)), W.mathMl === !0 && (C(P, he), C(F, be), C(F, xe))), R.tagCheck = null, R.attributeCheck = null, _(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? R.tagCheck = e.ADD_TAGS : p(e.ADD_TAGS) && (P === Ge && (P = T(P)), C(P, e.ADD_TAGS, Y))), _(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? R.attributeCheck = e.ADD_ATTR : p(e.ADD_ATTR) && (F === Ke && (F = T(F)), C(F, e.ADD_ATTR, Y))), _(e, "ADD_URI_SAFE_ATTR") && p(e.ADD_URI_SAFE_ATTR) && C(lt, e.ADD_URI_SAFE_ATTR, Y), _(e, "FORBID_CONTENTS") && p(e.FORBID_CONTENTS) && (G === ot && (G = T(G)), C(G, e.FORBID_CONTENTS, Y)), _(e, "ADD_FORBID_CONTENTS") && p(e.ADD_FORBID_CONTENTS) && (G === ot && (G = T(G)), C(G, e.ADD_FORBID_CONTENTS, Y)), at && (P["#text"] = !0), V && C(P, [
|
|
343
|
-
"html",
|
|
344
|
-
"head",
|
|
345
|
-
"body"
|
|
346
|
-
]), P.table && (C(P, ["tbody"]), delete L.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
347
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw b("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
348
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw b("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
349
|
-
O = e.TRUSTED_TYPES_POLICY, k = O.createHTML("");
|
|
350
|
-
} else O === void 0 && (O = Ae(S, o)), O !== null && typeof k == "string" && (k = O.createHTML(""));
|
|
351
|
-
a && a(e), X = e;
|
|
352
|
-
}, Ct = C({}, [
|
|
353
|
-
...fe,
|
|
354
|
-
...pe,
|
|
355
|
-
...me
|
|
356
|
-
]), wt = C({}, [...he, ...ge]), Tt = function(e) {
|
|
357
|
-
let t = D(e);
|
|
358
|
-
(!t || !t.tagName) && (t = {
|
|
359
|
-
namespaceURI: q,
|
|
360
|
-
tagName: "template"
|
|
361
|
-
});
|
|
362
|
-
let n = m(e.tagName), r = m(t.tagName);
|
|
363
|
-
return mt[e.namespaceURI] ? e.namespaceURI === ft ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === dt ? n === "svg" && (r === "annotation-xml" || gt[r]) : !!Ct[n] : e.namespaceURI === dt ? t.namespaceURI === K ? n === "math" : t.namespaceURI === ft ? n === "math" && _t[r] : !!wt[n] : e.namespaceURI === K ? t.namespaceURI === ft && !_t[r] || t.namespaceURI === dt && !gt[r] ? !1 : !wt[n] && (vt[n] || !Ct[n]) : !!(J === "application/xhtml+xml" && mt[e.namespaceURI]) : !1;
|
|
364
|
-
}, Z = function(e) {
|
|
365
|
-
f(n.removed, { element: e });
|
|
366
|
-
try {
|
|
367
|
-
D(e).removeChild(e);
|
|
368
|
-
} catch {
|
|
369
|
-
Ce(e);
|
|
370
|
-
}
|
|
371
|
-
}, Q = function(e, t) {
|
|
372
|
-
try {
|
|
373
|
-
f(n.removed, {
|
|
374
|
-
attribute: t.getAttributeNode(e),
|
|
375
|
-
from: t
|
|
376
|
-
});
|
|
377
|
-
} catch {
|
|
378
|
-
f(n.removed, {
|
|
379
|
-
attribute: null,
|
|
380
|
-
from: t
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
if (t.removeAttribute(e), e === "is") if (H || et) try {
|
|
384
|
-
Z(t);
|
|
385
|
-
} catch {}
|
|
386
|
-
else try {
|
|
387
|
-
t.setAttribute(e, "");
|
|
388
|
-
} catch {}
|
|
389
|
-
}, Et = function(e) {
|
|
390
|
-
let t = null, n = null;
|
|
391
|
-
if ($e) e = "<remove></remove>" + e;
|
|
392
|
-
else {
|
|
393
|
-
let t = re(e, /^[\r\n\t ]+/);
|
|
394
|
-
n = t && t[0];
|
|
395
|
-
}
|
|
396
|
-
J === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
397
|
-
let i = O ? O.createHTML(e) : e;
|
|
398
|
-
if (q === K) try {
|
|
399
|
-
t = new x().parseFromString(i, J);
|
|
400
|
-
} catch {}
|
|
401
|
-
if (!t || !t.documentElement) {
|
|
402
|
-
t = A.createDocument(q, "template", null);
|
|
403
|
-
try {
|
|
404
|
-
t.documentElement.innerHTML = pt ? k : i;
|
|
405
|
-
} catch {}
|
|
406
|
-
}
|
|
407
|
-
let a = t.body || t.documentElement;
|
|
408
|
-
return e && n && a.insertBefore(r.createTextNode(n), a.childNodes[0] || null), q === K ? Fe.call(t, V ? "html" : "body")[0] : V ? t.documentElement : a;
|
|
409
|
-
}, Dt = function(e) {
|
|
410
|
-
return Ne.call(e.ownerDocument || e, e, g.SHOW_ELEMENT | g.SHOW_COMMENT | g.SHOW_TEXT | g.SHOW_PROCESSING_INSTRUCTION | g.SHOW_CDATA_SECTION, null);
|
|
411
|
-
}, Ot = function(e) {
|
|
412
|
-
return e instanceof v && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ce) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
413
|
-
}, kt = function(e) {
|
|
414
|
-
return typeof oe == "function" && e instanceof oe;
|
|
415
|
-
};
|
|
416
|
-
function $(e, t, r) {
|
|
417
|
-
u(e, (e) => {
|
|
418
|
-
e.call(n, t, r, X);
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
let At = function(e) {
|
|
422
|
-
let t = null;
|
|
423
|
-
if ($(M.beforeSanitizeElements, e, null), Ot(e)) return Z(e), !0;
|
|
424
|
-
let r = Y(e.nodeName);
|
|
425
|
-
if ($(M.uponSanitizeElement, e, {
|
|
426
|
-
tagName: r,
|
|
427
|
-
allowedTags: P
|
|
428
|
-
}), B && e.hasChildNodes() && !kt(e.firstElementChild) && y(/<[/\w!]/g, e.innerHTML) && y(/<[/\w!]/g, e.textContent) || B && e.namespaceURI === K && r === "style" && kt(e.firstElementChild) || e.nodeType === j.progressingInstruction || B && e.nodeType === j.comment && y(/<[/\w]/g, e.data)) return Z(e), !0;
|
|
429
|
-
if (L[r] || !(R.tagCheck instanceof Function && R.tagCheck(r)) && !P[r]) {
|
|
430
|
-
if (!L[r] && Nt(r) && (I.tagNameCheck instanceof RegExp && y(I.tagNameCheck, r) || I.tagNameCheck instanceof Function && I.tagNameCheck(r))) return !1;
|
|
431
|
-
if (at && !G[r]) {
|
|
432
|
-
let t = D(e) || e.parentNode, n = Te(e) || e.childNodes;
|
|
433
|
-
if (n && t) {
|
|
434
|
-
let r = n.length;
|
|
435
|
-
for (let i = r - 1; i >= 0; --i) {
|
|
436
|
-
let r = Se(n[i], !0);
|
|
437
|
-
t.insertBefore(r, we(e));
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
return Z(e), !0;
|
|
442
|
-
}
|
|
443
|
-
return e instanceof se && !Tt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && y(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Z(e), !0) : (z && e.nodeType === j.text && (t = e.textContent, u([
|
|
444
|
-
Le,
|
|
445
|
-
Re,
|
|
446
|
-
N
|
|
447
|
-
], (e) => {
|
|
448
|
-
t = h(t, e, " ");
|
|
449
|
-
}), e.textContent !== t && (f(n.removed, { element: e.cloneNode() }), e.textContent = t)), $(M.afterSanitizeElements, e, null), !1);
|
|
450
|
-
}, jt = function(e, t, n) {
|
|
451
|
-
if (qe[t] || nt && (t === "id" || t === "name") && (n in r || n in bt)) return !1;
|
|
452
|
-
let i = F[t] || R.attributeCheck instanceof Function && R.attributeCheck(t, e);
|
|
453
|
-
if (!(Ye && !qe[t] && y(ze, t)) && !(Je && y(Be, t))) {
|
|
454
|
-
if (!i || qe[t]) {
|
|
455
|
-
if (!(Nt(e) && (I.tagNameCheck instanceof RegExp && y(I.tagNameCheck, e) || I.tagNameCheck instanceof Function && I.tagNameCheck(e)) && (I.attributeNameCheck instanceof RegExp && y(I.attributeNameCheck, t) || I.attributeNameCheck instanceof Function && I.attributeNameCheck(t, e)) || t === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && y(I.tagNameCheck, n) || I.tagNameCheck instanceof Function && I.tagNameCheck(n)))) return !1;
|
|
456
|
-
} else if (!lt[t] && !y(We, h(n, He, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ie(n, "data:") === 0 && st[e]) && !(Xe && !y(Ve, h(n, He, ""))) && n) return !1;
|
|
457
|
-
}
|
|
458
|
-
return !0;
|
|
459
|
-
}, Mt = C({}, [
|
|
460
|
-
"annotation-xml",
|
|
461
|
-
"color-profile",
|
|
462
|
-
"font-face",
|
|
463
|
-
"font-face-format",
|
|
464
|
-
"font-face-name",
|
|
465
|
-
"font-face-src",
|
|
466
|
-
"font-face-uri",
|
|
467
|
-
"missing-glyph"
|
|
468
|
-
]), Nt = function(e) {
|
|
469
|
-
return !Mt[m(e)] && y(Ue, e);
|
|
470
|
-
}, Pt = function(e) {
|
|
471
|
-
$(M.beforeSanitizeAttributes, e, null);
|
|
472
|
-
let { attributes: t } = e;
|
|
473
|
-
if (!t || Ot(e)) return;
|
|
474
|
-
let r = {
|
|
475
|
-
attrName: "",
|
|
476
|
-
attrValue: "",
|
|
477
|
-
keepAttr: !0,
|
|
478
|
-
allowedAttributes: F,
|
|
479
|
-
forceKeepAttr: void 0
|
|
480
|
-
}, i = t.length;
|
|
481
|
-
for (; i--;) {
|
|
482
|
-
let { name: a, namespaceURI: o, value: s } = t[i], c = Y(a), l = s, d = a === "value" ? l : ae(l);
|
|
483
|
-
if (r.attrName = c, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, $(M.uponSanitizeAttribute, e, r), d = r.attrValue, rt && (c === "id" || c === "name") && ie(d, it) !== 0 && (Q(a, e), d = it + d), B && y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
484
|
-
Q(a, e);
|
|
485
|
-
continue;
|
|
486
|
-
}
|
|
487
|
-
if (c === "attributename" && re(d, "href")) {
|
|
488
|
-
Q(a, e);
|
|
489
|
-
continue;
|
|
490
|
-
}
|
|
491
|
-
if (r.forceKeepAttr) continue;
|
|
492
|
-
if (!r.keepAttr) {
|
|
493
|
-
Q(a, e);
|
|
494
|
-
continue;
|
|
495
|
-
}
|
|
496
|
-
if (!Ze && y(/\/>/i, d)) {
|
|
497
|
-
Q(a, e);
|
|
498
|
-
continue;
|
|
499
|
-
}
|
|
500
|
-
z && u([
|
|
501
|
-
Le,
|
|
502
|
-
Re,
|
|
503
|
-
N
|
|
504
|
-
], (e) => {
|
|
505
|
-
d = h(d, e, " ");
|
|
506
|
-
});
|
|
507
|
-
let f = Y(e.nodeName);
|
|
508
|
-
if (!jt(f, c, d)) {
|
|
509
|
-
Q(a, e);
|
|
510
|
-
continue;
|
|
511
|
-
}
|
|
512
|
-
if (O && typeof S == "object" && typeof S.getAttributeType == "function" && !o) switch (S.getAttributeType(f, c)) {
|
|
513
|
-
case "TrustedHTML":
|
|
514
|
-
d = O.createHTML(d);
|
|
515
|
-
break;
|
|
516
|
-
case "TrustedScriptURL":
|
|
517
|
-
d = O.createScriptURL(d);
|
|
518
|
-
break;
|
|
519
|
-
}
|
|
520
|
-
if (d !== l) try {
|
|
521
|
-
o ? e.setAttributeNS(o, a, d) : e.setAttribute(a, d), Ot(e) ? Z(e) : ee(n.removed);
|
|
522
|
-
} catch {
|
|
523
|
-
Q(a, e);
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
$(M.afterSanitizeAttributes, e, null);
|
|
527
|
-
}, Ft = function(e) {
|
|
528
|
-
let t = null, n = Dt(e);
|
|
529
|
-
for ($(M.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) $(M.uponSanitizeShadowNode, t, null), At(t), Pt(t), t.content instanceof c && Ft(t.content);
|
|
530
|
-
$(M.afterSanitizeShadowDOM, e, null);
|
|
531
|
-
};
|
|
532
|
-
return n.sanitize = function(e) {
|
|
533
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = null, a = null, o = null, s = null;
|
|
534
|
-
if (pt = !e, pt && (e = "<!-->"), typeof e != "string" && !kt(e) && (e = le(e), typeof e != "string")) throw b("dirty is not a string, aborting");
|
|
535
|
-
if (!n.isSupported) return e;
|
|
536
|
-
if (Qe || St(t), n.removed = [], typeof e == "string" && (U = !1), U) {
|
|
537
|
-
let t = e.nodeName;
|
|
538
|
-
if (typeof t == "string") {
|
|
539
|
-
let e = Y(t);
|
|
540
|
-
if (!P[e] || L[e]) throw b("root node is forbidden and cannot be sanitized in-place");
|
|
541
|
-
}
|
|
542
|
-
} else if (e instanceof oe) r = Et("<!---->"), a = r.ownerDocument.importNode(e, !0), a.nodeType === j.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? r = a : r.appendChild(a);
|
|
543
|
-
else {
|
|
544
|
-
if (!H && !z && !V && e.indexOf("<") === -1) return O && tt ? O.createHTML(e) : e;
|
|
545
|
-
if (r = Et(e), !r) return H ? null : tt ? k : "";
|
|
546
|
-
}
|
|
547
|
-
r && $e && Z(r.firstChild);
|
|
548
|
-
let l = Dt(U ? e : r);
|
|
549
|
-
for (; o = l.nextNode();) At(o), Pt(o), o.content instanceof c && Ft(o.content);
|
|
550
|
-
if (U) return e;
|
|
551
|
-
if (H) {
|
|
552
|
-
if (z) {
|
|
553
|
-
r.normalize();
|
|
554
|
-
let e = r.innerHTML;
|
|
555
|
-
u([
|
|
556
|
-
Le,
|
|
557
|
-
Re,
|
|
558
|
-
N
|
|
559
|
-
], (t) => {
|
|
560
|
-
e = h(e, t, " ");
|
|
561
|
-
}), r.innerHTML = e;
|
|
562
|
-
}
|
|
563
|
-
if (et) for (s = Pe.call(r.ownerDocument); r.firstChild;) s.appendChild(r.firstChild);
|
|
564
|
-
else s = r;
|
|
565
|
-
return (F.shadowroot || F.shadowrootmode) && (s = Ie.call(i, s, !0)), s;
|
|
566
|
-
}
|
|
567
|
-
let d = V ? r.outerHTML : r.innerHTML;
|
|
568
|
-
return V && P["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && y(De, r.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + d), z && u([
|
|
569
|
-
Le,
|
|
570
|
-
Re,
|
|
571
|
-
N
|
|
572
|
-
], (e) => {
|
|
573
|
-
d = h(d, e, " ");
|
|
574
|
-
}), O && tt ? O.createHTML(d) : d;
|
|
575
|
-
}, n.setConfig = function() {
|
|
576
|
-
St(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Qe = !0;
|
|
577
|
-
}, n.clearConfig = function() {
|
|
578
|
-
X = null, Qe = !1;
|
|
579
|
-
}, n.isValidAttribute = function(e, t, n) {
|
|
580
|
-
return X || St({}), jt(Y(e), Y(t), n);
|
|
581
|
-
}, n.addHook = function(e, t) {
|
|
582
|
-
typeof t == "function" && f(M[e], t);
|
|
583
|
-
}, n.removeHook = function(e, t) {
|
|
584
|
-
if (t !== void 0) {
|
|
585
|
-
let n = d(M[e], t);
|
|
586
|
-
return n === -1 ? void 0 : te(M[e], n, 1)[0];
|
|
587
|
-
}
|
|
588
|
-
return ee(M[e]);
|
|
589
|
-
}, n.removeHooks = function(e) {
|
|
590
|
-
M[e] = [];
|
|
591
|
-
}, n.removeAllHooks = function() {
|
|
592
|
-
M = je();
|
|
593
|
-
}, n;
|
|
594
|
-
}
|
|
595
|
-
var Ne = Me();
|
|
596
|
-
//#endregion
|
|
597
|
-
export { Ne as default };
|
package/dist/typeof-Dz1Ap89p.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
2
|
-
function e(t) {
|
|
3
|
-
"@babel/helpers - typeof";
|
|
4
|
-
return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
5
|
-
return typeof e;
|
|
6
|
-
} : function(e) {
|
|
7
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8
|
-
}, e(t);
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { e as t };
|
|
File without changes
|