@symbo.ls/uikit 2.11.14 → 2.11.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // ../../packages/scratch/dist/cjs/index.js
33
+ // node_modules/@symbo.ls/scratch/dist/cjs/index.js
34
34
  var require_cjs = __commonJS({
35
- "../../packages/scratch/dist/cjs/index.js"(exports, module2) {
35
+ "node_modules/@symbo.ls/scratch/dist/cjs/index.js"(exports, module2) {
36
36
  "use strict";
37
37
  var __create2 = Object.create;
38
38
  var __defProp2 = Object.defineProperty;
@@ -64,7 +64,7 @@ var require_cjs = __commonJS({
64
64
  mod
65
65
  ));
66
66
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
67
- var require_cjs11 = __commonJS2({
67
+ var require_cjs12 = __commonJS2({
68
68
  "../../node_modules/@domql/globals/dist/cjs/index.js"(exports2, module22) {
69
69
  "use strict";
70
70
  var __defProp22 = Object.defineProperty;
@@ -344,7 +344,7 @@ var require_cjs = __commonJS({
344
344
  isNode: () => isNode
345
345
  });
346
346
  module22.exports = __toCommonJS22(node_exports);
347
- var import_globals3 = require_cjs11();
347
+ var import_globals3 = require_cjs12();
348
348
  var isNode = (obj) => {
349
349
  return (typeof Node === "object" ? obj instanceof import_globals3.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
350
350
  };
@@ -478,15 +478,17 @@ var require_cjs = __commonJS({
478
478
  isEqualDeep: () => isEqualDeep,
479
479
  map: () => map,
480
480
  merge: () => merge52,
481
+ mergeAndCloneIfArray: () => mergeAndCloneIfArray2,
482
+ mergeArray: () => mergeArray2,
483
+ mergeArrayExclude: () => mergeArrayExclude2,
481
484
  mergeIfExisted: () => mergeIfExisted,
482
485
  overwrite: () => overwrite,
483
486
  overwriteDeep: () => overwriteDeep2,
484
487
  overwriteObj: () => overwriteObj,
485
- overwriteShallow: () => overwriteShallow2,
486
488
  removeFromObject: () => removeFromObject2
487
489
  });
488
490
  module22.exports = __toCommonJS22(object_exports);
489
- var import_globals3 = require_cjs11();
491
+ var import_globals3 = require_cjs12();
490
492
  var import_types = require_types2();
491
493
  var exec6 = (param, element, state, context) => {
492
494
  if ((0, import_types.isFunction)(param)) {
@@ -513,12 +515,12 @@ var require_cjs = __commonJS({
513
515
  }
514
516
  return element;
515
517
  };
516
- var deepMerge3 = (element, extend, excludeFrom = []) => {
518
+ var deepMerge3 = (element, extend) => {
517
519
  for (const e2 in extend) {
518
- if (excludeFrom.includes(e2) || e2.includes("__"))
519
- continue;
520
520
  const elementProp = element[e2];
521
521
  const extendProp = extend[e2];
522
+ if (e2 === "parent" || e2 === "props")
523
+ continue;
522
524
  if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
523
525
  deepMerge3(elementProp, extendProp);
524
526
  } else if (elementProp === void 0) {
@@ -527,47 +529,53 @@ var require_cjs = __commonJS({
527
529
  }
528
530
  return element;
529
531
  };
530
- var clone = (obj, excludeFrom = []) => {
532
+ var clone = (obj) => {
531
533
  const o = {};
532
534
  for (const prop in obj) {
533
- if (excludeFrom.includes(e) || e.includes("__"))
535
+ if (prop === "node")
534
536
  continue;
535
537
  o[prop] = obj[prop];
536
538
  }
537
539
  return o;
538
540
  };
539
- var deepCloneExclude = (obj, excludeFrom = []) => {
541
+ var deepCloneExclude = (obj, exclude = []) => {
540
542
  if ((0, import_types.isArray)(obj)) {
541
- return obj.map((x) => deepCloneExclude(x, excludeFrom));
543
+ return obj.map((x) => deepCloneExclude(x, exclude));
542
544
  }
543
545
  const o = {};
544
546
  for (const k in obj) {
545
- if (excludeFrom.includes(k) || k.includes("__"))
547
+ if (exclude.indexOf(k) > -1)
546
548
  continue;
547
549
  let v = obj[k];
548
550
  if (k === "extend" && (0, import_types.isArray)(v)) {
549
- v = mergeArrayExclude(v, excludeFrom);
551
+ v = mergeArrayExclude2(v, exclude);
550
552
  }
551
553
  if ((0, import_types.isArray)(v)) {
552
- o[k] = v.map((x) => deepCloneExclude(x, excludeFrom));
554
+ o[k] = v.map((x) => deepCloneExclude(x, exclude));
553
555
  } else if ((0, import_types.isObject)(v)) {
554
- o[k] = deepCloneExclude(v, excludeFrom);
556
+ o[k] = deepCloneExclude(v, exclude);
555
557
  } else
556
558
  o[k] = v;
557
559
  }
558
560
  return o;
559
561
  };
560
- var deepClone22 = (obj, excludeFrom = []) => {
561
- const o = (0, import_types.isArray)(obj) ? [] : {};
562
+ var mergeArrayExclude2 = (arr, excl = []) => {
563
+ return arr.reduce((acc, curr) => deepMerge3(acc, deepCloneExclude(curr, excl)), {});
564
+ };
565
+ var deepClone22 = (obj) => {
566
+ if ((0, import_types.isArray)(obj)) {
567
+ return obj.map(deepClone22);
568
+ }
569
+ const o = {};
562
570
  for (const prop in obj) {
563
- if (excludeFrom.includes(prop) || prop.includes("__"))
564
- continue;
565
571
  let objProp = obj[prop];
566
572
  if (prop === "extend" && (0, import_types.isArray)(objProp)) {
567
- objProp = mergeArray(objProp);
573
+ objProp = mergeArray2(objProp);
568
574
  }
569
- if ((0, import_types.isObjectLike)(objProp)) {
570
- o[prop] = deepClone22(objProp, excludeFrom);
575
+ if ((0, import_types.isArray)(objProp)) {
576
+ o[prop] = objProp.map((v) => (0, import_types.isObject)(v) ? deepClone22(v) : v);
577
+ } else if ((0, import_types.isObject)(objProp)) {
578
+ o[prop] = deepClone22(objProp);
571
579
  } else
572
580
  o[prop] = objProp;
573
581
  }
@@ -669,11 +677,11 @@ var require_cjs = __commonJS({
669
677
  }
670
678
  return stringified;
671
679
  };
672
- var overwrite = (element, params, excludeFrom = []) => {
680
+ var overwrite = (element, params, options) => {
673
681
  const { ref } = element;
674
682
  const changes = {};
675
683
  for (const e2 in params) {
676
- if (excludeFrom.includes(e2) || e2.includes("__"))
684
+ if (e2 === "props")
677
685
  continue;
678
686
  const elementProp = element[e2];
679
687
  const paramsProp = params[e2];
@@ -736,18 +744,8 @@ var require_cjs = __commonJS({
736
744
  }
737
745
  return changes;
738
746
  };
739
- var overwriteShallow2 = (obj, params, excludeFrom = []) => {
740
- for (const e2 in params) {
741
- if (excludeFrom.includes(e2) || e2.includes("__"))
742
- continue;
743
- obj[e2] = params[e2];
744
- }
745
- return obj;
746
- };
747
- var overwriteDeep2 = (params, obj, excludeFrom = []) => {
747
+ var overwriteDeep2 = (params, obj) => {
748
748
  for (const e2 in params) {
749
- if (excludeFrom.includes(e2) || e2.includes("__"))
750
- continue;
751
749
  const objProp = obj[e2];
752
750
  const paramsProp = params[e2];
753
751
  if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
@@ -763,8 +761,14 @@ var require_cjs = __commonJS({
763
761
  return deepMerge3(a, b);
764
762
  return a || b;
765
763
  };
764
+ var mergeArray2 = (arr) => {
765
+ return arr.reduce((a, c) => deepMerge3(a, deepClone22(c)), {});
766
+ };
767
+ var mergeAndCloneIfArray2 = (obj) => {
768
+ return (0, import_types.isArray)(obj) ? mergeArray2(obj) : deepClone22(obj);
769
+ };
766
770
  var flattenRecursive = (param, prop, stack = []) => {
767
- const objectized = mergeAndCloneIfArray(param);
771
+ const objectized = mergeAndCloneIfArray2(param);
768
772
  stack.push(objectized);
769
773
  const extendOfExtend = objectized[prop];
770
774
  if (extendOfExtend)
@@ -880,13 +884,10 @@ var require_cjs = __commonJS({
880
884
  __export22(array_exports, {
881
885
  arrayContainsOtherArray: () => arrayContainsOtherArray2,
882
886
  joinArrays: () => joinArrays,
883
- mergeAndCloneIfArray: () => mergeAndCloneIfArray2,
884
- mergeArray: () => mergeArray2,
885
887
  removeFromArray: () => removeFromArray2,
886
888
  swapItemsInArray: () => swapItemsInArray
887
889
  });
888
890
  module22.exports = __toCommonJS22(array_exports);
889
- var import_object = require_object2();
890
891
  var import_types = require_types2();
891
892
  var arrayContainsOtherArray2 = (arr1, arr2) => {
892
893
  return arr2.every((val) => arr1.includes(val));
@@ -912,12 +913,6 @@ var require_cjs = __commonJS({
912
913
  var joinArrays = (...arrays) => {
913
914
  return [].concat(...arrays);
914
915
  };
915
- var mergeArray2 = (arr, excludeFrom = []) => {
916
- return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
917
- };
918
- var mergeAndCloneIfArray2 = (obj) => {
919
- return (0, import_types.isArray)(obj) ? mergeArray2(obj) : (0, import_object.deepClone)(obj);
920
- };
921
916
  }
922
917
  });
923
918
  var require_log2 = __commonJS2({
@@ -1133,7 +1128,7 @@ var require_cjs = __commonJS({
1133
1128
  setInCustomFontMedia: () => setInCustomFontMedia,
1134
1129
  setVariables: () => setVariables
1135
1130
  });
1136
- var import_globals = __toESM2(require_cjs11(), 1);
1131
+ var import_globals = __toESM2(require_cjs12(), 1);
1137
1132
  var ENV = "development";
1138
1133
  var colorStringToRgbaArray = (color) => {
1139
1134
  if (color === "")
@@ -2375,7 +2370,7 @@ var require_cjs = __commonJS({
2375
2370
  lineHeight: TYPOGRAPHY2.lineHeight
2376
2371
  });
2377
2372
  };
2378
- var import_globals2 = __toESM2(require_cjs11(), 1);
2373
+ var import_globals2 = __toESM2(require_cjs12(), 1);
2379
2374
  var DEF_OPTIONS = {
2380
2375
  document: import_globals2.document
2381
2376
  };
@@ -3125,7 +3120,7 @@ var require_object = __commonJS({
3125
3120
  overwrite: () => overwrite,
3126
3121
  overwriteDeep: () => overwriteDeep2,
3127
3122
  overwriteObj: () => overwriteObj,
3128
- overwriteShallow: () => overwriteShallow2,
3123
+ overwriteShallow: () => overwriteShallow3,
3129
3124
  removeFromObject: () => removeFromObject2
3130
3125
  });
3131
3126
  module2.exports = __toCommonJS2(object_exports);
@@ -3379,7 +3374,7 @@ var require_object = __commonJS({
3379
3374
  }
3380
3375
  return changes;
3381
3376
  };
3382
- var overwriteShallow2 = (obj, params, excludeFrom = []) => {
3377
+ var overwriteShallow3 = (obj, params, excludeFrom = []) => {
3383
3378
  for (const e2 in params) {
3384
3379
  if (excludeFrom.includes(e2) || e2.includes("__"))
3385
3380
  continue;
@@ -3884,7 +3879,7 @@ var require_cjs8 = __commonJS({
3884
3879
  mod
3885
3880
  ));
3886
3881
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
3887
- var require_cjs11 = __commonJS2({
3882
+ var require_cjs12 = __commonJS2({
3888
3883
  "../../node_modules/@domql/globals/dist/cjs/index.js"(exports2, module22) {
3889
3884
  "use strict";
3890
3885
  var __defProp22 = Object.defineProperty;
@@ -4164,7 +4159,7 @@ var require_cjs8 = __commonJS({
4164
4159
  isNode: () => isNode
4165
4160
  });
4166
4161
  module22.exports = __toCommonJS22(node_exports);
4167
- var import_globals3 = require_cjs11();
4162
+ var import_globals3 = require_cjs12();
4168
4163
  var isNode = (obj) => {
4169
4164
  return (typeof Node === "object" ? obj instanceof import_globals3.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
4170
4165
  };
@@ -4308,7 +4303,7 @@ var require_cjs8 = __commonJS({
4308
4303
  removeFromObject: () => removeFromObject2
4309
4304
  });
4310
4305
  module22.exports = __toCommonJS22(object_exports);
4311
- var import_globals3 = require_cjs11();
4306
+ var import_globals3 = require_cjs12();
4312
4307
  var import_types = require_types2();
4313
4308
  var exec6 = (param, element, state, context) => {
4314
4309
  if ((0, import_types.isFunction)(param)) {
@@ -4948,7 +4943,7 @@ var require_cjs8 = __commonJS({
4948
4943
  setInCustomFontMedia: () => setInCustomFontMedia,
4949
4944
  setVariables: () => setVariables
4950
4945
  });
4951
- var import_globals = __toESM2(require_cjs11(), 1);
4946
+ var import_globals = __toESM2(require_cjs12(), 1);
4952
4947
  var ENV = "development";
4953
4948
  var colorStringToRgbaArray = (color) => {
4954
4949
  if (color === "")
@@ -6190,7 +6185,7 @@ var require_cjs8 = __commonJS({
6190
6185
  lineHeight: TYPOGRAPHY2.lineHeight
6191
6186
  });
6192
6187
  };
6193
- var import_globals2 = __toESM2(require_cjs11(), 1);
6188
+ var import_globals2 = __toESM2(require_cjs12(), 1);
6194
6189
  var DEF_OPTIONS = {
6195
6190
  document: import_globals2.document
6196
6191
  };
@@ -6600,9 +6595,9 @@ var require_cjs9 = __commonJS({
6600
6595
  }
6601
6596
  });
6602
6597
 
6603
- // Notification/node_modules/@symbo.ls/scratch/dist/cjs/index.js
6598
+ // ../../packages/scratch/dist/cjs/index.js
6604
6599
  var require_cjs10 = __commonJS({
6605
- "Notification/node_modules/@symbo.ls/scratch/dist/cjs/index.js"(exports, module2) {
6600
+ "../../packages/scratch/dist/cjs/index.js"(exports, module2) {
6606
6601
  "use strict";
6607
6602
  var __create2 = Object.create;
6608
6603
  var __defProp2 = Object.defineProperty;
@@ -6634,7 +6629,7 @@ var require_cjs10 = __commonJS({
6634
6629
  mod
6635
6630
  ));
6636
6631
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
6637
- var require_cjs11 = __commonJS2({
6632
+ var require_cjs12 = __commonJS2({
6638
6633
  "../../node_modules/@domql/globals/dist/cjs/index.js"(exports2, module22) {
6639
6634
  "use strict";
6640
6635
  var __defProp22 = Object.defineProperty;
@@ -6914,7 +6909,7 @@ var require_cjs10 = __commonJS({
6914
6909
  isNode: () => isNode
6915
6910
  });
6916
6911
  module22.exports = __toCommonJS22(node_exports);
6917
- var import_globals3 = require_cjs11();
6912
+ var import_globals3 = require_cjs12();
6918
6913
  var isNode = (obj) => {
6919
6914
  return (typeof Node === "object" ? obj instanceof import_globals3.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
6920
6915
  };
@@ -6947,7 +6942,7 @@ var require_cjs10 = __commonJS({
6947
6942
  __export22(types_exports, {
6948
6943
  TYPES: () => TYPES,
6949
6944
  is: () => is2,
6950
- isArray: () => isArray52,
6945
+ isArray: () => isArray62,
6951
6946
  isBoolean: () => isBoolean,
6952
6947
  isDefined: () => isDefined2,
6953
6948
  isFunction: () => isFunction22,
@@ -6974,21 +6969,21 @@ var require_cjs10 = __commonJS({
6974
6969
  var isFunction22 = (arg) => typeof arg === "function";
6975
6970
  var isBoolean = (arg) => arg === true || arg === false;
6976
6971
  var isNull = (arg) => arg === null;
6977
- var isArray52 = (arg) => Array.isArray(arg);
6972
+ var isArray62 = (arg) => Array.isArray(arg);
6978
6973
  var isObjectLike32 = (arg) => {
6979
6974
  if (arg === null)
6980
6975
  return false;
6981
6976
  return typeof arg === "object";
6982
6977
  };
6983
6978
  var isDefined2 = (arg) => {
6984
- return isObject72(arg) || isObjectLike32(arg) || isString8(arg) || isNumber(arg) || isFunction22(arg) || isArray52(arg) || isObjectLike32(arg) || isBoolean(arg) || isNull(arg);
6979
+ return isObject72(arg) || isObjectLike32(arg) || isString8(arg) || isNumber(arg) || isFunction22(arg) || isArray62(arg) || isObjectLike32(arg) || isBoolean(arg) || isNull(arg);
6985
6980
  };
6986
6981
  var isUndefined2 = (arg) => {
6987
6982
  return arg === void 0;
6988
6983
  };
6989
6984
  var TYPES = {
6990
6985
  boolean: isBoolean,
6991
- array: isArray52,
6986
+ array: isArray62,
6992
6987
  object: isObject72,
6993
6988
  string: isString8,
6994
6989
  number: isNumber,
@@ -7048,17 +7043,15 @@ var require_cjs10 = __commonJS({
7048
7043
  isEqualDeep: () => isEqualDeep,
7049
7044
  map: () => map,
7050
7045
  merge: () => merge52,
7051
- mergeAndCloneIfArray: () => mergeAndCloneIfArray2,
7052
- mergeArray: () => mergeArray2,
7053
- mergeArrayExclude: () => mergeArrayExclude2,
7054
7046
  mergeIfExisted: () => mergeIfExisted,
7055
7047
  overwrite: () => overwrite,
7056
7048
  overwriteDeep: () => overwriteDeep2,
7057
7049
  overwriteObj: () => overwriteObj,
7050
+ overwriteShallow: () => overwriteShallow3,
7058
7051
  removeFromObject: () => removeFromObject2
7059
7052
  });
7060
7053
  module22.exports = __toCommonJS22(object_exports);
7061
- var import_globals3 = require_cjs11();
7054
+ var import_globals3 = require_cjs12();
7062
7055
  var import_types = require_types2();
7063
7056
  var exec6 = (param, element, state, context) => {
7064
7057
  if ((0, import_types.isFunction)(param)) {
@@ -7085,12 +7078,12 @@ var require_cjs10 = __commonJS({
7085
7078
  }
7086
7079
  return element;
7087
7080
  };
7088
- var deepMerge3 = (element, extend) => {
7081
+ var deepMerge3 = (element, extend, excludeFrom = []) => {
7089
7082
  for (const e2 in extend) {
7083
+ if (excludeFrom.includes(e2) || e2.includes("__"))
7084
+ continue;
7090
7085
  const elementProp = element[e2];
7091
7086
  const extendProp = extend[e2];
7092
- if (e2 === "parent" || e2 === "props")
7093
- continue;
7094
7087
  if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
7095
7088
  deepMerge3(elementProp, extendProp);
7096
7089
  } else if (elementProp === void 0) {
@@ -7099,53 +7092,47 @@ var require_cjs10 = __commonJS({
7099
7092
  }
7100
7093
  return element;
7101
7094
  };
7102
- var clone = (obj) => {
7095
+ var clone = (obj, excludeFrom = []) => {
7103
7096
  const o = {};
7104
7097
  for (const prop in obj) {
7105
- if (prop === "node")
7098
+ if (excludeFrom.includes(e) || e.includes("__"))
7106
7099
  continue;
7107
7100
  o[prop] = obj[prop];
7108
7101
  }
7109
7102
  return o;
7110
7103
  };
7111
- var deepCloneExclude = (obj, exclude = []) => {
7104
+ var deepCloneExclude = (obj, excludeFrom = []) => {
7112
7105
  if ((0, import_types.isArray)(obj)) {
7113
- return obj.map((x) => deepCloneExclude(x, exclude));
7106
+ return obj.map((x) => deepCloneExclude(x, excludeFrom));
7114
7107
  }
7115
7108
  const o = {};
7116
7109
  for (const k in obj) {
7117
- if (exclude.indexOf(k) > -1)
7110
+ if (excludeFrom.includes(k) || k.includes("__"))
7118
7111
  continue;
7119
7112
  let v = obj[k];
7120
7113
  if (k === "extend" && (0, import_types.isArray)(v)) {
7121
- v = mergeArrayExclude2(v, exclude);
7114
+ v = mergeArrayExclude(v, excludeFrom);
7122
7115
  }
7123
7116
  if ((0, import_types.isArray)(v)) {
7124
- o[k] = v.map((x) => deepCloneExclude(x, exclude));
7117
+ o[k] = v.map((x) => deepCloneExclude(x, excludeFrom));
7125
7118
  } else if ((0, import_types.isObject)(v)) {
7126
- o[k] = deepCloneExclude(v, exclude);
7119
+ o[k] = deepCloneExclude(v, excludeFrom);
7127
7120
  } else
7128
7121
  o[k] = v;
7129
7122
  }
7130
7123
  return o;
7131
7124
  };
7132
- var mergeArrayExclude2 = (arr, excl = []) => {
7133
- return arr.reduce((acc, curr) => deepMerge3(acc, deepCloneExclude(curr, excl)), {});
7134
- };
7135
- var deepClone22 = (obj) => {
7136
- if ((0, import_types.isArray)(obj)) {
7137
- return obj.map(deepClone22);
7138
- }
7139
- const o = {};
7125
+ var deepClone22 = (obj, excludeFrom = []) => {
7126
+ const o = (0, import_types.isArray)(obj) ? [] : {};
7140
7127
  for (const prop in obj) {
7128
+ if (excludeFrom.includes(prop) || prop.includes("__"))
7129
+ continue;
7141
7130
  let objProp = obj[prop];
7142
7131
  if (prop === "extend" && (0, import_types.isArray)(objProp)) {
7143
- objProp = mergeArray2(objProp);
7132
+ objProp = mergeArray(objProp);
7144
7133
  }
7145
- if ((0, import_types.isArray)(objProp)) {
7146
- o[prop] = objProp.map((v) => (0, import_types.isObject)(v) ? deepClone22(v) : v);
7147
- } else if ((0, import_types.isObject)(objProp)) {
7148
- o[prop] = deepClone22(objProp);
7134
+ if ((0, import_types.isObjectLike)(objProp)) {
7135
+ o[prop] = deepClone22(objProp, excludeFrom);
7149
7136
  } else
7150
7137
  o[prop] = objProp;
7151
7138
  }
@@ -7247,11 +7234,11 @@ var require_cjs10 = __commonJS({
7247
7234
  }
7248
7235
  return stringified;
7249
7236
  };
7250
- var overwrite = (element, params, options) => {
7237
+ var overwrite = (element, params, excludeFrom = []) => {
7251
7238
  const { ref } = element;
7252
7239
  const changes = {};
7253
7240
  for (const e2 in params) {
7254
- if (e2 === "props")
7241
+ if (excludeFrom.includes(e2) || e2.includes("__"))
7255
7242
  continue;
7256
7243
  const elementProp = element[e2];
7257
7244
  const paramsProp = params[e2];
@@ -7314,8 +7301,18 @@ var require_cjs10 = __commonJS({
7314
7301
  }
7315
7302
  return changes;
7316
7303
  };
7317
- var overwriteDeep2 = (params, obj) => {
7304
+ var overwriteShallow3 = (obj, params, excludeFrom = []) => {
7305
+ for (const e2 in params) {
7306
+ if (excludeFrom.includes(e2) || e2.includes("__"))
7307
+ continue;
7308
+ obj[e2] = params[e2];
7309
+ }
7310
+ return obj;
7311
+ };
7312
+ var overwriteDeep2 = (params, obj, excludeFrom = []) => {
7318
7313
  for (const e2 in params) {
7314
+ if (excludeFrom.includes(e2) || e2.includes("__"))
7315
+ continue;
7319
7316
  const objProp = obj[e2];
7320
7317
  const paramsProp = params[e2];
7321
7318
  if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
@@ -7331,14 +7328,8 @@ var require_cjs10 = __commonJS({
7331
7328
  return deepMerge3(a, b);
7332
7329
  return a || b;
7333
7330
  };
7334
- var mergeArray2 = (arr) => {
7335
- return arr.reduce((a, c) => deepMerge3(a, deepClone22(c)), {});
7336
- };
7337
- var mergeAndCloneIfArray2 = (obj) => {
7338
- return (0, import_types.isArray)(obj) ? mergeArray2(obj) : deepClone22(obj);
7339
- };
7340
7331
  var flattenRecursive = (param, prop, stack = []) => {
7341
- const objectized = mergeAndCloneIfArray2(param);
7332
+ const objectized = mergeAndCloneIfArray(param);
7342
7333
  stack.push(objectized);
7343
7334
  const extendOfExtend = objectized[prop];
7344
7335
  if (extendOfExtend)
@@ -7454,10 +7445,13 @@ var require_cjs10 = __commonJS({
7454
7445
  __export22(array_exports, {
7455
7446
  arrayContainsOtherArray: () => arrayContainsOtherArray2,
7456
7447
  joinArrays: () => joinArrays,
7448
+ mergeAndCloneIfArray: () => mergeAndCloneIfArray2,
7449
+ mergeArray: () => mergeArray2,
7457
7450
  removeFromArray: () => removeFromArray2,
7458
7451
  swapItemsInArray: () => swapItemsInArray
7459
7452
  });
7460
7453
  module22.exports = __toCommonJS22(array_exports);
7454
+ var import_object = require_object2();
7461
7455
  var import_types = require_types2();
7462
7456
  var arrayContainsOtherArray2 = (arr1, arr2) => {
7463
7457
  return arr2.every((val) => arr1.includes(val));
@@ -7483,6 +7477,12 @@ var require_cjs10 = __commonJS({
7483
7477
  var joinArrays = (...arrays) => {
7484
7478
  return [].concat(...arrays);
7485
7479
  };
7480
+ var mergeArray2 = (arr, excludeFrom = []) => {
7481
+ return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
7482
+ };
7483
+ var mergeAndCloneIfArray2 = (obj) => {
7484
+ return (0, import_types.isArray)(obj) ? mergeArray2(obj) : (0, import_object.deepClone)(obj);
7485
+ };
7486
7486
  }
7487
7487
  });
7488
7488
  var require_log2 = __commonJS2({
@@ -7698,7 +7698,7 @@ var require_cjs10 = __commonJS({
7698
7698
  setInCustomFontMedia: () => setInCustomFontMedia,
7699
7699
  setVariables: () => setVariables
7700
7700
  });
7701
- var import_globals = __toESM2(require_cjs11(), 1);
7701
+ var import_globals = __toESM2(require_cjs12(), 1);
7702
7702
  var ENV = "development";
7703
7703
  var colorStringToRgbaArray = (color) => {
7704
7704
  if (color === "")
@@ -8315,12 +8315,26 @@ var require_cjs10 = __commonJS({
8315
8315
  return acc;
8316
8316
  }, {});
8317
8317
  };
8318
+ var replaceIdsAndUrls = (code, key) => {
8319
+ const idRegex = /id="([^"]*)"/;
8320
+ const urlRegex = /url\(#([^)]*)\)/g;
8321
+ const matches = code.match(/id="([^"]*)"/g);
8322
+ let replacedCode = code;
8323
+ if ((0, import_utils72.isArray)(matches)) {
8324
+ matches.forEach(() => {
8325
+ const randomKey = Math.floor(Math.random() * 1e5);
8326
+ replacedCode = code.replace(idRegex, `id="${key}-${randomKey}"`).replace(urlRegex, `url(#${key}-${randomKey})`);
8327
+ });
8328
+ }
8329
+ return replacedCode;
8330
+ };
8318
8331
  var convertSvgToSymbol = (key, code) => {
8319
8332
  const extractAttrs = parseRootAttributes(code);
8320
8333
  const { width, height } = extractAttrs;
8321
8334
  const viewBox = extractAttrs.viewBox || `0 0 ${width || 24} ${height || 24}`;
8322
8335
  const xmlns = "http://www.w3.org/2000/svg";
8323
- let symbol = code.replace(
8336
+ const replacedCode = replaceIdsAndUrls(code, key);
8337
+ let symbol = replacedCode.replace(
8324
8338
  "<svg",
8325
8339
  `<symbol id="${key}" xmlns="${xmlns}" viewBox="${viewBox}"`
8326
8340
  );
@@ -8360,8 +8374,8 @@ var require_cjs10 = __commonJS({
8360
8374
  setTheme: () => setTheme
8361
8375
  });
8362
8376
  var import_utils82 = __toESM2(require_cjs42(), 1);
8363
- var getColor5 = (value, key) => {
8364
- const CONFIG22 = getActiveConfig5();
8377
+ var getColor5 = (value, key, config) => {
8378
+ const CONFIG22 = config || getActiveConfig5();
8365
8379
  if (!(0, import_utils82.isString)(value)) {
8366
8380
  if (CONFIG22.verbose)
8367
8381
  console.warn(value, "- type for color is not valid");
@@ -8386,34 +8400,32 @@ var require_cjs10 = __commonJS({
8386
8400
  console.warn(value, " - does not have ", key);
8387
8401
  }
8388
8402
  let rgb = val.rgb;
8389
- if (rgb) {
8390
- if (tone) {
8391
- if (!val[tone]) {
8392
- const toHex = rgbArrayToHex(rgb.split(", ").map((v) => parseFloat(v)));
8393
- const abs2 = tone.slice(0, 1);
8394
- if (abs2 === "-" || abs2 === "+") {
8395
- rgb = hexToRgbArray(
8396
- getColorShade(toHex, parseFloat(tone))
8397
- ).join(", ");
8398
- } else {
8399
- const [r, g, b] = [...rgb.split(", ").map((v) => parseInt(v))];
8400
- const hsl = rgbToHSL(r, g, b);
8401
- const [h, s, l] = hsl;
8402
- const newRgb = hslToRgb(h, s, parseFloat(tone) / 100 * 255);
8403
- rgb = newRgb;
8404
- }
8405
- val[tone] = { rgb, var: `${val.var}-${tone}` };
8406
- } else
8407
- rgb = val[tone].rgb;
8408
- }
8409
- if (alpha)
8410
- return `rgba(${rgb}, ${alpha})`;
8411
- return CONFIG22.useVariable ? `var(${val.var})` : `rgb(${rgb})`;
8412
- } else
8403
+ if (!rgb)
8413
8404
  return CONFIG22.useVariable ? `var(${val.var})` : val.value;
8405
+ if (tone && !val[tone]) {
8406
+ const toHex = rgbArrayToHex(rgb.split(", ").map((v) => parseFloat(v)));
8407
+ const abs2 = tone.slice(0, 1);
8408
+ if (abs2 === "-" || abs2 === "+") {
8409
+ rgb = hexToRgbArray(
8410
+ getColorShade(toHex, parseFloat(tone))
8411
+ ).join(", ");
8412
+ } else {
8413
+ const [r, g, b] = [...rgb.split(", ").map((v) => parseInt(v))];
8414
+ const hsl = rgbToHSL(r, g, b);
8415
+ const [h, s, l] = hsl;
8416
+ const newRgb = hslToRgb(h, s, parseFloat(tone) / 100 * 255);
8417
+ rgb = newRgb;
8418
+ }
8419
+ val[tone] = { rgb, var: `${val.var}-${tone}` };
8420
+ }
8421
+ if (val[tone])
8422
+ rgb = val[tone].rgb;
8423
+ if (alpha)
8424
+ return `rgba(${rgb}, ${alpha})`;
8425
+ return CONFIG22.useVariable ? `var(${val.var})` : `rgb(${rgb})`;
8414
8426
  };
8415
- var getMediaColor9 = (value, globalTheme) => {
8416
- const CONFIG22 = getActiveConfig5();
8427
+ var getMediaColor9 = (value, globalTheme, config) => {
8428
+ const CONFIG22 = config || getActiveConfig5();
8417
8429
  if (!globalTheme)
8418
8430
  globalTheme = CONFIG22.globalTheme;
8419
8431
  if (!(0, import_utils82.isString)(value)) {
@@ -8428,16 +8440,16 @@ var require_cjs10 = __commonJS({
8428
8440
  const val = COLOR2[name] || GRADIENT2[name];
8429
8441
  const isObj = (0, import_utils82.isObject)(val);
8430
8442
  if (isObj && val.value)
8431
- return getColor5(value, `@${globalTheme}`);
8443
+ return getColor5(value, `@${globalTheme}`, config);
8432
8444
  else if (isObj) {
8433
8445
  if (globalTheme)
8434
- return getColor5(value, `@${globalTheme}`);
8446
+ return getColor5(value, `@${globalTheme}`, config);
8435
8447
  else {
8436
8448
  const obj = {};
8437
8449
  for (const mediaName in val) {
8438
8450
  const query = CONFIG22.MEDIA[mediaName.slice(1)];
8439
8451
  const media = `@media screen and ${query}`;
8440
- obj[media] = getColor5(value, mediaName);
8452
+ obj[media] = getColor5(value, mediaName, config);
8441
8453
  }
8442
8454
  return obj;
8443
8455
  }
@@ -8940,7 +8952,7 @@ var require_cjs10 = __commonJS({
8940
8952
  lineHeight: TYPOGRAPHY2.lineHeight
8941
8953
  });
8942
8954
  };
8943
- var import_globals2 = __toESM2(require_cjs11(), 1);
8955
+ var import_globals2 = __toESM2(require_cjs12(), 1);
8944
8956
  var DEF_OPTIONS = {
8945
8957
  document: import_globals2.document
8946
8958
  };
@@ -9038,7 +9050,7 @@ var require_cjs10 = __commonJS({
9038
9050
  top: "0",
9039
9051
  left: "0",
9040
9052
  margin: "0",
9041
- WebkitFontSmoothing: "antialiased",
9053
+ WebkitFontSmoothing: "subpixel-antialiased",
9042
9054
  scrollBehavior: "smooth",
9043
9055
  fontSize: TYPOGRAPHY2.browserDefault + "px",
9044
9056
  ...CONFIG22.useDocumentTheme ? getMediaTheme5("document", `@${CONFIG22.globalTheme}`) : {},
@@ -9259,59 +9271,2718 @@ var require_cjs10 = __commonJS({
9259
9271
  }
9260
9272
  });
9261
9273
 
9262
- // index.js
9263
- var domql_exports = {};
9264
- __export(domql_exports, {
9265
- Animation: () => Animation,
9266
- Avatar: () => Avatar,
9267
- AvatarBundle: () => AvatarBundle,
9268
- Block: () => Block,
9269
- Box: () => Box,
9270
- Button: () => Button,
9271
- ButtonSet: () => ButtonSet,
9272
- Caption: () => Caption,
9273
- CircleButton: () => CircleButton,
9274
- Clickable: () => Clickable,
9275
- Collection: () => Collection,
9276
- DatePicker: () => DatePicker,
9277
- Direction: () => Direction,
9278
- DropdownList: () => DropdownList,
9279
- DropdownParent: () => DropdownParent,
9280
- Field: () => Field,
9281
- Flex: () => Flex,
9282
- Focusable: () => Focusable,
9283
- FocusableComponent: () => FocusableComponent,
9284
- Form: () => Form,
9285
- Grid: () => Grid,
9286
- H1: () => H1,
9287
- H2: () => H2,
9288
- H3: () => H3,
9289
- H4: () => H4,
9290
- H5: () => H5,
9291
- H6: () => H6,
9292
- Hoverable: () => Hoverable,
9293
- Icon: () => Icon2,
9294
- IconText: () => IconText2,
9295
- Iframe: () => Iframe,
9296
- Img: () => Img,
9297
- Input: () => Input,
9298
- Interaction: () => Interaction,
9299
- Italic: () => Italic,
9300
- KangorooButton: () => KangorooButton,
9301
- Label: () => Label,
9302
- Link: () => Link,
9303
- List: () => List,
9304
- Media: () => Media,
9305
- Notification: () => Notification,
9306
- Overflow: () => Overflow,
9307
- P: () => P,
9308
- Picture: () => Picture,
9309
- Pills: () => Pills,
9310
- Position: () => Position,
9311
- Pseudo: () => Pseudo,
9312
- Range: () => Range,
9313
- RangeSlider: () => RangeSlider,
9314
- RangeWithButtons: () => RangeWithButtons,
9274
+ // Notification/node_modules/@symbo.ls/scratch/dist/cjs/index.js
9275
+ var require_cjs11 = __commonJS({
9276
+ "Notification/node_modules/@symbo.ls/scratch/dist/cjs/index.js"(exports, module2) {
9277
+ "use strict";
9278
+ var __create2 = Object.create;
9279
+ var __defProp2 = Object.defineProperty;
9280
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
9281
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
9282
+ var __getProtoOf2 = Object.getPrototypeOf;
9283
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
9284
+ var __commonJS2 = (cb, mod) => function __require() {
9285
+ return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9286
+ };
9287
+ var __export2 = (target, all) => {
9288
+ for (var name in all)
9289
+ __defProp2(target, name, { get: all[name], enumerable: true });
9290
+ };
9291
+ var __copyProps2 = (to, from2, except, desc) => {
9292
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
9293
+ for (let key of __getOwnPropNames2(from2))
9294
+ if (!__hasOwnProp2.call(to, key) && key !== except)
9295
+ __defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
9296
+ }
9297
+ return to;
9298
+ };
9299
+ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
9300
+ // If the importer is in node compatibility mode or this is not an ESM
9301
+ // file that has been converted to a CommonJS file using a Babel-
9302
+ // compatible transform (i.e. "__esModule" has not been set), then set
9303
+ // "default" to the CommonJS "module.exports" for node compatibility.
9304
+ isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
9305
+ mod
9306
+ ));
9307
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
9308
+ var require_cjs12 = __commonJS2({
9309
+ "../../node_modules/@domql/globals/dist/cjs/index.js"(exports2, module22) {
9310
+ "use strict";
9311
+ var __defProp22 = Object.defineProperty;
9312
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
9313
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
9314
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
9315
+ var __export22 = (target, all) => {
9316
+ for (var name in all)
9317
+ __defProp22(target, name, { get: all[name], enumerable: true });
9318
+ };
9319
+ var __copyProps22 = (to, from2, except, desc) => {
9320
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
9321
+ for (let key of __getOwnPropNames22(from2))
9322
+ if (!__hasOwnProp22.call(to, key) && key !== except)
9323
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
9324
+ }
9325
+ return to;
9326
+ };
9327
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
9328
+ var globals_exports = {};
9329
+ __export22(globals_exports, {
9330
+ document: () => document4,
9331
+ global: () => global,
9332
+ self: () => self,
9333
+ window: () => window3
9334
+ });
9335
+ module22.exports = __toCommonJS22(globals_exports);
9336
+ var global = globalThis;
9337
+ var self = globalThis;
9338
+ var window3 = globalThis;
9339
+ var document4 = window3.document;
9340
+ }
9341
+ });
9342
+ var require_cjs22 = __commonJS2({
9343
+ "../../node_modules/@domql/key/dist/cjs/index.js"(exports2, module22) {
9344
+ "use strict";
9345
+ var __defProp22 = Object.defineProperty;
9346
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
9347
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
9348
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
9349
+ var __export22 = (target, all) => {
9350
+ for (var name in all)
9351
+ __defProp22(target, name, { get: all[name], enumerable: true });
9352
+ };
9353
+ var __copyProps22 = (to, from2, except, desc) => {
9354
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
9355
+ for (let key of __getOwnPropNames22(from2))
9356
+ if (!__hasOwnProp22.call(to, key) && key !== except)
9357
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
9358
+ }
9359
+ return to;
9360
+ };
9361
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
9362
+ var key_exports = {};
9363
+ __export22(key_exports, {
9364
+ createKey: () => createKey,
9365
+ createSnapshotId: () => createSnapshotId
9366
+ });
9367
+ module22.exports = __toCommonJS22(key_exports);
9368
+ var createKey = function() {
9369
+ let index = 0;
9370
+ function newId() {
9371
+ index++;
9372
+ return index;
9373
+ }
9374
+ return newId;
9375
+ }();
9376
+ var createSnapshotId = createKey;
9377
+ }
9378
+ });
9379
+ var require_htmlTags2 = __commonJS2({
9380
+ "../../node_modules/@domql/tags/dist/cjs/htmlTags.js"(exports2, module22) {
9381
+ "use strict";
9382
+ var __defProp22 = Object.defineProperty;
9383
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
9384
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
9385
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
9386
+ var __export22 = (target, all) => {
9387
+ for (var name in all)
9388
+ __defProp22(target, name, { get: all[name], enumerable: true });
9389
+ };
9390
+ var __copyProps22 = (to, from2, except, desc) => {
9391
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
9392
+ for (let key of __getOwnPropNames22(from2))
9393
+ if (!__hasOwnProp22.call(to, key) && key !== except)
9394
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
9395
+ }
9396
+ return to;
9397
+ };
9398
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
9399
+ var htmlTags_exports = {};
9400
+ __export22(htmlTags_exports, {
9401
+ HTML_TAGS: () => HTML_TAGS
9402
+ });
9403
+ module22.exports = __toCommonJS22(htmlTags_exports);
9404
+ var HTML_TAGS = {
9405
+ root: [
9406
+ "body",
9407
+ "html"
9408
+ ],
9409
+ head: [
9410
+ "title",
9411
+ "base",
9412
+ "meta",
9413
+ "style"
9414
+ ],
9415
+ body: [
9416
+ "string",
9417
+ "fragment",
9418
+ "a",
9419
+ "abbr",
9420
+ "acronym",
9421
+ "address",
9422
+ "applet",
9423
+ "area",
9424
+ "article",
9425
+ "aside",
9426
+ "audio",
9427
+ "b",
9428
+ "basefont",
9429
+ "bdi",
9430
+ "bdo",
9431
+ "big",
9432
+ "blockquote",
9433
+ "br",
9434
+ "button",
9435
+ "canvas",
9436
+ "caption",
9437
+ "center",
9438
+ "cite",
9439
+ "code",
9440
+ "col",
9441
+ "colgroup",
9442
+ "data",
9443
+ "datalist",
9444
+ "dd",
9445
+ "del",
9446
+ "details",
9447
+ "dfn",
9448
+ "dialog",
9449
+ "dir",
9450
+ "div",
9451
+ "dl",
9452
+ "dt",
9453
+ "em",
9454
+ "embed",
9455
+ "fieldset",
9456
+ "figcaption",
9457
+ "figure",
9458
+ "font",
9459
+ "footer",
9460
+ "form",
9461
+ "frame",
9462
+ "frameset",
9463
+ "h1",
9464
+ "h2",
9465
+ "h3",
9466
+ "h4",
9467
+ "h5",
9468
+ "h6",
9469
+ "head",
9470
+ "header",
9471
+ "hr",
9472
+ "i",
9473
+ "iframe",
9474
+ "img",
9475
+ "input",
9476
+ "ins",
9477
+ "kbd",
9478
+ "label",
9479
+ "legend",
9480
+ "li",
9481
+ "link",
9482
+ "main",
9483
+ "map",
9484
+ "mark",
9485
+ "meter",
9486
+ "nav",
9487
+ "noframes",
9488
+ "noscript",
9489
+ "object",
9490
+ "ol",
9491
+ "optgroup",
9492
+ "option",
9493
+ "output",
9494
+ "p",
9495
+ "param",
9496
+ "picture",
9497
+ "pre",
9498
+ "progress",
9499
+ "q",
9500
+ "rp",
9501
+ "rt",
9502
+ "ruby",
9503
+ "s",
9504
+ "samp",
9505
+ "script",
9506
+ "section",
9507
+ "select",
9508
+ "small",
9509
+ "source",
9510
+ "span",
9511
+ "strike",
9512
+ "strong",
9513
+ "sub",
9514
+ "summary",
9515
+ "sup",
9516
+ "table",
9517
+ "tbody",
9518
+ "td",
9519
+ "template",
9520
+ "textarea",
9521
+ "tfoot",
9522
+ "th",
9523
+ "thead",
9524
+ "time",
9525
+ "tr",
9526
+ "track",
9527
+ "tt",
9528
+ "u",
9529
+ "ul",
9530
+ "var",
9531
+ "video",
9532
+ "wbr",
9533
+ // SVG
9534
+ "svg",
9535
+ "path"
9536
+ ]
9537
+ };
9538
+ }
9539
+ });
9540
+ var require_cjs32 = __commonJS2({
9541
+ "../../node_modules/@domql/tags/dist/cjs/index.js"(exports2, module22) {
9542
+ "use strict";
9543
+ var __defProp22 = Object.defineProperty;
9544
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
9545
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
9546
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
9547
+ var __copyProps22 = (to, from2, except, desc) => {
9548
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
9549
+ for (let key of __getOwnPropNames22(from2))
9550
+ if (!__hasOwnProp22.call(to, key) && key !== except)
9551
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
9552
+ }
9553
+ return to;
9554
+ };
9555
+ var __reExport = (target, mod, secondTarget) => (__copyProps22(target, mod, "default"), secondTarget && __copyProps22(secondTarget, mod, "default"));
9556
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
9557
+ var tags_exports = {};
9558
+ module22.exports = __toCommonJS22(tags_exports);
9559
+ __reExport(tags_exports, require_htmlTags2(), module22.exports);
9560
+ }
9561
+ });
9562
+ var require_node2 = __commonJS2({
9563
+ "../../node_modules/@domql/utils/dist/cjs/node.js"(exports2, module22) {
9564
+ "use strict";
9565
+ var __defProp22 = Object.defineProperty;
9566
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
9567
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
9568
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
9569
+ var __export22 = (target, all) => {
9570
+ for (var name in all)
9571
+ __defProp22(target, name, { get: all[name], enumerable: true });
9572
+ };
9573
+ var __copyProps22 = (to, from2, except, desc) => {
9574
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
9575
+ for (let key of __getOwnPropNames22(from2))
9576
+ if (!__hasOwnProp22.call(to, key) && key !== except)
9577
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
9578
+ }
9579
+ return to;
9580
+ };
9581
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
9582
+ var node_exports = {};
9583
+ __export22(node_exports, {
9584
+ isHtmlElement: () => isHtmlElement,
9585
+ isNode: () => isNode
9586
+ });
9587
+ module22.exports = __toCommonJS22(node_exports);
9588
+ var import_globals3 = require_cjs12();
9589
+ var isNode = (obj) => {
9590
+ return (typeof Node === "object" ? obj instanceof import_globals3.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
9591
+ };
9592
+ var isHtmlElement = (obj) => {
9593
+ return (typeof HTMLElement === "object" ? obj instanceof import_globals3.window.HTMLElement : obj && typeof obj === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string") || false;
9594
+ };
9595
+ }
9596
+ });
9597
+ var require_types2 = __commonJS2({
9598
+ "../../node_modules/@domql/utils/dist/cjs/types.js"(exports2, module22) {
9599
+ "use strict";
9600
+ var __defProp22 = Object.defineProperty;
9601
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
9602
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
9603
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
9604
+ var __export22 = (target, all) => {
9605
+ for (var name in all)
9606
+ __defProp22(target, name, { get: all[name], enumerable: true });
9607
+ };
9608
+ var __copyProps22 = (to, from2, except, desc) => {
9609
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
9610
+ for (let key of __getOwnPropNames22(from2))
9611
+ if (!__hasOwnProp22.call(to, key) && key !== except)
9612
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
9613
+ }
9614
+ return to;
9615
+ };
9616
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
9617
+ var types_exports = {};
9618
+ __export22(types_exports, {
9619
+ TYPES: () => TYPES,
9620
+ is: () => is2,
9621
+ isArray: () => isArray52,
9622
+ isBoolean: () => isBoolean,
9623
+ isDefined: () => isDefined2,
9624
+ isFunction: () => isFunction22,
9625
+ isNot: () => isNot5,
9626
+ isNull: () => isNull,
9627
+ isNumber: () => isNumber,
9628
+ isObject: () => isObject72,
9629
+ isObjectLike: () => isObjectLike32,
9630
+ isString: () => isString8,
9631
+ isUndefined: () => isUndefined2,
9632
+ isValidHtmlTag: () => isValidHtmlTag
9633
+ });
9634
+ module22.exports = __toCommonJS22(types_exports);
9635
+ var import_tags = require_cjs32();
9636
+ var import_node = require_node2();
9637
+ var isValidHtmlTag = (arg) => import_tags.HTML_TAGS.body.includes(arg);
9638
+ var isObject72 = (arg) => {
9639
+ if (arg === null)
9640
+ return false;
9641
+ return typeof arg === "object" && arg.constructor === Object;
9642
+ };
9643
+ var isString8 = (arg) => typeof arg === "string";
9644
+ var isNumber = (arg) => typeof arg === "number";
9645
+ var isFunction22 = (arg) => typeof arg === "function";
9646
+ var isBoolean = (arg) => arg === true || arg === false;
9647
+ var isNull = (arg) => arg === null;
9648
+ var isArray52 = (arg) => Array.isArray(arg);
9649
+ var isObjectLike32 = (arg) => {
9650
+ if (arg === null)
9651
+ return false;
9652
+ return typeof arg === "object";
9653
+ };
9654
+ var isDefined2 = (arg) => {
9655
+ return isObject72(arg) || isObjectLike32(arg) || isString8(arg) || isNumber(arg) || isFunction22(arg) || isArray52(arg) || isObjectLike32(arg) || isBoolean(arg) || isNull(arg);
9656
+ };
9657
+ var isUndefined2 = (arg) => {
9658
+ return arg === void 0;
9659
+ };
9660
+ var TYPES = {
9661
+ boolean: isBoolean,
9662
+ array: isArray52,
9663
+ object: isObject72,
9664
+ string: isString8,
9665
+ number: isNumber,
9666
+ null: isNull,
9667
+ function: isFunction22,
9668
+ objectLike: isObjectLike32,
9669
+ node: import_node.isNode,
9670
+ htmlElement: import_node.isHtmlElement,
9671
+ defined: isDefined2
9672
+ };
9673
+ var is2 = (arg) => {
9674
+ return (...args) => {
9675
+ return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
9676
+ };
9677
+ };
9678
+ var isNot5 = (arg) => {
9679
+ return (...args) => {
9680
+ return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
9681
+ };
9682
+ };
9683
+ }
9684
+ });
9685
+ var require_object2 = __commonJS2({
9686
+ "../../node_modules/@domql/utils/dist/cjs/object.js"(exports2, module22) {
9687
+ "use strict";
9688
+ var __defProp22 = Object.defineProperty;
9689
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
9690
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
9691
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
9692
+ var __export22 = (target, all) => {
9693
+ for (var name in all)
9694
+ __defProp22(target, name, { get: all[name], enumerable: true });
9695
+ };
9696
+ var __copyProps22 = (to, from2, except, desc) => {
9697
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
9698
+ for (let key of __getOwnPropNames22(from2))
9699
+ if (!__hasOwnProp22.call(to, key) && key !== except)
9700
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
9701
+ }
9702
+ return to;
9703
+ };
9704
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
9705
+ var object_exports = {};
9706
+ __export22(object_exports, {
9707
+ clone: () => clone,
9708
+ deepClone: () => deepClone22,
9709
+ deepCloneExclude: () => deepCloneExclude,
9710
+ deepDestringify: () => deepDestringify,
9711
+ deepMerge: () => deepMerge3,
9712
+ deepStringify: () => deepStringify,
9713
+ detachFunctionsFromObject: () => detachFunctionsFromObject,
9714
+ diff: () => diff5,
9715
+ diffArrays: () => diffArrays,
9716
+ diffObjects: () => diffObjects,
9717
+ exec: () => exec6,
9718
+ flattenRecursive: () => flattenRecursive,
9719
+ isEqualDeep: () => isEqualDeep,
9720
+ map: () => map,
9721
+ merge: () => merge52,
9722
+ mergeAndCloneIfArray: () => mergeAndCloneIfArray2,
9723
+ mergeArray: () => mergeArray2,
9724
+ mergeArrayExclude: () => mergeArrayExclude2,
9725
+ mergeIfExisted: () => mergeIfExisted,
9726
+ overwrite: () => overwrite,
9727
+ overwriteDeep: () => overwriteDeep2,
9728
+ overwriteObj: () => overwriteObj,
9729
+ removeFromObject: () => removeFromObject2
9730
+ });
9731
+ module22.exports = __toCommonJS22(object_exports);
9732
+ var import_globals3 = require_cjs12();
9733
+ var import_types = require_types2();
9734
+ var exec6 = (param, element, state, context) => {
9735
+ if ((0, import_types.isFunction)(param)) {
9736
+ return param(
9737
+ element,
9738
+ state || element.state,
9739
+ context || element.context
9740
+ );
9741
+ }
9742
+ return param;
9743
+ };
9744
+ var map = (obj, extention, element) => {
9745
+ for (const e2 in extention) {
9746
+ obj[e2] = exec6(extention[e2], element);
9747
+ }
9748
+ };
9749
+ var merge52 = (element, obj) => {
9750
+ for (const e2 in obj) {
9751
+ const elementProp = element[e2];
9752
+ const objProp = obj[e2];
9753
+ if (elementProp === void 0) {
9754
+ element[e2] = objProp;
9755
+ }
9756
+ }
9757
+ return element;
9758
+ };
9759
+ var deepMerge3 = (element, extend) => {
9760
+ for (const e2 in extend) {
9761
+ const elementProp = element[e2];
9762
+ const extendProp = extend[e2];
9763
+ if (e2 === "parent" || e2 === "props")
9764
+ continue;
9765
+ if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
9766
+ deepMerge3(elementProp, extendProp);
9767
+ } else if (elementProp === void 0) {
9768
+ element[e2] = extendProp;
9769
+ }
9770
+ }
9771
+ return element;
9772
+ };
9773
+ var clone = (obj) => {
9774
+ const o = {};
9775
+ for (const prop in obj) {
9776
+ if (prop === "node")
9777
+ continue;
9778
+ o[prop] = obj[prop];
9779
+ }
9780
+ return o;
9781
+ };
9782
+ var deepCloneExclude = (obj, exclude = []) => {
9783
+ if ((0, import_types.isArray)(obj)) {
9784
+ return obj.map((x) => deepCloneExclude(x, exclude));
9785
+ }
9786
+ const o = {};
9787
+ for (const k in obj) {
9788
+ if (exclude.indexOf(k) > -1)
9789
+ continue;
9790
+ let v = obj[k];
9791
+ if (k === "extend" && (0, import_types.isArray)(v)) {
9792
+ v = mergeArrayExclude2(v, exclude);
9793
+ }
9794
+ if ((0, import_types.isArray)(v)) {
9795
+ o[k] = v.map((x) => deepCloneExclude(x, exclude));
9796
+ } else if ((0, import_types.isObject)(v)) {
9797
+ o[k] = deepCloneExclude(v, exclude);
9798
+ } else
9799
+ o[k] = v;
9800
+ }
9801
+ return o;
9802
+ };
9803
+ var mergeArrayExclude2 = (arr, excl = []) => {
9804
+ return arr.reduce((acc, curr) => deepMerge3(acc, deepCloneExclude(curr, excl)), {});
9805
+ };
9806
+ var deepClone22 = (obj) => {
9807
+ if ((0, import_types.isArray)(obj)) {
9808
+ return obj.map(deepClone22);
9809
+ }
9810
+ const o = {};
9811
+ for (const prop in obj) {
9812
+ let objProp = obj[prop];
9813
+ if (prop === "extend" && (0, import_types.isArray)(objProp)) {
9814
+ objProp = mergeArray2(objProp);
9815
+ }
9816
+ if ((0, import_types.isArray)(objProp)) {
9817
+ o[prop] = objProp.map((v) => (0, import_types.isObject)(v) ? deepClone22(v) : v);
9818
+ } else if ((0, import_types.isObject)(objProp)) {
9819
+ o[prop] = deepClone22(objProp);
9820
+ } else
9821
+ o[prop] = objProp;
9822
+ }
9823
+ return o;
9824
+ };
9825
+ var deepStringify = (obj, stringified = {}) => {
9826
+ for (const prop in obj) {
9827
+ const objProp = obj[prop];
9828
+ if ((0, import_types.isFunction)(objProp)) {
9829
+ stringified[prop] = objProp.toString();
9830
+ } else if ((0, import_types.isObject)(objProp)) {
9831
+ stringified[prop] = {};
9832
+ deepStringify(objProp, stringified[prop]);
9833
+ } else if ((0, import_types.isArray)(objProp)) {
9834
+ stringified[prop] = [];
9835
+ objProp.forEach((v, i) => {
9836
+ if ((0, import_types.isObject)(v)) {
9837
+ stringified[prop][i] = {};
9838
+ deepStringify(v, stringified[prop][i]);
9839
+ } else if ((0, import_types.isFunction)(v)) {
9840
+ stringified[prop][i] = v.toString();
9841
+ } else {
9842
+ stringified[prop][i] = v;
9843
+ }
9844
+ });
9845
+ } else {
9846
+ stringified[prop] = objProp;
9847
+ }
9848
+ }
9849
+ return stringified;
9850
+ };
9851
+ var detachFunctionsFromObject = (obj, detached = {}) => {
9852
+ for (const prop in obj) {
9853
+ const objProp = obj[prop];
9854
+ if ((0, import_types.isFunction)(objProp))
9855
+ continue;
9856
+ else if ((0, import_types.isObject)(objProp)) {
9857
+ detached[prop] = {};
9858
+ deepStringify(objProp, detached[prop]);
9859
+ } else if ((0, import_types.isArray)(objProp)) {
9860
+ detached[prop] = [];
9861
+ objProp.forEach((v, i) => {
9862
+ if ((0, import_types.isFunction)(v))
9863
+ return;
9864
+ if ((0, import_types.isObject)(v)) {
9865
+ detached[prop][i] = {};
9866
+ detachFunctionsFromObject(v, detached[prop][i]);
9867
+ } else {
9868
+ detached[prop][i] = v;
9869
+ }
9870
+ });
9871
+ } else {
9872
+ detached[prop] = objProp;
9873
+ }
9874
+ }
9875
+ return detached;
9876
+ };
9877
+ var deepDestringify = (obj, stringified = {}) => {
9878
+ for (const prop in obj) {
9879
+ const objProp = obj[prop];
9880
+ if ((0, import_types.isString)(objProp)) {
9881
+ if (objProp.includes("=>") || objProp.includes("function") || objProp.startsWith("(")) {
9882
+ try {
9883
+ const evalProp = import_globals3.window.eval(`(${objProp})`);
9884
+ stringified[prop] = evalProp;
9885
+ } catch (e2) {
9886
+ if (e2)
9887
+ stringified[prop] = objProp;
9888
+ }
9889
+ } else {
9890
+ stringified[prop] = objProp;
9891
+ }
9892
+ } else if ((0, import_types.isArray)(objProp)) {
9893
+ stringified[prop] = [];
9894
+ objProp.forEach((arrProp) => {
9895
+ if ((0, import_types.isString)(arrProp)) {
9896
+ if (arrProp.includes("=>") || arrProp.includes("function") || arrProp.startsWith("(")) {
9897
+ try {
9898
+ const evalProp = import_globals3.window.eval(`(${arrProp})`);
9899
+ stringified[prop].push(evalProp);
9900
+ } catch (e2) {
9901
+ if (e2)
9902
+ stringified[prop].push(arrProp);
9903
+ }
9904
+ } else {
9905
+ stringified[prop].push(arrProp);
9906
+ }
9907
+ } else if ((0, import_types.isObject)(arrProp)) {
9908
+ stringified[prop].push(deepDestringify(arrProp));
9909
+ } else {
9910
+ stringified[prop].push(arrProp);
9911
+ }
9912
+ });
9913
+ } else if ((0, import_types.isObject)(objProp)) {
9914
+ stringified[prop] = deepDestringify(objProp, stringified[prop]);
9915
+ } else {
9916
+ stringified[prop] = objProp;
9917
+ }
9918
+ }
9919
+ return stringified;
9920
+ };
9921
+ var overwrite = (element, params, options) => {
9922
+ const { ref } = element;
9923
+ const changes = {};
9924
+ for (const e2 in params) {
9925
+ if (e2 === "props")
9926
+ continue;
9927
+ const elementProp = element[e2];
9928
+ const paramsProp = params[e2];
9929
+ if (paramsProp) {
9930
+ ref.__cache[e2] = changes[e2] = elementProp;
9931
+ ref[e2] = paramsProp;
9932
+ }
9933
+ }
9934
+ return changes;
9935
+ };
9936
+ var diffObjects = (original, objToDiff, cache) => {
9937
+ for (const e2 in objToDiff) {
9938
+ if (e2 === "ref")
9939
+ continue;
9940
+ const originalProp = original[e2];
9941
+ const objToDiffProp = objToDiff[e2];
9942
+ if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
9943
+ cache[e2] = {};
9944
+ diff5(originalProp, objToDiffProp, cache[e2]);
9945
+ } else if (objToDiffProp !== void 0) {
9946
+ cache[e2] = objToDiffProp;
9947
+ }
9948
+ }
9949
+ return cache;
9950
+ };
9951
+ var diffArrays = (original, objToDiff, cache) => {
9952
+ if (original.length !== objToDiff.length) {
9953
+ cache = objToDiff;
9954
+ } else {
9955
+ const diffArr = [];
9956
+ for (let i = 0; i < original.length; i++) {
9957
+ const diffObj = diff5(original[i], objToDiff[i]);
9958
+ if (Object.keys(diffObj).length > 0) {
9959
+ diffArr.push(diffObj);
9960
+ }
9961
+ }
9962
+ if (diffArr.length > 0) {
9963
+ cache = diffArr;
9964
+ }
9965
+ }
9966
+ return cache;
9967
+ };
9968
+ var diff5 = (original, objToDiff, cache = {}) => {
9969
+ if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
9970
+ cache = [];
9971
+ diffArrays(original, objToDiff, cache);
9972
+ } else {
9973
+ diffObjects(original, objToDiff, cache);
9974
+ }
9975
+ return cache;
9976
+ };
9977
+ var overwriteObj = (params, obj) => {
9978
+ const changes = {};
9979
+ for (const e2 in params) {
9980
+ const objProp = obj[e2];
9981
+ const paramsProp = params[e2];
9982
+ if (paramsProp) {
9983
+ obj[e2] = changes[e2] = objProp;
9984
+ }
9985
+ }
9986
+ return changes;
9987
+ };
9988
+ var overwriteDeep2 = (params, obj) => {
9989
+ for (const e2 in params) {
9990
+ const objProp = obj[e2];
9991
+ const paramsProp = params[e2];
9992
+ if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
9993
+ overwriteDeep2(paramsProp, objProp);
9994
+ } else if (paramsProp !== void 0) {
9995
+ obj[e2] = paramsProp;
9996
+ }
9997
+ }
9998
+ return obj;
9999
+ };
10000
+ var mergeIfExisted = (a, b) => {
10001
+ if ((0, import_types.isObjectLike)(a) && (0, import_types.isObjectLike)(b))
10002
+ return deepMerge3(a, b);
10003
+ return a || b;
10004
+ };
10005
+ var mergeArray2 = (arr) => {
10006
+ return arr.reduce((a, c) => deepMerge3(a, deepClone22(c)), {});
10007
+ };
10008
+ var mergeAndCloneIfArray2 = (obj) => {
10009
+ return (0, import_types.isArray)(obj) ? mergeArray2(obj) : deepClone22(obj);
10010
+ };
10011
+ var flattenRecursive = (param, prop, stack = []) => {
10012
+ const objectized = mergeAndCloneIfArray2(param);
10013
+ stack.push(objectized);
10014
+ const extendOfExtend = objectized[prop];
10015
+ if (extendOfExtend)
10016
+ flattenRecursive(extendOfExtend, prop, stack);
10017
+ delete objectized[prop];
10018
+ return stack;
10019
+ };
10020
+ var isEqualDeep = (param, element) => {
10021
+ if (param === element)
10022
+ return true;
10023
+ if (!param || !element)
10024
+ return false;
10025
+ for (const prop in param) {
10026
+ const paramProp = param[prop];
10027
+ const elementProp = element[prop];
10028
+ if ((0, import_types.isObjectLike)(paramProp)) {
10029
+ const isEqual = isEqualDeep(paramProp, elementProp);
10030
+ if (!isEqual)
10031
+ return false;
10032
+ } else {
10033
+ const isEqual = paramProp === elementProp;
10034
+ if (!isEqual)
10035
+ return false;
10036
+ }
10037
+ }
10038
+ return true;
10039
+ };
10040
+ var removeFromObject2 = (obj, props3) => {
10041
+ if (props3 === void 0 || props3 === null)
10042
+ return obj;
10043
+ if ((0, import_types.is)(props3)("string", "number")) {
10044
+ delete obj[props3];
10045
+ } else if ((0, import_types.isArray)(props3)) {
10046
+ props3.forEach((prop) => delete obj[prop]);
10047
+ } else {
10048
+ throw new Error("Invalid input: props must be a string or an array of strings");
10049
+ }
10050
+ return obj;
10051
+ };
10052
+ }
10053
+ });
10054
+ var require_function2 = __commonJS2({
10055
+ "../../node_modules/@domql/utils/dist/cjs/function.js"(exports2, module22) {
10056
+ "use strict";
10057
+ var __defProp22 = Object.defineProperty;
10058
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
10059
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
10060
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
10061
+ var __export22 = (target, all) => {
10062
+ for (var name in all)
10063
+ __defProp22(target, name, { get: all[name], enumerable: true });
10064
+ };
10065
+ var __copyProps22 = (to, from2, except, desc) => {
10066
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
10067
+ for (let key of __getOwnPropNames22(from2))
10068
+ if (!__hasOwnProp22.call(to, key) && key !== except)
10069
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
10070
+ }
10071
+ return to;
10072
+ };
10073
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
10074
+ var function_exports = {};
10075
+ __export22(function_exports, {
10076
+ debounce: () => debounce,
10077
+ memoize: () => memoize2
10078
+ });
10079
+ module22.exports = __toCommonJS22(function_exports);
10080
+ var debounce = (element, func, timeout = 300) => {
10081
+ let timer;
10082
+ return (...args) => {
10083
+ clearTimeout(timer);
10084
+ timer = setTimeout(() => {
10085
+ func.apply(element, args);
10086
+ }, timeout);
10087
+ };
10088
+ };
10089
+ var memoize2 = (fn) => {
10090
+ const cache = {};
10091
+ return (...args) => {
10092
+ const n = args[0];
10093
+ if (n in cache) {
10094
+ return cache[n];
10095
+ } else {
10096
+ const result = fn(n);
10097
+ cache[n] = result;
10098
+ return result;
10099
+ }
10100
+ };
10101
+ };
10102
+ }
10103
+ });
10104
+ var require_array2 = __commonJS2({
10105
+ "../../node_modules/@domql/utils/dist/cjs/array.js"(exports2, module22) {
10106
+ "use strict";
10107
+ var __defProp22 = Object.defineProperty;
10108
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
10109
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
10110
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
10111
+ var __export22 = (target, all) => {
10112
+ for (var name in all)
10113
+ __defProp22(target, name, { get: all[name], enumerable: true });
10114
+ };
10115
+ var __copyProps22 = (to, from2, except, desc) => {
10116
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
10117
+ for (let key of __getOwnPropNames22(from2))
10118
+ if (!__hasOwnProp22.call(to, key) && key !== except)
10119
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
10120
+ }
10121
+ return to;
10122
+ };
10123
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
10124
+ var array_exports = {};
10125
+ __export22(array_exports, {
10126
+ arrayContainsOtherArray: () => arrayContainsOtherArray2,
10127
+ joinArrays: () => joinArrays,
10128
+ removeFromArray: () => removeFromArray2,
10129
+ swapItemsInArray: () => swapItemsInArray
10130
+ });
10131
+ module22.exports = __toCommonJS22(array_exports);
10132
+ var import_types = require_types2();
10133
+ var arrayContainsOtherArray2 = (arr1, arr2) => {
10134
+ return arr2.every((val) => arr1.includes(val));
10135
+ };
10136
+ var removeFromArray2 = (arr, index) => {
10137
+ if ((0, import_types.isString)(index))
10138
+ index = parseInt(index);
10139
+ if ((0, import_types.isNumber)(index)) {
10140
+ if (index < 0 || index >= arr.length || isNaN(index)) {
10141
+ throw new Error("Invalid index");
10142
+ }
10143
+ arr.splice(index, 1);
10144
+ } else if ((0, import_types.isArray)(index)) {
10145
+ index.forEach((idx) => removeFromArray2(arr, idx));
10146
+ } else {
10147
+ throw new Error("Invalid index");
10148
+ }
10149
+ return arr;
10150
+ };
10151
+ var swapItemsInArray = (arr, i, j) => {
10152
+ [arr[i], arr[j]] = [arr[j], arr[i]];
10153
+ };
10154
+ var joinArrays = (...arrays) => {
10155
+ return [].concat(...arrays);
10156
+ };
10157
+ }
10158
+ });
10159
+ var require_log2 = __commonJS2({
10160
+ "../../node_modules/@domql/utils/dist/cjs/log.js"(exports2, module22) {
10161
+ "use strict";
10162
+ var __defProp22 = Object.defineProperty;
10163
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
10164
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
10165
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
10166
+ var __export22 = (target, all) => {
10167
+ for (var name in all)
10168
+ __defProp22(target, name, { get: all[name], enumerable: true });
10169
+ };
10170
+ var __copyProps22 = (to, from2, except, desc) => {
10171
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
10172
+ for (let key of __getOwnPropNames22(from2))
10173
+ if (!__hasOwnProp22.call(to, key) && key !== except)
10174
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
10175
+ }
10176
+ return to;
10177
+ };
10178
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
10179
+ var log_exports = {};
10180
+ __export22(log_exports, {
10181
+ logGroupIf: () => logGroupIf,
10182
+ logIf: () => logIf
10183
+ });
10184
+ module22.exports = __toCommonJS22(log_exports);
10185
+ var logIf = (bool, ...arg) => {
10186
+ if (bool)
10187
+ arg.map((v) => console.log(v));
10188
+ };
10189
+ var logGroupIf = (bool, key, ...arg) => {
10190
+ if (bool) {
10191
+ console.group(key);
10192
+ arg.map((v) => console.log(v));
10193
+ console.groupEnd(key);
10194
+ }
10195
+ };
10196
+ }
10197
+ });
10198
+ var require_cjs42 = __commonJS2({
10199
+ "../../node_modules/@domql/utils/dist/cjs/index.js"(exports2, module22) {
10200
+ "use strict";
10201
+ var __defProp22 = Object.defineProperty;
10202
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
10203
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
10204
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
10205
+ var __copyProps22 = (to, from2, except, desc) => {
10206
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
10207
+ for (let key of __getOwnPropNames22(from2))
10208
+ if (!__hasOwnProp22.call(to, key) && key !== except)
10209
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
10210
+ }
10211
+ return to;
10212
+ };
10213
+ var __reExport = (target, mod, secondTarget) => (__copyProps22(target, mod, "default"), secondTarget && __copyProps22(secondTarget, mod, "default"));
10214
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
10215
+ var utils_exports2 = {};
10216
+ module22.exports = __toCommonJS22(utils_exports2);
10217
+ __reExport(utils_exports2, require_cjs22(), module22.exports);
10218
+ __reExport(utils_exports2, require_types2(), module22.exports);
10219
+ __reExport(utils_exports2, require_object2(), module22.exports);
10220
+ __reExport(utils_exports2, require_function2(), module22.exports);
10221
+ __reExport(utils_exports2, require_array2(), module22.exports);
10222
+ __reExport(utils_exports2, require_node2(), module22.exports);
10223
+ __reExport(utils_exports2, require_log2(), module22.exports);
10224
+ }
10225
+ });
10226
+ var src_exports = {};
10227
+ __export2(src_exports, {
10228
+ ANIMATION: () => ANIMATION,
10229
+ BREAKPOINTS: () => BREAKPOINTS,
10230
+ CASES: () => CASES,
10231
+ COLOR: () => COLOR,
10232
+ CONFIG: () => CONFIG5,
10233
+ CSS_VARS: () => CSS_VARS,
10234
+ DEVICES: () => DEVICES,
10235
+ DOCUMENT: () => DOCUMENT,
10236
+ FACTORY: () => FACTORY,
10237
+ FONT: () => FONT,
10238
+ FONT_FACE: () => FONT_FACE,
10239
+ FONT_FAMILY: () => FONT_FAMILY,
10240
+ FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES,
10241
+ GRADIENT: () => GRADIENT,
10242
+ ICONS: () => ICONS,
10243
+ MEDIA: () => MEDIA,
10244
+ RESET: () => RESET,
10245
+ SEQUENCE: () => SEQUENCE,
10246
+ SPACING: () => SPACING,
10247
+ SVG: () => SVG,
10248
+ SVG_DATA: () => SVG_DATA,
10249
+ THEME: () => THEME,
10250
+ TIMING: () => TIMING,
10251
+ TYPOGRAPHY: () => TYPOGRAPHY,
10252
+ UNIT: () => UNIT,
10253
+ VALUE_TRANSFORMERS: () => VALUE_TRANSFORMERS,
10254
+ activateConfig: () => activateConfig,
10255
+ appendIconsSprite: () => appendIconsSprite,
10256
+ appendSVGSprite: () => appendSVGSprite,
10257
+ applyDocument: () => applyDocument,
10258
+ applyHeadings: () => applyHeadings,
10259
+ applyReset: () => applyReset,
10260
+ applySequenceVars: () => applySequenceVars,
10261
+ applySpacingSequence: () => applySpacingSequence,
10262
+ applyTimingSequence: () => applyTimingSequence,
10263
+ applyTypographySequence: () => applyTypographySequence,
10264
+ changeLightness: () => changeLightness,
10265
+ colorStringToRgbaArray: () => colorStringToRgbaArray,
10266
+ convertSvgToSymbol: () => convertSvgToSymbol,
10267
+ findHeadingLetter: () => findHeadingLetter,
10268
+ findHeadings: () => findHeadings,
10269
+ generateSequence: () => generateSequence,
10270
+ generateSprite: () => generateSprite,
10271
+ generateSubSequence: () => generateSubSequence,
10272
+ getActiveConfig: () => getActiveConfig5,
10273
+ getColor: () => getColor5,
10274
+ getColorShade: () => getColorShade,
10275
+ getDefaultOrFirstKey: () => getDefaultOrFirstKey,
10276
+ getFontFace: () => getFontFace,
10277
+ getFontFaceEach: () => getFontFaceEach,
10278
+ getFontFaceEachString: () => getFontFaceEachString,
10279
+ getFontFaceString: () => getFontFaceString,
10280
+ getFontFamily: () => getFontFamily5,
10281
+ getFontFormat: () => getFontFormat,
10282
+ getFontSizeByKey: () => getFontSizeByKey5,
10283
+ getMediaColor: () => getMediaColor9,
10284
+ getMediaTheme: () => getMediaTheme5,
10285
+ getSequenceValue: () => getSequenceValue,
10286
+ getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
10287
+ getSpacingBasedOnRatio: () => getSpacingBasedOnRatio13,
10288
+ getSpacingByKey: () => getSpacingByKey9,
10289
+ getTheme: () => getTheme5,
10290
+ getTimingByKey: () => getTimingByKey5,
10291
+ getTimingFunction: () => getTimingFunction9,
10292
+ hexToRgb: () => hexToRgb,
10293
+ hexToRgbArray: () => hexToRgbArray,
10294
+ hexToRgba: () => hexToRgba,
10295
+ hslToRgb: () => hslToRgb,
10296
+ mixTwoColors: () => mixTwoColors,
10297
+ mixTwoRgb: () => mixTwoRgb,
10298
+ mixTwoRgba: () => mixTwoRgba,
10299
+ numToLetterMap: () => numToLetterMap,
10300
+ opacify: () => opacify3,
10301
+ returnSubThemeOrDefault: () => returnSubThemeOrDefault,
10302
+ rgbArrayToHex: () => rgbArrayToHex,
10303
+ rgbToHSL: () => rgbToHSL,
10304
+ rgbToHex: () => rgbToHex,
10305
+ runThroughMedia: () => runThroughMedia,
10306
+ scratchSystem: () => system_exports,
10307
+ scratchUtils: () => utils_exports,
10308
+ set: () => set2,
10309
+ setActiveConfig: () => setActiveConfig,
10310
+ setColor: () => setColor,
10311
+ setCustomFont: () => setCustomFont,
10312
+ setCustomFontMedia: () => setCustomFontMedia,
10313
+ setEach: () => setEach,
10314
+ setFont: () => setFont,
10315
+ setFontFamily: () => setFontFamily,
10316
+ setGradient: () => setGradient,
10317
+ setIcon: () => setIcon,
10318
+ setInCustomFontMedia: () => setInCustomFontMedia,
10319
+ setMediaTheme: () => setMediaTheme,
10320
+ setSVG: () => setSVG,
10321
+ setTheme: () => setTheme,
10322
+ setValue: () => setValue,
10323
+ setVariables: () => setVariables,
10324
+ splitTransition: () => splitTransition5,
10325
+ transformBackgroundImage: () => transformBackgroundImage5,
10326
+ transformBorder: () => transformBorder5,
10327
+ transformDuration: () => transformDuration5,
10328
+ transformShadow: () => transformShadow5,
10329
+ transformTextStroke: () => transformTextStroke5,
10330
+ transformTransition: () => transformTransition,
10331
+ transfromGap: () => transfromGap5
10332
+ });
10333
+ module2.exports = __toCommonJS2(src_exports);
10334
+ var utils_exports = {};
10335
+ __export2(utils_exports, {
10336
+ applySequenceVars: () => applySequenceVars,
10337
+ changeLightness: () => changeLightness,
10338
+ colorStringToRgbaArray: () => colorStringToRgbaArray,
10339
+ convertSvgToSymbol: () => convertSvgToSymbol,
10340
+ findHeadingLetter: () => findHeadingLetter,
10341
+ findHeadings: () => findHeadings,
10342
+ generateSequence: () => generateSequence,
10343
+ generateSprite: () => generateSprite,
10344
+ generateSubSequence: () => generateSubSequence,
10345
+ getColorShade: () => getColorShade,
10346
+ getDefaultOrFirstKey: () => getDefaultOrFirstKey,
10347
+ getFontFace: () => getFontFace,
10348
+ getFontFaceEach: () => getFontFaceEach,
10349
+ getFontFaceEachString: () => getFontFaceEachString,
10350
+ getFontFaceString: () => getFontFaceString,
10351
+ getFontFormat: () => getFontFormat,
10352
+ getSequenceValue: () => getSequenceValue,
10353
+ getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
10354
+ hexToRgb: () => hexToRgb,
10355
+ hexToRgbArray: () => hexToRgbArray,
10356
+ hexToRgba: () => hexToRgba,
10357
+ hslToRgb: () => hslToRgb,
10358
+ mixTwoColors: () => mixTwoColors,
10359
+ mixTwoRgb: () => mixTwoRgb,
10360
+ mixTwoRgba: () => mixTwoRgba,
10361
+ numToLetterMap: () => numToLetterMap,
10362
+ opacify: () => opacify3,
10363
+ returnSubThemeOrDefault: () => returnSubThemeOrDefault,
10364
+ rgbArrayToHex: () => rgbArrayToHex,
10365
+ rgbToHSL: () => rgbToHSL,
10366
+ rgbToHex: () => rgbToHex,
10367
+ setCustomFont: () => setCustomFont,
10368
+ setCustomFontMedia: () => setCustomFontMedia,
10369
+ setInCustomFontMedia: () => setInCustomFontMedia,
10370
+ setVariables: () => setVariables
10371
+ });
10372
+ var import_globals = __toESM2(require_cjs12(), 1);
10373
+ var ENV = "development";
10374
+ var colorStringToRgbaArray = (color) => {
10375
+ if (color === "")
10376
+ return;
10377
+ if (color.toLowerCase() === "transparent")
10378
+ return [0, 0, 0, 0];
10379
+ if (color[0] === "#") {
10380
+ if (color.length < 7) {
10381
+ color = "#" + color[1] + color[1] + color[2] + color[2] + color[3] + color[3] + (color.length > 4 ? color[4] + color[4] : "");
10382
+ }
10383
+ return [
10384
+ parseInt(color.substr(1, 2), 16),
10385
+ parseInt(color.substr(3, 2), 16),
10386
+ parseInt(color.substr(5, 2), 16),
10387
+ color.length > 7 ? parseInt(color.substr(7, 2), 16) / 255 : 1
10388
+ ];
10389
+ }
10390
+ if (color.indexOf("rgb") === -1) {
10391
+ if (import_globals.document && import_globals.window) {
10392
+ const elem = import_globals.document.body.appendChild(import_globals.document.createElement("fictum"));
10393
+ const flag = "rgb(1, 2, 3)";
10394
+ elem.style.color = flag;
10395
+ if (elem.style.color !== flag)
10396
+ return;
10397
+ elem.style.color = color;
10398
+ if (elem.style.color === flag || elem.style.color === "")
10399
+ return;
10400
+ color = import_globals.window.getComputedStyle(elem).color;
10401
+ import_globals.document.body.removeChild(elem);
10402
+ }
10403
+ }
10404
+ if (color.indexOf("rgb") === 0) {
10405
+ if (color.indexOf("rgba") === -1)
10406
+ color = `${color}, 1`;
10407
+ return color.match(/[\.\d]+/g).map((a) => +a);
10408
+ }
10409
+ return [];
10410
+ };
10411
+ var mixTwoColors = (colorA, colorB, range = 0.5) => {
10412
+ colorA = colorStringToRgbaArray(colorA);
10413
+ colorB = colorStringToRgbaArray(colorB);
10414
+ return mixTwoRgba(colorA, colorB, range);
10415
+ };
10416
+ var hexToRgb = (hex, alpha = 1) => {
10417
+ const [r, g, b] = hex.match(/\w\w/g).map((x) => parseInt(x, 16));
10418
+ return `rgb(${r},${g},${b})`;
10419
+ };
10420
+ var hexToRgbArray = (hex, alpha = 1) => {
10421
+ const [r, g, b] = hex.match(/\w\w/g).map((x) => parseInt(x, 16));
10422
+ return [r, g, b];
10423
+ };
10424
+ var rgbToHex = (r, g, b) => {
10425
+ return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
10426
+ };
10427
+ var rgbArrayToHex = ([r, g, b]) => {
10428
+ return ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
10429
+ };
10430
+ var hexToRgba = (hex, alpha = 1) => {
10431
+ const [r, g, b] = hex.match(/\w\w/g).map((x) => parseInt(x, 16));
10432
+ return `rgba(${r},${g},${b},${alpha})`;
10433
+ };
10434
+ var mixTwoRgb = (colorA, colorB, range = 0.5) => {
10435
+ const arr = [];
10436
+ for (let i = 0; i < 3; i++) {
10437
+ arr[i] = ~~(colorA[i] + (colorB[i] - colorA[i]) * range);
10438
+ }
10439
+ return `rgb(${arr})`;
10440
+ };
10441
+ var changeLightness = (delta, hsl) => {
10442
+ const [hue, saturation, lightness] = hsl;
10443
+ const newLightness = Math.max(
10444
+ 0,
10445
+ Math.min(100, lightness + parseFloat(delta))
10446
+ );
10447
+ return [hue, saturation, newLightness];
10448
+ };
10449
+ var rgbToHSL = (r, g, b) => {
10450
+ const a = Math.max(r, g, b);
10451
+ const n = a - Math.min(r, g, b);
10452
+ const f = 1 - Math.abs(a + a - n - 1);
10453
+ const h = n && (a == r ? (g - b) / n : a == g ? 2 + (b - r) / n : 4 + (r - g) / n);
10454
+ return [60 * (h < 0 ? h + 6 : h), f ? n / f : 0, (a + a - n) / 2];
10455
+ };
10456
+ var hslToRgb = (h, s, l, a = s * Math.min(l, 1 - l), f = (n, k = (n + h / 30) % 12) => l - a * Math.max(
10457
+ Math.min(k - 3, 9 - k, 1),
10458
+ -1
10459
+ )) => [f(0), f(8), f(4)];
10460
+ var getColorShade = (col, amt) => {
10461
+ const num = parseInt(col, 16);
10462
+ let r = (num >> 16) + amt;
10463
+ if (r > 255)
10464
+ r = 255;
10465
+ else if (r < 0)
10466
+ r = 0;
10467
+ let b = (num >> 8 & 255) + amt;
10468
+ if (b > 255)
10469
+ b = 255;
10470
+ else if (b < 0)
10471
+ b = 0;
10472
+ let g = (num & 255) + amt;
10473
+ if (g > 255)
10474
+ g = 255;
10475
+ else if (g < 0)
10476
+ g = 0;
10477
+ return (g | b << 8 | r << 16).toString(16);
10478
+ };
10479
+ var mixTwoRgba = (colorA, colorB, range = 0.5) => {
10480
+ const arr = [];
10481
+ for (let i = 0; i < 4; i++) {
10482
+ const round = i === 3 ? (x) => x : Math.round;
10483
+ arr[i] = round(
10484
+ colorA[i] + (colorB[i] - colorA[i]) * range
10485
+ );
10486
+ }
10487
+ return `rgba(${arr})`;
10488
+ };
10489
+ var opacify3 = (color, opacity) => {
10490
+ const arr = colorStringToRgbaArray(color);
10491
+ if (!arr) {
10492
+ if (ENV === "test" || ENV === "development")
10493
+ console.warn(color + "color is not rgba");
10494
+ return;
10495
+ }
10496
+ arr[3] = opacity;
10497
+ return `rgba(${arr})`;
10498
+ };
10499
+ var returnSubThemeOrDefault = (orig, theme) => {
10500
+ if (!orig)
10501
+ return;
10502
+ if (orig.themes && orig.themes[theme])
10503
+ return orig.themes[theme];
10504
+ if (orig[theme])
10505
+ return [orig, orig[theme]];
10506
+ return orig;
10507
+ };
10508
+ var getDefaultOrFirstKey = (LIBRARY, key) => {
10509
+ if (LIBRARY[key])
10510
+ return LIBRARY[key].value;
10511
+ if (LIBRARY.default)
10512
+ return LIBRARY[LIBRARY.default].value;
10513
+ const hasValue = Object.keys(LIBRARY)[0];
10514
+ return hasValue && LIBRARY[hasValue] && LIBRARY[hasValue].value;
10515
+ };
10516
+ var getFontFormat = (url) => url.split(/[#?]/)[0].split(".").pop().trim();
10517
+ var setInCustomFontMedia = (str) => `@font-face { ${str} }`;
10518
+ var setCustomFont = (name, url, weight) => `
10519
+ font-family: '${name}';
10520
+ font-style: normal;
10521
+ ${weight && `font-weight: ${weight};`}
10522
+ src: url('${url}') format('${getFontFormat(url)}');`;
10523
+ var setCustomFontMedia = (name, url, weight) => `@font-face {
10524
+ ${setCustomFont(name, url, weight)}
10525
+ }`;
10526
+ var getFontFaceEach = (name, weights) => {
10527
+ const keys = Object.keys(weights);
10528
+ return keys.map((key) => {
10529
+ const { url, fontWeight } = weights[key];
10530
+ return setCustomFont(name, url, fontWeight);
10531
+ });
10532
+ };
10533
+ var getFontFace = (LIBRARY) => {
10534
+ const keys = Object.keys(LIBRARY);
10535
+ return keys.map((key) => getFontFaceEach(key, LIBRARY[key].value));
10536
+ };
10537
+ var getFontFaceEachString = (name, weights) => {
10538
+ const isArr = weights[0];
10539
+ if (isArr)
10540
+ return getFontFaceEach(name, weights).map(setInCustomFontMedia);
10541
+ return setCustomFontMedia(name, weights.url);
10542
+ };
10543
+ var getFontFaceString = (LIBRARY) => {
10544
+ const keys = Object.keys(LIBRARY);
10545
+ return keys.map((key) => getFontFaceEachString(key, LIBRARY[key].value));
10546
+ };
10547
+ var import_utils42 = __toESM2(require_cjs42(), 1);
10548
+ var import_utils22 = __toESM2(require_cjs42());
10549
+ var import_utils21 = __toESM2(require_cjs42());
10550
+ var toCamelCase = (str) => {
10551
+ return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
10552
+ return index === 0 ? word.toLowerCase() : word.toUpperCase();
10553
+ }).replaceAll(/\s+/g, "");
10554
+ };
10555
+ var toDashCase = (val) => val.replace(/[A-Z]/g, (match2, offset) => (offset > 0 ? "-" : "") + match2.toLowerCase()).replace(".", "-");
10556
+ var arrayzeValue = (val) => {
10557
+ if ((0, import_utils22.isString)(val))
10558
+ return val.split(" ");
10559
+ if ((0, import_utils22.isObject)(val))
10560
+ return Object.keys(val).map((v) => val[v]);
10561
+ if ((0, import_utils22.isArray)(val))
10562
+ return val;
10563
+ };
10564
+ var import_utils32 = __toESM2(require_cjs42(), 1);
10565
+ var defaultConfig_exports = {};
10566
+ __export2(defaultConfig_exports, {
10567
+ ANIMATION: () => ANIMATION,
10568
+ BREAKPOINTS: () => BREAKPOINTS,
10569
+ CASES: () => CASES,
10570
+ COLOR: () => COLOR,
10571
+ DEVICES: () => DEVICES,
10572
+ DOCUMENT: () => DOCUMENT,
10573
+ FONT: () => FONT,
10574
+ FONT_FACE: () => FONT_FACE,
10575
+ FONT_FAMILY: () => FONT_FAMILY,
10576
+ FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES,
10577
+ GRADIENT: () => GRADIENT,
10578
+ ICONS: () => ICONS,
10579
+ MEDIA: () => MEDIA,
10580
+ RESET: () => RESET,
10581
+ SEQUENCE: () => SEQUENCE,
10582
+ SPACING: () => SPACING,
10583
+ SVG: () => SVG,
10584
+ SVG_DATA: () => SVG_DATA,
10585
+ THEME: () => THEME,
10586
+ TIMING: () => TIMING,
10587
+ TYPOGRAPHY: () => TYPOGRAPHY,
10588
+ UNIT: () => UNIT
10589
+ });
10590
+ var SEQUENCE = {
10591
+ "minor-second": 1.067,
10592
+ "major-second": 1.125,
10593
+ "minor-third": 1.2,
10594
+ "major-third": 1.25,
10595
+ "perfect-fourth": 1.333,
10596
+ "augmented-fourth": 1.414,
10597
+ "perfect-fifth": 1.5,
10598
+ "minor-sixth": 1.6,
10599
+ phi: 1.618,
10600
+ // golden-ratio
10601
+ "major-sixth": 1.667,
10602
+ "square-root-3": 1.732,
10603
+ // theodorus
10604
+ "minor-seventh": 1.778,
10605
+ "major-seventh": 1.875,
10606
+ octave: 2,
10607
+ "square-root-5": 2.23,
10608
+ // pythagoras
10609
+ "major-tenth": 2.5,
10610
+ "major-eleventh": 2.667,
10611
+ "major-twelfth": 3,
10612
+ pi: 3.14,
10613
+ // archimedes
10614
+ "double-octave": 4
10615
+ };
10616
+ var UNIT = {
10617
+ default: "em"
10618
+ };
10619
+ var defaultProps = {
10620
+ browserDefault: 16,
10621
+ base: 16,
10622
+ type: "font-size",
10623
+ ratio: SEQUENCE["minor-third"],
10624
+ range: [-3, 12],
10625
+ h1Matches: 6,
10626
+ lineHeight: 1.5,
10627
+ unit: "em",
10628
+ templates: {},
10629
+ sequence: {},
10630
+ scales: {},
10631
+ vars: {}
10632
+ };
10633
+ var TYPOGRAPHY = defaultProps;
10634
+ var FONT = {};
10635
+ var FONT_FAMILY = {};
10636
+ var FONT_FAMILY_TYPES = {
10637
+ "sans-serif": "Helvetica, Arial, sans-serif, --system-default",
10638
+ serif: "Times New Roman, Georgia, serif, --system-default",
10639
+ monospace: "Courier New, monospace, --system-default"
10640
+ };
10641
+ var FONT_FACE = {};
10642
+ var MEDIA = {
10643
+ tv: "(min-width: 2780px)",
10644
+ screenL: "(max-width: 1920px)",
10645
+ "screenL<": "(min-width: 1920px)",
10646
+ screenM: "(max-width: 1680px)",
10647
+ "screenM<": "(min-width: 1680px)",
10648
+ screenS: "(max-width: 1440px)",
10649
+ "screenS<": "(min-width: 1440px)",
10650
+ tabletL: "(max-width: 1366px)",
10651
+ "tabletL<": "(min-width: 1366px)",
10652
+ tabletM: "(max-width: 1280px)",
10653
+ "tabletM<": "(min-width: 1280px)",
10654
+ tabletS: "(max-width: 1024px)",
10655
+ "tabletS<": "(min-width: 1024px)",
10656
+ mobileL: "(max-width: 768px)",
10657
+ "mobileL<": "(min-width: 768px)",
10658
+ mobileM: "(max-width: 560px)",
10659
+ "mobileM<": "(min-width: 560px)",
10660
+ mobileS: "(max-width: 480px)",
10661
+ "mobileS<": "(min-width: 480px)",
10662
+ mobileXS: "(max-width: 375px)",
10663
+ "mobileXS<": "(min-width: 375px)",
10664
+ light: "(prefers-color-scheme: light)",
10665
+ dark: "(prefers-color-scheme: dark)",
10666
+ print: "print"
10667
+ };
10668
+ var defaultProps2 = {
10669
+ base: TYPOGRAPHY.base,
10670
+ type: "spacing",
10671
+ ratio: SEQUENCE.phi,
10672
+ range: [-5, 15],
10673
+ subSequence: true,
10674
+ unit: "em",
10675
+ sequence: {},
10676
+ scales: {},
10677
+ vars: {}
10678
+ };
10679
+ var SPACING = defaultProps2;
10680
+ var COLOR = {};
10681
+ var GRADIENT = {};
10682
+ var THEME = {};
10683
+ var ICONS = {};
10684
+ var defaultProps3 = {
10685
+ default: 150,
10686
+ base: 150,
10687
+ type: "timing",
10688
+ ratio: SEQUENCE["perfect-fourth"],
10689
+ range: [-3, 12],
10690
+ unit: "ms",
10691
+ sequence: {},
10692
+ scales: {},
10693
+ vars: {}
10694
+ };
10695
+ var TIMING = defaultProps3;
10696
+ var DOCUMENT = {};
10697
+ var BREAKPOINTS = {
10698
+ screenL: 1920,
10699
+ screenM: 1680,
10700
+ screenS: 1440,
10701
+ tabletL: 1366,
10702
+ tabletM: 1280,
10703
+ tabletS: 1024,
10704
+ mobileL: 768,
10705
+ mobileM: 560,
10706
+ mobileS: 480,
10707
+ mobileXS: 375
10708
+ };
10709
+ var DEVICES = {
10710
+ screenL: [1920, 1024],
10711
+ screenM: [1680, 1024],
10712
+ screenS: [1440, 978],
10713
+ tabletL: [1366, 926],
10714
+ tabletM: [1280, 768],
10715
+ tabletS: [1024, 768],
10716
+ mobileL: [768, 375],
10717
+ mobileM: [560, 768],
10718
+ mobileS: [480, 768],
10719
+ mobileXS: [375, 768]
10720
+ };
10721
+ var CASES = {};
10722
+ var ANIMATION = {};
10723
+ var SVG = {};
10724
+ var SVG_DATA = {};
10725
+ var RESET = {};
10726
+ var CSS_VARS = {};
10727
+ var CONFIG5 = {
10728
+ verbose: false,
10729
+ useVariable: true,
10730
+ useReset: true,
10731
+ CSS_VARS,
10732
+ ...defaultConfig_exports
10733
+ };
10734
+ var cachedConfig = (0, import_utils32.deepClone)(CONFIG5);
10735
+ var FACTORY = {
10736
+ active: "0",
10737
+ 0: CONFIG5
10738
+ };
10739
+ var activateConfig = (def) => {
10740
+ if ((0, import_utils32.isDefined)(def)) {
10741
+ FACTORY.active = def;
10742
+ }
10743
+ return FACTORY[def || FACTORY.active];
10744
+ };
10745
+ var getActiveConfig5 = (def) => {
10746
+ return FACTORY[def || FACTORY.active];
10747
+ };
10748
+ var setActiveConfig = (newConfig) => {
10749
+ if (!(0, import_utils32.isObject)(newConfig))
10750
+ return;
10751
+ FACTORY.active = "1";
10752
+ FACTORY["1"] = (0, import_utils32.deepMerge)(newConfig, (0, import_utils32.deepClone)(cachedConfig));
10753
+ return newConfig;
10754
+ };
10755
+ var numToLetterMap = {
10756
+ "-6": "U",
10757
+ "-5": "V",
10758
+ "-4": "W",
10759
+ "-3": "X",
10760
+ "-2": "Y",
10761
+ "-1": "Z",
10762
+ 0: "A",
10763
+ 1: "B",
10764
+ 2: "C",
10765
+ 3: "D",
10766
+ 4: "E",
10767
+ 5: "F",
10768
+ 6: "G",
10769
+ 7: "H",
10770
+ 8: "I",
10771
+ 9: "J",
10772
+ 10: "K",
10773
+ 11: "L",
10774
+ 12: "M",
10775
+ 13: "N",
10776
+ 14: "O",
10777
+ 15: "P",
10778
+ 16: "Q",
10779
+ 17: "R",
10780
+ 18: "S",
10781
+ 19: "T"
10782
+ };
10783
+ var setSequenceValue = (props3, sequenceProps) => {
10784
+ const { key, variable, value, scaling, index } = props3;
10785
+ sequenceProps.sequence[key] = {
10786
+ key,
10787
+ decimal: ~~(value * 100) / 100,
10788
+ val: ~~value,
10789
+ scaling,
10790
+ index,
10791
+ variable
10792
+ };
10793
+ sequenceProps.scales[key] = scaling;
10794
+ sequenceProps.vars[variable] = scaling + sequenceProps.unit;
10795
+ };
10796
+ var generateSubSequence = (props3, sequenceProps) => {
10797
+ const { key, base, value, ratio, variable, index } = props3;
10798
+ const next2 = value * ratio;
10799
+ const diff5 = next2 - value;
10800
+ const smallscale = diff5 / 1.618;
10801
+ const valueRounded = ~~value;
10802
+ const nextRounded = ~~next2;
10803
+ const diffRounded = nextRounded - valueRounded;
10804
+ let arr = [];
10805
+ const first = next2 - smallscale;
10806
+ const second = value + smallscale;
10807
+ const middle = (first + second) / 2;
10808
+ if (diffRounded > 16)
10809
+ arr = [first, middle, second];
10810
+ else
10811
+ arr = [first, second];
10812
+ arr.map((v, k) => {
10813
+ const scaling = ~~(v / base * 1e3) / 1e3;
10814
+ const newVar = variable + (k + 1);
10815
+ const props22 = {
10816
+ key: key + (k + 1),
10817
+ variable: newVar,
10818
+ value: v,
10819
+ scaling,
10820
+ index: index + (k + 1) / 10
10821
+ };
10822
+ return setSequenceValue(props22, sequenceProps);
10823
+ });
10824
+ };
10825
+ var switchSequenceOnNegative = (key, base, ratio) => {
10826
+ return base * Math.pow(ratio, key);
10827
+ };
10828
+ var generateSequence = (sequenceProps) => {
10829
+ const { type, base, ratio, range, subSequence } = sequenceProps;
10830
+ const n = Math.abs(range[0]) + Math.abs(range[1]);
10831
+ const prefix2 = "--" + (type && type.replace(".", "-")) + "-";
10832
+ for (let i = 0; i <= n; i++) {
10833
+ const key = range[1] - i;
10834
+ const letterKey = numToLetterMap[key];
10835
+ const value = switchSequenceOnNegative(key, base, ratio);
10836
+ const scaling = ~~(value / base * 100) / 100;
10837
+ const variable = prefix2 + letterKey;
10838
+ const props3 = {
10839
+ key: letterKey,
10840
+ variable,
10841
+ value,
10842
+ base,
10843
+ scaling,
10844
+ ratio,
10845
+ index: key
10846
+ };
10847
+ setSequenceValue(props3, sequenceProps);
10848
+ if (subSequence)
10849
+ generateSubSequence(props3, sequenceProps);
10850
+ }
10851
+ return sequenceProps;
10852
+ };
10853
+ var getSequenceValue = (value = "A", sequenceProps) => {
10854
+ const CONFIG22 = getActiveConfig5();
10855
+ const { UNIT: UNIT2 } = CONFIG22;
10856
+ const {
10857
+ sequence,
10858
+ unit = UNIT2.default,
10859
+ useVariable
10860
+ } = sequenceProps;
10861
+ if ((0, import_utils42.isString)(value) && value.slice(0, 2) === "--")
10862
+ return `var(${value})`;
10863
+ const prefix2 = `--${toDashCase(sequenceProps.type.replace(".", "-"))}-`;
10864
+ const startsWithDashOrLetterRegex = /^-?[a-zA-Z]/i;
10865
+ const startsWithDashOrLetter = startsWithDashOrLetterRegex.test(value);
10866
+ if (value === "none" || value === "auto" || value === "unset" || value === "inherit" || value === "fit-content" || value === "min-content" || value === "max-content" || value.includes("calc") || !startsWithDashOrLetter)
10867
+ return value;
10868
+ const letterVal = value.toUpperCase();
10869
+ const isNegative = letterVal.slice(0, 1) === "-" ? "-" : "";
10870
+ let absValue = isNegative ? letterVal.slice(1) : letterVal;
10871
+ let mediaName = "";
10872
+ if (absValue.includes("-")) {
10873
+ mediaName = "-" + absValue.split("-")[1].toLowerCase();
10874
+ absValue = absValue.split("-")[0];
10875
+ }
10876
+ const varValue = (v) => `var(${prefix2}${v}${mediaName})`;
10877
+ if (absValue.includes("+")) {
10878
+ const args = absValue.split("+");
10879
+ const [first, second] = args;
10880
+ const joint = `${varValue(first)} + ${varValue(second)}`;
10881
+ return isNegative ? `calc((${joint}) * -1)` : `calc(${joint})`;
10882
+ } else if (absValue.includes("-")) {
10883
+ const args = absValue.split("-");
10884
+ const [first, second] = args;
10885
+ const joint = `${varValue(first)} - ${varValue(second)}`;
10886
+ return isNegative ? `calc((${joint}) * -1)` : `calc(${joint})`;
10887
+ }
10888
+ if (!sequence[absValue] && absValue.length === 2) {
10889
+ if (CONFIG22.verbose)
10890
+ console.warn(absValue, "- value is not found because `subSequence` is set to false");
10891
+ absValue = absValue.slice(0, 1);
10892
+ }
10893
+ if (useVariable || CONFIG22.useVariable) {
10894
+ const varValue2 = `var(${prefix2}${absValue}${mediaName})`;
10895
+ return isNegative ? `calc(${varValue2} * -1)` : varValue2;
10896
+ }
10897
+ const sequenceItem = sequence ? sequence[absValue] : null;
10898
+ if (!sequenceItem)
10899
+ return console.warn("can't find", sequence, absValue);
10900
+ if (unit === "ms" || unit === "s") {
10901
+ return isNegative + sequenceItem.val + unit;
10902
+ }
10903
+ return isNegative + sequenceItem.scaling + unit;
10904
+ };
10905
+ var getSequenceValuePropertyPair = (value, propertyName, sequenceProps) => {
10906
+ if (typeof value !== "string") {
10907
+ console.warn(propertyName, value, "is not a string");
10908
+ return {};
10909
+ }
10910
+ if (value === "-" || value === "")
10911
+ return {};
10912
+ return { [propertyName]: getSequenceValue(value, sequenceProps) };
10913
+ };
10914
+ var findHeadingLetter = (h1Matches, index) => numToLetterMap[h1Matches - index];
10915
+ var findHeadings = (propertyNames) => {
10916
+ const { h1Matches, sequence } = propertyNames;
10917
+ return new Array(6).fill(null).map((_, i) => {
10918
+ const findLetter = findHeadingLetter(h1Matches, i);
10919
+ return sequence[findLetter];
10920
+ });
10921
+ };
10922
+ var import_utils62 = __toESM2(require_cjs42(), 1);
10923
+ var setVariables = (result, key) => {
10924
+ const CONFIG22 = getActiveConfig5();
10925
+ const { CSS_VARS: CSS_VARS2 } = CONFIG22;
10926
+ if ((0, import_utils62.isObjectLike)(result.value)) {
10927
+ } else {
10928
+ CSS_VARS2[result.var] = result.value;
10929
+ }
10930
+ };
10931
+ var applySequenceVars = (props3, mediaName, options = {}) => {
10932
+ const CONFIG22 = getActiveConfig5();
10933
+ const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
10934
+ const unit = props3.unit || UNIT2.default;
10935
+ const { sequence, scales } = props3;
10936
+ for (const key in sequence) {
10937
+ const item = sequence[key];
10938
+ const value = (props3.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
10939
+ if (mediaName) {
10940
+ const query = MEDIA2[mediaName];
10941
+ if (!query) {
10942
+ if (CONFIG22.verbose)
10943
+ console.warn("Can't find query ", query);
10944
+ }
10945
+ let underMediaQuery = CSS_VARS2[`@media ${query}`];
10946
+ if (!underMediaQuery)
10947
+ underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
10948
+ underMediaQuery[item.variable] = `var(${item.variable + "-" + mediaName})`;
10949
+ CSS_VARS2[item.variable + "-" + mediaName] = value;
10950
+ } else {
10951
+ if (options.useDefault === false) {
10952
+ CSS_VARS2[item.variable] = value;
10953
+ } else {
10954
+ CSS_VARS2[item.variable + "-default"] = value;
10955
+ CSS_VARS2[item.variable] = `var(${item.variable + "-default"})`;
10956
+ }
10957
+ }
10958
+ }
10959
+ };
10960
+ var import_utils72 = __toESM2(require_cjs42(), 1);
10961
+ var generateSprite = (icons) => {
10962
+ const CONFIG22 = getActiveConfig5();
10963
+ let sprite = "";
10964
+ for (const key in icons) {
10965
+ if (CONFIG22.__svg_cache[key])
10966
+ continue;
10967
+ else
10968
+ CONFIG22.__svg_cache[key] = true;
10969
+ sprite += icons[key];
10970
+ }
10971
+ return sprite;
10972
+ };
10973
+ var parseRootAttributes = (htmlString) => {
10974
+ if (!(0, import_utils72.isString)(htmlString)) {
10975
+ return console.warn(`parseRootAttributes: ${htmlString} is not a string`);
10976
+ }
10977
+ const match2 = htmlString.match(/<svg\s+(.*?)>/);
10978
+ if (!match2 || !match2[1]) {
10979
+ return {};
10980
+ }
10981
+ const attrString = match2[1];
10982
+ const attrs = attrString.match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);
10983
+ return attrs.reduce((acc, attr) => {
10984
+ const [key, value] = attr.split("=");
10985
+ acc[key] = value.replace(/['"]/g, "");
10986
+ return acc;
10987
+ }, {});
10988
+ };
10989
+ var convertSvgToSymbol = (key, code) => {
10990
+ const extractAttrs = parseRootAttributes(code);
10991
+ const { width, height } = extractAttrs;
10992
+ const viewBox = extractAttrs.viewBox || `0 0 ${width || 24} ${height || 24}`;
10993
+ const xmlns = "http://www.w3.org/2000/svg";
10994
+ let symbol = code.replace(
10995
+ "<svg",
10996
+ `<symbol id="${key}" xmlns="${xmlns}" viewBox="${viewBox}"`
10997
+ );
10998
+ symbol = symbol.replace(/width="[^"]*"/, "");
10999
+ symbol = symbol.replace(/height="[^"]*"/, "");
11000
+ symbol = symbol.replace("</svg", "</symbol");
11001
+ return symbol;
11002
+ };
11003
+ var system_exports = {};
11004
+ __export2(system_exports, {
11005
+ appendIconsSprite: () => appendIconsSprite,
11006
+ appendSVGSprite: () => appendSVGSprite,
11007
+ applyDocument: () => applyDocument,
11008
+ applyHeadings: () => applyHeadings,
11009
+ applyReset: () => applyReset,
11010
+ applySpacingSequence: () => applySpacingSequence,
11011
+ applyTimingSequence: () => applyTimingSequence,
11012
+ applyTypographySequence: () => applyTypographySequence,
11013
+ getColor: () => getColor5,
11014
+ getFontFamily: () => getFontFamily5,
11015
+ getFontSizeByKey: () => getFontSizeByKey5,
11016
+ getMediaColor: () => getMediaColor9,
11017
+ getMediaTheme: () => getMediaTheme5,
11018
+ getSpacingBasedOnRatio: () => getSpacingBasedOnRatio13,
11019
+ getSpacingByKey: () => getSpacingByKey9,
11020
+ getTheme: () => getTheme5,
11021
+ getTimingByKey: () => getTimingByKey5,
11022
+ getTimingFunction: () => getTimingFunction9,
11023
+ runThroughMedia: () => runThroughMedia,
11024
+ setColor: () => setColor,
11025
+ setFont: () => setFont,
11026
+ setFontFamily: () => setFontFamily,
11027
+ setGradient: () => setGradient,
11028
+ setIcon: () => setIcon,
11029
+ setMediaTheme: () => setMediaTheme,
11030
+ setSVG: () => setSVG,
11031
+ setTheme: () => setTheme
11032
+ });
11033
+ var import_utils82 = __toESM2(require_cjs42(), 1);
11034
+ var getColor5 = (value, key) => {
11035
+ const CONFIG22 = getActiveConfig5();
11036
+ if (!(0, import_utils82.isString)(value)) {
11037
+ if (CONFIG22.verbose)
11038
+ console.warn(value, "- type for color is not valid");
11039
+ return;
11040
+ }
11041
+ if (value.slice(0, 2) === "--")
11042
+ return `var(${value})`;
11043
+ if (key && value[key])
11044
+ value = value[key];
11045
+ const [name, alpha, tone] = (0, import_utils82.isArray)(value) ? value : value.split(" ");
11046
+ const { COLOR: COLOR2, GRADIENT: GRADIENT2 } = CONFIG22;
11047
+ let val = COLOR2[name] || GRADIENT2[name];
11048
+ if (!val) {
11049
+ if (CONFIG22.verbose)
11050
+ console.warn("Can't find color ", name);
11051
+ return value;
11052
+ }
11053
+ if (key) {
11054
+ if (val[key])
11055
+ val = val[key];
11056
+ else if (CONFIG22.verbose)
11057
+ console.warn(value, " - does not have ", key);
11058
+ }
11059
+ let rgb = val.rgb;
11060
+ if (rgb) {
11061
+ if (tone) {
11062
+ if (!val[tone]) {
11063
+ const toHex = rgbArrayToHex(rgb.split(", ").map((v) => parseFloat(v)));
11064
+ const abs2 = tone.slice(0, 1);
11065
+ if (abs2 === "-" || abs2 === "+") {
11066
+ rgb = hexToRgbArray(
11067
+ getColorShade(toHex, parseFloat(tone))
11068
+ ).join(", ");
11069
+ } else {
11070
+ const [r, g, b] = [...rgb.split(", ").map((v) => parseInt(v))];
11071
+ const hsl = rgbToHSL(r, g, b);
11072
+ const [h, s, l] = hsl;
11073
+ const newRgb = hslToRgb(h, s, parseFloat(tone) / 100 * 255);
11074
+ rgb = newRgb;
11075
+ }
11076
+ val[tone] = { rgb, var: `${val.var}-${tone}` };
11077
+ } else
11078
+ rgb = val[tone].rgb;
11079
+ }
11080
+ if (alpha)
11081
+ return `rgba(${rgb}, ${alpha})`;
11082
+ return CONFIG22.useVariable ? `var(${val.var})` : `rgb(${rgb})`;
11083
+ } else
11084
+ return CONFIG22.useVariable ? `var(${val.var})` : val.value;
11085
+ };
11086
+ var getMediaColor9 = (value, globalTheme) => {
11087
+ const CONFIG22 = getActiveConfig5();
11088
+ if (!globalTheme)
11089
+ globalTheme = CONFIG22.globalTheme;
11090
+ if (!(0, import_utils82.isString)(value)) {
11091
+ if (CONFIG22.verbose)
11092
+ console.warn(value, "- type for color is not valid");
11093
+ return;
11094
+ }
11095
+ if (value.slice(0, 2) === "--")
11096
+ return `var(${value})`;
11097
+ const [name] = (0, import_utils82.isArray)(value) ? value : value.split(" ");
11098
+ const { COLOR: COLOR2, GRADIENT: GRADIENT2 } = CONFIG22;
11099
+ const val = COLOR2[name] || GRADIENT2[name];
11100
+ const isObj = (0, import_utils82.isObject)(val);
11101
+ if (isObj && val.value)
11102
+ return getColor5(value, `@${globalTheme}`);
11103
+ else if (isObj) {
11104
+ if (globalTheme)
11105
+ return getColor5(value, `@${globalTheme}`);
11106
+ else {
11107
+ const obj = {};
11108
+ for (const mediaName in val) {
11109
+ const query = CONFIG22.MEDIA[mediaName.slice(1)];
11110
+ const media = `@media screen and ${query}`;
11111
+ obj[media] = getColor5(value, mediaName);
11112
+ }
11113
+ return obj;
11114
+ }
11115
+ } else {
11116
+ if (CONFIG22.verbose)
11117
+ console.warn("Can't find color", value);
11118
+ return value;
11119
+ }
11120
+ };
11121
+ var setColor = (val, key, suffix) => {
11122
+ const CONFIG22 = getActiveConfig5();
11123
+ if ((0, import_utils82.isString)(val) && val.slice(0, 2) === "--")
11124
+ val = getColor5(val.slice(2));
11125
+ if ((0, import_utils82.isArray)(val)) {
11126
+ return {
11127
+ "@light": setColor(val[0], key, "light"),
11128
+ "@dark": setColor(val[1], key, "dark")
11129
+ };
11130
+ }
11131
+ if ((0, import_utils82.isObject)(val)) {
11132
+ const obj = {};
11133
+ for (const variant in val)
11134
+ obj[variant] = setColor(val[variant], key, variant.slice(0, 1) === "@" ? variant.slice(1) : variant);
11135
+ return obj;
11136
+ }
11137
+ const CSSVar = `--color-${key}` + (suffix ? `-${suffix}` : "");
11138
+ const [r, g, b, a = 1] = colorStringToRgbaArray(val.value || val);
11139
+ const alpha = parseFloat(a.toFixed(2));
11140
+ const rgb = `${r}, ${g}, ${b}`;
11141
+ const value = `rgba(${rgb}, ${alpha})`;
11142
+ if (CONFIG22.useVariable) {
11143
+ CONFIG22.CSS_VARS[CSSVar] = value;
11144
+ }
11145
+ return {
11146
+ var: CSSVar,
11147
+ rgb,
11148
+ alpha,
11149
+ value
11150
+ };
11151
+ };
11152
+ var setGradient = (val, key, suffix) => {
11153
+ const CONFIG22 = getActiveConfig5();
11154
+ if ((0, import_utils82.isString)(val) && val.slice(0, 2) === "--")
11155
+ val = getColor5(val.slice(2));
11156
+ if ((0, import_utils82.isArray)(val)) {
11157
+ return {
11158
+ "@light": setGradient(val[0], key, "light"),
11159
+ "@dark": setGradient(val[0], key, "dark")
11160
+ };
11161
+ }
11162
+ if ((0, import_utils82.isObject)(val)) {
11163
+ const obj = {};
11164
+ for (const variant in val)
11165
+ obj[variant] = setGradient(val[variant], key, variant.slice(0, 1) === "@" ? variant.slice(1) : variant);
11166
+ return obj;
11167
+ }
11168
+ const CSSVar = `--gradient-${key}` + (suffix ? `-${suffix}` : "");
11169
+ if (CONFIG22.useVariable) {
11170
+ CONFIG22.CSS_VARS[CSSVar] = val.value || val;
11171
+ }
11172
+ return {
11173
+ var: CSSVar,
11174
+ value: val.value || val
11175
+ };
11176
+ };
11177
+ var import_utils102 = __toESM2(require_cjs42(), 1);
11178
+ var setThemeValue = (theme) => {
11179
+ const value = {};
11180
+ const { state, media, helpers, ...rest } = theme;
11181
+ const keys = Object.keys(rest);
11182
+ keys.map((key) => {
11183
+ const conditions = ["color", "Color", "background", "border"];
11184
+ const isColor = conditions.some((k) => key.includes(k));
11185
+ return value[key] = isColor ? getColor5(theme[key]) : theme[key];
11186
+ });
11187
+ return value;
11188
+ };
11189
+ var getThemeValue = (theme) => {
11190
+ if (theme.value)
11191
+ return theme.value;
11192
+ theme.value = setThemeValue(theme);
11193
+ return theme.value;
11194
+ };
11195
+ var getTheme5 = (value, modifier) => {
11196
+ const CONFIG22 = getActiveConfig5();
11197
+ if (CONFIG22.useVariable)
11198
+ return getMediaTheme5(value, modifier);
11199
+ const { THEME: THEME2 } = CONFIG22;
11200
+ if ((0, import_utils102.isString)(value)) {
11201
+ const [theme, subtheme] = value.split(" ");
11202
+ const isOurTheme = THEME2[theme];
11203
+ if (isOurTheme) {
11204
+ if (!subtheme && !modifier)
11205
+ return getThemeValue(isOurTheme);
11206
+ value = [theme, subtheme || modifier];
11207
+ }
11208
+ }
11209
+ if ((0, import_utils102.isObjectLike)(value) && value[1]) {
11210
+ const themeName = value[0];
11211
+ const subThemeName = value[1];
11212
+ const { helpers, media, state } = THEME2[themeName];
11213
+ if (media && media[subThemeName])
11214
+ return getThemeValue(media[subThemeName]);
11215
+ if (helpers && helpers[subThemeName])
11216
+ return getThemeValue(helpers[subThemeName]);
11217
+ if (state && state[subThemeName])
11218
+ return getThemeValue(state[subThemeName]);
11219
+ } else if ((0, import_utils102.isObject)(value))
11220
+ return setThemeValue(value);
11221
+ };
11222
+ var setInverseTheme = (theme, variant, value) => {
11223
+ if ((0, import_utils102.isObject)(variant)) {
11224
+ theme.variants.inverse.value = setThemeValue(variant);
11225
+ } else if (variant === true) {
11226
+ const { color, background } = value;
11227
+ theme.variants.inverse = {
11228
+ value: {
11229
+ color: background,
11230
+ background: color
11231
+ }
11232
+ };
11233
+ }
11234
+ };
11235
+ var setPseudo = (theme, key, variant, themeValue) => {
11236
+ const result = getTheme5(variant);
11237
+ themeValue[`&:${key}`] = result;
11238
+ if ((0, import_utils102.isObject)(variant) && !variant.value)
11239
+ variant.value = result;
11240
+ };
11241
+ var setSelectors = (theme, value) => {
11242
+ const { state } = theme;
11243
+ if (!state)
11244
+ return;
11245
+ const keys = Object.keys(state);
11246
+ keys.map((key) => {
11247
+ const variant = state[key];
11248
+ setPseudo(theme, key, variant, value);
11249
+ return theme;
11250
+ });
11251
+ return theme;
11252
+ };
11253
+ var setPrefersScheme = (theme, key, variant, themeValue) => {
11254
+ const result = getTheme5(variant);
11255
+ themeValue[`@media (prefers-color-scheme: ${key})`] = result;
11256
+ if ((0, import_utils102.isObject)(variant) && !variant.value)
11257
+ variant.value = result;
11258
+ };
11259
+ var setMedia = (theme, value) => {
11260
+ const { media } = theme;
11261
+ if (!media)
11262
+ return;
11263
+ const keys = Object.keys(media);
11264
+ keys.map((key) => {
11265
+ const variant = media[key];
11266
+ if (key === "dark" || key === "light")
11267
+ setPrefersScheme(theme, key, variant, value);
11268
+ if (key === "inverse")
11269
+ setInverseTheme(theme, variant, value);
11270
+ return theme;
11271
+ });
11272
+ return theme;
11273
+ };
11274
+ var setHelpers = (theme, value) => {
11275
+ const CONFIG22 = getActiveConfig5();
11276
+ const { helpers } = theme;
11277
+ if (!helpers)
11278
+ return;
11279
+ const keys = Object.keys(helpers);
11280
+ keys.map((key) => {
11281
+ const helper = helpers[key];
11282
+ if ((0, import_utils102.isString)(helper))
11283
+ helpers[key] = CONFIG22.THEME[helper];
11284
+ else
11285
+ getThemeValue(helpers[key]);
11286
+ return theme;
11287
+ });
11288
+ return theme;
11289
+ };
11290
+ var setTheme = (val, key) => {
11291
+ const CONFIG22 = getActiveConfig5();
11292
+ if (CONFIG22.useVariable)
11293
+ return setMediaTheme(val, key);
11294
+ const { state, media, helpers } = val;
11295
+ const value = setThemeValue(val, key);
11296
+ const CSSvar = `--theme-${key}`;
11297
+ setSelectors(val, value);
11298
+ setMedia(val, value);
11299
+ setHelpers(val, value);
11300
+ return { var: CSSvar, value, state, media, helpers };
11301
+ };
11302
+ var setMediaTheme = (val, key, suffix, prefers) => {
11303
+ const CONFIG22 = getActiveConfig5();
11304
+ const { CSS_VARS: CSS_VARS2 } = CONFIG22;
11305
+ const theme = { value: val };
11306
+ if ((0, import_utils102.isObjectLike)(val)) {
11307
+ for (const param in val) {
11308
+ const symb = param.slice(0, 1);
11309
+ const value = val[param];
11310
+ if (symb === "@" || symb === ":" || symb === ".") {
11311
+ const hasPrefers = symb === "@" && param;
11312
+ theme[param] = setMediaTheme(value, key, param, prefers || hasPrefers);
11313
+ } else {
11314
+ const color = getColor5(value, prefers);
11315
+ const metaSuffixes = [...new Set([prefers, suffix].filter((v) => v).map((v) => v.slice(1)))];
11316
+ const varmetaSuffixName = metaSuffixes.length ? "-" + metaSuffixes.join("-") : "";
11317
+ const CSSVar = `--theme-${key}${varmetaSuffixName}-${param}`;
11318
+ if (CONFIG22.useVariable) {
11319
+ CSS_VARS2[CSSVar] = color;
11320
+ theme[param] = `var(${CSSVar})`;
11321
+ } else {
11322
+ theme[param] = color;
11323
+ }
11324
+ theme[`.${param}`] = { [param]: theme[param] };
11325
+ }
11326
+ }
11327
+ if (theme.background || theme.color || theme.backgroundColor) {
11328
+ theme[".inversed"] = {
11329
+ color: theme.background || theme.backgroundColor,
11330
+ background: theme.color
11331
+ };
11332
+ }
11333
+ }
11334
+ if ((0, import_utils102.isString)(val) && val.slice(0, 2) === "--") {
11335
+ const { THEME: THEME2 } = CONFIG22;
11336
+ const value = THEME2[val.slice(2)];
11337
+ const getReferenced = getMediaTheme5(value, prefers);
11338
+ return getReferenced;
11339
+ }
11340
+ return theme;
11341
+ };
11342
+ var recursiveTheme = (val) => {
11343
+ const CONFIG22 = getActiveConfig5();
11344
+ const obj = {};
11345
+ for (const param in val) {
11346
+ const symb = param.slice(0, 1);
11347
+ if ((0, import_utils102.isObjectLike)(val[param])) {
11348
+ if (symb === "@") {
11349
+ const query = CONFIG22.MEDIA[param.slice(1)];
11350
+ const media = `@media screen and ${query}`;
11351
+ obj[media] = recursiveTheme(val[param]);
11352
+ } else if (symb === ":") {
11353
+ obj[`&${param}`] = recursiveTheme(val[param]);
11354
+ }
11355
+ } else
11356
+ obj[param] = val[param];
11357
+ }
11358
+ return obj;
11359
+ };
11360
+ var findModifierFromArray = (val, modifierArray) => {
11361
+ const currentMod = modifierArray.shift();
11362
+ if (val[currentMod])
11363
+ return findModifierFromArray(val[currentMod], modifierArray);
11364
+ return val;
11365
+ };
11366
+ var findModifier = (val, modifier) => {
11367
+ if ((0, import_utils102.isArray)(modifier))
11368
+ return findModifierFromArray(val, modifier);
11369
+ else if ((0, import_utils102.isString)(modifier) && val[modifier])
11370
+ return val[modifier];
11371
+ else
11372
+ return val;
11373
+ };
11374
+ var getMediaTheme5 = (val, mod) => {
11375
+ const CONFIG22 = getActiveConfig5();
11376
+ if ((0, import_utils102.isString)(val) && val.slice(0, 2) === "--")
11377
+ val = getMediaTheme5(val.slice(2));
11378
+ if (!val || !(0, import_utils102.isString)(val)) {
11379
+ if (CONFIG22.verbose)
11380
+ console.warn(val, "- theme is not string");
11381
+ return;
11382
+ }
11383
+ const [name, ...modifier] = (0, import_utils102.isArray)(val) ? val : val.split(" ");
11384
+ let value = CONFIG22.THEME[name];
11385
+ if (value && (modifier || mod)) {
11386
+ value = findModifier(value, modifier.length ? modifier : mod);
11387
+ }
11388
+ const r = recursiveTheme(value);
11389
+ return r;
11390
+ };
11391
+ var import_utils112 = __toESM2(require_cjs42(), 1);
11392
+ var setFont = (val, key) => {
11393
+ const CSSvar = `--font-${key}`;
11394
+ const fontFace = val[0] ? getFontFaceEach(key, val) : setCustomFontMedia(key, val.url);
11395
+ return { var: CSSvar, value: val, fontFace };
11396
+ };
11397
+ var getFontFamily5 = (key, factory) => {
11398
+ const CONFIG22 = getActiveConfig5();
11399
+ const { FONT_FAMILY: FONT_FAMILY2 } = CONFIG22;
11400
+ return getDefaultOrFirstKey(factory || FONT_FAMILY2, key);
11401
+ };
11402
+ var setFontFamily = (val, key) => {
11403
+ const CONFIG22 = getActiveConfig5();
11404
+ const { FONT_FAMILY: FONT_FAMILY2, FONT_FAMILY_TYPES: FONT_FAMILY_TYPES2 } = CONFIG22;
11405
+ let { value, type } = val;
11406
+ if (val.isDefault)
11407
+ FONT_FAMILY2.default = key;
11408
+ if ((0, import_utils112.isObject)(value))
11409
+ value = arrayzeValue(value);
11410
+ const CSSvar = `--font-family-${key}`;
11411
+ const str = `${value.join(", ")}, ${FONT_FAMILY_TYPES2[type]}`;
11412
+ return { var: CSSvar, value: str, arr: value, type };
11413
+ };
11414
+ var import_utils142 = __toESM2(require_cjs42(), 1);
11415
+ var runThroughMedia = (props3) => {
11416
+ const CONFIG22 = getActiveConfig5();
11417
+ const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
11418
+ for (const prop in props3) {
11419
+ const mediaProps = props3[prop];
11420
+ if (prop.slice(0, 1) === "@") {
11421
+ const { type, base, ratio, range, subSequence, h1Matches, unit } = props3;
11422
+ (0, import_utils142.merge)(mediaProps, {
11423
+ type,
11424
+ base,
11425
+ ratio,
11426
+ range,
11427
+ subSequence,
11428
+ h1Matches,
11429
+ unit,
11430
+ sequence: {},
11431
+ scales: {},
11432
+ templates: {},
11433
+ vars: {}
11434
+ });
11435
+ generateSequence(mediaProps);
11436
+ const mediaName = prop.slice(1);
11437
+ applySequenceVars(mediaProps, mediaName);
11438
+ const query = MEDIA2[mediaName];
11439
+ TYPOGRAPHY2.templates[`@media screen and ${query}`] = {
11440
+ fontSize: mediaProps.base / TYPOGRAPHY2.browserDefault + unit
11441
+ };
11442
+ }
11443
+ }
11444
+ };
11445
+ var applyHeadings = (props3) => {
11446
+ const CONFIG22 = getActiveConfig5();
11447
+ if (props3.h1Matches) {
11448
+ const unit = props3.unit;
11449
+ const HEADINGS = findHeadings(props3);
11450
+ const { templates } = props3;
11451
+ for (const k in HEADINGS) {
11452
+ const headerName = `h${parseInt(k) + 1}`;
11453
+ const headerStyle = templates[headerName];
11454
+ templates[headerName] = {
11455
+ fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
11456
+ margin: headerStyle ? headerStyle.margin : 0,
11457
+ lineHeight: headerStyle ? headerStyle.lineHeight : props3.lineHeight,
11458
+ letterSpacing: headerStyle ? headerStyle.letterSpacing : props3.letterSpacing,
11459
+ fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
11460
+ };
11461
+ }
11462
+ }
11463
+ };
11464
+ var applyTypographySequence = () => {
11465
+ const CONFIG22 = getActiveConfig5();
11466
+ const { TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
11467
+ generateSequence(TYPOGRAPHY2);
11468
+ applyHeadings(TYPOGRAPHY2);
11469
+ applySequenceVars(TYPOGRAPHY2);
11470
+ runThroughMedia(TYPOGRAPHY2);
11471
+ };
11472
+ var getFontSizeByKey5 = (value) => {
11473
+ const CONFIG22 = getActiveConfig5();
11474
+ const { TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
11475
+ return getSequenceValuePropertyPair(
11476
+ value,
11477
+ "fontSize",
11478
+ TYPOGRAPHY2
11479
+ );
11480
+ };
11481
+ var import_utils172 = __toESM2(require_cjs42(), 1);
11482
+ var runThroughMedia2 = (sequenceProps) => {
11483
+ for (const prop in sequenceProps) {
11484
+ const mediaProps = sequenceProps[prop];
11485
+ if (prop.slice(0, 1) === "@") {
11486
+ const { type, base, ratio, range, subSequence, h1Matches, unit } = sequenceProps;
11487
+ (0, import_utils172.merge)(mediaProps, {
11488
+ type,
11489
+ base,
11490
+ ratio,
11491
+ range,
11492
+ subSequence,
11493
+ h1Matches,
11494
+ unit,
11495
+ sequence: {},
11496
+ scales: {},
11497
+ templates: {},
11498
+ vars: {}
11499
+ });
11500
+ generateSequence(mediaProps);
11501
+ const mediaName = prop.slice(1);
11502
+ applySequenceVars(mediaProps, mediaName);
11503
+ }
11504
+ }
11505
+ };
11506
+ var applySpacingSequence = () => {
11507
+ const CONFIG22 = getActiveConfig5();
11508
+ const { SPACING: SPACING2 } = CONFIG22;
11509
+ generateSequence(SPACING2);
11510
+ applySequenceVars(SPACING2);
11511
+ runThroughMedia2(SPACING2);
11512
+ };
11513
+ var getSequence = (sequenceProps) => {
11514
+ const CONFIG22 = getActiveConfig5();
11515
+ const { SPACING: SPACING2 } = CONFIG22;
11516
+ if (!sequenceProps)
11517
+ return SPACING2;
11518
+ const hasGenerated = Object.keys(sequenceProps.sequence).length > 0;
11519
+ return hasGenerated ? sequenceProps : generateSequence(sequenceProps);
11520
+ };
11521
+ var getSpacingByKey9 = (value, propertyName = "padding", sequenceProps) => {
11522
+ const sequence = getSequence(sequenceProps);
11523
+ const stack = arrayzeValue(value);
11524
+ if (!stack)
11525
+ return;
11526
+ if ((0, import_utils172.isString)(value) && value.includes("calc")) {
11527
+ return { [propertyName]: value };
11528
+ }
11529
+ if (stack.length > 1) {
11530
+ let suffix = "";
11531
+ if (propertyName === "borderWidth") {
11532
+ propertyName = "border";
11533
+ suffix = "Width";
11534
+ }
11535
+ const directions = {
11536
+ 2: ["Block", "Inline"],
11537
+ 3: ["BlockStart", "Inline", "BlockEnd"],
11538
+ 4: ["BlockStart", "InlineEnd", "BlockEnd", "InlineStart"]
11539
+ };
11540
+ const wrapSequenceValueByDirection = (direction, i) => getSequenceValuePropertyPair(
11541
+ stack[i],
11542
+ propertyName + direction + suffix,
11543
+ sequence
11544
+ );
11545
+ return directions[stack.length].map((dir, key) => wrapSequenceValueByDirection(dir, key));
11546
+ }
11547
+ return getSequenceValuePropertyPair(
11548
+ value,
11549
+ propertyName,
11550
+ sequence
11551
+ );
11552
+ };
11553
+ var getSpacingBasedOnRatio13 = (props3, propertyName, val) => {
11554
+ const CONFIG22 = getActiveConfig5();
11555
+ const { SPACING: SPACING2 } = CONFIG22;
11556
+ const { spacingRatio, unit } = props3;
11557
+ const value = val || props3[propertyName];
11558
+ if (spacingRatio) {
11559
+ let sequenceProps = SPACING2[spacingRatio];
11560
+ if (!sequenceProps) {
11561
+ const { type, base, range, subSequence } = SPACING2;
11562
+ sequenceProps = SPACING2[spacingRatio] = (0, import_utils172.merge)({
11563
+ ratio: spacingRatio,
11564
+ type: type + "-" + spacingRatio,
11565
+ unit,
11566
+ sequence: {},
11567
+ scales: {},
11568
+ templates: {},
11569
+ vars: {}
11570
+ }, {
11571
+ base,
11572
+ range,
11573
+ subSequence,
11574
+ ratio: SPACING2.ratio,
11575
+ unit: SPACING2.unit
11576
+ });
11577
+ }
11578
+ applySequenceVars(sequenceProps, null, { useDefault: false });
11579
+ return getSpacingByKey9(value, propertyName, sequenceProps);
11580
+ }
11581
+ return getSpacingByKey9(value, propertyName);
11582
+ };
11583
+ var applyTimingSequence = () => {
11584
+ const CONFIG22 = getActiveConfig5();
11585
+ const { TIMING: TIMING2 } = CONFIG22;
11586
+ generateSequence(TIMING2);
11587
+ applySequenceVars(TIMING2);
11588
+ };
11589
+ var getTimingFunction9 = (value) => {
11590
+ const CONFIG22 = getActiveConfig5();
11591
+ const { TIMING: TIMING2 } = CONFIG22;
11592
+ return TIMING2[value] || TIMING2[toCamelCase(value)] || value;
11593
+ };
11594
+ var getTimingByKey5 = (value, property = "timing") => {
11595
+ const CONFIG22 = getActiveConfig5();
11596
+ const { TIMING: TIMING2 } = CONFIG22;
11597
+ return getSequenceValuePropertyPair(
11598
+ value,
11599
+ property,
11600
+ TIMING2
11601
+ );
11602
+ };
11603
+ var import_utils212 = __toESM2(require_cjs42(), 1);
11604
+ var applyDocument = () => {
11605
+ const CONFIG22 = getActiveConfig5();
11606
+ const { DOCUMENT: DOCUMENT2, FONT_FAMILY: FONT_FAMILY2, THEME: THEME2, TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
11607
+ return (0, import_utils212.merge)(DOCUMENT2, {
11608
+ theme: THEME2.document,
11609
+ fontFamily: getDefaultOrFirstKey(FONT_FAMILY2),
11610
+ fontSize: TYPOGRAPHY2.base,
11611
+ lineHeight: TYPOGRAPHY2.lineHeight
11612
+ });
11613
+ };
11614
+ var import_globals2 = __toESM2(require_cjs12(), 1);
11615
+ var DEF_OPTIONS = {
11616
+ document: import_globals2.document
11617
+ };
11618
+ var setSVG = (val, key) => {
11619
+ const CONFIG22 = getActiveConfig5();
11620
+ if (!val) {
11621
+ if (CONFIG22.verbose)
11622
+ console.warn("setSVG: val is not defined", key);
11623
+ return;
11624
+ }
11625
+ if (CONFIG22.useSvgSprite) {
11626
+ return convertSvgToSymbol(key, val);
11627
+ }
11628
+ return val;
11629
+ };
11630
+ var appendSVGSprite = (LIBRARY, options = DEF_OPTIONS) => {
11631
+ const CONFIG22 = getActiveConfig5();
11632
+ const lib = Object.keys(LIBRARY).length ? {} : CONFIG22.SVG;
11633
+ for (const key in LIBRARY)
11634
+ lib[key] = CONFIG22.SVG[key];
11635
+ appendSVG(lib, options);
11636
+ };
11637
+ var setIcon = (val, key) => {
11638
+ const CONFIG22 = getActiveConfig5();
11639
+ if (CONFIG22.useIconSprite) {
11640
+ return setSVG(val, key);
11641
+ }
11642
+ return val;
11643
+ };
11644
+ var appendIconsSprite = (LIBRARY, options = DEF_OPTIONS) => {
11645
+ const CONFIG22 = getActiveConfig5();
11646
+ const lib = Object.keys(LIBRARY).length ? {} : CONFIG22.ICONS;
11647
+ for (const key in LIBRARY)
11648
+ lib[key] = CONFIG22.ICONS[key];
11649
+ appendSVG(lib, options);
11650
+ };
11651
+ var createSVGSpriteElement = (options = { isRoot: true }) => {
11652
+ const svgElem = import_globals2.document.createElementNS("http://www.w3.org/2000/svg", "svg");
11653
+ if (options.isRoot) {
11654
+ svgElem.setAttribute("aria-hidden", "true");
11655
+ svgElem.setAttribute("width", "0");
11656
+ svgElem.setAttribute("height", "0");
11657
+ svgElem.setAttribute("style", "position:absolute");
11658
+ svgElem.setAttribute("id", "svgSprite");
11659
+ }
11660
+ return svgElem;
11661
+ };
11662
+ var appendSVG = (lib, options = DEF_OPTIONS) => {
11663
+ const CONFIG22 = getActiveConfig5();
11664
+ const doc = options.document || import_globals2.document;
11665
+ if (!doc) {
11666
+ if (CONFIG22.verbose) {
11667
+ console.warn("To append SVG sprites it should be run in browser environment");
11668
+ }
11669
+ return generateSprite(lib);
11670
+ }
11671
+ const exists = doc.querySelector("#svgSprite");
11672
+ const SVGsprite = generateSprite(lib);
11673
+ if (exists) {
11674
+ const tempSVG = createSVGSpriteElement({ isRoot: false });
11675
+ tempSVG.innerHTML = SVGsprite;
11676
+ exists.append(...tempSVG.children);
11677
+ } else {
11678
+ const svgSpriteDOM = createSVGSpriteElement();
11679
+ svgSpriteDOM.innerHTML = SVGsprite;
11680
+ doc.body.prepend(svgSpriteDOM);
11681
+ }
11682
+ };
11683
+ var import_utils24 = __toESM2(require_cjs42(), 1);
11684
+ var applyReset = (reset = {}) => {
11685
+ const CONFIG22 = getActiveConfig5();
11686
+ const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY2, DOCUMENT: DOCUMENT2 } = CONFIG22;
11687
+ if (RESET2) {
11688
+ if (RESET2[":root"]) {
11689
+ const configReset = RESET2;
11690
+ const configTemplates = TYPOGRAPHY2.templates;
11691
+ configReset.body = {
11692
+ ...CONFIG22.useDocumentTheme ? getMediaTheme5("document", `@${CONFIG22.globalTheme}`) : {},
11693
+ ...configTemplates.body
11694
+ };
11695
+ configReset.h1 = configTemplates.h1;
11696
+ configReset.h2 = configTemplates.h2;
11697
+ configReset.h3 = configTemplates.h3;
11698
+ configReset.h4 = configTemplates.h4;
11699
+ configReset.h5 = configTemplates.h5;
11700
+ configReset.h6 = configTemplates.h6;
11701
+ }
11702
+ const { body, ...templates } = TYPOGRAPHY2.templates;
11703
+ return (0, import_utils24.deepMerge)((0, import_utils24.merge)(RESET2, reset), {
11704
+ html: {
11705
+ position: "absolute",
11706
+ // overflow: 'hidden',
11707
+ width: "100%",
11708
+ height: "100%",
11709
+ top: "0",
11710
+ left: "0",
11711
+ margin: "0",
11712
+ WebkitFontSmoothing: "antialiased",
11713
+ scrollBehavior: "smooth",
11714
+ fontSize: TYPOGRAPHY2.browserDefault + "px",
11715
+ ...CONFIG22.useDocumentTheme ? getMediaTheme5("document", `@${CONFIG22.globalTheme}`) : {},
11716
+ fontFamily: DOCUMENT2.fontFamily,
11717
+ lineHeight: DOCUMENT2.lineHeight
11718
+ },
11719
+ body: {
11720
+ boxSizing: "border-box",
11721
+ height: "100%",
11722
+ margin: 0,
11723
+ fontFamily: DOCUMENT2.fontFamily,
11724
+ fontSize: TYPOGRAPHY2.base / TYPOGRAPHY2.browserDefault + CONFIG22.UNIT.default,
11725
+ ...templates,
11726
+ ...body
11727
+ },
11728
+ // form elements
11729
+ fieldset: {
11730
+ border: 0,
11731
+ padding: 0,
11732
+ margin: 0
11733
+ },
11734
+ "select, input": {
11735
+ fontFamily: DOCUMENT2.fontFamily
11736
+ }
11737
+ });
11738
+ }
11739
+ };
11740
+ var import_utils25 = __toESM2(require_cjs42(), 1);
11741
+ var isBorderStyle = (str) => [
11742
+ "none",
11743
+ "hidden",
11744
+ "dotted",
11745
+ "dashed",
11746
+ "solid",
11747
+ "double",
11748
+ "groove",
11749
+ "ridge",
11750
+ "inset",
11751
+ "outset",
11752
+ "initial"
11753
+ ].some((v) => str.includes(v));
11754
+ var transformBorder5 = (border) => {
11755
+ const arr = border.split(", ");
11756
+ return arr.map((v) => {
11757
+ v = v.trim();
11758
+ if (v.slice(0, 2) === "--")
11759
+ return `var(${v})`;
11760
+ else if (isBorderStyle(v))
11761
+ return v || "solid";
11762
+ else if (v.slice(-2) === "px" || v.slice(-2) === "em")
11763
+ return v;
11764
+ else if (getColor5(v).length > 2)
11765
+ return getColor5(v);
11766
+ return getSpacingByKey9(v, "border").border;
11767
+ }).join(" ");
11768
+ };
11769
+ var transformTextStroke5 = (stroke) => {
11770
+ return stroke.split(", ").map((v) => {
11771
+ if (v.slice(0, 2) === "--")
11772
+ return `var(${v})`;
11773
+ if (v.includes("px"))
11774
+ return v;
11775
+ else if (getColor5(v))
11776
+ return getColor5(v);
11777
+ return v;
11778
+ }).join(" ");
11779
+ };
11780
+ var transformShadow5 = (shadows) => shadows.split("|").map((shadow) => {
11781
+ return shadow.split(", ").map((v) => {
11782
+ v = v.trim();
11783
+ if (v.slice(0, 2) === "--")
11784
+ return `var(${v})`;
11785
+ if (getColor5(v).length > 2)
11786
+ return getColor5(v);
11787
+ if (v.includes("px") || v.slice(-2) === "em")
11788
+ return v;
11789
+ const arr = v.split(" ");
11790
+ if (!arr.length)
11791
+ return v;
11792
+ return arr.map((v2) => getSpacingByKey9(v2, "shadow").shadow).join(" ");
11793
+ }).join(" ");
11794
+ }).join(",");
11795
+ var transformBackgroundImage5 = (backgroundImage, globalTheme) => {
11796
+ const CONFIG22 = getActiveConfig5();
11797
+ return backgroundImage.split(", ").map((v) => {
11798
+ if (v.slice(0, 2) === "--")
11799
+ return `var(${v})`;
11800
+ if (v.includes("url") || v.includes("gradient"))
11801
+ return v;
11802
+ else if (CONFIG22.GRADIENT[backgroundImage]) {
11803
+ return {
11804
+ backgroundImage: getMediaColor9(backgroundImage, globalTheme || CONFIG22.globalTheme)
11805
+ };
11806
+ } else if (v.includes("/") || v.includes("http"))
11807
+ return `url(${v})`;
11808
+ return v;
11809
+ }).join(" ");
11810
+ };
11811
+ var transfromGap5 = (gap) => (0, import_utils25.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey9(v, "gap").gap).join(" ");
11812
+ var transformTransition = (transition) => {
11813
+ const arr = transition.split(" ");
11814
+ if (!arr.length)
11815
+ return transition;
11816
+ return arr.map((v) => {
11817
+ if (v.slice(0, 2) === "--")
11818
+ return `var(${v})`;
11819
+ if (v.length < 3 || v.includes("ms")) {
11820
+ const mapWithSequence = getTimingByKey5(v);
11821
+ return mapWithSequence.timing || v;
11822
+ }
11823
+ if (getTimingFunction9(v))
11824
+ return getTimingFunction9(v);
11825
+ return v;
11826
+ }).join(" ");
11827
+ };
11828
+ var transformDuration5 = (duration, props3, propertyName) => {
11829
+ if (!(0, import_utils25.isString)(duration))
11830
+ return;
11831
+ return duration.split(",").map((v) => getTimingByKey5(v).timing || v).join(",");
11832
+ };
11833
+ var splitTransition5 = (transition) => {
11834
+ const arr = transition.split(",");
11835
+ if (!arr.length)
11836
+ return;
11837
+ return arr.map(transformTransition).join(",");
11838
+ };
11839
+ var import_utils26 = __toESM2(require_cjs42(), 1);
11840
+ var setCases = (val, key) => {
11841
+ if ((0, import_utils26.isFunction)(val))
11842
+ return val();
11843
+ return val;
11844
+ };
11845
+ var setSameValue = (val, key) => val;
11846
+ var VALUE_TRANSFORMERS = {
11847
+ color: setColor,
11848
+ gradient: setGradient,
11849
+ font: setFont,
11850
+ font_family: setFontFamily,
11851
+ theme: setTheme,
11852
+ icons: setIcon,
11853
+ svg: setSVG,
11854
+ svg_data: setSameValue,
11855
+ typography: setSameValue,
11856
+ cases: setCases,
11857
+ spacing: setSameValue,
11858
+ media: setSameValue,
11859
+ timing: setSameValue,
11860
+ reset: setSameValue,
11861
+ unit: setSameValue,
11862
+ animation: setSameValue
11863
+ };
11864
+ var setValue = (FACTORY_NAME, value, key) => {
11865
+ const CONFIG22 = getActiveConfig5();
11866
+ const factoryName = FACTORY_NAME.toLowerCase();
11867
+ const FACTORY2 = CONFIG22[FACTORY_NAME];
11868
+ if (VALUE_TRANSFORMERS[factoryName]) {
11869
+ const result = VALUE_TRANSFORMERS[factoryName](value, key);
11870
+ FACTORY2[key] = result;
11871
+ return FACTORY2;
11872
+ }
11873
+ if (CONFIG22.verbose)
11874
+ console.warn("Can not find", factoryName, "method in scratch");
11875
+ };
11876
+ var setEach = (factoryName, props3) => {
11877
+ const CONFIG22 = getActiveConfig5();
11878
+ const FACTORY_NAME = factoryName.toUpperCase();
11879
+ const keys = Object.keys(props3);
11880
+ keys.map((key) => setValue(FACTORY_NAME, props3[key], key));
11881
+ return CONFIG22[FACTORY_NAME];
11882
+ };
11883
+ var SET_OPTIONS = {};
11884
+ var set2 = (recivedConfig, options = SET_OPTIONS) => {
11885
+ let CONFIG22 = getActiveConfig5();
11886
+ const {
11887
+ version,
11888
+ verbose,
11889
+ useVariable,
11890
+ useReset,
11891
+ useSvgSprite,
11892
+ useFontImport,
11893
+ useIconSprite,
11894
+ globalTheme,
11895
+ useDocumentTheme,
11896
+ ...config
11897
+ } = recivedConfig;
11898
+ if (options.newConfig) {
11899
+ CONFIG22 = setActiveConfig(options.newConfig);
11900
+ }
11901
+ if (verbose !== void 0)
11902
+ CONFIG22.verbose = verbose;
11903
+ if (useVariable !== void 0)
11904
+ CONFIG22.useVariable = useVariable;
11905
+ if (useReset !== void 0)
11906
+ CONFIG22.useReset = useReset;
11907
+ if (useFontImport !== void 0)
11908
+ CONFIG22.useFontImport = useFontImport;
11909
+ if (useSvgSprite !== void 0)
11910
+ CONFIG22.useSvgSprite = useSvgSprite;
11911
+ if (useIconSprite !== void 0)
11912
+ CONFIG22.useIconSprite = useIconSprite;
11913
+ if (useDocumentTheme !== void 0)
11914
+ CONFIG22.useDocumentTheme = useDocumentTheme;
11915
+ if (globalTheme !== void 0)
11916
+ CONFIG22.globalTheme = globalTheme;
11917
+ if (CONFIG22.verbose)
11918
+ console.log(CONFIG22);
11919
+ if (!CONFIG22.__svg_cache)
11920
+ CONFIG22.__svg_cache = {};
11921
+ const keys = Object.keys(config);
11922
+ keys.map((key) => setEach(key, config[key]));
11923
+ applyTypographySequence();
11924
+ applySpacingSequence();
11925
+ applyTimingSequence();
11926
+ applyDocument();
11927
+ applyReset();
11928
+ return CONFIG22;
11929
+ };
11930
+ }
11931
+ });
11932
+
11933
+ // index.js
11934
+ var domql_exports = {};
11935
+ __export(domql_exports, {
11936
+ Animation: () => Animation,
11937
+ Avatar: () => Avatar,
11938
+ AvatarBundle: () => AvatarBundle,
11939
+ Block: () => Block,
11940
+ Box: () => Box,
11941
+ Button: () => Button,
11942
+ ButtonSet: () => ButtonSet,
11943
+ Caption: () => Caption,
11944
+ CircleButton: () => CircleButton,
11945
+ Clickable: () => Clickable,
11946
+ Collection: () => Collection,
11947
+ DatePicker: () => DatePicker,
11948
+ Direction: () => Direction,
11949
+ DropdownList: () => DropdownList,
11950
+ DropdownParent: () => DropdownParent,
11951
+ Field: () => Field,
11952
+ Flex: () => Flex,
11953
+ Focusable: () => Focusable,
11954
+ FocusableComponent: () => FocusableComponent,
11955
+ Form: () => Form,
11956
+ Grid: () => Grid,
11957
+ H1: () => H1,
11958
+ H2: () => H2,
11959
+ H3: () => H3,
11960
+ H4: () => H4,
11961
+ H5: () => H5,
11962
+ H6: () => H6,
11963
+ Hoverable: () => Hoverable,
11964
+ Icon: () => Icon2,
11965
+ IconText: () => IconText2,
11966
+ Iframe: () => Iframe,
11967
+ Img: () => Img,
11968
+ Input: () => Input,
11969
+ Interaction: () => Interaction,
11970
+ Italic: () => Italic,
11971
+ KangorooButton: () => KangorooButton,
11972
+ Label: () => Label,
11973
+ Link: () => Link,
11974
+ List: () => List,
11975
+ Media: () => Media,
11976
+ Notification: () => Notification,
11977
+ Overflow: () => Overflow,
11978
+ P: () => P,
11979
+ Picture: () => Picture,
11980
+ Pills: () => Pills,
11981
+ Position: () => Position,
11982
+ Pseudo: () => Pseudo,
11983
+ Range: () => Range,
11984
+ RangeSlider: () => RangeSlider,
11985
+ RangeWithButtons: () => RangeWithButtons,
9315
11986
  RouteLink: () => RouteLink,
9316
11987
  RouterLink: () => RouterLink,
9317
11988
  Select: () => Select,
@@ -9966,7 +12637,7 @@ var applyCaseProps = (key, props3, result, element) => {
9966
12637
  };
9967
12638
  var applyConditionalCaseProps = (key, props3, result, element) => {
9968
12639
  const caseKey = key.slice(1);
9969
- const isPropTrue = element.props[caseKey] || element.state[caseKey] === true;
12640
+ const isPropTrue = element.props[caseKey] || element.state[caseKey];
9970
12641
  if (!isPropTrue)
9971
12642
  return;
9972
12643
  return (0, import_utils.merge)(result, convertPropsToClass(props3, result, element));
@@ -9990,10 +12661,12 @@ var beforeClassAssign = (element, s) => {
9990
12661
  if (setter)
9991
12662
  setter(key, props3[key], CLASS_NAMES, element);
9992
12663
  }
9993
- (0, import_utils.merge)(className, CLASS_NAMES);
12664
+ (0, import_utils.overwriteShallow)(className, CLASS_NAMES);
9994
12665
  };
9995
12666
  var initUpdate = (changes, element) => {
9996
12667
  const { props: props3, context, class: className } = element;
12668
+ if (!context)
12669
+ return;
9997
12670
  const globalTheme = context.designSystem.globalTheme;
9998
12671
  const parentProps = element.parent.props;
9999
12672
  if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
@@ -10034,6 +12707,13 @@ var initUpdate = (changes, element) => {
10034
12707
  }
10035
12708
  };
10036
12709
  var Media = {
12710
+ class: {
12711
+ case: (el, s) => {
12712
+ return {
12713
+ //
12714
+ };
12715
+ }
12716
+ },
10037
12717
  on: { beforeClassAssign, initUpdate }
10038
12718
  };
10039
12719
 
@@ -11739,7 +14419,7 @@ var classnames = function classnames2(args) {
11739
14419
  };
11740
14420
  var emotion_css_create_instance_esm_default = createEmotion;
11741
14421
 
11742
- // ../../packages/emotion/index.js
14422
+ // node_modules/@symbo.ls/emotion/index.js
11743
14423
  var createEmotion3 = (key = "smbls", container) => {
11744
14424
  const cleanKey = key.replaceAll(/\./g, "-");
11745
14425
  return emotion_css_create_instance_esm_default({ key: cleanKey, container });
@@ -11901,6 +14581,7 @@ var IconText = {
11901
14581
  if: ({ parent }) => parent.props.icon
11902
14582
  },
11903
14583
  Icon: {
14584
+ props: {},
11904
14585
  if: ({ props: props3 }) => props3.name || props3.icon
11905
14586
  },
11906
14587
  text: ({ props: props3 }) => props3.text
@@ -12394,22 +15075,22 @@ var Input = {
12394
15075
  };
12395
15076
 
12396
15077
  // Field/node_modules/@symbo.ls/atoms/Block.js
12397
- var import_scratch19 = __toESM(require_cjs());
15078
+ var import_scratch19 = __toESM(require_cjs10());
12398
15079
 
12399
15080
  // Field/node_modules/@symbo.ls/atoms/Grid.js
12400
- var import_scratch20 = __toESM(require_cjs());
15081
+ var import_scratch20 = __toESM(require_cjs10());
12401
15082
 
12402
15083
  // Field/node_modules/@symbo.ls/atoms/Media.js
12403
15084
  var import_utils11 = __toESM(require_cjs5());
12404
15085
 
12405
15086
  // Field/node_modules/@symbo.ls/atoms/Theme.js
12406
- var import_scratch23 = __toESM(require_cjs());
15087
+ var import_scratch23 = __toESM(require_cjs10());
12407
15088
 
12408
15089
  // Field/node_modules/@symbo.ls/atoms/Shape/style.js
12409
- var import_scratch22 = __toESM(require_cjs());
15090
+ var import_scratch22 = __toESM(require_cjs10());
12410
15091
 
12411
15092
  // Field/node_modules/@symbo.ls/atoms/Timing.js
12412
- var import_scratch21 = __toESM(require_cjs());
15093
+ var import_scratch21 = __toESM(require_cjs10());
12413
15094
 
12414
15095
  // Field/node_modules/@symbo.ls/atoms/Shape/style.js
12415
15096
  var CONFIG3 = (0, import_scratch22.getActiveConfig)();
@@ -12442,17 +15123,17 @@ var Focusable2 = {
12442
15123
  var import_utils12 = __toESM(require_cjs5());
12443
15124
 
12444
15125
  // Field/node_modules/@symbo.ls/atoms/Position.js
12445
- var import_scratch24 = __toESM(require_cjs());
15126
+ var import_scratch24 = __toESM(require_cjs10());
12446
15127
 
12447
15128
  // Field/node_modules/@symbo.ls/atoms/Shape/index.js
12448
15129
  var import_utils13 = __toESM(require_cjs5());
12449
- var import_scratch25 = __toESM(require_cjs());
15130
+ var import_scratch25 = __toESM(require_cjs10());
12450
15131
 
12451
15132
  // Field/node_modules/@symbo.ls/atoms/Text.js
12452
- var import_scratch26 = __toESM(require_cjs());
15133
+ var import_scratch26 = __toESM(require_cjs10());
12453
15134
 
12454
15135
  // Field/node_modules/@symbo.ls/atoms/Animation.js
12455
- var import_scratch27 = __toESM(require_cjs());
15136
+ var import_scratch27 = __toESM(require_cjs10());
12456
15137
  var import_utils14 = __toESM(require_cjs5());
12457
15138
 
12458
15139
  // Field/node_modules/@symbo.ls/emotion/index.js
@@ -12519,13 +15200,15 @@ var Video = {
12519
15200
 
12520
15201
  // Range/index.js
12521
15202
  var import_utils15 = __toESM(require_cjs5());
12522
- var import_scratch28 = __toESM(require_cjs());
15203
+ var import_scratch28 = __toESM(require_cjs10());
12523
15204
  var props = {
12524
15205
  appearance: "none",
12525
15206
  width: "100%",
12526
15207
  height: "2px",
12527
15208
  outline: "none",
12528
15209
  flex: 1,
15210
+ onInput: (ev, el, s) => s.update({ value: el.node.value }),
15211
+ onChange: (ev, el, s) => s.update({ value: el.node.value }),
12529
15212
  style: {
12530
15213
  appearance: "none"
12531
15214
  },
@@ -12649,7 +15332,7 @@ var style_default2 = {
12649
15332
  };
12650
15333
 
12651
15334
  // Slider/index.js
12652
- var import_scratch29 = __toESM(require_cjs());
15335
+ var import_scratch29 = __toESM(require_cjs10());
12653
15336
  var import_utils16 = __toESM(require_cjs5());
12654
15337
  (0, import_scratch29.set)({
12655
15338
  theme: {
@@ -12741,7 +15424,7 @@ var Slider = {
12741
15424
  };
12742
15425
 
12743
15426
  // Notification/node_modules/@symbo.ls/atoms/Block.js
12744
- var import_scratch30 = __toESM(require_cjs10());
15427
+ var import_scratch30 = __toESM(require_cjs11());
12745
15428
 
12746
15429
  // Notification/node_modules/@symbo.ls/atoms/Flex.js
12747
15430
  var Flex3 = {
@@ -12761,19 +15444,19 @@ var Flex3 = {
12761
15444
  };
12762
15445
 
12763
15446
  // Notification/node_modules/@symbo.ls/atoms/Grid.js
12764
- var import_scratch31 = __toESM(require_cjs10());
15447
+ var import_scratch31 = __toESM(require_cjs11());
12765
15448
 
12766
15449
  // Notification/node_modules/@symbo.ls/atoms/Media.js
12767
15450
  var import_utils17 = __toESM(require_cjs5());
12768
15451
 
12769
15452
  // Notification/node_modules/@symbo.ls/atoms/Theme.js
12770
- var import_scratch34 = __toESM(require_cjs10());
15453
+ var import_scratch34 = __toESM(require_cjs11());
12771
15454
 
12772
15455
  // Notification/node_modules/@symbo.ls/atoms/Shape/style.js
12773
- var import_scratch33 = __toESM(require_cjs10());
15456
+ var import_scratch33 = __toESM(require_cjs11());
12774
15457
 
12775
15458
  // Notification/node_modules/@symbo.ls/atoms/Timing.js
12776
- var import_scratch32 = __toESM(require_cjs10());
15459
+ var import_scratch32 = __toESM(require_cjs11());
12777
15460
 
12778
15461
  // Notification/node_modules/@symbo.ls/atoms/Shape/style.js
12779
15462
  var CONFIG4 = (0, import_scratch33.getActiveConfig)();
@@ -12790,17 +15473,17 @@ var depth4 = {
12790
15473
  var import_utils18 = __toESM(require_cjs5());
12791
15474
 
12792
15475
  // Notification/node_modules/@symbo.ls/atoms/Position.js
12793
- var import_scratch35 = __toESM(require_cjs10());
15476
+ var import_scratch35 = __toESM(require_cjs11());
12794
15477
 
12795
15478
  // Notification/node_modules/@symbo.ls/atoms/Shape/index.js
12796
15479
  var import_utils19 = __toESM(require_cjs5());
12797
- var import_scratch36 = __toESM(require_cjs10());
15480
+ var import_scratch36 = __toESM(require_cjs11());
12798
15481
 
12799
15482
  // Notification/node_modules/@symbo.ls/atoms/Text.js
12800
- var import_scratch37 = __toESM(require_cjs10());
15483
+ var import_scratch37 = __toESM(require_cjs11());
12801
15484
 
12802
15485
  // Notification/node_modules/@symbo.ls/atoms/Animation.js
12803
- var import_scratch38 = __toESM(require_cjs10());
15486
+ var import_scratch38 = __toESM(require_cjs11());
12804
15487
  var import_utils20 = __toESM(require_cjs5());
12805
15488
 
12806
15489
  // Notification/node_modules/@symbo.ls/emotion/index.js