@manyducks.co/dolla 2.0.0-alpha.7 → 2.0.0-alpha.8

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/dist/index.js CHANGED
@@ -13,8 +13,8 @@ var et = (a, e, t, r) => ({
13
13
  return n(a, e, r);
14
14
  }
15
15
  });
16
- import { h as tt, c as wt, i as Ie, t as Ge, a as yt, d as Be, b as bt, e as Xe, f as U, g as K, j as lt, k as vt, w as ut, P as ht, l as rt, m as $t, n as Et, v as kt, o as Lt, p as Pt, q as nt, r as at, s as St, u as Ne, x as Te, y as Rt, z as xt, A as Ot } from "./passthrough-BVaqqjam.js";
17
- import { B as rr, C as nr, D as ar } from "./passthrough-BVaqqjam.js";
16
+ import { h as tt, c as wt, i as Ge, t as Be, a as yt, d as Ie, b as bt, e as Xe, f as U, g as K, j as lt, k as vt, w as ut, P as ht, l as rt, m as $t, n as Et, v as kt, o as Lt, p as Pt, q as nt, r as at, s as St, u as Ne, x as Te, y as Rt, z as xt, A as Ot } from "./passthrough-9kwwjgWk.js";
17
+ import { B as rr, C as nr, D as ar } from "./passthrough-9kwwjgWk.js";
18
18
  function Mt(a) {
19
19
  return tt`
20
20
  <div
@@ -168,7 +168,7 @@ async function jt(a) {
168
168
  const f = async () => {
169
169
  const c = s.query.toString(), w = c.length > 0 ? s.uri + "?" + c : s.uri;
170
170
  let y;
171
- !s.headers.has("content-type") && Ie(s.body) ? (s.headers.set("content-type", "application/json"), y = JSON.stringify(s.body)) : y = s.body;
171
+ !s.headers.has("content-type") && Ge(s.body) ? (s.headers.set("content-type", "application/json"), y = JSON.stringify(s.body)) : y = s.body;
172
172
  const m = await r(w, {
173
173
  method: s.method,
174
174
  headers: s.headers,
@@ -207,14 +207,14 @@ class Ct {
207
207
  if (this.strings == null) {
208
208
  if (Xe(this.config.fetch)) {
209
209
  const e = await this.config.fetch();
210
- if (Ie(e))
210
+ if (Ge(e))
211
211
  this.strings = e;
212
212
  else
213
213
  throw new Error(`Fetch function did not return an object of language strings: ${e}`);
214
214
  } else if (U(this.config.path)) {
215
215
  const e = await this.dolla.http.get(this.config.path);
216
216
  if (e.status >= 200 && e.status < 300)
217
- if (Ie(e.body))
217
+ if (Ge(e.body))
218
218
  this.strings = e.body;
219
219
  else
220
220
  throw new Error(
@@ -312,7 +312,7 @@ class Dt {
312
312
  yt(c) && (s[f] = c);
313
313
  const o = Object.entries(s);
314
314
  if (o.length > 0) {
315
- const f = o.map((w) => w[1]), c = Be([n(this, ie), ...f], (w, ...y) => {
315
+ const f = o.map((w) => w[1]), c = Ie([n(this, ie), ...f], (w, ...y) => {
316
316
  const m = y.map(($, j) => o[j]), d = {
317
317
  ...t
318
318
  };
@@ -326,7 +326,7 @@ class Dt {
326
326
  return n(this, se).push([e, t, c]), c;
327
327
  }
328
328
  }
329
- const i = Be([n(this, ie)], (s) => {
329
+ const i = Ie([n(this, ie)], (s) => {
330
330
  let o = it(s, e) || `[NO TRANSLATION: ${e}]`;
331
331
  return t && (o = st(o, t)), o;
332
332
  });
@@ -338,7 +338,7 @@ we = new WeakMap(), Y = new WeakMap(), x = new WeakMap(), se = new WeakMap(), ye
338
338
  if (r[0] === e && bt(r[1], t))
339
339
  return r[2];
340
340
  };
341
- const qt = Ge("[NO LANGUAGE SET]");
341
+ const qt = Be("[NO LANGUAGE SET]");
342
342
  function st(a, e) {
343
343
  for (const t in e)
344
344
  a = a.replace(`{{${t}}}`, String(e[t]));
@@ -529,9 +529,9 @@ function Ht(a) {
529
529
  ne(p, l);
530
530
  }
531
531
  if (pe(u, v, E)) {
532
- var S = de(v, y + 1), M = S[0], T = S[1];
532
+ var S = de(v, y + 1), O = S[0], T = S[1];
533
533
  try {
534
- i.pushState(M, "", T);
534
+ i.pushState(O, "", T);
535
535
  } catch {
536
536
  r.location.assign(T);
537
537
  }
@@ -544,8 +544,8 @@ function Ht(a) {
544
544
  ge(p, l);
545
545
  }
546
546
  if (pe(u, v, E)) {
547
- var S = de(v, y), M = S[0], T = S[1];
548
- i.replaceState(M, "", T), re(u);
547
+ var S = de(v, y), O = S[0], T = S[1];
548
+ i.replaceState(O, "", T), re(u);
549
549
  }
550
550
  }
551
551
  function V(p) {
@@ -584,7 +584,7 @@ function _t(a) {
584
584
  a === void 0 && (a = {});
585
585
  var e = a, t = e.window, r = t === void 0 ? document.defaultView : t, i = r.history;
586
586
  function s() {
587
- var l = Qe(r.location.hash.substr(1)), u = l.pathname, v = u === void 0 ? "/" : u, E = l.search, S = E === void 0 ? "" : E, M = l.hash, T = M === void 0 ? "" : M, C = i.state || {};
587
+ var l = Qe(r.location.hash.substr(1)), u = l.pathname, v = u === void 0 ? "/" : u, E = l.search, S = E === void 0 ? "" : E, O = l.hash, T = O === void 0 ? "" : O, C = i.state || {};
588
588
  return [C.idx, qe({
589
589
  pathname: v,
590
590
  search: S,
@@ -678,7 +678,7 @@ function _t(a) {
678
678
  ge(l, u);
679
679
  }
680
680
  if (process.env.NODE_ENV !== "production" && je(E.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.push(" + JSON.stringify(l) + ")"), re(v, E, S)) {
681
- var M = pe(E, y + 1), T = M[0], C = M[1];
681
+ var O = pe(E, y + 1), T = O[0], C = O[1];
682
682
  try {
683
683
  i.pushState(T, "", C);
684
684
  } catch {
@@ -693,7 +693,7 @@ function _t(a) {
693
693
  V(l, u);
694
694
  }
695
695
  if (process.env.NODE_ENV !== "production" && je(E.pathname.charAt(0) === "/", "Relative pathnames are not supported in hash history.replace(" + JSON.stringify(l) + ")"), re(v, E, S)) {
696
- var M = pe(E, y), T = M[0], C = M[1];
696
+ var O = pe(E, y), T = O[0], C = O[1];
697
697
  i.replaceState(T, "", C), ne(v);
698
698
  }
699
699
  }
@@ -901,12 +901,12 @@ function zt(a) {
901
901
  }
902
902
  return t;
903
903
  }
904
- var Ee, O, Z, k, ze, W, ke, ee, z, le, ue, he, Le, B, Je, Ye;
904
+ var Ee, M, Z, k, ze, W, ke, ee, z, le, ue, he, Le, I, Je, Ye;
905
905
  class Ft {
906
906
  constructor(e, t) {
907
- h(this, B);
907
+ h(this, I);
908
908
  h(this, Ee);
909
- h(this, O);
909
+ h(this, M);
910
910
  h(this, Z);
911
911
  h(this, k);
912
912
  h(this, ze, 0);
@@ -935,7 +935,7 @@ class Ft {
935
935
  */
936
936
  L(this, "$query");
937
937
  h(this, Le);
938
- g(this, Ee, e), g(this, O, e.createLogger("dolla/router")), g(this, Z, t);
938
+ g(this, Ee, e), g(this, M, e.createLogger("dolla/router")), g(this, Z, t);
939
939
  const [r, i] = K(null), [s, o] = K(""), [f, c] = K({}), [w, y] = K(
940
940
  Ke(typeof window > "u" ? "" : window.location.search ?? "")
941
941
  );
@@ -951,12 +951,12 @@ class Ft {
951
951
  search: b
952
952
  });
953
953
  })
954
- ), n(this, z).push(n(this, k).listen(P(this, B, Ye).bind(this))), P(this, B, Ye).call(this, n(this, k)), n(this, z).push(
955
- Bt(n(this, Z).rootElement, (m) => {
954
+ ), n(this, z).push(n(this, k).listen(P(this, I, Ye).bind(this))), P(this, I, Ye).call(this, n(this, k)), n(this, z).push(
955
+ It(n(this, Z).rootElement, (m) => {
956
956
  let d = m.getAttribute("href");
957
- n(this, O).info("Intercepted link click", m, d), /^https?:\/\/|^\//.test(d) || (d = ae([n(this, k).location.pathname, d])), n(this, k).push(d);
957
+ n(this, M).info("Intercepted link click", m, d), /^https?:\/\/|^\//.test(d) || (d = ae([n(this, k).location.pathname, d])), n(this, k).push(d);
958
958
  })
959
- ), n(this, O).info("Intercepting <a> clicks within root element:", n(this, Z).rootElement));
959
+ ), n(this, M).info("Intercepting <a> clicks within root element:", n(this, Z).rootElement));
960
960
  }), e.onUnmount(() => {
961
961
  for (; n(this, z).length > 0; )
962
962
  n(this, z).pop()();
@@ -964,13 +964,13 @@ class Ft {
964
964
  }
965
965
  setup(e) {
966
966
  if (n(this, Ee).isMounted) {
967
- n(this, O).crash(
967
+ n(this, M).crash(
968
968
  new Error("Dolla is already mounted. Router setup must be called before Dolla.mount is called.")
969
969
  );
970
970
  return;
971
971
  }
972
972
  e.style === "hash" ? g(this, k, _t()) : g(this, k, Ht()), g(this, ee, Wt(
973
- e.routes.flatMap((t) => P(this, B, Je).call(this, t)).map((t) => ({
973
+ e.routes.flatMap((t) => P(this, I, Je).call(this, t)).map((t) => ({
974
974
  pattern: t.pattern,
975
975
  meta: t.meta,
976
976
  fragments: zt(t.pattern)
@@ -1001,7 +1001,7 @@ class Ft {
1001
1001
  */
1002
1002
  go(e, t = {}) {
1003
1003
  if (n(this, k) == null) {
1004
- n(this, O).crash(
1004
+ n(this, M).crash(
1005
1005
  new Error(
1006
1006
  "Router.go was called, but the router was never configured! Run 'Dolla.router.setup' before 'Dolla.mount' to configure routes."
1007
1007
  )
@@ -1016,7 +1016,7 @@ class Ft {
1016
1016
  */
1017
1017
  back(e = 1) {
1018
1018
  if (n(this, k) == null) {
1019
- n(this, O).crash(
1019
+ n(this, M).crash(
1020
1020
  new Error(
1021
1021
  "Router.back was called, but the router was never configured! Run 'Dolla.router.setup' before 'Dolla.mount' to configure routes."
1022
1022
  )
@@ -1030,7 +1030,7 @@ class Ft {
1030
1030
  */
1031
1031
  forward(e = 1) {
1032
1032
  if (n(this, k) == null) {
1033
- n(this, O).crash(
1033
+ n(this, M).crash(
1034
1034
  new Error(
1035
1035
  "Router.forward was called, but the router was never configured! Run 'Dolla.router.setup' before 'Dolla.mount' to configure routes."
1036
1036
  )
@@ -1040,7 +1040,7 @@ class Ft {
1040
1040
  n(this, k).go(e);
1041
1041
  }
1042
1042
  }
1043
- Ee = new WeakMap(), O = new WeakMap(), Z = new WeakMap(), k = new WeakMap(), ze = new WeakMap(), W = new WeakMap(), ke = new WeakMap(), ee = new WeakMap(), z = new WeakMap(), le = new WeakMap(), ue = new WeakMap(), he = new WeakMap(), Le = new WeakMap(), B = new WeakSet(), /**
1043
+ Ee = new WeakMap(), M = new WeakMap(), Z = new WeakMap(), k = new WeakMap(), ze = new WeakMap(), W = new WeakMap(), ke = new WeakMap(), ee = new WeakMap(), z = new WeakMap(), le = new WeakMap(), ue = new WeakMap(), he = new WeakMap(), Le = new WeakMap(), I = new WeakSet(), /**
1044
1044
  * Parses a route definition object into a set of matchable routes.
1045
1045
  *
1046
1046
  * @param route - Route config object.
@@ -1077,7 +1077,7 @@ Je = function(e, t = [], r = []) {
1077
1077
  const f = { id: et(this, ze)._++, view: o };
1078
1078
  if (e.routes)
1079
1079
  for (const c of e.routes)
1080
- s.push(...P(this, B, Je).call(this, c, [...t, e], [...r, f]));
1080
+ s.push(...P(this, I, Je).call(this, c, [...t, e], [...r, f]));
1081
1081
  else
1082
1082
  s.push({
1083
1083
  pattern: parent ? ae([...t.map((c) => c.path), e.path]) : e.path,
@@ -1102,10 +1102,10 @@ Je = function(e, t = [], r = []) {
1102
1102
  redirect: (r) => {
1103
1103
  throw new Error("Redirect not yet implemented.");
1104
1104
  }
1105
- }), n(this, O).info(`Matched route: '${t.pattern}' ('${t.path}')`), t.meta.redirect != null)
1105
+ }), t.meta.redirect != null)
1106
1106
  if (typeof t.meta.redirect == "string") {
1107
1107
  const r = Qt(t.meta.redirect, t.params);
1108
- n(this, O).info(`Redirecting to: '${r}'`), n(this, k).replace(r);
1108
+ n(this, M).info(`↩️ redirecting from '${t.path}' to '${r}'`), n(this, k).replace(r);
1109
1109
  } else if (typeof t.meta.redirect == "function") {
1110
1110
  const r = {
1111
1111
  path: t.path,
@@ -1116,16 +1116,16 @@ Je = function(e, t = [], r = []) {
1116
1116
  let i = await t.meta.redirect(r);
1117
1117
  if (typeof i != "string")
1118
1118
  throw new Error("Redirect function must return a path to redirect to.");
1119
- i.startsWith("/") || (i = De(t.path, i)), n(this, O).info(`Redirecting to: '${i}'`), n(this, k).replace(i);
1119
+ i.startsWith("/") || (i = De(t.path, i)), n(this, M).info(`Redirecting to: '${i}'`), n(this, k).replace(i);
1120
1120
  } else
1121
1121
  throw new TypeError("Redirect must either be a path string or a function.");
1122
- else if (n(this, ue).call(this, t.path), n(this, he).call(this, t.params), t.pattern !== this.$pattern.get()) {
1122
+ else if (n(this, M).info(`📍 navigating to '${t.path}'`), n(this, ue).call(this, t.path), n(this, he).call(this, t.params), t.pattern !== this.$pattern.get()) {
1123
1123
  n(this, le).call(this, t.pattern);
1124
1124
  const r = t.meta.layers;
1125
1125
  for (let i = 0; i < r.length; i++) {
1126
1126
  const s = r[i], o = n(this, W)[i];
1127
1127
  if ((o == null ? void 0 : o.id) !== s.id) {
1128
- n(this, O).info(`Replacing layer @${i} (active ID: ${o == null ? void 0 : o.id}, matched ID: ${s.id})`), g(this, W, n(this, W).slice(0, i));
1128
+ g(this, W, n(this, W).slice(0, i));
1129
1129
  const f = n(this, W).at(-1);
1130
1130
  o && o.node.isMounted && o.node.unmount();
1131
1131
  let c;
@@ -1134,8 +1134,8 @@ Je = function(e, t = [], r = []) {
1134
1134
  }
1135
1135
  }
1136
1136
  };
1137
- const It = /(noopener|noreferrer) (noopener|noreferrer)/, Gt = /^[\w-_]+:/;
1138
- function Bt(a, e, t = window) {
1137
+ const Gt = /(noopener|noreferrer) (noopener|noreferrer)/, Bt = /^[\w-_]+:/;
1138
+ function It(a, e, t = window) {
1139
1139
  function r(s) {
1140
1140
  return !s || s === a ? null : s.localName !== "a" || s.href === void 0 ? r(s.parentNode) : s;
1141
1141
  }
@@ -1143,7 +1143,7 @@ function Bt(a, e, t = window) {
1143
1143
  if (s.button && s.button !== 0 || s.ctrlKey || s.metaKey || s.altKey || s.shiftKey || s.defaultPrevented)
1144
1144
  return;
1145
1145
  const o = r(s.target);
1146
- o && (t.location.protocol !== o.protocol || t.location.hostname !== o.hostname || t.location.port !== o.port || o.hasAttribute("data-router-ignore") || o.hasAttribute("download") || o.getAttribute("target") === "_blank" && It.test(o.getAttribute("rel")) || Gt.test(o.getAttribute("href")) || (s.preventDefault(), e(o)));
1146
+ o && (t.location.protocol !== o.protocol || t.location.hostname !== o.hostname || t.location.port !== o.port || o.hasAttribute("data-router-ignore") || o.hasAttribute("download") || o.getAttribute("target") === "_blank" && Gt.test(o.getAttribute("rel")) || Bt.test(o.getAttribute("href")) || (s.preventDefault(), e(o)));
1147
1147
  }
1148
1148
  return a.addEventListener("click", i), function() {
1149
1149
  a.removeEventListener("click", i);
@@ -1156,7 +1156,7 @@ function Qt(a, e) {
1156
1156
  }
1157
1157
  return a;
1158
1158
  }
1159
- var F, Pe, I, te, Se, Re, xe, Oe, Me, R, G;
1159
+ var F, Pe, G, te, Se, Re, xe, Oe, Me, R, B;
1160
1160
  class Kt {
1161
1161
  constructor() {
1162
1162
  L(this, "http");
@@ -1165,7 +1165,7 @@ class Kt {
1165
1165
  L(this, "router");
1166
1166
  h(this, F, !1);
1167
1167
  h(this, Pe, "production");
1168
- h(this, I);
1168
+ h(this, G);
1169
1169
  h(this, te);
1170
1170
  h(this, Se, Mt);
1171
1171
  h(this, Re, []);
@@ -1178,20 +1178,20 @@ class Kt {
1178
1178
  warn: "development",
1179
1179
  error: !0
1180
1180
  });
1181
- h(this, G, rt("*,-dolla/*"));
1181
+ h(this, B, rt("*,-dolla/*"));
1182
1182
  L(this, "createState", K);
1183
1183
  L(this, "createSettableState", $t);
1184
1184
  L(this, "toSettableState", Et);
1185
- L(this, "toState", Ge);
1185
+ L(this, "toState", Be);
1186
1186
  L(this, "valueOf", kt);
1187
- L(this, "derive", Be);
1187
+ L(this, "derive", Ie);
1188
1188
  L(this, "watch", ut);
1189
1189
  L(this, "createRef", Lt);
1190
1190
  L(this, "isRef", Pt);
1191
1191
  const e = this;
1192
1192
  this.http = new Nt(), this.language = new Dt(this), this.render = new Vt(this), this.router = new Ft(this, {
1193
1193
  get rootElement() {
1194
- return n(e, I);
1194
+ return n(e, G);
1195
1195
  },
1196
1196
  get rootView() {
1197
1197
  return n(e, te);
@@ -1230,11 +1230,11 @@ class Kt {
1230
1230
  throw new Error("Dolla is already mounted.");
1231
1231
  if (U(e)) {
1232
1232
  const i = document.querySelector(e);
1233
- nt(HTMLElement, i, `Selector '${e}' did not match any element.`), g(this, I, i);
1233
+ nt(HTMLElement, i, `Selector '${e}' did not match any element.`), g(this, G, i);
1234
1234
  } else
1235
- nt(HTMLElement, e, "Expected an HTML element or a selector string. Got type: %t, value: %v"), g(this, I, e);
1235
+ nt(HTMLElement, e, "Expected an HTML element or a selector string. Got type: %t, value: %v"), g(this, G, e);
1236
1236
  let r;
1237
- t ? r = at(t) : r = at(ht), g(this, te, this.constructView(r.type, r.props)), await Promise.all(n(this, Re).map((i) => i())), n(this, te).mount(n(this, I)), g(this, F, !0);
1237
+ t ? r = at(t) : r = at(ht), g(this, te, this.constructView(r.type, r.props)), await Promise.all(n(this, Re).map((i) => i())), n(this, te).mount(n(this, G)), g(this, F, !0);
1238
1238
  for (const i of n(this, xe))
1239
1239
  i();
1240
1240
  }
@@ -1282,15 +1282,15 @@ class Kt {
1282
1282
  }
1283
1283
  }
1284
1284
  setLogFilter(e) {
1285
- g(this, G, rt(e));
1285
+ g(this, B, rt(e));
1286
1286
  }
1287
1287
  createLogger(e, t) {
1288
- const r = Ge(e), i = (t == null ? void 0 : t.console) ?? St(), s = this;
1288
+ const r = Be(e), i = (t == null ? void 0 : t.console) ?? St(), s = this;
1289
1289
  return {
1290
1290
  get info() {
1291
1291
  var f;
1292
1292
  const o = r.get();
1293
- if (n(s, R).info === !1 || U(n(s, R).info) && n(s, R).info !== s.getEnv() || !n(f = s, G).call(f, o))
1293
+ if (n(s, R).info === !1 || U(n(s, R).info) && n(s, R).info !== s.getEnv() || !n(f = s, B).call(f, o))
1294
1294
  return Ne;
1295
1295
  {
1296
1296
  let c = `%c${o}`;
@@ -1307,7 +1307,7 @@ class Kt {
1307
1307
  get log() {
1308
1308
  var f;
1309
1309
  const o = r.get();
1310
- if (n(s, R).log === !1 || U(n(s, R).log) && n(s, R).log !== s.getEnv() || !n(f = s, G).call(f, o))
1310
+ if (n(s, R).log === !1 || U(n(s, R).log) && n(s, R).log !== s.getEnv() || !n(f = s, B).call(f, o))
1311
1311
  return Ne;
1312
1312
  {
1313
1313
  let c = `%c${o}`;
@@ -1324,7 +1324,7 @@ class Kt {
1324
1324
  get warn() {
1325
1325
  var f;
1326
1326
  const o = r.get();
1327
- if (n(s, R).warn === !1 || U(n(s, R).warn) && n(s, R).warn !== s.getEnv() || !n(f = s, G).call(f, o))
1327
+ if (n(s, R).warn === !1 || U(n(s, R).warn) && n(s, R).warn !== s.getEnv() || !n(f = s, B).call(f, o))
1328
1328
  return Ne;
1329
1329
  {
1330
1330
  let c = `%c${o}`;
@@ -1341,7 +1341,7 @@ class Kt {
1341
1341
  get error() {
1342
1342
  var f;
1343
1343
  const o = r.get();
1344
- if (n(s, R).error === !1 || U(n(s, R).error) && n(s, R).error !== s.getEnv() || !n(f = s, G).call(f, o))
1344
+ if (n(s, R).error === !1 || U(n(s, R).error) && n(s, R).error !== s.getEnv() || !n(f = s, B).call(f, o))
1345
1345
  return Ne;
1346
1346
  {
1347
1347
  let c = `%c${o}`;
@@ -1360,7 +1360,7 @@ class Kt {
1360
1360
  error: o,
1361
1361
  loggerName: r.get(),
1362
1362
  uid: t == null ? void 0 : t.uid
1363
- }).mount(n(s, I))), o;
1363
+ }).mount(n(s, G))), o;
1364
1364
  }
1365
1365
  };
1366
1366
  }
@@ -1377,7 +1377,7 @@ class Kt {
1377
1377
  return xt(Ot({ root: this, data: {} }, e));
1378
1378
  }
1379
1379
  }
1380
- F = new WeakMap(), Pe = new WeakMap(), I = new WeakMap(), te = new WeakMap(), Se = new WeakMap(), Re = new WeakMap(), xe = new WeakMap(), Oe = new WeakMap(), Me = new WeakMap(), R = new WeakMap(), G = new WeakMap();
1380
+ F = new WeakMap(), Pe = new WeakMap(), G = new WeakMap(), te = new WeakMap(), Se = new WeakMap(), Re = new WeakMap(), xe = new WeakMap(), Oe = new WeakMap(), Me = new WeakMap(), R = new WeakMap(), B = new WeakMap();
1381
1381
  const ct = new Kt(), Zt = ct.language.t.bind(ct.language);
1382
1382
  export {
1383
1383
  wt as cond,
@@ -1387,14 +1387,14 @@ export {
1387
1387
  rr as createSetter,
1388
1388
  K as createState,
1389
1389
  ct as default,
1390
- Be as derive,
1390
+ Ie as derive,
1391
1391
  tt as html,
1392
1392
  Pt as isRef,
1393
1393
  nr as portal,
1394
1394
  ar as repeat,
1395
1395
  Zt as t,
1396
1396
  Et as toSettableState,
1397
- Ge as toState,
1397
+ Be as toState,
1398
1398
  kt as valueOf
1399
1399
  };
1400
1400
  //# sourceMappingURL=index.js.map