@design-edito/tools 0.2.35 → 0.2.37

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.
Files changed (149) hide show
  1. package/agnostic/arrays/index.js +4 -4
  2. package/agnostic/colors/index.js +10 -10
  3. package/agnostic/css/index.js +5 -5
  4. package/agnostic/css/styles-set/index.js +3 -3
  5. package/agnostic/html/hyper-json/cast/index.js +4 -4
  6. package/agnostic/html/hyper-json/index.js +5 -5
  7. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +4 -4
  8. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +4 -4
  9. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +4 -4
  10. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +4 -4
  11. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +4 -4
  12. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +4 -4
  13. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +4 -4
  14. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +4 -4
  15. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +4 -4
  16. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +4 -4
  17. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +4 -4
  18. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +4 -4
  19. package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +4 -4
  20. package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +4 -4
  21. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +4 -4
  22. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +4 -4
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +4 -4
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +4 -4
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +4 -4
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +4 -4
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +4 -4
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +4 -4
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +4 -4
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +4 -4
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +4 -4
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +4 -4
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +4 -4
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +4 -4
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +4 -4
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +4 -4
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +4 -4
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +4 -4
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +4 -4
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +4 -4
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +4 -4
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.d.ts +4 -1
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +6 -4
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +4 -4
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +4 -4
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +4 -4
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +4 -4
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +4 -4
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +4 -4
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +4 -4
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +4 -4
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +4 -4
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +4 -4
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +4 -4
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +4 -4
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +4 -4
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +4 -4
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +4 -4
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +4 -4
  60. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +4 -4
  61. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +4 -4
  62. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +4 -4
  63. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +4 -4
  64. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +4 -4
  65. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +4 -4
  66. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +4 -4
  67. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +4 -4
  68. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +4 -4
  69. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +4 -4
  70. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +4 -4
  71. package/agnostic/html/hyper-json/tree/index.js +4 -4
  72. package/agnostic/html/hyper-json/utils/index.js +4 -4
  73. package/agnostic/html/index.js +9 -9
  74. package/agnostic/index.js +43 -43
  75. package/agnostic/misc/index.js +11 -11
  76. package/agnostic/misc/lorem-ipsum/index.js +7 -7
  77. package/agnostic/numbers/index.js +2 -2
  78. package/agnostic/objects/index.js +4 -4
  79. package/agnostic/optim/index.js +2 -2
  80. package/agnostic/random/index.js +2 -2
  81. package/agnostic/strings/index.js +3 -3
  82. package/agnostic/time/index.js +3 -3
  83. package/chunks/{chunk-DZIL3PKQ.js → chunk-63J76ST6.js} +2 -2
  84. package/chunks/{chunk-YRGB7BKW.js → chunk-7NLDR53D.js} +1 -1
  85. package/chunks/{chunk-ALNOBFBI.js → chunk-ALFP7OQ3.js} +3 -3
  86. package/chunks/{chunk-22TZQ2Y3.js → chunk-BPYICFMX.js} +1 -1
  87. package/chunks/{chunk-RQIUCX5W.js → chunk-FNGETPCZ.js} +9 -9
  88. package/chunks/{chunk-A3EVZT6I.js → chunk-GXOIVZUI.js} +17 -17
  89. package/chunks/{chunk-3QNQZCIQ.js → chunk-NGIZKJDJ.js} +131 -17
  90. package/chunks/{chunk-KAPF3NFM.js → chunk-NUPAV2JX.js} +4 -4
  91. package/chunks/{chunk-JZADBXY6.js → chunk-OYDCT5KK.js} +4 -4
  92. package/chunks/{chunk-FUWQGDED.js → chunk-TAUQZCR6.js} +9 -9
  93. package/chunks/{chunk-GIPEJSLA.js → chunk-TGDJWP5U.js} +2 -2
  94. package/chunks/{chunk-STW5RKR7.js → chunk-U4ORVPZC.js} +1 -1
  95. package/chunks/{chunk-DNVXXILZ.js → chunk-V3NHCEO5.js} +5 -5
  96. package/chunks/{chunk-AJJ6HJJP.js → chunk-WJBQ2BO4.js} +1 -1
  97. package/chunks/{chunk-IKZEALBM.js → chunk-YFBIPMXD.js} +1 -1
  98. package/chunks/{chunk-OBOXISER.js → chunk-YRZFKMR4.js} +4 -4
  99. package/node/@aws-s3/index.js +10 -10
  100. package/node/@aws-s3/storage/directory/index.js +5 -5
  101. package/node/@aws-s3/storage/file/index.js +10 -10
  102. package/node/@aws-s3/storage/index.js +9 -9
  103. package/node/@google-cloud/index.js +14 -14
  104. package/node/@google-cloud/storage/bucket/index.js +4 -4
  105. package/node/@google-cloud/storage/directory/index.js +5 -5
  106. package/node/@google-cloud/storage/file/index.js +18 -18
  107. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +2 -2
  108. package/node/@google-cloud/storage/index.js +13 -13
  109. package/node/cloud-storage/index.js +33 -33
  110. package/node/cloud-storage/operations/index.js +44 -44
  111. package/node/files/index.js +2 -2
  112. package/node/ftps/directory/index.js +5 -5
  113. package/node/ftps/file/index.js +10 -10
  114. package/node/ftps/index.js +11 -11
  115. package/node/images/create/index.js +4 -4
  116. package/node/images/format/index.js +4 -4
  117. package/node/images/index.js +15 -15
  118. package/node/images/metadata/index.js +4 -4
  119. package/node/images/transform/index.js +11 -11
  120. package/node/images/transform/operations/extend/index.js +4 -4
  121. package/node/images/transform/operations/flatten/index.js +4 -4
  122. package/node/images/transform/operations/overlay/index.js +4 -4
  123. package/node/images/transform/operations/resize/index.js +4 -4
  124. package/node/images/transform/operations/rotate/index.js +4 -4
  125. package/node/images/utils/index.js +4 -4
  126. package/node/index.js +77 -77
  127. package/node/sftp/directory/index.js +5 -5
  128. package/node/sftp/file/index.js +10 -10
  129. package/node/sftp/index.js +11 -11
  130. package/package.json +1 -1
  131. package/chunks/{chunk-KVZLVTMX.js → chunk-5ZPVE6NR.js} +9 -9
  132. package/chunks/{chunk-XWNINAUS.js → chunk-6UXES4W7.js} +9 -9
  133. package/chunks/{chunk-CMAS4BKV.js → chunk-6YQGM6N6.js} +3 -3
  134. package/chunks/{chunk-SABB7UCL.js → chunk-73UGWJYI.js} +8 -8
  135. package/chunks/{chunk-26T64AEI.js → chunk-CKENYYWH.js} +4 -4
  136. package/chunks/{chunk-G2SCEXXK.js → chunk-DFDH7MGI.js} +20 -20
  137. package/chunks/{chunk-MV473S2C.js → chunk-EZ22Z22X.js} +4 -4
  138. package/chunks/{chunk-4NP5VB4R.js → chunk-FLE22O3O.js} +18 -18
  139. package/chunks/{chunk-PUMFAJ3M.js → chunk-GYEO7JZV.js} +9 -9
  140. package/chunks/{chunk-HDIB7EXM.js → chunk-LGBQWEXH.js} +9 -9
  141. package/chunks/{chunk-ZUOQTT7I.js → chunk-NK62JYTD.js} +8 -8
  142. package/chunks/{chunk-S32K7POB.js → chunk-OVG5RGI3.js} +4 -4
  143. package/chunks/{chunk-HYUALSEP.js → chunk-QHAB6XYD.js} +3 -3
  144. package/chunks/{chunk-KWQ4K4GN.js → chunk-QTF7LWGT.js} +4 -4
  145. package/chunks/{chunk-G5RRNREY.js → chunk-S4VO4PFZ.js} +3 -3
  146. package/chunks/{chunk-UXEKCYL7.js → chunk-UEAMPAHK.js} +3 -3
  147. package/chunks/{chunk-UKD6DFES.js → chunk-WOYF3N4A.js} +3 -3
  148. package/chunks/{chunk-73SQU3NQ.js → chunk-XPPOIKJL.js} +6 -6
  149. package/chunks/{chunk-N4JGLSGA.js → chunk-ZH3QMMVD.js} +4 -4
