@design-edito/tools 0.2.37 → 0.2.40

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 (749) hide show
  1. package/agnostic/arrays/dedupe/index.d.ts +7 -0
  2. package/agnostic/arrays/dedupe/index.js +10 -0
  3. package/agnostic/arrays/find-duplicates/index.d.ts +14 -0
  4. package/agnostic/arrays/find-duplicates/index.js +24 -5
  5. package/agnostic/arrays/find-duplicates/index.test.d.ts +1 -0
  6. package/agnostic/arrays/is-array-of/index.d.ts +15 -4
  7. package/agnostic/arrays/is-array-of/index.js +23 -4
  8. package/agnostic/arrays/is-array-of/index.test.d.ts +1 -0
  9. package/agnostic/arrays/make/index.d.ts +8 -0
  10. package/agnostic/arrays/make/index.js +6 -4
  11. package/agnostic/arrays/make/index.test.d.ts +1 -0
  12. package/agnostic/arrays/random-pick/index.d.ts +20 -0
  13. package/agnostic/arrays/random-pick/index.js +2 -10
  14. package/agnostic/arrays/random-pick/index.test.d.ts +1 -0
  15. package/agnostic/arrays/shuffle/index.d.ts +8 -0
  16. package/agnostic/arrays/shuffle/index.js +11 -4
  17. package/agnostic/arrays/shuffle/index.test.d.ts +1 -0
  18. package/agnostic/booleans/is-falsy/index.d.ts +17 -0
  19. package/agnostic/booleans/is-falsy/index.js +1 -1
  20. package/agnostic/colors/channels/index.d.ts +34 -0
  21. package/agnostic/colors/channels/index.js +6 -6
  22. package/agnostic/colors/contrast/index.d.ts +8 -0
  23. package/agnostic/colors/contrast/index.js +27 -8
  24. package/agnostic/colors/convert/index.d.ts +144 -0
  25. package/agnostic/colors/convert/index.js +5 -5
  26. package/agnostic/colors/distance/index.d.ts +8 -0
  27. package/agnostic/colors/distance/index.js +50 -7
  28. package/agnostic/colors/grayscale/index.d.ts +9 -1
  29. package/agnostic/colors/grayscale/index.js +156 -7
  30. package/agnostic/colors/invert/index.d.ts +8 -0
  31. package/agnostic/colors/invert/index.js +45 -7
  32. package/agnostic/colors/lerp/index.d.ts +12 -1
  33. package/agnostic/colors/lerp/index.js +97 -7
  34. package/agnostic/colors/luminance/index.d.ts +7 -0
  35. package/agnostic/colors/luminance/index.js +6 -6
  36. package/agnostic/colors/palette/index.d.ts +10 -1
  37. package/agnostic/colors/palette/index.js +104 -9
  38. package/agnostic/colors/rotate/index.d.ts +10 -1
  39. package/agnostic/colors/rotate/index.js +7 -7
  40. package/agnostic/colors/tidy/index.d.ts +9 -1
  41. package/agnostic/colors/tidy/index.js +5 -5
  42. package/agnostic/colors/typechecks/index.d.ts +60 -0
  43. package/agnostic/colors/typechecks/index.js +3 -3
  44. package/agnostic/colors/types.d.ts +106 -0
  45. package/agnostic/colors/types.js +2 -2
  46. package/agnostic/css/bem/index.d.ts +29 -6
  47. package/agnostic/css/bem/index.js +155 -6
  48. package/agnostic/css/generate-nice-color/index.d.ts +8 -2
  49. package/agnostic/css/generate-nice-color/index.js +70 -5
  50. package/agnostic/css/is-valid-css-class-name/index.d.ts +11 -0
  51. package/agnostic/css/is-valid-css-class-name/index.js +1 -1
  52. package/agnostic/css/styles-set/index.js +167 -15
  53. package/agnostic/errors/register/index.d.ts +31 -33
  54. package/agnostic/errors/register/index.js +49 -5
  55. package/agnostic/errors/unknown-to-string/index.d.ts +6 -0
  56. package/agnostic/errors/unknown-to-string/index.js +1 -1
  57. package/agnostic/html/get-node-ancestors/index.d.ts +12 -0
  58. package/agnostic/html/get-node-ancestors/index.js +1 -1
  59. package/agnostic/html/get-position-inside-parent/index.d.ts +8 -0
  60. package/agnostic/html/get-position-inside-parent/index.js +8 -4
  61. package/agnostic/html/hyper-json/cast/index.js +12 -12
  62. package/agnostic/html/hyper-json/index.js +40 -16
  63. package/agnostic/html/hyper-json/method/index.js +1 -1
  64. package/agnostic/html/hyper-json/serialize/index.js +5 -5
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +12 -12
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +12 -12
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +12 -12
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +12 -12
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +12 -12
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +12 -12
  71. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +12 -12
  72. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +12 -12
  73. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +12 -12
  74. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +12 -12
  75. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +12 -12
  76. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +12 -12
  77. package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +12 -12
  78. package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +12 -12
  79. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +12 -12
  80. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +12 -12
  81. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +12 -12
  82. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +12 -12
  83. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +12 -12
  84. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +12 -12
  85. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +12 -12
  86. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +12 -12
  87. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +12 -12
  88. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +12 -12
  89. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +12 -12
  90. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +12 -12
  91. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +12 -12
  92. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +12 -12
  93. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +12 -12
  94. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +12 -12
  95. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +12 -12
  96. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.d.ts +4 -3
  97. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +16 -14
  98. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +12 -12
  99. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +12 -12
  100. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +12 -12
  101. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +12 -12
  102. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +12 -12
  103. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +12 -12
  104. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +12 -12
  105. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +12 -12
  106. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +12 -12
  107. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +12 -12
  108. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +12 -12
  109. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +12 -12
  110. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +12 -12
  111. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +12 -12
  112. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +12 -12
  113. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +12 -12
  114. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +12 -12
  115. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +12 -12
  116. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +12 -12
  117. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +12 -12
  118. package/agnostic/html/hyper-json/smart-tags/index.js +4 -4
  119. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +5 -5
  120. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +5 -5
  121. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +12 -12
  122. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +12 -12
  123. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +12 -12
  124. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +12 -12
  125. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +12 -12
  126. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +12 -12
  127. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +5 -5
  128. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +12 -12
  129. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +12 -12
  130. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +12 -12
  131. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +12 -12
  132. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +12 -12
  133. package/agnostic/html/hyper-json/transformer/index.d.ts +1 -1
  134. package/agnostic/html/hyper-json/transformer/index.js +3 -3
  135. package/agnostic/html/hyper-json/tree/index.js +12 -12
  136. package/agnostic/html/hyper-json/types/index.d.ts +1 -1
  137. package/agnostic/html/hyper-json/types/index.js +1 -1
  138. package/agnostic/html/hyper-json/utils/index.d.ts +1 -1
  139. package/agnostic/html/hyper-json/utils/index.js +12 -12
  140. package/agnostic/html/insert-node/index.d.ts +17 -0
  141. package/agnostic/html/insert-node/index.js +1 -1
  142. package/agnostic/html/placeholders/index.d.ts +7 -9
  143. package/agnostic/html/placeholders/index.js +37 -5
  144. package/agnostic/html/replace-in-element/index.d.ts +14 -0
  145. package/agnostic/html/replace-in-element/index.js +1 -1
  146. package/agnostic/html/selector-to-element/index.d.ts +16 -1
  147. package/agnostic/html/selector-to-element/index.js +29 -11
  148. package/agnostic/html/string-to-nodes/index.d.ts +14 -7
  149. package/agnostic/html/string-to-nodes/index.js +14 -12
  150. package/agnostic/misc/assert/index.d.ts +5 -7
  151. package/agnostic/misc/assert/index.js +61 -8
  152. package/agnostic/misc/cast/index.d.ts +81 -10
  153. package/agnostic/misc/cast/index.js +18 -4
  154. package/agnostic/misc/connection/index.d.ts +26 -0
  155. package/agnostic/misc/connection/index.js +39 -0
  156. package/agnostic/misc/crawler/index.d.ts +63 -16
  157. package/agnostic/misc/crawler/index.js +36 -5
  158. package/agnostic/misc/crossenv/detect-runtime/index.d.ts +12 -2
  159. package/agnostic/misc/crossenv/detect-runtime/index.js +14 -5
  160. package/agnostic/misc/crossenv/types.d.ts +39 -0
  161. package/agnostic/misc/crossenv/types.js +7 -0
  162. package/agnostic/misc/crossenv/window/index.d.ts +28 -7
  163. package/agnostic/misc/crossenv/window/index.js +10 -4
  164. package/agnostic/misc/crossenv/window/index.test.d.ts +1 -0
  165. package/agnostic/misc/data-size/index.d.ts +43 -21
  166. package/agnostic/misc/data-size/index.js +270 -34
  167. package/agnostic/misc/data-size/types.d.ts +37 -0
  168. package/agnostic/misc/elo/index.d.ts +28 -30
  169. package/agnostic/misc/elo/index.js +27 -30
  170. package/agnostic/misc/is-constructor-function/index.d.ts +11 -0
  171. package/agnostic/misc/is-constructor-function/index.js +1 -1
  172. package/agnostic/misc/is-nullish/index.d.ts +22 -0
  173. package/agnostic/misc/is-nullish/index.js +1 -1
  174. package/agnostic/misc/logs/logger/index.js +109 -4
  175. package/agnostic/misc/logs/make-text-block/index.js +1 -1
  176. package/agnostic/misc/logs/styles/index.js +1 -1
  177. package/agnostic/misc/lorem-ipsum/index.d.ts +3 -5
  178. package/agnostic/misc/lorem-ipsum/index.js +187 -23
  179. package/agnostic/misc/normalize-extension/index.d.ts +10 -0
  180. package/agnostic/misc/normalize-extension/index.js +1 -1
  181. package/agnostic/misc/outcome/index.d.ts +56 -15
  182. package/agnostic/misc/outcome/index.js +8 -4
  183. package/agnostic/numbers/absolute-modulo/index.d.ts +7 -0
  184. package/agnostic/numbers/absolute-modulo/index.js +1 -1
  185. package/agnostic/numbers/clamp/index.d.ts +8 -0
  186. package/agnostic/numbers/clamp/index.js +1 -1
  187. package/agnostic/numbers/interpolate/index.d.ts +20 -1
  188. package/agnostic/numbers/interpolate/index.js +12 -7
  189. package/agnostic/numbers/responsive-harmonics/index.d.ts +20 -0
  190. package/agnostic/numbers/responsive-harmonics/index.js +49 -5
  191. package/agnostic/numbers/round/index.d.ts +24 -3
  192. package/agnostic/numbers/round/index.js +2 -2
  193. package/agnostic/objects/deep-get-property/index.d.ts +8 -0
  194. package/agnostic/objects/deep-get-property/index.js +23 -4
  195. package/agnostic/objects/enums/is-in-enum/index.d.ts +10 -0
  196. package/agnostic/objects/enums/is-in-enum/index.js +1 -1
  197. package/agnostic/objects/flatten-getters/index.d.ts +6 -0
  198. package/agnostic/objects/flatten-getters/index.js +19 -4
  199. package/agnostic/objects/is-object/index.d.ts +12 -0
  200. package/agnostic/objects/is-object/index.js +1 -1
  201. package/agnostic/objects/is-record/index.d.ts +6 -0
  202. package/agnostic/objects/is-record/index.js +1 -1
  203. package/agnostic/objects/record-format/index.d.ts +27 -0
  204. package/agnostic/objects/record-format/index.js +15 -4
  205. package/agnostic/objects/record-map/index.d.ts +9 -0
  206. package/agnostic/objects/record-map/index.js +1 -1
  207. package/agnostic/objects/validation/index.d.ts +11 -3
  208. package/agnostic/objects/validation/index.js +9 -5
  209. package/agnostic/optim/memoize/index.d.ts +10 -1
  210. package/agnostic/optim/memoize/index.js +16 -4
  211. package/agnostic/optim/throttle-debounce/index.js +110 -5
  212. package/agnostic/optim/throttle-debounce/types.d.ts +1 -1
  213. package/agnostic/random/hex-char/index.d.ts +2 -0
  214. package/agnostic/random/hex-char/index.js +1 -1
  215. package/agnostic/random/random/index.d.ts +14 -0
  216. package/agnostic/random/random/index.js +1 -1
  217. package/agnostic/random/uuid/index.d.ts +18 -0
  218. package/agnostic/random/uuid/index.js +1 -1
  219. package/agnostic/regexps/index.d.ts +95 -24
  220. package/agnostic/regexps/index.js +86 -5
  221. package/agnostic/sanitization/file-name/index.d.ts +13 -0
  222. package/agnostic/sanitization/file-name/index.js +7 -0
  223. package/agnostic/sanitization/html/index.d.ts +61 -0
  224. package/agnostic/sanitization/html/index.js +121 -0
  225. package/agnostic/sanitization/path/index.d.ts +11 -0
  226. package/agnostic/sanitization/path/index.js +14 -0
  227. package/agnostic/sanitization/types.d.ts +37 -0
  228. package/agnostic/sanitization/types.js +0 -0
  229. package/agnostic/sanitization/user-input/index.d.ts +13 -0
  230. package/agnostic/sanitization/user-input/index.js +23 -0
  231. package/agnostic/strings/char-codes/index.d.ts +82 -17
  232. package/agnostic/strings/char-codes/index.js +68 -5
  233. package/agnostic/strings/matches/index.d.ts +24 -0
  234. package/agnostic/strings/matches/index.js +1 -1
  235. package/agnostic/strings/normalize-indent/index.d.ts +22 -0
  236. package/agnostic/strings/normalize-indent/index.js +16 -4
  237. package/agnostic/strings/parse-table/index.d.ts +123 -66
  238. package/agnostic/strings/parse-table/index.js +83 -4
  239. package/agnostic/strings/replace-all/index.d.ts +20 -0
  240. package/agnostic/strings/replace-all/index.js +2 -2
  241. package/agnostic/strings/to-alphanum/index.d.ts +18 -0
  242. package/agnostic/strings/to-alphanum/index.js +8 -4
  243. package/agnostic/strings/trim/index.d.ts +18 -0
  244. package/agnostic/strings/trim/index.js +1 -1
  245. package/agnostic/time/dates/format-date/index.d.ts +47 -0
  246. package/agnostic/time/dates/format-date/index.js +58 -4
  247. package/agnostic/time/duration/index.d.ts +38 -25
  248. package/agnostic/time/duration/index.js +110 -5
  249. package/agnostic/time/timeout/index.d.ts +8 -0
  250. package/agnostic/time/timeout/index.js +16 -4
  251. package/agnostic/time/transitions/index.d.ts +73 -40
  252. package/agnostic/time/transitions/index.js +158 -5
  253. package/agnostic/time/wait/index.d.ts +6 -0
  254. package/agnostic/time/wait/index.js +1 -1
  255. package/chunks/{chunk-CLLJV343.js → chunk-27SSMK5F.js} +8 -7
  256. package/chunks/{chunk-FNQAF6CQ.js → chunk-2QDYPY2O.js} +5 -5
  257. package/chunks/{chunk-ON6LC3HE.js → chunk-2WSVYQ5Q.js} +6 -13
  258. package/chunks/chunk-4WE2WEXL.js +12 -0
  259. package/chunks/{chunk-QWNWZBIO.js → chunk-53ILYMIY.js} +8 -7
  260. package/chunks/{chunk-FF5NURFO.js → chunk-54KPQCVI.js} +6 -13
  261. package/chunks/{chunk-SRXNICSE.js → chunk-5CFQCSKJ.js} +6 -5
  262. package/chunks/{chunk-FKDPPFHV.js → chunk-5NTPCRFH.js} +1 -11
  263. package/chunks/{chunk-IV75M3KE.js → chunk-5O52VUI6.js} +6 -13
  264. package/chunks/{chunk-4XSDRT23.js → chunk-5X76KDYN.js} +7 -14
  265. package/chunks/{chunk-RHKFMXM3.js → chunk-65BFQP3T.js} +6 -5
  266. package/chunks/{chunk-7J7CYOXU.js → chunk-66BURDRK.js} +8 -15
  267. package/chunks/{chunk-ZEZCYPLQ.js → chunk-6BGIDRU5.js} +7 -14
  268. package/chunks/{chunk-5ZJ3KJPK.js → chunk-6YVXSCRH.js} +7 -14
  269. package/chunks/{chunk-NMYVJJXV.js → chunk-7B2E2NGH.js} +7 -14
  270. package/chunks/{chunk-YXLHZ2KW.js → chunk-AKFDKOHE.js} +2 -2
  271. package/chunks/{chunk-QAVYONH6.js → chunk-AKNR3U25.js} +5 -5
  272. package/chunks/{chunk-CVDCTI7F.js → chunk-AOEOW5XW.js} +7 -14
  273. package/chunks/{chunk-QSU3CVGF.js → chunk-ASWI3EO6.js} +6 -5
  274. package/chunks/{chunk-QWZ4ZNFA.js → chunk-AV373PHY.js} +8 -15
  275. package/chunks/{chunk-VROZGPC5.js → chunk-AXMAF3J2.js} +7 -14
  276. package/chunks/{chunk-QTA7ZEVX.js → chunk-AYGAQQXD.js} +6 -5
  277. package/chunks/chunk-BHGRXDTS.js +28 -0
  278. package/chunks/{chunk-CNYSX2L2.js → chunk-BQABPH3I.js} +7 -14
  279. package/chunks/{chunk-WV5N7ESL.js → chunk-BQXTV2GG.js} +9 -16
  280. package/chunks/{chunk-37TRFYZT.js → chunk-BXFRBV67.js} +6 -13
  281. package/chunks/{chunk-3LCD73SB.js → chunk-C4VX4TTP.js} +1 -1
  282. package/chunks/{chunk-3CLGBOHN.js → chunk-DBNCEHTT.js} +6 -13
  283. package/chunks/{chunk-HRNDUTZE.js → chunk-DBZAJJUF.js} +8 -15
  284. package/chunks/{chunk-SXRWMH3U.js → chunk-DUCLFPGE.js} +5 -5
  285. package/chunks/{chunk-UK2F7CWI.js → chunk-EBQRPRRC.js} +6 -13
  286. package/chunks/{chunk-TGVYEQIA.js → chunk-EEPLTO3E.js} +7 -14
  287. package/chunks/{chunk-D5CCWCEI.js → chunk-ENOTZXFS.js} +1 -1
  288. package/chunks/{chunk-ZTDVUXPR.js → chunk-EPUHVR7J.js} +1 -0
  289. package/chunks/{chunk-NCYE5WML.js → chunk-FAAIUU6V.js} +4 -4
  290. package/chunks/{chunk-REZC75LB.js → chunk-FH74QWR6.js} +10 -18
  291. package/chunks/{chunk-FD5WR2A5.js → chunk-FM3HGCFL.js} +8 -15
  292. package/chunks/{chunk-W3RXHN5I.js → chunk-FSI422YG.js} +6 -13
  293. package/chunks/{chunk-UT2J62LH.js → chunk-HEY7J6GI.js} +1 -1
  294. package/chunks/chunk-HOFEVF7T.js +61 -0
  295. package/chunks/chunk-HYPEWMYZ.js +10 -0
  296. package/chunks/{chunk-V3L55I2S.js → chunk-IBQQCUYV.js} +6 -13
  297. package/chunks/{chunk-2HJPX7E3.js → chunk-IK2S6ZYP.js} +6 -5
  298. package/chunks/{chunk-V3GX7SIJ.js → chunk-ISJONMNA.js} +1 -13
  299. package/chunks/{chunk-ZJTWDCNZ.js → chunk-J5D4OQ5U.js} +6 -13
  300. package/chunks/{chunk-67V4BGOB.js → chunk-JDINERKY.js} +1 -1
  301. package/chunks/{chunk-ZSUG52DO.js → chunk-JFXEMK66.js} +6 -13
  302. package/chunks/{chunk-RWO53U4X.js → chunk-JN2UETL4.js} +7 -14
  303. package/chunks/chunk-JU23NBY2.js +22 -0
  304. package/chunks/{chunk-BKO7GLC2.js → chunk-JVMFT3IT.js} +7 -6
  305. package/chunks/{chunk-AQBJ6HNB.js → chunk-K5UF634H.js} +1 -5
  306. package/chunks/{chunk-7UGMWTP5.js → chunk-KRYJVBO5.js} +1 -10
  307. package/chunks/{chunk-DZ2T5DTY.js → chunk-LFHDJTZJ.js} +1 -1
  308. package/chunks/{chunk-3G6FOHII.js → chunk-MHNUCHPP.js} +6 -5
  309. package/chunks/{chunk-P5JJOC5K.js → chunk-MSJ7WDFX.js} +8 -7
  310. package/chunks/{chunk-5VHFXWFM.js → chunk-NEMHJSNM.js} +6 -13
  311. package/chunks/{chunk-BWYH445G.js → chunk-NIIAUOBO.js} +6 -13
  312. package/chunks/{chunk-HFZGH6V2.js → chunk-NR7STUY3.js} +6 -5
  313. package/chunks/{chunk-2JH4TCT2.js → chunk-O66PEU62.js} +6 -13
  314. package/chunks/{chunk-QH64MYGA.js → chunk-O7UCJNVF.js} +7 -14
  315. package/chunks/{chunk-WAHPAZQS.js → chunk-OF2W4ZRG.js} +6 -13
  316. package/chunks/{chunk-P26Y7YUA.js → chunk-PTJO2TGI.js} +6 -5
  317. package/chunks/{chunk-BE7OXZRK.js → chunk-PTN2V757.js} +7 -14
  318. package/chunks/chunk-QEKI6WGQ.js +27 -0
  319. package/chunks/{chunk-EOE2ODJR.js → chunk-QHEWBOQI.js} +3 -3
  320. package/chunks/{chunk-N2T672IG.js → chunk-RGQNRTBI.js} +6 -13
  321. package/chunks/chunk-ROWPCMQY.js +29 -0
  322. package/chunks/{chunk-KJAEVOIW.js → chunk-S2I77NEE.js} +8 -15
  323. package/chunks/{chunk-CWZFRUBS.js → chunk-S6ZFFGWH.js} +7 -14
  324. package/chunks/{chunk-6IYUA43Q.js → chunk-SBBIQ5UH.js} +7 -14
  325. package/chunks/{chunk-NGIZKJDJ.js → chunk-SGGJJ46D.js} +335 -327
  326. package/chunks/{chunk-YVKM7N55.js → chunk-U225LGOV.js} +8 -7
  327. package/chunks/{chunk-HWEGQVBQ.js → chunk-ULYGDEW2.js} +6 -13
  328. package/chunks/{chunk-QAQZEKIF.js → chunk-USIYKRNX.js} +6 -6
  329. package/chunks/{chunk-FB3GNE2B.js → chunk-UZ4SWSOZ.js} +8 -15
  330. package/chunks/{chunk-4XBUJAQU.js → chunk-VU6JYR3W.js} +7 -14
  331. package/chunks/{chunk-FE4DECBU.js → chunk-VYDUHDXW.js} +7 -14
  332. package/chunks/{chunk-BSUQNHAM.js → chunk-W5VY535B.js} +7 -14
  333. package/chunks/{chunk-STPN5KZL.js → chunk-WF2JNQV4.js} +8 -7
  334. package/chunks/chunk-XCBH6NLF.js +42 -0
  335. package/chunks/chunk-XIIJYVJZ.js +15 -0
  336. package/chunks/{chunk-QDVDHFMZ.js → chunk-Y6FD4ASO.js} +7 -14
  337. package/chunks/{chunk-C6QTHDDM.js → chunk-YOP6WVCF.js} +7 -14
  338. package/chunks/chunk-ZKIQ753F.js +23 -0
  339. package/chunks/{chunk-QLDN574K.js → chunk-ZTPRFEPV.js} +7 -14
  340. package/components/Comp/index.js +7 -4
  341. package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +4 -12
  342. package/node/@aws-s3/storage/directory/copy-dir/index.js +3 -3
  343. package/node/@aws-s3/storage/directory/list/index.d.ts +1 -1
  344. package/node/@aws-s3/storage/directory/list/index.js +3 -3
  345. package/node/@aws-s3/storage/directory/move-dir/index.d.ts +1 -1
  346. package/node/@aws-s3/storage/directory/move-dir/index.js +3 -3
  347. package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +1 -1
  348. package/node/@aws-s3/storage/directory/remove-dir/index.js +3 -3
  349. package/node/@aws-s3/storage/file/copy/index.d.ts +1 -1
  350. package/node/@aws-s3/storage/file/copy/index.js +3 -3
  351. package/node/@aws-s3/storage/file/download/index.d.ts +1 -1
  352. package/node/@aws-s3/storage/file/download/index.js +3 -3
  353. package/node/@aws-s3/storage/file/exists/index.d.ts +1 -1
  354. package/node/@aws-s3/storage/file/exists/index.js +3 -3
  355. package/node/@aws-s3/storage/file/move/index.d.ts +1 -1
  356. package/node/@aws-s3/storage/file/move/index.js +3 -3
  357. package/node/@aws-s3/storage/file/remove/index.d.ts +1 -1
  358. package/node/@aws-s3/storage/file/remove/index.js +3 -3
  359. package/node/@aws-s3/storage/file/stat/index.d.ts +1 -1
  360. package/node/@aws-s3/storage/file/stat/index.js +3 -3
  361. package/node/@aws-s3/storage/file/upload/index.d.ts +1 -1
  362. package/node/@aws-s3/storage/file/upload/index.js +3 -3
  363. package/node/@design-edito/index.d.ts +1 -2
  364. package/node/@design-edito/index.js +0 -8
  365. package/node/@express/@multer/index.d.ts +34 -1
  366. package/node/@express/@multer/index.js +43 -5
  367. package/node/@google-cloud/storage/bucket/get-metadata/index.d.ts +1 -1
  368. package/node/@google-cloud/storage/bucket/get-metadata/index.js +18 -5
  369. package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +1 -1
  370. package/node/@google-cloud/storage/directory/copy-dir/index.js +3 -3
  371. package/node/@google-cloud/storage/directory/list/index.d.ts +1 -1
  372. package/node/@google-cloud/storage/directory/list/index.js +3 -3
  373. package/node/@google-cloud/storage/directory/move-dir/index.d.ts +1 -1
  374. package/node/@google-cloud/storage/directory/move-dir/index.js +3 -3
  375. package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +1 -1
  376. package/node/@google-cloud/storage/directory/remove-dir/index.js +3 -3
  377. package/node/@google-cloud/storage/file/copy/index.d.ts +1 -1
  378. package/node/@google-cloud/storage/file/copy/index.js +3 -3
  379. package/node/@google-cloud/storage/file/download/index.d.ts +1 -1
  380. package/node/@google-cloud/storage/file/download/index.js +3 -3
  381. package/node/@google-cloud/storage/file/exists/index.d.ts +1 -1
  382. package/node/@google-cloud/storage/file/exists/index.js +3 -3
  383. package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +1 -1
  384. package/node/@google-cloud/storage/file/generate-signed-url/index.js +24 -5
  385. package/node/@google-cloud/storage/file/get-metadata/index.d.ts +1 -1
  386. package/node/@google-cloud/storage/file/get-metadata/index.js +20 -5
  387. package/node/@google-cloud/storage/file/get-permissions/index.d.ts +1 -1
  388. package/node/@google-cloud/storage/file/get-permissions/index.js +20 -5
  389. package/node/@google-cloud/storage/file/move/index.d.ts +1 -1
  390. package/node/@google-cloud/storage/file/move/index.js +3 -3
  391. package/node/@google-cloud/storage/file/remove/index.d.ts +1 -1
  392. package/node/@google-cloud/storage/file/remove/index.js +3 -3
  393. package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +1 -1
  394. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +25 -7
  395. package/node/@google-cloud/storage/file/stat/index.d.ts +1 -1
  396. package/node/@google-cloud/storage/file/stat/index.js +3 -3
  397. package/node/@google-cloud/storage/file/update-metadata/index.d.ts +1 -1
  398. package/node/@google-cloud/storage/file/update-metadata/index.js +20 -5
  399. package/node/@google-cloud/storage/file/upload/index.d.ts +1 -1
  400. package/node/@google-cloud/storage/file/upload/index.js +3 -3
  401. package/node/cloud-storage/clients/index.d.ts +27 -0
  402. package/node/cloud-storage/clients/index.js +2 -2
  403. package/node/cloud-storage/operations/copy-dir/index.d.ts +46 -1
  404. package/node/cloud-storage/operations/copy-dir/index.js +30 -9
  405. package/node/cloud-storage/operations/copy-file/index.d.ts +46 -1
  406. package/node/cloud-storage/operations/copy-file/index.js +30 -9
  407. package/node/cloud-storage/operations/download-file/index.d.ts +50 -1
  408. package/node/cloud-storage/operations/download-file/index.js +30 -9
  409. package/node/cloud-storage/operations/exists-file/index.d.ts +44 -1
  410. package/node/cloud-storage/operations/exists-file/index.js +30 -9
  411. package/node/cloud-storage/operations/list-dir/index.d.ts +40 -1
  412. package/node/cloud-storage/operations/list-dir/index.js +30 -9
  413. package/node/cloud-storage/operations/move-dir/index.d.ts +46 -1
  414. package/node/cloud-storage/operations/move-dir/index.js +30 -9
  415. package/node/cloud-storage/operations/move-file/index.d.ts +46 -1
  416. package/node/cloud-storage/operations/move-file/index.js +30 -9
  417. package/node/cloud-storage/operations/remove-dir/index.d.ts +42 -1
  418. package/node/cloud-storage/operations/remove-dir/index.js +30 -9
  419. package/node/cloud-storage/operations/remove-file/index.d.ts +42 -1
  420. package/node/cloud-storage/operations/remove-file/index.js +30 -9
  421. package/node/cloud-storage/operations/stat-file/index.d.ts +40 -1
  422. package/node/cloud-storage/operations/stat-file/index.js +30 -9
  423. package/node/cloud-storage/operations/upload-file/index.d.ts +46 -1
  424. package/node/cloud-storage/operations/upload-file/index.js +30 -9
  425. package/node/encryption/@aes-256-gcm/buffer/index.d.ts +1 -1
  426. package/node/encryption/@aes-256-gcm/buffer/index.js +22 -6
  427. package/node/encryption/@aes-256-gcm/uint8-array/index.d.ts +1 -1
  428. package/node/encryption/@aes-256-gcm/uint8-array/index.js +3 -3
  429. package/node/encryption/key/index.js +12 -4
  430. package/node/files/is-in-directory/index.d.ts +7 -0
  431. package/node/files/is-in-directory/index.js +8 -4
  432. package/node/files/read-write/index.d.ts +48 -4
  433. package/node/files/read-write/index.js +15 -4
  434. package/node/files/subpaths/index.d.ts +62 -33
  435. package/node/files/subpaths/index.js +119 -5
  436. package/node/ftps/directory/copy-dir/index.d.ts +1 -1
  437. package/node/ftps/directory/copy-dir/index.js +3 -3
  438. package/node/ftps/directory/list/index.d.ts +1 -1
  439. package/node/ftps/directory/list/index.js +3 -3
  440. package/node/ftps/directory/move-dir/index.d.ts +1 -1
  441. package/node/ftps/directory/move-dir/index.js +3 -3
  442. package/node/ftps/directory/remove-dir/index.d.ts +1 -1
  443. package/node/ftps/directory/remove-dir/index.js +3 -3
  444. package/node/ftps/file/copy/index.d.ts +1 -1
  445. package/node/ftps/file/copy/index.js +3 -3
  446. package/node/ftps/file/download/index.d.ts +1 -1
  447. package/node/ftps/file/download/index.js +3 -3
  448. package/node/ftps/file/exists/index.d.ts +1 -1
  449. package/node/ftps/file/exists/index.js +3 -3
  450. package/node/ftps/file/move/index.d.ts +1 -1
  451. package/node/ftps/file/move/index.js +3 -3
  452. package/node/ftps/file/remove/index.d.ts +1 -1
  453. package/node/ftps/file/remove/index.js +3 -3
  454. package/node/ftps/file/stat/index.d.ts +1 -1
  455. package/node/ftps/file/stat/index.js +3 -3
  456. package/node/ftps/file/upload/index.d.ts +1 -1
  457. package/node/ftps/file/upload/index.js +3 -3
  458. package/node/images/create/index.d.ts +6 -0
  459. package/node/images/create/index.js +13 -18
  460. package/node/images/format/index.d.ts +36 -1
  461. package/node/images/format/index.js +241 -44
  462. package/node/images/metadata/index.d.ts +6 -0
  463. package/node/images/metadata/index.js +13 -18
  464. package/node/images/transform/index.d.ts +23 -1
  465. package/node/images/transform/index.js +199 -39
  466. package/node/images/transform/operations/blur/index.d.ts +1 -1
  467. package/node/images/transform/operations/blur/index.js +4 -4
  468. package/node/images/transform/operations/brighten/index.d.ts +1 -1
  469. package/node/images/transform/operations/brighten/index.js +4 -4
  470. package/node/images/transform/operations/extend/index.d.ts +1 -1
  471. package/node/images/transform/operations/extend/index.js +9 -19
  472. package/node/images/transform/operations/extract/index.d.ts +1 -1
  473. package/node/images/transform/operations/extract/index.js +4 -4
  474. package/node/images/transform/operations/flatten/index.d.ts +1 -1
  475. package/node/images/transform/operations/flatten/index.js +9 -19
  476. package/node/images/transform/operations/flip/index.js +1 -1
  477. package/node/images/transform/operations/flop/index.js +1 -1
  478. package/node/images/transform/operations/hue/index.d.ts +1 -1
  479. package/node/images/transform/operations/hue/index.js +4 -4
  480. package/node/images/transform/operations/level/index.d.ts +1 -1
  481. package/node/images/transform/operations/level/index.js +4 -4
  482. package/node/images/transform/operations/lighten/index.d.ts +1 -1
  483. package/node/images/transform/operations/lighten/index.js +4 -4
  484. package/node/images/transform/operations/normalize/index.d.ts +1 -1
  485. package/node/images/transform/operations/normalize/index.js +4 -4
  486. package/node/images/transform/operations/overlay/index.d.ts +1 -1
  487. package/node/images/transform/operations/overlay/index.js +9 -19
  488. package/node/images/transform/operations/resize/index.d.ts +1 -1
  489. package/node/images/transform/operations/resize/index.js +9 -19
  490. package/node/images/transform/operations/rotate/index.d.ts +1 -1
  491. package/node/images/transform/operations/rotate/index.js +9 -19
  492. package/node/images/transform/operations/saturate/index.d.ts +1 -1
  493. package/node/images/transform/operations/saturate/index.js +4 -4
  494. package/node/images/types.d.ts +136 -1
  495. package/node/images/types.js +2 -2
  496. package/node/images/utils/index.d.ts +20 -0
  497. package/node/images/utils/index.js +6 -16
  498. package/node/process/on-exit/index.d.ts +23 -0
  499. package/node/process/on-exit/index.js +25 -8
  500. package/node/process/prompt-continue/index.d.ts +18 -0
  501. package/node/process/prompt-continue/index.js +1680 -0
  502. package/node/process/spawner/index.d.ts +18 -0
  503. package/node/process/spawner/index.js +83 -0
  504. package/node/sftp/directory/copy-dir/index.d.ts +1 -1
  505. package/node/sftp/directory/copy-dir/index.js +3 -3
  506. package/node/sftp/directory/list/index.d.ts +1 -1
  507. package/node/sftp/directory/list/index.js +3 -3
  508. package/node/sftp/directory/move-dir/index.d.ts +1 -1
  509. package/node/sftp/directory/move-dir/index.js +3 -3
  510. package/node/sftp/directory/remove-dir/index.d.ts +1 -1
  511. package/node/sftp/directory/remove-dir/index.js +3 -3
  512. package/node/sftp/file/copy/index.d.ts +1 -1
  513. package/node/sftp/file/copy/index.js +3 -3
  514. package/node/sftp/file/download/index.d.ts +1 -1
  515. package/node/sftp/file/download/index.js +3 -3
  516. package/node/sftp/file/exists/index.d.ts +1 -1
  517. package/node/sftp/file/exists/index.js +3 -3
  518. package/node/sftp/file/move/index.d.ts +1 -1
  519. package/node/sftp/file/move/index.js +3 -3
  520. package/node/sftp/file/remove/index.d.ts +1 -1
  521. package/node/sftp/file/remove/index.js +3 -3
  522. package/node/sftp/file/stat/index.d.ts +1 -1
  523. package/node/sftp/file/stat/index.js +3 -3
  524. package/node/sftp/file/upload/index.d.ts +1 -1
  525. package/node/sftp/file/upload/index.js +3 -3
  526. package/package.json +11 -3
  527. package/agnostic/arrays/index.d.ts +0 -13
  528. package/agnostic/arrays/index.js +0 -21
  529. package/agnostic/booleans/index.d.ts +0 -8
  530. package/agnostic/booleans/index.js +0 -9
  531. package/agnostic/colors/index.d.ts +0 -14
  532. package/agnostic/colors/index.js +0 -107
  533. package/agnostic/css/bem/BEM.d.ts +0 -29
  534. package/agnostic/css/bem/getNamesArr.d.ts +0 -2
  535. package/agnostic/css/index.d.ts +0 -14
  536. package/agnostic/css/index.js +0 -25
  537. package/agnostic/errors/index.d.ts +0 -6
  538. package/agnostic/errors/index.js +0 -9
  539. package/agnostic/html/index.d.ts +0 -19
  540. package/agnostic/html/index.js +0 -39
  541. package/agnostic/html/sanitize/index.d.ts +0 -24
  542. package/agnostic/html/sanitize/index.js +0 -15
  543. package/agnostic/index.d.ts +0 -26
  544. package/agnostic/index.js +0 -144
  545. package/agnostic/misc/crossenv/index.d.ts +0 -8
  546. package/agnostic/misc/crossenv/index.js +0 -10
  547. package/agnostic/misc/crossenv/types/index.d.ts +0 -19
  548. package/agnostic/misc/crossenv/types/index.js +0 -7
  549. package/agnostic/misc/get-current-downlink/index.d.ts +0 -1
  550. package/agnostic/misc/get-current-downlink/index.js +0 -7
  551. package/agnostic/misc/index.d.ts +0 -25
  552. package/agnostic/misc/index.js +0 -65
  553. package/agnostic/misc/logs/index.d.ts +0 -17
  554. package/agnostic/misc/logs/index.js +0 -10
  555. package/agnostic/numbers/index.d.ts +0 -13
  556. package/agnostic/numbers/index.js +0 -12
  557. package/agnostic/objects/enums/index.d.ts +0 -4
  558. package/agnostic/objects/enums/index.js +0 -8
  559. package/agnostic/objects/index.d.ts +0 -19
  560. package/agnostic/objects/index.js +0 -19
  561. package/agnostic/optim/index.d.ts +0 -7
  562. package/agnostic/optim/index.js +0 -9
  563. package/agnostic/random/index.d.ts +0 -12
  564. package/agnostic/random/index.js +0 -10
  565. package/agnostic/sanitization/index.d.ts +0 -3
  566. package/agnostic/sanitization/index.js +0 -35
  567. package/agnostic/strings/index.d.ts +0 -19
  568. package/agnostic/strings/index.js +0 -15
  569. package/agnostic/time/dates/index.d.ts +0 -4
  570. package/agnostic/time/dates/index.js +0 -8
  571. package/agnostic/time/index.d.ts +0 -12
  572. package/agnostic/time/index.js +0 -30
  573. package/chunks/chunk-34U4HX4V.js +0 -73
  574. package/chunks/chunk-42K3MQQ5.js +0 -31
  575. package/chunks/chunk-5CTAKAIP.js +0 -28
  576. package/chunks/chunk-5ZPVE6NR.js +0 -40
  577. package/chunks/chunk-63J76ST6.js +0 -191
  578. package/chunks/chunk-6KM4UT6T.js +0 -34
  579. package/chunks/chunk-6NYUQXJT.js +0 -109
  580. package/chunks/chunk-6RGDWX4A.js +0 -24
  581. package/chunks/chunk-6UXES4W7.js +0 -40
  582. package/chunks/chunk-6YQGM6N6.js +0 -19
  583. package/chunks/chunk-73UGWJYI.js +0 -31
  584. package/chunks/chunk-7AWTHZLY.js +0 -12
  585. package/chunks/chunk-7DBNMU6N.js +0 -14
  586. package/chunks/chunk-7NLDR53D.js +0 -16
  587. package/chunks/chunk-7YJ4BB73.js +0 -20
  588. package/chunks/chunk-A3CDUWGR.js +0 -73
  589. package/chunks/chunk-AL7ESVX4.js +0 -42
  590. package/chunks/chunk-ALAGBHFV.js +0 -42
  591. package/chunks/chunk-ALFP7OQ3.js +0 -24
  592. package/chunks/chunk-ANPXBD2G.js +0 -35
  593. package/chunks/chunk-BDGFY3GP.js +0 -42
  594. package/chunks/chunk-BGSJ5XCH.js +0 -20
  595. package/chunks/chunk-BJAYUP7M.js +0 -13
  596. package/chunks/chunk-BLDUC7TT.js +0 -17
  597. package/chunks/chunk-BPYICFMX.js +0 -37
  598. package/chunks/chunk-CKENYYWH.js +0 -28
  599. package/chunks/chunk-COVPTTAD.js +0 -10
  600. package/chunks/chunk-DFDH7MGI.js +0 -206
  601. package/chunks/chunk-DKITT7OT.js +0 -296
  602. package/chunks/chunk-EDVNAV3G.js +0 -72
  603. package/chunks/chunk-EGBJXHCW.js +0 -47
  604. package/chunks/chunk-ENMBK6H7.js +0 -162
  605. package/chunks/chunk-EZ22Z22X.js +0 -28
  606. package/chunks/chunk-F3WCF6DL.js +0 -122
  607. package/chunks/chunk-FHLCPVND.js +0 -23
  608. package/chunks/chunk-FLE22O3O.js +0 -56
  609. package/chunks/chunk-FNGETPCZ.js +0 -84
  610. package/chunks/chunk-FPEW3A27.js +0 -14
  611. package/chunks/chunk-FR5H2OCV.js +0 -21
  612. package/chunks/chunk-FZOU4OAW.js +0 -13
  613. package/chunks/chunk-G4ZB72XY.js +0 -257
  614. package/chunks/chunk-GL42Q643.js +0 -42
  615. package/chunks/chunk-GXOIVZUI.js +0 -60
  616. package/chunks/chunk-GYEO7JZV.js +0 -112
  617. package/chunks/chunk-HKTNK262.js +0 -23
  618. package/chunks/chunk-HWVEI3RH.js +0 -31
  619. package/chunks/chunk-IRTPQATN.js +0 -16
  620. package/chunks/chunk-JBSS64SA.js +0 -6
  621. package/chunks/chunk-JMU5PDBD.js +0 -20
  622. package/chunks/chunk-JQXNEJAP.js +0 -18
  623. package/chunks/chunk-JTJA7DGW.js +0 -36
  624. package/chunks/chunk-JWBDZPQG.js +0 -18
  625. package/chunks/chunk-KIONYWA7.js +0 -168
  626. package/chunks/chunk-KXIA3YGF.js +0 -54
  627. package/chunks/chunk-L7PIZQFC.js +0 -51
  628. package/chunks/chunk-LEXQ6E6L.js +0 -31
  629. package/chunks/chunk-LGBQWEXH.js +0 -40
  630. package/chunks/chunk-LV2VMOWR.js +0 -18
  631. package/chunks/chunk-MFIGSRSO.js +0 -103
  632. package/chunks/chunk-MJQF3YZO.js +0 -21
  633. package/chunks/chunk-MVYH3CSJ.js +0 -42
  634. package/chunks/chunk-NK62JYTD.js +0 -43
  635. package/chunks/chunk-NRITRUZW.js +0 -10
  636. package/chunks/chunk-NUPAV2JX.js +0 -20
  637. package/chunks/chunk-OC4VIF3N.js +0 -42
  638. package/chunks/chunk-OKFZJ6DJ.js +0 -9
  639. package/chunks/chunk-OVG5RGI3.js +0 -29
  640. package/chunks/chunk-OYDCT5KK.js +0 -32
  641. package/chunks/chunk-PAIUCLVK.js +0 -35
  642. package/chunks/chunk-PVRYR5KX.js +0 -21
  643. package/chunks/chunk-QCOO4PV5.js +0 -54
  644. package/chunks/chunk-QHAB6XYD.js +0 -30
  645. package/chunks/chunk-QHLQVR3E.js +0 -54
  646. package/chunks/chunk-QKE2IYT5.js +0 -42
  647. package/chunks/chunk-QTF7LWGT.js +0 -28
  648. package/chunks/chunk-QVPS2BCJ.js +0 -29
  649. package/chunks/chunk-R4DZKWSR.js +0 -42
  650. package/chunks/chunk-RASMASS4.js +0 -111
  651. package/chunks/chunk-RLAZR3NL.js +0 -8
  652. package/chunks/chunk-RLJOYG64.js +0 -33
  653. package/chunks/chunk-S2NMAH7K.js +0 -19
  654. package/chunks/chunk-S4VO4PFZ.js +0 -37
  655. package/chunks/chunk-SKBOSWM2.js +0 -35
  656. package/chunks/chunk-SKMCIFS3.js +0 -27
  657. package/chunks/chunk-SNJJII7A.js +0 -65
  658. package/chunks/chunk-TAUQZCR6.js +0 -41
  659. package/chunks/chunk-TGDJWP5U.js +0 -20
  660. package/chunks/chunk-TIER4TF4.js +0 -26
  661. package/chunks/chunk-U4ORVPZC.js +0 -175
  662. package/chunks/chunk-UEAMPAHK.js +0 -28
  663. package/chunks/chunk-UNXRB2AV.js +0 -16
  664. package/chunks/chunk-V3NHCEO5.js +0 -31
  665. package/chunks/chunk-VFJYLXCI.js +0 -23
  666. package/chunks/chunk-VJJIYJMY.js +0 -13
  667. package/chunks/chunk-VTPRO4NJ.js +0 -10
  668. package/chunks/chunk-VYW4IADX.js +0 -35
  669. package/chunks/chunk-VZDUZTW6.js +0 -113
  670. package/chunks/chunk-WAMSK4A3.js +0 -67
  671. package/chunks/chunk-WH6BPDAC.js +0 -17
  672. package/chunks/chunk-WJBQ2BO4.js +0 -16
  673. package/chunks/chunk-WOAYU6LB.js +0 -13
  674. package/chunks/chunk-WOYF3N4A.js +0 -31
  675. package/chunks/chunk-WSC3WODJ.js +0 -157
  676. package/chunks/chunk-WSFCRVEQ.js +0 -9
  677. package/chunks/chunk-X53BGT33.js +0 -42
  678. package/chunks/chunk-XB3EGDBI.js +0 -127
  679. package/chunks/chunk-XBA26Z7E.js +0 -42
  680. package/chunks/chunk-XPGAVZGK.js +0 -98
  681. package/chunks/chunk-XPPOIKJL.js +0 -43
  682. package/chunks/chunk-XR2LNUGW.js +0 -42
  683. package/chunks/chunk-YFBIPMXD.js +0 -20
  684. package/chunks/chunk-YKPA3MQL.js +0 -31
  685. package/chunks/chunk-YP64J65L.js +0 -17
  686. package/chunks/chunk-YPTFPS76.js +0 -91
  687. package/chunks/chunk-YQWZ3EP2.js +0 -60
  688. package/chunks/chunk-YRZFKMR4.js +0 -20
  689. package/chunks/chunk-YS6WMSWC.js +0 -15
  690. package/chunks/chunk-YUP434IY.js +0 -43
  691. package/chunks/chunk-Z7ZDDBV5.js +0 -18
  692. package/chunks/chunk-ZBBU2P4D.js +0 -28
  693. package/chunks/chunk-ZH3QMMVD.js +0 -28
  694. package/chunks/chunk-ZLBSI4TR.js +0 -21
  695. package/chunks/chunk-ZNA7SWFK.js +0 -29
  696. package/components/index.d.ts +0 -4
  697. package/components/index.js +0 -13
  698. package/node/@aws-s3/index.d.ts +0 -2
  699. package/node/@aws-s3/index.js +0 -23
  700. package/node/@aws-s3/storage/directory/index.d.ts +0 -5
  701. package/node/@aws-s3/storage/directory/index.js +0 -22
  702. package/node/@aws-s3/storage/file/index.d.ts +0 -8
  703. package/node/@aws-s3/storage/file/index.js +0 -34
  704. package/node/@aws-s3/storage/index.d.ts +0 -3
  705. package/node/@aws-s3/storage/index.js +0 -25
  706. package/node/@design-edito/thumbnails/index.js +0 -1
  707. package/node/@express/index.d.ts +0 -2
  708. package/node/@express/index.js +0 -10
  709. package/node/@google-cloud/index.d.ts +0 -2
  710. package/node/@google-cloud/index.js +0 -30
  711. package/node/@google-cloud/storage/bucket/index.d.ts +0 -5
  712. package/node/@google-cloud/storage/bucket/index.js +0 -22
  713. package/node/@google-cloud/storage/directory/index.d.ts +0 -5
  714. package/node/@google-cloud/storage/directory/index.js +0 -22
  715. package/node/@google-cloud/storage/file/index.d.ts +0 -13
  716. package/node/@google-cloud/storage/file/index.js +0 -54
  717. package/node/@google-cloud/storage/index.d.ts +0 -4
  718. package/node/@google-cloud/storage/index.js +0 -35
  719. package/node/cloud-storage/index.d.ts +0 -3
  720. package/node/cloud-storage/index.js +0 -69
  721. package/node/cloud-storage/operations/index.d.ts +0 -12
  722. package/node/cloud-storage/operations/index.js +0 -95
  723. package/node/encryption/@aes-256-gcm/index.d.ts +0 -3
  724. package/node/encryption/@aes-256-gcm/index.js +0 -14
  725. package/node/encryption/index.d.ts +0 -3
  726. package/node/encryption/index.js +0 -16
  727. package/node/files/index.d.ts +0 -7
  728. package/node/files/index.js +0 -15
  729. package/node/ftps/directory/index.d.ts +0 -5
  730. package/node/ftps/directory/index.js +0 -22
  731. package/node/ftps/file/index.d.ts +0 -8
  732. package/node/ftps/file/index.js +0 -34
  733. package/node/ftps/index.d.ts +0 -3
  734. package/node/ftps/index.js +0 -25
  735. package/node/images/index.d.ts +0 -6
  736. package/node/images/index.js +0 -59
  737. package/node/index.d.ts +0 -12
  738. package/node/index.js +0 -172
  739. package/node/process/index.d.ts +0 -6
  740. package/node/process/index.js +0 -16
  741. package/node/sftp/directory/index.d.ts +0 -5
  742. package/node/sftp/directory/index.js +0 -22
  743. package/node/sftp/file/index.d.ts +0 -8
  744. package/node/sftp/file/index.js +0 -34
  745. package/node/sftp/index.d.ts +0 -3
  746. package/node/sftp/index.js +0 -25
  747. package/shared/errors/index.d.ts +0 -138
  748. /package/{node/@design-edito/thumbnails/index.d.ts → agnostic/arrays/dedupe/index.test.d.ts} +0 -0
  749. /package/{shared/index.d.ts → agnostic/misc/data-size/types.js} +0 -0
