@symbo.ls/scratch 3.0.1 → 3.1.1

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.
@@ -34,23 +34,23 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
34
34
  var require_cjs = __commonJS({
35
35
  "../utils/dist/cjs/index.js"(exports, module2) {
36
36
  "use strict";
37
- var __defProp3 = Object.defineProperty;
37
+ var __defProp2 = Object.defineProperty;
38
38
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
39
39
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
40
- var __hasOwnProp3 = Object.prototype.hasOwnProperty;
40
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
41
41
  var __export2 = (target, all) => {
42
42
  for (var name in all)
43
- __defProp3(target, name, { get: all[name], enumerable: true });
43
+ __defProp2(target, name, { get: all[name], enumerable: true });
44
44
  };
45
45
  var __copyProps2 = (to, from, except, desc) => {
46
46
  if (from && typeof from === "object" || typeof from === "function") {
47
47
  for (let key of __getOwnPropNames2(from))
48
- if (!__hasOwnProp3.call(to, key) && key !== except)
49
- __defProp3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
48
+ if (!__hasOwnProp2.call(to, key) && key !== except)
49
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
50
50
  }
51
51
  return to;
52
52
  };
53
- var __toCommonJS2 = (mod) => __copyProps2(__defProp3({}, "__esModule", { value: true }), mod);
53
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
54
54
  var index_exports = {};
55
55
  __export2(index_exports, {
56
56
  arrayzeValue: () => arrayzeValue3,
@@ -83,7 +83,147 @@ var require_cjs = __commonJS({
83
83
  var isString2 = (arg) => typeof arg === "string";
84
84
  var isNumber2 = (arg) => typeof arg === "number";
85
85
  var isArray2 = (arg) => Array.isArray(arg);
86
+ var STATE_METHODS3 = [
87
+ "update",
88
+ "parse",
89
+ "clean",
90
+ "create",
91
+ "destroy",
92
+ "add",
93
+ "toggle",
94
+ "remove",
95
+ "apply",
96
+ "set",
97
+ "reset",
98
+ "replace",
99
+ "quietReplace",
100
+ "quietUpdate",
101
+ "applyReplace",
102
+ "applyFunction",
103
+ "keys",
104
+ "values",
105
+ "ref",
106
+ "rootUpdate",
107
+ "parentUpdate",
108
+ "parent",
109
+ "__element",
110
+ "__depends",
111
+ "__ref",
112
+ "__children",
113
+ "root",
114
+ "setByPath",
115
+ "setPathCollection",
116
+ "removeByPath",
117
+ "removePathCollection",
118
+ "getByPath"
119
+ ];
120
+ var PROPS_METHODS3 = ["update", "__element"];
121
+ var METHODS3 = [
122
+ "set",
123
+ "reset",
124
+ "update",
125
+ "remove",
126
+ "updateContent",
127
+ "removeContent",
128
+ "lookup",
129
+ "lookdown",
130
+ "lookdownAll",
131
+ "getRef",
132
+ "getPath",
133
+ "setNodeStyles",
134
+ "spotByPath",
135
+ "keys",
136
+ "parse",
137
+ "setProps",
138
+ "parseDeep",
139
+ "variables",
140
+ "if",
141
+ "log",
142
+ "verbose",
143
+ "warn",
144
+ "error",
145
+ "call",
146
+ "nextElement",
147
+ "previousElement"
148
+ ];
149
+ var METHODS_EXL3 = [
150
+ ...["node", "context", "extends", "__element", "__ref"],
151
+ ...METHODS3,
152
+ ...STATE_METHODS3,
153
+ ...PROPS_METHODS3
154
+ ];
86
155
  var isMobile2 = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
156
+ var STATE_METHODS22 = [
157
+ "update",
158
+ "parse",
159
+ "clean",
160
+ "create",
161
+ "destroy",
162
+ "add",
163
+ "toggle",
164
+ "remove",
165
+ "apply",
166
+ "set",
167
+ "reset",
168
+ "replace",
169
+ "quietReplace",
170
+ "quietUpdate",
171
+ "applyReplace",
172
+ "applyFunction",
173
+ "keys",
174
+ "values",
175
+ "ref",
176
+ "rootUpdate",
177
+ "parentUpdate",
178
+ "parent",
179
+ "__element",
180
+ "__depends",
181
+ "__ref",
182
+ "__children",
183
+ "root",
184
+ "setByPath",
185
+ "setPathCollection",
186
+ "removeByPath",
187
+ "removePathCollection",
188
+ "getByPath"
189
+ ];
190
+ var PROPS_METHODS22 = ["update", "__element"];
191
+ var METHODS22 = [
192
+ "set",
193
+ "reset",
194
+ "update",
195
+ "remove",
196
+ "updateContent",
197
+ "removeContent",
198
+ "lookup",
199
+ "lookdown",
200
+ "lookdownAll",
201
+ "getRef",
202
+ "getPath",
203
+ "setNodeStyles",
204
+ "spotByPath",
205
+ "keys",
206
+ "parse",
207
+ "setProps",
208
+ "parseDeep",
209
+ "variables",
210
+ "if",
211
+ "log",
212
+ "verbose",
213
+ "warn",
214
+ "error",
215
+ "call",
216
+ "nextElement",
217
+ "previousElement"
218
+ ];
219
+ var METHODS_EXL22 = [
220
+ ...["node", "context", "extends", "__element", "__ref"],
221
+ ...METHODS22,
222
+ ...STATE_METHODS22,
223
+ ...PROPS_METHODS22
224
+ ];
225
+ var window32 = globalThis;
226
+ var document32 = window32.document;
87
227
  async function toggleFullscreen(opts) {
88
228
  if (!document.fullscreenElement) {
89
229
  try {
@@ -273,16 +413,16 @@ __export(transforms_exports, {
273
413
  });
274
414
  module.exports = __toCommonJS(transforms_exports);
275
415
 
276
- // node_modules/@domql/utils/dist/esm/globals.js
416
+ // ../../../domql/packages/utils/globals.js
277
417
  var window2 = globalThis;
278
418
  var document2 = window2.document;
279
419
 
280
- // node_modules/@domql/utils/dist/esm/node.js
420
+ // ../../../domql/packages/utils/node.js
281
421
  var isDOMNode = (obj) => {
282
422
  return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
283
423
  };
284
424
 
285
- // node_modules/@domql/utils/dist/esm/types.js
425
+ // ../../../domql/packages/utils/types.js
286
426
  var isObject = (arg) => {
287
427
  if (arg === null) return false;
288
428
  return typeof arg === "object" && arg.constructor === Object;
@@ -300,35 +440,92 @@ var isUndefined = (arg) => {
300
440
  return arg === void 0;
301
441
  };
302
442
 
303
- // node_modules/@domql/utils/dist/esm/array.js
304
- var mergeArray = (arr, exclude = []) => {
305
- return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
443
+ // ../../../domql/packages/utils/array.js
444
+ var unstackArrayOfObjects = (arr, exclude = []) => {
445
+ return arr.reduce(
446
+ (a, c) => deepMerge(a, deepClone(c, { exclude }), exclude),
447
+ {}
448
+ );
306
449
  };
307
450
 
308
- // node_modules/@domql/utils/dist/esm/object.js
309
- var __defProp2 = Object.defineProperty;
310
- var __defProps = Object.defineProperties;
311
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
312
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
313
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
314
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
315
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
316
- var __spreadValues = (a, b) => {
317
- for (var prop in b || (b = {}))
318
- if (__hasOwnProp2.call(b, prop))
319
- __defNormalProp(a, prop, b[prop]);
320
- if (__getOwnPropSymbols)
321
- for (var prop of __getOwnPropSymbols(b)) {
322
- if (__propIsEnum.call(b, prop))
323
- __defNormalProp(a, prop, b[prop]);
324
- }
325
- return a;
326
- };
327
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
451
+ // ../../../domql/packages/utils/keys.js
452
+ var STATE_METHODS = [
453
+ "update",
454
+ "parse",
455
+ "clean",
456
+ "create",
457
+ "destroy",
458
+ "add",
459
+ "toggle",
460
+ "remove",
461
+ "apply",
462
+ "set",
463
+ "reset",
464
+ "replace",
465
+ "quietReplace",
466
+ "quietUpdate",
467
+ "applyReplace",
468
+ "applyFunction",
469
+ "keys",
470
+ "values",
471
+ "ref",
472
+ "rootUpdate",
473
+ "parentUpdate",
474
+ "parent",
475
+ "__element",
476
+ "__depends",
477
+ "__ref",
478
+ "__children",
479
+ "root",
480
+ "setByPath",
481
+ "setPathCollection",
482
+ "removeByPath",
483
+ "removePathCollection",
484
+ "getByPath"
485
+ ];
486
+ var PROPS_METHODS = ["update", "__element"];
487
+ var METHODS = [
488
+ "set",
489
+ "reset",
490
+ "update",
491
+ "remove",
492
+ "updateContent",
493
+ "removeContent",
494
+ "lookup",
495
+ "lookdown",
496
+ "lookdownAll",
497
+ "getRef",
498
+ "getPath",
499
+ "setNodeStyles",
500
+ "spotByPath",
501
+ "keys",
502
+ "parse",
503
+ "setProps",
504
+ "parseDeep",
505
+ "variables",
506
+ "if",
507
+ "log",
508
+ "verbose",
509
+ "warn",
510
+ "error",
511
+ "call",
512
+ "nextElement",
513
+ "previousElement"
514
+ ];
515
+ var METHODS_EXL = [
516
+ ...["node", "context", "extends", "__element", "__ref"],
517
+ ...METHODS,
518
+ ...STATE_METHODS,
519
+ ...PROPS_METHODS
520
+ ];
521
+
522
+ // ../../../domql/packages/utils/object.js
328
523
  var merge = (element, obj, excludeFrom = []) => {
329
524
  for (const e in obj) {
330
- const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, e);
331
- if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__")) continue;
525
+ const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, e);
526
+ if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__")) {
527
+ continue;
528
+ }
332
529
  const elementProp = element[e];
333
530
  const objProp = obj[e];
334
531
  if (elementProp === void 0) {
@@ -337,10 +534,12 @@ var merge = (element, obj, excludeFrom = []) => {
337
534
  }
338
535
  return element;
339
536
  };
340
- var deepMerge = (element, extend, excludeFrom = []) => {
537
+ var deepMerge = (element, extend, excludeFrom = METHODS_EXL) => {
341
538
  for (const e in extend) {
342
- const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(extend, e);
343
- if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__")) continue;
539
+ const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
540
+ if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__")) {
541
+ continue;
542
+ }
344
543
  const elementProp = element[e];
345
544
  const extendProp = extend[e];
346
545
  if (isObjectLike(elementProp) && isObjectLike(extendProp)) {
@@ -358,7 +557,7 @@ var deepClone = (obj, options = {}) => {
358
557
  cleanNull = false,
359
558
  window: targetWindow,
360
559
  visited = /* @__PURE__ */ new WeakMap(),
361
- handleExtend = false
560
+ handleExtends = false
362
561
  } = options;
363
562
  if (!isObjectLike(obj) || isDOMNode(obj)) {
364
563
  return obj;
@@ -366,39 +565,119 @@ var deepClone = (obj, options = {}) => {
366
565
  if (visited.has(obj)) {
367
566
  return visited.get(obj);
368
567
  }
369
- const clone2 = targetWindow ? isArray(obj) ? new targetWindow.Array() : new targetWindow.Object() : isArray(obj) ? [] : {};
370
- visited.set(obj, clone2);
568
+ const clone = targetWindow ? isArray(obj) ? new targetWindow.Array() : new targetWindow.Object() : isArray(obj) ? [] : {};
569
+ visited.set(obj, clone);
371
570
  for (const key in obj) {
372
571
  if (!Object.prototype.hasOwnProperty.call(obj, key)) continue;
373
- if (exclude.includes(key) || key.startsWith("__") || key === "__proto__") continue;
572
+ if (exclude.includes(key) || key.startsWith("__") || key === "__proto__") {
573
+ continue;
574
+ }
374
575
  const value = obj[key];
375
- if (cleanUndefined && isUndefined(value) || cleanNull && isNull(value)) continue;
576
+ if (cleanUndefined && isUndefined(value) || cleanNull && isNull(value)) {
577
+ continue;
578
+ }
376
579
  if (isDOMNode(value)) {
377
- clone2[key] = value;
580
+ clone[key] = value;
378
581
  continue;
379
582
  }
380
- if (handleExtend && key === "extend" && isArray(value)) {
381
- clone2[key] = mergeArray(value, exclude);
583
+ if (handleExtends && key === "extends" && isArray(value)) {
584
+ clone[key] = unstackArrayOfObjects(value, exclude);
382
585
  continue;
383
586
  }
384
587
  if (isFunction(value) && targetWindow) {
385
- clone2[key] = targetWindow.eval("(" + value.toString() + ")");
588
+ clone[key] = targetWindow.eval("(" + value.toString() + ")");
386
589
  continue;
387
590
  }
388
591
  if (isObjectLike(value)) {
389
- clone2[key] = deepClone(value, __spreadProps(__spreadValues({}, options), {
592
+ clone[key] = deepClone(value, {
593
+ ...options,
390
594
  visited
391
- }));
595
+ });
392
596
  } else {
393
- clone2[key] = value;
597
+ clone[key] = value;
394
598
  }
395
599
  }
396
- return clone2;
600
+ return clone;
397
601
  };
398
602
 
399
- // node_modules/@domql/utils/dist/esm/cookie.js
603
+ // ../../../domql/packages/utils/cookie.js
400
604
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
401
605
 
606
+ // ../../../domql/packages/event/dist/esm/keys.js
607
+ var STATE_METHODS2 = [
608
+ "update",
609
+ "parse",
610
+ "clean",
611
+ "create",
612
+ "destroy",
613
+ "add",
614
+ "toggle",
615
+ "remove",
616
+ "apply",
617
+ "set",
618
+ "reset",
619
+ "replace",
620
+ "quietReplace",
621
+ "quietUpdate",
622
+ "applyReplace",
623
+ "applyFunction",
624
+ "keys",
625
+ "values",
626
+ "ref",
627
+ "rootUpdate",
628
+ "parentUpdate",
629
+ "parent",
630
+ "__element",
631
+ "__depends",
632
+ "__ref",
633
+ "__children",
634
+ "root",
635
+ "setByPath",
636
+ "setPathCollection",
637
+ "removeByPath",
638
+ "removePathCollection",
639
+ "getByPath"
640
+ ];
641
+ var PROPS_METHODS2 = ["update", "__element"];
642
+ var METHODS2 = [
643
+ "set",
644
+ "reset",
645
+ "update",
646
+ "remove",
647
+ "updateContent",
648
+ "removeContent",
649
+ "lookup",
650
+ "lookdown",
651
+ "lookdownAll",
652
+ "getRef",
653
+ "getPath",
654
+ "setNodeStyles",
655
+ "spotByPath",
656
+ "keys",
657
+ "parse",
658
+ "setProps",
659
+ "parseDeep",
660
+ "variables",
661
+ "if",
662
+ "log",
663
+ "verbose",
664
+ "warn",
665
+ "error",
666
+ "call",
667
+ "nextElement",
668
+ "previousElement"
669
+ ];
670
+ var METHODS_EXL2 = [
671
+ ...["node", "context", "extends", "__element", "__ref"],
672
+ ...METHODS2,
673
+ ...STATE_METHODS2,
674
+ ...PROPS_METHODS2
675
+ ];
676
+
677
+ // ../../../domql/packages/event/dist/esm/globals.js
678
+ var window3 = globalThis;
679
+ var document3 = window3.document;
680
+
402
681
  // src/defaultConfig/index.js
403
682
  var defaultConfig_exports = {};
404
683
  __export(defaultConfig_exports, {
@@ -714,7 +993,7 @@ var getRgbTone = (rgb, tone) => {
714
993
  };
715
994
 
716
995
  // src/utils/sequence.js
717
- var import_utils4 = __toESM(require_cjs(), 1);
996
+ var import_utils5 = __toESM(require_cjs(), 1);
718
997
  var numToLetterMap = {
719
998
  "-6": "U",
720
999
  "-5": "V",
@@ -853,7 +1132,7 @@ var getSequenceValue = (value = "A", sequenceProps) => {
853
1132
  useVariable
854
1133
  } = sequenceProps;
855
1134
  if (isString(value) && value.slice(0, 2) === "--") return `var(${value})`;
856
- const prefix = `--${(0, import_utils4.toDashCase)(sequenceProps.type.replace(".", "-"))}-`;
1135
+ const prefix = `--${(0, import_utils5.toDashCase)(sequenceProps.type.replace(".", "-"))}-`;
857
1136
  const startsWithDashOrLetterRegex = /^-?[a-zA-Z]/i;
858
1137
  const startsWithDashOrLetter = startsWithDashOrLetterRegex.test(value);
859
1138
  if (value === "none" || value === "auto" || value === "unset" || value === "inherit" || value === "fit-content" || value === "min-content" || value === "max-content" || value.includes("calc") || value.includes("var") || !startsWithDashOrLetter) return value;
@@ -1008,10 +1287,10 @@ var getMediaColor = (value, globalTheme, config) => {
1008
1287
  };
1009
1288
 
1010
1289
  // src/system/font.js
1011
- var import_utils11 = __toESM(require_cjs(), 1);
1290
+ var import_utils12 = __toESM(require_cjs(), 1);
1012
1291
 
1013
1292
  // src/system/spacing.js
1014
- var import_utils15 = __toESM(require_cjs(), 1);
1293
+ var import_utils16 = __toESM(require_cjs(), 1);
1015
1294
  var getSequence = (sequenceProps) => {
1016
1295
  const CONFIG2 = getActiveConfig();
1017
1296
  const { SPACING: SPACING2 } = CONFIG2;
@@ -1024,7 +1303,7 @@ var getSpacingByKey = (value, propertyName = "padding", sequenceProps) => {
1024
1303
  if (isString(value) && (value.includes("calc") || value.includes("var"))) {
1025
1304
  return { [propertyName]: value };
1026
1305
  }
1027
- const stack = (0, import_utils15.arrayzeValue)(value);
1306
+ const stack = (0, import_utils16.arrayzeValue)(value);
1028
1307
  if (!isArray(stack)) return;
1029
1308
  if (stack.length > 1) {
1030
1309
  let suffix = "";
@@ -1117,11 +1396,11 @@ var getShadow = (value, globalTheme) => {
1117
1396
  };
1118
1397
 
1119
1398
  // src/system/timing.js
1120
- var import_utils19 = __toESM(require_cjs(), 1);
1399
+ var import_utils20 = __toESM(require_cjs(), 1);
1121
1400
  var getTimingFunction = (value) => {
1122
1401
  const CONFIG2 = getActiveConfig();
1123
1402
  const { TIMING: TIMING2 } = CONFIG2;
1124
- return TIMING2[value] || TIMING2[(0, import_utils19.toCamelCase)(value)] || value;
1403
+ return TIMING2[value] || TIMING2[(0, import_utils20.toCamelCase)(value)] || value;
1125
1404
  };
1126
1405
  var getTimingByKey = (value, property = "timing") => {
1127
1406
  const CONFIG2 = getActiveConfig();
@@ -38,17 +38,163 @@ __export(color_exports, {
38
38
  });
39
39
  module.exports = __toCommonJS(color_exports);
40
40
 
41
- // node_modules/@domql/utils/dist/esm/globals.js
41
+ // ../../../domql/packages/utils/globals.js
42
42
  var window2 = globalThis;
43
43
  var document2 = window2.document;
44
44
 
45
- // node_modules/@domql/utils/dist/esm/types.js
45
+ // ../../../domql/packages/utils/types.js
46
46
  var isString = (arg) => typeof arg === "string";
47
47
  var isNumber = (arg) => typeof arg === "number";
48
48
 
49
- // node_modules/@domql/utils/dist/esm/cookie.js
49
+ // ../../../domql/packages/utils/keys.js
50
+ var STATE_METHODS = [
51
+ "update",
52
+ "parse",
53
+ "clean",
54
+ "create",
55
+ "destroy",
56
+ "add",
57
+ "toggle",
58
+ "remove",
59
+ "apply",
60
+ "set",
61
+ "reset",
62
+ "replace",
63
+ "quietReplace",
64
+ "quietUpdate",
65
+ "applyReplace",
66
+ "applyFunction",
67
+ "keys",
68
+ "values",
69
+ "ref",
70
+ "rootUpdate",
71
+ "parentUpdate",
72
+ "parent",
73
+ "__element",
74
+ "__depends",
75
+ "__ref",
76
+ "__children",
77
+ "root",
78
+ "setByPath",
79
+ "setPathCollection",
80
+ "removeByPath",
81
+ "removePathCollection",
82
+ "getByPath"
83
+ ];
84
+ var PROPS_METHODS = ["update", "__element"];
85
+ var METHODS = [
86
+ "set",
87
+ "reset",
88
+ "update",
89
+ "remove",
90
+ "updateContent",
91
+ "removeContent",
92
+ "lookup",
93
+ "lookdown",
94
+ "lookdownAll",
95
+ "getRef",
96
+ "getPath",
97
+ "setNodeStyles",
98
+ "spotByPath",
99
+ "keys",
100
+ "parse",
101
+ "setProps",
102
+ "parseDeep",
103
+ "variables",
104
+ "if",
105
+ "log",
106
+ "verbose",
107
+ "warn",
108
+ "error",
109
+ "call",
110
+ "nextElement",
111
+ "previousElement"
112
+ ];
113
+ var METHODS_EXL = [
114
+ ...["node", "context", "extends", "__element", "__ref"],
115
+ ...METHODS,
116
+ ...STATE_METHODS,
117
+ ...PROPS_METHODS
118
+ ];
119
+
120
+ // ../../../domql/packages/utils/cookie.js
50
121
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
51
122
 
123
+ // ../../../domql/packages/event/dist/esm/keys.js
124
+ var STATE_METHODS2 = [
125
+ "update",
126
+ "parse",
127
+ "clean",
128
+ "create",
129
+ "destroy",
130
+ "add",
131
+ "toggle",
132
+ "remove",
133
+ "apply",
134
+ "set",
135
+ "reset",
136
+ "replace",
137
+ "quietReplace",
138
+ "quietUpdate",
139
+ "applyReplace",
140
+ "applyFunction",
141
+ "keys",
142
+ "values",
143
+ "ref",
144
+ "rootUpdate",
145
+ "parentUpdate",
146
+ "parent",
147
+ "__element",
148
+ "__depends",
149
+ "__ref",
150
+ "__children",
151
+ "root",
152
+ "setByPath",
153
+ "setPathCollection",
154
+ "removeByPath",
155
+ "removePathCollection",
156
+ "getByPath"
157
+ ];
158
+ var PROPS_METHODS2 = ["update", "__element"];
159
+ var METHODS2 = [
160
+ "set",
161
+ "reset",
162
+ "update",
163
+ "remove",
164
+ "updateContent",
165
+ "removeContent",
166
+ "lookup",
167
+ "lookdown",
168
+ "lookdownAll",
169
+ "getRef",
170
+ "getPath",
171
+ "setNodeStyles",
172
+ "spotByPath",
173
+ "keys",
174
+ "parse",
175
+ "setProps",
176
+ "parseDeep",
177
+ "variables",
178
+ "if",
179
+ "log",
180
+ "verbose",
181
+ "warn",
182
+ "error",
183
+ "call",
184
+ "nextElement",
185
+ "previousElement"
186
+ ];
187
+ var METHODS_EXL2 = [
188
+ ...["node", "context", "extends", "__element", "__ref"],
189
+ ...METHODS2,
190
+ ...STATE_METHODS2,
191
+ ...PROPS_METHODS2
192
+ ];
193
+
194
+ // ../../../domql/packages/event/dist/esm/globals.js
195
+ var window3 = globalThis;
196
+ var document3 = window3.document;
197
+
52
198
  // src/utils/color.js
53
199
  var ENV = "development";
54
200
  var colorStringToRgbaArray = (color) => {
@@ -164,7 +310,7 @@ var mixTwoRgba = (colorA, colorB, range = 0.5) => {
164
310
  var opacify = (color, opacity) => {
165
311
  const arr = colorStringToRgbaArray(color);
166
312
  if (!arr) {
167
- if (ENV === "test" || ENV === "development") console.warn(color + " color is not rgba");
313
+ if (ENV === "testing" || ENV === "development") console.warn(color + " color is not rgba");
168
314
  return;
169
315
  }
170
316
  arr[3] = opacity;