@@ -1,39 +1,39 @@
1
1
  import {
2
- generate_signed_url_exports
3
- } from "./chunk-PAIUCLVK.js";
2
+ get_permissions_exports
3
+ } from "./chunk-YKPA3MQL.js";
4
4
  import {
5
- get_metadata_exports
6
- } from "./chunk-42K3MQQ5.js";
5
+ revoke_signed_urls_exports
6
+ } from "./chunk-S4VO4PFZ.js";
7
7
  import {
8
8
  update_metadata_exports
9
9
  } from "./chunk-HWVEI3RH.js";
10
10
  import {
11
- revoke_signed_urls_exports
12
- } from "./chunk-G5RRNREY.js";
13
- import {
14
- get_permissions_exports
15
- } from "./chunk-YKPA3MQL.js";
16
- import {
17
- copy_exports
18
- } from "./chunk-CWZFRUBS.js";
19
- import {
20
- remove_exports
21
- } from "./chunk-7J7CYOXU.js";
11
+ generate_signed_url_exports
12
+ } from "./chunk-PAIUCLVK.js";
22
13
  import {
23
- move_exports
24
- } from "./chunk-6IYUA43Q.js";
14
+ get_metadata_exports
15
+ } from "./chunk-42K3MQQ5.js";
25
16
  import {
26
17
  stat_exports
27
18
  } from "./chunk-W3RXHN5I.js";
28
19
  import {
29
20
  upload_exports
30
21
  } from "./chunk-FB3GNE2B.js";
