@squeed/flow-sdk 2.0.22 → 2.0.25
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 +117 -0
- package/dist/{contentPreviewDocument-B0nOMpw0.js → _virtual_content-preview-runtime-Deui59HN.cjs} +3 -961
- package/dist/_virtual_content-preview-runtime-Deui59HN.cjs.map +1 -0
- package/dist/{contentPreviewDocument-B_Jous_v.cjs → _virtual_content-preview-runtime-X_KtOyFO.js} +6 -11
- package/dist/_virtual_content-preview-runtime-X_KtOyFO.js.map +1 -0
- package/dist/contentPreviewDocument-BsKd0dD4.cjs +10 -0
- package/dist/{contentPreviewDocument-B_Jous_v.cjs.map → contentPreviewDocument-BsKd0dD4.cjs.map} +1 -1
- package/dist/contentPreviewDocument-C2D0H-Lr.js +962 -0
- package/dist/{contentPreviewDocument-B0nOMpw0.js.map → contentPreviewDocument-C2D0H-Lr.js.map} +1 -1
- package/dist/index.cjs +12 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +144 -7
- package/dist/index.d.ts +144 -7
- package/dist/index.js +11813 -10024
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/{contentPreviewDocument-B0nOMpw0.js → _virtual_content-preview-runtime-Deui59HN.cjs}
RENAMED
|
@@ -1,908 +1,4 @@
|
|
|
1
|
-
/*! @license DOMPurify 3.4.15 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.15/LICENSE */
|
|
2
|
-
function Vn(r, l) {
|
|
3
|
-
(l == null || l > r.length) && (l = r.length);
|
|
4
|
-
for (var i = 0, s = Array(l); i < l; i++) s[i] = r[i];
|
|
5
|
-
return s;
|
|
6
|
-
}
|
|
7
|
-
function jt(r) {
|
|
8
|
-
if (Array.isArray(r)) return r;
|
|
9
|
-
}
|
|
10
|
-
function Ht(r, l) {
|
|
11
|
-
var i = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
12
|
-
if (i != null) {
|
|
13
|
-
var s, f, m, b, O = [], _ = !0, z = !1;
|
|
14
|
-
try {
|
|
15
|
-
if (m = (i = i.call(r)).next, l !== 0) for (; !(_ = (s = m.call(i)).done) && (O.push(s.value), O.length !== l); _ = !0) ;
|
|
16
|
-
} catch ($) {
|
|
17
|
-
z = !0, f = $;
|
|
18
|
-
} finally {
|
|
19
|
-
try {
|
|
20
|
-
if (!_ && i.return != null && (b = i.return(), Object(b) !== b)) return;
|
|
21
|
-
} finally {
|
|
22
|
-
if (z) throw f;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return O;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function Bt() {
|
|
29
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
30
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
31
|
-
}
|
|
32
|
-
function Wt(r, l) {
|
|
33
|
-
return jt(r) || Ht(r, l) || $t(r, l) || Bt();
|
|
34
|
-
}
|
|
35
|
-
function $t(r, l) {
|
|
36
|
-
if (r) {
|
|
37
|
-
if (typeof r == "string") return Vn(r, l);
|
|
38
|
-
var i = {}.toString.call(r).slice(8, -1);
|
|
39
|
-
return i === "Object" && r.constructor && (i = r.constructor.name), i === "Map" || i === "Set" ? Array.from(r) : i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? Vn(r, l) : void 0;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
const at = Object.entries, Qn = Object.setPrototypeOf, Vt = Object.isFrozen, Qt = Object.getPrototypeOf, Gt = Object.getOwnPropertyDescriptor;
|
|
43
|
-
let k = Object.freeze, E = Object.seal, ue = Object.create, it = typeof Reflect < "u" && Reflect, un = it.apply, sn = it.construct;
|
|
44
|
-
k || (k = function(l) {
|
|
45
|
-
return l;
|
|
46
|
-
});
|
|
47
|
-
E || (E = function(l) {
|
|
48
|
-
return l;
|
|
49
|
-
});
|
|
50
|
-
un || (un = function(l, i) {
|
|
51
|
-
for (var s = arguments.length, f = new Array(s > 2 ? s - 2 : 0), m = 2; m < s; m++)
|
|
52
|
-
f[m - 2] = arguments[m];
|
|
53
|
-
return l.apply(i, f);
|
|
54
|
-
});
|
|
55
|
-
sn || (sn = function(l) {
|
|
56
|
-
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), f = 1; f < i; f++)
|
|
57
|
-
s[f - 1] = arguments[f];
|
|
58
|
-
return new l(...s);
|
|
59
|
-
});
|
|
60
|
-
const X = S(Array.prototype.forEach), Yt = S(Array.prototype.lastIndexOf), Gn = S(Array.prototype.pop), he = S(Array.prototype.push), qt = S(Array.prototype.splice), se = Array.isArray, ve = S(String.prototype.toLowerCase), nn = S(String.prototype.toString), Yn = S(String.prototype.match), ge = S(String.prototype.replace), qn = S(String.prototype.indexOf), Kt = S(String.prototype.trim), Xt = S(Number.prototype.toString), Zt = S(Boolean.prototype.toString), Kn = typeof BigInt > "u" ? null : S(BigInt.prototype.toString), Xn = typeof Symbol > "u" ? null : S(Symbol.prototype.toString), L = S(Object.prototype.hasOwnProperty), ye = S(Object.prototype.toString), T = S(RegExp.prototype.test), K = Jt(TypeError);
|
|
61
|
-
function S(r) {
|
|
62
|
-
return function(l) {
|
|
63
|
-
l instanceof RegExp && (l.lastIndex = 0);
|
|
64
|
-
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), f = 1; f < i; f++)
|
|
65
|
-
s[f - 1] = arguments[f];
|
|
66
|
-
return un(r, l, s);
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function Jt(r) {
|
|
70
|
-
return function() {
|
|
71
|
-
for (var l = arguments.length, i = new Array(l), s = 0; s < l; s++)
|
|
72
|
-
i[s] = arguments[s];
|
|
73
|
-
return sn(r, i);
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function d(r, l) {
|
|
77
|
-
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ve;
|
|
78
|
-
if (Qn && Qn(r, null), !se(l))
|
|
79
|
-
return r;
|
|
80
|
-
let s = l.length;
|
|
81
|
-
for (; s--; ) {
|
|
82
|
-
let f = l[s];
|
|
83
|
-
if (typeof f == "string") {
|
|
84
|
-
const m = i(f);
|
|
85
|
-
m !== f && (Vt(l) || (l[s] = m), f = m);
|
|
86
|
-
}
|
|
87
|
-
r[f] = !0;
|
|
88
|
-
}
|
|
89
|
-
return r;
|
|
90
|
-
}
|
|
91
|
-
function er(r) {
|
|
92
|
-
for (let l = 0; l < r.length; l++)
|
|
93
|
-
L(r, l) || (r[l] = null);
|
|
94
|
-
return r;
|
|
95
|
-
}
|
|
96
|
-
function R(r) {
|
|
97
|
-
const l = ue(null);
|
|
98
|
-
for (const s of at(r)) {
|
|
99
|
-
var i = Wt(s, 2);
|
|
100
|
-
const f = i[0], m = i[1];
|
|
101
|
-
L(r, f) && (se(m) ? l[f] = er(m) : m && typeof m == "object" && m.constructor === Object ? l[f] = R(m) : l[f] = m);
|
|
102
|
-
}
|
|
103
|
-
return l;
|
|
104
|
-
}
|
|
105
|
-
function nr(r) {
|
|
106
|
-
switch (typeof r) {
|
|
107
|
-
case "string":
|
|
108
|
-
return r;
|
|
109
|
-
case "number":
|
|
110
|
-
return Xt(r);
|
|
111
|
-
case "boolean":
|
|
112
|
-
return Zt(r);
|
|
113
|
-
case "bigint":
|
|
114
|
-
return Kn ? Kn(r) : "0";
|
|
115
|
-
case "symbol":
|
|
116
|
-
return Xn ? Xn(r) : "Symbol()";
|
|
117
|
-
case "undefined":
|
|
118
|
-
return ye(r);
|
|
119
|
-
case "function":
|
|
120
|
-
case "object": {
|
|
121
|
-
if (r === null)
|
|
122
|
-
return ye(r);
|
|
123
|
-
const l = r, i = D(l, "toString");
|
|
124
|
-
if (typeof i == "function") {
|
|
125
|
-
const s = i(l);
|
|
126
|
-
return typeof s == "string" ? s : ye(s);
|
|
127
|
-
}
|
|
128
|
-
return ye(r);
|
|
129
|
-
}
|
|
130
|
-
default:
|
|
131
|
-
return ye(r);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
function D(r, l) {
|
|
135
|
-
for (; r !== null; ) {
|
|
136
|
-
const s = Gt(r, l);
|
|
137
|
-
if (s) {
|
|
138
|
-
if (s.get)
|
|
139
|
-
return S(s.get);
|
|
140
|
-
if (typeof s.value == "function")
|
|
141
|
-
return S(s.value);
|
|
142
|
-
}
|
|
143
|
-
r = Qt(r);
|
|
144
|
-
}
|
|
145
|
-
function i() {
|
|
146
|
-
return null;
|
|
147
|
-
}
|
|
148
|
-
return i;
|
|
149
|
-
}
|
|
150
|
-
function tr(r) {
|
|
151
|
-
try {
|
|
152
|
-
return T(r, ""), !0;
|
|
153
|
-
} catch {
|
|
154
|
-
return !1;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
const Zn = k(["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"]), tn = k(["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"]), rn = k(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), rr = k(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), ln = k(["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"]), lr = k(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Jn = k(["#text"]), et = k(["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"]), on = k(["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"]), nt = k(["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"]), De = k(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), or = E(/{{[\w\W]*|^[\w\W]*}}/g), ar = E(/<%[\w\W]*|^[\w\W]*%>/g), ir = E(/\${[\w\W]*/g), ur = E(/^data-[\-\w.\u00B7-\uFFFF]+$/), sr = E(/^aria-[\-\w]+$/), tt = E(
|
|
158
|
-
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
159
|
-
// eslint-disable-line no-useless-escape
|
|
160
|
-
), cr = E(/^(?:\w+script|data):/i), fr = E(
|
|
161
|
-
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
162
|
-
// eslint-disable-line no-control-regex
|
|
163
|
-
), dr = E(/^html$/i), pr = E(/^[a-z][.\w]*(-[.\w]+)+$/i), rt = E(/<[/\w!]/g), lt = E(/<[/\w]/g), mr = E(/<\/no(script|embed|frames)/i), hr = E(/\/>/i), A = {
|
|
164
|
-
element: 1,
|
|
165
|
-
attribute: 2,
|
|
166
|
-
text: 3,
|
|
167
|
-
cdataSection: 4,
|
|
168
|
-
entityReference: 5,
|
|
169
|
-
// Deprecated
|
|
170
|
-
entityNode: 6,
|
|
171
|
-
// Deprecated
|
|
172
|
-
processingInstruction: 7,
|
|
173
|
-
comment: 8,
|
|
174
|
-
document: 9,
|
|
175
|
-
documentType: 10,
|
|
176
|
-
documentFragment: 11,
|
|
177
|
-
notation: 12
|
|
178
|
-
// Deprecated
|
|
179
|
-
}, ut = ["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"], gr = k(d({}, ut)), yr = (function() {
|
|
180
|
-
const r = {};
|
|
181
|
-
return X(ut, (l) => {
|
|
182
|
-
r[l] = E(new RegExp("</" + l + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
183
|
-
}), k(r);
|
|
184
|
-
})(), vr = function() {
|
|
185
|
-
return typeof window > "u" ? null : window;
|
|
186
|
-
}, br = function(l, i) {
|
|
187
|
-
if (typeof l != "object" || typeof l.createPolicy != "function")
|
|
188
|
-
return null;
|
|
189
|
-
let s = null;
|
|
190
|
-
const f = "data-tt-policy-suffix";
|
|
191
|
-
i && i.hasAttribute(f) && (s = i.getAttribute(f));
|
|
192
|
-
const m = "dompurify" + (s ? "#" + s : "");
|
|
193
|
-
try {
|
|
194
|
-
return l.createPolicy(m, {
|
|
195
|
-
createHTML(b) {
|
|
196
|
-
return b;
|
|
197
|
-
},
|
|
198
|
-
createScriptURL(b) {
|
|
199
|
-
return b;
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
} catch {
|
|
203
|
-
return console.warn("TrustedTypes policy " + m + " could not be created."), null;
|
|
204
|
-
}
|
|
205
|
-
}, ot = function() {
|
|
206
|
-
return {
|
|
207
|
-
afterSanitizeAttributes: [],
|
|
208
|
-
afterSanitizeElements: [],
|
|
209
|
-
afterSanitizeShadowDOM: [],
|
|
210
|
-
beforeSanitizeAttributes: [],
|
|
211
|
-
beforeSanitizeElements: [],
|
|
212
|
-
beforeSanitizeShadowDOM: [],
|
|
213
|
-
uponSanitizeAttribute: [],
|
|
214
|
-
uponSanitizeElement: [],
|
|
215
|
-
uponSanitizeShadowNode: []
|
|
216
|
-
};
|
|
217
|
-
}, W = function(l, i, s, f) {
|
|
218
|
-
return L(l, i) && se(l[i]) ? d(f.base ? R(f.base) : {}, l[i], f.transform) : s;
|
|
219
|
-
}, an = function(l, i, s) {
|
|
220
|
-
const f = L(l, i) ? l[i] : void 0;
|
|
221
|
-
return f && typeof f == "object" ? R(f) : s();
|
|
222
|
-
};
|
|
223
|
-
function st() {
|
|
224
|
-
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : vr();
|
|
225
|
-
const l = (o) => st(o);
|
|
226
|
-
if (l.version = "3.4.15", l.removed = [], !r || !r.document || r.document.nodeType !== A.document || !r.Element)
|
|
227
|
-
return l.isSupported = !1, l;
|
|
228
|
-
let i = r.document;
|
|
229
|
-
const s = i, f = s.currentScript;
|
|
230
|
-
r.DocumentFragment;
|
|
231
|
-
const m = r.HTMLTemplateElement, b = r.Node, O = r.Element, _ = r.NodeFilter, z = r.NamedNodeMap;
|
|
232
|
-
z === void 0 && (r.NamedNodeMap || r.MozNamedAttrMap), r.HTMLFormElement;
|
|
233
|
-
const $ = r.DOMParser, be = r.trustedTypes, U = O.prototype, ct = D(U, "cloneNode"), ze = D(U, "remove"), cn = D(U, "removeAttributeNode"), ft = D(U, "nextSibling"), Z = D(U, "childNodes"), J = D(U, "parentNode"), fn = D(U, "shadowRoot"), Ie = D(U, "attributes"), V = b && b.prototype ? D(b.prototype, "nodeType") : null, ee = b && b.prototype ? D(b.prototype, "nodeName") : null, we = b && b.prototype ? D(b.prototype, "ownerDocument") : null, ce = function(e) {
|
|
234
|
-
return V ? V(e) : e.nodeType;
|
|
235
|
-
}, Me = function(e) {
|
|
236
|
-
return ee ? ee(e) : e.nodeName;
|
|
237
|
-
};
|
|
238
|
-
if (typeof m == "function") {
|
|
239
|
-
const o = i.createElement("template");
|
|
240
|
-
o.content && o.content.ownerDocument && (i = o.content.ownerDocument);
|
|
241
|
-
}
|
|
242
|
-
let C, Q = "", Fe, dn = !1, fe = 0;
|
|
243
|
-
const pn = function() {
|
|
244
|
-
if (fe > 0)
|
|
245
|
-
throw K('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.');
|
|
246
|
-
}, ne = function(e) {
|
|
247
|
-
pn(), fe++;
|
|
248
|
-
try {
|
|
249
|
-
return C.createHTML(e);
|
|
250
|
-
} finally {
|
|
251
|
-
fe--;
|
|
252
|
-
}
|
|
253
|
-
}, dt = function(e) {
|
|
254
|
-
pn(), fe++;
|
|
255
|
-
try {
|
|
256
|
-
return C.createScriptURL(e);
|
|
257
|
-
} finally {
|
|
258
|
-
fe--;
|
|
259
|
-
}
|
|
260
|
-
}, pt = function() {
|
|
261
|
-
return dn || (Fe = br(be, f), dn = !0), Fe;
|
|
262
|
-
}, Se = i, Ue = Se.implementation, mn = Se.createNodeIterator, mt = Se.createDocumentFragment, ht = Se.getElementsByTagName, gt = s.importNode;
|
|
263
|
-
let h = ot();
|
|
264
|
-
l.isSupported = typeof at == "function" && typeof J == "function" && Ue && Ue.createHTMLDocument !== void 0;
|
|
265
|
-
const yt = or, vt = ar, bt = ir, wt = ur, St = sr, kt = cr, hn = fr, Et = pr;
|
|
266
|
-
let gn = tt, g = null;
|
|
267
|
-
const je = d({}, [...Zn, ...tn, ...rn, ...ln, ...Jn]);
|
|
268
|
-
let y = null;
|
|
269
|
-
const He = d({}, [...et, ...on, ...nt, ...De]);
|
|
270
|
-
let I = Object.seal(ue(null, {
|
|
271
|
-
tagNameCheck: {
|
|
272
|
-
writable: !0,
|
|
273
|
-
configurable: !1,
|
|
274
|
-
enumerable: !0,
|
|
275
|
-
value: null
|
|
276
|
-
},
|
|
277
|
-
attributeNameCheck: {
|
|
278
|
-
writable: !0,
|
|
279
|
-
configurable: !1,
|
|
280
|
-
enumerable: !0,
|
|
281
|
-
value: null
|
|
282
|
-
},
|
|
283
|
-
allowCustomizedBuiltInElements: {
|
|
284
|
-
writable: !0,
|
|
285
|
-
configurable: !1,
|
|
286
|
-
enumerable: !0,
|
|
287
|
-
value: !1
|
|
288
|
-
}
|
|
289
|
-
})), de = null, yn = null;
|
|
290
|
-
const j = Object.seal(ue(null, {
|
|
291
|
-
tagCheck: {
|
|
292
|
-
writable: !0,
|
|
293
|
-
configurable: !1,
|
|
294
|
-
enumerable: !0,
|
|
295
|
-
value: null
|
|
296
|
-
},
|
|
297
|
-
attributeCheck: {
|
|
298
|
-
writable: !0,
|
|
299
|
-
configurable: !1,
|
|
300
|
-
enumerable: !0,
|
|
301
|
-
value: null
|
|
302
|
-
}
|
|
303
|
-
}));
|
|
304
|
-
let vn = !0, Be = !0, bn = !1, wn = !0, H = !1, G = !0, Y = !1, We = !1, ke = null, Ee = null, $e = !1, te = !1, _e = !1, Te = !1, Sn = !0, kn = !1;
|
|
305
|
-
const En = "user-content-";
|
|
306
|
-
let Ve = !0, Qe = !1, re = {}, le = null;
|
|
307
|
-
const _n = d({}, [
|
|
308
|
-
"annotation-xml",
|
|
309
|
-
"audio",
|
|
310
|
-
"colgroup",
|
|
311
|
-
"desc",
|
|
312
|
-
"foreignobject",
|
|
313
|
-
"head",
|
|
314
|
-
"iframe",
|
|
315
|
-
"math",
|
|
316
|
-
"mi",
|
|
317
|
-
"mn",
|
|
318
|
-
"mo",
|
|
319
|
-
"ms",
|
|
320
|
-
"mtext",
|
|
321
|
-
"noembed",
|
|
322
|
-
"noframes",
|
|
323
|
-
"noscript",
|
|
324
|
-
"plaintext",
|
|
325
|
-
"script",
|
|
326
|
-
// <selectedcontent> mirrors the selected <option>'s subtree, cloned by
|
|
327
|
-
// the UA (customizable <select>) — including any on* handlers — and the
|
|
328
|
-
// engine re-mirrors synchronously whenever a removal changes which
|
|
329
|
-
// option/selectedcontent is current, even inside DOMPurify's inert
|
|
330
|
-
// DOMParser document. Hoisting its children on removal re-inserts a fresh
|
|
331
|
-
// mirror target ahead of the walk, which the engine refills, looping
|
|
332
|
-
// forever (DoS) and amplifying output. Dropping its content on removal
|
|
333
|
-
// (rather than hoisting) breaks that cascade; the content is a duplicate
|
|
334
|
-
// of the option, which is sanitized on its own. See campaign-3 F1/F6.
|
|
335
|
-
"selectedcontent",
|
|
336
|
-
"style",
|
|
337
|
-
"svg",
|
|
338
|
-
"template",
|
|
339
|
-
"thead",
|
|
340
|
-
"title",
|
|
341
|
-
"video",
|
|
342
|
-
"xmp"
|
|
343
|
-
]);
|
|
344
|
-
let Tn = null;
|
|
345
|
-
const xn = d({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
346
|
-
let Cn = null;
|
|
347
|
-
const Nn = d({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), xe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", M = "http://www.w3.org/1999/xhtml";
|
|
348
|
-
let oe = M, Ge = !1, Ye = null;
|
|
349
|
-
const _t = d({}, [xe, Ce, M], nn), Pn = k(["mi", "mo", "mn", "ms", "mtext"]);
|
|
350
|
-
let qe = d({}, Pn);
|
|
351
|
-
const Ln = k(["annotation-xml"]);
|
|
352
|
-
let Ke = d({}, Ln);
|
|
353
|
-
const Tt = d({}, ["title", "style", "font", "a", "script"]);
|
|
354
|
-
let pe = null;
|
|
355
|
-
const xt = ["application/xhtml+xml", "text/html"], Ct = "text/html";
|
|
356
|
-
let w = null, ae = null;
|
|
357
|
-
const Nt = i.createElement("form"), An = function(e) {
|
|
358
|
-
return e instanceof RegExp || e instanceof Function;
|
|
359
|
-
}, Xe = function() {
|
|
360
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
361
|
-
if (ae && ae === e)
|
|
362
|
-
return;
|
|
363
|
-
(!e || typeof e != "object") && (e = {}), e = R(e), pe = // eslint-disable-next-line unicorn/prefer-includes
|
|
364
|
-
xt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Ct : e.PARSER_MEDIA_TYPE, w = pe === "application/xhtml+xml" ? nn : ve, g = W(e, "ALLOWED_TAGS", je, {
|
|
365
|
-
transform: w
|
|
366
|
-
}), y = W(e, "ALLOWED_ATTR", He, {
|
|
367
|
-
transform: w
|
|
368
|
-
}), Ye = W(e, "ALLOWED_NAMESPACES", _t, {
|
|
369
|
-
transform: nn
|
|
370
|
-
}), Cn = W(e, "ADD_URI_SAFE_ATTR", Nn, {
|
|
371
|
-
transform: w,
|
|
372
|
-
base: Nn
|
|
373
|
-
}), Tn = W(e, "ADD_DATA_URI_TAGS", xn, {
|
|
374
|
-
transform: w,
|
|
375
|
-
base: xn
|
|
376
|
-
}), le = W(e, "FORBID_CONTENTS", _n, {
|
|
377
|
-
transform: w
|
|
378
|
-
}), de = W(e, "FORBID_TAGS", R({}), {
|
|
379
|
-
transform: w
|
|
380
|
-
}), yn = W(e, "FORBID_ATTR", R({}), {
|
|
381
|
-
transform: w
|
|
382
|
-
}), re = L(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? R(e.USE_PROFILES) : e.USE_PROFILES : !1, vn = e.ALLOW_ARIA_ATTR !== !1, Be = e.ALLOW_DATA_ATTR !== !1, bn = e.ALLOW_UNKNOWN_PROTOCOLS || !1, wn = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = e.SAFE_FOR_TEMPLATES || !1, G = e.SAFE_FOR_XML !== !1, Y = e.WHOLE_DOCUMENT || !1, te = e.RETURN_DOM || !1, _e = e.RETURN_DOM_FRAGMENT || !1, Te = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, Sn = e.SANITIZE_DOM !== !1, kn = e.SANITIZE_NAMED_PROPS || !1, Ve = e.KEEP_CONTENT !== !1, Qe = e.IN_PLACE || !1, gn = tr(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : tt, oe = typeof e.NAMESPACE == "string" ? e.NAMESPACE : M, qe = an(
|
|
383
|
-
e,
|
|
384
|
-
"MATHML_TEXT_INTEGRATION_POINTS",
|
|
385
|
-
() => d({}, Pn)
|
|
386
|
-
// Default built-in map
|
|
387
|
-
), Ke = an(
|
|
388
|
-
e,
|
|
389
|
-
"HTML_INTEGRATION_POINTS",
|
|
390
|
-
() => d({}, Ln)
|
|
391
|
-
// Default built-in map
|
|
392
|
-
);
|
|
393
|
-
const n = an(e, "CUSTOM_ELEMENT_HANDLING", () => ue(null));
|
|
394
|
-
if (I = ue(null), L(n, "tagNameCheck") && An(n.tagNameCheck) && (I.tagNameCheck = n.tagNameCheck), L(n, "attributeNameCheck") && An(n.attributeNameCheck) && (I.attributeNameCheck = n.attributeNameCheck), L(n, "allowCustomizedBuiltInElements") && typeof n.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = n.allowCustomizedBuiltInElements), E(I), H && (Be = !1), _e && (te = !0), re && (g = d({}, Jn), y = ue(null), re.html === !0 && (d(g, Zn), d(y, et)), re.svg === !0 && (d(g, tn), d(y, on), d(y, De)), re.svgFilters === !0 && (d(g, rn), d(y, on), d(y, De)), re.mathMl === !0 && (d(g, ln), d(y, nt), d(y, De))), j.tagCheck = null, j.attributeCheck = null, L(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? j.tagCheck = e.ADD_TAGS : se(e.ADD_TAGS) && (g === je && (g = R(g)), d(g, e.ADD_TAGS, w))), L(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? j.attributeCheck = e.ADD_ATTR : se(e.ADD_ATTR) && (y === He && (y = R(y)), d(y, e.ADD_ATTR, w))), L(e, "ADD_FORBID_CONTENTS") && se(e.ADD_FORBID_CONTENTS) && (le === _n && (le = R(le)), d(le, e.ADD_FORBID_CONTENTS, w)), Ve && (g["#text"] = !0), Y && d(g, ["html", "head", "body"]), g.table && (d(g, ["tbody"]), delete de.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
395
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
396
|
-
throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
397
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
398
|
-
throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
399
|
-
const t = C;
|
|
400
|
-
C = e.TRUSTED_TYPES_POLICY;
|
|
401
|
-
try {
|
|
402
|
-
Q = ne("");
|
|
403
|
-
} catch (a) {
|
|
404
|
-
throw C = t, a;
|
|
405
|
-
}
|
|
406
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (C = void 0, Q = "") : (C === void 0 && (C = pt()), C && typeof Q == "string" && (Q = ne("")));
|
|
407
|
-
k && k(e), ae = e;
|
|
408
|
-
}, Rn = d({}, [...tn, ...rn, ...rr]), On = d({}, [...ln, ...lr]), Pt = function(e, n, t) {
|
|
409
|
-
return n.namespaceURI === M ? e === "svg" : n.namespaceURI === xe ? e === "svg" && (t === "annotation-xml" || qe[t]) : !!Rn[e];
|
|
410
|
-
}, Lt = function(e, n, t) {
|
|
411
|
-
return n.namespaceURI === M ? e === "math" : n.namespaceURI === Ce ? e === "math" && Ke[t] : !!On[e];
|
|
412
|
-
}, At = function(e, n, t) {
|
|
413
|
-
return n.namespaceURI === Ce && !Ke[t] || n.namespaceURI === xe && !qe[t] ? !1 : !On[e] && (Tt[e] || !Rn[e]);
|
|
414
|
-
}, Rt = function(e) {
|
|
415
|
-
let n = J(e);
|
|
416
|
-
(!n || !n.tagName) && (n = {
|
|
417
|
-
namespaceURI: oe,
|
|
418
|
-
tagName: "template"
|
|
419
|
-
});
|
|
420
|
-
const t = ve(e.tagName), a = ve(n.tagName);
|
|
421
|
-
return Ye[e.namespaceURI] ? e.namespaceURI === Ce ? Pt(t, n, a) : e.namespaceURI === xe ? Lt(t, n, a) : e.namespaceURI === M ? At(t, n, a) : !!(pe === "application/xhtml+xml" && Ye[e.namespaceURI]) : !1;
|
|
422
|
-
}, B = function(e) {
|
|
423
|
-
he(l.removed, {
|
|
424
|
-
element: e
|
|
425
|
-
});
|
|
426
|
-
try {
|
|
427
|
-
J(e).removeChild(e);
|
|
428
|
-
} catch {
|
|
429
|
-
if (ze(e), !J(e))
|
|
430
|
-
throw K("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
431
|
-
}
|
|
432
|
-
}, Dn = function(e, n, t) {
|
|
433
|
-
try {
|
|
434
|
-
cn(e, n);
|
|
435
|
-
} catch {
|
|
436
|
-
try {
|
|
437
|
-
e.removeAttribute(t);
|
|
438
|
-
} catch {
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}, Ne = function(e) {
|
|
442
|
-
Pe(e);
|
|
443
|
-
const n = Z(e);
|
|
444
|
-
if (n) {
|
|
445
|
-
const a = [];
|
|
446
|
-
X(n, (u) => {
|
|
447
|
-
he(a, u);
|
|
448
|
-
}), X(a, (u) => {
|
|
449
|
-
try {
|
|
450
|
-
ze(u);
|
|
451
|
-
} catch {
|
|
452
|
-
}
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
const t = Ie(e);
|
|
456
|
-
if (t)
|
|
457
|
-
for (let a = t.length - 1; a >= 0; --a) {
|
|
458
|
-
const u = t[a], c = u && u.name;
|
|
459
|
-
typeof c == "string" && Dn(e, u, c);
|
|
460
|
-
}
|
|
461
|
-
}, q = function(e, n, t) {
|
|
462
|
-
if (!t)
|
|
463
|
-
try {
|
|
464
|
-
t = n.getAttributeNode(e);
|
|
465
|
-
} catch {
|
|
466
|
-
t = null;
|
|
467
|
-
}
|
|
468
|
-
he(l.removed, {
|
|
469
|
-
attribute: t || null,
|
|
470
|
-
from: n
|
|
471
|
-
});
|
|
472
|
-
try {
|
|
473
|
-
t ? cn(n, t) : n.removeAttribute(e);
|
|
474
|
-
} catch {
|
|
475
|
-
try {
|
|
476
|
-
n.removeAttribute(e);
|
|
477
|
-
} catch {
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
if (e === "is")
|
|
481
|
-
if (te || _e)
|
|
482
|
-
try {
|
|
483
|
-
B(n);
|
|
484
|
-
} catch {
|
|
485
|
-
}
|
|
486
|
-
else
|
|
487
|
-
try {
|
|
488
|
-
n.setAttribute(e, "");
|
|
489
|
-
} catch {
|
|
490
|
-
}
|
|
491
|
-
}, Ot = function(e) {
|
|
492
|
-
const n = Ie(e);
|
|
493
|
-
if (n)
|
|
494
|
-
for (let t = n.length - 1; t >= 0; --t) {
|
|
495
|
-
const a = n[t], u = a && a.name;
|
|
496
|
-
typeof u != "string" || y[w(u)] || Dn(e, a, u);
|
|
497
|
-
}
|
|
498
|
-
}, Pe = function(e) {
|
|
499
|
-
const n = [e];
|
|
500
|
-
for (; n.length > 0; ) {
|
|
501
|
-
const t = n.pop();
|
|
502
|
-
ce(t) === A.element && Ot(t);
|
|
503
|
-
const u = Z(t);
|
|
504
|
-
if (u)
|
|
505
|
-
for (let c = u.length - 1; c >= 0; --c)
|
|
506
|
-
n.push(u[c]);
|
|
507
|
-
}
|
|
508
|
-
}, zn = function(e, n) {
|
|
509
|
-
return G ? e === "patchsrc" ? !0 : e === "for" && n !== "label" && n !== "output" : !1;
|
|
510
|
-
}, Dt = function(e) {
|
|
511
|
-
if (!G)
|
|
512
|
-
return;
|
|
513
|
-
const n = [e];
|
|
514
|
-
for (; n.length > 0; ) {
|
|
515
|
-
const t = n.pop(), a = ce(t);
|
|
516
|
-
if (a === A.processingInstruction || a === A.comment && T(lt, t.data)) {
|
|
517
|
-
try {
|
|
518
|
-
ze(t);
|
|
519
|
-
} catch {
|
|
520
|
-
}
|
|
521
|
-
continue;
|
|
522
|
-
}
|
|
523
|
-
if (a === A.element) {
|
|
524
|
-
const c = t, p = w(Me(t));
|
|
525
|
-
try {
|
|
526
|
-
c.hasAttribute && c.hasAttribute("patchsrc") && c.removeAttribute("patchsrc"), c.hasAttribute && c.hasAttribute("for") && zn("for", p) && c.removeAttribute("for");
|
|
527
|
-
} catch {
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
const u = Z(t);
|
|
531
|
-
if (u)
|
|
532
|
-
for (let c = u.length - 1; c >= 0; --c)
|
|
533
|
-
n.push(u[c]);
|
|
534
|
-
}
|
|
535
|
-
}, In = function(e) {
|
|
536
|
-
let n = null, t = null;
|
|
537
|
-
if ($e)
|
|
538
|
-
e = "<remove></remove>" + e;
|
|
539
|
-
else {
|
|
540
|
-
const c = Yn(e, /^[\r\n\t ]+/);
|
|
541
|
-
t = c && c[0];
|
|
542
|
-
}
|
|
543
|
-
pe === "application/xhtml+xml" && oe === M && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
544
|
-
const a = C ? ne(e) : e;
|
|
545
|
-
if (oe === M)
|
|
546
|
-
try {
|
|
547
|
-
n = new $().parseFromString(a, pe);
|
|
548
|
-
} catch {
|
|
549
|
-
}
|
|
550
|
-
if (!n || !n.documentElement) {
|
|
551
|
-
n = Ue.createDocument(oe, "template", null);
|
|
552
|
-
try {
|
|
553
|
-
n.documentElement.innerHTML = Ge ? Q : a;
|
|
554
|
-
} catch {
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
const u = n.body || n.documentElement;
|
|
558
|
-
return e && t && u.insertBefore(i.createTextNode(t), u.childNodes[0] || null), oe === M ? ht.call(n, Y ? "html" : "body")[0] : Y ? n.documentElement : u;
|
|
559
|
-
}, Mn = function(e) {
|
|
560
|
-
const n = we ? we(e) : e.ownerDocument;
|
|
561
|
-
return mn.call(
|
|
562
|
-
n || e,
|
|
563
|
-
e,
|
|
564
|
-
// eslint-disable-next-line no-bitwise
|
|
565
|
-
_.SHOW_ELEMENT | _.SHOW_COMMENT | _.SHOW_TEXT | _.SHOW_PROCESSING_INSTRUCTION | _.SHOW_CDATA_SECTION,
|
|
566
|
-
null
|
|
567
|
-
);
|
|
568
|
-
}, Le = function(e) {
|
|
569
|
-
return e = ge(e, yt, " "), e = ge(e, vt, " "), e = ge(e, bt, " "), e;
|
|
570
|
-
}, Ze = function(e) {
|
|
571
|
-
var n;
|
|
572
|
-
e.normalize();
|
|
573
|
-
const t = we ? we(e) : e.ownerDocument, a = mn.call(
|
|
574
|
-
t || e,
|
|
575
|
-
e,
|
|
576
|
-
// eslint-disable-next-line no-bitwise
|
|
577
|
-
_.SHOW_TEXT | _.SHOW_COMMENT | _.SHOW_CDATA_SECTION | _.SHOW_PROCESSING_INSTRUCTION,
|
|
578
|
-
null
|
|
579
|
-
);
|
|
580
|
-
let u = a.nextNode();
|
|
581
|
-
for (; u; )
|
|
582
|
-
u.data = Le(u.data), u = a.nextNode();
|
|
583
|
-
const c = (n = e.querySelectorAll) === null || n === void 0 ? void 0 : n.call(e, "template");
|
|
584
|
-
c && X(c, (p) => {
|
|
585
|
-
ie(p.content) && Ze(p.content);
|
|
586
|
-
});
|
|
587
|
-
}, Ae = function(e) {
|
|
588
|
-
const n = ee ? ee(e) : null;
|
|
589
|
-
return typeof n != "string" || w(n) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || // Realm-safe NamedNodeMap detection: equality against the cached
|
|
590
|
-
// prototype getter. Clobbered .attributes (e.g. <input name="attributes">)
|
|
591
|
-
// makes the direct read diverge from the cached read; a clean form
|
|
592
|
-
// (same-realm OR foreign-realm) has both reads pointing at the same
|
|
593
|
-
// canonical NamedNodeMap.
|
|
594
|
-
e.attributes !== Ie(e) || typeof e.removeAttribute != "function" || // A form descendant named "removeAttributeNode" or "getAttributeNode"
|
|
595
|
-
// shadows these Attr-node methods via [LegacyOverrideBuiltIns].
|
|
596
|
-
// _removeAttribute() / _stripAttributeNode() reach for
|
|
597
|
-
// element.removeAttributeNode(attr) first; when it is shadowed the call
|
|
598
|
-
// throws and the name-based fallback element.removeAttribute(name)
|
|
599
|
-
// ASCII-lowercases its lookup key in an HTML document, silently missing
|
|
600
|
-
// a case-preserved event-handler attribute (e.g. an ONANIMATIONSTART
|
|
601
|
-
// that reached the sanitizer through an XML/XHTML parse). Flag the form
|
|
602
|
-
// so it is removed wholesale, exactly as for the other shadowed methods.
|
|
603
|
-
typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
|
|
604
|
-
// returns the integer 1 for any Element regardless of realm; direct
|
|
605
|
-
// read on a clobbered form (e.g. <input name="nodeType">) returns
|
|
606
|
-
// the named child element. Cheap addition — nodeType is read from
|
|
607
|
-
// an internal slot, no serialization cost — and removes a residual
|
|
608
|
-
// clobbering surface used by several mXSS / PI / comment branches
|
|
609
|
-
// in _sanitizeElements that compare currentNode.nodeType directly.
|
|
610
|
-
e.nodeType !== V(e) || // HTMLFormElement has [LegacyOverrideBuiltIns]: a descendant named
|
|
611
|
-
// "childNodes" shadows the prototype getter. Direct reads of
|
|
612
|
-
// form.childNodes from a clobbered form return the named child
|
|
613
|
-
// instead of the real NodeList, so any walk that reads it directly
|
|
614
|
-
// skips the form's real children. Compare the direct read to the
|
|
615
|
-
// cached Node.prototype getter — when the form's named-property
|
|
616
|
-
// getter intercepts the read, the two values differ and we flag
|
|
617
|
-
// the form. This catches every clobbering child type (input,
|
|
618
|
-
// select, etc.) regardless of whether the named child happens to
|
|
619
|
-
// carry a numeric .length, which a typeof-based probe would miss
|
|
620
|
-
// (e.g. HTMLSelectElement.length is a defined unsigned-long).
|
|
621
|
-
e.childNodes !== Z(e);
|
|
622
|
-
}, ie = function(e) {
|
|
623
|
-
if (!V || typeof e != "object" || e === null)
|
|
624
|
-
return !1;
|
|
625
|
-
try {
|
|
626
|
-
return V(e) === A.documentFragment;
|
|
627
|
-
} catch {
|
|
628
|
-
return !1;
|
|
629
|
-
}
|
|
630
|
-
}, me = function(e) {
|
|
631
|
-
if (!V || typeof e != "object" || e === null)
|
|
632
|
-
return !1;
|
|
633
|
-
try {
|
|
634
|
-
return typeof V(e) == "number";
|
|
635
|
-
} catch {
|
|
636
|
-
return !1;
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
|
-
function F(o, e, n) {
|
|
640
|
-
o.length !== 0 && X(o, (t) => {
|
|
641
|
-
t.call(l, e, n, ae);
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
const zt = function(e, n) {
|
|
645
|
-
return !!(G && e.hasChildNodes() && !me(e.firstElementChild) && T(rt, e.textContent) && T(rt, e.innerHTML) || G && e.namespaceURI === M && gr[n] && (me(e.firstElementChild) || typeof e.textContent == "string" && T(yr[n], e.textContent)) || e.nodeType === A.processingInstruction || G && e.nodeType === A.comment && T(lt, e.data));
|
|
646
|
-
}, Re = function(e, n) {
|
|
647
|
-
if (e instanceof RegExp)
|
|
648
|
-
return T(e, n);
|
|
649
|
-
if (e instanceof Function) {
|
|
650
|
-
for (var t = arguments.length, a = new Array(t > 2 ? t - 2 : 0), u = 2; u < t; u++)
|
|
651
|
-
a[u - 2] = arguments[u];
|
|
652
|
-
return !!e(n, ...a);
|
|
653
|
-
}
|
|
654
|
-
return !1;
|
|
655
|
-
}, It = function(e, n, t) {
|
|
656
|
-
if (!de[n] && Bn(n) && Re(I.tagNameCheck, n))
|
|
657
|
-
return !1;
|
|
658
|
-
if (Ve && !le[n]) {
|
|
659
|
-
const a = J(e), u = Z(e);
|
|
660
|
-
if (u && a) {
|
|
661
|
-
const c = u.length;
|
|
662
|
-
for (let p = c - 1; p >= 0; --p) {
|
|
663
|
-
const v = e === t ? ct(u[p], !0) : u[p];
|
|
664
|
-
a.insertBefore(v, ft(e));
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
return B(e), !0;
|
|
669
|
-
}, Fn = function(e, n, t, a) {
|
|
670
|
-
return e.length === 0 ? n : n === t || n === a ? R(n) : n;
|
|
671
|
-
}, Un = function(e, n) {
|
|
672
|
-
return e === n || J(e) !== null ? !1 : (Qe && Pe(e), !0);
|
|
673
|
-
}, jn = function(e, n) {
|
|
674
|
-
if (F(h.beforeSanitizeElements, e, null), Un(e, n))
|
|
675
|
-
return !0;
|
|
676
|
-
if (Ae(e))
|
|
677
|
-
return B(e), !0;
|
|
678
|
-
const t = w(Me(e));
|
|
679
|
-
if (g = Fn(h.uponSanitizeElement, g, je, ke), F(h.uponSanitizeElement, e, {
|
|
680
|
-
tagName: t,
|
|
681
|
-
allowedTags: g
|
|
682
|
-
}), Un(e, n))
|
|
683
|
-
return !0;
|
|
684
|
-
if (zt(e, t))
|
|
685
|
-
return B(e), !0;
|
|
686
|
-
if (de[t] || !(j.tagCheck instanceof Function && j.tagCheck(t)) && !g[t]) {
|
|
687
|
-
const u = It(e, t, n);
|
|
688
|
-
return u === !1 && F(h.afterSanitizeElements, e, null), u;
|
|
689
|
-
}
|
|
690
|
-
if (ce(e) === A.element && !Rt(e) || (t === "noscript" || t === "noembed" || t === "noframes") && T(mr, e.innerHTML))
|
|
691
|
-
return B(e), !0;
|
|
692
|
-
if (H && e.nodeType === A.text) {
|
|
693
|
-
const u = Le(e.textContent);
|
|
694
|
-
e.textContent !== u && (he(l.removed, {
|
|
695
|
-
element: e.cloneNode()
|
|
696
|
-
}), e.textContent = u);
|
|
697
|
-
}
|
|
698
|
-
return F(h.afterSanitizeElements, e, null), !1;
|
|
699
|
-
}, Hn = function(e, n, t) {
|
|
700
|
-
if (yn[n] || zn(n, e) || Sn && (n === "id" || n === "name") && (t in i || t in Nt))
|
|
701
|
-
return !1;
|
|
702
|
-
const a = y[n] || j.attributeCheck instanceof Function && j.attributeCheck(n, e);
|
|
703
|
-
return Be && T(wt, n) || vn && T(St, n) ? !0 : a ? Cn[n] || T(gn, ge(t, hn, "")) || (n === "src" || n === "xlink:href" || n === "href") && e !== "script" && qn(t, "data:") === 0 && Tn[e] || bn && !T(kt, ge(t, hn, "")) ? !0 : !t : (
|
|
704
|
-
// Condition a) covers a basically valid custom element tag name whose
|
|
705
|
-
// tag passes the configured tagNameCheck and whose attribute name
|
|
706
|
-
// passes the configured attributeNameCheck ...
|
|
707
|
-
Bn(e) && Re(I.tagNameCheck, e) && Re(I.attributeNameCheck, n, e) || // Condition b) covers an `is` attribute whose value passes the
|
|
708
|
-
// configured tagNameCheck while customized built-in elements are
|
|
709
|
-
// allowed.
|
|
710
|
-
n === "is" && I.allowCustomizedBuiltInElements && Re(I.tagNameCheck, t)
|
|
711
|
-
);
|
|
712
|
-
}, Mt = d({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), Bn = function(e) {
|
|
713
|
-
return !Mt[ve(e)] && T(Et, e);
|
|
714
|
-
}, Ft = function(e, n, t, a) {
|
|
715
|
-
if (C && typeof be == "object" && typeof be.getAttributeType == "function" && !t)
|
|
716
|
-
switch (be.getAttributeType(e, n)) {
|
|
717
|
-
case "TrustedHTML":
|
|
718
|
-
return ne(a);
|
|
719
|
-
case "TrustedScriptURL":
|
|
720
|
-
return dt(a);
|
|
721
|
-
}
|
|
722
|
-
return a;
|
|
723
|
-
}, Ut = function(e, n, t, a) {
|
|
724
|
-
try {
|
|
725
|
-
return t ? e.setAttributeNS(t, n, a) : e.setAttribute(n, a), Ae(e) ? (B(e), !1) : !0;
|
|
726
|
-
} catch {
|
|
727
|
-
return q(n, e), !1;
|
|
728
|
-
}
|
|
729
|
-
}, Wn = function(e) {
|
|
730
|
-
F(h.beforeSanitizeAttributes, e, null);
|
|
731
|
-
const n = e.attributes;
|
|
732
|
-
if (!n || Ae(e))
|
|
733
|
-
return;
|
|
734
|
-
y = Fn(h.uponSanitizeAttribute, y, He, Ee);
|
|
735
|
-
const t = {
|
|
736
|
-
attrName: "",
|
|
737
|
-
attrValue: "",
|
|
738
|
-
keepAttr: !0,
|
|
739
|
-
allowedAttributes: y,
|
|
740
|
-
forceKeepAttr: void 0
|
|
741
|
-
};
|
|
742
|
-
let a = n.length;
|
|
743
|
-
const u = w(e.nodeName);
|
|
744
|
-
for (; a--; ) {
|
|
745
|
-
const c = n[a], p = c.name, v = c.namespaceURI, N = c.value, P = w(p), en = N;
|
|
746
|
-
let x = p === "value" ? en : Kt(en), $n = !1;
|
|
747
|
-
if (t.attrName = P, t.attrValue = x, t.keepAttr = !0, t.forceKeepAttr = void 0, F(h.uponSanitizeAttribute, e, t), x = t.attrValue, kn && (P === "id" || P === "name") && qn(x, En) !== 0 && (q(p, e, c), x = En + x, $n = !0), G && T(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, x)) {
|
|
748
|
-
q(p, e, c);
|
|
749
|
-
continue;
|
|
750
|
-
}
|
|
751
|
-
if (P === "attributename" && Yn(x, "href")) {
|
|
752
|
-
q(p, e, c);
|
|
753
|
-
continue;
|
|
754
|
-
}
|
|
755
|
-
if (!t.forceKeepAttr) {
|
|
756
|
-
if (!t.keepAttr) {
|
|
757
|
-
q(p, e, c);
|
|
758
|
-
continue;
|
|
759
|
-
}
|
|
760
|
-
if (!wn && T(hr, x)) {
|
|
761
|
-
q(p, e, c);
|
|
762
|
-
continue;
|
|
763
|
-
}
|
|
764
|
-
if (H && (x = Le(x)), !Hn(u, P, x)) {
|
|
765
|
-
q(p, e, c);
|
|
766
|
-
continue;
|
|
767
|
-
}
|
|
768
|
-
x = Ft(u, P, v, x), x !== en && Ut(e, p, v, x) && $n && Gn(l.removed);
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
F(h.afterSanitizeAttributes, e, null);
|
|
772
|
-
}, Oe = function(e) {
|
|
773
|
-
let n = null;
|
|
774
|
-
const t = Mn(e);
|
|
775
|
-
for (F(h.beforeSanitizeShadowDOM, e, null); n = t.nextNode(); )
|
|
776
|
-
if (F(h.uponSanitizeShadowNode, n, null), jn(n, e), Wn(n), ie(n.content) && Oe(n.content), ce(n) === A.element) {
|
|
777
|
-
const a = fn(n);
|
|
778
|
-
ie(a) && (Je(a), Oe(a));
|
|
779
|
-
}
|
|
780
|
-
F(h.afterSanitizeShadowDOM, e, null);
|
|
781
|
-
}, Je = function(e) {
|
|
782
|
-
const n = [{
|
|
783
|
-
node: e,
|
|
784
|
-
shadow: null
|
|
785
|
-
}];
|
|
786
|
-
for (; n.length > 0; ) {
|
|
787
|
-
const t = n.pop();
|
|
788
|
-
if (t.shadow) {
|
|
789
|
-
Oe(t.shadow);
|
|
790
|
-
continue;
|
|
791
|
-
}
|
|
792
|
-
const a = t.node, c = ce(a) === A.element, p = Z(a);
|
|
793
|
-
if (p)
|
|
794
|
-
for (let v = p.length - 1; v >= 0; --v)
|
|
795
|
-
n.push({
|
|
796
|
-
node: p[v],
|
|
797
|
-
shadow: null
|
|
798
|
-
});
|
|
799
|
-
if (c) {
|
|
800
|
-
const v = ee ? ee(a) : null;
|
|
801
|
-
if (typeof v == "string" && w(v) === "template") {
|
|
802
|
-
const N = a.content;
|
|
803
|
-
ie(N) && n.push({
|
|
804
|
-
node: N,
|
|
805
|
-
shadow: null
|
|
806
|
-
});
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
if (c) {
|
|
810
|
-
const v = fn(a);
|
|
811
|
-
ie(v) && n.push({
|
|
812
|
-
node: null,
|
|
813
|
-
shadow: v
|
|
814
|
-
}, {
|
|
815
|
-
node: v,
|
|
816
|
-
shadow: null
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
};
|
|
821
|
-
return l.sanitize = function(o) {
|
|
822
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = null, t = null, a = null, u = null;
|
|
823
|
-
if (Ge = !o, Ge && (o = "<!-->"), typeof o != "string" && !me(o) && (o = nr(o), typeof o != "string"))
|
|
824
|
-
throw K("dirty is not a string, aborting");
|
|
825
|
-
if (!l.isSupported)
|
|
826
|
-
return o;
|
|
827
|
-
We ? (g = ke, y = Ee) : Xe(e), (h.uponSanitizeElement.length > 0 || h.uponSanitizeAttribute.length > 0) && (g = R(g)), h.uponSanitizeAttribute.length > 0 && (y = R(y)), l.removed = [];
|
|
828
|
-
const c = Qe && typeof o != "string" && me(o);
|
|
829
|
-
if (c) {
|
|
830
|
-
Dt(o);
|
|
831
|
-
const N = Me(o);
|
|
832
|
-
if (typeof N == "string") {
|
|
833
|
-
const P = w(N);
|
|
834
|
-
if (!g[P] || de[P])
|
|
835
|
-
throw Ne(o), K("root node is forbidden and cannot be sanitized in-place");
|
|
836
|
-
}
|
|
837
|
-
if (Ae(o))
|
|
838
|
-
throw Ne(o), K("root node is clobbered and cannot be sanitized in-place");
|
|
839
|
-
try {
|
|
840
|
-
Je(o);
|
|
841
|
-
} catch (P) {
|
|
842
|
-
throw Ne(o), P;
|
|
843
|
-
}
|
|
844
|
-
} else if (me(o))
|
|
845
|
-
n = In("<!---->"), t = n.ownerDocument.importNode(o, !0), t.nodeType === A.element && t.nodeName === "BODY" || t.nodeName === "HTML" ? n = t : n.appendChild(t), Je(n);
|
|
846
|
-
else {
|
|
847
|
-
if (!te && !H && !Y && // eslint-disable-next-line unicorn/prefer-includes
|
|
848
|
-
o.indexOf("<") === -1)
|
|
849
|
-
return C && Te ? ne(o) : o;
|
|
850
|
-
if (n = In(o), !n)
|
|
851
|
-
return te ? null : Te ? Q : "";
|
|
852
|
-
}
|
|
853
|
-
n && $e && B(n.firstChild);
|
|
854
|
-
const p = c ? o : n;
|
|
855
|
-
try {
|
|
856
|
-
const N = Mn(p);
|
|
857
|
-
for (; a = N.nextNode(); )
|
|
858
|
-
jn(a, p), Wn(a), ie(a.content) && Oe(a.content);
|
|
859
|
-
} catch (N) {
|
|
860
|
-
throw c && (Ne(o), X(l.removed, (P) => {
|
|
861
|
-
P.element && Pe(P.element);
|
|
862
|
-
})), N;
|
|
863
|
-
}
|
|
864
|
-
if (c)
|
|
865
|
-
return X(l.removed, (N) => {
|
|
866
|
-
N.element && Pe(N.element);
|
|
867
|
-
}), H && Ze(o), o;
|
|
868
|
-
if (te) {
|
|
869
|
-
if (H && Ze(n), _e)
|
|
870
|
-
for (u = mt.call(n.ownerDocument); n.firstChild; )
|
|
871
|
-
u.appendChild(n.firstChild);
|
|
872
|
-
else
|
|
873
|
-
u = n;
|
|
874
|
-
return (y.shadowroot || y.shadowrootmode) && (u = gt.call(s, u, !0)), u;
|
|
875
|
-
}
|
|
876
|
-
let v = Y ? n.outerHTML : n.innerHTML;
|
|
877
|
-
return Y && g["!doctype"] && n.ownerDocument && n.ownerDocument.doctype && n.ownerDocument.doctype.name && T(dr, n.ownerDocument.doctype.name) && (v = "<!DOCTYPE " + n.ownerDocument.doctype.name + `>
|
|
878
|
-
` + v), H && (v = Le(v)), C && Te ? ne(v) : v;
|
|
879
|
-
}, l.setConfig = function() {
|
|
880
|
-
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
881
|
-
Xe(o), We = !0, ke = g, Ee = y;
|
|
882
|
-
}, l.clearConfig = function() {
|
|
883
|
-
ae = null, We = !1, ke = null, Ee = null, C = Fe, Q = "";
|
|
884
|
-
}, l.isValidAttribute = function(o, e, n) {
|
|
885
|
-
ae || Xe({});
|
|
886
|
-
const t = w(o), a = w(e);
|
|
887
|
-
return Hn(t, a, n);
|
|
888
|
-
}, l.addHook = function(o, e) {
|
|
889
|
-
typeof e == "function" && L(h, o) && he(h[o], e);
|
|
890
|
-
}, l.removeHook = function(o, e) {
|
|
891
|
-
if (L(h, o)) {
|
|
892
|
-
if (e !== void 0) {
|
|
893
|
-
const n = Yt(h[o], e);
|
|
894
|
-
return n === -1 ? void 0 : qt(h[o], n, 1)[0];
|
|
895
|
-
}
|
|
896
|
-
return Gn(h[o]);
|
|
897
|
-
}
|
|
898
|
-
}, l.removeHooks = function(o) {
|
|
899
|
-
L(h, o) && (h[o] = []);
|
|
900
|
-
}, l.removeAllHooks = function() {
|
|
901
|
-
h = ot();
|
|
902
|
-
}, l;
|
|
903
|
-
}
|
|
904
|
-
var wr = st();
|
|
905
|
-
const Sr = `(()=>{var jc=Object.create;var Zu=Object.defineProperty;var Uc=Object.getOwnPropertyDescriptor;var Vc=Object.getOwnPropertyNames;var Ac=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty;var je=(e,n)=>()=>{try{return n||e((n={exports:{}}).exports,n),n.exports}catch(t){throw n=0,t}};var Hc=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of Vc(n))!Bc.call(e,l)&&l!==t&&Zu(e,l,{get:()=>n[l],enumerable:!(r=Uc(n,l))||r.enumerable});return e};var nr=(e,n,t)=>(t=e!=null?jc(Ac(e)):{},Hc(n||!e||!e.__esModule?Zu(t,"default",{value:e,enumerable:!0}):t,e));var si=je(N=>{"use strict";var at=Symbol.for("react.element"),Wc=Symbol.for("react.portal"),$c=Symbol.for("react.fragment"),Qc=Symbol.for("react.strict_mode"),Kc=Symbol.for("react.profiler"),Yc=Symbol.for("react.provider"),Xc=Symbol.for("react.context"),Gc=Symbol.for("react.forward_ref"),Zc=Symbol.for("react.suspense"),Jc=Symbol.for("react.memo"),qc=Symbol.for("react.lazy"),Ju=Symbol.iterator;function bc(e){return e===null||typeof e!="object"?null:(e=Ju&&e[Ju]||e["@@iterator"],typeof e=="function"?e:null)}var ei={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ni=Object.assign,ti={};function On(e,n,t){this.props=e,this.context=n,this.refs=ti,this.updater=t||ei}On.prototype.isReactComponent={};On.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};On.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ri(){}ri.prototype=On.prototype;function Pl(e,n,t){this.props=e,this.context=n,this.refs=ti,this.updater=t||ei}var zl=Pl.prototype=new ri;zl.constructor=Pl;ni(zl,On.prototype);zl.isPureReactComponent=!0;var qu=Array.isArray,li=Object.prototype.hasOwnProperty,Ll={current:null},oi={key:!0,ref:!0,__self:!0,__source:!0};function ui(e,n,t){var r,l={},o=null,u=null;if(n!=null)for(r in n.ref!==void 0&&(u=n.ref),n.key!==void 0&&(o=""+n.key),n)li.call(n,r)&&!oi.hasOwnProperty(r)&&(l[r]=n[r]);var i=arguments.length-2;if(i===1)l.children=t;else if(1<i){for(var s=Array(i),f=0;f<i;f++)s[f]=arguments[f+2];l.children=s}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)l[r]===void 0&&(l[r]=i[r]);return{$$typeof:at,type:e,key:o,ref:u,props:l,_owner:Ll.current}}function ef(e,n){return{$$typeof:at,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function Tl(e){return typeof e=="object"&&e!==null&&e.$$typeof===at}function nf(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return n[t]})}var bu=/\\/+/g;function Nl(e,n){return typeof e=="object"&&e!==null&&e.key!=null?nf(""+e.key):n.toString(36)}function rr(e,n,t,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case at:case Wc:u=!0}}if(u)return u=e,l=l(u),e=r===""?"."+Nl(u,0):r,qu(l)?(t="",e!=null&&(t=e.replace(bu,"$&/")+"/"),rr(l,n,t,"",function(f){return f})):l!=null&&(Tl(l)&&(l=ef(l,t+(!l.key||u&&u.key===l.key?"":(""+l.key).replace(bu,"$&/")+"/")+e)),n.push(l)),1;if(u=0,r=r===""?".":r+":",qu(e))for(var i=0;i<e.length;i++){o=e[i];var s=r+Nl(o,i);u+=rr(o,n,t,s,l)}else if(s=bc(e),typeof s=="function")for(e=s.call(e),i=0;!(o=e.next()).done;)o=o.value,s=r+Nl(o,i++),u+=rr(o,n,t,s,l);else if(o==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return u}function tr(e,n,t){if(e==null)return e;var r=[],l=0;return rr(e,r,"","",function(o){return n.call(t,o,l++)}),r}function tf(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ne={current:null},lr={transition:null},rf={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:lr,ReactCurrentOwner:Ll};function ii(){throw Error("act(...) is not supported in production builds of React.")}N.Children={map:tr,forEach:function(e,n,t){tr(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return tr(e,function(){n++}),n},toArray:function(e){return tr(e,function(n){return n})||[]},only:function(e){if(!Tl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};N.Component=On;N.Fragment=$c;N.Profiler=Kc;N.PureComponent=Pl;N.StrictMode=Qc;N.Suspense=Zc;N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rf;N.act=ii;N.cloneElement=function(e,n,t){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ni({},e.props),l=e.key,o=e.ref,u=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,u=Ll.current),n.key!==void 0&&(l=""+n.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in n)li.call(n,s)&&!oi.hasOwnProperty(s)&&(r[s]=n[s]===void 0&&i!==void 0?i[s]:n[s])}var s=arguments.length-2;if(s===1)r.children=t;else if(1<s){i=Array(s);for(var f=0;f<s;f++)i[f]=arguments[f+2];r.children=i}return{$$typeof:at,type:e.type,key:l,ref:o,props:r,_owner:u}};N.createContext=function(e){return e={$$typeof:Xc,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Yc,_context:e},e.Consumer=e};N.createElement=ui;N.createFactory=function(e){var n=ui.bind(null,e);return n.type=e,n};N.createRef=function(){return{current:null}};N.forwardRef=function(e){return{$$typeof:Gc,render:e}};N.isValidElement=Tl;N.lazy=function(e){return{$$typeof:qc,_payload:{_status:-1,_result:e},_init:tf}};N.memo=function(e,n){return{$$typeof:Jc,type:e,compare:n===void 0?null:n}};N.startTransition=function(e){var n=lr.transition;lr.transition={};try{e()}finally{lr.transition=n}};N.unstable_act=ii;N.useCallback=function(e,n){return ne.current.useCallback(e,n)};N.useContext=function(e){return ne.current.useContext(e)};N.useDebugValue=function(){};N.useDeferredValue=function(e){return ne.current.useDeferredValue(e)};N.useEffect=function(e,n){return ne.current.useEffect(e,n)};N.useId=function(){return ne.current.useId()};N.useImperativeHandle=function(e,n,t){return ne.current.useImperativeHandle(e,n,t)};N.useInsertionEffect=function(e,n){return ne.current.useInsertionEffect(e,n)};N.useLayoutEffect=function(e,n){return ne.current.useLayoutEffect(e,n)};N.useMemo=function(e,n){return ne.current.useMemo(e,n)};N.useReducer=function(e,n,t){return ne.current.useReducer(e,n,t)};N.useRef=function(e){return ne.current.useRef(e)};N.useState=function(e){return ne.current.useState(e)};N.useSyncExternalStore=function(e,n,t){return ne.current.useSyncExternalStore(e,n,t)};N.useTransition=function(){return ne.current.useTransition()};N.version="18.3.1"});var or=je((vp,ai)=>{"use strict";ai.exports=si()});var wi=je(T=>{"use strict";function Ml(e,n){var t=e.length;e.push(n);e:for(;0<t;){var r=t-1>>>1,l=e[r];if(0<ur(l,n))e[r]=n,e[t]=l,t=r;else break e}}function _e(e){return e.length===0?null:e[0]}function sr(e){if(e.length===0)return null;var n=e[0],t=e.pop();if(t!==n){e[0]=t;e:for(var r=0,l=e.length,o=l>>>1;r<o;){var u=2*(r+1)-1,i=e[u],s=u+1,f=e[s];if(0>ur(i,t))s<l&&0>ur(f,i)?(e[r]=f,e[s]=t,r=s):(e[r]=i,e[u]=t,r=u);else if(s<l&&0>ur(f,t))e[r]=f,e[s]=t,r=s;else break e}}return n}function ur(e,n){var t=e.sortIndex-n.sortIndex;return t!==0?t:e.id-n.id}typeof performance=="object"&&typeof performance.now=="function"?(ci=performance,T.unstable_now=function(){return ci.now()}):(Rl=Date,fi=Rl.now(),T.unstable_now=function(){return Rl.now()-fi});var ci,Rl,fi,Re=[],Ge=[],lf=1,he=null,Z=3,ar=!1,yn=!1,ft=!1,mi=typeof setTimeout=="function"?setTimeout:null,vi=typeof clearTimeout=="function"?clearTimeout:null,di=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Il(e){for(var n=_e(Ge);n!==null;){if(n.callback===null)sr(Ge);else if(n.startTime<=e)sr(Ge),n.sortIndex=n.expirationTime,Ml(Re,n);else break;n=_e(Ge)}}function Fl(e){if(ft=!1,Il(e),!yn)if(_e(Re)!==null)yn=!0,Ul(jl);else{var n=_e(Ge);n!==null&&Vl(Fl,n.startTime-e)}}function jl(e,n){yn=!1,ft&&(ft=!1,vi(dt),dt=-1),ar=!0;var t=Z;try{for(Il(n),he=_e(Re);he!==null&&(!(he.expirationTime>n)||e&&!gi());){var r=he.callback;if(typeof r=="function"){he.callback=null,Z=he.priorityLevel;var l=r(he.expirationTime<=n);n=T.unstable_now(),typeof l=="function"?he.callback=l:he===_e(Re)&&sr(Re),Il(n)}else sr(Re);he=_e(Re)}if(he!==null)var o=!0;else{var u=_e(Ge);u!==null&&Vl(Fl,u.startTime-n),o=!1}return o}finally{he=null,Z=t,ar=!1}}var cr=!1,ir=null,dt=-1,hi=5,yi=-1;function gi(){return!(T.unstable_now()-yi<hi)}function Ol(){if(ir!==null){var e=T.unstable_now();yi=e;var n=!0;try{n=ir(!0,e)}finally{n?ct():(cr=!1,ir=null)}}else cr=!1}var ct;typeof di=="function"?ct=function(){di(Ol)}:typeof MessageChannel<"u"?(Dl=new MessageChannel,pi=Dl.port2,Dl.port1.onmessage=Ol,ct=function(){pi.postMessage(null)}):ct=function(){mi(Ol,0)};var Dl,pi;function Ul(e){ir=e,cr||(cr=!0,ct())}function Vl(e,n){dt=mi(function(){e(T.unstable_now())},n)}T.unstable_IdlePriority=5;T.unstable_ImmediatePriority=1;T.unstable_LowPriority=4;T.unstable_NormalPriority=3;T.unstable_Profiling=null;T.unstable_UserBlockingPriority=2;T.unstable_cancelCallback=function(e){e.callback=null};T.unstable_continueExecution=function(){yn||ar||(yn=!0,Ul(jl))};T.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):hi=0<e?Math.floor(1e3/e):5};T.unstable_getCurrentPriorityLevel=function(){return Z};T.unstable_getFirstCallbackNode=function(){return _e(Re)};T.unstable_next=function(e){switch(Z){case 1:case 2:case 3:var n=3;break;default:n=Z}var t=Z;Z=n;try{return e()}finally{Z=t}};T.unstable_pauseExecution=function(){};T.unstable_requestPaint=function(){};T.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=Z;Z=e;try{return n()}finally{Z=t}};T.unstable_scheduleCallback=function(e,n,t){var r=T.unstable_now();switch(typeof t=="object"&&t!==null?(t=t.delay,t=typeof t=="number"&&0<t?r+t:r):t=r,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=t+l,e={id:lf++,callback:n,priorityLevel:e,startTime:t,expirationTime:l,sortIndex:-1},t>r?(e.sortIndex=t,Ml(Ge,e),_e(Re)===null&&e===_e(Ge)&&(ft?(vi(dt),dt=-1):ft=!0,Vl(Fl,t-r))):(e.sortIndex=l,Ml(Re,e),yn||ar||(yn=!0,Ul(jl))),e};T.unstable_shouldYield=gi;T.unstable_wrapCallback=function(e){var n=Z;return function(){var t=Z;Z=n;try{return e.apply(this,arguments)}finally{Z=t}}}});var ki=je((yp,Si)=>{"use strict";Si.exports=wi()});var xc=je(ve=>{"use strict";var of=or(),pe=ki();function h(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var zs=new Set,Mt={};function Tn(e,n){bn(e,n),bn(e+"Capture",n)}function bn(e,n){for(Mt[e]=n,e=0;e<n.length;e++)zs.add(n[e])}var We=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),so=Object.prototype.hasOwnProperty,uf=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,Ei={},_i={};function sf(e){return so.call(_i,e)?!0:so.call(Ei,e)?!1:uf.test(e)?_i[e]=!0:(Ei[e]=!0,!1)}function af(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function cf(e,n,t,r){if(n===null||typeof n>"u"||af(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function le(e,n,t,r,l,o,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=u}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){G[e]=new le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];G[n]=new le(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){G[e]=new le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){G[e]=new le(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){G[e]=new le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){G[e]=new le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){G[e]=new le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){G[e]=new le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){G[e]=new le(e,5,!1,e.toLowerCase(),null,!1,!1)});var nu=/[\\-:]([a-z])/g;function tu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(nu,tu);G[n]=new le(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(nu,tu);G[n]=new le(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(nu,tu);G[n]=new le(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){G[e]=new le(e,1,!1,e.toLowerCase(),null,!1,!1)});G.xlinkHref=new le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){G[e]=new le(e,1,!1,e.toLowerCase(),null,!0,!0)});function ru(e,n,t,r){var l=G.hasOwnProperty(n)?G[n]:null;(l!==null?l.type!==0:r||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(cf(n,t,l,r)&&(t=null),r||l===null?sf(n)&&(t===null?e.removeAttribute(n):e.setAttribute(n,""+t)):l.mustUseProperty?e[l.propertyName]=t===null?l.type===3?!1:"":t:(n=l.attributeName,r=l.attributeNamespace,t===null?e.removeAttribute(n):(l=l.type,t=l===3||l===4&&t===!0?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}var Ye=of.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fr=Symbol.for("react.element"),In=Symbol.for("react.portal"),Fn=Symbol.for("react.fragment"),lu=Symbol.for("react.strict_mode"),ao=Symbol.for("react.profiler"),Ls=Symbol.for("react.provider"),Ts=Symbol.for("react.context"),ou=Symbol.for("react.forward_ref"),co=Symbol.for("react.suspense"),fo=Symbol.for("react.suspense_list"),uu=Symbol.for("react.memo"),Je=Symbol.for("react.lazy"),Rs=Symbol.for("react.offscreen"),Ci=Symbol.iterator;function pt(e){return e===null||typeof e!="object"?null:(e=Ci&&e[Ci]||e["@@iterator"],typeof e=="function"?e:null)}var j=Object.assign,Al;function kt(e){if(Al===void 0)try{throw Error()}catch(t){var n=t.stack.trim().match(/\\n( *(at )?)/);Al=n&&n[1]||""}return\`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=`(()=>{var jc=Object.create;var Zu=Object.defineProperty;var Uc=Object.getOwnPropertyDescriptor;var Vc=Object.getOwnPropertyNames;var Ac=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty;var je=(e,n)=>()=>{try{return n||e((n={exports:{}}).exports,n),n.exports}catch(t){throw n=0,t}};var Hc=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of Vc(n))!Bc.call(e,l)&&l!==t&&Zu(e,l,{get:()=>n[l],enumerable:!(r=Uc(n,l))||r.enumerable});return e};var nr=(e,n,t)=>(t=e!=null?jc(Ac(e)):{},Hc(n||!e||!e.__esModule?Zu(t,"default",{value:e,enumerable:!0}):t,e));var si=je(N=>{"use strict";var at=Symbol.for("react.element"),Wc=Symbol.for("react.portal"),$c=Symbol.for("react.fragment"),Qc=Symbol.for("react.strict_mode"),Kc=Symbol.for("react.profiler"),Yc=Symbol.for("react.provider"),Xc=Symbol.for("react.context"),Gc=Symbol.for("react.forward_ref"),Zc=Symbol.for("react.suspense"),Jc=Symbol.for("react.memo"),qc=Symbol.for("react.lazy"),Ju=Symbol.iterator;function bc(e){return e===null||typeof e!="object"?null:(e=Ju&&e[Ju]||e["@@iterator"],typeof e=="function"?e:null)}var ei={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ni=Object.assign,ti={};function On(e,n,t){this.props=e,this.context=n,this.refs=ti,this.updater=t||ei}On.prototype.isReactComponent={};On.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};On.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ri(){}ri.prototype=On.prototype;function Pl(e,n,t){this.props=e,this.context=n,this.refs=ti,this.updater=t||ei}var zl=Pl.prototype=new ri;zl.constructor=Pl;ni(zl,On.prototype);zl.isPureReactComponent=!0;var qu=Array.isArray,li=Object.prototype.hasOwnProperty,Ll={current:null},oi={key:!0,ref:!0,__self:!0,__source:!0};function ui(e,n,t){var r,l={},o=null,u=null;if(n!=null)for(r in n.ref!==void 0&&(u=n.ref),n.key!==void 0&&(o=""+n.key),n)li.call(n,r)&&!oi.hasOwnProperty(r)&&(l[r]=n[r]);var i=arguments.length-2;if(i===1)l.children=t;else if(1<i){for(var s=Array(i),f=0;f<i;f++)s[f]=arguments[f+2];l.children=s}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)l[r]===void 0&&(l[r]=i[r]);return{$$typeof:at,type:e,key:o,ref:u,props:l,_owner:Ll.current}}function ef(e,n){return{$$typeof:at,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function Tl(e){return typeof e=="object"&&e!==null&&e.$$typeof===at}function nf(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return n[t]})}var bu=/\\/+/g;function Nl(e,n){return typeof e=="object"&&e!==null&&e.key!=null?nf(""+e.key):n.toString(36)}function rr(e,n,t,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case at:case Wc:u=!0}}if(u)return u=e,l=l(u),e=r===""?"."+Nl(u,0):r,qu(l)?(t="",e!=null&&(t=e.replace(bu,"$&/")+"/"),rr(l,n,t,"",function(f){return f})):l!=null&&(Tl(l)&&(l=ef(l,t+(!l.key||u&&u.key===l.key?"":(""+l.key).replace(bu,"$&/")+"/")+e)),n.push(l)),1;if(u=0,r=r===""?".":r+":",qu(e))for(var i=0;i<e.length;i++){o=e[i];var s=r+Nl(o,i);u+=rr(o,n,t,s,l)}else if(s=bc(e),typeof s=="function")for(e=s.call(e),i=0;!(o=e.next()).done;)o=o.value,s=r+Nl(o,i++),u+=rr(o,n,t,s,l);else if(o==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return u}function tr(e,n,t){if(e==null)return e;var r=[],l=0;return rr(e,r,"","",function(o){return n.call(t,o,l++)}),r}function tf(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ne={current:null},lr={transition:null},rf={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:lr,ReactCurrentOwner:Ll};function ii(){throw Error("act(...) is not supported in production builds of React.")}N.Children={map:tr,forEach:function(e,n,t){tr(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return tr(e,function(){n++}),n},toArray:function(e){return tr(e,function(n){return n})||[]},only:function(e){if(!Tl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};N.Component=On;N.Fragment=$c;N.Profiler=Kc;N.PureComponent=Pl;N.StrictMode=Qc;N.Suspense=Zc;N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rf;N.act=ii;N.cloneElement=function(e,n,t){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ni({},e.props),l=e.key,o=e.ref,u=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,u=Ll.current),n.key!==void 0&&(l=""+n.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in n)li.call(n,s)&&!oi.hasOwnProperty(s)&&(r[s]=n[s]===void 0&&i!==void 0?i[s]:n[s])}var s=arguments.length-2;if(s===1)r.children=t;else if(1<s){i=Array(s);for(var f=0;f<s;f++)i[f]=arguments[f+2];r.children=i}return{$$typeof:at,type:e.type,key:l,ref:o,props:r,_owner:u}};N.createContext=function(e){return e={$$typeof:Xc,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Yc,_context:e},e.Consumer=e};N.createElement=ui;N.createFactory=function(e){var n=ui.bind(null,e);return n.type=e,n};N.createRef=function(){return{current:null}};N.forwardRef=function(e){return{$$typeof:Gc,render:e}};N.isValidElement=Tl;N.lazy=function(e){return{$$typeof:qc,_payload:{_status:-1,_result:e},_init:tf}};N.memo=function(e,n){return{$$typeof:Jc,type:e,compare:n===void 0?null:n}};N.startTransition=function(e){var n=lr.transition;lr.transition={};try{e()}finally{lr.transition=n}};N.unstable_act=ii;N.useCallback=function(e,n){return ne.current.useCallback(e,n)};N.useContext=function(e){return ne.current.useContext(e)};N.useDebugValue=function(){};N.useDeferredValue=function(e){return ne.current.useDeferredValue(e)};N.useEffect=function(e,n){return ne.current.useEffect(e,n)};N.useId=function(){return ne.current.useId()};N.useImperativeHandle=function(e,n,t){return ne.current.useImperativeHandle(e,n,t)};N.useInsertionEffect=function(e,n){return ne.current.useInsertionEffect(e,n)};N.useLayoutEffect=function(e,n){return ne.current.useLayoutEffect(e,n)};N.useMemo=function(e,n){return ne.current.useMemo(e,n)};N.useReducer=function(e,n,t){return ne.current.useReducer(e,n,t)};N.useRef=function(e){return ne.current.useRef(e)};N.useState=function(e){return ne.current.useState(e)};N.useSyncExternalStore=function(e,n,t){return ne.current.useSyncExternalStore(e,n,t)};N.useTransition=function(){return ne.current.useTransition()};N.version="18.3.1"});var or=je((vp,ai)=>{"use strict";ai.exports=si()});var wi=je(T=>{"use strict";function Ml(e,n){var t=e.length;e.push(n);e:for(;0<t;){var r=t-1>>>1,l=e[r];if(0<ur(l,n))e[r]=n,e[t]=l,t=r;else break e}}function _e(e){return e.length===0?null:e[0]}function sr(e){if(e.length===0)return null;var n=e[0],t=e.pop();if(t!==n){e[0]=t;e:for(var r=0,l=e.length,o=l>>>1;r<o;){var u=2*(r+1)-1,i=e[u],s=u+1,f=e[s];if(0>ur(i,t))s<l&&0>ur(f,i)?(e[r]=f,e[s]=t,r=s):(e[r]=i,e[u]=t,r=u);else if(s<l&&0>ur(f,t))e[r]=f,e[s]=t,r=s;else break e}}return n}function ur(e,n){var t=e.sortIndex-n.sortIndex;return t!==0?t:e.id-n.id}typeof performance=="object"&&typeof performance.now=="function"?(ci=performance,T.unstable_now=function(){return ci.now()}):(Rl=Date,fi=Rl.now(),T.unstable_now=function(){return Rl.now()-fi});var ci,Rl,fi,Re=[],Ge=[],lf=1,he=null,Z=3,ar=!1,yn=!1,ft=!1,mi=typeof setTimeout=="function"?setTimeout:null,vi=typeof clearTimeout=="function"?clearTimeout:null,di=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Il(e){for(var n=_e(Ge);n!==null;){if(n.callback===null)sr(Ge);else if(n.startTime<=e)sr(Ge),n.sortIndex=n.expirationTime,Ml(Re,n);else break;n=_e(Ge)}}function Fl(e){if(ft=!1,Il(e),!yn)if(_e(Re)!==null)yn=!0,Ul(jl);else{var n=_e(Ge);n!==null&&Vl(Fl,n.startTime-e)}}function jl(e,n){yn=!1,ft&&(ft=!1,vi(dt),dt=-1),ar=!0;var t=Z;try{for(Il(n),he=_e(Re);he!==null&&(!(he.expirationTime>n)||e&&!gi());){var r=he.callback;if(typeof r=="function"){he.callback=null,Z=he.priorityLevel;var l=r(he.expirationTime<=n);n=T.unstable_now(),typeof l=="function"?he.callback=l:he===_e(Re)&&sr(Re),Il(n)}else sr(Re);he=_e(Re)}if(he!==null)var o=!0;else{var u=_e(Ge);u!==null&&Vl(Fl,u.startTime-n),o=!1}return o}finally{he=null,Z=t,ar=!1}}var cr=!1,ir=null,dt=-1,hi=5,yi=-1;function gi(){return!(T.unstable_now()-yi<hi)}function Ol(){if(ir!==null){var e=T.unstable_now();yi=e;var n=!0;try{n=ir(!0,e)}finally{n?ct():(cr=!1,ir=null)}}else cr=!1}var ct;typeof di=="function"?ct=function(){di(Ol)}:typeof MessageChannel<"u"?(Dl=new MessageChannel,pi=Dl.port2,Dl.port1.onmessage=Ol,ct=function(){pi.postMessage(null)}):ct=function(){mi(Ol,0)};var Dl,pi;function Ul(e){ir=e,cr||(cr=!0,ct())}function Vl(e,n){dt=mi(function(){e(T.unstable_now())},n)}T.unstable_IdlePriority=5;T.unstable_ImmediatePriority=1;T.unstable_LowPriority=4;T.unstable_NormalPriority=3;T.unstable_Profiling=null;T.unstable_UserBlockingPriority=2;T.unstable_cancelCallback=function(e){e.callback=null};T.unstable_continueExecution=function(){yn||ar||(yn=!0,Ul(jl))};T.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):hi=0<e?Math.floor(1e3/e):5};T.unstable_getCurrentPriorityLevel=function(){return Z};T.unstable_getFirstCallbackNode=function(){return _e(Re)};T.unstable_next=function(e){switch(Z){case 1:case 2:case 3:var n=3;break;default:n=Z}var t=Z;Z=n;try{return e()}finally{Z=t}};T.unstable_pauseExecution=function(){};T.unstable_requestPaint=function(){};T.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=Z;Z=e;try{return n()}finally{Z=t}};T.unstable_scheduleCallback=function(e,n,t){var r=T.unstable_now();switch(typeof t=="object"&&t!==null?(t=t.delay,t=typeof t=="number"&&0<t?r+t:r):t=r,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=t+l,e={id:lf++,callback:n,priorityLevel:e,startTime:t,expirationTime:l,sortIndex:-1},t>r?(e.sortIndex=t,Ml(Ge,e),_e(Re)===null&&e===_e(Ge)&&(ft?(vi(dt),dt=-1):ft=!0,Vl(Fl,t-r))):(e.sortIndex=l,Ml(Re,e),yn||ar||(yn=!0,Ul(jl))),e};T.unstable_shouldYield=gi;T.unstable_wrapCallback=function(e){var n=Z;return function(){var t=Z;Z=n;try{return e.apply(this,arguments)}finally{Z=t}}}});var ki=je((yp,Si)=>{"use strict";Si.exports=wi()});var xc=je(ve=>{"use strict";var of=or(),pe=ki();function h(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var zs=new Set,Mt={};function Tn(e,n){bn(e,n),bn(e+"Capture",n)}function bn(e,n){for(Mt[e]=n,e=0;e<n.length;e++)zs.add(n[e])}var We=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),so=Object.prototype.hasOwnProperty,uf=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,Ei={},_i={};function sf(e){return so.call(_i,e)?!0:so.call(Ei,e)?!1:uf.test(e)?_i[e]=!0:(Ei[e]=!0,!1)}function af(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function cf(e,n,t,r){if(n===null||typeof n>"u"||af(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function le(e,n,t,r,l,o,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=u}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){G[e]=new le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];G[n]=new le(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){G[e]=new le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){G[e]=new le(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){G[e]=new le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){G[e]=new le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){G[e]=new le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){G[e]=new le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){G[e]=new le(e,5,!1,e.toLowerCase(),null,!1,!1)});var nu=/[\\-:]([a-z])/g;function tu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(nu,tu);G[n]=new le(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(nu,tu);G[n]=new le(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(nu,tu);G[n]=new le(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){G[e]=new le(e,1,!1,e.toLowerCase(),null,!1,!1)});G.xlinkHref=new le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){G[e]=new le(e,1,!1,e.toLowerCase(),null,!0,!0)});function ru(e,n,t,r){var l=G.hasOwnProperty(n)?G[n]:null;(l!==null?l.type!==0:r||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(cf(n,t,l,r)&&(t=null),r||l===null?sf(n)&&(t===null?e.removeAttribute(n):e.setAttribute(n,""+t)):l.mustUseProperty?e[l.propertyName]=t===null?l.type===3?!1:"":t:(n=l.attributeName,r=l.attributeNamespace,t===null?e.removeAttribute(n):(l=l.type,t=l===3||l===4&&t===!0?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}var Ye=of.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fr=Symbol.for("react.element"),In=Symbol.for("react.portal"),Fn=Symbol.for("react.fragment"),lu=Symbol.for("react.strict_mode"),ao=Symbol.for("react.profiler"),Ls=Symbol.for("react.provider"),Ts=Symbol.for("react.context"),ou=Symbol.for("react.forward_ref"),co=Symbol.for("react.suspense"),fo=Symbol.for("react.suspense_list"),uu=Symbol.for("react.memo"),Je=Symbol.for("react.lazy"),Rs=Symbol.for("react.offscreen"),Ci=Symbol.iterator;function pt(e){return e===null||typeof e!="object"?null:(e=Ci&&e[Ci]||e["@@iterator"],typeof e=="function"?e:null)}var j=Object.assign,Al;function kt(e){if(Al===void 0)try{throw Error()}catch(t){var n=t.stack.trim().match(/\\n( *(at )?)/);Al=n&&n[1]||""}return\`
|
|
906
2
|
\`+Al+e}var Bl=!1;function Hl(e,n){if(!e||Bl)return"";Bl=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(f){var r=f}Reflect.construct(e,[],n)}else{try{n.call()}catch(f){r=f}e.call(n.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var l=f.stack.split(\`
|
|
907
3
|
\`),o=r.stack.split(\`
|
|
908
4
|
\`),u=l.length-1,i=o.length-1;1<=u&&0<=i&&l[u]!==o[i];)i--;for(;1<=u&&0<=i;u--,i--)if(l[u]!==o[i]){if(u!==1||i!==1)do if(u--,i--,0>i||l[u]!==o[i]){var s=\`
|
|
@@ -956,59 +52,5 @@ react/cjs/react-jsx-runtime.production.min.js:
|
|
|
956
52
|
* LICENSE file in the root directory of this source tree.
|
|
957
53
|
*)
|
|
958
54
|
*/
|
|
959
|
-
`;
|
|
960
|
-
|
|
961
|
-
var b;
|
|
962
|
-
if (r.length > 1e5)
|
|
963
|
-
throw new Error("Preview source exceeds 100,000 characters.");
|
|
964
|
-
const s = crypto.randomUUID();
|
|
965
|
-
let f;
|
|
966
|
-
if (l === "html")
|
|
967
|
-
f = wr.sanitize(r, {
|
|
968
|
-
WHOLE_DOCUMENT: !0,
|
|
969
|
-
ADD_TAGS: ["style"],
|
|
970
|
-
FORBID_TAGS: [
|
|
971
|
-
"script",
|
|
972
|
-
"meta",
|
|
973
|
-
"base",
|
|
974
|
-
"link",
|
|
975
|
-
"iframe",
|
|
976
|
-
"object",
|
|
977
|
-
"embed",
|
|
978
|
-
"form"
|
|
979
|
-
],
|
|
980
|
-
FORBID_ATTR: ["href", "action", "formaction", "srcset"]
|
|
981
|
-
});
|
|
982
|
-
else {
|
|
983
|
-
const O = await import("typescript"), _ = O.transpileModule(r, {
|
|
984
|
-
fileName: "preview.tsx",
|
|
985
|
-
reportDiagnostics: !0,
|
|
986
|
-
compilerOptions: {
|
|
987
|
-
jsx: O.JsxEmit.React,
|
|
988
|
-
module: O.ModuleKind.CommonJS,
|
|
989
|
-
target: O.ScriptTarget.ES2020,
|
|
990
|
-
esModuleInterop: !0
|
|
991
|
-
}
|
|
992
|
-
}), z = (b = _.diagnostics) == null ? void 0 : b.filter(
|
|
993
|
-
($) => $.category === O.DiagnosticCategory.Error
|
|
994
|
-
);
|
|
995
|
-
if (z != null && z.length)
|
|
996
|
-
throw new Error(
|
|
997
|
-
z.map(
|
|
998
|
-
($) => O.flattenDiagnosticMessageText($.messageText, `
|
|
999
|
-
`)
|
|
1000
|
-
).join(`
|
|
1001
|
-
`)
|
|
1002
|
-
);
|
|
1003
|
-
f = `<div id="preview"></div><script type="application/json" id="source">${JSON.stringify(_.outputText).replace(/</g, "\\u003c")}<\/script><script nonce="${s}">${Sr.replace(/<\/script/gi, "<\\/script")}<\/script>`;
|
|
1004
|
-
}
|
|
1005
|
-
return i && (f += `<script nonce="${s}">document.addEventListener('dblclick', function(event) {
|
|
1006
|
-
if (event.defaultPrevented || !(event.target instanceof Element) || event.target.closest('button, a, input, textarea, select, video, audio, [contenteditable], [role="button"], [role="textbox"]')) return;
|
|
1007
|
-
event.preventDefault();
|
|
1008
|
-
parent.postMessage({type: 'squeed:content-edit'}, '*');
|
|
1009
|
-
});<\/script>`), `<!doctype html><html><head><meta http-equiv="Content-Security-Policy" content="${`default-src 'none'; script-src ${l === "jsx" ? `'nonce-${s}' 'unsafe-eval'` : i ? `'nonce-${s}'` : "'none'"}; style-src 'unsafe-inline'; img-src data: blob:; media-src https: data: blob:; connect-src 'none'; base-uri 'none'; form-action 'none'; frame-src 'none';`}"><meta name="referrer" content="no-referrer"><style>html{color-scheme:light}body{margin:0;padding:0;font:16px/1.5 sans-serif;color:#18181b;background:white;overflow-wrap:anywhere}*{box-sizing:border-box}img{max-width:100%}pre{white-space:pre-wrap}</style></head><body>${f}</body></html>`;
|
|
1010
|
-
}
|
|
1011
|
-
export {
|
|
1012
|
-
Er as contentPreviewDocument
|
|
1013
|
-
};
|
|
1014
|
-
//# sourceMappingURL=contentPreviewDocument-B0nOMpw0.js.map
|
|
55
|
+
`;exports.default=e;
|
|
56
|
+
//# sourceMappingURL=_virtual_content-preview-runtime-Deui59HN.cjs.map
|