@@ -1,30 +1,33 @@
1
1
  import {
2
2
  array
3
- } from "./chunk-QAQZEKIF.js";
4
- import {
5
- any
6
- } from "./chunk-FHLCPVND.js";
3
+ } from "./chunk-USIYKRNX.js";
7
4
  import {
8
5
  nullFunc
9
- } from "./chunk-QAVYONH6.js";
6
+ } from "./chunk-AKNR3U25.js";
10
7
  import {
11
- Serialize
12
- } from "./chunk-SXRWMH3U.js";
8
+ any
9
+ } from "./chunk-ZKIQ753F.js";
13
10
  import {
14
11
  Types
15
12
  } from "./chunk-XEQ2PBT2.js";
16
13
  import {
17
14
  SmartTags
18
- } from "./chunk-UT2J62LH.js";
15
+ } from "./chunk-HEY7J6GI.js";
16
+ import {
17
+ Serialize
18
+ } from "./chunk-DUCLFPGE.js";
19
19
  import {
20
20
  Transformer
21
- } from "./chunk-BKO7GLC2.js";
21
+ } from "./chunk-JVMFT3IT.js";
22
22
  import {
23
23
  Method
24
24
  } from "./chunk-RW7VAKJW.js";
25
25
  import {
26
26
  insertNode
27
27
  } from "./chunk-XA4HVHJ4.js";