22
+ import {
23
+ remove_exports
24
+ } from "./chunk-7J7CYOXU.js";
25
+ import {
26
+ copy_exports
27
+ } from "./chunk-CWZFRUBS.js";
31
28
  import {
32
29
  download_exports
33
30
  } from "./chunk-2JH4TCT2.js";
34
31
  import {
35
32
  exists_exports
36
33
  } from "./chunk-5VHFXWFM.js";
34
+ import {
35
+ move_exports
36
+ } from "./chunk-6IYUA43Q.js";
37
37
  import {
38
38
  __export
39
39
  } from "./chunk-WSFCRVEQ.js";
@@ -1,12 +1,12 @@
1
- import {
2
- nullFunc
3
- } from "./chunk-QAVYONH6.js";
4
1
  import {
5
2
  array
6
3
  } from "./chunk-QAQZEKIF.js";
7
4
  import {
8
5
  any
9
6
  } from "./chunk-FHLCPVND.js";
7
+ import {
8
+ nullFunc
9
+ } from "./chunk-QAVYONH6.js";
10
10
  import {
11
11
  Serialize
12
12
  } from "./chunk-SXRWMH3U.js";
@@ -25,9 +25,6 @@ import {
25
25
  import {
26
26
  insertNode
27
27
  } from "./chunk-XA4HVHJ4.js";
28
- import {
29
- recordMap
30
- } from "./chunk-XNF5MLCQ.js";
31
28
  import {
32
29
  isInEnum
33
30
  } from "./chunk-E6MSDKON.js";
@@ -35,15 +32,18 @@ import {
35
32
  isRecord
36
33
  } from "./chunk-YDIBNEGA.js";
37
34
  import {
38
- trimEnd,
39
- trimStart
40
- } from "./chunk-6XL25OZX.js";
35
+ recordMap
36
+ } from "./chunk-XNF5MLCQ.js";
41
37
  import {
42
38
  replaceAll
43
39
  } from "./chunk-ZTDVUXPR.js";
44
40
  import {
45
41
  Outcome
46
42
  } from "./chunk-JMU5PDBD.js";
43
+ import {
44
+ trimEnd,
45
+ trimStart
46
+ } from "./chunk-6XL25OZX.js";
47
47
  import {
48
48
  isNonNullObject
49
49
  } from "./chunk-HQLRJ7XW.js";
@@ -1335,7 +1335,18 @@ var setproperty = SmartTags.makeSmartTag({
1335
1335
  name: "setproperty",
1336
1336
  defaultMode: "coalescion",
1337
1337
  isolationInitType: "array",
1338
- mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "record"),
1338
+ mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(
1339
+ m,
1340
+ "string",
1341
+ "number",
1342
+ "boolean",
1343
+ "null",
1344
+ "text",
1345
+ "element",
1346
+ "nodelist",
1347
+ "record",
1348
+ "array"
1349
+ ),
1339
1350
  argsValueCheck: (a) => {
1340
1351
  const { makeFailure, makeSuccess } = Outcome;
1341
1352
  const { makeArgsValueError } = Utils.SmartTags;
@@ -1364,18 +1375,120 @@ var setproperty = SmartTags.makeSmartTag({
1364
1375
  }
1365
1376
  }
1366
1377
  });
