@nil-/xit 0.4.18 → 0.4.20

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