@symbo.ls/create 2.11.258 → 2.11.259
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/cjs/bundle/index.js +584 -1832
- package/dist/cjs/createDomql.js +2 -3
- package/package.json +2 -2
- package/src/createDomql.js +3 -4
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -31,9 +31,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
31
|
));
|
|
32
32
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
33
|
|
|
34
|
-
//
|
|
34
|
+
// ../../node_modules/@domql/utils/dist/cjs/key.js
|
|
35
35
|
var require_key = __commonJS({
|
|
36
|
-
"
|
|
36
|
+
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
|
|
37
37
|
"use strict";
|
|
38
38
|
var __defProp2 = Object.defineProperty;
|
|
39
39
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -58,7 +58,7 @@ var require_key = __commonJS({
|
|
|
58
58
|
generateKey: () => generateKey
|
|
59
59
|
});
|
|
60
60
|
module2.exports = __toCommonJS2(key_exports);
|
|
61
|
-
var generateKey = function() {
|
|
61
|
+
var generateKey = /* @__PURE__ */ function() {
|
|
62
62
|
let index = 0;
|
|
63
63
|
function newId() {
|
|
64
64
|
index++;
|
|
@@ -70,9 +70,9 @@ var require_key = __commonJS({
|
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
|
|
73
|
-
//
|
|
73
|
+
// ../../node_modules/@domql/utils/dist/cjs/env.js
|
|
74
74
|
var require_env = __commonJS({
|
|
75
|
-
"
|
|
75
|
+
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
|
|
76
76
|
"use strict";
|
|
77
77
|
var __defProp2 = Object.defineProperty;
|
|
78
78
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -108,9 +108,9 @@ var require_env = __commonJS({
|
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
//
|
|
111
|
+
// ../../node_modules/@domql/utils/dist/cjs/globals.js
|
|
112
112
|
var require_globals = __commonJS({
|
|
113
|
-
"
|
|
113
|
+
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
|
|
114
114
|
"use strict";
|
|
115
115
|
var __defProp2 = Object.defineProperty;
|
|
116
116
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -144,9 +144,9 @@ var require_globals = __commonJS({
|
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
|
|
147
|
-
//
|
|
147
|
+
// ../../node_modules/@domql/utils/dist/cjs/node.js
|
|
148
148
|
var require_node = __commonJS({
|
|
149
|
-
"
|
|
149
|
+
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
|
|
150
150
|
"use strict";
|
|
151
151
|
var __defProp2 = Object.defineProperty;
|
|
152
152
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -181,9 +181,9 @@ var require_node = __commonJS({
|
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
//
|
|
184
|
+
// ../../node_modules/@domql/utils/dist/cjs/types.js
|
|
185
185
|
var require_types = __commonJS({
|
|
186
|
-
"
|
|
186
|
+
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
|
|
187
187
|
"use strict";
|
|
188
188
|
var __defProp2 = Object.defineProperty;
|
|
189
189
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -271,9 +271,9 @@ var require_types = __commonJS({
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
|
|
274
|
-
//
|
|
274
|
+
// ../../node_modules/@domql/utils/dist/cjs/array.js
|
|
275
275
|
var require_array = __commonJS({
|
|
276
|
-
"
|
|
276
|
+
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
|
|
277
277
|
"use strict";
|
|
278
278
|
var __defProp2 = Object.defineProperty;
|
|
279
279
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -384,9 +384,9 @@ var require_array = __commonJS({
|
|
|
384
384
|
}
|
|
385
385
|
});
|
|
386
386
|
|
|
387
|
-
//
|
|
387
|
+
// ../../node_modules/@domql/utils/dist/cjs/string.js
|
|
388
388
|
var require_string = __commonJS({
|
|
389
|
-
"
|
|
389
|
+
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
|
|
390
390
|
"use strict";
|
|
391
391
|
var __defProp2 = Object.defineProperty;
|
|
392
392
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -449,9 +449,9 @@ var require_string = __commonJS({
|
|
|
449
449
|
}
|
|
450
450
|
});
|
|
451
451
|
|
|
452
|
-
//
|
|
452
|
+
// ../../node_modules/@domql/utils/dist/cjs/object.js
|
|
453
453
|
var require_object = __commonJS({
|
|
454
|
-
"
|
|
454
|
+
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
|
|
455
455
|
"use strict";
|
|
456
456
|
var __defProp2 = Object.defineProperty;
|
|
457
457
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -498,7 +498,7 @@ var require_object = __commonJS({
|
|
|
498
498
|
mergeIfExisted: () => mergeIfExisted,
|
|
499
499
|
objectToString: () => objectToString,
|
|
500
500
|
overwrite: () => overwrite,
|
|
501
|
-
overwriteDeep: () =>
|
|
501
|
+
overwriteDeep: () => overwriteDeep2,
|
|
502
502
|
overwriteShallow: () => overwriteShallow2,
|
|
503
503
|
removeFromObject: () => removeFromObject,
|
|
504
504
|
stringToObject: () => stringToObject
|
|
@@ -861,7 +861,7 @@ var require_object = __commonJS({
|
|
|
861
861
|
}
|
|
862
862
|
return obj;
|
|
863
863
|
};
|
|
864
|
-
var
|
|
864
|
+
var overwriteDeep2 = (obj, params, excludeFrom = []) => {
|
|
865
865
|
for (const e in params) {
|
|
866
866
|
if (e === "__proto__")
|
|
867
867
|
continue;
|
|
@@ -870,7 +870,7 @@ var require_object = __commonJS({
|
|
|
870
870
|
const objProp = obj[e];
|
|
871
871
|
const paramsProp = params[e];
|
|
872
872
|
if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
|
|
873
|
-
|
|
873
|
+
overwriteDeep2(objProp, paramsProp);
|
|
874
874
|
} else if (paramsProp !== void 0) {
|
|
875
875
|
obj[e] = paramsProp;
|
|
876
876
|
}
|
|
@@ -959,9 +959,9 @@ var require_object = __commonJS({
|
|
|
959
959
|
}
|
|
960
960
|
});
|
|
961
961
|
|
|
962
|
-
//
|
|
962
|
+
// ../../node_modules/@domql/utils/dist/cjs/function.js
|
|
963
963
|
var require_function = __commonJS({
|
|
964
|
-
"
|
|
964
|
+
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
|
|
965
965
|
"use strict";
|
|
966
966
|
var __defProp2 = Object.defineProperty;
|
|
967
967
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1034,9 +1034,9 @@ var require_function = __commonJS({
|
|
|
1034
1034
|
}
|
|
1035
1035
|
});
|
|
1036
1036
|
|
|
1037
|
-
//
|
|
1037
|
+
// ../../node_modules/@domql/utils/dist/cjs/log.js
|
|
1038
1038
|
var require_log = __commonJS({
|
|
1039
|
-
"
|
|
1039
|
+
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
|
|
1040
1040
|
"use strict";
|
|
1041
1041
|
var __defProp2 = Object.defineProperty;
|
|
1042
1042
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1075,9 +1075,9 @@ var require_log = __commonJS({
|
|
|
1075
1075
|
}
|
|
1076
1076
|
});
|
|
1077
1077
|
|
|
1078
|
-
//
|
|
1078
|
+
// ../../node_modules/@domql/utils/dist/cjs/cookie.js
|
|
1079
1079
|
var require_cookie = __commonJS({
|
|
1080
|
-
"
|
|
1080
|
+
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
|
|
1081
1081
|
"use strict";
|
|
1082
1082
|
var __defProp2 = Object.defineProperty;
|
|
1083
1083
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1131,9 +1131,9 @@ var require_cookie = __commonJS({
|
|
|
1131
1131
|
}
|
|
1132
1132
|
});
|
|
1133
1133
|
|
|
1134
|
-
//
|
|
1134
|
+
// ../../node_modules/@domql/utils/dist/cjs/tags.js
|
|
1135
1135
|
var require_tags = __commonJS({
|
|
1136
|
-
"
|
|
1136
|
+
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
|
|
1137
1137
|
"use strict";
|
|
1138
1138
|
var __defProp2 = Object.defineProperty;
|
|
1139
1139
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1296,9 +1296,9 @@ var require_tags = __commonJS({
|
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
1298
|
|
|
1299
|
-
//
|
|
1299
|
+
// ../../node_modules/@domql/utils/dist/cjs/index.js
|
|
1300
1300
|
var require_cjs = __commonJS({
|
|
1301
|
-
"
|
|
1301
|
+
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
|
|
1302
1302
|
"use strict";
|
|
1303
1303
|
var __defProp2 = Object.defineProperty;
|
|
1304
1304
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1365,7 +1365,7 @@ var require_cjs2 = __commonJS({
|
|
|
1365
1365
|
mod
|
|
1366
1366
|
));
|
|
1367
1367
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
1368
|
-
var
|
|
1368
|
+
var require_cjs13 = __commonJS2({
|
|
1369
1369
|
"../../node_modules/@domql/globals/dist/cjs/index.js"(exports2, module22) {
|
|
1370
1370
|
"use strict";
|
|
1371
1371
|
var __defProp22 = Object.defineProperty;
|
|
@@ -1399,8 +1399,8 @@ var require_cjs2 = __commonJS({
|
|
|
1399
1399
|
var document4 = window22.document;
|
|
1400
1400
|
}
|
|
1401
1401
|
});
|
|
1402
|
-
var
|
|
1403
|
-
"
|
|
1402
|
+
var require_key2 = __commonJS2({
|
|
1403
|
+
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports2, module22) {
|
|
1404
1404
|
"use strict";
|
|
1405
1405
|
var __defProp22 = Object.defineProperty;
|
|
1406
1406
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1425,7 +1425,7 @@ var require_cjs2 = __commonJS({
|
|
|
1425
1425
|
generateKey: () => generateKey
|
|
1426
1426
|
});
|
|
1427
1427
|
module22.exports = __toCommonJS22(key_exports);
|
|
1428
|
-
var generateKey = function() {
|
|
1428
|
+
var generateKey = /* @__PURE__ */ function() {
|
|
1429
1429
|
let index = 0;
|
|
1430
1430
|
function newId() {
|
|
1431
1431
|
index++;
|
|
@@ -1436,8 +1436,8 @@ var require_cjs2 = __commonJS({
|
|
|
1436
1436
|
var createSnapshotId = generateKey;
|
|
1437
1437
|
}
|
|
1438
1438
|
});
|
|
1439
|
-
var
|
|
1440
|
-
"
|
|
1439
|
+
var require_env2 = __commonJS2({
|
|
1440
|
+
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports2, module22) {
|
|
1441
1441
|
"use strict";
|
|
1442
1442
|
var __defProp22 = Object.defineProperty;
|
|
1443
1443
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1472,8 +1472,8 @@ var require_cjs2 = __commonJS({
|
|
|
1472
1472
|
var getNev = (key, env = NODE_ENV) => env[key];
|
|
1473
1473
|
}
|
|
1474
1474
|
});
|
|
1475
|
-
var
|
|
1476
|
-
"
|
|
1475
|
+
var require_globals2 = __commonJS2({
|
|
1476
|
+
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports2, module22) {
|
|
1477
1477
|
"use strict";
|
|
1478
1478
|
var __defProp22 = Object.defineProperty;
|
|
1479
1479
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1506,8 +1506,8 @@ var require_cjs2 = __commonJS({
|
|
|
1506
1506
|
var document4 = window22.document;
|
|
1507
1507
|
}
|
|
1508
1508
|
});
|
|
1509
|
-
var
|
|
1510
|
-
"
|
|
1509
|
+
var require_node3 = __commonJS2({
|
|
1510
|
+
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports2, module22) {
|
|
1511
1511
|
"use strict";
|
|
1512
1512
|
var __defProp22 = Object.defineProperty;
|
|
1513
1513
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1532,7 +1532,7 @@ var require_cjs2 = __commonJS({
|
|
|
1532
1532
|
isNode: () => isNode
|
|
1533
1533
|
});
|
|
1534
1534
|
module22.exports = __toCommonJS22(node_exports);
|
|
1535
|
-
var import_globals3 =
|
|
1535
|
+
var import_globals3 = require_globals2();
|
|
1536
1536
|
var isNode = (obj) => {
|
|
1537
1537
|
return (typeof Node === "object" ? obj instanceof import_globals3.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
|
|
1538
1538
|
};
|
|
@@ -1541,8 +1541,8 @@ var require_cjs2 = __commonJS({
|
|
|
1541
1541
|
};
|
|
1542
1542
|
}
|
|
1543
1543
|
});
|
|
1544
|
-
var
|
|
1545
|
-
"
|
|
1544
|
+
var require_types2 = __commonJS2({
|
|
1545
|
+
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports2, module22) {
|
|
1546
1546
|
"use strict";
|
|
1547
1547
|
var __defProp22 = Object.defineProperty;
|
|
1548
1548
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1579,7 +1579,7 @@ var require_cjs2 = __commonJS({
|
|
|
1579
1579
|
isUndefined: () => isUndefined5
|
|
1580
1580
|
});
|
|
1581
1581
|
module22.exports = __toCommonJS22(types_exports);
|
|
1582
|
-
var import_node =
|
|
1582
|
+
var import_node = require_node3();
|
|
1583
1583
|
var isObject82 = (arg) => {
|
|
1584
1584
|
if (arg === null)
|
|
1585
1585
|
return false;
|
|
@@ -1629,8 +1629,8 @@ var require_cjs2 = __commonJS({
|
|
|
1629
1629
|
};
|
|
1630
1630
|
}
|
|
1631
1631
|
});
|
|
1632
|
-
var
|
|
1633
|
-
"
|
|
1632
|
+
var require_array2 = __commonJS2({
|
|
1633
|
+
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports2, module22) {
|
|
1634
1634
|
"use strict";
|
|
1635
1635
|
var __defProp22 = Object.defineProperty;
|
|
1636
1636
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1664,8 +1664,8 @@ var require_cjs2 = __commonJS({
|
|
|
1664
1664
|
swapItemsInArray: () => swapItemsInArray
|
|
1665
1665
|
});
|
|
1666
1666
|
module22.exports = __toCommonJS22(array_exports);
|
|
1667
|
-
var import_object =
|
|
1668
|
-
var import_types =
|
|
1667
|
+
var import_object = require_object3();
|
|
1668
|
+
var import_types = require_types2();
|
|
1669
1669
|
var arrayContainsOtherArray = (arr1, arr2) => {
|
|
1670
1670
|
return arr2.every((val) => arr1.includes(val));
|
|
1671
1671
|
};
|
|
@@ -1740,8 +1740,8 @@ var require_cjs2 = __commonJS({
|
|
|
1740
1740
|
};
|
|
1741
1741
|
}
|
|
1742
1742
|
});
|
|
1743
|
-
var
|
|
1744
|
-
"
|
|
1743
|
+
var require_string2 = __commonJS2({
|
|
1744
|
+
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports2, module22) {
|
|
1745
1745
|
"use strict";
|
|
1746
1746
|
var __defProp22 = Object.defineProperty;
|
|
1747
1747
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1803,8 +1803,8 @@ var require_cjs2 = __commonJS({
|
|
|
1803
1803
|
};
|
|
1804
1804
|
}
|
|
1805
1805
|
});
|
|
1806
|
-
var
|
|
1807
|
-
"
|
|
1806
|
+
var require_object3 = __commonJS2({
|
|
1807
|
+
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports2, module22) {
|
|
1808
1808
|
"use strict";
|
|
1809
1809
|
var __defProp22 = Object.defineProperty;
|
|
1810
1810
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1857,10 +1857,10 @@ var require_cjs2 = __commonJS({
|
|
|
1857
1857
|
stringToObject: () => stringToObject
|
|
1858
1858
|
});
|
|
1859
1859
|
module22.exports = __toCommonJS22(object_exports);
|
|
1860
|
-
var import_globals3 =
|
|
1861
|
-
var import_types =
|
|
1862
|
-
var import_array =
|
|
1863
|
-
var import_string =
|
|
1860
|
+
var import_globals3 = require_globals2();
|
|
1861
|
+
var import_types = require_types2();
|
|
1862
|
+
var import_array = require_array2();
|
|
1863
|
+
var import_string = require_string2();
|
|
1864
1864
|
var exec4 = (param, element, state, context) => {
|
|
1865
1865
|
if ((0, import_types.isFunction)(param)) {
|
|
1866
1866
|
return param(
|
|
@@ -2311,8 +2311,8 @@ var require_cjs2 = __commonJS({
|
|
|
2311
2311
|
};
|
|
2312
2312
|
}
|
|
2313
2313
|
});
|
|
2314
|
-
var
|
|
2315
|
-
"
|
|
2314
|
+
var require_function2 = __commonJS2({
|
|
2315
|
+
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports2, module22) {
|
|
2316
2316
|
"use strict";
|
|
2317
2317
|
var __defProp22 = Object.defineProperty;
|
|
2318
2318
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -2384,8 +2384,8 @@ var require_cjs2 = __commonJS({
|
|
|
2384
2384
|
};
|
|
2385
2385
|
}
|
|
2386
2386
|
});
|
|
2387
|
-
var
|
|
2388
|
-
"
|
|
2387
|
+
var require_log2 = __commonJS2({
|
|
2388
|
+
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports2, module22) {
|
|
2389
2389
|
"use strict";
|
|
2390
2390
|
var __defProp22 = Object.defineProperty;
|
|
2391
2391
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -2423,8 +2423,8 @@ var require_cjs2 = __commonJS({
|
|
|
2423
2423
|
};
|
|
2424
2424
|
}
|
|
2425
2425
|
});
|
|
2426
|
-
var
|
|
2427
|
-
"
|
|
2426
|
+
var require_cookie2 = __commonJS2({
|
|
2427
|
+
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports2, module22) {
|
|
2428
2428
|
"use strict";
|
|
2429
2429
|
var __defProp22 = Object.defineProperty;
|
|
2430
2430
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -2450,7 +2450,7 @@ var require_cjs2 = __commonJS({
|
|
|
2450
2450
|
setCookie: () => setCookie
|
|
2451
2451
|
});
|
|
2452
2452
|
module22.exports = __toCommonJS22(cookie_exports);
|
|
2453
|
-
var import_types =
|
|
2453
|
+
var import_types = require_types2();
|
|
2454
2454
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
2455
2455
|
var setCookie = (cname, cvalue, exdays = 365) => {
|
|
2456
2456
|
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
|
|
@@ -2477,8 +2477,8 @@ var require_cjs2 = __commonJS({
|
|
|
2477
2477
|
};
|
|
2478
2478
|
}
|
|
2479
2479
|
});
|
|
2480
|
-
var
|
|
2481
|
-
"
|
|
2480
|
+
var require_tags3 = __commonJS2({
|
|
2481
|
+
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports2, module22) {
|
|
2482
2482
|
"use strict";
|
|
2483
2483
|
var __defProp22 = Object.defineProperty;
|
|
2484
2484
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -2641,7 +2641,7 @@ var require_cjs2 = __commonJS({
|
|
|
2641
2641
|
}
|
|
2642
2642
|
});
|
|
2643
2643
|
var require_cjs22 = __commonJS2({
|
|
2644
|
-
"
|
|
2644
|
+
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports2, module22) {
|
|
2645
2645
|
"use strict";
|
|
2646
2646
|
var __defProp22 = Object.defineProperty;
|
|
2647
2647
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -2659,18 +2659,18 @@ var require_cjs2 = __commonJS({
|
|
|
2659
2659
|
var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
|
|
2660
2660
|
var utils_exports2 = {};
|
|
2661
2661
|
module22.exports = __toCommonJS22(utils_exports2);
|
|
2662
|
-
__reExport2(utils_exports2,
|
|
2663
|
-
__reExport2(utils_exports2,
|
|
2664
|
-
__reExport2(utils_exports2,
|
|
2665
|
-
__reExport2(utils_exports2,
|
|
2666
|
-
__reExport2(utils_exports2,
|
|
2667
|
-
__reExport2(utils_exports2,
|
|
2668
|
-
__reExport2(utils_exports2,
|
|
2669
|
-
__reExport2(utils_exports2,
|
|
2670
|
-
__reExport2(utils_exports2,
|
|
2671
|
-
__reExport2(utils_exports2,
|
|
2672
|
-
__reExport2(utils_exports2,
|
|
2673
|
-
__reExport2(utils_exports2,
|
|
2662
|
+
__reExport2(utils_exports2, require_key2(), module22.exports);
|
|
2663
|
+
__reExport2(utils_exports2, require_env2(), module22.exports);
|
|
2664
|
+
__reExport2(utils_exports2, require_types2(), module22.exports);
|
|
2665
|
+
__reExport2(utils_exports2, require_object3(), module22.exports);
|
|
2666
|
+
__reExport2(utils_exports2, require_function2(), module22.exports);
|
|
2667
|
+
__reExport2(utils_exports2, require_array2(), module22.exports);
|
|
2668
|
+
__reExport2(utils_exports2, require_node3(), module22.exports);
|
|
2669
|
+
__reExport2(utils_exports2, require_log2(), module22.exports);
|
|
2670
|
+
__reExport2(utils_exports2, require_string2(), module22.exports);
|
|
2671
|
+
__reExport2(utils_exports2, require_globals2(), module22.exports);
|
|
2672
|
+
__reExport2(utils_exports2, require_cookie2(), module22.exports);
|
|
2673
|
+
__reExport2(utils_exports2, require_tags3(), module22.exports);
|
|
2674
2674
|
}
|
|
2675
2675
|
});
|
|
2676
2676
|
var src_exports2 = {};
|
|
@@ -2843,8 +2843,8 @@ var require_cjs2 = __commonJS({
|
|
|
2843
2843
|
var isScalingUnit = (unit) => {
|
|
2844
2844
|
return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
|
|
2845
2845
|
};
|
|
2846
|
-
var import_globals2 = __toESM2(
|
|
2847
|
-
var
|
|
2846
|
+
var import_globals2 = __toESM2(require_cjs13(), 1);
|
|
2847
|
+
var import_utils28 = __toESM2(require_cjs22(), 1);
|
|
2848
2848
|
var ENV2 = "development";
|
|
2849
2849
|
var colorStringToRgbaArray = (color) => {
|
|
2850
2850
|
if (color === "")
|
|
@@ -2972,11 +2972,11 @@ var require_cjs2 = __commonJS({
|
|
|
2972
2972
|
return `rgba(${arr})`;
|
|
2973
2973
|
};
|
|
2974
2974
|
var getRgbTone = (rgb, tone) => {
|
|
2975
|
-
if ((0,
|
|
2975
|
+
if ((0, import_utils28.isString)(rgb) && rgb.includes("rgb"))
|
|
2976
2976
|
rgb = colorStringToRgbaArray(rgb).join(", ");
|
|
2977
|
-
if ((0,
|
|
2977
|
+
if ((0, import_utils28.isString)(rgb))
|
|
2978
2978
|
rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
|
|
2979
|
-
if ((0,
|
|
2979
|
+
if ((0, import_utils28.isNumber)(tone))
|
|
2980
2980
|
tone += "";
|
|
2981
2981
|
const toHex = rgbArrayToHex(rgb);
|
|
2982
2982
|
const abs2 = tone.slice(0, 1);
|
|
@@ -3041,7 +3041,7 @@ var require_cjs2 = __commonJS({
|
|
|
3041
3041
|
};
|
|
3042
3042
|
var import_utils52 = __toESM2(require_cjs22(), 1);
|
|
3043
3043
|
var import_utils32 = __toESM2(require_cjs22());
|
|
3044
|
-
var
|
|
3044
|
+
var import_utils29 = __toESM2(require_cjs22());
|
|
3045
3045
|
var toCamelCase2 = (str) => {
|
|
3046
3046
|
return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
|
|
3047
3047
|
return index === 0 ? word.toLowerCase() : word.toUpperCase();
|
|
@@ -4291,7 +4291,7 @@ var require_cjs2 = __commonJS({
|
|
|
4291
4291
|
lineHeight: TYPOGRAPHY22.lineHeight
|
|
4292
4292
|
});
|
|
4293
4293
|
};
|
|
4294
|
-
var import_globals22 = __toESM2(
|
|
4294
|
+
var import_globals22 = __toESM2(require_cjs13(), 1);
|
|
4295
4295
|
var DEF_OPTIONS = {
|
|
4296
4296
|
document: import_globals22.document
|
|
4297
4297
|
};
|
|
@@ -4749,8 +4749,8 @@ var require_cjs4 = __commonJS({
|
|
|
4749
4749
|
router: () => router2
|
|
4750
4750
|
});
|
|
4751
4751
|
module2.exports = __toCommonJS2(router_exports);
|
|
4752
|
-
var
|
|
4753
|
-
var getActiveRoute = (level = 0, route =
|
|
4752
|
+
var import_utils28 = require_cjs();
|
|
4753
|
+
var getActiveRoute = (level = 0, route = import_utils28.window.location.pathname) => {
|
|
4754
4754
|
const routeArray = route.split("/");
|
|
4755
4755
|
const activeRoute = routeArray[level + 1];
|
|
4756
4756
|
if (activeRoute)
|
|
@@ -4764,7 +4764,7 @@ var require_cjs4 = __commonJS({
|
|
|
4764
4764
|
initialRender: false,
|
|
4765
4765
|
scrollToTop: true,
|
|
4766
4766
|
scrollToNode: false,
|
|
4767
|
-
scrollNode:
|
|
4767
|
+
scrollNode: import_utils28.document && import_utils28.document.documentElement,
|
|
4768
4768
|
scrollBody: false,
|
|
4769
4769
|
useFragment: false,
|
|
4770
4770
|
updateState: true,
|
|
@@ -4779,13 +4779,13 @@ var require_cjs4 = __commonJS({
|
|
|
4779
4779
|
const route = getActiveRoute(options.level, pathname);
|
|
4780
4780
|
const content = element.routes[route || "/"] || element.routes["/*"];
|
|
4781
4781
|
const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
|
|
4782
|
-
const hashChanged = hash2 && hash2 !==
|
|
4782
|
+
const hashChanged = hash2 && hash2 !== import_utils28.window.location.hash.slice(1);
|
|
4783
4783
|
const pathChanged = pathname !== lastPathname;
|
|
4784
4784
|
lastPathname = pathname;
|
|
4785
4785
|
if (!content)
|
|
4786
4786
|
return;
|
|
4787
4787
|
if (options.pushState) {
|
|
4788
|
-
|
|
4788
|
+
import_utils28.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
|
|
4789
4789
|
}
|
|
4790
4790
|
if (pathChanged || !hashChanged) {
|
|
4791
4791
|
if (options.updateState) {
|
|
@@ -4811,7 +4811,7 @@ var require_cjs4 = __commonJS({
|
|
|
4811
4811
|
});
|
|
4812
4812
|
}
|
|
4813
4813
|
if (hash2) {
|
|
4814
|
-
const activeNode =
|
|
4814
|
+
const activeNode = import_utils28.document.getElementById(hash2);
|
|
4815
4815
|
if (activeNode) {
|
|
4816
4816
|
const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
|
|
4817
4817
|
scrollNode.scrollTo({
|
|
@@ -4826,9 +4826,9 @@ var require_cjs4 = __commonJS({
|
|
|
4826
4826
|
}
|
|
4827
4827
|
});
|
|
4828
4828
|
|
|
4829
|
-
//
|
|
4829
|
+
// ../../node_modules/@domql/state/dist/cjs/ignore.js
|
|
4830
4830
|
var require_ignore = __commonJS({
|
|
4831
|
-
"
|
|
4831
|
+
"../../node_modules/@domql/state/dist/cjs/ignore.js"(exports, module2) {
|
|
4832
4832
|
"use strict";
|
|
4833
4833
|
var __defProp2 = Object.defineProperty;
|
|
4834
4834
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4876,9 +4876,9 @@ var require_ignore = __commonJS({
|
|
|
4876
4876
|
}
|
|
4877
4877
|
});
|
|
4878
4878
|
|
|
4879
|
-
//
|
|
4879
|
+
// ../../node_modules/@domql/event/dist/cjs/on.js
|
|
4880
4880
|
var require_on = __commonJS({
|
|
4881
|
-
"
|
|
4881
|
+
"../../node_modules/@domql/event/dist/cjs/on.js"(exports, module2) {
|
|
4882
4882
|
"use strict";
|
|
4883
4883
|
var __defProp2 = Object.defineProperty;
|
|
4884
4884
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4906,12 +4906,12 @@ var require_on = __commonJS({
|
|
|
4906
4906
|
triggerEventOnUpdate: () => triggerEventOnUpdate
|
|
4907
4907
|
});
|
|
4908
4908
|
module2.exports = __toCommonJS2(on_exports);
|
|
4909
|
-
var
|
|
4909
|
+
var import_utils28 = require_cjs();
|
|
4910
4910
|
var applyEvent = (param, element, state, context, options) => {
|
|
4911
4911
|
return param(element, state || element.state, context || element.context, options);
|
|
4912
4912
|
};
|
|
4913
4913
|
var triggerEventOn = (param, element, options) => {
|
|
4914
|
-
if (element.on && (0,
|
|
4914
|
+
if (element.on && (0, import_utils28.isFunction)(element.on[param])) {
|
|
4915
4915
|
const { state, context } = element;
|
|
4916
4916
|
return applyEvent(element.on[param], element, state, context, options);
|
|
4917
4917
|
}
|
|
@@ -4920,7 +4920,7 @@ var require_on = __commonJS({
|
|
|
4920
4920
|
return param(updatedObj, element, state || element.state, context || element.context, options);
|
|
4921
4921
|
};
|
|
4922
4922
|
var triggerEventOnUpdate = (param, updatedObj, element, options) => {
|
|
4923
|
-
if (element.on && (0,
|
|
4923
|
+
if (element.on && (0, import_utils28.isFunction)(element.on[param])) {
|
|
4924
4924
|
const { state, context } = element;
|
|
4925
4925
|
return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
|
|
4926
4926
|
}
|
|
@@ -4931,7 +4931,7 @@ var require_on = __commonJS({
|
|
|
4931
4931
|
if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
|
|
4932
4932
|
continue;
|
|
4933
4933
|
const appliedFunction = element.on[param];
|
|
4934
|
-
if ((0,
|
|
4934
|
+
if ((0, import_utils28.isFunction)(appliedFunction)) {
|
|
4935
4935
|
node2.addEventListener(param, (event) => {
|
|
4936
4936
|
const { state, context } = element;
|
|
4937
4937
|
appliedFunction(event, element, state, context, options);
|
|
@@ -4942,106 +4942,9 @@ var require_on = __commonJS({
|
|
|
4942
4942
|
}
|
|
4943
4943
|
});
|
|
4944
4944
|
|
|
4945
|
-
//
|
|
4946
|
-
var require_cjs5 = __commonJS({
|
|
4947
|
-
"../../../domql/plugins/report/dist/cjs/index.js"(exports, module2) {
|
|
4948
|
-
"use strict";
|
|
4949
|
-
var __defProp2 = Object.defineProperty;
|
|
4950
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
4951
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
4952
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
4953
|
-
var __export2 = (target, all) => {
|
|
4954
|
-
for (var name in all)
|
|
4955
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
4956
|
-
};
|
|
4957
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
4958
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
4959
|
-
for (let key of __getOwnPropNames2(from2))
|
|
4960
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
4961
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
4962
|
-
}
|
|
4963
|
-
return to;
|
|
4964
|
-
};
|
|
4965
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
4966
|
-
var report_exports = {};
|
|
4967
|
-
__export2(report_exports, {
|
|
4968
|
-
ERRORS_REGISTRY: () => ERRORS_REGISTRY,
|
|
4969
|
-
report: () => report
|
|
4970
|
-
});
|
|
4971
|
-
module2.exports = __toCommonJS2(report_exports);
|
|
4972
|
-
var ERRORS_REGISTRY = {
|
|
4973
|
-
en: {
|
|
4974
|
-
DocumentNotDefined: {
|
|
4975
|
-
title: "Document is undefined",
|
|
4976
|
-
description: "To tweak with DOM, you should use browser."
|
|
4977
|
-
},
|
|
4978
|
-
OverwriteToBuiltin: {
|
|
4979
|
-
title: "Overwriting to builtin method",
|
|
4980
|
-
description: "Overwriting a builtin method in the window define is not possible, please choose different name"
|
|
4981
|
-
},
|
|
4982
|
-
BrowserNotDefined: {
|
|
4983
|
-
title: "Can't recognize environment",
|
|
4984
|
-
description: "Environment should be browser application, that can run Javascript"
|
|
4985
|
-
},
|
|
4986
|
-
SetQuickPreferancesIsNotObject: {
|
|
4987
|
-
title: "Quick preferances object is required",
|
|
4988
|
-
description: 'Please pass a plain object with "lang", "culture" and "area" properties'
|
|
4989
|
-
},
|
|
4990
|
-
InvalidParams: {
|
|
4991
|
-
title: "Params are invalid",
|
|
4992
|
-
description: 'Please pass a plain object with "lang", "culture" and "area" properties'
|
|
4993
|
-
},
|
|
4994
|
-
CantCreateWithoutNode: {
|
|
4995
|
-
title: "You must provide node",
|
|
4996
|
-
description: "Can't create DOM element without setting node or text"
|
|
4997
|
-
},
|
|
4998
|
-
HTMLInvalidTag: {
|
|
4999
|
-
title: "Element tag name (or DOM nodeName) is invalid",
|
|
5000
|
-
description: "To create element, you must provide valid DOM node. See full list of them at here: http://www.w3schools.com/tags/"
|
|
5001
|
-
},
|
|
5002
|
-
HTMLInvalidAttr: {
|
|
5003
|
-
title: "Attibutes object is invalid",
|
|
5004
|
-
description: "Please pass a valid plain object to apply as an attributes for a DOM node"
|
|
5005
|
-
},
|
|
5006
|
-
HTMLInvalidData: {
|
|
5007
|
-
title: "Data object is invalid",
|
|
5008
|
-
description: "Please pass a valid plain object to apply as an dataset for a DOM node"
|
|
5009
|
-
},
|
|
5010
|
-
HTMLInvalidStyles: {
|
|
5011
|
-
title: "Styles object is invalid",
|
|
5012
|
-
description: "Please pass a valid plain object to apply as an style for a DOM node"
|
|
5013
|
-
},
|
|
5014
|
-
HTMLInvalidText: {
|
|
5015
|
-
title: "Text string is invalid",
|
|
5016
|
-
description: "Please pass a valid string to apply text to DOM node"
|
|
5017
|
-
},
|
|
5018
|
-
ElementOnStateIsNotDefined: {
|
|
5019
|
-
title: "Element on state is not defined",
|
|
5020
|
-
description: "Please check the element object"
|
|
5021
|
-
}
|
|
5022
|
-
}
|
|
5023
|
-
};
|
|
5024
|
-
var report = (err, arg, element) => {
|
|
5025
|
-
const currentLang = "en";
|
|
5026
|
-
let errObj;
|
|
5027
|
-
if (err && typeof err === "string")
|
|
5028
|
-
errObj = ERRORS_REGISTRY[currentLang][err];
|
|
5029
|
-
return new Error(
|
|
5030
|
-
`"${err}", "${arg}"
|
|
5031
|
-
|
|
5032
|
-
`,
|
|
5033
|
-
`${errObj.description}`,
|
|
5034
|
-
element ? `
|
|
5035
|
-
|
|
5036
|
-
${element}` : ""
|
|
5037
|
-
);
|
|
5038
|
-
};
|
|
5039
|
-
}
|
|
5040
|
-
});
|
|
5041
|
-
|
|
5042
|
-
// ../../../domql/packages/event/dist/cjs/can.js
|
|
4945
|
+
// ../../node_modules/@domql/event/dist/cjs/can.js
|
|
5043
4946
|
var require_can = __commonJS({
|
|
5044
|
-
"
|
|
4947
|
+
"../../node_modules/@domql/event/dist/cjs/can.js"(exports, module2) {
|
|
5045
4948
|
"use strict";
|
|
5046
4949
|
var __defProp2 = Object.defineProperty;
|
|
5047
4950
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5065,18 +4968,18 @@ var require_can = __commonJS({
|
|
|
5065
4968
|
canRender: () => canRender
|
|
5066
4969
|
});
|
|
5067
4970
|
module2.exports = __toCommonJS2(can_exports);
|
|
5068
|
-
var import_report =
|
|
5069
|
-
var
|
|
4971
|
+
var import_report = require_cjs3();
|
|
4972
|
+
var import_utils28 = require_cjs();
|
|
5070
4973
|
var canRender = (element) => {
|
|
5071
4974
|
const tag = element.tag || "div";
|
|
5072
|
-
return (0,
|
|
4975
|
+
return (0, import_utils28.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
|
|
5073
4976
|
};
|
|
5074
4977
|
}
|
|
5075
4978
|
});
|
|
5076
4979
|
|
|
5077
|
-
//
|
|
5078
|
-
var
|
|
5079
|
-
"
|
|
4980
|
+
// ../../node_modules/@domql/event/dist/cjs/index.js
|
|
4981
|
+
var require_cjs5 = __commonJS({
|
|
4982
|
+
"../../node_modules/@domql/event/dist/cjs/index.js"(exports, module2) {
|
|
5080
4983
|
"use strict";
|
|
5081
4984
|
var __defProp2 = Object.defineProperty;
|
|
5082
4985
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5099,9 +5002,9 @@ var require_cjs6 = __commonJS({
|
|
|
5099
5002
|
}
|
|
5100
5003
|
});
|
|
5101
5004
|
|
|
5102
|
-
//
|
|
5005
|
+
// ../../node_modules/@domql/state/dist/cjs/methods.js
|
|
5103
5006
|
var require_methods = __commonJS({
|
|
5104
|
-
"
|
|
5007
|
+
"../../node_modules/@domql/state/dist/cjs/methods.js"(exports, module2) {
|
|
5105
5008
|
"use strict";
|
|
5106
5009
|
var __defProp2 = Object.defineProperty;
|
|
5107
5010
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5135,11 +5038,11 @@ var require_methods = __commonJS({
|
|
|
5135
5038
|
toggle: () => toggle
|
|
5136
5039
|
});
|
|
5137
5040
|
module2.exports = __toCommonJS2(methods_exports);
|
|
5138
|
-
var
|
|
5041
|
+
var import_utils28 = require_cjs();
|
|
5139
5042
|
var import_ignore = require_ignore();
|
|
5140
5043
|
var parse3 = function() {
|
|
5141
5044
|
const state = this;
|
|
5142
|
-
if ((0,
|
|
5045
|
+
if ((0, import_utils28.isObject)(state)) {
|
|
5143
5046
|
const obj = {};
|
|
5144
5047
|
for (const param in state) {
|
|
5145
5048
|
if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
|
|
@@ -5147,7 +5050,7 @@ var require_methods = __commonJS({
|
|
|
5147
5050
|
}
|
|
5148
5051
|
}
|
|
5149
5052
|
return obj;
|
|
5150
|
-
} else if ((0,
|
|
5053
|
+
} else if ((0, import_utils28.isArray)(state)) {
|
|
5151
5054
|
return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
|
|
5152
5055
|
}
|
|
5153
5056
|
};
|
|
@@ -5167,7 +5070,7 @@ var require_methods = __commonJS({
|
|
|
5167
5070
|
const state = this;
|
|
5168
5071
|
const element = state.__element;
|
|
5169
5072
|
const stateKey = element.__ref.__state;
|
|
5170
|
-
if ((0,
|
|
5073
|
+
if ((0, import_utils28.isString)(stateKey)) {
|
|
5171
5074
|
element.parent.state.remove(stateKey, { isHoisted: true, ...options });
|
|
5172
5075
|
return element.state;
|
|
5173
5076
|
}
|
|
@@ -5180,7 +5083,7 @@ var require_methods = __commonJS({
|
|
|
5180
5083
|
for (const key in state.__children) {
|
|
5181
5084
|
const child = state.__children[key];
|
|
5182
5085
|
if (child.state) {
|
|
5183
|
-
if ((0,
|
|
5086
|
+
if ((0, import_utils28.isArray)(child.state)) {
|
|
5184
5087
|
Object.defineProperty(child.state, "parent", {
|
|
5185
5088
|
value: state.parent,
|
|
5186
5089
|
enumerable: false,
|
|
@@ -5214,10 +5117,10 @@ var require_methods = __commonJS({
|
|
|
5214
5117
|
};
|
|
5215
5118
|
var add = function(value2, options = {}) {
|
|
5216
5119
|
const state = this;
|
|
5217
|
-
if ((0,
|
|
5120
|
+
if ((0, import_utils28.isArray)(state)) {
|
|
5218
5121
|
state.push(value2);
|
|
5219
5122
|
state.update(state.parse(), { overwrite: "replace", ...options });
|
|
5220
|
-
} else if ((0,
|
|
5123
|
+
} else if ((0, import_utils28.isObject)(state)) {
|
|
5221
5124
|
const key = Object.keys(state).length;
|
|
5222
5125
|
state.update({ [key]: value2 }, options);
|
|
5223
5126
|
}
|
|
@@ -5228,25 +5131,25 @@ var require_methods = __commonJS({
|
|
|
5228
5131
|
};
|
|
5229
5132
|
var remove = function(key, options = {}) {
|
|
5230
5133
|
const state = this;
|
|
5231
|
-
if ((0,
|
|
5232
|
-
(0,
|
|
5233
|
-
if ((0,
|
|
5234
|
-
(0,
|
|
5134
|
+
if ((0, import_utils28.isArray)(state))
|
|
5135
|
+
(0, import_utils28.removeFromArray)(state, key);
|
|
5136
|
+
if ((0, import_utils28.isObject)(state))
|
|
5137
|
+
(0, import_utils28.removeFromObject)(state, key);
|
|
5235
5138
|
return state.update(state.parse(), { replace: true, ...options });
|
|
5236
5139
|
};
|
|
5237
5140
|
var set5 = function(val, options = {}) {
|
|
5238
5141
|
const state = this;
|
|
5239
|
-
const value2 = (0,
|
|
5142
|
+
const value2 = (0, import_utils28.deepCloneWithExtnd)(val);
|
|
5240
5143
|
return state.clean({ preventStateUpdate: true, ...options }).update(value2, { replace: true, ...options });
|
|
5241
5144
|
};
|
|
5242
5145
|
var reset = function(options = {}) {
|
|
5243
5146
|
const state = this;
|
|
5244
|
-
const value2 = (0,
|
|
5147
|
+
const value2 = (0, import_utils28.deepCloneWithExtnd)(state.parse());
|
|
5245
5148
|
return state.set(value2, { replace: true, ...options });
|
|
5246
5149
|
};
|
|
5247
5150
|
var apply = function(func, options = {}) {
|
|
5248
5151
|
const state = this;
|
|
5249
|
-
if ((0,
|
|
5152
|
+
if ((0, import_utils28.isFunction)(func)) {
|
|
5250
5153
|
func(state);
|
|
5251
5154
|
return state.update(state.parse(), { replace: true, ...options });
|
|
5252
5155
|
}
|
|
@@ -5254,9 +5157,9 @@ var require_methods = __commonJS({
|
|
|
5254
5157
|
}
|
|
5255
5158
|
});
|
|
5256
5159
|
|
|
5257
|
-
//
|
|
5160
|
+
// ../../node_modules/@domql/state/dist/cjs/inherit.js
|
|
5258
5161
|
var require_inherit = __commonJS({
|
|
5259
|
-
"
|
|
5162
|
+
"../../node_modules/@domql/state/dist/cjs/inherit.js"(exports, module2) {
|
|
5260
5163
|
"use strict";
|
|
5261
5164
|
var __defProp2 = Object.defineProperty;
|
|
5262
5165
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5286,7 +5189,7 @@ var require_inherit = __commonJS({
|
|
|
5286
5189
|
isState: () => isState2
|
|
5287
5190
|
});
|
|
5288
5191
|
module2.exports = __toCommonJS2(inherit_exports);
|
|
5289
|
-
var
|
|
5192
|
+
var import_utils28 = require_cjs();
|
|
5290
5193
|
var import_ignore = require_ignore();
|
|
5291
5194
|
var getParentStateInKey = (stateKey, parentState) => {
|
|
5292
5195
|
if (!stateKey.includes("../"))
|
|
@@ -5338,11 +5241,11 @@ var require_inherit = __commonJS({
|
|
|
5338
5241
|
var createInheritedState = (element, parent) => {
|
|
5339
5242
|
const ref = element.__ref;
|
|
5340
5243
|
const inheritedState = findInheritedState(element, parent);
|
|
5341
|
-
if ((0,
|
|
5244
|
+
if ((0, import_utils28.isUndefined)(inheritedState))
|
|
5342
5245
|
return element.state;
|
|
5343
|
-
if ((0,
|
|
5344
|
-
return (0,
|
|
5345
|
-
} else if ((0,
|
|
5246
|
+
if ((0, import_utils28.is)(inheritedState)("object", "array")) {
|
|
5247
|
+
return (0, import_utils28.deepCloneWithExtnd)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
|
|
5248
|
+
} else if ((0, import_utils28.is)(inheritedState)("string", "number", "boolean")) {
|
|
5346
5249
|
ref.__stateType = typeof inheritedState;
|
|
5347
5250
|
return { value: inheritedState };
|
|
5348
5251
|
}
|
|
@@ -5351,12 +5254,12 @@ var require_inherit = __commonJS({
|
|
|
5351
5254
|
var checkIfInherits = (element) => {
|
|
5352
5255
|
const ref = element.__ref;
|
|
5353
5256
|
const stateKey = ref.__state;
|
|
5354
|
-
if (stateKey && (0,
|
|
5257
|
+
if (stateKey && (0, import_utils28.is)(stateKey)("number", "string", "boolean"))
|
|
5355
5258
|
return true;
|
|
5356
5259
|
return false;
|
|
5357
5260
|
};
|
|
5358
5261
|
var isState2 = function(state) {
|
|
5359
|
-
if (!(0,
|
|
5262
|
+
if (!(0, import_utils28.isObjectLike)(state))
|
|
5360
5263
|
return false;
|
|
5361
5264
|
return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.toggle && state.add && state.apply && state.__element && state.__children;
|
|
5362
5265
|
};
|
|
@@ -5376,9 +5279,9 @@ var require_inherit = __commonJS({
|
|
|
5376
5279
|
}
|
|
5377
5280
|
});
|
|
5378
5281
|
|
|
5379
|
-
//
|
|
5282
|
+
// ../../node_modules/@domql/state/dist/cjs/updateState.js
|
|
5380
5283
|
var require_updateState = __commonJS({
|
|
5381
|
-
"
|
|
5284
|
+
"../../node_modules/@domql/state/dist/cjs/updateState.js"(exports, module2) {
|
|
5382
5285
|
"use strict";
|
|
5383
5286
|
var __defProp2 = Object.defineProperty;
|
|
5384
5287
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5402,10 +5305,10 @@ var require_updateState = __commonJS({
|
|
|
5402
5305
|
updateState: () => updateState
|
|
5403
5306
|
});
|
|
5404
5307
|
module2.exports = __toCommonJS2(updateState_exports);
|
|
5405
|
-
var import_report =
|
|
5406
|
-
var import_event =
|
|
5308
|
+
var import_report = require_cjs3();
|
|
5309
|
+
var import_event = require_cjs5();
|
|
5407
5310
|
var import_ignore = require_ignore();
|
|
5408
|
-
var
|
|
5311
|
+
var import_utils28 = require_cjs();
|
|
5409
5312
|
var import_inherit = require_inherit();
|
|
5410
5313
|
var STATE_UPDATE_OPTIONS = {
|
|
5411
5314
|
overwrite: true,
|
|
@@ -5418,7 +5321,7 @@ var require_updateState = __commonJS({
|
|
|
5418
5321
|
const state = this;
|
|
5419
5322
|
const element = state.__element;
|
|
5420
5323
|
if (!options.updateByState)
|
|
5421
|
-
(0,
|
|
5324
|
+
(0, import_utils28.merge)(options, STATE_UPDATE_OPTIONS);
|
|
5422
5325
|
if (!state.__element)
|
|
5423
5326
|
(0, import_report.report)("ElementOnStateIsNotDefined");
|
|
5424
5327
|
if (options.preventInheritAtCurrentState === true) {
|
|
@@ -5448,10 +5351,10 @@ var require_updateState = __commonJS({
|
|
|
5448
5351
|
const shallow = overwrite === "shallow";
|
|
5449
5352
|
const merge22 = overwrite === "merge";
|
|
5450
5353
|
if (merge22) {
|
|
5451
|
-
(0,
|
|
5354
|
+
(0, import_utils28.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
5452
5355
|
return;
|
|
5453
5356
|
}
|
|
5454
|
-
const overwriteFunc = shallow ?
|
|
5357
|
+
const overwriteFunc = shallow ? import_utils28.overwriteShallow : import_utils28.overwriteDeep;
|
|
5455
5358
|
overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
5456
5359
|
};
|
|
5457
5360
|
var hoistStateUpdate = (state, obj, options) => {
|
|
@@ -5473,7 +5376,7 @@ var require_updateState = __commonJS({
|
|
|
5473
5376
|
const changesValue = (0, import_inherit.createChangesByKey)(stateKey, passedValue);
|
|
5474
5377
|
const targetParent = findGrandParentState || parent.state;
|
|
5475
5378
|
if (options.replace)
|
|
5476
|
-
(0,
|
|
5379
|
+
(0, import_utils28.overwriteDeep)(targetParent, changesValue || value2);
|
|
5477
5380
|
targetParent.update(changesValue, {
|
|
5478
5381
|
execStateFunction: false,
|
|
5479
5382
|
isHoisted: true,
|
|
@@ -5514,9 +5417,9 @@ var require_updateState = __commonJS({
|
|
|
5514
5417
|
}
|
|
5515
5418
|
});
|
|
5516
5419
|
|
|
5517
|
-
//
|
|
5420
|
+
// ../../node_modules/@domql/state/dist/cjs/create.js
|
|
5518
5421
|
var require_create = __commonJS({
|
|
5519
|
-
"
|
|
5422
|
+
"../../node_modules/@domql/state/dist/cjs/create.js"(exports, module2) {
|
|
5520
5423
|
"use strict";
|
|
5521
5424
|
var __defProp2 = Object.defineProperty;
|
|
5522
5425
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5541,8 +5444,8 @@ var require_create = __commonJS({
|
|
|
5541
5444
|
createState: () => createState
|
|
5542
5445
|
});
|
|
5543
5446
|
module2.exports = __toCommonJS2(create_exports);
|
|
5544
|
-
var import_event =
|
|
5545
|
-
var
|
|
5447
|
+
var import_event = require_cjs5();
|
|
5448
|
+
var import_utils28 = require_cjs();
|
|
5546
5449
|
var import_ignore = require_ignore();
|
|
5547
5450
|
var import_methods = require_methods();
|
|
5548
5451
|
var import_updateState = require_updateState();
|
|
@@ -5556,13 +5459,13 @@ var require_create = __commonJS({
|
|
|
5556
5459
|
if (objectizeState === false)
|
|
5557
5460
|
return parent.state || {};
|
|
5558
5461
|
else
|
|
5559
|
-
element.state = (0,
|
|
5462
|
+
element.state = (0, import_utils28.deepCloneWithExtnd)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
|
|
5560
5463
|
const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
|
|
5561
5464
|
if (whatInitReturns === false)
|
|
5562
5465
|
return element.state;
|
|
5563
5466
|
if ((0, import_inherit.checkIfInherits)(element)) {
|
|
5564
5467
|
const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
|
|
5565
|
-
element.state = (0,
|
|
5468
|
+
element.state = (0, import_utils28.isUndefined)(inheritedState) ? {} : inheritedState;
|
|
5566
5469
|
}
|
|
5567
5470
|
const dependentState = applyDependentState(element, element.state);
|
|
5568
5471
|
if (dependentState)
|
|
@@ -5575,17 +5478,17 @@ var require_create = __commonJS({
|
|
|
5575
5478
|
const { __ref: ref } = state;
|
|
5576
5479
|
if (!ref)
|
|
5577
5480
|
return;
|
|
5578
|
-
const dependentState = (0,
|
|
5481
|
+
const dependentState = (0, import_utils28.deepCloneWithExtnd)(ref, import_ignore.IGNORE_STATE_PARAMS);
|
|
5579
5482
|
const newDepends = { [element.key]: dependentState };
|
|
5580
|
-
ref.__depends = (0,
|
|
5483
|
+
ref.__depends = (0, import_utils28.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
|
|
5581
5484
|
return dependentState;
|
|
5582
5485
|
};
|
|
5583
5486
|
var checkForTypes = (element) => {
|
|
5584
5487
|
const { state, __ref: ref } = element;
|
|
5585
|
-
if ((0,
|
|
5488
|
+
if ((0, import_utils28.isFunction)(state)) {
|
|
5586
5489
|
ref.__state = state;
|
|
5587
|
-
return (0,
|
|
5588
|
-
} else if ((0,
|
|
5490
|
+
return (0, import_utils28.exec)(state, element);
|
|
5491
|
+
} else if ((0, import_utils28.is)(state)("string", "number")) {
|
|
5589
5492
|
ref.__state = state;
|
|
5590
5493
|
return {};
|
|
5591
5494
|
} else if (state === true) {
|
|
@@ -5633,7 +5536,7 @@ var require_create = __commonJS({
|
|
|
5633
5536
|
__children: {},
|
|
5634
5537
|
__root: ref.__root ? ref.__root.state : state
|
|
5635
5538
|
};
|
|
5636
|
-
if ((0,
|
|
5539
|
+
if ((0, import_utils28.isArray)(state)) {
|
|
5637
5540
|
addProtoToArray(state, proto);
|
|
5638
5541
|
} else {
|
|
5639
5542
|
Object.setPrototypeOf(state, proto);
|
|
@@ -5645,9 +5548,9 @@ var require_create = __commonJS({
|
|
|
5645
5548
|
}
|
|
5646
5549
|
});
|
|
5647
5550
|
|
|
5648
|
-
//
|
|
5649
|
-
var
|
|
5650
|
-
"
|
|
5551
|
+
// ../../node_modules/@domql/state/dist/cjs/index.js
|
|
5552
|
+
var require_cjs6 = __commonJS({
|
|
5553
|
+
"../../node_modules/@domql/state/dist/cjs/index.js"(exports, module2) {
|
|
5651
5554
|
"use strict";
|
|
5652
5555
|
var __defProp2 = Object.defineProperty;
|
|
5653
5556
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5674,7 +5577,7 @@ var require_cjs7 = __commonJS({
|
|
|
5674
5577
|
});
|
|
5675
5578
|
|
|
5676
5579
|
// ../../node_modules/@domql/globals/dist/cjs/index.js
|
|
5677
|
-
var
|
|
5580
|
+
var require_cjs7 = __commonJS({
|
|
5678
5581
|
"../../node_modules/@domql/globals/dist/cjs/index.js"(exports, module2) {
|
|
5679
5582
|
"use strict";
|
|
5680
5583
|
var __defProp2 = Object.defineProperty;
|
|
@@ -5710,7 +5613,7 @@ var require_cjs8 = __commonJS({
|
|
|
5710
5613
|
});
|
|
5711
5614
|
|
|
5712
5615
|
// ../fetch/dist/cjs/index.js
|
|
5713
|
-
var
|
|
5616
|
+
var require_cjs8 = __commonJS({
|
|
5714
5617
|
"../fetch/dist/cjs/index.js"(exports, module2) {
|
|
5715
5618
|
"use strict";
|
|
5716
5619
|
var __create2 = Object.create;
|
|
@@ -5749,8 +5652,8 @@ var require_cjs9 = __commonJS({
|
|
|
5749
5652
|
});
|
|
5750
5653
|
module2.exports = __toCommonJS2(fetch_exports);
|
|
5751
5654
|
var utils2 = __toESM2(require_cjs(), 1);
|
|
5752
|
-
var globals2 = __toESM2(
|
|
5753
|
-
var { overwriteDeep, deepDestringify } = utils2;
|
|
5655
|
+
var globals2 = __toESM2(require_cjs7(), 1);
|
|
5656
|
+
var { overwriteDeep: overwriteDeep2, deepDestringify } = utils2;
|
|
5754
5657
|
var { window: window5 } = globals2;
|
|
5755
5658
|
var IS_DEVELOPMENT = window5 && window5.location ? window5.location.host.includes("dev.") || window5.location.host.includes("symbo.ls") : true;
|
|
5756
5659
|
var SERVER_URL = IS_DEVELOPMENT ? "http://localhost:13335/" : "https://api.symbols.app/";
|
|
@@ -5786,14 +5689,14 @@ var require_cjs9 = __commonJS({
|
|
|
5786
5689
|
console.log(options);
|
|
5787
5690
|
if (utils2.isArray(editor.serviceRoute)) {
|
|
5788
5691
|
editor.serviceRoute.forEach((route) => {
|
|
5789
|
-
|
|
5692
|
+
overwriteDeep2(options[route], evalData[route.toLowerCase()]);
|
|
5790
5693
|
});
|
|
5791
5694
|
} else {
|
|
5792
|
-
|
|
5695
|
+
overwriteDeep2(options[editor.serviceRoute], evalData);
|
|
5793
5696
|
}
|
|
5794
5697
|
} else {
|
|
5795
5698
|
["state", "designSystem", "components", "snippets", "pages"].forEach((key2) => {
|
|
5796
|
-
|
|
5699
|
+
overwriteDeep2(options[key2], evalData[key2.toLowerCase()]);
|
|
5797
5700
|
});
|
|
5798
5701
|
}
|
|
5799
5702
|
}
|
|
@@ -5810,9 +5713,9 @@ var require_cjs9 = __commonJS({
|
|
|
5810
5713
|
}
|
|
5811
5714
|
});
|
|
5812
5715
|
|
|
5813
|
-
//
|
|
5716
|
+
// ../../node_modules/@domql/element/dist/cjs/tree.js
|
|
5814
5717
|
var require_tree = __commonJS({
|
|
5815
|
-
"
|
|
5718
|
+
"../../node_modules/@domql/element/dist/cjs/tree.js"(exports, module2) {
|
|
5816
5719
|
"use strict";
|
|
5817
5720
|
var __defProp2 = Object.defineProperty;
|
|
5818
5721
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5837,19 +5740,19 @@ var require_tree = __commonJS({
|
|
|
5837
5740
|
TREE: () => TREE
|
|
5838
5741
|
});
|
|
5839
5742
|
module2.exports = __toCommonJS2(tree_exports);
|
|
5840
|
-
var
|
|
5841
|
-
var import_report =
|
|
5743
|
+
var import_utils28 = require_cjs();
|
|
5744
|
+
var import_report = require_cjs3();
|
|
5842
5745
|
var ROOT = {
|
|
5843
5746
|
key: ":root",
|
|
5844
|
-
node:
|
|
5747
|
+
node: import_utils28.document ? import_utils28.document.body : (0, import_report.report)("DocumentNotDefined", import_utils28.document)
|
|
5845
5748
|
};
|
|
5846
5749
|
var TREE = ROOT;
|
|
5847
5750
|
}
|
|
5848
5751
|
});
|
|
5849
5752
|
|
|
5850
|
-
//
|
|
5753
|
+
// ../../node_modules/@domql/render/dist/cjs/create.js
|
|
5851
5754
|
var require_create2 = __commonJS({
|
|
5852
|
-
"
|
|
5755
|
+
"../../node_modules/@domql/render/dist/cjs/create.js"(exports, module2) {
|
|
5853
5756
|
"use strict";
|
|
5854
5757
|
var __defProp2 = Object.defineProperty;
|
|
5855
5758
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5878,9 +5781,9 @@ var require_create2 = __commonJS({
|
|
|
5878
5781
|
}
|
|
5879
5782
|
});
|
|
5880
5783
|
|
|
5881
|
-
//
|
|
5784
|
+
// ../../node_modules/@domql/render/dist/cjs/cache.js
|
|
5882
5785
|
var require_cache = __commonJS({
|
|
5883
|
-
"
|
|
5786
|
+
"../../node_modules/@domql/render/dist/cjs/cache.js"(exports, module2) {
|
|
5884
5787
|
"use strict";
|
|
5885
5788
|
var __defProp2 = Object.defineProperty;
|
|
5886
5789
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5906,9 +5809,9 @@ var require_cache = __commonJS({
|
|
|
5906
5809
|
detectTag: () => detectTag
|
|
5907
5810
|
});
|
|
5908
5811
|
module2.exports = __toCommonJS2(cache_exports);
|
|
5909
|
-
var import_report =
|
|
5910
|
-
var import_event =
|
|
5911
|
-
var
|
|
5812
|
+
var import_report = require_cjs3();
|
|
5813
|
+
var import_event = require_cjs5();
|
|
5814
|
+
var import_utils28 = require_cjs();
|
|
5912
5815
|
var cache2 = {};
|
|
5913
5816
|
var createHTMLNode = (element) => {
|
|
5914
5817
|
const { tag } = element;
|
|
@@ -5927,20 +5830,20 @@ var require_cache = __commonJS({
|
|
|
5927
5830
|
};
|
|
5928
5831
|
var detectTag = (element) => {
|
|
5929
5832
|
let { tag, key, props: props4 } = element;
|
|
5930
|
-
tag = (0,
|
|
5833
|
+
tag = (0, import_utils28.exec)(tag, element);
|
|
5931
5834
|
if (tag === true)
|
|
5932
5835
|
tag = key;
|
|
5933
|
-
if ((0,
|
|
5934
|
-
const tagExists = (0,
|
|
5836
|
+
if ((0, import_utils28.isObject)(props4) && (0, import_utils28.isString)(props4.tag)) {
|
|
5837
|
+
const tagExists = (0, import_utils28.isValidHtmlTag)(props4.tag);
|
|
5935
5838
|
if (tagExists)
|
|
5936
5839
|
return props4.tag;
|
|
5937
5840
|
}
|
|
5938
|
-
if ((0,
|
|
5939
|
-
const tagExists = (0,
|
|
5841
|
+
if ((0, import_utils28.isString)(tag)) {
|
|
5842
|
+
const tagExists = (0, import_utils28.isValidHtmlTag)(tag);
|
|
5940
5843
|
if (tagExists)
|
|
5941
5844
|
return tag;
|
|
5942
5845
|
} else {
|
|
5943
|
-
const isKeyATag = (0,
|
|
5846
|
+
const isKeyATag = (0, import_utils28.isValidHtmlTag)(key);
|
|
5944
5847
|
if (isKeyATag)
|
|
5945
5848
|
return key;
|
|
5946
5849
|
}
|
|
@@ -5962,9 +5865,9 @@ var require_cache = __commonJS({
|
|
|
5962
5865
|
}
|
|
5963
5866
|
});
|
|
5964
5867
|
|
|
5965
|
-
//
|
|
5868
|
+
// ../../node_modules/@domql/render/dist/cjs/append.js
|
|
5966
5869
|
var require_append = __commonJS({
|
|
5967
|
-
"
|
|
5870
|
+
"../../node_modules/@domql/render/dist/cjs/append.js"(exports, module2) {
|
|
5968
5871
|
"use strict";
|
|
5969
5872
|
var __defProp2 = Object.defineProperty;
|
|
5970
5873
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6021,9 +5924,9 @@ var require_append = __commonJS({
|
|
|
6021
5924
|
}
|
|
6022
5925
|
});
|
|
6023
5926
|
|
|
6024
|
-
//
|
|
6025
|
-
var
|
|
6026
|
-
"
|
|
5927
|
+
// ../../node_modules/@domql/render/dist/cjs/index.js
|
|
5928
|
+
var require_cjs9 = __commonJS({
|
|
5929
|
+
"../../node_modules/@domql/render/dist/cjs/index.js"(exports, module2) {
|
|
6027
5930
|
"use strict";
|
|
6028
5931
|
var __defProp2 = Object.defineProperty;
|
|
6029
5932
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6047,9 +5950,9 @@ var require_cjs10 = __commonJS({
|
|
|
6047
5950
|
}
|
|
6048
5951
|
});
|
|
6049
5952
|
|
|
6050
|
-
//
|
|
5953
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/attr.js
|
|
6051
5954
|
var require_attr = __commonJS({
|
|
6052
|
-
"
|
|
5955
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/attr.js"(exports, module2) {
|
|
6053
5956
|
"use strict";
|
|
6054
5957
|
var __defProp2 = Object.defineProperty;
|
|
6055
5958
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6073,16 +5976,16 @@ var require_attr = __commonJS({
|
|
|
6073
5976
|
default: () => attr_default
|
|
6074
5977
|
});
|
|
6075
5978
|
module2.exports = __toCommonJS2(attr_exports);
|
|
6076
|
-
var
|
|
6077
|
-
var import_report =
|
|
5979
|
+
var import_utils28 = require_cjs();
|
|
5980
|
+
var import_report = require_cjs3();
|
|
6078
5981
|
var attr_default = (params, element, node2) => {
|
|
6079
5982
|
const { __ref } = element;
|
|
6080
5983
|
const { __attr } = __ref;
|
|
6081
|
-
if ((0,
|
|
5984
|
+
if ((0, import_utils28.isNot)("object"))
|
|
6082
5985
|
(0, import_report.report)("HTMLInvalidAttr", params);
|
|
6083
5986
|
if (params) {
|
|
6084
5987
|
for (const attr in params) {
|
|
6085
|
-
const val = (0,
|
|
5988
|
+
const val = (0, import_utils28.exec)(params[attr], element);
|
|
6086
5989
|
if (val && node2.setAttribute)
|
|
6087
5990
|
node2.setAttribute(attr, val);
|
|
6088
5991
|
else if (node2.removeAttribute)
|
|
@@ -6095,9 +5998,9 @@ var require_attr = __commonJS({
|
|
|
6095
5998
|
}
|
|
6096
5999
|
});
|
|
6097
6000
|
|
|
6098
|
-
//
|
|
6001
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/classList.js
|
|
6099
6002
|
var require_classList = __commonJS({
|
|
6100
|
-
"
|
|
6003
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/classList.js"(exports, module2) {
|
|
6101
6004
|
"use strict";
|
|
6102
6005
|
var __defProp2 = Object.defineProperty;
|
|
6103
6006
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6125,7 +6028,7 @@ var require_classList = __commonJS({
|
|
|
6125
6028
|
default: () => classList_default
|
|
6126
6029
|
});
|
|
6127
6030
|
module2.exports = __toCommonJS2(classList_exports);
|
|
6128
|
-
var
|
|
6031
|
+
var import_utils28 = require_cjs();
|
|
6129
6032
|
var assignKeyAsClassname = (element) => {
|
|
6130
6033
|
const { key } = element;
|
|
6131
6034
|
if (element.class === true)
|
|
@@ -6143,7 +6046,7 @@ var require_classList = __commonJS({
|
|
|
6143
6046
|
else if (typeof param === "string")
|
|
6144
6047
|
className += ` ${param}`;
|
|
6145
6048
|
else if (typeof param === "function") {
|
|
6146
|
-
className += ` ${(0,
|
|
6049
|
+
className += ` ${(0, import_utils28.exec)(param, element)}`;
|
|
6147
6050
|
}
|
|
6148
6051
|
}
|
|
6149
6052
|
return className;
|
|
@@ -6154,9 +6057,9 @@ var require_classList = __commonJS({
|
|
|
6154
6057
|
const { key } = element;
|
|
6155
6058
|
if (params === true)
|
|
6156
6059
|
params = element.class = { key };
|
|
6157
|
-
if ((0,
|
|
6060
|
+
if ((0, import_utils28.isString)(params))
|
|
6158
6061
|
params = element.class = { default: params };
|
|
6159
|
-
if ((0,
|
|
6062
|
+
if ((0, import_utils28.isObject)(params))
|
|
6160
6063
|
params = classify2(params, element);
|
|
6161
6064
|
const className = params.replace(/\s+/g, " ").trim();
|
|
6162
6065
|
if (element.ref)
|
|
@@ -6174,9 +6077,9 @@ var require_classList = __commonJS({
|
|
|
6174
6077
|
}
|
|
6175
6078
|
});
|
|
6176
6079
|
|
|
6177
|
-
//
|
|
6080
|
+
// ../../node_modules/@domql/element/dist/cjs/cache/options.js
|
|
6178
6081
|
var require_options = __commonJS({
|
|
6179
|
-
"
|
|
6082
|
+
"../../node_modules/@domql/element/dist/cjs/cache/options.js"(exports, module2) {
|
|
6180
6083
|
"use strict";
|
|
6181
6084
|
var __defProp2 = Object.defineProperty;
|
|
6182
6085
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6204,9 +6107,9 @@ var require_options = __commonJS({
|
|
|
6204
6107
|
}
|
|
6205
6108
|
});
|
|
6206
6109
|
|
|
6207
|
-
//
|
|
6110
|
+
// ../../node_modules/@domql/element/dist/cjs/set.js
|
|
6208
6111
|
var require_set = __commonJS({
|
|
6209
|
-
"
|
|
6112
|
+
"../../node_modules/@domql/element/dist/cjs/set.js"(exports, module2) {
|
|
6210
6113
|
"use strict";
|
|
6211
6114
|
var __create2 = Object.create;
|
|
6212
6115
|
var __defProp2 = Object.defineProperty;
|
|
@@ -6240,7 +6143,7 @@ var require_set = __commonJS({
|
|
|
6240
6143
|
default: () => set_default
|
|
6241
6144
|
});
|
|
6242
6145
|
module2.exports = __toCommonJS2(set_exports);
|
|
6243
|
-
var
|
|
6146
|
+
var import_utils28 = require_cjs();
|
|
6244
6147
|
var import_create = __toESM2(require_create4(), 1);
|
|
6245
6148
|
var import_options3 = __toESM2(require_options(), 1);
|
|
6246
6149
|
var import_mixins = require_mixins();
|
|
@@ -6252,7 +6155,7 @@ var require_set = __commonJS({
|
|
|
6252
6155
|
const lazyLoad = element.props && element.props.lazyLoad;
|
|
6253
6156
|
if (options.preventContentUpdate === true)
|
|
6254
6157
|
return;
|
|
6255
|
-
if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0,
|
|
6158
|
+
if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils28.deepContains)(params, content)) {
|
|
6256
6159
|
return content.update();
|
|
6257
6160
|
}
|
|
6258
6161
|
const setAsync = () => {
|
|
@@ -6279,9 +6182,9 @@ var require_set = __commonJS({
|
|
|
6279
6182
|
}
|
|
6280
6183
|
});
|
|
6281
6184
|
|
|
6282
|
-
//
|
|
6185
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/content.js
|
|
6283
6186
|
var require_content = __commonJS({
|
|
6284
|
-
"
|
|
6187
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/content.js"(exports, module2) {
|
|
6285
6188
|
"use strict";
|
|
6286
6189
|
var __create2 = Object.create;
|
|
6287
6190
|
var __defProp2 = Object.defineProperty;
|
|
@@ -6318,7 +6221,7 @@ var require_content = __commonJS({
|
|
|
6318
6221
|
updateContent: () => updateContent
|
|
6319
6222
|
});
|
|
6320
6223
|
module2.exports = __toCommonJS2(content_exports);
|
|
6321
|
-
var
|
|
6224
|
+
var import_utils28 = require_cjs();
|
|
6322
6225
|
var import_set = __toESM2(require_set(), 1);
|
|
6323
6226
|
var updateContent = function(params, options) {
|
|
6324
6227
|
const element = this;
|
|
@@ -6341,7 +6244,7 @@ var require_content = __commonJS({
|
|
|
6341
6244
|
if (__cached && __cached.content) {
|
|
6342
6245
|
if (__cached.content.tag === "fragment")
|
|
6343
6246
|
__cached.content.parent.node.innerHTML = "";
|
|
6344
|
-
else if (__cached.content && (0,
|
|
6247
|
+
else if (__cached.content && (0, import_utils28.isFunction)(__cached.content.remove))
|
|
6345
6248
|
__cached.content.remove();
|
|
6346
6249
|
}
|
|
6347
6250
|
delete element.content;
|
|
@@ -6360,9 +6263,9 @@ var require_content = __commonJS({
|
|
|
6360
6263
|
}
|
|
6361
6264
|
});
|
|
6362
6265
|
|
|
6363
|
-
//
|
|
6266
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/data.js
|
|
6364
6267
|
var require_data = __commonJS({
|
|
6365
|
-
"
|
|
6268
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/data.js"(exports, module2) {
|
|
6366
6269
|
"use strict";
|
|
6367
6270
|
var __defProp2 = Object.defineProperty;
|
|
6368
6271
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6386,15 +6289,15 @@ var require_data = __commonJS({
|
|
|
6386
6289
|
default: () => data_default
|
|
6387
6290
|
});
|
|
6388
6291
|
module2.exports = __toCommonJS2(data_exports);
|
|
6389
|
-
var
|
|
6390
|
-
var import_report =
|
|
6292
|
+
var import_utils28 = require_cjs();
|
|
6293
|
+
var import_report = require_cjs3();
|
|
6391
6294
|
var data_default = (params, element, node2) => {
|
|
6392
6295
|
if (params && params.showOnNode) {
|
|
6393
|
-
if (!(0,
|
|
6296
|
+
if (!(0, import_utils28.isObject)(params))
|
|
6394
6297
|
(0, import_report.report)("HTMLInvalidData", params);
|
|
6395
6298
|
for (const dataset in params) {
|
|
6396
6299
|
if (dataset !== "showOnNode") {
|
|
6397
|
-
node2.dataset[dataset] = (0,
|
|
6300
|
+
node2.dataset[dataset] = (0, import_utils28.exec)(params[dataset], element);
|
|
6398
6301
|
}
|
|
6399
6302
|
}
|
|
6400
6303
|
}
|
|
@@ -6402,9 +6305,9 @@ var require_data = __commonJS({
|
|
|
6402
6305
|
}
|
|
6403
6306
|
});
|
|
6404
6307
|
|
|
6405
|
-
//
|
|
6308
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/html.js
|
|
6406
6309
|
var require_html = __commonJS({
|
|
6407
|
-
"
|
|
6310
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/html.js"(exports, module2) {
|
|
6408
6311
|
"use strict";
|
|
6409
6312
|
var __defProp2 = Object.defineProperty;
|
|
6410
6313
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6428,9 +6331,9 @@ var require_html = __commonJS({
|
|
|
6428
6331
|
default: () => html_default
|
|
6429
6332
|
});
|
|
6430
6333
|
module2.exports = __toCommonJS2(html_exports);
|
|
6431
|
-
var
|
|
6334
|
+
var import_utils28 = require_cjs();
|
|
6432
6335
|
var html_default = (param, element, node2) => {
|
|
6433
|
-
const prop = (0,
|
|
6336
|
+
const prop = (0, import_utils28.exec)(param, element);
|
|
6434
6337
|
const { __ref } = element;
|
|
6435
6338
|
if (prop !== __ref.__html) {
|
|
6436
6339
|
if (node2.nodeName === "SVG")
|
|
@@ -6443,9 +6346,9 @@ var require_html = __commonJS({
|
|
|
6443
6346
|
}
|
|
6444
6347
|
});
|
|
6445
6348
|
|
|
6446
|
-
//
|
|
6349
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/style.js
|
|
6447
6350
|
var require_style = __commonJS({
|
|
6448
|
-
"
|
|
6351
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/style.js"(exports, module2) {
|
|
6449
6352
|
"use strict";
|
|
6450
6353
|
var __defProp2 = Object.defineProperty;
|
|
6451
6354
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6469,12 +6372,12 @@ var require_style = __commonJS({
|
|
|
6469
6372
|
default: () => style_default2
|
|
6470
6373
|
});
|
|
6471
6374
|
module2.exports = __toCommonJS2(style_exports);
|
|
6472
|
-
var
|
|
6473
|
-
var import_report =
|
|
6375
|
+
var import_utils28 = require_cjs();
|
|
6376
|
+
var import_report = require_cjs3();
|
|
6474
6377
|
var style_default2 = (params, element, node2) => {
|
|
6475
6378
|
if (params) {
|
|
6476
|
-
if ((0,
|
|
6477
|
-
(0,
|
|
6379
|
+
if ((0, import_utils28.isObject)(params))
|
|
6380
|
+
(0, import_utils28.map)(node2.style, params, element);
|
|
6478
6381
|
else
|
|
6479
6382
|
(0, import_report.report)("HTMLInvalidStyles", params);
|
|
6480
6383
|
}
|
|
@@ -6482,9 +6385,9 @@ var require_style = __commonJS({
|
|
|
6482
6385
|
}
|
|
6483
6386
|
});
|
|
6484
6387
|
|
|
6485
|
-
//
|
|
6388
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/text.js
|
|
6486
6389
|
var require_text = __commonJS({
|
|
6487
|
-
"
|
|
6390
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/text.js"(exports, module2) {
|
|
6488
6391
|
"use strict";
|
|
6489
6392
|
var __defProp2 = Object.defineProperty;
|
|
6490
6393
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6508,12 +6411,12 @@ var require_text = __commonJS({
|
|
|
6508
6411
|
default: () => text_default
|
|
6509
6412
|
});
|
|
6510
6413
|
module2.exports = __toCommonJS2(text_exports);
|
|
6511
|
-
var import__ =
|
|
6512
|
-
var
|
|
6414
|
+
var import__ = require_cjs11();
|
|
6415
|
+
var import_utils28 = require_cjs();
|
|
6513
6416
|
var text_default = (param, element, node2) => {
|
|
6514
|
-
let prop = (0,
|
|
6515
|
-
if ((0,
|
|
6516
|
-
prop = (0,
|
|
6417
|
+
let prop = (0, import_utils28.exec)(param, element);
|
|
6418
|
+
if ((0, import_utils28.isString)(prop) && prop.includes("{{")) {
|
|
6419
|
+
prop = (0, import_utils28.replaceLiteralsWithObjectFields)(prop, element.state);
|
|
6517
6420
|
}
|
|
6518
6421
|
if (element.tag === "string") {
|
|
6519
6422
|
node2.nodeValue = prop;
|
|
@@ -6531,9 +6434,9 @@ var require_text = __commonJS({
|
|
|
6531
6434
|
}
|
|
6532
6435
|
});
|
|
6533
6436
|
|
|
6534
|
-
//
|
|
6437
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/state.js
|
|
6535
6438
|
var require_state = __commonJS({
|
|
6536
|
-
"
|
|
6439
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/state.js"(exports, module2) {
|
|
6537
6440
|
"use strict";
|
|
6538
6441
|
var __defProp2 = Object.defineProperty;
|
|
6539
6442
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6558,11 +6461,11 @@ var require_state = __commonJS({
|
|
|
6558
6461
|
state: () => state
|
|
6559
6462
|
});
|
|
6560
6463
|
module2.exports = __toCommonJS2(state_exports);
|
|
6561
|
-
var import_state2 =
|
|
6562
|
-
var
|
|
6464
|
+
var import_state2 = require_cjs6();
|
|
6465
|
+
var import_utils28 = require_cjs();
|
|
6563
6466
|
var state = (params, element, node2) => {
|
|
6564
|
-
const state2 = (0,
|
|
6565
|
-
if ((0,
|
|
6467
|
+
const state2 = (0, import_utils28.exec)(params, element);
|
|
6468
|
+
if ((0, import_utils28.isObject)(state2)) {
|
|
6566
6469
|
for (const param in state2) {
|
|
6567
6470
|
if (import_state2.IGNORE_STATE_PARAMS.includes(param))
|
|
6568
6471
|
continue;
|
|
@@ -6576,9 +6479,9 @@ var require_state = __commonJS({
|
|
|
6576
6479
|
}
|
|
6577
6480
|
});
|
|
6578
6481
|
|
|
6579
|
-
//
|
|
6482
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/scope.js
|
|
6580
6483
|
var require_scope = __commonJS({
|
|
6581
|
-
"
|
|
6484
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/scope.js"(exports, module2) {
|
|
6582
6485
|
"use strict";
|
|
6583
6486
|
var __defProp2 = Object.defineProperty;
|
|
6584
6487
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6602,13 +6505,13 @@ var require_scope = __commonJS({
|
|
|
6602
6505
|
default: () => scope_default
|
|
6603
6506
|
});
|
|
6604
6507
|
module2.exports = __toCommonJS2(scope_exports);
|
|
6605
|
-
var
|
|
6508
|
+
var import_utils28 = require_cjs();
|
|
6606
6509
|
var scope_default = (params, element, node2) => {
|
|
6607
|
-
if (!(0,
|
|
6510
|
+
if (!(0, import_utils28.isObject)(params))
|
|
6608
6511
|
return;
|
|
6609
6512
|
for (const scopeItem in params) {
|
|
6610
6513
|
const value2 = params[scopeItem];
|
|
6611
|
-
if ((0,
|
|
6514
|
+
if ((0, import_utils28.isFunction)(value2)) {
|
|
6612
6515
|
element.scope[scopeItem] = value2.bind(element);
|
|
6613
6516
|
} else {
|
|
6614
6517
|
element.scope[scopeItem] = value2;
|
|
@@ -6618,9 +6521,9 @@ var require_scope = __commonJS({
|
|
|
6618
6521
|
}
|
|
6619
6522
|
});
|
|
6620
6523
|
|
|
6621
|
-
//
|
|
6524
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/registry.js
|
|
6622
6525
|
var require_registry = __commonJS({
|
|
6623
|
-
"
|
|
6526
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/registry.js"(exports, module2) {
|
|
6624
6527
|
"use strict";
|
|
6625
6528
|
var __defProp2 = Object.defineProperty;
|
|
6626
6529
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6716,9 +6619,9 @@ var require_registry = __commonJS({
|
|
|
6716
6619
|
}
|
|
6717
6620
|
});
|
|
6718
6621
|
|
|
6719
|
-
//
|
|
6622
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/index.js
|
|
6720
6623
|
var require_mixins = __commonJS({
|
|
6721
|
-
"
|
|
6624
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/index.js"(exports, module2) {
|
|
6722
6625
|
"use strict";
|
|
6723
6626
|
var __create2 = Object.create;
|
|
6724
6627
|
var __defProp2 = Object.defineProperty;
|
|
@@ -6776,9 +6679,9 @@ var require_mixins = __commonJS({
|
|
|
6776
6679
|
}
|
|
6777
6680
|
});
|
|
6778
6681
|
|
|
6779
|
-
//
|
|
6682
|
+
// ../../node_modules/@domql/element/dist/cjs/methods/index.js
|
|
6780
6683
|
var require_methods2 = __commonJS({
|
|
6781
|
-
"
|
|
6684
|
+
"../../node_modules/@domql/element/dist/cjs/methods/index.js"(exports, module2) {
|
|
6782
6685
|
"use strict";
|
|
6783
6686
|
var __defProp2 = Object.defineProperty;
|
|
6784
6687
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6815,7 +6718,7 @@ var require_methods2 = __commonJS({
|
|
|
6815
6718
|
spotByPath: () => spotByPath
|
|
6816
6719
|
});
|
|
6817
6720
|
module2.exports = __toCommonJS2(methods_exports);
|
|
6818
|
-
var
|
|
6721
|
+
var import_utils28 = require_cjs();
|
|
6819
6722
|
var import_tree = require_tree();
|
|
6820
6723
|
var import_mixins = require_mixins();
|
|
6821
6724
|
var spotByPath = function(path) {
|
|
@@ -6848,9 +6751,9 @@ var require_methods2 = __commonJS({
|
|
|
6848
6751
|
};
|
|
6849
6752
|
var remove = function(params) {
|
|
6850
6753
|
const element = this;
|
|
6851
|
-
if ((0,
|
|
6754
|
+
if ((0, import_utils28.isFunction)(element.node.remove))
|
|
6852
6755
|
element.node.remove();
|
|
6853
|
-
else if (!(0,
|
|
6756
|
+
else if (!(0, import_utils28.isProduction)()) {
|
|
6854
6757
|
console.warn("This item cant be removed");
|
|
6855
6758
|
element.log();
|
|
6856
6759
|
}
|
|
@@ -6890,12 +6793,12 @@ var require_methods2 = __commonJS({
|
|
|
6890
6793
|
if (v === "state") {
|
|
6891
6794
|
if (element.__ref && element.__ref.__hasRootState)
|
|
6892
6795
|
return;
|
|
6893
|
-
if ((0,
|
|
6796
|
+
if ((0, import_utils28.isFunction)(val && val.parse))
|
|
6894
6797
|
val = val.parse();
|
|
6895
6798
|
} else if (v === "props") {
|
|
6896
6799
|
const { __element, update, ...props4 } = element[v];
|
|
6897
6800
|
obj[v] = props4;
|
|
6898
|
-
} else if ((0,
|
|
6801
|
+
} else if ((0, import_utils28.isDefined)(val))
|
|
6899
6802
|
obj[v] = val;
|
|
6900
6803
|
});
|
|
6901
6804
|
return obj;
|
|
@@ -6906,7 +6809,7 @@ var require_methods2 = __commonJS({
|
|
|
6906
6809
|
for (const v in obj) {
|
|
6907
6810
|
if (excl.includes(v))
|
|
6908
6811
|
return;
|
|
6909
|
-
if ((0,
|
|
6812
|
+
if ((0, import_utils28.isObjectLike)(obj[v])) {
|
|
6910
6813
|
obj[v] = parseDeep.call(obj[v], excl);
|
|
6911
6814
|
}
|
|
6912
6815
|
}
|
|
@@ -6968,9 +6871,9 @@ var require_methods2 = __commonJS({
|
|
|
6968
6871
|
}
|
|
6969
6872
|
});
|
|
6970
6873
|
|
|
6971
|
-
//
|
|
6874
|
+
// ../../node_modules/@domql/element/dist/cjs/props/ignore.js
|
|
6972
6875
|
var require_ignore2 = __commonJS({
|
|
6973
|
-
"
|
|
6876
|
+
"../../node_modules/@domql/element/dist/cjs/props/ignore.js"(exports, module2) {
|
|
6974
6877
|
"use strict";
|
|
6975
6878
|
var __defProp2 = Object.defineProperty;
|
|
6976
6879
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6998,9 +6901,9 @@ var require_ignore2 = __commonJS({
|
|
|
6998
6901
|
}
|
|
6999
6902
|
});
|
|
7000
6903
|
|
|
7001
|
-
//
|
|
6904
|
+
// ../../node_modules/@domql/element/dist/cjs/props/inherit.js
|
|
7002
6905
|
var require_inherit2 = __commonJS({
|
|
7003
|
-
"
|
|
6906
|
+
"../../node_modules/@domql/element/dist/cjs/props/inherit.js"(exports, module2) {
|
|
7004
6907
|
"use strict";
|
|
7005
6908
|
var __defProp2 = Object.defineProperty;
|
|
7006
6909
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -7024,18 +6927,18 @@ var require_inherit2 = __commonJS({
|
|
|
7024
6927
|
inheritParentProps: () => inheritParentProps
|
|
7025
6928
|
});
|
|
7026
6929
|
module2.exports = __toCommonJS2(inherit_exports);
|
|
7027
|
-
var
|
|
6930
|
+
var import_utils28 = require_cjs();
|
|
7028
6931
|
var objectizeStringProperty = (propValue) => {
|
|
7029
|
-
if ((0,
|
|
6932
|
+
if ((0, import_utils28.is)(propValue)("string", "number")) {
|
|
7030
6933
|
return { inheritedString: propValue };
|
|
7031
6934
|
}
|
|
7032
6935
|
return propValue;
|
|
7033
6936
|
};
|
|
7034
6937
|
var inheritParentProps = (element, parent) => {
|
|
7035
6938
|
let propsStack = [];
|
|
7036
|
-
const parentProps = (0,
|
|
6939
|
+
const parentProps = (0, import_utils28.exec)(parent, parent.state).props;
|
|
7037
6940
|
const matchParent = parent.props && parentProps[element.key];
|
|
7038
|
-
const matchParentIsString = (0,
|
|
6941
|
+
const matchParentIsString = (0, import_utils28.isString)(matchParent);
|
|
7039
6942
|
const matchParentChildProps = parentProps && parentProps.childProps;
|
|
7040
6943
|
if (matchParent) {
|
|
7041
6944
|
if (matchParentIsString) {
|
|
@@ -7056,9 +6959,9 @@ var require_inherit2 = __commonJS({
|
|
|
7056
6959
|
}
|
|
7057
6960
|
});
|
|
7058
6961
|
|
|
7059
|
-
//
|
|
6962
|
+
// ../../node_modules/@domql/element/dist/cjs/props/create.js
|
|
7060
6963
|
var require_create3 = __commonJS({
|
|
7061
|
-
"
|
|
6964
|
+
"../../node_modules/@domql/element/dist/cjs/props/create.js"(exports, module2) {
|
|
7062
6965
|
"use strict";
|
|
7063
6966
|
var __defProp2 = Object.defineProperty;
|
|
7064
6967
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -7083,19 +6986,19 @@ var require_create3 = __commonJS({
|
|
|
7083
6986
|
syncProps: () => syncProps
|
|
7084
6987
|
});
|
|
7085
6988
|
module2.exports = __toCommonJS2(create_exports);
|
|
7086
|
-
var
|
|
6989
|
+
var import_utils28 = require_cjs();
|
|
7087
6990
|
var import_ignore = require_ignore2();
|
|
7088
6991
|
var import_inherit = require_inherit2();
|
|
7089
6992
|
var createPropsStack = (element, parent) => {
|
|
7090
6993
|
const { props: props4, __ref } = element;
|
|
7091
6994
|
const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
|
|
7092
|
-
if ((0,
|
|
6995
|
+
if ((0, import_utils28.isObject)(props4))
|
|
7093
6996
|
propsStack.push(props4);
|
|
7094
6997
|
else if (props4 === "inherit" && parent.props)
|
|
7095
6998
|
propsStack.push(parent.props);
|
|
7096
6999
|
else if (props4)
|
|
7097
7000
|
propsStack.push(props4);
|
|
7098
|
-
if ((0,
|
|
7001
|
+
if ((0, import_utils28.isArray)(__ref.__extend)) {
|
|
7099
7002
|
__ref.__extend.forEach((extend) => {
|
|
7100
7003
|
if (extend.props && extend.props !== props4)
|
|
7101
7004
|
propsStack.push(extend.props);
|
|
@@ -7110,10 +7013,10 @@ var require_create3 = __commonJS({
|
|
|
7110
7013
|
props4.forEach((v) => {
|
|
7111
7014
|
if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
|
|
7112
7015
|
return;
|
|
7113
|
-
const execProps = (0,
|
|
7114
|
-
element.props = (0,
|
|
7016
|
+
const execProps = (0, import_utils28.exec)(v, element);
|
|
7017
|
+
element.props = (0, import_utils28.deepMerge)(
|
|
7115
7018
|
mergedProps,
|
|
7116
|
-
(0,
|
|
7019
|
+
(0, import_utils28.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
|
|
7117
7020
|
import_ignore.IGNORE_PROPS_PARAMS
|
|
7118
7021
|
);
|
|
7119
7022
|
});
|
|
@@ -7155,9 +7058,9 @@ var require_create3 = __commonJS({
|
|
|
7155
7058
|
}
|
|
7156
7059
|
});
|
|
7157
7060
|
|
|
7158
|
-
//
|
|
7061
|
+
// ../../node_modules/@domql/element/dist/cjs/props/update.js
|
|
7159
7062
|
var require_update = __commonJS({
|
|
7160
|
-
"
|
|
7063
|
+
"../../node_modules/@domql/element/dist/cjs/props/update.js"(exports, module2) {
|
|
7161
7064
|
"use strict";
|
|
7162
7065
|
var __defProp2 = Object.defineProperty;
|
|
7163
7066
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -7198,9 +7101,9 @@ var require_update = __commonJS({
|
|
|
7198
7101
|
}
|
|
7199
7102
|
});
|
|
7200
7103
|
|
|
7201
|
-
//
|
|
7104
|
+
// ../../node_modules/@domql/element/dist/cjs/props/index.js
|
|
7202
7105
|
var require_props = __commonJS({
|
|
7203
|
-
"
|
|
7106
|
+
"../../node_modules/@domql/element/dist/cjs/props/index.js"(exports, module2) {
|
|
7204
7107
|
"use strict";
|
|
7205
7108
|
var __defProp2 = Object.defineProperty;
|
|
7206
7109
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -7225,9 +7128,9 @@ var require_props = __commonJS({
|
|
|
7225
7128
|
}
|
|
7226
7129
|
});
|
|
7227
7130
|
|
|
7228
|
-
//
|
|
7131
|
+
// ../../node_modules/@domql/element/dist/cjs/utils/object.js
|
|
7229
7132
|
var require_object2 = __commonJS({
|
|
7230
|
-
"
|
|
7133
|
+
"../../node_modules/@domql/element/dist/cjs/utils/object.js"(exports, module2) {
|
|
7231
7134
|
"use strict";
|
|
7232
7135
|
var __defProp2 = Object.defineProperty;
|
|
7233
7136
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -7257,15 +7160,15 @@ var require_object2 = __commonJS({
|
|
|
7257
7160
|
mergeArray: () => mergeArray,
|
|
7258
7161
|
mergeIfExisted: () => mergeIfExisted,
|
|
7259
7162
|
overwrite: () => overwrite,
|
|
7260
|
-
overwriteDeep: () =>
|
|
7163
|
+
overwriteDeep: () => overwriteDeep2,
|
|
7261
7164
|
overwriteShallow: () => overwriteShallow2
|
|
7262
7165
|
});
|
|
7263
7166
|
module2.exports = __toCommonJS2(object_exports);
|
|
7264
|
-
var
|
|
7265
|
-
var import_state2 =
|
|
7167
|
+
var import_utils28 = require_cjs();
|
|
7168
|
+
var import_state2 = require_cjs6();
|
|
7266
7169
|
var import_props = require_props();
|
|
7267
7170
|
var import_methods = require_methods2();
|
|
7268
|
-
var METHODS_EXL = (0,
|
|
7171
|
+
var METHODS_EXL = (0, import_utils28.joinArrays)(
|
|
7269
7172
|
["node", "state", "context", "extend"],
|
|
7270
7173
|
import_methods.METHODS,
|
|
7271
7174
|
import_state2.IGNORE_STATE_PARAMS,
|
|
@@ -7279,7 +7182,7 @@ var require_object2 = __commonJS({
|
|
|
7279
7182
|
const extendProp = extend[e];
|
|
7280
7183
|
if (elementProp === void 0) {
|
|
7281
7184
|
element[e] = extendProp;
|
|
7282
|
-
} else if ((0,
|
|
7185
|
+
} else if ((0, import_utils28.isObjectLike)(elementProp) && (0, import_utils28.isObject)(extendProp)) {
|
|
7283
7186
|
deepMerge7(elementProp, extendProp);
|
|
7284
7187
|
}
|
|
7285
7188
|
}
|
|
@@ -7295,15 +7198,15 @@ var require_object2 = __commonJS({
|
|
|
7295
7198
|
return o;
|
|
7296
7199
|
};
|
|
7297
7200
|
var deepClone4 = (obj, exclude = METHODS_EXL) => {
|
|
7298
|
-
const o = (0,
|
|
7201
|
+
const o = (0, import_utils28.isArray)(obj) ? [] : {};
|
|
7299
7202
|
for (const e in obj) {
|
|
7300
7203
|
if (exclude.includes(e))
|
|
7301
7204
|
continue;
|
|
7302
7205
|
let objProp = obj[e];
|
|
7303
|
-
if (e === "extend" && (0,
|
|
7206
|
+
if (e === "extend" && (0, import_utils28.isArray)(objProp)) {
|
|
7304
7207
|
objProp = mergeArray(objProp, exclude);
|
|
7305
7208
|
}
|
|
7306
|
-
if ((0,
|
|
7209
|
+
if ((0, import_utils28.isObjectLike)(objProp)) {
|
|
7307
7210
|
o[e] = deepClone4(objProp, exclude);
|
|
7308
7211
|
} else
|
|
7309
7212
|
o[e] = objProp;
|
|
@@ -7336,14 +7239,14 @@ var require_object2 = __commonJS({
|
|
|
7336
7239
|
}
|
|
7337
7240
|
return obj;
|
|
7338
7241
|
};
|
|
7339
|
-
var
|
|
7242
|
+
var overwriteDeep2 = (obj, params, exclude = METHODS_EXL) => {
|
|
7340
7243
|
for (const e in params) {
|
|
7341
7244
|
if (exclude.includes(e))
|
|
7342
7245
|
continue;
|
|
7343
7246
|
const objProp = obj[e];
|
|
7344
7247
|
const paramsProp = params[e];
|
|
7345
|
-
if ((0,
|
|
7346
|
-
|
|
7248
|
+
if ((0, import_utils28.isObjectLike)(objProp) && (0, import_utils28.isObjectLike)(paramsProp)) {
|
|
7249
|
+
overwriteDeep2(objProp, paramsProp);
|
|
7347
7250
|
} else if (paramsProp !== void 0) {
|
|
7348
7251
|
obj[e] = paramsProp;
|
|
7349
7252
|
}
|
|
@@ -7351,7 +7254,7 @@ var require_object2 = __commonJS({
|
|
|
7351
7254
|
return obj;
|
|
7352
7255
|
};
|
|
7353
7256
|
var mergeIfExisted = (a, b) => {
|
|
7354
|
-
if ((0,
|
|
7257
|
+
if ((0, import_utils28.isObjectLike)(a) && (0, import_utils28.isObjectLike)(b))
|
|
7355
7258
|
return deepMerge7(a, b);
|
|
7356
7259
|
return a || b;
|
|
7357
7260
|
};
|
|
@@ -7359,7 +7262,7 @@ var require_object2 = __commonJS({
|
|
|
7359
7262
|
return arr.reduce((a, c) => deepMerge7(a, deepClone4(c, exclude)), {});
|
|
7360
7263
|
};
|
|
7361
7264
|
var mergeAndCloneIfArray = (obj) => {
|
|
7362
|
-
return (0,
|
|
7265
|
+
return (0, import_utils28.isArray)(obj) ? mergeArray(obj) : deepClone4(obj);
|
|
7363
7266
|
};
|
|
7364
7267
|
var flattenRecursive = (param, prop, stack = []) => {
|
|
7365
7268
|
const objectized = mergeAndCloneIfArray(param);
|
|
@@ -7373,9 +7276,9 @@ var require_object2 = __commonJS({
|
|
|
7373
7276
|
}
|
|
7374
7277
|
});
|
|
7375
7278
|
|
|
7376
|
-
//
|
|
7279
|
+
// ../../node_modules/@domql/element/dist/cjs/utils/extendUtils.js
|
|
7377
7280
|
var require_extendUtils = __commonJS({
|
|
7378
|
-
"
|
|
7281
|
+
"../../node_modules/@domql/element/dist/cjs/utils/extendUtils.js"(exports, module2) {
|
|
7379
7282
|
"use strict";
|
|
7380
7283
|
var __defProp2 = Object.defineProperty;
|
|
7381
7284
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -7414,7 +7317,7 @@ var require_extendUtils = __commonJS({
|
|
|
7414
7317
|
setHashedExtend: () => setHashedExtend
|
|
7415
7318
|
});
|
|
7416
7319
|
module2.exports = __toCommonJS2(extendUtils_exports);
|
|
7417
|
-
var
|
|
7320
|
+
var import_utils28 = require_cjs();
|
|
7418
7321
|
var ENV2 = "development";
|
|
7419
7322
|
var generateHash = () => Math.random().toString(36).substring(2);
|
|
7420
7323
|
var extendStackRegistry = {};
|
|
@@ -7424,7 +7327,7 @@ var require_extendUtils = __commonJS({
|
|
|
7424
7327
|
};
|
|
7425
7328
|
var setHashedExtend = (extend, stack) => {
|
|
7426
7329
|
const hash2 = generateHash();
|
|
7427
|
-
if (!(0,
|
|
7330
|
+
if (!(0, import_utils28.isString)(extend)) {
|
|
7428
7331
|
extend.__hash = hash2;
|
|
7429
7332
|
}
|
|
7430
7333
|
extendStackRegistry[hash2] = stack;
|
|
@@ -7450,9 +7353,9 @@ var require_extendUtils = __commonJS({
|
|
|
7450
7353
|
var flattenExtend = (extend, stack, context) => {
|
|
7451
7354
|
if (!extend)
|
|
7452
7355
|
return stack;
|
|
7453
|
-
if ((0,
|
|
7356
|
+
if ((0, import_utils28.isArray)(extend))
|
|
7454
7357
|
return extractArrayExtend(extend, stack, context);
|
|
7455
|
-
if ((0,
|
|
7358
|
+
if ((0, import_utils28.isString)(extend))
|
|
7456
7359
|
extend = fallbackStringExtend(extend, context);
|
|
7457
7360
|
stack.push(extend);
|
|
7458
7361
|
if (extend.extend)
|
|
@@ -7465,9 +7368,9 @@ var require_extendUtils = __commonJS({
|
|
|
7465
7368
|
if (["parent", "node", "__element"].indexOf(prop) > -1)
|
|
7466
7369
|
continue;
|
|
7467
7370
|
const objProp = obj[prop];
|
|
7468
|
-
if ((0,
|
|
7371
|
+
if ((0, import_utils28.isObject)(objProp)) {
|
|
7469
7372
|
o[prop] = deepCloneExtend(objProp);
|
|
7470
|
-
} else if ((0,
|
|
7373
|
+
} else if ((0, import_utils28.isArray)(objProp)) {
|
|
7471
7374
|
o[prop] = objProp.map((x) => x);
|
|
7472
7375
|
} else
|
|
7473
7376
|
o[prop] = objProp;
|
|
@@ -7482,14 +7385,14 @@ var require_extendUtils = __commonJS({
|
|
|
7482
7385
|
const extendProp = extend[e];
|
|
7483
7386
|
if (elementProp === void 0) {
|
|
7484
7387
|
element[e] = extendProp;
|
|
7485
|
-
} else if ((0,
|
|
7388
|
+
} else if ((0, import_utils28.isObject)(elementProp) && (0, import_utils28.isObject)(extendProp)) {
|
|
7486
7389
|
deepMergeExtend(elementProp, extendProp);
|
|
7487
|
-
} else if ((0,
|
|
7390
|
+
} else if ((0, import_utils28.isArray)(elementProp) && (0, import_utils28.isArray)(extendProp)) {
|
|
7488
7391
|
element[e] = elementProp.concat(extendProp);
|
|
7489
|
-
} else if ((0,
|
|
7392
|
+
} else if ((0, import_utils28.isArray)(elementProp) && (0, import_utils28.isObject)(extendProp)) {
|
|
7490
7393
|
const obj = deepMergeExtend({}, elementProp);
|
|
7491
7394
|
element[e] = deepMergeExtend(obj, extendProp);
|
|
7492
|
-
} else if (elementProp === void 0 && (0,
|
|
7395
|
+
} else if (elementProp === void 0 && (0, import_utils28.isFunction)(extendProp)) {
|
|
7493
7396
|
element[e] = extendProp;
|
|
7494
7397
|
}
|
|
7495
7398
|
}
|
|
@@ -7502,7 +7405,7 @@ var require_extendUtils = __commonJS({
|
|
|
7502
7405
|
};
|
|
7503
7406
|
var fallbackStringExtend = (extend, context, options = {}) => {
|
|
7504
7407
|
const COMPONENTS = context && context.components || options.components;
|
|
7505
|
-
if ((0,
|
|
7408
|
+
if ((0, import_utils28.isString)(extend)) {
|
|
7506
7409
|
const componentExists = COMPONENTS[extend] || COMPONENTS["smbls." + extend];
|
|
7507
7410
|
if (COMPONENTS && componentExists) {
|
|
7508
7411
|
return componentExists;
|
|
@@ -7533,9 +7436,9 @@ var require_extendUtils = __commonJS({
|
|
|
7533
7436
|
}
|
|
7534
7437
|
});
|
|
7535
7438
|
|
|
7536
|
-
//
|
|
7439
|
+
// ../../node_modules/@domql/element/dist/cjs/extend.js
|
|
7537
7440
|
var require_extend = __commonJS({
|
|
7538
|
-
"
|
|
7441
|
+
"../../node_modules/@domql/element/dist/cjs/extend.js"(exports, module2) {
|
|
7539
7442
|
"use strict";
|
|
7540
7443
|
var __defProp2 = Object.defineProperty;
|
|
7541
7444
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -7559,27 +7462,27 @@ var require_extend = __commonJS({
|
|
|
7559
7462
|
applyExtend: () => applyExtend
|
|
7560
7463
|
});
|
|
7561
7464
|
module2.exports = __toCommonJS2(extend_exports);
|
|
7562
|
-
var
|
|
7563
|
-
var
|
|
7465
|
+
var import_utils28 = require_cjs();
|
|
7466
|
+
var import_utils29 = require_utils();
|
|
7564
7467
|
var ENV2 = "development";
|
|
7565
7468
|
var applyExtend = (element, parent, options = {}) => {
|
|
7566
|
-
if ((0,
|
|
7567
|
-
element = (0,
|
|
7469
|
+
if ((0, import_utils28.isFunction)(element))
|
|
7470
|
+
element = (0, import_utils28.exec)(element, parent);
|
|
7568
7471
|
let { extend, props: props4, context, __ref } = element;
|
|
7569
|
-
extend = (0,
|
|
7570
|
-
const extendStack = (0,
|
|
7472
|
+
extend = (0, import_utils29.fallbackStringExtend)(extend, context, options);
|
|
7473
|
+
const extendStack = (0, import_utils29.getExtendStack)(extend, context);
|
|
7571
7474
|
if (ENV2 !== "test" || ENV2 !== "development")
|
|
7572
7475
|
delete element.extend;
|
|
7573
7476
|
let childExtendStack = [];
|
|
7574
7477
|
if (parent) {
|
|
7575
7478
|
element.parent = parent;
|
|
7576
7479
|
if (!options.ignoreChildExtend && !(props4 && props4.ignoreChildExtend)) {
|
|
7577
|
-
childExtendStack = (0,
|
|
7480
|
+
childExtendStack = (0, import_utils29.getExtendStack)(parent.childExtend, context);
|
|
7578
7481
|
const ignoreChildExtendRecursive = props4 && props4.ignoreChildExtendRecursive;
|
|
7579
7482
|
if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
|
|
7580
7483
|
const canExtendRecursive = element.key !== "__text";
|
|
7581
7484
|
if (canExtendRecursive) {
|
|
7582
|
-
const childExtendRecursiveStack = (0,
|
|
7485
|
+
const childExtendRecursiveStack = (0, import_utils29.getExtendStack)(parent.childExtendRecursive, context);
|
|
7583
7486
|
childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
|
|
7584
7487
|
element.childExtendRecursive = parent.childExtendRecursive;
|
|
7585
7488
|
}
|
|
@@ -7590,7 +7493,7 @@ var require_extend = __commonJS({
|
|
|
7590
7493
|
const childExtendLength = childExtendStack.length;
|
|
7591
7494
|
let stack = [];
|
|
7592
7495
|
if (extendLength && childExtendLength) {
|
|
7593
|
-
stack = (0,
|
|
7496
|
+
stack = (0, import_utils29.jointStacks)(extendStack, childExtendStack);
|
|
7594
7497
|
} else if (extendLength) {
|
|
7595
7498
|
stack = extendStack;
|
|
7596
7499
|
} else if (childExtendLength) {
|
|
@@ -7598,26 +7501,26 @@ var require_extend = __commonJS({
|
|
|
7598
7501
|
} else if (!options.extend)
|
|
7599
7502
|
return element;
|
|
7600
7503
|
if (options.extend) {
|
|
7601
|
-
const defaultOptionsExtend = (0,
|
|
7504
|
+
const defaultOptionsExtend = (0, import_utils29.getExtendStack)(options.extend, context);
|
|
7602
7505
|
stack = [].concat(stack, defaultOptionsExtend);
|
|
7603
7506
|
}
|
|
7604
7507
|
if (__ref)
|
|
7605
7508
|
__ref.__extend = stack;
|
|
7606
|
-
let mergedExtend = (0,
|
|
7509
|
+
let mergedExtend = (0, import_utils29.cloneAndMergeArrayExtend)(stack);
|
|
7607
7510
|
const COMPONENTS = context && context.components || options.components;
|
|
7608
|
-
const component = (0,
|
|
7511
|
+
const component = (0, import_utils28.exec)(element.component || mergedExtend.component, element);
|
|
7609
7512
|
if (component && COMPONENTS && COMPONENTS[component]) {
|
|
7610
|
-
const componentExtend = (0,
|
|
7611
|
-
mergedExtend = (0,
|
|
7513
|
+
const componentExtend = (0, import_utils29.cloneAndMergeArrayExtend)((0, import_utils29.getExtendStack)(COMPONENTS[component]));
|
|
7514
|
+
mergedExtend = (0, import_utils29.deepMergeExtend)(componentExtend, mergedExtend);
|
|
7612
7515
|
}
|
|
7613
|
-
return (0,
|
|
7516
|
+
return (0, import_utils29.deepMergeExtend)(element, mergedExtend);
|
|
7614
7517
|
};
|
|
7615
7518
|
}
|
|
7616
7519
|
});
|
|
7617
7520
|
|
|
7618
|
-
//
|
|
7521
|
+
// ../../node_modules/@domql/element/dist/cjs/utils/component.js
|
|
7619
7522
|
var require_component = __commonJS({
|
|
7620
|
-
"
|
|
7523
|
+
"../../node_modules/@domql/element/dist/cjs/utils/component.js"(exports, module2) {
|
|
7621
7524
|
"use strict";
|
|
7622
7525
|
var __defProp2 = Object.defineProperty;
|
|
7623
7526
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -7649,11 +7552,11 @@ var require_component = __commonJS({
|
|
|
7649
7552
|
overwriteVariant: () => overwriteVariant
|
|
7650
7553
|
});
|
|
7651
7554
|
module2.exports = __toCommonJS2(component_exports);
|
|
7652
|
-
var
|
|
7555
|
+
var import_utils28 = require_cjs();
|
|
7653
7556
|
var import_extend = require_extend();
|
|
7654
7557
|
var ENV2 = "development";
|
|
7655
7558
|
var checkIfKeyIsComponent2 = (key) => {
|
|
7656
|
-
const isFirstKeyString = (0,
|
|
7559
|
+
const isFirstKeyString = (0, import_utils28.isString)(key);
|
|
7657
7560
|
if (!isFirstKeyString)
|
|
7658
7561
|
return;
|
|
7659
7562
|
const firstCharKey = key.slice(0, 1);
|
|
@@ -7661,9 +7564,9 @@ var require_component = __commonJS({
|
|
|
7661
7564
|
};
|
|
7662
7565
|
var addAdditionalExtend = (newExtend, element) => {
|
|
7663
7566
|
const { extend: elementExtend } = element;
|
|
7664
|
-
const originalArray = (0,
|
|
7665
|
-
const receivedArray = (0,
|
|
7666
|
-
const extend = (0,
|
|
7567
|
+
const originalArray = (0, import_utils28.isArray)(elementExtend) ? elementExtend : [elementExtend];
|
|
7568
|
+
const receivedArray = (0, import_utils28.isArray)(newExtend) ? newExtend : [newExtend];
|
|
7569
|
+
const extend = (0, import_utils28.joinArrays)(receivedArray, originalArray);
|
|
7667
7570
|
return { ...element, extend };
|
|
7668
7571
|
};
|
|
7669
7572
|
var extendizeByKey = (element, parent, key) => {
|
|
@@ -7687,11 +7590,11 @@ var require_component = __commonJS({
|
|
|
7687
7590
|
};
|
|
7688
7591
|
} else if (extend) {
|
|
7689
7592
|
return addAdditionalExtend(extendFromKey, element);
|
|
7690
|
-
} else if ((0,
|
|
7593
|
+
} else if ((0, import_utils28.isFunction)(element)) {
|
|
7691
7594
|
return {
|
|
7692
7595
|
extend: extendFromKey,
|
|
7693
7596
|
tag,
|
|
7694
|
-
props: { ...(0,
|
|
7597
|
+
props: { ...(0, import_utils28.exec)(element, parent) }
|
|
7695
7598
|
};
|
|
7696
7599
|
}
|
|
7697
7600
|
};
|
|
@@ -7704,8 +7607,8 @@ var require_component = __commonJS({
|
|
|
7704
7607
|
return;
|
|
7705
7608
|
const { components } = context;
|
|
7706
7609
|
const { extend } = element;
|
|
7707
|
-
const execExtend = (0,
|
|
7708
|
-
if ((0,
|
|
7610
|
+
const execExtend = (0, import_utils28.exec)(extend, element);
|
|
7611
|
+
if ((0, import_utils28.isString)(execExtend)) {
|
|
7709
7612
|
const componentExists = components[execExtend] || components["smbls." + execExtend];
|
|
7710
7613
|
if (componentExists)
|
|
7711
7614
|
element.extend = componentExists;
|
|
@@ -7719,29 +7622,29 @@ var require_component = __commonJS({
|
|
|
7719
7622
|
}
|
|
7720
7623
|
};
|
|
7721
7624
|
var isVariant = (param) => {
|
|
7722
|
-
if (!(0,
|
|
7625
|
+
if (!(0, import_utils28.isString)(param))
|
|
7723
7626
|
return;
|
|
7724
7627
|
const firstCharKey = param.slice(0, 1);
|
|
7725
7628
|
return firstCharKey === ".";
|
|
7726
7629
|
};
|
|
7727
7630
|
var hasVariantProp = (element) => {
|
|
7728
7631
|
const { props: props4 } = element;
|
|
7729
|
-
if ((0,
|
|
7632
|
+
if ((0, import_utils28.isObject)(props4) && (0, import_utils28.isString)(props4.variant))
|
|
7730
7633
|
return true;
|
|
7731
7634
|
};
|
|
7732
7635
|
var overwriteVariant = (element, variant, variantProps) => {
|
|
7733
7636
|
let variantElement = element[variant];
|
|
7734
7637
|
if (!variantElement)
|
|
7735
7638
|
return;
|
|
7736
|
-
const props4 = (0,
|
|
7737
|
-
if ((0,
|
|
7639
|
+
const props4 = (0, import_utils28.isObject)(variantProps) ? variantProps : {};
|
|
7640
|
+
if ((0, import_utils28.isString)(variantElement)) {
|
|
7738
7641
|
variantElement = {
|
|
7739
7642
|
extend: [{ props: props4 }, variantElement]
|
|
7740
7643
|
};
|
|
7741
7644
|
} else if (variantElement.extend) {
|
|
7742
7645
|
variantElement = addAdditionalExtend({ props: props4 }, variantElement);
|
|
7743
7646
|
}
|
|
7744
|
-
return (0,
|
|
7647
|
+
return (0, import_utils28.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
|
|
7745
7648
|
};
|
|
7746
7649
|
var applyVariant = (element) => {
|
|
7747
7650
|
const { props: props4 } = element;
|
|
@@ -7761,9 +7664,9 @@ var require_component = __commonJS({
|
|
|
7761
7664
|
}
|
|
7762
7665
|
});
|
|
7763
7666
|
|
|
7764
|
-
//
|
|
7667
|
+
// ../../node_modules/@domql/element/dist/cjs/utils/index.js
|
|
7765
7668
|
var require_utils = __commonJS({
|
|
7766
|
-
"
|
|
7669
|
+
"../../node_modules/@domql/element/dist/cjs/utils/index.js"(exports, module2) {
|
|
7767
7670
|
"use strict";
|
|
7768
7671
|
var __defProp2 = Object.defineProperty;
|
|
7769
7672
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -7787,9 +7690,9 @@ var require_utils = __commonJS({
|
|
|
7787
7690
|
}
|
|
7788
7691
|
});
|
|
7789
7692
|
|
|
7790
|
-
//
|
|
7693
|
+
// ../../node_modules/@domql/element/dist/cjs/iterate.js
|
|
7791
7694
|
var require_iterate = __commonJS({
|
|
7792
|
-
"
|
|
7695
|
+
"../../node_modules/@domql/element/dist/cjs/iterate.js"(exports, module2) {
|
|
7793
7696
|
"use strict";
|
|
7794
7697
|
var __defProp2 = Object.defineProperty;
|
|
7795
7698
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -7816,8 +7719,8 @@ var require_iterate = __commonJS({
|
|
|
7816
7719
|
throughUpdatedExec: () => throughUpdatedExec
|
|
7817
7720
|
});
|
|
7818
7721
|
module2.exports = __toCommonJS2(iterate_exports);
|
|
7819
|
-
var
|
|
7820
|
-
var
|
|
7722
|
+
var import_utils28 = require_cjs();
|
|
7723
|
+
var import_utils29 = require_utils();
|
|
7821
7724
|
var import_methods = require_methods2();
|
|
7822
7725
|
var throughInitialExec = (element, exclude = {}) => {
|
|
7823
7726
|
const { __ref: ref } = element;
|
|
@@ -7825,13 +7728,13 @@ var require_iterate = __commonJS({
|
|
|
7825
7728
|
if (exclude[param])
|
|
7826
7729
|
continue;
|
|
7827
7730
|
const prop = element[param];
|
|
7828
|
-
if ((0,
|
|
7731
|
+
if ((0, import_utils28.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils29.isVariant)(param)) {
|
|
7829
7732
|
ref.__exec[param] = prop;
|
|
7830
7733
|
element[param] = prop(element, element.state);
|
|
7831
7734
|
}
|
|
7832
7735
|
}
|
|
7833
7736
|
};
|
|
7834
|
-
var throughUpdatedExec = (element, options = { excludes:
|
|
7737
|
+
var throughUpdatedExec = (element, options = { excludes: import_utils29.METHODS_EXL }) => {
|
|
7835
7738
|
const { __ref: ref } = element;
|
|
7836
7739
|
const changes = {};
|
|
7837
7740
|
for (const param in ref.__exec) {
|
|
@@ -7840,13 +7743,13 @@ var require_iterate = __commonJS({
|
|
|
7840
7743
|
if (isDefinedParam)
|
|
7841
7744
|
continue;
|
|
7842
7745
|
const newExec = ref.__exec[param](element, element.state, element.context);
|
|
7843
|
-
const execReturnsString = (0,
|
|
7746
|
+
const execReturnsString = (0, import_utils28.isString)(newExec) || (0, import_utils28.isNumber)(newExec);
|
|
7844
7747
|
if (prop && prop.node && execReturnsString) {
|
|
7845
|
-
(0,
|
|
7748
|
+
(0, import_utils29.overwrite)(prop, { text: newExec }, options);
|
|
7846
7749
|
} else if (newExec !== prop) {
|
|
7847
|
-
if ((0,
|
|
7848
|
-
const { extend, ...newElem } = (0,
|
|
7849
|
-
(0,
|
|
7750
|
+
if ((0, import_utils29.checkIfKeyIsComponent)(param)) {
|
|
7751
|
+
const { extend, ...newElem } = (0, import_utils29.extendizeByKey)(newExec, element, param);
|
|
7752
|
+
(0, import_utils29.overwrite)(prop, newElem, options);
|
|
7850
7753
|
} else {
|
|
7851
7754
|
ref.__cached[param] = changes[param] = prop;
|
|
7852
7755
|
element[param] = newExec;
|
|
@@ -7858,16 +7761,16 @@ var require_iterate = __commonJS({
|
|
|
7858
7761
|
var throughInitialDefine = (element) => {
|
|
7859
7762
|
const { define, context, __ref: ref } = element;
|
|
7860
7763
|
let defineObj = {};
|
|
7861
|
-
const hasGlobalDefine = context && (0,
|
|
7862
|
-
if ((0,
|
|
7764
|
+
const hasGlobalDefine = context && (0, import_utils28.isObject)(context.define);
|
|
7765
|
+
if ((0, import_utils28.isObject)(define))
|
|
7863
7766
|
defineObj = { ...define };
|
|
7864
7767
|
if (hasGlobalDefine)
|
|
7865
7768
|
defineObj = { ...defineObj, ...context.define };
|
|
7866
7769
|
for (const param in defineObj) {
|
|
7867
7770
|
let elementProp = element[param];
|
|
7868
|
-
if ((0,
|
|
7771
|
+
if ((0, import_utils28.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils29.isVariant)(param)) {
|
|
7869
7772
|
ref.__exec[param] = elementProp;
|
|
7870
|
-
const execParam2 = elementProp = (0,
|
|
7773
|
+
const execParam2 = elementProp = (0, import_utils28.exec)(elementProp, element);
|
|
7871
7774
|
if (execParam2) {
|
|
7872
7775
|
elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
|
|
7873
7776
|
ref.__defineCache[param] = elementProp;
|
|
@@ -7883,1134 +7786,27 @@ var require_iterate = __commonJS({
|
|
|
7883
7786
|
const { context, define, __ref: ref } = element;
|
|
7884
7787
|
const changes = {};
|
|
7885
7788
|
let obj = {};
|
|
7886
|
-
if ((0,
|
|
7789
|
+
if ((0, import_utils28.isObject)(define))
|
|
7887
7790
|
obj = { ...define };
|
|
7888
|
-
if ((0,
|
|
7791
|
+
if ((0, import_utils28.isObject)(context && context.define))
|
|
7889
7792
|
obj = { ...obj, ...context.define };
|
|
7890
7793
|
for (const param in obj) {
|
|
7891
7794
|
const execParam = ref.__exec[param];
|
|
7892
7795
|
if (execParam)
|
|
7893
|
-
ref.__defineCache[param] = execParam(element, element.state, element.context);
|
|
7894
|
-
const cached = (0,
|
|
7895
|
-
const newExecParam = obj[param](cached, element, element.state, element.context);
|
|
7896
|
-
if (newExecParam)
|
|
7897
|
-
element[param] = newExecParam;
|
|
7898
|
-
}
|
|
7899
|
-
return changes;
|
|
7900
|
-
};
|
|
7901
|
-
}
|
|
7902
|
-
});
|
|
7903
|
-
|
|
7904
|
-
// ../../../domql/packages/element/dist/cjs/applyParam.js
|
|
7905
|
-
var require_applyParam = __commonJS({
|
|
7906
|
-
"../../../domql/packages/element/dist/cjs/applyParam.js"(exports, module2) {
|
|
7907
|
-
"use strict";
|
|
7908
|
-
var __defProp2 = Object.defineProperty;
|
|
7909
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
7910
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
7911
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
7912
|
-
var __export2 = (target, all) => {
|
|
7913
|
-
for (var name in all)
|
|
7914
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7915
|
-
};
|
|
7916
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
7917
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
7918
|
-
for (let key of __getOwnPropNames2(from2))
|
|
7919
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7920
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
7921
|
-
}
|
|
7922
|
-
return to;
|
|
7923
|
-
};
|
|
7924
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
7925
|
-
var applyParam_exports = {};
|
|
7926
|
-
__export2(applyParam_exports, {
|
|
7927
|
-
applyParam: () => applyParam
|
|
7928
|
-
});
|
|
7929
|
-
module2.exports = __toCommonJS2(applyParam_exports);
|
|
7930
|
-
var import_utils27 = require_cjs();
|
|
7931
|
-
var import_mixins = require_mixins();
|
|
7932
|
-
var applyParam = (param, element, options) => {
|
|
7933
|
-
const { node: node2, context, __ref: ref } = element;
|
|
7934
|
-
const prop = element[param];
|
|
7935
|
-
const DOMQLProperty = import_mixins.registry[param];
|
|
7936
|
-
const DOMQLPropertyFromContext = context && context.registry && context.registry[param];
|
|
7937
|
-
const isGlobalTransformer = DOMQLPropertyFromContext || DOMQLProperty;
|
|
7938
|
-
const hasDefine = element.define && element.define[param];
|
|
7939
|
-
const hasContextDefine = context && context.define && context.define[param];
|
|
7940
|
-
if (!ref.__if)
|
|
7941
|
-
return;
|
|
7942
|
-
if (isGlobalTransformer && !hasContextDefine) {
|
|
7943
|
-
if ((0, import_utils27.isFunction)(isGlobalTransformer)) {
|
|
7944
|
-
isGlobalTransformer(prop, element, node2, options);
|
|
7945
|
-
return;
|
|
7946
|
-
}
|
|
7947
|
-
}
|
|
7948
|
-
return { hasDefine, hasContextDefine };
|
|
7949
|
-
};
|
|
7950
|
-
}
|
|
7951
|
-
});
|
|
7952
|
-
|
|
7953
|
-
// ../../../domql/packages/element/dist/cjs/node.js
|
|
7954
|
-
var require_node2 = __commonJS({
|
|
7955
|
-
"../../../domql/packages/element/dist/cjs/node.js"(exports, module2) {
|
|
7956
|
-
"use strict";
|
|
7957
|
-
var __create2 = Object.create;
|
|
7958
|
-
var __defProp2 = Object.defineProperty;
|
|
7959
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
7960
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
7961
|
-
var __getProtoOf2 = Object.getPrototypeOf;
|
|
7962
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
7963
|
-
var __export2 = (target, all) => {
|
|
7964
|
-
for (var name in all)
|
|
7965
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7966
|
-
};
|
|
7967
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
7968
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
7969
|
-
for (let key of __getOwnPropNames2(from2))
|
|
7970
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7971
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
7972
|
-
}
|
|
7973
|
-
return to;
|
|
7974
|
-
};
|
|
7975
|
-
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
7976
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
7977
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
7978
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
7979
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
7980
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
7981
|
-
mod
|
|
7982
|
-
));
|
|
7983
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
7984
|
-
var node_exports = {};
|
|
7985
|
-
__export2(node_exports, {
|
|
7986
|
-
createNode: () => createNode,
|
|
7987
|
-
default: () => node_default
|
|
7988
|
-
});
|
|
7989
|
-
module2.exports = __toCommonJS2(node_exports);
|
|
7990
|
-
var import_utils27 = require_cjs();
|
|
7991
|
-
var import_event = require_cjs6();
|
|
7992
|
-
var import_render = require_cjs10();
|
|
7993
|
-
var import_methods = require_methods2();
|
|
7994
|
-
var import_create = __toESM2(require_create4(), 1);
|
|
7995
|
-
var import_iterate = require_iterate();
|
|
7996
|
-
var import_mixins = require_mixins();
|
|
7997
|
-
var import_applyParam = require_applyParam();
|
|
7998
|
-
var import_utils28 = require_utils();
|
|
7999
|
-
var ENV2 = "development";
|
|
8000
|
-
var createNode = (element, options) => {
|
|
8001
|
-
let { node: node2, tag, __ref: ref } = element;
|
|
8002
|
-
let isNewNode;
|
|
8003
|
-
if (!node2) {
|
|
8004
|
-
isNewNode = true;
|
|
8005
|
-
if (!ref.__if)
|
|
8006
|
-
return element;
|
|
8007
|
-
if (tag === "shadow") {
|
|
8008
|
-
node2 = element.node = element.parent.node.attachShadow({ mode: "open" });
|
|
8009
|
-
} else
|
|
8010
|
-
node2 = element.node = (0, import_render.cacheNode)(element);
|
|
8011
|
-
(0, import_event.triggerEventOn)("attachNode", element, options);
|
|
8012
|
-
}
|
|
8013
|
-
if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
|
|
8014
|
-
node2.ref = element;
|
|
8015
|
-
if ((0, import_utils27.isFunction)(node2.setAttribute))
|
|
8016
|
-
node2.setAttribute("key", element.key);
|
|
8017
|
-
}
|
|
8018
|
-
(0, import_iterate.throughInitialDefine)(element);
|
|
8019
|
-
(0, import_iterate.throughInitialExec)(element);
|
|
8020
|
-
if (element.tag !== "string" && element.tag !== "fragment") {
|
|
8021
|
-
if (isNewNode && (0, import_utils27.isObject)(element.on))
|
|
8022
|
-
(0, import_event.applyEventsOnNode)(element, options);
|
|
8023
|
-
}
|
|
8024
|
-
for (const param in element) {
|
|
8025
|
-
const value2 = element[param];
|
|
8026
|
-
if ((0, import_utils27.isUndefined)(value2) || (0, import_methods.isMethod)(param) || (0, import_utils28.isVariant)(param) || (0, import_utils27.isObject)(import_mixins.registry[param]))
|
|
8027
|
-
continue;
|
|
8028
|
-
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
|
8029
|
-
if (isElement) {
|
|
8030
|
-
const { hasDefine, hasContextDefine } = isElement;
|
|
8031
|
-
if (element[param] && !hasDefine && !hasContextDefine) {
|
|
8032
|
-
const createAsync2 = () => (0, import_create.default)((0, import_utils27.exec)(value2, element), element, param, options);
|
|
8033
|
-
if (element.props && element.props.lazyLoad || options.lazyLoad) {
|
|
8034
|
-
window.requestAnimationFrame(() => createAsync2());
|
|
8035
|
-
} else
|
|
8036
|
-
createAsync2();
|
|
8037
|
-
}
|
|
8038
|
-
}
|
|
8039
|
-
}
|
|
8040
|
-
return element;
|
|
8041
|
-
};
|
|
8042
|
-
var node_default = createNode;
|
|
8043
|
-
}
|
|
8044
|
-
});
|
|
8045
|
-
|
|
8046
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/key.js
|
|
8047
|
-
var require_key2 = __commonJS({
|
|
8048
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
|
|
8049
|
-
"use strict";
|
|
8050
|
-
var __defProp2 = Object.defineProperty;
|
|
8051
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8052
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8053
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8054
|
-
var __export2 = (target, all) => {
|
|
8055
|
-
for (var name in all)
|
|
8056
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8057
|
-
};
|
|
8058
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
8059
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
8060
|
-
for (let key of __getOwnPropNames2(from2))
|
|
8061
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8062
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
8063
|
-
}
|
|
8064
|
-
return to;
|
|
8065
|
-
};
|
|
8066
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8067
|
-
var key_exports = {};
|
|
8068
|
-
__export2(key_exports, {
|
|
8069
|
-
createSnapshotId: () => createSnapshotId,
|
|
8070
|
-
generateKey: () => generateKey
|
|
8071
|
-
});
|
|
8072
|
-
module2.exports = __toCommonJS2(key_exports);
|
|
8073
|
-
var generateKey = function() {
|
|
8074
|
-
let index = 0;
|
|
8075
|
-
function newId() {
|
|
8076
|
-
index++;
|
|
8077
|
-
return index;
|
|
8078
|
-
}
|
|
8079
|
-
return newId;
|
|
8080
|
-
}();
|
|
8081
|
-
var createSnapshotId = generateKey;
|
|
8082
|
-
}
|
|
8083
|
-
});
|
|
8084
|
-
|
|
8085
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/env.js
|
|
8086
|
-
var require_env2 = __commonJS({
|
|
8087
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
|
|
8088
|
-
"use strict";
|
|
8089
|
-
var __defProp2 = Object.defineProperty;
|
|
8090
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8091
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8092
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8093
|
-
var __export2 = (target, all) => {
|
|
8094
|
-
for (var name in all)
|
|
8095
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8096
|
-
};
|
|
8097
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
8098
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
8099
|
-
for (let key of __getOwnPropNames2(from2))
|
|
8100
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8101
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
8102
|
-
}
|
|
8103
|
-
return to;
|
|
8104
|
-
};
|
|
8105
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8106
|
-
var env_exports = {};
|
|
8107
|
-
__export2(env_exports, {
|
|
8108
|
-
NODE_ENV: () => NODE_ENV,
|
|
8109
|
-
getNev: () => getNev,
|
|
8110
|
-
isDevelopment: () => isDevelopment2,
|
|
8111
|
-
isProduction: () => isProduction3,
|
|
8112
|
-
isTest: () => isTest2
|
|
8113
|
-
});
|
|
8114
|
-
module2.exports = __toCommonJS2(env_exports);
|
|
8115
|
-
var NODE_ENV = "development";
|
|
8116
|
-
var isProduction3 = (env = NODE_ENV) => env === "production" || env === "prod" || env !== "development" && env !== "dev" && env !== "test";
|
|
8117
|
-
var isTest2 = (env = NODE_ENV) => env === "test";
|
|
8118
|
-
var isDevelopment2 = (env = NODE_ENV) => env === "development" || env === "dev";
|
|
8119
|
-
var getNev = (key, env = NODE_ENV) => env[key];
|
|
8120
|
-
}
|
|
8121
|
-
});
|
|
8122
|
-
|
|
8123
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/globals.js
|
|
8124
|
-
var require_globals2 = __commonJS({
|
|
8125
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
|
|
8126
|
-
"use strict";
|
|
8127
|
-
var __defProp2 = Object.defineProperty;
|
|
8128
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8129
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8130
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8131
|
-
var __export2 = (target, all) => {
|
|
8132
|
-
for (var name in all)
|
|
8133
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8134
|
-
};
|
|
8135
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
8136
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
8137
|
-
for (let key of __getOwnPropNames2(from2))
|
|
8138
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8139
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
8140
|
-
}
|
|
8141
|
-
return to;
|
|
8142
|
-
};
|
|
8143
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8144
|
-
var globals_exports = {};
|
|
8145
|
-
__export2(globals_exports, {
|
|
8146
|
-
document: () => document2,
|
|
8147
|
-
global: () => global,
|
|
8148
|
-
self: () => self2,
|
|
8149
|
-
window: () => window5
|
|
8150
|
-
});
|
|
8151
|
-
module2.exports = __toCommonJS2(globals_exports);
|
|
8152
|
-
var global = globalThis;
|
|
8153
|
-
var self2 = globalThis;
|
|
8154
|
-
var window5 = globalThis;
|
|
8155
|
-
var document2 = window5.document;
|
|
8156
|
-
}
|
|
8157
|
-
});
|
|
8158
|
-
|
|
8159
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/node.js
|
|
8160
|
-
var require_node3 = __commonJS({
|
|
8161
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
|
|
8162
|
-
"use strict";
|
|
8163
|
-
var __defProp2 = Object.defineProperty;
|
|
8164
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8165
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8166
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8167
|
-
var __export2 = (target, all) => {
|
|
8168
|
-
for (var name in all)
|
|
8169
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8170
|
-
};
|
|
8171
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
8172
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
8173
|
-
for (let key of __getOwnPropNames2(from2))
|
|
8174
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8175
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
8176
|
-
}
|
|
8177
|
-
return to;
|
|
8178
|
-
};
|
|
8179
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8180
|
-
var node_exports = {};
|
|
8181
|
-
__export2(node_exports, {
|
|
8182
|
-
isHtmlElement: () => isHtmlElement,
|
|
8183
|
-
isNode: () => isNode
|
|
8184
|
-
});
|
|
8185
|
-
module2.exports = __toCommonJS2(node_exports);
|
|
8186
|
-
var import_globals2 = require_globals2();
|
|
8187
|
-
var isNode = (obj) => {
|
|
8188
|
-
return (typeof Node === "object" ? obj instanceof import_globals2.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
|
|
8189
|
-
};
|
|
8190
|
-
var isHtmlElement = (obj) => {
|
|
8191
|
-
return (typeof HTMLElement === "object" ? obj instanceof import_globals2.window.HTMLElement : obj && typeof obj === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string") || false;
|
|
8192
|
-
};
|
|
8193
|
-
}
|
|
8194
|
-
});
|
|
8195
|
-
|
|
8196
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/types.js
|
|
8197
|
-
var require_types2 = __commonJS({
|
|
8198
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
|
|
8199
|
-
"use strict";
|
|
8200
|
-
var __defProp2 = Object.defineProperty;
|
|
8201
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8202
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8203
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8204
|
-
var __export2 = (target, all) => {
|
|
8205
|
-
for (var name in all)
|
|
8206
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8207
|
-
};
|
|
8208
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
8209
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
8210
|
-
for (let key of __getOwnPropNames2(from2))
|
|
8211
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8212
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
8213
|
-
}
|
|
8214
|
-
return to;
|
|
8215
|
-
};
|
|
8216
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8217
|
-
var types_exports = {};
|
|
8218
|
-
__export2(types_exports, {
|
|
8219
|
-
TYPES: () => TYPES,
|
|
8220
|
-
is: () => is,
|
|
8221
|
-
isArray: () => isArray6,
|
|
8222
|
-
isBoolean: () => isBoolean,
|
|
8223
|
-
isDefined: () => isDefined2,
|
|
8224
|
-
isFunction: () => isFunction4,
|
|
8225
|
-
isNot: () => isNot2,
|
|
8226
|
-
isNull: () => isNull,
|
|
8227
|
-
isNumber: () => isNumber2,
|
|
8228
|
-
isObject: () => isObject12,
|
|
8229
|
-
isObjectLike: () => isObjectLike3,
|
|
8230
|
-
isString: () => isString11,
|
|
8231
|
-
isUndefined: () => isUndefined5
|
|
8232
|
-
});
|
|
8233
|
-
module2.exports = __toCommonJS2(types_exports);
|
|
8234
|
-
var import_node = require_node3();
|
|
8235
|
-
var isObject12 = (arg) => {
|
|
8236
|
-
if (arg === null)
|
|
8237
|
-
return false;
|
|
8238
|
-
return typeof arg === "object" && arg.constructor === Object;
|
|
8239
|
-
};
|
|
8240
|
-
var isString11 = (arg) => typeof arg === "string";
|
|
8241
|
-
var isNumber2 = (arg) => typeof arg === "number";
|
|
8242
|
-
var isFunction4 = (arg) => typeof arg === "function";
|
|
8243
|
-
var isBoolean = (arg) => arg === true || arg === false;
|
|
8244
|
-
var isNull = (arg) => arg === null;
|
|
8245
|
-
var isArray6 = (arg) => Array.isArray(arg);
|
|
8246
|
-
var isObjectLike3 = (arg) => {
|
|
8247
|
-
if (arg === null)
|
|
8248
|
-
return false;
|
|
8249
|
-
return typeof arg === "object";
|
|
8250
|
-
};
|
|
8251
|
-
var isDefined2 = (arg) => {
|
|
8252
|
-
return isObject12(arg) || isObjectLike3(arg) || isString11(arg) || isNumber2(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
|
|
8253
|
-
};
|
|
8254
|
-
var isUndefined5 = (arg) => {
|
|
8255
|
-
return arg === void 0;
|
|
8256
|
-
};
|
|
8257
|
-
var TYPES = {
|
|
8258
|
-
boolean: isBoolean,
|
|
8259
|
-
array: isArray6,
|
|
8260
|
-
object: isObject12,
|
|
8261
|
-
string: isString11,
|
|
8262
|
-
number: isNumber2,
|
|
8263
|
-
null: isNull,
|
|
8264
|
-
function: isFunction4,
|
|
8265
|
-
objectLike: isObjectLike3,
|
|
8266
|
-
node: import_node.isNode,
|
|
8267
|
-
htmlElement: import_node.isHtmlElement,
|
|
8268
|
-
defined: isDefined2
|
|
8269
|
-
};
|
|
8270
|
-
var is = (arg) => {
|
|
8271
|
-
return (...args) => {
|
|
8272
|
-
return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
|
|
8273
|
-
};
|
|
8274
|
-
};
|
|
8275
|
-
var isNot2 = (arg) => {
|
|
8276
|
-
return (...args) => {
|
|
8277
|
-
return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
|
|
8278
|
-
};
|
|
8279
|
-
};
|
|
8280
|
-
}
|
|
8281
|
-
});
|
|
8282
|
-
|
|
8283
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/array.js
|
|
8284
|
-
var require_array2 = __commonJS({
|
|
8285
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
|
|
8286
|
-
"use strict";
|
|
8287
|
-
var __defProp2 = Object.defineProperty;
|
|
8288
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8289
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8290
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8291
|
-
var __export2 = (target, all) => {
|
|
8292
|
-
for (var name in all)
|
|
8293
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8294
|
-
};
|
|
8295
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
8296
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
8297
|
-
for (let key of __getOwnPropNames2(from2))
|
|
8298
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8299
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
8300
|
-
}
|
|
8301
|
-
return to;
|
|
8302
|
-
};
|
|
8303
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8304
|
-
var array_exports = {};
|
|
8305
|
-
__export2(array_exports, {
|
|
8306
|
-
arrayContainsOtherArray: () => arrayContainsOtherArray,
|
|
8307
|
-
createNestedObject: () => createNestedObject,
|
|
8308
|
-
cutArrayAfterValue: () => cutArrayAfterValue,
|
|
8309
|
-
cutArrayBeforeValue: () => cutArrayBeforeValue,
|
|
8310
|
-
joinArrays: () => joinArrays,
|
|
8311
|
-
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
8312
|
-
mergeArray: () => mergeArray,
|
|
8313
|
-
removeFromArray: () => removeFromArray,
|
|
8314
|
-
swapItemsInArray: () => swapItemsInArray
|
|
8315
|
-
});
|
|
8316
|
-
module2.exports = __toCommonJS2(array_exports);
|
|
8317
|
-
var import_object = require_object3();
|
|
8318
|
-
var import_types = require_types2();
|
|
8319
|
-
var arrayContainsOtherArray = (arr1, arr2) => {
|
|
8320
|
-
return arr2.every((val) => arr1.includes(val));
|
|
8321
|
-
};
|
|
8322
|
-
var removeFromArray = (arr, index) => {
|
|
8323
|
-
if ((0, import_types.isString)(index))
|
|
8324
|
-
index = parseInt(index);
|
|
8325
|
-
if ((0, import_types.isNumber)(index)) {
|
|
8326
|
-
if (index < 0 || index >= arr.length || isNaN(index)) {
|
|
8327
|
-
throw new Error("Invalid index");
|
|
8328
|
-
}
|
|
8329
|
-
arr.splice(index, 1);
|
|
8330
|
-
} else if ((0, import_types.isArray)(index)) {
|
|
8331
|
-
index.forEach((idx) => removeFromArray(arr, idx));
|
|
8332
|
-
} else {
|
|
8333
|
-
throw new Error("Invalid index");
|
|
8334
|
-
}
|
|
8335
|
-
return arr;
|
|
8336
|
-
};
|
|
8337
|
-
var swapItemsInArray = (arr, i2, j) => {
|
|
8338
|
-
[arr[i2], arr[j]] = [arr[j], arr[i2]];
|
|
8339
|
-
};
|
|
8340
|
-
var joinArrays = (...arrays) => {
|
|
8341
|
-
return [].concat(...arrays);
|
|
8342
|
-
};
|
|
8343
|
-
var mergeArray = (arr, excludeFrom = []) => {
|
|
8344
|
-
return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
|
|
8345
|
-
};
|
|
8346
|
-
var mergeAndCloneIfArray = (obj) => {
|
|
8347
|
-
return (0, import_types.isArray)(obj) ? mergeArray(obj) : (0, import_object.deepClone)(obj);
|
|
8348
|
-
};
|
|
8349
|
-
var cutArrayBeforeValue = (arr, value2) => {
|
|
8350
|
-
const index = arr.indexOf(value2);
|
|
8351
|
-
if (index !== -1) {
|
|
8352
|
-
return arr.slice(0, index);
|
|
8353
|
-
}
|
|
8354
|
-
return arr;
|
|
8355
|
-
};
|
|
8356
|
-
var cutArrayAfterValue = (arr, value2) => {
|
|
8357
|
-
const index = arr.indexOf(value2);
|
|
8358
|
-
if (index !== -1) {
|
|
8359
|
-
return arr.slice(index + 1);
|
|
8360
|
-
}
|
|
8361
|
-
return arr;
|
|
8362
|
-
};
|
|
8363
|
-
var createNestedObject = (arr, lastValue) => {
|
|
8364
|
-
const nestedObject = {};
|
|
8365
|
-
if (arr.length === 0) {
|
|
8366
|
-
return lastValue;
|
|
8367
|
-
}
|
|
8368
|
-
arr.reduce((obj, value2, index) => {
|
|
8369
|
-
if (!obj[value2]) {
|
|
8370
|
-
obj[value2] = {};
|
|
8371
|
-
}
|
|
8372
|
-
if (index === arr.length - 1 && lastValue) {
|
|
8373
|
-
obj[value2] = lastValue;
|
|
8374
|
-
}
|
|
8375
|
-
return obj[value2];
|
|
8376
|
-
}, nestedObject);
|
|
8377
|
-
return nestedObject;
|
|
8378
|
-
};
|
|
8379
|
-
}
|
|
8380
|
-
});
|
|
8381
|
-
|
|
8382
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/string.js
|
|
8383
|
-
var require_string2 = __commonJS({
|
|
8384
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
|
|
8385
|
-
"use strict";
|
|
8386
|
-
var __defProp2 = Object.defineProperty;
|
|
8387
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8388
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8389
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8390
|
-
var __export2 = (target, all) => {
|
|
8391
|
-
for (var name in all)
|
|
8392
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8393
|
-
};
|
|
8394
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
8395
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
8396
|
-
for (let key of __getOwnPropNames2(from2))
|
|
8397
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8398
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
8399
|
-
}
|
|
8400
|
-
return to;
|
|
8401
|
-
};
|
|
8402
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8403
|
-
var string_exports = {};
|
|
8404
|
-
__export2(string_exports, {
|
|
8405
|
-
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields2,
|
|
8406
|
-
stringIncludesAny: () => stringIncludesAny
|
|
8407
|
-
});
|
|
8408
|
-
module2.exports = __toCommonJS2(string_exports);
|
|
8409
|
-
var stringIncludesAny = (str, characters2) => {
|
|
8410
|
-
for (const char2 of characters2) {
|
|
8411
|
-
if (str.includes(char2)) {
|
|
8412
|
-
return true;
|
|
8413
|
-
}
|
|
8414
|
-
}
|
|
8415
|
-
return false;
|
|
8416
|
-
};
|
|
8417
|
-
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
8418
|
-
var replaceLiteralsWithObjectFields2 = (str, state) => {
|
|
8419
|
-
if (!str.includes("{{"))
|
|
8420
|
-
return str;
|
|
8421
|
-
return str.replace(brackRegex, (_, parentPath, variable) => {
|
|
8422
|
-
if (parentPath) {
|
|
8423
|
-
const parentLevels = parentPath.match(/\.\.\//g).length;
|
|
8424
|
-
let parentState = state;
|
|
8425
|
-
for (let i2 = 0; i2 < parentLevels; i2++) {
|
|
8426
|
-
parentState = parentState.parent;
|
|
8427
|
-
if (!parentState) {
|
|
8428
|
-
return "";
|
|
8429
|
-
}
|
|
8430
|
-
}
|
|
8431
|
-
const value2 = parentState[variable.trim()];
|
|
8432
|
-
return value2 !== void 0 ? `${value2}` : "";
|
|
8433
|
-
} else {
|
|
8434
|
-
const value2 = state[variable.trim()];
|
|
8435
|
-
return value2 !== void 0 ? `${value2}` : "";
|
|
8436
|
-
}
|
|
8437
|
-
});
|
|
8438
|
-
};
|
|
8439
|
-
}
|
|
8440
|
-
});
|
|
8441
|
-
|
|
8442
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/object.js
|
|
8443
|
-
var require_object3 = __commonJS({
|
|
8444
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
|
|
8445
|
-
"use strict";
|
|
8446
|
-
var __defProp2 = Object.defineProperty;
|
|
8447
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8448
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8449
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8450
|
-
var __export2 = (target, all) => {
|
|
8451
|
-
for (var name in all)
|
|
8452
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8453
|
-
};
|
|
8454
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
8455
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
8456
|
-
for (let key of __getOwnPropNames2(from2))
|
|
8457
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8458
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
8459
|
-
}
|
|
8460
|
-
return to;
|
|
8461
|
-
};
|
|
8462
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8463
|
-
var object_exports = {};
|
|
8464
|
-
__export2(object_exports, {
|
|
8465
|
-
clone: () => clone,
|
|
8466
|
-
deepClone: () => deepClone4,
|
|
8467
|
-
deepCloneExclude: () => deepCloneExclude,
|
|
8468
|
-
deepDestringify: () => deepDestringify,
|
|
8469
|
-
deepMerge: () => deepMerge7,
|
|
8470
|
-
deepStringify: () => deepStringify,
|
|
8471
|
-
detachFunctionsFromObject: () => detachFunctionsFromObject,
|
|
8472
|
-
diff: () => diff,
|
|
8473
|
-
diffArrays: () => diffArrays,
|
|
8474
|
-
diffObjects: () => diffObjects,
|
|
8475
|
-
exec: () => exec4,
|
|
8476
|
-
flattenRecursive: () => flattenRecursive,
|
|
8477
|
-
isEqualDeep: () => isEqualDeep2,
|
|
8478
|
-
map: () => map2,
|
|
8479
|
-
merge: () => merge4,
|
|
8480
|
-
mergeArrayExclude: () => mergeArrayExclude,
|
|
8481
|
-
mergeIfExisted: () => mergeIfExisted,
|
|
8482
|
-
objectToString: () => objectToString,
|
|
8483
|
-
overwrite: () => overwrite,
|
|
8484
|
-
overwriteDeep: () => overwriteDeep,
|
|
8485
|
-
overwriteShallow: () => overwriteShallow2,
|
|
8486
|
-
removeFromObject: () => removeFromObject,
|
|
8487
|
-
stringToObject: () => stringToObject
|
|
8488
|
-
});
|
|
8489
|
-
module2.exports = __toCommonJS2(object_exports);
|
|
8490
|
-
var import_globals2 = require_globals2();
|
|
8491
|
-
var import_types = require_types2();
|
|
8492
|
-
var import_array = require_array2();
|
|
8493
|
-
var import_string = require_string2();
|
|
8494
|
-
var exec4 = (param, element, state, context) => {
|
|
8495
|
-
if ((0, import_types.isFunction)(param)) {
|
|
8496
|
-
return param(
|
|
8497
|
-
element,
|
|
8498
|
-
state || element.state,
|
|
8499
|
-
context || element.context
|
|
8500
|
-
);
|
|
8501
|
-
}
|
|
8502
|
-
return param;
|
|
8503
|
-
};
|
|
8504
|
-
var map2 = (obj, extention, element) => {
|
|
8505
|
-
for (const e in extention) {
|
|
8506
|
-
obj[e] = exec4(extention[e], element);
|
|
8507
|
-
}
|
|
8508
|
-
};
|
|
8509
|
-
var merge4 = (element, obj, excludeFrom = []) => {
|
|
8510
|
-
for (const e in obj) {
|
|
8511
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, e);
|
|
8512
|
-
if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
|
|
8513
|
-
continue;
|
|
8514
|
-
const elementProp = element[e];
|
|
8515
|
-
const objProp = obj[e];
|
|
8516
|
-
if (elementProp === void 0) {
|
|
8517
|
-
element[e] = objProp;
|
|
8518
|
-
}
|
|
8519
|
-
}
|
|
8520
|
-
return element;
|
|
8521
|
-
};
|
|
8522
|
-
var deepMerge7 = (element, extend, excludeFrom = []) => {
|
|
8523
|
-
for (const e in extend) {
|
|
8524
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
|
|
8525
|
-
if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
|
|
8526
|
-
continue;
|
|
8527
|
-
const elementProp = element[e];
|
|
8528
|
-
const extendProp = extend[e];
|
|
8529
|
-
if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
|
|
8530
|
-
deepMerge7(elementProp, extendProp);
|
|
8531
|
-
} else if (elementProp === void 0) {
|
|
8532
|
-
element[e] = extendProp;
|
|
8533
|
-
}
|
|
8534
|
-
}
|
|
8535
|
-
return element;
|
|
8536
|
-
};
|
|
8537
|
-
var clone = (obj, excludeFrom = []) => {
|
|
8538
|
-
const o = {};
|
|
8539
|
-
for (const prop in obj) {
|
|
8540
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);
|
|
8541
|
-
if (!hasOwnProperty || excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
8542
|
-
continue;
|
|
8543
|
-
o[prop] = obj[prop];
|
|
8544
|
-
}
|
|
8545
|
-
return o;
|
|
8546
|
-
};
|
|
8547
|
-
var deepCloneExclude = (obj, excludeFrom = []) => {
|
|
8548
|
-
if ((0, import_types.isArray)(obj)) {
|
|
8549
|
-
return obj.map((x) => deepCloneExclude(x, excludeFrom));
|
|
8550
|
-
}
|
|
8551
|
-
const o = {};
|
|
8552
|
-
for (const k in obj) {
|
|
8553
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, k);
|
|
8554
|
-
if (!hasOwnProperty || excludeFrom.includes(k) || k.startsWith("__"))
|
|
8555
|
-
continue;
|
|
8556
|
-
let v = obj[k];
|
|
8557
|
-
if (k === "extend" && (0, import_types.isArray)(v)) {
|
|
8558
|
-
v = mergeArrayExclude(v, excludeFrom);
|
|
8559
|
-
}
|
|
8560
|
-
if ((0, import_types.isArray)(v)) {
|
|
8561
|
-
o[k] = v.map((x) => deepCloneExclude(x, excludeFrom));
|
|
8562
|
-
} else if ((0, import_types.isObject)(v)) {
|
|
8563
|
-
o[k] = deepCloneExclude(v, excludeFrom);
|
|
8564
|
-
} else
|
|
8565
|
-
o[k] = v;
|
|
8566
|
-
}
|
|
8567
|
-
return o;
|
|
8568
|
-
};
|
|
8569
|
-
var mergeArrayExclude = (arr, excl = []) => {
|
|
8570
|
-
return arr.reduce((acc, curr) => deepMerge7(acc, deepCloneExclude(curr, excl)), {});
|
|
8571
|
-
};
|
|
8572
|
-
var deepClone4 = (obj, excludeFrom = []) => {
|
|
8573
|
-
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
8574
|
-
for (const prop in obj) {
|
|
8575
|
-
if (prop === "__proto__")
|
|
8576
|
-
continue;
|
|
8577
|
-
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
8578
|
-
continue;
|
|
8579
|
-
let objProp = obj[prop];
|
|
8580
|
-
if (prop === "extend" && (0, import_types.isArray)(objProp)) {
|
|
8581
|
-
objProp = (0, import_array.mergeArray)(objProp);
|
|
8582
|
-
}
|
|
8583
|
-
if ((0, import_types.isObjectLike)(objProp)) {
|
|
8584
|
-
o[prop] = deepClone4(objProp, excludeFrom);
|
|
8585
|
-
} else
|
|
8586
|
-
o[prop] = objProp;
|
|
8587
|
-
}
|
|
8588
|
-
return o;
|
|
8589
|
-
};
|
|
8590
|
-
var deepStringify = (obj, stringified = {}) => {
|
|
8591
|
-
for (const prop in obj) {
|
|
8592
|
-
const objProp = obj[prop];
|
|
8593
|
-
if ((0, import_types.isFunction)(objProp)) {
|
|
8594
|
-
stringified[prop] = objProp.toString();
|
|
8595
|
-
} else if ((0, import_types.isObject)(objProp)) {
|
|
8596
|
-
stringified[prop] = {};
|
|
8597
|
-
deepStringify(objProp, stringified[prop]);
|
|
8598
|
-
} else if ((0, import_types.isArray)(objProp)) {
|
|
8599
|
-
stringified[prop] = [];
|
|
8600
|
-
objProp.forEach((v, i2) => {
|
|
8601
|
-
if ((0, import_types.isObject)(v)) {
|
|
8602
|
-
stringified[prop][i2] = {};
|
|
8603
|
-
deepStringify(v, stringified[prop][i2]);
|
|
8604
|
-
} else if ((0, import_types.isFunction)(v)) {
|
|
8605
|
-
stringified[prop][i2] = v.toString();
|
|
8606
|
-
} else {
|
|
8607
|
-
stringified[prop][i2] = v;
|
|
8608
|
-
}
|
|
8609
|
-
});
|
|
8610
|
-
} else {
|
|
8611
|
-
stringified[prop] = objProp;
|
|
8612
|
-
}
|
|
8613
|
-
}
|
|
8614
|
-
return stringified;
|
|
8615
|
-
};
|
|
8616
|
-
var objectToString = (obj, indent = 0) => {
|
|
8617
|
-
const spaces = " ".repeat(indent);
|
|
8618
|
-
let str = "{\n";
|
|
8619
|
-
for (const [key, value2] of Object.entries(obj)) {
|
|
8620
|
-
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
|
|
8621
|
-
const stringedKey = keyAllowdChars ? `'${key}'` : key;
|
|
8622
|
-
str += `${spaces} ${stringedKey}: `;
|
|
8623
|
-
if ((0, import_types.isArray)(value2)) {
|
|
8624
|
-
str += "[\n";
|
|
8625
|
-
for (const element of value2) {
|
|
8626
|
-
if ((0, import_types.isObject)(element) && element !== null) {
|
|
8627
|
-
str += `${spaces} ${objectToString(element, indent + 2)},
|
|
8628
|
-
`;
|
|
8629
|
-
} else if ((0, import_types.isString)(element)) {
|
|
8630
|
-
str += `${spaces} '${element}',
|
|
8631
|
-
`;
|
|
8632
|
-
} else {
|
|
8633
|
-
str += `${spaces} ${element},
|
|
8634
|
-
`;
|
|
8635
|
-
}
|
|
8636
|
-
}
|
|
8637
|
-
str += `${spaces} ]`;
|
|
8638
|
-
} else if ((0, import_types.isObject)(value2)) {
|
|
8639
|
-
str += objectToString(value2, indent + 1);
|
|
8640
|
-
} else if ((0, import_types.isString)(value2)) {
|
|
8641
|
-
str += (0, import_string.stringIncludesAny)(value2, ["\n", "'"]) ? `\`${value2}\`` : `'${value2}'`;
|
|
8642
|
-
} else {
|
|
8643
|
-
str += value2;
|
|
8644
|
-
}
|
|
8645
|
-
str += ",\n";
|
|
8646
|
-
}
|
|
8647
|
-
str += `${spaces}}`;
|
|
8648
|
-
return str;
|
|
8649
|
-
};
|
|
8650
|
-
var detachFunctionsFromObject = (obj, detached = {}) => {
|
|
8651
|
-
for (const prop in obj) {
|
|
8652
|
-
const objProp = obj[prop];
|
|
8653
|
-
if ((0, import_types.isFunction)(objProp))
|
|
8654
|
-
continue;
|
|
8655
|
-
else if ((0, import_types.isObject)(objProp)) {
|
|
8656
|
-
detached[prop] = {};
|
|
8657
|
-
deepStringify(objProp, detached[prop]);
|
|
8658
|
-
} else if ((0, import_types.isArray)(objProp)) {
|
|
8659
|
-
detached[prop] = [];
|
|
8660
|
-
objProp.forEach((v, i2) => {
|
|
8661
|
-
if ((0, import_types.isFunction)(v))
|
|
8662
|
-
return;
|
|
8663
|
-
if ((0, import_types.isObject)(v)) {
|
|
8664
|
-
detached[prop][i2] = {};
|
|
8665
|
-
detachFunctionsFromObject(v, detached[prop][i2]);
|
|
8666
|
-
} else {
|
|
8667
|
-
detached[prop][i2] = v;
|
|
8668
|
-
}
|
|
8669
|
-
});
|
|
8670
|
-
} else {
|
|
8671
|
-
detached[prop] = objProp;
|
|
8672
|
-
}
|
|
8673
|
-
}
|
|
8674
|
-
return detached;
|
|
8675
|
-
};
|
|
8676
|
-
var deepDestringify = (obj, stringified = {}) => {
|
|
8677
|
-
for (const prop in obj) {
|
|
8678
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);
|
|
8679
|
-
if (!hasOwnProperty)
|
|
8680
|
-
continue;
|
|
8681
|
-
const objProp = obj[prop];
|
|
8682
|
-
if ((0, import_types.isString)(objProp)) {
|
|
8683
|
-
if (objProp.includes("=>") || objProp.includes("function") || objProp.startsWith("(")) {
|
|
8684
|
-
try {
|
|
8685
|
-
const evalProp = import_globals2.window.eval(`(${objProp})`);
|
|
8686
|
-
stringified[prop] = evalProp;
|
|
8687
|
-
} catch (e) {
|
|
8688
|
-
if (e)
|
|
8689
|
-
stringified[prop] = objProp;
|
|
8690
|
-
}
|
|
8691
|
-
} else {
|
|
8692
|
-
stringified[prop] = objProp;
|
|
8693
|
-
}
|
|
8694
|
-
} else if ((0, import_types.isArray)(objProp)) {
|
|
8695
|
-
stringified[prop] = [];
|
|
8696
|
-
objProp.forEach((arrProp) => {
|
|
8697
|
-
if ((0, import_types.isString)(arrProp)) {
|
|
8698
|
-
if (arrProp.includes("=>") || arrProp.includes("function") || arrProp.startsWith("(")) {
|
|
8699
|
-
try {
|
|
8700
|
-
const evalProp = import_globals2.window.eval(`(${arrProp})`);
|
|
8701
|
-
stringified[prop].push(evalProp);
|
|
8702
|
-
} catch (e) {
|
|
8703
|
-
if (e)
|
|
8704
|
-
stringified[prop].push(arrProp);
|
|
8705
|
-
}
|
|
8706
|
-
} else {
|
|
8707
|
-
stringified[prop].push(arrProp);
|
|
8708
|
-
}
|
|
8709
|
-
} else if ((0, import_types.isObject)(arrProp)) {
|
|
8710
|
-
stringified[prop].push(deepDestringify(arrProp));
|
|
8711
|
-
} else {
|
|
8712
|
-
stringified[prop].push(arrProp);
|
|
8713
|
-
}
|
|
8714
|
-
});
|
|
8715
|
-
} else if ((0, import_types.isObject)(objProp)) {
|
|
8716
|
-
stringified[prop] = deepDestringify(objProp, stringified[prop]);
|
|
8717
|
-
} else {
|
|
8718
|
-
stringified[prop] = objProp;
|
|
8719
|
-
}
|
|
8720
|
-
}
|
|
8721
|
-
return stringified;
|
|
8722
|
-
};
|
|
8723
|
-
var stringToObject = (str) => {
|
|
8724
|
-
let obj;
|
|
8725
|
-
try {
|
|
8726
|
-
obj = import_globals2.window.eval("(" + str + ")");
|
|
8727
|
-
} catch (e) {
|
|
8728
|
-
console.warn(e);
|
|
8729
|
-
}
|
|
8730
|
-
if (obj)
|
|
8731
|
-
return obj;
|
|
8732
|
-
};
|
|
8733
|
-
var diffObjects = (original, objToDiff, cache2) => {
|
|
8734
|
-
for (const e in objToDiff) {
|
|
8735
|
-
if (e === "ref")
|
|
8736
|
-
continue;
|
|
8737
|
-
const originalProp = original[e];
|
|
8738
|
-
const objToDiffProp = objToDiff[e];
|
|
8739
|
-
if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
|
|
8740
|
-
cache2[e] = {};
|
|
8741
|
-
diff(originalProp, objToDiffProp, cache2[e]);
|
|
8742
|
-
} else if (objToDiffProp !== void 0) {
|
|
8743
|
-
cache2[e] = objToDiffProp;
|
|
8744
|
-
}
|
|
8745
|
-
}
|
|
8746
|
-
return cache2;
|
|
8747
|
-
};
|
|
8748
|
-
var diffArrays = (original, objToDiff, cache2) => {
|
|
8749
|
-
if (original.length !== objToDiff.length) {
|
|
8750
|
-
cache2 = objToDiff;
|
|
8751
|
-
} else {
|
|
8752
|
-
const diffArr = [];
|
|
8753
|
-
for (let i2 = 0; i2 < original.length; i2++) {
|
|
8754
|
-
const diffObj = diff(original[i2], objToDiff[i2]);
|
|
8755
|
-
if (Object.keys(diffObj).length > 0) {
|
|
8756
|
-
diffArr.push(diffObj);
|
|
8757
|
-
}
|
|
8758
|
-
}
|
|
8759
|
-
if (diffArr.length > 0) {
|
|
8760
|
-
cache2 = diffArr;
|
|
8761
|
-
}
|
|
8762
|
-
}
|
|
8763
|
-
return cache2;
|
|
8764
|
-
};
|
|
8765
|
-
var diff = (original, objToDiff, cache2 = {}) => {
|
|
8766
|
-
if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
|
|
8767
|
-
cache2 = [];
|
|
8768
|
-
diffArrays(original, objToDiff, cache2);
|
|
8769
|
-
} else {
|
|
8770
|
-
diffObjects(original, objToDiff, cache2);
|
|
8771
|
-
}
|
|
8772
|
-
return cache2;
|
|
8773
|
-
};
|
|
8774
|
-
var overwrite = (element, params, excludeFrom = []) => {
|
|
8775
|
-
const { ref } = element;
|
|
8776
|
-
const changes = {};
|
|
8777
|
-
for (const e in params) {
|
|
8778
|
-
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
8779
|
-
continue;
|
|
8780
|
-
const elementProp = element[e];
|
|
8781
|
-
const paramsProp = params[e];
|
|
8782
|
-
if (paramsProp) {
|
|
8783
|
-
ref.__cache[e] = changes[e] = elementProp;
|
|
8784
|
-
ref[e] = paramsProp;
|
|
8785
|
-
}
|
|
8786
|
-
}
|
|
8787
|
-
return changes;
|
|
8788
|
-
};
|
|
8789
|
-
var overwriteShallow2 = (obj, params, excludeFrom = []) => {
|
|
8790
|
-
for (const e in params) {
|
|
8791
|
-
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
8792
|
-
continue;
|
|
8793
|
-
obj[e] = params[e];
|
|
8794
|
-
}
|
|
8795
|
-
return obj;
|
|
8796
|
-
};
|
|
8797
|
-
var overwriteDeep = (obj, params, excludeFrom = []) => {
|
|
8798
|
-
for (const e in params) {
|
|
8799
|
-
if (e === "__proto__")
|
|
8800
|
-
continue;
|
|
8801
|
-
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
8802
|
-
continue;
|
|
8803
|
-
const objProp = obj[e];
|
|
8804
|
-
const paramsProp = params[e];
|
|
8805
|
-
if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
|
|
8806
|
-
overwriteDeep(objProp, paramsProp);
|
|
8807
|
-
} else if (paramsProp !== void 0) {
|
|
8808
|
-
obj[e] = paramsProp;
|
|
8809
|
-
}
|
|
8810
|
-
}
|
|
8811
|
-
return obj;
|
|
8812
|
-
};
|
|
8813
|
-
var mergeIfExisted = (a, b) => {
|
|
8814
|
-
if ((0, import_types.isObjectLike)(a) && (0, import_types.isObjectLike)(b))
|
|
8815
|
-
return deepMerge7(a, b);
|
|
8816
|
-
return a || b;
|
|
8817
|
-
};
|
|
8818
|
-
var flattenRecursive = (param, prop, stack = []) => {
|
|
8819
|
-
const objectized = (0, import_array.mergeAndCloneIfArray)(param);
|
|
8820
|
-
stack.push(objectized);
|
|
8821
|
-
const extendOfExtend = objectized[prop];
|
|
8822
|
-
if (extendOfExtend)
|
|
8823
|
-
flattenRecursive(extendOfExtend, prop, stack);
|
|
8824
|
-
delete objectized[prop];
|
|
8825
|
-
return stack;
|
|
8826
|
-
};
|
|
8827
|
-
var isEqualDeep2 = (param, element) => {
|
|
8828
|
-
if (param === element)
|
|
8829
|
-
return true;
|
|
8830
|
-
if (!param || !element)
|
|
8831
|
-
return false;
|
|
8832
|
-
for (const prop in param) {
|
|
8833
|
-
const paramProp = param[prop];
|
|
8834
|
-
const elementProp = element[prop];
|
|
8835
|
-
if ((0, import_types.isObjectLike)(paramProp)) {
|
|
8836
|
-
const isEqual = isEqualDeep2(paramProp, elementProp);
|
|
8837
|
-
if (!isEqual)
|
|
8838
|
-
return false;
|
|
8839
|
-
} else {
|
|
8840
|
-
const isEqual = paramProp === elementProp;
|
|
8841
|
-
if (!isEqual)
|
|
8842
|
-
return false;
|
|
8843
|
-
}
|
|
8844
|
-
}
|
|
8845
|
-
return true;
|
|
8846
|
-
};
|
|
8847
|
-
var removeFromObject = (obj, props4) => {
|
|
8848
|
-
if (props4 === void 0 || props4 === null)
|
|
8849
|
-
return obj;
|
|
8850
|
-
if ((0, import_types.is)(props4)("string", "number")) {
|
|
8851
|
-
delete obj[props4];
|
|
8852
|
-
} else if ((0, import_types.isArray)(props4)) {
|
|
8853
|
-
props4.forEach((prop) => delete obj[prop]);
|
|
8854
|
-
} else {
|
|
8855
|
-
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
8856
|
-
}
|
|
8857
|
-
return obj;
|
|
8858
|
-
};
|
|
8859
|
-
}
|
|
8860
|
-
});
|
|
8861
|
-
|
|
8862
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/function.js
|
|
8863
|
-
var require_function2 = __commonJS({
|
|
8864
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
|
|
8865
|
-
"use strict";
|
|
8866
|
-
var __defProp2 = Object.defineProperty;
|
|
8867
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8868
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8869
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8870
|
-
var __export2 = (target, all) => {
|
|
8871
|
-
for (var name in all)
|
|
8872
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8873
|
-
};
|
|
8874
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
8875
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
8876
|
-
for (let key of __getOwnPropNames2(from2))
|
|
8877
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8878
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
8879
|
-
}
|
|
8880
|
-
return to;
|
|
8881
|
-
};
|
|
8882
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8883
|
-
var function_exports = {};
|
|
8884
|
-
__export2(function_exports, {
|
|
8885
|
-
debounce: () => debounce,
|
|
8886
|
-
memoize: () => memoize2
|
|
8887
|
-
});
|
|
8888
|
-
module2.exports = __toCommonJS2(function_exports);
|
|
8889
|
-
var debounce = (element, func, timeout = 300) => {
|
|
8890
|
-
let timer;
|
|
8891
|
-
return (...args) => {
|
|
8892
|
-
clearTimeout(timer);
|
|
8893
|
-
timer = setTimeout(() => {
|
|
8894
|
-
func.apply(element, args);
|
|
8895
|
-
}, timeout);
|
|
8896
|
-
};
|
|
8897
|
-
};
|
|
8898
|
-
var memoize2 = (fn) => {
|
|
8899
|
-
const cache2 = {};
|
|
8900
|
-
return (...args) => {
|
|
8901
|
-
const n = args[0];
|
|
8902
|
-
if (n in cache2) {
|
|
8903
|
-
return cache2[n];
|
|
8904
|
-
} else {
|
|
8905
|
-
const result = fn(n);
|
|
8906
|
-
cache2[n] = result;
|
|
8907
|
-
return result;
|
|
8908
|
-
}
|
|
8909
|
-
};
|
|
8910
|
-
};
|
|
8911
|
-
}
|
|
8912
|
-
});
|
|
8913
|
-
|
|
8914
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/log.js
|
|
8915
|
-
var require_log2 = __commonJS({
|
|
8916
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
|
|
8917
|
-
"use strict";
|
|
8918
|
-
var __defProp2 = Object.defineProperty;
|
|
8919
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8920
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8921
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8922
|
-
var __export2 = (target, all) => {
|
|
8923
|
-
for (var name in all)
|
|
8924
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8925
|
-
};
|
|
8926
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
8927
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
8928
|
-
for (let key of __getOwnPropNames2(from2))
|
|
8929
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8930
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
8931
|
-
}
|
|
8932
|
-
return to;
|
|
8933
|
-
};
|
|
8934
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8935
|
-
var log_exports = {};
|
|
8936
|
-
__export2(log_exports, {
|
|
8937
|
-
logGroupIf: () => logGroupIf,
|
|
8938
|
-
logIf: () => logIf
|
|
8939
|
-
});
|
|
8940
|
-
module2.exports = __toCommonJS2(log_exports);
|
|
8941
|
-
var logIf = (bool, ...arg) => {
|
|
8942
|
-
if (bool)
|
|
8943
|
-
arg.map((v) => console.log(v));
|
|
8944
|
-
};
|
|
8945
|
-
var logGroupIf = (bool, key, ...arg) => {
|
|
8946
|
-
if (bool) {
|
|
8947
|
-
console.group(key);
|
|
8948
|
-
arg.map((v) => console.log(v));
|
|
8949
|
-
console.groupEnd(key);
|
|
8950
|
-
}
|
|
8951
|
-
};
|
|
8952
|
-
}
|
|
8953
|
-
});
|
|
8954
|
-
|
|
8955
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/cookie.js
|
|
8956
|
-
var require_cookie2 = __commonJS({
|
|
8957
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
|
|
8958
|
-
"use strict";
|
|
8959
|
-
var __defProp2 = Object.defineProperty;
|
|
8960
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
8961
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
8962
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
8963
|
-
var __export2 = (target, all) => {
|
|
8964
|
-
for (var name in all)
|
|
8965
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
8966
|
-
};
|
|
8967
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
8968
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
8969
|
-
for (let key of __getOwnPropNames2(from2))
|
|
8970
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
8971
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
8972
|
-
}
|
|
8973
|
-
return to;
|
|
8974
|
-
};
|
|
8975
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
8976
|
-
var cookie_exports = {};
|
|
8977
|
-
__export2(cookie_exports, {
|
|
8978
|
-
getCookie: () => getCookie,
|
|
8979
|
-
isMobile: () => isMobile,
|
|
8980
|
-
setCookie: () => setCookie
|
|
8981
|
-
});
|
|
8982
|
-
module2.exports = __toCommonJS2(cookie_exports);
|
|
8983
|
-
var import_types = require_types2();
|
|
8984
|
-
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
8985
|
-
var setCookie = (cname, cvalue, exdays = 365) => {
|
|
8986
|
-
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
|
|
8987
|
-
return;
|
|
8988
|
-
const d = /* @__PURE__ */ new Date();
|
|
8989
|
-
d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
|
|
8990
|
-
const expires = `expires=${d.toUTCString()}`;
|
|
8991
|
-
document.cookie = `${cname}=${cvalue};${expires};path=/`;
|
|
8992
|
-
};
|
|
8993
|
-
var getCookie = (cname) => {
|
|
8994
|
-
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
|
|
8995
|
-
return;
|
|
8996
|
-
const name = `${cname}=`;
|
|
8997
|
-
const decodedCookie = decodeURIComponent(document.cookie);
|
|
8998
|
-
const ca = decodedCookie.split(";");
|
|
8999
|
-
for (let i2 = 0; i2 < ca.length; i2++) {
|
|
9000
|
-
let c = ca[i2];
|
|
9001
|
-
while (c.charAt(0) === " ")
|
|
9002
|
-
c = c.substring(1);
|
|
9003
|
-
if (c.indexOf(name) === 0)
|
|
9004
|
-
return c.substring(name.length, c.length);
|
|
7796
|
+
ref.__defineCache[param] = execParam(element, element.state, element.context);
|
|
7797
|
+
const cached = (0, import_utils28.exec)(ref.__defineCache[param], element);
|
|
7798
|
+
const newExecParam = obj[param](cached, element, element.state, element.context);
|
|
7799
|
+
if (newExecParam)
|
|
7800
|
+
element[param] = newExecParam;
|
|
9005
7801
|
}
|
|
9006
|
-
return
|
|
7802
|
+
return changes;
|
|
9007
7803
|
};
|
|
9008
7804
|
}
|
|
9009
7805
|
});
|
|
9010
7806
|
|
|
9011
|
-
//
|
|
9012
|
-
var
|
|
9013
|
-
"
|
|
7807
|
+
// ../../node_modules/@domql/element/dist/cjs/applyParam.js
|
|
7808
|
+
var require_applyParam = __commonJS({
|
|
7809
|
+
"../../node_modules/@domql/element/dist/cjs/applyParam.js"(exports, module2) {
|
|
9014
7810
|
"use strict";
|
|
9015
7811
|
var __defProp2 = Object.defineProperty;
|
|
9016
7812
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -9029,158 +7825,48 @@ var require_tags2 = __commonJS({
|
|
|
9029
7825
|
return to;
|
|
9030
7826
|
};
|
|
9031
7827
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
9032
|
-
var
|
|
9033
|
-
__export2(
|
|
9034
|
-
|
|
9035
|
-
isValidHtmlTag: () => isValidHtmlTag
|
|
7828
|
+
var applyParam_exports = {};
|
|
7829
|
+
__export2(applyParam_exports, {
|
|
7830
|
+
applyParam: () => applyParam
|
|
9036
7831
|
});
|
|
9037
|
-
module2.exports = __toCommonJS2(
|
|
9038
|
-
var
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
]
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
"area",
|
|
9058
|
-
"article",
|
|
9059
|
-
"aside",
|
|
9060
|
-
"audio",
|
|
9061
|
-
"b",
|
|
9062
|
-
"basefont",
|
|
9063
|
-
"bdi",
|
|
9064
|
-
"bdo",
|
|
9065
|
-
"big",
|
|
9066
|
-
"blockquote",
|
|
9067
|
-
"br",
|
|
9068
|
-
"button",
|
|
9069
|
-
"canvas",
|
|
9070
|
-
"caption",
|
|
9071
|
-
"center",
|
|
9072
|
-
"cite",
|
|
9073
|
-
"code",
|
|
9074
|
-
"col",
|
|
9075
|
-
"colgroup",
|
|
9076
|
-
"data",
|
|
9077
|
-
"datalist",
|
|
9078
|
-
"dd",
|
|
9079
|
-
"del",
|
|
9080
|
-
"details",
|
|
9081
|
-
"dfn",
|
|
9082
|
-
"dialog",
|
|
9083
|
-
"dir",
|
|
9084
|
-
"div",
|
|
9085
|
-
"dl",
|
|
9086
|
-
"dt",
|
|
9087
|
-
"em",
|
|
9088
|
-
"embed",
|
|
9089
|
-
"fieldset",
|
|
9090
|
-
"figcaption",
|
|
9091
|
-
"figure",
|
|
9092
|
-
"font",
|
|
9093
|
-
"footer",
|
|
9094
|
-
"form",
|
|
9095
|
-
"frame",
|
|
9096
|
-
"frameset",
|
|
9097
|
-
"h1",
|
|
9098
|
-
"h2",
|
|
9099
|
-
"h3",
|
|
9100
|
-
"h4",
|
|
9101
|
-
"h5",
|
|
9102
|
-
"h6",
|
|
9103
|
-
"head",
|
|
9104
|
-
"header",
|
|
9105
|
-
"hr",
|
|
9106
|
-
"i",
|
|
9107
|
-
"iframe",
|
|
9108
|
-
"img",
|
|
9109
|
-
"input",
|
|
9110
|
-
"ins",
|
|
9111
|
-
"kbd",
|
|
9112
|
-
"label",
|
|
9113
|
-
"legend",
|
|
9114
|
-
"li",
|
|
9115
|
-
"link",
|
|
9116
|
-
"main",
|
|
9117
|
-
"map",
|
|
9118
|
-
"mark",
|
|
9119
|
-
"meter",
|
|
9120
|
-
"nav",
|
|
9121
|
-
"noframes",
|
|
9122
|
-
"noscript",
|
|
9123
|
-
"object",
|
|
9124
|
-
"ol",
|
|
9125
|
-
"optgroup",
|
|
9126
|
-
"option",
|
|
9127
|
-
"output",
|
|
9128
|
-
"p",
|
|
9129
|
-
"param",
|
|
9130
|
-
"picture",
|
|
9131
|
-
"pre",
|
|
9132
|
-
"progress",
|
|
9133
|
-
"q",
|
|
9134
|
-
"rp",
|
|
9135
|
-
"rt",
|
|
9136
|
-
"ruby",
|
|
9137
|
-
"s",
|
|
9138
|
-
"samp",
|
|
9139
|
-
"script",
|
|
9140
|
-
"section",
|
|
9141
|
-
"select",
|
|
9142
|
-
"small",
|
|
9143
|
-
"source",
|
|
9144
|
-
"span",
|
|
9145
|
-
"strike",
|
|
9146
|
-
"strong",
|
|
9147
|
-
"sub",
|
|
9148
|
-
"summary",
|
|
9149
|
-
"sup",
|
|
9150
|
-
"table",
|
|
9151
|
-
"tbody",
|
|
9152
|
-
"td",
|
|
9153
|
-
"template",
|
|
9154
|
-
"textarea",
|
|
9155
|
-
"tfoot",
|
|
9156
|
-
"th",
|
|
9157
|
-
"thead",
|
|
9158
|
-
"time",
|
|
9159
|
-
"tr",
|
|
9160
|
-
"track",
|
|
9161
|
-
"tt",
|
|
9162
|
-
"u",
|
|
9163
|
-
"ul",
|
|
9164
|
-
"var",
|
|
9165
|
-
"video",
|
|
9166
|
-
"wbr",
|
|
9167
|
-
// SVG
|
|
9168
|
-
"svg",
|
|
9169
|
-
"path"
|
|
9170
|
-
]
|
|
7832
|
+
module2.exports = __toCommonJS2(applyParam_exports);
|
|
7833
|
+
var import_utils28 = require_cjs();
|
|
7834
|
+
var import_mixins = require_mixins();
|
|
7835
|
+
var applyParam = (param, element, options) => {
|
|
7836
|
+
const { node: node2, context, __ref: ref } = element;
|
|
7837
|
+
const prop = element[param];
|
|
7838
|
+
const DOMQLProperty = import_mixins.registry[param];
|
|
7839
|
+
const DOMQLPropertyFromContext = context && context.registry && context.registry[param];
|
|
7840
|
+
const isGlobalTransformer = DOMQLPropertyFromContext || DOMQLProperty;
|
|
7841
|
+
const hasDefine = element.define && element.define[param];
|
|
7842
|
+
const hasContextDefine = context && context.define && context.define[param];
|
|
7843
|
+
if (!ref.__if)
|
|
7844
|
+
return;
|
|
7845
|
+
if (isGlobalTransformer && !hasContextDefine) {
|
|
7846
|
+
if ((0, import_utils28.isFunction)(isGlobalTransformer)) {
|
|
7847
|
+
isGlobalTransformer(prop, element, node2, options);
|
|
7848
|
+
return;
|
|
7849
|
+
}
|
|
7850
|
+
}
|
|
7851
|
+
return { hasDefine, hasContextDefine };
|
|
9171
7852
|
};
|
|
9172
|
-
var isValidHtmlTag = (arg) => HTML_TAGS.body.includes(arg);
|
|
9173
7853
|
}
|
|
9174
7854
|
});
|
|
9175
7855
|
|
|
9176
|
-
//
|
|
9177
|
-
var
|
|
9178
|
-
"
|
|
7856
|
+
// ../../node_modules/@domql/element/dist/cjs/node.js
|
|
7857
|
+
var require_node2 = __commonJS({
|
|
7858
|
+
"../../node_modules/@domql/element/dist/cjs/node.js"(exports, module2) {
|
|
9179
7859
|
"use strict";
|
|
7860
|
+
var __create2 = Object.create;
|
|
9180
7861
|
var __defProp2 = Object.defineProperty;
|
|
9181
7862
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
9182
7863
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
7864
|
+
var __getProtoOf2 = Object.getPrototypeOf;
|
|
9183
7865
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
7866
|
+
var __export2 = (target, all) => {
|
|
7867
|
+
for (var name in all)
|
|
7868
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
7869
|
+
};
|
|
9184
7870
|
var __copyProps2 = (to, from2, except, desc) => {
|
|
9185
7871
|
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
9186
7872
|
for (let key of __getOwnPropNames2(from2))
|
|
@@ -9189,28 +7875,80 @@ var require_cjs11 = __commonJS({
|
|
|
9189
7875
|
}
|
|
9190
7876
|
return to;
|
|
9191
7877
|
};
|
|
9192
|
-
var
|
|
7878
|
+
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
7879
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
7880
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
7881
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
7882
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
7883
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
7884
|
+
mod
|
|
7885
|
+
));
|
|
9193
7886
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
9194
|
-
var
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
7887
|
+
var node_exports = {};
|
|
7888
|
+
__export2(node_exports, {
|
|
7889
|
+
createNode: () => createNode,
|
|
7890
|
+
default: () => node_default
|
|
7891
|
+
});
|
|
7892
|
+
module2.exports = __toCommonJS2(node_exports);
|
|
7893
|
+
var import_utils28 = require_cjs();
|
|
7894
|
+
var import_event = require_cjs5();
|
|
7895
|
+
var import_render = require_cjs9();
|
|
7896
|
+
var import_methods = require_methods2();
|
|
7897
|
+
var import_create = __toESM2(require_create4(), 1);
|
|
7898
|
+
var import_iterate = require_iterate();
|
|
7899
|
+
var import_mixins = require_mixins();
|
|
7900
|
+
var import_applyParam = require_applyParam();
|
|
7901
|
+
var import_utils29 = require_utils();
|
|
7902
|
+
var ENV2 = "development";
|
|
7903
|
+
var createNode = (element, options) => {
|
|
7904
|
+
let { node: node2, tag, __ref: ref } = element;
|
|
7905
|
+
let isNewNode;
|
|
7906
|
+
if (!node2) {
|
|
7907
|
+
isNewNode = true;
|
|
7908
|
+
if (!ref.__if)
|
|
7909
|
+
return element;
|
|
7910
|
+
if (tag === "shadow") {
|
|
7911
|
+
node2 = element.node = element.parent.node.attachShadow({ mode: "open" });
|
|
7912
|
+
} else
|
|
7913
|
+
node2 = element.node = (0, import_render.cacheNode)(element);
|
|
7914
|
+
(0, import_event.triggerEventOn)("attachNode", element, options);
|
|
7915
|
+
}
|
|
7916
|
+
if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
|
|
7917
|
+
node2.ref = element;
|
|
7918
|
+
if ((0, import_utils28.isFunction)(node2.setAttribute))
|
|
7919
|
+
node2.setAttribute("key", element.key);
|
|
7920
|
+
}
|
|
7921
|
+
(0, import_iterate.throughInitialDefine)(element);
|
|
7922
|
+
(0, import_iterate.throughInitialExec)(element);
|
|
7923
|
+
if (element.tag !== "string" && element.tag !== "fragment") {
|
|
7924
|
+
if (isNewNode && (0, import_utils28.isObject)(element.on))
|
|
7925
|
+
(0, import_event.applyEventsOnNode)(element, options);
|
|
7926
|
+
}
|
|
7927
|
+
for (const param in element) {
|
|
7928
|
+
const value2 = element[param];
|
|
7929
|
+
if ((0, import_utils28.isUndefined)(value2) || (0, import_methods.isMethod)(param) || (0, import_utils29.isVariant)(param) || (0, import_utils28.isObject)(import_mixins.registry[param]))
|
|
7930
|
+
continue;
|
|
7931
|
+
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
|
7932
|
+
if (isElement) {
|
|
7933
|
+
const { hasDefine, hasContextDefine } = isElement;
|
|
7934
|
+
if (element[param] && !hasDefine && !hasContextDefine) {
|
|
7935
|
+
const createAsync2 = () => (0, import_create.default)((0, import_utils28.exec)(value2, element), element, param, options);
|
|
7936
|
+
if (element.props && element.props.lazyLoad || options.lazyLoad) {
|
|
7937
|
+
window.requestAnimationFrame(() => createAsync2());
|
|
7938
|
+
} else
|
|
7939
|
+
createAsync2();
|
|
7940
|
+
}
|
|
7941
|
+
}
|
|
7942
|
+
}
|
|
7943
|
+
return element;
|
|
7944
|
+
};
|
|
7945
|
+
var node_default = createNode;
|
|
9208
7946
|
}
|
|
9209
7947
|
});
|
|
9210
7948
|
|
|
9211
|
-
//
|
|
7949
|
+
// ../../node_modules/@domql/registry/dist/cjs/methods.js
|
|
9212
7950
|
var require_methods3 = __commonJS({
|
|
9213
|
-
"
|
|
7951
|
+
"../../node_modules/@domql/registry/dist/cjs/methods.js"(exports, module2) {
|
|
9214
7952
|
"use strict";
|
|
9215
7953
|
var __defProp2 = Object.defineProperty;
|
|
9216
7954
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -9234,7 +7972,7 @@ var require_methods3 = __commonJS({
|
|
|
9234
7972
|
DEFAULT_METHODS: () => DEFAULT_METHODS
|
|
9235
7973
|
});
|
|
9236
7974
|
module2.exports = __toCommonJS2(methods_exports);
|
|
9237
|
-
var
|
|
7975
|
+
var import_utils28 = require_cjs();
|
|
9238
7976
|
var DEFAULT_METHODS = {
|
|
9239
7977
|
key: {},
|
|
9240
7978
|
tag: {},
|
|
@@ -9255,7 +7993,7 @@ var require_methods3 = __commonJS({
|
|
|
9255
7993
|
text: (element, state) => {
|
|
9256
7994
|
element.ref.text = {
|
|
9257
7995
|
tag: "text",
|
|
9258
|
-
text: (0,
|
|
7996
|
+
text: (0, import_utils28.exec)(element.text, element, state)
|
|
9259
7997
|
};
|
|
9260
7998
|
},
|
|
9261
7999
|
innerHTML: {},
|
|
@@ -9266,9 +8004,9 @@ var require_methods3 = __commonJS({
|
|
|
9266
8004
|
}
|
|
9267
8005
|
});
|
|
9268
8006
|
|
|
9269
|
-
//
|
|
9270
|
-
var
|
|
9271
|
-
"
|
|
8007
|
+
// ../../node_modules/@domql/registry/dist/cjs/tags.js
|
|
8008
|
+
var require_tags2 = __commonJS({
|
|
8009
|
+
"../../node_modules/@domql/registry/dist/cjs/tags.js"(exports, module2) {
|
|
9272
8010
|
"use strict";
|
|
9273
8011
|
var __defProp2 = Object.defineProperty;
|
|
9274
8012
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -9431,9 +8169,9 @@ var require_tags3 = __commonJS({
|
|
|
9431
8169
|
}
|
|
9432
8170
|
});
|
|
9433
8171
|
|
|
9434
|
-
//
|
|
9435
|
-
var
|
|
9436
|
-
"
|
|
8172
|
+
// ../../node_modules/@domql/registry/dist/cjs/index.js
|
|
8173
|
+
var require_cjs10 = __commonJS({
|
|
8174
|
+
"../../node_modules/@domql/registry/dist/cjs/index.js"(exports, module2) {
|
|
9437
8175
|
"use strict";
|
|
9438
8176
|
var __defProp2 = Object.defineProperty;
|
|
9439
8177
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -9452,13 +8190,13 @@ var require_cjs12 = __commonJS({
|
|
|
9452
8190
|
var registry_exports = {};
|
|
9453
8191
|
module2.exports = __toCommonJS2(registry_exports);
|
|
9454
8192
|
__reExport2(registry_exports, require_methods3(), module2.exports);
|
|
9455
|
-
__reExport2(registry_exports,
|
|
8193
|
+
__reExport2(registry_exports, require_tags2(), module2.exports);
|
|
9456
8194
|
}
|
|
9457
8195
|
});
|
|
9458
8196
|
|
|
9459
|
-
//
|
|
8197
|
+
// ../../node_modules/@domql/element/dist/cjs/update.js
|
|
9460
8198
|
var require_update2 = __commonJS({
|
|
9461
|
-
"
|
|
8199
|
+
"../../node_modules/@domql/element/dist/cjs/update.js"(exports, module2) {
|
|
9462
8200
|
"use strict";
|
|
9463
8201
|
var __create2 = Object.create;
|
|
9464
8202
|
var __defProp2 = Object.defineProperty;
|
|
@@ -9492,19 +8230,19 @@ var require_update2 = __commonJS({
|
|
|
9492
8230
|
default: () => update_default
|
|
9493
8231
|
});
|
|
9494
8232
|
module2.exports = __toCommonJS2(update_exports);
|
|
9495
|
-
var
|
|
9496
|
-
var import_event =
|
|
8233
|
+
var import_utils28 = require_cjs();
|
|
8234
|
+
var import_event = require_cjs5();
|
|
9497
8235
|
var import_methods = require_methods2();
|
|
9498
8236
|
var import_props = require_props();
|
|
9499
|
-
var import_state2 =
|
|
9500
|
-
var
|
|
8237
|
+
var import_state2 = require_cjs6();
|
|
8238
|
+
var import_utils29 = require_utils();
|
|
9501
8239
|
var import_create = __toESM2(require_create4(), 1);
|
|
9502
8240
|
var import_iterate = require_iterate();
|
|
9503
8241
|
var import_mixins = require_mixins();
|
|
9504
8242
|
var import_applyParam = require_applyParam();
|
|
9505
8243
|
var import_options3 = __toESM2(require_options(), 1);
|
|
9506
8244
|
var snapshot = {
|
|
9507
|
-
snapshotId:
|
|
8245
|
+
snapshotId: import_utils28.createSnapshotId
|
|
9508
8246
|
};
|
|
9509
8247
|
var UPDATE_DEFAULT_OPTIONS = {
|
|
9510
8248
|
stackChanges: false,
|
|
@@ -9512,7 +8250,7 @@ var require_update2 = __commonJS({
|
|
|
9512
8250
|
preventRecursive: false,
|
|
9513
8251
|
currentSnapshot: false,
|
|
9514
8252
|
calleeElement: false,
|
|
9515
|
-
excludes:
|
|
8253
|
+
excludes: import_utils29.METHODS_EXL
|
|
9516
8254
|
};
|
|
9517
8255
|
var update = function(params = {}, options = UPDATE_DEFAULT_OPTIONS) {
|
|
9518
8256
|
const element = this;
|
|
@@ -9522,14 +8260,14 @@ var require_update2 = __commonJS({
|
|
|
9522
8260
|
if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
|
|
9523
8261
|
return;
|
|
9524
8262
|
if (!excludes)
|
|
9525
|
-
(0,
|
|
8263
|
+
(0, import_utils28.merge)(options, UPDATE_DEFAULT_OPTIONS);
|
|
9526
8264
|
let ref = element.__ref;
|
|
9527
8265
|
if (!ref)
|
|
9528
8266
|
ref = element.__ref = {};
|
|
9529
8267
|
const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
|
|
9530
8268
|
if (snapshotHasUpdated)
|
|
9531
8269
|
return;
|
|
9532
|
-
if ((0,
|
|
8270
|
+
if ((0, import_utils28.isString)(params) || (0, import_utils28.isNumber)(params)) {
|
|
9533
8271
|
params = { text: params };
|
|
9534
8272
|
}
|
|
9535
8273
|
const inheritState = inheritStateUpdates(element, options);
|
|
@@ -9540,7 +8278,7 @@ var require_update2 = __commonJS({
|
|
|
9540
8278
|
return;
|
|
9541
8279
|
if (ref.__if && !options.preventPropsUpdate) {
|
|
9542
8280
|
const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
|
|
9543
|
-
const hasFunctionInProps = ref.__props.filter((v) => (0,
|
|
8281
|
+
const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils28.isFunction)(v));
|
|
9544
8282
|
const props4 = params.props || hasParentProps || hasFunctionInProps.length;
|
|
9545
8283
|
if (props4)
|
|
9546
8284
|
(0, import_props.updateProps)(props4, element, parent);
|
|
@@ -9550,14 +8288,14 @@ var require_update2 = __commonJS({
|
|
|
9550
8288
|
if (initUpdateReturns === false)
|
|
9551
8289
|
return element;
|
|
9552
8290
|
}
|
|
9553
|
-
const overwriteChanges = (0,
|
|
8291
|
+
const overwriteChanges = (0, import_utils28.overwriteDeep)(element, params, import_utils29.METHODS_EXL);
|
|
9554
8292
|
const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
|
|
9555
8293
|
const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
|
|
9556
8294
|
if (!options.isForced) {
|
|
9557
8295
|
(0, import_event.triggerEventOn)("beforeClassAssign", element, options);
|
|
9558
8296
|
}
|
|
9559
8297
|
if (options.stackChanges && element.__stackChanges) {
|
|
9560
|
-
const stackChanges = (0,
|
|
8298
|
+
const stackChanges = (0, import_utils28.merge)(definedChanges, (0, import_utils28.merge)(execChanges, overwriteChanges));
|
|
9561
8299
|
element.__stackChanges.push(stackChanges);
|
|
9562
8300
|
}
|
|
9563
8301
|
if (!ref.__if)
|
|
@@ -9568,16 +8306,16 @@ var require_update2 = __commonJS({
|
|
|
9568
8306
|
for (const param in element) {
|
|
9569
8307
|
const prop = element[param];
|
|
9570
8308
|
const hasOnlyUpdateFalsy = options.onlyUpdate && (options.onlyUpdate !== param || !element.lookup(options.onlyUpdate));
|
|
9571
|
-
const isInPreventUpdate = (0,
|
|
9572
|
-
const isInPreventDefineUpdate = (0,
|
|
9573
|
-
if ((0,
|
|
8309
|
+
const isInPreventUpdate = (0, import_utils28.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
|
|
8310
|
+
const isInPreventDefineUpdate = (0, import_utils28.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
|
|
8311
|
+
if ((0, import_utils28.isUndefined)(prop) || hasOnlyUpdateFalsy || isInPreventUpdate || isInPreventDefineUpdate || options.preventDefineUpdate === true || options.preventDefineUpdate === param || options.preventContentUpdate && param === "content" || (options.preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils28.isObject)(import_mixins.registry[param]) || (0, import_utils29.isVariant)(param))
|
|
9574
8312
|
continue;
|
|
9575
8313
|
if (options.preventStateUpdate === "once")
|
|
9576
8314
|
options.preventStateUpdate = false;
|
|
9577
8315
|
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
|
9578
8316
|
if (isElement) {
|
|
9579
8317
|
const { hasDefine, hasContextDefine } = isElement;
|
|
9580
|
-
const canUpdate = (0,
|
|
8318
|
+
const canUpdate = (0, import_utils28.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
|
|
9581
8319
|
if (!canUpdate)
|
|
9582
8320
|
continue;
|
|
9583
8321
|
const lazyLoad = element.props.lazyLoad || options.lazyLoad;
|
|
@@ -9586,7 +8324,7 @@ var require_update2 = __commonJS({
|
|
|
9586
8324
|
currentSnapshot: snapshotOnCallee,
|
|
9587
8325
|
calleeElement
|
|
9588
8326
|
});
|
|
9589
|
-
lazyLoad ?
|
|
8327
|
+
lazyLoad ? import_utils28.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
|
|
9590
8328
|
}
|
|
9591
8329
|
}
|
|
9592
8330
|
if (!options.preventUpdateListener)
|
|
@@ -9609,7 +8347,7 @@ var require_update2 = __commonJS({
|
|
|
9609
8347
|
};
|
|
9610
8348
|
var checkIfOnUpdate = (element, parent, options) => {
|
|
9611
8349
|
var _a;
|
|
9612
|
-
if (!(0,
|
|
8350
|
+
if (!(0, import_utils28.isFunction)(element.if) || !parent)
|
|
9613
8351
|
return;
|
|
9614
8352
|
const ref = element.__ref;
|
|
9615
8353
|
const ifPassed = element.if(element, element.state, element.context, options);
|
|
@@ -9635,7 +8373,7 @@ var require_update2 = __commonJS({
|
|
|
9635
8373
|
node: hasPrevious || hasNext
|
|
9636
8374
|
};
|
|
9637
8375
|
const created = (0, import_create.default)(element, parent, element.key, import_options3.default.create, attachOptions);
|
|
9638
|
-
if (options.preventUpdate !== true && element.on && (0,
|
|
8376
|
+
if (options.preventUpdate !== true && element.on && (0, import_utils28.isFunction)(element.on.update)) {
|
|
9639
8377
|
(0, import_event.applyEvent)(element.on.update, created, created.state);
|
|
9640
8378
|
}
|
|
9641
8379
|
return created;
|
|
@@ -9656,9 +8394,9 @@ var require_update2 = __commonJS({
|
|
|
9656
8394
|
element.state = parent && parent.state || {};
|
|
9657
8395
|
return;
|
|
9658
8396
|
}
|
|
9659
|
-
const shouldForceFunctionState = (0,
|
|
8397
|
+
const shouldForceFunctionState = (0, import_utils28.isFunction)(stateKey) && !isHoisted && execStateFunction;
|
|
9660
8398
|
if (shouldForceFunctionState) {
|
|
9661
|
-
const execState = (0,
|
|
8399
|
+
const execState = (0, import_utils28.exec)(stateKey, element);
|
|
9662
8400
|
state.set(execState, { ...options, preventUpdate: true, updatedByStateFunction: true });
|
|
9663
8401
|
return;
|
|
9664
8402
|
}
|
|
@@ -9690,9 +8428,9 @@ var require_update2 = __commonJS({
|
|
|
9690
8428
|
}
|
|
9691
8429
|
});
|
|
9692
8430
|
|
|
9693
|
-
//
|
|
8431
|
+
// ../../node_modules/@domql/element/dist/cjs/methods/set.js
|
|
9694
8432
|
var require_set2 = __commonJS({
|
|
9695
|
-
"
|
|
8433
|
+
"../../node_modules/@domql/element/dist/cjs/methods/set.js"(exports, module2) {
|
|
9696
8434
|
"use strict";
|
|
9697
8435
|
var __create2 = Object.create;
|
|
9698
8436
|
var __defProp2 = Object.defineProperty;
|
|
@@ -9726,7 +8464,7 @@ var require_set2 = __commonJS({
|
|
|
9726
8464
|
addMethods: () => addMethods
|
|
9727
8465
|
});
|
|
9728
8466
|
module2.exports = __toCommonJS2(set_exports);
|
|
9729
|
-
var
|
|
8467
|
+
var import_utils28 = require_cjs();
|
|
9730
8468
|
var import_set = __toESM2(require_set(), 1);
|
|
9731
8469
|
var import_update = __toESM2(require_update2(), 1);
|
|
9732
8470
|
var import__ = require_methods2();
|
|
@@ -9747,16 +8485,16 @@ var require_set2 = __commonJS({
|
|
|
9747
8485
|
nextElement: import__.nextElement.bind(element),
|
|
9748
8486
|
previousElement: import__.previousElement.bind(element)
|
|
9749
8487
|
};
|
|
9750
|
-
if ((0,
|
|
8488
|
+
if ((0, import_utils28.isDevelopment)())
|
|
9751
8489
|
proto.log = import__.log.bind(element);
|
|
9752
8490
|
Object.setPrototypeOf(element, proto);
|
|
9753
8491
|
};
|
|
9754
8492
|
}
|
|
9755
8493
|
});
|
|
9756
8494
|
|
|
9757
|
-
//
|
|
8495
|
+
// ../../node_modules/@domql/element/dist/cjs/create.js
|
|
9758
8496
|
var require_create4 = __commonJS({
|
|
9759
|
-
"
|
|
8497
|
+
"../../node_modules/@domql/element/dist/cjs/create.js"(exports, module2) {
|
|
9760
8498
|
"use strict";
|
|
9761
8499
|
var __create2 = Object.create;
|
|
9762
8500
|
var __defProp2 = Object.defineProperty;
|
|
@@ -9792,10 +8530,10 @@ var require_create4 = __commonJS({
|
|
|
9792
8530
|
module2.exports = __toCommonJS2(create_exports);
|
|
9793
8531
|
var import_node = __toESM2(require_node2(), 1);
|
|
9794
8532
|
var import_tree = require_tree();
|
|
9795
|
-
var import_registry =
|
|
9796
|
-
var import_event =
|
|
9797
|
-
var import_render =
|
|
9798
|
-
var import_state2 =
|
|
8533
|
+
var import_registry = require_cjs10();
|
|
8534
|
+
var import_event = require_cjs5();
|
|
8535
|
+
var import_render = require_cjs9();
|
|
8536
|
+
var import_state2 = require_cjs6();
|
|
9799
8537
|
var import_methods = require_methods2();
|
|
9800
8538
|
var import_props = require_props();
|
|
9801
8539
|
var import_extend = require_extend();
|
|
@@ -9803,7 +8541,7 @@ var require_create4 = __commonJS({
|
|
|
9803
8541
|
var import_set = require_set2();
|
|
9804
8542
|
var import_classList = require_classList();
|
|
9805
8543
|
var import_iterate = require_iterate();
|
|
9806
|
-
var
|
|
8544
|
+
var import_utils28 = require_cjs();
|
|
9807
8545
|
var import_options3 = __toESM2(require_options(), 1);
|
|
9808
8546
|
var import_component = require_component();
|
|
9809
8547
|
var ENV2 = "development";
|
|
@@ -9816,7 +8554,7 @@ var require_create4 = __commonJS({
|
|
|
9816
8554
|
parent = redefineParent(element, parent, key);
|
|
9817
8555
|
key = createKey(element, parent, key);
|
|
9818
8556
|
const ref = addRef(element, parent, key);
|
|
9819
|
-
ref.__initialProps = (0,
|
|
8557
|
+
ref.__initialProps = (0, import_utils28.deepClone)(element.props, []);
|
|
9820
8558
|
applyContext(element, parent, options);
|
|
9821
8559
|
(0, import_component.applyComponentFromContext)(element, parent, options);
|
|
9822
8560
|
if (!ref.__skipCreate) {
|
|
@@ -9859,7 +8597,7 @@ var require_create4 = __commonJS({
|
|
|
9859
8597
|
}
|
|
9860
8598
|
return {};
|
|
9861
8599
|
}
|
|
9862
|
-
if ((0,
|
|
8600
|
+
if ((0, import_utils28.isString)(key) && key.slice(0, 2 === "__")) {
|
|
9863
8601
|
if (ENV2 === "test" || ENV2 === "development") {
|
|
9864
8602
|
console.warn(key, "seems like to be in __ref");
|
|
9865
8603
|
}
|
|
@@ -9886,7 +8624,7 @@ var require_create4 = __commonJS({
|
|
|
9886
8624
|
var redefineParent = (element, parent, key, options) => {
|
|
9887
8625
|
if (!parent)
|
|
9888
8626
|
return import_tree.ROOT;
|
|
9889
|
-
if ((0,
|
|
8627
|
+
if ((0, import_utils28.isNode)(parent)) {
|
|
9890
8628
|
const parentNodeWrapper = { key: ":root", node: parent };
|
|
9891
8629
|
import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
|
|
9892
8630
|
return parentNodeWrapper;
|
|
@@ -9900,7 +8638,7 @@ var require_create4 = __commonJS({
|
|
|
9900
8638
|
}
|
|
9901
8639
|
};
|
|
9902
8640
|
var createKey = (element, parent, key) => {
|
|
9903
|
-
return ((0,
|
|
8641
|
+
return ((0, import_utils28.exec)(key, element) || key || element.key || (0, import_utils28.generateKey)()).toString();
|
|
9904
8642
|
};
|
|
9905
8643
|
var addRef = (element, parent) => {
|
|
9906
8644
|
if (element.__ref)
|
|
@@ -9932,7 +8670,7 @@ var require_create4 = __commonJS({
|
|
|
9932
8670
|
(0, import_event.triggerEventOn)("render", element, options);
|
|
9933
8671
|
};
|
|
9934
8672
|
var checkIfPrimitive = (element) => {
|
|
9935
|
-
return (0,
|
|
8673
|
+
return (0, import_utils28.is)(element)("string", "number");
|
|
9936
8674
|
};
|
|
9937
8675
|
var applyValueAsText = (element, parent, key) => {
|
|
9938
8676
|
const extendTag = element.extend && element.extend.tag;
|
|
@@ -9956,7 +8694,7 @@ var require_create4 = __commonJS({
|
|
|
9956
8694
|
};
|
|
9957
8695
|
var createIfConditionFlag = (element, parent) => {
|
|
9958
8696
|
const { __ref: ref } = element;
|
|
9959
|
-
if ((0,
|
|
8697
|
+
if ((0, import_utils28.isFunction)(element.if) && !element.if(element, element.state)) {
|
|
9960
8698
|
delete ref.__if;
|
|
9961
8699
|
} else
|
|
9962
8700
|
ref.__if = true;
|
|
@@ -10015,7 +8753,7 @@ var require_create4 = __commonJS({
|
|
|
10015
8753
|
ref.__children = [];
|
|
10016
8754
|
(0, import_set.addMethods)(element, parent);
|
|
10017
8755
|
(0, import_state2.createState)(element, parent);
|
|
10018
|
-
if ((0,
|
|
8756
|
+
if ((0, import_utils28.isFunction)(element.if)) {
|
|
10019
8757
|
const ifPassed = element.if(element, element.state);
|
|
10020
8758
|
if (!ifPassed) {
|
|
10021
8759
|
delete ref.__if;
|
|
@@ -10035,7 +8773,7 @@ var require_create4 = __commonJS({
|
|
|
10035
8773
|
(0, import_iterate.throughInitialDefine)(element);
|
|
10036
8774
|
(0, import_iterate.throughInitialExec)(element);
|
|
10037
8775
|
for (const k in element) {
|
|
10038
|
-
if ((0,
|
|
8776
|
+
if ((0, import_utils28.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils28.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
|
|
10039
8777
|
continue;
|
|
10040
8778
|
const hasDefine = element.define && element.define[k];
|
|
10041
8779
|
const contextHasDefine = element.context && element.context.define && element.context.define[k];
|
|
@@ -10043,7 +8781,7 @@ var require_create4 = __commonJS({
|
|
|
10043
8781
|
if (!ref.__skipCreate && import_mixins.registry[k] && !optionsHasDefine) {
|
|
10044
8782
|
continue;
|
|
10045
8783
|
} else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
|
|
10046
|
-
create2((0,
|
|
8784
|
+
create2((0, import_utils28.exec)(element[k], element), element, k, options);
|
|
10047
8785
|
}
|
|
10048
8786
|
}
|
|
10049
8787
|
}
|
|
@@ -10080,9 +8818,9 @@ var require_create4 = __commonJS({
|
|
|
10080
8818
|
}
|
|
10081
8819
|
});
|
|
10082
8820
|
|
|
10083
|
-
//
|
|
8821
|
+
// ../../node_modules/@domql/element/dist/cjs/define.js
|
|
10084
8822
|
var require_define = __commonJS({
|
|
10085
|
-
"
|
|
8823
|
+
"../../node_modules/@domql/element/dist/cjs/define.js"(exports, module2) {
|
|
10086
8824
|
"use strict";
|
|
10087
8825
|
var __defProp2 = Object.defineProperty;
|
|
10088
8826
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -10106,7 +8844,7 @@ var require_define = __commonJS({
|
|
|
10106
8844
|
default: () => define_default
|
|
10107
8845
|
});
|
|
10108
8846
|
module2.exports = __toCommonJS2(define_exports);
|
|
10109
|
-
var import_report =
|
|
8847
|
+
var import_report = require_cjs3();
|
|
10110
8848
|
var import_mixins = require_mixins();
|
|
10111
8849
|
var define_default = (params, options = {}) => {
|
|
10112
8850
|
const { overwrite } = options;
|
|
@@ -10120,9 +8858,9 @@ var require_define = __commonJS({
|
|
|
10120
8858
|
}
|
|
10121
8859
|
});
|
|
10122
8860
|
|
|
10123
|
-
//
|
|
10124
|
-
var
|
|
10125
|
-
"
|
|
8861
|
+
// ../../node_modules/@domql/element/dist/cjs/index.js
|
|
8862
|
+
var require_cjs11 = __commonJS({
|
|
8863
|
+
"../../node_modules/@domql/element/dist/cjs/index.js"(exports, module2) {
|
|
10126
8864
|
"use strict";
|
|
10127
8865
|
var __create2 = Object.create;
|
|
10128
8866
|
var __defProp2 = Object.defineProperty;
|
|
@@ -10170,9 +8908,9 @@ var require_cjs13 = __commonJS({
|
|
|
10170
8908
|
}
|
|
10171
8909
|
});
|
|
10172
8910
|
|
|
10173
|
-
//
|
|
10174
|
-
var
|
|
10175
|
-
"
|
|
8911
|
+
// ../../node_modules/domql/dist/cjs/index.js
|
|
8912
|
+
var require_cjs12 = __commonJS({
|
|
8913
|
+
"../../node_modules/domql/dist/cjs/index.js"(exports, module2) {
|
|
10176
8914
|
"use strict";
|
|
10177
8915
|
var __defProp2 = Object.defineProperty;
|
|
10178
8916
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -10196,7 +8934,7 @@ var require_cjs14 = __commonJS({
|
|
|
10196
8934
|
default: () => domql_default
|
|
10197
8935
|
});
|
|
10198
8936
|
module2.exports = __toCommonJS2(domql_exports);
|
|
10199
|
-
var import_element =
|
|
8937
|
+
var import_element = require_cjs11();
|
|
10200
8938
|
var create2 = (element, parent, key, options) => {
|
|
10201
8939
|
return (0, import_element.create)(element, parent, key, options);
|
|
10202
8940
|
};
|
|
@@ -10450,7 +9188,7 @@ __export(src_exports, {
|
|
|
10450
9188
|
default: () => src_default2
|
|
10451
9189
|
});
|
|
10452
9190
|
module.exports = __toCommonJS(src_exports);
|
|
10453
|
-
var
|
|
9191
|
+
var import_utils27 = __toESM(require_cjs(), 1);
|
|
10454
9192
|
|
|
10455
9193
|
// src/utilImports.js
|
|
10456
9194
|
var utilImports_exports = {};
|
|
@@ -13118,7 +11856,7 @@ var Overflow = {
|
|
|
13118
11856
|
};
|
|
13119
11857
|
|
|
13120
11858
|
// ../uikit/Atoms/Collection.js
|
|
13121
|
-
var import_state = __toESM(
|
|
11859
|
+
var import_state = __toESM(require_cjs6());
|
|
13122
11860
|
var import_utils7 = __toESM(require_cjs());
|
|
13123
11861
|
var Collection = {
|
|
13124
11862
|
define: {
|
|
@@ -17937,7 +16675,7 @@ var injectRouterInLinkComponent = (routerOptions) => {
|
|
|
17937
16675
|
|
|
17938
16676
|
// src/ferchOnCreate.js
|
|
17939
16677
|
var import_utils18 = __toESM(require_cjs(), 1);
|
|
17940
|
-
var import_fetch = __toESM(
|
|
16678
|
+
var import_fetch = __toESM(require_cjs8(), 1);
|
|
17941
16679
|
var fetchSync = async (key, options) => {
|
|
17942
16680
|
if (key && options.editor) {
|
|
17943
16681
|
try {
|
|
@@ -17973,7 +16711,7 @@ var import_scratch14 = __toESM(require_cjs2());
|
|
|
17973
16711
|
|
|
17974
16712
|
// ../socket/client.js
|
|
17975
16713
|
var utils = __toESM(require_cjs(), 1);
|
|
17976
|
-
var globals = __toESM(
|
|
16714
|
+
var globals = __toESM(require_cjs7(), 1);
|
|
17977
16715
|
|
|
17978
16716
|
// ../../node_modules/engine.io-parser/build/esm/commons.js
|
|
17979
16717
|
var PACKET_TYPES = /* @__PURE__ */ Object.create(null);
|
|
@@ -21372,7 +20110,8 @@ function send(event = "change", changes, options) {
|
|
|
21372
20110
|
}
|
|
21373
20111
|
|
|
21374
20112
|
// ../socket-ui/byld-socket.js
|
|
21375
|
-
var import_globals = __toESM(
|
|
20113
|
+
var import_globals = __toESM(require_cjs7());
|
|
20114
|
+
var import_utils20 = __toESM(require_cjs());
|
|
21376
20115
|
|
|
21377
20116
|
// ../socket-ui/devFocus.js
|
|
21378
20117
|
var import_utils19 = __toESM(require_cjs());
|
|
@@ -21582,24 +20321,38 @@ var onDisconnect = (element, state) => {
|
|
|
21582
20321
|
return () => {
|
|
21583
20322
|
};
|
|
21584
20323
|
};
|
|
21585
|
-
var onChange = (
|
|
20324
|
+
var onChange = (el, s, ctx) => {
|
|
21586
20325
|
return (event, data) => {
|
|
21587
20326
|
if (event === "change") {
|
|
21588
20327
|
const obj = JSON.parse(data);
|
|
21589
|
-
const {
|
|
21590
|
-
const { utils: utils2 } =
|
|
21591
|
-
if (
|
|
21592
|
-
|
|
20328
|
+
const { state, designSystem, pages, components, snippets } = obj.DATA;
|
|
20329
|
+
const { utils: utils2 } = ctx;
|
|
20330
|
+
if (pages) {
|
|
20331
|
+
(0, import_utils20.overwriteDeep)(ctx.pages, pages);
|
|
20332
|
+
}
|
|
20333
|
+
if (components) {
|
|
20334
|
+
(0, import_utils20.overwriteDeep)(ctx.components, components);
|
|
20335
|
+
}
|
|
20336
|
+
if (snippets) {
|
|
20337
|
+
(0, import_utils20.overwriteDeep)(ctx.snippets, snippets);
|
|
20338
|
+
}
|
|
20339
|
+
if (state) {
|
|
20340
|
+
const route = state.route;
|
|
21593
20341
|
if (route)
|
|
21594
|
-
(utils2.router || import_router3.router)(route.replace("/state", "") || "/",
|
|
21595
|
-
else
|
|
21596
|
-
|
|
20342
|
+
(utils2.router || import_router3.router)(route.replace("/state", "") || "/", el, {});
|
|
20343
|
+
else if (!(snippets && components && pages))
|
|
20344
|
+
s.update(state);
|
|
21597
20345
|
}
|
|
21598
|
-
if (
|
|
21599
|
-
|
|
20346
|
+
if (snippets || components || pages) {
|
|
20347
|
+
console.log(pages);
|
|
20348
|
+
console.log(import_globals.window.location.pathname);
|
|
20349
|
+
(utils2.router || import_router3.router)(import_globals.window.location.pathname, el, {});
|
|
20350
|
+
}
|
|
20351
|
+
if (designSystem)
|
|
20352
|
+
init(designSystem);
|
|
21600
20353
|
}
|
|
21601
20354
|
if (event === "clients") {
|
|
21602
|
-
connectedToSymbols(data,
|
|
20355
|
+
connectedToSymbols(data, el, s);
|
|
21603
20356
|
}
|
|
21604
20357
|
};
|
|
21605
20358
|
};
|
|
@@ -21651,15 +20404,15 @@ var Sync = {
|
|
|
21651
20404
|
};
|
|
21652
20405
|
|
|
21653
20406
|
// src/syncExtend.js
|
|
21654
|
-
var
|
|
20407
|
+
var import_utils21 = __toESM(require_cjs(), 1);
|
|
21655
20408
|
var applySyncDebug = (extend, options) => {
|
|
21656
20409
|
const { editor } = options;
|
|
21657
20410
|
if (!editor)
|
|
21658
20411
|
return extend;
|
|
21659
|
-
const inspect = (0,
|
|
20412
|
+
const inspect = (0, import_utils21.isUndefined)(editor.inspect) ? (0, import_utils21.isDevelopment)() : editor.inspect;
|
|
21660
20413
|
if (inspect)
|
|
21661
20414
|
extend.push(DevFocus);
|
|
21662
|
-
const liveSync = (0,
|
|
20415
|
+
const liveSync = (0, import_utils21.isUndefined)(editor.liveSync) ? (0, import_utils21.isDevelopment)() : editor.liveSync;
|
|
21663
20416
|
if (liveSync)
|
|
21664
20417
|
extend.push(Sync);
|
|
21665
20418
|
return extend;
|
|
@@ -21668,7 +20421,7 @@ var applyInspectListener = (root, options) => {
|
|
|
21668
20421
|
const { editor } = options;
|
|
21669
20422
|
if (!editor)
|
|
21670
20423
|
return;
|
|
21671
|
-
const inspect = (0,
|
|
20424
|
+
const inspect = (0, import_utils21.isUndefined)(editor.inspect) ? (0, import_utils21.isDevelopment)() : editor.inspect;
|
|
21672
20425
|
if (inspect)
|
|
21673
20426
|
inspectOnKey(root);
|
|
21674
20427
|
};
|
|
@@ -21721,17 +20474,17 @@ var CREATE_OPTIONS = {
|
|
|
21721
20474
|
var options_default = CREATE_OPTIONS;
|
|
21722
20475
|
|
|
21723
20476
|
// src/createDomql.js
|
|
21724
|
-
var import_domql = __toESM(
|
|
21725
|
-
var
|
|
20477
|
+
var import_domql = __toESM(require_cjs12(), 1);
|
|
20478
|
+
var import_utils26 = __toESM(require_cjs(), 1);
|
|
21726
20479
|
|
|
21727
20480
|
// src/prepare.js
|
|
21728
|
-
var
|
|
20481
|
+
var import_utils25 = __toESM(require_cjs(), 1);
|
|
21729
20482
|
|
|
21730
20483
|
// ../../node_modules/@domql/emotion/index.js
|
|
21731
|
-
var
|
|
20484
|
+
var import_utils23 = __toESM(require_cjs());
|
|
21732
20485
|
|
|
21733
20486
|
// ../../node_modules/@domql/classlist/index.js
|
|
21734
|
-
var
|
|
20487
|
+
var import_utils22 = __toESM(require_cjs());
|
|
21735
20488
|
var classify = (obj, element) => {
|
|
21736
20489
|
let className = "";
|
|
21737
20490
|
for (const item in obj) {
|
|
@@ -21741,7 +20494,7 @@ var classify = (obj, element) => {
|
|
|
21741
20494
|
else if (typeof param === "string")
|
|
21742
20495
|
className += ` ${param}`;
|
|
21743
20496
|
else if (typeof param === "function") {
|
|
21744
|
-
className += ` ${(0,
|
|
20497
|
+
className += ` ${(0, import_utils22.exec)(param, element)}`;
|
|
21745
20498
|
}
|
|
21746
20499
|
}
|
|
21747
20500
|
return className;
|
|
@@ -21752,9 +20505,9 @@ var classList = (params, element) => {
|
|
|
21752
20505
|
const { key } = element;
|
|
21753
20506
|
if (params === true)
|
|
21754
20507
|
params = element.class = { key };
|
|
21755
|
-
if ((0,
|
|
20508
|
+
if ((0, import_utils22.isString)(params))
|
|
21756
20509
|
params = element.class = { default: params };
|
|
21757
|
-
if ((0,
|
|
20510
|
+
if ((0, import_utils22.isObject)(params))
|
|
21758
20511
|
params = classify(params, element);
|
|
21759
20512
|
const className = params.replace(/\s+/g, " ").trim();
|
|
21760
20513
|
if (element.ref)
|
|
@@ -21770,9 +20523,9 @@ var applyClassListOnNode = (params, element, node2) => {
|
|
|
21770
20523
|
// ../../node_modules/@domql/emotion/index.js
|
|
21771
20524
|
var transformEmotionStyle = (emotion2) => {
|
|
21772
20525
|
return (params, element, state) => {
|
|
21773
|
-
const execParams = (0,
|
|
20526
|
+
const execParams = (0, import_utils23.exec)(params, element);
|
|
21774
20527
|
if (params) {
|
|
21775
|
-
if ((0,
|
|
20528
|
+
if ((0, import_utils23.isObjectLike)(element.class))
|
|
21776
20529
|
element.class.elementStyle = execParams;
|
|
21777
20530
|
else
|
|
21778
20531
|
element.class = { elementStyle: execParams };
|
|
@@ -21786,18 +20539,18 @@ var transformEmotionClass = (emotion2) => {
|
|
|
21786
20539
|
return;
|
|
21787
20540
|
const { __ref } = element;
|
|
21788
20541
|
const { __class, __classNames } = __ref;
|
|
21789
|
-
if (!(0,
|
|
20542
|
+
if (!(0, import_utils23.isObjectLike)(params))
|
|
21790
20543
|
return;
|
|
21791
20544
|
for (const key in params) {
|
|
21792
|
-
const prop = (0,
|
|
20545
|
+
const prop = (0, import_utils23.exec)(params[key], element);
|
|
21793
20546
|
if (!prop) {
|
|
21794
20547
|
delete __class[key];
|
|
21795
20548
|
delete __classNames[key];
|
|
21796
20549
|
continue;
|
|
21797
20550
|
}
|
|
21798
|
-
const isEqual = (0,
|
|
20551
|
+
const isEqual = (0, import_utils23.isEqualDeep)(__class[key], prop);
|
|
21799
20552
|
if (!isEqual) {
|
|
21800
|
-
if (!(0,
|
|
20553
|
+
if (!(0, import_utils23.isProduction)() && (0, import_utils23.isObject)(prop))
|
|
21801
20554
|
prop.label = key || element.key;
|
|
21802
20555
|
const CSSed = emotion2.css(prop);
|
|
21803
20556
|
__class[key] = prop;
|
|
@@ -21817,7 +20570,7 @@ var transformDOMQLEmotion = (emotion2, options) => {
|
|
|
21817
20570
|
};
|
|
21818
20571
|
|
|
21819
20572
|
// src/initEmotion.js
|
|
21820
|
-
var
|
|
20573
|
+
var import_utils24 = __toESM(require_cjs(), 1);
|
|
21821
20574
|
|
|
21822
20575
|
// ../icons/default/index.js
|
|
21823
20576
|
var default_default = {
|
|
@@ -22215,8 +20968,8 @@ var initEmotion = (key, options = {}) => {
|
|
|
22215
20968
|
if (!initOptions.emotion)
|
|
22216
20969
|
initOptions.emotion = emotion;
|
|
22217
20970
|
const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
|
|
22218
|
-
const defaultDesignSystem = (0,
|
|
22219
|
-
const designSystem = initOptions.useDefaultConfig ? (0,
|
|
20971
|
+
const defaultDesignSystem = (0, import_utils24.deepClone)(src_default);
|
|
20972
|
+
const designSystem = initOptions.useDefaultConfig ? (0, import_utils24.deepMerge)(options.designSystem, defaultDesignSystem) : options.designSystem || defaultDesignSystem;
|
|
22220
20973
|
const scratchSystem2 = init(designSystem, {
|
|
22221
20974
|
key,
|
|
22222
20975
|
emotion: emotion2,
|
|
@@ -22230,7 +20983,7 @@ var initEmotion = (key, options = {}) => {
|
|
|
22230
20983
|
|
|
22231
20984
|
// src/prepare.js
|
|
22232
20985
|
var checkIfKeyIsComponent = (key) => {
|
|
22233
|
-
const isFirstKeyString = (0,
|
|
20986
|
+
const isFirstKeyString = (0, import_utils25.isString)(key);
|
|
22234
20987
|
if (!isFirstKeyString)
|
|
22235
20988
|
return;
|
|
22236
20989
|
const firstCharKey = key.slice(0, 1);
|
|
@@ -22264,8 +21017,8 @@ var prepareState = (options, App) => {
|
|
|
22264
21017
|
if (options.state)
|
|
22265
21018
|
utilImports_exports.deepMerge(state, options.state);
|
|
22266
21019
|
if (App && App.state)
|
|
22267
|
-
(0,
|
|
22268
|
-
return (0,
|
|
21020
|
+
(0, import_utils25.deepMerge)(state, App.state);
|
|
21021
|
+
return (0, import_utils25.deepCloneWithExtnd)(state);
|
|
22269
21022
|
};
|
|
22270
21023
|
var preparePages = (options) => {
|
|
22271
21024
|
return options.pages || {};
|
|
@@ -22284,10 +21037,9 @@ var prepareDocument = (options) => {
|
|
|
22284
21037
|
// src/createDomql.js
|
|
22285
21038
|
var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
|
|
22286
21039
|
var createDomqlElement = (App, options) => {
|
|
22287
|
-
const
|
|
22288
|
-
const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
|
|
21040
|
+
const key = options.key || SYMBOLS_KEY || ((0, import_utils26.isString)(App) ? App : "");
|
|
22289
21041
|
const [scratcDesignSystem, emotion2, registry] = prepareDesignSystem(options, key);
|
|
22290
|
-
if (
|
|
21042
|
+
if ((0, import_utils26.isString)(App))
|
|
22291
21043
|
App = {};
|
|
22292
21044
|
const doc = prepareDocument(options);
|
|
22293
21045
|
const state = prepareState(options, App);
|
|
@@ -22326,8 +21078,8 @@ var createDomqlElement = (App, options) => {
|
|
|
22326
21078
|
// src/index.js
|
|
22327
21079
|
var SYMBOLS_KEY2 = process.env.SYMBOLS_KEY;
|
|
22328
21080
|
var mergeWithLocalFile2 = (options, optionsExternalFile) => {
|
|
22329
|
-
const rcfile = (0,
|
|
22330
|
-
return (0,
|
|
21081
|
+
const rcfile = (0, import_utils27.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
|
|
21082
|
+
return (0, import_utils27.deepMerge)(options, rcfile);
|
|
22331
21083
|
};
|
|
22332
21084
|
var create = (App, options = options_default, optionsExternalFile) => {
|
|
22333
21085
|
const redefinedOptions = { ...options_default, ...mergeWithLocalFile2(options, optionsExternalFile) };
|