1367
- function deepSetProperty(record2, pathString, value) {
1378
+ function deepSetProperty(input, pathString, value) {
1368
1379
  const pathChunks = pathString.split(".");
1369
- const clone2 = Utils.clone(record2);
1370
- let currentRecord = clone2;
1380
+ let clone2 = Utils.clone(input);
1381
+ let currentItemParent = void 0;
1382
+ let currentItemPathFromParent = void 0;
1383
+ let currentItem = clone2;
1384
+ const { Text: Text2, Element: Element2, NodeList: NodeList2, document } = Window.get();
1371
1385
  pathChunks.forEach((chunk, pos) => {
1372
1386
  const isLast = pos === pathChunks.length - 1;
1387
+ const numChunk = parseInt(chunk);
1373
1388
  if (isLast) {
1374
- currentRecord[chunk] = value;
1389
+ if (typeof currentItem === "number" || typeof currentItem === "boolean" || currentItem === null || currentItem instanceof Method) throw `DEAD_END: Cannot set properties on a string, number, boolean, null or Method item`;
1390
+ else if (typeof currentItem === "string") {
1391
+ if (currentItemParent !== void 0 && currentItemPathFromParent === void 0) throw `INVALID_PROP: Could not access item's child at ${currentItemPathFromParent} found at pos ${pos - 1} in path ${pathChunks.join(".")}`;
1392
+ if (Number.isNaN(numChunk) || numChunk < 0 || numChunk > currentItem.length) throw `INVALID_PROP: Could not access item's child at ${numChunk} found at pos ${pos} in path ${pathChunks.join(".")}`;
1393
+ const newString = currentItem.slice(0, numChunk) + Cast.toString(value) + currentItem.slice(numChunk + 1);
1394
+ if (currentItemParent === void 0) {
1395
+ clone2 = newString;
1396
+ }
1397
+ if (Array.isArray(currentItemParent)) {
1398
+ if (typeof currentItemPathFromParent !== "number") throw `IMPOSSIBLE_OPERATION: non-number path from an Array parent, this is a bug`;
1399
+ currentItemParent[currentItemPathFromParent] = newString;
1400
+ } else if (isRecord(currentItemParent)) {
1401
+ if (typeof currentItemPathFromParent !== "string") throw `IMPOSSIBLE_OPERATION: non-string path from an Record parent, this is a bug`;
1402
+ currentItemParent[currentItemPathFromParent] = newString;
1403
+ } else throw `IMPOSSIBLE_OPERATION: a string item should not be a child of anything else than Array or Record, cannot mutate. At ${currentItemPathFromParent} found at pos ${pos - 1} in path ${pathChunks.join(".")}`;
1404
+ } else if (Array.isArray(currentItem)) {
1405
+ if (Number.isNaN(numChunk) || numChunk < 0 || numChunk > currentItem.length) throw `INVALID_PROP: Could not access item's child at ${numChunk} found at pos ${pos} in path ${pathChunks.join(".")}`;
1406
+ if (numChunk === currentItem.length) currentItem.push(Utils.clone(value));
1407
+ else {
1408
+ currentItem[numChunk] = Utils.clone(value);
1409
+ }
1410
+ } else if (currentItem instanceof Text2) {
1411
+ const currContent = currentItem.textContent;
1412
+ if (Number.isNaN(numChunk) || numChunk < 0 || numChunk > currContent.length) throw `INVALID_PROP: Could not access item's child at ${numChunk} found at pos ${pos} in path ${pathChunks.join(".")}`;
1413
+ const newContent = [
1414
+ ...currContent.slice(0, numChunk),
1415
+ ...Cast.toString(value),
1416
+ ...currContent.slice(numChunk)
1417
+ ].join("");
1418
+ currentItem.textContent = newContent;
1419
+ } else if (currentItem instanceof Element2) {
1420
+ const currChildren = Array.from(currentItem.childNodes).filter((e) => e instanceof Text2 || e instanceof Element2);
1421
+ if (Number.isNaN(numChunk) || numChunk < 0 || numChunk > currChildren.length) throw `INVALID_PROP: Could not access item's child at ${numChunk} found at pos ${pos} in path ${pathChunks.join(".")}`;
1422
+ let newValue;
1423
+ if (value instanceof NodeList2 || value instanceof Element2 || value instanceof Text2) {
1424
+ newValue = Utils.clone(value);
1425
+ } else {
1426
+ newValue = Cast.toText(value);
1427
+ }
1428
+ const newChildren = [...currChildren.slice(0, numChunk)];
1429
+ if (newValue instanceof NodeList2) newChildren.push(...Array.from(newValue));
1430
+ else newChildren.push(newValue);
1431
+ newChildren.push(...currChildren.slice(numChunk + 1));
1432
+ currentItem.textContent = "";
1433
+ currentItem.append(...newChildren);
1434
+ } else if (currentItem instanceof NodeList2) {
1435
+ const currChildren = Array.from(currentItem);
1436
+ if (Number.isNaN(numChunk) || numChunk < 0 || numChunk > currChildren.length) throw `INVALID_PROP: Could not access item's child at ${numChunk} found at pos ${pos} in path ${pathChunks.join(".")}`;
1437
+ let newValue;
1438
+ if (value instanceof NodeList2 || value instanceof Element2 || value instanceof Text2) {
1439
+ newValue = Utils.clone(value);
1440
+ } else {
1441
+ newValue = Cast.toText(value);
1442
+ }
1443
+ const newChildren = [...currChildren.slice(0, numChunk)];
1444
+ if (newValue instanceof NodeList2) newChildren.push(...Array.from(newValue));
1445
+ else newChildren.push(newValue);
1446
+ newChildren.push(...currChildren.slice(numChunk + 1));
1447
+ const newNodelistFragment = document.createDocumentFragment();
1448
+ newNodelistFragment.append(...newChildren);
1449
+ const newNodelist = newNodelistFragment.childNodes;
1450
+ if (currentItemParent === void 0) {
1451
+ clone2 = newNodelist;
1452
+ }
1453
+ if (Array.isArray(currentItemParent)) {
1454
+ if (typeof currentItemPathFromParent !== "number") throw `IMPOSSIBLE_OPERATION: non-number path from an Array parent, this is a bug`;
1455
+ currentItemParent[currentItemPathFromParent] = newNodelist;
1456
+ } else if (isRecord(currentItemParent)) {
1457
+ if (typeof currentItemPathFromParent !== "string") throw `IMPOSSIBLE_OPERATION: non-string path from an Record parent, this is a bug`;
1458
+ currentItemParent[currentItemPathFromParent] = newNodelist;
1459
+ } else throw `IMPOSSIBLE_OPERATION: a Nodelist item should not be a child of anything else than Array or Record, cannot mutate. At ${currentItemPathFromParent} found at pos ${pos - 1} in path ${pathChunks.join(".")}`;
1460
+ } else {
1461
+ currentItem[chunk] = Utils.clone(value);
1462
+ }
1375
1463
  } else {
1376
- const found = currentRecord[chunk];
1377
- if (isRecord(found)) currentRecord = found;
1378
- else throw "NOT_A_RECORD";
1464
+ if (typeof currentItem === "string" || typeof currentItem === "number" || typeof currentItem === "boolean" || currentItem === null || currentItem instanceof Text2 || currentItem instanceof Method) throw `DEAD_END: Cannot go deeper when a string, number, boolean, null, Text or Method item is reached`;
1465
+ if (currentItem instanceof Element2) {
1466
+ const children = Array.from(currentItem.childNodes).filter((e) => e instanceof Text2 || e instanceof Element2);
1467
+ const found = children[numChunk];
1468
+ if (found === void 0) throw `INVALID_PROP: Could not access item's child at ${numChunk} found at pos ${pos} in path ${pathChunks.join(".")}`;
1469
+ currentItemParent = currentItem;
1470
+ currentItemPathFromParent = numChunk;
1471
+ currentItem = found;
1472
+ } else if (currentItem instanceof NodeList2) {
1473
+ const children = Array.from(currentItem);
1474
+ const found = children[numChunk];
1475
+ if (found === void 0) throw `INVALID_PROP: Could not access item's child at ${numChunk} found at pos ${pos} in path ${pathChunks.join(".")}`;
1476
+ currentItemParent = currentItem;
1477
+ currentItemPathFromParent = numChunk;
1478
+ currentItem = found;
1479
+ } else if (Array.isArray(currentItem)) {
1480
+ const found = currentItem[numChunk];
1481
+ if (found === void 0) throw `INVALID_PROP: Could not access item's child at ${numChunk} found at pos ${pos} in path ${pathChunks.join(".")}`;
1482
+ currentItemParent = currentItem;
1483
+ currentItemPathFromParent = numChunk;
1484
+ currentItem = found;
1485
+ } else {
1486
+ const found = currentItem[chunk];
1487
+ if (found === void 0) throw `INVALID_PROP: Could not access item's child at ${chunk} found at pos ${pos} in path ${pathChunks.join(".")}`;
1488
+ currentItemParent = currentItem;
1489
+ currentItemPathFromParent = chunk;
1490
+ currentItem = found;
1491
+ }
1379
1492
  }
1380
1493
  });
1381
1494
  return clone2;
@@ -2540,6 +2653,7 @@ export {
2540
2653
  set,
2541
2654
  setattribute,
2542
2655
  setproperty,
2656
+ deepSetProperty,
2543
2657
  sorton,
2544
2658
  split,
2545
2659
  spread,
@@ -1,9 +1,9 @@
1
- import {
2
- directory_exports
3
- } from "./chunk-KWQ4K4GN.js";
4
1
  import {
5
2
  file_exports
6
- } from "./chunk-HDIB7EXM.js";
3
+ } from "./chunk-LGBQWEXH.js";
4
+ import {
5
+ directory_exports
6
+ } from "./chunk-QTF7LWGT.js";
7
7
  import {
8
8
  __export
9
9
  } from "./chunk-WSFCRVEQ.js";
@@ -1,15 +1,15 @@
1
- import {
2
- format_exports
3
- } from "./chunk-DKITT7OT.js";
4
1
  import {
5
2
  create_exports
6
3
  } from "./chunk-PVRYR5KX.js";
4
+ import {
5
+ format_exports
6
+ } from "./chunk-DKITT7OT.js";
7
7
  import {
8
8
  metadata_exports
9
9
  } from "./chunk-ZLBSI4TR.js";
10
10
  import {
11
11
  transform_exports
12
- } from "./chunk-G2SCEXXK.js";
12
+ } from "./chunk-DFDH7MGI.js";
13
13
  import {
14
14
  types_exports
15
15
  } from "./chunk-FKDPPFHV.js";
@@ -1,27 +1,27 @@
1
+ import {
2
+ Placeholders
3
+ } from "./chunk-VYW4IADX.js";
1
4
  import {
2
5
  getPositionInsideParent
3
6
  } from "./chunk-VTPRO4NJ.js";
4
7
  import {
5
- getNodeAncestors
6
- } from "./chunk-LUPVHC73.js";
7
- import {
8
- Placeholders
9
- } from "./chunk-VYW4IADX.js";
8
+ selectorToElement
9
+ } from "./chunk-SKBOSWM2.js";
10
10
  import {
11
11
  stringToNodes
12
12
  } from "./chunk-ZBBU2P4D.js";
