@nil-/xit 0.4.15 → 0.4.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.
- package/assets/bundler.js +8 -1
- package/assets/index.js +2 -1
- package/assets/svelte/index.js +134 -134
- package/assets/svelte/internal/client.js +60 -60
- package/assets/svelte/motion.js +136 -168
- package/assets/svelte/reactivity.js +481 -0
- package/assets/svelte/store.js +2 -1
- package/package.json +1 -1
- package/test/Main.svelte +12 -12
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
var le = Object.getPrototypeOf;
|
|
2
|
+
var de = Reflect.get;
|
|
3
|
+
var ee = (o) => {
|
|
4
|
+
throw TypeError(o);
|
|
5
|
+
};
|
|
6
|
+
var H = (o, a, e) => a.has(o) || ee("Cannot " + e);
|
|
7
|
+
var s = (o, a, e) => (H(o, a, "read from private field"), e ? e.call(o) : a.get(o)), n = (o, a, e) => a.has(o) ? ee("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(o) : a.set(o, e), b = (o, a, e, t) => (H(o, a, "write to private field"), t ? t.call(o, e) : a.set(o, e), e), d = (o, a, e) => (H(o, a, "access private method"), e);
|
|
8
|
+
var se = (o, a, e) => de(le(o), e, a);
|
|
9
|
+
import { b as p, f as te, g as r, d as re, k as ve, a as u, o as me } from "./index.js";
|
|
10
|
+
import "./internal/client.js";
|
|
11
|
+
import { i as f, c as ge } from "./store.js";
|
|
12
|
+
var ie = !1, k, N, Q, V, oe;
|
|
13
|
+
const X = class X extends Date {
|
|
14
|
+
/** @param {any[]} params */
|
|
15
|
+
constructor(...e) {
|
|
16
|
+
super(...e);
|
|
17
|
+
n(this, V);
|
|
18
|
+
n(this, k, p(super.getTime()));
|
|
19
|
+
/** @type {Map<keyof Date, Source<unknown>>} */
|
|
20
|
+
n(this, N, /* @__PURE__ */ new Map());
|
|
21
|
+
n(this, Q, te);
|
|
22
|
+
ie || d(this, V, oe).call(this);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
k = new WeakMap(), N = new WeakMap(), Q = new WeakMap(), V = new WeakSet(), oe = function() {
|
|
26
|
+
ie = !0;
|
|
27
|
+
var e = X.prototype, t = Date.prototype, i = (
|
|
28
|
+
/** @type {Array<keyof Date & string>} */
|
|
29
|
+
Object.getOwnPropertyNames(t)
|
|
30
|
+
);
|
|
31
|
+
for (const h of i)
|
|
32
|
+
(h.startsWith("get") || h.startsWith("to") || h === "valueOf") && (e[h] = function(...z) {
|
|
33
|
+
if (z.length > 0)
|
|
34
|
+
return r(s(this, k)), t[h].apply(this, z);
|
|
35
|
+
var _ = s(this, N).get(h);
|
|
36
|
+
if (_ === void 0) {
|
|
37
|
+
const M = te;
|
|
38
|
+
re(s(this, Q)), _ = ve(() => (r(s(this, k)), t[h].apply(this, z))), s(this, N).set(h, _), re(M);
|
|
39
|
+
}
|
|
40
|
+
return r(_);
|
|
41
|
+
}), h.startsWith("set") && (e[h] = function(...z) {
|
|
42
|
+
var _ = t[h].apply(this, z);
|
|
43
|
+
return u(s(this, k), t.getTime.call(this)), _;
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
let he = X;
|
|
47
|
+
var we = ["forEach", "isDisjointFrom", "isSubsetOf", "isSupersetOf"], ze = ["difference", "intersection", "symmetricDifference", "union"], ue = !1, D, l, P, B, pe;
|
|
48
|
+
const G = class G extends Set {
|
|
49
|
+
/**
|
|
50
|
+
* @param {Iterable<T> | null | undefined} [value]
|
|
51
|
+
*/
|
|
52
|
+
constructor(e) {
|
|
53
|
+
super();
|
|
54
|
+
n(this, B);
|
|
55
|
+
/** @type {Map<T, Source<boolean>>} */
|
|
56
|
+
n(this, D, /* @__PURE__ */ new Map());
|
|
57
|
+
n(this, l, p(0));
|
|
58
|
+
n(this, P, p(0));
|
|
59
|
+
if (e) {
|
|
60
|
+
for (var t of e)
|
|
61
|
+
super.add(t);
|
|
62
|
+
s(this, P).v = super.size;
|
|
63
|
+
}
|
|
64
|
+
ue || d(this, B, pe).call(this);
|
|
65
|
+
}
|
|
66
|
+
/** @param {T} value */
|
|
67
|
+
has(e) {
|
|
68
|
+
var t = super.has(e), i = s(this, D), h = i.get(e);
|
|
69
|
+
if (h === void 0) {
|
|
70
|
+
if (!t)
|
|
71
|
+
return r(s(this, l)), !1;
|
|
72
|
+
h = p(!0), i.set(e, h);
|
|
73
|
+
}
|
|
74
|
+
return r(h), t;
|
|
75
|
+
}
|
|
76
|
+
/** @param {T} value */
|
|
77
|
+
add(e) {
|
|
78
|
+
return super.has(e) || (super.add(e), u(s(this, P), super.size), f(s(this, l))), this;
|
|
79
|
+
}
|
|
80
|
+
/** @param {T} value */
|
|
81
|
+
delete(e) {
|
|
82
|
+
var t = super.delete(e), i = s(this, D), h = i.get(e);
|
|
83
|
+
return h !== void 0 && (i.delete(e), u(h, !1)), t && (u(s(this, P), super.size), f(s(this, l))), t;
|
|
84
|
+
}
|
|
85
|
+
clear() {
|
|
86
|
+
if (super.size !== 0) {
|
|
87
|
+
super.clear();
|
|
88
|
+
var e = s(this, D);
|
|
89
|
+
for (var t of e.values())
|
|
90
|
+
u(t, !1);
|
|
91
|
+
e.clear(), u(s(this, P), 0), f(s(this, l));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
keys() {
|
|
95
|
+
return this.values();
|
|
96
|
+
}
|
|
97
|
+
values() {
|
|
98
|
+
return r(s(this, l)), super.values();
|
|
99
|
+
}
|
|
100
|
+
entries() {
|
|
101
|
+
return r(s(this, l)), super.entries();
|
|
102
|
+
}
|
|
103
|
+
[Symbol.iterator]() {
|
|
104
|
+
return this.keys();
|
|
105
|
+
}
|
|
106
|
+
get size() {
|
|
107
|
+
return r(s(this, P));
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
D = new WeakMap(), l = new WeakMap(), P = new WeakMap(), B = new WeakSet(), // We init as part of the first instance so that we can treeshake this class
|
|
111
|
+
pe = function() {
|
|
112
|
+
ue = !0;
|
|
113
|
+
var e = G.prototype, t = Set.prototype;
|
|
114
|
+
for (const i of we)
|
|
115
|
+
e[i] = function(...h) {
|
|
116
|
+
return r(s(this, l)), t[i].apply(this, h);
|
|
117
|
+
};
|
|
118
|
+
for (const i of ze)
|
|
119
|
+
e[i] = function(...h) {
|
|
120
|
+
r(s(this, l));
|
|
121
|
+
var z = (
|
|
122
|
+
/** @type {Set<T>} */
|
|
123
|
+
t[i].apply(this, h)
|
|
124
|
+
);
|
|
125
|
+
return new G(z);
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
let ae = G;
|
|
129
|
+
var v, m, y, W, J;
|
|
130
|
+
const Y = class Y extends Map {
|
|
131
|
+
/**
|
|
132
|
+
* @param {Iterable<readonly [K, V]> | null | undefined} [value]
|
|
133
|
+
*/
|
|
134
|
+
constructor(e) {
|
|
135
|
+
super();
|
|
136
|
+
n(this, W);
|
|
137
|
+
/** @type {Map<K, Source<number>>} */
|
|
138
|
+
n(this, v, /* @__PURE__ */ new Map());
|
|
139
|
+
n(this, m, p(0));
|
|
140
|
+
n(this, y, p(0));
|
|
141
|
+
if (e) {
|
|
142
|
+
for (var [t, i] of e)
|
|
143
|
+
super.set(t, i);
|
|
144
|
+
s(this, y).v = super.size;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
/** @param {K} key */
|
|
148
|
+
has(e) {
|
|
149
|
+
var t = s(this, v), i = t.get(e);
|
|
150
|
+
if (i === void 0) {
|
|
151
|
+
var h = super.get(e);
|
|
152
|
+
if (h !== void 0)
|
|
153
|
+
i = p(0), t.set(e, i);
|
|
154
|
+
else
|
|
155
|
+
return r(s(this, m)), !1;
|
|
156
|
+
}
|
|
157
|
+
return r(i), !0;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @param {(value: V, key: K, map: Map<K, V>) => void} callbackfn
|
|
161
|
+
* @param {any} [this_arg]
|
|
162
|
+
*/
|
|
163
|
+
forEach(e, t) {
|
|
164
|
+
d(this, W, J).call(this), super.forEach(e, t);
|
|
165
|
+
}
|
|
166
|
+
/** @param {K} key */
|
|
167
|
+
get(e) {
|
|
168
|
+
var t = s(this, v), i = t.get(e);
|
|
169
|
+
if (i === void 0) {
|
|
170
|
+
var h = super.get(e);
|
|
171
|
+
if (h !== void 0)
|
|
172
|
+
i = p(0), t.set(e, i);
|
|
173
|
+
else {
|
|
174
|
+
r(s(this, m));
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return r(i), super.get(e);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* @param {K} key
|
|
182
|
+
* @param {V} value
|
|
183
|
+
* */
|
|
184
|
+
set(e, t) {
|
|
185
|
+
var q;
|
|
186
|
+
var i = s(this, v), h = i.get(e), z = super.get(e), _ = super.set(e, t), M = s(this, m);
|
|
187
|
+
if (h === void 0)
|
|
188
|
+
i.set(e, p(0)), u(s(this, y), super.size), f(M);
|
|
189
|
+
else if (z !== t) {
|
|
190
|
+
f(h);
|
|
191
|
+
var Z = M.reactions === null ? null : new Set(M.reactions), ce = Z === null || !((q = h.reactions) != null && q.every(
|
|
192
|
+
(fe) => (
|
|
193
|
+
/** @type {NonNullable<typeof v_reactions>} */
|
|
194
|
+
Z.has(fe)
|
|
195
|
+
)
|
|
196
|
+
));
|
|
197
|
+
ce && f(M);
|
|
198
|
+
}
|
|
199
|
+
return _;
|
|
200
|
+
}
|
|
201
|
+
/** @param {K} key */
|
|
202
|
+
delete(e) {
|
|
203
|
+
var t = s(this, v), i = t.get(e), h = super.delete(e);
|
|
204
|
+
return i !== void 0 && (t.delete(e), u(s(this, y), super.size), u(i, -1), f(s(this, m))), h;
|
|
205
|
+
}
|
|
206
|
+
clear() {
|
|
207
|
+
if (super.size !== 0) {
|
|
208
|
+
super.clear();
|
|
209
|
+
var e = s(this, v);
|
|
210
|
+
u(s(this, y), 0);
|
|
211
|
+
for (var t of e.values())
|
|
212
|
+
u(t, -1);
|
|
213
|
+
f(s(this, m)), e.clear();
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
keys() {
|
|
217
|
+
return r(s(this, m)), super.keys();
|
|
218
|
+
}
|
|
219
|
+
values() {
|
|
220
|
+
return d(this, W, J).call(this), super.values();
|
|
221
|
+
}
|
|
222
|
+
entries() {
|
|
223
|
+
return d(this, W, J).call(this), super.entries();
|
|
224
|
+
}
|
|
225
|
+
[Symbol.iterator]() {
|
|
226
|
+
return this.entries();
|
|
227
|
+
}
|
|
228
|
+
get size() {
|
|
229
|
+
return r(s(this, y)), super.size;
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
v = new WeakMap(), m = new WeakMap(), y = new WeakMap(), W = new WeakSet(), J = function() {
|
|
233
|
+
r(s(this, m));
|
|
234
|
+
var e = s(this, v);
|
|
235
|
+
if (s(this, y).v !== e.size)
|
|
236
|
+
for (var t of se(Y.prototype, this, "keys").call(this))
|
|
237
|
+
e.has(t) || e.set(t, p(0));
|
|
238
|
+
for (var [, i] of s(this, v))
|
|
239
|
+
r(i);
|
|
240
|
+
};
|
|
241
|
+
let ne = Y;
|
|
242
|
+
const I = Symbol();
|
|
243
|
+
var c, T, S, R, $;
|
|
244
|
+
class ye extends URLSearchParams {
|
|
245
|
+
constructor() {
|
|
246
|
+
super(...arguments);
|
|
247
|
+
n(this, R);
|
|
248
|
+
n(this, c, p(0));
|
|
249
|
+
n(this, T, Se());
|
|
250
|
+
n(this, S, !1);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* @param {URLSearchParams} params
|
|
254
|
+
* @internal
|
|
255
|
+
*/
|
|
256
|
+
[I](e) {
|
|
257
|
+
if (!s(this, S)) {
|
|
258
|
+
b(this, S, !0);
|
|
259
|
+
for (const t of [...super.keys()])
|
|
260
|
+
super.delete(t);
|
|
261
|
+
for (const [t, i] of e)
|
|
262
|
+
super.append(t, i);
|
|
263
|
+
f(s(this, c)), b(this, S, !1);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @param {string} name
|
|
268
|
+
* @param {string} value
|
|
269
|
+
* @returns {void}
|
|
270
|
+
*/
|
|
271
|
+
append(e, t) {
|
|
272
|
+
super.append(e, t), d(this, R, $).call(this), f(s(this, c));
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* @param {string} name
|
|
276
|
+
* @param {string=} value
|
|
277
|
+
* @returns {void}
|
|
278
|
+
*/
|
|
279
|
+
delete(e, t) {
|
|
280
|
+
var i = super.has(e, t);
|
|
281
|
+
super.delete(e, t), i && (d(this, R, $).call(this), f(s(this, c)));
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* @param {string} name
|
|
285
|
+
* @returns {string|null}
|
|
286
|
+
*/
|
|
287
|
+
get(e) {
|
|
288
|
+
return r(s(this, c)), super.get(e);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* @param {string} name
|
|
292
|
+
* @returns {string[]}
|
|
293
|
+
*/
|
|
294
|
+
getAll(e) {
|
|
295
|
+
return r(s(this, c)), super.getAll(e);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* @param {string} name
|
|
299
|
+
* @param {string=} value
|
|
300
|
+
* @returns {boolean}
|
|
301
|
+
*/
|
|
302
|
+
has(e, t) {
|
|
303
|
+
return r(s(this, c)), super.has(e, t);
|
|
304
|
+
}
|
|
305
|
+
keys() {
|
|
306
|
+
return r(s(this, c)), super.keys();
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* @param {string} name
|
|
310
|
+
* @param {string} value
|
|
311
|
+
* @returns {void}
|
|
312
|
+
*/
|
|
313
|
+
set(e, t) {
|
|
314
|
+
var i = super.getAll(e).join("");
|
|
315
|
+
super.set(e, t), i !== super.getAll(e).join("") && (d(this, R, $).call(this), f(s(this, c)));
|
|
316
|
+
}
|
|
317
|
+
sort() {
|
|
318
|
+
super.sort(), d(this, R, $).call(this), f(s(this, c));
|
|
319
|
+
}
|
|
320
|
+
toString() {
|
|
321
|
+
return r(s(this, c)), super.toString();
|
|
322
|
+
}
|
|
323
|
+
values() {
|
|
324
|
+
return r(s(this, c)), super.values();
|
|
325
|
+
}
|
|
326
|
+
entries() {
|
|
327
|
+
return r(s(this, c)), super.entries();
|
|
328
|
+
}
|
|
329
|
+
[Symbol.iterator]() {
|
|
330
|
+
return this.entries();
|
|
331
|
+
}
|
|
332
|
+
get size() {
|
|
333
|
+
return r(s(this, c)), super.size;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
c = new WeakMap(), T = new WeakMap(), S = new WeakMap(), R = new WeakSet(), $ = function() {
|
|
337
|
+
if (!s(this, T) || s(this, S)) return;
|
|
338
|
+
b(this, S, !0);
|
|
339
|
+
const e = this.toString();
|
|
340
|
+
s(this, T).search = e && `?${e}`, b(this, S, !1);
|
|
341
|
+
};
|
|
342
|
+
let K = null;
|
|
343
|
+
function Se() {
|
|
344
|
+
return K;
|
|
345
|
+
}
|
|
346
|
+
var x, L, O, g, w, A, E, U, j;
|
|
347
|
+
class Ae extends URL {
|
|
348
|
+
/**
|
|
349
|
+
* @param {string | URL} url
|
|
350
|
+
* @param {string | URL} [base]
|
|
351
|
+
*/
|
|
352
|
+
constructor(e, t) {
|
|
353
|
+
e = new URL(e, t);
|
|
354
|
+
super(e);
|
|
355
|
+
n(this, x, p(super.protocol));
|
|
356
|
+
n(this, L, p(super.username));
|
|
357
|
+
n(this, O, p(super.password));
|
|
358
|
+
n(this, g, p(super.hostname));
|
|
359
|
+
n(this, w, p(super.port));
|
|
360
|
+
n(this, A, p(super.pathname));
|
|
361
|
+
n(this, E, p(super.hash));
|
|
362
|
+
n(this, U, p(super.search));
|
|
363
|
+
n(this, j);
|
|
364
|
+
K = this, b(this, j, new ye(e.searchParams)), K = null;
|
|
365
|
+
}
|
|
366
|
+
get hash() {
|
|
367
|
+
return r(s(this, E));
|
|
368
|
+
}
|
|
369
|
+
set hash(e) {
|
|
370
|
+
super.hash = e, u(s(this, E), super.hash);
|
|
371
|
+
}
|
|
372
|
+
get host() {
|
|
373
|
+
return r(s(this, g)), r(s(this, w)), super.host;
|
|
374
|
+
}
|
|
375
|
+
set host(e) {
|
|
376
|
+
super.host = e, u(s(this, g), super.hostname), u(s(this, w), super.port);
|
|
377
|
+
}
|
|
378
|
+
get hostname() {
|
|
379
|
+
return r(s(this, g));
|
|
380
|
+
}
|
|
381
|
+
set hostname(e) {
|
|
382
|
+
super.hostname = e, u(s(this, g), super.hostname);
|
|
383
|
+
}
|
|
384
|
+
get href() {
|
|
385
|
+
return r(s(this, x)), r(s(this, L)), r(s(this, O)), r(s(this, g)), r(s(this, w)), r(s(this, A)), r(s(this, E)), r(s(this, U)), super.href;
|
|
386
|
+
}
|
|
387
|
+
set href(e) {
|
|
388
|
+
super.href = e, u(s(this, x), super.protocol), u(s(this, L), super.username), u(s(this, O), super.password), u(s(this, g), super.hostname), u(s(this, w), super.port), u(s(this, A), super.pathname), u(s(this, E), super.hash), u(s(this, U), super.search), s(this, j)[I](super.searchParams);
|
|
389
|
+
}
|
|
390
|
+
get password() {
|
|
391
|
+
return r(s(this, O));
|
|
392
|
+
}
|
|
393
|
+
set password(e) {
|
|
394
|
+
super.password = e, u(s(this, O), super.password);
|
|
395
|
+
}
|
|
396
|
+
get pathname() {
|
|
397
|
+
return r(s(this, A));
|
|
398
|
+
}
|
|
399
|
+
set pathname(e) {
|
|
400
|
+
super.pathname = e, u(s(this, A), super.pathname);
|
|
401
|
+
}
|
|
402
|
+
get port() {
|
|
403
|
+
return r(s(this, w));
|
|
404
|
+
}
|
|
405
|
+
set port(e) {
|
|
406
|
+
super.port = e, u(s(this, w), super.port);
|
|
407
|
+
}
|
|
408
|
+
get protocol() {
|
|
409
|
+
return r(s(this, x));
|
|
410
|
+
}
|
|
411
|
+
set protocol(e) {
|
|
412
|
+
super.protocol = e, u(s(this, x), super.protocol);
|
|
413
|
+
}
|
|
414
|
+
get search() {
|
|
415
|
+
return r(s(this, U));
|
|
416
|
+
}
|
|
417
|
+
set search(e) {
|
|
418
|
+
super.search = e, u(s(this, U), e), s(this, j)[I](super.searchParams);
|
|
419
|
+
}
|
|
420
|
+
get username() {
|
|
421
|
+
return r(s(this, L));
|
|
422
|
+
}
|
|
423
|
+
set username(e) {
|
|
424
|
+
super.username = e, u(s(this, L), super.username);
|
|
425
|
+
}
|
|
426
|
+
get origin() {
|
|
427
|
+
return r(s(this, x)), r(s(this, g)), r(s(this, w)), super.origin;
|
|
428
|
+
}
|
|
429
|
+
get searchParams() {
|
|
430
|
+
return s(this, j);
|
|
431
|
+
}
|
|
432
|
+
toString() {
|
|
433
|
+
return this.href;
|
|
434
|
+
}
|
|
435
|
+
toJSON() {
|
|
436
|
+
return this.href;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
x = new WeakMap(), L = new WeakMap(), O = new WeakMap(), g = new WeakMap(), w = new WeakMap(), A = new WeakMap(), E = new WeakMap(), U = new WeakMap(), j = new WeakMap();
|
|
440
|
+
var C, F;
|
|
441
|
+
class _e {
|
|
442
|
+
/**
|
|
443
|
+
*
|
|
444
|
+
* @param {() => T} fn
|
|
445
|
+
* @param {(update: () => void) => void} onsubscribe
|
|
446
|
+
*/
|
|
447
|
+
constructor(a, e) {
|
|
448
|
+
n(this, C);
|
|
449
|
+
n(this, F);
|
|
450
|
+
b(this, C, a), b(this, F, ge(e));
|
|
451
|
+
}
|
|
452
|
+
get current() {
|
|
453
|
+
return s(this, F).call(this), s(this, C).call(this);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
C = new WeakMap(), F = new WeakMap();
|
|
457
|
+
const be = /\(.+\)/, Pe = /* @__PURE__ */ new Set(["all", "print", "screen", "and", "or", "not", "only"]);
|
|
458
|
+
class Ee extends _e {
|
|
459
|
+
/**
|
|
460
|
+
* @param {string} query A media query string
|
|
461
|
+
* @param {boolean} [fallback] Fallback value for the server
|
|
462
|
+
*/
|
|
463
|
+
constructor(a, e) {
|
|
464
|
+
let t = be.test(a) || // we need to use `some` here because technically this `window.matchMedia('random,screen')` still returns true
|
|
465
|
+
a.split(/[\s,]+/).some((h) => Pe.has(h.trim())) ? a : `(${a})`;
|
|
466
|
+
const i = window.matchMedia(t);
|
|
467
|
+
super(
|
|
468
|
+
() => i.matches,
|
|
469
|
+
(h) => me(i, "change", h)
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
export {
|
|
474
|
+
Ee as MediaQuery,
|
|
475
|
+
he as SvelteDate,
|
|
476
|
+
ne as SvelteMap,
|
|
477
|
+
ae as SvelteSet,
|
|
478
|
+
Ae as SvelteURL,
|
|
479
|
+
ye as SvelteURLSearchParams,
|
|
480
|
+
ge as createSubscriber
|
|
481
|
+
};
|
package/assets/svelte/store.js
CHANGED
|
@@ -165,9 +165,10 @@ const N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
165
165
|
writable: v
|
|
166
166
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
167
167
|
export {
|
|
168
|
+
N as a,
|
|
168
169
|
H as c,
|
|
169
170
|
z as g,
|
|
170
|
-
|
|
171
|
+
G as i,
|
|
171
172
|
q as s,
|
|
172
173
|
v as w
|
|
173
174
|
};
|
package/package.json
CHANGED
package/test/Main.svelte
CHANGED
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
</Scrollable>
|
|
32
32
|
{/snippet}
|
|
33
33
|
{#snippet side_b()}
|
|
34
|
-
<div
|
|
35
|
-
<
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
<div style="display: flex; flex-direction: column;">
|
|
35
|
+
<div class="combo">
|
|
36
|
+
<select bind:value={selected}>
|
|
37
|
+
{#each tags as id, i}
|
|
38
|
+
<option value={i}>{id}</option>
|
|
39
|
+
{/each}
|
|
40
|
+
</select>
|
|
41
|
+
</div>
|
|
42
|
+
{#if 0 <= selected && selected < tags.length }
|
|
43
|
+
{@render children?.(tags[selected])}
|
|
44
44
|
{#each inputs as { name, url }}
|
|
45
45
|
{#if input != null}
|
|
46
46
|
{@render input({ name, url: url(tags[selected]) })}
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
<a href={url(tags[selected])} target="_blank">{name}</a>
|
|
49
49
|
{/if}
|
|
50
50
|
{/each}
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
{/if}
|
|
52
|
+
</div>
|
|
53
53
|
{/snippet}
|
|
54
54
|
</Split>
|
|
55
55
|
</Scrollable>
|