@design-edito/tools 0.1.51 → 0.1.53

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 (322) hide show
  1. package/agnostic/arrays/find-duplicates/index.js +1 -0
  2. package/agnostic/arrays/index.js +10 -9
  3. package/agnostic/arrays/is-array-of/index.js +1 -0
  4. package/agnostic/arrays/make/index.js +1 -0
  5. package/agnostic/arrays/random-pick/index.js +7 -6
  6. package/agnostic/arrays/shuffle/index.js +1 -0
  7. package/agnostic/booleans/index.js +1 -0
  8. package/agnostic/booleans/is-falsy/index.js +1 -0
  9. package/agnostic/css/bem/index.js +1 -0
  10. package/agnostic/css/generate-nice-color/index.js +1 -0
  11. package/agnostic/css/index.js +18 -17
  12. package/agnostic/css/is-valid-css-class-name/index.js +1 -0
  13. package/agnostic/css/styles-set/index.js +7 -6
  14. package/agnostic/errors/index.js +3 -2
  15. package/agnostic/errors/register/index.js +1 -0
  16. package/agnostic/errors/unknown-to-string/index.js +1 -0
  17. package/agnostic/html/get-node-ancestors/index.js +1 -0
  18. package/agnostic/html/get-position-inside-parent/index.js +1 -0
  19. package/agnostic/html/hyper-json/cast/index.js +3 -2
  20. package/agnostic/html/hyper-json/index.js +4 -3
  21. package/agnostic/html/hyper-json/method/index.js +1 -0
  22. package/agnostic/html/hyper-json/serialize/index.js +1 -0
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +3 -2
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +3 -2
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +3 -2
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +3 -2
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +3 -2
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +3 -2
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +3 -2
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +3 -2
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +3 -2
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +3 -2
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +3 -2
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +3 -2
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +3 -2
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +3 -2
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +3 -2
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +3 -2
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +3 -2
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +3 -2
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +3 -2
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +3 -2
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +3 -2
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +3 -2
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +3 -2
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +3 -2
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +3 -2
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +3 -2
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +3 -2
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +3 -2
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +3 -2
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +3 -2
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +3 -2
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +3 -2
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +3 -2
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +3 -2
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +3 -2
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +3 -2
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +3 -2
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +3 -2
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +3 -2
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +3 -2
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +3 -2
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +3 -2
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +3 -2
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +3 -2
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +3 -2
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +3 -2
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +3 -2
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +3 -2
  71. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +3 -2
  72. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +3 -2
  73. package/agnostic/html/hyper-json/smart-tags/index.js +1 -0
  74. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +1 -0
  75. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +1 -0
  76. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +3 -2
  77. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +3 -2
  78. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +3 -2
  79. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +3 -2
  80. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +3 -2
  81. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +3 -2
  82. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +1 -0
  83. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +3 -2
  84. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +3 -2
  85. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +3 -2
  86. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +3 -2
  87. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +3 -2
  88. package/agnostic/html/hyper-json/transformer/index.js +1 -0
  89. package/agnostic/html/hyper-json/tree/index.js +3 -2
  90. package/agnostic/html/hyper-json/types/index.js +1 -0
  91. package/agnostic/html/hyper-json/utils/index.js +3 -2
  92. package/agnostic/html/index.js +12 -11
  93. package/agnostic/html/insert-node/index.js +1 -0
  94. package/agnostic/html/placeholders/index.js +1 -0
  95. package/agnostic/html/replace-in-element/index.js +1 -0
  96. package/agnostic/html/sanitize/index.js +7 -6
  97. package/agnostic/html/selector-to-element/index.js +7 -6
  98. package/agnostic/html/string-to-nodes/index.js +8 -7
  99. package/agnostic/misc/assert/index.js +4 -3
  100. package/agnostic/misc/cast/index.js +1 -0
  101. package/agnostic/misc/crawler/index.js +1 -0
  102. package/agnostic/misc/crossenv/detect-runtime/index.js +1 -0
  103. package/agnostic/misc/crossenv/index.js +3 -2
  104. package/agnostic/misc/crossenv/types/index.js +1 -0
  105. package/agnostic/misc/crossenv/window/index.js +1 -0
  106. package/agnostic/misc/data-size/index.d.ts +14 -14
  107. package/agnostic/misc/data-size/index.js +2 -1
  108. package/agnostic/misc/elo/index.js +2 -0
  109. package/agnostic/misc/get-current-downlink/index.js +1 -0
  110. package/agnostic/misc/index.js +27 -26
  111. package/agnostic/misc/is-constructor-function/index.js +1 -0
  112. package/agnostic/misc/is-nullish/index.js +1 -0
  113. package/agnostic/misc/logs/index.js +1 -0
  114. package/agnostic/misc/logs/logger/index.js +1 -0
  115. package/agnostic/misc/logs/make-text-block/index.js +1 -0
  116. package/agnostic/misc/logs/styles/index.js +1 -0
  117. package/agnostic/misc/lorem-ipsum/index.js +14 -13
  118. package/agnostic/misc/outcome/index.js +1 -0
  119. package/agnostic/numbers/absolute-modulo/index.js +1 -0
  120. package/agnostic/numbers/clamp/index.js +1 -0
  121. package/agnostic/numbers/index.js +7 -6
  122. package/agnostic/numbers/interpolate/index.js +1 -0
  123. package/agnostic/numbers/responsive-harmonics/index.js +1 -0
  124. package/agnostic/numbers/round/index.js +1 -0
  125. package/agnostic/objects/deep-get-property/index.js +1 -0
  126. package/agnostic/objects/enums/index.js +1 -0
  127. package/agnostic/objects/enums/is-in-enum/index.js +1 -0
  128. package/agnostic/objects/flatten-getters/index.js +1 -0
  129. package/agnostic/objects/index.js +12 -11
  130. package/agnostic/objects/is-object/index.js +1 -0
  131. package/agnostic/objects/is-record/index.js +1 -0
  132. package/agnostic/objects/record-format/index.js +1 -0
  133. package/agnostic/objects/record-map/index.js +1 -0
  134. package/agnostic/objects/validation/index.js +1 -0
  135. package/agnostic/optim/index.js +1 -0
  136. package/agnostic/optim/memoize/index.js +1 -0
  137. package/agnostic/optim/throttle-debounce/index.js +1 -0
  138. package/agnostic/random/hex-char/index.js +1 -0
  139. package/agnostic/random/index.js +1 -0
  140. package/agnostic/random/random/index.js +1 -0
  141. package/agnostic/random/uuid/index.js +1 -0
  142. package/agnostic/regexps/index.js +2 -0
  143. package/agnostic/strings/char-codes/index.js +1 -0
  144. package/agnostic/strings/index.js +7 -6
  145. package/agnostic/strings/matches/index.js +1 -0
  146. package/agnostic/strings/normalize-indent/index.js +1 -0
  147. package/agnostic/strings/replace-all/index.js +1 -0
  148. package/agnostic/strings/to-alphanum/index.js +1 -0
  149. package/agnostic/strings/trim/index.js +1 -0
  150. package/agnostic/time/dates/format-date/index.js +1 -0
  151. package/agnostic/time/dates/index.js +1 -0
  152. package/agnostic/time/duration/index.js +1 -0
  153. package/agnostic/time/index.js +1 -0
  154. package/agnostic/time/timeout/index.js +1 -0
  155. package/agnostic/time/transitions/index.js +1 -0
  156. package/agnostic/time/wait/index.js +1 -0
  157. package/chunks/chunk-2KCKWG7R.js +104 -0
  158. package/chunks/chunk-2UJYUMTT.js +37 -0
  159. package/chunks/chunk-365LSZZ7.js +37 -0
  160. package/chunks/chunk-4FOK7DUZ.js +35 -0
  161. package/chunks/chunk-4LCL2RIC.js +209 -0
  162. package/chunks/chunk-4WOAFIVN.js +31 -0
  163. package/chunks/chunk-53MBV4TG.js +6212 -0
  164. package/chunks/chunk-57YCNOX7.js +15 -0
  165. package/chunks/chunk-5QVKJGTN.js +95 -0
  166. package/chunks/chunk-5ZTW4PHE.js +173 -0
  167. package/chunks/chunk-6GZXU2Z3.js +191 -0
  168. package/chunks/chunk-7QIYI4CK.js +209 -0
  169. package/chunks/chunk-AF2MI5O5.js +29 -0
  170. package/chunks/chunk-ARDAQZRR.js +239 -0
  171. package/chunks/chunk-BLAAWANI.js +191 -0
  172. package/chunks/chunk-BV67SWXG.js +20 -0
  173. package/chunks/chunk-CIJQHLIW.js +31 -0
  174. package/chunks/chunk-CRGU2EHQ.js +31 -0
  175. package/chunks/chunk-DHMARF6D.js +62 -0
  176. package/chunks/chunk-DHWHB53F.js +191 -0
  177. package/chunks/chunk-DMR2WE3C.js +62 -0
  178. package/chunks/chunk-DPBYDWV3.js +2369 -0
  179. package/chunks/chunk-ECKOTCS4.js +2369 -0
  180. package/chunks/chunk-EEIJDUNV.js +209 -0
  181. package/chunks/chunk-EIU72AEZ.js +31 -0
  182. package/chunks/chunk-F5GXXF3A.js +31 -0
  183. package/chunks/chunk-FG53JEP2.js +31 -0
  184. package/chunks/chunk-FTIDPZZ5.js +209 -0
  185. package/chunks/chunk-GARJTJ6V.js +6 -0
  186. package/chunks/chunk-GL54CDM2.js +20 -0
  187. package/chunks/chunk-GNZY3ZTH.js +14 -0
  188. package/chunks/chunk-GQMFBT5T.js +191 -0
  189. package/chunks/chunk-GWXVHCAB.js +31 -0
  190. package/chunks/chunk-I2ILSLBK.js +32 -0
  191. package/chunks/chunk-IGHRNHVK.js +16 -0
  192. package/chunks/chunk-IOWZMFCU.js +28 -0
  193. package/chunks/chunk-IPON4W2H.js +31 -0
  194. package/chunks/chunk-IUFAHY2R.js +38 -0
  195. package/chunks/chunk-JBSS64SA.js +6 -0
  196. package/chunks/chunk-JRXTMXKV.js +15967 -0
  197. package/chunks/chunk-KEYRP27F.js +191 -0
  198. package/chunks/chunk-KYMCGWPM.js +31 -0
  199. package/chunks/chunk-L5JWJRZ7.js +484 -0
  200. package/chunks/chunk-L7EUEQZP.js +0 -0
  201. package/chunks/chunk-LAA2DQDK.js +31 -0
  202. package/chunks/chunk-LATEK24U.js +31 -0
  203. package/chunks/chunk-LDLSU4OG.js +191 -0
  204. package/chunks/chunk-LWWXPVXY.js +25173 -0
  205. package/chunks/chunk-MMPJODO2.js +31 -0
  206. package/chunks/chunk-MY4VMHSH.js +191 -0
  207. package/chunks/chunk-MZ2RAM5Y.js +62 -0
  208. package/chunks/chunk-NGYJGQT3.js +25002 -0
  209. package/chunks/chunk-NIOOIUSD.js +104 -0
  210. package/chunks/chunk-NLHFSJYR.js +15 -0
  211. package/chunks/chunk-NQ5ESZNO.js +191 -0
  212. package/chunks/chunk-O6NULFZI.js +37 -0
  213. package/chunks/chunk-OVMNSJOW.js +6 -0
  214. package/chunks/chunk-PPK2JEO6.js +28 -0
  215. package/chunks/chunk-PVHLWKA6.js +31 -0
  216. package/chunks/chunk-QMWX2A56.js +56 -0
  217. package/chunks/chunk-QPBY235R.js +239 -0
  218. package/chunks/chunk-REBANVPP.js +104 -0
  219. package/chunks/chunk-RSMUYH5H.js +31 -0
  220. package/chunks/chunk-RTFKMYT7.js +2369 -0
  221. package/chunks/chunk-RVVJ4QD4.js +173 -0
  222. package/chunks/chunk-TSQVG7GA.js +31 -0
  223. package/chunks/chunk-TXOUGP37.js +62 -0
  224. package/chunks/chunk-UG36UPJK.js +31 -0
  225. package/chunks/chunk-UXM54YBI.js +68 -0
  226. package/chunks/chunk-VHFMQI7Z.js +20 -0
  227. package/chunks/chunk-VP3Y6EMX.js +190 -0
  228. package/chunks/chunk-WLHJM76F.js +2369 -0
  229. package/chunks/chunk-WNLP6R5Y.js +191 -0
  230. package/chunks/chunk-WQKFVIUF.js +37 -0
  231. package/chunks/chunk-WSFCRVEQ.js +9 -0
  232. package/chunks/chunk-WTPUSGMJ.js +104 -0
  233. package/chunks/chunk-XCBH6NLF.js +42 -0
  234. package/chunks/chunk-XETVQW6S.js +56 -0
  235. package/chunks/chunk-XT6XKGKK.js +20 -0
  236. package/chunks/chunk-YDNQHZRS.js +31 -0
  237. package/chunks/chunk-YHT73ULP.js +2369 -0
  238. package/chunks/chunk-YRSNU7IX.js +49 -0
  239. package/chunks/chunk-YVSS4IT2.js +37 -0
  240. package/chunks/chunk-YZDZQ7AZ.js +37 -0
  241. package/chunks/chunk-Z4SQDCFG.js +37 -0
  242. package/chunks/chunk-ZS5OHINP.js +31 -0
  243. package/components/Comp/index.js +2 -0
  244. package/node/@design-edito/index.d.ts +2 -0
  245. package/node/@design-edito/index.js +12 -0
  246. package/node/@design-edito/thumbnails/colors/index.d.ts +35 -0
  247. package/node/@design-edito/thumbnails/colors/index.js +29 -0
  248. package/node/@design-edito/thumbnails/common/index.d.ts +5 -0
  249. package/node/@design-edito/thumbnails/common/index.js +15 -0
  250. package/node/@design-edito/thumbnails/easings/index.d.ts +8 -0
  251. package/node/@design-edito/thumbnails/easings/index.js +21 -0
  252. package/node/@design-edito/thumbnails/index.d.ts +5 -0
  253. package/node/@design-edito/thumbnails/index.js +20 -0
  254. package/node/@design-edito/thumbnails/layout/index.d.ts +63 -0
  255. package/node/@design-edito/thumbnails/layout/index.js +31 -0
  256. package/node/@express/@multer/index.d.ts +22 -0
  257. package/node/@express/@multer/index.js +9 -0
  258. package/node/@express/index.d.ts +2 -0
  259. package/node/@express/index.js +9 -0
  260. package/node/@google-cloud/index.d.ts +2 -0
  261. package/node/@google-cloud/index.js +24 -0
  262. package/node/@google-cloud/storage/bucket/get-metadata/index.d.ts +18 -0
  263. package/node/@google-cloud/storage/bucket/get-metadata/index.js +9 -0
  264. package/node/@google-cloud/storage/bucket/index.d.ts +3 -0
  265. package/node/@google-cloud/storage/bucket/index.js +14 -0
  266. package/node/@google-cloud/storage/bucket/list/index.d.ts +17 -0
  267. package/node/@google-cloud/storage/bucket/list/index.js +9 -0
  268. package/node/@google-cloud/storage/file/copy/index.d.ts +21 -0
  269. package/node/@google-cloud/storage/file/copy/index.js +9 -0
  270. package/node/@google-cloud/storage/file/download/index.d.ts +20 -0
  271. package/node/@google-cloud/storage/file/download/index.js +9 -0
  272. package/node/@google-cloud/storage/file/erase/index.d.ts +20 -0
  273. package/node/@google-cloud/storage/file/erase/index.js +9 -0
  274. package/node/@google-cloud/storage/file/exists/index.d.ts +19 -0
  275. package/node/@google-cloud/storage/file/exists/index.js +9 -0
  276. package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +23 -0
  277. package/node/@google-cloud/storage/file/generate-signed-url/index.js +9 -0
  278. package/node/@google-cloud/storage/file/get-metadata/index.d.ts +22 -0
  279. package/node/@google-cloud/storage/file/get-metadata/index.js +9 -0
  280. package/node/@google-cloud/storage/file/get-permissions/index.d.ts +19 -0
  281. package/node/@google-cloud/storage/file/get-permissions/index.js +9 -0
  282. package/node/@google-cloud/storage/file/index.d.ts +12 -0
  283. package/node/@google-cloud/storage/file/index.js +50 -0
  284. package/node/@google-cloud/storage/file/move/index.d.ts +24 -0
  285. package/node/@google-cloud/storage/file/move/index.js +9 -0
  286. package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +26 -0
  287. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +12 -0
  288. package/node/@google-cloud/storage/file/update-metadata/index.d.ts +24 -0
  289. package/node/@google-cloud/storage/file/update-metadata/index.js +9 -0
  290. package/node/@google-cloud/storage/file/upload/index.d.ts +21 -0
  291. package/node/@google-cloud/storage/file/upload/index.js +9 -0
  292. package/node/@google-cloud/storage/index.d.ts +3 -0
  293. package/node/@google-cloud/storage/index.js +27 -0
  294. package/node/encryption/buffer/index.d.ts +55 -0
  295. package/node/encryption/buffer/index.js +16 -0
  296. package/node/encryption/generate-key/index.d.ts +16 -0
  297. package/node/encryption/generate-key/index.js +7 -0
  298. package/node/encryption/index.d.ts +5 -0
  299. package/node/encryption/index.js +29 -0
  300. package/node/encryption/uint8-array/index.d.ts +57 -0
  301. package/node/encryption/uint8-array/index.js +15 -0
  302. package/node/files/index.d.ts +4 -6
  303. package/node/files/index.js +7 -7
  304. package/node/files/is-in-directory/index.js +1 -0
  305. package/node/files/read-write/index.d.ts +1 -1
  306. package/node/files/read-write/index.js +1 -0
  307. package/node/files/subpaths/index.js +1 -0
  308. package/node/images/exports/index.d.ts +15 -0
  309. package/node/images/exports/index.js +11 -0
  310. package/node/images/index.d.ts +4 -0
  311. package/node/images/index.js +24 -0
  312. package/node/images/prepare/index.d.ts +17 -0
  313. package/node/images/prepare/index.js +22 -0
  314. package/node/images/transform/area-composition/index.d.ts +60 -0
  315. package/node/images/transform/area-composition/index.js +16 -0
  316. package/node/images/transform/index.d.ts +30 -0
  317. package/node/images/transform/index.js +17 -0
  318. package/node/index.d.ts +8 -6
  319. package/node/process/index.d.ts +5 -7
  320. package/node/process/index.js +11 -9
  321. package/node/process/on-exit/index.js +1 -0
  322. package/package.json +15 -2