13
13
  import {
14
14
  Sanitize
15
15
  } from "./chunk-XB3EGDBI.js";
16
- import {
17
- selectorToElement
18
- } from "./chunk-SKBOSWM2.js";
19
16
  import {
20
17
  HyperJson
21
- } from "./chunk-22TZQ2Y3.js";
18
+ } from "./chunk-BPYICFMX.js";
22
19
  import {
23
20
  insertNode
24
21
  } from "./chunk-XA4HVHJ4.js";
22
+ import {
23
+ getNodeAncestors
24
+ } from "./chunk-LUPVHC73.js";
25
25
 
26
26
  // src/agnostic/html/index.ts
27
27
  var Html;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  file_exports
3
- } from "./chunk-XWNINAUS.js";
3
+ } from "./chunk-6UXES4W7.js";
4
4
  import {
5
5
  directory_exports
6
- } from "./chunk-N4JGLSGA.js";
6
+ } from "./chunk-ZH3QMMVD.js";
7
7
  import {
8
8
  __export
9
9
  } from "./chunk-WSFCRVEQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Random
3
- } from "./chunk-S32K7POB.js";
3
+ } from "./chunk-OVG5RGI3.js";
4
4
  import {
5
5
  register
6
6
  } from "./chunk-TIER4TF4.js";
