@plitzi/sdk-authoring 0.38.20 → 0.38.22

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-src.js CHANGED
@@ -22,54 +22,54 @@ var e$41 = {
22
22
  json: "codemirror-json",
23
23
  elementIds: "elements"
24
24
  };
25
- var t$64 = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[-_\s]+/).map((e) => `${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(" ");
25
+ var t$65 = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[-_\s]+/).map((e) => `${e.charAt(0).toUpperCase()}${e.slice(1)}`).join(" ");
26
26
  var n$50 = (n, r) => ({
27
27
  type: r.builderType ?? e$41[r.type],
28
- label: r.label ?? t$64(n),
28
+ label: r.label ?? t$65(n),
29
29
  ...r.default === void 0 ? {} : { defaultValue: r.default },
30
30
  ...r.options ? { options: r.options.map((e) => ({
31
31
  value: e,
32
- label: r.optionLabels?.[e] ?? t$64(e)
32
+ label: r.optionLabels?.[e] ?? t$65(e)
33
33
  })) } : {},
34
34
  ...r.when ? { when: r.when } : {},
35
35
  ...r.canBind === void 0 ? {} : { canBind: r.canBind },
36
36
  ...r.elementType === void 0 ? {} : { elementType: r.elementType }
37
37
  });
38
38
  var r$39 = /* @__PURE__ */ new WeakMap();
39
- var i$30 = (e) => {
39
+ var i$29 = (e) => {
40
40
  let t = r$39.get(e);
41
41
  return t || (t = Object.fromEntries(Object.entries(e).map(([e, t]) => [e, n$50(e, t)])), r$39.set(e, t)), t;
42
42
  };
43
- var a$26 = (e, t, n, r = {}) => ({
43
+ var a$25 = (e, t, n, r = {}) => ({
44
44
  action: e,
45
45
  title: t.title,
46
46
  type: t.type ?? "globalCallback",
47
47
  callback: n,
48
48
  preview: t.preview ?? {},
49
- params: i$30(t.params),
49
+ params: i$29(t.params),
50
50
  ...r
51
51
  });
52
- var o$27 = (e, t, n = {}) => Object.fromEntries(Object.keys(e).map((r) => [r, a$26(r, e[r], t[r], n[r] ?? {})]));
52
+ var o$27 = (e, t, n = {}) => Object.fromEntries(Object.keys(e).map((r) => [r, a$25(r, e[r], t[r], n[r] ?? {})]));
53
53
  //#endregion
54
54
  //#region ../sdk-shared/dist/helpers/twigWrapper/tokens/tokenPatterns.mjs
55
55
  var e$40 = "[a-zA-Z_][a-zA-Z0-9_]*(?:-[a-zA-Z0-9_]+)*";
56
- var t$63 = `(?:${e$40}|\\d+)`;
57
- var n$49 = `\\[\\s*(?:\\d+|'[^']*'|"[^"]*"|${e$40}(?:\\.${t$63})*)\\s*\\]`;
58
- var r$38 = `${`${e$40}(?:${n$49})*(?:\\??\\.${t$63}(?:${n$49})*)*`}(?:\\s*\\?\\?\\s*[^|{}]+?)?(?:\\s*\\|\\s*[a-zA-Z_]+(?:\\([^)]*\\))?)*`;
59
- var i$29 = `\\{\\{\\s*${r$38}\\s*\\}\\}`;
60
- var a$25 = `(?:${`\\{\\{\\{\\s*${r$38}\\s*\\}\\}\\}`}|${i$29})`;
61
- var o$26 = new RegExp(a$25, "g");
62
- var s$25 = RegExp(`^${a$25}$`);
56
+ var t$64 = `(?:${e$40}|\\d+)`;
57
+ var n$49 = `\\[\\s*(?:\\d+|'[^']*'|"[^"]*"|${e$40}(?:\\.${t$64})*)\\s*\\]`;
58
+ var r$38 = `${`${e$40}(?:${n$49})*(?:\\??\\.${t$64}(?:${n$49})*)*`}(?:\\s*\\?\\?\\s*[^|{}]+?)?(?:\\s*\\|\\s*[a-zA-Z_]+(?:\\([^)]*\\))?)*`;
59
+ var i$28 = `\\{\\{\\s*${r$38}\\s*\\}\\}`;
60
+ var a$24 = `(?:${`\\{\\{\\{\\s*${r$38}\\s*\\}\\}\\}`}|${i$28})`;
61
+ var o$26 = new RegExp(a$24, "g");
62
+ var s$24 = RegExp(`^${a$24}$`);
63
63
  //#endregion
64
64
  //#region ../sdk-shared/dist/helpers/twigWrapper/tokens/hasValidToken.mjs
65
65
  var n$48 = (n, r = !1) => {
66
66
  if (typeof n != "string") return !1;
67
- let i = r ? s$25 : o$26;
67
+ let i = r ? s$24 : o$26;
68
68
  return i.lastIndex = 0, i.test(n.trim());
69
69
  };
70
70
  //#endregion
71
71
  //#region ../sdk-shared/dist/authoring/paramSpec.mjs
72
- var t$62 = [
72
+ var t$63 = [
73
73
  "text",
74
74
  "textarea",
75
75
  "select",
@@ -89,12 +89,12 @@ var r$37 = (e, t, n) => {
89
89
  for (let [i, a] of Object.entries(n)) a.required && e[i] === void 0 && (!a.when || a.when(t)) && r.push(i);
90
90
  return r;
91
91
  };
92
- var i$28 = (e) => e.trim() !== "" && Number.isFinite(Number(e));
93
- var a$24 = (t) => typeof t == "string" && n$48(t);
92
+ var i$27 = (e) => e.trim() !== "" && Number.isFinite(Number(e));
93
+ var a$23 = (t) => typeof t == "string" && n$48(t);
94
94
  var o$25 = (e, t) => {
95
95
  switch (t.type) {
96
96
  case "boolean": return typeof e == "boolean";
97
- case "number": return typeof e == "number" || typeof e == "string" && i$28(e);
97
+ case "number": return typeof e == "number" || typeof e == "string" && i$27(e);
98
98
  case "select": return typeof e == "string" && (!t.options || t.options.includes(e));
99
99
  case "scalar": return typeof e == "string" || typeof e == "number" || typeof e == "boolean";
100
100
  case "json": return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "object" && !!e;
@@ -104,11 +104,11 @@ var o$25 = (e, t) => {
104
104
  default: return !0;
105
105
  }
106
106
  };
107
- var s$24 = (e, t, n) => {
107
+ var s$23 = (e, t, n) => {
108
108
  let r = [];
109
109
  for (let [i, s] of Object.entries(n)) {
110
110
  let n = e[i];
111
- n === void 0 || a$24(n) || s.when && !s.when(t) || o$25(n, s) || r.push({
111
+ n === void 0 || a$23(n) || s.when && !s.when(t) || o$25(n, s) || r.push({
112
112
  key: i,
113
113
  expected: s.type,
114
114
  got: n === null ? "null" : typeof n,
@@ -117,7 +117,7 @@ var s$24 = (e, t, n) => {
117
117
  }
118
118
  return r;
119
119
  };
120
- var c$20 = (e, t, n) => {
120
+ var c$21 = (e, t, n) => {
121
121
  let r = {};
122
122
  for (let [i, a] of Object.entries(e)) (!n || i in t) && (r[i] = a);
123
123
  for (let [e, n] of Object.entries(t)) n.default === void 0 || r[e] !== void 0 || n.when && !n.when(r) || (r[e] = n.default);
@@ -126,13 +126,13 @@ var c$20 = (e, t, n) => {
126
126
  //#endregion
127
127
  //#region ../sdk-shared/dist/helpers/scroll.mjs
128
128
  var e$39 = ["smooth", "auto"];
129
- var t$61 = [
129
+ var t$62 = [
130
130
  "start",
131
131
  "center",
132
132
  "end",
133
133
  "nearest"
134
134
  ];
135
- var s$23 = "onScroll";
135
+ var s$22 = "onScroll";
136
136
  //#endregion
137
137
  //#region ../sdk-shared/dist/authoring/elementCallbacks.mjs
138
138
  var r$36 = {
@@ -141,7 +141,7 @@ var r$36 = {
141
141
  default: "smooth",
142
142
  options: [...e$39]
143
143
  };
144
- var i$27 = {
144
+ var i$26 = {
145
145
  scrollBy: {
146
146
  title: "Scroll By",
147
147
  type: "callback",
@@ -187,19 +187,19 @@ var i$27 = {
187
187
  type: "select",
188
188
  description: "Where the element lands, top to bottom.",
189
189
  default: "start",
190
- options: [...t$61]
190
+ options: [...t$62]
191
191
  },
192
192
  inline: {
193
193
  type: "select",
194
194
  description: "Where it lands, side to side.",
195
195
  default: "nearest",
196
- options: [...t$61]
196
+ options: [...t$62]
197
197
  },
198
198
  behavior: r$36
199
199
  }
200
200
  }
201
201
  };
202
- var a$23 = {
202
+ var a$22 = {
203
203
  setState: {
204
204
  title: "Update Element (set attribute / state)",
205
205
  type: "callback",
@@ -256,14 +256,14 @@ var a$23 = {
256
256
  }
257
257
  }
258
258
  },
259
- ...i$27
259
+ ...i$26
260
260
  };
261
- var o$24 = (e) => Object.hasOwn(a$23, e) ? a$23[e] : void 0;
262
- var s$22 = (t, n) => {
261
+ var o$24 = (e) => Object.hasOwn(a$22, e) ? a$22[e] : void 0;
262
+ var s$21 = (t, n) => {
263
263
  let r = o$24(t);
264
264
  return r ? {
265
265
  known: !0,
266
- params: c$20(n, r.params, r.strictParams)
266
+ params: c$21(n, r.params, r.strictParams)
267
267
  } : {
268
268
  known: !1,
269
269
  params: n
@@ -279,14 +279,14 @@ var e$38 = [
279
279
  "bottom-center",
280
280
  "bottom-left"
281
281
  ];
282
- var t$60 = [
282
+ var t$61 = [
283
283
  "success",
284
284
  "danger",
285
285
  "warning",
286
286
  "info"
287
287
  ];
288
288
  var n$46 = (n) => {
289
- let r = e$38.find((e) => e === n.placement), i = t$60.find((e) => e === n.appearance), { autoDismiss: a, autoDismissTimeout: o } = n, s = typeof o == "number" && Number.isFinite(o) && o > 0 ? o : void 0, c = {
289
+ let r = e$38.find((e) => e === n.placement), i = t$61.find((e) => e === n.appearance), { autoDismiss: a, autoDismissTimeout: o } = n, s = typeof o == "number" && Number.isFinite(o) && o > 0 ? o : void 0, c = {
290
290
  placement: r !== void 0,
291
291
  appearance: i !== void 0,
292
292
  autoDismiss: typeof a == "boolean",
@@ -308,7 +308,7 @@ var r$35 = {
308
308
  autoDismiss: !0,
309
309
  autoDismissTimeout: 5e3
310
310
  };
311
- var i$26 = { addNotification: {
311
+ var i$25 = { addNotification: {
312
312
  source: "space",
313
313
  title: "Add Notification",
314
314
  strictParams: !0,
@@ -328,7 +328,7 @@ var i$26 = { addNotification: {
328
328
  type: "select",
329
329
  description: "Visual style of the notification: success, danger, warning or info.",
330
330
  default: r$35.appearance,
331
- options: [...t$60]
331
+ options: [...t$61]
332
332
  },
333
333
  autoDismiss: {
334
334
  type: "boolean",
@@ -812,13 +812,15 @@ var elementAttributeNames = {
812
812
  ],
813
813
  notFound: [],
814
814
  page: [
815
+ "access",
815
816
  "documentScroll",
816
817
  "layout",
817
818
  "layoutContainer",
818
819
  "notFound",
819
820
  "seoEnabled",
820
821
  "seoPageDescription",
821
- "seoPageTitle"
822
+ "seoPageTitle",
823
+ "withheld"
822
824
  ],
823
825
  pagination: [
824
826
  "label",
@@ -870,7 +872,7 @@ var elementAttributeNames = {
870
872
  };
871
873
  //#endregion
872
874
  //#region ../sdk-elements/dist/elements/advanced/BlockHtml/declaration.mjs
873
- var t$59 = r$40()({
875
+ var t$60 = r$40()({
874
876
  type: "blockHtml",
875
877
  content: {
876
878
  attributes: { content: "" },
@@ -887,7 +889,7 @@ var t$59 = r$40()({
887
889
  });
888
890
  //#endregion
889
891
  //#region ../sdk-elements/dist/elements/advanced/BlockJsx/declaration.mjs
890
- var t$58 = r$40()({
892
+ var t$59 = r$40()({
891
893
  type: "blockJsx",
892
894
  content: {
893
895
  attributes: {
@@ -909,7 +911,7 @@ var t$58 = r$40()({
909
911
  });
910
912
  //#endregion
911
913
  //#region ../sdk-elements/dist/elements/advanced/Custom/declaration.mjs
912
- var t$57 = r$40()({
914
+ var t$58 = r$40()({
913
915
  type: "custom",
914
916
  content: {
915
917
  attributes: {
@@ -939,7 +941,7 @@ var t$57 = r$40()({
939
941
  });
940
942
  //#endregion
941
943
  //#region ../sdk-elements/dist/elements/advanced/NodeHtml/declaration.mjs
942
- var t$56 = r$40()({
944
+ var t$57 = r$40()({
943
945
  type: "nodeHtml",
944
946
  content: {
945
947
  attributes: { subType: "div" },
@@ -964,7 +966,7 @@ var t$56 = r$40()({
964
966
  });
965
967
  //#endregion
966
968
  //#region ../sdk-elements/dist/elements/advanced/PlitziSdk/declaration.mjs
967
- var t$55 = r$40()({
969
+ var t$56 = r$40()({
968
970
  type: "plitziSdk",
969
971
  content: {
970
972
  attributes: {
@@ -984,7 +986,7 @@ var t$55 = r$40()({
984
986
  });
985
987
  //#endregion
986
988
  //#region ../sdk-elements/dist/elements/advanced/Reference/declaration.mjs
987
- var t$54 = r$40()({
989
+ var t$55 = r$40()({
988
990
  type: "reference",
989
991
  content: {
990
992
  attributes: {
@@ -1124,7 +1126,7 @@ var n$44 = r$40()({
1124
1126
  });
1125
1127
  //#endregion
1126
1128
  //#region ../sdk-elements/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs
1127
- var t$53 = r$40()({
1129
+ var t$54 = r$40()({
1128
1130
  type: "dropdownPopup",
1129
1131
  ancestorType: "dropdown",
1130
1132
  content: {
@@ -1325,7 +1327,7 @@ var n$42 = r$40()({
1325
1327
  });
1326
1328
  //#endregion
1327
1329
  //#region ../sdk-elements/dist/elements/basic/Markdown/declaration.mjs
1328
- var t$52 = r$40()({
1330
+ var t$53 = r$40()({
1329
1331
  type: "markdown",
1330
1332
  content: {
1331
1333
  attributes: {
@@ -1375,7 +1377,7 @@ var t$52 = r$40()({
1375
1377
  });
1376
1378
  //#endregion
1377
1379
  //#region ../sdk-elements/dist/elements/basic/Paragraph/declaration.mjs
1378
- var t$51 = r$40()({
1380
+ var t$52 = r$40()({
1379
1381
  type: "paragraph",
1380
1382
  content: {
1381
1383
  attributes: { content: "Paragraph" },
@@ -1454,7 +1456,7 @@ var n$41 = r$40()({
1454
1456
  });
1455
1457
  //#endregion
1456
1458
  //#region ../sdk-elements/dist/elements/basic/Text/declaration.mjs
1457
- var t$50 = r$40()({
1459
+ var t$51 = r$40()({
1458
1460
  type: "text",
1459
1461
  content: {
1460
1462
  attributes: { content: "Text" },
@@ -1654,7 +1656,7 @@ var r$32 = {
1654
1656
  ...n$38,
1655
1657
  "line-height": "20px"
1656
1658
  };
1657
- var i$25 = {
1659
+ var i$24 = {
1658
1660
  display: "flex",
1659
1661
  cursor: "pointer",
1660
1662
  "font-weight": "600",
@@ -1663,8 +1665,8 @@ var i$25 = {
1663
1665
  color: "#6b7280",
1664
1666
  "user-select": "none"
1665
1667
  };
1666
- var a$22 = {
1667
- ...i$25,
1668
+ var a$21 = {
1669
+ ...i$24,
1668
1670
  "margin-bottom": "4px"
1669
1671
  };
1670
1672
  var o$23 = {
@@ -1672,17 +1674,17 @@ var o$23 = {
1672
1674
  color: "red",
1673
1675
  "margin-top": "4px"
1674
1676
  };
1675
- var s$21 = {
1677
+ var s$20 = {
1676
1678
  color: "red",
1677
1679
  "margin-left": "4px"
1678
1680
  };
1679
- var c$19 = {
1681
+ var c$20 = {
1680
1682
  "border-top-style": "none",
1681
1683
  "border-right-style": "none",
1682
1684
  "border-bottom-style": "none",
1683
1685
  "border-left-style": "none"
1684
1686
  };
1685
- var l$14 = {
1687
+ var l$15 = {
1686
1688
  height: "100%",
1687
1689
  width: "100%",
1688
1690
  "padding-top": "0px",
@@ -1690,7 +1692,7 @@ var l$14 = {
1690
1692
  "padding-bottom": "0px",
1691
1693
  "padding-left": "0px",
1692
1694
  display: "block",
1693
- ...c$19,
1695
+ ...c$20,
1694
1696
  "background-color": "transparent",
1695
1697
  color: "inherit",
1696
1698
  "line-height": "inherit",
@@ -1698,12 +1700,12 @@ var l$14 = {
1698
1700
  "font-size": "inherit",
1699
1701
  "box-shadow": "none"
1700
1702
  };
1701
- var u$14 = {
1703
+ var u$15 = {
1702
1704
  height: "100%",
1703
1705
  width: "100%",
1704
1706
  "padding-right": "calc(1.15em + 8px)",
1705
1707
  display: "block",
1706
- ...c$19,
1708
+ ...c$20,
1707
1709
  "background-color": "transparent",
1708
1710
  color: "inherit",
1709
1711
  "line-height": "inherit",
@@ -1713,7 +1715,7 @@ var u$14 = {
1713
1715
  cursor: "inherit",
1714
1716
  "box-shadow": "none"
1715
1717
  };
1716
- var d$14 = {
1718
+ var d$15 = {
1717
1719
  height: "100%",
1718
1720
  "margin-top": "0px",
1719
1721
  "margin-right": "0px",
@@ -1724,7 +1726,7 @@ var d$14 = {
1724
1726
  display: "flex",
1725
1727
  "justify-content": "center",
1726
1728
  "align-items": "center",
1727
- ...c$19,
1729
+ ...c$20,
1728
1730
  "background-color": "transparent",
1729
1731
  color: "inherit",
1730
1732
  "line-height": "inherit",
@@ -1733,11 +1735,11 @@ var d$14 = {
1733
1735
  "font-weight": "inherit",
1734
1736
  cursor: "pointer"
1735
1737
  };
1736
- var f$10 = {
1738
+ var f$11 = {
1737
1739
  ...n$38,
1738
1740
  cursor: "pointer"
1739
1741
  };
1740
- var p$12 = {
1742
+ var p$11 = {
1741
1743
  height: "20px",
1742
1744
  width: "36px",
1743
1745
  "margin-top": "0px",
@@ -1775,12 +1777,12 @@ var m$8 = (e, t, { field: n, icon: r } = {}) => ({
1775
1777
  input: { default: t },
1776
1778
  ...n ? { field: { default: n } } : {},
1777
1779
  ...r ? { icon: { default: r } } : {},
1778
- label: { default: a$22 },
1779
- requiredMark: { default: s$21 },
1780
+ label: { default: a$21 },
1781
+ requiredMark: { default: s$20 },
1780
1782
  error: { default: o$23 }
1781
1783
  }
1782
1784
  });
1783
- var h$5 = { field: l$14 };
1785
+ var h$6 = { field: l$15 };
1784
1786
  var g$5 = r$40()({
1785
1787
  type: "formControl",
1786
1788
  attributeValues: { subType: e$42()([
@@ -1856,25 +1858,25 @@ var g$5 = r$40()({
1856
1858
  style: { base: { default: {} } },
1857
1859
  subTypes: {
1858
1860
  hidden: m$8("Form Control Hidden", {}),
1859
- text: m$8("Form Control Text", r$32, h$5),
1860
- number: m$8("Form Control Number", r$32, h$5),
1861
- email: m$8("Form Control Email", r$32, h$5),
1861
+ text: m$8("Form Control Text", r$32, h$6),
1862
+ number: m$8("Form Control Number", r$32, h$6),
1863
+ email: m$8("Form Control Email", r$32, h$6),
1862
1864
  password: m$8("Form Control Password", r$32, {
1863
- ...h$5,
1864
- icon: d$14
1865
+ ...h$6,
1866
+ icon: d$15
1865
1867
  }),
1866
- search: m$8("Form Control Search", r$32, h$5),
1867
- url: m$8("Form Control URL", r$32, h$5),
1868
- tel: m$8("Form Control Phone", r$32, h$5),
1869
- date: m$8("Form Control Date", r$32, h$5),
1870
- time: m$8("Form Control Time", r$32, h$5),
1871
- color: m$8("Form Control Color", r$32, h$5),
1868
+ search: m$8("Form Control Search", r$32, h$6),
1869
+ url: m$8("Form Control URL", r$32, h$6),
1870
+ tel: m$8("Form Control Phone", r$32, h$6),
1871
+ date: m$8("Form Control Date", r$32, h$6),
1872
+ time: m$8("Form Control Time", r$32, h$6),
1873
+ color: m$8("Form Control Color", r$32, h$6),
1872
1874
  textarea: m$8("Form Control Textarea", {
1873
1875
  ...r$32,
1874
1876
  color: "inherit",
1875
1877
  resize: "vertical"
1876
1878
  }),
1877
- select: m$8("Form Control Select", f$10, { field: u$14 }),
1879
+ select: m$8("Form Control Select", f$11, { field: u$15 }),
1878
1880
  checkbox: {
1879
1881
  name: "Form Control Checkbox",
1880
1882
  displayMode: "desktop",
@@ -1886,8 +1888,8 @@ var g$5 = r$40()({
1886
1888
  "margin-left": "0px",
1887
1889
  "margin-right": "4px"
1888
1890
  } },
1889
- label: { default: i$25 },
1890
- requiredMark: { default: s$21 },
1891
+ label: { default: i$24 },
1892
+ requiredMark: { default: s$20 },
1891
1893
  error: { default: o$23 }
1892
1894
  }
1893
1895
  },
@@ -1896,12 +1898,12 @@ var g$5 = r$40()({
1896
1898
  displayMode: "desktop",
1897
1899
  style: {
1898
1900
  base: { default: {} },
1899
- input: { default: p$12 },
1901
+ input: { default: p$11 },
1900
1902
  label: { default: {
1901
- ...i$25,
1903
+ ...i$24,
1902
1904
  "align-items": "center"
1903
1905
  } },
1904
- requiredMark: { default: s$21 },
1906
+ requiredMark: { default: s$20 },
1905
1907
  error: { default: o$23 }
1906
1908
  }
1907
1909
  }
@@ -1945,7 +1947,7 @@ var n$37 = r$40()({
1945
1947
  });
1946
1948
  //#endregion
1947
1949
  //#region ../sdk-elements/dist/elements/internal/Loading/declaration.mjs
1948
- var t$49 = r$40()({
1950
+ var t$50 = r$40()({
1949
1951
  type: "loading",
1950
1952
  content: {
1951
1953
  attributes: {},
@@ -1963,7 +1965,7 @@ var t$49 = r$40()({
1963
1965
  });
1964
1966
  //#endregion
1965
1967
  //#region ../sdk-elements/dist/elements/internal/NotFound/declaration.mjs
1966
- var t$48 = r$40()({
1968
+ var t$49 = r$40()({
1967
1969
  type: "notFound",
1968
1970
  content: {
1969
1971
  attributes: {},
@@ -1985,8 +1987,8 @@ var t$48 = r$40()({
1985
1987
  });
1986
1988
  //#endregion
1987
1989
  //#region ../sdk-elements/dist/elements/internal/Page/declaration.mjs
1988
- var t$47 = ["locked", "noBounce"];
1989
- var n$36 = (e) => t$47.some((t) => t === e);
1990
+ var t$48 = ["locked", "noBounce"];
1991
+ var n$36 = (e) => t$48.some((t) => t === e);
1990
1992
  var r$31 = r$40()({
1991
1993
  type: "page",
1992
1994
  serverTemplates: [
@@ -1994,7 +1996,7 @@ var r$31 = r$40()({
1994
1996
  "seoPageDescription",
1995
1997
  "notFound"
1996
1998
  ],
1997
- attributeValues: { documentScroll: t$47 },
1999
+ attributeValues: { documentScroll: t$48 },
1998
2000
  triggers: { onPageLoad: {
1999
2001
  action: "onPageLoad",
2000
2002
  title: "On Page Load",
@@ -2048,7 +2050,7 @@ var r$31 = r$40()({
2048
2050
  });
2049
2051
  //#endregion
2050
2052
  //#region ../sdk-elements/dist/elements/media/Embed/declaration.mjs
2051
- var t$46 = r$40()({
2053
+ var t$47 = r$40()({
2052
2054
  type: "embed",
2053
2055
  content: {
2054
2056
  attributes: {
@@ -2077,7 +2079,7 @@ var t$46 = r$40()({
2077
2079
  });
2078
2080
  //#endregion
2079
2081
  //#region ../sdk-elements/dist/elements/media/FontAwesome/declaration.mjs
2080
- var t$45 = r$40()({
2082
+ var t$46 = r$40()({
2081
2083
  type: "fontAwesome",
2082
2084
  content: {
2083
2085
  attributes: {
@@ -2141,7 +2143,7 @@ var n$35 = r$40()({
2141
2143
  });
2142
2144
  //#endregion
2143
2145
  //#region ../sdk-elements/dist/elements/media/Svg/declaration.mjs
2144
- var t$44 = r$40()({
2146
+ var t$45 = r$40()({
2145
2147
  type: "svg",
2146
2148
  content: {
2147
2149
  attributes: {
@@ -2168,7 +2170,7 @@ var t$44 = r$40()({
2168
2170
  });
2169
2171
  //#endregion
2170
2172
  //#region ../sdk-elements/dist/elements/media/Video/declaration.mjs
2171
- var t$43 = r$40()({
2173
+ var t$44 = r$40()({
2172
2174
  type: "video",
2173
2175
  content: {
2174
2176
  attributes: {
@@ -2459,7 +2461,7 @@ var n$33 = r$40()({
2459
2461
  });
2460
2462
  //#endregion
2461
2463
  //#region ../sdk-elements/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs
2462
- var t$42 = r$40()({
2464
+ var t$43 = r$40()({
2463
2465
  type: "carouselTrack",
2464
2466
  ancestorType: "carousel",
2465
2467
  content: {
@@ -2482,7 +2484,7 @@ var t$42 = r$40()({
2482
2484
  });
2483
2485
  //#endregion
2484
2486
  //#region ../sdk-elements/dist/elements/structure/Carousel/declaration.mjs
2485
- var t$41 = r$40()({
2487
+ var t$42 = r$40()({
2486
2488
  type: "carousel",
2487
2489
  sourceType: "carousel",
2488
2490
  triggers: { onChange: {
@@ -2626,7 +2628,7 @@ var r$30 = r$40()({
2626
2628
  });
2627
2629
  //#endregion
2628
2630
  //#region ../sdk-elements/dist/elements/structure/DialogContainer/declaration.mjs
2629
- var t$40 = { default: {
2631
+ var t$41 = { default: {
2630
2632
  height: "28px",
2631
2633
  width: "28px",
2632
2634
  "padding-top": "4px",
@@ -2811,7 +2813,7 @@ var r$29 = r$40()({
2811
2813
  "font-weight": "500",
2812
2814
  "line-height": "1.2"
2813
2815
  } },
2814
- headerCloseButton: t$40,
2816
+ headerCloseButton: t$41,
2815
2817
  bodyContainer: { default: {
2816
2818
  display: "flex",
2817
2819
  "flex-direction": "column",
@@ -2894,7 +2896,7 @@ var n$30 = r$40()({
2894
2896
  });
2895
2897
  //#endregion
2896
2898
  //#region ../sdk-elements/dist/elements/structure/List/ListItem/declaration.mjs
2897
- var t$39 = r$40()({
2899
+ var t$40 = r$40()({
2898
2900
  type: "listItem",
2899
2901
  content: {
2900
2902
  attributes: {},
@@ -2913,7 +2915,7 @@ var t$39 = r$40()({
2913
2915
  });
2914
2916
  //#endregion
2915
2917
  //#region ../sdk-elements/dist/elements/structure/ModalContainer/declaration.mjs
2916
- var t$38 = r$40()({
2918
+ var t$39 = r$40()({
2917
2919
  type: "modalContainer",
2918
2920
  sourceType: "modalContainer",
2919
2921
  triggers: {
@@ -3125,7 +3127,7 @@ var n$29 = r$40()({
3125
3127
  });
3126
3128
  //#endregion
3127
3129
  //#region ../sdk-elements/dist/elements/structure/TabContainer/declaration.mjs
3128
- var t$37 = r$40()({
3130
+ var t$38 = r$40()({
3129
3131
  type: "tabContainer",
3130
3132
  content: {
3131
3133
  attributes: {},
@@ -3148,7 +3150,7 @@ var t$37 = r$40()({
3148
3150
  });
3149
3151
  //#endregion
3150
3152
  //#region ../sdk-elements/dist/elements/structure/TabContainer/TabContainerBody/declaration.mjs
3151
- var t$36 = r$40()({
3153
+ var t$37 = r$40()({
3152
3154
  type: "tabContainerBody",
3153
3155
  ancestorType: "tabContainer",
3154
3156
  content: {
@@ -3182,7 +3184,7 @@ var t$36 = r$40()({
3182
3184
  });
3183
3185
  //#endregion
3184
3186
  //#region ../sdk-elements/dist/elements/structure/TabContainer/TabContainerHeader/declaration.mjs
3185
- var t$35 = r$40()({
3187
+ var t$36 = r$40()({
3186
3188
  type: "tabContainerHeader",
3187
3189
  ancestorType: "tabContainer",
3188
3190
  content: {
@@ -3216,7 +3218,7 @@ var t$35 = r$40()({
3216
3218
  });
3217
3219
  //#endregion
3218
3220
  //#region ../sdk-elements/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs
3219
- var t$34 = r$40()({
3221
+ var t$35 = r$40()({
3220
3222
  type: "tabContainerItem",
3221
3223
  content: {
3222
3224
  attributes: {},
@@ -3414,7 +3416,7 @@ var e$37 = {
3414
3416
  };
3415
3417
  //#endregion
3416
3418
  //#region ../sdk-elements/dist/elements/basic/RichText/classHtmlParts.mjs
3417
- var t$33 = {
3419
+ var t$34 = {
3418
3420
  h1: ["heading", "heading1"],
3419
3421
  h2: ["heading", "heading2"],
3420
3422
  h3: ["heading", "heading3"],
@@ -3444,24 +3446,24 @@ var t$33 = {
3444
3446
  //#endregion
3445
3447
  //#region ../sdk-elements/dist/elements/media/Svg/sanitizeSvg.mjs
3446
3448
  var r$28 = /^\s*(?:<!--[\s\S]*?-->\s*)*<svg\b[\s\S]*<\/svg>\s*$/i;
3447
- var i$24 = (e) => r$28.test(e);
3449
+ var i$23 = (e) => r$28.test(e);
3448
3450
  //#endregion
3449
3451
  //#region ../sdk-elements/dist/elements/declarations/index.mjs
3450
3452
  var q = {
3451
3453
  ApiContainer: n$34,
3452
- BlockHtml: t$59,
3453
- BlockJsx: t$58,
3454
+ BlockHtml: t$60,
3455
+ BlockJsx: t$59,
3454
3456
  Button: r$34,
3455
- Carousel: t$41,
3456
- CarouselTrack: t$42,
3457
+ Carousel: t$42,
3458
+ CarouselTrack: t$43,
3457
3459
  Channel: n$33,
3458
3460
  Container: r$30,
3459
- Custom: t$57,
3461
+ Custom: t$58,
3460
3462
  DialogContainer: r$29,
3461
3463
  Dropdown: n$44,
3462
- DropdownPopup: t$53,
3463
- Embed: t$46,
3464
- FontAwesome: t$45,
3464
+ DropdownPopup: t$54,
3465
+ Embed: t$47,
3466
+ FontAwesome: t$46,
3465
3467
  Form: n$39,
3466
3468
  FormControl: g$5,
3467
3469
  Heading: n$43,
@@ -3469,26 +3471,26 @@ var q = {
3469
3471
  LayoutContainer: n$37,
3470
3472
  Link: n$42,
3471
3473
  List: n$30,
3472
- ListItem: t$39,
3473
- Loading: t$49,
3474
- Markdown: t$52,
3475
- ModalContainer: t$38,
3476
- NodeHtml: t$56,
3477
- NotFound: t$48,
3474
+ ListItem: t$40,
3475
+ Loading: t$50,
3476
+ Markdown: t$53,
3477
+ ModalContainer: t$39,
3478
+ NodeHtml: t$57,
3479
+ NotFound: t$49,
3478
3480
  Page: r$31,
3479
3481
  Pagination: n$29,
3480
- Paragraph: t$51,
3481
- PlitziSdk: t$55,
3482
- Reference: t$54,
3482
+ Paragraph: t$52,
3483
+ PlitziSdk: t$56,
3484
+ Reference: t$55,
3483
3485
  RichText: n$41,
3484
- Svg: t$44,
3485
- TabContainer: t$37,
3486
- TabContainerBody: t$36,
3487
- TabContainerHeader: t$35,
3488
- TabContainerItem: t$34,
3489
- Text: t$50,
3486
+ Svg: t$45,
3487
+ TabContainer: t$38,
3488
+ TabContainerBody: t$37,
3489
+ TabContainerHeader: t$36,
3490
+ TabContainerItem: t$35,
3491
+ Text: t$51,
3490
3492
  ThemeToggle: r$33,
3491
- Video: t$43
3493
+ Video: t$44
3492
3494
  };
3493
3495
  var J = Object.fromEntries(Object.values(q).flatMap((e) => "serverTemplates" in e ? [[e.type, e.serverTemplates]] : []));
3494
3496
  //#endregion
@@ -3534,7 +3536,7 @@ var typeCallbackDefinitions = Object.fromEntries(Object.values(declarations).fla
3534
3536
  * A callback runs on the element it names, so aiming it at one of the wrong type is the same silent dead end as a
3535
3537
  * trigger on the wrong element — the builder offers `openModal` only on a modal, and a hand-written step does not.
3536
3538
  */
3537
- var elementCallbacks = Object.fromEntries(Object.values(declarations).map((declaration) => [declaration.type, [...Object.keys(a$23), ...Object.keys(declaration.callbacks ?? {})]]));
3539
+ var elementCallbacks = Object.fromEntries(Object.values(declarations).map((declaration) => [declaration.type, [...Object.keys(a$22), ...Object.keys(declaration.callbacks ?? {})]]));
3538
3540
  /** The sub-elements that only work inside another type, and that type — see `ElementDeclarationData.ancestorType`. */
3539
3541
  var elementAncestorTypes = Object.fromEntries(Object.values(declarations).flatMap(({ type, ancestorType }) => ancestorType ? [[type, ancestorType]] : []));
3540
3542
  /**
@@ -3638,6 +3640,11 @@ var AUTHORING_CODES = {
3638
3640
  means: "an `accessLevel` that is not one the router reads",
3639
3641
  fix: "one of the values the message lists"
3640
3642
  },
3643
+ "page-access": {
3644
+ kind: "refused",
3645
+ means: "a page `access` the server cannot keep: no permissions, or one that is not a name",
3646
+ fix: "`access: { permissions: ['…'] }` with at least one permission name, or no `access` for a page anybody may see"
3647
+ },
3641
3648
  "page-target-unknown": {
3642
3649
  kind: "refused",
3643
3650
  means: "a link or `navigate` to a page id that does not exist",
@@ -4834,11 +4841,11 @@ var e$35 = (e) => typeof e == "object" && !!e && !Array.isArray(e);
4834
4841
  //#endregion
4835
4842
  //#region ../sdk-shared/dist/helpers/twigWrapper/filters/filters.mjs
4836
4843
  var e$34 = Symbol("twigArrowParams");
4837
- var t$31 = (e) => e == null || e === "";
4844
+ var t$32 = (e) => e == null || e === "";
4838
4845
  var n$27 = (e, t) => e === t ? 0 : e == null ? -1 : t == null ? 1 : typeof e == "number" && typeof t == "number" ? e - t : String(e).localeCompare(String(t));
4839
4846
  var r$27 = (e) => e === void 0 || typeof e == "function" || typeof e == "symbol" ? "null" : typeof e == "bigint" ? e.toString() : JSON.stringify(e);
4840
- var i$23 = (e) => e == null ? "" : String(e);
4841
- var a$21 = (e) => {
4847
+ var i$22 = (e) => e == null ? "" : String(e);
4848
+ var a$20 = (e) => {
4842
4849
  let t = new TextEncoder().encode(e), n = "";
4843
4850
  for (let e = 0; e < t.length; e++) n += String.fromCharCode(t[e]);
4844
4851
  return btoa(n);
@@ -4848,7 +4855,7 @@ var o$22 = (e) => {
4848
4855
  for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
4849
4856
  return new TextDecoder().decode(n);
4850
4857
  };
4851
- var s$20 = (e) => {
4858
+ var s$19 = (e) => {
4852
4859
  let t = [
4853
4860
  7,
4854
4861
  12,
@@ -4938,12 +4945,12 @@ var s$20 = (e) => {
4938
4945
  };
4939
4946
  return p(c) + p(l) + p(u) + p(d);
4940
4947
  };
4941
- var c$18 = "__PLITZI_RAW__";
4942
- var u$13 = (e) => ({
4948
+ var c$19 = "__PLITZI_RAW__";
4949
+ var u$14 = (e) => ({
4943
4950
  __raw: e,
4944
- __marker: c$18
4951
+ __marker: c$19
4945
4952
  });
4946
- var f$9 = [
4953
+ var f$10 = [
4947
4954
  "Sun",
4948
4955
  "Mon",
4949
4956
  "Tue",
@@ -4952,10 +4959,10 @@ var f$9 = [
4952
4959
  "Fri",
4953
4960
  "Sat"
4954
4961
  ];
4955
- var p$11 = /* @__PURE__ */ new Map();
4962
+ var p$10 = /* @__PURE__ */ new Map();
4956
4963
  var m$7 = (e) => {
4957
- if (!p$11.has(e)) try {
4958
- p$11.set(e, new Intl.DateTimeFormat("en-US", {
4964
+ if (!p$10.has(e)) try {
4965
+ p$10.set(e, new Intl.DateTimeFormat("en-US", {
4959
4966
  timeZone: e,
4960
4967
  hourCycle: "h23",
4961
4968
  year: "numeric",
@@ -4967,11 +4974,11 @@ var m$7 = (e) => {
4967
4974
  weekday: "short"
4968
4975
  }));
4969
4976
  } catch {
4970
- p$11.set(e, null);
4977
+ p$10.set(e, null);
4971
4978
  }
4972
- return p$11.get(e) ?? null;
4979
+ return p$10.get(e) ?? null;
4973
4980
  };
4974
- var h$4 = (e) => {
4981
+ var h$5 = (e) => {
4975
4982
  if (e instanceof Date) return e;
4976
4983
  if (typeof e == "number") return new Date(e);
4977
4984
  let t = String(e).trim();
@@ -4997,7 +5004,7 @@ var g$4 = (e, t) => {
4997
5004
  hours: Number(i("hour")),
4998
5005
  minutes: Number(i("minute")),
4999
5006
  seconds: Number(i("second")),
5000
- weekday: f$9.indexOf(i("weekday"))
5007
+ weekday: f$10.indexOf(i("weekday"))
5001
5008
  };
5002
5009
  };
5003
5010
  var _$4 = (e) => {
@@ -5008,7 +5015,7 @@ var _$4 = (e) => {
5008
5015
  }
5009
5016
  };
5010
5017
  var v$2 = (e, t, n) => {
5011
- for (let r of [t == null ? "en" : i$23(t), "en"]) try {
5018
+ for (let r of [t == null ? "en" : i$22(t), "en"]) try {
5012
5019
  return new Intl.NumberFormat(r, n).format(e);
5013
5020
  } catch {
5014
5021
  continue;
@@ -5016,11 +5023,11 @@ var v$2 = (e, t, n) => {
5016
5023
  return String(e);
5017
5024
  };
5018
5025
  var y$2 = {
5019
- raw: (e) => u$13(e),
5026
+ raw: (e) => u$14(e),
5020
5027
  to_json: (e) => r$27(e),
5021
5028
  json_encode: (e) => r$27(e),
5022
5029
  object_as_json: (e) => typeof e == "object" && e ? JSON.stringify(e) : e,
5023
- default: (e, n) => t$31(e) ? n[0] : e,
5030
+ default: (e, n) => t$32(e) ? n[0] : e,
5024
5031
  upper: (e) => typeof e == "string" ? e.toUpperCase() : e,
5025
5032
  lower: (e) => typeof e == "string" ? e.toLowerCase() : e,
5026
5033
  trim: (e) => typeof e == "string" ? e.trim() : e,
@@ -5033,7 +5040,7 @@ var y$2 = {
5033
5040
  rtrim: (e) => typeof e == "string" ? e.trimEnd() : e,
5034
5041
  pad: (e, t) => {
5035
5042
  if (typeof e != "string") return e;
5036
- let n = Number(t[0]) || 0, r = t.length > 1 ? i$23(t[1]) : " ";
5043
+ let n = Number(t[0]) || 0, r = t.length > 1 ? i$22(t[1]) : " ";
5037
5044
  if (r === "") return e;
5038
5045
  let a = n - e.length;
5039
5046
  if (a <= 0) return e;
@@ -5042,7 +5049,7 @@ var y$2 = {
5042
5049
  },
5043
5050
  padRight: (e, t) => {
5044
5051
  if (typeof e != "string") return e;
5045
- let n = Number(t[0]) || 0, r = t.length > 1 ? i$23(t[1]) : " ";
5052
+ let n = Number(t[0]) || 0, r = t.length > 1 ? i$22(t[1]) : " ";
5046
5053
  if (r === "") return e;
5047
5054
  let a = n - e.length;
5048
5055
  if (a <= 0) return e;
@@ -5058,28 +5065,28 @@ var y$2 = {
5058
5065
  let n = e.match(/-?\d+(?:\.\d+)?/);
5059
5066
  return n ? Number(n[0]) : 0;
5060
5067
  },
5061
- replace: (e, t) => typeof e != "string" || t.length === 0 ? e : e.split(i$23(t[0])).join(i$23(t[1])),
5068
+ replace: (e, t) => typeof e != "string" || t.length === 0 ? e : e.split(i$22(t[0])).join(i$22(t[1])),
5062
5069
  slice: (e, t) => {
5063
5070
  if (t.length === 0) return e;
5064
5071
  let n = Number(t[0]) || 0, r = t.length > 1 && Number.isFinite(Number(t[1])) ? n + Number(t[1]) : void 0;
5065
5072
  return typeof e == "string" || Array.isArray(e) ? e.slice(n, r) : e;
5066
5073
  },
5067
- split: (e, t) => typeof e == "string" && t.length > 0 ? e.split(i$23(t[0])) : e,
5068
- join: (e, t) => Array.isArray(e) ? e.join(t.length === 0 ? "" : i$23(t[0])) : e,
5074
+ split: (e, t) => typeof e == "string" && t.length > 0 ? e.split(i$22(t[0])) : e,
5075
+ join: (e, t) => Array.isArray(e) ? e.join(t.length === 0 ? "" : i$22(t[0])) : e,
5069
5076
  reverse: (e) => typeof e == "string" ? e.split("").reverse().join("") : Array.isArray(e) ? [...e].reverse() : e,
5070
- length: (e) => typeof e == "string" || Array.isArray(e) ? e.length : typeof e == "number" ? i$23(e).length : typeof e == "object" && e ? Object.keys(e).length : 0,
5077
+ length: (e) => typeof e == "string" || Array.isArray(e) ? e.length : typeof e == "number" ? i$22(e).length : typeof e == "object" && e ? Object.keys(e).length : 0,
5071
5078
  first: (e) => typeof e == "string" ? e.length > 0 ? e[0] : "" : Array.isArray(e) ? e.length > 0 ? e[0] : void 0 : e,
5072
5079
  last: (e) => typeof e == "string" ? e.length > 0 ? e[e.length - 1] : "" : Array.isArray(e) ? e.length > 0 ? e[e.length - 1] : void 0 : e,
5073
5080
  contains: (e, t) => {
5074
5081
  if (t.length === 0) return !1;
5075
5082
  let n = t[0];
5076
- return typeof e == "string" ? e.includes(i$23(n)) : Array.isArray(e) ? e.includes(n) : !1;
5083
+ return typeof e == "string" ? e.includes(i$22(n)) : Array.isArray(e) ? e.includes(n) : !1;
5077
5084
  },
5078
- startswith: (e, t) => typeof e == "string" && t.length > 0 && e.startsWith(i$23(t[0])),
5079
- endswith: (e, t) => typeof e == "string" && t.length > 0 && e.endsWith(i$23(t[0])),
5085
+ startswith: (e, t) => typeof e == "string" && t.length > 0 && e.startsWith(i$22(t[0])),
5086
+ endswith: (e, t) => typeof e == "string" && t.length > 0 && e.endsWith(i$22(t[0])),
5080
5087
  number_format: (e, t) => {
5081
5088
  if (typeof e != "number") return e;
5082
- let n = Number(t[0]) || 0, r = t[1] == null ? "." : i$23(t[1]), a = t[2] == null ? "" : i$23(t[2]), o = e.toFixed(n);
5089
+ let n = Number(t[0]) || 0, r = t[1] == null ? "." : i$22(t[1]), a = t[2] == null ? "" : i$22(t[2]), o = e.toFixed(n);
5083
5090
  if (a === "") return o.replace(".", r);
5084
5091
  let s = o.split(".");
5085
5092
  return s[0] = s[0].replace(/\B(?=(\d{3})+(?!\d))/g, a), s.join(r);
@@ -5090,7 +5097,7 @@ var y$2 = {
5090
5097
  let r = t[2], a = typeof r == "object" && !!r && "trimZeros" in r && r.trimZeros === !0 && Number.isInteger(n);
5091
5098
  return v$2(n, t[1], {
5092
5099
  style: "currency",
5093
- currency: i$23(t[0]),
5100
+ currency: i$22(t[0]),
5094
5101
  ...a ? {
5095
5102
  minimumFractionDigits: 0,
5096
5103
  maximumFractionDigits: 0
@@ -5152,7 +5159,7 @@ var y$2 = {
5152
5159
  if (t.length === 0) return e.filter(Boolean);
5153
5160
  let n = t[0];
5154
5161
  if (typeof n == "function") return e.filter((e, t) => n(e, t));
5155
- let r = i$23(n);
5162
+ let r = i$22(n);
5156
5163
  return e.filter((e) => {
5157
5164
  if (typeof e == "object" && e) {
5158
5165
  let t = e[r];
@@ -5163,14 +5170,14 @@ var y$2 = {
5163
5170
  },
5164
5171
  column: (e, t) => {
5165
5172
  if (!Array.isArray(e) || t.length === 0) return e;
5166
- let n = i$23(t[0]);
5173
+ let n = i$22(t[0]);
5167
5174
  return e.map((e) => typeof e == "object" && e ? e[n] : void 0);
5168
5175
  },
5169
- url_encode: (e) => typeof e == "string" ? encodeURIComponent(e) : typeof e == "object" && e && !Array.isArray(e) ? new URLSearchParams(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, i$23(t)]))).toString() : e,
5176
+ url_encode: (e) => typeof e == "string" ? encodeURIComponent(e) : typeof e == "object" && e && !Array.isArray(e) ? new URLSearchParams(Object.fromEntries(Object.entries(e).map(([e, t]) => [e, i$22(t)]))).toString() : e,
5170
5177
  nl2br: (e) => typeof e == "string" ? e.replace(/\n/g, "<br>") : e,
5171
5178
  striptags: (e, t) => {
5172
5179
  if (typeof e != "string") return e;
5173
- let n = t.length > 0 ? i$23(t[0]).trim() : "";
5180
+ let n = t.length > 0 ? i$22(t[0]).trim() : "";
5174
5181
  if (n) {
5175
5182
  let t = n.split(/(?:\s*>\s*<\s*|<\s*|>\s*)/).filter(Boolean).map((e) => e.replace(/[/>]/g, "").trim());
5176
5183
  if (t.length > 0) {
@@ -5183,7 +5190,7 @@ var y$2 = {
5183
5190
  abs: (e) => typeof e == "number" ? Math.abs(e) : e,
5184
5191
  round: (e, t) => {
5185
5192
  if (typeof e != "number") return e;
5186
- let n = Number(t[0]) || 0, r = t[1] == null ? "common" : i$23(t[1]), a = 10 ** n;
5193
+ let n = Number(t[0]) || 0, r = t[1] == null ? "common" : i$22(t[1]), a = 10 ** n;
5187
5194
  return r === "ceil" ? Math.ceil(e * a) / a : r === "floor" ? Math.floor(e * a) / a : Math.round(e * a) / a;
5188
5195
  },
5189
5196
  format: (e, t) => {
@@ -5200,7 +5207,7 @@ var y$2 = {
5200
5207
  } else if (s === "f") {
5201
5208
  let e = Number(c);
5202
5209
  u = `${l && e >= 0 ? "+" : ""}${o === void 0 ? String(e) : e.toFixed(Number(o))}`;
5203
- } else u = i$23(c), u = o === void 0 ? u : u.slice(0, Number(o));
5210
+ } else u = i$22(c), u = o === void 0 ? u : u.slice(0, Number(o));
5204
5211
  let d = Number(a || 0);
5205
5212
  if (u.length >= d) return u;
5206
5213
  let f = /'(.)/.exec(r), p = f ? f[1] : r.includes("0") ? "0" : " ";
@@ -5211,9 +5218,9 @@ var y$2 = {
5211
5218
  random: (e) => Array.isArray(e) ? e.length > 0 ? e[Math.floor(Math.random() * e.length)] : void 0 : typeof e == "string" ? e.length > 0 ? e[Math.floor(Math.random() * e.length)] : "" : typeof e == "number" ? Math.floor(Math.random() * e) : e,
5212
5219
  date: (e, t) => {
5213
5220
  if (t.length === 0) return e;
5214
- let n = i$23(t[0]), r = h$4(e);
5221
+ let n = i$22(t[0]), r = h$5(e);
5215
5222
  if (Number.isNaN(r.getTime())) return "";
5216
- let a = g$4(r, t.length > 1 ? i$23(t[1]) : "");
5223
+ let a = g$4(r, t.length > 1 ? i$22(t[1]) : "");
5217
5224
  if (!a) return "";
5218
5225
  let o = (e) => String(e).padStart(2, "0"), s = [
5219
5226
  "January",
@@ -5275,18 +5282,18 @@ var y$2 = {
5275
5282
  for (let e of n) f ? (d += e, f = !1) : e === "\\" ? f = !0 : d += Object.prototype.hasOwnProperty.call(u, e) ? u[e] : e;
5276
5283
  return d;
5277
5284
  },
5278
- base64_encode: (e) => typeof e == "string" ? a$21(e) : e,
5285
+ base64_encode: (e) => typeof e == "string" ? a$20(e) : e,
5279
5286
  base64_decode: (e) => typeof e == "string" ? o$22(e) : e,
5280
- md5: (e) => typeof e == "string" ? s$20(e) : e,
5287
+ md5: (e) => typeof e == "string" ? s$19(e) : e,
5281
5288
  without: (e, t) => {
5282
5289
  if (typeof e != "object" || !e || Array.isArray(e)) return e;
5283
- let n = t.map(i$23), r = {};
5290
+ let n = t.map(i$22), r = {};
5284
5291
  for (let [t, i] of Object.entries(e)) n.includes(t) || (r[t] = i);
5285
5292
  return r;
5286
5293
  },
5287
5294
  only: (e, t) => {
5288
5295
  if (typeof e != "object" || !e || Array.isArray(e)) return e;
5289
- let n = t.map(i$23), r = {};
5296
+ let n = t.map(i$22), r = {};
5290
5297
  for (let [t, i] of Object.entries(e)) n.includes(t) && (r[t] = i);
5291
5298
  return r;
5292
5299
  },
@@ -5295,12 +5302,12 @@ var y$2 = {
5295
5302
  let n = t[0];
5296
5303
  if (typeof n == "function") return e.find((e, t) => n(e, t));
5297
5304
  if (t.length < 2) return;
5298
- let r = i$23(n), a = t[1];
5305
+ let r = i$22(n), a = t[1];
5299
5306
  return e.find((e) => typeof e == "object" && e ? e[r] === a : e === a);
5300
5307
  },
5301
5308
  pluck: (e, t) => {
5302
5309
  if (!Array.isArray(e) || t.length === 0) return e;
5303
- let n = i$23(t[0]);
5310
+ let n = i$22(t[0]);
5304
5311
  return e.map((e) => typeof e == "object" && e ? e[n] : void 0);
5305
5312
  },
5306
5313
  unique: (e) => Array.isArray(e) ? [...new Set(e)] : e,
@@ -5316,7 +5323,7 @@ var y$2 = {
5316
5323
  },
5317
5324
  index_by: (e, t) => {
5318
5325
  if (!Array.isArray(e) || t.length === 0) return e;
5319
- let n = i$23(t[0]), r = {};
5326
+ let n = i$22(t[0]), r = {};
5320
5327
  for (let t of e) if (typeof t == "object" && t) {
5321
5328
  let e = String(t[n] ?? "");
5322
5329
  r[e] = t;
@@ -5325,7 +5332,7 @@ var y$2 = {
5325
5332
  },
5326
5333
  group_by: (e, t) => {
5327
5334
  if (!Array.isArray(e) || t.length === 0) return e;
5328
- let n = i$23(t[0]), r = {};
5335
+ let n = i$22(t[0]), r = {};
5329
5336
  for (let t of e) if (typeof t == "object" && t) {
5330
5337
  let e = String(t[n] ?? "");
5331
5338
  r[e] = r[e] ?? [], r[e].push(t);
@@ -5371,20 +5378,20 @@ var e$33 = {
5371
5378
  LowerR: 114,
5372
5379
  LowerT: 116
5373
5380
  };
5374
- var t$30 = (t) => t >= 97 && t <= 122 || t >= 65 && t <= 90 || t === e$33.Underscore;
5375
- var n$26 = (n) => t$30(n) || n >= e$33.Zero && n <= e$33.Nine;
5381
+ var t$31 = (t) => t >= 97 && t <= 122 || t >= 65 && t <= 90 || t === e$33.Underscore;
5382
+ var n$26 = (n) => t$31(n) || n >= e$33.Zero && n <= e$33.Nine;
5376
5383
  var r$26 = (t) => n$26(t) || t === e$33.Minus;
5377
- var i$22 = (t) => t >= e$33.Zero && t <= e$33.Nine;
5378
- var a$20 = (t) => t === e$33.Space || t === e$33.Tab || t === e$33.Newline || t === e$33.CarriageReturn;
5384
+ var i$21 = (t) => t >= e$33.Zero && t <= e$33.Nine;
5385
+ var a$19 = (t) => t === e$33.Space || t === e$33.Tab || t === e$33.Newline || t === e$33.CarriageReturn;
5379
5386
  var o$21 = (e) => {
5380
5387
  let r = e.length;
5381
- if (r === 0 || !t$30(e.charCodeAt(0))) return !1;
5388
+ if (r === 0 || !t$31(e.charCodeAt(0))) return !1;
5382
5389
  for (let t = 1; t < r; t++) if (!n$26(e.charCodeAt(t))) return !1;
5383
5390
  return !0;
5384
5391
  };
5385
- var s$19 = (r) => {
5392
+ var s$18 = (r) => {
5386
5393
  let a = r.length;
5387
- if (a === 0 || !t$30(r.charCodeAt(0))) return !1;
5394
+ if (a === 0 || !t$31(r.charCodeAt(0))) return !1;
5388
5395
  let o = !1, s = !1;
5389
5396
  for (let c = 1; c < a; c++) {
5390
5397
  let a = r.charCodeAt(c);
@@ -5392,13 +5399,13 @@ var s$19 = (r) => {
5392
5399
  if (o) return !1;
5393
5400
  o = !0, s = !1;
5394
5401
  } else if (o) {
5395
- if (s = i$22(a), !s && !t$30(a)) return !1;
5402
+ if (s = i$21(a), !s && !t$31(a)) return !1;
5396
5403
  o = !1;
5397
- } else if (s ? !i$22(a) : !n$26(a)) return !1;
5404
+ } else if (s ? !i$21(a) : !n$26(a)) return !1;
5398
5405
  }
5399
5406
  return !o;
5400
5407
  };
5401
- var c$17 = (e) => o$21(e);
5408
+ var c$18 = (e) => o$21(e);
5402
5409
  //#endregion
5403
5410
  //#region ../sdk-shared/dist/helpers/twigWrapper/Lexer/Lexer.mjs
5404
5411
  var e$32 = (e) => {
@@ -5454,7 +5461,7 @@ var e$32 = (e) => {
5454
5461
  //#endregion
5455
5462
  //#region ../sdk-shared/dist/helpers/twigWrapper/Lexer/types.mjs
5456
5463
  var e$31 = (e, t) => t ? `{{{${e}}}}` : `{{${e}}}`;
5457
- var t$29 = (t) => {
5464
+ var t$30 = (t) => {
5458
5465
  switch (t.type) {
5459
5466
  case "text": return t.value;
5460
5467
  case "variable": return e$31(t.content, t.raw);
@@ -5480,16 +5487,16 @@ var o$20 = class {
5480
5487
  return t < this.src.length ? this.src.charCodeAt(t) : -1;
5481
5488
  }
5482
5489
  skipWs() {
5483
- for (; this.pos < this.src.length && a$20(this.src.charCodeAt(this.pos));) this.pos++;
5490
+ for (; this.pos < this.src.length && a$19(this.src.charCodeAt(this.pos));) this.pos++;
5484
5491
  }
5485
5492
  scanName() {
5486
5493
  let e = this.pos;
5487
- if (!this.eof() && t$30(this.src.charCodeAt(this.pos))) for (this.pos++; !this.eof() && r$26(this.src.charCodeAt(this.pos));) this.pos++;
5494
+ if (!this.eof() && t$31(this.src.charCodeAt(this.pos))) for (this.pos++; !this.eof() && r$26(this.src.charCodeAt(this.pos));) this.pos++;
5488
5495
  return this.src.slice(e, this.pos);
5489
5496
  }
5490
5497
  scanIndex() {
5491
5498
  let e = this.pos;
5492
- for (; !this.eof() && i$22(this.src.charCodeAt(this.pos));) this.pos++;
5499
+ for (; !this.eof() && i$21(this.src.charCodeAt(this.pos));) this.pos++;
5493
5500
  return this.src.slice(e, this.pos);
5494
5501
  }
5495
5502
  scanStringLiteral() {
@@ -5505,8 +5512,8 @@ var o$20 = class {
5505
5512
  }
5506
5513
  scanNumber() {
5507
5514
  let n = this.pos;
5508
- for (this.src.charCodeAt(this.pos) === e$33.Minus && this.pos++; this.pos < this.src.length && i$22(this.src.charCodeAt(this.pos));) this.pos++;
5509
- if (this.src.charCodeAt(this.pos) === e$33.Dot) for (this.pos++; this.pos < this.src.length && i$22(this.src.charCodeAt(this.pos));) this.pos++;
5515
+ for (this.src.charCodeAt(this.pos) === e$33.Minus && this.pos++; this.pos < this.src.length && i$21(this.src.charCodeAt(this.pos));) this.pos++;
5516
+ if (this.src.charCodeAt(this.pos) === e$33.Dot) for (this.pos++; this.pos < this.src.length && i$21(this.src.charCodeAt(this.pos));) this.pos++;
5510
5517
  return Number(this.src.slice(n, this.pos));
5511
5518
  }
5512
5519
  matchKeyword(e) {
@@ -5530,16 +5537,16 @@ var o$20 = class {
5530
5537
  //#endregion
5531
5538
  //#region ../sdk-shared/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs
5532
5539
  var r$25 = (e, t) => {
5533
- let n = new s$18(e, t), r = n.parseTernary();
5540
+ let n = new s$17(e, t), r = n.parseTernary();
5534
5541
  return n.expectEnd(), r;
5535
5542
  };
5536
- var i$21 = (e, t) => {
5537
- let n = new s$18(e, t), r = n.parseApplyChain();
5543
+ var i$20 = (e, t) => {
5544
+ let n = new s$17(e, t), r = n.parseApplyChain();
5538
5545
  return n.expectEnd(), r;
5539
5546
  };
5540
- var a$19 = ["same as", "divisible by"];
5547
+ var a$18 = ["same as", "divisible by"];
5541
5548
  var o$19 = "`matches` is not supported: templates evaluate no regular expressions. Use `starts with`, `ends with` or `in`.";
5542
- var s$18 = class extends o$20 {
5549
+ var s$17 = class extends o$20 {
5543
5550
  issues;
5544
5551
  constructor(e, t) {
5545
5552
  super(e), this.issues = t;
@@ -5693,7 +5700,7 @@ var s$18 = class extends o$20 {
5693
5700
  }
5694
5701
  matchWordedTest() {
5695
5702
  let e = this.pos;
5696
- for (let t of a$19) {
5703
+ for (let t of a$18) {
5697
5704
  let [n, r] = t.split(" ");
5698
5705
  if (this.matchKeyword(n)) {
5699
5706
  if (this.skipWs(), this.matchKeyword(r)) return t;
@@ -5760,7 +5767,7 @@ var s$18 = class extends o$20 {
5760
5767
  });
5761
5768
  }
5762
5769
  parseSignedAtom() {
5763
- return this.peek() === e$33.Minus && i$22(this.at(1)) ? this.maybeTrailingFilters({
5770
+ return this.peek() === e$33.Minus && i$21(this.at(1)) ? this.maybeTrailingFilters({
5764
5771
  type: "literal",
5765
5772
  value: this.scanNumber()
5766
5773
  }) : this.peek() === e$33.Minus ? (this.pos++, this.skipWs(), {
@@ -5770,7 +5777,7 @@ var s$18 = class extends o$20 {
5770
5777
  }) : this.parseAtom();
5771
5778
  }
5772
5779
  parseDefault() {
5773
- if (this.skipWs(), this.peek() === e$33.Minus && i$22(this.at(1))) return this.maybeTrailingFilters({
5780
+ if (this.skipWs(), this.peek() === e$33.Minus && i$21(this.at(1))) return this.maybeTrailingFilters({
5774
5781
  type: "literal",
5775
5782
  value: this.scanNumber()
5776
5783
  });
@@ -5806,7 +5813,7 @@ var s$18 = class extends o$20 {
5806
5813
  type: "literal",
5807
5814
  value: this.scanStringLiteral()
5808
5815
  });
5809
- if (i$22(n)) return this.maybeTrailingFilters({
5816
+ if (i$21(n)) return this.maybeTrailingFilters({
5810
5817
  type: "literal",
5811
5818
  value: this.scanNumber()
5812
5819
  });
@@ -5930,7 +5937,7 @@ var s$18 = class extends o$20 {
5930
5937
  type: "literal",
5931
5938
  value: this.scanStringLiteral()
5932
5939
  };
5933
- if (i$22(n)) return {
5940
+ if (i$21(n)) return {
5934
5941
  type: "literal",
5935
5942
  value: this.scanNumber()
5936
5943
  };
@@ -5975,7 +5982,7 @@ var s$18 = class extends o$20 {
5975
5982
  //#region ../sdk-shared/dist/helpers/twigWrapper/Parser/helpers.mjs
5976
5983
  var n$25 = (e) => {
5977
5984
  let n = 0;
5978
- for (; n < e.length && !a$20(e.charCodeAt(n));) n++;
5985
+ for (; n < e.length && !a$19(e.charCodeAt(n));) n++;
5979
5986
  return e.slice(0, n);
5980
5987
  };
5981
5988
  var r$24 = (t) => {
@@ -5990,13 +5997,13 @@ var r$24 = (t) => {
5990
5997
  };
5991
5998
  //#endregion
5992
5999
  //#region ../sdk-shared/dist/helpers/twigWrapper/Parser/Parser.mjs
5993
- var c$16 = (e, t = !1, n) => {
5994
- let r = new f$8(e, t, n), i = r.parseBody();
6000
+ var c$17 = (e, t = !1, n) => {
6001
+ let r = new f$9(e, t, n), i = r.parseBody();
5995
6002
  if (!r.error) {
5996
6003
  let e = r.peek();
5997
6004
  if (e && e.type === "tag") {
5998
6005
  let t = n$25(e.content.trim());
5999
- l$13.has(t) && (r.error = `Orphan closing tag: {% ${t} %} without matching opening tag`);
6006
+ l$14.has(t) && (r.error = `Orphan closing tag: {% ${t} %} without matching opening tag`);
6000
6007
  }
6001
6008
  }
6002
6009
  return {
@@ -6004,7 +6011,7 @@ var c$16 = (e, t = !1, n) => {
6004
6011
  error: r.error
6005
6012
  };
6006
6013
  };
6007
- var l$13 = /* @__PURE__ */ new Set([
6014
+ var l$14 = /* @__PURE__ */ new Set([
6008
6015
  "endif",
6009
6016
  "endfor",
6010
6017
  "endset",
@@ -6012,7 +6019,7 @@ var l$13 = /* @__PURE__ */ new Set([
6012
6019
  "else",
6013
6020
  "elseif"
6014
6021
  ]);
6015
- var u$12 = () => ({
6022
+ var u$13 = () => ({
6016
6023
  type: "if",
6017
6024
  condition: {
6018
6025
  type: "literal",
@@ -6022,7 +6029,7 @@ var u$12 = () => ({
6022
6029
  elseifClauses: [],
6023
6030
  elseBody: null
6024
6031
  });
6025
- var d$13 = () => ({
6032
+ var d$14 = () => ({
6026
6033
  type: "for",
6027
6034
  valueVar: "_item",
6028
6035
  keyVar: null,
@@ -6033,7 +6040,7 @@ var d$13 = () => ({
6033
6040
  body: [],
6034
6041
  elseBody: null
6035
6042
  });
6036
- var f$8 = class {
6043
+ var f$9 = class {
6037
6044
  tokens;
6038
6045
  keepEmptyTokens;
6039
6046
  issues;
@@ -6059,7 +6066,7 @@ var f$8 = class {
6059
6066
  let e = [];
6060
6067
  for (; this.pos < this.tokens.length;) {
6061
6068
  let t = this.peek();
6062
- if (!t || t.type === "tag" && l$13.has(n$25(t.content.trim()))) break;
6069
+ if (!t || t.type === "tag" && l$14.has(n$25(t.content.trim()))) break;
6063
6070
  let n = this.parseNode();
6064
6071
  n && e.push(n);
6065
6072
  }
@@ -6118,9 +6125,9 @@ var f$8 = class {
6118
6125
  parseIf() {
6119
6126
  this.advance();
6120
6127
  let e = this.tokens[this.pos - 1];
6121
- if (e.type !== "tag") return this.error = "Malformed {% if %} tag", u$12();
6128
+ if (e.type !== "tag") return this.error = "Malformed {% if %} tag", u$13();
6122
6129
  let t = e.content.trim(), n = t.indexOf(" ") === -1 ? "" : t.slice(t.indexOf(" ") + 1).trim();
6123
- if (!n) return this.error = "Malformed {% if %} tag: missing condition", u$12();
6130
+ if (!n) return this.error = "Malformed {% if %} tag: missing condition", u$13();
6124
6131
  let r = r$25(n, this.issues), i = this.parseBody(), s = [], c = null, l = !1;
6125
6132
  for (; this.peek();) {
6126
6133
  let e = this.peek();
@@ -6151,16 +6158,16 @@ var f$8 = class {
6151
6158
  let e = this.pos;
6152
6159
  this.advance();
6153
6160
  let n = this.tokens[this.pos - 1];
6154
- if (n.type !== "tag") return d$13();
6161
+ if (n.type !== "tag") return d$14();
6155
6162
  let r = n.content.trim(), i = r.slice(r.indexOf(" ") + 1).trim(), c = /\sin\s/.exec(i);
6156
- if (!c) return this.error = "Invalid {% for %} syntax: missing the `in` keyword", d$13();
6163
+ if (!c) return this.error = "Invalid {% for %} syntax: missing the `in` keyword", d$14();
6157
6164
  let l = i.slice(0, c.index).trim(), u = i.slice(c.index + c[0].length).trim(), f = r$24(u), p = f ? {
6158
6165
  type: "range",
6159
6166
  start: r$25(f[0], this.issues),
6160
6167
  end: r$25(f[1], this.issues)
6161
6168
  } : r$25(u, this.issues), m = l.indexOf(","), h = m === -1 ? null : l.slice(0, m).trim(), g = m === -1 ? l : l.slice(m + 1).trim();
6162
- if (!c$17(g)) return this.error = `Invalid {% for %} variable name: "${g}"`, d$13();
6163
- if (h !== null && !c$17(h)) return this.error = `Invalid {% for %} key variable name: "${h}"`, d$13();
6169
+ if (!c$18(g)) return this.error = `Invalid {% for %} variable name: "${g}"`, d$14();
6170
+ if (h !== null && !c$18(h)) return this.error = `Invalid {% for %} key variable name: "${h}"`, d$14();
6164
6171
  let _ = this.parseBody(), v = null;
6165
6172
  if (this.peek()) {
6166
6173
  let e = this.peek();
@@ -6181,7 +6188,7 @@ var f$8 = class {
6181
6188
  }
6182
6189
  reconstructRange(e, t) {
6183
6190
  let n = "";
6184
- for (let i = e; i < t; i++) n += t$29(this.tokens[i]);
6191
+ for (let i = e; i < t; i++) n += t$30(this.tokens[i]);
6185
6192
  return n;
6186
6193
  }
6187
6194
  parseSet() {
@@ -6218,7 +6225,7 @@ var f$8 = class {
6218
6225
  filters: [],
6219
6226
  body: []
6220
6227
  };
6221
- let t = e.content.trim(), r = i$21(t.slice(t.indexOf(" ") + 1).trim(), this.issues), a = this.parseBody(), o = this.peek();
6228
+ let t = e.content.trim(), r = i$20(t.slice(t.indexOf(" ") + 1).trim(), this.issues), a = this.parseBody(), o = this.peek();
6222
6229
  return o && o.type === "tag" && this.advance(), {
6223
6230
  type: "apply",
6224
6231
  filters: r,
@@ -6229,12 +6236,12 @@ var f$8 = class {
6229
6236
  //#endregion
6230
6237
  //#region ../sdk-shared/dist/helpers/twigWrapper/TemplateCache/TemplateCache.mjs
6231
6238
  var r$23 = /* @__PURE__ */ new Map();
6232
- var i$20 = 1024;
6233
- var a$18 = {
6239
+ var i$19 = 1024;
6240
+ var a$17 = {
6234
6241
  hits: 0,
6235
6242
  misses: 0
6236
6243
  };
6237
- var c$15 = (t) => {
6244
+ var c$16 = (t) => {
6238
6245
  let n = !1, r = !0;
6239
6246
  for (let i = 0; i < t.length; i++) {
6240
6247
  let a = t[i];
@@ -6242,7 +6249,7 @@ var c$15 = (t) => {
6242
6249
  n = !0;
6243
6250
  break;
6244
6251
  }
6245
- if (a.type === "variable" && !s$19(a.content.trim())) {
6252
+ if (a.type === "variable" && !s$18(a.content.trim())) {
6246
6253
  r = !1;
6247
6254
  break;
6248
6255
  }
@@ -6252,24 +6259,24 @@ var c$15 = (t) => {
6252
6259
  allSimpleOrDotted: r
6253
6260
  };
6254
6261
  };
6255
- var l$12 = () => {
6256
- if (r$23.size >= i$20) {
6262
+ var l$13 = () => {
6263
+ if (r$23.size >= i$19) {
6257
6264
  let e = r$23.keys().next().value;
6258
6265
  e !== void 0 && r$23.delete(e);
6259
6266
  }
6260
6267
  };
6261
- var u$11 = (e) => {
6268
+ var u$12 = (e) => {
6262
6269
  let r = e$32(e);
6263
6270
  if (r.error) return null;
6264
- let i = r.tokens, { hasTags: a, allSimpleOrDotted: o } = c$15(i), s = a || !o, l = null, u = null;
6271
+ let i = r.tokens, { hasTags: a, allSimpleOrDotted: o } = c$16(i), s = a || !o, l = null, u = null;
6265
6272
  if (s) {
6266
- let e = c$16(i, !1);
6273
+ let e = c$17(i, !1);
6267
6274
  if (e.error) return null;
6268
6275
  l = e.nodes;
6269
- let t = c$16(i, !0);
6276
+ let t = c$17(i, !0);
6270
6277
  t.error || (u = t.nodes);
6271
6278
  } else {
6272
- let e = c$16(i, !0);
6279
+ let e = c$17(i, !0);
6273
6280
  e.error || (u = e.nodes);
6274
6281
  }
6275
6282
  return {
@@ -6280,12 +6287,12 @@ var u$11 = (e) => {
6280
6287
  nodesWithSource: u
6281
6288
  };
6282
6289
  };
6283
- var d$12 = (e) => {
6290
+ var d$13 = (e) => {
6284
6291
  let t = r$23.get(e);
6285
- if (t) return a$18.hits++, t;
6286
- a$18.misses++;
6287
- let n = u$11(e);
6288
- return n ? (l$12(), r$23.set(e, n), n) : null;
6292
+ if (t) return a$17.hits++, t;
6293
+ a$17.misses++;
6294
+ let n = u$12(e);
6295
+ return n ? (l$13(), r$23.set(e, n), n) : null;
6289
6296
  };
6290
6297
  //#endregion
6291
6298
  //#region ../../node_modules/@plitzi/plitzi-ui/dist/helpers/lodash/shared.js
@@ -6296,7 +6303,7 @@ function e$30(e) {
6296
6303
  }
6297
6304
  return null;
6298
6305
  }
6299
- function t$28(t, n) {
6306
+ function t$29(t, n) {
6300
6307
  if (!t || t.startsWith(".") || t.endsWith(".") || /[^a-zA-Z0-9_.[\]-]/.test(t) || n && (/\.\.|(\[\])/g.test(t) || (t.match(/\[/g) || []).length !== (t.match(/\]/g) || []).length || /\][^.[]/.test(t))) return [];
6301
6308
  let r = [], i = /([^.[\]]+)|\[(\d+)\]/g, a;
6302
6309
  for (; a = i.exec(t);) if (a[1]) {
@@ -6322,11 +6329,11 @@ function n$24(t, n) {
6322
6329
  return r;
6323
6330
  }
6324
6331
  function r$22(e, r = !0) {
6325
- return e ? typeof e == "string" ? t$28(e, r) : Array.isArray(e) ? n$24(e, r) : [] : [];
6332
+ return e ? typeof e == "string" ? t$29(e, r) : Array.isArray(e) ? n$24(e, r) : [] : [];
6326
6333
  }
6327
6334
  //#endregion
6328
6335
  //#region ../../node_modules/@plitzi/plitzi-ui/dist/helpers/lodash/get.js
6329
- function t$27(t, n, r) {
6336
+ function t$28(t, n, r) {
6330
6337
  if (t == null || !n) return r;
6331
6338
  let i = r$22(n);
6332
6339
  if (!i.length) return r;
@@ -6342,7 +6349,7 @@ function t$27(t, n, r) {
6342
6349
  }
6343
6350
  //#endregion
6344
6351
  //#region ../../node_modules/@plitzi/plitzi-ui/dist/helpers/lodash/set.js
6345
- function t$26(t, n, r) {
6352
+ function t$27(t, n, r) {
6346
6353
  let i = r$22(n);
6347
6354
  if (!i.length) return t;
6348
6355
  let a = t;
@@ -6364,8 +6371,8 @@ function t$26(t, n, r) {
6364
6371
  function n$23(n, r) {
6365
6372
  let i = {}, a = Array.isArray(r) ? r : [r];
6366
6373
  for (let r of a) {
6367
- let a = t$27(n, r);
6368
- a !== void 0 && t$26(i, r, a);
6374
+ let a = t$28(n, r);
6375
+ a !== void 0 && t$27(i, r, a);
6369
6376
  }
6370
6377
  return i;
6371
6378
  }
@@ -6383,18 +6390,18 @@ var r$21 = /* @__PURE__ */ new Set([
6383
6390
  "min",
6384
6391
  "range"
6385
6392
  ]);
6386
- var i$19 = (e) => `value|round(0, '${e}')`;
6387
- var a$17 = {
6388
- floor: i$19("floor"),
6389
- ceil: i$19("ceil"),
6393
+ var i$18 = (e) => `value|round(0, '${e}')`;
6394
+ var a$16 = {
6395
+ floor: i$18("floor"),
6396
+ ceil: i$18("ceil"),
6390
6397
  clamp: "min(max(value, low), high)"
6391
6398
  };
6392
6399
  var o$18 = (t) => {
6393
- let n = Object.hasOwn(y$2, t) ? `value|${t}` : a$17[t];
6400
+ let n = Object.hasOwn(y$2, t) ? `value|${t}` : a$16[t];
6394
6401
  return `Unknown function "${t}()"${n ? ` — write \`${n}\`` : ""}: the functions are ${[...r$21].join(", ")}`;
6395
6402
  };
6396
- var s$17 = "loop";
6397
- var c$14 = class {
6403
+ var s$16 = "loop";
6404
+ var c$15 = class {
6398
6405
  issues = [];
6399
6406
  freeNames = /* @__PURE__ */ new Set();
6400
6407
  nodes(e, t) {
@@ -6416,7 +6423,7 @@ var c$14 = class {
6416
6423
  let e = /* @__PURE__ */ new Set([
6417
6424
  ...n,
6418
6425
  t.valueVar,
6419
- s$17,
6426
+ s$16,
6420
6427
  ...t.keyVar ? [t.keyVar] : []
6421
6428
  ]);
6422
6429
  this.nodes(t.body, e), n = /* @__PURE__ */ new Set([...n, ...this.setsIn(t.body)]), t.elseBody && this.nodes(t.elseBody, n);
@@ -6482,13 +6489,13 @@ var c$14 = class {
6482
6489
  }
6483
6490
  }
6484
6491
  };
6485
- var l$11 = (e) => {
6492
+ var l$12 = (e) => {
6486
6493
  let r = e$32(e);
6487
6494
  if (r.error) return {
6488
6495
  issues: [r.error],
6489
6496
  freeNames: []
6490
6497
  };
6491
- let i = new c$14(), { nodes: a, error: o } = c$16(r.tokens, !1, i.issues);
6498
+ let i = new c$15(), { nodes: a, error: o } = c$17(r.tokens, !1, i.issues);
6492
6499
  return o && i.issues.push(o), i.nodes(a, /* @__PURE__ */ new Set()), {
6493
6500
  issues: [...new Set(i.issues)],
6494
6501
  freeNames: [...i.freeNames]
@@ -6496,23 +6503,33 @@ var l$11 = (e) => {
6496
6503
  };
6497
6504
  //#endregion
6498
6505
  //#region ../sdk-shared/dist/helpers/twigWrapper/templateRoots.mjs
6499
- var t$25 = (e, n) => {
6500
- if (Array.isArray(e)) for (let r of e) t$25(r, n);
6506
+ var t$26 = (e, n) => {
6507
+ if (Array.isArray(e)) for (let r of e) t$26(r, n);
6501
6508
  else if (typeof e == "object" && e) {
6502
6509
  if ("type" in e && e.type === "path" && "segments" in e && Array.isArray(e.segments)) {
6503
6510
  let t = e.segments.filter((e) => typeof e == "string");
6504
6511
  t.length > 0 && n.add(t.join("."));
6505
- } else for (let r of Object.values(e)) t$25(r, n);
6512
+ } else for (let r of Object.values(e)) t$26(r, n);
6506
6513
  }
6507
6514
  };
6508
6515
  var n$22 = (n) => {
6509
- let r = d$12(n);
6516
+ let r = d$13(n);
6510
6517
  if (!r) return [];
6511
6518
  let i = /* @__PURE__ */ new Set();
6512
- return t$25(r.nodes ?? r.nodesWithSource, i), [...i];
6519
+ return t$26(r.nodes ?? r.nodesWithSource, i), [...i];
6513
6520
  };
6514
6521
  var r$20 = (e) => [...new Set(n$22(e).map((e) => e.split(".")[0]))];
6515
6522
  //#endregion
6523
+ //#region ../sdk-shared/dist/schema/pageAccess.mjs
6524
+ var t$25 = (e) => {
6525
+ let t = e?.access;
6526
+ if (typeof t != "object" || !t || !("permissions" in t)) return;
6527
+ let { permissions: n } = t;
6528
+ if (!Array.isArray(n)) return;
6529
+ let r = n.filter((e) => typeof e == "string" && e !== "");
6530
+ return r.length > 0 ? { permissions: r } : void 0;
6531
+ };
6532
+ //#endregion
6516
6533
  //#region ../sdk-shared/dist/schema/anchor.mjs
6517
6534
  var e$27 = /^[a-z][a-z0-9-]*$/;
6518
6535
  var t$24 = (t) => typeof t == "string" && e$27.test(t);
@@ -6815,11 +6832,11 @@ var n$18 = (t, n) => {
6815
6832
  };
6816
6833
  //#endregion
6817
6834
  //#region ../sdk-shared/dist/flags/resolveFlags.mjs
6818
- var a$16 = (e) => typeof e == "object" && !!e && "rules" in e && Array.isArray(e.rules) && e.rules.some((e) => typeof e == "object" && !!e && !("enabled" in e && e.enabled === !1));
6819
- var d$11 = (e, t) => !e || (t[e.name] ?? !1) === e.is;
6835
+ var a$15 = (e) => typeof e == "object" && !!e && "rules" in e && Array.isArray(e.rules) && e.rules.some((e) => typeof e == "object" && !!e && !("enabled" in e && e.enabled === !1));
6836
+ var d$12 = (e, t) => !e || (t[e.name] ?? !1) === e.is;
6820
6837
  //#endregion
6821
6838
  //#region ../sdk-shared/dist/schema/serverElements.mjs
6822
- var i$17 = (e, t, i, a) => {
6839
+ var i$16 = (e, t, i, a) => {
6823
6840
  if (t === void 0) return [];
6824
6841
  let o = i ? new Set(i) : void 0, s = [], c = /* @__PURE__ */ new Set(), l = e.flat[t], u = (e) => typeof e == "string" ? e : "", d = [t, ...l ? t$21((t) => e.flat[t], u(l.attributes.layout), u(l.attributes.layoutContainer)).map((e) => e.layout) : []];
6825
6842
  for (; d.length > 0;) {
@@ -6827,7 +6844,7 @@ var i$17 = (e, t, i, a) => {
6827
6844
  if (t === void 0 || c.has(t)) continue;
6828
6845
  c.add(t);
6829
6846
  let r = e.flat[t];
6830
- if (!r || a && !d$11(r.definition.flag, a)) continue;
6847
+ if (!r || a && !d$12(r.definition.flag, a)) continue;
6831
6848
  r.definition.runtime === "server" && (!o || o.has(r.id)) && s.push(r);
6832
6849
  let { items: i } = r.definition;
6833
6850
  i && d.push(...i);
@@ -6965,16 +6982,16 @@ Object.fromEntries(t$20.map((e) => {
6965
6982
  let [{ at: t, ...n }] = o$17[e];
6966
6983
  return [e, n];
6967
6984
  }));
6968
- var c$13 = (e, t) => {
6985
+ var c$14 = (e, t) => {
6969
6986
  let n = t * 2 * Math.PI, r = Math.round(Math.sin(n) * e * 10) / 10, i = Math.round(-Math.cos(n) * e * 10) / 10;
6970
6987
  return `translate(${String(r)}px, ${String(i)}px)`;
6971
6988
  };
6972
6989
  Array.from({ length: 9 }, (e, t) => ({
6973
6990
  at: t * 100 / 8,
6974
- transform: c$13(6, t / 8)
6991
+ transform: c$14(6, t / 8)
6975
6992
  }));
6976
- var d$10 = (e, t) => typeof t == "string" && e.includes(t);
6977
- var f$7 = /* @__PURE__ */ new Set([
6993
+ var d$11 = (e, t) => typeof t == "string" && e.includes(t);
6994
+ var f$8 = /* @__PURE__ */ new Set([
6978
6995
  "enter",
6979
6996
  "on",
6980
6997
  "duration",
@@ -6982,11 +6999,11 @@ var f$7 = /* @__PURE__ */ new Set([
6982
6999
  "stagger",
6983
7000
  "loop"
6984
7001
  ]);
6985
- var p$10 = (i) => {
7002
+ var p$9 = (i) => {
6986
7003
  if (!e$35(i)) return ["motion is an object: `{ enter: \"fade-up\", on: \"view\" }`"];
6987
7004
  let a = [];
6988
- for (let e of Object.keys(i)) f$7.has(e) || a.push(`motion has no "${e}" — it takes enter, on, duration, delay, stagger and loop`);
6989
- i.enter !== void 0 && !d$10(t$20, i.enter) && a.push(`motion.enter is one of ${t$20.join(", ")}`), i.on !== void 0 && !d$10(n$17, i.on) && a.push(`motion.on is ${n$17.slice(0, -1).join(", ")} or ${String(n$17.at(-1))}`), i.loop !== void 0 && !d$10(r$16, i.loop) && a.push(`motion.loop is one of ${r$16.join(", ")}`);
7005
+ for (let e of Object.keys(i)) f$8.has(e) || a.push(`motion has no "${e}" — it takes enter, on, duration, delay, stagger and loop`);
7006
+ i.enter !== void 0 && !d$11(t$20, i.enter) && a.push(`motion.enter is one of ${t$20.join(", ")}`), i.on !== void 0 && !d$11(n$17, i.on) && a.push(`motion.on is ${n$17.slice(0, -1).join(", ")} or ${String(n$17.at(-1))}`), i.loop !== void 0 && !d$11(r$16, i.loop) && a.push(`motion.loop is one of ${r$16.join(", ")}`);
6990
7007
  for (let e of [
6991
7008
  "duration",
6992
7009
  "delay",
@@ -7007,7 +7024,7 @@ var p$10 = (i) => {
7007
7024
  var t$19 = /^ {0,3}(`{3,}|~{3,})/;
7008
7025
  var n$16 = /^ {0,3}(#{1,6})[ \t]+(.*?)(?:[ \t]+#+)?[ \t]*$/;
7009
7026
  var r$15 = (e) => e.replace(/!\[[^\]]*\]\([^)]*\)/g, "").replace(/<[^>]+>/g, "").replace(/\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/`+([^`]*?)`+/g, "$1").replace(/(\*\*|~~)(.+?)\1/g, "$2").replace(/\*(.+?)\*/g, "$1").replace(/\b__(.+?)__\b/g, "$1").replace(/\b_(.+?)_\b/g, "$1").replace(/\\([\\`*_{}[\]()#+\-.!|~>])/g, "$1").trim();
7010
- var i$16 = (i) => {
7027
+ var i$15 = (i) => {
7011
7028
  let a = /* @__PURE__ */ new Set(), o = [], s;
7012
7029
  for (let c of i.split("\n")) {
7013
7030
  let i = t$19.exec(c)?.[1];
@@ -7685,38 +7702,38 @@ var video = defineElement(q.Video);
7685
7702
  var e$24 = /^[A-Za-z](?:[A-Za-z0-9_-]*[A-Za-z0-9_])?$/;
7686
7703
  var t$18 = (t) => e$24.test(t);
7687
7704
  var r$14 = (e) => new Set(Object.keys(e));
7688
- var i$15 = (e, n, r) => t$18(n) ? e[n] && n !== r ? `"${n}" is already used by another element here` : null : `"${n}" is not a valid name: start with a letter, then letters, numbers, hyphens and underscores`;
7689
- var a$15 = (e, t) => {
7705
+ var i$14 = (e, n, r) => t$18(n) ? e[n] && n !== r ? `"${n}" is already used by another element here` : null : `"${n}" is not a valid name: start with a letter, then letters, numbers, hyphens and underscores`;
7706
+ var a$14 = (e, t) => {
7690
7707
  let n = /* @__PURE__ */ new Set();
7691
7708
  for (let r of t) {
7692
- if (n.has(r.id) || i$15(e, r.id)) return !1;
7709
+ if (n.has(r.id) || i$14(e, r.id)) return !1;
7693
7710
  n.add(r.id);
7694
7711
  }
7695
7712
  return !0;
7696
7713
  };
7697
7714
  var o$16 = (e) => e.replace(/[^A-Za-z0-9]/g, "") || "element";
7698
- var s$15 = "abcdefghijklmnopqrstuvwxyz0123456789";
7699
- var c$12 = (e, t) => {
7715
+ var s$14 = "abcdefghijklmnopqrstuvwxyz0123456789";
7716
+ var c$13 = (e, t) => {
7700
7717
  let n = o$16(e);
7701
7718
  for (let e = 0; e < 100; e += 1) {
7702
7719
  let e = "";
7703
- for (let t = 0; t < 4; t += 1) e += s$15[Math.floor(Math.random() * s$15.length)];
7720
+ for (let t = 0; t < 4; t += 1) e += s$14[Math.floor(Math.random() * s$14.length)];
7704
7721
  if (!t(`${n}-${e}`)) return `${n}-${e}`;
7705
7722
  }
7706
- return l$9(e, t);
7723
+ return l$10(e, t);
7707
7724
  };
7708
- var l$9 = (e, t) => {
7725
+ var l$10 = (e, t) => {
7709
7726
  let n = o$16(e), r = 1;
7710
7727
  for (; t(`${n}-${r}`);) r += 1;
7711
7728
  return `${n}-${r}`;
7712
7729
  };
7713
- var u$9 = (e, t) => {
7730
+ var u$10 = (e, t) => {
7714
7731
  if (!t(e)) return e;
7715
7732
  let n = /^(.*[A-Za-z0-9])-(\d+)$/.exec(e), r = n ? n[1] : e, i = n ? Number(n[2]) + 1 : 2;
7716
7733
  for (; t(`${r}-${i}`);) i += 1;
7717
7734
  return `${r}-${i}`;
7718
7735
  };
7719
- var d$9 = {
7736
+ var d$10 = {
7720
7737
  page: [{ attribute: "layout" }, { attribute: "layoutContainer" }],
7721
7738
  reference: [{
7722
7739
  attribute: "referenceId",
@@ -7727,18 +7744,18 @@ var d$9 = {
7727
7744
  when: (e) => e.mode === "page"
7728
7745
  }]
7729
7746
  };
7730
- var f$6 = { navigate: [{
7747
+ var f$7 = { navigate: [{
7731
7748
  param: "url",
7732
7749
  when: (e) => e.urlType === "page"
7733
7750
  }] };
7734
- var p$9 = (e, t) => {
7751
+ var p$8 = (e, t) => {
7735
7752
  let n = e.indexOf("."), r = n === -1 ? e : e.slice(0, n), i = r.indexOf("_");
7736
7753
  if (i === -1) return e;
7737
7754
  let a = t[r.slice(i + 1)];
7738
7755
  return a ? `${r.slice(0, i + 1)}${a}${n === -1 ? "" : e.slice(n)}` : e;
7739
7756
  };
7740
7757
  var m$6 = /([A-Za-z][A-Za-z0-9]*)_([A-Za-z][A-Za-z0-9_-]*)/g;
7741
- var h$3 = (e, t) => e.replace(m$6, (e, n, r) => {
7758
+ var h$4 = (e, t) => e.replace(m$6, (e, n, r) => {
7742
7759
  let i = t[r];
7743
7760
  return i ? `${n}_${i}` : e;
7744
7761
  });
@@ -7746,14 +7763,14 @@ var g$2 = (e, t) => {
7746
7763
  let n = !1;
7747
7764
  if (Array.isArray(e)) return e.forEach((r, i) => {
7748
7765
  if (typeof r == "string") {
7749
- let a = h$3(r, t);
7766
+ let a = h$4(r, t);
7750
7767
  a !== r && (e[i] = a, n = !0);
7751
7768
  } else n = g$2(r, t) || n;
7752
7769
  }), n;
7753
7770
  if (!e || typeof e != "object") return !1;
7754
7771
  let r = e;
7755
7772
  for (let [e, i] of Object.entries(r)) if (typeof i == "string") {
7756
- let a = h$3(i, t);
7773
+ let a = h$4(i, t);
7757
7774
  a !== i && (r[e] = a, n = !0);
7758
7775
  } else n = g$2(i, t) || n;
7759
7776
  return n;
@@ -7767,19 +7784,19 @@ var _$2 = (e, t, n) => {
7767
7784
  t[n.id] && (n.id = t[n.id], e = !0);
7768
7785
  let { definition: r, attributes: o } = n;
7769
7786
  t[r.rootId] && (r.rootId = t[r.rootId], e = !0), r.parentId && t[r.parentId] && (r.parentId = t[r.parentId], e = !0), r.items?.some((e) => t[e]) && (r.items = r.items.map(i), e = !0);
7770
- for (let { attribute: n, when: i } of d$9[r.type] ?? []) {
7787
+ for (let { attribute: n, when: i } of d$10[r.type] ?? []) {
7771
7788
  let r = o[n];
7772
7789
  typeof r == "string" && t[r] && (!i || i(o)) && (o[n] = t[r], e = !0);
7773
7790
  }
7774
7791
  let { slot: s } = o;
7775
7792
  typeof s == "string" && t[s] && (o.slot = t[s], e = !0);
7776
7793
  for (let n of Object.values(r.bindings ?? {})) for (let r of n) {
7777
- let n = p$9(r.source, t);
7794
+ let n = p$8(r.source, t);
7778
7795
  n !== r.source && (r.source = n, e = !0), r.transformers && g$2(r.transformers, t) && (e = !0), r.when && g$2(r.when, t) && (e = !0);
7779
7796
  }
7780
7797
  for (let n of Object.values(r.interactions ?? {})) {
7781
7798
  n.elementId && t[n.elementId] && (n.elementId = t[n.elementId], e = !0);
7782
- for (let { param: r, when: i } of f$6[n.action] ?? []) {
7799
+ for (let { param: r, when: i } of f$7[n.action] ?? []) {
7783
7800
  let a = n.params[r];
7784
7801
  typeof a == "string" && t[a] && (!i || i(n.params)) && (n.params[r] = t[a], e = !0);
7785
7802
  }
@@ -7852,12 +7869,12 @@ var t$15 = {
7852
7869
  };
7853
7870
  var n$14 = (e) => Object.hasOwn(t$15, e);
7854
7871
  var r$12 = (e) => `::${e}`;
7855
- var i$14 = [
7872
+ var i$13 = [
7856
7873
  "before",
7857
7874
  "after",
7858
7875
  "marker"
7859
7876
  ];
7860
- var a$14 = ["before", "after"];
7877
+ var a$13 = ["before", "after"];
7861
7878
  var o$15 = [
7862
7879
  "color",
7863
7880
  "opacity",
@@ -7873,7 +7890,7 @@ var o$15 = [
7873
7890
  "line-height",
7874
7891
  "vertical-align"
7875
7892
  ];
7876
- var s$14 = [
7893
+ var s$13 = [
7877
7894
  "font-family",
7878
7895
  "font-size",
7879
7896
  "font-style",
@@ -7881,14 +7898,14 @@ var s$14 = [
7881
7898
  "font-variant-numeric",
7882
7899
  "font-feature-settings"
7883
7900
  ];
7884
- var c$11 = [
7901
+ var c$12 = [
7885
7902
  "background-color",
7886
7903
  "background-image",
7887
7904
  "background-position",
7888
7905
  "background-size",
7889
7906
  "background-repeat"
7890
7907
  ];
7891
- var l$8 = {
7908
+ var l$9 = {
7892
7909
  selection: [
7893
7910
  "color",
7894
7911
  "background-color",
@@ -7900,24 +7917,24 @@ var l$8 = {
7900
7917
  "color",
7901
7918
  "content",
7902
7919
  "direction",
7903
- ...s$14
7920
+ ...s$13
7904
7921
  ],
7905
7922
  placeholder: [
7906
7923
  ...o$15,
7907
- ...s$14,
7908
- ...c$11
7924
+ ...s$13,
7925
+ ...c$12
7909
7926
  ],
7910
7927
  "first-line": [
7911
7928
  ...o$15,
7912
- ...s$14,
7913
- ...c$11
7929
+ ...s$13,
7930
+ ...c$12
7914
7931
  ]
7915
7932
  };
7916
- var u$8 = (e, t) => {
7917
- let n = l$8[e];
7933
+ var u$9 = (e, t) => {
7934
+ let n = l$9[e];
7918
7935
  return !n || t.startsWith("--") || n.includes(t);
7919
7936
  };
7920
- var d$8 = /* @__PURE__ */ new Set([
7937
+ var d$9 = /* @__PURE__ */ new Set([
7921
7938
  "none",
7922
7939
  "normal",
7923
7940
  "open-quote",
@@ -7929,8 +7946,8 @@ var d$8 = /* @__PURE__ */ new Set([
7929
7946
  "unset",
7930
7947
  "revert"
7931
7948
  ]);
7932
- var f$5 = /^(?:counter|counters|attr|url|var|image-set|linear-gradient|radial-gradient|conic-gradient)\(/i;
7933
- var p$8 = (e) => {
7949
+ var f$6 = /^(?:counter|counters|attr|url|var|image-set|linear-gradient|radial-gradient|conic-gradient)\(/i;
7950
+ var p$7 = (e) => {
7934
7951
  let t = [], n = "", r = "", i = 0;
7935
7952
  for (let a of e) if (r) n += a, r = a === r && !n.endsWith(`\\${a}`) ? "" : r;
7936
7953
  else {
@@ -7946,8 +7963,8 @@ var p$8 = (e) => {
7946
7963
  return n && t.push(n), r || i !== 0 ? void 0 : t;
7947
7964
  };
7948
7965
  var m$5 = (e) => {
7949
- let t = p$8(e.trim());
7950
- return t?.length ? t.every((e) => /^(["']).*\1$/s.test(e) || d$8.has(e.toLowerCase()) || f$5.test(e) && e.endsWith(")")) : !1;
7966
+ let t = p$7(e.trim());
7967
+ return t?.length ? t.every((e) => /^(["']).*\1$/s.test(e) || d$9.has(e.toLowerCase()) || f$6.test(e) && e.endsWith(")")) : !1;
7951
7968
  };
7952
7969
  //#endregion
7953
7970
  //#region ../sdk-shared/dist/style/styleStates.mjs
@@ -7986,10 +8003,10 @@ var r$11 = {
7986
8003
  disabled: 13,
7987
8004
  hidden: 14
7988
8005
  };
7989
- var i$13 = (e) => Object.hasOwn(r$11, e);
7990
- var a$13 = (t) => i$13(t) ? r$11[t] : e$20.length;
7991
- var o$14 = (e) => Object.entries(e).sort(([e], [t]) => a$13(e) - a$13(t));
7992
- var l$7 = {
8006
+ var i$12 = (e) => Object.hasOwn(r$11, e);
8007
+ var a$12 = (t) => i$12(t) ? r$11[t] : e$20.length;
8008
+ var o$14 = (e) => Object.entries(e).sort(([e], [t]) => a$12(e) - a$12(t));
8009
+ var l$8 = {
7993
8010
  current: ":is([aria-current]:not([aria-current=\"false\"]),[aria-pressed=\"true\"],[aria-selected=\"true\"],[role=\"tabpanel\"]:not([hidden]))",
7994
8011
  expanded: "[aria-expanded=\"true\"]",
7995
8012
  hidden: `.${t$14}`,
@@ -7998,9 +8015,9 @@ var l$7 = {
7998
8015
  odd: ":nth-child(odd)",
7999
8016
  even: ":nth-child(even)"
8000
8017
  };
8001
- var u$7 = (e) => (i$13(e) ? l$7[e] : void 0) ?? `:${e}`;
8002
- var d$7 = (e) => e === "hidden";
8003
- var p$7 = (e) => e === ">";
8018
+ var u$8 = (e) => (i$12(e) ? l$8[e] : void 0) ?? `:${e}`;
8019
+ var d$8 = (e) => e === "hidden";
8020
+ var p$6 = (e) => e === ">";
8004
8021
  //#endregion
8005
8022
  //#region ../sdk-shared/dist/style/breakpoints.mjs
8006
8023
  var e$19 = {
@@ -8011,7 +8028,7 @@ var e$19 = {
8011
8028
  var t$13 = (t) => e$19[t] === 0 ? "0" : `${String(e$19[t] / 16)}rem`;
8012
8029
  //#endregion
8013
8030
  //#region ../sdk-shared/dist/style/fonts.mjs
8014
- var i$12 = (e) => {
8031
+ var i$11 = (e) => {
8015
8032
  try {
8016
8033
  let t = new URL(e);
8017
8034
  return t.protocol === "https:" && !t.username && !t.password;
@@ -8034,8 +8051,8 @@ var r$10 = /* @__PURE__ */ new Set([
8034
8051
  "fallback",
8035
8052
  "optional"
8036
8053
  ]);
8037
- var i$11 = /* @__PURE__ */ new Set(["woff2", "woff"]);
8038
- var a$12 = 100;
8054
+ var i$10 = /* @__PURE__ */ new Set(["woff2", "woff"]);
8055
+ var a$11 = 100;
8039
8056
  var o$13 = (e) => {
8040
8057
  for (let t = 0; t < e.length; t += 1) {
8041
8058
  let n = e.charCodeAt(t);
@@ -8043,58 +8060,58 @@ var o$13 = (e) => {
8043
8060
  }
8044
8061
  return !1;
8045
8062
  };
8046
- var s$12 = class extends Error {};
8047
- var c$9 = (e) => {
8048
- throw new s$12(e);
8063
+ var s$11 = class extends Error {};
8064
+ var c$10 = (e) => {
8065
+ throw new s$11(e);
8049
8066
  };
8050
- var l$6 = (e) => {
8051
- if (typeof e != "string") return c$9("font.family must be a string");
8067
+ var l$7 = (e) => {
8068
+ if (typeof e != "string") return c$10("font.family must be a string");
8052
8069
  let t = e.trim();
8053
- return t ? t.length > a$12 ? c$9(`font.family cannot be longer than ${a$12} characters`) : o$13(t) ? c$9("font.family cannot contain control characters") : t : c$9("font.family cannot be empty");
8070
+ return t ? t.length > a$11 ? c$10(`font.family cannot be longer than ${a$11} characters`) : o$13(t) ? c$10("font.family cannot contain control characters") : t : c$10("font.family cannot be empty");
8054
8071
  };
8055
- var u$6 = (e) => {
8072
+ var u$7 = (e) => {
8056
8073
  if (e === void 0) return [400];
8057
- if (!Array.isArray(e) || e.length === 0) return c$9("font.weights must be a non-empty list of numbers");
8058
- let t = e.map((e) => typeof e != "number" || !Number.isInteger(e) || e < 1 || e > 1e3 ? c$9("font.weights must hold whole numbers between 1 and 1000") : e);
8074
+ if (!Array.isArray(e) || e.length === 0) return c$10("font.weights must be a non-empty list of numbers");
8075
+ let t = e.map((e) => typeof e != "number" || !Number.isInteger(e) || e < 1 || e > 1e3 ? c$10("font.weights must hold whole numbers between 1 and 1000") : e);
8059
8076
  return [...new Set(t)].sort((e, t) => e - t);
8060
8077
  };
8061
- var d$6 = (e) => {
8078
+ var d$7 = (e) => {
8062
8079
  if (e === void 0) return ["normal"];
8063
- if (!Array.isArray(e) || e.length === 0) return c$9("font.styles must be a non-empty list");
8064
- let t = e.map((e) => e !== "normal" && e !== "italic" ? c$9("font.styles may only hold \"normal\" or \"italic\"") : e);
8080
+ if (!Array.isArray(e) || e.length === 0) return c$10("font.styles must be a non-empty list");
8081
+ let t = e.map((e) => e !== "normal" && e !== "italic" ? c$10("font.styles may only hold \"normal\" or \"italic\"") : e);
8065
8082
  return [...new Set(t)];
8066
8083
  };
8067
- var f$4 = (t, n) => {
8068
- if (!e$35(t)) return c$9(`font.files[${n}] must be an object`);
8084
+ var f$5 = (t, n) => {
8085
+ if (!e$35(t)) return c$10(`font.files[${n}] must be an object`);
8069
8086
  let { weight: r, style: a, format: o, unicodeRange: s } = t;
8070
- if (typeof r != "number" || !Number.isInteger(r) || r < 1 || r > 1e3) return c$9(`font.files[${n}].weight must be a whole number between 1 and 1000`);
8071
- if (a !== "normal" && a !== "italic") return c$9(`font.files[${n}].style must be "normal" or "italic"`);
8072
- if (typeof o != "string" || !i$11.has(o)) return c$9(`font.files[${n}].format must be "woff2" or "woff"`);
8087
+ if (typeof r != "number" || !Number.isInteger(r) || r < 1 || r > 1e3) return c$10(`font.files[${n}].weight must be a whole number between 1 and 1000`);
8088
+ if (a !== "normal" && a !== "italic") return c$10(`font.files[${n}].style must be "normal" or "italic"`);
8089
+ if (typeof o != "string" || !i$10.has(o)) return c$10(`font.files[${n}].format must be "woff2" or "woff"`);
8073
8090
  let l = {
8074
8091
  weight: r,
8075
8092
  style: a,
8076
8093
  format: o
8077
8094
  };
8078
8095
  if (s !== void 0) {
8079
- if (typeof s != "string") return c$9(`font.files[${n}].unicodeRange must be a string`);
8096
+ if (typeof s != "string") return c$10(`font.files[${n}].unicodeRange must be a string`);
8080
8097
  l.unicodeRange = s;
8081
8098
  }
8082
8099
  return l;
8083
8100
  };
8084
- var p$6 = (e, t) => typeof e != "string" || !e ? c$9(`font.files[${t}].path must be a non-empty string`) : e.includes("://") || e.startsWith("/") ? c$9(`font.files[${t}].path must be relative to the font store, not a URL`) : e.split("/").includes("..") ? c$9(`font.files[${t}].path cannot climb out of the font store`) : e;
8085
- var m$4 = (e) => !Array.isArray(e) || e.length === 0 ? c$9("font.files must be a non-empty list") : e;
8086
- var h$2 = (i) => {
8087
- if (!e$35(i)) return c$9("a font must be an object");
8101
+ var p$5 = (e, t) => typeof e != "string" || !e ? c$10(`font.files[${t}].path must be a non-empty string`) : e.includes("://") || e.startsWith("/") ? c$10(`font.files[${t}].path must be relative to the font store, not a URL`) : e.split("/").includes("..") ? c$10(`font.files[${t}].path cannot climb out of the font store`) : e;
8102
+ var m$4 = (e) => !Array.isArray(e) || e.length === 0 ? c$10("font.files must be a non-empty list") : e;
8103
+ var h$3 = (i) => {
8104
+ if (!e$35(i)) return c$10("a font must be an object");
8088
8105
  let { source: a, fallback: o, display: s, preload: h } = i;
8089
- if (typeof a != "string" || !n$13.has(a)) return c$9("font.source must be one of: system, google, remote, hosted");
8090
- if (typeof o != "string" || !o.trim()) return c$9("font.fallback is required: it is what renders until the face arrives");
8091
- if (s !== void 0 && (typeof s != "string" || !r$10.has(s))) return c$9("font.display must be one of: auto, block, swap, fallback, optional");
8092
- if (h !== void 0 && typeof h != "boolean") return c$9("font.preload must be a boolean");
8106
+ if (typeof a != "string" || !n$13.has(a)) return c$10("font.source must be one of: system, google, remote, hosted");
8107
+ if (typeof o != "string" || !o.trim()) return c$10("font.fallback is required: it is what renders until the face arrives");
8108
+ if (s !== void 0 && (typeof s != "string" || !r$10.has(s))) return c$10("font.display must be one of: auto, block, swap, fallback, optional");
8109
+ if (h !== void 0 && typeof h != "boolean") return c$10("font.preload must be a boolean");
8093
8110
  let g = {
8094
- family: l$6(i.family),
8111
+ family: l$7(i.family),
8095
8112
  fallback: o.trim(),
8096
- weights: u$6(i.weights),
8097
- styles: d$6(i.styles),
8113
+ weights: u$7(i.weights),
8114
+ styles: d$7(i.styles),
8098
8115
  ...s === void 0 ? {} : { display: s },
8099
8116
  ...h === void 0 ? {} : { preload: h }
8100
8117
  };
@@ -8104,7 +8121,7 @@ var h$2 = (i) => {
8104
8121
  };
8105
8122
  if (a === "google") {
8106
8123
  let { subsets: e } = i;
8107
- return e !== void 0 && (!Array.isArray(e) || e.some((e) => typeof e != "string")) ? c$9("font.subsets must be a list of strings") : {
8124
+ return e !== void 0 && (!Array.isArray(e) || e.some((e) => typeof e != "string")) ? c$10("font.subsets must be a list of strings") : {
8108
8125
  ...g,
8109
8126
  source: "google",
8110
8127
  ...e === void 0 ? {} : { subsets: e }
@@ -8112,17 +8129,17 @@ var h$2 = (i) => {
8112
8129
  }
8113
8130
  if (a === "remote") {
8114
8131
  let { stylesheet: e, files: n } = i;
8115
- return e === void 0 && n === void 0 ? c$9("a remote font needs either a stylesheet URL or the font files themselves") : e === void 0 ? {
8132
+ return e === void 0 && n === void 0 ? c$10("a remote font needs either a stylesheet URL or the font files themselves") : e === void 0 ? {
8116
8133
  ...g,
8117
8134
  source: "remote",
8118
8135
  files: m$4(n).map((e, n) => {
8119
- let r = f$4(e, n), { url: i } = e;
8120
- return typeof i != "string" || !i$12(i) ? c$9(`font.files[${n}].url must be an https URL with no credentials in it`) : {
8136
+ let r = f$5(e, n), { url: i } = e;
8137
+ return typeof i != "string" || !i$11(i) ? c$10(`font.files[${n}].url must be an https URL with no credentials in it`) : {
8121
8138
  ...r,
8122
8139
  url: i
8123
8140
  };
8124
8141
  })
8125
- } : typeof e != "string" || !i$12(e) ? c$9("font.stylesheet must be an https URL with no credentials in it") : {
8142
+ } : typeof e != "string" || !i$11(e) ? c$10("font.stylesheet must be an https URL with no credentials in it") : {
8126
8143
  ...g,
8127
8144
  source: "remote",
8128
8145
  stylesheet: e
@@ -8132,8 +8149,8 @@ var h$2 = (i) => {
8132
8149
  ...g,
8133
8150
  source: "hosted",
8134
8151
  files: m$4(i.files).map((e, t) => ({
8135
- ...f$4(e, t),
8136
- path: p$6(e.path, t)
8152
+ ...f$5(e, t),
8153
+ path: p$5(e.path, t)
8137
8154
  }))
8138
8155
  };
8139
8156
  };
@@ -8152,31 +8169,31 @@ var e$17 = {
8152
8169
  };
8153
8170
  var t$11 = Object.keys(e$17);
8154
8171
  var r$9 = (t) => Object.hasOwn(e$17, t);
8155
- var i$10 = String.raw`\d+(?:\.\d+)?(?:px|rem|em|ch)`;
8156
- var a$11 = String.raw`\((?:min|max)-width:\s*${i$10}\)`;
8157
- var o$12 = new RegExp(String.raw`^container(?:\s+(?<name>-?[_a-zA-Z][\w-]*))?\s+(?<query>${a$11}(?:\s+and\s+${a$11})?)$`);
8158
- var s$11 = (e) => {
8172
+ var i$9 = String.raw`\d+(?:\.\d+)?(?:px|rem|em|ch)`;
8173
+ var a$10 = String.raw`\((?:min|max)-width:\s*${i$9}\)`;
8174
+ var o$12 = new RegExp(String.raw`^container(?:\s+(?<name>-?[_a-zA-Z][\w-]*))?\s+(?<query>${a$10}(?:\s+and\s+${a$10})?)$`);
8175
+ var s$10 = (e) => {
8159
8176
  let t = o$12.exec(e.trim());
8160
8177
  if (t?.groups) return {
8161
8178
  name: t.groups.name,
8162
8179
  query: t.groups.query.replace(/\s+/g, " ").replace(/\(\s*/g, "(").replace(/:\s*/g, ": ")
8163
8180
  };
8164
8181
  };
8165
- var c$8 = (e) => {
8182
+ var c$9 = (e) => {
8166
8183
  if (r$9(e)) return e;
8167
- let t = s$11(e);
8184
+ let t = s$10(e);
8168
8185
  if (t) return t.name ? `container ${t.name} ${t.query}` : `container ${t.query}`;
8169
8186
  };
8170
- var u$5 = (t) => {
8187
+ var u$6 = (t) => {
8171
8188
  if (r$9(t)) return e$17[t];
8172
- let n = s$11(t);
8189
+ let n = s$10(t);
8173
8190
  if (n) return n.name ? `@container ${n.name} ${n.query}` : `@container ${n.query}`;
8174
8191
  };
8175
- var f$3 = (t) => {
8192
+ var f$4 = (t) => {
8176
8193
  let n = t.trim().replace(/\s+/g, " ").replace(/\(\s*/g, "(").replace(/\s*\)/g, ")").replace(/:\s*/g, ": ");
8177
8194
  for (let [t, r] of Object.entries(e$17)) if (n === r) return t;
8178
8195
  let r = /^@container\s+(.*)$/.exec(n);
8179
- if (r) return c$8(`container ${r[1]}`);
8196
+ if (r) return c$9(`container ${r[1]}`);
8180
8197
  };
8181
8198
  //#endregion
8182
8199
  //#region ../sdk-shared/dist/style/notifications.mjs
@@ -8229,8 +8246,8 @@ var t$10 = [
8229
8246
  ];
8230
8247
  var n$11 = t$10.flatMap((e) => Object.keys(e.fields));
8231
8248
  var r$8 = (e) => n$11.includes(e);
8232
- var i$9 = n$11.filter(r$8);
8233
- var a$10 = (e, t) => {
8249
+ var i$8 = n$11.filter(r$8);
8250
+ var a$9 = (e, t) => {
8234
8251
  for (let [i, a] of Object.entries(e ?? {})) {
8235
8252
  if (!r$8(i)) return `\`notifications\` has no "${i}"${t?.(i, n$11) || "."} It takes ${n$11.join(", ")}.`;
8236
8253
  if (a !== void 0 && (typeof a != "string" || a.trim() === "" || /[;{}]/.test(a))) return `\`notifications.${i}\` is ${JSON.stringify(a)}, which is not one CSS value. Write one value, like 'var(--card)', '12px' or '500'.`;
@@ -8245,9 +8262,9 @@ var o$11 = (e) => {
8245
8262
  }
8246
8263
  return t$10.flatMap((e, t) => n[t].length > 0 ? [`${e.selector} {\n${n[t].join("\n")}\n}`] : []).join("\n");
8247
8264
  };
8248
- var s$10 = (e, t) => [e, o$11(t)].filter(Boolean).join("\n\n");
8249
- var c$7 = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
8250
- var l$5 = (e, t) => {
8265
+ var s$9 = (e, t) => [e, o$11(t)].filter(Boolean).join("\n\n");
8266
+ var c$8 = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
8267
+ var l$6 = (e, t) => {
8251
8268
  let n = [];
8252
8269
  for (let r of e.split(";").map((e) => e.trim()).filter(Boolean)) {
8253
8270
  let e = r.indexOf(":"), i = e > 0 ? t(r.slice(0, e).trim()) : void 0;
@@ -8256,18 +8273,18 @@ var l$5 = (e, t) => {
8256
8273
  }
8257
8274
  return n;
8258
8275
  };
8259
- var u$4 = t$10.map((e) => {
8276
+ var u$5 = t$10.map((e) => {
8260
8277
  let t = new Map(Object.entries(e.fields).flatMap(([e, t]) => r$8(e) ? t.map((t) => [t, e]) : []));
8261
8278
  return {
8262
- pattern: RegExp(`(?:^|\\n)${c$7(e.selector)}\\s*\\{([^}]*)\\}`, "g"),
8279
+ pattern: RegExp(`(?:^|\\n)${c$8(e.selector)}\\s*\\{([^}]*)\\}`, "g"),
8263
8280
  fieldOf: (e) => t.get(e)
8264
8281
  };
8265
8282
  });
8266
- var d$5 = (e) => {
8283
+ var d$6 = (e) => {
8267
8284
  let t = {};
8268
- for (let { pattern: n, fieldOf: r } of u$4) {
8285
+ for (let { pattern: n, fieldOf: r } of u$5) {
8269
8286
  let i = [...e.matchAll(n)].at(-1);
8270
- for (let [e, n] of (i ? l$5(i[1], r) : void 0) ?? []) t[e] = n;
8287
+ for (let [e, n] of (i ? l$6(i[1], r) : void 0) ?? []) t[e] = n;
8271
8288
  }
8272
8289
  let n = Object.keys(t).length > 0 ? o$11(t) : "";
8273
8290
  if (!n || !e.endsWith(n)) return {
@@ -8296,7 +8313,7 @@ var r$7 = (e) => e.split(",").every((e) => {
8296
8313
  let t = e.trim();
8297
8314
  return n$10.test(t) && (!t.endsWith("%") || Number.parseFloat(t) <= 100);
8298
8315
  });
8299
- var i$8 = (e, t) => {
8316
+ var i$7 = (e, t) => {
8300
8317
  let n = Object.entries(t).map(([e, t]) => {
8301
8318
  let n = Object.entries(t).map(([e, t]) => ` ${e}: ${String(t)};`);
8302
8319
  return [
@@ -8311,18 +8328,18 @@ var i$8 = (e, t) => {
8311
8328
  "}"
8312
8329
  ].join("\n");
8313
8330
  };
8314
- var a$9 = (e) => Object.entries(e ?? {}).map(([e, t]) => i$8(e, t)).join("\n\n");
8315
- var o$10 = (e, t) => [a$9(t), e].filter(Boolean).join("\n\n");
8316
- var s$9 = /^@keyframes (-?[_a-zA-Z][\w-]*) \{\n((?: {2}[^\n{}]+ \{\n(?: {4}[^\n]+;\n)* {2}\}\n)*)\}/;
8317
- var c$6 = / {2}([^\n{}]+) \{\n((?: {4}[^\n]+;\n)*) {2}\}\n/g;
8318
- var l$4 = / {4}([\w-]+): ([^\n]+);\n/g;
8319
- var u$3 = (e) => {
8331
+ var a$8 = (e) => Object.entries(e ?? {}).map(([e, t]) => i$7(e, t)).join("\n\n");
8332
+ var o$10 = (e, t) => [a$8(t), e].filter(Boolean).join("\n\n");
8333
+ var s$8 = /^@keyframes (-?[_a-zA-Z][\w-]*) \{\n((?: {2}[^\n{}]+ \{\n(?: {4}[^\n]+;\n)* {2}\}\n)*)\}/;
8334
+ var c$7 = / {2}([^\n{}]+) \{\n((?: {4}[^\n]+;\n)*) {2}\}\n/g;
8335
+ var l$5 = / {4}([\w-]+): ([^\n]+);\n/g;
8336
+ var u$4 = (e) => {
8320
8337
  let t = {}, n = e;
8321
- for (let e = s$9.exec(n); e; e = s$9.exec(n)) {
8338
+ for (let e = s$8.exec(n); e; e = s$8.exec(n)) {
8322
8339
  let [r, a, o] = e, s = {};
8323
- for (let [, e, t] of o.matchAll(c$6)) s[e] = Object.fromEntries(Array.from(t.matchAll(l$4), ([, e, t]) => [e, t]));
8340
+ for (let [, e, t] of o.matchAll(c$7)) s[e] = Object.fromEntries(Array.from(t.matchAll(l$5), ([, e, t]) => [e, t]));
8324
8341
  let u = n.length === r.length || n.startsWith("\n\n", r.length);
8325
- if (Object.hasOwn(t, a) || i$8(a, s) !== r || !u) break;
8342
+ if (Object.hasOwn(t, a) || i$7(a, s) !== r || !u) break;
8326
8343
  t[a] = s, n = n.slice(r.length).replace(/^\n\n/, "");
8327
8344
  }
8328
8345
  return {
@@ -8330,9 +8347,9 @@ var u$3 = (e) => {
8330
8347
  customCss: n
8331
8348
  };
8332
8349
  };
8333
- var d$4 = /@(?:-webkit-)?keyframes\s+(["']?)(-?[_a-zA-Z][\w-]*)\1\s*\{/g;
8334
- var f$2 = (e) => Array.from(e.matchAll(d$4), (e) => e[2]);
8335
- var p$5 = (e) => e.split(",").map((e) => e.trim().replace(/^(["'])(.*)\1$/, "$2")).filter((e) => e && e !== "none" && !e.includes("(") && t$9(e));
8350
+ var d$5 = /@(?:-webkit-)?keyframes\s+(["']?)(-?[_a-zA-Z][\w-]*)\1\s*\{/g;
8351
+ var f$3 = (e) => Array.from(e.matchAll(d$5), (e) => e[2]);
8352
+ var p$4 = (e) => e.split(",").map((e) => e.trim().replace(/^(["'])(.*)\1$/, "$2")).filter((e) => e && e !== "none" && !e.includes("(") && t$9(e));
8336
8353
  //#endregion
8337
8354
  //#region ../sdk-style/dist/helpers/processSelectorAttributes.mjs
8338
8355
  var e$14 = (e, t, { keepEmpty: n = !1, closeEndsPart: r = !1 } = {}) => {
@@ -8362,12 +8379,12 @@ var r$6 = (e) => {
8362
8379
  if (!e) return [];
8363
8380
  let t = [];
8364
8381
  for (let [n, r] of Object.entries(e)) {
8365
- let e = s$8(n, String(r));
8382
+ let e = s$7(n, String(r));
8366
8383
  t.push(...e.variables, e.value);
8367
8384
  }
8368
8385
  return t;
8369
8386
  };
8370
- var i$7 = (e, t, r, i = !1) => {
8387
+ var i$6 = (e, t, r, i = !1) => {
8371
8388
  let a = {
8372
8389
  variables: {},
8373
8390
  value: ""
@@ -8376,13 +8393,13 @@ var i$7 = (e, t, r, i = !1) => {
8376
8393
  let { variableName: s, extraContent: c } = o.groups, l = `${s}-parsed`, u = `var(${s})+"${c}"`;
8377
8394
  return e.variables[l] && e.variables[l] !== u && (l = `${l}-${Object.keys(e.variables).length}`), a.variables[l] = u, a.value = n$9(t, `var(${l})`, i), a;
8378
8395
  };
8379
- var a$8 = (e, t, r, a, o = !1) => {
8396
+ var a$7 = (e, t, r, a, o = !1) => {
8380
8397
  let s = {
8381
8398
  variables: {},
8382
8399
  value: ""
8383
8400
  };
8384
8401
  if (r === "url") {
8385
- let c = i$7(e, t, a, !0);
8402
+ let c = i$6(e, t, a, !0);
8386
8403
  s.variables = {
8387
8404
  ...s.variables,
8388
8405
  ...c.variables
@@ -8404,11 +8421,11 @@ var o$9 = (n, r, s, c = !1, l = !1) => {
8404
8421
  }), u;
8405
8422
  s = d[0] ?? s;
8406
8423
  let f = s.match(/^(?!var\()\s*(?<functionName>[a-z-]+)\s*\(\s*(?<functionContent>[\s\S]*)\s*\)\s*$/i);
8407
- if (!f || !f.groups) return i$7(u, r, s, c || l);
8424
+ if (!f || !f.groups) return i$6(u, r, s, c || l);
8408
8425
  let { functionName: p, functionContent: m } = f.groups;
8409
- return a$8(n, r, p, m, c || l);
8426
+ return a$7(n, r, p, m, c || l);
8410
8427
  };
8411
- var s$8 = (t, n) => {
8428
+ var s$7 = (t, n) => {
8412
8429
  let r = {
8413
8430
  variables: {},
8414
8431
  value: ""
@@ -8424,7 +8441,7 @@ var s$8 = (t, n) => {
8424
8441
  value: r.value
8425
8442
  };
8426
8443
  };
8427
- var c$5 = (e) => {
8444
+ var c$6 = (e) => {
8428
8445
  if (!e) return;
8429
8446
  let t = {};
8430
8447
  for (let [n, i] of Object.entries(e)) {
@@ -8433,39 +8450,39 @@ var c$5 = (e) => {
8433
8450
  }
8434
8451
  return Object.keys(t).length ? t : void 0;
8435
8452
  };
8436
- var l$3 = (e) => {
8437
- let t = c$5(e.states);
8453
+ var l$4 = (e) => {
8454
+ let t = c$6(e.states);
8438
8455
  return {
8439
8456
  default: r$6(e.default),
8440
8457
  ...t && { states: t }
8441
8458
  };
8442
8459
  };
8443
- var u$2 = (e) => {
8460
+ var u$3 = (e) => {
8444
8461
  if (!e) return;
8445
8462
  let t = {};
8446
8463
  for (let [n, r] of Object.entries(e)) {
8447
- let e = l$3(r);
8464
+ let e = l$4(r);
8448
8465
  (e.default.length || e.states) && (t[n] = e);
8449
8466
  }
8450
8467
  return Object.keys(t).length ? t : void 0;
8451
8468
  };
8452
- var d$3 = (e) => {
8469
+ var d$4 = (e) => {
8453
8470
  if (!e) return;
8454
8471
  let t = {};
8455
8472
  for (let [n, r] of Object.entries(e)) {
8456
- let e = u$2(r.pseudos);
8473
+ let e = u$3(r.pseudos);
8457
8474
  t[n] = {
8458
- ...l$3(r),
8475
+ ...l$4(r),
8459
8476
  ...e && { pseudos: e }
8460
8477
  };
8461
8478
  }
8462
8479
  return Object.keys(t).length ? t : void 0;
8463
8480
  };
8464
- var f$1 = (e) => {
8481
+ var f$2 = (e) => {
8465
8482
  if (!e) return;
8466
8483
  let t = {};
8467
8484
  for (let [n, i] of Object.entries(e)) {
8468
- let e = r$6(i.default), a = c$5(i.states), o = d$3(i.variants);
8485
+ let e = r$6(i.default), a = c$6(i.states), o = d$4(i.variants);
8469
8486
  (e.length || a || o) && (t[n] = {
8470
8487
  ...e.length && { default: e },
8471
8488
  ...a && { states: a },
@@ -8474,11 +8491,11 @@ var f$1 = (e) => {
8474
8491
  }
8475
8492
  return Object.keys(t).length ? t : void 0;
8476
8493
  };
8477
- function p$4(e) {
8494
+ function p$3(e) {
8478
8495
  if (!e?.attributes || !Object.keys(e.attributes).length) return { attributes: { base: { default: [] } } };
8479
8496
  let t = {};
8480
8497
  for (let n in e.attributes) {
8481
- let i = e.attributes[n], a = c$5(i.states), o = d$3(i.variants), s = f$1(i.ancestors), l = u$2(i.pseudos), p = d$3(i.conditions);
8498
+ let i = e.attributes[n], a = c$6(i.states), o = d$4(i.variants), s = f$2(i.ancestors), l = u$3(i.pseudos), p = d$4(i.conditions);
8482
8499
  t[n] = {
8483
8500
  default: r$6(i.default),
8484
8501
  ...a && { states: a },
@@ -8542,11 +8559,11 @@ var n$8 = (n) => {
8542
8559
  };
8543
8560
  //#endregion
8544
8561
  //#region ../sdk-style/dist/helpers/processSelector.mjs
8545
- var l$2 = 2;
8546
- var u$1 = (e = l$2) => " ".repeat(e);
8547
- var d$2 = (e, t, n) => `${n || !t.length ? e : `${e}\n`}${t.join(n ? "" : "\n")}`;
8548
- var f = (e, t, n = !0, r = l$2) => {
8549
- let i = [], a = u$1(r), o = u$1(r + l$2);
8562
+ var l$3 = 2;
8563
+ var u$2 = (e = l$3) => " ".repeat(e);
8564
+ var d$3 = (e, t, n) => `${n || !t.length ? e : `${e}\n`}${t.join(n ? "" : "\n")}`;
8565
+ var f$1 = (e, t, n = !0, r = l$3) => {
8566
+ let i = [], a = u$2(r), o = u$2(r + l$3);
8550
8567
  for (let r of ["light", "dark"]) if (t[r].length) {
8551
8568
  if (n) i.push(`@media(prefers-color-scheme:${r}){${e}{${t[r].join("")}}}`);
8552
8569
  else {
@@ -8556,78 +8573,78 @@ var f = (e, t, n = !0, r = l$2) => {
8556
8573
  }
8557
8574
  return i;
8558
8575
  };
8559
- var p$3 = (e, t, n = "") => [`${e}[data-variant="${t}"]${n}`, `${e}--${t}${n}`];
8576
+ var p$2 = (e, t, n = "") => [`${e}[data-variant="${t}"]${n}`, `${e}--${t}${n}`];
8560
8577
  var m$3 = (e, t, n) => {
8561
8578
  let r = t ? "," : ", ", s = [];
8562
8579
  for (let [l, { default: u, states: d, variants: f }] of Object.entries(e)) {
8563
- let e = p$7(l), m = e ? "" : `.${l}`, h = e ? " > &" : " &", g = e ? "*" : m;
8580
+ let e = p$6(l), m = e ? "" : `.${l}`, h = e ? " > &" : " &", g = e ? "*" : m;
8564
8581
  u?.length && s.push(y$1(`:where(${g})${h}`, u, {}, t, n));
8565
- for (let [e, r] of o$14(d ?? {})) s.push(y$1(`:where(${m}${u$7(e)})${h}`, r, {}, t, n)), d$7(e) && s.push(v$1(`:where(${g})${h}`, r, t, n));
8566
- let _ = (t, n = "") => e ? [`[data-variant="${t}"]${n}`] : p$3(m, t, n);
8582
+ for (let [e, r] of o$14(d ?? {})) s.push(y$1(`:where(${m}${u$8(e)})${h}`, r, {}, t, n)), d$8(e) && s.push(v$1(`:where(${g})${h}`, r, t, n));
8583
+ let _ = (t, n = "") => e ? [`[data-variant="${t}"]${n}`] : p$2(m, t, n);
8567
8584
  for (let [e, a] of Object.entries(f ?? {})) {
8568
8585
  if (a.default.length) {
8569
8586
  let i = _(e).join(r);
8570
8587
  s.push(y$1(`:where(${i})${h}`, a.default, {}, t, n));
8571
8588
  }
8572
8589
  for (let [l, u] of o$14(a.states ?? {})) {
8573
- let i = _(e, u$7(l)).join(r);
8574
- s.push(y$1(`:where(${i})${h}`, u, {}, t, n)), d$7(l) && s.push(v$1(`:where(${_(e).join(r)})${h}`, u, t, n));
8590
+ let i = _(e, u$8(l)).join(r);
8591
+ s.push(y$1(`:where(${i})${h}`, u, {}, t, n)), d$8(l) && s.push(v$1(`:where(${_(e).join(r)})${h}`, u, t, n));
8575
8592
  }
8576
8593
  }
8577
8594
  }
8578
8595
  return s;
8579
8596
  };
8580
- var h$1 = (e, t, n) => Object.entries(e).flatMap(([e, { default: r, states: a }]) => {
8597
+ var h$2 = (e, t, n) => Object.entries(e).flatMap(([e, { default: r, states: a }]) => {
8581
8598
  let l = r$12(e), u = r.length ? [y$1(`&${l}`, r, {}, t, n)] : [];
8582
- for (let [e, r] of o$14(a ?? {})) u.push(y$1(`&${u$7(e)}${l}`, r, {}, t, n)), d$7(e) && u.push(v$1(`&${l}`, r, t, n));
8599
+ for (let [e, r] of o$14(a ?? {})) u.push(y$1(`&${u$8(e)}${l}`, r, {}, t, n)), d$8(e) && u.push(v$1(`&${l}`, r, t, n));
8583
8600
  return u;
8584
8601
  });
8585
8602
  var g$1 = (e, t, n, i) => Object.entries(t).flatMap(([t, { default: a, states: o, pseudos: s }]) => {
8586
- let c = u$5(t);
8603
+ let c = u$6(t);
8587
8604
  if (!c) return [];
8588
8605
  let l = _$1(e, a, {
8589
8606
  states: o,
8590
8607
  pseudos: s
8591
8608
  }, n, i);
8592
- return l ? [n ? `${c}{${l}}` : `${u$1(i)}${c} {\n${l}\n${u$1(i)}}`] : [];
8609
+ return l ? [n ? `${c}{${l}}` : `${u$2(i)}${c} {\n${l}\n${u$2(i)}}`] : [];
8593
8610
  });
8594
- var _$1 = (e, t, n, r = !0, a = l$2) => {
8595
- let { states: s, variants: d, ancestors: f, pseudos: p, conditions: _ } = n, b = r ? t.join("") : t.map((e) => `${u$1(a + l$2)}${e}`).join("\n").replaceAll(":", ": "), x = s ? o$14(s).flatMap(([e, t]) => {
8596
- let n = y$1(`&${u$7(e)}`, t, {}, r, a + l$2);
8597
- return d$7(e) ? [n, v$1("&", t, r, a + l$2)] : [n];
8611
+ var _$1 = (e, t, n, r = !0, a = l$3) => {
8612
+ let { states: s, variants: d, ancestors: f, pseudos: p, conditions: _ } = n, b = r ? t.join("") : t.map((e) => `${u$2(a + l$3)}${e}`).join("\n").replaceAll(":", ": "), x = s ? o$14(s).flatMap(([e, t]) => {
8613
+ let n = y$1(`&${u$8(e)}`, t, {}, r, a + l$3);
8614
+ return d$8(e) ? [n, v$1("&", t, r, a + l$3)] : [n];
8598
8615
  }) : [], S = e.replace("plitzi__", ""), C = d ? Object.entries(d).map(([e, t]) => y$1(`&[data-variant="${e}"]${r ? "," : ", "}&${S}--${e}`, t.default, {
8599
8616
  states: t.states,
8600
8617
  pseudos: t.pseudos
8601
- }, r, a + l$2)) : [], w = [
8618
+ }, r, a + l$3)) : [], w = [
8602
8619
  x,
8603
- p ? h$1(p, r, a + l$2) : [],
8620
+ p ? h$2(p, r, a + l$3) : [],
8604
8621
  C,
8605
- f ? m$3(f, r, a + l$2) : [],
8606
- _ ? g$1(e, _, r, a + l$2) : []
8622
+ f ? m$3(f, r, a + l$3) : [],
8623
+ _ ? g$1(e, _, r, a + l$3) : []
8607
8624
  ];
8608
8625
  if (r) return `${b}${w.map((e) => e.join("")).join("")}`;
8609
8626
  let T = b ? [b] : [];
8610
8627
  for (let e of w) e.length && T.push(e.join("\n\n"));
8611
8628
  return T.join("\n\n");
8612
8629
  };
8613
- var v$1 = (e, t, n, r) => n ? `@starting-style{${y$1(e, t, {}, n, r)}}` : `${u$1(r)}@starting-style {\n${y$1(e, t, {}, n, r + l$2)}\n${u$1(r)}}`;
8614
- var y$1 = (e, t, n, r = !0, i = l$2) => {
8630
+ var v$1 = (e, t, n, r) => n ? `@starting-style{${y$1(e, t, {}, n, r)}}` : `${u$2(r)}@starting-style {\n${y$1(e, t, {}, n, r + l$3)}\n${u$2(r)}}`;
8631
+ var y$1 = (e, t, n, r = !0, i = l$3) => {
8615
8632
  let a = _$1(e, t, n, r, i);
8616
- return r ? `${e}{${a}}` : `${u$1(i)}${e} {\n${a}\n${u$1(i)}}`;
8633
+ return r ? `${e}{${a}}` : `${u$2(i)}${e} {\n${a}\n${u$2(i)}}`;
8617
8634
  };
8618
- var b$1 = (e, t, n = !0, r = l$2) => {
8635
+ var b$1 = (e, t, n = !0, r = l$3) => {
8619
8636
  let i = [];
8620
8637
  for (let [a, o] of Object.entries(t)) if (a === "base") {
8621
8638
  let t = _$1(e, o.default, o, n, r);
8622
8639
  t && i.push(t);
8623
- } else i.push(y$1(`${e}-${a}`, o.default, o, n, r + l$2));
8640
+ } else i.push(y$1(`${e}-${a}`, o.default, o, n, r + l$3));
8624
8641
  return n ? `${e}{${i.join("")}}` : `${e} {\n${i.join("\n\n")}\n}`;
8625
8642
  };
8626
8643
  var x$1 = (r, i = !0) => {
8627
- let a = e$13(r), o = n$8(r), s = p$4(r), c = o ? f(a, o, i) : void 0;
8644
+ let a = e$13(r), o = n$8(r), s = p$3(r), c = o ? f$1(a, o, i) : void 0;
8628
8645
  o && s.attributes.base.default.push(...o.default);
8629
8646
  let l = b$1(a, s.attributes, i, 0);
8630
- return c ? d$2(l, c, i) : l;
8647
+ return c ? d$3(l, c, i) : l;
8631
8648
  };
8632
8649
  //#endregion
8633
8650
  //#region ../sdk-style/dist/helpers/calculateInheriting.mjs
@@ -8640,7 +8657,7 @@ var r$5 = (e, t) => {
8640
8657
  }
8641
8658
  return n;
8642
8659
  };
8643
- var i$6 = (e, t, n, r, i) => {
8660
+ var i$5 = (e, t, n, r, i) => {
8644
8661
  let a = [], o = /* @__PURE__ */ new Set(), { definition: { styleSelectors: s, type: c }, attributes: { subType: l } } = e, u = (s[r] || "").split(" ").filter(Boolean);
8645
8662
  for (let e of [...u, ...i]) {
8646
8663
  if (o.has(e)) continue;
@@ -8660,11 +8677,11 @@ var i$6 = (e, t, n, r, i) => {
8660
8677
  }
8661
8678
  return a;
8662
8679
  };
8663
- var a$7 = (e, n, r, i) => {
8664
- let a = t$27(i, `${e}.defaultStyle`, void 0);
8680
+ var a$6 = (e, n, r, i) => {
8681
+ let a = t$28(i, `${e}.defaultStyle`, void 0);
8665
8682
  if (a) return a.subTypes && !n && (n = Object.keys(a.subTypes)[0]), n && a.subTypes?.[n] && (a = a.subTypes[n]), {
8666
8683
  name: "defaultStyle",
8667
- attributes: { [r]: t$27(a, `style.${r}`, {}) },
8684
+ attributes: { [r]: t$28(a, `style.${r}`, {}) },
8668
8685
  componentType: e,
8669
8686
  isParent: !1,
8670
8687
  isAncestor: !1,
@@ -8711,8 +8728,8 @@ var o$8 = (e, t, n) => {
8711
8728
  ...f
8712
8729
  };
8713
8730
  };
8714
- var s$7 = (e, t, n) => o$8(e.attributes, t, n);
8715
- var c$4 = (t, o, c, l, u = {}, d = {}) => {
8731
+ var s$6 = (e, t, n) => o$8(e.attributes, t, n);
8732
+ var c$5 = (t, o, c, l, u = {}, d = {}) => {
8716
8733
  let { componentSubType: f, styleSelector: p = "base", styleState: m, styleVariant: h, styleAncestor: g, stylePseudo: _, styleCondition: v, includeSelf: y = !1, skipSelectors: b = [], addSelectors: x = [] } = d, S = {
8717
8734
  styleState: m,
8718
8735
  styleVariant: h,
@@ -8738,7 +8755,7 @@ var c$4 = (t, o, c, l, u = {}, d = {}) => {
8738
8755
  });
8739
8756
  }
8740
8757
  else if (!t && o) {
8741
- let t = i$6({
8758
+ let t = i$5({
8742
8759
  definition: {
8743
8760
  type: o,
8744
8761
  styleSelectors: {},
@@ -8753,13 +8770,13 @@ var c$4 = (t, o, c, l, u = {}, d = {}) => {
8753
8770
  isParent: !1,
8754
8771
  isAncestor: !1
8755
8772
  });
8756
- let r = a$7(o, f, p, u);
8773
+ let r = a$6(o, f, p, u);
8757
8774
  r && C.tree.push({
8758
8775
  ...r,
8759
8776
  displayMode: e
8760
8777
  });
8761
8778
  } else for (let r of w) {
8762
- let s = t?.definition.parentId === r.id, c = r.id !== t?.id, l = i$6(r, r.definition.type === o ? o : void 0, n, p, x);
8779
+ let s = t?.definition.parentId === r.id, c = r.id !== t?.id, l = i$5(r, r.definition.type === o ? o : void 0, n, p, x);
8763
8780
  !y && !c && !m && !h && Object.keys(l).length && (l = l.filter((e) => e.type === "element"));
8764
8781
  for (let t of l) (!b.includes(t.name) || c) && C.tree.push({
8765
8782
  name: t.name,
@@ -8770,7 +8787,7 @@ var c$4 = (t, o, c, l, u = {}, d = {}) => {
8770
8787
  isAncestor: c,
8771
8788
  isDefault: !1
8772
8789
  });
8773
- let d = a$7(r.definition.type, r.attributes.subType, p, u);
8790
+ let d = a$6(r.definition.type, r.attributes.subType, p, u);
8774
8791
  d && !T.has(r.definition.type) && (T.add(r.definition.type), C.tree.push({
8775
8792
  ...d,
8776
8793
  displayMode: e,
@@ -8782,7 +8799,7 @@ var c$4 = (t, o, c, l, u = {}, d = {}) => {
8782
8799
  }
8783
8800
  let E = {};
8784
8801
  for (let t of C.tree) {
8785
- let r = s$7(t, p, S);
8802
+ let r = s$6(t, p, S);
8786
8803
  if (r && Object.keys(r).length && ((t.isAncestor || t.isDefault && t.componentType !== o) && (r = n$23(r, n$20)), Object.keys(r).length)) for (let e of Object.keys(r)) E[e] || (E[e] = []), E[e].push({
8787
8804
  key: t.name,
8788
8805
  value: r[e],
@@ -8791,7 +8808,7 @@ var c$4 = (t, o, c, l, u = {}, d = {}) => {
8791
8808
  }
8792
8809
  let D = C.tree.filter((e) => e.isParent).reduce((e, t) => ({
8793
8810
  ...e,
8794
- ...s$7(t, p, S)
8811
+ ...s$6(t, p, S)
8795
8812
  }), {});
8796
8813
  return {
8797
8814
  ...C,
@@ -8801,7 +8818,7 @@ var c$4 = (t, o, c, l, u = {}, d = {}) => {
8801
8818
  };
8802
8819
  //#endregion
8803
8820
  //#region ../sdk-schema/dist/helpers/FlatMap.mjs
8804
- var d$1 = class {
8821
+ var d$2 = class {
8805
8822
  flat;
8806
8823
  variables;
8807
8824
  pages;
@@ -8810,7 +8827,7 @@ var d$1 = class {
8810
8827
  constructor(e = {}) {
8811
8828
  let { flat: t, variables: r, pages: i, mintId: a, takenElsewhere: o } = e;
8812
8829
  if (!t) throw Error("Flat is required");
8813
- this.flat = t, this.variables = r ?? [], this.pages = i ?? [], this.mintId = a ?? c$12, this.takenElsewhere = o ?? (() => !1);
8830
+ this.flat = t, this.variables = r ?? [], this.pages = i ?? [], this.mintId = a ?? c$13, this.takenElsewhere = o ?? (() => !1);
8814
8831
  }
8815
8832
  nextId = (e, t = () => !1) => {
8816
8833
  let n = r$14(this.flat);
@@ -8821,7 +8838,7 @@ var d$1 = class {
8821
8838
  ...e,
8822
8839
  id: this.nextId(e.definition.type)
8823
8840
  }, o = [a, ...Object.values(i)];
8824
- if (!this.isValidElement(a) || !a$15(this.flat, o) || o.some((e) => this.takenElsewhere(e.id))) return !1;
8841
+ if (!this.isValidElement(a) || !a$14(this.flat, o) || o.some((e) => this.takenElsewhere(e.id))) return !1;
8825
8842
  if (r !== "custom") {
8826
8843
  let e = this.placement(n, r, [a.id]);
8827
8844
  if (!e) return !1;
@@ -8845,7 +8862,7 @@ var d$1 = class {
8845
8862
  });
8846
8863
  };
8847
8864
  updateElement = (e) => !e || !this.flat[e.id] ? !1 : (this.flat[e.id] = e, !0);
8848
- renameElement = (t, n) => this.flat[t] ? t === n ? [] : i$15(this.flat, n) || this.takenElsewhere(n) ? !1 : _$2(this.flat, { [t]: n }, this.pages) : !1;
8865
+ renameElement = (t, n) => this.flat[t] ? t === n ? [] : i$14(this.flat, n) || this.takenElsewhere(n) ? !1 : _$2(this.flat, { [t]: n }, this.pages) : !1;
8849
8866
  moveElement = (e, t, n, r = "inside") => {
8850
8867
  let i = this.flat[e], a = this.flat[n];
8851
8868
  if (!i || !a || n === t || t$17(this.flat, t).includes(n)) return !1;
@@ -8863,7 +8880,7 @@ var d$1 = class {
8863
8880
  if (!u) return c;
8864
8881
  let d = [e, ...r$13(this.flat, e)], f = r$14(this.flat);
8865
8882
  for (let e of d) {
8866
- let t = u$9(e, (e) => f.has(e) || this.takenElsewhere(e));
8883
+ let t = u$10(e, (e) => f.has(e) || this.takenElsewhere(e));
8867
8884
  f.add(t), l[e] = t;
8868
8885
  }
8869
8886
  let p = {};
@@ -8937,7 +8954,7 @@ var d$1 = class {
8937
8954
  let o = this.cloneElements(t, a.definition.parentId);
8938
8955
  return o.item ? (Object.values(o.acum).forEach((t) => {
8939
8956
  let { id: n } = t;
8940
- if (o.item && (t.definition.rootId = o.item.id), c$4(t, t.definition.type, this.flat, e.platform, {}, { includeSelf: !0 }).tree.forEach((t) => {
8957
+ if (o.item && (t.definition.rootId = o.item.id), c$5(t, t.definition.type, this.flat, e.platform, {}, { includeSelf: !0 }).tree.forEach((t) => {
8941
8958
  let { displayMode: n, name: i } = t;
8942
8959
  !(i in r.platform[n]) && i in e.platform[n] && (r.platform[n][i] = e.platform[n][i]);
8943
8960
  }), this.variables.length > 0) {
@@ -9005,9 +9022,9 @@ var o$7 = /* @__PURE__ */ new Set([
9005
9022
  "ref",
9006
9023
  "id"
9007
9024
  ]);
9008
- var s$6 = /^[A-Za-z][A-Za-z0-9_]*$/;
9009
- var c$3 = (e) => s$6.test(e) ? o$7.has(e) ? `"${e}" is an attribute every instance already has` : null : `"${e}" is not a valid prop name: start with a letter, then letters, numbers and underscores — it is read as {{ props.${e} }}`;
9010
- var p$2 = (e, t) => Object.hasOwn(e.components, t) ? e.components[t] : void 0;
9025
+ var s$5 = /^[A-Za-z][A-Za-z0-9_]*$/;
9026
+ var c$4 = (e) => s$5.test(e) ? o$7.has(e) ? `"${e}" is an attribute every instance already has` : null : `"${e}" is not a valid prop name: start with a letter, then letters, numbers and underscores — it is read as {{ props.${e} }}`;
9027
+ var p$1 = (e, t) => Object.hasOwn(e.components, t) ? e.components[t] : void 0;
9011
9028
  var m$2 = (e, t) => e.definition.type === "reference" && e.attributes.referenceType === "component" && (t === void 0 || e.attributes.referenceId === t);
9012
9029
  //#endregion
9013
9030
  //#region ../sdk-schema/dist/helpers/schemaValidator.mjs
@@ -9416,7 +9433,7 @@ var o$6 = (i, a) => {
9416
9433
  componentId: t
9417
9434
  });
9418
9435
  }), Object.keys(l.props ?? {}).forEach((e) => {
9419
- let r = c$3(e);
9436
+ let r = c$4(e);
9420
9437
  r && s.push({
9421
9438
  code: "INVALID_COMPONENT_PROP",
9422
9439
  message: `${d}: ${r}`,
@@ -9491,20 +9508,20 @@ var o$6 = (i, a) => {
9491
9508
  warnings: c
9492
9509
  } };
9493
9510
  };
9494
- var s$5 = (e, t) => o$6(e, t).validate();
9511
+ var s$4 = (e, t) => o$6(e, t).validate();
9495
9512
  //#endregion
9496
9513
  //#region ../sdk-schema/dist/helpers/styleWithoutTag.mjs
9497
9514
  var e$11 = (e) => Object.keys(e ?? {}).length > 0;
9498
9515
  var t$7 = (t) => Object.values(t ?? {}).some(e$11);
9499
9516
  var n$7 = (n) => e$11(n.default) || t$7(n.states) || Object.values(n.variants ?? {}).some((n) => e$11(n.default) || t$7(n.states));
9500
9517
  var r$4 = (e, t) => Object.values(e.platform).some((e) => Object.hasOwn(e, t) && Object.values(e[t].attributes).some(n$7));
9501
- var i$5 = /* @__PURE__ */ new Set(["apiContainer", "channel"]);
9502
- var a$6 = (e) => {
9518
+ var i$4 = /* @__PURE__ */ new Set(["apiContainer", "channel"]);
9519
+ var a$5 = (e) => {
9503
9520
  let t = e.attributes.subType;
9504
- return i$5.has(e.definition.type) && (typeof t != "string" || t === "");
9521
+ return i$4.has(e.definition.type) && (typeof t != "string" || t === "");
9505
9522
  };
9506
9523
  var o$5 = (e, t) => {
9507
- if (!a$6(e)) return;
9524
+ if (!a$5(e)) return;
9508
9525
  let { styleSelectors: n, initialState: i, bindings: o } = e.definition, s = Object.values(n).some((e) => e.split(" ").some((e) => e && r$4(t, e))), c = Object.keys(i?.styleVariant ?? {}).length > 0, l = (o?.style?.length ?? 0) > 0;
9509
9526
  if (s || c || l) return "has style but no `subType` (container tag), so it renders no element of its own and the style applies to nothing — its children lay out in its parent. Give it a tag (a `subType` of `div`, `section`, …) or move the style onto its parent or a child.";
9510
9527
  };
@@ -9542,7 +9559,7 @@ var r$3 = {
9542
9559
  del: "delete",
9543
9560
  return: "enter"
9544
9561
  };
9545
- var i$4 = /* @__PURE__ */ new Set([
9562
+ var i$3 = /* @__PURE__ */ new Set([
9546
9563
  "escape",
9547
9564
  "enter",
9548
9565
  "tab",
@@ -9560,7 +9577,7 @@ var i$4 = /* @__PURE__ */ new Set([
9560
9577
  "pagedown",
9561
9578
  ...Array.from({ length: 12 }, (e, t) => `f${t + 1}`)
9562
9579
  ]);
9563
- var a$5 = (e, n) => [...t$6.filter((t) => e.has(t)), n].join("+");
9580
+ var a$4 = (e, n) => [...t$6.filter((t) => e.has(t)), n].join("+");
9564
9581
  var o$4 = (e, t) => {
9565
9582
  let o = e.trim().toLowerCase();
9566
9583
  if (!o) return { problem: "an empty shortcut (two commas in a row, or one at the end)" };
@@ -9571,9 +9588,9 @@ var o$4 = (e, t) => {
9571
9588
  } else u.push(Object.hasOwn(r$3, e) ? r$3[e] : e);
9572
9589
  if (u.length !== 1) return { problem: `"${e.trim()}" names ${u.length ? `${u.length} keys (${u.join(", ")})` : "no key, only modifiers"}: a shortcut is modifiers and ONE key, like "shift+f"` };
9573
9590
  let [d] = u;
9574
- return d.length !== 1 && !i$4.has(d) ? { problem: `"${d}" in "${e.trim()}" is not a key: use one character ("f", "?", "+") or a key's name (${[...i$4].slice(0, 15).join(", ")}, f1…f12)` } : { combo: a$5(l, d) };
9591
+ return d.length !== 1 && !i$3.has(d) ? { problem: `"${d}" in "${e.trim()}" is not a key: use one character ("f", "?", "+") or a key's name (${[...i$3].slice(0, 15).join(", ")}, f1…f12)` } : { combo: a$4(l, d) };
9575
9592
  };
9576
- var s$4 = (e, t = !1) => {
9593
+ var s$3 = (e, t = !1) => {
9577
9594
  let n = e.split(",").map((e) => o$4(e, t));
9578
9595
  return {
9579
9596
  combos: n.flatMap((e) => e.combo ? [e.combo] : []),
@@ -9633,6 +9650,7 @@ var PAGE_SPEC_KEYS = [
9633
9650
  "notFound",
9634
9651
  "documentScroll",
9635
9652
  "accessLevel",
9653
+ "access",
9636
9654
  "unauthorizedRedirect",
9637
9655
  "folder",
9638
9656
  "layout",
@@ -9774,8 +9792,8 @@ var paramIssue = (params, spec, where) => {
9774
9792
  const unknown = Object.keys(provided).find((key) => !names.includes(key));
9775
9793
  if (unknown !== void 0) return `${where} has the param "${unknown}", which it does not take${didYouMean(unknown, names) || "."} It takes ${names.length > 0 ? names.join(", ") : "none"}.`;
9776
9794
  }
9777
- const effective = c$20(provided, declared, false);
9778
- const invalid = s$24(provided, effective, declared).at(0);
9795
+ const effective = c$21(provided, declared, false);
9796
+ const invalid = s$23(provided, effective, declared).at(0);
9779
9797
  if (invalid) {
9780
9798
  const value = provided[invalid.key];
9781
9799
  const suggestion = typeof value === "string" && invalid.options ? didYouMean(value, invalid.options) : "";
@@ -9786,16 +9804,16 @@ var paramIssue = (params, spec, where) => {
9786
9804
  };
9787
9805
  //#endregion
9788
9806
  //#region ../sdk-shared/dist/navigation/routes.mjs
9789
- var i$3 = (e) => e.replaceAll(/\/+/g, "/");
9790
- var a$4 = (e) => i$3(e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/gi, ":$1"));
9791
- var o$3 = (e, t) => {
9807
+ var a$3 = (e) => e.replaceAll(/\/+/g, "/");
9808
+ var o$3 = (e) => a$3(e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/gi, ":$1"));
9809
+ var s$2 = (e, t) => {
9792
9810
  if (!t || !e[t]) return "";
9793
9811
  let { slug: n, parentId: r } = e[t];
9794
- return r ? `${o$3(e, r)}/${n}` : n;
9812
+ return r ? `${s$2(e, r)}/${n}` : n;
9795
9813
  };
9796
- function s$3(e, t, n, r = !1) {
9797
- let s = n.replace(/^\/+/, ""), { slug: c = "", folder: l, default: u } = e[s]?.attributes ?? {
9798
- slug: s,
9814
+ function c$3(e, t, n, r = !1) {
9815
+ let i = n.replace(/^\/+/, ""), { slug: c = "", folder: l, default: u } = e[i]?.attributes ?? {
9816
+ slug: i,
9799
9817
  folder: "",
9800
9818
  default: !1
9801
9819
  };
@@ -9805,25 +9823,25 @@ function s$3(e, t, n, r = !1) {
9805
9823
  };
9806
9824
  if (u && r) return "/";
9807
9825
  if (!l && !r) return {
9808
- [a$4(`/${c}`)]: n,
9809
- [a$4(`/${n}`)]: n
9826
+ [o$3(`/${c}`)]: n,
9827
+ [o$3(`/${n}`)]: n
9810
9828
  };
9811
- if (!l && r) return i$3(`/${c}`);
9812
- if (!t.find((e) => e.id === l)) return r ? i$3(`/${c}`) : {
9813
- [a$4(`/${c}`)]: n,
9814
- [a$4(`/${n}`)]: n
9829
+ if (!l && r) return a$3(`/${c}`);
9830
+ if (!t.find((e) => e.id === l)) return r ? a$3(`/${c}`) : {
9831
+ [o$3(`/${c}`)]: n,
9832
+ [o$3(`/${n}`)]: n
9815
9833
  };
9816
- let d = [o$3(t.reduce((e, t) => ({
9834
+ let d = [s$2(t.reduce((e, t) => ({
9817
9835
  ...e,
9818
9836
  [t.id]: t
9819
9837
  }), {}), l), c].filter(Boolean).join("/");
9820
- return r ? i$3(`/${d}`) : {
9821
- [a$4(`/${d}`)]: n,
9822
- [a$4(`/${n}`)]: n
9838
+ return r ? a$3(`/${d}`) : {
9839
+ [o$3(`/${d}`)]: n,
9840
+ [o$3(`/${n}`)]: n
9823
9841
  };
9824
9842
  }
9825
- var p$1 = (e) => !e || typeof e != "string" ? [] : (e.match(/:[a-zA-Z0-9-_:*]+/gim) || []).map((e) => e.replace(":", ""));
9826
- var m$1 = (e) => p$1(a$4(e));
9843
+ var m$1 = (e) => !e || typeof e != "string" ? [] : (e.match(/:[a-zA-Z0-9-_:*]+/gim) || []).map((e) => e.replace(":", ""));
9844
+ var h$1 = (e) => m$1(o$3(e));
9827
9845
  //#endregion
9828
9846
  //#region src/schema/lint/context.ts
9829
9847
  /**
@@ -9904,7 +9922,7 @@ var LintContext = class {
9904
9922
  /** The component an instance places, when the space declares it. */
9905
9923
  instanceOf(element) {
9906
9924
  const { referenceId } = element.attributes;
9907
- return m$2(element) && typeof referenceId === "string" ? p$2(this.schema, referenceId) : void 0;
9925
+ return m$2(element) && typeof referenceId === "string" ? p$1(this.schema, referenceId) : void 0;
9908
9926
  }
9909
9927
  element(id) {
9910
9928
  return Object.hasOwn(this.flat, id) ? this.flat[id] : void 0;
@@ -9970,8 +9988,8 @@ var LintContext = class {
9970
9988
  routeParams(id) {
9971
9989
  const rootId = this.element(id)?.definition.rootId ?? id;
9972
9990
  const slugOf = (pageId) => textOf(this.element(pageId)?.attributes.slug);
9973
- if (this.pageIds.has(rootId)) return m$1(slugOf(rootId));
9974
- return [...new Set([...this.pageIds].flatMap((pageId) => m$1(slugOf(pageId))))];
9991
+ if (this.pageIds.has(rootId)) return h$1(slugOf(rootId));
9992
+ return [...new Set([...this.pageIds].flatMap((pageId) => h$1(slugOf(pageId))))];
9975
9993
  }
9976
9994
  };
9977
9995
  //#endregion
@@ -10025,7 +10043,7 @@ var withPluginCatalogs = (options) => {
10025
10043
  return [[declaration.type, own(declaration)], [hostedKey(declaration), hosted(declaration)]].filter((entry) => entry[1] !== void 0);
10026
10044
  }));
10027
10045
  const customTriggers = rest.vocabulary?.triggers?.["custom"] ?? Object.keys(e$37);
10028
- const customCallbacks = rest.vocabulary?.callbacks?.["custom"] ?? Object.keys(a$23);
10046
+ const customCallbacks = rest.vocabulary?.callbacks?.["custom"] ?? Object.keys(a$22);
10029
10047
  const customAttributes = Object.keys(rest.defaultAttributes?.["custom"] ?? {});
10030
10048
  const vocabulary = rest.vocabulary && {
10031
10049
  ...rest.vocabulary,
@@ -10035,7 +10053,7 @@ var withPluginCatalogs = (options) => {
10035
10053
  },
10036
10054
  callbacks: {
10037
10055
  ...rest.vocabulary.callbacks,
10038
- ...byType((declaration) => [...Object.keys(a$23), ...actionsOf(declaration.callbacks)], (declaration) => [...customCallbacks, ...actionsOf(declaration.callbacks)])
10056
+ ...byType((declaration) => [...Object.keys(a$22), ...actionsOf(declaration.callbacks)], (declaration) => [...customCallbacks, ...actionsOf(declaration.callbacks)])
10039
10057
  }
10040
10058
  };
10041
10059
  return {
@@ -10156,7 +10174,7 @@ var onLoad = () => on("onLoad");
10156
10174
  * editing even then (⌘A, ⌘Z, ⌘C/⌘V, moving by word). `{{ <this step's id>.key }}` is the key pressed, canonical (`shift+f`) — for one flow answering several shortcuts.
10157
10175
  */
10158
10176
  var onKey = (keys) => {
10159
- const { problems } = s$4(keys);
10177
+ const { problems } = s$3(keys);
10160
10178
  if (problems.length || !keys.trim()) throw new AuthoringError("trigger-keys", `onKey('${keys}') is not a shortcut: ${problems.join("; ") || "it is empty"}. Write one or several, with commas: 'f', 'shift+f', 'mod+k', 'escape, q'.`);
10161
10179
  return on("onKey", { keys });
10162
10180
  };
@@ -10183,7 +10201,7 @@ var onInterval = (ms) => {
10183
10201
  * and hide the arrow at the end already reached: `[named('row', onScroll()), setState({ key: 'atEnd', type:
10184
10202
  * 'boolean', value: '{{ row.atEnd }}' })]`.
10185
10203
  */
10186
- var onScroll = () => on(s$23);
10204
+ var onScroll = () => on(s$22);
10187
10205
  var onPageLoad = () => on("onPageLoad");
10188
10206
  /**
10189
10207
  * The end of a server action this element started — the trigger a `detached` run needs, because that step returns
@@ -10966,7 +10984,7 @@ var e$2 = {
10966
10984
  * of them is an authoring question nobody at runtime asks.
10967
10985
  */
10968
10986
  var BUILTIN_GLOBAL_CALLBACKS = {
10969
- ...i$26,
10987
+ ...i$25,
10970
10988
  ...e$2,
10971
10989
  ...e$5,
10972
10990
  ...e$4,
@@ -10986,7 +11004,7 @@ var applyBuiltinCallback = (action, params) => {
10986
11004
  const builtin = BUILTIN_GLOBAL_CALLBACKS[action];
10987
11005
  return {
10988
11006
  source: builtin.source,
10989
- params: c$20(params, builtin.params, builtin.strictParams)
11007
+ params: c$21(params, builtin.params, builtin.strictParams)
10990
11008
  };
10991
11009
  };
10992
11010
  //#endregion
@@ -11461,7 +11479,7 @@ var applyUtility = (action, params) => {
11461
11479
  };
11462
11480
  return {
11463
11481
  known: true,
11464
- params: c$20(params, utility.params, utility.strictParams)
11482
+ params: c$21(params, utility.params, utility.strictParams)
11465
11483
  };
11466
11484
  };
11467
11485
  var NOT_FOUND_ID = "plitzi-not-found";
@@ -11530,7 +11548,7 @@ var withNotFoundPage = (spec) => {
11530
11548
  var e$1 = "flow.onFailure";
11531
11549
  //#endregion
11532
11550
  //#region ../sdk-shared/dist/actions/functions.mjs
11533
- var a$3 = (e) => e === "/fn" || e.startsWith("/fn/");
11551
+ var a$2 = (e) => e === "/fn" || e.startsWith("/fn/");
11534
11552
  //#endregion
11535
11553
  //#region src/schema/actions.ts
11536
11554
  var accessParams = (access) => {
@@ -11738,7 +11756,7 @@ var i$2 = /* @__PURE__ */ new Set([
11738
11756
  "constructor",
11739
11757
  "prototype"
11740
11758
  ]);
11741
- var a$2 = (e) => n$3.test(e) && !i$2.has(e);
11759
+ var a$1 = (e) => n$3.test(e) && !i$2.has(e);
11742
11760
  //#endregion
11743
11761
  //#region src/schema/flags.ts
11744
11762
  /**
@@ -11751,7 +11769,7 @@ var flagGateOf = (flag, where) => {
11751
11769
  const text = typeof flag === "string" ? flag : "";
11752
11770
  const is = !text.startsWith("!");
11753
11771
  const name = is ? text : text.slice(1);
11754
- if (!a$2(name)) throw new AuthoringError("flag-gate", `${where}: \`flag\` is ${JSON.stringify(flag)}. It names a flag the space declares in \`flags\` — \`flag: 'newCheckout'\` exists while it is on — or, with a leading \`!\`, one that has to be off: \`flag: '!newCheckout'\`.`);
11772
+ if (!a$1(name)) throw new AuthoringError("flag-gate", `${where}: \`flag\` is ${JSON.stringify(flag)}. It names a flag the space declares in \`flags\` — \`flag: 'newCheckout'\` exists while it is on — or, with a leading \`!\`, one that has to be off: \`flag: '!newCheckout'\`.`);
11755
11773
  return {
11756
11774
  name,
11757
11775
  is
@@ -12151,7 +12169,7 @@ var anchorsOfPage = (ctx, pageId) => {
12151
12169
  Object.values(ctx.flat).forEach((element) => {
12152
12170
  if (!roots.has(element.definition.rootId)) return;
12153
12171
  const own = element.definition.anchor ? [element.definition.anchor] : [];
12154
- const headings = element.definition.type === "markdown" ? i$16(attributeText$1(element, "content")).map((heading) => heading.anchor) : [];
12172
+ const headings = element.definition.type === "markdown" ? i$15(attributeText$1(element, "content")).map((heading) => heading.anchor) : [];
12155
12173
  [...own, ...headings].forEach((anchor) => anchors.set(anchor, [...anchors.get(anchor) ?? [], element.id]));
12156
12174
  });
12157
12175
  return anchors;
@@ -12160,7 +12178,7 @@ var anchorsOfPage = (ctx, pageId) => {
12160
12178
  var lintOwnAnchor = (ctx, element, anchor) => {
12161
12179
  const where = ctx.describe(element.id);
12162
12180
  if (!t$24(anchor)) ctx.error("anchor-invalid", `${where} has the anchor ${JSON.stringify(anchor)}. An anchor is the element's id in the URL (\`/page#anchor\`): ${FORMAT} — "${n$21(anchor)}".`, element.id);
12163
- if (a$6(element)) ctx.error("anchor-no-tag", `${where} has the anchor "${anchor}" but renders no element of its own (no \`subType\`), so there is nothing to scroll to. Put the anchor on the section it wraps, or give it a tag.`, element.id);
12181
+ if (a$5(element)) ctx.error("anchor-no-tag", `${where} has the anchor "${anchor}" but renders no element of its own (no \`subType\`), so there is nothing to scroll to. Put the anchor on the section it wraps, or give it a tag.`, element.id);
12164
12182
  if (ctx.component) {
12165
12183
  ctx.error("anchor-repeated", `${where} has the anchor "${anchor}", and a component renders its tree once per instance — two instances would put the same id in the page twice. Put the anchor on the element around the instance, on the page.`, element.id);
12166
12184
  return;
@@ -12179,8 +12197,8 @@ var lintLinkHash = (ctx, link, anchorsByPage) => {
12179
12197
  }
12180
12198
  if ((attributeText$1(link, "mode") || "page") !== "page") return;
12181
12199
  const { flat, schema } = ctx;
12182
- const path = s$3(flat, schema.pageFolders, attributeText$1(link, "href"), true);
12183
- const pageId = [...ctx.pageIds].find((id) => s$3(flat, schema.pageFolders, id, true) === path);
12200
+ const path = c$3(flat, schema.pageFolders, attributeText$1(link, "href"), true);
12201
+ const pageId = [...ctx.pageIds].find((id) => c$3(flat, schema.pageFolders, id, true) === path);
12184
12202
  if (!pageId) return;
12185
12203
  const anchors = anchorsByPage(pageId);
12186
12204
  if (!anchors.has(hash)) {
@@ -12237,27 +12255,29 @@ var lintAnchors = (ctx) => {
12237
12255
  var t$1 = /^[A-Za-z0-9:_.-]{1,128}$/;
12238
12256
  var n$2 = "[A-Za-z0-9_.-]{1,64}";
12239
12257
  var r$1 = (e) => t$1.test(e);
12240
- var i$1 = (e) => RegExp(`^${e.split(/(\{[A-Za-z0-9_]+\})/).map((e) => /^\{[A-Za-z0-9_]+\}$/.test(e) ? n$2 : e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("")}$`);
12241
- var a$1 = (e, t) => {
12258
+ var i$1 = /^\$job:([A-Za-z0-9:_.-]{1,128})$/;
12259
+ var o$2 = (e) => i$1.exec(e)?.[1];
12260
+ var c$2 = (e) => RegExp(`^${e.split(/(\{[A-Za-z0-9_]+\})/).map((e) => /^\{[A-Za-z0-9_]+\}$/.test(e) ? n$2 : e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("")}$`);
12261
+ var l$2 = (e, t) => {
12242
12262
  if (!t || !r$1(e)) return;
12243
- let n = Object.keys(t).find((t) => i$1(t).test(e));
12263
+ let n = Object.keys(t).find((t) => c$2(t).test(e));
12244
12264
  return n === void 0 ? void 0 : {
12245
12265
  pattern: n,
12246
12266
  declaration: t[n]
12247
12267
  };
12248
12268
  };
12249
- var o$2 = /^(?=.)[A-Za-z0-9:_.-]*(\{[A-Za-z0-9_]+\}[A-Za-z0-9:_.-]*)*$/;
12250
- var s$2 = /* @__PURE__ */ new Set([
12269
+ var u$1 = /^(?=.)[A-Za-z0-9:_.-]*(\{[A-Za-z0-9_]+\}[A-Za-z0-9:_.-]*)*$/;
12270
+ var d$1 = /* @__PURE__ */ new Set([
12251
12271
  "public",
12252
12272
  "session",
12253
12273
  "role"
12254
12274
  ]);
12255
- var c$2 = (t, n) => {
12275
+ var f = (t, n) => {
12256
12276
  let r = [];
12257
- if (o$2.test(t) || r.push("a pattern is letters, digits and `:_.-`, with `{name}` for the part a page fills in — `board:{id}`"), !e$35(n)) return [...r, "a channel is an object: `{ access: { mode: \"public\" } }`"];
12258
- let { access: i, publish: a, presence: c, grant: l, retain: u, maxMessageBytes: d, messagesPerSecond: f } = n, p = e$35(i) ? i.mode : void 0;
12259
- typeof p != "string" || !s$2.has(p) ? r.push("`access` is { mode: \"public\" }, { mode: \"session\" } or { mode: \"role\", permissions: […] }") : p === "role" && !(e$35(i) && Array.isArray(i.permissions) && i.permissions.every((e) => typeof e == "string")) && r.push("`access: { mode: \"role\" }` names the permissions it needs: `permissions: [\"boardEdit\"]`"), a !== void 0 && a !== "clients" && a !== "server" && r.push("`publish` is \"clients\" (pages send) or \"server\" (only a flow's realtime.publish)"), c !== void 0 && typeof c != "boolean" && r.push("`presence` is true or false"), l !== void 0 && typeof l != "boolean" && r.push("`grant` is true (a page needs a grant from `realtime.grant` to open a topic) or false"), u !== void 0 && typeof u != "boolean" ? r.push("`retain` is true (the server keeps the latest message of each type for pages that join) or false") : u === !0 && a !== "server" && r.push("`retain: true` keeps what the server says, so only the server may speak: add `publish: \"server\"` — a page changes it through an action");
12260
- for (let [e, t] of [["maxMessageBytes", d], ["messagesPerSecond", f]]) t !== void 0 && (typeof t != "number" || !Number.isInteger(t) || t <= 0) && r.push(`\`${e}\` is a whole number above zero`);
12277
+ if (u$1.test(t) || r.push("a pattern is letters, digits and `:_.-`, with `{name}` for the part a page fills in — `board:{id}`"), !e$35(n)) return [...r, "a channel is an object: `{ access: { mode: \"public\" } }`"];
12278
+ let { access: i, publish: a, presence: o, grant: s, retain: c, maxMessageBytes: l, messagesPerSecond: f } = n, p = e$35(i) ? i.mode : void 0;
12279
+ typeof p != "string" || !d$1.has(p) ? r.push("`access` is { mode: \"public\" }, { mode: \"session\" } or { mode: \"role\", permissions: […] }") : p === "role" && !(e$35(i) && Array.isArray(i.permissions) && i.permissions.every((e) => typeof e == "string")) && r.push("`access: { mode: \"role\" }` names the permissions it needs: `permissions: [\"boardEdit\"]`"), a !== void 0 && a !== "clients" && a !== "server" && r.push("`publish` is \"clients\" (pages send) or \"server\" (only a flow's realtime.publish)"), o !== void 0 && typeof o != "boolean" && r.push("`presence` is true or false"), s !== void 0 && typeof s != "boolean" && r.push("`grant` is true (a page needs a grant from `realtime.grant` to open a topic) or false"), c !== void 0 && typeof c != "boolean" ? r.push("`retain` is true (the server keeps the latest message of each type for pages that join) or false") : c === !0 && a !== "server" && r.push("`retain: true` keeps what the server says, so only the server may speak: add `publish: \"server\"` — a page changes it through an action");
12280
+ for (let [e, t] of [["maxMessageBytes", l], ["messagesPerSecond", f]]) t !== void 0 && (typeof t != "number" || !Number.isInteger(t) || t <= 0) && r.push(`\`${e}\` is a whole number above zero`);
12261
12281
  return r;
12262
12282
  };
12263
12283
  //#endregion
@@ -12271,7 +12291,7 @@ var SAMPLE_SEGMENT = "x";
12271
12291
  var lintChannels = (ctx) => {
12272
12292
  const declared = ctx.schema.settings.channels;
12273
12293
  const patterns = Object.keys(declared ?? {});
12274
- for (const pattern of patterns) for (const problem of c$2(pattern, declared?.[pattern])) ctx.error("channel-declaration", `Channel "${pattern}": ${problem}.`);
12294
+ for (const pattern of patterns) for (const problem of f(pattern, declared?.[pattern])) ctx.error("channel-declaration", `Channel "${pattern}": ${problem}.`);
12275
12295
  for (const element of Object.values(ctx.flat)) {
12276
12296
  if (element.definition.type !== "channel") continue;
12277
12297
  if (element.definition.bindings?.attributes?.some((binding) => binding.to === "topic")) continue;
@@ -12281,7 +12301,9 @@ var lintChannels = (ctx) => {
12281
12301
  ctx.error("channel-topic", `${where} names no topic. Give it one a channel of the space covers: \`topic: 'board:{{ id }}'\`.`, element.id);
12282
12302
  continue;
12283
12303
  }
12284
- const match = a$1(topic.replace(/\{\{[^}]*\}\}/g, SAMPLE_SEGMENT), declared);
12304
+ const sample = topic.replace(/\{\{[^}]*\}\}/g, SAMPLE_SEGMENT);
12305
+ if (o$2(sample) !== void 0) continue;
12306
+ const match = l$2(sample, declared);
12285
12307
  const hasGrant = typeof element.attributes.grant === "string" && element.attributes.grant.trim() !== "" || element.definition.bindings?.attributes?.some((binding) => binding.to === "grant") === true;
12286
12308
  if (match?.declaration.grant === true && !hasGrant) ctx.error("channel-grant", `${where} opens "${topic}", a topic of the private channel "${match.pattern}" (\`grant: true\`), with no grant — the server refuses it every time. Bind \`grant\` to what the action that lets the visitor in returns from its \`realtime.grant\` step.`, element.id);
12287
12309
  if (!match) ctx.error("channel-topic", patterns.length ? `${where} opens "${topic}", which none of the space's channels covers (${patterns.map((pattern) => `"${pattern}"`).join(", ")}). Use a topic one of them matches, or declare it in \`channels\`.` : `${where} opens "${topic}", but the space declares no channels. Declare one at the top of the space: \`channels: { 'board:{id}': { access: { mode: 'public' } } }\`.`, element.id);
@@ -12307,7 +12329,7 @@ var lintInstances = (ctx) => {
12307
12329
  const bound = boundProps(element);
12308
12330
  for (const [name, prop] of Object.entries(declared)) if (prop.required && element.attributes[name] === void 0 && !bound.has(name)) ctx.error("prop-missing", `${where} places component "${component.id}" without "${name}", which it requires${prop.description ? ` — ${prop.description}` : ""}. Hand it in: \`component('${component.id}', { props: { ${name}: … } })\`.`, element.id);
12309
12331
  const written = Object.fromEntries(Object.keys(declared).map((name) => [name, element.attributes[name]]));
12310
- for (const { key, expected, got, options } of s$24(written, written, declared)) {
12332
+ for (const { key, expected, got, options } of s$23(written, written, declared)) {
12311
12333
  const value = written[key];
12312
12334
  const suggestion = options && typeof value === "string" ? didYouMean(value, options) : "";
12313
12335
  ctx.error("prop-value", `${where} hands component "${component.id}" "${key}" as ${got}, and it is declared ${expected}${options ? ` (one of ${options.map((option) => `'${option}'`).join(", ")})` : ""}${suggestion || "."}`, element.id);
@@ -13292,7 +13314,7 @@ var toStates = (states) => {
13292
13314
  };
13293
13315
  var CLASS_NAME = /^-?[_a-zA-Z][\w-]*$/;
13294
13316
  var toAncestors = (ancestors) => Object.entries(ancestors ?? {}).map(([name, ancestor]) => {
13295
- if (!p$7(name) && !CLASS_NAME.test(name)) throw new AuthoringError("ancestor-not-class", `The ancestor "${name}" is not a class name. An ancestor condition is keyed by a class that ancestor wears — \`[card.name]\` for a \`styles()\` declaration — or by \`'>'\` for the parent, whatever it wears.`);
13317
+ if (!p$6(name) && !CLASS_NAME.test(name)) throw new AuthoringError("ancestor-not-class", `The ancestor "${name}" is not a class name. An ancestor condition is keyed by a class that ancestor wears — \`[card.name]\` for a \`styles()\` declaration — or by \`'>'\` for the parent, whatever it wears.`);
13296
13318
  return [name, toBlocks({
13297
13319
  css: ancestor.css,
13298
13320
  states: ancestor.states,
@@ -13329,13 +13351,13 @@ var assertPseudo = (pseudo, part) => {
13329
13351
  const ruleSets = partRuleSets(part);
13330
13352
  for (const rules of ruleSets) for (const [property, value] of Object.entries(rules)) {
13331
13353
  if (property === "content") {
13332
- if (!i$14.includes(pseudo)) throw new AuthoringError("style-pseudo-content", `\`content\` on \`::${pseudo}\` draws nothing: only ${i$14.map((name) => `\`::${name}\``).join(", ")} take one.`);
13354
+ if (!i$13.includes(pseudo)) throw new AuthoringError("style-pseudo-content", `\`content\` on \`::${pseudo}\` draws nothing: only ${i$13.map((name) => `\`::${name}\``).join(", ")} take one.`);
13333
13355
  if (!m$5(String(value))) throw new AuthoringError("style-pseudo-content", `\`content: ${String(value)}\` on \`::${pseudo}\` is not text CSS can read, so nothing is drawn. Text goes in quotes inside the string — \`content: '"${String(value).replace(/"/g, "\\\"")}"'\` — and an empty box is \`'""'\`; \`counter()\`, \`attr()\` and \`url()\` are written as they are.`);
13334
13356
  continue;
13335
13357
  }
13336
- if (!u$8(pseudo, property)) throw new AuthoringError("style-pseudo-property", `\`${property}\` on \`::${pseudo}\` is dropped by every browser — \`::${pseudo}\` honours ${(l$8[pseudo] ?? []).map((name) => `\`${name}\``).join(", ")}. Style the element itself for the rest.`);
13358
+ if (!u$9(pseudo, property)) throw new AuthoringError("style-pseudo-property", `\`${property}\` on \`::${pseudo}\` is dropped by every browser — \`::${pseudo}\` honours ${(l$9[pseudo] ?? []).map((name) => `\`${name}\``).join(", ")}. Style the element itself for the rest.`);
13337
13359
  }
13338
- if (a$14.includes(pseudo) && !ruleSets.some((rules) => Object.hasOwn(rules, "content"))) throw new AuthoringError("style-pseudo-content", `\`::${pseudo}\` has no \`content\`, so the browser draws nothing for it. Give it one — \`content: '""'\` for an empty box — in its rules or in a state's.`);
13360
+ if (a$13.includes(pseudo) && !ruleSets.some((rules) => Object.hasOwn(rules, "content"))) throw new AuthoringError("style-pseudo-content", `\`::${pseudo}\` has no \`content\`, so the browser draws nothing for it. Give it one — \`content: '""'\` for an empty box — in its rules or in a state's.`);
13339
13361
  };
13340
13362
  var toPseudos = (pseudos) => {
13341
13363
  const parts = /* @__PURE__ */ new Map();
@@ -13367,7 +13389,7 @@ var pseudosAt = (pseudos, breakpoint) => {
13367
13389
  var toConditions = (conditions) => {
13368
13390
  const parts = /* @__PURE__ */ new Map();
13369
13391
  for (const [key, spec] of Object.entries(conditions ?? {})) {
13370
- const condition = c$8(key);
13392
+ const condition = c$9(key);
13371
13393
  if (!condition) throw new AuthoringError("style-condition-unknown", `Unknown condition "${key}"${didYouMean(key, t$11)}. A class's rules can hold under ${t$11.map((name) => `\`${name}\``).join(", ")}, or a container's width — \`container (max-width: 30rem)\`, \`container card (min-width: 480px)\` (min-width, max-width or both joined by \`and\`, in px, rem, em or ch).`);
13372
13394
  if (parts.has(condition)) throw new AuthoringError("style-condition-unknown", `"${key}" is \`${condition}\`, which the class already writes under another spelling: keep one.`);
13373
13395
  const part = partOf(spec);
@@ -15143,7 +15165,7 @@ var ONE_EXPRESSION = /^\s*\{\{[\s\S]*\}\}\s*$/;
15143
15165
  */
15144
15166
  var checkPageTemplates = (ctx, pageId, where) => {
15145
15167
  const page = ctx.element(pageId);
15146
- const providers = i$17({ flat: ctx.flat }, pageId).map((element) => e$29(element.definition.type, element.id));
15168
+ const providers = i$16({ flat: ctx.flat }, pageId).map((element) => e$29(element.definition.type, element.id));
15147
15169
  const readable = /* @__PURE__ */ new Set(["navigation", ...providers]);
15148
15170
  for (const [attribute, field] of PAGE_TEMPLATES) {
15149
15171
  const template = page?.attributes[attribute];
@@ -15152,7 +15174,7 @@ var checkPageTemplates = (ctx, pageId, where) => {
15152
15174
  continue;
15153
15175
  }
15154
15176
  if (typeof template !== "string" || !e$28(template)) continue;
15155
- const { issues, freeNames } = l$11(template);
15177
+ const { issues, freeNames } = l$12(template);
15156
15178
  const unreadable = freeNames.filter((name) => !readable.has(name));
15157
15179
  if (issues.length === 0 && unreadable.length === 0) continue;
15158
15180
  const why = issues.length > 0 ? `cannot be read as written — ${issues.join("; ")}` : `reads ${unreadable.map((name) => `\`${name}\``).join(", ")}, which is not there when the server answers`;
@@ -15160,6 +15182,8 @@ var checkPageTemplates = (ctx, pageId, where) => {
15160
15182
  ctx.error("page-template", `${where}: \`${field}\` ${why}. A page's own templates are evaluated by the server before the page reaches the browser, from its server providers — ${can} — and \`navigation\`. Read the record from a provider with \`runtime: 'server'\` on the page (or its layout), or write words of its own.`, pageId);
15161
15183
  }
15162
15184
  };
15185
+ /** A page `access`'s permissions as written — whatever they hold — or nothing when it has no list. */
15186
+ var permissionsOf = (access) => typeof access === "object" && access !== null && "permissions" in access && Array.isArray(access.permissions) ? access.permissions : void 0;
15163
15187
  /**
15164
15188
  * Pages: who each is for, and that no two answer the same visitors at one address — the router takes one and the
15165
15189
  * other can never be reached. Two pages on one path is a supported shape only when they differ by `accessLevel`: a
@@ -15174,9 +15198,12 @@ var lintPages = (ctx) => {
15174
15198
  checkPageTemplates(ctx, pageId, where);
15175
15199
  const { accessLevel, documentScroll, slug, folder } = page.attributes;
15176
15200
  if (accessLevel !== void 0 && accessLevel !== "" && !ACCESS_LEVELS.includes(accessLevel)) ctx.error("page-access-level", `${where}: \`accessLevel\` is ${JSON.stringify(accessLevel)}. It is one of ${ACCESS_LEVELS.map((level) => `'${level}'`).join(", ")}.`, pageId);
15177
- if (documentScroll !== void 0 && documentScroll !== "" && !n$36(documentScroll)) ctx.error("attribute-value", `${where}: \`documentScroll\` is ${JSON.stringify(documentScroll)}${typeof documentScroll === "string" && didYouMean(documentScroll, t$47) || "."} It is one of ${t$47.map((value) => `'${value}'`).join(", ")} — or left out, for a page that scrolls as any does.`, pageId);
15201
+ const { access } = page.attributes;
15202
+ const listed = permissionsOf(access);
15203
+ if (access !== void 0 && (!listed || listed.length === 0 || listed.some((name) => typeof name !== "string" || !name))) ctx.error("page-access", `${where}: \`access\` is ${JSON.stringify(access)}. It is \`{ permissions: ['…'] }\`, every one a permission name and at least one — or left out, for a page anybody may see.`, pageId);
15204
+ if (documentScroll !== void 0 && documentScroll !== "" && !n$36(documentScroll)) ctx.error("attribute-value", `${where}: \`documentScroll\` is ${JSON.stringify(documentScroll)}${typeof documentScroll === "string" && didYouMean(documentScroll, t$48) || "."} It is one of ${t$48.map((value) => `'${value}'`).join(", ")} — or left out, for a page that scrolls as any does.`, pageId);
15178
15205
  const path = `/${[typeof folder === "string" && folder ? folderPath(ctx, folder) : "", textOf(slug)].filter(Boolean).join("/")}`;
15179
- if (a$3(path)) ctx.error("page-route-reserved", `${where} answers at ${path}, under /fn — which is where the space's functions answer, never a page. Give it another slug (or its folder another one).`, pageId);
15206
+ if (a$2(path)) ctx.error("page-route-reserved", `${where} answers at ${path}, under /fn — which is where the space's functions answer, never a page. Give it another slug (or its folder another one).`, pageId);
15180
15207
  const key = `${path} ${typeof accessLevel === "string" && accessLevel ? accessLevel : "everyone"}`;
15181
15208
  const earlier = routes.get(key);
15182
15209
  if (earlier !== void 0) ctx.error("page-route-taken", `${where} answers at ${path} for the same visitors as ${earlier}, so one of them can never be reached. Give it another slug — or, for a sign-in page and the page behind it, \`accessLevel\` 'public' on one and 'authenticated' on the other.`, pageId);
@@ -15354,7 +15381,7 @@ var checkName = (ctx, name, template, where, site, scope, id) => {
15354
15381
  */
15355
15382
  var checkTemplate = (ctx, template, where, site, scope = /* @__PURE__ */ new Set(), id) => {
15356
15383
  if (!e$28(template)) return;
15357
- const { issues, freeNames } = l$11(template);
15384
+ const { issues, freeNames } = l$12(template);
15358
15385
  const reads = globalFieldsRead(template);
15359
15386
  checkComputedReads(ctx, reads, where, site, id);
15360
15387
  checkFlagReads(ctx, reads, where, id);
@@ -15777,7 +15804,7 @@ var checkRequiredMessage = (ctx, element, where) => {
15777
15804
  /** An `svg` draws one `<svg>…</svg>`; anything else renders nothing at all. */
15778
15805
  var checkSvgMarkup = (ctx, element, where) => {
15779
15806
  const { content } = element.attributes;
15780
- if (element.definition.type !== "svg" || typeof content !== "string" || content === "" || i$24(content)) return;
15807
+ if (element.definition.type !== "svg" || typeof content !== "string" || content === "" || i$23(content)) return;
15781
15808
  ctx.error("svg-not-svg", `${where} is an \`svg\` whose \`content\` is not one \`<svg>…</svg>\` (${JSON.stringify(shorten(content))}), so it draws nothing. Give it the SVG markup alone; HTML around it belongs in a \`blockHtml\`.`, element.id);
15782
15809
  };
15783
15810
  var lintElements = (ctx) => {
@@ -15821,7 +15848,7 @@ var isRead = (name, schema, elements) => {
15821
15848
  /** One declared flag, held to the shape the resolver reads. */
15822
15849
  var lintDeclaration = (ctx, name, flag) => {
15823
15850
  const where = `Feature flag "${name}"`;
15824
- if (!a$2(name)) ctx.error("flag-name", `${where} is not a name a template can read as \`flags.${name}\`. Use letters, digits and "_", starting with a letter or "_": "${name.replace(/[^A-Za-z0-9_]/g, "_")}".`);
15851
+ if (!a$1(name)) ctx.error("flag-name", `${where} is not a name a template can read as \`flags.${name}\`. Use letters, digits and "_", starting with a letter or "_": "${name.replace(/[^A-Za-z0-9_]/g, "_")}".`);
15825
15852
  if (!e$35(flag) || typeof flag.value !== "boolean" || !Array.isArray(flag.rules)) {
15826
15853
  ctx.error("flag-shape", `${where} is ${JSON.stringify(flag)}. A flag is { value: true | false, rules: [{ when: { combinator: 'and', rules: [...] }, value: true | false }] } — \`value\` is its answer when no rule matches.`);
15827
15854
  return;
@@ -15832,7 +15859,7 @@ var lintDeclaration = (ctx, name, flag) => {
15832
15859
  ctx.error("flag-rule-shape", `${at} is ${JSON.stringify(rule)}. A rule is { when: { … }, value: true | false }.`);
15833
15860
  return;
15834
15861
  }
15835
- if (!a$16(rule.when)) ctx.warn("flag-rule-empty", `${at} has no conditions, so it never decides anything — an unfinished rule is skipped, not read as "always". Give it a condition (\`{ field: 'environment', operator: '=', value: 'staging' }\`), or set the flag's \`value\` instead.`);
15862
+ if (!a$15(rule.when)) ctx.warn("flag-rule-empty", `${at} has no conditions, so it never decides anything — an unfinished rule is skipped, not read as "always". Give it a condition (\`{ field: 'environment', operator: '=', value: 'staging' }\`), or set the flag's \`value\` instead.`);
15836
15863
  });
15837
15864
  };
15838
15865
  /**
@@ -15844,7 +15871,7 @@ var lintFlags = (ctx) => {
15844
15871
  const elements = allElements(ctx.schema);
15845
15872
  for (const [name, flag] of Object.entries(declared)) {
15846
15873
  lintDeclaration(ctx, name, flag);
15847
- if (a$2(name) && !isRead(name, ctx.schema, elements)) ctx.warn("flag-unused", `Feature flag "${name}" is declared and nothing reads it — no element or page is gated on it, and no template reads \`flags.${name}\`. Gate what it switches (\`flag: '${name}'\`), or remove it once the feature has shipped.`);
15874
+ if (a$1(name) && !isRead(name, ctx.schema, elements)) ctx.warn("flag-unused", `Feature flag "${name}" is declared and nothing reads it — no element or page is gated on it, and no template reads \`flags.${name}\`. Gate what it switches (\`flag: '${name}'\`), or remove it once the feature has shipped.`);
15848
15875
  }
15849
15876
  for (const element of elements) {
15850
15877
  const gate = element.definition.flag;
@@ -15894,7 +15921,7 @@ var flowsOf$1 = (element) => {
15894
15921
  */
15895
15922
  var checkElementIds = (ctx, params, spec, at, hostId) => {
15896
15923
  const declared = spec ?? {};
15897
- const effective = c$20(params, declared, false);
15924
+ const effective = c$21(params, declared, false);
15898
15925
  for (const [key, param] of Object.entries(declared)) {
15899
15926
  const ids = params[key];
15900
15927
  if (param.type !== "elementIds" || !Array.isArray(ids) || param.when && !param.when(effective)) continue;
@@ -15957,7 +15984,7 @@ var checkAction = (ctx, node, where, hostId) => {
15957
15984
  var checkTriggerKeys = (ctx, node, where, hostId) => {
15958
15985
  if (node.action !== "onKey") return;
15959
15986
  const { keys } = node.params;
15960
- const problems = typeof keys === "string" && keys.trim() ? s$4(keys).problems : ["no keys at all"];
15987
+ const problems = typeof keys === "string" && keys.trim() ? s$3(keys).problems : ["no keys at all"];
15961
15988
  if (!problems.length) return;
15962
15989
  ctx.error("trigger-keys", `${where} starts a flow on a keyboard shortcut that cannot fire: ${problems.join("; ")}. Write one or several, with commas: \`onKey('f')\`, \`onKey('shift+f')\`, \`onKey('mod+k, escape')\`.`, hostId);
15963
15990
  };
@@ -16236,7 +16263,7 @@ var attributeText = (element, key) => {
16236
16263
  /** The path a link inside the space leads to, as the link resolves it: a page id (or its path), or a path of its own. */
16237
16264
  var pathOf = (ctx, link, mode) => {
16238
16265
  const href = attributeText(link, "href");
16239
- if (mode === "page") return s$3(ctx.flat, ctx.schema.pageFolders, href, true);
16266
+ if (mode === "page") return c$3(ctx.flat, ctx.schema.pageFolders, href, true);
16240
16267
  return `/${href}`.replaceAll(/\/+/g, "/").split(/[?#]/)[0];
16241
16268
  };
16242
16269
  /**
@@ -16267,9 +16294,9 @@ var lintMotion = (ctx) => {
16267
16294
  const { motion } = element.definition;
16268
16295
  if (motion === void 0) return;
16269
16296
  const where = ctx.describe(element.id);
16270
- const problems = p$10(motion);
16297
+ const problems = p$9(motion);
16271
16298
  if (problems.length > 0) ctx.error("motion-invalid", `${where} has a motion the page cannot play: ${problems.join("; ")}. For example \`motion: { enter: 'fade-up', on: 'view' }\`.`, element.id);
16272
- if (a$6(element)) ctx.error("motion-no-tag", `${where} has a motion but renders no element of its own (no \`subType\`), so there is nothing to move. Put the motion on what it wraps, or give it a tag.`, element.id);
16299
+ if (a$5(element)) ctx.error("motion-no-tag", `${where} has a motion but renders no element of its own (no \`subType\`), so there is nothing to move. Put the motion on what it wraps, or give it a tag.`, element.id);
16273
16300
  });
16274
16301
  };
16275
16302
  //#endregion
@@ -16343,13 +16370,13 @@ var lintVariables = (ctx) => {
16343
16370
  * (`plitzi-…`). Warned, not refused: a plugin's stylesheet can declare one out of sight of the space.
16344
16371
  */
16345
16372
  var lintAnimations = (ctx) => {
16346
- const declared = new Set(f$2(ctx.schema.settings.customCss));
16373
+ const declared = new Set(f$3(ctx.schema.settings.customCss));
16347
16374
  const reported = /* @__PURE__ */ new Set();
16348
16375
  const items = Object.values(ctx.style.platform).flatMap((items) => Object.values(items));
16349
16376
  for (const item of items) for (const rule of rulesOf$2(item)) {
16350
16377
  const value = rule["animation-name"];
16351
16378
  if (value === void 0) continue;
16352
- for (const name of p$5(String(value))) {
16379
+ for (const name of p$4(String(value))) {
16353
16380
  if (declared.has(name) || name.startsWith("plitzi-") || reported.has(name)) continue;
16354
16381
  reported.add(name);
16355
16382
  ctx.warn("animation-name-unknown", `The ${item.type} "${item.name}" plays the keyframes "${name}", which the space does not declare, so nothing moves${didYouMean(name, declared)}. Declare them in the space's \`keyframes\` — \`keyframes: { '${name}': { from: { … }, to: { … } } }\` — or name ones it has.`, void 0, {
@@ -16711,14 +16738,14 @@ var lintSpace$1 = ({ schema, style }, catalogs = {}) => {
16711
16738
  //#region src/schema/notifications.ts
16712
16739
  /** Refuses what would not style anything — the check every writer of `notifications` is held to. */
16713
16740
  var checked = (spec) => {
16714
- const problem = a$10({ ...spec }, didYouMean);
16741
+ const problem = a$9({ ...spec }, didYouMean);
16715
16742
  if (problem) throw new AuthoringError("notifications-shape", problem);
16716
16743
  return spec;
16717
16744
  };
16718
16745
  /** The rules that style the toasts, or `''` when there is nothing to say; refuses a spec that is not sound. */
16719
16746
  var notificationsCss = (spec) => o$11(checked(spec));
16720
16747
  /** The space's custom CSS with its notifications' rules after it; refuses a spec that is not sound. */
16721
- var withNotificationsCss = (customCss, spec) => s$10(customCss, checked(spec));
16748
+ var withNotificationsCss = (customCss, spec) => s$9(customCss, checked(spec));
16722
16749
  //#endregion
16723
16750
  //#region src/schema/pageFamily.ts
16724
16751
  var FAMILY = Symbol("plitzi.pageFamily");
@@ -17066,7 +17093,7 @@ var declarationsIn = (body) => splitTopLevel(body, ";").flatMap((declaration) =>
17066
17093
  //#region src/decompile/customCss.ts
17067
17094
  var STATE_SET$1 = new Set(STYLE_STATES.filter((state) => state !== "hidden"));
17068
17095
  /** The states a selector writes as something other than their name — `:first-child`, `:nth-child(odd)`, `current`. */
17069
- var WRITTEN_STATES = [...STATE_SET$1].filter((state) => u$7(state) !== `:${state}`);
17096
+ var WRITTEN_STATES = [...STATE_SET$1].filter((state) => u$8(state) !== `:${state}`);
17070
17097
  /**
17071
17098
  * The `current` state as a selector writes it: the whole of it, as the style compiler does, or one of the attributes it
17072
17099
  * stands for — `[aria-current='page']` on a nav link, `[aria-pressed='true']` on a toggle, `[aria-selected='true']` on a
@@ -17077,7 +17104,7 @@ var CURRENT_ATTRIBUTES = /\[aria-current=(["'])page\1\]|\[aria-(?:pressed|select
17077
17104
  /** The `expanded` state in either quotes: `[aria-expanded='true']`. */
17078
17105
  var EXPANDED_ATTRIBUTE = /\[aria-expanded=(["'])true\1\]/g;
17079
17106
  /** Every way of writing a state, written as the state it is (`:first`, `:current`), so one pattern reads every state. */
17080
- var asStateNames = (selector) => WRITTEN_STATES.reduce((written, state) => written.replaceAll(u$7(state), `:${state}`), selector).replaceAll(CURRENT_ATTRIBUTES, ":current").replaceAll(EXPANDED_ATTRIBUTE, ":expanded");
17107
+ var asStateNames = (selector) => WRITTEN_STATES.reduce((written, state) => written.replaceAll(u$8(state), `:${state}`), selector).replaceAll(CURRENT_ATTRIBUTES, ":current").replaceAll(EXPANDED_ATTRIBUTE, ":expanded");
17081
17108
  var isStyleState$1 = (state) => STATE_SET$1.has(state);
17082
17109
  var STATE_THEN_PSEUDO = /^(?::([a-z-]+))?(?:::([a-z-]+))?$/;
17083
17110
  /**
@@ -17157,7 +17184,7 @@ var declarationsOf = (body) => {
17157
17184
  * there, and a `content` CSS can read. A rule that does not is left in `customCss`, where it was written and does exactly
17158
17185
  * what it did.
17159
17186
  */
17160
- var pseudoHolds = (pseudo, rules) => Object.entries(rules).every(([property, value]) => property === "content" ? i$14.includes(pseudo) && m$5(String(value)) : u$8(pseudo, property));
17187
+ var pseudoHolds = (pseudo, rules) => Object.entries(rules).every(([property, value]) => property === "content" ? i$13.includes(pseudo) && m$5(String(value)) : u$9(pseudo, property));
17161
17188
  /** Where a pseudo-element's rules land, its state aside: the class, the pseudo-element and the condition. */
17162
17189
  var pseudoKey = ({ className, pseudo, condition }) => `${className}::${pseudo ?? ""}@${condition ?? ""}`;
17163
17190
  /**
@@ -17167,7 +17194,7 @@ var pseudoKey = ({ className, pseudo, condition }) => `${className}::${pseudo ??
17167
17194
  */
17168
17195
  var drawnPseudos = (folded) => {
17169
17196
  const drawn = new Set(folded.flatMap(({ targets, rules }) => Object.hasOwn(rules, "content") ? targets.filter((target) => !target.state).map(pseudoKey) : []));
17170
- return ({ targets }) => targets.every((target) => !target.pseudo || !a$14.includes(target.pseudo) || drawn.has(pseudoKey(target)));
17197
+ return ({ targets }) => targets.every((target) => !target.pseudo || !a$13.includes(target.pseudo) || drawn.has(pseudoKey(target)));
17171
17198
  };
17172
17199
  /** One rule's targets and declarations, or `undefined` when any of it is something a class cannot hold. */
17173
17200
  var ruleFold = (selector, body, isClass, accepts, condition) => {
@@ -17203,7 +17230,7 @@ var foldCustomCss = (stylesheet, isClass, accepts = () => true) => {
17203
17230
  const segments = stylesheetSegments(stylesheet);
17204
17231
  const candidates = segments.map((segment) => {
17205
17232
  if (segment.kind === "other") return;
17206
- const condition = segment.kind === "atRule" ? f$3(segment.prelude) : void 0;
17233
+ const condition = segment.kind === "atRule" ? f$4(segment.prelude) : void 0;
17207
17234
  if (segment.kind === "atRule" && !condition) return;
17208
17235
  const rules = segment.kind === "rule" ? [ruleFold(segment.selector, segment.body, isClass, accepts)] : stylesheetSegments(segment.body).filter((part) => part.kind !== "other" || part.text.trim()).map((part) => part.kind === "rule" ? ruleFold(part.selector, part.body, isClass, accepts, condition) : void 0);
17209
17236
  return rules.length > 0 && rules.every((rule) => rule !== void 0) ? rules : void 0;
@@ -17284,7 +17311,7 @@ var suggestCustomCss = (schema, style) => {
17284
17311
  saves: 0,
17285
17312
  message: `\`customCss\` repeats what the SDK already does on every space: ${sdkDefaults.join("; ")}. Remove it — keep only what goes beyond it, like a hover that moves a card (\`transform: none\` under reduced motion).`
17286
17313
  });
17287
- const ownCss = d$5(customCss).customCss;
17314
+ const ownCss = d$6(customCss).customCss;
17288
17315
  if (TOAST_RULES.some((rule) => rule.test(ownCss))) suggestions.push({
17289
17316
  code: "custom-css-notifications",
17290
17317
  elementIds: [],
@@ -17381,7 +17408,7 @@ var slotOf = (selector, documents) => {
17381
17408
  if (!match || !stateAndPseudoOf(selector.slice(match[0].length))) return;
17382
17409
  const [, name, tag] = match;
17383
17410
  const type = documents.get(name);
17384
- const parts = Object.hasOwn(t$33, tag) ? t$33[tag] : void 0;
17411
+ const parts = Object.hasOwn(t$34, tag) ? t$34[tag] : void 0;
17385
17412
  return type && parts?.length ? {
17386
17413
  type,
17387
17414
  slot: parts[parts.length - 1]
@@ -18253,7 +18280,7 @@ var validateStyleTargets = (schema, style) => Object.values(schema.flat).flatMap
18253
18280
  }] : [];
18254
18281
  });
18255
18282
  var validateSpace$1 = ({ schema, style }, options = {}) => {
18256
- const schemaResult = s$5(schema, options);
18283
+ const schemaResult = s$4(schema, options);
18257
18284
  const structural = [...schemaResult.errors, ...validateStyle(style)];
18258
18285
  const lint = structural.length === 0 ? lintSpace$1({
18259
18286
  schema,
@@ -18393,6 +18420,7 @@ var PAGE_SPEC_FIELDS = {
18393
18420
  default: "isDefault",
18394
18421
  folder: "folder",
18395
18422
  accessLevel: "accessLevel",
18423
+ access: "access",
18396
18424
  seoPageTitle: "seoTitle",
18397
18425
  seoPageDescription: "seoDescription",
18398
18426
  notFound: "notFound",
@@ -18405,7 +18433,7 @@ var layoutAttributes = (layout) => layout ? {
18405
18433
  var SpaceAuthor = class {
18406
18434
  spec;
18407
18435
  options;
18408
- flatMap = new d$1({
18436
+ flatMap = new d$2({
18409
18437
  flat: {},
18410
18438
  variables: []
18411
18439
  });
@@ -18592,7 +18620,7 @@ var SpaceAuthor = class {
18592
18620
  const sources = /* @__PURE__ */ new Map();
18593
18621
  this.collectSources(component.root, sources);
18594
18622
  this.componentTrees.set(component.id, {
18595
- map: new d$1({
18623
+ map: new d$2({
18596
18624
  flat: {},
18597
18625
  variables: []
18598
18626
  }),
@@ -18808,7 +18836,7 @@ var SpaceAuthor = class {
18808
18836
  }
18809
18837
  /** An ancestor condition names a class some ancestor wears; one this space does not declare can never match. */
18810
18838
  assertAncestorClasses() {
18811
- for (const breakpoint of BREAKPOINTS$1) for (const item of Object.values(this.platform[breakpoint])) for (const [slot, block] of Object.entries(item.attributes)) for (const ancestor of Object.keys(block.ancestors ?? {}).filter((name) => !p$7(name))) this.assertClass(ancestor, `The ${item.type} "${item.name}" (${slot}, ${breakpoint}), in its \`ancestors\`,`);
18839
+ for (const breakpoint of BREAKPOINTS$1) for (const item of Object.values(this.platform[breakpoint])) for (const [slot, block] of Object.entries(item.attributes)) for (const ancestor of Object.keys(block.ancestors ?? {}).filter((name) => !p$6(name))) this.assertClass(ancestor, `The ${item.type} "${item.name}" (${slot}, ${breakpoint}), in its \`ancestors\`,`);
18812
18840
  }
18813
18841
  /** `<type>-<n>` for an element nobody named. Positional and deterministic, so a re-run writes the same document;
18814
18842
  * it steps over anything the author named so a derived name can never take one. */
@@ -18828,7 +18856,7 @@ var SpaceAuthor = class {
18828
18856
  parseFonts(fonts) {
18829
18857
  return fonts.map((font, index) => {
18830
18858
  try {
18831
- return h$2(font);
18859
+ return h$3(font);
18832
18860
  } catch (error) {
18833
18861
  const reason = error instanceof Error ? error.message : String(error);
18834
18862
  throw new AuthoringError("font-invalid", `Font ${index} ("${font.family}") in space "${this.spec.permanentUrl}": ${reason}`, { cause: error });
@@ -19007,9 +19035,9 @@ var SpaceAuthor = class {
19007
19035
  if (componentIds.has(component.id)) throw new AuthoringError("component-duplicate", `Two components are called "${component.id}". A component's id is the one name it is placed by.`);
19008
19036
  componentIds.add(component.id);
19009
19037
  for (const [name, prop] of Object.entries(component.props ?? {})) {
19010
- const problem = c$3(name);
19038
+ const problem = c$4(name);
19011
19039
  if (problem) throw new AuthoringError("prop-name", `${where}: ${problem}.`);
19012
- const types = t$62;
19040
+ const types = t$63;
19013
19041
  const type = prop.type;
19014
19042
  if (!types.includes(type)) throw new AuthoringError("prop-type-unknown", `${where} declares the prop "${name}" as \`${type}\`, which is no type${didYouMean(type, [...types]) || "."} A prop is one of ${types.join(", ")}: words are \`text\`.`);
19015
19043
  }
@@ -19045,7 +19073,7 @@ var SpaceAuthor = class {
19045
19073
  assertChannels() {
19046
19074
  if (this.spec.settings?.channels !== void 0) throw new AuthoringError("setting-misplaced", "`settings.channels` is written through `channels` at the top of the space, not inside `settings`.");
19047
19075
  for (const [pattern, declaration] of Object.entries(this.spec.channels ?? {})) {
19048
- const [problem] = c$2(pattern, declaration);
19076
+ const [problem] = f(pattern, declaration);
19049
19077
  if (problem) throw new AuthoringError("channel-declaration", `Channel "${pattern}": ${problem}.`);
19050
19078
  }
19051
19079
  }
@@ -19207,6 +19235,7 @@ var SpaceAuthor = class {
19207
19235
  ...page.folder === void 0 ? {} : { folder: page.folder },
19208
19236
  ...layoutAttributes(page.layout),
19209
19237
  ...page.accessLevel ? { accessLevel: page.accessLevel } : {},
19238
+ ...page.access ? { access: { permissions: [...page.access.permissions] } } : {},
19210
19239
  seoEnabled: Boolean(page.seoTitle ?? page.seoDescription),
19211
19240
  ...page.seoTitle ? { seoPageTitle: page.seoTitle } : {},
19212
19241
  ...page.seoDescription ? { seoPageDescription: page.seoDescription } : {},
@@ -19238,7 +19267,8 @@ var SpaceAuthor = class {
19238
19267
  slug: page.slug,
19239
19268
  path: this.routeFor(page),
19240
19269
  ...page.accessLevel ? { accessLevel: page.accessLevel } : {},
19241
- params: m$1(page.slug),
19270
+ ...page.access ? { access: { permissions: [...page.access.permissions] } } : {},
19271
+ params: h$1(page.slug),
19242
19272
  ...page.layout ? { layout: page.layout.id } : {},
19243
19273
  elements: {}
19244
19274
  };
@@ -19281,7 +19311,7 @@ var SpaceAuthor = class {
19281
19311
  for (const name of Object.keys(given)) if (!names.includes(name)) throw new AuthoringError("prop-unknown", `${where} hands component "${target.id}" "${name}", which it does not declare${didYouMean(name, names) || "."} It declares ${names.length > 0 ? names.join(", ") : "no props"}.`);
19282
19312
  const bound = new Set(spec.bind === void 0 ? [] : toBindingSpecs(spec.bind).map((binding) => binding.to));
19283
19313
  for (const [name, prop] of Object.entries(props)) if (prop.required && given[name] === void 0 && !bound.has(name)) throw new AuthoringError("prop-missing", `${where} places component "${target.id}" without "${name}", which it requires${prop.description ? ` — ${prop.description}` : ""}. Hand it in: \`component('${target.id}', { props: { ${name}: … } })\`, or bind it.`);
19284
- const invalid = s$24(given, given, props).at(0);
19314
+ const invalid = s$23(given, given, props).at(0);
19285
19315
  if (invalid) throw new AuthoringError("prop-value", `${where} hands component "${target.id}" "${invalid.key}" as ${invalid.got}, and it is declared ${invalid.expected}${invalid.options ? ` — one of ${invalid.options.map((option) => `'${option}'`).join(", ")}` : ""}.`);
19286
19316
  const slots = target.slots ?? [];
19287
19317
  for (const child of spec.children ?? []) {
@@ -19574,7 +19604,7 @@ var SpaceAuthor = class {
19574
19604
  ...conditional ? { conditional: true } : {},
19575
19605
  ...shownWith === void 0 ? {} : { shownWith },
19576
19606
  ...[...ancestors].some((ancestor) => REPEATING_TYPES.has(tree.map.flat[ancestor].definition.type)) ? { repeated: true } : {},
19577
- ...a$6(element) || this.drawsNothing(element) ? { boxless: true } : {}
19607
+ ...a$5(element) || this.drawsNothing(element) ? { boxless: true } : {}
19578
19608
  });
19579
19609
  const children = spec.row === void 0 ? spec.children : this.rowChildren(spec, spec.row, id, where);
19580
19610
  const childrenAbove = aboveChildren(conditional, shownWith, this.choosesChildren(element));
@@ -20215,7 +20245,7 @@ var withNamedIds = (schema) => {
20215
20245
  const isTaken = (candidate) => taken.has(candidate);
20216
20246
  const renames = stale.map((element) => {
20217
20247
  const idRef = idRefOf(element);
20218
- const to = idRef ? u$9(idRef, isTaken) : l$9(element.definition.type, isTaken);
20248
+ const to = idRef ? u$10(idRef, isTaken) : l$10(element.definition.type, isTaken);
20219
20249
  taken.add(to);
20220
20250
  return {
20221
20251
  from: element.id,
@@ -21182,6 +21212,7 @@ var PAGE_ATTRIBUTES = /* @__PURE__ */ new Set([
21182
21212
  "layout",
21183
21213
  "layoutContainer",
21184
21214
  "accessLevel",
21215
+ "access",
21185
21216
  "unauthorizedBehaviour",
21186
21217
  "unauthorizedPageRedirect",
21187
21218
  "seoEnabled",
@@ -21437,8 +21468,8 @@ var SpecReader = class {
21437
21468
  if (!name || !permanentUrl) throw new Error("The document names no space (`schema.definition` is empty): pass `name` and `permanentUrl` so the ids it derives are stable.");
21438
21469
  this.indexStyle(style);
21439
21470
  const written = schema.settings.customCss;
21440
- const { keyframes, customCss: withoutKeyframes } = u$3(typeof written === "string" ? written : "");
21441
- const { notifications, customCss: writtenOwn } = d$5(withoutKeyframes);
21471
+ const { keyframes, customCss: withoutKeyframes } = u$4(typeof written === "string" ? written : "");
21472
+ const { notifications, customCss: writtenOwn } = d$6(withoutKeyframes);
21442
21473
  const ownCss = this.foldCustomCss(writtenOwn);
21443
21474
  const pageFolders = this.readFolders();
21444
21475
  const roots = this.collectRoots();
@@ -21881,6 +21912,7 @@ var SpecReader = class {
21881
21912
  const folder = this.folderOf(attributes.folder, where);
21882
21913
  const layout = this.layoutRefOf(attributes, where);
21883
21914
  const accessLevel = attributes.accessLevel === "public" || attributes.accessLevel === "authenticated" ? attributes.accessLevel : void 0;
21915
+ const access = t$25(attributes);
21884
21916
  const redirect = attributes.unauthorizedBehaviour === "redirect" && typeof attributes.unauthorizedPageRedirect === "string" ? attributes.unauthorizedPageRedirect : void 0;
21885
21917
  const seoTitle = typeof attributes.seoPageTitle === "string" ? attributes.seoPageTitle : "";
21886
21918
  const seoDescription = typeof attributes.seoPageDescription === "string" ? attributes.seoPageDescription : "";
@@ -21900,6 +21932,7 @@ var SpecReader = class {
21900
21932
  ...folder ? { folder } : {},
21901
21933
  ...layout ? { layout } : {},
21902
21934
  ...accessLevel ? { accessLevel } : {},
21935
+ ...access ? { access } : {},
21903
21936
  ...redirect ? { unauthorizedRedirect: redirect } : {},
21904
21937
  ...this.pageStyle(page.definition.styleSelectors.base),
21905
21938
  ...this.readFlows(page),
@@ -21998,7 +22031,7 @@ var SpecReader = class {
21998
22031
  */
21999
22032
  placedNames(element) {
22000
22033
  const { referenceId } = element.attributes;
22001
- const component = m$2(element) && typeof referenceId === "string" ? p$2(this.documents.schema, referenceId) : void 0;
22034
+ const component = m$2(element) && typeof referenceId === "string" ? p$1(this.documents.schema, referenceId) : void 0;
22002
22035
  const parentId = element.definition.parentId;
22003
22036
  const parent = parentId && Object.hasOwn(this.flat, parentId) ? this.flat[parentId] : void 0;
22004
22037
  return [...Object.keys(component?.props ?? {}), ...parent && m$2(parent) ? ["slot"] : []];
@@ -22868,7 +22901,7 @@ var explainSteps = (name) => {
22868
22901
  reads: Object.keys(step.preview ?? {})
22869
22902
  });
22870
22903
  }
22871
- const shared = Object.hasOwn(a$23, name);
22904
+ const shared = Object.hasOwn(a$22, name);
22872
22905
  const definition = definitionIn(typeCallbackDefinitions, name);
22873
22906
  if (shared || definition) {
22874
22907
  const builder = builderOf(name, "callback");
@@ -22876,12 +22909,12 @@ var explainSteps = (name) => {
22876
22909
  steps.push({
22877
22910
  kind: "step",
22878
22911
  name,
22879
- title: own ? own.title : a$23[name].title,
22912
+ title: own ? own.title : a$22[name].title,
22880
22913
  type: "callback",
22881
22914
  ...builder ? { builder } : {},
22882
22915
  answeredBy: Object.entries(elementCallbacks).filter(([, callbacks]) => callbacks.includes(name)).map(([type]) => type),
22883
- params: own ? fromCallback(own) : fromSpec(a$23[name].params),
22884
- reads: Object.keys((own ? own.preview : a$23[name].preview) ?? {})
22916
+ params: own ? fromCallback(own) : fromSpec(a$22[name].params),
22917
+ reads: Object.keys((own ? own.preview : a$22[name].preview) ?? {})
22885
22918
  });
22886
22919
  }
22887
22920
  if (Object.hasOwn(BUILTIN_UTILITIES, name)) {
@@ -22957,7 +22990,7 @@ var explainList = (kind) => {
22957
22990
  })),
22958
22991
  ...Object.entries({
22959
22992
  ...typeCallbackDefinitions,
22960
- ...a$23
22993
+ ...a$22
22961
22994
  }).map(([name, step]) => ({
22962
22995
  name,
22963
22996
  summary: `${step.title} (on an element)`
@@ -26430,7 +26463,7 @@ var MODIFIER_NAMES = {
26430
26463
  var isMacIn = () => /Mac|iPhone|iPad|iPod/.test(navigator.userAgent);
26431
26464
  /** A shortcut as `onKey` writes it, as the key a driver presses. Refuses anything `onKey` would. */
26432
26465
  var shortcutKey = (shortcut, isMac) => {
26433
- const { combos, problems } = s$4(shortcut, isMac);
26466
+ const { combos, problems } = s$3(shortcut, isMac);
26434
26467
  if (problems.length > 0 || combos.length !== 1) throw new Error(problems.length > 0 ? `Not a shortcut: ${problems.join("; ")}` : `"${shortcut}" is ${combos.length} shortcuts: press one at a time`);
26435
26468
  const [combo] = combos;
26436
26469
  const plus = combo.endsWith("+");
@@ -26559,7 +26592,7 @@ var ELEMENT_CATALOGS = {
26559
26592
  utilities: BUILTIN_UTILITIES,
26560
26593
  triggers: elementTriggers,
26561
26594
  callbacks: elementCallbacks,
26562
- sharedCallbacks: a$23
26595
+ sharedCallbacks: a$22
26563
26596
  },
26564
26597
  sourceTypes: elementSourceTypes,
26565
26598
  ancestorTypes: elementAncestorTypes,
@@ -26659,4 +26692,4 @@ var validateSnippet = (snippet, options = {}) => validateSnippet$1(snippet, {
26659
26692
  ...options
26660
26693
  });
26661
26694
  //#endregion
26662
- export { explainKindOf as $, groupBindings as $i, removeState as $n, elementsFromManifest as $r, expandShorthandPatch as $t, onScreen as A, elementTypeNames as Aa, reference as Ai, flagGateOf as An, on as Ar, createTw as At, catalogTemplateFiles as B, t$60 as Ba, component as Bi, appendState as Bn, onScroll as Br, isStyleDeclaration as Bt, diffPictures as C, elementCatalog as Ca, listItem as Ci, digest as Cn, carouselPause as Cr, refusalOf as Ct, unrollPage as D, elementSlots as Da, pagination as Di, locate as Dn, closeModal as Dr, withNotificationsCss as Dt, loadImages as E, elementPartTypes as Ea, nodeHtml as Ei, instanceSelectorFor as En, closeDialog as Er, notificationsCss as Et, dataIssues as F, elementAttributeNames as Fa, tabContainerHeader as Fi, BUILTIN_UTILITIES as Fn, onInterval as Fr, className as Ft, darkScheme as G, c$20 as Ga, inferredLinkMode as Gi, clearState as Gn, reloadApi as Gr, STYLE_STATES as Gt, toPortableSource as H, i$27 as Ha, defaultLabel as Hi, authLogout as Hn, openDialog as Hr, splitClassList as Ht, answerAction as I, e$38 as Ia, tabContainerItem as Ii, applyUtility as In, onKey as Ir, classNames as It, importProbe as J, s$24 as Ja, activeOn as Ji, delay as Jn, scrollIntoView as Jr, sameBlocks as Jt, importSlug as K, n$47 as Ka, COMPONENT_SOURCES as Ki, copyToClipboard as Kn, resetForm as Kr, css as Kt, CATALOG_TEMPLATE_IDENTITY as L, i$26 as La, text$1 as Li, getUtility as Ln, onLoad as Lr, classRefs as Lt, failedFlowText as M, typeTriggerDefinitions as Ma, svg as Mi, authoringCodesTable as Mn, onFlowEnd as Mr, column as Mt, readDevTools as N, n$36 as Na, tabContainer as Ni, defineAction as Nn, onFlowError as Nr, grid as Nt, inspectDocument as O, elementSourceTypes as Oa, paragraph as Oi, pathForSlug as On, declaredCallback as Or, FIXABLE_CODES as Ot, readDevToolsInPage as P, t$47 as Pa, tabContainerBody as Pi, taskAction as Pn, onFlowProgress as Pr, row as Pt, explain as Q, o$27 as Qa, boundAttribute as Qi, navigate as Qn, updateElement as Qr, expandShorthand as Qt, blankSpace as R, n$46 as Ra, themeToggle as Ri, SET_STATE_TYPES as Rn, onPageLoad as Rr, isClassModifier as Rt, comparePictures as S, elementCallbacks as Sa, list$1 as Si, y as Sn, carouselNext as Sr, SpaceRefusedError as St, profilePictures as T, elementLeafTypes as Ta, modalContainer as Ti, buildHandles as Tn, carouselPrevious as Tr, pageFamily as Tt, space as U, o$24 as Ua, defineElement as Ui, authRefreshDetails as Un, openModal as Ur, styles as Ut, emptyTemplateFiles as V, a$23 as Va, defaultAttributes as Vi, authLogin as Vn, onSubmit as Vr, modifierClassName as Vt, space$1 as W, s$22 as Wa, element as Wi, cancelServerAction as Wn, publishOn as Wr, BREAKPOINTS$1 as Wt, EXPLAIN_KINDS as X, a$26 as Xa, authorBinding as Xi, invalidateQueries as Xn, setFieldValue as Xr, toResponsive as Xt, BUILDER_NAMES as Y, t$62 as Ya, activeWhen as Yi, hostAction as Yn, scrollTo as Yr, toBlocks as Yt, GLOBAL_CALLBACK_BUILDERS as Z, i$30 as Za, bindTemplate as Zi, moveState as Zn, toggleElement as Zr, cssShorthands as Zt, summariseRenders as _, AuthoringError as _a, form as _i, o$1 as _n, applyBuiltinCallback as _r, assertSpaceValid as _t, locateClasses as a, visibleWhen as aa, blockJsx as ai, isCssProperty as an, toggleState as ar, SCHEMA_SETTINGS as at, pageTexts as b, elementAncestorTypes as ba, image as bi, s$1 as bn, cancelApi as br, suggestClassOverrides as bt, validateSnippet as c, r$16 as ca, carouselTrack as ci, _ as cn, authorFlow as cr, actionSpecFromEntry as ct, singlePageSpace as d, actionSource as da, custom$1 as di, d as dn, named$2 as dr, BUILTIN_TRANSFORMERS as dt, hasVisibilityBinding as ea, withPluginCatalogs as ei, expandShorthandTraced as en, runServerAction as er, explainList as et, withElement as f, source as fa, dialogContainer as fi, g as fn, when as fr, getTransformer as ft, inspectRenders as g, AUTHORING_CODES as ga, fontAwesome as gi, m as gn, BUILTIN_GLOBAL_CALLBACKS as gr, PAGE_SPEC_FIELDS as gt, openPage as h, scope as ha, embed as hi, l$1 as hn, whileRunning as hr, assertSnippetValid as ht, lintSpace as i, variantFrom as ia, blockHtml as ii, cssPropertyName as in, toggleInState as ir, specToSource as it, onScreenIfChosen as j, typeCallbackDefinitions as ja, richText as ji, flagSpecOf as jn, onClick as jr, tw as jt, inspectPage as k, elementTriggers as ka, plitziSdk as ki, selectorFor as kn, declaredTrigger as kr, tokens as kt, validateSpace as l, t$20 as la, channel as li, a as ln, authorFlows as lr, actionToSource as lt, shortcutKey as m, closest as ma, dropdownPopup as mi, i as mn, whenSucceeded as mr, transformerCatalog as mt, authorSpace as n, resolveSource as na, i$9 as ni, cssNumberValue as nn, setState as nr, ELEMENT_FIELDS as nt, locateElements as o, withVisibility as oa, button$1 as oi, isCustomProperty as on, twigTemplate as or, specFromSpace as ot, pressShortcut as p, twig as pa, dropdown as pi, h as pn, whenFailed as pr, suggestTransformer as pt, importedFiles as q, r$37 as qa, GLOBAL_SOURCES as qi, cycleState as qn, scrollBy as qr, isRuleSetSpec as qt, fixSpace as r, toBindingSpecs as ra, apiContainer as ri, cssProperties as rn, stepState as rr, SPACE_FIELDS as rt, planFixes as s, n$17 as sa, carousel as si, suggestCssProperty as sn, webHook as sr, compareSpaces as st, authorSnippet as t, hiddenWhen as ta, d$5 as ti, shorthandLonghands as tn, runServerActionOrNotify as tr, explanationText as tt, compactSvg as u, e$35 as ua, container as ui, c$1 as un, flowStepIds as ur, withNamedIds as ut, PAGE_TEXT_LIMIT as v, authoringCodeEntry as va, formControl as vi, p as vn, getGlobalCallback as vr, suggestSpace as vt, pageRegions as w, elementDefaultAttributes as wa, markdown as wi, slugify as wn, carouselPlay as wr, familyOf as wt, alignPictures as x, elementAttributeValues as xa, link as xi, u as xn, carouselGoTo as xr, unusedDeclarations as xt, compareTexts as y, isSuggestionCode as ya, heading as yi, r as yn, announceOn as yr, withoutQuieted as yt, blankTemplateFiles as z, r$35 as za, video as zi, addNotification as zn, onPointerDown as zr, isClassRef as zt };
26695
+ export { explainKindOf as $, groupBindings as $i, removeState as $n, elementsFromManifest as $r, expandShorthandPatch as $t, onScreen as A, elementTypeNames as Aa, reference as Ai, flagGateOf as An, on as Ar, createTw as At, catalogTemplateFiles as B, t$61 as Ba, component as Bi, appendState as Bn, onScroll as Br, isStyleDeclaration as Bt, diffPictures as C, elementCatalog as Ca, listItem as Ci, digest as Cn, carouselPause as Cr, refusalOf as Ct, unrollPage as D, elementSlots as Da, pagination as Di, locate as Dn, closeModal as Dr, withNotificationsCss as Dt, loadImages as E, elementPartTypes as Ea, nodeHtml as Ei, instanceSelectorFor as En, closeDialog as Er, notificationsCss as Et, dataIssues as F, elementAttributeNames as Fa, tabContainerHeader as Fi, BUILTIN_UTILITIES as Fn, onInterval as Fr, className as Ft, darkScheme as G, c$21 as Ga, inferredLinkMode as Gi, clearState as Gn, reloadApi as Gr, STYLE_STATES as Gt, toPortableSource as H, i$26 as Ha, defaultLabel as Hi, authLogout as Hn, openDialog as Hr, splitClassList as Ht, answerAction as I, e$38 as Ia, tabContainerItem as Ii, applyUtility as In, onKey as Ir, classNames as It, importProbe as J, s$23 as Ja, activeOn as Ji, delay as Jn, scrollIntoView as Jr, sameBlocks as Jt, importSlug as K, n$47 as Ka, COMPONENT_SOURCES as Ki, copyToClipboard as Kn, resetForm as Kr, css as Kt, CATALOG_TEMPLATE_IDENTITY as L, i$25 as La, text$1 as Li, getUtility as Ln, onLoad as Lr, classRefs as Lt, failedFlowText as M, typeTriggerDefinitions as Ma, svg as Mi, authoringCodesTable as Mn, onFlowEnd as Mr, column as Mt, readDevTools as N, n$36 as Na, tabContainer as Ni, defineAction as Nn, onFlowError as Nr, grid as Nt, inspectDocument as O, elementSourceTypes as Oa, paragraph as Oi, pathForSlug as On, declaredCallback as Or, FIXABLE_CODES as Ot, readDevToolsInPage as P, t$48 as Pa, tabContainerBody as Pi, taskAction as Pn, onFlowProgress as Pr, row as Pt, explain as Q, o$27 as Qa, boundAttribute as Qi, navigate as Qn, updateElement as Qr, expandShorthand as Qt, blankSpace as R, n$46 as Ra, themeToggle as Ri, SET_STATE_TYPES as Rn, onPageLoad as Rr, isClassModifier as Rt, comparePictures as S, elementCallbacks as Sa, list$1 as Si, y as Sn, carouselNext as Sr, SpaceRefusedError as St, profilePictures as T, elementLeafTypes as Ta, modalContainer as Ti, buildHandles as Tn, carouselPrevious as Tr, pageFamily as Tt, space as U, o$24 as Ua, defineElement as Ui, authRefreshDetails as Un, openModal as Ur, styles as Ut, emptyTemplateFiles as V, a$22 as Va, defaultAttributes as Vi, authLogin as Vn, onSubmit as Vr, modifierClassName as Vt, space$1 as W, s$21 as Wa, element as Wi, cancelServerAction as Wn, publishOn as Wr, BREAKPOINTS$1 as Wt, EXPLAIN_KINDS as X, a$25 as Xa, authorBinding as Xi, invalidateQueries as Xn, setFieldValue as Xr, toResponsive as Xt, BUILDER_NAMES as Y, t$63 as Ya, activeWhen as Yi, hostAction as Yn, scrollTo as Yr, toBlocks as Yt, GLOBAL_CALLBACK_BUILDERS as Z, i$29 as Za, bindTemplate as Zi, moveState as Zn, toggleElement as Zr, cssShorthands as Zt, summariseRenders as _, AuthoringError as _a, form as _i, o$1 as _n, applyBuiltinCallback as _r, assertSpaceValid as _t, locateClasses as a, visibleWhen as aa, blockJsx as ai, isCssProperty as an, toggleState as ar, SCHEMA_SETTINGS as at, pageTexts as b, elementAncestorTypes as ba, image as bi, s$1 as bn, cancelApi as br, suggestClassOverrides as bt, validateSnippet as c, r$16 as ca, carouselTrack as ci, _ as cn, authorFlow as cr, actionSpecFromEntry as ct, singlePageSpace as d, actionSource as da, custom$1 as di, d as dn, named$2 as dr, BUILTIN_TRANSFORMERS as dt, hasVisibilityBinding as ea, withPluginCatalogs as ei, expandShorthandTraced as en, runServerAction as er, explainList as et, withElement as f, source as fa, dialogContainer as fi, g as fn, when as fr, getTransformer as ft, inspectRenders as g, AUTHORING_CODES as ga, fontAwesome as gi, m as gn, BUILTIN_GLOBAL_CALLBACKS as gr, PAGE_SPEC_FIELDS as gt, openPage as h, scope as ha, embed as hi, l$1 as hn, whileRunning as hr, assertSnippetValid as ht, lintSpace as i, variantFrom as ia, blockHtml as ii, cssPropertyName as in, toggleInState as ir, specToSource as it, onScreenIfChosen as j, typeCallbackDefinitions as ja, richText as ji, flagSpecOf as jn, onClick as jr, tw as jt, inspectPage as k, elementTriggers as ka, plitziSdk as ki, selectorFor as kn, declaredTrigger as kr, tokens as kt, validateSpace as l, t$20 as la, channel as li, a as ln, authorFlows as lr, actionToSource as lt, shortcutKey as m, closest as ma, dropdownPopup as mi, i as mn, whenSucceeded as mr, transformerCatalog as mt, authorSpace as n, resolveSource as na, i$8 as ni, cssNumberValue as nn, setState as nr, ELEMENT_FIELDS as nt, locateElements as o, withVisibility as oa, button$1 as oi, isCustomProperty as on, twigTemplate as or, specFromSpace as ot, pressShortcut as p, twig as pa, dropdown as pi, h as pn, whenFailed as pr, suggestTransformer as pt, importedFiles as q, r$37 as qa, GLOBAL_SOURCES as qi, cycleState as qn, scrollBy as qr, isRuleSetSpec as qt, fixSpace as r, toBindingSpecs as ra, apiContainer as ri, cssProperties as rn, stepState as rr, SPACE_FIELDS as rt, planFixes as s, n$17 as sa, carousel as si, suggestCssProperty as sn, webHook as sr, compareSpaces as st, authorSnippet as t, hiddenWhen as ta, d$6 as ti, shorthandLonghands as tn, runServerActionOrNotify as tr, explanationText as tt, compactSvg as u, e$35 as ua, container as ui, c$1 as un, flowStepIds as ur, withNamedIds as ut, PAGE_TEXT_LIMIT as v, authoringCodeEntry as va, formControl as vi, p as vn, getGlobalCallback as vr, suggestSpace as vt, pageRegions as w, elementDefaultAttributes as wa, markdown as wi, slugify as wn, carouselPlay as wr, familyOf as wt, alignPictures as x, elementAttributeValues as xa, link as xi, u as xn, carouselGoTo as xr, unusedDeclarations as xt, compareTexts as y, isSuggestionCode as ya, heading as yi, r as yn, announceOn as yr, withoutQuieted as yt, blankTemplateFiles as z, r$35 as za, video as zi, addNotification as zn, onPointerDown as zr, isClassRef as zt };