@everymatrix/svg-image 0.0.1
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/components/SvgImage-BNxs4GBT.cjs +2 -0
- package/components/SvgImage-C6uUwgpp.js +1174 -0
- package/components/SvgImage-CzhJINjG.js +1214 -0
- package/es2015/svg-image.cjs +1 -0
- package/es2015/svg-image.js +16 -0
- package/esnext/svg-image.js +14 -0
- package/package.json +25 -0
|
@@ -0,0 +1,1174 @@
|
|
|
1
|
+
function ht() {
|
|
2
|
+
}
|
|
3
|
+
function We(e) {
|
|
4
|
+
return e();
|
|
5
|
+
}
|
|
6
|
+
function Ie() {
|
|
7
|
+
return /* @__PURE__ */ Object.create(null);
|
|
8
|
+
}
|
|
9
|
+
function Ot(e) {
|
|
10
|
+
e.forEach(We);
|
|
11
|
+
}
|
|
12
|
+
function je(e) {
|
|
13
|
+
return typeof e == "function";
|
|
14
|
+
}
|
|
15
|
+
function pn(e, t) {
|
|
16
|
+
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
|
+
}
|
|
18
|
+
let yt;
|
|
19
|
+
function Me(e, t) {
|
|
20
|
+
return e === t ? !0 : (yt || (yt = document.createElement("a")), yt.href = t, e === yt.href);
|
|
21
|
+
}
|
|
22
|
+
function _n(e) {
|
|
23
|
+
return Object.keys(e).length === 0;
|
|
24
|
+
}
|
|
25
|
+
function gn(e, t) {
|
|
26
|
+
e.appendChild(t);
|
|
27
|
+
}
|
|
28
|
+
function En(e, t, i) {
|
|
29
|
+
const o = Tn(e);
|
|
30
|
+
if (!o.getElementById(t)) {
|
|
31
|
+
const r = Ct("style");
|
|
32
|
+
r.id = t, r.textContent = i, An(o, r);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function Tn(e) {
|
|
36
|
+
if (!e)
|
|
37
|
+
return document;
|
|
38
|
+
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
39
|
+
return t && /** @type {ShadowRoot} */
|
|
40
|
+
t.host ? (
|
|
41
|
+
/** @type {ShadowRoot} */
|
|
42
|
+
t
|
|
43
|
+
) : e.ownerDocument;
|
|
44
|
+
}
|
|
45
|
+
function An(e, t) {
|
|
46
|
+
return gn(
|
|
47
|
+
/** @type {Document} */
|
|
48
|
+
e.head || e,
|
|
49
|
+
t
|
|
50
|
+
), t.sheet;
|
|
51
|
+
}
|
|
52
|
+
function ie(e, t, i) {
|
|
53
|
+
e.insertBefore(t, i || null);
|
|
54
|
+
}
|
|
55
|
+
function Nt(e) {
|
|
56
|
+
e.parentNode && e.parentNode.removeChild(e);
|
|
57
|
+
}
|
|
58
|
+
function Ct(e) {
|
|
59
|
+
return document.createElement(e);
|
|
60
|
+
}
|
|
61
|
+
function z(e, t, i) {
|
|
62
|
+
i == null ? e.removeAttribute(t) : e.getAttribute(t) !== i && e.setAttribute(t, i);
|
|
63
|
+
}
|
|
64
|
+
function bn(e) {
|
|
65
|
+
return Array.from(e.childNodes);
|
|
66
|
+
}
|
|
67
|
+
function Sn(e) {
|
|
68
|
+
const t = {};
|
|
69
|
+
return e.childNodes.forEach(
|
|
70
|
+
/** @param {Element} node */
|
|
71
|
+
(i) => {
|
|
72
|
+
t[i.slot || "default"] = !0;
|
|
73
|
+
}
|
|
74
|
+
), t;
|
|
75
|
+
}
|
|
76
|
+
let pt;
|
|
77
|
+
function dt(e) {
|
|
78
|
+
pt = e;
|
|
79
|
+
}
|
|
80
|
+
function Ye() {
|
|
81
|
+
if (!pt)
|
|
82
|
+
throw new Error("Function called outside component initialization");
|
|
83
|
+
return pt;
|
|
84
|
+
}
|
|
85
|
+
function yn(e) {
|
|
86
|
+
Ye().$$.on_mount.push(e);
|
|
87
|
+
}
|
|
88
|
+
function $n(e) {
|
|
89
|
+
Ye().$$.on_destroy.push(e);
|
|
90
|
+
}
|
|
91
|
+
const et = [], Jt = [];
|
|
92
|
+
let it = [];
|
|
93
|
+
const xe = [], wn = /* @__PURE__ */ Promise.resolve();
|
|
94
|
+
let Qt = !1;
|
|
95
|
+
function Ln() {
|
|
96
|
+
Qt || (Qt = !0, wn.then(W));
|
|
97
|
+
}
|
|
98
|
+
function te(e) {
|
|
99
|
+
it.push(e);
|
|
100
|
+
}
|
|
101
|
+
const Yt = /* @__PURE__ */ new Set();
|
|
102
|
+
let tt = 0;
|
|
103
|
+
function W() {
|
|
104
|
+
if (tt !== 0)
|
|
105
|
+
return;
|
|
106
|
+
const e = pt;
|
|
107
|
+
do {
|
|
108
|
+
try {
|
|
109
|
+
for (; tt < et.length; ) {
|
|
110
|
+
const t = et[tt];
|
|
111
|
+
tt++, dt(t), Rn(t.$$);
|
|
112
|
+
}
|
|
113
|
+
} catch (t) {
|
|
114
|
+
throw et.length = 0, tt = 0, t;
|
|
115
|
+
}
|
|
116
|
+
for (dt(null), et.length = 0, tt = 0; Jt.length; )
|
|
117
|
+
Jt.pop()();
|
|
118
|
+
for (let t = 0; t < it.length; t += 1) {
|
|
119
|
+
const i = it[t];
|
|
120
|
+
Yt.has(i) || (Yt.add(i), i());
|
|
121
|
+
}
|
|
122
|
+
it.length = 0;
|
|
123
|
+
} while (et.length);
|
|
124
|
+
for (; xe.length; )
|
|
125
|
+
xe.pop()();
|
|
126
|
+
Qt = !1, Yt.clear(), dt(e);
|
|
127
|
+
}
|
|
128
|
+
function Rn(e) {
|
|
129
|
+
if (e.fragment !== null) {
|
|
130
|
+
e.update(), Ot(e.before_update);
|
|
131
|
+
const t = e.dirty;
|
|
132
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(te);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function On(e) {
|
|
136
|
+
const t = [], i = [];
|
|
137
|
+
it.forEach((o) => e.indexOf(o) === -1 ? t.push(o) : i.push(o)), i.forEach((o) => o()), it = t;
|
|
138
|
+
}
|
|
139
|
+
const Nn = /* @__PURE__ */ new Set();
|
|
140
|
+
function Cn(e, t) {
|
|
141
|
+
e && e.i && (Nn.delete(e), e.i(t));
|
|
142
|
+
}
|
|
143
|
+
function Dn(e, t, i) {
|
|
144
|
+
const { fragment: o, after_update: r } = e.$$;
|
|
145
|
+
o && o.m(t, i), te(() => {
|
|
146
|
+
const c = e.$$.on_mount.map(We).filter(je);
|
|
147
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...c) : Ot(c), e.$$.on_mount = [];
|
|
148
|
+
}), r.forEach(te);
|
|
149
|
+
}
|
|
150
|
+
function In(e, t) {
|
|
151
|
+
const i = e.$$;
|
|
152
|
+
i.fragment !== null && (On(i.after_update), Ot(i.on_destroy), i.fragment && i.fragment.d(t), i.on_destroy = i.fragment = null, i.ctx = []);
|
|
153
|
+
}
|
|
154
|
+
function Mn(e, t) {
|
|
155
|
+
e.$$.dirty[0] === -1 && (et.push(e), Ln(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
156
|
+
}
|
|
157
|
+
function xn(e, t, i, o, r, c, d = null, f = [-1]) {
|
|
158
|
+
const _ = pt;
|
|
159
|
+
dt(e);
|
|
160
|
+
const m = e.$$ = {
|
|
161
|
+
fragment: null,
|
|
162
|
+
ctx: [],
|
|
163
|
+
// state
|
|
164
|
+
props: c,
|
|
165
|
+
update: ht,
|
|
166
|
+
not_equal: r,
|
|
167
|
+
bound: Ie(),
|
|
168
|
+
// lifecycle
|
|
169
|
+
on_mount: [],
|
|
170
|
+
on_destroy: [],
|
|
171
|
+
on_disconnect: [],
|
|
172
|
+
before_update: [],
|
|
173
|
+
after_update: [],
|
|
174
|
+
context: new Map(t.context || (_ ? _.$$.context : [])),
|
|
175
|
+
// everything else
|
|
176
|
+
callbacks: Ie(),
|
|
177
|
+
dirty: f,
|
|
178
|
+
skip_bound: !1,
|
|
179
|
+
root: t.target || _.$$.root
|
|
180
|
+
};
|
|
181
|
+
d && d(m.root);
|
|
182
|
+
let w = !1;
|
|
183
|
+
if (m.ctx = i ? i(e, t.props || {}, (L, y, ...F) => {
|
|
184
|
+
const k = F.length ? F[0] : y;
|
|
185
|
+
return m.ctx && r(m.ctx[L], m.ctx[L] = k) && (!m.skip_bound && m.bound[L] && m.bound[L](k), w && Mn(e, L)), y;
|
|
186
|
+
}) : [], m.update(), w = !0, Ot(m.before_update), m.fragment = o ? o(m.ctx) : !1, t.target) {
|
|
187
|
+
if (t.hydrate) {
|
|
188
|
+
const L = bn(t.target);
|
|
189
|
+
m.fragment && m.fragment.l(L), L.forEach(Nt);
|
|
190
|
+
} else
|
|
191
|
+
m.fragment && m.fragment.c();
|
|
192
|
+
t.intro && Cn(e.$$.fragment), Dn(e, t.target, t.anchor), W();
|
|
193
|
+
}
|
|
194
|
+
dt(_);
|
|
195
|
+
}
|
|
196
|
+
let Ve;
|
|
197
|
+
typeof HTMLElement == "function" && (Ve = class extends HTMLElement {
|
|
198
|
+
/** The Svelte component constructor */
|
|
199
|
+
$$ctor;
|
|
200
|
+
/** Slots */
|
|
201
|
+
$$s;
|
|
202
|
+
/** The Svelte component instance */
|
|
203
|
+
$$c;
|
|
204
|
+
/** Whether or not the custom element is connected */
|
|
205
|
+
$$cn = !1;
|
|
206
|
+
/** Component props data */
|
|
207
|
+
$$d = {};
|
|
208
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
209
|
+
$$r = !1;
|
|
210
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
211
|
+
$$p_d = {};
|
|
212
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
213
|
+
$$l = {};
|
|
214
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
215
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
216
|
+
constructor(e, t, i) {
|
|
217
|
+
super(), this.$$ctor = e, this.$$s = t, i && this.attachShadow({ mode: "open" });
|
|
218
|
+
}
|
|
219
|
+
addEventListener(e, t, i) {
|
|
220
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
221
|
+
const o = this.$$c.$on(e, t);
|
|
222
|
+
this.$$l_u.set(t, o);
|
|
223
|
+
}
|
|
224
|
+
super.addEventListener(e, t, i);
|
|
225
|
+
}
|
|
226
|
+
removeEventListener(e, t, i) {
|
|
227
|
+
if (super.removeEventListener(e, t, i), this.$$c) {
|
|
228
|
+
const o = this.$$l_u.get(t);
|
|
229
|
+
o && (o(), this.$$l_u.delete(t));
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
async connectedCallback() {
|
|
233
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
234
|
+
let e = function(r) {
|
|
235
|
+
return () => {
|
|
236
|
+
let c;
|
|
237
|
+
return {
|
|
238
|
+
c: function() {
|
|
239
|
+
c = Ct("slot"), r !== "default" && z(c, "name", r);
|
|
240
|
+
},
|
|
241
|
+
/**
|
|
242
|
+
* @param {HTMLElement} target
|
|
243
|
+
* @param {HTMLElement} [anchor]
|
|
244
|
+
*/
|
|
245
|
+
m: function(_, m) {
|
|
246
|
+
ie(_, c, m);
|
|
247
|
+
},
|
|
248
|
+
d: function(_) {
|
|
249
|
+
_ && Nt(c);
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
255
|
+
return;
|
|
256
|
+
const t = {}, i = Sn(this);
|
|
257
|
+
for (const r of this.$$s)
|
|
258
|
+
r in i && (t[r] = [e(r)]);
|
|
259
|
+
for (const r of this.attributes) {
|
|
260
|
+
const c = this.$$g_p(r.name);
|
|
261
|
+
c in this.$$d || (this.$$d[c] = Lt(c, r.value, this.$$p_d, "toProp"));
|
|
262
|
+
}
|
|
263
|
+
for (const r in this.$$p_d)
|
|
264
|
+
!(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
|
|
265
|
+
this.$$c = new this.$$ctor({
|
|
266
|
+
target: this.shadowRoot || this,
|
|
267
|
+
props: {
|
|
268
|
+
...this.$$d,
|
|
269
|
+
$$slots: t,
|
|
270
|
+
$$scope: {
|
|
271
|
+
ctx: []
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
const o = () => {
|
|
276
|
+
this.$$r = !0;
|
|
277
|
+
for (const r in this.$$p_d)
|
|
278
|
+
if (this.$$d[r] = this.$$c.$$.ctx[this.$$c.$$.props[r]], this.$$p_d[r].reflect) {
|
|
279
|
+
const c = Lt(
|
|
280
|
+
r,
|
|
281
|
+
this.$$d[r],
|
|
282
|
+
this.$$p_d,
|
|
283
|
+
"toAttribute"
|
|
284
|
+
);
|
|
285
|
+
c == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, c);
|
|
286
|
+
}
|
|
287
|
+
this.$$r = !1;
|
|
288
|
+
};
|
|
289
|
+
this.$$c.$$.after_update.push(o), o();
|
|
290
|
+
for (const r in this.$$l)
|
|
291
|
+
for (const c of this.$$l[r]) {
|
|
292
|
+
const d = this.$$c.$on(r, c);
|
|
293
|
+
this.$$l_u.set(c, d);
|
|
294
|
+
}
|
|
295
|
+
this.$$l = {};
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
299
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
300
|
+
attributeChangedCallback(e, t, i) {
|
|
301
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Lt(e, i, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
302
|
+
}
|
|
303
|
+
disconnectedCallback() {
|
|
304
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
305
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
$$g_p(e) {
|
|
309
|
+
return Object.keys(this.$$p_d).find(
|
|
310
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
311
|
+
) || e;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
function Lt(e, t, i, o) {
|
|
315
|
+
const r = i[e]?.type;
|
|
316
|
+
if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !o || !i[e])
|
|
317
|
+
return t;
|
|
318
|
+
if (o === "toAttribute")
|
|
319
|
+
switch (r) {
|
|
320
|
+
case "Object":
|
|
321
|
+
case "Array":
|
|
322
|
+
return t == null ? null : JSON.stringify(t);
|
|
323
|
+
case "Boolean":
|
|
324
|
+
return t ? "" : null;
|
|
325
|
+
case "Number":
|
|
326
|
+
return t ?? null;
|
|
327
|
+
default:
|
|
328
|
+
return t;
|
|
329
|
+
}
|
|
330
|
+
else
|
|
331
|
+
switch (r) {
|
|
332
|
+
case "Object":
|
|
333
|
+
case "Array":
|
|
334
|
+
return t && JSON.parse(t);
|
|
335
|
+
case "Boolean":
|
|
336
|
+
return t;
|
|
337
|
+
case "Number":
|
|
338
|
+
return t != null ? +t : t;
|
|
339
|
+
default:
|
|
340
|
+
return t;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
function kn(e, t, i, o, r, c) {
|
|
344
|
+
let d = class extends Ve {
|
|
345
|
+
constructor() {
|
|
346
|
+
super(e, i, r), this.$$p_d = t;
|
|
347
|
+
}
|
|
348
|
+
static get observedAttributes() {
|
|
349
|
+
return Object.keys(t).map(
|
|
350
|
+
(f) => (t[f].attribute || f).toLowerCase()
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
return Object.keys(t).forEach((f) => {
|
|
355
|
+
Object.defineProperty(d.prototype, f, {
|
|
356
|
+
get() {
|
|
357
|
+
return this.$$c && f in this.$$c ? this.$$c[f] : this.$$d[f];
|
|
358
|
+
},
|
|
359
|
+
set(_) {
|
|
360
|
+
_ = Lt(f, _, t), this.$$d[f] = _, this.$$c?.$set({ [f]: _ });
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
}), o.forEach((f) => {
|
|
364
|
+
Object.defineProperty(d.prototype, f, {
|
|
365
|
+
get() {
|
|
366
|
+
return this.$$c?.[f];
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
}), e.element = /** @type {any} */
|
|
370
|
+
d, d;
|
|
371
|
+
}
|
|
372
|
+
class Pn {
|
|
373
|
+
/**
|
|
374
|
+
* ### PRIVATE API
|
|
375
|
+
*
|
|
376
|
+
* Do not use, may change at any time
|
|
377
|
+
*
|
|
378
|
+
* @type {any}
|
|
379
|
+
*/
|
|
380
|
+
$$ = void 0;
|
|
381
|
+
/**
|
|
382
|
+
* ### PRIVATE API
|
|
383
|
+
*
|
|
384
|
+
* Do not use, may change at any time
|
|
385
|
+
*
|
|
386
|
+
* @type {any}
|
|
387
|
+
*/
|
|
388
|
+
$$set = void 0;
|
|
389
|
+
/** @returns {void} */
|
|
390
|
+
$destroy() {
|
|
391
|
+
In(this, 1), this.$destroy = ht;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* @template {Extract<keyof Events, string>} K
|
|
395
|
+
* @param {K} type
|
|
396
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
397
|
+
* @returns {() => void}
|
|
398
|
+
*/
|
|
399
|
+
$on(t, i) {
|
|
400
|
+
if (!je(i))
|
|
401
|
+
return ht;
|
|
402
|
+
const o = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
403
|
+
return o.push(i), () => {
|
|
404
|
+
const r = o.indexOf(i);
|
|
405
|
+
r !== -1 && o.splice(r, 1);
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* @param {Partial<Props>} props
|
|
410
|
+
* @returns {void}
|
|
411
|
+
*/
|
|
412
|
+
$set(t) {
|
|
413
|
+
this.$$set && !_n(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
const vn = "4";
|
|
417
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(vn);
|
|
418
|
+
const nt = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
419
|
+
function Un(e, t) {
|
|
420
|
+
if (e) {
|
|
421
|
+
const i = document.createElement("style");
|
|
422
|
+
i.innerHTML = t, e.appendChild(i);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
function Fn(e, t) {
|
|
426
|
+
if (!e || !t)
|
|
427
|
+
return;
|
|
428
|
+
const i = new URL(t);
|
|
429
|
+
fetch(i.href).then((o) => o.text()).then((o) => {
|
|
430
|
+
const r = document.createElement("style");
|
|
431
|
+
r.innerHTML = o, e && e.appendChild(r);
|
|
432
|
+
}).catch((o) => {
|
|
433
|
+
console.error("There was an error while trying to load client styling from URL", o);
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
function Hn(e, t, i, o = !1) {
|
|
437
|
+
if (!window.emMessageBus)
|
|
438
|
+
return;
|
|
439
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !o)
|
|
440
|
+
return i = Bn(e, t), i;
|
|
441
|
+
window[nt] || (window[nt] = {}), i = zn(e, t);
|
|
442
|
+
const c = i.unsubscribe.bind(i), d = () => {
|
|
443
|
+
if (window[nt][t]) {
|
|
444
|
+
const f = window[nt][t];
|
|
445
|
+
f.refCount > 1 ? f.refCount = f.refCount - 1 : delete window[nt][t];
|
|
446
|
+
}
|
|
447
|
+
c();
|
|
448
|
+
};
|
|
449
|
+
return i.unsubscribe = d, i;
|
|
450
|
+
}
|
|
451
|
+
function Bn(e, t) {
|
|
452
|
+
const i = document.createElement("style");
|
|
453
|
+
return window.emMessageBus.subscribe(t, (o) => {
|
|
454
|
+
e && (i.innerHTML = o, e.appendChild(i));
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
function zn(e, t) {
|
|
458
|
+
return window.emMessageBus.subscribe(t, (i) => {
|
|
459
|
+
if (!e)
|
|
460
|
+
return;
|
|
461
|
+
const o = e.getRootNode(), r = window[nt];
|
|
462
|
+
let c = r[t] && r[t].sheet;
|
|
463
|
+
c ? r[t].refCount = r[t].refCount + 1 : (c = new CSSStyleSheet(), c.replaceSync(i), r[t] = {
|
|
464
|
+
sheet: c,
|
|
465
|
+
refCount: 1
|
|
466
|
+
});
|
|
467
|
+
const d = o.adoptedStyleSheets || [];
|
|
468
|
+
d.includes(c) || (o.adoptedStyleSheets = [...d, c]);
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
472
|
+
const {
|
|
473
|
+
entries: Xe,
|
|
474
|
+
setPrototypeOf: ke,
|
|
475
|
+
isFrozen: Gn,
|
|
476
|
+
getPrototypeOf: Wn,
|
|
477
|
+
getOwnPropertyDescriptor: jn
|
|
478
|
+
} = Object;
|
|
479
|
+
let {
|
|
480
|
+
freeze: N,
|
|
481
|
+
seal: I,
|
|
482
|
+
create: qe
|
|
483
|
+
} = Object, {
|
|
484
|
+
apply: ee,
|
|
485
|
+
construct: ne
|
|
486
|
+
} = typeof Reflect < "u" && Reflect;
|
|
487
|
+
N || (N = function(t) {
|
|
488
|
+
return t;
|
|
489
|
+
});
|
|
490
|
+
I || (I = function(t) {
|
|
491
|
+
return t;
|
|
492
|
+
});
|
|
493
|
+
ee || (ee = function(t, i, o) {
|
|
494
|
+
return t.apply(i, o);
|
|
495
|
+
});
|
|
496
|
+
ne || (ne = function(t, i) {
|
|
497
|
+
return new t(...i);
|
|
498
|
+
});
|
|
499
|
+
const $t = D(Array.prototype.forEach), Pe = D(Array.prototype.pop), lt = D(Array.prototype.push), Rt = D(String.prototype.toLowerCase), Vt = D(String.prototype.toString), ve = D(String.prototype.match), ct = D(String.prototype.replace), Yn = D(String.prototype.indexOf), Vn = D(String.prototype.trim), x = D(Object.prototype.hasOwnProperty), O = D(RegExp.prototype.test), ut = Xn(TypeError);
|
|
500
|
+
function D(e) {
|
|
501
|
+
return function(t) {
|
|
502
|
+
for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
503
|
+
o[r - 1] = arguments[r];
|
|
504
|
+
return ee(e, t, o);
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
function Xn(e) {
|
|
508
|
+
return function() {
|
|
509
|
+
for (var t = arguments.length, i = new Array(t), o = 0; o < t; o++)
|
|
510
|
+
i[o] = arguments[o];
|
|
511
|
+
return ne(e, i);
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
function u(e, t) {
|
|
515
|
+
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Rt;
|
|
516
|
+
ke && ke(e, null);
|
|
517
|
+
let o = t.length;
|
|
518
|
+
for (; o--; ) {
|
|
519
|
+
let r = t[o];
|
|
520
|
+
if (typeof r == "string") {
|
|
521
|
+
const c = i(r);
|
|
522
|
+
c !== r && (Gn(t) || (t[o] = c), r = c);
|
|
523
|
+
}
|
|
524
|
+
e[r] = !0;
|
|
525
|
+
}
|
|
526
|
+
return e;
|
|
527
|
+
}
|
|
528
|
+
function qn(e) {
|
|
529
|
+
for (let t = 0; t < e.length; t++)
|
|
530
|
+
x(e, t) || (e[t] = null);
|
|
531
|
+
return e;
|
|
532
|
+
}
|
|
533
|
+
function Y(e) {
|
|
534
|
+
const t = qe(null);
|
|
535
|
+
for (const [i, o] of Xe(e))
|
|
536
|
+
x(e, i) && (Array.isArray(o) ? t[i] = qn(o) : o && typeof o == "object" && o.constructor === Object ? t[i] = Y(o) : t[i] = o);
|
|
537
|
+
return t;
|
|
538
|
+
}
|
|
539
|
+
function ft(e, t) {
|
|
540
|
+
for (; e !== null; ) {
|
|
541
|
+
const o = jn(e, t);
|
|
542
|
+
if (o) {
|
|
543
|
+
if (o.get)
|
|
544
|
+
return D(o.get);
|
|
545
|
+
if (typeof o.value == "function")
|
|
546
|
+
return D(o.value);
|
|
547
|
+
}
|
|
548
|
+
e = Wn(e);
|
|
549
|
+
}
|
|
550
|
+
function i() {
|
|
551
|
+
return null;
|
|
552
|
+
}
|
|
553
|
+
return i;
|
|
554
|
+
}
|
|
555
|
+
const Ue = N(["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", "section", "select", "shadow", "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"]), Xt = N(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), qt = N(["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"]), Kn = N(["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"]), Kt = N(["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"]), Zn = N(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Fe = N(["#text"]), He = N(["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", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "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", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Zt = N(["accent-height", "accumulate", "additive", "alignment-baseline", "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", "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", "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", "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", "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", "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"]), Be = N(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "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"]), wt = N(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Jn = I(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Qn = I(/<%[\w\W]*|[\w\W]*%>/gm), ti = I(/\${[\w\W]*}/gm), ei = I(/^data-[\-\w.\u00B7-\uFFFF]/), ni = I(/^aria-[\-\w]+$/), Ke = I(
|
|
556
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
557
|
+
// eslint-disable-line no-useless-escape
|
|
558
|
+
), ii = I(/^(?:\w+script|data):/i), oi = I(
|
|
559
|
+
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
560
|
+
// eslint-disable-line no-control-regex
|
|
561
|
+
), Ze = I(/^html$/i), ri = I(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
562
|
+
var ze = /* @__PURE__ */ Object.freeze({
|
|
563
|
+
__proto__: null,
|
|
564
|
+
MUSTACHE_EXPR: Jn,
|
|
565
|
+
ERB_EXPR: Qn,
|
|
566
|
+
TMPLIT_EXPR: ti,
|
|
567
|
+
DATA_ATTR: ei,
|
|
568
|
+
ARIA_ATTR: ni,
|
|
569
|
+
IS_ALLOWED_URI: Ke,
|
|
570
|
+
IS_SCRIPT_OR_DATA: ii,
|
|
571
|
+
ATTR_WHITESPACE: oi,
|
|
572
|
+
DOCTYPE_NAME: Ze,
|
|
573
|
+
CUSTOM_ELEMENT: ri
|
|
574
|
+
});
|
|
575
|
+
const mt = {
|
|
576
|
+
element: 1,
|
|
577
|
+
text: 3,
|
|
578
|
+
// Deprecated
|
|
579
|
+
progressingInstruction: 7,
|
|
580
|
+
comment: 8,
|
|
581
|
+
document: 9
|
|
582
|
+
}, si = function() {
|
|
583
|
+
return typeof window > "u" ? null : window;
|
|
584
|
+
}, ai = function(t, i) {
|
|
585
|
+
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
586
|
+
return null;
|
|
587
|
+
let o = null;
|
|
588
|
+
const r = "data-tt-policy-suffix";
|
|
589
|
+
i && i.hasAttribute(r) && (o = i.getAttribute(r));
|
|
590
|
+
const c = "dompurify" + (o ? "#" + o : "");
|
|
591
|
+
try {
|
|
592
|
+
return t.createPolicy(c, {
|
|
593
|
+
createHTML(d) {
|
|
594
|
+
return d;
|
|
595
|
+
},
|
|
596
|
+
createScriptURL(d) {
|
|
597
|
+
return d;
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
} catch {
|
|
601
|
+
return console.warn("TrustedTypes policy " + c + " could not be created."), null;
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
function Je() {
|
|
605
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : si();
|
|
606
|
+
const t = (l) => Je(l);
|
|
607
|
+
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== mt.document)
|
|
608
|
+
return t.isSupported = !1, t;
|
|
609
|
+
let {
|
|
610
|
+
document: i
|
|
611
|
+
} = e;
|
|
612
|
+
const o = i, r = o.currentScript, {
|
|
613
|
+
DocumentFragment: c,
|
|
614
|
+
HTMLTemplateElement: d,
|
|
615
|
+
Node: f,
|
|
616
|
+
Element: _,
|
|
617
|
+
NodeFilter: m,
|
|
618
|
+
NamedNodeMap: w = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
619
|
+
HTMLFormElement: L,
|
|
620
|
+
DOMParser: y,
|
|
621
|
+
trustedTypes: F
|
|
622
|
+
} = e, k = _.prototype, Dt = ft(k, "cloneNode"), It = ft(k, "remove"), p = ft(k, "nextSibling"), M = ft(k, "childNodes"), G = ft(k, "parentNode");
|
|
623
|
+
if (typeof d == "function") {
|
|
624
|
+
const l = i.createElement("template");
|
|
625
|
+
l.content && l.content.ownerDocument && (i = l.content.ownerDocument);
|
|
626
|
+
}
|
|
627
|
+
let b, V = "";
|
|
628
|
+
const {
|
|
629
|
+
implementation: _t,
|
|
630
|
+
createNodeIterator: gt,
|
|
631
|
+
createDocumentFragment: Qe,
|
|
632
|
+
getElementsByTagName: tn
|
|
633
|
+
} = i, {
|
|
634
|
+
importNode: en
|
|
635
|
+
} = o;
|
|
636
|
+
let P = {};
|
|
637
|
+
t.isSupported = typeof Xe == "function" && typeof G == "function" && _t && _t.createHTMLDocument !== void 0;
|
|
638
|
+
const {
|
|
639
|
+
MUSTACHE_EXPR: Mt,
|
|
640
|
+
ERB_EXPR: xt,
|
|
641
|
+
TMPLIT_EXPR: kt,
|
|
642
|
+
DATA_ATTR: nn,
|
|
643
|
+
ARIA_ATTR: on,
|
|
644
|
+
IS_SCRIPT_OR_DATA: rn,
|
|
645
|
+
ATTR_WHITESPACE: oe,
|
|
646
|
+
CUSTOM_ELEMENT: sn
|
|
647
|
+
} = ze;
|
|
648
|
+
let {
|
|
649
|
+
IS_ALLOWED_URI: re
|
|
650
|
+
} = ze, E = null;
|
|
651
|
+
const se = u({}, [...Ue, ...Xt, ...qt, ...Kt, ...Fe]);
|
|
652
|
+
let T = null;
|
|
653
|
+
const ae = u({}, [...He, ...Zt, ...Be, ...wt]);
|
|
654
|
+
let g = Object.seal(qe(null, {
|
|
655
|
+
tagNameCheck: {
|
|
656
|
+
writable: !0,
|
|
657
|
+
configurable: !1,
|
|
658
|
+
enumerable: !0,
|
|
659
|
+
value: null
|
|
660
|
+
},
|
|
661
|
+
attributeNameCheck: {
|
|
662
|
+
writable: !0,
|
|
663
|
+
configurable: !1,
|
|
664
|
+
enumerable: !0,
|
|
665
|
+
value: null
|
|
666
|
+
},
|
|
667
|
+
allowCustomizedBuiltInElements: {
|
|
668
|
+
writable: !0,
|
|
669
|
+
configurable: !1,
|
|
670
|
+
enumerable: !0,
|
|
671
|
+
value: !1
|
|
672
|
+
}
|
|
673
|
+
})), ot = null, Pt = null, le = !0, vt = !0, ce = !1, ue = !0, X = !1, Ut = !0, j = !1, Ft = !1, Ht = !1, q = !1, Et = !1, Tt = !1, fe = !0, me = !1;
|
|
674
|
+
const an = "user-content-";
|
|
675
|
+
let Bt = !0, rt = !1, K = {}, Z = null;
|
|
676
|
+
const de = u({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
677
|
+
let he = null;
|
|
678
|
+
const pe = u({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
679
|
+
let zt = null;
|
|
680
|
+
const _e = u({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), At = "http://www.w3.org/1998/Math/MathML", bt = "http://www.w3.org/2000/svg", H = "http://www.w3.org/1999/xhtml";
|
|
681
|
+
let J = H, Gt = !1, Wt = null;
|
|
682
|
+
const ln = u({}, [At, bt, H], Vt);
|
|
683
|
+
let st = null;
|
|
684
|
+
const cn = ["application/xhtml+xml", "text/html"], un = "text/html";
|
|
685
|
+
let A = null, Q = null;
|
|
686
|
+
const fn = i.createElement("form"), ge = function(n) {
|
|
687
|
+
return n instanceof RegExp || n instanceof Function;
|
|
688
|
+
}, jt = function() {
|
|
689
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
690
|
+
if (!(Q && Q === n)) {
|
|
691
|
+
if ((!n || typeof n != "object") && (n = {}), n = Y(n), st = // eslint-disable-next-line unicorn/prefer-includes
|
|
692
|
+
cn.indexOf(n.PARSER_MEDIA_TYPE) === -1 ? un : n.PARSER_MEDIA_TYPE, A = st === "application/xhtml+xml" ? Vt : Rt, E = x(n, "ALLOWED_TAGS") ? u({}, n.ALLOWED_TAGS, A) : se, T = x(n, "ALLOWED_ATTR") ? u({}, n.ALLOWED_ATTR, A) : ae, Wt = x(n, "ALLOWED_NAMESPACES") ? u({}, n.ALLOWED_NAMESPACES, Vt) : ln, zt = x(n, "ADD_URI_SAFE_ATTR") ? u(
|
|
693
|
+
Y(_e),
|
|
694
|
+
// eslint-disable-line indent
|
|
695
|
+
n.ADD_URI_SAFE_ATTR,
|
|
696
|
+
// eslint-disable-line indent
|
|
697
|
+
A
|
|
698
|
+
// eslint-disable-line indent
|
|
699
|
+
) : _e, he = x(n, "ADD_DATA_URI_TAGS") ? u(
|
|
700
|
+
Y(pe),
|
|
701
|
+
// eslint-disable-line indent
|
|
702
|
+
n.ADD_DATA_URI_TAGS,
|
|
703
|
+
// eslint-disable-line indent
|
|
704
|
+
A
|
|
705
|
+
// eslint-disable-line indent
|
|
706
|
+
) : pe, Z = x(n, "FORBID_CONTENTS") ? u({}, n.FORBID_CONTENTS, A) : de, ot = x(n, "FORBID_TAGS") ? u({}, n.FORBID_TAGS, A) : {}, Pt = x(n, "FORBID_ATTR") ? u({}, n.FORBID_ATTR, A) : {}, K = x(n, "USE_PROFILES") ? n.USE_PROFILES : !1, le = n.ALLOW_ARIA_ATTR !== !1, vt = n.ALLOW_DATA_ATTR !== !1, ce = n.ALLOW_UNKNOWN_PROTOCOLS || !1, ue = n.ALLOW_SELF_CLOSE_IN_ATTR !== !1, X = n.SAFE_FOR_TEMPLATES || !1, Ut = n.SAFE_FOR_XML !== !1, j = n.WHOLE_DOCUMENT || !1, q = n.RETURN_DOM || !1, Et = n.RETURN_DOM_FRAGMENT || !1, Tt = n.RETURN_TRUSTED_TYPE || !1, Ht = n.FORCE_BODY || !1, fe = n.SANITIZE_DOM !== !1, me = n.SANITIZE_NAMED_PROPS || !1, Bt = n.KEEP_CONTENT !== !1, rt = n.IN_PLACE || !1, re = n.ALLOWED_URI_REGEXP || Ke, J = n.NAMESPACE || H, g = n.CUSTOM_ELEMENT_HANDLING || {}, n.CUSTOM_ELEMENT_HANDLING && ge(n.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (g.tagNameCheck = n.CUSTOM_ELEMENT_HANDLING.tagNameCheck), n.CUSTOM_ELEMENT_HANDLING && ge(n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (g.attributeNameCheck = n.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), n.CUSTOM_ELEMENT_HANDLING && typeof n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (g.allowCustomizedBuiltInElements = n.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), X && (vt = !1), Et && (q = !0), K && (E = u({}, Fe), T = [], K.html === !0 && (u(E, Ue), u(T, He)), K.svg === !0 && (u(E, Xt), u(T, Zt), u(T, wt)), K.svgFilters === !0 && (u(E, qt), u(T, Zt), u(T, wt)), K.mathMl === !0 && (u(E, Kt), u(T, Be), u(T, wt))), n.ADD_TAGS && (E === se && (E = Y(E)), u(E, n.ADD_TAGS, A)), n.ADD_ATTR && (T === ae && (T = Y(T)), u(T, n.ADD_ATTR, A)), n.ADD_URI_SAFE_ATTR && u(zt, n.ADD_URI_SAFE_ATTR, A), n.FORBID_CONTENTS && (Z === de && (Z = Y(Z)), u(Z, n.FORBID_CONTENTS, A)), Bt && (E["#text"] = !0), j && u(E, ["html", "head", "body"]), E.table && (u(E, ["tbody"]), delete ot.tbody), n.TRUSTED_TYPES_POLICY) {
|
|
707
|
+
if (typeof n.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
708
|
+
throw ut('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
709
|
+
if (typeof n.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
710
|
+
throw ut('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
711
|
+
b = n.TRUSTED_TYPES_POLICY, V = b.createHTML("");
|
|
712
|
+
} else
|
|
713
|
+
b === void 0 && (b = ai(F, r)), b !== null && typeof V == "string" && (V = b.createHTML(""));
|
|
714
|
+
N && N(n), Q = n;
|
|
715
|
+
}
|
|
716
|
+
}, Ee = u({}, ["mi", "mo", "mn", "ms", "mtext"]), Te = u({}, ["foreignobject", "annotation-xml"]), mn = u({}, ["title", "style", "font", "a", "script"]), Ae = u({}, [...Xt, ...qt, ...Kn]), be = u({}, [...Kt, ...Zn]), dn = function(n) {
|
|
717
|
+
let s = G(n);
|
|
718
|
+
(!s || !s.tagName) && (s = {
|
|
719
|
+
namespaceURI: J,
|
|
720
|
+
tagName: "template"
|
|
721
|
+
});
|
|
722
|
+
const a = Rt(n.tagName), h = Rt(s.tagName);
|
|
723
|
+
return Wt[n.namespaceURI] ? n.namespaceURI === bt ? s.namespaceURI === H ? a === "svg" : s.namespaceURI === At ? a === "svg" && (h === "annotation-xml" || Ee[h]) : !!Ae[a] : n.namespaceURI === At ? s.namespaceURI === H ? a === "math" : s.namespaceURI === bt ? a === "math" && Te[h] : !!be[a] : n.namespaceURI === H ? s.namespaceURI === bt && !Te[h] || s.namespaceURI === At && !Ee[h] ? !1 : !be[a] && (mn[a] || !Ae[a]) : !!(st === "application/xhtml+xml" && Wt[n.namespaceURI]) : !1;
|
|
724
|
+
}, v = function(n) {
|
|
725
|
+
lt(t.removed, {
|
|
726
|
+
element: n
|
|
727
|
+
});
|
|
728
|
+
try {
|
|
729
|
+
G(n).removeChild(n);
|
|
730
|
+
} catch {
|
|
731
|
+
It(n);
|
|
732
|
+
}
|
|
733
|
+
}, St = function(n, s) {
|
|
734
|
+
try {
|
|
735
|
+
lt(t.removed, {
|
|
736
|
+
attribute: s.getAttributeNode(n),
|
|
737
|
+
from: s
|
|
738
|
+
});
|
|
739
|
+
} catch {
|
|
740
|
+
lt(t.removed, {
|
|
741
|
+
attribute: null,
|
|
742
|
+
from: s
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
if (s.removeAttribute(n), n === "is" && !T[n])
|
|
746
|
+
if (q || Et)
|
|
747
|
+
try {
|
|
748
|
+
v(s);
|
|
749
|
+
} catch {
|
|
750
|
+
}
|
|
751
|
+
else
|
|
752
|
+
try {
|
|
753
|
+
s.setAttribute(n, "");
|
|
754
|
+
} catch {
|
|
755
|
+
}
|
|
756
|
+
}, Se = function(n) {
|
|
757
|
+
let s = null, a = null;
|
|
758
|
+
if (Ht)
|
|
759
|
+
n = "<remove></remove>" + n;
|
|
760
|
+
else {
|
|
761
|
+
const S = ve(n, /^[\r\n\t ]+/);
|
|
762
|
+
a = S && S[0];
|
|
763
|
+
}
|
|
764
|
+
st === "application/xhtml+xml" && J === H && (n = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + n + "</body></html>");
|
|
765
|
+
const h = b ? b.createHTML(n) : n;
|
|
766
|
+
if (J === H)
|
|
767
|
+
try {
|
|
768
|
+
s = new y().parseFromString(h, st);
|
|
769
|
+
} catch {
|
|
770
|
+
}
|
|
771
|
+
if (!s || !s.documentElement) {
|
|
772
|
+
s = _t.createDocument(J, "template", null);
|
|
773
|
+
try {
|
|
774
|
+
s.documentElement.innerHTML = Gt ? V : h;
|
|
775
|
+
} catch {
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
const $ = s.body || s.documentElement;
|
|
779
|
+
return n && a && $.insertBefore(i.createTextNode(a), $.childNodes[0] || null), J === H ? tn.call(s, j ? "html" : "body")[0] : j ? s.documentElement : $;
|
|
780
|
+
}, ye = function(n) {
|
|
781
|
+
return gt.call(
|
|
782
|
+
n.ownerDocument || n,
|
|
783
|
+
n,
|
|
784
|
+
// eslint-disable-next-line no-bitwise
|
|
785
|
+
m.SHOW_ELEMENT | m.SHOW_COMMENT | m.SHOW_TEXT | m.SHOW_PROCESSING_INSTRUCTION | m.SHOW_CDATA_SECTION,
|
|
786
|
+
null
|
|
787
|
+
);
|
|
788
|
+
}, $e = function(n) {
|
|
789
|
+
return n instanceof L && (typeof n.nodeName != "string" || typeof n.textContent != "string" || typeof n.removeChild != "function" || !(n.attributes instanceof w) || typeof n.removeAttribute != "function" || typeof n.setAttribute != "function" || typeof n.namespaceURI != "string" || typeof n.insertBefore != "function" || typeof n.hasChildNodes != "function");
|
|
790
|
+
}, we = function(n) {
|
|
791
|
+
return typeof f == "function" && n instanceof f;
|
|
792
|
+
}, B = function(n, s, a) {
|
|
793
|
+
P[n] && $t(P[n], (h) => {
|
|
794
|
+
h.call(t, s, a, Q);
|
|
795
|
+
});
|
|
796
|
+
}, Le = function(n) {
|
|
797
|
+
let s = null;
|
|
798
|
+
if (B("beforeSanitizeElements", n, null), $e(n))
|
|
799
|
+
return v(n), !0;
|
|
800
|
+
const a = A(n.nodeName);
|
|
801
|
+
if (B("uponSanitizeElement", n, {
|
|
802
|
+
tagName: a,
|
|
803
|
+
allowedTags: E
|
|
804
|
+
}), n.hasChildNodes() && !we(n.firstElementChild) && O(/<[/\w]/g, n.innerHTML) && O(/<[/\w]/g, n.textContent) || n.nodeType === mt.progressingInstruction || Ut && n.nodeType === mt.comment && O(/<[/\w]/g, n.data))
|
|
805
|
+
return v(n), !0;
|
|
806
|
+
if (!E[a] || ot[a]) {
|
|
807
|
+
if (!ot[a] && Oe(a) && (g.tagNameCheck instanceof RegExp && O(g.tagNameCheck, a) || g.tagNameCheck instanceof Function && g.tagNameCheck(a)))
|
|
808
|
+
return !1;
|
|
809
|
+
if (Bt && !Z[a]) {
|
|
810
|
+
const h = G(n) || n.parentNode, $ = M(n) || n.childNodes;
|
|
811
|
+
if ($ && h) {
|
|
812
|
+
const S = $.length;
|
|
813
|
+
for (let C = S - 1; C >= 0; --C) {
|
|
814
|
+
const U = Dt($[C], !0);
|
|
815
|
+
U.__removalCount = (n.__removalCount || 0) + 1, h.insertBefore(U, p(n));
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
return v(n), !0;
|
|
820
|
+
}
|
|
821
|
+
return n instanceof _ && !dn(n) || (a === "noscript" || a === "noembed" || a === "noframes") && O(/<\/no(script|embed|frames)/i, n.innerHTML) ? (v(n), !0) : (X && n.nodeType === mt.text && (s = n.textContent, $t([Mt, xt, kt], (h) => {
|
|
822
|
+
s = ct(s, h, " ");
|
|
823
|
+
}), n.textContent !== s && (lt(t.removed, {
|
|
824
|
+
element: n.cloneNode()
|
|
825
|
+
}), n.textContent = s)), B("afterSanitizeElements", n, null), !1);
|
|
826
|
+
}, Re = function(n, s, a) {
|
|
827
|
+
if (fe && (s === "id" || s === "name") && (a in i || a in fn))
|
|
828
|
+
return !1;
|
|
829
|
+
if (!(vt && !Pt[s] && O(nn, s))) {
|
|
830
|
+
if (!(le && O(on, s))) {
|
|
831
|
+
if (!T[s] || Pt[s]) {
|
|
832
|
+
if (
|
|
833
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
834
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
835
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
836
|
+
!(Oe(n) && (g.tagNameCheck instanceof RegExp && O(g.tagNameCheck, n) || g.tagNameCheck instanceof Function && g.tagNameCheck(n)) && (g.attributeNameCheck instanceof RegExp && O(g.attributeNameCheck, s) || g.attributeNameCheck instanceof Function && g.attributeNameCheck(s)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
837
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
838
|
+
s === "is" && g.allowCustomizedBuiltInElements && (g.tagNameCheck instanceof RegExp && O(g.tagNameCheck, a) || g.tagNameCheck instanceof Function && g.tagNameCheck(a)))
|
|
839
|
+
)
|
|
840
|
+
return !1;
|
|
841
|
+
} else if (!zt[s]) {
|
|
842
|
+
if (!O(re, ct(a, oe, ""))) {
|
|
843
|
+
if (!((s === "src" || s === "xlink:href" || s === "href") && n !== "script" && Yn(a, "data:") === 0 && he[n])) {
|
|
844
|
+
if (!(ce && !O(rn, ct(a, oe, "")))) {
|
|
845
|
+
if (a)
|
|
846
|
+
return !1;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
return !0;
|
|
854
|
+
}, Oe = function(n) {
|
|
855
|
+
return n !== "annotation-xml" && ve(n, sn);
|
|
856
|
+
}, Ne = function(n) {
|
|
857
|
+
B("beforeSanitizeAttributes", n, null);
|
|
858
|
+
const {
|
|
859
|
+
attributes: s
|
|
860
|
+
} = n;
|
|
861
|
+
if (!s)
|
|
862
|
+
return;
|
|
863
|
+
const a = {
|
|
864
|
+
attrName: "",
|
|
865
|
+
attrValue: "",
|
|
866
|
+
keepAttr: !0,
|
|
867
|
+
allowedAttributes: T
|
|
868
|
+
};
|
|
869
|
+
let h = s.length;
|
|
870
|
+
for (; h--; ) {
|
|
871
|
+
const $ = s[h], {
|
|
872
|
+
name: S,
|
|
873
|
+
namespaceURI: C,
|
|
874
|
+
value: U
|
|
875
|
+
} = $, at = A(S);
|
|
876
|
+
let R = S === "value" ? U : Vn(U);
|
|
877
|
+
if (a.attrName = at, a.attrValue = R, a.keepAttr = !0, a.forceKeepAttr = void 0, B("uponSanitizeAttribute", n, a), R = a.attrValue, Ut && O(/((--!?|])>)|<\/(style|title)/i, R)) {
|
|
878
|
+
St(S, n);
|
|
879
|
+
continue;
|
|
880
|
+
}
|
|
881
|
+
if (a.forceKeepAttr || (St(S, n), !a.keepAttr))
|
|
882
|
+
continue;
|
|
883
|
+
if (!ue && O(/\/>/i, R)) {
|
|
884
|
+
St(S, n);
|
|
885
|
+
continue;
|
|
886
|
+
}
|
|
887
|
+
X && $t([Mt, xt, kt], (De) => {
|
|
888
|
+
R = ct(R, De, " ");
|
|
889
|
+
});
|
|
890
|
+
const Ce = A(n.nodeName);
|
|
891
|
+
if (Re(Ce, at, R)) {
|
|
892
|
+
if (me && (at === "id" || at === "name") && (St(S, n), R = an + R), b && typeof F == "object" && typeof F.getAttributeType == "function" && !C)
|
|
893
|
+
switch (F.getAttributeType(Ce, at)) {
|
|
894
|
+
case "TrustedHTML": {
|
|
895
|
+
R = b.createHTML(R);
|
|
896
|
+
break;
|
|
897
|
+
}
|
|
898
|
+
case "TrustedScriptURL": {
|
|
899
|
+
R = b.createScriptURL(R);
|
|
900
|
+
break;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
try {
|
|
904
|
+
C ? n.setAttributeNS(C, S, R) : n.setAttribute(S, R), $e(n) ? v(n) : Pe(t.removed);
|
|
905
|
+
} catch {
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
B("afterSanitizeAttributes", n, null);
|
|
910
|
+
}, hn = function l(n) {
|
|
911
|
+
let s = null;
|
|
912
|
+
const a = ye(n);
|
|
913
|
+
for (B("beforeSanitizeShadowDOM", n, null); s = a.nextNode(); )
|
|
914
|
+
B("uponSanitizeShadowNode", s, null), !Le(s) && (s.content instanceof c && l(s.content), Ne(s));
|
|
915
|
+
B("afterSanitizeShadowDOM", n, null);
|
|
916
|
+
};
|
|
917
|
+
return t.sanitize = function(l) {
|
|
918
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, a = null, h = null, $ = null;
|
|
919
|
+
if (Gt = !l, Gt && (l = "<!-->"), typeof l != "string" && !we(l))
|
|
920
|
+
if (typeof l.toString == "function") {
|
|
921
|
+
if (l = l.toString(), typeof l != "string")
|
|
922
|
+
throw ut("dirty is not a string, aborting");
|
|
923
|
+
} else
|
|
924
|
+
throw ut("toString is not a function");
|
|
925
|
+
if (!t.isSupported)
|
|
926
|
+
return l;
|
|
927
|
+
if (Ft || jt(n), t.removed = [], typeof l == "string" && (rt = !1), rt) {
|
|
928
|
+
if (l.nodeName) {
|
|
929
|
+
const U = A(l.nodeName);
|
|
930
|
+
if (!E[U] || ot[U])
|
|
931
|
+
throw ut("root node is forbidden and cannot be sanitized in-place");
|
|
932
|
+
}
|
|
933
|
+
} else if (l instanceof f)
|
|
934
|
+
s = Se("<!---->"), a = s.ownerDocument.importNode(l, !0), a.nodeType === mt.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? s = a : s.appendChild(a);
|
|
935
|
+
else {
|
|
936
|
+
if (!q && !X && !j && // eslint-disable-next-line unicorn/prefer-includes
|
|
937
|
+
l.indexOf("<") === -1)
|
|
938
|
+
return b && Tt ? b.createHTML(l) : l;
|
|
939
|
+
if (s = Se(l), !s)
|
|
940
|
+
return q ? null : Tt ? V : "";
|
|
941
|
+
}
|
|
942
|
+
s && Ht && v(s.firstChild);
|
|
943
|
+
const S = ye(rt ? l : s);
|
|
944
|
+
for (; h = S.nextNode(); )
|
|
945
|
+
Le(h) || (h.content instanceof c && hn(h.content), Ne(h));
|
|
946
|
+
if (rt)
|
|
947
|
+
return l;
|
|
948
|
+
if (q) {
|
|
949
|
+
if (Et)
|
|
950
|
+
for ($ = Qe.call(s.ownerDocument); s.firstChild; )
|
|
951
|
+
$.appendChild(s.firstChild);
|
|
952
|
+
else
|
|
953
|
+
$ = s;
|
|
954
|
+
return (T.shadowroot || T.shadowrootmode) && ($ = en.call(o, $, !0)), $;
|
|
955
|
+
}
|
|
956
|
+
let C = j ? s.outerHTML : s.innerHTML;
|
|
957
|
+
return j && E["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && O(Ze, s.ownerDocument.doctype.name) && (C = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
|
|
958
|
+
` + C), X && $t([Mt, xt, kt], (U) => {
|
|
959
|
+
C = ct(C, U, " ");
|
|
960
|
+
}), b && Tt ? b.createHTML(C) : C;
|
|
961
|
+
}, t.setConfig = function() {
|
|
962
|
+
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
963
|
+
jt(l), Ft = !0;
|
|
964
|
+
}, t.clearConfig = function() {
|
|
965
|
+
Q = null, Ft = !1;
|
|
966
|
+
}, t.isValidAttribute = function(l, n, s) {
|
|
967
|
+
Q || jt({});
|
|
968
|
+
const a = A(l), h = A(n);
|
|
969
|
+
return Re(a, h, s);
|
|
970
|
+
}, t.addHook = function(l, n) {
|
|
971
|
+
typeof n == "function" && (P[l] = P[l] || [], lt(P[l], n));
|
|
972
|
+
}, t.removeHook = function(l) {
|
|
973
|
+
if (P[l])
|
|
974
|
+
return Pe(P[l]);
|
|
975
|
+
}, t.removeHooks = function(l) {
|
|
976
|
+
P[l] && (P[l] = []);
|
|
977
|
+
}, t.removeAllHooks = function() {
|
|
978
|
+
P = {};
|
|
979
|
+
}, t;
|
|
980
|
+
}
|
|
981
|
+
var li = Je();
|
|
982
|
+
function ci(e) {
|
|
983
|
+
En(e, "svelte-88v9np", ".InlineSvgContainer{display:inline-flex}");
|
|
984
|
+
}
|
|
985
|
+
function Ge(e) {
|
|
986
|
+
let t, i;
|
|
987
|
+
return {
|
|
988
|
+
c() {
|
|
989
|
+
t = Ct("img"), Me(t.src, i = /*src*/
|
|
990
|
+
e[0]) || z(t, "src", i), z(
|
|
991
|
+
t,
|
|
992
|
+
"class",
|
|
993
|
+
/*className*/
|
|
994
|
+
e[1]
|
|
995
|
+
), z(
|
|
996
|
+
t,
|
|
997
|
+
"alt",
|
|
998
|
+
/*ariaLabel*/
|
|
999
|
+
e[2]
|
|
1000
|
+
);
|
|
1001
|
+
},
|
|
1002
|
+
m(o, r) {
|
|
1003
|
+
ie(o, t, r);
|
|
1004
|
+
},
|
|
1005
|
+
p(o, r) {
|
|
1006
|
+
r & /*src*/
|
|
1007
|
+
1 && !Me(t.src, i = /*src*/
|
|
1008
|
+
o[0]) && z(t, "src", i), r & /*className*/
|
|
1009
|
+
2 && z(
|
|
1010
|
+
t,
|
|
1011
|
+
"class",
|
|
1012
|
+
/*className*/
|
|
1013
|
+
o[1]
|
|
1014
|
+
), r & /*ariaLabel*/
|
|
1015
|
+
4 && z(
|
|
1016
|
+
t,
|
|
1017
|
+
"alt",
|
|
1018
|
+
/*ariaLabel*/
|
|
1019
|
+
o[2]
|
|
1020
|
+
);
|
|
1021
|
+
},
|
|
1022
|
+
d(o) {
|
|
1023
|
+
o && Nt(t);
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1027
|
+
function ui(e) {
|
|
1028
|
+
let t, i = (
|
|
1029
|
+
/*failed*/
|
|
1030
|
+
e[4] && Ge(e)
|
|
1031
|
+
);
|
|
1032
|
+
return {
|
|
1033
|
+
c() {
|
|
1034
|
+
t = Ct("span"), i && i.c(), z(t, "class", "InlineSvgContainer"), z(t, "part", "svg-container");
|
|
1035
|
+
},
|
|
1036
|
+
m(o, r) {
|
|
1037
|
+
ie(o, t, r), i && i.m(t, null), e[8](t);
|
|
1038
|
+
},
|
|
1039
|
+
p(o, [r]) {
|
|
1040
|
+
/*failed*/
|
|
1041
|
+
o[4] ? i ? i.p(o, r) : (i = Ge(o), i.c(), i.m(t, null)) : i && (i.d(1), i = null);
|
|
1042
|
+
},
|
|
1043
|
+
i: ht,
|
|
1044
|
+
o: ht,
|
|
1045
|
+
d(o) {
|
|
1046
|
+
o && Nt(t), i && i.d(), e[8](null);
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
function fi(e, t, i) {
|
|
1051
|
+
let { src: o } = t, { className: r = "" } = t, { ariaLabel: c = "" } = t, { clientstyling: d = "" } = t, { clientstylingurl: f = "" } = t, { mbsource: _ } = t, m = !1, w = null, L, y, F;
|
|
1052
|
+
async function k(p) {
|
|
1053
|
+
if (p) {
|
|
1054
|
+
if (i(4, m = !1), L?.abort(), L = new AbortController(), !p.toLowerCase().endsWith(".svg")) {
|
|
1055
|
+
i(4, m = !0);
|
|
1056
|
+
return;
|
|
1057
|
+
}
|
|
1058
|
+
try {
|
|
1059
|
+
const M = await fetch(p, { signal: L.signal });
|
|
1060
|
+
if (!M.ok)
|
|
1061
|
+
throw new Error("Fetch failed");
|
|
1062
|
+
const G = await M.text(), b = li.sanitize(G, {
|
|
1063
|
+
USE_PROFILES: { svg: !0, svgFilters: !0 },
|
|
1064
|
+
FORBID_TAGS: ["foreignObject"],
|
|
1065
|
+
FORBID_ATTR: ["onload", "onerror", "onclick", "onmouseover"]
|
|
1066
|
+
}), gt = new DOMParser().parseFromString(b, "image/svg+xml").querySelector("svg");
|
|
1067
|
+
if (!gt)
|
|
1068
|
+
throw new Error("No SVG element found");
|
|
1069
|
+
if (w = gt, c ? (w.setAttribute("role", "img"), w.setAttribute("aria-label", c)) : w.setAttribute("aria-hidden", "true"), w.setAttribute("part", "svg-icon"), !y)
|
|
1070
|
+
return;
|
|
1071
|
+
y.replaceChildren(w);
|
|
1072
|
+
} catch (M) {
|
|
1073
|
+
if (M.name === "AbortError")
|
|
1074
|
+
return;
|
|
1075
|
+
console.error("Inline SVG error:", M), i(4, m = !0);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
function Dt(p) {
|
|
1080
|
+
if (!w)
|
|
1081
|
+
return;
|
|
1082
|
+
const M = p?.trim() ?? "", G = w.getAttribute("class") ?? "";
|
|
1083
|
+
M !== G && (M ? w.setAttribute("class", M) : w.removeAttribute("class"));
|
|
1084
|
+
}
|
|
1085
|
+
yn(() => () => {
|
|
1086
|
+
}), $n(() => {
|
|
1087
|
+
L?.abort();
|
|
1088
|
+
});
|
|
1089
|
+
function It(p) {
|
|
1090
|
+
Jt[p ? "unshift" : "push"](() => {
|
|
1091
|
+
y = p, i(3, y);
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
return e.$$set = (p) => {
|
|
1095
|
+
"src" in p && i(0, o = p.src), "className" in p && i(1, r = p.className), "ariaLabel" in p && i(2, c = p.ariaLabel), "clientstyling" in p && i(5, d = p.clientstyling), "clientstylingurl" in p && i(6, f = p.clientstylingurl), "mbsource" in p && i(7, _ = p.mbsource);
|
|
1096
|
+
}, e.$$.update = () => {
|
|
1097
|
+
e.$$.dirty & /*src*/
|
|
1098
|
+
1 && o && k(o), e.$$.dirty & /*className*/
|
|
1099
|
+
2 && Dt(r), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
1100
|
+
40 && d && y && Un(y, d), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
1101
|
+
72 && f && y && Fn(y, f), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
1102
|
+
136 && _ && y && Hn(y, `${_}.Style`, F);
|
|
1103
|
+
}, [
|
|
1104
|
+
o,
|
|
1105
|
+
r,
|
|
1106
|
+
c,
|
|
1107
|
+
y,
|
|
1108
|
+
m,
|
|
1109
|
+
d,
|
|
1110
|
+
f,
|
|
1111
|
+
_,
|
|
1112
|
+
It
|
|
1113
|
+
];
|
|
1114
|
+
}
|
|
1115
|
+
class mi extends Pn {
|
|
1116
|
+
constructor(t) {
|
|
1117
|
+
super(), xn(
|
|
1118
|
+
this,
|
|
1119
|
+
t,
|
|
1120
|
+
fi,
|
|
1121
|
+
ui,
|
|
1122
|
+
pn,
|
|
1123
|
+
{
|
|
1124
|
+
src: 0,
|
|
1125
|
+
className: 1,
|
|
1126
|
+
ariaLabel: 2,
|
|
1127
|
+
clientstyling: 5,
|
|
1128
|
+
clientstylingurl: 6,
|
|
1129
|
+
mbsource: 7
|
|
1130
|
+
},
|
|
1131
|
+
ci
|
|
1132
|
+
);
|
|
1133
|
+
}
|
|
1134
|
+
get src() {
|
|
1135
|
+
return this.$$.ctx[0];
|
|
1136
|
+
}
|
|
1137
|
+
set src(t) {
|
|
1138
|
+
this.$$set({ src: t }), W();
|
|
1139
|
+
}
|
|
1140
|
+
get className() {
|
|
1141
|
+
return this.$$.ctx[1];
|
|
1142
|
+
}
|
|
1143
|
+
set className(t) {
|
|
1144
|
+
this.$$set({ className: t }), W();
|
|
1145
|
+
}
|
|
1146
|
+
get ariaLabel() {
|
|
1147
|
+
return this.$$.ctx[2];
|
|
1148
|
+
}
|
|
1149
|
+
set ariaLabel(t) {
|
|
1150
|
+
this.$$set({ ariaLabel: t }), W();
|
|
1151
|
+
}
|
|
1152
|
+
get clientstyling() {
|
|
1153
|
+
return this.$$.ctx[5];
|
|
1154
|
+
}
|
|
1155
|
+
set clientstyling(t) {
|
|
1156
|
+
this.$$set({ clientstyling: t }), W();
|
|
1157
|
+
}
|
|
1158
|
+
get clientstylingurl() {
|
|
1159
|
+
return this.$$.ctx[6];
|
|
1160
|
+
}
|
|
1161
|
+
set clientstylingurl(t) {
|
|
1162
|
+
this.$$set({ clientstylingurl: t }), W();
|
|
1163
|
+
}
|
|
1164
|
+
get mbsource() {
|
|
1165
|
+
return this.$$.ctx[7];
|
|
1166
|
+
}
|
|
1167
|
+
set mbsource(t) {
|
|
1168
|
+
this.$$set({ mbsource: t }), W();
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
kn(mi, { src: {}, className: {}, ariaLabel: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
1172
|
+
export {
|
|
1173
|
+
mi as S
|
|
1174
|
+
};
|