28
+ import {
29
+ recordMap
30
+ } from "./chunk-XNF5MLCQ.js";
28
31
  import {
29
32
  isInEnum
30
33
  } from "./chunk-E6MSDKON.js";
@@ -32,24 +35,23 @@ import {
32
35
  isRecord
33
36
  } from "./chunk-YDIBNEGA.js";
34
37
  import {
35
- recordMap
36
- } from "./chunk-XNF5MLCQ.js";
38
+ trimEnd,
39
+ trimStart
40
+ } from "./chunk-6XL25OZX.js";
37
41
  import {
38
42
  replaceAll
39
- } from "./chunk-ZTDVUXPR.js";
43
+ } from "./chunk-EPUHVR7J.js";
40
44
  import {
41
- Outcome
42
- } from "./chunk-JMU5PDBD.js";
45
+ makeFailure,
46
+ makeSuccess,
47
+ outcome_exports
48
+ } from "./chunk-QEKI6WGQ.js";
43
49
  import {
44
- trimEnd,
45
- trimStart
46
- } from "./chunk-6XL25OZX.js";
50
+ get
51
+ } from "./chunk-ROWPCMQY.js";
47
52
  import {
48
53
  isNonNullObject
49
54
  } from "./chunk-HQLRJ7XW.js";
50
- import {
51
- Window
52
- } from "./chunk-RLJOYG64.js";
53
55
  import {
54
56
  unknownToString
55
57
  } from "./chunk-FENXVJYO.js";
