@symbo.ls/create 2.11.239 → 2.11.242
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 +696 -1867
- package/dist/cjs/define.js +1 -0
- package/package.json +2 -2
- package/src/define.js +1 -0
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;
|
|
@@ -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;
|
|
@@ -213,11 +213,11 @@ var require_types = __commonJS({
|
|
|
213
213
|
isFunction: () => isFunction4,
|
|
214
214
|
isNot: () => isNot2,
|
|
215
215
|
isNull: () => isNull,
|
|
216
|
-
isNumber: () =>
|
|
216
|
+
isNumber: () => isNumber2,
|
|
217
217
|
isObject: () => isObject12,
|
|
218
218
|
isObjectLike: () => isObjectLike3,
|
|
219
219
|
isString: () => isString11,
|
|
220
|
-
isUndefined: () =>
|
|
220
|
+
isUndefined: () => isUndefined5
|
|
221
221
|
});
|
|
222
222
|
module2.exports = __toCommonJS2(types_exports);
|
|
223
223
|
var import_node = require_node();
|
|
@@ -227,7 +227,7 @@ var require_types = __commonJS({
|
|
|
227
227
|
return typeof arg === "object" && arg.constructor === Object;
|
|
228
228
|
};
|
|
229
229
|
var isString11 = (arg) => typeof arg === "string";
|
|
230
|
-
var
|
|
230
|
+
var isNumber2 = (arg) => typeof arg === "number";
|
|
231
231
|
var isFunction4 = (arg) => typeof arg === "function";
|
|
232
232
|
var isBoolean = (arg) => arg === true || arg === false;
|
|
233
233
|
var isNull = (arg) => arg === null;
|
|
@@ -239,9 +239,9 @@ var require_types = __commonJS({
|
|
|
239
239
|
return typeof arg === "object";
|
|
240
240
|
};
|
|
241
241
|
var isDefined2 = (arg) => {
|
|
242
|
-
return isObject12(arg) || isObjectLike3(arg) || isString11(arg) ||
|
|
242
|
+
return isObject12(arg) || isObjectLike3(arg) || isString11(arg) || isNumber2(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
|
|
243
243
|
};
|
|
244
|
-
var
|
|
244
|
+
var isUndefined5 = (arg) => {
|
|
245
245
|
return arg === void 0;
|
|
246
246
|
};
|
|
247
247
|
var TYPES = {
|
|
@@ -250,7 +250,7 @@ var require_types = __commonJS({
|
|
|
250
250
|
object: isObject12,
|
|
251
251
|
string: isString11,
|
|
252
252
|
date: isDate,
|
|
253
|
-
number:
|
|
253
|
+
number: isNumber2,
|
|
254
254
|
null: isNull,
|
|
255
255
|
function: isFunction4,
|
|
256
256
|
objectLike: isObjectLike3,
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1331,9 +1331,9 @@ var require_cjs = __commonJS({
|
|
|
1331
1331
|
}
|
|
1332
1332
|
});
|
|
1333
1333
|
|
|
1334
|
-
//
|
|
1334
|
+
// ../../node_modules/@domql/report/dist/cjs/index.js
|
|
1335
1335
|
var require_cjs2 = __commonJS({
|
|
1336
|
-
"
|
|
1336
|
+
"../../node_modules/@domql/report/dist/cjs/index.js"(exports, module2) {
|
|
1337
1337
|
"use strict";
|
|
1338
1338
|
var __defProp2 = Object.defineProperty;
|
|
1339
1339
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1428,9 +1428,9 @@ ${element}` : ""
|
|
|
1428
1428
|
}
|
|
1429
1429
|
});
|
|
1430
1430
|
|
|
1431
|
-
//
|
|
1431
|
+
// ../../node_modules/@domql/element/dist/cjs/tree.js
|
|
1432
1432
|
var require_tree = __commonJS({
|
|
1433
|
-
"
|
|
1433
|
+
"../../node_modules/@domql/element/dist/cjs/tree.js"(exports, module2) {
|
|
1434
1434
|
"use strict";
|
|
1435
1435
|
var __defProp2 = Object.defineProperty;
|
|
1436
1436
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1455,19 +1455,19 @@ var require_tree = __commonJS({
|
|
|
1455
1455
|
TREE: () => TREE
|
|
1456
1456
|
});
|
|
1457
1457
|
module2.exports = __toCommonJS2(tree_exports);
|
|
1458
|
-
var
|
|
1458
|
+
var import_utils26 = require_cjs();
|
|
1459
1459
|
var import_report = require_cjs2();
|
|
1460
1460
|
var ROOT = {
|
|
1461
1461
|
key: ":root",
|
|
1462
|
-
node:
|
|
1462
|
+
node: import_utils26.document ? import_utils26.document.body : (0, import_report.report)("DocumentNotDefined", import_utils26.document)
|
|
1463
1463
|
};
|
|
1464
1464
|
var TREE = ROOT;
|
|
1465
1465
|
}
|
|
1466
1466
|
});
|
|
1467
1467
|
|
|
1468
|
-
//
|
|
1468
|
+
// ../../node_modules/@domql/event/dist/cjs/on.js
|
|
1469
1469
|
var require_on = __commonJS({
|
|
1470
|
-
"
|
|
1470
|
+
"../../node_modules/@domql/event/dist/cjs/on.js"(exports, module2) {
|
|
1471
1471
|
"use strict";
|
|
1472
1472
|
var __defProp2 = Object.defineProperty;
|
|
1473
1473
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1495,12 +1495,12 @@ var require_on = __commonJS({
|
|
|
1495
1495
|
triggerEventOnUpdate: () => triggerEventOnUpdate
|
|
1496
1496
|
});
|
|
1497
1497
|
module2.exports = __toCommonJS2(on_exports);
|
|
1498
|
-
var
|
|
1498
|
+
var import_utils26 = require_cjs();
|
|
1499
1499
|
var applyEvent = (param, element, state, context, options) => {
|
|
1500
1500
|
return param(element, state || element.state, context || element.context, options);
|
|
1501
1501
|
};
|
|
1502
1502
|
var triggerEventOn = (param, element, options) => {
|
|
1503
|
-
if (element.on && (0,
|
|
1503
|
+
if (element.on && (0, import_utils26.isFunction)(element.on[param])) {
|
|
1504
1504
|
const { state, context } = element;
|
|
1505
1505
|
return applyEvent(element.on[param], element, state, context, options);
|
|
1506
1506
|
}
|
|
@@ -1509,7 +1509,7 @@ var require_on = __commonJS({
|
|
|
1509
1509
|
return param(updatedObj, element, state || element.state, context || element.context, options);
|
|
1510
1510
|
};
|
|
1511
1511
|
var triggerEventOnUpdate = (param, updatedObj, element, options) => {
|
|
1512
|
-
if (element.on && (0,
|
|
1512
|
+
if (element.on && (0, import_utils26.isFunction)(element.on[param])) {
|
|
1513
1513
|
const { state, context } = element;
|
|
1514
1514
|
return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
|
|
1515
1515
|
}
|
|
@@ -1520,7 +1520,7 @@ var require_on = __commonJS({
|
|
|
1520
1520
|
if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
|
|
1521
1521
|
continue;
|
|
1522
1522
|
const appliedFunction = element.on[param];
|
|
1523
|
-
if ((0,
|
|
1523
|
+
if ((0, import_utils26.isFunction)(appliedFunction)) {
|
|
1524
1524
|
node2.addEventListener(param, (event) => {
|
|
1525
1525
|
const { state, context } = element;
|
|
1526
1526
|
appliedFunction(event, element, state, context);
|
|
@@ -1531,9 +1531,9 @@ var require_on = __commonJS({
|
|
|
1531
1531
|
}
|
|
1532
1532
|
});
|
|
1533
1533
|
|
|
1534
|
-
//
|
|
1534
|
+
// ../../node_modules/@domql/event/dist/cjs/can.js
|
|
1535
1535
|
var require_can = __commonJS({
|
|
1536
|
-
"
|
|
1536
|
+
"../../node_modules/@domql/event/dist/cjs/can.js"(exports, module2) {
|
|
1537
1537
|
"use strict";
|
|
1538
1538
|
var __defProp2 = Object.defineProperty;
|
|
1539
1539
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1558,17 +1558,17 @@ var require_can = __commonJS({
|
|
|
1558
1558
|
});
|
|
1559
1559
|
module2.exports = __toCommonJS2(can_exports);
|
|
1560
1560
|
var import_report = require_cjs2();
|
|
1561
|
-
var
|
|
1561
|
+
var import_utils26 = require_cjs();
|
|
1562
1562
|
var canRender = (element) => {
|
|
1563
1563
|
const tag = element.tag || "div";
|
|
1564
|
-
return (0,
|
|
1564
|
+
return (0, import_utils26.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
|
|
1565
1565
|
};
|
|
1566
1566
|
}
|
|
1567
1567
|
});
|
|
1568
1568
|
|
|
1569
|
-
//
|
|
1569
|
+
// ../../node_modules/@domql/event/dist/cjs/index.js
|
|
1570
1570
|
var require_cjs3 = __commonJS({
|
|
1571
|
-
"
|
|
1571
|
+
"../../node_modules/@domql/event/dist/cjs/index.js"(exports, module2) {
|
|
1572
1572
|
"use strict";
|
|
1573
1573
|
var __defProp2 = Object.defineProperty;
|
|
1574
1574
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1591,9 +1591,9 @@ var require_cjs3 = __commonJS({
|
|
|
1591
1591
|
}
|
|
1592
1592
|
});
|
|
1593
1593
|
|
|
1594
|
-
//
|
|
1594
|
+
// ../../node_modules/@domql/render/dist/cjs/create.js
|
|
1595
1595
|
var require_create = __commonJS({
|
|
1596
|
-
"
|
|
1596
|
+
"../../node_modules/@domql/render/dist/cjs/create.js"(exports, module2) {
|
|
1597
1597
|
"use strict";
|
|
1598
1598
|
var __defProp2 = Object.defineProperty;
|
|
1599
1599
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1622,9 +1622,9 @@ var require_create = __commonJS({
|
|
|
1622
1622
|
}
|
|
1623
1623
|
});
|
|
1624
1624
|
|
|
1625
|
-
//
|
|
1625
|
+
// ../../node_modules/@domql/render/dist/cjs/cache.js
|
|
1626
1626
|
var require_cache = __commonJS({
|
|
1627
|
-
"
|
|
1627
|
+
"../../node_modules/@domql/render/dist/cjs/cache.js"(exports, module2) {
|
|
1628
1628
|
"use strict";
|
|
1629
1629
|
var __defProp2 = Object.defineProperty;
|
|
1630
1630
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1652,7 +1652,7 @@ var require_cache = __commonJS({
|
|
|
1652
1652
|
module2.exports = __toCommonJS2(cache_exports);
|
|
1653
1653
|
var import_report = require_cjs2();
|
|
1654
1654
|
var import_event = require_cjs3();
|
|
1655
|
-
var
|
|
1655
|
+
var import_utils26 = require_cjs();
|
|
1656
1656
|
var cache2 = {};
|
|
1657
1657
|
var createHTMLNode = (element) => {
|
|
1658
1658
|
const { tag } = element;
|
|
@@ -1671,20 +1671,20 @@ var require_cache = __commonJS({
|
|
|
1671
1671
|
};
|
|
1672
1672
|
var detectTag = (element) => {
|
|
1673
1673
|
let { tag, key, props: props4 } = element;
|
|
1674
|
-
tag = (0,
|
|
1674
|
+
tag = (0, import_utils26.exec)(tag, element);
|
|
1675
1675
|
if (tag === true)
|
|
1676
1676
|
tag = key;
|
|
1677
|
-
if ((0,
|
|
1678
|
-
const tagExists = (0,
|
|
1677
|
+
if ((0, import_utils26.isObject)(props4) && (0, import_utils26.isString)(props4.tag)) {
|
|
1678
|
+
const tagExists = (0, import_utils26.isValidHtmlTag)(props4.tag);
|
|
1679
1679
|
if (tagExists)
|
|
1680
1680
|
return props4.tag;
|
|
1681
1681
|
}
|
|
1682
|
-
if ((0,
|
|
1683
|
-
const tagExists = (0,
|
|
1682
|
+
if ((0, import_utils26.isString)(tag)) {
|
|
1683
|
+
const tagExists = (0, import_utils26.isValidHtmlTag)(tag);
|
|
1684
1684
|
if (tagExists)
|
|
1685
1685
|
return tag;
|
|
1686
1686
|
} else {
|
|
1687
|
-
const isKeyATag = (0,
|
|
1687
|
+
const isKeyATag = (0, import_utils26.isValidHtmlTag)(key);
|
|
1688
1688
|
if (isKeyATag)
|
|
1689
1689
|
return key;
|
|
1690
1690
|
}
|
|
@@ -1706,9 +1706,9 @@ var require_cache = __commonJS({
|
|
|
1706
1706
|
}
|
|
1707
1707
|
});
|
|
1708
1708
|
|
|
1709
|
-
//
|
|
1709
|
+
// ../../node_modules/@domql/render/dist/cjs/append.js
|
|
1710
1710
|
var require_append = __commonJS({
|
|
1711
|
-
"
|
|
1711
|
+
"../../node_modules/@domql/render/dist/cjs/append.js"(exports, module2) {
|
|
1712
1712
|
"use strict";
|
|
1713
1713
|
var __defProp2 = Object.defineProperty;
|
|
1714
1714
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1765,9 +1765,9 @@ var require_append = __commonJS({
|
|
|
1765
1765
|
}
|
|
1766
1766
|
});
|
|
1767
1767
|
|
|
1768
|
-
//
|
|
1768
|
+
// ../../node_modules/@domql/render/dist/cjs/index.js
|
|
1769
1769
|
var require_cjs4 = __commonJS({
|
|
1770
|
-
"
|
|
1770
|
+
"../../node_modules/@domql/render/dist/cjs/index.js"(exports, module2) {
|
|
1771
1771
|
"use strict";
|
|
1772
1772
|
var __defProp2 = Object.defineProperty;
|
|
1773
1773
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1791,9 +1791,9 @@ var require_cjs4 = __commonJS({
|
|
|
1791
1791
|
}
|
|
1792
1792
|
});
|
|
1793
1793
|
|
|
1794
|
-
//
|
|
1794
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/attr.js
|
|
1795
1795
|
var require_attr = __commonJS({
|
|
1796
|
-
"
|
|
1796
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/attr.js"(exports, module2) {
|
|
1797
1797
|
"use strict";
|
|
1798
1798
|
var __defProp2 = Object.defineProperty;
|
|
1799
1799
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1817,16 +1817,16 @@ var require_attr = __commonJS({
|
|
|
1817
1817
|
default: () => attr_default
|
|
1818
1818
|
});
|
|
1819
1819
|
module2.exports = __toCommonJS2(attr_exports);
|
|
1820
|
-
var
|
|
1820
|
+
var import_utils26 = require_cjs();
|
|
1821
1821
|
var import_report = require_cjs2();
|
|
1822
1822
|
var attr_default = (params, element, node2) => {
|
|
1823
1823
|
const { __ref } = element;
|
|
1824
1824
|
const { __attr } = __ref;
|
|
1825
|
-
if ((0,
|
|
1825
|
+
if ((0, import_utils26.isNot)("object"))
|
|
1826
1826
|
(0, import_report.report)("HTMLInvalidAttr", params);
|
|
1827
1827
|
if (params) {
|
|
1828
1828
|
for (const attr in params) {
|
|
1829
|
-
const val = (0,
|
|
1829
|
+
const val = (0, import_utils26.exec)(params[attr], element);
|
|
1830
1830
|
if (val && node2.setAttribute)
|
|
1831
1831
|
node2.setAttribute(attr, val);
|
|
1832
1832
|
else if (node2.removeAttribute)
|
|
@@ -1839,9 +1839,9 @@ var require_attr = __commonJS({
|
|
|
1839
1839
|
}
|
|
1840
1840
|
});
|
|
1841
1841
|
|
|
1842
|
-
//
|
|
1842
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/classList.js
|
|
1843
1843
|
var require_classList = __commonJS({
|
|
1844
|
-
"
|
|
1844
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/classList.js"(exports, module2) {
|
|
1845
1845
|
"use strict";
|
|
1846
1846
|
var __defProp2 = Object.defineProperty;
|
|
1847
1847
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1869,7 +1869,7 @@ var require_classList = __commonJS({
|
|
|
1869
1869
|
default: () => classList_default
|
|
1870
1870
|
});
|
|
1871
1871
|
module2.exports = __toCommonJS2(classList_exports);
|
|
1872
|
-
var
|
|
1872
|
+
var import_utils26 = require_cjs();
|
|
1873
1873
|
var assignKeyAsClassname = (element) => {
|
|
1874
1874
|
const { key } = element;
|
|
1875
1875
|
if (element.class === true)
|
|
@@ -1887,7 +1887,7 @@ var require_classList = __commonJS({
|
|
|
1887
1887
|
else if (typeof param === "string")
|
|
1888
1888
|
className += ` ${param}`;
|
|
1889
1889
|
else if (typeof param === "function") {
|
|
1890
|
-
className += ` ${(0,
|
|
1890
|
+
className += ` ${(0, import_utils26.exec)(param, element)}`;
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
1893
1893
|
return className;
|
|
@@ -1898,9 +1898,9 @@ var require_classList = __commonJS({
|
|
|
1898
1898
|
const { key } = element;
|
|
1899
1899
|
if (params === true)
|
|
1900
1900
|
params = element.class = { key };
|
|
1901
|
-
if ((0,
|
|
1901
|
+
if ((0, import_utils26.isString)(params))
|
|
1902
1902
|
params = element.class = { default: params };
|
|
1903
|
-
if ((0,
|
|
1903
|
+
if ((0, import_utils26.isObject)(params))
|
|
1904
1904
|
params = classify2(params, element);
|
|
1905
1905
|
const className = params.replace(/\s+/g, " ").trim();
|
|
1906
1906
|
if (element.ref)
|
|
@@ -1918,9 +1918,9 @@ var require_classList = __commonJS({
|
|
|
1918
1918
|
}
|
|
1919
1919
|
});
|
|
1920
1920
|
|
|
1921
|
-
//
|
|
1921
|
+
// ../../node_modules/@domql/element/dist/cjs/cache/options.js
|
|
1922
1922
|
var require_options = __commonJS({
|
|
1923
|
-
"
|
|
1923
|
+
"../../node_modules/@domql/element/dist/cjs/cache/options.js"(exports, module2) {
|
|
1924
1924
|
"use strict";
|
|
1925
1925
|
var __defProp2 = Object.defineProperty;
|
|
1926
1926
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1948,9 +1948,9 @@ var require_options = __commonJS({
|
|
|
1948
1948
|
}
|
|
1949
1949
|
});
|
|
1950
1950
|
|
|
1951
|
-
//
|
|
1951
|
+
// ../../node_modules/@domql/element/dist/cjs/set.js
|
|
1952
1952
|
var require_set = __commonJS({
|
|
1953
|
-
"
|
|
1953
|
+
"../../node_modules/@domql/element/dist/cjs/set.js"(exports, module2) {
|
|
1954
1954
|
"use strict";
|
|
1955
1955
|
var __create2 = Object.create;
|
|
1956
1956
|
var __defProp2 = Object.defineProperty;
|
|
@@ -1984,7 +1984,7 @@ var require_set = __commonJS({
|
|
|
1984
1984
|
default: () => set_default
|
|
1985
1985
|
});
|
|
1986
1986
|
module2.exports = __toCommonJS2(set_exports);
|
|
1987
|
-
var
|
|
1987
|
+
var import_utils26 = require_cjs();
|
|
1988
1988
|
var import_create = __toESM2(require_create4(), 1);
|
|
1989
1989
|
var import_options3 = __toESM2(require_options(), 1);
|
|
1990
1990
|
var import_mixins = require_mixins();
|
|
@@ -1994,7 +1994,7 @@ var require_set = __commonJS({
|
|
|
1994
1994
|
const { __ref: ref, content } = element;
|
|
1995
1995
|
const __contentRef = content && content.__ref;
|
|
1996
1996
|
const lazyLoad = element.props && element.props.lazyLoad;
|
|
1997
|
-
if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0,
|
|
1997
|
+
if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils26.deepContains)(params, content)) {
|
|
1998
1998
|
return content.update();
|
|
1999
1999
|
}
|
|
2000
2000
|
if (options.preventContentUpdate === true)
|
|
@@ -2023,9 +2023,9 @@ var require_set = __commonJS({
|
|
|
2023
2023
|
}
|
|
2024
2024
|
});
|
|
2025
2025
|
|
|
2026
|
-
//
|
|
2026
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/content.js
|
|
2027
2027
|
var require_content = __commonJS({
|
|
2028
|
-
"
|
|
2028
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/content.js"(exports, module2) {
|
|
2029
2029
|
"use strict";
|
|
2030
2030
|
var __create2 = Object.create;
|
|
2031
2031
|
var __defProp2 = Object.defineProperty;
|
|
@@ -2062,7 +2062,7 @@ var require_content = __commonJS({
|
|
|
2062
2062
|
updateContent: () => updateContent
|
|
2063
2063
|
});
|
|
2064
2064
|
module2.exports = __toCommonJS2(content_exports);
|
|
2065
|
-
var
|
|
2065
|
+
var import_utils26 = require_cjs();
|
|
2066
2066
|
var import_set = __toESM2(require_set(), 1);
|
|
2067
2067
|
var updateContent = function(params, options) {
|
|
2068
2068
|
const element = this;
|
|
@@ -2085,7 +2085,7 @@ var require_content = __commonJS({
|
|
|
2085
2085
|
if (__cached && __cached.content) {
|
|
2086
2086
|
if (__cached.content.tag === "fragment")
|
|
2087
2087
|
__cached.content.parent.node.innerHTML = "";
|
|
2088
|
-
else if (__cached.content && (0,
|
|
2088
|
+
else if (__cached.content && (0, import_utils26.isFunction)(__cached.content.remove))
|
|
2089
2089
|
__cached.content.remove();
|
|
2090
2090
|
}
|
|
2091
2091
|
delete element.content;
|
|
@@ -2104,9 +2104,9 @@ var require_content = __commonJS({
|
|
|
2104
2104
|
}
|
|
2105
2105
|
});
|
|
2106
2106
|
|
|
2107
|
-
//
|
|
2107
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/data.js
|
|
2108
2108
|
var require_data = __commonJS({
|
|
2109
|
-
"
|
|
2109
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/data.js"(exports, module2) {
|
|
2110
2110
|
"use strict";
|
|
2111
2111
|
var __defProp2 = Object.defineProperty;
|
|
2112
2112
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -2130,15 +2130,15 @@ var require_data = __commonJS({
|
|
|
2130
2130
|
default: () => data_default
|
|
2131
2131
|
});
|
|
2132
2132
|
module2.exports = __toCommonJS2(data_exports);
|
|
2133
|
-
var
|
|
2133
|
+
var import_utils26 = require_cjs();
|
|
2134
2134
|
var import_report = require_cjs2();
|
|
2135
2135
|
var data_default = (params, element, node2) => {
|
|
2136
2136
|
if (params && params.showOnNode) {
|
|
2137
|
-
if (!(0,
|
|
2137
|
+
if (!(0, import_utils26.isObject)(params))
|
|
2138
2138
|
(0, import_report.report)("HTMLInvalidData", params);
|
|
2139
2139
|
for (const dataset in params) {
|
|
2140
2140
|
if (dataset !== "showOnNode") {
|
|
2141
|
-
node2.dataset[dataset] = (0,
|
|
2141
|
+
node2.dataset[dataset] = (0, import_utils26.exec)(params[dataset], element);
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
@@ -2146,9 +2146,9 @@ var require_data = __commonJS({
|
|
|
2146
2146
|
}
|
|
2147
2147
|
});
|
|
2148
2148
|
|
|
2149
|
-
//
|
|
2149
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/html.js
|
|
2150
2150
|
var require_html = __commonJS({
|
|
2151
|
-
"
|
|
2151
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/html.js"(exports, module2) {
|
|
2152
2152
|
"use strict";
|
|
2153
2153
|
var __defProp2 = Object.defineProperty;
|
|
2154
2154
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -2172,9 +2172,9 @@ var require_html = __commonJS({
|
|
|
2172
2172
|
default: () => html_default
|
|
2173
2173
|
});
|
|
2174
2174
|
module2.exports = __toCommonJS2(html_exports);
|
|
2175
|
-
var
|
|
2175
|
+
var import_utils26 = require_cjs();
|
|
2176
2176
|
var html_default = (param, element, node2) => {
|
|
2177
|
-
const prop = (0,
|
|
2177
|
+
const prop = (0, import_utils26.exec)(param, element);
|
|
2178
2178
|
const { __ref } = element;
|
|
2179
2179
|
if (prop !== __ref.__html) {
|
|
2180
2180
|
if (node2.nodeName === "SVG")
|
|
@@ -2187,9 +2187,9 @@ var require_html = __commonJS({
|
|
|
2187
2187
|
}
|
|
2188
2188
|
});
|
|
2189
2189
|
|
|
2190
|
-
//
|
|
2190
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/style.js
|
|
2191
2191
|
var require_style = __commonJS({
|
|
2192
|
-
"
|
|
2192
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/style.js"(exports, module2) {
|
|
2193
2193
|
"use strict";
|
|
2194
2194
|
var __defProp2 = Object.defineProperty;
|
|
2195
2195
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -2213,12 +2213,12 @@ var require_style = __commonJS({
|
|
|
2213
2213
|
default: () => style_default2
|
|
2214
2214
|
});
|
|
2215
2215
|
module2.exports = __toCommonJS2(style_exports);
|
|
2216
|
-
var
|
|
2216
|
+
var import_utils26 = require_cjs();
|
|
2217
2217
|
var import_report = require_cjs2();
|
|
2218
2218
|
var style_default2 = (params, element, node2) => {
|
|
2219
2219
|
if (params) {
|
|
2220
|
-
if ((0,
|
|
2221
|
-
(0,
|
|
2220
|
+
if ((0, import_utils26.isObject)(params))
|
|
2221
|
+
(0, import_utils26.map)(node2.style, params, element);
|
|
2222
2222
|
else
|
|
2223
2223
|
(0, import_report.report)("HTMLInvalidStyles", params);
|
|
2224
2224
|
}
|
|
@@ -2226,9 +2226,9 @@ var require_style = __commonJS({
|
|
|
2226
2226
|
}
|
|
2227
2227
|
});
|
|
2228
2228
|
|
|
2229
|
-
//
|
|
2229
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/text.js
|
|
2230
2230
|
var require_text = __commonJS({
|
|
2231
|
-
"
|
|
2231
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/text.js"(exports, module2) {
|
|
2232
2232
|
"use strict";
|
|
2233
2233
|
var __defProp2 = Object.defineProperty;
|
|
2234
2234
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -2252,12 +2252,12 @@ var require_text = __commonJS({
|
|
|
2252
2252
|
default: () => text_default
|
|
2253
2253
|
});
|
|
2254
2254
|
module2.exports = __toCommonJS2(text_exports);
|
|
2255
|
-
var import__ =
|
|
2256
|
-
var
|
|
2255
|
+
var import__ = require_cjs7();
|
|
2256
|
+
var import_utils26 = require_cjs();
|
|
2257
2257
|
var text_default = (param, element, node2) => {
|
|
2258
|
-
let prop = (0,
|
|
2259
|
-
if ((0,
|
|
2260
|
-
prop = (0,
|
|
2258
|
+
let prop = (0, import_utils26.exec)(param, element);
|
|
2259
|
+
if ((0, import_utils26.isString)(prop) && prop.includes("{{")) {
|
|
2260
|
+
prop = (0, import_utils26.replaceLiteralsWithObjectFields)(prop, element.state);
|
|
2261
2261
|
}
|
|
2262
2262
|
if (element.tag === "string") {
|
|
2263
2263
|
node2.nodeValue = prop;
|
|
@@ -2275,9 +2275,9 @@ var require_text = __commonJS({
|
|
|
2275
2275
|
}
|
|
2276
2276
|
});
|
|
2277
2277
|
|
|
2278
|
-
//
|
|
2278
|
+
// ../../node_modules/@domql/state/dist/cjs/ignore.js
|
|
2279
2279
|
var require_ignore = __commonJS({
|
|
2280
|
-
"
|
|
2280
|
+
"../../node_modules/@domql/state/dist/cjs/ignore.js"(exports, module2) {
|
|
2281
2281
|
"use strict";
|
|
2282
2282
|
var __defProp2 = Object.defineProperty;
|
|
2283
2283
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -2325,9 +2325,9 @@ var require_ignore = __commonJS({
|
|
|
2325
2325
|
}
|
|
2326
2326
|
});
|
|
2327
2327
|
|
|
2328
|
-
//
|
|
2328
|
+
// ../../node_modules/@domql/state/dist/cjs/methods.js
|
|
2329
2329
|
var require_methods = __commonJS({
|
|
2330
|
-
"
|
|
2330
|
+
"../../node_modules/@domql/state/dist/cjs/methods.js"(exports, module2) {
|
|
2331
2331
|
"use strict";
|
|
2332
2332
|
var __defProp2 = Object.defineProperty;
|
|
2333
2333
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -2361,11 +2361,11 @@ var require_methods = __commonJS({
|
|
|
2361
2361
|
toggle: () => toggle
|
|
2362
2362
|
});
|
|
2363
2363
|
module2.exports = __toCommonJS2(methods_exports);
|
|
2364
|
-
var
|
|
2364
|
+
var import_utils26 = require_cjs();
|
|
2365
2365
|
var import_ignore = require_ignore();
|
|
2366
2366
|
var parse3 = function() {
|
|
2367
2367
|
const state = this;
|
|
2368
|
-
if ((0,
|
|
2368
|
+
if ((0, import_utils26.isObject)(state)) {
|
|
2369
2369
|
const obj = {};
|
|
2370
2370
|
for (const param in state) {
|
|
2371
2371
|
if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
|
|
@@ -2373,7 +2373,7 @@ var require_methods = __commonJS({
|
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
2375
|
return obj;
|
|
2376
|
-
} else if ((0,
|
|
2376
|
+
} else if ((0, import_utils26.isArray)(state)) {
|
|
2377
2377
|
return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
|
|
2378
2378
|
}
|
|
2379
2379
|
};
|
|
@@ -2393,7 +2393,7 @@ var require_methods = __commonJS({
|
|
|
2393
2393
|
const state = this;
|
|
2394
2394
|
const element = state.__element;
|
|
2395
2395
|
const stateKey = element.__ref.__state;
|
|
2396
|
-
if ((0,
|
|
2396
|
+
if ((0, import_utils26.isString)(stateKey)) {
|
|
2397
2397
|
element.parent.state.remove(stateKey, { isHoisted: true, ...options });
|
|
2398
2398
|
return element.state;
|
|
2399
2399
|
}
|
|
@@ -2406,7 +2406,7 @@ var require_methods = __commonJS({
|
|
|
2406
2406
|
for (const key in state.__children) {
|
|
2407
2407
|
const child = state.__children[key];
|
|
2408
2408
|
if (child.state) {
|
|
2409
|
-
if ((0,
|
|
2409
|
+
if ((0, import_utils26.isArray)(child.state)) {
|
|
2410
2410
|
Object.defineProperty(child.state, "parent", {
|
|
2411
2411
|
value: state.parent,
|
|
2412
2412
|
enumerable: false,
|
|
@@ -2440,10 +2440,10 @@ var require_methods = __commonJS({
|
|
|
2440
2440
|
};
|
|
2441
2441
|
var add = function(value2, options = {}) {
|
|
2442
2442
|
const state = this;
|
|
2443
|
-
if ((0,
|
|
2443
|
+
if ((0, import_utils26.isArray)(state)) {
|
|
2444
2444
|
state.push(value2);
|
|
2445
2445
|
state.update(state.parse(), { overwrite: "replace", ...options });
|
|
2446
|
-
} else if ((0,
|
|
2446
|
+
} else if ((0, import_utils26.isObject)(state)) {
|
|
2447
2447
|
const key = Object.keys(state).length;
|
|
2448
2448
|
state.update({ [key]: value2 }, options);
|
|
2449
2449
|
}
|
|
@@ -2454,25 +2454,25 @@ var require_methods = __commonJS({
|
|
|
2454
2454
|
};
|
|
2455
2455
|
var remove = function(key, options = {}) {
|
|
2456
2456
|
const state = this;
|
|
2457
|
-
if ((0,
|
|
2458
|
-
(0,
|
|
2459
|
-
if ((0,
|
|
2460
|
-
(0,
|
|
2457
|
+
if ((0, import_utils26.isArray)(state))
|
|
2458
|
+
(0, import_utils26.removeFromArray)(state, key);
|
|
2459
|
+
if ((0, import_utils26.isObject)(state))
|
|
2460
|
+
(0, import_utils26.removeFromObject)(state, key);
|
|
2461
2461
|
return state.update(state.parse(), { replace: true, ...options });
|
|
2462
2462
|
};
|
|
2463
2463
|
var set5 = function(val, options = {}) {
|
|
2464
2464
|
const state = this;
|
|
2465
|
-
const value2 = (0,
|
|
2465
|
+
const value2 = (0, import_utils26.deepCloneWithExtnd)(val);
|
|
2466
2466
|
return state.clean({ preventStateUpdate: true, ...options }).update(value2, { replace: true, ...options });
|
|
2467
2467
|
};
|
|
2468
2468
|
var reset = function(options = {}) {
|
|
2469
2469
|
const state = this;
|
|
2470
|
-
const value2 = (0,
|
|
2470
|
+
const value2 = (0, import_utils26.deepCloneWithExtnd)(state.parse());
|
|
2471
2471
|
return state.set(value2, { replace: true, ...options });
|
|
2472
2472
|
};
|
|
2473
2473
|
var apply = function(func, options = {}) {
|
|
2474
2474
|
const state = this;
|
|
2475
|
-
if ((0,
|
|
2475
|
+
if ((0, import_utils26.isFunction)(func)) {
|
|
2476
2476
|
func(state);
|
|
2477
2477
|
return state.update(state.parse(), { replace: true, ...options });
|
|
2478
2478
|
}
|
|
@@ -2480,9 +2480,9 @@ var require_methods = __commonJS({
|
|
|
2480
2480
|
}
|
|
2481
2481
|
});
|
|
2482
2482
|
|
|
2483
|
-
//
|
|
2483
|
+
// ../../node_modules/@domql/state/dist/cjs/inherit.js
|
|
2484
2484
|
var require_inherit = __commonJS({
|
|
2485
|
-
"
|
|
2485
|
+
"../../node_modules/@domql/state/dist/cjs/inherit.js"(exports, module2) {
|
|
2486
2486
|
"use strict";
|
|
2487
2487
|
var __defProp2 = Object.defineProperty;
|
|
2488
2488
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -2512,7 +2512,7 @@ var require_inherit = __commonJS({
|
|
|
2512
2512
|
isState: () => isState2
|
|
2513
2513
|
});
|
|
2514
2514
|
module2.exports = __toCommonJS2(inherit_exports);
|
|
2515
|
-
var
|
|
2515
|
+
var import_utils26 = require_cjs();
|
|
2516
2516
|
var import_ignore = require_ignore();
|
|
2517
2517
|
var getParentStateInKey = (stateKey, parentState) => {
|
|
2518
2518
|
if (!stateKey.includes("../"))
|
|
@@ -2564,11 +2564,11 @@ var require_inherit = __commonJS({
|
|
|
2564
2564
|
var createInheritedState = (element, parent) => {
|
|
2565
2565
|
const ref = element.__ref;
|
|
2566
2566
|
const inheritedState = findInheritedState(element, parent);
|
|
2567
|
-
if ((0,
|
|
2567
|
+
if ((0, import_utils26.isUndefined)(inheritedState))
|
|
2568
2568
|
return element.state;
|
|
2569
|
-
if ((0,
|
|
2570
|
-
return (0,
|
|
2571
|
-
} else if ((0,
|
|
2569
|
+
if ((0, import_utils26.is)(inheritedState)("object", "array")) {
|
|
2570
|
+
return (0, import_utils26.deepCloneWithExtnd)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
|
|
2571
|
+
} else if ((0, import_utils26.is)(inheritedState)("string", "number", "boolean")) {
|
|
2572
2572
|
ref.__stateType = typeof inheritedState;
|
|
2573
2573
|
return { value: inheritedState };
|
|
2574
2574
|
}
|
|
@@ -2577,12 +2577,12 @@ var require_inherit = __commonJS({
|
|
|
2577
2577
|
var checkIfInherits = (element) => {
|
|
2578
2578
|
const ref = element.__ref;
|
|
2579
2579
|
const stateKey = ref.__state;
|
|
2580
|
-
if (stateKey && (0,
|
|
2580
|
+
if (stateKey && (0, import_utils26.is)(stateKey)("number", "string", "boolean"))
|
|
2581
2581
|
return true;
|
|
2582
2582
|
return false;
|
|
2583
2583
|
};
|
|
2584
2584
|
var isState2 = function(state) {
|
|
2585
|
-
if (!(0,
|
|
2585
|
+
if (!(0, import_utils26.isObjectLike)(state))
|
|
2586
2586
|
return false;
|
|
2587
2587
|
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;
|
|
2588
2588
|
};
|
|
@@ -2602,9 +2602,9 @@ var require_inherit = __commonJS({
|
|
|
2602
2602
|
}
|
|
2603
2603
|
});
|
|
2604
2604
|
|
|
2605
|
-
//
|
|
2605
|
+
// ../../node_modules/@domql/state/dist/cjs/updateState.js
|
|
2606
2606
|
var require_updateState = __commonJS({
|
|
2607
|
-
"
|
|
2607
|
+
"../../node_modules/@domql/state/dist/cjs/updateState.js"(exports, module2) {
|
|
2608
2608
|
"use strict";
|
|
2609
2609
|
var __defProp2 = Object.defineProperty;
|
|
2610
2610
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -2631,7 +2631,7 @@ var require_updateState = __commonJS({
|
|
|
2631
2631
|
var import_report = require_cjs2();
|
|
2632
2632
|
var import_event = require_cjs3();
|
|
2633
2633
|
var import_ignore = require_ignore();
|
|
2634
|
-
var
|
|
2634
|
+
var import_utils26 = require_cjs();
|
|
2635
2635
|
var import_inherit = require_inherit();
|
|
2636
2636
|
var STATE_UPDATE_OPTIONS = {
|
|
2637
2637
|
overwrite: true,
|
|
@@ -2644,7 +2644,7 @@ var require_updateState = __commonJS({
|
|
|
2644
2644
|
const state = this;
|
|
2645
2645
|
const element = state.__element;
|
|
2646
2646
|
if (!options.updateByState)
|
|
2647
|
-
(0,
|
|
2647
|
+
(0, import_utils26.merge)(options, STATE_UPDATE_OPTIONS);
|
|
2648
2648
|
if (!state.__element)
|
|
2649
2649
|
(0, import_report.report)("ElementOnStateIsNotDefined");
|
|
2650
2650
|
if (options.preventInheritAtCurrentState === true) {
|
|
@@ -2674,10 +2674,10 @@ var require_updateState = __commonJS({
|
|
|
2674
2674
|
const shallow = overwrite === "shallow";
|
|
2675
2675
|
const merge22 = overwrite === "merge";
|
|
2676
2676
|
if (merge22) {
|
|
2677
|
-
(0,
|
|
2677
|
+
(0, import_utils26.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
2678
2678
|
return;
|
|
2679
2679
|
}
|
|
2680
|
-
const overwriteFunc = shallow ?
|
|
2680
|
+
const overwriteFunc = shallow ? import_utils26.overwriteShallow : import_utils26.overwriteDeep;
|
|
2681
2681
|
overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
2682
2682
|
};
|
|
2683
2683
|
var hoistStateUpdate = (state, obj, options) => {
|
|
@@ -2699,7 +2699,7 @@ var require_updateState = __commonJS({
|
|
|
2699
2699
|
const changesValue = (0, import_inherit.createChangesByKey)(stateKey, passedValue);
|
|
2700
2700
|
const targetParent = findGrandParentState || parent.state;
|
|
2701
2701
|
if (options.replace)
|
|
2702
|
-
(0,
|
|
2702
|
+
(0, import_utils26.overwriteDeep)(targetParent, changesValue || value2);
|
|
2703
2703
|
targetParent.update(changesValue, {
|
|
2704
2704
|
execStateFunction: false,
|
|
2705
2705
|
isHoisted: true,
|
|
@@ -2740,9 +2740,9 @@ var require_updateState = __commonJS({
|
|
|
2740
2740
|
}
|
|
2741
2741
|
});
|
|
2742
2742
|
|
|
2743
|
-
//
|
|
2743
|
+
// ../../node_modules/@domql/state/dist/cjs/create.js
|
|
2744
2744
|
var require_create2 = __commonJS({
|
|
2745
|
-
"
|
|
2745
|
+
"../../node_modules/@domql/state/dist/cjs/create.js"(exports, module2) {
|
|
2746
2746
|
"use strict";
|
|
2747
2747
|
var __defProp2 = Object.defineProperty;
|
|
2748
2748
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -2768,7 +2768,7 @@ var require_create2 = __commonJS({
|
|
|
2768
2768
|
});
|
|
2769
2769
|
module2.exports = __toCommonJS2(create_exports);
|
|
2770
2770
|
var import_event = require_cjs3();
|
|
2771
|
-
var
|
|
2771
|
+
var import_utils26 = require_cjs();
|
|
2772
2772
|
var import_ignore = require_ignore();
|
|
2773
2773
|
var import_methods = require_methods();
|
|
2774
2774
|
var import_updateState = require_updateState();
|
|
@@ -2782,13 +2782,13 @@ var require_create2 = __commonJS({
|
|
|
2782
2782
|
if (objectizeState === false)
|
|
2783
2783
|
return parent.state || {};
|
|
2784
2784
|
else
|
|
2785
|
-
element.state = (0,
|
|
2785
|
+
element.state = (0, import_utils26.deepCloneWithExtnd)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
|
|
2786
2786
|
const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
|
|
2787
2787
|
if (whatInitReturns === false)
|
|
2788
2788
|
return element.state;
|
|
2789
2789
|
if ((0, import_inherit.checkIfInherits)(element)) {
|
|
2790
2790
|
const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
|
|
2791
|
-
element.state = (0,
|
|
2791
|
+
element.state = (0, import_utils26.isUndefined)(inheritedState) ? {} : inheritedState;
|
|
2792
2792
|
}
|
|
2793
2793
|
const dependentState = applyDependentState(element, element.state);
|
|
2794
2794
|
if (dependentState)
|
|
@@ -2801,17 +2801,17 @@ var require_create2 = __commonJS({
|
|
|
2801
2801
|
const { __ref: ref } = state;
|
|
2802
2802
|
if (!ref)
|
|
2803
2803
|
return;
|
|
2804
|
-
const dependentState = (0,
|
|
2804
|
+
const dependentState = (0, import_utils26.deepCloneWithExtnd)(ref, import_ignore.IGNORE_STATE_PARAMS);
|
|
2805
2805
|
const newDepends = { [element.key]: dependentState };
|
|
2806
|
-
ref.__depends = (0,
|
|
2806
|
+
ref.__depends = (0, import_utils26.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
|
|
2807
2807
|
return dependentState;
|
|
2808
2808
|
};
|
|
2809
2809
|
var checkForTypes = (element) => {
|
|
2810
2810
|
const { state, __ref: ref } = element;
|
|
2811
|
-
if ((0,
|
|
2811
|
+
if ((0, import_utils26.isFunction)(state)) {
|
|
2812
2812
|
ref.__state = state;
|
|
2813
|
-
return (0,
|
|
2814
|
-
} else if ((0,
|
|
2813
|
+
return (0, import_utils26.exec)(state, element);
|
|
2814
|
+
} else if ((0, import_utils26.is)(state)("string", "number")) {
|
|
2815
2815
|
ref.__state = state;
|
|
2816
2816
|
return {};
|
|
2817
2817
|
} else if (state === true) {
|
|
@@ -2859,7 +2859,7 @@ var require_create2 = __commonJS({
|
|
|
2859
2859
|
__children: {},
|
|
2860
2860
|
__root: ref.__root ? ref.__root.state : state
|
|
2861
2861
|
};
|
|
2862
|
-
if ((0,
|
|
2862
|
+
if ((0, import_utils26.isArray)(state)) {
|
|
2863
2863
|
addProtoToArray(state, proto);
|
|
2864
2864
|
} else {
|
|
2865
2865
|
Object.setPrototypeOf(state, proto);
|
|
@@ -2871,9 +2871,9 @@ var require_create2 = __commonJS({
|
|
|
2871
2871
|
}
|
|
2872
2872
|
});
|
|
2873
2873
|
|
|
2874
|
-
//
|
|
2874
|
+
// ../../node_modules/@domql/state/dist/cjs/index.js
|
|
2875
2875
|
var require_cjs5 = __commonJS({
|
|
2876
|
-
"
|
|
2876
|
+
"../../node_modules/@domql/state/dist/cjs/index.js"(exports, module2) {
|
|
2877
2877
|
"use strict";
|
|
2878
2878
|
var __defProp2 = Object.defineProperty;
|
|
2879
2879
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -2899,9 +2899,9 @@ var require_cjs5 = __commonJS({
|
|
|
2899
2899
|
}
|
|
2900
2900
|
});
|
|
2901
2901
|
|
|
2902
|
-
//
|
|
2902
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/state.js
|
|
2903
2903
|
var require_state = __commonJS({
|
|
2904
|
-
"
|
|
2904
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/state.js"(exports, module2) {
|
|
2905
2905
|
"use strict";
|
|
2906
2906
|
var __defProp2 = Object.defineProperty;
|
|
2907
2907
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -2927,16 +2927,16 @@ var require_state = __commonJS({
|
|
|
2927
2927
|
});
|
|
2928
2928
|
module2.exports = __toCommonJS2(state_exports);
|
|
2929
2929
|
var import_state2 = require_cjs5();
|
|
2930
|
-
var
|
|
2930
|
+
var import_utils26 = require_cjs();
|
|
2931
2931
|
var state = (params, element, node2) => {
|
|
2932
|
-
const state2 = (0,
|
|
2933
|
-
if ((0,
|
|
2932
|
+
const state2 = (0, import_utils26.exec)(params, element);
|
|
2933
|
+
if ((0, import_utils26.isObject)(state2)) {
|
|
2934
2934
|
for (const param in state2) {
|
|
2935
2935
|
if (import_state2.IGNORE_STATE_PARAMS.includes(param))
|
|
2936
2936
|
continue;
|
|
2937
2937
|
if (!Object.hasOwnProperty.call(state2, param))
|
|
2938
2938
|
continue;
|
|
2939
|
-
element.state[param] = (0,
|
|
2939
|
+
element.state[param] = (0, import_utils26.exec)(state2[param], element);
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
2942
2942
|
return element;
|
|
@@ -2945,9 +2945,9 @@ var require_state = __commonJS({
|
|
|
2945
2945
|
}
|
|
2946
2946
|
});
|
|
2947
2947
|
|
|
2948
|
-
//
|
|
2948
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/scope.js
|
|
2949
2949
|
var require_scope = __commonJS({
|
|
2950
|
-
"
|
|
2950
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/scope.js"(exports, module2) {
|
|
2951
2951
|
"use strict";
|
|
2952
2952
|
var __defProp2 = Object.defineProperty;
|
|
2953
2953
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -2971,13 +2971,13 @@ var require_scope = __commonJS({
|
|
|
2971
2971
|
default: () => scope_default
|
|
2972
2972
|
});
|
|
2973
2973
|
module2.exports = __toCommonJS2(scope_exports);
|
|
2974
|
-
var
|
|
2974
|
+
var import_utils26 = require_cjs();
|
|
2975
2975
|
var scope_default = (params, element, node2) => {
|
|
2976
|
-
if (!(0,
|
|
2976
|
+
if (!(0, import_utils26.isObject)(params))
|
|
2977
2977
|
return;
|
|
2978
2978
|
for (const scopeItem in params) {
|
|
2979
2979
|
const value2 = params[scopeItem];
|
|
2980
|
-
if ((0,
|
|
2980
|
+
if ((0, import_utils26.isFunction)(value2)) {
|
|
2981
2981
|
element.scope[scopeItem] = value2.bind(element);
|
|
2982
2982
|
} else {
|
|
2983
2983
|
element.scope[scopeItem] = value2;
|
|
@@ -2987,9 +2987,9 @@ var require_scope = __commonJS({
|
|
|
2987
2987
|
}
|
|
2988
2988
|
});
|
|
2989
2989
|
|
|
2990
|
-
//
|
|
2990
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/registry.js
|
|
2991
2991
|
var require_registry = __commonJS({
|
|
2992
|
-
"
|
|
2992
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/registry.js"(exports, module2) {
|
|
2993
2993
|
"use strict";
|
|
2994
2994
|
var __defProp2 = Object.defineProperty;
|
|
2995
2995
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3085,9 +3085,9 @@ var require_registry = __commonJS({
|
|
|
3085
3085
|
}
|
|
3086
3086
|
});
|
|
3087
3087
|
|
|
3088
|
-
//
|
|
3088
|
+
// ../../node_modules/@domql/element/dist/cjs/mixins/index.js
|
|
3089
3089
|
var require_mixins = __commonJS({
|
|
3090
|
-
"
|
|
3090
|
+
"../../node_modules/@domql/element/dist/cjs/mixins/index.js"(exports, module2) {
|
|
3091
3091
|
"use strict";
|
|
3092
3092
|
var __create2 = Object.create;
|
|
3093
3093
|
var __defProp2 = Object.defineProperty;
|
|
@@ -3145,9 +3145,9 @@ var require_mixins = __commonJS({
|
|
|
3145
3145
|
}
|
|
3146
3146
|
});
|
|
3147
3147
|
|
|
3148
|
-
//
|
|
3148
|
+
// ../../node_modules/@domql/element/dist/cjs/methods/index.js
|
|
3149
3149
|
var require_methods2 = __commonJS({
|
|
3150
|
-
"
|
|
3150
|
+
"../../node_modules/@domql/element/dist/cjs/methods/index.js"(exports, module2) {
|
|
3151
3151
|
"use strict";
|
|
3152
3152
|
var __defProp2 = Object.defineProperty;
|
|
3153
3153
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3184,7 +3184,7 @@ var require_methods2 = __commonJS({
|
|
|
3184
3184
|
spotByPath: () => spotByPath
|
|
3185
3185
|
});
|
|
3186
3186
|
module2.exports = __toCommonJS2(methods_exports);
|
|
3187
|
-
var
|
|
3187
|
+
var import_utils26 = require_cjs();
|
|
3188
3188
|
var import_tree = require_tree();
|
|
3189
3189
|
var import_mixins = require_mixins();
|
|
3190
3190
|
var spotByPath = function(path) {
|
|
@@ -3217,9 +3217,9 @@ var require_methods2 = __commonJS({
|
|
|
3217
3217
|
};
|
|
3218
3218
|
var remove = function(params) {
|
|
3219
3219
|
const element = this;
|
|
3220
|
-
if ((0,
|
|
3220
|
+
if ((0, import_utils26.isFunction)(element.node.remove))
|
|
3221
3221
|
element.node.remove();
|
|
3222
|
-
else if (!(0,
|
|
3222
|
+
else if (!(0, import_utils26.isProduction)()) {
|
|
3223
3223
|
console.warn("This item cant be removed");
|
|
3224
3224
|
element.log();
|
|
3225
3225
|
}
|
|
@@ -3259,12 +3259,12 @@ var require_methods2 = __commonJS({
|
|
|
3259
3259
|
if (v === "state") {
|
|
3260
3260
|
if (element.__ref && element.__ref.__hasRootState)
|
|
3261
3261
|
return;
|
|
3262
|
-
if ((0,
|
|
3262
|
+
if ((0, import_utils26.isFunction)(val && val.parse))
|
|
3263
3263
|
val = val.parse();
|
|
3264
3264
|
} else if (v === "props") {
|
|
3265
3265
|
const { __element, update, ...props4 } = element[v];
|
|
3266
3266
|
obj[v] = props4;
|
|
3267
|
-
} else if ((0,
|
|
3267
|
+
} else if ((0, import_utils26.isDefined)(val))
|
|
3268
3268
|
obj[v] = val;
|
|
3269
3269
|
});
|
|
3270
3270
|
return obj;
|
|
@@ -3275,7 +3275,7 @@ var require_methods2 = __commonJS({
|
|
|
3275
3275
|
for (const v in obj) {
|
|
3276
3276
|
if (excl.includes(v))
|
|
3277
3277
|
return;
|
|
3278
|
-
if ((0,
|
|
3278
|
+
if ((0, import_utils26.isObjectLike)(obj[v])) {
|
|
3279
3279
|
obj[v] = parseDeep.call(obj[v], excl);
|
|
3280
3280
|
}
|
|
3281
3281
|
}
|
|
@@ -3337,9 +3337,9 @@ var require_methods2 = __commonJS({
|
|
|
3337
3337
|
}
|
|
3338
3338
|
});
|
|
3339
3339
|
|
|
3340
|
-
//
|
|
3340
|
+
// ../../node_modules/@domql/element/dist/cjs/props/ignore.js
|
|
3341
3341
|
var require_ignore2 = __commonJS({
|
|
3342
|
-
"
|
|
3342
|
+
"../../node_modules/@domql/element/dist/cjs/props/ignore.js"(exports, module2) {
|
|
3343
3343
|
"use strict";
|
|
3344
3344
|
var __defProp2 = Object.defineProperty;
|
|
3345
3345
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3367,9 +3367,9 @@ var require_ignore2 = __commonJS({
|
|
|
3367
3367
|
}
|
|
3368
3368
|
});
|
|
3369
3369
|
|
|
3370
|
-
//
|
|
3370
|
+
// ../../node_modules/@domql/element/dist/cjs/props/inherit.js
|
|
3371
3371
|
var require_inherit2 = __commonJS({
|
|
3372
|
-
"
|
|
3372
|
+
"../../node_modules/@domql/element/dist/cjs/props/inherit.js"(exports, module2) {
|
|
3373
3373
|
"use strict";
|
|
3374
3374
|
var __defProp2 = Object.defineProperty;
|
|
3375
3375
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3393,18 +3393,18 @@ var require_inherit2 = __commonJS({
|
|
|
3393
3393
|
inheritParentProps: () => inheritParentProps
|
|
3394
3394
|
});
|
|
3395
3395
|
module2.exports = __toCommonJS2(inherit_exports);
|
|
3396
|
-
var
|
|
3396
|
+
var import_utils26 = require_cjs();
|
|
3397
3397
|
var objectizeStringProperty = (propValue) => {
|
|
3398
|
-
if ((0,
|
|
3398
|
+
if ((0, import_utils26.is)(propValue)("string", "number")) {
|
|
3399
3399
|
return { inheritedString: propValue };
|
|
3400
3400
|
}
|
|
3401
3401
|
return propValue;
|
|
3402
3402
|
};
|
|
3403
3403
|
var inheritParentProps = (element, parent) => {
|
|
3404
3404
|
let propsStack = [];
|
|
3405
|
-
const parentProps = (0,
|
|
3405
|
+
const parentProps = (0, import_utils26.exec)(parent, parent.state).props;
|
|
3406
3406
|
const matchParent = parent.props && parentProps[element.key];
|
|
3407
|
-
const matchParentIsString = (0,
|
|
3407
|
+
const matchParentIsString = (0, import_utils26.isString)(matchParent);
|
|
3408
3408
|
const matchParentChildProps = parentProps && parentProps.childProps;
|
|
3409
3409
|
if (matchParent) {
|
|
3410
3410
|
if (matchParentIsString) {
|
|
@@ -3425,9 +3425,9 @@ var require_inherit2 = __commonJS({
|
|
|
3425
3425
|
}
|
|
3426
3426
|
});
|
|
3427
3427
|
|
|
3428
|
-
//
|
|
3428
|
+
// ../../node_modules/@domql/element/dist/cjs/props/create.js
|
|
3429
3429
|
var require_create3 = __commonJS({
|
|
3430
|
-
"
|
|
3430
|
+
"../../node_modules/@domql/element/dist/cjs/props/create.js"(exports, module2) {
|
|
3431
3431
|
"use strict";
|
|
3432
3432
|
var __defProp2 = Object.defineProperty;
|
|
3433
3433
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3452,19 +3452,19 @@ var require_create3 = __commonJS({
|
|
|
3452
3452
|
syncProps: () => syncProps
|
|
3453
3453
|
});
|
|
3454
3454
|
module2.exports = __toCommonJS2(create_exports);
|
|
3455
|
-
var
|
|
3455
|
+
var import_utils26 = require_cjs();
|
|
3456
3456
|
var import_ignore = require_ignore2();
|
|
3457
3457
|
var import_inherit = require_inherit2();
|
|
3458
3458
|
var createPropsStack = (element, parent) => {
|
|
3459
3459
|
const { props: props4, __ref } = element;
|
|
3460
3460
|
const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
|
|
3461
|
-
if ((0,
|
|
3461
|
+
if ((0, import_utils26.isObject)(props4))
|
|
3462
3462
|
propsStack.push(props4);
|
|
3463
3463
|
else if (props4 === "inherit" && parent.props)
|
|
3464
3464
|
propsStack.push(parent.props);
|
|
3465
3465
|
else if (props4)
|
|
3466
3466
|
propsStack.push(props4);
|
|
3467
|
-
if ((0,
|
|
3467
|
+
if ((0, import_utils26.isArray)(__ref.__extend)) {
|
|
3468
3468
|
__ref.__extend.forEach((extend) => {
|
|
3469
3469
|
if (extend.props && extend.props !== props4)
|
|
3470
3470
|
propsStack.push(extend.props);
|
|
@@ -3479,10 +3479,10 @@ var require_create3 = __commonJS({
|
|
|
3479
3479
|
props4.forEach((v) => {
|
|
3480
3480
|
if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
|
|
3481
3481
|
return;
|
|
3482
|
-
const execProps = (0,
|
|
3483
|
-
element.props = (0,
|
|
3482
|
+
const execProps = (0, import_utils26.exec)(v, element);
|
|
3483
|
+
element.props = (0, import_utils26.deepMerge)(
|
|
3484
3484
|
mergedProps,
|
|
3485
|
-
(0,
|
|
3485
|
+
(0, import_utils26.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
|
|
3486
3486
|
import_ignore.IGNORE_PROPS_PARAMS
|
|
3487
3487
|
);
|
|
3488
3488
|
});
|
|
@@ -3524,9 +3524,9 @@ var require_create3 = __commonJS({
|
|
|
3524
3524
|
}
|
|
3525
3525
|
});
|
|
3526
3526
|
|
|
3527
|
-
//
|
|
3527
|
+
// ../../node_modules/@domql/element/dist/cjs/props/update.js
|
|
3528
3528
|
var require_update = __commonJS({
|
|
3529
|
-
"
|
|
3529
|
+
"../../node_modules/@domql/element/dist/cjs/props/update.js"(exports, module2) {
|
|
3530
3530
|
"use strict";
|
|
3531
3531
|
var __defProp2 = Object.defineProperty;
|
|
3532
3532
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3567,9 +3567,9 @@ var require_update = __commonJS({
|
|
|
3567
3567
|
}
|
|
3568
3568
|
});
|
|
3569
3569
|
|
|
3570
|
-
//
|
|
3570
|
+
// ../../node_modules/@domql/element/dist/cjs/props/index.js
|
|
3571
3571
|
var require_props = __commonJS({
|
|
3572
|
-
"
|
|
3572
|
+
"../../node_modules/@domql/element/dist/cjs/props/index.js"(exports, module2) {
|
|
3573
3573
|
"use strict";
|
|
3574
3574
|
var __defProp2 = Object.defineProperty;
|
|
3575
3575
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3594,9 +3594,9 @@ var require_props = __commonJS({
|
|
|
3594
3594
|
}
|
|
3595
3595
|
});
|
|
3596
3596
|
|
|
3597
|
-
//
|
|
3597
|
+
// ../../node_modules/@domql/element/dist/cjs/utils/object.js
|
|
3598
3598
|
var require_object2 = __commonJS({
|
|
3599
|
-
"
|
|
3599
|
+
"../../node_modules/@domql/element/dist/cjs/utils/object.js"(exports, module2) {
|
|
3600
3600
|
"use strict";
|
|
3601
3601
|
var __defProp2 = Object.defineProperty;
|
|
3602
3602
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3630,11 +3630,11 @@ var require_object2 = __commonJS({
|
|
|
3630
3630
|
overwriteShallow: () => overwriteShallow2
|
|
3631
3631
|
});
|
|
3632
3632
|
module2.exports = __toCommonJS2(object_exports);
|
|
3633
|
-
var
|
|
3633
|
+
var import_utils26 = require_cjs();
|
|
3634
3634
|
var import_state2 = require_cjs5();
|
|
3635
3635
|
var import_props = require_props();
|
|
3636
3636
|
var import_methods = require_methods2();
|
|
3637
|
-
var METHODS_EXL = (0,
|
|
3637
|
+
var METHODS_EXL = (0, import_utils26.joinArrays)(
|
|
3638
3638
|
["node", "state", "context", "extend"],
|
|
3639
3639
|
import_methods.METHODS,
|
|
3640
3640
|
import_state2.IGNORE_STATE_PARAMS,
|
|
@@ -3648,7 +3648,7 @@ var require_object2 = __commonJS({
|
|
|
3648
3648
|
const extendProp = extend[e];
|
|
3649
3649
|
if (elementProp === void 0) {
|
|
3650
3650
|
element[e] = extendProp;
|
|
3651
|
-
} else if ((0,
|
|
3651
|
+
} else if ((0, import_utils26.isObjectLike)(elementProp) && (0, import_utils26.isObject)(extendProp)) {
|
|
3652
3652
|
deepMerge7(elementProp, extendProp);
|
|
3653
3653
|
}
|
|
3654
3654
|
}
|
|
@@ -3664,15 +3664,15 @@ var require_object2 = __commonJS({
|
|
|
3664
3664
|
return o;
|
|
3665
3665
|
};
|
|
3666
3666
|
var deepClone4 = (obj, exclude = METHODS_EXL) => {
|
|
3667
|
-
const o = (0,
|
|
3667
|
+
const o = (0, import_utils26.isArray)(obj) ? [] : {};
|
|
3668
3668
|
for (const e in obj) {
|
|
3669
3669
|
if (exclude.includes(e))
|
|
3670
3670
|
continue;
|
|
3671
3671
|
let objProp = obj[e];
|
|
3672
|
-
if (e === "extend" && (0,
|
|
3672
|
+
if (e === "extend" && (0, import_utils26.isArray)(objProp)) {
|
|
3673
3673
|
objProp = mergeArray(objProp, exclude);
|
|
3674
3674
|
}
|
|
3675
|
-
if ((0,
|
|
3675
|
+
if ((0, import_utils26.isObjectLike)(objProp)) {
|
|
3676
3676
|
o[e] = deepClone4(objProp, exclude);
|
|
3677
3677
|
} else
|
|
3678
3678
|
o[e] = objProp;
|
|
@@ -3711,7 +3711,7 @@ var require_object2 = __commonJS({
|
|
|
3711
3711
|
continue;
|
|
3712
3712
|
const objProp = obj[e];
|
|
3713
3713
|
const paramsProp = params[e];
|
|
3714
|
-
if ((0,
|
|
3714
|
+
if ((0, import_utils26.isObjectLike)(objProp) && (0, import_utils26.isObjectLike)(paramsProp)) {
|
|
3715
3715
|
overwriteDeep(objProp, paramsProp);
|
|
3716
3716
|
} else if (paramsProp !== void 0) {
|
|
3717
3717
|
obj[e] = paramsProp;
|
|
@@ -3720,7 +3720,7 @@ var require_object2 = __commonJS({
|
|
|
3720
3720
|
return obj;
|
|
3721
3721
|
};
|
|
3722
3722
|
var mergeIfExisted = (a, b) => {
|
|
3723
|
-
if ((0,
|
|
3723
|
+
if ((0, import_utils26.isObjectLike)(a) && (0, import_utils26.isObjectLike)(b))
|
|
3724
3724
|
return deepMerge7(a, b);
|
|
3725
3725
|
return a || b;
|
|
3726
3726
|
};
|
|
@@ -3728,7 +3728,7 @@ var require_object2 = __commonJS({
|
|
|
3728
3728
|
return arr.reduce((a, c) => deepMerge7(a, deepClone4(c, exclude)), {});
|
|
3729
3729
|
};
|
|
3730
3730
|
var mergeAndCloneIfArray = (obj) => {
|
|
3731
|
-
return (0,
|
|
3731
|
+
return (0, import_utils26.isArray)(obj) ? mergeArray(obj) : deepClone4(obj);
|
|
3732
3732
|
};
|
|
3733
3733
|
var flattenRecursive = (param, prop, stack = []) => {
|
|
3734
3734
|
const objectized = mergeAndCloneIfArray(param);
|
|
@@ -3742,9 +3742,9 @@ var require_object2 = __commonJS({
|
|
|
3742
3742
|
}
|
|
3743
3743
|
});
|
|
3744
3744
|
|
|
3745
|
-
//
|
|
3745
|
+
// ../../node_modules/@domql/element/dist/cjs/utils/extendUtils.js
|
|
3746
3746
|
var require_extendUtils = __commonJS({
|
|
3747
|
-
"
|
|
3747
|
+
"../../node_modules/@domql/element/dist/cjs/utils/extendUtils.js"(exports, module2) {
|
|
3748
3748
|
"use strict";
|
|
3749
3749
|
var __defProp2 = Object.defineProperty;
|
|
3750
3750
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3783,7 +3783,7 @@ var require_extendUtils = __commonJS({
|
|
|
3783
3783
|
setHashedExtend: () => setHashedExtend
|
|
3784
3784
|
});
|
|
3785
3785
|
module2.exports = __toCommonJS2(extendUtils_exports);
|
|
3786
|
-
var
|
|
3786
|
+
var import_utils26 = require_cjs();
|
|
3787
3787
|
var ENV2 = "development";
|
|
3788
3788
|
var generateHash = () => Math.random().toString(36).substring(2);
|
|
3789
3789
|
var extendStackRegistry = {};
|
|
@@ -3793,7 +3793,7 @@ var require_extendUtils = __commonJS({
|
|
|
3793
3793
|
};
|
|
3794
3794
|
var setHashedExtend = (extend, stack) => {
|
|
3795
3795
|
const hash2 = generateHash();
|
|
3796
|
-
if (!(0,
|
|
3796
|
+
if (!(0, import_utils26.isString)(extend)) {
|
|
3797
3797
|
extend.__hash = hash2;
|
|
3798
3798
|
}
|
|
3799
3799
|
extendStackRegistry[hash2] = stack;
|
|
@@ -3819,9 +3819,9 @@ var require_extendUtils = __commonJS({
|
|
|
3819
3819
|
var flattenExtend = (extend, stack, context) => {
|
|
3820
3820
|
if (!extend)
|
|
3821
3821
|
return stack;
|
|
3822
|
-
if ((0,
|
|
3822
|
+
if ((0, import_utils26.isArray)(extend))
|
|
3823
3823
|
return extractArrayExtend(extend, stack, context);
|
|
3824
|
-
if ((0,
|
|
3824
|
+
if ((0, import_utils26.isString)(extend))
|
|
3825
3825
|
extend = fallbackStringExtend(extend, context);
|
|
3826
3826
|
stack.push(extend);
|
|
3827
3827
|
if (extend.extend)
|
|
@@ -3834,9 +3834,9 @@ var require_extendUtils = __commonJS({
|
|
|
3834
3834
|
if (["parent", "node", "__element"].indexOf(prop) > -1)
|
|
3835
3835
|
continue;
|
|
3836
3836
|
const objProp = obj[prop];
|
|
3837
|
-
if ((0,
|
|
3837
|
+
if ((0, import_utils26.isObject)(objProp)) {
|
|
3838
3838
|
o[prop] = deepCloneExtend(objProp);
|
|
3839
|
-
} else if ((0,
|
|
3839
|
+
} else if ((0, import_utils26.isArray)(objProp)) {
|
|
3840
3840
|
o[prop] = objProp.map((x) => x);
|
|
3841
3841
|
} else
|
|
3842
3842
|
o[prop] = objProp;
|
|
@@ -3851,14 +3851,14 @@ var require_extendUtils = __commonJS({
|
|
|
3851
3851
|
const extendProp = extend[e];
|
|
3852
3852
|
if (elementProp === void 0) {
|
|
3853
3853
|
element[e] = extendProp;
|
|
3854
|
-
} else if ((0,
|
|
3854
|
+
} else if ((0, import_utils26.isObject)(elementProp) && (0, import_utils26.isObject)(extendProp)) {
|
|
3855
3855
|
deepMergeExtend(elementProp, extendProp);
|
|
3856
|
-
} else if ((0,
|
|
3856
|
+
} else if ((0, import_utils26.isArray)(elementProp) && (0, import_utils26.isArray)(extendProp)) {
|
|
3857
3857
|
element[e] = elementProp.concat(extendProp);
|
|
3858
|
-
} else if ((0,
|
|
3858
|
+
} else if ((0, import_utils26.isArray)(elementProp) && (0, import_utils26.isObject)(extendProp)) {
|
|
3859
3859
|
const obj = deepMergeExtend({}, elementProp);
|
|
3860
3860
|
element[e] = deepMergeExtend(obj, extendProp);
|
|
3861
|
-
} else if (elementProp === void 0 && (0,
|
|
3861
|
+
} else if (elementProp === void 0 && (0, import_utils26.isFunction)(extendProp)) {
|
|
3862
3862
|
element[e] = extendProp;
|
|
3863
3863
|
}
|
|
3864
3864
|
}
|
|
@@ -3871,7 +3871,7 @@ var require_extendUtils = __commonJS({
|
|
|
3871
3871
|
};
|
|
3872
3872
|
var fallbackStringExtend = (extend, context, options = {}) => {
|
|
3873
3873
|
const COMPONENTS = context && context.components || options.components;
|
|
3874
|
-
if ((0,
|
|
3874
|
+
if ((0, import_utils26.isString)(extend)) {
|
|
3875
3875
|
const componentExists = COMPONENTS[extend] || COMPONENTS["smbls." + extend];
|
|
3876
3876
|
if (COMPONENTS && componentExists) {
|
|
3877
3877
|
return componentExists;
|
|
@@ -3902,9 +3902,9 @@ var require_extendUtils = __commonJS({
|
|
|
3902
3902
|
}
|
|
3903
3903
|
});
|
|
3904
3904
|
|
|
3905
|
-
//
|
|
3905
|
+
// ../../node_modules/@domql/element/dist/cjs/extend.js
|
|
3906
3906
|
var require_extend = __commonJS({
|
|
3907
|
-
"
|
|
3907
|
+
"../../node_modules/@domql/element/dist/cjs/extend.js"(exports, module2) {
|
|
3908
3908
|
"use strict";
|
|
3909
3909
|
var __defProp2 = Object.defineProperty;
|
|
3910
3910
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3928,27 +3928,27 @@ var require_extend = __commonJS({
|
|
|
3928
3928
|
applyExtend: () => applyExtend
|
|
3929
3929
|
});
|
|
3930
3930
|
module2.exports = __toCommonJS2(extend_exports);
|
|
3931
|
-
var
|
|
3932
|
-
var
|
|
3931
|
+
var import_utils26 = require_cjs();
|
|
3932
|
+
var import_utils27 = require_utils();
|
|
3933
3933
|
var ENV2 = "development";
|
|
3934
3934
|
var applyExtend = (element, parent, options = {}) => {
|
|
3935
|
-
if ((0,
|
|
3936
|
-
element = (0,
|
|
3935
|
+
if ((0, import_utils26.isFunction)(element))
|
|
3936
|
+
element = (0, import_utils26.exec)(element, parent);
|
|
3937
3937
|
let { extend, props: props4, context, __ref } = element;
|
|
3938
|
-
extend = (0,
|
|
3939
|
-
const extendStack = (0,
|
|
3938
|
+
extend = (0, import_utils27.fallbackStringExtend)(extend, context, options);
|
|
3939
|
+
const extendStack = (0, import_utils27.getExtendStack)(extend, context);
|
|
3940
3940
|
if (ENV2 !== "test" || ENV2 !== "development")
|
|
3941
3941
|
delete element.extend;
|
|
3942
3942
|
let childExtendStack = [];
|
|
3943
3943
|
if (parent) {
|
|
3944
3944
|
element.parent = parent;
|
|
3945
3945
|
if (!options.ignoreChildExtend && !(props4 && props4.ignoreChildExtend)) {
|
|
3946
|
-
childExtendStack = (0,
|
|
3946
|
+
childExtendStack = (0, import_utils27.getExtendStack)(parent.childExtend, context);
|
|
3947
3947
|
const ignoreChildExtendRecursive = props4 && props4.ignoreChildExtendRecursive;
|
|
3948
3948
|
if (parent.childExtendRecursive && !ignoreChildExtendRecursive) {
|
|
3949
3949
|
const canExtendRecursive = element.key !== "__text";
|
|
3950
3950
|
if (canExtendRecursive) {
|
|
3951
|
-
const childExtendRecursiveStack = (0,
|
|
3951
|
+
const childExtendRecursiveStack = (0, import_utils27.getExtendStack)(parent.childExtendRecursive, context);
|
|
3952
3952
|
childExtendStack = childExtendStack.concat(childExtendRecursiveStack);
|
|
3953
3953
|
element.childExtendRecursive = parent.childExtendRecursive;
|
|
3954
3954
|
}
|
|
@@ -3959,7 +3959,7 @@ var require_extend = __commonJS({
|
|
|
3959
3959
|
const childExtendLength = childExtendStack.length;
|
|
3960
3960
|
let stack = [];
|
|
3961
3961
|
if (extendLength && childExtendLength) {
|
|
3962
|
-
stack = (0,
|
|
3962
|
+
stack = (0, import_utils27.jointStacks)(extendStack, childExtendStack);
|
|
3963
3963
|
} else if (extendLength) {
|
|
3964
3964
|
stack = extendStack;
|
|
3965
3965
|
} else if (childExtendLength) {
|
|
@@ -3967,26 +3967,26 @@ var require_extend = __commonJS({
|
|
|
3967
3967
|
} else if (!options.extend)
|
|
3968
3968
|
return element;
|
|
3969
3969
|
if (options.extend) {
|
|
3970
|
-
const defaultOptionsExtend = (0,
|
|
3970
|
+
const defaultOptionsExtend = (0, import_utils27.getExtendStack)(options.extend, context);
|
|
3971
3971
|
stack = [].concat(stack, defaultOptionsExtend);
|
|
3972
3972
|
}
|
|
3973
3973
|
if (__ref)
|
|
3974
3974
|
__ref.__extend = stack;
|
|
3975
|
-
let mergedExtend = (0,
|
|
3975
|
+
let mergedExtend = (0, import_utils27.cloneAndMergeArrayExtend)(stack);
|
|
3976
3976
|
const COMPONENTS = context && context.components || options.components;
|
|
3977
|
-
const component = (0,
|
|
3977
|
+
const component = (0, import_utils26.exec)(element.component || mergedExtend.component, element);
|
|
3978
3978
|
if (component && COMPONENTS && COMPONENTS[component]) {
|
|
3979
|
-
const componentExtend = (0,
|
|
3980
|
-
mergedExtend = (0,
|
|
3979
|
+
const componentExtend = (0, import_utils27.cloneAndMergeArrayExtend)((0, import_utils27.getExtendStack)(COMPONENTS[component]));
|
|
3980
|
+
mergedExtend = (0, import_utils27.deepMergeExtend)(componentExtend, mergedExtend);
|
|
3981
3981
|
}
|
|
3982
|
-
return (0,
|
|
3982
|
+
return (0, import_utils27.deepMergeExtend)(element, mergedExtend);
|
|
3983
3983
|
};
|
|
3984
3984
|
}
|
|
3985
3985
|
});
|
|
3986
3986
|
|
|
3987
|
-
//
|
|
3987
|
+
// ../../node_modules/@domql/element/dist/cjs/utils/component.js
|
|
3988
3988
|
var require_component = __commonJS({
|
|
3989
|
-
"
|
|
3989
|
+
"../../node_modules/@domql/element/dist/cjs/utils/component.js"(exports, module2) {
|
|
3990
3990
|
"use strict";
|
|
3991
3991
|
var __defProp2 = Object.defineProperty;
|
|
3992
3992
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4018,11 +4018,11 @@ var require_component = __commonJS({
|
|
|
4018
4018
|
overwriteVariant: () => overwriteVariant
|
|
4019
4019
|
});
|
|
4020
4020
|
module2.exports = __toCommonJS2(component_exports);
|
|
4021
|
-
var
|
|
4021
|
+
var import_utils26 = require_cjs();
|
|
4022
4022
|
var import_extend = require_extend();
|
|
4023
4023
|
var ENV2 = "development";
|
|
4024
4024
|
var checkIfKeyIsComponent2 = (key) => {
|
|
4025
|
-
const isFirstKeyString = (0,
|
|
4025
|
+
const isFirstKeyString = (0, import_utils26.isString)(key);
|
|
4026
4026
|
if (!isFirstKeyString)
|
|
4027
4027
|
return;
|
|
4028
4028
|
const firstCharKey = key.slice(0, 1);
|
|
@@ -4030,7 +4030,7 @@ var require_component = __commonJS({
|
|
|
4030
4030
|
};
|
|
4031
4031
|
var addAdditionalExtend = (newExtend, element) => {
|
|
4032
4032
|
const { extend } = element;
|
|
4033
|
-
const preserveExtend = (0,
|
|
4033
|
+
const preserveExtend = (0, import_utils26.isArray)(extend) ? extend : [extend];
|
|
4034
4034
|
return {
|
|
4035
4035
|
...element,
|
|
4036
4036
|
extend: [newExtend].concat(preserveExtend)
|
|
@@ -4055,12 +4055,12 @@ var require_component = __commonJS({
|
|
|
4055
4055
|
};
|
|
4056
4056
|
} else if (extend) {
|
|
4057
4057
|
addAdditionalExtend(extendKey, element);
|
|
4058
|
-
} else if ((0,
|
|
4058
|
+
} else if ((0, import_utils26.isFunction)(element)) {
|
|
4059
4059
|
console.log(element);
|
|
4060
4060
|
return {
|
|
4061
4061
|
extend: extendKey,
|
|
4062
4062
|
tag,
|
|
4063
|
-
props: { ...(0,
|
|
4063
|
+
props: { ...(0, import_utils26.exec)(element, parent) }
|
|
4064
4064
|
};
|
|
4065
4065
|
}
|
|
4066
4066
|
};
|
|
@@ -4073,8 +4073,8 @@ var require_component = __commonJS({
|
|
|
4073
4073
|
return;
|
|
4074
4074
|
const { components } = context;
|
|
4075
4075
|
const { extend } = element;
|
|
4076
|
-
const execExtend = (0,
|
|
4077
|
-
if ((0,
|
|
4076
|
+
const execExtend = (0, import_utils26.exec)(extend, element);
|
|
4077
|
+
if ((0, import_utils26.isString)(execExtend)) {
|
|
4078
4078
|
const componentExists = components[execExtend] || components["smbls." + execExtend];
|
|
4079
4079
|
if (componentExists)
|
|
4080
4080
|
element.extend = componentExists;
|
|
@@ -4088,29 +4088,29 @@ var require_component = __commonJS({
|
|
|
4088
4088
|
}
|
|
4089
4089
|
};
|
|
4090
4090
|
var isVariant = (param) => {
|
|
4091
|
-
if (!(0,
|
|
4091
|
+
if (!(0, import_utils26.isString)(param))
|
|
4092
4092
|
return;
|
|
4093
4093
|
const firstCharKey = param.slice(0, 1);
|
|
4094
4094
|
return firstCharKey === ".";
|
|
4095
4095
|
};
|
|
4096
4096
|
var hasVariantProp = (element) => {
|
|
4097
4097
|
const { props: props4 } = element;
|
|
4098
|
-
if ((0,
|
|
4098
|
+
if ((0, import_utils26.isObject)(props4) && (0, import_utils26.isString)(props4.variant))
|
|
4099
4099
|
return true;
|
|
4100
4100
|
};
|
|
4101
4101
|
var overwriteVariant = (element, variant, variantProps) => {
|
|
4102
4102
|
let variantElement = element[variant];
|
|
4103
4103
|
if (!variantElement)
|
|
4104
4104
|
return;
|
|
4105
|
-
const props4 = (0,
|
|
4106
|
-
if ((0,
|
|
4105
|
+
const props4 = (0, import_utils26.isObject)(variantProps) ? variantProps : {};
|
|
4106
|
+
if ((0, import_utils26.isString)(variantElement)) {
|
|
4107
4107
|
variantElement = {
|
|
4108
4108
|
extend: [{ props: props4 }, variantElement]
|
|
4109
4109
|
};
|
|
4110
4110
|
} else if (variantElement.extend) {
|
|
4111
4111
|
variantElement = addAdditionalExtend({ props: props4 }, variantElement);
|
|
4112
4112
|
}
|
|
4113
|
-
return (0,
|
|
4113
|
+
return (0, import_utils26.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
|
|
4114
4114
|
};
|
|
4115
4115
|
var applyVariant = (element) => {
|
|
4116
4116
|
const { props: props4 } = element;
|
|
@@ -4130,9 +4130,9 @@ var require_component = __commonJS({
|
|
|
4130
4130
|
}
|
|
4131
4131
|
});
|
|
4132
4132
|
|
|
4133
|
-
//
|
|
4133
|
+
// ../../node_modules/@domql/element/dist/cjs/utils/index.js
|
|
4134
4134
|
var require_utils = __commonJS({
|
|
4135
|
-
"
|
|
4135
|
+
"../../node_modules/@domql/element/dist/cjs/utils/index.js"(exports, module2) {
|
|
4136
4136
|
"use strict";
|
|
4137
4137
|
var __defProp2 = Object.defineProperty;
|
|
4138
4138
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4156,9 +4156,9 @@ var require_utils = __commonJS({
|
|
|
4156
4156
|
}
|
|
4157
4157
|
});
|
|
4158
4158
|
|
|
4159
|
-
//
|
|
4159
|
+
// ../../node_modules/@domql/element/dist/cjs/iterate.js
|
|
4160
4160
|
var require_iterate = __commonJS({
|
|
4161
|
-
"
|
|
4161
|
+
"../../node_modules/@domql/element/dist/cjs/iterate.js"(exports, module2) {
|
|
4162
4162
|
"use strict";
|
|
4163
4163
|
var __defProp2 = Object.defineProperty;
|
|
4164
4164
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4185,8 +4185,8 @@ var require_iterate = __commonJS({
|
|
|
4185
4185
|
throughUpdatedExec: () => throughUpdatedExec
|
|
4186
4186
|
});
|
|
4187
4187
|
module2.exports = __toCommonJS2(iterate_exports);
|
|
4188
|
-
var
|
|
4189
|
-
var
|
|
4188
|
+
var import_utils26 = require_cjs();
|
|
4189
|
+
var import_utils27 = require_utils();
|
|
4190
4190
|
var import_methods = require_methods2();
|
|
4191
4191
|
var throughInitialExec = (element, exclude = {}) => {
|
|
4192
4192
|
const { __ref: ref } = element;
|
|
@@ -4194,13 +4194,13 @@ var require_iterate = __commonJS({
|
|
|
4194
4194
|
if (exclude[param])
|
|
4195
4195
|
continue;
|
|
4196
4196
|
const prop = element[param];
|
|
4197
|
-
if ((0,
|
|
4197
|
+
if ((0, import_utils26.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils27.isVariant)(param)) {
|
|
4198
4198
|
ref.__exec[param] = prop;
|
|
4199
4199
|
element[param] = prop(element, element.state);
|
|
4200
4200
|
}
|
|
4201
4201
|
}
|
|
4202
4202
|
};
|
|
4203
|
-
var throughUpdatedExec = (element, options = { excludes:
|
|
4203
|
+
var throughUpdatedExec = (element, options = { excludes: import_utils27.METHODS_EXL }) => {
|
|
4204
4204
|
const { __ref: ref } = element;
|
|
4205
4205
|
const changes = {};
|
|
4206
4206
|
for (const param in ref.__exec) {
|
|
@@ -4209,13 +4209,13 @@ var require_iterate = __commonJS({
|
|
|
4209
4209
|
if (isDefinedParam)
|
|
4210
4210
|
continue;
|
|
4211
4211
|
const newExec = ref.__exec[param](element, element.state, element.context);
|
|
4212
|
-
const execReturnsString = (0,
|
|
4212
|
+
const execReturnsString = (0, import_utils26.isString)(newExec) || (0, import_utils26.isNumber)(newExec);
|
|
4213
4213
|
if (prop && prop.node && execReturnsString) {
|
|
4214
|
-
(0,
|
|
4214
|
+
(0, import_utils27.overwrite)(prop, { text: newExec }, options);
|
|
4215
4215
|
} else if (newExec !== prop) {
|
|
4216
|
-
if ((0,
|
|
4217
|
-
const { extend, ...newElem } = (0,
|
|
4218
|
-
(0,
|
|
4216
|
+
if ((0, import_utils27.checkIfKeyIsComponent)(param)) {
|
|
4217
|
+
const { extend, ...newElem } = (0, import_utils27.extendizeByKey)(newExec, element, param);
|
|
4218
|
+
(0, import_utils27.overwrite)(prop, newElem, options);
|
|
4219
4219
|
} else {
|
|
4220
4220
|
ref.__cached[param] = changes[param] = prop;
|
|
4221
4221
|
element[param] = newExec;
|
|
@@ -4227,16 +4227,16 @@ var require_iterate = __commonJS({
|
|
|
4227
4227
|
var throughInitialDefine = (element) => {
|
|
4228
4228
|
const { define, context, __ref: ref } = element;
|
|
4229
4229
|
let defineObj = {};
|
|
4230
|
-
const hasGlobalDefine = context && (0,
|
|
4231
|
-
if ((0,
|
|
4230
|
+
const hasGlobalDefine = context && (0, import_utils26.isObject)(context.define);
|
|
4231
|
+
if ((0, import_utils26.isObject)(define))
|
|
4232
4232
|
defineObj = { ...define };
|
|
4233
4233
|
if (hasGlobalDefine)
|
|
4234
4234
|
defineObj = { ...defineObj, ...context.define };
|
|
4235
4235
|
for (const param in defineObj) {
|
|
4236
4236
|
let elementProp = element[param];
|
|
4237
|
-
if ((0,
|
|
4237
|
+
if ((0, import_utils26.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils27.isVariant)(param)) {
|
|
4238
4238
|
ref.__exec[param] = elementProp;
|
|
4239
|
-
const execParam2 = elementProp = (0,
|
|
4239
|
+
const execParam2 = elementProp = (0, import_utils26.exec)(elementProp, element);
|
|
4240
4240
|
if (execParam2) {
|
|
4241
4241
|
elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
|
|
4242
4242
|
ref.__defineCache[param] = elementProp;
|
|
@@ -4252,15 +4252,15 @@ var require_iterate = __commonJS({
|
|
|
4252
4252
|
const { context, define, __ref: ref } = element;
|
|
4253
4253
|
const changes = {};
|
|
4254
4254
|
let obj = {};
|
|
4255
|
-
if ((0,
|
|
4255
|
+
if ((0, import_utils26.isObject)(define))
|
|
4256
4256
|
obj = { ...define };
|
|
4257
|
-
if ((0,
|
|
4257
|
+
if ((0, import_utils26.isObject)(context && context.define))
|
|
4258
4258
|
obj = { ...obj, ...context.define };
|
|
4259
4259
|
for (const param in obj) {
|
|
4260
4260
|
const execParam = ref.__exec[param];
|
|
4261
4261
|
if (execParam)
|
|
4262
4262
|
ref.__defineCache[param] = execParam(element, element.state, element.context);
|
|
4263
|
-
const cached = (0,
|
|
4263
|
+
const cached = (0, import_utils26.exec)(ref.__defineCache[param], element);
|
|
4264
4264
|
const newExecParam = obj[param](cached, element, element.state, element.context);
|
|
4265
4265
|
if (newExecParam)
|
|
4266
4266
|
element[param] = newExecParam;
|
|
@@ -4270,9 +4270,9 @@ var require_iterate = __commonJS({
|
|
|
4270
4270
|
}
|
|
4271
4271
|
});
|
|
4272
4272
|
|
|
4273
|
-
//
|
|
4273
|
+
// ../../node_modules/@domql/element/dist/cjs/applyParam.js
|
|
4274
4274
|
var require_applyParam = __commonJS({
|
|
4275
|
-
"
|
|
4275
|
+
"../../node_modules/@domql/element/dist/cjs/applyParam.js"(exports, module2) {
|
|
4276
4276
|
"use strict";
|
|
4277
4277
|
var __defProp2 = Object.defineProperty;
|
|
4278
4278
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4296,7 +4296,7 @@ var require_applyParam = __commonJS({
|
|
|
4296
4296
|
applyParam: () => applyParam
|
|
4297
4297
|
});
|
|
4298
4298
|
module2.exports = __toCommonJS2(applyParam_exports);
|
|
4299
|
-
var
|
|
4299
|
+
var import_utils26 = require_cjs();
|
|
4300
4300
|
var import_mixins = require_mixins();
|
|
4301
4301
|
var applyParam = (param, element, options) => {
|
|
4302
4302
|
const { node: node2, context, __ref: ref } = element;
|
|
@@ -4309,7 +4309,7 @@ var require_applyParam = __commonJS({
|
|
|
4309
4309
|
if (!ref.__if)
|
|
4310
4310
|
return;
|
|
4311
4311
|
if (isGlobalTransformer && !hasContextDefine) {
|
|
4312
|
-
if ((0,
|
|
4312
|
+
if ((0, import_utils26.isFunction)(isGlobalTransformer)) {
|
|
4313
4313
|
isGlobalTransformer(prop, element, node2, options);
|
|
4314
4314
|
return;
|
|
4315
4315
|
}
|
|
@@ -4319,9 +4319,9 @@ var require_applyParam = __commonJS({
|
|
|
4319
4319
|
}
|
|
4320
4320
|
});
|
|
4321
4321
|
|
|
4322
|
-
//
|
|
4322
|
+
// ../../node_modules/@domql/element/dist/cjs/node.js
|
|
4323
4323
|
var require_node2 = __commonJS({
|
|
4324
|
-
"
|
|
4324
|
+
"../../node_modules/@domql/element/dist/cjs/node.js"(exports, module2) {
|
|
4325
4325
|
"use strict";
|
|
4326
4326
|
var __create2 = Object.create;
|
|
4327
4327
|
var __defProp2 = Object.defineProperty;
|
|
@@ -4330,1226 +4330,9 @@ var require_node2 = __commonJS({
|
|
|
4330
4330
|
var __getProtoOf2 = Object.getPrototypeOf;
|
|
4331
4331
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
4332
4332
|
var __export2 = (target, all) => {
|
|
4333
|
-
for (var name in all)
|
|
4334
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
4335
|
-
};
|
|
4336
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
4337
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
4338
|
-
for (let key of __getOwnPropNames2(from2))
|
|
4339
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
4340
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
4341
|
-
}
|
|
4342
|
-
return to;
|
|
4343
|
-
};
|
|
4344
|
-
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
4345
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
4346
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
4347
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
4348
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
4349
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
4350
|
-
mod
|
|
4351
|
-
));
|
|
4352
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
4353
|
-
var node_exports = {};
|
|
4354
|
-
__export2(node_exports, {
|
|
4355
|
-
createNode: () => createNode,
|
|
4356
|
-
default: () => node_default
|
|
4357
|
-
});
|
|
4358
|
-
module2.exports = __toCommonJS2(node_exports);
|
|
4359
|
-
var import_utils25 = require_cjs();
|
|
4360
|
-
var import_event = require_cjs3();
|
|
4361
|
-
var import_render = require_cjs4();
|
|
4362
|
-
var import_methods = require_methods2();
|
|
4363
|
-
var import_create = __toESM2(require_create4(), 1);
|
|
4364
|
-
var import_iterate = require_iterate();
|
|
4365
|
-
var import_mixins = require_mixins();
|
|
4366
|
-
var import_applyParam = require_applyParam();
|
|
4367
|
-
var import_utils26 = require_utils();
|
|
4368
|
-
var ENV2 = "development";
|
|
4369
|
-
var createNode = (element, options) => {
|
|
4370
|
-
let { node: node2, tag, __ref: ref } = element;
|
|
4371
|
-
let isNewNode;
|
|
4372
|
-
if (!node2) {
|
|
4373
|
-
isNewNode = true;
|
|
4374
|
-
if (!ref.__if)
|
|
4375
|
-
return element;
|
|
4376
|
-
if (tag === "shadow") {
|
|
4377
|
-
node2 = element.node = element.parent.node.attachShadow({ mode: "open" });
|
|
4378
|
-
} else
|
|
4379
|
-
node2 = element.node = (0, import_render.cacheNode)(element);
|
|
4380
|
-
(0, import_event.triggerEventOn)("attachNode", element, options);
|
|
4381
|
-
}
|
|
4382
|
-
if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
|
|
4383
|
-
node2.ref = element;
|
|
4384
|
-
if ((0, import_utils25.isFunction)(node2.setAttribute))
|
|
4385
|
-
node2.setAttribute("key", element.key);
|
|
4386
|
-
}
|
|
4387
|
-
(0, import_iterate.throughInitialDefine)(element);
|
|
4388
|
-
(0, import_iterate.throughInitialExec)(element);
|
|
4389
|
-
if (element.tag !== "string" && element.tag !== "fragment") {
|
|
4390
|
-
if (isNewNode && (0, import_utils25.isObject)(element.on))
|
|
4391
|
-
(0, import_event.applyEventsOnNode)(element);
|
|
4392
|
-
}
|
|
4393
|
-
for (const param in element) {
|
|
4394
|
-
const value2 = element[param];
|
|
4395
|
-
if ((0, import_utils25.isUndefined)(value2) || (0, import_methods.isMethod)(param) || (0, import_utils26.isVariant)(param) || (0, import_utils25.isObject)(import_mixins.registry[param]))
|
|
4396
|
-
continue;
|
|
4397
|
-
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
|
4398
|
-
if (isElement) {
|
|
4399
|
-
const { hasDefine, hasContextDefine } = isElement;
|
|
4400
|
-
if (element[param] && !hasDefine && !hasContextDefine) {
|
|
4401
|
-
const createAsync = () => (0, import_create.default)((0, import_utils25.exec)(value2, element), element, param, options);
|
|
4402
|
-
if (element.props && element.props.lazyLoad || options.lazyLoad) {
|
|
4403
|
-
window.requestAnimationFrame(() => createAsync());
|
|
4404
|
-
} else
|
|
4405
|
-
createAsync();
|
|
4406
|
-
}
|
|
4407
|
-
}
|
|
4408
|
-
}
|
|
4409
|
-
return element;
|
|
4410
|
-
};
|
|
4411
|
-
var node_default = createNode;
|
|
4412
|
-
}
|
|
4413
|
-
});
|
|
4414
|
-
|
|
4415
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/key.js
|
|
4416
|
-
var require_key2 = __commonJS({
|
|
4417
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
|
|
4418
|
-
"use strict";
|
|
4419
|
-
var __defProp2 = Object.defineProperty;
|
|
4420
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
4421
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
4422
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
4423
|
-
var __export2 = (target, all) => {
|
|
4424
|
-
for (var name in all)
|
|
4425
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
4426
|
-
};
|
|
4427
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
4428
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
4429
|
-
for (let key of __getOwnPropNames2(from2))
|
|
4430
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
4431
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
4432
|
-
}
|
|
4433
|
-
return to;
|
|
4434
|
-
};
|
|
4435
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
4436
|
-
var key_exports = {};
|
|
4437
|
-
__export2(key_exports, {
|
|
4438
|
-
createSnapshotId: () => createSnapshotId,
|
|
4439
|
-
generateKey: () => generateKey
|
|
4440
|
-
});
|
|
4441
|
-
module2.exports = __toCommonJS2(key_exports);
|
|
4442
|
-
var generateKey = function() {
|
|
4443
|
-
let index = 0;
|
|
4444
|
-
function newId() {
|
|
4445
|
-
index++;
|
|
4446
|
-
return index;
|
|
4447
|
-
}
|
|
4448
|
-
return newId;
|
|
4449
|
-
}();
|
|
4450
|
-
var createSnapshotId = generateKey;
|
|
4451
|
-
}
|
|
4452
|
-
});
|
|
4453
|
-
|
|
4454
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/env.js
|
|
4455
|
-
var require_env2 = __commonJS({
|
|
4456
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
|
|
4457
|
-
"use strict";
|
|
4458
|
-
var __defProp2 = Object.defineProperty;
|
|
4459
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
4460
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
4461
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
4462
|
-
var __export2 = (target, all) => {
|
|
4463
|
-
for (var name in all)
|
|
4464
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
4465
|
-
};
|
|
4466
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
4467
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
4468
|
-
for (let key of __getOwnPropNames2(from2))
|
|
4469
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
4470
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
4471
|
-
}
|
|
4472
|
-
return to;
|
|
4473
|
-
};
|
|
4474
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
4475
|
-
var env_exports = {};
|
|
4476
|
-
__export2(env_exports, {
|
|
4477
|
-
NODE_ENV: () => NODE_ENV,
|
|
4478
|
-
getNev: () => getNev,
|
|
4479
|
-
isDevelopment: () => isDevelopment2,
|
|
4480
|
-
isProduction: () => isProduction3,
|
|
4481
|
-
isTest: () => isTest2
|
|
4482
|
-
});
|
|
4483
|
-
module2.exports = __toCommonJS2(env_exports);
|
|
4484
|
-
var NODE_ENV = "development";
|
|
4485
|
-
var isProduction3 = (env = NODE_ENV) => env === "production" || env === "prod" || env !== "development" && env !== "dev" && env !== "test";
|
|
4486
|
-
var isTest2 = (env = NODE_ENV) => env === "test";
|
|
4487
|
-
var isDevelopment2 = (env = NODE_ENV) => env === "development" || env === "dev";
|
|
4488
|
-
var getNev = (key, env = NODE_ENV) => env[key];
|
|
4489
|
-
}
|
|
4490
|
-
});
|
|
4491
|
-
|
|
4492
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/globals.js
|
|
4493
|
-
var require_globals2 = __commonJS({
|
|
4494
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
|
|
4495
|
-
"use strict";
|
|
4496
|
-
var __defProp2 = Object.defineProperty;
|
|
4497
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
4498
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
4499
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
4500
|
-
var __export2 = (target, all) => {
|
|
4501
|
-
for (var name in all)
|
|
4502
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
4503
|
-
};
|
|
4504
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
4505
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
4506
|
-
for (let key of __getOwnPropNames2(from2))
|
|
4507
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
4508
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
4509
|
-
}
|
|
4510
|
-
return to;
|
|
4511
|
-
};
|
|
4512
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
4513
|
-
var globals_exports = {};
|
|
4514
|
-
__export2(globals_exports, {
|
|
4515
|
-
document: () => document2,
|
|
4516
|
-
global: () => global,
|
|
4517
|
-
self: () => self2,
|
|
4518
|
-
window: () => window5
|
|
4519
|
-
});
|
|
4520
|
-
module2.exports = __toCommonJS2(globals_exports);
|
|
4521
|
-
var global = globalThis;
|
|
4522
|
-
var self2 = globalThis;
|
|
4523
|
-
var window5 = globalThis;
|
|
4524
|
-
var document2 = window5.document;
|
|
4525
|
-
}
|
|
4526
|
-
});
|
|
4527
|
-
|
|
4528
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/node.js
|
|
4529
|
-
var require_node3 = __commonJS({
|
|
4530
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
|
|
4531
|
-
"use strict";
|
|
4532
|
-
var __defProp2 = Object.defineProperty;
|
|
4533
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
4534
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
4535
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
4536
|
-
var __export2 = (target, all) => {
|
|
4537
|
-
for (var name in all)
|
|
4538
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
4539
|
-
};
|
|
4540
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
4541
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
4542
|
-
for (let key of __getOwnPropNames2(from2))
|
|
4543
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
4544
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
4545
|
-
}
|
|
4546
|
-
return to;
|
|
4547
|
-
};
|
|
4548
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
4549
|
-
var node_exports = {};
|
|
4550
|
-
__export2(node_exports, {
|
|
4551
|
-
isHtmlElement: () => isHtmlElement,
|
|
4552
|
-
isNode: () => isNode
|
|
4553
|
-
});
|
|
4554
|
-
module2.exports = __toCommonJS2(node_exports);
|
|
4555
|
-
var import_globals2 = require_globals2();
|
|
4556
|
-
var isNode = (obj) => {
|
|
4557
|
-
return (typeof Node === "object" ? obj instanceof import_globals2.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
|
|
4558
|
-
};
|
|
4559
|
-
var isHtmlElement = (obj) => {
|
|
4560
|
-
return (typeof HTMLElement === "object" ? obj instanceof import_globals2.window.HTMLElement : obj && typeof obj === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string") || false;
|
|
4561
|
-
};
|
|
4562
|
-
}
|
|
4563
|
-
});
|
|
4564
|
-
|
|
4565
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/types.js
|
|
4566
|
-
var require_types2 = __commonJS({
|
|
4567
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
|
|
4568
|
-
"use strict";
|
|
4569
|
-
var __defProp2 = Object.defineProperty;
|
|
4570
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
4571
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
4572
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
4573
|
-
var __export2 = (target, all) => {
|
|
4574
|
-
for (var name in all)
|
|
4575
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
4576
|
-
};
|
|
4577
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
4578
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
4579
|
-
for (let key of __getOwnPropNames2(from2))
|
|
4580
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
4581
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
4582
|
-
}
|
|
4583
|
-
return to;
|
|
4584
|
-
};
|
|
4585
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
4586
|
-
var types_exports = {};
|
|
4587
|
-
__export2(types_exports, {
|
|
4588
|
-
TYPES: () => TYPES,
|
|
4589
|
-
is: () => is,
|
|
4590
|
-
isArray: () => isArray6,
|
|
4591
|
-
isBoolean: () => isBoolean,
|
|
4592
|
-
isDefined: () => isDefined2,
|
|
4593
|
-
isFunction: () => isFunction4,
|
|
4594
|
-
isNot: () => isNot2,
|
|
4595
|
-
isNull: () => isNull,
|
|
4596
|
-
isNumber: () => isNumber,
|
|
4597
|
-
isObject: () => isObject12,
|
|
4598
|
-
isObjectLike: () => isObjectLike3,
|
|
4599
|
-
isString: () => isString11,
|
|
4600
|
-
isUndefined: () => isUndefined4
|
|
4601
|
-
});
|
|
4602
|
-
module2.exports = __toCommonJS2(types_exports);
|
|
4603
|
-
var import_node = require_node3();
|
|
4604
|
-
var isObject12 = (arg) => {
|
|
4605
|
-
if (arg === null)
|
|
4606
|
-
return false;
|
|
4607
|
-
return typeof arg === "object" && arg.constructor === Object;
|
|
4608
|
-
};
|
|
4609
|
-
var isString11 = (arg) => typeof arg === "string";
|
|
4610
|
-
var isNumber = (arg) => typeof arg === "number";
|
|
4611
|
-
var isFunction4 = (arg) => typeof arg === "function";
|
|
4612
|
-
var isBoolean = (arg) => arg === true || arg === false;
|
|
4613
|
-
var isNull = (arg) => arg === null;
|
|
4614
|
-
var isArray6 = (arg) => Array.isArray(arg);
|
|
4615
|
-
var isObjectLike3 = (arg) => {
|
|
4616
|
-
if (arg === null)
|
|
4617
|
-
return false;
|
|
4618
|
-
return typeof arg === "object";
|
|
4619
|
-
};
|
|
4620
|
-
var isDefined2 = (arg) => {
|
|
4621
|
-
return isObject12(arg) || isObjectLike3(arg) || isString11(arg) || isNumber(arg) || isFunction4(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
|
|
4622
|
-
};
|
|
4623
|
-
var isUndefined4 = (arg) => {
|
|
4624
|
-
return arg === void 0;
|
|
4625
|
-
};
|
|
4626
|
-
var TYPES = {
|
|
4627
|
-
boolean: isBoolean,
|
|
4628
|
-
array: isArray6,
|
|
4629
|
-
object: isObject12,
|
|
4630
|
-
string: isString11,
|
|
4631
|
-
number: isNumber,
|
|
4632
|
-
null: isNull,
|
|
4633
|
-
function: isFunction4,
|
|
4634
|
-
objectLike: isObjectLike3,
|
|
4635
|
-
node: import_node.isNode,
|
|
4636
|
-
htmlElement: import_node.isHtmlElement,
|
|
4637
|
-
defined: isDefined2
|
|
4638
|
-
};
|
|
4639
|
-
var is = (arg) => {
|
|
4640
|
-
return (...args) => {
|
|
4641
|
-
return args.map((val) => TYPES[val](arg)).filter((v) => v).length > 0;
|
|
4642
|
-
};
|
|
4643
|
-
};
|
|
4644
|
-
var isNot2 = (arg) => {
|
|
4645
|
-
return (...args) => {
|
|
4646
|
-
return args.map((val) => TYPES[val](arg)).filter((v) => v).length === 0;
|
|
4647
|
-
};
|
|
4648
|
-
};
|
|
4649
|
-
}
|
|
4650
|
-
});
|
|
4651
|
-
|
|
4652
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/array.js
|
|
4653
|
-
var require_array2 = __commonJS({
|
|
4654
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
|
|
4655
|
-
"use strict";
|
|
4656
|
-
var __defProp2 = Object.defineProperty;
|
|
4657
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
4658
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
4659
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
4660
|
-
var __export2 = (target, all) => {
|
|
4661
|
-
for (var name in all)
|
|
4662
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
4663
|
-
};
|
|
4664
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
4665
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
4666
|
-
for (let key of __getOwnPropNames2(from2))
|
|
4667
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
4668
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
4669
|
-
}
|
|
4670
|
-
return to;
|
|
4671
|
-
};
|
|
4672
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
4673
|
-
var array_exports = {};
|
|
4674
|
-
__export2(array_exports, {
|
|
4675
|
-
arrayContainsOtherArray: () => arrayContainsOtherArray,
|
|
4676
|
-
createNestedObject: () => createNestedObject,
|
|
4677
|
-
cutArrayAfterValue: () => cutArrayAfterValue,
|
|
4678
|
-
cutArrayBeforeValue: () => cutArrayBeforeValue,
|
|
4679
|
-
joinArrays: () => joinArrays,
|
|
4680
|
-
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
4681
|
-
mergeArray: () => mergeArray,
|
|
4682
|
-
removeFromArray: () => removeFromArray,
|
|
4683
|
-
swapItemsInArray: () => swapItemsInArray
|
|
4684
|
-
});
|
|
4685
|
-
module2.exports = __toCommonJS2(array_exports);
|
|
4686
|
-
var import_object = require_object3();
|
|
4687
|
-
var import_types = require_types2();
|
|
4688
|
-
var arrayContainsOtherArray = (arr1, arr2) => {
|
|
4689
|
-
return arr2.every((val) => arr1.includes(val));
|
|
4690
|
-
};
|
|
4691
|
-
var removeFromArray = (arr, index) => {
|
|
4692
|
-
if ((0, import_types.isString)(index))
|
|
4693
|
-
index = parseInt(index);
|
|
4694
|
-
if ((0, import_types.isNumber)(index)) {
|
|
4695
|
-
if (index < 0 || index >= arr.length || isNaN(index)) {
|
|
4696
|
-
throw new Error("Invalid index");
|
|
4697
|
-
}
|
|
4698
|
-
arr.splice(index, 1);
|
|
4699
|
-
} else if ((0, import_types.isArray)(index)) {
|
|
4700
|
-
index.forEach((idx) => removeFromArray(arr, idx));
|
|
4701
|
-
} else {
|
|
4702
|
-
throw new Error("Invalid index");
|
|
4703
|
-
}
|
|
4704
|
-
return arr;
|
|
4705
|
-
};
|
|
4706
|
-
var swapItemsInArray = (arr, i2, j) => {
|
|
4707
|
-
[arr[i2], arr[j]] = [arr[j], arr[i2]];
|
|
4708
|
-
};
|
|
4709
|
-
var joinArrays = (...arrays) => {
|
|
4710
|
-
return [].concat(...arrays);
|
|
4711
|
-
};
|
|
4712
|
-
var mergeArray = (arr, excludeFrom = []) => {
|
|
4713
|
-
return arr.reduce((a, c) => (0, import_object.deepMerge)(a, (0, import_object.deepClone)(c, excludeFrom), excludeFrom), {});
|
|
4714
|
-
};
|
|
4715
|
-
var mergeAndCloneIfArray = (obj) => {
|
|
4716
|
-
return (0, import_types.isArray)(obj) ? mergeArray(obj) : (0, import_object.deepClone)(obj);
|
|
4717
|
-
};
|
|
4718
|
-
var cutArrayBeforeValue = (arr, value2) => {
|
|
4719
|
-
const index = arr.indexOf(value2);
|
|
4720
|
-
if (index !== -1) {
|
|
4721
|
-
return arr.slice(0, index);
|
|
4722
|
-
}
|
|
4723
|
-
return arr;
|
|
4724
|
-
};
|
|
4725
|
-
var cutArrayAfterValue = (arr, value2) => {
|
|
4726
|
-
const index = arr.indexOf(value2);
|
|
4727
|
-
if (index !== -1) {
|
|
4728
|
-
return arr.slice(index + 1);
|
|
4729
|
-
}
|
|
4730
|
-
return arr;
|
|
4731
|
-
};
|
|
4732
|
-
var createNestedObject = (arr, lastValue) => {
|
|
4733
|
-
const nestedObject = {};
|
|
4734
|
-
if (arr.length === 0) {
|
|
4735
|
-
return lastValue;
|
|
4736
|
-
}
|
|
4737
|
-
arr.reduce((obj, value2, index) => {
|
|
4738
|
-
if (!obj[value2]) {
|
|
4739
|
-
obj[value2] = {};
|
|
4740
|
-
}
|
|
4741
|
-
if (index === arr.length - 1 && lastValue) {
|
|
4742
|
-
obj[value2] = lastValue;
|
|
4743
|
-
}
|
|
4744
|
-
return obj[value2];
|
|
4745
|
-
}, nestedObject);
|
|
4746
|
-
return nestedObject;
|
|
4747
|
-
};
|
|
4748
|
-
}
|
|
4749
|
-
});
|
|
4750
|
-
|
|
4751
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/string.js
|
|
4752
|
-
var require_string2 = __commonJS({
|
|
4753
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
|
|
4754
|
-
"use strict";
|
|
4755
|
-
var __defProp2 = Object.defineProperty;
|
|
4756
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
4757
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
4758
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
4759
|
-
var __export2 = (target, all) => {
|
|
4760
|
-
for (var name in all)
|
|
4761
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
4762
|
-
};
|
|
4763
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
4764
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
4765
|
-
for (let key of __getOwnPropNames2(from2))
|
|
4766
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
4767
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
4768
|
-
}
|
|
4769
|
-
return to;
|
|
4770
|
-
};
|
|
4771
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
4772
|
-
var string_exports = {};
|
|
4773
|
-
__export2(string_exports, {
|
|
4774
|
-
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields2,
|
|
4775
|
-
stringIncludesAny: () => stringIncludesAny
|
|
4776
|
-
});
|
|
4777
|
-
module2.exports = __toCommonJS2(string_exports);
|
|
4778
|
-
var stringIncludesAny = (str, characters2) => {
|
|
4779
|
-
for (const char2 of characters2) {
|
|
4780
|
-
if (str.includes(char2)) {
|
|
4781
|
-
return true;
|
|
4782
|
-
}
|
|
4783
|
-
}
|
|
4784
|
-
return false;
|
|
4785
|
-
};
|
|
4786
|
-
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
4787
|
-
var replaceLiteralsWithObjectFields2 = (str, state) => {
|
|
4788
|
-
if (!str.includes("{{"))
|
|
4789
|
-
return str;
|
|
4790
|
-
return str.replace(brackRegex, (_, parentPath, variable) => {
|
|
4791
|
-
if (parentPath) {
|
|
4792
|
-
const parentLevels = parentPath.match(/\.\.\//g).length;
|
|
4793
|
-
let parentState = state;
|
|
4794
|
-
for (let i2 = 0; i2 < parentLevels; i2++) {
|
|
4795
|
-
parentState = parentState.parent;
|
|
4796
|
-
if (!parentState) {
|
|
4797
|
-
return "";
|
|
4798
|
-
}
|
|
4799
|
-
}
|
|
4800
|
-
const value2 = parentState[variable.trim()];
|
|
4801
|
-
return value2 !== void 0 ? `${value2}` : "";
|
|
4802
|
-
} else {
|
|
4803
|
-
const value2 = state[variable.trim()];
|
|
4804
|
-
return value2 !== void 0 ? `${value2}` : "";
|
|
4805
|
-
}
|
|
4806
|
-
});
|
|
4807
|
-
};
|
|
4808
|
-
}
|
|
4809
|
-
});
|
|
4810
|
-
|
|
4811
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/object.js
|
|
4812
|
-
var require_object3 = __commonJS({
|
|
4813
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
|
|
4814
|
-
"use strict";
|
|
4815
|
-
var __defProp2 = Object.defineProperty;
|
|
4816
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
4817
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
4818
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
4819
|
-
var __export2 = (target, all) => {
|
|
4820
|
-
for (var name in all)
|
|
4821
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
4822
|
-
};
|
|
4823
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
4824
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
4825
|
-
for (let key of __getOwnPropNames2(from2))
|
|
4826
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
4827
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
4828
|
-
}
|
|
4829
|
-
return to;
|
|
4830
|
-
};
|
|
4831
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
4832
|
-
var object_exports = {};
|
|
4833
|
-
__export2(object_exports, {
|
|
4834
|
-
clone: () => clone,
|
|
4835
|
-
deepClone: () => deepClone4,
|
|
4836
|
-
deepCloneExclude: () => deepCloneExclude,
|
|
4837
|
-
deepDestringify: () => deepDestringify,
|
|
4838
|
-
deepMerge: () => deepMerge7,
|
|
4839
|
-
deepStringify: () => deepStringify,
|
|
4840
|
-
detachFunctionsFromObject: () => detachFunctionsFromObject,
|
|
4841
|
-
diff: () => diff,
|
|
4842
|
-
diffArrays: () => diffArrays,
|
|
4843
|
-
diffObjects: () => diffObjects,
|
|
4844
|
-
exec: () => exec4,
|
|
4845
|
-
flattenRecursive: () => flattenRecursive,
|
|
4846
|
-
isEqualDeep: () => isEqualDeep2,
|
|
4847
|
-
map: () => map2,
|
|
4848
|
-
merge: () => merge4,
|
|
4849
|
-
mergeArrayExclude: () => mergeArrayExclude,
|
|
4850
|
-
mergeIfExisted: () => mergeIfExisted,
|
|
4851
|
-
objectToString: () => objectToString,
|
|
4852
|
-
overwrite: () => overwrite,
|
|
4853
|
-
overwriteDeep: () => overwriteDeep,
|
|
4854
|
-
overwriteShallow: () => overwriteShallow2,
|
|
4855
|
-
removeFromObject: () => removeFromObject,
|
|
4856
|
-
stringToObject: () => stringToObject
|
|
4857
|
-
});
|
|
4858
|
-
module2.exports = __toCommonJS2(object_exports);
|
|
4859
|
-
var import_globals2 = require_globals2();
|
|
4860
|
-
var import_types = require_types2();
|
|
4861
|
-
var import_array = require_array2();
|
|
4862
|
-
var import_string = require_string2();
|
|
4863
|
-
var exec4 = (param, element, state, context) => {
|
|
4864
|
-
if ((0, import_types.isFunction)(param)) {
|
|
4865
|
-
return param(
|
|
4866
|
-
element,
|
|
4867
|
-
state || element.state,
|
|
4868
|
-
context || element.context
|
|
4869
|
-
);
|
|
4870
|
-
}
|
|
4871
|
-
return param;
|
|
4872
|
-
};
|
|
4873
|
-
var map2 = (obj, extention, element) => {
|
|
4874
|
-
for (const e in extention) {
|
|
4875
|
-
obj[e] = exec4(extention[e], element);
|
|
4876
|
-
}
|
|
4877
|
-
};
|
|
4878
|
-
var merge4 = (element, obj, excludeFrom = []) => {
|
|
4879
|
-
for (const e in obj) {
|
|
4880
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, e);
|
|
4881
|
-
if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
|
|
4882
|
-
continue;
|
|
4883
|
-
const elementProp = element[e];
|
|
4884
|
-
const objProp = obj[e];
|
|
4885
|
-
if (elementProp === void 0) {
|
|
4886
|
-
element[e] = objProp;
|
|
4887
|
-
}
|
|
4888
|
-
}
|
|
4889
|
-
return element;
|
|
4890
|
-
};
|
|
4891
|
-
var deepMerge7 = (element, extend, excludeFrom = []) => {
|
|
4892
|
-
for (const e in extend) {
|
|
4893
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
|
|
4894
|
-
if (!hasOwnProperty || excludeFrom.includes(e) || e.startsWith("__"))
|
|
4895
|
-
continue;
|
|
4896
|
-
const elementProp = element[e];
|
|
4897
|
-
const extendProp = extend[e];
|
|
4898
|
-
if ((0, import_types.isObjectLike)(elementProp) && (0, import_types.isObjectLike)(extendProp)) {
|
|
4899
|
-
deepMerge7(elementProp, extendProp);
|
|
4900
|
-
} else if (elementProp === void 0) {
|
|
4901
|
-
element[e] = extendProp;
|
|
4902
|
-
}
|
|
4903
|
-
}
|
|
4904
|
-
return element;
|
|
4905
|
-
};
|
|
4906
|
-
var clone = (obj, excludeFrom = []) => {
|
|
4907
|
-
const o = {};
|
|
4908
|
-
for (const prop in obj) {
|
|
4909
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);
|
|
4910
|
-
if (!hasOwnProperty || excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
4911
|
-
continue;
|
|
4912
|
-
o[prop] = obj[prop];
|
|
4913
|
-
}
|
|
4914
|
-
return o;
|
|
4915
|
-
};
|
|
4916
|
-
var deepCloneExclude = (obj, excludeFrom = []) => {
|
|
4917
|
-
if ((0, import_types.isArray)(obj)) {
|
|
4918
|
-
return obj.map((x) => deepCloneExclude(x, excludeFrom));
|
|
4919
|
-
}
|
|
4920
|
-
const o = {};
|
|
4921
|
-
for (const k in obj) {
|
|
4922
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, k);
|
|
4923
|
-
if (!hasOwnProperty || excludeFrom.includes(k) || k.startsWith("__"))
|
|
4924
|
-
continue;
|
|
4925
|
-
let v = obj[k];
|
|
4926
|
-
if (k === "extend" && (0, import_types.isArray)(v)) {
|
|
4927
|
-
v = mergeArrayExclude(v, excludeFrom);
|
|
4928
|
-
}
|
|
4929
|
-
if ((0, import_types.isArray)(v)) {
|
|
4930
|
-
o[k] = v.map((x) => deepCloneExclude(x, excludeFrom));
|
|
4931
|
-
} else if ((0, import_types.isObject)(v)) {
|
|
4932
|
-
o[k] = deepCloneExclude(v, excludeFrom);
|
|
4933
|
-
} else
|
|
4934
|
-
o[k] = v;
|
|
4935
|
-
}
|
|
4936
|
-
return o;
|
|
4937
|
-
};
|
|
4938
|
-
var mergeArrayExclude = (arr, excl = []) => {
|
|
4939
|
-
return arr.reduce((acc, curr) => deepMerge7(acc, deepCloneExclude(curr, excl)), {});
|
|
4940
|
-
};
|
|
4941
|
-
var deepClone4 = (obj, excludeFrom = []) => {
|
|
4942
|
-
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
4943
|
-
for (const prop in obj) {
|
|
4944
|
-
if (prop === "__proto__")
|
|
4945
|
-
continue;
|
|
4946
|
-
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
4947
|
-
continue;
|
|
4948
|
-
let objProp = obj[prop];
|
|
4949
|
-
if (prop === "extend" && (0, import_types.isArray)(objProp)) {
|
|
4950
|
-
objProp = (0, import_array.mergeArray)(objProp);
|
|
4951
|
-
}
|
|
4952
|
-
if ((0, import_types.isObjectLike)(objProp)) {
|
|
4953
|
-
o[prop] = deepClone4(objProp, excludeFrom);
|
|
4954
|
-
} else
|
|
4955
|
-
o[prop] = objProp;
|
|
4956
|
-
}
|
|
4957
|
-
return o;
|
|
4958
|
-
};
|
|
4959
|
-
var deepStringify = (obj, stringified = {}) => {
|
|
4960
|
-
for (const prop in obj) {
|
|
4961
|
-
const objProp = obj[prop];
|
|
4962
|
-
if ((0, import_types.isFunction)(objProp)) {
|
|
4963
|
-
stringified[prop] = objProp.toString();
|
|
4964
|
-
} else if ((0, import_types.isObject)(objProp)) {
|
|
4965
|
-
stringified[prop] = {};
|
|
4966
|
-
deepStringify(objProp, stringified[prop]);
|
|
4967
|
-
} else if ((0, import_types.isArray)(objProp)) {
|
|
4968
|
-
stringified[prop] = [];
|
|
4969
|
-
objProp.forEach((v, i2) => {
|
|
4970
|
-
if ((0, import_types.isObject)(v)) {
|
|
4971
|
-
stringified[prop][i2] = {};
|
|
4972
|
-
deepStringify(v, stringified[prop][i2]);
|
|
4973
|
-
} else if ((0, import_types.isFunction)(v)) {
|
|
4974
|
-
stringified[prop][i2] = v.toString();
|
|
4975
|
-
} else {
|
|
4976
|
-
stringified[prop][i2] = v;
|
|
4977
|
-
}
|
|
4978
|
-
});
|
|
4979
|
-
} else {
|
|
4980
|
-
stringified[prop] = objProp;
|
|
4981
|
-
}
|
|
4982
|
-
}
|
|
4983
|
-
return stringified;
|
|
4984
|
-
};
|
|
4985
|
-
var objectToString = (obj, indent = 0) => {
|
|
4986
|
-
const spaces = " ".repeat(indent);
|
|
4987
|
-
let str = "{\n";
|
|
4988
|
-
for (const [key, value2] of Object.entries(obj)) {
|
|
4989
|
-
const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
|
|
4990
|
-
const stringedKey = keyAllowdChars ? `'${key}'` : key;
|
|
4991
|
-
str += `${spaces} ${stringedKey}: `;
|
|
4992
|
-
if ((0, import_types.isArray)(value2)) {
|
|
4993
|
-
str += "[\n";
|
|
4994
|
-
for (const element of value2) {
|
|
4995
|
-
if ((0, import_types.isObject)(element) && element !== null) {
|
|
4996
|
-
str += `${spaces} ${objectToString(element, indent + 2)},
|
|
4997
|
-
`;
|
|
4998
|
-
} else if ((0, import_types.isString)(element)) {
|
|
4999
|
-
str += `${spaces} '${element}',
|
|
5000
|
-
`;
|
|
5001
|
-
} else {
|
|
5002
|
-
str += `${spaces} ${element},
|
|
5003
|
-
`;
|
|
5004
|
-
}
|
|
5005
|
-
}
|
|
5006
|
-
str += `${spaces} ]`;
|
|
5007
|
-
} else if ((0, import_types.isObject)(value2)) {
|
|
5008
|
-
str += objectToString(value2, indent + 1);
|
|
5009
|
-
} else if ((0, import_types.isString)(value2)) {
|
|
5010
|
-
str += (0, import_string.stringIncludesAny)(value2, ["\n", "'"]) ? `\`${value2}\`` : `'${value2}'`;
|
|
5011
|
-
} else {
|
|
5012
|
-
str += value2;
|
|
5013
|
-
}
|
|
5014
|
-
str += ",\n";
|
|
5015
|
-
}
|
|
5016
|
-
str += `${spaces}}`;
|
|
5017
|
-
return str;
|
|
5018
|
-
};
|
|
5019
|
-
var detachFunctionsFromObject = (obj, detached = {}) => {
|
|
5020
|
-
for (const prop in obj) {
|
|
5021
|
-
const objProp = obj[prop];
|
|
5022
|
-
if ((0, import_types.isFunction)(objProp))
|
|
5023
|
-
continue;
|
|
5024
|
-
else if ((0, import_types.isObject)(objProp)) {
|
|
5025
|
-
detached[prop] = {};
|
|
5026
|
-
deepStringify(objProp, detached[prop]);
|
|
5027
|
-
} else if ((0, import_types.isArray)(objProp)) {
|
|
5028
|
-
detached[prop] = [];
|
|
5029
|
-
objProp.forEach((v, i2) => {
|
|
5030
|
-
if ((0, import_types.isFunction)(v))
|
|
5031
|
-
return;
|
|
5032
|
-
if ((0, import_types.isObject)(v)) {
|
|
5033
|
-
detached[prop][i2] = {};
|
|
5034
|
-
detachFunctionsFromObject(v, detached[prop][i2]);
|
|
5035
|
-
} else {
|
|
5036
|
-
detached[prop][i2] = v;
|
|
5037
|
-
}
|
|
5038
|
-
});
|
|
5039
|
-
} else {
|
|
5040
|
-
detached[prop] = objProp;
|
|
5041
|
-
}
|
|
5042
|
-
}
|
|
5043
|
-
return detached;
|
|
5044
|
-
};
|
|
5045
|
-
var deepDestringify = (obj, stringified = {}) => {
|
|
5046
|
-
for (const prop in obj) {
|
|
5047
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, prop);
|
|
5048
|
-
if (!hasOwnProperty)
|
|
5049
|
-
continue;
|
|
5050
|
-
const objProp = obj[prop];
|
|
5051
|
-
if ((0, import_types.isString)(objProp)) {
|
|
5052
|
-
if (objProp.includes("=>") || objProp.includes("function") || objProp.startsWith("(")) {
|
|
5053
|
-
try {
|
|
5054
|
-
const evalProp = import_globals2.window.eval(`(${objProp})`);
|
|
5055
|
-
stringified[prop] = evalProp;
|
|
5056
|
-
} catch (e) {
|
|
5057
|
-
if (e)
|
|
5058
|
-
stringified[prop] = objProp;
|
|
5059
|
-
}
|
|
5060
|
-
} else {
|
|
5061
|
-
stringified[prop] = objProp;
|
|
5062
|
-
}
|
|
5063
|
-
} else if ((0, import_types.isArray)(objProp)) {
|
|
5064
|
-
stringified[prop] = [];
|
|
5065
|
-
objProp.forEach((arrProp) => {
|
|
5066
|
-
if ((0, import_types.isString)(arrProp)) {
|
|
5067
|
-
if (arrProp.includes("=>") || arrProp.includes("function") || arrProp.startsWith("(")) {
|
|
5068
|
-
try {
|
|
5069
|
-
const evalProp = import_globals2.window.eval(`(${arrProp})`);
|
|
5070
|
-
stringified[prop].push(evalProp);
|
|
5071
|
-
} catch (e) {
|
|
5072
|
-
if (e)
|
|
5073
|
-
stringified[prop].push(arrProp);
|
|
5074
|
-
}
|
|
5075
|
-
} else {
|
|
5076
|
-
stringified[prop].push(arrProp);
|
|
5077
|
-
}
|
|
5078
|
-
} else if ((0, import_types.isObject)(arrProp)) {
|
|
5079
|
-
stringified[prop].push(deepDestringify(arrProp));
|
|
5080
|
-
} else {
|
|
5081
|
-
stringified[prop].push(arrProp);
|
|
5082
|
-
}
|
|
5083
|
-
});
|
|
5084
|
-
} else if ((0, import_types.isObject)(objProp)) {
|
|
5085
|
-
stringified[prop] = deepDestringify(objProp, stringified[prop]);
|
|
5086
|
-
} else {
|
|
5087
|
-
stringified[prop] = objProp;
|
|
5088
|
-
}
|
|
5089
|
-
}
|
|
5090
|
-
return stringified;
|
|
5091
|
-
};
|
|
5092
|
-
var stringToObject = (str) => {
|
|
5093
|
-
let obj;
|
|
5094
|
-
try {
|
|
5095
|
-
obj = import_globals2.window.eval("(" + str + ")");
|
|
5096
|
-
} catch (e) {
|
|
5097
|
-
console.warn(e);
|
|
5098
|
-
}
|
|
5099
|
-
if (obj)
|
|
5100
|
-
return obj;
|
|
5101
|
-
};
|
|
5102
|
-
var diffObjects = (original, objToDiff, cache2) => {
|
|
5103
|
-
for (const e in objToDiff) {
|
|
5104
|
-
if (e === "ref")
|
|
5105
|
-
continue;
|
|
5106
|
-
const originalProp = original[e];
|
|
5107
|
-
const objToDiffProp = objToDiff[e];
|
|
5108
|
-
if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
|
|
5109
|
-
cache2[e] = {};
|
|
5110
|
-
diff(originalProp, objToDiffProp, cache2[e]);
|
|
5111
|
-
} else if (objToDiffProp !== void 0) {
|
|
5112
|
-
cache2[e] = objToDiffProp;
|
|
5113
|
-
}
|
|
5114
|
-
}
|
|
5115
|
-
return cache2;
|
|
5116
|
-
};
|
|
5117
|
-
var diffArrays = (original, objToDiff, cache2) => {
|
|
5118
|
-
if (original.length !== objToDiff.length) {
|
|
5119
|
-
cache2 = objToDiff;
|
|
5120
|
-
} else {
|
|
5121
|
-
const diffArr = [];
|
|
5122
|
-
for (let i2 = 0; i2 < original.length; i2++) {
|
|
5123
|
-
const diffObj = diff(original[i2], objToDiff[i2]);
|
|
5124
|
-
if (Object.keys(diffObj).length > 0) {
|
|
5125
|
-
diffArr.push(diffObj);
|
|
5126
|
-
}
|
|
5127
|
-
}
|
|
5128
|
-
if (diffArr.length > 0) {
|
|
5129
|
-
cache2 = diffArr;
|
|
5130
|
-
}
|
|
5131
|
-
}
|
|
5132
|
-
return cache2;
|
|
5133
|
-
};
|
|
5134
|
-
var diff = (original, objToDiff, cache2 = {}) => {
|
|
5135
|
-
if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
|
|
5136
|
-
cache2 = [];
|
|
5137
|
-
diffArrays(original, objToDiff, cache2);
|
|
5138
|
-
} else {
|
|
5139
|
-
diffObjects(original, objToDiff, cache2);
|
|
5140
|
-
}
|
|
5141
|
-
return cache2;
|
|
5142
|
-
};
|
|
5143
|
-
var overwrite = (element, params, excludeFrom = []) => {
|
|
5144
|
-
const { ref } = element;
|
|
5145
|
-
const changes = {};
|
|
5146
|
-
for (const e in params) {
|
|
5147
|
-
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
5148
|
-
continue;
|
|
5149
|
-
const elementProp = element[e];
|
|
5150
|
-
const paramsProp = params[e];
|
|
5151
|
-
if (paramsProp) {
|
|
5152
|
-
ref.__cache[e] = changes[e] = elementProp;
|
|
5153
|
-
ref[e] = paramsProp;
|
|
5154
|
-
}
|
|
5155
|
-
}
|
|
5156
|
-
return changes;
|
|
5157
|
-
};
|
|
5158
|
-
var overwriteShallow2 = (obj, params, excludeFrom = []) => {
|
|
5159
|
-
for (const e in params) {
|
|
5160
|
-
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
5161
|
-
continue;
|
|
5162
|
-
obj[e] = params[e];
|
|
5163
|
-
}
|
|
5164
|
-
return obj;
|
|
5165
|
-
};
|
|
5166
|
-
var overwriteDeep = (obj, params, excludeFrom = []) => {
|
|
5167
|
-
for (const e in params) {
|
|
5168
|
-
if (e === "__proto__")
|
|
5169
|
-
continue;
|
|
5170
|
-
if (excludeFrom.includes(e) || e.startsWith("__"))
|
|
5171
|
-
continue;
|
|
5172
|
-
const objProp = obj[e];
|
|
5173
|
-
const paramsProp = params[e];
|
|
5174
|
-
if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
|
|
5175
|
-
overwriteDeep(objProp, paramsProp);
|
|
5176
|
-
} else if (paramsProp !== void 0) {
|
|
5177
|
-
obj[e] = paramsProp;
|
|
5178
|
-
}
|
|
5179
|
-
}
|
|
5180
|
-
return obj;
|
|
5181
|
-
};
|
|
5182
|
-
var mergeIfExisted = (a, b) => {
|
|
5183
|
-
if ((0, import_types.isObjectLike)(a) && (0, import_types.isObjectLike)(b))
|
|
5184
|
-
return deepMerge7(a, b);
|
|
5185
|
-
return a || b;
|
|
5186
|
-
};
|
|
5187
|
-
var flattenRecursive = (param, prop, stack = []) => {
|
|
5188
|
-
const objectized = (0, import_array.mergeAndCloneIfArray)(param);
|
|
5189
|
-
stack.push(objectized);
|
|
5190
|
-
const extendOfExtend = objectized[prop];
|
|
5191
|
-
if (extendOfExtend)
|
|
5192
|
-
flattenRecursive(extendOfExtend, prop, stack);
|
|
5193
|
-
delete objectized[prop];
|
|
5194
|
-
return stack;
|
|
5195
|
-
};
|
|
5196
|
-
var isEqualDeep2 = (param, element) => {
|
|
5197
|
-
if (param === element)
|
|
5198
|
-
return true;
|
|
5199
|
-
if (!param || !element)
|
|
5200
|
-
return false;
|
|
5201
|
-
for (const prop in param) {
|
|
5202
|
-
const paramProp = param[prop];
|
|
5203
|
-
const elementProp = element[prop];
|
|
5204
|
-
if ((0, import_types.isObjectLike)(paramProp)) {
|
|
5205
|
-
const isEqual = isEqualDeep2(paramProp, elementProp);
|
|
5206
|
-
if (!isEqual)
|
|
5207
|
-
return false;
|
|
5208
|
-
} else {
|
|
5209
|
-
const isEqual = paramProp === elementProp;
|
|
5210
|
-
if (!isEqual)
|
|
5211
|
-
return false;
|
|
5212
|
-
}
|
|
5213
|
-
}
|
|
5214
|
-
return true;
|
|
5215
|
-
};
|
|
5216
|
-
var removeFromObject = (obj, props4) => {
|
|
5217
|
-
if (props4 === void 0 || props4 === null)
|
|
5218
|
-
return obj;
|
|
5219
|
-
if ((0, import_types.is)(props4)("string", "number")) {
|
|
5220
|
-
delete obj[props4];
|
|
5221
|
-
} else if ((0, import_types.isArray)(props4)) {
|
|
5222
|
-
props4.forEach((prop) => delete obj[prop]);
|
|
5223
|
-
} else {
|
|
5224
|
-
throw new Error("Invalid input: props must be a string or an array of strings");
|
|
5225
|
-
}
|
|
5226
|
-
return obj;
|
|
5227
|
-
};
|
|
5228
|
-
}
|
|
5229
|
-
});
|
|
5230
|
-
|
|
5231
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/function.js
|
|
5232
|
-
var require_function2 = __commonJS({
|
|
5233
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
|
|
5234
|
-
"use strict";
|
|
5235
|
-
var __defProp2 = Object.defineProperty;
|
|
5236
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
5237
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
5238
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
5239
|
-
var __export2 = (target, all) => {
|
|
5240
|
-
for (var name in all)
|
|
5241
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
5242
|
-
};
|
|
5243
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
5244
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
5245
|
-
for (let key of __getOwnPropNames2(from2))
|
|
5246
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
5247
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
5248
|
-
}
|
|
5249
|
-
return to;
|
|
5250
|
-
};
|
|
5251
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
5252
|
-
var function_exports = {};
|
|
5253
|
-
__export2(function_exports, {
|
|
5254
|
-
debounce: () => debounce,
|
|
5255
|
-
memoize: () => memoize2
|
|
5256
|
-
});
|
|
5257
|
-
module2.exports = __toCommonJS2(function_exports);
|
|
5258
|
-
var debounce = (element, func, timeout = 300) => {
|
|
5259
|
-
let timer;
|
|
5260
|
-
return (...args) => {
|
|
5261
|
-
clearTimeout(timer);
|
|
5262
|
-
timer = setTimeout(() => {
|
|
5263
|
-
func.apply(element, args);
|
|
5264
|
-
}, timeout);
|
|
5265
|
-
};
|
|
5266
|
-
};
|
|
5267
|
-
var memoize2 = (fn) => {
|
|
5268
|
-
const cache2 = {};
|
|
5269
|
-
return (...args) => {
|
|
5270
|
-
const n = args[0];
|
|
5271
|
-
if (n in cache2) {
|
|
5272
|
-
return cache2[n];
|
|
5273
|
-
} else {
|
|
5274
|
-
const result = fn(n);
|
|
5275
|
-
cache2[n] = result;
|
|
5276
|
-
return result;
|
|
5277
|
-
}
|
|
5278
|
-
};
|
|
5279
|
-
};
|
|
5280
|
-
}
|
|
5281
|
-
});
|
|
5282
|
-
|
|
5283
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/log.js
|
|
5284
|
-
var require_log2 = __commonJS({
|
|
5285
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
|
|
5286
|
-
"use strict";
|
|
5287
|
-
var __defProp2 = Object.defineProperty;
|
|
5288
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
5289
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
5290
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
5291
|
-
var __export2 = (target, all) => {
|
|
5292
|
-
for (var name in all)
|
|
5293
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
5294
|
-
};
|
|
5295
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
5296
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
5297
|
-
for (let key of __getOwnPropNames2(from2))
|
|
5298
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
5299
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
5300
|
-
}
|
|
5301
|
-
return to;
|
|
5302
|
-
};
|
|
5303
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
5304
|
-
var log_exports = {};
|
|
5305
|
-
__export2(log_exports, {
|
|
5306
|
-
logGroupIf: () => logGroupIf,
|
|
5307
|
-
logIf: () => logIf
|
|
5308
|
-
});
|
|
5309
|
-
module2.exports = __toCommonJS2(log_exports);
|
|
5310
|
-
var logIf = (bool, ...arg) => {
|
|
5311
|
-
if (bool)
|
|
5312
|
-
arg.map((v) => console.log(v));
|
|
5313
|
-
};
|
|
5314
|
-
var logGroupIf = (bool, key, ...arg) => {
|
|
5315
|
-
if (bool) {
|
|
5316
|
-
console.group(key);
|
|
5317
|
-
arg.map((v) => console.log(v));
|
|
5318
|
-
console.groupEnd(key);
|
|
5319
|
-
}
|
|
5320
|
-
};
|
|
5321
|
-
}
|
|
5322
|
-
});
|
|
5323
|
-
|
|
5324
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/cookie.js
|
|
5325
|
-
var require_cookie2 = __commonJS({
|
|
5326
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
|
|
5327
|
-
"use strict";
|
|
5328
|
-
var __defProp2 = Object.defineProperty;
|
|
5329
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
5330
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
5331
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
5332
|
-
var __export2 = (target, all) => {
|
|
5333
|
-
for (var name in all)
|
|
5334
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
5335
|
-
};
|
|
5336
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
5337
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
5338
|
-
for (let key of __getOwnPropNames2(from2))
|
|
5339
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
5340
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
5341
|
-
}
|
|
5342
|
-
return to;
|
|
5343
|
-
};
|
|
5344
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
5345
|
-
var cookie_exports = {};
|
|
5346
|
-
__export2(cookie_exports, {
|
|
5347
|
-
getCookie: () => getCookie,
|
|
5348
|
-
isMobile: () => isMobile,
|
|
5349
|
-
setCookie: () => setCookie
|
|
5350
|
-
});
|
|
5351
|
-
module2.exports = __toCommonJS2(cookie_exports);
|
|
5352
|
-
var import_types = require_types2();
|
|
5353
|
-
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
5354
|
-
var setCookie = (cname, cvalue, exdays = 365) => {
|
|
5355
|
-
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
|
|
5356
|
-
return;
|
|
5357
|
-
const d = /* @__PURE__ */ new Date();
|
|
5358
|
-
d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1e3);
|
|
5359
|
-
const expires = `expires=${d.toUTCString()}`;
|
|
5360
|
-
document.cookie = `${cname}=${cvalue};${expires};path=/`;
|
|
5361
|
-
};
|
|
5362
|
-
var getCookie = (cname) => {
|
|
5363
|
-
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
|
|
5364
|
-
return;
|
|
5365
|
-
const name = `${cname}=`;
|
|
5366
|
-
const decodedCookie = decodeURIComponent(document.cookie);
|
|
5367
|
-
const ca = decodedCookie.split(";");
|
|
5368
|
-
for (let i2 = 0; i2 < ca.length; i2++) {
|
|
5369
|
-
let c = ca[i2];
|
|
5370
|
-
while (c.charAt(0) === " ")
|
|
5371
|
-
c = c.substring(1);
|
|
5372
|
-
if (c.indexOf(name) === 0)
|
|
5373
|
-
return c.substring(name.length, c.length);
|
|
5374
|
-
}
|
|
5375
|
-
return "";
|
|
5376
|
-
};
|
|
5377
|
-
}
|
|
5378
|
-
});
|
|
5379
|
-
|
|
5380
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/tags.js
|
|
5381
|
-
var require_tags2 = __commonJS({
|
|
5382
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
|
|
5383
|
-
"use strict";
|
|
5384
|
-
var __defProp2 = Object.defineProperty;
|
|
5385
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
5386
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
5387
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
5388
|
-
var __export2 = (target, all) => {
|
|
5389
|
-
for (var name in all)
|
|
5390
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
5391
|
-
};
|
|
5392
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
5393
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
5394
|
-
for (let key of __getOwnPropNames2(from2))
|
|
5395
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
5396
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
5397
|
-
}
|
|
5398
|
-
return to;
|
|
5399
|
-
};
|
|
5400
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
5401
|
-
var tags_exports = {};
|
|
5402
|
-
__export2(tags_exports, {
|
|
5403
|
-
HTML_TAGS: () => HTML_TAGS,
|
|
5404
|
-
isValidHtmlTag: () => isValidHtmlTag
|
|
5405
|
-
});
|
|
5406
|
-
module2.exports = __toCommonJS2(tags_exports);
|
|
5407
|
-
var HTML_TAGS = {
|
|
5408
|
-
root: [
|
|
5409
|
-
"body",
|
|
5410
|
-
"html"
|
|
5411
|
-
],
|
|
5412
|
-
head: [
|
|
5413
|
-
"title",
|
|
5414
|
-
"base",
|
|
5415
|
-
"meta",
|
|
5416
|
-
"style"
|
|
5417
|
-
],
|
|
5418
|
-
body: [
|
|
5419
|
-
"string",
|
|
5420
|
-
"fragment",
|
|
5421
|
-
"a",
|
|
5422
|
-
"abbr",
|
|
5423
|
-
"acronym",
|
|
5424
|
-
"address",
|
|
5425
|
-
"applet",
|
|
5426
|
-
"area",
|
|
5427
|
-
"article",
|
|
5428
|
-
"aside",
|
|
5429
|
-
"audio",
|
|
5430
|
-
"b",
|
|
5431
|
-
"basefont",
|
|
5432
|
-
"bdi",
|
|
5433
|
-
"bdo",
|
|
5434
|
-
"big",
|
|
5435
|
-
"blockquote",
|
|
5436
|
-
"br",
|
|
5437
|
-
"button",
|
|
5438
|
-
"canvas",
|
|
5439
|
-
"caption",
|
|
5440
|
-
"center",
|
|
5441
|
-
"cite",
|
|
5442
|
-
"code",
|
|
5443
|
-
"col",
|
|
5444
|
-
"colgroup",
|
|
5445
|
-
"data",
|
|
5446
|
-
"datalist",
|
|
5447
|
-
"dd",
|
|
5448
|
-
"del",
|
|
5449
|
-
"details",
|
|
5450
|
-
"dfn",
|
|
5451
|
-
"dialog",
|
|
5452
|
-
"dir",
|
|
5453
|
-
"div",
|
|
5454
|
-
"dl",
|
|
5455
|
-
"dt",
|
|
5456
|
-
"em",
|
|
5457
|
-
"embed",
|
|
5458
|
-
"fieldset",
|
|
5459
|
-
"figcaption",
|
|
5460
|
-
"figure",
|
|
5461
|
-
"font",
|
|
5462
|
-
"footer",
|
|
5463
|
-
"form",
|
|
5464
|
-
"frame",
|
|
5465
|
-
"frameset",
|
|
5466
|
-
"h1",
|
|
5467
|
-
"h2",
|
|
5468
|
-
"h3",
|
|
5469
|
-
"h4",
|
|
5470
|
-
"h5",
|
|
5471
|
-
"h6",
|
|
5472
|
-
"head",
|
|
5473
|
-
"header",
|
|
5474
|
-
"hr",
|
|
5475
|
-
"i",
|
|
5476
|
-
"iframe",
|
|
5477
|
-
"img",
|
|
5478
|
-
"input",
|
|
5479
|
-
"ins",
|
|
5480
|
-
"kbd",
|
|
5481
|
-
"label",
|
|
5482
|
-
"legend",
|
|
5483
|
-
"li",
|
|
5484
|
-
"link",
|
|
5485
|
-
"main",
|
|
5486
|
-
"map",
|
|
5487
|
-
"mark",
|
|
5488
|
-
"meter",
|
|
5489
|
-
"nav",
|
|
5490
|
-
"noframes",
|
|
5491
|
-
"noscript",
|
|
5492
|
-
"object",
|
|
5493
|
-
"ol",
|
|
5494
|
-
"optgroup",
|
|
5495
|
-
"option",
|
|
5496
|
-
"output",
|
|
5497
|
-
"p",
|
|
5498
|
-
"param",
|
|
5499
|
-
"picture",
|
|
5500
|
-
"pre",
|
|
5501
|
-
"progress",
|
|
5502
|
-
"q",
|
|
5503
|
-
"rp",
|
|
5504
|
-
"rt",
|
|
5505
|
-
"ruby",
|
|
5506
|
-
"s",
|
|
5507
|
-
"samp",
|
|
5508
|
-
"script",
|
|
5509
|
-
"section",
|
|
5510
|
-
"select",
|
|
5511
|
-
"small",
|
|
5512
|
-
"source",
|
|
5513
|
-
"span",
|
|
5514
|
-
"strike",
|
|
5515
|
-
"strong",
|
|
5516
|
-
"sub",
|
|
5517
|
-
"summary",
|
|
5518
|
-
"sup",
|
|
5519
|
-
"table",
|
|
5520
|
-
"tbody",
|
|
5521
|
-
"td",
|
|
5522
|
-
"template",
|
|
5523
|
-
"textarea",
|
|
5524
|
-
"tfoot",
|
|
5525
|
-
"th",
|
|
5526
|
-
"thead",
|
|
5527
|
-
"time",
|
|
5528
|
-
"tr",
|
|
5529
|
-
"track",
|
|
5530
|
-
"tt",
|
|
5531
|
-
"u",
|
|
5532
|
-
"ul",
|
|
5533
|
-
"var",
|
|
5534
|
-
"video",
|
|
5535
|
-
"wbr",
|
|
5536
|
-
// SVG
|
|
5537
|
-
"svg",
|
|
5538
|
-
"path"
|
|
5539
|
-
]
|
|
5540
|
-
};
|
|
5541
|
-
var isValidHtmlTag = (arg) => HTML_TAGS.body.includes(arg);
|
|
5542
|
-
}
|
|
5543
|
-
});
|
|
5544
|
-
|
|
5545
|
-
// ../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/index.js
|
|
5546
|
-
var require_cjs6 = __commonJS({
|
|
5547
|
-
"../../../domql/node_modules/@domql/registry/node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
|
|
5548
|
-
"use strict";
|
|
5549
|
-
var __defProp2 = Object.defineProperty;
|
|
5550
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
5551
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
5552
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
4333
|
+
for (var name in all)
|
|
4334
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
4335
|
+
};
|
|
5553
4336
|
var __copyProps2 = (to, from2, except, desc) => {
|
|
5554
4337
|
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
5555
4338
|
for (let key of __getOwnPropNames2(from2))
|
|
@@ -5558,28 +4341,80 @@ var require_cjs6 = __commonJS({
|
|
|
5558
4341
|
}
|
|
5559
4342
|
return to;
|
|
5560
4343
|
};
|
|
5561
|
-
var
|
|
4344
|
+
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
4345
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
4346
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
4347
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
4348
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
4349
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
4350
|
+
mod
|
|
4351
|
+
));
|
|
5562
4352
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
5563
|
-
var
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
4353
|
+
var node_exports = {};
|
|
4354
|
+
__export2(node_exports, {
|
|
4355
|
+
createNode: () => createNode,
|
|
4356
|
+
default: () => node_default
|
|
4357
|
+
});
|
|
4358
|
+
module2.exports = __toCommonJS2(node_exports);
|
|
4359
|
+
var import_utils26 = require_cjs();
|
|
4360
|
+
var import_event = require_cjs3();
|
|
4361
|
+
var import_render = require_cjs4();
|
|
4362
|
+
var import_methods = require_methods2();
|
|
4363
|
+
var import_create = __toESM2(require_create4(), 1);
|
|
4364
|
+
var import_iterate = require_iterate();
|
|
4365
|
+
var import_mixins = require_mixins();
|
|
4366
|
+
var import_applyParam = require_applyParam();
|
|
4367
|
+
var import_utils27 = require_utils();
|
|
4368
|
+
var ENV2 = "development";
|
|
4369
|
+
var createNode = (element, options) => {
|
|
4370
|
+
let { node: node2, tag, __ref: ref } = element;
|
|
4371
|
+
let isNewNode;
|
|
4372
|
+
if (!node2) {
|
|
4373
|
+
isNewNode = true;
|
|
4374
|
+
if (!ref.__if)
|
|
4375
|
+
return element;
|
|
4376
|
+
if (tag === "shadow") {
|
|
4377
|
+
node2 = element.node = element.parent.node.attachShadow({ mode: "open" });
|
|
4378
|
+
} else
|
|
4379
|
+
node2 = element.node = (0, import_render.cacheNode)(element);
|
|
4380
|
+
(0, import_event.triggerEventOn)("attachNode", element, options);
|
|
4381
|
+
}
|
|
4382
|
+
if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
|
|
4383
|
+
node2.ref = element;
|
|
4384
|
+
if ((0, import_utils26.isFunction)(node2.setAttribute))
|
|
4385
|
+
node2.setAttribute("key", element.key);
|
|
4386
|
+
}
|
|
4387
|
+
(0, import_iterate.throughInitialDefine)(element);
|
|
4388
|
+
(0, import_iterate.throughInitialExec)(element);
|
|
4389
|
+
if (element.tag !== "string" && element.tag !== "fragment") {
|
|
4390
|
+
if (isNewNode && (0, import_utils26.isObject)(element.on))
|
|
4391
|
+
(0, import_event.applyEventsOnNode)(element);
|
|
4392
|
+
}
|
|
4393
|
+
for (const param in element) {
|
|
4394
|
+
const value2 = element[param];
|
|
4395
|
+
if ((0, import_utils26.isUndefined)(value2) || (0, import_methods.isMethod)(param) || (0, import_utils27.isVariant)(param) || (0, import_utils26.isObject)(import_mixins.registry[param]))
|
|
4396
|
+
continue;
|
|
4397
|
+
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
|
4398
|
+
if (isElement) {
|
|
4399
|
+
const { hasDefine, hasContextDefine } = isElement;
|
|
4400
|
+
if (element[param] && !hasDefine && !hasContextDefine) {
|
|
4401
|
+
const createAsync = () => (0, import_create.default)((0, import_utils26.exec)(value2, element), element, param, options);
|
|
4402
|
+
if (element.props && element.props.lazyLoad || options.lazyLoad) {
|
|
4403
|
+
window.requestAnimationFrame(() => createAsync());
|
|
4404
|
+
} else
|
|
4405
|
+
createAsync();
|
|
4406
|
+
}
|
|
4407
|
+
}
|
|
4408
|
+
}
|
|
4409
|
+
return element;
|
|
4410
|
+
};
|
|
4411
|
+
var node_default = createNode;
|
|
5577
4412
|
}
|
|
5578
4413
|
});
|
|
5579
4414
|
|
|
5580
|
-
//
|
|
4415
|
+
// ../../node_modules/@domql/registry/dist/cjs/methods.js
|
|
5581
4416
|
var require_methods3 = __commonJS({
|
|
5582
|
-
"
|
|
4417
|
+
"../../node_modules/@domql/registry/dist/cjs/methods.js"(exports, module2) {
|
|
5583
4418
|
"use strict";
|
|
5584
4419
|
var __defProp2 = Object.defineProperty;
|
|
5585
4420
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5603,7 +4438,7 @@ var require_methods3 = __commonJS({
|
|
|
5603
4438
|
DEFAULT_METHODS: () => DEFAULT_METHODS
|
|
5604
4439
|
});
|
|
5605
4440
|
module2.exports = __toCommonJS2(methods_exports);
|
|
5606
|
-
var
|
|
4441
|
+
var import_utils26 = require_cjs();
|
|
5607
4442
|
var DEFAULT_METHODS = {
|
|
5608
4443
|
key: {},
|
|
5609
4444
|
tag: {},
|
|
@@ -5624,7 +4459,7 @@ var require_methods3 = __commonJS({
|
|
|
5624
4459
|
text: (element, state) => {
|
|
5625
4460
|
element.ref.text = {
|
|
5626
4461
|
tag: "text",
|
|
5627
|
-
text: (0,
|
|
4462
|
+
text: (0, import_utils26.exec)(element.text, element, state)
|
|
5628
4463
|
};
|
|
5629
4464
|
},
|
|
5630
4465
|
innerHTML: {},
|
|
@@ -5635,9 +4470,9 @@ var require_methods3 = __commonJS({
|
|
|
5635
4470
|
}
|
|
5636
4471
|
});
|
|
5637
4472
|
|
|
5638
|
-
//
|
|
5639
|
-
var
|
|
5640
|
-
"
|
|
4473
|
+
// ../../node_modules/@domql/registry/dist/cjs/tags.js
|
|
4474
|
+
var require_tags2 = __commonJS({
|
|
4475
|
+
"../../node_modules/@domql/registry/dist/cjs/tags.js"(exports, module2) {
|
|
5641
4476
|
"use strict";
|
|
5642
4477
|
var __defProp2 = Object.defineProperty;
|
|
5643
4478
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5800,9 +4635,9 @@ var require_tags3 = __commonJS({
|
|
|
5800
4635
|
}
|
|
5801
4636
|
});
|
|
5802
4637
|
|
|
5803
|
-
//
|
|
5804
|
-
var
|
|
5805
|
-
"
|
|
4638
|
+
// ../../node_modules/@domql/registry/dist/cjs/index.js
|
|
4639
|
+
var require_cjs6 = __commonJS({
|
|
4640
|
+
"../../node_modules/@domql/registry/dist/cjs/index.js"(exports, module2) {
|
|
5806
4641
|
"use strict";
|
|
5807
4642
|
var __defProp2 = Object.defineProperty;
|
|
5808
4643
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5821,13 +4656,13 @@ var require_cjs7 = __commonJS({
|
|
|
5821
4656
|
var registry_exports = {};
|
|
5822
4657
|
module2.exports = __toCommonJS2(registry_exports);
|
|
5823
4658
|
__reExport2(registry_exports, require_methods3(), module2.exports);
|
|
5824
|
-
__reExport2(registry_exports,
|
|
4659
|
+
__reExport2(registry_exports, require_tags2(), module2.exports);
|
|
5825
4660
|
}
|
|
5826
4661
|
});
|
|
5827
4662
|
|
|
5828
|
-
//
|
|
4663
|
+
// ../../node_modules/@domql/element/dist/cjs/update.js
|
|
5829
4664
|
var require_update2 = __commonJS({
|
|
5830
|
-
"
|
|
4665
|
+
"../../node_modules/@domql/element/dist/cjs/update.js"(exports, module2) {
|
|
5831
4666
|
"use strict";
|
|
5832
4667
|
var __create2 = Object.create;
|
|
5833
4668
|
var __defProp2 = Object.defineProperty;
|
|
@@ -5861,19 +4696,19 @@ var require_update2 = __commonJS({
|
|
|
5861
4696
|
default: () => update_default
|
|
5862
4697
|
});
|
|
5863
4698
|
module2.exports = __toCommonJS2(update_exports);
|
|
5864
|
-
var
|
|
4699
|
+
var import_utils26 = require_cjs();
|
|
5865
4700
|
var import_event = require_cjs3();
|
|
5866
4701
|
var import_methods = require_methods2();
|
|
5867
4702
|
var import_props = require_props();
|
|
5868
4703
|
var import_state2 = require_cjs5();
|
|
5869
|
-
var
|
|
4704
|
+
var import_utils27 = require_utils();
|
|
5870
4705
|
var import_create = __toESM2(require_create4(), 1);
|
|
5871
4706
|
var import_iterate = require_iterate();
|
|
5872
4707
|
var import_mixins = require_mixins();
|
|
5873
4708
|
var import_applyParam = require_applyParam();
|
|
5874
4709
|
var import_options3 = __toESM2(require_options(), 1);
|
|
5875
4710
|
var snapshot = {
|
|
5876
|
-
snapshotId:
|
|
4711
|
+
snapshotId: import_utils26.createSnapshotId
|
|
5877
4712
|
};
|
|
5878
4713
|
var UPDATE_DEFAULT_OPTIONS = {
|
|
5879
4714
|
stackChanges: false,
|
|
@@ -5881,7 +4716,7 @@ var require_update2 = __commonJS({
|
|
|
5881
4716
|
preventRecursive: false,
|
|
5882
4717
|
currentSnapshot: false,
|
|
5883
4718
|
calleeElement: false,
|
|
5884
|
-
excludes:
|
|
4719
|
+
excludes: import_utils27.METHODS_EXL
|
|
5885
4720
|
};
|
|
5886
4721
|
var update = function(params = {}, options = UPDATE_DEFAULT_OPTIONS) {
|
|
5887
4722
|
const element = this;
|
|
@@ -5891,14 +4726,14 @@ var require_update2 = __commonJS({
|
|
|
5891
4726
|
if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
|
|
5892
4727
|
return;
|
|
5893
4728
|
if (!excludes)
|
|
5894
|
-
(0,
|
|
4729
|
+
(0, import_utils26.merge)(options, UPDATE_DEFAULT_OPTIONS);
|
|
5895
4730
|
let ref = element.__ref;
|
|
5896
4731
|
if (!ref)
|
|
5897
4732
|
ref = element.__ref = {};
|
|
5898
4733
|
const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
|
|
5899
4734
|
if (snapshotHasUpdated)
|
|
5900
4735
|
return;
|
|
5901
|
-
if ((0,
|
|
4736
|
+
if ((0, import_utils26.isString)(params) || (0, import_utils26.isNumber)(params)) {
|
|
5902
4737
|
params = { text: params };
|
|
5903
4738
|
}
|
|
5904
4739
|
const inheritState = inheritStateUpdates(element, options);
|
|
@@ -5909,7 +4744,7 @@ var require_update2 = __commonJS({
|
|
|
5909
4744
|
return;
|
|
5910
4745
|
if (ref.__if && !options.preventPropsUpdate) {
|
|
5911
4746
|
const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
|
|
5912
|
-
const hasFunctionInProps = ref.__props.filter((v) => (0,
|
|
4747
|
+
const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils26.isFunction)(v));
|
|
5913
4748
|
const props4 = params.props || hasParentProps || hasFunctionInProps.length;
|
|
5914
4749
|
if (props4)
|
|
5915
4750
|
(0, import_props.updateProps)(props4, element, parent);
|
|
@@ -5919,14 +4754,14 @@ var require_update2 = __commonJS({
|
|
|
5919
4754
|
if (initUpdateReturns === false)
|
|
5920
4755
|
return element;
|
|
5921
4756
|
}
|
|
5922
|
-
const overwriteChanges = (0,
|
|
4757
|
+
const overwriteChanges = (0, import_utils26.overwriteDeep)(element, params, import_utils27.METHODS_EXL);
|
|
5923
4758
|
const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
|
|
5924
4759
|
const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
|
|
5925
4760
|
if (!options.isForced) {
|
|
5926
4761
|
(0, import_event.triggerEventOn)("beforeClassAssign", element, options);
|
|
5927
4762
|
}
|
|
5928
4763
|
if (options.stackChanges && element.__stackChanges) {
|
|
5929
|
-
const stackChanges = (0,
|
|
4764
|
+
const stackChanges = (0, import_utils26.merge)(definedChanges, (0, import_utils26.merge)(execChanges, overwriteChanges));
|
|
5930
4765
|
element.__stackChanges.push(stackChanges);
|
|
5931
4766
|
}
|
|
5932
4767
|
if (!ref.__if)
|
|
@@ -5937,16 +4772,16 @@ var require_update2 = __commonJS({
|
|
|
5937
4772
|
for (const param in element) {
|
|
5938
4773
|
const prop = element[param];
|
|
5939
4774
|
const hasOnlyUpdateFalsy = options.onlyUpdate && (options.onlyUpdate !== param || !element.lookup(options.onlyUpdate));
|
|
5940
|
-
const isInPreventUpdate = (0,
|
|
5941
|
-
const isInPreventDefineUpdate = (0,
|
|
5942
|
-
if ((0,
|
|
4775
|
+
const isInPreventUpdate = (0, import_utils26.isArray)(options.preventUpdate) && options.preventUpdate.includes(param);
|
|
4776
|
+
const isInPreventDefineUpdate = (0, import_utils26.isArray)(options.preventDefineUpdate) && options.preventDefineUpdate.includes(param);
|
|
4777
|
+
if ((0, import_utils26.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_utils26.isObject)(import_mixins.registry[param]) || (0, import_utils27.isVariant)(param))
|
|
5943
4778
|
continue;
|
|
5944
4779
|
if (options.preventStateUpdate === "once")
|
|
5945
4780
|
options.preventStateUpdate = false;
|
|
5946
4781
|
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
|
5947
4782
|
if (isElement) {
|
|
5948
4783
|
const { hasDefine, hasContextDefine } = isElement;
|
|
5949
|
-
const canUpdate = (0,
|
|
4784
|
+
const canUpdate = (0, import_utils26.isObject)(prop) && !hasDefine && !hasContextDefine && !options.preventRecursive;
|
|
5950
4785
|
if (!canUpdate)
|
|
5951
4786
|
continue;
|
|
5952
4787
|
const lazyLoad = element.props.lazyLoad || options.lazyLoad;
|
|
@@ -5955,7 +4790,7 @@ var require_update2 = __commonJS({
|
|
|
5955
4790
|
currentSnapshot: snapshotOnCallee,
|
|
5956
4791
|
calleeElement
|
|
5957
4792
|
});
|
|
5958
|
-
lazyLoad ?
|
|
4793
|
+
lazyLoad ? import_utils26.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
|
|
5959
4794
|
}
|
|
5960
4795
|
}
|
|
5961
4796
|
if (!options.preventUpdateListener)
|
|
@@ -5978,7 +4813,7 @@ var require_update2 = __commonJS({
|
|
|
5978
4813
|
};
|
|
5979
4814
|
var checkIfOnUpdate = (element, parent, options) => {
|
|
5980
4815
|
var _a;
|
|
5981
|
-
if (!(0,
|
|
4816
|
+
if (!(0, import_utils26.isFunction)(element.if) || !parent)
|
|
5982
4817
|
return;
|
|
5983
4818
|
const ref = element.__ref;
|
|
5984
4819
|
const ifPassed = element.if(element, element.state, element.context, options);
|
|
@@ -6004,7 +4839,7 @@ var require_update2 = __commonJS({
|
|
|
6004
4839
|
node: hasPrevious || hasNext
|
|
6005
4840
|
};
|
|
6006
4841
|
const created = (0, import_create.default)(element, parent, element.key, import_options3.default.create, attachOptions);
|
|
6007
|
-
if (options.preventUpdate !== true && element.on && (0,
|
|
4842
|
+
if (options.preventUpdate !== true && element.on && (0, import_utils26.isFunction)(element.on.update)) {
|
|
6008
4843
|
(0, import_event.applyEvent)(element.on.update, created, created.state);
|
|
6009
4844
|
}
|
|
6010
4845
|
return created;
|
|
@@ -6025,9 +4860,9 @@ var require_update2 = __commonJS({
|
|
|
6025
4860
|
element.state = parent && parent.state || {};
|
|
6026
4861
|
return;
|
|
6027
4862
|
}
|
|
6028
|
-
const shouldForceFunctionState = (0,
|
|
4863
|
+
const shouldForceFunctionState = (0, import_utils26.isFunction)(stateKey) && !isHoisted && execStateFunction;
|
|
6029
4864
|
if (shouldForceFunctionState) {
|
|
6030
|
-
const execState = (0,
|
|
4865
|
+
const execState = (0, import_utils26.exec)(stateKey, element);
|
|
6031
4866
|
state.set(execState, { ...options, preventUpdate: true, updatedByStateFunction: true });
|
|
6032
4867
|
return;
|
|
6033
4868
|
}
|
|
@@ -6059,9 +4894,9 @@ var require_update2 = __commonJS({
|
|
|
6059
4894
|
}
|
|
6060
4895
|
});
|
|
6061
4896
|
|
|
6062
|
-
//
|
|
4897
|
+
// ../../node_modules/@domql/element/dist/cjs/methods/set.js
|
|
6063
4898
|
var require_set2 = __commonJS({
|
|
6064
|
-
"
|
|
4899
|
+
"../../node_modules/@domql/element/dist/cjs/methods/set.js"(exports, module2) {
|
|
6065
4900
|
"use strict";
|
|
6066
4901
|
var __create2 = Object.create;
|
|
6067
4902
|
var __defProp2 = Object.defineProperty;
|
|
@@ -6095,7 +4930,7 @@ var require_set2 = __commonJS({
|
|
|
6095
4930
|
addMethods: () => addMethods
|
|
6096
4931
|
});
|
|
6097
4932
|
module2.exports = __toCommonJS2(set_exports);
|
|
6098
|
-
var
|
|
4933
|
+
var import_utils26 = require_cjs();
|
|
6099
4934
|
var import_set = __toESM2(require_set(), 1);
|
|
6100
4935
|
var import_update = __toESM2(require_update2(), 1);
|
|
6101
4936
|
var import__ = require_methods2();
|
|
@@ -6116,16 +4951,16 @@ var require_set2 = __commonJS({
|
|
|
6116
4951
|
nextElement: import__.nextElement.bind(element),
|
|
6117
4952
|
previousElement: import__.previousElement.bind(element)
|
|
6118
4953
|
};
|
|
6119
|
-
if ((0,
|
|
4954
|
+
if ((0, import_utils26.isDevelopment)())
|
|
6120
4955
|
proto.log = import__.log.bind(element);
|
|
6121
4956
|
Object.setPrototypeOf(element, proto);
|
|
6122
4957
|
};
|
|
6123
4958
|
}
|
|
6124
4959
|
});
|
|
6125
4960
|
|
|
6126
|
-
//
|
|
4961
|
+
// ../../node_modules/@domql/element/dist/cjs/create.js
|
|
6127
4962
|
var require_create4 = __commonJS({
|
|
6128
|
-
"
|
|
4963
|
+
"../../node_modules/@domql/element/dist/cjs/create.js"(exports, module2) {
|
|
6129
4964
|
"use strict";
|
|
6130
4965
|
var __create2 = Object.create;
|
|
6131
4966
|
var __defProp2 = Object.defineProperty;
|
|
@@ -6161,7 +4996,7 @@ var require_create4 = __commonJS({
|
|
|
6161
4996
|
module2.exports = __toCommonJS2(create_exports);
|
|
6162
4997
|
var import_node = __toESM2(require_node2(), 1);
|
|
6163
4998
|
var import_tree = require_tree();
|
|
6164
|
-
var import_registry =
|
|
4999
|
+
var import_registry = require_cjs6();
|
|
6165
5000
|
var import_event = require_cjs3();
|
|
6166
5001
|
var import_render = require_cjs4();
|
|
6167
5002
|
var import_state2 = require_cjs5();
|
|
@@ -6172,7 +5007,7 @@ var require_create4 = __commonJS({
|
|
|
6172
5007
|
var import_set = require_set2();
|
|
6173
5008
|
var import_classList = require_classList();
|
|
6174
5009
|
var import_iterate = require_iterate();
|
|
6175
|
-
var
|
|
5010
|
+
var import_utils26 = require_cjs();
|
|
6176
5011
|
var import_options3 = __toESM2(require_options(), 1);
|
|
6177
5012
|
var import_component = require_component();
|
|
6178
5013
|
var ENV2 = "development";
|
|
@@ -6185,7 +5020,7 @@ var require_create4 = __commonJS({
|
|
|
6185
5020
|
parent = redefineParent(element, parent, key);
|
|
6186
5021
|
key = createKey(element, parent, key);
|
|
6187
5022
|
const ref = addRef(element, parent, key);
|
|
6188
|
-
ref.__initialProps = (0,
|
|
5023
|
+
ref.__initialProps = (0, import_utils26.deepClone)(element.props, []);
|
|
6189
5024
|
applyContext(element, parent, options);
|
|
6190
5025
|
(0, import_component.applyComponentFromContext)(element, parent, options);
|
|
6191
5026
|
if (!ref.__skipCreate) {
|
|
@@ -6228,7 +5063,7 @@ var require_create4 = __commonJS({
|
|
|
6228
5063
|
}
|
|
6229
5064
|
return {};
|
|
6230
5065
|
}
|
|
6231
|
-
if ((0,
|
|
5066
|
+
if ((0, import_utils26.isString)(key) && key.slice(0, 2 === "__")) {
|
|
6232
5067
|
if (ENV2 === "test" || ENV2 === "development") {
|
|
6233
5068
|
console.warn(key, "seems like to be in __ref");
|
|
6234
5069
|
}
|
|
@@ -6255,7 +5090,7 @@ var require_create4 = __commonJS({
|
|
|
6255
5090
|
var redefineParent = (element, parent, key, options) => {
|
|
6256
5091
|
if (!parent)
|
|
6257
5092
|
return import_tree.ROOT;
|
|
6258
|
-
if ((0,
|
|
5093
|
+
if ((0, import_utils26.isNode)(parent)) {
|
|
6259
5094
|
const parentNodeWrapper = { key: ":root", node: parent };
|
|
6260
5095
|
import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
|
|
6261
5096
|
return parentNodeWrapper;
|
|
@@ -6269,7 +5104,7 @@ var require_create4 = __commonJS({
|
|
|
6269
5104
|
}
|
|
6270
5105
|
};
|
|
6271
5106
|
var createKey = (element, parent, key) => {
|
|
6272
|
-
return ((0,
|
|
5107
|
+
return ((0, import_utils26.exec)(key, element) || key || element.key || (0, import_utils26.generateKey)()).toString();
|
|
6273
5108
|
};
|
|
6274
5109
|
var addRef = (element, parent) => {
|
|
6275
5110
|
if (element.__ref)
|
|
@@ -6301,7 +5136,7 @@ var require_create4 = __commonJS({
|
|
|
6301
5136
|
(0, import_event.triggerEventOn)("render", element, options);
|
|
6302
5137
|
};
|
|
6303
5138
|
var checkIfPrimitive = (element) => {
|
|
6304
|
-
return (0,
|
|
5139
|
+
return (0, import_utils26.is)(element)("string", "number");
|
|
6305
5140
|
};
|
|
6306
5141
|
var applyValueAsText = (element, parent, key) => {
|
|
6307
5142
|
const extendTag = element.extend && element.extend.tag;
|
|
@@ -6325,7 +5160,7 @@ var require_create4 = __commonJS({
|
|
|
6325
5160
|
};
|
|
6326
5161
|
var createIfConditionFlag = (element, parent) => {
|
|
6327
5162
|
const { __ref: ref } = element;
|
|
6328
|
-
if ((0,
|
|
5163
|
+
if ((0, import_utils26.isFunction)(element.if) && !element.if(element, element.state)) {
|
|
6329
5164
|
delete ref.__if;
|
|
6330
5165
|
} else
|
|
6331
5166
|
ref.__if = true;
|
|
@@ -6384,7 +5219,7 @@ var require_create4 = __commonJS({
|
|
|
6384
5219
|
ref.__children = [];
|
|
6385
5220
|
(0, import_set.addMethods)(element, parent);
|
|
6386
5221
|
(0, import_state2.createState)(element, parent);
|
|
6387
|
-
if ((0,
|
|
5222
|
+
if ((0, import_utils26.isFunction)(element.if)) {
|
|
6388
5223
|
const ifPassed = element.if(element, element.state);
|
|
6389
5224
|
if (!ifPassed) {
|
|
6390
5225
|
delete ref.__if;
|
|
@@ -6404,7 +5239,7 @@ var require_create4 = __commonJS({
|
|
|
6404
5239
|
(0, import_iterate.throughInitialDefine)(element);
|
|
6405
5240
|
(0, import_iterate.throughInitialExec)(element);
|
|
6406
5241
|
for (const k in element) {
|
|
6407
|
-
if ((0,
|
|
5242
|
+
if ((0, import_utils26.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils26.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
|
|
6408
5243
|
continue;
|
|
6409
5244
|
const hasDefine = element.define && element.define[k];
|
|
6410
5245
|
const contextHasDefine = element.context && element.context.define && element.context.define[k];
|
|
@@ -6412,7 +5247,7 @@ var require_create4 = __commonJS({
|
|
|
6412
5247
|
if (!ref.__skipCreate && import_mixins.registry[k] && !optionsHasDefine) {
|
|
6413
5248
|
continue;
|
|
6414
5249
|
} else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
|
|
6415
|
-
create2((0,
|
|
5250
|
+
create2((0, import_utils26.exec)(element[k], element), element, k, options);
|
|
6416
5251
|
}
|
|
6417
5252
|
}
|
|
6418
5253
|
}
|
|
@@ -6449,9 +5284,9 @@ var require_create4 = __commonJS({
|
|
|
6449
5284
|
}
|
|
6450
5285
|
});
|
|
6451
5286
|
|
|
6452
|
-
//
|
|
5287
|
+
// ../../node_modules/@domql/element/dist/cjs/define.js
|
|
6453
5288
|
var require_define = __commonJS({
|
|
6454
|
-
"
|
|
5289
|
+
"../../node_modules/@domql/element/dist/cjs/define.js"(exports, module2) {
|
|
6455
5290
|
"use strict";
|
|
6456
5291
|
var __defProp2 = Object.defineProperty;
|
|
6457
5292
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6489,9 +5324,9 @@ var require_define = __commonJS({
|
|
|
6489
5324
|
}
|
|
6490
5325
|
});
|
|
6491
5326
|
|
|
6492
|
-
//
|
|
6493
|
-
var
|
|
6494
|
-
"
|
|
5327
|
+
// ../../node_modules/@domql/element/dist/cjs/index.js
|
|
5328
|
+
var require_cjs7 = __commonJS({
|
|
5329
|
+
"../../node_modules/@domql/element/dist/cjs/index.js"(exports, module2) {
|
|
6495
5330
|
"use strict";
|
|
6496
5331
|
var __create2 = Object.create;
|
|
6497
5332
|
var __defProp2 = Object.defineProperty;
|
|
@@ -6539,9 +5374,9 @@ var require_cjs8 = __commonJS({
|
|
|
6539
5374
|
}
|
|
6540
5375
|
});
|
|
6541
5376
|
|
|
6542
|
-
//
|
|
6543
|
-
var
|
|
6544
|
-
"
|
|
5377
|
+
// ../../node_modules/domql/dist/cjs/index.js
|
|
5378
|
+
var require_cjs8 = __commonJS({
|
|
5379
|
+
"../../node_modules/domql/dist/cjs/index.js"(exports, module2) {
|
|
6545
5380
|
"use strict";
|
|
6546
5381
|
var __defProp2 = Object.defineProperty;
|
|
6547
5382
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -6565,7 +5400,7 @@ var require_cjs9 = __commonJS({
|
|
|
6565
5400
|
default: () => domql_default
|
|
6566
5401
|
});
|
|
6567
5402
|
module2.exports = __toCommonJS2(domql_exports);
|
|
6568
|
-
var import_element =
|
|
5403
|
+
var import_element = require_cjs7();
|
|
6569
5404
|
var create2 = (element, parent, key, options) => {
|
|
6570
5405
|
return (0, import_element.create)(element, parent, key, options);
|
|
6571
5406
|
};
|
|
@@ -6577,7 +5412,7 @@ var require_cjs9 = __commonJS({
|
|
|
6577
5412
|
});
|
|
6578
5413
|
|
|
6579
5414
|
// ../scratch/dist/cjs/index.js
|
|
6580
|
-
var
|
|
5415
|
+
var require_cjs9 = __commonJS({
|
|
6581
5416
|
"../scratch/dist/cjs/index.js"(exports, module2) {
|
|
6582
5417
|
"use strict";
|
|
6583
5418
|
var __create2 = Object.create;
|
|
@@ -6610,7 +5445,7 @@ var require_cjs10 = __commonJS({
|
|
|
6610
5445
|
mod
|
|
6611
5446
|
));
|
|
6612
5447
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
6613
|
-
var
|
|
5448
|
+
var require_cjs13 = __commonJS2({
|
|
6614
5449
|
"../../node_modules/@domql/globals/dist/cjs/index.js"(exports2, module22) {
|
|
6615
5450
|
"use strict";
|
|
6616
5451
|
var __defProp22 = Object.defineProperty;
|
|
@@ -6644,8 +5479,8 @@ var require_cjs10 = __commonJS({
|
|
|
6644
5479
|
var document4 = window22.document;
|
|
6645
5480
|
}
|
|
6646
5481
|
});
|
|
6647
|
-
var
|
|
6648
|
-
"
|
|
5482
|
+
var require_key2 = __commonJS2({
|
|
5483
|
+
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports2, module22) {
|
|
6649
5484
|
"use strict";
|
|
6650
5485
|
var __defProp22 = Object.defineProperty;
|
|
6651
5486
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -6681,8 +5516,8 @@ var require_cjs10 = __commonJS({
|
|
|
6681
5516
|
var createSnapshotId = generateKey;
|
|
6682
5517
|
}
|
|
6683
5518
|
});
|
|
6684
|
-
var
|
|
6685
|
-
"
|
|
5519
|
+
var require_env2 = __commonJS2({
|
|
5520
|
+
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports2, module22) {
|
|
6686
5521
|
"use strict";
|
|
6687
5522
|
var __defProp22 = Object.defineProperty;
|
|
6688
5523
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -6717,8 +5552,8 @@ var require_cjs10 = __commonJS({
|
|
|
6717
5552
|
var getNev = (key, env = NODE_ENV) => env[key];
|
|
6718
5553
|
}
|
|
6719
5554
|
});
|
|
6720
|
-
var
|
|
6721
|
-
"
|
|
5555
|
+
var require_globals2 = __commonJS2({
|
|
5556
|
+
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports2, module22) {
|
|
6722
5557
|
"use strict";
|
|
6723
5558
|
var __defProp22 = Object.defineProperty;
|
|
6724
5559
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -6751,8 +5586,8 @@ var require_cjs10 = __commonJS({
|
|
|
6751
5586
|
var document4 = window22.document;
|
|
6752
5587
|
}
|
|
6753
5588
|
});
|
|
6754
|
-
var
|
|
6755
|
-
"
|
|
5589
|
+
var require_node3 = __commonJS2({
|
|
5590
|
+
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports2, module22) {
|
|
6756
5591
|
"use strict";
|
|
6757
5592
|
var __defProp22 = Object.defineProperty;
|
|
6758
5593
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -6777,7 +5612,7 @@ var require_cjs10 = __commonJS({
|
|
|
6777
5612
|
isNode: () => isNode
|
|
6778
5613
|
});
|
|
6779
5614
|
module22.exports = __toCommonJS22(node_exports);
|
|
6780
|
-
var import_globals3 =
|
|
5615
|
+
var import_globals3 = require_globals2();
|
|
6781
5616
|
var isNode = (obj) => {
|
|
6782
5617
|
return (typeof Node === "object" ? obj instanceof import_globals3.window.Node : obj && typeof obj === "object" && typeof obj.nodeType === "number" && typeof obj.nodeName === "string") || false;
|
|
6783
5618
|
};
|
|
@@ -6786,8 +5621,8 @@ var require_cjs10 = __commonJS({
|
|
|
6786
5621
|
};
|
|
6787
5622
|
}
|
|
6788
5623
|
});
|
|
6789
|
-
var
|
|
6790
|
-
"
|
|
5624
|
+
var require_types2 = __commonJS2({
|
|
5625
|
+
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports2, module22) {
|
|
6791
5626
|
"use strict";
|
|
6792
5627
|
var __defProp22 = Object.defineProperty;
|
|
6793
5628
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -6817,21 +5652,21 @@ var require_cjs10 = __commonJS({
|
|
|
6817
5652
|
isFunction: () => isFunction22,
|
|
6818
5653
|
isNot: () => isNot2,
|
|
6819
5654
|
isNull: () => isNull,
|
|
6820
|
-
isNumber: () =>
|
|
5655
|
+
isNumber: () => isNumber3,
|
|
6821
5656
|
isObject: () => isObject82,
|
|
6822
5657
|
isObjectLike: () => isObjectLike3,
|
|
6823
5658
|
isString: () => isString102,
|
|
6824
|
-
isUndefined: () =>
|
|
5659
|
+
isUndefined: () => isUndefined5
|
|
6825
5660
|
});
|
|
6826
5661
|
module22.exports = __toCommonJS22(types_exports);
|
|
6827
|
-
var import_node =
|
|
5662
|
+
var import_node = require_node3();
|
|
6828
5663
|
var isObject82 = (arg) => {
|
|
6829
5664
|
if (arg === null)
|
|
6830
5665
|
return false;
|
|
6831
5666
|
return typeof arg === "object" && arg.constructor === Object;
|
|
6832
5667
|
};
|
|
6833
5668
|
var isString102 = (arg) => typeof arg === "string";
|
|
6834
|
-
var
|
|
5669
|
+
var isNumber3 = (arg) => typeof arg === "number";
|
|
6835
5670
|
var isFunction22 = (arg) => typeof arg === "function";
|
|
6836
5671
|
var isBoolean = (arg) => arg === true || arg === false;
|
|
6837
5672
|
var isNull = (arg) => arg === null;
|
|
@@ -6843,9 +5678,9 @@ var require_cjs10 = __commonJS({
|
|
|
6843
5678
|
return typeof arg === "object";
|
|
6844
5679
|
};
|
|
6845
5680
|
var isDefined2 = (arg) => {
|
|
6846
|
-
return isObject82(arg) || isObjectLike3(arg) || isString102(arg) ||
|
|
5681
|
+
return isObject82(arg) || isObjectLike3(arg) || isString102(arg) || isNumber3(arg) || isFunction22(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
|
|
6847
5682
|
};
|
|
6848
|
-
var
|
|
5683
|
+
var isUndefined5 = (arg) => {
|
|
6849
5684
|
return arg === void 0;
|
|
6850
5685
|
};
|
|
6851
5686
|
var TYPES = {
|
|
@@ -6854,7 +5689,7 @@ var require_cjs10 = __commonJS({
|
|
|
6854
5689
|
object: isObject82,
|
|
6855
5690
|
string: isString102,
|
|
6856
5691
|
date: isDate,
|
|
6857
|
-
number:
|
|
5692
|
+
number: isNumber3,
|
|
6858
5693
|
null: isNull,
|
|
6859
5694
|
function: isFunction22,
|
|
6860
5695
|
objectLike: isObjectLike3,
|
|
@@ -6874,8 +5709,8 @@ var require_cjs10 = __commonJS({
|
|
|
6874
5709
|
};
|
|
6875
5710
|
}
|
|
6876
5711
|
});
|
|
6877
|
-
var
|
|
6878
|
-
"
|
|
5712
|
+
var require_array2 = __commonJS2({
|
|
5713
|
+
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports2, module22) {
|
|
6879
5714
|
"use strict";
|
|
6880
5715
|
var __defProp22 = Object.defineProperty;
|
|
6881
5716
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -6909,8 +5744,8 @@ var require_cjs10 = __commonJS({
|
|
|
6909
5744
|
swapItemsInArray: () => swapItemsInArray
|
|
6910
5745
|
});
|
|
6911
5746
|
module22.exports = __toCommonJS22(array_exports);
|
|
6912
|
-
var import_object =
|
|
6913
|
-
var import_types =
|
|
5747
|
+
var import_object = require_object3();
|
|
5748
|
+
var import_types = require_types2();
|
|
6914
5749
|
var arrayContainsOtherArray = (arr1, arr2) => {
|
|
6915
5750
|
return arr2.every((val) => arr1.includes(val));
|
|
6916
5751
|
};
|
|
@@ -6985,8 +5820,8 @@ var require_cjs10 = __commonJS({
|
|
|
6985
5820
|
};
|
|
6986
5821
|
}
|
|
6987
5822
|
});
|
|
6988
|
-
var
|
|
6989
|
-
"
|
|
5823
|
+
var require_string2 = __commonJS2({
|
|
5824
|
+
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports2, module22) {
|
|
6990
5825
|
"use strict";
|
|
6991
5826
|
var __defProp22 = Object.defineProperty;
|
|
6992
5827
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -7048,8 +5883,8 @@ var require_cjs10 = __commonJS({
|
|
|
7048
5883
|
};
|
|
7049
5884
|
}
|
|
7050
5885
|
});
|
|
7051
|
-
var
|
|
7052
|
-
"
|
|
5886
|
+
var require_object3 = __commonJS2({
|
|
5887
|
+
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports2, module22) {
|
|
7053
5888
|
"use strict";
|
|
7054
5889
|
var __defProp22 = Object.defineProperty;
|
|
7055
5890
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -7102,10 +5937,10 @@ var require_cjs10 = __commonJS({
|
|
|
7102
5937
|
stringToObject: () => stringToObject
|
|
7103
5938
|
});
|
|
7104
5939
|
module22.exports = __toCommonJS22(object_exports);
|
|
7105
|
-
var import_globals3 =
|
|
7106
|
-
var import_types =
|
|
7107
|
-
var import_array =
|
|
7108
|
-
var import_string =
|
|
5940
|
+
var import_globals3 = require_globals2();
|
|
5941
|
+
var import_types = require_types2();
|
|
5942
|
+
var import_array = require_array2();
|
|
5943
|
+
var import_string = require_string2();
|
|
7109
5944
|
var exec4 = (param, element, state, context) => {
|
|
7110
5945
|
if ((0, import_types.isFunction)(param)) {
|
|
7111
5946
|
return param(
|
|
@@ -7556,8 +6391,8 @@ var require_cjs10 = __commonJS({
|
|
|
7556
6391
|
};
|
|
7557
6392
|
}
|
|
7558
6393
|
});
|
|
7559
|
-
var
|
|
7560
|
-
"
|
|
6394
|
+
var require_function2 = __commonJS2({
|
|
6395
|
+
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports2, module22) {
|
|
7561
6396
|
"use strict";
|
|
7562
6397
|
var __defProp22 = Object.defineProperty;
|
|
7563
6398
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -7629,8 +6464,8 @@ var require_cjs10 = __commonJS({
|
|
|
7629
6464
|
};
|
|
7630
6465
|
}
|
|
7631
6466
|
});
|
|
7632
|
-
var
|
|
7633
|
-
"
|
|
6467
|
+
var require_log2 = __commonJS2({
|
|
6468
|
+
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports2, module22) {
|
|
7634
6469
|
"use strict";
|
|
7635
6470
|
var __defProp22 = Object.defineProperty;
|
|
7636
6471
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -7668,8 +6503,8 @@ var require_cjs10 = __commonJS({
|
|
|
7668
6503
|
};
|
|
7669
6504
|
}
|
|
7670
6505
|
});
|
|
7671
|
-
var
|
|
7672
|
-
"
|
|
6506
|
+
var require_cookie2 = __commonJS2({
|
|
6507
|
+
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports2, module22) {
|
|
7673
6508
|
"use strict";
|
|
7674
6509
|
var __defProp22 = Object.defineProperty;
|
|
7675
6510
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -7695,7 +6530,7 @@ var require_cjs10 = __commonJS({
|
|
|
7695
6530
|
setCookie: () => setCookie
|
|
7696
6531
|
});
|
|
7697
6532
|
module22.exports = __toCommonJS22(cookie_exports);
|
|
7698
|
-
var import_types =
|
|
6533
|
+
var import_types = require_types2();
|
|
7699
6534
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
7700
6535
|
var setCookie = (cname, cvalue, exdays = 365) => {
|
|
7701
6536
|
if ((0, import_types.isUndefined)(document) || (0, import_types.isUndefined)(document.cookie))
|
|
@@ -7722,8 +6557,8 @@ var require_cjs10 = __commonJS({
|
|
|
7722
6557
|
};
|
|
7723
6558
|
}
|
|
7724
6559
|
});
|
|
7725
|
-
var
|
|
7726
|
-
"
|
|
6560
|
+
var require_tags3 = __commonJS2({
|
|
6561
|
+
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports2, module22) {
|
|
7727
6562
|
"use strict";
|
|
7728
6563
|
var __defProp22 = Object.defineProperty;
|
|
7729
6564
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -7886,7 +6721,7 @@ var require_cjs10 = __commonJS({
|
|
|
7886
6721
|
}
|
|
7887
6722
|
});
|
|
7888
6723
|
var require_cjs22 = __commonJS2({
|
|
7889
|
-
"
|
|
6724
|
+
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports2, module22) {
|
|
7890
6725
|
"use strict";
|
|
7891
6726
|
var __defProp22 = Object.defineProperty;
|
|
7892
6727
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -7904,26 +6739,26 @@ var require_cjs10 = __commonJS({
|
|
|
7904
6739
|
var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
|
|
7905
6740
|
var utils_exports2 = {};
|
|
7906
6741
|
module22.exports = __toCommonJS22(utils_exports2);
|
|
7907
|
-
__reExport2(utils_exports2,
|
|
7908
|
-
__reExport2(utils_exports2,
|
|
7909
|
-
__reExport2(utils_exports2,
|
|
7910
|
-
__reExport2(utils_exports2,
|
|
7911
|
-
__reExport2(utils_exports2,
|
|
7912
|
-
__reExport2(utils_exports2,
|
|
7913
|
-
__reExport2(utils_exports2,
|
|
7914
|
-
__reExport2(utils_exports2,
|
|
7915
|
-
__reExport2(utils_exports2,
|
|
7916
|
-
__reExport2(utils_exports2,
|
|
7917
|
-
__reExport2(utils_exports2,
|
|
7918
|
-
__reExport2(utils_exports2,
|
|
6742
|
+
__reExport2(utils_exports2, require_key2(), module22.exports);
|
|
6743
|
+
__reExport2(utils_exports2, require_env2(), module22.exports);
|
|
6744
|
+
__reExport2(utils_exports2, require_types2(), module22.exports);
|
|
6745
|
+
__reExport2(utils_exports2, require_object3(), module22.exports);
|
|
6746
|
+
__reExport2(utils_exports2, require_function2(), module22.exports);
|
|
6747
|
+
__reExport2(utils_exports2, require_array2(), module22.exports);
|
|
6748
|
+
__reExport2(utils_exports2, require_node3(), module22.exports);
|
|
6749
|
+
__reExport2(utils_exports2, require_log2(), module22.exports);
|
|
6750
|
+
__reExport2(utils_exports2, require_string2(), module22.exports);
|
|
6751
|
+
__reExport2(utils_exports2, require_globals2(), module22.exports);
|
|
6752
|
+
__reExport2(utils_exports2, require_cookie2(), module22.exports);
|
|
6753
|
+
__reExport2(utils_exports2, require_tags3(), module22.exports);
|
|
7919
6754
|
}
|
|
7920
6755
|
});
|
|
7921
6756
|
var src_exports2 = {};
|
|
7922
6757
|
__export2(src_exports2, {
|
|
7923
|
-
ANIMATION: () =>
|
|
6758
|
+
ANIMATION: () => ANIMATION2,
|
|
7924
6759
|
BREAKPOINTS: () => BREAKPOINTS,
|
|
7925
6760
|
CASES: () => CASES,
|
|
7926
|
-
COLOR: () =>
|
|
6761
|
+
COLOR: () => COLOR3,
|
|
7927
6762
|
CONFIG: () => CONFIG3,
|
|
7928
6763
|
CSS_VARS: () => CSS_VARS,
|
|
7929
6764
|
DEVICES: () => DEVICES,
|
|
@@ -8088,8 +6923,8 @@ var require_cjs10 = __commonJS({
|
|
|
8088
6923
|
var isScalingUnit = (unit) => {
|
|
8089
6924
|
return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
|
|
8090
6925
|
};
|
|
8091
|
-
var import_globals2 = __toESM2(
|
|
8092
|
-
var
|
|
6926
|
+
var import_globals2 = __toESM2(require_cjs13(), 1);
|
|
6927
|
+
var import_utils26 = __toESM2(require_cjs22(), 1);
|
|
8093
6928
|
var ENV2 = "development";
|
|
8094
6929
|
var colorStringToRgbaArray = (color) => {
|
|
8095
6930
|
if (color === "")
|
|
@@ -8217,11 +7052,11 @@ var require_cjs10 = __commonJS({
|
|
|
8217
7052
|
return `rgba(${arr})`;
|
|
8218
7053
|
};
|
|
8219
7054
|
var getRgbTone = (rgb, tone) => {
|
|
8220
|
-
if ((0,
|
|
7055
|
+
if ((0, import_utils26.isString)(rgb) && rgb.includes("rgb"))
|
|
8221
7056
|
rgb = colorStringToRgbaArray(rgb).join(", ");
|
|
8222
|
-
if ((0,
|
|
7057
|
+
if ((0, import_utils26.isString)(rgb))
|
|
8223
7058
|
rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
|
|
8224
|
-
if ((0,
|
|
7059
|
+
if ((0, import_utils26.isNumber)(tone))
|
|
8225
7060
|
tone += "";
|
|
8226
7061
|
const toHex = rgbArrayToHex(rgb);
|
|
8227
7062
|
const abs2 = tone.slice(0, 1);
|
|
@@ -8286,7 +7121,7 @@ var require_cjs10 = __commonJS({
|
|
|
8286
7121
|
};
|
|
8287
7122
|
var import_utils52 = __toESM2(require_cjs22(), 1);
|
|
8288
7123
|
var import_utils32 = __toESM2(require_cjs22());
|
|
8289
|
-
var
|
|
7124
|
+
var import_utils27 = __toESM2(require_cjs22());
|
|
8290
7125
|
var toCamelCase2 = (str) => {
|
|
8291
7126
|
return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
|
|
8292
7127
|
return index === 0 ? word.toLowerCase() : word.toUpperCase();
|
|
@@ -8298,16 +7133,18 @@ var require_cjs10 = __commonJS({
|
|
|
8298
7133
|
return val.split(" ");
|
|
8299
7134
|
if ((0, import_utils32.isObject)(val))
|
|
8300
7135
|
return Object.keys(val).map((v) => val[v]);
|
|
7136
|
+
if ((0, import_utils32.isNumber)(val))
|
|
7137
|
+
return [val];
|
|
8301
7138
|
if ((0, import_utils32.isArray)(val))
|
|
8302
7139
|
return val;
|
|
8303
7140
|
};
|
|
8304
7141
|
var import_utils42 = __toESM2(require_cjs22(), 1);
|
|
8305
7142
|
var defaultConfig_exports = {};
|
|
8306
7143
|
__export2(defaultConfig_exports, {
|
|
8307
|
-
ANIMATION: () =>
|
|
7144
|
+
ANIMATION: () => ANIMATION2,
|
|
8308
7145
|
BREAKPOINTS: () => BREAKPOINTS,
|
|
8309
7146
|
CASES: () => CASES,
|
|
8310
|
-
COLOR: () =>
|
|
7147
|
+
COLOR: () => COLOR3,
|
|
8311
7148
|
DEVICES: () => DEVICES,
|
|
8312
7149
|
DOCUMENT: () => DOCUMENT,
|
|
8313
7150
|
FONT: () => FONT2,
|
|
@@ -8422,7 +7259,7 @@ var require_cjs10 = __commonJS({
|
|
|
8422
7259
|
vars: {}
|
|
8423
7260
|
};
|
|
8424
7261
|
var SPACING2 = defaultProps2;
|
|
8425
|
-
var
|
|
7262
|
+
var COLOR3 = {};
|
|
8426
7263
|
var GRADIENT2 = {};
|
|
8427
7264
|
var THEME2 = {};
|
|
8428
7265
|
var SHADOW = {};
|
|
@@ -8466,7 +7303,7 @@ var require_cjs10 = __commonJS({
|
|
|
8466
7303
|
mobileXS: [375, 768]
|
|
8467
7304
|
};
|
|
8468
7305
|
var CASES = {};
|
|
8469
|
-
var
|
|
7306
|
+
var ANIMATION2 = {};
|
|
8470
7307
|
var SVG = {};
|
|
8471
7308
|
var SVG_DATA = {};
|
|
8472
7309
|
var TEMPLATES = {};
|
|
@@ -9554,7 +8391,7 @@ var require_cjs10 = __commonJS({
|
|
|
9554
8391
|
lineHeight: TYPOGRAPHY22.lineHeight
|
|
9555
8392
|
});
|
|
9556
8393
|
};
|
|
9557
|
-
var import_globals22 = __toESM2(
|
|
8394
|
+
var import_globals22 = __toESM2(require_cjs13(), 1);
|
|
9558
8395
|
var DEF_OPTIONS = {
|
|
9559
8396
|
document: import_globals22.document
|
|
9560
8397
|
};
|
|
@@ -9687,7 +8524,7 @@ var require_cjs10 = __commonJS({
|
|
|
9687
8524
|
});
|
|
9688
8525
|
}
|
|
9689
8526
|
};
|
|
9690
|
-
var
|
|
8527
|
+
var import_utils272 = __toESM2(require_cjs22(), 1);
|
|
9691
8528
|
var isBorderStyle = (str) => [
|
|
9692
8529
|
"none",
|
|
9693
8530
|
"hidden",
|
|
@@ -9759,7 +8596,7 @@ var require_cjs10 = __commonJS({
|
|
|
9759
8596
|
return v;
|
|
9760
8597
|
}).join(" ");
|
|
9761
8598
|
};
|
|
9762
|
-
var transfromGap2 = (gap) => (0,
|
|
8599
|
+
var transfromGap2 = (gap) => (0, import_utils272.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey3(v, "gap").gap).join(" ");
|
|
9763
8600
|
var transformTransition = (transition) => {
|
|
9764
8601
|
const arr = transition.split(" ");
|
|
9765
8602
|
if (!arr.length)
|
|
@@ -9777,7 +8614,7 @@ var require_cjs10 = __commonJS({
|
|
|
9777
8614
|
}).join(" ");
|
|
9778
8615
|
};
|
|
9779
8616
|
var transformDuration2 = (duration, props4, propertyName) => {
|
|
9780
|
-
if (!(0,
|
|
8617
|
+
if (!(0, import_utils272.isString)(duration))
|
|
9781
8618
|
return;
|
|
9782
8619
|
return duration.split(",").map((v) => getTimingByKey2(v).timing || v).join(",");
|
|
9783
8620
|
};
|
|
@@ -9885,105 +8722,8 @@ var require_cjs10 = __commonJS({
|
|
|
9885
8722
|
}
|
|
9886
8723
|
});
|
|
9887
8724
|
|
|
9888
|
-
// ../../node_modules/@domql/report/dist/cjs/index.js
|
|
9889
|
-
var require_cjs11 = __commonJS({
|
|
9890
|
-
"../../node_modules/@domql/report/dist/cjs/index.js"(exports, module2) {
|
|
9891
|
-
"use strict";
|
|
9892
|
-
var __defProp2 = Object.defineProperty;
|
|
9893
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
9894
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
9895
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
9896
|
-
var __export2 = (target, all) => {
|
|
9897
|
-
for (var name in all)
|
|
9898
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
9899
|
-
};
|
|
9900
|
-
var __copyProps2 = (to, from2, except, desc) => {
|
|
9901
|
-
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
9902
|
-
for (let key of __getOwnPropNames2(from2))
|
|
9903
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
9904
|
-
__defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
|
|
9905
|
-
}
|
|
9906
|
-
return to;
|
|
9907
|
-
};
|
|
9908
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
9909
|
-
var report_exports = {};
|
|
9910
|
-
__export2(report_exports, {
|
|
9911
|
-
ERRORS_REGISTRY: () => ERRORS_REGISTRY,
|
|
9912
|
-
report: () => report
|
|
9913
|
-
});
|
|
9914
|
-
module2.exports = __toCommonJS2(report_exports);
|
|
9915
|
-
var ERRORS_REGISTRY = {
|
|
9916
|
-
en: {
|
|
9917
|
-
DocumentNotDefined: {
|
|
9918
|
-
title: "Document is undefined",
|
|
9919
|
-
description: "To tweak with DOM, you should use browser."
|
|
9920
|
-
},
|
|
9921
|
-
OverwriteToBuiltin: {
|
|
9922
|
-
title: "Overwriting to builtin method",
|
|
9923
|
-
description: "Overwriting a builtin method in the window define is not possible, please choose different name"
|
|
9924
|
-
},
|
|
9925
|
-
BrowserNotDefined: {
|
|
9926
|
-
title: "Can't recognize environment",
|
|
9927
|
-
description: "Environment should be browser application, that can run Javascript"
|
|
9928
|
-
},
|
|
9929
|
-
SetQuickPreferancesIsNotObject: {
|
|
9930
|
-
title: "Quick preferances object is required",
|
|
9931
|
-
description: 'Please pass a plain object with "lang", "culture" and "area" properties'
|
|
9932
|
-
},
|
|
9933
|
-
InvalidParams: {
|
|
9934
|
-
title: "Params are invalid",
|
|
9935
|
-
description: 'Please pass a plain object with "lang", "culture" and "area" properties'
|
|
9936
|
-
},
|
|
9937
|
-
CantCreateWithoutNode: {
|
|
9938
|
-
title: "You must provide node",
|
|
9939
|
-
description: "Can't create DOM element without setting node or text"
|
|
9940
|
-
},
|
|
9941
|
-
HTMLInvalidTag: {
|
|
9942
|
-
title: "Element tag name (or DOM nodeName) is invalid",
|
|
9943
|
-
description: "To create element, you must provide valid DOM node. See full list of them at here: http://www.w3schools.com/tags/"
|
|
9944
|
-
},
|
|
9945
|
-
HTMLInvalidAttr: {
|
|
9946
|
-
title: "Attibutes object is invalid",
|
|
9947
|
-
description: "Please pass a valid plain object to apply as an attributes for a DOM node"
|
|
9948
|
-
},
|
|
9949
|
-
HTMLInvalidData: {
|
|
9950
|
-
title: "Data object is invalid",
|
|
9951
|
-
description: "Please pass a valid plain object to apply as an dataset for a DOM node"
|
|
9952
|
-
},
|
|
9953
|
-
HTMLInvalidStyles: {
|
|
9954
|
-
title: "Styles object is invalid",
|
|
9955
|
-
description: "Please pass a valid plain object to apply as an style for a DOM node"
|
|
9956
|
-
},
|
|
9957
|
-
HTMLInvalidText: {
|
|
9958
|
-
title: "Text string is invalid",
|
|
9959
|
-
description: "Please pass a valid string to apply text to DOM node"
|
|
9960
|
-
},
|
|
9961
|
-
ElementOnStateIsNotDefined: {
|
|
9962
|
-
title: "Element on state is not defined",
|
|
9963
|
-
description: "Please check the element object"
|
|
9964
|
-
}
|
|
9965
|
-
}
|
|
9966
|
-
};
|
|
9967
|
-
var report = (err, arg, element) => {
|
|
9968
|
-
const currentLang = "en";
|
|
9969
|
-
let errObj;
|
|
9970
|
-
if (err && typeof err === "string")
|
|
9971
|
-
errObj = ERRORS_REGISTRY[currentLang][err];
|
|
9972
|
-
return new Error(
|
|
9973
|
-
`"${err}", "${arg}"
|
|
9974
|
-
|
|
9975
|
-
`,
|
|
9976
|
-
`${errObj.description}`,
|
|
9977
|
-
element ? `
|
|
9978
|
-
|
|
9979
|
-
${element}` : ""
|
|
9980
|
-
);
|
|
9981
|
-
};
|
|
9982
|
-
}
|
|
9983
|
-
});
|
|
9984
|
-
|
|
9985
8725
|
// ../../node_modules/@domql/router/dist/cjs/index.js
|
|
9986
|
-
var
|
|
8726
|
+
var require_cjs10 = __commonJS({
|
|
9987
8727
|
"../../node_modules/@domql/router/dist/cjs/index.js"(exports, module2) {
|
|
9988
8728
|
"use strict";
|
|
9989
8729
|
var __defProp2 = Object.defineProperty;
|
|
@@ -10012,8 +8752,8 @@ var require_cjs12 = __commonJS({
|
|
|
10012
8752
|
router: () => router2
|
|
10013
8753
|
});
|
|
10014
8754
|
module2.exports = __toCommonJS2(router_exports);
|
|
10015
|
-
var
|
|
10016
|
-
var getActiveRoute = (level = 0, route =
|
|
8755
|
+
var import_utils26 = require_cjs();
|
|
8756
|
+
var getActiveRoute = (level = 0, route = import_utils26.window.location.pathname) => {
|
|
10017
8757
|
const routeArray = route.split("/");
|
|
10018
8758
|
const activeRoute = routeArray[level + 1];
|
|
10019
8759
|
if (activeRoute)
|
|
@@ -10027,7 +8767,7 @@ var require_cjs12 = __commonJS({
|
|
|
10027
8767
|
initialRender: false,
|
|
10028
8768
|
scrollToTop: true,
|
|
10029
8769
|
scrollToNode: false,
|
|
10030
|
-
scrollNode:
|
|
8770
|
+
scrollNode: import_utils26.document && import_utils26.document.documentElement,
|
|
10031
8771
|
scrollBody: false,
|
|
10032
8772
|
useFragment: false,
|
|
10033
8773
|
updateState: true,
|
|
@@ -10042,13 +8782,13 @@ var require_cjs12 = __commonJS({
|
|
|
10042
8782
|
const route = getActiveRoute(options.level, pathname);
|
|
10043
8783
|
const content = element.routes[route || "/"] || element.routes["/*"];
|
|
10044
8784
|
const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
|
|
10045
|
-
const hashChanged = hash2 && hash2 !==
|
|
8785
|
+
const hashChanged = hash2 && hash2 !== import_utils26.window.location.hash.slice(1);
|
|
10046
8786
|
const pathChanged = pathname !== lastPathname;
|
|
10047
8787
|
lastPathname = pathname;
|
|
10048
8788
|
if (!content)
|
|
10049
8789
|
return;
|
|
10050
8790
|
if (options.pushState) {
|
|
10051
|
-
|
|
8791
|
+
import_utils26.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
|
|
10052
8792
|
}
|
|
10053
8793
|
if (pathChanged || !hashChanged) {
|
|
10054
8794
|
if (options.updateState) {
|
|
@@ -10074,7 +8814,7 @@ var require_cjs12 = __commonJS({
|
|
|
10074
8814
|
});
|
|
10075
8815
|
}
|
|
10076
8816
|
if (hash2) {
|
|
10077
|
-
const activeNode =
|
|
8817
|
+
const activeNode = import_utils26.document.getElementById(hash2);
|
|
10078
8818
|
if (activeNode) {
|
|
10079
8819
|
const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
|
|
10080
8820
|
scrollNode.scrollTo({
|
|
@@ -10090,7 +8830,7 @@ var require_cjs12 = __commonJS({
|
|
|
10090
8830
|
});
|
|
10091
8831
|
|
|
10092
8832
|
// ../../node_modules/@domql/globals/dist/cjs/index.js
|
|
10093
|
-
var
|
|
8833
|
+
var require_cjs11 = __commonJS({
|
|
10094
8834
|
"../../node_modules/@domql/globals/dist/cjs/index.js"(exports, module2) {
|
|
10095
8835
|
"use strict";
|
|
10096
8836
|
var __defProp2 = Object.defineProperty;
|
|
@@ -10126,7 +8866,7 @@ var require_cjs13 = __commonJS({
|
|
|
10126
8866
|
});
|
|
10127
8867
|
|
|
10128
8868
|
// ../fetch/dist/cjs/index.js
|
|
10129
|
-
var
|
|
8869
|
+
var require_cjs12 = __commonJS({
|
|
10130
8870
|
"../fetch/dist/cjs/index.js"(exports, module2) {
|
|
10131
8871
|
"use strict";
|
|
10132
8872
|
var __create2 = Object.create;
|
|
@@ -10165,7 +8905,7 @@ var require_cjs14 = __commonJS({
|
|
|
10165
8905
|
});
|
|
10166
8906
|
module2.exports = __toCommonJS2(fetch_exports);
|
|
10167
8907
|
var utils2 = __toESM2(require_cjs(), 1);
|
|
10168
|
-
var globals2 = __toESM2(
|
|
8908
|
+
var globals2 = __toESM2(require_cjs11(), 1);
|
|
10169
8909
|
var { overwriteDeep, deepDestringify } = utils2;
|
|
10170
8910
|
var { window: window5 } = globals2;
|
|
10171
8911
|
var IS_DEVELOPMENT = window5 && window5.location ? window5.location.host.includes("dev.") || window5.location.host.includes("symbo.ls") : true;
|
|
@@ -10468,8 +9208,8 @@ __export(src_exports, {
|
|
|
10468
9208
|
default: () => src_default2
|
|
10469
9209
|
});
|
|
10470
9210
|
module.exports = __toCommonJS(src_exports);
|
|
10471
|
-
var import_domql = __toESM(
|
|
10472
|
-
var
|
|
9211
|
+
var import_domql = __toESM(require_cjs8(), 1);
|
|
9212
|
+
var import_utils25 = __toESM(require_cjs(), 1);
|
|
10473
9213
|
|
|
10474
9214
|
// src/utilImports.js
|
|
10475
9215
|
var utilImports_exports = {};
|
|
@@ -10489,7 +9229,7 @@ __export(utilImports_exports, {
|
|
|
10489
9229
|
toTitleCase: () => toTitleCase,
|
|
10490
9230
|
updateReset: () => updateReset
|
|
10491
9231
|
});
|
|
10492
|
-
var import_scratch2 = __toESM(
|
|
9232
|
+
var import_scratch2 = __toESM(require_cjs9(), 1);
|
|
10493
9233
|
__reExport(utilImports_exports, __toESM(require_cjs(), 1));
|
|
10494
9234
|
|
|
10495
9235
|
// ../utils/src/index.js
|
|
@@ -10552,12 +9292,14 @@ var arrayzeValue = (val) => {
|
|
|
10552
9292
|
return val.split(" ");
|
|
10553
9293
|
if ((0, import_utils2.isObject)(val))
|
|
10554
9294
|
return Object.keys(val).map((v) => val[v]);
|
|
9295
|
+
if ((0, import_utils2.isNumber)(val))
|
|
9296
|
+
return [val];
|
|
10555
9297
|
if ((0, import_utils2.isArray)(val))
|
|
10556
9298
|
return val;
|
|
10557
9299
|
};
|
|
10558
9300
|
|
|
10559
9301
|
// ../init/index.js
|
|
10560
|
-
var import_scratch = __toESM(
|
|
9302
|
+
var import_scratch = __toESM(require_cjs9());
|
|
10561
9303
|
var import_utils4 = __toESM(require_cjs());
|
|
10562
9304
|
|
|
10563
9305
|
// ../../node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
|
|
@@ -11978,8 +10720,8 @@ var updateReset = (config, RC_FILE, options = UPDATE_OPTIONS) => {
|
|
|
11978
10720
|
};
|
|
11979
10721
|
|
|
11980
10722
|
// src/utilImports.js
|
|
11981
|
-
__reExport(utilImports_exports, __toESM(
|
|
11982
|
-
__reExport(utilImports_exports, __toESM(
|
|
10723
|
+
__reExport(utilImports_exports, __toESM(require_cjs2(), 1));
|
|
10724
|
+
__reExport(utilImports_exports, __toESM(require_cjs10(), 1));
|
|
11983
10725
|
|
|
11984
10726
|
// ../uikit/index.js
|
|
11985
10727
|
var uikit_exports = {};
|
|
@@ -11989,6 +10731,7 @@ __export(uikit_exports, {
|
|
|
11989
10731
|
AvatarBundle: () => AvatarBundle,
|
|
11990
10732
|
AvatarChooser: () => AvatarChooser,
|
|
11991
10733
|
AvatarIndicator: () => AvatarIndicator,
|
|
10734
|
+
B: () => B,
|
|
11992
10735
|
BalanceCard: () => BalanceCard,
|
|
11993
10736
|
Banner: () => Banner,
|
|
11994
10737
|
Block: () => Block,
|
|
@@ -12055,6 +10798,7 @@ __export(uikit_exports, {
|
|
|
12055
10798
|
Headline: () => Headline,
|
|
12056
10799
|
Hoverable: () => Hoverable,
|
|
12057
10800
|
Hr: () => Hr,
|
|
10801
|
+
I: () => I,
|
|
12058
10802
|
Icon: () => Icon,
|
|
12059
10803
|
IconCommonButton: () => IconCommonButton,
|
|
12060
10804
|
IconTab: () => IconTab,
|
|
@@ -12185,7 +10929,7 @@ __export(uikit_exports, {
|
|
|
12185
10929
|
});
|
|
12186
10930
|
|
|
12187
10931
|
// ../uikit/Atoms/Block.js
|
|
12188
|
-
var import_scratch3 = __toESM(
|
|
10932
|
+
var import_scratch3 = __toESM(require_cjs9());
|
|
12189
10933
|
var Block = {
|
|
12190
10934
|
deps: { getSpacingBasedOnRatio: import_scratch3.getSpacingBasedOnRatio, getSpacingByKey: import_scratch3.getSpacingByKey, transfromGap: import_scratch3.transfromGap },
|
|
12191
10935
|
class: {
|
|
@@ -12386,7 +11130,7 @@ var Flex = {
|
|
|
12386
11130
|
};
|
|
12387
11131
|
|
|
12388
11132
|
// ../uikit/Atoms/Grid.js
|
|
12389
|
-
var import_scratch4 = __toESM(
|
|
11133
|
+
var import_scratch4 = __toESM(require_cjs9());
|
|
12390
11134
|
var Grid = {
|
|
12391
11135
|
deps: { getSpacingBasedOnRatio: import_scratch4.getSpacingBasedOnRatio },
|
|
12392
11136
|
props: { display: "grid" },
|
|
@@ -12434,13 +11178,13 @@ var Form = {
|
|
|
12434
11178
|
var import_utils6 = __toESM(require_cjs());
|
|
12435
11179
|
|
|
12436
11180
|
// ../uikit/Atoms/Theme.js
|
|
12437
|
-
var import_scratch7 = __toESM(
|
|
11181
|
+
var import_scratch7 = __toESM(require_cjs9());
|
|
12438
11182
|
|
|
12439
11183
|
// ../uikit/Atoms/Shape/style.js
|
|
12440
|
-
var import_scratch6 = __toESM(
|
|
11184
|
+
var import_scratch6 = __toESM(require_cjs9());
|
|
12441
11185
|
|
|
12442
11186
|
// ../uikit/Atoms/Timing.js
|
|
12443
|
-
var import_scratch5 = __toESM(
|
|
11187
|
+
var import_scratch5 = __toESM(require_cjs9());
|
|
12444
11188
|
var Timing = {
|
|
12445
11189
|
deps: {
|
|
12446
11190
|
getTimingFunction: import_scratch5.getTimingFunction,
|
|
@@ -12790,6 +11534,12 @@ var Theme = {
|
|
|
12790
11534
|
columnRule: ({ props: props4, deps }) => !(0, import_utils5.isUndefined)(props4.columnRule) && {
|
|
12791
11535
|
columnRule: deps.transformBorder(props4.columnRule)
|
|
12792
11536
|
},
|
|
11537
|
+
filter: ({ props: props4, deps }) => !(0, import_utils5.isUndefined)(props4.filter) && {
|
|
11538
|
+
filter: props4.filter
|
|
11539
|
+
},
|
|
11540
|
+
mixBlendMode: ({ props: props4, deps }) => !(0, import_utils5.isUndefined)(props4.mixBlendMode) && {
|
|
11541
|
+
mixBlendMode: props4.mixBlendMode
|
|
11542
|
+
},
|
|
12793
11543
|
appearance: ({ props: props4 }) => !(0, import_utils5.isUndefined)(props4.appearance) && {
|
|
12794
11544
|
appearance: props4.appearance
|
|
12795
11545
|
}
|
|
@@ -13104,6 +11854,46 @@ var import_state = __toESM(require_cjs5());
|
|
|
13104
11854
|
var import_utils7 = __toESM(require_cjs());
|
|
13105
11855
|
var Collection = {
|
|
13106
11856
|
define: {
|
|
11857
|
+
$collection: (param, el, state) => {
|
|
11858
|
+
if (!param)
|
|
11859
|
+
return;
|
|
11860
|
+
if ((0, import_utils7.isString)(param)) {
|
|
11861
|
+
if (param === "state")
|
|
11862
|
+
param = state.parse();
|
|
11863
|
+
else
|
|
11864
|
+
param = (0, import_state.getChildStateInKey)(param, state);
|
|
11865
|
+
}
|
|
11866
|
+
if ((0, import_state.isState)(param))
|
|
11867
|
+
param = param.parse();
|
|
11868
|
+
if ((0, import_utils7.isNot)(param)("array", "object"))
|
|
11869
|
+
return;
|
|
11870
|
+
const { __ref: ref } = el;
|
|
11871
|
+
if (ref.__stateCollectionCache) {
|
|
11872
|
+
const d = (0, import_utils7.deepDiff)(param, ref.__stateCollectionCache);
|
|
11873
|
+
if (Object.keys(d).length) {
|
|
11874
|
+
ref.__stateCollectionCache = (0, import_utils7.deepClone)(param);
|
|
11875
|
+
delete ref.__noCollectionDifference;
|
|
11876
|
+
} else {
|
|
11877
|
+
ref.__noCollectionDifference = true;
|
|
11878
|
+
return;
|
|
11879
|
+
}
|
|
11880
|
+
} else {
|
|
11881
|
+
ref.__stateCollectionCache = (0, import_utils7.deepClone)(param);
|
|
11882
|
+
}
|
|
11883
|
+
const obj = {
|
|
11884
|
+
tag: "fragment",
|
|
11885
|
+
props: {
|
|
11886
|
+
childProps: el.props && el.props.childProps
|
|
11887
|
+
}
|
|
11888
|
+
};
|
|
11889
|
+
for (const key in param) {
|
|
11890
|
+
const value2 = param[key];
|
|
11891
|
+
obj[key] = (0, import_utils7.isObjectLike)(value2) ? value2 : { value: value2 };
|
|
11892
|
+
}
|
|
11893
|
+
el.removeContent();
|
|
11894
|
+
el.content = obj;
|
|
11895
|
+
return obj;
|
|
11896
|
+
},
|
|
13107
11897
|
$setCollection: (param, el, state) => {
|
|
13108
11898
|
if (!param)
|
|
13109
11899
|
return;
|
|
@@ -13206,7 +11996,7 @@ var Collection = {
|
|
|
13206
11996
|
};
|
|
13207
11997
|
|
|
13208
11998
|
// ../uikit/Atoms/Position.js
|
|
13209
|
-
var import_scratch8 = __toESM(
|
|
11999
|
+
var import_scratch8 = __toESM(require_cjs9());
|
|
13210
12000
|
var Position = {
|
|
13211
12001
|
deps: { getSpacingByKey: import_scratch8.getSpacingByKey },
|
|
13212
12002
|
class: {
|
|
@@ -13299,7 +12089,7 @@ var Svg = {
|
|
|
13299
12089
|
|
|
13300
12090
|
// ../uikit/Atoms/Shape/index.js
|
|
13301
12091
|
var import_utils8 = __toESM(require_cjs());
|
|
13302
|
-
var import_scratch9 = __toESM(
|
|
12092
|
+
var import_scratch9 = __toESM(require_cjs9());
|
|
13303
12093
|
var transformBorderRadius = (radius, props4, propertyName) => {
|
|
13304
12094
|
if (!(0, import_utils8.isString)(radius))
|
|
13305
12095
|
return;
|
|
@@ -13335,7 +12125,8 @@ var Shape = {
|
|
|
13335
12125
|
};
|
|
13336
12126
|
|
|
13337
12127
|
// ../uikit/Atoms/Text.js
|
|
13338
|
-
var
|
|
12128
|
+
var import_utils9 = __toESM(require_cjs());
|
|
12129
|
+
var import_scratch10 = __toESM(require_cjs9());
|
|
13339
12130
|
var Text = {
|
|
13340
12131
|
deps: { getFontSizeByKey: import_scratch10.getFontSizeByKey, getFontFamily: import_scratch10.getFontFamily },
|
|
13341
12132
|
text: ({ key, props: props4, state, deps }) => {
|
|
@@ -13348,18 +12139,19 @@ var Text = {
|
|
|
13348
12139
|
const { props: props4, deps } = el;
|
|
13349
12140
|
return props4.fontSize ? deps.getFontSizeByKey(props4.fontSize) : null;
|
|
13350
12141
|
},
|
|
13351
|
-
|
|
12142
|
+
font: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.font) && { font: props4.font },
|
|
12143
|
+
fontFamily: ({ props: props4, deps }) => !(0, import_utils9.isUndefined)(props4.fontFamily) && {
|
|
13352
12144
|
fontFamily: deps.getFontFamily(props4.fontFamily) || props4.fontFamily
|
|
13353
12145
|
},
|
|
13354
|
-
lineHeight: ({ props: props4 }) => props4.lineHeight && { lineHeight: props4.lineHeight },
|
|
13355
|
-
// lineHeight: ({ props }) => props.lineHeight && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
|
|
13356
|
-
textDecoration: ({ props: props4 }) => props4.textDecoration && { textDecoration: props4.textDecoration },
|
|
13357
|
-
textTransform: ({ props: props4 }) => props4.textTransform && { textTransform: props4.textTransform },
|
|
13358
|
-
whiteSpace: ({ props: props4 }) => props4.whiteSpace && { whiteSpace: props4.whiteSpace },
|
|
13359
|
-
wordWrap: ({ props: props4 }) => props4.wordWrap && { wordWrap: props4.wordWrap },
|
|
13360
|
-
letterSpacing: ({ props: props4 }) => props4.letterSpacing && { letterSpacing: props4.letterSpacing },
|
|
13361
|
-
textAlign: ({ props: props4 }) => props4.textAlign && { textAlign: props4.textAlign },
|
|
13362
|
-
fontWeight: ({ props: props4 }) => props4.fontWeight && {
|
|
12146
|
+
lineHeight: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.lineHeight) && { lineHeight: props4.lineHeight },
|
|
12147
|
+
// lineHeight: ({ props }) => !isUndefined(props.lineHeight) && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
|
|
12148
|
+
textDecoration: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.textDecoration) && { textDecoration: props4.textDecoration },
|
|
12149
|
+
textTransform: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.textTransform) && { textTransform: props4.textTransform },
|
|
12150
|
+
whiteSpace: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.whiteSpace) && { whiteSpace: props4.whiteSpace },
|
|
12151
|
+
wordWrap: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.wordWrap) && { wordWrap: props4.wordWrap },
|
|
12152
|
+
letterSpacing: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.letterSpacing) && { letterSpacing: props4.letterSpacing },
|
|
12153
|
+
textAlign: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.textAlign) && { textAlign: props4.textAlign },
|
|
12154
|
+
fontWeight: ({ props: props4 }) => !(0, import_utils9.isUndefined)(props4.fontWeight) && {
|
|
13363
12155
|
fontWeight: props4.fontWeight,
|
|
13364
12156
|
fontVariationSettings: '"wght" ' + props4.fontWeight
|
|
13365
12157
|
}
|
|
@@ -13392,10 +12184,13 @@ var Footnote = {
|
|
|
13392
12184
|
tag: "span",
|
|
13393
12185
|
props: { fontSize: "Z" }
|
|
13394
12186
|
};
|
|
12187
|
+
var B = { tag: "b" };
|
|
12188
|
+
var I = { tag: "i" };
|
|
13395
12189
|
|
|
13396
12190
|
// ../uikit/Atoms/Transform.js
|
|
13397
12191
|
var Transform = {
|
|
13398
12192
|
class: {
|
|
12193
|
+
zoom: ({ props: props4 }) => props4.zoom && { zoom: props4.zoom },
|
|
13399
12194
|
transform: ({ props: props4 }) => props4.transform && { transform: props4.transform },
|
|
13400
12195
|
transformOrigin: ({ props: props4 }) => props4.transformOrigin && { transformOrigin: props4.transformOrigin }
|
|
13401
12196
|
}
|
|
@@ -13409,19 +12204,19 @@ var XYZ = {
|
|
|
13409
12204
|
};
|
|
13410
12205
|
|
|
13411
12206
|
// ../uikit/Atoms/Animation.js
|
|
13412
|
-
var import_scratch11 = __toESM(
|
|
13413
|
-
var
|
|
12207
|
+
var import_scratch11 = __toESM(require_cjs9());
|
|
12208
|
+
var import_utils10 = __toESM(require_cjs());
|
|
13414
12209
|
var applyAnimationProps = (animation, element) => {
|
|
13415
12210
|
const { emotion: ctxEmotion } = element.context;
|
|
13416
12211
|
const { keyframes } = ctxEmotion || emotion;
|
|
13417
|
-
if ((0,
|
|
12212
|
+
if ((0, import_utils10.isObject)(animation))
|
|
13418
12213
|
return { animationName: keyframes(animation) };
|
|
13419
|
-
const { ANIMATION } = element.context && element.context.designSystem;
|
|
13420
|
-
const record =
|
|
12214
|
+
const { ANIMATION: ANIMATION2 } = element.context && element.context.designSystem;
|
|
12215
|
+
const record = ANIMATION2[animation];
|
|
13421
12216
|
return keyframes(record);
|
|
13422
12217
|
};
|
|
13423
12218
|
var Animation = {
|
|
13424
|
-
deps: { isObject:
|
|
12219
|
+
deps: { isObject: import_utils10.isObject, getTimingByKey: import_scratch11.getTimingByKey, getTimingFunction: import_scratch11.getTimingFunction, applyAnimationProps },
|
|
13425
12220
|
class: {
|
|
13426
12221
|
animation: (el) => el.props.animation && {
|
|
13427
12222
|
animationName: el.deps.applyAnimationProps(el.props.animation, el),
|
|
@@ -13460,7 +12255,7 @@ var Animation = {
|
|
|
13460
12255
|
};
|
|
13461
12256
|
|
|
13462
12257
|
// ../uikit/Box/index.js
|
|
13463
|
-
var
|
|
12258
|
+
var import_utils11 = __toESM(require_cjs());
|
|
13464
12259
|
var PropsCSS = {
|
|
13465
12260
|
class: {
|
|
13466
12261
|
style: ({ props: props4 }) => props4 && props4.style
|
|
@@ -13482,7 +12277,7 @@ var Box = {
|
|
|
13482
12277
|
XYZ,
|
|
13483
12278
|
Animation
|
|
13484
12279
|
],
|
|
13485
|
-
deps: { isString:
|
|
12280
|
+
deps: { isString: import_utils11.isString },
|
|
13486
12281
|
attr: {
|
|
13487
12282
|
id: ({ props: props4, deps }) => deps.isString(props4.id) && props4.id,
|
|
13488
12283
|
title: ({ props: props4, deps }) => deps.isString(props4.title) && props4.title,
|
|
@@ -13503,10 +12298,10 @@ var Circle = {
|
|
|
13503
12298
|
};
|
|
13504
12299
|
|
|
13505
12300
|
// ../uikit/Icon/index.js
|
|
13506
|
-
var
|
|
12301
|
+
var import_utils12 = __toESM(require_cjs());
|
|
13507
12302
|
var Icon = {
|
|
13508
12303
|
extend: Svg,
|
|
13509
|
-
deps: { isString:
|
|
12304
|
+
deps: { isString: import_utils12.isString },
|
|
13510
12305
|
props: ({ key, props: props4, parent, context, deps }) => {
|
|
13511
12306
|
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
13512
12307
|
const { toCamelCase: toCamelCase2 } = context && context.utils;
|
|
@@ -13699,7 +12494,7 @@ var TitleParagraph = {
|
|
|
13699
12494
|
props: {
|
|
13700
12495
|
margin: "0",
|
|
13701
12496
|
fontWeight: "400",
|
|
13702
|
-
color: "
|
|
12497
|
+
color: "caption",
|
|
13703
12498
|
"> p": { margin: "0" }
|
|
13704
12499
|
}
|
|
13705
12500
|
}
|
|
@@ -13736,7 +12531,7 @@ var TitleParagraphButton = {
|
|
|
13736
12531
|
Button: {
|
|
13737
12532
|
props: {
|
|
13738
12533
|
background: "transparent",
|
|
13739
|
-
color: "
|
|
12534
|
+
color: "currentColor",
|
|
13740
12535
|
padding: "0",
|
|
13741
12536
|
Icon: {
|
|
13742
12537
|
name: "x",
|
|
@@ -13786,7 +12581,7 @@ var List = {
|
|
|
13786
12581
|
position: "relative",
|
|
13787
12582
|
cursor: "pointer",
|
|
13788
12583
|
fontSize: "A1",
|
|
13789
|
-
color: "
|
|
12584
|
+
color: "caption",
|
|
13790
12585
|
":hover": {
|
|
13791
12586
|
background: "gray .92 +4"
|
|
13792
12587
|
},
|
|
@@ -14045,7 +12840,7 @@ var CommonField = {
|
|
|
14045
12840
|
text: "Label",
|
|
14046
12841
|
lineHeight: "1em",
|
|
14047
12842
|
padding: "- - - V2",
|
|
14048
|
-
color: "
|
|
12843
|
+
color: "caption"
|
|
14049
12844
|
}
|
|
14050
12845
|
},
|
|
14051
12846
|
Field: {
|
|
@@ -14054,7 +12849,7 @@ var CommonField = {
|
|
|
14054
12849
|
Hint: {
|
|
14055
12850
|
extend: IconText,
|
|
14056
12851
|
props: {
|
|
14057
|
-
color: "
|
|
12852
|
+
color: "caption",
|
|
14058
12853
|
align: "center flex-start",
|
|
14059
12854
|
text: "",
|
|
14060
12855
|
fontSize: "Z1",
|
|
@@ -14386,7 +13181,7 @@ var Banner = {
|
|
|
14386
13181
|
content: '""',
|
|
14387
13182
|
position: "absolute",
|
|
14388
13183
|
boxSize: "V 100%",
|
|
14389
|
-
|
|
13184
|
+
theme: "dialog",
|
|
14390
13185
|
top: "0",
|
|
14391
13186
|
round: "C"
|
|
14392
13187
|
}
|
|
@@ -14405,8 +13200,7 @@ var Banner = {
|
|
|
14405
13200
|
Title: {
|
|
14406
13201
|
tag: "h6",
|
|
14407
13202
|
props: {
|
|
14408
|
-
fontSize: "B"
|
|
14409
|
-
color: "white .85"
|
|
13203
|
+
fontSize: "B"
|
|
14410
13204
|
}
|
|
14411
13205
|
},
|
|
14412
13206
|
Paragraph: {
|
|
@@ -14421,9 +13215,7 @@ var Banner = {
|
|
|
14421
13215
|
letterSpacing: ".1px",
|
|
14422
13216
|
padding: "B - - Y",
|
|
14423
13217
|
fontSize: "Z2",
|
|
14424
|
-
color: "white .5",
|
|
14425
13218
|
lineHeight: "1.6em"
|
|
14426
|
-
// fontWeight: '100'
|
|
14427
13219
|
}
|
|
14428
13220
|
}
|
|
14429
13221
|
};
|
|
@@ -14514,7 +13306,7 @@ var UnitValueWithTitle = {
|
|
|
14514
13306
|
};
|
|
14515
13307
|
|
|
14516
13308
|
// ../uikit/Link/index.js
|
|
14517
|
-
var import_router = __toESM(
|
|
13309
|
+
var import_router = __toESM(require_cjs10());
|
|
14518
13310
|
var Link = {
|
|
14519
13311
|
extend: Focusable,
|
|
14520
13312
|
tag: "a",
|
|
@@ -14609,11 +13401,11 @@ var DoubleHr = {
|
|
|
14609
13401
|
};
|
|
14610
13402
|
|
|
14611
13403
|
// ../uikit/Input/Input.js
|
|
14612
|
-
var
|
|
13404
|
+
var import_utils13 = __toESM(require_cjs());
|
|
14613
13405
|
var Input = {
|
|
14614
13406
|
tag: "input",
|
|
14615
13407
|
extend: [Focusable],
|
|
14616
|
-
deps: { isString:
|
|
13408
|
+
deps: { isString: import_utils13.isString, replaceLiteralsWithObjectFields: import_utils13.replaceLiteralsWithObjectFields },
|
|
14617
13409
|
props: {
|
|
14618
13410
|
border: "none",
|
|
14619
13411
|
type: "input",
|
|
@@ -15153,8 +13945,8 @@ var ProgressCircleWithSideUnitValue = {
|
|
|
15153
13945
|
};
|
|
15154
13946
|
|
|
15155
13947
|
// ../uikit/Range/index.js
|
|
15156
|
-
var
|
|
15157
|
-
var import_scratch12 = __toESM(
|
|
13948
|
+
var import_utils14 = __toESM(require_cjs());
|
|
13949
|
+
var import_scratch12 = __toESM(require_cjs9());
|
|
15158
13950
|
var props = {
|
|
15159
13951
|
appearance: "none",
|
|
15160
13952
|
width: "100%",
|
|
@@ -15221,7 +14013,7 @@ var Range = {
|
|
|
15221
14013
|
};
|
|
15222
14014
|
var returnPropertyValue = (el, property, def) => {
|
|
15223
14015
|
const val = el.props && el.props[property];
|
|
15224
|
-
const r = (0,
|
|
14016
|
+
const r = (0, import_utils14.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
|
|
15225
14017
|
return r + "";
|
|
15226
14018
|
};
|
|
15227
14019
|
var RangeWithButtons = {
|
|
@@ -15231,7 +14023,7 @@ var RangeWithButtons = {
|
|
|
15231
14023
|
on: {
|
|
15232
14024
|
click: (ev, el, s) => {
|
|
15233
14025
|
const parentProps = el.parent.props;
|
|
15234
|
-
if ((0,
|
|
14026
|
+
if ((0, import_utils14.isFunction)(parentProps.onDecrease)) {
|
|
15235
14027
|
parentProps.onDecrease(ev, el.parent, s);
|
|
15236
14028
|
} else {
|
|
15237
14029
|
const value2 = parseFloat(s.value);
|
|
@@ -15263,7 +14055,7 @@ var RangeWithButtons = {
|
|
|
15263
14055
|
on: {
|
|
15264
14056
|
input: (ev, el, s) => {
|
|
15265
14057
|
const parentProps = el.parent.props;
|
|
15266
|
-
if ((0,
|
|
14058
|
+
if ((0, import_utils14.isFunction)(parentProps.onInput)) {
|
|
15267
14059
|
parentProps.onInput(ev, el, s);
|
|
15268
14060
|
} else {
|
|
15269
14061
|
s.update({ value: parseFloat(el.node.value) });
|
|
@@ -15271,7 +14063,7 @@ var RangeWithButtons = {
|
|
|
15271
14063
|
},
|
|
15272
14064
|
change: (ev, el, s) => {
|
|
15273
14065
|
const parentProps = el.parent.props;
|
|
15274
|
-
if ((0,
|
|
14066
|
+
if ((0, import_utils14.isFunction)(parentProps.onChange)) {
|
|
15275
14067
|
parentProps.onChange(ev, el, s);
|
|
15276
14068
|
} else {
|
|
15277
14069
|
s.update({ value: parseFloat(el.node.value) });
|
|
@@ -15285,7 +14077,7 @@ var RangeWithButtons = {
|
|
|
15285
14077
|
on: {
|
|
15286
14078
|
click: (ev, el, s) => {
|
|
15287
14079
|
const parentProps = el.parent.props;
|
|
15288
|
-
if ((0,
|
|
14080
|
+
if ((0, import_utils14.isFunction)(parentProps.onIncrease)) {
|
|
15289
14081
|
parentProps.onIncrease(ev, el.parent, s);
|
|
15290
14082
|
} else {
|
|
15291
14083
|
const value2 = parseFloat(s.value);
|
|
@@ -15320,8 +14112,8 @@ var style_default = {
|
|
|
15320
14112
|
};
|
|
15321
14113
|
|
|
15322
14114
|
// ../uikit/Slider/index.js
|
|
15323
|
-
var import_scratch13 = __toESM(
|
|
15324
|
-
var
|
|
14115
|
+
var import_scratch13 = __toESM(require_cjs9());
|
|
14116
|
+
var import_utils15 = __toESM(require_cjs());
|
|
15325
14117
|
(0, import_scratch13.set)({
|
|
15326
14118
|
theme: {
|
|
15327
14119
|
sliderThumb: {
|
|
@@ -15353,7 +14145,7 @@ var RangeSlider = {
|
|
|
15353
14145
|
};
|
|
15354
14146
|
var listenProp = (el, prop, def) => {
|
|
15355
14147
|
const val = el && el.props && el.props[prop];
|
|
15356
|
-
const r = ((0,
|
|
14148
|
+
const r = ((0, import_utils15.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
|
|
15357
14149
|
return r;
|
|
15358
14150
|
};
|
|
15359
14151
|
var Slider = {
|
|
@@ -15364,10 +14156,10 @@ var Slider = {
|
|
|
15364
14156
|
},
|
|
15365
14157
|
on: {
|
|
15366
14158
|
click: (ev, el, s) => {
|
|
15367
|
-
el.props && (0,
|
|
14159
|
+
el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
15368
14160
|
const input = el.parent.input;
|
|
15369
14161
|
const props4 = input.props;
|
|
15370
|
-
const value2 = (0,
|
|
14162
|
+
const value2 = (0, import_utils15.isFunction)(props4.value) ? props4.value() : props4.value;
|
|
15371
14163
|
input.node.value = value2;
|
|
15372
14164
|
}
|
|
15373
14165
|
}
|
|
@@ -15390,8 +14182,8 @@ var Slider = {
|
|
|
15390
14182
|
step: (el, s) => listenProp(el, "step", 1)
|
|
15391
14183
|
},
|
|
15392
14184
|
on: {
|
|
15393
|
-
input: (ev, el, s) => el.props && (0,
|
|
15394
|
-
change: (ev, el, s) => el.props && (0,
|
|
14185
|
+
input: (ev, el, s) => el.props && (0, import_utils15.isFunction)(el.props.input) && el.props.input(ev, el, s),
|
|
14186
|
+
change: (ev, el, s) => el.props && (0, import_utils15.isFunction)(el.props.change) && el.props.change(ev, el, s)
|
|
15395
14187
|
}
|
|
15396
14188
|
},
|
|
15397
14189
|
button1: {
|
|
@@ -15401,10 +14193,10 @@ var Slider = {
|
|
|
15401
14193
|
},
|
|
15402
14194
|
on: {
|
|
15403
14195
|
click: (ev, el, s) => {
|
|
15404
|
-
el.props && (0,
|
|
14196
|
+
el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
15405
14197
|
const input = el.parent.input;
|
|
15406
14198
|
const props4 = input.props;
|
|
15407
|
-
const value2 = (0,
|
|
14199
|
+
const value2 = (0, import_utils15.isFunction)(props4.value) ? props4.value() : props4.value;
|
|
15408
14200
|
input.node.value = value2;
|
|
15409
14201
|
}
|
|
15410
14202
|
}
|
|
@@ -15621,7 +14413,7 @@ var NotificationIndicator = {
|
|
|
15621
14413
|
};
|
|
15622
14414
|
|
|
15623
14415
|
// ../uikit/Tooltip/index.js
|
|
15624
|
-
var
|
|
14416
|
+
var import_utils16 = __toESM(require_cjs());
|
|
15625
14417
|
var Tooltip = {
|
|
15626
14418
|
extend: Flex,
|
|
15627
14419
|
props: {
|
|
@@ -15640,7 +14432,7 @@ var Tooltip = {
|
|
|
15640
14432
|
},
|
|
15641
14433
|
attr: { tooltip: true },
|
|
15642
14434
|
Title: {
|
|
15643
|
-
if: ({ parent, props: props4 }) => (0,
|
|
14435
|
+
if: ({ parent, props: props4 }) => (0, import_utils16.isDefined)(parent.props.title) || props4.text,
|
|
15644
14436
|
props: ({ parent }) => ({
|
|
15645
14437
|
width: "fit-content",
|
|
15646
14438
|
fontWeight: 500,
|
|
@@ -15649,7 +14441,7 @@ var Tooltip = {
|
|
|
15649
14441
|
})
|
|
15650
14442
|
},
|
|
15651
14443
|
P: {
|
|
15652
|
-
if: ({ parent, props: props4 }) => (0,
|
|
14444
|
+
if: ({ parent, props: props4 }) => (0, import_utils16.isDefined)(parent.props.description) || props4.text,
|
|
15653
14445
|
props: ({ parent }) => ({
|
|
15654
14446
|
width: "fit-content",
|
|
15655
14447
|
fontSize: "Z2",
|
|
@@ -15939,7 +14731,7 @@ var LineStepsWithTitleParagraph = {
|
|
|
15939
14731
|
Paragraph: {
|
|
15940
14732
|
text: "The easiest way to build your own website.",
|
|
15941
14733
|
fontSize: "Z1",
|
|
15942
|
-
color: "
|
|
14734
|
+
color: "caption"
|
|
15943
14735
|
}
|
|
15944
14736
|
},
|
|
15945
14737
|
LineSteps: {
|
|
@@ -15961,7 +14753,7 @@ var ParagraphButton = {
|
|
|
15961
14753
|
P: {
|
|
15962
14754
|
props: {
|
|
15963
14755
|
text: "Didn't get the code?",
|
|
15964
|
-
color: "
|
|
14756
|
+
color: "caption",
|
|
15965
14757
|
margin: "0"
|
|
15966
14758
|
}
|
|
15967
14759
|
},
|
|
@@ -16103,7 +14895,7 @@ var Modal = {
|
|
|
16103
14895
|
Paragraph: {
|
|
16104
14896
|
props: {
|
|
16105
14897
|
fontSize: "Z",
|
|
16106
|
-
color: "
|
|
14898
|
+
color: "caption",
|
|
16107
14899
|
padding: "- Y"
|
|
16108
14900
|
}
|
|
16109
14901
|
}
|
|
@@ -16839,7 +15631,7 @@ var LogIn = {
|
|
|
16839
15631
|
extend: SocialLink,
|
|
16840
15632
|
props: {
|
|
16841
15633
|
minWidth: "100%",
|
|
16842
|
-
color: "
|
|
15634
|
+
color: "caption"
|
|
16843
15635
|
}
|
|
16844
15636
|
},
|
|
16845
15637
|
...[{}, {}]
|
|
@@ -17602,7 +16394,7 @@ var BalanceCard = {
|
|
|
17602
16394
|
padding: "0",
|
|
17603
16395
|
theme: "transparent",
|
|
17604
16396
|
fontSize: "D",
|
|
17605
|
-
color: "
|
|
16397
|
+
color: "caption",
|
|
17606
16398
|
margin: "-X -W2 - -",
|
|
17607
16399
|
Icon: { name: "arrowUpRight" }
|
|
17608
16400
|
}
|
|
@@ -17620,7 +16412,7 @@ var BalanceCard = {
|
|
|
17620
16412
|
},
|
|
17621
16413
|
UnitValue: {
|
|
17622
16414
|
flow: "row-reverse",
|
|
17623
|
-
color: "
|
|
16415
|
+
color: "paragraph",
|
|
17624
16416
|
fontWeight: "400",
|
|
17625
16417
|
fontSize: "Z",
|
|
17626
16418
|
gap: "Y",
|
|
@@ -17700,7 +16492,7 @@ var ConvertCard = {
|
|
|
17700
16492
|
props: {
|
|
17701
16493
|
justifyContent: "space-between",
|
|
17702
16494
|
fontWeight: "400",
|
|
17703
|
-
color: "
|
|
16495
|
+
color: "caption"
|
|
17704
16496
|
},
|
|
17705
16497
|
caption: {
|
|
17706
16498
|
props: {
|
|
@@ -17826,14 +16618,15 @@ var defaultDefine = {
|
|
|
17826
16618
|
set5();
|
|
17827
16619
|
return obj;
|
|
17828
16620
|
},
|
|
16621
|
+
$collection: Collection.define.$collection,
|
|
17829
16622
|
$setCollection: Collection.define.$setCollection,
|
|
17830
16623
|
$setStateCollection: Collection.define.$setStateCollection,
|
|
17831
16624
|
$setPropsCollection: Collection.define.$setPropsCollection
|
|
17832
16625
|
};
|
|
17833
16626
|
|
|
17834
16627
|
// src/router.js
|
|
17835
|
-
var import_router2 = __toESM(
|
|
17836
|
-
var
|
|
16628
|
+
var import_router2 = __toESM(require_cjs10(), 1);
|
|
16629
|
+
var import_utils17 = __toESM(require_cjs(), 1);
|
|
17837
16630
|
var DEFAULT_ROUTING_OPTIONS = {
|
|
17838
16631
|
initRouter: true,
|
|
17839
16632
|
injectRouterInLinkComponent: true,
|
|
@@ -17845,16 +16638,16 @@ var initRouter = (element, options) => {
|
|
|
17845
16638
|
else if (options.router === true)
|
|
17846
16639
|
options.router = DEFAULT_ROUTING_OPTIONS;
|
|
17847
16640
|
else
|
|
17848
|
-
(0,
|
|
16641
|
+
(0, import_utils17.merge)(options.router || {}, DEFAULT_ROUTING_OPTIONS);
|
|
17849
16642
|
const routerOptions = options.router;
|
|
17850
16643
|
const router2 = options.snippets && options.snippets.router ? options.snippets.router : import_router2.router;
|
|
17851
16644
|
const onRouterRenderDefault = (el, s) => {
|
|
17852
|
-
const { pathname, hash: hash2 } =
|
|
16645
|
+
const { pathname, hash: hash2 } = import_utils17.window.location;
|
|
17853
16646
|
const url2 = pathname + hash2;
|
|
17854
16647
|
if (el.routes)
|
|
17855
16648
|
router2(url2, el, {}, { initialRender: true });
|
|
17856
16649
|
};
|
|
17857
|
-
const hasRenderRouter = element.on && !(0,
|
|
16650
|
+
const hasRenderRouter = element.on && !(0, import_utils17.isUndefined)(element.on.renderRouter);
|
|
17858
16651
|
if (routerOptions && routerOptions.initRouter && !hasRenderRouter) {
|
|
17859
16652
|
if (element.on) {
|
|
17860
16653
|
element.on.renderRouter = onRouterRenderDefault;
|
|
@@ -17876,21 +16669,21 @@ var popStateRouter = (element, options) => {
|
|
|
17876
16669
|
if (!routerOptions.popState)
|
|
17877
16670
|
return;
|
|
17878
16671
|
const router2 = options.snippets && options.snippets.router ? options.snippets.router : import_router2.router;
|
|
17879
|
-
|
|
17880
|
-
const { pathname, hash: hash2 } =
|
|
16672
|
+
import_utils17.window.onpopstate = (e) => {
|
|
16673
|
+
const { pathname, hash: hash2 } = import_utils17.window.location;
|
|
17881
16674
|
const url2 = pathname + hash2;
|
|
17882
16675
|
router2(url2, element, {}, { pushState: false, scrollToTop: false, level: 0 });
|
|
17883
16676
|
};
|
|
17884
16677
|
};
|
|
17885
16678
|
var injectRouterInLinkComponent = (routerOptions) => {
|
|
17886
16679
|
if (routerOptions && routerOptions.injectRouterInLinkComponent) {
|
|
17887
|
-
return (0,
|
|
16680
|
+
return (0, import_utils17.deepMerge)(Link, RouterLink);
|
|
17888
16681
|
}
|
|
17889
16682
|
};
|
|
17890
16683
|
|
|
17891
16684
|
// src/ferchOnCreate.js
|
|
17892
|
-
var
|
|
17893
|
-
var import_fetch = __toESM(
|
|
16685
|
+
var import_utils18 = __toESM(require_cjs(), 1);
|
|
16686
|
+
var import_fetch = __toESM(require_cjs12(), 1);
|
|
17894
16687
|
var fetchSync = async (key, options) => {
|
|
17895
16688
|
if (key && options.editor) {
|
|
17896
16689
|
try {
|
|
@@ -17905,10 +16698,10 @@ var fetchAsync = (app, key, options, callback) => {
|
|
|
17905
16698
|
if (key && options.editor) {
|
|
17906
16699
|
try {
|
|
17907
16700
|
const defaultCallback = (data) => {
|
|
17908
|
-
if ((0,
|
|
16701
|
+
if ((0, import_utils18.isObject)(data.designsystem)) {
|
|
17909
16702
|
options.utils.init(data.designsystem);
|
|
17910
16703
|
}
|
|
17911
|
-
if ((0,
|
|
16704
|
+
if ((0, import_utils18.isObject)(data.state)) {
|
|
17912
16705
|
app.state.set(data.state);
|
|
17913
16706
|
}
|
|
17914
16707
|
};
|
|
@@ -17921,10 +16714,10 @@ var fetchAsync = (app, key, options, callback) => {
|
|
|
17921
16714
|
};
|
|
17922
16715
|
|
|
17923
16716
|
// ../../node_modules/@domql/emotion/index.js
|
|
17924
|
-
var
|
|
16717
|
+
var import_utils20 = __toESM(require_cjs());
|
|
17925
16718
|
|
|
17926
16719
|
// ../../node_modules/@domql/classlist/index.js
|
|
17927
|
-
var
|
|
16720
|
+
var import_utils19 = __toESM(require_cjs());
|
|
17928
16721
|
var classify = (obj, element) => {
|
|
17929
16722
|
let className = "";
|
|
17930
16723
|
for (const item in obj) {
|
|
@@ -17934,7 +16727,7 @@ var classify = (obj, element) => {
|
|
|
17934
16727
|
else if (typeof param === "string")
|
|
17935
16728
|
className += ` ${param}`;
|
|
17936
16729
|
else if (typeof param === "function") {
|
|
17937
|
-
className += ` ${(0,
|
|
16730
|
+
className += ` ${(0, import_utils19.exec)(param, element)}`;
|
|
17938
16731
|
}
|
|
17939
16732
|
}
|
|
17940
16733
|
return className;
|
|
@@ -17945,9 +16738,9 @@ var classList = (params, element) => {
|
|
|
17945
16738
|
const { key } = element;
|
|
17946
16739
|
if (params === true)
|
|
17947
16740
|
params = element.class = { key };
|
|
17948
|
-
if ((0,
|
|
16741
|
+
if ((0, import_utils19.isString)(params))
|
|
17949
16742
|
params = element.class = { default: params };
|
|
17950
|
-
if ((0,
|
|
16743
|
+
if ((0, import_utils19.isObject)(params))
|
|
17951
16744
|
params = classify(params, element);
|
|
17952
16745
|
const className = params.replace(/\s+/g, " ").trim();
|
|
17953
16746
|
if (element.ref)
|
|
@@ -17963,9 +16756,9 @@ var applyClassListOnNode = (params, element, node2) => {
|
|
|
17963
16756
|
// ../../node_modules/@domql/emotion/index.js
|
|
17964
16757
|
var transformEmotionStyle = (emotion2) => {
|
|
17965
16758
|
return (params, element, state) => {
|
|
17966
|
-
const execParams = (0,
|
|
16759
|
+
const execParams = (0, import_utils20.exec)(params, element);
|
|
17967
16760
|
if (params) {
|
|
17968
|
-
if ((0,
|
|
16761
|
+
if ((0, import_utils20.isObjectLike)(element.class))
|
|
17969
16762
|
element.class.elementStyle = execParams;
|
|
17970
16763
|
else
|
|
17971
16764
|
element.class = { elementStyle: execParams };
|
|
@@ -17979,18 +16772,18 @@ var transformEmotionClass = (emotion2) => {
|
|
|
17979
16772
|
return;
|
|
17980
16773
|
const { __ref } = element;
|
|
17981
16774
|
const { __class, __classNames } = __ref;
|
|
17982
|
-
if (!(0,
|
|
16775
|
+
if (!(0, import_utils20.isObjectLike)(params))
|
|
17983
16776
|
return;
|
|
17984
16777
|
for (const key in params) {
|
|
17985
|
-
const prop = (0,
|
|
16778
|
+
const prop = (0, import_utils20.exec)(params[key], element);
|
|
17986
16779
|
if (!prop) {
|
|
17987
16780
|
delete __class[key];
|
|
17988
16781
|
delete __classNames[key];
|
|
17989
16782
|
continue;
|
|
17990
16783
|
}
|
|
17991
|
-
const isEqual = (0,
|
|
16784
|
+
const isEqual = (0, import_utils20.isEqualDeep)(__class[key], prop);
|
|
17992
16785
|
if (!isEqual) {
|
|
17993
|
-
if (!(0,
|
|
16786
|
+
if (!(0, import_utils20.isProduction)() && (0, import_utils20.isObject)(prop))
|
|
17994
16787
|
prop.label = key || element.key;
|
|
17995
16788
|
const CSSed = emotion2.css(prop);
|
|
17996
16789
|
__class[key] = prop;
|
|
@@ -18010,7 +16803,7 @@ var transformDOMQLEmotion = (emotion2, options) => {
|
|
|
18010
16803
|
};
|
|
18011
16804
|
|
|
18012
16805
|
// src/initEmotion.js
|
|
18013
|
-
var
|
|
16806
|
+
var import_utils21 = __toESM(require_cjs(), 1);
|
|
18014
16807
|
|
|
18015
16808
|
// src/options.js
|
|
18016
16809
|
var DESIGN_SYSTEM_OPTIONS = {
|
|
@@ -18100,7 +16893,9 @@ var COLOR = {
|
|
|
18100
16893
|
gray2: "#A3A3A8",
|
|
18101
16894
|
gray3: "#1C1C1F",
|
|
18102
16895
|
gray4: "#BDBDC1",
|
|
18103
|
-
title: ["--
|
|
16896
|
+
title: ["--black", "--white"],
|
|
16897
|
+
caption: ["--gray2", "--gray4"],
|
|
16898
|
+
paragraph: ["--gray2", "--white"]
|
|
18104
16899
|
};
|
|
18105
16900
|
var GRADIENT = {
|
|
18106
16901
|
"gradient-blue-light": `linear-gradient(to right,
|
|
@@ -18337,7 +17132,7 @@ var THEME = {
|
|
|
18337
17132
|
// ../default-config/src/typography.js
|
|
18338
17133
|
var TYPOGRAPHY = {
|
|
18339
17134
|
base: 16,
|
|
18340
|
-
ratio: 1.
|
|
17135
|
+
ratio: 1.25,
|
|
18341
17136
|
subSequence: true,
|
|
18342
17137
|
templates: {}
|
|
18343
17138
|
};
|
|
@@ -18350,7 +17145,11 @@ var SPACING = {
|
|
|
18350
17145
|
};
|
|
18351
17146
|
|
|
18352
17147
|
// ../default-config/src/font.js
|
|
18353
|
-
var FONT = {
|
|
17148
|
+
var FONT = {
|
|
17149
|
+
SourceSans: [{
|
|
17150
|
+
url: ""
|
|
17151
|
+
}]
|
|
17152
|
+
};
|
|
18354
17153
|
var FONT_FAMILY = {
|
|
18355
17154
|
system: {
|
|
18356
17155
|
value: ['"Helvetica Neue"', "Helvetica", "Arial"],
|
|
@@ -18401,8 +17200,8 @@ var initEmotion = (key, options = {}) => {
|
|
|
18401
17200
|
if (!initOptions.emotion)
|
|
18402
17201
|
initOptions.emotion = emotion;
|
|
18403
17202
|
const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
|
|
18404
|
-
const defaultDesignSystem = (0,
|
|
18405
|
-
const designSystem = initOptions.useDefaultConfig ? (0,
|
|
17203
|
+
const defaultDesignSystem = (0, import_utils21.deepClone)(src_default);
|
|
17204
|
+
const designSystem = initOptions.useDefaultConfig ? (0, import_utils21.deepMerge)(options.designSystem, defaultDesignSystem) : options.designSystem || defaultDesignSystem;
|
|
18406
17205
|
const scratchSystem2 = init(designSystem, {
|
|
18407
17206
|
key,
|
|
18408
17207
|
emotion: emotion2,
|
|
@@ -18415,12 +17214,12 @@ var initEmotion = (key, options = {}) => {
|
|
|
18415
17214
|
};
|
|
18416
17215
|
|
|
18417
17216
|
// ../socket-ui/byld-socket.js
|
|
18418
|
-
var import_router3 = __toESM(
|
|
18419
|
-
var import_scratch14 = __toESM(
|
|
17217
|
+
var import_router3 = __toESM(require_cjs10());
|
|
17218
|
+
var import_scratch14 = __toESM(require_cjs9());
|
|
18420
17219
|
|
|
18421
17220
|
// ../socket/client.js
|
|
18422
17221
|
var utils = __toESM(require_cjs(), 1);
|
|
18423
|
-
var globals = __toESM(
|
|
17222
|
+
var globals = __toESM(require_cjs11(), 1);
|
|
18424
17223
|
|
|
18425
17224
|
// ../../node_modules/engine.io-parser/build/esm/commons.js
|
|
18426
17225
|
var PACKET_TYPES = /* @__PURE__ */ Object.create(null);
|
|
@@ -21819,10 +20618,10 @@ function send(event = "change", changes, options) {
|
|
|
21819
20618
|
}
|
|
21820
20619
|
|
|
21821
20620
|
// ../socket-ui/byld-socket.js
|
|
21822
|
-
var import_globals = __toESM(
|
|
20621
|
+
var import_globals = __toESM(require_cjs11());
|
|
21823
20622
|
|
|
21824
20623
|
// ../socket-ui/devFocus.js
|
|
21825
|
-
var
|
|
20624
|
+
var import_utils22 = __toESM(require_cjs());
|
|
21826
20625
|
var DevFocus = {
|
|
21827
20626
|
props: {
|
|
21828
20627
|
".preventSelect": {
|
|
@@ -21876,7 +20675,7 @@ var DevFocus = {
|
|
|
21876
20675
|
on: {
|
|
21877
20676
|
init: ({ context }) => {
|
|
21878
20677
|
const { components } = context;
|
|
21879
|
-
if ((0,
|
|
20678
|
+
if ((0, import_utils22.isObject)(components)) {
|
|
21880
20679
|
const { Content, ...rest } = components;
|
|
21881
20680
|
for (const key in rest) {
|
|
21882
20681
|
if (uikit_exports[key])
|
|
@@ -21959,6 +20758,36 @@ var inspectOnKey = (app) => {
|
|
|
21959
20758
|
|
|
21960
20759
|
// ../socket-ui/byld-socket.js
|
|
21961
20760
|
var isLocalhost = import_globals.window && import_globals.window.location && import_globals.window.location.host.includes("local");
|
|
20761
|
+
var ANIMATION = {
|
|
20762
|
+
fadeInUp: {
|
|
20763
|
+
from: {
|
|
20764
|
+
transform: "translate3d(0, 12.5%, 1px)",
|
|
20765
|
+
opacity: 0
|
|
20766
|
+
},
|
|
20767
|
+
to: {
|
|
20768
|
+
transform: "translate3d(0, 0, 1px)",
|
|
20769
|
+
opacity: 1
|
|
20770
|
+
}
|
|
20771
|
+
},
|
|
20772
|
+
fadeOutDown: {
|
|
20773
|
+
from: {
|
|
20774
|
+
transform: "translate3d(0, 0, 1px)",
|
|
20775
|
+
opacity: 1
|
|
20776
|
+
},
|
|
20777
|
+
to: {
|
|
20778
|
+
transform: "translate3d(0, 12.5%, 1px)",
|
|
20779
|
+
opacity: 0
|
|
20780
|
+
}
|
|
20781
|
+
}
|
|
20782
|
+
};
|
|
20783
|
+
var COLOR2 = {
|
|
20784
|
+
black: "#000000",
|
|
20785
|
+
blue: "#3686F7"
|
|
20786
|
+
};
|
|
20787
|
+
(0, import_scratch14.set)({
|
|
20788
|
+
COLOR: COLOR2,
|
|
20789
|
+
ANIMATION
|
|
20790
|
+
});
|
|
21962
20791
|
var connectedToSymbols = (clients, element, state) => {
|
|
21963
20792
|
if (clients.symbols) {
|
|
21964
20793
|
if (!state.connected) {
|
|
@@ -22068,15 +20897,15 @@ var Sync = {
|
|
|
22068
20897
|
};
|
|
22069
20898
|
|
|
22070
20899
|
// src/syncExtend.js
|
|
22071
|
-
var
|
|
20900
|
+
var import_utils23 = __toESM(require_cjs(), 1);
|
|
22072
20901
|
var applySyncDebug = (extend, options) => {
|
|
22073
20902
|
const { editor } = options;
|
|
22074
20903
|
if (!editor)
|
|
22075
20904
|
return extend;
|
|
22076
|
-
const inspect = (0,
|
|
20905
|
+
const inspect = (0, import_utils23.isUndefined)(editor.inspect) ? (0, import_utils23.isDevelopment)() : editor.inspect;
|
|
22077
20906
|
if (inspect)
|
|
22078
20907
|
extend.push(DevFocus);
|
|
22079
|
-
const liveSync = (0,
|
|
20908
|
+
const liveSync = (0, import_utils23.isUndefined)(editor.liveSync) ? (0, import_utils23.isDevelopment)() : editor.liveSync;
|
|
22080
20909
|
if (liveSync)
|
|
22081
20910
|
extend.push(Sync);
|
|
22082
20911
|
return extend;
|
|
@@ -22085,15 +20914,15 @@ var applyInspectListener = (root, options) => {
|
|
|
22085
20914
|
const { editor } = options;
|
|
22086
20915
|
if (!editor)
|
|
22087
20916
|
return;
|
|
22088
|
-
const inspect = (0,
|
|
20917
|
+
const inspect = (0, import_utils23.isUndefined)(editor.inspect) ? (0, import_utils23.isDevelopment)() : editor.inspect;
|
|
22089
20918
|
if (inspect)
|
|
22090
20919
|
inspectOnKey(root);
|
|
22091
20920
|
};
|
|
22092
20921
|
|
|
22093
20922
|
// src/prepare.js
|
|
22094
|
-
var
|
|
20923
|
+
var import_utils24 = __toESM(require_cjs(), 1);
|
|
22095
20924
|
var checkIfKeyIsComponent = (key) => {
|
|
22096
|
-
const isFirstKeyString = (0,
|
|
20925
|
+
const isFirstKeyString = (0, import_utils24.isString)(key);
|
|
22097
20926
|
if (!isFirstKeyString)
|
|
22098
20927
|
return;
|
|
22099
20928
|
const firstCharKey = key.slice(0, 1);
|
|
@@ -22127,8 +20956,8 @@ var prepareState = (options, App) => {
|
|
|
22127
20956
|
if (options.state)
|
|
22128
20957
|
utilImports_exports.deepMerge(state, options.state);
|
|
22129
20958
|
if (App && App.state)
|
|
22130
|
-
(0,
|
|
22131
|
-
return (0,
|
|
20959
|
+
(0, import_utils24.deepMerge)(state, App.state);
|
|
20960
|
+
return (0, import_utils24.deepCloneWithExtnd)(state);
|
|
22132
20961
|
};
|
|
22133
20962
|
var preparePages = (options) => {
|
|
22134
20963
|
return options.pages || {};
|
|
@@ -22147,11 +20976,11 @@ var prepareDocument = (options) => {
|
|
|
22147
20976
|
// src/index.js
|
|
22148
20977
|
var SYMBOLS_KEY = process.env.SYMBOLS_KEY;
|
|
22149
20978
|
var mergeWithLocalFile2 = (options, optionsExternalFile) => {
|
|
22150
|
-
const rcfile = (0,
|
|
22151
|
-
return (0,
|
|
20979
|
+
const rcfile = (0, import_utils25.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {};
|
|
20980
|
+
return (0, import_utils25.deepMerge)(options, rcfile);
|
|
22152
20981
|
};
|
|
22153
20982
|
var create = async (App, options = options_default, optionsExternalFile) => {
|
|
22154
|
-
const appIsKey = (0,
|
|
20983
|
+
const appIsKey = (0, import_utils25.isString)(App);
|
|
22155
20984
|
options = { ...options_default, ...mergeWithLocalFile2(options, optionsExternalFile) };
|
|
22156
20985
|
const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
|
|
22157
20986
|
if (appIsKey)
|
|
@@ -22201,7 +21030,7 @@ var create = async (App, options = options_default, optionsExternalFile) => {
|
|
|
22201
21030
|
return domqlApp;
|
|
22202
21031
|
};
|
|
22203
21032
|
var createSync = (App, options = options_default, optionsExternalFile) => {
|
|
22204
|
-
const appIsKey = (0,
|
|
21033
|
+
const appIsKey = (0, import_utils25.isString)(App);
|
|
22205
21034
|
options = mergeWithLocalFile2(options, optionsExternalFile);
|
|
22206
21035
|
const key = options.key || SYMBOLS_KEY || (appIsKey ? App : "");
|
|
22207
21036
|
if (appIsKey)
|