@konemono/nostr-share-component 0.0.14 → 0.0.16
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.
|
@@ -0,0 +1,1905 @@
|
|
|
1
|
+
var ur = Object.defineProperty;
|
|
2
|
+
var ce = (t) => {
|
|
3
|
+
throw TypeError(t);
|
|
4
|
+
};
|
|
5
|
+
var fr = (t, e, r) => e in t ? ur(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
+
var O = (t, e, r) => fr(t, typeof e != "symbol" ? e + "" : e, r), ve = (t, e, r) => e.has(t) || ce("Cannot " + r);
|
|
7
|
+
var S = (t, e, r) => (ve(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Yt = (t, e, r) => e.has(t) ? ce("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Ut = (t, e, r, n) => (ve(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
|
|
8
|
+
const cr = "5";
|
|
9
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cr);
|
|
10
|
+
const vr = 1, hr = 2, dr = 16, _r = 8, pr = 1, gr = 2, be = "[", ee = "[!", re = "]", it = {}, $r = Symbol(), mr = ["touchstart", "touchmove"];
|
|
11
|
+
function br(t) {
|
|
12
|
+
return mr.includes(t);
|
|
13
|
+
}
|
|
14
|
+
const we = !1;
|
|
15
|
+
var ye = Array.isArray, ne = Array.from, St = Object.keys, Ct = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, wr = Object.getOwnPropertyDescriptors, yr = Object.getPrototypeOf;
|
|
16
|
+
function xr(t) {
|
|
17
|
+
for (var e = 0; e < t.length; e++)
|
|
18
|
+
t[e]();
|
|
19
|
+
}
|
|
20
|
+
const M = 2, xe = 4, It = 8, le = 16, H = 32, vt = 64, Kt = 128, ht = 256, At = 512, N = 1024, J = 2048, mt = 4096, z = 8192, dt = 16384, Er = 32768, se = 65536, kr = 1 << 19, Ee = 1 << 20, Tr = Symbol("$state"), ke = Symbol("legacy props"), Sr = Symbol("");
|
|
21
|
+
function Te(t) {
|
|
22
|
+
return t === this.v;
|
|
23
|
+
}
|
|
24
|
+
function Cr(t, e) {
|
|
25
|
+
return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
|
|
26
|
+
}
|
|
27
|
+
function Nr(t) {
|
|
28
|
+
return !Cr(t, this.v);
|
|
29
|
+
}
|
|
30
|
+
function Ar() {
|
|
31
|
+
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
32
|
+
}
|
|
33
|
+
function Rr() {
|
|
34
|
+
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
35
|
+
}
|
|
36
|
+
function Or(t) {
|
|
37
|
+
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
38
|
+
}
|
|
39
|
+
function qr() {
|
|
40
|
+
throw new Error("https://svelte.dev/e/state_unsafe_local_read");
|
|
41
|
+
}
|
|
42
|
+
function Dr() {
|
|
43
|
+
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
44
|
+
}
|
|
45
|
+
let Se = !1;
|
|
46
|
+
function Rt(t, e) {
|
|
47
|
+
var r = {
|
|
48
|
+
f: 0,
|
|
49
|
+
// TODO ideally we could skip this altogether, but it causes type errors
|
|
50
|
+
v: t,
|
|
51
|
+
reactions: null,
|
|
52
|
+
equals: Te,
|
|
53
|
+
version: 0
|
|
54
|
+
};
|
|
55
|
+
return r;
|
|
56
|
+
}
|
|
57
|
+
function Ir(t) {
|
|
58
|
+
return /* @__PURE__ */ Mr(Rt(t));
|
|
59
|
+
}
|
|
60
|
+
// @__NO_SIDE_EFFECTS__
|
|
61
|
+
function ie(t, e = !1) {
|
|
62
|
+
const r = Rt(t);
|
|
63
|
+
return e || (r.equals = Nr), r;
|
|
64
|
+
}
|
|
65
|
+
// @__NO_SIDE_EFFECTS__
|
|
66
|
+
function Mr(t) {
|
|
67
|
+
return w !== null && w.f & M && (F === null ? Wr([t]) : F.push(t)), t;
|
|
68
|
+
}
|
|
69
|
+
function Mt(t, e) {
|
|
70
|
+
return w !== null && Xr() && w.f & (M | le) && // If the source was created locally within the current derived, then
|
|
71
|
+
// we allow the mutation.
|
|
72
|
+
(F === null || !F.includes(t)) && Dr(), Ce(t, e);
|
|
73
|
+
}
|
|
74
|
+
function Ce(t, e) {
|
|
75
|
+
return t.equals(e) || (t.v = e, t.version = je(), Ne(t, J), p !== null && p.f & N && !(p.f & H) && (E !== null && E.includes(t) ? (U(p, J), Ht(p)) : K === null ? Jr([t]) : K.push(t))), e;
|
|
76
|
+
}
|
|
77
|
+
function Ne(t, e) {
|
|
78
|
+
var r = t.reactions;
|
|
79
|
+
if (r !== null)
|
|
80
|
+
for (var n = r.length, l = 0; l < n; l++) {
|
|
81
|
+
var s = r[l], i = s.f;
|
|
82
|
+
i & J || (U(s, e), i & (N | ht) && (i & M ? Ne(
|
|
83
|
+
/** @type {Derived} */
|
|
84
|
+
s,
|
|
85
|
+
mt
|
|
86
|
+
) : Ht(
|
|
87
|
+
/** @type {Effect} */
|
|
88
|
+
s
|
|
89
|
+
)));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function Lt(t) {
|
|
93
|
+
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
94
|
+
}
|
|
95
|
+
let g = !1;
|
|
96
|
+
function Y(t) {
|
|
97
|
+
g = t;
|
|
98
|
+
}
|
|
99
|
+
let $;
|
|
100
|
+
function D(t) {
|
|
101
|
+
if (t === null)
|
|
102
|
+
throw Lt(), it;
|
|
103
|
+
return $ = t;
|
|
104
|
+
}
|
|
105
|
+
function nt() {
|
|
106
|
+
return D(
|
|
107
|
+
/** @type {TemplateNode} */
|
|
108
|
+
/* @__PURE__ */ V($)
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
function Q(t) {
|
|
112
|
+
if (g) {
|
|
113
|
+
if (/* @__PURE__ */ V($) !== null)
|
|
114
|
+
throw Lt(), it;
|
|
115
|
+
$ = t;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function Lr(t = 1) {
|
|
119
|
+
if (g) {
|
|
120
|
+
for (var e = t, r = $; e--; )
|
|
121
|
+
r = /** @type {TemplateNode} */
|
|
122
|
+
/* @__PURE__ */ V(r);
|
|
123
|
+
$ = r;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function Wt() {
|
|
127
|
+
for (var t = 0, e = $; ; ) {
|
|
128
|
+
if (e.nodeType === 8) {
|
|
129
|
+
var r = (
|
|
130
|
+
/** @type {Comment} */
|
|
131
|
+
e.data
|
|
132
|
+
);
|
|
133
|
+
if (r === re) {
|
|
134
|
+
if (t === 0) return e;
|
|
135
|
+
t -= 1;
|
|
136
|
+
} else (r === be || r === ee) && (t += 1);
|
|
137
|
+
}
|
|
138
|
+
var n = (
|
|
139
|
+
/** @type {TemplateNode} */
|
|
140
|
+
/* @__PURE__ */ V(e)
|
|
141
|
+
);
|
|
142
|
+
e.remove(), e = n;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
var he, Ae, Re;
|
|
146
|
+
function Jt() {
|
|
147
|
+
if (he === void 0) {
|
|
148
|
+
he = window;
|
|
149
|
+
var t = Element.prototype, e = Node.prototype;
|
|
150
|
+
Ae = Nt(e, "firstChild").get, Re = Nt(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function bt(t = "") {
|
|
154
|
+
return document.createTextNode(t);
|
|
155
|
+
}
|
|
156
|
+
// @__NO_SIDE_EFFECTS__
|
|
157
|
+
function X(t) {
|
|
158
|
+
return Ae.call(t);
|
|
159
|
+
}
|
|
160
|
+
// @__NO_SIDE_EFFECTS__
|
|
161
|
+
function V(t) {
|
|
162
|
+
return Re.call(t);
|
|
163
|
+
}
|
|
164
|
+
function ot(t, e) {
|
|
165
|
+
if (!g)
|
|
166
|
+
return /* @__PURE__ */ X(t);
|
|
167
|
+
var r = (
|
|
168
|
+
/** @type {TemplateNode} */
|
|
169
|
+
/* @__PURE__ */ X($)
|
|
170
|
+
);
|
|
171
|
+
return r === null && (r = $.appendChild(bt())), D(r), r;
|
|
172
|
+
}
|
|
173
|
+
function jt(t, e) {
|
|
174
|
+
if (!g) {
|
|
175
|
+
var r = (
|
|
176
|
+
/** @type {DocumentFragment} */
|
|
177
|
+
/* @__PURE__ */ X(
|
|
178
|
+
/** @type {Node} */
|
|
179
|
+
t
|
|
180
|
+
)
|
|
181
|
+
);
|
|
182
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ V(r) : r;
|
|
183
|
+
}
|
|
184
|
+
return $;
|
|
185
|
+
}
|
|
186
|
+
function Xt(t, e = 1, r = !1) {
|
|
187
|
+
let n = g ? $ : t;
|
|
188
|
+
for (var l; e--; )
|
|
189
|
+
l = n, n = /** @type {TemplateNode} */
|
|
190
|
+
/* @__PURE__ */ V(n);
|
|
191
|
+
if (!g)
|
|
192
|
+
return n;
|
|
193
|
+
var s = n == null ? void 0 : n.nodeType;
|
|
194
|
+
if (r && s !== 3) {
|
|
195
|
+
var i = bt();
|
|
196
|
+
return n === null ? l == null || l.after(i) : n.before(i), D(i), i;
|
|
197
|
+
}
|
|
198
|
+
return D(n), /** @type {TemplateNode} */
|
|
199
|
+
n;
|
|
200
|
+
}
|
|
201
|
+
function Oe(t) {
|
|
202
|
+
t.textContent = "";
|
|
203
|
+
}
|
|
204
|
+
// @__NO_SIDE_EFFECTS__
|
|
205
|
+
function zr(t) {
|
|
206
|
+
var e = M | J;
|
|
207
|
+
p === null ? e |= ht : p.f |= Ee;
|
|
208
|
+
var r = w !== null && w.f & M ? (
|
|
209
|
+
/** @type {Derived} */
|
|
210
|
+
w
|
|
211
|
+
) : null;
|
|
212
|
+
const n = {
|
|
213
|
+
children: null,
|
|
214
|
+
ctx: I,
|
|
215
|
+
deps: null,
|
|
216
|
+
equals: Te,
|
|
217
|
+
f: e,
|
|
218
|
+
fn: t,
|
|
219
|
+
reactions: null,
|
|
220
|
+
v: (
|
|
221
|
+
/** @type {V} */
|
|
222
|
+
null
|
|
223
|
+
),
|
|
224
|
+
version: 0,
|
|
225
|
+
parent: r ?? p
|
|
226
|
+
};
|
|
227
|
+
return r !== null && (r.children ?? (r.children = [])).push(n), n;
|
|
228
|
+
}
|
|
229
|
+
function qe(t) {
|
|
230
|
+
var e = t.children;
|
|
231
|
+
if (e !== null) {
|
|
232
|
+
t.children = null;
|
|
233
|
+
for (var r = 0; r < e.length; r += 1) {
|
|
234
|
+
var n = e[r];
|
|
235
|
+
n.f & M ? oe(
|
|
236
|
+
/** @type {Derived} */
|
|
237
|
+
n
|
|
238
|
+
) : P(
|
|
239
|
+
/** @type {Effect} */
|
|
240
|
+
n
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
function Fr(t) {
|
|
246
|
+
for (var e = t.parent; e !== null; ) {
|
|
247
|
+
if (!(e.f & M))
|
|
248
|
+
return (
|
|
249
|
+
/** @type {Effect} */
|
|
250
|
+
e
|
|
251
|
+
);
|
|
252
|
+
e = e.parent;
|
|
253
|
+
}
|
|
254
|
+
return null;
|
|
255
|
+
}
|
|
256
|
+
function De(t) {
|
|
257
|
+
var e, r = p;
|
|
258
|
+
Z(Fr(t));
|
|
259
|
+
try {
|
|
260
|
+
qe(t), e = Ge(t);
|
|
261
|
+
} finally {
|
|
262
|
+
Z(r);
|
|
263
|
+
}
|
|
264
|
+
return e;
|
|
265
|
+
}
|
|
266
|
+
function Ie(t) {
|
|
267
|
+
var e = De(t), r = (et || t.f & ht) && t.deps !== null ? mt : N;
|
|
268
|
+
U(t, r), t.equals(e) || (t.v = e, t.version = je());
|
|
269
|
+
}
|
|
270
|
+
function oe(t) {
|
|
271
|
+
qe(t), $t(t, 0), U(t, dt), t.v = t.children = t.deps = t.ctx = t.reactions = null;
|
|
272
|
+
}
|
|
273
|
+
function Pr(t, e) {
|
|
274
|
+
var r = e.last;
|
|
275
|
+
r === null ? e.last = e.first = t : (r.next = t, t.prev = r, e.last = t);
|
|
276
|
+
}
|
|
277
|
+
function _t(t, e, r, n = !0) {
|
|
278
|
+
var l = (t & vt) !== 0, s = p, i = {
|
|
279
|
+
ctx: I,
|
|
280
|
+
deps: null,
|
|
281
|
+
deriveds: null,
|
|
282
|
+
nodes_start: null,
|
|
283
|
+
nodes_end: null,
|
|
284
|
+
f: t | J,
|
|
285
|
+
first: null,
|
|
286
|
+
fn: e,
|
|
287
|
+
last: null,
|
|
288
|
+
next: null,
|
|
289
|
+
parent: l ? null : s,
|
|
290
|
+
prev: null,
|
|
291
|
+
teardown: null,
|
|
292
|
+
transitions: null,
|
|
293
|
+
version: 0
|
|
294
|
+
};
|
|
295
|
+
if (r) {
|
|
296
|
+
var o = at;
|
|
297
|
+
try {
|
|
298
|
+
de(!0), Pt(i), i.f |= Er;
|
|
299
|
+
} catch (h) {
|
|
300
|
+
throw P(i), h;
|
|
301
|
+
} finally {
|
|
302
|
+
de(o);
|
|
303
|
+
}
|
|
304
|
+
} else e !== null && Ht(i);
|
|
305
|
+
var u = r && i.deps === null && i.first === null && i.nodes_start === null && i.teardown === null && (i.f & Ee) === 0;
|
|
306
|
+
if (!u && !l && n && (s !== null && Pr(i, s), w !== null && w.f & M)) {
|
|
307
|
+
var v = (
|
|
308
|
+
/** @type {Derived} */
|
|
309
|
+
w
|
|
310
|
+
);
|
|
311
|
+
(v.children ?? (v.children = [])).push(i);
|
|
312
|
+
}
|
|
313
|
+
return i;
|
|
314
|
+
}
|
|
315
|
+
function Hr(t) {
|
|
316
|
+
const e = _t(vt, t, !0);
|
|
317
|
+
return () => {
|
|
318
|
+
P(e);
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
function Vr(t) {
|
|
322
|
+
const e = _t(vt, t, !0);
|
|
323
|
+
return (r = {}) => new Promise((n) => {
|
|
324
|
+
r.outro ? Ot(e, () => {
|
|
325
|
+
P(e), n(void 0);
|
|
326
|
+
}) : (P(e), n(void 0));
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
function Br(t) {
|
|
330
|
+
return _t(xe, t, !1);
|
|
331
|
+
}
|
|
332
|
+
function Yr(t) {
|
|
333
|
+
return _t(It, t, !0);
|
|
334
|
+
}
|
|
335
|
+
function Me(t) {
|
|
336
|
+
return zt(t);
|
|
337
|
+
}
|
|
338
|
+
function zt(t, e = 0) {
|
|
339
|
+
return _t(It | le | e, t, !0);
|
|
340
|
+
}
|
|
341
|
+
function ft(t, e = !0) {
|
|
342
|
+
return _t(It | H, t, !0, e);
|
|
343
|
+
}
|
|
344
|
+
function Le(t) {
|
|
345
|
+
var e = t.teardown;
|
|
346
|
+
if (e !== null) {
|
|
347
|
+
const r = w;
|
|
348
|
+
ct(null);
|
|
349
|
+
try {
|
|
350
|
+
e.call(null);
|
|
351
|
+
} finally {
|
|
352
|
+
ct(r);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
function ze(t) {
|
|
357
|
+
var e = t.deriveds;
|
|
358
|
+
if (e !== null) {
|
|
359
|
+
t.deriveds = null;
|
|
360
|
+
for (var r = 0; r < e.length; r += 1)
|
|
361
|
+
oe(e[r]);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
function Fe(t, e = !1) {
|
|
365
|
+
var r = t.first;
|
|
366
|
+
for (t.first = t.last = null; r !== null; ) {
|
|
367
|
+
var n = r.next;
|
|
368
|
+
P(r, e), r = n;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
function Ur(t) {
|
|
372
|
+
for (var e = t.first; e !== null; ) {
|
|
373
|
+
var r = e.next;
|
|
374
|
+
e.f & H || P(e), e = r;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
function P(t, e = !0) {
|
|
378
|
+
var r = !1;
|
|
379
|
+
if ((e || t.f & kr) && t.nodes_start !== null) {
|
|
380
|
+
for (var n = t.nodes_start, l = t.nodes_end; n !== null; ) {
|
|
381
|
+
var s = n === l ? null : (
|
|
382
|
+
/** @type {TemplateNode} */
|
|
383
|
+
/* @__PURE__ */ V(n)
|
|
384
|
+
);
|
|
385
|
+
n.remove(), n = s;
|
|
386
|
+
}
|
|
387
|
+
r = !0;
|
|
388
|
+
}
|
|
389
|
+
Fe(t, e && !r), ze(t), $t(t, 0), U(t, dt);
|
|
390
|
+
var i = t.transitions;
|
|
391
|
+
if (i !== null)
|
|
392
|
+
for (const u of i)
|
|
393
|
+
u.stop();
|
|
394
|
+
Le(t);
|
|
395
|
+
var o = t.parent;
|
|
396
|
+
o !== null && o.first !== null && Pe(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
|
|
397
|
+
}
|
|
398
|
+
function Pe(t) {
|
|
399
|
+
var e = t.parent, r = t.prev, n = t.next;
|
|
400
|
+
r !== null && (r.next = n), n !== null && (n.prev = r), e !== null && (e.first === t && (e.first = n), e.last === t && (e.last = r));
|
|
401
|
+
}
|
|
402
|
+
function Ot(t, e) {
|
|
403
|
+
var r = [];
|
|
404
|
+
ae(t, r, !0), He(r, () => {
|
|
405
|
+
P(t), e && e();
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
function He(t, e) {
|
|
409
|
+
var r = t.length;
|
|
410
|
+
if (r > 0) {
|
|
411
|
+
var n = () => --r || e();
|
|
412
|
+
for (var l of t)
|
|
413
|
+
l.out(n);
|
|
414
|
+
} else
|
|
415
|
+
e();
|
|
416
|
+
}
|
|
417
|
+
function ae(t, e, r) {
|
|
418
|
+
if (!(t.f & z)) {
|
|
419
|
+
if (t.f ^= z, t.transitions !== null)
|
|
420
|
+
for (const i of t.transitions)
|
|
421
|
+
(i.is_global || r) && e.push(i);
|
|
422
|
+
for (var n = t.first; n !== null; ) {
|
|
423
|
+
var l = n.next, s = (n.f & se) !== 0 || (n.f & H) !== 0;
|
|
424
|
+
ae(n, e, s ? r : !1), n = l;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
function qt(t) {
|
|
429
|
+
Ve(t, !0);
|
|
430
|
+
}
|
|
431
|
+
function Ve(t, e) {
|
|
432
|
+
if (t.f & z) {
|
|
433
|
+
wt(t) && Pt(t), t.f ^= z;
|
|
434
|
+
for (var r = t.first; r !== null; ) {
|
|
435
|
+
var n = r.next, l = (r.f & se) !== 0 || (r.f & H) !== 0;
|
|
436
|
+
Ve(r, l ? e : !1), r = n;
|
|
437
|
+
}
|
|
438
|
+
if (t.transitions !== null)
|
|
439
|
+
for (const s of t.transitions)
|
|
440
|
+
(s.is_global || e) && s.in();
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
let Dt = !1, Zt = [];
|
|
444
|
+
function Be() {
|
|
445
|
+
Dt = !1;
|
|
446
|
+
const t = Zt.slice();
|
|
447
|
+
Zt = [], xr(t);
|
|
448
|
+
}
|
|
449
|
+
function jr(t) {
|
|
450
|
+
Dt || (Dt = !0, queueMicrotask(Be)), Zt.push(t);
|
|
451
|
+
}
|
|
452
|
+
function Gr() {
|
|
453
|
+
Dt && Be();
|
|
454
|
+
}
|
|
455
|
+
const Ye = 0, Kr = 1;
|
|
456
|
+
let Et = !1, kt = Ye, pt = !1, gt = null, at = !1;
|
|
457
|
+
function de(t) {
|
|
458
|
+
at = t;
|
|
459
|
+
}
|
|
460
|
+
let tt = [], ut = 0;
|
|
461
|
+
let w = null;
|
|
462
|
+
function ct(t) {
|
|
463
|
+
w = t;
|
|
464
|
+
}
|
|
465
|
+
let p = null;
|
|
466
|
+
function Z(t) {
|
|
467
|
+
p = t;
|
|
468
|
+
}
|
|
469
|
+
let F = null;
|
|
470
|
+
function Wr(t) {
|
|
471
|
+
F = t;
|
|
472
|
+
}
|
|
473
|
+
let E = null, C = 0, K = null;
|
|
474
|
+
function Jr(t) {
|
|
475
|
+
K = t;
|
|
476
|
+
}
|
|
477
|
+
let Ue = 1, et = !1, I = null;
|
|
478
|
+
function je() {
|
|
479
|
+
return ++Ue;
|
|
480
|
+
}
|
|
481
|
+
function Xr() {
|
|
482
|
+
return !Se;
|
|
483
|
+
}
|
|
484
|
+
function wt(t) {
|
|
485
|
+
var i, o;
|
|
486
|
+
var e = t.f;
|
|
487
|
+
if (e & J)
|
|
488
|
+
return !0;
|
|
489
|
+
if (e & mt) {
|
|
490
|
+
var r = t.deps, n = (e & ht) !== 0;
|
|
491
|
+
if (r !== null) {
|
|
492
|
+
var l;
|
|
493
|
+
if (e & At) {
|
|
494
|
+
for (l = 0; l < r.length; l++)
|
|
495
|
+
((i = r[l]).reactions ?? (i.reactions = [])).push(t);
|
|
496
|
+
t.f ^= At;
|
|
497
|
+
}
|
|
498
|
+
for (l = 0; l < r.length; l++) {
|
|
499
|
+
var s = r[l];
|
|
500
|
+
if (wt(
|
|
501
|
+
/** @type {Derived} */
|
|
502
|
+
s
|
|
503
|
+
) && Ie(
|
|
504
|
+
/** @type {Derived} */
|
|
505
|
+
s
|
|
506
|
+
), n && p !== null && !et && !((o = s == null ? void 0 : s.reactions) != null && o.includes(t)) && (s.reactions ?? (s.reactions = [])).push(t), s.version > t.version)
|
|
507
|
+
return !0;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
(!n || p !== null && !et) && U(t, N);
|
|
511
|
+
}
|
|
512
|
+
return !1;
|
|
513
|
+
}
|
|
514
|
+
function Zr(t, e) {
|
|
515
|
+
for (var r = e; r !== null; ) {
|
|
516
|
+
if (r.f & Kt)
|
|
517
|
+
try {
|
|
518
|
+
r.fn(t);
|
|
519
|
+
return;
|
|
520
|
+
} catch {
|
|
521
|
+
r.f ^= Kt;
|
|
522
|
+
}
|
|
523
|
+
r = r.parent;
|
|
524
|
+
}
|
|
525
|
+
throw Et = !1, t;
|
|
526
|
+
}
|
|
527
|
+
function Qr(t) {
|
|
528
|
+
return (t.f & dt) === 0 && (t.parent === null || (t.parent.f & Kt) === 0);
|
|
529
|
+
}
|
|
530
|
+
function Ft(t, e, r, n) {
|
|
531
|
+
if (Et) {
|
|
532
|
+
if (r === null && (Et = !1), Qr(e))
|
|
533
|
+
throw t;
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
r !== null && (Et = !0);
|
|
537
|
+
{
|
|
538
|
+
Zr(t, e);
|
|
539
|
+
return;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
function Ge(t) {
|
|
543
|
+
var c;
|
|
544
|
+
var e = E, r = C, n = K, l = w, s = et, i = F, o = I, u = t.f;
|
|
545
|
+
E = /** @type {null | Value[]} */
|
|
546
|
+
null, C = 0, K = null, w = u & (H | vt) ? null : t, et = !at && (u & ht) !== 0, F = null, I = t.ctx;
|
|
547
|
+
try {
|
|
548
|
+
var v = (
|
|
549
|
+
/** @type {Function} */
|
|
550
|
+
(0, t.fn)()
|
|
551
|
+
), h = t.deps;
|
|
552
|
+
if (E !== null) {
|
|
553
|
+
var a;
|
|
554
|
+
if ($t(t, C), h !== null && C > 0)
|
|
555
|
+
for (h.length = C + E.length, a = 0; a < E.length; a++)
|
|
556
|
+
h[C + a] = E[a];
|
|
557
|
+
else
|
|
558
|
+
t.deps = h = E;
|
|
559
|
+
if (!et)
|
|
560
|
+
for (a = C; a < h.length; a++)
|
|
561
|
+
((c = h[a]).reactions ?? (c.reactions = [])).push(t);
|
|
562
|
+
} else h !== null && C < h.length && ($t(t, C), h.length = C);
|
|
563
|
+
return v;
|
|
564
|
+
} finally {
|
|
565
|
+
E = e, C = r, K = n, w = l, et = s, F = i, I = o;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
function tn(t, e) {
|
|
569
|
+
let r = e.reactions;
|
|
570
|
+
if (r !== null) {
|
|
571
|
+
var n = r.indexOf(t);
|
|
572
|
+
if (n !== -1) {
|
|
573
|
+
var l = r.length - 1;
|
|
574
|
+
l === 0 ? r = e.reactions = null : (r[n] = r[l], r.pop());
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
r === null && e.f & M && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
578
|
+
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
579
|
+
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
580
|
+
(E === null || !E.includes(e)) && (U(e, mt), e.f & (ht | At) || (e.f ^= At), $t(
|
|
581
|
+
/** @type {Derived} **/
|
|
582
|
+
e,
|
|
583
|
+
0
|
|
584
|
+
));
|
|
585
|
+
}
|
|
586
|
+
function $t(t, e) {
|
|
587
|
+
var r = t.deps;
|
|
588
|
+
if (r !== null)
|
|
589
|
+
for (var n = e; n < r.length; n++)
|
|
590
|
+
tn(t, r[n]);
|
|
591
|
+
}
|
|
592
|
+
function Pt(t) {
|
|
593
|
+
var e = t.f;
|
|
594
|
+
if (!(e & dt)) {
|
|
595
|
+
U(t, N);
|
|
596
|
+
var r = p, n = I;
|
|
597
|
+
p = t;
|
|
598
|
+
try {
|
|
599
|
+
e & le ? Ur(t) : Fe(t), ze(t), Le(t);
|
|
600
|
+
var l = Ge(t);
|
|
601
|
+
t.teardown = typeof l == "function" ? l : null, t.version = Ue;
|
|
602
|
+
} catch (s) {
|
|
603
|
+
Ft(s, t, r, n || t.ctx);
|
|
604
|
+
} finally {
|
|
605
|
+
p = r;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
function Ke() {
|
|
610
|
+
if (ut > 1e3) {
|
|
611
|
+
ut = 0;
|
|
612
|
+
try {
|
|
613
|
+
Ar();
|
|
614
|
+
} catch (t) {
|
|
615
|
+
if (gt !== null)
|
|
616
|
+
Ft(t, gt, null);
|
|
617
|
+
else
|
|
618
|
+
throw t;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
ut++;
|
|
622
|
+
}
|
|
623
|
+
function We(t) {
|
|
624
|
+
var e = t.length;
|
|
625
|
+
if (e !== 0) {
|
|
626
|
+
Ke();
|
|
627
|
+
var r = at;
|
|
628
|
+
at = !0;
|
|
629
|
+
try {
|
|
630
|
+
for (var n = 0; n < e; n++) {
|
|
631
|
+
var l = t[n];
|
|
632
|
+
l.f & N || (l.f ^= N);
|
|
633
|
+
var s = [];
|
|
634
|
+
Je(l, s), en(s);
|
|
635
|
+
}
|
|
636
|
+
} finally {
|
|
637
|
+
at = r;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
function en(t) {
|
|
642
|
+
var e = t.length;
|
|
643
|
+
if (e !== 0)
|
|
644
|
+
for (var r = 0; r < e; r++) {
|
|
645
|
+
var n = t[r];
|
|
646
|
+
if (!(n.f & (dt | z)))
|
|
647
|
+
try {
|
|
648
|
+
wt(n) && (Pt(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null ? Pe(n) : n.fn = null));
|
|
649
|
+
} catch (l) {
|
|
650
|
+
Ft(l, n, null, n.ctx);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
function rn() {
|
|
655
|
+
if (pt = !1, ut > 1001)
|
|
656
|
+
return;
|
|
657
|
+
const t = tt;
|
|
658
|
+
tt = [], We(t), pt || (ut = 0, gt = null);
|
|
659
|
+
}
|
|
660
|
+
function Ht(t) {
|
|
661
|
+
kt === Ye && (pt || (pt = !0, queueMicrotask(rn))), gt = t;
|
|
662
|
+
for (var e = t; e.parent !== null; ) {
|
|
663
|
+
e = e.parent;
|
|
664
|
+
var r = e.f;
|
|
665
|
+
if (r & (vt | H)) {
|
|
666
|
+
if (!(r & N)) return;
|
|
667
|
+
e.f ^= N;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
tt.push(e);
|
|
671
|
+
}
|
|
672
|
+
function Je(t, e) {
|
|
673
|
+
var r = t.first, n = [];
|
|
674
|
+
t: for (; r !== null; ) {
|
|
675
|
+
var l = r.f, s = (l & H) !== 0, i = s && (l & N) !== 0, o = r.next;
|
|
676
|
+
if (!i && !(l & z))
|
|
677
|
+
if (l & It) {
|
|
678
|
+
if (s)
|
|
679
|
+
r.f ^= N;
|
|
680
|
+
else
|
|
681
|
+
try {
|
|
682
|
+
wt(r) && Pt(r);
|
|
683
|
+
} catch (a) {
|
|
684
|
+
Ft(a, r, null, r.ctx);
|
|
685
|
+
}
|
|
686
|
+
var u = r.first;
|
|
687
|
+
if (u !== null) {
|
|
688
|
+
r = u;
|
|
689
|
+
continue;
|
|
690
|
+
}
|
|
691
|
+
} else l & xe && n.push(r);
|
|
692
|
+
if (o === null) {
|
|
693
|
+
let a = r.parent;
|
|
694
|
+
for (; a !== null; ) {
|
|
695
|
+
if (t === a)
|
|
696
|
+
break t;
|
|
697
|
+
var v = a.next;
|
|
698
|
+
if (v !== null) {
|
|
699
|
+
r = v;
|
|
700
|
+
continue t;
|
|
701
|
+
}
|
|
702
|
+
a = a.parent;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
r = o;
|
|
706
|
+
}
|
|
707
|
+
for (var h = 0; h < n.length; h++)
|
|
708
|
+
u = n[h], e.push(u), Je(u, e);
|
|
709
|
+
}
|
|
710
|
+
function L(t) {
|
|
711
|
+
var e = kt, r = tt;
|
|
712
|
+
try {
|
|
713
|
+
Ke();
|
|
714
|
+
const l = [];
|
|
715
|
+
kt = Kr, tt = l, pt = !1, We(r);
|
|
716
|
+
var n = t == null ? void 0 : t();
|
|
717
|
+
return Gr(), (tt.length > 0 || l.length > 0) && L(), ut = 0, gt = null, n;
|
|
718
|
+
} finally {
|
|
719
|
+
kt = e, tt = r;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
function q(t) {
|
|
723
|
+
var h;
|
|
724
|
+
var e = t.f, r = (e & M) !== 0;
|
|
725
|
+
if (r && e & dt) {
|
|
726
|
+
var n = De(
|
|
727
|
+
/** @type {Derived} */
|
|
728
|
+
t
|
|
729
|
+
);
|
|
730
|
+
return oe(
|
|
731
|
+
/** @type {Derived} */
|
|
732
|
+
t
|
|
733
|
+
), n;
|
|
734
|
+
}
|
|
735
|
+
if (w !== null) {
|
|
736
|
+
F !== null && F.includes(t) && qr();
|
|
737
|
+
var l = w.deps;
|
|
738
|
+
E === null && l !== null && l[C] === t ? C++ : E === null ? E = [t] : E.push(t), K !== null && p !== null && p.f & N && !(p.f & H) && K.includes(t) && (U(p, J), Ht(p));
|
|
739
|
+
} else if (r && /** @type {Derived} */
|
|
740
|
+
t.deps === null)
|
|
741
|
+
for (var s = (
|
|
742
|
+
/** @type {Derived} */
|
|
743
|
+
t
|
|
744
|
+
), i = s.parent, o = s; i !== null; )
|
|
745
|
+
if (i.f & M) {
|
|
746
|
+
var u = (
|
|
747
|
+
/** @type {Derived} */
|
|
748
|
+
i
|
|
749
|
+
);
|
|
750
|
+
o = u, i = u.parent;
|
|
751
|
+
} else {
|
|
752
|
+
var v = (
|
|
753
|
+
/** @type {Effect} */
|
|
754
|
+
i
|
|
755
|
+
);
|
|
756
|
+
(h = v.deriveds) != null && h.includes(o) || (v.deriveds ?? (v.deriveds = [])).push(o);
|
|
757
|
+
break;
|
|
758
|
+
}
|
|
759
|
+
return r && (s = /** @type {Derived} */
|
|
760
|
+
t, wt(s) && Ie(s)), t.v;
|
|
761
|
+
}
|
|
762
|
+
function nn(t) {
|
|
763
|
+
const e = w;
|
|
764
|
+
try {
|
|
765
|
+
return w = null, t();
|
|
766
|
+
} finally {
|
|
767
|
+
w = e;
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
const ln = ~(J | mt | N);
|
|
771
|
+
function U(t, e) {
|
|
772
|
+
t.f = t.f & ln | e;
|
|
773
|
+
}
|
|
774
|
+
function ue(t, e = !1, r) {
|
|
775
|
+
I = {
|
|
776
|
+
p: I,
|
|
777
|
+
c: null,
|
|
778
|
+
e: null,
|
|
779
|
+
m: !1,
|
|
780
|
+
s: t,
|
|
781
|
+
x: null,
|
|
782
|
+
l: null
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
function fe(t) {
|
|
786
|
+
const e = I;
|
|
787
|
+
if (e !== null) {
|
|
788
|
+
t !== void 0 && (e.x = t);
|
|
789
|
+
const i = e.e;
|
|
790
|
+
if (i !== null) {
|
|
791
|
+
var r = p, n = w;
|
|
792
|
+
e.e = null;
|
|
793
|
+
try {
|
|
794
|
+
for (var l = 0; l < i.length; l++) {
|
|
795
|
+
var s = i[l];
|
|
796
|
+
Z(s.effect), ct(s.reaction), Br(s.fn);
|
|
797
|
+
}
|
|
798
|
+
} finally {
|
|
799
|
+
Z(r), ct(n);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
I = e.p, e.m = !0;
|
|
803
|
+
}
|
|
804
|
+
return t || /** @type {T} */
|
|
805
|
+
{};
|
|
806
|
+
}
|
|
807
|
+
const Xe = /* @__PURE__ */ new Set(), Qt = /* @__PURE__ */ new Set();
|
|
808
|
+
function Ze(t) {
|
|
809
|
+
for (var e = 0; e < t.length; e++)
|
|
810
|
+
Xe.add(t[e]);
|
|
811
|
+
for (var r of Qt)
|
|
812
|
+
r(t);
|
|
813
|
+
}
|
|
814
|
+
function xt(t) {
|
|
815
|
+
var _;
|
|
816
|
+
var e = this, r = (
|
|
817
|
+
/** @type {Node} */
|
|
818
|
+
e.ownerDocument
|
|
819
|
+
), n = t.type, l = ((_ = t.composedPath) == null ? void 0 : _.call(t)) || [], s = (
|
|
820
|
+
/** @type {null | Element} */
|
|
821
|
+
l[0] || t.target
|
|
822
|
+
), i = 0, o = t.__root;
|
|
823
|
+
if (o) {
|
|
824
|
+
var u = l.indexOf(o);
|
|
825
|
+
if (u !== -1 && (e === document || e === /** @type {any} */
|
|
826
|
+
window)) {
|
|
827
|
+
t.__root = e;
|
|
828
|
+
return;
|
|
829
|
+
}
|
|
830
|
+
var v = l.indexOf(e);
|
|
831
|
+
if (v === -1)
|
|
832
|
+
return;
|
|
833
|
+
u <= v && (i = u);
|
|
834
|
+
}
|
|
835
|
+
if (s = /** @type {Element} */
|
|
836
|
+
l[i] || t.target, s !== e) {
|
|
837
|
+
Ct(t, "currentTarget", {
|
|
838
|
+
configurable: !0,
|
|
839
|
+
get() {
|
|
840
|
+
return s || r;
|
|
841
|
+
}
|
|
842
|
+
});
|
|
843
|
+
var h = w, a = p;
|
|
844
|
+
ct(null), Z(null);
|
|
845
|
+
try {
|
|
846
|
+
for (var c, f = []; s !== null; ) {
|
|
847
|
+
var d = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
848
|
+
s.host || null;
|
|
849
|
+
try {
|
|
850
|
+
var b = s["__" + n];
|
|
851
|
+
if (b !== void 0 && !/** @type {any} */
|
|
852
|
+
s.disabled)
|
|
853
|
+
if (ye(b)) {
|
|
854
|
+
var [k, ...x] = b;
|
|
855
|
+
k.apply(s, [t, ...x]);
|
|
856
|
+
} else
|
|
857
|
+
b.call(s, t);
|
|
858
|
+
} catch (m) {
|
|
859
|
+
c ? f.push(m) : c = m;
|
|
860
|
+
}
|
|
861
|
+
if (t.cancelBubble || d === e || d === null)
|
|
862
|
+
break;
|
|
863
|
+
s = d;
|
|
864
|
+
}
|
|
865
|
+
if (c) {
|
|
866
|
+
for (let m of f)
|
|
867
|
+
queueMicrotask(() => {
|
|
868
|
+
throw m;
|
|
869
|
+
});
|
|
870
|
+
throw c;
|
|
871
|
+
}
|
|
872
|
+
} finally {
|
|
873
|
+
t.__root = e, delete t.currentTarget, ct(h), Z(a);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
function Qe(t) {
|
|
878
|
+
var e = document.createElement("template");
|
|
879
|
+
return e.innerHTML = t, e.content;
|
|
880
|
+
}
|
|
881
|
+
function W(t, e) {
|
|
882
|
+
var r = (
|
|
883
|
+
/** @type {Effect} */
|
|
884
|
+
p
|
|
885
|
+
);
|
|
886
|
+
r.nodes_start === null && (r.nodes_start = t, r.nodes_end = e);
|
|
887
|
+
}
|
|
888
|
+
// @__NO_SIDE_EFFECTS__
|
|
889
|
+
function yt(t, e) {
|
|
890
|
+
var r = (e & pr) !== 0, n = (e & gr) !== 0, l, s = !t.startsWith("<!>");
|
|
891
|
+
return () => {
|
|
892
|
+
if (g)
|
|
893
|
+
return W($, null), $;
|
|
894
|
+
l === void 0 && (l = Qe(s ? t : "<!>" + t), r || (l = /** @type {Node} */
|
|
895
|
+
/* @__PURE__ */ X(l)));
|
|
896
|
+
var i = (
|
|
897
|
+
/** @type {TemplateNode} */
|
|
898
|
+
n ? document.importNode(l, !0) : l.cloneNode(!0)
|
|
899
|
+
);
|
|
900
|
+
if (r) {
|
|
901
|
+
var o = (
|
|
902
|
+
/** @type {TemplateNode} */
|
|
903
|
+
/* @__PURE__ */ X(i)
|
|
904
|
+
), u = (
|
|
905
|
+
/** @type {TemplateNode} */
|
|
906
|
+
i.lastChild
|
|
907
|
+
);
|
|
908
|
+
W(o, u);
|
|
909
|
+
} else
|
|
910
|
+
W(i, i);
|
|
911
|
+
return i;
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
function sn() {
|
|
915
|
+
if (g)
|
|
916
|
+
return W($, null), $;
|
|
917
|
+
var t = document.createDocumentFragment(), e = document.createComment(""), r = bt();
|
|
918
|
+
return t.append(e, r), W(e, r), t;
|
|
919
|
+
}
|
|
920
|
+
function rt(t, e) {
|
|
921
|
+
if (g) {
|
|
922
|
+
p.nodes_end = $, nt();
|
|
923
|
+
return;
|
|
924
|
+
}
|
|
925
|
+
t !== null && t.before(
|
|
926
|
+
/** @type {Node} */
|
|
927
|
+
e
|
|
928
|
+
);
|
|
929
|
+
}
|
|
930
|
+
function on(t, e) {
|
|
931
|
+
var r = e == null ? "" : typeof e == "object" ? e + "" : e;
|
|
932
|
+
r !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = r, t.nodeValue = r == null ? "" : r + "");
|
|
933
|
+
}
|
|
934
|
+
function tr(t, e) {
|
|
935
|
+
return er(t, e);
|
|
936
|
+
}
|
|
937
|
+
function an(t, e) {
|
|
938
|
+
Jt(), e.intro = e.intro ?? !1;
|
|
939
|
+
const r = e.target, n = g, l = $;
|
|
940
|
+
try {
|
|
941
|
+
for (var s = (
|
|
942
|
+
/** @type {TemplateNode} */
|
|
943
|
+
/* @__PURE__ */ X(r)
|
|
944
|
+
); s && (s.nodeType !== 8 || /** @type {Comment} */
|
|
945
|
+
s.data !== be); )
|
|
946
|
+
s = /** @type {TemplateNode} */
|
|
947
|
+
/* @__PURE__ */ V(s);
|
|
948
|
+
if (!s)
|
|
949
|
+
throw it;
|
|
950
|
+
Y(!0), D(
|
|
951
|
+
/** @type {Comment} */
|
|
952
|
+
s
|
|
953
|
+
), nt();
|
|
954
|
+
const i = er(t, { ...e, anchor: s });
|
|
955
|
+
if ($ === null || $.nodeType !== 8 || /** @type {Comment} */
|
|
956
|
+
$.data !== re)
|
|
957
|
+
throw Lt(), it;
|
|
958
|
+
return Y(!1), /** @type {Exports} */
|
|
959
|
+
i;
|
|
960
|
+
} catch (i) {
|
|
961
|
+
if (i === it)
|
|
962
|
+
return e.recover === !1 && Rr(), Jt(), Oe(r), Y(!1), tr(t, e);
|
|
963
|
+
throw i;
|
|
964
|
+
} finally {
|
|
965
|
+
Y(n), D(l);
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
const st = /* @__PURE__ */ new Map();
|
|
969
|
+
function er(t, { target: e, anchor: r, props: n = {}, events: l, context: s, intro: i = !0 }) {
|
|
970
|
+
Jt();
|
|
971
|
+
var o = /* @__PURE__ */ new Set(), u = (a) => {
|
|
972
|
+
for (var c = 0; c < a.length; c++) {
|
|
973
|
+
var f = a[c];
|
|
974
|
+
if (!o.has(f)) {
|
|
975
|
+
o.add(f);
|
|
976
|
+
var d = br(f);
|
|
977
|
+
e.addEventListener(f, xt, { passive: d });
|
|
978
|
+
var b = st.get(f);
|
|
979
|
+
b === void 0 ? (document.addEventListener(f, xt, { passive: d }), st.set(f, 1)) : st.set(f, b + 1);
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
u(ne(Xe)), Qt.add(u);
|
|
984
|
+
var v = void 0, h = Vr(() => {
|
|
985
|
+
var a = r ?? e.appendChild(bt());
|
|
986
|
+
return ft(() => {
|
|
987
|
+
if (s) {
|
|
988
|
+
ue({});
|
|
989
|
+
var c = (
|
|
990
|
+
/** @type {ComponentContext} */
|
|
991
|
+
I
|
|
992
|
+
);
|
|
993
|
+
c.c = s;
|
|
994
|
+
}
|
|
995
|
+
l && (n.$$events = l), g && W(
|
|
996
|
+
/** @type {TemplateNode} */
|
|
997
|
+
a,
|
|
998
|
+
null
|
|
999
|
+
), v = t(a, n) || {}, g && (p.nodes_end = $), s && fe();
|
|
1000
|
+
}), () => {
|
|
1001
|
+
var d;
|
|
1002
|
+
for (var c of o) {
|
|
1003
|
+
e.removeEventListener(c, xt);
|
|
1004
|
+
var f = (
|
|
1005
|
+
/** @type {number} */
|
|
1006
|
+
st.get(c)
|
|
1007
|
+
);
|
|
1008
|
+
--f === 0 ? (document.removeEventListener(c, xt), st.delete(c)) : st.set(c, f);
|
|
1009
|
+
}
|
|
1010
|
+
Qt.delete(u), a !== r && ((d = a.parentNode) == null || d.removeChild(a));
|
|
1011
|
+
};
|
|
1012
|
+
});
|
|
1013
|
+
return te.set(v, h), v;
|
|
1014
|
+
}
|
|
1015
|
+
let te = /* @__PURE__ */ new WeakMap();
|
|
1016
|
+
function un(t, e) {
|
|
1017
|
+
const r = te.get(t);
|
|
1018
|
+
return r ? (te.delete(t), r(e)) : Promise.resolve();
|
|
1019
|
+
}
|
|
1020
|
+
function _e(t, e, r = !1) {
|
|
1021
|
+
g && nt();
|
|
1022
|
+
var n = t, l = null, s = null, i = $r, o = r ? se : 0, u = !1;
|
|
1023
|
+
const v = (a, c = !0) => {
|
|
1024
|
+
u = !0, h(c, a);
|
|
1025
|
+
}, h = (a, c) => {
|
|
1026
|
+
if (i === (i = a)) return;
|
|
1027
|
+
let f = !1;
|
|
1028
|
+
if (g) {
|
|
1029
|
+
const d = (
|
|
1030
|
+
/** @type {Comment} */
|
|
1031
|
+
n.data === ee
|
|
1032
|
+
);
|
|
1033
|
+
!!i === d && (n = Wt(), D(n), Y(!1), f = !0);
|
|
1034
|
+
}
|
|
1035
|
+
i ? (l ? qt(l) : c && (l = ft(() => c(n))), s && Ot(s, () => {
|
|
1036
|
+
s = null;
|
|
1037
|
+
})) : (s ? qt(s) : c && (s = ft(() => c(n))), l && Ot(l, () => {
|
|
1038
|
+
l = null;
|
|
1039
|
+
})), f && Y(!0);
|
|
1040
|
+
};
|
|
1041
|
+
zt(() => {
|
|
1042
|
+
u = !1, e(v), u || h(null, null);
|
|
1043
|
+
}, o), g && (n = $);
|
|
1044
|
+
}
|
|
1045
|
+
function fn(t, e) {
|
|
1046
|
+
return e;
|
|
1047
|
+
}
|
|
1048
|
+
function cn(t, e, r, n) {
|
|
1049
|
+
for (var l = [], s = e.length, i = 0; i < s; i++)
|
|
1050
|
+
ae(e[i].e, l, !0);
|
|
1051
|
+
var o = s > 0 && l.length === 0 && r !== null;
|
|
1052
|
+
if (o) {
|
|
1053
|
+
var u = (
|
|
1054
|
+
/** @type {Element} */
|
|
1055
|
+
/** @type {Element} */
|
|
1056
|
+
r.parentNode
|
|
1057
|
+
);
|
|
1058
|
+
Oe(u), u.append(
|
|
1059
|
+
/** @type {Element} */
|
|
1060
|
+
r
|
|
1061
|
+
), n.clear(), j(t, e[0].prev, e[s - 1].next);
|
|
1062
|
+
}
|
|
1063
|
+
He(l, () => {
|
|
1064
|
+
for (var v = 0; v < s; v++) {
|
|
1065
|
+
var h = e[v];
|
|
1066
|
+
o || (n.delete(h.k), j(t, h.prev, h.next)), P(h.e, !o);
|
|
1067
|
+
}
|
|
1068
|
+
});
|
|
1069
|
+
}
|
|
1070
|
+
function vn(t, e, r, n, l, s = null) {
|
|
1071
|
+
var i = t, o = { flags: e, items: /* @__PURE__ */ new Map(), first: null };
|
|
1072
|
+
{
|
|
1073
|
+
var u = (
|
|
1074
|
+
/** @type {Element} */
|
|
1075
|
+
t
|
|
1076
|
+
);
|
|
1077
|
+
i = g ? D(
|
|
1078
|
+
/** @type {Comment | Text} */
|
|
1079
|
+
/* @__PURE__ */ X(u)
|
|
1080
|
+
) : u.appendChild(bt());
|
|
1081
|
+
}
|
|
1082
|
+
g && nt();
|
|
1083
|
+
var v = null, h = !1;
|
|
1084
|
+
zt(() => {
|
|
1085
|
+
var a = r(), c = ye(a) ? a : a == null ? [] : ne(a), f = c.length;
|
|
1086
|
+
if (h && f === 0)
|
|
1087
|
+
return;
|
|
1088
|
+
h = f === 0;
|
|
1089
|
+
let d = !1;
|
|
1090
|
+
if (g) {
|
|
1091
|
+
var b = (
|
|
1092
|
+
/** @type {Comment} */
|
|
1093
|
+
i.data === ee
|
|
1094
|
+
);
|
|
1095
|
+
b !== (f === 0) && (i = Wt(), D(i), Y(!1), d = !0);
|
|
1096
|
+
}
|
|
1097
|
+
if (g) {
|
|
1098
|
+
for (var k = null, x, _ = 0; _ < f; _++) {
|
|
1099
|
+
if ($.nodeType === 8 && /** @type {Comment} */
|
|
1100
|
+
$.data === re) {
|
|
1101
|
+
i = /** @type {Comment} */
|
|
1102
|
+
$, d = !0, Y(!1);
|
|
1103
|
+
break;
|
|
1104
|
+
}
|
|
1105
|
+
var m = c[_], A = n(m, _);
|
|
1106
|
+
x = rr(
|
|
1107
|
+
$,
|
|
1108
|
+
o,
|
|
1109
|
+
k,
|
|
1110
|
+
null,
|
|
1111
|
+
m,
|
|
1112
|
+
A,
|
|
1113
|
+
_,
|
|
1114
|
+
l,
|
|
1115
|
+
e
|
|
1116
|
+
), o.items.set(A, x), k = x;
|
|
1117
|
+
}
|
|
1118
|
+
f > 0 && D(Wt());
|
|
1119
|
+
}
|
|
1120
|
+
if (!g) {
|
|
1121
|
+
var y = (
|
|
1122
|
+
/** @type {Effect} */
|
|
1123
|
+
w
|
|
1124
|
+
);
|
|
1125
|
+
hn(
|
|
1126
|
+
c,
|
|
1127
|
+
o,
|
|
1128
|
+
i,
|
|
1129
|
+
l,
|
|
1130
|
+
e,
|
|
1131
|
+
(y.f & z) !== 0,
|
|
1132
|
+
n
|
|
1133
|
+
);
|
|
1134
|
+
}
|
|
1135
|
+
s !== null && (f === 0 ? v ? qt(v) : v = ft(() => s(i)) : v !== null && Ot(v, () => {
|
|
1136
|
+
v = null;
|
|
1137
|
+
})), d && Y(!0);
|
|
1138
|
+
}), g && (i = $);
|
|
1139
|
+
}
|
|
1140
|
+
function hn(t, e, r, n, l, s, i, o) {
|
|
1141
|
+
var u = t.length, v = e.items, h = e.first, a = h, c, f = null, d = [], b = [], k, x, _, m;
|
|
1142
|
+
for (m = 0; m < u; m += 1) {
|
|
1143
|
+
if (k = t[m], x = i(k, m), _ = v.get(x), _ === void 0) {
|
|
1144
|
+
var A = a ? (
|
|
1145
|
+
/** @type {TemplateNode} */
|
|
1146
|
+
a.e.nodes_start
|
|
1147
|
+
) : r;
|
|
1148
|
+
f = rr(
|
|
1149
|
+
A,
|
|
1150
|
+
e,
|
|
1151
|
+
f,
|
|
1152
|
+
f === null ? e.first : f.next,
|
|
1153
|
+
k,
|
|
1154
|
+
x,
|
|
1155
|
+
m,
|
|
1156
|
+
n,
|
|
1157
|
+
l
|
|
1158
|
+
), v.set(x, f), d = [], b = [], a = f.next;
|
|
1159
|
+
continue;
|
|
1160
|
+
}
|
|
1161
|
+
if (dn(_, k, m), _.e.f & z && qt(_.e), _ !== a) {
|
|
1162
|
+
if (c !== void 0 && c.has(_)) {
|
|
1163
|
+
if (d.length < b.length) {
|
|
1164
|
+
var y = b[0], T;
|
|
1165
|
+
f = y.prev;
|
|
1166
|
+
var lt = d[0], Vt = d[d.length - 1];
|
|
1167
|
+
for (T = 0; T < d.length; T += 1)
|
|
1168
|
+
pe(d[T], y, r);
|
|
1169
|
+
for (T = 0; T < b.length; T += 1)
|
|
1170
|
+
c.delete(b[T]);
|
|
1171
|
+
j(e, lt.prev, Vt.next), j(e, f, lt), j(e, Vt, y), a = y, f = Vt, m -= 1, d = [], b = [];
|
|
1172
|
+
} else
|
|
1173
|
+
c.delete(_), pe(_, a, r), j(e, _.prev, _.next), j(e, _, f === null ? e.first : f.next), j(e, f, _), f = _;
|
|
1174
|
+
continue;
|
|
1175
|
+
}
|
|
1176
|
+
for (d = [], b = []; a !== null && a.k !== x; )
|
|
1177
|
+
(s || !(a.e.f & z)) && (c ?? (c = /* @__PURE__ */ new Set())).add(a), b.push(a), a = a.next;
|
|
1178
|
+
if (a === null)
|
|
1179
|
+
continue;
|
|
1180
|
+
_ = a;
|
|
1181
|
+
}
|
|
1182
|
+
d.push(_), f = _, a = _.next;
|
|
1183
|
+
}
|
|
1184
|
+
if (a !== null || c !== void 0) {
|
|
1185
|
+
for (var Bt = c === void 0 ? [] : ne(c); a !== null; )
|
|
1186
|
+
(s || !(a.e.f & z)) && Bt.push(a), a = a.next;
|
|
1187
|
+
var or = Bt.length;
|
|
1188
|
+
if (or > 0) {
|
|
1189
|
+
var ar = u === 0 ? r : null;
|
|
1190
|
+
cn(e, Bt, ar, v);
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
p.first = e.first && e.first.e, p.last = f && f.e;
|
|
1194
|
+
}
|
|
1195
|
+
function dn(t, e, r, n) {
|
|
1196
|
+
Ce(t.v, e), t.i = r;
|
|
1197
|
+
}
|
|
1198
|
+
function rr(t, e, r, n, l, s, i, o, u, v) {
|
|
1199
|
+
var h = (u & vr) !== 0, a = (u & dr) === 0, c = h ? a ? /* @__PURE__ */ ie(l) : Rt(l) : l, f = u & hr ? Rt(i) : i, d = {
|
|
1200
|
+
i: f,
|
|
1201
|
+
v: c,
|
|
1202
|
+
k: s,
|
|
1203
|
+
a: null,
|
|
1204
|
+
// @ts-expect-error
|
|
1205
|
+
e: null,
|
|
1206
|
+
prev: r,
|
|
1207
|
+
next: n
|
|
1208
|
+
};
|
|
1209
|
+
try {
|
|
1210
|
+
return d.e = ft(() => o(t, c, f), g), d.e.prev = r && r.e, d.e.next = n && n.e, r === null ? e.first = d : (r.next = d, r.e.next = d.e), n !== null && (n.prev = d, n.e.prev = d.e), d;
|
|
1211
|
+
} finally {
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
function pe(t, e, r) {
|
|
1215
|
+
for (var n = t.next ? (
|
|
1216
|
+
/** @type {TemplateNode} */
|
|
1217
|
+
t.next.e.nodes_start
|
|
1218
|
+
) : r, l = e ? (
|
|
1219
|
+
/** @type {TemplateNode} */
|
|
1220
|
+
e.e.nodes_start
|
|
1221
|
+
) : r, s = (
|
|
1222
|
+
/** @type {TemplateNode} */
|
|
1223
|
+
t.e.nodes_start
|
|
1224
|
+
); s !== n; ) {
|
|
1225
|
+
var i = (
|
|
1226
|
+
/** @type {TemplateNode} */
|
|
1227
|
+
/* @__PURE__ */ V(s)
|
|
1228
|
+
);
|
|
1229
|
+
l.before(s), s = i;
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
function j(t, e, r) {
|
|
1233
|
+
e === null ? t.first = r : (e.next = r, e.e.next = r && r.e), r !== null && (r.prev = e, r.e.prev = e && e.e);
|
|
1234
|
+
}
|
|
1235
|
+
function ge(t, e, r, n, l) {
|
|
1236
|
+
var s = t, i = "", o;
|
|
1237
|
+
zt(() => {
|
|
1238
|
+
if (i === (i = e() ?? "")) {
|
|
1239
|
+
g && nt();
|
|
1240
|
+
return;
|
|
1241
|
+
}
|
|
1242
|
+
o !== void 0 && (P(o), o = void 0), i !== "" && (o = ft(() => {
|
|
1243
|
+
if (g) {
|
|
1244
|
+
$.data;
|
|
1245
|
+
for (var u = nt(), v = u; u !== null && (u.nodeType !== 8 || /** @type {Comment} */
|
|
1246
|
+
u.data !== ""); )
|
|
1247
|
+
v = u, u = /** @type {TemplateNode} */
|
|
1248
|
+
/* @__PURE__ */ V(u);
|
|
1249
|
+
if (u === null)
|
|
1250
|
+
throw Lt(), it;
|
|
1251
|
+
W($, v), s = D(u);
|
|
1252
|
+
return;
|
|
1253
|
+
}
|
|
1254
|
+
var h = i + "", a = Qe(h);
|
|
1255
|
+
W(
|
|
1256
|
+
/** @type {TemplateNode} */
|
|
1257
|
+
/* @__PURE__ */ X(a),
|
|
1258
|
+
/** @type {TemplateNode} */
|
|
1259
|
+
a.lastChild
|
|
1260
|
+
), s.before(a);
|
|
1261
|
+
}));
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
function _n(t, e, r, n, l) {
|
|
1265
|
+
var o;
|
|
1266
|
+
g && nt();
|
|
1267
|
+
var s = (o = e.$$slots) == null ? void 0 : o[r], i = !1;
|
|
1268
|
+
s === !0 && (s = e.children, i = !0), s === void 0 ? l !== null && l(t) : s(t, i ? () => n : n);
|
|
1269
|
+
}
|
|
1270
|
+
function nr(t, e) {
|
|
1271
|
+
jr(() => {
|
|
1272
|
+
var r = t.getRootNode(), n = (
|
|
1273
|
+
/** @type {ShadowRoot} */
|
|
1274
|
+
r.host ? (
|
|
1275
|
+
/** @type {ShadowRoot} */
|
|
1276
|
+
r
|
|
1277
|
+
) : (
|
|
1278
|
+
/** @type {Document} */
|
|
1279
|
+
r.head ?? /** @type {Document} */
|
|
1280
|
+
r.ownerDocument.head
|
|
1281
|
+
)
|
|
1282
|
+
);
|
|
1283
|
+
if (!n.querySelector("#" + e.hash)) {
|
|
1284
|
+
const l = document.createElement("style");
|
|
1285
|
+
l.id = e.hash, l.textContent = e.code, n.appendChild(l);
|
|
1286
|
+
}
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
function Gt(t, e, r, n) {
|
|
1290
|
+
var l = t.__attributes ?? (t.__attributes = {});
|
|
1291
|
+
g && (l[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || l[e] !== (l[e] = r) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Sr] = r), r == null ? t.removeAttribute(e) : typeof r != "string" && pn(t).includes(e) ? t[e] = r : t.setAttribute(e, r));
|
|
1292
|
+
}
|
|
1293
|
+
var $e = /* @__PURE__ */ new Map();
|
|
1294
|
+
function pn(t) {
|
|
1295
|
+
var e = $e.get(t.nodeName);
|
|
1296
|
+
if (e) return e;
|
|
1297
|
+
$e.set(t.nodeName, e = []);
|
|
1298
|
+
for (var r, n = t, l = Element.prototype; l !== n; ) {
|
|
1299
|
+
r = wr(n);
|
|
1300
|
+
for (var s in r)
|
|
1301
|
+
r[s].set && e.push(s);
|
|
1302
|
+
n = yr(n);
|
|
1303
|
+
}
|
|
1304
|
+
return e;
|
|
1305
|
+
}
|
|
1306
|
+
function gn(t, e) {
|
|
1307
|
+
var r = t.__className, n = $n(e);
|
|
1308
|
+
g && t.className === n ? t.__className = n : (r !== n || g && t.className !== n) && (e == null ? t.removeAttribute("class") : t.className = n, t.__className = n);
|
|
1309
|
+
}
|
|
1310
|
+
function $n(t) {
|
|
1311
|
+
return t ?? "";
|
|
1312
|
+
}
|
|
1313
|
+
function mn(t) {
|
|
1314
|
+
for (var e = p, r = p; e !== null && !(e.f & (H | vt)); )
|
|
1315
|
+
e = e.parent;
|
|
1316
|
+
try {
|
|
1317
|
+
return Z(e), t();
|
|
1318
|
+
} finally {
|
|
1319
|
+
Z(r);
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
function G(t, e, r, n) {
|
|
1323
|
+
var A;
|
|
1324
|
+
var l = !Se, s = (r & _r) !== 0, i = !1, o;
|
|
1325
|
+
o = /** @type {V} */
|
|
1326
|
+
t[e];
|
|
1327
|
+
var u = Tr in t || ke in t, v = ((A = Nt(t, e)) == null ? void 0 : A.set) ?? (u && s && e in t ? (y) => t[e] = y : void 0), h = (
|
|
1328
|
+
/** @type {V} */
|
|
1329
|
+
n
|
|
1330
|
+
), a = !0, c = !1, f = () => (c = !0, a && (a = !1, h = /** @type {V} */
|
|
1331
|
+
n), h);
|
|
1332
|
+
o === void 0 && n !== void 0 && (v && l && Or(), o = f(), v && v(o));
|
|
1333
|
+
var d;
|
|
1334
|
+
if (d = () => {
|
|
1335
|
+
var y = (
|
|
1336
|
+
/** @type {V} */
|
|
1337
|
+
t[e]
|
|
1338
|
+
);
|
|
1339
|
+
return y === void 0 ? f() : (a = !0, c = !1, y);
|
|
1340
|
+
}, v) {
|
|
1341
|
+
var b = t.$$legacy;
|
|
1342
|
+
return function(y, T) {
|
|
1343
|
+
return arguments.length > 0 ? ((!T || b || i) && v(T ? d() : y), y) : d();
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
var k = !1, x = !1, _ = /* @__PURE__ */ ie(o), m = mn(
|
|
1347
|
+
() => /* @__PURE__ */ zr(() => {
|
|
1348
|
+
var y = d(), T = q(_);
|
|
1349
|
+
return k ? (k = !1, x = !0, T) : (x = !1, _.v = y);
|
|
1350
|
+
})
|
|
1351
|
+
);
|
|
1352
|
+
return function(y, T) {
|
|
1353
|
+
if (arguments.length > 0) {
|
|
1354
|
+
const lt = T ? q(m) : y;
|
|
1355
|
+
return m.equals(lt) || (k = !0, Mt(_, lt), c && h !== void 0 && (h = lt), nn(() => q(m))), y;
|
|
1356
|
+
}
|
|
1357
|
+
return q(m);
|
|
1358
|
+
};
|
|
1359
|
+
}
|
|
1360
|
+
function bn(t) {
|
|
1361
|
+
return new wn(t);
|
|
1362
|
+
}
|
|
1363
|
+
var B, R;
|
|
1364
|
+
class wn {
|
|
1365
|
+
/**
|
|
1366
|
+
* @param {ComponentConstructorOptions & {
|
|
1367
|
+
* component: any;
|
|
1368
|
+
* }} options
|
|
1369
|
+
*/
|
|
1370
|
+
constructor(e) {
|
|
1371
|
+
/** @type {any} */
|
|
1372
|
+
Yt(this, B);
|
|
1373
|
+
/** @type {Record<string, any>} */
|
|
1374
|
+
Yt(this, R);
|
|
1375
|
+
var s;
|
|
1376
|
+
var r = /* @__PURE__ */ new Map(), n = (i, o) => {
|
|
1377
|
+
var u = /* @__PURE__ */ ie(o);
|
|
1378
|
+
return r.set(i, u), u;
|
|
1379
|
+
};
|
|
1380
|
+
const l = new Proxy(
|
|
1381
|
+
{ ...e.props || {}, $$events: {} },
|
|
1382
|
+
{
|
|
1383
|
+
get(i, o) {
|
|
1384
|
+
return q(r.get(o) ?? n(o, Reflect.get(i, o)));
|
|
1385
|
+
},
|
|
1386
|
+
has(i, o) {
|
|
1387
|
+
return o === ke ? !0 : (q(r.get(o) ?? n(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
1388
|
+
},
|
|
1389
|
+
set(i, o, u) {
|
|
1390
|
+
return Mt(r.get(o) ?? n(o, u), u), Reflect.set(i, o, u);
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
);
|
|
1394
|
+
Ut(this, R, (e.hydrate ? an : tr)(e.component, {
|
|
1395
|
+
target: e.target,
|
|
1396
|
+
anchor: e.anchor,
|
|
1397
|
+
props: l,
|
|
1398
|
+
context: e.context,
|
|
1399
|
+
intro: e.intro ?? !1,
|
|
1400
|
+
recover: e.recover
|
|
1401
|
+
})), (!((s = e == null ? void 0 : e.props) != null && s.$$host) || e.sync === !1) && L(), Ut(this, B, l.$$events);
|
|
1402
|
+
for (const i of Object.keys(S(this, R)))
|
|
1403
|
+
i === "$set" || i === "$destroy" || i === "$on" || Ct(this, i, {
|
|
1404
|
+
get() {
|
|
1405
|
+
return S(this, R)[i];
|
|
1406
|
+
},
|
|
1407
|
+
/** @param {any} value */
|
|
1408
|
+
set(o) {
|
|
1409
|
+
S(this, R)[i] = o;
|
|
1410
|
+
},
|
|
1411
|
+
enumerable: !0
|
|
1412
|
+
});
|
|
1413
|
+
S(this, R).$set = /** @param {Record<string, any>} next */
|
|
1414
|
+
(i) => {
|
|
1415
|
+
Object.assign(l, i);
|
|
1416
|
+
}, S(this, R).$destroy = () => {
|
|
1417
|
+
un(S(this, R));
|
|
1418
|
+
};
|
|
1419
|
+
}
|
|
1420
|
+
/** @param {Record<string, any>} props */
|
|
1421
|
+
$set(e) {
|
|
1422
|
+
S(this, R).$set(e);
|
|
1423
|
+
}
|
|
1424
|
+
/**
|
|
1425
|
+
* @param {string} event
|
|
1426
|
+
* @param {(...args: any[]) => any} callback
|
|
1427
|
+
* @returns {any}
|
|
1428
|
+
*/
|
|
1429
|
+
$on(e, r) {
|
|
1430
|
+
S(this, B)[e] = S(this, B)[e] || [];
|
|
1431
|
+
const n = (...l) => r.call(this, ...l);
|
|
1432
|
+
return S(this, B)[e].push(n), () => {
|
|
1433
|
+
S(this, B)[e] = S(this, B)[e].filter(
|
|
1434
|
+
/** @param {any} fn */
|
|
1435
|
+
(l) => l !== n
|
|
1436
|
+
);
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1439
|
+
$destroy() {
|
|
1440
|
+
S(this, R).$destroy();
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
B = new WeakMap(), R = new WeakMap();
|
|
1444
|
+
let lr;
|
|
1445
|
+
typeof HTMLElement == "function" && (lr = class extends HTMLElement {
|
|
1446
|
+
/**
|
|
1447
|
+
* @param {*} $$componentCtor
|
|
1448
|
+
* @param {*} $$slots
|
|
1449
|
+
* @param {*} use_shadow_dom
|
|
1450
|
+
*/
|
|
1451
|
+
constructor(e, r, n) {
|
|
1452
|
+
super();
|
|
1453
|
+
/** The Svelte component constructor */
|
|
1454
|
+
O(this, "$$ctor");
|
|
1455
|
+
/** Slots */
|
|
1456
|
+
O(this, "$$s");
|
|
1457
|
+
/** @type {any} The Svelte component instance */
|
|
1458
|
+
O(this, "$$c");
|
|
1459
|
+
/** Whether or not the custom element is connected */
|
|
1460
|
+
O(this, "$$cn", !1);
|
|
1461
|
+
/** @type {Record<string, any>} Component props data */
|
|
1462
|
+
O(this, "$$d", {});
|
|
1463
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1464
|
+
O(this, "$$r", !1);
|
|
1465
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1466
|
+
O(this, "$$p_d", {});
|
|
1467
|
+
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
1468
|
+
O(this, "$$l", {});
|
|
1469
|
+
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
1470
|
+
O(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
1471
|
+
/** @type {any} The managed render effect for reflecting attributes */
|
|
1472
|
+
O(this, "$$me");
|
|
1473
|
+
this.$$ctor = e, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* @param {string} type
|
|
1477
|
+
* @param {EventListenerOrEventListenerObject} listener
|
|
1478
|
+
* @param {boolean | AddEventListenerOptions} [options]
|
|
1479
|
+
*/
|
|
1480
|
+
addEventListener(e, r, n) {
|
|
1481
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(r), this.$$c) {
|
|
1482
|
+
const l = this.$$c.$on(e, r);
|
|
1483
|
+
this.$$l_u.set(r, l);
|
|
1484
|
+
}
|
|
1485
|
+
super.addEventListener(e, r, n);
|
|
1486
|
+
}
|
|
1487
|
+
/**
|
|
1488
|
+
* @param {string} type
|
|
1489
|
+
* @param {EventListenerOrEventListenerObject} listener
|
|
1490
|
+
* @param {boolean | AddEventListenerOptions} [options]
|
|
1491
|
+
*/
|
|
1492
|
+
removeEventListener(e, r, n) {
|
|
1493
|
+
if (super.removeEventListener(e, r, n), this.$$c) {
|
|
1494
|
+
const l = this.$$l_u.get(r);
|
|
1495
|
+
l && (l(), this.$$l_u.delete(r));
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
async connectedCallback() {
|
|
1499
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
1500
|
+
let e = function(l) {
|
|
1501
|
+
return (s) => {
|
|
1502
|
+
const i = document.createElement("slot");
|
|
1503
|
+
l !== "default" && (i.name = l), rt(s, i);
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1506
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1507
|
+
return;
|
|
1508
|
+
const r = {}, n = yn(this);
|
|
1509
|
+
for (const l of this.$$s)
|
|
1510
|
+
l in n && (l === "default" && !this.$$d.children ? (this.$$d.children = e(l), r.default = !0) : r[l] = e(l));
|
|
1511
|
+
for (const l of this.attributes) {
|
|
1512
|
+
const s = this.$$g_p(l.name);
|
|
1513
|
+
s in this.$$d || (this.$$d[s] = Tt(s, l.value, this.$$p_d, "toProp"));
|
|
1514
|
+
}
|
|
1515
|
+
for (const l in this.$$p_d)
|
|
1516
|
+
!(l in this.$$d) && this[l] !== void 0 && (this.$$d[l] = this[l], delete this[l]);
|
|
1517
|
+
this.$$c = bn({
|
|
1518
|
+
component: this.$$ctor,
|
|
1519
|
+
target: this.shadowRoot || this,
|
|
1520
|
+
props: {
|
|
1521
|
+
...this.$$d,
|
|
1522
|
+
$$slots: r,
|
|
1523
|
+
$$host: this
|
|
1524
|
+
}
|
|
1525
|
+
}), this.$$me = Hr(() => {
|
|
1526
|
+
Yr(() => {
|
|
1527
|
+
var l;
|
|
1528
|
+
this.$$r = !0;
|
|
1529
|
+
for (const s of St(this.$$c)) {
|
|
1530
|
+
if (!((l = this.$$p_d[s]) != null && l.reflect)) continue;
|
|
1531
|
+
this.$$d[s] = this.$$c[s];
|
|
1532
|
+
const i = Tt(
|
|
1533
|
+
s,
|
|
1534
|
+
this.$$d[s],
|
|
1535
|
+
this.$$p_d,
|
|
1536
|
+
"toAttribute"
|
|
1537
|
+
);
|
|
1538
|
+
i == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, i);
|
|
1539
|
+
}
|
|
1540
|
+
this.$$r = !1;
|
|
1541
|
+
});
|
|
1542
|
+
});
|
|
1543
|
+
for (const l in this.$$l)
|
|
1544
|
+
for (const s of this.$$l[l]) {
|
|
1545
|
+
const i = this.$$c.$on(l, s);
|
|
1546
|
+
this.$$l_u.set(s, i);
|
|
1547
|
+
}
|
|
1548
|
+
this.$$l = {};
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
1552
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
1553
|
+
/**
|
|
1554
|
+
* @param {string} attr
|
|
1555
|
+
* @param {string} _oldValue
|
|
1556
|
+
* @param {string} newValue
|
|
1557
|
+
*/
|
|
1558
|
+
attributeChangedCallback(e, r, n) {
|
|
1559
|
+
var l;
|
|
1560
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Tt(e, n, this.$$p_d, "toProp"), (l = this.$$c) == null || l.$set({ [e]: this.$$d[e] }));
|
|
1561
|
+
}
|
|
1562
|
+
disconnectedCallback() {
|
|
1563
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
1564
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$me(), this.$$c = void 0);
|
|
1565
|
+
});
|
|
1566
|
+
}
|
|
1567
|
+
/**
|
|
1568
|
+
* @param {string} attribute_name
|
|
1569
|
+
*/
|
|
1570
|
+
$$g_p(e) {
|
|
1571
|
+
return St(this.$$p_d).find(
|
|
1572
|
+
(r) => this.$$p_d[r].attribute === e || !this.$$p_d[r].attribute && r.toLowerCase() === e
|
|
1573
|
+
) || e;
|
|
1574
|
+
}
|
|
1575
|
+
});
|
|
1576
|
+
function Tt(t, e, r, n) {
|
|
1577
|
+
var s;
|
|
1578
|
+
const l = (s = r[t]) == null ? void 0 : s.type;
|
|
1579
|
+
if (e = l === "Boolean" && typeof e != "boolean" ? e != null : e, !n || !r[t])
|
|
1580
|
+
return e;
|
|
1581
|
+
if (n === "toAttribute")
|
|
1582
|
+
switch (l) {
|
|
1583
|
+
case "Object":
|
|
1584
|
+
case "Array":
|
|
1585
|
+
return e == null ? null : JSON.stringify(e);
|
|
1586
|
+
case "Boolean":
|
|
1587
|
+
return e ? "" : null;
|
|
1588
|
+
case "Number":
|
|
1589
|
+
return e ?? null;
|
|
1590
|
+
default:
|
|
1591
|
+
return e;
|
|
1592
|
+
}
|
|
1593
|
+
else
|
|
1594
|
+
switch (l) {
|
|
1595
|
+
case "Object":
|
|
1596
|
+
case "Array":
|
|
1597
|
+
return e && JSON.parse(e);
|
|
1598
|
+
case "Boolean":
|
|
1599
|
+
return e;
|
|
1600
|
+
// conversion already handled above
|
|
1601
|
+
case "Number":
|
|
1602
|
+
return e != null ? +e : e;
|
|
1603
|
+
default:
|
|
1604
|
+
return e;
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
function yn(t) {
|
|
1608
|
+
const e = {};
|
|
1609
|
+
return t.childNodes.forEach((r) => {
|
|
1610
|
+
e[
|
|
1611
|
+
/** @type {Element} node */
|
|
1612
|
+
r.slot || "default"
|
|
1613
|
+
] = !0;
|
|
1614
|
+
}), e;
|
|
1615
|
+
}
|
|
1616
|
+
function sr(t, e, r, n, l, s) {
|
|
1617
|
+
let i = class extends lr {
|
|
1618
|
+
constructor() {
|
|
1619
|
+
super(t, r, l), this.$$p_d = e;
|
|
1620
|
+
}
|
|
1621
|
+
static get observedAttributes() {
|
|
1622
|
+
return St(e).map(
|
|
1623
|
+
(o) => (e[o].attribute || o).toLowerCase()
|
|
1624
|
+
);
|
|
1625
|
+
}
|
|
1626
|
+
};
|
|
1627
|
+
return St(e).forEach((o) => {
|
|
1628
|
+
Ct(i.prototype, o, {
|
|
1629
|
+
get() {
|
|
1630
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
1631
|
+
},
|
|
1632
|
+
set(u) {
|
|
1633
|
+
var a;
|
|
1634
|
+
u = Tt(o, u, e), this.$$d[o] = u;
|
|
1635
|
+
var v = this.$$c;
|
|
1636
|
+
if (v) {
|
|
1637
|
+
var h = (a = Nt(v, o)) == null ? void 0 : a.get;
|
|
1638
|
+
h ? v[o] = u : v.$set({ [o]: u });
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
});
|
|
1642
|
+
}), n.forEach((o) => {
|
|
1643
|
+
Ct(i.prototype, o, {
|
|
1644
|
+
get() {
|
|
1645
|
+
var u;
|
|
1646
|
+
return (u = this.$$c) == null ? void 0 : u[o];
|
|
1647
|
+
}
|
|
1648
|
+
});
|
|
1649
|
+
}), t.element = /** @type {any} */
|
|
1650
|
+
i, i;
|
|
1651
|
+
}
|
|
1652
|
+
const xn = [
|
|
1653
|
+
{
|
|
1654
|
+
name: "nostter",
|
|
1655
|
+
url: "https://nostter.app/post?content={text}&url={url}&title={title}",
|
|
1656
|
+
icon: "https://nostter.app/favicon.ico"
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
name: "lumilumi",
|
|
1660
|
+
url: "https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",
|
|
1661
|
+
icon: "https://lumilumi.vercel.app/favicon.ico"
|
|
1662
|
+
}
|
|
1663
|
+
];
|
|
1664
|
+
var En = (t) => t.stopPropagation(), kn = (t, e, r) => e(q(r).url), Tn = /* @__PURE__ */ yt('<button class="item svelte-qvlz7l"><img> </button>'), Sn = /* @__PURE__ */ yt('<div class="overlay svelte-qvlz7l"><div class="inner svelte-qvlz7l"><button class="close-button svelte-qvlz7l" aria-label="Close">✖</button> <h2 class="title svelte-qvlz7l">Share</h2> <div class="list svelte-qvlz7l"></div></div></div>');
|
|
1665
|
+
const Cn = {
|
|
1666
|
+
hash: "svelte-qvlz7l",
|
|
1667
|
+
code: `
|
|
1668
|
+
/* オーバーレイ背景 */.overlay.svelte-qvlz7l {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.3); /* 少し濃い背景 */display:flex;justify-content:center;align-items:center;}
|
|
1669
|
+
|
|
1670
|
+
/* ダイアログ本体 */.inner.svelte-qvlz7l {display:flex;flex-direction:column;position:relative;background-color:#ffffff;padding:1.5rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
|
|
1671
|
+
|
|
1672
|
+
/* タイトル */.title.svelte-qvlz7l {margin:0;font-size:1.25rem;font-weight:bold;text-align:center;color:#374151; /* グレー700 */}
|
|
1673
|
+
|
|
1674
|
+
/* リスト */.list.svelte-qvlz7l {display:flex;flex-direction:column;gap:0.75rem; /* ゆったりした間隔 */}
|
|
1675
|
+
|
|
1676
|
+
/* リストアイテム */.item.svelte-qvlz7l {display:flex;align-items:center;gap:0.5rem;padding:0.75rem 1rem;background-color:#f9fafb; /* グレー100 */border:1px solid #d1d5db; /* グレー300 */border-radius:8px;font-size:1rem;font-weight:medium;cursor:pointer;transition:background-color 0.2s ease,
|
|
1677
|
+
box-shadow 0.2s ease;}.item.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー300 */}
|
|
1678
|
+
|
|
1679
|
+
/* バツボタン */.close-button.svelte-qvlz7l {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:#f3f4f6; /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:#374151; /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
|
|
1680
|
+
transform 0.1s ease;}.close-button.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー300 */}.close-button.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`
|
|
1681
|
+
};
|
|
1682
|
+
function ir(t, e) {
|
|
1683
|
+
ue(e, !0), nr(t, Cn);
|
|
1684
|
+
let r = G(e, "url", 7, ""), n = G(e, "text", 7, ""), l = G(e, "shareTitle", 7, ""), s = G(e, "handleClose", 7);
|
|
1685
|
+
const i = (a) => {
|
|
1686
|
+
const c = a.replace("{url}", encodeURIComponent(r())).replace("{title}", encodeURIComponent(l())).replace("{text}", encodeURIComponent(n()));
|
|
1687
|
+
console.log(c), window.open(c, "_blank", "noreferrer"), s()();
|
|
1688
|
+
};
|
|
1689
|
+
var o = Sn();
|
|
1690
|
+
o.__click = function(...a) {
|
|
1691
|
+
var c;
|
|
1692
|
+
(c = s()) == null || c.apply(this, a);
|
|
1693
|
+
};
|
|
1694
|
+
var u = ot(o);
|
|
1695
|
+
u.__click = [En];
|
|
1696
|
+
var v = ot(u);
|
|
1697
|
+
v.__click = function(...a) {
|
|
1698
|
+
var c;
|
|
1699
|
+
(c = s()) == null || c.apply(this, a);
|
|
1700
|
+
};
|
|
1701
|
+
var h = Xt(v, 4);
|
|
1702
|
+
return vn(h, 21, () => xn, fn, (a, c) => {
|
|
1703
|
+
var f = Tn();
|
|
1704
|
+
f.__click = [kn, i, c];
|
|
1705
|
+
var d = ot(f);
|
|
1706
|
+
Gt(d, "width", 24);
|
|
1707
|
+
var b = Xt(d);
|
|
1708
|
+
Q(f), Me(() => {
|
|
1709
|
+
Gt(d, "src", q(c).icon), Gt(d, "alt", q(c).name), on(b, ` ${q(c).name ?? ""}`);
|
|
1710
|
+
}), rt(a, f);
|
|
1711
|
+
}), Q(h), Q(u), Q(o), rt(t, o), fe({
|
|
1712
|
+
get url() {
|
|
1713
|
+
return r();
|
|
1714
|
+
},
|
|
1715
|
+
set url(a = "") {
|
|
1716
|
+
r(a), L();
|
|
1717
|
+
},
|
|
1718
|
+
get text() {
|
|
1719
|
+
return n();
|
|
1720
|
+
},
|
|
1721
|
+
set text(a = "") {
|
|
1722
|
+
n(a), L();
|
|
1723
|
+
},
|
|
1724
|
+
get shareTitle() {
|
|
1725
|
+
return l();
|
|
1726
|
+
},
|
|
1727
|
+
set shareTitle(a = "") {
|
|
1728
|
+
l(a), L();
|
|
1729
|
+
},
|
|
1730
|
+
get handleClose() {
|
|
1731
|
+
return s();
|
|
1732
|
+
},
|
|
1733
|
+
set handleClose(a) {
|
|
1734
|
+
s(a), L();
|
|
1735
|
+
}
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1738
|
+
Ze(["click"]);
|
|
1739
|
+
customElements.define("nostr-share-dialog", sr(
|
|
1740
|
+
ir,
|
|
1741
|
+
{
|
|
1742
|
+
url: {},
|
|
1743
|
+
text: {},
|
|
1744
|
+
shareTitle: {},
|
|
1745
|
+
handleClose: {}
|
|
1746
|
+
},
|
|
1747
|
+
[],
|
|
1748
|
+
[],
|
|
1749
|
+
!0
|
|
1750
|
+
));
|
|
1751
|
+
const me = `<svg
|
|
1752
|
+
version="1.1"
|
|
1753
|
+
id="_8"
|
|
1754
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1755
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
1756
|
+
x="0px"
|
|
1757
|
+
y="0px"
|
|
1758
|
+
viewBox="0 0 256 256"
|
|
1759
|
+
style="enable-background:new 0 0 256 256;"
|
|
1760
|
+
xml:space="preserve"
|
|
1761
|
+
>
|
|
1762
|
+
<style type="text/css">
|
|
1763
|
+
.st0 {
|
|
1764
|
+
fill: none;
|
|
1765
|
+
}
|
|
1766
|
+
.st1 {
|
|
1767
|
+
fill: #ffffff;
|
|
1768
|
+
}
|
|
1769
|
+
.st2 {
|
|
1770
|
+
fill: #662482;
|
|
1771
|
+
}
|
|
1772
|
+
</style>
|
|
1773
|
+
<g>
|
|
1774
|
+
<path
|
|
1775
|
+
class="st0"
|
|
1776
|
+
d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
|
|
1777
|
+
c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8
|
|
1778
|
+
c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5
|
|
1779
|
+
c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"
|
|
1780
|
+
/>
|
|
1781
|
+
<circle class="st1" cx="137.9" cy="99" r="12.1" />
|
|
1782
|
+
<path
|
|
1783
|
+
class="st1"
|
|
1784
|
+
d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
|
|
1785
|
+
c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4
|
|
1786
|
+
c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5
|
|
1787
|
+
c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5
|
|
1788
|
+
c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"
|
|
1789
|
+
/>
|
|
1790
|
+
<path
|
|
1791
|
+
class="st2"
|
|
1792
|
+
d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
|
|
1793
|
+
c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2
|
|
1794
|
+
c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8
|
|
1795
|
+
C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5
|
|
1796
|
+
c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4
|
|
1797
|
+
c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7
|
|
1798
|
+
c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5
|
|
1799
|
+
c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99
|
|
1800
|
+
s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"
|
|
1801
|
+
/>
|
|
1802
|
+
</g>
|
|
1803
|
+
</svg>`, Nn = (t, e) => {
|
|
1804
|
+
Mt(e, !0);
|
|
1805
|
+
};
|
|
1806
|
+
var An = /* @__PURE__ */ yt('<div class="nostrShare-svg svelte-16pn564"><!></div>'), Rn = /* @__PURE__ */ yt('<div class="nostrShare-svg svelte-16pn564"><!></div> <span class="nostrShare-text svelte-16pn564">Share</span>', 1), On = /* @__PURE__ */ yt("<button><!></button> <!>", 1);
|
|
1807
|
+
const qn = {
|
|
1808
|
+
hash: "svelte-16pn564",
|
|
1809
|
+
code: `
|
|
1810
|
+
/* ボタン全体の基本スタイル */.nostrShare-button.svelte-16pn564,
|
|
1811
|
+
.nostrShare-icon.svelte-16pn564 {display:flex;align-items:center;justify-content:center;border:none;outline:none;cursor:pointer;transition:all 0.2s ease-in-out;}
|
|
1812
|
+
|
|
1813
|
+
/* ボタンスタイル */.nostrShare-button.svelte-16pn564 {padding:8px 16px;margin:4px;font-family:-apple-system,
|
|
1814
|
+
BlinkMacSystemFont,
|
|
1815
|
+
Helvetica Neue,
|
|
1816
|
+
Arial,
|
|
1817
|
+
Hiragino Kaku Gothic ProN,
|
|
1818
|
+
Hiragino Sans,
|
|
1819
|
+
Meiryo,
|
|
1820
|
+
sans-serif;font-weight:bold;border-radius:8px;background-color:#f3f4f6; /* グレー */color:#374151; /* ダークグレー */}.nostrShare-button.svelte-16pn564:hover {background-color:#e5e7eb; /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-16pn564:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
|
|
1821
|
+
|
|
1822
|
+
/* テキスト用スタイル */.nostrShare-text.svelte-16pn564 {margin-left:8px;font-size:14px;}
|
|
1823
|
+
|
|
1824
|
+
/* アイコンスタイル */.nostrShare-icon.svelte-16pn564 {width:40px;height:40px;margin:4px;border-radius:50%;background-color:#f3f4f6;color:#374151;}.nostrShare-icon.svelte-16pn564:hover {background-color:#e5e7eb;box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}.nostrShare-icon.svelte-16pn564:active {background-color:#d1d5db;transform:scale(0.95);}
|
|
1825
|
+
|
|
1826
|
+
/* アイコン内部のSVG */.nostrShare-svg.svelte-16pn564 {width:24px;height:24px;display:flex;align-items:center;justify-content:center;}`
|
|
1827
|
+
};
|
|
1828
|
+
function Dn(t, e) {
|
|
1829
|
+
ue(e, !0), nr(t, qn);
|
|
1830
|
+
let r = G(e, "url", 7), n = G(e, "text", 7), l = G(e, "shareTitle", 7), s = G(e, "icon", 7, !1), i = Ir(!1);
|
|
1831
|
+
const o = () => {
|
|
1832
|
+
Mt(i, !1);
|
|
1833
|
+
};
|
|
1834
|
+
var u = On(), v = jt(u);
|
|
1835
|
+
v.__click = [Nn, i];
|
|
1836
|
+
var h = ot(v);
|
|
1837
|
+
_n(h, e, "default", {}, (f) => {
|
|
1838
|
+
var d = sn(), b = jt(d);
|
|
1839
|
+
{
|
|
1840
|
+
var k = (_) => {
|
|
1841
|
+
var m = An(), A = ot(m);
|
|
1842
|
+
ge(A, () => me), Q(m), rt(_, m);
|
|
1843
|
+
}, x = (_) => {
|
|
1844
|
+
var m = Rn(), A = jt(m), y = ot(A);
|
|
1845
|
+
ge(y, () => me), Q(A), Lr(2), rt(_, m);
|
|
1846
|
+
};
|
|
1847
|
+
_e(b, (_) => {
|
|
1848
|
+
s() ? _(k) : _(x, !1);
|
|
1849
|
+
});
|
|
1850
|
+
}
|
|
1851
|
+
rt(f, d);
|
|
1852
|
+
}), Q(v);
|
|
1853
|
+
var a = Xt(v, 2);
|
|
1854
|
+
{
|
|
1855
|
+
var c = (f) => {
|
|
1856
|
+
ir(f, {
|
|
1857
|
+
handleClose: o,
|
|
1858
|
+
get url() {
|
|
1859
|
+
return r();
|
|
1860
|
+
},
|
|
1861
|
+
get text() {
|
|
1862
|
+
return n();
|
|
1863
|
+
},
|
|
1864
|
+
get shareTitle() {
|
|
1865
|
+
return l();
|
|
1866
|
+
}
|
|
1867
|
+
});
|
|
1868
|
+
};
|
|
1869
|
+
_e(a, (f) => {
|
|
1870
|
+
q(i) && f(c);
|
|
1871
|
+
});
|
|
1872
|
+
}
|
|
1873
|
+
return Me(() => gn(v, `${(e.class ? e.class : s() ? "nostrShare-icon" : "nostrShare-button") ?? ""} svelte-16pn564`)), rt(t, u), fe({
|
|
1874
|
+
get url() {
|
|
1875
|
+
return r();
|
|
1876
|
+
},
|
|
1877
|
+
set url(f) {
|
|
1878
|
+
r(f), L();
|
|
1879
|
+
},
|
|
1880
|
+
get text() {
|
|
1881
|
+
return n();
|
|
1882
|
+
},
|
|
1883
|
+
set text(f) {
|
|
1884
|
+
n(f), L();
|
|
1885
|
+
},
|
|
1886
|
+
get shareTitle() {
|
|
1887
|
+
return l();
|
|
1888
|
+
},
|
|
1889
|
+
set shareTitle(f) {
|
|
1890
|
+
l(f), L();
|
|
1891
|
+
},
|
|
1892
|
+
get icon() {
|
|
1893
|
+
return s();
|
|
1894
|
+
},
|
|
1895
|
+
set icon(f = !1) {
|
|
1896
|
+
s(f), L();
|
|
1897
|
+
}
|
|
1898
|
+
});
|
|
1899
|
+
}
|
|
1900
|
+
Ze(["click"]);
|
|
1901
|
+
customElements.define("nostr-share", sr(Dn, { url: {}, text: {}, shareTitle: {}, icon: {} }, ["default"], [], !0));
|
|
1902
|
+
export {
|
|
1903
|
+
ir as Dialog,
|
|
1904
|
+
Dn as NostrShare
|
|
1905
|
+
};
|