tsondb 0.20.4 → 0.20.6

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.
@@ -36,17 +36,17 @@ function preact_module_S(n) {
36
36
  function C(n, l) {
37
37
  this.props = n, this.context = l;
38
38
  }
39
- function preact_module_$(n, l) {
40
- if (null == l) return n.__ ? preact_module_$(n.__, n.__i + 1) : null;
39
+ function $(n, l) {
40
+ if (null == l) return n.__ ? $(n.__, n.__i + 1) : null;
41
41
  for(var u; l < n.__k.length; l++)if (null != (u = n.__k[l]) && null != u.__e) return u.__e;
42
- return "function" == typeof n.type ? preact_module_$(n) : null;
42
+ return "function" == typeof n.type ? $(n) : null;
43
43
  }
44
44
  function preact_module_I(n) {
45
45
  if (n.__P && n.__d) {
46
46
  var u = n.__v, t = u.__e, i = [], r = [], o = preact_module_m({}, u);
47
47
  o.__v = u.__v + 1, preact_module_l.vnode && preact_module_l.vnode(o), q(n.__P, o, u, n.__n, n.__P.namespaceURI, 32 & u.__u ? [
48
48
  t
49
- ] : null, i, null == t ? preact_module_$(u) : t, !!(32 & u.__u), r), o.__v = u.__v, o.__.__k[o.__i] = o, D(i, o, r), u.__e = u.__ = null, o.__e != t && preact_module_P(o);
49
+ ] : null, i, null == t ? $(u) : t, !!(32 & u.__u), r), o.__v = u.__v, o.__.__k[o.__i] = o, D(i, o, r), u.__e = u.__ = null, o.__e != t && preact_module_P(o);
50
50
  }
51
51
  }
52
52
  function preact_module_P(n) {
@@ -65,8 +65,8 @@ function preact_module_H() {
65
65
  }
66
66
  }
67
67
  function L(n, l, u, t, i, r, o, e, f, c, a) {
68
- var s, h, p, v, y, _, g, m = t && t.__k || preact_module_w, b = l.length;
69
- for(f = preact_module_T(u, l, m, f, b), s = 0; s < b; s++)null != (p = u.__k[s]) && (h = -1 != p.__i && m[p.__i] || preact_module_d, p.__i = s, _ = q(n, p, h, i, r, o, e, f, c, a), v = p.__e, p.ref && h.ref != p.ref && (h.ref && J(h.ref, null, p), a.push(p.ref, p.__c || v, p)), null == y && null != v && (y = v), (g = !!(4 & p.__u)) || h.__k === p.__k ? (f = j(p, f, n, g), g && h.__e && (h.__e = null)) : "function" == typeof p.type && void 0 !== _ ? f = _ : v && (f = v.nextSibling), p.__u &= -7);
68
+ var s, h, p, v, y, _, g = t && t.__k || preact_module_w, m = l.length;
69
+ for(f = preact_module_T(u, l, g, f, m), s = 0; s < m; s++)null != (p = u.__k[s]) && (h = -1 != p.__i && g[p.__i] || preact_module_d, p.__i = s, _ = q(n, p, h, i, r, o, e, f, c, a), v = p.__e, p.ref && h.ref != p.ref && (h.ref && J(h.ref, null, p), a.push(p.ref, p.__c || v, p)), null == y && null != v && (y = v), 4 & p.__u ? (f = preact_module_j(p, f, n), h.__e && (h.__e = null)) : "function" == typeof p.type && void 0 !== _ ? f = _ : v && (f = v.nextSibling), p.__u &= -7);
70
70
  return u.__e = y, f;
71
71
  }