@@ -59,7 +61,7 @@ var Cast;
59
61
  ((Cast2) => {
60
62
  Cast2.toNull = () => null;
61
63
  Cast2.toBoolean = (input) => {
62
- const { Text: Text2 } = Window.get();
64
+ const { Text: Text2 } = get();
63
65
  if (input === null) return false;
64
66
  if (typeof input === "boolean") return input;
65
67
  if (typeof input === "number") return input !== 0;
@@ -72,7 +74,7 @@ var Cast;
72
74
  return true;
73
75
  };
74
76
  Cast2.toNumber = (input) => {
75
- const { Text: Text2 } = Window.get();
77
+ const { Text: Text2 } = get();
76
78
  if (typeof input === "boolean") return input ? 1 : 0;
77
79
  if (typeof input === "number") return input;
78
80
  if (typeof input === "string") return parseFloat(`${input}`);
@@ -82,7 +84,7 @@ var Cast;
82
84
  Cast2.toString = (input) => {
83
85
  if (typeof input === "string") return input;
84
86
  if (typeof input === "number" || typeof input === "boolean" || input === null) return `${input}`;
85
- const { Element: Element2, Text: Text2, NodeList: NodeList2 } = Window.get();
87
+ const { Element: Element2, Text: Text2, NodeList: NodeList2 } = get();
86
88
  if (input instanceof Element2) return input.outerHTML;
87
89
  if (input instanceof Text2) return input.textContent ?? "";
88
90
  if (input instanceof NodeList2) return Array.from(input).map((e) => {
@@ -94,12 +96,12 @@ var Cast;
94
96
  return `{${Object.entries(input).map(([key, val]) => `${key}:"${(0, Cast2.toString)(val)}"`).join(",")}}`;
95
97
  };
96
98
  Cast2.toText = (input) => {
97
- const { Text: Text2, document } = Window.get();
99
+ const { Text: Text2, document } = get();
98
100
  if (input instanceof Text2) return input.cloneNode(true);
99
101
  return document.createTextNode((0, Cast2.toString)(input));
100
102
  };
101
103
  Cast2.toElement = (input, tagName) => {
102
- const { Element: Element2, Text: Text2, NodeList: NodeList2, document } = Window.get();
104
+ const { Element: Element2, Text: Text2, NodeList: NodeList2, document } = get();
103
105
  if (input instanceof Element2) return input.cloneNode(true);
104
106
  const returned = document.createElement(tagName ?? "div");
105
107
  if (input instanceof Text2) {
@@ -116,7 +118,7 @@ var Cast;
116
118
  return returned;
117
119
  };
118
120
  Cast2.toNodeList = (input) => {
119
- const { Element: Element2, Text: Text2, NodeList: NodeList2, document } = Window.get();
121
+ const { Element: Element2, Text: Text2, NodeList: NodeList2, document } = get();
120
122
  const parentDiv = document.createElement("div");
121
123
  if (input instanceof NodeList2) {
122
124
  parentDiv.append(...Array.from(input).map((i) => i.cloneNode(true)));
@@ -144,7 +146,7 @@ var Cast;
144
146
  return parentDiv.childNodes;
145
147
  };
146
148
  Cast2.toArray = (input) => {
147
- const { NodeList: NodeList2 } = Window.get();
149
+ const { NodeList: NodeList2 } = get();
148
150
  if (Array.isArray(input)) return [...input];
149
151
  if (input instanceof NodeList2) return Array.from(input);
150
152
  return [input];
@@ -165,31 +167,31 @@ var element = SmartTags.makeSmartTag({
165
167
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "null", "boolean", "number", "string", "text", "element", "nodelist"),
166
168
  func: (main, args) => {
167
169
  const tagName = Cast.toString(main).trim().toLowerCase();
168
- const { document, NodeList: NodeList2 } = Window.get();
170
+ const { document, NodeList: NodeList2 } = get();
169
171
  const elt = document.createElement(tagName);
170
172
  for (const argVal of args) {
171
173
  if (argVal instanceof NodeList2) elt.append(...Array.from(argVal));
172
174
  else if (argVal instanceof Element) elt.append(argVal);
173
175
  else elt.append(Cast.toText(argVal));
174
176
  }
175
- return Outcome.makeSuccess(elt);
177
+ return makeSuccess(elt);
176
178
  }
177
179
  });
178
180
 
179
181
  // src/agnostic/html/hyper-json/smart-tags/isolated/get/index.ts
180
- var get = SmartTags.makeSmartTag({
182
+ var get2 = SmartTags.makeSmartTag({
181
183
  name: "get",
182
184
  defaultMode: "isolation",
183
185
  isolationInitType: "array",
184
186
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "string", "text"),
185
187
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
186
188
  func: (main, _args, { sourceTree }) => {
187
- const { makeSuccess, makeFailure } = Outcome;
189
+ const { makeSuccess: makeSuccess2, makeFailure: makeFailure2 } = outcome_exports;
188
190
  const { makeTransformationError } = Utils.SmartTags;
189
191
  const strName = Cast.toString(main);
190
192
  const found = sourceTree.getVariable(strName);
191
- if (found === void 0) return makeFailure(makeTransformationError(`No variable stored under the name '${strName}'`));
192
- return makeSuccess(found);
193
+ if (found === void 0) return makeFailure2(makeTransformationError(`No variable stored under the name '${strName}'`));
194
+ return makeSuccess2(found);
193
195
  }
194
196
  });
195
197
 
@@ -198,11 +200,11 @@ var global = SmartTags.makeSmartTag({
198
200
  name: "global",
199
201
  defaultMode: "isolation",
200
202
  isolationInitType: "array",
201
- mainValueCheck: (m) => Outcome.makeSuccess(m),
203
+ mainValueCheck: (m) => makeSuccess(m),
202
204
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
203
205
  func: (_m, _a, { sourceTree }) => {
204
206
  const globalObject = sourceTree.options.globalObject ?? {};
205
- return Outcome.makeSuccess({ ...globalObject });
207
+ return makeSuccess({ ...globalObject });
206
208
  }
207
209
  });
208
210
 
@@ -211,41 +213,41 @@ var guess = SmartTags.makeSmartTag({
211
213
  name: "guess",
212
214
  defaultMode: "isolation",
213
215
  isolationInitType: "string",
214
- mainValueCheck: (m) => Outcome.makeSuccess(m),
215
- argsValueCheck: (a) => Outcome.makeSuccess(a),
216
+ mainValueCheck: (m) => makeSuccess(m),
217
+ argsValueCheck: (a) => makeSuccess(a),
216
218
  func: (main, args) => {
217
219
  const { typeCheck } = Utils.Tree.TypeChecks;
218
- const { makeSuccess } = Outcome;
220
+ const { makeSuccess: makeSuccess2 } = outcome_exports;
219
221
  let coalesced = main;
220
222
  for (const arg of args) coalesced = Utils.coalesceValues(coalesced, 0, arg);
221
- const { Text: Text2, Element: Element2, document } = Window.get();
222
- if (typeof coalesced !== "string" && !(coalesced instanceof Text2)) return makeSuccess(coalesced);
223
+ const { Text: Text2, Element: Element2, document } = get();
224
+ if (typeof coalesced !== "string" && !(coalesced instanceof Text2)) return makeSuccess2(coalesced);
223
225
  const strCoalesced = Cast.toString(coalesced);
224
- if (strCoalesced.trim().toLowerCase() === "true") return makeSuccess(true);
225
- if (strCoalesced.trim().toLowerCase() === "false") return makeSuccess(false);
226
- if (strCoalesced.trim().toLowerCase().match(/^\s*-?\s*(\d+(\.\d*)?|\.\d+)\s*$/)) return makeSuccess(parseFloat(strCoalesced));
227
- if (strCoalesced.trim().toLowerCase() === "null") return makeSuccess(null);
226
+ if (strCoalesced.trim().toLowerCase() === "true") return makeSuccess2(true);
227
+ if (strCoalesced.trim().toLowerCase() === "false") return makeSuccess2(false);
228
+ if (strCoalesced.trim().toLowerCase().match(/^\s*-?\s*(\d+(\.\d*)?|\.\d+)\s*$/)) return makeSuccess2(parseFloat(strCoalesced));
229
+ if (strCoalesced.trim().toLowerCase() === "null") return makeSuccess2(null);
228
230
  try {
229
231
  const parsed = JSON.parse(strCoalesced);
230
232
  const arrayChecked = typeCheck(parsed, "array");
231
233
  const recordChecked = typeCheck(parsed, "record");
232
- if (arrayChecked.success) return makeSuccess(arrayChecked.payload);
233
- if (recordChecked.success) return makeSuccess(recordChecked.payload);
234
+ if (arrayChecked.success) return makeSuccess2(arrayChecked.payload);
235
+ if (recordChecked.success) return makeSuccess2(recordChecked.payload);
234
236
  } catch (err) {
235
237
  }
236
238
  const div = document.createElement("div");
237
239
  div.innerHTML = strCoalesced;
238
240
  const divChildren = div.childNodes;
239
- if (divChildren.length === 0) return makeSuccess(coalesced);
241
+ if (divChildren.length === 0) return makeSuccess2(coalesced);
240
242
  const validDivChildren = Cast.toNodeList(Array.from(divChildren).filter((e) => {
241
243
  if (e instanceof Element2) return true;
242
244
  if (e instanceof Text2) return true;
243
245
  return false;
244
246
  }));
245
- if (validDivChildren.length > 1) return makeSuccess(validDivChildren);
247
+ if (validDivChildren.length > 1) return makeSuccess2(validDivChildren);
246
248
  const validDivFirstchild = validDivChildren.item(0);
247
- if (validDivChildren.length === 1 && validDivFirstchild instanceof Element2) return makeSuccess(validDivFirstchild);
248
- return makeSuccess(coalesced);
249
+ if (validDivChildren.length === 1 && validDivFirstchild instanceof Element2) return makeSuccess2(validDivFirstchild);
250
+ return makeSuccess2(coalesced);
249
251
  }
250
252
  });
251
253
 
@@ -254,17 +256,17 @@ var nodelist = SmartTags.makeSmartTag({
254
256
  name: "nodelist",
255
257
  defaultMode: "isolation",
256
258
  isolationInitType: "nodelist",
257
- mainValueCheck: (m) => Outcome.makeSuccess(m),
258
- argsValueCheck: (a) => Outcome.makeSuccess(a),
259
+ mainValueCheck: (m) => makeSuccess(m),
260
+ argsValueCheck: (a) => makeSuccess(a),
259
261
  func: (main, args) => {
260
- const { document } = Window.get();
262
+ const { document } = get();
261
263
  const returnedParent = document.createDocumentFragment();
262
264
  returnedParent.append(
263
265
  ...Array.from(Cast.toNodeList(main)),
264
266
  ...Array.from(Cast.toNodeList(args))
265
267
  );
266
268
  const returned = returnedParent.childNodes;
267
- return Outcome.makeSuccess(returned);
269
+ return makeSuccess(returned);
268
270
  }
269
271
  });
270
272
 
@@ -280,7 +282,7 @@ var number = SmartTags.makeSmartTag({
280
282
  const reduced = all.reduce((reduced2, curr) => {
281
283
  return reduced2 + Cast.toNumber(curr);
282
284
  }, 0);
283
- return Outcome.makeSuccess(reduced);
285
+ return makeSuccess(reduced);
284
286
  }
285
287
  });
286
288
 
@@ -291,7 +293,7 @@ var record = SmartTags.makeSmartTag({
291
293
  isolationInitType: "record",
292
294
  mainValueCheck: (i) => Utils.Tree.TypeChecks.typeCheck(i, "record"),
293
295
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "record"),
294
- func: (main, args) => Outcome.makeSuccess(args.reduce((reduced, current) => ({
296
+ func: (main, args) => makeSuccess(args.reduce((reduced, current) => ({
295
297
  ...reduced,
296
298
  ...current
297
299
  }), main))
@@ -299,7 +301,7 @@ var record = SmartTags.makeSmartTag({
299
301
 
300
302
  // src/agnostic/html/hyper-json/smart-tags/isolated/ref/index.ts
301
303
  var func = (main, _args, { sourceTree }) => {
302
- const { makeFailure, makeSuccess } = Outcome;
304
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
303
305
  const { makeTransformationError } = Utils.SmartTags;
304
306
  const strMain = Cast.toString(main);
305
307
  const resolveFrom = strMain.startsWith("/") ? sourceTree.root : sourceTree;
@@ -311,17 +313,17 @@ var func = (main, _args, { sourceTree }) => {
311
313
  return parsed;
312
314
  });
313
315
  const resolved = resolveFrom.resolve(splitted);
314
- if (resolved === void 0) return makeFailure(makeTransformationError(`No value was found at path: ${strMain}`));
315
- if (resolved === sourceTree) return makeFailure(makeTransformationError("A ref node cannot reference itself."));
316
- if (resolved.parents.includes(sourceTree)) return makeFailure(makeTransformationError("A ref node cannot reference one of its parents."));
317
- if (sourceTree.parents.includes(resolved)) return makeFailure(makeTransformationError("A ref node cannot reference one of its children."));
316
+ if (resolved === void 0) return makeFailure2(makeTransformationError(`No value was found at path: ${strMain}`));
317
+ if (resolved === sourceTree) return makeFailure2(makeTransformationError("A ref node cannot reference itself."));
318
+ if (resolved.parents.includes(sourceTree)) return makeFailure2(makeTransformationError("A ref node cannot reference one of its parents."));
319
+ if (sourceTree.parents.includes(resolved)) return makeFailure2(makeTransformationError("A ref node cannot reference one of its children."));
318
320
  const evaluated = resolved.evaluate();
319
321
  const { getType } = Utils.Tree.TypeChecks;
320
322
  if (getType(evaluated) === "transformer") {
321
323
  const transformer = evaluated;
322
- return makeSuccess(transformer.toMethod());
324
+ return makeSuccess2(transformer.toMethod());
323
325
  }
324
- return makeSuccess(evaluated);
326
+ return makeSuccess2(evaluated);
325
327
  };
326
328
  var ref = SmartTags.makeSmartTag({
327
329
  name: "ref",
@@ -344,7 +346,7 @@ var string = SmartTags.makeSmartTag({
344
346
  const reduced = all.reduce((reduced2, curr) => {
345
347
  return `${reduced2}${Cast.toString(curr)}`;
346
348
  }, "");
347
- return Outcome.makeSuccess(reduced);
349
+ return makeSuccess(reduced);
348
350
  }
349
351
  });
350
352
 
@@ -360,7 +362,7 @@ var text = SmartTags.makeSmartTag({
360
362
  const reduced = all.reduce((reduced2, curr) => {
361
363
  return Cast.toText(`${reduced2}${Cast.toText(curr)}`);
362
364
  }, Cast.toText(""));
363
- return Outcome.makeSuccess(reduced);
365
+ return makeSuccess(reduced);
364
366
  }
365
367
  });
366
368
 
@@ -374,7 +376,7 @@ var add = SmartTags.makeSmartTag({
374
376
  func: (main, args) => {
375
377
  const numMain = Cast.toNumber(main);
376
378
  const numArgs = args.map(Cast.toNumber);
377
- return Outcome.makeSuccess(numArgs.reduce((reduced, arg) => reduced + arg, numMain));
379
+ return makeSuccess(numArgs.reduce((reduced, arg) => reduced + arg, numMain));
378
380
  }
379
381
  });
380
382
 
@@ -386,10 +388,10 @@ var addclass = SmartTags.makeSmartTag({
386
388
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "element", "nodelist"),
387
389
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "string", "text"),
388
390
  func: (main, args) => {
389
- const { Element: Element2, document } = Window.get();
391
+ const { Element: Element2, document } = get();
390
392
  if (main instanceof Element2) {
391
393
  main.classList.add(...args.map((arg) => Cast.toString(arg)));
392
- return Outcome.makeSuccess(main);
394
+ return makeSuccess(main);
393
395
  }
394
396
  const children = Array.from(main).map((child) => {
395
397
  if (child instanceof Element2) {
@@ -401,7 +403,7 @@ var addclass = SmartTags.makeSmartTag({
401
403
  const frag = document.createDocumentFragment();
402
404
  frag.append(...children);
403
405
  const nodelist2 = frag.childNodes;
404
- return Outcome.makeSuccess(nodelist2);
406
+ return makeSuccess(nodelist2);
405
407
  }
406
408
  });
407
409
 
@@ -410,12 +412,12 @@ var and = SmartTags.makeSmartTag({
410
412
  name: "and",
411
413
  defaultMode: "coalescion",
412
414
  isolationInitType: "array",
413
- mainValueCheck: (m) => Outcome.makeSuccess(m),
414
- argsValueCheck: (a) => Outcome.makeSuccess(a),
415
+ mainValueCheck: (m) => makeSuccess(m),
416
+ argsValueCheck: (a) => makeSuccess(a),
415
417
  func: (main, args) => {
416
418
  const all = [main, ...args];
417
419
  const returned = all.every(Cast.toBoolean);
418
- return Outcome.makeSuccess(returned);
420
+ return makeSuccess(returned);
419
421
  }
420
422
  });
421
423
 
@@ -427,12 +429,12 @@ var append = SmartTags.makeSmartTag({
427
429
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "string", "text", "nodelist", "element", "array"),
428
430
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "string", "text", "nodelist", "element", "array"),
429
431
  func: (main, args) => {
430
- const { makeSuccess } = Outcome;
431
- const { Text: Text2, Element: Element2, NodeList: NodeList2, document } = Window.get();
432
- if (Array.isArray(main)) return makeSuccess([...main, ...args]);
432
+ const { makeSuccess: makeSuccess2 } = outcome_exports;
433
+ const { Text: Text2, Element: Element2, NodeList: NodeList2, document } = get();
434
+ if (Array.isArray(main)) return makeSuccess2([...main, ...args]);
433
435
  if (main instanceof Element2) {
434
436
  main.append(...Array.from(Cast.toNodeList(args)));
435
- return makeSuccess(main);
437
+ return makeSuccess2(main);
436
438
  }
437
439
  if (main instanceof NodeList2) {
438
440
  const frag = document.createDocumentFragment();
@@ -440,15 +442,15 @@ var append = SmartTags.makeSmartTag({
440
442
  ...Array.from(main),
441
443
  ...Array.from(Cast.toNodeList(args))
442
444
  );
443
- return makeSuccess(frag.childNodes);
445
+ return makeSuccess2(frag.childNodes);
444
446
  }
445
447
  if (main instanceof Text2) {
446
448
  const reducedString = args.reduce((reduced, arg) => {
447
449
  return `${reduced}${Cast.toString(arg)}`;
448
450
  }, Cast.toString(main));
449
- return makeSuccess(Cast.toText(reducedString));
451
+ return makeSuccess2(Cast.toText(reducedString));
450
452
  }
451
- return makeSuccess(args.reduce((reduced, arg) => {
453
+ return makeSuccess2(args.reduce((reduced, arg) => {
452
454
  return `${reduced}${Cast.toString(arg)}`;
453
455
  }, main));
454
456
  }
@@ -461,33 +463,33 @@ var at = SmartTags.makeSmartTag({
461
463
  isolationInitType: "array",
462
464
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "string", "text", "array", "nodelist"),
463
465
  argsValueCheck: (a) => {
464
- const { makeFailure, makeSuccess } = Outcome;
466
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
465
467
  const { makeArgsValueError } = Utils.SmartTags;
466
468
  const { getType, typeCheckMany } = Utils.Tree.TypeChecks;
467
- if (a.length === 0) return makeFailure(makeArgsValueError("number | string | text", "undefined", 0));
468
- if (a.length > 1) return makeFailure(makeArgsValueError("undefined", getType(a[1]) ?? "undefined", 1));
469
+ if (a.length === 0) return makeFailure2(makeArgsValueError("number | string | text", "undefined", 0));
470
+ if (a.length > 1) return makeFailure2(makeArgsValueError("undefined", getType(a[1]) ?? "undefined", 1));
469
471
  const checked = typeCheckMany(a, "number", "string", "text");
470
- if (checked.success) return makeSuccess(a);
472
+ if (checked.success) return makeSuccess2(a);
471
473
  return checked;
472
474
  },
473
475
  func: (main, args) => {
474
- const { makeFailure, makeSuccess } = Outcome;
476
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
475
477
  const { makeTransformationError } = Utils.SmartTags;
476
478
  const pos = args[0];
477
479
  const numPos = Cast.toNumber(pos);
478
480
  let found;
479
- const { NodeList: NodeList2 } = Window.get();
481
+ const { NodeList: NodeList2 } = get();
480
482
  if (typeof main === "string" || Array.isArray(main) || main instanceof NodeList2) {
481
483
  found = main[numPos];
482
484
  } else {
483
485
  const strMain = Cast.toString(main);
484
486
  found = strMain[numPos];
485
487
  }
486
- if (found === void 0) return makeFailure(makeTransformationError({
488
+ if (found === void 0) return makeFailure2(makeTransformationError({
487
489
  message: "Property does not exist"
488
490
  // [WIP] maybe more details here ?
489
491
  }));
490
- return makeSuccess(found);
492
+ return makeSuccess2(found);
491
493
  }
492
494
  });
493
495
 
@@ -497,24 +499,24 @@ var call = SmartTags.makeSmartTag({
497
499
  defaultMode: "coalescion",
498
500
  isolationInitType: "array",
499
501
  mainValueCheck: (m) => {
500
- const { makeFailure } = Outcome;
502
+ const { makeFailure: makeFailure2 } = outcome_exports;
501
503
  const { typeCheck, typeCheckMany, getType } = Utils.Tree.TypeChecks;
502
504
  const { makeMainValueError } = Utils.SmartTags;
503
505
  const isMethodCheck = typeCheck(m, "method");
504
506
  if (isMethodCheck.success) return isMethodCheck;
505
- if (!Array.isArray(m)) return makeFailure({
507
+ if (!Array.isArray(m)) return makeFailure2({
506
508
  expected: "method[]",
507
509
  found: getType(m) ?? "undefined"
508
510
  });
509
511
  const isMethodsArrayCheck = typeCheckMany(m, "method");
510
512
  if (isMethodsArrayCheck.success) return isMethodsArrayCheck;
511
- return makeFailure(makeMainValueError("method | method[]", getType(m) ?? "undefined"));
513
+ return makeFailure2(makeMainValueError("method | method[]", getType(m) ?? "undefined"));
512
514
  },
513
515
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "array"),
514
516
  func: (main, args) => {
515
- const { makeFailure, makeSuccess } = Outcome;
517
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
516
518
  const { makeTransformationError } = Utils.SmartTags;
517
- return makeFailure(makeTransformationError({
519
+ return makeFailure2(makeTransformationError({
518
520
  message: "This smart tag should not be used."
519
521
  }));
520
522
  }
@@ -525,9 +527,9 @@ var clone = SmartTags.makeSmartTag({
525
527
  name: "clone",
526
528
  defaultMode: "coalescion",
527
529
  isolationInitType: "array",
528
- mainValueCheck: (m) => Outcome.makeSuccess(m),
530
+ mainValueCheck: (m) => makeSuccess(m),
529
531
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
530
- func: (main) => Outcome.makeSuccess(Utils.clone(main))
532
+ func: (main) => makeSuccess(Utils.clone(main))
531
533
  });
532
534
 
533
535
  // src/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.ts
@@ -538,7 +540,7 @@ var deleteproperties = SmartTags.makeSmartTag({
538
540
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "record"),
539
541
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "string", "text"),
540
542
  func: (main, args) => {
541
- const { makeFailure, makeSuccess } = Outcome;
543
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
542
544
  const { makeTransformationError } = Utils.SmartTags;
543
545
  let returned = Utils.clone(main);
544
546
  for (const arg of args) {
@@ -546,10 +548,10 @@ var deleteproperties = SmartTags.makeSmartTag({
546
548
  try {
547
549
  returned = deepDeleteProperty(returned, strArg);
548
550
  } catch (err) {
549
- return makeFailure(makeTransformationError(`Cannot access ${strArg} from input record`));
551
+ return makeFailure2(makeTransformationError(`Cannot access ${strArg} from input record`));
550
552
  }
551
553
  }
552
- return makeSuccess(returned);
554
+ return makeSuccess2(returned);
553
555
  }
554
556
  });
555
557
  function deepDeleteProperty(record2, pathString) {
@@ -573,22 +575,22 @@ var equals = SmartTags.makeSmartTag({
573
575
  name: "equals",
574
576
  defaultMode: "coalescion",
575
577
  isolationInitType: "array",
576
- mainValueCheck: (m) => Outcome.makeSuccess(m),
578
+ mainValueCheck: (m) => makeSuccess(m),
577
579
  argsValueCheck: (a) => {
578
580
  const [first, ...others] = a;
579
- if (first === void 0) return Outcome.makeFailure(Utils.SmartTags.makeArgsValueError(
581
+ if (first === void 0) return makeFailure(Utils.SmartTags.makeArgsValueError(
580
582
  "value",
581
583
  "undefined",
582
584
  0
583
585
  ));
584
586
  const returned = [first, ...others];
585
- return Outcome.makeSuccess(returned);
587
+ return makeSuccess(returned);
586
588
  },
587
589
  func: (main, args) => {
588
- const { Text: Text2 } = Window.get();
590
+ const { Text: Text2 } = get();
589
591
  const normalizedMain = main instanceof Text2 ? Cast.toString(main) : main;
590
592
  const normalizedArgs = args.map((a) => a instanceof Text2 ? Cast.toString(a) : a);
591
- return Outcome.makeSuccess(normalizedArgs.every((arg) => arg === normalizedMain));
593
+ return makeSuccess(normalizedArgs.every((arg) => arg === normalizedMain));
592
594
  }
593
595
  });
594
596
 
@@ -599,19 +601,19 @@ var getattribute = SmartTags.makeSmartTag({
599
601
  isolationInitType: "array",
600
602
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "element"),
601
603
  argsValueCheck: (a) => {
602
- const { makeFailure, makeSuccess } = Outcome;
604
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
603
605
  const { typeCheckMany, getType } = Utils.Tree.TypeChecks;
604
606
  const { makeArgsValueError } = Utils.SmartTags;
605
- if (a.length === 0) return makeFailure(makeArgsValueError("string | Text", "undefined", 0));
606
- if (a.length > 1) return makeFailure(makeArgsValueError("undefined", getType(a[2]) ?? "undefined", 1));
607
+ if (a.length === 0) return makeFailure2(makeArgsValueError("string | Text", "undefined", 0));
608
+ if (a.length > 1) return makeFailure2(makeArgsValueError("undefined", getType(a[2]) ?? "undefined", 1));
607
609
  const checked = typeCheckMany(a, "string", "text");
608
- if (checked.success) return makeSuccess(checked.payload);
610
+ if (checked.success) return makeSuccess2(checked.payload);
609
611
  return checked;
610
612
  },
611
613
  func: (main, args) => {
612
614
  const name = Cast.toString(args[0]);
613
615
  const found = main.getAttribute(name);
614
- return Outcome.makeSuccess(found);
616
+ return makeSuccess(found);
615
617
  }
616
618
  });
617
619
 
@@ -629,7 +631,7 @@ var getproperties = SmartTags.makeSmartTag({
629
631
  if (val === void 0) return { ...reduced2 };
630
632
  return { ...reduced2, [key]: val };
631
633
  }, {});
632
- return Outcome.makeSuccess(reduced);
634
+ return makeSuccess(reduced);
633
635
  }
634
636
  });
635
637
 
@@ -640,28 +642,28 @@ var getproperty = SmartTags.makeSmartTag({
640
642
  isolationInitType: "array",
641
643
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "record"),
642
644
  argsValueCheck: (a) => {
643
- const { makeFailure, makeSuccess } = Outcome;
645
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
644
646
  const { makeArgsValueError } = Utils.SmartTags;
645
647
  const { getType, typeCheckMany } = Utils.Tree.TypeChecks;
646
- if (a.length === 0) return makeFailure(makeArgsValueError("string | Text", "undefined", 0));
647
- if (a.length !== 1) return makeFailure(makeArgsValueError("undefined", getType(a.at(1)) ?? "undefined", 1));
648
+ if (a.length === 0) return makeFailure2(makeArgsValueError("string | Text", "undefined", 0));
649
+ if (a.length !== 1) return makeFailure2(makeArgsValueError("undefined", getType(a.at(1)) ?? "undefined", 1));
648
650
  const checked = typeCheckMany(a, "string", "text");
649
651
  if (!checked.success) return checked;
650
- return makeSuccess(checked.payload);
652
+ return makeSuccess2(checked.payload);
651
653
  },
652
654
  func: (main, args) => {
653
655
  const { getType } = Utils.Tree.TypeChecks;
654
656
  const { makeTransformationError } = Utils.SmartTags;
655
- const { makeFailure, makeSuccess } = Outcome;
657
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
656
658
  const [propName] = args;
657
659
  const strPropName = Cast.toString(propName);
658
660
  try {
659
661
  const found = deepGetProperty(main, strPropName);
660
662
  const foundType = getType(found);
661
- if (foundType !== "transformer") return makeSuccess(found);
662
- return makeFailure(makeTransformationError(`Forbidden access to key: '${strPropName}'`));
663
+ if (foundType !== "transformer") return makeSuccess2(found);
664
+ return makeFailure2(makeTransformationError(`Forbidden access to key: '${strPropName}'`));
663
665
  } catch (err) {
664
- return makeFailure(makeTransformationError(`Impossible to access ${strPropName}`));
666
+ return makeFailure2(makeTransformationError(`Impossible to access ${strPropName}`));
665
667
  }
666
668
  }
667
669
  });
@@ -689,7 +691,7 @@ var textItemSymbol = "%%-hyperjson-text-%%";
689
691
  var nodelistItemSymbol = "%%-hyperjson-nodelist-%%";
690
692
  var elementItemSymbol = "%%-hyperjson-element-%%";
691
693
  function stringify(val) {
692
- const { Text: Text2, Element: Element2, NodeList: NodeList2 } = Window.get();
694
+ const { Text: Text2, Element: Element2, NodeList: NodeList2 } = get();
693
695
  if (typeof val === "string" || typeof val === "number" || typeof val === "boolean" || val === null) return JSON.stringify(val);
694
696
  if (val instanceof Text2) return JSON.stringify(`${textItemSymbol}${val.textContent}`);
695
697
  if (val instanceof Element2) return JSON.stringify(`${elementItemSymbol}${val.outerHTML}`);
@@ -707,7 +709,7 @@ function stringify(val) {
707
709
  );
708
710
  }
709
711
  function parse(val) {
710
- const { document } = Window.get();
712
+ const { document } = get();
711
713
  const jsonParsed = JSON.parse(val);
712
714
  if (typeof jsonParsed === "number" || typeof jsonParsed === "boolean" || jsonParsed === null) return jsonParsed;
713
715
  if (Array.isArray(jsonParsed)) return jsonParsed.map((e) => typeof e === "string" ? parse(e) : e);
@@ -739,11 +741,11 @@ var hjstringify = SmartTags.makeSmartTag({
739
741
  name: "hjstringify",
740
742
  defaultMode: "coalescion",
741
743
  isolationInitType: "array",
742
- mainValueCheck: (m) => Outcome.makeSuccess(m),
744
+ mainValueCheck: (m) => makeSuccess(m),
743
745
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
744
746
  func: (main) => {
745
747
  const stringified = stringify(main);
746
- return Outcome.makeSuccess(stringified);
748
+ return makeSuccess(stringified);
747
749
  }
748
750
  });
749
751
 
@@ -757,9 +759,9 @@ var hjparse = SmartTags.makeSmartTag({
757
759
  func: (main) => {
758
760
  try {
759
761
  const parsed = parse(`${main}`);
760
- return Outcome.makeSuccess(parsed);
762
+ return makeSuccess(parsed);
761
763
  } catch (err) {
762
- return Outcome.makeFailure({
764
+ return makeFailure({
763
765
  details: unknownToString(err)
764
766
  });
765
767
  }
@@ -773,15 +775,15 @@ var ifFunc = SmartTags.makeSmartTag({
773
775
  isolationInitType: "array",
774
776
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "boolean"),
775
777
  argsValueCheck: (a) => {
776
- const { makeFailure, makeSuccess } = Outcome;
778
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
777
779
  const { makeArgsValueError } = Utils.SmartTags;
778
- if (a.length > 2) return makeFailure(makeArgsValueError("value", "undefined", a.length));
779
- if (a.length < 2) return makeFailure(makeArgsValueError("undefined", "value", 2));
780
- return makeSuccess(a);
780
+ if (a.length > 2) return makeFailure2(makeArgsValueError("value", "undefined", a.length));
781
+ if (a.length < 2) return makeFailure2(makeArgsValueError("undefined", "value", 2));
782
+ return makeSuccess2(a);
781
783
  },
782
784
  func: (main, args) => {
783
785
  const [then, otherwise] = args;
784
- return Outcome.makeSuccess(main ? then : otherwise);
786
+ return makeSuccess(main ? then : otherwise);
785
787
  }
786
788
  });
787
789
 
@@ -790,29 +792,29 @@ var initialize = SmartTags.makeSmartTag({
790
792
  name: "initialize",
791
793
  defaultMode: "coalescion",
792
794
  isolationInitType: "array",
793
- mainValueCheck: (m) => Outcome.makeSuccess(m),
795
+ mainValueCheck: (m) => makeSuccess(m),
794
796
  argsValueCheck: (a) => {
795
- const { makeFailure, makeSuccess } = Outcome;
797
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
796
798
  const { getType, typeCheck } = Utils.Tree.TypeChecks;
797
799
  const { makeArgsValueError } = Utils.SmartTags;
798
800
  const first = a[0];
799
- if (first === void 0) return makeFailure(makeArgsValueError("string | text", "undefined", 0));
800
- if (a.length > 1) return makeFailure(makeArgsValueError("undefined", getType(a[1]) ?? "undefined", 1));
801
+ if (first === void 0) return makeFailure2(makeArgsValueError("string | text", "undefined", 0));
802
+ if (a.length > 1) return makeFailure2(makeArgsValueError("undefined", getType(a[1]) ?? "undefined", 1));
801
803
  const firstChecked = typeCheck(first, "string", "text");
802
- if (!firstChecked.success) return makeFailure(makeArgsValueError(firstChecked.error.expected, firstChecked.error.found, 0));
803
- return makeSuccess(a);
804
+ if (!firstChecked.success) return makeFailure2(makeArgsValueError(firstChecked.error.expected, firstChecked.error.found, 0));
805
+ return makeSuccess2(a);
804
806
  },
805
807
  func: (_main, args) => {
806
- const { makeFailure, makeSuccess } = Outcome;
808
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
807
809
  const { makeTransformationError } = Utils.SmartTags;
808
810
  const { getInitialValueFromTypeName } = Utils.Tree;
809
811
  const { isValueTypeName } = Utils.Tree.TypeChecks;
810
812
  const firstArg = args[0];
811
813
  const strFirstArg = Cast.toString(firstArg).trim().toLowerCase();
812
814
  const isValueType = isValueTypeName(strFirstArg);
813
- if (!isValueType || strFirstArg === "transformer" || strFirstArg === "method") return makeFailure(makeTransformationError(`${strFirstArg} is not a valid type`));
815
+ if (!isValueType || strFirstArg === "transformer" || strFirstArg === "method") return makeFailure2(makeTransformationError(`${strFirstArg} is not a valid type`));
814
816
  const initialized = getInitialValueFromTypeName(strFirstArg);
815
- return makeSuccess(initialized);
817
+ return makeSuccess2(initialized);
816
818
  }
817
819
  });
818
820
 
@@ -824,10 +826,10 @@ var join = SmartTags.makeSmartTag({
824
826
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "array", "nodelist"),
825
827
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "string", "text"),
826
828
  func: (main, args) => {
827
- const { makeSuccess } = Outcome;
829
+ const { makeSuccess: makeSuccess2 } = outcome_exports;
828
830
  const joiner = Cast.toString(args);
829
- if (Array.isArray(main)) return makeSuccess(main.map(Cast.toString).join(joiner));
830
- return makeSuccess(Array.from(main).map(Cast.toString).join(joiner));
831
+ if (Array.isArray(main)) return makeSuccess2(main.map(Cast.toString).join(joiner));
832
+ return makeSuccess2(Array.from(main).map(Cast.toString).join(joiner));
831
833
  }
832
834
  });
833
835
 
@@ -839,11 +841,11 @@ var length = SmartTags.makeSmartTag({
839
841
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "string", "nodelist"),
840
842
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
841
843
  func: (main) => {
842
- const { makeSuccess } = Outcome;
843
- const { Text: Text2, NodeList: NodeList2, Element: Element2 } = Window.get();
844
- if (typeof main === "string" || main instanceof NodeList2 || main instanceof Text2 || Array.isArray(main)) return makeSuccess(main.length);
845
- if (main instanceof Element2) return makeSuccess(main.childNodes.length);
846
- return makeSuccess(Object.keys(main).length);
844
+ const { makeSuccess: makeSuccess2 } = outcome_exports;
845
+ const { Text: Text2, NodeList: NodeList2, Element: Element2 } = get();
846
+ if (typeof main === "string" || main instanceof NodeList2 || main instanceof Text2 || Array.isArray(main)) return makeSuccess2(main.length);
847
+ if (main instanceof Element2) return makeSuccess2(main.childNodes.length);
848
+ return makeSuccess2(Object.keys(main).length);
847
849
  }
848
850
  });
849
851
 
@@ -862,7 +864,7 @@ var map = SmartTags.makeSmartTag({
862
864
  for (const arg of args) {
863
865
  const { transformer } = arg;
864
866
  const applied = transformer.apply(reduced);
865
- if (!applied.success) return Outcome.makeFailure(makeTransformationError({
867
+ if (!applied.success) return makeFailure(makeTransformationError({
866
868
  message: "Subtransformation failure.",
867
869
  onTransformed: reduced,
868
870
  transformerAt: args.indexOf(arg),
@@ -874,7 +876,7 @@ var map = SmartTags.makeSmartTag({
874
876
  }
875
877
  mapped.push(reduced);
876
878
  }
877
- return Outcome.makeSuccess(mapped);
879
+ return makeSuccess(mapped);
878
880
  }
879
881
  });
880
882
 
@@ -885,7 +887,7 @@ var negate = SmartTags.makeSmartTag({
885
887
  isolationInitType: "array",
886
888
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "boolean"),
887
889
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
888
- func: (main) => Outcome.makeSuccess(!main)
890
+ func: (main) => makeSuccess(!main)
889
891
  });
890
892
 
891
893
  // src/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.ts
@@ -895,19 +897,19 @@ var notrailing = SmartTags.makeSmartTag({
895
897
  isolationInitType: "array",
896
898
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "string", "text"),
897
899
  argsValueCheck: (a) => {
898
- const { makeSuccess, makeFailure } = Outcome;
900
+ const { makeSuccess: makeSuccess2, makeFailure: makeFailure2 } = outcome_exports;
899
901
  const { makeArgsValueError } = Utils.SmartTags;
900
902
  const { getType, typeCheck } = Utils.Tree.TypeChecks;
901
- if (a.length === 0) return makeSuccess([]);
902
- if (a.length > 1) return makeFailure(makeArgsValueError("undefined", getType(a[1]) ?? "undefined", 1));
903
+ if (a.length === 0) return makeSuccess2([]);
904
+ if (a.length > 1) return makeFailure2(makeArgsValueError("undefined", getType(a[1]) ?? "undefined", 1));
903
905
  const [first] = a;
904
906
  const firstChecked = typeCheck(first, "string", "text");
905
- if (!firstChecked.success) return makeFailure(makeArgsValueError(
907
+ if (!firstChecked.success) return makeFailure2(makeArgsValueError(
906
908
  firstChecked.error.expected,
907
909
  firstChecked.error.found,
908
910
  0
909
911
  ));
910
- return makeSuccess([firstChecked.payload]);
912
+ return makeSuccess2([firstChecked.payload]);
911
913
  },
912
914
  func: (main, args) => {
913
915
  const strMain = Cast.toString(main);
@@ -915,8 +917,8 @@ var notrailing = SmartTags.makeSmartTag({
915
917
  const strFirstArg = Cast.toString(firstArg ?? "/");
916
918
  let strOutput = strMain;
917
919
  while (strOutput.endsWith(strFirstArg)) strOutput = strOutput.slice(0, -1);
918
- if (typeof main === "string") return Outcome.makeSuccess(strOutput);
919
- return Outcome.makeSuccess(Cast.toText(strOutput));
920
+ if (typeof main === "string") return makeSuccess(strOutput);
921
+ return makeSuccess(Cast.toText(strOutput));
920
922
  }
921
923
  });
922
924
 
@@ -925,12 +927,12 @@ var or = SmartTags.makeSmartTag({
925
927
  name: "or",
926
928
  defaultMode: "coalescion",
927
929
  isolationInitType: "array",
928
- mainValueCheck: (m) => Outcome.makeSuccess(m),
929
- argsValueCheck: (a) => Outcome.makeSuccess(a),
930
+ mainValueCheck: (m) => makeSuccess(m),
931
+ argsValueCheck: (a) => makeSuccess(a),
930
932
  func: (main, args) => {
931
933
  const all = [main, ...args];
932
934
  const returned = all.some(Cast.toBoolean);
933
- return Outcome.makeSuccess(returned);
935
+ return makeSuccess(returned);
934
936
  }
935
937
  });
936
938
 
@@ -942,12 +944,12 @@ var pickrandom = SmartTags.makeSmartTag({
942
944
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "array"),
943
945
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
944
946
  func: (main) => {
945
- const { makeSuccess, makeFailure } = Outcome;
947
+ const { makeSuccess: makeSuccess2, makeFailure: makeFailure2 } = outcome_exports;
946
948
  const { makeTransformationError } = Utils.SmartTags;
947
949
  const pos = Math.floor(Math.random() * main.length);
948
950
  const found = main[pos];
949
- if (found === void 0) return makeFailure(makeTransformationError("Cannot pick inside empty array"));
950
- return makeSuccess(found);
951
+ if (found === void 0) return makeFailure2(makeTransformationError("Cannot pick inside empty array"));
952
+ return makeSuccess2(found);
951
953
  }
952
954
  });
953
955
 
@@ -958,18 +960,18 @@ var print = SmartTags.makeSmartTag({
958
960
  isolationInitType: "array",
959
961
  mainValueCheck: (m) => {
960
962
  const { getType } = Utils.Tree.TypeChecks;
961
- const { makeSuccess, makeFailure } = Outcome;
963
+ const { makeSuccess: makeSuccess2, makeFailure: makeFailure2 } = outcome_exports;
962
964
  const { makeMainValueError } = Utils.SmartTags;
963
- return getType(m) === "transformer" ? makeFailure(makeMainValueError("Exclude<value, transformer>", "transformer")) : makeSuccess(m);
965
+ return getType(m) === "transformer" ? makeFailure2(makeMainValueError("Exclude<value, transformer>", "transformer")) : makeSuccess2(m);
964
966
  },
965
- argsValueCheck: (a) => Outcome.makeSuccess(a),
967
+ argsValueCheck: (a) => makeSuccess(a),
966
968
  func: (main, args, details) => {
967
969
  console.group("print");
968
970
  console.log("Main:", main);
969
971
  console.log("Args:", ...args);
970
972
  console.log("Tree:", details.sourceTree);
971
973
  console.groupEnd();
972
- return Outcome.makeSuccess(main);
974
+ return makeSuccess(main);
973
975
  }
974
976
  });
975
977
 
@@ -981,17 +983,17 @@ var populate = SmartTags.makeSmartTag({
981
983
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "record"),
982
984
  argsValueCheck: (a) => {
983
985
  const [first, ...others] = a;
984
- const { makeFailure, makeSuccess } = Outcome;
986
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
985
987
  const { makeArgsValueError } = Utils.SmartTags;
986
988
  const { typeCheck, typeCheckMany, getType } = Utils.Tree.TypeChecks;
987
989
  const firstChecked = typeCheck(first, "string", "text", "nodelist", "element");
988
- if (!firstChecked.success) return makeFailure(makeArgsValueError(
990
+ if (!firstChecked.success) return makeFailure2(makeArgsValueError(
989
991
  firstChecked.error.expected,
990
992
  firstChecked.error.found,
991
993
  0
992
994
  ));
993
995
  const othersChecked = typeCheckMany(others, "array");
994
- if (!othersChecked.success) return makeFailure(makeArgsValueError(
996
+ if (!othersChecked.success) return makeFailure2(makeArgsValueError(
995
997
  othersChecked.error.expected,
996
998
  othersChecked.error.found,
997
999
  othersChecked.error.position + 1
@@ -1001,16 +1003,16 @@ var populate = SmartTags.makeSmartTag({
1001
1003
  const [first2, second] = arg;
1002
1004
  const firstChecked2 = typeCheck(first2, "string", "text");
1003
1005
  const secondChecked = typeCheck(second, "string", "text");
1004
- if (!firstChecked2.success || !secondChecked.success) return makeFailure(makeArgsValueError(
1006
+ if (!firstChecked2.success || !secondChecked.success) return makeFailure2(makeArgsValueError(
1005
1007
  "[string | Text, string | Text]",
1006
1008
  `[${getType(first2)}, ${getType(second)}]`,
1007
1009
  argPosNum + 1
1008
1010
  ));
1009
1011
  }
1010
- return makeSuccess(a);
1012
+ return makeSuccess2(a);
1011
1013
  },
1012
1014
  func: (main, args) => {
1013
- const { makeSuccess, makeFailure } = Outcome;
1015
+ const { makeSuccess: makeSuccess2, makeFailure: makeFailure2 } = outcome_exports;
1014
1016
  const { makeTransformationError } = Utils.SmartTags;
1015
1017
  const record2 = main;
1016
1018
  const [template, ...actions] = args;
@@ -1021,17 +1023,17 @@ var populate = SmartTags.makeSmartTag({
1021
1023
  const replaced = replaceAll(returnedStr, Cast.toString(toReplace), Cast.toString(value));
1022
1024
  returnedStr = replaced;
1023
1025
  } catch (err) {
1024
- return makeFailure(makeTransformationError({
1026
+ return makeFailure2(makeTransformationError({
1025
1027
  message: "Something went wrong",
1026
1028
  subTransformerError: err
1027
1029
  }));
1028
1030
  }
1029
1031
  }
1030
- const { Text: Text2, NodeList: NodeList2 } = Window.get();
1031
- if (typeof template === "string") return makeSuccess(returnedStr);
1032
- if (template instanceof Text2) return makeSuccess(Cast.toText(returnedStr));
1033
- if (template instanceof NodeList2) return makeSuccess(Cast.toNodeList(returnedStr));
1034
- return makeSuccess(Cast.toElement(returnedStr));
1032
+ const { Text: Text2, NodeList: NodeList2 } = get();
1033
+ if (typeof template === "string") return makeSuccess2(returnedStr);
1034
+ if (template instanceof Text2) return makeSuccess2(Cast.toText(returnedStr));
1035
+ if (template instanceof NodeList2) return makeSuccess2(Cast.toNodeList(returnedStr));
1036
+ return makeSuccess2(Cast.toElement(returnedStr));
1035
1037
  }
1036
1038
  });
1037
1039
 
@@ -1041,8 +1043,8 @@ var push = SmartTags.makeSmartTag({
1041
1043
  defaultMode: "coalescion",
1042
1044
  isolationInitType: "array",
1043
1045
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "array"),
1044
- argsValueCheck: (a) => Outcome.makeSuccess(a),
1045
- func: (main, args) => Outcome.makeSuccess([...main, ...args])
1046
+ argsValueCheck: (a) => makeSuccess(a),
1047
+ func: (main, args) => makeSuccess([...main, ...args])
1046
1048
  });
1047
1049
 
1048
1050
  // src/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.ts
@@ -1052,26 +1054,26 @@ var pusheach = SmartTags.makeSmartTag({
1052
1054
  isolationInitType: "array",
1053
1055
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "array"),
1054
1056
  argsValueCheck: (a) => {
1055
- const { makeSuccess, makeFailure } = Outcome;
1057
+ const { makeSuccess: makeSuccess2, makeFailure: makeFailure2 } = outcome_exports;
1056
1058
  const { typeCheck } = Utils.Tree.TypeChecks;
1057
1059
  const { makeArgsValueError } = Utils.SmartTags;
1058
1060
  for (const [argPos, arg] of Object.entries(a)) {
1059
1061
  const numPos = parseInt(argPos);
1060
1062
  const checked = typeCheck(arg, "array");
1061
- if (!checked.success) return makeFailure(makeArgsValueError(
1063
+ if (!checked.success) return makeFailure2(makeArgsValueError(
1062
1064
  checked.error.expected,
1063
1065
  checked.error.found,
1064
1066
  numPos
1065
1067
  ));
1066
1068
  }
1067
- return makeSuccess(a);
1069
+ return makeSuccess2(a);
1068
1070
  },
1069
1071
  func: (main, args) => {
1070
1072
  const returned = [...main];
1071
1073
  for (const arg of args) {
1072
1074
  returned.push(...arg);
1073
1075
  }
1074
- return Outcome.makeSuccess(returned);
1076
+ return makeSuccess(returned);
1075
1077
  }
1076
1078
  });
1077
1079
 
@@ -1082,7 +1084,7 @@ var recordtoarray = SmartTags.makeSmartTag({
1082
1084
  isolationInitType: "array",
1083
1085
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "record"),
1084
1086
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1085
- func: (main) => Outcome.makeSuccess(Object.values(main))
1087
+ func: (main) => makeSuccess(Object.values(main))
1086
1088
  });
1087
1089
 
1088
1090
  // src/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.ts
@@ -1096,19 +1098,19 @@ var removeattribute = SmartTags.makeSmartTag({
1096
1098
  return typeCheck(m, "element", "nodelist");
1097
1099
  },
1098
1100
  argsValueCheck: (a) => {
1099
- const { makeFailure, makeSuccess } = Outcome;
1101
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1100
1102
  const { typeCheckMany, getType } = Utils.Tree.TypeChecks;
1101
1103
  const { makeArgsValueError } = Utils.SmartTags;
1102
- if (a.length === 0) return makeFailure(makeArgsValueError("string | Text", "undefined", 0));
1103
- if (a.length > 1) return makeFailure(makeArgsValueError("undefined", getType(a[2]) ?? "undefined", 1));
1104
+ if (a.length === 0) return makeFailure2(makeArgsValueError("string | Text", "undefined", 0));
1105
+ if (a.length > 1) return makeFailure2(makeArgsValueError("undefined", getType(a[2]) ?? "undefined", 1));
1104
1106
  const checked = typeCheckMany(a, "string", "text");
1105
- if (checked.success) return makeSuccess(checked.payload);
1107
+ if (checked.success) return makeSuccess2(checked.payload);
1106
1108
  return checked;
1107
1109
  },
1108
1110
  func: (main, args) => {
1109
1111
  const argsStr = args.map((e) => Cast.toString(e));
1110
1112
  const [name] = argsStr;
1111
- const { Element: Element2, NodeList: NodeList2, document } = Window.get();
1113
+ const { Element: Element2, NodeList: NodeList2, document } = get();
1112
1114
  if (main instanceof NodeList2) {
1113
1115
  const children = Array.from(main).map((child) => {
1114
1116
  const cloned = Utils.clone(child);
@@ -1118,13 +1120,13 @@ var removeattribute = SmartTags.makeSmartTag({
1118
1120
  const frag = document.createDocumentFragment();
1119
1121
  frag.append(...children);
1120
1122
  const nodelist2 = frag.childNodes;
1121
- return Outcome.makeSuccess(nodelist2);
1123
+ return makeSuccess(nodelist2);
1122
1124
  } else {
1123
1125
  const mainArr = Array.isArray(main) ? main : [main];
1124
1126
  const mainArrCloned = mainArr.map((e) => Utils.clone(e));
1125
1127
  mainArrCloned.forEach((e) => e.removeAttribute(name));
1126
- if (Array.isArray(main)) return Outcome.makeSuccess(mainArrCloned);
1127
- return Outcome.makeSuccess(mainArrCloned[0]);
1128
+ if (Array.isArray(main)) return makeSuccess(mainArrCloned);
1129
+ return makeSuccess(mainArrCloned[0]);
1128
1130
  }
1129
1131
  }
1130
1132
  });
@@ -1137,10 +1139,10 @@ var removeclass = SmartTags.makeSmartTag({
1137
1139
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "element", "nodelist"),
1138
1140
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "string", "text"),
1139
1141
  func: (main, args) => {
1140
- const { Element: Element2, document } = Window.get();
1142
+ const { Element: Element2, document } = get();
1141
1143
  if (main instanceof Element2) {
1142
1144
  main.classList.remove(...args.map((arg) => Cast.toString(arg)));
1143
- return Outcome.makeSuccess(main);
1145
+ return makeSuccess(main);
1144
1146
  }
1145
1147
  const children = Array.from(main).map((child) => {
1146
1148
  if (child instanceof Element2) {
@@ -1152,7 +1154,7 @@ var removeclass = SmartTags.makeSmartTag({
1152
1154
  const frag = document.createDocumentFragment();
1153
1155
  frag.append(...children);
1154
1156
  const nodelist2 = frag.childNodes;
1155
- return Outcome.makeSuccess(nodelist2);
1157
+ return makeSuccess(nodelist2);
1156
1158
  }
1157
1159
  });
1158
1160
 
@@ -1163,24 +1165,24 @@ var renameproperty = SmartTags.makeSmartTag({
1163
1165
  isolationInitType: "array",
1164
1166
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "record"),
1165
1167
  argsValueCheck: (a) => {
1166
- const { makeFailure, makeSuccess } = Outcome;
1168
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1167
1169
  const { typeCheck, typeCheckMany } = Utils.Tree.TypeChecks;
1168
1170
  const checked = typeCheckMany(a, "string", "text");
1169
1171
  if (!checked.success) return checked;
1170
1172
  const [first, second] = a;
1171
1173
  const firstChecked = typeCheck(first, "string", "text");
1172
- if (!firstChecked.success) return makeFailure(Utils.SmartTags.makeArgsValueError(
1174
+ if (!firstChecked.success) return makeFailure2(Utils.SmartTags.makeArgsValueError(
1173
1175
  firstChecked.error.expected,
1174
1176
  firstChecked.error.found,
1175
1177
  0
1176
1178
  ));
1177
1179
  const secondChecked = typeCheck(second, "string", "text");
1178
- if (!secondChecked.success) return makeFailure(Utils.SmartTags.makeArgsValueError(
1180
+ if (!secondChecked.success) return makeFailure2(Utils.SmartTags.makeArgsValueError(
1179
1181
  secondChecked.error.expected,
1180
1182
  secondChecked.error.found,
1181
1183
  0
1182
1184
  ));
1183
- return makeSuccess([firstChecked.payload, secondChecked.payload]);
1185
+ return makeSuccess2([firstChecked.payload, secondChecked.payload]);
1184
1186
  },
1185
1187
  func: (main, args) => {
1186
1188
  const [oldKey, newKey] = args.map(Cast.toString);
@@ -1189,7 +1191,7 @@ var renameproperty = SmartTags.makeSmartTag({
1189
1191
  const targetKey = key === oldKey ? newKey : key;
1190
1192
  returned[targetKey] = value;
1191
1193
  });
1192
- return Outcome.makeSuccess(returned);
1194
+ return makeSuccess(returned);
1193
1195
  }
1194
1196
  });
1195
1197
 
@@ -1198,38 +1200,43 @@ var replace = SmartTags.makeSmartTag({
1198
1200
  name: "replace",
1199
1201
  defaultMode: "coalescion",
1200
1202
  isolationInitType: "array",
1201
- mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "string", "text", "nodelist", "element"),
1203
+ mainValueCheck: (m) => makeSuccess(m),
1202
1204
  argsValueCheck: (a) => {
1203
- const { makeFailure, makeSuccess } = Outcome;
1205
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1204
1206
  const { getType, typeCheckMany } = Utils.Tree.TypeChecks;
1205
1207
  const { makeArgsValueError } = Utils.SmartTags;
1206
1208
  const expectedStr = "string | Text | NodeListOf<Element | Text> | Element";
1207
- if (a.length === 0) return makeFailure(makeArgsValueError(expectedStr, "undefined", 0));
1208
- if (a.length === 1) return makeFailure(makeArgsValueError(expectedStr, "undefined", 1));
1209
- if (a.length > 2) return makeFailure(makeArgsValueError("undefined", getType(a.at(2)) ?? "undefined", 3));
1209
+ if (a.length === 0) return makeFailure2(makeArgsValueError(expectedStr, "undefined", 0));
1210
+ if (a.length === 1) return makeFailure2(makeArgsValueError(expectedStr, "undefined", 1));
1211
+ if (a.length > 2) return makeFailure2(makeArgsValueError("undefined", getType(a.at(2)) ?? "undefined", 3));
1210
1212
  const checked = typeCheckMany(a, "string", "text", "nodelist", "element");
1211
1213
  if (!checked.success) return checked;
1212
- return makeSuccess(checked.payload);
1214
+ return makeSuccess2(checked.payload);
1213
1215
  },
1214
1216
  func: (main, args) => {
1215
1217
  const [toReplace, replacer] = args;
1216
- const strMain = Cast.toString(main);
1217
- const strToReplace = Cast.toString(toReplace);
1218
- const strReplacer = Cast.toString(replacer);
1219
- const strReplaced = replaceAll(strMain, strToReplace, strReplacer);
1220
- let returned;
1221
- if (typeof main === "string") {
1222
- returned = strReplaced;
1223
- } else if (main instanceof Text) {
1224
- returned = Cast.toText(strReplaced);
1225
- } else if (main instanceof Element) {
1226
- returned = Cast.toElement(strReplaced);
1227
- } else {
1228
- returned = Cast.toNodeList(strReplaced);
1229
- }
1230
- return Outcome.makeSuccess(returned);
1218
+ return makeSuccess(
1219
+ replacerFunc(
1220
+ main,
1221
+ Cast.toString(toReplace),
1222
+ Cast.toString(replacer)
1223
+ )
1224
+ );
1231
1225
  }
1232
1226
  });
1227
+ function replacerFunc(value, toReplace, replacer) {
1228
+ if (typeof value === "number" || typeof value === "boolean" || value === null || value instanceof Method) return value;
1229
+ if (typeof value === "string") return value.replaceAll(toReplace, replacer);
1230
+ const { Text: Text2, Element: Element2, NodeList: NodeList2 } = get();
1231
+ if (value instanceof Text2) return Cast.toText(Cast.toString(value).replaceAll(toReplace, replacer));
1232
+ if (value instanceof Element2) return Cast.toElement(Cast.toString(value).replaceAll(toReplace, replacer));
1233
+ if (value instanceof NodeList2) return Cast.toNodeList(Cast.toString(value).replaceAll(toReplace, replacer));
1234
+ if (Array.isArray(value)) return value.map((val) => replacerFunc(val, toReplace, replacer));
1235
+ return Object.entries(value).reduce((acc, [key, val]) => ({
1236
+ ...acc,
1237
+ [key]: replacerFunc(val, toReplace, replacer)
1238
+ }), {});
1239
+ }
1233
1240
 
1234
1241
  // src/agnostic/html/hyper-json/smart-tags/coalesced/select/index.ts
1235
1242
  var select = SmartTags.makeSmartTag({
@@ -1239,7 +1246,7 @@ var select = SmartTags.makeSmartTag({
1239
1246
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "nodelist", "element"),
1240
1247
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "string", "text"),
1241
1248
  func: (main, args) => {
1242
- const { document, Element: Element2 } = Window.get();
1249
+ const { document, Element: Element2 } = get();
1243
1250
  const selectedFragment = document.createDocumentFragment();
1244
1251
  if (main instanceof Element2) {
1245
1252
  for (const arg of args) {
@@ -1257,7 +1264,7 @@ var select = SmartTags.makeSmartTag({
1257
1264
  }
1258
1265
  }
1259
1266
  const selected = selectedFragment.childNodes;
1260
- return Outcome.makeSuccess(selected);
1267
+ return makeSuccess(selected);
1261
1268
  }
1262
1269
  });
1263
1270
 
@@ -1266,23 +1273,23 @@ var set = SmartTags.makeSmartTag({
1266
1273
  name: "set",
1267
1274
  defaultMode: "coalescion",
1268
1275
  isolationInitType: "array",
1269
- mainValueCheck: (m) => Outcome.makeSuccess(m),
1276
+ mainValueCheck: (m) => makeSuccess(m),
1270
1277
  argsValueCheck: (a) => {
1271
- const { makeFailure, makeSuccess } = Outcome;
1278
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1272
1279
  const { makeArgsValueError } = Utils.SmartTags;
1273
1280
  const { getType, typeCheck } = Utils.Tree.TypeChecks;
1274
1281
  const first = a[0];
1275
- if (first === void 0) return makeFailure(makeArgsValueError("string | text", "undefined", 0));
1276
- if (a.length > 2) return makeFailure(makeArgsValueError("undefined", getType(a[2]) ?? "undefined", 2));
1282
+ if (first === void 0) return makeFailure2(makeArgsValueError("string | text", "undefined", 0));
1283
+ if (a.length > 2) return makeFailure2(makeArgsValueError("undefined", getType(a[2]) ?? "undefined", 2));
1277
1284
  const firstChecked = typeCheck(first, "string", "text");
1278
1285
  if (!firstChecked.success) return firstChecked;
1279
- else return makeSuccess(a);
1286
+ else return makeSuccess2(a);
1280
1287
  },
1281
1288
  func: (main, args, { sourceTree }) => {
1282
1289
  const [first, second] = args;
1283
1290
  const strFirst = Cast.toString(first);
1284
1291
  sourceTree.setVariable(strFirst, second === void 0 ? main : second);
1285
- return Outcome.makeSuccess(main);
1292
+ return makeSuccess(main);
1286
1293
  }
1287
1294
  });
1288
1295
 
@@ -1297,20 +1304,20 @@ var setattribute = SmartTags.makeSmartTag({
1297
1304
  return typeCheck(m, "element", "nodelist");
1298
1305
  },
1299
1306
  argsValueCheck: (a) => {
1300
- const { makeFailure, makeSuccess } = Outcome;
1307
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1301
1308
  const { typeCheckMany, getType } = Utils.Tree.TypeChecks;
1302
1309
  const { makeArgsValueError } = Utils.SmartTags;
1303
- if (a.length === 0) return makeFailure(makeArgsValueError("string | Text", "undefined", 0));
1304
- if (a.length > 2) return makeFailure(makeArgsValueError("undefined", getType(a[2]) ?? "undefined", 2));
1310
+ if (a.length === 0) return makeFailure2(makeArgsValueError("string | Text", "undefined", 0));
1311
+ if (a.length > 2) return makeFailure2(makeArgsValueError("undefined", getType(a[2]) ?? "undefined", 2));
1305
1312
  const checked = typeCheckMany(a, "string", "text");
1306
- if (checked.success) return makeSuccess(checked.payload);
1313
+ if (checked.success) return makeSuccess2(checked.payload);
1307
1314
  return checked;
1308
1315
  },
1309
1316
  func: (main, args) => {
1310
1317
  const argsStr = args.map((e) => Cast.toString(e));
1311
1318
  const [name, value = ""] = argsStr;
1312
1319
  if (main instanceof NodeList) {
1313
- const { document } = Window.get();
1320
+ const { document } = get();
1314
1321
  const children = Array.from(main).map((child) => {
1315
1322
  const cloned = Utils.clone(child);
1316
1323
  if (cloned instanceof Element) cloned.setAttribute(name, value);
@@ -1319,13 +1326,13 @@ var setattribute = SmartTags.makeSmartTag({
1319
1326
  const frag = document.createDocumentFragment();
1320
1327
  frag.append(...children);
1321
1328
  const nodelist2 = frag.childNodes;
1322
- return Outcome.makeSuccess(nodelist2);
1329
+ return makeSuccess(nodelist2);
1323
1330
  } else {
1324
1331
  const mainArr = Array.isArray(main) ? main : [main];
1325
1332
  const mainArrCloned = mainArr.map((e) => Utils.clone(e));
1326
1333
  mainArrCloned.forEach((e) => e.setAttribute(name, value));
1327
- if (Array.isArray(main)) return Outcome.makeSuccess(mainArrCloned);
1328
- return Outcome.makeSuccess(mainArrCloned[0]);
1334
+ if (Array.isArray(main)) return makeSuccess(mainArrCloned);
1335
+ return makeSuccess(mainArrCloned[0]);
1329
1336
  }
1330
1337
  }
1331
1338
  });
@@ -1348,20 +1355,20 @@ var setproperty = SmartTags.makeSmartTag({
1348
1355
  "array"
1349
1356
  ),
1350
1357
  argsValueCheck: (a) => {
1351
- const { makeFailure, makeSuccess } = Outcome;
1358
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1352
1359
  const { makeArgsValueError } = Utils.SmartTags;
1353
1360
  const { getType, typeCheck } = Utils.Tree.TypeChecks;
1354
- if (a.length === 0) return makeFailure(makeArgsValueError("string | Text", "undefined", 0));
1355
- if (a.length === 1) return makeFailure(makeArgsValueError("value", "undefined", 1));
1356
- if (a.length !== 2) return makeFailure(makeArgsValueError("undefined", getType(a.at(2)) ?? "undefined", 2));
1361
+ if (a.length === 0) return makeFailure2(makeArgsValueError("string | Text", "undefined", 0));
1362
+ if (a.length === 1) return makeFailure2(makeArgsValueError("value", "undefined", 1));
1363
+ if (a.length !== 2) return makeFailure2(makeArgsValueError("undefined", getType(a.at(2)) ?? "undefined", 2));
1357
1364
  const [first, second] = a;
1358
1365
  const firstChecked = typeCheck(first, "string", "text");
1359
- if (!firstChecked.success) return makeFailure(makeArgsValueError(firstChecked.error.expected, firstChecked.error.found, 0));
1360
- return makeSuccess([firstChecked.payload, second]);
1366
+ if (!firstChecked.success) return makeFailure2(makeArgsValueError(firstChecked.error.expected, firstChecked.error.found, 0));
1367
+ return makeSuccess2([firstChecked.payload, second]);
1361
1368
  },
1362
1369
  func: (main, args) => {
1363
1370
  const [key, val] = args;
1364
- const { makeSuccess, makeFailure } = Outcome;
1371
+ const { makeSuccess: makeSuccess2, makeFailure: makeFailure2 } = outcome_exports;
1365
1372
  const { makeTransformationError } = Utils.SmartTags;
1366
1373
  try {
1367
1374
  const withPropertySet = deepSetProperty(
@@ -1369,9 +1376,9 @@ var setproperty = SmartTags.makeSmartTag({
1369
1376
  Cast.toString(key),
1370
1377
  val
1371
1378
  );
1372
- return makeSuccess(withPropertySet);
1379
+ return makeSuccess2(withPropertySet);
1373
1380
  } catch (err) {
1374
- return makeFailure(makeTransformationError(`Impossible to access property :${key}`));
1381
+ return makeFailure2(makeTransformationError(`Impossible to access property :${key}`));
1375
1382
  }
1376
1383
  }
1377
1384
  });
@@ -1381,7 +1388,7 @@ function deepSetProperty(input, pathString, value) {
1381
1388
  let currentItemParent = void 0;
1382
1389
  let currentItemPathFromParent = void 0;
1383
1390
  let currentItem = clone2;
1384
- const { Text: Text2, Element: Element2, NodeList: NodeList2, document } = Window.get();
1391
+ const { Text: Text2, Element: Element2, NodeList: NodeList2, document } = get();
1385
1392
  pathChunks.forEach((chunk, pos) => {
1386
1393
  const isLast = pos === pathChunks.length - 1;
1387
1394
  const numChunk = parseInt(chunk);
@@ -1502,26 +1509,26 @@ var sorton = SmartTags.makeSmartTag({
1502
1509
  mainValueCheck: (m) => {
1503
1510
  const { makeMainValueError } = Utils.SmartTags;
1504
1511
  const { getType } = Utils.Tree.TypeChecks;
1505
- const { makeFailure, makeSuccess } = Outcome;
1506
- if (!Array.isArray(m)) return makeFailure(makeMainValueError("array<record>", getType(m) ?? "undefined"));
1512
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1513
+ if (!Array.isArray(m)) return makeFailure2(makeMainValueError("array<record>", getType(m) ?? "undefined"));
1507
1514
  for (const [itemPos, itemVal] of Object.entries(m)) {
1508
1515
  if (isRecord(itemVal)) continue;
1509
- return makeFailure(makeMainValueError("record", getType(itemVal), `At position ${parseInt(itemPos)} in main value`));
1516
+ return makeFailure2(makeMainValueError("record", getType(itemVal), `At position ${parseInt(itemPos)} in main value`));
1510
1517
  }
1511
- return makeSuccess(m);
1518
+ return makeSuccess2(m);
1512
1519
  },
1513
1520
  argsValueCheck: (a) => {
1514
- const { makeFailure, makeSuccess } = Outcome;
1521
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1515
1522
  const { makeArgsValueError } = Utils.SmartTags;
1516
1523
  const { getType, typeCheckMany } = Utils.Tree.TypeChecks;
1517
- if (a.length === 0) return makeFailure(makeArgsValueError("[string | text]", "[]", 0));
1518
- if (a.length > 1) return makeFailure(makeArgsValueError("undefined", getType(a[1]) ?? "undefined", 2));
1524
+ if (a.length === 0) return makeFailure2(makeArgsValueError("[string | text]", "[]", 0));
1525
+ if (a.length > 1) return makeFailure2(makeArgsValueError("undefined", getType(a[1]) ?? "undefined", 2));
1519
1526
  const checked = typeCheckMany(a, "string", "text");
1520
- if (checked.success) return makeSuccess(checked.payload);
1527
+ if (checked.success) return makeSuccess2(checked.payload);
1521
1528
  return checked;
1522
1529
  },
1523
1530
  func: (main, args) => {
1524
- const { makeFailure, makeSuccess } = Outcome;
1531
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1525
1532
  const strPropName = Cast.toString(args[0]);
1526
1533
  const { getType } = Utils.Tree.TypeChecks;
1527
1534
  const { makeTransformationError } = Utils.SmartTags;
@@ -1531,15 +1538,15 @@ var sorton = SmartTags.makeSmartTag({
1531
1538
  return { record: record2, prop, type };
1532
1539
  });
1533
1540
  const firstItem = map2[0];
1534
- if (firstItem === void 0) return makeSuccess([]);
1541
+ if (firstItem === void 0) return makeSuccess2([]);
1535
1542
  const firstItemType = firstItem.type;
1536
- if (firstItemType === void 0) return makeFailure(makeTransformationError({
1543
+ if (firstItemType === void 0) return makeFailure2(makeTransformationError({
1537
1544
  message: "Invalid property type",
1538
1545
  onItem: 0,
1539
1546
  found: firstItemType
1540
1547
  }));
1541
1548
  for (const [daytumPos, daytumVal] of Object.entries(map2)) {
1542
- if (daytumVal.type !== firstItemType) return makeFailure(makeTransformationError({
1549
+ if (daytumVal.type !== firstItemType) return makeFailure2(makeTransformationError({
1543
1550
  message: "Invalid property type",
1544
1551
  onItem: parseInt(daytumPos),
1545
1552
  expected: firstItemType,
@@ -1547,7 +1554,7 @@ var sorton = SmartTags.makeSmartTag({
1547
1554
  }));
1548
1555
  }
1549
1556
  const sorted = main.sort((a, b) => {
1550
- const { Text: Text2, NodeList: NodeList2 } = Window.get();
1557
+ const { Text: Text2, NodeList: NodeList2 } = get();
1551
1558
  const aProp = a[strPropName];
1552
1559
  const bProp = b[strPropName];
1553
1560
  if (aProp === null) return 0;
@@ -1563,7 +1570,7 @@ var sorton = SmartTags.makeSmartTag({
1563
1570
  if (aProp instanceof NodeList2) return aProp.length - Cast.toNodeList(bProp).length;
1564
1571
  return 0;
1565
1572
  });
1566
- return makeSuccess(sorted);
1573
+ return makeSuccess2(sorted);
1567
1574
  }
1568
1575
  });
1569
1576
 
@@ -1579,8 +1586,8 @@ var split = SmartTags.makeSmartTag({
1579
1586
  for (const arg of args) {
1580
1587
  strReturnedArr = strReturnedArr.map((e) => e.split(Cast.toString(arg))).flat();
1581
1588
  }
1582
- if (typeof main === "string") return Outcome.makeSuccess(strReturnedArr);
1583
- return Outcome.makeSuccess(strReturnedArr.map(Cast.toText));
1589
+ if (typeof main === "string") return makeSuccess(strReturnedArr);
1590
+ return makeSuccess(strReturnedArr.map(Cast.toText));
1584
1591
  }
1585
1592
  });
1586
1593
 
@@ -1591,17 +1598,17 @@ var spread = SmartTags.makeSmartTag({
1591
1598
  isolationInitType: "array",
1592
1599
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "record"),
1593
1600
  argsValueCheck: (a) => {
1594
- const { makeFailure, makeSuccess } = Outcome;
1601
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1595
1602
  const { makeArgsValueError } = Utils.SmartTags;
1596
1603
  const { getType, typeCheck } = Utils.Tree.TypeChecks;
1597
- if (a.length === 0) return makeFailure(makeArgsValueError("record", "undefined", 0));
1598
- if (a.length > 1) return makeFailure(makeArgsValueError("undefined", getType(a.at(1)) ?? "undefined", 1));
1604
+ if (a.length === 0) return makeFailure2(makeArgsValueError("record", "undefined", 0));
1605
+ if (a.length > 1) return makeFailure2(makeArgsValueError("undefined", getType(a.at(1)) ?? "undefined", 1));
1599
1606
  const [first] = a;
1600
1607
  const firstChecked = typeCheck(first, "record");
1601
- if (!firstChecked.success) return makeFailure(makeArgsValueError(firstChecked.error.expected, firstChecked.error.found, 0));
1602
- return makeSuccess([firstChecked.payload]);
1608
+ if (!firstChecked.success) return makeFailure2(makeArgsValueError(firstChecked.error.expected, firstChecked.error.found, 0));
1609
+ return makeSuccess2([firstChecked.payload]);
1603
1610
  },
1604
- func: (main, args) => Outcome.makeSuccess({ ...main, ...args[0] })
1611
+ func: (main, args) => makeSuccess({ ...main, ...args[0] })
1605
1612
  });
1606
1613
 
1607
1614
  // src/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.ts
@@ -1609,9 +1616,9 @@ var toarray = SmartTags.makeSmartTag({
1609
1616
  name: "toarray",
1610
1617
  defaultMode: "coalescion",
1611
1618
  isolationInitType: "array",
1612
- mainValueCheck: (m) => Outcome.makeSuccess(m),
1619
+ mainValueCheck: (m) => makeSuccess(m),
1613
1620
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1614
- func: (main) => Outcome.makeSuccess(Cast.toArray(main))
1621
+ func: (main) => makeSuccess(Cast.toArray(main))
1615
1622
  });
1616
1623
 
1617
1624
  // src/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.ts
@@ -1619,9 +1626,9 @@ var toboolean = SmartTags.makeSmartTag({
1619
1626
  name: "toboolean",
1620
1627
  defaultMode: "coalescion",
1621
1628
  isolationInitType: "array",
1622
- mainValueCheck: (m) => Outcome.makeSuccess(m),
1629
+ mainValueCheck: (m) => makeSuccess(m),
1623
1630
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1624
- func: (m) => Outcome.makeSuccess(Cast.toBoolean(m))
1631
+ func: (m) => makeSuccess(Cast.toBoolean(m))
1625
1632
  });
1626
1633
 
1627
1634
  // src/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.ts
@@ -1629,13 +1636,13 @@ var toelement = SmartTags.makeSmartTag({
1629
1636
  name: "toelement",
1630
1637
  defaultMode: "coalescion",
1631
1638
  isolationInitType: "array",
1632
- mainValueCheck: (m) => Outcome.makeSuccess(m),
1639
+ mainValueCheck: (m) => makeSuccess(m),
1633
1640
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckManyWithLength(a, 0, 1, "string", "text"),
1634
1641
  func: (m, a) => {
1635
1642
  const [rawTagName] = a;
1636
1643
  const castedTagName = rawTagName !== void 0 ? Cast.toString(rawTagName) : void 0;
1637
1644
  const tagName = castedTagName !== "" ? castedTagName : void 0;
1638
- return Outcome.makeSuccess(Cast.toElement(m, tagName?.trim().toLowerCase()));
1645
+ return makeSuccess(Cast.toElement(m, tagName?.trim().toLowerCase()));
1639
1646
  }
1640
1647
  });
1641
1648
 
@@ -1647,10 +1654,10 @@ var toggleclass = SmartTags.makeSmartTag({
1647
1654
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "element", "nodelist"),
1648
1655
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "string", "text"),
1649
1656
  func: (main, args) => {
1650
- const { Element: Element2, document } = Window.get();
1657
+ const { Element: Element2, document } = get();
1651
1658
  if (main instanceof Element2) {
1652
1659
  args.forEach((arg) => main.classList.toggle(Cast.toString(arg)));
1653
- return Outcome.makeSuccess(main);
1660
+ return makeSuccess(main);
1654
1661
  }
1655
1662
  const children = Array.from(main).map((child) => {
1656
1663
  if (child instanceof Element2) {
@@ -1662,7 +1669,7 @@ var toggleclass = SmartTags.makeSmartTag({
1662
1669
  const frag = document.createDocumentFragment();
1663
1670
  frag.append(...children);
1664
1671
  const nodelist2 = frag.childNodes;
1665
- return Outcome.makeSuccess(nodelist2);
1672
+ return makeSuccess(nodelist2);
1666
1673
  }
1667
1674
  });
1668
1675
 
@@ -1671,9 +1678,9 @@ var tonodelist = SmartTags.makeSmartTag({
1671
1678
  name: "tonodelist",
1672
1679
  defaultMode: "coalescion",
1673
1680
  isolationInitType: "array",
1674
- mainValueCheck: (m) => Outcome.makeSuccess(m),
1681
+ mainValueCheck: (m) => makeSuccess(m),
1675
1682
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1676
- func: (m) => Outcome.makeSuccess(Cast.toNodeList(m))
1683
+ func: (m) => makeSuccess(Cast.toNodeList(m))
1677
1684
  });
1678
1685
 
1679
1686
  // src/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.ts
@@ -1681,9 +1688,9 @@ var tonull = SmartTags.makeSmartTag({
1681
1688
  name: "tonull",
1682
1689
  defaultMode: "coalescion",
1683
1690
  isolationInitType: "array",
1684
- mainValueCheck: (m) => Outcome.makeSuccess(m),
1691
+ mainValueCheck: (m) => makeSuccess(m),
1685
1692
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1686
- func: () => Outcome.makeSuccess(null)
1693
+ func: () => makeSuccess(null)
1687
1694
  });
1688
1695
 
1689
1696
  // src/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.ts
@@ -1691,9 +1698,9 @@ var tonumber = SmartTags.makeSmartTag({
1691
1698
  name: "tonumber",
1692
1699
  defaultMode: "coalescion",
1693
1700
  isolationInitType: "array",
1694
- mainValueCheck: (m) => Outcome.makeSuccess(m),
1701
+ mainValueCheck: (m) => makeSuccess(m),
1695
1702
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1696
- func: (m) => Outcome.makeSuccess(Cast.toNumber(m))
1703
+ func: (m) => makeSuccess(Cast.toNumber(m))
1697
1704
  });
1698
1705
 
1699
1706
  // src/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.ts
@@ -1701,9 +1708,9 @@ var torecord = SmartTags.makeSmartTag({
1701
1708
  name: "torecord",
1702
1709
  defaultMode: "coalescion",
1703
1710
  isolationInitType: "array",
1704
- mainValueCheck: (m) => Outcome.makeSuccess(m),
1711
+ mainValueCheck: (m) => makeSuccess(m),
1705
1712
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1706
- func: (main) => Outcome.makeSuccess(Cast.toRecord(main))
1713
+ func: (main) => makeSuccess(Cast.toRecord(main))
1707
1714
  });
1708
1715
 
1709
1716
  // src/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.ts
@@ -1711,7 +1718,7 @@ var toref = SmartTags.makeSmartTag({
1711
1718
  name: "toref",
1712
1719
  defaultMode: "coalescion",
1713
1720
  isolationInitType: "array",
1714
- mainValueCheck: (m) => Outcome.makeSuccess(m),
1721
+ mainValueCheck: (m) => makeSuccess(m),
1715
1722
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1716
1723
  func: (main, args, details) => func(Cast.toString(main), args, details)
1717
1724
  });
@@ -1721,9 +1728,9 @@ var tostring = SmartTags.makeSmartTag({
1721
1728
  name: "tostring",
1722
1729
  defaultMode: "coalescion",
1723
1730
  isolationInitType: "array",
1724
- mainValueCheck: (m) => Outcome.makeSuccess(m),
1731
+ mainValueCheck: (m) => makeSuccess(m),
1725
1732
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1726
- func: (m) => Outcome.makeSuccess(Cast.toString(m))
1733
+ func: (m) => makeSuccess(Cast.toString(m))
1727
1734
  });
1728
1735
 
1729
1736
  // src/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.ts
@@ -1731,9 +1738,9 @@ var totext = SmartTags.makeSmartTag({
1731
1738
  name: "totext",
1732
1739
  defaultMode: "coalescion",
1733
1740
  isolationInitType: "array",
1734
- mainValueCheck: (m) => Outcome.makeSuccess(m),
1741
+ mainValueCheck: (m) => makeSuccess(m),
1735
1742
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1736
- func: (m) => Outcome.makeSuccess(Cast.toText(m))
1743
+ func: (m) => makeSuccess(Cast.toText(m))
1737
1744
  });
1738
1745
 
1739
1746
  // src/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.ts
@@ -1743,21 +1750,21 @@ var transformselected = SmartTags.makeSmartTag({
1743
1750
  isolationInitType: "array",
1744
1751
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "element", "nodelist"),
1745
1752
  argsValueCheck: (a) => {
1746
- const { makeFailure, makeSuccess } = Outcome;
1753
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1747
1754
  const { typeCheck, typeCheckMany } = Utils.Tree.TypeChecks;
1748
1755
  const [first, ...others] = a;
1749
1756
  const firstChecked = typeCheck(first, "string", "text");
1750
- if (!firstChecked.success) return makeFailure({ ...firstChecked.error, position: 0 });
1757
+ if (!firstChecked.success) return makeFailure2({ ...firstChecked.error, position: 0 });
1751
1758
  const othersChecked = typeCheckMany(others, "method");
1752
- if (!othersChecked.success) return makeFailure({
1759
+ if (!othersChecked.success) return makeFailure2({
1753
1760
  ...othersChecked.error,
1754
1761
  position: othersChecked.error.position + 1
1755
1762
  });
1756
1763
  const returned = [firstChecked.payload, ...othersChecked.payload];
1757
- return makeSuccess(returned);
1764
+ return makeSuccess2(returned);
1758
1765
  },
1759
1766
  func: (main, args) => {
1760
- const { makeFailure, makeSuccess } = Outcome;
1767
+ const { makeFailure: makeFailure2, makeSuccess: makeSuccess2 } = outcome_exports;
1761
1768
  const { makeTransformationError } = Utils.SmartTags;
1762
1769
  const { typeCheck } = Utils.Tree.TypeChecks;
1763
1770
  const mainClone = Cast.toElement(main);
@@ -1768,7 +1775,7 @@ var transformselected = SmartTags.makeSmartTag({
1768
1775
  for (const [selected, value] of Array.from(transformationMap)) {
1769
1776
  const transformer = method.transformer;
1770
1777
  const applied = transformer.apply(value);
1771
- if (!applied.success) return makeFailure(makeTransformationError({
1778
+ if (!applied.success) return makeFailure2(makeTransformationError({
1772
1779
  // [WIP] maybe a custom makeSubTransformationError ?
1773
1780
  message: "Subtransformation failure.",
1774
1781
  onSelected: selected,
@@ -1782,14 +1789,14 @@ var transformselected = SmartTags.makeSmartTag({
1782
1789
  }
1783
1790
  for (const [selected, transformed] of Array.from(transformationMap)) {
1784
1791
  const transformedChecked = typeCheck(transformed, "element", "nodelist", "text", "string", "number", "boolean", "null");
1785
- if (!transformedChecked.success) return makeFailure(makeTransformationError({
1792
+ if (!transformedChecked.success) return makeFailure2(makeTransformationError({
1786
1793
  // [WIP] maybe a custom makeBadTransformationOutputError ?
1787
1794
  message: "Bad transformation output",
1788
1795
  onSelected: selected,
1789
1796
  onTransformed: transformed,
1790
1797
  details: { ...transformedChecked.error }
1791
1798
  }));
1792
- const { Element: Element2, NodeList: NodeList2, Text: Text2 } = Window.get();
1799
+ const { Element: Element2, NodeList: NodeList2, Text: Text2 } = get();
1793
1800
  const replacer = transformedChecked.payload;
1794
1801
  if (replacer instanceof Element2 || replacer instanceof Text2) {
1795
1802
  insertNode(replacer, "after", selected);
@@ -1803,9 +1810,9 @@ var transformselected = SmartTags.makeSmartTag({
1803
1810
  }
1804
1811
  transformedChecked.payload;
1805
1812
  }
1806
- if (main instanceof Element) return makeSuccess(mainClone);
1813
+ if (main instanceof Element) return makeSuccess2(mainClone);
1807
1814
  const safeChildren = Array.from(mainClone.childNodes).filter((e) => e instanceof Element || e instanceof Text);
1808
- return main instanceof Element ? makeSuccess(mainClone) : makeSuccess(Cast.toNodeList(safeChildren));
1815
+ return main instanceof Element ? makeSuccess2(mainClone) : makeSuccess2(Cast.toNodeList(safeChildren));
1809
1816
  }
1810
1817
  });
1811
1818
 
@@ -1817,7 +1824,7 @@ var trim = SmartTags.makeSmartTag({
1817
1824
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "string", "text"),
1818
1825
  argsValueCheck: (a) => Utils.SmartTags.expectEmptyArgs(a),
1819
1826
  func: (main) => {
1820
- return typeof main === "string" ? Outcome.makeSuccess(main.trim()) : Outcome.makeSuccess(Cast.toText(`${main}`.trim()));
1827
+ return typeof main === "string" ? makeSuccess(main.trim()) : makeSuccess(Cast.toText(`${main}`.trim()));
1821
1828
  }
1822
1829
  });
1823
1830
 
@@ -1862,7 +1869,7 @@ var Tree;
1862
1869
  return new Tree2(merged, null, null, options);
1863
1870
  }
1864
1871
  constructor(node, parent, pathFromParent, options) {
1865
- const { Element: Element2, Text: Text2, document } = Window.get();
1872
+ const { Element: Element2, Text: Text2, document } = get();
1866
1873
  this.resolve = this.resolve.bind(this);
1867
1874
  this.setVariable = this.setVariable.bind(this);
1868
1875
  this.getVariable = this.getVariable.bind(this);
@@ -1908,7 +1915,7 @@ var Tree;
1908
1915
  array,
1909
1916
  boolean,
1910
1917
  element,
1911
- get,
1918
+ get2,
1912
1919
  global,
1913
1920
  guess,
1914
1921
  nodelist,
@@ -2087,7 +2094,7 @@ var Tree;
2087
2094
  }
2088
2095
  performSafetyChecks() {
2089
2096
  const { node, smartTagData, isMethod, mode, isRoot } = this;
2090
- const { Text: Text2 } = Window.get();
2097
+ const { Text: Text2 } = get();
2091
2098
  if (node instanceof Text2 || smartTagData === null) {
2092
2099
  if (isMethod) throw new Error(`A Text or HTMLElement node cannot be used as a method @ ${this.pathString}`);
2093
2100
  if (mode === "coalescion") throw new Error(`A Text or HTMLElement node cannot be used in coalescion mode @ ${this.pathString}`);
@@ -2105,7 +2112,7 @@ var Tree;
2105
2112
  performSafetyChecks
2106
2113
  } = this;
2107
2114
  performSafetyChecks();
2108
- const { Text: Text2 } = Window.get();
2115
+ const { Text: Text2 } = get();
2109
2116
  if (node instanceof Text2) return node.cloneNode(true);
2110
2117
  const initialInnerValue = Utils.Tree.getInitialValueFromTypeName(isolationInitType);
2111
2118
  const innerValue = Array.from(subtrees).reduce((reduced, [subpath, subtree]) => {
@@ -2135,7 +2142,7 @@ var Tree;
2135
2142
  }
2136
2143
  enforceEvaluation() {
2137
2144
  const { isPreserved, node, computeValue, isLiteral, attributes } = this;
2138
- const { Element: Element2 } = Window.get();
2145
+ const { Element: Element2 } = get();
2139
2146
  if (isPreserved) return Utils.clone(node);
2140
2147
  const evaluated = computeValue();
2141
2148
  if (!isLiteral) return evaluated;
@@ -2177,7 +2184,7 @@ var Tree;
2177
2184
  var Utils;
2178
2185
  ((Utils2) => {
2179
2186
  function clone2(value) {
2180
- const { Element: Element2, Text: Text2, NodeList: NodeList2, document } = Window.get();
2187
+ const { Element: Element2, Text: Text2, NodeList: NodeList2, document } = get();
2181
2188
  if (typeof value === "string" || typeof value === "number" || typeof value === "boolean" || value === null) return value;
2182
2189
  if (value instanceof Text2) return value.cloneNode(true);
2183
2190
  if (value instanceof NodeList2) {
@@ -2195,7 +2202,7 @@ var Utils;
2195
2202
  }
2196
2203
  Utils2.clone = clone2;
2197
2204
  function coalesceValues(currentValue, subpath, subvalue) {
2198
- const { Element: Element2, Text: Text2, NodeList: NodeList2, document } = Window.get();
2205
+ const { Element: Element2, Text: Text2, NodeList: NodeList2, document } = get();
2199
2206
  let actualSubvalue = subvalue;
2200
2207
  if (actualSubvalue instanceof Transformer) {
2201
2208
  const transformer = actualSubvalue;
@@ -2291,7 +2298,7 @@ var Utils;
2291
2298
  }
2292
2299
  Utils2.coalesceValues = coalesceValues;
2293
2300
  Utils2.toHyperJson = (value) => {
2294
- const { document, Element: Element2, Text: Text2, NodeList: NodeList2 } = Window.get();
2301
+ const { document, Element: Element2, Text: Text2, NodeList: NodeList2 } = get();
2295
2302
  if (value instanceof Text2) {
2296
2303
  const elt2 = document.createElement("text");
2297
2304
  elt2.innerHTML = value.textContent ?? "";
@@ -2356,7 +2363,7 @@ var Utils;
2356
2363
  "record"
2357
2364
  ];
2358
2365
  function singleTypeCheck(value, type) {
2359
- const { Element: Element2, Text: Text2, NodeList: NodeList2 } = Window.get();
2366
+ const { Element: Element2, Text: Text2, NodeList: NodeList2 } = get();
2360
2367
  if (type === "null" && value === null) return true;
2361
2368
  if (type === "boolean" && typeof value === "boolean") return true;
2362
2369
  if (type === "number" && typeof value === "number") return true;
@@ -2381,8 +2388,8 @@ var Utils;
2381
2388
  TypeChecks2.singleTypeCheck = singleTypeCheck;
2382
2389
  function typeCheck(value, ...types) {
2383
2390
  const matchesOneType = types.some((type) => singleTypeCheck(value, type));
2384
- if (matchesOneType) return Outcome.makeSuccess(value);
2385
- return Outcome.makeFailure({
2391
+ if (matchesOneType) return makeSuccess(value);
2392
+ return makeFailure({
2386
2393
  expected: types.join(" | "),
2387
2394
  found: getType(value) ?? "undefined"
2388
2395
  });
@@ -2392,9 +2399,9 @@ var Utils;
2392
2399
  for (const [pos, val] of Object.entries(values)) {
2393
2400
  const checked = typeCheck(val, ...types);
2394
2401
  if (checked.success) continue;
2395
- return Outcome.makeFailure({ position: parseInt(pos), ...checked.error });
2402
+ return makeFailure({ position: parseInt(pos), ...checked.error });
2396
2403
  }
2397
- return Outcome.makeSuccess(values);
2404
+ return makeSuccess(values);
2398
2405
  }
2399
2406
  TypeChecks2.typeCheckMany = typeCheckMany;
2400
2407
  })(TypeChecks = Transformations2.TypeChecks || (Transformations2.TypeChecks = {}));
@@ -2402,7 +2409,7 @@ var Utils;
2402
2409
  let Tree2;
2403
2410
  ((Tree3) => {
2404
2411
  function mergeNodes(nodes) {
2405
- const { document, Text: Text2, Element: Element2 } = Window.get();
2412
+ const { document, Text: Text2, Element: Element2 } = get();
2406
2413
  const clones = nodes.map((node) => node.cloneNode(true));
2407
2414
  const allChildren = [];
2408
2415
  clones.forEach((node) => {
@@ -2446,7 +2453,7 @@ var Utils;
2446
2453
  }
2447
2454
  Tree3.mergeNodes = mergeNodes;
2448
2455
  function getInitialValueFromTypeName(name) {
2449
- const { document } = Window.get();
2456
+ const { document } = get();
2450
2457
  if (name === "null") return null;
2451
2458
  if (name === "boolean") return false;
2452
2459
  if (name === "number") return 0;
@@ -2490,7 +2497,7 @@ var Utils;
2490
2497
  "record"
2491
2498
  ];
2492
2499
  function singleTypeCheck(value, type) {
2493
- const { Element: Element2, Text: Text2, NodeList: NodeList2 } = Window.get();
2500
+ const { Element: Element2, Text: Text2, NodeList: NodeList2 } = get();
2494
2501
  if (type === "null" && value === null) return true;
2495
2502
  if (type === "boolean" && typeof value === "boolean") return true;
2496
2503
  if (type === "number" && typeof value === "number") return true;
@@ -2516,8 +2523,8 @@ var Utils;
2516
2523
  TypeChecks2.singleTypeCheck = singleTypeCheck;
2517
2524
  function typeCheck(value, ...types) {
2518
2525
  const matchesOneType = types.some((type) => singleTypeCheck(value, type));
2519
- if (matchesOneType) return Outcome.makeSuccess(value);
2520
- return Outcome.makeFailure({
2526
+ if (matchesOneType) return makeSuccess(value);
2527
+ return makeFailure({
2521
2528
  expected: types.join(" | "),
2522
2529
  found: getType(value) ?? "undefined"
2523
2530
  });
@@ -2527,18 +2534,18 @@ var Utils;
2527
2534
  for (const [pos, val] of Object.entries(values)) {
2528
2535
  const checked = typeCheck(val, ...types);
2529
2536
  if (checked.success) continue;
2530
- return Outcome.makeFailure({ position: parseInt(pos), ...checked.error });
2537
+ return makeFailure({ position: parseInt(pos), ...checked.error });
2531
2538
  }
2532
- return Outcome.makeSuccess(values);
2539
+ return makeSuccess(values);
2533
2540
  }
2534
2541
  TypeChecks2.typeCheckMany = typeCheckMany;
2535
2542
  function typeCheckManyWithLength(values, minLength, maxLength, ...types) {
2536
- if (minLength !== void 0 && values.length < minLength) return Outcome.makeFailure({
2543
+ if (minLength !== void 0 && values.length < minLength) return makeFailure({
2537
2544
  position: values.length + 1,
2538
2545
  expected: `min length: ${minLength}`,
2539
2546
  found: `length: ${values.length}`
2540
2547
  });
2541
- if (maxLength !== void 0 && values.length > maxLength) return Outcome.makeFailure({
2548
+ if (maxLength !== void 0 && values.length > maxLength) return makeFailure({
2542
2549
  position: maxLength + 1,
2543
2550
  expected: `max length: ${maxLength}`,
2544
2551
  found: `length: ${values.length}`
@@ -2568,8 +2575,8 @@ var Utils;
2568
2575
  let SmartTags2;
2569
2576
  ((SmartTags3) => {
2570
2577
  SmartTags3.expectEmptyArgs = (args) => {
2571
- if (args.length === 0) return Outcome.makeSuccess([]);
2572
- return Outcome.makeFailure({
2578
+ if (args.length === 0) return makeSuccess([]);
2579
+ return makeFailure({
2573
2580
  expected: "length: 0",
2574
2581
  found: `length: ${args.length}`
2575
2582
  });
@@ -2598,13 +2605,13 @@ var boolean = SmartTags.makeSmartTag({
2598
2605
  isolationInitType: "boolean",
2599
2606
  mainValueCheck: (m) => Utils.Tree.TypeChecks.typeCheck(m, "null", "boolean", "number", "string", "text"),
2600
2607
  argsValueCheck: (a) => Utils.Tree.TypeChecks.typeCheckMany(a, "null", "boolean", "number", "string", "text"),
2601
- func: (main, args) => Outcome.makeSuccess([main, ...args].every((item) => Cast.toBoolean(item)))
2608
+ func: (main, args) => makeSuccess([main, ...args].every((item) => Cast.toBoolean(item)))
2602
2609
  });
2603
2610
 
2604
2611
  export {
2605
2612
  boolean,
2606
2613
  element,
2607
- get,
2614
+ get2 as get,
2608
2615
  global,
2609
2616
  guess,
2610
2617
  nodelist,
@@ -2649,6 +2656,7 @@ export {
2649
2656
  removeclass,
2650
2657
  renameproperty,
2651
2658
  replace,
2659
+ replacerFunc,
2652
2660
  select,
2653
2661
  set,
2654
2662
  setattribute,