@@ -1,6 +1,10 @@
1
1
  import {
2
2
  Bem
3
3
  } from "./chunk-KIONYWA7.js";
4
+ import {
5
+ classNameRegex,
6
+ isValidClassName
7
+ } from "./chunk-W5A2TON3.js";
4
8
  import {
5
9
  generateNiceColor,
6
10
  niceColors
@@ -8,11 +12,7 @@ import {
8
12
  import {
9
13
  StylesSet,
10
14
  StylesSetComp
11
- } from "./chunk-STW5RKR7.js";
12
- import {
13
- classNameRegex,
14
- isValidClassName
15
- } from "./chunk-W5A2TON3.js";
15
+ } from "./chunk-U4ORVPZC.js";
16
16
 
17
17
  // src/agnostic/css/index.ts
18
18
  var Css;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  storage_exports
3
- } from "./chunk-GIPEJSLA.js";
3
+ } from "./chunk-TGDJWP5U.js";
4
4
  import {
5
5
  __export
6
6
  } from "./chunk-WSFCRVEQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  operations_exports
3
- } from "./chunk-4NP5VB4R.js";
3
+ } from "./chunk-FLE22O3O.js";
4
4
  import {
5
5
  clients_exports
6
6
  } from "./chunk-V3GX7SIJ.js";
@@ -1,9 +1,9 @@
1
- import {
2
- file_exports
3
- } from "./chunk-KVZLVTMX.js";
4
1
  import {
5
2
  directory_exports
6
- } from "./chunk-MV473S2C.js";
3
+ } from "./chunk-EZ22Z22X.js";
4
+ import {
5
+ file_exports
6
+ } from "./chunk-5ZPVE6NR.js";
7
7
  import {
8
8
  __export
9
9
  } from "./chunk-WSFCRVEQ.js";
@@ -1,20 +1,20 @@
1
- import "../../chunks/chunk-AJJ6HJJP.js";
1
+ import "../../chunks/chunk-WJBQ2BO4.js";
2
2
  import {
3
3
  storage_exports
4
- } from "../../chunks/chunk-GIPEJSLA.js";
5
- import "../../chunks/chunk-XWNINAUS.js";
6
- import "../../chunks/chunk-N4JGLSGA.js";
7
- import "../../chunks/chunk-C6QTHDDM.js";
8
- import "../../chunks/chunk-WV5N7ESL.js";
9
- import "../../chunks/chunk-QWZ4ZNFA.js";
10
- import "../../chunks/chunk-4XSDRT23.js";
11
- import "../../chunks/chunk-ZSUG52DO.js";
12
- import "../../chunks/chunk-ON6LC3HE.js";
4
+ } from "../../chunks/chunk-TGDJWP5U.js";
5
+ import "../../chunks/chunk-6UXES4W7.js";
6
+ import "../../chunks/chunk-ZH3QMMVD.js";
13
7
  import "../../chunks/chunk-VROZGPC5.js";
14
8
  import "../../chunks/chunk-FD5WR2A5.js";
9
+ import "../../chunks/chunk-WV5N7ESL.js";
15
10
  import "../../chunks/chunk-4XBUJAQU.js";
11
+ import "../../chunks/chunk-C6QTHDDM.js";
16
12
  import "../../chunks/chunk-IV75M3KE.js";
17
13
  import "../../chunks/chunk-ZEZCYPLQ.js";
14
+ import "../../chunks/chunk-QWZ4ZNFA.js";
15
+ import "../../chunks/chunk-ZSUG52DO.js";
16
+ import "../../chunks/chunk-ON6LC3HE.js";
17
+ import "../../chunks/chunk-4XSDRT23.js";
18
18
  import "../../chunks/chunk-JMU5PDBD.js";
19
19
  import "../../chunks/chunk-FENXVJYO.js";