72
72
  function preact_module_T(n, l, u, t, i) {
@@ -74,23 +74,23 @@ function preact_module_T(n, l, u, t, i) {
74
74
  for(n.__k = new Array(i), r = 0; r < i; r++)null != (o = l[r]) && "boolean" != typeof o && "function" != typeof o ? ("string" == typeof o || "number" == typeof o || "bigint" == typeof o || o.constructor == String ? o = n.__k[r] = preact_module_x(null, o, null, null, null) : preact_module_g(o) ? o = n.__k[r] = preact_module_x(preact_module_S, {
75
75
  children: o
76
76
  }, null, null, null) : void 0 === o.constructor && o.__b > 0 ? o = n.__k[r] = preact_module_x(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : n.__k[r] = o, f = r + h, o.__ = n, o.__b = n.__b + 1, e = null, -1 != (c = o.__i = O(o, u, f, s)) && (s--, (e = u[c]) && (e.__u |= 2)), null == e || null == e.__v ? (-1 == c && (i > a ? h-- : i < a && h++), "function" != typeof o.type && (o.__u |= 4)) : c != f && (c == f - 1 ? h-- : c == f + 1 ? h++ : (c > f ? h-- : h++, o.__u |= 4))) : n.__k[r] = null;
77
- if (s) for(r = 0; r < a; r++)null != (e = u[r]) && 0 == (2 & e.__u) && (e.__e == t && (t = preact_module_$(e)), K(e, e));
77
+ if (s) for(r = 0; r < a; r++)null != (e = u[r]) && 0 == (2 & e.__u) && (e.__e == t && (t = $(e)), K(e, e));
78
78
  return t;
79
79
  }
80
- function j(n, l, u, t) {
81
- var i, r;
80
+ function preact_module_j(n, l, u) {
81
+ var t, i;
82
82
  if ("function" == typeof n.type) {
83
- for(i = n.__k, r = 0; i && r < i.length; r++)i[r] && (i[r].__ = n, l = j(i[r], l, u, t));
83
+ for(t = n.__k, i = 0; t && i < t.length; i++)t[i] && (t[i].__ = n, l = preact_module_j(t[i], l, u));
84
84
  return l;
85
85
  }
86
- n.__e != l && (t && (l && n.type && !l.parentNode && (l = preact_module_$(n)), u.insertBefore(n.__e, l || null)), l = n.__e);
86
+ n.__e != l && (l && n.type && !l.parentNode && (l = $(n)), l = u.insertBefore(n.__e, l || null));
87
87
  do l = l && l.nextSibling;
88
88
  while (null != l && 8 == l.nodeType)
89
89
  return l;
90
90
  }
91
- function F(n, l) {
91
+ function preact_module_F(n, l) {
92
92
  return l = l || [], null == n || "boolean" == typeof n || (preact_module_g(n) ? n.some(function(n) {
93
- F(n, l);
93
+ preact_module_F(n, l);
94
94
  }) : l.push(n)), l;
95
95
  }
96
96
  function O(n, l, u, t) {
@@ -132,42 +132,42 @@ function V(n) {
132
132
  };
133
133
  }
134
134
  function q(n, u, t, i, r, o, e, f, c, a) {
135
- var s, h, p, v, y, d, _, k, x, M, $, I, P, A, H, T = u.type;
135
+ var s, h, p, v, y, d, _, k, x, M, I, P, A, H, T, j, F = u.type;
136
136
  if (void 0 !== u.constructor) return null;
137
137
  128 & t.__u && (c = !!(32 & t.__u), o = [
138
138
  f = u.__e = t.__e
139
139
  ]), (s = preact_module_l.__b) && s(u);
140
- n: if ("function" == typeof T) try {
141
- if (k = u.props, x = T.prototype && T.prototype.render, M = (s = T.contextType) && i[s.__c], $ = s ? M ? M.props.value : s.__ : i, t.__c ? _ = (h = u.__c = t.__c).__ = h.__E : (x ? u.__c = h = new T(k, $) : (u.__c = h = new C(k, $), h.constructor = T, h.render = Q), M && M.sub(h), h.state || (h.state = {}), h.__n = i, p = h.__d = !0, h.__h = [], h._sb = []), x && null == h.__s && (h.__s = h.state), x && null != T.getDerivedStateFromProps && (h.__s == h.state && (h.__s = preact_module_m({}, h.__s)), preact_module_m(h.__s, T.getDerivedStateFromProps(k, h.__s))), v = h.props, y = h.state, h.__v = u, p) x && null == T.getDerivedStateFromProps && null != h.componentWillMount && h.componentWillMount(), x && null != h.componentDidMount && h.__h.push(h.componentDidMount);
142
- else {
143
- if (x && null == T.getDerivedStateFromProps && k !== v && null != h.componentWillReceiveProps && h.componentWillReceiveProps(k, $), u.__v == t.__v || !h.__e && null != h.shouldComponentUpdate && !1 === h.shouldComponentUpdate(k, h.__s, $)) {
144
- u.__v != t.__v && (h.props = k, h.state = h.__s, h.__d = !1), u.__e = t.__e, u.__k = t.__k, u.__k.some(function(n) {
145
- n && (n.__ = u);
146
- }), preact_module_w.push.apply(h.__h, h._sb), h._sb = [], h.__h.length && e.push(h);
147
- break n;
140
+ n: if ("function" == typeof F) {
141
+ h = e.length;
142
+ try {
143
+ if (x = u.props, M = F.prototype && F.prototype.render, I = (s = F.contextType) && i[s.__c], P = s ? I ? I.props.value : s.__ : i, t.__c ? k = (p = u.__c = t.__c).__ = p.__E : (M ? u.__c = p = new F(x, P) : (u.__c = p = new C(x, P), p.constructor = F, p.render = Q), I && I.sub(p), p.state || (p.state = {}), p.__n = i, v = p.__d = !0, p.__h = [], p._sb = []), M && null == p.__s && (p.__s = p.state), M && null != F.getDerivedStateFromProps && (p.__s == p.state && (p.__s = preact_module_m({}, p.__s)), preact_module_m(p.__s, F.getDerivedStateFromProps(x, p.__s))), y = p.props, d = p.state, p.__v = u, v) M && null == F.getDerivedStateFromProps && null != p.componentWillMount && p.componentWillMount(), M && null != p.componentDidMount && p.__h.push(p.componentDidMount);
144
+ else {
145
+ if (M && null == F.getDerivedStateFromProps && x !== y && null != p.componentWillReceiveProps && p.componentWillReceiveProps(x, P), u.__v == t.__v || !p.__e && null != p.shouldComponentUpdate && !1 === p.shouldComponentUpdate(x, p.__s, P)) {
146
+ u.__v != t.__v && (p.props = x, p.state = p.__s, p.__d = !1), u.__e = t.__e, u.__k = t.__k, u.__k.some(function(n) {
147
+ n && (n.__ = u);
148
+ }), preact_module_w.push.apply(p.__h, p._sb), p._sb = [], p.__h.length && e.push(p), f = $(t);
149
+ break n;
150
+ }
151
+ null != p.componentWillUpdate && p.componentWillUpdate(x, p.__s, P), M && null != p.componentDidUpdate && p.__h.push(function() {
152
+ p.componentDidUpdate(y, d, _);
153
+ });
148
154
  }
149
- null != h.componentWillUpdate && h.componentWillUpdate(k, h.__s, $), x && null != h.componentDidUpdate && h.__h.push(function() {
150
- h.componentDidUpdate(v, y, d);
151
- });
152
- }
153
- if (h.context = $, h.props = k, h.__P = n, h.__e = !1, I = preact_module_l.__r, P = 0, x) h.state = h.__s, h.__d = !1, I && I(u), s = h.render(h.props, h.state, h.context), preact_module_w.push.apply(h.__h, h._sb), h._sb = [];
154
- else do h.__d = !1, I && I(u), s = h.render(h.props, h.state, h.context), h.state = h.__s;
155
- while (h.__d && ++P < 25)
156
- h.state = h.__s, null != h.getChildContext && (i = preact_module_m(preact_module_m({}, i), h.getChildContext())), x && !p && null != h.getSnapshotBeforeUpdate && (d = h.getSnapshotBeforeUpdate(v, y)), A = null != s && s.type === preact_module_S && null == s.key ? E(s.props.children) : s, f = L(n, preact_module_g(A) ? A : [
157
- A
158
- ], u, t, i, r, o, e, f, c, a), h.base = u.__e, u.__u &= -161, h.__h.length && e.push(h), _ && (h.__E = h.__ = null);
159
- } catch (n) {
160
- if (u.__v = null, c || null != o) if (n.then) {
161
- for(u.__u |= c ? 160 : 128; f && 8 == f.nodeType && f.nextSibling;)f = f.nextSibling;
162
- o[o.indexOf(f)] = null, u.__e = f;
163
- } else {
164
- for(H = o.length; H--;)preact_module_b(o[H]);
165
- B(u);
155
+ if (p.context = P, p.props = x, p.__P = n, p.__e = !1, A = preact_module_l.__r, H = 0, M) p.state = p.__s, p.__d = !1, A && A(u), s = p.render(p.props, p.state, p.context), preact_module_w.push.apply(p.__h, p._sb), p._sb = [];
156
+ else do p.__d = !1, A && A(u), s = p.render(p.props, p.state, p.context), p.state = p.__s;
157
+ while (p.__d && ++H < 25)
158
+ p.state = p.__s, null != p.getChildContext && (i = preact_module_m(preact_module_m({}, i), p.getChildContext())), M && !v && null != p.getSnapshotBeforeUpdate && (_ = p.getSnapshotBeforeUpdate(y, d)), T = null != s && s.type === preact_module_S && null == s.key ? E(s.props.children) : s, f = L(n, preact_module_g(T) ? T : [
159
+ T
160
+ ], u, t, i, r, o, e, f, c, a), p.base = u.__e, u.__u &= -161, p.__h.length && e.push(p), k && (p.__E = p.__ = null);
161
+ } catch (n) {
162
+ if (e.length = h, u.__v = null, c || null != o) {
163
+ if (n.then) {
164
+ for(u.__u |= c ? 160 : 128; f && 8 == f.nodeType && f.nextSibling;)f = f.nextSibling;
165
+ null != o && (o[o.indexOf(f)] = null), u.__e = f;
166
+ } else if (null != o) for(j = o.length; j--;)preact_module_b(o[j]);
167
+ } else u.__e = t.__e;
168
+ null == u.__k && (u.__k = t.__k || []), n.then || B(u), preact_module_l.__e(n, u, t);
166
169
  }
167
- else u.__e = t.__e, u.__k = t.__k, n.then || B(u);
168
- preact_module_l.__e(n, u, t);
169
- }
170
- else null == o && u.__v == t.__v ? (u.__k = t.__k, u.__e = t.__e) : f = u.__e = G(t.__e, u, t, i, r, o, e, c, a);
170
+ } else null == o && u.__v == t.__v ? (u.__k = t.__k, u.__e = t.__e) : f = u.__e = G(t.__e, u, t, i, r, o, e, c, a);
171
171
  return (s = preact_module_l.diffed) && s(u), 128 & u.__u ? void 0 : f;
172
172
  }
173
173
  function B(n) {
@@ -208,7 +208,7 @@ function G(u, t, i, r, o, e, f, c, a) {
208
208
  if (h) c || p && (h.__html == p.__html || h.__html == u.innerHTML) || (u.innerHTML = h.__html), t.__k = [];
209
209
  else if (p && (u.innerHTML = ""), L("template" == t.type ? u.content : u, preact_module_g(v) ? v : [
210
210
  v
211
- ], t, i, r, "foreignObject" == x ? "http://www.w3.org/1999/xhtml" : o, e, f, e ? e[0] : i.__k && preact_module_$(i, 0), c, a), null != e) for(s = e.length; s--;)preact_module_b(e[s]);
211
+ ], t, i, r, "foreignObject" == x ? "http://www.w3.org/1999/xhtml" : o, e, f, e ? e[0] : i.__k && $(i, 0), c, a), null != e) for(s = e.length; s--;)preact_module_b(e[s]);
212
212
  c && "textarea" != x || (s = "value", "progress" == x && null == w ? u.removeAttribute("value") : null == w || w === u[s] && ("progress" != x || w) && ("option" != x || w == m[s]) || N(u, s, w, m[s], o), s = "checked", null != _ && _ != u[s] && N(u, s, _, m[s], o));
213
213
  }
214
214
  return u;
@@ -231,7 +231,7 @@ function K(n, u, t) {
231
231
  } catch (n) {
232
232
  preact_module_l.__e(n, u);
233
233
  }
234
- i.base = i.__P = null;
234
+ i.base = i.__P = i.__n = null;
235
235
  }
236
236
  if (i = n.__k) for(r = 0; r < i.length; r++)i[r] && K(i[r], u, t || "function" != typeof n.type);
237
237
  t || preact_module_b(n.__e), n.__c = n.__ = n.__e = void 0;
@@ -245,7 +245,7 @@ function R(u, t, i) {
245
245
  u
246
246
  ]), o || preact_module_d, preact_module_d, t.namespaceURI, !r && i ? [
247
247
  i
248
- ] : o ? null : t.firstChild ? preact_module_n.call(t.childNodes) : null, e, !r && i ? i : o ? o.__e : t.firstChild, r, f), D(e, u, f);
248
+ ] : o ? null : t.firstChild ? preact_module_n.call(t.childNodes) : null, e, !r && i ? i : o ? o.__e : t.firstChild, r, f), D(e, u, f), u.props.children = null;
249
249
  }
