@chaibuilder/pages 0.1.0-beta.63 → 0.1.0-beta.65

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.
@@ -9,10 +9,10 @@ import { useQueryClient as De, onlineManager as tr, useQuery as Ve, useMutation
9
9
  import { loadWebBlocks as ya } from "@chaibuilder/sdk/web-blocks";
10
10
  import { getBlocksFromHTML as pa, useLanguages as In, useRightPanel as va, useSavePage as xa, mergeClasses as Ea, ChaiBuilderEditor as ba } from "@chaibuilder/sdk";
11
11
  import { get as ce, find as qe, isEmpty as pe, filter as Ne, includes as Ht, has as Sa, pick as nr, keys as wa, pickBy as ja, endsWith as Aa, startCase as vs, reverse as Ca, sortBy as Na, isEqual as xs, startsWith as Cn, map as Me, toLower as Ft, trim as Ta, orderBy as gn, first as Pa, concat as _a, uniq as ka, debounce as Ga, compact as sr, cloneDeep as Oa, isString as Is } from "lodash-es";
12
- import { AlertCircle as La, StarIcon as Ia, MoreHorizontal as rr, PencilIcon as Da, Power as ar, Link as ir, TrashIcon as Ua, GlobeIcon as Ra, File as Nn, Eye as Ma, Palette as Ba, CheckCircle as Fa, Loader as or, Save as Wa, Send as Ds, Rocket as Us, ChevronDown as lr, Settings as qa, ExternalLink as Va, Search as Ha, Plus as cr, Pencil as $a, Trash as Ka, Logs as za, Languages as ur, Star as Qa } from "lucide-react";
13
- import { atom as Ya, useAtom as Xa } from "jotai";
14
- import { useRegisteredChaiBlocks as Ja, getDefaultBlockProps as Za } from "@chaibuilder/runtime";
15
- import { useToast as Xe, Accordion as ei, AccordionItem as yn, AccordionTrigger as pn, AccordionContent as vn, Label as le, Input as je, Textarea as xn, Button as se, Dialog as at, DialogContent as it, DialogHeader as ot, DialogTitle as lt, DialogDescription as kt, Alert as ti, DialogFooter as ln, DropdownMenu as Dn, DropdownMenuTrigger as Un, DropdownMenuContent as Rn, DropdownMenuItem as Le, TooltipProvider as ni, Tooltip as si, TooltipTrigger as ri, TooltipContent as ai, toast as Rt, Badge as Rs, Sheet as ii, SheetContent as oi, Separator as li } from "@chaibuilder/sdk/ui";
12
+ import { AlertCircle as La, StarIcon as Ia, MoreHorizontal as rr, PencilIcon as Da, Power as ar, Link as ir, TrashIcon as Ua, GlobeIcon as Ra, File as Nn, Eye as Ma, Palette as Ba, CheckCircle as Fa, Loader as or, Save as Wa, Send as Ds, Rocket as Us, ChevronDown as lr, Settings as qa, ExternalLink as Va, Search as Ha, Plus as cr, Globe as $a, Pencil as Ka, Trash as za, Logs as Qa, Languages as ur, Star as Ya } from "lucide-react";
13
+ import { atom as Xa, useAtom as Ja } from "jotai";
14
+ import { useRegisteredChaiBlocks as Za, getDefaultBlockProps as ei } from "@chaibuilder/runtime";
15
+ import { useToast as Xe, Accordion as ti, AccordionItem as yn, AccordionTrigger as pn, AccordionContent as vn, Label as le, Input as je, Textarea as xn, Button as se, Dialog as at, DialogContent as it, DialogHeader as ot, DialogTitle as lt, DialogDescription as kt, Alert as ni, DialogFooter as ln, DropdownMenu as Dn, DropdownMenuTrigger as Un, DropdownMenuContent as Rn, DropdownMenuItem as Le, TooltipProvider as si, Tooltip as ri, TooltipTrigger as ai, TooltipContent as ii, toast as Rt, Badge as Rs, Sheet as oi, SheetContent as li, Separator as ci } from "@chaibuilder/sdk/ui";
16
16
  var as = { exports: {} }, Mt = {};
17
17
  /**
18
18
  * @license React
@@ -24,7 +24,7 @@ var as = { exports: {} }, Mt = {};
24
24
  * LICENSE file in the root directory of this source tree.
25
25
  */
26
26
  var Ms;
27
- function ci() {
27
+ function ui() {
28
28
  if (Ms) return Mt;
29
29
  Ms = 1;
30
30
  var e = Ln, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
@@ -48,7 +48,7 @@ var Bt = {};
48
48
  * LICENSE file in the root directory of this source tree.
49
49
  */
50
50
  var Bs;
51
- function ui() {
51
+ function di() {
52
52
  return Bs || (Bs = 1, process.env.NODE_ENV !== "production" && function() {
53
53
  var e = Ln, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), T = Symbol.iterator, G = "@@iterator";
54
54
  function E(c) {
@@ -641,7 +641,7 @@ React keys must be passed directly to JSX without using spread:
641
641
  Bt.Fragment = s, Bt.jsx = ua, Bt.jsxs = da;
642
642
  }()), Bt;
643
643
  }
644
- process.env.NODE_ENV === "production" ? as.exports = ci() : as.exports = ui();
644
+ process.env.NODE_ENV === "production" ? as.exports = ui() : as.exports = di();
645
645
  var r = as.exports, B = {
646
646
  context: void 0,
647
647
  registry: void 0,
@@ -659,14 +659,14 @@ function Fs(e) {
659
659
  function Wt(e) {
660
660
  B.context = e;
661
661
  }
662
- var di = (e, t) => e === t, Tn = Symbol("solid-proxy"), dr = Symbol("solid-track"), Pn = {
663
- equals: di
662
+ var fi = (e, t) => e === t, Tn = Symbol("solid-proxy"), dr = Symbol("solid-track"), Pn = {
663
+ equals: fi
664
664
  }, fr = vr, $e = 1, _n = 2, hr = {
665
665
  owned: null,
666
666
  cleanups: null,
667
667
  context: null,
668
668
  owner: null
669
- }, es = {}, H = null, ts = null, fi = null, J = null, ve = null, We = null, Mn = 0;
669
+ }, es = {}, H = null, ts = null, hi = null, J = null, ve = null, We = null, Mn = 0;
670
670
  function st(e, t) {
671
671
  const n = J, s = H, a = e.length === 0, i = t === void 0 ? s : t, o = a ? hr : {
672
672
  owned: null,
@@ -700,7 +700,7 @@ function rt(e, t, n) {
700
700
  Gt(s);
701
701
  }
702
702
  function mr(e, t, n) {
703
- fr = Si;
703
+ fr = wi;
704
704
  const s = Bn(e, t, !1, $e);
705
705
  (!n || !n.render) && (s.user = !0), We ? We.push(s) : Gt(s);
706
706
  }
@@ -709,10 +709,10 @@ function Ae(e, t, n) {
709
709
  const s = Bn(e, t, !0, 0);
710
710
  return s.observers = null, s.observerSlots = null, s.comparator = n.equals || void 0, Gt(s), yr.bind(s);
711
711
  }
712
- function hi(e) {
712
+ function mi(e) {
713
713
  return e && typeof e == "object" && "then" in e;
714
714
  }
715
- function mi(e, t, n) {
715
+ function gi(e, t, n) {
716
716
  let s, a, i;
717
717
  arguments.length === 2 && typeof t == "object" || arguments.length === 1 ? (s = !0, a = e, i = {}) : (s = e, a = t, i = {});
718
718
  let o = null, l = es, u = null, f = !1, y = "initialValue" in i, h = typeof s == "function" && Ae(s);
@@ -738,7 +738,7 @@ function mi(e, t, n) {
738
738
  }, !1);
739
739
  }
740
740
  function Ie() {
741
- const S = xi, M = w(), Q = G();
741
+ const S = Ei, M = w(), Q = G();
742
742
  if (Q !== void 0 && !o)
743
743
  throw Q;
744
744
  return J && !J.user && S && Ws(() => {
@@ -758,7 +758,7 @@ function mi(e, t, n) {
758
758
  value: w(),
759
759
  refetching: S
760
760
  }));
761
- return hi(Q) ? (o = Q, "value" in Q ? (Q.status === "success" ? D(o, Q.value, void 0, M) : D(o, void 0, is(Q.value), M), Q) : (f = !0, queueMicrotask(() => f = !1), Be(() => {
761
+ return mi(Q) ? (o = Q, "value" in Q ? (Q.status === "success" ? D(o, Q.value, void 0, M) : D(o, void 0, is(Q.value), M), Q) : (f = !0, queueMicrotask(() => f = !1), Be(() => {
762
762
  F(y ? "refreshing" : "pending"), x();
763
763
  }, !1), Q.then((xe) => D(Q, xe, void 0, M), (xe) => D(Q, void 0, is(xe), M)))) : (D(o, Q, void 0, M), Q);
764
764
  }
@@ -790,7 +790,7 @@ function mi(e, t, n) {
790
790
  mutate: T
791
791
  }];
792
792
  }
793
- function _l(e) {
793
+ function kl(e) {
794
794
  return Be(e, !1);
795
795
  }
796
796
  function ge(e) {
@@ -804,7 +804,7 @@ function ge(e) {
804
804
  J = t;
805
805
  }
806
806
  }
807
- function kl(e, t, n) {
807
+ function Gl(e, t, n) {
808
808
  const s = Array.isArray(e);
809
809
  let a, i = n && n.defer;
810
810
  return (o) => {
@@ -821,7 +821,7 @@ function kl(e, t, n) {
821
821
  return a = l, u;
822
822
  };
823
823
  }
824
- function gi(e) {
824
+ function yi(e) {
825
825
  mr(() => ge(e));
826
826
  }
827
827
  function $t(e) {
@@ -830,7 +830,7 @@ function $t(e) {
830
830
  function qs() {
831
831
  return H;
832
832
  }
833
- function yi(e, t) {
833
+ function pi(e, t) {
834
834
  const n = H, s = J;
835
835
  H = e, J = null;
836
836
  try {
@@ -841,7 +841,7 @@ function yi(e, t) {
841
841
  H = n, J = s;
842
842
  }
843
843
  }
844
- function pi(e) {
844
+ function vi(e) {
845
845
  const t = J, n = H;
846
846
  return Promise.resolve().then(() => {
847
847
  J = t, H = n;
@@ -849,19 +849,19 @@ function pi(e) {
849
849
  return Be(e, !1), J = H = null, s ? s.done : void 0;
850
850
  });
851
851
  }
852
- var [vi, Gl] = /* @__PURE__ */ ie(!1);
853
- function Ol() {
854
- return [vi, pi];
852
+ var [xi, Ol] = /* @__PURE__ */ ie(!1);
853
+ function Ll() {
854
+ return [xi, vi];
855
855
  }
856
- function Ll(e, t) {
856
+ function Il(e, t) {
857
857
  const n = Symbol("context");
858
858
  return {
859
859
  id: n,
860
- Provider: wi(n),
860
+ Provider: ji(n),
861
861
  defaultValue: e
862
862
  };
863
863
  }
864
- function Il(e) {
864
+ function Dl(e) {
865
865
  let t;
866
866
  return H && H.context && (t = H.context[e.id]) !== void 0 ? t : e.defaultValue;
867
867
  }
@@ -872,7 +872,7 @@ function gr(e) {
872
872
  return Array.isArray(s) ? s : s != null ? [s] : [];
873
873
  }, n;
874
874
  }
875
- var xi;
875
+ var Ei;
876
876
  function yr() {
877
877
  if (this.sources && this.state)
878
878
  if (this.state === $e)
@@ -903,9 +903,9 @@ function Gt(e) {
903
903
  return;
904
904
  Fn(e);
905
905
  const t = Mn;
906
- Ei(e, e.value, t);
906
+ bi(e, e.value, t);
907
907
  }
908
- function Ei(e, t, n) {
908
+ function bi(e, t, n) {
909
909
  let s;
910
910
  const a = H, i = J;
911
911
  J = H = e;
@@ -959,12 +959,12 @@ function Be(e, t) {
959
959
  t || (ve = []), We ? n = !0 : We = [], Mn++;
960
960
  try {
961
961
  const s = e();
962
- return bi(n), s;
962
+ return Si(n), s;
963
963
  } catch (s) {
964
964
  n || (We = null), ve = null, Es(s);
965
965
  }
966
966
  }
967
- function bi(e) {
967
+ function Si(e) {
968
968
  if (ve && (vr(ve), ve = null), e)
969
969
  return;
970
970
  const t = We;
@@ -974,7 +974,7 @@ function vr(e) {
974
974
  for (let t = 0; t < e.length; t++)
975
975
  kn(e[t]);
976
976
  }
977
- function Si(e) {
977
+ function wi(e) {
978
978
  let t, n = 0;
979
979
  for (t = 0; t < e.length; t++) {
980
980
  const s = e[t];
@@ -1049,7 +1049,7 @@ function os(e) {
1049
1049
  }
1050
1050
  return e;
1051
1051
  }
1052
- function wi(e, t) {
1052
+ function ji(e, t) {
1053
1053
  return function(s) {
1054
1054
  let a;
1055
1055
  return rt(() => a = ge(() => (H.context = {
@@ -1063,7 +1063,7 @@ function On(e) {
1063
1063
  for (let t = 0; t < e.length; t++)
1064
1064
  e[t]();
1065
1065
  }
1066
- function ji(e, t, n = {}) {
1066
+ function Ai(e, t, n = {}) {
1067
1067
  let s = [], a = [], i = [], o = 0, l = t.length > 1 ? [] : null;
1068
1068
  return $t(() => On(i)), () => {
1069
1069
  let u = e() || [], f = u.length, y, h;
@@ -1099,7 +1099,7 @@ function ji(e, t, n = {}) {
1099
1099
  }
1100
1100
  };
1101
1101
  }
1102
- function Ai(e, t, n = {}) {
1102
+ function Ci(e, t, n = {}) {
1103
1103
  let s = [], a = [], i = [], o = [], l = 0, u;
1104
1104
  return $t(() => On(i)), () => {
1105
1105
  const f = e() || [], y = f.length;
@@ -1152,7 +1152,7 @@ var cs = {
1152
1152
  function ns(e) {
1153
1153
  return (e = typeof e == "function" ? e() : e) ? e : {};
1154
1154
  }
1155
- function Ci() {
1155
+ function Ni() {
1156
1156
  for (let e = 0, t = this.length; e < t; ++e) {
1157
1157
  const n = this[e]();
1158
1158
  if (n !== void 0)
@@ -1202,7 +1202,7 @@ function br(...e) {
1202
1202
  s[y] = h.get ? {
1203
1203
  enumerable: !0,
1204
1204
  configurable: !0,
1205
- get: Ci.bind(n[y] = [h.get.bind(l)])
1205
+ get: Ni.bind(n[y] = [h.get.bind(l)])
1206
1206
  } : h.value !== void 0 ? h : void 0;
1207
1207
  else {
1208
1208
  const v = n[y];
@@ -1217,7 +1217,7 @@ function br(...e) {
1217
1217
  }
1218
1218
  return a;
1219
1219
  }
1220
- function Ni(e, ...t) {
1220
+ function Ti(e, ...t) {
1221
1221
  if (Tn in e) {
1222
1222
  const a = new Set(t.length > 1 ? t.flat() : t[0]), i = t.map((o) => new Proxy({
1223
1223
  get(l) {
@@ -1262,7 +1262,7 @@ function Sr(e) {
1262
1262
  Wt(i), B.count--, u(() => f.default), Wt();
1263
1263
  }), t = l;
1264
1264
  } else if (!t) {
1265
- const [l] = mi(() => (n || (n = e())).then((u) => u.default));
1265
+ const [l] = gi(() => (n || (n = e())).then((u) => u.default));
1266
1266
  t = l;
1267
1267
  }
1268
1268
  let o;
@@ -1277,24 +1277,24 @@ function Sr(e) {
1277
1277
  };
1278
1278
  return s.preload = () => n || ((n = e()).then((a) => t = () => a.default), n), s;
1279
1279
  }
1280
- var Ti = 0;
1281
- function Dl() {
1282
- return B.context ? B.getNextContextId() : `cl-${Ti++}`;
1280
+ var Pi = 0;
1281
+ function Ul() {
1282
+ return B.context ? B.getNextContextId() : `cl-${Pi++}`;
1283
1283
  }
1284
1284
  var wr = (e) => `Stale read from <${e}>.`;
1285
- function Ul(e) {
1285
+ function Rl(e) {
1286
1286
  const t = "fallback" in e && {
1287
1287
  fallback: () => e.fallback
1288
1288
  };
1289
- return Ae(ji(() => e.each, e.children, t || void 0));
1289
+ return Ae(Ai(() => e.each, e.children, t || void 0));
1290
1290
  }
1291
- function Rl(e) {
1291
+ function Ml(e) {
1292
1292
  const t = "fallback" in e && {
1293
1293
  fallback: () => e.fallback
1294
1294
  };
1295
- return Ae(Ai(() => e.each, e.children, t || void 0));
1295
+ return Ae(Ci(() => e.each, e.children, t || void 0));
1296
1296
  }
1297
- function Ml(e) {
1297
+ function Bl(e) {
1298
1298
  const t = e.keyed, n = Ae(() => e.when, void 0, {
1299
1299
  equals: (s, a) => t ? s === a : !s == !a
1300
1300
  });
@@ -1311,7 +1311,7 @@ function Ml(e) {
1311
1311
  return e.fallback;
1312
1312
  }, void 0, void 0);
1313
1313
  }
1314
- function Bl(e) {
1314
+ function Fl(e) {
1315
1315
  let t = !1;
1316
1316
  const n = (i, o) => (t ? i[1] === o[1] : !i[1] == !o[1]) && i[2] === o[2], s = gr(() => e.children), a = Ae(() => {
1317
1317
  let i = s();
@@ -1337,13 +1337,13 @@ function Bl(e) {
1337
1337
  })) : u;
1338
1338
  }, void 0, void 0);
1339
1339
  }
1340
- function Fl(e) {
1340
+ function Wl(e) {
1341
1341
  return e;
1342
1342
  }
1343
- var Pi = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], _i = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...Pi]), ki = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), Gi = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
1343
+ var _i = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], ki = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ..._i]), Gi = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), Oi = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
1344
1344
  className: "class",
1345
1345
  htmlFor: "for"
1346
- }), Oi = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
1346
+ }), Li = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
1347
1347
  class: "className",
1348
1348
  formnovalidate: {
1349
1349
  $: "formNoValidate",
@@ -1368,11 +1368,11 @@ var Pi = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "contr
1368
1368
  TEXTAREA: 1
1369
1369
  }
1370
1370
  });
1371
- function Li(e, t) {
1372
- const n = Oi[e];
1371
+ function Ii(e, t) {
1372
+ const n = Li[e];
1373
1373
  return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
1374
1374
  }
1375
- var Ii = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), Di = /* @__PURE__ */ new Set([
1375
+ var Di = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), Ui = /* @__PURE__ */ new Set([
1376
1376
  "altGlyph",
1377
1377
  "altGlyphDef",
1378
1378
  "altGlyphItem",
@@ -1450,11 +1450,11 @@ var Ii = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
1450
1450
  "use",
1451
1451
  "view",
1452
1452
  "vkern"
1453
- ]), Ui = {
1453
+ ]), Ri = {
1454
1454
  xlink: "http://www.w3.org/1999/xlink",
1455
1455
  xml: "http://www.w3.org/XML/1998/namespace"
1456
1456
  };
1457
- function Ri(e, t, n) {
1457
+ function Mi(e, t, n) {
1458
1458
  let s = n.length, a = t.length, i = s, o = 0, l = 0, u = t[a - 1].nextSibling, f = null;
1459
1459
  for (; o < a || l < i; ) {
1460
1460
  if (t[o] === n[l]) {
@@ -1508,7 +1508,7 @@ function jr(e, t, n, s = {}) {
1508
1508
  a(), t.textContent = "";
1509
1509
  };
1510
1510
  }
1511
- function Wl(e, t, n) {
1511
+ function ql(e, t, n) {
1512
1512
  let s;
1513
1513
  const a = () => {
1514
1514
  const o = document.createElement("template");
@@ -1516,14 +1516,14 @@ function Wl(e, t, n) {
1516
1516
  }, i = () => (s || (s = a())).cloneNode(!0);
1517
1517
  return i.cloneNode = i, i;
1518
1518
  }
1519
- function Mi(e, t = window.document) {
1519
+ function Bi(e, t = window.document) {
1520
1520
  const n = t[qt] || (t[qt] = /* @__PURE__ */ new Set());
1521
1521
  for (let s = 0, a = e.length; s < a; s++) {
1522
1522
  const i = e[s];
1523
1523
  n.has(i) || (n.add(i), t.addEventListener(i, Ar));
1524
1524
  }
1525
1525
  }
1526
- function ql(e = window.document) {
1526
+ function Vl(e = window.document) {
1527
1527
  if (e[qt]) {
1528
1528
  for (let t of e[qt].keys())
1529
1529
  e.removeEventListener(t, Ar);
@@ -1533,13 +1533,13 @@ function ql(e = window.document) {
1533
1533
  function us(e, t, n) {
1534
1534
  B.context && e.isConnected || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
1535
1535
  }
1536
- function Bi(e, t, n, s) {
1536
+ function Fi(e, t, n, s) {
1537
1537
  B.context && e.isConnected || (s == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, s));
1538
1538
  }
1539
- function Fi(e, t) {
1539
+ function Wi(e, t) {
1540
1540
  B.context && e.isConnected || (t == null ? e.removeAttribute("class") : e.className = t);
1541
1541
  }
1542
- function Wi(e, t, n, s) {
1542
+ function qi(e, t, n, s) {
1543
1543
  if (s)
1544
1544
  Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
1545
1545
  else if (Array.isArray(n)) {
@@ -1548,7 +1548,7 @@ function Wi(e, t, n, s) {
1548
1548
  } else
1549
1549
  e.addEventListener(t, n);
1550
1550
  }
1551
- function qi(e, t, n = {}) {
1551
+ function Vi(e, t, n = {}) {
1552
1552
  const s = Object.keys(t || {}), a = Object.keys(n);
1553
1553
  let i, o;
1554
1554
  for (i = 0, o = a.length; i < o; i++) {
@@ -1561,7 +1561,7 @@ function qi(e, t, n = {}) {
1561
1561
  }
1562
1562
  return n;
1563
1563
  }
1564
- function Vi(e, t, n) {
1564
+ function Hi(e, t, n) {
1565
1565
  if (!t)
1566
1566
  return n ? us(e, "style") : t;
1567
1567
  const s = e.style;
@@ -1575,11 +1575,11 @@ function Vi(e, t, n) {
1575
1575
  a = t[i], a !== n[i] && (s.setProperty(i, a), n[i] = a);
1576
1576
  return n;
1577
1577
  }
1578
- function Hi(e, t = {}, n, s) {
1578
+ function $i(e, t = {}, n, s) {
1579
1579
  const a = {};
1580
- return s || rt(() => a.children = Kt(e, t.children, a.children)), rt(() => typeof t.ref == "function" && $i(t.ref, e)), rt(() => Ki(e, t, n, !0, a, !0)), a;
1580
+ return s || rt(() => a.children = Kt(e, t.children, a.children)), rt(() => typeof t.ref == "function" && Ki(t.ref, e)), rt(() => zi(e, t, n, !0, a, !0)), a;
1581
1581
  }
1582
- function $i(e, t, n) {
1582
+ function Ki(e, t, n) {
1583
1583
  return ge(() => e(t, n));
1584
1584
  }
1585
1585
  function ds(e, t, n, s) {
@@ -1587,7 +1587,7 @@ function ds(e, t, n, s) {
1587
1587
  return Kt(e, t, s, n);
1588
1588
  rt((a) => Kt(e, t(), a, n), s);
1589
1589
  }
1590
- function Ki(e, t, n, s, a = {}, i = !1) {
1590
+ function zi(e, t, n, s, a = {}, i = !1) {
1591
1591
  t || (t = {});
1592
1592
  for (const o in a)
1593
1593
  if (!(o in t)) {
@@ -1602,11 +1602,11 @@ function Ki(e, t, n, s, a = {}, i = !1) {
1602
1602
  a[o] = Hs(e, o, l, a[o], n, i);
1603
1603
  }
1604
1604
  }
1605
- function zi(e) {
1605
+ function Qi(e) {
1606
1606
  let t, n;
1607
- return !B.context || !(t = B.registry.get(n = Yi())) ? e() : (B.completed && B.completed.add(t), B.registry.delete(n), t);
1607
+ return !B.context || !(t = B.registry.get(n = Xi())) ? e() : (B.completed && B.completed.add(t), B.registry.delete(n), t);
1608
1608
  }
1609
- function Qi(e) {
1609
+ function Yi(e) {
1610
1610
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
1611
1611
  }
1612
1612
  function Vs(e, t, n) {
@@ -1617,9 +1617,9 @@ function Vs(e, t, n) {
1617
1617
  function Hs(e, t, n, s, a, i) {
1618
1618
  let o, l, u, f, y;
1619
1619
  if (t === "style")
1620
- return Vi(e, n, s);
1620
+ return Hi(e, n, s);
1621
1621
  if (t === "classList")
1622
- return qi(e, n, s);
1622
+ return Vi(e, n, s);
1623
1623
  if (n === s)
1624
1624
  return s;
1625
1625
  if (t === "ref")
@@ -1631,23 +1631,23 @@ function Hs(e, t, n, s, a, i) {
1631
1631
  const h = t.slice(10);
1632
1632
  s && e.removeEventListener(h, s, !0), n && e.addEventListener(h, n, !0);
1633
1633
  } else if (t.slice(0, 2) === "on") {
1634
- const h = t.slice(2).toLowerCase(), v = Ii.has(h);
1634
+ const h = t.slice(2).toLowerCase(), v = Di.has(h);
1635
1635
  if (!v && s) {
1636
1636
  const w = Array.isArray(s) ? s[0] : s;
1637
1637
  e.removeEventListener(h, w);
1638
1638
  }
1639
- (v || n) && (Wi(e, h, n, v), v && Mi([h]));
1639
+ (v || n) && (qi(e, h, n, v), v && Bi([h]));
1640
1640
  } else if (t.slice(0, 5) === "attr:")
1641
1641
  us(e, t.slice(5), n);
1642
- else if ((y = t.slice(0, 5) === "prop:") || (u = ki.has(t)) || !a && ((f = Li(t, e.tagName)) || (l = _i.has(t))) || (o = e.nodeName.includes("-"))) {
1642
+ else if ((y = t.slice(0, 5) === "prop:") || (u = Gi.has(t)) || !a && ((f = Ii(t, e.tagName)) || (l = ki.has(t))) || (o = e.nodeName.includes("-"))) {
1643
1643
  if (y)
1644
1644
  t = t.slice(5), l = !0;
1645
1645
  else if (B.context && e.isConnected)
1646
1646
  return n;
1647
- t === "class" || t === "className" ? Fi(e, n) : o && !l && !u ? e[Qi(t)] = n : e[f || t] = n;
1647
+ t === "class" || t === "className" ? Wi(e, n) : o && !l && !u ? e[Yi(t)] = n : e[f || t] = n;
1648
1648
  } else {
1649
- const h = a && t.indexOf(":") > -1 && Ui[t.split(":")[0]];
1650
- h ? Bi(e, h, t, n) : us(e, Gi[t] || t, n);
1649
+ const h = a && t.indexOf(":") > -1 && Ri[t.split(":")[0]];
1650
+ h ? Fi(e, h, t, n) : us(e, Oi[t] || t, n);
1651
1651
  }
1652
1652
  return n;
1653
1653
  }
@@ -1725,7 +1725,7 @@ function Kt(e, t, n, s, a) {
1725
1725
  if (u.length === 0) {
1726
1726
  if (n = ft(e, n, s), l)
1727
1727
  return n;
1728
- } else f ? n.length === 0 ? $s(e, u, s) : Ri(e, n, u) : (n && ft(e), $s(e, u));
1728
+ } else f ? n.length === 0 ? $s(e, u, s) : Mi(e, n, u) : (n && ft(e), $s(e, u));
1729
1729
  n = u;
1730
1730
  } else if (t.nodeType) {
1731
1731
  if (i && t.parentNode)
@@ -1785,20 +1785,20 @@ function ft(e, t, n, s) {
1785
1785
  e.insertBefore(a, n);
1786
1786
  return [a];
1787
1787
  }
1788
- function Yi() {
1788
+ function Xi() {
1789
1789
  return B.getNextContextId();
1790
1790
  }
1791
- var Xi = "http://www.w3.org/2000/svg";
1791
+ var Ji = "http://www.w3.org/2000/svg";
1792
1792
  function Cr(e, t = !1) {
1793
- return t ? document.createElementNS(Xi, e) : document.createElement(e);
1793
+ return t ? document.createElementNS(Ji, e) : document.createElement(e);
1794
1794
  }
1795
- function Vl(e) {
1795
+ function Hl(e) {
1796
1796
  const {
1797
1797
  useShadow: t
1798
1798
  } = e, n = document.createTextNode(""), s = () => e.mount || document.body, a = qs();
1799
1799
  let i, o = !!B.context;
1800
1800
  return mr(() => {
1801
- o && (qs().user = o = !1), i || (i = yi(a, () => Ae(() => e.children)));
1801
+ o && (qs().user = o = !1), i || (i = pi(a, () => Ae(() => e.children)));
1802
1802
  const l = s();
1803
1803
  if (l instanceof HTMLHeadElement) {
1804
1804
  const [u, f] = ie(!1), y = () => f(!0);
@@ -1818,20 +1818,20 @@ function Vl(e) {
1818
1818
  render: !o
1819
1819
  }), n;
1820
1820
  }
1821
- function Hl(e) {
1822
- const [t, n] = Ni(e, ["component"]), s = Ae(() => t.component);
1821
+ function $l(e) {
1822
+ const [t, n] = Ti(e, ["component"]), s = Ae(() => t.component);
1823
1823
  return Ae(() => {
1824
1824
  const a = s();
1825
1825
  switch (typeof a) {
1826
1826
  case "function":
1827
1827
  return ge(() => a(n));
1828
1828
  case "string":
1829
- const i = Di.has(a), o = B.context ? zi() : Cr(a, i);
1830
- return Hi(o, n, i), o;
1829
+ const i = Ui.has(a), o = B.context ? Qi() : Cr(a, i);
1830
+ return $i(o, n, i), o;
1831
1831
  }
1832
1832
  });
1833
1833
  }
1834
- var Ji = class {
1834
+ var Zi = class {
1835
1835
  constructor() {
1836
1836
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
1837
1837
  }
@@ -1849,7 +1849,7 @@ var Ji = class {
1849
1849
  }
1850
1850
  }, Nr = class {
1851
1851
  constructor(e) {
1852
- this.generateIdentifier = e, this.kv = new Ji();
1852
+ this.generateIdentifier = e, this.kv = new Zi();
1853
1853
  }
1854
1854
  register(e, t) {
1855
1855
  this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
@@ -1863,7 +1863,7 @@ var Ji = class {
1863
1863
  getValue(e) {
1864
1864
  return this.kv.getByKey(e);
1865
1865
  }
1866
- }, Zi = class extends Nr {
1866
+ }, eo = class extends Nr {
1867
1867
  constructor() {
1868
1868
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
1869
1869
  }
@@ -1874,7 +1874,7 @@ var Ji = class {
1874
1874
  return this.classToAllowedProps.get(e);
1875
1875
  }
1876
1876
  };
1877
- function eo(e) {
1877
+ function to(e) {
1878
1878
  if ("values" in Object)
1879
1879
  return Object.values(e);
1880
1880
  const t = [];
@@ -1882,8 +1882,8 @@ function eo(e) {
1882
1882
  e.hasOwnProperty(n) && t.push(e[n]);
1883
1883
  return t;
1884
1884
  }
1885
- function to(e, t) {
1886
- const n = eo(e);
1885
+ function no(e, t) {
1886
+ const n = to(e);
1887
1887
  if ("find" in n)
1888
1888
  return n.find(t);
1889
1889
  const s = n;
@@ -1906,7 +1906,7 @@ function Ks(e, t) {
1906
1906
  return s;
1907
1907
  }
1908
1908
  }
1909
- var no = class {
1909
+ var so = class {
1910
1910
  constructor() {
1911
1911
  this.transfomers = {};
1912
1912
  }
@@ -1914,12 +1914,12 @@ var no = class {
1914
1914
  this.transfomers[e.name] = e;
1915
1915
  }
1916
1916
  findApplicable(e) {
1917
- return to(this.transfomers, (t) => t.isApplicable(e));
1917
+ return no(this.transfomers, (t) => t.isApplicable(e));
1918
1918
  }
1919
1919
  findByName(e) {
1920
1920
  return this.transfomers[e];
1921
1921
  }
1922
- }, so = (e) => Object.prototype.toString.call(e).slice(8, -1), Tr = (e) => typeof e > "u", ro = (e) => e === null, zt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, hs = (e) => zt(e) && Object.keys(e).length === 0, Ye = (e) => Array.isArray(e), ao = (e) => typeof e == "string", io = (e) => typeof e == "number" && !isNaN(e), oo = (e) => typeof e == "boolean", lo = (e) => e instanceof RegExp, Qt = (e) => e instanceof Map, Yt = (e) => e instanceof Set, Pr = (e) => so(e) === "Symbol", co = (e) => e instanceof Date && !isNaN(e.valueOf()), uo = (e) => e instanceof Error, zs = (e) => typeof e == "number" && isNaN(e), fo = (e) => oo(e) || ro(e) || Tr(e) || io(e) || ao(e) || Pr(e), ho = (e) => typeof e == "bigint", mo = (e) => e === 1 / 0 || e === -1 / 0, go = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), yo = (e) => e instanceof URL, _r = (e) => e.replace(/\./g, "\\."), ss = (e) => e.map(String).map(_r).join("."), Vt = (e) => {
1922
+ }, ro = (e) => Object.prototype.toString.call(e).slice(8, -1), Tr = (e) => typeof e > "u", ao = (e) => e === null, zt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, hs = (e) => zt(e) && Object.keys(e).length === 0, Ye = (e) => Array.isArray(e), io = (e) => typeof e == "string", oo = (e) => typeof e == "number" && !isNaN(e), lo = (e) => typeof e == "boolean", co = (e) => e instanceof RegExp, Qt = (e) => e instanceof Map, Yt = (e) => e instanceof Set, Pr = (e) => ro(e) === "Symbol", uo = (e) => e instanceof Date && !isNaN(e.valueOf()), fo = (e) => e instanceof Error, zs = (e) => typeof e == "number" && isNaN(e), ho = (e) => lo(e) || ao(e) || Tr(e) || oo(e) || io(e) || Pr(e), mo = (e) => typeof e == "bigint", go = (e) => e === 1 / 0 || e === -1 / 0, yo = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), po = (e) => e instanceof URL, _r = (e) => e.replace(/\./g, "\\."), ss = (e) => e.map(String).map(_r).join("."), Vt = (e) => {
1923
1923
  const t = [];
1924
1924
  let n = "";
1925
1925
  for (let a = 0; a < e.length; a++) {
@@ -1948,9 +1948,9 @@ function Re(e, t, n, s) {
1948
1948
  var kr = [
1949
1949
  Re(Tr, "undefined", () => null, () => {
1950
1950
  }),
1951
- Re(ho, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
1952
- Re(co, "Date", (e) => e.toISOString(), (e) => new Date(e)),
1953
- Re(uo, "Error", (e, t) => {
1951
+ Re(mo, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
1952
+ Re(uo, "Date", (e) => e.toISOString(), (e) => new Date(e)),
1953
+ Re(fo, "Error", (e, t) => {
1954
1954
  const n = {
1955
1955
  name: e.name,
1956
1956
  message: e.message
@@ -1964,7 +1964,7 @@ var kr = [
1964
1964
  n[s] = e[s];
1965
1965
  }), n;
1966
1966
  }),
1967
- Re(lo, "regexp", (e) => "" + e, (e) => {
1967
+ Re(co, "regexp", (e) => "" + e, (e) => {
1968
1968
  const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
1969
1969
  return new RegExp(t, n);
1970
1970
  }),
@@ -1977,9 +1977,9 @@ var kr = [
1977
1977
  (e) => new Set(e)
1978
1978
  ),
1979
1979
  Re(Qt, "map", (e) => [...e.entries()], (e) => new Map(e)),
1980
- Re((e) => zs(e) || mo(e), "number", (e) => zs(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
1980
+ Re((e) => zs(e) || go(e), "number", (e) => zs(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
1981
1981
  Re((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
1982
- Re(yo, "URL", (e) => e.toString(), (e) => new URL(e))
1982
+ Re(po, "URL", (e) => e.toString(), (e) => new URL(e))
1983
1983
  ];
1984
1984
  function Wn(e, t, n, s) {
1985
1985
  return {
@@ -1994,7 +1994,7 @@ var Gr = Wn((e, t) => Pr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
1994
1994
  if (!s)
1995
1995
  throw new Error("Trying to deserialize unknown symbol");
1996
1996
  return s;
1997
- }), po = [
1997
+ }), vo = [
1998
1998
  Int8Array,
1999
1999
  Uint8Array,
2000
2000
  Int16Array,
@@ -2004,8 +2004,8 @@ var Gr = Wn((e, t) => Pr(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
2004
2004
  Float32Array,
2005
2005
  Float64Array,
2006
2006
  Uint8ClampedArray
2007
- ].reduce((e, t) => (e[t.name] = t, e), {}), Or = Wn(go, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
2008
- const n = po[t[1]];
2007
+ ].reduce((e, t) => (e[t.name] = t, e), {}), Or = Wn(yo, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
2008
+ const n = vo[t[1]];
2009
2009
  if (!n)
2010
2010
  throw new Error("Trying to deserialize unknown typed array");
2011
2011
  return new n(e);
@@ -2031,8 +2031,8 @@ var Ir = Wn(Lr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
2031
2031
  if (!s)
2032
2032
  throw new Error("Trying to deserialize unknown custom value");
2033
2033
  return s.deserialize(e);
2034
- }), vo = [Ir, Gr, Dr, Or], Qs = (e, t) => {
2035
- const n = Ks(vo, (a) => a.isApplicable(e, t));
2034
+ }), xo = [Ir, Gr, Dr, Or], Qs = (e, t) => {
2035
+ const n = Ks(xo, (a) => a.isApplicable(e, t));
2036
2036
  if (n)
2037
2037
  return {
2038
2038
  value: n.transform(e, t),
@@ -2048,7 +2048,7 @@ var Ir = Wn(Lr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
2048
2048
  kr.forEach((e) => {
2049
2049
  Ur[e.annotation] = e;
2050
2050
  });
2051
- var xo = (e, t, n) => {
2051
+ var Eo = (e, t, n) => {
2052
2052
  if (Ye(t))
2053
2053
  switch (t[0]) {
2054
2054
  case "symbol":
@@ -2082,7 +2082,7 @@ function Rr(e) {
2082
2082
  if (An(e, "constructor"))
2083
2083
  throw new Error("constructor is not allowed as a property");
2084
2084
  }
2085
- var Eo = (e, t) => {
2085
+ var bo = (e, t) => {
2086
2086
  Rr(t);
2087
2087
  for (let n = 0; n < t.length; n++) {
2088
2088
  const s = t[n];
@@ -2163,14 +2163,14 @@ function gs(e, t, n = []) {
2163
2163
  gs(i, t, [...n, ...Vt(o)]);
2164
2164
  }), t(s, n);
2165
2165
  }
2166
- function bo(e, t, n) {
2166
+ function So(e, t, n) {
2167
2167
  return gs(t, (s, a) => {
2168
- e = ms(e, a, (i) => xo(i, s, n));
2168
+ e = ms(e, a, (i) => Eo(i, s, n));
2169
2169
  }), e;
2170
2170
  }
2171
- function So(e, t) {
2171
+ function wo(e, t) {
2172
2172
  function n(s, a) {
2173
- const i = Eo(e, Vt(a));
2173
+ const i = bo(e, Vt(a));
2174
2174
  s.map(Vt).forEach((o) => {
2175
2175
  e = ms(e, o, () => i);
2176
2176
  });
@@ -2184,12 +2184,12 @@ function So(e, t) {
2184
2184
  Pt(t, n);
2185
2185
  return e;
2186
2186
  }
2187
- var wo = (e, t) => zt(e) || Ye(e) || Qt(e) || Yt(e) || Lr(e, t);
2188
- function jo(e, t, n) {
2187
+ var jo = (e, t) => zt(e) || Ye(e) || Qt(e) || Yt(e) || Lr(e, t);
2188
+ function Ao(e, t, n) {
2189
2189
  const s = n.get(e);
2190
2190
  s ? s.push(t) : n.set(e, [t]);
2191
2191
  }
2192
- function Ao(e, t) {
2192
+ function Co(e, t) {
2193
2193
  const n = {};
2194
2194
  let s;
2195
2195
  return e.forEach((a) => {
@@ -2201,16 +2201,16 @@ function Ao(e, t) {
2201
2201
  }), s ? hs(n) ? [s] : [s, n] : hs(n) ? void 0 : n;
2202
2202
  }
2203
2203
  var Mr = (e, t, n, s, a = [], i = [], o = /* @__PURE__ */ new Map()) => {
2204
- const l = fo(e);
2204
+ const l = ho(e);
2205
2205
  if (!l) {
2206
- jo(e, a, t);
2206
+ Ao(e, a, t);
2207
2207
  const w = o.get(e);
2208
2208
  if (w)
2209
2209
  return s ? {
2210
2210
  transformedValue: null
2211
2211
  } : w;
2212
2212
  }
2213
- if (!wo(e, n)) {
2213
+ if (!jo(e, n)) {
2214
2214
  const w = Qs(e, n), T = w ? {
2215
2215
  transformedValue: w.value,
2216
2216
  annotations: [w.type]
@@ -2247,13 +2247,13 @@ function Br(e) {
2247
2247
  function Ys(e) {
2248
2248
  return Br(e) === "Array";
2249
2249
  }
2250
- function Co(e) {
2250
+ function No(e) {
2251
2251
  if (Br(e) !== "Object")
2252
2252
  return !1;
2253
2253
  const t = Object.getPrototypeOf(e);
2254
2254
  return !!t && t.constructor === Object && t === Object.prototype;
2255
2255
  }
2256
- function No(e, t, n, s, a) {
2256
+ function To(e, t, n, s, a) {
2257
2257
  const i = {}.propertyIsEnumerable.call(s, t) ? "enumerable" : "nonenumerable";
2258
2258
  i === "enumerable" && (e[t] = n), a && i === "nonenumerable" && Object.defineProperty(e, t, {
2259
2259
  value: n,
@@ -2265,14 +2265,14 @@ function No(e, t, n, s, a) {
2265
2265
  function ys(e, t = {}) {
2266
2266
  if (Ys(e))
2267
2267
  return e.map((a) => ys(a, t));
2268
- if (!Co(e))
2268
+ if (!No(e))
2269
2269
  return e;
2270
2270
  const n = Object.getOwnPropertyNames(e), s = Object.getOwnPropertySymbols(e);
2271
2271
  return [...n, ...s].reduce((a, i) => {
2272
2272
  if (Ys(t.props) && !t.props.includes(i))
2273
2273
  return a;
2274
2274
  const o = e[i], l = ys(o, t);
2275
- return No(a, i, l, e, t.nonenumerable), a;
2275
+ return To(a, i, l, e, t.nonenumerable), a;
2276
2276
  }, {});
2277
2277
  }
2278
2278
  var Z = class {
@@ -2280,7 +2280,7 @@ var Z = class {
2280
2280
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
2281
2281
  */
2282
2282
  constructor({ dedupe: e = !1 } = {}) {
2283
- this.classRegistry = new Zi(), this.symbolRegistry = new Nr((t) => t.description ?? ""), this.customTransformerRegistry = new no(), this.allowedErrorProps = [], this.dedupe = e;
2283
+ this.classRegistry = new eo(), this.symbolRegistry = new Nr((t) => t.description ?? ""), this.customTransformerRegistry = new so(), this.allowedErrorProps = [], this.dedupe = e;
2284
2284
  }
2285
2285
  serialize(e) {
2286
2286
  const t = /* @__PURE__ */ new Map(), n = Mr(e, t, this, this.dedupe), s = {
@@ -2290,7 +2290,7 @@ var Z = class {
2290
2290
  ...s.meta,
2291
2291
  values: n.annotations
2292
2292
  });
2293
- const a = Ao(t, this.dedupe);
2293
+ const a = Co(t, this.dedupe);
2294
2294
  return a && (s.meta = {
2295
2295
  ...s.meta,
2296
2296
  referentialEqualities: a
@@ -2299,7 +2299,7 @@ var Z = class {
2299
2299
  deserialize(e) {
2300
2300
  const { json: t, meta: n } = e;
2301
2301
  let s = ys(t);
2302
- return n != null && n.values && (s = bo(s, n.values, this)), n != null && n.referentialEqualities && (s = So(s, n.referentialEqualities)), s;
2302
+ return n != null && n.values && (s = So(s, n.values, this)), n != null && n.referentialEqualities && (s = wo(s, n.referentialEqualities)), s;
2303
2303
  }
2304
2304
  stringify(e) {
2305
2305
  return JSON.stringify(this.serialize(e));
@@ -2332,44 +2332,44 @@ Z.registerClass = Z.defaultInstance.registerClass.bind(Z.defaultInstance);
2332
2332
  Z.registerSymbol = Z.defaultInstance.registerSymbol.bind(Z.defaultInstance);
2333
2333
  Z.registerCustom = Z.defaultInstance.registerCustom.bind(Z.defaultInstance);
2334
2334
  Z.allowErrorProps = Z.defaultInstance.allowErrorProps.bind(Z.defaultInstance);
2335
- var To = Z.serialize, $l = Z.stringify;
2336
- function Kl(e) {
2335
+ var Po = Z.serialize, Kl = Z.stringify;
2336
+ function zl(e) {
2337
2337
  return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
2338
2338
  }
2339
- function zl(e, t) {
2339
+ function Ql(e, t) {
2340
2340
  return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
2341
2341
  }
2342
- function Ql({
2342
+ function Yl({
2343
2343
  queryState: e,
2344
2344
  observerCount: t,
2345
2345
  isStale: n
2346
2346
  }) {
2347
2347
  return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : n ? "yellow" : "green" : "gray";
2348
2348
  }
2349
- function Yl({
2349
+ function Xl({
2350
2350
  status: e,
2351
2351
  isPaused: t
2352
2352
  }) {
2353
2353
  return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
2354
2354
  }
2355
- function Xl(e) {
2355
+ function Jl(e) {
2356
2356
  return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
2357
2357
  }
2358
- var Jl = (e, t = !1) => {
2358
+ var Zl = (e, t = !1) => {
2359
2359
  const {
2360
2360
  json: n
2361
- } = To(e);
2361
+ } = Po(e);
2362
2362
  return JSON.stringify(n, null, t ? 2 : void 0);
2363
- }, bn = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, Po = (e, t) => e.queryHash.localeCompare(t.queryHash), Fr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, _o = (e, t) => bn(e) === bn(t) ? Fr(e, t) : bn(e) > bn(t) ? 1 : -1, Zl = {
2364
- status: _o,
2365
- "query hash": Po,
2366
- "last updated": Fr
2367
- }, Sn = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Wr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, ko = (e, t) => Sn(e) === Sn(t) ? Wr(e, t) : Sn(e) > Sn(t) ? 1 : -1, ec = {
2363
+ }, bn = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, _o = (e, t) => e.queryHash.localeCompare(t.queryHash), Fr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, ko = (e, t) => bn(e) === bn(t) ? Fr(e, t) : bn(e) > bn(t) ? 1 : -1, ec = {
2368
2364
  status: ko,
2365
+ "query hash": _o,
2366
+ "last updated": Fr
2367
+ }, Sn = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Wr = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, Go = (e, t) => Sn(e) === Sn(t) ? Wr(e, t) : Sn(e) > Sn(t) ? 1 : -1, tc = {
2368
+ status: Go,
2369
2369
  "last updated": Wr
2370
- }, tc = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), nc = () => {
2370
+ }, nc = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), sc = () => {
2371
2371
  const [e, t] = ie("dark");
2372
- return gi(() => {
2372
+ return yi(() => {
2373
2373
  const n = window.matchMedia("(prefers-color-scheme: dark)");
2374
2374
  t(n.matches ? "dark" : "light");
2375
2375
  const s = (a) => {
@@ -2442,7 +2442,7 @@ var Jl = (e, t = !1) => {
2442
2442
  return;
2443
2443
  const s = document.createElement("style"), a = document.createTextNode("");
2444
2444
  s.appendChild(a), s.id = "_goober", s.setAttribute("nonce", e), t ? t.appendChild(s) : document.head.appendChild(s);
2445
- }, mt, Xt, Jt, Zt, tt, en, gt, yt, pt, vt, xt, Et, tn, Js, Go = (Js = class {
2445
+ }, mt, Xt, Jt, Zt, tt, en, gt, yt, pt, vt, xt, Et, tn, Js, Oo = (Js = class {
2446
2446
  constructor(e) {
2447
2447
  X(this, mt);
2448
2448
  X(this, Xt);
@@ -2492,7 +2492,7 @@ var Jl = (e, t = !1) => {
2492
2492
  const t = jr(() => {
2493
2493
  const n = this, [s] = k(this, yt), [a] = k(this, pt), [i] = k(this, vt), [o] = k(this, xt), [l] = k(this, mt);
2494
2494
  let u;
2495
- return k(this, Et) ? u = k(this, Et) : (u = Sr(() => import("./BMGNQTAT-Dj9iVk31.js")), z(this, Et, u)), qr(k(this, en), k(this, gt)), Er(u, br({
2495
+ return k(this, Et) ? u = k(this, Et) : (u = Sr(() => import("./BMGNQTAT-BjhUrZv0.js")), z(this, Et, u)), qr(k(this, en), k(this, gt)), Er(u, br({
2496
2496
  get queryFlavor() {
2497
2497
  return k(n, Jt);
2498
2498
  },
@@ -2531,7 +2531,7 @@ var Jl = (e, t = !1) => {
2531
2531
  throw new Error("Devtools is not mounted");
2532
2532
  (e = k(this, tn)) == null || e.call(this), z(this, tt, !1);
2533
2533
  }
2534
- }, mt = new WeakMap(), Xt = new WeakMap(), Jt = new WeakMap(), Zt = new WeakMap(), tt = new WeakMap(), en = new WeakMap(), gt = new WeakMap(), yt = new WeakMap(), pt = new WeakMap(), vt = new WeakMap(), xt = new WeakMap(), Et = new WeakMap(), tn = new WeakMap(), Js), bt, nn, sn, rn, nt, an, St, wt, jt, At, Ct, Nt, Tt, on, Zs, Oo = (Zs = class {
2534
+ }, mt = new WeakMap(), Xt = new WeakMap(), Jt = new WeakMap(), Zt = new WeakMap(), tt = new WeakMap(), en = new WeakMap(), gt = new WeakMap(), yt = new WeakMap(), pt = new WeakMap(), vt = new WeakMap(), xt = new WeakMap(), Et = new WeakMap(), tn = new WeakMap(), Js), bt, nn, sn, rn, nt, an, St, wt, jt, At, Ct, Nt, Tt, on, Zs, Lo = (Zs = class {
2535
2535
  constructor(e) {
2536
2536
  X(this, bt);
2537
2537
  X(this, nn);
@@ -2586,7 +2586,7 @@ var Jl = (e, t = !1) => {
2586
2586
  const t = jr(() => {
2587
2587
  const n = this, [s] = k(this, wt), [a] = k(this, jt), [i] = k(this, At), [o] = k(this, Ct), [l] = k(this, bt), [u] = k(this, Nt);
2588
2588
  let f;
2589
- return k(this, Tt) ? f = k(this, Tt) : (f = Sr(() => import("./UODQIBEW-cSX2ghZi.js")), z(this, Tt, f)), qr(k(this, an), k(this, St)), Er(f, br({
2589
+ return k(this, Tt) ? f = k(this, Tt) : (f = Sr(() => import("./UODQIBEW-DjIIlqi0.js")), z(this, Tt, f)), qr(k(this, an), k(this, St)), Er(f, br({
2590
2590
  get queryFlavor() {
2591
2591
  return k(n, sn);
2592
2592
  },
@@ -2629,7 +2629,7 @@ var Jl = (e, t = !1) => {
2629
2629
  (e = k(this, on)) == null || e.call(this), z(this, nt, !1);
2630
2630
  }
2631
2631
  }, bt = new WeakMap(), nn = new WeakMap(), sn = new WeakMap(), rn = new WeakMap(), nt = new WeakMap(), an = new WeakMap(), St = new WeakMap(), wt = new WeakMap(), jt = new WeakMap(), At = new WeakMap(), Ct = new WeakMap(), Nt = new WeakMap(), Tt = new WeakMap(), on = new WeakMap(), Zs);
2632
- function Lo(e) {
2632
+ function Io(e) {
2633
2633
  const t = De(e.client), n = we.useRef(null), {
2634
2634
  buttonPosition: s,
2635
2635
  position: a,
@@ -2638,7 +2638,7 @@ function Lo(e) {
2638
2638
  styleNonce: l,
2639
2639
  shadowDOMTarget: u
2640
2640
  } = e, [f] = we.useState(
2641
- new Go({
2641
+ new Oo({
2642
2642
  client: t,
2643
2643
  queryFlavor: "React Query",
2644
2644
  version: "5",
@@ -2665,9 +2665,9 @@ function Lo(e) {
2665
2665
  f.unmount();
2666
2666
  }), [f]), /* @__PURE__ */ r.jsx("div", { className: "tsqd-parent-container", ref: n });
2667
2667
  }
2668
- function Io(e) {
2668
+ function Do(e) {
2669
2669
  const t = De(e.client), n = we.useRef(null), { errorTypes: s, styleNonce: a, shadowDOMTarget: i } = e, [o] = we.useState(
2670
- new Oo({
2670
+ new Lo({
2671
2671
  client: t,
2672
2672
  queryFlavor: "React Query",
2673
2673
  version: "5",
@@ -2699,11 +2699,11 @@ function Io(e) {
2699
2699
  }
2700
2700
  );
2701
2701
  }
2702
- var Do = process.env.NODE_ENV !== "development" ? function() {
2702
+ var Uo = process.env.NODE_ENV !== "development" ? function() {
2703
2703
  return null;
2704
- } : Lo;
2704
+ } : Io;
2705
2705
  process.env.NODE_ENV;
2706
- const Uo = Ya({}), Vr = () => Xa(Uo), cn = (e, t) => {
2706
+ const Ro = Xa({}), Vr = () => Ja(Ro), cn = (e, t) => {
2707
2707
  const [n] = Vr();
2708
2708
  return ce(n, e, t);
2709
2709
  }, fe = () => cn("apiUrl", "/chai/api"), I = {
@@ -2750,7 +2750,7 @@ const Uo = Ya({}), Vr = () => Xa(Uo), cn = (e, t) => {
2750
2750
  if (s != null && s.error || n.status === 400 || !n.ok)
2751
2751
  throw new Error((s == null ? void 0 : s.error) || "Something went wrong.");
2752
2752
  return s;
2753
- }, Ro = () => {
2753
+ }, Mo = () => {
2754
2754
  const e = fe(), { aiContext: t } = bs();
2755
2755
  return _t(
2756
2756
  async (n, s, a, i) => he(e, {
@@ -2759,7 +2759,7 @@ const Uo = Ya({}), Vr = () => Xa(Uo), cn = (e, t) => {
2759
2759
  }),
2760
2760
  [e, t]
2761
2761
  );
2762
- }, Mo = () => {
2762
+ }, Bo = () => {
2763
2763
  const e = fe();
2764
2764
  return { getUILibraryBlock: async (a, i) => {
2765
2765
  const u = (await (await fetch(
@@ -2815,7 +2815,7 @@ const qn = () => {
2815
2815
  () => qe(n, { id: t }) || {},
2816
2816
  [n, t]
2817
2817
  ), isFetching: s };
2818
- }, Bo = () => Ve({
2818
+ }, Fo = () => Ve({
2819
2819
  queryKey: ["uiLibraries"],
2820
2820
  initialData: [],
2821
2821
  queryFn: async () => [
@@ -2825,7 +2825,7 @@ const qn = () => {
2825
2825
  url: "https://chaibuilder.com/chaiblocks"
2826
2826
  }
2827
2827
  ]
2828
- }), Fo = () => {
2828
+ }), Wo = () => {
2829
2829
  const [e] = ct(), t = e.get("page"), n = fe(), { setAiContext: s } = bs();
2830
2830
  return Ve({
2831
2831
  queryKey: [I.GET_PAGE, t],
@@ -2839,9 +2839,9 @@ const qn = () => {
2839
2839
  },
2840
2840
  enabled: !!t
2841
2841
  });
2842
- }, Wo = (e, t) => t.map((n) => {
2842
+ }, qo = (e, t) => t.map((n) => {
2843
2843
  if (Sa(e, n._type)) {
2844
- const s = Za(n._type);
2844
+ const s = ei(n._type);
2845
2845
  return {
2846
2846
  ...s,
2847
2847
  ...nr(n, [
@@ -2856,15 +2856,15 @@ const qn = () => {
2856
2856
  };
2857
2857
  }
2858
2858
  return n;
2859
- }), qo = (e) => {
2860
- const t = Ja();
2859
+ }), Vo = (e) => {
2860
+ const t = Za();
2861
2861
  return ye(() => {
2862
2862
  if (!e || pe(e)) return { blocks: [] };
2863
2863
  const n = Ne(
2864
2864
  e,
2865
2865
  (s) => !Ht(s == null ? void 0 : s._type, "@chai/")
2866
2866
  );
2867
- return { blocks: Wo(t, n) };
2867
+ return { blocks: qo(t, n) };
2868
2868
  }, [e, t]);
2869
2869
  }, Ss = () => {
2870
2870
  const e = fe();
@@ -2880,7 +2880,7 @@ const qn = () => {
2880
2880
  data: { draft: !0 }
2881
2881
  })
2882
2882
  });
2883
- }, Vo = () => {
2883
+ }, Ho = () => {
2884
2884
  const { data: e } = qn(), t = fe();
2885
2885
  return {
2886
2886
  getGlobalBlocks: async () => {
@@ -2897,7 +2897,7 @@ const qn = () => {
2897
2897
  data: { id: n, draft: !0 }
2898
2898
  })).blocks : []
2899
2899
  };
2900
- }, Ho = () => {
2900
+ }, $o = () => {
2901
2901
  const e = fe(), t = De(), { toast: n } = Xe();
2902
2902
  return He({
2903
2903
  mutationFn: async (s) => he(e, {
@@ -2918,7 +2918,7 @@ const qn = () => {
2918
2918
  });
2919
2919
  }
2920
2920
  });
2921
- }, $o = () => {
2921
+ }, Ko = () => {
2922
2922
  const e = fe(), t = De(), { toast: n } = Xe();
2923
2923
  return He({
2924
2924
  mutationFn: async (s) => he(e, { action: I.UPDATE_WEBSITE_DATA, data: s }),
@@ -2942,7 +2942,7 @@ const qn = () => {
2942
2942
  initialData: [],
2943
2943
  queryFn: async () => he(e, { action: I.GET_PAGE_TYPES })
2944
2944
  });
2945
- }, Ko = () => {
2945
+ }, zo = () => {
2946
2946
  const e = fe();
2947
2947
  return He({
2948
2948
  mutationFn: async ({ collection: t, query: n }) => {
@@ -3147,7 +3147,7 @@ const qn = () => {
3147
3147
  yo: "Yoruba",
3148
3148
  za: "Zhuang, Chuang",
3149
3149
  zu: "Zulu"
3150
- }, zo = {
3150
+ }, Qo = {
3151
3151
  SLUG_ALREADY_USED: "This slug is already in use. Please choose a different one."
3152
3152
  }, N = {
3153
3153
  PREVIEW: "Preview",
@@ -3213,7 +3213,7 @@ const qn = () => {
3213
3213
  n({
3214
3214
  variant: "destructive",
3215
3215
  title: `Failed to add new ${a.collection === "global" ? "global block" : "page"}.`,
3216
- description: ce(zo, s.message, s.message)
3216
+ description: ce(Qo, s.message, s.message)
3217
3217
  });
3218
3218
  }
3219
3219
  });
@@ -3243,7 +3243,7 @@ const qn = () => {
3243
3243
  });
3244
3244
  }
3245
3245
  });
3246
- }, Qo = () => {
3246
+ }, Yo = () => {
3247
3247
  const e = fe(), t = De(), { toast: n } = Xe();
3248
3248
  return He({
3249
3249
  mutationFn: async (s) => he(e, {
@@ -3267,7 +3267,7 @@ const qn = () => {
3267
3267
  });
3268
3268
  }
3269
3269
  });
3270
- }, Yo = () => {
3270
+ }, Xo = () => {
3271
3271
  const e = fe(), t = De(), { toast: n } = Xe();
3272
3272
  return He({
3273
3273
  mutationFn: async (s) => he(e, {
@@ -3307,7 +3307,7 @@ const qn = () => {
3307
3307
  t({ title: "Failed to publish pages.", variant: "destructive" });
3308
3308
  }
3309
3309
  });
3310
- }, Xo = () => {
3310
+ }, Jo = () => {
3311
3311
  const e = fe(), { toast: t } = Xe(), n = De();
3312
3312
  return He({
3313
3313
  mutationFn: async ({ id: s, slug: a }) => he(e, {
@@ -3339,11 +3339,11 @@ const qn = () => {
3339
3339
  return Ca(Na(s, "primaryPage"));
3340
3340
  }
3341
3341
  });
3342
- }, Jo = () => {
3342
+ }, Zo = () => {
3343
3343
  const { selectedLang: e } = In(), { data: t, isFetching: n } = ws();
3344
3344
  return { data: ye(() => qe(t, { lang: e || "" }) || {}, [t, e]), isFetching: n };
3345
3345
  }, zr = () => {
3346
- const { data: e, isFetching: t } = Jo(), n = e == null ? void 0 : e.seo, [s, a] = Y({
3346
+ const { data: e, isFetching: t } = Zo(), n = e == null ? void 0 : e.seo, [s, a] = Y({
3347
3347
  title: "",
3348
3348
  description: "",
3349
3349
  cononicalUrl: "",
@@ -3405,7 +3405,7 @@ const qn = () => {
3405
3405
  ")"
3406
3406
  ] })
3407
3407
  ] }),
3408
- /* @__PURE__ */ r.jsx("form", { className: "space-y-8", children: /* @__PURE__ */ r.jsxs(ei, { type: "multiple", defaultValue: ["page"], children: [
3408
+ /* @__PURE__ */ r.jsx("form", { className: "space-y-8", children: /* @__PURE__ */ r.jsxs(ti, { type: "multiple", defaultValue: ["page"], children: [
3409
3409
  /* @__PURE__ */ r.jsxs(yn, { value: "page", children: [
3410
3410
  /* @__PURE__ */ r.jsx(pn, { className: "text-slate-700 font-semibold", children: "SEO" }),
3411
3411
  /* @__PURE__ */ r.jsx(vn, { className: "pt-2", children: /* @__PURE__ */ r.jsxs("div", { className: "space-y-4", children: [
@@ -3634,13 +3634,13 @@ const Qr = ({
3634
3634
  page: e,
3635
3635
  onClose: t
3636
3636
  }) => {
3637
- const [n, s] = Y(e.slug || ""), { mutate: a, isPending: i } = Xo(), { data: o } = Vn(), l = qe(o, { key: e == null ? void 0 : e.collection }), u = (y) => {
3637
+ const [n, s] = Y(e.slug || ""), { mutate: a, isPending: i } = Jo(), { data: o } = Vn(), l = qe(o, { key: e == null ? void 0 : e.collection }), u = (y) => {
3638
3638
  y.preventDefault(), a({ ...e, slug: n }, { onSuccess: t });
3639
3639
  }, f = (e == null ? void 0 : e.lang) || "";
3640
3640
  return /* @__PURE__ */ r.jsx(at, { open: !!e, onOpenChange: t, children: /* @__PURE__ */ r.jsxs(it, { children: [
3641
3641
  /* @__PURE__ */ r.jsxs(ot, { children: [
3642
3642
  /* @__PURE__ */ r.jsx(lt, { children: "Change Slug" }),
3643
- /* @__PURE__ */ r.jsx(kt, { className: "text-xs", children: /* @__PURE__ */ r.jsxs(ti, { variant: "destructive", className: "mt-2", children: [
3643
+ /* @__PURE__ */ r.jsx(kt, { className: "text-xs", children: /* @__PURE__ */ r.jsxs(ni, { variant: "destructive", className: "mt-2", children: [
3644
3644
  /* @__PURE__ */ r.jsx(La, { className: "h-4 w-4" }),
3645
3645
  "Changing the slug may have impact on your SEO. Please proceed with caution."
3646
3646
  ] }) })
@@ -3705,7 +3705,7 @@ function Yr({
3705
3705
  page: e,
3706
3706
  onClose: t
3707
3707
  }) {
3708
- const [, n] = ct(), { mutate: s, isPending: a } = Qo(), i = () => {
3708
+ const [, n] = ct(), { mutate: s, isPending: a } = Yo(), i = () => {
3709
3709
  s(e, {
3710
3710
  onSuccess: () => {
3711
3711
  e != null && e.primaryPage || (window.history.replaceState(null, "", "/"), n(new URLSearchParams({})), window.dispatchEvent(new PopStateEvent("popstate"))), t();
@@ -3747,7 +3747,7 @@ const js = ({
3747
3747
  page: e,
3748
3748
  onClose: t
3749
3749
  }) => {
3750
- const { mutate: n, isPending: s } = Yo(), a = async () => {
3750
+ const { mutate: n, isPending: s } = Xo(), a = async () => {
3751
3751
  n(e, { onSuccess: t });
3752
3752
  };
3753
3753
  return /* @__PURE__ */ r.jsx(at, { open: !!e, onOpenChange: t, children: /* @__PURE__ */ r.jsxs(it, { children: [
@@ -3864,7 +3864,7 @@ const js = ({
3864
3864
  ) })
3865
3865
  ] })
3866
3866
  ] }) });
3867
- }, Zo = () => {
3867
+ }, el = () => {
3868
3868
  const [e, t] = Y(null), { selectedLang: n, fallbackLang: s, setSelectedLang: a } = In(), { data: i, isFetching: o } = ws(), { data: l } = Ke(), [u, f] = Y(null), [y, h] = Y(null), [v, w] = Y(null), { data: T } = Ss(), G = Ne(
3869
3869
  ce(T, "languages") || ["en"],
3870
3870
  (E) => !qe(i, { lang: E }) && E !== ce(T, "fallbackLang")
@@ -4038,7 +4038,7 @@ const js = ({
4038
4038
  }
4039
4039
  )
4040
4040
  ] });
4041
- }, el = () => {
4041
+ }, tl = () => {
4042
4042
  const e = fe();
4043
4043
  return Ve({
4044
4044
  queryKey: [I.GET_CHANGES],
@@ -4464,10 +4464,10 @@ const ps = (e) => {
4464
4464
  angle: 90
4465
4465
  });
4466
4466
  };
4467
- function tl({
4467
+ function nl({
4468
4468
  onClose: e = () => console.log("Cancelled")
4469
4469
  }) {
4470
- const [t, n] = Y([]), { data: s, isFetching: a } = el(), { data: i } = Vn(), o = ye(
4470
+ const [t, n] = Y([]), { data: s, isFetching: a } = tl(), { data: i } = Vn(), o = ye(
4471
4471
  () => Ne(s, (g) => g.collection !== "global"),
4472
4472
  [s]
4473
4473
  ), l = ye(
@@ -4618,7 +4618,7 @@ function tl({
4618
4618
  ] })
4619
4619
  ] }) });
4620
4620
  }
4621
- const nl = () => {
4621
+ const sl = () => {
4622
4622
  const e = fe();
4623
4623
  return Ve({
4624
4624
  queryKey: [I.GET_WEBSITE_DATA],
@@ -4629,8 +4629,8 @@ const nl = () => {
4629
4629
  })
4630
4630
  });
4631
4631
  };
4632
- function sl({ onClose: e }) {
4633
- const { data: t, isFetching: n } = nl(), { mutateAsync: s, isPending: a } = $o(), i = cn("settingComponent", null), o = Ga(async (l) => (await s({ data: l }), !0), 300);
4632
+ function rl({ onClose: e }) {
4633
+ const { data: t, isFetching: n } = sl(), { mutateAsync: s, isPending: a } = Ko(), i = cn("settingComponent", null), o = Ga(async (l) => (await s({ data: l }), !0), 300);
4634
4634
  return i ? /* @__PURE__ */ r.jsx(at, { open: !0, onOpenChange: e, children: /* @__PURE__ */ r.jsxs(it, { className: "w-full", children: [
4635
4635
  /* @__PURE__ */ r.jsx(ot, { children: /* @__PURE__ */ r.jsx(lt, { children: "Website Settings" }) }),
4636
4636
  n ? /* @__PURE__ */ r.jsxs("div", { className: "w-full space-y-3 py-4", children: [
@@ -4653,12 +4653,12 @@ function Jr({
4653
4653
  children: e,
4654
4654
  content: t
4655
4655
  }) {
4656
- return /* @__PURE__ */ r.jsx(ni, { children: /* @__PURE__ */ r.jsxs(si, { children: [
4657
- /* @__PURE__ */ r.jsx(ri, { asChild: !0, children: e }),
4658
- /* @__PURE__ */ r.jsx(ai, { side: "bottom", sideOffset: 10, children: /* @__PURE__ */ r.jsx("p", { children: t }) })
4656
+ return /* @__PURE__ */ r.jsx(si, { children: /* @__PURE__ */ r.jsxs(ri, { children: [
4657
+ /* @__PURE__ */ r.jsx(ai, { asChild: !0, children: e }),
4658
+ /* @__PURE__ */ r.jsx(ii, { side: "bottom", sideOffset: 10, children: /* @__PURE__ */ r.jsx("p", { children: t }) })
4659
4659
  ] }) });
4660
4660
  }
4661
- const rl = () => {
4661
+ const al = () => {
4662
4662
  const e = cn("getPreviewUrl", async (o) => o), [t, n] = Y(""), { data: s, isFetching: a } = Ke(), i = ye(() => s == null ? void 0 : s.slug, [s == null ? void 0 : s.slug]);
4663
4663
  return Qe(() => {
4664
4664
  (async () => {
@@ -4673,7 +4673,7 @@ const rl = () => {
4673
4673
  " ",
4674
4674
  N.PREVIEW
4675
4675
  ] }) }) });
4676
- }, al = () => {
4676
+ }, il = () => {
4677
4677
  const [e, t] = va();
4678
4678
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4679
4679
  /* @__PURE__ */ r.jsx(Jr, { content: N.THEME, children: /* @__PURE__ */ r.jsx(
@@ -4688,7 +4688,7 @@ const rl = () => {
4688
4688
  ) }),
4689
4689
  /* @__PURE__ */ r.jsx("div", { className: "w-px h-4 bg-gray-200 dark:bg-gray-700" })
4690
4690
  ] });
4691
- }, il = () => {
4691
+ }, ol = () => {
4692
4692
  const [e, t] = Y(!1), { savePage: n, saveState: s } = xa();
4693
4693
  Qe(() => {
4694
4694
  const f = (y) => {
@@ -4743,7 +4743,7 @@ const rl = () => {
4743
4743
  ]
4744
4744
  }
4745
4745
  );
4746
- }, ol = () => {
4746
+ }, ll = () => {
4747
4747
  const [e, t] = Y(!1), [n, s] = Y(!1), [a, i] = Y(null), { data: o } = Ke(), { mutate: l, isPending: u } = Kr(), { buttonText: f, buttonClassName: y, isPublished: h } = ye(() => {
4748
4748
  const v = o && (o == null ? void 0 : o.online);
4749
4749
  return {
@@ -4836,7 +4836,7 @@ const rl = () => {
4836
4836
  ] })
4837
4837
  ] })
4838
4838
  ] }),
4839
- e && /* @__PURE__ */ r.jsx(tl, { onClose: () => t(!1) }),
4839
+ e && /* @__PURE__ */ r.jsx(nl, { onClose: () => t(!1) }),
4840
4840
  a && /* @__PURE__ */ r.jsx(
4841
4841
  js,
4842
4842
  {
@@ -4845,7 +4845,7 @@ const rl = () => {
4845
4845
  }
4846
4846
  )
4847
4847
  ] });
4848
- }, ll = () => {
4848
+ }, cl = () => {
4849
4849
  const e = cn("settingComponent", null), [t, n] = Y(!1);
4850
4850
  return e ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4851
4851
  /* @__PURE__ */ r.jsx(Jr, { content: N.WEBSITEDATA, children: /* @__PURE__ */ r.jsx(
@@ -4859,9 +4859,9 @@ const rl = () => {
4859
4859
  }
4860
4860
  ) }),
4861
4861
  /* @__PURE__ */ r.jsx("div", { className: "w-px h-4 bg-gray-200 dark:bg-gray-700" }),
4862
- t && /* @__PURE__ */ r.jsx(sl, { onClose: () => n(!1) })
4862
+ t && /* @__PURE__ */ r.jsx(rl, { onClose: () => n(!1) })
4863
4863
  ] }) : null;
4864
- }, cl = () => {
4864
+ }, ul = () => {
4865
4865
  const { data: e } = Ke(), t = e && (e == null ? void 0 : e.online);
4866
4866
  return /* @__PURE__ */ r.jsxs(
4867
4867
  se,
@@ -4878,17 +4878,17 @@ const rl = () => {
4878
4878
  }
4879
4879
  );
4880
4880
  };
4881
- function ul() {
4881
+ function dl() {
4882
4882
  return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-end gap-1", children: [
4883
- /* @__PURE__ */ r.jsx(al, {}),
4884
- /* @__PURE__ */ r.jsx(ll, {}),
4885
- /* @__PURE__ */ r.jsx(rl, {}),
4886
4883
  /* @__PURE__ */ r.jsx(il, {}),
4884
+ /* @__PURE__ */ r.jsx(cl, {}),
4885
+ /* @__PURE__ */ r.jsx(al, {}),
4887
4886
  /* @__PURE__ */ r.jsx(ol, {}),
4888
- /* @__PURE__ */ r.jsx(cl, {})
4887
+ /* @__PURE__ */ r.jsx(ll, {}),
4888
+ /* @__PURE__ */ r.jsx(ul, {})
4889
4889
  ] });
4890
4890
  }
4891
- function dl({
4891
+ function fl({
4892
4892
  additionalPageTypes: e = [],
4893
4893
  close: t
4894
4894
  }) {
@@ -5069,7 +5069,7 @@ function dl({
5069
5069
  /* @__PURE__ */ r.jsx(se, { disabled: a, type: "submit", className: "w-full", children: a ? "Creating..." : "Create Page" })
5070
5070
  ] });
5071
5071
  }
5072
- const fl = ({
5072
+ const hl = ({
5073
5073
  addEditPage: e,
5074
5074
  setAddEditPage: t
5075
5075
  }) => {
@@ -5077,13 +5077,13 @@ const fl = ({
5077
5077
  return /* @__PURE__ */ r.jsx(at, { open: !!e, onOpenChange: () => t(void 0), children: /* @__PURE__ */ r.jsxs(it, { className: "sm:max-w-[425px]", children: [
5078
5078
  /* @__PURE__ */ r.jsxs(ot, { children: [
5079
5079
  /* @__PURE__ */ r.jsxs(lt, { children: [
5080
- "Add",
5080
+ "Add New",
5081
5081
  " "
5082
5082
  ] }),
5083
- /* @__PURE__ */ r.jsx(kt, { children: "Add details" })
5083
+ /* @__PURE__ */ r.jsx(kt, { children: "Enter details to create a new page" })
5084
5084
  ] }),
5085
5085
  /* @__PURE__ */ r.jsx(
5086
- dl,
5086
+ fl,
5087
5087
  {
5088
5088
  close: () => t(void 0),
5089
5089
  additionalPageTypes: n ?? []
@@ -5106,7 +5106,7 @@ const fl = ({
5106
5106
  className: `rounded flex p-1.5 items-center justify-between leading-none duration-300 cursor-pointer px-3 py-1.5 ${n ? "bg-gray-200" : "hover:bg-gray-100"}`,
5107
5107
  children: [
5108
5108
  /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-x-2", children: [
5109
- /* @__PURE__ */ r.jsx(Nn, { className: "w-4 h-4 text-slate-500 stroke-[1]" }),
5109
+ t.pageType === "global" ? /* @__PURE__ */ r.jsx($a, { className: "w-4 h-4 text-slate-500 stroke-[1]" }) : /* @__PURE__ */ r.jsx(Nn, { className: "w-4 h-4 text-slate-500 stroke-[1]" }),
5110
5110
  /* @__PURE__ */ r.jsx(
5111
5111
  "div",
5112
5112
  {
@@ -5144,7 +5144,7 @@ const fl = ({
5144
5144
  });
5145
5145
  },
5146
5146
  children: [
5147
- /* @__PURE__ */ r.jsx($a, { className: "size-3" }),
5147
+ /* @__PURE__ */ r.jsx(Ka, { className: "size-3" }),
5148
5148
  "Edit"
5149
5149
  ]
5150
5150
  }
@@ -5183,7 +5183,7 @@ const fl = ({
5183
5183
  u.stopPropagation(), o(t);
5184
5184
  },
5185
5185
  children: [
5186
- /* @__PURE__ */ r.jsx(Ka, { className: "size-3" }),
5186
+ /* @__PURE__ */ r.jsx(za, { className: "size-3" }),
5187
5187
  N.DELETE
5188
5188
  ]
5189
5189
  }
@@ -5192,7 +5192,7 @@ const fl = ({
5192
5192
  ] }) })
5193
5193
  ]
5194
5194
  }
5195
- ), hl = ({ close: e }) => {
5195
+ ), ml = ({ close: e }) => {
5196
5196
  const [, t] = Y([]), [n, s] = Y(""), [a, i] = Y(null), [o, l] = Y(null), [u, f] = Y(null), [y, h] = Y(null), { data: v, isFetching: w } = qn(), [T, G] = ct(), E = T.get("page"), g = _t(
5197
5197
  (j) => {
5198
5198
  window.history.pushState({}, "", `?page=${j}`), G(new URLSearchParams({ page: j })), window.dispatchEvent(new PopStateEvent("popstate")), e();
@@ -5327,7 +5327,7 @@ const fl = ({
5327
5327
  }
5328
5328
  ),
5329
5329
  y && /* @__PURE__ */ r.jsx(
5330
- fl,
5330
+ hl,
5331
5331
  {
5332
5332
  editPage: g,
5333
5333
  addEditPage: y,
@@ -5350,10 +5350,10 @@ const fl = ({
5350
5350
  }
5351
5351
  )
5352
5352
  ] });
5353
- }, ml = () => {
5353
+ }, gl = () => {
5354
5354
  const e = cn("logo", null);
5355
5355
  return e ? /* @__PURE__ */ r.jsx("div", { className: "w-full max-h-9 overflow-hidden pr-2", children: Ln.createElement(e, {}) }) : null;
5356
- }, gl = () => {
5356
+ }, yl = () => {
5357
5357
  const [e] = ct(), t = e.get("page"), { data: n, isFetching: s } = Ke(), [a, i] = Y(!1), o = !!t && !pe(n), l = !t || !s && pe(n) || a;
5358
5358
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
5359
5359
  /* @__PURE__ */ r.jsxs(
@@ -5363,7 +5363,7 @@ const fl = ({
5363
5363
  className: "flex items-center w-full space-x-2 py-1",
5364
5364
  onClick: () => i(!0),
5365
5365
  children: [
5366
- /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(za, { className: "h-4 w-4" }) }),
5366
+ /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(Qa, { className: "h-4 w-4" }) }),
5367
5367
  /* @__PURE__ */ r.jsxs("span", { className: "truncate leading-tight flex items-center max-w-[200px]", children: [
5368
5368
  /* @__PURE__ */ r.jsx("span", { className: "text-slate-600 pr-1 font-light", children: "Editing:" }),
5369
5369
  s ? /* @__PURE__ */ r.jsx(or, { className: "h-4 w-4 animate-spin text-slate-400 ml-2" }) : vs(ce(n, "name")) ?? ""
@@ -5373,22 +5373,22 @@ const fl = ({
5373
5373
  "template-viewer"
5374
5374
  ),
5375
5375
  /* @__PURE__ */ r.jsx(
5376
- ii,
5376
+ oi,
5377
5377
  {
5378
5378
  open: l,
5379
5379
  onOpenChange: (u) => !u && o && i(!1),
5380
5380
  children: /* @__PURE__ */ r.jsx(
5381
- oi,
5381
+ li,
5382
5382
  {
5383
5383
  side: "left",
5384
5384
  className: `!max-w-screen-sm border-border w-full ${o ? "" : "sheet-hide-close-btn"}`,
5385
- children: /* @__PURE__ */ r.jsx(hl, { close: () => i(!1) })
5385
+ children: /* @__PURE__ */ r.jsx(ml, { close: () => i(!1) })
5386
5386
  }
5387
5387
  )
5388
5388
  }
5389
5389
  )
5390
5390
  ] });
5391
- }, yl = () => {
5391
+ }, pl = () => {
5392
5392
  const { fallbackLang: e, languages: t, selectedLang: n, setSelectedLang: s } = In(), a = pe(n) ? e : n, [i, o] = Y(null), { data: l } = Ke(), { data: u } = Ss(), { data: f, isFetching: y } = ws(), h = ye(() => {
5393
5393
  const v = sr(
5394
5394
  Me(ce(u, "languages"), (w) => {
@@ -5434,7 +5434,7 @@ const fl = ({
5434
5434
  {
5435
5435
  className: "text-[9px] flex items-center gap-x-1 text-orange-500 leading-none",
5436
5436
  children: [
5437
- /* @__PURE__ */ r.jsx(Qa, { fill: "orange", className: "w-2 h-2" }),
5437
+ /* @__PURE__ */ r.jsx(Ya, { fill: "orange", className: "w-2 h-2" }),
5438
5438
  "Primary"
5439
5439
  ]
5440
5440
  }
@@ -5445,7 +5445,7 @@ const fl = ({
5445
5445
  )
5446
5446
  ),
5447
5447
  !pe(h.filter((v) => !v.isLangPageAdded)) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
5448
- /* @__PURE__ */ r.jsx(li, {}),
5448
+ /* @__PURE__ */ r.jsx(ci, {}),
5449
5449
  /* @__PURE__ */ r.jsxs(
5450
5450
  se,
5451
5451
  {
@@ -5480,16 +5480,16 @@ const fl = ({
5480
5480
  )
5481
5481
  ] });
5482
5482
  };
5483
- function pl() {
5483
+ function vl() {
5484
5484
  return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-end gap-1", children: [
5485
- /* @__PURE__ */ r.jsx(ml, {}),
5486
5485
  /* @__PURE__ */ r.jsx(gl, {}),
5487
- /* @__PURE__ */ r.jsx(yl, {})
5486
+ /* @__PURE__ */ r.jsx(yl, {}),
5487
+ /* @__PURE__ */ r.jsx(pl, {})
5488
5488
  ] });
5489
5489
  }
5490
5490
  ya();
5491
- const vl = (e) => {
5492
- const t = er([]), [n] = ct(), s = n.get("page"), { data: a } = Ke(), { data: i } = Bo(), { data: o, isFetching: l } = Fo(), { blocks: u } = qo(o), { data: f } = Ss(), { data: y } = Vn(), { mutateAsync: h } = Ho(), v = Ro(), { getUILibraryBlock: w, getUILibraryBlocks: T, onSave: G } = Mo(), { getGlobalBlocks: E, getGlobalBlockBlocks: g } = Vo(), { aiContext: x, setAiContext: j } = bs(), { mutateAsync: F } = Ko();
5491
+ const xl = (e) => {
5492
+ const t = er([]), [n] = ct(), s = n.get("page"), { data: a } = Ke(), { data: i } = Fo(), { data: o, isFetching: l } = Wo(), { blocks: u } = Vo(o), { data: f } = Ss(), { data: y } = Vn(), { mutateAsync: h } = $o(), v = Mo(), { getUILibraryBlock: w, getUILibraryBlocks: T, onSave: G } = Bo(), { getGlobalBlocks: E, getGlobalBlockBlocks: g } = Ho(), { aiContext: x, setAiContext: j } = bs(), { mutateAsync: F } = zo();
5493
5493
  t.current = u;
5494
5494
  const D = ye(() => {
5495
5495
  const S = {};
@@ -5541,8 +5541,8 @@ const vl = (e) => {
5541
5541
  return await G({ page: s, blocks: xe }), t.current = S, xs(M, Te) || await h({ settings: { theme: M } }), !0;
5542
5542
  },
5543
5543
  topBarComponents: {
5544
- left: [pl],
5545
- right: [ul]
5544
+ left: [vl],
5545
+ right: [dl]
5546
5546
  },
5547
5547
  sideBarComponents: {
5548
5548
  top: [
@@ -5569,7 +5569,7 @@ const vl = (e) => {
5569
5569
  ...pe(f == null ? void 0 : f.languages) ? [] : [
5570
5570
  {
5571
5571
  label: `Language ${(a == null ? void 0 : a.collection) === "global" ? "" : "page"}`,
5572
- component: Zo,
5572
+ component: el,
5573
5573
  icon: /* @__PURE__ */ r.jsx(ur, { className: "w-5 h-5 stroke-[2]" })
5574
5574
  }
5575
5575
  ]
@@ -5578,68 +5578,68 @@ const vl = (e) => {
5578
5578
  ...D
5579
5579
  }
5580
5580
  ) });
5581
- }, xl = new ma({
5581
+ }, El = new ma({
5582
5582
  defaultOptions: { queries: { refetchOnWindowFocus: !1 } }
5583
- }), sc = (e) => {
5583
+ }), rc = (e) => {
5584
5584
  const [, t] = Vr();
5585
5585
  return Qe(() => {
5586
5586
  t(
5587
5587
  nr(e, ["apiUrl", "getPreviewUrl", "logo", "settingComponent"])
5588
5588
  );
5589
- }, [e, t]), /* @__PURE__ */ r.jsxs(ga, { client: xl, children: [
5590
- /* @__PURE__ */ r.jsx(vl, { ...e }),
5591
- /* @__PURE__ */ r.jsx(Do, {})
5589
+ }, [e, t]), /* @__PURE__ */ r.jsxs(ga, { client: El, children: [
5590
+ /* @__PURE__ */ r.jsx(xl, { ...e }),
5591
+ /* @__PURE__ */ r.jsx(Uo, {})
5592
5592
  ] });
5593
5593
  };
5594
5594
  export {
5595
5595
  dr as $,
5596
- Jl as A,
5597
- _l as B,
5598
- ql as C,
5599
- Hl as D,
5596
+ Zl as A,
5597
+ kl as B,
5598
+ Vl as C,
5599
+ $l as D,
5600
5600
  ge as E,
5601
- Ul as F,
5601
+ Rl as F,
5602
5602
  Ws as G,
5603
- To as H,
5604
- Rl as I,
5603
+ Po as H,
5604
+ Ml as I,
5605
5605
  wn as J,
5606
- tc as K,
5607
- zl as L,
5608
- Kl as M,
5606
+ nc as K,
5607
+ Ql as L,
5608
+ zl as M,
5609
5609
  st as N,
5610
- Wi as O,
5611
- Vl as P,
5612
- $l as Q,
5613
- Fl as R,
5614
- Ml as S,
5615
- Bl as T,
5610
+ qi as O,
5611
+ Hl as P,
5612
+ Kl as Q,
5613
+ Wl as R,
5614
+ Bl as S,
5615
+ Fl as T,
5616
5616
  jn as U,
5617
- Ol as V,
5618
- sc as W,
5617
+ Ll as V,
5618
+ rc as W,
5619
5619
  Er as a,
5620
5620
  ie as b,
5621
5621
  Ae as c,
5622
- Mi as d,
5622
+ Bi as d,
5623
5623
  mr as e,
5624
5624
  br as f,
5625
- nc as g,
5626
- Ni as h,
5627
- Ll as i,
5625
+ sc as g,
5626
+ Ti as h,
5627
+ Il as i,
5628
5628
  rt as j,
5629
5629
  us as k,
5630
- Dl as l,
5631
- ec as m,
5630
+ Ul as l,
5631
+ tc as m,
5632
5632
  $t as n,
5633
- kl as o,
5634
- gi as p,
5635
- $i as q,
5633
+ Gl as o,
5634
+ yi as p,
5635
+ Ki as q,
5636
5636
  ds as r,
5637
- Zl as s,
5638
- Wl as t,
5639
- Il as u,
5640
- Fi as v,
5641
- Ql as w,
5642
- Yl as x,
5643
- Hi as y,
5644
- Xl as z
5637
+ ec as s,
5638
+ ql as t,
5639
+ Dl as u,
5640
+ Wi as v,
5641
+ Yl as w,
5642
+ Xl as x,
5643
+ $i as y,
5644
+ Jl as z
5645
5645
  };