20
20
  import "../../chunks/chunk-WSFCRVEQ.js";
@@ -1,7 +1,7 @@
1
- import "../../../../chunks/chunk-N4JGLSGA.js";
1
+ import "../../../../chunks/chunk-ZH3QMMVD.js";
2
2
  import {
3
- remove_dir_exports
4
- } from "../../../../chunks/chunk-4XSDRT23.js";
3
+ copy_dir_exports
4
+ } from "../../../../chunks/chunk-4XBUJAQU.js";
5
5
  import {
6
6
  list_exports
7
7
  } from "../../../../chunks/chunk-ZSUG52DO.js";
@@ -9,8 +9,8 @@ import {
9
9
  move_dir_exports
10
10
  } from "../../../../chunks/chunk-ON6LC3HE.js";
11
11
  import {
12
- copy_dir_exports
13
- } from "../../../../chunks/chunk-4XBUJAQU.js";
12
+ remove_dir_exports
13
+ } from "../../../../chunks/chunk-4XSDRT23.js";
14
14
  import "../../../../chunks/chunk-JMU5PDBD.js";
15
15
  import "../../../../chunks/chunk-FENXVJYO.js";
16
16
  import "../../../../chunks/chunk-WSFCRVEQ.js";
@@ -1,25 +1,25 @@
1
- import "../../../../chunks/chunk-XWNINAUS.js";
2
- import {
3
- copy_exports
4
- } from "../../../../chunks/chunk-C6QTHDDM.js";
5
- import {
6
- remove_exports
7
- } from "../../../../chunks/chunk-WV5N7ESL.js";
8
- import {
9
- move_exports
10
- } from "../../../../chunks/chunk-QWZ4ZNFA.js";
1
+ import "../../../../chunks/chunk-6UXES4W7.js";
11
2
  import {
12
3
  stat_exports
13
4
  } from "../../../../chunks/chunk-VROZGPC5.js";
14
5
  import {
15
6
  upload_exports
16
7
  } from "../../../../chunks/chunk-FD5WR2A5.js";
8
+ import {
9
+ remove_exports
10
+ } from "../../../../chunks/chunk-WV5N7ESL.js";
11
+ import {
12
+ copy_exports
13
+ } from "../../../../chunks/chunk-C6QTHDDM.js";
17
14
  import {
18
15
  download_exports
19
16
  } from "../../../../chunks/chunk-IV75M3KE.js";
20
17
  import {
21
18
  exists_exports
22
19
  } from "../../../../chunks/chunk-ZEZCYPLQ.js";
20
+ import {
21
+ move_exports
22
+ } from "../../../../chunks/chunk-QWZ4ZNFA.js";
23
23
  import "../../../../chunks/chunk-JMU5PDBD.js";
24
24
  import "../../../../chunks/chunk-FENXVJYO.js";
25
25
  import "../../../../chunks/chunk-WSFCRVEQ.js";
@@ -1,21 +1,21 @@
1
- import "../../../chunks/chunk-GIPEJSLA.js";
1
+ import "../../../chunks/chunk-TGDJWP5U.js";
2
2
  import {
3
3
  file_exports
4
- } from "../../../chunks/chunk-XWNINAUS.js";
4
+ } from "../../../chunks/chunk-6UXES4W7.js";
5
5
  import {
6
6
  directory_exports
7
- } from "../../../chunks/chunk-N4JGLSGA.js";
8
- import "../../../chunks/chunk-C6QTHDDM.js";
9
- import "../../../chunks/chunk-WV5N7ESL.js";
10
- import "../../../chunks/chunk-QWZ4ZNFA.js";
11
- import "../../../chunks/chunk-4XSDRT23.js";
12
- import "../../../chunks/chunk-ZSUG52DO.js";
13
- import "../../../chunks/chunk-ON6LC3HE.js";
7
+ } from "../../../chunks/chunk-ZH3QMMVD.js";
14
8
  import "../../../chunks/chunk-VROZGPC5.js";
15
9
  import "../../../chunks/chunk-FD5WR2A5.js";
10
+ import "../../../chunks/chunk-WV5N7ESL.js";
16
11
  import "../../../chunks/chunk-4XBUJAQU.js";
12
+ import "../../../chunks/chunk-C6QTHDDM.js";
17
13
  import "../../../chunks/chunk-IV75M3KE.js";
18
14
  import "../../../chunks/chunk-ZEZCYPLQ.js";
15
+ import "../../../chunks/chunk-QWZ4ZNFA.js";
16
+ import "../../../chunks/chunk-ZSUG52DO.js";
17
+ import "../../../chunks/chunk-ON6LC3HE.js";
18
+ import "../../../chunks/chunk-4XSDRT23.js";
19
19
  import "../../../chunks/chunk-JMU5PDBD.js";
20
20
  import "../../../chunks/chunk-FENXVJYO.js";
21
21
  import "../../../chunks/chunk-WSFCRVEQ.js";