250
250
  function W(l, u, t) {
251
251
  var i, r, o, e, f = preact_module_m({}, l.props);
@@ -319,8 +319,8 @@ function jsxRuntime_module_u(e, t, n, o, i, u) {
319
319
  if ("function" == typeof e && (a = e.defaultProps)) for(c in a)void 0 === p[c] && (p[c] = a[c]);
320
320
  return preact_module_l.vnode && preact_module_l.vnode(l), l;
321
321
  }
322
- var hooks_module_t, hooks_module_r, hooks_module_u, hooks_module_i, hooks_module_o = 0, hooks_module_f = [], hooks_module_c = preact_module_l, hooks_module_e = hooks_module_c.__b, hooks_module_a = hooks_module_c.__r, hooks_module_v = hooks_module_c.diffed, hooks_module_l = hooks_module_c.__c, hooks_module_m = hooks_module_c.unmount, hooks_module_s = hooks_module_c.__;
323
- function hooks_module_p(n, t) {
322
+ var hooks_module_t, hooks_module_r, hooks_module_u, hooks_module_i, hooks_module_o = 0, hooks_module_f = [], hooks_module_c = preact_module_l, hooks_module_e = hooks_module_c.__b, hooks_module_a = hooks_module_c.__r, hooks_module_v = hooks_module_c.diffed, hooks_module_l = hooks_module_c.__c, hooks_module_m = hooks_module_c.unmount, hooks_module_p = hooks_module_c.__;
323
+ function hooks_module_s(n, t) {
324
324
  hooks_module_c.__h && hooks_module_c.__h(hooks_module_r, n, hooks_module_o || t), hooks_module_o = 0;
325
325
  var u = hooks_module_r.__H || (hooks_module_r.__H = {
326
326
  __: [],
@@ -329,10 +329,10 @@ function hooks_module_p(n, t) {
329
329
  return n >= u.__.length && u.__.push({}), u.__[n];
330
330
  }
331
331
  function hooks_module_d(n) {
332
- return hooks_module_o = 1, hooks_module_h(hooks_module_D, n);
332
+ return hooks_module_o = 1, hooks_module_y(hooks_module_D, n);
333
333
  }
334
- function hooks_module_h(n, u, i) {
335
- var o = hooks_module_p(hooks_module_t++, 2);
334
+ function hooks_module_y(n, u, i) {
335
+ var o = hooks_module_s(hooks_module_t++, 2);
336
336
  if (o.t = n, !o.__c && (o.__ = [
337
337
  i ? i(u) : hooks_module_D(void 0, u),
338
338
  function(n) {
@@ -345,19 +345,18 @@ function hooks_module_h(n, u, i) {
345
345
  ], o.__c = hooks_module_r, !hooks_module_r.__f)) {
346
346
  var f = function(n, t, r) {
347
347
  if (!o.__c.__H) return !0;
348
- var u = o.__c.__H.__.filter(function(n) {
349
- return n.__c;
350
- });
351
- if (u.every(function(n) {
352
- return !n.__N;
353
- })) return !c || c.call(this, n, t, r);
354
- var i = o.__c.props !== n;
355
- return u.some(function(n) {
348
+ var u = !1, i = o.__c.props !== n;
349
+ if (o.__c.__H.__.some(function(n) {
356
350
  if (n.__N) {
351
+ u = !0;
357
352
  var t = n.__[0];
358
353
  n.__ = n.__N, n.__N = void 0, t !== n.__[0] && (i = !0);
359
354
  }
360
- }), c && c.call(this, n, t, r) || i;
355
+ }), c) {
356
+ var f = c.call(this, n, t, r);
357
+ return u ? f || i : f;
358
+ }
359
+ return !u || i;
361
360
  };
362
361
  hooks_module_r.__f = !0;
363
362
  var c = hooks_module_r.shouldComponentUpdate, e = hooks_module_r.componentWillUpdate;
@@ -371,12 +370,12 @@ function hooks_module_h(n, u, i) {
371
370
  }
372
371
  return o.__N || o.__;
373
372
  }
374
- function hooks_module_y(n, u) {
375
- var i = hooks_module_p(hooks_module_t++, 3);
373
+ function hooks_module_h(n, u) {
374
+ var i = hooks_module_s(hooks_module_t++, 3);
376
375
  !hooks_module_c.__s && hooks_module_C(i.__H, u) && (i.__ = n, i.u = u, hooks_module_r.__H.__h.push(i));
377
376
  }
378
377
  function hooks_module_(n, u) {
379
- var i = hooks_module_p(hooks_module_t++, 4);
378
+ var i = hooks_module_s(hooks_module_t++, 4);
380
379
  !hooks_module_c.__s && hooks_module_C(i.__H, u) && (i.__ = n, i.u = u, hooks_module_r.__h.push(i));
381
380
  }
382
381
  function hooks_module_A(n) {
@@ -387,7 +386,7 @@ function hooks_module_A(n) {
387
386
  }, []);
388
387
  }
389
388
  function hooks_module_T(n, r) {
390
- var u = hooks_module_p(hooks_module_t++, 7);
389
+ var u = hooks_module_s(hooks_module_t++, 7);
391
390
  return hooks_module_C(u.__H, r) && (u.__ = n(), u.__H = r, u.__h = n), u.__;
392
391
  }
393
392
  function hooks_module_q(n, t) {
@@ -396,7 +395,7 @@ function hooks_module_q(n, t) {
396
395
  }, t);
397
396
  }
398
397
  function hooks_module_x(n) {
399
- var u = hooks_module_r.context[n.__c], i = hooks_module_p(hooks_module_t++, 9);
398
+ var u = hooks_module_r.context[n.__c], i = hooks_module_s(hooks_module_t++, 9);
400
399
  return i.c = n, u ? (null == i.__ && (i.__ = !0, u.sub(hooks_module_r)), u.props.value) : n.__;
401
400
  }
402
401
  function hooks_module_j() {
@@ -412,7 +411,7 @@ function hooks_module_j() {
412
411
  hooks_module_c.__b = function(n) {
413
412
  hooks_module_r = null, hooks_module_e && hooks_module_e(n);
414
413
  }, hooks_module_c.__ = function(n, t) {
415
- n && t.__k && t.__k.__m && (n.__m = t.__k.__m), hooks_module_s && hooks_module_s(n, t);
414
+ n && t.__k && t.__k.__m && (n.__m = t.__k.__m), hooks_module_p && hooks_module_p(n, t);
416
415
  }, hooks_module_c.__r = function(n) {
417
416
  hooks_module_a && hooks_module_a(n), hooks_module_t = 0;
418
417
  var i = (hooks_module_r = n.__c).__H;
@@ -423,7 +422,7 @@ hooks_module_c.__b = function(n) {
423
422
  hooks_module_v && hooks_module_v(n);
424
423
  var t = n.__c;
425
424
  t && t.__H && (t.__H.__h.length && (1 !== hooks_module_f.push(t) && hooks_module_i === hooks_module_c.requestAnimationFrame || ((hooks_module_i = hooks_module_c.requestAnimationFrame) || hooks_module_w)(hooks_module_j)), t.__H.__.some(function(n) {
426
- n.u && (n.__H = n.u), n.u = void 0;
425
+ n.u && (n.__H = n.u, n.u = void 0);
427
426
  })), hooks_module_u = hooks_module_r = null;
428
427
  }, hooks_module_c.__c = function(n, t) {
429
428
  t.some(function(n) {
@@ -518,7 +517,7 @@ const exec = (url, route, matches = {})=>{
518
517
  return matches;
519
518
  };
520
519
  function LocationProvider(props) {
521
- const [url, route] = hooks_module_h(handleNav, props.url || location.pathname + location.search);
520
+ const [url, route] = hooks_module_y(handleNav, props.url || location.pathname + location.search);
522
521
  if (props.scope) scope = props.scope;
523
522
  const wasPush = true === router_push;
524
523
  const value = hooks_module_T(()=>{
@@ -557,13 +556,13 @@ function LocationProvider(props) {
557
556
  }
558
557
  const RESOLVED = Promise.resolve();
559
558
  function Router(props) {
560
- const [c, update] = hooks_module_h((c)=>c + 1, 0);
559
+ const [c, update] = hooks_module_y((c)=>c + 1, 0);
561
560
  const { url, query, wasPush, path } = useLocation();
562
561
  if (!url) throw new Error("preact-iso's <Router> must be used within a <LocationProvider>, see: https://github.com/preactjs/preact-iso#locationprovider");
563
562
  const { rest = path, params = {} } = hooks_module_x(RouteContext);
564
563
  const isLoading = hooks_module_A(false);
565
564
  const prevRoute = hooks_module_A(path);
566
- const count = hooks_module_A(0);
565
+ const count = hooks_module_A(1);
567
566
  const cur = hooks_module_A();
568
567
  const prev = hooks_module_A();
569
568
  const pendingBase = hooks_module_A();
@@ -571,7 +570,7 @@ function Router(props) {
571
570
  const didSuspend = hooks_module_A();
572
571
  didSuspend.current = false;
573
572
  let pathRoute, defaultRoute, matchProps;
574
- F(props.children).some((vnode)=>{
573
+ preact_module_F(props.children).some((vnode)=>{
575
574
  const matches = exec(rest, vnode.props.path, matchProps = {
576
575
  ...vnode.props,
577
576
  path: rest,
@@ -592,7 +591,6 @@ function Router(props) {
592
591
  }, incoming);
593
592
  const outgoing = prev.current && prev.current.props.children;
594
593
  if (!outgoing || !incoming || incoming.type !== outgoing.type || incoming.props.component !== outgoing.props.component) {
595
- if (this.__v && this.__v.__k) this.__v.__k.reverse();
596
594
  count.current++;
597
595
  return true;
598
596
  }
@@ -649,13 +647,16 @@ function Router(props) {
649
647
  ]);
650
648
  return routeChanged ? [
651
649
  preact_module_k(RenderRef, {
652
- r: cur
650
+ r: cur,
651
+ key: count.current
653
652
  }),
654
653
  preact_module_k(RenderRef, {
655
- r: prev
654
+ r: prev,
655
+ key: count.current - 1
656
656
  })
657
657
  ] : preact_module_k(RenderRef, {
658
- r: cur
658
+ r: cur,
659
+ key: count.current
659
660
  });
660
661
  }
661
662
  const MODE_HYDRATE = 32;
@@ -816,21 +817,24 @@ const useSetting = (key)=>{
816
817
  };
817
818
  var signals_core_module_i = Symbol.for("preact-signals");
818
819
  function signals_core_module_t() {
819
- if (signals_core_module_s > 1) signals_core_module_s--;
820
+ if (signals_core_module_v > 1) signals_core_module_v--;
820
821
  else {
821
822
  var i, t = !1;
822
823
  !function() {
823
- var i = signals_core_module_d;
824
- signals_core_module_d = void 0;
824
+ var i = signals_core_module_c;
825
+ signals_core_module_c = void 0;
825
826
  while(void 0 !== i){
826
- if (i.S.v === i.v) i.S.i = i.i;
827
+ var t = i.S;
828
+ if (t.v === i.v) {
829
+ for(var n = t.t; void 0 !== n; n = n.x)if (n.i === i.i) n.i = t.i;
830
+ }
827
831
  i = i.o;
828
832
  }
829
833
  }();
830
834
  while(void 0 !== signals_core_module_h){
831
835
  var n = signals_core_module_h;
832
836
  signals_core_module_h = void 0;
833
- signals_core_module_v++;
837
+ signals_core_module_s++;
834
838
  while(void 0 !== n){
835
839
  var r = n.u;
836
840
  n.u = void 0;
@@ -846,50 +850,52 @@ function signals_core_module_t() {
846
850
  n = r;
847
851
  }
848
852
  }
849
- signals_core_module_v = 0;
850
- signals_core_module_s--;
853
+ signals_core_module_s = 0;
854
+ signals_core_module_v--;
851
855
  if (t) throw i;
852
856
  }
853
857
  }
854
858
  function signals_core_module_n(i) {
855
- if (signals_core_module_s > 0) return i();
859
+ if (signals_core_module_v > 0) return i();
856
860
  signals_core_module_e = ++signals_core_module_u;
857
- signals_core_module_s++;
861
+ signals_core_module_v++;
858
862
  try {
859
863
  return i();
860
864
  } finally{
861
865
  signals_core_module_t();
862
866
  }
863
867
  }
864
- var signals_core_module_r = void 0;
865
- function signals_core_module_o(i) {
866
- var t = signals_core_module_r;
868
+ var signals_core_module_r, signals_core_module_o = void 0;
869
+ function signals_core_module_f(i) {
870
+ var t = signals_core_module_o, n = signals_core_module_r;
871
+ signals_core_module_o = void 0;
867
872
  signals_core_module_r = void 0;
868
873
  try {
869
874
  return i();
870
875
  } finally{
871
- signals_core_module_r = t;
876
+ signals_core_module_o = t;
877
+ signals_core_module_r = n;
872
878
  }
873
879
  }
874
- var signals_core_module_f, signals_core_module_h = void 0, signals_core_module_s = 0, signals_core_module_v = 0, signals_core_module_u = 0, signals_core_module_e = 0, signals_core_module_d = void 0, signals_core_module_c = 0;
880
+ var signals_core_module_h = void 0, signals_core_module_v = 0, signals_core_module_s = 0, signals_core_module_u = 0, signals_core_module_e = 0, signals_core_module_c = void 0, signals_core_module_d = 0;
875
881
  function signals_core_module_a(i) {
876
- if (void 0 !== signals_core_module_r) {
882
+ if (void 0 !== signals_core_module_o) {
877
883
  var t = i.n;
878
- if (void 0 === t || t.t !== signals_core_module_r) {
884
+ if (void 0 === t || t.t !== signals_core_module_o) {
879
885
  t = {
880
886
  i: 0,
881
887
  S: i,
882
- p: signals_core_module_r.s,
888
+ p: signals_core_module_o.s,
883
889
  n: void 0,
884
- t: signals_core_module_r,
890
+ t: signals_core_module_o,
885
891
  e: void 0,
886
892
  x: void 0,
887
893
  r: t
888
894
  };
889
- if (void 0 !== signals_core_module_r.s) signals_core_module_r.s.n = t;
890
- signals_core_module_r.s = t;
895
+ if (void 0 !== signals_core_module_o.s) signals_core_module_o.s.n = t;
896
+ signals_core_module_o.s = t;
891
897
  i.n = t;
892
- if (32 & signals_core_module_r.f) i.S(t);
898
+ if (32 & signals_core_module_o.f) i.S(t);
893
899
  return t;
894
900
  }
895
901
  if (-1 === t.i) {
@@ -897,10 +903,10 @@ function signals_core_module_a(i) {
897
903
  if (void 0 !== t.n) {
898
904
  t.n.p = t.p;
899
905
  if (void 0 !== t.p) t.p.n = t.n;
900
- t.p = signals_core_module_r.s;
906
+ t.p = signals_core_module_o.s;
901
907
  t.n = void 0;
902
- signals_core_module_r.s.n = t;
903
- signals_core_module_r.s = t;
908
+ signals_core_module_o.s.n = t;
909
+ signals_core_module_o.s = t;
904
910
  }
905
911
  return t;
906
912
  }
@@ -926,7 +932,7 @@ signals_core_module_l.prototype.S = function(i) {
926
932
  i.x = n;
927
933
  this.t = i;
928
934
  if (void 0 !== n) n.e = i;
929
- else signals_core_module_o(function() {
935
+ else signals_core_module_f(function() {
930
936
  var i;
931
937
  null == (i = t.W) || i.call(t);
932
938
  });
@@ -946,7 +952,7 @@ signals_core_module_l.prototype.U = function(i) {
946
952
  }
947
953
  if (i === this.t) {
948
954
  this.t = r;
949
- if (void 0 === r) signals_core_module_o(function() {
955
+ if (void 0 === r) signals_core_module_f(function() {
950
956
  var i;
951
957
  null == (i = t.Z) || i.call(t);
952
958
  });
@@ -955,14 +961,11 @@ signals_core_module_l.prototype.U = function(i) {
955
961
  };
956
962
  signals_core_module_l.prototype.subscribe = function(i) {
957
963
  var t = this;
958
- return signals_core_module_C(function() {
959
- var n = t.value, o = signals_core_module_r;
960
- signals_core_module_r = void 0;
961
- try {
962
- i(n);
963
- } finally{
964
- signals_core_module_r = o;
965
- }
964
+ return signals_core_module_j(function() {
965
+ var n = t.value;
966
+ signals_core_module_f(function() {
967
+ return i(n);
968
+ });
966
969
  }, {
967
970
  name: "sub"
968
971
  });
@@ -977,13 +980,10 @@ signals_core_module_l.prototype.toJSON = function() {
977
980
  return this.value;
978
981
  };
979
982
  signals_core_module_l.prototype.peek = function() {
980
- var i = signals_core_module_r;
981
- signals_core_module_r = void 0;
982
- try {
983
- return this.value;
984
- } finally{
985
- signals_core_module_r = i;
986
- }
983
+ var i = this;
984
+ return signals_core_module_f(function() {
985
+ return i.value;
986
+ });
987
987
  };
988
988
  Object.defineProperty(signals_core_module_l.prototype, "value", {
989
989
  get: function() {
@@ -993,24 +993,24 @@ Object.defineProperty(signals_core_module_l.prototype, "value", {
993
993
  },
994
994
  set: function(i) {
995
995
  if (i !== this.v) {
996
- if (signals_core_module_v > 100) throw new Error("Cycle detected");
996
+ if (signals_core_module_s > 100) throw new Error("Cycle detected");
997
997
  !function(i) {
998
- if (0 !== signals_core_module_s && 0 === signals_core_module_v) {
998
+ if (0 !== signals_core_module_v && 0 === signals_core_module_s) {
999
999
  if (i.l !== signals_core_module_e) {
1000
1000
  i.l = signals_core_module_e;
1001
- signals_core_module_d = {
1001
+ signals_core_module_c = {
1002
1002
  S: i,
1003
1003
  v: i.v,
1004
1004
  i: i.i,
1005
- o: signals_core_module_d
1005
+ o: signals_core_module_c
1006
1006
  };
1007
1007
  }
1008
1008
  }
1009
1009
  }(this);
1010
1010
  this.v = i;
1011
1011
  this.i++;
1012
- signals_core_module_c++;
1013
- signals_core_module_s++;
1012
+ signals_core_module_d++;
1013
+ signals_core_module_v++;
1014
1014
  try {
1015
1015
  for(var n = this.t; void 0 !== n; n = n.x)n.t.N();
1016
1016
  } finally{
@@ -1054,14 +1054,11 @@ function signals_core_module_b(i) {
1054
1054
  i.s = n;
1055
1055
  }
1056
1056
  function signals_core_module_p(i, t) {
1057
- signals_core_module_l.call(this, void 0);
1057
+ signals_core_module_l.call(this, void 0, t);
1058
1058
  this.x = i;
1059
1059
  this.s = void 0;
1060
- this.g = signals_core_module_c - 1;
1060
+ this.g = signals_core_module_d - 1;
1061
1061
  this.f = 4;
1062
- this.W = null == t ? void 0 : t.watched;
1063
- this.Z = null == t ? void 0 : t.unwatched;
1064
- this.name = null == t ? void 0 : t.name;
1065
1062
  }
1066
1063
  signals_core_module_p.prototype = new signals_core_module_l;
1067
1064
  signals_core_module_p.prototype.h = function() {
@@ -1069,17 +1066,17 @@ signals_core_module_p.prototype.h = function() {
1069
1066
  if (1 & this.f) return !1;
1070
1067
  if (32 == (36 & this.f)) return !0;
1071
1068
  this.f &= -5;
1072
- if (this.g === signals_core_module_c) return !0;
1073
- this.g = signals_core_module_c;
1069
+ if (this.g === signals_core_module_d) return !0;
1070
+ this.g = signals_core_module_d;
1074
1071
  this.f |= 1;
1075
1072
  if (this.i > 0 && !signals_core_module_w(this)) {
1076
1073
  this.f &= -2;
1077
1074
  return !0;
1078
1075
  }
1079
- var i = signals_core_module_r;
1076
+ var i = signals_core_module_o;
1080
1077
  try {
1081
1078
  signals_core_module_(this);
1082
- signals_core_module_r = this;
1079
+ signals_core_module_o = this;
1083
1080
  var t = this.x();
1084
1081
  if (16 & this.f || this.v !== t || 0 === this.i) {
1085
1082
  this.v = t;
@@ -1091,7 +1088,7 @@ signals_core_module_p.prototype.h = function() {
1091
1088
  this.f |= 16;
1092
1089
  this.i++;
1093
1090
  }
1094
- signals_core_module_r = i;
1091
+ signals_core_module_o = i;
1095
1092
  signals_core_module_b(this);
1096
1093
  this.f &= -2;
1097
1094
  return !0;
@@ -1135,9 +1132,9 @@ function signals_core_module_S(i) {
1135
1132
  var n = i.m;
1136
1133
  i.m = void 0;
1137
1134
  if ("function" == typeof n) {
1138
- signals_core_module_s++;
1139
- var o = signals_core_module_r;
1140
- signals_core_module_r = void 0;
1135
+ signals_core_module_v++;
1136
+ var r = signals_core_module_o;
1137
+ signals_core_module_o = void 0;
1141
1138
  try {
1142
1139
  n();
1143
1140
  } catch (t) {
@@ -1146,7 +1143,7 @@ function signals_core_module_S(i) {
1146
1143
  signals_core_module_m(i);
1147
1144
  throw t;
1148
1145
  } finally{
1149
- signals_core_module_r = o;
1146
+ signals_core_module_o = r;
1150
1147
  signals_core_module_t();
1151
1148
  }
1152
1149
  }
@@ -1158,9 +1155,9 @@ function signals_core_module_m(i) {
1158
1155
  signals_core_module_S(i);
1159
1156
  }
1160
1157
  function signals_core_module_x(i) {
1161
- if (signals_core_module_r !== this) throw new Error("Out-of-order effect");
1158
+ if (signals_core_module_o !== this) throw new Error("Out-of-order effect");
1162
1159
  signals_core_module_b(this);
1163
- signals_core_module_r = i;
1160
+ signals_core_module_o = i;
1164
1161
  this.f &= -2;
1165
1162
  if (8 & this.f) signals_core_module_m(this);
1166
1163
  signals_core_module_t();
@@ -1172,7 +1169,7 @@ function signals_core_module_E(i, t) {
1172
1169
  this.u = void 0;
1173
1170
  this.f = 32;
1174
1171
  this.name = null == t ? void 0 : t.name;
1175
- if (signals_core_module_f) signals_core_module_f.push(this);
1172
+ if (signals_core_module_r) signals_core_module_r.push(this);
1176
1173
  }
1177
1174
  signals_core_module_E.prototype.c = function() {
1178
1175
  var i = this.S();
@@ -1191,9 +1188,9 @@ signals_core_module_E.prototype.S = function() {
1191
1188
  this.f &= -9;
1192
1189
  signals_core_module_S(this);
1193
1190
  signals_core_module_(this);
1194
- signals_core_module_s++;
1195
- var i = signals_core_module_r;
1196
- signals_core_module_r = this;
1191
+ signals_core_module_v++;
1192
+ var i = signals_core_module_o;
1193
+ signals_core_module_o = this;
1197
1194
  return signals_core_module_x.bind(this, i);
1198
1195
  };
1199
1196
  signals_core_module_E.prototype.N = function() {
@@ -1210,7 +1207,7 @@ signals_core_module_E.prototype.d = function() {
1210
1207
  signals_core_module_E.prototype.dispose = function() {
1211
1208
  this.d();
1212
1209
  };
1213
- function signals_core_module_C(i, t) {
1210
+ function signals_core_module_j(i, t) {
1214
1211
  var n = new signals_core_module_E(i, t);
1215
1212
  try {
1216
1213
  n.c();
@@ -1222,38 +1219,39 @@ function signals_core_module_C(i, t) {
1222
1219
  r[Symbol.dispose] = r;
1223
1220
  return r;
1224
1221
  }
1225
- var signals_module_l, signals_module_h, signals_module_p = "u" > typeof window && !!window.__PREACT_SIGNALS_DEVTOOLS__, signals_module_ = [];
1226
- signals_core_module_C(function() {
1222
+ var signals_module_l, signals_module_d, signals_module_p = "u" > typeof window && !!window.__PREACT_SIGNALS_DEVTOOLS__, signals_module_ = [];
1223
+ signals_core_module_j(function() {
1227
1224
  signals_module_l = this.N;
1228
1225
  })();
1229
1226
  function signals_module_g(i, r) {
1230
1227
  preact_module_l[i] = r.bind(null, preact_module_l[i] || function() {});
1231
1228
  }
1232
1229
  function signals_module_b(i) {
1233
- if (signals_module_h) {
1234
- var n = signals_module_h;
1235
- signals_module_h = void 0;
1230
+ if (signals_module_d) {
1231
+ var n = signals_module_d;
1232
+ signals_module_d = void 0;
1236
1233
  n();
1237
1234
  }
1238
- signals_module_h = i && i.S();
1235
+ signals_module_d = i && i.S();
1239
1236
  }
1240
1237
  function signals_module_y(i) {
1241
- var n = this, t = i.data, e = useSignal(t);
1242
- e.value = t;
1243
- var f = hooks_module_T(function() {
1238
+ var n = this, t = i.data, f = useSignal(t);
1239
+ f.name = "ReactiveDom";
1240
+ f.value = t;
1241
+ var e = hooks_module_T(function() {
1244
1242
  var i = n, t = n.__v;
1245
1243
  while(t = t.__)if (t.__c) {
1246
1244
  t.__c.__$f |= 4;
1247
1245
  break;
1248
1246
  }
1249
1247
  var o = signals_core_module_g(function() {
1250
- var i = e.value.value;
1248
+ var i = f.value.value;
1251
1249
  return 0 === i ? 0 : !0 === i ? "" : i || "";
1252
- }), f = signals_core_module_g(function() {
1250
+ }), e = signals_core_module_g(function() {
1253
1251
  return !Array.isArray(o.value) && !preact_module_t(o.value);
1254
- }), a = signals_core_module_C(function() {
1252
+ }), a = signals_core_module_j(function() {
1255
1253
  this.N = signals_module_F;
1256
- if (f.value) {
1254
+ if (e.value) {
1257
1255
  var n = o.value;
1258
1256
  if (i.__v && i.__v.__e && 3 === i.__v.__e.nodeType) i.__v.__e.data = n;
1259
1257
  }
@@ -1263,10 +1261,10 @@ function signals_module_y(i) {
1263
1261
  v.call(this);
1264
1262
  };
1265
1263
  return [
1266
- f,
1264
+ e,
1267
1265
  o
1268
1266
  ];
1269
- }, []), a = f[0], v = f[1];
1267
+ }, []), a = e[0], v = e[1];
1270
1268
  return a.value ? v.peek() : v.value;
1271
1269
  }
1272
1270
  signals_module_y.displayName = "ReactiveTextNode";
@@ -1298,14 +1296,15 @@ Object.defineProperties(signals_core_module_l.prototype, {
1298
1296
  }
1299
1297
  });
1300
1298
  signals_module_g("__b", function(i, n) {
1299
+ signals_module_b();
1301
1300
  if ("string" == typeof n.type) {
1302
1301
  var r, t = n.props;
1303
1302
  for(var o in t)if ("children" !== o) {
1304
- var e = t[o];
1305
- if (e instanceof signals_core_module_l) {
1303
+ var f = t[o];
1304
+ if (f instanceof signals_core_module_l) {
1306
1305
  if (!r) n.__np = r = {};
1307
- r[o] = e;
1308
- t[o] = e.peek();
1306
+ r[o] = f;
1307
+ t[o] = f.peek();
1309
1308
  }
1310
1309
  }
1311
1310
  }
@@ -1320,19 +1319,21 @@ signals_module_g("__r", function(i, n) {
1320
1319
  o.__$f &= -2;
1321
1320
  if (void 0 === (r = o.__$u)) o.__$u = r = function(i, n) {
1322
1321
  var r;
1323
- signals_core_module_C(function() {
1322
+ signals_core_module_j(function() {
1324
1323
  r = this;
1325
1324
  }, {
1326
1325
  name: n
1327
1326
  });
1328
1327
  r.c = i;
1329
1328
  return r;
1330
- }(function() {
1331
- var i;
1332
- if (signals_module_p) null == (i = r.y) || i.call(r);
1333
- o.__$f |= 1;
1334
- o.setState({});
1335
- }, "function" == typeof n.type ? n.type.displayName || n.type.name : "");
1329
+ }(function(i) {
1330
+ return function() {
1331
+ var n;
1332
+ if (signals_module_p) null == (n = this.y) || n.call(this);
1333
+ i.__$f |= 1;
1334
+ i.setState({});
1335
+ };
1336
+ }(o), "function" == typeof n.type ? n.type.displayName || n.type.name : "");
1336
1337
  }
1337
1338
  signals_module_b(r);
1338
1339
  }
@@ -1345,25 +1346,24 @@ signals_module_g("diffed", function(i, n) {
1345
1346
  signals_module_b();
1346
1347
  var r;
1347
1348
  if ("string" == typeof n.type && (r = n.__e)) {
1348
- var t = n.__np, o = n.props;
1349
- if (t) {
1350
- var e = r.U;
1351
- if (e) for(var f in e){
1352
- var u = e[f];
1353
- if (void 0 !== u && !(f in t)) {
1354
- u.d();
1355
- e[f] = void 0;
1356
- }
1349
+ var t = n.__np, o = n.props, f = r.U;
1350
+ if (f) for(var e in f){
1351
+ var u = f[e];
1352
+ if (!(void 0 === u || t && e in t)) {
1353
+ u.d();
1354
+ f[e] = void 0;
1357
1355
  }
1358
- else {
1359
- e = {};
1360
- r.U = e;
1356
+ }
1357
+ if (t) {
1358
+ if (!f) {
1359
+ f = {};
1360
+ r.U = f;
1361
1361
  }
1362
1362
  for(var a in t){
1363
- var c = e[a], v = t[a];
1363
+ var c = f[a], v = t[a];
1364
1364
  if (void 0 === c) {
1365
- c = signals_module_w(r, a, v);
1366
- e[a] = c;
1365
+ c = signals_module_w(r, a, v, o);
1366
+ f[a] = c;
1367
1367
  } else c.o(v, o);
1368
1368
  }
1369
1369
  }
@@ -1371,21 +1371,21 @@ signals_module_g("diffed", function(i, n) {
1371
1371
  i(n);
1372
1372
  });
1373
1373
  function signals_module_w(i, n, r, t) {
1374
- var o = n in i && void 0 === i.ownerSVGElement, e = signals_core_module_y(r), f = r.peek();
1374
+ var o = n in i && void 0 === i.ownerSVGElement, f = signals_core_module_y(r);
1375
1375
  return {
1376
1376
  o: function(i, n) {
1377
- e.value = i;
1378
- f = i.peek();
1377
+ f.value = i;
1378
+ t = n;
1379
1379
  },
1380
- d: signals_core_module_C(function() {
1380
+ d: signals_core_module_j(function() {
1381
1381
  this.N = signals_module_F;
1382
- var r = e.value.value;
1383
- if (f !== r) {
1384
- f = void 0;
1382
+ var r = f.value.value;
1383
+ if (t[n] !== r) {
1384
+ t[n] = r;
1385
1385
  if (o) i[n] = r;
1386
1386
  else if (null != r && (!1 !== r || "-" === n[4])) i.setAttribute(n, r);
1387
1387
  else i.removeAttribute(n);
1388
- } else f = void 0;
1388
+ }
1389
1389
  })
1390
1390
  };
1391
1391
  }
@@ -1397,15 +1397,15 @@ signals_module_g("unmount", function(i, n) {
1397
1397
  if (t) {
1398
1398
  r.U = void 0;
1399
1399
  for(var o in t){
1400
- var e = t[o];
1401
- if (e) e.d();
1400
+ var f = t[o];
1401
+ if (f) f.d();
1402
1402
  }
1403
1403
  }
1404
1404
  }
1405
- var f = n.__np;
1406
- if (f) {
1405
+ var e = n.__np;
1406
+ if (e) {
1407
1407
  var u = n.props;
1408
- for(var a in f)u[a] = f[a];
1408
+ for(var a in e)u[a] = e[a];
1409
1409
  }
1410
1410
  n.__np = void 0;
1411
1411
  } else {
@@ -1421,7 +1421,7 @@ signals_module_g("unmount", function(i, n) {
1421
1421
  i(n);
1422
1422
  });
1423
1423
  signals_module_g("__h", function(i, n, r, t) {
1424
- if (t < 3 || 9 === t) n.__$f |= 2;
1424
+ if (t < 3) n.__$f |= 2;
1425
1425
  i(n, r, t);
1426
1426
  });
1427
1427
  C.prototype.shouldComponentUpdate = function(i, n) {
@@ -1429,14 +1429,14 @@ C.prototype.shouldComponentUpdate = function(i, n) {
1429
1429
  var r = this.__$u, t = r && void 0 !== r.s;
1430
1430
  for(var o in n)return !0;
1431
1431
  if (this.__f || "boolean" == typeof this.u && !0 === this.u) {
1432
- var e = 2 & this.__$f;
1433
- if (!(t || e || 4 & this.__$f)) return !0;
1432
+ var f = 2 & this.__$f;
1433
+ if (!(t || f || 4 & this.__$f)) return !0;
1434
1434
  if (1 & this.__$f) return !0;
1435
1435
  } else {
1436
1436
  if (!(t || 4 & this.__$f)) return !0;
1437
1437
  if (3 & this.__$f) return !0;
1438
1438
  }
1439
- for(var f in i)if ("__source" !== f && i[f] !== this.props[f]) return !0;
1439
+ for(var e in i)if ("__source" !== e && i[e] !== this.props[e]) return !0;
1440
1440
  for(var u in this.props)if (!(u in i)) return !0;
1441
1441
  return !1;
1442
1442
  };
@@ -1475,7 +1475,7 @@ const LoadingOverlay = ()=>/*#__PURE__*/ jsxRuntime_module_u("div", {
1475
1475
  });
1476
1476
  const ModalDialog = ({ children, ...props })=>{
1477
1477
  const ref = hooks_module_A(null);
1478
- hooks_module_y(()=>{
1478
+ hooks_module_h(()=>{
1479
1479
  if (ref.current) {
1480
1480
  if (props.open && !ref.current.open) ref.current.showModal();
1481
1481
  else if (!props.open && ref.current.open) ref.current.close();
@@ -2121,7 +2121,7 @@ const useGitClient = ()=>{
2121
2121
  entities,
2122
2122
  locales
2123
2123
  ]);
2124
- hooks_module_y(()=>{
2124
+ hooks_module_h(()=>{
2125
2125
  updateGitStatus();
2126
2126
  }, [
2127
2127
  updateGitStatus
@@ -2374,7 +2374,7 @@ const useMappedAPIResource = (apiFn, mapFn, ...args)=>{
2374
2374
  mapFn,
2375
2375
  ...args
2376
2376
  ]);
2377
- hooks_module_y(()=>{
2377
+ hooks_module_h(()=>{
2378
2378
  fetchData().catch(logAndAlertError);
2379
2379
  }, [
2380
2380
  fetchData
@@ -2503,7 +2503,7 @@ const useInstanceNamesByEntity = ()=>{
2503
2503
  }, [
2504
2504
  locales.toString()
2505
2505
  ]);
2506
- hooks_module_y(()=>{
2506
+ hooks_module_h(()=>{
2507
2507
  updateInstanceNamesByEntity();
2508
2508
  }, [
2509
2509
  updateInstanceNamesByEntity
@@ -2516,7 +2516,7 @@ const useInstanceNamesByEntity = ()=>{
2516
2516
  const useGetDeclFromDeclName = ()=>{
2517
2517
  const [locales] = useSetting("displayedLocales");
2518
2518
  const [secondaryDeclarations, setSecondaryDeclarations] = hooks_module_d();
2519
- hooks_module_y(()=>{
2519
+ hooks_module_h(()=>{
2520
2520
  getAllDeclarations(locales).then((data)=>{
2521
2521
  setSecondaryDeclarations(data.declarations.map((decl)=>decl.declaration).filter((decl)=>isSerializedEnumDecl(decl) || isSerializedTypeAliasDecl(decl) || isSerializedEntityDeclWithParentReference(decl)));
2522
2522
  }).catch((error)=>{
@@ -4151,7 +4151,7 @@ const isEntityInAnyHomeLayoutSection = (entityName, homeLayoutSections)=>homeLay
4151
4151
  const Home = ()=>{
4152
4152
  const { homeLayoutSections } = hooks_module_x(ConfigContext);
4153
4153
  const { entities } = hooks_module_x(EntitiesContext);
4154
- hooks_module_y(()=>{
4154
+ hooks_module_h(()=>{
4155
4155
  document.title = homeTitle + " — TSONDB";
4156
4156
  }, []);
4157
4157
  const [searchText, setSearchText] = hooks_module_d("");
@@ -4272,7 +4272,7 @@ const Home = ()=>{
4272
4272
  });
4273
4273
  };
4274
4274
  const NotFound = ()=>{
4275
- hooks_module_y(()=>{
4275
+ hooks_module_h(()=>{
4276
4276
  document.title = "Not found — TSONDB";
4277
4277
  }, []);
4278
4278
  return /*#__PURE__*/ jsxRuntime_module_u(Layout, {
@@ -4325,7 +4325,7 @@ preact_module_l.__b = function(n) {
4325
4325
  var compat_module_O = preact_module_l.__e;
4326
4326
  preact_module_l.__e = function(n, t, e, r) {
4327
4327
  if (n.then) {
4328
- for(var u, o = t; o = o.__;)if ((u = o.__c) && u.__c) return null == t.__e && (t.__e = e.__e, t.__k = e.__k), u.__c(n, t);
4328
+ for(var u, o = t; o = o.__;)if ((u = o.__c) && u.__c) return null == t.__e && (t.__e = e.__e, t.__k = e.__k || []), u.__c(n, t);
4329
4329
  }
4330
4330
  compat_module_O(n, t, e, r);
4331
4331
  };
@@ -4359,12 +4359,12 @@ preact_module_l.unmount = function(n) {
4359
4359
  var e = t.__c, r = this;
4360
4360
  null == r.o && (r.o = []), r.o.push(e);
4361
4361
  var u = compat_module_j(r.__v), o = !1, i = function() {
4362
- o || r.__z || (o = !0, e.__R = null, u ? u(c) : c());
4362
+ o || r.__z || (o = !0, e.__R = null, u ? u(f) : f());
4363
4363
  };
4364
4364
  e.__R = i;
4365
4365
  var l = e.__P;
4366
4366
  e.__P = null;
4367
- var c = function() {
4367
+ var f = function() {
4368
4368
  if (!--r.__u) {
4369
4369
  if (r.state.__a) {
4370
4370
  var n = r.state.__a;
@@ -4412,7 +4412,7 @@ var compat_module_H = function(n, t, e) {
4412
4412
  };
4413
4413
  }, compat_module_B.prototype.render = function(n) {
4414
4414
  this.i = null, this.l = new Map;
4415
- var t = F(n.children);
4415
+ var t = preact_module_F(n.children);
4416
4416
  n.revealOrder && "b" === n.revealOrder[0] && t.reverse();
4417
4417
  for(var e = t.length; e--;)this.l.set(t[e], this.i = [
4418
4418
  1,
@@ -4468,13 +4468,13 @@ preact_module_l.vnode = function(n) {
4468
4468
  for(var i in t){
4469
4469
  var l = t[i];
4470
4470
  if (!("value" === i && "defaultValue" in t && null == l || compat_module_Q && "children" === i && "noscript" === e || "class" === i || "className" === i)) {
4471
- var c = i.toLowerCase();
4472
- "defaultValue" === i && "value" in t && null == t.value ? i = "value" : "download" === i && !0 === l ? l = "" : "translate" === c && "no" === l ? l = !1 : "o" === c[0] && "n" === c[1] ? "ondoubleclick" === c ? i = "ondblclick" : "onchange" !== c || "input" !== e && "textarea" !== e || compat_module_X(t.type) ? "onfocus" === c ? i = "onfocusin" : "onblur" === c ? i = "onfocusout" : compat_module_J.test(i) && (i = c) : c = i = "oninput" : o && compat_module_G.test(i) ? i = i.replace(compat_module_K, "-$&").toLowerCase() : null === l && (l = void 0), "oninput" === c && u[i = c] && (i = "oninputCapture"), u[i] = l;
4471
+ var f = i.toLowerCase();
4472
+ "defaultValue" === i && "value" in t && null == t.value ? i = "value" : "download" === i && !0 === l ? l = "" : "translate" === f && "no" === l ? l = !1 : "o" === f[0] && "n" === f[1] ? "ondoubleclick" === f ? i = "ondblclick" : "onchange" !== f || "input" !== e && "textarea" !== e || compat_module_X(t.type) ? "onfocus" === f ? i = "onfocusin" : "onblur" === f ? i = "onfocusout" : compat_module_J.test(i) && (i = f) : f = i = "oninput" : o && compat_module_G.test(i) ? i = i.replace(compat_module_K, "-$&").toLowerCase() : null === l && (l = void 0), "oninput" === f && u[i = f] && (i = "oninputCapture"), u[i] = l;
4473
4473
  }
4474
4474
  }
4475
- "select" == e && (u.multiple && Array.isArray(u.value) && (u.value = F(t.children).forEach(function(n) {
4475
+ "select" == e && (u.multiple && Array.isArray(u.value) && (u.value = preact_module_F(t.children).forEach(function(n) {
4476
4476
  n.props.selected = -1 != u.value.indexOf(n.props.value);
4477
- })), null != u.defaultValue && (u.value = F(t.children).forEach(function(n) {
4477
+ })), null != u.defaultValue && (u.value = preact_module_F(t.children).forEach(function(n) {
4478
4478
  n.props.selected = u.multiple ? -1 != u.defaultValue.indexOf(n.props.value) : u.defaultValue == n.props.value;
4479
4479
  }))), t.class && !t.className ? (u.class = t.class, Object.defineProperty(u, "className", un)) : t.className && (u.class = u.className = t.className), n.props = u;
4480
4480
  }(n), n.$$typeof = compat_module_q, on && on(n);
@@ -4483,9 +4483,9 @@ var ln = preact_module_l.__r;
4483
4483
  preact_module_l.__r = function(n) {
4484
4484
  ln && ln(n), n.__c;
4485
4485
  };
4486
- var cn = preact_module_l.diffed;
4486
+ var compat_module_fn = preact_module_l.diffed;
4487
4487
  preact_module_l.diffed = function(n) {
4488
- cn && cn(n);
4488
+ compat_module_fn && compat_module_fn(n);
4489
4489
  var t = n.props, e = n.__e;
4490
4490
  null != e && "textarea" === n.type && "value" in t && t.value !== e.value && (e.value = null == t.value ? "" : t.value);
4491
4491
  };
@@ -5440,6 +5440,57 @@ const ReferenceIdentifierTypeInput = ({ type, value, instanceNamesByEntity, disa
5440
5440
  ]
5441
5441
  });
5442
5442
  };
5443
+ class InternalMarkdownError extends Error {
5444
+ constructor(message){
5445
+ super(message);
5446
+ this.name = "InternalMarkdownError";
5447
+ }
5448
+ }
5449
+ class MarkdownSyntaxError extends SyntaxError {
5450
+ row;
5451
+ column;
5452
+ remainingText;
5453
+ constructor(row, column, remainingText){
5454
+ super(`Unexpected Markdown syntax at row ${row.toFixed()}, column ${column.toFixed()}: ${remainingText}`);
5455
+ this.name = "MarkdownSyntaxError";
5456
+ this.row = row;
5457
+ this.column = column;
5458
+ this.remainingText = remainingText;
5459
+ }
5460
+ }
5461
+ const positionInStringToColumnAndRow = (position, string)=>{
5462
+ const lines = string.slice(0, position).split("\n");
5463
+ const row = lines.length;
5464
+ const column = (lines.at(-1)?.length ?? 0) + 1;
5465
+ return {
5466
+ row,
5467
+ column
5468
+ };
5469
+ };
5470
+ const validateInline = (markdown)=>{
5471
+ const results = inlineMarkdown.evalT({
5472
+ indentation: 0,
5473
+ keepSyntax: false
5474
+ }).parse(markdown);
5475
+ if (!isNotEmpty(results)) return new InternalMarkdownError("Failed to parse inline Markdown");
5476
+ const [_, remaining] = results[0];
5477
+ if (remaining.length > 0) {
5478
+ const { row, column } = positionInStringToColumnAndRow(markdown.length - remaining.length, markdown);
5479
+ return new MarkdownSyntaxError(row, column, remaining);
5480
+ }
5481
+ };
5482
+ const validate = (markdown)=>{
5483
+ const results = finalBlockMarkdown.evalT({
5484
+ indentation: 0,
5485
+ keepSyntax: false
5486
+ }).parse(markdown);
5487
+ if (!isNotEmpty(results)) return new InternalMarkdownError("Failed to parse Markdown");
5488
+ const [_, remaining] = results[0];
5489
+ if (remaining.length > 0) {
5490
+ const { row, column } = positionInStringToColumnAndRow(markdown.length - remaining.length, markdown);
5491
+ return new MarkdownSyntaxError(row, column, remaining);
5492
+ }
5493
+ };
5443
5494
  const validateStringConstraints = (constraints, value)=>parallelizeErrors([
5444
5495
  void 0 !== constraints.minLength && value.length < constraints.minLength ? RangeError(`expected a string with at least ${constraints.minLength.toString()} character${1 === constraints.minLength ? "" : "s"}, but got ${value.length.toString()} character${1 === value.length ? "" : "s"}`) : void 0,
5445
5496
  void 0 !== constraints.maxLength && value.length > constraints.maxLength ? RangeError(`expected a string with at most ${constraints.maxLength.toString()} character${1 === constraints.maxLength ? "" : "s"}, but got ${value.length.toString()} character${1 === value.length ? "" : "s"}`) : void 0,
@@ -5447,6 +5498,17 @@ const validateStringConstraints = (constraints, value)=>parallelizeErrors([
5447
5498
  if (void 0 === constraints.pattern) return;
5448
5499
  const pattern = "string" == typeof constraints.pattern ? new RegExp(constraints.pattern) : constraints.pattern;
5449
5500
  return pattern.test(value) ? void 0 : TypeError(`string does not match the pattern ${pattern.toString()}`);
5501
+ })(),
5502
+ (()=>{
5503
+ if (void 0 === constraints.markdown) return;
5504
+ switch(constraints.markdown){
5505
+ case "inline":
5506
+ return validateInline(value);
5507
+ case "block":
5508
+ return validate(value);
5509
+ default:
5510
+ return typeSafety_assertExhaustive(constraints.markdown);
5511
+ }
5450
5512
  })()
5451
5513
  ]);
5452
5514
  const BlockMarkdownHighlighting = ({ node })=>{
@@ -5831,7 +5893,7 @@ const InstanceRouteSkeleton = ({ mode, buttons, init, titleBuilder, onSubmit, on
5831
5893
  onSave,
5832
5894
  route
5833
5895
  ]);
5834
- hooks_module_y(()=>{
5896
+ hooks_module_h(()=>{
5835
5897
  if (hasUnsavedChanges) window.addEventListener("beforeunload", onBeforeUnload);
5836
5898
  else window.removeEventListener("beforeunload", onBeforeUnload);
5837
5899
  return ()=>{
@@ -5840,7 +5902,7 @@ const InstanceRouteSkeleton = ({ mode, buttons, init, titleBuilder, onSubmit, on
5840
5902
  }, [
5841
5903
  hasUnsavedChanges
5842
5904
  ]);
5843
- hooks_module_y(()=>{
5905
+ hooks_module_h(()=>{
5844
5906
  if (hasUnsavedChanges) window.addEventListener("keydown", saveHandler);
5845
5907
  else window.removeEventListener("keydown", saveHandler);
5846
5908
  return ()=>{
@@ -5850,7 +5912,7 @@ const InstanceRouteSkeleton = ({ mode, buttons, init, titleBuilder, onSubmit, on
5850
5912
  hasUnsavedChanges,
5851
5913
  saveHandler
5852
5914
  ]);
5853
- hooks_module_y(()=>{
5915
+ hooks_module_h(()=>{
5854
5916
  document.title = (entity && titleBuilder({
5855
5917
  locales,
5856
5918
  entity,
@@ -5864,7 +5926,7 @@ const InstanceRouteSkeleton = ({ mode, buttons, init, titleBuilder, onSubmit, on
5864
5926
  locales,
5865
5927
  titleBuilder
5866
5928
  ]);
5867
- hooks_module_y(()=>{
5929
+ hooks_module_h(()=>{
5868
5930
  if (entity && void 0 === instanceContent && declsLoaded) runWithLoading(()=>init({
5869
5931
  locales,
5870
5932
  entity,
@@ -6146,21 +6208,21 @@ const Entity = ()=>{
6146
6208
  const [instances, reloadInstances] = useMappedAPIResource(getInstancesByEntityName, mapInstances, locales, entity?.name ?? name ?? "");
6147
6209
  const [localeInstances, reloadLocaleInstances] = useMappedAPIResource(getLocaleInstances, Entity_localeMapper, locales, config.localeEntityName);
6148
6210
  const { latestCommit } = hooks_module_x(GitClientContext) ?? {};
6149
- hooks_module_y(()=>{
6211
+ hooks_module_h(()=>{
6150
6212
  reloadInstances().then(()=>reloadLocaleInstances()).catch(logAndAlertError);
6151
6213
  }, [
6152
6214
  latestCommit,
6153
6215
  reloadInstances,
6154
6216
  reloadLocaleInstances
6155
6217
  ]);
6156
- hooks_module_y(()=>{
6218
+ hooks_module_h(()=>{
6157
6219
  document.title = (entity?.displayNamePlural ?? toTitleCase(entity?.namePlural ?? name ?? "")) + " — TSONDB";
6158
6220
  }, [
6159
6221
  entity?.displayNamePlural,
6160
6222
  entity?.namePlural,
6161
6223
  name
6162
6224
  ]);
6163
- hooks_module_y(()=>{
6225
+ hooks_module_h(()=>{
6164
6226
  if (created) {
6165
6227
  const instanceElement = document.getElementById(`instance-${created}`);
6166
6228
  if (instanceElement) instanceElement.scrollIntoView({
@@ -6437,7 +6499,7 @@ const Search = ()=>{
6437
6499
  locales,
6438
6500
  query
6439
6501
  ]);
6440
- hooks_module_y(()=>{
6502
+ hooks_module_h(()=>{
6441
6503
  document.title = "Search — TSONDB";
6442
6504
  search();
6443
6505
  }, [
@@ -6543,7 +6605,7 @@ const App = ({ config })=>{
6543
6605
  const [isGitOpen, setIsGitOpen] = hooks_module_d(false);
6544
6606
  const [entities, reloadEntities] = useMappedAPIResource(getAllEntities, mapEntities, settingsContext.settings.displayedLocales);
6545
6607
  const location1 = useLocation();
6546
- hooks_module_y(()=>{
6608
+ hooks_module_h(()=>{
6547
6609
  reloadEntities().catch((error)=>{
6548
6610
  alert("Error reloading entities: " + String(error));
6549
6611
  });