smbls 2.11.458 → 2.11.460

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.
@@ -137,13 +137,13 @@ var require_globals = __commonJS({
137
137
  document: () => document2,
138
138
  global: () => global,
139
139
  self: () => self2,
140
- window: () => window4
140
+ window: () => window3
141
141
  });
142
142
  module2.exports = __toCommonJS2(globals_exports);
143
143
  var global = globalThis;
144
144
  var self2 = globalThis;
145
- var window4 = globalThis;
146
- var document2 = window4.document;
145
+ var window3 = globalThis;
146
+ var document2 = window3.document;
147
147
  }
148
148
  });
149
149
 
@@ -175,15 +175,15 @@ var require_node = __commonJS({
175
175
  isNode: () => isNode
176
176
  });
177
177
  module2.exports = __toCommonJS2(node_exports);
178
- var import_globals2 = require_globals();
178
+ var import_globals = require_globals();
179
179
  var isNode = (obj) => {
180
- return (typeof Node === "object" ? obj instanceof import_globals2.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
180
+ return (typeof Node === "object" ? obj instanceof import_globals.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
181
181
  };
182
182
  var isHtmlElement = (obj) => {
183
- return (typeof HTMLElement === "object" ? obj instanceof import_globals2.window.HTMLElement : obj && typeof obj === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string") || false;
183
+ return (typeof HTMLElement === "object" ? obj instanceof import_globals.window.HTMLElement : obj && typeof obj === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string") || false;
184
184
  };
185
185
  var isDOMNode = (obj) => {
186
- return typeof import_globals2.window !== "undefined" && (obj instanceof import_globals2.window.Node || obj instanceof import_globals2.window.Window || obj === import_globals2.window || obj === document);
186
+ return typeof import_globals.window !== "undefined" && (obj instanceof import_globals.window.Node || obj instanceof import_globals.window.Window || obj === import_globals.window || obj === document);
187
187
  };
188
188
  }
189
189
  });
@@ -213,7 +213,7 @@ var require_types = __commonJS({
213
213
  __export2(types_exports, {
214
214
  TYPES: () => TYPES,
215
215
  is: () => is,
216
- isArray: () => isArray5,
216
+ isArray: () => isArray4,
217
217
  isBoolean: () => isBoolean2,
218
218
  isDate: () => isDate,
219
219
  isDefined: () => isDefined2,
@@ -221,24 +221,24 @@ var require_types = __commonJS({
221
221
  isNot: () => isNot2,
222
222
  isNull: () => isNull,
223
223
  isNumber: () => isNumber2,
224
- isObject: () => isObject8,
224
+ isObject: () => isObject7,
225
225
  isObjectLike: () => isObjectLike3,
226
- isString: () => isString12,
226
+ isString: () => isString11,
227
227
  isUndefined: () => isUndefined8
228
228
  });
229
229
  module2.exports = __toCommonJS2(types_exports);
230
230
  var import_node = require_node();
231
- var isObject8 = (arg) => {
231
+ var isObject7 = (arg) => {
232
232
  if (arg === null)
233
233
  return false;
234
234
  return typeof arg === "object" && arg.constructor === Object;
235
235
  };
236
- var isString12 = (arg) => typeof arg === "string";
236
+ var isString11 = (arg) => typeof arg === "string";
237
237
  var isNumber2 = (arg) => typeof arg === "number";
238
238
  var isFunction4 = (arg) => typeof arg === "function";
239
239
  var isBoolean2 = (arg) => arg === true || arg === false;
240
240
  var isNull = (arg) => arg === null;
241
- var isArray5 = (arg) => Array.isArray(arg);
241
+ var isArray4 = (arg) => Array.isArray(arg);
242
242
  var isDate = (d) => d instanceof Date;
243
243
  var isObjectLike3 = (arg) => {
244
244
  if (arg === null)
@@ -246,16 +246,16 @@ var require_types = __commonJS({
246
246
  return typeof arg === "object";
247
247
  };
248
248
  var isDefined2 = (arg) => {
249
- return isObject8(arg) || isObjectLike3(arg) || isString12(arg) || isNumber2(arg) || isFunction4(arg) || isArray5(arg) || isObjectLike3(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
249
+ return isObject7(arg) || isObjectLike3(arg) || isString11(arg) || isNumber2(arg) || isFunction4(arg) || isArray4(arg) || isObjectLike3(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
250
250
  };
251
251
  var isUndefined8 = (arg) => {
252
252
  return arg === void 0;
253
253
  };
254
254
  var TYPES = {
255
255
  boolean: isBoolean2,
256
- array: isArray5,
257
- object: isObject8,
258
- string: isString12,
256
+ array: isArray4,
257
+ object: isObject7,
258
+ string: isString11,
259
259
  date: isDate,
260
260
  number: isNumber2,
261
261
  null: isNull,
@@ -632,13 +632,13 @@ var require_object = __commonJS({
632
632
  objectToString: () => objectToString,
633
633
  overwrite: () => overwrite,
634
634
  overwriteDeep: () => overwriteDeep2,
635
- overwriteShallow: () => overwriteShallow3,
635
+ overwriteShallow: () => overwriteShallow2,
636
636
  removeFromObject: () => removeFromObject,
637
637
  removeNestedKeyByPath: () => removeNestedKeyByPath,
638
638
  stringToObject: () => stringToObject
639
639
  });
640
640
  module2.exports = __toCommonJS2(object_exports);
641
- var import_globals2 = require_globals();
641
+ var import_globals = require_globals();
642
642
  var import_types = require_types();
643
643
  var import_array = require_array();
644
644
  var import_string = require_string();
@@ -764,7 +764,7 @@ var require_object = __commonJS({
764
764
  if ((0, import_types.isObjectLike)(objProp)) {
765
765
  o[prop] = deepCloneWithExtend2(objProp, excludeFrom, options, visited);
766
766
  } else if ((0, import_types.isFunction)(objProp) && options.window) {
767
- o[prop] = (options.window || import_globals2.window).eval("(" + objProp.toString() + ")");
767
+ o[prop] = (options.window || import_globals.window).eval("(" + objProp.toString() + ")");
768
768
  } else {
769
769
  o[prop] = objProp;
770
770
  }
@@ -904,7 +904,7 @@ var require_object = __commonJS({
904
904
  if ((0, import_types.isString)(objProp)) {
905
905
  if ((objProp.includes("(){") || objProp.includes("() {") || objProp.includes("=>") || objProp.startsWith("()") || objProp.startsWith("async") || objProp.startsWith("function") || objProp.startsWith("(")) && !objProp.startsWith("{") && !objProp.startsWith("[")) {
906
906
  try {
907
- const evalProp = import_globals2.window.eval(`(${objProp})`);
907
+ const evalProp = import_globals.window.eval(`(${objProp})`);
908
908
  destringified[prop] = evalProp;
909
909
  } catch (e) {
910
910
  if (e)
@@ -919,7 +919,7 @@ var require_object = __commonJS({
919
919
  if ((0, import_types.isString)(arrProp)) {
920
920
  if (arrProp.includes("=>") || arrProp.includes("function") || arrProp.startsWith("(")) {
921
921
  try {
922
- const evalProp = import_globals2.window.eval(`(${arrProp})`);
922
+ const evalProp = import_globals.window.eval(`(${arrProp})`);
923
923
  destringified[prop].push(evalProp);
924
924
  } catch (e) {
925
925
  if (e)
@@ -944,7 +944,7 @@ var require_object = __commonJS({
944
944
  };
945
945
  var stringToObject = (str, opts = { verbose: true }) => {
946
946
  try {
947
- return str ? import_globals2.window.eval("(" + str + ")") : {};
947
+ return str ? import_globals.window.eval("(" + str + ")") : {};
948
948
  } catch (e) {
949
949
  if (opts.verbose)
950
950
  console.warn(e);
@@ -1046,7 +1046,7 @@ var require_object = __commonJS({
1046
1046
  }
1047
1047
  return element;
1048
1048
  };
1049
- var overwriteShallow3 = (obj, params, excludeFrom = []) => {
1049
+ var overwriteShallow2 = (obj, params, excludeFrom = []) => {
1050
1050
  for (const e in params) {
1051
1051
  if (excludeFrom.includes(e) || e.startsWith("__"))
1052
1052
  continue;
@@ -1423,21 +1423,21 @@ var require_cookie = __commonJS({
1423
1423
  });
1424
1424
  module2.exports = __toCommonJS2(cookie_exports);
1425
1425
  var import_types = require_types();
1426
- var import_utils25 = require_cjs();
1426
+ var import_utils23 = require_cjs();
1427
1427
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
1428
1428
  var setCookie = (cname, cvalue, exdays = 365) => {
1429
- if ((0, import_types.isUndefined)(import_utils25.document) || (0, import_types.isUndefined)(import_utils25.document.cookie))
1429
+ if ((0, import_types.isUndefined)(import_utils23.document) || (0, import_types.isUndefined)(import_utils23.document.cookie))
1430
1430
  return;
1431
1431
  const d = /* @__PURE__ */ new Date();
1432
1432
  d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
1433
1433
  const expires = `expires=${d.toUTCString()}`;
1434
- import_utils25.document.cookie = `${cname}=${cvalue};${expires};path=/`;
1434
+ import_utils23.document.cookie = `${cname}=${cvalue};${expires};path=/`;
1435
1435
  };
1436
1436
  var getCookie = (cname) => {
1437
- if ((0, import_types.isUndefined)(import_utils25.document) || (0, import_types.isUndefined)(import_utils25.document.cookie))
1437
+ if ((0, import_types.isUndefined)(import_utils23.document) || (0, import_types.isUndefined)(import_utils23.document.cookie))
1438
1438
  return;
1439
1439
  const name = `${cname}=`;
1440
- const decodedCookie = decodeURIComponent(import_utils25.document.cookie);
1440
+ const decodedCookie = decodeURIComponent(import_utils23.document.cookie);
1441
1441
  const ca = decodedCookie.split(";");
1442
1442
  for (let i = 0; i < ca.length; i++) {
1443
1443
  let c = ca[i];
@@ -1449,9 +1449,9 @@ var require_cookie = __commonJS({
1449
1449
  return "";
1450
1450
  };
1451
1451
  var removeCookie = (cname) => {
1452
- if ((0, import_types.isUndefined)(import_utils25.document) || (0, import_types.isUndefined)(import_utils25.document.cookie))
1452
+ if ((0, import_types.isUndefined)(import_utils23.document) || (0, import_types.isUndefined)(import_utils23.document.cookie))
1453
1453
  return;
1454
- import_utils25.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
1454
+ import_utils23.document.cookie = cname + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
1455
1455
  };
1456
1456
  function getLocalStorage(key) {
1457
1457
  let savedJSON;
@@ -2708,7 +2708,7 @@ var require_cjs2 = __commonJS({
2708
2708
  mod
2709
2709
  ));
2710
2710
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
2711
- var require_cjs16 = __commonJS2({
2711
+ var require_cjs17 = __commonJS2({
2712
2712
  "../../node_modules/@domql/globals/dist/cjs/index.js"(exports2, module22) {
2713
2713
  "use strict";
2714
2714
  var __defProp22 = Object.defineProperty;
@@ -2733,13 +2733,13 @@ var require_cjs2 = __commonJS({
2733
2733
  document: () => document4,
2734
2734
  global: () => global,
2735
2735
  self: () => self2,
2736
- window: () => window32
2736
+ window: () => window3
2737
2737
  });
2738
2738
  module22.exports = __toCommonJS22(globals_exports);
2739
2739
  var global = globalThis;
2740
2740
  var self2 = globalThis;
2741
- var window32 = globalThis;
2742
- var document4 = window32.document;
2741
+ var window3 = globalThis;
2742
+ var document4 = window3.document;
2743
2743
  }
2744
2744
  });
2745
2745
  var require_key3 = __commonJS2({
@@ -2840,13 +2840,13 @@ var require_cjs2 = __commonJS({
2840
2840
  document: () => document4,
2841
2841
  global: () => global,
2842
2842
  self: () => self2,
2843
- window: () => window32
2843
+ window: () => window3
2844
2844
  });
2845
2845
  module22.exports = __toCommonJS22(globals_exports);
2846
2846
  var global = globalThis;
2847
2847
  var self2 = globalThis;
2848
- var window32 = globalThis;
2849
- var document4 = window32.document;
2848
+ var window3 = globalThis;
2849
+ var document4 = window3.document;
2850
2850
  }
2851
2851
  });
2852
2852
  var require_node4 = __commonJS2({
@@ -2920,14 +2920,14 @@ var require_cjs2 = __commonJS({
2920
2920
  isNot: () => isNot2,
2921
2921
  isNull: () => isNull2,
2922
2922
  isNumber: () => isNumber2,
2923
- isObject: () => isObject72,
2923
+ isObject: () => isObject7,
2924
2924
  isObjectLike: () => isObjectLike3,
2925
2925
  isString: () => isString92,
2926
2926
  isUndefined: () => isUndefined22
2927
2927
  });
2928
2928
  module22.exports = __toCommonJS22(types_exports);
2929
2929
  var import_node = require_node4();
2930
- var isObject72 = (arg) => {
2930
+ var isObject7 = (arg) => {
2931
2931
  if (arg === null)
2932
2932
  return false;
2933
2933
  return typeof arg === "object" && arg.constructor === Object;
@@ -2945,7 +2945,7 @@ var require_cjs2 = __commonJS({
2945
2945
  return typeof arg === "object";
2946
2946
  };
2947
2947
  var isDefined2 = (arg) => {
2948
- return isObject72(arg) || isObjectLike3(arg) || isString92(arg) || isNumber2(arg) || isFunction22(arg) || isArray7(arg) || isObjectLike3(arg) || isBoolean2(arg) || isDate(arg) || isNull2(arg);
2948
+ return isObject7(arg) || isObjectLike3(arg) || isString92(arg) || isNumber2(arg) || isFunction22(arg) || isArray7(arg) || isObjectLike3(arg) || isBoolean2(arg) || isDate(arg) || isNull2(arg);
2949
2949
  };
2950
2950
  var isUndefined22 = (arg) => {
2951
2951
  return arg === void 0;
@@ -2953,7 +2953,7 @@ var require_cjs2 = __commonJS({
2953
2953
  var TYPES = {
2954
2954
  boolean: isBoolean2,
2955
2955
  array: isArray7,
2956
- object: isObject72,
2956
+ object: isObject7,
2957
2957
  string: isString92,
2958
2958
  date: isDate,
2959
2959
  number: isNumber2,
@@ -3325,7 +3325,7 @@ var require_cjs2 = __commonJS({
3325
3325
  objectToString: () => objectToString,
3326
3326
  overwrite: () => overwrite,
3327
3327
  overwriteDeep: () => overwriteDeep2,
3328
- overwriteShallow: () => overwriteShallow3,
3328
+ overwriteShallow: () => overwriteShallow2,
3329
3329
  removeFromObject: () => removeFromObject,
3330
3330
  removeNestedKeyByPath: () => removeNestedKeyByPath,
3331
3331
  stringToObject: () => stringToObject
@@ -3739,7 +3739,7 @@ var require_cjs2 = __commonJS({
3739
3739
  }
3740
3740
  return element;
3741
3741
  };
3742
- var overwriteShallow3 = (obj, params, excludeFrom = []) => {
3742
+ var overwriteShallow2 = (obj, params, excludeFrom = []) => {
3743
3743
  for (const e in params) {
3744
3744
  if (excludeFrom.includes(e) || e.startsWith("__"))
3745
3745
  continue;
@@ -5221,7 +5221,7 @@ var require_cjs2 = __commonJS({
5221
5221
  objectToString: () => objectToString,
5222
5222
  overwrite: () => overwrite,
5223
5223
  overwriteDeep: () => overwriteDeep2,
5224
- overwriteShallow: () => overwriteShallow3,
5224
+ overwriteShallow: () => overwriteShallow2,
5225
5225
  removeFromObject: () => removeFromObject,
5226
5226
  removeNestedKeyByPath: () => removeNestedKeyByPath,
5227
5227
  stringToObject: () => stringToObject
@@ -5635,7 +5635,7 @@ var require_cjs2 = __commonJS({
5635
5635
  }
5636
5636
  return element;
5637
5637
  };
5638
- var overwriteShallow3 = (obj, params, excludeFrom = []) => {
5638
+ var overwriteShallow2 = (obj, params, excludeFrom = []) => {
5639
5639
  for (const e in params) {
5640
5640
  if (excludeFrom.includes(e) || e.startsWith("__"))
5641
5641
  continue;
@@ -6886,8 +6886,8 @@ var require_cjs2 = __commonJS({
6886
6886
  var isScalingUnit = (unit) => {
6887
6887
  return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
6888
6888
  };
6889
- var import_globals2 = __toESM2(require_cjs16(), 1);
6890
- var import_utils25 = __toESM2(require_cjs22(), 1);
6889
+ var import_globals = __toESM2(require_cjs17(), 1);
6890
+ var import_utils23 = __toESM2(require_cjs22(), 1);
6891
6891
  var ENV2 = "development";
6892
6892
  var colorStringToRgbaArray = (color) => {
6893
6893
  if (color === "")
@@ -6906,21 +6906,21 @@ var require_cjs2 = __commonJS({
6906
6906
  ];
6907
6907
  }
6908
6908
  if (color.indexOf("rgb") === -1) {
6909
- if (import_globals2.document && import_globals2.window) {
6910
- const elem = import_globals2.document.body.appendChild(import_globals2.document.createElement("fictum"));
6909
+ if (import_globals.document && import_globals.window) {
6910
+ const elem = import_globals.document.body.appendChild(import_globals.document.createElement("fictum"));
6911
6911
  const flag = "rgb(1, 2, 3)";
6912
6912
  elem.style.color = flag;
6913
6913
  if (elem.style.color !== flag) {
6914
- import_globals2.document.body.removeChild(elem);
6914
+ import_globals.document.body.removeChild(elem);
6915
6915
  return;
6916
6916
  }
6917
6917
  elem.style.color = color;
6918
6918
  if (elem.style.color === flag || elem.style.color === "") {
6919
- import_globals2.document.body.removeChild(elem);
6919
+ import_globals.document.body.removeChild(elem);
6920
6920
  return [0, 0, 0, 0];
6921
6921
  }
6922
- color = import_globals2.window.getComputedStyle(elem).color;
6923
- import_globals2.document.body.removeChild(elem);
6922
+ color = import_globals.window.getComputedStyle(elem).color;
6923
+ import_globals.document.body.removeChild(elem);
6924
6924
  }
6925
6925
  }
6926
6926
  if (color.indexOf("rgb") === 0) {
@@ -7019,11 +7019,11 @@ var require_cjs2 = __commonJS({
7019
7019
  return `rgba(${arr})`;
7020
7020
  };
7021
7021
  var getRgbTone = (rgb, tone) => {
7022
- if ((0, import_utils25.isString)(rgb) && rgb.includes("rgb"))
7022
+ if ((0, import_utils23.isString)(rgb) && rgb.includes("rgb"))
7023
7023
  rgb = colorStringToRgbaArray(rgb).join(", ");
7024
- if ((0, import_utils25.isString)(rgb))
7024
+ if ((0, import_utils23.isString)(rgb))
7025
7025
  rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
7026
- if ((0, import_utils25.isNumber)(tone))
7026
+ if ((0, import_utils23.isNumber)(tone))
7027
7027
  tone += "";
7028
7028
  const toHex = rgbArrayToHex(rgb);
7029
7029
  const abs3 = tone.slice(0, 1);
@@ -7088,7 +7088,7 @@ var require_cjs2 = __commonJS({
7088
7088
  };
7089
7089
  var import_utils32 = __toESM2(require_cjs22(), 1);
7090
7090
  var import_utils42 = __toESM2(require_cjs32(), 1);
7091
- var import_utils26 = __toESM2(require_cjs22(), 1);
7091
+ var import_utils24 = __toESM2(require_cjs22(), 1);
7092
7092
  var defaultConfig_exports = {};
7093
7093
  __export2(defaultConfig_exports, {
7094
7094
  ANIMATION: () => ANIMATION,
@@ -7253,13 +7253,13 @@ var require_cjs2 = __commonJS({
7253
7253
  CSS_VARS,
7254
7254
  ...defaultConfig_exports
7255
7255
  };
7256
- var cachedConfig = (0, import_utils26.deepClone)(CONFIG3);
7256
+ var cachedConfig = (0, import_utils24.deepClone)(CONFIG3);
7257
7257
  var FACTORY = {
7258
7258
  active: "0",
7259
7259
  0: CONFIG3
7260
7260
  };
7261
7261
  var activateConfig = (def) => {
7262
- if ((0, import_utils26.isDefined)(def)) {
7262
+ if ((0, import_utils24.isDefined)(def)) {
7263
7263
  FACTORY.active = def;
7264
7264
  }
7265
7265
  return FACTORY[def || FACTORY.active];
@@ -7268,10 +7268,10 @@ var require_cjs2 = __commonJS({
7268
7268
  return FACTORY[def || FACTORY.active] || CONFIG3;
7269
7269
  };
7270
7270
  var setActiveConfig = (newConfig) => {
7271
- if (!(0, import_utils26.isObject)(newConfig))
7271
+ if (!(0, import_utils24.isObject)(newConfig))
7272
7272
  return;
7273
7273
  FACTORY.active = "1";
7274
- FACTORY["1"] = (0, import_utils26.deepMerge)(newConfig, (0, import_utils26.deepClone)(cachedConfig));
7274
+ FACTORY["1"] = (0, import_utils24.deepMerge)(newConfig, (0, import_utils24.deepClone)(cachedConfig));
7275
7275
  return newConfig;
7276
7276
  };
7277
7277
  var numToLetterMap = {
@@ -8343,9 +8343,9 @@ var require_cjs2 = __commonJS({
8343
8343
  lineHeight: TYPOGRAPHY22.lineHeight
8344
8344
  });
8345
8345
  };
8346
- var import_globals22 = __toESM2(require_cjs16(), 1);
8346
+ var import_globals2 = __toESM2(require_cjs17(), 1);
8347
8347
  var DEF_OPTIONS = {
8348
- document: import_globals22.document
8348
+ document: import_globals2.document
8349
8349
  };
8350
8350
  var setSVG = (val, key) => {
8351
8351
  const CONFIG22 = getActiveConfig3();
@@ -8382,9 +8382,9 @@ var require_cjs2 = __commonJS({
8382
8382
  appendSVG(lib, options);
8383
8383
  };
8384
8384
  var createSVGSpriteElement = (options = { isRoot: true }) => {
8385
- if (!import_globals22.document || !import_globals22.document.createElementNS)
8385
+ if (!import_globals2.document || !import_globals2.document.createElementNS)
8386
8386
  return;
8387
- const svgElem = import_globals22.document.createElementNS("http://www.w3.org/2000/svg", "svg");
8387
+ const svgElem = import_globals2.document.createElementNS("http://www.w3.org/2000/svg", "svg");
8388
8388
  if (options.isRoot) {
8389
8389
  svgElem.setAttribute("aria-hidden", "true");
8390
8390
  svgElem.setAttribute("width", "0");
@@ -8396,7 +8396,7 @@ var require_cjs2 = __commonJS({
8396
8396
  };
8397
8397
  var appendSVG = (lib, options = DEF_OPTIONS) => {
8398
8398
  const CONFIG22 = getActiveConfig3();
8399
- const doc = options.document || import_globals22.document;
8399
+ const doc = options.document || import_globals2.document;
8400
8400
  if (!doc || !doc.documentElement) {
8401
8401
  if (CONFIG22.verbose) {
8402
8402
  console.warn("To append SVG sprites it should be run in browser environment");
@@ -8477,7 +8477,7 @@ var require_cjs2 = __commonJS({
8477
8477
  });
8478
8478
  }
8479
8479
  };
8480
- var import_utils252 = __toESM2(require_cjs22(), 1);
8480
+ var import_utils25 = __toESM2(require_cjs22(), 1);
8481
8481
  var isBorderStyle = (str) => [
8482
8482
  "none",
8483
8483
  "hidden",
@@ -8525,7 +8525,7 @@ var require_cjs2 = __commonJS({
8525
8525
  return `var(${v})`;
8526
8526
  if (getColor2(v).length > 2) {
8527
8527
  const color = getMediaColor3(v, globalTheme);
8528
- if ((0, import_utils252.isObject)(color))
8528
+ if ((0, import_utils25.isObject)(color))
8529
8529
  return Object.values(color).filter((v2) => v2.includes(": " + globalTheme))[0];
8530
8530
  return color;
8531
8531
  }
@@ -8553,7 +8553,7 @@ var require_cjs2 = __commonJS({
8553
8553
  return v;
8554
8554
  }).join(" ");
8555
8555
  };
8556
- var transfromGap2 = (gap) => (0, import_utils252.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey3(v, "gap").gap).join(" ");
8556
+ var transfromGap2 = (gap) => (0, import_utils25.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey3(v, "gap").gap).join(" ");
8557
8557
  var transformTransition = (transition) => {
8558
8558
  const arr = transition.split(" ");
8559
8559
  if (!arr.length)
@@ -8571,7 +8571,7 @@ var require_cjs2 = __commonJS({
8571
8571
  }).join(" ");
8572
8572
  };
8573
8573
  var transformDuration2 = (duration, props5, propertyName) => {
8574
- if (!(0, import_utils252.isString)(duration))
8574
+ if (!(0, import_utils25.isString)(duration))
8575
8575
  return;
8576
8576
  return duration.split(",").map((v) => getTimingByKey2(v).timing || v).join(",");
8577
8577
  };
@@ -8587,11 +8587,11 @@ var require_cjs2 = __commonJS({
8587
8587
  };
8588
8588
  var transformSize2 = (propertyName, val, props5 = {}, opts = {}) => {
8589
8589
  let value2 = val || props5[propertyName];
8590
- if ((0, import_utils252.isUndefined)(value2) && (0, import_utils252.isNull)(value2))
8590
+ if ((0, import_utils25.isUndefined)(value2) && (0, import_utils25.isNull)(value2))
8591
8591
  return;
8592
8592
  const shouldScaleBoxSize = props5.scaleBoxSize;
8593
8593
  const isBoxSize = checkIfBoxSize(propertyName);
8594
- if (!shouldScaleBoxSize && isBoxSize && (0, import_utils252.isString)(value2)) {
8594
+ if (!shouldScaleBoxSize && isBoxSize && (0, import_utils25.isString)(value2)) {
8595
8595
  value2 = value2.split(" ").map((v) => {
8596
8596
  const isSingleLetter = v.length < 3 && /[A-Z]/.test(v);
8597
8597
  const hasUnits = ["%", "vw", "vh", "ch"].some((unit) => value2.includes(unit));
@@ -8611,9 +8611,9 @@ var require_cjs2 = __commonJS({
8611
8611
  ratio: true
8612
8612
  });
8613
8613
  };
8614
- var import_utils262 = __toESM2(require_cjs22(), 1);
8614
+ var import_utils26 = __toESM2(require_cjs22(), 1);
8615
8615
  var setCases = (val, key) => {
8616
- if ((0, import_utils262.isFunction)(val))
8616
+ if ((0, import_utils26.isFunction)(val))
8617
8617
  return val();
8618
8618
  return val;
8619
8619
  };
@@ -10482,9 +10482,9 @@ var init_Img = __esm({
10482
10482
  attr: {
10483
10483
  src: (el) => {
10484
10484
  const { props: props5, context } = el;
10485
- const { exec: exec7, isString: isString12, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = context.utils;
10485
+ const { exec: exec7, isString: isString11, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = context.utils;
10486
10486
  let src = (props5.preSrc || "") + exec7(props5.src, el);
10487
- if (isString12(src) && src.includes("{{")) {
10487
+ if (isString11(src) && src.includes("{{")) {
10488
10488
  src = replaceLiteralsWithObjectFields3(src, el.state);
10489
10489
  }
10490
10490
  let isUrl;
@@ -11402,13 +11402,13 @@ var require_on = __commonJS({
11402
11402
  triggerEventOnUpdate: () => triggerEventOnUpdate
11403
11403
  });
11404
11404
  module2.exports = __toCommonJS2(on_exports);
11405
- var import_utils25 = require_cjs();
11405
+ var import_utils23 = require_cjs();
11406
11406
  var applyEvent = (param, element, state, context, options) => {
11407
11407
  return param.call(element, element, state || element.state, context || element.context, options);
11408
11408
  };
11409
11409
  var triggerEventOn = (param, element, options) => {
11410
11410
  var _a;
11411
- if (element.on && (0, import_utils25.isFunction)(element.on[param])) {
11411
+ if (element.on && (0, import_utils23.isFunction)(element.on[param])) {
11412
11412
  const { state, context } = element;
11413
11413
  return applyEvent(element.on[param] || ((_a = element.props) == null ? void 0 : _a[param]), element, state, context, options);
11414
11414
  }
@@ -11418,7 +11418,7 @@ var require_on = __commonJS({
11418
11418
  };
11419
11419
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
11420
11420
  var _a;
11421
- if (element.on && (0, import_utils25.isFunction)(element.on[param])) {
11421
+ if (element.on && (0, import_utils23.isFunction)(element.on[param])) {
11422
11422
  const { state, context } = element;
11423
11423
  return applyEventUpdate(element.on[param] || ((_a = element.props) == null ? void 0 : _a[param]), updatedObj, element, state, context, options);
11424
11424
  }
@@ -11439,7 +11439,7 @@ var require_on = __commonJS({
11439
11439
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "beforeStateUpdate" || param === "stateUpdate" || param === "beforeUpdate" || param === "done" || param === "create" || param === "complete" || param === "frame" || param === "update")
11440
11440
  continue;
11441
11441
  const appliedFunction = element.on[param] || ((_a = element.props) == null ? void 0 : _a[param]);
11442
- if ((0, import_utils25.isFunction)(appliedFunction)) {
11442
+ if ((0, import_utils23.isFunction)(appliedFunction)) {
11443
11443
  node3.addEventListener(param, (event) => {
11444
11444
  const { state, context } = element;
11445
11445
  appliedFunction.call(element, event, element, state, context, options);
@@ -11574,9 +11574,9 @@ var require_can = __commonJS({
11574
11574
  });
11575
11575
  module2.exports = __toCommonJS2(can_exports);
11576
11576
  var import_report = require_cjs3();
11577
- var import_utils25 = require_cjs();
11577
+ var import_utils23 = require_cjs();
11578
11578
  var canRenderTag = (tag) => {
11579
- return (0, import_utils25.isValidHtmlTag)(tag || "div") || (0, import_report.report)("HTMLInvalidTag");
11579
+ return (0, import_utils23.isValidHtmlTag)(tag || "div") || (0, import_report.report)("HTMLInvalidTag");
11580
11580
  };
11581
11581
  }
11582
11582
  });
@@ -11649,11 +11649,11 @@ var require_methods = __commonJS({
11649
11649
  values: () => values
11650
11650
  });
11651
11651
  module2.exports = __toCommonJS2(methods_exports);
11652
- var import_utils25 = require_cjs();
11652
+ var import_utils23 = require_cjs();
11653
11653
  var import_ignore = require_ignore();
11654
11654
  var parse4 = function() {
11655
11655
  const state = this;
11656
- if ((0, import_utils25.isObject)(state)) {
11656
+ if ((0, import_utils23.isObject)(state)) {
11657
11657
  const obj = {};
11658
11658
  for (const param in state) {
11659
11659
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -11661,7 +11661,7 @@ var require_methods = __commonJS({
11661
11661
  }
11662
11662
  }
11663
11663
  return obj;
11664
- } else if ((0, import_utils25.isArray)(state)) {
11664
+ } else if ((0, import_utils23.isArray)(state)) {
11665
11665
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
11666
11666
  }
11667
11667
  };
@@ -11681,7 +11681,7 @@ var require_methods = __commonJS({
11681
11681
  const state = this;
11682
11682
  const element = state.__element;
11683
11683
  const stateKey = element.__ref.__state;
11684
- if ((0, import_utils25.isString)(stateKey)) {
11684
+ if ((0, import_utils23.isString)(stateKey)) {
11685
11685
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
11686
11686
  return element.state;
11687
11687
  }
@@ -11694,7 +11694,7 @@ var require_methods = __commonJS({
11694
11694
  for (const key in state.__children) {
11695
11695
  const child = state.__children[key];
11696
11696
  if (child.state) {
11697
- if ((0, import_utils25.isArray)(child.state)) {
11697
+ if ((0, import_utils23.isArray)(child.state)) {
11698
11698
  Object.defineProperty(child.state, "parent", {
11699
11699
  value: state.parent,
11700
11700
  enumerable: false,
@@ -11728,10 +11728,10 @@ var require_methods = __commonJS({
11728
11728
  };
11729
11729
  var add = function(value2, options = {}) {
11730
11730
  const state = this;
11731
- if ((0, import_utils25.isArray)(state)) {
11731
+ if ((0, import_utils23.isArray)(state)) {
11732
11732
  state.push(value2);
11733
11733
  state.update(state.parse(), { overwrite: true, ...options });
11734
- } else if ((0, import_utils25.isObject)(state)) {
11734
+ } else if ((0, import_utils23.isObject)(state)) {
11735
11735
  const key = Object.keys(state).length;
11736
11736
  state.update({ [key]: value2 }, options);
11737
11737
  }
@@ -11747,31 +11747,31 @@ var require_methods = __commonJS({
11747
11747
  };
11748
11748
  var set2 = function(val, options = {}) {
11749
11749
  const state = this;
11750
- const value2 = (0, import_utils25.deepCloneWithExtend)(val);
11750
+ const value2 = (0, import_utils23.deepCloneWithExtend)(val);
11751
11751
  return state.clean({ preventStateUpdate: true, ...options }).update(value2, { replace: true, ...options });
11752
11752
  };
11753
11753
  var reset = function(options = {}) {
11754
11754
  const state = this;
11755
- const value2 = (0, import_utils25.deepCloneWithExtend)(state.parse());
11755
+ const value2 = (0, import_utils23.deepCloneWithExtend)(state.parse());
11756
11756
  return state.set(value2, { replace: true, ...options });
11757
11757
  };
11758
11758
  var apply = function(func, options = {}) {
11759
11759
  const state = this;
11760
- if ((0, import_utils25.isFunction)(func)) {
11760
+ if ((0, import_utils23.isFunction)(func)) {
11761
11761
  const value2 = func(state);
11762
11762
  return state.update(value2, { replace: true, ...options });
11763
11763
  }
11764
11764
  };
11765
11765
  var applyReplace = function(func, options = {}) {
11766
11766
  const state = this;
11767
- if ((0, import_utils25.isFunction)(func)) {
11767
+ if ((0, import_utils23.isFunction)(func)) {
11768
11768
  const value2 = func(state);
11769
11769
  return state.replace(value2, options);
11770
11770
  }
11771
11771
  };
11772
11772
  var applyFunction = function(func, options = {}) {
11773
11773
  const state = this;
11774
- if ((0, import_utils25.isFunction)(func)) {
11774
+ if ((0, import_utils23.isFunction)(func)) {
11775
11775
  func(state);
11776
11776
  return state.update(state.parse(), { replace: true, ...options });
11777
11777
  }
@@ -11835,7 +11835,7 @@ var require_inherit = __commonJS({
11835
11835
  isState: () => isState2
11836
11836
  });
11837
11837
  module2.exports = __toCommonJS2(inherit_exports);
11838
- var import_utils25 = require_cjs();
11838
+ var import_utils23 = require_cjs();
11839
11839
  var import_ignore = require_ignore();
11840
11840
  var getRootStateInKey = (stateKey, parentState) => {
11841
11841
  if (!stateKey.includes("~/"))
@@ -11900,11 +11900,11 @@ var require_inherit = __commonJS({
11900
11900
  var createInheritedState = (element, parent) => {
11901
11901
  const ref = element.__ref;
11902
11902
  const inheritedState = findInheritedState(element, parent);
11903
- if ((0, import_utils25.isUndefined)(inheritedState))
11903
+ if ((0, import_utils23.isUndefined)(inheritedState))
11904
11904
  return element.state;
11905
- if ((0, import_utils25.is)(inheritedState)("object", "array")) {
11906
- return (0, import_utils25.deepCloneWithExtend)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
11907
- } else if ((0, import_utils25.is)(inheritedState)("string", "number", "boolean")) {
11905
+ if ((0, import_utils23.is)(inheritedState)("object", "array")) {
11906
+ return (0, import_utils23.deepCloneWithExtend)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
11907
+ } else if ((0, import_utils23.is)(inheritedState)("string", "number", "boolean")) {
11908
11908
  ref.__stateType = typeof inheritedState;
11909
11909
  return { value: inheritedState };
11910
11910
  }
@@ -11913,12 +11913,12 @@ var require_inherit = __commonJS({
11913
11913
  var checkIfInherits = (element) => {
11914
11914
  const ref = element.__ref;
11915
11915
  const stateKey = ref.__state;
11916
- if (stateKey && (0, import_utils25.is)(stateKey)("number", "string", "boolean"))
11916
+ if (stateKey && (0, import_utils23.is)(stateKey)("number", "string", "boolean"))
11917
11917
  return true;
11918
11918
  return false;
11919
11919
  };
11920
11920
  var isState2 = function(state) {
11921
- if (!(0, import_utils25.isObjectLike)(state))
11921
+ if (!(0, import_utils23.isObjectLike)(state))
11922
11922
  return false;
11923
11923
  return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.keys && state.values && state.toggle && state.replace && state.quietUpdate && state.quietReplace && state.add && state.apply && state.applyReplace && state.applyFunction && state.__element && state.__children;
11924
11924
  };
@@ -11967,7 +11967,7 @@ var require_updateState = __commonJS({
11967
11967
  var import_report = require_cjs3();
11968
11968
  var import_event = require_cjs4();
11969
11969
  var import_ignore = require_ignore();
11970
- var import_utils25 = require_cjs();
11970
+ var import_utils23 = require_cjs();
11971
11971
  var import_inherit = require_inherit();
11972
11972
  var STATE_UPDATE_OPTIONS = {
11973
11973
  overwrite: true,
@@ -11982,7 +11982,7 @@ var require_updateState = __commonJS({
11982
11982
  if (options.onEach)
11983
11983
  options.onEach(element, state, element.context, options);
11984
11984
  if (!options.updateByState)
11985
- (0, import_utils25.merge)(options, STATE_UPDATE_OPTIONS);
11985
+ (0, import_utils23.merge)(options, STATE_UPDATE_OPTIONS);
11986
11986
  if (!state.__element)
11987
11987
  (0, import_report.report)("ElementOnStateIsNotDefined");
11988
11988
  if (options.preventInheritAtCurrentState === true) {
@@ -12012,10 +12012,10 @@ var require_updateState = __commonJS({
12012
12012
  const shallow = overwrite === "shallow" || overwrite === "shallow-once";
12013
12013
  const merge22 = overwrite === "merge";
12014
12014
  if (merge22) {
12015
- (0, import_utils25.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
12015
+ (0, import_utils23.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
12016
12016
  return;
12017
12017
  }
12018
- const overwriteFunc = shallow ? import_utils25.overwriteShallow : import_utils25.overwriteDeep;
12018
+ const overwriteFunc = shallow ? import_utils23.overwriteShallow : import_utils23.overwriteDeep;
12019
12019
  if (options.overwrite === "shallow-once")
12020
12020
  options.overwrite = true;
12021
12021
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
@@ -12040,7 +12040,7 @@ var require_updateState = __commonJS({
12040
12040
  const changesValue = (0, import_inherit.createNestedObjectByKeyPath)(stateKey, passedValue);
12041
12041
  const targetParent = findRootState || findGrandParentState || parent.state;
12042
12042
  if (options.replace)
12043
- (0, import_utils25.overwriteDeep)(targetParent, changesValue || value2);
12043
+ (0, import_utils23.overwriteDeep)(targetParent, changesValue || value2);
12044
12044
  targetParent.update(changesValue, {
12045
12045
  execStateFunction: false,
12046
12046
  isHoisted: true,
@@ -12109,7 +12109,7 @@ var require_create = __commonJS({
12109
12109
  });
12110
12110
  module2.exports = __toCommonJS2(create_exports);
12111
12111
  var import_event = require_cjs4();
12112
- var import_utils25 = require_cjs();
12112
+ var import_utils23 = require_cjs();
12113
12113
  var import_ignore = require_ignore();
12114
12114
  var import_methods = require_methods();
12115
12115
  var import_updateState = require_updateState();
@@ -12129,7 +12129,7 @@ var require_create = __commonJS({
12129
12129
  return element.state;
12130
12130
  if ((0, import_inherit.checkIfInherits)(element)) {
12131
12131
  const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
12132
- element.state = (0, import_utils25.isUndefined)(inheritedState) ? {} : inheritedState;
12132
+ element.state = (0, import_utils23.isUndefined)(inheritedState) ? {} : inheritedState;
12133
12133
  }
12134
12134
  const dependentState = applyDependentState(element, element.state || parent.state || {});
12135
12135
  if (dependentState)
@@ -12140,12 +12140,12 @@ var require_create = __commonJS({
12140
12140
  };
12141
12141
  var applyDependentState = (element, state) => {
12142
12142
  const { __ref, ref, __element } = state;
12143
- const origState = (0, import_utils25.exec)(__ref || ref || (__element == null ? void 0 : __element.state), element);
12143
+ const origState = (0, import_utils23.exec)(__ref || ref || (__element == null ? void 0 : __element.state), element);
12144
12144
  if (!origState)
12145
12145
  return;
12146
- const dependentState = (0, import_utils25.deepCloneWithExtend)(origState, import_ignore.IGNORE_STATE_PARAMS);
12146
+ const dependentState = (0, import_utils23.deepCloneWithExtend)(origState, import_ignore.IGNORE_STATE_PARAMS);
12147
12147
  const newDepends = { [element.key]: dependentState };
12148
- const __depends = (0, import_utils25.isObject)(origState.__depends) ? { ...origState.__depends, ...newDepends } : newDepends;
12148
+ const __depends = (0, import_utils23.isObject)(origState.__depends) ? { ...origState.__depends, ...newDepends } : newDepends;
12149
12149
  if (Array.isArray(origState)) {
12150
12150
  addProtoToArray(origState, { ...Object.getPrototypeOf(origState), __depends });
12151
12151
  } else {
@@ -12156,10 +12156,10 @@ var require_create = __commonJS({
12156
12156
  var checkForTypes = (element) => {
12157
12157
  const { state: orig, props: props5, __ref: ref } = element;
12158
12158
  const state = (props5 == null ? void 0 : props5.state) || orig;
12159
- if ((0, import_utils25.isFunction)(state)) {
12159
+ if ((0, import_utils23.isFunction)(state)) {
12160
12160
  ref.__state = state;
12161
- return (0, import_utils25.exec)(state, element);
12162
- } else if ((0, import_utils25.is)(state)("string", "number")) {
12161
+ return (0, import_utils23.exec)(state, element);
12162
+ } else if ((0, import_utils23.is)(state)("string", "number")) {
12163
12163
  ref.__state = state;
12164
12164
  return {};
12165
12165
  } else if (state === true) {
@@ -12214,7 +12214,7 @@ var require_create = __commonJS({
12214
12214
  __children: {},
12215
12215
  root: ref.root ? ref.root.state : state
12216
12216
  };
12217
- if ((0, import_utils25.isArray)(state)) {
12217
+ if ((0, import_utils23.isArray)(state)) {
12218
12218
  addProtoToArray(state, proto);
12219
12219
  } else {
12220
12220
  Object.setPrototypeOf(state, proto);
@@ -12952,7 +12952,7 @@ var init_Icon = __esm({
12952
12952
  const { toCamelCase } = ctx && ctx.utils;
12953
12953
  const iconName = getIconName(el, s);
12954
12954
  const camelCase = toCamelCase(iconName);
12955
- const isArray5 = camelCase.split(/([a-z])([A-Z])/g);
12955
+ const isArray4 = camelCase.split(/([a-z])([A-Z])/g);
12956
12956
  const semanticIcon = getSemanticIcon(el, s, ctx);
12957
12957
  if (semanticIcon)
12958
12958
  return semanticIcon;
@@ -12975,10 +12975,10 @@ var init_Icon = __esm({
12975
12975
  iconInContext = activeIconName;
12976
12976
  if (ICONS[camelCase])
12977
12977
  iconInContext = camelCase;
12978
- else if (ICONS[isArray5[0] + isArray5[1]])
12979
- iconInContext = isArray5[0] + isArray5[1];
12980
- else if (ICONS[isArray5[0]])
12981
- iconInContext = isArray5[0];
12978
+ else if (ICONS[isArray4[0] + isArray4[1]])
12979
+ iconInContext = isArray4[0] + isArray4[1];
12980
+ else if (ICONS[isArray4[0]])
12981
+ iconInContext = isArray4[0];
12982
12982
  else {
12983
12983
  if (verbose)
12984
12984
  el.warn("Can't find icon:", iconName, iconInContext);
@@ -13040,8 +13040,8 @@ var init_Icon = __esm({
13040
13040
  const { toCamelCase } = ctx && ctx.utils;
13041
13041
  let iconName = getIconName(el, s);
13042
13042
  const camelCase = toCamelCase(iconName);
13043
- const isArray5 = camelCase.split(/([a-z])([A-Z])/g);
13044
- const semanticIconRootName = isArray5[1] ? isArray5[0] : iconName.split(".")[0].split(" ")[0];
13043
+ const isArray4 = camelCase.split(/([a-z])([A-Z])/g);
13044
+ const semanticIconRootName = isArray4[1] ? isArray4[0] : iconName.split(".")[0].split(" ")[0];
13045
13045
  const semanticIcon = SEMANTIC_ICONS && SEMANTIC_ICONS[semanticIconRootName];
13046
13046
  if (semanticIcon) {
13047
13047
  const iconKey = iconName.includes(".") ? "sfsymbols." + iconName.split(".").slice(1).join(".") : "sfsymbols";
@@ -13403,12 +13403,12 @@ var require_cjs6 = __commonJS({
13403
13403
  getActiveRoute: () => getActiveRoute,
13404
13404
  lastLevel: () => lastLevel,
13405
13405
  lastPathname: () => lastPathname,
13406
- router: () => router2
13406
+ router: () => router
13407
13407
  });
13408
13408
  module2.exports = __toCommonJS2(router_exports);
13409
13409
  var import_event = require_cjs4();
13410
- var import_utils25 = require_cjs();
13411
- var getActiveRoute = (level = 0, route = import_utils25.window.location.pathname) => {
13410
+ var import_utils23 = require_cjs();
13411
+ var getActiveRoute = (level = 0, route = import_utils23.window.location.pathname) => {
13412
13412
  const routeArray = route.split("/");
13413
13413
  const activeRoute = routeArray[level + 1];
13414
13414
  if (activeRoute)
@@ -13422,7 +13422,7 @@ var require_cjs6 = __commonJS({
13422
13422
  initialRender: false,
13423
13423
  scrollToTop: true,
13424
13424
  scrollToNode: false,
13425
- scrollNode: import_utils25.document && import_utils25.document.documentElement,
13425
+ scrollNode: import_utils23.document && import_utils23.document.documentElement,
13426
13426
  scrollBody: false,
13427
13427
  useFragment: false,
13428
13428
  updateState: true,
@@ -13430,16 +13430,16 @@ var require_cjs6 = __commonJS({
13430
13430
  contentElementKey: "content",
13431
13431
  scrollToOptions: { behavior: "smooth" }
13432
13432
  };
13433
- var router2 = (path, element, state = {}, options = {}) => {
13434
- const win = element.context.window || import_utils25.window;
13435
- const doc = element.context.document || import_utils25.document;
13433
+ var router = (path, element, state = {}, options = {}) => {
13434
+ const win = element.context.window || import_utils23.window;
13435
+ const doc = element.context.document || import_utils23.document;
13436
13436
  const opts = { ...defaultOptions, ...element.context.routerOptions, ...options };
13437
13437
  lastLevel = opts.lastLevel;
13438
13438
  const ref = element.__ref;
13439
13439
  if (opts.contentElementKey !== "content" && opts.contentElementKey !== ref.contentElementKey || !ref.contentElementKey) {
13440
13440
  ref.contentElementKey = opts.contentElementKey || "content";
13441
13441
  }
13442
- const contentElementKey = (0, import_utils25.setContentKey)(element, opts);
13442
+ const contentElementKey = (0, import_utils23.setContentKey)(element, opts);
13443
13443
  const urlObj = new win.URL(win.location.origin + path);
13444
13444
  const { pathname, search, hash: hash3 } = urlObj;
13445
13445
  const rootNode = element.node;
@@ -13495,7 +13495,7 @@ var require_cjs6 = __commonJS({
13495
13495
  }
13496
13496
  (0, import_event.triggerEventOn)("routeChanged", element, opts);
13497
13497
  };
13498
- var router_default = router2;
13498
+ var router_default = router;
13499
13499
  }
13500
13500
  });
13501
13501
 
@@ -13517,9 +13517,9 @@ var init_Link = __esm({
13517
13517
  },
13518
13518
  attr: {
13519
13519
  href: (el, s, ctx) => {
13520
- const { isString: isString12, exec: exec7, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = ctx.utils;
13520
+ const { isString: isString11, exec: exec7, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = ctx.utils;
13521
13521
  const href = exec7(el.props.href, el) || exec7(exec7(el.props, el).href, el);
13522
- if (isString12(href) && href.includes("{{")) {
13522
+ if (isString11(href) && href.includes("{{")) {
13523
13523
  return replaceLiteralsWithObjectFields3(href, s);
13524
13524
  }
13525
13525
  return href;
@@ -13534,9 +13534,9 @@ var init_Link = __esm({
13534
13534
  click: (event, el, s) => {
13535
13535
  const { props: props5, context: ctx } = el;
13536
13536
  const { href: h, scrollToTop, stopPropagation } = props5;
13537
- const { exec: exec7, isString: isString12, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3, isDefined: isDefined2 } = ctx.utils;
13537
+ const { exec: exec7, isString: isString11, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3, isDefined: isDefined2 } = ctx.utils;
13538
13538
  let href = exec7(h, el, s);
13539
- if (isString12(href) && href.includes("{{")) {
13539
+ if (isString11(href) && href.includes("{{")) {
13540
13540
  href = replaceLiteralsWithObjectFields3(href, s);
13541
13541
  }
13542
13542
  if (stopPropagation)
@@ -13658,9 +13658,9 @@ var init_Input = __esm({
13658
13658
  placeholder: ({ props: props5 }) => props5.placeholder,
13659
13659
  value: (el, s) => {
13660
13660
  const { props: props5, state, deps } = el;
13661
- const { isString: isString12, exec: exec7, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = deps;
13661
+ const { isString: isString11, exec: exec7, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = deps;
13662
13662
  const val = exec7(props5.value, el);
13663
- if (isString12(val) && val.includes("{{")) {
13663
+ if (isString11(val) && val.includes("{{")) {
13664
13664
  return replaceLiteralsWithObjectFields3(val, state);
13665
13665
  }
13666
13666
  return val;
@@ -16989,15 +16989,15 @@ var require_cjs7 = __commonJS({
16989
16989
  isNode: () => isNode
16990
16990
  });
16991
16991
  module22.exports = __toCommonJS22(node_exports);
16992
- var import_globals2 = require_globals3();
16992
+ var import_globals = require_globals3();
16993
16993
  var isNode = (obj) => {
16994
- return (typeof Node === "object" ? obj instanceof import_globals2.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
16994
+ return (typeof Node === "object" ? obj instanceof import_globals.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
16995
16995
  };
16996
16996
  var isHtmlElement = (obj) => {
16997
- return (typeof HTMLElement === "object" ? obj instanceof import_globals2.window.HTMLElement : obj && typeof obj === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string") || false;
16997
+ return (typeof HTMLElement === "object" ? obj instanceof import_globals.window.HTMLElement : obj && typeof obj === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string") || false;
16998
16998
  };
16999
16999
  var isDOMNode = (obj) => {
17000
- return typeof import_globals2.window !== "undefined" && (obj instanceof import_globals2.window.Node || obj instanceof import_globals2.window.Window || obj === import_globals2.window || obj === document);
17000
+ return typeof import_globals.window !== "undefined" && (obj instanceof import_globals.window.Node || obj instanceof import_globals.window.Window || obj === import_globals.window || obj === document);
17001
17001
  };
17002
17002
  }
17003
17003
  });
@@ -17438,13 +17438,13 @@ var require_cjs7 = __commonJS({
17438
17438
  objectToString: () => objectToString,
17439
17439
  overwrite: () => overwrite,
17440
17440
  overwriteDeep: () => overwriteDeep2,
17441
- overwriteShallow: () => overwriteShallow3,
17441
+ overwriteShallow: () => overwriteShallow2,
17442
17442
  removeFromObject: () => removeFromObject,
17443
17443
  removeNestedKeyByPath: () => removeNestedKeyByPath,
17444
17444
  stringToObject: () => stringToObject
17445
17445
  });
17446
17446
  module22.exports = __toCommonJS22(object_exports);
17447
- var import_globals2 = require_globals3();
17447
+ var import_globals = require_globals3();
17448
17448
  var import_types = require_types3();
17449
17449
  var import_array = require_array3();
17450
17450
  var import_string = require_string3();
@@ -17570,7 +17570,7 @@ var require_cjs7 = __commonJS({
17570
17570
  if ((0, import_types.isObjectLike)(objProp)) {
17571
17571
  o[prop] = deepCloneWithExtend2(objProp, excludeFrom, options, visited);
17572
17572
  } else if ((0, import_types.isFunction)(objProp) && options.window) {
17573
- o[prop] = (options.window || import_globals2.window).eval("(" + objProp.toString() + ")");
17573
+ o[prop] = (options.window || import_globals.window).eval("(" + objProp.toString() + ")");
17574
17574
  } else {
17575
17575
  o[prop] = objProp;
17576
17576
  }
@@ -17710,7 +17710,7 @@ var require_cjs7 = __commonJS({
17710
17710
  if ((0, import_types.isString)(objProp)) {
17711
17711
  if ((objProp.includes("(){") || objProp.includes("() {") || objProp.includes("=>") || objProp.startsWith("()") || objProp.startsWith("async") || objProp.startsWith("function") || objProp.startsWith("(")) && !objProp.startsWith("{") && !objProp.startsWith("[")) {
17712
17712
  try {
17713
- const evalProp = import_globals2.window.eval(`(${objProp})`);
17713
+ const evalProp = import_globals.window.eval(`(${objProp})`);
17714
17714
  destringified[prop] = evalProp;
17715
17715
  } catch (e) {
17716
17716
  if (e)
@@ -17725,7 +17725,7 @@ var require_cjs7 = __commonJS({
17725
17725
  if ((0, import_types.isString)(arrProp)) {
17726
17726
  if (arrProp.includes("=>") || arrProp.includes("function") || arrProp.startsWith("(")) {
17727
17727
  try {
17728
- const evalProp = import_globals2.window.eval(`(${arrProp})`);
17728
+ const evalProp = import_globals.window.eval(`(${arrProp})`);
17729
17729
  destringified[prop].push(evalProp);
17730
17730
  } catch (e) {
17731
17731
  if (e)
@@ -17750,7 +17750,7 @@ var require_cjs7 = __commonJS({
17750
17750
  };
17751
17751
  var stringToObject = (str, opts = { verbose: true }) => {
17752
17752
  try {
17753
- return str ? import_globals2.window.eval("(" + str + ")") : {};
17753
+ return str ? import_globals.window.eval("(" + str + ")") : {};
17754
17754
  } catch (e) {
17755
17755
  if (opts.verbose)
17756
17756
  console.warn(e);
@@ -17852,7 +17852,7 @@ var require_cjs7 = __commonJS({
17852
17852
  }
17853
17853
  return element;
17854
17854
  };
17855
- var overwriteShallow3 = (obj, params, excludeFrom = []) => {
17855
+ var overwriteShallow2 = (obj, params, excludeFrom = []) => {
17856
17856
  for (const e in params) {
17857
17857
  if (excludeFrom.includes(e) || e.startsWith("__"))
17858
17858
  continue;
@@ -18223,7 +18223,7 @@ var require_cjs7 = __commonJS({
18223
18223
  });
18224
18224
  module22.exports = __toCommonJS22(cookie_exports);
18225
18225
  var import_types = require_types3();
18226
- var import_utils32 = require_cjs16();
18226
+ var import_utils32 = require_cjs17();
18227
18227
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
18228
18228
  var setCookie = (cname, cvalue, exdays = 365) => {
18229
18229
  if ((0, import_types.isUndefined)(import_utils32.document) || (0, import_types.isUndefined)(import_utils32.document.cookie))
@@ -18483,7 +18483,7 @@ var require_cjs7 = __commonJS({
18483
18483
  setContentKey: () => setContentKey
18484
18484
  });
18485
18485
  module22.exports = __toCommonJS22(component_exports);
18486
- var import__ = require_cjs16();
18486
+ var import__ = require_cjs17();
18487
18487
  var ENV2 = "development";
18488
18488
  var checkIfKeyIsComponent = (key) => {
18489
18489
  const isFirstKeyString = (0, import__.isString)(key);
@@ -18684,7 +18684,7 @@ var require_cjs7 = __commonJS({
18684
18684
  };
18685
18685
  }
18686
18686
  });
18687
- var require_cjs16 = __commonJS2({
18687
+ var require_cjs17 = __commonJS2({
18688
18688
  "../../../domql/packages/utils/dist/cjs/index.js"(exports2, module22) {
18689
18689
  "use strict";
18690
18690
  var __defProp22 = Object.defineProperty;
@@ -18742,7 +18742,7 @@ var require_cjs7 = __commonJS({
18742
18742
  toggleFullscreen: () => toggleFullscreen
18743
18743
  });
18744
18744
  module2.exports = __toCommonJS2(src_exports2);
18745
- var import_utils25 = __toESM2(require_cjs16(), 1);
18745
+ var import_utils23 = __toESM2(require_cjs17(), 1);
18746
18746
  var toggleFullscreen = async (el) => {
18747
18747
  if (!document.fullscreenElement) {
18748
18748
  try {
@@ -18754,15 +18754,15 @@ var require_cjs7 = __commonJS({
18754
18754
  await document.exitFullscreen();
18755
18755
  }
18756
18756
  };
18757
- var import_utils26 = __toESM2(require_cjs16(), 1);
18757
+ var import_utils24 = __toESM2(require_cjs17(), 1);
18758
18758
  var findClosestNumber = (number, arr) => {
18759
- return ((0, import_utils26.isArray)(arr) ? arr : Object.values(arr)).reduce((prev3, curr) => {
18759
+ return ((0, import_utils24.isArray)(arr) ? arr : Object.values(arr)).reduce((prev3, curr) => {
18760
18760
  return Math.abs(curr - number) < Math.abs(prev3 - number) ? curr : prev3;
18761
18761
  });
18762
18762
  };
18763
18763
  var findClosestNumberInFactory = (val, factory) => {
18764
18764
  val = parseFloat(val);
18765
- if ((0, import_utils26.isObject)(factory))
18765
+ if ((0, import_utils24.isObject)(factory))
18766
18766
  factory = Object.values(factory);
18767
18767
  return findClosestNumber(val, factory);
18768
18768
  };
@@ -18917,13 +18917,13 @@ var require_cjs7 = __commonJS({
18917
18917
  return result.charAt(0).toUpperCase() + result.slice(1);
18918
18918
  };
18919
18919
  var arrayzeValue = (val) => {
18920
- if ((0, import_utils25.isArray)(val))
18920
+ if ((0, import_utils23.isArray)(val))
18921
18921
  return val;
18922
- if ((0, import_utils25.isString)(val))
18922
+ if ((0, import_utils23.isString)(val))
18923
18923
  return val.split(" ");
18924
- if ((0, import_utils25.isObject)(val))
18924
+ if ((0, import_utils23.isObject)(val))
18925
18925
  return Object.values(val);
18926
- if ((0, import_utils25.isNumber)(val))
18926
+ if ((0, import_utils23.isNumber)(val))
18927
18927
  return [val];
18928
18928
  };
18929
18929
  }
@@ -19050,9 +19050,9 @@ var require_utilImports = __commonJS({
19050
19050
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
19051
19051
  var utilImports_exports = {};
19052
19052
  __export2(utilImports_exports, {
19053
- applyCSS: () => import_init2.applyCSS,
19054
- init: () => import_init2.init,
19055
- reinit: () => import_init2.reinit,
19053
+ applyCSS: () => import_init.applyCSS,
19054
+ init: () => import_init.init,
19055
+ reinit: () => import_init.reinit,
19056
19056
  scratchSystem: () => import_scratch12.scratchSystem,
19057
19057
  scratchUtils: () => import_scratch12.scratchUtils,
19058
19058
  set: () => import_scratch12.set
@@ -19061,7 +19061,7 @@ var require_utilImports = __commonJS({
19061
19061
  var import_scratch12 = require_cjs2();
19062
19062
  __reExport2(utilImports_exports, require_cjs(), module2.exports);
19063
19063
  __reExport2(utilImports_exports, require_cjs7(), module2.exports);
19064
- var import_init2 = (init_init(), __toCommonJS(init_exports));
19064
+ var import_init = (init_init(), __toCommonJS(init_exports));
19065
19065
  __reExport2(utilImports_exports, require_cjs8(), module2.exports);
19066
19066
  __reExport2(utilImports_exports, require_cjs6(), module2.exports);
19067
19067
  }
@@ -19095,8 +19095,8 @@ var require_router = __commonJS({
19095
19095
  popStateRouter: () => popStateRouter
19096
19096
  });
19097
19097
  module2.exports = __toCommonJS2(router_exports);
19098
- var import_router3 = require_cjs6();
19099
- var import_utils25 = require_cjs();
19098
+ var import_router2 = require_cjs6();
19099
+ var import_utils23 = require_cjs();
19100
19100
  var import_uikit = (init_uikit(), __toCommonJS(uikit_exports));
19101
19101
  var DEFAULT_ROUTING_OPTIONS = {
19102
19102
  initRouter: true,
@@ -19109,16 +19109,16 @@ var require_router = __commonJS({
19109
19109
  else if (context.router === true)
19110
19110
  context.router = DEFAULT_ROUTING_OPTIONS;
19111
19111
  else
19112
- (0, import_utils25.merge)(context.router || {}, DEFAULT_ROUTING_OPTIONS);
19112
+ (0, import_utils23.merge)(context.router || {}, DEFAULT_ROUTING_OPTIONS);
19113
19113
  const routerOptions = context.router;
19114
- const router2 = context.snippets && context.snippets.router ? context.snippets.router : import_router3.router;
19114
+ const router = context.snippets && context.snippets.router ? context.snippets.router : import_router2.router;
19115
19115
  const onRouterRenderDefault = (el, s) => {
19116
- const { pathname, search, hash: hash3 } = import_utils25.window.location;
19116
+ const { pathname, search, hash: hash3 } = import_utils23.window.location;
19117
19117
  const url2 = pathname + search + hash3;
19118
19118
  if (el.routes)
19119
- router2(url2, el, {}, { initialRender: true });
19119
+ router(url2, el, {}, { initialRender: true });
19120
19120
  };
19121
- const hasRenderRouter = element.on && !(0, import_utils25.isUndefined)(element.on.renderRouter);
19121
+ const hasRenderRouter = element.on && !(0, import_utils23.isUndefined)(element.on.renderRouter);
19122
19122
  if (routerOptions && routerOptions.initRouter && !hasRenderRouter) {
19123
19123
  if (element.on) {
19124
19124
  element.on.renderRouter = onRouterRenderDefault;
@@ -19139,16 +19139,16 @@ var require_router = __commonJS({
19139
19139
  const routerOptions = context.router || DEFAULT_ROUTING_OPTIONS;
19140
19140
  if (!routerOptions.popState)
19141
19141
  return;
19142
- const router2 = context.snippets && context.snippets.router ? context.snippets.router : import_router3.router;
19143
- import_utils25.window.onpopstate = (e) => {
19144
- const { pathname, search, hash: hash3 } = import_utils25.window.location;
19142
+ const router = context.snippets && context.snippets.router ? context.snippets.router : import_router2.router;
19143
+ import_utils23.window.onpopstate = (e) => {
19144
+ const { pathname, search, hash: hash3 } = import_utils23.window.location;
19145
19145
  const url2 = pathname + search + hash3;
19146
- router2(url2, element, {}, { pushState: false, scrollToTop: false, level: 0 });
19146
+ router(url2, element, {}, { pushState: false, scrollToTop: false, level: 0 });
19147
19147
  };
19148
19148
  };
19149
19149
  var injectRouterInLinkComponent = (routerOptions) => {
19150
19150
  if (routerOptions && routerOptions.injectRouterInLinkComponent) {
19151
- return (0, import_utils25.deepMerge)(import_uikit.Link, import_uikit.RouterLink);
19151
+ return (0, import_utils23.deepMerge)(import_uikit.Link, import_uikit.RouterLink);
19152
19152
  }
19153
19153
  };
19154
19154
  }
@@ -19180,13 +19180,13 @@ var require_cjs9 = __commonJS({
19180
19180
  document: () => document2,
19181
19181
  global: () => global,
19182
19182
  self: () => self2,
19183
- window: () => window4
19183
+ window: () => window3
19184
19184
  });
19185
19185
  module2.exports = __toCommonJS2(globals_exports);
19186
19186
  var global = globalThis;
19187
19187
  var self2 = globalThis;
19188
- var window4 = globalThis;
19189
- var document2 = window4.document;
19188
+ var window3 = globalThis;
19189
+ var document2 = window3.document;
19190
19190
  }
19191
19191
  });
19192
19192
 
@@ -19232,8 +19232,8 @@ var require_cjs10 = __commonJS({
19232
19232
  var utils2 = __toESM2(require_cjs(), 1);
19233
19233
  var globals2 = __toESM2(require_cjs9(), 1);
19234
19234
  var { overwriteDeep: overwriteDeep2, deepDestringify } = utils2;
19235
- var { window: window4 } = globals2;
19236
- var IS_DEVELOPMENT = window4 && window4.location ? window4.location.host.includes("dev.") : true;
19235
+ var { window: window3 } = globals2;
19236
+ var IS_DEVELOPMENT = window3 && window3.location ? window3.location.host.includes("dev.") : true;
19237
19237
  var SERVER_URL = IS_DEVELOPMENT ? "http://localhost:13335/get" : "https://api.symbols.app/get";
19238
19238
  var defaultOptions = {
19239
19239
  endpoint: SERVER_URL
@@ -19325,7 +19325,7 @@ var require_ferchOnCreate = __commonJS({
19325
19325
  fetchSync: () => fetchSync
19326
19326
  });
19327
19327
  module2.exports = __toCommonJS2(ferchOnCreate_exports);
19328
- var import_utils25 = require_cjs();
19328
+ var import_utils23 = require_cjs();
19329
19329
  var import_fetch = require_cjs10();
19330
19330
  var fetchSync = async (key, options) => {
19331
19331
  if (key && options.editor) {
@@ -19342,10 +19342,10 @@ var require_ferchOnCreate = __commonJS({
19342
19342
  try {
19343
19343
  if (options.editor.async) {
19344
19344
  (0, import_fetch.fetchProjectAsync)(key, options, callback || ((data) => {
19345
- if ((0, import_utils25.isObject)(data.designsystem)) {
19345
+ if ((0, import_utils23.isObject)(data.designsystem)) {
19346
19346
  options.utils.init(data.designsystem);
19347
19347
  }
19348
- if ((0, import_utils25.isObject)(data.state)) {
19348
+ if ((0, import_utils23.isObject)(data.state)) {
19349
19349
  app.state.set(data.state);
19350
19350
  }
19351
19351
  }));
@@ -19490,11 +19490,11 @@ var require_tree = __commonJS({
19490
19490
  TREE: () => TREE
19491
19491
  });
19492
19492
  module2.exports = __toCommonJS2(tree_exports);
19493
- var import_utils25 = require_cjs();
19493
+ var import_utils23 = require_cjs();
19494
19494
  var import_report = require_cjs3();
19495
19495
  var ROOT = {
19496
19496
  key: ":root",
19497
- node: import_utils25.document ? import_utils25.document.body : (0, import_report.report)("DocumentNotDefined", import_utils25.document)
19497
+ node: import_utils23.document ? import_utils23.document.body : (0, import_report.report)("DocumentNotDefined", import_utils23.document)
19498
19498
  };
19499
19499
  var TREE = ROOT;
19500
19500
  }
@@ -19561,10 +19561,10 @@ var require_cache = __commonJS({
19561
19561
  module2.exports = __toCommonJS2(cache_exports);
19562
19562
  var import_report = require_cjs3();
19563
19563
  var import_event = require_cjs4();
19564
- var import_utils25 = require_cjs();
19564
+ var import_utils23 = require_cjs();
19565
19565
  var createHTMLNode = (element) => {
19566
19566
  const { tag, context } = element;
19567
- const doc = context.document || import_utils25.document;
19567
+ const doc = context.document || import_utils23.document;
19568
19568
  if (tag) {
19569
19569
  if (tag === "string")
19570
19570
  return doc.createTextNode(element.text);
@@ -19580,16 +19580,16 @@ var require_cache = __commonJS({
19580
19580
  };
19581
19581
  var detectTag = (element) => {
19582
19582
  let { tag, key, props: props5 } = element;
19583
- tag = (0, import_utils25.exec)(tag, element);
19583
+ tag = (0, import_utils23.exec)(tag, element);
19584
19584
  if (tag === true)
19585
19585
  tag = key;
19586
- if ((0, import_utils25.isObject)(props5) && (0, import_utils25.isString)(props5.tag)) {
19587
- const tagExists = (0, import_utils25.isValidHtmlTag)(props5.tag);
19586
+ if ((0, import_utils23.isObject)(props5) && (0, import_utils23.isString)(props5.tag)) {
19587
+ const tagExists = (0, import_utils23.isValidHtmlTag)(props5.tag);
19588
19588
  if (tagExists)
19589
19589
  return props5.tag;
19590
19590
  }
19591
- if ((0, import_utils25.isString)(tag)) {
19592
- if ((0, import_utils25.isValidHtmlTag)(tag))
19591
+ if ((0, import_utils23.isString)(tag)) {
19592
+ if ((0, import_utils23.isValidHtmlTag)(tag))
19593
19593
  return tag;
19594
19594
  } else {
19595
19595
  let keyAsTag = key.toLowerCase();
@@ -19597,7 +19597,7 @@ var require_cache = __commonJS({
19597
19597
  keyAsTag = keyAsTag.split(".")[0];
19598
19598
  if (keyAsTag.includes("_"))
19599
19599
  keyAsTag = keyAsTag.split("_")[0];
19600
- if ((0, import_utils25.isValidHtmlTag)(keyAsTag))
19600
+ if ((0, import_utils23.isValidHtmlTag)(keyAsTag))
19601
19601
  return keyAsTag;
19602
19602
  }
19603
19603
  return "div";
@@ -19765,9 +19765,9 @@ var require_inherit2 = __commonJS({
19765
19765
  inheritParentProps: () => inheritParentProps
19766
19766
  });
19767
19767
  module2.exports = __toCommonJS2(inherit_exports);
19768
- var import_utils25 = require_cjs();
19768
+ var import_utils23 = require_cjs();
19769
19769
  var objectizeStringProperty = (propValue) => {
19770
- if ((0, import_utils25.is)(propValue)("string", "number")) {
19770
+ if ((0, import_utils23.is)(propValue)("string", "number")) {
19771
19771
  return { inheritedString: propValue };
19772
19772
  }
19773
19773
  return propValue;
@@ -19775,9 +19775,9 @@ var require_inherit2 = __commonJS({
19775
19775
  var inheritParentProps = (element, parent) => {
19776
19776
  var _a;
19777
19777
  let propsStack = [];
19778
- const parentProps = (0, import_utils25.exec)(parent, parent.state).props;
19778
+ const parentProps = (0, import_utils23.exec)(parent, parent.state).props;
19779
19779
  const matchParent = parent.props && parentProps[element.key];
19780
- const matchParentIsString = (0, import_utils25.isString)(matchParent);
19780
+ const matchParentIsString = (0, import_utils23.isString)(matchParent);
19781
19781
  const matchParentChildProps = parentProps && parentProps.childProps;
19782
19782
  if (matchParent) {
19783
19783
  if (matchParentIsString) {
@@ -19825,19 +19825,19 @@ var require_create3 = __commonJS({
19825
19825
  syncProps: () => syncProps
19826
19826
  });
19827
19827
  module2.exports = __toCommonJS2(create_exports);
19828
- var import_utils25 = require_cjs();
19828
+ var import_utils23 = require_cjs();
19829
19829
  var import_ignore = require_ignore2();
19830
19830
  var import_inherit = require_inherit2();
19831
19831
  var createPropsStack = (element, parent) => {
19832
19832
  const { props: props5, __ref: ref } = element;
19833
19833
  const propsStack = ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
19834
- if ((0, import_utils25.isObject)(props5))
19834
+ if ((0, import_utils23.isObject)(props5))
19835
19835
  propsStack.push(props5);
19836
19836
  else if (props5 === "inherit" && parent.props)
19837
19837
  propsStack.push(parent.props);
19838
19838
  else if (props5)
19839
19839
  propsStack.push(props5);
19840
- if ((0, import_utils25.isArray)(ref.__extend)) {
19840
+ if ((0, import_utils23.isArray)(ref.__extend)) {
19841
19841
  ref.__extend.forEach((extend) => {
19842
19842
  if (extend.props && extend.props !== props5)
19843
19843
  propsStack.push(extend.props);
@@ -19854,13 +19854,13 @@ var require_create3 = __commonJS({
19854
19854
  return;
19855
19855
  let execProps;
19856
19856
  try {
19857
- execProps = (0, import_utils25.exec)(v, element);
19857
+ execProps = (0, import_utils23.exec)(v, element);
19858
19858
  } catch (e) {
19859
19859
  element.error(e, opts);
19860
19860
  }
19861
- element.props = (0, import_utils25.deepMerge)(
19861
+ element.props = (0, import_utils23.deepMerge)(
19862
19862
  mergedProps,
19863
- (0, import_utils25.deepCloneWithExtend)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
19863
+ (0, import_utils23.deepCloneWithExtend)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
19864
19864
  import_ignore.IGNORE_PROPS_PARAMS
19865
19865
  );
19866
19866
  });
@@ -20006,10 +20006,10 @@ var require_object2 = __commonJS({
20006
20006
  mergeIfExisted: () => mergeIfExisted,
20007
20007
  overwrite: () => overwrite,
20008
20008
  overwriteDeep: () => overwriteDeep2,
20009
- overwriteShallow: () => overwriteShallow3
20009
+ overwriteShallow: () => overwriteShallow2
20010
20010
  });
20011
20011
  module2.exports = __toCommonJS2(object_exports);
20012
- var import_utils25 = require_cjs();
20012
+ var import_utils23 = require_cjs();
20013
20013
  var import_props = require_props();
20014
20014
  var IGNORE_STATE_PARAMS = [
20015
20015
  "update",
@@ -20061,7 +20061,7 @@ var require_object2 = __commonJS({
20061
20061
  "nextElement",
20062
20062
  "previousElement"
20063
20063
  ];
20064
- var METHODS_EXL = (0, import_utils25.joinArrays)(
20064
+ var METHODS_EXL = (0, import_utils23.joinArrays)(
20065
20065
  ["node", "state", "context", "extend", "__element"],
20066
20066
  METHODS,
20067
20067
  IGNORE_STATE_PARAMS,
@@ -20075,7 +20075,7 @@ var require_object2 = __commonJS({
20075
20075
  const extendProp = extend[e];
20076
20076
  if (elementProp === void 0) {
20077
20077
  element[e] = extendProp;
20078
- } else if ((0, import_utils25.isObjectLike)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
20078
+ } else if ((0, import_utils23.isObjectLike)(elementProp) && (0, import_utils23.isObject)(extendProp)) {
20079
20079
  deepMerge2(elementProp, extendProp);
20080
20080
  }
20081
20081
  }
@@ -20133,7 +20133,7 @@ var require_object2 = __commonJS({
20133
20133
  }
20134
20134
  return changes;
20135
20135
  };
20136
- var overwriteShallow3 = (obj, params, exclude = METHODS_EXL) => {
20136
+ var overwriteShallow2 = (obj, params, exclude = METHODS_EXL) => {
20137
20137
  for (const e in params) {
20138
20138
  if (exclude.includes(e))
20139
20139
  continue;
@@ -20147,7 +20147,7 @@ var require_object2 = __commonJS({
20147
20147
  continue;
20148
20148
  const objProp = obj[e];
20149
20149
  const paramsProp = params[e];
20150
- if ((0, import_utils25.isObjectLike)(objProp) && (0, import_utils25.isObjectLike)(paramsProp)) {
20150
+ if ((0, import_utils23.isObjectLike)(objProp) && (0, import_utils23.isObjectLike)(paramsProp)) {
20151
20151
  overwriteDeep2(objProp, paramsProp);
20152
20152
  } else if (paramsProp !== void 0) {
20153
20153
  obj[e] = paramsProp;
@@ -20156,15 +20156,15 @@ var require_object2 = __commonJS({
20156
20156
  return obj;
20157
20157
  };
20158
20158
  var mergeIfExisted = (a, b) => {
20159
- if ((0, import_utils25.isObjectLike)(a) && (0, import_utils25.isObjectLike)(b))
20159
+ if ((0, import_utils23.isObjectLike)(a) && (0, import_utils23.isObjectLike)(b))
20160
20160
  return deepMerge2(a, b);
20161
20161
  return a || b;
20162
20162
  };
20163
20163
  var mergeArray = (arr, exclude = ["parent", "node", "__element", "state", "context", "__ref"]) => {
20164
- return arr.reduce((a, c) => deepMerge2(a, (0, import_utils25.deepCloneWithExtend)(c, exclude)), {});
20164
+ return arr.reduce((a, c) => deepMerge2(a, (0, import_utils23.deepCloneWithExtend)(c, exclude)), {});
20165
20165
  };
20166
20166
  var mergeAndCloneIfArray = (obj) => {
20167
- return (0, import_utils25.isArray)(obj) ? mergeArray(obj) : (0, import_utils25.deepCloneWithExtend)(obj);
20167
+ return (0, import_utils23.isArray)(obj) ? mergeArray(obj) : (0, import_utils23.deepCloneWithExtend)(obj);
20168
20168
  };
20169
20169
  var flattenRecursive = (param, prop, stack = []) => {
20170
20170
  const objectized = mergeAndCloneIfArray(param);
@@ -20218,7 +20218,7 @@ var require_extendUtils = __commonJS({
20218
20218
  setHashedExtend: () => setHashedExtend
20219
20219
  });
20220
20220
  module2.exports = __toCommonJS2(extendUtils_exports);
20221
- var import_utils25 = require_cjs();
20221
+ var import_utils23 = require_cjs();
20222
20222
  var ENV2 = "development";
20223
20223
  var generateHash = () => Math.random().toString(36).substring(2);
20224
20224
  var extendStackRegistry = {};
@@ -20228,7 +20228,7 @@ var require_extendUtils = __commonJS({
20228
20228
  };
20229
20229
  var setHashedExtend = (extend, stack) => {
20230
20230
  const hash3 = generateHash();
20231
- if (!(0, import_utils25.isString)(extend)) {
20231
+ if (!(0, import_utils23.isString)(extend)) {
20232
20232
  extend.__hash = hash3;
20233
20233
  }
20234
20234
  extendStackRegistry[hash3] = stack;
@@ -20254,9 +20254,9 @@ var require_extendUtils = __commonJS({
20254
20254
  var flattenExtend = (extend, stack, context) => {
20255
20255
  if (!extend)
20256
20256
  return stack;
20257
- if ((0, import_utils25.isArray)(extend))
20257
+ if ((0, import_utils23.isArray)(extend))
20258
20258
  return extractArrayExtend(extend, stack, context);
20259
- if ((0, import_utils25.isString)(extend))
20259
+ if ((0, import_utils23.isString)(extend))
20260
20260
  extend = fallbackStringExtend(extend, context);
20261
20261
  stack.push(extend);
20262
20262
  if (extend.extend)
@@ -20271,14 +20271,14 @@ var require_extendUtils = __commonJS({
20271
20271
  const extendProp = extend[e];
20272
20272
  if (elementProp === void 0) {
20273
20273
  element[e] = extendProp;
20274
- } else if ((0, import_utils25.isObject)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
20274
+ } else if ((0, import_utils23.isObject)(elementProp) && (0, import_utils23.isObject)(extendProp)) {
20275
20275
  deepMergeExtend(elementProp, extendProp);
20276
- } else if ((0, import_utils25.isArray)(elementProp) && (0, import_utils25.isArray)(extendProp)) {
20276
+ } else if ((0, import_utils23.isArray)(elementProp) && (0, import_utils23.isArray)(extendProp)) {
20277
20277
  element[e] = elementProp.concat(extendProp);
20278
- } else if ((0, import_utils25.isArray)(elementProp) && (0, import_utils25.isObject)(extendProp)) {
20278
+ } else if ((0, import_utils23.isArray)(elementProp) && (0, import_utils23.isObject)(extendProp)) {
20279
20279
  const obj = deepMergeExtend({}, elementProp);
20280
20280
  element[e] = deepMergeExtend(obj, extendProp);
20281
- } else if (elementProp === void 0 && (0, import_utils25.isFunction)(extendProp)) {
20281
+ } else if (elementProp === void 0 && (0, import_utils23.isFunction)(extendProp)) {
20282
20282
  element[e] = extendProp;
20283
20283
  }
20284
20284
  }
@@ -20286,13 +20286,13 @@ var require_extendUtils = __commonJS({
20286
20286
  };
20287
20287
  var cloneAndMergeArrayExtend = (stack) => {
20288
20288
  return stack.reduce((a, c) => {
20289
- return deepMergeExtend(a, (0, import_utils25.deepCloneWithExtend)(c));
20289
+ return deepMergeExtend(a, (0, import_utils23.deepCloneWithExtend)(c));
20290
20290
  }, {});
20291
20291
  };
20292
20292
  var fallbackStringExtend = (extend, context, options = {}) => {
20293
20293
  const COMPONENTS = context && context.components || options.components;
20294
20294
  const PAGES = context && context.pages || options.pages;
20295
- if ((0, import_utils25.isString)(extend)) {
20295
+ if ((0, import_utils23.isString)(extend)) {
20296
20296
  const componentExists = COMPONENTS && (COMPONENTS[extend] || COMPONENTS["smbls." + extend]);
20297
20297
  const pageExists = PAGES && extend.startsWith("/") && PAGES[extend];
20298
20298
  if (componentExists)
@@ -20352,30 +20352,30 @@ var require_extend = __commonJS({
20352
20352
  applyExtend: () => applyExtend
20353
20353
  });
20354
20354
  module2.exports = __toCommonJS2(extend_exports);
20355
- var import_utils25 = require_cjs();
20356
- var import_utils26 = require_utils();
20355
+ var import_utils23 = require_cjs();
20356
+ var import_utils24 = require_utils();
20357
20357
  var ENV2 = "development";
20358
20358
  var mainExtend;
20359
20359
  var applyExtend = (element, parent, options = {}) => {
20360
- if ((0, import_utils25.isFunction)(element))
20361
- element = (0, import_utils25.exec)(element, parent);
20360
+ if ((0, import_utils23.isFunction)(element))
20361
+ element = (0, import_utils23.exec)(element, parent);
20362
20362
  const { props: props5, __ref } = element;
20363
20363
  let extend = (props5 == null ? void 0 : props5.extends) || element.extends || element.extend;
20364
20364
  const context = element.context || parent.context;
20365
- extend = (0, import_utils26.fallbackStringExtend)(extend, context, options);
20366
- const extendStack = (0, import_utils26.getExtendStack)(extend, context);
20365
+ extend = (0, import_utils24.fallbackStringExtend)(extend, context, options);
20366
+ const extendStack = (0, import_utils24.getExtendStack)(extend, context);
20367
20367
  if (ENV2 !== "test" || ENV2 !== "development")
20368
20368
  delete element.extend;
20369
20369
  let childExtendStack = [];
20370
20370
  if (parent) {
20371
20371
  element.parent = parent;
20372
20372
  if (!options.ignoreChildExtend && !(props5 && props5.ignoreChildExtend)) {
20373
- childExtendStack = (0, import_utils26.getExtendStack)(parent.childExtend, context);
20373
+ childExtendStack = (0, import_utils24.getExtendStack)(parent.childExtend, context);
20374
20374
  const ignoreChildExtendRecursive = props5 && props5.ignoreChildExtendRecursive;
20375
20375
  if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
20376
20376
  const canExtendRecursive = element.key !== "__text";
20377
20377
  if (canExtendRecursive) {
20378
- const childExtendRecursiveStack = (0, import_utils26.getExtendStack)(parent.childExtendRecursive, context);
20378
+ const childExtendRecursiveStack = (0, import_utils24.getExtendStack)(parent.childExtendRecursive, context);
20379
20379
  childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
20380
20380
  element.childExtendRecursive = parent.childExtendRecursive;
20381
20381
  }
@@ -20386,7 +20386,7 @@ var require_extend = __commonJS({
20386
20386
  const childExtendLength = childExtendStack.length;
20387
20387
  let stack = [];
20388
20388
  if (extendLength && childExtendLength) {
20389
- stack = (0, import_utils26.jointStacks)(extendStack, childExtendStack);
20389
+ stack = (0, import_utils24.jointStacks)(extendStack, childExtendStack);
20390
20390
  } else if (extendLength) {
20391
20391
  stack = extendStack;
20392
20392
  } else if (childExtendLength) {
@@ -20395,22 +20395,22 @@ var require_extend = __commonJS({
20395
20395
  return element;
20396
20396
  if (context.defaultExtends) {
20397
20397
  if (!mainExtend) {
20398
- const defaultOptionsExtend = (0, import_utils26.getExtendStack)(context.defaultExtends, context);
20399
- mainExtend = (0, import_utils26.cloneAndMergeArrayExtend)(defaultOptionsExtend);
20398
+ const defaultOptionsExtend = (0, import_utils24.getExtendStack)(context.defaultExtends, context);
20399
+ mainExtend = (0, import_utils24.cloneAndMergeArrayExtend)(defaultOptionsExtend);
20400
20400
  delete mainExtend.extend;
20401
20401
  }
20402
20402
  stack = [].concat(stack, mainExtend);
20403
20403
  }
20404
20404
  if (__ref)
20405
20405
  __ref.__extend = stack;
20406
- let mergedExtend = (0, import_utils26.cloneAndMergeArrayExtend)(stack);
20406
+ let mergedExtend = (0, import_utils24.cloneAndMergeArrayExtend)(stack);
20407
20407
  const COMPONENTS = context && context.components || options.components;
20408
- const component = (0, import_utils25.exec)(element.component || mergedExtend.component, element);
20408
+ const component = (0, import_utils23.exec)(element.component || mergedExtend.component, element);
20409
20409
  if (component && COMPONENTS && COMPONENTS[component]) {
20410
- const componentExtend = (0, import_utils26.cloneAndMergeArrayExtend)((0, import_utils26.getExtendStack)(COMPONENTS[component]));
20411
- mergedExtend = (0, import_utils26.deepMergeExtend)(componentExtend, mergedExtend);
20410
+ const componentExtend = (0, import_utils24.cloneAndMergeArrayExtend)((0, import_utils24.getExtendStack)(COMPONENTS[component]));
20411
+ mergedExtend = (0, import_utils24.deepMergeExtend)(componentExtend, mergedExtend);
20412
20412
  }
20413
- const merged = (0, import_utils26.deepMergeExtend)(element, mergedExtend);
20413
+ const merged = (0, import_utils24.deepMergeExtend)(element, mergedExtend);
20414
20414
  return merged;
20415
20415
  };
20416
20416
  }
@@ -20444,7 +20444,7 @@ var require_component2 = __commonJS({
20444
20444
  overwriteVariant: () => overwriteVariant
20445
20445
  });
20446
20446
  module2.exports = __toCommonJS2(component_exports);
20447
- var import_utils25 = require_cjs();
20447
+ var import_utils23 = require_cjs();
20448
20448
  var import_extend = require_extend();
20449
20449
  var import_mixins = require_mixins();
20450
20450
  var replaceOnKeys = (key) => key.replace(/on\w+/g, (match3) => match3.substring(2));
@@ -20465,7 +20465,7 @@ var require_component2 = __commonJS({
20465
20465
  if (isDefine) {
20466
20466
  newElem.define[k] = prop;
20467
20467
  }
20468
- const isComponent = (0, import_utils25.checkIfKeyIsComponent)(k);
20468
+ const isComponent = (0, import_utils23.checkIfKeyIsComponent)(k);
20469
20469
  const isRegistry = import_mixins.registry[k];
20470
20470
  if (isComponent || isRegistry) {
20471
20471
  newElem[k] = prop;
@@ -20479,25 +20479,25 @@ var require_component2 = __commonJS({
20479
20479
  let variantElement = element[variant];
20480
20480
  if (!variantElement)
20481
20481
  return;
20482
- const props5 = (0, import_utils25.isObject)(variantProps) ? variantProps : {};
20483
- if ((0, import_utils25.isString)(variantElement)) {
20482
+ const props5 = (0, import_utils23.isObject)(variantProps) ? variantProps : {};
20483
+ if ((0, import_utils23.isString)(variantElement)) {
20484
20484
  variantElement = {
20485
20485
  extend: [{ props: props5 }, variantElement]
20486
20486
  };
20487
20487
  } else if (variantElement.extend) {
20488
- variantElement = (0, import_utils25.addAdditionalExtend)({ props: props5 }, variantElement);
20488
+ variantElement = (0, import_utils23.addAdditionalExtend)({ props: props5 }, variantElement);
20489
20489
  }
20490
20490
  const extendedVariant = (0, import_extend.applyExtend)(variantElement, element.parent);
20491
20491
  const { parent, ...rest } = extendedVariant;
20492
- return (0, import_utils25.overwriteDeep)(element, rest);
20492
+ return (0, import_utils23.overwriteDeep)(element, rest);
20493
20493
  };
20494
20494
  var applyVariant = (element) => {
20495
20495
  const { props: props5 } = element;
20496
- if (!(0, import_utils25.hasVariantProp)(element))
20496
+ if (!(0, import_utils23.hasVariantProp)(element))
20497
20497
  return element;
20498
20498
  const { variant } = props5;
20499
20499
  overwriteVariant(element, `.${variant}`);
20500
- const elKeys = Object.keys(element).filter((key) => (0, import_utils25.isVariant)(key));
20500
+ const elKeys = Object.keys(element).filter((key) => (0, import_utils23.isVariant)(key));
20501
20501
  elKeys.forEach((variant2) => {
20502
20502
  const slicedVariantElementKey = variant2.slice(1);
20503
20503
  const variantElementProps = props5[slicedVariantElementKey];
@@ -20561,20 +20561,20 @@ var require_attr = __commonJS({
20561
20561
  default: () => attr_default
20562
20562
  });
20563
20563
  module2.exports = __toCommonJS2(attr_exports);
20564
- var import_utils25 = require_cjs();
20564
+ var import_utils23 = require_cjs();
20565
20565
  var import_report = require_cjs3();
20566
- var import_utils26 = require_utils();
20566
+ var import_utils24 = require_utils();
20567
20567
  var attr_default = (params, element, node3) => {
20568
20568
  const { __ref } = element;
20569
20569
  const { __attr } = __ref;
20570
- if ((0, import_utils25.isNot)("object"))
20570
+ if ((0, import_utils23.isNot)("object"))
20571
20571
  (0, import_report.report)("HTMLInvalidAttr", params);
20572
20572
  if (params) {
20573
20573
  if (element.props.attr)
20574
- (0, import_utils26.deepMerge)(params, element.props.attr);
20574
+ (0, import_utils24.deepMerge)(params, element.props.attr);
20575
20575
  for (const attr in params) {
20576
- const val = (0, import_utils25.exec)(params[attr], element);
20577
- if (val !== false && !(0, import_utils25.isUndefined)(val) && !(0, import_utils25.isNull)(val) && node3.setAttribute)
20576
+ const val = (0, import_utils23.exec)(params[attr], element);
20577
+ if (val !== false && !(0, import_utils23.isUndefined)(val) && !(0, import_utils23.isNull)(val) && node3.setAttribute)
20578
20578
  node3.setAttribute(attr, val);
20579
20579
  else if (node3.removeAttribute)
20580
20580
  node3.removeAttribute(attr);
@@ -20615,7 +20615,7 @@ var require_classList = __commonJS({
20615
20615
  default: () => classList_default
20616
20616
  });
20617
20617
  module2.exports = __toCommonJS2(classList_exports);
20618
- var import_utils25 = require_cjs();
20618
+ var import_utils23 = require_cjs();
20619
20619
  var assignKeyAsClassname = (element) => {
20620
20620
  const { key } = element;
20621
20621
  if (element.class === true)
@@ -20633,7 +20633,7 @@ var require_classList = __commonJS({
20633
20633
  else if (typeof param === "string")
20634
20634
  className += ` ${param}`;
20635
20635
  else if (typeof param === "function") {
20636
- className += ` ${(0, import_utils25.exec)(param, element)}`;
20636
+ className += ` ${(0, import_utils23.exec)(param, element)}`;
20637
20637
  }
20638
20638
  }
20639
20639
  return className;
@@ -20644,9 +20644,9 @@ var require_classList = __commonJS({
20644
20644
  const { key } = element;
20645
20645
  if (params === true)
20646
20646
  params = element.class = { key };
20647
- if ((0, import_utils25.isString)(params))
20647
+ if ((0, import_utils23.isString)(params))
20648
20648
  params = element.class = { default: params };
20649
- if ((0, import_utils25.isObject)(params))
20649
+ if ((0, import_utils23.isObject)(params))
20650
20650
  params = classify2(params, element);
20651
20651
  const className = params.replace(/\s+/g, " ").trim();
20652
20652
  if (element.ref)
@@ -20732,7 +20732,7 @@ var require_set = __commonJS({
20732
20732
  resetElement: () => resetElement
20733
20733
  });
20734
20734
  module2.exports = __toCommonJS2(set_exports);
20735
- var import_utils25 = require_cjs();
20735
+ var import_utils23 = require_cjs();
20736
20736
  var import_create = __toESM2(require_create4(), 1);
20737
20737
  var import_options = __toESM2(require_options2(), 1);
20738
20738
  var import_mixins = require_mixins();
@@ -20762,13 +20762,13 @@ var require_set = __commonJS({
20762
20762
  var _a;
20763
20763
  const element = el || this;
20764
20764
  const { __ref: ref } = element;
20765
- const content = (0, import_utils25.setContentKey)(element, options);
20765
+ const content = (0, import_utils23.setContentKey)(element, options);
20766
20766
  const __contentRef = content && content.__ref;
20767
20767
  const lazyLoad = element.props && element.props.lazyLoad;
20768
20768
  const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
20769
20769
  if (options.preventContentUpdate === true && !hasCollection)
20770
20770
  return;
20771
- if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils25.deepContains)(params, content)) {
20771
+ if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils23.deepContains)(params, content)) {
20772
20772
  if (!options.preventBeforeUpdateListener && !options.preventListeners) {
20773
20773
  const beforeUpdateReturns = (0, import_event.triggerEventOnUpdate)("beforeUpdate", params, element, options);
20774
20774
  if (beforeUpdateReturns === false)
@@ -20839,7 +20839,7 @@ var require_content = __commonJS({
20839
20839
  updateContent: () => updateContent
20840
20840
  });
20841
20841
  module2.exports = __toCommonJS2(content_exports);
20842
- var import_utils25 = require_cjs();
20842
+ var import_utils23 = require_cjs();
20843
20843
  var import_set = __toESM2(require_set(), 1);
20844
20844
  var updateContent = function(params, options) {
20845
20845
  const element = this;
@@ -20853,7 +20853,7 @@ var require_content = __commonJS({
20853
20853
  var removeContent = function(el, opts = {}) {
20854
20854
  const element = el || this;
20855
20855
  const { __ref: ref } = element;
20856
- const contentElementKey = (0, import_utils25.setContentKey)(element, opts);
20856
+ const contentElementKey = (0, import_utils23.setContentKey)(element, opts);
20857
20857
  if (opts.contentElementKey !== "content")
20858
20858
  opts.contentElementKey = "content";
20859
20859
  if (element[contentElementKey]) {
@@ -20870,14 +20870,14 @@ var require_content = __commonJS({
20870
20870
  if (__cached && __cached[contentElementKey]) {
20871
20871
  if (__cached[contentElementKey].tag === "fragment")
20872
20872
  __cached[contentElementKey].parent.node.innerHTML = "";
20873
- else if (__cached[contentElementKey] && (0, import_utils25.isFunction)(__cached[contentElementKey].remove))
20873
+ else if (__cached[contentElementKey] && (0, import_utils23.isFunction)(__cached[contentElementKey].remove))
20874
20874
  __cached[contentElementKey].remove();
20875
20875
  }
20876
20876
  delete element[contentElementKey];
20877
20877
  }
20878
20878
  };
20879
20879
  var setContent = (param, element, node3, opts) => {
20880
- const contentElementKey = (0, import_utils25.setContentKey)(element, opts);
20880
+ const contentElementKey = (0, import_utils23.setContentKey)(element, opts);
20881
20881
  if (param && element) {
20882
20882
  if (element[contentElementKey].update) {
20883
20883
  element[contentElementKey].update({}, opts);
@@ -20916,18 +20916,18 @@ var require_data = __commonJS({
20916
20916
  default: () => data_default
20917
20917
  });
20918
20918
  module2.exports = __toCommonJS2(data_exports);
20919
- var import_utils25 = require_cjs();
20919
+ var import_utils23 = require_cjs();
20920
20920
  var import_report = require_cjs3();
20921
20921
  var data_default = (params, element, node3) => {
20922
20922
  if (params) {
20923
20923
  if (element.props.data)
20924
- (0, import_utils25.deepMerge)(params, element.props.data);
20924
+ (0, import_utils23.deepMerge)(params, element.props.data);
20925
20925
  if (params.showOnNode) {
20926
- if (!(0, import_utils25.isObject)(params))
20926
+ if (!(0, import_utils23.isObject)(params))
20927
20927
  (0, import_report.report)("HTMLInvalidData", params);
20928
20928
  for (const dataset in params) {
20929
20929
  if (dataset !== "showOnNode") {
20930
- node3.dataset[dataset] = (0, import_utils25.exec)(params[dataset], element);
20930
+ node3.dataset[dataset] = (0, import_utils23.exec)(params[dataset], element);
20931
20931
  }
20932
20932
  }
20933
20933
  }
@@ -20962,10 +20962,10 @@ var require_html = __commonJS({
20962
20962
  default: () => html_default
20963
20963
  });
20964
20964
  module2.exports = __toCommonJS2(html_exports);
20965
- var import_utils25 = require_cjs();
20965
+ var import_utils23 = require_cjs();
20966
20966
  var html_default = (param, element, node3) => {
20967
20967
  var _a;
20968
- const prop = (0, import_utils25.exec)(param, element) || (0, import_utils25.exec)((_a = element == null ? void 0 : element.props) == null ? void 0 : _a.html, element);
20968
+ const prop = (0, import_utils23.exec)(param, element) || (0, import_utils23.exec)((_a = element == null ? void 0 : element.props) == null ? void 0 : _a.html, element);
20969
20969
  const { __ref } = element;
20970
20970
  if (prop !== __ref.__html) {
20971
20971
  if (node3.nodeName === "SVG")
@@ -21004,12 +21004,12 @@ var require_style = __commonJS({
21004
21004
  default: () => style_default
21005
21005
  });
21006
21006
  module2.exports = __toCommonJS2(style_exports);
21007
- var import_utils25 = require_cjs();
21007
+ var import_utils23 = require_cjs();
21008
21008
  var import_report = require_cjs3();
21009
21009
  var style_default = (params, element, node3) => {
21010
21010
  if (params) {
21011
- if ((0, import_utils25.isObject)(params))
21012
- (0, import_utils25.map)(node3.style, params, element);
21011
+ if ((0, import_utils23.isObject)(params))
21012
+ (0, import_utils23.map)(node3.style, params, element);
21013
21013
  else
21014
21014
  (0, import_report.report)("HTMLInvalidStyles", params);
21015
21015
  }
@@ -21044,11 +21044,11 @@ var require_text = __commonJS({
21044
21044
  });
21045
21045
  module2.exports = __toCommonJS2(text_exports);
21046
21046
  var import__ = require_cjs12();
21047
- var import_utils25 = require_cjs();
21047
+ var import_utils23 = require_cjs();
21048
21048
  var text_default = (param, element, node3) => {
21049
- let prop = (0, import_utils25.exec)(param, element);
21050
- if ((0, import_utils25.isString)(prop) && prop.includes("{{")) {
21051
- prop = (0, import_utils25.replaceLiteralsWithObjectFields)(prop, element.state);
21049
+ let prop = (0, import_utils23.exec)(param, element);
21050
+ if ((0, import_utils23.isString)(prop) && prop.includes("{{")) {
21051
+ prop = (0, import_utils23.replaceLiteralsWithObjectFields)(prop, element.state);
21052
21052
  }
21053
21053
  if (element.tag === "string") {
21054
21054
  node3.nodeValue = prop;
@@ -21094,10 +21094,10 @@ var require_state = __commonJS({
21094
21094
  });
21095
21095
  module2.exports = __toCommonJS2(state_exports);
21096
21096
  var import_state2 = require_cjs5();
21097
- var import_utils25 = require_cjs();
21097
+ var import_utils23 = require_cjs();
21098
21098
  var state = (params, element, node3) => {
21099
- const state2 = (0, import_utils25.exec)(params, element);
21100
- if ((0, import_utils25.isObject)(state2)) {
21099
+ const state2 = (0, import_utils23.exec)(params, element);
21100
+ if ((0, import_utils23.isObject)(state2)) {
21101
21101
  for (const param in state2) {
21102
21102
  if (import_state2.IGNORE_STATE_PARAMS.includes(param))
21103
21103
  continue;
@@ -21137,13 +21137,13 @@ var require_scope = __commonJS({
21137
21137
  default: () => scope_default
21138
21138
  });
21139
21139
  module2.exports = __toCommonJS2(scope_exports);
21140
- var import_utils25 = require_cjs();
21140
+ var import_utils23 = require_cjs();
21141
21141
  var scope_default = (params, element, node3) => {
21142
- if (!(0, import_utils25.isObject)(params))
21142
+ if (!(0, import_utils23.isObject)(params))
21143
21143
  return;
21144
21144
  for (const scopeItem in params) {
21145
21145
  const value2 = params[scopeItem];
21146
- if ((0, import_utils25.isFunction)(value2)) {
21146
+ if ((0, import_utils23.isFunction)(value2)) {
21147
21147
  element.scope[scopeItem] = value2.bind(element);
21148
21148
  } else {
21149
21149
  element.scope[scopeItem] = value2;
@@ -21379,7 +21379,7 @@ var require_methods2 = __commonJS({
21379
21379
  warn: () => warn
21380
21380
  });
21381
21381
  module2.exports = __toCommonJS2(methods_exports);
21382
- var import_utils25 = require_cjs();
21382
+ var import_utils23 = require_cjs();
21383
21383
  var import_tree = require_tree();
21384
21384
  var import_mixins = require_mixins();
21385
21385
  var ENV2 = "development";
@@ -21402,7 +21402,7 @@ var require_methods2 = __commonJS({
21402
21402
  function lookup3(param) {
21403
21403
  const el = this;
21404
21404
  let { parent } = el;
21405
- if ((0, import_utils25.isFunction)(param)) {
21405
+ if ((0, import_utils23.isFunction)(param)) {
21406
21406
  if (parent.state && param(parent, parent.state, parent.context))
21407
21407
  return parent;
21408
21408
  else if (parent.parent)
@@ -21431,7 +21431,7 @@ var require_methods2 = __commonJS({
21431
21431
  const childElem = el[v];
21432
21432
  if (v === param)
21433
21433
  return childElem;
21434
- else if ((0, import_utils25.isFunction)(param)) {
21434
+ else if ((0, import_utils23.isFunction)(param)) {
21435
21435
  const exec7 = param(childElem, childElem.state, childElem.context);
21436
21436
  if (childElem.state && exec7) {
21437
21437
  return childElem;
@@ -21452,7 +21452,7 @@ var require_methods2 = __commonJS({
21452
21452
  const childElem = el[v];
21453
21453
  if (v === param)
21454
21454
  results.push(childElem);
21455
- else if ((0, import_utils25.isFunction)(param)) {
21455
+ else if ((0, import_utils23.isFunction)(param)) {
21456
21456
  const exec7 = param(childElem, childElem.state, childElem.context);
21457
21457
  if (childElem.state && exec7)
21458
21458
  results.push(childElem);
@@ -21469,7 +21469,7 @@ var require_methods2 = __commonJS({
21469
21469
  for (const param in params) {
21470
21470
  const value2 = params[param];
21471
21471
  const childElem = el[param];
21472
- if ((0, import_utils25.isObject)(value2) && childElem)
21472
+ if ((0, import_utils23.isObject)(value2) && childElem)
21473
21473
  setNodeStyles.call(childElem, value2);
21474
21474
  else
21475
21475
  el.node.style[param] = value2;
@@ -21478,15 +21478,15 @@ var require_methods2 = __commonJS({
21478
21478
  }
21479
21479
  function remove() {
21480
21480
  const element = this;
21481
- if ((0, import_utils25.isFunction)(element.node.remove))
21481
+ if ((0, import_utils23.isFunction)(element.node.remove))
21482
21482
  element.node.remove();
21483
- else if (!(0, import_utils25.isProduction)()) {
21483
+ else if (!(0, import_utils23.isProduction)()) {
21484
21484
  console.warn("This item cant be removed");
21485
21485
  element.log();
21486
21486
  }
21487
21487
  delete element.parent[element.key];
21488
21488
  if (element.parent.__ref)
21489
- element.parent.__ref.__children = (0, import_utils25.removeValueFromArray)(element.parent.__ref.__children, element.key);
21489
+ element.parent.__ref.__children = (0, import_utils23.removeValueFromArray)(element.parent.__ref.__children, element.key);
21490
21490
  }
21491
21491
  function get(param) {
21492
21492
  const element = this;
@@ -21528,8 +21528,8 @@ var require_methods2 = __commonJS({
21528
21528
  if (v === "state") {
21529
21529
  if (element.__ref && !element.__ref.__hasRootState)
21530
21530
  return;
21531
- const parsedVal = (0, import_utils25.isFunction)(val && val.parse) ? val.parse() : val;
21532
- obj[v] = (0, import_utils25.isFunction)(parsedVal) ? parsedVal : JSON.parse(JSON.stringify(parsedVal || {}));
21531
+ const parsedVal = (0, import_utils23.isFunction)(val && val.parse) ? val.parse() : val;
21532
+ obj[v] = (0, import_utils23.isFunction)(parsedVal) ? parsedVal : JSON.parse(JSON.stringify(parsedVal || {}));
21533
21533
  } else if (v === "scope") {
21534
21534
  if (element.__ref && !element.__ref.__hasRootScope)
21535
21535
  return;
@@ -21537,7 +21537,7 @@ var require_methods2 = __commonJS({
21537
21537
  } else if (v === "props") {
21538
21538
  const { __element, update, ...props5 } = element[v];
21539
21539
  obj[v] = props5;
21540
- } else if ((0, import_utils25.isDefined)(val) && Object.hasOwnProperty.call(element, v))
21540
+ } else if ((0, import_utils23.isDefined)(val) && Object.hasOwnProperty.call(element, v))
21541
21541
  obj[v] = val;
21542
21542
  });
21543
21543
  return obj;
@@ -21548,7 +21548,7 @@ var require_methods2 = __commonJS({
21548
21548
  for (const v in obj) {
21549
21549
  if (excl.includes(v))
21550
21550
  return;
21551
- if ((0, import_utils25.isObjectLike)(obj[v])) {
21551
+ if ((0, import_utils23.isObjectLike)(obj[v])) {
21552
21552
  obj[v] = parseDeep.call(obj[v], excl);
21553
21553
  }
21554
21554
  }
@@ -21628,7 +21628,7 @@ var require_methods2 = __commonJS({
21628
21628
  changed: (cb) => {
21629
21629
  if (!changed)
21630
21630
  return;
21631
- const returns = cb(changes, (0, import_utils25.deepClone)(varCaches));
21631
+ const returns = cb(changes, (0, import_utils23.deepClone)(varCaches));
21632
21632
  for (const key in changes) {
21633
21633
  varCaches[key] = changes[key];
21634
21634
  }
@@ -21708,8 +21708,8 @@ var require_iterate = __commonJS({
21708
21708
  throughUpdatedExec: () => throughUpdatedExec
21709
21709
  });
21710
21710
  module2.exports = __toCommonJS2(iterate_exports);
21711
- var import_utils25 = require_cjs();
21712
- var import_utils26 = require_utils();
21711
+ var import_utils23 = require_cjs();
21712
+ var import_utils24 = require_utils();
21713
21713
  var import_methods = require_methods2();
21714
21714
  var throughInitialExec = (element, exclude = {}) => {
21715
21715
  const { __ref: ref } = element;
@@ -21717,13 +21717,13 @@ var require_iterate = __commonJS({
21717
21717
  if (exclude[param])
21718
21718
  continue;
21719
21719
  const prop = element[param];
21720
- if ((0, import_utils25.isFunction)(prop) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils25.isVariant)(param)) {
21720
+ if ((0, import_utils23.isFunction)(prop) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils23.isVariant)(param)) {
21721
21721
  ref.__exec[param] = prop;
21722
21722
  element[param] = prop(element, element.state, element.context);
21723
21723
  }
21724
21724
  }
21725
21725
  };
21726
- var throughUpdatedExec = (element, options = { excludes: import_utils26.METHODS_EXL }) => {
21726
+ var throughUpdatedExec = (element, options = { excludes: import_utils24.METHODS_EXL }) => {
21727
21727
  const { __ref: ref } = element;
21728
21728
  const changes = {};
21729
21729
  for (const param in ref.__exec) {
@@ -21732,13 +21732,13 @@ var require_iterate = __commonJS({
21732
21732
  if (isDefinedParam)
21733
21733
  continue;
21734
21734
  const newExec = ref.__exec[param](element, element.state, element.context);
21735
- const execReturnsString = (0, import_utils25.isString)(newExec) || (0, import_utils25.isNumber)(newExec);
21735
+ const execReturnsString = (0, import_utils23.isString)(newExec) || (0, import_utils23.isNumber)(newExec);
21736
21736
  if (prop && prop.node && execReturnsString) {
21737
- (0, import_utils26.overwrite)(prop, { text: newExec }, options);
21737
+ (0, import_utils24.overwrite)(prop, { text: newExec }, options);
21738
21738
  } else if (newExec !== prop) {
21739
- if ((0, import_utils25.checkIfKeyIsComponent)(param)) {
21740
- const { extend, ...newElem } = (0, import_utils25.extendizeByKey)(newExec, element, param);
21741
- (0, import_utils26.overwrite)(prop, newElem, options);
21739
+ if ((0, import_utils23.checkIfKeyIsComponent)(param)) {
21740
+ const { extend, ...newElem } = (0, import_utils23.extendizeByKey)(newExec, element, param);
21741
+ (0, import_utils24.overwrite)(prop, newElem, options);
21742
21742
  } else {
21743
21743
  ref.__cached[param] = changes[param] = prop;
21744
21744
  element[param] = newExec;
@@ -21753,27 +21753,27 @@ var require_iterate = __commonJS({
21753
21753
  for (const k in props5) {
21754
21754
  const isDefine = k.startsWith("is") || k.startsWith("has") || k.startsWith("use");
21755
21755
  const cachedExecProp = ref.__execProps[k];
21756
- if ((0, import_utils25.isFunction)(cachedExecProp)) {
21757
- props5[k] = (0, import_utils25.exec)(cachedExecProp, element);
21758
- } else if (isDefine && (0, import_utils25.isFunction)(props5[k])) {
21756
+ if ((0, import_utils23.isFunction)(cachedExecProp)) {
21757
+ props5[k] = (0, import_utils23.exec)(cachedExecProp, element);
21758
+ } else if (isDefine && (0, import_utils23.isFunction)(props5[k])) {
21759
21759
  ref.__execProps[k] = props5[k];
21760
- props5[k] = (0, import_utils25.exec)(props5[k], element);
21760
+ props5[k] = (0, import_utils23.exec)(props5[k], element);
21761
21761
  }
21762
21762
  }
21763
21763
  };
21764
21764
  var throughInitialDefine = (element) => {
21765
21765
  const { define, context, __ref: ref } = element;
21766
21766
  let defineObj = {};
21767
- const hasGlobalDefine = context && (0, import_utils25.isObject)(context.define);
21768
- if ((0, import_utils25.isObject)(define))
21767
+ const hasGlobalDefine = context && (0, import_utils23.isObject)(context.define);
21768
+ if ((0, import_utils23.isObject)(define))
21769
21769
  defineObj = { ...define };
21770
21770
  if (hasGlobalDefine)
21771
21771
  defineObj = { ...defineObj, ...context.define };
21772
21772
  for (const param in defineObj) {
21773
21773
  let elementProp = element[param];
21774
- if ((0, import_utils25.isFunction)(elementProp) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils25.isVariant)(param)) {
21774
+ if ((0, import_utils23.isFunction)(elementProp) && !(0, import_methods.isMethod)(param, element) && !(0, import_utils23.isVariant)(param)) {
21775
21775
  ref.__exec[param] = elementProp;
21776
- const execParam2 = elementProp = (0, import_utils25.exec)(elementProp, element);
21776
+ const execParam2 = elementProp = (0, import_utils23.exec)(elementProp, element);
21777
21777
  if (execParam2) {
21778
21778
  elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
21779
21779
  ref.__defineCache[param] = elementProp;
@@ -21789,15 +21789,15 @@ var require_iterate = __commonJS({
21789
21789
  const { context, define, __ref: ref } = element;
21790
21790
  const changes = {};
21791
21791
  let obj = {};
21792
- if ((0, import_utils25.isObject)(define))
21792
+ if ((0, import_utils23.isObject)(define))
21793
21793
  obj = { ...define };
21794
- if ((0, import_utils25.isObject)(context && context.define))
21794
+ if ((0, import_utils23.isObject)(context && context.define))
21795
21795
  obj = { ...obj, ...context.define };
21796
21796
  for (const param in obj) {
21797
21797
  const execParam = ref.__exec[param];
21798
21798
  if (execParam)
21799
21799
  ref.__defineCache[param] = execParam(element, element.state, element.context);
21800
- const cached = (0, import_utils25.exec)(ref.__defineCache[param], element);
21800
+ const cached = (0, import_utils23.exec)(ref.__defineCache[param], element);
21801
21801
  const newExecParam = obj[param](cached, element, element.state, element.context);
21802
21802
  if (newExecParam)
21803
21803
  element[param] = newExecParam;
@@ -21833,7 +21833,7 @@ var require_applyParam = __commonJS({
21833
21833
  applyParam: () => applyParam
21834
21834
  });
21835
21835
  module2.exports = __toCommonJS2(applyParam_exports);
21836
- var import_utils25 = require_cjs();
21836
+ var import_utils23 = require_cjs();
21837
21837
  var import_mixins = require_mixins();
21838
21838
  var applyParam = (param, element, options) => {
21839
21839
  const { node: node3, context, __ref: ref } = element;
@@ -21848,7 +21848,7 @@ var require_applyParam = __commonJS({
21848
21848
  return;
21849
21849
  const hasOnlyUpdate = onlyUpdate ? onlyUpdate === param || element.lookup(onlyUpdate) : true;
21850
21850
  if (isGlobalTransformer && !hasContextDefine && hasOnlyUpdate) {
21851
- if ((0, import_utils25.isFunction)(isGlobalTransformer)) {
21851
+ if ((0, import_utils23.isFunction)(isGlobalTransformer)) {
21852
21852
  isGlobalTransformer(prop, element, node3, options);
21853
21853
  return;
21854
21854
  }
@@ -21884,15 +21884,15 @@ var require_propEvents = __commonJS({
21884
21884
  propagateEventsFromProps: () => propagateEventsFromProps
21885
21885
  });
21886
21886
  module2.exports = __toCommonJS2(propEvents_exports);
21887
- var import_utils25 = require_cjs();
21887
+ var import_utils23 = require_cjs();
21888
21888
  var propagateEventsFromProps = (element) => {
21889
21889
  const { props: props5, on: on2 } = element;
21890
21890
  const eventKeysFromProps = Object.keys(props5).filter((key) => key.startsWith("on"));
21891
21891
  eventKeysFromProps.forEach((v) => {
21892
- const eventName = (0, import_utils25.lowercaseFirstLetter)(v.split("on")[1]);
21892
+ const eventName = (0, import_utils23.lowercaseFirstLetter)(v.split("on")[1]);
21893
21893
  const origEvent = on2[eventName];
21894
21894
  const funcFromProps = props5[v];
21895
- if ((0, import_utils25.isFunction)(origEvent)) {
21895
+ if ((0, import_utils23.isFunction)(origEvent)) {
21896
21896
  on2[eventName] = (...args) => {
21897
21897
  const originalEventRetunrs = origEvent(...args);
21898
21898
  if (originalEventRetunrs !== false)
@@ -21942,7 +21942,7 @@ var require_node2 = __commonJS({
21942
21942
  default: () => node_default
21943
21943
  });
21944
21944
  module2.exports = __toCommonJS2(node_exports);
21945
- var import_utils25 = require_cjs();
21945
+ var import_utils23 = require_cjs();
21946
21946
  var import_event = require_cjs4();
21947
21947
  var import_render = require_cjs11();
21948
21948
  var import_methods = require_methods2();
@@ -21967,7 +21967,7 @@ var require_node2 = __commonJS({
21967
21967
  }
21968
21968
  if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
21969
21969
  node3.ref = element;
21970
- if ((0, import_utils25.isFunction)(node3.setAttribute))
21970
+ if ((0, import_utils23.isFunction)(node3.setAttribute))
21971
21971
  node3.setAttribute("key", element.key);
21972
21972
  }
21973
21973
  (0, import_iterate.throughExecProps)(element);
@@ -21976,7 +21976,7 @@ var require_node2 = __commonJS({
21976
21976
  if (element.tag !== "string" && element.tag !== "fragment") {
21977
21977
  (0, import_propEvents.propagateEventsFromProps)(element);
21978
21978
  (0, import_event.applyAnimationFrame)(element, options);
21979
- if (isNewNode && (0, import_utils25.isObject)(element.on)) {
21979
+ if (isNewNode && (0, import_utils23.isObject)(element.on)) {
21980
21980
  (0, import_event.applyEventsOnNode)(element, options);
21981
21981
  }
21982
21982
  }
@@ -21984,14 +21984,14 @@ var require_node2 = __commonJS({
21984
21984
  const value2 = element[param];
21985
21985
  if (!Object.hasOwnProperty.call(element, param))
21986
21986
  continue;
21987
- if ((0, import_utils25.isUndefined)(value2) || (0, import_methods.isMethod)(param, element) || (0, import_utils25.isVariant)(param) || (0, import_utils25.isObject)(import_mixins.registry[param]))
21987
+ if ((0, import_utils23.isUndefined)(value2) || (0, import_methods.isMethod)(param, element) || (0, import_utils23.isVariant)(param) || (0, import_utils23.isObject)(import_mixins.registry[param]))
21988
21988
  continue;
21989
21989
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
21990
21990
  if (isElement) {
21991
21991
  const { hasDefine, hasContextDefine } = isElement;
21992
21992
  if (element[param] && !hasDefine && !hasContextDefine) {
21993
21993
  const createAsync = () => {
21994
- (0, import_create.default)((0, import_utils25.exec)(value2, element), element, param, options);
21994
+ (0, import_create.default)((0, import_utils23.exec)(value2, element), element, param, options);
21995
21995
  };
21996
21996
  if (element.props && element.props.lazyLoad || options.lazyLoad) {
21997
21997
  window.requestAnimationFrame(() => createAsync());
@@ -22042,7 +22042,7 @@ var require_update2 = __commonJS({
22042
22042
  default: () => update_default
22043
22043
  });
22044
22044
  module2.exports = __toCommonJS2(update_exports);
22045
- var import_utils25 = require_cjs();
22045
+ var import_utils23 = require_cjs();
22046
22046
  var import_event = require_cjs4();
22047
22047
  var import_methods = require_methods2();
22048
22048
  var import_props = require_props();
@@ -22052,9 +22052,9 @@ var require_update2 = __commonJS({
22052
22052
  var import_mixins = require_mixins();
22053
22053
  var import_applyParam = require_applyParam();
22054
22054
  var import_options = __toESM2(require_options2(), 1);
22055
- var import_utils26 = require_utils();
22055
+ var import_utils24 = require_utils();
22056
22056
  var snapshot = {
22057
- snapshotId: import_utils25.createSnapshotId
22057
+ snapshotId: import_utils23.createSnapshotId
22058
22058
  };
22059
22059
  var UPDATE_DEFAULT_OPTIONS = {
22060
22060
  stackChanges: false,
@@ -22062,11 +22062,11 @@ var require_update2 = __commonJS({
22062
22062
  preventRecursive: false,
22063
22063
  currentSnapshot: false,
22064
22064
  calleeElement: false,
22065
- excludes: import_utils26.METHODS_EXL
22065
+ excludes: import_utils24.METHODS_EXL
22066
22066
  };
22067
22067
  var update = function(params = {}, opts) {
22068
22068
  const calleeElementCache = opts == null ? void 0 : opts.calleeElement;
22069
- const options = (0, import_utils26.deepClone)((0, import_utils25.isObject)(opts) ? (0, import_utils26.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS, ["calleeElement"]);
22069
+ const options = (0, import_utils24.deepClone)((0, import_utils23.isObject)(opts) ? (0, import_utils24.deepMerge)(opts, UPDATE_DEFAULT_OPTIONS) : UPDATE_DEFAULT_OPTIONS, ["calleeElement"]);
22070
22070
  options.calleeElement = calleeElementCache;
22071
22071
  const element = this;
22072
22072
  const { parent, node: node3, key } = element;
@@ -22082,8 +22082,8 @@ var require_update2 = __commonJS({
22082
22082
  if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
22083
22083
  return;
22084
22084
  if (!excludes)
22085
- (0, import_utils25.merge)(options, UPDATE_DEFAULT_OPTIONS);
22086
- if ((0, import_utils25.isString)(params) || (0, import_utils25.isNumber)(params)) {
22085
+ (0, import_utils23.merge)(options, UPDATE_DEFAULT_OPTIONS);
22086
+ if ((0, import_utils23.isString)(params) || (0, import_utils23.isNumber)(params)) {
22087
22087
  params = { text: params };
22088
22088
  }
22089
22089
  const inheritState = inheritStateUpdates(element, options);
@@ -22094,7 +22094,7 @@ var require_update2 = __commonJS({
22094
22094
  return;
22095
22095
  if (ref.__if && !options.preventPropsUpdate) {
22096
22096
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
22097
- const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils25.isFunction)(v));
22097
+ const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils23.isFunction)(v));
22098
22098
  const props5 = params.props || hasParentProps || hasFunctionInProps.length;
22099
22099
  if (props5)
22100
22100
  (0, import_props.updateProps)(props5, element, parent);
@@ -22104,7 +22104,7 @@ var require_update2 = __commonJS({
22104
22104
  if (beforeUpdateReturns === false)
22105
22105
  return element;
22106
22106
  }
22107
- (0, import_utils25.overwriteDeep)(element, params, { exclude: import_utils26.METHODS_EXL });
22107
+ (0, import_utils23.overwriteDeep)(element, params, { exclude: import_utils24.METHODS_EXL });
22108
22108
  (0, import_iterate.throughExecProps)(element);
22109
22109
  (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
22110
22110
  (0, import_iterate.throughUpdatedDefine)(element);
@@ -22127,7 +22127,7 @@ var require_update2 = __commonJS({
22127
22127
  preventUpdateAfterCount
22128
22128
  } = options;
22129
22129
  if (preventUpdateAfter) {
22130
- if ((0, import_utils25.isNumber)(preventUpdateAfterCount) && preventUpdateAfter <= preventUpdateAfterCount)
22130
+ if ((0, import_utils23.isNumber)(preventUpdateAfterCount) && preventUpdateAfter <= preventUpdateAfterCount)
22131
22131
  return;
22132
22132
  else if (options.preventUpdateAfterCount === void 0)
22133
22133
  options.preventUpdateAfterCount = 1;
@@ -22141,17 +22141,17 @@ var require_update2 = __commonJS({
22141
22141
  }
22142
22142
  if (!Object.hasOwnProperty.call(element, param))
22143
22143
  continue;
22144
- const isInPreventUpdate = (0, import_utils25.isArray)(preventUpdate) && preventUpdate.includes(param);
22145
- const isInPreventDefineUpdate = (0, import_utils25.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
22144
+ const isInPreventUpdate = (0, import_utils23.isArray)(preventUpdate) && preventUpdate.includes(param);
22145
+ const isInPreventDefineUpdate = (0, import_utils23.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
22146
22146
  const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
22147
- if ((0, import_utils25.isUndefined)(prop) || isInPreventUpdate || isInPreventDefineUpdate || preventDefineUpdate === true || preventDefineUpdate === param || preventContentUpdate && param === "content" && !hasCollection || (preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param, element) || (0, import_utils25.isObject)(import_mixins.registry[param]) || (0, import_utils25.isVariant)(param))
22147
+ if ((0, import_utils23.isUndefined)(prop) || isInPreventUpdate || isInPreventDefineUpdate || preventDefineUpdate === true || preventDefineUpdate === param || preventContentUpdate && param === "content" && !hasCollection || (preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param, element) || (0, import_utils23.isObject)(import_mixins.registry[param]) || (0, import_utils23.isVariant)(param))
22148
22148
  continue;
22149
22149
  if (preventStateUpdate === "once")
22150
22150
  options.preventStateUpdate = false;
22151
22151
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
22152
22152
  if (isElement) {
22153
22153
  const { hasDefine, hasContextDefine } = isElement;
22154
- const canUpdate = (0, import_utils25.isObject)(prop) && !hasDefine && !hasContextDefine && !preventRecursive;
22154
+ const canUpdate = (0, import_utils23.isObject)(prop) && !hasDefine && !hasContextDefine && !preventRecursive;
22155
22155
  if (!canUpdate)
22156
22156
  continue;
22157
22157
  const lazyLoad = element.props.lazyLoad || options.lazyLoad;
@@ -22163,7 +22163,7 @@ var require_update2 = __commonJS({
22163
22163
  currentSnapshot: snapshotOnCallee,
22164
22164
  calleeElement
22165
22165
  });
22166
- lazyLoad ? import_utils25.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
22166
+ lazyLoad ? import_utils23.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
22167
22167
  }
22168
22168
  }
22169
22169
  if (!preventUpdateListener)
@@ -22186,7 +22186,7 @@ var require_update2 = __commonJS({
22186
22186
  };
22187
22187
  var checkIfOnUpdate = (element, parent, options) => {
22188
22188
  var _a, _b, _c;
22189
- if (!(0, import_utils25.isFunction)(element.if) && !(0, import_utils25.isFunction)((_a = element.props) == null ? void 0 : _a.if) || !parent)
22189
+ if (!(0, import_utils23.isFunction)(element.if) && !(0, import_utils23.isFunction)((_a = element.props) == null ? void 0 : _a.if) || !parent)
22190
22190
  return;
22191
22191
  const ref = element.__ref;
22192
22192
  const ifPassed = (element.if || ((_b = element.props) == null ? void 0 : _b.if))(element, element.state, element.context, options);
@@ -22227,7 +22227,7 @@ var require_update2 = __commonJS({
22227
22227
  delete element.__ref;
22228
22228
  delete element.parent;
22229
22229
  const createdElement = (0, import_create.default)(element, parent, element.key, import_options.default.create, attachOptions);
22230
- if (options.preventUpdate !== true && element.on && (0, import_utils25.isFunction)(element.on.update)) {
22230
+ if (options.preventUpdate !== true && element.on && (0, import_utils23.isFunction)(element.on.update)) {
22231
22231
  (0, import_event.applyEvent)(element.on.update, createdElement, createdElement.state);
22232
22232
  }
22233
22233
  return createdElement;
@@ -22248,9 +22248,9 @@ var require_update2 = __commonJS({
22248
22248
  element.state = parent && parent.state || {};
22249
22249
  return;
22250
22250
  }
22251
- const shouldForceFunctionState = (0, import_utils25.isFunction)(stateKey) && !isHoisted && execStateFunction;
22251
+ const shouldForceFunctionState = (0, import_utils23.isFunction)(stateKey) && !isHoisted && execStateFunction;
22252
22252
  if (shouldForceFunctionState) {
22253
- const execState = (0, import_utils25.exec)(stateKey, element);
22253
+ const execState = (0, import_utils23.exec)(stateKey, element);
22254
22254
  state.set(execState, { ...options, preventUpdate: true, preventStateUpdateListener: false, updatedByStateFunction: true });
22255
22255
  return;
22256
22256
  }
@@ -22318,7 +22318,7 @@ var require_set2 = __commonJS({
22318
22318
  addMethods: () => addMethods
22319
22319
  });
22320
22320
  module2.exports = __toCommonJS2(set_exports);
22321
- var import_utils25 = require_cjs();
22321
+ var import_utils23 = require_cjs();
22322
22322
  var import_set = __toESM2(require_set(), 1);
22323
22323
  var import_update = __toESM2(require_update2(), 1);
22324
22324
  var import__ = require_methods2();
@@ -22351,7 +22351,7 @@ var require_set2 = __commonJS({
22351
22351
  error: import__.error
22352
22352
  };
22353
22353
  if (element.context.methods)
22354
- (options.strict ? import_utils25.merge : import_utils25.overwrite)(proto, element.context.methods);
22354
+ (options.strict ? import_utils23.merge : import_utils23.overwrite)(proto, element.context.methods);
22355
22355
  Object.setPrototypeOf(element, proto);
22356
22356
  };
22357
22357
  }
@@ -22395,7 +22395,7 @@ var require_create4 = __commonJS({
22395
22395
  module2.exports = __toCommonJS2(create_exports);
22396
22396
  var import_node = __toESM2(require_node2(), 1);
22397
22397
  var import_tree = require_tree();
22398
- var import_utils25 = require_cjs();
22398
+ var import_utils23 = require_cjs();
22399
22399
  var import_event = require_cjs4();
22400
22400
  var import_render = require_cjs11();
22401
22401
  var import_state2 = require_cjs5();
@@ -22418,9 +22418,9 @@ var require_create4 = __commonJS({
22418
22418
  parent = redefineParent(element, parent, key);
22419
22419
  key = createKey(element, parent, key);
22420
22420
  const ref = addRef(element, parent, key);
22421
- ref.__initialProps = (0, import_utils25.deepCloneWithExtend)(element.props, []);
22421
+ ref.__initialProps = (0, import_utils23.deepCloneWithExtend)(element.props, []);
22422
22422
  applyContext(element, parent, options);
22423
- (0, import_utils25.applyComponentFromContext)(element, parent, options);
22423
+ (0, import_utils23.applyComponentFromContext)(element, parent, options);
22424
22424
  if (!ref.__skipCreate) {
22425
22425
  (0, import_extend.applyExtend)(element, parent, options);
22426
22426
  }
@@ -22449,7 +22449,7 @@ var require_create4 = __commonJS({
22449
22449
  return element;
22450
22450
  (0, import_event.triggerEventOn)("beforeClassAssign", element, options);
22451
22451
  (0, import_classList.assignKeyAsClassname)(element);
22452
- (0, import_utils25.addChildrenIfNotInOriginal)(element, parent, key);
22452
+ (0, import_utils23.addChildrenIfNotInOriginal)(element, parent, key);
22453
22453
  renderElement(element, parent, options, attachOptions);
22454
22454
  addElementIntoParentChildren(element, parent);
22455
22455
  (0, import_event.triggerEventOn)("complete", element, options);
@@ -22462,7 +22462,7 @@ var require_create4 = __commonJS({
22462
22462
  }
22463
22463
  return {};
22464
22464
  }
22465
- if ((0, import_utils25.isString)(key) && key.slice(0, 2 === "__")) {
22465
+ if ((0, import_utils23.isString)(key) && key.slice(0, 2 === "__")) {
22466
22466
  if (ENV2 === "test" || ENV2 === "development") {
22467
22467
  console.warn(key, "seems like to be in __ref");
22468
22468
  }
@@ -22484,8 +22484,8 @@ var require_create4 = __commonJS({
22484
22484
  else
22485
22485
  element.syntaxv3 = true;
22486
22486
  return (0, import_component.createValidDomqlObjectFromSugar)(element, parent, key, options);
22487
- } else if ((0, import_utils25.checkIfKeyIsComponent)(key)) {
22488
- return (0, import_utils25.applyKeyComponentAsExtend)(elementWrapper, parent, key);
22487
+ } else if ((0, import_utils23.checkIfKeyIsComponent)(key)) {
22488
+ return (0, import_utils23.applyKeyComponentAsExtend)(elementWrapper, parent, key);
22489
22489
  }
22490
22490
  if (checkIfMedia(key)) {
22491
22491
  return applyMediaProps2(elementWrapper, parent, key);
@@ -22495,7 +22495,7 @@ var require_create4 = __commonJS({
22495
22495
  var redefineParent = (element, parent, key, options) => {
22496
22496
  if (!parent)
22497
22497
  return import_tree.ROOT;
22498
- if ((0, import_utils25.isNode)(parent)) {
22498
+ if ((0, import_utils23.isNode)(parent)) {
22499
22499
  const parentNodeWrapper = { key: ":root", node: parent };
22500
22500
  import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
22501
22501
  return parentNodeWrapper;
@@ -22509,7 +22509,7 @@ var require_create4 = __commonJS({
22509
22509
  }
22510
22510
  };
22511
22511
  var createKey = (element, parent, key) => {
22512
- return ((0, import_utils25.exec)(key, element) || key || element.key || (0, import_utils25.generateKey)()).toString();
22512
+ return ((0, import_utils23.exec)(key, element) || key || element.key || (0, import_utils23.generateKey)()).toString();
22513
22513
  };
22514
22514
  var addRef = (element, parent) => {
22515
22515
  if (element.__ref)
@@ -22539,7 +22539,7 @@ var require_create4 = __commonJS({
22539
22539
  visitedElements.set(element, true);
22540
22540
  const { __ref: ref, key } = element;
22541
22541
  try {
22542
- const isInfiniteLoopDetected = (0, import_utils25.detectInfiniteLoop)(ref.path);
22542
+ const isInfiniteLoopDetected = (0, import_utils23.detectInfiniteLoop)(ref.path);
22543
22543
  if (ref.__uniqId || isInfiniteLoopDetected)
22544
22544
  return;
22545
22545
  (0, import_node.default)(element, options);
@@ -22571,12 +22571,12 @@ var require_create4 = __commonJS({
22571
22571
  (0, import_event.triggerEventOn)("done", element, options);
22572
22572
  (0, import_event.triggerEventOn)("create", element, options);
22573
22573
  };
22574
- var checkIfPrimitive = (element) => (0, import_utils25.is)(element)("string", "number");
22574
+ var checkIfPrimitive = (element) => (0, import_utils23.is)(element)("string", "number");
22575
22575
  var applyValueAsText = (element, parent, key) => {
22576
22576
  const extendTag = element.extend && element.extend.tag;
22577
22577
  const childExtendTag = parent.childExtend && parent.childExtend.tag;
22578
22578
  const childPropsTag = parent.props.childProps && parent.props.childProps.tag;
22579
- const isKeyValidHTMLTag = import_utils25.HTML_TAGS.body.indexOf(key) > -1 && key;
22579
+ const isKeyValidHTMLTag = import_utils23.HTML_TAGS.body.indexOf(key) > -1 && key;
22580
22580
  return {
22581
22581
  text: element,
22582
22582
  tag: extendTag || childExtendTag || childPropsTag || isKeyValidHTMLTag || "string"
@@ -22596,7 +22596,7 @@ var require_create4 = __commonJS({
22596
22596
  };
22597
22597
  var createIfConditionFlag = (element, parent) => {
22598
22598
  const { __ref: ref } = element;
22599
- if ((0, import_utils25.isFunction)(element.if) && !element.if(element, element.state, element.context)) {
22599
+ if ((0, import_utils23.isFunction)(element.if) && !element.if(element, element.state, element.context)) {
22600
22600
  delete ref.__if;
22601
22601
  } else
22602
22602
  ref.__if = true;
@@ -22624,7 +22624,7 @@ var require_create4 = __commonJS({
22624
22624
  ref.__changes = [];
22625
22625
  if (!ref.__children)
22626
22626
  ref.__children = [];
22627
- if ((0, import_utils25.checkIfKeyIsComponent)(key))
22627
+ if ((0, import_utils23.checkIfKeyIsComponent)(key))
22628
22628
  ref.__componentKey = key.split("_")[0].split(".")[0].split("+")[0];
22629
22629
  const hasRoot = parent && parent.key === ":root";
22630
22630
  if (!ref.root)
@@ -22660,7 +22660,7 @@ var require_create4 = __commonJS({
22660
22660
  (0, import_iterate.throughInitialDefine)(element);
22661
22661
  (0, import_iterate.throughInitialExec)(element);
22662
22662
  for (const k in element) {
22663
- if ((0, import_utils25.isUndefined)(element[k]) || (0, import_methods.isMethod)(k, element) || (0, import_utils25.isObject)(import_mixins.registry[k]) || (0, import_utils25.isVariant)(k))
22663
+ if ((0, import_utils23.isUndefined)(element[k]) || (0, import_methods.isMethod)(k, element) || (0, import_utils23.isObject)(import_mixins.registry[k]) || (0, import_utils23.isVariant)(k))
22664
22664
  continue;
22665
22665
  const hasDefine = element.define && element.define[k];
22666
22666
  const contextHasDefine = element.context && element.context.define && element.context.define[k];
@@ -22668,7 +22668,7 @@ var require_create4 = __commonJS({
22668
22668
  if (!ref.__skipCreate && import_mixins.registry[k] && !optionsHasDefine) {
22669
22669
  continue;
22670
22670
  } else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
22671
- create((0, import_utils25.exec)(element[k], element), element, k, options);
22671
+ create((0, import_utils23.exec)(element[k], element), element, k, options);
22672
22672
  }
22673
22673
  }
22674
22674
  }
@@ -23963,8 +23963,6 @@ var init_websocket = __esm({
23963
23963
  }
23964
23964
  doClose() {
23965
23965
  if (typeof this.ws !== "undefined") {
23966
- this.ws.onerror = () => {
23967
- };
23968
23966
  this.ws.close();
23969
23967
  this.ws = null;
23970
23968
  }
@@ -26413,9 +26411,18 @@ var init_esm5 = __esm({
26413
26411
  });
26414
26412
 
26415
26413
  // ../socket/client.js
26414
+ var client_exports = {};
26415
+ __export(client_exports, {
26416
+ connect: () => connect,
26417
+ disconnect: () => disconnect,
26418
+ send: () => send
26419
+ });
26416
26420
  function send(event = "change", changes, options) {
26417
26421
  this.emit(event, changes, { ...options, ...defautlOpts });
26418
26422
  }
26423
+ function disconnect() {
26424
+ this.disconnect();
26425
+ }
26419
26426
  var utils, globals, isFunction3, isArray3, window2, ENV, defautlOpts, CONNECT_ATTEPT, CONNECT_ATTEPT_MAX_ALLOWED, getIsDev, getSocketUrl, connect;
26420
26427
  var init_client = __esm({
26421
26428
  "../socket/client.js"() {
@@ -26513,22 +26520,39 @@ var init_client = __esm({
26513
26520
  }
26514
26521
  });
26515
26522
 
26516
- // ../sync/Notifications.js
26517
- var Notifications_exports = {};
26518
- __export(Notifications_exports, {
26519
- Notifications: () => Notifications,
26520
- connectedToSymbols: () => connectedToSymbols
26521
- });
26522
- var NOTIF_COLORS, connectedToSymbols, Notifications;
26523
- var init_Notifications = __esm({
26524
- "../sync/Notifications.js"() {
26523
+ // ../sync/dist/cjs/Notifications.js
26524
+ var require_Notifications = __commonJS({
26525
+ "../sync/dist/cjs/Notifications.js"(exports, module2) {
26525
26526
  "use strict";
26526
- NOTIF_COLORS = {
26527
+ var __defProp2 = Object.defineProperty;
26528
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
26529
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
26530
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
26531
+ var __export2 = (target, all) => {
26532
+ for (var name in all)
26533
+ __defProp2(target, name, { get: all[name], enumerable: true });
26534
+ };
26535
+ var __copyProps2 = (to, from3, except, desc) => {
26536
+ if (from3 && typeof from3 === "object" || typeof from3 === "function") {
26537
+ for (let key of __getOwnPropNames2(from3))
26538
+ if (!__hasOwnProp2.call(to, key) && key !== except)
26539
+ __defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
26540
+ }
26541
+ return to;
26542
+ };
26543
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
26544
+ var Notifications_exports = {};
26545
+ __export2(Notifications_exports, {
26546
+ Notifications: () => Notifications,
26547
+ connectedToSymbols: () => connectedToSymbols
26548
+ });
26549
+ module2.exports = __toCommonJS2(Notifications_exports);
26550
+ var NOTIF_COLORS = {
26527
26551
  success: "green",
26528
26552
  error: "red",
26529
26553
  warning: "yellow"
26530
26554
  };
26531
- connectedToSymbols = (clients, element, state) => {
26555
+ var connectedToSymbols = (clients, element, state) => {
26532
26556
  console.log(clients);
26533
26557
  if (clients.symbols) {
26534
26558
  if (!state.connected) {
@@ -26562,7 +26586,7 @@ var init_Notifications = __esm({
26562
26586
  }
26563
26587
  }
26564
26588
  };
26565
- Notifications = {
26589
+ var Notifications = {
26566
26590
  state: {
26567
26591
  notifications: []
26568
26592
  },
@@ -26605,124 +26629,72 @@ var init_Notifications = __esm({
26605
26629
  }
26606
26630
  });
26607
26631
 
26608
- // ../sync/index.js
26609
- var sync_exports = {};
26610
- __export(sync_exports, {
26611
- SyncComponent: () => SyncComponent,
26612
- connectToSocket: () => connectToSocket
26613
- });
26614
- var import_router2, import_globals, import_utils20, isLocalhost, onConnect, onDisconnect, onChange, connectToSocket, SyncComponent;
26615
- var init_sync = __esm({
26616
- "../sync/index.js"() {
26632
+ // ../sync/dist/cjs/Inspect.js
26633
+ var require_Inspect = __commonJS({
26634
+ "../sync/dist/cjs/Inspect.js"(exports, module2) {
26617
26635
  "use strict";
26618
- import_router2 = __toESM(require_cjs6());
26619
- init_init();
26620
- init_client();
26621
- import_globals = __toESM(require_cjs9());
26622
- import_utils20 = __toESM(require_cjs());
26623
- init_Notifications();
26624
- isLocalhost = import_globals.window && import_globals.window.location && import_globals.window.location.host.includes("local");
26625
- onConnect = (element, state) => {
26626
- return (socketId, socket) => {
26627
- };
26628
- };
26629
- onDisconnect = (element, state) => {
26630
- return () => {
26631
- };
26632
- };
26633
- onChange = (el, s, ctx) => {
26634
- return (event, data) => {
26635
- if (event === "change") {
26636
- const obj = JSON.parse(data);
26637
- if (!(obj == null ? void 0 : obj.DATA))
26638
- return;
26639
- const { state, designSystem, pages, components, snippets } = obj.DATA;
26640
- const { utils: utils2 } = ctx;
26641
- if (pages) {
26642
- (0, import_utils20.overwriteShallow)(ctx.pages, pages);
26643
- }
26644
- if (components) {
26645
- (0, import_utils20.overwriteShallow)(ctx.components, components);
26646
- }
26647
- if (snippets) {
26648
- (0, import_utils20.overwriteShallow)(ctx.snippets, snippets);
26649
- }
26650
- if (state) {
26651
- const route = state.route;
26652
- if (route)
26653
- (utils2.router || import_router2.router)(route.replace("/state", "") || "/", el, {});
26654
- else if (!(snippets && components && pages))
26655
- s.update(state);
26656
- }
26657
- if (snippets || components || pages) {
26658
- const { pathname, search, hash: hash3 } = ctx.window.location;
26659
- (utils2.router || import_router2.router)(pathname + search + hash3, el, {});
26660
- }
26661
- if (designSystem)
26662
- init(designSystem);
26663
- }
26664
- if (ctx.editor.verbose && event === "clients") {
26665
- connectedToSymbols(data, el, s);
26666
- }
26667
- };
26668
- };
26669
- connectToSocket = (el, s, ctx) => {
26670
- return connect(ctx.key, {
26671
- source: isLocalhost ? "localhost" : "client",
26672
- socketUrl: isLocalhost ? "localhost:13336" : "socket.symbols.app",
26673
- location: import_globals.window.location.host,
26674
- onConnect: onConnect(el, s, ctx),
26675
- onDisconnect: onDisconnect(el, s, ctx),
26676
- onChange: onChange(el, s, ctx)
26677
- });
26636
+ var __create2 = Object.create;
26637
+ var __defProp2 = Object.defineProperty;
26638
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
26639
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
26640
+ var __getProtoOf2 = Object.getPrototypeOf;
26641
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
26642
+ var __export2 = (target, all) => {
26643
+ for (var name in all)
26644
+ __defProp2(target, name, { get: all[name], enumerable: true });
26678
26645
  };
26679
- SyncComponent = {
26680
- on: {
26681
- initSync: connectToSocket
26646
+ var __copyProps2 = (to, from3, except, desc) => {
26647
+ if (from3 && typeof from3 === "object" || typeof from3 === "function") {
26648
+ for (let key of __getOwnPropNames2(from3))
26649
+ if (!__hasOwnProp2.call(to, key) && key !== except)
26650
+ __defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
26682
26651
  }
26652
+ return to;
26683
26653
  };
26684
- }
26685
- });
26686
-
26687
- // ../sync/Inspect.js
26688
- var Inspect_exports = {};
26689
- __export(Inspect_exports, {
26690
- Inspect: () => Inspect
26691
- });
26692
- function returnStringExtend(extend) {
26693
- return (0, import_utils21.isString)(extend) ? extend : (0, import_utils21.isArray)(extend) ? extend.find((extItem) => (0, import_utils21.isString)(extItem)) : "";
26694
- }
26695
- function getComponentKey(el) {
26696
- if (!el)
26697
- return;
26698
- const __componentKey = el.__ref.__componentKey;
26699
- const extendStr = el.extend && returnStringExtend(el.extend);
26700
- const parentChildExtendStr = el.parent && el.parent.childExtend && returnStringExtend(el.parent.childExtend);
26701
- return (__componentKey || extendStr || parentChildExtendStr || "").split("_")[0].split(".")[0].split("+")[0];
26702
- }
26703
- function findComponent(el) {
26704
- if (!el || !el.__ref)
26705
- return;
26706
- const { components, pages, editor } = el.context;
26707
- const componentKey = getComponentKey(el);
26708
- if (editor && editor.onInitInspect) {
26709
- const initInspectReturns = editor.onInitInspect(componentKey, el, el.state);
26710
- if (!initInspectReturns)
26654
+ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
26655
+ // If the importer is in node compatibility mode or this is not an ESM
26656
+ // file that has been converted to a CommonJS file using a Babel-
26657
+ // compatible transform (i.e. "__esModule" has not been set), then set
26658
+ // "default" to the CommonJS "module.exports" for node compatibility.
26659
+ isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
26660
+ mod
26661
+ ));
26662
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
26663
+ var Inspect_exports = {};
26664
+ __export2(Inspect_exports, {
26665
+ Inspect: () => Inspect
26666
+ });
26667
+ module2.exports = __toCommonJS2(Inspect_exports);
26668
+ var smblsUI = __toESM2((init_uikit(), __toCommonJS(uikit_exports)), 1);
26669
+ var import_utils23 = require_cjs();
26670
+ var import_client = (init_client(), __toCommonJS(client_exports));
26671
+ function returnStringExtend(extend) {
26672
+ return (0, import_utils23.isString)(extend) ? extend : (0, import_utils23.isArray)(extend) ? extend.find((extItem) => (0, import_utils23.isString)(extItem)) : "";
26673
+ }
26674
+ function getComponentKey(el) {
26675
+ if (!el)
26676
+ return;
26677
+ const __componentKey = el.__ref.__componentKey;
26678
+ const extendStr = el.extend && returnStringExtend(el.extend);
26679
+ const parentChildExtendStr = el.parent && el.parent.childExtend && returnStringExtend(el.parent.childExtend);
26680
+ return (__componentKey || extendStr || parentChildExtendStr || "").split("_")[0].split(".")[0].split("+")[0];
26681
+ }
26682
+ function findComponent(el) {
26683
+ if (!el || !el.__ref)
26684
+ return;
26685
+ const { components, pages, editor } = el.context;
26686
+ const componentKey = getComponentKey(el);
26687
+ if (editor && editor.onInitInspect) {
26688
+ const initInspectReturns = editor.onInitInspect(componentKey, el, el.state);
26689
+ if (!initInspectReturns)
26690
+ return findComponent(el.parent);
26691
+ }
26692
+ if (componentKey && (components[componentKey] || pages[componentKey])) {
26693
+ return el;
26694
+ }
26711
26695
  return findComponent(el.parent);
26712
- }
26713
- if (componentKey && (components[componentKey] || pages[componentKey])) {
26714
- return el;
26715
- }
26716
- return findComponent(el.parent);
26717
- }
26718
- var import_utils21, inspectOnKey, Inspect;
26719
- var init_Inspect = __esm({
26720
- "../sync/Inspect.js"() {
26721
- "use strict";
26722
- init_uikit();
26723
- import_utils21 = __toESM(require_cjs());
26724
- init_client();
26725
- inspectOnKey = (app, state, ctx) => {
26696
+ }
26697
+ var inspectOnKey = (app, state, ctx) => {
26726
26698
  const windowOpts = ctx.window || window;
26727
26699
  windowOpts.onkeydown = (ev) => {
26728
26700
  if (ev.altKey && ev.shiftKey) {
@@ -26744,7 +26716,7 @@ var init_Inspect = __esm({
26744
26716
  }
26745
26717
  };
26746
26718
  };
26747
- Inspect = {
26719
+ var Inspect = {
26748
26720
  props: {
26749
26721
  ".preventSelect": { userSelect: "none" },
26750
26722
  "!preventSelect": { userSelect: "auto" }
@@ -26784,10 +26756,10 @@ var init_Inspect = __esm({
26784
26756
  on: {
26785
26757
  init: ({ context }) => {
26786
26758
  const { components } = context;
26787
- if ((0, import_utils21.isObject)(components)) {
26759
+ if ((0, import_utils23.isObject)(components)) {
26788
26760
  const { Content, ...rest } = components;
26789
26761
  for (const key in rest) {
26790
- if (uikit_exports[key])
26762
+ if (smblsUI[key])
26791
26763
  continue;
26792
26764
  if (!rest[key].__ref)
26793
26765
  rest[key].__ref = {};
@@ -26865,7 +26837,7 @@ var init_Inspect = __esm({
26865
26837
  const data = JSON.stringify({
26866
26838
  componentKey: `${componentKey}`
26867
26839
  });
26868
- send.call(el.context.socket, "route", data);
26840
+ import_client.send.call(el.context.socket, "route", data);
26869
26841
  ev.preventDefault();
26870
26842
  ev.stopPropagation();
26871
26843
  return false;
@@ -26875,6 +26847,118 @@ var init_Inspect = __esm({
26875
26847
  }
26876
26848
  });
26877
26849
 
26850
+ // ../sync/dist/cjs/DefaultSyncApp.js
26851
+ var require_DefaultSyncApp = __commonJS({
26852
+ "../sync/dist/cjs/DefaultSyncApp.js"() {
26853
+ "use strict";
26854
+ }
26855
+ });
26856
+
26857
+ // ../sync/dist/cjs/index.js
26858
+ var require_cjs14 = __commonJS({
26859
+ "../sync/dist/cjs/index.js"(exports, module2) {
26860
+ "use strict";
26861
+ var __defProp2 = Object.defineProperty;
26862
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
26863
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
26864
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
26865
+ var __export2 = (target, all) => {
26866
+ for (var name in all)
26867
+ __defProp2(target, name, { get: all[name], enumerable: true });
26868
+ };
26869
+ var __copyProps2 = (to, from3, except, desc) => {
26870
+ if (from3 && typeof from3 === "object" || typeof from3 === "function") {
26871
+ for (let key of __getOwnPropNames2(from3))
26872
+ if (!__hasOwnProp2.call(to, key) && key !== except)
26873
+ __defProp2(to, key, { get: () => from3[key], enumerable: !(desc = __getOwnPropDesc2(from3, key)) || desc.enumerable });
26874
+ }
26875
+ return to;
26876
+ };
26877
+ var __reExport2 = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default"));
26878
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
26879
+ var sync_exports = {};
26880
+ __export2(sync_exports, {
26881
+ DefaultSyncApp: () => DefaultSyncApp,
26882
+ SyncComponent: () => SyncComponent,
26883
+ connectToSocket: () => connectToSocket
26884
+ });
26885
+ module2.exports = __toCommonJS2(sync_exports);
26886
+ var import_router2 = require_cjs6();
26887
+ var import_init = (init_init(), __toCommonJS(init_exports));
26888
+ var import_client = (init_client(), __toCommonJS(client_exports));
26889
+ var import_globals = require_cjs9();
26890
+ var import_utils23 = require_cjs();
26891
+ var import_Notifications = require_Notifications();
26892
+ var import_Inspect = require_Inspect();
26893
+ __reExport2(sync_exports, require_DefaultSyncApp(), module2.exports);
26894
+ __reExport2(sync_exports, require_Notifications(), module2.exports);
26895
+ __reExport2(sync_exports, require_Inspect(), module2.exports);
26896
+ var isLocalhost = import_globals.window && import_globals.window.location && import_globals.window.location.host.includes("local");
26897
+ var onConnect = (element, state) => {
26898
+ return (socketId, socket) => {
26899
+ };
26900
+ };
26901
+ var onDisconnect = (element, state) => {
26902
+ return () => {
26903
+ };
26904
+ };
26905
+ var onChange = (el, s, ctx) => {
26906
+ return (event, data) => {
26907
+ if (event === "change") {
26908
+ const obj = JSON.parse(data);
26909
+ if (!(obj == null ? void 0 : obj.DATA))
26910
+ return;
26911
+ const { state, designSystem, pages, components, snippets } = obj.DATA;
26912
+ const { utils: utils2 } = ctx;
26913
+ if (pages) {
26914
+ (0, import_utils23.overwriteShallow)(ctx.pages, pages);
26915
+ }
26916
+ if (components) {
26917
+ (0, import_utils23.overwriteShallow)(ctx.components, components);
26918
+ }
26919
+ if (snippets) {
26920
+ (0, import_utils23.overwriteShallow)(ctx.snippets, snippets);
26921
+ }
26922
+ if (state) {
26923
+ const route = state.route;
26924
+ if (route)
26925
+ (utils2.router || import_router2.router)(route.replace("/state", "") || "/", el, {});
26926
+ else if (!(snippets && components && pages))
26927
+ s.update(state);
26928
+ }
26929
+ if (snippets || components || pages) {
26930
+ const { pathname, search, hash: hash3 } = ctx.window.location;
26931
+ (utils2.router || import_router2.router)(pathname + search + hash3, el, {});
26932
+ }
26933
+ if (designSystem)
26934
+ (0, import_init.init)(designSystem);
26935
+ }
26936
+ if (ctx.editor.verbose && event === "clients") {
26937
+ (0, import_Notifications.connectedToSymbols)(data, el, s);
26938
+ }
26939
+ };
26940
+ };
26941
+ var connectToSocket = (el, s, ctx) => {
26942
+ return (0, import_client.connect)(ctx.key, {
26943
+ source: isLocalhost ? "localhost" : "client",
26944
+ socketUrl: isLocalhost ? "localhost:13336" : "socket.symbols.app",
26945
+ location: import_globals.window.location.host,
26946
+ onConnect: onConnect(el, s, ctx),
26947
+ onDisconnect: onDisconnect(el, s, ctx),
26948
+ onChange: onChange(el, s, ctx)
26949
+ });
26950
+ };
26951
+ var SyncComponent = {
26952
+ on: {
26953
+ initSync: connectToSocket
26954
+ }
26955
+ };
26956
+ var DefaultSyncApp = {
26957
+ extend: [SyncComponent, import_Inspect.Inspect, import_Notifications.Notifications]
26958
+ };
26959
+ }
26960
+ });
26961
+
26878
26962
  // ../create/dist/cjs/syncExtend.js
26879
26963
  var require_syncExtend = __commonJS({
26880
26964
  "../create/dist/cjs/syncExtend.js"(exports, module2) {
@@ -26904,18 +26988,16 @@ var require_syncExtend = __commonJS({
26904
26988
  initializeSync: () => initializeSync
26905
26989
  });
26906
26990
  module2.exports = __toCommonJS2(syncExtend_exports);
26907
- var import_utils25 = require_cjs();
26908
- var import_sync = (init_sync(), __toCommonJS(sync_exports));
26909
- var import_Inspect = (init_Inspect(), __toCommonJS(Inspect_exports));
26910
- var import_Notifications2 = (init_Notifications(), __toCommonJS(Notifications_exports));
26991
+ var import_utils23 = require_cjs();
26992
+ var import_sync = require_cjs14();
26911
26993
  var initializeExtend = (app, ctx) => {
26912
- return (0, import_utils25.isObjectLike)(app.extend) ? app.extend : {};
26994
+ return (0, import_utils23.isObjectLike)(app.extend) ? app.extend : {};
26913
26995
  };
26914
26996
  var initializeSync = (app, ctx) => {
26915
26997
  const { editor } = ctx;
26916
26998
  if (!editor)
26917
26999
  return;
26918
- const liveSync = (0, import_utils25.isUndefined)(editor.liveSync) ? (0, import_utils25.isDevelopment)() : editor.liveSync;
27000
+ const liveSync = (0, import_utils23.isUndefined)(editor.liveSync) ? (0, import_utils23.isDevelopment)() : editor.liveSync;
26919
27001
  if (liveSync)
26920
27002
  app.extend.push(import_sync.SyncComponent);
26921
27003
  };
@@ -26923,17 +27005,17 @@ var require_syncExtend = __commonJS({
26923
27005
  const { editor } = ctx;
26924
27006
  if (!editor)
26925
27007
  return;
26926
- const inspect = (0, import_utils25.isUndefined)(editor.inspect) ? (0, import_utils25.isDevelopment)() : editor.inspect;
27008
+ const inspect = (0, import_utils23.isUndefined)(editor.inspect) ? (0, import_utils23.isDevelopment)() : editor.inspect;
26927
27009
  if (inspect)
26928
- app.extend.push(import_Inspect.Inspect);
27010
+ app.extend.push(import_sync.Inspect);
26929
27011
  };
26930
27012
  var initializeNotifications = (app, ctx) => {
26931
27013
  const { editor } = ctx;
26932
27014
  if (!editor)
26933
27015
  return;
26934
- const verbose = (0, import_utils25.isUndefined)(editor.verbose) ? (0, import_utils25.isDevelopment)() || ctx.verbose : editor.verbose;
27016
+ const verbose = (0, import_utils23.isUndefined)(editor.verbose) ? (0, import_utils23.isDevelopment)() || ctx.verbose : editor.verbose;
26935
27017
  if (verbose)
26936
- app.extend.push(import_Notifications2.Notifications);
27018
+ app.extend.push(import_sync.Notifications);
26937
27019
  };
26938
27020
  }
26939
27021
  });
@@ -27041,13 +27123,13 @@ var require_globals2 = __commonJS({
27041
27123
  document: () => document2,
27042
27124
  global: () => global,
27043
27125
  self: () => self2,
27044
- window: () => window4
27126
+ window: () => window3
27045
27127
  });
27046
27128
  module2.exports = __toCommonJS2(globals_exports);
27047
27129
  var global = globalThis;
27048
27130
  var self2 = globalThis;
27049
- var window4 = globalThis;
27050
- var document2 = window4.document;
27131
+ var window3 = globalThis;
27132
+ var document2 = window3.document;
27051
27133
  }
27052
27134
  });
27053
27135
 
@@ -27078,12 +27160,12 @@ var require_node3 = __commonJS({
27078
27160
  isNode: () => isNode
27079
27161
  });
27080
27162
  module2.exports = __toCommonJS2(node_exports);
27081
- var import_globals2 = require_globals2();
27163
+ var import_globals = require_globals2();
27082
27164
  var isNode = (obj) => {
27083
- return (typeof Node === "object" ? obj instanceof import_globals2.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
27165
+ return (typeof Node === "object" ? obj instanceof import_globals.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
27084
27166
  };
27085
27167
  var isHtmlElement = (obj) => {
27086
- return (typeof HTMLElement === "object" ? obj instanceof import_globals2.window.HTMLElement : obj && typeof obj === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string") || false;
27168
+ return (typeof HTMLElement === "object" ? obj instanceof import_globals.window.HTMLElement : obj && typeof obj === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string") || false;
27087
27169
  };
27088
27170
  }
27089
27171
  });
@@ -27113,7 +27195,7 @@ var require_types2 = __commonJS({
27113
27195
  __export2(types_exports, {
27114
27196
  TYPES: () => TYPES,
27115
27197
  is: () => is,
27116
- isArray: () => isArray5,
27198
+ isArray: () => isArray4,
27117
27199
  isBoolean: () => isBoolean2,
27118
27200
  isDate: () => isDate,
27119
27201
  isDefined: () => isDefined2,
@@ -27121,24 +27203,24 @@ var require_types2 = __commonJS({
27121
27203
  isNot: () => isNot2,
27122
27204
  isNull: () => isNull,
27123
27205
  isNumber: () => isNumber2,
27124
- isObject: () => isObject8,
27206
+ isObject: () => isObject7,
27125
27207
  isObjectLike: () => isObjectLike3,
27126
- isString: () => isString12,
27208
+ isString: () => isString11,
27127
27209
  isUndefined: () => isUndefined8
27128
27210
  });
27129
27211
  module2.exports = __toCommonJS2(types_exports);
27130
27212
  var import_node = require_node3();
27131
- var isObject8 = (arg) => {
27213
+ var isObject7 = (arg) => {
27132
27214
  if (arg === null)
27133
27215
  return false;
27134
27216
  return typeof arg === "object" && arg.constructor === Object;
27135
27217
  };
27136
- var isString12 = (arg) => typeof arg === "string";
27218
+ var isString11 = (arg) => typeof arg === "string";
27137
27219
  var isNumber2 = (arg) => typeof arg === "number";
27138
27220
  var isFunction4 = (arg) => typeof arg === "function";
27139
27221
  var isBoolean2 = (arg) => arg === true || arg === false;
27140
27222
  var isNull = (arg) => arg === null;
27141
- var isArray5 = (arg) => Array.isArray(arg);
27223
+ var isArray4 = (arg) => Array.isArray(arg);
27142
27224
  var isDate = (d) => d instanceof Date;
27143
27225
  var isObjectLike3 = (arg) => {
27144
27226
  if (arg === null)
@@ -27146,16 +27228,16 @@ var require_types2 = __commonJS({
27146
27228
  return typeof arg === "object";
27147
27229
  };
27148
27230
  var isDefined2 = (arg) => {
27149
- return isObject8(arg) || isObjectLike3(arg) || isString12(arg) || isNumber2(arg) || isFunction4(arg) || isArray5(arg) || isObjectLike3(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
27231
+ return isObject7(arg) || isObjectLike3(arg) || isString11(arg) || isNumber2(arg) || isFunction4(arg) || isArray4(arg) || isObjectLike3(arg) || isBoolean2(arg) || isDate(arg) || isNull(arg);
27150
27232
  };
27151
27233
  var isUndefined8 = (arg) => {
27152
27234
  return arg === void 0;
27153
27235
  };
27154
27236
  var TYPES = {
27155
27237
  boolean: isBoolean2,
27156
- array: isArray5,
27157
- object: isObject8,
27158
- string: isString12,
27238
+ array: isArray4,
27239
+ object: isObject7,
27240
+ string: isString11,
27159
27241
  date: isDate,
27160
27242
  number: isNumber2,
27161
27243
  null: isNull,
@@ -27422,12 +27504,12 @@ var require_object3 = __commonJS({
27422
27504
  objectToString: () => objectToString,
27423
27505
  overwrite: () => overwrite,
27424
27506
  overwriteDeep: () => overwriteDeep2,
27425
- overwriteShallow: () => overwriteShallow3,
27507
+ overwriteShallow: () => overwriteShallow2,
27426
27508
  removeFromObject: () => removeFromObject,
27427
27509
  stringToObject: () => stringToObject
27428
27510
  });
27429
27511
  module2.exports = __toCommonJS2(object_exports);
27430
- var import_globals2 = require_globals2();
27512
+ var import_globals = require_globals2();
27431
27513
  var import_types = require_types2();
27432
27514
  var import_array = require_array2();
27433
27515
  var import_string = require_string2();
@@ -27641,7 +27723,7 @@ var require_object3 = __commonJS({
27641
27723
  if ((0, import_types.isString)(objProp)) {
27642
27724
  if ((objProp.includes("=>") || objProp.startsWith("function") || objProp.startsWith("(")) && !objProp.startsWith("{") && !objProp.startsWith("[")) {
27643
27725
  try {
27644
- const evalProp = import_globals2.window.eval(`(${objProp})`);
27726
+ const evalProp = import_globals.window.eval(`(${objProp})`);
27645
27727
  destringified[prop] = evalProp;
27646
27728
  } catch (e) {
27647
27729
  if (e)
@@ -27656,7 +27738,7 @@ var require_object3 = __commonJS({
27656
27738
  if ((0, import_types.isString)(arrProp)) {
27657
27739
  if (arrProp.includes("=>") || arrProp.includes("function") || arrProp.startsWith("(")) {
27658
27740
  try {
27659
- const evalProp = import_globals2.window.eval(`(${arrProp})`);
27741
+ const evalProp = import_globals.window.eval(`(${arrProp})`);
27660
27742
  destringified[prop].push(evalProp);
27661
27743
  } catch (e) {
27662
27744
  if (e)
@@ -27681,7 +27763,7 @@ var require_object3 = __commonJS({
27681
27763
  };
27682
27764
  var stringToObject = (str, opts = { verbose: true }) => {
27683
27765
  try {
27684
- return import_globals2.window.eval("(" + str + ")");
27766
+ return import_globals.window.eval("(" + str + ")");
27685
27767
  } catch (e) {
27686
27768
  if (opts.verbose)
27687
27769
  console.warn(e);
@@ -27776,7 +27858,7 @@ var require_object3 = __commonJS({
27776
27858
  }
27777
27859
  return changes;
27778
27860
  };
27779
- var overwriteShallow3 = (obj, params, excludeFrom = []) => {
27861
+ var overwriteShallow2 = (obj, params, excludeFrom = []) => {
27780
27862
  for (const e in params) {
27781
27863
  if (excludeFrom.includes(e) || e.startsWith("__"))
27782
27864
  continue;
@@ -28223,7 +28305,7 @@ var require_tags2 = __commonJS({
28223
28305
  });
28224
28306
 
28225
28307
  // ../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/index.js
28226
- var require_cjs14 = __commonJS({
28308
+ var require_cjs15 = __commonJS({
28227
28309
  "../../../domql/node_modules/@domql/classlist/node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
28228
28310
  "use strict";
28229
28311
  var __defProp2 = Object.defineProperty;
@@ -28258,11 +28340,11 @@ var require_cjs14 = __commonJS({
28258
28340
  });
28259
28341
 
28260
28342
  // ../../../domql/node_modules/@domql/classlist/index.js
28261
- var import_utils22, classify, classList, applyClassListOnNode;
28343
+ var import_utils20, classify, classList, applyClassListOnNode;
28262
28344
  var init_classlist = __esm({
28263
28345
  "../../../domql/node_modules/@domql/classlist/index.js"() {
28264
28346
  "use strict";
28265
- import_utils22 = __toESM(require_cjs14());
28347
+ import_utils20 = __toESM(require_cjs15());
28266
28348
  classify = (obj, element) => {
28267
28349
  let className = "";
28268
28350
  for (const item in obj) {
@@ -28272,7 +28354,7 @@ var init_classlist = __esm({
28272
28354
  else if (typeof param === "string")
28273
28355
  className += ` ${param}`;
28274
28356
  else if (typeof param === "function") {
28275
- className += ` ${(0, import_utils22.exec)(param, element)}`;
28357
+ className += ` ${(0, import_utils20.exec)(param, element)}`;
28276
28358
  }
28277
28359
  }
28278
28360
  return className;
@@ -28283,9 +28365,9 @@ var init_classlist = __esm({
28283
28365
  const { key } = element;
28284
28366
  if (params === true)
28285
28367
  params = element.class = { key };
28286
- if ((0, import_utils22.isString)(params))
28368
+ if ((0, import_utils20.isString)(params))
28287
28369
  params = element.class = { default: params };
28288
- if ((0, import_utils22.isObject)(params))
28370
+ if ((0, import_utils20.isObject)(params))
28289
28371
  params = classify(params, element);
28290
28372
  const className = params.replace(/\s+/g, " ").trim();
28291
28373
  if (element.ref)
@@ -29745,18 +29827,18 @@ __export(emotion_exports2, {
29745
29827
  transformEmotionClass: () => transformEmotionClass,
29746
29828
  transformEmotionStyle: () => transformEmotionStyle
29747
29829
  });
29748
- var import_utils24, transformEmotionStyle, transformEmotionClass, transformDOMQLEmotion;
29830
+ var import_utils22, transformEmotionStyle, transformEmotionClass, transformDOMQLEmotion;
29749
29831
  var init_emotion2 = __esm({
29750
29832
  "../../../domql/plugins/emotion/index.js"() {
29751
29833
  "use strict";
29752
- import_utils24 = __toESM(require_cjs());
29834
+ import_utils22 = __toESM(require_cjs());
29753
29835
  init_classlist();
29754
29836
  init_emotion_css_create_instance_esm2();
29755
29837
  transformEmotionStyle = (emotion2) => {
29756
29838
  return (params, element, state) => {
29757
- const execParams = (0, import_utils24.exec)(params, element);
29839
+ const execParams = (0, import_utils22.exec)(params, element);
29758
29840
  if (params) {
29759
- if ((0, import_utils24.isObjectLike)(element.class))
29841
+ if ((0, import_utils22.isObjectLike)(element.class))
29760
29842
  element.class.elementStyle = execParams;
29761
29843
  else
29762
29844
  element.class = { elementStyle: execParams };
@@ -29770,7 +29852,7 @@ var init_emotion2 = __esm({
29770
29852
  return;
29771
29853
  const { __ref } = element;
29772
29854
  const { __class, __classNames } = __ref;
29773
- if (!(0, import_utils24.isObjectLike)(params))
29855
+ if (!(0, import_utils22.isObjectLike)(params))
29774
29856
  return;
29775
29857
  if (element.props.class) {
29776
29858
  __classNames.classProps = element.props.class;
@@ -29779,20 +29861,20 @@ var init_emotion2 = __esm({
29779
29861
  __classNames.class = element.attr.class;
29780
29862
  }
29781
29863
  for (const key in params) {
29782
- const prop = (0, import_utils24.exec)(params[key], element);
29864
+ const prop = (0, import_utils22.exec)(params[key], element);
29783
29865
  if (!prop) {
29784
29866
  delete __class[key];
29785
29867
  delete __classNames[key];
29786
29868
  continue;
29787
29869
  }
29788
- const isEqual = (0, import_utils24.isEqualDeep)(__class[key], prop);
29870
+ const isEqual = (0, import_utils22.isEqualDeep)(__class[key], prop);
29789
29871
  if (!isEqual) {
29790
- if (!(0, import_utils24.isProduction)() && (0, import_utils24.isObject)(prop))
29872
+ if (!(0, import_utils22.isProduction)() && (0, import_utils22.isObject)(prop))
29791
29873
  prop.label = key || element.key;
29792
29874
  let className;
29793
- if ((0, import_utils24.isString)(prop) || (0, import_utils24.isNumber)(prop))
29875
+ if ((0, import_utils22.isString)(prop) || (0, import_utils22.isNumber)(prop))
29794
29876
  className = prop;
29795
- else if ((0, import_utils24.isBoolean)(prop))
29877
+ else if ((0, import_utils22.isBoolean)(prop))
29796
29878
  className = element.key;
29797
29879
  else
29798
29880
  className = emotion2.css(prop);
@@ -29852,8 +29934,8 @@ var require_initEmotion = __commonJS({
29852
29934
  module2.exports = __toCommonJS2(initEmotion_exports);
29853
29935
  var import_emotion3 = (init_emotion2(), __toCommonJS(emotion_exports2));
29854
29936
  var import_emotion22 = (init_emotion(), __toCommonJS(emotion_exports));
29855
- var import_init2 = (init_init(), __toCommonJS(init_exports));
29856
- var import_utils25 = require_cjs();
29937
+ var import_init = (init_init(), __toCommonJS(init_exports));
29938
+ var import_utils23 = require_cjs();
29857
29939
  var import_options = require_options();
29858
29940
  var import_default_config = __toESM2((init_src(), __toCommonJS(src_exports)), 1);
29859
29941
  var initEmotion = (key, options = {}) => {
@@ -29864,8 +29946,8 @@ var require_initEmotion = __commonJS({
29864
29946
  if (!initOptions.emotion)
29865
29947
  initOptions.emotion = import_emotion22.emotion;
29866
29948
  const registry = options.registry || (0, import_emotion3.transformDOMQLEmotion)(initOptions.emotion, options);
29867
- const designSystem = initOptions.useDefaultConfig || ((_a = options.designSystem) == null ? void 0 : _a.useDefaultConfig) ? (0, import_utils25.deepMerge)(options.designSystem, (0, import_utils25.deepClone)(import_default_config.default)) : options.designSystem || (0, import_utils25.deepClone)(import_default_config.default);
29868
- const scratchSystem = (0, import_init2.init)(designSystem, {
29949
+ const designSystem = initOptions.useDefaultConfig || ((_a = options.designSystem) == null ? void 0 : _a.useDefaultConfig) ? (0, import_utils23.deepMerge)(options.designSystem, (0, import_utils23.deepClone)(import_default_config.default)) : options.designSystem || (0, import_utils23.deepClone)(import_default_config.default);
29950
+ const scratchSystem = (0, import_init.init)(designSystem, {
29869
29951
  key,
29870
29952
  emotion: emotion2,
29871
29953
  verbose: options.verbose,
@@ -29924,7 +30006,7 @@ var require_prepare = __commonJS({
29924
30006
  prepareWindow: () => prepareWindow
29925
30007
  });
29926
30008
  module2.exports = __toCommonJS2(prepare_exports);
29927
- var import_utils25 = require_cjs();
30009
+ var import_utils23 = require_cjs();
29928
30010
  var import_initEmotion = require_initEmotion();
29929
30011
  var uikit = __toESM2((init_uikit(), __toCommonJS(uikit_exports)), 1);
29930
30012
  var utils2 = __toESM2(require_utilImports(), 1);
@@ -29947,7 +30029,7 @@ var require_prepare = __commonJS({
29947
30029
  const newObj = {};
29948
30030
  for (const key in uikit) {
29949
30031
  if (Object.prototype.hasOwnProperty.call(uikit, key)) {
29950
- if ((0, import_utils25.checkIfKeyIsComponent)(key)) {
30032
+ if ((0, import_utils23.checkIfKeyIsComponent)(key)) {
29951
30033
  newObj[`smbls.${key}`] = uikit[key];
29952
30034
  } else {
29953
30035
  newObj[key] = uikit[key];
@@ -30034,7 +30116,7 @@ var require_prepare = __commonJS({
30034
30116
  return windowOpts2.require(key);
30035
30117
  };
30036
30118
  if (windowOpts.packages) {
30037
- windowOpts.packages = (0, import_utils25.merge)(windowOpts.packages, packages);
30119
+ windowOpts.packages = (0, import_utils23.merge)(windowOpts.packages, packages);
30038
30120
  } else {
30039
30121
  windowOpts.packages = packages;
30040
30122
  }
@@ -30056,12 +30138,12 @@ var require_prepare = __commonJS({
30056
30138
  if (context.state)
30057
30139
  utils2.deepMerge(state, context.state);
30058
30140
  if (app && app.state)
30059
- (0, import_utils25.deepMerge)(state, app.state);
30060
- return (0, import_utils25.deepCloneWithExtend)(state);
30141
+ (0, import_utils23.deepMerge)(state, app.state);
30142
+ return (0, import_utils23.deepCloneWithExtend)(state);
30061
30143
  };
30062
30144
  var preparePages = (app, context) => {
30063
- if ((0, import_utils25.isObject)(app.routes) && (0, import_utils25.isObject)(context.pages)) {
30064
- (0, import_utils25.merge)(app.routes, context.pages);
30145
+ if ((0, import_utils23.isObject)(app.routes) && (0, import_utils23.isObject)(context.pages)) {
30146
+ (0, import_utils23.merge)(app.routes, context.pages);
30065
30147
  }
30066
30148
  const pages = app.routes || context.pages || {};
30067
30149
  return Object.keys(pages).filter((v) => !v.startsWith("/")).reduce((pages2, v) => {
@@ -30132,14 +30214,14 @@ var require_createDomql = __commonJS({
30132
30214
  module2.exports = __toCommonJS2(createDomql_exports);
30133
30215
  var import_domql = __toESM2(require_cjs13(), 1);
30134
30216
  var uikit = __toESM2((init_uikit(), __toCommonJS(uikit_exports)), 1);
30135
- var import_utils25 = require_cjs();
30217
+ var import_utils23 = require_cjs();
30136
30218
  var import_define = require_define();
30137
- var import_router3 = require_router();
30219
+ var import_router2 = require_router();
30138
30220
  var import_syncExtend = require_syncExtend();
30139
30221
  var import_prepare = require_prepare();
30140
30222
  var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
30141
30223
  var prepareContext = (app, context = {}) => {
30142
- const key = context.key = context.key || SYMBOLS_KEY || ((0, import_utils25.isString)(app) ? app : "smblsapp");
30224
+ const key = context.key = context.key || SYMBOLS_KEY || ((0, import_utils23.isString)(app) ? app : "smblsapp");
30143
30225
  context.define = context.define || import_define.defaultDefine;
30144
30226
  context.window = (0, import_prepare.prepareWindow)(context);
30145
30227
  const [scratcDesignSystem, emotion2, registry] = (0, import_prepare.prepareDesignSystem)(key, context);
@@ -30154,22 +30236,22 @@ var require_createDomql = __commonJS({
30154
30236
  context.snippets = context.utils;
30155
30237
  context.dependencies = (0, import_prepare.prepareDependencies)(context);
30156
30238
  context.methods = (0, import_prepare.prepareMethods)(context);
30157
- context.routerOptions = (0, import_router3.initRouter)(app, context);
30239
+ context.routerOptions = (0, import_router2.initRouter)(app, context);
30158
30240
  context.defaultExtends = [uikit.Box];
30159
30241
  return context;
30160
30242
  };
30161
30243
  var createDomqlElement = (app, ctx) => {
30162
- if (!(0, import_utils25.isObject)(ctx))
30244
+ if (!(0, import_utils23.isObject)(ctx))
30163
30245
  ctx = {};
30164
- if ((0, import_utils25.isNode)(app)) {
30246
+ if ((0, import_utils23.isNode)(app)) {
30165
30247
  app = {};
30166
30248
  ctx.parent = app;
30167
30249
  }
30168
- if ((0, import_utils25.isString)(app)) {
30250
+ if ((0, import_utils23.isString)(app)) {
30169
30251
  app = {};
30170
30252
  ctx.key = app;
30171
30253
  }
30172
- if (!(0, import_utils25.isObject)(app)) {
30254
+ if (!(0, import_utils23.isObject)(app)) {
30173
30255
  app = {};
30174
30256
  }
30175
30257
  prepareContext(app, ctx);
@@ -30200,7 +30282,7 @@ var require_createDomql = __commonJS({
30200
30282
  });
30201
30283
 
30202
30284
  // ../create/dist/cjs/index.js
30203
- var require_cjs15 = __commonJS({
30285
+ var require_cjs16 = __commonJS({
30204
30286
  "../create/dist/cjs/index.js"(exports, module2) {
30205
30287
  "use strict";
30206
30288
  var __create2 = Object.create;
@@ -30239,22 +30321,22 @@ var require_cjs15 = __commonJS({
30239
30321
  default: () => src_default2
30240
30322
  });
30241
30323
  module2.exports = __toCommonJS2(src_exports2);
30242
- var import_utils25 = require_cjs();
30324
+ var import_utils23 = require_cjs();
30243
30325
  var utils2 = __toESM2(require_utilImports(), 1);
30244
- var import_router3 = require_router();
30326
+ var import_router2 = require_router();
30245
30327
  var import_ferchOnCreate = require_ferchOnCreate();
30246
30328
  var import_options = __toESM2(require_options(), 1);
30247
30329
  var import_dynamic2 = __toESM2(require_dynamic(), 1);
30248
30330
  var import_createDomql = require_createDomql();
30249
30331
  var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
30250
- var mergeWithLocalFile2 = (options, optionsExternalFile) => (0, import_utils25.deepMerge)(
30332
+ var mergeWithLocalFile2 = (options, optionsExternalFile) => (0, import_utils23.deepMerge)(
30251
30333
  options,
30252
- (0, import_utils25.isObject)(optionsExternalFile) ? optionsExternalFile : import_dynamic2.default || {}
30334
+ (0, import_utils23.isObject)(optionsExternalFile) ? optionsExternalFile : import_dynamic2.default || {}
30253
30335
  );
30254
30336
  var create = (App, options = import_options.default, optionsExternalFile) => {
30255
30337
  const redefinedOptions = { ...import_options.default, ...mergeWithLocalFile2(options, optionsExternalFile) };
30256
30338
  const domqlApp = (0, import_createDomql.createDomqlElement)(App, redefinedOptions);
30257
- (0, import_router3.popStateRouter)(domqlApp, redefinedOptions);
30339
+ (0, import_router2.popStateRouter)(domqlApp, redefinedOptions);
30258
30340
  if (redefinedOptions.on && redefinedOptions.on.create)
30259
30341
  redefinedOptions.on.create(domqlApp, redefinedOptions);
30260
30342
  return domqlApp;
@@ -30278,10 +30360,10 @@ var require_cjs15 = __commonJS({
30278
30360
  var createSkeleton = (App = {}, options = import_options.default, optionsExternalFile) => {
30279
30361
  return create(
30280
30362
  {
30281
- deps: { isUndefined: import_utils25.isUndefined },
30363
+ deps: { isUndefined: import_utils23.isUndefined },
30282
30364
  ...App
30283
30365
  },
30284
- (0, import_utils25.deepMerge)({ domqlOptions: { onlyResolveExtends: true } }, options),
30366
+ (0, import_utils23.deepMerge)({ domqlOptions: { onlyResolveExtends: true } }, options),
30285
30367
  optionsExternalFile
30286
30368
  );
30287
30369
  };
@@ -30488,5 +30570,5 @@ __reExport(smbls_exports, __toESM(require_cjs2(), 1), module.exports);
30488
30570
  init_emotion();
30489
30571
  init_init();
30490
30572
  init_uikit();
30491
- __reExport(smbls_exports, __toESM(require_cjs15(), 1), module.exports);
30573
+ __reExport(smbls_exports, __toESM(require_cjs16(), 1), module.exports);
30492
30574
  __reExport(smbls_exports, __toESM(require_cjs7(), 1), module.exports);