@design-edito/tools 0.1.71 → 0.1.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agnostic/arrays/find-duplicates/index.js +1 -1
- package/agnostic/arrays/index.js +6 -6
- package/agnostic/arrays/is-array-of/index.js +1 -1
- package/agnostic/arrays/make/index.js +1 -1
- package/agnostic/arrays/random-pick/index.js +5 -5
- package/agnostic/arrays/shuffle/index.js +1 -1
- package/agnostic/booleans/index.js +1 -1
- package/agnostic/booleans/is-falsy/index.js +1 -1
- package/agnostic/colors/complement-color/index.js +1 -1
- package/agnostic/colors/hex-to-rgb/index.js +1 -1
- package/agnostic/colors/hsl-to-rgb/index.js +1 -1
- package/agnostic/colors/index.js +12 -12
- package/agnostic/colors/lighten-color/index.js +3 -3
- package/agnostic/colors/rgb-to-hex/index.js +1 -1
- package/agnostic/colors/rgb-to-hsl/index.js +1 -1
- package/agnostic/colors/saturate-color/index.js +3 -3
- package/agnostic/css/bem/index.js +3 -3
- package/agnostic/css/generate-nice-color/index.js +1 -1
- package/agnostic/css/index.js +12 -12
- package/agnostic/css/is-valid-css-class-name/index.js +1 -1
- package/agnostic/css/styles-set/index.js +5 -5
- package/agnostic/errors/index.js +1 -1
- package/agnostic/errors/register/index.js +1 -1
- package/agnostic/errors/unknown-to-string/index.js +1 -1
- package/agnostic/html/get-node-ancestors/index.js +1 -1
- package/agnostic/html/get-position-inside-parent/index.js +1 -1
- package/agnostic/html/hyper-json/cast/index.js +8 -8
- package/agnostic/html/hyper-json/index.js +9 -9
- package/agnostic/html/hyper-json/method/index.js +1 -1
- package/agnostic/html/hyper-json/serialize/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperties/index.d.ts +4 -0
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperties/index.js +21 -0
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +8 -8
- package/agnostic/html/hyper-json/transformer/index.js +1 -1
- package/agnostic/html/hyper-json/tree/index.js +8 -8
- package/agnostic/html/hyper-json/types/index.js +1 -1
- package/agnostic/html/hyper-json/utils/index.js +8 -8
- package/agnostic/html/index.js +21 -21
- package/agnostic/html/insert-node/index.js +1 -1
- package/agnostic/html/placeholders/index.js +1 -1
- package/agnostic/html/replace-in-element/index.js +1 -1
- package/agnostic/html/sanitize/index.js +5 -5
- package/agnostic/html/selector-to-element/index.js +5 -5
- package/agnostic/html/string-to-nodes/index.js +6 -6
- package/agnostic/misc/assert/index.js +1 -1
- package/agnostic/misc/cast/index.js +1 -1
- package/agnostic/misc/crawler/index.js +1 -1
- package/agnostic/misc/crossenv/detect-runtime/index.js +1 -1
- package/agnostic/misc/crossenv/get-document/index.d.ts +2 -0
- package/agnostic/misc/crossenv/get-document/index.js +7 -0
- package/agnostic/misc/crossenv/get-window/browser.d.ts +2 -0
- package/agnostic/misc/crossenv/get-window/index.d.ts +2 -0
- package/agnostic/misc/crossenv/get-window/index.js +6 -0
- package/agnostic/misc/crossenv/index.js +3 -3
- package/agnostic/misc/crossenv/types/index.js +1 -1
- package/agnostic/misc/crossenv/types.d.ts +3 -0
- package/agnostic/misc/crossenv/window/index.js +1 -1
- package/agnostic/misc/data-size/index.js +2 -2
- package/agnostic/misc/elo/index.js +1 -1
- package/agnostic/misc/get-current-downlink/index.js +1 -1
- package/agnostic/misc/index.js +15 -15
- package/agnostic/misc/is-constructor-function/index.js +1 -1
- package/agnostic/misc/is-nullish/index.js +1 -1
- package/agnostic/misc/logs/index.js +1 -1
- package/agnostic/misc/logs/logger/index.js +1 -1
- package/agnostic/misc/logs/make-text-block/index.js +1 -1
- package/agnostic/misc/logs/styles/index.js +1 -1
- package/agnostic/misc/lorem-ipsum/index.js +7 -7
- package/agnostic/misc/normalize-extension/index.js +1 -1
- package/agnostic/misc/outcome/index.js +1 -1
- package/agnostic/numbers/absolute-modulo/index.js +1 -1
- package/agnostic/numbers/clamp/index.js +1 -1
- package/agnostic/numbers/index.js +4 -4
- package/agnostic/numbers/interpolate/index.js +1 -1
- package/agnostic/numbers/responsive-harmonics/index.js +1 -1
- package/agnostic/numbers/round/index.js +1 -1
- package/agnostic/objects/deep-get-property/index.js +1 -1
- package/agnostic/objects/enums/index.js +1 -1
- package/agnostic/objects/enums/is-in-enum/index.js +1 -1
- package/agnostic/objects/flatten-getters/index.js +1 -1
- package/agnostic/objects/index.js +17 -17
- package/agnostic/objects/is-object/index.js +1 -1
- package/agnostic/objects/is-record/index.js +1 -1
- package/agnostic/objects/record-format/index.js +1 -1
- package/agnostic/objects/record-map/index.js +1 -1
- package/agnostic/objects/validation/index.js +1 -1
- package/agnostic/optim/index.js +4 -4
- package/agnostic/optim/memoize/index.js +1 -1
- package/agnostic/optim/throttle-debounce/index.js +1 -1
- package/agnostic/random/hex-char/index.js +1 -1
- package/agnostic/random/index.js +1 -1
- package/agnostic/random/random/index.js +1 -1
- package/agnostic/random/uuid/index.js +1 -1
- package/agnostic/regexps/index.js +1 -1
- package/agnostic/sanitization/index.js +1 -1
- package/agnostic/strings/char-codes/index.js +1 -1
- package/agnostic/strings/index.js +7 -7
- package/agnostic/strings/matches/index.js +1 -1
- package/agnostic/strings/normalize-indent/index.js +1 -1
- package/agnostic/strings/replace-all/index.js +1 -1
- package/agnostic/strings/to-alphanum/index.js +1 -1
- package/agnostic/strings/trim/index.js +1 -1
- package/agnostic/time/dates/format-date/index.js +1 -1
- package/agnostic/time/dates/index.js +1 -1
- package/agnostic/time/duration/index.js +1 -1
- package/agnostic/time/index.js +10 -10
- package/agnostic/time/timeout/index.js +1 -1
- package/agnostic/time/transitions/index.js +1 -1
- package/agnostic/time/wait/index.js +1 -1
- package/chunks/chunk-24O4C4HG.js +37 -0
- package/chunks/chunk-26V5RC4U.js +29 -0
- package/chunks/chunk-2ALVFCSP.js +211 -0
- package/chunks/chunk-2COSSNOE.js +31 -0
- package/chunks/chunk-2DYDNCZK.js +56 -0
- package/chunks/chunk-2NXYSAFE.js +67 -0
- package/chunks/chunk-2RFYHF6F.js +36 -0
- package/chunks/chunk-2UPQ73EE.js +83 -0
- package/chunks/chunk-2YGNPA2R.js +79 -0
- package/chunks/chunk-33GNX62K.js +2456 -0
- package/chunks/chunk-34C35EX6.js +16 -0
- package/chunks/chunk-36CTYZYA.js +28 -0
- package/chunks/chunk-3G4NTP23.js +53 -0
- package/chunks/chunk-3J4WAVX6.js +28 -0
- package/chunks/chunk-45S766KF.js +15 -0
- package/chunks/chunk-4GUDL44X.js +13 -0
- package/chunks/chunk-4IHBBNAG.js +32 -0
- package/chunks/chunk-4MLQ42IU.js +42 -0
- package/chunks/chunk-4PAHEIPV.js +42 -0
- package/chunks/chunk-4QQBKBYH.js +59 -0
- package/chunks/chunk-4XS5UIQF.js +41 -0
- package/chunks/chunk-54B7VIY6.js +46 -0
- package/chunks/chunk-5CYREVPP.js +42 -0
- package/chunks/chunk-5HE6JLK7.js +42 -0
- package/chunks/chunk-5HW7QLTB.js +35 -0
- package/chunks/chunk-5IR2PWO6.js +211 -0
- package/chunks/chunk-5RA25FYM.js +32 -0
- package/chunks/chunk-5WARYKLO.js +71 -0
- package/chunks/chunk-6LY5FJXY.js +2456 -0
- package/chunks/chunk-6NZOSESD.js +35 -0
- package/chunks/chunk-6RJY3F7A.js +28 -0
- package/chunks/chunk-6SSGHEQX.js +39 -0
- package/chunks/chunk-6STIUASQ.js +31 -0
- package/chunks/chunk-73FTH5T3.js +211 -0
- package/chunks/chunk-73V5RDSG.js +13 -0
- package/chunks/chunk-7647NLB2.js +16 -0
- package/chunks/chunk-7WUVBSIC.js +29 -0
- package/chunks/chunk-A3VTK5UF.js +62 -0
- package/chunks/chunk-AOWLA5T2.js +60 -0
- package/chunks/chunk-AVVDAISH.js +28 -0
- package/chunks/chunk-AXTDGCSY.js +56 -0
- package/chunks/chunk-B446JIN3.js +29 -0
- package/chunks/chunk-B5OUYMUU.js +37 -0
- package/chunks/chunk-B7E3DQ4Z.js +34 -0
- package/chunks/chunk-BEZTX3QU.js +1 -0
- package/chunks/chunk-BOJEVEPB.js +54 -0
- package/chunks/chunk-BTJ2JXDV.js +31 -0
- package/chunks/chunk-BVCNQIKY.js +18 -0
- package/chunks/chunk-BW5CY5YB.js +1 -0
- package/chunks/chunk-CEY7OIFX.js +35 -0
- package/chunks/chunk-CHUOCTRP.js +26 -0
- package/chunks/chunk-CXU3QPN2.js +55 -0
- package/chunks/chunk-DCKTGQOX.js +29 -0
- package/chunks/chunk-DIPJ73JH.js +1 -0
- package/chunks/chunk-DJ7ABCYK.js +42 -0
- package/chunks/chunk-DRH7Q4FL.js +127 -0
- package/chunks/chunk-E3NHW6J4.js +211 -0
- package/chunks/chunk-EAV5YDBD.js +20 -0
- package/chunks/chunk-EAY65ZP6.js +22 -0
- package/chunks/chunk-EEZ3NV4Q.js +42 -0
- package/chunks/chunk-EFFU6KXJ.js +1 -0
- package/chunks/chunk-EHLTUOGZ.js +44 -0
- package/chunks/chunk-ESUBE7BB.js +24 -0
- package/chunks/chunk-EW46EXFB.js +8 -0
- package/chunks/chunk-EWQZUF22.js +211 -0
- package/chunks/chunk-EZW6DNPL.js +23 -0
- package/chunks/chunk-FCU6IHKD.js +15 -0
- package/chunks/chunk-FNIJLHH2.js +191 -0
- package/chunks/chunk-FR3BXMR5.js +38 -0
- package/chunks/chunk-FTDA7PRI.js +2405 -0
- package/chunks/chunk-FTGHUU73.js +65 -0
- package/chunks/chunk-FTOEQNF6.js +47 -0
- package/chunks/chunk-FVPFKY5G.js +2391 -0
- package/chunks/chunk-FWR7ZA4M.js +44 -0
- package/chunks/chunk-G2XDDBWE.js +31 -0
- package/chunks/chunk-GDYVCEWA.js +38 -0
- package/chunks/chunk-GKTDEHC6.js +39 -0
- package/chunks/chunk-GZWZ5SSG.js +60 -0
- package/chunks/chunk-H4NHF72W.js +40 -0
- package/chunks/chunk-H5HM5EBO.js +31 -0
- package/chunks/chunk-HCNRPWKW.js +63 -0
- package/chunks/chunk-HDGHODNO.js +28 -0
- package/chunks/chunk-HEJV6JIO.js +133 -0
- package/chunks/chunk-HGDSHJEX.js +60 -0
- package/chunks/chunk-HL6LO6QF.js +28 -0
- package/chunks/chunk-HLUWFMD7.js +67 -0
- package/chunks/chunk-HNFSETMT.js +22 -0
- package/chunks/chunk-HP722G2E.js +211 -0
- package/chunks/chunk-HRWQ4TUA.js +2405 -0
- package/chunks/chunk-HY7RNBYE.js +28 -0
- package/chunks/chunk-HZJY7N36.js +2405 -0
- package/chunks/chunk-IIXTJZ6G.js +47 -0
- package/chunks/chunk-IJIE2SLT.js +211 -0
- package/chunks/chunk-IOZR2LGL.js +39 -0
- package/chunks/chunk-IPB3U2PD.js +278 -0
- package/chunks/chunk-IQUEVQBN.js +28 -0
- package/chunks/chunk-IY44AG73.js +69 -0
- package/chunks/chunk-IZP4VIFZ.js +35933 -0
- package/chunks/chunk-J467ZNXE.js +35 -0
- package/chunks/chunk-J5TWVAJJ.js +28 -0
- package/chunks/chunk-JEYO7UP7.js +44 -0
- package/chunks/chunk-JFWEEBSR.js +18 -0
- package/chunks/chunk-JJA4KGAD.js +42 -0
- package/chunks/chunk-JKAHSFJD.js +38 -0
- package/chunks/chunk-JKISSFTR.js +211 -0
- package/chunks/chunk-JWF5EKM2.js +127 -0
- package/chunks/chunk-JZ6Z7V7F.js +37 -0
- package/chunks/chunk-KBOL3LMK.js +177 -0
- package/chunks/chunk-KH45J4DC.js +48 -0
- package/chunks/chunk-KNE7WIIW.js +1 -0
- package/chunks/chunk-KOBZRZBX.js +27 -0
- package/chunks/chunk-KPYPESIY.js +40 -0
- package/chunks/chunk-LBDZQNBM.js +44 -0
- package/chunks/chunk-LCFDDWJR.js +278 -0
- package/chunks/chunk-LCLAV6Q2.js +1 -0
- package/chunks/chunk-LF4VYSOT.js +68 -0
- package/chunks/chunk-LMF52IW7.js +98 -0
- package/chunks/chunk-LUETT72P.js +191 -0
- package/chunks/chunk-LUZ7ZWWJ.js +40 -0
- package/chunks/chunk-LVPFSXKA.js +37 -0
- package/chunks/chunk-LYMZZ4BB.js +22 -0
- package/chunks/chunk-M6B5J46K.js +151 -0
- package/chunks/chunk-ME7RF24X.js +141 -0
- package/chunks/chunk-MF56TTC5.js +15 -0
- package/chunks/chunk-MP6CL7F7.js +48 -0
- package/chunks/chunk-MPYCQ5IF.js +34 -0
- package/chunks/chunk-MQ4Y3GBI.js +19 -0
- package/chunks/chunk-MYCT3HYF.js +20 -0
- package/chunks/chunk-N4EJZLME.js +21 -0
- package/chunks/chunk-N7FA7QJK.js +30 -0
- package/chunks/chunk-NCLB3UH3.js +23 -0
- package/chunks/chunk-NHMEZ6ZP.js +45 -0
- package/chunks/chunk-NP5UEOSJ.js +36 -0
- package/chunks/chunk-NQNEYA4Z.js +32 -0
- package/chunks/chunk-NX2FQWHA.js +42 -0
- package/chunks/chunk-NXV33ZSC.js +31 -0
- package/chunks/chunk-O4AEYNFT.js +16 -0
- package/chunks/chunk-OO5SJJDW.js +35 -0
- package/chunks/chunk-OSZCNQBA.js +40 -0
- package/chunks/chunk-OYUM24PM.js +42 -0
- package/chunks/chunk-P5CBBXGK.js +191 -0
- package/chunks/chunk-P5TKDJ4T.js +37 -0
- package/chunks/chunk-PCAKH6ZJ.js +1 -0
- package/chunks/chunk-PO3V3I57.js +23 -0
- package/chunks/chunk-PPJYUWHH.js +38 -0
- package/chunks/chunk-PUPASUMS.js +164 -0
- package/chunks/chunk-Q7XL3D4H.js +37 -0
- package/chunks/chunk-QKK6WQDI.js +32 -0
- package/chunks/chunk-QP5GNEJY.js +42 -0
- package/chunks/chunk-QQAPFSMW.js +63 -0
- package/chunks/chunk-QQRJPDR7.js +1 -0
- package/chunks/chunk-R2H52CYP.js +44 -0
- package/chunks/chunk-R6KCN6CK.js +40 -0
- package/chunks/chunk-RUCTSKYQ.js +2391 -0
- package/chunks/chunk-S23WCXQK.js +211 -0
- package/chunks/chunk-S3GEV44K.js +2369 -0
- package/chunks/chunk-S4FNXSMM.js +18 -0
- package/chunks/chunk-SA2IY5LN.js +35 -0
- package/chunks/chunk-SCOY7PVB.js +24 -0
- package/chunks/chunk-SQZGZ3VT.js +15 -0
- package/chunks/chunk-SSJ5YQMJ.js +45 -0
- package/chunks/chunk-T4KFB6QN.js +4072 -0
- package/chunks/chunk-TEQE3HY3.js +40 -0
- package/chunks/chunk-TLYXVMR5.js +21 -0
- package/chunks/chunk-TOGOF74B.js +42 -0
- package/chunks/chunk-TQZ46CBX.js +43 -0
- package/chunks/chunk-UBJACMOZ.js +37 -0
- package/chunks/chunk-UOWPJDWO.js +37 -0
- package/chunks/chunk-UQVDRQ77.js +2391 -0
- package/chunks/chunk-UU35YSBK.js +40 -0
- package/chunks/chunk-UWAMSJ2X.js +28 -0
- package/chunks/chunk-V4YB22WN.js +28 -0
- package/chunks/chunk-V7FJOKAC.js +40 -0
- package/chunks/chunk-V7JZNA6N.js +20 -0
- package/chunks/chunk-VA6HXRX4.js +211 -0
- package/chunks/chunk-VDNIN3V5.js +23 -0
- package/chunks/chunk-VSYAOEKE.js +205 -0
- package/chunks/chunk-W3MRYBZJ.js +37 -0
- package/chunks/chunk-W7YBGJ4H.js +28 -0
- package/chunks/chunk-WECTUHS5.js +127 -0
- package/chunks/chunk-WHGU2Q46.js +31 -0
- package/chunks/chunk-WQD2VKTO.js +42 -0
- package/chunks/chunk-WTAMA5WX.js +37 -0
- package/chunks/chunk-WZ2EV5JB.js +211 -0
- package/chunks/chunk-WZBNXYN3.js +1 -0
- package/chunks/chunk-X2DODW4G.js +211 -0
- package/chunks/chunk-XCKXCF4A.js +1 -0
- package/chunks/chunk-XDTFPTMG.js +177 -0
- package/chunks/chunk-XFMKYZKH.js +164 -0
- package/chunks/chunk-XI2XIH6L.js +2391 -0
- package/chunks/chunk-XIMUZN5X.js +43 -0
- package/chunks/chunk-XKMSDS3Z.js +18 -0
- package/chunks/chunk-XYNIGHGL.js +654 -0
- package/chunks/chunk-YCNUTWOG.js +43 -0
- package/chunks/chunk-YCX3R64F.js +211 -0
- package/chunks/chunk-YMPNQJ4Z.js +21 -0
- package/chunks/chunk-YQ7FI6RT.js +28 -0
- package/chunks/chunk-YU5NILJC.js +151 -0
- package/chunks/chunk-YVUJ4WBL.js +16 -0
- package/chunks/chunk-YXIFWOKO.js +42 -0
- package/chunks/chunk-YYE2MVZO.js +211 -0
- package/chunks/chunk-Z2VDSEND.js +47 -0
- package/chunks/chunk-Z566RJUU.js +29 -0
- package/chunks/chunk-ZAIWJI6A.js +42 -0
- package/chunks/chunk-ZB73RE7P.js +35 -0
- package/chunks/chunk-ZO5FRL3M.js +29 -0
- package/chunks/chunk-ZONKYNKA.js +28 -0
- package/chunks/chunk-ZUWQPR2N.js +37 -0
- package/chunks/chunk-ZVJO36JU.js +1 -0
- package/chunks/chunk-ZWWJ52EY.js +42 -0
- package/components/Comp/index.js +1 -1
- package/index.d.ts +3 -0
- package/index.js +96 -0
- package/node/@aws-s3/index.js +16 -5
- package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +35 -0
- package/node/@aws-s3/storage/directory/copy-dir/index.js +10 -0
- package/node/@aws-s3/storage/directory/index.d.ts +5 -0
- package/node/@aws-s3/storage/directory/index.js +23 -0
- package/node/@aws-s3/storage/directory/list/index.d.ts +17 -0
- package/node/@aws-s3/storage/directory/list/index.js +10 -0
- package/node/@aws-s3/storage/directory/move-dir/index.d.ts +33 -0
- package/node/@aws-s3/storage/directory/move-dir/index.js +10 -0
- package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +31 -0
- package/node/@aws-s3/storage/directory/remove-dir/index.js +10 -0
- package/node/@aws-s3/storage/file/copy/index.d.ts +30 -0
- package/node/@aws-s3/storage/file/copy/index.js +10 -0
- package/node/@aws-s3/storage/file/download/index.d.ts +15 -15
- package/node/@aws-s3/storage/file/download/index.js +3 -2
- package/node/@aws-s3/storage/file/exists/index.d.ts +23 -0
- package/node/@aws-s3/storage/file/exists/index.js +10 -0
- package/node/@aws-s3/storage/file/index.d.ts +6 -1
- package/node/@aws-s3/storage/file/index.js +26 -5
- package/node/@aws-s3/storage/file/move/index.d.ts +33 -0
- package/node/@aws-s3/storage/file/move/index.js +10 -0
- package/node/@aws-s3/storage/file/remove/index.d.ts +17 -0
- package/node/@aws-s3/storage/file/remove/index.js +10 -0
- package/node/@aws-s3/storage/file/stat/index.d.ts +24 -0
- package/node/@aws-s3/storage/file/stat/index.js +10 -0
- package/node/@aws-s3/storage/file/upload/index.d.ts +13 -19
- package/node/@aws-s3/storage/file/upload/index.js +3 -2
- package/node/@aws-s3/storage/index.d.ts +2 -1
- package/node/@aws-s3/storage/index.js +19 -5
- package/node/@design-edito/index.js +1 -1
- package/node/@express/@multer/index.js +2 -2
- package/node/@express/index.js +2 -2
- package/node/@google-cloud/index.js +22 -17
- package/node/@google-cloud/storage/bucket/get-metadata/index.js +2 -2
- package/node/@google-cloud/storage/bucket/index.d.ts +4 -2
- package/node/@google-cloud/storage/bucket/index.js +14 -6
- package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +22 -0
- package/node/@google-cloud/storage/directory/copy-dir/index.js +9 -0
- package/node/@google-cloud/storage/directory/index.d.ts +5 -0
- package/node/@google-cloud/storage/directory/index.js +22 -0
- package/node/@google-cloud/storage/directory/list/index.d.ts +17 -0
- package/node/@google-cloud/storage/directory/list/index.js +9 -0
- package/node/@google-cloud/storage/directory/move-dir/index.d.ts +31 -0
- package/node/@google-cloud/storage/directory/move-dir/index.js +9 -0
- package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +31 -0
- package/node/@google-cloud/storage/directory/remove-dir/index.js +9 -0
- package/node/@google-cloud/storage/file/copy/index.d.ts +21 -10
- package/node/@google-cloud/storage/file/copy/index.js +2 -2
- package/node/@google-cloud/storage/file/download/index.d.ts +2 -2
- package/node/@google-cloud/storage/file/download/index.js +2 -2
- package/node/@google-cloud/storage/file/exists/index.js +2 -2
- package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +2 -2
- package/node/@google-cloud/storage/file/generate-signed-url/index.js +2 -2
- package/node/@google-cloud/storage/file/get-metadata/index.d.ts +2 -2
- package/node/@google-cloud/storage/file/get-metadata/index.js +2 -2
- package/node/@google-cloud/storage/file/get-permissions/index.d.ts +2 -2
- package/node/@google-cloud/storage/file/get-permissions/index.js +2 -2
- package/node/@google-cloud/storage/file/index.d.ts +3 -2
- package/node/@google-cloud/storage/file/index.js +25 -21
- package/node/@google-cloud/storage/file/move/index.d.ts +24 -12
- package/node/@google-cloud/storage/file/move/index.js +2 -2
- package/node/@google-cloud/storage/file/remove/index.d.ts +24 -0
- package/node/@google-cloud/storage/file/remove/index.js +9 -0
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +6 -6
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +5 -5
- package/node/@google-cloud/storage/file/stat/index.d.ts +25 -0
- package/node/@google-cloud/storage/file/stat/index.js +9 -0
- package/node/@google-cloud/storage/file/update-metadata/index.d.ts +3 -3
- package/node/@google-cloud/storage/file/update-metadata/index.js +2 -2
- package/node/@google-cloud/storage/file/upload/index.d.ts +5 -6
- package/node/@google-cloud/storage/file/upload/index.js +2 -2
- package/node/@google-cloud/storage/index.d.ts +2 -1
- package/node/@google-cloud/storage/index.js +25 -17
- package/node/cloud-storage/clients/index.d.ts +13 -0
- package/node/cloud-storage/clients/index.js +14 -0
- package/node/cloud-storage/index.d.ts +2 -4
- package/node/cloud-storage/index.js +61 -24
- package/node/cloud-storage/operations/copy-dir/index.d.ts +15 -0
- package/node/cloud-storage/operations/copy-dir/index.js +15 -0
- package/node/cloud-storage/operations/copy-file/index.d.ts +15 -0
- package/node/cloud-storage/operations/copy-file/index.js +15 -0
- package/node/cloud-storage/operations/download-file/index.d.ts +16 -0
- package/node/cloud-storage/operations/download-file/index.js +15 -0
- package/node/cloud-storage/operations/exists-file/index.d.ts +13 -0
- package/node/cloud-storage/operations/exists-file/index.js +15 -0
- package/node/cloud-storage/operations/index.d.ts +12 -3
- package/node/cloud-storage/operations/index.js +92 -19
- package/node/cloud-storage/operations/list-dir/index.d.ts +13 -0
- package/node/cloud-storage/operations/list-dir/index.js +15 -0
- package/node/cloud-storage/operations/move-dir/index.d.ts +15 -0
- package/node/cloud-storage/operations/move-dir/index.js +15 -0
- package/node/cloud-storage/operations/move-file/index.d.ts +15 -0
- package/node/cloud-storage/operations/move-file/index.js +15 -0
- package/node/cloud-storage/operations/remove-dir/index.d.ts +15 -0
- package/node/cloud-storage/operations/remove-dir/index.js +15 -0
- package/node/cloud-storage/operations/remove-file/index.d.ts +15 -0
- package/node/cloud-storage/operations/remove-file/index.js +15 -0
- package/node/cloud-storage/operations/stat-file/index.d.ts +15 -0
- package/node/cloud-storage/operations/stat-file/index.js +15 -0
- package/node/cloud-storage/operations/upload-file/index.d.ts +16 -0
- package/node/cloud-storage/operations/upload-file/index.js +15 -0
- package/node/encryption/@aes-256-gcm/buffer/index.js +3 -3
- package/node/encryption/@aes-256-gcm/index.js +4 -4
- package/node/encryption/@aes-256-gcm/uint8-array/index.js +2 -2
- package/node/encryption/index.js +7 -7
- package/node/encryption/key/index.js +2 -2
- package/node/files/index.js +5 -5
- package/node/files/is-in-directory/index.js +1 -1
- package/node/files/read-write/index.js +1 -1
- package/node/files/subpaths/index.js +1 -1
- package/node/ftps/directory/copy-dir/index.d.ts +28 -0
- package/node/ftps/directory/copy-dir/index.js +9 -0
- package/node/ftps/directory/index.d.ts +5 -0
- package/node/ftps/directory/index.js +22 -0
- package/node/ftps/directory/list/index.d.ts +12 -0
- package/node/ftps/directory/list/index.js +9 -0
- package/node/ftps/directory/move-dir/index.d.ts +26 -0
- package/node/ftps/directory/move-dir/index.js +9 -0
- package/node/ftps/directory/remove-dir/index.d.ts +25 -0
- package/node/ftps/directory/remove-dir/index.js +9 -0
- package/node/ftps/file/copy/index.d.ts +28 -0
- package/node/ftps/file/copy/index.js +9 -0
- package/node/ftps/file/download/index.d.ts +2 -2
- package/node/ftps/file/download/index.js +2 -2
- package/node/ftps/file/exists/index.d.ts +21 -0
- package/node/ftps/file/exists/index.js +9 -0
- package/node/ftps/file/index.d.ts +6 -1
- package/node/ftps/file/index.js +25 -5
- package/node/ftps/file/move/index.d.ts +38 -0
- package/node/ftps/file/move/index.js +9 -0
- package/node/ftps/file/remove/index.d.ts +20 -0
- package/node/ftps/file/remove/index.js +9 -0
- package/node/ftps/file/stat/index.d.ts +17 -0
- package/node/ftps/file/stat/index.js +9 -0
- package/node/ftps/file/upload/index.d.ts +3 -3
- package/node/ftps/file/upload/index.js +2 -2
- package/node/ftps/index.d.ts +2 -1
- package/node/ftps/index.js +17 -4
- package/node/images/format/index.js +3 -3
- package/node/images/index.js +37 -37
- package/node/images/prepare/index.js +37 -37
- package/node/images/transform/_utils/color-schema/index.js +3 -3
- package/node/images/transform/_utils/operation-names/index.js +1 -1
- package/node/images/transform/_utils/positions/index.js +3 -3
- package/node/images/transform/blur/index.js +3 -3
- package/node/images/transform/brighten/index.js +3 -3
- package/node/images/transform/compose/index.js +5 -5
- package/node/images/transform/extend/index.js +4 -4
- package/node/images/transform/extract/index.js +3 -3
- package/node/images/transform/flatten/index.js +4 -4
- package/node/images/transform/flip/index.js +3 -3
- package/node/images/transform/flop/index.js +3 -3
- package/node/images/transform/frame/backgrounds/create-line-background/index.d.ts +2 -2
- package/node/images/transform/frame/backgrounds/create-line-background/index.js +3 -3
- package/node/images/transform/frame/backgrounds/create-tile-background/index.d.ts +2 -2
- package/node/images/transform/frame/backgrounds/create-tile-background/index.js +3 -3
- package/node/images/transform/frame/index.js +7 -7
- package/node/images/transform/hue-rotate/index.js +3 -3
- package/node/images/transform/index.js +35 -35
- package/node/images/transform/lighten/index.js +3 -3
- package/node/images/transform/lineate-levels/index.js +3 -3
- package/node/images/transform/modulate/index.js +3 -3
- package/node/images/transform/normalize/index.js +3 -3
- package/node/images/transform/operations/_utils/compose/index.js +1 -1
- package/node/images/transform/operations/_utils/frame/backgrounds/create-line-background/index.js +5 -5
- package/node/images/transform/operations/_utils/frame/backgrounds/create-tile-background/index.js +1 -1
- package/node/images/transform/operations/_utils/frame/create-color-palette/index.js +5 -5
- package/node/images/transform/operations/_utils/frame/extract-colors-from-image/index.js +1 -1
- package/node/images/transform/operations/_utils/frame/index.js +9 -9
- package/node/images/transform/operations/_utils/positions/index.js +1 -1
- package/node/images/transform/operations/_utils/scale/index.js +1 -1
- package/node/images/transform/resize/index.js +4 -4
- package/node/images/transform/rotate/index.js +3 -3
- package/node/images/transform/saturate/index.js +3 -3
- package/node/images/transform/scale/index.js +4 -4
- package/node/process/index.js +1 -1
- package/node/process/on-exit/index.js +1 -1
- package/node/sftp/directory/copy-dir/index.d.ts +28 -0
- package/node/sftp/directory/copy-dir/index.js +9 -0
- package/node/sftp/directory/index.d.ts +5 -0
- package/node/sftp/directory/index.js +22 -0
- package/node/sftp/directory/list/index.d.ts +12 -0
- package/node/sftp/directory/list/index.js +9 -0
- package/node/sftp/directory/move-dir/index.d.ts +26 -0
- package/node/sftp/directory/move-dir/index.js +9 -0
- package/node/sftp/directory/remove-dir/index.d.ts +25 -0
- package/node/sftp/directory/remove-dir/index.js +9 -0
- package/node/sftp/file/copy/index.d.ts +28 -0
- package/node/sftp/file/copy/index.js +9 -0
- package/node/sftp/file/download/index.d.ts +2 -2
- package/node/sftp/file/download/index.js +2 -2
- package/node/sftp/file/exists/index.d.ts +21 -0
- package/node/sftp/file/exists/index.js +9 -0
- package/node/sftp/file/index.d.ts +6 -1
- package/node/sftp/file/index.js +25 -5
- package/node/sftp/file/move/index.d.ts +38 -0
- package/node/sftp/file/move/index.js +9 -0
- package/node/sftp/file/remove/index.d.ts +20 -0
- package/node/sftp/file/remove/index.js +9 -0
- package/node/sftp/file/stat/index.d.ts +18 -0
- package/node/sftp/file/stat/index.js +9 -0
- package/node/sftp/file/upload/index.d.ts +3 -3
- package/node/sftp/file/upload/index.js +2 -2
- package/node/sftp/index.d.ts +2 -1
- package/node/sftp/index.js +17 -4
- package/package.json +3 -2
- package/utils/agnostic/absolute-modulo/index.d.ts +1 -0
- package/utils/agnostic/absolute-modulo/index.js +1 -0
- package/utils/agnostic/array/index.d.ts +7 -0
- package/utils/agnostic/array/index.js +1 -0
- package/utils/agnostic/assert/index.d.ts +3 -0
- package/utils/agnostic/assert/index.js +1 -0
- package/utils/agnostic/await-timeout/index.d.ts +2 -0
- package/utils/agnostic/await-timeout/index.js +1 -0
- package/utils/agnostic/bem/BEM.d.ts +29 -0
- package/utils/agnostic/bem/getNamesArr.d.ts +2 -0
- package/utils/agnostic/bem/index.d.ts +5 -0
- package/utils/agnostic/bem/index.js +1 -0
- package/utils/agnostic/cast/index.d.ts +7 -0
- package/utils/agnostic/cast/index.js +1 -0
- package/utils/agnostic/charcode-string/index.d.ts +2 -0
- package/utils/agnostic/charcode-string/index.js +1 -0
- package/utils/agnostic/clamp/index.d.ts +1 -0
- package/utils/agnostic/clamp/index.js +1 -0
- package/utils/agnostic/clientside-html-sanitizer/index.d.ts +22 -0
- package/utils/agnostic/clientside-html-sanitizer/index.js +1 -0
- package/utils/agnostic/crossenv/index.d.ts +11 -0
- package/utils/agnostic/crossenv/index.js +1 -0
- package/utils/agnostic/flatten-getters/index.d.ts +1 -0
- package/utils/agnostic/flatten-getters/index.js +1 -0
- package/utils/agnostic/generate-html-placeholders/index.d.ts +7 -0
- package/utils/agnostic/generate-html-placeholders/index.js +5 -0
- package/utils/agnostic/generate-nice-color/index.d.ts +3 -0
- package/utils/agnostic/generate-nice-color/index.js +1 -0
- package/utils/agnostic/insert-node/index.d.ts +2 -0
- package/utils/agnostic/insert-node/index.js +1 -0
- package/utils/agnostic/interpolate/index.d.ts +3 -0
- package/utils/agnostic/interpolate/index.js +1 -0
- package/utils/agnostic/is-array-of/index.d.ts +5 -0
- package/utils/agnostic/is-array-of/index.js +1 -0
- package/utils/agnostic/is-constructor-function/index.d.ts +2 -0
- package/utils/agnostic/is-constructor-function/index.js +1 -0
- package/utils/agnostic/is-falsy/index.d.ts +8 -0
- package/utils/agnostic/is-falsy/index.js +1 -0
- package/utils/agnostic/is-in-enum/index.d.ts +1 -0
- package/utils/agnostic/is-in-enum/index.js +1 -0
- package/utils/agnostic/is-nullish/index.d.ts +5 -0
- package/utils/agnostic/is-nullish/index.js +1 -0
- package/utils/agnostic/is-object/index.d.ts +1 -0
- package/utils/agnostic/is-object/index.js +1 -0
- package/utils/agnostic/is-record/index.d.ts +1 -0
- package/utils/agnostic/is-record/index.js +1 -0
- package/utils/agnostic/is-valid-css-class-name/index.d.ts +2 -0
- package/utils/agnostic/is-valid-css-class-name/index.js +1 -0
- package/utils/agnostic/memoize/index.d.ts +3 -0
- package/utils/agnostic/memoize/index.js +1 -0
- package/utils/agnostic/object-validate-from-partial/index.d.ts +1 -0
- package/utils/agnostic/object-validate-from-partial/index.js +1 -0
- package/utils/agnostic/random/index.d.ts +9 -0
- package/utils/agnostic/random/index.js +1 -0
- package/utils/agnostic/record-format/index.d.ts +11 -0
- package/utils/agnostic/record-format/index.js +1 -0
- package/utils/agnostic/regexp/index.d.ts +21 -0
- package/utils/agnostic/regexp/index.js +1 -0
- package/utils/agnostic/replace-all/index.d.ts +1 -0
- package/utils/agnostic/replace-all/index.js +1 -0
- package/utils/agnostic/responsive-harmonics/index.d.ts +10 -0
- package/utils/agnostic/responsive-harmonics/index.js +1 -0
- package/utils/agnostic/round-numbers/index.d.ts +1 -0
- package/utils/agnostic/round-numbers/index.js +1 -0
- package/utils/agnostic/selector-to-element/index.d.ts +1 -0
- package/utils/agnostic/selector-to-element/index.js +1 -0
- package/utils/agnostic/silent-log/index.d.ts +53 -0
- package/utils/agnostic/silent-log/index.js +9 -0
- package/utils/agnostic/str-to-nodes/index.d.ts +7 -0
- package/utils/agnostic/str-to-nodes/index.js +1 -0
- package/utils/agnostic/string-matches/index.d.ts +4 -0
- package/utils/agnostic/string-matches/index.js +1 -0
- package/utils/agnostic/string-normalize-indent/index.d.ts +1 -0
- package/utils/agnostic/string-normalize-indent/index.js +3 -0
- package/utils/agnostic/throttle-debounce/index.d.ts +30 -0
- package/utils/agnostic/throttle-debounce/index.js +1 -0
- package/utils/agnostic/throttle-debounce/types.d.ts +3 -0
- package/utils/agnostic/to-alphanum/index.d.ts +1 -0
- package/utils/agnostic/to-alphanum/index.js +1 -0
- package/utils/agnostic/transition/index.d.ts +39 -0
- package/utils/agnostic/transition/index.js +1 -0
- package/utils/agnostic/wait/index.d.ts +1 -0
- package/utils/agnostic/wait/index.js +1 -0
- package/utils/browser/dynamic-css/index.d.ts +4 -0
- package/utils/browser/dynamic-css/index.js +2 -0
- package/utils/browser/get-current-downlink/index.d.ts +1 -0
- package/utils/browser/get-current-downlink/index.js +1 -0
- package/utils/browser/get-node-ancestors/index.d.ts +1 -0
- package/utils/browser/get-node-ancestors/index.js +1 -0
- package/utils/node/is-in-directory/index.d.ts +1 -0
- package/utils/node/is-in-directory/index.js +1 -0
- package/utils/node/list-subpaths/index.d.ts +33 -0
- package/utils/node/list-subpaths/index.js +1 -0
- package/utils/node/process-exit/index.d.ts +5 -0
- package/utils/node/process-exit/index.js +1 -0
- package/utils/node/read-write-file/index.d.ts +12 -0
- package/utils/node/read-write-file/index.js +1 -0
- package/chunks/chunk-236C4IHT.js +0 -98
- package/chunks/chunk-26QQ56SS.js +0 -36
- package/chunks/chunk-2EEVPIJE.js +0 -177
- package/chunks/chunk-2H5RIOJO.js +0 -16
- package/chunks/chunk-2HU2AWWJ.js +0 -35
- package/chunks/chunk-2JKV6KXE.js +0 -191
- package/chunks/chunk-2M5P5V6U.js +0 -56
- package/chunks/chunk-2PNFMIXN.js +0 -20
- package/chunks/chunk-334MFRHI.js +0 -56
- package/chunks/chunk-336RBB5E.js +0 -151
- package/chunks/chunk-33YK4WOA.js +0 -18
- package/chunks/chunk-3CQON3DO.js +0 -56
- package/chunks/chunk-3CZNTEF7.js +0 -151
- package/chunks/chunk-3KN4IIQU.js +0 -23
- package/chunks/chunk-3LPD7IXF.js +0 -56
- package/chunks/chunk-3UM5CZA5.js +0 -18
- package/chunks/chunk-3XNFVOJF.js +0 -20
- package/chunks/chunk-422KBDRV.js +0 -203
- package/chunks/chunk-454MZ5UE.js +0 -239
- package/chunks/chunk-45LGGA3Z.js +0 -31
- package/chunks/chunk-45WKBXSF.js +0 -39
- package/chunks/chunk-46HTGOCE.js +0 -56
- package/chunks/chunk-476BHNJO.js +0 -37
- package/chunks/chunk-4ARTWFW5.js +0 -164
- package/chunks/chunk-4CAHGPFA.js +0 -32
- package/chunks/chunk-4DNPGCIM.js +0 -191
- package/chunks/chunk-4HLAM4RP.js +0 -191
- package/chunks/chunk-4OCP2WZM.js +0 -100
- package/chunks/chunk-4PJWXOLA.js +0 -16
- package/chunks/chunk-4QHGUANF.js +0 -19
- package/chunks/chunk-4TGRV2AB.js +0 -18
- package/chunks/chunk-4WZEYD3R.js +0 -56
- package/chunks/chunk-4Y5XR6WC.js +0 -2456
- package/chunks/chunk-55MT7BMY.js +0 -16
- package/chunks/chunk-5B7VSD44.js +0 -37
- package/chunks/chunk-5GBYBDYQ.js +0 -36
- package/chunks/chunk-5IPSIDXB.js +0 -31
- package/chunks/chunk-5J7H5WYC.js +0 -82
- package/chunks/chunk-5JAITHS2.js +0 -48
- package/chunks/chunk-5JNJVGDX.js +0 -20
- package/chunks/chunk-5M7ZTA56.js +0 -43
- package/chunks/chunk-5OBHNGEH.js +0 -20
- package/chunks/chunk-5RGHYFQH.js +0 -70
- package/chunks/chunk-5SWBMXLR.js +0 -98
- package/chunks/chunk-5TRAENM3.js +0 -31
- package/chunks/chunk-5VHFXWFM.js +0 -31
- package/chunks/chunk-662SOZWA.js +0 -19
- package/chunks/chunk-6EIF24H5.js +0 -35
- package/chunks/chunk-6HPXM6ED.js +0 -20
- package/chunks/chunk-6IZ5HUJJ.js +0 -21
- package/chunks/chunk-6V7VQ32U.js +0 -56
- package/chunks/chunk-6WVNJVBE.js +0 -34
- package/chunks/chunk-6Y7RZ5WD.js +0 -48
- package/chunks/chunk-6Z6GDMOR.js +0 -28
- package/chunks/chunk-6ZBDBWLW.js +0 -164
- package/chunks/chunk-76QORXDC.js +0 -19
- package/chunks/chunk-7BCQCDGQ.js +0 -31
- package/chunks/chunk-7DDXALPH.js +0 -49
- package/chunks/chunk-7DV4CM2Z.js +0 -205
- package/chunks/chunk-7FJKDVBE.js +0 -49
- package/chunks/chunk-7JUKBN7P.js +0 -54
- package/chunks/chunk-7KCMLH6B.js +0 -22
- package/chunks/chunk-7N7BJA6C.js +0 -36
- package/chunks/chunk-7OK5NZTY.js +0 -18
- package/chunks/chunk-7SS2R4B6.js +0 -82
- package/chunks/chunk-7SZ3QPTM.js +0 -191
- package/chunks/chunk-7U5NS3AR.js +0 -151
- package/chunks/chunk-7UDN6KBA.js +0 -151
- package/chunks/chunk-7YSTZ7GY.js +0 -31
- package/chunks/chunk-7Z7CKAOH.js +0 -98
- package/chunks/chunk-A6OSVHIK.js +0 -20
- package/chunks/chunk-ADTQQNIQ.js +0 -47
- package/chunks/chunk-AIESW26U.js +0 -47
- package/chunks/chunk-AMXIZUFB.js +0 -16
- package/chunks/chunk-AQTNG5G4.js +0 -2456
- package/chunks/chunk-AUJB3IJD.js +0 -20
- package/chunks/chunk-AZLVQV5A.js +0 -39
- package/chunks/chunk-AZOSX3LU.js +0 -191
- package/chunks/chunk-B4XUXE7E.js +0 -18
- package/chunks/chunk-B5XLWFTJ.js +0 -20
- package/chunks/chunk-BANYGSW4.js +0 -20
- package/chunks/chunk-BGSJ5XCH.js +0 -20
- package/chunks/chunk-BGZ5OVVN.js +0 -20
- package/chunks/chunk-BONBND7I.js +0 -239
- package/chunks/chunk-BPBWY4OT.js +0 -191
- package/chunks/chunk-BWKM2VQJ.js +0 -191
- package/chunks/chunk-BWXVJB4I.js +0 -20
- package/chunks/chunk-BZHH4R64.js +0 -20
- package/chunks/chunk-C3ZKLONL.js +0 -21
- package/chunks/chunk-CHA42BGS.js +0 -48
- package/chunks/chunk-CKCTYZF7.js +0 -48
- package/chunks/chunk-CM6AHRTS.js +0 -16
- package/chunks/chunk-CMWR77VW.js +0 -54
- package/chunks/chunk-CSZFW4R5.js +0 -69
- package/chunks/chunk-CYIUZX2T.js +0 -31
- package/chunks/chunk-D33KC6NN.js +0 -18
- package/chunks/chunk-D47ZPEUU.js +0 -22
- package/chunks/chunk-D5E2CIDK.js +0 -20
- package/chunks/chunk-DEQ5N53D.js +0 -21
- package/chunks/chunk-DPBYDWV3.js +0 -2369
- package/chunks/chunk-DW4ILX77.js +0 -28
- package/chunks/chunk-E2BDKTLL.js +0 -48
- package/chunks/chunk-E3GK7YZ7.js +0 -65
- package/chunks/chunk-E4RVKTMW.js +0 -56
- package/chunks/chunk-E6HDM2M4.js +0 -191
- package/chunks/chunk-E7J4E6OB.js +0 -65
- package/chunks/chunk-EA4L7AGZ.js +0 -48
- package/chunks/chunk-EBVYO2TY.js +0 -48
- package/chunks/chunk-ECGOI4MT.js +0 -20
- package/chunks/chunk-ECWDSMDZ.js +0 -20
- package/chunks/chunk-EM37BFXO.js +0 -35
- package/chunks/chunk-FCLAFRIW.js +0 -177
- package/chunks/chunk-FCMQVBJW.js +0 -20
- package/chunks/chunk-FFNIZRZU.js +0 -31
- package/chunks/chunk-FHHXI6WC.js +0 -31
- package/chunks/chunk-FIVB3FON.js +0 -56
- package/chunks/chunk-FMRPJBUC.js +0 -20
- package/chunks/chunk-FRP47Y6H.js +0 -2456
- package/chunks/chunk-FTT6ZCCS.js +0 -29
- package/chunks/chunk-FVFYLT5T.js +0 -31
- package/chunks/chunk-FZJUZYTP.js +0 -177
- package/chunks/chunk-G2M3VECP.js +0 -20
- package/chunks/chunk-G3HAKMUB.js +0 -79
- package/chunks/chunk-G5UR6736.js +0 -31
- package/chunks/chunk-G66DWXF3.js +0 -31
- package/chunks/chunk-GCHQD7MH.js +0 -63
- package/chunks/chunk-GD6Y5QJV.js +0 -98
- package/chunks/chunk-GE7DNPF6.js +0 -63
- package/chunks/chunk-GOTTGEXI.js +0 -23
- package/chunks/chunk-GSZSM3BU.js +0 -37
- package/chunks/chunk-GVS2ZPGJ.js +0 -2456
- package/chunks/chunk-GXICX4F6.js +0 -31
- package/chunks/chunk-H73SGDQI.js +0 -20
- package/chunks/chunk-H7LDIXVY.js +0 -48
- package/chunks/chunk-HALUZA2X.js +0 -16
- package/chunks/chunk-HBKSSDSX.js +0 -20
- package/chunks/chunk-HDK7W7GS.js +0 -20
- package/chunks/chunk-HFH6DXXC.js +0 -2456
- package/chunks/chunk-HFIE4SBE.js +0 -16
- package/chunks/chunk-HGQGQLLC.js +0 -4430
- package/chunks/chunk-HKTNK262.js +0 -23
- package/chunks/chunk-HNKD4ZRZ.js +0 -177
- package/chunks/chunk-HUC2IRGW.js +0 -205
- package/chunks/chunk-HV2AHV5R.js +0 -164
- package/chunks/chunk-HZGGYNZ5.js +0 -2369
- package/chunks/chunk-I37MGRCT.js +0 -20
- package/chunks/chunk-IARWH6LC.js +0 -34
- package/chunks/chunk-IH25CV3F.js +0 -20
- package/chunks/chunk-IJAFLBHD.js +0 -16
- package/chunks/chunk-ISFXCV7D.js +0 -20
- package/chunks/chunk-IXM6DCIE.js +0 -151
- package/chunks/chunk-IYV3EEYX.js +0 -20
- package/chunks/chunk-J35QFU6O.js +0 -21
- package/chunks/chunk-JBDWHJ4Q.js +0 -31
- package/chunks/chunk-JBUM5Q5C.js +0 -48
- package/chunks/chunk-JBZR6R5B.js +0 -15
- package/chunks/chunk-JJ7PBKSG.js +0 -37
- package/chunks/chunk-JJWKHBXD.js +0 -68
- package/chunks/chunk-JLXITDAV.js +0 -48
- package/chunks/chunk-JMA64OLZ.js +0 -191
- package/chunks/chunk-JMJZCVSA.js +0 -141
- package/chunks/chunk-JQRLQUMJ.js +0 -16
- package/chunks/chunk-JR76DLSV.js +0 -151
- package/chunks/chunk-JS3NE4VI.js +0 -2456
- package/chunks/chunk-JSKVNOTW.js +0 -56
- package/chunks/chunk-JTJA7DGW.js +0 -36
- package/chunks/chunk-JX45LILQ.js +0 -164
- package/chunks/chunk-JYYW4KOZ.js +0 -72
- package/chunks/chunk-K4Q2MG65.js +0 -56
- package/chunks/chunk-K66UXFDQ.js +0 -63
- package/chunks/chunk-KBCULP7X.js +0 -177
- package/chunks/chunk-KC76PUJY.js +0 -48
- package/chunks/chunk-KDTKA3SG.js +0 -31
- package/chunks/chunk-KFMYB672.js +0 -31
- package/chunks/chunk-KH5JTC2N.js +0 -49
- package/chunks/chunk-KL6EJPC3.js +0 -35
- package/chunks/chunk-KN23H4CI.js +0 -20
- package/chunks/chunk-KTK3BMX2.js +0 -56
- package/chunks/chunk-L7EUEQZP.js +0 -0
- package/chunks/chunk-LH6Z6NJY.js +0 -191
- package/chunks/chunk-LOAOXFA2.js +0 -2369
- package/chunks/chunk-LOY7C5BP.js +0 -151
- package/chunks/chunk-LSOHLSF5.js +0 -32
- package/chunks/chunk-LVBXPZUO.js +0 -104
- package/chunks/chunk-LXZULGNN.js +0 -37
- package/chunks/chunk-LZ4P3AYG.js +0 -2456
- package/chunks/chunk-MAE5XZGF.js +0 -37
- package/chunks/chunk-MDVYILPB.js +0 -56
- package/chunks/chunk-MFK63FMI.js +0 -31
- package/chunks/chunk-MFWKY3DT.js +0 -32
- package/chunks/chunk-MKHTR43Q.js +0 -231
- package/chunks/chunk-MOBGB2PH.js +0 -54
- package/chunks/chunk-MTGZYBK2.js +0 -129
- package/chunks/chunk-MTT7TVR3.js +0 -127
- package/chunks/chunk-MV2LDBDF.js +0 -164
- package/chunks/chunk-MVNQWIVH.js +0 -151
- package/chunks/chunk-MW3KNVTG.js +0 -29
- package/chunks/chunk-MXGGOCLX.js +0 -56
- package/chunks/chunk-MZKZI6JL.js +0 -37
- package/chunks/chunk-MZZOFFFT.js +0 -21
- package/chunks/chunk-N5QAGJXV.js +0 -49
- package/chunks/chunk-NA3M6VUU.js +0 -20
- package/chunks/chunk-NA7PT2KE.js +0 -21
- package/chunks/chunk-NAP2XNYN.js +0 -23
- package/chunks/chunk-NFIEXASV.js +0 -164
- package/chunks/chunk-NJ4ANCLV.js +0 -65
- package/chunks/chunk-NOBTN4IW.js +0 -4471
- package/chunks/chunk-NSM7QLE4.js +0 -20
- package/chunks/chunk-NZLE2WMY.js +0 -35
- package/chunks/chunk-O7UEQQ6H.js +0 -49
- package/chunks/chunk-OD33BN4K.js +0 -32
- package/chunks/chunk-OPU4CANL.js +0 -35
- package/chunks/chunk-OSCBZIZF.js +0 -28
- package/chunks/chunk-OSZ4BWDE.js +0 -32
- package/chunks/chunk-OUJTDMHK.js +0 -16
- package/chunks/chunk-OVG5RGI3.js +0 -29
- package/chunks/chunk-OWCPJD6O.js +0 -16
- package/chunks/chunk-OXV3LVNK.js +0 -191
- package/chunks/chunk-P3QFJTAE.js +0 -129
- package/chunks/chunk-P5OGBBGM.js +0 -37
- package/chunks/chunk-PCTJ7TUG.js +0 -191
- package/chunks/chunk-PDHAMES3.js +0 -20
- package/chunks/chunk-PENYZ6S7.js +0 -31
- package/chunks/chunk-PEUWFUEZ.js +0 -98
- package/chunks/chunk-PLIJVLAB.js +0 -173
- package/chunks/chunk-PSP2DKDH.js +0 -151
- package/chunks/chunk-Q2ZS3QNB.js +0 -151
- package/chunks/chunk-Q4MSGUKR.js +0 -37
- package/chunks/chunk-QAE3OWOI.js +0 -79
- package/chunks/chunk-QHQPS7EU.js +0 -31
- package/chunks/chunk-QN3UAKIU.js +0 -21
- package/chunks/chunk-QPT6R6CL.js +0 -100
- package/chunks/chunk-QSSQOTGV.js +0 -20
- package/chunks/chunk-QUDIXNB2.js +0 -18
- package/chunks/chunk-QVIRBFMQ.js +0 -31
- package/chunks/chunk-R6F2MFZZ.js +0 -173
- package/chunks/chunk-R7J7Q2UL.js +0 -20
- package/chunks/chunk-RCWLMVSZ.js +0 -164
- package/chunks/chunk-RDIF5NJQ.js +0 -151
- package/chunks/chunk-REN2I723.js +0 -98
- package/chunks/chunk-REZC75LB.js +0 -55
- package/chunks/chunk-RGGOIE34.js +0 -20
- package/chunks/chunk-RLTBF5FT.js +0 -23
- package/chunks/chunk-RPWYARS3.js +0 -18
- package/chunks/chunk-RQECU6DI.js +0 -56
- package/chunks/chunk-RVZ32GPI.js +0 -55
- package/chunks/chunk-S2PB2PLY.js +0 -191
- package/chunks/chunk-SAFV7TBT.js +0 -31
- package/chunks/chunk-SARTUWB5.js +0 -20
- package/chunks/chunk-SC54OKBX.js +0 -43
- package/chunks/chunk-SDFTYOAK.js +0 -20
- package/chunks/chunk-SJFY537W.js +0 -84
- package/chunks/chunk-SLCGLOYM.js +0 -37
- package/chunks/chunk-SNRRHDIZ.js +0 -31
- package/chunks/chunk-SUWMOLXI.js +0 -191
- package/chunks/chunk-SZQHLC4K.js +0 -31
- package/chunks/chunk-T2T5BYTW.js +0 -18
- package/chunks/chunk-T55QIYYV.js +0 -32
- package/chunks/chunk-T6IC7JVI.js +0 -37
- package/chunks/chunk-TC7A4P5S.js +0 -34
- package/chunks/chunk-TDOBYMTK.js +0 -56
- package/chunks/chunk-TEBR4NTW.js +0 -37
- package/chunks/chunk-TP6V6CBV.js +0 -177
- package/chunks/chunk-TPMYILTC.js +0 -191
- package/chunks/chunk-TU3UWOAE.js +0 -56
- package/chunks/chunk-TXGV4KJD.js +0 -31
- package/chunks/chunk-TZ7MNWDS.js +0 -20
- package/chunks/chunk-U3L3X27Q.js +0 -177
- package/chunks/chunk-U4UHXVMV.js +0 -37
- package/chunks/chunk-U5WEI3QA.js +0 -18
- package/chunks/chunk-U7CF7IDN.js +0 -35
- package/chunks/chunk-U7R6TPHR.js +0 -15
- package/chunks/chunk-UERX6XGZ.js +0 -21
- package/chunks/chunk-UJN2WZGO.js +0 -32
- package/chunks/chunk-UNHNZAVP.js +0 -18
- package/chunks/chunk-UODICVLG.js +0 -173
- package/chunks/chunk-UUSZJMJB.js +0 -37
- package/chunks/chunk-UUU6DWRQ.js +0 -79
- package/chunks/chunk-UVSTFYSD.js +0 -28
- package/chunks/chunk-UYRX3PTS.js +0 -2456
- package/chunks/chunk-UZPXYAJR.js +0 -177
- package/chunks/chunk-V4KSJHTU.js +0 -20
- package/chunks/chunk-V4S34MIM.js +0 -32
- package/chunks/chunk-VDT6ODFV.js +0 -20
- package/chunks/chunk-VHAGPTVR.js +0 -37
- package/chunks/chunk-VHPX7UA3.js +0 -177
- package/chunks/chunk-VLC7LRED.js +0 -191
- package/chunks/chunk-VLHSIIPO.js +0 -20
- package/chunks/chunk-VQUF2TSY.js +0 -191
- package/chunks/chunk-VR5JHUKK.js +0 -32
- package/chunks/chunk-VSBRIQPH.js +0 -48
- package/chunks/chunk-VWLJ5IEE.js +0 -31
- package/chunks/chunk-W5LE6YQ5.js +0 -16
- package/chunks/chunk-W6JPRXQ4.js +0 -16
- package/chunks/chunk-WC2LQPQP.js +0 -26
- package/chunks/chunk-WDXNM5YB.js +0 -20
- package/chunks/chunk-WGQHXHXS.js +0 -31
- package/chunks/chunk-WH5V6GK7.js +0 -56
- package/chunks/chunk-WIJBRYJ6.js +0 -20
- package/chunks/chunk-WLGIDY6A.js +0 -2456
- package/chunks/chunk-WMSE5GRO.js +0 -63
- package/chunks/chunk-WO2R3QFK.js +0 -20
- package/chunks/chunk-WOGRENMM.js +0 -31
- package/chunks/chunk-WQKFVIUF.js +0 -37
- package/chunks/chunk-WR64YJNW.js +0 -20
- package/chunks/chunk-WRRA3BN4.js +0 -31
- package/chunks/chunk-WSFCRVEQ.js +0 -9
- package/chunks/chunk-WTILPGGX.js +0 -69
- package/chunks/chunk-WU3JQC7W.js +0 -164
- package/chunks/chunk-WU7NORZV.js +0 -191
- package/chunks/chunk-X244JGZD.js +0 -69
- package/chunks/chunk-X24BLY5H.js +0 -31
- package/chunks/chunk-X34YXAEL.js +0 -31
- package/chunks/chunk-X4XXZ44B.js +0 -37
- package/chunks/chunk-X5FAZBWL.js +0 -130
- package/chunks/chunk-X6WCMUOP.js +0 -18
- package/chunks/chunk-XAZT2MME.js +0 -56
- package/chunks/chunk-XB3YCG6I.js +0 -48
- package/chunks/chunk-XB3ZOIHH.js +0 -2456
- package/chunks/chunk-XEAHMN2T.js +0 -4063
- package/chunks/chunk-XEMFIV2W.js +0 -177
- package/chunks/chunk-XF5QBETN.js +0 -48
- package/chunks/chunk-XJ23DJY4.js +0 -173
- package/chunks/chunk-XN44EWRS.js +0 -21
- package/chunks/chunk-XQMUFSLU.js +0 -16
- package/chunks/chunk-XSVBWVVC.js +0 -20
- package/chunks/chunk-XTOAQTLP.js +0 -98
- package/chunks/chunk-XVYKCWPR.js +0 -48
- package/chunks/chunk-XZ7II65Z.js +0 -31
- package/chunks/chunk-Y5GGIBPI.js +0 -31
- package/chunks/chunk-Y7YEYHRZ.js +0 -69
- package/chunks/chunk-YCSC7QNV.js +0 -30
- package/chunks/chunk-YE67BQQN.js +0 -4072
- package/chunks/chunk-YEYXAV23.js +0 -16
- package/chunks/chunk-YLJBKSLO.js +0 -56
- package/chunks/chunk-YLKBLE6G.js +0 -30
- package/chunks/chunk-YMF7CUJA.js +0 -20
- package/chunks/chunk-YMRAUWRW.js +0 -20
- package/chunks/chunk-YMRGCRQ4.js +0 -48
- package/chunks/chunk-YRQ7LODK.js +0 -177
- package/chunks/chunk-YSDPTGYO.js +0 -31
- package/chunks/chunk-YUJJEKYY.js +0 -144
- package/chunks/chunk-YVEMIEOT.js +0 -203
- package/chunks/chunk-YVLZX2JQ.js +0 -164
- package/chunks/chunk-YW5ASSIQ.js +0 -31
- package/chunks/chunk-YXJXNTCV.js +0 -65
- package/chunks/chunk-YYA5VRE4.js +0 -177
- package/chunks/chunk-YZYA7LFK.js +0 -20
- package/chunks/chunk-Z2CU55CF.js +0 -20
- package/chunks/chunk-Z4PVE6SR.js +0 -21
- package/chunks/chunk-Z6ZTRJ67.js +0 -177
- package/chunks/chunk-ZBQEB3X7.js +0 -4430
- package/chunks/chunk-ZLNDBNP4.js +0 -31
- package/chunks/chunk-ZMMNN3QA.js +0 -16
- package/chunks/chunk-ZNA7SWFK.js +0 -29
- package/chunks/chunk-ZQ7ZC7TZ.js +0 -56
- package/chunks/chunk-ZSPOYMNQ.js +0 -151
- package/chunks/chunk-ZVBMPJLH.js +0 -48
- package/chunks/chunk-ZVZAGTIT.js +0 -151
- package/chunks/chunk-ZZH6RUS3.js +0 -48
- package/node/@design-edito/thumbnails/colors/index.d.ts +0 -38
- package/node/@design-edito/thumbnails/colors/index.js +0 -33
- package/node/@design-edito/thumbnails/common/index.d.ts +0 -5
- package/node/@design-edito/thumbnails/common/index.js +0 -15
- package/node/@design-edito/thumbnails/easings/index.d.ts +0 -8
- package/node/@design-edito/thumbnails/easings/index.js +0 -21
- package/node/@design-edito/thumbnails/layout/index.d.ts +0 -63
- package/node/@design-edito/thumbnails/layout/index.js +0 -31
- package/node/@google-cloud/storage/bucket/list/index.d.ts +0 -17
- package/node/@google-cloud/storage/bucket/list/index.js +0 -9
- package/node/@google-cloud/storage/file/erase/index.d.ts +0 -20
- package/node/@google-cloud/storage/file/erase/index.js +0 -9
- package/node/cloud-storage/client/index.d.ts +0 -14
- package/node/cloud-storage/client/index.js +0 -20
- package/node/cloud-storage/credentials/index.d.ts +0 -39
- package/node/cloud-storage/credentials/index.js +0 -18
- package/node/cloud-storage/endpoint/index.d.ts +0 -24
- package/node/cloud-storage/endpoint/index.js +0 -13
- package/node/cloud-storage/operations/download/index.d.ts +0 -5
- package/node/cloud-storage/operations/download/index.js +0 -14
- package/node/cloud-storage/operations/upload/index.d.ts +0 -5
- package/node/cloud-storage/operations/upload/index.js +0 -14
- package/node/images/exports/index.d.ts +0 -15
- package/node/images/exports/index.js +0 -9
- package/node/images/transform/area-composition/index.d.ts +0 -60
- package/node/images/transform/area-composition/index.js +0 -15
- package/node/images/transform/operations/area-composition/area-line-composition/index.d.ts +0 -19
- package/node/images/transform/operations/area-composition/area-line-composition/index.js +0 -14
- package/node/images/transform/operations/area-composition/area-tile-composition/index.d.ts +0 -30
- package/node/images/transform/operations/area-composition/area-tile-composition/index.js +0 -15
- package/node/images/transform/operations/area-composition/index.d.ts +0 -31
- package/node/images/transform/operations/area-composition/index.js +0 -15
- package/node/images/transform/operations/inner-resize/index.d.ts +0 -25
- package/node/images/transform/operations/inner-resize/index.js +0 -13
@@ -0,0 +1,98 @@
|
|
1
|
+
import {
|
2
|
+
extractColorsFromImage
|
3
|
+
} from "./chunk-ZRWVPWQC.js";
|
4
|
+
import {
|
5
|
+
clamp
|
6
|
+
} from "./chunk-OSAXBA7G.js";
|
7
|
+
import {
|
8
|
+
shuffle
|
9
|
+
} from "./chunk-VJJIYJMY.js";
|
10
|
+
import {
|
11
|
+
lightenColor
|
12
|
+
} from "./chunk-U57Q62IN.js";
|
13
|
+
import {
|
14
|
+
saturateColor
|
15
|
+
} from "./chunk-MB7HWF22.js";
|
16
|
+
import {
|
17
|
+
complementColor
|
18
|
+
} from "./chunk-2POD3TAX.js";
|
19
|
+
|
20
|
+
// src/node/images/transform/operations/_utils/frame/create-color-palette/index.ts
|
21
|
+
function densifyPalette(RGBColors, types, ligthenIntensity, saturateIntensity) {
|
22
|
+
const densifiedPalette = [];
|
23
|
+
const complementaryRGBColors = RGBColors.map((color) => complementColor(color));
|
24
|
+
if (!types) {
|
25
|
+
return RGBColors;
|
26
|
+
}
|
27
|
+
if (types.includes("default")) {
|
28
|
+
densifiedPalette.push(...RGBColors);
|
29
|
+
}
|
30
|
+
if (types.includes("default-lighten")) {
|
31
|
+
densifiedPalette.push(...RGBColors.map((RGBColor) => lightenColor(RGBColor, ligthenIntensity || 0)));
|
32
|
+
}
|
33
|
+
if (types.includes("default-saturate")) {
|
34
|
+
densifiedPalette.push(...RGBColors.map((RGBColor) => saturateColor(RGBColor, saturateIntensity)));
|
35
|
+
}
|
36
|
+
if (types.includes("complementary")) {
|
37
|
+
densifiedPalette.push(...complementaryRGBColors);
|
38
|
+
}
|
39
|
+
if (types.includes("complementary-lighten")) {
|
40
|
+
densifiedPalette.push(...complementaryRGBColors.map((RGBColor) => lightenColor(RGBColor, ligthenIntensity || 0)));
|
41
|
+
}
|
42
|
+
if (types.includes("complementary-saturate")) {
|
43
|
+
densifiedPalette.push(...RGBColors.map((RGBColor) => saturateColor(RGBColor, saturateIntensity)));
|
44
|
+
}
|
45
|
+
return densifiedPalette;
|
46
|
+
}
|
47
|
+
function createColorPalette(image, createPalette) {
|
48
|
+
if (!createPalette) {
|
49
|
+
return [
|
50
|
+
[0, 0, 0],
|
51
|
+
[0, 0, 0],
|
52
|
+
[0, 0, 0],
|
53
|
+
[0, 0, 0],
|
54
|
+
[0, 0, 0]
|
55
|
+
];
|
56
|
+
}
|
57
|
+
const colorPalette = [];
|
58
|
+
if ("extract" in createPalette && createPalette.extract) {
|
59
|
+
colorPalette.push(
|
60
|
+
...extractColorsFromImage(
|
61
|
+
{
|
62
|
+
buffer: image.buffer,
|
63
|
+
dimensions: image.dimensions,
|
64
|
+
nbChannels: image.nbChannels
|
65
|
+
},
|
66
|
+
createPalette.extract.nbColor
|
67
|
+
)
|
68
|
+
);
|
69
|
+
}
|
70
|
+
if ("use" in createPalette && createPalette.use) {
|
71
|
+
colorPalette.push(...createPalette.use.RGBColors);
|
72
|
+
}
|
73
|
+
if ("densify" in createPalette && createPalette.densify) {
|
74
|
+
colorPalette.push(
|
75
|
+
...densifyPalette(
|
76
|
+
colorPalette,
|
77
|
+
createPalette.densify.types,
|
78
|
+
createPalette.densify.ligthenIntensity,
|
79
|
+
createPalette.densify.saturateIntensity
|
80
|
+
)
|
81
|
+
);
|
82
|
+
}
|
83
|
+
if ("compose" in createPalette && createPalette.compose) {
|
84
|
+
if ("nbColor" in createPalette.compose) {
|
85
|
+
const maxNbColor = createPalette.compose.nbColor ? clamp(createPalette.compose.nbColor, 0, colorPalette.length) : colorPalette.length;
|
86
|
+
colorPalette.splice(0, maxNbColor);
|
87
|
+
}
|
88
|
+
if ("mix" in createPalette.compose) {
|
89
|
+
return shuffle(colorPalette);
|
90
|
+
}
|
91
|
+
}
|
92
|
+
return colorPalette;
|
93
|
+
}
|
94
|
+
|
95
|
+
export {
|
96
|
+
densifyPalette,
|
97
|
+
createColorPalette
|
98
|
+
};
|
@@ -0,0 +1,191 @@
|
|
1
|
+
import {
|
2
|
+
Random
|
3
|
+
} from "./chunk-S32K7POB.js";
|
4
|
+
import {
|
5
|
+
Arrays
|
6
|
+
} from "./chunk-H5HM5EBO.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,40 @@
|
|
1
|
+
import {
|
2
|
+
remove_exports
|
3
|
+
} from "./chunk-5CYREVPP.js";
|
4
|
+
import {
|
5
|
+
stat_exports
|
6
|
+
} from "./chunk-FR3BXMR5.js";
|
7
|
+
import {
|
8
|
+
upload_exports
|
9
|
+
} from "./chunk-FTOEQNF6.js";
|
10
|
+
import {
|
11
|
+
copy_exports
|
12
|
+
} from "./chunk-Z2VDSEND.js";
|
13
|
+
import {
|
14
|
+
download_exports
|
15
|
+
} from "./chunk-QKK6WQDI.js";
|
16
|
+
import {
|
17
|
+
move_exports
|
18
|
+
} from "./chunk-54B7VIY6.js";
|
19
|
+
import {
|
20
|
+
exists_exports
|
21
|
+
} from "./chunk-B7E3DQ4Z.js";
|
22
|
+
import {
|
23
|
+
__export
|
24
|
+
} from "./chunk-KH45J4DC.js";
|
25
|
+
|
26
|
+
// src/node/ftps/file/index.ts
|
27
|
+
var file_exports = {};
|
28
|
+
__export(file_exports, {
|
29
|
+
Copy: () => copy_exports,
|
30
|
+
Download: () => download_exports,
|
31
|
+
Exists: () => exists_exports,
|
32
|
+
Move: () => move_exports,
|
33
|
+
Remove: () => remove_exports,
|
34
|
+
Stat: () => stat_exports,
|
35
|
+
Upload: () => upload_exports
|
36
|
+
});
|
37
|
+
|
38
|
+
export {
|
39
|
+
file_exports
|
40
|
+
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import {
|
2
|
+
Cast,
|
3
|
+
Tree,
|
4
|
+
Utils
|
5
|
+
} from "./chunk-6LY5FJXY.js";
|
6
|
+
import {
|
7
|
+
Serialize
|
8
|
+
} from "./chunk-SXRWMH3U.js";
|
9
|
+
import {
|
10
|
+
Types
|
11
|
+
} from "./chunk-XEQ2PBT2.js";
|
12
|
+
import {
|
13
|
+
SmartTags
|
14
|
+
} from "./chunk-UT2J62LH.js";
|
15
|
+
import {
|
16
|
+
Transformer
|
17
|
+
} from "./chunk-BKO7GLC2.js";
|
18
|
+
import {
|
19
|
+
Method
|
20
|
+
} from "./chunk-RW7VAKJW.js";
|
21
|
+
|
22
|
+
// src/agnostic/html/hyper-json/index.ts
|
23
|
+
var HyperJson;
|
24
|
+
((HyperJson2) => {
|
25
|
+
HyperJson2.Cast = Cast;
|
26
|
+
HyperJson2.Method = Method;
|
27
|
+
HyperJson2.Serialize = Serialize;
|
28
|
+
HyperJson2.SmartTags = SmartTags;
|
29
|
+
HyperJson2.Transformer = Transformer;
|
30
|
+
HyperJson2.Tree = Tree;
|
31
|
+
HyperJson2.Types = Types;
|
32
|
+
HyperJson2.Utils = Utils;
|
33
|
+
})(HyperJson || (HyperJson = {}));
|
34
|
+
|
35
|
+
export {
|
36
|
+
HyperJson
|
37
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import {
|
2
|
+
Crossenv
|
3
|
+
} from "./chunk-GDYVCEWA.js";
|
4
|
+
import {
|
5
|
+
Errors
|
6
|
+
} from "./chunk-WH6BPDAC.js";
|
7
|
+
|
8
|
+
// src/shared/errors/index.ts
|
9
|
+
var register = Errors.Register.from({
|
10
|
+
["no-window-document-on-runtime" /* NO_DOCUMENT */]: {
|
11
|
+
message: `Runtime '${Crossenv.detectRuntime()}' does not provide a Document object, cannot complete.`,
|
12
|
+
detailsMaker: () => void 0
|
13
|
+
},
|
14
|
+
["no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */]: {
|
15
|
+
message: `Please provide a Document object since none are found on runtime '${Crossenv.detectRuntime()}'`,
|
16
|
+
detailsMaker: (tips) => tips
|
17
|
+
}
|
18
|
+
});
|
19
|
+
|
20
|
+
export {
|
21
|
+
register
|
22
|
+
};
|
@@ -0,0 +1,151 @@
|
|
1
|
+
import {
|
2
|
+
formatImage
|
3
|
+
} from "./chunk-ME7RF24X.js";
|
4
|
+
import {
|
5
|
+
transform
|
6
|
+
} from "./chunk-KBOL3LMK.js";
|
7
|
+
import {
|
8
|
+
__export
|
9
|
+
} from "./chunk-KH45J4DC.js";
|
10
|
+
|
11
|
+
// src/node/images/prepare/index.ts
|
12
|
+
var prepare_exports = {};
|
13
|
+
__export(prepare_exports, {
|
14
|
+
MAX_NB_OUTPUTS: () => MAX_NB_OUTPUTS,
|
15
|
+
OUTPUT_ZIP_FOLDER: () => OUTPUT_ZIP_FOLDER,
|
16
|
+
exportZipBuffer: () => exportZipBuffer,
|
17
|
+
prepareImage: () => prepareImage
|
18
|
+
});
|
19
|
+
import sharp from "sharp";
|
20
|
+
import { Writable } from "node:stream";
|
21
|
+
import archiver from "archiver";
|
22
|
+
var MAX_NB_OUTPUTS = 50;
|
23
|
+
var OUTPUT_ZIP_FOLDER = "./output-zips";
|
24
|
+
async function prepareImage(imageBuffer, customOptions) {
|
25
|
+
const sharpImage = sharp(imageBuffer);
|
26
|
+
const sharpImageMetadata = await sharpImage.metadata();
|
27
|
+
const imageBufferMetadata = {
|
28
|
+
width: sharpImageMetadata.width ?? 0,
|
29
|
+
height: sharpImageMetadata.height ?? 0,
|
30
|
+
format: sharpImageMetadata.format || "png"
|
31
|
+
};
|
32
|
+
const options = getOptions(imageBufferMetadata, customOptions);
|
33
|
+
const nbOutputs = options.qualities.length * (options.ratios.length + 1) * (options.widths.length + 1) * (options.heights.length + 1);
|
34
|
+
if (nbOutputs > MAX_NB_OUTPUTS) throw Error("Nb output exceeds supported max nb output");
|
35
|
+
let transformedBuffer = imageBuffer;
|
36
|
+
try {
|
37
|
+
transformedBuffer = await transform(imageBuffer, options.inputOperations, options.checkValidOperations);
|
38
|
+
} catch (e) {
|
39
|
+
console.log("Images:Prepare:Transform:Buffer:Error", { e });
|
40
|
+
}
|
41
|
+
const transformedBufferMetadata = await sharp(transformedBuffer).metadata();
|
42
|
+
const exportsBuffers = [
|
43
|
+
{
|
44
|
+
buffer: imageBuffer,
|
45
|
+
name: generateFileName({
|
46
|
+
...imageBufferMetadata,
|
47
|
+
quality: 100,
|
48
|
+
suffix: "original",
|
49
|
+
prefix: options.name
|
50
|
+
})
|
51
|
+
},
|
52
|
+
{
|
53
|
+
buffer: transformedBuffer,
|
54
|
+
name: generateFileName({
|
55
|
+
width: transformedBufferMetadata.width || 0,
|
56
|
+
height: transformedBufferMetadata.height || 0,
|
57
|
+
format: transformedBufferMetadata.format || "png",
|
58
|
+
quality: 100,
|
59
|
+
suffix: "transformed-unresized",
|
60
|
+
prefix: options.name
|
61
|
+
})
|
62
|
+
}
|
63
|
+
];
|
64
|
+
for (const width of options.widths) {
|
65
|
+
for (const height of options.heights) {
|
66
|
+
for (const quality of options.qualities) {
|
67
|
+
for (const format of options.formats) {
|
68
|
+
const exportBuffer = await formatImage(transformedBuffer, {
|
69
|
+
format,
|
70
|
+
quality,
|
71
|
+
width,
|
72
|
+
height
|
73
|
+
});
|
74
|
+
exportsBuffers.push({
|
75
|
+
buffer: exportBuffer,
|
76
|
+
name: generateFileName({
|
77
|
+
width,
|
78
|
+
height,
|
79
|
+
quality,
|
80
|
+
format,
|
81
|
+
prefix: options.name
|
82
|
+
})
|
83
|
+
});
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
console.log("Images:Transform:Export:ZIP", generateZipName(options.name));
|
89
|
+
const zipBuffer = exportZipBuffer(exportsBuffers, generateZipName(options.name));
|
90
|
+
return zipBuffer;
|
91
|
+
}
|
92
|
+
function exportZipBuffer(zipSources, zipDirectoryName) {
|
93
|
+
return new Promise(async (resolve) => {
|
94
|
+
const archive = archiver("zip", { zlib: { level: 9 } });
|
95
|
+
if (zipDirectoryName) {
|
96
|
+
archive.directory(zipDirectoryName + "/", false);
|
97
|
+
}
|
98
|
+
zipSources.forEach((zipSource) => {
|
99
|
+
const fileName = zipDirectoryName ? `${zipDirectoryName}/${zipSource.name}` : zipSource.name;
|
100
|
+
archive.append(zipSource.buffer, { name: fileName });
|
101
|
+
});
|
102
|
+
const chunks = [];
|
103
|
+
const writable = new Writable();
|
104
|
+
writable._write = (chunk, _enc, callback) => {
|
105
|
+
chunks.push(chunk);
|
106
|
+
callback();
|
107
|
+
};
|
108
|
+
archive.pipe(writable);
|
109
|
+
await archive.finalize();
|
110
|
+
const bufferZip = Buffer.concat(chunks);
|
111
|
+
resolve(bufferZip);
|
112
|
+
});
|
113
|
+
}
|
114
|
+
function getOptions(imageBufferMetadata, options) {
|
115
|
+
return {
|
116
|
+
center: [0.5, 0.5],
|
117
|
+
qualities: [100],
|
118
|
+
inputOperations: [],
|
119
|
+
...options,
|
120
|
+
checkValidOperations: options?.checkValidOperations ?? false,
|
121
|
+
name: options?.name ?? "",
|
122
|
+
formats: [imageBufferMetadata.format, ...options?.formats ? options.formats : []],
|
123
|
+
ratios: [...options?.ratios ? options.ratios : []],
|
124
|
+
widths: [imageBufferMetadata.width, ...options?.widths ? options.widths : []],
|
125
|
+
heights: [imageBufferMetadata.height, ...options?.heights ? options.heights : []]
|
126
|
+
};
|
127
|
+
}
|
128
|
+
function generateZipName(name = "") {
|
129
|
+
const date = /* @__PURE__ */ new Date();
|
130
|
+
return `${name}_image-exports_${date.toLocaleDateString()}_${date.toLocaleTimeString()}_${date.getTime()}`.replace(/\/|:/g, "-").replace(/ /g, "").trim();
|
131
|
+
}
|
132
|
+
function generateFileName({
|
133
|
+
width,
|
134
|
+
height,
|
135
|
+
quality,
|
136
|
+
format,
|
137
|
+
suffix,
|
138
|
+
prefix
|
139
|
+
}) {
|
140
|
+
prefix = prefix ? `${prefix}_` : "image-formats_";
|
141
|
+
suffix = `${suffix ? `_${suffix}` : ""}.${format}`;
|
142
|
+
return `${prefix}${width}x${height}_Q${quality}${suffix}`;
|
143
|
+
}
|
144
|
+
|
145
|
+
export {
|
146
|
+
MAX_NB_OUTPUTS,
|
147
|
+
OUTPUT_ZIP_FOLDER,
|
148
|
+
prepareImage,
|
149
|
+
exportZipBuffer,
|
150
|
+
prepare_exports
|
151
|
+
};
|
@@ -0,0 +1,141 @@
|
|
1
|
+
import {
|
2
|
+
esm_default
|
3
|
+
} from "./chunk-T4KFB6QN.js";
|
4
|
+
import {
|
5
|
+
Outcome
|
6
|
+
} from "./chunk-JMU5PDBD.js";
|
7
|
+
import {
|
8
|
+
clamp
|
9
|
+
} from "./chunk-OSAXBA7G.js";
|
10
|
+
import {
|
11
|
+
__export
|
12
|
+
} from "./chunk-KH45J4DC.js";
|
13
|
+
|
14
|
+
// src/node/images/format/index.ts
|
15
|
+
var format_exports = {};
|
16
|
+
__export(format_exports, {
|
17
|
+
format: () => format,
|
18
|
+
formatImage: () => formatImage,
|
19
|
+
isFormatAvifOptions: () => isFormatAvifOptions,
|
20
|
+
isFormatCommonOptions: () => isFormatCommonOptions,
|
21
|
+
isFormatHeifOptions: () => isFormatHeifOptions,
|
22
|
+
isFormatJpgOptions: () => isFormatJpgOptions,
|
23
|
+
isFormatKeepOptions: () => isFormatKeepOptions,
|
24
|
+
isFormatOptions: () => isFormatOptions,
|
25
|
+
isFormatPngOptions: () => isFormatPngOptions,
|
26
|
+
isFormatTiffOptions: () => isFormatTiffOptions,
|
27
|
+
isFormatWebpOptions: () => isFormatWebpOptions,
|
28
|
+
toAvif: () => toAvif,
|
29
|
+
toHeif: () => toHeif,
|
30
|
+
toHeight: () => toHeight,
|
31
|
+
toJpg: () => toJpg,
|
32
|
+
toPng: () => toPng,
|
33
|
+
toTiff: () => toTiff,
|
34
|
+
toWebp: () => toWebp,
|
35
|
+
toWidth: () => toWidth
|
36
|
+
});
|
37
|
+
import sharp from "sharp";
|
38
|
+
async function formatImage(imageBuffer, outputOptions) {
|
39
|
+
const { width, height, quality, format: format2 } = outputOptions;
|
40
|
+
const sharpInstance = sharp(imageBuffer).resize({
|
41
|
+
width,
|
42
|
+
height,
|
43
|
+
fit: sharp.fit.cover
|
44
|
+
});
|
45
|
+
let withQuality = sharpInstance;
|
46
|
+
if (format2 === "png") {
|
47
|
+
withQuality = withQuality.png({ quality });
|
48
|
+
} else if (format2 === "jpeg") {
|
49
|
+
withQuality = withQuality.jpeg({ quality });
|
50
|
+
} else if (format2 === "webp") {
|
51
|
+
withQuality = withQuality.webp({ quality });
|
52
|
+
} else if (format2 === "avif") {
|
53
|
+
withQuality = withQuality.avif({ quality });
|
54
|
+
}
|
55
|
+
let buffer = Buffer.from([]);
|
56
|
+
try {
|
57
|
+
buffer = await withQuality.toBuffer();
|
58
|
+
} catch (e) {
|
59
|
+
console.log("Images:Exports:Error", { e });
|
60
|
+
}
|
61
|
+
return buffer;
|
62
|
+
}
|
63
|
+
var formatCommonOptionsSchema = esm_default.object({
|
64
|
+
width: esm_default.number().optional(),
|
65
|
+
height: esm_default.number().optional(),
|
66
|
+
fit: esm_default.enum(["contain", "cover", "fill", "inside", "outside"]).optional()
|
67
|
+
});
|
68
|
+
var formatJpgOptionsSchema = formatCommonOptionsSchema.extend({ quality: esm_default.number().optional() });
|
69
|
+
var formatPngOptionsSchema = formatCommonOptionsSchema.extend({
|
70
|
+
quality: esm_default.number().optional(),
|
71
|
+
compressionLevel: esm_default.number().optional()
|
72
|
+
});
|
73
|
+
var formatWebpOptionsSchema = formatCommonOptionsSchema.extend({ quality: esm_default.number().optional() });
|
74
|
+
var formatAvifOptionsSchema = formatCommonOptionsSchema.extend({ quality: esm_default.number().optional() });
|
75
|
+
var formatTiffOptionsSchema = formatCommonOptionsSchema.extend({
|
76
|
+
quality: esm_default.number().optional(),
|
77
|
+
compression: esm_default.enum(["none", "jpeg", "deflate", "packbits", "ccittfax4", "lzw", "webp", "zstd", "jp2k"]).optional()
|
78
|
+
});
|
79
|
+
var formatHeifOptionsSchema = formatCommonOptionsSchema.extend({ quality: esm_default.number().optional() });
|
80
|
+
var formatKeepOptionsSchema = formatCommonOptionsSchema;
|
81
|
+
var formatOptionsSchema = esm_default.union([
|
82
|
+
formatJpgOptionsSchema,
|
83
|
+
formatPngOptionsSchema,
|
84
|
+
formatWebpOptionsSchema,
|
85
|
+
formatAvifOptionsSchema,
|
86
|
+
formatTiffOptionsSchema,
|
87
|
+
formatHeifOptionsSchema,
|
88
|
+
formatKeepOptionsSchema
|
89
|
+
]);
|
90
|
+
var isFormatCommonOptions = (options) => formatCommonOptionsSchema.safeParse(options).success;
|
91
|
+
var isFormatJpgOptions = (options) => formatJpgOptionsSchema.safeParse(options).success;
|
92
|
+
var isFormatPngOptions = (options) => formatPngOptionsSchema.safeParse(options).success;
|
93
|
+
var isFormatWebpOptions = (options) => formatWebpOptionsSchema.safeParse(options).success;
|
94
|
+
var isFormatAvifOptions = (options) => formatAvifOptionsSchema.safeParse(options).success;
|
95
|
+
var isFormatTiffOptions = (options) => formatTiffOptionsSchema.safeParse(options).success;
|
96
|
+
var isFormatHeifOptions = (options) => formatHeifOptionsSchema.safeParse(options).success;
|
97
|
+
var isFormatKeepOptions = (options) => formatKeepOptionsSchema.safeParse(options).success;
|
98
|
+
var isFormatOptions = (options) => formatOptionsSchema.safeParse(options).success;
|
99
|
+
async function format(input, typeOrOptions, options) {
|
100
|
+
const sharpInstance = sharp(input);
|
101
|
+
if (typeof typeOrOptions !== "string") return Outcome.makeSuccess(await sharpInstance.resize(typeOrOptions).toBuffer());
|
102
|
+
const type = typeOrOptions;
|
103
|
+
if (type === "jpg" || type === "jpeg") return Outcome.makeSuccess(await sharpInstance.jpeg(options).toBuffer());
|
104
|
+
if (type === "png") return Outcome.makeSuccess(await sharpInstance.png(options).toBuffer());
|
105
|
+
if (type === "webp") return Outcome.makeSuccess(await sharpInstance.webp(options).toBuffer());
|
106
|
+
if (type === "avif") return Outcome.makeSuccess(await sharpInstance.avif(options).toBuffer());
|
107
|
+
if (type === "tiff") return Outcome.makeSuccess(await sharpInstance.tiff(options).toBuffer());
|
108
|
+
if (type === "heif") return Outcome.makeSuccess(await sharpInstance.heif(options).toBuffer());
|
109
|
+
return Outcome.makeFailure(`Invalid image format: ${type}`);
|
110
|
+
}
|
111
|
+
var toWidth = async (input, width) => sharp(input).resize({ width }).toBuffer();
|
112
|
+
var toHeight = async (input, height) => sharp(input).resize({ height }).toBuffer();
|
113
|
+
var toJpg = async (input, quality) => sharp(input).jpeg({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
|
114
|
+
var toPng = async (input, quality, compressionLevel) => sharp(input).png({ quality: clamp(quality ?? 100, 1, 100), compressionLevel }).toBuffer();
|
115
|
+
var toWebp = async (input, quality) => sharp(input).webp({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
|
116
|
+
var toAvif = async (input, quality) => sharp(input).avif({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
|
117
|
+
var toTiff = async (input, quality, compression) => sharp(input).tiff({ quality: clamp(quality ?? 100, 1, 100), compression }).toBuffer();
|
118
|
+
var toHeif = async (input, quality) => sharp(input).heif({ quality: clamp(quality ?? 100, 1, 100) }).toBuffer();
|
119
|
+
|
120
|
+
export {
|
121
|
+
formatImage,
|
122
|
+
isFormatCommonOptions,
|
123
|
+
isFormatJpgOptions,
|
124
|
+
isFormatPngOptions,
|
125
|
+
isFormatWebpOptions,
|
126
|
+
isFormatAvifOptions,
|
127
|
+
isFormatTiffOptions,
|
128
|
+
isFormatHeifOptions,
|
129
|
+
isFormatKeepOptions,
|
130
|
+
isFormatOptions,
|
131
|
+
format,
|
132
|
+
toWidth,
|
133
|
+
toHeight,
|
134
|
+
toJpg,
|
135
|
+
toPng,
|
136
|
+
toWebp,
|
137
|
+
toAvif,
|
138
|
+
toTiff,
|
139
|
+
toHeif,
|
140
|
+
format_exports
|
141
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// src/agnostic/strings/replace-all/index.ts
|
2
|
+
function replaceAll(input, pattern, replacer, maxOps = 1e3) {
|
3
|
+
let output = input;
|
4
|
+
let opsCnt = 0;
|
5
|
+
while (output.match(pattern) && opsCnt < maxOps) {
|
6
|
+
opsCnt++;
|
7
|
+
if (typeof replacer === "function") output = output.replace(pattern, replacer);
|
8
|
+
else output = output.replace(pattern, replacer);
|
9
|
+
}
|
10
|
+
return output;
|
11
|
+
}
|
12
|
+
|
13
|
+
export {
|
14
|
+
replaceAll
|
15
|
+
};
|