@@ -1,27 +1,27 @@
1
- import "../../chunks/chunk-YRGB7BKW.js";
1
+ import "../../chunks/chunk-7NLDR53D.js";
2
2
  import {
3
3
  storage_exports
4
- } from "../../chunks/chunk-ALNOBFBI.js";
5
- import "../../chunks/chunk-A3EVZT6I.js";
4
+ } from "../../chunks/chunk-ALFP7OQ3.js";
5
+ import "../../chunks/chunk-GXOIVZUI.js";
6
+ import "../../chunks/chunk-YKPA3MQL.js";
7
+ import "../../chunks/chunk-S4VO4PFZ.js";
8
+ import "../../chunks/chunk-HWVEI3RH.js";
6
9
  import "../../chunks/chunk-PAIUCLVK.js";
7
10
  import "../../chunks/chunk-42K3MQQ5.js";
8
- import "../../chunks/chunk-HWVEI3RH.js";
9
- import "../../chunks/chunk-G5RRNREY.js";
10
- import "../../chunks/chunk-YKPA3MQL.js";
11
- import "../../chunks/chunk-UXEKCYL7.js";
11
+ import "../../chunks/chunk-UEAMPAHK.js";
12
12
  import "../../chunks/chunk-ZNA7SWFK.js";
13
- import "../../chunks/chunk-26T64AEI.js";
14
- import "../../chunks/chunk-CWZFRUBS.js";
15
- import "../../chunks/chunk-7J7CYOXU.js";
16
- import "../../chunks/chunk-6IYUA43Q.js";
17
- import "../../chunks/chunk-QLDN574K.js";
18
- import "../../chunks/chunk-37TRFYZT.js";
19
- import "../../chunks/chunk-BWYH445G.js";
13
+ import "../../chunks/chunk-CKENYYWH.js";
20
14
  import "../../chunks/chunk-W3RXHN5I.js";
21
15
  import "../../chunks/chunk-FB3GNE2B.js";
16
+ import "../../chunks/chunk-7J7CYOXU.js";
22
17
  import "../../chunks/chunk-V3L55I2S.js";
18
+ import "../../chunks/chunk-CWZFRUBS.js";
23
19
  import "../../chunks/chunk-2JH4TCT2.js";
24
20
  import "../../chunks/chunk-5VHFXWFM.js";
21
+ import "../../chunks/chunk-6IYUA43Q.js";
22
+ import "../../chunks/chunk-37TRFYZT.js";
23
+ import "../../chunks/chunk-BWYH445G.js";
24
+ import "../../chunks/chunk-QLDN574K.js";
25
25
  import "../../chunks/chunk-JMU5PDBD.js";
26
26
  import "../../chunks/chunk-FENXVJYO.js";
27
27
  import "../../chunks/chunk-WSFCRVEQ.js";
@@ -1,16 +1,16 @@
1
- import "../../../../chunks/chunk-UXEKCYL7.js";
1
+ import "../../../../chunks/chunk-UEAMPAHK.js";
2
2
  import {
3
3
  get_metadata_exports
4
4
  } from "../../../../chunks/chunk-ZNA7SWFK.js";
5
- import {
6
- remove_dir_exports
7
- } from "../../../../chunks/chunk-QLDN574K.js";
8
5
  import {
9
6
  list_exports
10
7
  } from "../../../../chunks/chunk-37TRFYZT.js";
11
8
  import {
12
9
  move_dir_exports
13
10
  } from "../../../../chunks/chunk-BWYH445G.js";
11
+ import {
12
+ remove_dir_exports
13
+ } from "../../../../chunks/chunk-QLDN574K.js";
14
14
  import "../../../../chunks/chunk-JMU5PDBD.js";
15
15
  import "../../../../chunks/chunk-FENXVJYO.js";
16
16
  import "../../../../chunks/chunk-WSFCRVEQ.js";
@@ -1,7 +1,7 @@
1
- import "../../../../chunks/chunk-26T64AEI.js";
1
+ import "../../../../chunks/chunk-CKENYYWH.js";
2
2
  import {
3
- remove_dir_exports
4
- } from "../../../../chunks/chunk-QLDN574K.js";
3
+ copy_dir_exports
4
+ } from "../../../../chunks/chunk-V3L55I2S.js";
5
5
  import {
6
6
  list_exports
7
7
  } from "../../../../chunks/chunk-37TRFYZT.js";
@@ -9,8 +9,8 @@ import {
9
9
  move_dir_exports
10
10
  } from "../../../../chunks/chunk-BWYH445G.js";
11
11
  import {
12
- copy_dir_exports
13
- } from "../../../../chunks/chunk-V3L55I2S.js";
12
+ remove_dir_exports
13
+ } from "../../../../chunks/chunk-QLDN574K.js";
14
14
  import "../../../../chunks/chunk-JMU5PDBD.js";
15
15
  import "../../../../chunks/chunk-FENXVJYO.js";
16
16
  import "../../../../chunks/chunk-WSFCRVEQ.js";