@@ -0,0 +1,191 @@
1
+ import {
2
+ Arrays
3
+ } from "./chunk-ZS5OHINP.js";
4
+ import {
5
+ Random
6
+ } from "./chunk-OVG5RGI3.js";
7
+
8
+ // src/agnostic/misc/lorem-ipsum/index.ts
9
+ var LoremIpsum;
10
+ ((LoremIpsum2) => {
11
+ LoremIpsum2.words = [
12
+ "a",
13
+ "ac",
14
+ "accumsan",
15
+ "adipiscing",
16
+ "aenean",
17
+ "aliquam",
18
+ "aliquet",
19
+ "amet",
20
+ "ante",
21
+ "arcu",
22
+ "at",
23
+ "auctor",
24
+ "augue",
25
+ "bibendum",
26
+ "blandit",
27
+ "condimentum",
28
+ "consectetur",
29
+ "consequat",
30
+ "convallis",
31
+ "cras",
32
+ "curabitur",
33
+ "cursus",
34
+ "dapibus",
35
+ "diam",
36
+ "dictum",
37
+ "dictumst",
38
+ "dignissim",
39
+ "dolor",
40
+ "donec",
41
+ "dui",
42
+ "duis",
43
+ "efficitur",
44
+ "egestas",
45
+ "eget",
46
+ "eleifend",
47
+ "elementum",
48
+ "elit",
49
+ "enim",
50
+ "erat",
51
+ "eros",
52
+ "est",
53
+ "et",
54
+ "eu",
55
+ "euismod",
56
+ "ex",
57
+ "facilisis",
58
+ "faucibus",
59
+ "felis",
60
+ "feugiat",
61
+ "finibus",
62
+ "fringilla",
63
+ "fusce",
64
+ "gravida",
65
+ "habitasse",
66
+ "hac",
67
+ "hendrerit",
68
+ "iaculis",
69
+ "id",
70
+ "imperdiet",
71
+ "in",
72
+ "integer",
73
+ "interdum",
74
+ "ipsum",
75
+ "justo",
76
+ "lacinia",
77
+ "lacus",
78
+ "laoreet",
79
+ "lectus",
80
+ "leo",
81
+ "libero",
82
+ "ligula",
83
+ "lobortis",
84
+ "lorem",
85
+ "luctus",
86
+ "maecenas",
87
+ "magna",
88
+ "malesuada",
89
+ "massa",
90
+ "mattis",
91
+ "mauris",
92
+ "maximus",
93
+ "metus",
94
+ "mi",
95
+ "molestie",
96
+ "mollis",
97
+ "morbi",
98
+ "nam",
99
+ "nec",
100
+ "neque",
101
+ "nibh",
102
+ "nisi",
103
+ "nisl",
104
+ "non",
105
+ "nulla",
106
+ "nullam",
107
+ "nunc",
108
+ "odio",
109
+ "orci",
110
+ "ornare",
111
+ "pellentesque",
112
+ "pharetra",
113
+ "phasellus",
114
+ "placerat",
115
+ "platea",
116
+ "porta",
117
+ "porttitor",
118
+ "posuere",
119
+ "praesent",
120
+ "pulvinar",
121
+ "purus",
122
+ "quam",
123
+ "quis",
124
+ "quisque",
125
+ "risus",
126
+ "rutrum",
127
+ "sagittis",
128
+ "sapien",
129
+ "sed",
130
+ "sem",
131
+ "semper",
132
+ "sit",
133
+ "sodales",
134
+ "sollicitudin",
135
+ "suscipit",
136
+ "suspendisse",
137
+ "tellus",
138
+ "tempor",
139
+ "tempus",
140
+ "tincidunt",
141
+ "tortor",
142
+ "tristique",
143
+ "turpis",
144
+ "ultrices",
145
+ "ultricies",
146
+ "urna",
147
+ "ut",
148
+ "vehicula",
149
+ "vel",
150
+ "velit",
151
+ "venenatis",
152
+ "vestibulum",
153
+ "vitae",
154
+ "vivamus",
155
+ "viverra",
156
+ "volutpat",
157
+ "vulputate"
158
+ ];
159
+ LoremIpsum2.generateSentence = (wordCount) => {
160
+ const resultArr = [];
161
+ let currentWordCound = wordCount;
162
+ for (let i = 0; i < currentWordCound; i++) {
163
+ const picked = Arrays.randomPick(LoremIpsum2.words);
164
+ if (typeof picked === "string") resultArr.push(picked);
165
+ else {
166
+ currentWordCound += 1;
167
+ }
168
+ }
169
+ const [firstWord, ...otherWords] = resultArr;
170
+ if (firstWord === void 0) return "";
171
+ const capFirstLetter = firstWord?.charAt(0).toUpperCase();
172
+ const restOfFirstWord = firstWord?.slice(1);
173
+ const sentence = [
174
+ `${capFirstLetter}${restOfFirstWord}`,
175
+ ...otherWords
176
+ ].join(" ");
177
+ return `${sentence}.`;
178
+ };
179
+ LoremIpsum2.generateSentences = (sentencesCount, maxSentenceLength = 12, minSentenceLength = 4) => {
180
+ const sentences = [];
181
+ for (let i = 0; i < sentencesCount; i++) {
182
+ const length = Random.randomInt(maxSentenceLength, minSentenceLength) ?? 8;
183
+ sentences.push((0, LoremIpsum2.generateSentence)(length));
184
+ }
185
+ return sentences;
186
+ };
187
+ })(LoremIpsum || (LoremIpsum = {}));
188
+
189
+ export {
190
+ LoremIpsum
191
+ };
@@ -0,0 +1,31 @@
1
+ import {
2
+ Outcome
3
+ } from "./chunk-JMU5PDBD.js";
4
+ import {
5
+ unknownToString
6
+ } from "./chunk-FENXVJYO.js";
7
+ import {
8
+ __export
9
+ } from "./chunk-XCBH6NLF.js";
10
+
11
+ // src/node/@google-cloud/storage/bucket/list/index.ts
12
+ var list_exports = {};
13
+ __export(list_exports, {
14
+ list: () => list
15
+ });
16
+ async function list(bucket, options) {
17
+ const { getFileOptions } = options ?? {};
18
+ try {
19
+ const [files] = await bucket.getFiles(getFileOptions);
20
+ const fileNames = files.map((file) => file.name);
21
+ return Outcome.makeSuccess(fileNames);
22
+ } catch (err) {
23
+ const errStr = unknownToString(err);
24
+ return Outcome.makeFailure(errStr);
25
+ }
26
+ }
27
+
28
+ export {
29
+ list,
30
+ list_exports
31
+ };
@@ -0,0 +1,484 @@
1
+ import {
2
+ __commonJS,
3
+ __export,
4
+ __toESM
5
+ } from "./chunk-XCBH6NLF.js";
6
+
7
+ // node_modules/quantize/quantize.js
8
+ var require_quantize = __commonJS({
9
+ "node_modules/quantize/quantize.js"(exports, module) {
10
+ if (!pv) {
11
+ pv = {
12
+ map: function(array, f) {
13
+ var o = {};
14
+ return f ? array.map(function(d, i) {
15
+ o.index = i;
16
+ return f.call(o, d);
17
+ }) : array.slice();
18
+ },
19
+ naturalOrder: function(a, b) {
20
+ return a < b ? -1 : a > b ? 1 : 0;
21
+ },
22
+ sum: function(array, f) {
23
+ var o = {};
24
+ return array.reduce(f ? function(p, d, i) {
25
+ o.index = i;
26
+ return p + f.call(o, d);
27
+ } : function(p, d) {
28
+ return p + d;
29
+ }, 0);
30
+ },
31
+ max: function(array, f) {
32
+ return Math.max.apply(null, f ? pv.map(array, f) : array);
33
+ }
34
+ };
35
+ }
36
+ var pv;
37
+ var MMCQ = function() {
38
+ var sigbits = 5, rshift = 8 - sigbits, maxIterations = 1e3, fractByPopulations = 0.75;
39
+ function getColorIndex(r, g, b) {
40
+ return (r << 2 * sigbits) + (g << sigbits) + b;
41
+ }
42
+ function PQueue(comparator) {
43
+ var contents = [], sorted = false;
44
+ function sort() {
45
+ contents.sort(comparator);
46
+ sorted = true;
47
+ }
48
+ return {
49
+ push: function(o) {
50
+ contents.push(o);
51
+ sorted = false;
52
+ },
53
+ peek: function(index) {
54
+ if (!sorted) sort();
55
+ if (index === void 0) index = contents.length - 1;
56
+ return contents[index];
57
+ },
58
+ pop: function() {
59
+ if (!sorted) sort();
60
+ return contents.pop();
61
+ },
62
+ size: function() {
63
+ return contents.length;
64
+ },
65
+ map: function(f) {
66
+ return contents.map(f);
67
+ },
68
+ debug: function() {
69
+ if (!sorted) sort();
70
+ return contents;
71
+ }
72
+ };
73
+ }
74
+ function VBox(r1, r2, g1, g2, b1, b2, histo) {
75
+ var vbox = this;
76
+ vbox.r1 = r1;
77
+ vbox.r2 = r2;
78
+ vbox.g1 = g1;
79
+ vbox.g2 = g2;
80
+ vbox.b1 = b1;
81
+ vbox.b2 = b2;
82
+ vbox.histo = histo;
83
+ }
84
+ VBox.prototype = {
85
+ volume: function(force) {
86
+ var vbox = this;
87
+ if (!vbox._volume || force) {
88
+ vbox._volume = (vbox.r2 - vbox.r1 + 1) * (vbox.g2 - vbox.g1 + 1) * (vbox.b2 - vbox.b1 + 1);
89
+ }
90
+ return vbox._volume;
91
+ },
92
+ count: function(force) {
93
+ var vbox = this, histo = vbox.histo;
94
+ if (!vbox._count_set || force) {
95
+ var npix = 0, i, j, k, index;
96
+ for (i = vbox.r1; i <= vbox.r2; i++) {
97
+ for (j = vbox.g1; j <= vbox.g2; j++) {
98
+ for (k = vbox.b1; k <= vbox.b2; k++) {
99
+ index = getColorIndex(i, j, k);
100
+ npix += histo[index] || 0;
101
+ }
102
+ }
103
+ }
104
+ vbox._count = npix;
105
+ vbox._count_set = true;
106
+ }
107
+ return vbox._count;
108
+ },
109
+ copy: function() {
110
+ var vbox = this;
111
+ return new VBox(vbox.r1, vbox.r2, vbox.g1, vbox.g2, vbox.b1, vbox.b2, vbox.histo);
112
+ },
113
+ avg: function(force) {
114
+ var vbox = this, histo = vbox.histo;
115
+ if (!vbox._avg || force) {
116
+ var ntot = 0, mult = 1 << 8 - sigbits, rsum = 0, gsum = 0, bsum = 0, hval, i, j, k, histoindex;
117
+ for (i = vbox.r1; i <= vbox.r2; i++) {
118
+ for (j = vbox.g1; j <= vbox.g2; j++) {
119
+ for (k = vbox.b1; k <= vbox.b2; k++) {
120
+ histoindex = getColorIndex(i, j, k);
121
+ hval = histo[histoindex] || 0;
122
+ ntot += hval;
123
+ rsum += hval * (i + 0.5) * mult;
124
+ gsum += hval * (j + 0.5) * mult;
125
+ bsum += hval * (k + 0.5) * mult;
126
+ }
127
+ }
128
+ }
129
+ if (ntot) {
130
+ vbox._avg = [~~(rsum / ntot), ~~(gsum / ntot), ~~(bsum / ntot)];
131
+ } else {
132
+ vbox._avg = [~~(mult * (vbox.r1 + vbox.r2 + 1) / 2), ~~(mult * (vbox.g1 + vbox.g2 + 1) / 2), ~~(mult * (vbox.b1 + vbox.b2 + 1) / 2)];
133
+ }
134
+ }
135
+ return vbox._avg;
136
+ },
137
+ contains: function(pixel) {
138
+ var vbox = this, rval = pixel[0] >> rshift;
139
+ gval = pixel[1] >> rshift;
140
+ bval = pixel[2] >> rshift;
141
+ return rval >= vbox.r1 && rval <= vbox.r2 && gval >= vbox.g1 && gval <= vbox.g2 && bval >= vbox.b1 && bval <= vbox.b2;
142
+ }
143
+ };
144
+ function CMap() {
145
+ this.vboxes = new PQueue(function(a, b) {
146
+ return pv.naturalOrder(
147
+ a.vbox.count() * a.vbox.volume(),
148
+ b.vbox.count() * b.vbox.volume()
149
+ );
150
+ });
151
+ ;
152
+ }
153
+ CMap.prototype = {
154
+ push: function(vbox) {
155
+ this.vboxes.push({
156
+ vbox,
157
+ color: vbox.avg()
158
+ });
159
+ },
160
+ palette: function() {
161
+ return this.vboxes.map(function(vb) {
162
+ return vb.color;
163
+ });
164
+ },
165
+ size: function() {
166
+ return this.vboxes.size();
167
+ },
168
+ map: function(color) {
169
+ var vboxes = this.vboxes;
170
+ for (var i = 0; i < vboxes.size(); i++) {
171
+ if (vboxes.peek(i).vbox.contains(color)) {
172
+ return vboxes.peek(i).color;
173
+ }
174
+ }
175
+ return this.nearest(color);
176
+ },
177
+ nearest: function(color) {
178
+ var vboxes = this.vboxes, d1, d2, pColor;
179
+ for (var i = 0; i < vboxes.size(); i++) {
180
+ d2 = Math.sqrt(
181
+ Math.pow(color[0] - vboxes.peek(i).color[0], 2) + Math.pow(color[1] - vboxes.peek(i).color[1], 2) + Math.pow(color[2] - vboxes.peek(i).color[2], 2)
182
+ );
183
+ if (d2 < d1 || d1 === void 0) {
184
+ d1 = d2;
185
+ pColor = vboxes.peek(i).color;
186
+ }
187
+ }
188
+ return pColor;
189
+ },
190
+ forcebw: function() {
191
+ var vboxes = this.vboxes;
192
+ vboxes.sort(function(a, b) {
193
+ return pv.naturalOrder(pv.sum(a.color), pv.sum(b.color));
194
+ });
195
+ var lowest = vboxes[0].color;
196
+ if (lowest[0] < 5 && lowest[1] < 5 && lowest[2] < 5)
197
+ vboxes[0].color = [0, 0, 0];
198
+ var idx = vboxes.length - 1, highest = vboxes[idx].color;
199
+ if (highest[0] > 251 && highest[1] > 251 && highest[2] > 251)
200
+ vboxes[idx].color = [255, 255, 255];
201
+ }
202
+ };
203
+ function getHisto(pixels) {
204
+ var histosize = 1 << 3 * sigbits, histo = new Array(histosize), index, rval, gval2, bval2;
205
+ pixels.forEach(function(pixel) {
206
+ rval = pixel[0] >> rshift;
207
+ gval2 = pixel[1] >> rshift;
208
+ bval2 = pixel[2] >> rshift;
209
+ index = getColorIndex(rval, gval2, bval2);
210
+ histo[index] = (histo[index] || 0) + 1;
211
+ });
212
+ return histo;
213
+ }
214
+ function vboxFromPixels(pixels, histo) {
215
+ var rmin = 1e6, rmax = 0, gmin = 1e6, gmax = 0, bmin = 1e6, bmax = 0, rval, gval2, bval2;
216
+ pixels.forEach(function(pixel) {
217
+ rval = pixel[0] >> rshift;
218
+ gval2 = pixel[1] >> rshift;
219
+ bval2 = pixel[2] >> rshift;
220
+ if (rval < rmin) rmin = rval;
221
+ else if (rval > rmax) rmax = rval;
222
+ if (gval2 < gmin) gmin = gval2;
223
+ else if (gval2 > gmax) gmax = gval2;
224
+ if (bval2 < bmin) bmin = bval2;
225
+ else if (bval2 > bmax) bmax = bval2;
226
+ });
227
+ return new VBox(rmin, rmax, gmin, gmax, bmin, bmax, histo);
228
+ }
229
+ function medianCutApply(histo, vbox) {
230
+ if (!vbox.count()) return;
231
+ var rw = vbox.r2 - vbox.r1 + 1, gw = vbox.g2 - vbox.g1 + 1, bw = vbox.b2 - vbox.b1 + 1, maxw = pv.max([rw, gw, bw]);
232
+ if (vbox.count() == 1) {
233
+ return [vbox.copy()];
234
+ }
235
+ var total = 0, partialsum = [], lookaheadsum = [], i, j, k, sum, index;
236
+ if (maxw == rw) {
237
+ for (i = vbox.r1; i <= vbox.r2; i++) {
238
+ sum = 0;
239
+ for (j = vbox.g1; j <= vbox.g2; j++) {
240
+ for (k = vbox.b1; k <= vbox.b2; k++) {
241
+ index = getColorIndex(i, j, k);
242
+ sum += histo[index] || 0;
243
+ }
244
+ }
245
+ total += sum;
246
+ partialsum[i] = total;
247
+ }
248
+ } else if (maxw == gw) {
249
+ for (i = vbox.g1; i <= vbox.g2; i++) {
250
+ sum = 0;
251
+ for (j = vbox.r1; j <= vbox.r2; j++) {
252
+ for (k = vbox.b1; k <= vbox.b2; k++) {
253
+ index = getColorIndex(j, i, k);
254
+ sum += histo[index] || 0;
255
+ }
256
+ }
257
+ total += sum;
258
+ partialsum[i] = total;
259
+ }
260
+ } else {
261
+ for (i = vbox.b1; i <= vbox.b2; i++) {
262
+ sum = 0;
263
+ for (j = vbox.r1; j <= vbox.r2; j++) {
264
+ for (k = vbox.g1; k <= vbox.g2; k++) {
265
+ index = getColorIndex(j, k, i);
266
+ sum += histo[index] || 0;
267
+ }
268
+ }
269
+ total += sum;
270
+ partialsum[i] = total;
271
+ }
272
+ }
273
+ partialsum.forEach(function(d, i2) {
274
+ lookaheadsum[i2] = total - d;
275
+ });
276
+ function doCut(color) {
277
+ var dim1 = color + "1", dim2 = color + "2", left, right, vbox1, vbox2, d2, count2 = 0;
278
+ for (i = vbox[dim1]; i <= vbox[dim2]; i++) {
279
+ if (partialsum[i] > total / 2) {
280
+ vbox1 = vbox.copy();
281
+ vbox2 = vbox.copy();
282
+ left = i - vbox[dim1];
283
+ right = vbox[dim2] - i;
284
+ if (left <= right)
285
+ d2 = Math.min(vbox[dim2] - 1, ~~(i + right / 2));
286
+ else d2 = Math.max(vbox[dim1], ~~(i - 1 - left / 2));
287
+ while (!partialsum[d2]) d2++;
288
+ count2 = lookaheadsum[d2];
289
+ while (!count2 && partialsum[d2 - 1]) count2 = lookaheadsum[--d2];
290
+ vbox1[dim2] = d2;
291
+ vbox2[dim1] = vbox1[dim2] + 1;
292
+ return [vbox1, vbox2];
293
+ }
294
+ }
295
+ }
296
+ return maxw == rw ? doCut("r") : maxw == gw ? doCut("g") : doCut("b");
297
+ }
298
+ function quantize2(pixels, maxcolors) {
299
+ if (!pixels.length || maxcolors < 2 || maxcolors > 256) {
300
+ return false;
301
+ }
302
+ var histo = getHisto(pixels), histosize = 1 << 3 * sigbits;
303
+ var nColors = 0;
304
+ histo.forEach(function() {
305
+ nColors++;
306
+ });
307
+ if (nColors <= maxcolors) {
308
+ }
309
+ var vbox = vboxFromPixels(pixels, histo), pq = new PQueue(function(a, b) {
310
+ return pv.naturalOrder(a.count(), b.count());
311
+ });
312
+ pq.push(vbox);
313
+ function iter(lh, target) {
314
+ var ncolors = 1, niters = 0, vbox2;
315
+ while (niters < maxIterations) {
316
+ vbox2 = lh.pop();
317
+ if (!vbox2.count()) {
318
+ lh.push(vbox2);
319
+ niters++;
320
+ continue;
321
+ }
322
+ var vboxes = medianCutApply(histo, vbox2), vbox1 = vboxes[0], vbox22 = vboxes[1];
323
+ if (!vbox1) {
324
+ return;
325
+ }
326
+ lh.push(vbox1);
327
+ if (vbox22) {
328
+ lh.push(vbox22);
329
+ ncolors++;
330
+ }
331
+ if (ncolors >= target) return;
332
+ if (niters++ > maxIterations) {
333
+ return;
334
+ }
335
+ }
336
+ }
337
+ iter(pq, fractByPopulations * maxcolors);
338
+ var pq2 = new PQueue(function(a, b) {
339
+ return pv.naturalOrder(a.count() * a.volume(), b.count() * b.volume());
340
+ });
341
+ while (pq.size()) {
342
+ pq2.push(pq.pop());
343
+ }
344
+ iter(pq2, maxcolors - pq2.size());
345
+ var cmap = new CMap();
346
+ while (pq2.size()) {
347
+ cmap.push(pq2.pop());
348
+ }
349
+ return cmap;
350
+ }
351
+ return {
352
+ quantize: quantize2
353
+ };
354
+ }();
355
+ module.exports = MMCQ.quantize;
356
+ }
357
+ });
358
+
359
+ // src/node/@design-edito/thumbnails/colors/index.ts
360
+ var colors_exports = {};
361
+ __export(colors_exports, {
362
+ HEXToRGB: () => HEXToRGB,
363
+ HSLToRGB: () => HSLToRGB,
364
+ RGBToHSL: () => RGBToHSL,
365
+ RGBToHex: () => RGBToHex,
366
+ complementColor: () => complementColor,
367
+ extractPaletteFromImage: () => extractPaletteFromImage,
368
+ getPalette: () => getPalette,
369
+ getPixel: () => getPixel,
370
+ getPixels: () => getPixels,
371
+ ligthenColor: () => ligthenColor,
372
+ saturateColor: () => saturateColor,
373
+ toHex: () => toHex
374
+ });
375
+ var import_quantize = __toESM(require_quantize(), 1);
376
+ function extractPaletteFromImage(data, imageDimensions, options) {
377
+ const pixels = getPixels(data, imageDimensions.w, imageDimensions.h);
378
+ const palette = getPalette(pixels, options.extractPaletteDensity);
379
+ const complementaryPalette = palette.map((color) => complementColor(color));
380
+ return {
381
+ default: {
382
+ default: palette,
383
+ saturate: palette.map((color) => saturateColor(color, options.saturateIntensity)),
384
+ lighten: palette.map((color) => ligthenColor(color, options.lightenIntensity))
385
+ },
386
+ complementary: {
387
+ default: complementaryPalette,
388
+ saturate: complementaryPalette.map((color) => saturateColor(color, options.saturateIntensity)),
389
+ lighten: complementaryPalette.map((color) => ligthenColor(color, options.lightenIntensity))
390
+ }
391
+ };
392
+ }
393
+ var getPixel = (data, x, y, width, nbChannels) => {
394
+ const index = nbChannels * (width * y + x);
395
+ const r = data[index] || 0;
396
+ const g = data[index + 1] || 0;
397
+ const b = data[index + 2] || 0;
398
+ return [r, g, b];
399
+ };
400
+ var getPixels = (data, width, height, nbChannels = 3) => {
401
+ const pixels = [];
402
+ for (let i = 0; i < width; i++) {
403
+ for (let j = 0; j < height; j++) {
404
+ const pixel = getPixel(data, i, j, width, nbChannels);
405
+ pixels.push(pixel);
406
+ }
407
+ }
408
+ return pixels;
409
+ };
410
+ var getPalette = (pixels, paletteDensity) => {
411
+ const _paletteDensity = paletteDensity < 5 ? paletteDensity - 1 : paletteDensity;
412
+ const colorMap = (0, import_quantize.default)(pixels, _paletteDensity);
413
+ const palette = colorMap ? colorMap.palette() : [];
414
+ return palette;
415
+ };
416
+ var toHex = (c) => {
417
+ const hex = c.toString(16);
418
+ return hex.length === 1 ? `0${hex}` : hex;
419
+ };
420
+ var RGBToHSL = (color) => {
421
+ const r = color[0] / 255;
422
+ const g = color[1] / 255;
423
+ const b = color[2] / 255;
424
+ const l = Math.max(r, g, b);
425
+ const s = l - Math.min(r, g, b);
426
+ const h = s ? l === r ? (g - b) / s : l === g ? 2 + (b - r) / s : 4 + (r - g) / s : 0;
427
+ const outputH = 60 * h < 0 ? 60 * h + 360 : 60 * h;
428
+ const outputS = 100 * (s ? l <= 0.5 ? s / (2 * l - s) : s / (2 - (2 * l - s)) : 0);
429
+ const outputL = 100 * (2 * l - s) / 2;
430
+ return [outputH, outputS, outputL];
431
+ };
432
+ var HSLToRGB = (color) => {
433
+ const h = color[0];
434
+ const s = color[1] / 100;
435
+ const l = color[2] / 100;
436
+ const k = (n) => (n + h / 30) % 12;
437
+ const a = s * Math.min(l, 1 - l);
438
+ const f = (n) => l - a * Math.max(-1, Math.min(k(n) - 3, Math.min(9 - k(n), 1)));
439
+ const r = Math.round(255 * f(0));
440
+ const g = Math.round(255 * f(8));
441
+ const b = Math.round(255 * f(4));
442
+ return [r, g, b];
443
+ };
444
+ var HEXToRGB = (hexColor) => {
445
+ const _hexColor = hexColor.replace("#", "");
446
+ const r = Math.max(0, Math.min(255, parseInt(_hexColor.substring(0, 2), 16)));
447
+ const g = Math.max(0, Math.min(255, parseInt(_hexColor.substring(2, 4), 16)));
448
+ const b = Math.max(0, Math.min(255, parseInt(_hexColor.substring(4, 6), 16)));
449
+ return [r, g, b];
450
+ };
451
+ var RGBToHex = (color) => {
452
+ return `#${toHex(color[0])}${toHex(color[1])}${toHex(color[2])}`;
453
+ };
454
+ var complementColor = (color) => {
455
+ const [r, g, b] = color;
456
+ const m = Math.min(r, g, b) + Math.max(r, g, b);
457
+ return [m - r, m - g, m - b];
458
+ };
459
+ var ligthenColor = (color, intensity = 20) => {
460
+ const [h, s, l] = RGBToHSL(color);
461
+ const rgb = HSLToRGB([h, s, Math.min(100, l + intensity)]);
462
+ return rgb;
463
+ };
464
+ var saturateColor = (color, intensity = 20) => {
465
+ const [h, s, l] = RGBToHSL(color);
466
+ const rgb = HSLToRGB([h, Math.min(100, s + intensity), l]);
467
+ return rgb;
468
+ };
469
+
470
+ export {
471
+ extractPaletteFromImage,
472
+ getPixel,
473
+ getPixels,
474
+ getPalette,
475
+ toHex,
476
+ RGBToHSL,
477
+ HSLToRGB,
478
+ HEXToRGB,
479
+ RGBToHex,
480
+ complementColor,
481
+ ligthenColor,
482
+ saturateColor,
483
+ colors_exports
484
+ };
File without changes