@symbo.ls/create 2.11.220 → 2.11.222

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.
@@ -206,51 +206,54 @@ var require_types = __commonJS({
206
206
  __export2(types_exports, {
207
207
  TYPES: () => TYPES,
208
208
  is: () => is,
209
- isArray: () => isArray6,
209
+ isArray: () => isArray8,
210
210
  isBoolean: () => isBoolean,
211
+ isDate: () => isDate,
211
212
  isDefined: () => isDefined2,
212
213
  isFunction: () => isFunction4,
213
- isNot: () => isNot2,
214
+ isNot: () => isNot3,
214
215
  isNull: () => isNull,
215
216
  isNumber: () => isNumber,
216
- isObject: () => isObject12,
217
- isObjectLike: () => isObjectLike3,
218
- isString: () => isString9,
219
- isUndefined: () => isUndefined4
217
+ isObject: () => isObject14,
218
+ isObjectLike: () => isObjectLike4,
219
+ isString: () => isString13,
220
+ isUndefined: () => isUndefined5
220
221
  });
221
222
  module2.exports = __toCommonJS2(types_exports);
222
223
  var import_node = require_node();
223
- var isObject12 = (arg) => {
224
+ var isObject14 = (arg) => {
224
225
  if (arg === null)
225
226
  return false;
226
227
  return typeof arg === "object" && arg.constructor === Object;
227
228
  };
228
- var isString9 = (arg) => typeof arg === "string";
229
+ var isString13 = (arg) => typeof arg === "string";
229
230
  var isNumber = (arg) => typeof arg === "number";
230
231
  var isFunction4 = (arg) => typeof arg === "function";
231
232
  var isBoolean = (arg) => arg === true || arg === false;
232
233
  var isNull = (arg) => arg === null;
233
- var isArray6 = (arg) => Array.isArray(arg);
234
- var isObjectLike3 = (arg) => {
234
+ var isArray8 = (arg) => Array.isArray(arg);
235
+ var isDate = (d) => d instanceof Date;
236
+ var isObjectLike4 = (arg) => {
235
237
  if (arg === null)
236
238
  return false;
237
239
  return typeof arg === "object";
238
240
  };
239
241
  var isDefined2 = (arg) => {
240
- return isObject12(arg) || isObjectLike3(arg) || isString9(arg) || isNumber(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
242
+ return isObject14(arg) || isObjectLike4(arg) || isString13(arg) || isNumber(arg) || isFunction4(arg) || isArray8(arg) || isObjectLike4(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
241
243
  };
242
- var isUndefined4 = (arg) => {
244
+ var isUndefined5 = (arg) => {
243
245
  return arg === void 0;
244
246
  };
245
247
  var TYPES = {
246
248
  boolean: isBoolean,
247
- array: isArray6,
248
- object: isObject12,
249
- string: isString9,
249
+ array: isArray8,
250
+ object: isObject14,
251
+ string: isString13,
252
+ date: isDate,
250
253
  number: isNumber,
251
254
  null: isNull,
252
255
  function: isFunction4,
253
- objectLike: isObjectLike3,
256
+ objectLike: isObjectLike4,
254
257
  node: import_node.isNode,
255
258
  htmlElement: import_node.isHtmlElement,
256
259
  defined: isDefined2
@@ -260,7 +263,7 @@ var require_types = __commonJS({
260
263
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
261
264
  };
262
265
  };
263
- var isNot2 = (arg) => {
266
+ var isNot3 = (arg) => {
264
267
  return (...args) => {
265
268
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
266
269
  };
@@ -299,6 +302,8 @@ var require_array = __commonJS({
299
302
  mergeAndCloneIfArray: () => mergeAndCloneIfArray,
300
303
  mergeArray: () => mergeArray,
301
304
  removeFromArray: () => removeFromArray,
305
+ removeValueFromArray: () => removeValueFromArray,
306
+ removeValueFromArrayAll: () => removeValueFromArrayAll,
302
307
  swapItemsInArray: () => swapItemsInArray
303
308
  });
304
309
  module2.exports = __toCommonJS2(array_exports);
@@ -364,6 +369,18 @@ var require_array = __commonJS({
364
369
  }, nestedObject);
365
370
  return nestedObject;
366
371
  };
372
+ var removeValueFromArray = (arr, value2) => {
373
+ const index = arr.indexOf(value2);
374
+ if (index > -1) {
375
+ const newArray = [...arr];
376
+ newArray.splice(index, 1);
377
+ return newArray;
378
+ }
379
+ return arr.slice();
380
+ };
381
+ var removeValueFromArrayAll = (arr, value2) => {
382
+ return arr.filter((item) => item !== value2);
383
+ };
367
384
  }
368
385
  });
369
386
 
@@ -451,27 +468,32 @@ var require_object = __commonJS({
451
468
  var object_exports = {};
452
469
  __export2(object_exports, {
453
470
  clone: () => clone,
454
- deepClone: () => deepClone4,
471
+ deepClone: () => deepClone5,
455
472
  deepCloneExclude: () => deepCloneExclude,
456
473
  deepContains: () => deepContains,
457
474
  deepDestringify: () => deepDestringify,
475
+ deepDiff: () => deepDiff3,
458
476
  deepMerge: () => deepMerge4,
459
477
  deepStringify: () => deepStringify,
460
478
  detachFunctionsFromObject: () => detachFunctionsFromObject,
461
479
  diff: () => diff,
462
480
  diffArrays: () => diffArrays,
463
481
  diffObjects: () => diffObjects,
464
- exec: () => exec4,
482
+ exec: () => exec5,
465
483
  flattenRecursive: () => flattenRecursive,
484
+ hasOwnProperty: () => hasOwnProperty,
485
+ isEmpty: () => isEmpty,
486
+ isEmptyObject: () => isEmptyObject,
466
487
  isEqualDeep: () => isEqualDeep2,
488
+ makeObjectWithoutPrototype: () => makeObjectWithoutPrototype,
467
489
  map: () => map2,
468
- merge: () => merge4,
490
+ merge: () => merge5,
469
491
  mergeArrayExclude: () => mergeArrayExclude,
470
492
  mergeIfExisted: () => mergeIfExisted,
471
493
  objectToString: () => objectToString,
472
494
  overwrite: () => overwrite,
473
495
  overwriteDeep: () => overwriteDeep,
474
- overwriteShallow: () => overwriteShallow2,
496
+ overwriteShallow: () => overwriteShallow3,
475
497
  removeFromObject: () => removeFromObject,
476
498
  stringToObject: () => stringToObject
477
499
  });
@@ -480,7 +502,7 @@ var require_object = __commonJS({
480
502
  var import_types = require_types();
481
503
  var import_array = require_array();
482
504
  var import_string = require_string();
483
- var exec4 = (param, element, state, context) => {
505
+ var exec5 = (param, element, state, context) => {
484
506
  if ((0, import_types.isFunction)(param)) {
485
507
  return param(
486
508
  element,
@@ -492,13 +514,13 @@ var require_object = __commonJS({
492
514
  };
493
515
  var map2 = (obj, extention, element) => {
494
516
  for (const e in extention) {
495
- obj[e] = exec4(extention[e], element);
517
+ obj[e] = exec5(extention[e], element);
496
518
  }
497
519
  };
498
- var merge4 = (element, obj, excludeFrom = []) => {
520
+ var merge5 = (element, obj, excludeFrom = []) => {
499
521
  for (const e in obj) {
500
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, e);
501
- if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
522
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, e);
523
+ if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
502
524
  continue;
503
525
  const elementProp = element[e];
504
526
  const objProp = obj[e];
@@ -510,8 +532,8 @@ var require_object = __commonJS({
510
532
  };
511
533
  var deepMerge4 = (element, extend, excludeFrom = []) => {
512
534
  for (const e in extend) {
513
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
514
- if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
535
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(extend, e);
536
+ if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
515
537
  continue;
516
538
  const elementProp = element[e];
517
539
  const extendProp = extend[e];
@@ -526,8 +548,8 @@ var require_object = __commonJS({
526
548
  var clone = (obj, excludeFrom = []) => {
527
549
  const o = {};
528
550
  for (const prop in obj) {
529
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);
530
- if (!hasOwnProperty || excludeFrom.includes(prop) || prop.startsWith("__"))
551
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, prop);
552
+ if (!hasOwnProperty2 || excludeFrom.includes(prop) || prop.startsWith("__"))
531
553
  continue;
532
554
  o[prop] = obj[prop];
533
555
  }
@@ -539,8 +561,8 @@ var require_object = __commonJS({
539
561
  }
540
562
  const o = {};
541
563
  for (const k in obj) {
542
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, k);
543
- if (!hasOwnProperty || excludeFrom.includes(k) || k.startsWith("__"))
564
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, k);
565
+ if (!hasOwnProperty2 || excludeFrom.includes(k) || k.startsWith("__"))
544
566
  continue;
545
567
  let v = obj[k];
546
568
  if (k === "extend" && (0, import_types.isArray)(v)) {
@@ -558,7 +580,7 @@ var require_object = __commonJS({
558
580
  var mergeArrayExclude = (arr, excl = []) => {
559
581
  return arr.reduce((acc, curr) => deepMerge4(acc, deepCloneExclude(curr, excl)), {});
560
582
  };
561
- var deepClone4 = (obj, excludeFrom = []) => {
583
+ var deepClone5 = (obj, excludeFrom = [], cleanUndefined = false) => {
562
584
  const o = (0, import_types.isArray)(obj) ? [] : {};
563
585
  for (const prop in obj) {
564
586
  if (prop === "__proto__")
@@ -566,11 +588,13 @@ var require_object = __commonJS({
566
588
  if (excludeFrom.includes(prop) || prop.startsWith("__"))
567
589
  continue;
568
590
  let objProp = obj[prop];
591
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
592
+ continue;
569
593
  if (prop === "extend" && (0, import_types.isArray)(objProp)) {
570
594
  objProp = (0, import_array.mergeArray)(objProp);
571
595
  }
572
596
  if ((0, import_types.isObjectLike)(objProp)) {
573
- o[prop] = deepClone4(objProp, excludeFrom);
597
+ o[prop] = deepClone5(objProp, excludeFrom, cleanUndefined);
574
598
  } else
575
599
  o[prop] = objProp;
576
600
  }
@@ -624,7 +648,7 @@ var require_object = __commonJS({
624
648
  }
625
649
  }
626
650
  str += `${spaces} ]`;
627
- } else if ((0, import_types.isObject)(value2)) {
651
+ } else if ((0, import_types.isObjectLike)(value2)) {
628
652
  str += objectToString(value2, indent + 1);
629
653
  } else if ((0, import_types.isString)(value2)) {
630
654
  str += (0, import_string.stringIncludesAny)(value2, ["\n", "'"]) ? `\`${value2}\`` : `'${value2}'`;
@@ -664,8 +688,8 @@ var require_object = __commonJS({
664
688
  };
665
689
  var deepDestringify = (obj, destringified = {}) => {
666
690
  for (const prop in obj) {
667
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);
668
- if (!hasOwnProperty)
691
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, prop);
692
+ if (!hasOwnProperty2)
669
693
  continue;
670
694
  const objProp = obj[prop];
671
695
  if ((0, import_types.isString)(objProp)) {
@@ -758,6 +782,39 @@ var require_object = __commonJS({
758
782
  }
759
783
  return cache2;
760
784
  };
785
+ var hasOwnProperty = (o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args);
786
+ var isEmpty = (o) => Object.keys(o).length === 0;
787
+ var isEmptyObject = (o) => (0, import_types.isObject)(o) && isEmpty(o);
788
+ var makeObjectWithoutPrototype = () => /* @__PURE__ */ Object.create(null);
789
+ var deepDiff3 = (lhs, rhs) => {
790
+ if (lhs === rhs)
791
+ return {};
792
+ if (!(0, import_types.isObject)(lhs) || !(0, import_types.isObject)(rhs))
793
+ return rhs;
794
+ const deletedValues = Object.keys(lhs).reduce((acc, key) => {
795
+ if (!hasOwnProperty(rhs, key)) {
796
+ acc[key] = void 0;
797
+ }
798
+ return acc;
799
+ }, makeObjectWithoutPrototype());
800
+ if ((0, import_types.isDate)(lhs) || (0, import_types.isDate)(rhs)) {
801
+ if (lhs.valueOf() === rhs.valueOf())
802
+ return {};
803
+ return rhs;
804
+ }
805
+ return Object.keys(rhs).reduce((acc, key) => {
806
+ if (!hasOwnProperty(lhs, key)) {
807
+ acc[key] = rhs[key];
808
+ return acc;
809
+ }
810
+ const difference = diff(lhs[key], rhs[key]);
811
+ if (isEmptyObject(difference) && !(0, import_types.isDate)(difference) && (isEmptyObject(lhs[key]) || !isEmptyObject(rhs[key]))) {
812
+ return acc;
813
+ }
814
+ acc[key] = difference;
815
+ return acc;
816
+ }, deletedValues);
817
+ };
761
818
  var overwrite = (element, params, excludeFrom = []) => {
762
819
  const { ref } = element;
763
820
  const changes = {};
@@ -773,7 +830,7 @@ var require_object = __commonJS({
773
830
  }
774
831
  return changes;
775
832
  };
776
- var overwriteShallow2 = (obj, params, excludeFrom = []) => {
833
+ var overwriteShallow3 = (obj, params, excludeFrom = []) => {
777
834
  for (const e in params) {
778
835
  if (excludeFrom.includes(e) || e.startsWith("__"))
779
836
  continue;
@@ -853,8 +910,8 @@ var require_object = __commonJS({
853
910
  }
854
911
  } else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
855
912
  for (const key in obj1) {
856
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
857
- if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
913
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj2, key);
914
+ if (!hasOwnProperty2 || !deepContains(obj1[key], obj2[key])) {
858
915
  return false;
859
916
  }
860
917
  }
@@ -1375,11 +1432,11 @@ var require_tree = __commonJS({
1375
1432
  TREE: () => TREE
1376
1433
  });
1377
1434
  module2.exports = __toCommonJS2(tree_exports);
1378
- var import_utils24 = require_cjs();
1435
+ var import_utils31 = require_cjs();
1379
1436
  var import_report = require_cjs2();
1380
1437
  var ROOT = {
1381
1438
  key: ":root",
1382
- node: import_utils24.document ? import_utils24.document.body : (0, import_report.report)("DocumentNotDefined", import_utils24.document)
1439
+ node: import_utils31.document ? import_utils31.document.body : (0, import_report.report)("DocumentNotDefined", import_utils31.document)
1383
1440
  };
1384
1441
  var TREE = ROOT;
1385
1442
  }
@@ -1415,12 +1472,12 @@ var require_on = __commonJS({
1415
1472
  triggerEventOnUpdate: () => triggerEventOnUpdate
1416
1473
  });
1417
1474
  module2.exports = __toCommonJS2(on_exports);
1418
- var import_utils24 = require_cjs();
1475
+ var import_utils31 = require_cjs();
1419
1476
  var applyEvent = (param, element, state, context, options) => {
1420
1477
  return param(element, state || element.state, context || element.context, options);
1421
1478
  };
1422
1479
  var triggerEventOn = (param, element, options) => {
1423
- if (element.on && (0, import_utils24.isFunction)(element.on[param])) {
1480
+ if (element.on && (0, import_utils31.isFunction)(element.on[param])) {
1424
1481
  const { state, context } = element;
1425
1482
  return applyEvent(element.on[param], element, state, context, options);
1426
1483
  }
@@ -1429,7 +1486,7 @@ var require_on = __commonJS({
1429
1486
  return param(updatedObj, element, state || element.state, context || element.context, options);
1430
1487
  };
1431
1488
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
1432
- if (element.on && (0, import_utils24.isFunction)(element.on[param])) {
1489
+ if (element.on && (0, import_utils31.isFunction)(element.on[param])) {
1433
1490
  const { state, context } = element;
1434
1491
  return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
1435
1492
  }
@@ -1440,9 +1497,11 @@ var require_on = __commonJS({
1440
1497
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
1441
1498
  continue;
1442
1499
  const appliedFunction = element.on[param];
1443
- if ((0, import_utils24.isFunction)(appliedFunction)) {
1444
- const { state, context } = element;
1445
- node2.addEventListener(param, (event) => appliedFunction(event, element, state, context));
1500
+ if ((0, import_utils31.isFunction)(appliedFunction)) {
1501
+ node2.addEventListener(param, (event) => {
1502
+ const { state, context } = element;
1503
+ appliedFunction(event, element, state, context);
1504
+ });
1446
1505
  }
1447
1506
  }
1448
1507
  };
@@ -1476,10 +1535,10 @@ var require_can = __commonJS({
1476
1535
  });
1477
1536
  module2.exports = __toCommonJS2(can_exports);
1478
1537
  var import_report = require_cjs2();
1479
- var import_utils24 = require_cjs();
1538
+ var import_utils31 = require_cjs();
1480
1539
  var canRender = (element) => {
1481
1540
  const tag = element.tag || "div";
1482
- return (0, import_utils24.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1541
+ return (0, import_utils31.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
1483
1542
  };
1484
1543
  }
1485
1544
  });
@@ -1570,7 +1629,7 @@ var require_cache = __commonJS({
1570
1629
  module2.exports = __toCommonJS2(cache_exports);
1571
1630
  var import_report = require_cjs2();
1572
1631
  var import_event = require_cjs3();
1573
- var import_utils24 = require_cjs();
1632
+ var import_utils31 = require_cjs();
1574
1633
  var cache2 = {};
1575
1634
  var createHTMLNode = (element) => {
1576
1635
  const { tag } = element;
@@ -1588,16 +1647,21 @@ var require_cache = __commonJS({
1588
1647
  }
1589
1648
  };
1590
1649
  var detectTag = (element) => {
1591
- let { tag, key } = element;
1592
- tag = (0, import_utils24.exec)(tag, element);
1650
+ let { tag, key, props: props4 } = element;
1651
+ tag = (0, import_utils31.exec)(tag, element);
1593
1652
  if (tag === true)
1594
1653
  tag = key;
1595
- if ((0, import_utils24.isString)(tag)) {
1596
- const tagExists = (0, import_utils24.isValidHtmlTag)(tag);
1654
+ if ((0, import_utils31.isObject)(props4) && (0, import_utils31.isString)(props4.tag)) {
1655
+ const tagExists = (0, import_utils31.isValidHtmlTag)(props4.tag);
1656
+ if (tagExists)
1657
+ return props4.tag;
1658
+ }
1659
+ if ((0, import_utils31.isString)(tag)) {
1660
+ const tagExists = (0, import_utils31.isValidHtmlTag)(tag);
1597
1661
  if (tagExists)
1598
1662
  return tag;
1599
1663
  } else {
1600
- const isKeyATag = (0, import_utils24.isValidHtmlTag)(key);
1664
+ const isKeyATag = (0, import_utils31.isValidHtmlTag)(key);
1601
1665
  if (isKeyATag)
1602
1666
  return key;
1603
1667
  }
@@ -1716,16 +1780,16 @@ var require_attr = __commonJS({
1716
1780
  default: () => attr_default
1717
1781
  });
1718
1782
  module2.exports = __toCommonJS2(attr_exports);
1719
- var import_utils24 = require_cjs();
1783
+ var import_utils31 = require_cjs();
1720
1784
  var import_report = require_cjs2();
1721
1785
  var attr_default = (params, element, node2) => {
1722
1786
  const { __ref } = element;
1723
1787
  const { __attr } = __ref;
1724
- if ((0, import_utils24.isNot)("object"))
1788
+ if ((0, import_utils31.isNot)("object"))
1725
1789
  (0, import_report.report)("HTMLInvalidAttr", params);
1726
1790
  if (params) {
1727
1791
  for (const attr in params) {
1728
- const val = (0, import_utils24.exec)(params[attr], element);
1792
+ const val = (0, import_utils31.exec)(params[attr], element);
1729
1793
  if (val && node2.setAttribute)
1730
1794
  node2.setAttribute(attr, val);
1731
1795
  else if (node2.removeAttribute)
@@ -1768,7 +1832,7 @@ var require_classList = __commonJS({
1768
1832
  default: () => classList_default
1769
1833
  });
1770
1834
  module2.exports = __toCommonJS2(classList_exports);
1771
- var import_utils24 = require_cjs();
1835
+ var import_utils31 = require_cjs();
1772
1836
  var assignKeyAsClassname = (element) => {
1773
1837
  const { key } = element;
1774
1838
  if (element.class === true)
@@ -1786,7 +1850,7 @@ var require_classList = __commonJS({
1786
1850
  else if (typeof param === "string")
1787
1851
  className += ` ${param}`;
1788
1852
  else if (typeof param === "function") {
1789
- className += ` ${(0, import_utils24.exec)(param, element)}`;
1853
+ className += ` ${(0, import_utils31.exec)(param, element)}`;
1790
1854
  }
1791
1855
  }
1792
1856
  return className;
@@ -1797,9 +1861,9 @@ var require_classList = __commonJS({
1797
1861
  const { key } = element;
1798
1862
  if (params === true)
1799
1863
  params = element.class = { key };
1800
- if ((0, import_utils24.isString)(params))
1864
+ if ((0, import_utils31.isString)(params))
1801
1865
  params = element.class = { default: params };
1802
- if ((0, import_utils24.isObject)(params))
1866
+ if ((0, import_utils31.isObject)(params))
1803
1867
  params = classify2(params, element);
1804
1868
  const className = params.replace(/\s+/g, " ").trim();
1805
1869
  if (element.ref)
@@ -1883,29 +1947,39 @@ var require_set = __commonJS({
1883
1947
  default: () => set_default
1884
1948
  });
1885
1949
  module2.exports = __toCommonJS2(set_exports);
1886
- var import_utils24 = require_cjs();
1950
+ var import_utils31 = require_cjs();
1887
1951
  var import_create = __toESM2(require_create4(), 1);
1888
1952
  var import_options3 = __toESM2(require_options(), 1);
1889
1953
  var import_mixins = require_mixins();
1890
1954
  var import_content = require_content();
1891
1955
  var set5 = function(params, options = {}, el) {
1892
1956
  const element = el || this;
1893
- const __contentRef = element.content && element.content.__ref;
1894
- if (__contentRef && __contentRef.__cached && (0, import_utils24.deepContains)(params, element.content)) {
1957
+ const { __ref: ref, content } = element;
1958
+ const __contentRef = content && content.__ref;
1959
+ const lazyLoad = element.props && element.props.lazyLoad;
1960
+ if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils31.deepContains)(params, content)) {
1895
1961
  console.log("is content equal");
1896
- return element.content.update();
1962
+ return content.update();
1897
1963
  }
1898
- (0, import_content.removeContent)(element);
1899
- if (params) {
1900
- const { childExtend } = params;
1901
- if (!childExtend && element.childExtend)
1902
- params.childExtend = element.childExtend;
1964
+ if (options.preventContentUpdate === true)
1965
+ return;
1966
+ const setAsync = () => {
1967
+ (0, import_content.removeContent)(element);
1903
1968
  (0, import_create.default)(params, element, "content", {
1904
1969
  ignoreChildExtend: true,
1905
1970
  ...import_mixins.registry.defaultOptions,
1906
1971
  ...import_options3.default.create,
1907
1972
  ...options
1908
1973
  });
1974
+ };
1975
+ if (params) {
1976
+ const { childExtend } = params;
1977
+ if (!childExtend && element.childExtend)
1978
+ params.childExtend = element.childExtend;
1979
+ if (lazyLoad) {
1980
+ window.requestAnimationFrame(setAsync);
1981
+ } else
1982
+ setAsync();
1909
1983
  }
1910
1984
  return element;
1911
1985
  };
@@ -1952,7 +2026,7 @@ var require_content = __commonJS({
1952
2026
  updateContent: () => updateContent
1953
2027
  });
1954
2028
  module2.exports = __toCommonJS2(content_exports);
1955
- var import_utils24 = require_cjs();
2029
+ var import_utils31 = require_cjs();
1956
2030
  var import_set = __toESM2(require_set(), 1);
1957
2031
  var updateContent = function(params, options) {
1958
2032
  const element = this;
@@ -1975,7 +2049,7 @@ var require_content = __commonJS({
1975
2049
  if (__cached && __cached.content) {
1976
2050
  if (__cached.content.tag === "fragment")
1977
2051
  __cached.content.parent.node.innerHTML = "";
1978
- else if (__cached.content && (0, import_utils24.isFunction)(__cached.content.remove))
2052
+ else if (__cached.content && (0, import_utils31.isFunction)(__cached.content.remove))
1979
2053
  __cached.content.remove();
1980
2054
  }
1981
2055
  delete element.content;
@@ -2020,15 +2094,15 @@ var require_data = __commonJS({
2020
2094
  default: () => data_default
2021
2095
  });
2022
2096
  module2.exports = __toCommonJS2(data_exports);
2023
- var import_utils24 = require_cjs();
2097
+ var import_utils31 = require_cjs();
2024
2098
  var import_report = require_cjs2();
2025
2099
  var data_default = (params, element, node2) => {
2026
2100
  if (params && params.showOnNode) {
2027
- if (!(0, import_utils24.isObject)(params))
2101
+ if (!(0, import_utils31.isObject)(params))
2028
2102
  (0, import_report.report)("HTMLInvalidData", params);
2029
2103
  for (const dataset in params) {
2030
2104
  if (dataset !== "showOnNode") {
2031
- node2.dataset[dataset] = (0, import_utils24.exec)(params[dataset], element);
2105
+ node2.dataset[dataset] = (0, import_utils31.exec)(params[dataset], element);
2032
2106
  }
2033
2107
  }
2034
2108
  }
@@ -2062,9 +2136,9 @@ var require_html = __commonJS({
2062
2136
  default: () => html_default
2063
2137
  });
2064
2138
  module2.exports = __toCommonJS2(html_exports);
2065
- var import_utils24 = require_cjs();
2139
+ var import_utils31 = require_cjs();
2066
2140
  var html_default = (param, element, node2) => {
2067
- const prop = (0, import_utils24.exec)(param, element);
2141
+ const prop = (0, import_utils31.exec)(param, element);
2068
2142
  const { __ref } = element;
2069
2143
  if (prop !== __ref.__html) {
2070
2144
  if (node2.nodeName === "SVG")
@@ -2103,12 +2177,12 @@ var require_style = __commonJS({
2103
2177
  default: () => style_default2
2104
2178
  });
2105
2179
  module2.exports = __toCommonJS2(style_exports);
2106
- var import_utils24 = require_cjs();
2180
+ var import_utils31 = require_cjs();
2107
2181
  var import_report = require_cjs2();
2108
2182
  var style_default2 = (params, element, node2) => {
2109
2183
  if (params) {
2110
- if ((0, import_utils24.isObject)(params))
2111
- (0, import_utils24.map)(node2.style, params, element);
2184
+ if ((0, import_utils31.isObject)(params))
2185
+ (0, import_utils31.map)(node2.style, params, element);
2112
2186
  else
2113
2187
  (0, import_report.report)("HTMLInvalidStyles", params);
2114
2188
  }
@@ -2139,34 +2213,17 @@ var require_text = __commonJS({
2139
2213
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
2140
2214
  var text_exports = {};
2141
2215
  __export2(text_exports, {
2142
- asd: () => asd,
2143
2216
  default: () => text_default
2144
2217
  });
2145
2218
  module2.exports = __toCommonJS2(text_exports);
2146
2219
  var import__2 = require_cjs7();
2147
- var import_utils24 = require_cjs();
2148
- var asd = (param, element, node2) => {
2149
- const prop = (0, import_utils24.exec)(param, element);
2150
- if (element.tag === "string") {
2151
- node2.nodeValue = prop;
2152
- } else if (param !== void 0 || param !== null) {
2153
- if (element.__text && element.__text.text !== prop)
2154
- return;
2155
- element.__text.text = prop;
2156
- if (element.__text.node)
2157
- element.__text.node.nodeValue = prop;
2158
- else
2159
- (0, import__2.create)({ tag: "string", text: prop }, element, "__text");
2160
- }
2161
- };
2220
+ var import_utils31 = require_cjs();
2162
2221
  var text_default = (param, element, node2) => {
2163
- let prop = (0, import_utils24.exec)(param, element);
2164
- if ((0, import_utils24.isString)(prop) && prop.includes("{{")) {
2165
- prop = (0, import_utils24.replaceLiteralsWithObjectFields)(prop, element.state);
2222
+ let prop = (0, import_utils31.exec)(param, element);
2223
+ if ((0, import_utils31.isString)(prop) && prop.includes("{{")) {
2224
+ prop = (0, import_utils31.replaceLiteralsWithObjectFields)(prop, element.state);
2166
2225
  }
2167
2226
  if (element.tag === "string") {
2168
- if (element.text === prop)
2169
- return;
2170
2227
  node2.nodeValue = prop;
2171
2228
  } else if (param !== void 0 || param !== null) {
2172
2229
  if (element.__text) {
@@ -2266,11 +2323,11 @@ var require_methods = __commonJS({
2266
2323
  toggle: () => toggle
2267
2324
  });
2268
2325
  module2.exports = __toCommonJS2(methods_exports);
2269
- var import_utils24 = require_cjs();
2326
+ var import_utils31 = require_cjs();
2270
2327
  var import_ignore = require_ignore();
2271
2328
  var parse3 = function() {
2272
2329
  const state = this;
2273
- if ((0, import_utils24.isObject)(state)) {
2330
+ if ((0, import_utils31.isObject)(state)) {
2274
2331
  const obj = {};
2275
2332
  for (const param in state) {
2276
2333
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -2278,7 +2335,7 @@ var require_methods = __commonJS({
2278
2335
  }
2279
2336
  }
2280
2337
  return obj;
2281
- } else if ((0, import_utils24.isArray)(state)) {
2338
+ } else if ((0, import_utils31.isArray)(state)) {
2282
2339
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
2283
2340
  }
2284
2341
  };
@@ -2298,7 +2355,7 @@ var require_methods = __commonJS({
2298
2355
  const state = this;
2299
2356
  const element = state.__element;
2300
2357
  const stateKey = element.__ref.__state;
2301
- if ((0, import_utils24.isString)(stateKey)) {
2358
+ if ((0, import_utils31.isString)(stateKey)) {
2302
2359
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
2303
2360
  return element.state;
2304
2361
  }
@@ -2311,7 +2368,19 @@ var require_methods = __commonJS({
2311
2368
  for (const key in state.__children) {
2312
2369
  const child = state.__children[key];
2313
2370
  if (child.state) {
2314
- child.parent = state.parent;
2371
+ if ((0, import_utils31.isArray)(child.state)) {
2372
+ Object.defineProperty(child.state, "parent", {
2373
+ value: state.parent,
2374
+ enumerable: false,
2375
+ // Set this to true if you want the method to appear in for...in loops
2376
+ configurable: true,
2377
+ // Set this to true if you want to allow redefining/removing the property later
2378
+ writable: true
2379
+ // Set this to true if you want to allow changing the function later
2380
+ });
2381
+ } else {
2382
+ Object.setPrototypeOf(child, { parent: state.parent });
2383
+ }
2315
2384
  }
2316
2385
  }
2317
2386
  }
@@ -2333,10 +2402,10 @@ var require_methods = __commonJS({
2333
2402
  };
2334
2403
  var add = function(value2, options = {}) {
2335
2404
  const state = this;
2336
- if ((0, import_utils24.isArray)(state)) {
2405
+ if ((0, import_utils31.isArray)(state)) {
2337
2406
  state.push(value2);
2338
2407
  state.update(state.parse(), { overwrite: "replace", ...options });
2339
- } else if ((0, import_utils24.isObject)(state)) {
2408
+ } else if ((0, import_utils31.isObject)(state)) {
2340
2409
  const key = Object.keys(state).length;
2341
2410
  state.update({ [key]: value2 }, options);
2342
2411
  }
@@ -2347,10 +2416,10 @@ var require_methods = __commonJS({
2347
2416
  };
2348
2417
  var remove = function(key, options = {}) {
2349
2418
  const state = this;
2350
- if ((0, import_utils24.isArray)(state))
2351
- (0, import_utils24.removeFromArray)(state, key);
2352
- if ((0, import_utils24.isObject)(state))
2353
- (0, import_utils24.removeFromObject)(state, key);
2419
+ if ((0, import_utils31.isArray)(state))
2420
+ (0, import_utils31.removeFromArray)(state, key);
2421
+ if ((0, import_utils31.isObject)(state))
2422
+ (0, import_utils31.removeFromObject)(state, key);
2354
2423
  return state.update(state.parse(), { replace: true, ...options });
2355
2424
  };
2356
2425
  var set5 = function(value2, options = {}) {
@@ -2359,7 +2428,7 @@ var require_methods = __commonJS({
2359
2428
  };
2360
2429
  var apply = function(func, options = {}) {
2361
2430
  const state = this;
2362
- if ((0, import_utils24.isFunction)(func)) {
2431
+ if ((0, import_utils31.isFunction)(func)) {
2363
2432
  func(state);
2364
2433
  return state.update(state, { replace: true, ...options });
2365
2434
  }
@@ -2394,12 +2463,12 @@ var require_inherit = __commonJS({
2394
2463
  createChangesByKey: () => createChangesByKey,
2395
2464
  createInheritedState: () => createInheritedState,
2396
2465
  findInheritedState: () => findInheritedState,
2397
- getChildStateInKey: () => getChildStateInKey2,
2466
+ getChildStateInKey: () => getChildStateInKey3,
2398
2467
  getParentStateInKey: () => getParentStateInKey,
2399
- isState: () => isState2
2468
+ isState: () => isState3
2400
2469
  });
2401
2470
  module2.exports = __toCommonJS2(inherit_exports);
2402
- var import_utils24 = require_cjs();
2471
+ var import_utils31 = require_cjs();
2403
2472
  var import_ignore = require_ignore();
2404
2473
  var getParentStateInKey = (stateKey, parentState) => {
2405
2474
  if (!stateKey.includes("../"))
@@ -2413,7 +2482,7 @@ var require_inherit = __commonJS({
2413
2482
  }
2414
2483
  return parentState;
2415
2484
  };
2416
- var getChildStateInKey2 = (stateKey, parentState, options = {}) => {
2485
+ var getChildStateInKey3 = (stateKey, parentState, options = {}) => {
2417
2486
  const arr = stateKey.split("/");
2418
2487
  const arrLength = arr.length - 1;
2419
2488
  for (let i2 = 0; i2 < arrLength; i2++) {
@@ -2446,16 +2515,16 @@ var require_inherit = __commonJS({
2446
2515
  }
2447
2516
  if (!parentState)
2448
2517
  return;
2449
- return getChildStateInKey2(stateKey, parentState, options);
2518
+ return getChildStateInKey3(stateKey, parentState, options);
2450
2519
  };
2451
2520
  var createInheritedState = (element, parent) => {
2452
2521
  const ref = element.__ref;
2453
2522
  const inheritedState = findInheritedState(element, parent);
2454
- if ((0, import_utils24.isUndefined)(inheritedState))
2523
+ if ((0, import_utils31.isUndefined)(inheritedState))
2455
2524
  return element.state;
2456
- if ((0, import_utils24.is)(inheritedState)("object", "array")) {
2457
- return (0, import_utils24.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
2458
- } else if ((0, import_utils24.is)(inheritedState)("string", "number", "boolean")) {
2525
+ if ((0, import_utils31.is)(inheritedState)("object", "array")) {
2526
+ return (0, import_utils31.deepClone)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
2527
+ } else if ((0, import_utils31.is)(inheritedState)("string", "number", "boolean")) {
2459
2528
  ref.__stateType = typeof inheritedState;
2460
2529
  return { value: inheritedState };
2461
2530
  }
@@ -2464,12 +2533,12 @@ var require_inherit = __commonJS({
2464
2533
  var checkIfInherits = (element) => {
2465
2534
  const ref = element.__ref;
2466
2535
  const stateKey = ref.__state;
2467
- if (stateKey && (0, import_utils24.is)(stateKey)("number", "string", "boolean"))
2536
+ if (stateKey && (0, import_utils31.is)(stateKey)("number", "string", "boolean"))
2468
2537
  return true;
2469
2538
  return false;
2470
2539
  };
2471
- var isState2 = function(state) {
2472
- if (!(0, import_utils24.isObjectLike)(state))
2540
+ var isState3 = function(state) {
2541
+ if (!(0, import_utils31.isObjectLike)(state))
2473
2542
  return false;
2474
2543
  return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.toggle && state.add && state.apply && state.__element && state.__children;
2475
2544
  };
@@ -2518,21 +2587,20 @@ var require_updateState = __commonJS({
2518
2587
  var import_report = require_cjs2();
2519
2588
  var import_event = require_cjs3();
2520
2589
  var import_ignore = require_ignore();
2521
- var import_utils24 = require_cjs();
2590
+ var import_utils31 = require_cjs();
2522
2591
  var import_inherit = require_inherit();
2523
2592
  var STATE_UPDATE_OPTIONS = {
2524
2593
  overwrite: true,
2525
2594
  preventHoistElementUpdate: false,
2526
2595
  updateByState: true,
2527
2596
  isHoisted: true,
2528
- execStateFunction: true,
2529
- stateFunctionOverwrite: true
2597
+ execStateFunction: true
2530
2598
  };
2531
2599
  var updateState = function(obj, options = STATE_UPDATE_OPTIONS) {
2532
2600
  const state = this;
2533
2601
  const element = state.__element;
2534
2602
  if (!options.updateByState)
2535
- (0, import_utils24.merge)(options, STATE_UPDATE_OPTIONS);
2603
+ (0, import_utils31.merge)(options, STATE_UPDATE_OPTIONS);
2536
2604
  if (!state.__element)
2537
2605
  (0, import_report.report)("ElementOnStateIsNotDefined");
2538
2606
  if (options.preventInheritAtCurrentState === true) {
@@ -2562,10 +2630,10 @@ var require_updateState = __commonJS({
2562
2630
  const shallow = overwrite === "shallow";
2563
2631
  const merge22 = overwrite === "merge";
2564
2632
  if (merge22) {
2565
- (0, import_utils24.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2633
+ (0, import_utils31.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2566
2634
  return;
2567
2635
  }
2568
- const overwriteFunc = shallow ? import_utils24.overwriteShallow : import_utils24.overwriteDeep;
2636
+ const overwriteFunc = shallow ? import_utils31.overwriteShallow : import_utils31.overwriteDeep;
2569
2637
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
2570
2638
  };
2571
2639
  var hoistStateUpdate = (state, obj, options) => {
@@ -2590,7 +2658,6 @@ var require_updateState = __commonJS({
2590
2658
  targetParent[stateKey] = value2;
2591
2659
  targetParent.update(changesValue, {
2592
2660
  execStateFunction: false,
2593
- stateFunctionOverwrite: false,
2594
2661
  isHoisted: true,
2595
2662
  ...options,
2596
2663
  preventUpdate: options.preventHoistElementUpdate,
@@ -2657,7 +2724,7 @@ var require_create2 = __commonJS({
2657
2724
  });
2658
2725
  module2.exports = __toCommonJS2(create_exports);
2659
2726
  var import_event = require_cjs3();
2660
- var import_utils24 = require_cjs();
2727
+ var import_utils31 = require_cjs();
2661
2728
  var import_ignore = require_ignore();
2662
2729
  var import_methods = require_methods();
2663
2730
  var import_updateState = require_updateState();
@@ -2671,13 +2738,13 @@ var require_create2 = __commonJS({
2671
2738
  if (objectizeState === false)
2672
2739
  return parent.state || {};
2673
2740
  else
2674
- element.state = (0, import_utils24.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
2741
+ element.state = (0, import_utils31.deepClone)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
2675
2742
  const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
2676
2743
  if (whatInitReturns === false)
2677
2744
  return element.state;
2678
2745
  if ((0, import_inherit.checkIfInherits)(element)) {
2679
2746
  const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
2680
- element.state = (0, import_utils24.isUndefined)(inheritedState) ? {} : inheritedState;
2747
+ element.state = (0, import_utils31.isUndefined)(inheritedState) ? {} : inheritedState;
2681
2748
  }
2682
2749
  const dependentState = applyDependentState(element, element.state);
2683
2750
  if (dependentState)
@@ -2690,17 +2757,17 @@ var require_create2 = __commonJS({
2690
2757
  const { __ref: ref } = state;
2691
2758
  if (!ref)
2692
2759
  return;
2693
- const dependentState = (0, import_utils24.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
2760
+ const dependentState = (0, import_utils31.deepClone)(ref, import_ignore.IGNORE_STATE_PARAMS);
2694
2761
  const newDepends = { [element.key]: dependentState };
2695
- ref.__depends = (0, import_utils24.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
2762
+ ref.__depends = (0, import_utils31.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
2696
2763
  return dependentState;
2697
2764
  };
2698
2765
  var checkForTypes = (element) => {
2699
2766
  const { state, __ref: ref } = element;
2700
- if ((0, import_utils24.isFunction)(state)) {
2767
+ if ((0, import_utils31.isFunction)(state)) {
2701
2768
  ref.__state = state;
2702
- return (0, import_utils24.exec)(state, element);
2703
- } else if ((0, import_utils24.is)(state)("string", "number")) {
2769
+ return (0, import_utils31.exec)(state, element);
2770
+ } else if ((0, import_utils31.is)(state)("string", "number")) {
2704
2771
  ref.__state = state;
2705
2772
  return {};
2706
2773
  } else if (state === true) {
@@ -2747,7 +2814,7 @@ var require_create2 = __commonJS({
2747
2814
  __children: {},
2748
2815
  __root: ref.__root ? ref.__root.state : state
2749
2816
  };
2750
- if ((0, import_utils24.isArray)(state)) {
2817
+ if ((0, import_utils31.isArray)(state)) {
2751
2818
  addProtoToArray(state, proto);
2752
2819
  } else {
2753
2820
  Object.setPrototypeOf(state, proto);
@@ -2814,17 +2881,17 @@ var require_state = __commonJS({
2814
2881
  state: () => state
2815
2882
  });
2816
2883
  module2.exports = __toCommonJS2(state_exports);
2817
- var import_state2 = require_cjs5();
2818
- var import_utils24 = require_cjs();
2884
+ var import_state3 = require_cjs5();
2885
+ var import_utils31 = require_cjs();
2819
2886
  var state = (params, element, node2) => {
2820
- const state2 = (0, import_utils24.exec)(params, element);
2821
- if ((0, import_utils24.isObject)(state2)) {
2887
+ const state2 = (0, import_utils31.exec)(params, element);
2888
+ if ((0, import_utils31.isObject)(state2)) {
2822
2889
  for (const param in state2) {
2823
- if (import_state2.IGNORE_STATE_PARAMS.includes(param))
2890
+ if (import_state3.IGNORE_STATE_PARAMS.includes(param))
2824
2891
  continue;
2825
2892
  if (!Object.hasOwnProperty.call(state2, param))
2826
2893
  continue;
2827
- element.state[param] = (0, import_utils24.exec)(state2[param], element);
2894
+ element.state[param] = (0, import_utils31.exec)(state2[param], element);
2828
2895
  }
2829
2896
  }
2830
2897
  return element;
@@ -2833,6 +2900,48 @@ var require_state = __commonJS({
2833
2900
  }
2834
2901
  });
2835
2902
 
2903
+ // ../../node_modules/@domql/element/dist/cjs/mixins/scope.js
2904
+ var require_scope = __commonJS({
2905
+ "../../node_modules/@domql/element/dist/cjs/mixins/scope.js"(exports, module2) {
2906
+ "use strict";
2907
+ var __defProp2 = Object.defineProperty;
2908
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
2909
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
2910
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
2911
+ var __export2 = (target, all) => {
2912
+ for (var name in all)
2913
+ __defProp2(target, name, { get: all[name], enumerable: true });
2914
+ };
2915
+ var __copyProps2 = (to, from2, except, desc) => {
2916
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
2917
+ for (let key of __getOwnPropNames2(from2))
2918
+ if (!__hasOwnProp2.call(to, key) && key !== except)
2919
+ __defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
2920
+ }
2921
+ return to;
2922
+ };
2923
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
2924
+ var scope_exports = {};
2925
+ __export2(scope_exports, {
2926
+ default: () => scope_default
2927
+ });
2928
+ module2.exports = __toCommonJS2(scope_exports);
2929
+ var import_utils31 = require_cjs();
2930
+ var scope_default = (params, element, node2) => {
2931
+ if (!(0, import_utils31.isObject)(params))
2932
+ return;
2933
+ for (const scopeItem in params) {
2934
+ const value2 = params[scopeItem];
2935
+ if ((0, import_utils31.isFunction)(value2)) {
2936
+ element.scope[scopeItem] = value2.bind(element);
2937
+ } else {
2938
+ element.scope[scopeItem] = value2;
2939
+ }
2940
+ }
2941
+ };
2942
+ }
2943
+ });
2944
+
2836
2945
  // ../../node_modules/@domql/element/dist/cjs/mixins/registry.js
2837
2946
  var require_registry = __commonJS({
2838
2947
  "../../node_modules/@domql/element/dist/cjs/mixins/registry.js"(exports, module2) {
@@ -2870,6 +2979,7 @@ var require_registry = __commonJS({
2870
2979
  data: import__2.data,
2871
2980
  class: import__2.classList,
2872
2981
  state: import__2.state,
2982
+ scope: import__2.scope,
2873
2983
  deps: (param, el) => param || el.parent.deps,
2874
2984
  extend: {},
2875
2985
  childExtend: {},
@@ -2970,8 +3080,9 @@ var require_mixins = __commonJS({
2970
3080
  data: () => import_data.default,
2971
3081
  html: () => import_html.default,
2972
3082
  registry: () => import_registry.default,
2973
- state: () => import_state2.default,
2974
- style: () => import_style4.default,
3083
+ scope: () => import_scope.default,
3084
+ state: () => import_state3.default,
3085
+ style: () => import_style6.default,
2975
3086
  text: () => import_text.default
2976
3087
  });
2977
3088
  module2.exports = __toCommonJS2(mixins_exports);
@@ -2980,9 +3091,10 @@ var require_mixins = __commonJS({
2980
3091
  var import_content = __toESM2(require_content(), 1);
2981
3092
  var import_data = __toESM2(require_data(), 1);
2982
3093
  var import_html = __toESM2(require_html(), 1);
2983
- var import_style4 = __toESM2(require_style(), 1);
3094
+ var import_style6 = __toESM2(require_style(), 1);
2984
3095
  var import_text = __toESM2(require_text(), 1);
2985
- var import_state2 = __toESM2(require_state(), 1);
3096
+ var import_state3 = __toESM2(require_state(), 1);
3097
+ var import_scope = __toESM2(require_scope(), 1);
2986
3098
  var import_registry = __toESM2(require_registry(), 1);
2987
3099
  __reExport2(mixins_exports, require_registry(), module2.exports);
2988
3100
  }
@@ -3027,7 +3139,7 @@ var require_methods2 = __commonJS({
3027
3139
  spotByPath: () => spotByPath
3028
3140
  });
3029
3141
  module2.exports = __toCommonJS2(methods_exports);
3030
- var import_utils24 = require_cjs();
3142
+ var import_utils31 = require_cjs();
3031
3143
  var import_tree = require_tree();
3032
3144
  var import_mixins = require_mixins();
3033
3145
  var spotByPath = function(path) {
@@ -3060,9 +3172,9 @@ var require_methods2 = __commonJS({
3060
3172
  };
3061
3173
  var remove = function(params) {
3062
3174
  const element = this;
3063
- if ((0, import_utils24.isFunction)(element.node.remove))
3175
+ if ((0, import_utils31.isFunction)(element.node.remove))
3064
3176
  element.node.remove();
3065
- else if (!(0, import_utils24.isProduction)()) {
3177
+ else if (!(0, import_utils31.isProduction)()) {
3066
3178
  console.warn("This item cant be removed");
3067
3179
  element.log();
3068
3180
  }
@@ -3102,12 +3214,12 @@ var require_methods2 = __commonJS({
3102
3214
  if (v === "state") {
3103
3215
  if (element.__ref && element.__ref.__hasRootState)
3104
3216
  return;
3105
- if ((0, import_utils24.isFunction)(val && val.parse))
3217
+ if ((0, import_utils31.isFunction)(val && val.parse))
3106
3218
  val = val.parse();
3107
3219
  } else if (v === "props") {
3108
3220
  const { __element, update, ...props4 } = element[v];
3109
3221
  obj[v] = props4;
3110
- } else if ((0, import_utils24.isDefined)(val))
3222
+ } else if ((0, import_utils31.isDefined)(val))
3111
3223
  obj[v] = val;
3112
3224
  });
3113
3225
  return obj;
@@ -3118,7 +3230,7 @@ var require_methods2 = __commonJS({
3118
3230
  for (const v in obj) {
3119
3231
  if (excl.includes(v))
3120
3232
  return;
3121
- if ((0, import_utils24.isObjectLike)(obj[v])) {
3233
+ if ((0, import_utils31.isObjectLike)(obj[v])) {
3122
3234
  obj[v] = parseDeep.call(obj[v], excl);
3123
3235
  }
3124
3236
  }
@@ -3236,18 +3348,18 @@ var require_inherit2 = __commonJS({
3236
3348
  inheritParentProps: () => inheritParentProps
3237
3349
  });
3238
3350
  module2.exports = __toCommonJS2(inherit_exports);
3239
- var import_utils24 = require_cjs();
3351
+ var import_utils31 = require_cjs();
3240
3352
  var objectizeStringProperty = (propValue) => {
3241
- if ((0, import_utils24.is)(propValue)("string", "number")) {
3353
+ if ((0, import_utils31.is)(propValue)("string", "number")) {
3242
3354
  return { inheritedString: propValue };
3243
3355
  }
3244
3356
  return propValue;
3245
3357
  };
3246
3358
  var inheritParentProps = (element, parent) => {
3247
3359
  let propsStack = [];
3248
- const parentProps = (0, import_utils24.exec)(parent, parent.state).props;
3360
+ const parentProps = (0, import_utils31.exec)(parent, parent.state).props;
3249
3361
  const matchParent = parent.props && parentProps[element.key];
3250
- const matchParentIsString = (0, import_utils24.isString)(matchParent);
3362
+ const matchParentIsString = (0, import_utils31.isString)(matchParent);
3251
3363
  const matchParentChildProps = parentProps && parentProps.childProps;
3252
3364
  if (matchParent) {
3253
3365
  if (matchParentIsString) {
@@ -3295,21 +3407,21 @@ var require_create3 = __commonJS({
3295
3407
  syncProps: () => syncProps
3296
3408
  });
3297
3409
  module2.exports = __toCommonJS2(create_exports);
3298
- var import_utils24 = require_cjs();
3410
+ var import_utils31 = require_cjs();
3299
3411
  var import_ignore = require_ignore2();
3300
3412
  var import_inherit = require_inherit2();
3301
3413
  var createPropsStack = (element, parent) => {
3302
3414
  const { props: props4, __ref } = element;
3303
3415
  const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
3304
- if ((0, import_utils24.isObject)(props4))
3416
+ if ((0, import_utils31.isObject)(props4))
3305
3417
  propsStack.push(props4);
3306
3418
  else if (props4 === "inherit" && parent.props)
3307
3419
  propsStack.push(parent.props);
3308
3420
  else if (props4)
3309
3421
  propsStack.push(props4);
3310
- if ((0, import_utils24.isArray)(__ref.__extend)) {
3422
+ if ((0, import_utils31.isArray)(__ref.__extend)) {
3311
3423
  __ref.__extend.forEach((extend) => {
3312
- if (extend.props)
3424
+ if (extend.props && extend.props !== props4)
3313
3425
  propsStack.push(extend.props);
3314
3426
  });
3315
3427
  }
@@ -3318,32 +3430,46 @@ var require_create3 = __commonJS({
3318
3430
  };
3319
3431
  var syncProps = (props4, element) => {
3320
3432
  element.props = {};
3321
- const mergedProps = { update, __element: element };
3433
+ const mergedProps = {};
3322
3434
  props4.forEach((v) => {
3323
3435
  if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
3324
3436
  return;
3325
- const execProps = (0, import_utils24.exec)(v, element);
3326
- if ((0, import_utils24.isObject)(execProps) && execProps.__element)
3327
- return;
3328
- element.props = (0, import_utils24.deepMerge)(
3437
+ const execProps = (0, import_utils31.exec)(v, element);
3438
+ element.props = (0, import_utils31.deepMerge)(
3329
3439
  mergedProps,
3330
- (0, import_utils24.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3440
+ (0, import_utils31.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
3331
3441
  import_ignore.IGNORE_PROPS_PARAMS
3332
3442
  );
3333
3443
  });
3334
3444
  element.props = mergedProps;
3445
+ const methods = { update: update.bind(element.props), __element: element };
3446
+ Object.setPrototypeOf(element.props, methods);
3335
3447
  return element.props;
3336
3448
  };
3337
3449
  var createProps = function(element, parent, cached) {
3338
- const propsStack = cached || createPropsStack(element, parent);
3339
3450
  const { __ref: ref } = element;
3340
- if (!ref.__if)
3341
- return;
3342
- if (propsStack.length) {
3343
- ref.__props = propsStack;
3344
- syncProps(propsStack, element);
3345
- element.props.update = update;
3451
+ const applyProps = () => {
3452
+ const propsStack = cached || createPropsStack(element, parent);
3453
+ if (propsStack.length) {
3454
+ ref.__props = propsStack;
3455
+ syncProps(propsStack, element);
3456
+ } else {
3457
+ ref.__props = cached || [];
3458
+ element.props = {};
3459
+ }
3460
+ };
3461
+ if (ref.__if)
3462
+ applyProps();
3463
+ else {
3464
+ try {
3465
+ applyProps();
3466
+ } catch {
3467
+ element.props = {};
3468
+ ref.__props = cached || [];
3469
+ }
3346
3470
  }
3471
+ const methods = { update: update.bind(element.props), __element: element };
3472
+ Object.setPrototypeOf(element.props, methods);
3347
3473
  return element;
3348
3474
  };
3349
3475
  function update(props4, options) {
@@ -3385,7 +3511,7 @@ var require_update = __commonJS({
3385
3511
  const { __ref } = element;
3386
3512
  let propsStack = __ref.__props;
3387
3513
  const parentProps = (0, import_inherit.inheritParentProps)(element, parent);
3388
- if (parentProps)
3514
+ if (parentProps.length)
3389
3515
  propsStack = __ref.__props = [].concat(parentProps, propsStack);
3390
3516
  if (newProps)
3391
3517
  propsStack = __ref.__props = [].concat(newProps, propsStack);
@@ -3448,7 +3574,7 @@ var require_object2 = __commonJS({
3448
3574
  __export2(object_exports, {
3449
3575
  METHODS_EXL: () => METHODS_EXL,
3450
3576
  clone: () => clone,
3451
- deepClone: () => deepClone4,
3577
+ deepClone: () => deepClone5,
3452
3578
  deepMerge: () => deepMerge4,
3453
3579
  flattenRecursive: () => flattenRecursive,
3454
3580
  mergeAndCloneIfArray: () => mergeAndCloneIfArray,
@@ -3456,17 +3582,17 @@ var require_object2 = __commonJS({
3456
3582
  mergeIfExisted: () => mergeIfExisted,
3457
3583
  overwrite: () => overwrite,
3458
3584
  overwriteDeep: () => overwriteDeep,
3459
- overwriteShallow: () => overwriteShallow2
3585
+ overwriteShallow: () => overwriteShallow3
3460
3586
  });
3461
3587
  module2.exports = __toCommonJS2(object_exports);
3462
- var import_utils24 = require_cjs();
3463
- var import_state2 = require_cjs5();
3588
+ var import_utils31 = require_cjs();
3589
+ var import_state3 = require_cjs5();
3464
3590
  var import_props = require_props();
3465
3591
  var import_methods = require_methods2();
3466
- var METHODS_EXL = (0, import_utils24.joinArrays)(
3592
+ var METHODS_EXL = (0, import_utils31.joinArrays)(
3467
3593
  ["node", "state", "context", "extend"],
3468
3594
  import_methods.METHODS,
3469
- import_state2.IGNORE_STATE_PARAMS,
3595
+ import_state3.IGNORE_STATE_PARAMS,
3470
3596
  import_props.IGNORE_PROPS_PARAMS
3471
3597
  );
3472
3598
  var deepMerge4 = (element, extend, exclude = METHODS_EXL) => {
@@ -3477,7 +3603,7 @@ var require_object2 = __commonJS({
3477
3603
  const extendProp = extend[e];
3478
3604
  if (elementProp === void 0) {
3479
3605
  element[e] = extendProp;
3480
- } else if ((0, import_utils24.isObjectLike)(elementProp) && (0, import_utils24.isObject)(extendProp)) {
3606
+ } else if ((0, import_utils31.isObjectLike)(elementProp) && (0, import_utils31.isObject)(extendProp)) {
3481
3607
  deepMerge4(elementProp, extendProp);
3482
3608
  }
3483
3609
  }
@@ -3492,17 +3618,17 @@ var require_object2 = __commonJS({
3492
3618
  }
3493
3619
  return o;
3494
3620
  };
3495
- var deepClone4 = (obj, exclude = METHODS_EXL) => {
3496
- const o = (0, import_utils24.isArray)(obj) ? [] : {};
3621
+ var deepClone5 = (obj, exclude = METHODS_EXL) => {
3622
+ const o = (0, import_utils31.isArray)(obj) ? [] : {};
3497
3623
  for (const e in obj) {
3498
3624
  if (exclude.includes(e))
3499
3625
  continue;
3500
3626
  let objProp = obj[e];
3501
- if (e === "extend" && (0, import_utils24.isArray)(objProp)) {
3627
+ if (e === "extend" && (0, import_utils31.isArray)(objProp)) {
3502
3628
  objProp = mergeArray(objProp, exclude);
3503
3629
  }
3504
- if ((0, import_utils24.isObjectLike)(objProp)) {
3505
- o[e] = deepClone4(objProp, exclude);
3630
+ if ((0, import_utils31.isObjectLike)(objProp)) {
3631
+ o[e] = deepClone5(objProp, exclude);
3506
3632
  } else
3507
3633
  o[e] = objProp;
3508
3634
  }
@@ -3526,7 +3652,7 @@ var require_object2 = __commonJS({
3526
3652
  }
3527
3653
  return changes;
3528
3654
  };
3529
- var overwriteShallow2 = (obj, params, exclude = METHODS_EXL) => {
3655
+ var overwriteShallow3 = (obj, params, exclude = METHODS_EXL) => {
3530
3656
  for (const e in params) {
3531
3657
  if (exclude.includes(e))
3532
3658
  continue;
@@ -3540,7 +3666,7 @@ var require_object2 = __commonJS({
3540
3666
  continue;
3541
3667
  const objProp = obj[e];
3542
3668
  const paramsProp = params[e];
3543
- if ((0, import_utils24.isObjectLike)(objProp) && (0, import_utils24.isObjectLike)(paramsProp)) {
3669
+ if ((0, import_utils31.isObjectLike)(objProp) && (0, import_utils31.isObjectLike)(paramsProp)) {
3544
3670
  overwriteDeep(objProp, paramsProp);
3545
3671
  } else if (paramsProp !== void 0) {
3546
3672
  obj[e] = paramsProp;
@@ -3549,15 +3675,15 @@ var require_object2 = __commonJS({
3549
3675
  return obj;
3550
3676
  };
3551
3677
  var mergeIfExisted = (a, b) => {
3552
- if ((0, import_utils24.isObjectLike)(a) && (0, import_utils24.isObjectLike)(b))
3678
+ if ((0, import_utils31.isObjectLike)(a) && (0, import_utils31.isObjectLike)(b))
3553
3679
  return deepMerge4(a, b);
3554
3680
  return a || b;
3555
3681
  };
3556
3682
  var mergeArray = (arr, exclude = ["parent", "node", "__element", "state", "context", "__ref"]) => {
3557
- return arr.reduce((a, c) => deepMerge4(a, deepClone4(c, exclude)), {});
3683
+ return arr.reduce((a, c) => deepMerge4(a, deepClone5(c, exclude)), {});
3558
3684
  };
3559
3685
  var mergeAndCloneIfArray = (obj) => {
3560
- return (0, import_utils24.isArray)(obj) ? mergeArray(obj) : deepClone4(obj);
3686
+ return (0, import_utils31.isArray)(obj) ? mergeArray(obj) : deepClone5(obj);
3561
3687
  };
3562
3688
  var flattenRecursive = (param, prop, stack = []) => {
3563
3689
  const objectized = mergeAndCloneIfArray(param);
@@ -3609,11 +3735,10 @@ var require_extendUtils = __commonJS({
3609
3735
  getExtendStackRegistry: () => getExtendStackRegistry,
3610
3736
  getHashedExtend: () => getHashedExtend,
3611
3737
  jointStacks: () => jointStacks,
3612
- replaceStringsWithComponents: () => replaceStringsWithComponents,
3613
3738
  setHashedExtend: () => setHashedExtend
3614
3739
  });
3615
3740
  module2.exports = __toCommonJS2(extendUtils_exports);
3616
- var import_utils24 = require_cjs();
3741
+ var import_utils31 = require_cjs();
3617
3742
  var ENV2 = "development";
3618
3743
  var generateHash = () => Math.random().toString(36).substring(2);
3619
3744
  var extendStackRegistry = {};
@@ -3623,7 +3748,7 @@ var require_extendUtils = __commonJS({
3623
3748
  };
3624
3749
  var setHashedExtend = (extend, stack) => {
3625
3750
  const hash2 = generateHash();
3626
- if (!(0, import_utils24.isString)(extend)) {
3751
+ if (!(0, import_utils31.isString)(extend)) {
3627
3752
  extend.__hash = hash2;
3628
3753
  }
3629
3754
  extendStackRegistry[hash2] = stack;
@@ -3635,25 +3760,27 @@ var require_extendUtils = __commonJS({
3635
3760
  }
3636
3761
  return setHashedExtend(extend, stack);
3637
3762
  };
3638
- var extractArrayExtend = (extend, stack) => {
3639
- extend.forEach((each) => flattenExtend(each, stack));
3763
+ var extractArrayExtend = (extend, stack, context) => {
3764
+ extend.forEach((each) => flattenExtend(each, stack, context));
3640
3765
  return stack;
3641
3766
  };
3642
- var deepExtend = (extend, stack) => {
3767
+ var deepExtend = (extend, stack, context) => {
3643
3768
  const extendOflattenExtend = extend.extend;
3644
3769
  if (extendOflattenExtend) {
3645
- flattenExtend(extendOflattenExtend, stack);
3770
+ flattenExtend(extendOflattenExtend, stack, context);
3646
3771
  }
3647
3772
  return stack;
3648
3773
  };
3649
- var flattenExtend = (extend, stack) => {
3774
+ var flattenExtend = (extend, stack, context) => {
3650
3775
  if (!extend)
3651
3776
  return stack;
3652
- if ((0, import_utils24.isArray)(extend))
3653
- return extractArrayExtend(extend, stack);
3777
+ if ((0, import_utils31.isArray)(extend))
3778
+ return extractArrayExtend(extend, stack, context);
3779
+ if ((0, import_utils31.isString)(extend))
3780
+ extend = fallbackStringExtend(extend, context);
3654
3781
  stack.push(extend);
3655
3782
  if (extend.extend)
3656
- deepExtend(extend, stack);
3783
+ deepExtend(extend, stack, context);
3657
3784
  return stack;
3658
3785
  };
3659
3786
  var deepCloneExtend = (obj) => {
@@ -3662,9 +3789,9 @@ var require_extendUtils = __commonJS({
3662
3789
  if (["parent", "node", "__element"].indexOf(prop) > -1)
3663
3790
  continue;
3664
3791
  const objProp = obj[prop];
3665
- if ((0, import_utils24.isObject)(objProp)) {
3792
+ if ((0, import_utils31.isObject)(objProp)) {
3666
3793
  o[prop] = deepCloneExtend(objProp);
3667
- } else if ((0, import_utils24.isArray)(objProp)) {
3794
+ } else if ((0, import_utils31.isArray)(objProp)) {
3668
3795
  o[prop] = objProp.map((x) => x);
3669
3796
  } else
3670
3797
  o[prop] = objProp;
@@ -3679,14 +3806,14 @@ var require_extendUtils = __commonJS({
3679
3806
  const extendProp = extend[e];
3680
3807
  if (elementProp === void 0) {
3681
3808
  element[e] = extendProp;
3682
- } else if ((0, import_utils24.isObject)(elementProp) && (0, import_utils24.isObject)(extendProp)) {
3809
+ } else if ((0, import_utils31.isObject)(elementProp) && (0, import_utils31.isObject)(extendProp)) {
3683
3810
  deepMergeExtend(elementProp, extendProp);
3684
- } else if ((0, import_utils24.isArray)(elementProp) && (0, import_utils24.isArray)(extendProp)) {
3811
+ } else if ((0, import_utils31.isArray)(elementProp) && (0, import_utils31.isArray)(extendProp)) {
3685
3812
  element[e] = elementProp.concat(extendProp);
3686
- } else if ((0, import_utils24.isArray)(elementProp) && (0, import_utils24.isObject)(extendProp)) {
3813
+ } else if ((0, import_utils31.isArray)(elementProp) && (0, import_utils31.isObject)(extendProp)) {
3687
3814
  const obj = deepMergeExtend({}, elementProp);
3688
3815
  element[e] = deepMergeExtend(obj, extendProp);
3689
- } else if (elementProp === void 0 && (0, import_utils24.isFunction)(extendProp)) {
3816
+ } else if (elementProp === void 0 && (0, import_utils31.isFunction)(extendProp)) {
3690
3817
  element[e] = extendProp;
3691
3818
  }
3692
3819
  }
@@ -3697,9 +3824,9 @@ var require_extendUtils = __commonJS({
3697
3824
  return deepMergeExtend(a, deepCloneExtend(c));
3698
3825
  }, {});
3699
3826
  };
3700
- var fallbackStringExtend = (extend, context, options) => {
3827
+ var fallbackStringExtend = (extend, context, options = {}) => {
3701
3828
  const COMPONENTS = context && context.components || options.components;
3702
- if ((0, import_utils24.isString)(extend)) {
3829
+ if ((0, import_utils31.isString)(extend)) {
3703
3830
  if (COMPONENTS && COMPONENTS[extend]) {
3704
3831
  return COMPONENTS[extend];
3705
3832
  } else {
@@ -3714,32 +3841,18 @@ var require_extendUtils = __commonJS({
3714
3841
  var jointStacks = (extendStack, childExtendStack) => {
3715
3842
  return [].concat(extendStack.slice(0, 1)).concat(childExtendStack.slice(0, 1)).concat(extendStack.slice(1)).concat(childExtendStack.slice(1));
3716
3843
  };
3717
- var getExtendStack = (extend) => {
3844
+ var getExtendStack = (extend, context) => {
3718
3845
  if (!extend)
3719
3846
  return [];
3720
3847
  if (extend.__hash)
3721
3848
  return getHashedExtend(extend) || [];
3722
- const stack = flattenExtend(extend, []);
3849
+ const stack = flattenExtend(extend, [], context);
3723
3850
  return getExtendStackRegistry(extend, stack);
3724
3851
  };
3725
3852
  var getExtendMerged = (extend) => {
3726
3853
  const stack = getExtendStack(extend);
3727
3854
  return cloneAndMergeArrayExtend(stack);
3728
3855
  };
3729
- var replaceStringsWithComponents = (stack, context, options) => {
3730
- const COMPONENTS = context && context.components || options.components;
3731
- return stack.map((v) => {
3732
- if ((0, import_utils24.isString)(v)) {
3733
- const component = COMPONENTS[v];
3734
- return component;
3735
- }
3736
- if ((0, import_utils24.isString)(v.extend)) {
3737
- v.extend = COMPONENTS[v.extend];
3738
- return { ...getExtendMerged(v.extend), ...v };
3739
- }
3740
- return v;
3741
- });
3742
- };
3743
3856
  }
3744
3857
  });
3745
3858
 
@@ -3769,27 +3882,27 @@ var require_extend = __commonJS({
3769
3882
  applyExtend: () => applyExtend
3770
3883
  });
3771
3884
  module2.exports = __toCommonJS2(extend_exports);
3772
- var import_utils24 = require_cjs();
3773
- var import_utils25 = require_utils();
3885
+ var import_utils31 = require_cjs();
3886
+ var import_utils210 = require_utils();
3774
3887
  var ENV2 = "development";
3775
3888
  var applyExtend = (element, parent, options = {}) => {
3776
- if ((0, import_utils24.isFunction)(element))
3777
- element = (0, import_utils24.exec)(element, parent);
3889
+ if ((0, import_utils31.isFunction)(element))
3890
+ element = (0, import_utils31.exec)(element, parent);
3778
3891
  let { extend, props: props4, context, __ref } = element;
3779
- extend = (0, import_utils25.fallbackStringExtend)(extend, context, options);
3780
- const extendStack = (0, import_utils25.getExtendStack)(extend);
3892
+ extend = (0, import_utils210.fallbackStringExtend)(extend, context, options);
3893
+ const extendStack = (0, import_utils210.getExtendStack)(extend, context);
3781
3894
  if (ENV2 !== "test" || ENV2 !== "development")
3782
3895
  delete element.extend;
3783
3896
  let childExtendStack = [];
3784
3897
  if (parent) {
3785
3898
  element.parent = parent;
3786
3899
  if (!options.ignoreChildExtend && !(props4 && props4.ignoreChildExtend)) {
3787
- childExtendStack = (0, import_utils25.getExtendStack)(parent.childExtend);
3900
+ childExtendStack = (0, import_utils210.getExtendStack)(parent.childExtend, context);
3788
3901
  const ignoreChildExtendRecursive = props4 && props4.ignoreChildExtendRecursive;
3789
3902
  if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
3790
3903
  const canExtendRecursive = element.key !== "__text";
3791
3904
  if (canExtendRecursive) {
3792
- const childExtendRecursiveStack = (0, import_utils25.getExtendStack)(parent.childExtendRecursive);
3905
+ const childExtendRecursiveStack = (0, import_utils210.getExtendStack)(parent.childExtendRecursive, context);
3793
3906
  childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
3794
3907
  element.childExtendRecursive = parent.childExtendRecursive;
3795
3908
  }
@@ -3800,7 +3913,7 @@ var require_extend = __commonJS({
3800
3913
  const childExtendLength = childExtendStack.length;
3801
3914
  let stack = [];
3802
3915
  if (extendLength && childExtendLength) {
3803
- stack = (0, import_utils25.jointStacks)(extendStack, childExtendStack);
3916
+ stack = (0, import_utils210.jointStacks)(extendStack, childExtendStack);
3804
3917
  } else if (extendLength) {
3805
3918
  stack = extendStack;
3806
3919
  } else if (childExtendLength) {
@@ -3808,20 +3921,19 @@ var require_extend = __commonJS({
3808
3921
  } else if (!options.extend)
3809
3922
  return element;
3810
3923
  if (options.extend) {
3811
- const defaultOptionsExtend = (0, import_utils25.getExtendStack)(options.extend);
3924
+ const defaultOptionsExtend = (0, import_utils210.getExtendStack)(options.extend, context);
3812
3925
  stack = [].concat(stack, defaultOptionsExtend);
3813
3926
  }
3814
3927
  if (__ref)
3815
3928
  __ref.__extend = stack;
3816
- const findAndReplaceStrings = (0, import_utils25.replaceStringsWithComponents)(stack, context, options);
3817
- let mergedExtend = (0, import_utils25.cloneAndMergeArrayExtend)(findAndReplaceStrings);
3929
+ let mergedExtend = (0, import_utils210.cloneAndMergeArrayExtend)(stack);
3818
3930
  const COMPONENTS = context && context.components || options.components;
3819
- const component = (0, import_utils24.exec)(element.component || mergedExtend.component, element);
3931
+ const component = (0, import_utils31.exec)(element.component || mergedExtend.component, element);
3820
3932
  if (component && COMPONENTS && COMPONENTS[component]) {
3821
- const componentExtend = (0, import_utils25.cloneAndMergeArrayExtend)((0, import_utils25.getExtendStack)(COMPONENTS[component]));
3822
- mergedExtend = (0, import_utils25.deepMergeExtend)(componentExtend, mergedExtend);
3933
+ const componentExtend = (0, import_utils210.cloneAndMergeArrayExtend)((0, import_utils210.getExtendStack)(COMPONENTS[component]));
3934
+ mergedExtend = (0, import_utils210.deepMergeExtend)(componentExtend, mergedExtend);
3823
3935
  }
3824
- return (0, import_utils25.deepMergeExtend)(element, mergedExtend);
3936
+ return (0, import_utils210.deepMergeExtend)(element, mergedExtend);
3825
3937
  };
3826
3938
  }
3827
3939
  });
@@ -3860,11 +3972,11 @@ var require_component = __commonJS({
3860
3972
  overwriteVariant: () => overwriteVariant
3861
3973
  });
3862
3974
  module2.exports = __toCommonJS2(component_exports);
3863
- var import_utils24 = require_cjs();
3975
+ var import_utils31 = require_cjs();
3864
3976
  var import_extend = require_extend();
3865
3977
  var ENV2 = "development";
3866
3978
  var checkIfKeyIsComponent = (key) => {
3867
- const isFirstKeyString = (0, import_utils24.isString)(key);
3979
+ const isFirstKeyString = (0, import_utils31.isString)(key);
3868
3980
  if (!isFirstKeyString)
3869
3981
  return;
3870
3982
  const firstCharKey = key.slice(0, 1);
@@ -3872,7 +3984,7 @@ var require_component = __commonJS({
3872
3984
  };
3873
3985
  var addAdditionalExtend = (newExtend, element) => {
3874
3986
  const { extend } = element;
3875
- const preserveExtend = (0, import_utils24.isArray)(extend) ? extend : [extend];
3987
+ const preserveExtend = (0, import_utils31.isArray)(extend) ? extend : [extend];
3876
3988
  return {
3877
3989
  ...element,
3878
3990
  extend: [newExtend].concat(preserveExtend)
@@ -3880,25 +3992,29 @@ var require_component = __commonJS({
3880
3992
  };
3881
3993
  var extendizeByKey = (element, parent, key) => {
3882
3994
  const { tag, extend, props: props4, state, childExtend, childProps, on: on2, if: condition } = element;
3883
- const hasComponentAttrs = tag || extend || childExtend || props4 || state || on2 || condition;
3995
+ const hasComponentAttrs = extend || childExtend || props4 || state || on2 || condition;
3884
3996
  const componentKey = key.includes("_") ? key.split("_")[0] : key.includes(".") ? key.split(".")[0] : key;
3885
3997
  const extendKey = componentKey || key;
3886
3998
  if (!hasComponentAttrs || childProps) {
3887
3999
  return {
3888
4000
  extend: extendKey,
4001
+ tag,
3889
4002
  props: { ...element }
3890
4003
  };
3891
4004
  } else if (!extend || extend === true) {
3892
4005
  return {
3893
4006
  ...element,
4007
+ tag,
3894
4008
  extend: extendKey
3895
4009
  };
3896
4010
  } else if (extend) {
3897
4011
  addAdditionalExtend(extendKey, element);
3898
- } else if ((0, import_utils24.isFunction)(element)) {
4012
+ } else if ((0, import_utils31.isFunction)(element)) {
4013
+ console.log(element);
3899
4014
  return {
3900
4015
  extend: extendKey,
3901
- props: { ...(0, import_utils24.exec)(element, parent) }
4016
+ tag,
4017
+ props: { ...(0, import_utils31.exec)(element, parent) }
3902
4018
  };
3903
4019
  }
3904
4020
  };
@@ -3911,8 +4027,8 @@ var require_component = __commonJS({
3911
4027
  return;
3912
4028
  const { components } = context;
3913
4029
  const { extend } = element;
3914
- const execExtend = (0, import_utils24.exec)(extend, element);
3915
- if ((0, import_utils24.isString)(execExtend)) {
4030
+ const execExtend = (0, import_utils31.exec)(extend, element);
4031
+ if ((0, import_utils31.isString)(execExtend)) {
3916
4032
  if (components[execExtend])
3917
4033
  element.extend = components[execExtend];
3918
4034
  else {
@@ -3925,29 +4041,29 @@ var require_component = __commonJS({
3925
4041
  }
3926
4042
  };
3927
4043
  var isVariant = (param) => {
3928
- if (!(0, import_utils24.isString)(param))
4044
+ if (!(0, import_utils31.isString)(param))
3929
4045
  return;
3930
4046
  const firstCharKey = param.slice(0, 1);
3931
4047
  return firstCharKey === ".";
3932
4048
  };
3933
4049
  var hasVariantProp = (element) => {
3934
4050
  const { props: props4 } = element;
3935
- if ((0, import_utils24.isObject)(props4) && (0, import_utils24.isString)(props4.variant))
4051
+ if ((0, import_utils31.isObject)(props4) && (0, import_utils31.isString)(props4.variant))
3936
4052
  return true;
3937
4053
  };
3938
4054
  var overwriteVariant = (element, variant, variantProps) => {
3939
4055
  let variantElement = element[variant];
3940
4056
  if (!variantElement)
3941
4057
  return;
3942
- const props4 = (0, import_utils24.isObject)(variantProps) ? variantProps : {};
3943
- if ((0, import_utils24.isString)(variantElement)) {
4058
+ const props4 = (0, import_utils31.isObject)(variantProps) ? variantProps : {};
4059
+ if ((0, import_utils31.isString)(variantElement)) {
3944
4060
  variantElement = {
3945
4061
  extend: [{ props: props4 }, variantElement]
3946
4062
  };
3947
4063
  } else if (variantElement.extend) {
3948
4064
  variantElement = addAdditionalExtend({ props: props4 }, variantElement);
3949
4065
  }
3950
- return (0, import_utils24.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
4066
+ return (0, import_utils31.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
3951
4067
  };
3952
4068
  var applyVariant = (element) => {
3953
4069
  const { props: props4 } = element;
@@ -4022,8 +4138,8 @@ var require_iterate = __commonJS({
4022
4138
  throughUpdatedExec: () => throughUpdatedExec
4023
4139
  });
4024
4140
  module2.exports = __toCommonJS2(iterate_exports);
4025
- var import_utils24 = require_cjs();
4026
- var import_utils25 = require_utils();
4141
+ var import_utils31 = require_cjs();
4142
+ var import_utils210 = require_utils();
4027
4143
  var import_methods = require_methods2();
4028
4144
  var throughInitialExec = (element, exclude = {}) => {
4029
4145
  const { __ref: ref } = element;
@@ -4031,13 +4147,13 @@ var require_iterate = __commonJS({
4031
4147
  if (exclude[param])
4032
4148
  continue;
4033
4149
  const prop = element[param];
4034
- if ((0, import_utils24.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils25.isVariant)(param)) {
4150
+ if ((0, import_utils31.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils210.isVariant)(param)) {
4035
4151
  ref.__exec[param] = prop;
4036
4152
  element[param] = prop(element, element.state);
4037
4153
  }
4038
4154
  }
4039
4155
  };
4040
- var throughUpdatedExec = (element, options = { excludes: import_utils25.METHODS_EXL }) => {
4156
+ var throughUpdatedExec = (element, options = { excludes: import_utils210.METHODS_EXL }) => {
4041
4157
  const { __ref: ref } = element;
4042
4158
  const changes = {};
4043
4159
  for (const param in ref.__exec) {
@@ -4046,13 +4162,13 @@ var require_iterate = __commonJS({
4046
4162
  if (isDefinedParam)
4047
4163
  continue;
4048
4164
  const newExec = ref.__exec[param](element, element.state, element.context);
4049
- const execReturnsString = (0, import_utils24.isString)(newExec) || (0, import_utils24.isNumber)(newExec);
4165
+ const execReturnsString = (0, import_utils31.isString)(newExec) || (0, import_utils31.isNumber)(newExec);
4050
4166
  if (prop && prop.node && execReturnsString) {
4051
- (0, import_utils25.overwrite)(prop, { text: newExec }, options);
4167
+ (0, import_utils210.overwrite)(prop, { text: newExec }, options);
4052
4168
  } else if (newExec !== prop) {
4053
- if ((0, import_utils25.checkIfKeyIsComponent)(param)) {
4054
- const { extend, ...newElem } = (0, import_utils25.extendizeByKey)(newExec, element, param);
4055
- (0, import_utils25.overwrite)(prop, newElem, options);
4169
+ if ((0, import_utils210.checkIfKeyIsComponent)(param)) {
4170
+ const { extend, ...newElem } = (0, import_utils210.extendizeByKey)(newExec, element, param);
4171
+ (0, import_utils210.overwrite)(prop, newElem, options);
4056
4172
  } else {
4057
4173
  ref.__cached[param] = changes[param] = prop;
4058
4174
  element[param] = newExec;
@@ -4064,16 +4180,16 @@ var require_iterate = __commonJS({
4064
4180
  var throughInitialDefine = (element) => {
4065
4181
  const { define, context, __ref: ref } = element;
4066
4182
  let defineObj = {};
4067
- const hasGlobalDefine = context && (0, import_utils24.isObject)(context.define);
4068
- if ((0, import_utils24.isObject)(define))
4183
+ const hasGlobalDefine = context && (0, import_utils31.isObject)(context.define);
4184
+ if ((0, import_utils31.isObject)(define))
4069
4185
  defineObj = { ...define };
4070
4186
  if (hasGlobalDefine)
4071
4187
  defineObj = { ...defineObj, ...context.define };
4072
4188
  for (const param in defineObj) {
4073
4189
  let elementProp = element[param];
4074
- if ((0, import_utils24.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils25.isVariant)(param)) {
4190
+ if ((0, import_utils31.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils210.isVariant)(param)) {
4075
4191
  ref.__exec[param] = elementProp;
4076
- const execParam2 = elementProp = (0, import_utils24.exec)(elementProp, element);
4192
+ const execParam2 = elementProp = (0, import_utils31.exec)(elementProp, element);
4077
4193
  if (execParam2) {
4078
4194
  elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
4079
4195
  ref.__defineCache[param] = elementProp;
@@ -4089,15 +4205,15 @@ var require_iterate = __commonJS({
4089
4205
  const { context, define, __ref: ref } = element;
4090
4206
  const changes = {};
4091
4207
  let obj = {};
4092
- if ((0, import_utils24.isObject)(define))
4208
+ if ((0, import_utils31.isObject)(define))
4093
4209
  obj = { ...define };
4094
- if ((0, import_utils24.isObject)(context && context.define))
4210
+ if ((0, import_utils31.isObject)(context && context.define))
4095
4211
  obj = { ...obj, ...context.define };
4096
4212
  for (const param in obj) {
4097
4213
  const execParam = ref.__exec[param];
4098
4214
  if (execParam)
4099
4215
  ref.__defineCache[param] = execParam(element, element.state, element.context);
4100
- const cached = (0, import_utils24.exec)(ref.__defineCache[param], element);
4216
+ const cached = (0, import_utils31.exec)(ref.__defineCache[param], element);
4101
4217
  const newExecParam = obj[param](cached, element, element.state, element.context);
4102
4218
  if (newExecParam)
4103
4219
  element[param] = newExecParam;
@@ -4133,7 +4249,7 @@ var require_applyParam = __commonJS({
4133
4249
  applyParam: () => applyParam
4134
4250
  });
4135
4251
  module2.exports = __toCommonJS2(applyParam_exports);
4136
- var import_utils24 = require_cjs();
4252
+ var import_utils31 = require_cjs();
4137
4253
  var import_mixins = require_mixins();
4138
4254
  var applyParam = (param, element, options) => {
4139
4255
  const { node: node2, context, __ref: ref } = element;
@@ -4146,7 +4262,7 @@ var require_applyParam = __commonJS({
4146
4262
  if (!ref.__if)
4147
4263
  return;
4148
4264
  if (isGlobalTransformer && !hasContextDefine) {
4149
- if ((0, import_utils24.isFunction)(isGlobalTransformer)) {
4265
+ if ((0, import_utils31.isFunction)(isGlobalTransformer)) {
4150
4266
  isGlobalTransformer(prop, element, node2, options);
4151
4267
  return;
4152
4268
  }
@@ -4193,7 +4309,7 @@ var require_node2 = __commonJS({
4193
4309
  default: () => node_default
4194
4310
  });
4195
4311
  module2.exports = __toCommonJS2(node_exports);
4196
- var import_utils24 = require_cjs();
4312
+ var import_utils31 = require_cjs();
4197
4313
  var import_event = require_cjs3();
4198
4314
  var import_render = require_cjs4();
4199
4315
  var import_methods = require_methods2();
@@ -4201,7 +4317,7 @@ var require_node2 = __commonJS({
4201
4317
  var import_iterate = require_iterate();
4202
4318
  var import_mixins = require_mixins();
4203
4319
  var import_applyParam = require_applyParam();
4204
- var import_utils25 = require_utils();
4320
+ var import_utils210 = require_utils();
4205
4321
  var ENV2 = "development";
4206
4322
  var createNode = (element, options) => {
4207
4323
  let { node: node2, tag, __ref: ref } = element;
@@ -4218,28 +4334,28 @@ var require_node2 = __commonJS({
4218
4334
  }
4219
4335
  if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
4220
4336
  node2.ref = element;
4221
- if ((0, import_utils24.isFunction)(node2.setAttribute))
4337
+ if ((0, import_utils31.isFunction)(node2.setAttribute))
4222
4338
  node2.setAttribute("key", element.key);
4223
4339
  }
4224
- if (element.tag !== "string" || element.tag !== "fragment") {
4225
- (0, import_iterate.throughInitialDefine)(element);
4226
- (0, import_iterate.throughInitialExec)(element);
4227
- if (isNewNode && (0, import_utils24.isObject)(element.on))
4340
+ (0, import_iterate.throughInitialDefine)(element);
4341
+ (0, import_iterate.throughInitialExec)(element);
4342
+ if (element.tag !== "string" && element.tag !== "fragment") {
4343
+ if (isNewNode && (0, import_utils31.isObject)(element.on))
4228
4344
  (0, import_event.applyEventsOnNode)(element);
4229
- for (const param in element) {
4230
- const prop = element[param];
4231
- if ((0, import_utils24.isUndefined)(prop) || (0, import_methods.isMethod)(param) || (0, import_utils25.isVariant)(param) || (0, import_utils24.isObject)(import_mixins.registry[param]))
4232
- continue;
4233
- const isElement = (0, import_applyParam.applyParam)(param, element, options);
4234
- if (isElement) {
4235
- const { hasDefine, hasContextDefine } = isElement;
4236
- if (element[param] && !hasDefine && !hasContextDefine) {
4237
- const createAsync = () => (0, import_create.default)((0, import_utils24.exec)(prop, element), element, param, options);
4238
- if (element.props && element.props.lazyLoad || options.lazyLoad) {
4239
- window.requestAnimationFrame(() => createAsync());
4240
- } else
4241
- createAsync();
4242
- }
4345
+ }
4346
+ for (const param in element) {
4347
+ const value2 = element[param];
4348
+ if ((0, import_utils31.isUndefined)(value2) || (0, import_methods.isMethod)(param) || (0, import_utils210.isVariant)(param) || (0, import_utils31.isObject)(import_mixins.registry[param]))
4349
+ continue;
4350
+ const isElement = (0, import_applyParam.applyParam)(param, element, options);
4351
+ if (isElement) {
4352
+ const { hasDefine, hasContextDefine } = isElement;
4353
+ if (element[param] && !hasDefine && !hasContextDefine) {
4354
+ const createAsync = () => (0, import_create.default)((0, import_utils31.exec)(value2, element), element, param, options);
4355
+ if (element.props && element.props.lazyLoad || options.lazyLoad) {
4356
+ window.requestAnimationFrame(() => createAsync());
4357
+ } else
4358
+ createAsync();
4243
4359
  }
4244
4360
  }
4245
4361
  }
@@ -4275,7 +4391,7 @@ var require_methods3 = __commonJS({
4275
4391
  DEFAULT_METHODS: () => DEFAULT_METHODS
4276
4392
  });
4277
4393
  module2.exports = __toCommonJS2(methods_exports);
4278
- var import_utils24 = require_cjs();
4394
+ var import_utils31 = require_cjs();
4279
4395
  var DEFAULT_METHODS = {
4280
4396
  key: {},
4281
4397
  tag: {},
@@ -4296,7 +4412,7 @@ var require_methods3 = __commonJS({
4296
4412
  text: (element, state) => {
4297
4413
  element.ref.text = {
4298
4414
  tag: "text",
4299
- text: (0, import_utils24.exec)(element.text, element, state)
4415
+ text: (0, import_utils31.exec)(element.text, element, state)
4300
4416
  };
4301
4417
  },
4302
4418
  innerHTML: {},
@@ -4533,19 +4649,19 @@ var require_update2 = __commonJS({
4533
4649
  default: () => update_default
4534
4650
  });
4535
4651
  module2.exports = __toCommonJS2(update_exports);
4536
- var import_utils24 = require_cjs();
4652
+ var import_utils31 = require_cjs();
4537
4653
  var import_event = require_cjs3();
4538
4654
  var import_methods = require_methods2();
4539
4655
  var import_props = require_props();
4540
- var import_state2 = require_cjs5();
4541
- var import_utils25 = require_utils();
4656
+ var import_state3 = require_cjs5();
4657
+ var import_utils210 = require_utils();
4542
4658
  var import_create = __toESM2(require_create4(), 1);
4543
4659
  var import_iterate = require_iterate();
4544
4660
  var import_mixins = require_mixins();
4545
4661
  var import_applyParam = require_applyParam();
4546
4662
  var import_options3 = __toESM2(require_options(), 1);
4547
4663
  var snapshot = {
4548
- snapshotId: import_utils24.createSnapshotId
4664
+ snapshotId: import_utils31.createSnapshotId
4549
4665
  };
4550
4666
  var UPDATE_DEFAULT_OPTIONS = {
4551
4667
  stackChanges: false,
@@ -4553,7 +4669,7 @@ var require_update2 = __commonJS({
4553
4669
  preventRecursive: false,
4554
4670
  currentSnapshot: false,
4555
4671
  calleeElement: false,
4556
- excludes: import_utils25.METHODS_EXL
4672
+ excludes: import_utils210.METHODS_EXL
4557
4673
  };
4558
4674
  var update = function(params = {}, options = UPDATE_DEFAULT_OPTIONS) {
4559
4675
  const element = this;
@@ -4562,14 +4678,14 @@ var require_update2 = __commonJS({
4562
4678
  if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
4563
4679
  return;
4564
4680
  if (!excludes)
4565
- (0, import_utils24.merge)(options, UPDATE_DEFAULT_OPTIONS);
4681
+ (0, import_utils31.merge)(options, UPDATE_DEFAULT_OPTIONS);
4566
4682
  let ref = element.__ref;
4567
4683
  if (!ref)
4568
4684
  ref = element.__ref = {};
4569
4685
  const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
4570
4686
  if (snapshotHasUpdated)
4571
4687
  return;
4572
- if ((0, import_utils24.isString)(params) || (0, import_utils24.isNumber)(params)) {
4688
+ if ((0, import_utils31.isString)(params) || (0, import_utils31.isNumber)(params)) {
4573
4689
  params = { text: params };
4574
4690
  }
4575
4691
  const ifFails = checkIfOnUpdate(element, parent, options);
@@ -4580,24 +4696,24 @@ var require_update2 = __commonJS({
4580
4696
  return;
4581
4697
  if (ref.__if && !options.preventPropsUpdate) {
4582
4698
  const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
4583
- const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils24.isFunction)(v));
4699
+ const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils31.isFunction)(v));
4584
4700
  const props4 = params.props || hasParentProps || hasFunctionInProps.length;
4585
4701
  if (props4)
4586
4702
  (0, import_props.updateProps)(props4, element, parent);
4587
4703
  }
4588
- if (!options.isForced) {
4589
- (0, import_event.triggerEventOn)("beforeClassAssign", element, options);
4590
- }
4591
4704
  if (!options.preventInitUpdateListener) {
4592
4705
  const initUpdateReturns = (0, import_event.triggerEventOnUpdate)("initUpdate", params, element, options);
4593
4706
  if (initUpdateReturns === false)
4594
4707
  return element;
4595
4708
  }
4596
- const overwriteChanges = (0, import_utils24.overwriteDeep)(element, params, import_utils25.METHODS_EXL);
4709
+ const overwriteChanges = (0, import_utils31.overwriteDeep)(element, params, import_utils210.METHODS_EXL);
4597
4710
  const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
4598
4711
  const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
4712
+ if (!options.isForced) {
4713
+ (0, import_event.triggerEventOn)("beforeClassAssign", element, options);
4714
+ }
4599
4715
  if (options.stackChanges && element.__stackChanges) {
4600
- const stackChanges = (0, import_utils24.merge)(definedChanges, (0, import_utils24.merge)(execChanges, overwriteChanges));
4716
+ const stackChanges = (0, import_utils31.merge)(definedChanges, (0, import_utils31.merge)(execChanges, overwriteChanges));
4601
4717
  element.__stackChanges.push(stackChanges);
4602
4718
  }
4603
4719
  if (!ref.__if)
@@ -4608,27 +4724,25 @@ var require_update2 = __commonJS({
4608
4724
  for (const param in element) {
4609
4725
  const prop = element[param];
4610
4726
  const hasOnlyUpdateFalsy = options.onlyUpdate && (options.onlyUpdate !== param || !element.lookup(options.onlyUpdate));
4611
- const isInPreventUpdate = (0, import_utils24.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
4612
- const isInPreventDefineUpdate = (0, import_utils24.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
4613
- if ((0, import_utils24.isUndefined)(prop) || hasOnlyUpdateFalsy || isInPreventUpdate || isInPreventDefineUpdate || options.preventDefineUpdate === true || options.preventDefineUpdate === param || options.preventContentUpdate && param === "content" || (options.preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils24.isObject)(import_mixins.registry[param]) || (0, import_utils25.isVariant)(param))
4727
+ const isInPreventUpdate = (0, import_utils31.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
4728
+ const isInPreventDefineUpdate = (0, import_utils31.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
4729
+ if ((0, import_utils31.isUndefined)(prop) || hasOnlyUpdateFalsy || isInPreventUpdate || isInPreventDefineUpdate || options.preventDefineUpdate === true || options.preventDefineUpdate === param || options.preventContentUpdate && param === "content" || (options.preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils31.isObject)(import_mixins.registry[param]) || (0, import_utils210.isVariant)(param))
4614
4730
  continue;
4615
4731
  if (options.preventStateUpdate === "once")
4616
4732
  options.preventStateUpdate = false;
4617
4733
  const isElement = (0, import_applyParam.applyParam)(param, element, options);
4618
4734
  if (isElement) {
4619
4735
  const { hasDefine, hasContextDefine } = isElement;
4620
- const canUpdate = (0, import_utils24.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
4736
+ const canUpdate = (0, import_utils31.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
4621
4737
  if (!canUpdate)
4622
4738
  continue;
4739
+ const lazyLoad = element.props.lazyLoad || options.lazyLoad;
4623
4740
  const childUpdateCall = () => update.call(prop, params[prop], {
4624
4741
  ...options,
4625
4742
  currentSnapshot: snapshotOnCallee,
4626
4743
  calleeElement
4627
4744
  });
4628
- if (element.props && element.props.lazyLoad || options.lazyLoad) {
4629
- import_utils24.window.requestAnimationFrame(() => childUpdateCall());
4630
- } else
4631
- childUpdateCall();
4745
+ lazyLoad ? import_utils31.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
4632
4746
  }
4633
4747
  }
4634
4748
  if (!options.preventUpdateListener)
@@ -4650,7 +4764,7 @@ var require_update2 = __commonJS({
4650
4764
  return [snapshotOnCallee, calleeElement];
4651
4765
  };
4652
4766
  var checkIfOnUpdate = (element, parent, options) => {
4653
- if (!(0, import_utils24.isFunction)(element.if) || !element.state || !parent)
4767
+ if (!(0, import_utils31.isFunction)(element.if) || !element.state || !parent)
4654
4768
  return;
4655
4769
  const ref = element.__ref;
4656
4770
  const ifPassed = element.if(element, element.state, element.context, options);
@@ -4667,7 +4781,7 @@ var require_update2 = __commonJS({
4667
4781
  element.state = ref.__state;
4668
4782
  }
4669
4783
  const created = (0, import_create.default)(element, parent, element.key, import_options3.default.create);
4670
- if (options.preventUpdate !== true && element.on && (0, import_utils24.isFunction)(element.on.update)) {
4784
+ if (options.preventUpdate !== true && element.on && (0, import_utils31.isFunction)(element.on.update)) {
4671
4785
  (0, import_event.applyEvent)(element.on.update, created, created.state);
4672
4786
  }
4673
4787
  return created;
@@ -4681,24 +4795,20 @@ var require_update2 = __commonJS({
4681
4795
  const { __ref: ref } = element;
4682
4796
  const stateKey = ref.__state;
4683
4797
  const { parent, state } = element;
4684
- if (options.preventpdateTriggerStateUpdate)
4798
+ const { preventUpdateTriggerStateUpdate, isHoisted, execStateFunction } = options;
4799
+ if (preventUpdateTriggerStateUpdate)
4685
4800
  return;
4686
4801
  if (!stateKey && !ref.__hasRootState) {
4687
4802
  element.state = parent && parent.state || {};
4688
4803
  return;
4689
4804
  }
4690
- const { isHoisted, execStateFunction, stateFunctionOverwrite } = options;
4691
- const shouldForceStateUpdate = (0, import_utils24.isFunction)(stateKey) && (!isHoisted && execStateFunction && stateFunctionOverwrite);
4692
- if (shouldForceStateUpdate) {
4693
- const execState = (0, import_utils24.exec)(stateKey, element);
4694
- state.set(execState, {
4695
- ...options,
4696
- preventUpdate: true
4697
- });
4805
+ const shouldForceFunctionState = (0, import_utils31.isFunction)(stateKey) && !isHoisted && execStateFunction;
4806
+ if (shouldForceFunctionState) {
4807
+ const execState = (0, import_utils31.exec)(stateKey, element);
4808
+ state.set(execState, { ...options, preventUpdate: true });
4698
4809
  return;
4699
4810
  }
4700
- const parentState = parent && parent.state || {};
4701
- const keyInParentState = parentState[stateKey];
4811
+ const keyInParentState = (0, import_state3.findInheritedState)(element, element.parent);
4702
4812
  if (!keyInParentState || options.preventInheritedStateUpdate)
4703
4813
  return;
4704
4814
  if (!options.preventInitStateUpdateListener) {
@@ -4713,7 +4823,7 @@ var require_update2 = __commonJS({
4713
4823
  };
4714
4824
  var createStateUpdate = (element, parent, options) => {
4715
4825
  const __stateChildren = element.state.__children;
4716
- const newState = (0, import_state2.createState)(element, parent);
4826
+ const newState = (0, import_state3.createState)(element, parent);
4717
4827
  element.state = newState;
4718
4828
  for (const child in __stateChildren) {
4719
4829
  if (newState[child])
@@ -4762,7 +4872,7 @@ var require_set2 = __commonJS({
4762
4872
  addMethods: () => addMethods
4763
4873
  });
4764
4874
  module2.exports = __toCommonJS2(set_exports);
4765
- var import_utils24 = require_cjs();
4875
+ var import_utils31 = require_cjs();
4766
4876
  var import_set = __toESM2(require_set(), 1);
4767
4877
  var import_update = __toESM2(require_update2(), 1);
4768
4878
  var import__2 = require_methods2();
@@ -4783,7 +4893,7 @@ var require_set2 = __commonJS({
4783
4893
  nextElement: import__2.nextElement.bind(element),
4784
4894
  previousElement: import__2.previousElement.bind(element)
4785
4895
  };
4786
- if ((0, import_utils24.isDevelopment)())
4896
+ if ((0, import_utils31.isDevelopment)())
4787
4897
  proto.log = import__2.log.bind(element);
4788
4898
  Object.setPrototypeOf(element, proto);
4789
4899
  };
@@ -4831,7 +4941,7 @@ var require_create4 = __commonJS({
4831
4941
  var import_registry = require_cjs6();
4832
4942
  var import_event = require_cjs3();
4833
4943
  var import_render = require_cjs4();
4834
- var import_state2 = require_cjs5();
4944
+ var import_state3 = require_cjs5();
4835
4945
  var import_methods = require_methods2();
4836
4946
  var import_props = require_props();
4837
4947
  var import_extend = require_extend();
@@ -4839,7 +4949,7 @@ var require_create4 = __commonJS({
4839
4949
  var import_set = require_set2();
4840
4950
  var import_classList = require_classList();
4841
4951
  var import_iterate = require_iterate();
4842
- var import_utils24 = require_cjs();
4952
+ var import_utils31 = require_cjs();
4843
4953
  var import_options3 = __toESM2(require_options(), 1);
4844
4954
  var import_component = require_component();
4845
4955
  var ENV2 = "development";
@@ -4852,7 +4962,7 @@ var require_create4 = __commonJS({
4852
4962
  parent = redefineParent(element, parent, key);
4853
4963
  key = createKey(element, parent, key);
4854
4964
  const ref = addRef(element, parent, key);
4855
- ref.__initialProps = (0, import_utils24.deepClone)(element.props, []);
4965
+ ref.__initialProps = (0, import_utils31.deepClone)(element.props, []);
4856
4966
  applyContext(element, parent, options);
4857
4967
  (0, import_component.applyComponentFromContext)(element, parent, options);
4858
4968
  if (!ref.__skipCreate) {
@@ -4865,12 +4975,18 @@ var require_create4 = __commonJS({
4865
4975
  replaceOptions(element, parent, options);
4866
4976
  addCaching(element, parent);
4867
4977
  (0, import_set.addMethods)(element, parent);
4868
- (0, import_state2.createState)(element, parent);
4978
+ createScope(element, parent);
4979
+ (0, import_state3.createState)(element, parent);
4980
+ if (element.scope === "state")
4981
+ element.scope = element.state;
4982
+ createIfConditionFlag(element, parent);
4983
+ (0, import_props.createProps)(element, parent);
4984
+ if (element.scope === "props" || element.scope === true)
4985
+ element.scope = element.props;
4869
4986
  createIfConditionFlag(element, parent);
4870
4987
  if (element.node && ref.__if) {
4871
4988
  return (0, import_render.assignNode)(element, parent, key);
4872
4989
  }
4873
- (0, import_props.createProps)(element, parent);
4874
4990
  (0, import_component.applyVariant)(element, parent);
4875
4991
  const onInit = (0, import_event.triggerEventOn)("init", element, options);
4876
4992
  if (onInit === false)
@@ -4889,7 +5005,7 @@ var require_create4 = __commonJS({
4889
5005
  }
4890
5006
  return {};
4891
5007
  }
4892
- if ((0, import_utils24.isString)(key) && key.slice(0, 2 === "__")) {
5008
+ if ((0, import_utils31.isString)(key) && key.slice(0, 2 === "__")) {
4893
5009
  if (ENV2 === "test" || ENV2 === "development") {
4894
5010
  console.warn(key, "seems like to be in __ref");
4895
5011
  }
@@ -4916,7 +5032,7 @@ var require_create4 = __commonJS({
4916
5032
  var redefineParent = (element, parent, key, options) => {
4917
5033
  if (!parent)
4918
5034
  return import_tree.ROOT;
4919
- if ((0, import_utils24.isNode)(parent)) {
5035
+ if ((0, import_utils31.isNode)(parent)) {
4920
5036
  const parentNodeWrapper = { key: ":root", node: parent };
4921
5037
  import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
4922
5038
  return parentNodeWrapper;
@@ -4930,7 +5046,7 @@ var require_create4 = __commonJS({
4930
5046
  }
4931
5047
  };
4932
5048
  var createKey = (element, parent, key) => {
4933
- return ((0, import_utils24.exec)(key, element) || key || element.key || (0, import_utils24.generateKey)()).toString();
5049
+ return ((0, import_utils31.exec)(key, element) || key || element.key || (0, import_utils31.generateKey)()).toString();
4934
5050
  };
4935
5051
  var addRef = (element, parent) => {
4936
5052
  if (element.__ref)
@@ -4960,7 +5076,7 @@ var require_create4 = __commonJS({
4960
5076
  (0, import_event.triggerEventOn)("render", element, options);
4961
5077
  };
4962
5078
  var checkIfPrimitive = (element) => {
4963
- return (0, import_utils24.is)(element)("string", "number");
5079
+ return (0, import_utils31.is)(element)("string", "number");
4964
5080
  };
4965
5081
  var applyValueAsText = (element, parent, key) => {
4966
5082
  const extendTag = element.extend && element.extend.tag;
@@ -4977,9 +5093,14 @@ var require_create4 = __commonJS({
4977
5093
  if (!element.context)
4978
5094
  element.context = parent.context || options.context || import_tree.ROOT.context;
4979
5095
  };
5096
+ var createScope = (element, parent) => {
5097
+ const { __ref: ref } = element;
5098
+ if (!element.scope)
5099
+ element.scope = parent.scope || ref.__root.scope || {};
5100
+ };
4980
5101
  var createIfConditionFlag = (element, parent) => {
4981
5102
  const { __ref: ref } = element;
4982
- if ((0, import_utils24.isFunction)(element.if)) {
5103
+ if ((0, import_utils31.isFunction)(element.if)) {
4983
5104
  const ifPassed = element.if(element, element.state);
4984
5105
  if (!ifPassed) {
4985
5106
  const ifFragment = (0, import_render.cacheNode)({ tag: "fragment" });
@@ -5043,8 +5164,8 @@ var require_create4 = __commonJS({
5043
5164
  if (!ref.__children)
5044
5165
  ref.__children = [];
5045
5166
  (0, import_set.addMethods)(element, parent);
5046
- (0, import_state2.createState)(element, parent);
5047
- if ((0, import_utils24.isFunction)(element.if)) {
5167
+ (0, import_state3.createState)(element, parent);
5168
+ if ((0, import_utils31.isFunction)(element.if)) {
5048
5169
  const ifPassed = element.if(element, element.state);
5049
5170
  if (!ifPassed) {
5050
5171
  delete ref.__if;
@@ -5064,7 +5185,7 @@ var require_create4 = __commonJS({
5064
5185
  (0, import_iterate.throughInitialDefine)(element);
5065
5186
  (0, import_iterate.throughInitialExec)(element);
5066
5187
  for (const k in element) {
5067
- if ((0, import_utils24.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils24.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
5188
+ if ((0, import_utils31.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils31.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
5068
5189
  continue;
5069
5190
  const hasDefine = element.define && element.define[k];
5070
5191
  const contextHasDefine = element.context && element.context.define && element.context.define[k];
@@ -5072,7 +5193,7 @@ var require_create4 = __commonJS({
5072
5193
  if (!ref.__skipCreate && import_mixins.registry[k] && !optionsHasDefine) {
5073
5194
  continue;
5074
5195
  } else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
5075
- create2((0, import_utils24.exec)(element[k], element), element, k, options);
5196
+ create2((0, import_utils31.exec)(element[k], element), element, k, options);
5076
5197
  }
5077
5198
  }
5078
5199
  }
@@ -5470,17 +5591,18 @@ var require_cjs9 = __commonJS({
5470
5591
  __export22(types_exports, {
5471
5592
  TYPES: () => TYPES,
5472
5593
  is: () => is,
5473
- isArray: () => isArray7,
5594
+ isArray: () => isArray72,
5474
5595
  isBoolean: () => isBoolean,
5596
+ isDate: () => isDate,
5475
5597
  isDefined: () => isDefined2,
5476
5598
  isFunction: () => isFunction22,
5477
- isNot: () => isNot2,
5599
+ isNot: () => isNot3,
5478
5600
  isNull: () => isNull,
5479
5601
  isNumber: () => isNumber2,
5480
5602
  isObject: () => isObject82,
5481
- isObjectLike: () => isObjectLike3,
5482
- isString: () => isString10,
5483
- isUndefined: () => isUndefined4
5603
+ isObjectLike: () => isObjectLike32,
5604
+ isString: () => isString102,
5605
+ isUndefined: () => isUndefined5
5484
5606
  });
5485
5607
  module22.exports = __toCommonJS22(types_exports);
5486
5608
  var import_node = require_node3();
@@ -5489,32 +5611,34 @@ var require_cjs9 = __commonJS({
5489
5611
  return false;
5490
5612
  return typeof arg === "object" && arg.constructor === Object;
5491
5613
  };
5492
- var isString10 = (arg) => typeof arg === "string";
5614
+ var isString102 = (arg) => typeof arg === "string";
5493
5615
  var isNumber2 = (arg) => typeof arg === "number";
5494
5616
  var isFunction22 = (arg) => typeof arg === "function";
5495
5617
  var isBoolean = (arg) => arg === true || arg === false;
5496
5618
  var isNull = (arg) => arg === null;
5497
- var isArray7 = (arg) => Array.isArray(arg);
5498
- var isObjectLike3 = (arg) => {
5619
+ var isArray72 = (arg) => Array.isArray(arg);
5620
+ var isDate = (d) => d instanceof Date;
5621
+ var isObjectLike32 = (arg) => {
5499
5622
  if (arg === null)
5500
5623
  return false;
5501
5624
  return typeof arg === "object";
5502
5625
  };
5503
5626
  var isDefined2 = (arg) => {
5504
- return isObject82(arg) || isObjectLike3(arg) || isString10(arg) || isNumber2(arg) || isFunction22(arg) || isArray7(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
5627
+ return isObject82(arg) || isObjectLike32(arg) || isString102(arg) || isNumber2(arg) || isFunction22(arg) || isArray72(arg) || isObjectLike32(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
5505
5628
  };
5506
- var isUndefined4 = (arg) => {
5629
+ var isUndefined5 = (arg) => {
5507
5630
  return arg === void 0;
5508
5631
  };
5509
5632
  var TYPES = {
5510
5633
  boolean: isBoolean,
5511
- array: isArray7,
5634
+ array: isArray72,
5512
5635
  object: isObject82,
5513
- string: isString10,
5636
+ string: isString102,
5637
+ date: isDate,
5514
5638
  number: isNumber2,
5515
5639
  null: isNull,
5516
5640
  function: isFunction22,
5517
- objectLike: isObjectLike3,
5641
+ objectLike: isObjectLike32,
5518
5642
  node: import_node.isNode,
5519
5643
  htmlElement: import_node.isHtmlElement,
5520
5644
  defined: isDefined2
@@ -5524,7 +5648,7 @@ var require_cjs9 = __commonJS({
5524
5648
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
5525
5649
  };
5526
5650
  };
5527
- var isNot2 = (arg) => {
5651
+ var isNot3 = (arg) => {
5528
5652
  return (...args) => {
5529
5653
  return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
5530
5654
  };
@@ -5561,6 +5685,8 @@ var require_cjs9 = __commonJS({
5561
5685
  mergeAndCloneIfArray: () => mergeAndCloneIfArray,
5562
5686
  mergeArray: () => mergeArray,
5563
5687
  removeFromArray: () => removeFromArray,
5688
+ removeValueFromArray: () => removeValueFromArray,
5689
+ removeValueFromArrayAll: () => removeValueFromArrayAll,
5564
5690
  swapItemsInArray: () => swapItemsInArray
5565
5691
  });
5566
5692
  module22.exports = __toCommonJS22(array_exports);
@@ -5626,6 +5752,18 @@ var require_cjs9 = __commonJS({
5626
5752
  }, nestedObject);
5627
5753
  return nestedObject;
5628
5754
  };
5755
+ var removeValueFromArray = (arr, value2) => {
5756
+ const index = arr.indexOf(value2);
5757
+ if (index > -1) {
5758
+ const newArray = [...arr];
5759
+ newArray.splice(index, 1);
5760
+ return newArray;
5761
+ }
5762
+ return arr.slice();
5763
+ };
5764
+ var removeValueFromArrayAll = (arr, value2) => {
5765
+ return arr.filter((item) => item !== value2);
5766
+ };
5629
5767
  }
5630
5768
  });
5631
5769
  var require_string2 = __commonJS2({
@@ -5713,15 +5851,20 @@ var require_cjs9 = __commonJS({
5713
5851
  deepCloneExclude: () => deepCloneExclude,
5714
5852
  deepContains: () => deepContains,
5715
5853
  deepDestringify: () => deepDestringify,
5854
+ deepDiff: () => deepDiff3,
5716
5855
  deepMerge: () => deepMerge32,
5717
5856
  deepStringify: () => deepStringify,
5718
5857
  detachFunctionsFromObject: () => detachFunctionsFromObject,
5719
5858
  diff: () => diff,
5720
5859
  diffArrays: () => diffArrays,
5721
5860
  diffObjects: () => diffObjects,
5722
- exec: () => exec4,
5861
+ exec: () => exec5,
5723
5862
  flattenRecursive: () => flattenRecursive,
5863
+ hasOwnProperty: () => hasOwnProperty,
5864
+ isEmpty: () => isEmpty,
5865
+ isEmptyObject: () => isEmptyObject,
5724
5866
  isEqualDeep: () => isEqualDeep2,
5867
+ makeObjectWithoutPrototype: () => makeObjectWithoutPrototype,
5725
5868
  map: () => map2,
5726
5869
  merge: () => merge5,
5727
5870
  mergeArrayExclude: () => mergeArrayExclude,
@@ -5729,7 +5872,7 @@ var require_cjs9 = __commonJS({
5729
5872
  objectToString: () => objectToString,
5730
5873
  overwrite: () => overwrite,
5731
5874
  overwriteDeep: () => overwriteDeep2,
5732
- overwriteShallow: () => overwriteShallow2,
5875
+ overwriteShallow: () => overwriteShallow3,
5733
5876
  removeFromObject: () => removeFromObject,
5734
5877
  stringToObject: () => stringToObject
5735
5878
  });
@@ -5738,7 +5881,7 @@ var require_cjs9 = __commonJS({
5738
5881
  var import_types = require_types2();
5739
5882
  var import_array = require_array2();
5740
5883
  var import_string = require_string2();
5741
- var exec4 = (param, element, state, context) => {
5884
+ var exec5 = (param, element, state, context) => {
5742
5885
  if ((0, import_types.isFunction)(param)) {
5743
5886
  return param(
5744
5887
  element,
@@ -5750,13 +5893,13 @@ var require_cjs9 = __commonJS({
5750
5893
  };
5751
5894
  var map2 = (obj, extention, element) => {
5752
5895
  for (const e in extention) {
5753
- obj[e] = exec4(extention[e], element);
5896
+ obj[e] = exec5(extention[e], element);
5754
5897
  }
5755
5898
  };
5756
5899
  var merge5 = (element, obj, excludeFrom = []) => {
5757
5900
  for (const e in obj) {
5758
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, e);
5759
- if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
5901
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, e);
5902
+ if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
5760
5903
  continue;
5761
5904
  const elementProp = element[e];
5762
5905
  const objProp = obj[e];
@@ -5768,8 +5911,8 @@ var require_cjs9 = __commonJS({
5768
5911
  };
5769
5912
  var deepMerge32 = (element, extend, excludeFrom = []) => {
5770
5913
  for (const e in extend) {
5771
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
5772
- if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
5914
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(extend, e);
5915
+ if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
5773
5916
  continue;
5774
5917
  const elementProp = element[e];
5775
5918
  const extendProp = extend[e];
@@ -5784,8 +5927,8 @@ var require_cjs9 = __commonJS({
5784
5927
  var clone = (obj, excludeFrom = []) => {
5785
5928
  const o = {};
5786
5929
  for (const prop in obj) {
5787
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);
5788
- if (!hasOwnProperty || excludeFrom.includes(prop) || prop.startsWith("__"))
5930
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, prop);
5931
+ if (!hasOwnProperty2 || excludeFrom.includes(prop) || prop.startsWith("__"))
5789
5932
  continue;
5790
5933
  o[prop] = obj[prop];
5791
5934
  }
@@ -5797,8 +5940,8 @@ var require_cjs9 = __commonJS({
5797
5940
  }
5798
5941
  const o = {};
5799
5942
  for (const k in obj) {
5800
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, k);
5801
- if (!hasOwnProperty || excludeFrom.includes(k) || k.startsWith("__"))
5943
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, k);
5944
+ if (!hasOwnProperty2 || excludeFrom.includes(k) || k.startsWith("__"))
5802
5945
  continue;
5803
5946
  let v = obj[k];
5804
5947
  if (k === "extend" && (0, import_types.isArray)(v)) {
@@ -5816,7 +5959,7 @@ var require_cjs9 = __commonJS({
5816
5959
  var mergeArrayExclude = (arr, excl = []) => {
5817
5960
  return arr.reduce((acc, curr) => deepMerge32(acc, deepCloneExclude(curr, excl)), {});
5818
5961
  };
5819
- var deepClone22 = (obj, excludeFrom = []) => {
5962
+ var deepClone22 = (obj, excludeFrom = [], cleanUndefined = false) => {
5820
5963
  const o = (0, import_types.isArray)(obj) ? [] : {};
5821
5964
  for (const prop in obj) {
5822
5965
  if (prop === "__proto__")
@@ -5824,11 +5967,13 @@ var require_cjs9 = __commonJS({
5824
5967
  if (excludeFrom.includes(prop) || prop.startsWith("__"))
5825
5968
  continue;
5826
5969
  let objProp = obj[prop];
5970
+ if (cleanUndefined && (0, import_types.isUndefined)(objProp))
5971
+ continue;
5827
5972
  if (prop === "extend" && (0, import_types.isArray)(objProp)) {
5828
5973
  objProp = (0, import_array.mergeArray)(objProp);
5829
5974
  }
5830
5975
  if ((0, import_types.isObjectLike)(objProp)) {
5831
- o[prop] = deepClone22(objProp, excludeFrom);
5976
+ o[prop] = deepClone22(objProp, excludeFrom, cleanUndefined);
5832
5977
  } else
5833
5978
  o[prop] = objProp;
5834
5979
  }
@@ -5882,7 +6027,7 @@ var require_cjs9 = __commonJS({
5882
6027
  }
5883
6028
  }
5884
6029
  str += `${spaces} ]`;
5885
- } else if ((0, import_types.isObject)(value2)) {
6030
+ } else if ((0, import_types.isObjectLike)(value2)) {
5886
6031
  str += objectToString(value2, indent + 1);
5887
6032
  } else if ((0, import_types.isString)(value2)) {
5888
6033
  str += (0, import_string.stringIncludesAny)(value2, ["\n", "'"]) ? `\`${value2}\`` : `'${value2}'`;
@@ -5922,8 +6067,8 @@ var require_cjs9 = __commonJS({
5922
6067
  };
5923
6068
  var deepDestringify = (obj, destringified = {}) => {
5924
6069
  for (const prop in obj) {
5925
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);
5926
- if (!hasOwnProperty)
6070
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, prop);
6071
+ if (!hasOwnProperty2)
5927
6072
  continue;
5928
6073
  const objProp = obj[prop];
5929
6074
  if ((0, import_types.isString)(objProp)) {
@@ -6016,6 +6161,39 @@ var require_cjs9 = __commonJS({
6016
6161
  }
6017
6162
  return cache2;
6018
6163
  };
6164
+ var hasOwnProperty = (o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args);
6165
+ var isEmpty = (o) => Object.keys(o).length === 0;
6166
+ var isEmptyObject = (o) => (0, import_types.isObject)(o) && isEmpty(o);
6167
+ var makeObjectWithoutPrototype = () => /* @__PURE__ */ Object.create(null);
6168
+ var deepDiff3 = (lhs, rhs) => {
6169
+ if (lhs === rhs)
6170
+ return {};
6171
+ if (!(0, import_types.isObject)(lhs) || !(0, import_types.isObject)(rhs))
6172
+ return rhs;
6173
+ const deletedValues = Object.keys(lhs).reduce((acc, key) => {
6174
+ if (!hasOwnProperty(rhs, key)) {
6175
+ acc[key] = void 0;
6176
+ }
6177
+ return acc;
6178
+ }, makeObjectWithoutPrototype());
6179
+ if ((0, import_types.isDate)(lhs) || (0, import_types.isDate)(rhs)) {
6180
+ if (lhs.valueOf() === rhs.valueOf())
6181
+ return {};
6182
+ return rhs;
6183
+ }
6184
+ return Object.keys(rhs).reduce((acc, key) => {
6185
+ if (!hasOwnProperty(lhs, key)) {
6186
+ acc[key] = rhs[key];
6187
+ return acc;
6188
+ }
6189
+ const difference = diff(lhs[key], rhs[key]);
6190
+ if (isEmptyObject(difference) && !(0, import_types.isDate)(difference) && (isEmptyObject(lhs[key]) || !isEmptyObject(rhs[key]))) {
6191
+ return acc;
6192
+ }
6193
+ acc[key] = difference;
6194
+ return acc;
6195
+ }, deletedValues);
6196
+ };
6019
6197
  var overwrite = (element, params, excludeFrom = []) => {
6020
6198
  const { ref } = element;
6021
6199
  const changes = {};
@@ -6031,7 +6209,7 @@ var require_cjs9 = __commonJS({
6031
6209
  }
6032
6210
  return changes;
6033
6211
  };
6034
- var overwriteShallow2 = (obj, params, excludeFrom = []) => {
6212
+ var overwriteShallow3 = (obj, params, excludeFrom = []) => {
6035
6213
  for (const e in params) {
6036
6214
  if (excludeFrom.includes(e) || e.startsWith("__"))
6037
6215
  continue;
@@ -6111,8 +6289,8 @@ var require_cjs9 = __commonJS({
6111
6289
  }
6112
6290
  } else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
6113
6291
  for (const key in obj1) {
6114
- const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
6115
- if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
6292
+ const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj2, key);
6293
+ if (!hasOwnProperty2 || !deepContains(obj1[key], obj2[key])) {
6116
6294
  return false;
6117
6295
  }
6118
6296
  }
@@ -6504,7 +6682,7 @@ var require_cjs9 = __commonJS({
6504
6682
  BREAKPOINTS: () => BREAKPOINTS,
6505
6683
  CASES: () => CASES,
6506
6684
  COLOR: () => COLOR3,
6507
- CONFIG: () => CONFIG3,
6685
+ CONFIG: () => CONFIG4,
6508
6686
  CSS_VARS: () => CSS_VARS,
6509
6687
  DEVICES: () => DEVICES,
6510
6688
  DOCUMENT: () => DOCUMENT,
@@ -6546,28 +6724,28 @@ var require_cjs9 = __commonJS({
6546
6724
  generateSequence: () => generateSequence,
6547
6725
  generateSprite: () => generateSprite,
6548
6726
  generateSubSequence: () => generateSubSequence,
6549
- getActiveConfig: () => getActiveConfig3,
6550
- getColor: () => getColor2,
6727
+ getActiveConfig: () => getActiveConfig4,
6728
+ getColor: () => getColor3,
6551
6729
  getColorShade: () => getColorShade,
6552
6730
  getDefaultOrFirstKey: () => getDefaultOrFirstKey,
6553
6731
  getFontFace: () => getFontFace,
6554
6732
  getFontFaceEach: () => getFontFaceEach,
6555
6733
  getFontFaceEachString: () => getFontFaceEachString,
6556
6734
  getFontFaceString: () => getFontFaceString2,
6557
- getFontFamily: () => getFontFamily2,
6735
+ getFontFamily: () => getFontFamily3,
6558
6736
  getFontFormat: () => getFontFormat,
6559
- getFontSizeByKey: () => getFontSizeByKey2,
6560
- getMediaColor: () => getMediaColor3,
6561
- getMediaTheme: () => getMediaTheme2,
6737
+ getFontSizeByKey: () => getFontSizeByKey3,
6738
+ getMediaColor: () => getMediaColor5,
6739
+ getMediaTheme: () => getMediaTheme3,
6562
6740
  getRgbTone: () => getRgbTone,
6563
6741
  getSequenceValue: () => getSequenceValue,
6564
6742
  getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
6565
6743
  getShadow: () => getShadow,
6566
- getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
6567
- getSpacingByKey: () => getSpacingByKey3,
6744
+ getSpacingBasedOnRatio: () => getSpacingBasedOnRatio7,
6745
+ getSpacingByKey: () => getSpacingByKey5,
6568
6746
  getTheme: () => getTheme,
6569
- getTimingByKey: () => getTimingByKey2,
6570
- getTimingFunction: () => getTimingFunction3,
6747
+ getTimingByKey: () => getTimingByKey3,
6748
+ getTimingFunction: () => getTimingFunction5,
6571
6749
  hexToRgb: () => hexToRgb,
6572
6750
  hexToRgbArray: () => hexToRgbArray,
6573
6751
  hexToRgba: () => hexToRgba,
@@ -6601,15 +6779,15 @@ var require_cjs9 = __commonJS({
6601
6779
  setTheme: () => setTheme,
6602
6780
  setValue: () => setValue,
6603
6781
  setVariables: () => setVariables,
6604
- splitTransition: () => splitTransition2,
6605
- transformBackgroundImage: () => transformBackgroundImage2,
6606
- transformBorder: () => transformBorder2,
6607
- transformBoxShadow: () => transformBoxShadow2,
6608
- transformDuration: () => transformDuration2,
6609
- transformShadow: () => transformShadow2,
6610
- transformTextStroke: () => transformTextStroke2,
6782
+ splitTransition: () => splitTransition3,
6783
+ transformBackgroundImage: () => transformBackgroundImage3,
6784
+ transformBorder: () => transformBorder3,
6785
+ transformBoxShadow: () => transformBoxShadow3,
6786
+ transformDuration: () => transformDuration3,
6787
+ transformShadow: () => transformShadow3,
6788
+ transformTextStroke: () => transformTextStroke3,
6611
6789
  transformTransition: () => transformTransition,
6612
- transfromGap: () => transfromGap2
6790
+ transfromGap: () => transfromGap3
6613
6791
  });
6614
6792
  module2.exports = __toCommonJS2(src_exports2);
6615
6793
  var utils_exports = {};
@@ -6652,7 +6830,7 @@ var require_cjs9 = __commonJS({
6652
6830
  setVariables: () => setVariables
6653
6831
  });
6654
6832
  var import_globals2 = __toESM2(require_cjs13(), 1);
6655
- var import_utils24 = __toESM2(require_cjs22(), 1);
6833
+ var import_utils31 = __toESM2(require_cjs22(), 1);
6656
6834
  var ENV2 = "development";
6657
6835
  var colorStringToRgbaArray = (color) => {
6658
6836
  if (color === "")
@@ -6780,9 +6958,9 @@ var require_cjs9 = __commonJS({
6780
6958
  return `rgba(${arr})`;
6781
6959
  };
6782
6960
  var getRgbTone = (rgb, tone) => {
6783
- if ((0, import_utils24.isString)(rgb))
6961
+ if ((0, import_utils31.isString)(rgb))
6784
6962
  rgb = rgb.split(", ").map((v) => parseFloat(v));
6785
- if ((0, import_utils24.isNumber)(tone))
6963
+ if ((0, import_utils31.isNumber)(tone))
6786
6964
  tone += "";
6787
6965
  const toHex = rgbArrayToHex(rgb);
6788
6966
  const abs2 = tone.slice(0, 1);
@@ -6847,7 +7025,7 @@ var require_cjs9 = __commonJS({
6847
7025
  };
6848
7026
  var import_utils52 = __toESM2(require_cjs22(), 1);
6849
7027
  var import_utils32 = __toESM2(require_cjs22());
6850
- var import_utils25 = __toESM2(require_cjs22());
7028
+ var import_utils210 = __toESM2(require_cjs22());
6851
7029
  var toCamelCase2 = (str) => {
6852
7030
  return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
6853
7031
  return index === 0 ? word.toLowerCase() : word.toUpperCase();
@@ -7030,17 +7208,17 @@ var require_cjs9 = __commonJS({
7030
7208
  var TEMPLATES = {};
7031
7209
  var RESET = {};
7032
7210
  var CSS_VARS = {};
7033
- var CONFIG3 = {
7211
+ var CONFIG4 = {
7034
7212
  verbose: false,
7035
7213
  useVariable: true,
7036
7214
  useReset: true,
7037
7215
  CSS_VARS,
7038
7216
  ...defaultConfig_exports
7039
7217
  };
7040
- var cachedConfig = (0, import_utils42.deepClone)(CONFIG3);
7218
+ var cachedConfig = (0, import_utils42.deepClone)(CONFIG4);
7041
7219
  var FACTORY = {
7042
7220
  active: "0",
7043
- 0: CONFIG3
7221
+ 0: CONFIG4
7044
7222
  };
7045
7223
  var activateConfig = (def) => {
7046
7224
  if ((0, import_utils42.isDefined)(def)) {
@@ -7048,7 +7226,7 @@ var require_cjs9 = __commonJS({
7048
7226
  }
7049
7227
  return FACTORY[def || FACTORY.active];
7050
7228
  };
7051
- var getActiveConfig3 = (def) => {
7229
+ var getActiveConfig4 = (def) => {
7052
7230
  return FACTORY[def || FACTORY.active];
7053
7231
  };
7054
7232
  var setActiveConfig = (newConfig) => {
@@ -7157,7 +7335,7 @@ var require_cjs9 = __commonJS({
7157
7335
  return sequenceProps;
7158
7336
  };
7159
7337
  var getSequenceValue = (value2 = "A", sequenceProps) => {
7160
- const CONFIG22 = getActiveConfig3();
7338
+ const CONFIG22 = getActiveConfig4();
7161
7339
  const { UNIT: UNIT2 } = CONFIG22;
7162
7340
  const {
7163
7341
  sequence,
@@ -7229,7 +7407,7 @@ var require_cjs9 = __commonJS({
7229
7407
  };
7230
7408
  var import_utils72 = __toESM2(require_cjs22(), 1);
7231
7409
  var setVariables = (result, key) => {
7232
- const CONFIG22 = getActiveConfig3();
7410
+ const CONFIG22 = getActiveConfig4();
7233
7411
  const { CSS_VARS: CSS_VARS2 } = CONFIG22;
7234
7412
  if ((0, import_utils72.isObjectLike)(result.value)) {
7235
7413
  } else {
@@ -7237,7 +7415,7 @@ var require_cjs9 = __commonJS({
7237
7415
  }
7238
7416
  };
7239
7417
  var applySequenceVars = (props4, mediaName, options = {}) => {
7240
- const CONFIG22 = getActiveConfig3();
7418
+ const CONFIG22 = getActiveConfig4();
7241
7419
  const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
7242
7420
  const unit = props4.unit || UNIT2.default;
7243
7421
  const { sequence, scales } = props4;
@@ -7267,7 +7445,7 @@ var require_cjs9 = __commonJS({
7267
7445
  };
7268
7446
  var import_utils82 = __toESM2(require_cjs22(), 1);
7269
7447
  var generateSprite = (icons) => {
7270
- const CONFIG22 = getActiveConfig3();
7448
+ const CONFIG22 = getActiveConfig4();
7271
7449
  let sprite = "";
7272
7450
  for (const key in icons) {
7273
7451
  if (CONFIG22.__svg_cache[key])
@@ -7332,17 +7510,17 @@ var require_cjs9 = __commonJS({
7332
7510
  applySpacingSequence: () => applySpacingSequence,
7333
7511
  applyTimingSequence: () => applyTimingSequence,
7334
7512
  applyTypographySequence: () => applyTypographySequence,
7335
- getColor: () => getColor2,
7336
- getFontFamily: () => getFontFamily2,
7337
- getFontSizeByKey: () => getFontSizeByKey2,
7338
- getMediaColor: () => getMediaColor3,
7339
- getMediaTheme: () => getMediaTheme2,
7513
+ getColor: () => getColor3,
7514
+ getFontFamily: () => getFontFamily3,
7515
+ getFontSizeByKey: () => getFontSizeByKey3,
7516
+ getMediaColor: () => getMediaColor5,
7517
+ getMediaTheme: () => getMediaTheme3,
7340
7518
  getShadow: () => getShadow,
7341
- getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
7342
- getSpacingByKey: () => getSpacingByKey3,
7519
+ getSpacingBasedOnRatio: () => getSpacingBasedOnRatio7,
7520
+ getSpacingByKey: () => getSpacingByKey5,
7343
7521
  getTheme: () => getTheme,
7344
- getTimingByKey: () => getTimingByKey2,
7345
- getTimingFunction: () => getTimingFunction3,
7522
+ getTimingByKey: () => getTimingByKey3,
7523
+ getTimingFunction: () => getTimingFunction5,
7346
7524
  runThroughMedia: () => runThroughMedia,
7347
7525
  setColor: () => setColor,
7348
7526
  setFont: () => setFont,
@@ -7355,8 +7533,8 @@ var require_cjs9 = __commonJS({
7355
7533
  setTheme: () => setTheme
7356
7534
  });
7357
7535
  var import_utils92 = __toESM2(require_cjs22(), 1);
7358
- var getColor2 = (value2, key, config) => {
7359
- const CONFIG22 = config || getActiveConfig3();
7536
+ var getColor3 = (value2, key, config) => {
7537
+ const CONFIG22 = config || getActiveConfig4();
7360
7538
  if (!(0, import_utils92.isString)(value2)) {
7361
7539
  if (CONFIG22.verbose)
7362
7540
  console.warn(value2, "- type for color is not valid");
@@ -7394,8 +7572,8 @@ var require_cjs9 = __commonJS({
7394
7572
  return `rgba(${rgb}, ${alpha})`;
7395
7573
  return CONFIG22.useVariable ? `var(${val.var})` : `rgb(${rgb})`;
7396
7574
  };
7397
- var getMediaColor3 = (value2, globalTheme, config) => {
7398
- const CONFIG22 = config || getActiveConfig3();
7575
+ var getMediaColor5 = (value2, globalTheme, config) => {
7576
+ const CONFIG22 = config || getActiveConfig4();
7399
7577
  if (!globalTheme)
7400
7578
  globalTheme = CONFIG22.globalTheme;
7401
7579
  if (!(0, import_utils92.isString)(value2)) {
@@ -7410,16 +7588,16 @@ var require_cjs9 = __commonJS({
7410
7588
  const val = COLOR22[name] || GRADIENT22[name];
7411
7589
  const isObj = (0, import_utils92.isObject)(val);
7412
7590
  if (isObj && val.value)
7413
- return getColor2(value2, `@${globalTheme}`, config);
7591
+ return getColor3(value2, `@${globalTheme}`, config);
7414
7592
  else if (isObj) {
7415
7593
  if (globalTheme)
7416
- return getColor2(value2, `@${globalTheme}`, config);
7594
+ return getColor3(value2, `@${globalTheme}`, config);
7417
7595
  else {
7418
7596
  const obj = {};
7419
7597
  for (const mediaName in val) {
7420
7598
  const query = CONFIG22.MEDIA[mediaName.slice(1)];
7421
7599
  const media = `@media screen and ${query}`;
7422
- obj[media] = getColor2(value2, mediaName, config);
7600
+ obj[media] = getColor3(value2, mediaName, config);
7423
7601
  }
7424
7602
  return obj;
7425
7603
  }
@@ -7430,9 +7608,9 @@ var require_cjs9 = __commonJS({
7430
7608
  }
7431
7609
  };
7432
7610
  var setColor = (val, key, suffix) => {
7433
- const CONFIG22 = getActiveConfig3();
7611
+ const CONFIG22 = getActiveConfig4();
7434
7612
  if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
7435
- val = getColor2(val.slice(2));
7613
+ val = getColor3(val.slice(2));
7436
7614
  if ((0, import_utils92.isArray)(val)) {
7437
7615
  return {
7438
7616
  "@light": setColor(val[0], key, "light"),
@@ -7466,9 +7644,9 @@ var require_cjs9 = __commonJS({
7466
7644
  };
7467
7645
  };
7468
7646
  var setGradient = (val, key, suffix) => {
7469
- const CONFIG22 = getActiveConfig3();
7647
+ const CONFIG22 = getActiveConfig4();
7470
7648
  if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
7471
- val = getColor2(val.slice(2));
7649
+ val = getColor3(val.slice(2));
7472
7650
  if ((0, import_utils92.isArray)(val)) {
7473
7651
  return {
7474
7652
  "@light": setGradient(val[0], key, "light"),
@@ -7498,7 +7676,7 @@ var require_cjs9 = __commonJS({
7498
7676
  keys.map((key) => {
7499
7677
  const conditions = ["color", "Color", "background", "border"];
7500
7678
  const isColor = conditions.some((k) => key.includes(k));
7501
- return value2[key] = isColor ? getColor2(theme[key]) : theme[key];
7679
+ return value2[key] = isColor ? getColor3(theme[key]) : theme[key];
7502
7680
  });
7503
7681
  return value2;
7504
7682
  };
@@ -7509,9 +7687,9 @@ var require_cjs9 = __commonJS({
7509
7687
  return theme.value;
7510
7688
  };
7511
7689
  var getTheme = (value2, modifier) => {
7512
- const CONFIG22 = getActiveConfig3();
7690
+ const CONFIG22 = getActiveConfig4();
7513
7691
  if (CONFIG22.useVariable)
7514
- return getMediaTheme2(value2, modifier);
7692
+ return getMediaTheme3(value2, modifier);
7515
7693
  const { THEME: THEME22 } = CONFIG22;
7516
7694
  if ((0, import_utils112.isString)(value2)) {
7517
7695
  const [theme, subtheme] = value2.split(" ");
@@ -7588,7 +7766,7 @@ var require_cjs9 = __commonJS({
7588
7766
  return theme;
7589
7767
  };
7590
7768
  var setHelpers = (theme, value2) => {
7591
- const CONFIG22 = getActiveConfig3();
7769
+ const CONFIG22 = getActiveConfig4();
7592
7770
  const { helpers } = theme;
7593
7771
  if (!helpers)
7594
7772
  return;
@@ -7604,7 +7782,7 @@ var require_cjs9 = __commonJS({
7604
7782
  return theme;
7605
7783
  };
7606
7784
  var setTheme = (val, key) => {
7607
- const CONFIG22 = getActiveConfig3();
7785
+ const CONFIG22 = getActiveConfig4();
7608
7786
  if (CONFIG22.useVariable)
7609
7787
  return setMediaTheme(val, key);
7610
7788
  const { state, media, helpers } = val;
@@ -7616,7 +7794,7 @@ var require_cjs9 = __commonJS({
7616
7794
  return { var: CSSvar, value: value2, state, media, helpers };
7617
7795
  };
7618
7796
  var setMediaTheme = (val, key, suffix, prefers) => {
7619
- const CONFIG22 = getActiveConfig3();
7797
+ const CONFIG22 = getActiveConfig4();
7620
7798
  const { CSS_VARS: CSS_VARS2 } = CONFIG22;
7621
7799
  const theme = { value: val };
7622
7800
  if ((0, import_utils112.isObjectLike)(val)) {
@@ -7627,7 +7805,7 @@ var require_cjs9 = __commonJS({
7627
7805
  const hasPrefers = symb === "@" && param;
7628
7806
  theme[param] = setMediaTheme(value2, key, param, prefers || hasPrefers);
7629
7807
  } else {
7630
- const color = getColor2(value2, prefers);
7808
+ const color = getColor3(value2, prefers);
7631
7809
  const metaSuffixes = [...new Set([prefers, suffix].filter((v) => v).map((v) => v.slice(1)))];
7632
7810
  const varmetaSuffixName = metaSuffixes.length ? "-" + metaSuffixes.join("-") : "";
7633
7811
  const CSSVar = `--theme-${key}${varmetaSuffixName}-${param}`;
@@ -7650,13 +7828,13 @@ var require_cjs9 = __commonJS({
7650
7828
  if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--") {
7651
7829
  const { THEME: THEME22 } = CONFIG22;
7652
7830
  const value2 = THEME22[val.slice(2)];
7653
- const getReferenced = getMediaTheme2(value2, prefers);
7831
+ const getReferenced = getMediaTheme3(value2, prefers);
7654
7832
  return getReferenced;
7655
7833
  }
7656
7834
  return theme;
7657
7835
  };
7658
7836
  var recursiveTheme = (val) => {
7659
- const CONFIG22 = getActiveConfig3();
7837
+ const CONFIG22 = getActiveConfig4();
7660
7838
  const obj = {};
7661
7839
  for (const param in val) {
7662
7840
  const symb = param.slice(0, 1);
@@ -7687,10 +7865,10 @@ var require_cjs9 = __commonJS({
7687
7865
  else
7688
7866
  return val;
7689
7867
  };
7690
- var getMediaTheme2 = (val, mod) => {
7691
- const CONFIG22 = getActiveConfig3();
7868
+ var getMediaTheme3 = (val, mod) => {
7869
+ const CONFIG22 = getActiveConfig4();
7692
7870
  if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--")
7693
- val = getMediaTheme2(val.slice(2));
7871
+ val = getMediaTheme3(val.slice(2));
7694
7872
  if (!val || !(0, import_utils112.isString)(val)) {
7695
7873
  if (CONFIG22.verbose)
7696
7874
  console.warn(val, "- theme is not string");
@@ -7710,13 +7888,13 @@ var require_cjs9 = __commonJS({
7710
7888
  const fontFace = val[0] ? getFontFaceEach(key, val) : setCustomFontMedia(key, val.url);
7711
7889
  return { var: CSSvar, value: val, fontFace };
7712
7890
  };
7713
- var getFontFamily2 = (key, factory) => {
7714
- const CONFIG22 = getActiveConfig3();
7891
+ var getFontFamily3 = (key, factory) => {
7892
+ const CONFIG22 = getActiveConfig4();
7715
7893
  const { FONT_FAMILY: FONT_FAMILY22 } = CONFIG22;
7716
7894
  return getDefaultOrFirstKey(factory || FONT_FAMILY22, key);
7717
7895
  };
7718
7896
  var setFontFamily = (val, key) => {
7719
- const CONFIG22 = getActiveConfig3();
7897
+ const CONFIG22 = getActiveConfig4();
7720
7898
  const { FONT_FAMILY: FONT_FAMILY22, FONT_FAMILY_TYPES: FONT_FAMILY_TYPES2 } = CONFIG22;
7721
7899
  let { value: value2, type } = val;
7722
7900
  if (val.isDefault)
@@ -7729,7 +7907,7 @@ var require_cjs9 = __commonJS({
7729
7907
  };
7730
7908
  var import_utils152 = __toESM2(require_cjs22(), 1);
7731
7909
  var runThroughMedia = (props4) => {
7732
- const CONFIG22 = getActiveConfig3();
7910
+ const CONFIG22 = getActiveConfig4();
7733
7911
  const { TYPOGRAPHY: TYPOGRAPHY22, MEDIA: MEDIA2 } = CONFIG22;
7734
7912
  for (const prop in props4) {
7735
7913
  const mediaProps = props4[prop];
@@ -7759,7 +7937,7 @@ var require_cjs9 = __commonJS({
7759
7937
  }
7760
7938
  };
7761
7939
  var applyHeadings = (props4) => {
7762
- const CONFIG22 = getActiveConfig3();
7940
+ const CONFIG22 = getActiveConfig4();
7763
7941
  if (props4.h1Matches) {
7764
7942
  const unit = props4.unit;
7765
7943
  const HEADINGS = findHeadings(props4);
@@ -7778,15 +7956,15 @@ var require_cjs9 = __commonJS({
7778
7956
  }
7779
7957
  };
7780
7958
  var applyTypographySequence = () => {
7781
- const CONFIG22 = getActiveConfig3();
7959
+ const CONFIG22 = getActiveConfig4();
7782
7960
  const { TYPOGRAPHY: TYPOGRAPHY22 } = CONFIG22;
7783
7961
  generateSequence(TYPOGRAPHY22);
7784
7962
  applyHeadings(TYPOGRAPHY22);
7785
7963
  applySequenceVars(TYPOGRAPHY22);
7786
7964
  runThroughMedia(TYPOGRAPHY22);
7787
7965
  };
7788
- var getFontSizeByKey2 = (value2) => {
7789
- const CONFIG22 = getActiveConfig3();
7966
+ var getFontSizeByKey3 = (value2) => {
7967
+ const CONFIG22 = getActiveConfig4();
7790
7968
  const { TYPOGRAPHY: TYPOGRAPHY22 } = CONFIG22;
7791
7969
  return getSequenceValuePropertyPair(
7792
7970
  value2,
@@ -7820,21 +7998,21 @@ var require_cjs9 = __commonJS({
7820
7998
  }
7821
7999
  };
7822
8000
  var applySpacingSequence = () => {
7823
- const CONFIG22 = getActiveConfig3();
8001
+ const CONFIG22 = getActiveConfig4();
7824
8002
  const { SPACING: SPACING22 } = CONFIG22;
7825
8003
  generateSequence(SPACING22);
7826
8004
  applySequenceVars(SPACING22);
7827
8005
  runThroughMedia2(SPACING22);
7828
8006
  };
7829
8007
  var getSequence = (sequenceProps) => {
7830
- const CONFIG22 = getActiveConfig3();
8008
+ const CONFIG22 = getActiveConfig4();
7831
8009
  const { SPACING: SPACING22 } = CONFIG22;
7832
8010
  if (!sequenceProps)
7833
8011
  return SPACING22;
7834
8012
  const hasGenerated = Object.keys(sequenceProps.sequence).length > 0;
7835
8013
  return hasGenerated ? sequenceProps : generateSequence(sequenceProps);
7836
8014
  };
7837
- var getSpacingByKey3 = (value2, propertyName = "padding", sequenceProps) => {
8015
+ var getSpacingByKey5 = (value2, propertyName = "padding", sequenceProps) => {
7838
8016
  const sequence = getSequence(sequenceProps);
7839
8017
  const stack = arrayzeValue2(value2);
7840
8018
  if (!stack)
@@ -7866,8 +8044,8 @@ var require_cjs9 = __commonJS({
7866
8044
  sequence
7867
8045
  );
7868
8046
  };
7869
- var getSpacingBasedOnRatio4 = (props4, propertyName, val) => {
7870
- const CONFIG22 = getActiveConfig3();
8047
+ var getSpacingBasedOnRatio7 = (props4, propertyName, val) => {
8048
+ const CONFIG22 = getActiveConfig4();
7871
8049
  const { SPACING: SPACING22 } = CONFIG22;
7872
8050
  const { spacingRatio, unit } = props4;
7873
8051
  const value2 = val || props4[propertyName];
@@ -7892,13 +8070,13 @@ var require_cjs9 = __commonJS({
7892
8070
  });
7893
8071
  }
7894
8072
  applySequenceVars(sequenceProps, null, { useDefault: false });
7895
- return getSpacingByKey3(value2, propertyName, sequenceProps);
8073
+ return getSpacingByKey5(value2, propertyName, sequenceProps);
7896
8074
  }
7897
- return getSpacingByKey3(value2, propertyName);
8075
+ return getSpacingByKey5(value2, propertyName);
7898
8076
  };
7899
8077
  var import_utils202 = __toESM2(require_cjs22(), 1);
7900
8078
  var setShadow = (value2, key, suffix, prefers) => {
7901
- const CONFIG22 = getActiveConfig3();
8079
+ const CONFIG22 = getActiveConfig4();
7902
8080
  if ((0, import_utils202.isArray)(value2)) {
7903
8081
  return {
7904
8082
  "@light": setShadow(value2[0], key, "light"),
@@ -7921,14 +8099,14 @@ var require_cjs9 = __commonJS({
7921
8099
  v = v.trim();
7922
8100
  if (v.startsWith("--"))
7923
8101
  return `var(${v})`;
7924
- if (getColor2(v).length > 2)
7925
- return getColor2(v);
8102
+ if (getColor3(v).length > 2)
8103
+ return getColor3(v);
7926
8104
  if (v.includes("px") || v.slice(-2) === "em")
7927
8105
  return v;
7928
8106
  const arr = v.split(" ");
7929
8107
  if (!arr.length)
7930
8108
  return v;
7931
- return arr.map((v2) => getSpacingByKey3(v2, "shadow").shadow).join(" ");
8109
+ return arr.map((v2) => getSpacingByKey5(v2, "shadow").shadow).join(" ");
7932
8110
  }).join(" ");
7933
8111
  }
7934
8112
  const CSSVar = `--shadow-${key}` + (suffix ? `-${suffix}` : "");
@@ -7941,7 +8119,7 @@ var require_cjs9 = __commonJS({
7941
8119
  };
7942
8120
  };
7943
8121
  var getShadow = (value2, globalTheme) => {
7944
- const CONFIG22 = getActiveConfig3();
8122
+ const CONFIG22 = getActiveConfig4();
7945
8123
  if (!globalTheme)
7946
8124
  globalTheme = CONFIG22.globalTheme;
7947
8125
  if (!(0, import_utils202.isString)(value2)) {
@@ -7982,18 +8160,18 @@ var require_cjs9 = __commonJS({
7982
8160
  return value2;
7983
8161
  };
7984
8162
  var applyTimingSequence = () => {
7985
- const CONFIG22 = getActiveConfig3();
8163
+ const CONFIG22 = getActiveConfig4();
7986
8164
  const { TIMING: TIMING2 } = CONFIG22;
7987
8165
  generateSequence(TIMING2);
7988
8166
  applySequenceVars(TIMING2);
7989
8167
  };
7990
- var getTimingFunction3 = (value2) => {
7991
- const CONFIG22 = getActiveConfig3();
8168
+ var getTimingFunction5 = (value2) => {
8169
+ const CONFIG22 = getActiveConfig4();
7992
8170
  const { TIMING: TIMING2 } = CONFIG22;
7993
8171
  return TIMING2[value2] || TIMING2[toCamelCase2(value2)] || value2;
7994
8172
  };
7995
- var getTimingByKey2 = (value2, property = "timing") => {
7996
- const CONFIG22 = getActiveConfig3();
8173
+ var getTimingByKey3 = (value2, property = "timing") => {
8174
+ const CONFIG22 = getActiveConfig4();
7997
8175
  const { TIMING: TIMING2 } = CONFIG22;
7998
8176
  return getSequenceValuePropertyPair(
7999
8177
  value2,
@@ -8003,7 +8181,7 @@ var require_cjs9 = __commonJS({
8003
8181
  };
8004
8182
  var import_utils232 = __toESM2(require_cjs22(), 1);
8005
8183
  var applyDocument = () => {
8006
- const CONFIG22 = getActiveConfig3();
8184
+ const CONFIG22 = getActiveConfig4();
8007
8185
  const { DOCUMENT: DOCUMENT2, FONT_FAMILY: FONT_FAMILY22, THEME: THEME22, TYPOGRAPHY: TYPOGRAPHY22 } = CONFIG22;
8008
8186
  return (0, import_utils232.merge)(DOCUMENT2, {
8009
8187
  theme: THEME22.document,
@@ -8017,7 +8195,7 @@ var require_cjs9 = __commonJS({
8017
8195
  document: import_globals22.document
8018
8196
  };
8019
8197
  var setSVG = (val, key) => {
8020
- const CONFIG22 = getActiveConfig3();
8198
+ const CONFIG22 = getActiveConfig4();
8021
8199
  if (!val) {
8022
8200
  if (CONFIG22.verbose)
8023
8201
  console.warn("setSVG: val is not defined", key);
@@ -8029,21 +8207,21 @@ var require_cjs9 = __commonJS({
8029
8207
  return val;
8030
8208
  };
8031
8209
  var appendSVGSprite2 = (LIBRARY, options = DEF_OPTIONS) => {
8032
- const CONFIG22 = getActiveConfig3();
8210
+ const CONFIG22 = getActiveConfig4();
8033
8211
  const lib = Object.keys(LIBRARY).length ? {} : CONFIG22.SVG;
8034
8212
  for (const key in LIBRARY)
8035
8213
  lib[key] = CONFIG22.SVG[key];
8036
8214
  appendSVG(lib, options);
8037
8215
  };
8038
8216
  var setIcon = (val, key) => {
8039
- const CONFIG22 = getActiveConfig3();
8217
+ const CONFIG22 = getActiveConfig4();
8040
8218
  if (CONFIG22.useIconSprite) {
8041
8219
  return setSVG(val, key);
8042
8220
  }
8043
8221
  return val;
8044
8222
  };
8045
8223
  var appendIconsSprite2 = (LIBRARY, options = DEF_OPTIONS) => {
8046
- const CONFIG22 = getActiveConfig3();
8224
+ const CONFIG22 = getActiveConfig4();
8047
8225
  const lib = Object.keys(LIBRARY).length ? {} : CONFIG22.ICONS;
8048
8226
  for (const key in LIBRARY)
8049
8227
  lib[key] = CONFIG22.ICONS[key];
@@ -8063,7 +8241,7 @@ var require_cjs9 = __commonJS({
8063
8241
  return svgElem;
8064
8242
  };
8065
8243
  var appendSVG = (lib, options = DEF_OPTIONS) => {
8066
- const CONFIG22 = getActiveConfig3();
8244
+ const CONFIG22 = getActiveConfig4();
8067
8245
  const doc = options.document || import_globals22.document;
8068
8246
  if (!doc || !doc.documentElement) {
8069
8247
  if (CONFIG22.verbose) {
@@ -8085,16 +8263,16 @@ var require_cjs9 = __commonJS({
8085
8263
  }
8086
8264
  }
8087
8265
  };
8088
- var import_utils26 = __toESM2(require_cjs22(), 1);
8266
+ var import_utils262 = __toESM2(require_cjs22(), 1);
8089
8267
  var applyReset = (reset = {}) => {
8090
- const CONFIG22 = getActiveConfig3();
8268
+ const CONFIG22 = getActiveConfig4();
8091
8269
  const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY22, DOCUMENT: DOCUMENT2 } = CONFIG22;
8092
8270
  if (RESET2) {
8093
8271
  if (RESET2[":root"]) {
8094
8272
  const configReset = RESET2;
8095
8273
  const configTemplates = TYPOGRAPHY22.templates;
8096
8274
  configReset.body = {
8097
- ...CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {},
8275
+ ...CONFIG22.useDocumentTheme ? getMediaTheme3("document", `@${CONFIG22.globalTheme}`) : {},
8098
8276
  ...configTemplates.body
8099
8277
  };
8100
8278
  configReset.h1 = configTemplates.h1;
@@ -8105,10 +8283,10 @@ var require_cjs9 = __commonJS({
8105
8283
  configReset.h6 = configTemplates.h6;
8106
8284
  }
8107
8285
  const { body, ...templates } = TYPOGRAPHY22.templates;
8108
- const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {};
8286
+ const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme3("document", `@${CONFIG22.globalTheme}`) : {};
8109
8287
  if (RESET2.html)
8110
- (0, import_utils26.overwriteDeep)(RESET2.html, globalTheme);
8111
- return (0, import_utils26.deepMerge)((0, import_utils26.merge)(RESET2, reset), {
8288
+ (0, import_utils262.overwriteDeep)(RESET2.html, globalTheme);
8289
+ return (0, import_utils262.deepMerge)((0, import_utils262.merge)(RESET2, reset), {
8112
8290
  html: {
8113
8291
  position: "absolute",
8114
8292
  // overflow: 'hidden',
@@ -8145,7 +8323,7 @@ var require_cjs9 = __commonJS({
8145
8323
  });
8146
8324
  }
8147
8325
  };
8148
- var import_utils27 = __toESM2(require_cjs22(), 1);
8326
+ var import_utils272 = __toESM2(require_cjs22(), 1);
8149
8327
  var isBorderStyle = (str) => [
8150
8328
  "none",
8151
8329
  "hidden",
@@ -8159,7 +8337,7 @@ var require_cjs9 = __commonJS({
8159
8337
  "outset",
8160
8338
  "initial"
8161
8339
  ].some((v) => str.includes(v));
8162
- var transformBorder2 = (border) => {
8340
+ var transformBorder3 = (border) => {
8163
8341
  const arr = border.split(", ");
8164
8342
  return arr.map((v) => {
8165
8343
  v = v.trim();
@@ -8169,28 +8347,28 @@ var require_cjs9 = __commonJS({
8169
8347
  return v || "solid";
8170
8348
  else if (v.slice(-2) === "px" || v.slice(-2) === "em")
8171
8349
  return v;
8172
- else if (getColor2(v).length > 2)
8173
- return getColor2(v);
8174
- return getSpacingByKey3(v, "border").border;
8350
+ else if (getColor3(v).length > 2)
8351
+ return getColor3(v);
8352
+ return getSpacingByKey5(v, "border").border;
8175
8353
  }).join(" ");
8176
8354
  };
8177
- var transformTextStroke2 = (stroke) => {
8355
+ var transformTextStroke3 = (stroke) => {
8178
8356
  return stroke.split(", ").map((v) => {
8179
8357
  if (v.slice(0, 2) === "--")
8180
8358
  return `var(${v})`;
8181
8359
  if (v.includes("px"))
8182
8360
  return v;
8183
- else if (getColor2(v))
8184
- return getColor2(v);
8361
+ else if (getColor3(v))
8362
+ return getColor3(v);
8185
8363
  return v;
8186
8364
  }).join(" ");
8187
8365
  };
8188
- var transformShadow2 = (sh, globalTheme) => {
8366
+ var transformShadow3 = (sh, globalTheme) => {
8189
8367
  return sh.split(",").map((shadow) => getShadow(shadow, globalTheme)).join(",");
8190
8368
  };
8191
- var transformBoxShadow2 = (sh, globalTheme) => getShadow(sh, globalTheme);
8192
- var transformBackgroundImage2 = (backgroundImage, globalTheme) => {
8193
- const CONFIG22 = getActiveConfig3();
8369
+ var transformBoxShadow3 = (sh, globalTheme) => getShadow(sh, globalTheme);
8370
+ var transformBackgroundImage3 = (backgroundImage, globalTheme) => {
8371
+ const CONFIG22 = getActiveConfig4();
8194
8372
  return backgroundImage.split(", ").map((v) => {
8195
8373
  if (v.slice(0, 2) === "--")
8196
8374
  return `var(${v})`;
@@ -8198,14 +8376,14 @@ var require_cjs9 = __commonJS({
8198
8376
  return v;
8199
8377
  else if (CONFIG22.GRADIENT[backgroundImage]) {
8200
8378
  return {
8201
- backgroundImage: getMediaColor3(backgroundImage, globalTheme || CONFIG22.globalTheme)
8379
+ backgroundImage: getMediaColor5(backgroundImage, globalTheme || CONFIG22.globalTheme)
8202
8380
  };
8203
8381
  } else if (v.includes("/") || v.includes("http"))
8204
8382
  return `url(${v})`;
8205
8383
  return v;
8206
8384
  }).join(" ");
8207
8385
  };
8208
- var transfromGap2 = (gap) => (0, import_utils27.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey3(v, "gap").gap).join(" ");
8386
+ var transfromGap3 = (gap) => (0, import_utils272.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey5(v, "gap").gap).join(" ");
8209
8387
  var transformTransition = (transition) => {
8210
8388
  const arr = transition.split(" ");
8211
8389
  if (!arr.length)
@@ -8214,28 +8392,28 @@ var require_cjs9 = __commonJS({
8214
8392
  if (v.slice(0, 2) === "--")
8215
8393
  return `var(${v})`;
8216
8394
  if (v.length < 3 || v.includes("ms")) {
8217
- const mapWithSequence = getTimingByKey2(v);
8395
+ const mapWithSequence = getTimingByKey3(v);
8218
8396
  return mapWithSequence.timing || v;
8219
8397
  }
8220
- if (getTimingFunction3(v))
8221
- return getTimingFunction3(v);
8398
+ if (getTimingFunction5(v))
8399
+ return getTimingFunction5(v);
8222
8400
  return v;
8223
8401
  }).join(" ");
8224
8402
  };
8225
- var transformDuration2 = (duration, props4, propertyName) => {
8226
- if (!(0, import_utils27.isString)(duration))
8403
+ var transformDuration3 = (duration, props4, propertyName) => {
8404
+ if (!(0, import_utils272.isString)(duration))
8227
8405
  return;
8228
- return duration.split(",").map((v) => getTimingByKey2(v).timing || v).join(",");
8406
+ return duration.split(",").map((v) => getTimingByKey3(v).timing || v).join(",");
8229
8407
  };
8230
- var splitTransition2 = (transition) => {
8408
+ var splitTransition3 = (transition) => {
8231
8409
  const arr = transition.split(",");
8232
8410
  if (!arr.length)
8233
8411
  return;
8234
8412
  return arr.map(transformTransition).join(",");
8235
8413
  };
8236
- var import_utils28 = __toESM2(require_cjs22(), 1);
8414
+ var import_utils282 = __toESM2(require_cjs22(), 1);
8237
8415
  var setCases = (val, key) => {
8238
- if ((0, import_utils28.isFunction)(val))
8416
+ if ((0, import_utils282.isFunction)(val))
8239
8417
  return val();
8240
8418
  return val;
8241
8419
  };
@@ -8260,7 +8438,7 @@ var require_cjs9 = __commonJS({
8260
8438
  animation: setSameValue
8261
8439
  };
8262
8440
  var setValue = (FACTORY_NAME, value2, key) => {
8263
- const CONFIG22 = getActiveConfig3();
8441
+ const CONFIG22 = getActiveConfig4();
8264
8442
  const factoryName = FACTORY_NAME.toLowerCase();
8265
8443
  const FACTORY2 = CONFIG22[FACTORY_NAME];
8266
8444
  if (VALUE_TRANSFORMERS[factoryName]) {
@@ -8272,7 +8450,7 @@ var require_cjs9 = __commonJS({
8272
8450
  console.warn("Can not find", factoryName, "method in scratch");
8273
8451
  };
8274
8452
  var setEach = (factoryName, props4) => {
8275
- const CONFIG22 = getActiveConfig3();
8453
+ const CONFIG22 = getActiveConfig4();
8276
8454
  const FACTORY_NAME = factoryName.toUpperCase();
8277
8455
  const keys = Object.keys(props4);
8278
8456
  keys.map((key) => setValue(FACTORY_NAME, props4[key], key));
@@ -8280,7 +8458,7 @@ var require_cjs9 = __commonJS({
8280
8458
  };
8281
8459
  var SET_OPTIONS2 = {};
8282
8460
  var set5 = (recivedConfig, options = SET_OPTIONS2) => {
8283
- let CONFIG22 = getActiveConfig3();
8461
+ let CONFIG22 = getActiveConfig4();
8284
8462
  const {
8285
8463
  version,
8286
8464
  verbose,
@@ -8358,8 +8536,8 @@ var require_cjs10 = __commonJS({
8358
8536
  router: () => router2
8359
8537
  });
8360
8538
  module2.exports = __toCommonJS2(router_exports);
8361
- var import_utils24 = require_cjs();
8362
- var getActiveRoute = (level = 0, route = import_utils24.window.location.pathname) => {
8539
+ var import_utils31 = require_cjs();
8540
+ var getActiveRoute = (level = 0, route = import_utils31.window.location.pathname) => {
8363
8541
  const routeArray = route.split("/");
8364
8542
  const activeRoute = routeArray[level + 1];
8365
8543
  if (activeRoute)
@@ -8373,7 +8551,7 @@ var require_cjs10 = __commonJS({
8373
8551
  initialRender: false,
8374
8552
  scrollToTop: true,
8375
8553
  scrollToNode: false,
8376
- scrollNode: import_utils24.document && import_utils24.document.documentElement,
8554
+ scrollNode: import_utils31.document && import_utils31.document.documentElement,
8377
8555
  scrollBody: false,
8378
8556
  useFragment: false,
8379
8557
  updateState: true,
@@ -8388,13 +8566,13 @@ var require_cjs10 = __commonJS({
8388
8566
  const route = getActiveRoute(options.level, pathname);
8389
8567
  const content = element.routes[route || "/"] || element.routes["/*"];
8390
8568
  const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
8391
- const hashChanged = hash2 && hash2 !== import_utils24.window.location.hash.slice(1);
8569
+ const hashChanged = hash2 && hash2 !== import_utils31.window.location.hash.slice(1);
8392
8570
  const pathChanged = pathname !== lastPathname;
8393
8571
  lastPathname = pathname;
8394
8572
  if (!content)
8395
8573
  return;
8396
8574
  if (options.pushState) {
8397
- import_utils24.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
8575
+ import_utils31.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
8398
8576
  }
8399
8577
  if (pathChanged || !hashChanged) {
8400
8578
  if (options.updateState) {
@@ -8420,7 +8598,7 @@ var require_cjs10 = __commonJS({
8420
8598
  });
8421
8599
  }
8422
8600
  if (hash2) {
8423
- const activeNode = import_utils24.document.getElementById(hash2);
8601
+ const activeNode = import_utils31.document.getElementById(hash2);
8424
8602
  if (activeNode) {
8425
8603
  const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
8426
8604
  scrollNode.scrollTo({
@@ -8572,237 +8750,237 @@ var require_cjs12 = __commonJS({
8572
8750
  }
8573
8751
  });
8574
8752
 
8575
- // ../../uikit/icons/default-icons/src/logo.svg
8753
+ // node_modules/@symbo.ls/default-icons/src/logo.svg
8576
8754
  var require_logo = __commonJS({
8577
- "../../uikit/icons/default-icons/src/logo.svg"() {
8755
+ "node_modules/@symbo.ls/default-icons/src/logo.svg"() {
8578
8756
  }
8579
8757
  });
8580
8758
 
8581
- // ../../uikit/icons/default-icons/src/arrow-down-circle.svg
8759
+ // node_modules/@symbo.ls/default-icons/src/arrow-down-circle.svg
8582
8760
  var require_arrow_down_circle = __commonJS({
8583
- "../../uikit/icons/default-icons/src/arrow-down-circle.svg"() {
8761
+ "node_modules/@symbo.ls/default-icons/src/arrow-down-circle.svg"() {
8584
8762
  }
8585
8763
  });
8586
8764
 
8587
- // ../../uikit/icons/default-icons/src/arrow-down-left.svg
8765
+ // node_modules/@symbo.ls/default-icons/src/arrow-down-left.svg
8588
8766
  var require_arrow_down_left = __commonJS({
8589
- "../../uikit/icons/default-icons/src/arrow-down-left.svg"() {
8767
+ "node_modules/@symbo.ls/default-icons/src/arrow-down-left.svg"() {
8590
8768
  }
8591
8769
  });
8592
8770
 
8593
- // ../../uikit/icons/default-icons/src/arrow-down-right.svg
8771
+ // node_modules/@symbo.ls/default-icons/src/arrow-down-right.svg
8594
8772
  var require_arrow_down_right = __commonJS({
8595
- "../../uikit/icons/default-icons/src/arrow-down-right.svg"() {
8773
+ "node_modules/@symbo.ls/default-icons/src/arrow-down-right.svg"() {
8596
8774
  }
8597
8775
  });
8598
8776
 
8599
- // ../../uikit/icons/default-icons/src/arrow-down.svg
8777
+ // node_modules/@symbo.ls/default-icons/src/arrow-down.svg
8600
8778
  var require_arrow_down = __commonJS({
8601
- "../../uikit/icons/default-icons/src/arrow-down.svg"() {
8779
+ "node_modules/@symbo.ls/default-icons/src/arrow-down.svg"() {
8602
8780
  }
8603
8781
  });
8604
8782
 
8605
- // ../../uikit/icons/default-icons/src/arrow-left-circle.svg
8783
+ // node_modules/@symbo.ls/default-icons/src/arrow-left-circle.svg
8606
8784
  var require_arrow_left_circle = __commonJS({
8607
- "../../uikit/icons/default-icons/src/arrow-left-circle.svg"() {
8785
+ "node_modules/@symbo.ls/default-icons/src/arrow-left-circle.svg"() {
8608
8786
  }
8609
8787
  });
8610
8788
 
8611
- // ../../uikit/icons/default-icons/src/arrow-left.svg
8789
+ // node_modules/@symbo.ls/default-icons/src/arrow-left.svg
8612
8790
  var require_arrow_left = __commonJS({
8613
- "../../uikit/icons/default-icons/src/arrow-left.svg"() {
8791
+ "node_modules/@symbo.ls/default-icons/src/arrow-left.svg"() {
8614
8792
  }
8615
8793
  });
8616
8794
 
8617
- // ../../uikit/icons/default-icons/src/arrow-right.svg
8795
+ // node_modules/@symbo.ls/default-icons/src/arrow-right.svg
8618
8796
  var require_arrow_right = __commonJS({
8619
- "../../uikit/icons/default-icons/src/arrow-right.svg"() {
8797
+ "node_modules/@symbo.ls/default-icons/src/arrow-right.svg"() {
8620
8798
  }
8621
8799
  });
8622
8800
 
8623
- // ../../uikit/icons/default-icons/src/arrow-right-circle.svg
8801
+ // node_modules/@symbo.ls/default-icons/src/arrow-right-circle.svg
8624
8802
  var require_arrow_right_circle = __commonJS({
8625
- "../../uikit/icons/default-icons/src/arrow-right-circle.svg"() {
8803
+ "node_modules/@symbo.ls/default-icons/src/arrow-right-circle.svg"() {
8626
8804
  }
8627
8805
  });
8628
8806
 
8629
- // ../../uikit/icons/default-icons/src/arrow-up-circle.svg
8807
+ // node_modules/@symbo.ls/default-icons/src/arrow-up-circle.svg
8630
8808
  var require_arrow_up_circle = __commonJS({
8631
- "../../uikit/icons/default-icons/src/arrow-up-circle.svg"() {
8809
+ "node_modules/@symbo.ls/default-icons/src/arrow-up-circle.svg"() {
8632
8810
  }
8633
8811
  });
8634
8812
 
8635
- // ../../uikit/icons/default-icons/src/arrow-up-left.svg
8813
+ // node_modules/@symbo.ls/default-icons/src/arrow-up-left.svg
8636
8814
  var require_arrow_up_left = __commonJS({
8637
- "../../uikit/icons/default-icons/src/arrow-up-left.svg"() {
8815
+ "node_modules/@symbo.ls/default-icons/src/arrow-up-left.svg"() {
8638
8816
  }
8639
8817
  });
8640
8818
 
8641
- // ../../uikit/icons/default-icons/src/arrow-up-right.svg
8819
+ // node_modules/@symbo.ls/default-icons/src/arrow-up-right.svg
8642
8820
  var require_arrow_up_right = __commonJS({
8643
- "../../uikit/icons/default-icons/src/arrow-up-right.svg"() {
8821
+ "node_modules/@symbo.ls/default-icons/src/arrow-up-right.svg"() {
8644
8822
  }
8645
8823
  });
8646
8824
 
8647
- // ../../uikit/icons/default-icons/src/arrow-up.svg
8825
+ // node_modules/@symbo.ls/default-icons/src/arrow-up.svg
8648
8826
  var require_arrow_up = __commonJS({
8649
- "../../uikit/icons/default-icons/src/arrow-up.svg"() {
8827
+ "node_modules/@symbo.ls/default-icons/src/arrow-up.svg"() {
8650
8828
  }
8651
8829
  });
8652
8830
 
8653
- // ../../uikit/icons/default-icons/src/check-circle.svg
8831
+ // node_modules/@symbo.ls/default-icons/src/check-circle.svg
8654
8832
  var require_check_circle = __commonJS({
8655
- "../../uikit/icons/default-icons/src/check-circle.svg"() {
8833
+ "node_modules/@symbo.ls/default-icons/src/check-circle.svg"() {
8656
8834
  }
8657
8835
  });
8658
8836
 
8659
- // ../../uikit/icons/default-icons/src/check.svg
8837
+ // node_modules/@symbo.ls/default-icons/src/check.svg
8660
8838
  var require_check = __commonJS({
8661
- "../../uikit/icons/default-icons/src/check.svg"() {
8839
+ "node_modules/@symbo.ls/default-icons/src/check.svg"() {
8662
8840
  }
8663
8841
  });
8664
8842
 
8665
- // ../../uikit/icons/default-icons/src/chevron-down.svg
8843
+ // node_modules/@symbo.ls/default-icons/src/chevron-down.svg
8666
8844
  var require_chevron_down = __commonJS({
8667
- "../../uikit/icons/default-icons/src/chevron-down.svg"() {
8845
+ "node_modules/@symbo.ls/default-icons/src/chevron-down.svg"() {
8668
8846
  }
8669
8847
  });
8670
8848
 
8671
- // ../../uikit/icons/default-icons/src/chevron-left.svg
8849
+ // node_modules/@symbo.ls/default-icons/src/chevron-left.svg
8672
8850
  var require_chevron_left = __commonJS({
8673
- "../../uikit/icons/default-icons/src/chevron-left.svg"() {
8851
+ "node_modules/@symbo.ls/default-icons/src/chevron-left.svg"() {
8674
8852
  }
8675
8853
  });
8676
8854
 
8677
- // ../../uikit/icons/default-icons/src/chevron-right.svg
8855
+ // node_modules/@symbo.ls/default-icons/src/chevron-right.svg
8678
8856
  var require_chevron_right = __commonJS({
8679
- "../../uikit/icons/default-icons/src/chevron-right.svg"() {
8857
+ "node_modules/@symbo.ls/default-icons/src/chevron-right.svg"() {
8680
8858
  }
8681
8859
  });
8682
8860
 
8683
- // ../../uikit/icons/default-icons/src/chevron-up.svg
8861
+ // node_modules/@symbo.ls/default-icons/src/chevron-up.svg
8684
8862
  var require_chevron_up = __commonJS({
8685
- "../../uikit/icons/default-icons/src/chevron-up.svg"() {
8863
+ "node_modules/@symbo.ls/default-icons/src/chevron-up.svg"() {
8686
8864
  }
8687
8865
  });
8688
8866
 
8689
- // ../../uikit/icons/default-icons/src/copy.svg
8867
+ // node_modules/@symbo.ls/default-icons/src/copy.svg
8690
8868
  var require_copy = __commonJS({
8691
- "../../uikit/icons/default-icons/src/copy.svg"() {
8869
+ "node_modules/@symbo.ls/default-icons/src/copy.svg"() {
8692
8870
  }
8693
8871
  });
8694
8872
 
8695
- // ../../uikit/icons/default-icons/src/dribbble.svg
8873
+ // node_modules/@symbo.ls/default-icons/src/dribbble.svg
8696
8874
  var require_dribbble = __commonJS({
8697
- "../../uikit/icons/default-icons/src/dribbble.svg"() {
8875
+ "node_modules/@symbo.ls/default-icons/src/dribbble.svg"() {
8698
8876
  }
8699
8877
  });
8700
8878
 
8701
- // ../../uikit/icons/default-icons/src/eye-off.svg
8879
+ // node_modules/@symbo.ls/default-icons/src/eye-off.svg
8702
8880
  var require_eye_off = __commonJS({
8703
- "../../uikit/icons/default-icons/src/eye-off.svg"() {
8881
+ "node_modules/@symbo.ls/default-icons/src/eye-off.svg"() {
8704
8882
  }
8705
8883
  });
8706
8884
 
8707
- // ../../uikit/icons/default-icons/src/eye.svg
8885
+ // node_modules/@symbo.ls/default-icons/src/eye.svg
8708
8886
  var require_eye = __commonJS({
8709
- "../../uikit/icons/default-icons/src/eye.svg"() {
8887
+ "node_modules/@symbo.ls/default-icons/src/eye.svg"() {
8710
8888
  }
8711
8889
  });
8712
8890
 
8713
- // ../../uikit/icons/default-icons/src/file.svg
8891
+ // node_modules/@symbo.ls/default-icons/src/file.svg
8714
8892
  var require_file = __commonJS({
8715
- "../../uikit/icons/default-icons/src/file.svg"() {
8893
+ "node_modules/@symbo.ls/default-icons/src/file.svg"() {
8716
8894
  }
8717
8895
  });
8718
8896
 
8719
- // ../../uikit/icons/default-icons/src/info.svg
8897
+ // node_modules/@symbo.ls/default-icons/src/info.svg
8720
8898
  var require_info = __commonJS({
8721
- "../../uikit/icons/default-icons/src/info.svg"() {
8899
+ "node_modules/@symbo.ls/default-icons/src/info.svg"() {
8722
8900
  }
8723
8901
  });
8724
8902
 
8725
- // ../../uikit/icons/default-icons/src/minus.svg
8903
+ // node_modules/@symbo.ls/default-icons/src/minus.svg
8726
8904
  var require_minus = __commonJS({
8727
- "../../uikit/icons/default-icons/src/minus.svg"() {
8905
+ "node_modules/@symbo.ls/default-icons/src/minus.svg"() {
8728
8906
  }
8729
8907
  });
8730
8908
 
8731
- // ../../uikit/icons/default-icons/src/moon.svg
8909
+ // node_modules/@symbo.ls/default-icons/src/moon.svg
8732
8910
  var require_moon = __commonJS({
8733
- "../../uikit/icons/default-icons/src/moon.svg"() {
8911
+ "node_modules/@symbo.ls/default-icons/src/moon.svg"() {
8734
8912
  }
8735
8913
  });
8736
8914
 
8737
- // ../../uikit/icons/default-icons/src/more-horizontal.svg
8915
+ // node_modules/@symbo.ls/default-icons/src/more-horizontal.svg
8738
8916
  var require_more_horizontal = __commonJS({
8739
- "../../uikit/icons/default-icons/src/more-horizontal.svg"() {
8917
+ "node_modules/@symbo.ls/default-icons/src/more-horizontal.svg"() {
8740
8918
  }
8741
8919
  });
8742
8920
 
8743
- // ../../uikit/icons/default-icons/src/more-vertical.svg
8921
+ // node_modules/@symbo.ls/default-icons/src/more-vertical.svg
8744
8922
  var require_more_vertical = __commonJS({
8745
- "../../uikit/icons/default-icons/src/more-vertical.svg"() {
8923
+ "node_modules/@symbo.ls/default-icons/src/more-vertical.svg"() {
8746
8924
  }
8747
8925
  });
8748
8926
 
8749
- // ../../uikit/icons/default-icons/src/sun.svg
8927
+ // node_modules/@symbo.ls/default-icons/src/sun.svg
8750
8928
  var require_sun = __commonJS({
8751
- "../../uikit/icons/default-icons/src/sun.svg"() {
8929
+ "node_modules/@symbo.ls/default-icons/src/sun.svg"() {
8752
8930
  }
8753
8931
  });
8754
8932
 
8755
- // ../../uikit/icons/default-icons/src/send.svg
8933
+ // node_modules/@symbo.ls/default-icons/src/send.svg
8756
8934
  var require_send = __commonJS({
8757
- "../../uikit/icons/default-icons/src/send.svg"() {
8935
+ "node_modules/@symbo.ls/default-icons/src/send.svg"() {
8758
8936
  }
8759
8937
  });
8760
8938
 
8761
- // ../../uikit/icons/default-icons/src/smile.svg
8939
+ // node_modules/@symbo.ls/default-icons/src/smile.svg
8762
8940
  var require_smile = __commonJS({
8763
- "../../uikit/icons/default-icons/src/smile.svg"() {
8941
+ "node_modules/@symbo.ls/default-icons/src/smile.svg"() {
8764
8942
  }
8765
8943
  });
8766
8944
 
8767
- // ../../uikit/icons/default-icons/src/search.svg
8945
+ // node_modules/@symbo.ls/default-icons/src/search.svg
8768
8946
  var require_search = __commonJS({
8769
- "../../uikit/icons/default-icons/src/search.svg"() {
8947
+ "node_modules/@symbo.ls/default-icons/src/search.svg"() {
8770
8948
  }
8771
8949
  });
8772
8950
 
8773
- // ../../uikit/icons/default-icons/src/phone.svg
8951
+ // node_modules/@symbo.ls/default-icons/src/phone.svg
8774
8952
  var require_phone = __commonJS({
8775
- "../../uikit/icons/default-icons/src/phone.svg"() {
8953
+ "node_modules/@symbo.ls/default-icons/src/phone.svg"() {
8776
8954
  }
8777
8955
  });
8778
8956
 
8779
- // ../../uikit/icons/default-icons/src/twitch.svg
8957
+ // node_modules/@symbo.ls/default-icons/src/twitch.svg
8780
8958
  var require_twitch = __commonJS({
8781
- "../../uikit/icons/default-icons/src/twitch.svg"() {
8959
+ "node_modules/@symbo.ls/default-icons/src/twitch.svg"() {
8782
8960
  }
8783
8961
  });
8784
8962
 
8785
- // ../../uikit/icons/default-icons/src/upload.svg
8963
+ // node_modules/@symbo.ls/default-icons/src/upload.svg
8786
8964
  var require_upload = __commonJS({
8787
- "../../uikit/icons/default-icons/src/upload.svg"() {
8965
+ "node_modules/@symbo.ls/default-icons/src/upload.svg"() {
8788
8966
  }
8789
8967
  });
8790
8968
 
8791
- // ../../uikit/icons/default-icons/src/video.svg
8969
+ // node_modules/@symbo.ls/default-icons/src/video.svg
8792
8970
  var require_video = __commonJS({
8793
- "../../uikit/icons/default-icons/src/video.svg"() {
8971
+ "node_modules/@symbo.ls/default-icons/src/video.svg"() {
8794
8972
  }
8795
8973
  });
8796
8974
 
8797
- // ../../uikit/icons/default-icons/src/x.svg
8975
+ // node_modules/@symbo.ls/default-icons/src/x.svg
8798
8976
  var require_x = __commonJS({
8799
- "../../uikit/icons/default-icons/src/x.svg"() {
8977
+ "node_modules/@symbo.ls/default-icons/src/x.svg"() {
8800
8978
  }
8801
8979
  });
8802
8980
 
8803
- // ../../uikit/icons/default-icons/src/plus.svg
8981
+ // node_modules/@symbo.ls/default-icons/src/plus.svg
8804
8982
  var require_plus = __commonJS({
8805
- "../../uikit/icons/default-icons/src/plus.svg"() {
8983
+ "node_modules/@symbo.ls/default-icons/src/plus.svg"() {
8806
8984
  }
8807
8985
  });
8808
8986
 
@@ -8815,7 +8993,7 @@ __export(src_exports, {
8815
8993
  });
8816
8994
  module.exports = __toCommonJS(src_exports);
8817
8995
  var import_domql = __toESM(require_cjs8(), 1);
8818
- var import_utils23 = __toESM(require_cjs(), 1);
8996
+ var import_utils30 = __toESM(require_cjs(), 1);
8819
8997
 
8820
8998
  // src/utilImports.js
8821
8999
  var utilImports_exports = {};
@@ -10272,7 +10450,7 @@ var SET_OPTIONS = {
10272
10450
  useSvgSprite: true
10273
10451
  };
10274
10452
  var init = (config, options = SET_OPTIONS) => {
10275
- const emotion2 = options.emotion || emotion;
10453
+ const emotion4 = options.emotion || emotion;
10276
10454
  const resultConfig = mergeWithLocalFile(config || {});
10277
10455
  const conf = (0, import_scratch.set)({
10278
10456
  verbose: options.verbose,
@@ -10293,11 +10471,11 @@ var init = (config, options = SET_OPTIONS) => {
10293
10471
  const useIconSprite = conf.useIconSprite;
10294
10472
  const hasIcons = config.icons || config.ICONS;
10295
10473
  if (useFontImport)
10296
- emotion2.injectGlobal(FontFace);
10474
+ emotion4.injectGlobal(FontFace);
10297
10475
  if (useVariable)
10298
- emotion2.injectGlobal({ ":root": conf.CSS_VARS });
10476
+ emotion4.injectGlobal({ ":root": conf.CSS_VARS });
10299
10477
  if (useReset)
10300
- emotion2.injectGlobal(conf.RESET);
10478
+ emotion4.injectGlobal(conf.RESET);
10301
10479
  if (hasSvgs)
10302
10480
  (0, import_scratch.appendSVGSprite)(hasSvgs, { document: options.document });
10303
10481
  else if (useSvgSprite)
@@ -10312,14 +10490,14 @@ var UPDATE_OPTIONS = {
10312
10490
  emotion
10313
10491
  };
10314
10492
  var updateReset = (config, RC_FILE, options = UPDATE_OPTIONS) => {
10315
- const emotion2 = options.emotion || emotion;
10493
+ const emotion4 = options.emotion || emotion;
10316
10494
  const resultConfig = mergeWithLocalFile(config || {}, RC_FILE);
10317
10495
  const conf = (0, import_scratch.set)({
10318
10496
  verbose: false,
10319
10497
  ...resultConfig
10320
10498
  });
10321
- emotion2.injectGlobal({ ":root": conf.CSS_VARS });
10322
- emotion2.injectGlobal(conf.RESET);
10499
+ emotion4.injectGlobal({ ":root": conf.CSS_VARS });
10500
+ emotion4.injectGlobal(conf.RESET);
10323
10501
  };
10324
10502
 
10325
10503
  // src/utilImports.js
@@ -10821,8 +10999,8 @@ var getComputedBackgroundColor = ({ props: props4 }) => {
10821
10999
  return (0, import_scratch6.getColor)(props4.shapeDirectionColor) || (0, import_scratch6.getColor)(props4.borderColor) || (0, import_scratch6.getColor)(props4.backgroundColor) || (0, import_scratch6.getColor)(props4.background);
10822
11000
  };
10823
11001
  var inheritTransition = ({ props: props4, deps }) => {
10824
- const exec4 = Timing.class.transition({ props: props4, deps });
10825
- return exec4 && exec4.transition;
11002
+ const exec5 = Timing.class.transition({ props: props4, deps });
11003
+ return exec5 && exec5.transition;
10826
11004
  };
10827
11005
  var SHAPES = {
10828
11006
  rectangle: {},
@@ -11022,8 +11200,8 @@ var Theme = {
11022
11200
  const globalTheme = deps.getSystemTheme(element);
11023
11201
  if (!props4.theme)
11024
11202
  return;
11025
- const getMediaTheme2 = deps.getMediaTheme(props4.theme, `@${props4.themeModifier || globalTheme}`);
11026
- return getMediaTheme2;
11203
+ const getMediaTheme3 = deps.getMediaTheme(props4.theme, `@${props4.themeModifier || globalTheme}`);
11204
+ return getMediaTheme3;
11027
11205
  },
11028
11206
  color: (element) => {
11029
11207
  const { props: props4, deps } = element;
@@ -11839,7 +12017,7 @@ var Icon = {
11839
12017
  const { toCamelCase: toCamelCase2 } = context && context.utils;
11840
12018
  const iconName = props4.name || props4.icon || key;
11841
12019
  const camelCase = toCamelCase2(deps.isString(iconName) ? iconName : key);
11842
- const isArray6 = camelCase.split(/([a-z])([A-Z])/g);
12020
+ const isArray8 = camelCase.split(/([a-z])([A-Z])/g);
11843
12021
  let activeIconName;
11844
12022
  if (props4.active) {
11845
12023
  activeIconName = props4[".active"].name || props4[".active"].icon;
@@ -11852,10 +12030,10 @@ var Icon = {
11852
12030
  validIconName = activeIconName;
11853
12031
  if (ICONS[camelCase])
11854
12032
  validIconName = camelCase;
11855
- else if (ICONS[isArray6[0] + isArray6[1]])
11856
- validIconName = isArray6[0] + isArray6[1];
11857
- else if (ICONS[isArray6[0]])
11858
- validIconName = isArray6[0];
12033
+ else if (ICONS[isArray8[0] + isArray8[1]])
12034
+ validIconName = isArray8[0] + isArray8[1];
12035
+ else if (ICONS[isArray8[0]])
12036
+ validIconName = isArray8[0];
11859
12037
  else {
11860
12038
  if (verbose)
11861
12039
  console.warn("Can't find icon:", iconName, validIconName);
@@ -12159,8 +12337,8 @@ var Link = {
12159
12337
  attr: {
12160
12338
  href: (el) => {
12161
12339
  const { context: ctx } = el;
12162
- const { exec: exec4 } = ctx.utils;
12163
- return exec4(el.props.href, el) || exec4(el.props, el).href;
12340
+ const { exec: exec5 } = ctx.utils;
12341
+ return exec5(el.props.href, el) || exec5(el.props, el).href;
12164
12342
  },
12165
12343
  target: ({ props: props4 }) => props4.target,
12166
12344
  "aria-label": ({ props: props4 }) => props4.aria ? props4.aria.label : props4.text,
@@ -12263,8 +12441,8 @@ var Input = {
12263
12441
  autocomplete: ({ props: props4 }) => props4.autocomplete,
12264
12442
  placeholder: ({ props: props4 }) => props4.placeholder,
12265
12443
  value: ({ props: props4, state, deps }) => {
12266
- const { isString: isString9, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
12267
- if (isString9(props4.value) && props4.value.includes("{{")) {
12444
+ const { isString: isString13, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
12445
+ if (isString13(props4.value) && props4.value.includes("{{")) {
12268
12446
  return replaceLiteralsWithObjectFields2(props4.value, state);
12269
12447
  }
12270
12448
  return props4.value;
@@ -13900,6 +14078,94 @@ var Modal = {
13900
14078
  Footer: { extend: Flex }
13901
14079
  };
13902
14080
 
14081
+ // ../../uikit/domql/Modal/node_modules/@symbo.ls/icon/index.js
14082
+ var import_utils16 = __toESM(require_cjs());
14083
+ var IconText2 = {
14084
+ extend: Flex,
14085
+ props: {
14086
+ align: "center center",
14087
+ lineHeight: 1
14088
+ },
14089
+ Icon: {
14090
+ props: ({ parent, props: props4 }) => ({ icon: parent.props.icon }),
14091
+ if: ({ parent, props: props4 }) => {
14092
+ const doesExist = parent.props.icon || parent.props.Icon || props4.name || props4.icon;
14093
+ return doesExist;
14094
+ }
14095
+ },
14096
+ text: ({ props: props4 }) => props4.text,
14097
+ ".reversed": {
14098
+ props: { flow: "row-reverse" }
14099
+ },
14100
+ ".vertical": {
14101
+ props: { flow: "column" }
14102
+ }
14103
+ };
14104
+
14105
+ // ../../uikit/domql/Modal/node_modules/@symbo.ls/button/index.js
14106
+ var Button2 = {
14107
+ extend: [IconText2, FocusableComponent],
14108
+ tag: "button",
14109
+ props: {
14110
+ fontSize: "A",
14111
+ type: "button",
14112
+ border: "none",
14113
+ display: "inline-flex",
14114
+ align: "center center",
14115
+ textDecoration: "none",
14116
+ lineHeight: "1",
14117
+ whiteSpace: "nowrap",
14118
+ padding: "Z A1",
14119
+ fontFamily: "inherit",
14120
+ round: "C2"
14121
+ },
14122
+ attr: {
14123
+ type: ({ props: props4 }) => props4.type
14124
+ }
14125
+ };
14126
+ var CommonButton2 = {
14127
+ extend: Button2,
14128
+ props: {
14129
+ theme: "primary",
14130
+ boxSize: "fit-content",
14131
+ padding: "A A2",
14132
+ round: "Z2",
14133
+ gap: "Y2",
14134
+ position: "relative"
14135
+ },
14136
+ Icon: {
14137
+ props: { fontSize: "C" }
14138
+ },
14139
+ Caption: {
14140
+ props: {
14141
+ text: "Button",
14142
+ lineHeight: "1em"
14143
+ }
14144
+ }
14145
+ };
14146
+ var CancelConfirmButtons2 = {
14147
+ extend: Flex,
14148
+ childExtend: {
14149
+ extend: CommonButton2,
14150
+ props: {
14151
+ minWidth: "D2",
14152
+ ":first-child": {
14153
+ background: "transparent",
14154
+ border: "1px solid #20202B"
14155
+ },
14156
+ ":last-child": {}
14157
+ }
14158
+ },
14159
+ ...[
14160
+ { Caption: { text: "No" } },
14161
+ { Caption: { text: "Yes" } }
14162
+ ],
14163
+ props: {
14164
+ gap: "Z",
14165
+ maxWidth: "fit-content"
14166
+ }
14167
+ };
14168
+
13903
14169
  // ../../uikit/domql/Modal/CompleteProcess.js
13904
14170
  var CompleteProcess = {
13905
14171
  extend: Modal,
@@ -13952,7 +14218,7 @@ var CompleteProcess = {
13952
14218
  }
13953
14219
  },
13954
14220
  Footer: {
13955
- extend: CommonButton,
14221
+ extend: CommonButton2,
13956
14222
  props: {
13957
14223
  minWidth: "100%",
13958
14224
  fontWeight: "500"
@@ -14124,7 +14390,7 @@ var VerificationCode = {
14124
14390
  padding: "Y2 - - -"
14125
14391
  },
14126
14392
  Buttons: {
14127
- extend: CancelConfirmButtons,
14393
+ extend: CancelConfirmButtons2,
14128
14394
  props: { childProps: { ":first-child": { border: "none" } } },
14129
14395
  ...[
14130
14396
  { Caption: { text: "Cancel" } },
@@ -14528,6 +14794,94 @@ var TimePickerItem = {
14528
14794
  Button_minus: { icon: "minus" }
14529
14795
  };
14530
14796
 
14797
+ // ../../uikit/domql/TimePicker/node_modules/@symbo.ls/icon/index.js
14798
+ var import_utils17 = __toESM(require_cjs());
14799
+ var IconText3 = {
14800
+ extend: Flex,
14801
+ props: {
14802
+ align: "center center",
14803
+ lineHeight: 1
14804
+ },
14805
+ Icon: {
14806
+ props: ({ parent, props: props4 }) => ({ icon: parent.props.icon }),
14807
+ if: ({ parent, props: props4 }) => {
14808
+ const doesExist = parent.props.icon || parent.props.Icon || props4.name || props4.icon;
14809
+ return doesExist;
14810
+ }
14811
+ },
14812
+ text: ({ props: props4 }) => props4.text,
14813
+ ".reversed": {
14814
+ props: { flow: "row-reverse" }
14815
+ },
14816
+ ".vertical": {
14817
+ props: { flow: "column" }
14818
+ }
14819
+ };
14820
+
14821
+ // ../../uikit/domql/TimePicker/node_modules/@symbo.ls/button/index.js
14822
+ var Button3 = {
14823
+ extend: [IconText3, FocusableComponent],
14824
+ tag: "button",
14825
+ props: {
14826
+ fontSize: "A",
14827
+ type: "button",
14828
+ border: "none",
14829
+ display: "inline-flex",
14830
+ align: "center center",
14831
+ textDecoration: "none",
14832
+ lineHeight: "1",
14833
+ whiteSpace: "nowrap",
14834
+ padding: "Z A1",
14835
+ fontFamily: "inherit",
14836
+ round: "C2"
14837
+ },
14838
+ attr: {
14839
+ type: ({ props: props4 }) => props4.type
14840
+ }
14841
+ };
14842
+ var CommonButton3 = {
14843
+ extend: Button3,
14844
+ props: {
14845
+ theme: "primary",
14846
+ boxSize: "fit-content",
14847
+ padding: "A A2",
14848
+ round: "Z2",
14849
+ gap: "Y2",
14850
+ position: "relative"
14851
+ },
14852
+ Icon: {
14853
+ props: { fontSize: "C" }
14854
+ },
14855
+ Caption: {
14856
+ props: {
14857
+ text: "Button",
14858
+ lineHeight: "1em"
14859
+ }
14860
+ }
14861
+ };
14862
+ var CancelConfirmButtons3 = {
14863
+ extend: Flex,
14864
+ childExtend: {
14865
+ extend: CommonButton3,
14866
+ props: {
14867
+ minWidth: "D2",
14868
+ ":first-child": {
14869
+ background: "transparent",
14870
+ border: "1px solid #20202B"
14871
+ },
14872
+ ":last-child": {}
14873
+ }
14874
+ },
14875
+ ...[
14876
+ { Caption: { text: "No" } },
14877
+ { Caption: { text: "Yes" } }
14878
+ ],
14879
+ props: {
14880
+ gap: "Z",
14881
+ maxWidth: "fit-content"
14882
+ }
14883
+ };
14884
+
14531
14885
  // ../../uikit/domql/TimePicker/TimeSwitcher.js
14532
14886
  var props3 = {
14533
14887
  boxSize: "C B2",
@@ -14540,7 +14894,7 @@ var TimeSwitcher = {
14540
14894
  props: props3,
14541
14895
  extend: Flex,
14542
14896
  childExtend: {
14543
- extend: Button,
14897
+ extend: Button3,
14544
14898
  props: ({ state, key }) => ({
14545
14899
  active: state.activeShift === key,
14546
14900
  padding: "0",
@@ -15923,7 +16277,7 @@ var defaultDefine = {
15923
16277
 
15924
16278
  // src/router.js
15925
16279
  var import_router2 = __toESM(require_cjs10(), 1);
15926
- var import_utils16 = __toESM(require_cjs(), 1);
16280
+ var import_utils18 = __toESM(require_cjs(), 1);
15927
16281
  var DEFAULT_ROUTING_OPTIONS = {
15928
16282
  initRouter: true,
15929
16283
  injectRouterInLinkComponent: true,
@@ -15935,16 +16289,16 @@ var initRouter = (element, options) => {
15935
16289
  else if (options.router === true)
15936
16290
  options.router = DEFAULT_ROUTING_OPTIONS;
15937
16291
  else
15938
- (0, import_utils16.merge)(options.router || {}, DEFAULT_ROUTING_OPTIONS);
16292
+ (0, import_utils18.merge)(options.router || {}, DEFAULT_ROUTING_OPTIONS);
15939
16293
  const routerOptions = options.router;
15940
16294
  const router2 = options.snippets && options.snippets.router ? options.snippets.router : import_router2.router;
15941
16295
  const onRouterRenderDefault = (el, s) => {
15942
- const { pathname, hash: hash2 } = import_utils16.window.location;
16296
+ const { pathname, hash: hash2 } = import_utils18.window.location;
15943
16297
  const url2 = pathname + hash2;
15944
16298
  if (el.routes)
15945
16299
  router2(url2, el, {}, { initialRender: true });
15946
16300
  };
15947
- const hasRenderRouter = element.on && !(0, import_utils16.isUndefined)(element.on.renderRouter);
16301
+ const hasRenderRouter = element.on && !(0, import_utils18.isUndefined)(element.on.renderRouter);
15948
16302
  if (routerOptions && routerOptions.initRouter && !hasRenderRouter) {
15949
16303
  if (element.on) {
15950
16304
  element.on.renderRouter = onRouterRenderDefault;
@@ -15966,20 +16320,20 @@ var popStateRouter = (element, options) => {
15966
16320
  if (!routerOptions.popState)
15967
16321
  return;
15968
16322
  const router2 = options.snippets && options.snippets.router ? options.snippets.router : import_router2.router;
15969
- import_utils16.window.onpopstate = (e) => {
15970
- const { pathname, hash: hash2 } = import_utils16.window.location;
16323
+ import_utils18.window.onpopstate = (e) => {
16324
+ const { pathname, hash: hash2 } = import_utils18.window.location;
15971
16325
  const url2 = pathname + hash2;
15972
16326
  router2(url2, element, {}, { pushState: false, level: 0 });
15973
16327
  };
15974
16328
  };
15975
16329
  var injectRouterInLinkComponent = (routerOptions) => {
15976
- if (routerOptions.injectRouterInLinkComponent) {
15977
- return (0, import_utils16.deepMerge)(Link, RouterLink);
16330
+ if (routerOptions && routerOptions.injectRouterInLinkComponent) {
16331
+ return (0, import_utils18.deepMerge)(Link, RouterLink);
15978
16332
  }
15979
16333
  };
15980
16334
 
15981
16335
  // src/ferchOnCreate.js
15982
- var import_utils17 = __toESM(require_cjs(), 1);
16336
+ var import_utils19 = __toESM(require_cjs(), 1);
15983
16337
  var import_fetch = __toESM(require_cjs12(), 1);
15984
16338
  var fetchSync = async (key, options) => {
15985
16339
  if (key && options.editor) {
@@ -15995,10 +16349,10 @@ var fetchAsync = (app, key, options, callback) => {
15995
16349
  if (key && options.editor) {
15996
16350
  try {
15997
16351
  const defaultCallback = (data) => {
15998
- if ((0, import_utils17.isObject)(data.designsystem)) {
16352
+ if ((0, import_utils19.isObject)(data.designsystem)) {
15999
16353
  options.utils.init(data.designsystem);
16000
16354
  }
16001
- if ((0, import_utils17.isObject)(data.state)) {
16355
+ if ((0, import_utils19.isObject)(data.state)) {
16002
16356
  app.state.set(data.state);
16003
16357
  }
16004
16358
  };
@@ -16011,10 +16365,10 @@ var fetchAsync = (app, key, options, callback) => {
16011
16365
  };
16012
16366
 
16013
16367
  // ../../node_modules/@domql/emotion/index.js
16014
- var import_utils19 = __toESM(require_cjs());
16368
+ var import_utils21 = __toESM(require_cjs());
16015
16369
 
16016
16370
  // ../../node_modules/@domql/classlist/index.js
16017
- var import_utils18 = __toESM(require_cjs());
16371
+ var import_utils20 = __toESM(require_cjs());
16018
16372
  var classify = (obj, element) => {
16019
16373
  let className = "";
16020
16374
  for (const item in obj) {
@@ -16024,7 +16378,7 @@ var classify = (obj, element) => {
16024
16378
  else if (typeof param === "string")
16025
16379
  className += ` ${param}`;
16026
16380
  else if (typeof param === "function") {
16027
- className += ` ${(0, import_utils18.exec)(param, element)}`;
16381
+ className += ` ${(0, import_utils20.exec)(param, element)}`;
16028
16382
  }
16029
16383
  }
16030
16384
  return className;
@@ -16035,9 +16389,9 @@ var classList = (params, element) => {
16035
16389
  const { key } = element;
16036
16390
  if (params === true)
16037
16391
  params = element.class = { key };
16038
- if ((0, import_utils18.isString)(params))
16392
+ if ((0, import_utils20.isString)(params))
16039
16393
  params = element.class = { default: params };
16040
- if ((0, import_utils18.isObject)(params))
16394
+ if ((0, import_utils20.isObject)(params))
16041
16395
  params = classify(params, element);
16042
16396
  const className = params.replace(/\s+/g, " ").trim();
16043
16397
  if (element.ref)
@@ -16051,38 +16405,38 @@ var applyClassListOnNode = (params, element, node2) => {
16051
16405
  };
16052
16406
 
16053
16407
  // ../../node_modules/@domql/emotion/index.js
16054
- var transformEmotionStyle = (emotion2) => {
16408
+ var transformEmotionStyle = (emotion4) => {
16055
16409
  return (params, element, state) => {
16056
- const execParams = (0, import_utils19.exec)(params, element);
16410
+ const execParams = (0, import_utils21.exec)(params, element);
16057
16411
  if (params) {
16058
- if ((0, import_utils19.isObjectLike)(element.class))
16412
+ if ((0, import_utils21.isObjectLike)(element.class))
16059
16413
  element.class.elementStyle = execParams;
16060
16414
  else
16061
16415
  element.class = { elementStyle: execParams };
16062
16416
  }
16063
- transformEmotionClass(emotion2)(element.class, element, element.state, true);
16417
+ transformEmotionClass(emotion4)(element.class, element, element.state, true);
16064
16418
  };
16065
16419
  };
16066
- var transformEmotionClass = (emotion2) => {
16420
+ var transformEmotionClass = (emotion4) => {
16067
16421
  return (params, element, state, flag) => {
16068
16422
  if (element.style && !flag)
16069
16423
  return;
16070
16424
  const { __ref } = element;
16071
16425
  const { __class, __classNames } = __ref;
16072
- if (!(0, import_utils19.isObjectLike)(params))
16426
+ if (!(0, import_utils21.isObjectLike)(params))
16073
16427
  return;
16074
16428
  for (const key in params) {
16075
- const prop = (0, import_utils19.exec)(params[key], element);
16429
+ const prop = (0, import_utils21.exec)(params[key], element);
16076
16430
  if (!prop) {
16077
16431
  delete __class[key];
16078
16432
  delete __classNames[key];
16079
16433
  continue;
16080
16434
  }
16081
- const isEqual = (0, import_utils19.isEqualDeep)(__class[key], prop);
16435
+ const isEqual = (0, import_utils21.isEqualDeep)(__class[key], prop);
16082
16436
  if (!isEqual) {
16083
- if (!(0, import_utils19.isProduction)() && (0, import_utils19.isObject)(prop))
16437
+ if (!(0, import_utils21.isProduction)() && (0, import_utils21.isObject)(prop))
16084
16438
  prop.label = key || element.key;
16085
- const CSSed = emotion2.css(prop);
16439
+ const CSSed = emotion4.css(prop);
16086
16440
  __class[key] = prop;
16087
16441
  __classNames[key] = CSSed;
16088
16442
  }
@@ -16090,17 +16444,24 @@ var transformEmotionClass = (emotion2) => {
16090
16444
  applyClassListOnNode(__classNames, element, element.node);
16091
16445
  };
16092
16446
  };
16093
- var transformDOMQLEmotion = (emotion2, options) => {
16094
- if (!emotion2)
16095
- emotion2 = createEmotion(options || { key: "smbls" });
16447
+ var transformDOMQLEmotion = (emotion4, options) => {
16448
+ if (!emotion4)
16449
+ emotion4 = createEmotion(options || { key: "smbls" });
16096
16450
  return {
16097
- style: transformEmotionStyle(emotion2),
16098
- class: transformEmotionClass(emotion2)
16451
+ style: transformEmotionStyle(emotion4),
16452
+ class: transformEmotionClass(emotion4)
16099
16453
  };
16100
16454
  };
16101
16455
 
16456
+ // node_modules/@symbo.ls/emotion/index.js
16457
+ var createEmotion4 = (key = "smbls", container) => {
16458
+ const cleanKey = key.replaceAll(/\./g, "-");
16459
+ return createEmotion({ key: cleanKey, container });
16460
+ };
16461
+ var emotion2 = createEmotion4();
16462
+
16102
16463
  // src/initEmotion.js
16103
- var import_utils20 = __toESM(require_cjs(), 1);
16464
+ var import_utils22 = __toESM(require_cjs(), 1);
16104
16465
 
16105
16466
  // src/options.js
16106
16467
  var DESIGN_SYSTEM_OPTIONS = {
@@ -16125,7 +16486,7 @@ var CREATE_OPTIONS = {
16125
16486
  };
16126
16487
  var options_default = CREATE_OPTIONS;
16127
16488
 
16128
- // ../../uikit/icons/default-icons/index.js
16489
+ // node_modules/@symbo.ls/default-icons/index.js
16129
16490
  var default_icons_default = {
16130
16491
  symbols: require_logo(),
16131
16492
  arrowDownCircle: require_arrow_down_circle(),
@@ -16169,7 +16530,7 @@ var default_icons_default = {
16169
16530
  plus: require_plus()
16170
16531
  };
16171
16532
 
16172
- // ../default-config/src/color.js
16533
+ // node_modules/@symbo.ls/default-config/src/color.js
16173
16534
  var COLOR = {
16174
16535
  transparent: "rgba(0, 0, 0, 0)",
16175
16536
  black: "black",
@@ -16222,7 +16583,7 @@ var GRADIENT = {
16222
16583
  )`
16223
16584
  };
16224
16585
 
16225
- // ../default-config/src/theme.js
16586
+ // node_modules/@symbo.ls/default-config/src/theme.js
16226
16587
  var PRIORITIES = {
16227
16588
  primary: {
16228
16589
  "@dark": {
@@ -16377,7 +16738,7 @@ var THEME = {
16377
16738
  }
16378
16739
  };
16379
16740
 
16380
- // ../default-config/src/typography.js
16741
+ // node_modules/@symbo.ls/default-config/src/typography.js
16381
16742
  var TYPOGRAPHY = {
16382
16743
  base: 16,
16383
16744
  ratio: 1.125,
@@ -16385,14 +16746,14 @@ var TYPOGRAPHY = {
16385
16746
  templates: {}
16386
16747
  };
16387
16748
 
16388
- // ../default-config/src/spacing.js
16749
+ // node_modules/@symbo.ls/default-config/src/spacing.js
16389
16750
  var SPACING = {
16390
16751
  base: 16,
16391
16752
  ratio: 1.618,
16392
16753
  subSequence: true
16393
16754
  };
16394
16755
 
16395
- // ../default-config/src/font.js
16756
+ // node_modules/@symbo.ls/default-config/src/font.js
16396
16757
  var FONT = {};
16397
16758
  var FONT_FAMILY = {
16398
16759
  system: {
@@ -16402,7 +16763,7 @@ var FONT_FAMILY = {
16402
16763
  }
16403
16764
  };
16404
16765
 
16405
- // ../default-config/src/index.js
16766
+ // node_modules/@symbo.ls/default-config/src/index.js
16406
16767
  var DEFAULT_CONFIG = {
16407
16768
  version: "0.0.1",
16408
16769
  COLOR,
@@ -16441,25 +16802,25 @@ var src_default = DEFAULT_CONFIG;
16441
16802
  var initEmotion = (key, options = DESIGN_SYSTEM_OPTIONS) => {
16442
16803
  const doc = options.parent || options.document || document;
16443
16804
  const initOptions = options.initOptions || {};
16444
- const emotion2 = initOptions.emotion;
16805
+ const emotion4 = initOptions.emotion;
16445
16806
  if (!initOptions.emotion)
16446
- initOptions.emotion = emotion;
16807
+ initOptions.emotion = emotion2;
16447
16808
  const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
16448
- const designSystem = options.designSystem || (options.defaultConfig ? (0, import_utils20.deepClone)(src_default) : {});
16809
+ const designSystem = options.designSystem || (options.defaultConfig ? (0, import_utils22.deepClone)(src_default) : {});
16449
16810
  const scratchSystem2 = init(designSystem, {
16450
16811
  key,
16451
- emotion: emotion2,
16812
+ emotion: emotion4,
16452
16813
  verbose: options.verbose,
16453
16814
  document: doc,
16454
16815
  ...DESIGN_SYSTEM_OPTIONS,
16455
16816
  ...initOptions
16456
16817
  });
16457
- return [scratchSystem2, emotion2, registry];
16818
+ return [scratchSystem2, emotion4, registry];
16458
16819
  };
16459
16820
 
16460
16821
  // ../socket-ui/byld-socket.js
16461
16822
  var import_router3 = __toESM(require_cjs10());
16462
- var import_scratch14 = __toESM(require_cjs9());
16823
+ var import_scratch23 = __toESM(require_cjs9());
16463
16824
 
16464
16825
  // ../socket/client.js
16465
16826
  var utils = __toESM(require_cjs(), 1);
@@ -19858,11 +20219,124 @@ function send(event = "change", changes, options) {
19858
20219
  this.emit(event, changes, { ...options, ...defautlOpts });
19859
20220
  }
19860
20221
 
20222
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Block.js
20223
+ var import_scratch14 = __toESM(require_cjs9());
20224
+
20225
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Flex.js
20226
+ var Flex2 = {
20227
+ props: {
20228
+ display: "flex"
20229
+ },
20230
+ class: {
20231
+ flow: ({ props: props4 }) => props4.flow && { flexFlow: props4.flow },
20232
+ wrap: ({ props: props4 }) => props4.wrap && { flexWrap: props4.wrap },
20233
+ align: ({ props: props4 }) => {
20234
+ if (typeof props4.align !== "string")
20235
+ return;
20236
+ const [alignItems, justifyContent] = props4.align.split(" ");
20237
+ return { alignItems, justifyContent };
20238
+ }
20239
+ }
20240
+ };
20241
+
20242
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Grid.js
20243
+ var import_scratch15 = __toESM(require_cjs9());
20244
+
20245
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Media.js
20246
+ var import_utils24 = __toESM(require_cjs());
20247
+
20248
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Theme.js
20249
+ var import_scratch18 = __toESM(require_cjs9());
20250
+
20251
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Shape/style.js
20252
+ var import_scratch17 = __toESM(require_cjs9());
20253
+
20254
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Timing.js
20255
+ var import_scratch16 = __toESM(require_cjs9());
20256
+
20257
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Shape/style.js
20258
+ var CONFIG3 = (0, import_scratch17.getActiveConfig)();
20259
+ var depth2 = {
20260
+ 4: { boxShadow: `rgba(0,0,0,.10) 0 2${CONFIG3.UNIT.default} 4${CONFIG3.UNIT.default}` },
20261
+ 6: { boxShadow: `rgba(0,0,0,.10) 0 3${CONFIG3.UNIT.default} 6${CONFIG3.UNIT.default}` },
20262
+ 10: { boxShadow: `rgba(0,0,0,.10) 0 4${CONFIG3.UNIT.default} 10${CONFIG3.UNIT.default}` },
20263
+ 16: { boxShadow: `rgba(0,0,0,.10) 0 8${CONFIG3.UNIT.default} 16${CONFIG3.UNIT.default}` },
20264
+ 26: { boxShadow: `rgba(0,0,0,.10) 0 14${CONFIG3.UNIT.default} 26${CONFIG3.UNIT.default}` },
20265
+ 42: { boxShadow: `rgba(0,0,0,.10) 0 20${CONFIG3.UNIT.default} 42${CONFIG3.UNIT.default}` }
20266
+ };
20267
+
20268
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Theme.js
20269
+ var import_utils23 = __toESM(require_cjs());
20270
+
20271
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Collection.js
20272
+ var import_state2 = __toESM(require_cjs5());
20273
+ var import_utils25 = __toESM(require_cjs());
20274
+
20275
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Position.js
20276
+ var import_scratch19 = __toESM(require_cjs9());
20277
+
20278
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Shape/index.js
20279
+ var import_utils26 = __toESM(require_cjs());
20280
+ var import_scratch20 = __toESM(require_cjs9());
20281
+
20282
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Text.js
20283
+ var import_scratch21 = __toESM(require_cjs9());
20284
+
20285
+ // ../socket-ui/node_modules/@symbo.ls/atoms/Animation.js
20286
+ var import_scratch22 = __toESM(require_cjs9());
20287
+ var import_utils27 = __toESM(require_cjs());
20288
+
20289
+ // ../socket-ui/node_modules/@symbo.ls/emotion/index.js
20290
+ var createEmotion5 = (key = "smbls", container) => {
20291
+ const cleanKey = key.replaceAll(/\./g, "-");
20292
+ return createEmotion({ key: cleanKey, container });
20293
+ };
20294
+ var emotion3 = createEmotion5();
20295
+
20296
+ // ../socket-ui/node_modules/@symbo.ls/notification/index.js
20297
+ var Notification2 = {
20298
+ extend: Flex2,
20299
+ props: {
20300
+ theme: "alert",
20301
+ padding: "Z1 B Z A",
20302
+ round: "A A A Y2",
20303
+ gap: "X2",
20304
+ cursor: "pointer",
20305
+ align: "flex-start center"
20306
+ },
20307
+ IconText: {
20308
+ props: {
20309
+ icon: "info outline"
20310
+ }
20311
+ },
20312
+ Flex: {
20313
+ props: {
20314
+ flow: "column",
20315
+ align: "flex-start",
20316
+ gap: "X2"
20317
+ },
20318
+ Title: {
20319
+ props: {
20320
+ fontWeight: "600",
20321
+ lineHeight: "1em",
20322
+ text: "Notification"
20323
+ }
20324
+ },
20325
+ P: {
20326
+ props: {
20327
+ fontSize: "Z",
20328
+ margin: "0",
20329
+ text: "is not always a distraction"
20330
+ }
20331
+ }
20332
+ }
20333
+ };
20334
+
19861
20335
  // ../socket-ui/byld-socket.js
19862
20336
  var import_globals = __toESM(require_cjs11());
19863
20337
 
19864
20338
  // ../socket-ui/devFocus.js
19865
- var import_utils21 = __toESM(require_cjs());
20339
+ var import_utils28 = __toESM(require_cjs());
19866
20340
  var DevFocus = {
19867
20341
  props: {
19868
20342
  ".preventSelect": {
@@ -19916,7 +20390,7 @@ var DevFocus = {
19916
20390
  on: {
19917
20391
  init: ({ context }) => {
19918
20392
  const { components } = context;
19919
- if ((0, import_utils21.isObject)(components)) {
20393
+ if ((0, import_utils28.isObject)(components)) {
19920
20394
  const { Content, ...rest } = components;
19921
20395
  for (const key in rest) {
19922
20396
  if (domql_exports[key])
@@ -20025,7 +20499,7 @@ var COLOR2 = {
20025
20499
  black: "#000000",
20026
20500
  blue: "#3686F7"
20027
20501
  };
20028
- (0, import_scratch14.set)({
20502
+ (0, import_scratch23.set)({
20029
20503
  COLOR: COLOR2,
20030
20504
  ANIMATION
20031
20505
  });
@@ -20103,7 +20577,7 @@ var Notifications = {
20103
20577
  zIndex: "999"
20104
20578
  },
20105
20579
  childExtend: {
20106
- extend: [Notification],
20580
+ extend: [Notification2],
20107
20581
  props: ({ state }) => ({
20108
20582
  animation: "fadeInUp",
20109
20583
  animationDuration: "C",
@@ -20138,15 +20612,15 @@ var Sync = {
20138
20612
  };
20139
20613
 
20140
20614
  // src/syncExtend.js
20141
- var import_utils22 = __toESM(require_cjs(), 1);
20615
+ var import_utils29 = __toESM(require_cjs(), 1);
20142
20616
  var applySyncDebug = (extend, options) => {
20143
20617
  const { editor } = options;
20144
20618
  if (!editor)
20145
20619
  return extend;
20146
- const inspect = (0, import_utils22.isUndefined)(editor.inspect) ? (0, import_utils22.isDevelopment)() : editor.inspect;
20620
+ const inspect = (0, import_utils29.isUndefined)(editor.inspect) ? (0, import_utils29.isDevelopment)() : editor.inspect;
20147
20621
  if (inspect)
20148
20622
  extend.push(DevFocus);
20149
- const liveSync = (0, import_utils22.isUndefined)(editor.liveSync) ? (0, import_utils22.isDevelopment)() : editor.liveSync;
20623
+ const liveSync = (0, import_utils29.isUndefined)(editor.liveSync) ? (0, import_utils29.isDevelopment)() : editor.liveSync;
20150
20624
  if (liveSync)
20151
20625
  extend.push(Sync);
20152
20626
  return extend;
@@ -20155,7 +20629,7 @@ var applyInspectListener = (root, options) => {
20155
20629
  const { editor } = options;
20156
20630
  if (!editor)
20157
20631
  return;
20158
- const inspect = (0, import_utils22.isUndefined)(editor.inspect) ? (0, import_utils22.isDevelopment)() : editor.inspect;
20632
+ const inspect = (0, import_utils29.isUndefined)(editor.inspect) ? (0, import_utils29.isDevelopment)() : editor.inspect;
20159
20633
  if (inspect)
20160
20634
  inspectOnKey(root);
20161
20635
  };
@@ -20163,11 +20637,11 @@ var applyInspectListener = (root, options) => {
20163
20637
  // src/index.js
20164
20638
  var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
20165
20639
  var mergeWithLocalFile2 = (options, optionsExternalFile) => {
20166
- const rcfile = (0, import_utils23.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
20167
- return (0, import_utils23.deepMerge)(options, rcfile);
20640
+ const rcfile = (0, import_utils30.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
20641
+ return (0, import_utils30.deepMerge)(options, rcfile);
20168
20642
  };
20169
20643
  var create = async (App, options = options_default, optionsExternalFile) => {
20170
- const appIsKey = (0, import_utils23.isString)(App);
20644
+ const appIsKey = (0, import_utils30.isString)(App);
20171
20645
  options = { ...options_default, ...mergeWithLocalFile2(options, optionsExternalFile) };
20172
20646
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
20173
20647
  if (appIsKey)
@@ -20181,12 +20655,12 @@ var create = async (App, options = options_default, optionsExternalFile) => {
20181
20655
  document = window.document;
20182
20656
  }
20183
20657
  const doc = options.parent || options.document || document;
20184
- const [scratcDesignhSystem, emotion2, registry] = initEmotion(key, options);
20658
+ const [scratcDesignhSystem, emotion4, registry] = initEmotion(key, options);
20185
20659
  const state = {};
20186
20660
  if (options.state)
20187
- (0, import_utils23.deepMerge)(state, options.state);
20661
+ (0, import_utils30.deepMerge)(state, options.state);
20188
20662
  if (App && App.state)
20189
- (0, import_utils23.deepMerge)(state, App.state);
20663
+ (0, import_utils30.deepMerge)(state, App.state);
20190
20664
  const pages = options.pages || {};
20191
20665
  const components = options.components ? { ...domql_exports, ...options.components } : domql_exports;
20192
20666
  const designSystem = scratcDesignhSystem || {};
@@ -20194,7 +20668,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
20194
20668
  const define = options.define || defaultDefine;
20195
20669
  const routerOptions = initRouter(App, options);
20196
20670
  const extend = applySyncDebug([App], options);
20197
- const domqlApp = (import_domql.default.default.create || import_domql.default.create)({
20671
+ const domqlApp = (import_domql.default.default && import_domql.default.default.create || import_domql.default.create)({
20198
20672
  extend,
20199
20673
  routes: options.pages,
20200
20674
  state,
@@ -20208,7 +20682,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
20208
20682
  utils: snippets,
20209
20683
  define,
20210
20684
  registry,
20211
- emotion: emotion2,
20685
+ emotion: emotion4,
20212
20686
  routerOptions,
20213
20687
  document: doc
20214
20688
  }
@@ -20228,7 +20702,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
20228
20702
  return domqlApp;
20229
20703
  };
20230
20704
  var createSync = (App, options = options_default, optionsExternalFile) => {
20231
- const appIsKey = (0, import_utils23.isString)(App);
20705
+ const appIsKey = (0, import_utils30.isString)(App);
20232
20706
  options = mergeWithLocalFile2(options, optionsExternalFile);
20233
20707
  const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
20234
20708
  if (appIsKey)
@@ -20247,7 +20721,7 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
20247
20721
  parent = options.document;
20248
20722
  else
20249
20723
  parent = document.body;
20250
- const [scratcDesignhSystem, emotion2, registry] = initEmotion(key, options);
20724
+ const [scratcDesignhSystem, emotion4, registry] = initEmotion(key, options);
20251
20725
  let state;
20252
20726
  if (options.state)
20253
20727
  state = options.state;
@@ -20275,7 +20749,7 @@ var createSync = (App, options = options_default, optionsExternalFile) => {
20275
20749
  utils: snippets,
20276
20750
  define,
20277
20751
  registry,
20278
- emotion: emotion2,
20752
+ emotion: emotion4,
20279
20753
  // routerOptions,
20280
20754
  document
20281
20755
  }